@truenas/ui-components 0.3.23 → 0.3.24
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.
|
@@ -13,7 +13,7 @@ import { mdiCheckCircle, mdiAlertCircle, mdiAlert, mdiInformation, mdiOpenInNew,
|
|
|
13
13
|
import * as i1$1 from '@angular/platform-browser';
|
|
14
14
|
import { DomSanitizer } from '@angular/platform-browser';
|
|
15
15
|
import { HttpClient } from '@angular/common/http';
|
|
16
|
-
import { firstValueFrom, BehaviorSubject, merge, animationFrameScheduler, asapScheduler,
|
|
16
|
+
import { firstValueFrom, BehaviorSubject, Subject, merge, animationFrameScheduler, asapScheduler, take } from 'rxjs';
|
|
17
17
|
import { RouterLink } from '@angular/router';
|
|
18
18
|
import { filesize } from 'filesize';
|
|
19
19
|
import { CdkMenu, CdkMenuItem, CdkMenuTrigger } from '@angular/cdk/menu';
|
|
@@ -23,9 +23,9 @@ import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
|
23
23
|
import { trigger, state, transition, style, animate } from '@angular/animations';
|
|
24
24
|
import { SelectionModel, DataSource } from '@angular/cdk/collections';
|
|
25
25
|
import * as i2 from '@angular/cdk/tree';
|
|
26
|
-
import { CdkTree, CdkTreeModule, CdkTreeNode, CDK_TREE_NODE_OUTLET_NODE, CdkTreeNodeOutlet,
|
|
26
|
+
import { CdkTree, CdkTreeModule, CdkTreeNode, CDK_TREE_NODE_OUTLET_NODE, CdkNestedTreeNode, CdkTreeNodeOutlet, FlatTreeControl, NestedTreeControl, CdkTreeNodeOutletContext } from '@angular/cdk/tree';
|
|
27
27
|
export { FlatTreeControl } from '@angular/cdk/tree';
|
|
28
|
-
import { map, auditTime } from 'rxjs/operators';
|
|
28
|
+
import { map, filter, debounceTime, distinctUntilChanged, takeUntil, auditTime } from 'rxjs/operators';
|
|
29
29
|
import { CdkVirtualScrollViewport, CdkVirtualScrollableWindow, CdkFixedSizeVirtualScroll, CdkVirtualForOf, ScrollingModule } from '@angular/cdk/scrolling';
|
|
30
30
|
import { DialogRef, DIALOG_DATA, Dialog } from '@angular/cdk/dialog';
|
|
31
31
|
|
|
@@ -11676,23 +11676,42 @@ class TnTreeFlattener {
|
|
|
11676
11676
|
}
|
|
11677
11677
|
/**
|
|
11678
11678
|
* Data source for flat tree.
|
|
11679
|
+
*
|
|
11680
|
+
* Optionally supports client-side filtering and sorting: set `filterPredicate`
|
|
11681
|
+
* (and call `filter(query)`) and/or `sortComparer`. Both are opt-in; when unset
|
|
11682
|
+
* the datasource behaves exactly as before.
|
|
11679
11683
|
*/
|
|
11680
11684
|
class TnTreeFlatDataSource extends DataSource {
|
|
11681
11685
|
_treeControl;
|
|
11682
11686
|
_treeFlattener;
|
|
11687
|
+
/** When set, `filter(query)` re-renders the tree from `filterPredicate(data, query)`. */
|
|
11688
|
+
filterPredicate;
|
|
11689
|
+
/** When set, incoming `data` is sorted (top level) before flattening. */
|
|
11690
|
+
sortComparer;
|
|
11683
11691
|
_flattenedData = new BehaviorSubject([]);
|
|
11684
11692
|
_expandedData = new BehaviorSubject([]);
|
|
11685
11693
|
_data = new BehaviorSubject([]);
|
|
11694
|
+
_filteredData = new BehaviorSubject([]);
|
|
11695
|
+
filterValue = '';
|
|
11696
|
+
filterChanged$ = new BehaviorSubject('');
|
|
11697
|
+
disconnect$ = new Subject();
|
|
11686
11698
|
constructor(_treeControl, _treeFlattener) {
|
|
11687
11699
|
super();
|
|
11688
11700
|
this._treeControl = _treeControl;
|
|
11689
11701
|
this._treeFlattener = _treeFlattener;
|
|
11702
|
+
this.detectFilterChanges();
|
|
11690
11703
|
}
|
|
11691
11704
|
get data() { return this._data.value; }
|
|
11692
11705
|
set data(value) {
|
|
11693
|
-
this._data.next(value);
|
|
11694
|
-
|
|
11695
|
-
|
|
11706
|
+
this._data.next(this.sortComparer ? [...value].sort(this.sortComparer) : value);
|
|
11707
|
+
if (this.filterValue && this.filterPredicate) {
|
|
11708
|
+
this._filteredData.next(this.filterPredicate(this.data, this.filterValue));
|
|
11709
|
+
}
|
|
11710
|
+
this.flattenData();
|
|
11711
|
+
}
|
|
11712
|
+
/** The currently filtered (unflattened) data; equals `data` until `filter()` is used. */
|
|
11713
|
+
get filteredData() {
|
|
11714
|
+
return this._filteredData.value;
|
|
11696
11715
|
}
|
|
11697
11716
|
connect() {
|
|
11698
11717
|
return merge(this._treeControl.expansionModel.changed, this._flattenedData).pipe(map(() => {
|
|
@@ -11700,7 +11719,28 @@ class TnTreeFlatDataSource extends DataSource {
|
|
|
11700
11719
|
return this._expandedData.value;
|
|
11701
11720
|
}));
|
|
11702
11721
|
}
|
|
11703
|
-
disconnect() {
|
|
11722
|
+
disconnect() {
|
|
11723
|
+
this.disconnect$.next();
|
|
11724
|
+
this.disconnect$.complete();
|
|
11725
|
+
}
|
|
11726
|
+
/** Filters the tree using `filterPredicate` (debounced). No-op until `filterPredicate` is set. */
|
|
11727
|
+
filter(query) {
|
|
11728
|
+
this.filterChanged$.next(query);
|
|
11729
|
+
}
|
|
11730
|
+
flattenData() {
|
|
11731
|
+
this._flattenedData.next(this._treeFlattener.flattenNodes(this.filterValue ? this._filteredData.value : this.data));
|
|
11732
|
+
this._treeControl.dataNodes = this._flattenedData.value;
|
|
11733
|
+
}
|
|
11734
|
+
detectFilterChanges() {
|
|
11735
|
+
this.filterChanged$.pipe(filter(() => !!this.filterPredicate), debounceTime(200), distinctUntilChanged(), takeUntil(this.disconnect$)).subscribe((changedValue) => {
|
|
11736
|
+
if (this.filterValue === changedValue || !this.filterPredicate) {
|
|
11737
|
+
return;
|
|
11738
|
+
}
|
|
11739
|
+
this.filterValue = changedValue;
|
|
11740
|
+
this._filteredData.next(this.filterPredicate(this.data, changedValue));
|
|
11741
|
+
this.flattenData();
|
|
11742
|
+
});
|
|
11743
|
+
}
|
|
11704
11744
|
_getExpandedNodesWithLevel() {
|
|
11705
11745
|
const expandedNodes = [];
|
|
11706
11746
|
const flatNodes = this._flattenedData.value;
|
|
@@ -11772,26 +11812,24 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImpor
|
|
|
11772
11812
|
}, encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- The `role=\"treeitem\"` (plus aria-level/aria-expanded) lives on the host\n `.tn-tree-node-wrapper`, so this inner div is a presentational container \u2014\n no role or aria-* here, to avoid exposing a second, nested treeitem to AT. -->\n<div class=\"tn-tree-node\"\n cdkTreeNodeToggle\n [class.tn-tree-node--expandable]=\"isExpandable\"\n [style.cursor]=\"isExpandable ? 'pointer' : 'default'\">\n \n <div class=\"tn-tree-node__content\">\n <!-- Arrow icon for expandable nodes -->\n @if (isExpandable) {\n <div\n class=\"tn-tree-node__toggle\"\n [class.tn-tree-node__toggle--expanded]=\"isExpanded\">\n <tn-icon\n library=\"mdi\"\n size=\"sm\"\n style=\"transition: transform 0.2s ease;\"\n [name]=\"isExpanded ? 'chevron-down' : 'chevron-right'\" />\n </div>\n }\n\n <!-- Spacer for non-expandable nodes -->\n @if (!isExpandable) {\n <div class=\"tn-tree-node__spacer\"></div>\n }\n \n <!-- Node content -->\n <div class=\"tn-tree-node__text\">\n <ng-content />\n </div>\n </div>\n</div>", styles: [":host{display:block}.tn-tree-node{border-bottom:1px solid var(--tn-lines);transition:background-color .2s ease}.tn-tree-node:hover{background-color:var(--tn-alt-bg2)}.tn-tree-node:last-child{border-bottom:none}.tn-tree-node--expandable{cursor:pointer}.tn-tree-node--expandable:hover{background-color:var(--tn-alt-bg2)}.tn-tree-node--expandable:active{background-color:var(--tn-alt-bg1)}.tn-tree-node__content{display:flex;align-items:center;gap:8px;min-height:48px;padding:12px 16px}.tn-tree-node__toggle{display:flex;align-items:center;justify-content:center;width:24px;height:24px;padding:0;border:none;background:none;color:var(--tn-fg2);cursor:pointer;border-radius:3px;transition:all .2s ease;flex-shrink:0}.tn-tree-node__toggle:hover{background-color:var(--tn-alt-bg2);color:var(--tn-fg1)}.tn-tree-node__toggle:focus{outline:2px solid var(--tn-primary);outline-offset:1px}.tn-tree-node__toggle svg{transition:transform .2s ease;transform:rotate(0)}.tn-tree-node__toggle--expanded svg{transform:rotate(90deg)}.tn-tree-node__spacer{width:24px;height:24px;flex-shrink:0}.tn-tree-node__text{flex:1;min-width:0;color:var(--tn-fg1)}.tn-tree-node__children{padding-left:24px}.tn-tree-invisible{display:none}\n"] }]
|
|
11773
11813
|
}], ctorParameters: () => [] });
|
|
11774
11814
|
|
|
11775
|
-
class TnTreeNodeOutletDirective {
|
|
11776
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: TnTreeNodeOutletDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
11777
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1.0", type: TnTreeNodeOutletDirective, isStandalone: true, selector: "[tnTreeNodeOutlet]", hostDirectives: [{ directive: i2.CdkTreeNodeOutlet }], ngImport: i0 });
|
|
11778
|
-
}
|
|
11779
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: TnTreeNodeOutletDirective, decorators: [{
|
|
11780
|
-
type: Directive,
|
|
11781
|
-
args: [{
|
|
11782
|
-
selector: '[tnTreeNodeOutlet]',
|
|
11783
|
-
standalone: true,
|
|
11784
|
-
hostDirectives: [{
|
|
11785
|
-
directive: CdkTreeNodeOutlet,
|
|
11786
|
-
inputs: [],
|
|
11787
|
-
outputs: []
|
|
11788
|
-
}]
|
|
11789
|
-
}]
|
|
11790
|
-
}] });
|
|
11791
|
-
|
|
11792
11815
|
class TnNestedTreeNodeComponent extends CdkNestedTreeNode {
|
|
11816
|
+
/**
|
|
11817
|
+
* Accessible label for the built-in toggle button. Pass a translated string;
|
|
11818
|
+
* defaults to the previous hardcoded value.
|
|
11819
|
+
*/
|
|
11820
|
+
toggleAriaLabel = input('Toggle node', ...(ngDevMode ? [{ debugName: "toggleAriaLabel" }] : []));
|
|
11821
|
+
/** Semantic test-id base applied to the built-in toggle button (`button-` prefixed). */
|
|
11822
|
+
toggleTestId = input(...(ngDevMode ? [undefined, { debugName: "toggleTestId" }] : []));
|
|
11823
|
+
/**
|
|
11824
|
+
* Suppresses the built-in toggle button (and its alignment spacer) so the
|
|
11825
|
+
* consumer can render a fully custom toggle in the projected content.
|
|
11826
|
+
*/
|
|
11827
|
+
hideToggle = input(false, { ...(ngDevMode ? { debugName: "hideToggle" } : {}), transform: booleanAttribute });
|
|
11828
|
+
changeDetectorRef = inject(ChangeDetectorRef);
|
|
11829
|
+
destroyed = false;
|
|
11793
11830
|
constructor() {
|
|
11794
11831
|
super(inject((ElementRef)), inject(CdkTree, { optional: true }), inject(CDK_TREE_NODE_OUTLET_NODE, { optional: true }), inject(ChangeDetectorRef, { optional: true }));
|
|
11832
|
+
inject(DestroyRef).onDestroy(() => this.destroyed = true);
|
|
11795
11833
|
}
|
|
11796
11834
|
/** The tree node's level in the tree */
|
|
11797
11835
|
get level() {
|
|
@@ -11799,11 +11837,10 @@ class TnNestedTreeNodeComponent extends CdkNestedTreeNode {
|
|
|
11799
11837
|
// Legacy treeControl approach
|
|
11800
11838
|
return this._tree.treeControl.getLevel(this.data);
|
|
11801
11839
|
}
|
|
11802
|
-
|
|
11803
|
-
|
|
11804
|
-
|
|
11805
|
-
|
|
11806
|
-
return 0;
|
|
11840
|
+
// CdkTreeNode's own getter: levelAccessor when available, else the parent
|
|
11841
|
+
// node's aria-level from the DOM — which is what makes nested trees (whose
|
|
11842
|
+
// NestedTreeControl has no getLevel) report correct levels.
|
|
11843
|
+
return this._tree ? super.level : 0;
|
|
11807
11844
|
}
|
|
11808
11845
|
/** Whether the tree node is expandable */
|
|
11809
11846
|
get isExpandable() {
|
|
@@ -11811,6 +11848,12 @@ class TnNestedTreeNodeComponent extends CdkNestedTreeNode {
|
|
|
11811
11848
|
// Legacy treeControl approach
|
|
11812
11849
|
return this._tree.treeControl.isExpandable(this.data);
|
|
11813
11850
|
}
|
|
11851
|
+
else if (this._tree?.treeControl) {
|
|
11852
|
+
// NestedTreeControl leaves `isExpandable` undefined unless configured —
|
|
11853
|
+
// fall back to its getChildren (synchronous arrays only).
|
|
11854
|
+
const children = this._tree.treeControl.getChildren?.(this.data);
|
|
11855
|
+
return Array.isArray(children) && children.length > 0;
|
|
11856
|
+
}
|
|
11814
11857
|
else if (this._tree && 'childrenAccessor' in this._tree && this._tree.childrenAccessor) {
|
|
11815
11858
|
// Modern childrenAccessor approach
|
|
11816
11859
|
const childrenAccessor = this._tree.childrenAccessor;
|
|
@@ -11835,24 +11878,330 @@ class TnNestedTreeNodeComponent extends CdkNestedTreeNode {
|
|
|
11835
11878
|
}
|
|
11836
11879
|
return false;
|
|
11837
11880
|
}
|
|
11881
|
+
/**
|
|
11882
|
+
* CDK inserts child node views synchronously from `ngAfterContentInit`, i.e.
|
|
11883
|
+
* mid-change-detection. Because the outlet here lives in PROJECTED content
|
|
11884
|
+
* whose view container has already been traversed for the current pass, the
|
|
11885
|
+
* new views would miss their first check and trip dev-mode NG0100. Defer the
|
|
11886
|
+
* insertion to a microtask so the views are created outside change detection
|
|
11887
|
+
* and get a normal first check on the pass that `markForCheck` schedules.
|
|
11888
|
+
*/
|
|
11889
|
+
updateChildrenNodes(children) {
|
|
11890
|
+
queueMicrotask(() => {
|
|
11891
|
+
if (this.destroyed) {
|
|
11892
|
+
return;
|
|
11893
|
+
}
|
|
11894
|
+
super.updateChildrenNodes(children);
|
|
11895
|
+
this.changeDetectorRef.markForCheck();
|
|
11896
|
+
});
|
|
11897
|
+
}
|
|
11898
|
+
/**
|
|
11899
|
+
* Toggles the node; with the Alt key held, toggles the node together with all
|
|
11900
|
+
* of its descendants. Replaces `cdkTreeNodeToggle` on the built-in button so
|
|
11901
|
+
* the Alt behavior is deterministic (a stacked template listener would run in
|
|
11902
|
+
* an unspecified order relative to the CDK toggle's own click handler).
|
|
11903
|
+
*/
|
|
11904
|
+
toggleNode(event) {
|
|
11905
|
+
if (!this._tree) {
|
|
11906
|
+
return;
|
|
11907
|
+
}
|
|
11908
|
+
if ('altKey' in event && event.altKey) {
|
|
11909
|
+
this._tree.toggleDescendants(this.data);
|
|
11910
|
+
}
|
|
11911
|
+
else {
|
|
11912
|
+
this._tree.toggle(this.data);
|
|
11913
|
+
}
|
|
11914
|
+
this._tree._keyManager?.focusItem(this);
|
|
11915
|
+
}
|
|
11838
11916
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: TnNestedTreeNodeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
11839
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.0", type: TnNestedTreeNodeComponent, isStandalone: true, selector: "tn-nested-tree-node", host: { attributes: { "role": "treeitem" }, properties: { "attr.aria-level": "level + 1", "attr.aria-expanded": "isExpandable ? isExpanded : null" }, classAttribute: "tn-nested-tree-node-wrapper" }, providers: [
|
|
11917
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.1.0", type: TnNestedTreeNodeComponent, isStandalone: true, selector: "tn-nested-tree-node", inputs: { toggleAriaLabel: { classPropertyName: "toggleAriaLabel", publicName: "toggleAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, toggleTestId: { classPropertyName: "toggleTestId", publicName: "toggleTestId", isSignal: true, isRequired: false, transformFunction: null }, hideToggle: { classPropertyName: "hideToggle", publicName: "hideToggle", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "treeitem" }, properties: { "attr.aria-level": "level + 1", "attr.aria-expanded": "isExpandable ? isExpanded : null" }, classAttribute: "tn-nested-tree-node-wrapper" }, providers: [
|
|
11840
11918
|
{ provide: CdkNestedTreeNode, useExisting: TnNestedTreeNodeComponent },
|
|
11841
11919
|
{ provide: CdkTreeNode, useExisting: TnNestedTreeNodeComponent }
|
|
11842
|
-
], exportAs: ["tnNestedTreeNode"], usesInheritance: true, ngImport: i0, template: "<div class=\"tn-nested-tree-node__content\">\n <!-- Toggle button for expandable nodes (provided by component) -->\n
|
|
11920
|
+
], exportAs: ["tnNestedTreeNode"], usesInheritance: true, hostDirectives: [{ directive: TnTestIdDirective, inputs: ["tnTestId", "testId"] }], ngImport: i0, template: "<div class=\"tn-nested-tree-node__content\">\n @if (!hideToggle()) {\n <!-- Toggle button for expandable nodes (provided by component).\n Alt+click / Alt+Enter toggles the node together with all descendants.\n tabindex=\"-1\" keeps it out of the tab order \u2014 the tree's key manager\n drives focus at the treeitem level, matching cdkTreeNodeToggle. -->\n @if (isExpandable) {\n <button\n class=\"tn-nested-tree-node__toggle\"\n type=\"button\"\n tabindex=\"-1\"\n tnTestIdType=\"button\"\n [tnTestId]=\"toggleTestId()\"\n [class.tn-nested-tree-node__toggle--expanded]=\"isExpanded\"\n [attr.aria-label]=\"toggleAriaLabel()\"\n (click)=\"toggleNode($event); $event.stopPropagation()\"\n (keydown.enter)=\"toggleNode($event); $event.preventDefault()\"\n (keydown.space)=\"toggleNode($event); $event.preventDefault()\">\n <tn-icon\n library=\"mdi\"\n size=\"sm\"\n style=\"transition: transform 0.2s ease;\"\n [name]=\"isExpanded ? 'chevron-down' : 'chevron-right'\" />\n </button>\n }\n\n <!-- Spacer for non-expandable nodes to maintain alignment -->\n @if (!isExpandable) {\n <div class=\"tn-nested-tree-node__spacer\"></div>\n }\n }\n\n <!-- Consumer content -->\n <ng-content />\n</div>\n\n<!-- Children container -->\n@if (isExpandable) {\n <div class=\"tn-nested-tree-node-container\" role=\"group\" [class.tn-tree-invisible]=\"!isExpanded\">\n <ng-content select=\"[slot=children]\" />\n </div>\n}\n", styles: [".tn-nested-tree-node-wrapper{display:block;width:100%}.tn-nested-tree-node{display:block;width:100%;font-family:var(--tn-font-family-body);font-size:1rem;line-height:1.4;color:var(--tn-fg1)}.tn-nested-tree-node--expandable .tn-nested-tree-node__content{cursor:pointer}.tn-nested-tree-node__content{display:flex;align-items:center;gap:8px;min-height:48px;padding:12px 16px;border-bottom:1px solid var(--tn-lines);transition:background-color .2s ease}.tn-nested-tree-node__content:hover{background-color:var(--tn-alt-bg2)}.tn-nested-tree-node__content:focus-within{background-color:var(--tn-alt-bg2);outline:2px solid var(--tn-primary);outline-offset:-2px}.tn-tree-invisible{display:none}.tn-nested-tree-node__toggle{display:flex;align-items:center;justify-content:center;width:24px;height:24px;margin-right:8px;padding:0;border:none;background:transparent;border-radius:4px;cursor:pointer;color:var(--tn-fg2);transition:background-color .2s ease,color .2s ease}.tn-nested-tree-node__toggle:hover{background-color:var(--tn-bg3);color:var(--tn-fg1)}.tn-nested-tree-node__toggle:focus{outline:2px solid var(--tn-primary);outline-offset:2px}.tn-nested-tree-node__toggle svg{transition:transform .2s ease}.tn-nested-tree-node__toggle--expanded svg{transform:rotate(90deg)}.tn-nested-tree-node__spacer{width:24px;height:24px;flex-shrink:0}.tn-nested-tree-node__text{flex:1;display:flex;align-items:center;gap:8px;min-width:0;color:var(--tn-fg1)}div.tn-nested-tree-node-container{padding-left:40px}@media(prefers-reduced-motion:reduce){.tn-nested-tree-node__toggle svg,.tn-nested-tree-node__content,.tn-nested-tree-node__children{transition:none}}@media(prefers-contrast:high){.tn-nested-tree-node__content{border:1px solid transparent}.tn-nested-tree-node__content:hover,.tn-nested-tree-node__content:focus-within{border-color:var(--tn-fg1)}.tn-nested-tree-node__toggle{border:1px solid var(--tn-fg2)}.tn-nested-tree-node__toggle:hover,.tn-nested-tree-node__toggle:focus{border-color:var(--tn-fg1)}}\n"], dependencies: [{ kind: "component", type: TnIconComponent, selector: "tn-icon", inputs: ["name", "size", "color", "tooltip", "ariaLabel", "library", "testId", "fullSize", "customSize"] }, { kind: "directive", type: TnTestIdDirective, selector: "[tnTestId]", inputs: ["tnTestId", "tnTestIdType"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
11843
11921
|
}
|
|
11844
11922
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: TnNestedTreeNodeComponent, decorators: [{
|
|
11845
11923
|
type: Component,
|
|
11846
|
-
args: [{ selector: 'tn-nested-tree-node', standalone: true, imports: [
|
|
11924
|
+
args: [{ selector: 'tn-nested-tree-node', standalone: true, imports: [TnIconComponent, TnTestIdDirective], exportAs: 'tnNestedTreeNode', providers: [
|
|
11847
11925
|
{ provide: CdkNestedTreeNode, useExisting: TnNestedTreeNodeComponent },
|
|
11848
11926
|
{ provide: CdkTreeNode, useExisting: TnNestedTreeNodeComponent }
|
|
11849
|
-
], host: {
|
|
11927
|
+
], hostDirectives: [{ directive: TnTestIdDirective, inputs: ['tnTestId: testId'] }], host: {
|
|
11850
11928
|
'class': 'tn-nested-tree-node-wrapper',
|
|
11851
11929
|
'[attr.aria-level]': 'level + 1',
|
|
11852
11930
|
'[attr.aria-expanded]': 'isExpandable ? isExpanded : null',
|
|
11853
11931
|
'role': 'treeitem'
|
|
11854
|
-
}, encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"tn-nested-tree-node__content\">\n <!-- Toggle button for expandable nodes (provided by component) -->\n
|
|
11855
|
-
}], ctorParameters: () => [] });
|
|
11932
|
+
}, encapsulation: ViewEncapsulation.Emulated, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"tn-nested-tree-node__content\">\n @if (!hideToggle()) {\n <!-- Toggle button for expandable nodes (provided by component).\n Alt+click / Alt+Enter toggles the node together with all descendants.\n tabindex=\"-1\" keeps it out of the tab order \u2014 the tree's key manager\n drives focus at the treeitem level, matching cdkTreeNodeToggle. -->\n @if (isExpandable) {\n <button\n class=\"tn-nested-tree-node__toggle\"\n type=\"button\"\n tabindex=\"-1\"\n tnTestIdType=\"button\"\n [tnTestId]=\"toggleTestId()\"\n [class.tn-nested-tree-node__toggle--expanded]=\"isExpanded\"\n [attr.aria-label]=\"toggleAriaLabel()\"\n (click)=\"toggleNode($event); $event.stopPropagation()\"\n (keydown.enter)=\"toggleNode($event); $event.preventDefault()\"\n (keydown.space)=\"toggleNode($event); $event.preventDefault()\">\n <tn-icon\n library=\"mdi\"\n size=\"sm\"\n style=\"transition: transform 0.2s ease;\"\n [name]=\"isExpanded ? 'chevron-down' : 'chevron-right'\" />\n </button>\n }\n\n <!-- Spacer for non-expandable nodes to maintain alignment -->\n @if (!isExpandable) {\n <div class=\"tn-nested-tree-node__spacer\"></div>\n }\n }\n\n <!-- Consumer content -->\n <ng-content />\n</div>\n\n<!-- Children container -->\n@if (isExpandable) {\n <div class=\"tn-nested-tree-node-container\" role=\"group\" [class.tn-tree-invisible]=\"!isExpanded\">\n <ng-content select=\"[slot=children]\" />\n </div>\n}\n", styles: [".tn-nested-tree-node-wrapper{display:block;width:100%}.tn-nested-tree-node{display:block;width:100%;font-family:var(--tn-font-family-body);font-size:1rem;line-height:1.4;color:var(--tn-fg1)}.tn-nested-tree-node--expandable .tn-nested-tree-node__content{cursor:pointer}.tn-nested-tree-node__content{display:flex;align-items:center;gap:8px;min-height:48px;padding:12px 16px;border-bottom:1px solid var(--tn-lines);transition:background-color .2s ease}.tn-nested-tree-node__content:hover{background-color:var(--tn-alt-bg2)}.tn-nested-tree-node__content:focus-within{background-color:var(--tn-alt-bg2);outline:2px solid var(--tn-primary);outline-offset:-2px}.tn-tree-invisible{display:none}.tn-nested-tree-node__toggle{display:flex;align-items:center;justify-content:center;width:24px;height:24px;margin-right:8px;padding:0;border:none;background:transparent;border-radius:4px;cursor:pointer;color:var(--tn-fg2);transition:background-color .2s ease,color .2s ease}.tn-nested-tree-node__toggle:hover{background-color:var(--tn-bg3);color:var(--tn-fg1)}.tn-nested-tree-node__toggle:focus{outline:2px solid var(--tn-primary);outline-offset:2px}.tn-nested-tree-node__toggle svg{transition:transform .2s ease}.tn-nested-tree-node__toggle--expanded svg{transform:rotate(90deg)}.tn-nested-tree-node__spacer{width:24px;height:24px;flex-shrink:0}.tn-nested-tree-node__text{flex:1;display:flex;align-items:center;gap:8px;min-width:0;color:var(--tn-fg1)}div.tn-nested-tree-node-container{padding-left:40px}@media(prefers-reduced-motion:reduce){.tn-nested-tree-node__toggle svg,.tn-nested-tree-node__content,.tn-nested-tree-node__children{transition:none}}@media(prefers-contrast:high){.tn-nested-tree-node__content{border:1px solid transparent}.tn-nested-tree-node__content:hover,.tn-nested-tree-node__content:focus-within{border-color:var(--tn-fg1)}.tn-nested-tree-node__toggle{border:1px solid var(--tn-fg2)}.tn-nested-tree-node__toggle:hover,.tn-nested-tree-node__toggle:focus{border-color:var(--tn-fg1)}}\n"] }]
|
|
11933
|
+
}], ctorParameters: () => [], propDecorators: { toggleAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "toggleAriaLabel", required: false }] }], toggleTestId: [{ type: i0.Input, args: [{ isSignal: true, alias: "toggleTestId", required: false }] }], hideToggle: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideToggle", required: false }] }] } });
|
|
11934
|
+
|
|
11935
|
+
class TnTreeNodeOutletDirective {
|
|
11936
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: TnTreeNodeOutletDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
11937
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.1.0", type: TnTreeNodeOutletDirective, isStandalone: true, selector: "[tnTreeNodeOutlet]", hostDirectives: [{ directive: i2.CdkTreeNodeOutlet }], ngImport: i0 });
|
|
11938
|
+
}
|
|
11939
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImport: i0, type: TnTreeNodeOutletDirective, decorators: [{
|
|
11940
|
+
type: Directive,
|
|
11941
|
+
args: [{
|
|
11942
|
+
selector: '[tnTreeNodeOutlet]',
|
|
11943
|
+
standalone: true,
|
|
11944
|
+
hostDirectives: [{
|
|
11945
|
+
directive: CdkTreeNodeOutlet,
|
|
11946
|
+
inputs: [],
|
|
11947
|
+
outputs: []
|
|
11948
|
+
}]
|
|
11949
|
+
}]
|
|
11950
|
+
}] });
|
|
11951
|
+
|
|
11952
|
+
/**
|
|
11953
|
+
* Data source for nested trees (`tn-nested-tree-node`).
|
|
11954
|
+
*
|
|
11955
|
+
* Optionally supports client-side filtering and sorting: set `filterPredicate`
|
|
11956
|
+
* (and call `filter(query)`) and/or `sortComparer` (applied recursively through
|
|
11957
|
+
* `children`). Both are opt-in.
|
|
11958
|
+
*/
|
|
11959
|
+
class TnNestedTreeDataSource extends DataSource {
|
|
11960
|
+
/** When set, `filter(query)` re-renders the tree from `filterPredicate(data, query)`. */
|
|
11961
|
+
filterPredicate;
|
|
11962
|
+
/** When set, incoming `data` is sorted recursively before rendering. */
|
|
11963
|
+
sortComparer;
|
|
11964
|
+
filterValue = '';
|
|
11965
|
+
filterChanged$ = new BehaviorSubject('');
|
|
11966
|
+
_data = new BehaviorSubject([]);
|
|
11967
|
+
_filteredData = new BehaviorSubject([]);
|
|
11968
|
+
disconnect$ = new Subject();
|
|
11969
|
+
get data() {
|
|
11970
|
+
return this._data.value;
|
|
11971
|
+
}
|
|
11972
|
+
set data(value) {
|
|
11973
|
+
this._data.next(this.sortComparer ? this.sort(value) : value);
|
|
11974
|
+
}
|
|
11975
|
+
constructor(initialData) {
|
|
11976
|
+
super();
|
|
11977
|
+
if (initialData) {
|
|
11978
|
+
this.data = initialData;
|
|
11979
|
+
}
|
|
11980
|
+
this.detectFilterChanges();
|
|
11981
|
+
}
|
|
11982
|
+
connect(collectionViewer) {
|
|
11983
|
+
return merge(collectionViewer.viewChange, this._data, this._filteredData).pipe(map(() => (this.filterValue ? this._filteredData.value : this.data)));
|
|
11984
|
+
}
|
|
11985
|
+
disconnect() {
|
|
11986
|
+
this.disconnect$.next();
|
|
11987
|
+
this.disconnect$.complete();
|
|
11988
|
+
}
|
|
11989
|
+
/** Filters the tree using `filterPredicate` (debounced). No-op until `filterPredicate` is set. */
|
|
11990
|
+
filter(query) {
|
|
11991
|
+
this.filterChanged$.next(query);
|
|
11992
|
+
}
|
|
11993
|
+
detectFilterChanges() {
|
|
11994
|
+
this.filterChanged$.pipe(filter(() => !!this.filterPredicate), debounceTime(200), distinctUntilChanged(), takeUntil(this.disconnect$)).subscribe((changedValue) => {
|
|
11995
|
+
if (this.filterValue === changedValue || !this.filterPredicate) {
|
|
11996
|
+
return;
|
|
11997
|
+
}
|
|
11998
|
+
this.filterValue = changedValue;
|
|
11999
|
+
this._filteredData.next(this.filterPredicate(this.data, changedValue));
|
|
12000
|
+
});
|
|
12001
|
+
}
|
|
12002
|
+
sort(value) {
|
|
12003
|
+
return [...value].sort(this.sortComparer).map((item) => {
|
|
12004
|
+
if (item.children?.length) {
|
|
12005
|
+
item.children = this.sort(item.children);
|
|
12006
|
+
}
|
|
12007
|
+
return item;
|
|
12008
|
+
});
|
|
12009
|
+
}
|
|
12010
|
+
}
|
|
12011
|
+
|
|
12012
|
+
/**
|
|
12013
|
+
* Creates a flat tree control for managing expansion state of flat tree structures.
|
|
12014
|
+
*
|
|
12015
|
+
* @param getLevel - Function that returns the level/depth of a node
|
|
12016
|
+
* @param isExpandable - Function that returns whether a node can be expanded
|
|
12017
|
+
* @param options - Optional configuration including trackBy function
|
|
12018
|
+
* @returns TnTreeExpansion instance for managing tree state
|
|
12019
|
+
*
|
|
12020
|
+
* @example
|
|
12021
|
+
* ```ts
|
|
12022
|
+
* const treeControl = createFlatTreeControl<DatasetDetails, string>(
|
|
12023
|
+
* (dataset) => (dataset?.name?.split('/')?.length || 0) - 1,
|
|
12024
|
+
* (dataset) => Number(dataset?.children?.length) > 0,
|
|
12025
|
+
* { trackBy: (dataset) => dataset.id }
|
|
12026
|
+
* );
|
|
12027
|
+
* ```
|
|
12028
|
+
*/
|
|
12029
|
+
function createFlatTreeControl(getLevel, isExpandable, options) {
|
|
12030
|
+
return new FlatTreeControl(getLevel, isExpandable, options);
|
|
12031
|
+
}
|
|
12032
|
+
/**
|
|
12033
|
+
* Creates a nested tree control for managing expansion state of nested tree structures.
|
|
12034
|
+
*
|
|
12035
|
+
* @param getChildren - Function that returns the children of a node
|
|
12036
|
+
* @param options - Optional configuration including isExpandable and trackBy functions
|
|
12037
|
+
* @returns TnTreeExpansion instance for managing tree state
|
|
12038
|
+
*
|
|
12039
|
+
* @example
|
|
12040
|
+
* ```ts
|
|
12041
|
+
* const treeControl = createNestedTreeControl<VDevNode, string>(
|
|
12042
|
+
* (vdev) => vdev.children,
|
|
12043
|
+
* { trackBy: (vdev) => vdev.guid }
|
|
12044
|
+
* );
|
|
12045
|
+
* ```
|
|
12046
|
+
*/
|
|
12047
|
+
function createNestedTreeControl(getChildren, options) {
|
|
12048
|
+
// NestedTreeControl leaves `isExpandable` undefined unless provided, which
|
|
12049
|
+
// reads as "every node is a leaf" — default it from getChildren (sync arrays).
|
|
12050
|
+
const isExpandable = options?.isExpandable
|
|
12051
|
+
?? ((dataNode) => {
|
|
12052
|
+
const children = getChildren(dataNode);
|
|
12053
|
+
return Array.isArray(children) && children.length > 0;
|
|
12054
|
+
});
|
|
12055
|
+
return new NestedTreeControl(getChildren, { ...options, isExpandable });
|
|
12056
|
+
}
|
|
12057
|
+
|
|
12058
|
+
/**
|
|
12059
|
+
* Harness for interacting with a single `tn-tree-node` or `tn-nested-tree-node`.
|
|
12060
|
+
*
|
|
12061
|
+
* Levels are 0-based (root nodes are level 0), matching the values consumers pass
|
|
12062
|
+
* to tree controls — the DOM's 1-based `aria-level` is converted internally.
|
|
12063
|
+
*/
|
|
12064
|
+
class TnTreeNodeHarness extends ComponentHarness {
|
|
12065
|
+
static hostSelector = '.tn-tree-node-wrapper, .tn-nested-tree-node-wrapper';
|
|
12066
|
+
/** The built-in nested-node toggle button (absent on flat nodes, leaves, and `hideToggle` nodes). */
|
|
12067
|
+
nestedToggle = this.locatorForOptional('.tn-nested-tree-node__toggle');
|
|
12068
|
+
/** The flat node's row, which acts as its toggle surface. */
|
|
12069
|
+
flatRow = this.locatorForOptional('.tn-tree-node');
|
|
12070
|
+
/**
|
|
12071
|
+
* Gets a `HarnessPredicate` that can be used to search for a tree node with
|
|
12072
|
+
* specific attributes.
|
|
12073
|
+
*
|
|
12074
|
+
* @param options Options for filtering which instances are considered a match.
|
|
12075
|
+
* @returns A `HarnessPredicate` configured with the given options.
|
|
12076
|
+
*/
|
|
12077
|
+
static with(options = {}) {
|
|
12078
|
+
return new HarnessPredicate(TnTreeNodeHarness, options)
|
|
12079
|
+
.addOption('text', options.text, (harness, text) => HarnessPredicate.stringMatches(harness.getText(), text))
|
|
12080
|
+
.addOption('expanded', options.expanded, async (harness, expanded) => (await harness.isExpanded()) === expanded)
|
|
12081
|
+
.addOption('level', options.level, async (harness, level) => (await harness.getLevel()) === level);
|
|
12082
|
+
}
|
|
12083
|
+
/**
|
|
12084
|
+
* Gets the node's own text, excluding any descendant tree nodes and the
|
|
12085
|
+
* built-in toggle button.
|
|
12086
|
+
*
|
|
12087
|
+
* @returns Promise resolving to the node's text.
|
|
12088
|
+
*/
|
|
12089
|
+
async getText() {
|
|
12090
|
+
return (await this.host()).text({
|
|
12091
|
+
exclude: '.tn-tree-node-wrapper, .tn-nested-tree-node-wrapper, button',
|
|
12092
|
+
});
|
|
12093
|
+
}
|
|
12094
|
+
/**
|
|
12095
|
+
* Gets the node's 0-based level (root nodes are 0).
|
|
12096
|
+
*
|
|
12097
|
+
* @returns Promise resolving to the level.
|
|
12098
|
+
*/
|
|
12099
|
+
async getLevel() {
|
|
12100
|
+
const ariaLevel = await (await this.host()).getAttribute('aria-level');
|
|
12101
|
+
return Number(ariaLevel) - 1;
|
|
12102
|
+
}
|
|
12103
|
+
/**
|
|
12104
|
+
* Whether the node is expandable (advertises `aria-expanded`).
|
|
12105
|
+
*
|
|
12106
|
+
* @returns Promise resolving to true if the node is expandable.
|
|
12107
|
+
*/
|
|
12108
|
+
async isExpandable() {
|
|
12109
|
+
return (await (await this.host()).getAttribute('aria-expanded')) !== null;
|
|
12110
|
+
}
|
|
12111
|
+
/**
|
|
12112
|
+
* Whether an expandable node is currently expanded.
|
|
12113
|
+
*
|
|
12114
|
+
* @returns Promise resolving to true if `aria-expanded="true"`.
|
|
12115
|
+
*/
|
|
12116
|
+
async isExpanded() {
|
|
12117
|
+
return (await (await this.host()).getAttribute('aria-expanded')) === 'true';
|
|
12118
|
+
}
|
|
12119
|
+
/**
|
|
12120
|
+
* Toggles the node's expansion by clicking its toggle surface — the built-in
|
|
12121
|
+
* toggle button on a nested node, or the row itself on a flat node. Throws for
|
|
12122
|
+
* nested nodes rendered with `hideToggle` (interact with the custom toggle
|
|
12123
|
+
* directly in that case).
|
|
12124
|
+
*/
|
|
12125
|
+
async toggle() {
|
|
12126
|
+
await (await this.getToggle()).click();
|
|
12127
|
+
}
|
|
12128
|
+
/**
|
|
12129
|
+
* Toggles the node together with all of its descendants (Alt+click on the
|
|
12130
|
+
* built-in nested-node toggle).
|
|
12131
|
+
*/
|
|
12132
|
+
async toggleWithDescendants() {
|
|
12133
|
+
await (await this.getToggle()).click({ alt: true });
|
|
12134
|
+
}
|
|
12135
|
+
/**
|
|
12136
|
+
* Expands the node if it is expandable and currently collapsed.
|
|
12137
|
+
*/
|
|
12138
|
+
async expand() {
|
|
12139
|
+
if ((await this.isExpandable()) && !(await this.isExpanded())) {
|
|
12140
|
+
await this.toggle();
|
|
12141
|
+
}
|
|
12142
|
+
}
|
|
12143
|
+
/**
|
|
12144
|
+
* Collapses the node if it is currently expanded.
|
|
12145
|
+
*/
|
|
12146
|
+
async collapse() {
|
|
12147
|
+
if (await this.isExpanded()) {
|
|
12148
|
+
await this.toggle();
|
|
12149
|
+
}
|
|
12150
|
+
}
|
|
12151
|
+
async getToggle() {
|
|
12152
|
+
const toggle = (await this.nestedToggle()) ?? (await this.flatRow());
|
|
12153
|
+
if (!toggle) {
|
|
12154
|
+
throw new Error('Node has no toggle surface (nested node with hideToggle?)');
|
|
12155
|
+
}
|
|
12156
|
+
return toggle;
|
|
12157
|
+
}
|
|
12158
|
+
}
|
|
12159
|
+
/**
|
|
12160
|
+
* Harness for interacting with `tn-tree` in tests.
|
|
12161
|
+
*
|
|
12162
|
+
* @example
|
|
12163
|
+
* ```typescript
|
|
12164
|
+
* const tree = await loader.getHarness(TnTreeHarness);
|
|
12165
|
+
* const roots = await tree.getNodes({ level: 0 });
|
|
12166
|
+
* await roots[0].expand();
|
|
12167
|
+
* expect(await tree.getNodeTexts()).toContain('child');
|
|
12168
|
+
* ```
|
|
12169
|
+
*/
|
|
12170
|
+
class TnTreeHarness extends ComponentHarness {
|
|
12171
|
+
static hostSelector = 'tn-tree';
|
|
12172
|
+
/**
|
|
12173
|
+
* Gets a `HarnessPredicate` that can be used to search for a tree with
|
|
12174
|
+
* specific attributes.
|
|
12175
|
+
*
|
|
12176
|
+
* @param options Options for filtering which instances are considered a match.
|
|
12177
|
+
* @returns A `HarnessPredicate` configured with the given options.
|
|
12178
|
+
*/
|
|
12179
|
+
static with(options = {}) {
|
|
12180
|
+
return new HarnessPredicate(TnTreeHarness, options);
|
|
12181
|
+
}
|
|
12182
|
+
/**
|
|
12183
|
+
* Gets the harnesses for the tree's nodes (all levels, in document order).
|
|
12184
|
+
*
|
|
12185
|
+
* Note: nested trees render collapsed subtrees into the DOM (hidden via CSS),
|
|
12186
|
+
* so nodes under a collapsed parent are still returned — filter by `level` or
|
|
12187
|
+
* check the parent's `isExpanded()` when visibility matters.
|
|
12188
|
+
*
|
|
12189
|
+
* @param filter Optional filter to narrow the nodes.
|
|
12190
|
+
* @returns Promise resolving to the matching node harnesses.
|
|
12191
|
+
*/
|
|
12192
|
+
async getNodes(filter = {}) {
|
|
12193
|
+
return this.locatorForAll(TnTreeNodeHarness.with(filter))();
|
|
12194
|
+
}
|
|
12195
|
+
/**
|
|
12196
|
+
* Gets the text of every node currently rendered, in document order.
|
|
12197
|
+
*
|
|
12198
|
+
* @returns Promise resolving to an array of node texts.
|
|
12199
|
+
*/
|
|
12200
|
+
async getNodeTexts() {
|
|
12201
|
+
const nodes = await this.getNodes();
|
|
12202
|
+
return Promise.all(nodes.map((node) => node.getText()));
|
|
12203
|
+
}
|
|
12204
|
+
}
|
|
11856
12205
|
|
|
11857
12206
|
/**
|
|
11858
12207
|
* Renders a single virtual tree row.
|
|
@@ -18857,5 +19206,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.1.0", ngImpor
|
|
|
18857
19206
|
* Generated bundle index. Do not edit.
|
|
18858
19207
|
*/
|
|
18859
19208
|
|
|
18860
|
-
export { CommonShortcuts, DEFAULT_THEME, DiskIconComponent, DiskType, FileSizePipe, InputType, LIGHT_THEME, LabelMarkupPipe, LabelTextPipe, LinuxModifierKeys, LinuxShortcuts, ModifierKeys, QuickShortcuts, ShortcutBuilder, StripMntPrefixPipe, THEME_MAP, THEME_STORAGE_KEY, TN_FORM_FIELD_CONTEXT, TN_FORM_FIELD_ERRORS, TN_TABLE_PAGER_DEFAULT_LABELS, TN_TABLE_PAGER_LABELS, TN_TEST_ATTR, TN_THEME_DEFINITIONS, TnAutocompleteComponent, TnAutocompleteHarness, TnBannerActionDirective, TnBannerComponent, TnBannerHarness, TnBrandedSpinnerComponent, TnButtonComponent, TnButtonHarness, TnButtonToggleComponent, TnButtonToggleGroupComponent, TnButtonToggleGroupHarness, TnButtonToggleHarness, TnCalendarComponent, TnCalendarHeaderComponent, TnCardComponent, TnCardFooterActionsDirective, TnCardHeaderActionsDirective, TnCardHeaderDirective, TnCellDefDirective, TnCheckboxComponent, TnCheckboxHarness, TnCheckboxLabelDirective, TnChipComponent, TnChipHarness, TnChipInputComponent, TnChipInputHarness, TnConfirmDialogComponent, TnDateInputComponent, TnDateInputHarness, TnDateRangeInputComponent, TnDateRangeInputHarness, TnDetailRowDefDirective, TnDialog, TnDialogHarness, TnDialogShellComponent, TnDialogTesting, TnDividerComponent, TnDividerDirective, TnDrawerComponent, TnDrawerContainerComponent, TnDrawerContainerHarness, TnDrawerContentComponent, TnDrawerHarness, TnEmptyComponent, TnEmptyHarness, TnExpansionPanelComponent, TnExpansionPanelHarness, TnFileInputComponent, TnFileInputHarness, TnFilePickerComponent, TnFilePickerPopupComponent, TnFormFieldComponent, TnFormFieldHarness, TnFormSectionComponent, TnFormSectionHarness, TnHeaderCellDefDirective, TnIconButtonComponent, TnIconButtonHarness, TnIconComponent, TnIconHarness, TnIconRegistryService, TnIconTesting, TnInputComponent, TnInputDirective, TnInputHarness, TnKeyboardShortcutComponent, TnKeyboardShortcutService, TnListAvatarDirective, TnListComponent, TnListIconDirective, TnListItemComponent, TnListItemLineDirective, TnListItemPrimaryDirective, TnListItemSecondaryDirective, TnListItemTitleDirective, TnListItemTrailingDirective, TnListOptionComponent, TnListSubheaderComponent, TnMenuActivateHoverDirective, TnMenuComponent, TnMenuHarness, TnMenuItemComponent, TnMenuTesting, TnMenuTriggerDirective, TnMonthViewComponent, TnMultiYearViewComponent, TnNestedTreeNodeComponent, TnParticleProgressBarComponent, TnProgressBarComponent, TnRadioComponent, TnRadioHarness, TnSelectComponent, TnSelectHarness, TnSelectionListComponent, TnSidePanelActionDirective, TnSidePanelComponent, TnSidePanelHarness, TnSidePanelHeaderActionDirective, TnSlideToggleComponent, TnSlideToggleHarness, TnSliderComponent, TnSliderThumbDirective, TnSliderWithLabelDirective, TnSpinnerComponent, TnSpriteLoaderService, TnStepComponent, TnStepperComponent, TnStepperHarness, TnStepperNextDirective, TnStepperPreviousDirective, TnTabComponent, TnTabHarness, TnTabPanelComponent, TnTabPanelHarness, TnTableColumnDirective, TnTableComponent, TnTableHarness, TnTablePagerComponent, TnTablePagerHarness, TnTabsComponent, TnTabsHarness, TnTestIdDirective, TnTheme, TnThemeService, TnTimeInputComponent, TnToastComponent, TnToastMock, TnToastPosition, TnToastRef, TnToastService, TnToastTesting, TnToastType, TnTooltipComponent, TnTooltipDirective, TnTreeComponent, TnTreeFlatDataSource, TnTreeFlattener, TnTreeNodeComponent, TnTreeNodeOutletDirective, TnTreeVirtualScrollNodeOutletDirective, TnTreeVirtualScrollViewComponent, TnTreeVirtualScrollViewHarness, TruncatePathPipe, WindowsModifierKeys, WindowsShortcuts, composeTestId, controlTestId, createLucideLibrary, createShortcut, defaultSpriteBasePath, defaultSpriteConfigPath, defaultTreeItemSize, formatSize, injectTnFormFieldAria, kebabTestSegment, labelMarkupToHtml, labelMarkupToText, libIconMarker, optionTestId, parseLabelMarkup, parseSize, registerLucideIcons, scopeTestId, setupLucideIntegration, tnIconMarker, writeTestId };
|
|
19209
|
+
export { CommonShortcuts, DEFAULT_THEME, DiskIconComponent, DiskType, FileSizePipe, InputType, LIGHT_THEME, LabelMarkupPipe, LabelTextPipe, LinuxModifierKeys, LinuxShortcuts, ModifierKeys, QuickShortcuts, ShortcutBuilder, StripMntPrefixPipe, THEME_MAP, THEME_STORAGE_KEY, TN_FORM_FIELD_CONTEXT, TN_FORM_FIELD_ERRORS, TN_TABLE_PAGER_DEFAULT_LABELS, TN_TABLE_PAGER_LABELS, TN_TEST_ATTR, TN_THEME_DEFINITIONS, TnAutocompleteComponent, TnAutocompleteHarness, TnBannerActionDirective, TnBannerComponent, TnBannerHarness, TnBrandedSpinnerComponent, TnButtonComponent, TnButtonHarness, TnButtonToggleComponent, TnButtonToggleGroupComponent, TnButtonToggleGroupHarness, TnButtonToggleHarness, TnCalendarComponent, TnCalendarHeaderComponent, TnCardComponent, TnCardFooterActionsDirective, TnCardHeaderActionsDirective, TnCardHeaderDirective, TnCellDefDirective, TnCheckboxComponent, TnCheckboxHarness, TnCheckboxLabelDirective, TnChipComponent, TnChipHarness, TnChipInputComponent, TnChipInputHarness, TnConfirmDialogComponent, TnDateInputComponent, TnDateInputHarness, TnDateRangeInputComponent, TnDateRangeInputHarness, TnDetailRowDefDirective, TnDialog, TnDialogHarness, TnDialogShellComponent, TnDialogTesting, TnDividerComponent, TnDividerDirective, TnDrawerComponent, TnDrawerContainerComponent, TnDrawerContainerHarness, TnDrawerContentComponent, TnDrawerHarness, TnEmptyComponent, TnEmptyHarness, TnExpansionPanelComponent, TnExpansionPanelHarness, TnFileInputComponent, TnFileInputHarness, TnFilePickerComponent, TnFilePickerPopupComponent, TnFormFieldComponent, TnFormFieldHarness, TnFormSectionComponent, TnFormSectionHarness, TnHeaderCellDefDirective, TnIconButtonComponent, TnIconButtonHarness, TnIconComponent, TnIconHarness, TnIconRegistryService, TnIconTesting, TnInputComponent, TnInputDirective, TnInputHarness, TnKeyboardShortcutComponent, TnKeyboardShortcutService, TnListAvatarDirective, TnListComponent, TnListIconDirective, TnListItemComponent, TnListItemLineDirective, TnListItemPrimaryDirective, TnListItemSecondaryDirective, TnListItemTitleDirective, TnListItemTrailingDirective, TnListOptionComponent, TnListSubheaderComponent, TnMenuActivateHoverDirective, TnMenuComponent, TnMenuHarness, TnMenuItemComponent, TnMenuTesting, TnMenuTriggerDirective, TnMonthViewComponent, TnMultiYearViewComponent, TnNestedTreeDataSource, TnNestedTreeNodeComponent, TnParticleProgressBarComponent, TnProgressBarComponent, TnRadioComponent, TnRadioHarness, TnSelectComponent, TnSelectHarness, TnSelectionListComponent, TnSidePanelActionDirective, TnSidePanelComponent, TnSidePanelHarness, TnSidePanelHeaderActionDirective, TnSlideToggleComponent, TnSlideToggleHarness, TnSliderComponent, TnSliderThumbDirective, TnSliderWithLabelDirective, TnSpinnerComponent, TnSpriteLoaderService, TnStepComponent, TnStepperComponent, TnStepperHarness, TnStepperNextDirective, TnStepperPreviousDirective, TnTabComponent, TnTabHarness, TnTabPanelComponent, TnTabPanelHarness, TnTableColumnDirective, TnTableComponent, TnTableHarness, TnTablePagerComponent, TnTablePagerHarness, TnTabsComponent, TnTabsHarness, TnTestIdDirective, TnTheme, TnThemeService, TnTimeInputComponent, TnToastComponent, TnToastMock, TnToastPosition, TnToastRef, TnToastService, TnToastTesting, TnToastType, TnTooltipComponent, TnTooltipDirective, TnTreeComponent, TnTreeFlatDataSource, TnTreeFlattener, TnTreeHarness, TnTreeNodeComponent, TnTreeNodeHarness, TnTreeNodeOutletDirective, TnTreeVirtualScrollNodeOutletDirective, TnTreeVirtualScrollViewComponent, TnTreeVirtualScrollViewHarness, TruncatePathPipe, WindowsModifierKeys, WindowsShortcuts, composeTestId, controlTestId, createFlatTreeControl, createLucideLibrary, createNestedTreeControl, createShortcut, defaultSpriteBasePath, defaultSpriteConfigPath, defaultTreeItemSize, formatSize, injectTnFormFieldAria, kebabTestSegment, labelMarkupToHtml, labelMarkupToText, libIconMarker, optionTestId, parseLabelMarkup, parseSize, registerLucideIcons, scopeTestId, setupLucideIntegration, tnIconMarker, writeTestId };
|
|
18861
19210
|
//# sourceMappingURL=truenas-ui-components.mjs.map
|