@acorex-platform/module-document-management-client 0.0.38 → 0.0.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/{acorex-platform-module-document-management-client-acorex-platform-module-document-management-client-DHcNgw3P.mjs → acorex-platform-module-document-management-client-acorex-platform-module-document-management-client-DhDRtALE.mjs} +477 -163
- package/fesm2022/acorex-platform-module-document-management-client-acorex-platform-module-document-management-client-DhDRtALE.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-document-management-client-attachment-view-skeleton.component-lm3X8cQr.mjs → acorex-platform-module-document-management-client-attachment-view-skeleton.component-Dvvp7Dje.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-attachment-view-skeleton.component-lm3X8cQr.mjs.map → acorex-platform-module-document-management-client-attachment-view-skeleton.component-Dvvp7Dje.mjs.map} +1 -1
- package/fesm2022/{acorex-platform-module-document-management-client-attachment-widget.component-nGSM4SLU.mjs → acorex-platform-module-document-management-client-attachment-widget.component-DVm7a1d2.mjs} +5 -4
- package/fesm2022/acorex-platform-module-document-management-client-attachment-widget.component-DVm7a1d2.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entities-document-shortcut.mjs +20 -0
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entities-document-shortcut.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entities-document-type.mjs +65 -10
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entities-document-type.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entities-document-version.mjs +270 -0
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entities-document-version.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entities-document.mjs +61 -1
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entities-document.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entities-folder.mjs +21 -0
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entities-folder.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-document-management-client-contracts-entity-catalog-acorex-platform-module-document-management-client-contracts-entity-catalog-Bl6_lO9-.mjs → acorex-platform-module-document-management-client-contracts-entity-catalog-acorex-platform-module-document-management-client-contracts-entity-catalog-BxwUMlCE.mjs} +12 -5
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entity-catalog-acorex-platform-module-document-management-client-contracts-entity-catalog-BxwUMlCE.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-document-management-client-contracts-entity-catalog-document-shortcut.entity-BpGBX1CD.mjs → acorex-platform-module-document-management-client-contracts-entity-catalog-document-shortcut.entity-D-hEBLFT.mjs} +16 -2
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entity-catalog-document-shortcut.entity-D-hEBLFT.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-document-management-client-contracts-entity-catalog-document-type.entity-D0-wHSOd.mjs → acorex-platform-module-document-management-client-contracts-entity-catalog-document-type.entity-CBMUwrc-.mjs} +61 -12
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entity-catalog-document-type.entity-CBMUwrc-.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entity-catalog-document-version.entity-hATC_iAQ.mjs +200 -0
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entity-catalog-document-version.entity-hATC_iAQ.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-document-management-client-contracts-entity-catalog-document.entity-BB3250Gc.mjs → acorex-platform-module-document-management-client-contracts-entity-catalog-document.entity-DOvhTOtO.mjs} +57 -3
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entity-catalog-document.entity-DOvhTOtO.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-document-management-client-contracts-entity-catalog-folder.entity-BWplP1j6.mjs → acorex-platform-module-document-management-client-contracts-entity-catalog-folder.entity-cNSFyJoY.mjs} +17 -2
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entity-catalog-folder.entity-cNSFyJoY.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entity-catalog.mjs +1 -1
- package/fesm2022/acorex-platform-module-document-management-client-contracts.mjs +91 -1
- package/fesm2022/acorex-platform-module-document-management-client-contracts.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-document-management-client-distribute-document.command-Bw6xDrJ4.mjs +445 -0
- package/fesm2022/acorex-platform-module-document-management-client-distribute-document.command-Bw6xDrJ4.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-document-management-client-distribute-document.command.util-Bnw0rh94.mjs +78 -0
- package/fesm2022/acorex-platform-module-document-management-client-distribute-document.command.util-Bnw0rh94.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-document-management-client-drive-choose.component-ByxmDInD.mjs → acorex-platform-module-document-management-client-drive-choose.component-BHiNuDvr.mjs} +17 -6
- package/fesm2022/acorex-platform-module-document-management-client-drive-choose.component-BHiNuDvr.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-document-management-client-large-icons-view-skeleton.component-B64PFFtO.mjs → acorex-platform-module-document-management-client-large-icons-view-skeleton.component-DmYeUizg.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-large-icons-view-skeleton.component-B64PFFtO.mjs.map → acorex-platform-module-document-management-client-large-icons-view-skeleton.component-DmYeUizg.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-document-management-client-large-icons-view.component-Dx95E_1P.mjs +31 -0
- package/fesm2022/acorex-platform-module-document-management-client-large-icons-view.component-Dx95E_1P.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-document-management-client-large-tiles-view.component-VNDRhDNx.mjs +36 -0
- package/fesm2022/acorex-platform-module-document-management-client-large-tiles-view.component-VNDRhDNx.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-document-management-client-list-view-skeleton.component-K22Zof-0.mjs → acorex-platform-module-document-management-client-list-view-skeleton.component-C9rbuY5b.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-list-view-skeleton.component-K22Zof-0.mjs.map → acorex-platform-module-document-management-client-list-view-skeleton.component-C9rbuY5b.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-document-management-client-list-view.component-yHeNWSJC.mjs +31 -0
- package/fesm2022/acorex-platform-module-document-management-client-list-view.component-yHeNWSJC.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-document-management-client-local-entities.mjs +1 -0
- package/fesm2022/acorex-platform-module-document-management-client-local-entities.mjs.map +1 -1
- package/fesm2022/{acorex-platform-module-document-management-client-open-document.command-Deqs3cEg.mjs → acorex-platform-module-document-management-client-open-document.command-By0k8BgV.mjs} +27 -14
- package/fesm2022/acorex-platform-module-document-management-client-open-document.command-By0k8BgV.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-document-management-client-sign-distributed-document.command-DpQ-Un7q.mjs +124 -0
- package/fesm2022/acorex-platform-module-document-management-client-sign-distributed-document.command-DpQ-Un7q.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-document-management-client-small-icons-view-skeleton.component-BFuFFUax.mjs → acorex-platform-module-document-management-client-small-icons-view-skeleton.component-d0LTdcBY.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-small-icons-view-skeleton.component-BFuFFUax.mjs.map → acorex-platform-module-document-management-client-small-icons-view-skeleton.component-d0LTdcBY.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-document-management-client-small-icons-view.component-CoEYTcd9.mjs +31 -0
- package/fesm2022/acorex-platform-module-document-management-client-small-icons-view.component-CoEYTcd9.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-document-management-client-small-tiles-view-skeleton.component-6EgbuXTv.mjs → acorex-platform-module-document-management-client-small-tiles-view-skeleton.component-rZAAx-ns.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-small-tiles-view-skeleton.component-6EgbuXTv.mjs.map → acorex-platform-module-document-management-client-small-tiles-view-skeleton.component-rZAAx-ns.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-document-management-client-small-tiles-view.component-C4wnLgWR.mjs +36 -0
- package/fesm2022/acorex-platform-module-document-management-client-small-tiles-view.component-C4wnLgWR.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-document-management-client-upload-document.command-D6J57Ha5.mjs → acorex-platform-module-document-management-client-upload-document.command-JDYYMckB.mjs} +2 -2
- package/fesm2022/{acorex-platform-module-document-management-client-upload-document.command-D6J57Ha5.mjs.map → acorex-platform-module-document-management-client-upload-document.command-JDYYMckB.mjs.map} +1 -1
- package/fesm2022/acorex-platform-module-document-management-client.mjs +1 -1
- package/package.json +6 -2
- package/types/acorex-platform-module-document-management-client-contracts-entities-document-version.d.ts +8 -0
- package/types/acorex-platform-module-document-management-client-contracts.d.ts +85 -4
- package/types/acorex-platform-module-document-management-client.d.ts +98 -7
- package/fesm2022/acorex-platform-module-document-management-client-acorex-platform-module-document-management-client-DHcNgw3P.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-document-management-client-attachment-widget.component-nGSM4SLU.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entity-catalog-acorex-platform-module-document-management-client-contracts-entity-catalog-Bl6_lO9-.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entity-catalog-document-shortcut.entity-BpGBX1CD.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entity-catalog-document-type.entity-D0-wHSOd.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entity-catalog-document.entity-BB3250Gc.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-document-management-client-contracts-entity-catalog-folder.entity-BWplP1j6.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-document-management-client-drive-choose.component-ByxmDInD.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-document-management-client-large-icons-view.component-CBk1WOVb.mjs +0 -30
- package/fesm2022/acorex-platform-module-document-management-client-large-icons-view.component-CBk1WOVb.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-document-management-client-large-tiles-view.component-m-UkV_QT.mjs +0 -35
- package/fesm2022/acorex-platform-module-document-management-client-large-tiles-view.component-m-UkV_QT.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-document-management-client-list-view.component-CVF0Lkii.mjs +0 -30
- package/fesm2022/acorex-platform-module-document-management-client-list-view.component-CVF0Lkii.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-document-management-client-open-document.command-Deqs3cEg.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-document-management-client-small-icons-view.component-5XaGmpoN.mjs +0 -30
- package/fesm2022/acorex-platform-module-document-management-client-small-icons-view.component-5XaGmpoN.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-document-management-client-small-tiles-view.component-07tFnkqV.mjs +0 -35
- package/fesm2022/acorex-platform-module-document-management-client-small-tiles-view.component-07tFnkqV.mjs.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-document-management-client-contracts-entity-catalog-acorex-platform-module-document-management-client-contracts-entity-catalog-BxwUMlCE.mjs","sources":["../../../../libs/modules/document-management/contracts/src/root-config.ts","../../../../libs/modules/document-management/contracts/src/entity-catalog.ts","../../../../libs/modules/document-management/contracts/src/acorex-platform-module-document-management-client-contracts-entity-catalog.ts"],"sourcesContent":["const config = {\n i18n: 'document-management',\n module: 'DocumentManagement',\n};\nexport const RootConfig = {\n config,\n module: {\n module: config.module,\n name: config.module,\n title: `@${config.i18n}:module.title`,\n icon: 'fa-light fa-books',\n },\n entities: {\n folder: {\n name: 'Folder',\n title: `@${config.i18n}:entities.folder.title`,\n titlePlural: `@${config.i18n}:entities.folder.title-plural`,\n icon: 'fa-light fa-folder',\n },\n document: {\n name: 'Document',\n title: `@${config.i18n}:entities.document.title`,\n titlePlural: `@${config.i18n}:entities.document.title-plural`,\n icon: 'fa-light fa-file',\n },\n documentType: {\n name: 'DocumentType',\n title: `@${config.i18n}:entities.document-type.title`,\n titlePlural: `@${config.i18n}:entities.document-type.title-plural`,\n icon: 'fa-light fa-books',\n },\n documentShortcut: {\n name: 'DocumentShortcut',\n title: `@${config.i18n}:entities.document-shortcut.title`,\n titlePlural: `@${config.i18n}:entities.document-shortcut.title-plural`,\n icon: 'fa-light fa-up-right-from-square',\n },\n documentVersion: {\n name: 'DocumentVersion',\n title: `@${config.i18n}:entities.document-version.title`,\n titlePlural: `@${config.i18n}:entities.document-version.title-plural`,\n icon: 'fa-light fa-code-branch',\n },\n },\n queries: {\n dashboard: {\n documentsKpi: `${config.module}:Dashboard:DocumentsKpi`,\n },\n reports: {\n getDocumentsByType: `${config.module}:Reports:GetDocumentsByType`,\n getDocumentExpiration: `${config.module}:Reports:GetDocumentExpiration`,\n },\n },\n /**\n * Daily document expiration digest (BackgroundJobSchedule → NotifyRun).\n * One combined email/in-app per recipient per scoped ref (employee / tenant / project),\n * listing every currently expired or near-expiry document in that scope.\n * Template id aligns with AXM_TEXT_TEMPLATE_IDS.documentExpired.\n */\n documentExpirationNotify: {\n providerKey: 'document-management',\n defaultCron: '0 0 * * *',\n templateId: 'c7100009-0001-4111-b111-090909090909',\n tenantRoleNames: ['admin', 'safety-manager'] as const,\n },\n} as const;\n","//#region ----- Imports -----\n\nimport type { AXPLocalEntityCatalog } from '@acorex-platform/framework-shared/entity';\n\nimport { RootConfig } from './root-config';\n\n//#endregion\n\n//#region ----- Local entity catalog -----\n\n/**\n * Lazy per-entity layout factories. Do not re-export from the contracts barrel\n * so RootConfig imports stay light. Server seed and client `local-entities`\n * consume this catalog explicitly.\n */\nexport const documentManagementLocalEntityCatalog: AXPLocalEntityCatalog = {\n moduleName: RootConfig.module.name,\n loaders: {\n [RootConfig.entities.document.name]: () =>\n import('./entities/document/document.entity.js').then((m) => m.documentEntityFactory()),\n [RootConfig.entities.documentShortcut.name]: () =>\n import('./entities/document-shortcut/document-shortcut.entity.js').then((m) => m.documentShortcutEntityFactory()),\n [RootConfig.entities.documentType.name]: () =>\n import('./entities/document-type/document-type.entity.js').then((m) => m.documentTypeFactory()),\n [RootConfig.entities.documentVersion.name]: () =>\n import('./entities/document-version/document-version.entity.js').then((m) => m.documentVersionEntityFactory()),\n [RootConfig.entities.folder.name]: () =>\n import('./entities/folder/folder.entity.js').then((m) => m.folderEntityFactory()),\n },\n};\n\n//#endregion\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './entity-catalog';\n"],"names":[],"mappings":"AAAA,MAAM,MAAM,GAAG;AACb,IAAA,IAAI,EAAE,qBAAqB;AAC3B,IAAA,MAAM,EAAE,oBAAoB;CAC7B;AACM,MAAM,UAAU,GAAG;IACxB,MAAM;AACN,IAAA,MAAM,EAAE;QACN,MAAM,EAAE,MAAM,CAAC,MAAM;QACrB,IAAI,EAAE,MAAM,CAAC,MAAM;AACnB,QAAA,KAAK,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,aAAA,CAAe;AACrC,QAAA,IAAI,EAAE,mBAAmB;AAC1B,KAAA;AACD,IAAA,QAAQ,EAAE;AACR,QAAA,MAAM,EAAE;AACN,YAAA,IAAI,EAAE,QAAQ;AACd,YAAA,KAAK,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,sBAAA,CAAwB;AAC9C,YAAA,WAAW,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,6BAAA,CAA+B;AAC3D,YAAA,IAAI,EAAE,oBAAoB;AAC3B,SAAA;AACD,QAAA,QAAQ,EAAE;AACR,YAAA,IAAI,EAAE,UAAU;AAChB,YAAA,KAAK,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,wBAAA,CAA0B;AAChD,YAAA,WAAW,EAAE,CAAA,CAAA,EAAI,MAAM,CAAC,IAAI,CAAA,+BAAA,CAAiC;AAC7D,YAAA,IAAI,EAAE,kBAAkB;AACzB,SAAA;AACD,QAAA,YAAY,EAAE;AACZ,YAAA,IAAI,EAAE,cAAc;AACpB,YAAA,KAAK,EAAE,CAAA,CAAA,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,KAAA;;;AChEH;AAMA;AAEA;AAEA;;;;AAIG;AACI,MAAM,oCAAoC,GAA0B;AACzE,IAAA,UAAU,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAClC,IAAA,OAAO,EAAE;AACP,QAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,GAAG,MACnC,OAAO,2GAAwC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,qBAAqB,EAAE,CAAC;AACzF,QAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,gBAAgB,CAAC,IAAI,GAAG,MAC3C,OAAO,oHAA0D,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,6BAA6B,EAAE,CAAC;AACnH,QAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,YAAY,CAAC,IAAI,GAAG,MACvC,OAAO,gHAAkD,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,mBAAmB,EAAE,CAAC;AACjG,QAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,eAAe,CAAC,IAAI,GAAG,MAC1C,OAAO,mHAAwD,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,4BAA4B,EAAE,CAAC;AAChH,QAAA,CAAC,UAAU,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,GAAG,MACjC,OAAO,yGAAoC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,mBAAmB,EAAE,CAAC;AACpF,KAAA;;AAGH;;AC/BA;;AAEG;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
|
-
import { R as RootConfig } from './acorex-platform-module-document-management-client-contracts-entity-catalog-acorex-platform-module-document-management-client-contracts-entity-catalog-
|
|
2
|
+
import { R as RootConfig } from './acorex-platform-module-document-management-client-contracts-entity-catalog-acorex-platform-module-document-management-client-contracts-entity-catalog-BxwUMlCE.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Entity definition for DocumentShortcut so Postgres/JQL persist shortcut fields.
|
|
@@ -10,6 +10,20 @@ async function documentShortcutEntityFactory() {
|
|
|
10
10
|
module: RootConfig.module.name,
|
|
11
11
|
name: RootConfig.entities.documentShortcut.name,
|
|
12
12
|
title: RootConfig.entities.documentShortcut.title,
|
|
13
|
+
searchTags: [
|
|
14
|
+
'document-shortcut',
|
|
15
|
+
'shortcut',
|
|
16
|
+
'drive-shortcut',
|
|
17
|
+
'folder-shortcut',
|
|
18
|
+
'link',
|
|
19
|
+
'target-document',
|
|
20
|
+
'target-folder',
|
|
21
|
+
'document-explorer',
|
|
22
|
+
'میانبر',
|
|
23
|
+
'میانبرها',
|
|
24
|
+
'پوشه',
|
|
25
|
+
'سند',
|
|
26
|
+
],
|
|
13
27
|
parentKey: 'folderId',
|
|
14
28
|
plugins: [{ name: 'cache', options: { ttlMs: 120_000 } }],
|
|
15
29
|
formats: {
|
|
@@ -87,4 +101,4 @@ async function documentShortcutEntityFactory() {
|
|
|
87
101
|
}
|
|
88
102
|
|
|
89
103
|
export { documentShortcutEntityFactory };
|
|
90
|
-
//# sourceMappingURL=acorex-platform-module-document-management-client-contracts-entity-catalog-document-shortcut.entity-
|
|
104
|
+
//# sourceMappingURL=acorex-platform-module-document-management-client-contracts-entity-catalog-document-shortcut.entity-D-hEBLFT.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-document-management-client-contracts-entity-catalog-document-shortcut.entity-D-hEBLFT.mjs","sources":["../../../../libs/modules/document-management/contracts/src/entities/document-shortcut/document-shortcut.entity.ts"],"sourcesContent":["import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity } from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\n\n/**\n * Entity definition for DocumentShortcut so Postgres/JQL persist shortcut fields.\n */\nexport async function documentShortcutEntityFactory(): Promise<AXPEntity | null> {\n const i18n = RootConfig.config.i18n;\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.documentShortcut.name,\n title: RootConfig.entities.documentShortcut.title,\n searchTags: [\n 'document-shortcut',\n 'shortcut',\n 'drive-shortcut',\n 'folder-shortcut',\n 'link',\n 'target-document',\n 'target-folder',\n 'document-explorer',\n 'میانبر',\n 'میانبرها',\n 'پوشه',\n 'سند',\n ],\n parentKey: 'folderId',\n plugins: [{ name: 'cache', options: { ttlMs: 120_000 } }],\n formats: {\n individual: RootConfig.entities.documentShortcut.title,\n plural: RootConfig.entities.documentShortcut.titlePlural,\n searchResult: {\n title: '{{ name }}',\n description: RootConfig.module.title,\n },\n },\n relatedEntities: [],\n groups: [{ id: 'basic-info', title: '@general:terms.interface.basic-info' }],\n properties: [\n {\n name: 'folderId',\n title: `@${i18n}:entities.document-shortcut.fields.folder.title`,\n groupId: 'basic-info',\n options: {\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsList.Editors.TextBox },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'targetDocumentId',\n title: `@${i18n}:entities.document-shortcut.fields.target-document.title`,\n groupId: 'basic-info',\n options: {\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsList.Editors.TextBox },\n },\n },\n {\n name: 'targetFolderId',\n title: `@${i18n}:entities.document-shortcut.fields.target-folder.title`,\n groupId: 'basic-info',\n options: {\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsList.Editors.TextBox },\n },\n },\n {\n name: 'name',\n title: '@general:terms.common.name',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsList.Editors.TextBox },\n },\n },\n {\n name: 'description',\n title: '@general:terms.common.description',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LargeTextBox,\n options: { multiLanguage: false },\n },\n },\n },\n ],\n };\n\n return entityDef;\n}\n"],"names":[],"mappings":";;;AAIA;;AAEG;AACI,eAAe,6BAA6B,GAAA;AACjD,IAAA,MAAM,IAAI,GAAG,UAAU,CAAC,MAAM,CAAC,IAAI;AAEnC,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,gBAAgB,CAAC,IAAI;AAC/C,QAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,gBAAgB,CAAC,KAAK;AACjD,QAAA,UAAU,EAAE;YACV,mBAAmB;YACnB,UAAU;YACV,gBAAgB;YAChB,iBAAiB;YACjB,MAAM;YACN,iBAAiB;YACjB,eAAe;YACf,mBAAmB;YACnB,QAAQ;YACR,UAAU;YACV,MAAM;YACN,KAAK;AACN,SAAA;AACD,QAAA,SAAS,EAAE,UAAU;AACrB,QAAA,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,EAAE,CAAC;AACzD,QAAA,OAAO,EAAE;AACP,YAAA,UAAU,EAAE,UAAU,CAAC,QAAQ,CAAC,gBAAgB,CAAC,KAAK;AACtD,YAAA,MAAM,EAAE,UAAU,CAAC,QAAQ,CAAC,gBAAgB,CAAC,WAAW;AACxD,YAAA,YAAY,EAAE;AACZ,gBAAA,KAAK,EAAE,YAAY;AACnB,gBAAA,WAAW,EAAE,UAAU,CAAC,MAAM,CAAC,KAAK;AACrC,aAAA;AACF,SAAA;AACD,QAAA,eAAe,EAAE,EAAE;QACnB,MAAM,EAAE,CAAC,EAAE,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,qCAAqC,EAAE,CAAC;AAC5E,QAAA,UAAU,EAA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AE,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;AAClE,iBAAA;AACD,gBAAA,MAAM,EAAE;AACN,oBAAA,QAAQ,EAAE,QAAQ;oBAClB,SAAS,EAAE,EAAE,IAAI,EAAE,cAAc,CAAC,OAAO,CAAC,OAAO,EAAE;AACpD,iBAAA;AACF,aAAA;AACD,YAAA;AACE,gBAAA,IAAI,EAAE,MAAM;AACZ,gBAAA,KAAK,EAAE,4BAA4B;AACnC,gBAAA,OAAO,EAAE,YAAY;AACrB,gBAAA,MAAM,EAAE;AACN,oBAAA,QAAQ,EAAE,QAAQ;oBAClB,SAAS,EAAE,EAAE,IAAI,EAAE,cAAc,CAAC,OAAO,CAAC,OAAO,EAAE;AACpD,iBAAA;AACF,aAAA;AACD,YAAA;AACE,gBAAA,IAAI,EAAE,aAAa;AACnB,gBAAA,KAAK,EAAE,mCAAmC;AAC1C,gBAAA,OAAO,EAAE,YAAY;AACrB,gBAAA,MAAM,EAAE;AACN,oBAAA,QAAQ,EAAE,QAAQ;AAClB,oBAAA,SAAS,EAAE;AACT,wBAAA,IAAI,EAAE,cAAc,CAAC,OAAO,CAAC,YAAY;AACzC,wBAAA,OAAO,EAAE,EAAE,aAAa,EAAE,KAAK,EAAE;AAClC,qBAAA;AACF,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;;"}
|
|
@@ -1,13 +1,29 @@
|
|
|
1
|
-
import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
|
-
import { createAllQueryView, entityMasterCrudActions, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
|
|
3
|
-
import { R as RootConfig } from './acorex-platform-module-document-management-client-contracts-entity-catalog-acorex-platform-module-document-management-client-contracts-entity-catalog-
|
|
1
|
+
import { AXPSystemActionType, AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { createAllQueryView, entityMasterCrudActions, AXPEntityCommandScope, entityMasterRecordActions } from '@acorex-platform/framework-shared/entity';
|
|
3
|
+
import { R as RootConfig } from './acorex-platform-module-document-management-client-contracts-entity-catalog-acorex-platform-module-document-management-client-contracts-entity-catalog-BxwUMlCE.mjs';
|
|
4
4
|
|
|
5
|
+
/** Hide delete on platform-global catalog rows (no tenantId). Update stays available so tenants can change type settings (e.g. enableVersioning). */
|
|
6
|
+
const HIDE_SYSTEM_DOCUMENT_TYPE = '{{ !context.eval("scopeInfo.tenantId") }}';
|
|
5
7
|
async function documentTypeFactory() {
|
|
6
8
|
const i18n = RootConfig.config.i18n;
|
|
7
9
|
const entityDef = {
|
|
8
10
|
module: RootConfig.module.name,
|
|
9
11
|
name: RootConfig.entities.documentType.name,
|
|
10
12
|
title: RootConfig.entities.documentType.title,
|
|
13
|
+
searchTags: [
|
|
14
|
+
'document-type',
|
|
15
|
+
'file-type',
|
|
16
|
+
'document-category',
|
|
17
|
+
'metadata-schema',
|
|
18
|
+
'classification',
|
|
19
|
+
'meta-data-builder',
|
|
20
|
+
'document-template',
|
|
21
|
+
'type-configuration',
|
|
22
|
+
'نوع سند',
|
|
23
|
+
'انواع سند',
|
|
24
|
+
'فراداده',
|
|
25
|
+
'مدیریت اسناد',
|
|
26
|
+
],
|
|
11
27
|
formats: {
|
|
12
28
|
individual: RootConfig.entities.documentType.title,
|
|
13
29
|
plural: RootConfig.entities.documentType.titlePlural,
|
|
@@ -127,10 +143,24 @@ async function documentTypeFactory() {
|
|
|
127
143
|
sort: { enabled: false },
|
|
128
144
|
},
|
|
129
145
|
schema: {
|
|
130
|
-
dataType: '
|
|
146
|
+
dataType: 'array',
|
|
147
|
+
defaultValue: [],
|
|
131
148
|
interface: {
|
|
132
|
-
type: AXPWidgetsList.Editors.
|
|
133
|
-
options: {
|
|
149
|
+
type: AXPWidgetsList.Editors.SelectBox,
|
|
150
|
+
options: {
|
|
151
|
+
multiple: true,
|
|
152
|
+
allowSearch: true,
|
|
153
|
+
valueField: 'name',
|
|
154
|
+
textField: 'title',
|
|
155
|
+
dataSource: [
|
|
156
|
+
{ name: 'document', title: `@${i18n}:file-types.document` },
|
|
157
|
+
{ name: 'image', title: `@${i18n}:file-types.image` },
|
|
158
|
+
{ name: 'video', title: `@${i18n}:file-types.video` },
|
|
159
|
+
{ name: 'audio', title: `@${i18n}:file-types.audio` },
|
|
160
|
+
{ name: 'file', title: `@${i18n}:file-types.file` },
|
|
161
|
+
{ name: 'form', title: `@${i18n}:file-types.form` },
|
|
162
|
+
],
|
|
163
|
+
},
|
|
134
164
|
},
|
|
135
165
|
},
|
|
136
166
|
},
|
|
@@ -176,6 +206,17 @@ async function documentTypeFactory() {
|
|
|
176
206
|
},
|
|
177
207
|
},
|
|
178
208
|
},
|
|
209
|
+
{
|
|
210
|
+
name: 'enableDistributionCapability',
|
|
211
|
+
title: `@${i18n}:terms.document.enable-distribution-capability`,
|
|
212
|
+
groupId: 'management',
|
|
213
|
+
schema: {
|
|
214
|
+
dataType: 'boolean',
|
|
215
|
+
interface: {
|
|
216
|
+
type: AXPWidgetsList.Editors.ToggleSwitch,
|
|
217
|
+
},
|
|
218
|
+
},
|
|
219
|
+
},
|
|
179
220
|
{
|
|
180
221
|
name: 'isEncrypted',
|
|
181
222
|
title: `@${i18n}:terms.document.is-encrypted`,
|
|
@@ -201,7 +242,8 @@ async function documentTypeFactory() {
|
|
|
201
242
|
{ name: 'enableExpiration', layout: { positions: { lg: { colSpan: 4, order: 2 } } } },
|
|
202
243
|
{ name: 'requiresReview', layout: { positions: { lg: { colSpan: 4, order: 3 } } } },
|
|
203
244
|
{ name: 'enableVersioning', layout: { positions: { lg: { colSpan: 4, order: 4 } } } },
|
|
204
|
-
{ name: '
|
|
245
|
+
{ name: 'enableDistributionCapability', layout: { positions: { lg: { colSpan: 4, order: 5 } } } },
|
|
246
|
+
{ name: 'isEncrypted', layout: { positions: { lg: { colSpan: 6, order: 6 } } } },
|
|
205
247
|
],
|
|
206
248
|
},
|
|
207
249
|
update: {
|
|
@@ -214,7 +256,8 @@ async function documentTypeFactory() {
|
|
|
214
256
|
{ name: 'enableExpiration', layout: { positions: { lg: { colSpan: 4, order: 2 } } } },
|
|
215
257
|
{ name: 'requiresReview', layout: { positions: { lg: { colSpan: 4, order: 3 } } } },
|
|
216
258
|
{ name: 'enableVersioning', layout: { positions: { lg: { colSpan: 4, order: 4 } } } },
|
|
217
|
-
{ name: '
|
|
259
|
+
{ name: 'enableDistributionCapability', layout: { positions: { lg: { colSpan: 4, order: 5 } } } },
|
|
260
|
+
{ name: 'isEncrypted', layout: { positions: { lg: { colSpan: 6, order: 6 } } } },
|
|
218
261
|
],
|
|
219
262
|
},
|
|
220
263
|
single: {
|
|
@@ -239,12 +282,18 @@ async function documentTypeFactory() {
|
|
|
239
282
|
{ name: 'enableExpiration', layout: { positions: { lg: { colSpan: 4, order: 2 } } } },
|
|
240
283
|
{ name: 'requiresReview', layout: { positions: { lg: { colSpan: 4, order: 3 } } } },
|
|
241
284
|
{ name: 'enableVersioning', layout: { positions: { lg: { colSpan: 4, order: 4 } } } },
|
|
242
|
-
{ name: '
|
|
285
|
+
{ name: 'enableDistributionCapability', layout: { positions: { lg: { colSpan: 4, order: 5 } } } },
|
|
286
|
+
{ name: 'isEncrypted', layout: { positions: { lg: { colSpan: 6, order: 6 } } } },
|
|
243
287
|
],
|
|
244
|
-
actions:
|
|
288
|
+
actions: entityMasterRecordActions().map((action) => action.type === AXPSystemActionType.Delete
|
|
289
|
+
? { ...action, hidden: HIDE_SYSTEM_DOCUMENT_TYPE }
|
|
290
|
+
: action),
|
|
245
291
|
},
|
|
246
292
|
list: {
|
|
247
|
-
actions:
|
|
293
|
+
actions: entityMasterCrudActions({ edit: true }).map((action) => action.scope === AXPEntityCommandScope.Individual &&
|
|
294
|
+
action.type === AXPSystemActionType.Delete
|
|
295
|
+
? { ...action, hidden: HIDE_SYSTEM_DOCUMENT_TYPE }
|
|
296
|
+
: action),
|
|
248
297
|
views: [createAllQueryView()],
|
|
249
298
|
},
|
|
250
299
|
},
|
|
@@ -254,4 +303,4 @@ async function documentTypeFactory() {
|
|
|
254
303
|
}
|
|
255
304
|
|
|
256
305
|
export { documentTypeFactory };
|
|
257
|
-
//# sourceMappingURL=acorex-platform-module-document-management-client-contracts-entity-catalog-document-type.entity-
|
|
306
|
+
//# sourceMappingURL=acorex-platform-module-document-management-client-contracts-entity-catalog-document-type.entity-CBMUwrc-.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-document-management-client-contracts-entity-catalog-document-type.entity-CBMUwrc-.mjs","sources":["../../../../libs/modules/document-management/contracts/src/entities/document-type/document-type.entity.ts"],"sourcesContent":["import { AXPSystemActionType, AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport {\n AXPEntity,\n AXPEntityCommandScope,\n createAllQueryView,\n entityMasterCrudActions,\n entityMasterRecordActions,\n} from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\n\n/** Hide delete on platform-global catalog rows (no tenantId). Update stays available so tenants can change type settings (e.g. enableVersioning). */\nconst HIDE_SYSTEM_DOCUMENT_TYPE = '{{ !context.eval(\"scopeInfo.tenantId\") }}';\n\nexport async function documentTypeFactory(): Promise<AXPEntity | null> {\n const i18n = RootConfig.config.i18n;\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.documentType.name,\n title: RootConfig.entities.documentType.title,\n searchTags: [\n 'document-type',\n 'file-type',\n 'document-category',\n 'metadata-schema',\n 'classification',\n 'meta-data-builder',\n 'document-template',\n 'type-configuration',\n 'نوع سند',\n 'انواع سند',\n 'فراداده',\n 'مدیریت اسناد',\n ],\n formats: {\n individual: RootConfig.entities.documentType.title,\n plural: RootConfig.entities.documentType.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: '{{ description }}',\n },\n },\n plugins: [\n { name: 'history' },\n { name: 'cache', options: { ttlMs: 600_000 } },\n {\n name: 'unique-fields',\n options: {\n fields: 'name',\n scope: 'global',\n },\n },\n {\n name: 'meta-data-builder',\n options: {\n display: 'page',\n },\n },\n { name: 'reports' },\n ],\n relatedEntities: [],\n groups: [\n {\n id: 'basic-info',\n title: '@general:terms.interface.basic-info',\n },\n {\n id: 'management',\n title: `@${i18n}:terms.common.management`,\n },\n ],\n properties: [\n {\n name: 'name',\n title: '@general:terms.common.name',\n groupId: 'basic-info',\n options: {\n sort: {\n enabled: true,\n },\n filter: {\n advance: { enabled: true },\n inline: { enabled: true },\n },\n },\n schema: {\n dataType: 'string',\n readonly: '{{ !!context.eval(\"id\") }}',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: {\n disabled: '{{ !!context.eval(\"id\") }}',\n },\n },\n },\n validations: [\n {\n rule: 'required',\n },\n {\n rule: 'variable-name',\n },\n ],\n },\n {\n name: 'title',\n title: '@general:terms.common.title',\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: {\n advance: { enabled: true },\n inline: { enabled: true },\n },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n },\n },\n validations: [\n {\n rule: 'required',\n },\n ],\n },\n {\n name: 'description',\n title: '@general:terms.common.description',\n groupId: 'basic-info',\n options: {\n sort: { enabled: false },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LargeTextBox,\n options: {\n rows: 3,\n },\n },\n },\n },\n {\n name: 'type',\n title: `@${i18n}:terms.common.type`,\n groupId: 'management',\n options: {\n sort: { enabled: false },\n },\n schema: {\n dataType: 'array',\n defaultValue: [],\n interface: {\n type: AXPWidgetsList.Editors.SelectBox,\n options: {\n multiple: true,\n allowSearch: true,\n valueField: 'name',\n textField: 'title',\n dataSource: [\n { name: 'document', title: `@${i18n}:file-types.document` },\n { name: 'image', title: `@${i18n}:file-types.image` },\n { name: 'video', title: `@${i18n}:file-types.video` },\n { name: 'audio', title: `@${i18n}:file-types.audio` },\n { name: 'file', title: `@${i18n}:file-types.file` },\n { name: 'form', title: `@${i18n}:file-types.form` },\n ],\n },\n },\n },\n },\n {\n name: 'enableExpiration',\n title: `@${i18n}:terms.document.enable-expiration`,\n groupId: 'management',\n schema: {\n dataType: 'boolean',\n interface: {\n type: AXPWidgetsList.Editors.ToggleSwitch,\n },\n },\n },\n {\n name: 'requiresReview',\n title: `@${i18n}:terms.document.requires-review`,\n groupId: 'management',\n schema: {\n dataType: 'boolean',\n interface: {\n type: AXPWidgetsList.Editors.ToggleSwitch,\n },\n },\n },\n {\n name: 'enableVersioning',\n title: `@${i18n}:terms.document.enable-versioning`,\n groupId: 'management',\n schema: {\n dataType: 'boolean',\n interface: {\n type: AXPWidgetsList.Editors.ToggleSwitch,\n options: {\n disabled: '{{ !!context.eval(\"requiresReview\") }}',\n },\n triggers: [\n {\n event: \"{{ events.context('requiresReview') }}\",\n action: \"{{ context.set('enableVersioning', true) }}\",\n },\n ],\n },\n },\n },\n {\n name: 'enableDistributionCapability',\n title: `@${i18n}:terms.document.enable-distribution-capability`,\n groupId: 'management',\n schema: {\n dataType: 'boolean',\n interface: {\n type: AXPWidgetsList.Editors.ToggleSwitch,\n },\n },\n },\n {\n name: 'isEncrypted',\n title: `@${i18n}:terms.document.is-encrypted`,\n groupId: 'management',\n schema: {\n dataType: 'boolean',\n interface: {\n type: AXPWidgetsList.Editors.ToggleSwitch,\n },\n },\n },\n ],\n columns: [{ name: 'name' }, { name: 'title' }, { name: 'description' }],\n interfaces: {\n master: {\n create: {\n sections: [{ id: 'basic-info' }, { id: 'management' }],\n properties: [\n { name: 'name', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'type', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },\n { name: 'enableExpiration', layout: { positions: { lg: { colSpan: 4, order: 2 } } } },\n { name: 'requiresReview', layout: { positions: { lg: { colSpan: 4, order: 3 } } } },\n { name: 'enableVersioning', layout: { positions: { lg: { colSpan: 4, order: 4 } } } },\n { name: 'enableDistributionCapability', layout: { positions: { lg: { colSpan: 4, order: 5 } } } },\n { name: 'isEncrypted', layout: { positions: { lg: { colSpan: 6, order: 6 } } } },\n ],\n },\n update: {\n sections: [{ id: 'basic-info' }, { id: 'management' }],\n properties: [\n { name: 'name', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'type', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },\n { name: 'enableExpiration', layout: { positions: { lg: { colSpan: 4, order: 2 } } } },\n { name: 'requiresReview', layout: { positions: { lg: { colSpan: 4, order: 3 } } } },\n { name: 'enableVersioning', layout: { positions: { lg: { colSpan: 4, order: 4 } } } },\n { name: 'enableDistributionCapability', layout: { positions: { lg: { colSpan: 4, order: 5 } } } },\n { name: 'isEncrypted', layout: { positions: { lg: { colSpan: 6, order: 6 } } } },\n ],\n },\n single: {\n title: '{{title}}',\n sections: [\n {\n id: 'basic-info',\n order: 1,\n layout: { positions: { lg: { colSpan: 12 } } },\n },\n {\n id: 'management',\n order: 2,\n layout: { positions: { lg: { colSpan: 12 } } },\n },\n ],\n properties: [\n { name: 'name', layout: { positions: { lg: { colSpan: 6, order: 1 } } } },\n { name: 'title', layout: { positions: { lg: { colSpan: 6, order: 2 } } } },\n { name: 'description', layout: { positions: { lg: { colSpan: 12, order: 3 } } } },\n { name: 'type', layout: { positions: { lg: { colSpan: 12, order: 1 } } } },\n { name: 'enableExpiration', layout: { positions: { lg: { colSpan: 4, order: 2 } } } },\n { name: 'requiresReview', layout: { positions: { lg: { colSpan: 4, order: 3 } } } },\n { name: 'enableVersioning', layout: { positions: { lg: { colSpan: 4, order: 4 } } } },\n { name: 'enableDistributionCapability', layout: { positions: { lg: { colSpan: 4, order: 5 } } } },\n { name: 'isEncrypted', layout: { positions: { lg: { colSpan: 6, order: 6 } } } },\n ],\n actions: entityMasterRecordActions().map((action) =>\n action.type === AXPSystemActionType.Delete\n ? { ...action, hidden: HIDE_SYSTEM_DOCUMENT_TYPE }\n : action,\n ),\n },\n list: {\n actions: entityMasterCrudActions({ edit: true }).map((action) =>\n action.scope === AXPEntityCommandScope.Individual &&\n action.type === AXPSystemActionType.Delete\n ? { ...action, hidden: HIDE_SYSTEM_DOCUMENT_TYPE }\n : action,\n ),\n views: [createAllQueryView()],\n },\n },\n },\n };\n\n return entityDef;\n}\n"],"names":[],"mappings":";;;;AAUA;AACA,MAAM,yBAAyB,GAAG,2CAA2C;AAEtE,eAAe,mBAAmB,GAAA;AACvC,IAAA,MAAM,IAAI,GAAG,UAAU,CAAC,MAAM,CAAC,IAAI;AAEnC,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,YAAY,CAAC,IAAI;AAC3C,QAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,YAAY,CAAC,KAAK;AAC7C,QAAA,UAAU,EAAE;YACV,eAAe;YACf,WAAW;YACX,mBAAmB;YACnB,iBAAiB;YACjB,gBAAgB;YAChB,mBAAmB;YACnB,mBAAmB;YACnB,oBAAoB;YACpB,SAAS;YACT,WAAW;YACX,SAAS;YACT,cAAc;AACf,SAAA;AACD,QAAA,OAAO,EAAE;AACP,YAAA,UAAU,EAAE,UAAU,CAAC,QAAQ,CAAC,YAAY,CAAC,KAAK;AAClD,YAAA,MAAM,EAAE,UAAU,CAAC,QAAQ,CAAC,YAAY,CAAC,WAAW;AACpD,YAAA,YAAY,EAAE;AACZ,gBAAA,KAAK,EAAE,aAAa;AACpB,gBAAA,WAAW,EAAE,mBAAmB;AACjC,aAAA;AACF,SAAA;AACD,QAAA,OAAO,EAAE;YACP,EAAE,IAAI,EAAE,SAAS,EAAE;YACnB,EAAE,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mB,CAAC;0BAChC,EAAE,GAAG,MAAM,EAAE,MAAM,EAAE,yBAAyB;0BAC9C,MAAM,CACX;AACF,iBAAA;AACD,gBAAA,IAAI,EAAE;oBACJ,OAAO,EAAE,uBAAuB,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,MAAM,KAC1D,MAAM,CAAC,KAAK,KAAK,qBAAqB,CAAC,UAAU;AACjD,wBAAA,MAAM,CAAC,IAAI,KAAK,mBAAmB,CAAC;0BAChC,EAAE,GAAG,MAAM,EAAE,MAAM,EAAE,yBAAyB;0BAC9C,MAAM,CACX;AACD,oBAAA,KAAK,EAAE,CAAC,kBAAkB,EAAE,CAAC;AAC9B,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;;"}
|
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
|
+
import { R as RootConfig } from './acorex-platform-module-document-management-client-contracts-entity-catalog-acorex-platform-module-document-management-client-contracts-entity-catalog-BxwUMlCE.mjs';
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* Companion snapshots for Document. Other modules pin `id`; the drive host keeps using Document.id.
|
|
6
|
+
*/
|
|
7
|
+
async function documentVersionEntityFactory() {
|
|
8
|
+
const i18n = RootConfig.config.i18n;
|
|
9
|
+
const entityDef = {
|
|
10
|
+
module: RootConfig.module.name,
|
|
11
|
+
name: RootConfig.entities.documentVersion.name,
|
|
12
|
+
title: RootConfig.entities.documentVersion.title,
|
|
13
|
+
searchTags: [
|
|
14
|
+
'document-version',
|
|
15
|
+
'version',
|
|
16
|
+
'draft',
|
|
17
|
+
'published',
|
|
18
|
+
'document-revision',
|
|
19
|
+
'نسخه سند',
|
|
20
|
+
'پیشنویس',
|
|
21
|
+
],
|
|
22
|
+
plugins: [{ name: 'cache', options: { ttlMs: 120_000 } }],
|
|
23
|
+
formats: {
|
|
24
|
+
individual: RootConfig.entities.documentVersion.title,
|
|
25
|
+
plural: RootConfig.entities.documentVersion.titlePlural,
|
|
26
|
+
searchResult: {
|
|
27
|
+
title: '{{ name }} #{{ versionNumber }}',
|
|
28
|
+
description: RootConfig.module.title,
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
relatedEntities: [],
|
|
32
|
+
groups: [{ id: 'basic-info', title: '@general:terms.interface.basic-info' }],
|
|
33
|
+
properties: [
|
|
34
|
+
{
|
|
35
|
+
name: 'sourceId',
|
|
36
|
+
title: `@${i18n}:entities.document-version.fields.source-id.title`,
|
|
37
|
+
groupId: 'basic-info',
|
|
38
|
+
options: {
|
|
39
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
40
|
+
},
|
|
41
|
+
schema: {
|
|
42
|
+
dataType: 'string',
|
|
43
|
+
readonly: true,
|
|
44
|
+
interface: { type: AXPWidgetsList.Editors.TextBox },
|
|
45
|
+
},
|
|
46
|
+
validations: [{ rule: 'required' }],
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
name: 'versionNumber',
|
|
50
|
+
title: `@${i18n}:entities.document-version.fields.version-number.title`,
|
|
51
|
+
groupId: 'basic-info',
|
|
52
|
+
options: {
|
|
53
|
+
sort: { enabled: true },
|
|
54
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
55
|
+
},
|
|
56
|
+
schema: {
|
|
57
|
+
dataType: 'number',
|
|
58
|
+
readonly: true,
|
|
59
|
+
interface: { type: AXPWidgetsList.Editors.NumberBox },
|
|
60
|
+
},
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
name: 'versioningStatus',
|
|
64
|
+
title: `@${i18n}:entities.document-version.fields.versioning-status.title`,
|
|
65
|
+
groupId: 'basic-info',
|
|
66
|
+
options: {
|
|
67
|
+
filter: { advance: { enabled: true }, inline: { enabled: true } },
|
|
68
|
+
},
|
|
69
|
+
schema: {
|
|
70
|
+
dataType: 'string',
|
|
71
|
+
readonly: true,
|
|
72
|
+
interface: { type: AXPWidgetsList.Editors.TextBox },
|
|
73
|
+
},
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
name: 'name',
|
|
77
|
+
title: '@general:terms.common.name',
|
|
78
|
+
groupId: 'basic-info',
|
|
79
|
+
schema: {
|
|
80
|
+
dataType: 'string',
|
|
81
|
+
interface: { type: AXPWidgetsList.Editors.TextBox },
|
|
82
|
+
},
|
|
83
|
+
},
|
|
84
|
+
{
|
|
85
|
+
name: 'title',
|
|
86
|
+
title: '@general:terms.common.title',
|
|
87
|
+
groupId: 'basic-info',
|
|
88
|
+
schema: {
|
|
89
|
+
dataType: 'string',
|
|
90
|
+
interface: {
|
|
91
|
+
type: AXPWidgetsList.Editors.TextBox,
|
|
92
|
+
options: { multiLanguage: false },
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
name: 'parentId',
|
|
98
|
+
title: '@general:terms.classification.parent',
|
|
99
|
+
groupId: 'basic-info',
|
|
100
|
+
schema: {
|
|
101
|
+
dataType: 'string',
|
|
102
|
+
interface: { type: AXPWidgetsList.Editors.TextBox },
|
|
103
|
+
},
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
name: 'description',
|
|
107
|
+
title: '@general:terms.common.description',
|
|
108
|
+
groupId: 'basic-info',
|
|
109
|
+
schema: {
|
|
110
|
+
dataType: 'string',
|
|
111
|
+
interface: {
|
|
112
|
+
type: AXPWidgetsList.Editors.LargeTextBox,
|
|
113
|
+
options: { multiLanguage: false },
|
|
114
|
+
},
|
|
115
|
+
},
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
name: 'documentType',
|
|
119
|
+
title: `@${i18n}:entities.document.fields.document-type.title`,
|
|
120
|
+
groupId: 'basic-info',
|
|
121
|
+
schema: {
|
|
122
|
+
dataType: 'object',
|
|
123
|
+
interface: { type: AXPWidgetsList.Advanced.JsonViewer },
|
|
124
|
+
},
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
name: 'fileInfo',
|
|
128
|
+
title: `@${i18n}:entities.document.fields.file-info.title`,
|
|
129
|
+
groupId: 'basic-info',
|
|
130
|
+
schema: {
|
|
131
|
+
dataType: 'object',
|
|
132
|
+
interface: { type: AXPWidgetsList.Advanced.JsonViewer },
|
|
133
|
+
},
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
name: 'expirationDate',
|
|
137
|
+
title: `@${i18n}:entities.document.fields.expiration-date.title`,
|
|
138
|
+
groupId: 'basic-info',
|
|
139
|
+
schema: {
|
|
140
|
+
dataType: 'date',
|
|
141
|
+
interface: { type: AXPWidgetsList.Editors.DateTimeBox },
|
|
142
|
+
},
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
name: 'statusId',
|
|
146
|
+
title: `@${i18n}:entities.document.fields.status.title`,
|
|
147
|
+
groupId: 'basic-info',
|
|
148
|
+
schema: {
|
|
149
|
+
dataType: 'string',
|
|
150
|
+
interface: { type: AXPWidgetsList.Editors.TextBox },
|
|
151
|
+
},
|
|
152
|
+
},
|
|
153
|
+
{
|
|
154
|
+
name: 'status',
|
|
155
|
+
title: `@${i18n}:entities.document.fields.status.title`,
|
|
156
|
+
groupId: 'basic-info',
|
|
157
|
+
schema: {
|
|
158
|
+
dataType: 'object',
|
|
159
|
+
interface: { type: AXPWidgetsList.Advanced.JsonViewer },
|
|
160
|
+
},
|
|
161
|
+
},
|
|
162
|
+
{
|
|
163
|
+
name: 'metaDataForm',
|
|
164
|
+
title: `@${i18n}:entities.document.fields.meta-data-form.title`,
|
|
165
|
+
groupId: 'basic-info',
|
|
166
|
+
schema: {
|
|
167
|
+
dataType: 'object',
|
|
168
|
+
interface: { type: AXPWidgetsList.Editors.MetaDataBox },
|
|
169
|
+
},
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
name: 'refType',
|
|
173
|
+
title: `@${i18n}:entities.document.fields.ref-type.title`,
|
|
174
|
+
groupId: 'basic-info',
|
|
175
|
+
schema: {
|
|
176
|
+
dataType: 'string',
|
|
177
|
+
interface: { type: AXPWidgetsList.Editors.TextBox },
|
|
178
|
+
},
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
name: 'refId',
|
|
182
|
+
title: `@${i18n}:entities.document.fields.ref-id.title`,
|
|
183
|
+
groupId: 'basic-info',
|
|
184
|
+
schema: {
|
|
185
|
+
dataType: 'string',
|
|
186
|
+
interface: { type: AXPWidgetsList.Editors.TextBox },
|
|
187
|
+
},
|
|
188
|
+
},
|
|
189
|
+
],
|
|
190
|
+
columns: [
|
|
191
|
+
{ name: 'versionNumber', title: `@${i18n}:entities.document-version.fields.version-number.title` },
|
|
192
|
+
{ name: 'versioningStatus', title: `@${i18n}:entities.document-version.fields.versioning-status.title` },
|
|
193
|
+
{ name: 'name' },
|
|
194
|
+
],
|
|
195
|
+
};
|
|
196
|
+
return entityDef;
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
export { documentVersionEntityFactory };
|
|
200
|
+
//# sourceMappingURL=acorex-platform-module-document-management-client-contracts-entity-catalog-document-version.entity-hATC_iAQ.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-document-management-client-contracts-entity-catalog-document-version.entity-hATC_iAQ.mjs","sources":["../../../../libs/modules/document-management/contracts/src/entities/document-version/document-version.entity.ts"],"sourcesContent":["import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity } from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\n\n/**\n * Companion snapshots for Document. Other modules pin `id`; the drive host keeps using Document.id.\n */\nexport async function documentVersionEntityFactory(): Promise<AXPEntity | null> {\n const i18n = RootConfig.config.i18n;\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.documentVersion.name,\n title: RootConfig.entities.documentVersion.title,\n searchTags: [\n 'document-version',\n 'version',\n 'draft',\n 'published',\n 'document-revision',\n 'نسخه سند',\n 'پیشنویس',\n ],\n plugins: [{ name: 'cache', options: { ttlMs: 120_000 } }],\n formats: {\n individual: RootConfig.entities.documentVersion.title,\n plural: RootConfig.entities.documentVersion.titlePlural,\n searchResult: {\n title: '{{ name }} #{{ versionNumber }}',\n description: RootConfig.module.title,\n },\n },\n relatedEntities: [],\n groups: [{ id: 'basic-info', title: '@general:terms.interface.basic-info' }],\n properties: [\n {\n name: 'sourceId',\n title: `@${i18n}:entities.document-version.fields.source-id.title`,\n groupId: 'basic-info',\n options: {\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n readonly: true,\n interface: { type: AXPWidgetsList.Editors.TextBox },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'versionNumber',\n title: `@${i18n}:entities.document-version.fields.version-number.title`,\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'number',\n readonly: true,\n interface: { type: AXPWidgetsList.Editors.NumberBox },\n },\n },\n {\n name: 'versioningStatus',\n title: `@${i18n}:entities.document-version.fields.versioning-status.title`,\n groupId: 'basic-info',\n options: {\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n readonly: true,\n interface: { type: AXPWidgetsList.Editors.TextBox },\n },\n },\n {\n name: 'name',\n title: '@general:terms.common.name',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsList.Editors.TextBox },\n },\n },\n {\n name: 'title',\n title: '@general:terms.common.title',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: { multiLanguage: false },\n },\n },\n },\n {\n name: 'parentId',\n title: '@general:terms.classification.parent',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsList.Editors.TextBox },\n },\n },\n {\n name: 'description',\n title: '@general:terms.common.description',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LargeTextBox,\n options: { multiLanguage: false },\n },\n },\n },\n {\n name: 'documentType',\n title: `@${i18n}:entities.document.fields.document-type.title`,\n groupId: 'basic-info',\n schema: {\n dataType: 'object',\n interface: { type: AXPWidgetsList.Advanced.JsonViewer },\n },\n },\n {\n name: 'fileInfo',\n title: `@${i18n}:entities.document.fields.file-info.title`,\n groupId: 'basic-info',\n schema: {\n dataType: 'object',\n interface: { type: AXPWidgetsList.Advanced.JsonViewer },\n },\n },\n {\n name: 'expirationDate',\n title: `@${i18n}:entities.document.fields.expiration-date.title`,\n groupId: 'basic-info',\n schema: {\n dataType: 'date',\n interface: { type: AXPWidgetsList.Editors.DateTimeBox },\n },\n },\n {\n name: 'statusId',\n title: `@${i18n}:entities.document.fields.status.title`,\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsList.Editors.TextBox },\n },\n },\n {\n name: 'status',\n title: `@${i18n}:entities.document.fields.status.title`,\n groupId: 'basic-info',\n schema: {\n dataType: 'object',\n interface: { type: AXPWidgetsList.Advanced.JsonViewer },\n },\n },\n {\n name: 'metaDataForm',\n title: `@${i18n}:entities.document.fields.meta-data-form.title`,\n groupId: 'basic-info',\n schema: {\n dataType: 'object',\n interface: { type: AXPWidgetsList.Editors.MetaDataBox },\n },\n },\n {\n name: 'refType',\n title: `@${i18n}:entities.document.fields.ref-type.title`,\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsList.Editors.TextBox },\n },\n },\n {\n name: 'refId',\n title: `@${i18n}:entities.document.fields.ref-id.title`,\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsList.Editors.TextBox },\n },\n },\n ],\n columns: [\n { name: 'versionNumber', title: `@${i18n}:entities.document-version.fields.version-number.title` },\n { name: 'versioningStatus', title: `@${i18n}:entities.document-version.fields.versioning-status.title` },\n { name: 'name' },\n ],\n };\n\n return entityDef;\n}\n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E,IAAI,EAAE,eAAe,EAAE,KAAK,EAAE,CAAA,CAAA,EAAI,IAAI,CAAA,sDAAA,CAAwD,EAAE;YAClG,EAAE,IAAI,EAAE,kBAAkB,EAAE,KAAK,EAAE,CAAA,CAAA,EAAI,IAAI,CAAA,yDAAA,CAA2D,EAAE;YACxG,EAAE,IAAI,EAAE,MAAM,EAAE;AACjB,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
|
-
import { R as RootConfig } from './acorex-platform-module-document-management-client-contracts-entity-catalog-acorex-platform-module-document-management-client-contracts-entity-catalog-
|
|
2
|
+
import { R as RootConfig } from './acorex-platform-module-document-management-client-contracts-entity-catalog-acorex-platform-module-document-management-client-contracts-entity-catalog-BxwUMlCE.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Entity definition for Document so Postgres/JQL persist drive document fields.
|
|
@@ -11,8 +11,28 @@ async function documentEntityFactory() {
|
|
|
11
11
|
module: RootConfig.module.name,
|
|
12
12
|
name: RootConfig.entities.document.name,
|
|
13
13
|
title: RootConfig.entities.document.title,
|
|
14
|
+
searchTags: [
|
|
15
|
+
'document',
|
|
16
|
+
'file',
|
|
17
|
+
'attachment',
|
|
18
|
+
'document-file',
|
|
19
|
+
'version',
|
|
20
|
+
'expiration',
|
|
21
|
+
'document-type',
|
|
22
|
+
'workflow',
|
|
23
|
+
'drive-file',
|
|
24
|
+
'سند',
|
|
25
|
+
'اسناد',
|
|
26
|
+
'فایل',
|
|
27
|
+
'ضمیمه',
|
|
28
|
+
'وثيقة',
|
|
29
|
+
],
|
|
14
30
|
parentKey: 'parentId',
|
|
15
|
-
plugins: [
|
|
31
|
+
plugins: [
|
|
32
|
+
{ name: 'workflow-run' },
|
|
33
|
+
{ name: 'cache', options: { ttlMs: 120_000 } },
|
|
34
|
+
{ name: 'versioning', options: { enabledField: 'versioningEnabled' } },
|
|
35
|
+
],
|
|
16
36
|
formats: {
|
|
17
37
|
individual: RootConfig.entities.document.title,
|
|
18
38
|
plural: RootConfig.entities.document.titlePlural,
|
|
@@ -135,9 +155,43 @@ async function documentEntityFactory() {
|
|
|
135
155
|
groupId: 'basic-info',
|
|
136
156
|
schema: {
|
|
137
157
|
dataType: 'number',
|
|
158
|
+
readonly: true,
|
|
138
159
|
interface: { type: AXPWidgetsList.Editors.NumberBox },
|
|
139
160
|
},
|
|
140
161
|
},
|
|
162
|
+
{
|
|
163
|
+
name: 'versionId',
|
|
164
|
+
title: `@${i18n}:entities.document.fields.version-id.title`,
|
|
165
|
+
groupId: 'basic-info',
|
|
166
|
+
schema: {
|
|
167
|
+
dataType: 'string',
|
|
168
|
+
readonly: true,
|
|
169
|
+
visible: false,
|
|
170
|
+
interface: { type: AXPWidgetsList.Editors.TextBox },
|
|
171
|
+
},
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
name: 'versioningEnabled',
|
|
175
|
+
title: `@${i18n}:entities.document.fields.versioning-enabled.title`,
|
|
176
|
+
groupId: 'basic-info',
|
|
177
|
+
schema: {
|
|
178
|
+
dataType: 'boolean',
|
|
179
|
+
readonly: true,
|
|
180
|
+
visible: false,
|
|
181
|
+
interface: { type: AXPWidgetsList.Editors.ToggleSwitch },
|
|
182
|
+
},
|
|
183
|
+
},
|
|
184
|
+
{
|
|
185
|
+
name: 'distributionEnabled',
|
|
186
|
+
title: `@${i18n}:entities.document.fields.distribution-enabled.title`,
|
|
187
|
+
groupId: 'basic-info',
|
|
188
|
+
schema: {
|
|
189
|
+
dataType: 'boolean',
|
|
190
|
+
readonly: true,
|
|
191
|
+
visible: false,
|
|
192
|
+
interface: { type: AXPWidgetsList.Editors.ToggleSwitch },
|
|
193
|
+
},
|
|
194
|
+
},
|
|
141
195
|
{
|
|
142
196
|
name: 'metaDataForm',
|
|
143
197
|
title: `@${i18n}:entities.document.fields.meta-data-form.title`,
|
|
@@ -177,4 +231,4 @@ async function documentEntityFactory() {
|
|
|
177
231
|
}
|
|
178
232
|
|
|
179
233
|
export { documentEntityFactory };
|
|
180
|
-
//# sourceMappingURL=acorex-platform-module-document-management-client-contracts-entity-catalog-document.entity-
|
|
234
|
+
//# sourceMappingURL=acorex-platform-module-document-management-client-contracts-entity-catalog-document.entity-DOvhTOtO.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"acorex-platform-module-document-management-client-contracts-entity-catalog-document.entity-DOvhTOtO.mjs","sources":["../../../../libs/modules/document-management/contracts/src/entities/document/document.entity.ts"],"sourcesContent":["import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity } from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\n\n/**\n * Entity definition for Document so Postgres/JQL persist drive document fields.\n * No list/form UI; documents are handled by document-explorer.\n */\nexport async function documentEntityFactory(): Promise<AXPEntity | null> {\n const i18n = RootConfig.config.i18n;\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.document.name,\n title: RootConfig.entities.document.title,\n searchTags: [\n 'document',\n 'file',\n 'attachment',\n 'document-file',\n 'version',\n 'expiration',\n 'document-type',\n 'workflow',\n 'drive-file',\n 'سند',\n 'اسناد',\n 'فایل',\n 'ضمیمه',\n 'وثيقة',\n ],\n parentKey: 'parentId',\n plugins: [\n { name: 'workflow-run' },\n { name: 'cache', options: { ttlMs: 120_000 } },\n { name: 'versioning', options: { enabledField: 'versioningEnabled' } },\n ],\n formats: {\n individual: RootConfig.entities.document.title,\n plural: RootConfig.entities.document.titlePlural,\n searchResult: {\n title: '{{ title }}',\n description: RootConfig.module.title,\n },\n },\n relatedEntities: [],\n groups: [{ id: 'basic-info', title: '@general:terms.interface.basic-info' }],\n properties: [\n {\n name: 'name',\n title: '@general:terms.common.name',\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsList.Editors.TextBox },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'title',\n title: '@general:terms.common.title',\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.TextBox,\n options: { multiLanguage: false },\n },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'parentId',\n title: '@general:terms.classification.parent',\n groupId: 'basic-info',\n options: {\n sort: { enabled: true },\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsList.Editors.TextBox },\n },\n validations: [{ rule: 'required' }],\n },\n {\n name: 'description',\n title: '@general:terms.common.description',\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsList.Editors.LargeTextBox,\n options: { multiLanguage: false },\n },\n },\n },\n {\n name: 'documentType',\n title: `@${i18n}:entities.document.fields.document-type.title`,\n groupId: 'basic-info',\n schema: {\n dataType: 'object',\n interface: { type: AXPWidgetsList.Advanced.JsonViewer },\n },\n },\n {\n name: 'fileInfo',\n title: `@${i18n}:entities.document.fields.file-info.title`,\n groupId: 'basic-info',\n schema: {\n dataType: 'object',\n interface: { type: AXPWidgetsList.Advanced.JsonViewer },\n },\n },\n {\n name: 'expirationDate',\n title: `@${i18n}:entities.document.fields.expiration-date.title`,\n groupId: 'basic-info',\n schema: {\n dataType: 'date',\n interface: { type: AXPWidgetsList.Editors.DateTimeBox },\n },\n },\n {\n name: 'statusId',\n title: `@${i18n}:entities.document.fields.status.title`,\n groupId: 'basic-info',\n options: {\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsList.Editors.TextBox },\n },\n },\n {\n name: 'status',\n title: `@${i18n}:entities.document.fields.status.title`,\n groupId: 'basic-info',\n schema: {\n dataType: 'object',\n interface: { type: AXPWidgetsList.Advanced.JsonViewer },\n },\n },\n {\n name: 'version',\n title: `@${i18n}:entities.document.fields.version.title`,\n groupId: 'basic-info',\n schema: {\n dataType: 'number',\n readonly: true,\n interface: { type: AXPWidgetsList.Editors.NumberBox },\n },\n },\n {\n name: 'versionId',\n title: `@${i18n}:entities.document.fields.version-id.title`,\n groupId: 'basic-info',\n schema: {\n dataType: 'string',\n readonly: true,\n visible: false,\n interface: { type: AXPWidgetsList.Editors.TextBox },\n },\n },\n {\n name: 'versioningEnabled',\n title: `@${i18n}:entities.document.fields.versioning-enabled.title`,\n groupId: 'basic-info',\n schema: {\n dataType: 'boolean',\n readonly: true,\n visible: false,\n interface: { type: AXPWidgetsList.Editors.ToggleSwitch },\n },\n },\n {\n name: 'distributionEnabled',\n title: `@${i18n}:entities.document.fields.distribution-enabled.title`,\n groupId: 'basic-info',\n schema: {\n dataType: 'boolean',\n readonly: true,\n visible: false,\n interface: { type: AXPWidgetsList.Editors.ToggleSwitch },\n },\n },\n {\n name: 'metaDataForm',\n title: `@${i18n}:entities.document.fields.meta-data-form.title`,\n groupId: 'basic-info',\n schema: {\n dataType: 'object',\n interface: { type: AXPWidgetsList.Editors.MetaDataBox },\n },\n },\n {\n name: 'refType',\n title: `@${i18n}:entities.document.fields.ref-type.title`,\n groupId: 'basic-info',\n options: {\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsList.Editors.TextBox },\n },\n },\n {\n name: 'refId',\n title: `@${i18n}:entities.document.fields.ref-id.title`,\n groupId: 'basic-info',\n options: {\n filter: { advance: { enabled: true }, inline: { enabled: true } },\n },\n schema: {\n dataType: 'string',\n interface: { type: AXPWidgetsList.Editors.TextBox },\n },\n },\n ],\n };\n\n return entityDef;\n}\n"],"names":[],"mappings":";;;AAIA;;;AAGG;AACI,eAAe,qBAAqB,GAAA;AACzC,IAAA,MAAM,IAAI,GAAG,UAAU,CAAC,MAAM,CAAC,IAA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AA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { AXPWidgetsList } from '@acorex-platform/framework-shared/core';
|
|
2
|
-
import { R as RootConfig } from './acorex-platform-module-document-management-client-contracts-entity-catalog-acorex-platform-module-document-management-client-contracts-entity-catalog-
|
|
2
|
+
import { R as RootConfig } from './acorex-platform-module-document-management-client-contracts-entity-catalog-acorex-platform-module-document-management-client-contracts-entity-catalog-BxwUMlCE.mjs';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* Entity definition for Folder so Postgres/JQL persist drive fields.
|
|
@@ -10,6 +10,21 @@ async function folderEntityFactory() {
|
|
|
10
10
|
module: RootConfig.module.name,
|
|
11
11
|
name: RootConfig.entities.folder.name,
|
|
12
12
|
title: RootConfig.entities.folder.title,
|
|
13
|
+
searchTags: [
|
|
14
|
+
'folder',
|
|
15
|
+
'directory',
|
|
16
|
+
'drive-folder',
|
|
17
|
+
'document-folder',
|
|
18
|
+
'storage',
|
|
19
|
+
'document-tree',
|
|
20
|
+
'parent-folder',
|
|
21
|
+
'drive-navigation',
|
|
22
|
+
'پوشه',
|
|
23
|
+
'پوشهها',
|
|
24
|
+
'اسناد',
|
|
25
|
+
'مدیریت اسناد',
|
|
26
|
+
'مجلد',
|
|
27
|
+
],
|
|
13
28
|
parentKey: 'parentId',
|
|
14
29
|
// Drive navigation is read-heavy; global cache with invalidation on mutations.
|
|
15
30
|
plugins: [{ name: 'cache', options: { ttlMs: 120_000 } }],
|
|
@@ -169,4 +184,4 @@ async function folderEntityFactory() {
|
|
|
169
184
|
}
|
|
170
185
|
|
|
171
186
|
export { folderEntityFactory };
|
|
172
|
-
//# sourceMappingURL=acorex-platform-module-document-management-client-contracts-entity-catalog-folder.entity-
|
|
187
|
+
//# sourceMappingURL=acorex-platform-module-document-management-client-contracts-entity-catalog-folder.entity-cNSFyJoY.mjs.map
|