@acorex/modules 19.3.0-next.0 → 19.3.0-next.1

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 (86) hide show
  1. package/document-management/lib/features/document-explorer/components/create-folder-dialog/create-folder-dialog.component.d.ts +4 -1
  2. package/document-management/lib/features/document-explorer/document-explorer.component.d.ts +2 -0
  3. package/document-management/lib/features/shared/document-manager.service.d.ts +2 -0
  4. package/fesm2022/{acorex-modules-document-management-acorex-modules-document-management-CI0m4lpX.mjs → acorex-modules-document-management-acorex-modules-document-management-C36haVZ_.mjs} +81 -48
  5. package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-C36haVZ_.mjs.map +1 -0
  6. package/fesm2022/{acorex-modules-document-management-create-folder-dialog.component-D8anTs3Q.mjs → acorex-modules-document-management-create-folder-dialog.component-C9YP1aFi.mjs} +33 -15
  7. package/fesm2022/acorex-modules-document-management-create-folder-dialog.component-C9YP1aFi.mjs.map +1 -0
  8. package/fesm2022/{acorex-modules-document-management-details-view.component-z05RykKt.mjs → acorex-modules-document-management-details-view.component-BFMgAxeK.mjs} +2 -2
  9. package/fesm2022/{acorex-modules-document-management-details-view.component-z05RykKt.mjs.map → acorex-modules-document-management-details-view.component-BFMgAxeK.mjs.map} +1 -1
  10. package/fesm2022/{acorex-modules-document-management-drive-choose.component-BeiXQNAw.mjs → acorex-modules-document-management-drive-choose.component-Bo-I7TN5.mjs} +2 -2
  11. package/fesm2022/{acorex-modules-document-management-drive-choose.component-BeiXQNAw.mjs.map → acorex-modules-document-management-drive-choose.component-Bo-I7TN5.mjs.map} +1 -1
  12. package/fesm2022/{acorex-modules-document-management-large-icons-view.component-DctO0SZ7.mjs → acorex-modules-document-management-large-icons-view.component-CZ-GUtnO.mjs} +2 -2
  13. package/fesm2022/{acorex-modules-document-management-large-icons-view.component-DctO0SZ7.mjs.map → acorex-modules-document-management-large-icons-view.component-CZ-GUtnO.mjs.map} +1 -1
  14. package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-CtCdVI_p.mjs → acorex-modules-document-management-large-tiles-view.component-Cw5yZ851.mjs} +2 -2
  15. package/fesm2022/{acorex-modules-document-management-large-tiles-view.component-CtCdVI_p.mjs.map → acorex-modules-document-management-large-tiles-view.component-Cw5yZ851.mjs.map} +1 -1
  16. package/fesm2022/{acorex-modules-document-management-list-view.component-Cz2wNqhM.mjs → acorex-modules-document-management-list-view.component-BPkaAGjR.mjs} +2 -2
  17. package/fesm2022/{acorex-modules-document-management-list-view.component-Cz2wNqhM.mjs.map → acorex-modules-document-management-list-view.component-BPkaAGjR.mjs.map} +1 -1
  18. package/fesm2022/{acorex-modules-document-management-rename-node-dialog.component-DB868l1X.mjs → acorex-modules-document-management-rename-node-dialog.component-DEhPxW3b.mjs} +2 -2
  19. package/fesm2022/{acorex-modules-document-management-rename-node-dialog.component-DB868l1X.mjs.map → acorex-modules-document-management-rename-node-dialog.component-DEhPxW3b.mjs.map} +1 -1
  20. package/fesm2022/{acorex-modules-document-management-small-icons-view.component-B_O5Qpmi.mjs → acorex-modules-document-management-small-icons-view.component-Cz-sHFPj.mjs} +2 -2
  21. package/fesm2022/{acorex-modules-document-management-small-icons-view.component-B_O5Qpmi.mjs.map → acorex-modules-document-management-small-icons-view.component-Cz-sHFPj.mjs.map} +1 -1
  22. package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-b2lauUIY.mjs → acorex-modules-document-management-small-tiles-view.component-C_SlJ79h.mjs} +2 -2
  23. package/fesm2022/{acorex-modules-document-management-small-tiles-view.component-b2lauUIY.mjs.map → acorex-modules-document-management-small-tiles-view.component-C_SlJ79h.mjs.map} +1 -1
  24. package/fesm2022/acorex-modules-document-management.mjs +1 -1
  25. package/fesm2022/{acorex-modules-form-template-management-acorex-modules-form-template-management-HYqIufS1.mjs → acorex-modules-form-template-management-acorex-modules-form-template-management-C3bCqH0S.mjs} +7 -7
  26. package/fesm2022/{acorex-modules-form-template-management-acorex-modules-form-template-management-HYqIufS1.mjs.map → acorex-modules-form-template-management-acorex-modules-form-template-management-C3bCqH0S.mjs.map} +1 -1
  27. package/fesm2022/{acorex-modules-form-template-management-category.entity-CLFAo0Cn.mjs → acorex-modules-form-template-management-category.entity-B8FoSfDd.mjs} +2 -2
  28. package/fesm2022/{acorex-modules-form-template-management-category.entity-CLFAo0Cn.mjs.map → acorex-modules-form-template-management-category.entity-B8FoSfDd.mjs.map} +1 -1
  29. package/fesm2022/{acorex-modules-form-template-management-setting.provider-DgHwqlhz.mjs → acorex-modules-form-template-management-setting.provider-2gDLkJ82.mjs} +2 -2
  30. package/fesm2022/{acorex-modules-form-template-management-setting.provider-DgHwqlhz.mjs.map → acorex-modules-form-template-management-setting.provider-2gDLkJ82.mjs.map} +1 -1
  31. package/fesm2022/{acorex-modules-form-template-management-template-widget-edit.component-CYAyug_g.mjs → acorex-modules-form-template-management-template-widget-edit.component-CGLJ_4tB.mjs} +2 -2
  32. package/fesm2022/{acorex-modules-form-template-management-template-widget-edit.component-CYAyug_g.mjs.map → acorex-modules-form-template-management-template-widget-edit.component-CGLJ_4tB.mjs.map} +1 -1
  33. package/fesm2022/{acorex-modules-form-template-management-template.entity-DGU1QNSN.mjs → acorex-modules-form-template-management-template.entity-Cm57FCm7.mjs} +4 -4
  34. package/fesm2022/acorex-modules-form-template-management-template.entity-Cm57FCm7.mjs.map +1 -0
  35. package/fesm2022/{acorex-modules-form-template-management-viewer-popup.component-DXJxzTfM.mjs → acorex-modules-form-template-management-viewer-popup.component-C8QVMY0f.mjs} +2 -2
  36. package/fesm2022/{acorex-modules-form-template-management-viewer-popup.component-DXJxzTfM.mjs.map → acorex-modules-form-template-management-viewer-popup.component-C8QVMY0f.mjs.map} +1 -1
  37. package/fesm2022/acorex-modules-form-template-management.mjs +1 -1
  38. package/fesm2022/acorex-modules-notification-management.mjs.map +1 -1
  39. package/fesm2022/{acorex-modules-platform-management-acorex-modules-platform-management-DNUdH0N9.mjs → acorex-modules-platform-management-acorex-modules-platform-management-C-vMSeD0.mjs} +158 -115
  40. package/fesm2022/acorex-modules-platform-management-acorex-modules-platform-management-C-vMSeD0.mjs.map +1 -0
  41. package/fesm2022/{acorex-modules-platform-management-list-version.component-D3yLcmjw.mjs → acorex-modules-platform-management-list-version.component-EHtlPye1.mjs} +2 -2
  42. package/fesm2022/acorex-modules-platform-management-list-version.component-EHtlPye1.mjs.map +1 -0
  43. package/fesm2022/{acorex-modules-platform-management-setting.provider-CQCoLwHW.mjs → acorex-modules-platform-management-setting.provider-Bbd_enhk.mjs} +2 -2
  44. package/fesm2022/acorex-modules-platform-management-setting.provider-Bbd_enhk.mjs.map +1 -0
  45. package/fesm2022/acorex-modules-platform-management.mjs +1 -1
  46. package/notification-management/lib/{components → features/components}/admin-notification-item/admin-notification-item.component.d.ts +1 -1
  47. package/notification-management/lib/{components → features/components}/admin-notification-panel/admin-notification-panel.component.d.ts +1 -1
  48. package/package.json +1 -1
  49. package/platform-management/index.d.ts +1 -1
  50. package/platform-management/lib/entities/app-term/index.d.ts +2 -2
  51. package/platform-management/lib/entities/app-version/index.d.ts +2 -2
  52. package/platform-management/lib/entities/index.d.ts +0 -1
  53. package/platform-management/lib/entities/promotion/index.d.ts +1 -1
  54. package/platform-management/lib/features/app-terms/check-terms.service.d.ts +11 -0
  55. package/platform-management/lib/{entities/app-term → features/app-terms}/components/notify-app/notify-app.component.d.ts +1 -1
  56. package/platform-management/lib/{entities/app-term → features/app-terms}/pages/list/list-terms.component.d.ts +2 -2
  57. package/platform-management/lib/{entities/check-version.d.ts → features/app-version/check-version.service.d.ts} +3 -4
  58. package/platform-management/lib/{entities → features}/app-version/components/list-versions/list-version.component.d.ts +1 -1
  59. package/platform-management/lib/{entities → features}/app-version/components/notify-app/notify-app.component.d.ts +1 -1
  60. package/platform-management/lib/{common → features/common}/index.d.ts +1 -1
  61. package/platform-management/lib/{entities → features}/promotion/components/promotion-slot/promotion-slot.component.d.ts +2 -2
  62. package/platform-management/lib/platform-management.module.d.ts +4 -3
  63. package/fesm2022/acorex-modules-document-management-acorex-modules-document-management-CI0m4lpX.mjs.map +0 -1
  64. package/fesm2022/acorex-modules-document-management-create-folder-dialog.component-D8anTs3Q.mjs.map +0 -1
  65. package/fesm2022/acorex-modules-form-template-management-template.entity-DGU1QNSN.mjs.map +0 -1
  66. package/fesm2022/acorex-modules-platform-management-acorex-modules-platform-management-DNUdH0N9.mjs.map +0 -1
  67. package/fesm2022/acorex-modules-platform-management-list-version.component-D3yLcmjw.mjs.map +0 -1
  68. package/fesm2022/acorex-modules-platform-management-setting.provider-CQCoLwHW.mjs.map +0 -1
  69. /package/notification-management/lib/{components → features/components}/admin-notification-slot/admin-notification-slot.component.d.ts +0 -0
  70. /package/platform-management/lib/{entities/app-term → features/app-terms}/pages/index.d.ts +0 -0
  71. /package/platform-management/lib/{entities/app-term → features/app-terms}/workflows/index.d.ts +0 -0
  72. /package/platform-management/lib/{entities/app-term → features/app-terms}/workflows/notify-new-term.workflow.d.ts +0 -0
  73. /package/platform-management/lib/{entities → features}/app-version/components/index.d.ts +0 -0
  74. /package/platform-management/lib/{entities → features}/app-version/components/slots/app-version-slot.component.d.ts +0 -0
  75. /package/platform-management/lib/{entities → features}/app-version/workflows/change-log.workflow.d.ts +0 -0
  76. /package/platform-management/lib/{entities → features}/app-version/workflows/index.d.ts +0 -0
  77. /package/platform-management/lib/{entities → features}/app-version/workflows/show-release-notes.workflow.d.ts +0 -0
  78. /package/platform-management/lib/{common → features/common}/common.module.d.ts +0 -0
  79. /package/platform-management/lib/{common → features/common}/entity.provider.d.ts +0 -0
  80. /package/platform-management/lib/{common → features/common}/regional/data-source.provider.d.ts +0 -0
  81. /package/platform-management/lib/{common → features/common}/regional/index.d.ts +0 -0
  82. /package/platform-management/lib/{common → features/common}/regional/language-slot/language-slot.component.d.ts +0 -0
  83. /package/platform-management/lib/{common → features/common}/regional/regional-store.service.d.ts +0 -0
  84. /package/platform-management/lib/{common → features/common}/regional/setting.keys.d.ts +0 -0
  85. /package/platform-management/lib/{common → features/common}/regional/setting.provider.d.ts +0 -0
  86. /package/platform-management/lib/{entities → features}/promotion/components/index.d.ts +0 -0
@@ -2,16 +2,19 @@ import { AXDataSource, AXValueChangedEvent } from '@acorex/components/common';
2
2
  import { AXFormComponent } from '@acorex/components/form';
3
3
  import { AXBasePageComponent } from '@acorex/components/page';
4
4
  import { AXMDocumentManagementDocumentTypeEntityModel } from '../../../../entities/document-type/document-type.types';
5
+ import { AXMDocumentExplorerNode, AXMNodeType } from '../../../drive';
5
6
  import * as i0 from "@angular/core";
6
7
  export declare class AXMCreateFolderDialog extends AXBasePageComponent {
7
8
  private driveService;
8
9
  private documentTypeService;
10
+ defaultValue?: AXMDocumentExplorerNode;
9
11
  parentId?: string;
10
12
  protected name: import("@angular/core").ModelSignal<string>;
11
13
  protected color: import("@angular/core").ModelSignal<string>;
12
14
  protected description: import("@angular/core").ModelSignal<string>;
13
- protected selectedDocumentTypes: never[];
15
+ protected selectedDocumentTypes: import("@angular/core").WritableSignal<AXMNodeType[]>;
14
16
  protected dataSource: AXDataSource<AXMDocumentManagementDocumentTypeEntityModel>;
17
+ protected ngOnInit(): void;
15
18
  protected handleValueChange(event: AXValueChangedEvent): void;
16
19
  handleSubmitButton(form: AXFormComponent): Promise<void>;
17
20
  onCancel(): void;
@@ -199,11 +199,13 @@ export declare class AXMDocumentExplorerComponent {
199
199
  protected handleContextMenuOnOpening(e: AXContextMenuOpeningEvent): Promise<void>;
200
200
  protected handleContextMenuRootOnOpening(e: AXContextMenuOpeningEvent): Promise<void>;
201
201
  protected handleContextMenuItemClick(e: AXContextMenuItemsClickEvent): Promise<void>;
202
+ protected showFolderProperty(node: AXMDocumentExplorerNode): Promise<void>;
202
203
  protected share(node: AXMDocumentExplorerNode): Promise<void>;
203
204
  protected shareWithEmail(node: AXMDocumentExplorerNode): Promise<void>;
204
205
  protected link(node: AXMDocumentExplorerNode): Promise<void>;
205
206
  protected lock(node: AXMDocumentExplorerNode): Promise<void>;
206
207
  protected unlock(node: AXMDocumentExplorerNode): Promise<void>;
208
+ protected openGalleryWithFolderId(): Promise<void>;
207
209
  protected openGallery(node: AXMDocumentExplorerNode): Promise<void>;
208
210
  protected openFile(node: AXMDocumentExplorerNode): Promise<void>;
209
211
  protected handleDownloadFile(node: AXMDocumentExplorerNode): void;
@@ -74,6 +74,7 @@ export interface AXMDocumentManagerServiceInterface {
74
74
  showLinkDialog(node: AXMDocumentExplorerNode): Promise<void>;
75
75
  showLockDialog(node: AXMDocumentExplorerNode): Promise<void>;
76
76
  showUnlockDialog(node: AXMDocumentExplorerNode): Promise<void>;
77
+ showFolderEditDialog(node: AXMDocumentExplorerNode): Promise<boolean>;
77
78
  updateFileName(node: AXMDocumentExplorerNode, name: string): Promise<AXMDocumentExplorerNode>;
78
79
  }
79
80
  /**
@@ -121,6 +122,7 @@ export declare class AXMDocumentManagerService implements AXMDocumentManagerServ
121
122
  showLinkDialog(node: AXMDocumentExplorerNode): Promise<void>;
122
123
  showLockDialog(node: AXMDocumentExplorerNode): Promise<void>;
123
124
  showUnlockDialog(node: AXMDocumentExplorerNode): Promise<void>;
125
+ showFolderEditDialog(node: AXMDocumentExplorerNode): Promise<boolean>;
124
126
  updateFileName(node: AXMDocumentExplorerNode, name: string): Promise<AXMDocumentExplorerNode>;
125
127
  /**
126
128
  * Gets the root folder based on the specified scope
@@ -3206,6 +3206,17 @@ class AXMDocumentManagerService {
3206
3206
  // Handle the unlock action with popup.data.data
3207
3207
  }
3208
3208
  }
3209
+ async showFolderEditDialog(node) {
3210
+ const comp = (await import('./acorex-modules-document-management-create-folder-dialog.component-C9YP1aFi.mjs'))
3211
+ .AXMCreateFolderDialog;
3212
+ const popup = await this.popupService.open(comp, {
3213
+ title: 't("actions.update-folder")',
3214
+ data: {
3215
+ defaultValue: node,
3216
+ },
3217
+ });
3218
+ return popup.data?.result;
3219
+ }
3209
3220
  async updateFileName(node, name) {
3210
3221
  if (node.storageType == 'physical') {
3211
3222
  return this.mapFileToNode(await this.documentService.updateOne(node.id, { name }));
@@ -3344,7 +3355,7 @@ class AXMDocumentManagerService {
3344
3355
  }
3345
3356
  }
3346
3357
  async showCreateFolderDialog(parentId) {
3347
- const comp = (await import('./acorex-modules-document-management-create-folder-dialog.component-D8anTs3Q.mjs'))
3358
+ const comp = (await import('./acorex-modules-document-management-create-folder-dialog.component-C9YP1aFi.mjs'))
3348
3359
  .AXMCreateFolderDialog;
3349
3360
  const popup = await this.popupService.open(comp, {
3350
3361
  title: 't("actions.create-folder")',
@@ -3355,7 +3366,7 @@ class AXMDocumentManagerService {
3355
3366
  return popup.data?.folder;
3356
3367
  }
3357
3368
  async moveTo(options) {
3358
- const comp = (await import('./acorex-modules-document-management-drive-choose.component-BeiXQNAw.mjs')).AXMDocumentDriveChooseComponent;
3369
+ const comp = (await import('./acorex-modules-document-management-drive-choose.component-Bo-I7TN5.mjs')).AXMDocumentDriveChooseComponent;
3359
3370
  //
3360
3371
  const popup = await this.popupService.open(comp, {
3361
3372
  title: `Choose ${options.browseMode == 'file' ? 'File' : 'Folder'}`,
@@ -3386,7 +3397,7 @@ class AXMDocumentManagerService {
3386
3397
  }
3387
3398
  }
3388
3399
  async copyTo(options) {
3389
- const comp = (await import('./acorex-modules-document-management-drive-choose.component-BeiXQNAw.mjs')).AXMDocumentDriveChooseComponent;
3400
+ const comp = (await import('./acorex-modules-document-management-drive-choose.component-Bo-I7TN5.mjs')).AXMDocumentDriveChooseComponent;
3390
3401
  //
3391
3402
  const popup = await this.popupService.open(comp, {
3392
3403
  title: `Choose ${options.browseMode == 'file' ? 'File' : 'Folder'}`,
@@ -3434,7 +3445,7 @@ class AXMDocumentManagerService {
3434
3445
  return {
3435
3446
  id: doc.id ?? '',
3436
3447
  name: doc.name,
3437
- type: 'image',
3448
+ type: doc.name.endsWith('.pdf') ? 'pdf' : 'image',
3438
3449
  url: fileInfo.url ?? '',
3439
3450
  size: doc.size.toString(),
3440
3451
  thumbnail: fileInfo.url ?? '',
@@ -3455,7 +3466,14 @@ class AXMDocumentManagerService {
3455
3466
  const documents = isVirtualFolder
3456
3467
  ? options?.folderVituralfiles ?? []
3457
3468
  : (await this.folderService.getOne(node.parentId)).documents ?? [];
3458
- const nodes = await Promise.all(documents.map((doc) => this.mapDocumentToMediaViewerData(doc)));
3469
+ const nodes = await Promise.all(documents
3470
+ .filter((item) => {
3471
+ if (!item.name)
3472
+ return false;
3473
+ const ext = item.name.split('.').pop()?.toLowerCase();
3474
+ return ext && ['jpg', 'jpeg', 'png', 'gif', 'bmp', 'webp', 'pdf'].includes(ext);
3475
+ })
3476
+ .map((doc) => this.mapDocumentToMediaViewerData(doc)));
3459
3477
  const comp = (await Promise.resolve().then(function () { return fileViewerPopup_component; }))
3460
3478
  .AXMFileViewerPopupComponent;
3461
3479
  await this.popupService.open(comp, {
@@ -3472,7 +3490,7 @@ class AXMDocumentManagerService {
3472
3490
  const file = await this.documentService.getOne(node.id);
3473
3491
  }
3474
3492
  async showRenamePopup(node) {
3475
- const comp = (await import('./acorex-modules-document-management-rename-node-dialog.component-DB868l1X.mjs'))
3493
+ const comp = (await import('./acorex-modules-document-management-rename-node-dialog.component-DEhPxW3b.mjs'))
3476
3494
  .AXMRenameNodeDialog;
3477
3495
  const popup = await this.popupService.open(comp, {
3478
3496
  title: 't("actions.rename")',
@@ -3520,7 +3538,7 @@ class AXMDocumentManagerService {
3520
3538
  return [...(await this.getAllFolders()), ...(await this.getAllFiles())];
3521
3539
  }
3522
3540
  async showChooseFileDialog(scope) {
3523
- const comp = (await import('./acorex-modules-document-management-drive-choose.component-BeiXQNAw.mjs')).AXMDocumentDriveChooseComponent;
3541
+ const comp = (await import('./acorex-modules-document-management-drive-choose.component-Bo-I7TN5.mjs')).AXMDocumentDriveChooseComponent;
3524
3542
  const result = await this.popupService.open(comp, {
3525
3543
  title: `t("actions.choose-from-drive" , scope: {"${RootConfig.config.i18n}"})`,
3526
3544
  data: {
@@ -3660,6 +3678,7 @@ class AXMDocumentManagerService {
3660
3678
  const { uploads, ...metaContext } = result.data.context;
3661
3679
  for (const u of uploads) {
3662
3680
  const fileInfo = u;
3681
+ await this.fileService.commit(u.fileId);
3663
3682
  const file = await this.documentService.insertOne({
3664
3683
  fileId: fileInfo.fileId,
3665
3684
  meta: metaContext,
@@ -4153,12 +4172,6 @@ const AXPDocumentExplorerViewModel = signalStore({ providedIn: 'root' }, withSta
4153
4172
  //#region Menu Items
4154
4173
  async getFolderAddMenuItems() {
4155
4174
  const scope = RootConfig.config.i18n;
4156
- // const documentTypes = await documentTypeService.query();
4157
- // const items = documentTypes.items.map(item => ({
4158
- // name: item.name,
4159
- // title: item.title,
4160
- // })) ?? [];
4161
- // //
4162
4175
  return [
4163
4176
  {
4164
4177
  title: await translateService.translateAsync('actions.create-folder', { scope }),
@@ -4184,17 +4197,17 @@ const AXPDocumentExplorerViewModel = signalStore({ providedIn: 'root' }, withSta
4184
4197
  },
4185
4198
  },
4186
4199
  })) ?? []),
4187
- // {
4188
- // title: await translateService.translateAsync('actions.upload-file', { scope }),
4189
- // icon: 'fa-light fa-file-arrow-up',
4190
- // command: {
4191
- // name: 'upload-file',
4192
- // options: {
4193
- // folderId: store.currentFolder()?.id,
4194
- // },
4195
- // },
4196
- // //items: items
4197
- // },
4200
+ {
4201
+ title: await translateService.translateAsync('actions.open-gallery', { scope }),
4202
+ icon: 'fa-light fa-images',
4203
+ break: true,
4204
+ command: {
4205
+ name: 'open-gallery',
4206
+ options: {
4207
+ folderId: store.currentFolder()?.id,
4208
+ },
4209
+ },
4210
+ },
4198
4211
  ];
4199
4212
  },
4200
4213
  async getFolderActionMenuItems() {
@@ -4203,14 +4216,14 @@ const AXPDocumentExplorerViewModel = signalStore({ providedIn: 'root' }, withSta
4203
4216
  name: 'refresh',
4204
4217
  title: await translateService.translateAsync('refresh'),
4205
4218
  icon: 'fa-light fa-rotate-right',
4206
- break: true,
4207
- },
4208
- {
4209
- name: 'delete',
4210
- title: await translateService.translateAsync('delete'),
4211
- color: 'danger',
4212
- icon: 'fa-light fa-trash',
4219
+ // break: true,
4213
4220
  },
4221
+ // {
4222
+ // name: 'delete',
4223
+ // title: await translateService.translateAsync('delete'),
4224
+ // color: 'danger',
4225
+ // icon: 'fa-light fa-trash',
4226
+ // },
4214
4227
  ];
4215
4228
  },
4216
4229
  //#endregion
@@ -4235,12 +4248,12 @@ class AXMDocumentExplorerComponent {
4235
4248
  this.showContextMenu = input(true);
4236
4249
  this.view = signal(null);
4237
4250
  this.viewMap = {
4238
- list: async () => (await import('./acorex-modules-document-management-list-view.component-Cz2wNqhM.mjs')).AXMDocumentExplorerListViewComponent,
4239
- 'small-tiles': async () => (await import('./acorex-modules-document-management-small-tiles-view.component-b2lauUIY.mjs')).AXMDocumentExplorerSmallTilesViewComponent,
4240
- 'large-tiles': async () => (await import('./acorex-modules-document-management-large-tiles-view.component-CtCdVI_p.mjs')).AXMDocumentExplorerLargeTilesViewComponent,
4241
- details: async () => (await import('./acorex-modules-document-management-details-view.component-z05RykKt.mjs')).AXMDocumentExplorerDetailsViewComponent,
4242
- 'large-icons': async () => (await import('./acorex-modules-document-management-large-icons-view.component-DctO0SZ7.mjs')).AXMDocumentExplorerLargeIconsViewComponent,
4243
- 'small-icons': async () => (await import('./acorex-modules-document-management-small-icons-view.component-B_O5Qpmi.mjs')).AXMDocumentExplorerSmallIconsViewComponent,
4251
+ list: async () => (await import('./acorex-modules-document-management-list-view.component-BPkaAGjR.mjs')).AXMDocumentExplorerListViewComponent,
4252
+ 'small-tiles': async () => (await import('./acorex-modules-document-management-small-tiles-view.component-C_SlJ79h.mjs')).AXMDocumentExplorerSmallTilesViewComponent,
4253
+ 'large-tiles': async () => (await import('./acorex-modules-document-management-large-tiles-view.component-Cw5yZ851.mjs')).AXMDocumentExplorerLargeTilesViewComponent,
4254
+ details: async () => (await import('./acorex-modules-document-management-details-view.component-BFMgAxeK.mjs')).AXMDocumentExplorerDetailsViewComponent,
4255
+ 'large-icons': async () => (await import('./acorex-modules-document-management-large-icons-view.component-CZ-GUtnO.mjs')).AXMDocumentExplorerLargeIconsViewComponent,
4256
+ 'small-icons': async () => (await import('./acorex-modules-document-management-small-icons-view.component-Cz-sHFPj.mjs')).AXMDocumentExplorerSmallIconsViewComponent,
4244
4257
  };
4245
4258
  this.#effect = effect(() => {
4246
4259
  if (this.vm.loadingFolderId() == null) {
@@ -4307,12 +4320,12 @@ class AXMDocumentExplorerComponent {
4307
4320
  text: 'Upload',
4308
4321
  icon: 'fa-light fa-file-arrow-up',
4309
4322
  break: true,
4310
- items: node?.documentTypes?.map((type) => ({
4323
+ items: node?.documentTypes?.map((type, index, array) => ({
4311
4324
  name: `upload.${type.name}`,
4312
4325
  text: type.title,
4313
4326
  // icon: type.icon,
4314
4327
  icon: 'fa-light fa-file-arrow-up',
4315
- break: true,
4328
+ break: index !== array.length - 1,
4316
4329
  data: {
4317
4330
  node,
4318
4331
  documentType: type,
@@ -4433,6 +4446,7 @@ class AXMDocumentExplorerComponent {
4433
4446
  text: m.title,
4434
4447
  }));
4435
4448
  e.items.push(...mappedItems);
4449
+ e.items[e.items.length - 1].break = false;
4436
4450
  }
4437
4451
  async handleContextMenuItemClick(e) {
4438
4452
  const node = e.item.data;
@@ -4444,7 +4458,12 @@ class AXMDocumentExplorerComponent {
4444
4458
  this.openFile(node);
4445
4459
  break;
4446
4460
  case 'open-gallery':
4447
- this.openGallery(node);
4461
+ if (e.item.data.folderId != null) {
4462
+ this.openGalleryWithFolderId();
4463
+ }
4464
+ else {
4465
+ this.openGallery(node);
4466
+ }
4448
4467
  break;
4449
4468
  case 'download':
4450
4469
  this.handleDownloadFile(node);
@@ -4468,6 +4487,9 @@ class AXMDocumentExplorerComponent {
4468
4487
  case 'rename':
4469
4488
  this.renameNode(node);
4470
4489
  break;
4490
+ case 'properties':
4491
+ this.showFolderProperty(node);
4492
+ break;
4471
4493
  case 'delete':
4472
4494
  this.vm.deleteNodes([node]);
4473
4495
  break;
@@ -4501,6 +4523,11 @@ class AXMDocumentExplorerComponent {
4501
4523
  }
4502
4524
  }
4503
4525
  //#endregion
4526
+ async showFolderProperty(node) {
4527
+ if (await this.driveService.showFolderEditDialog(node)) {
4528
+ await this.vm.refresh();
4529
+ }
4530
+ }
4504
4531
  async share(node) {
4505
4532
  await this.driveService.showShareDialog(node);
4506
4533
  }
@@ -4516,6 +4543,11 @@ class AXMDocumentExplorerComponent {
4516
4543
  async unlock(node) {
4517
4544
  await this.driveService.showUnlockDialog(node);
4518
4545
  }
4546
+ async openGalleryWithFolderId() {
4547
+ const folder = this.vm.currentFolder();
4548
+ const files = folder.children.filter((item) => item.type === 'file');
4549
+ await this.driveService.showFileViewerPopup(files[0]);
4550
+ }
4519
4551
  async openGallery(node) {
4520
4552
  await this.driveService.showFileViewerPopup(node, {
4521
4553
  folderVituralfiles: this.vm.currentFolderContents().files,
@@ -4760,7 +4792,6 @@ class AXMFileViewerPopupComponent extends AXBasePageComponent {
4760
4792
  this.index = 0;
4761
4793
  this.mediaViewer = viewChild(AXMediaViewerContainerComponent);
4762
4794
  this.f = afterNextRender(() => {
4763
- console.log(this.mediaViewer());
4764
4795
  setTimeout(() => {
4765
4796
  this.mediaViewer()?.goToIndex(this.index, 0);
4766
4797
  });
@@ -4775,11 +4806,11 @@ class AXMFileViewerPopupComponent extends AXBasePageComponent {
4775
4806
  this.close();
4776
4807
  }
4777
4808
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFileViewerPopupComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
4778
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.0.3", type: AXMFileViewerPopupComponent, isStandalone: true, selector: "ng-component", viewQueries: [{ propertyName: "mediaViewer", first: true, predicate: AXMediaViewerContainerComponent, descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<ax-content>\n <ax-media-viewer-container #c [dataArray]=\"nodes\">\n <ax-header class=\"ax-p-2\">\n <ax-prefix>\n <ax-file-info></ax-file-info>\n </ax-prefix>\n <ax-suffix>\n <ax-fullscreen-button></ax-fullscreen-button>\n </ax-suffix>\n </ax-header>\n <ax-prefix>\n <ax-button (click)=\"c.next()\">\n <ax-icon class=\"ax-icon ax-icon-chevron-right\"> </ax-icon>\n </ax-button>\n </ax-prefix>\n <ax-suffix>\n <ax-button (click)=\"c.prev()\">\n <ax-icon class=\"ax-icon ax-icon-chevron-left\"> </ax-icon>\n </ax-button>\n </ax-suffix>\n </ax-media-viewer-container>\n</ax-content>\n<ax-footer>\n <ax-suffix>\n <ax-button [text]=\"'close'\" (click)=\"onClose()\" />\n </ax-suffix>\n</ax-footer>\n", dependencies: [{ 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: "component", type: i2$1.AXDecoratorFullScreenButtonComponent, selector: "ax-fullscreen-button" }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i2$3.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: AXMediaViewerModule }, { kind: "component", type: i3$2.AXMediaViewerContainerComponent, selector: "ax-media-viewer-container", inputs: ["dataArray", "thumbnail"] }, { kind: "component", type: i3$2.AXFileInfoComponent, selector: "ax-file-info" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
4809
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.0.3", type: AXMFileViewerPopupComponent, isStandalone: true, selector: "ng-component", viewQueries: [{ propertyName: "mediaViewer", first: true, predicate: AXMediaViewerContainerComponent, descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<ax-content>\n <ax-media-viewer-container #c [dataArray]=\"nodes\">\n <ax-header>\n <ax-prefix>\n <ax-file-info></ax-file-info>\n </ax-prefix>\n <ax-suffix>\n <ax-fullscreen-button></ax-fullscreen-button>\n </ax-suffix>\n </ax-header>\n <ax-prefix>\n <ax-button (click)=\"c.next()\">\n <ax-icon class=\"ax-icon ax-icon-chevron-right\"> </ax-icon>\n </ax-button>\n </ax-prefix>\n <ax-suffix>\n <ax-button (click)=\"c.prev()\">\n <ax-icon class=\"ax-icon ax-icon-chevron-left\"> </ax-icon>\n </ax-button>\n </ax-suffix>\n </ax-media-viewer-container>\n</ax-content>\n<ax-footer>\n <ax-suffix>\n <ax-button [text]=\"'close'\" (click)=\"onClose()\" />\n </ax-suffix>\n</ax-footer>\n", dependencies: [{ 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: "component", type: i2$1.AXDecoratorFullScreenButtonComponent, selector: "ax-fullscreen-button" }, { kind: "ngmodule", type: AXButtonModule }, { kind: "component", type: i2$3.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: AXMediaViewerModule }, { kind: "component", type: i3$2.AXMediaViewerContainerComponent, selector: "ax-media-viewer-container", inputs: ["dataArray", "thumbnail"] }, { kind: "component", type: i3$2.AXFileInfoComponent, selector: "ax-file-info" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
4779
4810
  }
4780
4811
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImport: i0, type: AXMFileViewerPopupComponent, decorators: [{
4781
4812
  type: Component,
4782
- args: [{ changeDetection: ChangeDetectionStrategy.OnPush, imports: [AXDecoratorModule, AXButtonModule, AXMediaViewerModule], template: "<ax-content>\n <ax-media-viewer-container #c [dataArray]=\"nodes\">\n <ax-header class=\"ax-p-2\">\n <ax-prefix>\n <ax-file-info></ax-file-info>\n </ax-prefix>\n <ax-suffix>\n <ax-fullscreen-button></ax-fullscreen-button>\n </ax-suffix>\n </ax-header>\n <ax-prefix>\n <ax-button (click)=\"c.next()\">\n <ax-icon class=\"ax-icon ax-icon-chevron-right\"> </ax-icon>\n </ax-button>\n </ax-prefix>\n <ax-suffix>\n <ax-button (click)=\"c.prev()\">\n <ax-icon class=\"ax-icon ax-icon-chevron-left\"> </ax-icon>\n </ax-button>\n </ax-suffix>\n </ax-media-viewer-container>\n</ax-content>\n<ax-footer>\n <ax-suffix>\n <ax-button [text]=\"'close'\" (click)=\"onClose()\" />\n </ax-suffix>\n</ax-footer>\n" }]
4813
+ args: [{ changeDetection: ChangeDetectionStrategy.OnPush, imports: [AXDecoratorModule, AXButtonModule, AXMediaViewerModule], template: "<ax-content>\n <ax-media-viewer-container #c [dataArray]=\"nodes\">\n <ax-header>\n <ax-prefix>\n <ax-file-info></ax-file-info>\n </ax-prefix>\n <ax-suffix>\n <ax-fullscreen-button></ax-fullscreen-button>\n </ax-suffix>\n </ax-header>\n <ax-prefix>\n <ax-button (click)=\"c.next()\">\n <ax-icon class=\"ax-icon ax-icon-chevron-right\"> </ax-icon>\n </ax-button>\n </ax-prefix>\n <ax-suffix>\n <ax-button (click)=\"c.prev()\">\n <ax-icon class=\"ax-icon ax-icon-chevron-left\"> </ax-icon>\n </ax-button>\n </ax-suffix>\n </ax-media-viewer-container>\n</ax-content>\n<ax-footer>\n <ax-suffix>\n <ax-button [text]=\"'close'\" (click)=\"onClose()\" />\n </ax-suffix>\n</ax-footer>\n" }]
4783
4814
  }] });
4784
4815
 
4785
4816
  var fileViewerPopup_component = /*#__PURE__*/Object.freeze({
@@ -4962,12 +4993,14 @@ class AXMDocumentDriveComponent extends AXPBasePageComponent {
4962
4993
  },
4963
4994
  ];
4964
4995
  }
4996
+ const addItemItems = await this.vm.getFolderAddMenuItems();
4997
+ addItemItems[addItemItems.length - 1].break = false;
4965
4998
  return [
4966
4999
  {
4967
5000
  title: 't("add-item")',
4968
5001
  icon: 'fa-light fa-plus',
4969
5002
  color: 'primary',
4970
- items: await this.vm.getFolderAddMenuItems(),
5003
+ items: addItemItems,
4971
5004
  },
4972
5005
  ];
4973
5006
  }
@@ -5034,10 +5067,9 @@ class AXMDocumentDriveComponent extends AXPBasePageComponent {
5034
5067
  this.vm.refresh();
5035
5068
  }
5036
5069
  break;
5037
- case 'upload-file':
5070
+ case 'open-gallery':
5038
5071
  if (folderId) {
5039
- await this.driveService.uploadFileByType(folderId, '37650cc4-074d-4334-ad36-d5ee1c341632');
5040
- this.vm.refresh();
5072
+ await this.driveService.showFileViewerPopup(this.vm.currentFolder().children[0]);
5041
5073
  }
5042
5074
  break;
5043
5075
  default:
@@ -5156,6 +5188,7 @@ class AXMDocumentAttachmentWidgetEditComponent extends AXPWidgetComponent {
5156
5188
  const files = this.vm.files();
5157
5189
  for (const file of files) {
5158
5190
  if (file.fileId && file.storageType == 'virtual') {
5191
+ //TODO: Check logic if correct or not
5159
5192
  if (file.fileId && file.fileId.startsWith('http')) {
5160
5193
  this.fileStorageService.commit(file.fileId);
5161
5194
  }
@@ -5601,4 +5634,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.0.3", ngImpor
5601
5634
  */
5602
5635
 
5603
5636
  export { AXMDocumentManagerService as A, AXMFolderServiceImpl as B, AXMEntityProvider as C, AXMMenuProvider as D, AXMSearchCommandProvider as E, AXMSettingProvider as F, RootConfig as R, AXMDocumentTypeService as a, AXPDocumentExplorerViewModel as b, AXMDocumentExplorerComponent as c, AXMFolderPathBreadcrumbsComponent as d, AXMDocumentManagementModule as e, documentFactory as f, AXMDocumentManagementDocumentEntityModule as g, AXMDocumentService as h, AXMDocumentServiceImpl as i, documentTypeFactory as j, AXMDocumentManagementDocumentTypeEntityModule as k, AXMDocumentTypeServiceImpl as l, documentTypeMetaDefinitionfactory as m, AXMDocumentManagementDocumentTypeMetaDefinitionEntityModule as n, AXMDocumentManagementDocumentTypeMetaDefinitionEntityService as o, AXMDocumentManagementDocumentTypeMetaDefinitionEntityServiceImpl as p, documentTypeMetaValueFactory as q, AXMDocumentManagementDocumentTypeMetaValueEntityModule as r, AXMDocumentManagementDocumentTypeMetaValueEntityService as s, AXMDocumentManagementDocumentTypeMetaValueEntityServiceImpl as t, documentTypeStatusDefinitionFactory as u, AXMDocumentManagementDocumentTypeStatusDefinitionEntityModule as v, AXMDocumentManagementDocumentTypeStatusDefinitionEntityService as w, AXMDocumentManagementDocumentTypeStatusDefinitionEntityServiceImpl as x, folderFactory as y, AXMFolderService as z };
5604
- //# sourceMappingURL=acorex-modules-document-management-acorex-modules-document-management-CI0m4lpX.mjs.map
5637
+ //# sourceMappingURL=acorex-modules-document-management-acorex-modules-document-management-C36haVZ_.mjs.map