@acorex/platform 20.2.3 → 20.2.4-next.1

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 (75) hide show
  1. package/common/index.d.ts +91 -3
  2. package/core/index.d.ts +65 -58
  3. package/fesm2022/acorex-platform-common.mjs +16 -8
  4. package/fesm2022/acorex-platform-common.mjs.map +1 -1
  5. package/fesm2022/acorex-platform-core.mjs +110 -158
  6. package/fesm2022/acorex-platform-core.mjs.map +1 -1
  7. package/fesm2022/acorex-platform-layout-builder.mjs +109 -55
  8. package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
  9. package/fesm2022/acorex-platform-layout-components.mjs +1086 -35
  10. package/fesm2022/acorex-platform-layout-components.mjs.map +1 -1
  11. package/fesm2022/acorex-platform-layout-designer.mjs +15 -122
  12. package/fesm2022/acorex-platform-layout-designer.mjs.map +1 -1
  13. package/fesm2022/acorex-platform-layout-entity.mjs +2518 -1006
  14. package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
  15. package/fesm2022/acorex-platform-layout-views.mjs +243 -65
  16. package/fesm2022/acorex-platform-layout-views.mjs.map +1 -1
  17. package/fesm2022/{acorex-platform-themes-default-entity-master-create-view.component-hHXxHlFG.mjs → acorex-platform-themes-default-entity-master-create-view.component-I7Eq8Nti.mjs} +3 -3
  18. package/fesm2022/{acorex-platform-themes-default-entity-master-create-view.component-hHXxHlFG.mjs.map → acorex-platform-themes-default-entity-master-create-view.component-I7Eq8Nti.mjs.map} +1 -1
  19. package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-DXGLsVis.mjs +706 -0
  20. package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-DXGLsVis.mjs.map +1 -0
  21. package/fesm2022/{acorex-platform-themes-default-entity-master-modify-view.component-DC3MrDtI.mjs → acorex-platform-themes-default-entity-master-modify-view.component-16sdMBvH.mjs} +3 -10
  22. package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-16sdMBvH.mjs.map +1 -0
  23. package/fesm2022/{acorex-platform-themes-default-entity-master-single-view.component-Bb90PeHq.mjs → acorex-platform-themes-default-entity-master-single-view.component-CVaJzWb2.mjs} +25 -17
  24. package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-CVaJzWb2.mjs.map +1 -0
  25. package/fesm2022/acorex-platform-themes-default.mjs +65 -495
  26. package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
  27. package/fesm2022/{acorex-platform-themes-shared-color-chooser-column.component-DjKLg513.mjs → acorex-platform-themes-shared-theme-color-chooser-column.component-DjKLg513.mjs} +1 -1
  28. package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-column.component-DjKLg513.mjs.map +1 -0
  29. package/fesm2022/{acorex-platform-themes-shared-color-chooser-view.component-DE0wO98F.mjs → acorex-platform-themes-shared-theme-color-chooser-view.component-DE0wO98F.mjs} +1 -1
  30. package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-view.component-DE0wO98F.mjs.map +1 -0
  31. package/fesm2022/acorex-platform-themes-shared.mjs +10 -12
  32. package/fesm2022/acorex-platform-themes-shared.mjs.map +1 -1
  33. package/fesm2022/{acorex-platform-widgets-checkbox-widget-designer.component-BI18uzNZ.mjs → acorex-platform-widgets-checkbox-widget-designer.component-Cv7dEMCm.mjs} +2 -2
  34. package/fesm2022/acorex-platform-widgets-checkbox-widget-designer.component-Cv7dEMCm.mjs.map +1 -0
  35. package/fesm2022/acorex-platform-widgets-extra-properties-schema-widget-edit.component-B3SJUnGQ.mjs +50 -0
  36. package/fesm2022/acorex-platform-widgets-extra-properties-schema-widget-edit.component-B3SJUnGQ.mjs.map +1 -0
  37. package/fesm2022/acorex-platform-widgets-extra-properties-schema-widget-view.component-BLR0JkRt.mjs +42 -0
  38. package/fesm2022/acorex-platform-widgets-extra-properties-schema-widget-view.component-BLR0JkRt.mjs.map +1 -0
  39. package/fesm2022/acorex-platform-widgets-extra-properties-values-widget-edit.component-hzR2FgOm.mjs +55 -0
  40. package/fesm2022/acorex-platform-widgets-extra-properties-values-widget-edit.component-hzR2FgOm.mjs.map +1 -0
  41. package/fesm2022/acorex-platform-widgets-extra-properties-values-widget-view.component-IDm6Clua.mjs +50 -0
  42. package/fesm2022/acorex-platform-widgets-extra-properties-values-widget-view.component-IDm6Clua.mjs.map +1 -0
  43. package/fesm2022/acorex-platform-widgets-extra-properties-widget-edit.component-BRO9tYDa.mjs +48 -0
  44. package/fesm2022/acorex-platform-widgets-extra-properties-widget-edit.component-BRO9tYDa.mjs.map +1 -0
  45. package/fesm2022/acorex-platform-widgets-extra-properties-widget-view.component-CkpLimyW.mjs +42 -0
  46. package/fesm2022/acorex-platform-widgets-extra-properties-widget-view.component-CkpLimyW.mjs.map +1 -0
  47. package/fesm2022/{acorex-platform-widgets-file-list-popup.component-DFbPO0ud.mjs → acorex-platform-widgets-file-list-popup.component-B601gPsW.mjs} +66 -3
  48. package/fesm2022/acorex-platform-widgets-file-list-popup.component-B601gPsW.mjs.map +1 -0
  49. package/fesm2022/{acorex-platform-widgets-tabular-data-edit-popup.component-nLZYiPnF.mjs → acorex-platform-widgets-tabular-data-edit-popup.component-BDQIfr0g.mjs} +5 -5
  50. package/fesm2022/{acorex-platform-widgets-tabular-data-edit-popup.component-nLZYiPnF.mjs.map → acorex-platform-widgets-tabular-data-edit-popup.component-BDQIfr0g.mjs.map} +1 -1
  51. package/fesm2022/{acorex-platform-widgets-tabular-data-view-popup.component-D6kiasYM.mjs → acorex-platform-widgets-tabular-data-view-popup.component-CmPqtt0G.mjs} +3 -3
  52. package/fesm2022/{acorex-platform-widgets-tabular-data-view-popup.component-D6kiasYM.mjs.map → acorex-platform-widgets-tabular-data-view-popup.component-CmPqtt0G.mjs.map} +1 -1
  53. package/fesm2022/acorex-platform-widgets.mjs +1352 -218
  54. package/fesm2022/acorex-platform-widgets.mjs.map +1 -1
  55. package/fesm2022/acorex-platform-workflow.mjs +3 -0
  56. package/fesm2022/acorex-platform-workflow.mjs.map +1 -1
  57. package/layout/builder/index.d.ts +19 -5
  58. package/layout/components/index.d.ts +214 -9
  59. package/layout/designer/index.d.ts +3 -46
  60. package/layout/entity/index.d.ts +203 -332
  61. package/layout/views/index.d.ts +83 -21
  62. package/package.json +5 -5
  63. package/themes/default/index.d.ts +5 -2
  64. package/widgets/index.d.ts +107 -11
  65. package/workflow/index.d.ts +3 -1
  66. package/fesm2022/acorex-platform-themes-default-create-entity-view.component-SY0oMDoH.mjs +0 -22
  67. package/fesm2022/acorex-platform-themes-default-create-entity-view.component-SY0oMDoH.mjs.map +0 -1
  68. package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-hf4QOz_4.mjs +0 -665
  69. package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-hf4QOz_4.mjs.map +0 -1
  70. package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-DC3MrDtI.mjs.map +0 -1
  71. package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-Bb90PeHq.mjs.map +0 -1
  72. package/fesm2022/acorex-platform-themes-shared-color-chooser-column.component-DjKLg513.mjs.map +0 -1
  73. package/fesm2022/acorex-platform-themes-shared-color-chooser-view.component-DE0wO98F.mjs.map +0 -1
  74. package/fesm2022/acorex-platform-widgets-checkbox-widget-designer.component-BI18uzNZ.mjs.map +0 -1
  75. package/fesm2022/acorex-platform-widgets-file-list-popup.component-DFbPO0ud.mjs.map +0 -1
@@ -0,0 +1,706 @@
1
+ import { AXActionSheetModule } from '@acorex/components/action-sheet';
2
+ import * as i7 from '@acorex/components/data-table';
3
+ import { AXDataTableModule } from '@acorex/components/data-table';
4
+ import { AXDrawerModule } from '@acorex/components/drawer';
5
+ import * as i1$1 from '@acorex/core/platform';
6
+ import * as i0 from '@angular/core';
7
+ import { inject, input, viewChild, signal, ViewEncapsulation, Component, computed, effect, Input, ChangeDetectionStrategy } from '@angular/core';
8
+ import { ActivatedRoute, RouterModule } from '@angular/router';
9
+ import { AXBadgeModule } from '@acorex/components/badge';
10
+ import { AXBreadcrumbsModule } from '@acorex/components/breadcrumbs';
11
+ import * as i3$1 from '@acorex/components/button';
12
+ import { AXButtonModule } from '@acorex/components/button';
13
+ import * as i2 from '@acorex/components/decorators';
14
+ import { AXDecoratorModule } from '@acorex/components/decorators';
15
+ import { AXDialogModule } from '@acorex/components/dialog';
16
+ import * as i5 from '@acorex/components/dropdown';
17
+ import { AXDropdownModule } from '@acorex/components/dropdown';
18
+ import { AXFormModule } from '@acorex/components/form';
19
+ import { AXLoadingModule } from '@acorex/components/loading';
20
+ import * as i3$2 from '@acorex/components/popover';
21
+ import { AXPopoverModule } from '@acorex/components/popover';
22
+ import * as i6 from '@acorex/components/search-box';
23
+ import { AXSearchBoxModule } from '@acorex/components/search-box';
24
+ import { AXTabsModule } from '@acorex/components/tabs';
25
+ import { AXTooltipModule } from '@acorex/components/tooltip';
26
+ import * as i10 from '@acorex/core/translation';
27
+ import { AXTranslationService, AXTranslationModule, translateSync } from '@acorex/core/translation';
28
+ import { AXPAuthModule } from '@acorex/platform/auth';
29
+ import * as i7$1 from '@acorex/platform/layout/builder';
30
+ import { AXPLayoutBuilderModule } from '@acorex/platform/layout/builder';
31
+ import { AXPThemeLayoutBlockComponent, AXPThemeLayoutHeaderComponent, AXPThemeLayoutToolbarComponent, AXPQueryFiltersComponent, AXPQuerySortsComponent, AXPQueryViewsComponent, AXPQueryColumnsComponent, AXPThemeLayoutStartSideComponent } from '@acorex/platform/layout/components';
32
+ import { AXPWidgetsModule } from '@acorex/platform/widgets';
33
+ import { DragDropModule } from '@angular/cdk/drag-drop';
34
+ import * as i1 from '@angular/common';
35
+ import { CommonModule } from '@angular/common';
36
+ import { FormsModule } from '@angular/forms';
37
+ import { AXDropdownButtonModule } from '@acorex/components/dropdown-button';
38
+ import { AXPPageLayoutBaseComponent, AXPPageLayoutComponent, AXPPageLayoutBase } from '@acorex/platform/layout/views';
39
+ import { AXPLayoutThemeService } from '@acorex/platform/themes/shared';
40
+ import * as i3 from '@acorex/components/skeleton';
41
+ import { AXSkeletonModule } from '@acorex/components/skeleton';
42
+ import * as i2$1 from '@acorex/components/tree-view';
43
+ import { AXTreeViewModule } from '@acorex/components/tree-view';
44
+ import { AXPWorkflowService } from '@acorex/platform/workflow';
45
+ import { AXPEntityResolver, AXPEntityListViewColumnViewModel } from '@acorex/platform/layout/entity';
46
+
47
+ class AXPEntityCategoryComponent {
48
+ constructor() {
49
+ this.entityResolver = inject(AXPEntityResolver);
50
+ this.translate = inject(AXTranslationService);
51
+ this.workflow = inject(AXPWorkflowService);
52
+ this.vm = input.required(...(ngDevMode ? [{ debugName: "vm" }] : []));
53
+ this.tree = viewChild('tree', ...(ngDevMode ? [{ debugName: "tree" }] : []));
54
+ this.searchValue = input('', ...(ngDevMode ? [{ debugName: "searchValue" }] : []));
55
+ this.isLoading = signal(true, ...(ngDevMode ? [{ debugName: "isLoading" }] : []));
56
+ this.basicQueryEvent = {
57
+ skip: 0,
58
+ take: 1000,
59
+ };
60
+ this.treeItems = signal([
61
+ {
62
+ expand: true,
63
+ children: [],
64
+ },
65
+ ], ...(ngDevMode ? [{ debugName: "treeItems" }] : []));
66
+ }
67
+ ngOnInit() {
68
+ this.getCategories();
69
+ }
70
+ async handleCategorySearchChange(e) {
71
+ if (this.categoryEntityDef) {
72
+ this.isLoading.set(true);
73
+ const categoryInlineFilters = this.categoryEntityDef.properties.filter((p) => p.options?.filter?.inline?.enabled);
74
+ const event = {
75
+ ...this.basicQueryEvent,
76
+ filter: {
77
+ filters: [
78
+ {
79
+ filters: categoryInlineFilters.map((cif) => ({
80
+ field: cif.name,
81
+ operator: {
82
+ type: 'contains',
83
+ },
84
+ value: e.value,
85
+ })),
86
+ logic: 'or',
87
+ },
88
+ {
89
+ value: true,
90
+ field: this.categoryEntityDef.parentKey,
91
+ operator: {
92
+ type: 'isEmpty',
93
+ },
94
+ },
95
+ ],
96
+ logic: 'and',
97
+ },
98
+ };
99
+ const res = await this.categoryEntityQueryFunc(event);
100
+ this.treeItems.update((prev) => prev.map((item) => ({ ...item, children: res.items })));
101
+ this.isLoading.set(false);
102
+ }
103
+ }
104
+ async getCategories() {
105
+ this.isLoading.set(true);
106
+ this.categoryEntityDef = await this.getCategoryEntityDef();
107
+ this.categoryEntityQueryFunc = this.categoryEntityDef?.queries.list?.execute;
108
+ const res = await this.categoryEntityQueryFunc(this.basicQueryEvent);
109
+ const textField = this.vm().entityDef.category?.textField || 'title';
110
+ const valueField = this.vm().entityDef.category?.valueField || 'id';
111
+ const updatedItems = {
112
+ expand: true,
113
+ [textField]: await this.translate.translateAsync('allItems'),
114
+ [valueField]: 'all',
115
+ children: res.items,
116
+ };
117
+ this.treeItems.update((prev) => prev.map((_) => updatedItems));
118
+ this.isLoading.set(false);
119
+ }
120
+ async handleCollapseChanged(e) {
121
+ await this.loadChildrenAtNode(e.data.id);
122
+ }
123
+ async getCategoryEntityDef() {
124
+ const [module, entity] = this.vm().entityDef.category?.entity?.split('.') || [];
125
+ return await this.entityResolver.get(module, entity);
126
+ }
127
+ handleNodeClick(event) {
128
+ const filters = this.vm()
129
+ .entityDef.category?.applyConditions?.map((f) => {
130
+ return event.data[f.value] !== 'all'
131
+ ? {
132
+ field: f.name,
133
+ value: event.data[f.value],
134
+ operator: f.operator,
135
+ }
136
+ : null;
137
+ })
138
+ .filter((item) => item != null);
139
+ const viewFilters = this.vm()
140
+ .view()
141
+ .conditions.map((i) => ({ ...i, field: i.name }));
142
+ console.log({ viewFilters });
143
+ const newFilters = [...viewFilters, ...filters];
144
+ // this.vm().filterQueries.update((prev) => [...prev, ...filters!]);
145
+ this.vm().dataSource.filter({
146
+ filters: newFilters,
147
+ logic: 'and',
148
+ });
149
+ this.vm().dataSource.refresh();
150
+ }
151
+ //#region ---- Utility Methods ----
152
+ /** Loads children for a given node id and updates the tree in place. */
153
+ async loadChildrenAtNode(targetId) {
154
+ this.tree()?.setNodeLoading(targetId, true);
155
+ const event = {
156
+ ...this.basicQueryEvent,
157
+ filter: {
158
+ field: this.categoryEntityDef?.parentKey,
159
+ value: targetId,
160
+ operator: { type: 'equal' },
161
+ },
162
+ };
163
+ const children = await this.categoryEntityQueryFunc(event);
164
+ const updateChildrenAtPath = (items, id) => {
165
+ return items.map((item) => {
166
+ if (item.id === id) {
167
+ return { ...item, children: children.items };
168
+ }
169
+ if (item.children?.length) {
170
+ return { ...item, children: updateChildrenAtPath(item.children, id) };
171
+ }
172
+ return item;
173
+ });
174
+ };
175
+ this.treeItems.update((prev) => prev.map((i) => ({ ...i, children: updateChildrenAtPath(prev[0].children, targetId) })));
176
+ this.tree()?.setNodeLoading(targetId, false);
177
+ }
178
+ /** Returns the module.entity key for the configured category entity. */
179
+ getCategoryEntityKey() {
180
+ return this.vm().entityDef.category?.entity;
181
+ }
182
+ /** Refresh tree after CRUD operations. */
183
+ async refreshAfterChange(parentId) {
184
+ if (parentId) {
185
+ await this.loadChildrenAtNode(parentId);
186
+ }
187
+ else {
188
+ await this.getCategories();
189
+ }
190
+ }
191
+ //#endregion
192
+ //#region ---- UI Handlers ----
193
+ /** Create a new root category node. */
194
+ async handleCreateRootClick(e) {
195
+ e.nativeEvent.preventDefault();
196
+ e.nativeEvent.stopPropagation();
197
+ await this.workflow.execute('create-entity', {
198
+ entity: this.getCategoryEntityKey(),
199
+ options: { process: { redirect: false } },
200
+ });
201
+ await this.refreshAfterChange();
202
+ }
203
+ /** Create a new child under the given node. */
204
+ async handleCreateChildClick(node, e) {
205
+ e.nativeEvent.preventDefault();
206
+ e.nativeEvent.stopPropagation();
207
+ const parentKey = this.categoryEntityDef?.parentKey;
208
+ const data = {};
209
+ if (parentKey) {
210
+ data[parentKey] = node.id;
211
+ }
212
+ await this.workflow.execute('create-entity', {
213
+ entity: this.getCategoryEntityKey(),
214
+ data,
215
+ options: { process: { redirect: false, canCreateNewOne: true } },
216
+ });
217
+ await this.refreshAfterChange(node.id);
218
+ }
219
+ /** Update the given node. */
220
+ async handleEditNodeClick(node, e) {
221
+ e.nativeEvent.preventDefault();
222
+ e.nativeEvent.stopPropagation();
223
+ await this.workflow.execute('quick-modify-entity', {
224
+ entity: this.getCategoryEntityKey(),
225
+ data: node,
226
+ options: { layout: { size: 'md' } },
227
+ });
228
+ await this.refreshAfterChange(node[this.categoryEntityDef?.parentKey]);
229
+ }
230
+ /** Delete the given node. */
231
+ async handleDeleteNodeClick(node, e) {
232
+ e.nativeEvent.preventDefault();
233
+ e.nativeEvent.stopPropagation();
234
+ await this.workflow.execute('delete-entity', {
235
+ entity: this.getCategoryEntityKey(),
236
+ data: node,
237
+ options: { process: { showResult: true } },
238
+ });
239
+ await this.refreshAfterChange(node[this.categoryEntityDef?.parentKey]);
240
+ }
241
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXPEntityCategoryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
242
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.6", type: AXPEntityCategoryComponent, isStandalone: true, selector: "axp-entity-category", inputs: { vm: { classPropertyName: "vm", publicName: "vm", isSignal: true, isRequired: true, transformFunction: null }, searchValue: { classPropertyName: "searchValue", publicName: "searchValue", isSignal: true, isRequired: false, transformFunction: null } }, viewQueries: [{ propertyName: "tree", first: true, predicate: ["tree"], descendants: true, isSignal: true }], ngImport: i0, template: "<axp-layout-header>\n <axp-layout-title>{{ vm().entityDef.category?.title || 'category' | translate | async }}</axp-layout-title>\n <axp-layout-toolbar>\n <ax-search-box (onValueChanged)=\"handleCategorySearchChange($event)\" [delayTime]=\"300\"\n [placeholder]=\"'search.placeholder' | translate | async\">\n </ax-search-box>\n </axp-layout-toolbar>\n</axp-layout-header>\n<axp-layout-content>\n @if (isLoading()) {\n <div class=\"ax-p-4 ax-flex ax-flex-col ax-gap-3\">\n <ax-skeleton class=\"ax-w-full ax-h-6 ax-rounded-md\"></ax-skeleton>\n <ax-skeleton class=\"ax-w-full ax-h-6 ax-rounded-md\"></ax-skeleton>\n <ax-skeleton class=\"ax-w-full ax-h-6 ax-rounded-md\"></ax-skeleton>\n <ax-skeleton class=\"ax-w-full ax-h-6 ax-rounded-md\"></ax-skeleton>\n <ax-skeleton class=\"ax-w-full ax-h-6 ax-rounded-md\"></ax-skeleton>\n <ax-skeleton class=\"ax-w-full ax-h-6 ax-rounded-md\"></ax-skeleton>\n </div>\n } @else if (treeItems()[0].children.length) {\n <div class=\"ax-px-4 ax-max-h-[calc(100vh-250px)] ax-overflow-auto\">\n <ax-tree-view (onNodeClick)=\"handleNodeClick($event)\" (onCollapsedChanged)=\"handleCollapseChanged($event)\"\n [showCheckbox]=\"false\" [itemTemplate]=\"itemTemplate\" #treeRef\n [textField]=\"vm().entityDef.category?.textField || 'title'\"\n [valueField]=\"vm().entityDef.category?.valueField || 'id'\" [expandedField]=\"'expand'\" [items]=\"treeItems()\" #tree>\n </ax-tree-view>\n </div>\n } @else {\n <div class=\"ax-flex ax-items-center ax-justify-center\">\n <span class=\"ax-text-center\"> No Record Found! </span>\n </div>\n }\n\n <ng-template #itemTemplate let-item>\n <div class=\"ax-flex ax-items-center ax-justify-between ax-w-full ax-gap-2 ax-overflow-hidden\">\n <div class=\"ax-flex ax-items-center ax-gap-2 ax-min-w-0\">\n <ax-icon class=\"fas ax-text-warning fa-folder\"></ax-icon>\n <span class=\"ax-truncate\">{{ item.title }}</span>\n </div>\n @if (item.id && item.id !== 'all') {\n <div class=\"ax-flex ax-items-center ax-gap-1\">\n <ax-button class=\"ax-xs\" color=\"default\" look=\"blank\" (onClick)=\"$event.nativeEvent.stopPropagation()\">\n <ax-icon class=\"fas fa-ellipsis-v\"></ax-icon>\n <ax-dropdown-panel>\n <ax-button-item-list>\n <ax-button-item (onClick)=\"handleCreateChildClick(item, $event)\" look=\"blank\" color=\"default\"\n text=\"Add New Child\">\n <ax-icon class=\"fas fa-plus\"></ax-icon>\n </ax-button-item>\n <ax-button-item (onClick)=\"handleEditNodeClick(item, $event)\" look=\"blank\" text=\"Edit\">\n <ax-icon class=\"fas fa-pen\"></ax-icon>\n </ax-button-item>\n <ax-button-item (onClick)=\"handleDeleteNodeClick(item, $event)\" color=\"danger\" look=\"blank\" text=\"Delete\">\n <ax-icon class=\"fas fa-trash\"></ax-icon>\n </ax-button-item>\n </ax-button-item-list>\n </ax-dropdown-panel>\n </ax-button>\n </div>\n } @else if (item.id === 'all') {\n <div class=\"ax-flex ax-items-center ax-gap-1\">\n <ax-button class=\"ax-xs\" (onClick)=\"handleCreateRootClick($event)\" look=\"blank\" color=\"default\">\n <ax-icon class=\"fas fa-plus\"></ax-icon>\n </ax-button>\n </div>\n }\n </div>\n </ng-template>\n</axp-layout-content>", styles: ["ax-tree-view-item .ax-tree-view-items{width:100%;min-width:0px}ax-tree-view-item .ax-tree-view-items>div{width:100%}ax-tree-view-item .ax-state-tree-view-active{background-color:rgb(var(--ax-sys-color-light-surface))!important;color:rgb(var(--ax-sys-color-on-light-surface))!important;border-color:rgb(var(--ax-sys-color-border-light-surface))!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i2.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "ngmodule", type: AXTreeViewModule }, { kind: "component", type: i2$1.AXTreeViewComponent, selector: "ax-tree-view", inputs: ["items", "showCheckbox", "hasCheckboxField", "selectionMode", "selectionBehavior", "selectionScope", "focusNodeEnabled", "valueField", "textField", "visibleField", "disableField", "hasChildField", "selectedField", "expandedField", "tooltipField", "childrenField", "activeField", "indeterminateField", "parentField", "iconField", "toggleIcons", "look", "showEmptyNodeMassage", "itemTemplate", "emptyTemplate", "expandOn"], outputs: ["onSelectionChanged", "onItemSelectedChanged", "onNodeClick", "onCollapsedChanged", "onNodedbClick"] }, { kind: "ngmodule", type: AXSkeletonModule }, { kind: "component", type: i3.AXSkeletonComponent, selector: "ax-skeleton", inputs: ["animated"] }, { kind: "component", type: AXPThemeLayoutBlockComponent, selector: " axp-page-content, axp-page-footer-container, axp-page-footer, axp-page-header, axp-page-header-container, axp-page-toolbar, axp-layout-content, axp-layout-page-content, axp-layout-sections, axp-layout-body, axp-layout-page-body, axp-layout-prefix, axp-layout-suffix, axp-layout-title-bar, axp-layout-title, axp-layout-title-actions, axp-layout-nav-button, axp-layout-description, axp-layout-breadcrumbs, axp-layout-list-action, " }, { kind: "ngmodule", type: AXSearchBoxModule }, { kind: "component", type: i6.AXSearchBoxComponent, selector: "ax-search-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "value", "state", "name", "id", "look", "class", "delayTime", "type"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "component", type: AXPThemeLayoutHeaderComponent, selector: "axp-layout-header" }, { kind: "component", type: AXPThemeLayoutToolbarComponent, selector: "axp-layout-toolbar" }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i3$1.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "component", type: i3$1.AXButtonItemComponent, selector: "ax-button-item", inputs: ["color", "disabled", "text", "selected", "divided", "data", "name"], outputs: ["onClick", "onFocus", "onBlur", "disabledChange"] }, { kind: "component", type: i3$1.AXButtonItemListComponent, selector: "ax-button-item-list", inputs: ["items"], outputs: ["onItemClick"] }, { kind: "ngmodule", type: AXDropdownModule }, { kind: "component", type: i5.AXDropdownPanelComponent, selector: "ax-dropdown-panel", inputs: ["isOpen", "fitParent", "dropdownWidth", "position", "placement", "_target", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i10.AXTranslatorPipe, name: "translate" }], encapsulation: i0.ViewEncapsulation.None }); }
243
+ }
244
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXPEntityCategoryComponent, decorators: [{
245
+ type: Component,
246
+ args: [{ selector: 'axp-entity-category', standalone: true, encapsulation: ViewEncapsulation.None, imports: [
247
+ CommonModule,
248
+ AXDecoratorModule,
249
+ AXTreeViewModule,
250
+ AXSkeletonModule,
251
+ AXPThemeLayoutBlockComponent,
252
+ AXSearchBoxModule,
253
+ AXPThemeLayoutHeaderComponent,
254
+ AXPThemeLayoutToolbarComponent,
255
+ AXTranslationModule,
256
+ AXButtonModule,
257
+ AXDropdownModule
258
+ ], template: "<axp-layout-header>\n <axp-layout-title>{{ vm().entityDef.category?.title || 'category' | translate | async }}</axp-layout-title>\n <axp-layout-toolbar>\n <ax-search-box (onValueChanged)=\"handleCategorySearchChange($event)\" [delayTime]=\"300\"\n [placeholder]=\"'search.placeholder' | translate | async\">\n </ax-search-box>\n </axp-layout-toolbar>\n</axp-layout-header>\n<axp-layout-content>\n @if (isLoading()) {\n <div class=\"ax-p-4 ax-flex ax-flex-col ax-gap-3\">\n <ax-skeleton class=\"ax-w-full ax-h-6 ax-rounded-md\"></ax-skeleton>\n <ax-skeleton class=\"ax-w-full ax-h-6 ax-rounded-md\"></ax-skeleton>\n <ax-skeleton class=\"ax-w-full ax-h-6 ax-rounded-md\"></ax-skeleton>\n <ax-skeleton class=\"ax-w-full ax-h-6 ax-rounded-md\"></ax-skeleton>\n <ax-skeleton class=\"ax-w-full ax-h-6 ax-rounded-md\"></ax-skeleton>\n <ax-skeleton class=\"ax-w-full ax-h-6 ax-rounded-md\"></ax-skeleton>\n </div>\n } @else if (treeItems()[0].children.length) {\n <div class=\"ax-px-4 ax-max-h-[calc(100vh-250px)] ax-overflow-auto\">\n <ax-tree-view (onNodeClick)=\"handleNodeClick($event)\" (onCollapsedChanged)=\"handleCollapseChanged($event)\"\n [showCheckbox]=\"false\" [itemTemplate]=\"itemTemplate\" #treeRef\n [textField]=\"vm().entityDef.category?.textField || 'title'\"\n [valueField]=\"vm().entityDef.category?.valueField || 'id'\" [expandedField]=\"'expand'\" [items]=\"treeItems()\" #tree>\n </ax-tree-view>\n </div>\n } @else {\n <div class=\"ax-flex ax-items-center ax-justify-center\">\n <span class=\"ax-text-center\"> No Record Found! </span>\n </div>\n }\n\n <ng-template #itemTemplate let-item>\n <div class=\"ax-flex ax-items-center ax-justify-between ax-w-full ax-gap-2 ax-overflow-hidden\">\n <div class=\"ax-flex ax-items-center ax-gap-2 ax-min-w-0\">\n <ax-icon class=\"fas ax-text-warning fa-folder\"></ax-icon>\n <span class=\"ax-truncate\">{{ item.title }}</span>\n </div>\n @if (item.id && item.id !== 'all') {\n <div class=\"ax-flex ax-items-center ax-gap-1\">\n <ax-button class=\"ax-xs\" color=\"default\" look=\"blank\" (onClick)=\"$event.nativeEvent.stopPropagation()\">\n <ax-icon class=\"fas fa-ellipsis-v\"></ax-icon>\n <ax-dropdown-panel>\n <ax-button-item-list>\n <ax-button-item (onClick)=\"handleCreateChildClick(item, $event)\" look=\"blank\" color=\"default\"\n text=\"Add New Child\">\n <ax-icon class=\"fas fa-plus\"></ax-icon>\n </ax-button-item>\n <ax-button-item (onClick)=\"handleEditNodeClick(item, $event)\" look=\"blank\" text=\"Edit\">\n <ax-icon class=\"fas fa-pen\"></ax-icon>\n </ax-button-item>\n <ax-button-item (onClick)=\"handleDeleteNodeClick(item, $event)\" color=\"danger\" look=\"blank\" text=\"Delete\">\n <ax-icon class=\"fas fa-trash\"></ax-icon>\n </ax-button-item>\n </ax-button-item-list>\n </ax-dropdown-panel>\n </ax-button>\n </div>\n } @else if (item.id === 'all') {\n <div class=\"ax-flex ax-items-center ax-gap-1\">\n <ax-button class=\"ax-xs\" (onClick)=\"handleCreateRootClick($event)\" look=\"blank\" color=\"default\">\n <ax-icon class=\"fas fa-plus\"></ax-icon>\n </ax-button>\n </div>\n }\n </div>\n </ng-template>\n</axp-layout-content>", styles: ["ax-tree-view-item .ax-tree-view-items{width:100%;min-width:0px}ax-tree-view-item .ax-tree-view-items>div{width:100%}ax-tree-view-item .ax-state-tree-view-active{background-color:rgb(var(--ax-sys-color-light-surface))!important;color:rgb(var(--ax-sys-color-on-light-surface))!important;border-color:rgb(var(--ax-sys-color-border-light-surface))!important}\n"] }]
259
+ }] });
260
+
261
+ class AXPEntityMasterToolbarViewComponent {
262
+ constructor() {
263
+ this.layoutService = inject(AXPLayoutThemeService);
264
+ this.parent = inject(AXPEntityMasterListViewComponent);
265
+ this.isInitializing = false;
266
+ this.pendingInitialFilters = true;
267
+ this.pendingInitialSorts = true;
268
+ this.initialFilters = signal([], ...(ngDevMode ? [{ debugName: "initialFilters" }] : []));
269
+ this.filtersDefinitions = signal([], ...(ngDevMode ? [{ debugName: "filtersDefinitions" }] : []));
270
+ this.viewQueries = computed(() => this.vm.views().map((v) => ({
271
+ name: v.name,
272
+ fixed: false,
273
+ title: v.title,
274
+ columns: v.columns,
275
+ conditions: v.conditions.map((c) => ({
276
+ field: c.name,
277
+ operator: c.operator,
278
+ value: c.value,
279
+ })),
280
+ sorts: v.sorts,
281
+ })), ...(ngDevMode ? [{ debugName: "viewQueries" }] : []));
282
+ this.selectedViewQuery = computed(() => ({
283
+ name: this.vm.view().name,
284
+ fixed: false,
285
+ title: this.vm.view().title,
286
+ columns: this.vm.view().columns,
287
+ conditions: this.vm.view().conditions.map((c) => ({
288
+ field: c.name,
289
+ operator: c.operator,
290
+ value: c.value,
291
+ })),
292
+ sorts: this.vm.view().sorts,
293
+ }), ...(ngDevMode ? [{ debugName: "selectedViewQuery" }] : []));
294
+ // Debounced apply to coalesce multiple UI changes (filters/sorts/columns)
295
+ this.applyTimer = null;
296
+ this.#effect = effect(() => {
297
+ // Keep definitions up to date; initial filters are set explicitly from settings or view
298
+ this.filtersDefinitions.set(this.vm.filtersDef);
299
+ }, ...(ngDevMode ? [{ debugName: "#effect" }] : []));
300
+ this.sortQueries = computed(() => this.vm
301
+ .sortedFields()
302
+ .filter((s) => !!s.dir)
303
+ .map((s) => ({ name: s.name, dir: s.dir })), ...(ngDevMode ? [{ debugName: "sortQueries" }] : []));
304
+ this.sortDefinitions = computed(() => this.vm.sortableFields().map((s) => ({
305
+ name: s.name,
306
+ title: s.title,
307
+ dir: s.dir,
308
+ })), ...(ngDevMode ? [{ debugName: "sortDefinitions" }] : []));
309
+ }
310
+ async ngOnInit() {
311
+ // Prefer saved settings (view/columns/sorts/filters) if available, then apply
312
+ await this.vm.setView();
313
+ this.filtersDefinitions.set(this.vm.filtersDef);
314
+ this.isInitializing = true;
315
+ // this.pendingInitialFilters = true;
316
+ // this.pendingInitialSorts = true;
317
+ this.setInitialFiltersFromSettingsOrView();
318
+ // Ensure initial load even when filters/sorts are absent
319
+ setTimeout(() => {
320
+ this.isInitializing = false;
321
+ this.scheduleApply();
322
+ }, 0);
323
+ }
324
+ scheduleApply() {
325
+ clearTimeout(this.applyTimer);
326
+ this.applyTimer = setTimeout(() => {
327
+ this.vm.applyFilterAndSort();
328
+ }, 50);
329
+ }
330
+ async onViewChanged(view) {
331
+ await this.vm.setView(view.name);
332
+ this.isInitializing = true;
333
+ this.pendingInitialFilters = true;
334
+ this.pendingInitialSorts = true;
335
+ this.setInitialFiltersFromSettingsOrView();
336
+ // Ensure initial load after view change
337
+ setTimeout(() => {
338
+ this.isInitializing = false;
339
+ this.scheduleApply();
340
+ }, 0);
341
+ }
342
+ #effect;
343
+ setInitialFiltersFromSettingsOrView() {
344
+ const saved = this.vm.filterQueries();
345
+ if (saved && saved.length) {
346
+ this.initialFilters.set(saved);
347
+ return;
348
+ }
349
+ this.initialFilters.set(this.vm.view().conditions.map((c) => ({
350
+ field: c.name,
351
+ operator: c.operator,
352
+ value: c.value,
353
+ })));
354
+ }
355
+ onFiltersChanged(filters) {
356
+ if (this.isInitializing || this.pendingInitialFilters) {
357
+ this.pendingInitialFilters = false;
358
+ return;
359
+ }
360
+ this.vm.filterQueries.set(filters);
361
+ // Persist filters per module/entity/view
362
+ this.vm.saveSettings('filters', filters);
363
+ this.scheduleApply();
364
+ }
365
+ onSortQueriesChange(e) {
366
+ if (this.isInitializing || this.pendingInitialSorts) {
367
+ this.pendingInitialSorts = false;
368
+ return;
369
+ }
370
+ this.vm.sortedFields.set(e.map((s) => ({
371
+ name: s.name,
372
+ title: s.name,
373
+ dir: s.dir,
374
+ })));
375
+ // Persist sorts per module/entity/view
376
+ this.vm.saveSettings('sorts', e);
377
+ this.scheduleApply();
378
+ }
379
+ onColumnsChange(columns) {
380
+ this.vm.columns.update(() => {
381
+ const existingColumns = this.vm.columns();
382
+ const columnMap = new Map(existingColumns.map((c) => [
383
+ c.name,
384
+ {
385
+ property: this.vm.entityDef.properties.find((p) => p.name === c.name),
386
+ column: this.vm.entityDef.columns?.find((col) => col.name === c.name),
387
+ },
388
+ ]));
389
+ return columns.map((newColumn) => {
390
+ const existing = columnMap.get(newColumn.name);
391
+ const col = new AXPEntityListViewColumnViewModel(existing.property, {
392
+ ...existing.column,
393
+ options: {
394
+ ...existing.column.options,
395
+ visible: newColumn.visible,
396
+ },
397
+ });
398
+ return col;
399
+ });
400
+ });
401
+ // Persist column order/visibility
402
+ this.vm.onColumnsChanged(this.vm.columns());
403
+ // Use debounced apply to avoid triple refresh when combined with sorts/filters
404
+ // this.scheduleApply();
405
+ }
406
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXPEntityMasterToolbarViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
407
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.6", type: AXPEntityMasterToolbarViewComponent, isStandalone: true, selector: "axp-entity-master-toolbar-view", inputs: { vm: ["viewModel", "vm"] }, host: { classAttribute: "ax-w-full" }, ngImport: i0, template: "<!-- <axp-entity-view-toolbar [viewModel]=\"vm\"></axp-entity-view-toolbar> -->\n<axp-query-views\n [views]=\"viewQueries()\"\n [selectedView]=\"selectedViewQuery()\"\n (selectedViewChange)=\"onViewChanged($event)\"\n></axp-query-views>\n<div class=\"ax-flex ax-items-center ax-gap-2 ax-border-b ax-border-light w-full\">\n <!-- <axp-entity-filter-toolbar [viewModel]=\"vm\"></axp-entity-filter-toolbar> -->\n <axp-query-filters\n [filtersDefinitions]=\"filtersDefinitions()\"\n [initialFilters]=\"initialFilters()\"\n (onFiltersChanged)=\"onFiltersChanged($event)\"\n ></axp-query-filters>\n\n <div class=\"ax-flex ax-items-center ax-gap-1 md:ax-gap-2\">\n <ax-button [iconOnly]=\"true\" #columnButton [color]=\"'default'\">\n <i class=\"fa-light fa-table-columns\"></i>\n </ax-button>\n <ax-popover\n [adaptivityEnabled]=\"true\"\n [offsetY]=\"30\"\n [target]=\"columnButton\"\n [openOn]=\"'toggle'\"\n [closeOn]=\"'clickOut'\"\n #popover\n >\n <div class=\"ax-lightest-surface ax-shadow-md ax-border md:ax-w-72 ax-w-full ax-rounded-md\">\n <ax-header class=\"ax-border-b ax-lighter-surface ax-rounded-t-md ax-p-4 ax-font-bold\">\n {{ 'entity.columns' | translate | async }}\n </ax-header>\n <div class=\"ax-py-2 ax-px-4\">\n <axp-query-columns [columns]=\"vm.columns()\" (columnsChange)=\"onColumnsChange($event)\"></axp-query-columns>\n <!-- <axp-list-view-option-columns [viewModel]=\"vm\"></axp-list-view-option-columns> -->\n </div>\n </div>\n </ax-popover>\n @if (vm.canSort()) {\n <ax-button [iconOnly]=\"true\" [text]=\"'Sorts'\" #sortButton [color]=\"'default'\">\n <i class=\"fa-light fa-sort-amount-up\"></i>\n </ax-button>\n <ax-popover\n [adaptivityEnabled]=\"true\"\n [offsetY]=\"10\"\n [target]=\"sortButton\"\n [openOn]=\"'toggle'\"\n [closeOn]=\"'clickOut'\"\n #popover\n >\n <div class=\"ax-lightest-surface ax-shadow-md ax-border md:ax-w-72 ax-w-full ax-rounded-md\">\n <ax-header class=\"ax-border-b ax-lighter-surface ax-rounded-t-md ax-p-4 ax-font-bold\">\n {{ 'entity.sorts' | translate | async }}\n </ax-header>\n <div class=\"ax-py-2 ax-px-4\">\n <!-- <axp-list-view-option-sorting [viewModel]=\"vm\"></axp-list-view-option-sorting> -->\n <axp-query-sorts\n [sortDefinitions]=\"sortDefinitions()\"\n (sortQueriesChange)=\"onSortQueriesChange($event)\"\n [initialSortQueries]=\"sortQueries()\"\n ></axp-query-sorts>\n </div>\n </div>\n </ax-popover>\n }\n @if (layoutService.isSmall()) {\n <ax-button (onClick)=\"parent.toggleCategoryDrawer()\" [iconOnly]=\"true\" [color]=\"'default'\">\n <i class=\"fa-light fa-bars\"></i>\n </ax-button>\n }\n </div>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i3$1.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i2.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "component", type: AXPQueryFiltersComponent, selector: "axp-query-filters", inputs: ["filtersDefinitions", "initialFilters"], outputs: ["onFiltersChanged"] }, { kind: "ngmodule", type: AXPopoverModule }, { kind: "component", type: i3$2.AXPopoverComponent, selector: "ax-popover", inputs: ["width", "disabled", "offsetX", "offsetY", "target", "placement", "content", "openOn", "closeOn", "hasBackdrop", "openAfter", "closeAfter", "backdropClass", "panelClass", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }, { kind: "component", type: AXPQuerySortsComponent, selector: "axp-query-sorts", inputs: ["sortDefinitions", "initialSortQueries"], outputs: ["sortDefinitionsChange", "sortQueriesChange"] }, { kind: "component", type: AXPQueryViewsComponent, selector: "axp-query-views", inputs: ["views", "selectedView"], outputs: ["viewsChange", "selectedViewChange"] }, { kind: "component", type: AXPQueryColumnsComponent, selector: "axp-query-columns", inputs: ["columns"], outputs: ["columnsChange"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i10.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
408
+ }
409
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXPEntityMasterToolbarViewComponent, decorators: [{
410
+ type: Component,
411
+ args: [{ selector: 'axp-entity-master-toolbar-view', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, standalone: true, imports: [
412
+ CommonModule,
413
+ AXButtonModule,
414
+ AXDecoratorModule,
415
+ AXTranslationModule,
416
+ AXPQueryFiltersComponent,
417
+ AXPopoverModule,
418
+ AXPQuerySortsComponent,
419
+ AXPQueryViewsComponent,
420
+ AXPQueryColumnsComponent,
421
+ ], host: {
422
+ class: 'ax-w-full',
423
+ }, template: "<!-- <axp-entity-view-toolbar [viewModel]=\"vm\"></axp-entity-view-toolbar> -->\n<axp-query-views\n [views]=\"viewQueries()\"\n [selectedView]=\"selectedViewQuery()\"\n (selectedViewChange)=\"onViewChanged($event)\"\n></axp-query-views>\n<div class=\"ax-flex ax-items-center ax-gap-2 ax-border-b ax-border-light w-full\">\n <!-- <axp-entity-filter-toolbar [viewModel]=\"vm\"></axp-entity-filter-toolbar> -->\n <axp-query-filters\n [filtersDefinitions]=\"filtersDefinitions()\"\n [initialFilters]=\"initialFilters()\"\n (onFiltersChanged)=\"onFiltersChanged($event)\"\n ></axp-query-filters>\n\n <div class=\"ax-flex ax-items-center ax-gap-1 md:ax-gap-2\">\n <ax-button [iconOnly]=\"true\" #columnButton [color]=\"'default'\">\n <i class=\"fa-light fa-table-columns\"></i>\n </ax-button>\n <ax-popover\n [adaptivityEnabled]=\"true\"\n [offsetY]=\"30\"\n [target]=\"columnButton\"\n [openOn]=\"'toggle'\"\n [closeOn]=\"'clickOut'\"\n #popover\n >\n <div class=\"ax-lightest-surface ax-shadow-md ax-border md:ax-w-72 ax-w-full ax-rounded-md\">\n <ax-header class=\"ax-border-b ax-lighter-surface ax-rounded-t-md ax-p-4 ax-font-bold\">\n {{ 'entity.columns' | translate | async }}\n </ax-header>\n <div class=\"ax-py-2 ax-px-4\">\n <axp-query-columns [columns]=\"vm.columns()\" (columnsChange)=\"onColumnsChange($event)\"></axp-query-columns>\n <!-- <axp-list-view-option-columns [viewModel]=\"vm\"></axp-list-view-option-columns> -->\n </div>\n </div>\n </ax-popover>\n @if (vm.canSort()) {\n <ax-button [iconOnly]=\"true\" [text]=\"'Sorts'\" #sortButton [color]=\"'default'\">\n <i class=\"fa-light fa-sort-amount-up\"></i>\n </ax-button>\n <ax-popover\n [adaptivityEnabled]=\"true\"\n [offsetY]=\"10\"\n [target]=\"sortButton\"\n [openOn]=\"'toggle'\"\n [closeOn]=\"'clickOut'\"\n #popover\n >\n <div class=\"ax-lightest-surface ax-shadow-md ax-border md:ax-w-72 ax-w-full ax-rounded-md\">\n <ax-header class=\"ax-border-b ax-lighter-surface ax-rounded-t-md ax-p-4 ax-font-bold\">\n {{ 'entity.sorts' | translate | async }}\n </ax-header>\n <div class=\"ax-py-2 ax-px-4\">\n <!-- <axp-list-view-option-sorting [viewModel]=\"vm\"></axp-list-view-option-sorting> -->\n <axp-query-sorts\n [sortDefinitions]=\"sortDefinitions()\"\n (sortQueriesChange)=\"onSortQueriesChange($event)\"\n [initialSortQueries]=\"sortQueries()\"\n ></axp-query-sorts>\n </div>\n </div>\n </ax-popover>\n }\n @if (layoutService.isSmall()) {\n <ax-button (onClick)=\"parent.toggleCategoryDrawer()\" [iconOnly]=\"true\" [color]=\"'default'\">\n <i class=\"fa-light fa-bars\"></i>\n </ax-button>\n }\n </div>\n</div>\n" }]
424
+ }], propDecorators: { vm: [{
425
+ type: Input,
426
+ args: ['viewModel']
427
+ }] } });
428
+
429
+ class AXPEntityMasterListViewComponent extends AXPPageLayoutBaseComponent {
430
+ constructor(platform) {
431
+ super();
432
+ this.platform = platform;
433
+ this.activeRoute = inject(ActivatedRoute);
434
+ this.vm = this.activeRoute.snapshot.data['vm'];
435
+ //
436
+ this.store = inject(AXPLayoutThemeService);
437
+ //
438
+ this.searchBarShown = signal(true, ...(ngDevMode ? [{ debugName: "searchBarShown" }] : []));
439
+ this.activeEndSideView = signal('column', ...(ngDevMode ? [{ debugName: "activeEndSideView" }] : []));
440
+ this.categorySearchValue = signal('', ...(ngDevMode ? [{ debugName: "categorySearchValue" }] : []));
441
+ // @ViewChild('grid', { static: true}) grid: AXDataTableComponent;
442
+ this.grid = viewChild('grid', ...(ngDevMode ? [{ debugName: "grid" }] : []));
443
+ this.commandRowItems = computed(() => {
444
+ return this.vm.primaryRowActions().map((c) => {
445
+ return {
446
+ icon: c.icon,
447
+ name: c.name,
448
+ text: translateSync(c.title),
449
+ color: c.color,
450
+ disabled: c.disabled,
451
+ default: c.default,
452
+ };
453
+ });
454
+ }, ...(ngDevMode ? [{ debugName: "commandRowItems" }] : []));
455
+ this.getDropdownRowItems = (rowData) => {
456
+ return Promise.resolve(this.dropdownRowItems(rowData));
457
+ };
458
+ this.getCommandRowItems = () => {
459
+ return this.commandRowItems();
460
+ };
461
+ effect(() => {
462
+ if (this.grid()) {
463
+ this.grid().selectedRows = this.vm.selectedItems();
464
+ }
465
+ });
466
+ //
467
+ this.vm.events$.subscribe(async (e) => {
468
+ const refreshTargetId = e.meta?.refreshTargetId;
469
+ if (e.action == 'refresh') {
470
+ if (refreshTargetId) {
471
+ this.grid()?.refreshItemChildren(refreshTargetId);
472
+ }
473
+ else {
474
+ this.grid()?.refresh({
475
+ reset: false,
476
+ });
477
+ }
478
+ }
479
+ });
480
+ }
481
+ ngAfterViewInit() {
482
+ this.vm.setView();
483
+ }
484
+ // protected closeFiltersDrawer(e: AXDrawerComponent, collapsed: boolean) {
485
+ // if (collapsed) {
486
+ // e.close();
487
+ // this.vm.discardFilters();
488
+ // }
489
+ // }
490
+ // handleChangeSearchValue(e: AXValueChangedEvent) {
491
+ // if (e.isUserInteraction) {
492
+ // this.vm.applyInlineFilter(e.value);
493
+ // }
494
+ // }
495
+ onColumnSizeChanged(e) {
496
+ if (e.isUserInteraction && e.type === 'end') {
497
+ this.vm.saveSettings('columnSizes', e.data);
498
+ }
499
+ }
500
+ onPageChanged(e) {
501
+ if (e.isUserInteraction) {
502
+ const pageSizeChanged = e.take != this.vm.dataSource.pageSize;
503
+ if (pageSizeChanged) {
504
+ this.vm.saveSettings('pageSize', e.take);
505
+ }
506
+ }
507
+ }
508
+ async dropdownRowItems(rowData) {
509
+ return (await this.vm.secondaryRowActions(rowData)).map((c) => ({
510
+ icon: c.icon,
511
+ name: c.name,
512
+ text: c.title,
513
+ color: c.color,
514
+ disabled: c.disabled,
515
+ default: c.default,
516
+ }));
517
+ }
518
+ async handleRowDbClick(e) {
519
+ const allItems = [...this.commandRowItems(), ...(await this.dropdownRowItems(e.data))];
520
+ // const defaultAction = allItems.find((c) => (c as any).default) || allItems[0];
521
+ const defaultAction = allItems.find((c) => {
522
+ const commandName = c.name.split('&')[0];
523
+ return c.default || commandName === 'open-entity';
524
+ });
525
+ if (!defaultAction) {
526
+ return;
527
+ }
528
+ const d = {
529
+ component: e.component,
530
+ name: defaultAction.name,
531
+ data: e.data,
532
+ };
533
+ this.handleRowCommandClick(d);
534
+ }
535
+ async handleRowCommandClick(e) {
536
+ this.vm.executeCommand(e.name, e.data);
537
+ }
538
+ async handleSelectedRowsChange(rows) {
539
+ this.vm.selectedItems.set(rows);
540
+ }
541
+ makeResponsive(value) {
542
+ if (this.platform.is('Mobile') || this.platform.is('SM')) {
543
+ return '';
544
+ }
545
+ else {
546
+ return value;
547
+ }
548
+ }
549
+ toggleSideBar(sideBar) {
550
+ this.toggleEndSide();
551
+ if (sideBar) {
552
+ this.activeEndSideView.set(sideBar);
553
+ }
554
+ }
555
+ toggleSearchBar() {
556
+ this.searchBarShown.update((v) => !v);
557
+ }
558
+ handleResetClick(sideBar) {
559
+ switch (sideBar) {
560
+ case 'filter': {
561
+ this.vm.resetFilters();
562
+ break;
563
+ }
564
+ case 'sort': {
565
+ this.vm.resetSorts();
566
+ break;
567
+ }
568
+ case 'column': {
569
+ this.vm.resetColumns();
570
+ break;
571
+ }
572
+ }
573
+ }
574
+ // protected handleDiscardClick(sideBar: 'filter' | 'sort' | 'column') {
575
+ // switch (sideBar) {
576
+ // case 'filter': {
577
+ // this.vm.discardFilters();
578
+ // break;
579
+ // }
580
+ // case 'sort': {
581
+ // this.vm.resetSorts();
582
+ // break;
583
+ // }
584
+ // case 'column': {
585
+ // this.vm.resetColumns();
586
+ // break;
587
+ // }
588
+ // }
589
+ // }
590
+ handleApplyClick(sideBar) {
591
+ this.vm.applyFilterAndSort();
592
+ this.toggleEndSide();
593
+ }
594
+ ngOnDestroy() {
595
+ this.vm.destroy();
596
+ }
597
+ toggleCategoryDrawer() {
598
+ this.toggleStartSide();
599
+ }
600
+ getPageTitle() {
601
+ return this.vm.title();
602
+ }
603
+ async getPageDescription() {
604
+ const description = this.vm.description();
605
+ if (description) {
606
+ return this.translateService.translateAsync(description);
607
+ }
608
+ return '';
609
+ }
610
+ getPageBreadcrumbs() {
611
+ return this.vm.beardcrumbs();
612
+ }
613
+ async getPrimaryMenuItems() {
614
+ return (await this.vm.getPrimaryActions()).map((tr) => ({
615
+ name: tr.name,
616
+ title: tr.title,
617
+ icon: tr.icon,
618
+ color: tr.color,
619
+ disabled: tr.disabled,
620
+ command: {
621
+ name: tr.name,
622
+ options: tr.options,
623
+ metadata: tr.metadata,
624
+ },
625
+ }));
626
+ }
627
+ async getSecondaryMenuItems() {
628
+ return (await this.vm.getSecondaryActions()).map((tr) => ({
629
+ name: tr.name,
630
+ title: tr.title,
631
+ icon: tr.icon,
632
+ color: tr.color,
633
+ disabled: tr.disabled,
634
+ separated: tr.separated,
635
+ command: {
636
+ name: tr.name,
637
+ options: tr.options,
638
+ metadata: tr.metadata,
639
+ },
640
+ }));
641
+ }
642
+ async execute(command) {
643
+ if (command) {
644
+ this.vm.execute(command);
645
+ }
646
+ }
647
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXPEntityMasterListViewComponent, deps: [{ token: i1$1.AXPlatform }], target: i0.ɵɵFactoryTarget.Component }); }
648
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.1.6", type: AXPEntityMasterListViewComponent, isStandalone: true, selector: "axp-entity-master-list", providers: [
649
+ {
650
+ provide: AXPPageLayoutBase,
651
+ useExisting: AXPEntityMasterListViewComponent,
652
+ },
653
+ ], viewQueries: [{ propertyName: "grid", first: true, predicate: ["grid"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<axp-page-layout *translate=\"let t\">\n @if (vm.entityDef.category) {\n <axp-layout-start-side>\n <axp-entity-category class=\"ax-w-80\" [vm]=\"vm\" [searchValue]=\"categorySearchValue()\"></axp-entity-category>\n </axp-layout-start-side>\n }\n <axp-page-toolbar>\n <axp-entity-master-toolbar-view [viewModel]=\"vm\"></axp-entity-master-toolbar-view>\n </axp-page-toolbar>\n <axp-page-content class=\"ax-overflow-auto\">\n <ax-data-table #grid [showFooter]=\"false\" class=\"ax-flex-1\" [paging]=\"true\" [fetchDataMode]=\"'manual'\"\n [parentField]=\"vm.parentKey()\" [loading]=\"{ enabled: true, animation: true }\" [dataSource]=\"vm.dataSource\"\n (selectedRowsChange)=\"handleSelectedRowsChange($event)\" (onRowDbClick)=\"handleRowDbClick($event)\"\n (onColumnSizeChanged)=\"onColumnSizeChanged($event)\" (onPageChanged)=\"onPageChanged($event)\">\n @if (vm.view().indexCol === true) {\n <ax-index-column fixed=\"start\" [width]=\"'80px'\" [padZero]=\"true\"></ax-index-column>\n }\n @if (vm.selectedScopeActionsCount()) {\n <ax-select-column fixed=\"start\" [width]=\"'60px'\"></ax-select-column>\n }\n @for (col of vm.columns(); track col.name) {\n @if (col.visible) {\n <axp-widget-column-renderer [expandHandler]=\"$index === 0 && vm.parentKey() ? true : false\"\n [caption]=\"(col.title | translate | async)!\" [node]=\"col.node()\"\n [customWidth]=\"col.width\"></axp-widget-column-renderer>\n }\n }\n @if (getCommandRowItems().length) {\n <ax-command-column fixed=\"end\" [width]=\"getCommandRowItems().length * 60 + 'px'\" [items]=\"getCommandRowItems()\"\n (onItemClick)=\"handleRowCommandClick($event)\"></ax-command-column>\n }\n <ax-dropdown-command-column fixed=\"end\" [width]=\"'60px'\" [items]=\"getDropdownRowItems\"\n (onItemClick)=\"handleRowCommandClick($event)\"></ax-dropdown-command-column>\n </ax-data-table>\n </axp-page-content>\n</axp-page-layout>", styles: ["axp-entity-master-list axp-layout-start-side{min-width:20rem!important;border-inline-end-width:1px;background-color:rgb(var(--ax-sys-color-lightest-surface));color:rgb(var(--ax-sys-color-on-lightest-surface));border-color:rgb(var(--ax-sys-color-border-lightest-surface))}.cdk-drag-preview{border-radius:.375rem;border-width:1px;--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);background:rgba(var(--ax-color-on-surface));padding:.5rem;height:max-content!important}.collapsed-search-box{margin-top:0;height:0px;opacity:0}.view-drawer{width:85vw}@media (min-width: 768px){.view-drawer{width:45vw}}@media (min-width: 1024px){.view-drawer{width:35vw}}@media (min-width: 1536px){.view-drawer{width:20vw}}.view-drawer{--tw-bg-opacity: 1;background-color:rgba(var(--ax-sys-color-lightest-surface),var(--tw-bg-opacity, 1));border-inline-start-width:1px;border-inline-start-color:rgba(var(--ax-sys-color-border-lightest-surface),var(--tw-border-opacity, 1));border-top-width:1px;--tw-border-opacity: 1;border-top-color:rgba(var(--ax-sys-color-primary-600),var(--tw-border-opacity, 1))}.view-drawer ax-header{display:flex;align-items:center;border-bottom-width:1px;--tw-border-opacity: 1;border-color:rgba(var(--ax-sys-color-border-lightest-surface),var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgba(var(--ax-sys-color-lighter-surface),var(--tw-bg-opacity, 1));padding:.5rem 1rem}.view-drawer ax-header h2{font-size:1.25rem;line-height:1.75rem;font-weight:700;--tw-text-opacity: 1;color:rgba(var(--ax-sys-color-on-lighter-surface),var(--tw-text-opacity, 1))}.view-drawer ax-footer{position:absolute!important;bottom:0!important;width:100%!important;justify-content:flex-start!important;border-top-width:1px!important;--tw-border-opacity: 1 !important;border-color:rgba(var(--ax-sys-color-border-lightest-surface),var(--tw-border-opacity, 1))!important;padding:.5rem 1rem!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: RouterModule }, { kind: "ngmodule", type: AXButtonModule }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "ngmodule", type: AXBadgeModule }, { kind: "ngmodule", type: AXDropdownModule }, { kind: "ngmodule", type: AXPopoverModule }, { kind: "ngmodule", type: AXFormModule }, { kind: "ngmodule", type: AXActionSheetModule }, { kind: "ngmodule", type: AXDrawerModule }, { kind: "ngmodule", type: AXDialogModule }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "ngmodule", type: AXTabsModule }, { kind: "ngmodule", type: AXTooltipModule }, { kind: "ngmodule", type: AXBreadcrumbsModule }, { kind: "ngmodule", type: AXDropdownButtonModule }, { kind: "ngmodule", type: AXSearchBoxModule }, { kind: "ngmodule", type: AXDataTableModule }, { kind: "component", type: i7.AXDataTableComponent, selector: "ax-data-table", inputs: ["dataSource", "selectedRows", "parentField", "rowTemplate", "emptyTemplate", "noDataTemplate", "alternative", "showHeader", "fixedHeader", "showFooter", "fixedFooter", "itemHeight", "allowReordering", "paging", "fetchDataMode", "loading", "focusedRow"], outputs: ["selectedRowsChange", "focusedRowChange", "onRowClick", "onRowDbClick", "onColumnsOrderChanged", "onColumnSizeChanged", "onPageChanged"] }, { kind: "component", type: i7.AXRowIndexColumnComponent, selector: "ax-index-column", inputs: ["width", "caption", "fixed", "footerTemplate", "padZero"] }, { kind: "component", type: i7.AXRowSelectColumnComponent, selector: "ax-select-column", inputs: ["width", "caption", "fixed"] }, { kind: "component", type: i7.AXRowCommandColumnComponent, selector: "ax-command-column", inputs: ["width", "caption", "fixed", "footerTemplate", "items"], outputs: ["onItemClick"] }, { kind: "component", type: i7.AXRowDropdownCommandColumnComponent, selector: "ax-dropdown-command-column", inputs: ["width", "caption", "fixed", "footerTemplate", "items"], outputs: ["onItemClick"] }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "directive", type: i10.AXTranslatorDirective, selector: "[translate]" }, { kind: "ngmodule", type: DragDropModule }, { kind: "ngmodule", type:
654
+ //
655
+ AXPLayoutBuilderModule }, { kind: "component", type: i7$1.AXPWidgetColumnRendererComponent, selector: "axp-widget-column-renderer", inputs: ["caption", "customExpandIcon", "customCollapseIcon", "customWidth", "node", "footerTemplate", "expandHandler", "cellTemplate", "headerTemplate"] }, { kind: "ngmodule", type: AXPWidgetsModule }, { kind: "ngmodule", type: AXPAuthModule }, { kind: "component", type:
656
+ //
657
+ AXPEntityMasterToolbarViewComponent, selector: "axp-entity-master-toolbar-view", inputs: ["viewModel"] }, { kind: "component", type:
658
+ //
659
+ AXPPageLayoutComponent, selector: "axp-page-layout" }, { kind: "component", type: AXPThemeLayoutBlockComponent, selector: " axp-page-content, axp-page-footer-container, axp-page-footer, axp-page-header, axp-page-header-container, axp-page-toolbar, axp-layout-content, axp-layout-page-content, axp-layout-sections, axp-layout-body, axp-layout-page-body, axp-layout-prefix, axp-layout-suffix, axp-layout-title-bar, axp-layout-title, axp-layout-title-actions, axp-layout-nav-button, axp-layout-description, axp-layout-breadcrumbs, axp-layout-list-action, " }, { kind: "component", type: AXPThemeLayoutStartSideComponent, selector: "axp-layout-page-start-side, axp-layout-start-side" }, { kind: "component", type: AXPEntityCategoryComponent, selector: "axp-entity-category", inputs: ["vm", "searchValue"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i10.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
660
+ }
661
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.1.6", ngImport: i0, type: AXPEntityMasterListViewComponent, decorators: [{
662
+ type: Component,
663
+ args: [{ selector: 'axp-entity-master-list', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, imports: [
664
+ CommonModule,
665
+ FormsModule,
666
+ RouterModule,
667
+ AXButtonModule,
668
+ AXDecoratorModule,
669
+ AXBadgeModule,
670
+ AXDropdownModule,
671
+ AXPopoverModule,
672
+ AXFormModule,
673
+ AXActionSheetModule,
674
+ AXDrawerModule,
675
+ AXDialogModule,
676
+ AXLoadingModule,
677
+ AXTabsModule,
678
+ AXTooltipModule,
679
+ AXBreadcrumbsModule,
680
+ AXDropdownButtonModule,
681
+ AXSearchBoxModule,
682
+ AXDataTableModule,
683
+ AXTranslationModule,
684
+ DragDropModule,
685
+ //
686
+ AXPLayoutBuilderModule,
687
+ AXPWidgetsModule,
688
+ AXPAuthModule,
689
+ //
690
+ AXPEntityMasterToolbarViewComponent,
691
+ //
692
+ AXPPageLayoutComponent,
693
+ AXPThemeLayoutBlockComponent,
694
+ AXDropdownButtonModule,
695
+ AXPThemeLayoutStartSideComponent,
696
+ AXPEntityCategoryComponent,
697
+ ], providers: [
698
+ {
699
+ provide: AXPPageLayoutBase,
700
+ useExisting: AXPEntityMasterListViewComponent,
701
+ },
702
+ ], template: "<axp-page-layout *translate=\"let t\">\n @if (vm.entityDef.category) {\n <axp-layout-start-side>\n <axp-entity-category class=\"ax-w-80\" [vm]=\"vm\" [searchValue]=\"categorySearchValue()\"></axp-entity-category>\n </axp-layout-start-side>\n }\n <axp-page-toolbar>\n <axp-entity-master-toolbar-view [viewModel]=\"vm\"></axp-entity-master-toolbar-view>\n </axp-page-toolbar>\n <axp-page-content class=\"ax-overflow-auto\">\n <ax-data-table #grid [showFooter]=\"false\" class=\"ax-flex-1\" [paging]=\"true\" [fetchDataMode]=\"'manual'\"\n [parentField]=\"vm.parentKey()\" [loading]=\"{ enabled: true, animation: true }\" [dataSource]=\"vm.dataSource\"\n (selectedRowsChange)=\"handleSelectedRowsChange($event)\" (onRowDbClick)=\"handleRowDbClick($event)\"\n (onColumnSizeChanged)=\"onColumnSizeChanged($event)\" (onPageChanged)=\"onPageChanged($event)\">\n @if (vm.view().indexCol === true) {\n <ax-index-column fixed=\"start\" [width]=\"'80px'\" [padZero]=\"true\"></ax-index-column>\n }\n @if (vm.selectedScopeActionsCount()) {\n <ax-select-column fixed=\"start\" [width]=\"'60px'\"></ax-select-column>\n }\n @for (col of vm.columns(); track col.name) {\n @if (col.visible) {\n <axp-widget-column-renderer [expandHandler]=\"$index === 0 && vm.parentKey() ? true : false\"\n [caption]=\"(col.title | translate | async)!\" [node]=\"col.node()\"\n [customWidth]=\"col.width\"></axp-widget-column-renderer>\n }\n }\n @if (getCommandRowItems().length) {\n <ax-command-column fixed=\"end\" [width]=\"getCommandRowItems().length * 60 + 'px'\" [items]=\"getCommandRowItems()\"\n (onItemClick)=\"handleRowCommandClick($event)\"></ax-command-column>\n }\n <ax-dropdown-command-column fixed=\"end\" [width]=\"'60px'\" [items]=\"getDropdownRowItems\"\n (onItemClick)=\"handleRowCommandClick($event)\"></ax-dropdown-command-column>\n </ax-data-table>\n </axp-page-content>\n</axp-page-layout>", styles: ["axp-entity-master-list axp-layout-start-side{min-width:20rem!important;border-inline-end-width:1px;background-color:rgb(var(--ax-sys-color-lightest-surface));color:rgb(var(--ax-sys-color-on-lightest-surface));border-color:rgb(var(--ax-sys-color-border-lightest-surface))}.cdk-drag-preview{border-radius:.375rem;border-width:1px;--tw-shadow: 0 10px 15px -3px rgb(0 0 0 / .1), 0 4px 6px -4px rgb(0 0 0 / .1);--tw-shadow-colored: 0 10px 15px -3px var(--tw-shadow-color), 0 4px 6px -4px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow);background:rgba(var(--ax-color-on-surface));padding:.5rem;height:max-content!important}.collapsed-search-box{margin-top:0;height:0px;opacity:0}.view-drawer{width:85vw}@media (min-width: 768px){.view-drawer{width:45vw}}@media (min-width: 1024px){.view-drawer{width:35vw}}@media (min-width: 1536px){.view-drawer{width:20vw}}.view-drawer{--tw-bg-opacity: 1;background-color:rgba(var(--ax-sys-color-lightest-surface),var(--tw-bg-opacity, 1));border-inline-start-width:1px;border-inline-start-color:rgba(var(--ax-sys-color-border-lightest-surface),var(--tw-border-opacity, 1));border-top-width:1px;--tw-border-opacity: 1;border-top-color:rgba(var(--ax-sys-color-primary-600),var(--tw-border-opacity, 1))}.view-drawer ax-header{display:flex;align-items:center;border-bottom-width:1px;--tw-border-opacity: 1;border-color:rgba(var(--ax-sys-color-border-lightest-surface),var(--tw-border-opacity, 1));--tw-bg-opacity: 1;background-color:rgba(var(--ax-sys-color-lighter-surface),var(--tw-bg-opacity, 1));padding:.5rem 1rem}.view-drawer ax-header h2{font-size:1.25rem;line-height:1.75rem;font-weight:700;--tw-text-opacity: 1;color:rgba(var(--ax-sys-color-on-lighter-surface),var(--tw-text-opacity, 1))}.view-drawer ax-footer{position:absolute!important;bottom:0!important;width:100%!important;justify-content:flex-start!important;border-top-width:1px!important;--tw-border-opacity: 1 !important;border-color:rgba(var(--ax-sys-color-border-lightest-surface),var(--tw-border-opacity, 1))!important;padding:.5rem 1rem!important}\n"] }]
703
+ }], ctorParameters: () => [{ type: i1$1.AXPlatform }] });
704
+
705
+ export { AXPEntityMasterListViewComponent };
706
+ //# sourceMappingURL=acorex-platform-themes-default-entity-master-list-view.component-DXGLsVis.mjs.map