@acorex/platform 20.3.0-next.2 → 20.3.0-next.21
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/common/index.d.ts +403 -374
- package/core/index.d.ts +576 -46
- package/fesm2022/acorex-platform-auth.mjs +19 -19
- package/fesm2022/acorex-platform-auth.mjs.map +1 -1
- package/fesm2022/acorex-platform-common.mjs +152 -231
- package/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-core.mjs +657 -110
- package/fesm2022/acorex-platform-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-domain.mjs +16 -16
- package/fesm2022/acorex-platform-domain.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-builder.mjs +1946 -1947
- package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-components.mjs +2094 -477
- package/fesm2022/acorex-platform-layout-components.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-designer.mjs +96 -89
- package/fesm2022/acorex-platform-layout-designer.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity-create-entity.command-DyXF9zAh.mjs +52 -0
- package/fesm2022/acorex-platform-layout-entity-create-entity.command-DyXF9zAh.mjs.map +1 -0
- package/fesm2022/acorex-platform-layout-entity.mjs +1763 -1233
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-views.mjs +43 -33
- package/fesm2022/acorex-platform-layout-views.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-widget-core.mjs +2756 -0
- package/fesm2022/acorex-platform-layout-widget-core.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets-button-widget-designer.component-C2Qn1YAW.mjs → acorex-platform-layout-widgets-button-widget-designer.component-C_3IWNkj.mjs} +6 -6
- package/fesm2022/acorex-platform-layout-widgets-button-widget-designer.component-C_3IWNkj.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets-extra-properties-schema-widget-edit.component-D9mf08rU.mjs → acorex-platform-layout-widgets-extra-properties-schema-widget-edit.component-CJltEgut.mjs} +5 -5
- package/fesm2022/acorex-platform-layout-widgets-extra-properties-schema-widget-edit.component-CJltEgut.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets-extra-properties-schema-widget-view.component-D6GQ-eyr.mjs → acorex-platform-layout-widgets-extra-properties-schema-widget-view.component-pM-TIuk0.mjs} +5 -5
- package/fesm2022/acorex-platform-layout-widgets-extra-properties-schema-widget-view.component-pM-TIuk0.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets-extra-properties-values-widget-edit.component-DVbIdVZ6.mjs → acorex-platform-layout-widgets-extra-properties-values-widget-edit.component-BqI96-fU.mjs} +5 -5
- package/fesm2022/acorex-platform-layout-widgets-extra-properties-values-widget-edit.component-BqI96-fU.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets-extra-properties-values-widget-view.component-D-aM64Hu.mjs → acorex-platform-layout-widgets-extra-properties-values-widget-view.component-C-AhenaM.mjs} +5 -5
- package/fesm2022/acorex-platform-layout-widgets-extra-properties-values-widget-view.component-C-AhenaM.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets-extra-properties-widget-edit.component-em2-aU8E.mjs → acorex-platform-layout-widgets-extra-properties-widget-edit.component-DCAya5ne.mjs} +5 -5
- package/fesm2022/acorex-platform-layout-widgets-extra-properties-widget-edit.component-DCAya5ne.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets-extra-properties-widget-view.component-BeuIofdr.mjs → acorex-platform-layout-widgets-extra-properties-widget-view.component-D-PnBqLb.mjs} +5 -5
- package/fesm2022/acorex-platform-layout-widgets-extra-properties-widget-view.component-D-PnBqLb.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets-file-list-popup.component-rW2RD35f.mjs → acorex-platform-layout-widgets-file-list-popup.component-DuuFHWvB.mjs} +10 -10
- package/fesm2022/acorex-platform-layout-widgets-file-list-popup.component-DuuFHWvB.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets-page-widget-designer.component-DNvnQ4Mc.mjs → acorex-platform-layout-widgets-page-widget-designer.component-Bss0xUcu.mjs} +8 -8
- package/fesm2022/acorex-platform-layout-widgets-page-widget-designer.component-Bss0xUcu.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets-tabular-data-edit-popup.component-CPVRbE8B.mjs → acorex-platform-layout-widgets-tabular-data-edit-popup.component-Cy9mHnNP.mjs} +14 -14
- package/fesm2022/acorex-platform-layout-widgets-tabular-data-edit-popup.component-Cy9mHnNP.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets-tabular-data-view-popup.component-Dmg5DdX8.mjs → acorex-platform-layout-widgets-tabular-data-view-popup.component-DznLtuer.mjs} +6 -5
- package/fesm2022/acorex-platform-layout-widgets-tabular-data-view-popup.component-DznLtuer.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets-text-block-widget-designer.component-yADN3Xji.mjs → acorex-platform-layout-widgets-text-block-widget-designer.component-ndOUSFi9.mjs} +6 -7
- package/fesm2022/acorex-platform-layout-widgets-text-block-widget-designer.component-ndOUSFi9.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets.mjs → acorex-platform-layout-widgets.mjs} +8836 -8103
- package/fesm2022/acorex-platform-layout-widgets.mjs.map +1 -0
- package/fesm2022/acorex-platform-native.mjs +7 -7
- package/fesm2022/acorex-platform-native.mjs.map +1 -1
- package/fesm2022/acorex-platform-runtime.mjs +40 -40
- package/fesm2022/acorex-platform-runtime.mjs.map +1 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-Fnj54AxV.mjs +115 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-Fnj54AxV.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-C60W6UnN.mjs +753 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-C60W6UnN.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-B3NyKGIG.mjs +101 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-B3NyKGIG.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-default-entity-master-single-view.component-BExtm1JE.mjs → acorex-platform-themes-default-entity-master-single-view.component-B8gx5cG7.mjs} +17 -17
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-B8gx5cG7.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-default-error-401.component-DrO1PEOH.mjs → acorex-platform-themes-default-error-401.component-CcvGfdhu.mjs} +4 -4
- package/fesm2022/{acorex-platform-themes-default-error-401.component-DrO1PEOH.mjs.map → acorex-platform-themes-default-error-401.component-CcvGfdhu.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-themes-default-error-404.component-DqVq0oHX.mjs → acorex-platform-themes-default-error-404.component-4-CaEsnV.mjs} +4 -4
- package/fesm2022/{acorex-platform-themes-default-error-404.component-DqVq0oHX.mjs.map → acorex-platform-themes-default-error-404.component-4-CaEsnV.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-themes-default-error-offline.component-Bt2PTL7_.mjs → acorex-platform-themes-default-error-offline.component-BNecbFEj.mjs} +4 -4
- package/fesm2022/{acorex-platform-themes-default-error-offline.component-Bt2PTL7_.mjs.map → acorex-platform-themes-default-error-offline.component-BNecbFEj.mjs.map} +1 -1
- package/fesm2022/acorex-platform-themes-default.mjs +45 -45
- package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
- package/fesm2022/{acorex-platform-themes-shared-icon-chooser-view.component-KpZWpnOJ.mjs → acorex-platform-themes-shared-icon-chooser-view.component-Dc_Txe32.mjs} +25 -15
- package/fesm2022/acorex-platform-themes-shared-icon-chooser-view.component-Dc_Txe32.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-shared-settings.provider-CXiRmniv.mjs → acorex-platform-themes-shared-settings.provider-DY2xFnrv.mjs} +9 -9
- package/fesm2022/acorex-platform-themes-shared-settings.provider-DY2xFnrv.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-shared-theme-color-chooser-column.component-BvOiVCgt.mjs → acorex-platform-themes-shared-theme-color-chooser-column.component-hgWLhhle.mjs} +24 -9
- package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-column.component-hgWLhhle.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-shared-theme-color-chooser-view.component-BW0rfkjk.mjs → acorex-platform-themes-shared-theme-color-chooser-view.component-CY3JZK_W.mjs} +24 -9
- package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-view.component-CY3JZK_W.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-shared.mjs +264 -86
- package/fesm2022/acorex-platform-themes-shared.mjs.map +1 -1
- package/fesm2022/acorex-platform-workflow.mjs +27 -39
- package/fesm2022/acorex-platform-workflow.mjs.map +1 -1
- package/layout/builder/README.md +1577 -3
- package/layout/builder/index.d.ts +735 -814
- package/layout/components/index.d.ts +443 -214
- package/layout/designer/index.d.ts +8 -6
- package/layout/entity/index.d.ts +979 -282
- package/layout/views/index.d.ts +13 -13
- package/layout/widget-core/README.md +4 -0
- package/layout/widget-core/index.d.ts +957 -0
- package/layout/widgets/README.md +4 -0
- package/{widgets → layout/widgets}/index.d.ts +1908 -770
- package/package.json +22 -18
- package/themes/shared/index.d.ts +2 -2
- package/workflow/index.d.ts +3 -173
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-BXbkGGei.mjs +0 -115
- package/fesm2022/acorex-platform-themes-default-entity-master-create-view.component-BXbkGGei.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-X0hLRZhX.mjs +0 -708
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-X0hLRZhX.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-Bp1JLsj1.mjs +0 -101
- package/fesm2022/acorex-platform-themes-default-entity-master-modify-view.component-Bp1JLsj1.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-BExtm1JE.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-shared-icon-chooser-view.component-KpZWpnOJ.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-shared-settings.provider-CXiRmniv.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-column.component-BvOiVCgt.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-shared-theme-color-chooser-view.component-BW0rfkjk.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-button-widget-designer.component-C2Qn1YAW.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-checkbox-widget-column.component-CzEFmKWG.mjs +0 -84
- package/fesm2022/acorex-platform-widgets-checkbox-widget-column.component-CzEFmKWG.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-checkbox-widget-designer.component-JC_nYunG.mjs +0 -55
- package/fesm2022/acorex-platform-widgets-checkbox-widget-designer.component-JC_nYunG.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-checkbox-widget-view.component-C-4bWr9G.mjs +0 -76
- package/fesm2022/acorex-platform-widgets-checkbox-widget-view.component-C-4bWr9G.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-color-box-widget-designer.component-CxgKO2VI.mjs +0 -55
- package/fesm2022/acorex-platform-widgets-color-box-widget-designer.component-CxgKO2VI.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-extra-properties-schema-widget-edit.component-D9mf08rU.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-extra-properties-schema-widget-view.component-D6GQ-eyr.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-extra-properties-values-widget-edit.component-DVbIdVZ6.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-extra-properties-values-widget-view.component-D-aM64Hu.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-extra-properties-widget-edit.component-em2-aU8E.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-extra-properties-widget-view.component-BeuIofdr.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-file-list-popup.component-rW2RD35f.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-file-rename-popup.component-DHFMnkls.mjs +0 -211
- package/fesm2022/acorex-platform-widgets-file-rename-popup.component-DHFMnkls.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-page-widget-designer.component-DNvnQ4Mc.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-rich-text-popup.component-Cydlpsat.mjs +0 -40
- package/fesm2022/acorex-platform-widgets-rich-text-popup.component-Cydlpsat.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-tabular-data-edit-popup.component-CPVRbE8B.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-tabular-data-view-popup.component-Dmg5DdX8.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-text-block-widget-designer.component-yADN3Xji.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets.mjs.map +0 -1
- package/widgets/README.md +0 -4
package/layout/entity/index.d.ts
CHANGED
|
@@ -1,18 +1,128 @@
|
|
|
1
|
+
import { AXPCommand, AXPQuery } from '@acorex/platform/runtime';
|
|
1
2
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { InjectionToken, Injector, Type } from '@angular/core';
|
|
3
|
-
import {
|
|
3
|
+
import { ElementRef, InjectionToken, Injector, Type } from '@angular/core';
|
|
4
|
+
import { AXPopoverComponent } from '@acorex/components/popover';
|
|
5
|
+
import { AXPMetaData, AXPGridLayoutOptions, AXPBreadcrumbItem, AXPFilterQuery, AXPFilterDefinition, AXPExecuteCommand, AXPUserReference, AXPQueryRequest, AXPPagedListResult, AXPCategoryEntity as AXPCategoryEntity$1, AXPAppStartUpService, AXPMiddlewareErrorResponse, AXPColumnQuery, AXPSortDefinition, AXPActionMenuItem, AXPExpression } from '@acorex/platform/core';
|
|
6
|
+
import * as i3 from '@acorex/platform/layout/widget-core';
|
|
7
|
+
import { AXPWidgetNode, AXPWidgetColumnNode, AXPWidgetCoreService, AXPValueWidgetComponent, AXPWidgetRendererDirective, AXPWidgetConfig, AXPLayoutBaseWidgetComponent, AXPColumnWidgetComponent } from '@acorex/platform/layout/widget-core';
|
|
8
|
+
import { AXStyleColorType, AXDataSource, AXDataSourceFilterOption, AXClickEvent, AXValueChangedEvent, AXFocusEvent, AXHtmlEvent } from '@acorex/cdk/common';
|
|
4
9
|
import * as _acorex_platform_common from '@acorex/platform/common';
|
|
5
|
-
import { AXPEntityCommandScope, AXPEntity, AXPEntityAction, AXPEntityProperty, AXPEntityTableColumn, AXPRelatedEntity, AXPEntitySectionView,
|
|
6
|
-
import { AXPMetaData, AXPBreadcrumbItem, AXPFilterQuery, AXPFilterDefinition, AXPExecuteCommand, AXPQueryRequest, AXPPagedListResult, AXPAppStartUpService } from '@acorex/platform/core';
|
|
7
|
-
import * as i3 from '@acorex/platform/layout/builder';
|
|
8
|
-
import { AXPWidgetColumnNode, AXPWidgetNode, AXPLayoutBuilderService } from '@acorex/platform/layout/builder';
|
|
10
|
+
import { AXPEntityCommandScope, AXPEntity, AXPEntityAction, AXPEntityProperty, AXPEntityTableColumn, AXPRelatedEntity, AXPEntitySectionView, AXPEntityPropertyCreateView, AXPEntityPropertyLayoutConfig, AXPQueryView, AXPEntityPropertyView, AXPCategoryEntity, AXPEntityPropertyGroup, AXPEntityMasterCreateLayoutView, AXPEntityMasterUpdateLayoutView, AXPEntityMasterSingleLayoutView, AXPEntityMasterListView, AXPEntityDetailListView, AXPQueryFilter } from '@acorex/platform/common';
|
|
9
11
|
import * as i1 from '@angular/router';
|
|
10
12
|
import { ResolveFn } from '@angular/router';
|
|
11
13
|
import * as rxjs from 'rxjs';
|
|
12
14
|
import { Subject } from 'rxjs';
|
|
13
15
|
import * as i2 from '@acorex/platform/workflow';
|
|
14
|
-
import { AXPWorkflowAction, AXPWorkflowContext, AXPWorkflow } from '@acorex/platform/workflow';
|
|
15
|
-
import {
|
|
16
|
+
import { AXPWorkflowService, AXPWorkflowAction, AXPWorkflowContext, AXPWorkflow } from '@acorex/platform/workflow';
|
|
17
|
+
import { AXPopupSizeType, AXPopupService } from '@acorex/components/popup';
|
|
18
|
+
import { IActionBuilder, IFormFieldBuilder, AXPDialogRef } from '@acorex/platform/layout/builder';
|
|
19
|
+
import { AXPListWidgetComponentOptions } from '@acorex/platform/layout/widgets';
|
|
20
|
+
import * as _ngrx_signals from '@ngrx/signals';
|
|
21
|
+
import * as _acorex_platform_themes_shared from '@acorex/platform/themes/shared';
|
|
22
|
+
import { AXFormatService } from '@acorex/core/format';
|
|
23
|
+
import { AXTagBoxComponent } from '@acorex/components/tag-box';
|
|
24
|
+
import { AXTextBoxComponent } from '@acorex/components/text-box';
|
|
25
|
+
import { AXPWidgetPropertiesChangedEvent } from '@acorex/platform/layout/components';
|
|
26
|
+
|
|
27
|
+
interface AXPOpenEntityDetailsCommandInput {
|
|
28
|
+
entity: string;
|
|
29
|
+
data: {
|
|
30
|
+
id: string;
|
|
31
|
+
};
|
|
32
|
+
}
|
|
33
|
+
interface AXPOpenEntityDetailsCommandResult {
|
|
34
|
+
success: boolean;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Generic command to open entity details view
|
|
38
|
+
* Can be used by any entity to navigate to its detail page
|
|
39
|
+
*/
|
|
40
|
+
declare class AXPOpenEntityDetailsCommand implements AXPCommand<AXPOpenEntityDetailsCommandInput, AXPOpenEntityDetailsCommandResult> {
|
|
41
|
+
private readonly router;
|
|
42
|
+
private readonly sessionService;
|
|
43
|
+
/**
|
|
44
|
+
* Execute the command to navigate to entity details
|
|
45
|
+
* @param input - Command input containing entity and data information
|
|
46
|
+
*/
|
|
47
|
+
execute(input: AXPOpenEntityDetailsCommandInput): Promise<AXPOpenEntityDetailsCommandResult>;
|
|
48
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPOpenEntityDetailsCommand, never>;
|
|
49
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AXPOpenEntityDetailsCommand>;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
declare class AXPEntityDetailPopoverComponent {
|
|
53
|
+
private readonly commandService;
|
|
54
|
+
private readonly queryService;
|
|
55
|
+
entity: _angular_core.InputSignal<string>;
|
|
56
|
+
entityId: _angular_core.InputSignal<string | number>;
|
|
57
|
+
textField: _angular_core.InputSignal<string>;
|
|
58
|
+
valueField: _angular_core.InputSignal<string>;
|
|
59
|
+
item: _angular_core.InputSignal<AXPMetaData | undefined>;
|
|
60
|
+
protected detailPopover: _angular_core.Signal<AXPopoverComponent | undefined>;
|
|
61
|
+
protected entityDetails: _angular_core.WritableSignal<any>;
|
|
62
|
+
protected isLoadingDetails: _angular_core.WritableSignal<boolean>;
|
|
63
|
+
protected isDetailPopoverOpen: _angular_core.WritableSignal<boolean>;
|
|
64
|
+
/**
|
|
65
|
+
* Show the entity detail popover
|
|
66
|
+
*/
|
|
67
|
+
show(target: ElementRef | HTMLElement): Promise<void>;
|
|
68
|
+
/**
|
|
69
|
+
* Hide the entity detail popover
|
|
70
|
+
*/
|
|
71
|
+
hide(): void;
|
|
72
|
+
protected onDetailPopoverOpenChange(event: any): void;
|
|
73
|
+
protected navigateToDetails(): Promise<void>;
|
|
74
|
+
/**
|
|
75
|
+
* Returns true if a value is meaningful for display (non-empty/non-null).
|
|
76
|
+
*/
|
|
77
|
+
private hasMeaningfulValue;
|
|
78
|
+
/**
|
|
79
|
+
* Calculates an importance score for a property based on its widget type,
|
|
80
|
+
* whether it currently has a meaningful value, and metadata like title.
|
|
81
|
+
*/
|
|
82
|
+
private getPropertyImportanceScore;
|
|
83
|
+
/**
|
|
84
|
+
* Calculates a name-based importance score to prioritize common key fields
|
|
85
|
+
* like title, description, status, and important dates.
|
|
86
|
+
* Name priority MUST come before widget-type priority.
|
|
87
|
+
*/
|
|
88
|
+
private getNameImportanceScore;
|
|
89
|
+
protected getEntityPropertiesWithWidgets(): Array<{
|
|
90
|
+
name: string;
|
|
91
|
+
title: string;
|
|
92
|
+
node: AXPWidgetNode;
|
|
93
|
+
}>;
|
|
94
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPEntityDetailPopoverComponent, never>;
|
|
95
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXPEntityDetailPopoverComponent, "axp-entity-detail-popover", never, { "entity": { "alias": "entity"; "required": true; "isSignal": true; }; "entityId": { "alias": "entityId"; "required": true; "isSignal": true; }; "textField": { "alias": "textField"; "required": false; "isSignal": true; }; "valueField": { "alias": "valueField"; "required": false; "isSignal": true; }; "item": { "alias": "item"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
interface AXPEntityDetailPopoverOptions {
|
|
99
|
+
entity: string;
|
|
100
|
+
id: string | number;
|
|
101
|
+
item: AXPMetaData;
|
|
102
|
+
textField?: string;
|
|
103
|
+
valueField?: string;
|
|
104
|
+
}
|
|
105
|
+
declare class AXPEntityDetailPopoverService {
|
|
106
|
+
private readonly applicationRef;
|
|
107
|
+
private readonly environmentInjector;
|
|
108
|
+
private activePopoverRef;
|
|
109
|
+
/**
|
|
110
|
+
* Show entity detail popover
|
|
111
|
+
* @param target - The target element to position the popover
|
|
112
|
+
* @param options - Configuration options for the popover
|
|
113
|
+
*/
|
|
114
|
+
show(target: ElementRef | HTMLElement, options: AXPEntityDetailPopoverOptions): Promise<void>;
|
|
115
|
+
/**
|
|
116
|
+
* Hide the active popover
|
|
117
|
+
*/
|
|
118
|
+
hide(): void;
|
|
119
|
+
/**
|
|
120
|
+
* Check if a popover is currently active
|
|
121
|
+
*/
|
|
122
|
+
get isActive(): boolean;
|
|
123
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPEntityDetailPopoverService, never>;
|
|
124
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AXPEntityDetailPopoverService>;
|
|
125
|
+
}
|
|
16
126
|
|
|
17
127
|
interface AXPDataSeeder {
|
|
18
128
|
seed(): Promise<void>;
|
|
@@ -101,6 +211,24 @@ declare class AXPEntityDetailListViewModel {
|
|
|
101
211
|
getSecondaryActions(): Promise<AXPEntityCommandTriggerViewModel[]>;
|
|
102
212
|
}
|
|
103
213
|
|
|
214
|
+
/**
|
|
215
|
+
* Entity Event Dispatcher - A wrapper for entity-specific events
|
|
216
|
+
* Handles pattern-based dispatching for entity operations with wildcard support
|
|
217
|
+
*/
|
|
218
|
+
declare class AXPEntityEventDispatcherService {
|
|
219
|
+
private readonly eventService;
|
|
220
|
+
dispatchEntityEvent(operation: 'inserted' | 'updated' | 'deleted', entityName: string, data: any): Promise<void>;
|
|
221
|
+
private getAllMatchingEventKeys;
|
|
222
|
+
private findMatchingWildcardKeys;
|
|
223
|
+
private matchesEntityPattern;
|
|
224
|
+
private generateEventKeys;
|
|
225
|
+
dispatchInserted(entityName: string, data: any): Promise<void>;
|
|
226
|
+
dispatchUpdated(entityName: string, data: any): Promise<void>;
|
|
227
|
+
dispatchDeleted(entityName: string, data: any): Promise<void>;
|
|
228
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPEntityEventDispatcherService, never>;
|
|
229
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AXPEntityEventDispatcherService>;
|
|
230
|
+
}
|
|
231
|
+
|
|
104
232
|
declare class AXPEntityCreateViewSectionViewModel {
|
|
105
233
|
private entity;
|
|
106
234
|
private section;
|
|
@@ -134,7 +262,7 @@ declare class AXPEntityMasterCreateViewModel {
|
|
|
134
262
|
private entityDef;
|
|
135
263
|
private workflow;
|
|
136
264
|
private expressionEvaluator;
|
|
137
|
-
builder:
|
|
265
|
+
builder: AXPWidgetCoreService;
|
|
138
266
|
constructor(injector: Injector, config: AXPEntity, initialData: any | undefined, commandOptions: any);
|
|
139
267
|
context: _angular_core.WritableSignal<any>;
|
|
140
268
|
options: _angular_core.WritableSignal<any>;
|
|
@@ -187,6 +315,7 @@ declare class AXPEntityMasterListViewModel {
|
|
|
187
315
|
private readonly widgetResolver;
|
|
188
316
|
private readonly expressionEvaluator;
|
|
189
317
|
private readonly commandService;
|
|
318
|
+
private readonly eventService;
|
|
190
319
|
private readonly filterOperatorMiddleware;
|
|
191
320
|
private settingEntityKey;
|
|
192
321
|
private readonly destroyed;
|
|
@@ -230,6 +359,7 @@ declare class AXPEntityMasterListViewModel {
|
|
|
230
359
|
resetColumns(): void;
|
|
231
360
|
onColumnsChanged(columns: AXPEntityListViewColumnViewModel[]): Promise<void>;
|
|
232
361
|
applyViewColumns(): void;
|
|
362
|
+
onColumnsOrderChanged(event: any): void;
|
|
233
363
|
sortableFields: () => {
|
|
234
364
|
name: string;
|
|
235
365
|
title: string;
|
|
@@ -330,6 +460,17 @@ declare class AXPEntityDetailViewModelFactory {
|
|
|
330
460
|
}
|
|
331
461
|
declare const AXPEntityDetailViewModelResolver: ResolveFn<Promise<AXPEntityMasterSingleViewModel>>;
|
|
332
462
|
|
|
463
|
+
declare class AXPEntityUpdateViewSectionViewModel {
|
|
464
|
+
private entity;
|
|
465
|
+
private section;
|
|
466
|
+
constructor(entity: AXPEntity, section: AXPEntitySectionView);
|
|
467
|
+
group: _acorex_platform_common.AXPEntityPropertyGroup;
|
|
468
|
+
name: _angular_core.WritableSignal<string>;
|
|
469
|
+
title: _angular_core.Signal<string>;
|
|
470
|
+
description: _angular_core.Signal<string | null | undefined>;
|
|
471
|
+
layout: _angular_core.Signal<AXPGridLayoutOptions>;
|
|
472
|
+
elements: _angular_core.Signal<AXPEntityMasterUpdateElementViewModel[]>;
|
|
473
|
+
}
|
|
333
474
|
declare class AXPEntityMasterUpdateElementViewModel {
|
|
334
475
|
private entity;
|
|
335
476
|
private property;
|
|
@@ -353,11 +494,12 @@ declare class AXPEntityMasterUpdateViewModel {
|
|
|
353
494
|
private get moduleName();
|
|
354
495
|
private get entityName();
|
|
355
496
|
private get entityId();
|
|
356
|
-
builder:
|
|
497
|
+
builder: AXPWidgetCoreService;
|
|
357
498
|
constructor(injector: Injector, config: AXPEntity, entityData: any, props: string[]);
|
|
358
499
|
isInProgress: _angular_core.WritableSignal<boolean>;
|
|
359
500
|
context: _angular_core.WritableSignal<any>;
|
|
360
501
|
elements: _angular_core.Signal<AXPEntityMasterUpdateElementViewModel[]>;
|
|
502
|
+
sections: _angular_core.Signal<AXPEntityUpdateViewSectionViewModel[]>;
|
|
361
503
|
save(): Promise<any>;
|
|
362
504
|
reset(): void;
|
|
363
505
|
}
|
|
@@ -384,10 +526,6 @@ interface AXPEntityModifierContext {
|
|
|
384
526
|
get(): string;
|
|
385
527
|
set(newName: string): AXPEntityModifierContext;
|
|
386
528
|
};
|
|
387
|
-
source: {
|
|
388
|
-
get(): string;
|
|
389
|
-
set(newSource: string): AXPEntityModifierContext;
|
|
390
|
-
};
|
|
391
529
|
parentKey: {
|
|
392
530
|
get(): string | undefined;
|
|
393
531
|
set(newKey: string | undefined): AXPEntityModifierContext;
|
|
@@ -509,14 +647,102 @@ declare function createModifierContext(entity: AXPEntity): AXPEntityModifierCont
|
|
|
509
647
|
|
|
510
648
|
declare const AXP_ENTITY_MODIFIER: InjectionToken<AXPEntityModifierProvider[]>;
|
|
511
649
|
|
|
650
|
+
interface AXPEntityPreloadEntity {
|
|
651
|
+
module: string;
|
|
652
|
+
entity: string;
|
|
653
|
+
}
|
|
654
|
+
interface AXPEntityDefinitionPreloader {
|
|
655
|
+
preload(): AXPEntityPreloadEntity[];
|
|
656
|
+
}
|
|
657
|
+
declare class AXPEntityDefinitionRegistryService {
|
|
658
|
+
private providers;
|
|
659
|
+
private resolver;
|
|
660
|
+
private middleware;
|
|
661
|
+
private onChanged;
|
|
662
|
+
get onChanged$(): rxjs.Observable<{
|
|
663
|
+
name: string;
|
|
664
|
+
}>;
|
|
665
|
+
preload(): Promise<void>;
|
|
666
|
+
private entities;
|
|
667
|
+
private entityResolver;
|
|
668
|
+
/**
|
|
669
|
+
* Force re-load and re-process entity definitions, then re-register them.
|
|
670
|
+
* Overloads:
|
|
671
|
+
* - refresh(): refresh all registered entities
|
|
672
|
+
* - refresh(fullName: string): refresh by fully-qualified name `<module>.<entity>`
|
|
673
|
+
* - refresh(moduleName: string, entityName: string): refresh by parts
|
|
674
|
+
*/
|
|
675
|
+
refresh(): Promise<void>;
|
|
676
|
+
refresh(fullName: string): Promise<void>;
|
|
677
|
+
refresh(moduleName: string, entityName: string): Promise<void>;
|
|
678
|
+
/** Executes the actual refresh for a single entity */
|
|
679
|
+
private refreshOne;
|
|
680
|
+
/**
|
|
681
|
+
* Registers a new entity configuration. Entities are identified uniquely by a combination
|
|
682
|
+
* of their module and name.
|
|
683
|
+
*
|
|
684
|
+
* @param config The configuration object of the entity to be registered.
|
|
685
|
+
*/
|
|
686
|
+
register(config: AXPEntity): void;
|
|
687
|
+
/**
|
|
688
|
+
* Returns an array of all registered entity configurations.
|
|
689
|
+
*
|
|
690
|
+
* @returns An array of AXPEntity objects.
|
|
691
|
+
*/
|
|
692
|
+
getAll(): AXPEntity[];
|
|
693
|
+
/**
|
|
694
|
+
* Resolves an entity configuration based on module and entity name. If the configuration
|
|
695
|
+
* is not already registered, attempts to load it dynamically. Throws an error if the
|
|
696
|
+
* entity cannot be found or loaded.
|
|
697
|
+
*
|
|
698
|
+
* @param moduleName The module name of the entity.
|
|
699
|
+
* @param entityName The name of the entity.
|
|
700
|
+
* @returns A promise resolving to the entity configuration.
|
|
701
|
+
* @throws Error if the entity configuration cannot be resolved.
|
|
702
|
+
*/
|
|
703
|
+
resolve(moduleName: string, entityName: string): Promise<AXPEntity>;
|
|
704
|
+
/**
|
|
705
|
+
* Creates a unique key for an entity based on its module and name.
|
|
706
|
+
*
|
|
707
|
+
* @param moduleName The module name of the entity.
|
|
708
|
+
* @param entityName The name of the entity.
|
|
709
|
+
* @returns The unique key for the entity.
|
|
710
|
+
*/
|
|
711
|
+
private createEntityKey;
|
|
712
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPEntityDefinitionRegistryService, never>;
|
|
713
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AXPEntityDefinitionRegistryService>;
|
|
714
|
+
}
|
|
715
|
+
|
|
512
716
|
interface AXPAuditable {
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
717
|
+
created?: {
|
|
718
|
+
at?: Date;
|
|
719
|
+
by?: AXPUserReference;
|
|
720
|
+
};
|
|
721
|
+
updated?: {
|
|
722
|
+
at?: Date;
|
|
723
|
+
by?: AXPUserReference;
|
|
724
|
+
};
|
|
725
|
+
deleted?: {
|
|
726
|
+
at?: Date;
|
|
727
|
+
by?: AXPUserReference;
|
|
728
|
+
};
|
|
517
729
|
}
|
|
518
|
-
interface
|
|
730
|
+
interface AXPRecordControl {
|
|
731
|
+
isReadOnly?: boolean;
|
|
732
|
+
isHidden?: boolean;
|
|
733
|
+
isSystem?: boolean;
|
|
734
|
+
isImmutable?: boolean;
|
|
735
|
+
isDistributed?: boolean;
|
|
736
|
+
}
|
|
737
|
+
interface AXPRecordOwnership {
|
|
738
|
+
tenantId?: string;
|
|
739
|
+
ownerId?: string;
|
|
740
|
+
}
|
|
741
|
+
interface AXPEntityModel<Id> {
|
|
519
742
|
id: Id;
|
|
743
|
+
auditInfo?: AXPAuditable;
|
|
744
|
+
stateInfo?: AXPRecordControl;
|
|
745
|
+
ownershipInfo?: AXPRecordOwnership;
|
|
520
746
|
}
|
|
521
747
|
interface AXPEntityCreateDto {
|
|
522
748
|
}
|
|
@@ -531,31 +757,6 @@ interface AXPEntityDetailDto<Id> extends AXPEntityOutputDto<Id> {
|
|
|
531
757
|
interface AXPEntityListItemDto<Id> extends AXPEntityOutputDto<Id> {
|
|
532
758
|
}
|
|
533
759
|
|
|
534
|
-
type AXPEntityOp = 'initial' | 'create' | 'update' | 'delete' | 'getOne' | 'getAll' | 'query';
|
|
535
|
-
interface AXPEntityStorageContext<TKey = any, TDetailDto extends AXPEntityDetailDto<TKey> = any, TListItemDto extends AXPEntityListItemDto<TKey> = any, TCreateDto extends AXPEntityCreateDto = any, TUpdateDto extends AXPEntityUpdateDto<TKey> = any> {
|
|
536
|
-
op: AXPEntityOp;
|
|
537
|
-
entityName: string;
|
|
538
|
-
id?: TKey;
|
|
539
|
-
data?: TCreateDto | Omit<Partial<TUpdateDto>, 'id'>;
|
|
540
|
-
request?: AXPQueryRequest;
|
|
541
|
-
previous?: TDetailDto;
|
|
542
|
-
result?: any;
|
|
543
|
-
locals: Map<string, unknown>;
|
|
544
|
-
backend: {
|
|
545
|
-
getOneRaw: (entityName: string, id: TKey) => Promise<TDetailDto>;
|
|
546
|
-
insertOneRaw: (entityName: string, entity: TCreateDto) => Promise<TKey>;
|
|
547
|
-
};
|
|
548
|
-
}
|
|
549
|
-
interface AXPEntityStorageMiddleware<TKey = any, TDetailDto extends AXPEntityDetailDto<TKey> = any, TListItemDto extends AXPEntityListItemDto<TKey> = any, TCreateDto extends AXPEntityCreateDto = any, TUpdateDto extends AXPEntityUpdateDto<TKey> = any> {
|
|
550
|
-
target?: {
|
|
551
|
-
ops?: AXPEntityOp[];
|
|
552
|
-
entity?: string | RegExp;
|
|
553
|
-
predicate?: (ctx: AXPEntityStorageContext<TKey, TDetailDto, TListItemDto, TCreateDto, TUpdateDto>) => boolean;
|
|
554
|
-
order?: number;
|
|
555
|
-
};
|
|
556
|
-
execute: (ctx: AXPEntityStorageContext<TKey, TDetailDto, TListItemDto, TCreateDto, TUpdateDto>, next: () => Promise<void>) => Promise<void>;
|
|
557
|
-
}
|
|
558
|
-
|
|
559
760
|
declare abstract class AXPEntityStorageService<TKey, TDetailDto extends AXPEntityDetailDto<TKey> = AXPEntityModel<TKey>, TListItemDto extends AXPEntityListItemDto<TKey> = TDetailDto, TCreateDto extends AXPEntityCreateDto = TDetailDto, TUpdateDto extends AXPEntityUpdateDto<TKey> = TDetailDto> {
|
|
560
761
|
abstract get dbName(): string;
|
|
561
762
|
abstract initial(entityName: string, collection: TCreateDto[], options?: {
|
|
@@ -603,6 +804,7 @@ declare class AXMEntityCrudServiceImpl<TKey, TDetailDto extends AXPEntityDetailD
|
|
|
603
804
|
private _storageService;
|
|
604
805
|
private entityRegistery;
|
|
605
806
|
private _entityDataProvider;
|
|
807
|
+
private _entityCategoryDataProvider;
|
|
606
808
|
constructor(entityName: string);
|
|
607
809
|
insertOne(request: TCreateDto): Promise<TKey>;
|
|
608
810
|
getOne(id: TKey): Promise<TDetailDto>;
|
|
@@ -619,158 +821,766 @@ declare class AXMEntityCrudServiceImpl<TKey, TDetailDto extends AXPEntityDetailD
|
|
|
619
821
|
categoryId: TKey;
|
|
620
822
|
categoryKey?: string;
|
|
621
823
|
}): Promise<AXPPagedListResult<TListItemDto>>;
|
|
824
|
+
getCategoriesList(request?: AXPQueryRequest): Promise<AXPPagedListResult<AXPCategoryEntity$1<TKey>>>;
|
|
622
825
|
get storageService(): AXPEntityStorageService<any, any, any, any, any>;
|
|
623
826
|
}
|
|
624
827
|
|
|
625
|
-
|
|
626
|
-
|
|
828
|
+
interface AXPEntityConfigs {
|
|
829
|
+
viewers: {
|
|
830
|
+
root: () => Type<any> | Promise<Type<any>>;
|
|
831
|
+
detail: {
|
|
832
|
+
list: () => Type<any> | Promise<Type<any>>;
|
|
833
|
+
};
|
|
834
|
+
master: {
|
|
835
|
+
single: () => Type<any> | Promise<Type<any>>;
|
|
836
|
+
details: () => Type<any> | Promise<Type<any>>;
|
|
837
|
+
create: () => Type<any> | Promise<Type<any>>;
|
|
838
|
+
modify: () => Type<any> | Promise<Type<any>>;
|
|
839
|
+
list: () => Type<any> | Promise<Type<any>>;
|
|
840
|
+
};
|
|
841
|
+
};
|
|
842
|
+
}
|
|
843
|
+
declare const AXP_ENTITY_CONFIG_TOKEN: InjectionToken<AXPEntityConfigs>;
|
|
844
|
+
interface AXPEntityDefinitionLoader {
|
|
845
|
+
get(moduleName: string, entityName: string): Promise<AXPEntity | null>;
|
|
846
|
+
}
|
|
847
|
+
declare const AXP_ENTITY_DEFINITION_LOADER: InjectionToken<AXPEntityDefinitionLoader>;
|
|
848
|
+
declare class AXPEntityResolver {
|
|
849
|
+
private providers;
|
|
850
|
+
get(moduleName: string, entityName: string): Promise<AXPEntity | null>;
|
|
851
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPEntityResolver, never>;
|
|
852
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AXPEntityResolver>;
|
|
853
|
+
}
|
|
627
854
|
|
|
628
|
-
declare class
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
private filterMiddlewares;
|
|
634
|
-
private compose;
|
|
635
|
-
private run;
|
|
636
|
-
private createCtx;
|
|
637
|
-
initial(entityName: string, collection: TCreateDto[], options?: {
|
|
638
|
-
mergeType?: 'merge' | 'replace';
|
|
639
|
-
uniqueKeys?: string[];
|
|
640
|
-
}): Promise<TCreateDto[]>;
|
|
641
|
-
getOne(entityName: string, id: TKey): Promise<TDetailDto>;
|
|
642
|
-
updateOne(entityName: string, id: TKey, keyValues: Omit<Partial<TUpdateDto>, 'id'>): Promise<TDetailDto>;
|
|
643
|
-
deleteOne(entityName: string, id: TKey): Promise<void>;
|
|
644
|
-
insertOne(entityName: string, entity: TCreateDto): Promise<TKey>;
|
|
645
|
-
getAll(entityName: string): Promise<TListItemDto[]>;
|
|
646
|
-
query(entityName: string, request: AXPQueryRequest): Promise<AXPPagedListResult<TListItemDto>>;
|
|
647
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPMiddlewareEntityStorageService<any, any, any, any, any>, never>;
|
|
648
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AXPMiddlewareEntityStorageService<any, any, any, any, any>>;
|
|
855
|
+
declare class AXPEntityModule {
|
|
856
|
+
constructor(appInitService: AXPAppStartUpService, injector: Injector);
|
|
857
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPEntityModule, never>;
|
|
858
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<AXPEntityModule, never, [typeof i1.RouterModule, typeof i2.AXPWorkflowModule, typeof i3.AXPWidgetCoreModule], never>;
|
|
859
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<AXPEntityModule>;
|
|
649
860
|
}
|
|
650
861
|
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
entity: string;
|
|
862
|
+
declare class AXPEntityService {
|
|
863
|
+
private sessionService;
|
|
864
|
+
createPath(module: string, entity: string, path?: string): string;
|
|
865
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPEntityService, never>;
|
|
866
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AXPEntityService>;
|
|
654
867
|
}
|
|
655
|
-
|
|
656
|
-
|
|
868
|
+
|
|
869
|
+
type AXPEntityOp = 'initial' | 'create' | 'update' | 'delete' | 'getOne' | 'getAll' | 'query';
|
|
870
|
+
interface AXPEntityStorageContext<TKey = any, TDetailDto extends AXPEntityDetailDto<TKey> = any, TListItemDto extends AXPEntityListItemDto<TKey> = any, TCreateDto extends AXPEntityCreateDto = any, TUpdateDto extends AXPEntityUpdateDto<TKey> = any> {
|
|
871
|
+
op: AXPEntityOp;
|
|
872
|
+
entityName: string;
|
|
873
|
+
id?: TKey;
|
|
874
|
+
data?: TCreateDto | Omit<Partial<TUpdateDto>, 'id'>;
|
|
875
|
+
request?: AXPQueryRequest;
|
|
876
|
+
previous?: TDetailDto;
|
|
877
|
+
result?: any;
|
|
878
|
+
locals: Map<string, unknown>;
|
|
879
|
+
backend: {
|
|
880
|
+
getOne: (entityName: string, id: TKey) => Promise<TDetailDto>;
|
|
881
|
+
insertOne: (entityName: string, entity: TCreateDto) => Promise<TKey>;
|
|
882
|
+
query: (entityName: string, request: AXPQueryRequest) => Promise<AXPPagedListResult<TListItemDto>>;
|
|
883
|
+
updateOne: (entityName: string, id: TKey, data: Partial<TUpdateDto>) => Promise<void>;
|
|
884
|
+
};
|
|
657
885
|
}
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
886
|
+
interface AXPEntityStorageMiddleware<TKey = any, TDetailDto extends AXPEntityDetailDto<TKey> = any, TListItemDto extends AXPEntityListItemDto<TKey> = any, TCreateDto extends AXPEntityCreateDto = any, TUpdateDto extends AXPEntityUpdateDto<TKey> = any> {
|
|
887
|
+
target?: {
|
|
888
|
+
ops?: AXPEntityOp[];
|
|
889
|
+
entity?: string | RegExp;
|
|
890
|
+
predicate?: (ctx: AXPEntityStorageContext<TKey, TDetailDto, TListItemDto, TCreateDto, TUpdateDto>) => boolean;
|
|
891
|
+
order?: number;
|
|
892
|
+
};
|
|
893
|
+
execute: (ctx: AXPEntityStorageContext<TKey, TDetailDto, TListItemDto, TCreateDto, TUpdateDto>, next: () => Promise<void>) => Promise<void>;
|
|
894
|
+
}
|
|
895
|
+
/**
|
|
896
|
+
* Error type that can be thrown by middlewares to abort the chain with a structured payload.
|
|
897
|
+
*/
|
|
898
|
+
declare class AXPMiddlewareAbortError extends Error {
|
|
899
|
+
readonly message: string;
|
|
900
|
+
readonly options: {
|
|
901
|
+
code?: string;
|
|
902
|
+
status?: number;
|
|
903
|
+
details?: any;
|
|
904
|
+
};
|
|
905
|
+
constructor(message: string, options?: {
|
|
906
|
+
code?: string;
|
|
907
|
+
status?: number;
|
|
908
|
+
details?: any;
|
|
909
|
+
});
|
|
910
|
+
toResponse(): AXPMiddlewareErrorResponse;
|
|
911
|
+
}
|
|
912
|
+
/** Type guard for AXPMiddlewareAbortError */
|
|
913
|
+
declare function isAXPMiddlewareAbortError(error: unknown): error is AXPMiddlewareAbortError;
|
|
914
|
+
|
|
915
|
+
declare const eventDispatchMiddleware: AXPEntityStorageMiddleware;
|
|
916
|
+
|
|
917
|
+
/**
|
|
918
|
+
* Map of column name -> width value
|
|
919
|
+
* Example: { title: '300px', description: '300px' }
|
|
920
|
+
*/
|
|
921
|
+
type ColumnWidthConfig = Record<string, string | number>;
|
|
922
|
+
/**
|
|
923
|
+
* Default widths for common text columns
|
|
924
|
+
*/
|
|
925
|
+
declare const DEFAULT_COLUMN_WIDTHS: ColumnWidthConfig;
|
|
926
|
+
/**
|
|
927
|
+
* Factory to create a column width middleware using provided config map.
|
|
928
|
+
* Sets width for columns defined in the map if not already defined on the column.
|
|
929
|
+
*/
|
|
930
|
+
declare const columnWidthMiddlewareFactory: (widths: ColumnWidthConfig) => AXPEntityModifier;
|
|
931
|
+
/**
|
|
932
|
+
* Helper to create a provider for the column width middleware.
|
|
933
|
+
* By default it applies to all entities using the '*' pattern.
|
|
934
|
+
*/
|
|
935
|
+
declare const createColumnWidthMiddlewareProvider: (widths: ColumnWidthConfig, entityName?: string | RegExp) => AXPEntityModifierProvider;
|
|
936
|
+
/**
|
|
937
|
+
* Default provider registered with the default map.
|
|
938
|
+
*/
|
|
939
|
+
declare const columnWidthMiddlewareProvider: AXPEntityModifierProvider;
|
|
940
|
+
|
|
941
|
+
interface AXPGetEntityDetailsQueryInput {
|
|
942
|
+
entity: string;
|
|
943
|
+
id: string;
|
|
944
|
+
}
|
|
945
|
+
interface AXPGetEntityDetailsQueryResult {
|
|
946
|
+
success: boolean;
|
|
947
|
+
entityDefinition?: AXPEntity;
|
|
948
|
+
entityData?: any;
|
|
949
|
+
error?: string;
|
|
950
|
+
}
|
|
951
|
+
/**
|
|
952
|
+
* Generic query to get entity details including entity definition and entity data
|
|
953
|
+
* Can be used by any entity to retrieve its definition and data by ID
|
|
954
|
+
*/
|
|
955
|
+
declare class AXPGetEntityDetailsQuery implements AXPQuery<AXPGetEntityDetailsQueryInput, AXPGetEntityDetailsQueryResult> {
|
|
956
|
+
private readonly entityDefinitionRegistry;
|
|
957
|
+
private readonly injector;
|
|
669
958
|
/**
|
|
670
|
-
*
|
|
671
|
-
*
|
|
672
|
-
* - refresh(): refresh all registered entities
|
|
673
|
-
* - refresh(fullName: string): refresh by fully-qualified name `<module>.<entity>`
|
|
674
|
-
* - refresh(moduleName: string, entityName: string): refresh by parts
|
|
959
|
+
* Execute the query to fetch entity definition and data
|
|
960
|
+
* @param input - Query input containing entity and ID information
|
|
675
961
|
*/
|
|
676
|
-
|
|
677
|
-
refresh(fullName: string): Promise<void>;
|
|
678
|
-
refresh(moduleName: string, entityName: string): Promise<void>;
|
|
679
|
-
/** Executes the actual refresh for a single entity */
|
|
680
|
-
private refreshOne;
|
|
962
|
+
fetch(input: AXPGetEntityDetailsQueryInput): Promise<AXPGetEntityDetailsQueryResult>;
|
|
681
963
|
/**
|
|
682
|
-
*
|
|
683
|
-
*
|
|
684
|
-
*
|
|
685
|
-
* @
|
|
964
|
+
* Get entity data using the entity's CRUD service
|
|
965
|
+
* @param entity - Full entity path (ModuleName.EntityName)
|
|
966
|
+
* @param id - Entity ID
|
|
967
|
+
* @returns Promise resolving to entity data
|
|
686
968
|
*/
|
|
687
|
-
|
|
969
|
+
private getEntityData;
|
|
970
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPGetEntityDetailsQuery, never>;
|
|
971
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AXPGetEntityDetailsQuery>;
|
|
972
|
+
}
|
|
973
|
+
|
|
974
|
+
interface IEntitySelectorStage {
|
|
975
|
+
/** Select target entity using "module.entity" format */
|
|
976
|
+
entity(fullName: string): IInterfaceSelectorStage;
|
|
977
|
+
}
|
|
978
|
+
interface IInterfaceSelectorStage {
|
|
979
|
+
/** Use master.create interface */
|
|
980
|
+
create(): IPropertyFilterStage;
|
|
981
|
+
/** Use master.update interface */
|
|
982
|
+
update(id: string): IPropertyFilterStage;
|
|
983
|
+
}
|
|
984
|
+
interface IPropertyFilterStage {
|
|
985
|
+
/** Only include provided property names (by AXPEntityProperty.name). Mutually exclusive with exclude(). */
|
|
986
|
+
include(...propertyNames: string[]): IPropertyFilterStage;
|
|
987
|
+
/** Exclude provided property names (by AXPEntityProperty.name). Ignored if include() was already set. */
|
|
988
|
+
exclude(...propertyNames: string[]): IPropertyFilterStage;
|
|
989
|
+
/** Optionally override dialog title */
|
|
990
|
+
title(text: string): IPropertyFilterStage;
|
|
991
|
+
/** Provide initial dialog context/model data */
|
|
992
|
+
context(context: any): IPropertyFilterStage;
|
|
993
|
+
/** Override dialog size (e.g., 'sm' | 'md' | 'lg' | 'xl' | 'full') */
|
|
994
|
+
size(size: AXPopupSizeType): IPropertyFilterStage;
|
|
995
|
+
/** Configure footer actions (cancel/submit/custom). If not called, defaults to cancel+submit. */
|
|
996
|
+
actions(delegate: (a: IActionBuilder) => void): IPropertyFilterStage;
|
|
997
|
+
/** Add an extra field into a specific group, using the original field builder API */
|
|
998
|
+
field(groupId: string, path: string, delegate?: (field: CompatFormFieldBuilder) => void): IPropertyFilterStage;
|
|
999
|
+
/** Show dialog */
|
|
1000
|
+
show(): Promise<AXPDialogRef>;
|
|
1001
|
+
mode(mode: 'edit' | 'view'): IPropertyFilterStage;
|
|
1002
|
+
}
|
|
1003
|
+
declare class AXPEntityDynamicDialogService implements IEntitySelectorStage {
|
|
1004
|
+
private readonly entityRegistry;
|
|
1005
|
+
private readonly layoutBuilder;
|
|
1006
|
+
private readonly layoutTheme;
|
|
1007
|
+
entity(fullName: string): IInterfaceSelectorStage;
|
|
1008
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPEntityDynamicDialogService, never>;
|
|
1009
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AXPEntityDynamicDialogService>;
|
|
1010
|
+
}
|
|
1011
|
+
type CompatFormFieldBuilder = {
|
|
1012
|
+
path(path: string): any;
|
|
1013
|
+
layout(config: any): any;
|
|
1014
|
+
visible(condition: boolean | string): any;
|
|
1015
|
+
readonly(condition: boolean | string): any;
|
|
1016
|
+
customWidget(type: string, options?: any): any;
|
|
1017
|
+
} & Partial<IFormFieldBuilder>;
|
|
1018
|
+
|
|
1019
|
+
declare const AXP_ENTITY_STORAGE_BACKEND: InjectionToken<AXPEntityStorageService<any, any, any, any, any>>;
|
|
1020
|
+
declare const AXP_ENTITY_STORAGE_MIDDLEWARE: InjectionToken<AXPEntityStorageMiddleware<any, any, any, any, any>[]>;
|
|
1021
|
+
|
|
1022
|
+
declare class AXPMiddlewareEntityStorageService<TKey = any, TDetailDto extends AXPEntityDetailDto<TKey> = any, TListItemDto extends AXPEntityListItemDto<TKey> = any, TCreateDto extends AXPEntityCreateDto = any, TUpdateDto extends AXPEntityUpdateDto<TKey> = any> extends AXPEntityStorageService<TKey, TDetailDto, TListItemDto, TCreateDto, TUpdateDto> {
|
|
1023
|
+
private readonly backend;
|
|
1024
|
+
private readonly allMiddlewares;
|
|
1025
|
+
private readonly injector;
|
|
1026
|
+
get dbName(): string;
|
|
1027
|
+
private filterMiddlewares;
|
|
1028
|
+
private compose;
|
|
1029
|
+
private run;
|
|
1030
|
+
private createCtx;
|
|
1031
|
+
initial(entityName: string, collection: TCreateDto[], options?: {
|
|
1032
|
+
mergeType?: 'merge' | 'replace';
|
|
1033
|
+
uniqueKeys?: string[];
|
|
1034
|
+
}): Promise<TCreateDto[]>;
|
|
1035
|
+
getOne(entityName: string, id: TKey): Promise<TDetailDto>;
|
|
1036
|
+
updateOne(entityName: string, id: TKey, keyValues: Omit<Partial<TUpdateDto>, 'id'>): Promise<TDetailDto>;
|
|
1037
|
+
deleteOne(entityName: string, id: TKey): Promise<void>;
|
|
1038
|
+
insertOne(entityName: string, entity: TCreateDto): Promise<TKey>;
|
|
1039
|
+
getAll(entityName: string): Promise<TListItemDto[]>;
|
|
1040
|
+
query(entityName: string, request: AXPQueryRequest): Promise<AXPPagedListResult<TListItemDto>>;
|
|
1041
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPMiddlewareEntityStorageService<any, any, any, any, any>, never>;
|
|
1042
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AXPMiddlewareEntityStorageService<any, any, any, any, any>>;
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
declare function entityMasterCreateAction(): AXPEntityAction;
|
|
1046
|
+
declare function entityMasterBulkDeleteAction(): AXPEntityAction;
|
|
1047
|
+
declare function entityMasterViewAction(): AXPEntityAction;
|
|
1048
|
+
declare function entityMasterDeleteAction(): AXPEntityAction;
|
|
1049
|
+
declare function entityMasterCrudActions(options?: {
|
|
1050
|
+
create?: boolean;
|
|
1051
|
+
delete?: boolean;
|
|
1052
|
+
view?: boolean;
|
|
1053
|
+
edit?: boolean;
|
|
1054
|
+
}): AXPEntityAction[];
|
|
1055
|
+
declare function entityMasterRecordActions(): AXPEntityAction[];
|
|
1056
|
+
declare function entityDetailsCreateActions(parentId: string): AXPEntityAction;
|
|
1057
|
+
declare function entityDetailsSimpleCondition(fk: string): AXPQueryFilter;
|
|
1058
|
+
declare function entityDetailsReferenceCondition(type: string): AXPQueryFilter[];
|
|
1059
|
+
declare function entityDetailsEditAction(): AXPEntityAction;
|
|
1060
|
+
declare function entityOverrideDetailsViewAction(): AXPEntityAction;
|
|
1061
|
+
declare function entityDetailsCrudActions(parentId: string): AXPEntityAction[];
|
|
1062
|
+
declare function entityDetailsReferenceCreateActions(type: string): AXPEntityAction[];
|
|
1063
|
+
type AXPEntityChangeSet = {
|
|
1064
|
+
[key: string]: {
|
|
1065
|
+
oldValue: any;
|
|
1066
|
+
newValue: any;
|
|
1067
|
+
added?: any[];
|
|
1068
|
+
removed?: any[];
|
|
1069
|
+
};
|
|
1070
|
+
};
|
|
1071
|
+
/**
|
|
1072
|
+
* Computes a diff between two plain objects with array-aware semantics.
|
|
1073
|
+
* - For arrays of objects with an id field, computes added/removed by id.
|
|
1074
|
+
* - For arrays of primitives or objects without id, uses deep equality.
|
|
1075
|
+
* - For scalars/objects, reports oldValue/newValue when changed.
|
|
1076
|
+
*/
|
|
1077
|
+
declare function detectEntityChanges(oldObj: any, newObj: any): AXPEntityChangeSet;
|
|
1078
|
+
|
|
1079
|
+
declare class AXPEntityListTableService {
|
|
1080
|
+
private readonly workflow;
|
|
1081
|
+
private readonly expressionEvaluator;
|
|
688
1082
|
/**
|
|
689
|
-
*
|
|
690
|
-
*
|
|
691
|
-
* @returns An array of AXPEntity objects.
|
|
1083
|
+
* Convert Entity to List Widget Options
|
|
692
1084
|
*/
|
|
693
|
-
|
|
1085
|
+
convertEntityToListOptions(entity: AXPEntity, options: any, allActions: AXPEntityCommandTriggerViewModel[]): Promise<AXPListWidgetComponentOptions>;
|
|
694
1086
|
/**
|
|
695
|
-
*
|
|
696
|
-
* is not already registered, attempts to load it dynamically. Throws an error if the
|
|
697
|
-
* entity cannot be found or loaded.
|
|
698
|
-
*
|
|
699
|
-
* @param moduleName The module name of the entity.
|
|
700
|
-
* @param entityName The name of the entity.
|
|
701
|
-
* @returns A promise resolving to the entity configuration.
|
|
702
|
-
* @throws Error if the entity configuration cannot be resolved.
|
|
1087
|
+
* Create DataSource for Entity
|
|
703
1088
|
*/
|
|
704
|
-
|
|
1089
|
+
private createDataSource;
|
|
705
1090
|
/**
|
|
706
|
-
*
|
|
707
|
-
*
|
|
708
|
-
* @param moduleName The module name of the entity.
|
|
709
|
-
* @param entityName The name of the entity.
|
|
710
|
-
* @returns The unique key for the entity.
|
|
1091
|
+
* Convert Properties to Columns
|
|
711
1092
|
*/
|
|
712
|
-
private
|
|
713
|
-
|
|
714
|
-
|
|
1093
|
+
private createColumnsFromProperties;
|
|
1094
|
+
/**
|
|
1095
|
+
* Map EntityTableColumn to ListWidgetColumn
|
|
1096
|
+
*/
|
|
1097
|
+
private mapEntityColumnToWidgetColumn;
|
|
1098
|
+
/**
|
|
1099
|
+
* Convert Entity Actions to Row Commands
|
|
1100
|
+
*/
|
|
1101
|
+
private createRowCommands;
|
|
1102
|
+
/**
|
|
1103
|
+
* Check if entity has Selected Scope Actions
|
|
1104
|
+
*/
|
|
1105
|
+
private hasSelectedScopeActions;
|
|
1106
|
+
private evaluateExpressions;
|
|
1107
|
+
/**
|
|
1108
|
+
* Handle execution of a row command (shared by double-click and command handlers)
|
|
1109
|
+
*/
|
|
1110
|
+
private handleRowCommand;
|
|
1111
|
+
/**
|
|
1112
|
+
* Create default events
|
|
1113
|
+
*/
|
|
1114
|
+
private createDefaultEvents;
|
|
1115
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPEntityListTableService, never>;
|
|
1116
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AXPEntityListTableService>;
|
|
715
1117
|
}
|
|
716
1118
|
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
1119
|
+
declare class AXPEntityListToolbarService {
|
|
1120
|
+
private readonly widgetResolver;
|
|
1121
|
+
/**
|
|
1122
|
+
* Convert Entity to Toolbar Options
|
|
1123
|
+
*/
|
|
1124
|
+
convertEntityToolbarOptions(entity: AXPEntity, options: any): Promise<{
|
|
1125
|
+
filterDefinitions: AXPFilterDefinition[];
|
|
1126
|
+
columnDefinitions: AXPColumnQuery[];
|
|
1127
|
+
sortDefinitions: AXPSortDefinition[];
|
|
1128
|
+
}>;
|
|
1129
|
+
/**
|
|
1130
|
+
* Create Filter Definitions for Toolbar
|
|
1131
|
+
*/
|
|
1132
|
+
private createFilterDefinitions;
|
|
1133
|
+
/**
|
|
1134
|
+
* Create Column Definitions for Toolbar
|
|
1135
|
+
*/
|
|
1136
|
+
private createColumnDefinitions;
|
|
1137
|
+
/**
|
|
1138
|
+
* Create Sort Definitions for Toolbar
|
|
1139
|
+
*/
|
|
1140
|
+
private createSortDefinitions;
|
|
1141
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPEntityListToolbarService, never>;
|
|
1142
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AXPEntityListToolbarService>;
|
|
733
1143
|
}
|
|
734
1144
|
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
1145
|
+
declare class AXPEntityListWidgetViewComponent extends AXPValueWidgetComponent {
|
|
1146
|
+
#private;
|
|
1147
|
+
protected entityService: AXPEntityDefinitionRegistryService;
|
|
1148
|
+
protected workflow: AXPWorkflowService;
|
|
1149
|
+
protected entityListTableService: AXPEntityListTableService;
|
|
1150
|
+
protected entityListToolbarService: AXPEntityListToolbarService;
|
|
1151
|
+
protected layoutThemeService: {
|
|
1152
|
+
currentMode: _angular_core.Signal<_acorex_platform_themes_shared.AXPThemeMode>;
|
|
1153
|
+
currentPalette: _angular_core.Signal<string>;
|
|
1154
|
+
systemThemeMode: _angular_core.Signal<_acorex_platform_themes_shared.AXPThemeMode>;
|
|
1155
|
+
font: _ngrx_signals.DeepSignal<{
|
|
1156
|
+
family: string;
|
|
1157
|
+
size: string;
|
|
1158
|
+
}>;
|
|
1159
|
+
screenSize: _angular_core.Signal<_acorex_platform_themes_shared.AXPScreenSize>;
|
|
1160
|
+
deviceType: _angular_core.Signal<_acorex_platform_themes_shared.AXPDeviceType>;
|
|
1161
|
+
isTouchDevice: _angular_core.Signal<boolean>;
|
|
1162
|
+
overlayLoading: _angular_core.Signal<boolean>;
|
|
1163
|
+
navigationLoading: _angular_core.Signal<boolean>;
|
|
1164
|
+
overlayLoadingTaskCount: _angular_core.Signal<number>;
|
|
1165
|
+
navigationLoadingTaskCount: _angular_core.Signal<number>;
|
|
1166
|
+
sideMenuState: _angular_core.Signal<_acorex_platform_themes_shared.AXPSideMenuState>;
|
|
1167
|
+
sideMenuWidth: _angular_core.Signal<number>;
|
|
1168
|
+
menuOrientation: _angular_core.Signal<_acorex_platform_themes_shared.AXPMenuOrientation>;
|
|
1169
|
+
isPrinting: _angular_core.Signal<boolean>;
|
|
1170
|
+
isDarkMode: _angular_core.Signal<boolean>;
|
|
1171
|
+
isLightMode: _angular_core.Signal<boolean>;
|
|
1172
|
+
isSystemMode: _angular_core.Signal<boolean>;
|
|
1173
|
+
isSideMenuOpen: _angular_core.Signal<boolean>;
|
|
1174
|
+
isSideMenuOverlay: _angular_core.Signal<boolean>;
|
|
1175
|
+
isSmall: _angular_core.Signal<boolean>;
|
|
1176
|
+
isMedium: _angular_core.Signal<boolean>;
|
|
1177
|
+
isLarge: _angular_core.Signal<boolean>;
|
|
1178
|
+
isMobileDevice: _angular_core.Signal<boolean>;
|
|
1179
|
+
isTabletDevice: _angular_core.Signal<boolean>;
|
|
1180
|
+
isDesktopDevice: _angular_core.Signal<boolean>;
|
|
1181
|
+
isTouchScreen: _angular_core.Signal<boolean>;
|
|
1182
|
+
isOverlayLoading: _angular_core.Signal<boolean>;
|
|
1183
|
+
isNavigationLoading: _angular_core.Signal<boolean>;
|
|
1184
|
+
isMenuHorizontal: _angular_core.Signal<boolean>;
|
|
1185
|
+
changeThemeMode: (theme: _acorex_platform_themes_shared.AXPThemeMode) => void;
|
|
1186
|
+
openSideMenu: () => void;
|
|
1187
|
+
closeSideMenu: () => void;
|
|
1188
|
+
setSideMenuWidth: (width: number) => void;
|
|
1189
|
+
toggleSideMenu: () => void;
|
|
1190
|
+
setNavigationLoading: (value: boolean, delay?: number) => void;
|
|
1191
|
+
setOverlayLoading: (value: boolean, delay?: number) => void;
|
|
1192
|
+
loadSettings: () => Promise<void>;
|
|
1193
|
+
} & _ngrx_signals.StateSource<{
|
|
1194
|
+
currentMode: _acorex_platform_themes_shared.AXPThemeMode;
|
|
1195
|
+
currentPalette: string;
|
|
1196
|
+
systemThemeMode: _acorex_platform_themes_shared.AXPThemeMode;
|
|
1197
|
+
font: {
|
|
1198
|
+
family: string;
|
|
1199
|
+
size: string;
|
|
747
1200
|
};
|
|
748
|
-
|
|
1201
|
+
screenSize: _acorex_platform_themes_shared.AXPScreenSize;
|
|
1202
|
+
deviceType: _acorex_platform_themes_shared.AXPDeviceType;
|
|
1203
|
+
isTouchDevice: boolean;
|
|
1204
|
+
overlayLoading: boolean;
|
|
1205
|
+
navigationLoading: boolean;
|
|
1206
|
+
overlayLoadingTaskCount: number;
|
|
1207
|
+
navigationLoadingTaskCount: number;
|
|
1208
|
+
sideMenuState: _acorex_platform_themes_shared.AXPSideMenuState;
|
|
1209
|
+
sideMenuWidth: number;
|
|
1210
|
+
menuOrientation: _acorex_platform_themes_shared.AXPMenuOrientation;
|
|
1211
|
+
isPrinting: boolean;
|
|
1212
|
+
}>;
|
|
1213
|
+
protected isMounted: _angular_core.WritableSignal<boolean>;
|
|
1214
|
+
readonly entity: _angular_core.WritableSignal<AXPEntity | null>;
|
|
1215
|
+
protected listNode: _angular_core.WritableSignal<AXPWidgetNode | null>;
|
|
1216
|
+
protected list: _angular_core.Signal<AXPWidgetRendererDirective | undefined>;
|
|
1217
|
+
protected allWidgets: _angular_core.Signal<readonly AXPWidgetRendererDirective[]>;
|
|
1218
|
+
protected listWidget: _angular_core.WritableSignal<AXPWidgetRendererDirective | undefined>;
|
|
1219
|
+
protected toolbarWidget: _angular_core.Signal<AXPWidgetRendererDirective | undefined>;
|
|
1220
|
+
protected selectedItems: _angular_core.WritableSignal<any[]>;
|
|
1221
|
+
protected toolbarNode: _angular_core.WritableSignal<AXPWidgetNode | null>;
|
|
1222
|
+
protected destroyed: Subject<void>;
|
|
1223
|
+
protected entitySource: _angular_core.Signal<any>;
|
|
1224
|
+
protected excludeColumns: _angular_core.Signal<string[]>;
|
|
1225
|
+
protected includeColumns: _angular_core.Signal<string[]>;
|
|
1226
|
+
protected externalActions: _angular_core.Signal<AXPEntityAction[]>;
|
|
1227
|
+
protected showEntityActions: _angular_core.Signal<any>;
|
|
1228
|
+
protected showToolbar: _angular_core.Signal<any>;
|
|
1229
|
+
protected allActions: _angular_core.Signal<AXPEntityCommandTriggerViewModel[]>;
|
|
1230
|
+
protected primaryActions: _angular_core.Signal<AXPActionMenuItem[]>;
|
|
1231
|
+
protected secondaryActions: _angular_core.Signal<AXPActionMenuItem[]>;
|
|
1232
|
+
protected handleActionClick(item: AXPActionMenuItem): void;
|
|
1233
|
+
protected handleSecondaryActionClick(item: AXPActionMenuItem): void;
|
|
1234
|
+
protected execute(commandName: string, data: any): Promise<void>;
|
|
1235
|
+
/**
|
|
1236
|
+
* Validates that all required dependencies are available
|
|
1237
|
+
*/
|
|
1238
|
+
private hasRequiredDependencies;
|
|
1239
|
+
/**
|
|
1240
|
+
* Handles all query-related changes (filters, sorts, columns)
|
|
1241
|
+
*/
|
|
1242
|
+
private handleQueryChanges;
|
|
1243
|
+
/**
|
|
1244
|
+
* Analyzes what has changed between current and previous queries
|
|
1245
|
+
*/
|
|
1246
|
+
private analyzeChanges;
|
|
1247
|
+
/**
|
|
1248
|
+
* Applies filter and sort changes to the data source
|
|
1249
|
+
*/
|
|
1250
|
+
private applyDataSourceChanges;
|
|
1251
|
+
/**
|
|
1252
|
+
* Handles list refresh logic based on changes and mount status
|
|
1253
|
+
*/
|
|
1254
|
+
private handleListRefresh;
|
|
1255
|
+
/**
|
|
1256
|
+
* Handles column-related changes
|
|
1257
|
+
* TODO: Implement column change logic
|
|
1258
|
+
*/
|
|
1259
|
+
private handleColumnChanges;
|
|
1260
|
+
protected context: {};
|
|
1261
|
+
protected previousQueries: any;
|
|
1262
|
+
ngOnInit(): Promise<void>;
|
|
1263
|
+
ngAfterViewInit(): Promise<void>;
|
|
1264
|
+
ngOnDestroy(): void;
|
|
1265
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPEntityListWidgetViewComponent, never>;
|
|
1266
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXPEntityListWidgetViewComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
749
1267
|
}
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
1268
|
+
|
|
1269
|
+
declare const AXPEntityListWidget: AXPWidgetConfig;
|
|
1270
|
+
|
|
1271
|
+
declare class AXPEntityReferenceWidgetViewComponent extends AXPLayoutBaseWidgetComponent {
|
|
1272
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPEntityReferenceWidgetViewComponent, never>;
|
|
1273
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXPEntityReferenceWidgetViewComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
753
1274
|
}
|
|
754
|
-
|
|
755
|
-
declare class
|
|
756
|
-
private
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
1275
|
+
|
|
1276
|
+
declare class AXPEntityReferenceWidgetEditComponent extends AXPLayoutBaseWidgetComponent {
|
|
1277
|
+
#private;
|
|
1278
|
+
protected readonly injector: Injector;
|
|
1279
|
+
protected readonly entityResolver: AXPEntityResolver;
|
|
1280
|
+
protected entity: _angular_core.Signal<string>;
|
|
1281
|
+
protected entityDef: _angular_core.WritableSignal<AXPEntity | null>;
|
|
1282
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPEntityReferenceWidgetEditComponent, never>;
|
|
1283
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXPEntityReferenceWidgetEditComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
760
1284
|
}
|
|
761
1285
|
|
|
762
|
-
declare class
|
|
763
|
-
|
|
764
|
-
static
|
|
765
|
-
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<AXPEntityModule, never, [typeof i1.RouterModule, typeof i2.AXPWorkflowModule, typeof i3.AXPLayoutBuilderModule], never>;
|
|
766
|
-
static ɵinj: _angular_core.ɵɵInjectorDeclaration<AXPEntityModule>;
|
|
1286
|
+
declare class AXPEntityReferenceWidgetColumnComponent extends AXPColumnWidgetComponent<any> {
|
|
1287
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPEntityReferenceWidgetColumnComponent, never>;
|
|
1288
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXPEntityReferenceWidgetColumnComponent, "ng-component", never, { "rawValue": { "alias": "rawValue"; "required": false; }; }, {}, never, never, true, never>;
|
|
767
1289
|
}
|
|
768
1290
|
|
|
769
|
-
declare class
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
1291
|
+
declare class AXPEntityReferenceWidgetPrintComponent extends AXPLayoutBaseWidgetComponent {
|
|
1292
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPEntityReferenceWidgetPrintComponent, never>;
|
|
1293
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXPEntityReferenceWidgetPrintComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
1294
|
+
}
|
|
1295
|
+
|
|
1296
|
+
declare class AXPEntityReferenceWidgetDesignerComponent extends AXPLayoutBaseWidgetComponent {
|
|
1297
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPEntityReferenceWidgetDesignerComponent, never>;
|
|
1298
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXPEntityReferenceWidgetDesignerComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
1299
|
+
}
|
|
1300
|
+
|
|
1301
|
+
declare const AXPEntityReferenceWidget: AXPWidgetConfig;
|
|
1302
|
+
|
|
1303
|
+
declare class AXPLookupFilterWidgetEditComponent extends AXPValueWidgetComponent<any> {
|
|
1304
|
+
#private;
|
|
1305
|
+
protected editorPath: string;
|
|
1306
|
+
protected entity: _angular_core.Signal<string>;
|
|
1307
|
+
protected textField: _angular_core.Signal<string>;
|
|
1308
|
+
protected valueField: _angular_core.Signal<string>;
|
|
1309
|
+
protected customFilter: _angular_core.Signal<AXDataSourceFilterOption>;
|
|
1310
|
+
protected multiple: _angular_core.Signal<boolean>;
|
|
1311
|
+
protected lookupNode: _angular_core.WritableSignal<AXPWidgetNode>;
|
|
1312
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPLookupFilterWidgetEditComponent, never>;
|
|
1313
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXPLookupFilterWidgetEditComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
1314
|
+
}
|
|
1315
|
+
|
|
1316
|
+
declare const AXPLookupFilterWidget: AXPWidgetConfig;
|
|
1317
|
+
declare module '@acorex/platform/layout/widget-core' {
|
|
1318
|
+
interface AXPWidgetTypesMap {
|
|
1319
|
+
lookupFilter: 'lookup-filter';
|
|
1320
|
+
}
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1323
|
+
declare class AXPLookupWidgetViewComponent extends AXPValueWidgetComponent<any> {
|
|
1324
|
+
protected readonly formatService: AXFormatService;
|
|
1325
|
+
protected readonly entityResolver: AXPEntityResolver;
|
|
1326
|
+
protected entity: _angular_core.Signal<string>;
|
|
1327
|
+
protected multiple: _angular_core.Signal<boolean>;
|
|
1328
|
+
protected valueField: _angular_core.Signal<string>;
|
|
1329
|
+
protected textField: _angular_core.Signal<string>;
|
|
1330
|
+
protected badgeClass: _angular_core.Signal<string>;
|
|
1331
|
+
protected displayField: _angular_core.Signal<string>;
|
|
1332
|
+
protected loading: _angular_core.WritableSignal<boolean>;
|
|
1333
|
+
private entityDef;
|
|
1334
|
+
protected displayItems: _angular_core.WritableSignal<any[]>;
|
|
1335
|
+
private efEntity;
|
|
1336
|
+
private efDisplay;
|
|
1337
|
+
private extractItem;
|
|
1338
|
+
private get __class();
|
|
1339
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPLookupWidgetViewComponent, never>;
|
|
1340
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXPLookupWidgetViewComponent, "axp-lookup-widget-view", never, {}, {}, never, never, true, never>;
|
|
1341
|
+
}
|
|
1342
|
+
|
|
1343
|
+
type AXPLookupWidgetLookType = 'select' | 'lookup';
|
|
1344
|
+
interface AXPLookupWidgetOptions {
|
|
1345
|
+
disabled?: boolean | AXPExpression;
|
|
1346
|
+
readonly?: boolean | AXPExpression;
|
|
1347
|
+
placeholder?: string;
|
|
1348
|
+
expose?: string | string[];
|
|
1349
|
+
look?: AXPLookupWidgetLookType;
|
|
1350
|
+
allowClear?: boolean;
|
|
1351
|
+
}
|
|
1352
|
+
|
|
1353
|
+
interface AXPEntityDataSelectorOptions {
|
|
1354
|
+
entity: AXPEntity;
|
|
1355
|
+
title: string;
|
|
1356
|
+
allowMultiple?: boolean;
|
|
1357
|
+
filters?: AXDataSourceFilterOption | null;
|
|
1358
|
+
parentFilters?: AXDataSourceFilterOption | null;
|
|
1359
|
+
columns?: string[];
|
|
1360
|
+
sortedFields?: {
|
|
1361
|
+
name: string;
|
|
1362
|
+
dir: 'asc' | 'desc';
|
|
1363
|
+
}[];
|
|
1364
|
+
allowCreate?: boolean;
|
|
1365
|
+
searchFields?: string[];
|
|
1366
|
+
}
|
|
1367
|
+
interface AXPEntityDataSelectorResult {
|
|
1368
|
+
items: any[];
|
|
1369
|
+
}
|
|
1370
|
+
declare class AXPEntityDataSelectorService {
|
|
1371
|
+
private readonly dataSelectorService;
|
|
1372
|
+
private readonly filterOperatorMiddleware;
|
|
1373
|
+
private readonly widgetResolver;
|
|
1374
|
+
/**
|
|
1375
|
+
* Open entity data selector popup
|
|
1376
|
+
*/
|
|
1377
|
+
open(options: AXPEntityDataSelectorOptions): Promise<AXPEntityDataSelectorResult | null>;
|
|
1378
|
+
/**
|
|
1379
|
+
* Open entity data selector with category filter
|
|
1380
|
+
*/
|
|
1381
|
+
openWithCategoryFilter(options: Omit<AXPEntityDataSelectorOptions, 'allowCreate'>, categoryFilterConfig: {
|
|
1382
|
+
title: string;
|
|
1383
|
+
dataSource: any;
|
|
1384
|
+
filterField: string;
|
|
1385
|
+
filterOperator?: 'equal' | 'contains' | 'in';
|
|
1386
|
+
width?: string;
|
|
1387
|
+
}): Promise<AXPEntityDataSelectorResult | null>;
|
|
1388
|
+
/**
|
|
1389
|
+
* Create data selector configuration from entity options
|
|
1390
|
+
*/
|
|
1391
|
+
private createDataSelectorConfig;
|
|
1392
|
+
/**
|
|
1393
|
+
* Create data source from entity definition
|
|
1394
|
+
*/
|
|
1395
|
+
private createDataSource;
|
|
1396
|
+
/**
|
|
1397
|
+
* Create columns configuration from entity definition
|
|
1398
|
+
*/
|
|
1399
|
+
private createColumns;
|
|
1400
|
+
/**
|
|
1401
|
+
* Get searchable fields from entity properties
|
|
1402
|
+
*/
|
|
1403
|
+
private getSearchFields;
|
|
1404
|
+
/**
|
|
1405
|
+
* Check if entity supports create operation
|
|
1406
|
+
*/
|
|
1407
|
+
private canCreate;
|
|
1408
|
+
/**
|
|
1409
|
+
* Merge custom and parent filters into data source query
|
|
1410
|
+
*/
|
|
1411
|
+
private mergeFilters;
|
|
1412
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPEntityDataSelectorService, never>;
|
|
1413
|
+
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AXPEntityDataSelectorService>;
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1416
|
+
declare class AXPLookupWidgetEditComponent extends AXPValueWidgetComponent<any> {
|
|
1417
|
+
#private;
|
|
1418
|
+
protected readonly injector: Injector;
|
|
1419
|
+
protected readonly entityResolver: AXPEntityResolver;
|
|
1420
|
+
protected readonly formatService: AXFormatService;
|
|
1421
|
+
protected readonly popupService: AXPopupService;
|
|
1422
|
+
protected readonly entityDataSelectorService: AXPEntityDataSelectorService;
|
|
1423
|
+
private readonly translateService;
|
|
1424
|
+
protected expose: _angular_core.Signal<string | any[] | undefined>;
|
|
1425
|
+
protected entity: _angular_core.Signal<string>;
|
|
1426
|
+
protected disabled: _angular_core.Signal<string>;
|
|
1427
|
+
protected columns: _angular_core.Signal<string[]>;
|
|
1428
|
+
protected textField: _angular_core.Signal<string>;
|
|
1429
|
+
protected customFilter: _angular_core.Signal<AXDataSourceFilterOption>;
|
|
1430
|
+
protected multiple: _angular_core.Signal<boolean>;
|
|
1431
|
+
protected look: _angular_core.Signal<AXPLookupWidgetLookType>;
|
|
1432
|
+
protected allowClear: _angular_core.Signal<boolean>;
|
|
1433
|
+
protected defaultTextField: _angular_core.Signal<string>;
|
|
1434
|
+
protected displayField: _angular_core.Signal<string>;
|
|
1435
|
+
protected selectedItemsText: _angular_core.Signal<string>;
|
|
1436
|
+
protected valueField: _angular_core.Signal<string>;
|
|
1437
|
+
protected conditions?: AXPQueryFilter[];
|
|
1438
|
+
protected filter: AXDataSourceFilterOption | null;
|
|
1439
|
+
private entityDef;
|
|
1440
|
+
protected dataSource: _angular_core.Signal<AXDataSource<unknown> | null>;
|
|
1441
|
+
protected searchTerm: _angular_core.WritableSignal<string | null>;
|
|
1442
|
+
protected selectedItems: _angular_core.WritableSignal<any[]>;
|
|
1443
|
+
textbox: _angular_core.Signal<AXTagBoxComponent | undefined>;
|
|
1444
|
+
protected isLoading: _angular_core.WritableSignal<boolean>;
|
|
1445
|
+
protected isOpen: _angular_core.WritableSignal<boolean>;
|
|
1446
|
+
protected placeholder: _angular_core.Signal<string>;
|
|
1447
|
+
private findByValue;
|
|
1448
|
+
protected handleOnClick(e: AXClickEvent): void;
|
|
1449
|
+
private showSelector;
|
|
1450
|
+
protected selectBoxValueChange(e: AXValueChangedEvent): void;
|
|
1451
|
+
protected handleValueChange(e: AXValueChangedEvent): void;
|
|
1452
|
+
protected handleOnBlur(e: AXFocusEvent): void;
|
|
1453
|
+
protected handleKeyUp(e: AXHtmlEvent): Promise<void>;
|
|
1454
|
+
private setItems;
|
|
1455
|
+
protected handleClearClick(): void;
|
|
1456
|
+
refresh(): void;
|
|
1457
|
+
clear(): void;
|
|
1458
|
+
clearInput(): void;
|
|
1459
|
+
private searchByValue;
|
|
1460
|
+
private mergeFilter;
|
|
1461
|
+
private singleOrMultiple;
|
|
1462
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPLookupWidgetEditComponent, never>;
|
|
1463
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXPLookupWidgetEditComponent, "axp-lookup-widget-edit", never, {}, {}, never, never, true, never>;
|
|
1464
|
+
}
|
|
1465
|
+
|
|
1466
|
+
declare class AXPLookupWidgetColumnComponent extends AXPColumnWidgetComponent<any> {
|
|
1467
|
+
private readonly entityDetailPopoverService;
|
|
1468
|
+
protected moreButton: _angular_core.Signal<ElementRef<any> | undefined>;
|
|
1469
|
+
protected morePopover: _angular_core.Signal<AXPopoverComponent | undefined>;
|
|
1470
|
+
protected host: ElementRef<any>;
|
|
1471
|
+
protected valueField: string;
|
|
1472
|
+
protected textField: string;
|
|
1473
|
+
protected entity: string;
|
|
1474
|
+
protected columnName: string;
|
|
1475
|
+
protected maxVisible: number;
|
|
1476
|
+
protected isMorePopoverOpen: _angular_core.WritableSignal<boolean>;
|
|
1477
|
+
protected selectedItemIndex: _angular_core.WritableSignal<number>;
|
|
1478
|
+
protected displayItems: _angular_core.Signal<any[]>;
|
|
1479
|
+
protected allItems: _angular_core.Signal<any[]>;
|
|
1480
|
+
protected visibleItems: _angular_core.Signal<any[]>;
|
|
1481
|
+
protected hasMoreItems: _angular_core.Signal<boolean>;
|
|
1482
|
+
protected remainingItemsCount: _angular_core.Signal<number>;
|
|
1483
|
+
protected showMoreItems(): void;
|
|
1484
|
+
protected onMorePopoverOpenChange(event: any): void;
|
|
1485
|
+
protected showItemDetail(item: any, index: number): Promise<void>;
|
|
1486
|
+
protected handleItemClick(index: number): void;
|
|
1487
|
+
private openMorePopover;
|
|
1488
|
+
private closeMorePopover;
|
|
1489
|
+
private extractItem;
|
|
1490
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPLookupWidgetColumnComponent, never>;
|
|
1491
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXPLookupWidgetColumnComponent, "ng-component", never, { "rawValue": { "alias": "rawValue"; "required": false; }; "rowData": { "alias": "rowData"; "required": false; }; }, {}, never, never, true, never>;
|
|
1492
|
+
}
|
|
1493
|
+
|
|
1494
|
+
declare const AXPLookupWidget: AXPWidgetConfig;
|
|
1495
|
+
|
|
1496
|
+
declare class AXPTagableBoxWidgetColumnComponent extends AXPValueWidgetComponent<any> {
|
|
1497
|
+
protected internalValue: _angular_core.Signal<any>;
|
|
1498
|
+
protected multiple: _angular_core.Signal<boolean>;
|
|
1499
|
+
protected useSelectBox: _angular_core.Signal<boolean>;
|
|
1500
|
+
protected textField: _angular_core.Signal<string>;
|
|
1501
|
+
protected getData: _angular_core.Signal<any[]>;
|
|
1502
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPTagableBoxWidgetColumnComponent, never>;
|
|
1503
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXPTagableBoxWidgetColumnComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
1504
|
+
}
|
|
1505
|
+
|
|
1506
|
+
declare class AXPTagableBoxWidgetEditComponent extends AXPValueWidgetComponent<any> {
|
|
1507
|
+
protected entityResolver: AXPEntityResolver;
|
|
1508
|
+
protected hasClearButton: _angular_core.Signal<boolean>;
|
|
1509
|
+
protected disabled: _angular_core.Signal<boolean>;
|
|
1510
|
+
protected placeholder: _angular_core.Signal<string>;
|
|
1511
|
+
protected moduleName: _angular_core.Signal<string>;
|
|
1512
|
+
protected entityName: _angular_core.Signal<string>;
|
|
1513
|
+
protected allowSearch: _angular_core.Signal<boolean>;
|
|
1514
|
+
protected _dataSource: AXDataSource<any>;
|
|
1515
|
+
protected handleSelectValueChange(e: AXValueChangedEvent): void;
|
|
1516
|
+
protected addItem(): void;
|
|
1517
|
+
private get __class();
|
|
1518
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPTagableBoxWidgetEditComponent, never>;
|
|
1519
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXPTagableBoxWidgetEditComponent, "axp-tagable-box-widget", never, {}, {}, never, never, true, never>;
|
|
1520
|
+
}
|
|
1521
|
+
|
|
1522
|
+
declare class AXPTagableBoxWidgetFilterComponent extends AXPValueWidgetComponent<any> {
|
|
1523
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPTagableBoxWidgetFilterComponent, never>;
|
|
1524
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXPTagableBoxWidgetFilterComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
1525
|
+
}
|
|
1526
|
+
|
|
1527
|
+
declare class AXPTagableBoxWidgetPrintComponent extends AXPValueWidgetComponent<any> {
|
|
1528
|
+
protected internalValue: _angular_core.Signal<any>;
|
|
1529
|
+
protected multiple: _angular_core.Signal<boolean>;
|
|
1530
|
+
protected useSelectBox: _angular_core.Signal<boolean>;
|
|
1531
|
+
protected textField: _angular_core.Signal<string>;
|
|
1532
|
+
protected getData: _angular_core.Signal<any[]>;
|
|
1533
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPTagableBoxWidgetPrintComponent, never>;
|
|
1534
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXPTagableBoxWidgetPrintComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
1535
|
+
}
|
|
1536
|
+
|
|
1537
|
+
declare class AXPTagableBoxWidgetViewComponent extends AXPValueWidgetComponent<any> {
|
|
1538
|
+
protected internalValue: _angular_core.Signal<any>;
|
|
1539
|
+
protected multiple: _angular_core.Signal<boolean>;
|
|
1540
|
+
protected useSelectBox: _angular_core.Signal<boolean>;
|
|
1541
|
+
protected textField: _angular_core.Signal<string>;
|
|
1542
|
+
protected getData: _angular_core.Signal<any[]>;
|
|
1543
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPTagableBoxWidgetViewComponent, never>;
|
|
1544
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXPTagableBoxWidgetViewComponent, "axp-tagable-box-widget", never, {}, {}, never, never, true, never>;
|
|
1545
|
+
}
|
|
1546
|
+
|
|
1547
|
+
declare const AXPTagableBoxWidget: AXPWidgetConfig;
|
|
1548
|
+
declare module '@acorex/platform/layout/widget-core' {
|
|
1549
|
+
interface AXPWidgetTypesMap {
|
|
1550
|
+
tagable: 'tagable-editor';
|
|
1551
|
+
}
|
|
1552
|
+
}
|
|
1553
|
+
|
|
1554
|
+
declare class AXPWidgetSelectorWidgetEditComponent extends AXPValueWidgetComponent<any> {
|
|
1555
|
+
private popupService;
|
|
1556
|
+
private widgetRegisteryService;
|
|
1557
|
+
textbox: AXTextBoxComponent;
|
|
1558
|
+
protected searchTerm: _angular_core.WritableSignal<string | null>;
|
|
1559
|
+
protected isOpen: _angular_core.WritableSignal<boolean>;
|
|
1560
|
+
protected textField: _angular_core.WritableSignal<string>;
|
|
1561
|
+
protected displayText: _angular_core.Signal<any>;
|
|
1562
|
+
protected selectedWidgetNode: _angular_core.WritableSignal<AXPWidgetNode | null>;
|
|
1563
|
+
protected selectedItem: _angular_core.WritableSignal<any>;
|
|
1564
|
+
protected placeholder: _angular_core.Signal<any>;
|
|
1565
|
+
protected loading: _angular_core.Signal<boolean>;
|
|
1566
|
+
ngAfterViewInit(): void;
|
|
1567
|
+
showSelector(): Promise<void>;
|
|
1568
|
+
protected convertWidgetConfigToNode(config: AXPWidgetConfig): AXPWidgetNode;
|
|
1569
|
+
protected handleChangeWidget(e: AXPWidgetPropertiesChangedEvent): void;
|
|
1570
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPWidgetSelectorWidgetEditComponent, never>;
|
|
1571
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXPWidgetSelectorWidgetEditComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
1572
|
+
}
|
|
1573
|
+
|
|
1574
|
+
declare class AXPWidgetSelectorWidgetViewComponent extends AXPValueWidgetComponent<any> {
|
|
1575
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPWidgetSelectorWidgetViewComponent, never>;
|
|
1576
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXPWidgetSelectorWidgetViewComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
1577
|
+
}
|
|
1578
|
+
|
|
1579
|
+
declare const AXPWidgetSelectorWidget: AXPWidgetConfig;
|
|
1580
|
+
declare module '@acorex/platform/layout/widget-core' {
|
|
1581
|
+
interface AXPWidgetTypesMap {
|
|
1582
|
+
widgetSelector: 'widget-selector';
|
|
1583
|
+
}
|
|
774
1584
|
}
|
|
775
1585
|
|
|
776
1586
|
declare const AXPEntityCreateEvent: {
|
|
@@ -902,118 +1712,5 @@ declare class AXPShowListViewAction extends AXPWorkflowAction {
|
|
|
902
1712
|
}
|
|
903
1713
|
declare const AXPShowListViewWorkflow: AXPWorkflow;
|
|
904
1714
|
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
data: {
|
|
908
|
-
id: string;
|
|
909
|
-
};
|
|
910
|
-
}
|
|
911
|
-
interface AXPOpenEntityDetailsCommandResult {
|
|
912
|
-
success: boolean;
|
|
913
|
-
}
|
|
914
|
-
/**
|
|
915
|
-
* Generic command to open entity details view
|
|
916
|
-
* Can be used by any entity to navigate to its detail page
|
|
917
|
-
*/
|
|
918
|
-
declare class AXPOpenEntityDetailsCommand implements AXPCommand<AXPOpenEntityDetailsCommandInput, AXPOpenEntityDetailsCommandResult> {
|
|
919
|
-
private readonly router;
|
|
920
|
-
private readonly sessionService;
|
|
921
|
-
/**
|
|
922
|
-
* Execute the command to navigate to entity details
|
|
923
|
-
* @param input - Command input containing entity and data information
|
|
924
|
-
*/
|
|
925
|
-
execute(input: AXPOpenEntityDetailsCommandInput): Promise<AXPOpenEntityDetailsCommandResult>;
|
|
926
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPOpenEntityDetailsCommand, never>;
|
|
927
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AXPOpenEntityDetailsCommand>;
|
|
928
|
-
}
|
|
929
|
-
|
|
930
|
-
interface AXPGetEntityDetailsQueryInput {
|
|
931
|
-
entity: string;
|
|
932
|
-
id: string;
|
|
933
|
-
}
|
|
934
|
-
interface AXPGetEntityDetailsQueryResult {
|
|
935
|
-
success: boolean;
|
|
936
|
-
entityDefinition?: AXPEntity;
|
|
937
|
-
entityData?: any;
|
|
938
|
-
error?: string;
|
|
939
|
-
}
|
|
940
|
-
/**
|
|
941
|
-
* Generic query to get entity details including entity definition and entity data
|
|
942
|
-
* Can be used by any entity to retrieve its definition and data by ID
|
|
943
|
-
*/
|
|
944
|
-
declare class AXPGetEntityDetailsQuery implements AXPQuery<AXPGetEntityDetailsQueryInput, AXPGetEntityDetailsQueryResult> {
|
|
945
|
-
private readonly entityDefinitionRegistry;
|
|
946
|
-
private readonly injector;
|
|
947
|
-
/**
|
|
948
|
-
* Execute the query to fetch entity definition and data
|
|
949
|
-
* @param input - Query input containing entity and ID information
|
|
950
|
-
*/
|
|
951
|
-
fetch(input: AXPGetEntityDetailsQueryInput): Promise<AXPGetEntityDetailsQueryResult>;
|
|
952
|
-
/**
|
|
953
|
-
* Get entity data using the entity's CRUD service
|
|
954
|
-
* @param entity - Full entity path (ModuleName.EntityName)
|
|
955
|
-
* @param id - Entity ID
|
|
956
|
-
* @returns Promise resolving to entity data
|
|
957
|
-
*/
|
|
958
|
-
private getEntityData;
|
|
959
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPGetEntityDetailsQuery, never>;
|
|
960
|
-
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AXPGetEntityDetailsQuery>;
|
|
961
|
-
}
|
|
962
|
-
|
|
963
|
-
declare function entityMasterCreateAction(): AXPEntityAction;
|
|
964
|
-
declare function entityMasterBulkDeleteAction(): AXPEntityAction;
|
|
965
|
-
declare function entityMasterViewAction(): AXPEntityAction;
|
|
966
|
-
declare function entityMasterDeleteAction(): AXPEntityAction;
|
|
967
|
-
declare function entityMasterCrudActions(): AXPEntityAction[];
|
|
968
|
-
declare function entityMasterRecordActions(): AXPEntityAction[];
|
|
969
|
-
declare function entityDetailsCreateActions(parentId: string): AXPEntityAction;
|
|
970
|
-
declare function entityDetailsSimpleCondition(fk: string): AXPQueryFilter;
|
|
971
|
-
declare function entityDetailsReferenceCondition(type: string): AXPQueryFilter[];
|
|
972
|
-
declare function entityDetailsEditAction(): AXPEntityAction;
|
|
973
|
-
declare function entityOverrideDetailsViewAction(): AXPEntityAction;
|
|
974
|
-
declare function entityDetailsCrudActions(parentId: string): AXPEntityAction[];
|
|
975
|
-
declare function entityDetailsReferenceCreateActions(type: string): AXPEntityAction[];
|
|
976
|
-
type AXPEntityChangeSet = {
|
|
977
|
-
[key: string]: {
|
|
978
|
-
oldValue: any;
|
|
979
|
-
newValue: any;
|
|
980
|
-
added?: any[];
|
|
981
|
-
removed?: any[];
|
|
982
|
-
};
|
|
983
|
-
};
|
|
984
|
-
/**
|
|
985
|
-
* Computes a diff between two plain objects with array-aware semantics.
|
|
986
|
-
* - For arrays of objects with an id field, computes added/removed by id.
|
|
987
|
-
* - For arrays of primitives or objects without id, uses deep equality.
|
|
988
|
-
* - For scalars/objects, reports oldValue/newValue when changed.
|
|
989
|
-
*/
|
|
990
|
-
declare function detectEntityChanges(oldObj: any, newObj: any): AXPEntityChangeSet;
|
|
991
|
-
|
|
992
|
-
declare const eventDispatchMiddleware: AXPEntityStorageMiddleware;
|
|
993
|
-
|
|
994
|
-
/**
|
|
995
|
-
* Map of column name -> width value
|
|
996
|
-
* Example: { title: '300px', description: '300px' }
|
|
997
|
-
*/
|
|
998
|
-
type ColumnWidthConfig = Record<string, string | number>;
|
|
999
|
-
/**
|
|
1000
|
-
* Default widths for common text columns
|
|
1001
|
-
*/
|
|
1002
|
-
declare const DEFAULT_COLUMN_WIDTHS: ColumnWidthConfig;
|
|
1003
|
-
/**
|
|
1004
|
-
* Factory to create a column width middleware using provided config map.
|
|
1005
|
-
* Sets width for columns defined in the map if not already defined on the column.
|
|
1006
|
-
*/
|
|
1007
|
-
declare const columnWidthMiddlewareFactory: (widths: ColumnWidthConfig) => AXPEntityModifier;
|
|
1008
|
-
/**
|
|
1009
|
-
* Helper to create a provider for the column width middleware.
|
|
1010
|
-
* By default it applies to all entities using the '*' pattern.
|
|
1011
|
-
*/
|
|
1012
|
-
declare const createColumnWidthMiddlewareProvider: (widths: ColumnWidthConfig, entityName?: string | RegExp) => AXPEntityModifierProvider;
|
|
1013
|
-
/**
|
|
1014
|
-
* Default provider registered with the default map.
|
|
1015
|
-
*/
|
|
1016
|
-
declare const columnWidthMiddlewareProvider: AXPEntityModifierProvider;
|
|
1017
|
-
|
|
1018
|
-
export { AXMEntityCrudService, AXMEntityCrudServiceImpl, AXPCreateEntityWorkflow, AXPDataSeederService, AXPDeleteEntityWorkflow, AXPEntityApplyUpdatesAction, AXPEntityCommandTriggerViewModel, AXPEntityCreateEvent, AXPEntityCreatePopupAction, AXPEntityCreateSubmittedAction, AXPEntityCreateViewElementViewModel, AXPEntityCreateViewModelFactory, AXPEntityCreateViewSectionViewModel, AXPEntityDataProvider, AXPEntityDataProviderImpl, AXPEntityDefinitionRegistryService, AXPEntityDeletedEvent, AXPEntityDetailListViewModel, AXPEntityDetailViewModelFactory, AXPEntityDetailViewModelResolver, AXPEntityEventDispatcherService, AXPEntityListViewColumnViewModel, AXPEntityListViewModelFactory, AXPEntityListViewModelResolver, AXPEntityMasterCreateViewModel, AXPEntityMasterListViewModel, AXPEntityMasterListViewQueryViewModel, AXPEntityMasterSingleElementViewModel, AXPEntityMasterSingleViewGroupViewModel, AXPEntityMasterSingleViewModel, AXPEntityMasterUpdateElementViewModel, AXPEntityMasterUpdateViewModel, AXPEntityMasterUpdateViewModelFactory, AXPEntityMiddleware, AXPEntityModifyConfirmedAction, AXPEntityModifyEvent, AXPEntityModifySectionPopupAction, AXPEntityModule, AXPEntityPerformDeleteAction, AXPEntityResolver, AXPEntityService, AXPEntityStorageService, AXPGetEntityDetailsQuery, AXPMiddlewareEntityStorageService, AXPModifyEntitySectionWorkflow, AXPOpenEntityDetailsCommand, AXPQuickEntityModifyPopupAction, AXPQuickModifyEntityWorkflow, AXPShowDetailViewAction, AXPShowDetailsViewWorkflow, AXPShowListViewAction, AXPShowListViewWorkflow, AXP_DATA_SEEDER_TOKEN, AXP_ENTITY_ACTION_PLUGIN, AXP_ENTITY_CONFIG_TOKEN, AXP_ENTITY_DEFINITION_LOADER, AXP_ENTITY_MODIFIER, AXP_ENTITY_STORAGE_BACKEND, AXP_ENTITY_STORAGE_MIDDLEWARE, DEFAULT_COLUMN_WIDTHS, actionExists, columnWidthMiddlewareFactory, columnWidthMiddlewareProvider, createColumnWidthMiddlewareProvider, createModifierContext, detectEntityChanges, ensureListActions, entityDetailsCreateActions, entityDetailsCrudActions, entityDetailsEditAction, entityDetailsReferenceCondition, entityDetailsReferenceCreateActions, entityDetailsSimpleCondition, entityMasterBulkDeleteAction, entityMasterCreateAction, entityMasterCrudActions, entityMasterDeleteAction, entityMasterRecordActions, entityMasterViewAction, entityOverrideDetailsViewAction, eventDispatchMiddleware };
|
|
1019
|
-
export type { AXPAuditable, AXPDataSeeder, AXPEntityActionPlugin, AXPEntityChangeSet, AXPEntityConfigs, AXPEntityCreateDto, AXPEntityDefinitionLoader, AXPEntityDefinitionPreloader, AXPEntityDeleteOptions, AXPEntityDetailDto, AXPEntityListItemDto, AXPEntityMasterListViewSortPropViewModel, AXPEntityModel, AXPEntityModifier, AXPEntityModifierContext, AXPEntityModifierProvider, AXPEntityOp, AXPEntityOutputDto, AXPEntityPreloadEntity, AXPEntityStorageContext, AXPEntityStorageMiddleware, AXPEntityUpdateDto, AXPGetEntityDetailsQueryInput, AXPGetEntityDetailsQueryResult, AXPOpenEntityDetailsCommandInput, AXPOpenEntityDetailsCommandResult, ColumnWidthConfig };
|
|
1715
|
+
export { AXMEntityCrudService, AXMEntityCrudServiceImpl, AXPCreateEntityWorkflow, AXPDataSeederService, AXPDeleteEntityWorkflow, AXPEntityApplyUpdatesAction, AXPEntityCommandTriggerViewModel, AXPEntityCreateEvent, AXPEntityCreatePopupAction, AXPEntityCreateSubmittedAction, AXPEntityCreateViewElementViewModel, AXPEntityCreateViewModelFactory, AXPEntityCreateViewSectionViewModel, AXPEntityDataProvider, AXPEntityDataProviderImpl, AXPEntityDataSelectorService, AXPEntityDefinitionRegistryService, AXPEntityDeletedEvent, AXPEntityDetailListViewModel, AXPEntityDetailPopoverComponent, AXPEntityDetailPopoverService, AXPEntityDetailViewModelFactory, AXPEntityDetailViewModelResolver, AXPEntityDynamicDialogService, AXPEntityEventDispatcherService, AXPEntityListTableService, AXPEntityListViewColumnViewModel, AXPEntityListViewModelFactory, AXPEntityListViewModelResolver, AXPEntityListWidget, AXPEntityListWidgetViewComponent, AXPEntityMasterCreateViewModel, AXPEntityMasterListViewModel, AXPEntityMasterListViewQueryViewModel, AXPEntityMasterSingleElementViewModel, AXPEntityMasterSingleViewGroupViewModel, AXPEntityMasterSingleViewModel, AXPEntityMasterUpdateElementViewModel, AXPEntityMasterUpdateViewModel, AXPEntityMasterUpdateViewModelFactory, AXPEntityMiddleware, AXPEntityModifyConfirmedAction, AXPEntityModifyEvent, AXPEntityModifySectionPopupAction, AXPEntityModule, AXPEntityPerformDeleteAction, AXPEntityReferenceWidget, AXPEntityReferenceWidgetColumnComponent, AXPEntityReferenceWidgetDesignerComponent, AXPEntityReferenceWidgetEditComponent, AXPEntityReferenceWidgetPrintComponent, AXPEntityReferenceWidgetViewComponent, AXPEntityResolver, AXPEntityService, AXPEntityStorageService, AXPEntityUpdateViewSectionViewModel, AXPGetEntityDetailsQuery, AXPLookupFilterWidget, AXPLookupFilterWidgetEditComponent, AXPLookupWidget, AXPLookupWidgetColumnComponent, AXPLookupWidgetEditComponent, AXPLookupWidgetViewComponent, AXPMiddlewareAbortError, AXPMiddlewareEntityStorageService, AXPModifyEntitySectionWorkflow, AXPOpenEntityDetailsCommand, AXPQuickEntityModifyPopupAction, AXPQuickModifyEntityWorkflow, AXPShowDetailViewAction, AXPShowDetailsViewWorkflow, AXPShowListViewAction, AXPShowListViewWorkflow, AXPTagableBoxWidget, AXPTagableBoxWidgetColumnComponent, AXPTagableBoxWidgetEditComponent, AXPTagableBoxWidgetFilterComponent, AXPTagableBoxWidgetPrintComponent, AXPTagableBoxWidgetViewComponent, AXPWidgetSelectorWidget, AXPWidgetSelectorWidgetEditComponent, AXPWidgetSelectorWidgetViewComponent, AXP_DATA_SEEDER_TOKEN, AXP_ENTITY_ACTION_PLUGIN, AXP_ENTITY_CONFIG_TOKEN, AXP_ENTITY_DEFINITION_LOADER, AXP_ENTITY_MODIFIER, AXP_ENTITY_STORAGE_BACKEND, AXP_ENTITY_STORAGE_MIDDLEWARE, DEFAULT_COLUMN_WIDTHS, actionExists, columnWidthMiddlewareFactory, columnWidthMiddlewareProvider, createColumnWidthMiddlewareProvider, createModifierContext, detectEntityChanges, ensureListActions, entityDetailsCreateActions, entityDetailsCrudActions, entityDetailsEditAction, entityDetailsReferenceCondition, entityDetailsReferenceCreateActions, entityDetailsSimpleCondition, entityMasterBulkDeleteAction, entityMasterCreateAction, entityMasterCrudActions, entityMasterDeleteAction, entityMasterRecordActions, entityMasterViewAction, entityOverrideDetailsViewAction, eventDispatchMiddleware, isAXPMiddlewareAbortError };
|
|
1716
|
+
export type { AXPAuditable, AXPDataSeeder, AXPEntityActionPlugin, AXPEntityChangeSet, AXPEntityConfigs, AXPEntityCreateDto, AXPEntityDataSelectorOptions, AXPEntityDataSelectorResult, AXPEntityDefinitionLoader, AXPEntityDefinitionPreloader, AXPEntityDeleteOptions, AXPEntityDetailDto, AXPEntityDetailPopoverOptions, AXPEntityListItemDto, AXPEntityMasterListViewSortPropViewModel, AXPEntityModel, AXPEntityModifier, AXPEntityModifierContext, AXPEntityModifierProvider, AXPEntityOp, AXPEntityOutputDto, AXPEntityPreloadEntity, AXPEntityStorageContext, AXPEntityStorageMiddleware, AXPEntityUpdateDto, AXPGetEntityDetailsQueryInput, AXPGetEntityDetailsQueryResult, AXPLookupWidgetLookType, AXPLookupWidgetOptions, AXPOpenEntityDetailsCommandInput, AXPOpenEntityDetailsCommandResult, AXPRecordControl, AXPRecordOwnership, ColumnWidthConfig };
|