@acorex-platform/framework-client 0.0.30 → 0.0.32
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-framework-client-common-common-settings.provider-CLm2BVk-.mjs → acorex-platform-framework-client-common-common-settings.provider-CzBr0cRi.mjs} +23 -2
- package/fesm2022/acorex-platform-framework-client-common-common-settings.provider-CzBr0cRi.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-common.mjs +673 -110
- package/fesm2022/acorex-platform-framework-client-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-framework-client-core.mjs +76 -7
- package/fesm2022/acorex-platform-framework-client-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-framework-client-layout-builder.mjs +3 -6
- package/fesm2022/acorex-platform-framework-client-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-platform-framework-client-layout-components.mjs +469 -73
- package/fesm2022/acorex-platform-framework-client-layout-components.mjs.map +1 -1
- package/fesm2022/{acorex-platform-framework-client-layout-entity-acorex-platform-framework-client-layout-entity-CJemNxCu.mjs → acorex-platform-framework-client-layout-entity-acorex-platform-framework-client-layout-entity-Bu8LLCVa.mjs} +3321 -2163
- package/fesm2022/acorex-platform-framework-client-layout-entity-acorex-platform-framework-client-layout-entity-Bu8LLCVa.mjs.map +1 -0
- package/fesm2022/{acorex-platform-framework-client-layout-entity-attachments-page.component-DQXGk8nF.mjs → acorex-platform-framework-client-layout-entity-attachments-page.component-EU1dgVH_.mjs} +2 -2
- package/fesm2022/{acorex-platform-framework-client-layout-entity-attachments-page.component-DQXGk8nF.mjs.map → acorex-platform-framework-client-layout-entity-attachments-page.component-EU1dgVH_.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-framework-client-layout-entity-bulk-entity.command-DSLUUXfQ.mjs → acorex-platform-framework-client-layout-entity-bulk-entity.command-DNBhGkO8.mjs} +43 -15
- package/fesm2022/acorex-platform-framework-client-layout-entity-bulk-entity.command-DNBhGkO8.mjs.map +1 -0
- package/fesm2022/{acorex-platform-framework-client-layout-entity-file-list-popup.component-p0hxDb0W.mjs → acorex-platform-framework-client-layout-entity-file-list-popup.component-B3__csKW.mjs} +3 -3
- package/fesm2022/{acorex-platform-framework-client-layout-entity-file-list-popup.component-p0hxDb0W.mjs.map → acorex-platform-framework-client-layout-entity-file-list-popup.component-B3__csKW.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-framework-client-layout-entity-gallery-page.component-uf51NO5m.mjs → acorex-platform-framework-client-layout-entity-gallery-page.component-DtNSVjeF.mjs} +2 -2
- package/fesm2022/{acorex-platform-framework-client-layout-entity-gallery-page.component-uf51NO5m.mjs.map → acorex-platform-framework-client-layout-entity-gallery-page.component-DtNSVjeF.mjs.map} +1 -1
- package/fesm2022/acorex-platform-framework-client-layout-entity.mjs +1 -1
- package/fesm2022/acorex-platform-framework-client-layout-views.mjs +37 -6
- package/fesm2022/acorex-platform-framework-client-layout-views.mjs.map +1 -1
- package/fesm2022/acorex-platform-framework-client-layout-widget-core.mjs +148 -130
- package/fesm2022/acorex-platform-framework-client-layout-widget-core.mjs.map +1 -1
- package/fesm2022/{acorex-platform-framework-client-layout-widgets-repeater-widget-column.component-3CO4xJB3.mjs → acorex-platform-framework-client-layout-widgets-repeater-widget-column.component-4mX8aYzA.mjs} +3 -3
- package/fesm2022/{acorex-platform-framework-client-layout-widgets-repeater-widget-column.component-3CO4xJB3.mjs.map → acorex-platform-framework-client-layout-widgets-repeater-widget-column.component-4mX8aYzA.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-framework-client-layout-widgets-tabular-data-edit-popup.component-CRST84ou.mjs → acorex-platform-framework-client-layout-widgets-tabular-data-edit-popup.component-D3pnOGmB.mjs} +3 -3
- package/fesm2022/{acorex-platform-framework-client-layout-widgets-tabular-data-edit-popup.component-CRST84ou.mjs.map → acorex-platform-framework-client-layout-widgets-tabular-data-edit-popup.component-D3pnOGmB.mjs.map} +1 -1
- package/fesm2022/acorex-platform-framework-client-layout-widgets.mjs +1127 -717
- package/fesm2022/acorex-platform-framework-client-layout-widgets.mjs.map +1 -1
- package/fesm2022/acorex-platform-framework-client-realtime.mjs +70 -5
- package/fesm2022/acorex-platform-framework-client-realtime.mjs.map +1 -1
- package/fesm2022/acorex-platform-framework-client-runtime.mjs +121 -6
- package/fesm2022/acorex-platform-framework-client-runtime.mjs.map +1 -1
- package/fesm2022/{acorex-platform-framework-client-themes-default-entity-master-single-view.component-C2Abf7Lb.mjs → acorex-platform-framework-client-themes-default-entity-master-single-view.component-DCpl6AXq.mjs} +51 -12
- package/fesm2022/acorex-platform-framework-client-themes-default-entity-master-single-view.component-DCpl6AXq.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-themes-default.mjs +770 -679
- package/fesm2022/acorex-platform-framework-client-themes-default.mjs.map +1 -1
- package/fesm2022/{acorex-platform-framework-client-themes-shared-settings.provider-D2XPkc71.mjs → acorex-platform-framework-client-themes-shared-settings.provider-CpsAIsxj.mjs} +76 -1
- package/fesm2022/acorex-platform-framework-client-themes-shared-settings.provider-CpsAIsxj.mjs.map +1 -0
- package/fesm2022/acorex-platform-framework-client-themes-shared.mjs +309 -29
- package/fesm2022/acorex-platform-framework-client-themes-shared.mjs.map +1 -1
- package/package.json +7 -7
- package/types/acorex-platform-framework-client-common.d.ts +137 -9
- package/types/acorex-platform-framework-client-core.d.ts +4 -1
- package/types/acorex-platform-framework-client-layout-components.d.ts +139 -20
- package/types/acorex-platform-framework-client-layout-entity.d.ts +515 -252
- package/types/acorex-platform-framework-client-layout-views.d.ts +48 -0
- package/types/acorex-platform-framework-client-layout-widget-core.d.ts +2 -2
- package/types/acorex-platform-framework-client-layout-widgets.d.ts +130 -80
- package/types/acorex-platform-framework-client-realtime.d.ts +39 -2
- package/types/acorex-platform-framework-client-runtime.d.ts +56 -5
- package/types/acorex-platform-framework-client-themes-default.d.ts +144 -14
- package/types/acorex-platform-framework-client-themes-shared.d.ts +36 -3
- package/fesm2022/acorex-platform-framework-client-common-common-settings.provider-CLm2BVk-.mjs.map +0 -1
- package/fesm2022/acorex-platform-framework-client-layout-entity-acorex-platform-framework-client-layout-entity-CJemNxCu.mjs.map +0 -1
- package/fesm2022/acorex-platform-framework-client-layout-entity-bulk-entity.command-DSLUUXfQ.mjs.map +0 -1
- package/fesm2022/acorex-platform-framework-client-themes-default-entity-master-single-view.component-C2Abf7Lb.mjs.map +0 -1
- package/fesm2022/acorex-platform-framework-client-themes-shared-settings.provider-D2XPkc71.mjs.map +0 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AXPPageLayoutBaseComponent, AXPPageLayoutBase } from '@acorex-platform/framework-client/layout/views';
|
|
2
2
|
import * as i1 from '@acorex-platform/framework-client/layout/widget-core';
|
|
3
3
|
import { AXPWidgetCoreModule } from '@acorex-platform/framework-client/layout/widget-core';
|
|
4
|
-
import { A as AXPEntityDefinitionRegistryService, p as persistedAttachments } from './acorex-platform-framework-client-layout-entity-acorex-platform-framework-client-layout-entity-
|
|
4
|
+
import { A as AXPEntityDefinitionRegistryService, p as persistedAttachments } from './acorex-platform-framework-client-layout-entity-acorex-platform-framework-client-layout-entity-Bu8LLCVa.mjs';
|
|
5
5
|
import * as i0 from '@angular/core';
|
|
6
6
|
import { input, inject, DestroyRef, viewChild, signal, computed, effect, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
7
7
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
@@ -387,4 +387,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
387
387
|
}], 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 }] }] } });
|
|
388
388
|
|
|
389
389
|
export { AXMAttachmentsPageComponent };
|
|
390
|
-
//# sourceMappingURL=acorex-platform-framework-client-layout-entity-attachments-page.component-
|
|
390
|
+
//# sourceMappingURL=acorex-platform-framework-client-layout-entity-attachments-page.component-EU1dgVH_.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-framework-client-layout-entity-attachments-page.component-DQXGk8nF.mjs","sources":["../../../../../libs/framework/client/layout/entity/src/lib/features/attachments-plugin/attachments-page/attachments-page.component.ts"],"sourcesContent":["\n\nimport { type AXPActionMenuItem, AXPContextChangeEvent, AXPExecuteCommand, AXPRuntimeCommandResult, type AXPWidgetNode } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity } from '@acorex-platform/framework-shared/entity';\n\nimport {\n AXPPageLayoutBase,\n AXPPageLayoutBaseComponent,\n type AXPLayoutDetailsViewAction,\n} from '@acorex-platform/framework-client/layout/views';\nimport { AXPWidgetContainerComponent, AXPWidgetCoreModule, type AXPWidgetCoreElement, type AXPWidgetCoreElementAPI } from '@acorex-platform/framework-client/layout/widget-core';\nimport { AXPEntityDefinitionRegistryService } from '../../../entity-registery.service';\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 { Subject, Subscription } from 'rxjs';\nimport type { AXPCommandExecuteResultPromise } from '@acorex-platform/framework-shared/runtime';\nimport {\n persistedAttachments,\n type AXPFileUploaderUploadActionDescriptor,\n} from '../../../widgets/file-uploader-widget';\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 #containerRef [context]=\"context()\" (onContextChanged)=\"onContextChanged($event)\">\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 //#region ---- Unsaved Changes ----\n\n override hasUnsavedChanges(): boolean {\n return this.isDirty();\n }\n\n //#endregion\n\n override async getPrimaryMenuItems(): Promise<AXPLayoutDetailsViewAction[]> {\n const dirty = this.isDirty();\n const saving = this.isSaving();\n\n const uploadActions = this.showAddItemButton() ? [] : await this.buildUploadPrimaryActions();\n\n const saveTitle = (await this.translateService.translateAsync('@general:actions.save.title')) || 'Save';\n const discardTitle = (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(): AXPCommandExecuteResultPromise {\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, kind: 'object', data: undefined };\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.pipe(takeUntilDestroyed(this.destroyRef)).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 maybeL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,wBAAA,8BAA8B,EAAE,MAAM;AACvC,qBAAA;AACF,iBAAA;8SAW+D,cAAc,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;;;"}
|
|
1
|
+
{"version":3,"file":"acorex-platform-framework-client-layout-entity-attachments-page.component-EU1dgVH_.mjs","sources":["../../../../../libs/framework/client/layout/entity/src/lib/features/attachments-plugin/attachments-page/attachments-page.component.ts"],"sourcesContent":["\n\nimport { type AXPActionMenuItem, AXPContextChangeEvent, AXPExecuteCommand, AXPRuntimeCommandResult, type AXPWidgetNode } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity } from '@acorex-platform/framework-shared/entity';\n\nimport {\n AXPPageLayoutBase,\n AXPPageLayoutBaseComponent,\n type AXPLayoutDetailsViewAction,\n} from '@acorex-platform/framework-client/layout/views';\nimport { AXPWidgetContainerComponent, AXPWidgetCoreModule, type AXPWidgetCoreElement, type AXPWidgetCoreElementAPI } from '@acorex-platform/framework-client/layout/widget-core';\nimport { AXPEntityDefinitionRegistryService } from '../../../entity-registery.service';\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 { Subject, Subscription } from 'rxjs';\nimport type { AXPCommandExecuteResultPromise } from '@acorex-platform/framework-shared/runtime';\nimport {\n persistedAttachments,\n type AXPFileUploaderUploadActionDescriptor,\n} from '../../../widgets/file-uploader-widget';\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 #containerRef [context]=\"context()\" (onContextChanged)=\"onContextChanged($event)\">\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 //#region ---- Unsaved Changes ----\n\n override hasUnsavedChanges(): boolean {\n return this.isDirty();\n }\n\n //#endregion\n\n override async getPrimaryMenuItems(): Promise<AXPLayoutDetailsViewAction[]> {\n const dirty = this.isDirty();\n const saving = this.isSaving();\n\n const uploadActions = this.showAddItemButton() ? [] : await this.buildUploadPrimaryActions();\n\n const saveTitle = (await this.translateService.translateAsync('@general:actions.save.title')) || 'Save';\n const discardTitle = (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(): AXPCommandExecuteResultPromise {\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, kind: 'object', data: undefined };\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.pipe(takeUntilDestroyed(this.destroyRef)).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 { rec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,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,13 +1,15 @@
|
|
|
1
1
|
import { AXDialogService } from '@acorex/components/dialog';
|
|
2
2
|
import { AXLoadingDialogService } from '@acorex/components/loading-dialog';
|
|
3
|
+
import { AXToastService } from '@acorex/components/toast';
|
|
3
4
|
import { AXTranslationService } from '@acorex/core/translation';
|
|
4
|
-
import { AXPSettingsService, extractRequestErrorInfo, platformErrorI18nKey
|
|
5
|
+
import { AXPSettingsService, extractRequestErrorInfo, platformErrorI18nKey } from '@acorex-platform/framework-client/common';
|
|
5
6
|
import { runtimeCommandPayloadData } from '@acorex-platform/framework-shared/core';
|
|
6
7
|
import { resolveEntityActionCommandInput } from '@acorex-platform/framework-shared/runtime';
|
|
7
|
-
import {
|
|
8
|
+
import { AXPRealtimeConnectionPort } from '@acorex-platform/framework-client/realtime';
|
|
9
|
+
import { AXPBulkCommandService, AXPBulkProgressChannel } from '@acorex-platform/framework-client/runtime';
|
|
8
10
|
import * as i0 from '@angular/core';
|
|
9
11
|
import { inject, Injectable } from '@angular/core';
|
|
10
|
-
import { b as buildSelectedIdsFilter, r as resolveBulkFailureBody } from './acorex-platform-framework-client-layout-entity-acorex-platform-framework-client-layout-entity-
|
|
12
|
+
import { b as buildSelectedIdsFilter, n as newBulkExecutionId, w as watchBulkProgress, s as settleAfterLoadingDialog, r as resolveBulkFailureBody, a as showOperationResultToast } from './acorex-platform-framework-client-layout-entity-acorex-platform-framework-client-layout-entity-Bu8LLCVa.mjs';
|
|
11
13
|
|
|
12
14
|
//#region ---- Imports ----
|
|
13
15
|
//#endregion
|
|
@@ -33,9 +35,12 @@ class AXPBulkEntityCommand {
|
|
|
33
35
|
constructor() {
|
|
34
36
|
this.dialogService = inject(AXDialogService);
|
|
35
37
|
this.loadingDialog = inject(AXLoadingDialogService);
|
|
38
|
+
this.toastService = inject(AXToastService);
|
|
36
39
|
this.translationService = inject(AXTranslationService);
|
|
37
40
|
this.settingsService = inject(AXPSettingsService);
|
|
38
41
|
this.bulkCommands = inject(AXPBulkCommandService);
|
|
42
|
+
this.bulkProgress = inject(AXPBulkProgressChannel);
|
|
43
|
+
this.realtime = inject(AXPRealtimeConnectionPort, { optional: true });
|
|
39
44
|
}
|
|
40
45
|
async execute(input = {}) {
|
|
41
46
|
const resolved = resolveInput(input);
|
|
@@ -74,10 +79,27 @@ class AXPBulkEntityCommand {
|
|
|
74
79
|
}
|
|
75
80
|
const loading = this.loadingDialog.show({
|
|
76
81
|
title: await this.translationService.translateAsync('@general:workflow.bulk.processing-title'),
|
|
77
|
-
mode: '
|
|
82
|
+
mode: 'determinate',
|
|
83
|
+
progressValue: 0,
|
|
78
84
|
status: await this.translationService.translateAsync('@general:workflow.bulk.processing-status'),
|
|
79
85
|
text: '',
|
|
80
86
|
});
|
|
87
|
+
const executionId = newBulkExecutionId();
|
|
88
|
+
const progressWatch = watchBulkProgress(this.bulkProgress, executionId, (progress) => {
|
|
89
|
+
const total = progress.total > 0 ? progress.total : 0;
|
|
90
|
+
const current = Math.min(total, progress.current);
|
|
91
|
+
if (total > 0) {
|
|
92
|
+
void this.translationService
|
|
93
|
+
.translateAsync('@general:workflow.progress-count', {
|
|
94
|
+
params: { current, total },
|
|
95
|
+
})
|
|
96
|
+
.then((text) => {
|
|
97
|
+
loading.setProgressText(text);
|
|
98
|
+
loading.setProgressStatus(text);
|
|
99
|
+
});
|
|
100
|
+
loading.setProgressValue(Math.round((current / total) * 100));
|
|
101
|
+
}
|
|
102
|
+
}, this.realtime);
|
|
81
103
|
let result;
|
|
82
104
|
try {
|
|
83
105
|
const request = {
|
|
@@ -88,6 +110,7 @@ class AXPBulkEntityCommand {
|
|
|
88
110
|
idField: resolved.options.idField,
|
|
89
111
|
maxItems: resolved.options.maxItems,
|
|
90
112
|
concurrency: resolved.options.concurrency,
|
|
113
|
+
executionId,
|
|
91
114
|
};
|
|
92
115
|
result = await this.bulkCommands.execute(request);
|
|
93
116
|
}
|
|
@@ -106,8 +129,10 @@ class AXPBulkEntityCommand {
|
|
|
106
129
|
};
|
|
107
130
|
}
|
|
108
131
|
finally {
|
|
109
|
-
|
|
132
|
+
await progressWatch.flush();
|
|
133
|
+
progressWatch.stop();
|
|
110
134
|
loading.close();
|
|
135
|
+
await settleAfterLoadingDialog();
|
|
111
136
|
}
|
|
112
137
|
const data = runtimeCommandPayloadData(result) ??
|
|
113
138
|
result.message?.details ?? {
|
|
@@ -118,18 +143,14 @@ class AXPBulkEntityCommand {
|
|
|
118
143
|
};
|
|
119
144
|
await this.presentResult(data);
|
|
120
145
|
return result.success
|
|
121
|
-
? { success: true, kind: 'object', data,
|
|
146
|
+
? { success: true, kind: 'object', data, metadata: { ...(result.metadata ?? {}), refresh: false } }
|
|
122
147
|
: { success: false, message: result.message ?? { details: data }, metadata: result.metadata };
|
|
123
148
|
}
|
|
124
149
|
async presentResult(data) {
|
|
125
|
-
const showResult = await this.settingsService.get(AXPCommonSettings.EnableOperationToasts);
|
|
126
|
-
if (!showResult) {
|
|
127
|
-
return;
|
|
128
|
-
}
|
|
129
150
|
if (data.succeeded > 0 && data.failed === 0) {
|
|
130
|
-
await this.
|
|
151
|
+
await this.showResultToast('success', '@general:workflow.bulk.success-title', await this.translationService.translateAsync('@general:workflow.bulk.success-body', {
|
|
131
152
|
params: { item: data.succeeded },
|
|
132
|
-
})
|
|
153
|
+
}));
|
|
133
154
|
return;
|
|
134
155
|
}
|
|
135
156
|
if (data.succeeded > 0 && data.failed > 0) {
|
|
@@ -139,7 +160,7 @@ class AXPBulkEntityCommand {
|
|
|
139
160
|
summaryParams: { success: data.succeeded, fail: data.failed },
|
|
140
161
|
singleShowsReasonOnly: false,
|
|
141
162
|
});
|
|
142
|
-
await this.
|
|
163
|
+
await this.showResultToast('warning', '@general:workflow.bulk.partial-title', body);
|
|
143
164
|
return;
|
|
144
165
|
}
|
|
145
166
|
const body = await resolveBulkFailureBody(this.translationService, data.results, {
|
|
@@ -148,7 +169,14 @@ class AXPBulkEntityCommand {
|
|
|
148
169
|
summaryParams: { item: data.failed || data.total },
|
|
149
170
|
singleShowsReasonOnly: true,
|
|
150
171
|
});
|
|
151
|
-
await this.
|
|
172
|
+
await this.showResultToast('danger', '@general:workflow.bulk.fail-title', body);
|
|
173
|
+
}
|
|
174
|
+
async showResultToast(color, titleKey, content) {
|
|
175
|
+
await showOperationResultToast(this.toastService, this.translationService, this.settingsService, {
|
|
176
|
+
color,
|
|
177
|
+
title: await this.translationService.translateAsync(titleKey),
|
|
178
|
+
content,
|
|
179
|
+
});
|
|
152
180
|
}
|
|
153
181
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPBulkEntityCommand, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
154
182
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPBulkEntityCommand, providedIn: 'root' }); }
|
|
@@ -159,4 +187,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
159
187
|
}] });
|
|
160
188
|
|
|
161
189
|
export { AXPBulkEntityCommand };
|
|
162
|
-
//# sourceMappingURL=acorex-platform-framework-client-layout-entity-bulk-entity.command-
|
|
190
|
+
//# sourceMappingURL=acorex-platform-framework-client-layout-entity-bulk-entity.command-DNBhGkO8.mjs.map
|
package/fesm2022/acorex-platform-framework-client-layout-entity-bulk-entity.command-DNBhGkO8.mjs.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-framework-client-layout-entity-bulk-entity.command-DNBhGkO8.mjs","sources":["../../../../../libs/framework/client/layout/entity/src/lib/commands/bulk-entity.command.ts"],"sourcesContent":["//#region ---- Imports ----\n\nimport { AXDialogService } from '@acorex/components/dialog';\nimport { AXLoadingDialogService } from '@acorex/components/loading-dialog';\nimport { AXToastService } from '@acorex/components/toast';\nimport { AXTranslationService } from '@acorex/core/translation';\nimport {\n AXPSettingsService,\n extractRequestErrorInfo,\n platformErrorI18nKey,\n} from '@acorex-platform/framework-client/common';\nimport type { AXDataSourceFilterOption, AXPRuntimeCommandResult } from '@acorex-platform/framework-shared/core';\nimport { runtimeCommandPayloadData } from '@acorex-platform/framework-shared/core';\nimport type {\n AXPBulkCommandRequest,\n AXPBulkCommandResultData,\n AXPCommandExecuteResultPromise,\n AXPEntityActionCommandInput,\n} from '@acorex-platform/framework-shared/runtime';\nimport { resolveEntityActionCommandInput } from '@acorex-platform/framework-shared/runtime';\nimport { AXPRealtimeConnectionPort } from '@acorex-platform/framework-client/realtime';\nimport { AXPBulkCommandService, AXPBulkProgressChannel } from '@acorex-platform/framework-client/runtime';\nimport { AXPCommand } from '@acorex-platform/framework-shared/runtime';\nimport { Injectable, inject } from '@angular/core';\n\nimport { resolveBulkFailureBody } from '../utils/bulk-failure-message.util';\nimport { buildSelectedIdsFilter } from '../utils/bulk-filter.util';\nimport { settleAfterLoadingDialog } from '../utils/close-loading-dialog.util';\nimport { showOperationResultToast } from '../utils/operation-result-toast.util';\nimport { newBulkExecutionId, watchBulkProgress } from '../utils/bulk-progress-watch.util';\n\n//#endregion\n\n//#region ---- Types ----\n\nexport interface AXPBulkEntityCommandOptions {\n /** Server command key to fan out (required). */\n command?: string;\n /** Entity used to resolve the filter. Defaults to root `entity`. */\n entity?: string;\n /** Override filter. When omitted, builds `id in [...]` from selected rows. */\n filter?: AXDataSourceFilterOption;\n /** Field name for each item id in the inner command input. Default: `id`. */\n idField?: string;\n /** Shared input merged into each inner command call. */\n input?: Record<string, unknown>;\n maxItems?: number;\n concurrency?: number;\n confirm?: {\n title?: string;\n message?: string;\n };\n skipConfirm?: boolean;\n}\n\nexport type AXPBulkEntityCommandInput = AXPEntityActionCommandInput & {\n options?: AXPBulkEntityCommandOptions;\n};\n\n//#endregion\n\n//#region ---- Helpers ----\n\nfunction resolveInput(input: AXPBulkEntityCommandInput = {}): {\n entity?: string;\n data?: unknown;\n options: AXPBulkEntityCommandOptions;\n} {\n const context = resolveEntityActionCommandInput(input);\n const options = {\n ...((context.options as AXPBulkEntityCommandOptions | undefined) ?? {}),\n };\n return {\n entity: options.entity ?? context.entity,\n data: context.data,\n options,\n };\n}\n\n//#endregion\n\n//#region ---- Bulk entity command ----\n\n/**\n * Frontend orchestrator for filter-only server bulk commands.\n * Builds a filter from selected rows (or uses options.filter) and calls `POST /runtime/commands/bulk`.\n */\n@Injectable({ providedIn: 'root' })\nexport class AXPBulkEntityCommand\n implements AXPCommand<AXPBulkEntityCommandInput, AXPBulkCommandResultData>\n{\n private readonly dialogService = inject(AXDialogService);\n private readonly loadingDialog = inject(AXLoadingDialogService);\n private readonly toastService = inject(AXToastService);\n private readonly translationService = inject(AXTranslationService);\n private readonly settingsService = inject(AXPSettingsService);\n private readonly bulkCommands = inject(AXPBulkCommandService);\n private readonly bulkProgress = inject(AXPBulkProgressChannel);\n private readonly realtime = inject(AXPRealtimeConnectionPort, { optional: true });\n\n async execute(\n input: AXPBulkEntityCommandInput = {},\n ): AXPCommandExecuteResultPromise<AXPBulkCommandResultData> {\n const resolved = resolveInput(input);\n const commandName = resolved.options.command?.trim();\n const entity = resolved.entity?.trim();\n\n if (!commandName) {\n return {\n success: false,\n message: {\n text: await this.translationService.translateAsync('@general:messages.entity.invalid-data'),\n },\n };\n }\n if (!entity) {\n return {\n success: false,\n message: {\n text: await this.translationService.translateAsync('@general:messages.entity.invalid-data'),\n },\n };\n }\n\n const filter = resolved.options.filter ?? buildSelectedIdsFilter(resolved.data);\n if (!filter) {\n return {\n success: false,\n message: {\n text: await this.translationService.translateAsync('@general:workflow.no-item'),\n },\n };\n }\n\n if (!resolved.options.skipConfirm) {\n const confirmed = await this.dialogService.confirm(\n await this.translationService.translateAsync(\n resolved.options.confirm?.title ?? '@general:workflow.bulk.confirm-title',\n ),\n await this.translationService.translateAsync(\n resolved.options.confirm?.message ?? '@general:workflow.bulk.confirm-message',\n ),\n 'primary',\n 'horizontal',\n false,\n 'cancel',\n );\n if (!confirmed.result) {\n return { success: false };\n }\n }\n\n const loading = this.loadingDialog.show({\n title: await this.translationService.translateAsync('@general:workflow.bulk.processing-title'),\n mode: 'determinate',\n progressValue: 0,\n status: await this.translationService.translateAsync('@general:workflow.bulk.processing-status'),\n text: '',\n });\n\n const executionId = newBulkExecutionId();\n const progressWatch = watchBulkProgress(\n this.bulkProgress,\n executionId,\n (progress) => {\n const total = progress.total > 0 ? progress.total : 0;\n const current = Math.min(total, progress.current);\n if (total > 0) {\n void this.translationService\n .translateAsync('@general:workflow.progress-count', {\n params: { current, total },\n })\n .then((text) => {\n loading.setProgressText(text);\n loading.setProgressStatus(text);\n });\n loading.setProgressValue(Math.round((current / total) * 100));\n }\n },\n this.realtime,\n );\n\n let result: AXPRuntimeCommandResult<AXPBulkCommandResultData>;\n try {\n const request: AXPBulkCommandRequest = {\n name: commandName,\n entity,\n filter,\n input: resolved.options.input,\n idField: resolved.options.idField,\n maxItems: resolved.options.maxItems,\n concurrency: resolved.options.concurrency,\n executionId,\n };\n\n result = await this.bulkCommands.execute(request);\n } catch (error: unknown) {\n const info = extractRequestErrorInfo(error);\n return {\n success: false,\n message: {\n type: 'error',\n code: info?.code,\n text:\n platformErrorI18nKey(info?.code) ??\n info?.message ??\n '@general:workflow.bulk.fail-body',\n details: info?.details,\n },\n };\n } finally {\n await progressWatch.flush();\n progressWatch.stop();\n loading.close();\n await settleAfterLoadingDialog();\n }\n\n const data =\n runtimeCommandPayloadData(result) ??\n (result.message?.details as AXPBulkCommandResultData | undefined) ?? {\n total: 0,\n succeeded: 0,\n failed: 0,\n results: [],\n };\n await this.presentResult(data);\n return result.success\n ? { success: true, kind: 'object', data, metadata: { ...(result.metadata ?? {}), refresh: false } }\n : { success: false, message: result.message ?? { details: data }, metadata: result.metadata };\n }\n\n private async presentResult(data: AXPBulkCommandResultData): Promise<void> {\n if (data.succeeded > 0 && data.failed === 0) {\n await this.showResultToast(\n 'success',\n '@general:workflow.bulk.success-title',\n await this.translationService.translateAsync('@general:workflow.bulk.success-body', {\n params: { item: data.succeeded },\n }),\n );\n return;\n }\n\n if (data.succeeded > 0 && data.failed > 0) {\n const body = await resolveBulkFailureBody(this.translationService, data.results, {\n summaryKey: '@general:workflow.bulk.partial-body',\n summaryWithReasonKey: '@general:workflow.bulk.partial-body-with-reason',\n summaryParams: { success: data.succeeded, fail: data.failed },\n singleShowsReasonOnly: false,\n });\n await this.showResultToast('warning', '@general:workflow.bulk.partial-title', body);\n return;\n }\n\n const body = await resolveBulkFailureBody(this.translationService, data.results, {\n summaryKey: '@general:workflow.bulk.fail-body',\n summaryWithReasonKey: '@general:workflow.bulk.fail-body-with-reason',\n summaryParams: { item: data.failed || data.total },\n singleShowsReasonOnly: true,\n });\n await this.showResultToast('danger', '@general:workflow.bulk.fail-title', body);\n }\n\n private async showResultToast(\n color: 'success' | 'warning' | 'danger' | 'primary',\n titleKey: string,\n content: string,\n ): Promise<void> {\n await showOperationResultToast(this.toastService, this.translationService, this.settingsService, {\n color,\n title: await this.translationService.translateAsync(titleKey),\n content,\n });\n }\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;;;;;;;;;;AAAA;AA2DA;AAEA;AAEA,SAAS,YAAY,CAAC,KAAA,GAAmC,EAAE,EAAA;AAKzD,IAAA,MAAM,OAAO,GAAG,+BAA+B,CAAC,KAAK,CAAC;AACtD,IAAA,MAAM,OAAO,GAAG;AACd,QAAA,IAAK,OAAO,CAAC,OAAmD,IAAI,EAAE,CAAC;KACxE;IACD,OAAO;AACL,QAAA,MAAM,EAAE,OAAO,CAAC,MAAM,IAAI,OAAO,CAAC,MAAM;QACxC,IAAI,EAAE,OAAO,CAAC,IAAI;QAClB,OAAO;KACR;AACH;AAEA;AAEA;AAEA;;;AAGG;MAEU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C,IAAI,CAAC,YAAY,EAAE,IAAI,CAAC,kBAAkB,EAAE,IAAI,CAAC,eAAe,EAAE;YAC/F,KAAK;YACL,KAAK,EAAE,MAAM,IAAI,CAAC,kBAAkB,CAAC,cAAc,CAAC,QAAQ,CAAC;YAC7D,OAAO;AACR,SAAA,CAAC;IACJ;8GAzLW,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAApB,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,cADP,MAAM,EAAA,CAAA,CAAA;;2FACnB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBADhC,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;;;"}
|
|
@@ -7,7 +7,7 @@ import { AXLabelModule } from '@acorex/components/label';
|
|
|
7
7
|
import { AXBasePageComponent } from '@acorex/components/page';
|
|
8
8
|
import * as i3$1 from '@acorex/core/translation';
|
|
9
9
|
import { AXTranslationModule } from '@acorex/core/translation';
|
|
10
|
-
import * as
|
|
10
|
+
import * as i1$2 from '@angular/common';
|
|
11
11
|
import { CommonModule } from '@angular/common';
|
|
12
12
|
import * as i0 from '@angular/core';
|
|
13
13
|
import { input, computed, linkedSignal, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
@@ -91,7 +91,7 @@ class AXPFileListPopupComponent extends AXBasePageComponent {
|
|
|
91
91
|
//
|
|
92
92
|
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:
|
|
93
93
|
//
|
|
94
|
-
AXPWidgetCoreModule }, { kind: "component", type: i1$1.AXPWidgetContainerComponent, selector: "axp-widgets-container", inputs: ["context", "functions"], outputs: ["onContextChanged"] }, { kind: "directive", type: i1$1.AXPWidgetRendererDirective, selector: "[axp-widget-renderer]", inputs: ["parentNode", "index", "mode", "node"], outputs: ["onOptionsChanged", "onValueChanged", "onLoad"], exportAs: ["widgetRenderer"] }, { kind: "pipe", type:
|
|
94
|
+
AXPWidgetCoreModule }, { kind: "component", type: i1$1.AXPWidgetContainerComponent, selector: "axp-widgets-container", inputs: ["context", "functions"], outputs: ["onContextChanged"] }, { kind: "directive", type: i1$1.AXPWidgetRendererDirective, selector: "[axp-widget-renderer]", inputs: ["parentNode", "index", "mode", "node"], outputs: ["onOptionsChanged", "onValueChanged", "onLoad"], exportAs: ["widgetRenderer"] }, { kind: "pipe", type: i1$2.AsyncPipe, name: "async" }, { kind: "pipe", type: i3$1.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.Eager }); }
|
|
95
95
|
}
|
|
96
96
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPFileListPopupComponent, decorators: [{
|
|
97
97
|
type: Component,
|
|
@@ -109,4 +109,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
109
109
|
}], 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 }] }] } });
|
|
110
110
|
|
|
111
111
|
export { AXPFileListPopupComponent };
|
|
112
|
-
//# sourceMappingURL=acorex-platform-framework-client-layout-entity-file-list-popup.component-
|
|
112
|
+
//# sourceMappingURL=acorex-platform-framework-client-layout-entity-file-list-popup.component-B3__csKW.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-framework-client-layout-entity-file-list-popup.component-
|
|
1
|
+
{"version":3,"file":"acorex-platform-framework-client-layout-entity-file-list-popup.component-B3__csKW.mjs","sources":["../../../../../libs/framework/client/layout/entity/src/lib/widgets/file-uploader-widget/file-list-popup/file-list-popup.component.ts","../../../../../libs/framework/client/layout/entity/src/lib/widgets/file-uploader-widget/file-list-popup/file-list-popup.component.html"],"sourcesContent":["import { AXPContextChangeEvent, AXPFileListItem, type AXPWidgetNode } from '@acorex-platform/framework-shared/core';\nimport { 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';\n\nimport { CommonModule } from '@angular/common';\nimport { Component, computed, input, linkedSignal, ChangeDetectionStrategy } from '@angular/core';\nimport { AXPWidgetCoreModule } from '@acorex-platform/framework-client/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 changeDetection: ChangeDetectionStrategy.Eager,\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=\"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":";;;;;;;;;;;;;;;;AA4BM,MAAO,yBAA0B,SAAQ,mBAAmB,CAAA;AAflE,IAAA,WAAA,GAAA;;;;QAmBE,IAAA,CAAA,KAAK,GAAG,KAAK,CAAoB,EAAE;kFAAC;AACpC;;;AAGG;QACH,IAAA,CAAA,UAAU,GAAG,KAAK,CAAU,KAAK;uFAAC;QAClC,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAU,KAAK;qFAAC;QAChC,IAAA,CAAA,YAAY,GAAG,KAAK,CAAU,IAAI;yFAAC;QACnC,IAAA,CAAA,MAAM,GAAG,KAAK,CAAS,GAAG;mFAAC;AAC3B,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK,CAAS,IAAI,GAAG,IAAI,GAAG,GAAG;wFAAC;;QAE9C,IAAA,CAAA,OAAO,GAAG,KAAK,CAAwC,EAAE;oFAAC;QAC1D,IAAA,CAAA,iBAAiB,GAAG,KAAK,CAAU,IA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,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,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAAC,IAAA,CAAA,SAAA,EAAA,IAAA,EAAA,OAAA,EAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,IAAA,EAAAC,IAAA,CAAA,gBAAA,EAAA,IAAA,EAAA,WAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,KAAA,EAAA,CAAA,CAAA;;2FAKV,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBAfrC,SAAS;AACC,YAAA,IAAA,EAAA,CAAA,EAAA,OAAA,EAAA;wBACP,YAAY;;wBAEZ,aAAa;wBACb,gBAAgB;wBAChB,iBAAiB;wBACjB,cAAc;wBACd,mBAAmB;;wBAEnB,mBAAmB;qBACpB,EAAA,eAAA,EACgB,uBAAuB,CAAC,KAAK,EAAA,QAAA,EAAA,ivBAAA,EAAA;;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AXPPageLayoutBaseComponent, AXPPageLayoutBase } from '@acorex-platform/framework-client/layout/views';
|
|
2
2
|
import * as i1 from '@acorex-platform/framework-client/layout/widget-core';
|
|
3
3
|
import { AXPWidgetCoreModule } from '@acorex-platform/framework-client/layout/widget-core';
|
|
4
|
-
import { A as AXPEntityDefinitionRegistryService } from './acorex-platform-framework-client-layout-entity-acorex-platform-framework-client-layout-entity-
|
|
4
|
+
import { A as AXPEntityDefinitionRegistryService } from './acorex-platform-framework-client-layout-entity-acorex-platform-framework-client-layout-entity-Bu8LLCVa.mjs';
|
|
5
5
|
import * as i0 from '@angular/core';
|
|
6
6
|
import { input, inject, signal, computed, effect, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
7
7
|
import { ActivatedRoute } from '@angular/router';
|
|
@@ -265,4 +265,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
265
265
|
}], ctorParameters: () => [], propDecorators: { rootContext: [{ type: i0.Input, args: [{ isSignal: true, alias: "rootContext", required: false }] }], pageConfig: [{ type: i0.Input, args: [{ isSignal: true, alias: "pageConfig", required: false }] }] } });
|
|
266
266
|
|
|
267
267
|
export { AXMGalleryPageComponent };
|
|
268
|
-
//# sourceMappingURL=acorex-platform-framework-client-layout-entity-gallery-page.component-
|
|
268
|
+
//# sourceMappingURL=acorex-platform-framework-client-layout-entity-gallery-page.component-DtNSVjeF.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-framework-client-layout-entity-gallery-page.component-uf51NO5m.mjs","sources":["../../../../../libs/framework/client/layout/entity/src/lib/features/gallery-plugin/gallery-page/gallery-page.component.ts"],"sourcesContent":["import {\n type AXPContextChangeEvent,\n type AXPExecuteCommand,\n type AXPRuntimeCommandResult,\n type AXPWidgetNode,\n} from '@acorex-platform/framework-shared/core';\nimport { AXPEntity } from '@acorex-platform/framework-shared/entity';\n\nimport {\n AXPPageLayoutBase,\n AXPPageLayoutBaseComponent,\n type AXPLayoutDetailsViewAction,\n} from '@acorex-platform/framework-client/layout/views';\nimport { AXPWidgetCoreModule } from '@acorex-platform/framework-client/layout/widget-core';\nimport { AXPEntityDefinitionRegistryService } from '../../../entity-registery.service';\n\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n inject,\n input,\n signal,\n Signal,\n} from '@angular/core';\nimport { ActivatedRoute } from '@angular/router';\nimport { get, merge } from 'lodash-es';\nimport type { AXPCommandExecuteResultPromise } from '@acorex-platform/framework-shared/runtime';\n\nconst GALLERY_PAGE_SAVE_COMMAND = 'EntityGalleryPage:Save';\nconst GALLERY_PAGE_DISCARD_COMMAND = 'EntityGalleryPage:Discard';\n\n//#region ---- Gallery Page Component ----\n\n/**\n * Page component that renders the gallery property using the gallery widget.\n * Used when gallery plugin has display: 'page'.\n * Exposes Save/Discard footer actions.\n */\n@Component({\n selector: 'axm-gallery-page',\n standalone: true,\n imports: [AXPWidgetCoreModule],\n providers: [\n {\n provide: AXPPageLayoutBase,\n useExisting: AXMGalleryPageComponent,\n },\n ],\n template: `\n @for (renderKey of [widgetRenderKey()]; track renderKey) {\n <axp-widgets-container [context]=\"context()\" (onContextChanged)=\"onContextChanged($event)\">\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 AXMGalleryPageComponent 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\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 gallery resets. */\n protected widgetRenderKey = signal(0);\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\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 : 'gallery';\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 //#region ---- Unsaved Changes ----\n\n override hasUnsavedChanges(): boolean {\n return this.isDirty();\n }\n\n //#endregion\n\n override async getPrimaryMenuItems(): Promise<AXPLayoutDetailsViewAction[]> {\n const dirty = this.isDirty();\n const saving = this.isSaving();\n\n const saveTitle = (await this.translateService.translateAsync('@general:actions.save.title')) || 'Save';\n const discardTitle = (await this.translateService.translateAsync('@general:actions.discard.title')) || 'Discard';\n\n return [\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: GALLERY_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: GALLERY_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 gallery = get(event.data, field);\n const base = this.localContext() ?? this.rootContext() ?? {};\n this.localContext.set({ ...base, [field]: gallery });\n this.isDirty.set(true);\n this.recompute();\n }\n\n override execute(command: AXPExecuteCommand): void | Promise<void> {\n if (command.name === GALLERY_PAGE_DISCARD_COMMAND) {\n this.handleDiscard();\n return;\n }\n if (command.name !== GALLERY_PAGE_SAVE_COMMAND) {\n return;\n }\n return this.handleSave() as unknown as Promise<void>;\n }\n\n private handleDiscard(): void {\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(): AXPCommandExecuteResultPromise {\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 gallery = 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]: gallery });\n\n this.localContext.set({ ...(this.rootContext() ?? {}), [field]: gallery });\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, kind: 'object', data: undefined };\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 protected override recompute(): void {\n super.recompute();\n const maybeLayout = this.hostPage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Q,EAAE,kBAAkB;AAC5B,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,uBAAyB;AACrC,yBAAA;AACF,qBAAA;AACD,oBAAA,QAAQ,EAAE;;;;;;;;AAQT,EAAA,CAAA;oBACD,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,IAAI,EAAE;AACJ,wBAAA,8BAA8B,EAAE,MAAM;AACvC,qBAAA;AACF,iBAAA;;;;;"}
|
|
1
|
+
{"version":3,"file":"acorex-platform-framework-client-layout-entity-gallery-page.component-DtNSVjeF.mjs","sources":["../../../../../libs/framework/client/layout/entity/src/lib/features/gallery-plugin/gallery-page/gallery-page.component.ts"],"sourcesContent":["import {\n type AXPContextChangeEvent,\n type AXPExecuteCommand,\n type AXPRuntimeCommandResult,\n type AXPWidgetNode,\n} from '@acorex-platform/framework-shared/core';\nimport { AXPEntity } from '@acorex-platform/framework-shared/entity';\n\nimport {\n AXPPageLayoutBase,\n AXPPageLayoutBaseComponent,\n type AXPLayoutDetailsViewAction,\n} from '@acorex-platform/framework-client/layout/views';\nimport { AXPWidgetCoreModule } from '@acorex-platform/framework-client/layout/widget-core';\nimport { AXPEntityDefinitionRegistryService } from '../../../entity-registery.service';\n\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n inject,\n input,\n signal,\n Signal,\n} from '@angular/core';\nimport { ActivatedRoute } from '@angular/router';\nimport { get, merge } from 'lodash-es';\nimport type { AXPCommandExecuteResultPromise } from '@acorex-platform/framework-shared/runtime';\n\nconst GALLERY_PAGE_SAVE_COMMAND = 'EntityGalleryPage:Save';\nconst GALLERY_PAGE_DISCARD_COMMAND = 'EntityGalleryPage:Discard';\n\n//#region ---- Gallery Page Component ----\n\n/**\n * Page component that renders the gallery property using the gallery widget.\n * Used when gallery plugin has display: 'page'.\n * Exposes Save/Discard footer actions.\n */\n@Component({\n selector: 'axm-gallery-page',\n standalone: true,\n imports: [AXPWidgetCoreModule],\n providers: [\n {\n provide: AXPPageLayoutBase,\n useExisting: AXMGalleryPageComponent,\n },\n ],\n template: `\n @for (renderKey of [widgetRenderKey()]; track renderKey) {\n <axp-widgets-container [context]=\"context()\" (onContextChanged)=\"onContextChanged($event)\">\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 AXMGalleryPageComponent 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\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 gallery resets. */\n protected widgetRenderKey = signal(0);\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\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 : 'gallery';\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 //#region ---- Unsaved Changes ----\n\n override hasUnsavedChanges(): boolean {\n return this.isDirty();\n }\n\n //#endregion\n\n override async getPrimaryMenuItems(): Promise<AXPLayoutDetailsViewAction[]> {\n const dirty = this.isDirty();\n const saving = this.isSaving();\n\n const saveTitle = (await this.translateService.translateAsync('@general:actions.save.title')) || 'Save';\n const discardTitle = (await this.translateService.translateAsync('@general:actions.discard.title')) || 'Discard';\n\n return [\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: GALLERY_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: GALLERY_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 gallery = get(event.data, field);\n const base = this.localContext() ?? this.rootContext() ?? {};\n this.localContext.set({ ...base, [field]: gallery });\n this.isDirty.set(true);\n this.recompute();\n }\n\n override execute(command: AXPExecuteCommand): void | Promise<void> {\n if (command.name === GALLERY_PAGE_DISCARD_COMMAND) {\n this.handleDiscard();\n return;\n }\n if (command.name !== GALLERY_PAGE_SAVE_COMMAND) {\n return;\n }\n return this.handleSave() as unknown as Promise<void>;\n }\n\n private handleDiscard(): void {\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(): AXPCommandExecuteResultPromise {\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 gallery = 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]: gallery });\n\n this.localContext.set({ ...(this.rootContext() ?? {}), [field]: gallery });\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, kind: 'object', data: undefined };\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 protected override recompute(): void {\n super.recompute();\n const maybeLayout = this.hostPageLayout as unknown as { recompute?: () => void };\n maybeLayout?.recompute?.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AAE,IAAI;oBAChB,OAAO,EAAE,CAAC,mBAAmB,CAAC;AAC9B,oBAAA,SAAS,EAAE;AACT,wBAAA;AACE,4BAAA,OAAO,EAAE,iBAAiB;AAC1B,4BAAA,WAAW,EAAA,uBAAyB;AACrC,yBAAA;AACF,qBAAA;AACD,oBAAA,QAAQ,EAAE;;;;;;;;AAQT,EAAA,CAAA;oBACD,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAC/C,oBAAA,IAAI,EAAE;AACJ,wBAAA,8BAA8B,EAAE,MAAM;AACvC,qBAAA;AACF,iBAAA;;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export {
|
|
1
|
+
export { c as ATTACHMENTS_PAGE_COMPONENT_KEY, d as AXMEntityCrudService, e as AXMEntityCrudServiceImpl, f as AXPCategoryTreeService, g as AXPClientLocalPluginModule, h as AXPCreateEntityCommand, i as AXPDataSeederService, j as AXPDeleteEntityCommand, k as AXPDomainQueryEntityDefinitionLoader, l as AXPEditFileUploaderCommand, m as AXPEntityBulkPatchPerformService, o as AXPEntityCardComponent, q as AXPEntityCardFieldsResolver, t as AXPEntityCardSelectActionName, u as AXPEntityCardSkeletonComponent, v as AXPEntityCategoryTreeSelectorComponent, x as AXPEntityCategoryWidget, y as AXPEntityCategoryWidgetColumnComponent, z as AXPEntityCategoryWidgetEditComponent, B as AXPEntityCategoryWidgetViewComponent, C as AXPEntityCommandTriggerViewModel, D as AXPEntityCreateViewElementViewModel, E as AXPEntityCreateViewModelFactory, F as AXPEntityCreateViewSectionViewModel, G as AXPEntityDataProvider, H as AXPEntityDataProviderImpl, I as AXPEntityDataSelectorRowActionsService, J as AXPEntityDataSelectorService, K as AXPEntityDefinitionProviderWidget, L as AXPEntityDefinitionProviderWidgetEditComponent, A as AXPEntityDefinitionRegistryService, M as AXPEntityDeletePerformService, N as AXPEntityDetailListViewModel, O as AXPEntityDetailPopoverComponent, P as AXPEntityDetailPopoverService, Q as AXPEntityDetailViewModelFactory, R as AXPEntityDetailViewModelResolver, S as AXPEntityEventDispatcherService, T as AXPEntityFormBuilderService, U as AXPEntityLifecycleHookKeys, V as AXPEntityListPersistenceModeDefault, W as AXPEntityListTableService, X as AXPEntityListToolbarService, Y as AXPEntityListViewCardFieldViewModel, Z as AXPEntityListViewColumnViewModel, _ as AXPEntityListViewModelFactory, $ as AXPEntityListViewModelResolver, a0 as AXPEntityListWidget, a1 as AXPEntityListWidgetViewComponent, a2 as AXPEntityMasterCreateViewModel, a3 as AXPEntityMasterListCardSelectActionName, a4 as AXPEntityMasterListViewModel, a5 as AXPEntityMasterListViewQueryViewModel, a6 as AXPEntityMasterSingleElementViewModel, a7 as AXPEntityMasterSingleViewGroupViewModel, a8 as AXPEntityMasterSingleViewModel, a9 as AXPEntityMasterUpdateElementViewModel, aa as AXPEntityMasterUpdateViewModel, ab as AXPEntityMasterUpdateViewModelFactory, ac as AXPEntityMiddlewareSkipContext, ad as AXPEntityModule, ae as AXPEntityPreloadFiltersContainerComponent, af as AXPEntityPreloadFiltersViewModel, ag as AXPEntityPreloadFiltersViewModelResolver, ah as AXPEntityResolver, ai as AXPEntityRuntimeAccessorService, aj as AXPEntityService, ak as AXPEntityStorageService, al as AXPEntityUpdateViewSectionViewModel, am as AXPFileListComponent, an as AXPFileUploaderLoadFilesQuery, ao as AXPFileUploaderSaveFilesCommand, ap as AXPFileUploaderWidget, aq as AXPFileUploaderWidgetColumnComponent, ar as AXPFileUploaderWidgetEditComponent, as as AXPFileUploaderWidgetService, at as AXPFileUploaderWidgetViewComponent, au as AXPGetEntityDetailsQuery, av as AXPLayoutOrderingConfigService, aw as AXPLookupWidget, ax as AXPLookupWidgetColumnComponent, ay as AXPLookupWidgetEditComponent, az as AXPLookupWidgetViewComponent, aA as AXPMiddlewareAbortError, aB as AXPMiddlewareEntityService, aB as AXPMiddlewareEntityStorageService, aC as AXPMultiSourceDefinitionProviderContext, aD as AXPMultiSourceDefinitionProviderService, aE as AXPMultiSourceFederatedSearchService, aF as AXPMultiSourceSelectorComponent, aG as AXPMultiSourceSelectorService, aH as AXPMultiSourceSelectorWidget, aI as AXPMultiSourceSelectorWidgetColumnComponent, aJ as AXPMultiSourceSelectorWidgetEditComponent, aK as AXPMultiSourceSelectorWidgetViewComponent, aL as AXPMultiSourceType, aM as AXPOpenEntityDetailsCommand, aN as AXPOpenEntityListCommand, aO as AXPRelatedColumnEnrichmentService, aP as AXPRelatedColumnMetadataResolver, aQ as AXPSelectorStructureWidget, aR as AXPSelectorStructureWidgetColumnComponent, aS as AXPSelectorStructureWidgetEditComponent, aT as AXPSelectorStructureWidgetViewComponent, aU as AXPShowFileUploaderPopupCommand, aV as AXPTruncatedBreadcrumbComponent, aW as AXPUpdateEntityCommand, aX as AXPUpdateEntityStatusCommand, aY as AXPViewEntityDetailsCommand, aZ as AXP_APPEARANCE_SECTION_ORDER, a_ as AXP_CATEGORY_TREE_ROOT_TITLE_I18N_KEY, a$ as AXP_CLASSIFICATION_SECTION_ORDER, b0 as AXP_CLIENT_LOCAL_DEFAULT_MAX_ITEMS, b1 as AXP_CLIENT_LOCAL_PLUGIN_NAME, b2 as AXP_DATA_SEEDER_TOKEN, b3 as AXP_ENTITY_ACTION_PLUGIN, b4 as AXP_ENTITY_CONFIG_TOKEN, b5 as AXP_ENTITY_DEFINITION_LOADER, b6 as AXP_ENTITY_MIDDLEWARE, b7 as AXP_ENTITY_MODIFIER, b8 as AXP_ENTITY_STORAGE_MIDDLEWARE, b9 as AXP_MULTI_SOURCE_DEFINITION_PROVIDER, ba as DEFAULT_COLUMN_ORDER, bb as DEFAULT_PAIR_SPAN_RULES, bc as DEFAULT_PROPERTY_ORDER, bd as DEFAULT_SECTION_ORDER, be as ENTITY_FORM_ACTION_FIRST_STEP_CONTINUE, bf as ENTITY_LIST_LAYOUT_META, bg as ENTITY_LIST_ROUTE_CONTEXT_SESSION_KEY, bh as ENTITY_MASTER_LIST_TRACE_NS, bi as EntityBuilder, bj as EntityDataAccessor, bk as GALLERY_PAGE_COMPONENT_KEY, bl as TREE_CHILDREN_QUERY_TAKE, bm as actionExists, bn as applyDataSourcePagingWithoutLoad, bo as attachmentFieldCount, bp as attachmentNeedsHydration, bq as attachmentsPlugin, br as attachmentsSemanticallyEqual, bs as axpCreateEntityAiToolInputDefaults, bt as axpCreateEntityCommandDefinition, bu as axpDeleteEntityCommandDefinition, bv as axpOpenEntityListCommandDefinition, bw as axpShowFileUploaderPopupCommandDefinition, bx as axpUpdateEntityStatusCommandDefinition, by as buildDataSourceTraceSnapshot, bz as canPersistEntityListState, bA as clientLocalPlugin, bB as cloneLayoutArrays, bC as columnOrderingMiddleware, bD as columnOrderingMiddlewareProvider, bE as columnWidthMiddleware, bF as columnWidthMiddlewareProvider, bG as committedAttachments, bH as composeEntityMiddlewares, bI as composeEntityStorageMiddlewares, bJ as computeEntityAggregates, bK as createColumnOrderingMiddlewareProvider, bL as createEntityCardDisplayScope, bM as createEntityCardLogicScope, bN as createEntityMiddlewareContext, bO as createEntityStorageContext, bP as createLayoutOrderingMiddlewareProvider, bQ as defaultCardLayoutMiddleware, bR as defaultCardLayoutMiddlewareProvider, bS as defaultMultiLanguageMiddleware, bT as defaultMultiLanguageMiddlewareProvider, bU as detectEntityChanges, bV as dispatchEntityModifiedSideEffects, bW as ensureHierarchicalRootFilter, bX as ensureLayoutPropertyView, bY as ensureLayoutSection, bZ as ensureListActions, b_ as entityCreateBridgeMiddleware, b$ as entityDeleteBridgeMiddleware, c0 as entityGetOneBridgeMiddleware, c1 as entityQueryBridgeMiddleware, c2 as entityStorageCreateBridgeMiddleware, c3 as entityStorageDeleteBridgeMiddleware, c4 as entityStorageGetOneBridgeMiddleware, c5 as entityStorageQueryBridgeMiddleware, c6 as entityStorageUpdateBridgeMiddleware, c7 as entityUpdateBridgeMiddleware, c8 as eventDispatchMiddleware, c9 as filterEntityMiddlewares, ca as filterEntityStorageMiddlewares, cb as filterSortEntityRows, cc as filterTouchesParentKey, cd as findEntityListRowDataInTree, ce as fingerprintAttachmentItem, cf as fingerprintAttachments, cg as fireEntityLifecycleHook, ch as formatLookupItemDisplay, ci as formatLookupItemDisplayAsync, cj as galleryPlugin, ck as getDataSourcePageIndex, cl as getEntityListRowId, cm as getMasterInterfacePropertySortKey, cn as hasFileUploaderTitleOrDescriptionFields, co as hydrateAttachmentFieldToFileList, cp as isAXPMiddlewareAbortError, cq as isAttachmentFieldPresentOnRow, cr as isAttachmentListEntry, cs as isAttachmentStorageRef, ct as isCategoryEntity, cu as isCategoryFilter, cv as isFileListItem, cw as isFileUploaderEditDialogAuto, cx as isLegacyEntityDataSelectorOptions, cy as layoutOrderingMiddlewareFactory, cz as layoutOrderingMiddlewareProvider, cA as mapEntityStorageErrorToCommandResult, cB as mapLegacyEntityDataSelectorOptions, cC as normalizeEntityCardHeaderDisplayValue, cD as normalizeEntityDataSelectorColumnSpecs, cE as normalizeEntityDataSelectorOptions, cF as normalizeEntityFieldToFileList, cG as normalizeEntityListPersistenceMode, cH as normalizeListPaging, p as persistedAttachments, cI as prefetchClientLocalRelated, cJ as provideEntity, cK as provideEntityMiddlewareBridge, cL as provideEntityRealtimeHandlers, cM as provideEntityStorageMiddlewareBridge, cN as resetPagingForTreeChildrenLoad, cO as resolveAttachmentFieldPath, cP as resolveEntityCardBadgeColorValue, cQ as resolveEntityCardHeaderValue, cR as resolveEntityMasterFieldStylingClass, cS as resolveEntityMasterRecordStylingClass, cT as resolveEntityMasterStylingClass, cU as resolveEntityPluginDetailPageOrder, cV as resolveFileUploaderEditDialog, cW as resolveFileUploaderEntityScope, cX as resolveLookupDisplayField, cY as resolveLookupDisplayTemplate, cZ as resolveLookupEntityKey, c_ as resolveMasterInterfacePropertyOrder, c$ as restoreEntityListExpandedRows, d0 as runEntityMiddlewarePipeline, d1 as runEntityQuery, d2 as runEntityStorageMiddlewarePipeline, d3 as searchResultDescriptionMiddleware, d4 as searchResultDescriptionMiddlewareProvider, d5 as shouldLoadEntityListStateFromStorage, d6 as shouldResetEntityListStateOnRouteEntry, d7 as traceEntityMasterList } from './acorex-platform-framework-client-layout-entity-acorex-platform-framework-client-layout-entity-Bu8LLCVa.mjs';
|
|
2
2
|
export * from '@acorex-platform/framework-shared/entity';
|
|
3
3
|
export { collectNestedCreateHiddenProperties, entityDetailsCreateActions, entityDetailsCreateActionsDeferredParent, entityDetailsCrudActions, entityDetailsEditAction, entityDetailsNewEditAction, entityDetailsReferenceCondition, entityDetailsReferenceCreateActions, entityDetailsSimpleCondition, entityMasterBulkDeleteAction, entityMasterCreateAction, entityMasterCrudActions, entityMasterDeleteAction, entityMasterEditAction, entityMasterRecordActions, entityMasterViewAction, entityOverrideDetailsViewAction, mergeForeignKeyFieldIntoCreateActions } from '@acorex-platform/framework-shared/entity';
|
|
4
4
|
export { AXP_ENTITY_DEFINITION_CRUD_SERVICE } from '@acorex-platform/framework-client/domain';
|