@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.
- package/README.md +34 -0
- 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
- package/fesm2022/acorex-platform-module-common-client-acorex-platform-module-common-client-DctPmGJ6.mjs.map +1 -0
- package/fesm2022/{acorex-platform-module-common-client-archive-entity.command-BJi7V9qA.mjs → acorex-platform-module-common-client-archive-entity.command-Cch8STm7.mjs} +3 -3
- package/fesm2022/acorex-platform-module-common-client-archive-entity.command-Cch8STm7.mjs.map +1 -0
- 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
- package/fesm2022/acorex-platform-module-common-client-archive-entity.command.util-Cy1H1Gn8.mjs.map +1 -0
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- package/fesm2022/acorex-platform-module-common-client-bulk-archive-entity.command-CZgAvnBe.mjs.map +1 -0
- 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
- package/fesm2022/acorex-platform-module-common-client-bulk-disable-entity.command-Bh-kJscd.mjs.map +1 -0
- 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
- package/fesm2022/acorex-platform-module-common-client-bulk-enable-entity.command-CEeSvggU.mjs.map +1 -0
- 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
- package/fesm2022/acorex-platform-module-common-client-bulk-restore-archive-entity.command-fqb5ArcI.mjs.map +1 -0
- 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
- 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
- package/fesm2022/acorex-platform-module-common-client-contracts-entities-record-lock.mjs +1 -1
- package/fesm2022/acorex-platform-module-common-client-contracts-entities-record-lock.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-common-client-contracts-entities-version-entry.mjs +12 -1
- package/fesm2022/acorex-platform-module-common-client-contracts-entities-version-entry.mjs.map +1 -1
- package/fesm2022/acorex-platform-module-common-client-contracts-entities-version-stream.mjs +6 -1
- package/fesm2022/acorex-platform-module-common-client-contracts-entities-version-stream.mjs.map +1 -1
- 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
- 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
- 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
- package/fesm2022/acorex-platform-module-common-client-contracts-entity-catalog-record-lock.entity-B1DYeWEA.mjs.map +1 -0
- 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
- package/fesm2022/acorex-platform-module-common-client-contracts-entity-catalog-version-entry.entity-CrkyGd48.mjs.map +1 -0
- 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
- package/fesm2022/acorex-platform-module-common-client-contracts-entity-catalog-version-stream.entity-Bg87yGRN.mjs.map +1 -0
- package/fesm2022/acorex-platform-module-common-client-contracts-entity-catalog.mjs +1 -1
- package/fesm2022/acorex-platform-module-common-client-contracts.mjs +20 -9
- package/fesm2022/acorex-platform-module-common-client-contracts.mjs.map +1 -1
- 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
- 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
- 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
- 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
- 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
- package/fesm2022/acorex-platform-module-common-client-disable-entity.command-Bw8_VjZb.mjs.map +1 -0
- 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
- package/fesm2022/acorex-platform-module-common-client-disable-entity.command.util-BmYWDNV6.mjs.map +1 -0
- 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
- package/fesm2022/acorex-platform-module-common-client-enable-entity.command-Dkh_SjIl.mjs.map +1 -0
- 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
- 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
- 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
- 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
- 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
- package/fesm2022/acorex-platform-module-common-client-restore-archive-entity.command-BfIV7Xvo.mjs.map +1 -0
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- 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
- package/fesm2022/acorex-platform-module-common-client.mjs +1 -1
- package/i18n/en-AU/common.json +25 -5
- package/i18n/en-US/common.json +25 -5
- package/i18n/fa-IR/common.json +21 -1
- package/package.json +1 -1
- package/types/acorex-platform-module-common-client-contracts.d.ts +9 -7
- package/types/acorex-platform-module-common-client.d.ts +43 -4
- package/fesm2022/acorex-platform-module-common-client-acorex-platform-module-common-client-C_NblzG7.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-common-client-archive-entity.command-BJi7V9qA.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-common-client-archive-entity.command.util-DoXkO9DT.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-common-client-bulk-archive-entity.command-DPFiA8I2.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-common-client-bulk-disable-entity.command-DgoZVXQA.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-common-client-bulk-enable-entity.command-C6fba__g.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-common-client-bulk-restore-archive-entity.command-C2BTAz4o.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-common-client-contracts-entity-catalog-record-lock.entity-DLA5qjPs.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-common-client-contracts-entity-catalog-version-entry.entity-C07SlyK0.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-common-client-contracts-entity-catalog-version-stream.entity-C7LJK2Gt.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-common-client-disable-entity.command-Bc1uH38V.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-common-client-disable-entity.command.util-DQl6u2nj.mjs.map +0 -1
- package/fesm2022/acorex-platform-module-common-client-enable-entity.command-DeTumWIj.mjs.map +0 -1
- 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.
|