@acorex/platform 20.9.26 → 20.9.28

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@acorex/platform",
3
- "version": "20.9.26",
3
+ "version": "20.9.28",
4
4
  "peerDependencies": {
5
5
  "@acorex/cdk": "^19.0.0 || ^20.0.0 || ^22.0.0-next.0 || ^22.0.0-next.0",
6
6
  "@acorex/core": "^19.0.0 || ^20.0.0 || ^22.0.0-next.0 || ^22.0.0-next.0",
@@ -772,18 +772,25 @@ interface AXPLookupWidgetOptions {
772
772
  rowActions?: AXPLookupSelectorRowActionsConfig;
773
773
  }
774
774
 
775
- declare function entityMasterCreateAction(): AXPEntityAction;
776
- declare function entityMasterEditAction(): AXPEntityAction;
777
- declare function entityMasterBulkDeleteAction(): AXPEntityAction;
778
- declare function entityMasterViewAction(): AXPEntityAction;
779
- declare function entityMasterDeleteAction(): AXPEntityAction;
775
+ /** Optional permission keys applied to CRUD actions created by the helpers below. */
776
+ interface AXPEntityCrudActionPermissions {
777
+ create?: string[];
778
+ delete?: string[];
779
+ view?: string[];
780
+ edit?: string[];
781
+ }
782
+ declare function entityMasterCreateAction(permissions?: string[]): AXPEntityAction;
783
+ declare function entityMasterEditAction(permissions?: string[]): AXPEntityAction;
784
+ declare function entityMasterBulkDeleteAction(permissions?: string[]): AXPEntityAction;
785
+ declare function entityMasterViewAction(permissions?: string[]): AXPEntityAction;
786
+ declare function entityMasterDeleteAction(permissions?: string[]): AXPEntityAction;
780
787
  declare function entityMasterCrudActions(options?: {
781
788
  create?: boolean;
782
789
  delete?: boolean;
783
790
  view?: boolean;
784
791
  edit?: boolean;
785
- }): AXPEntityAction[];
786
- declare function entityMasterRecordActions(): AXPEntityAction[];
792
+ }, permissions?: AXPEntityCrudActionPermissions): AXPEntityAction[];
793
+ declare function entityMasterRecordActions(permissions?: string[]): AXPEntityAction[];
787
794
  declare function entityDetailsCreateActions(parentId: string): AXPEntityAction;
788
795
  declare function entityDetailsCreateActionsDeferredParent(): AXPEntityAction;
789
796
  declare function mergeForeignKeyFieldIntoCreateActions(foreignKeyField: string | undefined, actions: AXPEntityAction[] | undefined): AXPEntityAction[];
@@ -801,6 +808,15 @@ declare function entityDetailsCrudActions(parentId?: string, options?: {
801
808
  }): AXPEntityAction[];
802
809
  declare function entityDetailsReferenceCreateActions(type: string): AXPEntityAction[];
803
810
 
811
+ /**
812
+ * Returns whether an entity action is permitted for the current session.
813
+ * Empty / missing `permissions` keeps the action visible (migration-safe).
814
+ * When keys are present, all must pass (AND), matching {@link AXPSessionService.authorize}.
815
+ */
816
+ declare function isEntityActionPermitted(action: {
817
+ permissions?: string[] | null;
818
+ }, authorize: (...keys: string[]) => boolean): boolean;
819
+
804
820
  /**
805
821
  * Normalizes display templates before expression evaluation.
806
822
  * Converts simple dot paths (e.g. `{{ position.title }}`) to `context.eval("position.title")`.
@@ -987,5 +1003,5 @@ declare const AXPEntityEventsKeys: {
987
1003
  readonly REFRESH_DATA: "entity:refresh-data";
988
1004
  };
989
1005
 
990
- export { AXPEntityCommandScope, AXPEntityDataSourceKeys, AXPEntityEventsKeys, AXPEntityQueryType, AXPEntityType, AXPRelationshipCardinality, AXPRelationshipKind, AXP_RECORD_WORKFLOW_INFO_CORRELATION_ID_FIELD, AXP_RECORD_WORKFLOW_INFO_DEFINITION_ID_FIELD, AXP_RECORD_WORKFLOW_INFO_INSTANCE_ID_FIELD, ENTITY_LAYOUT_SINGLE_TITLE_PATH, ENTITY_ROW_POPUP_TITLE_OPTION, ENTITY_ROW_TITLE_TEMPLATE_OPTION, PAGE_LIST_WIDGET_NAME_PREFIX, buildAXPRecordWorkflowInfo, buildEntitySearchTitleContext, buildPageListTableWidgetId, buildPageListWidgetName, collectEntityListFilterDefinitions, collectEntityListSortableFields, collectEntityQuickSearchFieldPaths, collectMergeDetailListPropertyNames, collectNestedCreateHiddenProperties, collectNestedFieldPathsFromEntityColumns, collectPropertyExposeTargetPaths, collectQuickSearchPathsFromSingleEntityDefinition, createAllQueryView, createQueryView, encodeEntityListFilterContextField, entityDetailsCreateActions, entityDetailsCreateActionsDeferredParent, entityDetailsCrudActions, entityDetailsEditAction, entityDetailsNewEditAction, entityDetailsReferenceCondition, entityDetailsReferenceCreateActions, entityDetailsSimpleCondition, entityMasterBulkDeleteAction, entityMasterCreateAction, entityMasterCrudActions, entityMasterDeleteAction, entityMasterEditAction, entityMasterRecordActions, entityMasterViewAction, entityOverrideDetailsViewAction, getEntityInfo, getRecordWorkflowCorrelationId, getRecordWorkflowInstanceId, isCardFieldBadgeDisplay, isEntityPropertySortEnabled, isMeaningfulEntityDisplayTitle, isPageListWidgetName, isRowBoundEntityDisplayTemplate, isUnresolvedEntityDisplayTemplate, mergeForeignKeyFieldIntoCreateActions, normalizeEntityDisplayTemplate, normalizeExpressionTemplate, parseDottedFieldPath, parsePropertyExposeEntries, parseRelatedEntityFullName, resolveCardFieldBadgeColor, resolveDefaultMasterListLayout, resolveEnabledMasterListLayouts, resolveEntityColumnDataPath, resolveEntityListFilterContextField, resolveEntityListFilterQueryField, resolveEntityModifyRecordTitleTemplate, resolveEntityPropertyInlineFilterField, resolveEntityRowTitleTemplate, resolveLookupWidgetCreateOptions, resolvePropertyExposeDisplayTarget, sanitizeResolvedEntityDisplayTitle };
991
- export type { AXEntityPropertyWidget, AXPAggregate, AXPApplication, AXPAuditEvent, AXPBuildEntityListFilterDefinitionsDeps, AXPCardBadgeColor, AXPCardBadgeDisplay, AXPCardBadgeDisplayOptions, AXPCardField, AXPCardFieldDisplay, AXPCardFieldDisplayConfig, AXPCollectEntityQuickSearchPathsResolver, AXPColumnAlign, AXPColumnContentAlign, AXPCommandActionCallback, AXPCommandActionDisplay, AXPCommandActionLook, AXPCommandActionPriority, AXPCommandActionType, AXPEntity, AXPEntityAction, AXPEntityAggregateMeasure, AXPEntityAggregateOptions, AXPEntityAggregateReducerType, AXPEntityAggregateRequest, AXPEntityAggregateResult, AXPEntityCategoryPlugin, AXPEntityCommand, AXPEntityCreateDto, AXPEntityDetailDto, AXPEntityDetailListView, AXPEntityDisplayField, AXPEntityFormats, AXPEntityListFilterDefinition, AXPEntityListItemDto, AXPEntityListSortableField, AXPEntityMasterCreateLayoutView, AXPEntityMasterLayoutView, AXPEntityMasterListDisplayMode, AXPEntityMasterListLayoutOption, AXPEntityMasterListLayoutType, AXPEntityMasterListView, AXPEntityMasterSingleLayoutView, AXPEntityMasterUpdateLayoutView, AXPEntityModel, AXPEntityOutputDto, AXPEntityPage, AXPEntityProperty, AXPEntityPropertyCreateView, AXPEntityPropertyExposeEntry, AXPEntityPropertyFilterOptions, AXPEntityPropertyGroup, AXPEntityPropertyLayoutConfig, AXPEntityPropertyLike, AXPEntityPropertyListOptions, AXPEntityPropertySortOptions, AXPEntityPropertyUpdateView, AXPEntityPropertyView, AXPEntityQuery, AXPEntityQueryAllOptions, AXPEntityQueryAllResult, AXPEntityQuickCreate, AXPEntitySearchResultFormat, AXPEntitySearchTitleContext, AXPEntitySectionView, AXPEntityTableColumn, AXPEntityUpdateDto, AXPEntityV2, AXPEntityVersionHistory, AXPLookupColumnResolveOptions, AXPLookupColumnResolveStrategy, AXPLookupDisplayOptions, AXPLookupPopoverOptions, AXPLookupSelectorRowActionsConfig, AXPLookupWidgetCreateOptions, AXPLookupWidgetLookType, AXPLookupWidgetOptions, AXPMockDto, AXPModule, AXPQueryFilter, AXPQuerySort, AXPQueryView, AXPRecordAuditInfo, AXPRecordOwnershipInfo, AXPRecordStateInfo, AXPRecordWorkflowInfo, AXPRelatedEntity, AXPRelatedEntityLayout, AXPRelatedEntityPersistence, AXPRelationship, ResolvedLookupCreateOptions };
1006
+ export { AXPEntityCommandScope, AXPEntityDataSourceKeys, AXPEntityEventsKeys, AXPEntityQueryType, AXPEntityType, AXPRelationshipCardinality, AXPRelationshipKind, AXP_RECORD_WORKFLOW_INFO_CORRELATION_ID_FIELD, AXP_RECORD_WORKFLOW_INFO_DEFINITION_ID_FIELD, AXP_RECORD_WORKFLOW_INFO_INSTANCE_ID_FIELD, ENTITY_LAYOUT_SINGLE_TITLE_PATH, ENTITY_ROW_POPUP_TITLE_OPTION, ENTITY_ROW_TITLE_TEMPLATE_OPTION, PAGE_LIST_WIDGET_NAME_PREFIX, buildAXPRecordWorkflowInfo, buildEntitySearchTitleContext, buildPageListTableWidgetId, buildPageListWidgetName, collectEntityListFilterDefinitions, collectEntityListSortableFields, collectEntityQuickSearchFieldPaths, collectMergeDetailListPropertyNames, collectNestedCreateHiddenProperties, collectNestedFieldPathsFromEntityColumns, collectPropertyExposeTargetPaths, collectQuickSearchPathsFromSingleEntityDefinition, createAllQueryView, createQueryView, encodeEntityListFilterContextField, entityDetailsCreateActions, entityDetailsCreateActionsDeferredParent, entityDetailsCrudActions, entityDetailsEditAction, entityDetailsNewEditAction, entityDetailsReferenceCondition, entityDetailsReferenceCreateActions, entityDetailsSimpleCondition, entityMasterBulkDeleteAction, entityMasterCreateAction, entityMasterCrudActions, entityMasterDeleteAction, entityMasterEditAction, entityMasterRecordActions, entityMasterViewAction, entityOverrideDetailsViewAction, getEntityInfo, getRecordWorkflowCorrelationId, getRecordWorkflowInstanceId, isCardFieldBadgeDisplay, isEntityActionPermitted, isEntityPropertySortEnabled, isMeaningfulEntityDisplayTitle, isPageListWidgetName, isRowBoundEntityDisplayTemplate, isUnresolvedEntityDisplayTemplate, mergeForeignKeyFieldIntoCreateActions, normalizeEntityDisplayTemplate, normalizeExpressionTemplate, parseDottedFieldPath, parsePropertyExposeEntries, parseRelatedEntityFullName, resolveCardFieldBadgeColor, resolveDefaultMasterListLayout, resolveEnabledMasterListLayouts, resolveEntityColumnDataPath, resolveEntityListFilterContextField, resolveEntityListFilterQueryField, resolveEntityModifyRecordTitleTemplate, resolveEntityPropertyInlineFilterField, resolveEntityRowTitleTemplate, resolveLookupWidgetCreateOptions, resolvePropertyExposeDisplayTarget, sanitizeResolvedEntityDisplayTitle };
1007
+ export type { AXEntityPropertyWidget, AXPAggregate, AXPApplication, AXPAuditEvent, AXPBuildEntityListFilterDefinitionsDeps, AXPCardBadgeColor, AXPCardBadgeDisplay, AXPCardBadgeDisplayOptions, AXPCardField, AXPCardFieldDisplay, AXPCardFieldDisplayConfig, AXPCollectEntityQuickSearchPathsResolver, AXPColumnAlign, AXPColumnContentAlign, AXPCommandActionCallback, AXPCommandActionDisplay, AXPCommandActionLook, AXPCommandActionPriority, AXPCommandActionType, AXPEntity, AXPEntityAction, AXPEntityAggregateMeasure, AXPEntityAggregateOptions, AXPEntityAggregateReducerType, AXPEntityAggregateRequest, AXPEntityAggregateResult, AXPEntityCategoryPlugin, AXPEntityCommand, AXPEntityCreateDto, AXPEntityCrudActionPermissions, AXPEntityDetailDto, AXPEntityDetailListView, AXPEntityDisplayField, AXPEntityFormats, AXPEntityListFilterDefinition, AXPEntityListItemDto, AXPEntityListSortableField, AXPEntityMasterCreateLayoutView, AXPEntityMasterLayoutView, AXPEntityMasterListDisplayMode, AXPEntityMasterListLayoutOption, AXPEntityMasterListLayoutType, AXPEntityMasterListView, AXPEntityMasterSingleLayoutView, AXPEntityMasterUpdateLayoutView, AXPEntityModel, AXPEntityOutputDto, AXPEntityPage, AXPEntityProperty, AXPEntityPropertyCreateView, AXPEntityPropertyExposeEntry, AXPEntityPropertyFilterOptions, AXPEntityPropertyGroup, AXPEntityPropertyLayoutConfig, AXPEntityPropertyLike, AXPEntityPropertyListOptions, AXPEntityPropertySortOptions, AXPEntityPropertyUpdateView, AXPEntityPropertyView, AXPEntityQuery, AXPEntityQueryAllOptions, AXPEntityQueryAllResult, AXPEntityQuickCreate, AXPEntitySearchResultFormat, AXPEntitySearchTitleContext, AXPEntitySectionView, AXPEntityTableColumn, AXPEntityUpdateDto, AXPEntityV2, AXPEntityVersionHistory, AXPLookupColumnResolveOptions, AXPLookupColumnResolveStrategy, AXPLookupDisplayOptions, AXPLookupPopoverOptions, AXPLookupSelectorRowActionsConfig, AXPLookupWidgetCreateOptions, AXPLookupWidgetLookType, AXPLookupWidgetOptions, AXPMockDto, AXPModule, AXPQueryFilter, AXPQuerySort, AXPQueryView, AXPRecordAuditInfo, AXPRecordOwnershipInfo, AXPRecordStateInfo, AXPRecordWorkflowInfo, AXPRelatedEntity, AXPRelatedEntityLayout, AXPRelatedEntityPersistence, AXPRelationship, ResolvedLookupCreateOptions };
@@ -372,6 +372,7 @@ declare class AXPEntityCommandTriggerViewModel {
372
372
  metadata?: AXPMetaData;
373
373
  default?: boolean;
374
374
  shortcuts?: string[];
375
+ permissions?: string[];
375
376
  items?: AXPEntityCommandTriggerViewModel[];
376
377
  isChild?: boolean;
377
378
  constructor(entity: AXPEntity, action: AXPEntityAction, isChild?: boolean);
@@ -417,6 +418,7 @@ declare class AXPEntityDetailListViewModel {
417
418
  private expressionEvaluator;
418
419
  private queryExecutor;
419
420
  private readonly settingsService;
421
+ private readonly session;
420
422
  private readonly destroyed;
421
423
  private readonly showRowIndexColumnEnabled;
422
424
  private lastAppliedFilterKey;
@@ -2632,6 +2634,7 @@ declare class AXPEntityListTableService {
2632
2634
  private readonly expressionEvaluator;
2633
2635
  private readonly settings;
2634
2636
  private readonly columnWidthService;
2637
+ private readonly session;
2635
2638
  /**
2636
2639
  * Convert Entity to List Widget Options
2637
2640
  */
@@ -2736,6 +2739,7 @@ declare class AXPEntityListWidgetViewComponent extends AXPValueWidgetComponent {
2736
2739
  private readonly expressionEvaluator;
2737
2740
  private readonly columnWidthService;
2738
2741
  private readonly route;
2742
+ private readonly session;
2739
2743
  protected isMounted: _angular_core.WritableSignal<boolean>;
2740
2744
  readonly entity: _angular_core.WritableSignal<AXPEntity | null>;
2741
2745
  protected listNode: _angular_core.WritableSignal<AXPWidgetNode | null>;
@@ -29,7 +29,7 @@ import { AXPPropertyDefinition } from '@acorex/platform/domain-contracts';
29
29
  import { AXMediaViewerData } from '@acorex/components/media-viewer';
30
30
  import { AXFileService } from '@acorex/core/file';
31
31
  import * as _acorex_components_map from '@acorex/components/map';
32
- import { AXMapData, AXMapPolygon, AXPoiMarker } from '@acorex/components/map';
32
+ import { AXMapData, AXMapMarker, AXMapPolygon, AXMapPolyline, AXMapRectangle, AXMapCircle, AXPoiMarker } from '@acorex/components/map';
33
33
  import { AXQrcodeLevel, AXQrcodeOutputType } from '@acorex/components/qrcode';
34
34
  import { AXSchedulerPickerValue, AXSchedulerPickerSettings } from '@acorex/components/scheduler-picker';
35
35
  import { AXPaintContainerComponent, AXPaintViewComponent } from '@acorex/components/paint';
@@ -2823,12 +2823,18 @@ interface AXPOutcomeResultsViewerWidgetOptions {
2823
2823
  declare class AXPMapWidgetEditComponent extends AXPValueWidgetComponent<AXMapData | undefined> {
2824
2824
  #private;
2825
2825
  cdr: ChangeDetectorRef;
2826
- markers: _angular_core.Signal<_acorex_components_map.AXMapMarker[]>;
2826
+ markers: _angular_core.Signal<AXMapMarker[]>;
2827
2827
  polygons: _angular_core.Signal<AXMapPolygon[]>;
2828
+ polylines: _angular_core.Signal<AXMapPolyline[]>;
2829
+ rectangles: _angular_core.Signal<AXMapRectangle[]>;
2830
+ circles: _angular_core.Signal<AXMapCircle[]>;
2828
2831
  hasDraw: _angular_core.Signal<boolean>;
2829
2832
  hasLocate: _angular_core.Signal<boolean>;
2830
2833
  maxMarker: _angular_core.Signal<number>;
2831
2834
  maxPolygon: _angular_core.Signal<number>;
2835
+ maxPolyline: _angular_core.Signal<number>;
2836
+ maxRectangle: _angular_core.Signal<number>;
2837
+ maxCircle: _angular_core.Signal<number>;
2832
2838
  zoomLevel: _angular_core.Signal<number>;
2833
2839
  latitude: _angular_core.Signal<number>;
2834
2840
  longitude: _angular_core.Signal<number>;
@@ -2838,8 +2844,12 @@ declare class AXPMapWidgetEditComponent extends AXPValueWidgetComponent<AXMapDat
2838
2844
  pois: _angular_core.Signal<AXPoiMarker[]>;
2839
2845
  disabled: _angular_core.Signal<boolean>;
2840
2846
  readonly: _angular_core.Signal<boolean>;
2841
- onMarkerChanged($event: _acorex_components_map.AXMapMarker[]): void;
2842
- onPolygonChanged($event: _acorex_components_map.AXMapPolygon[]): void;
2847
+ onMarkerChanged($event: AXMapMarker[]): void;
2848
+ onPolygonChanged($event: AXMapPolygon[]): void;
2849
+ onPolylineChanged($event: AXMapPolyline[]): void;
2850
+ onRectangleChanged($event: AXMapRectangle[]): void;
2851
+ onCircleChanged($event: AXMapCircle[]): void;
2852
+ private mapData;
2843
2853
  constructor();
2844
2854
  private get __class();
2845
2855
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPMapWidgetEditComponent, never>;
@@ -2850,6 +2860,9 @@ declare class AXPMapWidgetViewComponent extends AXPValueWidgetComponent<AXMapDat
2850
2860
  #private;
2851
2861
  markers: _angular_core.Signal<_acorex_components_map.AXMapMarker[]>;
2852
2862
  polygons: _angular_core.Signal<_acorex_components_map.AXMapPolygon[]>;
2863
+ polylines: _angular_core.Signal<_acorex_components_map.AXMapPolyline[]>;
2864
+ rectangles: _angular_core.Signal<_acorex_components_map.AXMapRectangle[]>;
2865
+ circles: _angular_core.Signal<_acorex_components_map.AXMapCircle[]>;
2853
2866
  height: _angular_core.Signal<number>;
2854
2867
  zoomLevel: _angular_core.Signal<number>;
2855
2868
  latitude: _angular_core.Signal<number>;
@@ -1 +0,0 @@
1
- {"version":3,"file":"acorex-platform-layout-widgets-image-preview.popup-C_EPAvCU.mjs","sources":["../../../../libs/platform/layout/widgets/src/lib/widgets/advance/image/image-preview.popup.ts"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXBasePageComponent } from '@acorex/components/page';\n\nimport { Component } from '@angular/core';\n\n@Component({\n standalone: true,\n selector: 'axp-image-preview-popup',\n imports: [AXButtonModule],\n template: `\n <div class=\"ax-flex ax-justify-center ax-items-center ax-p-4\">\n <img [src]=\"src\" alt=\"Preview\" />\n </div>\n `,\n})\nexport class AXPImagePreviewPopupComponent extends AXBasePageComponent {\n src: string;\n}\n"],"names":[],"mappings":";;;;;AAeM,MAAO,6BAA8B,SAAQ,mBAAmB,CAAA;8GAAzD,6BAA6B,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAA7B,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,6BAA6B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,yBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAN9B;;;;AAIT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EALS,cAAc,EAAA,CAAA,EAAA,CAAA,CAAA;;2FAOb,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBAVzC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,yBAAyB;oBACnC,OAAO,EAAE,CAAC,cAAc,CAAC;AACzB,oBAAA,QAAQ,EAAE;;;;AAIT,EAAA,CAAA;AACF,iBAAA;;;;;"}