@acorex/platform 18.1.2 → 18.1.3
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/widget-catalog.mjs +2 -1
- package/esm2022/layout/builder/lib/builder/widget.types.mjs +5 -2
- package/esm2022/layout/designer/lib/designer/index.mjs +5 -4
- package/esm2022/layout/entity/lib/entity.module.mjs +4 -3
- package/esm2022/layout/entity/lib/widgets/widget-selector/index.mjs +4 -0
- package/esm2022/layout/entity/lib/widgets/widget-selector/widget-selector-widget-edit.component.mjs +130 -0
- package/esm2022/layout/entity/lib/widgets/widget-selector/widget-selector-widget-view.component.mjs +18 -0
- package/esm2022/layout/entity/lib/widgets/widget-selector/widget-selector-widget.config.mjs +19 -0
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-single-view/entity-master-single-view.component.mjs +2 -2
- package/esm2022/themes/default/lib/layouts/entity-layouts/index.mjs +1 -2
- package/esm2022/themes/shared/acorex-platform-themes-shared.mjs +5 -0
- package/esm2022/themes/shared/index.mjs +6 -0
- package/esm2022/themes/shared/lib/comments/comment-list-view.component.mjs +397 -0
- package/esm2022/themes/{default/lib/layouts/entity-layouts/entity-master-single-view → shared/lib}/comments/comment-lookup-popup.component.mjs +1 -1
- package/esm2022/themes/shared/lib/comments/comments.service.mjs +3 -0
- package/esm2022/themes/shared/lib/comments/comments.type.mjs +2 -0
- package/esm2022/themes/shared/lib/shared.module.mjs +16 -0
- package/esm2022/widgets/lib/widgets/editors/contact/contact-widget-edit.component.mjs +24 -8
- package/fesm2022/acorex-platform-layout-builder.mjs +5 -1
- package/fesm2022/acorex-platform-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-designer.mjs +190 -100
- package/fesm2022/acorex-platform-layout-designer.mjs.map +1 -1
- package/fesm2022/acorex-platform-layout-entity.mjs +157 -5
- package/fesm2022/acorex-platform-layout-entity.mjs.map +1 -1
- package/fesm2022/{acorex-platform-themes-default-entity-master-create-view.component-LyEomIA6.mjs → acorex-platform-themes-default-entity-master-create-view.component-Q8eTfAVx.mjs} +3 -3
- package/fesm2022/{acorex-platform-themes-default-entity-master-create-view.component-LyEomIA6.mjs.map → acorex-platform-themes-default-entity-master-create-view.component-Q8eTfAVx.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-themes-default-entity-master-list-view.component-CKRwvJTp.mjs → acorex-platform-themes-default-entity-master-list-view.component-fZ6QEYcd.mjs} +8 -8
- package/fesm2022/{acorex-platform-themes-default-entity-master-list-view.component-CKRwvJTp.mjs.map → acorex-platform-themes-default-entity-master-list-view.component-fZ6QEYcd.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-themes-default-entity-master-modify-view.component-CMRfspMB.mjs → acorex-platform-themes-default-entity-master-modify-view.component-BijYXMme.mjs} +3 -3
- package/fesm2022/{acorex-platform-themes-default-entity-master-modify-view.component-CMRfspMB.mjs.map → acorex-platform-themes-default-entity-master-modify-view.component-BijYXMme.mjs.map} +1 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-Bnrabotu.mjs +145 -0
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-Bnrabotu.mjs.map +1 -0
- package/fesm2022/acorex-platform-themes-default.mjs +11 -14
- package/fesm2022/acorex-platform-themes-default.mjs.map +1 -1
- package/fesm2022/acorex-platform-themes-shared.mjs +469 -0
- package/fesm2022/acorex-platform-themes-shared.mjs.map +1 -0
- package/fesm2022/acorex-platform-widgets.mjs +23 -7
- package/fesm2022/acorex-platform-widgets.mjs.map +1 -1
- package/layout/builder/lib/builder/widget.types.d.ts +1 -0
- package/layout/designer/lib/designer/index.d.ts +4 -3
- package/layout/entity/lib/widgets/widget-selector/index.d.ts +3 -0
- package/layout/entity/lib/widgets/widget-selector/widget-selector-widget-edit.component.d.ts +25 -0
- package/layout/entity/lib/widgets/widget-selector/widget-selector-widget-view.component.d.ts +6 -0
- package/layout/entity/lib/widgets/widget-selector/widget-selector-widget.config.d.ts +7 -0
- package/package.json +23 -17
- package/themes/default/lib/layouts/entity-layouts/index.d.ts +0 -1
- package/themes/shared/README.md +4 -0
- package/themes/shared/index.d.ts +5 -0
- package/themes/{default/lib/layouts/entity-layouts/entity-master-single-view → shared/lib}/comments/comment-list-view.component.d.ts +21 -16
- package/themes/shared/lib/shared.module.d.ts +6 -0
- package/widgets/lib/widgets/editors/contact/contact-widget-edit.component.d.ts +3 -1
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-single-view/comments/comment-list-view.component.mjs +0 -284
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-single-view/comments/comments.service.mjs +0 -3
- package/esm2022/themes/default/lib/layouts/entity-layouts/entity-master-single-view/comments/comments.type.mjs +0 -2
- package/fesm2022/acorex-platform-layout-designer-widget-picker.component-BZryrCyh.mjs +0 -100
- package/fesm2022/acorex-platform-layout-designer-widget-picker.component-BZryrCyh.mjs.map +0 -1
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-DhcKSyrX.mjs +0 -457
- package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-DhcKSyrX.mjs.map +0 -1
- /package/themes/{default/lib/layouts/entity-layouts/entity-master-single-view → shared/lib}/comments/comment-lookup-popup.component.d.ts +0 -0
- /package/themes/{default/lib/layouts/entity-layouts/entity-master-single-view → shared/lib}/comments/comments.service.d.ts +0 -0
- /package/themes/{default/lib/layouts/entity-layouts/entity-master-single-view → shared/lib}/comments/comments.type.d.ts +0 -0
package/fesm2022/acorex-platform-themes-default-entity-master-single-view.component-DhcKSyrX.mjs
DELETED
|
@@ -1,457 +0,0 @@
|
|
|
1
|
-
import { AXActionSheetModule } from '@acorex/components/action-sheet';
|
|
2
|
-
import * as i8$1 from '@acorex/components/breadcrumbs';
|
|
3
|
-
import { AXBreadcrumbsModule } from '@acorex/components/breadcrumbs';
|
|
4
|
-
import * as i4 from '@acorex/components/button';
|
|
5
|
-
import { AXButtonModule } from '@acorex/components/button';
|
|
6
|
-
import * as i3 from '@acorex/components/decorators';
|
|
7
|
-
import { AXDecoratorModule } from '@acorex/components/decorators';
|
|
8
|
-
import { AXDialogService, AXDialogModule } from '@acorex/components/dialog';
|
|
9
|
-
import * as i4$2 from '@acorex/components/drawer';
|
|
10
|
-
import { AXDrawerModule } from '@acorex/components/drawer';
|
|
11
|
-
import * as i8 from '@acorex/components/dropdown';
|
|
12
|
-
import { AXDropdownModule } from '@acorex/components/dropdown';
|
|
13
|
-
import * as i2$2 from '@acorex/components/form';
|
|
14
|
-
import { AXFormModule } from '@acorex/components/form';
|
|
15
|
-
import * as i5 from '@acorex/components/loading';
|
|
16
|
-
import { AXLoadingModule } from '@acorex/components/loading';
|
|
17
|
-
import { AXPopoverModule } from '@acorex/components/popover';
|
|
18
|
-
import * as i3$2 from '@acorex/components/tabs';
|
|
19
|
-
import { AXTabsModule } from '@acorex/components/tabs';
|
|
20
|
-
import * as i9 from '@acorex/core/translation';
|
|
21
|
-
import { AXTranslationModule } from '@acorex/core/translation';
|
|
22
|
-
import { AXPGridLayoutDirective, AXPStickyDirective, isSmallScreen, getChildDrawer } from '@acorex/platform/common';
|
|
23
|
-
import * as i2 from '@acorex/platform/layout/builder';
|
|
24
|
-
import { AXPLayoutBuilderModule } from '@acorex/platform/layout/builder';
|
|
25
|
-
import { AXPWidgetsModule } from '@acorex/platform/widgets';
|
|
26
|
-
import * as i1 from '@angular/common';
|
|
27
|
-
import { CommonModule } from '@angular/common';
|
|
28
|
-
import * as i0 from '@angular/core';
|
|
29
|
-
import { Component, signal, viewChild, inject, computed, ChangeDetectionStrategy } from '@angular/core';
|
|
30
|
-
import * as i2$3 from '@angular/router';
|
|
31
|
-
import { ActivatedRoute, RouterModule } from '@angular/router';
|
|
32
|
-
import { Store } from '@ngrx/store';
|
|
33
|
-
import * as i3$1 from '@acorex/components/comment';
|
|
34
|
-
import { AXCommentModule } from '@acorex/components/comment';
|
|
35
|
-
import * as i4$1 from '@acorex/components/wysiwyg';
|
|
36
|
-
import { AXWysiwygModule } from '@acorex/components/wysiwyg';
|
|
37
|
-
import * as i2$1 from '@angular/forms';
|
|
38
|
-
import { FormsModule } from '@angular/forms';
|
|
39
|
-
import * as i6 from '@acorex/components/avatar';
|
|
40
|
-
import { AXAvatarModule } from '@acorex/components/avatar';
|
|
41
|
-
import * as i7$1 from '@acorex/components/dropdown-button';
|
|
42
|
-
import { AXDropdownButtonModule } from '@acorex/components/dropdown-button';
|
|
43
|
-
import * as i7 from '@acorex/components/image';
|
|
44
|
-
import { AXImageModule } from '@acorex/components/image';
|
|
45
|
-
import { AXLabelModule } from '@acorex/components/label';
|
|
46
|
-
import { AXPopupService } from '@acorex/components/popup';
|
|
47
|
-
import { AXSelectBoxModule } from '@acorex/components/select-box';
|
|
48
|
-
import { AXTextBoxModule } from '@acorex/components/text-box';
|
|
49
|
-
import { AXToastService } from '@acorex/components/toast';
|
|
50
|
-
import { AXPHtmlUtils } from '@acorex/platform/core';
|
|
51
|
-
import { AXBasePageComponent } from '@acorex/components/page';
|
|
52
|
-
import { AXPCommentService, AXPEntityDetailListViewComponent } from './acorex-platform-themes-default.mjs';
|
|
53
|
-
import '@acorex/core/utils';
|
|
54
|
-
import '@acorex/components/side-menu';
|
|
55
|
-
import '@acorex/platform/auth';
|
|
56
|
-
import '@acorex/components/badge';
|
|
57
|
-
import '@acorex/platform/layout/entity';
|
|
58
|
-
import '@acorex/components/data-table';
|
|
59
|
-
import '@acorex/components/search-box';
|
|
60
|
-
import '@acorex/components/tooltip';
|
|
61
|
-
import '@acorex/core/platform';
|
|
62
|
-
import '@acorex/platform/layouts';
|
|
63
|
-
import '@acorex/platform/workflow';
|
|
64
|
-
import 'rxjs';
|
|
65
|
-
|
|
66
|
-
class AXPCommentLookupPopup extends AXBasePageComponent {
|
|
67
|
-
constructor() {
|
|
68
|
-
super(...arguments);
|
|
69
|
-
this.lookupNode = {
|
|
70
|
-
name: 'lookup',
|
|
71
|
-
path: 'lookup',
|
|
72
|
-
type: 'lookup-editor',
|
|
73
|
-
options: {
|
|
74
|
-
entity: 'axoidc.users',
|
|
75
|
-
},
|
|
76
|
-
};
|
|
77
|
-
this.context = {};
|
|
78
|
-
}
|
|
79
|
-
handleClose() {
|
|
80
|
-
this.close({
|
|
81
|
-
result: true,
|
|
82
|
-
data: this.context,
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPCommentLookupPopup, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
86
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.0", type: AXPCommentLookupPopup, isStandalone: true, selector: "ng-component", usesInheritance: true, ngImport: i0, template: `<axp-widgets-container class="ax-flex ax-flex-col ax-gap-2 ax-p-4" [(context)]="context">
|
|
87
|
-
<div class="ax-m-5"><axp-widget-renderer [node]="lookupNode" [mode]="'edit'"> </axp-widget-renderer></div>
|
|
88
|
-
</axp-widgets-container>
|
|
89
|
-
|
|
90
|
-
<ax-footer>
|
|
91
|
-
<ax-suffix>
|
|
92
|
-
<ax-button text="Accept & Send" color="primary" (onClick)="handleClose()"></ax-button>
|
|
93
|
-
</ax-suffix>
|
|
94
|
-
</ax-footer>`, isInline: true, dependencies: [{ kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-sub-title, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXPLayoutBuilderModule }, { kind: "component", type: i2.AXPWidgetContainerComponent, selector: "axp-widgets-container", inputs: ["context", "variables", "functions"], outputs: ["onChanged", "contextChange"] }, { kind: "component", type: i2.AXPWidgetRendererComponent, selector: "axp-widget-renderer", inputs: ["node", "mode", "parentNode", "index"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i4.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type", "responsiveOn", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "responsiveOnChange", "loadingTextChange"] }] }); }
|
|
95
|
-
}
|
|
96
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPCommentLookupPopup, decorators: [{
|
|
97
|
-
type: Component,
|
|
98
|
-
args: [{
|
|
99
|
-
template: `<axp-widgets-container class="ax-flex ax-flex-col ax-gap-2 ax-p-4" [(context)]="context">
|
|
100
|
-
<div class="ax-m-5"><axp-widget-renderer [node]="lookupNode" [mode]="'edit'"> </axp-widget-renderer></div>
|
|
101
|
-
</axp-widgets-container>
|
|
102
|
-
|
|
103
|
-
<ax-footer>
|
|
104
|
-
<ax-suffix>
|
|
105
|
-
<ax-button text="Accept & Send" color="primary" (onClick)="handleClose()"></ax-button>
|
|
106
|
-
</ax-suffix>
|
|
107
|
-
</ax-footer>`,
|
|
108
|
-
imports: [AXDecoratorModule, AXPLayoutBuilderModule, AXButtonModule],
|
|
109
|
-
standalone: true,
|
|
110
|
-
}]
|
|
111
|
-
}] });
|
|
112
|
-
|
|
113
|
-
class AXPCommentListViewComponent {
|
|
114
|
-
constructor() {
|
|
115
|
-
this.commentContent = signal('');
|
|
116
|
-
this.hasCooldown = signal(false);
|
|
117
|
-
this.isSubmitting = signal(false);
|
|
118
|
-
this.isReplyingMode = signal(false);
|
|
119
|
-
this.isEditingMode = signal(false);
|
|
120
|
-
this.failedImageIds = signal([]);
|
|
121
|
-
this.activeReplyComment = signal(undefined);
|
|
122
|
-
this.activeEditComment = signal(undefined);
|
|
123
|
-
this.wysiwygEditor = viewChild.required('w');
|
|
124
|
-
this.commentService = inject(AXPCommentService);
|
|
125
|
-
this.route = inject(ActivatedRoute);
|
|
126
|
-
this.popupService = inject(AXPopupService);
|
|
127
|
-
this.toastService = inject(AXToastService);
|
|
128
|
-
this.dialogService = inject(AXDialogService);
|
|
129
|
-
this.htmlUtils = inject(AXPHtmlUtils);
|
|
130
|
-
this.routeParams = this.route.snapshot;
|
|
131
|
-
this.payload = computed(() => ({
|
|
132
|
-
roomType: 'default',
|
|
133
|
-
entityId: this.routeParams.params?.['module'] + '.' + this.routeParams.params?.['entity'],
|
|
134
|
-
instanceId: this.routeParams.params?.['id'],
|
|
135
|
-
}));
|
|
136
|
-
this.comments = signal([]);
|
|
137
|
-
this.wysiwygOptions = signal({
|
|
138
|
-
look: 'none',
|
|
139
|
-
});
|
|
140
|
-
this.avatarConfig = signal({
|
|
141
|
-
color: 'primary',
|
|
142
|
-
look: 'rounded',
|
|
143
|
-
type: 'solid', // 'image' | 'text' | 'icon' | 'default'
|
|
144
|
-
});
|
|
145
|
-
this.validateContent = (content) => {
|
|
146
|
-
let isValid = true;
|
|
147
|
-
if (!content || content === '<p><br></p>') {
|
|
148
|
-
isValid = false;
|
|
149
|
-
}
|
|
150
|
-
return {
|
|
151
|
-
rule: 'callback',
|
|
152
|
-
result: isValid,
|
|
153
|
-
message: isValid ? '' : 'Please fill the content',
|
|
154
|
-
value: content,
|
|
155
|
-
};
|
|
156
|
-
};
|
|
157
|
-
}
|
|
158
|
-
ngOnInit() {
|
|
159
|
-
this.loadComments();
|
|
160
|
-
}
|
|
161
|
-
sanitizeHtml(htmlContent) {
|
|
162
|
-
return this.htmlUtils.getSafeHTMLfromHTML(htmlContent);
|
|
163
|
-
}
|
|
164
|
-
handleImageError(imageId) {
|
|
165
|
-
this.failedImageIds.update((ids) => [...ids, imageId]);
|
|
166
|
-
}
|
|
167
|
-
checkImageExists(imageId) {
|
|
168
|
-
return !this.failedImageIds().includes(imageId);
|
|
169
|
-
}
|
|
170
|
-
extractInitials(name) {
|
|
171
|
-
const words = name.split(' ');
|
|
172
|
-
const initials = words.map((word) => word.charAt(0).toUpperCase());
|
|
173
|
-
return initials.join('');
|
|
174
|
-
}
|
|
175
|
-
async loadComments() {
|
|
176
|
-
const response = await this.commentService.get(this.payload());
|
|
177
|
-
this.comments.set(response.items);
|
|
178
|
-
}
|
|
179
|
-
async initiateEditComment(comment) {
|
|
180
|
-
this.isReplyingMode.set(false);
|
|
181
|
-
this.activeReplyComment.set(undefined);
|
|
182
|
-
this.isEditingMode.set(true);
|
|
183
|
-
this.activeEditComment.set(comment);
|
|
184
|
-
this.commentContent.set(comment.content);
|
|
185
|
-
document.getElementsByClassName('ql-editor')[0].innerHTML = comment.content;
|
|
186
|
-
this.wysiwygEditor().getHostElement().scrollIntoView({ behavior: 'smooth', block: 'start' });
|
|
187
|
-
}
|
|
188
|
-
async initiateReplyComment(comment) {
|
|
189
|
-
this.isEditingMode.set(false);
|
|
190
|
-
this.activeEditComment.set(undefined);
|
|
191
|
-
this.isReplyingMode.set(true);
|
|
192
|
-
this.activeReplyComment.set(comment);
|
|
193
|
-
this.wysiwygEditor().getHostElement().scrollIntoView({ behavior: 'smooth', block: 'start' });
|
|
194
|
-
}
|
|
195
|
-
async deleteComment(comment) {
|
|
196
|
-
const dialog = this.dialogService.open({
|
|
197
|
-
icon: 'fa-regular fa-warning',
|
|
198
|
-
content: 'Are you sure you want to delete this comment?',
|
|
199
|
-
title: 'Delete Comment',
|
|
200
|
-
type: 'danger',
|
|
201
|
-
orientation: 'horizontal',
|
|
202
|
-
buttons: [
|
|
203
|
-
{
|
|
204
|
-
text: 'Delete',
|
|
205
|
-
color: 'danger',
|
|
206
|
-
onClick: async (e) => {
|
|
207
|
-
e.handled = true;
|
|
208
|
-
e.source.text = 'Deleting...';
|
|
209
|
-
e.source.disabled = true;
|
|
210
|
-
e.source.loading = true;
|
|
211
|
-
try {
|
|
212
|
-
await this.commentService.delete({ id: comment.id });
|
|
213
|
-
this.removeCommentById(comment.id);
|
|
214
|
-
this.toastService.show({
|
|
215
|
-
content: 'Comment deleted successfully.',
|
|
216
|
-
color: 'success',
|
|
217
|
-
location: 'bottom-center',
|
|
218
|
-
closeButton: true,
|
|
219
|
-
timeOut: 3000,
|
|
220
|
-
timeOutProgress: true,
|
|
221
|
-
});
|
|
222
|
-
dialog.close();
|
|
223
|
-
}
|
|
224
|
-
catch (error) {
|
|
225
|
-
this.toastService.show({
|
|
226
|
-
content: typeof error === 'string' ? error : 'Failed to delete comment!',
|
|
227
|
-
color: 'danger',
|
|
228
|
-
location: 'bottom-center',
|
|
229
|
-
closeButton: true,
|
|
230
|
-
timeOut: 3000,
|
|
231
|
-
timeOutProgress: true,
|
|
232
|
-
});
|
|
233
|
-
}
|
|
234
|
-
},
|
|
235
|
-
},
|
|
236
|
-
{
|
|
237
|
-
text: 'Cancel',
|
|
238
|
-
color: 'ghost',
|
|
239
|
-
autofocus: true,
|
|
240
|
-
onClick: (e) => {
|
|
241
|
-
dialog.close();
|
|
242
|
-
},
|
|
243
|
-
},
|
|
244
|
-
],
|
|
245
|
-
closeButton: false,
|
|
246
|
-
});
|
|
247
|
-
}
|
|
248
|
-
resetReplyEditState() {
|
|
249
|
-
this.isEditingMode.set(false);
|
|
250
|
-
this.activeEditComment.set(undefined);
|
|
251
|
-
this.isReplyingMode.set(false);
|
|
252
|
-
this.activeReplyComment.set(undefined);
|
|
253
|
-
}
|
|
254
|
-
async toggleLikeComment(comment) {
|
|
255
|
-
this.updateLikeStatus(comment.id);
|
|
256
|
-
const payload = {
|
|
257
|
-
messageId: comment.id,
|
|
258
|
-
type: 'like',
|
|
259
|
-
};
|
|
260
|
-
try {
|
|
261
|
-
await this.commentService.like(payload);
|
|
262
|
-
}
|
|
263
|
-
catch (error) {
|
|
264
|
-
this.updateLikeStatus(comment.id);
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
updateLikeStatus(commentId) {
|
|
268
|
-
this.comments.update((commentsList) => {
|
|
269
|
-
return commentsList.map((comment) => comment.id === commentId
|
|
270
|
-
? {
|
|
271
|
-
...comment,
|
|
272
|
-
isLiked: !comment.isLiked,
|
|
273
|
-
reactionsCount: comment.isLiked ? --comment.reactionsCount : ++comment.reactionsCount,
|
|
274
|
-
}
|
|
275
|
-
: comment);
|
|
276
|
-
});
|
|
277
|
-
}
|
|
278
|
-
removeCommentById(commentId) {
|
|
279
|
-
this.comments.update((commentsList) => commentsList.filter((comment) => comment.id !== commentId));
|
|
280
|
-
}
|
|
281
|
-
async submitPrivateComment() {
|
|
282
|
-
if (!this.validateContent(this.commentContent()).result) {
|
|
283
|
-
return;
|
|
284
|
-
}
|
|
285
|
-
const popupConfig = {
|
|
286
|
-
header: true,
|
|
287
|
-
size: 'md',
|
|
288
|
-
draggable: true,
|
|
289
|
-
hasBackdrop: true,
|
|
290
|
-
closeButton: true,
|
|
291
|
-
closeOnBackdropClick: false,
|
|
292
|
-
};
|
|
293
|
-
const popup = await this.popupService.open(AXPCommentLookupPopup, popupConfig);
|
|
294
|
-
const payload = {
|
|
295
|
-
...this.payload(),
|
|
296
|
-
content: this.commentContent(),
|
|
297
|
-
contentType: 'text',
|
|
298
|
-
isPrivate: false,
|
|
299
|
-
replyId: this.activeReplyComment()?.id,
|
|
300
|
-
members: [popup.data?.data?.lookup],
|
|
301
|
-
};
|
|
302
|
-
this.isSubmitting.set(true);
|
|
303
|
-
this.hasCooldown.set(true);
|
|
304
|
-
await this.commentService.post(payload);
|
|
305
|
-
const response = await this.commentService.get(this.payload());
|
|
306
|
-
this.comments.set(response.items);
|
|
307
|
-
this.commentContent.set('');
|
|
308
|
-
document.getElementsByClassName('ql-editor')[0].innerHTML = '';
|
|
309
|
-
this.isSubmitting.set(false);
|
|
310
|
-
setTimeout(() => {
|
|
311
|
-
this.hasCooldown.set(false);
|
|
312
|
-
}, 1000);
|
|
313
|
-
}
|
|
314
|
-
async submitComment() {
|
|
315
|
-
if (!this.validateContent(this.commentContent()).result) {
|
|
316
|
-
return;
|
|
317
|
-
}
|
|
318
|
-
const payload = {
|
|
319
|
-
...this.payload(),
|
|
320
|
-
content: this.commentContent(),
|
|
321
|
-
contentType: 'text',
|
|
322
|
-
isPrivate: false,
|
|
323
|
-
replyId: this.activeReplyComment()?.id,
|
|
324
|
-
};
|
|
325
|
-
this.isSubmitting.set(true);
|
|
326
|
-
this.hasCooldown.set(true);
|
|
327
|
-
await this.commentService.post(payload);
|
|
328
|
-
const response = await this.commentService.get(this.payload());
|
|
329
|
-
this.comments.set(response.items);
|
|
330
|
-
this.commentContent.set('');
|
|
331
|
-
document.getElementsByClassName('ql-editor')[0].innerHTML = '';
|
|
332
|
-
this.isSubmitting.set(false);
|
|
333
|
-
setTimeout(() => {
|
|
334
|
-
this.hasCooldown.set(false);
|
|
335
|
-
}, 1000);
|
|
336
|
-
}
|
|
337
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPCommentListViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
338
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXPCommentListViewComponent, isStandalone: true, selector: "axp-comment-list-view", viewQueries: [{ propertyName: "wysiwygEditor", first: true, predicate: ["w"], descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"ax-mt-2\">\n <ax-comment-view class=\"ax-bg-surface\">\n @for(comment of comments(); track comment.id){\n <ax-comment-item>\n <ax-avatar [color]=\"avatarConfig().color\" [look]=\"avatarConfig().look\">\n @if(checkImageExists(comment.id) && comment.user.picture){\n <ax-image (onError)=\"handleImageError(comment.id)\" [src]=\"comment.user.picture\">\n <ax-loading></ax-loading>\n </ax-image>\n }@else{\n <ax-text>\n <span class=\"ax-text-base ax-overflow-hidden\">{{\n extractInitials(comment.user.firstName + ' ' + comment.user.lastName)\n }}</span>\n </ax-text>\n }\n </ax-avatar>\n <ax-title>{{ comment.user.firstName + ' ' + comment.user.lastName }}</ax-title>\n <ax-comment-menu-options>\n <ax-button class=\"ax-sm\" look=\"blank\" color=\"secondary\">\n <ax-icon icon=\"ax-icon ax-icon-solid ax-icon-more-horizontal\"></ax-icon>\n </ax-button>\n\n <ax-dropdown-panel>\n <ax-button-item-list>\n <ax-button-item text=\"Edit\" color=\"secondary\" (click)=\"initiateEditComment(comment)\">\n <ax-prefix>\n <ax-icon icon=\"fa-solid fa-edit\"></ax-icon>\n </ax-prefix>\n </ax-button-item>\n\n <ax-button-item text=\"Delete\" color=\"danger\" (click)=\"deleteComment(comment)\">\n <ax-prefix>\n <ax-icon icon=\"fa-solid fa-trash-can\"></ax-icon>\n </ax-prefix>\n </ax-button-item>\n </ax-button-item-list>\n </ax-dropdown-panel>\n </ax-comment-menu-options>\n <ax-content [innerHTML]=\"sanitizeHtml(comment.content)\"></ax-content>\n <ax-comment-like (click)=\"toggleLikeComment(comment)\" [liked]=\"comment.isLiked\">\n {{ comment.reactionsCount }}\n </ax-comment-like>\n <ax-comment-reply-text (click)=\"initiateReplyComment(comment)\"></ax-comment-reply-text>\n @for(reply of comment.replies; track reply.id){\n <ax-comment-item>\n @if(checkImageExists(reply.id) && reply?.user?.picture){\n <ax-image (onError)=\"handleImageError(reply.id)\" [src]=\"reply?.user?.picture\">\n <ax-loading></ax-loading>\n </ax-image>\n }@else{\n <ax-text>\n <span class=\"ax-text-base ax-overflow-hidden\">{{\n extractInitials(reply?.user?.firstName + ' ' + reply?.user?.lastName)\n }}</span>\n </ax-text>\n }\n <ax-title>{{ (reply?.user?.firstName ?? '') + ' ' + (reply?.user?.lastName ?? '') }}</ax-title>\n <ax-content [innerHTML]=\"sanitizeHtml(reply.content)\"></ax-content>\n <ax-comment-like (click)=\"toggleLikeComment(reply)\" [liked]=\"reply.isLiked\">\n {{ reply.reactionsCount }}\n </ax-comment-like>\n <ax-comment-reply-text (click)=\"initiateReplyComment(reply)\"></ax-comment-reply-text>\n </ax-comment-item>\n }\n </ax-comment-item>\n } @empty{ }\n </ax-comment-view>\n\n <ax-form>\n <ax-form-field>\n <div class=\"ax-border ax-overflow-hidden ax-rounded-lg\">\n @if(isReplyingMode() || isEditingMode()){\n <div\n class=\"ax-flex ax-justify-between ax-border-b ax-bg-on-surface ax-px-6 ax-py-4 ax-w-full ax-items-center ax-overflow-hidden ax-text-sm ax-leading-none\"\n >\n <div class=\"ax-flex ax-justify-start ax-align-middle\">\n <i\n [class]=\"isReplyingMode() ? 'fa-reply' : 'fa-pen'\"\n class=\"fa-solid ax-text-primary-500 ax-text-2xl ax-me-4\"\n ></i>\n <div class=\"ax-flex ax-flex-col ax-gap-2 ax-justify-between ax-align-middle\">\n <p class=\"ax-text-primary-500\">\n {{ isReplyingMode() ? 'Reply to ' : 'Edit Message' }}\n <span class=\"ax-font-bold\">\n {{\n isReplyingMode()\n ? activeReplyComment()?.user?.firstName + ' ' + activeReplyComment()?.user?.lastName\n : ''\n }}\n </span>\n </p>\n <div\n class=\"ax-truncate\"\n [innerHTML]=\"\n isReplyingMode()\n ? sanitizeHtml(activeReplyComment()?.content ?? '')\n : sanitizeHtml(activeEditComment()?.content ?? '')\n \"\n ></div>\n </div>\n </div>\n <div><i (click)=\"resetReplyEditState()\" class=\"fa-solid ax-text-2xl fa-xmark ax-cursor-pointer\"></i></div>\n </div>\n }\n <ax-wysiwyg-container #w [look]=\"wysiwygOptions().look\" [(ngModel)]=\"commentContent\">\n <ax-wysiwyg-view class=\"ax-min-h-28\"></ax-wysiwyg-view>\n <ax-wysiwyg-toolbar>\n <ax-wysiwyg-history></ax-wysiwyg-history>\n <ax-wysiwyg-font-style></ax-wysiwyg-font-style>\n <ax-wysiwyg-colors></ax-wysiwyg-colors>\n <ax-wysiwyg-list></ax-wysiwyg-list>\n <ax-wysiwyg-alignment></ax-wysiwyg-alignment>\n <ax-suffix>\n <ax-dropdown-button\n [disabled]=\"hasCooldown()\"\n type=\"submit\"\n color=\"primary\"\n mode=\"split\"\n text=\"Send\"\n (onClick)=\"submitComment()\"\n >\n @if(isSubmitting()){ <ax-loading></ax-loading> }\n <ax-button-item-list>\n <ax-button-item\n (click)=\"submitPrivateComment()\"\n text=\"Send Private ...\"\n name=\"private\"\n data=\"private\"\n >\n <ax-prefix>\n <ax-icon icon=\"fa-regular fa-user-secret\"></ax-icon>\n </ax-prefix>\n </ax-button-item>\n </ax-button-item-list>\n </ax-dropdown-button>\n </ax-suffix>\n </ax-wysiwyg-toolbar>\n <ax-validation-rule rule=\"callback\" [options]=\"{ validate: validateContent }\"></ax-validation-rule>\n </ax-wysiwyg-container>\n </div>\n </ax-form-field>\n </ax-form>\n</div>\n", styles: ["ax-wysiwyg-container .ax-error-message{padding-left:.5rem}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2$1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: RouterModule }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i3.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-sub-title, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXCommentModule }, { kind: "component", type: i3$1.AXCommentViewComponent, selector: "ax-comment-view" }, { kind: "component", type: i3$1.AxCommentItemComponent, selector: "ax-comment-item" }, { kind: "component", type: i3$1.AXCommentLikeComponent, selector: "ax-comment-like", inputs: ["liked"] }, { kind: "component", type: i3$1.AXMenuOptionsComponent, selector: "ax-comment-menu-options" }, { kind: "component", type: i3$1.AXCommentReplyTextComponent, selector: "ax-comment-reply-text" }, { kind: "ngmodule", type: AXWysiwygModule }, { kind: "component", type: i4$1.AXWysiwygContainerComponent, selector: "ax-wysiwyg-container", inputs: ["look", "placeHolder"], outputs: ["onValueChanged"] }, { kind: "component", type: i4$1.AXWysiwygViewComponent, selector: "ax-wysiwyg-view", inputs: ["class"] }, { kind: "component", type: i4$1.AXWysiwygToolbarComponent, selector: "ax-wysiwyg-toolbar" }, { kind: "component", type: i4$1.AXWysiwygAlignmentComponent, selector: "ax-wysiwyg-alignment" }, { kind: "component", type: i4$1.AXWysiwygColorsComponent, selector: "ax-wysiwyg-colors" }, { kind: "component", type: i4$1.AXWysiwygFontStyleComponent, selector: "ax-wysiwyg-font-style" }, { kind: "component", type: i4$1.AXWysiwygHistoryComponent, selector: "ax-wysiwyg-history" }, { kind: "component", type: i4$1.AXWysiwygListComponent, selector: "ax-wysiwyg-list" }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i4.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type", "responsiveOn", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "responsiveOnChange", "loadingTextChange"] }, { kind: "component", type: i4.AXButtonItemComponent, selector: "ax-button-item", inputs: ["color", "disabled", "text", "selected", "divided", "data", "name"], outputs: ["onClick", "onFocus", "onBlur", "disabledChange"] }, { kind: "component", type: i4.AXButtonItemListComponent, selector: "ax-button-item-list", inputs: ["items"], outputs: ["onItemClick"] }, { kind: "ngmodule", type: AXTextBoxModule }, { kind: "ngmodule", type: AXLabelModule }, { kind: "ngmodule", type: AXAvatarModule }, { kind: "component", type: i6.AXAvatarComponent, selector: "ax-avatar", inputs: ["color", "size", "look"], outputs: ["sizeChange"] }, { kind: "ngmodule", type: AXImageModule }, { kind: "component", type: i7.AXImageComponent, selector: "ax-image", inputs: ["overlayMode", "src", "alt", "priority", "lazy"], outputs: ["onLoad", "onError"] }, { kind: "ngmodule", type: AXSelectBoxModule }, { kind: "ngmodule", type: AXFormModule }, { kind: "component", type: i2$2.AXFormFieldComponent, selector: "ax-form-field", inputs: ["labelMode"] }, { kind: "component", type: i2$2.AXFormComponent, selector: "ax-form", inputs: ["labelMode", "messageStyle", "updateOn"], outputs: ["onValidate", "updateOnChange"] }, { kind: "directive", type: i2$2.AXValidationRuleDirective, selector: "ax-validation-rule", inputs: ["rule", "options", "message"] }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "component", type: i5.AXLoadingComponent, selector: "ax-loading", inputs: ["visible", "type", "context"], outputs: ["visibleChange"] }, { kind: "ngmodule", type: AXDropdownButtonModule }, { kind: "component", type: i7$1.AXDropdownButtonComponent, selector: "ax-dropdown-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "type", "mode"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "lookChange", "colorChange", "disabledChange"] }, { kind: "ngmodule", type: AXDropdownModule }, { kind: "component", type: i8.AXDropdownPanelComponent, selector: "ax-dropdown-panel", inputs: ["isOpen", "fitParent", "dropdownWidth", "position", "_target", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
339
|
-
}
|
|
340
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPCommentListViewComponent, decorators: [{
|
|
341
|
-
type: Component,
|
|
342
|
-
args: [{ selector: 'axp-comment-list-view', imports: [
|
|
343
|
-
FormsModule,
|
|
344
|
-
CommonModule,
|
|
345
|
-
RouterModule,
|
|
346
|
-
AXDecoratorModule,
|
|
347
|
-
AXCommentModule,
|
|
348
|
-
AXWysiwygModule,
|
|
349
|
-
AXButtonModule,
|
|
350
|
-
AXTextBoxModule,
|
|
351
|
-
AXLabelModule,
|
|
352
|
-
AXAvatarModule,
|
|
353
|
-
AXImageModule,
|
|
354
|
-
AXSelectBoxModule,
|
|
355
|
-
AXFormModule,
|
|
356
|
-
AXLoadingModule,
|
|
357
|
-
AXDropdownButtonModule,
|
|
358
|
-
AXDropdownModule,
|
|
359
|
-
], standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"ax-mt-2\">\n <ax-comment-view class=\"ax-bg-surface\">\n @for(comment of comments(); track comment.id){\n <ax-comment-item>\n <ax-avatar [color]=\"avatarConfig().color\" [look]=\"avatarConfig().look\">\n @if(checkImageExists(comment.id) && comment.user.picture){\n <ax-image (onError)=\"handleImageError(comment.id)\" [src]=\"comment.user.picture\">\n <ax-loading></ax-loading>\n </ax-image>\n }@else{\n <ax-text>\n <span class=\"ax-text-base ax-overflow-hidden\">{{\n extractInitials(comment.user.firstName + ' ' + comment.user.lastName)\n }}</span>\n </ax-text>\n }\n </ax-avatar>\n <ax-title>{{ comment.user.firstName + ' ' + comment.user.lastName }}</ax-title>\n <ax-comment-menu-options>\n <ax-button class=\"ax-sm\" look=\"blank\" color=\"secondary\">\n <ax-icon icon=\"ax-icon ax-icon-solid ax-icon-more-horizontal\"></ax-icon>\n </ax-button>\n\n <ax-dropdown-panel>\n <ax-button-item-list>\n <ax-button-item text=\"Edit\" color=\"secondary\" (click)=\"initiateEditComment(comment)\">\n <ax-prefix>\n <ax-icon icon=\"fa-solid fa-edit\"></ax-icon>\n </ax-prefix>\n </ax-button-item>\n\n <ax-button-item text=\"Delete\" color=\"danger\" (click)=\"deleteComment(comment)\">\n <ax-prefix>\n <ax-icon icon=\"fa-solid fa-trash-can\"></ax-icon>\n </ax-prefix>\n </ax-button-item>\n </ax-button-item-list>\n </ax-dropdown-panel>\n </ax-comment-menu-options>\n <ax-content [innerHTML]=\"sanitizeHtml(comment.content)\"></ax-content>\n <ax-comment-like (click)=\"toggleLikeComment(comment)\" [liked]=\"comment.isLiked\">\n {{ comment.reactionsCount }}\n </ax-comment-like>\n <ax-comment-reply-text (click)=\"initiateReplyComment(comment)\"></ax-comment-reply-text>\n @for(reply of comment.replies; track reply.id){\n <ax-comment-item>\n @if(checkImageExists(reply.id) && reply?.user?.picture){\n <ax-image (onError)=\"handleImageError(reply.id)\" [src]=\"reply?.user?.picture\">\n <ax-loading></ax-loading>\n </ax-image>\n }@else{\n <ax-text>\n <span class=\"ax-text-base ax-overflow-hidden\">{{\n extractInitials(reply?.user?.firstName + ' ' + reply?.user?.lastName)\n }}</span>\n </ax-text>\n }\n <ax-title>{{ (reply?.user?.firstName ?? '') + ' ' + (reply?.user?.lastName ?? '') }}</ax-title>\n <ax-content [innerHTML]=\"sanitizeHtml(reply.content)\"></ax-content>\n <ax-comment-like (click)=\"toggleLikeComment(reply)\" [liked]=\"reply.isLiked\">\n {{ reply.reactionsCount }}\n </ax-comment-like>\n <ax-comment-reply-text (click)=\"initiateReplyComment(reply)\"></ax-comment-reply-text>\n </ax-comment-item>\n }\n </ax-comment-item>\n } @empty{ }\n </ax-comment-view>\n\n <ax-form>\n <ax-form-field>\n <div class=\"ax-border ax-overflow-hidden ax-rounded-lg\">\n @if(isReplyingMode() || isEditingMode()){\n <div\n class=\"ax-flex ax-justify-between ax-border-b ax-bg-on-surface ax-px-6 ax-py-4 ax-w-full ax-items-center ax-overflow-hidden ax-text-sm ax-leading-none\"\n >\n <div class=\"ax-flex ax-justify-start ax-align-middle\">\n <i\n [class]=\"isReplyingMode() ? 'fa-reply' : 'fa-pen'\"\n class=\"fa-solid ax-text-primary-500 ax-text-2xl ax-me-4\"\n ></i>\n <div class=\"ax-flex ax-flex-col ax-gap-2 ax-justify-between ax-align-middle\">\n <p class=\"ax-text-primary-500\">\n {{ isReplyingMode() ? 'Reply to ' : 'Edit Message' }}\n <span class=\"ax-font-bold\">\n {{\n isReplyingMode()\n ? activeReplyComment()?.user?.firstName + ' ' + activeReplyComment()?.user?.lastName\n : ''\n }}\n </span>\n </p>\n <div\n class=\"ax-truncate\"\n [innerHTML]=\"\n isReplyingMode()\n ? sanitizeHtml(activeReplyComment()?.content ?? '')\n : sanitizeHtml(activeEditComment()?.content ?? '')\n \"\n ></div>\n </div>\n </div>\n <div><i (click)=\"resetReplyEditState()\" class=\"fa-solid ax-text-2xl fa-xmark ax-cursor-pointer\"></i></div>\n </div>\n }\n <ax-wysiwyg-container #w [look]=\"wysiwygOptions().look\" [(ngModel)]=\"commentContent\">\n <ax-wysiwyg-view class=\"ax-min-h-28\"></ax-wysiwyg-view>\n <ax-wysiwyg-toolbar>\n <ax-wysiwyg-history></ax-wysiwyg-history>\n <ax-wysiwyg-font-style></ax-wysiwyg-font-style>\n <ax-wysiwyg-colors></ax-wysiwyg-colors>\n <ax-wysiwyg-list></ax-wysiwyg-list>\n <ax-wysiwyg-alignment></ax-wysiwyg-alignment>\n <ax-suffix>\n <ax-dropdown-button\n [disabled]=\"hasCooldown()\"\n type=\"submit\"\n color=\"primary\"\n mode=\"split\"\n text=\"Send\"\n (onClick)=\"submitComment()\"\n >\n @if(isSubmitting()){ <ax-loading></ax-loading> }\n <ax-button-item-list>\n <ax-button-item\n (click)=\"submitPrivateComment()\"\n text=\"Send Private ...\"\n name=\"private\"\n data=\"private\"\n >\n <ax-prefix>\n <ax-icon icon=\"fa-regular fa-user-secret\"></ax-icon>\n </ax-prefix>\n </ax-button-item>\n </ax-button-item-list>\n </ax-dropdown-button>\n </ax-suffix>\n </ax-wysiwyg-toolbar>\n <ax-validation-rule rule=\"callback\" [options]=\"{ validate: validateContent }\"></ax-validation-rule>\n </ax-wysiwyg-container>\n </div>\n </ax-form-field>\n </ax-form>\n</div>\n", styles: ["ax-wysiwyg-container .ax-error-message{padding-left:.5rem}\n"] }]
|
|
360
|
-
}] });
|
|
361
|
-
|
|
362
|
-
class AXPEntitySingleOverviewComponent {
|
|
363
|
-
constructor() {
|
|
364
|
-
this.activeRoute = inject(ActivatedRoute);
|
|
365
|
-
this.vm = this.activeRoute.snapshot.data['vm'];
|
|
366
|
-
this.selectedRelatedIEntityTabIndex = signal(0);
|
|
367
|
-
}
|
|
368
|
-
handleActiveRelatedEntityChanged(e) {
|
|
369
|
-
this.selectedRelatedIEntityTabIndex.set(e.index);
|
|
370
|
-
}
|
|
371
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPEntitySingleOverviewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
372
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXPEntitySingleOverviewComponent, isStandalone: true, selector: "axp-entity-single-overview", ngImport: i0, template: "<div class=\"ax-grid ax-grid-cols-12 ax-gap-4\">\n @for(section of vm.sections(); track section.name()) {\n <div class=\"ax-card ax-mt-2\" [gridLayout]=\"section.layout()\">\n <ax-form #form>\n <axp-widgets-container [context]=\"vm.context()\">\n <div class=\"ax-card-header !ax-py-2 !ax-px-4\">\n <p>\n <span class=\"!ax-text-lg ax-font-semibold\">{{ section.title() }}</span>\n <br />\n @if(section.description()) {\n <span class=\"ax-text-sm ax-font-normal ax-text-gray-500\">{{ section.description() }}</span>\n }\n </p>\n @if(section.editable()) {\n <ax-button\n class=\"ax-xs\"\n color=\"ghost\"\n [look]=\"'blank'\"\n (onClick)=\"vm.executeCommand('modify-entity-section', section)\"\n >\n <ax-icon class=\"fa-solid fa-pen ax-text-gray-600\"> </ax-icon>\n </ax-button>\n }\n </div>\n <div class=\"ax-card-body !ax-grid !ax-grid-cols-12 !ax-gap-4\">\n @for(attr of section.props(); track $index) {\n <div class=\"ax-flex ax-flex-col ax-gap-1\" [gridLayout]=\"attr.layout()\">\n <div>\n <div>\n <span class=\"ax-font-semibold\">{{ attr.title() }}</span>\n </div>\n </div>\n <div class=\"ax-text-neutral-500\">\n <axp-widget-renderer [node]=\"attr.node()\" [mode]=\"'view'\"> </axp-widget-renderer>\n </div>\n </div>\n }\n </div>\n </axp-widgets-container>\n </ax-form>\n </div>\n }\n</div>\n\n@if(vm.relatedEntities().length) {\n<ax-tabs\n [look]=\"'classic'\"\n class=\"ax-mt-4 ax-font-semibold\"\n #tab\n (onActiveTabChanged)=\"handleActiveRelatedEntityChanged($event)\"\n>\n @for(e of vm.relatedEntities();track $index;let index= $index){\n <ax-tab-item [text]=\"e.title()\" [key]=\"index.toString()\"> </ax-tab-item>\n }\n</ax-tabs>\n@for(e of vm.relatedEntities();track $index;let index= $index){\n<div [class.ax-hidden]=\"$index != selectedRelatedIEntityTabIndex()\">\n <axp-entity-detail-list-view [viewModel]=\"e\"></axp-entity-detail-list-view>\n</div>\n} }\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "ngmodule", type: RouterModule }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "ngmodule", type: AXDropdownModule }, { kind: "ngmodule", type: AXPopoverModule }, { kind: "ngmodule", type: AXFormModule }, { kind: "component", type: i2$2.AXFormComponent, selector: "ax-form", inputs: ["labelMode", "messageStyle", "updateOn"], outputs: ["onValidate", "updateOnChange"] }, { kind: "ngmodule", type: AXActionSheetModule }, { kind: "ngmodule", type: AXDrawerModule }, { kind: "ngmodule", type: AXDialogModule }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "ngmodule", type: AXTabsModule }, { kind: "component", type: i3$2.AXTabsComponent, selector: "ax-tabs", inputs: ["look", "location", "fitParent", "minWidth", "content"], outputs: ["onActiveTabChanged"] }, { kind: "component", type: i3$2.AXTabItemComponent, selector: "ax-tab-item", inputs: ["disabled", "text", "key", "headerTemplate", "active"], outputs: ["disabledChange", "onClick", "onBlur", "onFocus", "activeChange"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i4.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type", "responsiveOn", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "responsiveOnChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXBreadcrumbsModule }, { kind: "ngmodule", type:
|
|
373
|
-
//
|
|
374
|
-
AXPLayoutBuilderModule }, { kind: "component", type: i2.AXPWidgetContainerComponent, selector: "axp-widgets-container", inputs: ["context", "variables", "functions"], outputs: ["onChanged", "contextChange"] }, { kind: "component", type: i2.AXPWidgetRendererComponent, selector: "axp-widget-renderer", inputs: ["node", "mode", "parentNode", "index"] }, { kind: "ngmodule", type: AXPWidgetsModule }, { kind: "directive", type: AXPGridLayoutDirective, selector: "[gridLayout]", inputs: ["gridLayout"] }, { kind: "component", type: AXPEntityDetailListViewComponent, selector: "axp-entity-detail-list-view", inputs: ["viewModel"] }, { kind: "ngmodule", type:
|
|
375
|
-
//
|
|
376
|
-
AXTranslationModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
377
|
-
}
|
|
378
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPEntitySingleOverviewComponent, decorators: [{
|
|
379
|
-
type: Component,
|
|
380
|
-
args: [{ selector: 'axp-entity-single-overview', imports: [
|
|
381
|
-
CommonModule,
|
|
382
|
-
RouterModule,
|
|
383
|
-
AXDecoratorModule,
|
|
384
|
-
AXDropdownModule,
|
|
385
|
-
AXPopoverModule,
|
|
386
|
-
AXFormModule,
|
|
387
|
-
AXActionSheetModule,
|
|
388
|
-
AXDrawerModule,
|
|
389
|
-
AXDialogModule,
|
|
390
|
-
AXLoadingModule,
|
|
391
|
-
AXTabsModule,
|
|
392
|
-
AXButtonModule,
|
|
393
|
-
AXBreadcrumbsModule,
|
|
394
|
-
//
|
|
395
|
-
AXPLayoutBuilderModule,
|
|
396
|
-
AXPWidgetsModule,
|
|
397
|
-
AXPStickyDirective,
|
|
398
|
-
AXPGridLayoutDirective,
|
|
399
|
-
AXPEntityDetailListViewComponent,
|
|
400
|
-
//
|
|
401
|
-
AXTranslationModule,
|
|
402
|
-
], standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"ax-grid ax-grid-cols-12 ax-gap-4\">\n @for(section of vm.sections(); track section.name()) {\n <div class=\"ax-card ax-mt-2\" [gridLayout]=\"section.layout()\">\n <ax-form #form>\n <axp-widgets-container [context]=\"vm.context()\">\n <div class=\"ax-card-header !ax-py-2 !ax-px-4\">\n <p>\n <span class=\"!ax-text-lg ax-font-semibold\">{{ section.title() }}</span>\n <br />\n @if(section.description()) {\n <span class=\"ax-text-sm ax-font-normal ax-text-gray-500\">{{ section.description() }}</span>\n }\n </p>\n @if(section.editable()) {\n <ax-button\n class=\"ax-xs\"\n color=\"ghost\"\n [look]=\"'blank'\"\n (onClick)=\"vm.executeCommand('modify-entity-section', section)\"\n >\n <ax-icon class=\"fa-solid fa-pen ax-text-gray-600\"> </ax-icon>\n </ax-button>\n }\n </div>\n <div class=\"ax-card-body !ax-grid !ax-grid-cols-12 !ax-gap-4\">\n @for(attr of section.props(); track $index) {\n <div class=\"ax-flex ax-flex-col ax-gap-1\" [gridLayout]=\"attr.layout()\">\n <div>\n <div>\n <span class=\"ax-font-semibold\">{{ attr.title() }}</span>\n </div>\n </div>\n <div class=\"ax-text-neutral-500\">\n <axp-widget-renderer [node]=\"attr.node()\" [mode]=\"'view'\"> </axp-widget-renderer>\n </div>\n </div>\n }\n </div>\n </axp-widgets-container>\n </ax-form>\n </div>\n }\n</div>\n\n@if(vm.relatedEntities().length) {\n<ax-tabs\n [look]=\"'classic'\"\n class=\"ax-mt-4 ax-font-semibold\"\n #tab\n (onActiveTabChanged)=\"handleActiveRelatedEntityChanged($event)\"\n>\n @for(e of vm.relatedEntities();track $index;let index= $index){\n <ax-tab-item [text]=\"e.title()\" [key]=\"index.toString()\"> </ax-tab-item>\n }\n</ax-tabs>\n@for(e of vm.relatedEntities();track $index;let index= $index){\n<div [class.ax-hidden]=\"$index != selectedRelatedIEntityTabIndex()\">\n <axp-entity-detail-list-view [viewModel]=\"e\"></axp-entity-detail-list-view>\n</div>\n} }\n" }]
|
|
403
|
-
}] });
|
|
404
|
-
|
|
405
|
-
class AXPEntityMasterSingleViewComponent {
|
|
406
|
-
constructor() {
|
|
407
|
-
this.activeRoute = inject(ActivatedRoute);
|
|
408
|
-
this.vm = this.activeRoute.snapshot.data['vm'];
|
|
409
|
-
//
|
|
410
|
-
this.store = inject((Store));
|
|
411
|
-
this.isSM = this.store.select(isSmallScreen());
|
|
412
|
-
this.isOpen = this.store.select(getChildDrawer());
|
|
413
|
-
this.selectedDetailTabIndex = signal(0);
|
|
414
|
-
}
|
|
415
|
-
handleActiveDetailTabChanged(e) {
|
|
416
|
-
this.selectedDetailTabIndex.set(e.index);
|
|
417
|
-
}
|
|
418
|
-
ngOnDestroy() {
|
|
419
|
-
this.vm.destroy();
|
|
420
|
-
}
|
|
421
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPEntityMasterSingleViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
422
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.0", type: AXPEntityMasterSingleViewComponent, isStandalone: true, selector: "ng-component", ngImport: i0, template: "<ax-drawer-container>\n <!-- <ax-drawer #drawer location=\"start\" [collapsed]=\"!(isOpen | async)\" [mode]=\" (isSM | async) ? 'overlay' : 'push'\"\n *ngIf=\"loader.hasSections$ | async\" (collapsedChange)=\"handleCollapsedChange($event)\">\n <ax-content class=\"ax-border-e ax-p-6 ax-w-64\">\n <p class=\"ax-text-xl ax-font-bold ax-mb-6\">{{loader.sectionTitle}}</p>\n <ax-tabs look=\"with-line\" location=\"start\">\n @for(tab of (loader.sections$ | async); track tab.name)\n {\n <ax-tab-item [text]=\"tab.title\" [active]=\"isActive(tab)\" (onClick)=\"handleMenuClick($event,tab)\"\n [disabled]=\"editForm.context\">\n </ax-tab-item>\n }\n </ax-tabs>\n </ax-content>\n </ax-drawer> -->\n <ax-content #content class=\"ax-overflow-x-hidden\">\n <div\n class=\"ax-flex ax-flex-col ax-gap-4 ax-min-h-full ax-px-4 ax-pb-4 md:ax-px-6 ax-bg-surface ax-border-b md:ax-border-0 md:ax-bg-default\"\n >\n <div\n class=\"ax-flex ax-flex-col ax-pt-4 ax-sticky ax-top-0 ax-z-10 ax-transition-all\"\n #sticky=\"axpSticky\"\n [axpSticky]=\"'ax-bg-surface ax-px-6 ax-py-3 -ax-mx-6 ax-shadow-xl'\"\n [stickyOffset]=\"30\"\n [stickyParent]=\"content.getHostElement()\"\n >\n <!-------- Begin Toolbar -------->\n <div class=\"ax-flex ax-justify-between ax-items-center\">\n <!-------- Begin Title -------->\n <div class=\"ax-flex ax-gap-1 ax-items-center\">\n <div class=\"ax-flex ax-flex-col ax-gap-2 ax-transition\">\n <div class=\"ax-text-xl md:ax-text-3xl ax-font-bold\">{{ vm.title() }}</div>\n @if(vm.description()) {\n <div class=\"ax-text-sm ax-text-neutral-600\" [class.ax-hidden]=\"sticky.isSticky\">\n {{ vm.description() }}\n </div>\n }\n <ax-breadcrumbs class=\"child:ax-font-normal child:ax-text-neutral-400\" [class.ax-hidden]=\"isSM | async\">\n <ng-template #divider>\n <i class=\"fa-solid fa-chevron-right ax-text-xs ax-mx-2\"></i>\n </ng-template>\n @for(b of vm.beardcrumbs();track $index;let last=$last) {\n <ax-breadcrumbs-item\n [active]=\"last\"\n [class.!ax-font-semibold]=\"last\"\n [class.!ax-text-neutral-600]=\"last\"\n [routerLink]=\"b.url\"\n >\n @if(b.icon) {\n <i [class]=\"b.icon\"></i>\n }\n {{ b.title }}\n </ax-breadcrumbs-item>\n }\n </ax-breadcrumbs>\n </div>\n </div>\n <!-------- Finish Title -------->\n <!--------------------------------------------------------------->\n <!-- Begin Action Menu -->\n <div class=\"ax-flex ax-items-center ax-gap-3\">\n @for(tr of vm.primaryActions();track $index) {\n <ax-button [text]=\"tr.title\" [color]=\"tr.color\" (onClick)=\"vm.executeCommand(tr.name)\">\n <ax-prefix>\n <ax-icon [icon]=\"tr.icon\"> </ax-icon>\n </ax-prefix>\n </ax-button>\n } @if(vm.secondaryActions().length) {\n <ax-button [text]=\"(isSM | async) ? null : 'Actions'\" color=\"ghost\">\n <ax-prefix>\n <i class=\"fa-solid fa-ellipsis-vertical\"></i>\n </ax-prefix>\n <ax-dropdown-panel>\n <ax-button-item-list>\n @for(tr of vm.secondaryActions();track $index) {\n <ng-container>\n @if(tr.separated) {\n <ax-divider></ax-divider>\n }\n <ax-button-item\n [text]=\"tr.title\"\n class=\"ax-font-semibold ax-text-{{ tr.color }}\"\n (onClick)=\"vm.executeCommand(tr.name)\"\n >\n <ax-prefix>\n <ax-icon [icon]=\"tr.icon\"> </ax-icon>\n </ax-prefix>\n </ax-button-item>\n </ng-container>\n }\n </ax-button-item-list>\n </ax-dropdown-panel>\n </ax-button>\n }\n </div>\n <!-- Finish Action Menu -->\n </div>\n <!----- Finish Toolbar ----->\n <!--------------------------------------------------------------->\n <!-- Begin Sections -->\n <ax-tabs\n (onActiveTabChanged)=\"handleActiveDetailTabChanged($event)\"\n [look]=\"'classic'\"\n class=\"ax-mt-4 ax-font-semibold\"\n [class.ax-hidden]=\"sticky.isSticky\"\n >\n <ax-tab-item id=\"overview\" [text]=\"('overview' | translate | async) ?? 'Overview'\"> </ax-tab-item>\n <ax-tab-item id=\"history\" [text]=\"('history' | translate | async) ?? 'History'\"> </ax-tab-item>\n <ax-tab-item id=\"comments\" [text]=\"('comments' | translate | async) ?? 'Comments'\"> </ax-tab-item>\n </ax-tabs>\n </div>\n\n @switch (selectedDetailTabIndex()) { @case(1){\n <div></div>\n } @case(2){\n <axp-comment-list-view vm=\"vm\"></axp-comment-list-view>\n } @default {\n <axp-entity-single-overview></axp-entity-single-overview>\n } }\n <!-- Finish Sections -->\n </div>\n </ax-content>\n</ax-drawer-container>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i2$3.RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i3.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i3.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-sub-title, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXDropdownModule }, { kind: "component", type: i8.AXDropdownPanelComponent, selector: "ax-dropdown-panel", inputs: ["isOpen", "fitParent", "dropdownWidth", "position", "_target", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }, { kind: "ngmodule", type: AXPopoverModule }, { kind: "ngmodule", type: AXFormModule }, { kind: "ngmodule", type: AXActionSheetModule }, { kind: "ngmodule", type: AXDrawerModule }, { kind: "component", type: i4$2.AXDrawerContainerComponent, selector: "ax-drawer-container" }, { kind: "ngmodule", type: AXDialogModule }, { kind: "ngmodule", type: AXLoadingModule }, { kind: "ngmodule", type: AXTabsModule }, { kind: "component", type: i3$2.AXTabsComponent, selector: "ax-tabs", inputs: ["look", "location", "fitParent", "minWidth", "content"], outputs: ["onActiveTabChanged"] }, { kind: "component", type: i3$2.AXTabItemComponent, selector: "ax-tab-item", inputs: ["disabled", "text", "key", "headerTemplate", "active"], outputs: ["disabledChange", "onClick", "onBlur", "onFocus", "activeChange"] }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i4.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "type", "responsiveOn", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "responsiveOnChange", "loadingTextChange"] }, { kind: "component", type: i4.AXButtonItemComponent, selector: "ax-button-item", inputs: ["color", "disabled", "text", "selected", "divided", "data", "name"], outputs: ["onClick", "onFocus", "onBlur", "disabledChange"] }, { kind: "component", type: i4.AXButtonItemListComponent, selector: "ax-button-item-list", inputs: ["items"], outputs: ["onItemClick"] }, { kind: "ngmodule", type: AXBreadcrumbsModule }, { kind: "component", type: i8$1.AXBreadCrumbsComponent, selector: "ax-breadcrumbs" }, { kind: "component", type: i8$1.AXBreadCrumbsItemComponent, selector: "ax-breadcrumbs-item", inputs: ["disabled", "active"] }, { kind: "ngmodule", type:
|
|
423
|
-
//
|
|
424
|
-
AXPLayoutBuilderModule }, { kind: "ngmodule", type: AXPWidgetsModule }, { kind: "directive", type: AXPStickyDirective, selector: "[axpSticky]", inputs: ["axpSticky", "stickyOffset", "stickyParent", "stickyTarget"], outputs: ["isStickyChange"], exportAs: ["axpSticky"] }, { kind: "component", type: AXPEntitySingleOverviewComponent, selector: "axp-entity-single-overview" }, { kind: "component", type: AXPCommentListViewComponent, selector: "axp-comment-list-view" }, { kind: "ngmodule", type:
|
|
425
|
-
//
|
|
426
|
-
AXTranslationModule }, { kind: "pipe", type: i9.AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
427
|
-
}
|
|
428
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.0", ngImport: i0, type: AXPEntityMasterSingleViewComponent, decorators: [{
|
|
429
|
-
type: Component,
|
|
430
|
-
args: [{ imports: [
|
|
431
|
-
CommonModule,
|
|
432
|
-
RouterModule,
|
|
433
|
-
AXDecoratorModule,
|
|
434
|
-
AXDropdownModule,
|
|
435
|
-
AXPopoverModule,
|
|
436
|
-
AXFormModule,
|
|
437
|
-
AXActionSheetModule,
|
|
438
|
-
AXDrawerModule,
|
|
439
|
-
AXDialogModule,
|
|
440
|
-
AXLoadingModule,
|
|
441
|
-
AXTabsModule,
|
|
442
|
-
AXButtonModule,
|
|
443
|
-
AXBreadcrumbsModule,
|
|
444
|
-
//
|
|
445
|
-
AXPLayoutBuilderModule,
|
|
446
|
-
AXPWidgetsModule,
|
|
447
|
-
AXPStickyDirective,
|
|
448
|
-
AXPGridLayoutDirective,
|
|
449
|
-
AXPEntitySingleOverviewComponent,
|
|
450
|
-
AXPCommentListViewComponent,
|
|
451
|
-
//
|
|
452
|
-
AXTranslationModule,
|
|
453
|
-
], standalone: true, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ax-drawer-container>\n <!-- <ax-drawer #drawer location=\"start\" [collapsed]=\"!(isOpen | async)\" [mode]=\" (isSM | async) ? 'overlay' : 'push'\"\n *ngIf=\"loader.hasSections$ | async\" (collapsedChange)=\"handleCollapsedChange($event)\">\n <ax-content class=\"ax-border-e ax-p-6 ax-w-64\">\n <p class=\"ax-text-xl ax-font-bold ax-mb-6\">{{loader.sectionTitle}}</p>\n <ax-tabs look=\"with-line\" location=\"start\">\n @for(tab of (loader.sections$ | async); track tab.name)\n {\n <ax-tab-item [text]=\"tab.title\" [active]=\"isActive(tab)\" (onClick)=\"handleMenuClick($event,tab)\"\n [disabled]=\"editForm.context\">\n </ax-tab-item>\n }\n </ax-tabs>\n </ax-content>\n </ax-drawer> -->\n <ax-content #content class=\"ax-overflow-x-hidden\">\n <div\n class=\"ax-flex ax-flex-col ax-gap-4 ax-min-h-full ax-px-4 ax-pb-4 md:ax-px-6 ax-bg-surface ax-border-b md:ax-border-0 md:ax-bg-default\"\n >\n <div\n class=\"ax-flex ax-flex-col ax-pt-4 ax-sticky ax-top-0 ax-z-10 ax-transition-all\"\n #sticky=\"axpSticky\"\n [axpSticky]=\"'ax-bg-surface ax-px-6 ax-py-3 -ax-mx-6 ax-shadow-xl'\"\n [stickyOffset]=\"30\"\n [stickyParent]=\"content.getHostElement()\"\n >\n <!-------- Begin Toolbar -------->\n <div class=\"ax-flex ax-justify-between ax-items-center\">\n <!-------- Begin Title -------->\n <div class=\"ax-flex ax-gap-1 ax-items-center\">\n <div class=\"ax-flex ax-flex-col ax-gap-2 ax-transition\">\n <div class=\"ax-text-xl md:ax-text-3xl ax-font-bold\">{{ vm.title() }}</div>\n @if(vm.description()) {\n <div class=\"ax-text-sm ax-text-neutral-600\" [class.ax-hidden]=\"sticky.isSticky\">\n {{ vm.description() }}\n </div>\n }\n <ax-breadcrumbs class=\"child:ax-font-normal child:ax-text-neutral-400\" [class.ax-hidden]=\"isSM | async\">\n <ng-template #divider>\n <i class=\"fa-solid fa-chevron-right ax-text-xs ax-mx-2\"></i>\n </ng-template>\n @for(b of vm.beardcrumbs();track $index;let last=$last) {\n <ax-breadcrumbs-item\n [active]=\"last\"\n [class.!ax-font-semibold]=\"last\"\n [class.!ax-text-neutral-600]=\"last\"\n [routerLink]=\"b.url\"\n >\n @if(b.icon) {\n <i [class]=\"b.icon\"></i>\n }\n {{ b.title }}\n </ax-breadcrumbs-item>\n }\n </ax-breadcrumbs>\n </div>\n </div>\n <!-------- Finish Title -------->\n <!--------------------------------------------------------------->\n <!-- Begin Action Menu -->\n <div class=\"ax-flex ax-items-center ax-gap-3\">\n @for(tr of vm.primaryActions();track $index) {\n <ax-button [text]=\"tr.title\" [color]=\"tr.color\" (onClick)=\"vm.executeCommand(tr.name)\">\n <ax-prefix>\n <ax-icon [icon]=\"tr.icon\"> </ax-icon>\n </ax-prefix>\n </ax-button>\n } @if(vm.secondaryActions().length) {\n <ax-button [text]=\"(isSM | async) ? null : 'Actions'\" color=\"ghost\">\n <ax-prefix>\n <i class=\"fa-solid fa-ellipsis-vertical\"></i>\n </ax-prefix>\n <ax-dropdown-panel>\n <ax-button-item-list>\n @for(tr of vm.secondaryActions();track $index) {\n <ng-container>\n @if(tr.separated) {\n <ax-divider></ax-divider>\n }\n <ax-button-item\n [text]=\"tr.title\"\n class=\"ax-font-semibold ax-text-{{ tr.color }}\"\n (onClick)=\"vm.executeCommand(tr.name)\"\n >\n <ax-prefix>\n <ax-icon [icon]=\"tr.icon\"> </ax-icon>\n </ax-prefix>\n </ax-button-item>\n </ng-container>\n }\n </ax-button-item-list>\n </ax-dropdown-panel>\n </ax-button>\n }\n </div>\n <!-- Finish Action Menu -->\n </div>\n <!----- Finish Toolbar ----->\n <!--------------------------------------------------------------->\n <!-- Begin Sections -->\n <ax-tabs\n (onActiveTabChanged)=\"handleActiveDetailTabChanged($event)\"\n [look]=\"'classic'\"\n class=\"ax-mt-4 ax-font-semibold\"\n [class.ax-hidden]=\"sticky.isSticky\"\n >\n <ax-tab-item id=\"overview\" [text]=\"('overview' | translate | async) ?? 'Overview'\"> </ax-tab-item>\n <ax-tab-item id=\"history\" [text]=\"('history' | translate | async) ?? 'History'\"> </ax-tab-item>\n <ax-tab-item id=\"comments\" [text]=\"('comments' | translate | async) ?? 'Comments'\"> </ax-tab-item>\n </ax-tabs>\n </div>\n\n @switch (selectedDetailTabIndex()) { @case(1){\n <div></div>\n } @case(2){\n <axp-comment-list-view vm=\"vm\"></axp-comment-list-view>\n } @default {\n <axp-entity-single-overview></axp-entity-single-overview>\n } }\n <!-- Finish Sections -->\n </div>\n </ax-content>\n</ax-drawer-container>\n" }]
|
|
454
|
-
}] });
|
|
455
|
-
|
|
456
|
-
export { AXPEntityMasterSingleViewComponent };
|
|
457
|
-
//# sourceMappingURL=acorex-platform-themes-default-entity-master-single-view.component-DhcKSyrX.mjs.map
|