@acorex-platform/framework-client 0.0.57 → 0.0.58

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/fesm2022/acorex-platform-framework-client-common.mjs +31 -33
  2. package/fesm2022/acorex-platform-framework-client-common.mjs.map +1 -1
  3. package/fesm2022/acorex-platform-framework-client-core.mjs +157 -2
  4. package/fesm2022/acorex-platform-framework-client-core.mjs.map +1 -1
  5. package/fesm2022/acorex-platform-framework-client-layout-builder.mjs +55 -19
  6. package/fesm2022/acorex-platform-framework-client-layout-builder.mjs.map +1 -1
  7. package/fesm2022/{acorex-platform-framework-client-layout-components-binding-expression-editor-popup.component-BqPaHKPM.mjs → acorex-platform-framework-client-layout-components-binding-expression-editor-popup.component-CyZpdazq.mjs} +6 -6
  8. package/fesm2022/{acorex-platform-framework-client-layout-components-binding-expression-editor-popup.component-BqPaHKPM.mjs.map → acorex-platform-framework-client-layout-components-binding-expression-editor-popup.component-CyZpdazq.mjs.map} +1 -1
  9. package/fesm2022/acorex-platform-framework-client-layout-components.mjs +639 -212
  10. package/fesm2022/acorex-platform-framework-client-layout-components.mjs.map +1 -1
  11. package/fesm2022/acorex-platform-framework-client-layout-designer.mjs +32 -16
  12. package/fesm2022/acorex-platform-framework-client-layout-designer.mjs.map +1 -1
  13. package/fesm2022/{acorex-platform-framework-client-layout-entity-acorex-platform-framework-client-layout-entity-Cmzwhmjw.mjs → acorex-platform-framework-client-layout-entity-acorex-platform-framework-client-layout-entity-jeOx-Rb8.mjs} +207 -143
  14. package/fesm2022/acorex-platform-framework-client-layout-entity-acorex-platform-framework-client-layout-entity-jeOx-Rb8.mjs.map +1 -0
  15. package/fesm2022/{acorex-platform-framework-client-layout-entity-attachments-page.component-K9HAtqL6.mjs → acorex-platform-framework-client-layout-entity-attachments-page.component-B93uWhea.mjs} +2 -2
  16. package/fesm2022/{acorex-platform-framework-client-layout-entity-attachments-page.component-K9HAtqL6.mjs.map → acorex-platform-framework-client-layout-entity-attachments-page.component-B93uWhea.mjs.map} +1 -1
  17. package/fesm2022/{acorex-platform-framework-client-layout-entity-bulk-entity.command-BZECKfez.mjs → acorex-platform-framework-client-layout-entity-bulk-entity.command-DITHE0f6.mjs} +2 -2
  18. package/fesm2022/{acorex-platform-framework-client-layout-entity-bulk-entity.command-BZECKfez.mjs.map → acorex-platform-framework-client-layout-entity-bulk-entity.command-DITHE0f6.mjs.map} +1 -1
  19. package/fesm2022/{acorex-platform-framework-client-layout-entity-gallery-page.component-BuDpC58x.mjs → acorex-platform-framework-client-layout-entity-gallery-page.component-f5rLdctT.mjs} +2 -2
  20. package/fesm2022/{acorex-platform-framework-client-layout-entity-gallery-page.component-BuDpC58x.mjs.map → acorex-platform-framework-client-layout-entity-gallery-page.component-f5rLdctT.mjs.map} +1 -1
  21. package/fesm2022/acorex-platform-framework-client-layout-entity.mjs +1 -1
  22. package/fesm2022/acorex-platform-framework-client-layout-widget-core.mjs +59 -3
  23. package/fesm2022/acorex-platform-framework-client-layout-widget-core.mjs.map +1 -1
  24. package/fesm2022/{acorex-platform-framework-client-layout-widgets-acorex-platform-framework-client-layout-widgets-D5pndfBW.mjs → acorex-platform-framework-client-layout-widgets-acorex-platform-framework-client-layout-widgets-D9WiRo-_.mjs} +225 -136
  25. package/fesm2022/acorex-platform-framework-client-layout-widgets-acorex-platform-framework-client-layout-widgets-D9WiRo-_.mjs.map +1 -0
  26. package/fesm2022/{acorex-platform-framework-client-layout-widgets-code-editor-widget-column.component-BL621E1r.mjs → acorex-platform-framework-client-layout-widgets-code-editor-widget-column.component-DqJIiEyu.mjs} +9 -3
  27. package/fesm2022/acorex-platform-framework-client-layout-widgets-code-editor-widget-column.component-DqJIiEyu.mjs.map +1 -0
  28. package/fesm2022/{acorex-platform-framework-client-layout-widgets-repeater-widget-column.component-BFgrSnfT.mjs → acorex-platform-framework-client-layout-widgets-repeater-widget-column.component-kwbJdTwe.mjs} +2 -2
  29. package/fesm2022/{acorex-platform-framework-client-layout-widgets-repeater-widget-column.component-BFgrSnfT.mjs.map → acorex-platform-framework-client-layout-widgets-repeater-widget-column.component-kwbJdTwe.mjs.map} +1 -1
  30. package/fesm2022/{acorex-platform-framework-client-layout-widgets-text-block-widget-designer.component-Ctjz1PjP.mjs → acorex-platform-framework-client-layout-widgets-text-block-widget-designer.component-Bke-Wy-4.mjs} +2 -2
  31. package/fesm2022/{acorex-platform-framework-client-layout-widgets-text-block-widget-designer.component-Ctjz1PjP.mjs.map → acorex-platform-framework-client-layout-widgets-text-block-widget-designer.component-Bke-Wy-4.mjs.map} +1 -1
  32. package/fesm2022/{acorex-platform-framework-client-layout-widgets-triggers-widget-editor.component-B_OM0T7i.mjs → acorex-platform-framework-client-layout-widgets-triggers-widget-editor.component-C-r7txgg.mjs} +21 -17
  33. package/fesm2022/acorex-platform-framework-client-layout-widgets-triggers-widget-editor.component-C-r7txgg.mjs.map +1 -0
  34. package/fesm2022/acorex-platform-framework-client-layout-widgets.mjs +1 -1
  35. package/fesm2022/acorex-platform-framework-client-themes-shared.mjs +48 -9
  36. package/fesm2022/acorex-platform-framework-client-themes-shared.mjs.map +1 -1
  37. package/fesm2022/acorex-platform-framework-client-workflow.mjs +47 -1
  38. package/fesm2022/acorex-platform-framework-client-workflow.mjs.map +1 -1
  39. package/package.json +2 -2
  40. package/types/acorex-platform-framework-client-common.d.ts +2 -3
  41. package/types/acorex-platform-framework-client-core.d.ts +67 -2
  42. package/types/acorex-platform-framework-client-layout-builder.d.ts +4 -3
  43. package/types/acorex-platform-framework-client-layout-components.d.ts +119 -7
  44. package/types/acorex-platform-framework-client-layout-designer.d.ts +2 -0
  45. package/types/acorex-platform-framework-client-layout-entity.d.ts +16 -9
  46. package/types/acorex-platform-framework-client-layout-widget-core.d.ts +14 -1
  47. package/types/acorex-platform-framework-client-layout-widgets.d.ts +6 -0
  48. package/types/acorex-platform-framework-client-workflow.d.ts +29 -2
  49. package/fesm2022/acorex-platform-framework-client-layout-entity-acorex-platform-framework-client-layout-entity-Cmzwhmjw.mjs.map +0 -1
  50. package/fesm2022/acorex-platform-framework-client-layout-widgets-acorex-platform-framework-client-layout-widgets-D5pndfBW.mjs.map +0 -1
  51. package/fesm2022/acorex-platform-framework-client-layout-widgets-code-editor-widget-column.component-BL621E1r.mjs.map +0 -1
  52. package/fesm2022/acorex-platform-framework-client-layout-widgets-triggers-widget-editor.component-B_OM0T7i.mjs.map +0 -1
@@ -7,11 +7,11 @@ import * as i4$3 from '@acorex-platform/framework-client/common';
7
7
  import { AXPNotFoundError, AXPMenuRouteAccessService, AXPSettingsService, AXPCommonSettings, resolveEntityCreateListBehavior, platformErrorI18nKey, extractRequestErrorInfo, axpNavigateAppPath, AXPFileTypeProviderService, AXPFileStorageService, resolveFileTypeDisplay, resolveEntityRowDisplayTitle, resolveEntityModifyPopupTitle, commandMessageTextForError, resolveStoredImageDisplayUrl, isStoredImageFileId, AXPFilterOperatorMiddlewareService, AXP_ENTITY_LIST_DISPLAY_MODE_DEFAULT, ENTITY_LIST_DEFAULT_INSTANCE_ID, axpNormalizeEntityListInstanceId, axpGetEntityListInstanceIdFromParamMap, axpRedirectToNotFound, CONTAINS_OPER, toExecuteCommandFailureResult, AXPLocalEntityEngine, AXPLocalEntityRealtimeBridge, AXP_LOCAL_ENTITY_DEFAULT_MAX_ITEMS, resolveSearchableText, evaluateEntityDisplayTemplate, AXPCleanNestedFilters, AXPEntityDetailsNavTrailService, axpComposeEntityDetailsNavTrail, axpIsEntityRecordNotFound, coerceAXPSettingRawValueByKind, AXPDefaultMultiLanguageConfigService, withDefaultMultiLanguageOnWidgetNodeTree, axpIsEntityListPath, axpIsEntityDetailsPath, axpParseEntityListRoute, axpParseEntityDetailsRoute, axpSaveEntityListReturnUrl, AXPMenuRouteGuard, AXP_NOT_FOUND_ROUTE, AXP_PROTECTED_ROUTE_GUARDS, AXP_SEARCH_DEFINITION_PROVIDER, AXP_SEARCH_DEFINITION_LAZY_RESOLVER } from '@acorex-platform/framework-client/common';
8
8
  import { AXPWidgetsCatalog, runtimeCommandPayloadData, createRandomUuid, AXPRequestError, runtimeQueryPayloadData, runtimeQueryCollectionData, runtimeQueryFailure, runtimeQuerySuccessObject, runtimeCommandFailure, runtimeCommandSuccessObject, resolveActionLook, listThemeSurfaceClasses, parseRuntimeHexSurface, AXP_THEME_SURFACE_STYLES, AXPWidgetsList, AXPSystemActionType, coerceFilterDisplayText, AXPPlatformScope, flattenQueryFilterUserGroups, AXP_QUERY_QUICK_SEARCH_FIELD, wrapQueryFilterRoot, isPersistableFilterQuery, isCompleteFilterCondition, resolveFilterQueryIdentityField, extractValue, setSmart, getChangedPaths, isSelectionValueEqual, toAxpGridItemWidgetOptions, runtimeQuerySuccessCollection } from '@acorex-platform/framework-shared/core';
9
9
  import { AXPDeviceService, AXPExpressionEvaluatorService, AXPEntityBroadcastService, AXPHookService, AXPDebugService, AXPDataGenerator, AXPContextEvalFactory, ensureRuntimeSurfaceClass, applyFilterArray, createCommandExpressionScope, toExpressionRecord, AXPDistributedEventListenerService, applySortArray, AXHighlightService, AXPColumnWidthService, objectKeyValueTransforms, setupPopupFooterKeyboardShortcuts, AXPContextStore, AXPModuleManifestRegistry, provideAppStartUpTask, AXP_APP_STARTUP_PRIORITY, defaultColumnWidthProvider, AXP_COLUMN_WIDTH_PROVIDER } from '@acorex-platform/framework-client/core';
10
+ import { AXPLayoutBuilderService, AXPDialogOpener, LayoutBuilderModule } from '@acorex-platform/framework-client/layout/builder';
10
11
  import * as i0 from '@angular/core';
11
12
  import { InjectionToken, inject, Injector, runInInjectionContext, Injectable, signal, output, input, computed, effect, ChangeDetectionStrategy, Component, viewChild, untracked, HostBinding, model, ViewEncapsulation, ElementRef, EnvironmentInjector, NgModule, ChangeDetectorRef, Input, afterNextRender, viewChildren, linkedSignal, DestroyRef, makeEnvironmentProviders } from '@angular/core';
12
13
  import { cloneDeep, merge, get, isNil, set, isArray, isString, castArray, has, isPlainObject, orderBy, defaultTo, isEmpty, isEqual, isObjectLike } from 'lodash-es';
13
14
  import { Subject, filter, takeUntil, map, distinctUntilChanged, fromEvent, auditTime, merge as merge$1 } from 'rxjs';
14
- import { AXPLayoutBuilderService, LayoutBuilderModule } from '@acorex-platform/framework-client/layout/builder';
15
15
  import { AXPSessionService } from '@acorex-platform/framework-client/auth';
16
16
  import { Router, NavigationStart, ActivatedRoute, ROUTES } from '@angular/router';
17
17
  import { AXDialogService } from '@acorex/components/dialog';
@@ -1228,7 +1228,7 @@ class PropertyFilter {
1228
1228
  const dialog = await this.buildDialog({});
1229
1229
  return dialog.build();
1230
1230
  }
1231
- async show() {
1231
+ async show(options) {
1232
1232
  // Context: always load by key when we have a record id (authoritative full row), then merge any
1233
1233
  // caller/list row context. Skipping fetch when initialContext was non-empty left dialogs without
1234
1234
  // fields not present on the passed row (e.g. Entity:View single() with partial list payload).
@@ -1260,7 +1260,7 @@ class PropertyFilter {
1260
1260
  }
1261
1261
  const dialog = await this.buildDialog(effectiveContext);
1262
1262
  dialog.setContext(effectiveContext);
1263
- return await dialog.show();
1263
+ return await dialog.show(options);
1264
1264
  }
1265
1265
  /**
1266
1266
  * Resolves property `schema.defaultValue` expressions (e.g. `settings.get(...)`)
@@ -2492,9 +2492,31 @@ class AXPCreateEntityCommand {
2492
2492
  this.settingsService = inject(AXPSettingsService);
2493
2493
  this.openEntityDetailsCommand = inject(AXPOpenEntityDetailsCommand);
2494
2494
  this.entityEvents = inject(AXPEntityBroadcastService);
2495
+ this.dialogOpener = inject(AXPDialogOpener);
2495
2496
  this.context = {};
2497
+ this.loadCreateDialogRenderer = () => import('@acorex-platform/framework-client/layout/builder').then((module) => module.AXPDialogRendererComponent);
2496
2498
  }
2497
2499
  async execute(input = {}) {
2500
+ const outcome = await this.dialogOpener.run({
2501
+ load: this.loadCreateDialogRenderer,
2502
+ data: this.createDialogOpenData(input),
2503
+ present: (notifyShown) => this.presentCreateDialog(input, notifyShown),
2504
+ });
2505
+ if (outcome.duplicate) {
2506
+ return { success: false };
2507
+ }
2508
+ return outcome.result;
2509
+ }
2510
+ createDialogOpenData(input) {
2511
+ const resolved = resolveEntityActionCommandInput(input);
2512
+ return {
2513
+ entity: resolved.entity ?? '',
2514
+ dialogSize: input.dialogSize ?? null,
2515
+ data: resolved.data ?? null,
2516
+ options: resolved.options ?? null,
2517
+ };
2518
+ }
2519
+ async presentCreateDialog(input = {}, notifyShown) {
2498
2520
  const enableOperationToasts = await this.settingsService.get(AXPCommonSettings.EnableOperationToasts);
2499
2521
  const dialogSize = input.dialogSize;
2500
2522
  const resolved = resolveEntityActionCommandInput(input);
@@ -2622,7 +2644,7 @@ class AXPCreateEntityCommand {
2622
2644
  dialogRef.setLoading(false);
2623
2645
  }
2624
2646
  })
2625
- .show();
2647
+ .show({ onShown: notifyShown });
2626
2648
  const commandResult = result;
2627
2649
  if (commandResult.success && commandResult.data) {
2628
2650
  const createdItem = commandResult.data?.item ?? commandResult.data;
@@ -5751,6 +5773,7 @@ class AXPFileUploaderWidgetService {
5751
5773
  constructor() {
5752
5774
  //#region ---- Services & Dependencies ----
5753
5775
  this.popupService = inject(AXPopupService);
5776
+ this.dialogOpener = inject(AXPDialogOpener);
5754
5777
  this.translate = inject(AXTranslationService);
5755
5778
  this.commandExecutor = inject(AXPCommandExecutor);
5756
5779
  this.queryExecutor = inject(AXPQueryExecutor);
@@ -5779,20 +5802,32 @@ class AXPFileUploaderWidgetService {
5779
5802
  plugins: options?.plugins ?? [],
5780
5803
  editDialog: options?.editDialog,
5781
5804
  };
5782
- const component = await import('./acorex-platform-framework-client-layout-entity-file-list-popup.component-C0LgUzzv.mjs').then((m) => m.AXPFileListPopupComponent);
5783
- const result = await this.popupService.open(component, {
5784
- title: await this.translate.translateAsync('@document-management:terms.common.file'),
5805
+ let title = '';
5806
+ const result = await this.dialogOpener.openPopup({
5807
+ load: () => import('./acorex-platform-framework-client-layout-entity-file-list-popup.component-C0LgUzzv.mjs').then((m) => m.AXPFileListPopupComponent),
5785
5808
  data: {
5786
- files: signal(resolved.files),
5787
- isReadonly: signal(resolved.readonly),
5788
- multiple: signal(resolved.multiple),
5789
- accept: signal(resolved.accept),
5790
- maxFileSize: signal(resolved.maxFileSize),
5791
- fileEditable: signal(resolved.fileEditable),
5792
- showAddItemButton: signal(resolved.showAddItemButton),
5793
- plugins: signal(resolved.plugins),
5794
- editDialog: signal(resolved.editDialog),
5809
+ entity: entity ?? null,
5810
+ readonly: resolved.readonly,
5811
+ multiple: resolved.multiple,
5812
+ accept: resolved.accept,
5795
5813
  },
5814
+ prepare: async () => {
5815
+ title = await this.translate.translateAsync('@document-management:terms.common.file');
5816
+ },
5817
+ show: (component) => this.popupService.open(component, {
5818
+ title,
5819
+ data: {
5820
+ files: signal(resolved.files),
5821
+ isReadonly: signal(resolved.readonly),
5822
+ multiple: signal(resolved.multiple),
5823
+ accept: signal(resolved.accept),
5824
+ maxFileSize: signal(resolved.maxFileSize),
5825
+ fileEditable: signal(resolved.fileEditable),
5826
+ showAddItemButton: signal(resolved.showAddItemButton),
5827
+ plugins: signal(resolved.plugins),
5828
+ editDialog: signal(resolved.editDialog),
5829
+ },
5830
+ }),
5796
5831
  });
5797
5832
  const updatedFiles = result?.data?.data?.files;
5798
5833
  if (!updatedFiles) {
@@ -8619,13 +8654,14 @@ const PLUGIN_SLOT_SPAN = 10_000;
8619
8654
  const SUB_ORDER_STEP = 10;
8620
8655
  const PLUGIN_SLOT_INDEX = {
8621
8656
  'meta-data-builder': 0,
8622
- attachments: 1,
8623
- gallery: 2,
8624
- documents: 3,
8625
- comments: 4,
8626
- dashboard: 5,
8627
- reports: 6,
8628
- history: 7,
8657
+ 'meta-data-form': 1,
8658
+ attachments: 2,
8659
+ gallery: 3,
8660
+ documents: 4,
8661
+ comments: 5,
8662
+ dashboard: 6,
8663
+ reports: 7,
8664
+ history: 8,
8629
8665
  };
8630
8666
  //#endregion
8631
8667
  //#region ---- Helpers ----
@@ -8669,7 +8705,7 @@ function normalizeRelatedPageListDetailOrders(relatedEntities, step) {
8669
8705
  return afterMax;
8670
8706
  }
8671
8707
  /**
8672
- * Ordinal within a slot for multi-field pages (attachments, meta-data-builder), stable by field name.
8708
+ * Ordinal within a slot for multi-field pages (attachments, meta-data-builder, meta-data-form), stable by field name.
8673
8709
  */
8674
8710
  function subOrderWithinComponentSlot(pages, componentKey, skip, currentField) {
8675
8711
  const peerFieldKeys = (pages ?? [])
@@ -8688,8 +8724,8 @@ function subOrderWithinComponentSlot(pages, componentKey, skip, currentField) {
8688
8724
  *
8689
8725
  * 1. Assigns finite `layout.order` values to related `page-list` / `page-detail` rows that omit
8690
8726
  * `order` (the composer otherwise treats them as +Infinity).
8691
- * 2. Places plugin tabs in a fixed relative order: meta-data-builder → attachments → gallery →
8692
- * documents → comments → dashboard → reports → history, after all related tabs.
8727
+ * 2. Places plugin tabs in a fixed relative order: meta-data-builder → meta-data-form → attachments →
8728
+ * gallery → documents → comments → dashboard → reports → history, after all related tabs.
8693
8729
  */
8694
8730
  function resolveEntityPluginDetailPageOrder(input, slot, options) {
8695
8731
  const relatedStep = options.relatedOrderStep ?? DEFAULT_RELATED_ORDER_STEP;
@@ -14000,7 +14036,7 @@ class AXMAttachmentsPageComponentProvider {
14000
14036
  return [
14001
14037
  {
14002
14038
  key: ATTACHMENTS_PAGE_COMPONENT_KEY,
14003
- loader: () => import('./acorex-platform-framework-client-layout-entity-attachments-page.component-K9HAtqL6.mjs').then((m) => m.AXMAttachmentsPageComponent),
14039
+ loader: () => import('./acorex-platform-framework-client-layout-entity-attachments-page.component-B93uWhea.mjs').then((m) => m.AXMAttachmentsPageComponent),
14004
14040
  },
14005
14041
  ];
14006
14042
  }
@@ -14537,7 +14573,7 @@ class AXMGalleryPageComponentProvider {
14537
14573
  return [
14538
14574
  {
14539
14575
  key: GALLERY_PAGE_COMPONENT_KEY,
14540
- loader: () => import('./acorex-platform-framework-client-layout-entity-gallery-page.component-BuDpC58x.mjs').then((m) => m.AXMGalleryPageComponent),
14576
+ loader: () => import('./acorex-platform-framework-client-layout-entity-gallery-page.component-f5rLdctT.mjs').then((m) => m.AXMGalleryPageComponent),
14541
14577
  },
14542
14578
  ];
14543
14579
  }
@@ -17597,6 +17633,7 @@ class AXPEntityCategoryWidgetEditComponent extends AXPValueWidgetComponent {
17597
17633
  //#region ---- Services & Dependencies ----
17598
17634
  this.entityResolver = inject(AXPEntityDefinitionRegistryService);
17599
17635
  this.popupService = inject(AXPopupService);
17636
+ this.dialogOpener = inject(AXPDialogOpener);
17600
17637
  this.translateService = inject(AXTranslationService);
17601
17638
  this.cdr = inject(ChangeDetectorRef);
17602
17639
  //#endregion
@@ -17770,6 +17807,9 @@ class AXPEntityCategoryWidgetEditComponent extends AXPValueWidgetComponent {
17770
17807
  this.searchTerm.set('');
17771
17808
  }
17772
17809
  async showTreeSelector() {
17810
+ if (this.isOpen()) {
17811
+ return;
17812
+ }
17773
17813
  this.isOpen.set(true);
17774
17814
  const currentValue = this.getValue();
17775
17815
  const selectedIds = currentValue
@@ -17778,20 +17818,32 @@ class AXPEntityCategoryWidgetEditComponent extends AXPValueWidgetComponent {
17778
17818
  // Get current entity ID from context (if editing an entity)
17779
17819
  const currentEntityId = this.contextService.getValue('id');
17780
17820
  const excludedNodeId = currentEntityId ? String(currentEntityId) : undefined;
17821
+ let title = '';
17781
17822
  try {
17782
- const result = await this.popupService.open(AXPEntityCategoryTreeSelectorComponent, {
17783
- title: `${this.translateService.translateSync('@general:widgets.lookup.search.placeholder')} ${this.translateService.translateSync(this.entityDef()?.formats.plural ?? '')}`,
17784
- size: 'md',
17823
+ const result = await this.dialogOpener.openPopup({
17824
+ load: () => Promise.resolve(AXPEntityCategoryTreeSelectorComponent),
17785
17825
  data: {
17786
- entityKey: signal(this.entity()),
17787
- textField: signal(this.textField()),
17788
- valueField: signal(this.valueField()),
17789
- allowMultiple: signal(this.multiple()),
17790
- selectedValues: signal(selectedIds),
17791
- searchPlaceholder: signal(this.searchPlaceholderText()),
17792
- excludedNodeId: signal(excludedNodeId),
17793
- selectedValuesInput: signal(selectedIds),
17826
+ entity: this.entity(),
17827
+ multiple: this.multiple(),
17828
+ selectedIds,
17829
+ },
17830
+ prepare: () => {
17831
+ title = `${this.translateService.translateSync('@general:widgets.lookup.search.placeholder')} ${this.translateService.translateSync(this.entityDef()?.formats.plural ?? '')}`;
17794
17832
  },
17833
+ show: (component) => this.popupService.open(component, {
17834
+ title,
17835
+ size: 'md',
17836
+ data: {
17837
+ entityKey: signal(this.entity()),
17838
+ textField: signal(this.textField()),
17839
+ valueField: signal(this.valueField()),
17840
+ allowMultiple: signal(this.multiple()),
17841
+ selectedValues: signal(selectedIds),
17842
+ searchPlaceholder: signal(this.searchPlaceholderText()),
17843
+ excludedNodeId: signal(excludedNodeId),
17844
+ selectedValuesInput: signal(selectedIds),
17845
+ },
17846
+ }),
17795
17847
  });
17796
17848
  if (result?.data?.selected && Array.isArray(result.data.selected)) {
17797
17849
  const newItems = this.multiple() ? result.data.selected : result.data.selected.slice(0, 1);
@@ -25951,11 +26003,11 @@ class AXPLookupWidgetColumnComponent extends AXPColumnWidgetComponent {
25951
26003
  return /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i.test(value) || /^\d+$/.test(value);
25952
26004
  }
25953
26005
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPLookupWidgetColumnComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
25954
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXPLookupWidgetColumnComponent, isStandalone: true, selector: "ng-component", inputs: { rawValue: "rawValue", rowData: "rowData" }, viewQueries: [{ propertyName: "moreButton", first: true, predicate: ["moreButton"], descendants: true, isSignal: true }, { propertyName: "lazyTrigger", first: true, predicate: ["lazyTrigger"], descendants: true, isSignal: true }, { propertyName: "morePopover", first: true, predicate: ["morePopover"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "@if (isHydratedStrategy()) {\n <div class=\"relative flex min-w-0 items-center gap-1\">\n @for (item of visibleItems(); track $index) {\n <span\n [class.cursor-pointer]=\"detailPopoverEnabled()\"\n [class.hover:text-primary]=\"detailPopoverEnabled()\"\n [class.hover:underline]=\"detailPopoverEnabled()\"\n (click)=\"handleItemClick($index, $event)\"\n >\n {{ getItemLabel($index) }}\n </span>\n @if ($index < visibleItems().length - 1) {\n <span class=\"text-muted\">\u2022</span>\n }\n } @empty {\n <span class=\"text-muted\">---</span>\n }\n @if (hasMoreItems()) {\n <span\n class=\"absolute end-0 flex h-full cursor-pointer items-center px-1 hover:primary-lighter-surface\"\n (click)=\"showMoreItems(); $event.stopPropagation()\"\n #moreButton\n >\n <i class=\"fa-light fa-ellipsis-vertical\"></i>\n </span>\n }\n </div>\n} @else {\n <div class=\"flex min-w-0 items-center gap-1\">\n @if (displayCount() > 0) {\n <span\n class=\"cursor-pointer text-primary hover:underline\"\n (click)=\"openLazyPopover(); $event.stopPropagation()\"\n #lazyTrigger\n >\n {{ summaryLabel() }}\n </span>\n } @else {\n <span class=\"text-muted\">---</span>\n }\n </div>\n}\n\n<ax-popover [openOn]=\"'manual'\" #morePopover (openChange)=\"onPopoverOpenChange($event)\">\n <div class=\"lightest-surface dark:dark-surface min-w-[280px] rounded-lg p-4 shadow-lg\">\n <div class=\"mb-4 border-b pb-2\">\n <h3 class=\"text-base font-semibold\">{{ popoverHeader() }}</h3>\n </div>\n\n @if (!isHydratedStrategy() && resolveStatus() === 'loading') {\n <div class=\"flex min-h-[120px] items-center justify-center\">\n <ax-loading></ax-loading>\n </div>\n } @else if (!isHydratedStrategy() && resolveStatus() === 'error') {\n <div class=\"text-danger text-sm\">{{ resolveError() }}</div>\n } @else {\n <div class=\"flex max-h-64 flex-col gap-3\">\n @for (item of popoverListItems(); track $index) {\n <span\n [class.cursor-pointer]=\"detailPopoverEnabled()\"\n [class.hover:text-primary]=\"detailPopoverEnabled()\"\n [class.hover:underline]=\"detailPopoverEnabled()\"\n (click)=\"handlePopoverItemClick($index, $event)\"\n >\n {{ getPopoverItemLabel($index) }}\n </span>\n } @empty {\n <span class=\"text-muted\">---</span>\n }\n </div>\n }\n </div>\n</ax-popover>\n", dependencies: [{ kind: "ngmodule", type: AXLoadingModule }, { kind: "component", type: i1$2.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "ngmodule", type: AXPopoverModule }, { kind: "component", type: i1$1.AXPopoverComponent, selector: "ax-popover", inputs: ["width", "disablePanelClass", "visualContextScope", "disabled", "offsetX", "offsetY", "target", "placement", "content", "openOn", "closeOn", "hasBackdrop", "openAfter", "closeAfter", "closeOnScroll", "closeOnNavigation", "backdropClass", "panelClass", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
26006
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXPLookupWidgetColumnComponent, isStandalone: true, selector: "ng-component", inputs: { rawValue: "rawValue", rowData: "rowData" }, viewQueries: [{ propertyName: "moreButton", first: true, predicate: ["moreButton"], descendants: true, isSignal: true }, { propertyName: "lazyTrigger", first: true, predicate: ["lazyTrigger"], descendants: true, isSignal: true }, { propertyName: "morePopover", first: true, predicate: ["morePopover"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "@if (isHydratedStrategy()) {\n <div class=\"relative flex min-w-0 items-center gap-1\">\n @for (item of visibleItems(); track $index) {\n <span\n class=\"min-w-0 truncate\"\n [class.cursor-pointer]=\"detailPopoverEnabled()\"\n [class.hover:text-primary]=\"detailPopoverEnabled()\"\n [class.hover:underline]=\"detailPopoverEnabled()\"\n [attr.title]=\"getItemLabel($index)\"\n (click)=\"handleItemClick($index, $event)\"\n >\n {{ getItemLabel($index) }}\n </span>\n @if ($index < visibleItems().length - 1) {\n <span class=\"text-muted\">\u2022</span>\n }\n } @empty {\n <span class=\"text-muted\">---</span>\n }\n @if (hasMoreItems()) {\n <span\n class=\"absolute end-0 flex h-full cursor-pointer items-center px-1 hover:primary-lighter-surface\"\n (click)=\"showMoreItems(); $event.stopPropagation()\"\n #moreButton\n >\n <i class=\"fa-light fa-ellipsis-vertical\"></i>\n </span>\n }\n </div>\n} @else {\n <div class=\"flex min-w-0 items-center gap-1\">\n @if (displayCount() > 0) {\n <span\n class=\"min-w-0 truncate cursor-pointer text-primary hover:underline\"\n [attr.title]=\"summaryLabel()\"\n (click)=\"openLazyPopover(); $event.stopPropagation()\"\n #lazyTrigger\n >\n {{ summaryLabel() }}\n </span>\n } @else {\n <span class=\"text-muted\">---</span>\n }\n </div>\n}\n\n<ax-popover [openOn]=\"'manual'\" #morePopover (openChange)=\"onPopoverOpenChange($event)\">\n <div class=\"lightest-surface dark:dark-surface min-w-[280px] rounded-lg p-4 shadow-lg\">\n <div class=\"mb-4 border-b pb-2\">\n <h3 class=\"text-base font-semibold\">{{ popoverHeader() }}</h3>\n </div>\n\n @if (!isHydratedStrategy() && resolveStatus() === 'loading') {\n <div class=\"flex min-h-[120px] items-center justify-center\">\n <ax-loading></ax-loading>\n </div>\n } @else if (!isHydratedStrategy() && resolveStatus() === 'error') {\n <div class=\"text-danger text-sm\">{{ resolveError() }}</div>\n } @else {\n <div class=\"flex max-h-64 flex-col gap-3\">\n @for (item of popoverListItems(); track $index) {\n <span\n [class.cursor-pointer]=\"detailPopoverEnabled()\"\n [class.hover:text-primary]=\"detailPopoverEnabled()\"\n [class.hover:underline]=\"detailPopoverEnabled()\"\n (click)=\"handlePopoverItemClick($index, $event)\"\n >\n {{ getPopoverItemLabel($index) }}\n </span>\n } @empty {\n <span class=\"text-muted\">---</span>\n }\n </div>\n }\n </div>\n</ax-popover>\n", dependencies: [{ kind: "ngmodule", type: AXLoadingModule }, { kind: "component", type: i1$2.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "ngmodule", type: AXPopoverModule }, { kind: "component", type: i1$1.AXPopoverComponent, selector: "ax-popover", inputs: ["width", "disablePanelClass", "visualContextScope", "disabled", "offsetX", "offsetY", "target", "placement", "content", "openOn", "closeOn", "hasBackdrop", "openAfter", "closeAfter", "closeOnScroll", "closeOnNavigation", "backdropClass", "panelClass", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
25955
26007
  }
25956
26008
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPLookupWidgetColumnComponent, decorators: [{
25957
26009
  type: Component,
25958
- args: [{ changeDetection: ChangeDetectionStrategy.OnPush, imports: [AXLoadingModule, AXPopoverModule], inputs: ['rawValue', 'rowData'], template: "@if (isHydratedStrategy()) {\n <div class=\"relative flex min-w-0 items-center gap-1\">\n @for (item of visibleItems(); track $index) {\n <span\n [class.cursor-pointer]=\"detailPopoverEnabled()\"\n [class.hover:text-primary]=\"detailPopoverEnabled()\"\n [class.hover:underline]=\"detailPopoverEnabled()\"\n (click)=\"handleItemClick($index, $event)\"\n >\n {{ getItemLabel($index) }}\n </span>\n @if ($index < visibleItems().length - 1) {\n <span class=\"text-muted\">\u2022</span>\n }\n } @empty {\n <span class=\"text-muted\">---</span>\n }\n @if (hasMoreItems()) {\n <span\n class=\"absolute end-0 flex h-full cursor-pointer items-center px-1 hover:primary-lighter-surface\"\n (click)=\"showMoreItems(); $event.stopPropagation()\"\n #moreButton\n >\n <i class=\"fa-light fa-ellipsis-vertical\"></i>\n </span>\n }\n </div>\n} @else {\n <div class=\"flex min-w-0 items-center gap-1\">\n @if (displayCount() > 0) {\n <span\n class=\"cursor-pointer text-primary hover:underline\"\n (click)=\"openLazyPopover(); $event.stopPropagation()\"\n #lazyTrigger\n >\n {{ summaryLabel() }}\n </span>\n } @else {\n <span class=\"text-muted\">---</span>\n }\n </div>\n}\n\n<ax-popover [openOn]=\"'manual'\" #morePopover (openChange)=\"onPopoverOpenChange($event)\">\n <div class=\"lightest-surface dark:dark-surface min-w-[280px] rounded-lg p-4 shadow-lg\">\n <div class=\"mb-4 border-b pb-2\">\n <h3 class=\"text-base font-semibold\">{{ popoverHeader() }}</h3>\n </div>\n\n @if (!isHydratedStrategy() && resolveStatus() === 'loading') {\n <div class=\"flex min-h-[120px] items-center justify-center\">\n <ax-loading></ax-loading>\n </div>\n } @else if (!isHydratedStrategy() && resolveStatus() === 'error') {\n <div class=\"text-danger text-sm\">{{ resolveError() }}</div>\n } @else {\n <div class=\"flex max-h-64 flex-col gap-3\">\n @for (item of popoverListItems(); track $index) {\n <span\n [class.cursor-pointer]=\"detailPopoverEnabled()\"\n [class.hover:text-primary]=\"detailPopoverEnabled()\"\n [class.hover:underline]=\"detailPopoverEnabled()\"\n (click)=\"handlePopoverItemClick($index, $event)\"\n >\n {{ getPopoverItemLabel($index) }}\n </span>\n } @empty {\n <span class=\"text-muted\">---</span>\n }\n </div>\n }\n </div>\n</ax-popover>\n" }]
26010
+ args: [{ changeDetection: ChangeDetectionStrategy.OnPush, imports: [AXLoadingModule, AXPopoverModule], inputs: ['rawValue', 'rowData'], template: "@if (isHydratedStrategy()) {\n <div class=\"relative flex min-w-0 items-center gap-1\">\n @for (item of visibleItems(); track $index) {\n <span\n class=\"min-w-0 truncate\"\n [class.cursor-pointer]=\"detailPopoverEnabled()\"\n [class.hover:text-primary]=\"detailPopoverEnabled()\"\n [class.hover:underline]=\"detailPopoverEnabled()\"\n [attr.title]=\"getItemLabel($index)\"\n (click)=\"handleItemClick($index, $event)\"\n >\n {{ getItemLabel($index) }}\n </span>\n @if ($index < visibleItems().length - 1) {\n <span class=\"text-muted\">\u2022</span>\n }\n } @empty {\n <span class=\"text-muted\">---</span>\n }\n @if (hasMoreItems()) {\n <span\n class=\"absolute end-0 flex h-full cursor-pointer items-center px-1 hover:primary-lighter-surface\"\n (click)=\"showMoreItems(); $event.stopPropagation()\"\n #moreButton\n >\n <i class=\"fa-light fa-ellipsis-vertical\"></i>\n </span>\n }\n </div>\n} @else {\n <div class=\"flex min-w-0 items-center gap-1\">\n @if (displayCount() > 0) {\n <span\n class=\"min-w-0 truncate cursor-pointer text-primary hover:underline\"\n [attr.title]=\"summaryLabel()\"\n (click)=\"openLazyPopover(); $event.stopPropagation()\"\n #lazyTrigger\n >\n {{ summaryLabel() }}\n </span>\n } @else {\n <span class=\"text-muted\">---</span>\n }\n </div>\n}\n\n<ax-popover [openOn]=\"'manual'\" #morePopover (openChange)=\"onPopoverOpenChange($event)\">\n <div class=\"lightest-surface dark:dark-surface min-w-[280px] rounded-lg p-4 shadow-lg\">\n <div class=\"mb-4 border-b pb-2\">\n <h3 class=\"text-base font-semibold\">{{ popoverHeader() }}</h3>\n </div>\n\n @if (!isHydratedStrategy() && resolveStatus() === 'loading') {\n <div class=\"flex min-h-[120px] items-center justify-center\">\n <ax-loading></ax-loading>\n </div>\n } @else if (!isHydratedStrategy() && resolveStatus() === 'error') {\n <div class=\"text-danger text-sm\">{{ resolveError() }}</div>\n } @else {\n <div class=\"flex max-h-64 flex-col gap-3\">\n @for (item of popoverListItems(); track $index) {\n <span\n [class.cursor-pointer]=\"detailPopoverEnabled()\"\n [class.hover:text-primary]=\"detailPopoverEnabled()\"\n [class.hover:underline]=\"detailPopoverEnabled()\"\n (click)=\"handlePopoverItemClick($index, $event)\"\n >\n {{ getPopoverItemLabel($index) }}\n </span>\n } @empty {\n <span class=\"text-muted\">---</span>\n }\n </div>\n }\n </div>\n</ax-popover>\n" }]
25959
26011
  }], ctorParameters: () => [], propDecorators: { moreButton: [{ type: i0.ViewChild, args: ['moreButton', { isSignal: true }] }], lazyTrigger: [{ type: i0.ViewChild, args: ['lazyTrigger', { isSignal: true }] }], morePopover: [{ type: i0.ViewChild, args: ['morePopover', { isSignal: true }] }] } });
25960
26012
 
25961
26013
  var lookupWidgetColumn_component = /*#__PURE__*/Object.freeze({
@@ -26293,6 +26345,7 @@ class AXPMultiSourceSelectorService {
26293
26345
  constructor() {
26294
26346
  //#region ---- Services & Dependencies ----
26295
26347
  this.popupService = inject(AXPopupService);
26348
+ this.dialogOpener = inject(AXPDialogOpener);
26296
26349
  this.definitionService = inject(AXPMultiSourceDefinitionProviderService);
26297
26350
  }
26298
26351
  //#endregion
@@ -26311,13 +26364,20 @@ class AXPMultiSourceSelectorService {
26311
26364
  * Open selector popup
26312
26365
  */
26313
26366
  async open(config) {
26314
- const component = await Promise.resolve().then(function () { return multiSourceSelector_component; }).then((c) => c.AXPMultiSourceSelectorComponent);
26315
- const result = await this.popupService.open(component, {
26316
- title: config.title || config.definition.title,
26317
- size: 'lg',
26367
+ const result = await this.dialogOpener.openPopup({
26368
+ load: () => Promise.resolve().then(function () { return multiSourceSelector_component; }).then((c) => c.AXPMultiSourceSelectorComponent),
26318
26369
  data: {
26319
- config: signal(config),
26370
+ provider: config.definition.name,
26371
+ title: config.title ?? config.definition.title,
26372
+ multiple: config.multiple,
26320
26373
  },
26374
+ show: (component) => this.popupService.open(component, {
26375
+ title: config.title || config.definition.title,
26376
+ size: 'lg',
26377
+ data: {
26378
+ config: signal(config),
26379
+ },
26380
+ }),
26321
26381
  });
26322
26382
  return result?.data || null;
26323
26383
  }
@@ -27324,11 +27384,11 @@ class AXPSelectorStructureWidgetColumnComponent extends AXPValueWidgetComponent
27324
27384
  }
27325
27385
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: AXPSelectorStructureWidgetColumnComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
27326
27386
  static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: AXPSelectorStructureWidgetColumnComponent, isStandalone: true, selector: "axp-selector-structure-widget-column", usesInheritance: true, ngImport: i0, template: `
27327
- <span class="inline-flex items-center gap-2 text-sm" [title]="cellText()">
27387
+ <span class="inline-flex min-w-0 max-w-full items-center gap-2 text-sm" [title]="cellText()">
27328
27388
  @if (previewIcon()) {
27329
27389
  <i [class]="previewIcon()" aria-hidden="true"></i>
27330
27390
  }
27331
- <span>{{ cellText() }}</span>
27391
+ <span class="min-w-0 truncate">{{ cellText() }}</span>
27332
27392
  </span>
27333
27393
  `, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
27334
27394
  }
@@ -27338,11 +27398,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
27338
27398
  selector: 'axp-selector-structure-widget-column',
27339
27399
  changeDetection: ChangeDetectionStrategy.OnPush,
27340
27400
  template: `
27341
- <span class="inline-flex items-center gap-2 text-sm" [title]="cellText()">
27401
+ <span class="inline-flex min-w-0 max-w-full items-center gap-2 text-sm" [title]="cellText()">
27342
27402
  @if (previewIcon()) {
27343
27403
  <i [class]="previewIcon()" aria-hidden="true"></i>
27344
27404
  }
27345
- <span>{{ cellText() }}</span>
27405
+ <span class="min-w-0 truncate">{{ cellText() }}</span>
27346
27406
  </span>
27347
27407
  `,
27348
27408
  }]
@@ -30307,98 +30367,102 @@ class AXPMainEntityContentBuilder {
30307
30367
  return { section: s, hasProperties: visibleProperties.length > 0, visibleProperties };
30308
30368
  })))
30309
30369
  .filter((item) => item.hasProperties)
30310
- .map(({ section: s, visibleProperties }) => ({
30311
- type: 'grid-item-layout',
30312
- name: s.id,
30313
- options: toAxpGridItemWidgetOptions(s.layout),
30314
- children: [
30315
- {
30316
- type: 'fieldset-layout',
30317
- options: {
30318
- title: allGroups.find((g) => g.id === s.id)?.title ?? '',
30319
- icon: allGroups.find((g) => g.id === s.id)?.icon ?? '',
30320
- collapsible: true,
30321
- isOpen: !s.collapsed,
30322
- look: 'card',
30323
- showTitle: s.layout?.label?.visible !== false,
30324
- ...(s.layout?.visible != null && String(s.layout.visible).trim() !== ''
30325
- ? { visible: s.layout.visible }
30326
- : {}),
30327
- },
30328
- children: [
30329
- {
30330
- type: 'grid-layout',
30331
- options: {
30332
- grid: {
30333
- default: {
30334
- columns: 12,
30335
- rows: 1,
30336
- gap: '20px',
30370
+ .map(({ section: s, visibleProperties }) => {
30371
+ const sectionLook = s.look ?? 'card';
30372
+ const showSectionChrome = sectionLook !== 'container';
30373
+ return {
30374
+ type: 'grid-item-layout',
30375
+ name: s.id,
30376
+ options: toAxpGridItemWidgetOptions(s.layout),
30377
+ children: [
30378
+ {
30379
+ type: 'fieldset-layout',
30380
+ options: {
30381
+ title: allGroups.find((g) => g.id === s.id)?.title ?? '',
30382
+ icon: allGroups.find((g) => g.id === s.id)?.icon ?? '',
30383
+ collapsible: showSectionChrome,
30384
+ isOpen: !s.collapsed,
30385
+ look: sectionLook,
30386
+ showTitle: showSectionChrome && s.layout?.label?.visible !== false,
30387
+ ...(s.layout?.visible != null && String(s.layout.visible).trim() !== ''
30388
+ ? { visible: s.layout.visible }
30389
+ : {}),
30390
+ },
30391
+ children: [
30392
+ {
30393
+ type: 'grid-layout',
30394
+ options: {
30395
+ grid: {
30396
+ default: {
30397
+ columns: 12,
30398
+ rows: 1,
30399
+ gap: '20px',
30400
+ },
30337
30401
  },
30338
30402
  },
30339
- },
30340
- children: visibleProperties.map((p) => {
30341
- const layout = getPropertyLayout(p.name, p);
30342
- const viewProp = singleInterface?.properties?.find((vp) => vp.name === p.name);
30343
- const prefixed = resolveEntityPropertyBindPath(p.name, viewProp?.dataPath, p.__dataPath);
30344
- // Check if property is editable (exists in update interface)
30345
- const isEditable = p.__isEditable != null
30346
- ? p.__isEditable
30347
- : editablePropertyNames.has(p.name);
30348
- // Check if property has its own disabled option
30349
- const hasOwnDisabled = p.schema.interface?.options?.disabled !== undefined;
30350
- let formFieldVisible;
30351
- const sv = p.schema?.visible;
30352
- // Template strings are evaluated by `AXPExpressionEvaluatorService` in the widget renderer, not here.
30353
- if (typeof sv === 'string') {
30354
- formFieldVisible = sv;
30355
- }
30356
- else if (sv === false) {
30357
- formFieldVisible = false;
30358
- }
30359
- const interfaceType = p.schema.interface?.type ?? '';
30360
- const isReadonlyCodeEditor = interfaceType === 'code-editor' &&
30361
- (p.schema?.readonly === true ||
30362
- p.schema.interface?.options?.readOnly === true ||
30363
- !isEditable);
30364
- return {
30365
- type: 'form-field',
30366
- options: {
30367
- label: p.title,
30368
- showLabel: layout?.label?.visible ?? true,
30369
- ...toAxpGridItemWidgetOptions(layout),
30370
- ...(formFieldVisible !== undefined ? { visible: formFieldVisible } : {}),
30371
- ...(hintFormFieldOptionsFromDescription(p.description) ?? {}),
30372
- },
30373
- children: [
30374
- {
30375
- type: interfaceType,
30376
- path: prefixed,
30377
- name: prefixed,
30378
- ...(isReadonlyCodeEditor ? { mode: 'view' } : {}),
30379
- children: p.schema.interface?.children,
30380
- triggers: p.schema.interface?.triggers,
30381
- valueTransforms: p.schema.interface?.valueTransforms,
30382
- options: merge({}, p.schema.interface?.options, {
30383
- validations: p.validations?.map((c) => ({
30384
- rule: c.rule,
30385
- message: c.message,
30386
- options: c.options,
30387
- })),
30388
- // Attach dataPath for merged properties to be available in widgets/options if needed
30389
- dataPath: p.__dataPath,
30390
- },
30391
- // Only set disabled if property doesn't have its own disabled option
30392
- hasOwnDisabled ? {} : { disabled: !isEditable }),
30403
+ children: visibleProperties.map((p) => {
30404
+ const layout = getPropertyLayout(p.name, p);
30405
+ const viewProp = singleInterface?.properties?.find((vp) => vp.name === p.name);
30406
+ const prefixed = resolveEntityPropertyBindPath(p.name, viewProp?.dataPath, p.__dataPath);
30407
+ // Check if property is editable (exists in update interface)
30408
+ const isEditable = p.__isEditable != null
30409
+ ? p.__isEditable
30410
+ : editablePropertyNames.has(p.name);
30411
+ // Check if property has its own disabled option
30412
+ const hasOwnDisabled = p.schema.interface?.options?.disabled !== undefined;
30413
+ let formFieldVisible;
30414
+ const sv = p.schema?.visible;
30415
+ // Template strings are evaluated by `AXPExpressionEvaluatorService` in the widget renderer, not here.
30416
+ if (typeof sv === 'string') {
30417
+ formFieldVisible = sv;
30418
+ }
30419
+ else if (sv === false) {
30420
+ formFieldVisible = false;
30421
+ }
30422
+ const interfaceType = p.schema.interface?.type ?? '';
30423
+ const isReadonlyCodeEditor = interfaceType === 'code-editor' &&
30424
+ (p.schema?.readonly === true ||
30425
+ p.schema.interface?.options?.readOnly === true ||
30426
+ !isEditable);
30427
+ return {
30428
+ type: 'form-field',
30429
+ options: {
30430
+ label: p.title,
30431
+ showLabel: layout?.label?.visible ?? true,
30432
+ ...toAxpGridItemWidgetOptions(layout),
30433
+ ...(formFieldVisible !== undefined ? { visible: formFieldVisible } : {}),
30434
+ ...(hintFormFieldOptionsFromDescription(p.description) ?? {}),
30393
30435
  },
30394
- ],
30395
- };
30396
- }),
30397
- },
30398
- ],
30399
- },
30400
- ],
30401
- }))),
30436
+ children: [
30437
+ {
30438
+ type: interfaceType,
30439
+ path: prefixed,
30440
+ name: prefixed,
30441
+ ...(isReadonlyCodeEditor ? { mode: 'view' } : {}),
30442
+ children: p.schema.interface?.children,
30443
+ triggers: p.schema.interface?.triggers,
30444
+ valueTransforms: p.schema.interface?.valueTransforms,
30445
+ options: merge({}, p.schema.interface?.options, {
30446
+ validations: p.validations?.map((c) => ({
30447
+ rule: c.rule,
30448
+ message: c.message,
30449
+ options: c.options,
30450
+ })),
30451
+ // Attach dataPath for merged properties to be available in widgets/options if needed
30452
+ dataPath: p.__dataPath,
30453
+ },
30454
+ // Only set disabled if property doesn't have its own disabled option
30455
+ hasOwnDisabled ? {} : { disabled: !isEditable }),
30456
+ },
30457
+ ],
30458
+ };
30459
+ }),
30460
+ },
30461
+ ],
30462
+ },
30463
+ ],
30464
+ };
30465
+ })),
30402
30466
  },
30403
30467
  ],
30404
30468
  };
@@ -31889,7 +31953,7 @@ const AXPCrudModifier = {
31889
31953
  const parentKey = ctx.parentKey.get();
31890
31954
  const request = parentKey != null ? applyHierarchicalRootListFilter(e, parentKey) : e;
31891
31955
  const result = await queryService.fetch(ENTITY_QUERY_DEFAULT, { entity: entityKey, ...request });
31892
- console.log('event', e);
31956
+ console.log('event', entityKey, e);
31893
31957
  if (result && !result.success) {
31894
31958
  throw AXPRequestError.fromCommandResult(result);
31895
31959
  }
@@ -32312,7 +32376,7 @@ class AXPEntityModule {
32312
32376
  },
32313
32377
  {
32314
32378
  key: 'Entity:Bulk',
32315
- command: () => import('./acorex-platform-framework-client-layout-entity-bulk-entity.command-BZECKfez.mjs').then((c) => c.AXPBulkEntityCommand),
32379
+ command: () => import('./acorex-platform-framework-client-layout-entity-bulk-entity.command-DITHE0f6.mjs').then((c) => c.AXPBulkEntityCommand),
32316
32380
  },
32317
32381
  {
32318
32382
  key: 'Entity:OpenList',
@@ -32473,7 +32537,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
32473
32537
  },
32474
32538
  {
32475
32539
  key: 'Entity:Bulk',
32476
- command: () => import('./acorex-platform-framework-client-layout-entity-bulk-entity.command-BZECKfez.mjs').then((c) => c.AXPBulkEntityCommand),
32540
+ command: () => import('./acorex-platform-framework-client-layout-entity-bulk-entity.command-DITHE0f6.mjs').then((c) => c.AXPBulkEntityCommand),
32477
32541
  },
32478
32542
  {
32479
32543
  key: 'Entity:OpenList',
@@ -32799,4 +32863,4 @@ function detectEntityChanges(oldObj, newObj) {
32799
32863
  */
32800
32864
 
32801
32865
  export { AXPEntityListViewModelResolver as $, AXPEntityDefinitionRegistryService as A, AXPEntityCategoryWidgetViewComponent as B, AXPEntityCommandTriggerViewModel as C, AXPEntityCreateViewElementViewModel as D, AXPEntityCreateViewModelFactory as E, AXPEntityCreateViewSectionViewModel as F, AXPEntityDataProvider as G, AXPEntityDataProviderImpl as H, AXPEntityDataSelectorRowActionsService as I, AXPEntityDataSelectorService as J, AXPEntityDefinitionProviderWidget as K, AXPEntityDefinitionProviderWidgetEditComponent as L, AXPEntityDeletePerformService as M, AXPEntityDetailListViewModel as N, AXPEntityDetailPopoverComponent as O, AXPEntityDetailPopoverService as P, AXPEntityDetailViewModelFactory as Q, AXPEntityDetailViewModelResolver as R, AXPEntityEventDispatcherService as S, AXPEntityFormBuilderService as T, AXPEntityLifecycleHookKeys as U, AXPEntityListPersistenceModeDefault as V, AXPEntityListTableService as W, AXPEntityListToolbarService as X, AXPEntityListViewCardFieldViewModel as Y, AXPEntityListViewColumnViewModel as Z, AXPEntityListViewModelFactory as _, showOperationResultToast as a, AXP_CATEGORY_TREE_ROOT_TITLE_I18N_KEY as a$, AXPEntityListWidget as a0, AXPEntityListWidgetViewComponent as a1, AXPEntityMasterCreateViewModel as a2, AXPEntityMasterListCardSelectActionName as a3, AXPEntityMasterListViewModel as a4, AXPEntityMasterListViewQueryViewModel as a5, AXPEntityMasterSingleElementViewModel as a6, AXPEntityMasterSingleViewGroupViewModel as a7, AXPEntityMasterSingleViewModel as a8, AXPEntityMasterUpdateElementViewModel as a9, AXPLookupWidgetViewComponent as aA, AXPMiddlewareAbortError as aB, AXPMiddlewareEntityStorageService as aC, AXPMultiSourceDefinitionProviderContext as aD, AXPMultiSourceDefinitionProviderService as aE, AXPMultiSourceFederatedSearchService as aF, AXPMultiSourceSelectorComponent as aG, AXPMultiSourceSelectorService as aH, AXPMultiSourceSelectorWidget as aI, AXPMultiSourceSelectorWidgetColumnComponent as aJ, AXPMultiSourceSelectorWidgetEditComponent as aK, AXPMultiSourceSelectorWidgetViewComponent as aL, AXPMultiSourceType as aM, AXPOpenEntityDetailsCommand as aN, AXPOpenEntityListCommand as aO, AXPRelatedColumnEnrichmentService as aP, AXPRelatedColumnMetadataResolver as aQ, AXPSelectorStructureWidget as aR, AXPSelectorStructureWidgetColumnComponent as aS, AXPSelectorStructureWidgetEditComponent as aT, AXPSelectorStructureWidgetViewComponent as aU, AXPShowFileUploaderPopupCommand as aV, AXPTruncatedBreadcrumbComponent as aW, AXPUpdateEntityCommand as aX, AXPUpdateEntityStatusCommand as aY, AXPViewEntityDetailsCommand as aZ, AXP_APPEARANCE_SECTION_ORDER as a_, AXPEntityMasterUpdateViewModel as aa, AXPEntityMasterUpdateViewModelFactory as ab, AXPEntityMiddlewareSkipContext as ac, AXPEntityModule as ad, AXPEntityPreloadFiltersContainerComponent as ae, AXPEntityPreloadFiltersViewModel as af, AXPEntityPreloadFiltersViewModelResolver as ag, AXPEntityResolver as ah, AXPEntityRuntimeAccessorService as ai, AXPEntityService as aj, AXPEntityStorageService as ak, AXPEntityUpdateViewSectionViewModel as al, AXPFileListComponent as am, AXPFileUploaderLoadFilesQuery as an, AXPFileUploaderSaveFilesCommand as ao, AXPFileUploaderWidget as ap, AXPFileUploaderWidgetColumnComponent as aq, AXPFileUploaderWidgetEditComponent as ar, AXPFileUploaderWidgetService as as, AXPFileUploaderWidgetViewComponent as at, AXPGetEntityDetailsQuery as au, AXPLayoutOrderingConfigService as av, AXPLookupByKeyCacheService as aw, AXPLookupWidget as ax, AXPLookupWidgetColumnComponent as ay, AXPLookupWidgetEditComponent as az, buildSelectedIdsFilter as b, defaultSortPresetsMiddlewareProvider as b$, AXP_CLASSIFICATION_SECTION_ORDER as b0, AXP_CLIENT_LOCAL_DEFAULT_MAX_ITEMS as b1, AXP_CLIENT_LOCAL_PLUGIN_NAME as b2, AXP_DATA_SEEDER_TOKEN as b3, AXP_ENTITY_ACTION_PLUGIN as b4, AXP_ENTITY_CONFIG_TOKEN as b5, AXP_ENTITY_DEFINITION_LOADER as b6, AXP_ENTITY_MIDDLEWARE as b7, AXP_ENTITY_MODIFIER as b8, AXP_ENTITY_STORAGE_MIDDLEWARE as b9, axpShowFileUploaderPopupCommandDefinition as bA, axpUpdateEntityStatusCommandDefinition as bB, buildDataSourceTraceSnapshot as bC, canPersistEntityListState as bD, clientLocalPlugin as bE, cloneLayoutArrays as bF, columnOrderingMiddleware as bG, columnOrderingMiddlewareProvider as bH, columnWidthMiddleware as bI, columnWidthMiddlewareProvider as bJ, committedAttachments as bK, composeEntityMiddlewares as bL, composeEntityStorageMiddlewares as bM, computeEntityAggregates as bN, configureEntityListColumnsSettingsMigrateDrop as bO, configureEntityListColumnsSettingsVersion as bP, createColumnOrderingMiddlewareProvider as bQ, createEntityCardDisplayScope as bR, createEntityCardLogicScope as bS, createEntityMiddlewareContext as bT, createEntityStorageContext as bU, createLayoutOrderingMiddlewareProvider as bV, defaultCardLayoutMiddleware as bW, defaultCardLayoutMiddlewareProvider as bX, defaultMultiLanguageMiddleware as bY, defaultMultiLanguageMiddlewareProvider as bZ, defaultSortPresetsMiddleware as b_, AXP_LOOKUP_FILTER_DEFAULT_OPERATOR as ba, AXP_MULTI_SOURCE_DEFINITION_PROVIDER as bb, DEFAULT_COLUMN_ORDER as bc, DEFAULT_PAIR_SPAN_RULES as bd, DEFAULT_PROPERTY_ORDER as be, DEFAULT_SECTION_ORDER as bf, ENTITY_FORM_ACTION_FIRST_STEP_CONTINUE as bg, ENTITY_LIST_LAYOUT_META as bh, ENTITY_LIST_ROUTE_CONTEXT_SESSION_KEY as bi, ENTITY_MASTER_LIST_TRACE_NS as bj, EntityBuilder as bk, EntityDataAccessor as bl, GALLERY_PAGE_COMPONENT_KEY as bm, TREE_CHILDREN_QUERY_TAKE as bn, actionExists as bo, applyDataSourcePagingWithoutLoad as bp, attachmentFieldCount as bq, attachmentNeedsHydration as br, attachmentsPlugin as bs, attachmentsSemanticallyEqual as bt, axpBuildEntityListPageContextSnapshot as bu, axpCreateEntityAiToolInputDefaults as bv, axpCreateEntityCommandDefinition as bw, axpDeleteEntityCommandDefinition as bx, axpOpenEntityListCommandDefinition as by, axpRunEntityListPageContextAction as bz, ATTACHMENTS_PAGE_COMPONENT_KEY as c, provideLocalEntityCatalog as c$, detectEntityChanges as c0, dispatchEntityModifiedSideEffects as c1, ensureHierarchicalRootFilter as c2, ensureLayoutPropertyView as c3, ensureLayoutSection as c4, ensureListActions as c5, entityCreateBridgeMiddleware as c6, entityDeleteBridgeMiddleware as c7, entityGetOneBridgeMiddleware as c8, entityListInstanceCurrentViewPath as c9, hasFileUploaderTitleOrDescriptionFields as cA, hydrateAttachmentFieldToFileList as cB, isAXPMiddlewareAbortError as cC, isAttachmentFieldPresentOnRow as cD, isAttachmentListEntry as cE, isAttachmentStorageRef as cF, isCategoryEntity as cG, isCategoryFilter as cH, isFileListItem as cI, isFileUploaderEditDialogAuto as cJ, isLegacyEntityDataSelectorOptions as cK, layoutOrderingMiddlewareFactory as cL, layoutOrderingMiddlewareProvider as cM, mapEntityStorageErrorToCommandResult as cN, mapLegacyEntityDataSelectorOptions as cO, mergeEntityListViewAndPersistedFilters as cP, normalizeEntityCardHeaderDisplayValue as cQ, normalizeEntityDataSelectorColumnSpecs as cR, normalizeEntityDataSelectorOptions as cS, normalizeEntityFieldToFileList as cT, normalizeEntityListPersistenceMode as cU, normalizeListPaging as cV, prefetchClientLocalRelated as cW, provideEntity as cX, provideEntityMiddlewareBridge as cY, provideEntityRealtimeHandlers as cZ, provideEntityStorageMiddlewareBridge as c_, entityListInstanceFilterPath as ca, entityListStylingRulesPath as cb, entityQueryBridgeMiddleware as cc, entityStorageCreateBridgeMiddleware as cd, entityStorageDeleteBridgeMiddleware as ce, entityStorageGetOneBridgeMiddleware as cf, entityStorageQueryBridgeMiddleware as cg, entityStorageUpdateBridgeMiddleware as ch, entityUpdateBridgeMiddleware as ci, eventDispatchMiddleware as cj, filterEntityMiddlewares as ck, filterEntityStorageMiddlewares as cl, filterSortEntityRows as cm, filterTouchesParentKey as cn, findEntityListRowDataInTree as co, fingerprintAttachmentItem as cp, fingerprintAttachments as cq, fireEntityLifecycleHook as cr, formatLookupItemDisplay as cs, formatLookupItemDisplayAsync as ct, galleryPlugin as cu, getDataSourcePageIndex as cv, getEntityListColumnsSettingsMigrateDrop as cw, getEntityListColumnsSettingsVersion as cx, getEntityListRowId as cy, getMasterInterfacePropertySortKey as cz, AXMEntityCrudService as d, readPersistedEntityListInstanceCurrentView as d0, readPersistedEntityListInstanceFilters as d1, readPersistedEntityListStylingRules as d2, resetPagingForTreeChildrenLoad as d3, resolveAttachmentFieldPath as d4, resolveEntityCardBadgeColorValue as d5, resolveEntityCardHeaderValue as d6, resolveEntityMasterFieldStylingClass as d7, resolveEntityMasterRecordStylingClass as d8, resolveEntityMasterStylingClass as d9, resolveEntityPluginDetailPageOrder as da, resolveFileUploaderEditDialog as db, resolveFileUploaderEntityScope as dc, resolveLookupDisplayField as dd, resolveLookupDisplayTemplate as de, resolveLookupEntityCacheKey as df, resolveLookupEntityKey as dg, resolveMasterInterfacePropertyOrder as dh, restoreEntityListExpandedRows as di, runEntityMiddlewarePipeline as dj, runEntityQuery as dk, runEntityStorageMiddlewarePipeline as dl, searchResultDescriptionMiddleware as dm, searchResultDescriptionMiddlewareProvider as dn, shouldLoadEntityListStateFromStorage as dp, shouldResetEntityListStateOnRouteEntry as dq, traceEntityMasterList as dr, AXMEntityCrudServiceImpl as e, AXPCategoryTreeService as f, AXPClientLocalPluginModule as g, AXPCreateEntityCommand as h, AXPDataSeederService as i, AXPDeleteEntityCommand as j, AXPDomainQueryEntityDefinitionLoader as k, AXPEditFileUploaderCommand as l, AXPEntityBulkPatchPerformService as m, newBulkExecutionId as n, AXPEntityCardComponent as o, persistedAttachments as p, AXPEntityCardFieldsResolver as q, resolveBulkFailureBody as r, settleAfterLoadingDialog as s, AXPEntityCardSelectActionName as t, AXPEntityCardSkeletonComponent as u, AXPEntityCategoryTreeSelectorComponent as v, watchBulkProgress as w, AXPEntityCategoryWidget as x, AXPEntityCategoryWidgetColumnComponent as y, AXPEntityCategoryWidgetEditComponent as z };
32802
- //# sourceMappingURL=acorex-platform-framework-client-layout-entity-acorex-platform-framework-client-layout-entity-Cmzwhmjw.mjs.map
32866
+ //# sourceMappingURL=acorex-platform-framework-client-layout-entity-acorex-platform-framework-client-layout-entity-jeOx-Rb8.mjs.map