@masterteam/components 0.0.217 → 0.0.218

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.
Files changed (41) hide show
  1. package/README.md +70 -70
  2. package/assets/common.css +257 -2
  3. package/fesm2022/masterteam-components-drawer.mjs +2 -2
  4. package/fesm2022/masterteam-components-drawer.mjs.map +1 -1
  5. package/fesm2022/masterteam-components-dynamic-drawer.mjs.map +1 -1
  6. package/fesm2022/masterteam-components-entities.mjs +10 -10
  7. package/fesm2022/masterteam-components-entities.mjs.map +1 -1
  8. package/fesm2022/masterteam-components-formula.mjs +2 -2
  9. package/fesm2022/masterteam-components-formula.mjs.map +1 -1
  10. package/fesm2022/masterteam-components-icon-field.mjs.map +1 -1
  11. package/fesm2022/masterteam-components-location-field.mjs +2 -2
  12. package/fesm2022/masterteam-components-location-field.mjs.map +1 -1
  13. package/fesm2022/masterteam-components-number-field.mjs +2 -2
  14. package/fesm2022/masterteam-components-number-field.mjs.map +1 -1
  15. package/fesm2022/masterteam-components-radio-cards-field.mjs +2 -2
  16. package/fesm2022/masterteam-components-radio-cards-field.mjs.map +1 -1
  17. package/fesm2022/masterteam-components-runtime-action.mjs.map +1 -1
  18. package/fesm2022/masterteam-components-table.mjs +10 -6
  19. package/fesm2022/masterteam-components-table.mjs.map +1 -1
  20. package/fesm2022/masterteam-components-text-field.mjs +2 -2
  21. package/fesm2022/masterteam-components-text-field.mjs.map +1 -1
  22. package/fesm2022/masterteam-components-toggle-field.mjs +2 -2
  23. package/fesm2022/masterteam-components-toggle-field.mjs.map +1 -1
  24. package/fesm2022/masterteam-components.mjs +3 -3
  25. package/fesm2022/masterteam-components.mjs.map +1 -1
  26. package/package.json +1 -1
  27. package/fesm2022/masterteam-components-slider-field.mjs +0 -128
  28. package/fesm2022/masterteam-components-slider-field.mjs.map +0 -1
  29. package/fesm2022/masterteam-components-statistic-card.mjs +0 -22
  30. package/fesm2022/masterteam-components-statistic-card.mjs.map +0 -1
  31. package/fesm2022/masterteam-components-textarea-field.mjs +0 -122
  32. package/fesm2022/masterteam-components-textarea-field.mjs.map +0 -1
  33. package/fesm2022/masterteam-components-topbar.mjs +0 -32
  34. package/fesm2022/masterteam-components-topbar.mjs.map +0 -1
  35. package/fesm2022/masterteam-components-tree.mjs +0 -260
  36. package/fesm2022/masterteam-components-tree.mjs.map +0 -1
  37. package/types/masterteam-components-slider-field.d.ts +0 -41
  38. package/types/masterteam-components-statistic-card.d.ts +0 -18
  39. package/types/masterteam-components-textarea-field.d.ts +0 -41
  40. package/types/masterteam-components-topbar.d.ts +0 -20
  41. package/types/masterteam-components-tree.d.ts +0 -106
@@ -1,260 +0,0 @@
1
- import { ToggleField } from '@masterteam/components/toggle-field';
2
- import { Avatar } from '@masterteam/components/avatar';
3
- import { Button } from '@masterteam/components/button';
4
- import * as i0 from '@angular/core';
5
- import { inject, viewChild, input, model, computed, output, signal, effect, Component } from '@angular/core';
6
- import * as i1 from 'primeng/tree';
7
- import { TreeModule } from 'primeng/tree';
8
- import { Icon } from '@masterteam/icons';
9
- import { CommonModule } from '@angular/common';
10
- import { Directionality } from '@angular/cdk/bidi';
11
- import * as i3 from '@angular/forms';
12
- import { FormsModule } from '@angular/forms';
13
- import * as i4 from 'primeng/contextmenu';
14
- import { ContextMenuModule } from 'primeng/contextmenu';
15
- import { TranslocoService, TranslocoModule } from '@jsverse/transloco';
16
- import * as i2 from 'primeng/api';
17
-
18
- class Tree {
19
- transloco = inject(TranslocoService);
20
- dir = inject(Directionality, { optional: true });
21
- primeTree = viewChild('primeTree', ...(ngDevMode ? [{ debugName: "primeTree" }] : /* istanbul ignore next */ []));
22
- value = input.required(...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
23
- selection = model(...(ngDevMode ? [undefined, { debugName: "selection" }] : /* istanbul ignore next */ []));
24
- selectionMode = input(...(ngDevMode ? [undefined, { debugName: "selectionMode" }] : /* istanbul ignore next */ []));
25
- nodeIcon = input(...(ngDevMode ? [undefined, { debugName: "nodeIcon" }] : /* istanbul ignore next */ []));
26
- propagateSelectionUp = input(false, ...(ngDevMode ? [{ debugName: "propagateSelectionUp" }] : /* istanbul ignore next */ []));
27
- propagateSelectionDown = input(false, ...(ngDevMode ? [{ debugName: "propagateSelectionDown" }] : /* istanbul ignore next */ []));
28
- checkAllChildren = input(false, ...(ngDevMode ? [{ debugName: "checkAllChildren" }] : /* istanbul ignore next */ []));
29
- loading = input(false, ...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
30
- emptyMessage = input(this.transloco.translate('components.tree.no-data-found'), ...(ngDevMode ? [{ debugName: "emptyMessage" }] : /* istanbul ignore next */ []));
31
- checkAllLabel = input(this.transloco.translate('components.tree.check-all'), ...(ngDevMode ? [{ debugName: "checkAllLabel" }] : /* istanbul ignore next */ []));
32
- filterPlaceholder = input(this.transloco.translate('components.tree.search'), ...(ngDevMode ? [{ debugName: "filterPlaceholder" }] : /* istanbul ignore next */ []));
33
- dataKey = input('key', ...(ngDevMode ? [{ debugName: "dataKey" }] : /* istanbul ignore next */ []));
34
- filter = input(false, ...(ngDevMode ? [{ debugName: "filter" }] : /* istanbul ignore next */ []));
35
- filterMode = input('lenient', ...(ngDevMode ? [{ debugName: "filterMode" }] : /* istanbul ignore next */ []));
36
- virtualScroll = input(false, ...(ngDevMode ? [{ debugName: "virtualScroll" }] : /* istanbul ignore next */ []));
37
- virtualScrollItemSize = input(46, ...(ngDevMode ? [{ debugName: "virtualScrollItemSize" }] : /* istanbul ignore next */ []));
38
- scrollHeight = input(...(ngDevMode ? [undefined, { debugName: "scrollHeight" }] : /* istanbul ignore next */ []));
39
- styleClass = input('', ...(ngDevMode ? [{ debugName: "styleClass" }] : /* istanbul ignore next */ []));
40
- style = input(...(ngDevMode ? [undefined, { debugName: "style" }] : /* istanbul ignore next */ []));
41
- pInputs = input(...(ngDevMode ? [undefined, { debugName: "pInputs" }] : /* istanbul ignore next */ []));
42
- nodeActions = input([], ...(ngDevMode ? [{ debugName: "nodeActions" }] : /* istanbul ignore next */ []));
43
- nodeContextmenuActions = input([], ...(ngDevMode ? [{ debugName: "nodeContextmenuActions" }] : /* istanbul ignore next */ []));
44
- // Context menu state
45
- contextMenuSelection = model(null, ...(ngDevMode ? [{ debugName: "contextMenuSelection" }] : /* istanbul ignore next */ []));
46
- contextMenuItems = computed(() => {
47
- const actions = this.nodeContextmenuActions();
48
- return actions.map((action) => ({
49
- label: action.label,
50
- icon: action.icon,
51
- command: () => {
52
- const node = this.contextMenuSelection();
53
- if (node) {
54
- action.action(node);
55
- }
56
- },
57
- }));
58
- }, ...(ngDevMode ? [{ debugName: "contextMenuItems" }] : /* istanbul ignore next */ []));
59
- action = output();
60
- CheckAllValue = signal(false, ...(ngDevMode ? [{ debugName: "CheckAllValue" }] : /* istanbul ignore next */ []));
61
- // Computed tree value with "Check All" nodes added recursively to all parents
62
- treeValue = computed(() => {
63
- const nodes = this.value();
64
- const shouldAddCheckAll = this.checkAllChildren() && this.selectionMode() === 'checkbox';
65
- if (!shouldAddCheckAll) {
66
- return nodes;
67
- }
68
- // Recursively add "Check All" child to any parent node
69
- const addCheckAllRecursive = (node) => {
70
- if (node.children && node.children.length > 0) {
71
- const checkAllNode = {
72
- key: `${node.key}-check-all`,
73
- label: this.checkAllLabel(),
74
- icon: 'general.check-square-broken',
75
- data: node,
76
- };
77
- return {
78
- ...node,
79
- children: [checkAllNode, ...node.children.map(addCheckAllRecursive)],
80
- };
81
- }
82
- return node;
83
- };
84
- // Transform all nodes
85
- const transformedNodes = nodes.map(addCheckAllRecursive);
86
- // Add "Check All" for entire tree at the beginning
87
- const treeCheckAllNode = {
88
- key: 'tree-check-all',
89
- label: this.checkAllLabel(),
90
- icon: 'general.check-square-broken',
91
- data: { isTreeRoot: true, children: transformedNodes },
92
- };
93
- return [treeCheckAllNode, ...transformedNodes];
94
- }, ...(ngDevMode ? [{ debugName: "treeValue" }] : /* istanbul ignore next */ []));
95
- constructor() {
96
- // Apply pInputs to the PrimeNG tree instance
97
- effect(() => {
98
- const tree = this.primeTree();
99
- const inputs = this.pInputs();
100
- if (tree && inputs) {
101
- Object.assign(tree, inputs);
102
- }
103
- });
104
- // Sync checked state when selection changes (including initial value)
105
- effect(() => {
106
- const value = this.treeValue();
107
- // Only run if we have nodes and selection
108
- if (value.length > 0 && this.selectionMode() === 'checkbox') {
109
- this.handleCheckedNodes();
110
- }
111
- });
112
- }
113
- isProcessingBatchSelection = signal(false, ...(ngDevMode ? [{ debugName: "isProcessingBatchSelection" }] : /* istanbul ignore next */ []));
114
- onSelectionChange(event) {
115
- // Skip emitting if we're in the middle of batch processing
116
- if (this.isProcessingBatchSelection()) {
117
- return;
118
- }
119
- this.handleCheckedNodes();
120
- this.action.emit({ action: 'selectionChange', data: event });
121
- }
122
- onNodeSelect(event) {
123
- this.action.emit({ action: 'nodeSelect', data: event });
124
- }
125
- onNodeUnselect(event) {
126
- this.action.emit({ action: 'nodeUnselect', data: event });
127
- }
128
- onNodeExpand(event) {
129
- this.action.emit({ action: 'nodeExpand', data: event });
130
- }
131
- onNodeCollapse(event) {
132
- this.action.emit({ action: 'nodeCollapse', data: event });
133
- }
134
- onContextMenuSelect(event) {
135
- this.contextMenuSelection.set(event);
136
- }
137
- getCheckAllValue(event) {
138
- this.CheckAllValue.set(event);
139
- }
140
- toggleNodeExpanded(node, event) {
141
- event.stopPropagation();
142
- node.expanded = !node.expanded;
143
- const tree = this.primeTree();
144
- if (tree && this.virtualScroll()) {
145
- tree.updateSerializedValue();
146
- }
147
- this.action.emit({
148
- action: node.expanded ? 'nodeExpand' : 'nodeCollapse',
149
- data: { node },
150
- });
151
- }
152
- toggleNodeSelection(node, event) {
153
- event.stopPropagation();
154
- if (node.selectable === false) {
155
- return;
156
- }
157
- const tree = this.primeTree();
158
- if (this.selectionMode() === 'checkbox' && tree) {
159
- if (node.key?.includes('check-all') && node.data) {
160
- const checkValue = this.CheckAllValue() ?? true;
161
- // Handle parent-level "Check All" - only check immediate children
162
- const parentNode = node.data;
163
- // Start batch processing to prevent multiple selection change events
164
- this.isProcessingBatchSelection.set(true);
165
- parentNode?.children?.forEach((child) => {
166
- if (!child.key?.includes('check-all')) {
167
- const isSelected = tree.isSelected(child);
168
- // Only toggle if the current state doesn't match desired state
169
- if ((checkValue && !isSelected) || (!checkValue && isSelected)) {
170
- tree.onNodeClick(event, child);
171
- }
172
- }
173
- });
174
- // End batch processing and emit single selection change event
175
- this.isProcessingBatchSelection.set(false);
176
- this.handleCheckedNodes();
177
- this.action.emit({
178
- action: 'selectionChange',
179
- data: this.selection(),
180
- });
181
- }
182
- else {
183
- tree.onNodeClick(event, node);
184
- }
185
- }
186
- }
187
- handleCheckedNodes() {
188
- const tree = this.primeTree();
189
- if (!tree)
190
- return;
191
- // Build a Set of selected keys for O(1) lookup instead of repeated isSelected() calls
192
- const selection = this.selection();
193
- const selectedKeys = new Set();
194
- if (Array.isArray(selection)) {
195
- for (const node of selection) {
196
- if (node.key)
197
- selectedKeys.add(node.key);
198
- }
199
- }
200
- const updateNodeCheckedState = (nodes) => {
201
- for (const node of nodes) {
202
- if (node.key?.includes('check-all')) {
203
- node.checked = nodes.every((n) => n.key?.includes('check-all') || selectedKeys.has(n.key));
204
- }
205
- else {
206
- node.checked = selectedKeys.has(node.key);
207
- }
208
- if (node.children) {
209
- updateNodeCheckedState(node.children);
210
- }
211
- }
212
- };
213
- updateNodeCheckedState(this.treeValue());
214
- }
215
- /**
216
- * Clears the tree's search/filter input and resets the filtered nodes.
217
- */
218
- resetFilter() {
219
- const tree = this.primeTree();
220
- if (!tree)
221
- return;
222
- tree.resetFilter();
223
- // PrimeNG's resetFilter() does not re-serialize the nodes, so the
224
- // (virtual-scrolled) list keeps showing the previously filtered set.
225
- // Refresh the serialized value so the full tree is rendered again.
226
- tree.updateSerializedValue();
227
- }
228
- resolveActionLoading(action, node) {
229
- if (typeof action.loading === 'function') {
230
- return action.loading(node);
231
- }
232
- return action.loading;
233
- }
234
- nodeAction(action, node) {
235
- action.action(node);
236
- }
237
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: Tree, deps: [], target: i0.ɵɵFactoryTarget.Component });
238
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.8", type: Tree, isStandalone: true, selector: "mt-tree", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, selection: { classPropertyName: "selection", publicName: "selection", isSignal: true, isRequired: false, transformFunction: null }, selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: true, isRequired: false, transformFunction: null }, nodeIcon: { classPropertyName: "nodeIcon", publicName: "nodeIcon", isSignal: true, isRequired: false, transformFunction: null }, propagateSelectionUp: { classPropertyName: "propagateSelectionUp", publicName: "propagateSelectionUp", isSignal: true, isRequired: false, transformFunction: null }, propagateSelectionDown: { classPropertyName: "propagateSelectionDown", publicName: "propagateSelectionDown", isSignal: true, isRequired: false, transformFunction: null }, checkAllChildren: { classPropertyName: "checkAllChildren", publicName: "checkAllChildren", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, emptyMessage: { classPropertyName: "emptyMessage", publicName: "emptyMessage", isSignal: true, isRequired: false, transformFunction: null }, checkAllLabel: { classPropertyName: "checkAllLabel", publicName: "checkAllLabel", isSignal: true, isRequired: false, transformFunction: null }, filterPlaceholder: { classPropertyName: "filterPlaceholder", publicName: "filterPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, dataKey: { classPropertyName: "dataKey", publicName: "dataKey", isSignal: true, isRequired: false, transformFunction: null }, filter: { classPropertyName: "filter", publicName: "filter", isSignal: true, isRequired: false, transformFunction: null }, filterMode: { classPropertyName: "filterMode", publicName: "filterMode", isSignal: true, isRequired: false, transformFunction: null }, virtualScroll: { classPropertyName: "virtualScroll", publicName: "virtualScroll", isSignal: true, isRequired: false, transformFunction: null }, virtualScrollItemSize: { classPropertyName: "virtualScrollItemSize", publicName: "virtualScrollItemSize", isSignal: true, isRequired: false, transformFunction: null }, scrollHeight: { classPropertyName: "scrollHeight", publicName: "scrollHeight", isSignal: true, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: true, isRequired: false, transformFunction: null }, style: { classPropertyName: "style", publicName: "style", isSignal: true, isRequired: false, transformFunction: null }, pInputs: { classPropertyName: "pInputs", publicName: "pInputs", isSignal: true, isRequired: false, transformFunction: null }, nodeActions: { classPropertyName: "nodeActions", publicName: "nodeActions", isSignal: true, isRequired: false, transformFunction: null }, nodeContextmenuActions: { classPropertyName: "nodeContextmenuActions", publicName: "nodeContextmenuActions", isSignal: true, isRequired: false, transformFunction: null }, contextMenuSelection: { classPropertyName: "contextMenuSelection", publicName: "contextMenuSelection", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selection: "selectionChange", contextMenuSelection: "contextMenuSelectionChange", action: "action" }, viewQueries: [{ propertyName: "primeTree", first: true, predicate: ["primeTree"], descendants: true, isSignal: true }], ngImport: i0, template: "<p-tree\r\n #primeTree\r\n [value]=\"treeValue()\"\r\n [(selection)]=\"selection\"\r\n [selectionMode]=\"selectionMode()\"\r\n [propagateSelectionUp]=\"propagateSelectionUp()\"\r\n [propagateSelectionDown]=\"propagateSelectionDown()\"\r\n [loading]=\"loading()\"\r\n [emptyMessage]=\"emptyMessage()\"\r\n [filter]=\"filter()\"\r\n [virtualScroll]=\"virtualScroll()\"\r\n [virtualScrollItemSize]=\"virtualScrollItemSize()\"\r\n [scrollHeight]=\"scrollHeight()\"\r\n [filterMode]=\"filterMode()\"\r\n [filterPlaceholder]=\"filterPlaceholder()\"\r\n [styleClass]=\"'mt-tree ' + styleClass()\"\r\n [style]=\"style()\"\r\n [contextMenu]=\"contextMenuItems().length ? cm : null\"\r\n [(contextMenuSelection)]=\"contextMenuSelection\"\r\n contextMenuSelectionMode=\"separate\"\r\n (selectionChange)=\"onSelectionChange($event)\"\r\n (onNodeSelect)=\"onNodeSelect($event)\"\r\n (onNodeUnselect)=\"onNodeUnselect($event)\"\r\n (onNodeExpand)=\"onNodeExpand($event)\"\r\n (onNodeCollapse)=\"onNodeCollapse($event)\"\r\n (onNodeContextMenuSelect)=\"onContextMenuSelect($event.node)\"\r\n>\r\n <ng-template let-node pTemplate=\"default\">\r\n <div\r\n (click)=\"selectionMode() === 'checkbox' ? $event.stopPropagation() : null\"\r\n class=\"mt-tree-node border-1 border-gray-300 cursor-default rounded-lg flex items-center hover:bg-surface-100 justify-between\"\r\n [class]=\"node?.key.includes('check-all') ? 'bg-surface-100 ' : ''\"\r\n >\r\n <div\r\n class=\"px-3 flex items-center justify-between flex-1\"\r\n [class.cursor-pointer]=\"\r\n selectionMode() === 'single' || selectionMode() === 'multiple'\r\n \"\r\n >\r\n <div class=\"flex items-center\">\r\n @if (node.children && node.children.length > 0) {\r\n <div class=\"py-3\" (click)=\"toggleNodeExpanded(node, $event)\">\r\n <mt-icon\r\n class=\"text-2xl cursor-pointer\"\r\n [icon]=\"\r\n node.expanded\r\n ? 'arrow.chevron-down'\r\n : dir?.value === 'rtl'\r\n ? 'arrow.chevron-left'\r\n : 'arrow.chevron-right'\r\n \"\r\n />\r\n </div>\r\n }\r\n @if (node.icon || nodeIcon()) {\r\n <mt-avatar\r\n class=\"ms-2\"\r\n [icon]=\"node.icon || nodeIcon()\"\r\n shape=\"square\"\r\n size=\"small\"\r\n style=\"\r\n --p-avatar-background: var(--p-primary-50);\r\n --p-avatar-color: var(--p-primary-color);\r\n \"\r\n [style]=\"\r\n node?.key.includes('check-all')\r\n ? ' --p-avatar-background: var(--p-primary-color); --p-avatar-color: white'\r\n : ''\r\n \"\r\n >\r\n </mt-avatar>\r\n }\r\n <div class=\"text-md mx-3 py-4\">{{ node.label }}</div>\r\n </div>\r\n <div class=\"flex items-center gap-2\">\r\n @if (nodeActions().length > 0) {\r\n <div class=\"flex items-center\">\r\n @for (action of nodeActions(); track action.icon) {\r\n @let hidden = action.hidden?.(node);\r\n @if (!hidden) {\r\n <mt-button\r\n [variant]=\"action.variant\"\r\n [icon]=\"action.icon\"\r\n [severity]=\"action.severity\"\r\n [size]=\"action.size\"\r\n [label]=\"action.label\"\r\n [tooltip]=\"action.tooltip\"\r\n [loading]=\"resolveActionLoading(action, node)\"\r\n (click)=\"nodeAction(action, node)\"\r\n >\r\n </mt-button>\r\n }\r\n }\r\n </div>\r\n }\r\n </div>\r\n </div>\r\n @if (selectionMode() === \"checkbox\") {\r\n <div\r\n class=\"me-3\"\r\n [class.cursor-pointer]=\"node.selectable !== false\"\r\n (click)=\"toggleNodeSelection(node, $event)\"\r\n >\r\n <mt-toggle-field\r\n (ngModelChange)=\"getCheckAllValue($event)\"\r\n [ngModel]=\"node.checked\"\r\n [disabled]=\"node.selectable === false\"\r\n />\r\n </div>\r\n }\r\n </div>\r\n </ng-template>\r\n</p-tree>\r\n\r\n<p-contextMenu #cm [model]=\"contextMenuItems()\" appendTo=\"body\">\r\n <ng-template pTemplate=\"item\" let-item>\r\n <div class=\"p-menu-item-content\" (click)=\"item.command()\">\r\n <a class=\"p-menu-item-link flex items-center gap-2\">\r\n @if (item.icon) {\r\n <mt-icon [icon]=\"item.icon\" class=\"text-lg\" />\r\n }\r\n <span class=\"p-menu-item-label\">{{ item.label }}</span>\r\n </a>\r\n </div>\r\n </ng-template>\r\n</p-contextMenu>\r\n", styles: [""], dependencies: [{ kind: "ngmodule", type: TreeModule }, { kind: "component", type: i1.Tree, selector: "p-tree", inputs: ["value", "selectionMode", "loadingMode", "selection", "styleClass", "contextMenu", "contextMenuSelectionMode", "contextMenuSelection", "draggableScope", "droppableScope", "draggableNodes", "droppableNodes", "metaKeySelection", "propagateSelectionUp", "propagateSelectionDown", "loading", "loadingIcon", "emptyMessage", "ariaLabel", "togglerAriaLabel", "ariaLabelledBy", "validateDrop", "filter", "filterInputAutoFocus", "filterBy", "filterMode", "filterOptions", "filterPlaceholder", "filteredNodes", "filterLocale", "scrollHeight", "lazy", "virtualScroll", "virtualScrollItemSize", "virtualScrollOptions", "indentation", "_templateMap", "trackBy", "highlightOnSelect"], outputs: ["selectionChange", "contextMenuSelectionChange", "onNodeSelect", "onNodeUnselect", "onNodeExpand", "onNodeCollapse", "onNodeContextMenuSelect", "onNodeDoubleClick", "onNodeDrop", "onLazyLoad", "onScroll", "onScrollIndexChange", "onFilter"] }, { kind: "directive", type: i2.PrimeTemplate, selector: "[pTemplate]", inputs: ["type", "pTemplate"] }, { kind: "component", type: Icon, selector: "mt-icon", inputs: ["icon"] }, { kind: "ngmodule", type: CommonModule }, { kind: "component", type: Avatar, selector: "mt-avatar", inputs: ["label", "icon", "image", "styleClass", "size", "shape", "badge", "badgeSize", "badgeSeverity"], outputs: ["onImageError"] }, { kind: "component", type: Button, selector: "mt-button", inputs: ["icon", "label", "tooltip", "class", "type", "styleClass", "severity", "badge", "variant", "badgeSeverity", "size", "iconPos", "autofocus", "fluid", "raised", "rounded", "text", "plain", "outlined", "link", "disabled", "loading", "pInputs"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: ToggleField, selector: "mt-toggle-field", inputs: ["label", "inputId", "labelPosition", "placeholder", "readonly", "pInputs", "required", "toggleShape", "size", "icon", "descriptionCard"], outputs: ["onChange"] }, { kind: "ngmodule", type: ContextMenuModule }, { kind: "component", type: i4.ContextMenu, selector: "p-contextMenu, p-contextmenu, p-context-menu", inputs: ["model", "triggerEvent", "target", "global", "style", "styleClass", "autoZIndex", "baseZIndex", "id", "breakpoint", "ariaLabel", "ariaLabelledBy", "pressDelay", "appendTo", "motionOptions"], outputs: ["onShow", "onHide"] }, { kind: "ngmodule", type: TranslocoModule }] });
239
- }
240
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.8", ngImport: i0, type: Tree, decorators: [{
241
- type: Component,
242
- args: [{ selector: 'mt-tree', standalone: true, imports: [
243
- TreeModule,
244
- Icon,
245
- CommonModule,
246
- Avatar,
247
- Button,
248
- FormsModule,
249
- ToggleField,
250
- ContextMenuModule,
251
- TranslocoModule,
252
- ], template: "<p-tree\r\n #primeTree\r\n [value]=\"treeValue()\"\r\n [(selection)]=\"selection\"\r\n [selectionMode]=\"selectionMode()\"\r\n [propagateSelectionUp]=\"propagateSelectionUp()\"\r\n [propagateSelectionDown]=\"propagateSelectionDown()\"\r\n [loading]=\"loading()\"\r\n [emptyMessage]=\"emptyMessage()\"\r\n [filter]=\"filter()\"\r\n [virtualScroll]=\"virtualScroll()\"\r\n [virtualScrollItemSize]=\"virtualScrollItemSize()\"\r\n [scrollHeight]=\"scrollHeight()\"\r\n [filterMode]=\"filterMode()\"\r\n [filterPlaceholder]=\"filterPlaceholder()\"\r\n [styleClass]=\"'mt-tree ' + styleClass()\"\r\n [style]=\"style()\"\r\n [contextMenu]=\"contextMenuItems().length ? cm : null\"\r\n [(contextMenuSelection)]=\"contextMenuSelection\"\r\n contextMenuSelectionMode=\"separate\"\r\n (selectionChange)=\"onSelectionChange($event)\"\r\n (onNodeSelect)=\"onNodeSelect($event)\"\r\n (onNodeUnselect)=\"onNodeUnselect($event)\"\r\n (onNodeExpand)=\"onNodeExpand($event)\"\r\n (onNodeCollapse)=\"onNodeCollapse($event)\"\r\n (onNodeContextMenuSelect)=\"onContextMenuSelect($event.node)\"\r\n>\r\n <ng-template let-node pTemplate=\"default\">\r\n <div\r\n (click)=\"selectionMode() === 'checkbox' ? $event.stopPropagation() : null\"\r\n class=\"mt-tree-node border-1 border-gray-300 cursor-default rounded-lg flex items-center hover:bg-surface-100 justify-between\"\r\n [class]=\"node?.key.includes('check-all') ? 'bg-surface-100 ' : ''\"\r\n >\r\n <div\r\n class=\"px-3 flex items-center justify-between flex-1\"\r\n [class.cursor-pointer]=\"\r\n selectionMode() === 'single' || selectionMode() === 'multiple'\r\n \"\r\n >\r\n <div class=\"flex items-center\">\r\n @if (node.children && node.children.length > 0) {\r\n <div class=\"py-3\" (click)=\"toggleNodeExpanded(node, $event)\">\r\n <mt-icon\r\n class=\"text-2xl cursor-pointer\"\r\n [icon]=\"\r\n node.expanded\r\n ? 'arrow.chevron-down'\r\n : dir?.value === 'rtl'\r\n ? 'arrow.chevron-left'\r\n : 'arrow.chevron-right'\r\n \"\r\n />\r\n </div>\r\n }\r\n @if (node.icon || nodeIcon()) {\r\n <mt-avatar\r\n class=\"ms-2\"\r\n [icon]=\"node.icon || nodeIcon()\"\r\n shape=\"square\"\r\n size=\"small\"\r\n style=\"\r\n --p-avatar-background: var(--p-primary-50);\r\n --p-avatar-color: var(--p-primary-color);\r\n \"\r\n [style]=\"\r\n node?.key.includes('check-all')\r\n ? ' --p-avatar-background: var(--p-primary-color); --p-avatar-color: white'\r\n : ''\r\n \"\r\n >\r\n </mt-avatar>\r\n }\r\n <div class=\"text-md mx-3 py-4\">{{ node.label }}</div>\r\n </div>\r\n <div class=\"flex items-center gap-2\">\r\n @if (nodeActions().length > 0) {\r\n <div class=\"flex items-center\">\r\n @for (action of nodeActions(); track action.icon) {\r\n @let hidden = action.hidden?.(node);\r\n @if (!hidden) {\r\n <mt-button\r\n [variant]=\"action.variant\"\r\n [icon]=\"action.icon\"\r\n [severity]=\"action.severity\"\r\n [size]=\"action.size\"\r\n [label]=\"action.label\"\r\n [tooltip]=\"action.tooltip\"\r\n [loading]=\"resolveActionLoading(action, node)\"\r\n (click)=\"nodeAction(action, node)\"\r\n >\r\n </mt-button>\r\n }\r\n }\r\n </div>\r\n }\r\n </div>\r\n </div>\r\n @if (selectionMode() === \"checkbox\") {\r\n <div\r\n class=\"me-3\"\r\n [class.cursor-pointer]=\"node.selectable !== false\"\r\n (click)=\"toggleNodeSelection(node, $event)\"\r\n >\r\n <mt-toggle-field\r\n (ngModelChange)=\"getCheckAllValue($event)\"\r\n [ngModel]=\"node.checked\"\r\n [disabled]=\"node.selectable === false\"\r\n />\r\n </div>\r\n }\r\n </div>\r\n </ng-template>\r\n</p-tree>\r\n\r\n<p-contextMenu #cm [model]=\"contextMenuItems()\" appendTo=\"body\">\r\n <ng-template pTemplate=\"item\" let-item>\r\n <div class=\"p-menu-item-content\" (click)=\"item.command()\">\r\n <a class=\"p-menu-item-link flex items-center gap-2\">\r\n @if (item.icon) {\r\n <mt-icon [icon]=\"item.icon\" class=\"text-lg\" />\r\n }\r\n <span class=\"p-menu-item-label\">{{ item.label }}</span>\r\n </a>\r\n </div>\r\n </ng-template>\r\n</p-contextMenu>\r\n" }]
253
- }], ctorParameters: () => [], propDecorators: { primeTree: [{ type: i0.ViewChild, args: ['primeTree', { isSignal: true }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }], selection: [{ type: i0.Input, args: [{ isSignal: true, alias: "selection", required: false }] }, { type: i0.Output, args: ["selectionChange"] }], selectionMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectionMode", required: false }] }], nodeIcon: [{ type: i0.Input, args: [{ isSignal: true, alias: "nodeIcon", required: false }] }], propagateSelectionUp: [{ type: i0.Input, args: [{ isSignal: true, alias: "propagateSelectionUp", required: false }] }], propagateSelectionDown: [{ type: i0.Input, args: [{ isSignal: true, alias: "propagateSelectionDown", required: false }] }], checkAllChildren: [{ type: i0.Input, args: [{ isSignal: true, alias: "checkAllChildren", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], emptyMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyMessage", required: false }] }], checkAllLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "checkAllLabel", required: false }] }], filterPlaceholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterPlaceholder", required: false }] }], dataKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataKey", required: false }] }], filter: [{ type: i0.Input, args: [{ isSignal: true, alias: "filter", required: false }] }], filterMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterMode", required: false }] }], virtualScroll: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScroll", required: false }] }], virtualScrollItemSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScrollItemSize", required: false }] }], scrollHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollHeight", required: false }] }], styleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "styleClass", required: false }] }], style: [{ type: i0.Input, args: [{ isSignal: true, alias: "style", required: false }] }], pInputs: [{ type: i0.Input, args: [{ isSignal: true, alias: "pInputs", required: false }] }], nodeActions: [{ type: i0.Input, args: [{ isSignal: true, alias: "nodeActions", required: false }] }], nodeContextmenuActions: [{ type: i0.Input, args: [{ isSignal: true, alias: "nodeContextmenuActions", required: false }] }], contextMenuSelection: [{ type: i0.Input, args: [{ isSignal: true, alias: "contextMenuSelection", required: false }] }, { type: i0.Output, args: ["contextMenuSelectionChange"] }], action: [{ type: i0.Output, args: ["action"] }] } });
254
-
255
- /**
256
- * Generated bundle index. Do not edit.
257
- */
258
-
259
- export { Tree };
260
- //# sourceMappingURL=masterteam-components-tree.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"masterteam-components-tree.mjs","sources":["../../../../packages/masterteam/components/tree/tree.ts","../../../../packages/masterteam/components/tree/tree.html","../../../../packages/masterteam/components/tree/masterteam-components-tree.ts"],"sourcesContent":["import { ToggleField } from '@masterteam/components/toggle-field';\r\nimport { Avatar } from '@masterteam/components/avatar';\r\nimport { Button } from '@masterteam/components/button';\r\nimport {\r\n Component,\r\n input,\r\n output,\r\n viewChild,\r\n effect,\r\n inject,\r\n computed,\r\n model,\r\n Signal,\r\n signal,\r\n} from '@angular/core';\r\nimport { Tree as PrimeTree, TreeModule } from 'primeng/tree';\r\nimport { MenuItem, TreeNode } from 'primeng/api';\r\nimport { Icon } from '@masterteam/icons';\r\nimport { MTIcon } from '@masterteam/icons';\r\nimport { CommonModule } from '@angular/common';\r\nimport { Directionality } from '@angular/cdk/bidi';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { ContextMenuModule } from 'primeng/contextmenu';\r\nimport { TranslocoModule } from '@jsverse/transloco';\r\nimport {\r\n TreeAction,\r\n TreeContextMenuAction,\r\n TreeActionEvent,\r\n} from './tree-types';\r\nimport { TranslocoService } from '@jsverse/transloco';\r\n\r\n@Component({\r\n selector: 'mt-tree',\r\n standalone: true,\r\n imports: [\r\n TreeModule,\r\n Icon,\r\n CommonModule,\r\n Avatar,\r\n Button,\r\n FormsModule,\r\n ToggleField,\r\n ContextMenuModule,\r\n TranslocoModule,\r\n ],\r\n templateUrl: './tree.html',\r\n styleUrls: ['./tree.scss'],\r\n})\r\nexport class Tree {\r\n transloco = inject(TranslocoService);\r\n\r\n dir = inject(Directionality, { optional: true });\r\n\r\n readonly primeTree = viewChild<PrimeTree>('primeTree');\r\n\r\n readonly value = input.required<TreeNode[]>();\r\n readonly selection = model<TreeNode | TreeNode[] | null>();\r\n readonly selectionMode = input<'single' | 'multiple' | 'checkbox'>();\r\n readonly nodeIcon = input<MTIcon | undefined>();\r\n readonly propagateSelectionUp = input<boolean>(false);\r\n readonly propagateSelectionDown = input<boolean>(false);\r\n readonly checkAllChildren = input<boolean>(false);\r\n readonly loading = input<boolean>(false);\r\n readonly emptyMessage = input<string>(\r\n this.transloco.translate('components.tree.no-data-found'),\r\n );\r\n readonly checkAllLabel = input<string>(\r\n this.transloco.translate('components.tree.check-all'),\r\n );\r\n readonly filterPlaceholder = input<string>(\r\n this.transloco.translate('components.tree.search'),\r\n );\r\n readonly dataKey = input<'key'>('key');\r\n readonly filter = input<boolean>(false);\r\n readonly filterMode = input<'lenient' | 'strict'>('lenient');\r\n readonly virtualScroll = input<boolean>(false);\r\n readonly virtualScrollItemSize = input<number>(46);\r\n readonly scrollHeight = input<string | undefined>();\r\n\r\n readonly styleClass = input<string>('');\r\n readonly style = input<Record<string, string>>();\r\n readonly pInputs = input<Partial<PrimeTree>>();\r\n readonly nodeActions = input<TreeAction[]>([]);\r\n readonly nodeContextmenuActions = input<TreeContextMenuAction[]>([]);\r\n\r\n // Context menu state\r\n readonly contextMenuSelection = model<TreeNode | null>(null);\r\n readonly contextMenuItems = computed<MenuItem[]>(() => {\r\n const actions = this.nodeContextmenuActions();\r\n return actions.map((action) => ({\r\n label: action.label,\r\n icon: action.icon,\r\n command: () => {\r\n const node = this.contextMenuSelection();\r\n if (node) {\r\n action.action(node);\r\n }\r\n },\r\n }));\r\n });\r\n\r\n readonly action = output<TreeActionEvent>();\r\n CheckAllValue = signal<boolean>(false);\r\n // Computed tree value with \"Check All\" nodes added recursively to all parents\r\n readonly treeValue: Signal<TreeNode[]> = computed(() => {\r\n const nodes = this.value();\r\n const shouldAddCheckAll =\r\n this.checkAllChildren() && this.selectionMode() === 'checkbox';\r\n\r\n if (!shouldAddCheckAll) {\r\n return nodes;\r\n }\r\n\r\n // Recursively add \"Check All\" child to any parent node\r\n const addCheckAllRecursive = (node: TreeNode): TreeNode => {\r\n if (node.children && node.children.length > 0) {\r\n const checkAllNode: TreeNode = {\r\n key: `${node.key}-check-all`,\r\n label: this.checkAllLabel(),\r\n icon: 'general.check-square-broken',\r\n data: node,\r\n };\r\n\r\n return {\r\n ...node,\r\n children: [checkAllNode, ...node.children.map(addCheckAllRecursive)],\r\n };\r\n }\r\n return node;\r\n };\r\n\r\n // Transform all nodes\r\n const transformedNodes = nodes.map(addCheckAllRecursive);\r\n\r\n // Add \"Check All\" for entire tree at the beginning\r\n const treeCheckAllNode: TreeNode = {\r\n key: 'tree-check-all',\r\n label: this.checkAllLabel(),\r\n icon: 'general.check-square-broken',\r\n data: { isTreeRoot: true, children: transformedNodes },\r\n };\r\n\r\n return [treeCheckAllNode, ...transformedNodes];\r\n });\r\n\r\n constructor() {\r\n // Apply pInputs to the PrimeNG tree instance\r\n effect(() => {\r\n const tree = this.primeTree();\r\n const inputs = this.pInputs();\r\n if (tree && inputs) {\r\n Object.assign(tree, inputs);\r\n }\r\n });\r\n\r\n // Sync checked state when selection changes (including initial value)\r\n effect(() => {\r\n const value = this.treeValue();\r\n // Only run if we have nodes and selection\r\n if (value.length > 0 && this.selectionMode() === 'checkbox') {\r\n this.handleCheckedNodes();\r\n }\r\n });\r\n }\r\n private isProcessingBatchSelection = signal<boolean>(false);\r\n\r\n onSelectionChange(event: TreeNode | TreeNode[] | null) {\r\n // Skip emitting if we're in the middle of batch processing\r\n if (this.isProcessingBatchSelection()) {\r\n return;\r\n }\r\n this.handleCheckedNodes();\r\n this.action.emit({ action: 'selectionChange', data: event });\r\n }\r\n\r\n onNodeSelect(event: { node: TreeNode }) {\r\n this.action.emit({ action: 'nodeSelect', data: event });\r\n }\r\n\r\n onNodeUnselect(event: { node: TreeNode }) {\r\n this.action.emit({ action: 'nodeUnselect', data: event });\r\n }\r\n\r\n onNodeExpand(event: { node: TreeNode }) {\r\n this.action.emit({ action: 'nodeExpand', data: event });\r\n }\r\n\r\n onNodeCollapse(event: { node: TreeNode }) {\r\n this.action.emit({ action: 'nodeCollapse', data: event });\r\n }\r\n\r\n onContextMenuSelect(event: TreeNode) {\r\n this.contextMenuSelection.set(event);\r\n }\r\n getCheckAllValue(event: any) {\r\n this.CheckAllValue.set(event);\r\n }\r\n toggleNodeExpanded(node: TreeNode, event: MouseEvent): void {\r\n event.stopPropagation();\r\n node.expanded = !node.expanded;\r\n const tree = this.primeTree();\r\n if (tree && this.virtualScroll()) {\r\n tree.updateSerializedValue();\r\n }\r\n this.action.emit({\r\n action: node.expanded ? 'nodeExpand' : 'nodeCollapse',\r\n data: { node },\r\n });\r\n }\r\n\r\n toggleNodeSelection(node: TreeNode, event: MouseEvent): void {\r\n event.stopPropagation();\r\n if (node.selectable === false) {\r\n return;\r\n }\r\n\r\n const tree = this.primeTree();\r\n if (this.selectionMode() === 'checkbox' && tree) {\r\n if (node.key?.includes('check-all') && node.data) {\r\n const checkValue = this.CheckAllValue() ?? true;\r\n // Handle parent-level \"Check All\" - only check immediate children\r\n const parentNode = node.data;\r\n\r\n // Start batch processing to prevent multiple selection change events\r\n this.isProcessingBatchSelection.set(true);\r\n\r\n parentNode?.children?.forEach((child: TreeNode) => {\r\n if (!child.key?.includes('check-all')) {\r\n const isSelected = tree.isSelected(child);\r\n // Only toggle if the current state doesn't match desired state\r\n if ((checkValue && !isSelected) || (!checkValue && isSelected)) {\r\n tree.onNodeClick(event, child);\r\n }\r\n }\r\n });\r\n\r\n // End batch processing and emit single selection change event\r\n this.isProcessingBatchSelection.set(false);\r\n this.handleCheckedNodes();\r\n this.action.emit({\r\n action: 'selectionChange',\r\n data: this.selection(),\r\n });\r\n } else {\r\n tree.onNodeClick(event, node);\r\n }\r\n }\r\n }\r\n\r\n handleCheckedNodes() {\r\n const tree = this.primeTree();\r\n if (!tree) return;\r\n\r\n // Build a Set of selected keys for O(1) lookup instead of repeated isSelected() calls\r\n const selection = this.selection();\r\n const selectedKeys = new Set<string>();\r\n if (Array.isArray(selection)) {\r\n for (const node of selection) {\r\n if (node.key) selectedKeys.add(node.key);\r\n }\r\n }\r\n\r\n const updateNodeCheckedState = (nodes: TreeNode[]) => {\r\n for (const node of nodes) {\r\n if ((node as any).key?.includes('check-all')) {\r\n (node as any).checked = nodes.every(\r\n (n: any) => n.key?.includes('check-all') || selectedKeys.has(n.key),\r\n );\r\n } else {\r\n (node as any).checked = selectedKeys.has((node as any).key);\r\n }\r\n if (node.children) {\r\n updateNodeCheckedState(node.children);\r\n }\r\n }\r\n };\r\n updateNodeCheckedState(this.treeValue());\r\n }\r\n\r\n /**\r\n * Clears the tree's search/filter input and resets the filtered nodes.\r\n */\r\n resetFilter(): void {\r\n const tree = this.primeTree();\r\n if (!tree) return;\r\n tree.resetFilter();\r\n // PrimeNG's resetFilter() does not re-serialize the nodes, so the\r\n // (virtual-scrolled) list keeps showing the previously filtered set.\r\n // Refresh the serialized value so the full tree is rendered again.\r\n tree.updateSerializedValue();\r\n }\r\n\r\n resolveActionLoading(action: TreeAction, node: any): boolean | undefined {\r\n if (typeof action.loading === 'function') {\r\n return action.loading(node);\r\n }\r\n return action.loading;\r\n }\r\n\r\n nodeAction(action: TreeAction, node: any): void {\r\n action.action(node);\r\n }\r\n}\r\n","<p-tree\r\n #primeTree\r\n [value]=\"treeValue()\"\r\n [(selection)]=\"selection\"\r\n [selectionMode]=\"selectionMode()\"\r\n [propagateSelectionUp]=\"propagateSelectionUp()\"\r\n [propagateSelectionDown]=\"propagateSelectionDown()\"\r\n [loading]=\"loading()\"\r\n [emptyMessage]=\"emptyMessage()\"\r\n [filter]=\"filter()\"\r\n [virtualScroll]=\"virtualScroll()\"\r\n [virtualScrollItemSize]=\"virtualScrollItemSize()\"\r\n [scrollHeight]=\"scrollHeight()\"\r\n [filterMode]=\"filterMode()\"\r\n [filterPlaceholder]=\"filterPlaceholder()\"\r\n [styleClass]=\"'mt-tree ' + styleClass()\"\r\n [style]=\"style()\"\r\n [contextMenu]=\"contextMenuItems().length ? cm : null\"\r\n [(contextMenuSelection)]=\"contextMenuSelection\"\r\n contextMenuSelectionMode=\"separate\"\r\n (selectionChange)=\"onSelectionChange($event)\"\r\n (onNodeSelect)=\"onNodeSelect($event)\"\r\n (onNodeUnselect)=\"onNodeUnselect($event)\"\r\n (onNodeExpand)=\"onNodeExpand($event)\"\r\n (onNodeCollapse)=\"onNodeCollapse($event)\"\r\n (onNodeContextMenuSelect)=\"onContextMenuSelect($event.node)\"\r\n>\r\n <ng-template let-node pTemplate=\"default\">\r\n <div\r\n (click)=\"selectionMode() === 'checkbox' ? $event.stopPropagation() : null\"\r\n class=\"mt-tree-node border-1 border-gray-300 cursor-default rounded-lg flex items-center hover:bg-surface-100 justify-between\"\r\n [class]=\"node?.key.includes('check-all') ? 'bg-surface-100 ' : ''\"\r\n >\r\n <div\r\n class=\"px-3 flex items-center justify-between flex-1\"\r\n [class.cursor-pointer]=\"\r\n selectionMode() === 'single' || selectionMode() === 'multiple'\r\n \"\r\n >\r\n <div class=\"flex items-center\">\r\n @if (node.children && node.children.length > 0) {\r\n <div class=\"py-3\" (click)=\"toggleNodeExpanded(node, $event)\">\r\n <mt-icon\r\n class=\"text-2xl cursor-pointer\"\r\n [icon]=\"\r\n node.expanded\r\n ? 'arrow.chevron-down'\r\n : dir?.value === 'rtl'\r\n ? 'arrow.chevron-left'\r\n : 'arrow.chevron-right'\r\n \"\r\n />\r\n </div>\r\n }\r\n @if (node.icon || nodeIcon()) {\r\n <mt-avatar\r\n class=\"ms-2\"\r\n [icon]=\"node.icon || nodeIcon()\"\r\n shape=\"square\"\r\n size=\"small\"\r\n style=\"\r\n --p-avatar-background: var(--p-primary-50);\r\n --p-avatar-color: var(--p-primary-color);\r\n \"\r\n [style]=\"\r\n node?.key.includes('check-all')\r\n ? ' --p-avatar-background: var(--p-primary-color); --p-avatar-color: white'\r\n : ''\r\n \"\r\n >\r\n </mt-avatar>\r\n }\r\n <div class=\"text-md mx-3 py-4\">{{ node.label }}</div>\r\n </div>\r\n <div class=\"flex items-center gap-2\">\r\n @if (nodeActions().length > 0) {\r\n <div class=\"flex items-center\">\r\n @for (action of nodeActions(); track action.icon) {\r\n @let hidden = action.hidden?.(node);\r\n @if (!hidden) {\r\n <mt-button\r\n [variant]=\"action.variant\"\r\n [icon]=\"action.icon\"\r\n [severity]=\"action.severity\"\r\n [size]=\"action.size\"\r\n [label]=\"action.label\"\r\n [tooltip]=\"action.tooltip\"\r\n [loading]=\"resolveActionLoading(action, node)\"\r\n (click)=\"nodeAction(action, node)\"\r\n >\r\n </mt-button>\r\n }\r\n }\r\n </div>\r\n }\r\n </div>\r\n </div>\r\n @if (selectionMode() === \"checkbox\") {\r\n <div\r\n class=\"me-3\"\r\n [class.cursor-pointer]=\"node.selectable !== false\"\r\n (click)=\"toggleNodeSelection(node, $event)\"\r\n >\r\n <mt-toggle-field\r\n (ngModelChange)=\"getCheckAllValue($event)\"\r\n [ngModel]=\"node.checked\"\r\n [disabled]=\"node.selectable === false\"\r\n />\r\n </div>\r\n }\r\n </div>\r\n </ng-template>\r\n</p-tree>\r\n\r\n<p-contextMenu #cm [model]=\"contextMenuItems()\" appendTo=\"body\">\r\n <ng-template pTemplate=\"item\" let-item>\r\n <div class=\"p-menu-item-content\" (click)=\"item.command()\">\r\n <a class=\"p-menu-item-link flex items-center gap-2\">\r\n @if (item.icon) {\r\n <mt-icon [icon]=\"item.icon\" class=\"text-lg\" />\r\n }\r\n <span class=\"p-menu-item-label\">{{ item.label }}</span>\r\n </a>\r\n </div>\r\n </ng-template>\r\n</p-contextMenu>\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;MAgDa,IAAI,CAAA;AACf,IAAA,SAAS,GAAG,MAAM,CAAC,gBAAgB,CAAC;IAEpC,GAAG,GAAG,MAAM,CAAC,cAAc,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAEvC,IAAA,SAAS,GAAG,SAAS,CAAY,WAAW,gFAAC;AAE7C,IAAA,KAAK,GAAG,KAAK,CAAC,QAAQ,2EAAc;IACpC,SAAS,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,WAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAgC;IACjD,aAAa,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,eAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAsC;IAC3D,QAAQ,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,UAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAsB;AACtC,IAAA,oBAAoB,GAAG,KAAK,CAAU,KAAK,2FAAC;AAC5C,IAAA,sBAAsB,GAAG,KAAK,CAAU,KAAK,6FAAC;AAC9C,IAAA,gBAAgB,GAAG,KAA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,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,sBAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,wBAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,oBAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,sBAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,4BAAA,CAAA,EAAA,CAAA,EAAA,MAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,QAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AErDvD;;AAEG;;;;"}
@@ -1,41 +0,0 @@
1
- import * as _angular_core from '@angular/core';
2
- import { ElementRef } from '@angular/core';
3
- import { ControlValueAccessor, NgControl, Validators } from '@angular/forms';
4
- import { isInvalid } from '@masterteam/components';
5
-
6
- declare class SliderField implements ControlValueAccessor {
7
- readonly field: _angular_core.InputSignal<boolean>;
8
- readonly label: _angular_core.InputSignal<string | undefined>;
9
- readonly class: _angular_core.InputSignal<string>;
10
- readonly min: _angular_core.InputSignalWithTransform<number, unknown>;
11
- readonly max: _angular_core.InputSignalWithTransform<number, unknown>;
12
- readonly step: _angular_core.InputSignalWithTransform<number | undefined, unknown>;
13
- readonly hideNumber: _angular_core.InputSignalWithTransform<boolean, unknown>;
14
- readonly unit: _angular_core.InputSignal<string>;
15
- readonly readonly: _angular_core.InputSignal<boolean>;
16
- readonly required: _angular_core.InputSignal<boolean>;
17
- readonly ngControl: NgControl | null;
18
- readonly hostClass: _angular_core.Signal<string>;
19
- readonly fieldId: _angular_core.Signal<string>;
20
- readonly progressBgStyle: _angular_core.Signal<string>;
21
- readonly numberInput: _angular_core.Signal<ElementRef<HTMLInputElement> | undefined>;
22
- readonly requiredValidator: typeof Validators.required;
23
- readonly value: _angular_core.WritableSignal<number | null>;
24
- readonly disabled: _angular_core.WritableSignal<boolean>;
25
- onTouched: () => void;
26
- onModelChange: (value: number | null) => void;
27
- isInvalid: typeof isInvalid;
28
- private readonly defaultId;
29
- constructor();
30
- onValueChange(value: number | null): void;
31
- private syncInputDisplay;
32
- writeValue(value: number | null): void;
33
- registerOnChange(fn: (value: number | null) => void): void;
34
- registerOnTouched(fn: () => void): void;
35
- setDisabledState(disabled: boolean): void;
36
- private normalizeValue;
37
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<SliderField, never>;
38
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<SliderField, "mt-slider-field", never, { "field": { "alias": "field"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "hideNumber": { "alias": "hideNumber"; "required": false; "isSignal": true; }; "unit": { "alias": "unit"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
39
- }
40
-
41
- export { SliderField };
@@ -1,18 +0,0 @@
1
- import * as _angular_core from '@angular/core';
2
- import { MTIcon } from '@masterteam/icons';
3
-
4
- interface StatisticCardData {
5
- title: string;
6
- subTitle: string;
7
- icon: MTIcon;
8
- color: string;
9
- }
10
- declare class StatisticCard {
11
- readonly data: _angular_core.InputSignal<StatisticCardData>;
12
- readonly cardClass: _angular_core.InputSignal<string>;
13
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<StatisticCard, never>;
14
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<StatisticCard, "mt-statistic-card", never, { "data": { "alias": "data"; "required": true; "isSignal": true; }; "cardClass": { "alias": "cardClass"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
15
- }
16
-
17
- export { StatisticCard };
18
- export type { StatisticCardData };
@@ -1,41 +0,0 @@
1
- import * as _angular_core from '@angular/core';
2
- import { OnInit, OnChanges, SimpleChanges } from '@angular/core';
3
- import { ControlValueAccessor, Validators, NgControl } from '@angular/forms';
4
- import { isInvalid } from '@masterteam/components';
5
-
6
- declare class TextareaField implements ControlValueAccessor, OnInit, OnChanges {
7
- textarea: HTMLTextAreaElement;
8
- readonly field: _angular_core.InputSignal<boolean>;
9
- readonly hint: _angular_core.InputSignal<string | undefined>;
10
- readonly label: _angular_core.InputSignal<string | undefined>;
11
- readonly placeholder: _angular_core.InputSignal<string | undefined>;
12
- readonly class: _angular_core.InputSignal<string>;
13
- readonly readonly: _angular_core.InputSignal<boolean>;
14
- readonly noErrorStyle: _angular_core.InputSignal<boolean>;
15
- readonly pInputs: _angular_core.InputSignal<Partial<HTMLTextAreaElement> | undefined>;
16
- readonly rows: _angular_core.InputSignal<string>;
17
- readonly required: _angular_core.InputSignal<boolean>;
18
- readonly maxLength: _angular_core.InputSignalWithTransform<number | null, unknown>;
19
- styleClass: string;
20
- requiredValidator: typeof Validators.required;
21
- private maxLengthValidator;
22
- value: _angular_core.WritableSignal<string | null>;
23
- disabled: _angular_core.WritableSignal<boolean>;
24
- onTouched: () => void;
25
- onModelChange: (value: string | null) => void;
26
- ngControl: NgControl | null;
27
- isInvalid: typeof isInvalid;
28
- constructor();
29
- applyInputsToTextarea(): void;
30
- ngOnInit(): void;
31
- onValueChange(value: string | null): void;
32
- ngOnChanges(changes: SimpleChanges): void;
33
- writeValue(value: string): void;
34
- registerOnChange(fn: any): void;
35
- registerOnTouched(fn: any): void;
36
- setDisabledState(disabled: boolean): void;
37
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<TextareaField, never>;
38
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<TextareaField, "mt-textarea-field", never, { "field": { "alias": "field"; "required": false; "isSignal": true; }; "hint": { "alias": "hint"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; "class": { "alias": "class"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "noErrorStyle": { "alias": "noErrorStyle"; "required": false; "isSignal": true; }; "pInputs": { "alias": "pInputs"; "required": false; "isSignal": true; }; "rows": { "alias": "rows"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "maxLength": { "alias": "maxLength"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
39
- }
40
-
41
- export { TextareaField };
@@ -1,20 +0,0 @@
1
- import * as _angular_core from '@angular/core';
2
-
3
- declare class Topbar {
4
- logo: _angular_core.InputSignal<string | undefined>;
5
- logoLink: _angular_core.InputSignal<string | any[] | undefined>;
6
- bgColor: _angular_core.InputSignal<string>;
7
- bgImage: _angular_core.InputSignal<string | undefined>;
8
- bgRepeat: _angular_core.InputSignalWithTransform<boolean, unknown>;
9
- textColor: _angular_core.InputSignal<string>;
10
- title: _angular_core.InputSignal<string | undefined>;
11
- subTitle: _angular_core.InputSignal<string | undefined>;
12
- showBranding: _angular_core.InputSignalWithTransform<boolean, unknown>;
13
- logoClass: _angular_core.InputSignal<string | undefined>;
14
- titleClass: _angular_core.InputSignal<string | undefined>;
15
- subTitleClass: _angular_core.InputSignal<string | undefined>;
16
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<Topbar, never>;
17
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<Topbar, "mt-topbar", never, { "logo": { "alias": "logo"; "required": false; "isSignal": true; }; "logoLink": { "alias": "logoLink"; "required": false; "isSignal": true; }; "bgColor": { "alias": "bgColor"; "required": false; "isSignal": true; }; "bgImage": { "alias": "bgImage"; "required": false; "isSignal": true; }; "bgRepeat": { "alias": "bgRepeat"; "required": false; "isSignal": true; }; "textColor": { "alias": "textColor"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": false; "isSignal": true; }; "subTitle": { "alias": "subTitle"; "required": false; "isSignal": true; }; "showBranding": { "alias": "showBranding"; "required": false; "isSignal": true; }; "logoClass": { "alias": "logoClass"; "required": false; "isSignal": true; }; "titleClass": { "alias": "titleClass"; "required": false; "isSignal": true; }; "subTitleClass": { "alias": "subTitleClass"; "required": false; "isSignal": true; }; }, {}, never, ["[start]", "[actions]"], true, never>;
18
- }
19
-
20
- export { Topbar };
@@ -1,106 +0,0 @@
1
- import * as _angular_core from '@angular/core';
2
- import { Signal } from '@angular/core';
3
- import { Tree as Tree$1 } from 'primeng/tree';
4
- import { TreeNode, MenuItem } from 'primeng/api';
5
- export { TreeNode } from 'primeng/api';
6
- import { MTIcon } from '@masterteam/icons';
7
- import { Directionality } from '@angular/cdk/bidi';
8
- import { TranslocoService } from '@jsverse/transloco';
9
-
10
- /**
11
- * Defines an action button for tree nodes
12
- */
13
- interface TreeAction {
14
- icon?: MTIcon | undefined;
15
- severity?: 'info' | 'success' | 'warn' | 'danger' | 'secondary' | 'contrast' | 'help' | 'primary';
16
- variant?: 'text' | 'outlined' | undefined;
17
- size?: 'small' | 'large' | undefined;
18
- label?: string;
19
- tooltip?: string;
20
- hidden?: (node: any) => boolean;
21
- action: (node: any) => void;
22
- loading?: boolean | ((node: any) => boolean);
23
- }
24
- /**
25
- * Defines a context menu action for tree nodes
26
- */
27
- interface TreeContextMenuAction {
28
- icon?: MTIcon | undefined;
29
- label: string;
30
- action: (node: any) => void;
31
- }
32
- /**
33
- * Tree action types - all possible events from tree component
34
- */
35
- type TreeActionType = 'selectionChange' | 'nodeSelect' | 'nodeUnselect' | 'nodeExpand' | 'nodeCollapse';
36
- /**
37
- * Tree action event interface - unified event structure for all tree actions
38
- */
39
- interface TreeActionEvent {
40
- action: TreeActionType;
41
- data: any;
42
- }
43
-
44
- declare class Tree {
45
- transloco: TranslocoService;
46
- dir: Directionality | null;
47
- readonly primeTree: Signal<Tree$1 | undefined>;
48
- readonly value: _angular_core.InputSignal<TreeNode<any>[]>;
49
- readonly selection: _angular_core.ModelSignal<TreeNode<any> | TreeNode<any>[] | null | undefined>;
50
- readonly selectionMode: _angular_core.InputSignal<"single" | "multiple" | "checkbox" | undefined>;
51
- readonly nodeIcon: _angular_core.InputSignal<MTIcon | undefined>;
52
- readonly propagateSelectionUp: _angular_core.InputSignal<boolean>;
53
- readonly propagateSelectionDown: _angular_core.InputSignal<boolean>;
54
- readonly checkAllChildren: _angular_core.InputSignal<boolean>;
55
- readonly loading: _angular_core.InputSignal<boolean>;
56
- readonly emptyMessage: _angular_core.InputSignal<string>;
57
- readonly checkAllLabel: _angular_core.InputSignal<string>;
58
- readonly filterPlaceholder: _angular_core.InputSignal<string>;
59
- readonly dataKey: _angular_core.InputSignal<"key">;
60
- readonly filter: _angular_core.InputSignal<boolean>;
61
- readonly filterMode: _angular_core.InputSignal<"lenient" | "strict">;
62
- readonly virtualScroll: _angular_core.InputSignal<boolean>;
63
- readonly virtualScrollItemSize: _angular_core.InputSignal<number>;
64
- readonly scrollHeight: _angular_core.InputSignal<string | undefined>;
65
- readonly styleClass: _angular_core.InputSignal<string>;
66
- readonly style: _angular_core.InputSignal<Record<string, string> | undefined>;
67
- readonly pInputs: _angular_core.InputSignal<Partial<Tree$1> | undefined>;
68
- readonly nodeActions: _angular_core.InputSignal<TreeAction[]>;
69
- readonly nodeContextmenuActions: _angular_core.InputSignal<TreeContextMenuAction[]>;
70
- readonly contextMenuSelection: _angular_core.ModelSignal<TreeNode<any> | null>;
71
- readonly contextMenuItems: Signal<MenuItem[]>;
72
- readonly action: _angular_core.OutputEmitterRef<TreeActionEvent>;
73
- CheckAllValue: _angular_core.WritableSignal<boolean>;
74
- readonly treeValue: Signal<TreeNode[]>;
75
- constructor();
76
- private isProcessingBatchSelection;
77
- onSelectionChange(event: TreeNode | TreeNode[] | null): void;
78
- onNodeSelect(event: {
79
- node: TreeNode;
80
- }): void;
81
- onNodeUnselect(event: {
82
- node: TreeNode;
83
- }): void;
84
- onNodeExpand(event: {
85
- node: TreeNode;
86
- }): void;
87
- onNodeCollapse(event: {
88
- node: TreeNode;
89
- }): void;
90
- onContextMenuSelect(event: TreeNode): void;
91
- getCheckAllValue(event: any): void;
92
- toggleNodeExpanded(node: TreeNode, event: MouseEvent): void;
93
- toggleNodeSelection(node: TreeNode, event: MouseEvent): void;
94
- handleCheckedNodes(): void;
95
- /**
96
- * Clears the tree's search/filter input and resets the filtered nodes.
97
- */
98
- resetFilter(): void;
99
- resolveActionLoading(action: TreeAction, node: any): boolean | undefined;
100
- nodeAction(action: TreeAction, node: any): void;
101
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<Tree, never>;
102
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<Tree, "mt-tree", never, { "value": { "alias": "value"; "required": true; "isSignal": true; }; "selection": { "alias": "selection"; "required": false; "isSignal": true; }; "selectionMode": { "alias": "selectionMode"; "required": false; "isSignal": true; }; "nodeIcon": { "alias": "nodeIcon"; "required": false; "isSignal": true; }; "propagateSelectionUp": { "alias": "propagateSelectionUp"; "required": false; "isSignal": true; }; "propagateSelectionDown": { "alias": "propagateSelectionDown"; "required": false; "isSignal": true; }; "checkAllChildren": { "alias": "checkAllChildren"; "required": false; "isSignal": true; }; "loading": { "alias": "loading"; "required": false; "isSignal": true; }; "emptyMessage": { "alias": "emptyMessage"; "required": false; "isSignal": true; }; "checkAllLabel": { "alias": "checkAllLabel"; "required": false; "isSignal": true; }; "filterPlaceholder": { "alias": "filterPlaceholder"; "required": false; "isSignal": true; }; "dataKey": { "alias": "dataKey"; "required": false; "isSignal": true; }; "filter": { "alias": "filter"; "required": false; "isSignal": true; }; "filterMode": { "alias": "filterMode"; "required": false; "isSignal": true; }; "virtualScroll": { "alias": "virtualScroll"; "required": false; "isSignal": true; }; "virtualScrollItemSize": { "alias": "virtualScrollItemSize"; "required": false; "isSignal": true; }; "scrollHeight": { "alias": "scrollHeight"; "required": false; "isSignal": true; }; "styleClass": { "alias": "styleClass"; "required": false; "isSignal": true; }; "style": { "alias": "style"; "required": false; "isSignal": true; }; "pInputs": { "alias": "pInputs"; "required": false; "isSignal": true; }; "nodeActions": { "alias": "nodeActions"; "required": false; "isSignal": true; }; "nodeContextmenuActions": { "alias": "nodeContextmenuActions"; "required": false; "isSignal": true; }; "contextMenuSelection": { "alias": "contextMenuSelection"; "required": false; "isSignal": true; }; }, { "selection": "selectionChange"; "contextMenuSelection": "contextMenuSelectionChange"; "action": "action"; }, never, never, true, never>;
103
- }
104
-
105
- export { Tree };
106
- export type { TreeAction, TreeActionEvent, TreeActionType, TreeContextMenuAction };