@acorex/modules 21.0.0-next.1 → 21.0.0-next.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.
Files changed (57) hide show
  1. package/auth/index.d.ts +21 -25
  2. package/fesm2022/{acorex-modules-auth-acorex-modules-auth-Xhv636ad.mjs → acorex-modules-auth-acorex-modules-auth-DyMrPzio.mjs} +128 -173
  3. package/fesm2022/acorex-modules-auth-acorex-modules-auth-DyMrPzio.mjs.map +1 -0
  4. package/fesm2022/{acorex-modules-auth-app-chooser.component-CVTPqwuU.mjs → acorex-modules-auth-app-chooser.component-CeTkWuU7.mjs} +2 -2
  5. package/fesm2022/{acorex-modules-auth-app-chooser.component-CVTPqwuU.mjs.map → acorex-modules-auth-app-chooser.component-CeTkWuU7.mjs.map} +1 -1
  6. package/fesm2022/{acorex-modules-auth-login.module-D-OyMAOZ.mjs → acorex-modules-auth-login.module-DanUC1V9.mjs} +4 -4
  7. package/fesm2022/{acorex-modules-auth-login.module-D-OyMAOZ.mjs.map → acorex-modules-auth-login.module-DanUC1V9.mjs.map} +1 -1
  8. package/fesm2022/{acorex-modules-auth-master.layout-Daxd7Nh7.mjs → acorex-modules-auth-master.layout-StFhVYaW.mjs} +2 -2
  9. package/fesm2022/{acorex-modules-auth-master.layout-Daxd7Nh7.mjs.map → acorex-modules-auth-master.layout-StFhVYaW.mjs.map} +1 -1
  10. package/fesm2022/{acorex-modules-auth-oauth-callback.component-DrpoLauM.mjs → acorex-modules-auth-oauth-callback.component-BYZyzG0Q.mjs} +2 -2
  11. package/fesm2022/{acorex-modules-auth-oauth-callback.component-DrpoLauM.mjs.map → acorex-modules-auth-oauth-callback.component-BYZyzG0Q.mjs.map} +1 -1
  12. package/fesm2022/{acorex-modules-auth-password.component-Ce1GT_9U.mjs → acorex-modules-auth-password.component-CshkJ94Y.mjs} +2 -2
  13. package/fesm2022/{acorex-modules-auth-password.component-Ce1GT_9U.mjs.map → acorex-modules-auth-password.component-CshkJ94Y.mjs.map} +1 -1
  14. package/fesm2022/{acorex-modules-auth-password.component-OFNLNftl.mjs → acorex-modules-auth-password.component-Cwnmr_K3.mjs} +2 -2
  15. package/fesm2022/{acorex-modules-auth-password.component-OFNLNftl.mjs.map → acorex-modules-auth-password.component-Cwnmr_K3.mjs.map} +1 -1
  16. package/fesm2022/{acorex-modules-auth-routes-nKIv8r0R.mjs → acorex-modules-auth-routes-QmD6HTen.mjs} +2 -2
  17. package/fesm2022/{acorex-modules-auth-routes-nKIv8r0R.mjs.map → acorex-modules-auth-routes-QmD6HTen.mjs.map} +1 -1
  18. package/fesm2022/{acorex-modules-auth-two-factor.module-CxhH6CxU.mjs → acorex-modules-auth-two-factor.module-CUrjDJKb.mjs} +2 -2
  19. package/fesm2022/{acorex-modules-auth-two-factor.module-CxhH6CxU.mjs.map → acorex-modules-auth-two-factor.module-CUrjDJKb.mjs.map} +1 -1
  20. package/fesm2022/{acorex-modules-auth-user-sessions.component-CMIlSHxl.mjs → acorex-modules-auth-user-sessions.component-f5tjvO2x.mjs} +2 -2
  21. package/fesm2022/{acorex-modules-auth-user-sessions.component-CMIlSHxl.mjs.map → acorex-modules-auth-user-sessions.component-f5tjvO2x.mjs.map} +1 -1
  22. package/fesm2022/acorex-modules-auth.mjs +1 -1
  23. package/fesm2022/{acorex-modules-document-management-acorex-modules-document-management-CHubrWiR.mjs → acorex-modules-document-management-acorex-modules-document-management-BUV6euwQ.mjs} +18 -382
  24. package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-BUV6euwQ.mjs.map +1 -0
  25. package/fesm2022/{acorex-modules-document-management-attachment-widget.component-DeLipvyw.mjs → acorex-modules-document-management-attachment-widget.component-y_nPA03O.mjs} +2 -2
  26. package/fesm2022/{acorex-modules-document-management-attachment-widget.component-DeLipvyw.mjs.map → acorex-modules-document-management-attachment-widget.component-y_nPA03O.mjs.map} +1 -1
  27. package/fesm2022/{acorex-modules-document-management-details-view.component-Cnh-LFjB.mjs → acorex-modules-document-management-details-view.component-CMlHf8Um.mjs} +2 -2
  28. package/fesm2022/{acorex-modules-document-management-details-view.component-Cnh-LFjB.mjs.map → acorex-modules-document-management-details-view.component-CMlHf8Um.mjs.map} +1 -1
  29. package/fesm2022/{acorex-modules-document-management-document-signature-popup.component-BHELpzzB.mjs → acorex-modules-document-management-document-signature-popup.component-Cq00rYaJ.mjs} +2 -2
  30. package/fesm2022/{acorex-modules-document-management-document-signature-popup.component-BHELpzzB.mjs.map → acorex-modules-document-management-document-signature-popup.component-Cq00rYaJ.mjs.map} +1 -1
  31. package/fesm2022/{acorex-modules-document-management-drive-choose.component-CjVfyBBA.mjs → acorex-modules-document-management-drive-choose.component-pehj7js2.mjs} +2 -2
  32. package/fesm2022/{acorex-modules-document-management-drive-choose.component-CjVfyBBA.mjs.map → acorex-modules-document-management-drive-choose.component-pehj7js2.mjs.map} +1 -1
  33. package/fesm2022/{acorex-modules-document-management-drive.component-a7AMnvvu.mjs → acorex-modules-document-management-drive.component-dvSTOy_3.mjs} +2 -2
  34. package/fesm2022/{acorex-modules-document-management-drive.component-a7AMnvvu.mjs.map → acorex-modules-document-management-drive.component-dvSTOy_3.mjs.map} +1 -1
  35. package/fesm2022/{acorex-modules-document-management-feature-definition.provider-B4hCKUul.mjs → acorex-modules-document-management-feature-definition.provider-De2RD_N_.mjs} +2 -2
  36. package/fesm2022/{acorex-modules-document-management-feature-definition.provider-B4hCKUul.mjs.map → acorex-modules-document-management-feature-definition.provider-De2RD_N_.mjs.map} +1 -1
  37. package/fesm2022/{acorex-modules-document-management-large-icons-view.component-CETjs5Az.mjs → acorex-modules-document-management-large-icons-view.component-CcIhr_aU.mjs} +2 -2
  38. package/fesm2022/{acorex-modules-document-management-large-icons-view.component-CETjs5Az.mjs.map → acorex-modules-document-management-large-icons-view.component-CcIhr_aU.mjs.map} +1 -1
  39. package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-7agAfinH.mjs → acorex-modules-document-management-large-tiles-view.component-DP4pGOCz.mjs} +2 -2
  40. package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-7agAfinH.mjs.map → acorex-modules-document-management-large-tiles-view.component-DP4pGOCz.mjs.map} +1 -1
  41. package/fesm2022/{acorex-modules-document-management-list-view.component-CMfX3G8l.mjs → acorex-modules-document-management-list-view.component-BC5vi2Cj.mjs} +2 -2
  42. package/fesm2022/{acorex-modules-document-management-list-view.component-CMfX3G8l.mjs.map → acorex-modules-document-management-list-view.component-BC5vi2Cj.mjs.map} +1 -1
  43. package/fesm2022/{acorex-modules-document-management-permission-definition.provider-v7SvdUQO.mjs → acorex-modules-document-management-permission-definition.provider-B1P5TVdF.mjs} +2 -2
  44. package/fesm2022/{acorex-modules-document-management-permission-definition.provider-v7SvdUQO.mjs.map → acorex-modules-document-management-permission-definition.provider-B1P5TVdF.mjs.map} +1 -1
  45. package/fesm2022/{acorex-modules-document-management-small-icons-view.component-BL-IoyfV.mjs → acorex-modules-document-management-small-icons-view.component-C8Gf9Ea4.mjs} +2 -2
  46. package/fesm2022/{acorex-modules-document-management-small-icons-view.component-BL-IoyfV.mjs.map → acorex-modules-document-management-small-icons-view.component-C8Gf9Ea4.mjs.map} +1 -1
  47. package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-B3QYcehJ.mjs → acorex-modules-document-management-small-tiles-view.component-Czr_jJb-.mjs} +2 -2
  48. package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-B3QYcehJ.mjs.map → acorex-modules-document-management-small-tiles-view.component-Czr_jJb-.mjs.map} +1 -1
  49. package/fesm2022/acorex-modules-document-management.mjs +1 -1
  50. package/fesm2022/acorex-modules-settings-management.mjs +13 -3
  51. package/fesm2022/acorex-modules-settings-management.mjs.map +1 -1
  52. package/fesm2022/acorex-modules-workflow-management.mjs +0 -152
  53. package/fesm2022/acorex-modules-workflow-management.mjs.map +1 -1
  54. package/package.json +6 -6
  55. package/settings-management/index.d.ts +2 -3
  56. package/fesm2022/acorex-modules-auth-acorex-modules-auth-Xhv636ad.mjs.map +0 -1
  57. package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-CHubrWiR.mjs.map +0 -1
@@ -14,7 +14,6 @@ import { AXPEntityCommandScope, createAllQueryView, AXPEntityQueryType } from '@
14
14
  import { AXTranslationService } from '@acorex/core/translation';
15
15
  import { AXPLayoutBuilderService } from '@acorex/platform/layout/builder';
16
16
  import { AXP_NAME_PROPERTY, AXP_DATA_PATH_PROPERTY } from '@acorex/platform/layout/widgets';
17
- import { AXPWorkflowTaskProvider, AXP_WORKFLOW_TASK_PROVIDER } from '@acorex/modules/task-management';
18
17
  import { AXToastService } from '@acorex/components/toast';
19
18
  import { AXPWidgetsList } from '@acorex/modules/common';
20
19
 
@@ -883,147 +882,6 @@ const AXMCommonDistributionWorkflow = {
883
882
  },
884
883
  };
885
884
 
886
- class AXMPromotionDistributionTaskProvider extends AXPWorkflowTaskProvider {
887
- constructor() {
888
- super();
889
- this.injector = inject(Injector);
890
- this.commandExecutor = inject(AXPCommandExecutor);
891
- this.entityService = inject(AXPEntityService);
892
- this.entityKey = 'ContentManagement.Promotion';
893
- }
894
- get name() {
895
- return `${this.entityKey}-distribution`;
896
- }
897
- get title() {
898
- return `${this.entityKey} Distribution`;
899
- }
900
- get icon() {
901
- return 'fa-light fa-file-pen';
902
- }
903
- /**
904
- * Retrieves a list of tasks, optionally filtered by a date range.
905
- * If a date range is provided in the options, only tasks that overlap with that range will be returned.
906
- * @param options Filtering options, primarily containing a date range.
907
- * @returns An array of filtered tasks.
908
- */
909
- async getTasks(options) {
910
- const dataAccessor = runInInjectionContext(this.injector, () => {
911
- const entityService = inject(AXPEntityService);
912
- return entityService.withEntity(this.entityKey).data();
913
- });
914
- const dataAccessorDistribution = runInInjectionContext(this.injector, () => {
915
- const entityService = inject(AXPEntityService);
916
- return entityService.withEntity(`${this.entityKey}Distribution`).data();
917
- });
918
- const baseFilter = {
919
- logic: 'and',
920
- filters: [],
921
- };
922
- baseFilter.filters?.push({
923
- field: 'stateInfo.isDistributed',
924
- operator: { type: 'equal' },
925
- value: true,
926
- });
927
- // if (options?.range?.from) {
928
- // baseFilter.filters?.push({
929
- // field: 'distributionDate',
930
- // operator: { type: 'gte' },
931
- // value: options!.range!.from,
932
- // });
933
- // }
934
- // if (options?.range?.end) {
935
- // baseFilter.filters?.push({
936
- // field: 'distributionDate',
937
- // operator: { type: 'lte' },
938
- // value: options!.range!.end,
939
- // });
940
- // }
941
- const filteredList = await dataAccessor.query({
942
- skip: options?.skip ?? 0,
943
- take: options?.take ?? 10,
944
- filter: baseFilter,
945
- });
946
- const itemsDistribution = (await dataAccessorDistribution.query({
947
- skip: options?.skip ?? 0,
948
- take: 1,
949
- filter: {
950
- logic: 'and',
951
- filters: [
952
- {
953
- field: 'distributionRefId',
954
- operator: { type: 'equal' },
955
- value: filteredList.items[0].id,
956
- },
957
- ],
958
- },
959
- })).items[0];
960
- return {
961
- items: filteredList.items.map((item) => ({
962
- id: item.id,
963
- title: `${item.title}`,
964
- startDate: itemsDistribution.auditInfo?.created?.at ?? new Date(),
965
- endDate: itemsDistribution.dueDate ?? new Date(),
966
- index: 0,
967
- status: {
968
- id: 0,
969
- title: 'Pending',
970
- },
971
- priority: 'high',
972
- reporter: {
973
- id: item.auditInfo?.created?.by?.id ?? '',
974
- type: 'user',
975
- fullName: item.auditInfo?.created?.by?.fullName ?? '',
976
- },
977
- data: item,
978
- })),
979
- total: filteredList.total,
980
- };
981
- }
982
- /**
983
- * Updates one or more tasks in the provider's list.
984
- * This method finds each task by its ID and applies the new properties from the input.
985
- * It also automatically recalculates the `allDay` flag based on the task's duration.
986
- * @param tasksToUpdate An array of task objects to update. Each object must have an `id`.
987
- * @returns An array of the tasks that were successfully updated.
988
- */
989
- async updateTasks(tasksToUpdate) {
990
- console.log(tasksToUpdate);
991
- return tasksToUpdate;
992
- }
993
- async executeCommand(command) {
994
- if (command.name === 'Distribution:Overview') {
995
- this.commandExecutor.execute(command.name, command.options);
996
- }
997
- return { success: true };
998
- }
999
- async getActions(task) {
1000
- const edit = {
1001
- title: '@workflow-management:actions.distribution.sign',
1002
- command: {
1003
- name: 'Distribution:Overview',
1004
- options: {
1005
- id: task?.id,
1006
- title: task?.title,
1007
- refId: task?.data?.id,
1008
- refType: this.entityKey,
1009
- },
1010
- },
1011
- };
1012
- return [edit];
1013
- }
1014
- async getExtraFields() {
1015
- return [];
1016
- }
1017
- async getStatuses() {
1018
- return [
1019
- { index: 0, key: 'pending', title: 'Pending' },
1020
- { index: 1, key: 'in-progress', title: 'In Progress' },
1021
- { index: 2, key: 'done', title: 'Done' },
1022
- { index: 3, key: 'canceled', title: 'Canceled' },
1023
- ];
1024
- }
1025
- }
1026
-
1027
885
  class AXPDistributionPluginModule {
1028
886
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.12", ngImport: i0, type: AXPDistributionPluginModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1029
887
  static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.12", ngImport: i0, type: AXPDistributionPluginModule, imports: [i1.AXPWorkflowModule] }); }
@@ -1049,11 +907,6 @@ class AXPDistributionPluginModule {
1049
907
  useClass: AXMEntityDistributionProvider,
1050
908
  multi: true,
1051
909
  },
1052
- {
1053
- provide: AXP_WORKFLOW_TASK_PROVIDER,
1054
- useClass: AXMPromotionDistributionTaskProvider,
1055
- multi: true,
1056
- },
1057
910
  provideCommandSetups([
1058
911
  {
1059
912
  key: 'Distribution:Overview',
@@ -1095,11 +948,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImpo
1095
948
  useClass: AXMEntityDistributionProvider,
1096
949
  multi: true,
1097
950
  },
1098
- {
1099
- provide: AXP_WORKFLOW_TASK_PROVIDER,
1100
- useClass: AXMPromotionDistributionTaskProvider,
1101
- multi: true,
1102
- },
1103
951
  provideCommandSetups([
1104
952
  {
1105
953
  key: 'Distribution:Overview',