@neural-ui/core 1.7.1 → 1.7.3
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/bottom-sheet/package.json +4 -0
- package/confirm-popup/package.json +4 -0
- package/data-view/package.json +4 -0
- package/fesm2022/neural-ui-core-alert.mjs +48 -21
- package/fesm2022/neural-ui-core-alert.mjs.map +1 -1
- package/fesm2022/neural-ui-core-autocomplete.mjs +153 -71
- package/fesm2022/neural-ui-core-autocomplete.mjs.map +1 -1
- package/fesm2022/neural-ui-core-block-ui.mjs +2 -2
- package/fesm2022/neural-ui-core-block-ui.mjs.map +1 -1
- package/fesm2022/neural-ui-core-bottom-sheet.mjs +121 -0
- package/fesm2022/neural-ui-core-bottom-sheet.mjs.map +1 -0
- package/fesm2022/neural-ui-core-breadcrumb.mjs +2 -2
- package/fesm2022/neural-ui-core-breadcrumb.mjs.map +1 -1
- 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 +2 -2
- package/fesm2022/neural-ui-core-calendar.mjs.map +1 -1
- package/fesm2022/neural-ui-core-checkbox.mjs +69 -39
- package/fesm2022/neural-ui-core-checkbox.mjs.map +1 -1
- package/fesm2022/neural-ui-core-chip.mjs +2 -2
- package/fesm2022/neural-ui-core-chip.mjs.map +1 -1
- package/fesm2022/neural-ui-core-code-block.mjs +2 -2
- package/fesm2022/neural-ui-core-code-block.mjs.map +1 -1
- package/fesm2022/neural-ui-core-confirm-popup.mjs +105 -0
- package/fesm2022/neural-ui-core-confirm-popup.mjs.map +1 -0
- package/fesm2022/neural-ui-core-dashboard-grid.mjs +9 -3
- package/fesm2022/neural-ui-core-dashboard-grid.mjs.map +1 -1
- package/fesm2022/neural-ui-core-data-view.mjs +386 -0
- package/fesm2022/neural-ui-core-data-view.mjs.map +1 -0
- package/fesm2022/neural-ui-core-date-input.mjs +185 -10
- package/fesm2022/neural-ui-core-date-input.mjs.map +1 -1
- package/fesm2022/neural-ui-core-empty-state.mjs +19 -5
- package/fesm2022/neural-ui-core-empty-state.mjs.map +1 -1
- package/fesm2022/neural-ui-core-form-field.mjs +81 -0
- package/fesm2022/neural-ui-core-form-field.mjs.map +1 -0
- package/fesm2022/neural-ui-core-inline-editor.mjs +428 -0
- package/fesm2022/neural-ui-core-inline-editor.mjs.map +1 -0
- package/fesm2022/neural-ui-core-input-mask.mjs +110 -0
- package/fesm2022/neural-ui-core-input-mask.mjs.map +1 -0
- package/fesm2022/neural-ui-core-input.mjs +2 -2
- package/fesm2022/neural-ui-core-input.mjs.map +1 -1
- package/fesm2022/neural-ui-core-listbox.mjs +219 -0
- package/fesm2022/neural-ui-core-listbox.mjs.map +1 -0
- package/fesm2022/neural-ui-core-menu.mjs +229 -0
- package/fesm2022/neural-ui-core-menu.mjs.map +1 -0
- package/fesm2022/neural-ui-core-modal.mjs +34 -10
- package/fesm2022/neural-ui-core-modal.mjs.map +1 -1
- package/fesm2022/neural-ui-core-multiselect.mjs +170 -179
- package/fesm2022/neural-ui-core-multiselect.mjs.map +1 -1
- package/fesm2022/neural-ui-core-number-input.mjs +2 -2
- package/fesm2022/neural-ui-core-number-input.mjs.map +1 -1
- package/fesm2022/neural-ui-core-panel.mjs +92 -0
- package/fesm2022/neural-ui-core-panel.mjs.map +1 -0
- package/fesm2022/neural-ui-core-password.mjs +106 -0
- package/fesm2022/neural-ui-core-password.mjs.map +1 -0
- package/fesm2022/neural-ui-core-pick-list.mjs +133 -0
- package/fesm2022/neural-ui-core-pick-list.mjs.map +1 -0
- package/fesm2022/neural-ui-core-select.mjs +128 -166
- package/fesm2022/neural-ui-core-select.mjs.map +1 -1
- package/fesm2022/neural-ui-core-sidebar.mjs +14 -3
- package/fesm2022/neural-ui-core-sidebar.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-spinner.mjs +19 -9
- package/fesm2022/neural-ui-core-spinner.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-table.mjs +503 -62
- package/fesm2022/neural-ui-core-table.mjs.map +1 -1
- package/fesm2022/neural-ui-core-tabs.mjs +11 -4
- package/fesm2022/neural-ui-core-tabs.mjs.map +1 -1
- package/fesm2022/neural-ui-core-tags.mjs +134 -0
- package/fesm2022/neural-ui-core-tags.mjs.map +1 -0
- package/fesm2022/neural-ui-core-textarea.mjs +2 -2
- package/fesm2022/neural-ui-core-textarea.mjs.map +1 -1
- 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-toolbar.mjs +16 -4
- package/fesm2022/neural-ui-core-toolbar.mjs.map +1 -1
- package/fesm2022/neural-ui-core-tree-select.mjs +259 -0
- package/fesm2022/neural-ui-core-tree-select.mjs.map +1 -0
- package/fesm2022/neural-ui-core-tree-table.mjs +267 -8
- package/fesm2022/neural-ui-core-tree-table.mjs.map +1 -1
- package/fesm2022/neural-ui-core-tree.mjs +15 -14
- package/fesm2022/neural-ui-core-tree.mjs.map +1 -1
- package/fesm2022/neural-ui-core-uploader.mjs +103 -12
- package/fesm2022/neural-ui-core-uploader.mjs.map +1 -1
- package/form-field/package.json +4 -0
- package/inline-editor/package.json +4 -0
- package/input-mask/package.json +4 -0
- package/listbox/package.json +4 -0
- package/menu/package.json +4 -0
- package/package.json +53 -1
- package/panel/package.json +4 -0
- package/password/package.json +4 -0
- package/pick-list/package.json +4 -0
- package/styles/_tokens.scss +33 -17
- package/tags/package.json +4 -0
- package/tree-select/package.json +4 -0
- package/types/neural-ui-core-alert.d.ts +2 -1
- package/types/neural-ui-core-autocomplete.d.ts +22 -2
- package/types/neural-ui-core-bottom-sheet.d.ts +20 -0
- package/types/neural-ui-core-checkbox.d.ts +6 -1
- package/types/neural-ui-core-confirm-popup.d.ts +38 -0
- package/types/neural-ui-core-dashboard-grid.d.ts +1 -0
- package/types/neural-ui-core-data-view.d.ts +95 -0
- package/types/neural-ui-core-date-input.d.ts +35 -5
- package/types/neural-ui-core-empty-state.d.ts +11 -1
- package/types/neural-ui-core-form-field.d.ts +33 -0
- package/types/neural-ui-core-inline-editor.d.ts +66 -0
- package/types/neural-ui-core-input-mask.d.ts +26 -0
- package/types/neural-ui-core-listbox.d.ts +54 -0
- package/types/neural-ui-core-menu.d.ts +49 -0
- package/types/neural-ui-core-modal.d.ts +10 -2
- package/types/neural-ui-core-multiselect.d.ts +10 -1
- package/types/neural-ui-core-panel.d.ts +25 -0
- package/types/neural-ui-core-password.d.ts +29 -0
- package/types/neural-ui-core-pick-list.d.ts +40 -0
- package/types/neural-ui-core-select.d.ts +7 -1
- package/types/neural-ui-core-sidebar.d.ts +5 -1
- package/types/neural-ui-core-spinner.d.ts +4 -2
- package/types/neural-ui-core-table.d.ts +89 -5
- package/types/neural-ui-core-tabs.d.ts +2 -0
- package/types/neural-ui-core-tags.d.ts +32 -0
- package/types/neural-ui-core-toolbar.d.ts +8 -2
- package/types/neural-ui-core-tree-select.d.ts +57 -0
- package/types/neural-ui-core-tree-table.d.ts +111 -4
- package/types/neural-ui-core-tree.d.ts +1 -1
- package/types/neural-ui-core-uploader.d.ts +26 -3
|
@@ -0,0 +1,386 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Directive, inject, DestroyRef, input, output, contentChild, signal, computed, effect, ChangeDetectionStrategy, ViewEncapsulation, Component } from '@angular/core';
|
|
3
|
+
import { NgTemplateOutlet } from '@angular/common';
|
|
4
|
+
import * as i1 from '@angular/forms';
|
|
5
|
+
import { FormControl, ReactiveFormsModule } from '@angular/forms';
|
|
6
|
+
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
7
|
+
import { NeuButtonComponent } from '@neural-ui/core/button';
|
|
8
|
+
import { NeuSelectComponent } from '@neural-ui/core/select';
|
|
9
|
+
|
|
10
|
+
class NeuDataViewItemDirective {
|
|
11
|
+
templateRef;
|
|
12
|
+
constructor(templateRef) {
|
|
13
|
+
this.templateRef = templateRef;
|
|
14
|
+
}
|
|
15
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: NeuDataViewItemDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
16
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.17", type: NeuDataViewItemDirective, isStandalone: true, selector: "ng-template[neuDataViewItem]", ngImport: i0 });
|
|
17
|
+
}
|
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: NeuDataViewItemDirective, decorators: [{
|
|
19
|
+
type: Directive,
|
|
20
|
+
args: [{ selector: 'ng-template[neuDataViewItem]' }]
|
|
21
|
+
}], ctorParameters: () => [{ type: i0.TemplateRef }] });
|
|
22
|
+
class NeuDataViewHeaderDirective {
|
|
23
|
+
templateRef;
|
|
24
|
+
constructor(templateRef) {
|
|
25
|
+
this.templateRef = templateRef;
|
|
26
|
+
}
|
|
27
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: NeuDataViewHeaderDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
28
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.17", type: NeuDataViewHeaderDirective, isStandalone: true, selector: "ng-template[neuDataViewHeader]", ngImport: i0 });
|
|
29
|
+
}
|
|
30
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: NeuDataViewHeaderDirective, decorators: [{
|
|
31
|
+
type: Directive,
|
|
32
|
+
args: [{ selector: 'ng-template[neuDataViewHeader]' }]
|
|
33
|
+
}], ctorParameters: () => [{ type: i0.TemplateRef }] });
|
|
34
|
+
class NeuDataViewFooterDirective {
|
|
35
|
+
templateRef;
|
|
36
|
+
constructor(templateRef) {
|
|
37
|
+
this.templateRef = templateRef;
|
|
38
|
+
}
|
|
39
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: NeuDataViewFooterDirective, deps: [{ token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
40
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "21.2.17", type: NeuDataViewFooterDirective, isStandalone: true, selector: "ng-template[neuDataViewFooter]", ngImport: i0 });
|
|
41
|
+
}
|
|
42
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: NeuDataViewFooterDirective, decorators: [{
|
|
43
|
+
type: Directive,
|
|
44
|
+
args: [{ selector: 'ng-template[neuDataViewFooter]' }]
|
|
45
|
+
}], ctorParameters: () => [{ type: i0.TemplateRef }] });
|
|
46
|
+
class NeuDataViewComponent {
|
|
47
|
+
_destroyRef = inject(DestroyRef);
|
|
48
|
+
items = input([], ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
|
|
49
|
+
mode = input('list', ...(ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []));
|
|
50
|
+
modes = input(['list', 'grid', 'table'], ...(ngDevMode ? [{ debugName: "modes" }] : /* istanbul ignore next */ []));
|
|
51
|
+
viewSwitcher = input(true, ...(ngDevMode ? [{ debugName: "viewSwitcher" }] : /* istanbul ignore next */ []));
|
|
52
|
+
viewAriaLabel = input('View mode', ...(ngDevMode ? [{ debugName: "viewAriaLabel" }] : /* istanbul ignore next */ []));
|
|
53
|
+
searchable = input(true, ...(ngDevMode ? [{ debugName: "searchable" }] : /* istanbul ignore next */ []));
|
|
54
|
+
searchFields = input([], ...(ngDevMode ? [{ debugName: "searchFields" }] : /* istanbul ignore next */ []));
|
|
55
|
+
searchPlaceholder = input('Search...', ...(ngDevMode ? [{ debugName: "searchPlaceholder" }] : /* istanbul ignore next */ []));
|
|
56
|
+
searchAriaLabel = input('Search items', ...(ngDevMode ? [{ debugName: "searchAriaLabel" }] : /* istanbul ignore next */ []));
|
|
57
|
+
sortOptions = input([], ...(ngDevMode ? [{ debugName: "sortOptions" }] : /* istanbul ignore next */ []));
|
|
58
|
+
sortAriaLabel = input('Sort items', ...(ngDevMode ? [{ debugName: "sortAriaLabel" }] : /* istanbul ignore next */ []));
|
|
59
|
+
pagination = input(true, ...(ngDevMode ? [{ debugName: "pagination" }] : /* istanbul ignore next */ []));
|
|
60
|
+
pageSize = input(9, ...(ngDevMode ? [{ debugName: "pageSize" }] : /* istanbul ignore next */ []));
|
|
61
|
+
emptyLabel = input('No items found', ...(ngDevMode ? [{ debugName: "emptyLabel" }] : /* istanbul ignore next */ []));
|
|
62
|
+
loading = input(false, ...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
|
|
63
|
+
loadingLabel = input('Loading...', ...(ngDevMode ? [{ debugName: "loadingLabel" }] : /* istanbul ignore next */ []));
|
|
64
|
+
previousLabel = input('Previous', ...(ngDevMode ? [{ debugName: "previousLabel" }] : /* istanbul ignore next */ []));
|
|
65
|
+
nextLabel = input('Next', ...(ngDevMode ? [{ debugName: "nextLabel" }] : /* istanbul ignore next */ []));
|
|
66
|
+
paginationAriaLabel = input('Data view pagination', ...(ngDevMode ? [{ debugName: "paginationAriaLabel" }] : /* istanbul ignore next */ []));
|
|
67
|
+
trackBy = input((index) => index, ...(ngDevMode ? [{ debugName: "trackBy" }] : /* istanbul ignore next */ []));
|
|
68
|
+
modeChange = output();
|
|
69
|
+
searchChange = output();
|
|
70
|
+
sortChange = output();
|
|
71
|
+
pageChange = output();
|
|
72
|
+
itemTpl = contentChild(NeuDataViewItemDirective, ...(ngDevMode ? [{ debugName: "itemTpl" }] : /* istanbul ignore next */ []));
|
|
73
|
+
headerTpl = contentChild(NeuDataViewHeaderDirective, ...(ngDevMode ? [{ debugName: "headerTpl" }] : /* istanbul ignore next */ []));
|
|
74
|
+
footerTpl = contentChild(NeuDataViewFooterDirective, ...(ngDevMode ? [{ debugName: "footerTpl" }] : /* istanbul ignore next */ []));
|
|
75
|
+
query = signal('', ...(ngDevMode ? [{ debugName: "query" }] : /* istanbul ignore next */ []));
|
|
76
|
+
page = signal(1, ...(ngDevMode ? [{ debugName: "page" }] : /* istanbul ignore next */ []));
|
|
77
|
+
sortKey = signal('', ...(ngDevMode ? [{ debugName: "sortKey" }] : /* istanbul ignore next */ []));
|
|
78
|
+
_sortControl = new FormControl('');
|
|
79
|
+
_selectSortOptions = computed(() => this.sortOptions().map((option) => ({ label: option.label, value: option.value })), ...(ngDevMode ? [{ debugName: "_selectSortOptions" }] : /* istanbul ignore next */ []));
|
|
80
|
+
showToolbar = computed(() => this.searchable() || this.sortOptions().length > 0 || this.viewSwitcher(), ...(ngDevMode ? [{ debugName: "showToolbar" }] : /* istanbul ignore next */ []));
|
|
81
|
+
filteredItems = computed(() => {
|
|
82
|
+
const q = this.query().trim().toLowerCase();
|
|
83
|
+
const rows = [...this.items()];
|
|
84
|
+
const sort = this.sortOptions().find((option) => option.value === this.sortKey());
|
|
85
|
+
const filtered = q
|
|
86
|
+
? rows.filter((item) => this.searchableText(item, this.searchFields()).toLowerCase().includes(q))
|
|
87
|
+
: rows;
|
|
88
|
+
if (!sort) {
|
|
89
|
+
return filtered;
|
|
90
|
+
}
|
|
91
|
+
const direction = sort.direction ?? 'asc';
|
|
92
|
+
return [...filtered].sort((left, right) => {
|
|
93
|
+
const a = this.valueFor(left, sort.value);
|
|
94
|
+
const b = this.valueFor(right, sort.value);
|
|
95
|
+
const result = String(a ?? '').localeCompare(String(b ?? ''), undefined, { numeric: true });
|
|
96
|
+
return direction === 'asc' ? result : -result;
|
|
97
|
+
});
|
|
98
|
+
}, ...(ngDevMode ? [{ debugName: "filteredItems" }] : /* istanbul ignore next */ []));
|
|
99
|
+
pageCount = computed(() => Math.max(1, Math.ceil(this.filteredItems().length / Math.max(1, this.pageSize()))), ...(ngDevMode ? [{ debugName: "pageCount" }] : /* istanbul ignore next */ []));
|
|
100
|
+
pagedItems = computed(() => {
|
|
101
|
+
if (!this.pagination()) {
|
|
102
|
+
return this.filteredItems();
|
|
103
|
+
}
|
|
104
|
+
const size = Math.max(1, this.pageSize());
|
|
105
|
+
const start = (Math.min(this.page(), this.pageCount()) - 1) * size;
|
|
106
|
+
return this.filteredItems().slice(start, start + size);
|
|
107
|
+
}, ...(ngDevMode ? [{ debugName: "pagedItems" }] : /* istanbul ignore next */ []));
|
|
108
|
+
constructor() {
|
|
109
|
+
this._sortControl.valueChanges
|
|
110
|
+
.pipe(takeUntilDestroyed(this._destroyRef))
|
|
111
|
+
.subscribe((value) => this.setSort(value ?? ''));
|
|
112
|
+
effect(() => {
|
|
113
|
+
const sortKey = this.sortKey();
|
|
114
|
+
if (this._sortControl.value !== sortKey) {
|
|
115
|
+
this._sortControl.setValue(sortKey, { emitEvent: false });
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
setMode(mode) {
|
|
120
|
+
this.modeChange.emit(mode);
|
|
121
|
+
}
|
|
122
|
+
setQuery(value) {
|
|
123
|
+
this.query.set(value);
|
|
124
|
+
this.page.set(1);
|
|
125
|
+
this.searchChange.emit(value);
|
|
126
|
+
}
|
|
127
|
+
setSort(value) {
|
|
128
|
+
this.sortKey.set(value);
|
|
129
|
+
this.sortChange.emit(value);
|
|
130
|
+
}
|
|
131
|
+
previousPage() {
|
|
132
|
+
this.setPage(Math.max(1, this.page() - 1));
|
|
133
|
+
}
|
|
134
|
+
nextPage() {
|
|
135
|
+
this.setPage(Math.min(this.pageCount(), this.page() + 1));
|
|
136
|
+
}
|
|
137
|
+
trackItem(index, item) {
|
|
138
|
+
return this.trackBy()(index, item);
|
|
139
|
+
}
|
|
140
|
+
displayItem(item) {
|
|
141
|
+
if (item === null || item === undefined) {
|
|
142
|
+
return '';
|
|
143
|
+
}
|
|
144
|
+
if (typeof item === 'object') {
|
|
145
|
+
return JSON.stringify(item);
|
|
146
|
+
}
|
|
147
|
+
return String(item);
|
|
148
|
+
}
|
|
149
|
+
setPage(page) {
|
|
150
|
+
this.page.set(page);
|
|
151
|
+
this.pageChange.emit({ page, pageSize: this.pageSize() });
|
|
152
|
+
}
|
|
153
|
+
searchableText(item, fields) {
|
|
154
|
+
if (!fields.length || typeof item !== 'object' || item === null) {
|
|
155
|
+
return this.displayItem(item);
|
|
156
|
+
}
|
|
157
|
+
return fields.map((field) => this.valueFor(item, field)).join(' ');
|
|
158
|
+
}
|
|
159
|
+
valueFor(item, field) {
|
|
160
|
+
if (typeof item !== 'object' || item === null) {
|
|
161
|
+
return item;
|
|
162
|
+
}
|
|
163
|
+
return field.split('.').reduce((value, key) => {
|
|
164
|
+
if (typeof value !== 'object' || value === null) {
|
|
165
|
+
return undefined;
|
|
166
|
+
}
|
|
167
|
+
return value[key];
|
|
168
|
+
}, item);
|
|
169
|
+
}
|
|
170
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: NeuDataViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
171
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.17", type: NeuDataViewComponent, isStandalone: true, selector: "neu-data-view", inputs: { items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, modes: { classPropertyName: "modes", publicName: "modes", isSignal: true, isRequired: false, transformFunction: null }, viewSwitcher: { classPropertyName: "viewSwitcher", publicName: "viewSwitcher", isSignal: true, isRequired: false, transformFunction: null }, viewAriaLabel: { classPropertyName: "viewAriaLabel", publicName: "viewAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, searchable: { classPropertyName: "searchable", publicName: "searchable", isSignal: true, isRequired: false, transformFunction: null }, searchFields: { classPropertyName: "searchFields", publicName: "searchFields", isSignal: true, isRequired: false, transformFunction: null }, searchPlaceholder: { classPropertyName: "searchPlaceholder", publicName: "searchPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, searchAriaLabel: { classPropertyName: "searchAriaLabel", publicName: "searchAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, sortOptions: { classPropertyName: "sortOptions", publicName: "sortOptions", isSignal: true, isRequired: false, transformFunction: null }, sortAriaLabel: { classPropertyName: "sortAriaLabel", publicName: "sortAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, pagination: { classPropertyName: "pagination", publicName: "pagination", isSignal: true, isRequired: false, transformFunction: null }, pageSize: { classPropertyName: "pageSize", publicName: "pageSize", isSignal: true, isRequired: false, transformFunction: null }, emptyLabel: { classPropertyName: "emptyLabel", publicName: "emptyLabel", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, loadingLabel: { classPropertyName: "loadingLabel", publicName: "loadingLabel", isSignal: true, isRequired: false, transformFunction: null }, previousLabel: { classPropertyName: "previousLabel", publicName: "previousLabel", isSignal: true, isRequired: false, transformFunction: null }, nextLabel: { classPropertyName: "nextLabel", publicName: "nextLabel", isSignal: true, isRequired: false, transformFunction: null }, paginationAriaLabel: { classPropertyName: "paginationAriaLabel", publicName: "paginationAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, trackBy: { classPropertyName: "trackBy", publicName: "trackBy", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { modeChange: "modeChange", searchChange: "searchChange", sortChange: "sortChange", pageChange: "pageChange" }, host: { properties: { "class.neu-data-view--grid": "mode() === \"grid\"", "class.neu-data-view--list": "mode() === \"list\"", "class.neu-data-view--table": "mode() === \"table\"" }, classAttribute: "neu-data-view" }, queries: [{ propertyName: "itemTpl", first: true, predicate: NeuDataViewItemDirective, descendants: true, isSignal: true }, { propertyName: "headerTpl", first: true, predicate: NeuDataViewHeaderDirective, descendants: true, isSignal: true }, { propertyName: "footerTpl", first: true, predicate: NeuDataViewFooterDirective, descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
172
|
+
@if (headerTpl()) {
|
|
173
|
+
<ng-container [ngTemplateOutlet]="headerTpl()!.templateRef" />
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
@if (showToolbar()) {
|
|
177
|
+
<div class="neu-data-view__toolbar">
|
|
178
|
+
@if (searchable()) {
|
|
179
|
+
<label class="neu-data-view__search">
|
|
180
|
+
<span class="neu-data-view__sr">{{ searchAriaLabel() }}</span>
|
|
181
|
+
<input
|
|
182
|
+
type="search"
|
|
183
|
+
[placeholder]="searchPlaceholder()"
|
|
184
|
+
[value]="query()"
|
|
185
|
+
(input)="setQuery($any($event.target).value)"
|
|
186
|
+
/>
|
|
187
|
+
</label>
|
|
188
|
+
}
|
|
189
|
+
@if (sortOptions().length) {
|
|
190
|
+
<neu-select
|
|
191
|
+
class="neu-data-view__sort"
|
|
192
|
+
[floatingLabel]="false"
|
|
193
|
+
[placeholder]="sortAriaLabel()"
|
|
194
|
+
[options]="_selectSortOptions()"
|
|
195
|
+
[formControl]="_sortControl"
|
|
196
|
+
size="sm"
|
|
197
|
+
/>
|
|
198
|
+
}
|
|
199
|
+
@if (viewSwitcher()) {
|
|
200
|
+
<div class="neu-data-view__modes" role="group" [attr.aria-label]="viewAriaLabel()">
|
|
201
|
+
@for (item of modes(); track item) {
|
|
202
|
+
<button
|
|
203
|
+
neu-button
|
|
204
|
+
type="button"
|
|
205
|
+
class="neu-data-view__mode"
|
|
206
|
+
variant="ghost"
|
|
207
|
+
size="sm"
|
|
208
|
+
[class.neu-data-view__mode--active]="mode() === item"
|
|
209
|
+
[attr.aria-pressed]="mode() === item"
|
|
210
|
+
(click)="setMode(item)"
|
|
211
|
+
>
|
|
212
|
+
{{ item }}
|
|
213
|
+
</button>
|
|
214
|
+
}
|
|
215
|
+
</div>
|
|
216
|
+
}
|
|
217
|
+
</div>
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
@if (loading()) {
|
|
221
|
+
<div class="neu-data-view__loading" role="status">{{ loadingLabel() }}</div>
|
|
222
|
+
} @else if (pagedItems().length === 0) {
|
|
223
|
+
<div class="neu-data-view__empty" role="status">{{ emptyLabel() }}</div>
|
|
224
|
+
} @else {
|
|
225
|
+
<div class="neu-data-view__items" [attr.role]="mode() === 'table' ? 'table' : 'list'">
|
|
226
|
+
@for (item of pagedItems(); track trackItem($index, item); let i = $index) {
|
|
227
|
+
<div class="neu-data-view__item" [attr.role]="mode() === 'table' ? 'row' : 'listitem'">
|
|
228
|
+
@if (itemTpl()) {
|
|
229
|
+
<ng-container
|
|
230
|
+
[ngTemplateOutlet]="itemTpl()!.templateRef"
|
|
231
|
+
[ngTemplateOutletContext]="{ $implicit: item, index: i }"
|
|
232
|
+
/>
|
|
233
|
+
} @else {
|
|
234
|
+
{{ displayItem(item) }}
|
|
235
|
+
}
|
|
236
|
+
</div>
|
|
237
|
+
}
|
|
238
|
+
</div>
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
@if (pagination() && pageCount() > 1) {
|
|
242
|
+
<nav class="neu-data-view__pagination" [attr.aria-label]="paginationAriaLabel()">
|
|
243
|
+
<button
|
|
244
|
+
neu-button
|
|
245
|
+
type="button"
|
|
246
|
+
variant="secondary"
|
|
247
|
+
size="sm"
|
|
248
|
+
[disabled]="page() <= 1"
|
|
249
|
+
(click)="previousPage()"
|
|
250
|
+
>
|
|
251
|
+
{{ previousLabel() }}
|
|
252
|
+
</button>
|
|
253
|
+
<span>{{ page() }} / {{ pageCount() }}</span>
|
|
254
|
+
<button
|
|
255
|
+
neu-button
|
|
256
|
+
type="button"
|
|
257
|
+
variant="secondary"
|
|
258
|
+
size="sm"
|
|
259
|
+
[disabled]="page() >= pageCount()"
|
|
260
|
+
(click)="nextPage()"
|
|
261
|
+
>
|
|
262
|
+
{{ nextLabel() }}
|
|
263
|
+
</button>
|
|
264
|
+
</nav>
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
@if (footerTpl()) {
|
|
268
|
+
<ng-container [ngTemplateOutlet]="footerTpl()!.templateRef" />
|
|
269
|
+
}
|
|
270
|
+
`, isInline: true, styles: [".neu-data-view{display:block;color:var(--neu-text, #111827)}.neu-data-view__toolbar,.neu-data-view__pagination{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem;margin-bottom:1rem}.neu-data-view__search input{min-height:2.25rem;border:1px solid var(--neu-border, #d1d5db);border-radius:.5rem;background:var(--neu-surface, #fff);color:inherit;padding:0 .75rem}.neu-data-view__sort{min-width:12rem}.neu-data-view__modes{display:inline-flex;border:1px solid var(--neu-border, #d1d5db);border-radius:.5rem;overflow:hidden}.neu-data-view__mode{border:0!important;border-radius:0!important;text-transform:capitalize;color:var(--neu-text, #111827)}.neu-data-view__mode--active{background:var(--neu-primary-solid, var(--neu-primary, #2563eb));color:var(--neu-primary-solid-fg, var(--neu-primary-fg, #fff))}html[data-theme=dark] .neu-data-view__mode{color:#f2f7fb}html[data-theme=dark] .neu-data-view__mode--active{background:var(--neu-primary-solid);color:var(--neu-primary-solid-fg)}.neu-data-view__items{display:grid;gap:.75rem}.neu-data-view--grid .neu-data-view__items{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.neu-data-view--table .neu-data-view__items{gap:0;border:1px solid var(--neu-border, #d1d5db);border-radius:.5rem;overflow:hidden}.neu-data-view__item{border:1px solid var(--neu-border, #d1d5db);border-radius:.5rem;background:var(--neu-surface, #fff);padding:.875rem}.neu-data-view--table .neu-data-view__item{border:0;border-bottom:1px solid var(--neu-border, #d1d5db);border-radius:0}.neu-data-view__empty,.neu-data-view__loading{border:1px dashed var(--neu-border, #d1d5db);border-radius:.5rem;padding:2rem;text-align:center;color:var(--neu-text-muted, #6b7280)}.neu-data-view__pagination{justify-content:flex-end;margin-top:1rem;margin-bottom:0}.neu-data-view__sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: NeuButtonComponent, selector: "button[neu-button]", inputs: ["variant", "size", "disabled", "loading", "fullWidth", "icon", "iconPosition", "iconOnly", "ariaLabel"], outputs: ["neuClick"] }, { kind: "component", type: NeuSelectComponent, selector: "neu-select", inputs: ["options", "label", "placeholder", "errorMessage", "hint", "disabled", "floatingLabel", "size", "searchable", "searchPlaceholder", "loading", "loadingLabel", "clearable", "virtualScroll", "virtualScrollVisibleItems", "noResultsMessage", "clearAriaLabel", "urlParam"], outputs: ["selectionChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
271
|
+
}
|
|
272
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImport: i0, type: NeuDataViewComponent, decorators: [{
|
|
273
|
+
type: Component,
|
|
274
|
+
args: [{ selector: 'neu-data-view', imports: [NgTemplateOutlet, ReactiveFormsModule, NeuButtonComponent, NeuSelectComponent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
275
|
+
class: 'neu-data-view',
|
|
276
|
+
'[class.neu-data-view--grid]': 'mode() === "grid"',
|
|
277
|
+
'[class.neu-data-view--list]': 'mode() === "list"',
|
|
278
|
+
'[class.neu-data-view--table]': 'mode() === "table"',
|
|
279
|
+
}, template: `
|
|
280
|
+
@if (headerTpl()) {
|
|
281
|
+
<ng-container [ngTemplateOutlet]="headerTpl()!.templateRef" />
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
@if (showToolbar()) {
|
|
285
|
+
<div class="neu-data-view__toolbar">
|
|
286
|
+
@if (searchable()) {
|
|
287
|
+
<label class="neu-data-view__search">
|
|
288
|
+
<span class="neu-data-view__sr">{{ searchAriaLabel() }}</span>
|
|
289
|
+
<input
|
|
290
|
+
type="search"
|
|
291
|
+
[placeholder]="searchPlaceholder()"
|
|
292
|
+
[value]="query()"
|
|
293
|
+
(input)="setQuery($any($event.target).value)"
|
|
294
|
+
/>
|
|
295
|
+
</label>
|
|
296
|
+
}
|
|
297
|
+
@if (sortOptions().length) {
|
|
298
|
+
<neu-select
|
|
299
|
+
class="neu-data-view__sort"
|
|
300
|
+
[floatingLabel]="false"
|
|
301
|
+
[placeholder]="sortAriaLabel()"
|
|
302
|
+
[options]="_selectSortOptions()"
|
|
303
|
+
[formControl]="_sortControl"
|
|
304
|
+
size="sm"
|
|
305
|
+
/>
|
|
306
|
+
}
|
|
307
|
+
@if (viewSwitcher()) {
|
|
308
|
+
<div class="neu-data-view__modes" role="group" [attr.aria-label]="viewAriaLabel()">
|
|
309
|
+
@for (item of modes(); track item) {
|
|
310
|
+
<button
|
|
311
|
+
neu-button
|
|
312
|
+
type="button"
|
|
313
|
+
class="neu-data-view__mode"
|
|
314
|
+
variant="ghost"
|
|
315
|
+
size="sm"
|
|
316
|
+
[class.neu-data-view__mode--active]="mode() === item"
|
|
317
|
+
[attr.aria-pressed]="mode() === item"
|
|
318
|
+
(click)="setMode(item)"
|
|
319
|
+
>
|
|
320
|
+
{{ item }}
|
|
321
|
+
</button>
|
|
322
|
+
}
|
|
323
|
+
</div>
|
|
324
|
+
}
|
|
325
|
+
</div>
|
|
326
|
+
}
|
|
327
|
+
|
|
328
|
+
@if (loading()) {
|
|
329
|
+
<div class="neu-data-view__loading" role="status">{{ loadingLabel() }}</div>
|
|
330
|
+
} @else if (pagedItems().length === 0) {
|
|
331
|
+
<div class="neu-data-view__empty" role="status">{{ emptyLabel() }}</div>
|
|
332
|
+
} @else {
|
|
333
|
+
<div class="neu-data-view__items" [attr.role]="mode() === 'table' ? 'table' : 'list'">
|
|
334
|
+
@for (item of pagedItems(); track trackItem($index, item); let i = $index) {
|
|
335
|
+
<div class="neu-data-view__item" [attr.role]="mode() === 'table' ? 'row' : 'listitem'">
|
|
336
|
+
@if (itemTpl()) {
|
|
337
|
+
<ng-container
|
|
338
|
+
[ngTemplateOutlet]="itemTpl()!.templateRef"
|
|
339
|
+
[ngTemplateOutletContext]="{ $implicit: item, index: i }"
|
|
340
|
+
/>
|
|
341
|
+
} @else {
|
|
342
|
+
{{ displayItem(item) }}
|
|
343
|
+
}
|
|
344
|
+
</div>
|
|
345
|
+
}
|
|
346
|
+
</div>
|
|
347
|
+
}
|
|
348
|
+
|
|
349
|
+
@if (pagination() && pageCount() > 1) {
|
|
350
|
+
<nav class="neu-data-view__pagination" [attr.aria-label]="paginationAriaLabel()">
|
|
351
|
+
<button
|
|
352
|
+
neu-button
|
|
353
|
+
type="button"
|
|
354
|
+
variant="secondary"
|
|
355
|
+
size="sm"
|
|
356
|
+
[disabled]="page() <= 1"
|
|
357
|
+
(click)="previousPage()"
|
|
358
|
+
>
|
|
359
|
+
{{ previousLabel() }}
|
|
360
|
+
</button>
|
|
361
|
+
<span>{{ page() }} / {{ pageCount() }}</span>
|
|
362
|
+
<button
|
|
363
|
+
neu-button
|
|
364
|
+
type="button"
|
|
365
|
+
variant="secondary"
|
|
366
|
+
size="sm"
|
|
367
|
+
[disabled]="page() >= pageCount()"
|
|
368
|
+
(click)="nextPage()"
|
|
369
|
+
>
|
|
370
|
+
{{ nextLabel() }}
|
|
371
|
+
</button>
|
|
372
|
+
</nav>
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
@if (footerTpl()) {
|
|
376
|
+
<ng-container [ngTemplateOutlet]="footerTpl()!.templateRef" />
|
|
377
|
+
}
|
|
378
|
+
`, styles: [".neu-data-view{display:block;color:var(--neu-text, #111827)}.neu-data-view__toolbar,.neu-data-view__pagination{display:flex;flex-wrap:wrap;align-items:center;gap:.75rem;margin-bottom:1rem}.neu-data-view__search input{min-height:2.25rem;border:1px solid var(--neu-border, #d1d5db);border-radius:.5rem;background:var(--neu-surface, #fff);color:inherit;padding:0 .75rem}.neu-data-view__sort{min-width:12rem}.neu-data-view__modes{display:inline-flex;border:1px solid var(--neu-border, #d1d5db);border-radius:.5rem;overflow:hidden}.neu-data-view__mode{border:0!important;border-radius:0!important;text-transform:capitalize;color:var(--neu-text, #111827)}.neu-data-view__mode--active{background:var(--neu-primary-solid, var(--neu-primary, #2563eb));color:var(--neu-primary-solid-fg, var(--neu-primary-fg, #fff))}html[data-theme=dark] .neu-data-view__mode{color:#f2f7fb}html[data-theme=dark] .neu-data-view__mode--active{background:var(--neu-primary-solid);color:var(--neu-primary-solid-fg)}.neu-data-view__items{display:grid;gap:.75rem}.neu-data-view--grid .neu-data-view__items{grid-template-columns:repeat(auto-fit,minmax(180px,1fr))}.neu-data-view--table .neu-data-view__items{gap:0;border:1px solid var(--neu-border, #d1d5db);border-radius:.5rem;overflow:hidden}.neu-data-view__item{border:1px solid var(--neu-border, #d1d5db);border-radius:.5rem;background:var(--neu-surface, #fff);padding:.875rem}.neu-data-view--table .neu-data-view__item{border:0;border-bottom:1px solid var(--neu-border, #d1d5db);border-radius:0}.neu-data-view__empty,.neu-data-view__loading{border:1px dashed var(--neu-border, #d1d5db);border-radius:.5rem;padding:2rem;text-align:center;color:var(--neu-text-muted, #6b7280)}.neu-data-view__pagination{justify-content:flex-end;margin-top:1rem;margin-bottom:0}.neu-data-view__sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}\n"] }]
|
|
379
|
+
}], ctorParameters: () => [], propDecorators: { items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: false }] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], modes: [{ type: i0.Input, args: [{ isSignal: true, alias: "modes", required: false }] }], viewSwitcher: [{ type: i0.Input, args: [{ isSignal: true, alias: "viewSwitcher", required: false }] }], viewAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "viewAriaLabel", required: false }] }], searchable: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchable", required: false }] }], searchFields: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchFields", required: false }] }], searchPlaceholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchPlaceholder", required: false }] }], searchAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchAriaLabel", required: false }] }], sortOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "sortOptions", required: false }] }], sortAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "sortAriaLabel", required: false }] }], pagination: [{ type: i0.Input, args: [{ isSignal: true, alias: "pagination", required: false }] }], pageSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageSize", required: false }] }], emptyLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyLabel", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], loadingLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadingLabel", required: false }] }], previousLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "previousLabel", required: false }] }], nextLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "nextLabel", required: false }] }], paginationAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "paginationAriaLabel", required: false }] }], trackBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "trackBy", required: false }] }], modeChange: [{ type: i0.Output, args: ["modeChange"] }], searchChange: [{ type: i0.Output, args: ["searchChange"] }], sortChange: [{ type: i0.Output, args: ["sortChange"] }], pageChange: [{ type: i0.Output, args: ["pageChange"] }], itemTpl: [{ type: i0.ContentChild, args: [i0.forwardRef(() => NeuDataViewItemDirective), { isSignal: true }] }], headerTpl: [{ type: i0.ContentChild, args: [i0.forwardRef(() => NeuDataViewHeaderDirective), { isSignal: true }] }], footerTpl: [{ type: i0.ContentChild, args: [i0.forwardRef(() => NeuDataViewFooterDirective), { isSignal: true }] }] } });
|
|
380
|
+
|
|
381
|
+
/**
|
|
382
|
+
* Generated bundle index. Do not edit.
|
|
383
|
+
*/
|
|
384
|
+
|
|
385
|
+
export { NeuDataViewComponent, NeuDataViewFooterDirective, NeuDataViewHeaderDirective, NeuDataViewItemDirective };
|
|
386
|
+
//# sourceMappingURL=neural-ui-core-data-view.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"neural-ui-core-data-view.mjs","sources":["../../../../projects/ui-core/data-view/neu-data-view.component.ts","../../../../projects/ui-core/data-view/neural-ui-core-data-view.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n Directive,\n TemplateRef,\n ViewEncapsulation,\n computed,\n contentChild,\n effect,\n inject,\n input,\n output,\n signal,\n} from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { FormControl, ReactiveFormsModule } from '@angular/forms';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { NeuButtonComponent } from '@neural-ui/core/button';\nimport { NeuSelectComponent, type NeuSelectOption } from '@neural-ui/core/select';\n\nexport type NeuDataViewMode = 'list' | 'grid' | 'table';\nexport type NeuDataViewSortDirection = 'asc' | 'desc';\n\nexport interface NeuDataViewSortOption {\n label: string;\n value: string;\n direction?: NeuDataViewSortDirection;\n}\n\nexport interface NeuDataViewPageEvent {\n page: number;\n pageSize: number;\n}\n\n@Directive({ selector: 'ng-template[neuDataViewItem]' })\nexport class NeuDataViewItemDirective {\n constructor(readonly templateRef: TemplateRef<{ $implicit: unknown; index: number }>) {}\n}\n\n@Directive({ selector: 'ng-template[neuDataViewHeader]' })\nexport class NeuDataViewHeaderDirective {\n constructor(readonly templateRef: TemplateRef<void>) {}\n}\n\n@Directive({ selector: 'ng-template[neuDataViewFooter]' })\nexport class NeuDataViewFooterDirective {\n constructor(readonly templateRef: TemplateRef<void>) {}\n}\n\n@Component({\n selector: 'neu-data-view',\n imports: [NgTemplateOutlet, ReactiveFormsModule, NeuButtonComponent, NeuSelectComponent],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'neu-data-view',\n '[class.neu-data-view--grid]': 'mode() === \"grid\"',\n '[class.neu-data-view--list]': 'mode() === \"list\"',\n '[class.neu-data-view--table]': 'mode() === \"table\"',\n },\n template: `\n @if (headerTpl()) {\n <ng-container [ngTemplateOutlet]=\"headerTpl()!.templateRef\" />\n }\n\n @if (showToolbar()) {\n <div class=\"neu-data-view__toolbar\">\n @if (searchable()) {\n <label class=\"neu-data-view__search\">\n <span class=\"neu-data-view__sr\">{{ searchAriaLabel() }}</span>\n <input\n type=\"search\"\n [placeholder]=\"searchPlaceholder()\"\n [value]=\"query()\"\n (input)=\"setQuery($any($event.target).value)\"\n />\n </label>\n }\n @if (sortOptions().length) {\n <neu-select\n class=\"neu-data-view__sort\"\n [floatingLabel]=\"false\"\n [placeholder]=\"sortAriaLabel()\"\n [options]=\"_selectSortOptions()\"\n [formControl]=\"_sortControl\"\n size=\"sm\"\n />\n }\n @if (viewSwitcher()) {\n <div class=\"neu-data-view__modes\" role=\"group\" [attr.aria-label]=\"viewAriaLabel()\">\n @for (item of modes(); track item) {\n <button\n neu-button\n type=\"button\"\n class=\"neu-data-view__mode\"\n variant=\"ghost\"\n size=\"sm\"\n [class.neu-data-view__mode--active]=\"mode() === item\"\n [attr.aria-pressed]=\"mode() === item\"\n (click)=\"setMode(item)\"\n >\n {{ item }}\n </button>\n }\n </div>\n }\n </div>\n }\n\n @if (loading()) {\n <div class=\"neu-data-view__loading\" role=\"status\">{{ loadingLabel() }}</div>\n } @else if (pagedItems().length === 0) {\n <div class=\"neu-data-view__empty\" role=\"status\">{{ emptyLabel() }}</div>\n } @else {\n <div class=\"neu-data-view__items\" [attr.role]=\"mode() === 'table' ? 'table' : 'list'\">\n @for (item of pagedItems(); track trackItem($index, item); let i = $index) {\n <div class=\"neu-data-view__item\" [attr.role]=\"mode() === 'table' ? 'row' : 'listitem'\">\n @if (itemTpl()) {\n <ng-container\n [ngTemplateOutlet]=\"itemTpl()!.templateRef\"\n [ngTemplateOutletContext]=\"{ $implicit: item, index: i }\"\n />\n } @else {\n {{ displayItem(item) }}\n }\n </div>\n }\n </div>\n }\n\n @if (pagination() && pageCount() > 1) {\n <nav class=\"neu-data-view__pagination\" [attr.aria-label]=\"paginationAriaLabel()\">\n <button\n neu-button\n type=\"button\"\n variant=\"secondary\"\n size=\"sm\"\n [disabled]=\"page() <= 1\"\n (click)=\"previousPage()\"\n >\n {{ previousLabel() }}\n </button>\n <span>{{ page() }} / {{ pageCount() }}</span>\n <button\n neu-button\n type=\"button\"\n variant=\"secondary\"\n size=\"sm\"\n [disabled]=\"page() >= pageCount()\"\n (click)=\"nextPage()\"\n >\n {{ nextLabel() }}\n </button>\n </nav>\n }\n\n @if (footerTpl()) {\n <ng-container [ngTemplateOutlet]=\"footerTpl()!.templateRef\" />\n }\n `,\n styleUrl: './neu-data-view.component.scss',\n})\nexport class NeuDataViewComponent {\n private readonly _destroyRef = inject(DestroyRef);\n\n readonly items = input<unknown[]>([]);\n readonly mode = input<NeuDataViewMode>('list');\n readonly modes = input<NeuDataViewMode[]>(['list', 'grid', 'table']);\n readonly viewSwitcher = input(true);\n readonly viewAriaLabel = input('View mode');\n readonly searchable = input(true);\n readonly searchFields = input<string[]>([]);\n readonly searchPlaceholder = input('Search...');\n readonly searchAriaLabel = input('Search items');\n readonly sortOptions = input<NeuDataViewSortOption[]>([]);\n readonly sortAriaLabel = input('Sort items');\n readonly pagination = input(true);\n readonly pageSize = input(9);\n readonly emptyLabel = input('No items found');\n readonly loading = input(false);\n readonly loadingLabel = input('Loading...');\n readonly previousLabel = input('Previous');\n readonly nextLabel = input('Next');\n readonly paginationAriaLabel = input('Data view pagination');\n readonly trackBy = input<(index: number, item: unknown) => unknown>((index) => index);\n\n readonly modeChange = output<NeuDataViewMode>();\n readonly searchChange = output<string>();\n readonly sortChange = output<string>();\n readonly pageChange = output<NeuDataViewPageEvent>();\n\n readonly itemTpl = contentChild(NeuDataViewItemDirective);\n readonly headerTpl = contentChild(NeuDataViewHeaderDirective);\n readonly footerTpl = contentChild(NeuDataViewFooterDirective);\n\n readonly query = signal('');\n readonly page = signal(1);\n readonly sortKey = signal('');\n readonly _sortControl = new FormControl<string | null>('');\n\n readonly _selectSortOptions = computed<NeuSelectOption[]>(() =>\n this.sortOptions().map((option) => ({ label: option.label, value: option.value })),\n );\n\n readonly showToolbar = computed(\n () => this.searchable() || this.sortOptions().length > 0 || this.viewSwitcher(),\n );\n\n readonly filteredItems = computed(() => {\n const q = this.query().trim().toLowerCase();\n const rows = [...this.items()];\n const sort = this.sortOptions().find((option) => option.value === this.sortKey());\n\n const filtered = q\n ? rows.filter((item) =>\n this.searchableText(item, this.searchFields()).toLowerCase().includes(q),\n )\n : rows;\n\n if (!sort) {\n return filtered;\n }\n\n const direction = sort.direction ?? 'asc';\n return [...filtered].sort((left, right) => {\n const a = this.valueFor(left, sort.value);\n const b = this.valueFor(right, sort.value);\n const result = String(a ?? '').localeCompare(String(b ?? ''), undefined, { numeric: true });\n return direction === 'asc' ? result : -result;\n });\n });\n\n readonly pageCount = computed(() =>\n Math.max(1, Math.ceil(this.filteredItems().length / Math.max(1, this.pageSize()))),\n );\n\n readonly pagedItems = computed(() => {\n if (!this.pagination()) {\n return this.filteredItems();\n }\n const size = Math.max(1, this.pageSize());\n const start = (Math.min(this.page(), this.pageCount()) - 1) * size;\n return this.filteredItems().slice(start, start + size);\n });\n\n constructor() {\n this._sortControl.valueChanges\n .pipe(takeUntilDestroyed(this._destroyRef))\n .subscribe((value) => this.setSort(value ?? ''));\n\n effect(() => {\n const sortKey = this.sortKey();\n if (this._sortControl.value !== sortKey) {\n this._sortControl.setValue(sortKey, { emitEvent: false });\n }\n });\n }\n\n setMode(mode: NeuDataViewMode): void {\n this.modeChange.emit(mode);\n }\n\n setQuery(value: string): void {\n this.query.set(value);\n this.page.set(1);\n this.searchChange.emit(value);\n }\n\n setSort(value: string): void {\n this.sortKey.set(value);\n this.sortChange.emit(value);\n }\n\n previousPage(): void {\n this.setPage(Math.max(1, this.page() - 1));\n }\n\n nextPage(): void {\n this.setPage(Math.min(this.pageCount(), this.page() + 1));\n }\n\n trackItem(index: number, item: unknown): unknown {\n return this.trackBy()(index, item);\n }\n\n displayItem(item: unknown): string {\n if (item === null || item === undefined) {\n return '';\n }\n if (typeof item === 'object') {\n return JSON.stringify(item);\n }\n return String(item);\n }\n\n private setPage(page: number): void {\n this.page.set(page);\n this.pageChange.emit({ page, pageSize: this.pageSize() });\n }\n\n private searchableText(item: unknown, fields: string[]): string {\n if (!fields.length || typeof item !== 'object' || item === null) {\n return this.displayItem(item);\n }\n return fields.map((field) => this.valueFor(item, field)).join(' ');\n }\n\n private valueFor(item: unknown, field: string): unknown {\n if (typeof item !== 'object' || item === null) {\n return item;\n }\n return field.split('.').reduce<unknown>((value, key) => {\n if (typeof value !== 'object' || value === null) {\n return undefined;\n }\n return (value as Record<string, unknown>)[key];\n }, item);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":[],"mappings":";;;;;;;;;MAoCa,wBAAwB,CAAA;AACd,IAAA,WAAA;AAArB,IAAA,WAAA,CAAqB,WAA+D,EAAA;QAA/D,IAAA,CAAA,WAAW,GAAX,WAAW;IAAuD;wGAD5E,wBAAwB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,WAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;4FAAxB,wBAAwB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,8BAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;4FAAxB,wBAAwB,EAAA,UAAA,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