@acorex/platform 21.0.0-next.64 → 21.0.0-next.67
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/acorex-platform-common.mjs +94 -18
- package/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-core.mjs +42 -1
- package/fesm2022/acorex-platform-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-builder.mjs +29 -7
- package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-components.mjs +282 -108
- package/fesm2022/acorex-platform-layout-components.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-designer.mjs +1 -1
- package/fesm2022/acorex-platform-layout-designer.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity-attachments-page.component-BaTS183I.mjs +383 -0
- package/fesm2022/acorex-platform-layout-entity-attachments-page.component-BaTS183I.mjs.map +1 -0
- package/fesm2022/{acorex-platform-layout-widgets-file-list-popup.component-CDYAGBku.mjs → acorex-platform-layout-entity-file-list-popup.component-_yrP5SQe.mjs} +15 -18
- package/fesm2022/acorex-platform-layout-entity-file-list-popup.component-_yrP5SQe.mjs.map +1 -0
- package/fesm2022/acorex-platform-layout-entity.mjs +3339 -301
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-views.mjs +0 -1
- package/fesm2022/acorex-platform-layout-views.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-widget-core.mjs +1377 -4
- package/fesm2022/acorex-platform-layout-widget-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-widgets.mjs +8938 -11693
- package/fesm2022/acorex-platform-layout-widgets.mjs.map +1 -1
- package/fesm2022/{acorex-platform-themes-default-entity-master-create-view.component-Cx1lLUaR.mjs → acorex-platform-themes-default-entity-master-create-view.component-CWLfNqV0.mjs} +3 -3
- package/fesm2022/{acorex-platform-themes-default-entity-master-create-view.component-Cx1lLUaR.mjs.map → acorex-platform-themes-default-entity-master-create-view.component-CWLfNqV0.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-themes-default-entity-master-modify-view.component-AOrcgjDF.mjs → acorex-platform-themes-default-entity-master-modify-view.component-C7cT82K2.mjs} +3 -3
- package/fesm2022/{acorex-platform-themes-default-entity-master-modify-view.component-AOrcgjDF.mjs.map → acorex-platform-themes-default-entity-master-modify-view.component-C7cT82K2.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-themes-default-entity-master-single-view.component-BfCeUU5F.mjs → acorex-platform-themes-default-entity-master-single-view.component-Br9p5aXT.mjs} +4 -4
- package/fesm2022/{acorex-platform-themes-default-entity-master-single-view.component-BfCeUU5F.mjs.map → acorex-platform-themes-default-entity-master-single-view.component-Br9p5aXT.mjs.map} +1 -1
- package/fesm2022/acorex-platform-themes-default.mjs +685 -287
- package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
- package/fesm2022/{acorex-platform-themes-shared-settings.provider-BgXYCFia.mjs → acorex-platform-themes-shared-settings.provider-BjuzSe0T.mjs} +29 -2
- package/fesm2022/acorex-platform-themes-shared-settings.provider-BjuzSe0T.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-shared.mjs +94 -24
- package/fesm2022/acorex-platform-themes-shared.mjs.map +1 -1
- package/fesm2022/acorex-platform-workflow.mjs +176 -26
- package/fesm2022/acorex-platform-workflow.mjs.map +1 -1
- package/package.json +1 -1
- package/types/acorex-platform-common.d.ts +74 -10
- package/types/acorex-platform-core.d.ts +63 -2
- package/types/acorex-platform-layout-builder.d.ts +7 -1
- package/types/acorex-platform-layout-components.d.ts +162 -36
- package/types/acorex-platform-layout-entity.d.ts +704 -14
- package/types/acorex-platform-layout-views.d.ts +28 -0
- package/types/acorex-platform-layout-widget-core.d.ts +156 -3
- package/types/acorex-platform-layout-widgets.d.ts +29 -393
- package/types/acorex-platform-themes-default.d.ts +137 -30
- package/types/acorex-platform-themes-shared.d.ts +23 -1
- package/types/acorex-platform-workflow.d.ts +91 -4
- package/fesm2022/acorex-platform-layout-widgets-file-list-popup.component-CDYAGBku.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-shared-settings.provider-BgXYCFia.mjs.map +0 -1
|
@@ -0,0 +1,383 @@
|
|
|
1
|
+
import { AXPEntityDefinitionRegistryService, persistedAttachments } from './acorex-platform-layout-entity.mjs';
|
|
2
|
+
import { AXPPageLayoutBaseComponent, AXPPageLayoutBase } from '@acorex/platform/layout/views';
|
|
3
|
+
import * as i3 from '@acorex/platform/layout/widget-core';
|
|
4
|
+
import { AXPWidgetCoreModule } from '@acorex/platform/layout/widget-core';
|
|
5
|
+
import * as i0 from '@angular/core';
|
|
6
|
+
import { input, inject, DestroyRef, viewChild, signal, computed, effect, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
7
|
+
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
8
|
+
import { ActivatedRoute } from '@angular/router';
|
|
9
|
+
import { merge, get } from 'lodash-es';
|
|
10
|
+
import { Subject } from 'rxjs';
|
|
11
|
+
|
|
12
|
+
const ATTACHMENTS_PAGE_SAVE_COMMAND = 'EntityAttachmentsPage:Save';
|
|
13
|
+
const ATTACHMENTS_PAGE_DISCARD_COMMAND = 'EntityAttachmentsPage:Discard';
|
|
14
|
+
const ATTACHMENTS_PAGE_UPLOAD_COMMAND = 'EntityAttachmentsPage:Upload';
|
|
15
|
+
//#region ---- Attachments Page Component ----
|
|
16
|
+
/**
|
|
17
|
+
* Page component that renders the attachments property using the file-uploader widget.
|
|
18
|
+
* Used when attachments plugin has display: 'page'.
|
|
19
|
+
* Exposes Save/Discard footer actions (same pattern as questionnaire-questions-page).
|
|
20
|
+
*/
|
|
21
|
+
class AXMAttachmentsPageComponent extends AXPPageLayoutBaseComponent {
|
|
22
|
+
constructor() {
|
|
23
|
+
super();
|
|
24
|
+
/** Default `{}`: avoid NG0950 before page-component-renderer calls setInput. */
|
|
25
|
+
this.rootContext = input({}, ...(ngDevMode ? [{ debugName: "rootContext" }] : /* istanbul ignore next */ []));
|
|
26
|
+
this.pageConfig = input(...(ngDevMode ? [undefined, { debugName: "pageConfig" }] : /* istanbul ignore next */ []));
|
|
27
|
+
this.route = inject(ActivatedRoute);
|
|
28
|
+
this.entityRegistry = inject(AXPEntityDefinitionRegistryService);
|
|
29
|
+
this.hostPageLayout = inject(AXPPageLayoutBase, { optional: true, skipSelf: true });
|
|
30
|
+
this.destroyRef = inject(DestroyRef);
|
|
31
|
+
this.containerRef = viewChild('containerRef', ...(ngDevMode ? [{ debugName: "containerRef" }] : /* istanbul ignore next */ []));
|
|
32
|
+
this.entityDef = signal(null, ...(ngDevMode ? [{ debugName: "entityDef" }] : /* istanbul ignore next */ []));
|
|
33
|
+
this.localContext = signal(null, ...(ngDevMode ? [{ debugName: "localContext" }] : /* istanbul ignore next */ []));
|
|
34
|
+
this.isDirty = signal(false, ...(ngDevMode ? [{ debugName: "isDirty" }] : /* istanbul ignore next */ []));
|
|
35
|
+
this.isSaving = signal(false, ...(ngDevMode ? [{ debugName: "isSaving" }] : /* istanbul ignore next */ []));
|
|
36
|
+
this.previousRecordId = signal(undefined, ...(ngDevMode ? [{ debugName: "previousRecordId" }] : /* istanbul ignore next */ []));
|
|
37
|
+
/** Recreates the inner widget container on discard so the file list resets. */
|
|
38
|
+
this.widgetRenderKey = signal(0, ...(ngDevMode ? [{ debugName: "widgetRenderKey" }] : /* istanbul ignore next */ []));
|
|
39
|
+
this.widgetWireGeneration = 0;
|
|
40
|
+
this.context = computed(() => {
|
|
41
|
+
const local = this.localContext();
|
|
42
|
+
if (local != null) {
|
|
43
|
+
return local;
|
|
44
|
+
}
|
|
45
|
+
return this.rootContext() ?? {};
|
|
46
|
+
}, ...(ngDevMode ? [{ debugName: "context" }] : /* istanbul ignore next */ []));
|
|
47
|
+
this.fieldName = computed(() => {
|
|
48
|
+
const config = this.pageConfig();
|
|
49
|
+
return config && typeof config.field === 'string'
|
|
50
|
+
? config.field
|
|
51
|
+
: 'attachments';
|
|
52
|
+
}, ...(ngDevMode ? [{ debugName: "fieldName" }] : /* istanbul ignore next */ []));
|
|
53
|
+
this.recordId = computed(() => {
|
|
54
|
+
const id = this.rootContext()?.['id'];
|
|
55
|
+
return typeof id === 'string' && id.length > 0 ? id : undefined;
|
|
56
|
+
}, ...(ngDevMode ? [{ debugName: "recordId" }] : /* istanbul ignore next */ []));
|
|
57
|
+
this.node = computed(() => {
|
|
58
|
+
const field = this.fieldName();
|
|
59
|
+
const entity = this.entityDef();
|
|
60
|
+
if (!entity?.properties) {
|
|
61
|
+
return null;
|
|
62
|
+
}
|
|
63
|
+
const prop = entity.properties.find((p) => p.name === field);
|
|
64
|
+
if (!prop?.schema?.interface) {
|
|
65
|
+
return null;
|
|
66
|
+
}
|
|
67
|
+
const widget = prop.schema.interface;
|
|
68
|
+
return {
|
|
69
|
+
type: widget.type,
|
|
70
|
+
path: field,
|
|
71
|
+
name: field,
|
|
72
|
+
children: widget.children,
|
|
73
|
+
valueTransforms: widget.valueTransforms,
|
|
74
|
+
options: merge({}, widget.options),
|
|
75
|
+
};
|
|
76
|
+
}, ...(ngDevMode ? [{ debugName: "node" }] : /* istanbul ignore next */ []));
|
|
77
|
+
this.showAddItemButton = computed(() => {
|
|
78
|
+
const options = this.node()?.options;
|
|
79
|
+
return options?.['showAddItemButton'] !== false;
|
|
80
|
+
}, ...(ngDevMode ? [{ debugName: "showAddItemButton" }] : /* istanbul ignore next */ []));
|
|
81
|
+
effect((onCleanup) => {
|
|
82
|
+
const moduleName = this.route.snapshot.parent?.paramMap.get('module');
|
|
83
|
+
const entityName = this.route.snapshot.paramMap.get('entity');
|
|
84
|
+
if (!moduleName || !entityName) {
|
|
85
|
+
this.entityDef.set(null);
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
let cancelled = false;
|
|
89
|
+
this.entityRegistry.resolve(moduleName, entityName).then((entity) => {
|
|
90
|
+
if (!cancelled) {
|
|
91
|
+
this.entityDef.set(entity);
|
|
92
|
+
}
|
|
93
|
+
});
|
|
94
|
+
onCleanup(() => {
|
|
95
|
+
cancelled = true;
|
|
96
|
+
});
|
|
97
|
+
});
|
|
98
|
+
effect(() => {
|
|
99
|
+
const ctx = this.rootContext();
|
|
100
|
+
const recordId = typeof ctx?.['id'] === 'string' && ctx['id'].length > 0 ? ctx['id'] : undefined;
|
|
101
|
+
if (!recordId || recordId === this.previousRecordId()) {
|
|
102
|
+
return;
|
|
103
|
+
}
|
|
104
|
+
this.previousRecordId.set(recordId);
|
|
105
|
+
this.localContext.set(null);
|
|
106
|
+
this.isDirty.set(false);
|
|
107
|
+
this.widgetRenderKey.update((key) => key + 1);
|
|
108
|
+
});
|
|
109
|
+
effect(() => {
|
|
110
|
+
const field = this.fieldName();
|
|
111
|
+
const node = this.node();
|
|
112
|
+
const renderKey = this.widgetRenderKey();
|
|
113
|
+
if (!node || !field) {
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
void this.wireUploaderWidget(field, renderKey);
|
|
117
|
+
});
|
|
118
|
+
}
|
|
119
|
+
async getPrimaryMenuItems() {
|
|
120
|
+
const dirty = this.isDirty();
|
|
121
|
+
const saving = this.isSaving();
|
|
122
|
+
const uploadActions = this.showAddItemButton()
|
|
123
|
+
? []
|
|
124
|
+
: await this.buildUploadPrimaryActions();
|
|
125
|
+
const saveTitle = (await this.translateService.translateAsync('@general:actions.save.title')) || 'Save';
|
|
126
|
+
const discardTitle = (await this.translateService.translateAsync('@general:actions.discard.title')) || 'Discard';
|
|
127
|
+
return [
|
|
128
|
+
...uploadActions,
|
|
129
|
+
{
|
|
130
|
+
title: discardTitle,
|
|
131
|
+
icon: 'fa-light fa-rotate-left',
|
|
132
|
+
zone: 'footer',
|
|
133
|
+
priority: 'secondary',
|
|
134
|
+
color: 'default',
|
|
135
|
+
visible: dirty,
|
|
136
|
+
disabled: saving,
|
|
137
|
+
command: { name: ATTACHMENTS_PAGE_DISCARD_COMMAND, options: {} },
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
title: saveTitle,
|
|
141
|
+
icon: 'fa-light fa-floppy-disk',
|
|
142
|
+
zone: 'footer',
|
|
143
|
+
priority: 'primary',
|
|
144
|
+
color: 'primary',
|
|
145
|
+
visible: dirty,
|
|
146
|
+
disabled: saving,
|
|
147
|
+
command: { name: ATTACHMENTS_PAGE_SAVE_COMMAND, options: {} },
|
|
148
|
+
},
|
|
149
|
+
];
|
|
150
|
+
}
|
|
151
|
+
onContextChanged(event) {
|
|
152
|
+
if (event.state !== 'changed' || this.isSaving()) {
|
|
153
|
+
return;
|
|
154
|
+
}
|
|
155
|
+
const field = this.fieldName();
|
|
156
|
+
const attachments = get(event.data, field);
|
|
157
|
+
const base = this.localContext() ?? this.rootContext() ?? {};
|
|
158
|
+
this.localContext.set({ ...base, [field]: attachments });
|
|
159
|
+
}
|
|
160
|
+
execute(command) {
|
|
161
|
+
if (command.name === ATTACHMENTS_PAGE_DISCARD_COMMAND) {
|
|
162
|
+
this.handleDiscard();
|
|
163
|
+
return;
|
|
164
|
+
}
|
|
165
|
+
if (command.name === ATTACHMENTS_PAGE_UPLOAD_COMMAND) {
|
|
166
|
+
void this.handleUploadAction(command);
|
|
167
|
+
return;
|
|
168
|
+
}
|
|
169
|
+
if (command.name !== ATTACHMENTS_PAGE_SAVE_COMMAND) {
|
|
170
|
+
return;
|
|
171
|
+
}
|
|
172
|
+
return this.handleSave();
|
|
173
|
+
}
|
|
174
|
+
handleDiscard() {
|
|
175
|
+
const field = this.fieldName();
|
|
176
|
+
this.localContext.set(null);
|
|
177
|
+
this.isDirty.set(false);
|
|
178
|
+
this.widgetRenderKey.update((key) => key + 1);
|
|
179
|
+
this.recompute();
|
|
180
|
+
}
|
|
181
|
+
async handleSave() {
|
|
182
|
+
const field = this.fieldName();
|
|
183
|
+
const id = this.recordId();
|
|
184
|
+
const entity = this.entityDef();
|
|
185
|
+
const updateExec = entity?.commands?.update?.execute;
|
|
186
|
+
const ctx = this.localContext() ?? this.rootContext() ?? {};
|
|
187
|
+
const attachments = get(ctx, field);
|
|
188
|
+
if (!field || !id || !updateExec) {
|
|
189
|
+
return {
|
|
190
|
+
success: false,
|
|
191
|
+
message: {
|
|
192
|
+
text: await this.translateService.translateAsync('@general:messages.entity.invalid-data'),
|
|
193
|
+
},
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
this.isSaving.set(true);
|
|
197
|
+
this.recompute();
|
|
198
|
+
try {
|
|
199
|
+
await updateExec({ id, [field]: attachments });
|
|
200
|
+
const persisted = persistedAttachments(attachments);
|
|
201
|
+
// Keep displaying saved attachments; drop soft-deleted rows (onContextChanged is skipped while isSaving).
|
|
202
|
+
this.localContext.set({ ...(this.rootContext() ?? {}), [field]: persisted });
|
|
203
|
+
const uploader = await this.getUploaderWidget();
|
|
204
|
+
uploader?.markSaved?.();
|
|
205
|
+
this.isDirty.set(false);
|
|
206
|
+
this.recompute();
|
|
207
|
+
this.toastService.show({
|
|
208
|
+
color: 'success',
|
|
209
|
+
title: await this.translateService.translateAsync('@general:messages.generic.success.title'),
|
|
210
|
+
content: await this.translateService.translateAsync('@general:messages.generic.success.description'),
|
|
211
|
+
location: 'bottom-center',
|
|
212
|
+
closeButton: true,
|
|
213
|
+
timeOut: 3000,
|
|
214
|
+
timeOutProgress: true,
|
|
215
|
+
});
|
|
216
|
+
return { success: true };
|
|
217
|
+
}
|
|
218
|
+
catch {
|
|
219
|
+
this.toastService.show({
|
|
220
|
+
color: 'danger',
|
|
221
|
+
title: await this.translateService.translateAsync('@general:messages.error.title'),
|
|
222
|
+
content: await this.translateService.translateAsync('@general:messages.entity.update-failed'),
|
|
223
|
+
});
|
|
224
|
+
return { success: false };
|
|
225
|
+
}
|
|
226
|
+
finally {
|
|
227
|
+
this.isSaving.set(false);
|
|
228
|
+
this.recompute();
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
async wireUploaderWidget(field, renderKey) {
|
|
232
|
+
const generation = ++this.widgetWireGeneration;
|
|
233
|
+
const container = this.containerRef();
|
|
234
|
+
if (!container) {
|
|
235
|
+
return;
|
|
236
|
+
}
|
|
237
|
+
const widget = await container.find(field);
|
|
238
|
+
if (!widget || generation !== this.widgetWireGeneration) {
|
|
239
|
+
return;
|
|
240
|
+
}
|
|
241
|
+
this.dirtySubscription?.unsubscribe();
|
|
242
|
+
const api = widget.api();
|
|
243
|
+
const savedAttachments = get(this.rootContext(), field);
|
|
244
|
+
api.syncBaseline?.(savedAttachments);
|
|
245
|
+
if (api.onDirtyChange instanceof Subject) {
|
|
246
|
+
this.dirtySubscription = api.onDirtyChange
|
|
247
|
+
.pipe(takeUntilDestroyed(this.destroyRef))
|
|
248
|
+
.subscribe((dirty) => {
|
|
249
|
+
if (generation !== this.widgetWireGeneration) {
|
|
250
|
+
return;
|
|
251
|
+
}
|
|
252
|
+
this.isDirty.set(dirty);
|
|
253
|
+
this.recompute();
|
|
254
|
+
});
|
|
255
|
+
this.isDirty.set(api.isDirty?.() ?? false);
|
|
256
|
+
this.recompute();
|
|
257
|
+
}
|
|
258
|
+
if (api.onUploadActionsChanged instanceof Subject) {
|
|
259
|
+
this.uploadActionsSubscription?.unsubscribe();
|
|
260
|
+
this.uploadActionsSubscription = api.onUploadActionsChanged
|
|
261
|
+
.pipe(takeUntilDestroyed(this.destroyRef))
|
|
262
|
+
.subscribe(() => {
|
|
263
|
+
if (generation !== this.widgetWireGeneration) {
|
|
264
|
+
return;
|
|
265
|
+
}
|
|
266
|
+
this.recompute();
|
|
267
|
+
});
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
async buildUploadPrimaryActions() {
|
|
271
|
+
const uploader = await this.getUploaderWidget();
|
|
272
|
+
const actions = uploader?.getUploadActions?.() ?? [];
|
|
273
|
+
const readonly = Boolean(this.node()?.options?.['readonly']);
|
|
274
|
+
if (readonly || actions.length === 0) {
|
|
275
|
+
return [];
|
|
276
|
+
}
|
|
277
|
+
const items = [];
|
|
278
|
+
for (const action of actions) {
|
|
279
|
+
items.push({
|
|
280
|
+
title: action.textKey ?? action.text ?? action.plugin,
|
|
281
|
+
icon: this.normalizePageDropdownIcon(action.icon),
|
|
282
|
+
command: {
|
|
283
|
+
name: ATTACHMENTS_PAGE_UPLOAD_COMMAND,
|
|
284
|
+
options: { plugin: action.plugin },
|
|
285
|
+
},
|
|
286
|
+
});
|
|
287
|
+
}
|
|
288
|
+
return [
|
|
289
|
+
{
|
|
290
|
+
title: '@general:actions.add-item.title',
|
|
291
|
+
icon: 'fa-light fa-plus',
|
|
292
|
+
zone: 'header',
|
|
293
|
+
priority: 'primary',
|
|
294
|
+
color: 'primary',
|
|
295
|
+
items,
|
|
296
|
+
},
|
|
297
|
+
];
|
|
298
|
+
}
|
|
299
|
+
/** Page layout dropdown renders `fa-light {{ icon }}`; strip existing style prefix from widget actions. */
|
|
300
|
+
normalizePageDropdownIcon(icon) {
|
|
301
|
+
if (!icon) {
|
|
302
|
+
return 'fa-file-arrow-up';
|
|
303
|
+
}
|
|
304
|
+
return icon.replace(/^(fa-light|fa-solid|fa-regular)\s+/, '');
|
|
305
|
+
}
|
|
306
|
+
async handleUploadAction(command) {
|
|
307
|
+
const plugin = command.options?.['plugin'];
|
|
308
|
+
if (typeof plugin !== 'string' || plugin.length === 0) {
|
|
309
|
+
return;
|
|
310
|
+
}
|
|
311
|
+
const uploader = await this.getUploaderWidget();
|
|
312
|
+
await uploader?.runUploadAction?.(plugin);
|
|
313
|
+
}
|
|
314
|
+
async getUploaderWidget() {
|
|
315
|
+
const container = this.containerRef();
|
|
316
|
+
if (!container) {
|
|
317
|
+
return undefined;
|
|
318
|
+
}
|
|
319
|
+
const widget = await container.find(this.fieldName());
|
|
320
|
+
if (!widget) {
|
|
321
|
+
return undefined;
|
|
322
|
+
}
|
|
323
|
+
return widget.api();
|
|
324
|
+
}
|
|
325
|
+
recompute() {
|
|
326
|
+
super.recompute();
|
|
327
|
+
const maybeLayout = this.hostPageLayout;
|
|
328
|
+
maybeLayout.recompute?.();
|
|
329
|
+
}
|
|
330
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMAttachmentsPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
331
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: AXMAttachmentsPageComponent, isStandalone: true, selector: "axm-attachments-page", inputs: { rootContext: { classPropertyName: "rootContext", publicName: "rootContext", isSignal: true, isRequired: false, transformFunction: null }, pageConfig: { classPropertyName: "pageConfig", publicName: "pageConfig", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.axp-page-layout-base": "true" } }, providers: [
|
|
332
|
+
{
|
|
333
|
+
provide: AXPPageLayoutBase,
|
|
334
|
+
useExisting: AXMAttachmentsPageComponent,
|
|
335
|
+
},
|
|
336
|
+
], viewQueries: [{ propertyName: "containerRef", first: true, predicate: ["containerRef"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: `
|
|
337
|
+
@for (renderKey of [widgetRenderKey()]; track renderKey) {
|
|
338
|
+
<axp-widgets-container
|
|
339
|
+
#containerRef
|
|
340
|
+
[context]="context()"
|
|
341
|
+
(onContextChanged)="onContextChanged($event)"
|
|
342
|
+
>
|
|
343
|
+
@if (node(); as n) {
|
|
344
|
+
<ng-container axp-widget-renderer [node]="n" [mode]="'edit'"></ng-container>
|
|
345
|
+
}
|
|
346
|
+
</axp-widgets-container>
|
|
347
|
+
}
|
|
348
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: AXPWidgetCoreModule }, { kind: "component", type: i3.AXPWidgetContainerComponent, selector: "axp-widgets-container", inputs: ["context", "functions"], outputs: ["onContextChanged"] }, { kind: "directive", type: i3.AXPWidgetRendererDirective, selector: "[axp-widget-renderer]", inputs: ["parentNode", "index", "mode", "node"], outputs: ["onOptionsChanged", "onValueChanged", "onLoad"], exportAs: ["widgetRenderer"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
349
|
+
}
|
|
350
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXMAttachmentsPageComponent, decorators: [{
|
|
351
|
+
type: Component,
|
|
352
|
+
args: [{
|
|
353
|
+
selector: 'axm-attachments-page',
|
|
354
|
+
standalone: true,
|
|
355
|
+
imports: [AXPWidgetCoreModule],
|
|
356
|
+
providers: [
|
|
357
|
+
{
|
|
358
|
+
provide: AXPPageLayoutBase,
|
|
359
|
+
useExisting: AXMAttachmentsPageComponent,
|
|
360
|
+
},
|
|
361
|
+
],
|
|
362
|
+
template: `
|
|
363
|
+
@for (renderKey of [widgetRenderKey()]; track renderKey) {
|
|
364
|
+
<axp-widgets-container
|
|
365
|
+
#containerRef
|
|
366
|
+
[context]="context()"
|
|
367
|
+
(onContextChanged)="onContextChanged($event)"
|
|
368
|
+
>
|
|
369
|
+
@if (node(); as n) {
|
|
370
|
+
<ng-container axp-widget-renderer [node]="n" [mode]="'edit'"></ng-container>
|
|
371
|
+
}
|
|
372
|
+
</axp-widgets-container>
|
|
373
|
+
}
|
|
374
|
+
`,
|
|
375
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
376
|
+
host: {
|
|
377
|
+
'[class.axp-page-layout-base]': 'true',
|
|
378
|
+
},
|
|
379
|
+
}]
|
|
380
|
+
}], ctorParameters: () => [], propDecorators: { rootContext: [{ type: i0.Input, args: [{ isSignal: true, alias: "rootContext", required: false }] }], pageConfig: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageConfig", required: false }] }], containerRef: [{ type: i0.ViewChild, args: ['containerRef', { isSignal: true }] }] } });
|
|
381
|
+
|
|
382
|
+
export { AXMAttachmentsPageComponent };
|
|
383
|
+
//# sourceMappingURL=acorex-platform-layout-entity-attachments-page.component-BaTS183I.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-layout-entity-attachments-page.component-BaTS183I.mjs","sources":["../../../../libs/platform/layout/entity/src/lib/features/attachments-plugin/attachments-page/attachments-page.component.ts"],"sourcesContent":["import { AXPEntity } from '@acorex/platform/common';\nimport { AXPContextChangeEvent, AXPExecuteCommand, AXPExecuteCommandResult, type AXPActionMenuItem } from '@acorex/platform/core';\nimport { AXPEntityDefinitionRegistryService } from '../../../entity-registery.service';\nimport {\n AXPPageLayoutBase,\n AXPPageLayoutBaseComponent,\n type AXPLayoutDetailsViewAction,\n} from '@acorex/platform/layout/views';\nimport {\n AXPWidgetContainerComponent,\n AXPWidgetCoreModule,\n AXPWidgetNode,\n type AXPWidgetCoreElement,\n type AXPWidgetCoreElementAPI,\n} from '@acorex/platform/layout/widget-core';\n\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n DestroyRef,\n effect,\n inject,\n input,\n signal,\n Signal,\n viewChild,\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { ActivatedRoute } from '@angular/router';\nimport { get, merge } from 'lodash-es';\nimport {\n persistedAttachments,\n type AXPFileUploaderUploadActionDescriptor,\n} from '../../../widgets/file-uploader-widget';\nimport { Subject, Subscription } from 'rxjs';\n\nconst ATTACHMENTS_PAGE_SAVE_COMMAND = 'EntityAttachmentsPage:Save';\nconst ATTACHMENTS_PAGE_DISCARD_COMMAND = 'EntityAttachmentsPage:Discard';\nconst ATTACHMENTS_PAGE_UPLOAD_COMMAND = 'EntityAttachmentsPage:Upload';\n\ntype AttachmentsUploaderApi = AXPWidgetCoreElementAPI & {\n onDirtyChange?: Subject<boolean>;\n onUploadActionsChanged?: Subject<void>;\n getUploadActions?: () => AXPFileUploaderUploadActionDescriptor[];\n runUploadAction?: (plugin: string) => void | Promise<void>;\n markSaved?: () => void;\n syncBaseline?: (saved: unknown) => void;\n discardToBaseline?: () => void;\n isDirty?: () => boolean;\n};\n\n//#region ---- Attachments Page Component ----\n\n/**\n * Page component that renders the attachments property using the file-uploader widget.\n * Used when attachments plugin has display: 'page'.\n * Exposes Save/Discard footer actions (same pattern as questionnaire-questions-page).\n */\n@Component({\n selector: 'axm-attachments-page',\n standalone: true,\n imports: [AXPWidgetCoreModule],\n providers: [\n {\n provide: AXPPageLayoutBase,\n useExisting: AXMAttachmentsPageComponent,\n },\n ],\n template: `\n @for (renderKey of [widgetRenderKey()]; track renderKey) {\n <axp-widgets-container\n #containerRef\n [context]=\"context()\"\n (onContextChanged)=\"onContextChanged($event)\"\n >\n @if (node(); as n) {\n <ng-container axp-widget-renderer [node]=\"n\" [mode]=\"'edit'\"></ng-container>\n }\n </axp-widgets-container>\n }\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class.axp-page-layout-base]': 'true',\n },\n})\nexport class AXMAttachmentsPageComponent extends AXPPageLayoutBaseComponent {\n /** Default `{}`: avoid NG0950 before page-component-renderer calls setInput. */\n rootContext = input<Record<string, unknown>>({});\n pageConfig = input<Record<string, unknown>>();\n\n private route = inject(ActivatedRoute);\n private entityRegistry = inject(AXPEntityDefinitionRegistryService);\n private hostPageLayout = inject(AXPPageLayoutBase, { optional: true, skipSelf: true });\n private destroyRef = inject(DestroyRef);\n\n private containerRef = viewChild<AXPWidgetContainerComponent>('containerRef');\n\n private entityDef = signal<AXPEntity | null>(null);\n private localContext = signal<Record<string, unknown> | null>(null);\n protected isDirty = signal(false);\n private isSaving = signal(false);\n private previousRecordId = signal<string | undefined>(undefined);\n /** Recreates the inner widget container on discard so the file list resets. */\n protected widgetRenderKey = signal(0);\n private widgetWireGeneration = 0;\n private dirtySubscription?: Subscription;\n private uploadActionsSubscription?: Subscription;\n\n constructor() {\n super();\n\n effect((onCleanup) => {\n const moduleName = this.route.snapshot.parent?.paramMap.get('module');\n const entityName = this.route.snapshot.paramMap.get('entity');\n if (!moduleName || !entityName) {\n this.entityDef.set(null);\n return;\n }\n let cancelled = false;\n this.entityRegistry.resolve(moduleName, entityName).then((entity) => {\n if (!cancelled) {\n this.entityDef.set(entity);\n }\n });\n onCleanup(() => {\n cancelled = true;\n });\n });\n\n effect(() => {\n const ctx = this.rootContext();\n const recordId = typeof ctx?.['id'] === 'string' && ctx['id'].length > 0 ? ctx['id'] : undefined;\n if (!recordId || recordId === this.previousRecordId()) {\n return;\n }\n this.previousRecordId.set(recordId);\n this.localContext.set(null);\n this.isDirty.set(false);\n this.widgetRenderKey.update((key) => key + 1);\n });\n\n effect(() => {\n const field = this.fieldName();\n const node = this.node();\n const renderKey = this.widgetRenderKey();\n if (!node || !field) {\n return;\n }\n void this.wireUploaderWidget(field, renderKey);\n });\n }\n\n context: Signal<Record<string, unknown>> = computed(() => {\n const local = this.localContext();\n if (local != null) {\n return local;\n }\n return this.rootContext() ?? {};\n });\n\n protected fieldName = computed(() => {\n const config = this.pageConfig();\n return config && typeof (config as { field?: string }).field === 'string'\n ? (config as { field: string }).field\n : 'attachments';\n });\n\n protected recordId = computed((): string | undefined => {\n const id = this.rootContext()?.['id'];\n return typeof id === 'string' && id.length > 0 ? id : undefined;\n });\n\n node = computed<AXPWidgetNode | null>(() => {\n const field = this.fieldName();\n const entity = this.entityDef();\n if (!entity?.properties) {\n return null;\n }\n const prop = entity.properties.find((p: { name: string }) => p.name === field);\n if (!prop?.schema?.interface) {\n return null;\n }\n const widget = prop.schema.interface;\n return {\n type: widget.type,\n path: field,\n name: field,\n children: widget.children,\n valueTransforms: widget.valueTransforms,\n options: merge({}, widget.options),\n } as AXPWidgetNode;\n });\n\n protected showAddItemButton = computed(() => {\n const options = this.node()?.options;\n return options?.['showAddItemButton'] !== false;\n });\n\n override async getPrimaryMenuItems(): Promise<AXPLayoutDetailsViewAction[]> {\n const dirty = this.isDirty();\n const saving = this.isSaving();\n\n const uploadActions = this.showAddItemButton()\n ? []\n : await this.buildUploadPrimaryActions();\n\n const saveTitle =\n (await this.translateService.translateAsync('@general:actions.save.title')) || 'Save';\n const discardTitle =\n (await this.translateService.translateAsync('@general:actions.discard.title')) || 'Discard';\n\n return [\n ...uploadActions,\n {\n title: discardTitle,\n icon: 'fa-light fa-rotate-left',\n zone: 'footer',\n priority: 'secondary',\n color: 'default',\n visible: dirty,\n disabled: saving,\n command: { name: ATTACHMENTS_PAGE_DISCARD_COMMAND, options: {} },\n },\n {\n title: saveTitle,\n icon: 'fa-light fa-floppy-disk',\n zone: 'footer',\n priority: 'primary',\n color: 'primary',\n visible: dirty,\n disabled: saving,\n command: { name: ATTACHMENTS_PAGE_SAVE_COMMAND, options: {} },\n },\n ];\n }\n\n onContextChanged(event: AXPContextChangeEvent): void {\n if (event.state !== 'changed' || this.isSaving()) {\n return;\n }\n\n const field = this.fieldName();\n const attachments = get(event.data, field);\n const base = this.localContext() ?? this.rootContext() ?? {};\n this.localContext.set({ ...base, [field]: attachments });\n }\n\n override execute(command: AXPExecuteCommand): void | Promise<void> {\n if (command.name === ATTACHMENTS_PAGE_DISCARD_COMMAND) {\n this.handleDiscard();\n return;\n }\n if (command.name === ATTACHMENTS_PAGE_UPLOAD_COMMAND) {\n void this.handleUploadAction(command);\n return;\n }\n if (command.name !== ATTACHMENTS_PAGE_SAVE_COMMAND) {\n return;\n }\n return this.handleSave() as unknown as Promise<void>;\n }\n\n private handleDiscard(): void {\n const field = this.fieldName();\n this.localContext.set(null);\n this.isDirty.set(false);\n this.widgetRenderKey.update((key) => key + 1);\n this.recompute();\n }\n\n private async handleSave(): Promise<AXPExecuteCommandResult> {\n const field = this.fieldName();\n const id = this.recordId();\n const entity = this.entityDef();\n const updateExec = entity?.commands?.update?.execute as\n | ((payload: Record<string, unknown>) => Promise<unknown>)\n | undefined;\n const ctx = this.localContext() ?? this.rootContext() ?? {};\n const attachments = get(ctx, field);\n\n if (!field || !id || !updateExec) {\n return {\n success: false,\n message: {\n text: await this.translateService.translateAsync('@general:messages.entity.invalid-data'),\n },\n };\n }\n\n this.isSaving.set(true);\n this.recompute();\n try {\n await updateExec({ id, [field]: attachments });\n\n const persisted = persistedAttachments(attachments);\n\n // Keep displaying saved attachments; drop soft-deleted rows (onContextChanged is skipped while isSaving).\n this.localContext.set({ ...(this.rootContext() ?? {}), [field]: persisted });\n\n const uploader = await this.getUploaderWidget();\n uploader?.markSaved?.();\n this.isDirty.set(false);\n this.recompute();\n\n this.toastService.show({\n color: 'success',\n title: await this.translateService.translateAsync('@general:messages.generic.success.title'),\n content: await this.translateService.translateAsync('@general:messages.generic.success.description'),\n location: 'bottom-center',\n closeButton: true,\n timeOut: 3000,\n timeOutProgress: true,\n });\n return { success: true };\n } catch {\n this.toastService.show({\n color: 'danger',\n title: await this.translateService.translateAsync('@general:messages.error.title'),\n content: await this.translateService.translateAsync('@general:messages.entity.update-failed'),\n });\n return { success: false };\n } finally {\n this.isSaving.set(false);\n this.recompute();\n }\n }\n\n private async wireUploaderWidget(field: string, renderKey: number): Promise<void> {\n const generation = ++this.widgetWireGeneration;\n const container = this.containerRef();\n if (!container) {\n return;\n }\n\n const widget = await container.find(field);\n if (!widget || generation !== this.widgetWireGeneration) {\n return;\n }\n\n this.dirtySubscription?.unsubscribe();\n const api = (widget as AXPWidgetCoreElement).api() as AttachmentsUploaderApi;\n const savedAttachments = get(this.rootContext(), field);\n api.syncBaseline?.(savedAttachments);\n\n if (api.onDirtyChange instanceof Subject) {\n this.dirtySubscription = api.onDirtyChange\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe((dirty) => {\n if (generation !== this.widgetWireGeneration) {\n return;\n }\n this.isDirty.set(dirty);\n this.recompute();\n });\n this.isDirty.set(api.isDirty?.() ?? false);\n this.recompute();\n }\n\n if (api.onUploadActionsChanged instanceof Subject) {\n this.uploadActionsSubscription?.unsubscribe();\n this.uploadActionsSubscription = api.onUploadActionsChanged\n .pipe(takeUntilDestroyed(this.destroyRef))\n .subscribe(() => {\n if (generation !== this.widgetWireGeneration) {\n return;\n }\n this.recompute();\n });\n }\n }\n\n private async buildUploadPrimaryActions(): Promise<AXPLayoutDetailsViewAction[]> {\n const uploader = await this.getUploaderWidget();\n const actions = uploader?.getUploadActions?.() ?? [];\n const readonly = Boolean(this.node()?.options?.['readonly']);\n\n if (readonly || actions.length === 0) {\n return [];\n }\n\n const items: AXPActionMenuItem[] = [];\n for (const action of actions) {\n items.push({\n title: action.textKey ?? action.text ?? action.plugin,\n icon: this.normalizePageDropdownIcon(action.icon),\n command: {\n name: ATTACHMENTS_PAGE_UPLOAD_COMMAND,\n options: { plugin: action.plugin },\n },\n });\n }\n\n return [\n {\n title: '@general:actions.add-item.title',\n icon: 'fa-light fa-plus',\n zone: 'header',\n priority: 'primary',\n color: 'primary',\n items,\n },\n ];\n }\n\n /** Page layout dropdown renders `fa-light {{ icon }}`; strip existing style prefix from widget actions. */\n private normalizePageDropdownIcon(icon?: string): string {\n if (!icon) {\n return 'fa-file-arrow-up';\n }\n return icon.replace(/^(fa-light|fa-solid|fa-regular)\\s+/, '');\n }\n\n private async handleUploadAction(command: AXPExecuteCommand): Promise<void> {\n const plugin = command.options?.['plugin'];\n if (typeof plugin !== 'string' || plugin.length === 0) {\n return;\n }\n const uploader = await this.getUploaderWidget();\n await uploader?.runUploadAction?.(plugin);\n }\n\n private async getUploaderWidget(): Promise<AttachmentsUploaderApi | undefined> {\n const container = this.containerRef();\n if (!container) {\n return undefined;\n }\n const widget = await container.find(this.fieldName());\n if (!widget) {\n return undefined;\n }\n return (widget as AXPWidgetCoreElement).api() as AttachmentsUploaderApi;\n }\n\n protected override recompute(): void {\n super.recompute();\n const maybeLayout = this.hostPageLayout as unknown as { recompute?: () => void };\n maybeLayout.recompute?.();\n }\n}\n\n//#endregion\n"],"names":["i1"],"mappings":";;;;;;;;;;;AAqCA,MAAM,6BAA6B,GAAG,4BAA4B;AAClE,MAAM,gCAAgC,GAAG,+BAA+B;AACxE,MAAM,+BAA+B,GAAG,8BAA8B;AAatE;AAEA;;;;AAIG;AA6BG,MAAO,2BAA4B,SAAQ,0BAA0B,CAAA;AAuBzE,IAAA,WAAA,GAAA;AACE,QAAA,KAAK,EAAE;;AAtBT,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK,CAA0B,EAAE,kFAAC;QAChD,IAAA,CAAA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AA,EAAAA,EAAA,CAAA,2BAAA,EAAA,QAAA,EAAA,uBAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,WAAA,CAAA,EAAA,OAAA,EAAA,CAAA,kBAAA,CAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAAA,EAAA,CAAA,0BAAA,EAAA,QAAA,EAAA,uBAAA,EAAA,MAAA,EAAA,CAAA,YAAA,EAAA,OAAA,EAAA,MAAA,EAAA,MAAA,CAAA,EAAA,OAAA,EAAA,CAAA,kBAAA,EAAA,gBAAA,EAAA,QAAA,CAAA,EAAA,QAAA,EAAA,CAAA,gBAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAyBlB,2BAA2B,EAAA,UAAA,EAAA,CAAA;kBA5BvC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,sBAAsB;AAChC,oBAAA,UAAU,EAAE,IAAI;oBAChB,OAAO,EAAE,CAAC,mBAAmB,CAAC;AAC9B,oBAAA,SAAS,EAAE;AACT,wBAAA;AACE,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,WAAW,EAAA,2BAA6B;AACzC,yBAAA;AACF,qBAAA;AACD,oBAAA,QAAQ,EAAE;;;;;;;;;;;;AAYT,EAAA,CAAA;oBACD,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,IAAI,EAAE;AACJ,wBAAA,8BAA8B,EAAE,MAAM;AACvC,qBAAA;AACF,iBAAA;8SAW+D,cAAc,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;;;"}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import * as i1 from '@acorex/components/button';
|
|
2
2
|
import { AXButtonModule } from '@acorex/components/button';
|
|
3
3
|
import { AXCheckBoxModule } from '@acorex/components/check-box';
|
|
4
|
-
import * as
|
|
4
|
+
import * as i3 from '@acorex/components/decorators';
|
|
5
5
|
import { AXDecoratorModule } from '@acorex/components/decorators';
|
|
6
6
|
import { AXLabelModule } from '@acorex/components/label';
|
|
7
7
|
import { AXBasePageComponent } from '@acorex/components/page';
|
|
8
8
|
import * as i6 from '@acorex/core/translation';
|
|
9
9
|
import { AXTranslationModule } from '@acorex/core/translation';
|
|
10
|
-
import * as
|
|
10
|
+
import * as i5 from '@angular/common';
|
|
11
11
|
import { CommonModule } from '@angular/common';
|
|
12
12
|
import * as i0 from '@angular/core';
|
|
13
13
|
import { input, computed, linkedSignal, Component } from '@angular/core';
|
|
14
|
-
import * as
|
|
14
|
+
import * as i3$1 from '@acorex/platform/layout/widget-core';
|
|
15
15
|
import { AXPWidgetCoreModule } from '@acorex/platform/layout/widget-core';
|
|
16
16
|
|
|
17
17
|
class AXPFileListPopupComponent extends AXBasePageComponent {
|
|
@@ -31,15 +31,13 @@ class AXPFileListPopupComponent extends AXBasePageComponent {
|
|
|
31
31
|
this.maxFileSize = input(1024 * 1024 * 100, ...(ngDevMode ? [{ debugName: "maxFileSize" }] : /* istanbul ignore next */ []));
|
|
32
32
|
/** Same as widget plugins (e.g. document) so hooks/actions run in popup too. */
|
|
33
33
|
this.plugins = input([], ...(ngDevMode ? [{ debugName: "plugins" }] : /* istanbul ignore next */ []));
|
|
34
|
-
this.
|
|
35
|
-
/**
|
|
36
|
-
this.
|
|
37
|
-
/** When true, show edit dialog (name/title/description + plugin hooks) after file select. Default false. */
|
|
38
|
-
this.showEditDialogAfterSelect = input(false, ...(ngDevMode ? [{ debugName: "showEditDialogAfterSelect" }] : /* istanbul ignore next */ []));
|
|
34
|
+
this.showAddItemButton = input(true, ...(ngDevMode ? [{ debugName: "showAddItemButton" }] : /* istanbul ignore next */ []));
|
|
35
|
+
/** File edit dialog options (mode + visible fields). */
|
|
36
|
+
this.editDialog = input(undefined, ...(ngDevMode ? [{ debugName: "editDialog" }] : /* istanbul ignore next */ []));
|
|
39
37
|
//#endregion
|
|
40
38
|
//#region ---- Computed Properties ----
|
|
41
39
|
/**
|
|
42
|
-
* Always render the edit widget so `options` (readonly, plugins,
|
|
40
|
+
* Always render the edit widget so `options` (readonly, plugins, editDialog, …) match the entity form.
|
|
43
41
|
* Readonly behavior comes from `node.options.readonly`, not from view mode.
|
|
44
42
|
*/
|
|
45
43
|
this.mode = computed(() => 'edit', ...(ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []));
|
|
@@ -47,7 +45,7 @@ class AXPFileListPopupComponent extends AXBasePageComponent {
|
|
|
47
45
|
//#region ---- Context & Node Management ----
|
|
48
46
|
this.context = linkedSignal(() => ({}), ...(ngDevMode ? [{ debugName: "context" }] : /* istanbul ignore next */ []));
|
|
49
47
|
this.node = computed(() => ({
|
|
50
|
-
type: '
|
|
48
|
+
type: 'attachments',
|
|
51
49
|
path: 'files',
|
|
52
50
|
defaultValue: Array.isArray(this.files()) ? this.files() : [],
|
|
53
51
|
options: {
|
|
@@ -56,10 +54,9 @@ class AXPFileListPopupComponent extends AXBasePageComponent {
|
|
|
56
54
|
accept: this.accept(),
|
|
57
55
|
maxFileSize: this.maxFileSize(),
|
|
58
56
|
fileEditable: this.fileEditable(),
|
|
57
|
+
showAddItemButton: this.showAddItemButton(),
|
|
59
58
|
plugins: this.resolveInput(this.plugins, []),
|
|
60
|
-
|
|
61
|
-
enableTitleDescription: this.enableTitleDescription(),
|
|
62
|
-
showEditDialogAfterSelect: this.resolveInput(this.showEditDialogAfterSelect(), false),
|
|
59
|
+
editDialog: this.editDialog(),
|
|
63
60
|
},
|
|
64
61
|
}), ...(ngDevMode ? [{ debugName: "node" }] : /* istanbul ignore next */ []));
|
|
65
62
|
}
|
|
@@ -78,11 +75,11 @@ class AXPFileListPopupComponent extends AXBasePageComponent {
|
|
|
78
75
|
});
|
|
79
76
|
}
|
|
80
77
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPFileListPopupComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
81
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: AXPFileListPopupComponent, isStandalone: true, selector: "ng-component", inputs: { files: { classPropertyName: "files", publicName: "files", isSignal: true, isRequired: false, transformFunction: null }, isReadonly: { classPropertyName: "isReadonly", publicName: "isReadonly", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, fileEditable: { classPropertyName: "fileEditable", publicName: "fileEditable", isSignal: true, isRequired: false, transformFunction: null }, accept: { classPropertyName: "accept", publicName: "accept", isSignal: true, isRequired: false, transformFunction: null }, maxFileSize: { classPropertyName: "maxFileSize", publicName: "maxFileSize", isSignal: true, isRequired: false, transformFunction: null }, plugins: { classPropertyName: "plugins", publicName: "plugins", isSignal: true, isRequired: false, transformFunction: null },
|
|
78
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: AXPFileListPopupComponent, isStandalone: true, selector: "ng-component", inputs: { files: { classPropertyName: "files", publicName: "files", isSignal: true, isRequired: false, transformFunction: null }, isReadonly: { classPropertyName: "isReadonly", publicName: "isReadonly", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, fileEditable: { classPropertyName: "fileEditable", publicName: "fileEditable", isSignal: true, isRequired: false, transformFunction: null }, accept: { classPropertyName: "accept", publicName: "accept", isSignal: true, isRequired: false, transformFunction: null }, maxFileSize: { classPropertyName: "maxFileSize", publicName: "maxFileSize", isSignal: true, isRequired: false, transformFunction: null }, plugins: { classPropertyName: "plugins", publicName: "plugins", isSignal: true, isRequired: false, transformFunction: null }, showAddItemButton: { classPropertyName: "showAddItemButton", publicName: "showAddItemButton", isSignal: true, isRequired: false, transformFunction: null }, editDialog: { classPropertyName: "editDialog", publicName: "editDialog", isSignal: true, isRequired: false, transformFunction: null } }, usesInheritance: true, ngImport: i0, template: "<div class=\"ax-p-2\">\n <axp-widgets-container [context]=\"context()\" (onContextChanged)=\"onContextChanged($event)\">\n <ng-container axp-widget-renderer [node]=\"node()\" [mode]=\"mode()\"></ng-container>\n </axp-widgets-container>\n</div>\n<ax-footer>\n <ax-suffix>\n @if (isReadonly()) {\n <ax-button [text]=\"'@general:actions.close.title' | translate | async\" (click)=\"close()\"></ax-button>\n } @else {\n <ax-button [text]=\"'@general:actions.discard.title' | translate | async\" (click)=\"close()\"></ax-button>\n <ax-button\n [text]=\"'@general:actions.apply.title' | translate | async\"\n (click)=\"apply()\"\n [color]=\"'primary'\"\n ></ax-button>\n }\n </ax-suffix>\n</ax-footer>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type:
|
|
82
79
|
//
|
|
83
|
-
AXLabelModule }, { kind: "ngmodule", type: AXCheckBoxModule }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type:
|
|
80
|
+
AXLabelModule }, { kind: "ngmodule", type: AXCheckBoxModule }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3.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: AXButtonModule }, { kind: "component", type: i1.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: AXTranslationModule }, { kind: "ngmodule", type:
|
|
84
81
|
//
|
|
85
|
-
AXPWidgetCoreModule }, { kind: "component", type:
|
|
82
|
+
AXPWidgetCoreModule }, { kind: "component", type: i3$1.AXPWidgetContainerComponent, selector: "axp-widgets-container", inputs: ["context", "functions"], outputs: ["onContextChanged"] }, { kind: "directive", type: i3$1.AXPWidgetRendererDirective, selector: "[axp-widget-renderer]", inputs: ["parentNode", "index", "mode", "node"], outputs: ["onOptionsChanged", "onValueChanged", "onLoad"], exportAs: ["widgetRenderer"] }, { kind: "pipe", type: i5.AsyncPipe, name: "async" }, { kind: "pipe", type: i6.AXTranslatorPipe, name: "translate" }] }); }
|
|
86
83
|
}
|
|
87
84
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AXPFileListPopupComponent, decorators: [{
|
|
88
85
|
type: Component,
|
|
@@ -97,7 +94,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImpor
|
|
|
97
94
|
//
|
|
98
95
|
AXPWidgetCoreModule,
|
|
99
96
|
], template: "<div class=\"ax-p-2\">\n <axp-widgets-container [context]=\"context()\" (onContextChanged)=\"onContextChanged($event)\">\n <ng-container axp-widget-renderer [node]=\"node()\" [mode]=\"mode()\"></ng-container>\n </axp-widgets-container>\n</div>\n<ax-footer>\n <ax-suffix>\n @if (isReadonly()) {\n <ax-button [text]=\"'@general:actions.close.title' | translate | async\" (click)=\"close()\"></ax-button>\n } @else {\n <ax-button [text]=\"'@general:actions.discard.title' | translate | async\" (click)=\"close()\"></ax-button>\n <ax-button\n [text]=\"'@general:actions.apply.title' | translate | async\"\n (click)=\"apply()\"\n [color]=\"'primary'\"\n ></ax-button>\n }\n </ax-suffix>\n</ax-footer>\n" }]
|
|
100
|
-
}], propDecorators: { files: [{ type: i0.Input, args: [{ isSignal: true, alias: "files", required: false }] }], isReadonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "isReadonly", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], fileEditable: [{ type: i0.Input, args: [{ isSignal: true, alias: "fileEditable", required: false }] }], accept: [{ type: i0.Input, args: [{ isSignal: true, alias: "accept", required: false }] }], maxFileSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxFileSize", required: false }] }], plugins: [{ type: i0.Input, args: [{ isSignal: true, alias: "plugins", required: false }] }],
|
|
97
|
+
}], propDecorators: { files: [{ type: i0.Input, args: [{ isSignal: true, alias: "files", required: false }] }], isReadonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "isReadonly", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], fileEditable: [{ type: i0.Input, args: [{ isSignal: true, alias: "fileEditable", required: false }] }], accept: [{ type: i0.Input, args: [{ isSignal: true, alias: "accept", required: false }] }], maxFileSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxFileSize", required: false }] }], plugins: [{ type: i0.Input, args: [{ isSignal: true, alias: "plugins", required: false }] }], showAddItemButton: [{ type: i0.Input, args: [{ isSignal: true, alias: "showAddItemButton", required: false }] }], editDialog: [{ type: i0.Input, args: [{ isSignal: true, alias: "editDialog", required: false }] }] } });
|
|
101
98
|
|
|
102
99
|
export { AXPFileListPopupComponent };
|
|
103
|
-
//# sourceMappingURL=acorex-platform-layout-
|
|
100
|
+
//# sourceMappingURL=acorex-platform-layout-entity-file-list-popup.component-_yrP5SQe.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-layout-entity-file-list-popup.component-_yrP5SQe.mjs","sources":["../../../../libs/platform/layout/entity/src/lib/widgets/file-uploader-widget/file-list-popup/file-list-popup.component.ts","../../../../libs/platform/layout/entity/src/lib/widgets/file-uploader-widget/file-list-popup/file-list-popup.component.html"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXCheckBoxModule } from '@acorex/components/check-box';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXLabelModule } from '@acorex/components/label';\nimport { AXBasePageComponent } from '@acorex/components/page';\nimport { AXTranslationModule } from '@acorex/core/translation';\nimport { AXPContextChangeEvent, AXPFileListItem } from '@acorex/platform/core';\nimport { CommonModule } from '@angular/common';\nimport { Component, computed, input, linkedSignal } from '@angular/core';\nimport { AXPWidgetCoreModule, AXPWidgetNode } from '@acorex/platform/layout/widget-core';\nimport type { AXPFileUploaderEditDialogOptions } from '../file-uploader-widget.types';\n\n@Component({\n imports: [\n CommonModule,\n //\n AXLabelModule,\n AXCheckBoxModule,\n AXDecoratorModule,\n AXButtonModule,\n AXTranslationModule,\n //\n AXPWidgetCoreModule,\n ],\n templateUrl: './file-list-popup.component.html',\n})\nexport class AXPFileListPopupComponent extends AXBasePageComponent {\n //#region ---- Component Properties ----\n\n /** Hydrated file rows only; storage prefixes are resolved in entity/mock middleware before UI. */\n files = input<AXPFileListItem[]>([]);\n /**\n * When true, same as file-uploader `options.readonly` (no add/upload, list actions download-only).\n * Use property name `isReadonly` in popup `data` so host/popup binding resolves the input.\n */\n isReadonly = input<boolean>(false);\n multiple = input<boolean>(false);\n fileEditable = input<boolean>(true);\n accept = input<string>('*');\n maxFileSize = input<number>(1024 * 1024 * 100);\n /** Same as widget plugins (e.g. document) so hooks/actions run in popup too. */\n plugins = input<{ name: string; options?: unknown }[]>([]);\n showAddItemButton = input<boolean>(true);\n /** File edit dialog options (mode + visible fields). */\n editDialog = input<AXPFileUploaderEditDialogOptions | undefined>(undefined);\n\n //#endregion\n\n //#region ---- Computed Properties ----\n\n /**\n * Always render the edit widget so `options` (readonly, plugins, editDialog, …) match the entity form.\n * Readonly behavior comes from `node.options.readonly`, not from view mode.\n */\n protected mode = computed(() => 'edit' as const);\n\n //#endregion\n\n //#region ---- Context & Node Management ----\n\n protected context = linkedSignal<{}>(() => ({}));\n\n protected onContextChanged(event: AXPContextChangeEvent) {\n this.context.set(event.data);\n }\n\n /** Resolves input that may be a signal (input()) or a raw value when popup injects data. */\n private resolveInput<T>(value: (() => T) | T, fallback: T): T {\n return typeof value === 'function' ? (value as () => T)() : (value ?? fallback);\n }\n\n protected node = computed<AXPWidgetNode>(() => ({\n type: 'attachments',\n path: 'files',\n defaultValue: Array.isArray(this.files()) ? this.files() : [],\n options: {\n readonly: this.isReadonly(),\n multiple: this.multiple(),\n accept: this.accept(),\n maxFileSize: this.maxFileSize(),\n fileEditable: this.fileEditable(),\n showAddItemButton: this.showAddItemButton(),\n plugins: this.resolveInput(this.plugins, []),\n editDialog: this.editDialog(),\n },\n }));\n\n //#endregion\n\n //#region ---- UI Handlers ----\n\n apply() {\n this.close({\n data: this.context(),\n });\n }\n\n //#endregion\n}\n","<div class=\"ax-p-2\">\n <axp-widgets-container [context]=\"context()\" (onContextChanged)=\"onContextChanged($event)\">\n <ng-container axp-widget-renderer [node]=\"node()\" [mode]=\"mode()\"></ng-container>\n </axp-widgets-container>\n</div>\n<ax-footer>\n <ax-suffix>\n @if (isReadonly()) {\n <ax-button [text]=\"'@general:actions.close.title' | translate | async\" (click)=\"close()\"></ax-button>\n } @else {\n <ax-button [text]=\"'@general:actions.discard.title' | translate | async\" (click)=\"close()\"></ax-button>\n <ax-button\n [text]=\"'@general:actions.apply.title' | translate | async\"\n (click)=\"apply()\"\n [color]=\"'primary'\"\n ></ax-button>\n }\n </ax-suffix>\n</ax-footer>\n"],"names":["i1","i3","i4","i5"],"mappings":";;;;;;;;;;;;;;;;AA0BM,MAAO,yBAA0B,SAAQ,mBAAmB,CAAA;AAdlE,IAAA,WAAA,GAAA;;;;AAkBE,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAoB,EAAE,4EAAC;AACpC;;;AAGG;AACH,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK,CAAU,KAAK,iFAAC;AAClC,QAAA,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAU,KAAK,+EAAC;AAChC,QAAA,IAAA,CAAA,YAAY,GAAG,KAAK,CAAU,IAAI,mFAAC;AACnC,QAAA,IAAA,CAAA,MAAM,GAAG,KAAK,CAAS,GAAG,6EAAC;QAC3B,IAAA,CAAA,WAAW,GAAG,KAAK,CAAS,IAAI,GAAG,IAAI,GAA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