@acorex/platform 18.1.0 → 18.1.2
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/common/lib/schema/widgets/rich-text/rich-text-widget-edit.component.mjs +1 -2
- 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/builder/lib/builder/widget.types.mjs +60 -1
- 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/comments/comment-list-view.component.mjs +208 -47
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-single-view/comments/comment-lookup-popup.component.mjs +56 -0
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-single-view/comments/comments.service.mjs +1 -1
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-single-view/comments/comments.type.mjs +2 -0
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-single-view/overview/entity-single-overview.component.mjs +3 -3
- package/esm2022/themes/default/lib/layouts/entity-layouts/index.mjs +2 -1
- package/esm2022/widgets/lib/properties/editors.props.mjs +102 -308
- package/esm2022/widgets/lib/properties/general.props.mjs +4 -13
- package/esm2022/widgets/lib/widgets/actions/button/button-widget-designer.component.mjs +3 -4
- package/esm2022/widgets/lib/widgets/actions/button/button-widget-view.component.mjs +3 -3
- package/esm2022/widgets/lib/widgets/advance/map/map-box-widget-edit.component.mjs +9 -4
- package/esm2022/widgets/lib/widgets/advance/map/map-box-widget-view.component.mjs +6 -6
- package/esm2022/widgets/lib/widgets/editors/checkbox/checkbox-widget-designer.component.mjs +4 -4
- package/esm2022/widgets/lib/widgets/editors/contact/contact-widget-edit.component.mjs +17 -24
- package/esm2022/widgets/lib/widgets/editors/contact/contact-widget-view.component.mjs +6 -6
- package/esm2022/widgets/lib/widgets/editors/date-time/date-time-box-widget.config.mjs +3 -3
- 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-designer.component.mjs +3 -7
- 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 +26 -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 +25 -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 +78 -8
- package/esm2022/widgets/lib/widgets/layout/grid-row/grid-row-widget-view.component.mjs +25 -6
- package/esm2022/widgets/lib/widgets/layout/page/page-widget-view.component.mjs +4 -4
- package/esm2022/widgets/lib/widgets/layout/repeater/repeater-widget-designer.component.mjs +94 -19
- package/esm2022/widgets/lib/widgets/layout/repeater/repeater-widget-edit.component.mjs +119 -8
- package/esm2022/widgets/lib/widgets/layout/repeater/repeater-widget-print.component.mjs +3 -2
- package/esm2022/widgets/lib/widgets/layout/repeater/repeater-widget-view.component.mjs +14 -22
- package/esm2022/widgets/lib/widgets/layout/repeater/repeater-widget.config.mjs +16 -3
- package/fesm2022/{acorex-platform-common-rich-text-widget-edit.component-CnH3MjYz.mjs → acorex-platform-common-rich-text-widget-edit.component-Do3YcmKg.mjs} +1 -2
- package/fesm2022/acorex-platform-common-rich-text-widget-edit.component-Do3YcmKg.mjs.map +1 -0
- package/fesm2022/acorex-platform-common.mjs +1 -1
- package/fesm2022/acorex-platform-layout-builder.mjs +368 -38
- 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-create-view.component-Q8eTfAVx.mjs → acorex-platform-themes-default-entity-master-create-view.component-LyEomIA6.mjs} +3 -3
- package/fesm2022/{acorex-platform-themes-default-entity-master-create-view.component-Q8eTfAVx.mjs.map → acorex-platform-themes-default-entity-master-create-view.component-LyEomIA6.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-themes-default-entity-master-list-view.component-CWXJxLS0.mjs → acorex-platform-themes-default-entity-master-list-view.component-CKRwvJTp.mjs} +3 -3
- package/fesm2022/{acorex-platform-themes-default-entity-master-list-view.component-CWXJxLS0.mjs.map → acorex-platform-themes-default-entity-master-list-view.component-CKRwvJTp.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-themes-default-entity-master-modify-view.component-BijYXMme.mjs → acorex-platform-themes-default-entity-master-modify-view.component-CMRfspMB.mjs} +3 -3
- package/fesm2022/{acorex-platform-themes-default-entity-master-modify-view.component-BijYXMme.mjs.map → acorex-platform-themes-default-entity-master-modify-view.component-CMRfspMB.mjs.map} +1 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-DhcKSyrX.mjs +457 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-DhcKSyrX.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default.mjs +134 -11
- package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
- package/fesm2022/{acorex-platform-widgets-button-widget-designer.component-COvuxaTt.mjs → acorex-platform-widgets-button-widget-designer.component-B9bfVuC4.mjs} +3 -4
- package/fesm2022/acorex-platform-widgets-button-widget-designer.component-B9bfVuC4.mjs.map +1 -0
- package/fesm2022/{acorex-platform-widgets-checkbox-widget-designer.component-DAGbdSTk.mjs → acorex-platform-widgets-checkbox-widget-designer.component-DzGg-uFi.mjs} +4 -4
- package/fesm2022/acorex-platform-widgets-checkbox-widget-designer.component-DzGg-uFi.mjs.map +1 -0
- package/fesm2022/acorex-platform-widgets.mjs +620 -498
- 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/builder/lib/builder/widget.types.d.ts +30 -1
- 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 +11 -11
- package/themes/default/lib/layouts/entity-layouts/entity-master-single-view/comments/comment-list-view.component.d.ts +37 -15
- package/themes/default/lib/layouts/entity-layouts/entity-master-single-view/comments/comment-lookup-popup.component.d.ts +10 -0
- package/themes/default/lib/layouts/entity-layouts/entity-master-single-view/comments/comments.service.d.ts +6 -9
- package/themes/default/lib/layouts/entity-layouts/entity-master-single-view/comments/comments.type.d.ts +70 -0
- package/themes/default/lib/layouts/entity-layouts/index.d.ts +1 -0
- package/widgets/lib/properties/editors.props.d.ts +3 -3
- 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/advance/map/map-box-widget-edit.component.d.ts +1 -0
- package/widgets/lib/widgets/editors/contact/contact-widget-edit.component.d.ts +1 -0
- 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
- package/widgets/lib/widgets/layout/repeater/repeater-widget-designer.component.d.ts +4 -3
- package/widgets/lib/widgets/layout/repeater/repeater-widget-edit.component.d.ts +10 -2
- package/widgets/lib/widgets/layout/repeater/repeater-widget-print.component.d.ts +1 -1
- package/widgets/lib/widgets/layout/repeater/repeater-widget-view.component.d.ts +2 -4
- package/fesm2022/acorex-platform-common-rich-text-widget-edit.component-CnH3MjYz.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-CGhOE3jO.mjs +0 -357
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-CGhOE3jO.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-button-widget-designer.component-COvuxaTt.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-checkbox-widget-designer.component-DAGbdSTk.mjs.map +0 -1
|
@@ -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
|
+
}
|
|
@@ -28,13 +28,14 @@ export interface AXPWidgetGroup {
|
|
|
28
28
|
title: string;
|
|
29
29
|
order: number;
|
|
30
30
|
}
|
|
31
|
+
export type AXPWidgetDataType = 'string' | 'number' | 'object' | 'boolean' | 'array';
|
|
31
32
|
export interface AXPWidgetProperty {
|
|
32
33
|
name: string;
|
|
33
34
|
title: string;
|
|
34
35
|
description?: string;
|
|
35
36
|
group: AXPWidgetPropertyGroup;
|
|
36
37
|
schema: {
|
|
37
|
-
dataType:
|
|
38
|
+
dataType: AXPWidgetDataType;
|
|
38
39
|
nullable?: boolean;
|
|
39
40
|
defaultValue?: any | string | ((context: any | null) => any);
|
|
40
41
|
interface: Required<Pick<AXPWidgetNode, 'path'>> & Omit<AXPWidgetNode, 'path'>;
|
|
@@ -44,6 +45,34 @@ export interface AXPWidgetProperty {
|
|
|
44
45
|
visible: boolean;
|
|
45
46
|
}
|
|
46
47
|
export declare function cloneProperty(property: AXPWidgetProperty, values: AXPPartialNested<AXPWidgetProperty>): AXPWidgetProperty;
|
|
48
|
+
export declare function createStringProperty(ctor: {
|
|
49
|
+
defaultValue?: string;
|
|
50
|
+
name: string;
|
|
51
|
+
title: string;
|
|
52
|
+
path?: string;
|
|
53
|
+
group: AXPWidgetPropertyGroup;
|
|
54
|
+
visible?: boolean;
|
|
55
|
+
}): AXPWidgetProperty;
|
|
56
|
+
export declare function createBooleanProperty(ctor: {
|
|
57
|
+
defaultValue?: boolean;
|
|
58
|
+
name: string;
|
|
59
|
+
title: string;
|
|
60
|
+
path?: string;
|
|
61
|
+
group: AXPWidgetPropertyGroup;
|
|
62
|
+
visible?: boolean;
|
|
63
|
+
}): AXPWidgetProperty;
|
|
64
|
+
export declare function createSelectProperty<T = string | {
|
|
65
|
+
id: string;
|
|
66
|
+
title: string;
|
|
67
|
+
}>(ctor: {
|
|
68
|
+
defaultValue: T | T[];
|
|
69
|
+
dataSource: T[];
|
|
70
|
+
name: string;
|
|
71
|
+
title: string;
|
|
72
|
+
path?: string;
|
|
73
|
+
group: AXPWidgetPropertyGroup;
|
|
74
|
+
visible?: boolean;
|
|
75
|
+
}): AXPWidgetProperty;
|
|
47
76
|
export interface AXPWidgetNode {
|
|
48
77
|
type: AXPWidgetTypesMap[keyof AXPWidgetTypesMap];
|
|
49
78
|
path?: string;
|
|
@@ -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.2",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": ">=18.0.0",
|
|
6
6
|
"@angular/core": ">=18.0.0",
|
|
@@ -51,11 +51,11 @@
|
|
|
51
51
|
"esm": "./esm2022/common/acorex-platform-common.mjs",
|
|
52
52
|
"default": "./fesm2022/acorex-platform-common.mjs"
|
|
53
53
|
},
|
|
54
|
-
"./
|
|
55
|
-
"types": "./
|
|
56
|
-
"esm2022": "./esm2022/
|
|
57
|
-
"esm": "./esm2022/
|
|
58
|
-
"default": "./fesm2022/acorex-platform-
|
|
54
|
+
"./native": {
|
|
55
|
+
"types": "./native/index.d.ts",
|
|
56
|
+
"esm2022": "./esm2022/native/acorex-platform-native.mjs",
|
|
57
|
+
"esm": "./esm2022/native/acorex-platform-native.mjs",
|
|
58
|
+
"default": "./fesm2022/acorex-platform-native.mjs"
|
|
59
59
|
},
|
|
60
60
|
"./mocks": {
|
|
61
61
|
"types": "./mocks/index.d.ts",
|
|
@@ -63,11 +63,11 @@
|
|
|
63
63
|
"esm": "./esm2022/mocks/acorex-platform-mocks.mjs",
|
|
64
64
|
"default": "./fesm2022/acorex-platform-mocks.mjs"
|
|
65
65
|
},
|
|
66
|
-
"./
|
|
67
|
-
"types": "./
|
|
68
|
-
"esm2022": "./esm2022/
|
|
69
|
-
"esm": "./esm2022/
|
|
70
|
-
"default": "./fesm2022/acorex-platform-
|
|
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
71
|
},
|
|
72
72
|
"./layouts": {
|
|
73
73
|
"types": "./layouts/index.d.ts",
|
|
@@ -1,33 +1,55 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { AXWysiwygContainerComponent } from '@acorex/components/wysiwyg';
|
|
2
|
+
import { AXStyleLookType } from '@acorex/components/common';
|
|
3
|
+
import { AXPComment } from './comments.type';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class AXPCommentListViewComponent {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
commentContent: import("@angular/core").WritableSignal<string>;
|
|
7
|
+
hasCooldown: import("@angular/core").WritableSignal<boolean>;
|
|
8
|
+
isSubmitting: import("@angular/core").WritableSignal<boolean>;
|
|
9
|
+
isReplyingMode: import("@angular/core").WritableSignal<boolean>;
|
|
10
|
+
isEditingMode: import("@angular/core").WritableSignal<boolean>;
|
|
11
|
+
failedImageIds: import("@angular/core").WritableSignal<string[]>;
|
|
12
|
+
activeReplyComment: import("@angular/core").WritableSignal<AXPComment | undefined>;
|
|
13
|
+
activeEditComment: import("@angular/core").WritableSignal<AXPComment | undefined>;
|
|
14
|
+
wysiwygEditor: import("@angular/core").Signal<AXWysiwygContainerComponent>;
|
|
15
|
+
private commentService;
|
|
16
|
+
private route;
|
|
17
|
+
private popupService;
|
|
18
|
+
private toastService;
|
|
19
|
+
private dialogService;
|
|
20
|
+
private htmlUtils;
|
|
21
|
+
private readonly routeParams;
|
|
22
|
+
private payload;
|
|
23
|
+
protected comments: import("@angular/core").WritableSignal<AXPComment[]>;
|
|
10
24
|
ngOnInit(): void;
|
|
11
|
-
loadComments(): Promise<void>;
|
|
12
|
-
value: import("@angular/core").WritableSignal<string>;
|
|
13
25
|
protected wysiwygOptions: import("@angular/core").WritableSignal<{
|
|
14
26
|
look: AXStyleLookType;
|
|
15
27
|
}>;
|
|
16
|
-
protected
|
|
28
|
+
protected avatarConfig: import("@angular/core").WritableSignal<{
|
|
17
29
|
color: string;
|
|
18
30
|
look: "sharp" | "soft" | "rounded";
|
|
19
31
|
type: string;
|
|
20
32
|
}>;
|
|
21
|
-
|
|
22
|
-
replyHandler(): void;
|
|
23
|
-
valueChange(e: any): void;
|
|
24
|
-
validateFn: (val: string) => {
|
|
33
|
+
validateContent: (content: string) => {
|
|
25
34
|
rule: string;
|
|
26
35
|
result: boolean;
|
|
27
36
|
message: string;
|
|
28
37
|
value: string;
|
|
29
38
|
};
|
|
30
|
-
|
|
39
|
+
sanitizeHtml(htmlContent: string): import("@angular/platform-browser").SafeHtml | null;
|
|
40
|
+
handleImageError(imageId: string): void;
|
|
41
|
+
checkImageExists(imageId: string): boolean;
|
|
42
|
+
extractInitials(name: string): string;
|
|
43
|
+
loadComments(): Promise<void>;
|
|
44
|
+
initiateEditComment(comment: AXPComment): Promise<void>;
|
|
45
|
+
initiateReplyComment(comment: AXPComment): Promise<void>;
|
|
46
|
+
deleteComment(comment: AXPComment): Promise<void>;
|
|
47
|
+
resetReplyEditState(): void;
|
|
48
|
+
toggleLikeComment(comment: any): Promise<void>;
|
|
49
|
+
private updateLikeStatus;
|
|
50
|
+
private removeCommentById;
|
|
51
|
+
submitPrivateComment(): Promise<void>;
|
|
52
|
+
submitComment(): Promise<void>;
|
|
31
53
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXPCommentListViewComponent, never>;
|
|
32
54
|
static ɵcmp: i0.ɵɵComponentDeclaration<AXPCommentListViewComponent, "axp-comment-list-view", never, {}, {}, never, never, true, never>;
|
|
33
55
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AXBasePageComponent } from '@acorex/components/page';
|
|
2
|
+
import { AXPWidgetNode } from '@acorex/platform/layout/builder';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class AXPCommentLookupPopup extends AXBasePageComponent {
|
|
5
|
+
protected lookupNode: AXPWidgetNode;
|
|
6
|
+
context: {};
|
|
7
|
+
handleClose(): void;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AXPCommentLookupPopup, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXPCommentLookupPopup, "ng-component", never, {}, {}, never, never, true, never>;
|
|
10
|
+
}
|
|
@@ -1,11 +1,8 @@
|
|
|
1
|
+
import { AXPCommentResponse, AXPDeleteRequest, AXPGetRequest, AXPLikeRequest, AXPPostRequest, AXPPutRequest } from './comments.type';
|
|
1
2
|
export declare abstract class AXPCommentService {
|
|
2
|
-
abstract
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
abstract
|
|
7
|
-
abstract replyToComment(payload: any): Promise<any>;
|
|
8
|
-
abstract likeComment(commentId: string): Promise<void>;
|
|
9
|
-
abstract deleteComment(commentId: string): Promise<void>;
|
|
10
|
-
abstract editComment(payload: any): Promise<any>;
|
|
3
|
+
abstract get(payload: AXPGetRequest): Promise<AXPCommentResponse>;
|
|
4
|
+
abstract post(payload: AXPPostRequest): Promise<string>;
|
|
5
|
+
abstract delete(payload: AXPDeleteRequest): Promise<void>;
|
|
6
|
+
abstract put(payload: AXPPutRequest): Promise<string>;
|
|
7
|
+
abstract like(payload: AXPLikeRequest): Promise<string>;
|
|
11
8
|
}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
export interface AXPCommentVisibleMessage {
|
|
2
|
+
id: string;
|
|
3
|
+
memberId: string;
|
|
4
|
+
memberType: string;
|
|
5
|
+
}
|
|
6
|
+
export interface AXPCommentStatusMessage {
|
|
7
|
+
id: string;
|
|
8
|
+
memberId: string;
|
|
9
|
+
memberType: string;
|
|
10
|
+
status: string;
|
|
11
|
+
}
|
|
12
|
+
export interface AXPCommentHistoryMessage {
|
|
13
|
+
id: string;
|
|
14
|
+
content: string;
|
|
15
|
+
contentType: string;
|
|
16
|
+
isPrivate: boolean;
|
|
17
|
+
}
|
|
18
|
+
export interface AXPCommentUserDetails {
|
|
19
|
+
id: string;
|
|
20
|
+
userName: string;
|
|
21
|
+
firstName: string;
|
|
22
|
+
lastName: string;
|
|
23
|
+
picture: string | null;
|
|
24
|
+
}
|
|
25
|
+
export interface AXPComment {
|
|
26
|
+
content: string;
|
|
27
|
+
contentType: string;
|
|
28
|
+
memberId: string;
|
|
29
|
+
memberType: string;
|
|
30
|
+
roomId: string;
|
|
31
|
+
isPrivate: boolean;
|
|
32
|
+
replyId: string | null;
|
|
33
|
+
messageVisibles: AXPCommentVisibleMessage[];
|
|
34
|
+
messageStatuses: AXPCommentStatusMessage[];
|
|
35
|
+
messageHistories: AXPCommentHistoryMessage[];
|
|
36
|
+
replies: AXPComment[];
|
|
37
|
+
isArchived: boolean;
|
|
38
|
+
isLiked: boolean;
|
|
39
|
+
reactionsCount: number;
|
|
40
|
+
repliesCount: number;
|
|
41
|
+
user: AXPCommentUserDetails;
|
|
42
|
+
id: string;
|
|
43
|
+
}
|
|
44
|
+
export interface AXPCommentResponse {
|
|
45
|
+
totalCount: number;
|
|
46
|
+
items: AXPComment[];
|
|
47
|
+
}
|
|
48
|
+
export interface AXPPostRequest extends Partial<AXPComment> {
|
|
49
|
+
content: string;
|
|
50
|
+
contentType: string;
|
|
51
|
+
isPrivate: boolean;
|
|
52
|
+
replyId: string | undefined;
|
|
53
|
+
members?: string[];
|
|
54
|
+
}
|
|
55
|
+
export interface AXPGetRequest extends Partial<AXPComment> {
|
|
56
|
+
roomType: string;
|
|
57
|
+
entityId: string;
|
|
58
|
+
instanceId: string;
|
|
59
|
+
}
|
|
60
|
+
export interface AXPDeleteRequest {
|
|
61
|
+
id: string;
|
|
62
|
+
}
|
|
63
|
+
export interface AXPPutRequest {
|
|
64
|
+
id: string;
|
|
65
|
+
content: string;
|
|
66
|
+
}
|
|
67
|
+
export interface AXPLikeRequest {
|
|
68
|
+
messageId: string;
|
|
69
|
+
type: 'like';
|
|
70
|
+
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { AXPWidgetProperty } from '@acorex/platform/layout/builder';
|
|
2
2
|
export declare const AXP_VALIDATION_PROPERTY: AXPWidgetProperty;
|
|
3
3
|
export declare const AXP_CONTENT_PROPERTY: AXPWidgetProperty;
|
|
4
|
-
export declare const AXP_DISABLED_PROPERTY: AXPWidgetProperty;
|
|
5
|
-
export declare const AXP_READONLY_PROPERTY: AXPWidgetProperty;
|
|
6
4
|
export declare const AXP_PLACEHOLDER_PROPERTY: AXPWidgetProperty;
|
|
7
5
|
export declare const AXP_DATA_PATH_PROPERTY: AXPWidgetProperty;
|
|
6
|
+
export declare const AXP_DISABLED_PROPERTY: AXPWidgetProperty;
|
|
7
|
+
export declare const AXP_READONLY_PROPERTY: AXPWidgetProperty;
|
|
8
8
|
export declare const AXP_ALLOW_MULTIPLE_PROPERTY: AXPWidgetProperty;
|
|
9
9
|
export declare const AXP_HAS_LABEL_PROPERTY: AXPWidgetProperty;
|
|
10
10
|
export declare const AXP_HAS_ICON_PROPERTY: AXPWidgetProperty;
|
|
@@ -24,7 +24,7 @@ export declare const AXP_TEXT_FIELD_PROPERTY: AXPWidgetProperty;
|
|
|
24
24
|
export declare const AXP_DESCRIPTION_PROPERTY: AXPWidgetProperty;
|
|
25
25
|
export declare const AXP_STYLE_COLOR_PROPERTY: AXPWidgetProperty;
|
|
26
26
|
export declare const AXP_STYLE_LOOK_PROPERTY: AXPWidgetProperty;
|
|
27
|
-
export declare const
|
|
27
|
+
export declare const AXP_DATE_FORMAT_PROPERTY: AXPWidgetProperty;
|
|
28
28
|
export declare function booleanDefaultProperty(defaultValue?: boolean): AXPWidgetProperty;
|
|
29
29
|
export declare function plainTextDefaultProperty(): AXPWidgetProperty;
|
|
30
30
|
export declare function largeTextDefaultProperty(): AXPWidgetProperty;
|
|
@@ -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
|
}
|
|
@@ -11,6 +11,7 @@ export declare class AXPMapBoxWidgetEditComponent extends AXPWidgetComponent<AXM
|
|
|
11
11
|
zoomLevel: import("@angular/core").Signal<number>;
|
|
12
12
|
height: import("@angular/core").Signal<number>;
|
|
13
13
|
initialLocation: import("@angular/core").Signal<AXMapLocation>;
|
|
14
|
+
onMarkerChanged(event: AXMapLocation[]): void;
|
|
14
15
|
private get __class();
|
|
15
16
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXPMapBoxWidgetEditComponent, never>;
|
|
16
17
|
static ɵcmp: i0.ɵɵComponentDeclaration<AXPMapBoxWidgetEditComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
@@ -12,6 +12,7 @@ export declare class AXPContactWidgetEditComponent extends AXPWidgetComponent<an
|
|
|
12
12
|
protected multiple: Signal<boolean>;
|
|
13
13
|
protected hasIcon: Signal<boolean>;
|
|
14
14
|
protected disabled: Signal<boolean>;
|
|
15
|
+
protected placeholder: Signal<string>;
|
|
15
16
|
constructor();
|
|
16
17
|
private popup;
|
|
17
18
|
protected dataSource: AXDataSource<string | undefined>;
|
|
@@ -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
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { AXPContainerWidgetComponent } from '@acorex/platform/layout/builder';
|
|
2
|
-
import { WritableSignal } from '@angular/core';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
export declare class AXPRepeaterWidgetDesignerComponent extends AXPContainerWidgetComponent<void> {
|
|
5
|
-
protected
|
|
4
|
+
protected disabled: import("@angular/core").Signal<boolean>;
|
|
5
|
+
protected hasControls: import("@angular/core").Signal<boolean>;
|
|
6
|
+
private get __class();
|
|
6
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXPRepeaterWidgetDesignerComponent, never>;
|
|
7
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AXPRepeaterWidgetDesignerComponent, "
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXPRepeaterWidgetDesignerComponent, "axp-repeater-widget", never, {}, {}, never, never, true, never>;
|
|
8
9
|
}
|
|
@@ -1,6 +1,14 @@
|
|
|
1
|
-
import { AXPWidgetComponent } from '@acorex/platform/layout/builder';
|
|
1
|
+
import { AXPLayoutElementAPI, AXPWidgetComponent } from '@acorex/platform/layout/builder';
|
|
2
|
+
import { WritableSignal } from '@angular/core';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class AXPRepeaterWidgetEditComponent extends AXPWidgetComponent<any> {
|
|
5
|
+
protected rows: WritableSignal<any[]>;
|
|
6
|
+
protected disabled: import("@angular/core").Signal<boolean>;
|
|
7
|
+
protected hasControls: import("@angular/core").Signal<boolean>;
|
|
8
|
+
ngAfterViewInit(): void;
|
|
9
|
+
protected handleAddItemClick(): void;
|
|
10
|
+
addNew(): void;
|
|
11
|
+
api(): AXPLayoutElementAPI;
|
|
4
12
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXPRepeaterWidgetEditComponent, never>;
|
|
5
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AXPRepeaterWidgetEditComponent, "
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXPRepeaterWidgetEditComponent, "axp-repeater-widget", never, {}, {}, never, never, true, never>;
|
|
6
14
|
}
|
|
@@ -2,5 +2,5 @@ import { AXPWidgetComponent } from '@acorex/platform/layout/builder';
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class AXPRepeaterWidgetPrintComponent extends AXPWidgetComponent<any> {
|
|
4
4
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXPRepeaterWidgetPrintComponent, never>;
|
|
5
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AXPRepeaterWidgetPrintComponent, "
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXPRepeaterWidgetPrintComponent, "axp-repeater-widget", never, {}, {}, never, never, true, never>;
|
|
6
6
|
}
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AXPWidgetComponent } from '@acorex/platform/layout/builder';
|
|
2
2
|
import { WritableSignal } from '@angular/core';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class AXPRepeaterWidgetViewComponent extends AXPWidgetComponent<any[]> {
|
|
5
5
|
protected rows: WritableSignal<any[]>;
|
|
6
6
|
ngAfterViewInit(): void;
|
|
7
|
-
addNew(): void;
|
|
8
|
-
api(): AXPLayoutElementAPI;
|
|
9
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<AXPRepeaterWidgetViewComponent, never>;
|
|
10
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AXPRepeaterWidgetViewComponent, "
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AXPRepeaterWidgetViewComponent, "axp-repeater-widget", never, {}, {}, never, never, true, never>;
|
|
11
9
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"acorex-platform-common-rich-text-widget-edit.component-CnH3MjYz.mjs","sources":["../../../../libs/platform/common/src/lib/schema/widgets/rich-text/rich-text-widget-edit.component.ts"],"sourcesContent":["import { AXButtonModule } from '@acorex/components/button';\nimport { AXDecoratorModule } from '@acorex/components/decorators';\nimport { AXFormModule } from '@acorex/components/form';\nimport { AXTextAreaModule } from '@acorex/components/text-area';\nimport { AXPWidgetEditBase } from '../../widget/widget-base';\nimport { Component, ElementRef, ViewChild, ViewEncapsulation } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\n\n@Component({\n selector: 'axp-rich-text-widget-edit',\n template: `\n <div class=\"ax-h-max\">\n <div #editor></div>\n </div>\n `,\n standalone: true,\n styleUrl: './rich-text-widget-edit.component.scss',\n encapsulation: ViewEncapsulation.None,\n imports: [AXTextAreaModule, FormsModule, AXDecoratorModule, AXButtonModule, AXFormModule],\n inputs: ['placeholder'],\n})\nexport class AXPRichTextWidgetEditComponent extends AXPWidgetEditBase<string> {\n @ViewChild('editor') editorEl!: ElementRef<HTMLDivElement>;\n editor: any;\n protected placeholder: string = 'Write a text ...';\n\n toolbarOptions = [\n ['bold', 'italic', 'underline', 'strike'],\n ['blockquote', 'code-block'],\n [{ list: 'ordered' }, { list: 'bullet' }],\n [{ script: 'sub' }, { script: 'super' }],\n [{ direction: 'rtl' }],\n [{ size: ['small', false, 'large', 'huge'] }],\n [{ header: [1, 2, 3, 4, 5, 6, false] }],\n [{ color: [] }, { background: [] }],\n [{ font: [] }],\n [{ align: [] }],\n ['clean'],\n ];\n\n async ngAfterViewInit() {\n await this.initEditor();\n if (this.value) {\n this.editor.disable();\n this.editor.clipboard.dangerouslyPasteHTML(this.value, 'api');\n this.editor.enable();\n }\n\n this.editor.on('text-change', () => {\n this.value = this.editor.root.innerHTML;\n });\n }\n\n async initEditor() {\n const q = await import('quill');\n this.editor = new q.default(this.editorEl.nativeElement, {\n theme: 'snow',\n modules: {\n toolbar: this.toolbarOptions,\n },\n scrollingContainer: 'ql-editor',\n placeholder: this.placeholder,\n });\n }\n}\n"],"names":[],"mappings":"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"}
|