@acorex/platform 18.1.0 → 18.1.1
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/esm2022/layout/builder/lib/builder/builder.module.mjs +4 -3
- package/esm2022/layout/builder/lib/builder/index.mjs +2 -1
- package/esm2022/layout/builder/lib/builder/widget-renderer.component.directive.mjs +280 -0
- package/esm2022/layout/designer/lib/designer/components/board/board.component.mjs +3 -3
- package/esm2022/layout/designer/lib/designer/components/header-menu/header-menu.component.mjs +3 -3
- package/esm2022/layout/designer/lib/designer/designer.component.mjs +9 -5
- package/esm2022/layout/designer/lib/designer/shared/designer.service.mjs +21 -21
- package/esm2022/layout/designer/lib/designer/shared/designer.typs.mjs +6 -2
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-single-view/overview/entity-single-overview.component.mjs +3 -3
- package/esm2022/widgets/lib/widgets/actions/button/button-widget-designer.component.mjs +3 -3
- package/esm2022/widgets/lib/widgets/actions/button/button-widget-view.component.mjs +3 -3
- package/esm2022/widgets/lib/widgets/advance/map/map-box-widget-view.component.mjs +3 -3
- package/esm2022/widgets/lib/widgets/editors/contact/contact-widget-edit.component.mjs +9 -9
- package/esm2022/widgets/lib/widgets/editors/contact/contact-widget-view.component.mjs +6 -6
- package/esm2022/widgets/lib/widgets/editors/rich-text/rich-text-widget-view.component.mjs +5 -3
- package/esm2022/widgets/lib/widgets/editors/select/select-box-widget-column.component.mjs +36 -6
- package/esm2022/widgets/lib/widgets/editors/selection-list/selection-list-widget-column.component.mjs +2 -1
- package/esm2022/widgets/lib/widgets/layout/block/block-widget-view.component.mjs +4 -4
- package/esm2022/widgets/lib/widgets/layout/form-field/form-field-widget-view.component.mjs +28 -16
- package/esm2022/widgets/lib/widgets/layout/grid/grid-widget-designer.component.mjs +37 -31
- package/esm2022/widgets/lib/widgets/layout/grid/grid-widget-view.component.mjs +27 -6
- package/esm2022/widgets/lib/widgets/layout/grid-item/grid-item-widget-designer.component.mjs +32 -26
- package/esm2022/widgets/lib/widgets/layout/grid-item/grid-item-widget-view.component.mjs +82 -8
- package/esm2022/widgets/lib/widgets/layout/grid-row/grid-row-widget-view.component.mjs +27 -6
- package/esm2022/widgets/lib/widgets/layout/page/page-widget-view.component.mjs +6 -4
- package/fesm2022/acorex-platform-layout-builder.mjs +276 -4
- package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-designer.mjs +36 -28
- package/fesm2022/acorex-platform-layout-designer.mjs.map +1 -1
- package/fesm2022/{acorex-platform-themes-default-entity-master-single-view.component-CGhOE3jO.mjs → acorex-platform-themes-default-entity-master-single-view.component-B9lGgO_u.mjs} +3 -3
- package/fesm2022/{acorex-platform-themes-default-entity-master-single-view.component-CGhOE3jO.mjs.map → acorex-platform-themes-default-entity-master-single-view.component-B9lGgO_u.mjs.map} +1 -1
- package/fesm2022/acorex-platform-themes-default.mjs +2 -2
- package/fesm2022/{acorex-platform-widgets-button-widget-designer.component-COvuxaTt.mjs → acorex-platform-widgets-button-widget-designer.component-Oxpdaz9P.mjs} +3 -3
- package/fesm2022/{acorex-platform-widgets-button-widget-designer.component-COvuxaTt.mjs.map → acorex-platform-widgets-button-widget-designer.component-Oxpdaz9P.mjs.map} +1 -1
- package/fesm2022/acorex-platform-widgets.mjs +277 -107
- package/fesm2022/acorex-platform-widgets.mjs.map +1 -1
- package/layout/builder/lib/builder/builder.module.d.ts +5 -4
- package/layout/builder/lib/builder/index.d.ts +1 -0
- package/layout/builder/lib/builder/widget-renderer.component.directive.d.ts +42 -0
- package/layout/designer/lib/designer/designer.component.d.ts +1 -0
- package/layout/designer/lib/designer/shared/designer.service.d.ts +2 -1
- package/layout/designer/lib/designer/shared/designer.typs.d.ts +15 -0
- package/package.json +7 -7
- package/widgets/lib/widgets/actions/button/button-widget-designer.component.d.ts +1 -1
- package/widgets/lib/widgets/actions/button/button-widget-view.component.d.ts +1 -1
- package/widgets/lib/widgets/editors/select/select-box-widget-column.component.d.ts +5 -0
- package/widgets/lib/widgets/layout/form-field/form-field-widget-view.component.d.ts +2 -1
- package/widgets/lib/widgets/layout/grid/grid-widget-view.component.d.ts +3 -0
- package/widgets/lib/widgets/layout/grid-item/grid-item-widget-view.component.d.ts +11 -2
- package/widgets/lib/widgets/layout/grid-row/grid-row-widget-view.component.d.ts +3 -0
|
@@ -4,9 +4,10 @@ import * as i0 from "@angular/core";
|
|
|
4
4
|
import * as i1 from "./widget-container.component";
|
|
5
5
|
import * as i2 from "./widget-renderer.component";
|
|
6
6
|
import * as i3 from "./widget-column-renderer";
|
|
7
|
-
import * as i4 from "
|
|
8
|
-
import * as i5 from "@angular/
|
|
9
|
-
import * as i6 from "@
|
|
7
|
+
import * as i4 from "./widget-renderer.component.directive";
|
|
8
|
+
import * as i5 from "@angular/common";
|
|
9
|
+
import * as i6 from "@angular/cdk/portal";
|
|
10
|
+
import * as i7 from "@acorex/components/skeleton";
|
|
10
11
|
export interface AXPLayoutBuilderModuleConfigs {
|
|
11
12
|
widgets: AXPWidgetConfig[];
|
|
12
13
|
}
|
|
@@ -18,6 +19,6 @@ export declare class AXPLayoutBuilderModule {
|
|
|
18
19
|
*/
|
|
19
20
|
constructor(instances: any[]);
|
|
20
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXPLayoutBuilderModule, [{ optional: true; }]>;
|
|
21
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AXPLayoutBuilderModule, [typeof i1.AXPWidgetContainerComponent, typeof i2.AXPWidgetRendererComponent, typeof i3.AXPWidgetColumnRendererComponent], [typeof
|
|
22
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AXPLayoutBuilderModule, [typeof i1.AXPWidgetContainerComponent, typeof i2.AXPWidgetRendererComponent, typeof i3.AXPWidgetColumnRendererComponent, typeof i4.AXPWidgetRendererDirective], [typeof i5.CommonModule, typeof i6.PortalModule, typeof i7.AXSkeletonModule, typeof i5.CommonModule], [typeof i1.AXPWidgetContainerComponent, typeof i2.AXPWidgetRendererComponent, typeof i3.AXPWidgetColumnRendererComponent, typeof i4.AXPWidgetRendererDirective]>;
|
|
22
23
|
static ɵinj: i0.ɵɵInjectorDeclaration<AXPLayoutBuilderModule>;
|
|
23
24
|
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { AXUnsubscriber } from '@acorex/core/utils';
|
|
2
|
+
import { WritableSignal } from '@angular/core';
|
|
3
|
+
import { AXPLayoutBuilderService } from './builder.service';
|
|
4
|
+
import { AXPWidgetRegistryService } from './widget-registery.service';
|
|
5
|
+
import { AXPWidgetComponent, AXPWidgetNode } from './widget.types';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class AXPWidgetRendererDirective {
|
|
8
|
+
parentNode: import("@angular/core").InputSignal<AXPWidgetComponent<any> | null | undefined>;
|
|
9
|
+
index: import("@angular/core").InputSignal<number | null | undefined>;
|
|
10
|
+
mode: import("@angular/core").InputSignal<keyof import("./widget.types").AXPWidgetConfigComponents>;
|
|
11
|
+
node: import("@angular/core").InputSignal<AXPWidgetNode>;
|
|
12
|
+
protected mergedOptions: WritableSignal<any>;
|
|
13
|
+
private injector;
|
|
14
|
+
protected builderService: AXPLayoutBuilderService;
|
|
15
|
+
protected widgetRegistery: AXPWidgetRegistryService;
|
|
16
|
+
protected unsubscriber: AXUnsubscriber;
|
|
17
|
+
private viewContainerRef;
|
|
18
|
+
protected isLoading: WritableSignal<boolean>;
|
|
19
|
+
private instance;
|
|
20
|
+
private expressionCache;
|
|
21
|
+
private expressionEvaluators;
|
|
22
|
+
private scope;
|
|
23
|
+
constructor();
|
|
24
|
+
private loadComponent;
|
|
25
|
+
private applyOptions;
|
|
26
|
+
private checkFormulaForUpdate;
|
|
27
|
+
preprocessAndInitialOptions(obj: any, pathPrefix?: string): void;
|
|
28
|
+
updateOptionsBasedOnContext(): Promise<number>;
|
|
29
|
+
updateValueBasedOnFormula(): Promise<void>;
|
|
30
|
+
private evaluateExpression;
|
|
31
|
+
private getGlobalScope;
|
|
32
|
+
private getContextScope;
|
|
33
|
+
private getEventScope;
|
|
34
|
+
private getWidgetScope;
|
|
35
|
+
private getFunctionScope;
|
|
36
|
+
private getVariablesScope;
|
|
37
|
+
private assignTriggers;
|
|
38
|
+
private evaluateTrigger;
|
|
39
|
+
private evaluateAction;
|
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPWidgetRendererDirective, never>;
|
|
41
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AXPWidgetRendererDirective, "[axp-widget-renderer]", never, { "parentNode": { "alias": "parentNode"; "required": false; "isSignal": true; }; "index": { "alias": "index"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": true; "isSignal": true; }; "node": { "alias": "node"; "required": true; "isSignal": true; }; }, {}, never, never, false, never>;
|
|
42
|
+
}
|
|
@@ -6,6 +6,7 @@ export declare class AXPLayoutDesignerComponent {
|
|
|
6
6
|
private propertyViewer;
|
|
7
7
|
protected nodeConfig: import("@angular/core").Signal<AXPWidgetConfig | null>;
|
|
8
8
|
constructor();
|
|
9
|
+
changeMode(mode: 'View' | 'Edit' | 'Design'): void;
|
|
9
10
|
private handleKeyboardEvent;
|
|
10
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXPLayoutDesignerComponent, never>;
|
|
11
12
|
static ɵcmp: i0.ɵɵComponentDeclaration<AXPLayoutDesignerComponent, "axp-layout-designer", never, {}, {}, never, never, true, never>;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { AXPWidgetComponent, AXPWidgetConfig, AXPWidgetNode } from '@acorex/platform/layout/builder';
|
|
2
2
|
import { Subject } from 'rxjs';
|
|
3
|
+
import { AXPDesignerMode } from './designer.typs';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export type AXPDesignerPreviewSize = 'sm' | 'md' | 'lg' | 'xl' | 'xxl';
|
|
5
6
|
export interface AXPDesignerFocusCommand {
|
|
@@ -66,7 +67,7 @@ export declare class AXPDesignerService {
|
|
|
66
67
|
selectedNode: import("@angular/core").WritableSignal<AXPWidgetNode | null>;
|
|
67
68
|
private _focusedNode;
|
|
68
69
|
focusedNode: () => AXPWidgetNode | null;
|
|
69
|
-
readonly mode: import("@angular/core").WritableSignal<
|
|
70
|
+
readonly mode: import("@angular/core").WritableSignal<AXPDesignerMode>;
|
|
70
71
|
readonly size: import("@angular/core").WritableSignal<AXPDesignerPreviewSize>;
|
|
71
72
|
readonly onSelected: Subject<AXPDesignerSelectEvent>;
|
|
72
73
|
readonly onRefresh: Subject<AXPDesignerRefreshEvent>;
|
|
@@ -2,3 +2,18 @@ export interface AXPDesignerDataSourceName {
|
|
|
2
2
|
id: string;
|
|
3
3
|
title: string;
|
|
4
4
|
}
|
|
5
|
+
export type AXPDesignerMode = {
|
|
6
|
+
id: 'designer';
|
|
7
|
+
title: 'Designer';
|
|
8
|
+
} | {
|
|
9
|
+
id: 'view';
|
|
10
|
+
title: 'View';
|
|
11
|
+
} | {
|
|
12
|
+
id: 'edit';
|
|
13
|
+
title: 'Edit';
|
|
14
|
+
};
|
|
15
|
+
export declare class AXPDesignerModes {
|
|
16
|
+
static readonly View: AXPDesignerMode;
|
|
17
|
+
static readonly Design: AXPDesignerMode;
|
|
18
|
+
static readonly Edit: AXPDesignerMode;
|
|
19
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@acorex/platform",
|
|
3
|
-
"version": "18.1.
|
|
3
|
+
"version": "18.1.1",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": ">=18.0.0",
|
|
6
6
|
"@angular/core": ">=18.0.0",
|
|
@@ -51,12 +51,6 @@
|
|
|
51
51
|
"esm": "./esm2022/common/acorex-platform-common.mjs",
|
|
52
52
|
"default": "./fesm2022/acorex-platform-common.mjs"
|
|
53
53
|
},
|
|
54
|
-
"./core": {
|
|
55
|
-
"types": "./core/index.d.ts",
|
|
56
|
-
"esm2022": "./esm2022/core/acorex-platform-core.mjs",
|
|
57
|
-
"esm": "./esm2022/core/acorex-platform-core.mjs",
|
|
58
|
-
"default": "./fesm2022/acorex-platform-core.mjs"
|
|
59
|
-
},
|
|
60
54
|
"./mocks": {
|
|
61
55
|
"types": "./mocks/index.d.ts",
|
|
62
56
|
"esm2022": "./esm2022/mocks/acorex-platform-mocks.mjs",
|
|
@@ -69,6 +63,12 @@
|
|
|
69
63
|
"esm": "./esm2022/native/acorex-platform-native.mjs",
|
|
70
64
|
"default": "./fesm2022/acorex-platform-native.mjs"
|
|
71
65
|
},
|
|
66
|
+
"./core": {
|
|
67
|
+
"types": "./core/index.d.ts",
|
|
68
|
+
"esm2022": "./esm2022/core/acorex-platform-core.mjs",
|
|
69
|
+
"esm": "./esm2022/core/acorex-platform-core.mjs",
|
|
70
|
+
"default": "./fesm2022/acorex-platform-core.mjs"
|
|
71
|
+
},
|
|
72
72
|
"./layouts": {
|
|
73
73
|
"types": "./layouts/index.d.ts",
|
|
74
74
|
"esm2022": "./esm2022/layouts/acorex-platform-layouts.mjs",
|
|
@@ -12,5 +12,5 @@ export declare class AXPButtonWidgetDesignerComponent extends AXPWidgetComponent
|
|
|
12
12
|
onClick: EventEmitter<AXClickEvent>;
|
|
13
13
|
private get __class();
|
|
14
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXPButtonWidgetDesignerComponent, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AXPButtonWidgetDesignerComponent, "
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXPButtonWidgetDesignerComponent, "axp-button-widget", never, {}, {}, never, never, true, never>;
|
|
16
16
|
}
|
|
@@ -13,5 +13,5 @@ export declare class AXPButtonWidgetViewComponent extends AXPWidgetComponent<any
|
|
|
13
13
|
protected handleClick(e: AXClickEvent): void;
|
|
14
14
|
api(): AXPLayoutElementAPI;
|
|
15
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXPButtonWidgetViewComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AXPButtonWidgetViewComponent, "
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXPButtonWidgetViewComponent, "axp-button-widget", never, {}, {}, never, never, true, never>;
|
|
17
17
|
}
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
import { AXPColumnWidgetComponent } from '@acorex/platform/layout/builder';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class AXPSelectBoxWidgetColumnComponent extends AXPColumnWidgetComponent<any> {
|
|
4
|
+
protected multiple: boolean;
|
|
5
|
+
protected valueField: string;
|
|
6
|
+
protected textField: string;
|
|
7
|
+
protected internalValue: import("@angular/core").Signal<any[]>;
|
|
8
|
+
private extractItem;
|
|
4
9
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXPSelectBoxWidgetColumnComponent, never>;
|
|
5
10
|
static ɵcmp: i0.ɵɵComponentDeclaration<AXPSelectBoxWidgetColumnComponent, "ng-component", never, { "rawValue": { "alias": "rawValue"; "required": false; }; }, {}, never, never, true, never>;
|
|
6
11
|
}
|
|
@@ -2,6 +2,7 @@ import { AXPWidgetComponent } from '@acorex/platform/layout/builder';
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class AXPFormFieldWidgetViewComponent extends AXPWidgetComponent<any> {
|
|
4
4
|
protected label: import("@angular/core").Signal<string>;
|
|
5
|
+
private get __class();
|
|
5
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXPFormFieldWidgetViewComponent, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AXPFormFieldWidgetViewComponent, "
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXPFormFieldWidgetViewComponent, "axp-form-field-widget", never, {}, {}, never, never, true, never>;
|
|
7
8
|
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { AXPWidgetComponent } from '@acorex/platform/layout/builder';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class AXPGridWidgetViewComponent extends AXPWidgetComponent<any> {
|
|
4
|
+
protected cols: import("@angular/core").Signal<number>;
|
|
5
|
+
protected rows: import("@angular/core").Signal<number>;
|
|
6
|
+
protected gap: import("@angular/core").Signal<number>;
|
|
4
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXPGridWidgetViewComponent, never>;
|
|
5
8
|
static ɵcmp: i0.ɵɵComponentDeclaration<AXPGridWidgetViewComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
6
9
|
}
|
|
@@ -1,6 +1,15 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AXPContainerWidgetComponent } from '@acorex/platform/layout/builder';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class AXPGridItemWidgetViewComponent extends
|
|
3
|
+
export declare class AXPGridItemWidgetViewComponent extends AXPContainerWidgetComponent<any> {
|
|
4
|
+
protected colSpan: import("@angular/core").Signal<number>;
|
|
5
|
+
protected colStart: import("@angular/core").Signal<number>;
|
|
6
|
+
protected colEnd: import("@angular/core").Signal<number>;
|
|
7
|
+
protected flexAlignItems: import("@angular/core").Signal<string>;
|
|
8
|
+
protected flexJustifyContent: import("@angular/core").Signal<string>;
|
|
9
|
+
protected flexWrap: import("@angular/core").Signal<string>;
|
|
10
|
+
protected flexDirection: import("@angular/core").Signal<string>;
|
|
11
|
+
protected gap: import("@angular/core").Signal<number>;
|
|
12
|
+
private get __class();
|
|
4
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXPGridItemWidgetViewComponent, never>;
|
|
5
14
|
static ɵcmp: i0.ɵɵComponentDeclaration<AXPGridItemWidgetViewComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
6
15
|
}
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { AXPWidgetComponent } from '@acorex/platform/layout/builder';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class AXPGridRowWidgetViewComponent extends AXPWidgetComponent<any> {
|
|
4
|
+
protected cols: import("@angular/core").Signal<number>;
|
|
5
|
+
protected rows: import("@angular/core").Signal<number>;
|
|
6
|
+
protected gap: import("@angular/core").Signal<number>;
|
|
4
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXPGridRowWidgetViewComponent, never>;
|
|
5
8
|
static ɵcmp: i0.ɵɵComponentDeclaration<AXPGridRowWidgetViewComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
6
9
|
}
|