@acorex-platform/module-common-client 1.0.2 → 2.0.0-beta.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/README.md +34 -0
  2. package/fesm2022/{acorex-platform-module-common-client-acorex-platform-module-common-client-C_NblzG7.mjs → acorex-platform-module-common-client-acorex-platform-module-common-client-DctPmGJ6.mjs} +4036 -3882
  3. package/fesm2022/acorex-platform-module-common-client-acorex-platform-module-common-client-DctPmGJ6.mjs.map +1 -0
  4. package/fesm2022/{acorex-platform-module-common-client-archive-entity.command-BJi7V9qA.mjs → acorex-platform-module-common-client-archive-entity.command-Cch8STm7.mjs} +3 -3
  5. package/fesm2022/acorex-platform-module-common-client-archive-entity.command-Cch8STm7.mjs.map +1 -0
  6. package/fesm2022/{acorex-platform-module-common-client-archive-entity.command.util-DoXkO9DT.mjs → acorex-platform-module-common-client-archive-entity.command.util-Cy1H1Gn8.mjs} +7 -6
  7. package/fesm2022/acorex-platform-module-common-client-archive-entity.command.util-Cy1H1Gn8.mjs.map +1 -0
  8. package/fesm2022/{acorex-platform-module-common-client-audit-info-column.component-Cn2vJ2qK.mjs → acorex-platform-module-common-client-audit-info-column.component-Lta_QYvp.mjs} +3 -3
  9. package/fesm2022/{acorex-platform-module-common-client-audit-info-column.component-Cn2vJ2qK.mjs.map → acorex-platform-module-common-client-audit-info-column.component-Lta_QYvp.mjs.map} +1 -1
  10. package/fesm2022/{acorex-platform-module-common-client-audit-info-edit.component-aCgPXlef.mjs → acorex-platform-module-common-client-audit-info-edit.component-CQxZaIsN.mjs} +2 -2
  11. package/fesm2022/{acorex-platform-module-common-client-audit-info-edit.component-aCgPXlef.mjs.map → acorex-platform-module-common-client-audit-info-edit.component-CQxZaIsN.mjs.map} +1 -1
  12. package/fesm2022/{acorex-platform-module-common-client-audit-info-view.component-lgzqcHCv.mjs → acorex-platform-module-common-client-audit-info-view.component-BAHOvZvl.mjs} +2 -2
  13. package/fesm2022/{acorex-platform-module-common-client-audit-info-view.component-lgzqcHCv.mjs.map → acorex-platform-module-common-client-audit-info-view.component-BAHOvZvl.mjs.map} +1 -1
  14. package/fesm2022/{acorex-platform-module-common-client-audit-info.util-CUlUTX8l.mjs → acorex-platform-module-common-client-audit-info.util-DG-xYAal.mjs} +1 -1
  15. package/fesm2022/{acorex-platform-module-common-client-audit-info.util-CUlUTX8l.mjs.map → acorex-platform-module-common-client-audit-info.util-DG-xYAal.mjs.map} +1 -1
  16. package/fesm2022/{acorex-platform-module-common-client-bulk-archive-entity.command-DPFiA8I2.mjs → acorex-platform-module-common-client-bulk-archive-entity.command-CZgAvnBe.mjs} +4 -2
  17. package/fesm2022/acorex-platform-module-common-client-bulk-archive-entity.command-CZgAvnBe.mjs.map +1 -0
  18. package/fesm2022/{acorex-platform-module-common-client-bulk-disable-entity.command-DgoZVXQA.mjs → acorex-platform-module-common-client-bulk-disable-entity.command-Bh-kJscd.mjs} +4 -2
  19. package/fesm2022/acorex-platform-module-common-client-bulk-disable-entity.command-Bh-kJscd.mjs.map +1 -0
  20. package/fesm2022/{acorex-platform-module-common-client-bulk-enable-entity.command-C6fba__g.mjs → acorex-platform-module-common-client-bulk-enable-entity.command-CEeSvggU.mjs} +4 -2
  21. package/fesm2022/acorex-platform-module-common-client-bulk-enable-entity.command-CEeSvggU.mjs.map +1 -0
  22. package/fesm2022/{acorex-platform-module-common-client-bulk-restore-archive-entity.command-C2BTAz4o.mjs → acorex-platform-module-common-client-bulk-restore-archive-entity.command-fqb5ArcI.mjs} +4 -2
  23. package/fesm2022/acorex-platform-module-common-client-bulk-restore-archive-entity.command-fqb5ArcI.mjs.map +1 -0
  24. package/fesm2022/{acorex-platform-module-common-client-clone-entity.command-BVzVgOEh.mjs → acorex-platform-module-common-client-clone-entity.command-B6Qh3-Dc.mjs} +2 -2
  25. package/fesm2022/{acorex-platform-module-common-client-clone-entity.command-BVzVgOEh.mjs.map → acorex-platform-module-common-client-clone-entity.command-B6Qh3-Dc.mjs.map} +1 -1
  26. package/fesm2022/acorex-platform-module-common-client-contracts-entities-record-lock.mjs +1 -1
  27. package/fesm2022/acorex-platform-module-common-client-contracts-entities-record-lock.mjs.map +1 -1
  28. package/fesm2022/acorex-platform-module-common-client-contracts-entities-version-entry.mjs +12 -1
  29. package/fesm2022/acorex-platform-module-common-client-contracts-entities-version-entry.mjs.map +1 -1
  30. package/fesm2022/acorex-platform-module-common-client-contracts-entities-version-stream.mjs +6 -1
  31. package/fesm2022/acorex-platform-module-common-client-contracts-entities-version-stream.mjs.map +1 -1
  32. package/fesm2022/{acorex-platform-module-common-client-contracts-entity-catalog-acorex-platform-module-common-client-contracts-entity-catalog-8_tVyorm.mjs → acorex-platform-module-common-client-contracts-entity-catalog-acorex-platform-module-common-client-contracts-entity-catalog-DXSFzx6y.mjs} +4 -4
  33. package/fesm2022/{acorex-platform-module-common-client-contracts-entity-catalog-acorex-platform-module-common-client-contracts-entity-catalog-8_tVyorm.mjs.map → acorex-platform-module-common-client-contracts-entity-catalog-acorex-platform-module-common-client-contracts-entity-catalog-DXSFzx6y.mjs.map} +1 -1
  34. package/fesm2022/{acorex-platform-module-common-client-contracts-entity-catalog-record-lock.entity-DLA5qjPs.mjs → acorex-platform-module-common-client-contracts-entity-catalog-record-lock.entity-B1DYeWEA.mjs} +3 -3
  35. package/fesm2022/acorex-platform-module-common-client-contracts-entity-catalog-record-lock.entity-B1DYeWEA.mjs.map +1 -0
  36. package/fesm2022/{acorex-platform-module-common-client-contracts-entity-catalog-version-entry.entity-C07SlyK0.mjs → acorex-platform-module-common-client-contracts-entity-catalog-version-entry.entity-CrkyGd48.mjs} +14 -3
  37. package/fesm2022/acorex-platform-module-common-client-contracts-entity-catalog-version-entry.entity-CrkyGd48.mjs.map +1 -0
  38. package/fesm2022/{acorex-platform-module-common-client-contracts-entity-catalog-version-stream.entity-C7LJK2Gt.mjs → acorex-platform-module-common-client-contracts-entity-catalog-version-stream.entity-Bg87yGRN.mjs} +8 -3
  39. package/fesm2022/acorex-platform-module-common-client-contracts-entity-catalog-version-stream.entity-Bg87yGRN.mjs.map +1 -0
  40. package/fesm2022/acorex-platform-module-common-client-contracts-entity-catalog.mjs +1 -1
  41. package/fesm2022/acorex-platform-module-common-client-contracts.mjs +20 -9
  42. package/fesm2022/acorex-platform-module-common-client-contracts.mjs.map +1 -1
  43. package/fesm2022/{acorex-platform-module-common-client-create-entity-version-draft.command-CbLI7jvZ.mjs → acorex-platform-module-common-client-create-entity-version-draft.command-BSEut8OA.mjs} +2 -2
  44. package/fesm2022/{acorex-platform-module-common-client-create-entity-version-draft.command-CbLI7jvZ.mjs.map → acorex-platform-module-common-client-create-entity-version-draft.command-BSEut8OA.mjs.map} +1 -1
  45. package/fesm2022/{acorex-platform-module-common-client-delete-entity-version-draft.command-CLWHs4DO.mjs → acorex-platform-module-common-client-delete-entity-version-draft.command-dqyL50pr.mjs} +2 -2
  46. package/fesm2022/{acorex-platform-module-common-client-delete-entity-version-draft.command-CLWHs4DO.mjs.map → acorex-platform-module-common-client-delete-entity-version-draft.command-dqyL50pr.mjs.map} +1 -1
  47. package/fesm2022/{acorex-platform-module-common-client-disable-entity.command-Bc1uH38V.mjs → acorex-platform-module-common-client-disable-entity.command-Bw8_VjZb.mjs} +3 -3
  48. package/fesm2022/acorex-platform-module-common-client-disable-entity.command-Bw8_VjZb.mjs.map +1 -0
  49. package/fesm2022/{acorex-platform-module-common-client-disable-entity.command.util-DQl6u2nj.mjs → acorex-platform-module-common-client-disable-entity.command.util-BmYWDNV6.mjs} +6 -5
  50. package/fesm2022/acorex-platform-module-common-client-disable-entity.command.util-BmYWDNV6.mjs.map +1 -0
  51. package/fesm2022/{acorex-platform-module-common-client-enable-entity.command-DeTumWIj.mjs → acorex-platform-module-common-client-enable-entity.command-Dkh_SjIl.mjs} +3 -3
  52. package/fesm2022/acorex-platform-module-common-client-enable-entity.command-Dkh_SjIl.mjs.map +1 -0
  53. package/fesm2022/{acorex-platform-module-common-client-get-current-time.command-Ck_SC5Bu.mjs → acorex-platform-module-common-client-get-current-time.command-BIa1Tift.mjs} +1 -1
  54. package/fesm2022/{acorex-platform-module-common-client-get-current-time.command-Ck_SC5Bu.mjs.map → acorex-platform-module-common-client-get-current-time.command-BIa1Tift.mjs.map} +1 -1
  55. package/fesm2022/{acorex-platform-module-common-client-publish-entity-version.command-JNy0K1ZR.mjs → acorex-platform-module-common-client-publish-entity-version.command-BCsalr4s.mjs} +2 -2
  56. package/fesm2022/{acorex-platform-module-common-client-publish-entity-version.command-JNy0K1ZR.mjs.map → acorex-platform-module-common-client-publish-entity-version.command-BCsalr4s.mjs.map} +1 -1
  57. package/fesm2022/{acorex-platform-module-common-client-restore-archive-entity.command-DXY_piiw.mjs → acorex-platform-module-common-client-restore-archive-entity.command-BfIV7Xvo.mjs} +3 -3
  58. package/fesm2022/acorex-platform-module-common-client-restore-archive-entity.command-BfIV7Xvo.mjs.map +1 -0
  59. package/fesm2022/{acorex-platform-module-common-client-search-popup.component-BaSC4-wz.mjs → acorex-platform-module-common-client-search-popup.component-CzzajSnd.mjs} +4 -4
  60. package/fesm2022/{acorex-platform-module-common-client-search-popup.component-BaSC4-wz.mjs.map → acorex-platform-module-common-client-search-popup.component-CzzajSnd.mjs.map} +1 -1
  61. package/fesm2022/{acorex-platform-module-common-client-show-entity-version-history.command-CoFbuUYP.mjs → acorex-platform-module-common-client-show-entity-version-history.command-DzXsd2UV.mjs} +2 -2
  62. package/fesm2022/{acorex-platform-module-common-client-show-entity-version-history.command-CoFbuUYP.mjs.map → acorex-platform-module-common-client-show-entity-version-history.command-DzXsd2UV.mjs.map} +1 -1
  63. package/fesm2022/{acorex-platform-module-common-client-timeline-version-history-popup.component-CB9s1X3B.mjs → acorex-platform-module-common-client-timeline-version-history-popup.component-BzYK-zvE.mjs} +2 -2
  64. package/fesm2022/{acorex-platform-module-common-client-timeline-version-history-popup.component-CB9s1X3B.mjs.map → acorex-platform-module-common-client-timeline-version-history-popup.component-BzYK-zvE.mjs.map} +1 -1
  65. package/fesm2022/{acorex-platform-module-common-client-versioning-entity.command.util-Bibv8EgV.mjs → acorex-platform-module-common-client-versioning-entity.command.util-CIpyMuIs.mjs} +1 -1
  66. package/fesm2022/{acorex-platform-module-common-client-versioning-entity.command.util-Bibv8EgV.mjs.map → acorex-platform-module-common-client-versioning-entity.command.util-CIpyMuIs.mjs.map} +1 -1
  67. package/fesm2022/acorex-platform-module-common-client.mjs +1 -1
  68. package/i18n/en-AU/common.json +25 -5
  69. package/i18n/en-US/common.json +25 -5
  70. package/i18n/fa-IR/common.json +21 -1
  71. package/package.json +1 -1
  72. package/types/acorex-platform-module-common-client-contracts.d.ts +9 -7
  73. package/types/acorex-platform-module-common-client.d.ts +43 -4
  74. package/fesm2022/acorex-platform-module-common-client-acorex-platform-module-common-client-C_NblzG7.mjs.map +0 -1
  75. package/fesm2022/acorex-platform-module-common-client-archive-entity.command-BJi7V9qA.mjs.map +0 -1
  76. package/fesm2022/acorex-platform-module-common-client-archive-entity.command.util-DoXkO9DT.mjs.map +0 -1
  77. package/fesm2022/acorex-platform-module-common-client-bulk-archive-entity.command-DPFiA8I2.mjs.map +0 -1
  78. package/fesm2022/acorex-platform-module-common-client-bulk-disable-entity.command-DgoZVXQA.mjs.map +0 -1
  79. package/fesm2022/acorex-platform-module-common-client-bulk-enable-entity.command-C6fba__g.mjs.map +0 -1
  80. package/fesm2022/acorex-platform-module-common-client-bulk-restore-archive-entity.command-C2BTAz4o.mjs.map +0 -1
  81. package/fesm2022/acorex-platform-module-common-client-contracts-entity-catalog-record-lock.entity-DLA5qjPs.mjs.map +0 -1
  82. package/fesm2022/acorex-platform-module-common-client-contracts-entity-catalog-version-entry.entity-C07SlyK0.mjs.map +0 -1
  83. package/fesm2022/acorex-platform-module-common-client-contracts-entity-catalog-version-stream.entity-C7LJK2Gt.mjs.map +0 -1
  84. package/fesm2022/acorex-platform-module-common-client-disable-entity.command-Bc1uH38V.mjs.map +0 -1
  85. package/fesm2022/acorex-platform-module-common-client-disable-entity.command.util-DQl6u2nj.mjs.map +0 -1
  86. package/fesm2022/acorex-platform-module-common-client-enable-entity.command-DeTumWIj.mjs.map +0 -1
  87. package/fesm2022/acorex-platform-module-common-client-restore-archive-entity.command-DXY_piiw.mjs.map +0 -1
package/README.md CHANGED
@@ -1,3 +1,37 @@
1
1
  # @acorex-platform/module-common-client
2
2
 
3
3
  Secondary entry point of `@acorex/modules`. It can be used by importing from `@acorex-platform/module-common-client`.
4
+
5
+ ## Entity and subject expression scopes
6
+
7
+ The common client module registers these namespaces for all client expressions:
8
+
9
+ - `entity.get(type, id)`: read a record through its registered entity data source.
10
+ - `entity.create(type, initialData?)`: open the native create dialog without leaving the host.
11
+ - `entity.edit(type, id)`: open the native edit dialog.
12
+ - `subject.ref()`: read the host's current `{ type, id, title? }` reference, or `null`.
13
+ - `subject.get()`: load that record, or return `null` when the host has no subject.
14
+
15
+ Create/edit resolve after the dialog closes with `{ status: 'saved', id?, data }`,
16
+ `{ status: 'cancelled' }`, or `{ status: 'failed', message }`.
17
+ Entity access uses the signed-in user's existing permissions and commands.
18
+
19
+ Any host can supply its subject using the standard root `subjectRef` relationship
20
+ accessible through `context.eval('subjectRef')`. Hosts exposing `context.data` or
21
+ an explicit expression scope `subjectRef` are supported too. Bindings are created
22
+ for each evaluation and read the current host data; they share no current-subject
23
+ state across forms. Questionnaire viewers accept a `subjectRef` input; assessment
24
+ fill flows populate it from the assessment case.
25
+
26
+ ```js
27
+ const ref = subject.ref();
28
+ if (ref) {
29
+ const result = await entity.edit(ref.type, ref.id);
30
+ if (result.status === 'saved') {
31
+ context.set('answers.relatedEntityId', result.id);
32
+ }
33
+ }
34
+ ```
35
+
36
+ These are client scopes: create/edit require an interactive UI. Importing the
37
+ common contracts or server module alone does not register these UI operations.