@acorex/modules 21.0.0-next.45 → 21.0.0-next.47

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 (67) hide show
  1. package/fesm2022/{acorex-modules-ai-management-agent.entity-D6-0_Ms3.mjs → acorex-modules-ai-management-agent.entity-Bnt9zkci.mjs} +15 -1
  2. package/fesm2022/acorex-modules-ai-management-agent.entity-Bnt9zkci.mjs.map +1 -0
  3. package/fesm2022/acorex-modules-ai-management.mjs +53 -165
  4. package/fesm2022/acorex-modules-ai-management.mjs.map +1 -1
  5. package/fesm2022/{acorex-modules-common-search-popup.component-BbRyjGia.mjs → acorex-modules-common-search-popup.component-CVuE0xgM.mjs} +14 -7
  6. package/fesm2022/acorex-modules-common-search-popup.component-CVuE0xgM.mjs.map +1 -0
  7. package/fesm2022/acorex-modules-common.mjs +2 -2
  8. package/fesm2022/{acorex-modules-conversation-acorex-modules-conversation-BJU2_R9O.mjs → acorex-modules-conversation-acorex-modules-conversation-F7nQo1GU.mjs} +749 -335
  9. package/fesm2022/acorex-modules-conversation-acorex-modules-conversation-F7nQo1GU.mjs.map +1 -0
  10. package/fesm2022/acorex-modules-conversation-assist-delegated-agent-detail-popup.component-BB5Uyydt.mjs +287 -0
  11. package/fesm2022/acorex-modules-conversation-assist-delegated-agent-detail-popup.component-BB5Uyydt.mjs.map +1 -0
  12. package/fesm2022/{acorex-modules-conversation-comments-page.component-Bg6m7UTG.mjs → acorex-modules-conversation-comments-page.component-QnDogSDy.mjs} +2 -2
  13. package/fesm2022/{acorex-modules-conversation-comments-page.component-Bg6m7UTG.mjs.map → acorex-modules-conversation-comments-page.component-QnDogSDy.mjs.map} +1 -1
  14. package/fesm2022/acorex-modules-conversation-start-assist-chat.command-DRlWzEDp.mjs +45 -0
  15. package/fesm2022/acorex-modules-conversation-start-assist-chat.command-DRlWzEDp.mjs.map +1 -0
  16. package/fesm2022/acorex-modules-conversation.mjs +1 -1
  17. package/fesm2022/{acorex-modules-dashboard-management-acorex-modules-dashboard-management-D11VudG8.mjs → acorex-modules-dashboard-management-acorex-modules-dashboard-management-kk0CINL1.mjs} +5 -5
  18. package/fesm2022/acorex-modules-dashboard-management-acorex-modules-dashboard-management-kk0CINL1.mjs.map +1 -0
  19. package/fesm2022/{acorex-modules-dashboard-management-index-DB3Uh1wL.mjs → acorex-modules-dashboard-management-index-Bhm8mAON.mjs} +2 -2
  20. package/fesm2022/{acorex-modules-dashboard-management-index-DB3Uh1wL.mjs.map → acorex-modules-dashboard-management-index-Bhm8mAON.mjs.map} +1 -1
  21. package/fesm2022/acorex-modules-dashboard-management.mjs +1 -1
  22. package/fesm2022/acorex-modules-document-management.mjs +8 -5
  23. package/fesm2022/acorex-modules-document-management.mjs.map +1 -1
  24. package/fesm2022/acorex-modules-person-core.mjs +4 -0
  25. package/fesm2022/acorex-modules-person-core.mjs.map +1 -1
  26. package/fesm2022/{acorex-modules-platform-dev-tools-menu.provider-BFueKnuF.mjs → acorex-modules-platform-dev-tools-menu.provider-DDjYvQr7.mjs} +6 -2
  27. package/fesm2022/acorex-modules-platform-dev-tools-menu.provider-DDjYvQr7.mjs.map +1 -0
  28. package/fesm2022/acorex-modules-platform-dev-tools.mjs +42 -5
  29. package/fesm2022/acorex-modules-platform-dev-tools.mjs.map +1 -1
  30. package/fesm2022/acorex-modules-project-management.mjs +33 -3
  31. package/fesm2022/acorex-modules-project-management.mjs.map +1 -1
  32. package/fesm2022/acorex-modules-report-management.mjs +12 -8
  33. package/fesm2022/acorex-modules-report-management.mjs.map +1 -1
  34. package/fesm2022/{acorex-modules-task-management-acorex-modules-task-management-DDUq9FpA.mjs → acorex-modules-task-management-acorex-modules-task-management-BL2IOcx3.mjs} +63 -6
  35. package/fesm2022/acorex-modules-task-management-acorex-modules-task-management-BL2IOcx3.mjs.map +1 -0
  36. package/fesm2022/{acorex-modules-task-management-task-board.page-C6j-_aSD.mjs → acorex-modules-task-management-task-board.page-DUIHtqnr.mjs} +138 -68
  37. package/fesm2022/acorex-modules-task-management-task-board.page-DUIHtqnr.mjs.map +1 -0
  38. package/fesm2022/acorex-modules-task-management.mjs +1 -1
  39. package/fesm2022/{acorex-modules-workflow-management-activity-command-configurator-widget-edit.component-Dj6LkQeZ.mjs → acorex-modules-workflow-management-activity-command-configurator-widget-edit.component-CYyr1kQk.mjs} +3 -3
  40. package/fesm2022/{acorex-modules-workflow-management-activity-command-configurator-widget-edit.component-Dj6LkQeZ.mjs.map → acorex-modules-workflow-management-activity-command-configurator-widget-edit.component-CYyr1kQk.mjs.map} +1 -1
  41. package/fesm2022/{acorex-modules-workflow-management-index-Eh5DDK-V.mjs → acorex-modules-workflow-management-index-DC_9M9dk.mjs} +3 -3
  42. package/fesm2022/{acorex-modules-workflow-management-index-Eh5DDK-V.mjs.map → acorex-modules-workflow-management-index-DC_9M9dk.mjs.map} +1 -1
  43. package/fesm2022/{acorex-modules-workflow-management-index-V4OesZTq.mjs → acorex-modules-workflow-management-index-jin24dmb.mjs} +3 -3
  44. package/fesm2022/{acorex-modules-workflow-management-index-V4OesZTq.mjs.map → acorex-modules-workflow-management-index-jin24dmb.mjs.map} +1 -1
  45. package/fesm2022/{acorex-modules-workflow-management-workflow-instance.entity-B_V3uMSI.mjs → acorex-modules-workflow-management-workflow-instance.entity-BnKT3Wgh.mjs} +2 -2
  46. package/fesm2022/{acorex-modules-workflow-management-workflow-instance.entity-B_V3uMSI.mjs.map → acorex-modules-workflow-management-workflow-instance.entity-BnKT3Wgh.mjs.map} +1 -1
  47. package/fesm2022/acorex-modules-workflow-management.mjs +11 -20
  48. package/fesm2022/acorex-modules-workflow-management.mjs.map +1 -1
  49. package/package.json +2 -2
  50. package/types/acorex-modules-ai-management.d.ts +19 -22
  51. package/types/acorex-modules-conversation.d.ts +31 -39
  52. package/types/acorex-modules-dashboard-management.d.ts +2 -2
  53. package/types/acorex-modules-platform-dev-tools.d.ts +16 -2
  54. package/types/acorex-modules-report-management.d.ts +8 -1
  55. package/types/acorex-modules-task-management.d.ts +26 -1
  56. package/types/acorex-modules-workflow-management.d.ts +2 -3
  57. package/fesm2022/acorex-modules-ai-management-agent.entity-D6-0_Ms3.mjs.map +0 -1
  58. package/fesm2022/acorex-modules-common-search-popup.component-BbRyjGia.mjs.map +0 -1
  59. package/fesm2022/acorex-modules-conversation-acorex-modules-conversation-BJU2_R9O.mjs.map +0 -1
  60. package/fesm2022/acorex-modules-conversation-assist-delegated-agent-detail-popup.component-DX2JPckF.mjs +0 -324
  61. package/fesm2022/acorex-modules-conversation-assist-delegated-agent-detail-popup.component-DX2JPckF.mjs.map +0 -1
  62. package/fesm2022/acorex-modules-dashboard-management-acorex-modules-dashboard-management-D11VudG8.mjs.map +0 -1
  63. package/fesm2022/acorex-modules-platform-dev-tools-menu.provider-BFueKnuF.mjs.map +0 -1
  64. package/fesm2022/acorex-modules-task-management-acorex-modules-task-management-DDUq9FpA.mjs.map +0 -1
  65. package/fesm2022/acorex-modules-task-management-task-board.page-C6j-_aSD.mjs.map +0 -1
  66. package/fesm2022/acorex-modules-workflow-management-workflow-task-popover.component-l37iXJIY.mjs +0 -362
  67. package/fesm2022/acorex-modules-workflow-management-workflow-task-popover.component-l37iXJIY.mjs.map +0 -1
@@ -639,6 +639,10 @@ const AXMPermissionsKeys = {
639
639
 
640
640
  //#region ---- Imports ----
641
641
  //#endregion
642
+ //#region ---- Constants ----
643
+ /** Sentinel id for the task-board assignee filter option: tasks with no assignee. */
644
+ const AXM_TASK_BOARD_UNASSIGNED_ASSIGNEE_ID = 'TaskManagement:TaskBoard:Assignee:Unassigned';
645
+ //#endregion
642
646
  //#region ---- Permission Helpers ----
643
647
  /** Permission to view and filter tasks across all assignees on the task board. */
644
648
  const AXM_TASK_VIEW_ALL_PERMISSION = AXMPermissionsKeys.TaskManagement.Task.ViewAll;
@@ -648,8 +652,12 @@ const AXM_TASK_VIEW_ALL_PERMISSION = AXMPermissionsKeys.TaskManagement.Task.View
648
652
  function canViewAllTaskAssignees(sessionService) {
649
653
  return sessionService.authorize(AXM_TASK_VIEW_ALL_PERMISSION);
650
654
  }
655
+ function isTaskBoardUnassignedAssigneeId(id) {
656
+ return String(id) === AXM_TASK_BOARD_UNASSIGNED_ASSIGNEE_ID;
657
+ }
651
658
  /**
652
659
  * Restricts assignee filter ids to the current user when {@link canViewAllTaskAssignees} is false.
660
+ * Strips the unassigned sentinel for users without view-all permission.
653
661
  */
654
662
  function normalizeTaskBoardAssigneeIds(sessionService, assigneeIds) {
655
663
  if (canViewAllTaskAssignees(sessionService)) {
@@ -658,6 +666,36 @@ function normalizeTaskBoardAssigneeIds(sessionService, assigneeIds) {
658
666
  const currentUserId = sessionService.user?.id;
659
667
  return currentUserId != null ? [currentUserId] : [];
660
668
  }
669
+ /**
670
+ * Whether a task matches the selected assignee filter ids (OR semantics).
671
+ * Supports {@link AXM_TASK_BOARD_UNASSIGNED_ASSIGNEE_ID} for tasks without an assignee.
672
+ */
673
+ function matchesTaskBoardAssigneeFilter(assigneeId, filterIds) {
674
+ if (filterIds.length === 0) {
675
+ return true;
676
+ }
677
+ const filterSet = new Set(filterIds.map(String));
678
+ const wantsUnassigned = filterSet.has(AXM_TASK_BOARD_UNASSIGNED_ASSIGNEE_ID);
679
+ const hasAssignee = assigneeId != null && assigneeId !== '';
680
+ if (!hasAssignee) {
681
+ return wantsUnassigned;
682
+ }
683
+ return filterSet.has(String(assigneeId));
684
+ }
685
+ /**
686
+ * Whether a workflow task matches assignee filters using assigned/candidate user ids.
687
+ */
688
+ function matchesTaskBoardAssigneeUserIdsFilter(userIds, filterIds) {
689
+ if (filterIds.length === 0) {
690
+ return true;
691
+ }
692
+ const filterSet = new Set(filterIds.map(String));
693
+ const wantsUnassigned = filterSet.has(AXM_TASK_BOARD_UNASSIGNED_ASSIGNEE_ID);
694
+ if (userIds.length === 0) {
695
+ return wantsUnassigned;
696
+ }
697
+ return userIds.some((id) => filterSet.has(String(id)));
698
+ }
661
699
  //#endregion
662
700
 
663
701
  //#region ---- Imports ----
@@ -668,6 +706,7 @@ class AXMTaskBoardAssigneeDataSourceDefinition {
668
706
  constructor() {
669
707
  this.userService = inject(AXMUsersEntityService);
670
708
  this.sessionService = inject(AXPSessionService);
709
+ this.translationService = inject(AXTranslationService);
671
710
  }
672
711
  items() {
673
712
  return Promise.resolve([
@@ -690,15 +729,33 @@ class AXMTaskBoardAssigneeDataSourceDefinition {
690
729
  };
691
730
  return { items: [selfItem], total: 1 };
692
731
  }
732
+ const unassignedLabel = await this.translationService.translateAsync('@task-management:task-board.filter.unassigned');
733
+ const unassignedItem = {
734
+ id: AXM_TASK_BOARD_UNASSIGNED_ASSIGNEE_ID,
735
+ displayName: unassignedLabel,
736
+ username: '',
737
+ };
693
738
  const res = await this.userService.query();
694
- const items = res.items.map((item) => ({
739
+ const userItems = res.items.map((item) => ({
695
740
  ...item,
696
741
  displayName: item.displayName,
697
742
  }));
698
- return { items, total: res.total };
743
+ const items = [...userItems, unassignedItem];
744
+ return { items, total: items.length };
699
745
  },
700
746
  byKey: async (key) => {
701
- const userId = key;
747
+ const userId = String(key);
748
+ if (isTaskBoardUnassignedAssigneeId(userId)) {
749
+ if (!canViewAllTaskAssignees(this.sessionService)) {
750
+ return null;
751
+ }
752
+ const displayName = await this.translationService.translateAsync('@task-management:task-board.filter.unassigned');
753
+ return {
754
+ id: AXM_TASK_BOARD_UNASSIGNED_ASSIGNEE_ID,
755
+ displayName,
756
+ username: '',
757
+ };
758
+ }
702
759
  if (!canViewAllTaskAssignees(this.sessionService)) {
703
760
  const currentUser = this.sessionService.user;
704
761
  if (!currentUser?.id || currentUser.id !== userId) {
@@ -776,7 +833,7 @@ function createAppRoute() {
776
833
  children: [
777
834
  {
778
835
  path: '',
779
- loadComponent: () => import('./acorex-modules-task-management-task-board.page-C6j-_aSD.mjs').then((c) => c.AXMTaskBoardPage),
836
+ loadComponent: () => import('./acorex-modules-task-management-task-board.page-DUIHtqnr.mjs').then((c) => c.AXMTaskBoardPage),
780
837
  },
781
838
  ],
782
839
  };
@@ -6223,5 +6280,5 @@ var taskTemplate_entity = /*#__PURE__*/Object.freeze({
6223
6280
  * Generated bundle index. Do not edit.
6224
6281
  */
6225
6282
 
6226
- export { AXM_TASK_BOARD_ALL_VIEW_MODE_IDS as A, taskDependencyFactory as B, taskFactory as C, taskStatusFactory as D, taskTemplateFactory as E, taskTypeFactory as F, timeLogFactory as G, RootConfig as R, AXMTaskBoardSettings as a, normalizeVisibleTaskBoardModesByParts as b, canViewAllTaskAssignees as c, AXPTaskBoardService as d, AXMPermissionsKeys as e, AXMSearchCommandProvider as f, AXMSettingProvider as g, AXMTaskManagementEntityProvider as h, AXMTaskManagementMenuProvider as i, AXMTaskManagementModule as j, AXPTaskBoardModule as k, AXPTaskBoardShortcut as l, AXPTaskBoardShortcutViewComponent as m, normalizeTaskBoardAssigneeIds as n, AXPTaskBoardWidget as o, AXPTaskBoardWidgetViewComponent as p, AXPTaskPopoverComponent as q, AXPTaskTypeDataSourceDefinition as r, AXPWorkflowTaskProvider as s, AXP_TASK_MANAGEMENT_DASHBOARD_SUB_BOARD as t, AXP_TASK_MANAGEMENT_DASHBOARD_SUB_SHORTCUT as u, AXP_TASK_MANAGEMENT_DASHBOARD_WIDGET_CATEGORY as v, AXP_WORKFLOW_TASK_PROVIDER as w, taskAssignmentFactory as x, taskChecklistItemFactory as y, taskContextFactory as z };
6227
- //# sourceMappingURL=acorex-modules-task-management-acorex-modules-task-management-DDUq9FpA.mjs.map
6283
+ export { AXM_TASK_BOARD_ALL_VIEW_MODE_IDS as A, matchesTaskBoardAssigneeFilter as B, matchesTaskBoardAssigneeUserIdsFilter as C, taskAssignmentFactory as D, taskChecklistItemFactory as E, taskContextFactory as F, taskDependencyFactory as G, taskFactory as H, taskStatusFactory as I, taskTemplateFactory as J, taskTypeFactory as K, timeLogFactory as L, RootConfig as R, AXMTaskBoardSettings as a, normalizeVisibleTaskBoardModesByParts as b, canViewAllTaskAssignees as c, AXPTaskBoardService as d, AXMPermissionsKeys as e, AXMSearchCommandProvider as f, AXMSettingProvider as g, AXMTaskManagementEntityProvider as h, AXMTaskManagementMenuProvider as i, AXMTaskManagementModule as j, AXM_TASK_BOARD_UNASSIGNED_ASSIGNEE_ID as k, AXM_TASK_VIEW_ALL_PERMISSION as l, AXPTaskBoardModule as m, normalizeTaskBoardAssigneeIds as n, AXPTaskBoardShortcut as o, AXPTaskBoardShortcutViewComponent as p, AXPTaskBoardWidget as q, AXPTaskBoardWidgetViewComponent as r, AXPTaskPopoverComponent as s, AXPTaskTypeDataSourceDefinition as t, AXPWorkflowTaskProvider as u, AXP_TASK_MANAGEMENT_DASHBOARD_SUB_BOARD as v, AXP_TASK_MANAGEMENT_DASHBOARD_SUB_SHORTCUT as w, AXP_TASK_MANAGEMENT_DASHBOARD_WIDGET_CATEGORY as x, AXP_WORKFLOW_TASK_PROVIDER as y, isTaskBoardUnassignedAssigneeId as z };
6284
+ //# sourceMappingURL=acorex-modules-task-management-acorex-modules-task-management-BL2IOcx3.mjs.map