@acorex/platform 18.1.1 → 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/widget.types.mjs +60 -1
- 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 +1 -2
- 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 +4 -4
- 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 +9 -16
- package/esm2022/widgets/lib/widgets/editors/date-time/date-time-box-widget.config.mjs +3 -3
- package/esm2022/widgets/lib/widgets/layout/block/block-widget-designer.component.mjs +3 -7
- package/esm2022/widgets/lib/widgets/layout/form-field/form-field-widget-view.component.mjs +1 -3
- package/esm2022/widgets/lib/widgets/layout/grid/grid-widget-view.component.mjs +1 -3
- package/esm2022/widgets/lib/widgets/layout/grid-item/grid-item-widget-view.component.mjs +1 -5
- package/esm2022/widgets/lib/widgets/layout/grid-row/grid-row-widget-view.component.mjs +1 -3
- package/esm2022/widgets/lib/widgets/layout/page/page-widget-view.component.mjs +1 -3
- 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 +93 -35
- package/fesm2022/acorex-platform-layout-builder.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-Oxpdaz9P.mjs → acorex-platform-widgets-button-widget-designer.component-B9bfVuC4.mjs} +1 -2
- 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 +356 -404
- package/fesm2022/acorex-platform-widgets.mjs.map +1 -1
- package/layout/builder/lib/builder/widget.types.d.ts +30 -1
- package/package.json +7 -7
- 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/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/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-B9lGgO_u.mjs +0 -357
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-B9lGgO_u.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-button-widget-designer.component-Oxpdaz9P.mjs.map +0 -1
- package/fesm2022/acorex-platform-widgets-checkbox-widget-designer.component-DAGbdSTk.mjs.map +0 -1
|
@@ -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;
|
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,18 +51,18 @@
|
|
|
51
51
|
"esm": "./esm2022/common/acorex-platform-common.mjs",
|
|
52
52
|
"default": "./fesm2022/acorex-platform-common.mjs"
|
|
53
53
|
},
|
|
54
|
-
"./mocks": {
|
|
55
|
-
"types": "./mocks/index.d.ts",
|
|
56
|
-
"esm2022": "./esm2022/mocks/acorex-platform-mocks.mjs",
|
|
57
|
-
"esm": "./esm2022/mocks/acorex-platform-mocks.mjs",
|
|
58
|
-
"default": "./fesm2022/acorex-platform-mocks.mjs"
|
|
59
|
-
},
|
|
60
54
|
"./native": {
|
|
61
55
|
"types": "./native/index.d.ts",
|
|
62
56
|
"esm2022": "./esm2022/native/acorex-platform-native.mjs",
|
|
63
57
|
"esm": "./esm2022/native/acorex-platform-native.mjs",
|
|
64
58
|
"default": "./fesm2022/acorex-platform-native.mjs"
|
|
65
59
|
},
|
|
60
|
+
"./mocks": {
|
|
61
|
+
"types": "./mocks/index.d.ts",
|
|
62
|
+
"esm2022": "./esm2022/mocks/acorex-platform-mocks.mjs",
|
|
63
|
+
"esm": "./esm2022/mocks/acorex-platform-mocks.mjs",
|
|
64
|
+
"default": "./fesm2022/acorex-platform-mocks.mjs"
|
|
65
|
+
},
|
|
66
66
|
"./core": {
|
|
67
67
|
"types": "./core/index.d.ts",
|
|
68
68
|
"esm2022": "./esm2022/core/acorex-platform-core.mjs",
|
|
@@ -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;
|
|
@@ -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,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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqBM,MAAO,8BAA+B,SAAQ,iBAAyB,CAAA;AAb7E,IAAA,WAAA,GAAA;;QAgBY,IAAW,CAAA,WAAA,GAAW,kBAAkB,CAAC;AAEnD,QAAA,IAAA,CAAA,cAAc,GAAG;AACf,YAAA,CAAC,MAAM,EAAE,QAAQ,EAAE,WAAW,EAAE,QAAQ,CAAC;YACzC,CAAC,YAAY,EAAE,YAAY,CAAC;YAC5B,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,CAAC;YACzC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,E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