@acorex/modules 19.4.3 → 19.4.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (148) hide show
  1. package/conversation/README.md +113 -2
  2. package/conversation/index.d.ts +2 -14
  3. package/conversation/lib/const.d.ts +25 -6
  4. package/conversation/lib/conversation.module.d.ts +32 -3
  5. package/conversation/lib/entities/index.d.ts +2 -0
  6. package/conversation/lib/entities/message/index.d.ts +3 -0
  7. package/conversation/lib/entities/message/message.entity.d.ts +3 -0
  8. package/conversation/lib/entities/message/message.service.d.ts +10 -0
  9. package/conversation/lib/entities/message/message.types.d.ts +20 -0
  10. package/conversation/lib/entities/room/index.d.ts +3 -0
  11. package/conversation/lib/entities/room/room.entity.d.ts +3 -0
  12. package/conversation/lib/entities/room/room.service.d.ts +10 -0
  13. package/conversation/lib/entities/room/room.types.d.ts +8 -0
  14. package/conversation/lib/entity.provider.d.ts +12 -0
  15. package/conversation/lib/features/chat/chat-preview.helper.d.ts +68 -0
  16. package/conversation/lib/features/chat/chat.component.d.ts +42 -0
  17. package/conversation/lib/features/chat/chat.service.d.ts +101 -0
  18. package/conversation/lib/features/chat/chat.type.d.ts +38 -0
  19. package/conversation/lib/{entities → features}/chat/components/chat-item/chat-item.component.d.ts +6 -1
  20. package/conversation/lib/{entities → features}/chat/components/chat-preview/chat-preview.component.d.ts +3 -0
  21. package/conversation/lib/features/chat/index.d.ts +5 -0
  22. package/conversation/lib/{entities/comments/pages → features/comment}/comment-list-view.component.d.ts +12 -12
  23. package/conversation/lib/features/comment/comment.service.d.ts +66 -0
  24. package/conversation/lib/features/comment/comment.type.d.ts +45 -0
  25. package/conversation/lib/features/comment/index.d.ts +4 -0
  26. package/conversation/lib/features/index.d.ts +2 -0
  27. package/document-management/lib/entities/folder/folder.types.d.ts +3 -2
  28. package/document-management/lib/features/document-explorer/components/create-folder-dialog/create-folder-dialog.component.d.ts +5 -2
  29. package/document-management/lib/features/document-explorer/document-explorer.component.d.ts +22 -20
  30. package/document-management/lib/features/document-explorer/document-explorer.viewmodel.d.ts +22 -2
  31. package/document-management/lib/features/document-explorer/views/attachement-widget/attachment-widget.component.d.ts +52 -33
  32. package/document-management/lib/features/document-explorer/views/detail-panel/detail-panel.component.d.ts +52 -33
  33. package/document-management/lib/features/document-explorer/views/details/details-view.component.d.ts +52 -33
  34. package/document-management/lib/features/document-explorer/views/large-icons/large-icons-view.component.d.ts +52 -33
  35. package/document-management/lib/features/document-explorer/views/large-tiles/large-tiles-view.component.d.ts +52 -33
  36. package/document-management/lib/features/document-explorer/views/list/list-view.component.d.ts +52 -33
  37. package/document-management/lib/features/document-explorer/views/small-icons/small-icons-view.component.d.ts +52 -33
  38. package/document-management/lib/features/document-explorer/views/small-tiles/small-tiles-view.component.d.ts +52 -33
  39. package/document-management/lib/features/drive/drive.component.d.ts +52 -31
  40. package/document-management/lib/features/drive-choose/drive-choose.component.d.ts +49 -28
  41. package/document-management/lib/features/shared/components/document-type-choose-file/document-type-choose-file.component.d.ts +6 -6
  42. package/document-management/lib/features/shared/components/folder-path-breadcrumbs/folder-path-breadcrumbs.component.d.ts +21 -2
  43. package/document-management/lib/features/shared/document-manager.service.d.ts +177 -45
  44. package/document-management/lib/features/shared/document-manager.types.d.ts +2 -1
  45. package/document-management/lib/features/shared/index.d.ts +1 -0
  46. package/fesm2022/acorex-modules-application-management-module-designer.component-BJp8imYd.mjs +315 -0
  47. package/fesm2022/acorex-modules-application-management-module-designer.component-BJp8imYd.mjs.map +1 -0
  48. package/fesm2022/acorex-modules-application-management.mjs +1 -1
  49. package/fesm2022/acorex-modules-common.mjs +7 -0
  50. package/fesm2022/acorex-modules-common.mjs.map +1 -1
  51. package/fesm2022/acorex-modules-conversation.mjs +2382 -820
  52. package/fesm2022/acorex-modules-conversation.mjs.map +1 -1
  53. package/fesm2022/{acorex-modules-document-management-acorex-modules-document-management-BpmG6Dyx.mjs → acorex-modules-document-management-acorex-modules-document-management-BATdoqJi.mjs} +1679 -2019
  54. package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-BATdoqJi.mjs.map +1 -0
  55. package/fesm2022/{acorex-modules-document-management-attachment-widget.component-DIF_t4fE.mjs → acorex-modules-document-management-attachment-widget.component-C1-gQepw.mjs} +2 -2
  56. package/fesm2022/{acorex-modules-document-management-attachment-widget.component-DIF_t4fE.mjs.map → acorex-modules-document-management-attachment-widget.component-C1-gQepw.mjs.map} +1 -1
  57. package/fesm2022/acorex-modules-document-management-create-folder-dialog.component-ZMvsadWt.mjs +144 -0
  58. package/fesm2022/acorex-modules-document-management-create-folder-dialog.component-ZMvsadWt.mjs.map +1 -0
  59. package/fesm2022/{acorex-modules-document-management-details-view.component-D0RIYrHB.mjs → acorex-modules-document-management-details-view.component-CvHIETNf.mjs} +2 -2
  60. package/fesm2022/{acorex-modules-document-management-details-view.component-D0RIYrHB.mjs.map → acorex-modules-document-management-details-view.component-CvHIETNf.mjs.map} +1 -1
  61. package/fesm2022/{acorex-modules-document-management-drive-choose.component-DMAQr0nK.mjs → acorex-modules-document-management-drive-choose.component-UTy9OISj.mjs} +29 -9
  62. package/fesm2022/acorex-modules-document-management-drive-choose.component-UTy9OISj.mjs.map +1 -0
  63. package/fesm2022/acorex-modules-document-management-drive.component-Crh10Z5J.mjs +363 -0
  64. package/fesm2022/acorex-modules-document-management-drive.component-Crh10Z5J.mjs.map +1 -0
  65. package/fesm2022/{acorex-modules-document-management-large-icons-view.component-C686Ec7s.mjs → acorex-modules-document-management-large-icons-view.component-BuV7MPG5.mjs} +2 -2
  66. package/fesm2022/{acorex-modules-document-management-large-icons-view.component-C686Ec7s.mjs.map → acorex-modules-document-management-large-icons-view.component-BuV7MPG5.mjs.map} +1 -1
  67. package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-0GpMVYv5.mjs → acorex-modules-document-management-large-tiles-view.component-CwYwVxoG.mjs} +2 -2
  68. package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-0GpMVYv5.mjs.map → acorex-modules-document-management-large-tiles-view.component-CwYwVxoG.mjs.map} +1 -1
  69. package/fesm2022/{acorex-modules-document-management-list-view.component-C1inszTC.mjs → acorex-modules-document-management-list-view.component-BHEwRA3m.mjs} +2 -2
  70. package/fesm2022/{acorex-modules-document-management-list-view.component-C1inszTC.mjs.map → acorex-modules-document-management-list-view.component-BHEwRA3m.mjs.map} +1 -1
  71. package/fesm2022/{acorex-modules-document-management-permission-definition.provider-B7lgRLHi.mjs → acorex-modules-document-management-permission-definition.provider-B3qaYwRL.mjs} +2 -2
  72. package/fesm2022/{acorex-modules-document-management-permission-definition.provider-B7lgRLHi.mjs.map → acorex-modules-document-management-permission-definition.provider-B3qaYwRL.mjs.map} +1 -1
  73. package/fesm2022/{acorex-modules-document-management-rename-node-dialog.component-C9k8WgDG.mjs → acorex-modules-document-management-rename-node-dialog.component-CrcJm9jP.mjs} +5 -5
  74. package/fesm2022/{acorex-modules-document-management-rename-node-dialog.component-C9k8WgDG.mjs.map → acorex-modules-document-management-rename-node-dialog.component-CrcJm9jP.mjs.map} +1 -1
  75. package/fesm2022/{acorex-modules-document-management-small-icons-view.component-BGcUzNCv.mjs → acorex-modules-document-management-small-icons-view.component-CD5UORaq.mjs} +2 -2
  76. package/fesm2022/{acorex-modules-document-management-small-icons-view.component-BGcUzNCv.mjs.map → acorex-modules-document-management-small-icons-view.component-CD5UORaq.mjs.map} +1 -1
  77. package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-CumumWvO.mjs → acorex-modules-document-management-small-tiles-view.component-cpc_xfbT.mjs} +2 -2
  78. package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-CumumWvO.mjs.map → acorex-modules-document-management-small-tiles-view.component-cpc_xfbT.mjs.map} +1 -1
  79. package/fesm2022/acorex-modules-document-management.mjs +1 -1
  80. package/fesm2022/{acorex-modules-issue-management-acorex-modules-issue-management-ErtEMU89.mjs → acorex-modules-issue-management-acorex-modules-issue-management-DbVfrgVX.mjs} +5 -5
  81. package/fesm2022/acorex-modules-issue-management-acorex-modules-issue-management-DbVfrgVX.mjs.map +1 -0
  82. package/fesm2022/{acorex-modules-issue-management-capture-screen.component-B6k0Zn9C.mjs → acorex-modules-issue-management-capture-screen.component-_9mwJVkz.mjs} +2 -2
  83. package/fesm2022/{acorex-modules-issue-management-capture-screen.component-B6k0Zn9C.mjs.map → acorex-modules-issue-management-capture-screen.component-_9mwJVkz.mjs.map} +1 -1
  84. package/fesm2022/acorex-modules-issue-management.mjs +1 -1
  85. package/fesm2022/acorex-modules-notification-management.mjs +5 -5
  86. package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
  87. package/fesm2022/{acorex-modules-organization-management-org-chart.page-CP8zz-Bc.mjs → acorex-modules-organization-management-org-chart.page-CrOUUr4c.mjs} +1 -2
  88. package/fesm2022/acorex-modules-organization-management-org-chart.page-CrOUUr4c.mjs.map +1 -0
  89. package/fesm2022/acorex-modules-organization-management.mjs +2 -2
  90. package/fesm2022/{acorex-modules-platform-management-acorex-modules-platform-management-C9ZApxct.mjs → acorex-modules-platform-management-acorex-modules-platform-management-DtXOjIIK.mjs} +326 -87
  91. package/fesm2022/acorex-modules-platform-management-acorex-modules-platform-management-DtXOjIIK.mjs.map +1 -0
  92. package/fesm2022/{acorex-modules-platform-management-list-version.component-D50Xundj.mjs → acorex-modules-platform-management-list-version.component-DY4yMd8n.mjs} +2 -2
  93. package/fesm2022/{acorex-modules-platform-management-list-version.component-D50Xundj.mjs.map → acorex-modules-platform-management-list-version.component-DY4yMd8n.mjs.map} +1 -1
  94. package/fesm2022/{acorex-modules-platform-management-settings.provider-DsHGn3AZ.mjs → acorex-modules-platform-management-settings.provider-BO-1dmVc.mjs} +2 -2
  95. package/fesm2022/{acorex-modules-platform-management-settings.provider-DsHGn3AZ.mjs.map → acorex-modules-platform-management-settings.provider-BO-1dmVc.mjs.map} +1 -1
  96. package/fesm2022/acorex-modules-platform-management.mjs +1 -1
  97. package/fesm2022/acorex-modules-project-management.mjs +108 -0
  98. package/fesm2022/acorex-modules-project-management.mjs.map +1 -1
  99. package/fesm2022/acorex-modules-settings-management.mjs +20 -21
  100. package/fesm2022/acorex-modules-settings-management.mjs.map +1 -1
  101. package/fesm2022/acorex-modules-training-management.mjs +1 -1
  102. package/fesm2022/acorex-modules-training-management.mjs.map +1 -1
  103. package/fesm2022/acorex-modules-workflow-management-task-board.page-3_Tn2GeA.mjs +305 -0
  104. package/fesm2022/acorex-modules-workflow-management-task-board.page-3_Tn2GeA.mjs.map +1 -0
  105. package/fesm2022/acorex-modules-workflow-management.mjs +123 -0
  106. package/fesm2022/acorex-modules-workflow-management.mjs.map +1 -0
  107. package/package.json +20 -16
  108. package/platform-management/lib/task-board.provider.d.ts +14 -0
  109. package/project-management/lib/task-board.provider.d.ts +14 -0
  110. package/settings-management/lib/settings-management.module.d.ts +1 -1
  111. package/workflow-management/README.md +3 -0
  112. package/workflow-management/index.d.ts +2 -0
  113. package/workflow-management/lib/const.d.ts +11 -0
  114. package/workflow-management/lib/features/task-board/index.d.ts +2 -0
  115. package/workflow-management/lib/features/task-board/settings.keys.d.ts +5 -0
  116. package/workflow-management/lib/features/task-board/task-board.module.d.ts +6 -0
  117. package/workflow-management/lib/features/task-board/task-board.page.d.ts +76 -0
  118. package/workflow-management/lib/features/task-board/task-board.service.d.ts +13 -0
  119. package/workflow-management/lib/features/task-board/task-board.viewmodel.d.ts +20 -0
  120. package/workflow-management/lib/features/task-board/views/task-board-calendar-view/task-board-calendar-view.page.d.ts +25 -0
  121. package/workflow-management/lib/workflow-management.module.d.ts +8 -0
  122. package/conversation/lib/entities/chat/chat.module.d.ts +0 -28
  123. package/conversation/lib/entities/chat/chat.service.d.ts +0 -14
  124. package/conversation/lib/entities/chat/chat.type.d.ts +0 -22
  125. package/conversation/lib/entities/chat/components/chat-item-footer/chat-item-footer.component.d.ts +0 -5
  126. package/conversation/lib/entities/chat/components/chat-item-header/chat-item-header.component.d.ts +0 -12
  127. package/conversation/lib/entities/chat/components/chat-preview-header/chat-preview-header.component.d.ts +0 -7
  128. package/conversation/lib/entities/chat/pages/chat/chat.component.d.ts +0 -23
  129. package/conversation/lib/entities/comments/comment.module.d.ts +0 -26
  130. package/conversation/lib/entities/comments/comments.service.d.ts +0 -13
  131. package/conversation/lib/entities/comments/comments.type.d.ts +0 -74
  132. package/document-management/lib/features/widgets/document-attachment/document-attachment-widget-column.component.d.ts +0 -6
  133. package/document-management/lib/features/widgets/document-attachment/document-attachment-widget-edit.component.d.ts +0 -212
  134. package/document-management/lib/features/widgets/document-attachment/document-attachment-widget-print.component.d.ts +0 -6
  135. package/document-management/lib/features/widgets/document-attachment/document-attachment-widget-view.component.d.ts +0 -6
  136. package/document-management/lib/features/widgets/document-attachment/document-attachment-widget.config.d.ts +0 -7
  137. package/document-management/lib/features/widgets/document-attachment/index.d.ts +0 -5
  138. package/document-management/lib/features/widgets/index.d.ts +0 -1
  139. package/fesm2022/acorex-modules-application-management-module-designer.component-BRh6mzWA.mjs +0 -315
  140. package/fesm2022/acorex-modules-application-management-module-designer.component-BRh6mzWA.mjs.map +0 -1
  141. package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-BpmG6Dyx.mjs.map +0 -1
  142. package/fesm2022/acorex-modules-document-management-create-folder-dialog.component-CCvKUDsw.mjs +0 -141
  143. package/fesm2022/acorex-modules-document-management-create-folder-dialog.component-CCvKUDsw.mjs.map +0 -1
  144. package/fesm2022/acorex-modules-document-management-drive-choose.component-DMAQr0nK.mjs.map +0 -1
  145. package/fesm2022/acorex-modules-issue-management-acorex-modules-issue-management-ErtEMU89.mjs.map +0 -1
  146. package/fesm2022/acorex-modules-organization-management-org-chart.page-CP8zz-Bc.mjs.map +0 -1
  147. package/fesm2022/acorex-modules-platform-management-acorex-modules-platform-management-C9ZApxct.mjs.map +0 -1
  148. /package/conversation/lib/{entities/comments/pages → features/comment}/comment-lookup-popup.component.d.ts +0 -0
@@ -1,212 +0,0 @@
1
- import { AXFileService } from '@acorex/core/file';
2
- import { AXPSessionService } from '@acorex/platform/auth';
3
- import { AXPFileStorageService } from '@acorex/platform/common';
4
- import { AXPPlatformScope } from '@acorex/platform/core';
5
- import { AXPValueWidgetComponent } from '@acorex/platform/layout/builder';
6
- import { AXMDocumentExplorerComponent } from '../../document-explorer';
7
- import { AXMDocumentExplorerNode, AXMDocumentManagerService } from '../../drive';
8
- import { AXMDocumentManagementDocumentTypeEntityModel, AXMDocumentTypeService } from '../../../entities';
9
- import * as i0 from "@angular/core";
10
- export interface AXMDocumentAttachment {
11
- fileId: string;
12
- name: string;
13
- size: number;
14
- extension: string;
15
- }
16
- export interface AXMDocumentAction {
17
- name: string;
18
- icon: string;
19
- title: string;
20
- callback: () => Promise<File | undefined>;
21
- }
22
- export declare class AXMDocumentAttachmentWidgetEditComponent extends AXPValueWidgetComponent<AXMDocumentExplorerNode[]> {
23
- protected readonly vm: {
24
- viewMode: import("@angular/core").Signal<import("../../drive").AXPDocumentExplorerViewMode>;
25
- isLoading: import("@angular/core").Signal<boolean>;
26
- scope: import("@angular/core").Signal<AXPPlatformScope>;
27
- currentPath: import("@angular/core").Signal<AXMDocumentExplorerNode[]>;
28
- currentNode: import("@angular/core").Signal<AXMDocumentExplorerNode | null>;
29
- loadingFolderId: import("@angular/core").Signal<string | null>;
30
- navigatingFolderId: import("@angular/core").Signal<string | null>;
31
- backHistory: import("@angular/core").Signal<{
32
- folderId: string;
33
- path: AXMDocumentExplorerNode[];
34
- }[]>;
35
- selectionMode: import("@angular/core").Signal<import("../../drive").AXMDocumentSelectionMode>;
36
- selectedNodes: import("@angular/core").Signal<AXMDocumentExplorerNode[]>;
37
- browseMode: import("@angular/core").Signal<import("../../drive").AXMDocumentExplorerBrowseMode>;
38
- sortField: import("@angular/core").Signal<string>;
39
- sortDirection: import("@angular/core").Signal<string>;
40
- folders: import("@angular/core").Signal<AXMDocumentExplorerNode[]>;
41
- files: import("@angular/core").Signal<AXMDocumentExplorerNode[]>;
42
- itemsCount: import("@angular/core").Signal<number>;
43
- availableSpace: import("@angular/core").Signal<number>;
44
- currentDrive: import("@angular/core").Signal<AXPPlatformScope | null>;
45
- fileTypes: import("@angular/core").Signal<import("@acorex/platform/common").AXPFileType[]>;
46
- detailPanel: import("@angular/core").Signal<boolean>;
47
- isRoot: import("@angular/core").Signal<boolean>;
48
- isVirtual: import("@angular/core").Signal<boolean>;
49
- currentFolder: import("@angular/core").Signal<AXMDocumentExplorerNode | null>;
50
- currentFolderContents: import("@angular/core").Signal<{
51
- folders: AXMDocumentExplorerNode[];
52
- files: AXMDocumentExplorerNode[];
53
- }>;
54
- isLargeTilesView: import("@angular/core").Signal<boolean>;
55
- isSmallTilesView: import("@angular/core").Signal<boolean>;
56
- isListView: import("@angular/core").Signal<boolean>;
57
- isDetailsView: import("@angular/core").Signal<boolean>;
58
- isLargeIconsView: import("@angular/core").Signal<boolean>;
59
- isSmallIconsView: import("@angular/core").Signal<boolean>;
60
- isBackAvailable: import("@angular/core").Signal<boolean>;
61
- isUpAvailable: import("@angular/core").Signal<boolean>;
62
- selectedCount: import("@angular/core").Signal<number>;
63
- hasSelectedItems: import("@angular/core").Signal<boolean>;
64
- hasMultipleSelectedItems: import("@angular/core").Signal<boolean>;
65
- isMultiSelect: import("@angular/core").Signal<boolean>;
66
- selectedNode: import("@angular/core").Signal<AXMDocumentExplorerNode | null>;
67
- isDetailPanelOpen: import("@angular/core").Signal<boolean>;
68
- initialize: (options?: {
69
- scope?: AXPPlatformScope;
70
- browseMode?: import("../../drive").AXMDocumentExplorerBrowseMode;
71
- filter?: any;
72
- }) => Promise<void>;
73
- navigateToFolder: (folderId: string) => void;
74
- loadFolderContents: (folderId: string) => Promise<void>;
75
- virtualFolder: (files?: AXMDocumentExplorerNode[]) => Promise<void>;
76
- setViewMode: (mode: import("../../drive").AXPDocumentExplorerViewMode | string) => void;
77
- isViewMode: (mode: import("../../drive").AXPDocumentExplorerViewMode | string) => boolean;
78
- setSortField: (field: string) => void;
79
- setSortDirection: (direction: string) => void;
80
- setSelectionMode: (mode: import("../../drive").AXMDocumentSelectionMode | string) => void;
81
- setDrive: (scope: AXPPlatformScope) => void;
82
- isLoadingFolder: (folderId: string) => boolean;
83
- getFileInfo: (fileName: string) => {
84
- icon: string;
85
- type: string;
86
- };
87
- getNodeInfo: (node: AXMDocumentExplorerNode) => {
88
- name: string;
89
- icon: string;
90
- type: string;
91
- sections: [{
92
- title: string;
93
- details: {
94
- title: string;
95
- content?: any;
96
- icon?: string;
97
- format?: "datetime" | "filesize" | "number" | "string";
98
- }[];
99
- }];
100
- };
101
- sortItems: (items: AXMDocumentExplorerNode[]) => AXMDocumentExplorerNode[];
102
- refresh: () => Promise<void>;
103
- navigateToUp: () => void;
104
- navigateBack: () => Promise<void>;
105
- openFile: (file: AXMDocumentExplorerNode) => Promise<void>;
106
- deleteNodes: (nodes?: AXMDocumentExplorerNode[]) => Promise<void>;
107
- toggleSelect: (node: AXMDocumentExplorerNode) => void;
108
- isItemSelected: (node: AXMDocumentExplorerNode) => boolean;
109
- selectAll: () => void;
110
- deselectAll: () => void;
111
- openDetailPanel: () => void;
112
- closeDetailPanel: () => void;
113
- toggleDetailPanel: () => void;
114
- getFolderAddMenuItems: () => Promise<import("@acorex/platform/core").AXPActionMenuItem[]>;
115
- getFolderActionMenuItems: () => Promise<import("@acorex/platform/core").AXPActionMenuItem[]>;
116
- getContextMenuItems: () => Promise<import("@acorex/platform/core").AXPActionMenuItem[]>;
117
- } & import("@ngrx/signals").StateSource<{
118
- viewMode: import("../../drive").AXPDocumentExplorerViewMode;
119
- isLoading: boolean;
120
- scope: AXPPlatformScope;
121
- currentPath: AXMDocumentExplorerNode[];
122
- currentNode: AXMDocumentExplorerNode | null;
123
- loadingFolderId: string | null;
124
- navigatingFolderId: string | null;
125
- backHistory: {
126
- folderId: string;
127
- path: AXMDocumentExplorerNode[];
128
- }[];
129
- selectionMode: import("../../drive").AXMDocumentSelectionMode;
130
- selectedNodes: AXMDocumentExplorerNode[];
131
- browseMode: import("../../drive").AXMDocumentExplorerBrowseMode;
132
- sortField: string;
133
- sortDirection: string;
134
- folders: AXMDocumentExplorerNode[];
135
- files: AXMDocumentExplorerNode[];
136
- itemsCount: number;
137
- availableSpace: number;
138
- currentDrive: AXPPlatformScope | null;
139
- fileTypes: import("@acorex/platform/common").AXPFileType[];
140
- detailPanel: boolean;
141
- }>;
142
- protected readonly rootConfig: {
143
- config: {
144
- i18n: string;
145
- };
146
- module: {
147
- module: string;
148
- name: string;
149
- title: string;
150
- icon: string;
151
- };
152
- entities: {
153
- folder: {
154
- name: string;
155
- title: string;
156
- titlePlural: string;
157
- icon: string;
158
- };
159
- document: {
160
- name: string;
161
- title: string;
162
- titlePlural: string;
163
- icon: string;
164
- };
165
- documentType: {
166
- name: string;
167
- title: string;
168
- titlePlural: string;
169
- icon: string;
170
- };
171
- documentTypeMetaDefinition: {
172
- name: string;
173
- title: string;
174
- titlePlural: string;
175
- icon: string;
176
- };
177
- documentTypeMetaValue: {
178
- name: string;
179
- title: string;
180
- titlePlural: string;
181
- icon: string;
182
- };
183
- documentTypeStatus: {
184
- name: string;
185
- title: string;
186
- titlePlural: string;
187
- icon: string;
188
- };
189
- };
190
- };
191
- protected readonly sessionService: AXPSessionService;
192
- protected readonly fileService: AXFileService;
193
- protected readonly fileStorageService: AXPFileStorageService;
194
- protected readonly driveService: AXMDocumentManagerService;
195
- protected readonly documentTypeService: AXMDocumentTypeService;
196
- protected documentExplorer: import("@angular/core").Signal<AXMDocumentExplorerComponent | undefined>;
197
- protected scopes: typeof AXPPlatformScope;
198
- protected actions: import("@angular/core").Signal<AXMDocumentAction[]>;
199
- protected multiple: import("@angular/core").Signal<boolean>;
200
- protected entity: import("@angular/core").Signal<string>;
201
- protected entityRecordId: import("@angular/core").Signal<string>;
202
- protected documentTypeNames: import("@angular/core").Signal<string[]>;
203
- protected documentTypes: import("@angular/core").WritableSignal<AXMDocumentManagementDocumentTypeEntityModel[]>;
204
- ngOnDestroy(): Promise<void>;
205
- ngOnInit(): Promise<void>;
206
- protected chooseFromDrive(scope: AXPPlatformScope): Promise<void>;
207
- protected uploadFromComputer(documentType?: AXMDocumentManagementDocumentTypeEntityModel): Promise<void>;
208
- protected updateContents(files: AXMDocumentExplorerNode[]): Promise<void>;
209
- protected handleActionCallback(action: AXMDocumentAction): Promise<void>;
210
- static ɵfac: i0.ɵɵFactoryDeclaration<AXMDocumentAttachmentWidgetEditComponent, never>;
211
- static ɵcmp: i0.ɵɵComponentDeclaration<AXMDocumentAttachmentWidgetEditComponent, "axm-document-attachment-edit-widget", never, {}, {}, never, never, true, never>;
212
- }
@@ -1,6 +0,0 @@
1
- import { AXPValueWidgetComponent } from '@acorex/platform/layout/builder';
2
- import * as i0 from "@angular/core";
3
- export declare class AXMDocumentAttachmentWidgetPrintComponent extends AXPValueWidgetComponent<void> {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<AXMDocumentAttachmentWidgetPrintComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<AXMDocumentAttachmentWidgetPrintComponent, "ng-component", never, {}, {}, never, never, true, never>;
6
- }
@@ -1,6 +0,0 @@
1
- import { AXPValueWidgetComponent } from '@acorex/platform/layout/builder';
2
- import * as i0 from "@angular/core";
3
- export declare class AXMDocumentAttachmentWidgetViewComponent extends AXPValueWidgetComponent<void> {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<AXMDocumentAttachmentWidgetViewComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<AXMDocumentAttachmentWidgetViewComponent, "axp-document-attachment-widget", never, {}, {}, never, never, true, never>;
6
- }
@@ -1,7 +0,0 @@
1
- import { AXPWidgetConfig } from '@acorex/platform/layout/builder';
2
- export declare const AXMDocumentAttachmentWidget: AXPWidgetConfig;
3
- declare module '@acorex/platform/layout/builder' {
4
- interface AXPWidgetTypesMap {
5
- documentAttachment: 'document-attachment-editor';
6
- }
7
- }
@@ -1,5 +0,0 @@
1
- export * from './document-attachment-widget-column.component';
2
- export * from './document-attachment-widget-edit.component';
3
- export * from './document-attachment-widget-print.component';
4
- export * from './document-attachment-widget-view.component';
5
- export * from './document-attachment-widget.config';
@@ -1 +0,0 @@
1
- export * from './document-attachment';
@@ -1,315 +0,0 @@
1
- import * as i7 from '@acorex/components/badge';
2
- import { AXBadgeModule } from '@acorex/components/badge';
3
- import * as i6 from '@acorex/components/button';
4
- import { AXButtonModule } from '@acorex/components/button';
5
- import * as i6$1 from '@acorex/components/collapse';
6
- import { AXCollapseModule } from '@acorex/components/collapse';
7
- import * as i2$1 from '@acorex/components/decorators';
8
- import { AXDecoratorModule } from '@acorex/components/decorators';
9
- import * as i2 from '@acorex/components/drawer';
10
- import { AXDrawerModule } from '@acorex/components/drawer';
11
- import * as i8$1 from '@acorex/components/menu';
12
- import { AXMenuModule } from '@acorex/components/menu';
13
- import { AXPopoverModule } from '@acorex/components/popover';
14
- import { AXSelectionListModule } from '@acorex/components/selection-list';
15
- import { AXSideMenuModule } from '@acorex/components/side-menu';
16
- import * as i8 from '@acorex/core/translation';
17
- import { AXTranslationModule } from '@acorex/core/translation';
18
- import { AXPEntityDeletedEvent, AXPEntityCreateEvent } from '@acorex/platform/layout/entity';
19
- import { AXPWorkflowService, ofType } from '@acorex/platform/workflow';
20
- import * as i1 from '@angular/common';
21
- import { CommonModule } from '@angular/common';
22
- import * as i0 from '@angular/core';
23
- import { inject, signal, Injectable, ChangeDetectorRef, viewChild, ChangeDetectionStrategy, ViewEncapsulation, Component } from '@angular/core';
24
- import * as i2$2 from '@angular/router';
25
- import { RouterModule } from '@angular/router';
26
- import { set } from 'lodash-es';
27
- import { Subject, takeUntil } from 'rxjs';
28
- import { AXPModuleDesignerService } from './acorex-modules-application-management.mjs';
29
-
30
- class AXMModuleDesignerContextMenuService {
31
- constructor() {
32
- this.workflow = inject(AXPWorkflowService);
33
- this.copiedRecord = signal(null);
34
- this.elementData = signal(null);
35
- this.menuItems = [
36
- {
37
- name: 'create',
38
- text: 'Create',
39
- icon: 'fas fa-plus',
40
- color: 'primary',
41
- },
42
- {
43
- name: 'delete',
44
- text: 'Delete',
45
- icon: 'fas fa-trash',
46
- color: 'danger',
47
- },
48
- {
49
- name: 'details',
50
- text: 'Details',
51
- icon: 'fas fa-eye',
52
- color: 'default',
53
- },
54
- {
55
- name: 'copy',
56
- text: 'Copy',
57
- icon: 'fas fa-copy',
58
- color: 'default',
59
- },
60
- {
61
- name: 'paste',
62
- text: 'Paste',
63
- icon: 'fas fa-paste',
64
- color: 'default',
65
- disabled: false,
66
- },
67
- ];
68
- }
69
- open(e) {
70
- const target = e.targetElement;
71
- const elementType = target?.getAttribute('data-elementType');
72
- const { data } = target;
73
- if (elementType == 'module' || elementType == 'subModule') {
74
- const moduleId = target?.getAttribute('data-moduleId');
75
- const entityType = target?.getAttribute('data-entityType');
76
- if (elementType == 'module') {
77
- this.elementData.set({
78
- entityType,
79
- moduleId: moduleId,
80
- record: {
81
- id: moduleId,
82
- },
83
- });
84
- e.items = this.getMenuItems(['details', 'delete']);
85
- }
86
- else {
87
- this.elementData.set({
88
- entityType,
89
- moduleId: moduleId,
90
- record: undefined,
91
- });
92
- const items = this.getMenuItems(['create', 'paste']);
93
- const customMenuItems = items.map((i) => i.name == 'paste' ? { ...i, disabled: entityType == this.copiedRecord()?.type ? false : true } : i);
94
- e.items = customMenuItems;
95
- }
96
- }
97
- else if (elementType == 'subModuleItem') {
98
- this.elementData.set(data);
99
- e.items = this.getMenuItems(['delete', 'copy', 'details']);
100
- }
101
- else {
102
- e.items = [];
103
- e.canceled = true;
104
- }
105
- }
106
- itemClick(e) {
107
- if (this.elementData()) {
108
- switch (e.item.name) {
109
- case 'create':
110
- this.createEntity(this.elementData()?.entityType, this.elementData()?.moduleId);
111
- break;
112
- case 'details':
113
- this.showDetails(this.elementData()?.entityType, this.elementData()?.record.id);
114
- break;
115
- case 'delete':
116
- this.deleteEntity(this.elementData()?.entityType, this.elementData()?.record.id, this.elementData()?.moduleId);
117
- break;
118
- case 'copy':
119
- this.copyRecord(this.elementData()?.entityType, this.elementData()?.record);
120
- break;
121
- case 'paste':
122
- this.pasteRecord(this.elementData()?.moduleId);
123
- break;
124
- default:
125
- break;
126
- }
127
- }
128
- }
129
- async createEntity(entityType, moduleId) {
130
- await this.workflow.execute('create-module-entity', {
131
- entity: `application-management.${entityType}`,
132
- data: {
133
- moduleId,
134
- },
135
- meta: {
136
- type: entityType,
137
- moduleId,
138
- },
139
- });
140
- }
141
- async showDetails(entityType, id) {
142
- await this.workflow.execute('show-module-entity-details', {
143
- entity: `application-management.${entityType}`,
144
- data: {
145
- id,
146
- },
147
- });
148
- }
149
- copyRecord(entityType, record) {
150
- const newRecord = { ...record, moduleId: undefined, id: undefined };
151
- this.copiedRecord.set({ type: entityType, record: newRecord });
152
- }
153
- async pasteRecord(moduleId) {
154
- if (this.copiedRecord()) {
155
- await this.workflow.execute('create-module-entity', {
156
- entity: `application-management.${this.copiedRecord()?.type}`,
157
- data: {
158
- ...this.copiedRecord()?.record,
159
- moduleId,
160
- },
161
- meta: {
162
- type: this.copiedRecord()?.type,
163
- moduleId,
164
- },
165
- });
166
- }
167
- }
168
- async deleteEntity(entityType, id, moduleId) {
169
- await this.workflow.execute('delete-entity', {
170
- entity: `application-management.${entityType}`,
171
- data: {
172
- id,
173
- },
174
- meta: {
175
- moduleId,
176
- type: entityType,
177
- },
178
- });
179
- }
180
- getMenuItems(includeItems) {
181
- return this.menuItems.filter((i) => includeItems.includes(i.name));
182
- }
183
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXMModuleDesignerContextMenuService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
184
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXMModuleDesignerContextMenuService, providedIn: 'root' }); }
185
- }
186
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXMModuleDesignerContextMenuService, decorators: [{
187
- type: Injectable,
188
- args: [{
189
- providedIn: 'root',
190
- }]
191
- }] });
192
-
193
- class AXMModuleDesignerComponent {
194
- constructor() {
195
- this.cdr = inject(ChangeDetectorRef);
196
- this.contextMenu = viewChild('contextMenu');
197
- this.dataProvider = inject(AXPModuleDesignerService);
198
- this.workflow = inject(AXPWorkflowService);
199
- this.contextMenuService = inject(AXMModuleDesignerContextMenuService);
200
- this.modules = signal([]);
201
- this.moduleDataCache = new Map();
202
- this.destroyed = new Subject();
203
- this.subscribeActionEvents();
204
- }
205
- ngOnInit() {
206
- this.loadModules();
207
- }
208
- subscribeActionEvents() {
209
- this.workflow.events$
210
- .pipe(ofType(AXPEntityDeletedEvent, AXPEntityCreateEvent))
211
- .pipe(takeUntil(this.destroyed))
212
- .subscribe((event) => {
213
- const { meta } = event.payload;
214
- if (meta.type === 'module') {
215
- this.loadModules();
216
- }
217
- else {
218
- this.loadModuleData(meta.moduleId, meta.type, true);
219
- }
220
- this.cdr.markForCheck();
221
- });
222
- }
223
- async loadModules() {
224
- try {
225
- const modules = await this.dataProvider.getModules();
226
- this.modules.set(modules.items);
227
- this.refreshContextMenu();
228
- }
229
- catch (error) {
230
- console.error('Error loading modules:', error);
231
- }
232
- }
233
- async handleCollapseItemClick(moduleId, e, dataType) {
234
- if (e.component.isCollapsed) {
235
- e.handled = true;
236
- e.component.isLoading = true;
237
- await this.loadModuleData(moduleId, dataType);
238
- e.component.toggle();
239
- e.component.isLoading = false;
240
- e.component['cdr'].markForCheck();
241
- this.refreshContextMenu();
242
- }
243
- }
244
- refreshContextMenu() {
245
- setTimeout(() => {
246
- this.contextMenu()?.refresh();
247
- }, 0);
248
- }
249
- async loadModuleData(moduleId, dataType, hardReload = false) {
250
- const cacheKey = `${moduleId}-${dataType}`;
251
- let dataItems = this.moduleDataCache.get(cacheKey);
252
- // if (!dataItems || hardReload) {
253
- try {
254
- const methodMap = {
255
- entity: this.dataProvider.getEntities,
256
- permission: this.dataProvider.getPermissions,
257
- feature: this.dataProvider.getFeatures,
258
- };
259
- const data = await methodMap[dataType].call(this.dataProvider, moduleId);
260
- dataItems = data.items;
261
- this.moduleDataCache.set(cacheKey, dataItems);
262
- }
263
- catch (error) {
264
- console.error(`Error loading ${dataType}:`, error);
265
- }
266
- // }
267
- }
268
- getEntities(moduleId) {
269
- return this.moduleDataCache.get(`${moduleId}-entity`) || [];
270
- }
271
- getPermissions(moduleId) {
272
- return this.moduleDataCache.get(`${moduleId}-permission`) || [];
273
- }
274
- getFeatures(moduleId) {
275
- return this.moduleDataCache.get(`${moduleId}-feature`) || [];
276
- }
277
- openingContextMenu(e) {
278
- this.contextMenuService.open(e);
279
- }
280
- handleActionClick(e) {
281
- this.contextMenuService.itemClick(e);
282
- }
283
- createModule() {
284
- this.contextMenuService.createEntity('module');
285
- }
286
- destroy() {
287
- this.destroyed.next();
288
- this.destroyed.complete();
289
- }
290
- assignData(target, data) {
291
- set(target, 'data', data);
292
- }
293
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXMModuleDesignerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
294
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.10", type: AXMModuleDesignerComponent, isStandalone: true, selector: "ng-component", viewQueries: [{ propertyName: "contextMenu", first: true, predicate: ["contextMenu"], descendants: true, isSignal: true }], ngImport: i0, template: "<ax-drawer-container class=\"ax-overflow-hidden\">\n <ax-drawer #drawer location=\"start\" [collapsed]=\"false\" [mode]=\"'push'\">\n <ax-content class=\"ax-w-80 ax-relative ax-border-e ax-px-4 ax-py-2\">\n <div class=\"ax-overflow-auto ax-h-[calc(100vh-180px)]\">\n <span class=\"ax-font-bold ax-text-xl\">{{ 'designer.modules' | translate | async }}</span>\n <div class=\"ax-flex ax-flex-col ax-gap-2 ax-mt-4\">\n @if(modules().length){\n <ax-collapse-group [accordion]=\"false\" look=\"blank\">\n @for(m of modules();track $index){\n <ax-collapse\n class=\"ctx\"\n icon=\"fas fa-folder ax-text-warning\"\n [isCollapsed]=\"true\"\n [caption]=\"m.title\"\n look=\"none\"\n data-elementType=\"module\"\n [attr.data-moduleId]=\"m.id\"\n data-entityType=\"module\"\n >\n <div class=\"ax-mx-3\">\n <ax-collapse-group [accordion]=\"false\" look=\"blank\">\n <ax-collapse\n class=\"ctx\"\n icon=\"fas fa-box ax-text-neutral-400\"\n [isCollapsed]=\"true\"\n (onClick)=\"handleCollapseItemClick(m.id, $event, 'entity')\"\n [caption]=\"('designer.entities' | translate | async) ?? 'Entities'\"\n look=\"none\"\n data-elementType=\"subModule\"\n [attr.data-moduleId]=\"m.id\"\n data-entityType=\"entity\"\n >\n <ng-container\n [ngTemplateOutlet]=\"childTemplate\"\n [ngTemplateOutletContext]=\"{\n $implicit: { type: 'entity', items: getEntities(m.id), moduleId: m.id }\n }\"\n ></ng-container>\n </ax-collapse>\n\n <ax-collapse\n class=\"ctx\"\n icon=\"fas fa-star ax-text-neutral-400\"\n [isCollapsed]=\"true\"\n (onClick)=\"handleCollapseItemClick(m.id, $event, 'feature')\"\n [caption]=\"('designer.features' | translate | async) ?? 'Features'\"\n look=\"none\"\n data-elementType=\"subModule\"\n [attr.data-moduleId]=\"m.id\"\n data-entityType=\"feature\"\n >\n <ng-container\n [ngTemplateOutlet]=\"childTemplate\"\n [ngTemplateOutletContext]=\"{\n $implicit: { type: 'feature', items: getFeatures(m.id), moduleId: m.id }\n }\"\n ></ng-container>\n </ax-collapse>\n\n <ax-collapse\n class=\"ctx\"\n icon=\"fas fa-key ax-text-neutral-400\"\n [isCollapsed]=\"true\"\n (onClick)=\"handleCollapseItemClick(m.id, $event, 'permission')\"\n [caption]=\"('designer.permissions' | translate | async) ?? 'Permissions'\"\n look=\"none\"\n data-elementType=\"subModule\"\n [attr.data-moduleId]=\"m.id\"\n data-entityType=\"permission\"\n >\n <ng-container\n [ngTemplateOutlet]=\"childTemplate\"\n [ngTemplateOutletContext]=\"{\n $implicit: { type: 'permission', items: getPermissions(m.id), moduleId: m.id }\n }\"\n ></ng-container>\n </ax-collapse>\n </ax-collapse-group>\n </div>\n </ax-collapse>\n }\n </ax-collapse-group>\n } @else {\n <div class=\"ax-h-full ax-flex ax-items-center ax-justify-center\">\n <span class=\"ax-text-neutral-500 ax-text-sm\">{{ 'designer.emptyModulesText' | translate | async }}</span>\n </div>\n }\n </div>\n <ax-button\n class=\"ax-absolute ax-bottom-4 ax-w-72\"\n [text]=\"('designer.createModule' | translate | async) ?? 'Create New Module'\"\n (onClick)=\"createModule()\"\n look=\"solid\"\n color=\"primary\"\n >\n <ax-icon class=\"fas fa-plus\"> </ax-icon>\n </ax-button>\n </div>\n </ax-content>\n\n <ng-template #childTemplate let-child>\n <div class=\"ax-flex ax-flex-col ax-cursor-pointer ax-select-none ax-border-s ax-ms-[14px] ax-ps-2\">\n @for (item of child.items; track $index) {\n\n <div\n #d\n (click)=\"contextMenuService.showDetails(child.type, item.id)\"\n class=\"ctx ax-px-2 ax-py-1 ax-flex ax-items-center ax-justify-between hover:ax-bg-neutral-100 dark:hover:ax-bg-neutral-700 hover:ax-rounded-md\"\n data-elementType=\"subModuleItem\"\n >\n {{ assignData(d, { record: item, entityType: child.type, moduleId: child.moduleId }) }}\n <span>{{ item.title }}</span>\n <ax-badge\n [look]=\"'twotone'\"\n [color]=\"item.isArchived ? 'danger' : 'success'\"\n [text]=\"item.isArchived ? 'Off' : 'On'\"\n >\n </ax-badge>\n </div>\n }\n </div>\n </ng-template>\n </ax-drawer>\n <ax-content>\n <router-outlet></router-outlet>\n </ax-content>\n</ax-drawer-container>\n\n<ax-context-menu\n #contextMenu\n (onItemClick)=\"handleActionClick($event)\"\n [items]=\"[]\"\n [target]=\"'.ctx'\"\n [orientation]=\"'vertical'\"\n [closeOn]=\"'leave'\"\n (onOpening)=\"openingContextMenu($event)\"\n>\n</ax-context-menu>\n", styles: [".ax-collapse-header{padding:.25rem .5rem!important}.ax-collapse-header:hover{border-radius:.375rem;--tw-bg-opacity: 1;background-color:rgb(245 245 245 / var(--tw-bg-opacity, 1))}.ax-collapse-header:hover:is(.ax-dark *){--tw-bg-opacity: 1;background-color:rgb(64 64 64 / var(--tw-bg-opacity, 1))}.ax-collapse-body-content{padding:.25rem!important;padding-inline-start:0!important}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "ngmodule", type: AXDrawerModule }, { kind: "component", type: i2.AXDrawerComponent, selector: "ax-drawer", inputs: ["location", "collapsed", "showBackdrop", "mode", "transition", "closeOnBackdropClick", "backdropClass", "class"], outputs: ["collapsedChange", "onBackdropClick", "onDrawerClosed"] }, { kind: "component", type: i2.AXDrawerContainerComponent, selector: "ax-drawer-container" }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i6.AXButtonComponent, selector: "ax-button", inputs: ["disabled", "size", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i2$1.AXDecoratorIconComponent, selector: "ax-icon", inputs: ["icon"] }, { kind: "component", type: i2$1.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "ngmodule", type: AXTranslationModule }, { kind: "pipe", type: i8.AXTranslatorPipe, name: "translate" }, { kind: "ngmodule", type: AXSideMenuModule }, { kind: "ngmodule", type: AXCollapseModule }, { kind: "component", type: i6$1.AXCollapseComponent, selector: "ax-collapse", inputs: ["disabled", "look", "isCollapsed", "showHeader", "caption", "icon", "isLoading", "headerTemplate"], outputs: ["onClick", "isCollapsedChange"] }, { kind: "component", type: i6$1.AXCollapseGroupComponent, selector: "ax-collapse-group", inputs: ["look", "accordion", "activeIndex"], outputs: ["accordionChange", "activeIndexChange"] }, { kind: "ngmodule", type: AXPopoverModule }, { kind: "ngmodule", type: AXSelectionListModule }, { kind: "ngmodule", type: AXBadgeModule }, { kind: "component", type: i7.AXBadgeComponent, selector: "ax-badge", inputs: ["color", "look", "text"] }, { kind: "ngmodule", type: AXMenuModule }, { kind: "component", type: i8$1.AXContextMenuComponent, selector: "ax-context-menu", inputs: ["orientation", "openOn", "closeOn", "items", "target"], outputs: ["onItemClick", "onOpening"] }, { kind: "ngmodule", type: RouterModule }, { kind: "directive", type: i2$2.RouterOutlet, selector: "router-outlet", inputs: ["name", "routerOutletData"], outputs: ["activate", "deactivate", "attach", "detach"], exportAs: ["outlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
295
- }
296
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImport: i0, type: AXMModuleDesignerComponent, decorators: [{
297
- type: Component,
298
- args: [{ encapsulation: ViewEncapsulation.None, imports: [
299
- CommonModule,
300
- AXDrawerModule,
301
- AXButtonModule,
302
- AXDecoratorModule,
303
- AXTranslationModule,
304
- AXSideMenuModule,
305
- AXCollapseModule,
306
- AXPopoverModule,
307
- AXSelectionListModule,
308
- AXBadgeModule,
309
- AXMenuModule,
310
- RouterModule,
311
- ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ax-drawer-container class=\"ax-overflow-hidden\">\n <ax-drawer #drawer location=\"start\" [collapsed]=\"false\" [mode]=\"'push'\">\n <ax-content class=\"ax-w-80 ax-relative ax-border-e ax-px-4 ax-py-2\">\n <div class=\"ax-overflow-auto ax-h-[calc(100vh-180px)]\">\n <span class=\"ax-font-bold ax-text-xl\">{{ 'designer.modules' | translate | async }}</span>\n <div class=\"ax-flex ax-flex-col ax-gap-2 ax-mt-4\">\n @if(modules().length){\n <ax-collapse-group [accordion]=\"false\" look=\"blank\">\n @for(m of modules();track $index){\n <ax-collapse\n class=\"ctx\"\n icon=\"fas fa-folder ax-text-warning\"\n [isCollapsed]=\"true\"\n [caption]=\"m.title\"\n look=\"none\"\n data-elementType=\"module\"\n [attr.data-moduleId]=\"m.id\"\n data-entityType=\"module\"\n >\n <div class=\"ax-mx-3\">\n <ax-collapse-group [accordion]=\"false\" look=\"blank\">\n <ax-collapse\n class=\"ctx\"\n icon=\"fas fa-box ax-text-neutral-400\"\n [isCollapsed]=\"true\"\n (onClick)=\"handleCollapseItemClick(m.id, $event, 'entity')\"\n [caption]=\"('designer.entities' | translate | async) ?? 'Entities'\"\n look=\"none\"\n data-elementType=\"subModule\"\n [attr.data-moduleId]=\"m.id\"\n data-entityType=\"entity\"\n >\n <ng-container\n [ngTemplateOutlet]=\"childTemplate\"\n [ngTemplateOutletContext]=\"{\n $implicit: { type: 'entity', items: getEntities(m.id), moduleId: m.id }\n }\"\n ></ng-container>\n </ax-collapse>\n\n <ax-collapse\n class=\"ctx\"\n icon=\"fas fa-star ax-text-neutral-400\"\n [isCollapsed]=\"true\"\n (onClick)=\"handleCollapseItemClick(m.id, $event, 'feature')\"\n [caption]=\"('designer.features' | translate | async) ?? 'Features'\"\n look=\"none\"\n data-elementType=\"subModule\"\n [attr.data-moduleId]=\"m.id\"\n data-entityType=\"feature\"\n >\n <ng-container\n [ngTemplateOutlet]=\"childTemplate\"\n [ngTemplateOutletContext]=\"{\n $implicit: { type: 'feature', items: getFeatures(m.id), moduleId: m.id }\n }\"\n ></ng-container>\n </ax-collapse>\n\n <ax-collapse\n class=\"ctx\"\n icon=\"fas fa-key ax-text-neutral-400\"\n [isCollapsed]=\"true\"\n (onClick)=\"handleCollapseItemClick(m.id, $event, 'permission')\"\n [caption]=\"('designer.permissions' | translate | async) ?? 'Permissions'\"\n look=\"none\"\n data-elementType=\"subModule\"\n [attr.data-moduleId]=\"m.id\"\n data-entityType=\"permission\"\n >\n <ng-container\n [ngTemplateOutlet]=\"childTemplate\"\n [ngTemplateOutletContext]=\"{\n $implicit: { type: 'permission', items: getPermissions(m.id), moduleId: m.id }\n }\"\n ></ng-container>\n </ax-collapse>\n </ax-collapse-group>\n </div>\n </ax-collapse>\n }\n </ax-collapse-group>\n } @else {\n <div class=\"ax-h-full ax-flex ax-items-center ax-justify-center\">\n <span class=\"ax-text-neutral-500 ax-text-sm\">{{ 'designer.emptyModulesText' | translate | async }}</span>\n </div>\n }\n </div>\n <ax-button\n class=\"ax-absolute ax-bottom-4 ax-w-72\"\n [text]=\"('designer.createModule' | translate | async) ?? 'Create New Module'\"\n (onClick)=\"createModule()\"\n look=\"solid\"\n color=\"primary\"\n >\n <ax-icon class=\"fas fa-plus\"> </ax-icon>\n </ax-button>\n </div>\n </ax-content>\n\n <ng-template #childTemplate let-child>\n <div class=\"ax-flex ax-flex-col ax-cursor-pointer ax-select-none ax-border-s ax-ms-[14px] ax-ps-2\">\n @for (item of child.items; track $index) {\n\n <div\n #d\n (click)=\"contextMenuService.showDetails(child.type, item.id)\"\n class=\"ctx ax-px-2 ax-py-1 ax-flex ax-items-center ax-justify-between hover:ax-bg-neutral-100 dark:hover:ax-bg-neutral-700 hover:ax-rounded-md\"\n data-elementType=\"subModuleItem\"\n >\n {{ assignData(d, { record: item, entityType: child.type, moduleId: child.moduleId }) }}\n <span>{{ item.title }}</span>\n <ax-badge\n [look]=\"'twotone'\"\n [color]=\"item.isArchived ? 'danger' : 'success'\"\n [text]=\"item.isArchived ? 'Off' : 'On'\"\n >\n </ax-badge>\n </div>\n }\n </div>\n </ng-template>\n </ax-drawer>\n <ax-content>\n <router-outlet></router-outlet>\n </ax-content>\n</ax-drawer-container>\n\n<ax-context-menu\n #contextMenu\n (onItemClick)=\"handleActionClick($event)\"\n [items]=\"[]\"\n [target]=\"'.ctx'\"\n [orientation]=\"'vertical'\"\n [closeOn]=\"'leave'\"\n (onOpening)=\"openingContextMenu($event)\"\n>\n</ax-context-menu>\n", styles: [".ax-collapse-header{padding:.25rem .5rem!important}.ax-collapse-header:hover{border-radius:.375rem;--tw-bg-opacity: 1;background-color:rgb(245 245 245 / var(--tw-bg-opacity, 1))}.ax-collapse-header:hover:is(.ax-dark *){--tw-bg-opacity: 1;background-color:rgb(64 64 64 / var(--tw-bg-opacity, 1))}.ax-collapse-body-content{padding:.25rem!important;padding-inline-start:0!important}\n"] }]
312
- }], ctorParameters: () => [] });
313
-
314
- export { AXMModuleDesignerComponent };
315
- //# sourceMappingURL=acorex-modules-application-management-module-designer.component-BRh6mzWA.mjs.map