@acorex/platform 20.2.4-next.2 → 20.2.4-next.5
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 +30 -4
- package/core/index.d.ts +5 -1
- package/fesm2022/acorex-platform-common.mjs +2 -0
- package/fesm2022/acorex-platform-common.mjs.map +1 -1
- package/fesm2022/acorex-platform-core.mjs +4 -1
- package/fesm2022/acorex-platform-core.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-builder.mjs +9 -0
- package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-components.mjs +26 -36
- package/fesm2022/acorex-platform-layout-components.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs +770 -243
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-views.mjs +37 -24
- package/fesm2022/acorex-platform-layout-views.mjs.map +1 -1
- package/fesm2022/{acorex-platform-themes-default-entity-master-list-view.component-DXGLsVis.mjs → acorex-platform-themes-default-entity-master-list-view.component-D3VUh8K8.mjs} +5 -4
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-D3VUh8K8.mjs.map +1 -0
- package/fesm2022/{acorex-platform-themes-default-entity-master-single-view.component-CVaJzWb2.mjs → acorex-platform-themes-default-entity-master-single-view.component-BMkhNfF4.mjs} +3 -3
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-BMkhNfF4.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default.mjs +6 -6
- package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
- package/fesm2022/{acorex-platform-widgets-checkbox-widget-column.component-BNBOATPB.mjs → acorex-platform-widgets-checkbox-widget-column.component-DeKpl0uK.mjs} +1 -2
- package/fesm2022/acorex-platform-widgets-checkbox-widget-column.component-DeKpl0uK.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets-file-list-popup.component-B601gPsW.mjs → acorex-platform-widgets-file-list-popup.component-BafU5Lfl.mjs} +4 -2
- package/fesm2022/acorex-platform-widgets-file-list-popup.component-BafU5Lfl.mjs.map +1 -0
- package/fesm2022/acorex-platform-widgets.mjs +231 -71
- package/fesm2022/acorex-platform-widgets.mjs.map +1 -1
- package/layout/builder/index.d.ts +4 -0
- package/layout/components/index.d.ts +1 -5
- package/layout/entity/index.d.ts +4 -5
- package/layout/views/index.d.ts +7 -0
- package/package.json +1 -1
- package/widgets/index.d.ts +25 -2
- package/fesm2022/acorex-platform-themes-default-entity-master-list-view.component-DXGLsVis.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-CVaJzWb2.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-checkbox-widget-column.component-BNBOATPB.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-file-list-popup.component-B601gPsW.mjs.map +0 -1
|
@@ -130,6 +130,7 @@ interface AXPWidgetTypesMap {
|
|
|
130
130
|
list: 'list';
|
|
131
131
|
listToolbar: 'list-toolbar';
|
|
132
132
|
entityList: 'entity-list';
|
|
133
|
+
documentUploader: 'document-uploader';
|
|
133
134
|
}
|
|
134
135
|
|
|
135
136
|
declare enum AXPPageStatus {
|
|
@@ -572,6 +573,9 @@ declare abstract class AXPColumnWidgetComponent<T = any | null | void> {
|
|
|
572
573
|
protected readonly options: _acorex_platform_core.AXPOptionsData;
|
|
573
574
|
protected readonly rawValue: T;
|
|
574
575
|
protected readonly rowData: any;
|
|
576
|
+
protected readonly nullText: any;
|
|
577
|
+
protected readonly nullValue: T;
|
|
578
|
+
protected value: _angular_core.Signal<T>;
|
|
575
579
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPColumnWidgetComponent<any>, never>;
|
|
576
580
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AXPColumnWidgetComponent<any>>;
|
|
577
581
|
}
|
|
@@ -436,10 +436,6 @@ declare class AXPDynamicFormComponent implements OnInit {
|
|
|
436
436
|
* Computed layout configuration
|
|
437
437
|
*/
|
|
438
438
|
protected computedLayout: _angular_core.Signal<AXPDynamicFormLayoutConfig>;
|
|
439
|
-
/**
|
|
440
|
-
* Computed form definition
|
|
441
|
-
*/
|
|
442
|
-
protected computedFormDefinition: _angular_core.Signal<AXPDynamicFormDefinition>;
|
|
443
439
|
/**
|
|
444
440
|
* Host classes based on layout style
|
|
445
441
|
*/
|
|
@@ -581,7 +577,7 @@ declare class AXPExtraPropertiesValuesComponent {
|
|
|
581
577
|
values: _angular_core.InputSignal<Record<string, any>>;
|
|
582
578
|
mode: _angular_core.InputSignal<"edit" | "view">;
|
|
583
579
|
valuesChange: _angular_core.OutputEmitterRef<Record<string, any>>;
|
|
584
|
-
|
|
580
|
+
isRequired: (item: AXPExtraPropertySchemaItem) => any;
|
|
585
581
|
protected internalContext: _angular_core.WritableSignal<Record<string, any>>;
|
|
586
582
|
private nodeCache;
|
|
587
583
|
private lastTypeByKey;
|
package/layout/entity/index.d.ts
CHANGED
|
@@ -41,8 +41,8 @@ declare class AXPEntityCommandTriggerViewModel {
|
|
|
41
41
|
constructor(entity: AXPEntity, action: AXPEntityAction);
|
|
42
42
|
}
|
|
43
43
|
declare class AXPEntityListViewColumnViewModel {
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
readonly property: AXPEntityProperty;
|
|
45
|
+
readonly column: AXPEntityTableColumn;
|
|
46
46
|
constructor(property: AXPEntityProperty, column: AXPEntityTableColumn);
|
|
47
47
|
name: string;
|
|
48
48
|
title: string;
|
|
@@ -263,7 +263,6 @@ declare class AXPEntityMasterSingleViewGroupViewModel {
|
|
|
263
263
|
group: _acorex_platform_common.AXPEntityPropertyGroup;
|
|
264
264
|
name: _angular_core.WritableSignal<string>;
|
|
265
265
|
isLoading: _angular_core.WritableSignal<boolean>;
|
|
266
|
-
type: _angular_core.WritableSignal<"wrapper" | "section">;
|
|
267
266
|
title: _angular_core.Signal<string>;
|
|
268
267
|
description: _angular_core.Signal<string | null | undefined>;
|
|
269
268
|
layout: _angular_core.Signal<AXPGridLayoutOptions>;
|
|
@@ -910,11 +909,11 @@ declare function entityMasterCrudActions(): AXPEntityAction[];
|
|
|
910
909
|
declare function entityMasterRecordActions(): AXPEntityAction[];
|
|
911
910
|
declare function entityDetailsCreateActions(parentId: string): AXPEntityAction;
|
|
912
911
|
declare function entityDetailsSimpleCondition(fk: string): AXPQueryFilter;
|
|
913
|
-
declare function entityDetailsReferenceCondition(): AXPQueryFilter[];
|
|
912
|
+
declare function entityDetailsReferenceCondition(type: string): AXPQueryFilter[];
|
|
914
913
|
declare function entityDetailsEditAction(): AXPEntityAction;
|
|
915
914
|
declare function entityOverrideDetailsViewAction(): AXPEntityAction;
|
|
916
915
|
declare function entityDetailsCrudActions(parentId: string): AXPEntityAction[];
|
|
917
|
-
declare function entityDetailsReferenceCreateActions(): AXPEntityAction[];
|
|
916
|
+
declare function entityDetailsReferenceCreateActions(type: string): AXPEntityAction[];
|
|
918
917
|
type AXPEntityChangeSet = {
|
|
919
918
|
[key: string]: {
|
|
920
919
|
oldValue: any;
|
package/layout/views/index.d.ts
CHANGED
|
@@ -433,6 +433,7 @@ interface AXPLayoutDetailsViewPage {
|
|
|
433
433
|
content?: AXPWidgetNode[];
|
|
434
434
|
tabs?: AXPLayoutDetailsViewTabItem[];
|
|
435
435
|
actions?: AXPLayoutDetailsViewAction[];
|
|
436
|
+
isPrimary?: boolean;
|
|
436
437
|
settings?: {
|
|
437
438
|
commands?: {
|
|
438
439
|
accept?: {
|
|
@@ -453,7 +454,9 @@ interface AXPLayoutDetailsViewPage {
|
|
|
453
454
|
execute?: (command: AXPExecuteCommand, context: {}) => Promise<AXPExecuteCommandResult>;
|
|
454
455
|
}
|
|
455
456
|
interface AXPLayoutDetailsViewAdapter {
|
|
457
|
+
name: string;
|
|
456
458
|
title?: string;
|
|
459
|
+
label?: string;
|
|
457
460
|
description?: string;
|
|
458
461
|
icon?: string;
|
|
459
462
|
actions?: AXPLayoutDetailsViewAction[];
|
|
@@ -508,6 +511,7 @@ declare const AXPLayoutDetailsViewViewModel: _angular_core.Type<{
|
|
|
508
511
|
getRenderedTabContent: (tabId: string) => _acorex_platform_layout_builder.AXPWidgetNode[];
|
|
509
512
|
clearPageTabCache: (pageId: string) => void;
|
|
510
513
|
title: () => string | null;
|
|
514
|
+
backButtonTitle: () => string | null;
|
|
511
515
|
description: () => string | null;
|
|
512
516
|
primaryActions: () => Promise<any>;
|
|
513
517
|
secondaryActions: () => Promise<any>;
|
|
@@ -519,6 +523,7 @@ declare const AXPLayoutDetailsViewViewModel: _angular_core.Type<{
|
|
|
519
523
|
}[]>;
|
|
520
524
|
discard: () => Promise<void>;
|
|
521
525
|
save: (command: AXPExecuteCommand, form: AXFormComponent) => Promise<void>;
|
|
526
|
+
goToListPage: () => void;
|
|
522
527
|
} & _ngrx_signals.StateSource<{
|
|
523
528
|
adapter: AXPLayoutDetailsViewAdapter | null;
|
|
524
529
|
rootContext: Record<string, any>;
|
|
@@ -583,6 +588,7 @@ declare class AXPLayoutDetailsViewComponent extends AXPPageLayoutBaseComponent i
|
|
|
583
588
|
getRenderedTabContent: (tabId: string) => _acorex_platform_layout_builder.AXPWidgetNode[];
|
|
584
589
|
clearPageTabCache: (pageId: string) => void;
|
|
585
590
|
title: () => string | null;
|
|
591
|
+
backButtonTitle: () => string | null;
|
|
586
592
|
description: () => string | null;
|
|
587
593
|
primaryActions: () => Promise<any>;
|
|
588
594
|
secondaryActions: () => Promise<any>;
|
|
@@ -594,6 +600,7 @@ declare class AXPLayoutDetailsViewComponent extends AXPPageLayoutBaseComponent i
|
|
|
594
600
|
}[]>;
|
|
595
601
|
discard: () => Promise<void>;
|
|
596
602
|
save: (command: AXPExecuteCommand, form: AXFormComponent) => Promise<void>;
|
|
603
|
+
goToListPage: () => void;
|
|
597
604
|
} & _ngrx_signals.StateSource<{
|
|
598
605
|
adapter: AXPLayoutDetailsViewAdapter | null;
|
|
599
606
|
rootContext: Record<string, any>;
|
package/package.json
CHANGED
package/widgets/index.d.ts
CHANGED
|
@@ -9,6 +9,7 @@ import { AXPClipBoardService, AXPLanguage } from '@acorex/platform/common';
|
|
|
9
9
|
import { AXValidationService } from '@acorex/core/validation';
|
|
10
10
|
import { AXTranslationService } from '@acorex/core/translation';
|
|
11
11
|
import { AXNumberFormatterOptions } from '@acorex/core/format';
|
|
12
|
+
import { AXSelectionListLook } from '@acorex/components/selection-list';
|
|
12
13
|
import { AXFileService } from '@acorex/core/file';
|
|
13
14
|
import { AXMediaViewerData } from '@acorex/components/media-viewer';
|
|
14
15
|
import { AXBasePageComponent } from '@acorex/components/page';
|
|
@@ -535,7 +536,7 @@ declare class AXPNumberBoxWidgetFilterComponent extends AXPValueWidgetComponent<
|
|
|
535
536
|
|
|
536
537
|
declare class AXPNumberBoxWidgetColumnComponent extends AXPColumnWidgetComponent<any> {
|
|
537
538
|
private formatService;
|
|
538
|
-
value: _angular_core.Signal<
|
|
539
|
+
protected value: _angular_core.Signal<any>;
|
|
539
540
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPNumberBoxWidgetColumnComponent, never>;
|
|
540
541
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXPNumberBoxWidgetColumnComponent, "axp-number-box-widget-column", never, { "rawValue": { "alias": "rawValue"; "required": false; }; "rowData": { "alias": "rowData"; "required": false; }; }, {}, never, never, true, never>;
|
|
541
542
|
}
|
|
@@ -764,8 +765,18 @@ declare class AXPSelectBoxWidgetEditComponent extends AXPDataListWidgetComponent
|
|
|
764
765
|
private selectBox;
|
|
765
766
|
protected widgetsConfigs: StrategyConfig;
|
|
766
767
|
private readonly filterOperatorMiddleware;
|
|
768
|
+
/**
|
|
769
|
+
* Expose configuration similar to lookup widget. Can be:
|
|
770
|
+
* - string path(s): 'field.path'
|
|
771
|
+
* - mapping objects: { source: 'field.path', target: 'context.target.path' }
|
|
772
|
+
*/
|
|
773
|
+
protected expose: _angular_core.Signal<string | (string | {
|
|
774
|
+
source: string;
|
|
775
|
+
target: string;
|
|
776
|
+
})[] | undefined>;
|
|
767
777
|
protected multiple: _angular_core.Signal<boolean>;
|
|
768
778
|
protected disabled: _angular_core.Signal<boolean>;
|
|
779
|
+
protected readonly: _angular_core.Signal<boolean>;
|
|
769
780
|
protected placeholder: _angular_core.Signal<string>;
|
|
770
781
|
protected hasClearButton: _angular_core.Signal<boolean>;
|
|
771
782
|
protected allowSearch: _angular_core.Signal<boolean>;
|
|
@@ -779,6 +790,10 @@ declare class AXPSelectBoxWidgetEditComponent extends AXPDataListWidgetComponent
|
|
|
779
790
|
clear(): void;
|
|
780
791
|
protected get item(): any;
|
|
781
792
|
private get __class();
|
|
793
|
+
/**
|
|
794
|
+
* Return a single value for single-select, or the full list for multi-select
|
|
795
|
+
*/
|
|
796
|
+
private singleOrMultiple;
|
|
782
797
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPSelectBoxWidgetEditComponent, never>;
|
|
783
798
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXPSelectBoxWidgetEditComponent, "axp-select-box-widget-edit", never, {}, {}, never, never, true, never>;
|
|
784
799
|
}
|
|
@@ -817,6 +832,7 @@ declare class AXPSelectionListWidgetViewComponent extends AXPValueWidgetComponen
|
|
|
817
832
|
protected items: _angular_core.Signal<any[]>;
|
|
818
833
|
protected valueField: _angular_core.Signal<string>;
|
|
819
834
|
protected textField: _angular_core.Signal<string>;
|
|
835
|
+
protected imageMode: _angular_core.Signal<boolean>;
|
|
820
836
|
protected internalValue: _angular_core.Signal<any[]>;
|
|
821
837
|
private get __class();
|
|
822
838
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPSelectionListWidgetViewComponent, never>;
|
|
@@ -841,6 +857,9 @@ declare class AXPSelectionListWidgetEditComponent extends AXPDataListWidgetCompo
|
|
|
841
857
|
protected direction: _angular_core.Signal<AXDirection>;
|
|
842
858
|
protected disabled: _angular_core.Signal<boolean>;
|
|
843
859
|
protected readonly: _angular_core.Signal<boolean>;
|
|
860
|
+
protected look: _angular_core.Signal<AXSelectionListLook>;
|
|
861
|
+
protected showControl: _angular_core.Signal<boolean>;
|
|
862
|
+
protected imageMode: _angular_core.Signal<boolean>;
|
|
844
863
|
protected displayItems: _angular_core.WritableSignal<any[]>;
|
|
845
864
|
private ef;
|
|
846
865
|
protected handleValueChange(e: AXValueChangedEvent): void;
|
|
@@ -859,6 +878,7 @@ declare class AXPSelectionListWidgetColumnComponent extends AXPColumnWidgetCompo
|
|
|
859
878
|
protected textField: string;
|
|
860
879
|
protected items: any[];
|
|
861
880
|
protected multiple: boolean;
|
|
881
|
+
protected imageMode: boolean;
|
|
862
882
|
protected selectedItemIds: Signal<string[]>;
|
|
863
883
|
protected selectedItems: Signal<any[]>;
|
|
864
884
|
protected firstItem: Signal<any>;
|
|
@@ -1041,7 +1061,6 @@ declare class AXPToggleWidgetColumnComponent extends AXPColumnWidgetComponent<bo
|
|
|
1041
1061
|
protected negative: boolean;
|
|
1042
1062
|
protected trulyText: string;
|
|
1043
1063
|
protected falsyText: string;
|
|
1044
|
-
protected nullText: string;
|
|
1045
1064
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPToggleWidgetColumnComponent, never>;
|
|
1046
1065
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<AXPToggleWidgetColumnComponent, "ng-component", never, { "rawValue": { "alias": "rawValue"; "required": false; }; "rowData": { "alias": "rowData"; "required": false; }; }, {}, never, never, true, never>;
|
|
1047
1066
|
}
|
|
@@ -1120,7 +1139,10 @@ declare class AXPFileUploaderWidgetEditComponent extends AXPValueWidgetComponent
|
|
|
1120
1139
|
protected readonly fileService: AXFileService;
|
|
1121
1140
|
protected multiple: _angular_core.Signal<boolean>;
|
|
1122
1141
|
protected accept: _angular_core.Signal<string>;
|
|
1142
|
+
protected plugins: _angular_core.Signal<string[]>;
|
|
1123
1143
|
protected fileEditable: _angular_core.Signal<boolean>;
|
|
1144
|
+
protected readonly: _angular_core.Signal<boolean>;
|
|
1145
|
+
protected maxFileSize: _angular_core.Signal<number>;
|
|
1124
1146
|
protected uploadFromComputer(): Promise<void>;
|
|
1125
1147
|
protected files: _angular_core.Signal<AXPFileListItem[]>;
|
|
1126
1148
|
handleFileRemove(file: AXPFileListItem): void;
|
|
@@ -1170,6 +1192,7 @@ declare class AXPFileUploaderWidgetService {
|
|
|
1170
1192
|
multiple?: boolean;
|
|
1171
1193
|
accept?: string;
|
|
1172
1194
|
fileEditable?: boolean;
|
|
1195
|
+
maxFileSize?: number;
|
|
1173
1196
|
}): Promise<AXPFileListItem[] | undefined>;
|
|
1174
1197
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<AXPFileUploaderWidgetService, never>;
|
|
1175
1198
|
static ɵprov: _angular_core.ɵɵInjectableDeclaration<AXPFileUploaderWidgetService>;
|