@neural-ui/core 1.4.0 → 1.5.0
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 +2 -1
- package/calendar/package.json +4 -0
- package/fesm2022/neural-ui-core-autocomplete.mjs +2 -2
- package/fesm2022/neural-ui-core-block-ui.mjs +2 -2
- package/fesm2022/neural-ui-core-button.mjs +2 -2
- package/fesm2022/neural-ui-core-button.mjs.map +1 -1
- package/fesm2022/neural-ui-core-calendar.mjs +551 -0
- package/fesm2022/neural-ui-core-calendar.mjs.map +1 -0
- package/fesm2022/neural-ui-core-chip.mjs +2 -2
- package/fesm2022/neural-ui-core-chip.mjs.map +1 -1
- package/fesm2022/neural-ui-core-confirm-dialog.mjs +2 -2
- package/fesm2022/neural-ui-core-confirm-dialog.mjs.map +1 -1
- package/fesm2022/neural-ui-core-dashboard-grid.mjs +2 -2
- package/fesm2022/neural-ui-core-dashboard-grid.mjs.map +1 -1
- package/fesm2022/neural-ui-core-date-input.mjs +2 -2
- package/fesm2022/neural-ui-core-date-input.mjs.map +1 -1
- package/fesm2022/neural-ui-core-image-gallery.mjs +224 -0
- package/fesm2022/neural-ui-core-image-gallery.mjs.map +1 -0
- package/fesm2022/neural-ui-core-input.mjs +2 -2
- package/fesm2022/neural-ui-core-kanban.mjs +270 -0
- package/fesm2022/neural-ui-core-kanban.mjs.map +1 -0
- package/fesm2022/neural-ui-core-meter-group.mjs +2 -2
- package/fesm2022/neural-ui-core-multiselect.mjs +13 -2
- package/fesm2022/neural-ui-core-multiselect.mjs.map +1 -1
- package/fesm2022/neural-ui-core-nav.mjs +2 -2
- package/fesm2022/neural-ui-core-nav.mjs.map +1 -1
- package/fesm2022/neural-ui-core-number-input.mjs +2 -2
- package/fesm2022/neural-ui-core-pagination.mjs +2 -2
- package/fesm2022/neural-ui-core-pagination.mjs.map +1 -1
- package/fesm2022/neural-ui-core-progress-bar.mjs +2 -2
- package/fesm2022/neural-ui-core-scheduler-gantt.mjs +289 -0
- package/fesm2022/neural-ui-core-scheduler-gantt.mjs.map +1 -0
- package/fesm2022/neural-ui-core-select.mjs +31 -9
- package/fesm2022/neural-ui-core-select.mjs.map +1 -1
- package/fesm2022/neural-ui-core-slider.mjs +2 -2
- package/fesm2022/neural-ui-core-slider.mjs.map +1 -1
- package/fesm2022/neural-ui-core-split-button.mjs +2 -2
- package/fesm2022/neural-ui-core-split-button.mjs.map +1 -1
- package/fesm2022/neural-ui-core-stepper.mjs +2 -2
- package/fesm2022/neural-ui-core-stepper.mjs.map +1 -1
- package/fesm2022/neural-ui-core-table.mjs +273 -19
- package/fesm2022/neural-ui-core-table.mjs.map +1 -1
- package/fesm2022/neural-ui-core-textarea.mjs +2 -2
- package/fesm2022/neural-ui-core-timeline-grid.mjs +215 -0
- package/fesm2022/neural-ui-core-timeline-grid.mjs.map +1 -0
- package/fesm2022/neural-ui-core-toggle-button-group.mjs +2 -2
- package/fesm2022/neural-ui-core-toggle-button-group.mjs.map +1 -1
- package/fesm2022/neural-ui-core-tree-table.mjs +262 -0
- package/fesm2022/neural-ui-core-tree-table.mjs.map +1 -0
- package/fesm2022/neural-ui-core-tree.mjs +413 -0
- package/fesm2022/neural-ui-core-tree.mjs.map +1 -0
- package/fesm2022/neural-ui-core-uploader.mjs +624 -0
- package/fesm2022/neural-ui-core-uploader.mjs.map +1 -0
- package/fesm2022/neural-ui-core-virtual-list.mjs +2 -2
- package/fesm2022/neural-ui-core-virtual-list.mjs.map +1 -1
- package/fesm2022/neural-ui-core.mjs +3 -1
- package/fesm2022/neural-ui-core.mjs.map +1 -1
- package/image-gallery/package.json +4 -0
- package/kanban/package.json +4 -0
- package/package.json +34 -2
- package/scheduler-gantt/package.json +4 -0
- package/styles/_tokens.scss +13 -4
- package/timeline-grid/package.json +4 -0
- package/tree/package.json +4 -0
- package/tree-table/package.json +4 -0
- package/types/neural-ui-core-calendar.d.ts +79 -0
- package/types/neural-ui-core-image-gallery.d.ts +26 -0
- package/types/neural-ui-core-kanban.d.ts +52 -0
- package/types/neural-ui-core-multiselect.d.ts +1 -0
- package/types/neural-ui-core-scheduler-gantt.d.ts +68 -0
- package/types/neural-ui-core-select.d.ts +2 -0
- package/types/neural-ui-core-table.d.ts +44 -2
- package/types/neural-ui-core-timeline-grid.d.ts +55 -0
- package/types/neural-ui-core-tree-table.d.ts +72 -0
- package/types/neural-ui-core-tree.d.ts +52 -0
- package/types/neural-ui-core-uploader.d.ts +98 -0
- package/uploader/package.json +4 -0
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { input, output, viewChild, signal, computed, effect, ChangeDetectionStrategy, ViewEncapsulation, Component } from '@angular/core';
|
|
3
|
+
import { NeuTableComponent } from '@neural-ui/core/table';
|
|
4
|
+
|
|
5
|
+
class NeuTreeTableComponent {
|
|
6
|
+
nodes = input([], ...(ngDevMode ? [{ debugName: "nodes" }] : /* istanbul ignore next */ []));
|
|
7
|
+
columns = input([], ...(ngDevMode ? [{ debugName: "columns" }] : /* istanbul ignore next */ []));
|
|
8
|
+
title = input('', ...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
|
|
9
|
+
treeColumnKey = input('label', ...(ngDevMode ? [{ debugName: "treeColumnKey" }] : /* istanbul ignore next */ []));
|
|
10
|
+
rowKey = input('id', ...(ngDevMode ? [{ debugName: "rowKey" }] : /* istanbul ignore next */ []));
|
|
11
|
+
tableAriaLabel = input('Tree table', ...(ngDevMode ? [{ debugName: "tableAriaLabel" }] : /* istanbul ignore next */ []));
|
|
12
|
+
searchPlaceholder = input('Search rows', ...(ngDevMode ? [{ debugName: "searchPlaceholder" }] : /* istanbul ignore next */ []));
|
|
13
|
+
emptyMessage = input('No rows found', ...(ngDevMode ? [{ debugName: "emptyMessage" }] : /* istanbul ignore next */ []));
|
|
14
|
+
expandLabel = input('Expand row', ...(ngDevMode ? [{ debugName: "expandLabel" }] : /* istanbul ignore next */ []));
|
|
15
|
+
collapseLabel = input('Collapse row', ...(ngDevMode ? [{ debugName: "collapseLabel" }] : /* istanbul ignore next */ []));
|
|
16
|
+
indentSize = input(18, ...(ngDevMode ? [{ debugName: "indentSize" }] : /* istanbul ignore next */ []));
|
|
17
|
+
searchable = input(true, ...(ngDevMode ? [{ debugName: "searchable" }] : /* istanbul ignore next */ []));
|
|
18
|
+
pagination = input(true, ...(ngDevMode ? [{ debugName: "pagination" }] : /* istanbul ignore next */ []));
|
|
19
|
+
selectable = input(false, ...(ngDevMode ? [{ debugName: "selectable" }] : /* istanbul ignore next */ []));
|
|
20
|
+
stickyHeader = input(false, ...(ngDevMode ? [{ debugName: "stickyHeader" }] : /* istanbul ignore next */ []));
|
|
21
|
+
stripedRows = input(false, ...(ngDevMode ? [{ debugName: "stripedRows" }] : /* istanbul ignore next */ []));
|
|
22
|
+
bordered = input(true, ...(ngDevMode ? [{ debugName: "bordered" }] : /* istanbul ignore next */ []));
|
|
23
|
+
roundedBorders = input(true, ...(ngDevMode ? [{ debugName: "roundedBorders" }] : /* istanbul ignore next */ []));
|
|
24
|
+
sortable = input(false, ...(ngDevMode ? [{ debugName: "sortable" }] : /* istanbul ignore next */ []));
|
|
25
|
+
showRowNumbers = input(false, ...(ngDevMode ? [{ debugName: "showRowNumbers" }] : /* istanbul ignore next */ []));
|
|
26
|
+
useUrlState = input(false, ...(ngDevMode ? [{ debugName: "useUrlState" }] : /* istanbul ignore next */ []));
|
|
27
|
+
density = input('normal', ...(ngDevMode ? [{ debugName: "density" }] : /* istanbul ignore next */ []));
|
|
28
|
+
pageSizeOptions = input([5, 10, 20], ...(ngDevMode ? [{ debugName: "pageSizeOptions" }] : /* istanbul ignore next */ []));
|
|
29
|
+
selectionChange = output();
|
|
30
|
+
nodeClick = output();
|
|
31
|
+
expansionChange = output();
|
|
32
|
+
treeCellTpl = viewChild('treeCellTpl', ...(ngDevMode ? [{ debugName: "treeCellTpl" }] : /* istanbul ignore next */ []));
|
|
33
|
+
expandedKeys = signal(new Set(), ...(ngDevMode ? [{ debugName: "expandedKeys" }] : /* istanbul ignore next */ []));
|
|
34
|
+
flatRows = computed(() => this.flattenNodes(this.nodes(), 0), ...(ngDevMode ? [{ debugName: "flatRows" }] : /* istanbul ignore next */ []));
|
|
35
|
+
resolvedColumns = computed(() => {
|
|
36
|
+
const tpl = this.treeCellTpl();
|
|
37
|
+
const treeColumnKey = this.treeColumnKey();
|
|
38
|
+
const columns = this.columns();
|
|
39
|
+
const hasConfiguredTreeColumn = columns.some((column) => column.key === treeColumnKey);
|
|
40
|
+
return columns.map((column, index) => {
|
|
41
|
+
const isTreeColumn = hasConfiguredTreeColumn ? column.key === treeColumnKey : index === 0;
|
|
42
|
+
if (!isTreeColumn) {
|
|
43
|
+
return column;
|
|
44
|
+
}
|
|
45
|
+
return {
|
|
46
|
+
...column,
|
|
47
|
+
sortable: column.sortable ?? false,
|
|
48
|
+
cellTemplate: tpl,
|
|
49
|
+
};
|
|
50
|
+
});
|
|
51
|
+
}, ...(ngDevMode ? [{ debugName: "resolvedColumns" }] : /* istanbul ignore next */ []));
|
|
52
|
+
constructor() {
|
|
53
|
+
effect(() => {
|
|
54
|
+
this.expandedKeys.set(this.collectExpandedKeys(this.nodes()));
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
toggleNode(node, event) {
|
|
58
|
+
event?.stopPropagation();
|
|
59
|
+
if (!node.children?.length || node.disabled) {
|
|
60
|
+
return;
|
|
61
|
+
}
|
|
62
|
+
const next = new Set(this.expandedKeys());
|
|
63
|
+
if (next.has(node.id)) {
|
|
64
|
+
next.delete(node.id);
|
|
65
|
+
}
|
|
66
|
+
else {
|
|
67
|
+
next.add(node.id);
|
|
68
|
+
}
|
|
69
|
+
this.expandedKeys.set(next);
|
|
70
|
+
this.expansionChange.emit([...next]);
|
|
71
|
+
}
|
|
72
|
+
onTableSelectionChange(rows) {
|
|
73
|
+
this.selectionChange.emit(rows.map((row) => this.asFlatRow(row).__treeNode));
|
|
74
|
+
}
|
|
75
|
+
onTableRowClick(row) {
|
|
76
|
+
this.nodeClick.emit(this.asFlatRow(row).__treeNode);
|
|
77
|
+
}
|
|
78
|
+
treeIndent(row) {
|
|
79
|
+
return row.__treeLevel * this.indentSize();
|
|
80
|
+
}
|
|
81
|
+
isTreeRowDisabled(row) {
|
|
82
|
+
return row.__treeDisabled;
|
|
83
|
+
}
|
|
84
|
+
treeToggleAriaLabel(row) {
|
|
85
|
+
return row.__treeExpanded ? this.collapseLabel() : this.expandLabel();
|
|
86
|
+
}
|
|
87
|
+
flattenNodes(nodes, level, parentId) {
|
|
88
|
+
const rows = [];
|
|
89
|
+
for (const node of nodes) {
|
|
90
|
+
const expanded = this.expandedKeys().has(node.id);
|
|
91
|
+
rows.push({
|
|
92
|
+
...(node.data ?? {}),
|
|
93
|
+
id: node.id,
|
|
94
|
+
label: node.label,
|
|
95
|
+
description: node.description,
|
|
96
|
+
badge: node.badge,
|
|
97
|
+
__treeLevel: level,
|
|
98
|
+
__treeHasChildren: !!node.children?.length,
|
|
99
|
+
__treeExpanded: expanded,
|
|
100
|
+
__treeDisabled: !!node.disabled,
|
|
101
|
+
__treeParentId: parentId,
|
|
102
|
+
__treeNode: node,
|
|
103
|
+
});
|
|
104
|
+
if (node.children?.length && expanded) {
|
|
105
|
+
rows.push(...this.flattenNodes(node.children, level + 1, node.id));
|
|
106
|
+
}
|
|
107
|
+
}
|
|
108
|
+
return rows;
|
|
109
|
+
}
|
|
110
|
+
collectExpandedKeys(nodes) {
|
|
111
|
+
const expanded = new Set();
|
|
112
|
+
for (const node of nodes) {
|
|
113
|
+
if (node.expanded) {
|
|
114
|
+
expanded.add(node.id);
|
|
115
|
+
}
|
|
116
|
+
if (node.children?.length) {
|
|
117
|
+
for (const childId of this.collectExpandedKeys(node.children)) {
|
|
118
|
+
expanded.add(childId);
|
|
119
|
+
}
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
return expanded;
|
|
123
|
+
}
|
|
124
|
+
asFlatRow(row) {
|
|
125
|
+
return row;
|
|
126
|
+
}
|
|
127
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: NeuTreeTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
128
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: NeuTreeTableComponent, isStandalone: true, selector: "neu-tree-table", inputs: { nodes: { classPropertyName: "nodes", publicName: "nodes", isSignal: true, isRequired: false, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, treeColumnKey: { classPropertyName: "treeColumnKey", publicName: "treeColumnKey", isSignal: true, isRequired: false, transformFunction: null }, rowKey: { classPropertyName: "rowKey", publicName: "rowKey", isSignal: true, isRequired: false, transformFunction: null }, tableAriaLabel: { classPropertyName: "tableAriaLabel", publicName: "tableAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, searchPlaceholder: { classPropertyName: "searchPlaceholder", publicName: "searchPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, expandLabel: { classPropertyName: "expandLabel", publicName: "expandLabel", isSignal: true, isRequired: false, transformFunction: null }, collapseLabel: { classPropertyName: "collapseLabel", publicName: "collapseLabel", isSignal: true, isRequired: false, transformFunction: null }, indentSize: { classPropertyName: "indentSize", publicName: "indentSize", isSignal: true, isRequired: false, transformFunction: null }, searchable: { classPropertyName: "searchable", publicName: "searchable", isSignal: true, isRequired: false, transformFunction: null }, pagination: { classPropertyName: "pagination", publicName: "pagination", isSignal: true, isRequired: false, transformFunction: null }, selectable: { classPropertyName: "selectable", publicName: "selectable", isSignal: true, isRequired: false, transformFunction: null }, stickyHeader: { classPropertyName: "stickyHeader", publicName: "stickyHeader", isSignal: true, isRequired: false, transformFunction: null }, stripedRows: { classPropertyName: "stripedRows", publicName: "stripedRows", isSignal: true, isRequired: false, transformFunction: null }, bordered: { classPropertyName: "bordered", publicName: "bordered", isSignal: true, isRequired: false, transformFunction: null }, roundedBorders: { classPropertyName: "roundedBorders", publicName: "roundedBorders", isSignal: true, isRequired: false, transformFunction: null }, sortable: { classPropertyName: "sortable", publicName: "sortable", isSignal: true, isRequired: false, transformFunction: null }, showRowNumbers: { classPropertyName: "showRowNumbers", publicName: "showRowNumbers", isSignal: true, isRequired: false, transformFunction: null }, useUrlState: { classPropertyName: "useUrlState", publicName: "useUrlState", isSignal: true, isRequired: false, transformFunction: null }, density: { classPropertyName: "density", publicName: "density", isSignal: true, isRequired: false, transformFunction: null }, pageSizeOptions: { classPropertyName: "pageSizeOptions", publicName: "pageSizeOptions", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selectionChange: "selectionChange", nodeClick: "nodeClick", expansionChange: "expansionChange" }, viewQueries: [{ propertyName: "treeCellTpl", first: true, predicate: ["treeCellTpl"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
129
|
+
<neu-table
|
|
130
|
+
class="neu-tree-table"
|
|
131
|
+
[columns]="resolvedColumns()"
|
|
132
|
+
[data]="flatRows()"
|
|
133
|
+
[title]="title()"
|
|
134
|
+
[rowKey]="rowKey()"
|
|
135
|
+
[tableAriaLabel]="tableAriaLabel()"
|
|
136
|
+
[searchable]="searchable()"
|
|
137
|
+
[searchPlaceholder]="searchPlaceholder()"
|
|
138
|
+
[pagination]="pagination()"
|
|
139
|
+
[pageSizeOptions]="pageSizeOptions()"
|
|
140
|
+
[selectable]="selectable()"
|
|
141
|
+
[stickyHeader]="stickyHeader()"
|
|
142
|
+
[stripedRows]="stripedRows()"
|
|
143
|
+
[bordered]="bordered()"
|
|
144
|
+
[roundedBorders]="roundedBorders()"
|
|
145
|
+
[sortable]="sortable()"
|
|
146
|
+
[showRowNumbers]="showRowNumbers()"
|
|
147
|
+
[density]="density()"
|
|
148
|
+
[useUrlState]="useUrlState()"
|
|
149
|
+
[emptyMessage]="emptyMessage()"
|
|
150
|
+
(selectionChange)="onTableSelectionChange($event)"
|
|
151
|
+
(rowClick)="onTableRowClick($event)"
|
|
152
|
+
/>
|
|
153
|
+
|
|
154
|
+
<ng-template #treeCellTpl let-row>
|
|
155
|
+
<div
|
|
156
|
+
class="neu-tree-table__cell"
|
|
157
|
+
[style.padding-inline-start.px]="treeIndent(row)"
|
|
158
|
+
[class.neu-tree-table__cell--disabled]="isTreeRowDisabled(row)"
|
|
159
|
+
>
|
|
160
|
+
@if (row.__treeHasChildren) {
|
|
161
|
+
<button
|
|
162
|
+
class="neu-tree-table__toggle"
|
|
163
|
+
type="button"
|
|
164
|
+
[class.neu-tree-table__toggle--open]="row.__treeExpanded"
|
|
165
|
+
[attr.aria-label]="treeToggleAriaLabel(row)"
|
|
166
|
+
(click)="toggleNode(row.__treeNode, $event)"
|
|
167
|
+
>
|
|
168
|
+
<svg viewBox="0 0 20 20" fill="none" aria-hidden="true">
|
|
169
|
+
<path d="m7 5 6 5-6 5" />
|
|
170
|
+
</svg>
|
|
171
|
+
</button>
|
|
172
|
+
} @else {
|
|
173
|
+
<span class="neu-tree-table__toggle neu-tree-table__toggle--placeholder"></span>
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
<div class="neu-tree-table__content">
|
|
177
|
+
<div class="neu-tree-table__main">
|
|
178
|
+
<span class="neu-tree-table__label">{{ row.label }}</span>
|
|
179
|
+
@if (row.badge) {
|
|
180
|
+
<span class="neu-tree-table__badge">{{ row.badge }}</span>
|
|
181
|
+
}
|
|
182
|
+
</div>
|
|
183
|
+
@if (row.description) {
|
|
184
|
+
<span class="neu-tree-table__description">{{ row.description }}</span>
|
|
185
|
+
}
|
|
186
|
+
</div>
|
|
187
|
+
</div>
|
|
188
|
+
</ng-template>
|
|
189
|
+
`, isInline: true, styles: [".neu-tree-table__cell{display:flex;align-items:flex-start;gap:.5rem;min-width:0}.neu-tree-table__cell--disabled{opacity:.56}.neu-tree-table__toggle{width:1.5rem;height:1.5rem;margin-top:.1rem;border:0;border-radius:999px;background:transparent;color:var(--neu-text-muted);display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;cursor:pointer;transition:background-color .16s ease,color .16s ease}.neu-tree-table__toggle svg{width:.9rem;height:.9rem;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;transition:transform .16s ease}.neu-tree-table__toggle:hover{background:color-mix(in srgb,var(--neu-primary) 10%,transparent);color:var(--neu-primary)}.neu-tree-table__toggle--open svg{transform:rotate(90deg)}.neu-tree-table__toggle--placeholder{cursor:default}.neu-tree-table__content{min-width:0;display:flex;flex-direction:column;gap:.125rem}.neu-tree-table__main{display:flex;align-items:center;gap:.5rem;min-width:0}.neu-tree-table__label{color:var(--neu-text);font-weight:600}.neu-tree-table__description{color:var(--neu-text-muted);font-size:.8125rem;line-height:1.4}.neu-tree-table__badge{display:inline-flex;align-items:center;padding:0 .45rem;min-height:1.2rem;border-radius:999px;background:color-mix(in srgb,var(--neu-primary) 12%,transparent);color:var(--neu-primary-dark, var(--neu-primary));font-size:.6875rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase}\n"], dependencies: [{ kind: "component", type: NeuTableComponent, selector: "neu-table", inputs: ["columns", "data", "pageSize", "pagination", "loading", "title", "emptyMessage", "skeletonRows", "searchable", "searchPlaceholder", "exactMatchable", "exactMatchLabel", "searchAriaLabel", "clearSearchAriaLabel", "clearFilterLabel", "previousPageAriaLabel", "nextPageAriaLabel", "pageSizeLabel", "pageSizeAriaLabel", "paginationAriaLabel", "exportCsvTitle", "exportJsonTitle", "clearSelectionLabel", "selectionSummaryLabel", "tableAriaLabel", "selectAllAriaLabel", "selectRowAriaLabel", "expandRowAriaLabel", "filterPlaceholder", "filterAriaPrefix", "allFilterOptionLabel", "ofLabel", "resultLabelSingular", "resultLabelPlural", "sortable", "selectable", "expandable", "expandMode", "exportable", "exportFileName", "pageSizeOptions", "stickyHeader", "virtualScroll", "virtualScrollVisibleItems", "resizableColumns", "rowKey", "bordered", "roundedBorders", "stripedRows", "density", "showRowNumbers", "rowClass", "footerRow", "emptyStateTemplate", "serverSide", "totalItems", "multiSort", "exportFormats", "exportColumns", "exportScope", "selectionActions", "pageParam", "searchParam", "sortParam", "sortDirParam", "multiSortParam", "useUrlState"], outputs: ["selectionChange", "rowClick", "rowDblClick", "actionClick", "selectionActionClick", "serverStateChange", "searchChange", "columnResize"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
190
|
+
}
|
|
191
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: NeuTreeTableComponent, decorators: [{
|
|
192
|
+
type: Component,
|
|
193
|
+
args: [{ selector: 'neu-tree-table', standalone: true, imports: [NeuTableComponent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: `
|
|
194
|
+
<neu-table
|
|
195
|
+
class="neu-tree-table"
|
|
196
|
+
[columns]="resolvedColumns()"
|
|
197
|
+
[data]="flatRows()"
|
|
198
|
+
[title]="title()"
|
|
199
|
+
[rowKey]="rowKey()"
|
|
200
|
+
[tableAriaLabel]="tableAriaLabel()"
|
|
201
|
+
[searchable]="searchable()"
|
|
202
|
+
[searchPlaceholder]="searchPlaceholder()"
|
|
203
|
+
[pagination]="pagination()"
|
|
204
|
+
[pageSizeOptions]="pageSizeOptions()"
|
|
205
|
+
[selectable]="selectable()"
|
|
206
|
+
[stickyHeader]="stickyHeader()"
|
|
207
|
+
[stripedRows]="stripedRows()"
|
|
208
|
+
[bordered]="bordered()"
|
|
209
|
+
[roundedBorders]="roundedBorders()"
|
|
210
|
+
[sortable]="sortable()"
|
|
211
|
+
[showRowNumbers]="showRowNumbers()"
|
|
212
|
+
[density]="density()"
|
|
213
|
+
[useUrlState]="useUrlState()"
|
|
214
|
+
[emptyMessage]="emptyMessage()"
|
|
215
|
+
(selectionChange)="onTableSelectionChange($event)"
|
|
216
|
+
(rowClick)="onTableRowClick($event)"
|
|
217
|
+
/>
|
|
218
|
+
|
|
219
|
+
<ng-template #treeCellTpl let-row>
|
|
220
|
+
<div
|
|
221
|
+
class="neu-tree-table__cell"
|
|
222
|
+
[style.padding-inline-start.px]="treeIndent(row)"
|
|
223
|
+
[class.neu-tree-table__cell--disabled]="isTreeRowDisabled(row)"
|
|
224
|
+
>
|
|
225
|
+
@if (row.__treeHasChildren) {
|
|
226
|
+
<button
|
|
227
|
+
class="neu-tree-table__toggle"
|
|
228
|
+
type="button"
|
|
229
|
+
[class.neu-tree-table__toggle--open]="row.__treeExpanded"
|
|
230
|
+
[attr.aria-label]="treeToggleAriaLabel(row)"
|
|
231
|
+
(click)="toggleNode(row.__treeNode, $event)"
|
|
232
|
+
>
|
|
233
|
+
<svg viewBox="0 0 20 20" fill="none" aria-hidden="true">
|
|
234
|
+
<path d="m7 5 6 5-6 5" />
|
|
235
|
+
</svg>
|
|
236
|
+
</button>
|
|
237
|
+
} @else {
|
|
238
|
+
<span class="neu-tree-table__toggle neu-tree-table__toggle--placeholder"></span>
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
<div class="neu-tree-table__content">
|
|
242
|
+
<div class="neu-tree-table__main">
|
|
243
|
+
<span class="neu-tree-table__label">{{ row.label }}</span>
|
|
244
|
+
@if (row.badge) {
|
|
245
|
+
<span class="neu-tree-table__badge">{{ row.badge }}</span>
|
|
246
|
+
}
|
|
247
|
+
</div>
|
|
248
|
+
@if (row.description) {
|
|
249
|
+
<span class="neu-tree-table__description">{{ row.description }}</span>
|
|
250
|
+
}
|
|
251
|
+
</div>
|
|
252
|
+
</div>
|
|
253
|
+
</ng-template>
|
|
254
|
+
`, styles: [".neu-tree-table__cell{display:flex;align-items:flex-start;gap:.5rem;min-width:0}.neu-tree-table__cell--disabled{opacity:.56}.neu-tree-table__toggle{width:1.5rem;height:1.5rem;margin-top:.1rem;border:0;border-radius:999px;background:transparent;color:var(--neu-text-muted);display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;cursor:pointer;transition:background-color .16s ease,color .16s ease}.neu-tree-table__toggle svg{width:.9rem;height:.9rem;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;transition:transform .16s ease}.neu-tree-table__toggle:hover{background:color-mix(in srgb,var(--neu-primary) 10%,transparent);color:var(--neu-primary)}.neu-tree-table__toggle--open svg{transform:rotate(90deg)}.neu-tree-table__toggle--placeholder{cursor:default}.neu-tree-table__content{min-width:0;display:flex;flex-direction:column;gap:.125rem}.neu-tree-table__main{display:flex;align-items:center;gap:.5rem;min-width:0}.neu-tree-table__label{color:var(--neu-text);font-weight:600}.neu-tree-table__description{color:var(--neu-text-muted);font-size:.8125rem;line-height:1.4}.neu-tree-table__badge{display:inline-flex;align-items:center;padding:0 .45rem;min-height:1.2rem;border-radius:999px;background:color-mix(in srgb,var(--neu-primary) 12%,transparent);color:var(--neu-primary-dark, var(--neu-primary));font-size:.6875rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase}\n"] }]
|
|
255
|
+
}], ctorParameters: () => [], propDecorators: { nodes: [{ type: i0.Input, args: [{ isSignal: true, alias: "nodes", required: false }] }], columns: [{ type: i0.Input, args: [{ isSignal: true, alias: "columns", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], treeColumnKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "treeColumnKey", required: false }] }], rowKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "rowKey", required: false }] }], tableAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "tableAriaLabel", required: false }] }], searchPlaceholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchPlaceholder", required: false }] }], emptyMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyMessage", required: false }] }], expandLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "expandLabel", required: false }] }], collapseLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapseLabel", required: false }] }], indentSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "indentSize", required: false }] }], searchable: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchable", required: false }] }], pagination: [{ type: i0.Input, args: [{ isSignal: true, alias: "pagination", required: false }] }], selectable: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectable", required: false }] }], stickyHeader: [{ type: i0.Input, args: [{ isSignal: true, alias: "stickyHeader", required: false }] }], stripedRows: [{ type: i0.Input, args: [{ isSignal: true, alias: "stripedRows", required: false }] }], bordered: [{ type: i0.Input, args: [{ isSignal: true, alias: "bordered", required: false }] }], roundedBorders: [{ type: i0.Input, args: [{ isSignal: true, alias: "roundedBorders", required: false }] }], sortable: [{ type: i0.Input, args: [{ isSignal: true, alias: "sortable", required: false }] }], showRowNumbers: [{ type: i0.Input, args: [{ isSignal: true, alias: "showRowNumbers", required: false }] }], useUrlState: [{ type: i0.Input, args: [{ isSignal: true, alias: "useUrlState", required: false }] }], density: [{ type: i0.Input, args: [{ isSignal: true, alias: "density", required: false }] }], pageSizeOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageSizeOptions", required: false }] }], selectionChange: [{ type: i0.Output, args: ["selectionChange"] }], nodeClick: [{ type: i0.Output, args: ["nodeClick"] }], expansionChange: [{ type: i0.Output, args: ["expansionChange"] }], treeCellTpl: [{ type: i0.ViewChild, args: ['treeCellTpl', { isSignal: true }] }] } });
|
|
256
|
+
|
|
257
|
+
/**
|
|
258
|
+
* Generated bundle index. Do not edit.
|
|
259
|
+
*/
|
|
260
|
+
|
|
261
|
+
export { NeuTreeTableComponent };
|
|
262
|
+
//# sourceMappingURL=neural-ui-core-tree-table.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"neural-ui-core-tree-table.mjs","sources":["../../../../projects/ui-core/tree-table/neu-tree-table.component.ts","../../../../projects/ui-core/tree-table/neural-ui-core-tree-table.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n TemplateRef,\n ViewEncapsulation,\n computed,\n effect,\n input,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { NeuTableComponent, NeuTableColumn } from '@neural-ui/core/table';\n\nexport interface NeuTreeTableNode<T extends Record<string, unknown> = Record<string, unknown>> {\n id: string;\n label: string;\n description?: string;\n badge?: string;\n children?: NeuTreeTableNode<T>[];\n expanded?: boolean;\n disabled?: boolean;\n data?: T;\n}\n\nexport interface NeuTreeTableRow<\n T extends Record<string, unknown> = Record<string, unknown>,\n> extends Record<string, unknown> {\n id: string;\n label: string;\n description?: string;\n badge?: string;\n __treeLevel: number;\n __treeHasChildren: boolean;\n __treeExpanded: boolean;\n __treeDisabled: boolean;\n __treeParentId?: string;\n __treeNode: NeuTreeTableNode<T>;\n}\n\n@Component({\n selector: 'neu-tree-table',\n standalone: true,\n imports: [NeuTableComponent],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n template: `\n <neu-table\n class=\"neu-tree-table\"\n [columns]=\"resolvedColumns()\"\n [data]=\"flatRows()\"\n [title]=\"title()\"\n [rowKey]=\"rowKey()\"\n [tableAriaLabel]=\"tableAriaLabel()\"\n [searchable]=\"searchable()\"\n [searchPlaceholder]=\"searchPlaceholder()\"\n [pagination]=\"pagination()\"\n [pageSizeOptions]=\"pageSizeOptions()\"\n [selectable]=\"selectable()\"\n [stickyHeader]=\"stickyHeader()\"\n [stripedRows]=\"stripedRows()\"\n [bordered]=\"bordered()\"\n [roundedBorders]=\"roundedBorders()\"\n [sortable]=\"sortable()\"\n [showRowNumbers]=\"showRowNumbers()\"\n [density]=\"density()\"\n [useUrlState]=\"useUrlState()\"\n [emptyMessage]=\"emptyMessage()\"\n (selectionChange)=\"onTableSelectionChange($event)\"\n (rowClick)=\"onTableRowClick($event)\"\n />\n\n <ng-template #treeCellTpl let-row>\n <div\n class=\"neu-tree-table__cell\"\n [style.padding-inline-start.px]=\"treeIndent(row)\"\n [class.neu-tree-table__cell--disabled]=\"isTreeRowDisabled(row)\"\n >\n @if (row.__treeHasChildren) {\n <button\n class=\"neu-tree-table__toggle\"\n type=\"button\"\n [class.neu-tree-table__toggle--open]=\"row.__treeExpanded\"\n [attr.aria-label]=\"treeToggleAriaLabel(row)\"\n (click)=\"toggleNode(row.__treeNode, $event)\"\n >\n <svg viewBox=\"0 0 20 20\" fill=\"none\" aria-hidden=\"true\">\n <path d=\"m7 5 6 5-6 5\" />\n </svg>\n </button>\n } @else {\n <span class=\"neu-tree-table__toggle neu-tree-table__toggle--placeholder\"></span>\n }\n\n <div class=\"neu-tree-table__content\">\n <div class=\"neu-tree-table__main\">\n <span class=\"neu-tree-table__label\">{{ row.label }}</span>\n @if (row.badge) {\n <span class=\"neu-tree-table__badge\">{{ row.badge }}</span>\n }\n </div>\n @if (row.description) {\n <span class=\"neu-tree-table__description\">{{ row.description }}</span>\n }\n </div>\n </div>\n </ng-template>\n `,\n styleUrl: './neu-tree-table.component.scss',\n})\nexport class NeuTreeTableComponent {\n readonly nodes = input<NeuTreeTableNode[]>([]);\n readonly columns = input<NeuTableColumn<Record<string, unknown>>[]>([]);\n readonly title = input('');\n readonly treeColumnKey = input('label');\n readonly rowKey = input('id');\n readonly tableAriaLabel = input('Tree table');\n readonly searchPlaceholder = input('Search rows');\n readonly emptyMessage = input('No rows found');\n readonly expandLabel = input('Expand row');\n readonly collapseLabel = input('Collapse row');\n readonly indentSize = input(18);\n\n readonly searchable = input(true);\n readonly pagination = input(true);\n readonly selectable = input(false);\n readonly stickyHeader = input(false);\n readonly stripedRows = input(false);\n readonly bordered = input(true);\n readonly roundedBorders = input(true);\n readonly sortable = input(false);\n readonly showRowNumbers = input(false);\n readonly useUrlState = input(false);\n readonly density = input<'compact' | 'normal' | 'relaxed'>('normal');\n readonly pageSizeOptions = input<number[]>([5, 10, 20]);\n\n readonly selectionChange = output<NeuTreeTableNode[]>();\n readonly nodeClick = output<NeuTreeTableNode>();\n readonly expansionChange = output<string[]>();\n\n private readonly treeCellTpl = viewChild<TemplateRef<unknown>>('treeCellTpl');\n private readonly expandedKeys = signal<Set<string>>(new Set());\n\n readonly flatRows = computed<Record<string, unknown>[]>(() => this.flattenNodes(this.nodes(), 0));\n\n readonly resolvedColumns = computed<NeuTableColumn<Record<string, unknown>>[]>(() => {\n const tpl = this.treeCellTpl();\n const treeColumnKey = this.treeColumnKey();\n const columns = this.columns();\n const hasConfiguredTreeColumn = columns.some((column) => column.key === treeColumnKey);\n\n return columns.map((column, index) => {\n const isTreeColumn = hasConfiguredTreeColumn ? column.key === treeColumnKey : index === 0;\n if (!isTreeColumn) {\n return column;\n }\n\n return {\n ...column,\n sortable: column.sortable ?? false,\n cellTemplate: tpl as\n | TemplateRef<{\n $implicit: Record<string, unknown>;\n row: Record<string, unknown>;\n column: NeuTableColumn<Record<string, unknown>>;\n }>\n | undefined,\n };\n });\n });\n\n constructor() {\n effect(() => {\n this.expandedKeys.set(this.collectExpandedKeys(this.nodes()));\n });\n }\n\n toggleNode(node: NeuTreeTableNode, event?: Event): void {\n event?.stopPropagation();\n if (!node.children?.length || node.disabled) {\n return;\n }\n\n const next = new Set(this.expandedKeys());\n if (next.has(node.id)) {\n next.delete(node.id);\n } else {\n next.add(node.id);\n }\n this.expandedKeys.set(next);\n this.expansionChange.emit([...next]);\n }\n\n onTableSelectionChange(rows: Record<string, unknown>[]): void {\n this.selectionChange.emit(rows.map((row) => this.asFlatRow(row).__treeNode));\n }\n\n onTableRowClick(row: Record<string, unknown>): void {\n this.nodeClick.emit(this.asFlatRow(row).__treeNode);\n }\n\n treeIndent(row: NeuTreeTableRow): number {\n return row.__treeLevel * this.indentSize();\n }\n\n isTreeRowDisabled(row: NeuTreeTableRow): boolean {\n return row.__treeDisabled;\n }\n\n treeToggleAriaLabel(row: NeuTreeTableRow): string {\n return row.__treeExpanded ? this.collapseLabel() : this.expandLabel();\n }\n\n private flattenNodes(\n nodes: NeuTreeTableNode[],\n level: number,\n parentId?: string,\n ): Record<string, unknown>[] {\n const rows: Record<string, unknown>[] = [];\n\n for (const node of nodes) {\n const expanded = this.expandedKeys().has(node.id);\n rows.push({\n ...(node.data ?? {}),\n id: node.id,\n label: node.label,\n description: node.description,\n badge: node.badge,\n __treeLevel: level,\n __treeHasChildren: !!node.children?.length,\n __treeExpanded: expanded,\n __treeDisabled: !!node.disabled,\n __treeParentId: parentId,\n __treeNode: node,\n });\n\n if (node.children?.length && expanded) {\n rows.push(...this.flattenNodes(node.children, level + 1, node.id));\n }\n }\n\n return rows;\n }\n\n private collectExpandedKeys(nodes: NeuTreeTableNode[]): Set<string> {\n const expanded = new Set<string>();\n for (const node of nodes) {\n if (node.expanded) {\n expanded.add(node.id);\n }\n if (node.children?.length) {\n for (const childId of this.collectExpandedKeys(node.children)) {\n expanded.add(childId);\n }\n }\n }\n return expanded;\n }\n\n private asFlatRow(row: Record<string, unknown>): NeuTreeTableRow {\n return row as NeuTreeTableRow;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;MA8Ga,qBAAqB,CAAA;AACvB,IAAA,KAAK,GAAG,KAAK,CAAqB,EAAE,4EAAC;AACrC,IAAA,OAAO,GAAG,KAAK,CAA4C,EAAE,8EAAC;AAC9D,IAAA,KAAK,GAAG,KAAK,CAAC,EAAE,4EAAC;AACjB,IAAA,aAAa,GAAG,KAAK,CAAC,OAAO,oFAAC;AAC9B,IAAA,MAAM,GAAG,KAAK,CAAC,IAAI,6EAAC;AACpB,IAAA,cAAc,GAAG,KAAK,CAAC,YAAY,qFAAC;AACpC,IAAA,iBAAiB,GAAG,KAAK,CAAC,aAAa,wFAAC;AACxC,IAAA,YAAY,GAAG,KAAK,CAAC,eAAe,mFAAC;AACrC,IAAA,WAAW,GAAG,KAAK,CAAC,YAAY,kFAAC;AACjC,IAAA,aAAa,GAAG,KAAK,CAAC,cAAc,oFAAC;AACrC,IAAA,UAAU,GAAG,KAAK,CAAC,EAAE,iFAAC;AAEtB,IAAA,UAAU,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