@acorex-platform/module-common-client 0.0.32 → 0.0.37

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 (55) hide show
  1. package/fesm2022/{acorex-platform-module-common-client-acorex-platform-module-common-client-DsCvUxSh.mjs → acorex-platform-module-common-client-acorex-platform-module-common-client-BmGXSWg4.mjs} +40 -23
  2. package/fesm2022/acorex-platform-module-common-client-acorex-platform-module-common-client-BmGXSWg4.mjs.map +1 -0
  3. package/fesm2022/{acorex-platform-module-common-client-archive-entity.command-QmrPzKy_.mjs → acorex-platform-module-common-client-archive-entity.command-D0TFxo2b.mjs} +2 -2
  4. package/fesm2022/{acorex-platform-module-common-client-archive-entity.command-QmrPzKy_.mjs.map → acorex-platform-module-common-client-archive-entity.command-D0TFxo2b.mjs.map} +1 -1
  5. package/fesm2022/{acorex-platform-module-common-client-archive-entity.command.util-fd533YPY.mjs → acorex-platform-module-common-client-archive-entity.command.util-DrW2EjNj.mjs} +2 -2
  6. package/fesm2022/{acorex-platform-module-common-client-archive-entity.command.util-fd533YPY.mjs.map → acorex-platform-module-common-client-archive-entity.command.util-DrW2EjNj.mjs.map} +1 -1
  7. package/fesm2022/{acorex-platform-module-common-client-audit-info-column.component-CsqKKwwF.mjs → acorex-platform-module-common-client-audit-info-column.component-tMlIVjiu.mjs} +2 -2
  8. package/fesm2022/{acorex-platform-module-common-client-audit-info-column.component-CsqKKwwF.mjs.map → acorex-platform-module-common-client-audit-info-column.component-tMlIVjiu.mjs.map} +1 -1
  9. package/fesm2022/acorex-platform-module-common-client-audit-info-edit.component-COMMBgsX.mjs.map +1 -1
  10. package/fesm2022/acorex-platform-module-common-client-audit-info-view.component-UOTT-ir_.mjs.map +1 -1
  11. package/fesm2022/{acorex-platform-module-common-client-bulk-archive-entity.command-BfINUGph.mjs → acorex-platform-module-common-client-bulk-archive-entity.command-LNJekir_.mjs} +2 -2
  12. package/fesm2022/{acorex-platform-module-common-client-bulk-archive-entity.command-BfINUGph.mjs.map → acorex-platform-module-common-client-bulk-archive-entity.command-LNJekir_.mjs.map} +1 -1
  13. package/fesm2022/acorex-platform-module-common-client-bulk-disable-entity.command-DgoZVXQA.mjs.map +1 -1
  14. package/fesm2022/acorex-platform-module-common-client-bulk-enable-entity.command-C6fba__g.mjs.map +1 -1
  15. package/fesm2022/{acorex-platform-module-common-client-bulk-restore-archive-entity.command-CGy1Kdon.mjs → acorex-platform-module-common-client-bulk-restore-archive-entity.command-DV81VX8K.mjs} +2 -2
  16. package/fesm2022/{acorex-platform-module-common-client-bulk-restore-archive-entity.command-CGy1Kdon.mjs.map → acorex-platform-module-common-client-bulk-restore-archive-entity.command-DV81VX8K.mjs.map} +1 -1
  17. package/fesm2022/{acorex-platform-module-common-client-clone-entity.command-DgVI86z3.mjs → acorex-platform-module-common-client-clone-entity.command-CcjD0iDW.mjs} +2 -2
  18. package/fesm2022/{acorex-platform-module-common-client-clone-entity.command-DgVI86z3.mjs.map → acorex-platform-module-common-client-clone-entity.command-CcjD0iDW.mjs.map} +1 -1
  19. package/fesm2022/acorex-platform-module-common-client-contracts-entities-record-lock.mjs +135 -0
  20. package/fesm2022/acorex-platform-module-common-client-contracts-entities-record-lock.mjs.map +1 -0
  21. package/fesm2022/acorex-platform-module-common-client-contracts-entities-version-entry.mjs +205 -0
  22. package/fesm2022/acorex-platform-module-common-client-contracts-entities-version-entry.mjs.map +1 -0
  23. package/fesm2022/acorex-platform-module-common-client-contracts-entities-version-stream.mjs +118 -0
  24. package/fesm2022/acorex-platform-module-common-client-contracts-entities-version-stream.mjs.map +1 -0
  25. package/fesm2022/acorex-platform-module-common-client-contracts-entity-catalog-acorex-platform-module-common-client-contracts-entity-catalog-C2WFbRne.mjs +61 -0
  26. package/fesm2022/acorex-platform-module-common-client-contracts-entity-catalog-acorex-platform-module-common-client-contracts-entity-catalog-C2WFbRne.mjs.map +1 -0
  27. package/fesm2022/acorex-platform-module-common-client-contracts-entity-catalog-record-lock.entity-CY6jfaD7.mjs +95 -0
  28. package/fesm2022/acorex-platform-module-common-client-contracts-entity-catalog-record-lock.entity-CY6jfaD7.mjs.map +1 -0
  29. package/fesm2022/acorex-platform-module-common-client-contracts-entity-catalog-version-entry.entity-DCBxAIMJ.mjs +165 -0
  30. package/fesm2022/acorex-platform-module-common-client-contracts-entity-catalog-version-entry.entity-DCBxAIMJ.mjs.map +1 -0
  31. package/fesm2022/acorex-platform-module-common-client-contracts-entity-catalog-version-stream.entity-DbSB34vz.mjs +78 -0
  32. package/fesm2022/acorex-platform-module-common-client-contracts-entity-catalog-version-stream.entity-DbSB34vz.mjs.map +1 -0
  33. package/fesm2022/acorex-platform-module-common-client-contracts-entity-catalog.mjs +2 -0
  34. package/fesm2022/acorex-platform-module-common-client-contracts-entity-catalog.mjs.map +1 -0
  35. package/fesm2022/acorex-platform-module-common-client-contracts.mjs.map +1 -1
  36. package/fesm2022/acorex-platform-module-common-client-disable-entity.command-Bc1uH38V.mjs.map +1 -1
  37. package/fesm2022/acorex-platform-module-common-client-disable-entity.command.util-DQl6u2nj.mjs.map +1 -1
  38. package/fesm2022/acorex-platform-module-common-client-enable-entity.command-DeTumWIj.mjs.map +1 -1
  39. package/fesm2022/acorex-platform-module-common-client-get-current-time.command-Ck_SC5Bu.mjs.map +1 -1
  40. package/fesm2022/acorex-platform-module-common-client-local-entities.mjs +31 -0
  41. package/fesm2022/acorex-platform-module-common-client-local-entities.mjs.map +1 -0
  42. package/fesm2022/{acorex-platform-module-common-client-restore-archive-entity.command-Dx8CIcWc.mjs → acorex-platform-module-common-client-restore-archive-entity.command-CWJPmL4o.mjs} +2 -2
  43. package/fesm2022/{acorex-platform-module-common-client-restore-archive-entity.command-Dx8CIcWc.mjs.map → acorex-platform-module-common-client-restore-archive-entity.command-CWJPmL4o.mjs.map} +1 -1
  44. package/fesm2022/{acorex-platform-module-common-client-search-popup.component-D9gce0xf.mjs → acorex-platform-module-common-client-search-popup.component-CNJmksXt.mjs} +3 -3
  45. package/fesm2022/{acorex-platform-module-common-client-search-popup.component-D9gce0xf.mjs.map → acorex-platform-module-common-client-search-popup.component-CNJmksXt.mjs.map} +1 -1
  46. package/fesm2022/{acorex-platform-module-common-client-timeline-version-history-popup.component-Dg-TrXGF.mjs → acorex-platform-module-common-client-timeline-version-history-popup.component-DDpyY7mO.mjs} +3 -3
  47. package/fesm2022/{acorex-platform-module-common-client-timeline-version-history-popup.component-Dg-TrXGF.mjs.map → acorex-platform-module-common-client-timeline-version-history-popup.component-DDpyY7mO.mjs.map} +1 -1
  48. package/fesm2022/acorex-platform-module-common-client.mjs +1 -1
  49. package/package.json +21 -1
  50. package/types/acorex-platform-module-common-client-contracts-entities-record-lock.d.ts +5 -0
  51. package/types/acorex-platform-module-common-client-contracts-entities-version-entry.d.ts +5 -0
  52. package/types/acorex-platform-module-common-client-contracts-entities-version-stream.d.ts +5 -0
  53. package/types/acorex-platform-module-common-client-contracts-entity-catalog.d.ts +10 -0
  54. package/types/acorex-platform-module-common-client-local-entities.d.ts +12 -0
  55. package/fesm2022/acorex-platform-module-common-client-acorex-platform-module-common-client-DsCvUxSh.mjs.map +0 -1
@@ -0,0 +1,61 @@
1
+ const config = {
2
+ i18n: 'common',
3
+ module: 'Common',
4
+ };
5
+ const RootConfig = {
6
+ config,
7
+ module: {
8
+ route: 'common',
9
+ name: config.module,
10
+ title: '@general:common.module.title',
11
+ icon: 'fa-light fa-file-invoice',
12
+ },
13
+ entities: {
14
+ recordLock: {
15
+ name: 'RecordLock',
16
+ title: 'Record Lock',
17
+ titlePlural: 'Record Locks',
18
+ icon: 'fa-light fa-lock',
19
+ source: `${config.module}.RecordLock`,
20
+ },
21
+ versionStream: {
22
+ name: 'VersionStream',
23
+ title: 'Version Stream',
24
+ titlePlural: 'Version Streams',
25
+ icon: 'fa-light fa-code-branch',
26
+ source: `${config.module}.VersionStream`,
27
+ },
28
+ versionEntry: {
29
+ name: 'VersionEntry',
30
+ title: 'Version Entry',
31
+ titlePlural: 'Version Entries',
32
+ icon: 'fa-light fa-clock-rotate-left',
33
+ source: `${config.module}.VersionEntry`,
34
+ },
35
+ },
36
+ };
37
+
38
+ //#region ----- Imports -----
39
+ //#endregion
40
+ //#region ----- Local entity catalog -----
41
+ /**
42
+ * Lazy per-entity layout factories. Do not re-export from the contracts barrel
43
+ * so RootConfig imports stay light. Server seed and client `local-entities`
44
+ * consume this catalog explicitly.
45
+ */
46
+ const commonLocalEntityCatalog = {
47
+ moduleName: RootConfig.module.name,
48
+ loaders: {
49
+ [RootConfig.entities.recordLock.name]: () => import('./acorex-platform-module-common-client-contracts-entity-catalog-record-lock.entity-CY6jfaD7.mjs').then((m) => m.factoryRecordLock()),
50
+ [RootConfig.entities.versionEntry.name]: () => import('./acorex-platform-module-common-client-contracts-entity-catalog-version-entry.entity-DCBxAIMJ.mjs').then((m) => m.factoryVersionEntry()),
51
+ [RootConfig.entities.versionStream.name]: () => import('./acorex-platform-module-common-client-contracts-entity-catalog-version-stream.entity-DbSB34vz.mjs').then((m) => m.factoryVersionStream()),
52
+ },
53
+ };
54
+ //#endregion
55
+
56
+ /**
57
+ * Generated bundle index. Do not edit.
58
+ */
59
+
60
+ export { RootConfig as R, commonLocalEntityCatalog as c };
61
+ //# sourceMappingURL=acorex-platform-module-common-client-contracts-entity-catalog-acorex-platform-module-common-client-contracts-entity-catalog-C2WFbRne.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-common-client-contracts-entity-catalog-acorex-platform-module-common-client-contracts-entity-catalog-C2WFbRne.mjs","sources":["../../../../libs/modules/common/contracts/src/root-config.ts","../../../../libs/modules/common/contracts/src/entity-catalog.ts","../../../../libs/modules/common/contracts/src/acorex-platform-module-common-client-contracts-entity-catalog.ts"],"sourcesContent":["const config = {\n i18n: 'common',\n module: 'Common',\n};\n\nexport const RootConfig = {\n config,\n module: {\n route: 'common',\n name: config.module,\n title: '@general:common.module.title',\n icon: 'fa-light fa-file-invoice',\n },\n entities: {\n recordLock: {\n name: 'RecordLock',\n title: 'Record Lock',\n titlePlural: 'Record Locks',\n icon: 'fa-light fa-lock',\n source: `${config.module}.RecordLock`,\n },\n versionStream: {\n name: 'VersionStream',\n title: 'Version Stream',\n titlePlural: 'Version Streams',\n icon: 'fa-light fa-code-branch',\n source: `${config.module}.VersionStream`,\n },\n versionEntry: {\n name: 'VersionEntry',\n title: 'Version Entry',\n titlePlural: 'Version Entries',\n icon: 'fa-light fa-clock-rotate-left',\n source: `${config.module}.VersionEntry`,\n },\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 commonLocalEntityCatalog: AXPLocalEntityCatalog = {\n moduleName: RootConfig.module.name,\n loaders: {\n [RootConfig.entities.recordLock.name]: () =>\n import('./entities/record-lock/record-lock.entity.js').then((m) => m.factoryRecordLock()),\n [RootConfig.entities.versionEntry.name]: () =>\n import('./entities/version-entry/version-entry.entity.js').then((m) => m.factoryVersionEntry()),\n [RootConfig.entities.versionStream.name]: () =>\n import('./entities/version-stream/version-stream.entity.js').then((m) => m.factoryVersionStream()),\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,QAAQ;AACd,IAAA,MAAM,EAAE,QAAQ;CACjB;AAEM,MAAM,UAAU,GAAG;IACxB,MAAM;AACN,IAAA,MAAM,EAAE;AACN,QAAA,KAAK,EAAE,QAAQ;QACf,IAAI,EAAE,MAAM,CAAC,MAAM;AACnB,QAAA,KAAK,EAAE,8BAA8B;AACrC,QAAA,IAAI,EAAE,0BAA0B;AACjC,KAAA;AACD,IAAA,QAAQ,EAAE;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C,IAAI,GAAG,MACxC,OAAO,oGAAoD,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,oBAAoB,EAAE,CAAC;AACrG,KAAA;;AAGH;;AC3BA;;AAEG;;"}
@@ -0,0 +1,95 @@
1
+ import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';
2
+ import { createAllQueryView } from '@acorex-platform/framework-shared/entity';
3
+ import { R as RootConfig } from './acorex-platform-module-common-client-contracts-entity-catalog-acorex-platform-module-common-client-contracts-entity-catalog-C2WFbRne.mjs';
4
+
5
+ //#region ---- Record lock entity (edit locks) ----
6
+ async function factoryRecordLock() {
7
+ const entityDef = {
8
+ module: RootConfig.module.name,
9
+ name: RootConfig.entities.recordLock.name,
10
+ title: RootConfig.entities.recordLock.title,
11
+ icon: RootConfig.entities.recordLock.icon,
12
+ formats: {
13
+ individual: RootConfig.entities.recordLock.title,
14
+ plural: RootConfig.entities.recordLock.titlePlural,
15
+ searchResult: {
16
+ title: '{{ refType }} / {{ refId }}',
17
+ description: '{{ type }}',
18
+ },
19
+ },
20
+ groups: [{ id: 'overview', title: 'Overview' }],
21
+ properties: [
22
+ {
23
+ name: 'id',
24
+ title: 'ID',
25
+ groupId: 'overview',
26
+ schema: {
27
+ dataType: 'uuid',
28
+ visible: false,
29
+ nullable: false,
30
+ readonly: true,
31
+ unique: { enabled: true },
32
+ },
33
+ },
34
+ {
35
+ name: 'refId',
36
+ title: 'Reference Id',
37
+ groupId: 'overview',
38
+ schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text }, readonly: true },
39
+ },
40
+ {
41
+ name: 'refType',
42
+ title: 'Reference Type',
43
+ groupId: 'overview',
44
+ schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text }, readonly: true },
45
+ },
46
+ {
47
+ name: 'type',
48
+ title: 'Lock Type',
49
+ groupId: 'overview',
50
+ schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text }, readonly: true },
51
+ },
52
+ {
53
+ name: 'date',
54
+ title: 'Lock Date',
55
+ groupId: 'overview',
56
+ schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text }, readonly: true },
57
+ },
58
+ {
59
+ name: 'expireAt',
60
+ title: 'Expires At',
61
+ groupId: 'overview',
62
+ schema: {
63
+ dataType: 'datetime',
64
+ interface: { type: AXPWidgetsCatalog.dateTime, options: { format: 'datetime' } },
65
+ readonly: true,
66
+ },
67
+ },
68
+ {
69
+ name: 'lockedBy',
70
+ title: 'Locked By',
71
+ groupId: 'overview',
72
+ schema: { dataType: 'object', interface: { type: 'json' }, readonly: true },
73
+ },
74
+ ],
75
+ columns: [
76
+ { name: 'refType' },
77
+ { name: 'refId' },
78
+ { name: 'type' },
79
+ { name: 'expireAt' },
80
+ ],
81
+ interfaces: {
82
+ master: {
83
+ list: {
84
+ actions: [],
85
+ views: [createAllQueryView({})],
86
+ },
87
+ },
88
+ },
89
+ };
90
+ return entityDef;
91
+ }
92
+ //#endregion
93
+
94
+ export { factoryRecordLock };
95
+ //# sourceMappingURL=acorex-platform-module-common-client-contracts-entity-catalog-record-lock.entity-CY6jfaD7.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-common-client-contracts-entity-catalog-record-lock.entity-CY6jfaD7.mjs","sources":["../../../../libs/modules/common/contracts/src/entities/record-lock/record-lock.entity.ts"],"sourcesContent":["import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView } from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\n\n//#region ---- Record lock entity (edit locks) ----\n\nexport async function factoryRecordLock(): Promise<AXPEntity | null> {\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.recordLock.name,\n title: RootConfig.entities.recordLock.title,\n icon: RootConfig.entities.recordLock.icon,\n formats: {\n individual: RootConfig.entities.recordLock.title,\n plural: RootConfig.entities.recordLock.titlePlural,\n searchResult: {\n title: '{{ refType }} / {{ refId }}',\n description: '{{ type }}',\n },\n },\n groups: [{ id: 'overview', title: 'Overview' }],\n properties: [\n {\n name: 'id',\n title: 'ID',\n groupId: 'overview',\n schema: {\n dataType: 'uuid',\n visible: false,\n nullable: false,\n readonly: true,\n unique: { enabled: true },\n },\n },\n {\n name: 'refId',\n title: 'Reference Id',\n groupId: 'overview',\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text }, readonly: true },\n },\n {\n name: 'refType',\n title: 'Reference Type',\n groupId: 'overview',\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text }, readonly: true },\n },\n {\n name: 'type',\n title: 'Lock Type',\n groupId: 'overview',\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text }, readonly: true },\n },\n {\n name: 'date',\n title: 'Lock Date',\n groupId: 'overview',\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text }, readonly: true },\n },\n {\n name: 'expireAt',\n title: 'Expires At',\n groupId: 'overview',\n schema: {\n dataType: 'datetime',\n interface: { type: AXPWidgetsCatalog.dateTime, options: { format: 'datetime' } },\n readonly: true,\n },\n },\n {\n name: 'lockedBy',\n title: 'Locked By',\n groupId: 'overview',\n schema: { dataType: 'object', interface: { type: 'json' }, readonly: true },\n },\n ],\n columns: [\n { name: 'refType' },\n { name: 'refId' },\n { name: 'type' },\n { name: 'expireAt' },\n ],\n interfaces: {\n master: {\n list: {\n actions: [],\n views: [createAllQueryView({})],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;AAIA;AAEO,eAAe,iBAAiB,GAAA;AACrC,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MAAM,CAAC,IAAI;AAC9B,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,IAAI;AACzC,QAAA,KAAK,EAAE,UAAU,CAAC,QAAQ,CAAC,UAAU,CAAC,KAAK;AAC3C,QAAA,IAAI,EAAE,UAA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AI,EAAE,OAAO,EAAE;YACjB,EAAE,IAAI,EAAE,MAAM,EAAE;YAChB,EAAE,IAAI,EAAE,UAAU,EAAE;AACrB,SAAA;AACD,QAAA,UAAU,EAAE;AACV,YAAA,MAAM,EAAE;AACN,gBAAA,IAAI,EAAE;AACJ,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,KAAK,EAAE,CAAC,kBAAkB,CAAC,EAAE,CAAC,CAAC;AAChC,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;AAEA;;"}
@@ -0,0 +1,165 @@
1
+ import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';
2
+ import { createAllQueryView } from '@acorex-platform/framework-shared/entity';
3
+ import { R as RootConfig } from './acorex-platform-module-common-client-contracts-entity-catalog-acorex-platform-module-common-client-contracts-entity-catalog-C2WFbRne.mjs';
4
+
5
+ //#region ---- Version entry entity ----
6
+ async function factoryVersionEntry() {
7
+ const i18n = RootConfig.config.i18n;
8
+ const entityDef = {
9
+ module: RootConfig.module.name,
10
+ name: RootConfig.entities.versionEntry.name,
11
+ title: `@${i18n}:version-history.entities.version-entry.title`,
12
+ icon: RootConfig.entities.versionEntry.icon,
13
+ formats: {
14
+ individual: `@${i18n}:version-history.entities.version-entry.title`,
15
+ plural: `@${i18n}:version-history.entities.version-entry.plural`,
16
+ searchResult: {
17
+ title: '#{{ versionNumber }} {{ changeType }}',
18
+ description: '{{ changedAt }}',
19
+ },
20
+ },
21
+ groups: [
22
+ {
23
+ id: 'overview',
24
+ title: `@general:terms.interface.basic-info`,
25
+ },
26
+ {
27
+ id: 'change',
28
+ title: `@${i18n}:version-history.entities.version-entry.groups.change`,
29
+ },
30
+ {
31
+ id: 'payload',
32
+ title: `@${i18n}:version-history.entities.version-entry.groups.payload`,
33
+ },
34
+ ],
35
+ properties: [
36
+ {
37
+ name: 'id',
38
+ title: `@general:terms.common.id`,
39
+ groupId: 'overview',
40
+ schema: {
41
+ dataType: 'string',
42
+ visible: false,
43
+ nullable: false,
44
+ readonly: true,
45
+ unique: { enabled: true },
46
+ },
47
+ },
48
+ {
49
+ name: 'streamId',
50
+ title: `@${i18n}:version-history.entities.version-entry.fields.stream.title`,
51
+ groupId: 'overview',
52
+ schema: {
53
+ dataType: 'string',
54
+ readonly: true,
55
+ interface: { type: AXPWidgetsCatalog.text },
56
+ },
57
+ },
58
+ {
59
+ name: 'versionNumber',
60
+ title: `@${i18n}:version-history.entities.version-entry.fields.version-number.title`,
61
+ groupId: 'overview',
62
+ schema: {
63
+ dataType: 'number',
64
+ interface: { type: AXPWidgetsCatalog.number },
65
+ readonly: true,
66
+ },
67
+ },
68
+ {
69
+ name: 'changeType',
70
+ title: `@${i18n}:version-history.entities.version-entry.fields.change-type.title`,
71
+ groupId: 'change',
72
+ schema: {
73
+ dataType: 'string',
74
+ interface: {
75
+ type: AXPWidgetsCatalog.select,
76
+ options: {
77
+ valueField: 'value',
78
+ textField: 'text',
79
+ dataSource: [
80
+ { value: 'Create', text: `@${i18n}:version-history.change-types.create` },
81
+ { value: 'Update', text: `@${i18n}:version-history.change-types.update` },
82
+ { value: 'Delete', text: `@${i18n}:version-history.change-types.delete` },
83
+ ],
84
+ },
85
+ },
86
+ readonly: true,
87
+ },
88
+ },
89
+ {
90
+ name: 'changedBy',
91
+ title: `@${i18n}:version-history.entities.version-entry.fields.changed-by.title`,
92
+ groupId: 'change',
93
+ schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text }, readonly: true },
94
+ },
95
+ {
96
+ name: 'changedByName',
97
+ title: `@${i18n}:version-history.entities.version-entry.fields.changed-by-name.title`,
98
+ groupId: 'change',
99
+ schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text }, readonly: true },
100
+ },
101
+ {
102
+ name: 'changedAt',
103
+ title: `@${i18n}:version-history.entities.version-entry.fields.changed-at.title`,
104
+ groupId: 'change',
105
+ schema: {
106
+ dataType: 'datetime',
107
+ interface: { type: AXPWidgetsCatalog.dateTime, options: { format: 'datetime' } },
108
+ readonly: true,
109
+ },
110
+ },
111
+ {
112
+ name: 'summary',
113
+ title: `@${i18n}:version-history.entities.version-entry.fields.summary.title`,
114
+ groupId: 'change',
115
+ schema: {
116
+ dataType: 'object',
117
+ interface: { type: 'json' },
118
+ readonly: true,
119
+ },
120
+ },
121
+ {
122
+ name: 'changeLines',
123
+ title: `@${i18n}:version-history.entities.version-entry.fields.change-lines.title`,
124
+ groupId: 'change',
125
+ schema: {
126
+ dataType: 'object',
127
+ interface: { type: 'json' },
128
+ readonly: true,
129
+ },
130
+ },
131
+ {
132
+ name: 'snapshotJson',
133
+ title: `@${i18n}:version-history.entities.version-entry.fields.snapshot.title`,
134
+ groupId: 'payload',
135
+ schema: { dataType: 'object', interface: { type: 'json' }, readonly: true },
136
+ },
137
+ {
138
+ name: 'patchFromPrevJson',
139
+ title: `@${i18n}:version-history.entities.version-entry.fields.patch.title`,
140
+ groupId: 'payload',
141
+ schema: { dataType: 'object', interface: { type: 'json' }, readonly: true },
142
+ },
143
+ ],
144
+ columns: [
145
+ { name: 'streamId' },
146
+ { name: 'versionNumber' },
147
+ { name: 'changeType' },
148
+ { name: 'summary' },
149
+ { name: 'changedAt' },
150
+ ],
151
+ interfaces: {
152
+ master: {
153
+ list: {
154
+ actions: [],
155
+ views: [createAllQueryView({})],
156
+ },
157
+ },
158
+ },
159
+ };
160
+ return entityDef;
161
+ }
162
+ //#endregion
163
+
164
+ export { factoryVersionEntry };
165
+ //# sourceMappingURL=acorex-platform-module-common-client-contracts-entity-catalog-version-entry.entity-DCBxAIMJ.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-common-client-contracts-entity-catalog-version-entry.entity-DCBxAIMJ.mjs","sources":["../../../../libs/modules/common/contracts/src/entities/version-entry/version-entry.entity.ts"],"sourcesContent":["import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView } from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\n\n//#region ---- Version entry entity ----\n\nexport async function factoryVersionEntry(): Promise<AXPEntity | null> {\n const i18n = RootConfig.config.i18n;\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.versionEntry.name,\n title: `@${i18n}:version-history.entities.version-entry.title`,\n icon: RootConfig.entities.versionEntry.icon,\n formats: {\n individual: `@${i18n}:version-history.entities.version-entry.title`,\n plural: `@${i18n}:version-history.entities.version-entry.plural`,\n searchResult: {\n title: '#{{ versionNumber }} {{ changeType }}',\n description: '{{ changedAt }}',\n },\n },\n groups: [\n {\n id: 'overview',\n title: `@general:terms.interface.basic-info`,\n },\n {\n id: 'change',\n title: `@${i18n}:version-history.entities.version-entry.groups.change`,\n },\n {\n id: 'payload',\n title: `@${i18n}:version-history.entities.version-entry.groups.payload`,\n },\n ],\n properties: [\n {\n name: 'id',\n title: `@general:terms.common.id`,\n groupId: 'overview',\n schema: {\n dataType: 'string',\n visible: false,\n nullable: false,\n readonly: true,\n unique: { enabled: true },\n },\n },\n {\n name: 'streamId',\n title: `@${i18n}:version-history.entities.version-entry.fields.stream.title`,\n groupId: 'overview',\n schema: {\n dataType: 'string',\n readonly: true,\n interface: { type: AXPWidgetsCatalog.text },\n },\n },\n {\n name: 'versionNumber',\n title: `@${i18n}:version-history.entities.version-entry.fields.version-number.title`,\n groupId: 'overview',\n schema: {\n dataType: 'number',\n interface: { type: AXPWidgetsCatalog.number },\n readonly: true,\n },\n },\n {\n name: 'changeType',\n title: `@${i18n}:version-history.entities.version-entry.fields.change-type.title`,\n groupId: 'change',\n schema: {\n dataType: 'string',\n interface: {\n type: AXPWidgetsCatalog.select,\n options: {\n valueField: 'value',\n textField: 'text',\n dataSource: [\n { value: 'Create', text: `@${i18n}:version-history.change-types.create` },\n { value: 'Update', text: `@${i18n}:version-history.change-types.update` },\n { value: 'Delete', text: `@${i18n}:version-history.change-types.delete` },\n ],\n },\n },\n readonly: true,\n },\n },\n {\n name: 'changedBy',\n title: `@${i18n}:version-history.entities.version-entry.fields.changed-by.title`,\n groupId: 'change',\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text }, readonly: true },\n },\n {\n name: 'changedByName',\n title: `@${i18n}:version-history.entities.version-entry.fields.changed-by-name.title`,\n groupId: 'change',\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text }, readonly: true },\n },\n {\n name: 'changedAt',\n title: `@${i18n}:version-history.entities.version-entry.fields.changed-at.title`,\n groupId: 'change',\n schema: {\n dataType: 'datetime',\n interface: { type: AXPWidgetsCatalog.dateTime, options: { format: 'datetime' } },\n readonly: true,\n },\n },\n {\n name: 'summary',\n title: `@${i18n}:version-history.entities.version-entry.fields.summary.title`,\n groupId: 'change',\n schema: {\n dataType: 'object',\n interface: { type: 'json' },\n readonly: true,\n },\n },\n {\n name: 'changeLines',\n title: `@${i18n}:version-history.entities.version-entry.fields.change-lines.title`,\n groupId: 'change',\n schema: {\n dataType: 'object',\n interface: { type: 'json' },\n readonly: true,\n },\n },\n {\n name: 'snapshotJson',\n title: `@${i18n}:version-history.entities.version-entry.fields.snapshot.title`,\n groupId: 'payload',\n schema: { dataType: 'object', interface: { type: 'json' }, readonly: true },\n },\n {\n name: 'patchFromPrevJson',\n title: `@${i18n}:version-history.entities.version-entry.fields.patch.title`,\n groupId: 'payload',\n schema: { dataType: 'object', interface: { type: 'json' }, readonly: true },\n },\n ],\n columns: [\n { name: 'streamId' },\n { name: 'versionNumber' },\n { name: 'changeType' },\n { name: 'summary' },\n { name: 'changedAt' },\n ],\n interfaces: {\n master: {\n list: {\n actions: [],\n views: [createAllQueryView({})],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;AAIA;AAEO,eAAe,mBAAmB,GAAA;AACvC,IAAA,MAAM,IAAI,GAAG,UAAU,CAAC,MAAM,CAAC,IAAI;AAEnC,IAAA,MAAM,SAAS,GAAc;AAC3B,QAAA,MAAM,EAAE,UAAU,CAAC,MA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E,SAAS,EAAE;YACnB,EAAE,IAAI,EAAE,WAAW,EAAE;AACtB,SAAA;AACD,QAAA,UAAU,EAAE;AACV,YAAA,MAAM,EAAE;AACN,gBAAA,IAAI,EAAE;AACJ,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,KAAK,EAAE,CAAC,kBAAkB,CAAC,EAAE,CAAC,CAAC;AAChC,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;AAEA;;"}
@@ -0,0 +1,78 @@
1
+ import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';
2
+ import { createAllQueryView } from '@acorex-platform/framework-shared/entity';
3
+ import { R as RootConfig } from './acorex-platform-module-common-client-contracts-entity-catalog-acorex-platform-module-common-client-contracts-entity-catalog-C2WFbRne.mjs';
4
+
5
+ //#region ---- Version stream entity ----
6
+ async function factoryVersionStream() {
7
+ const i18n = RootConfig.config.i18n;
8
+ const entityDef = {
9
+ module: RootConfig.module.name,
10
+ name: RootConfig.entities.versionStream.name,
11
+ title: `@${i18n}:version-history.entities.version-stream.title`,
12
+ icon: RootConfig.entities.versionStream.icon,
13
+ formats: {
14
+ individual: `@${i18n}:version-history.entities.version-stream.title`,
15
+ plural: `@${i18n}:version-history.entities.version-stream.plural`,
16
+ searchResult: {
17
+ title: '{{ entityType }} / {{ entityId }}',
18
+ description: '{{ createdAt }}',
19
+ },
20
+ },
21
+ groups: [
22
+ {
23
+ id: 'overview',
24
+ title: `@general:terms.interface.basic-info`,
25
+ },
26
+ ],
27
+ properties: [
28
+ {
29
+ name: 'id',
30
+ title: `@general:terms.common.id`,
31
+ groupId: 'overview',
32
+ schema: {
33
+ dataType: 'string',
34
+ visible: false,
35
+ nullable: false,
36
+ readonly: true,
37
+ unique: { enabled: true },
38
+ },
39
+ },
40
+ {
41
+ name: 'entityType',
42
+ title: `@${i18n}:version-history.entities.version-stream.fields.entity-type.title`,
43
+ groupId: 'overview',
44
+ schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text }, readonly: true },
45
+ },
46
+ {
47
+ name: 'entityId',
48
+ title: `@${i18n}:version-history.entities.version-stream.fields.entity-id.title`,
49
+ groupId: 'overview',
50
+ schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text }, readonly: true },
51
+ },
52
+ {
53
+ name: 'createdAt',
54
+ title: `@${i18n}:version-history.entities.version-stream.fields.created-at.title`,
55
+ groupId: 'overview',
56
+ schema: {
57
+ dataType: 'datetime',
58
+ interface: { type: AXPWidgetsCatalog.dateTime, options: { format: 'datetime' } },
59
+ readonly: true,
60
+ },
61
+ },
62
+ ],
63
+ columns: [{ name: 'entityType' }, { name: 'entityId' }, { name: 'createdAt' }],
64
+ interfaces: {
65
+ master: {
66
+ list: {
67
+ actions: [],
68
+ views: [createAllQueryView({})],
69
+ },
70
+ },
71
+ },
72
+ };
73
+ return entityDef;
74
+ }
75
+ //#endregion
76
+
77
+ export { factoryVersionStream };
78
+ //# sourceMappingURL=acorex-platform-module-common-client-contracts-entity-catalog-version-stream.entity-DbSB34vz.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-common-client-contracts-entity-catalog-version-stream.entity-DbSB34vz.mjs","sources":["../../../../libs/modules/common/contracts/src/entities/version-stream/version-stream.entity.ts"],"sourcesContent":["import { AXPWidgetsCatalog } from '@acorex-platform/framework-shared/core';\nimport { AXPEntity, createAllQueryView } from '@acorex-platform/framework-shared/entity';\nimport { RootConfig } from '../../root-config';\n\n//#region ---- Version stream entity ----\n\nexport async function factoryVersionStream(): Promise<AXPEntity | null> {\n const i18n = RootConfig.config.i18n;\n\n const entityDef: AXPEntity = {\n module: RootConfig.module.name,\n name: RootConfig.entities.versionStream.name,\n title: `@${i18n}:version-history.entities.version-stream.title`,\n icon: RootConfig.entities.versionStream.icon,\n formats: {\n individual: `@${i18n}:version-history.entities.version-stream.title`,\n plural: `@${i18n}:version-history.entities.version-stream.plural`,\n searchResult: {\n title: '{{ entityType }} / {{ entityId }}',\n description: '{{ createdAt }}',\n },\n },\n groups: [\n {\n id: 'overview',\n title: `@general:terms.interface.basic-info`,\n },\n ],\n properties: [\n {\n name: 'id',\n title: `@general:terms.common.id`,\n groupId: 'overview',\n schema: {\n dataType: 'string',\n visible: false,\n nullable: false,\n readonly: true,\n unique: { enabled: true },\n },\n },\n {\n name: 'entityType',\n title: `@${i18n}:version-history.entities.version-stream.fields.entity-type.title`,\n groupId: 'overview',\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text }, readonly: true },\n },\n {\n name: 'entityId',\n title: `@${i18n}:version-history.entities.version-stream.fields.entity-id.title`,\n groupId: 'overview',\n schema: { dataType: 'string', interface: { type: AXPWidgetsCatalog.text }, readonly: true },\n },\n {\n name: 'createdAt',\n title: `@${i18n}:version-history.entities.version-stream.fields.created-at.title`,\n groupId: 'overview',\n schema: {\n dataType: 'datetime',\n interface: { type: AXPWidgetsCatalog.dateTime, options: { format: 'datetime' } },\n readonly: true,\n },\n },\n ],\n columns: [{ name: 'entityType' }, { name: 'entityId' }, { name: 'createdAt' }],\n interfaces: {\n master: {\n list: {\n actions: [],\n views: [createAllQueryView({})],\n },\n },\n },\n };\n\n return entityDef;\n}\n\n//#endregion\n"],"names":[],"mappings":";;;;AAIA;AAEO,eAAe,oBAAoB,GAAA;AACxC,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,aAAa,CAAC,IAAI;QAC5C,KAAK,EAAE,CAAA,CAAA,EAAI,IAAI,CAAA,8CAAA,CAAgD;AAC/D,QAAA,IAAI,EAAE,UAAU,CAAC,QAAQ,CAAC,aAAa,CAAC,IAAI;AAC5C,QAAA,OAAO,EAAE;YACP,UAAU,EAAE,CAAA,CAAA,EAAI,IAAI,CAAA,8CAA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AAE,EAAE,QAAQ,EAAE,IAAI,EAAE;AAC5F,aAAA;AACD,YAAA;AACE,gBAAA,IAAI,EAAE,WAAW;gBACjB,KAAK,EAAE,CAAA,CAAA,EAAI,IAAI,CAAA,gEAAA,CAAkE;AACjF,gBAAA,OAAO,EAAE,UAAU;AACnB,gBAAA,MAAM,EAAE;AACN,oBAAA,QAAQ,EAAE,UAAU;AACpB,oBAAA,SAAS,EAAE,EAAE,IAAI,EAAE,iBAAiB,CAAC,QAAQ,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE;AAChF,oBAAA,QAAQ,EAAE,IAAI;AACf,iBAAA;AACF,aAAA;AACF,SAAA;AACD,QAAA,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;AAC9E,QAAA,UAAU,EAAE;AACV,YAAA,MAAM,EAAE;AACN,gBAAA,IAAI,EAAE;AACJ,oBAAA,OAAO,EAAE,EAAE;AACX,oBAAA,KAAK,EAAE,CAAC,kBAAkB,CAAC,EAAE,CAAC,CAAC;AAChC,iBAAA;AACF,aAAA;AACF,SAAA;KACF;AAED,IAAA,OAAO,SAAS;AAClB;AAEA;;"}
@@ -0,0 +1,2 @@
1
+ export { c as commonLocalEntityCatalog } from './acorex-platform-module-common-client-contracts-entity-catalog-acorex-platform-module-common-client-contracts-entity-catalog-C2WFbRne.mjs';
2
+ //# sourceMappingURL=acorex-platform-module-common-client-contracts-entity-catalog.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"acorex-platform-module-common-client-contracts-entity-catalog.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":""}