@simai-studio/ui 5.20261023.126 → 5.20261023.212
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 +4 -4
- package/distr/core/contracts/ports/simai.property-view-port/1.14.0/kit/cases/a-field-hidden-by-its-condition-is-not-saved.json +45 -0
- package/distr/core/contracts/ports/simai.property-view-port/1.14.0/kit/cases/a-field-says-what-it-falls-back-to.json +12 -0
- package/distr/core/contracts/ports/simai.property-view-port/1.14.0/kit/cases/a-field-taken-out-of-an-area-is-unplaced.json +40 -0
- package/distr/core/contracts/ports/simai.property-view-port/1.14.0/kit/cases/a-reader-is-offered-nothing-to-change.json +23 -0
- package/distr/core/contracts/ports/simai.property-view-port/1.14.0/kit/cases/a-related-group-is-a-list-not-fields.json +23 -0
- package/distr/core/contracts/ports/simai.property-view-port/1.14.0/kit/cases/a-stale-confirmation-is-asked-again.json +39 -0
- package/distr/core/contracts/ports/simai.property-view-port/1.14.0/kit/cases/conditions-arrive-declared.json +82 -0
- package/distr/core/contracts/ports/simai.property-view-port/1.14.0/kit/cases/create-applied-answers-with-the-id.json +24 -0
- package/distr/core/contracts/ports/simai.property-view-port/1.14.0/kit/cases/create-field-errors-are-refused.json +22 -0
- package/distr/core/contracts/ports/simai.property-view-port/1.14.0/kit/cases/field-presentation-keys-are-declared.json +12 -0
- package/distr/core/contracts/ports/simai.property-view-port/1.14.0/kit/cases/group-save-applied-is-one-revision.json +16 -0
- package/distr/core/contracts/ports/simai.property-view-port/1.14.0/kit/cases/group-save-confirmed-with-the-digest-is-applied.json +35 -0
- package/distr/core/contracts/ports/simai.property-view-port/1.14.0/kit/cases/group-save-field-errors-are-refused.json +16 -0
- package/distr/core/contracts/ports/simai.property-view-port/1.14.0/kit/cases/group-save-may-ask-for-a-confirmation.json +38 -0
- package/distr/core/contracts/ports/simai.property-view-port/1.14.0/kit/cases/group-save-stale-revision-is-a-conflict.json +16 -0
- package/distr/core/contracts/ports/simai.property-view-port/1.14.0/kit/cases/load-applied-carries-the-object.json +12 -0
- package/distr/core/contracts/ports/simai.property-view-port/1.14.0/kit/cases/load-for-create-is-an-empty-object.json +24 -0
- package/distr/core/contracts/ports/simai.property-view-port/1.14.0/kit/cases/load-late-answer-is-dropped.json +15 -0
- package/distr/core/contracts/ports/simai.property-view-port/1.14.0/kit/cases/load-refused-is-explained.json +12 -0
- package/distr/core/contracts/ports/simai.property-view-port/1.14.0/kit/cases/load-unavailable-is-honest.json +12 -0
- package/distr/core/contracts/ports/simai.property-view-port/1.14.0/kit/cases/lookup-arrives-with-its-label.json +70 -0
- package/distr/core/contracts/ports/simai.property-view-port/1.14.0/kit/cases/opening-a-reference-is-the-hosts-decision.json +12 -0
- package/distr/core/contracts/ports/simai.property-view-port/1.14.0/kit/cases/opening-the-record-as-a-page-is-offered-only-where-it-leads-somewhere.json +28 -0
- package/distr/core/contracts/ports/simai.property-view-port/1.14.0/kit/cases/options-carry-the-source-and-a-limit.json +33 -0
- package/distr/core/contracts/ports/simai.property-view-port/1.14.0/kit/cases/options-page-carries-a-cursor.json +15 -0
- package/distr/core/contracts/ports/simai.property-view-port/1.14.0/kit/cases/options-refused-is-explained.json +14 -0
- package/distr/core/contracts/ports/simai.property-view-port/1.14.0/kit/cases/options-search-by-source-reaches-the-host.json +30 -0
- package/distr/core/contracts/ports/simai.property-view-port/1.14.0/kit/cases/options-search-reaches-the-host.json +14 -0
- package/distr/core/contracts/ports/simai.property-view-port/1.14.0/kit/cases/options-without-the-capability.json +14 -0
- package/distr/core/contracts/ports/simai.property-view-port/1.14.0/kit/cases/rare-fields-arrive-declared.json +12 -0
- package/distr/core/contracts/ports/simai.property-view-port/1.14.0/kit/cases/removing-a-file-is-a-save.json +13 -0
- package/distr/core/contracts/ports/simai.property-view-port/1.14.0/kit/cases/save-applied-is-one-revision.json +26 -0
- package/distr/core/contracts/ports/simai.property-view-port/1.14.0/kit/cases/save-may-ask-for-a-confirmation.json +36 -0
- package/distr/core/contracts/ports/simai.property-view-port/1.14.0/kit/cases/save-stale-revision-is-a-conflict.json +23 -0
- package/distr/core/contracts/ports/simai.property-view-port/1.14.0/kit/cases/the-address-is-the-hosts.json +12 -0
- package/distr/core/contracts/ports/simai.property-view-port/1.14.0/kit/cases/upload-answers-with-the-stored-file.json +14 -0
- package/distr/core/contracts/ports/simai.property-view-port/1.14.0/kit/cases/upload-refused-is-explained.json +14 -0
- package/distr/core/contracts/ports/simai.property-view-port/1.14.0/kit/cases/view-create-answers-with-the-record-through-the-new-view.json +32 -0
- package/distr/core/contracts/ports/simai.property-view-port/1.14.0/kit/cases/view-create-shared-may-be-refused.json +27 -0
- package/distr/core/contracts/ports/simai.property-view-port/1.14.0/kit/cases/view-delete-applied-answers-with-what-is-left.json +25 -0
- package/distr/core/contracts/ports/simai.property-view-port/1.14.0/kit/cases/view-delete-the-last-shared-one-is-refused.json +25 -0
- package/distr/core/contracts/ports/simai.property-view-port/1.14.0/kit/cases/view-profile-applied-carries-the-record-through-it.json +25 -0
- package/distr/core/contracts/ports/simai.property-view-port/1.14.0/kit/cases/view-profile-refused-is-explained.json +25 -0
- package/distr/core/contracts/ports/simai.property-view-port/1.14.0/kit/cases/view-profile-unavailable-without-the-capability.json +23 -0
- package/distr/core/contracts/ports/simai.property-view-port/1.14.0/kit/cases/view-rename-changes-the-label-only.json +26 -0
- package/distr/core/contracts/ports/simai.property-view-port/1.14.0/kit/cases/view-reset-answers-with-what-now-resolves.json +30 -0
- package/distr/core/contracts/ports/simai.property-view-port/1.14.0/kit/cases/view-save-against-a-stale-revision-is-a-conflict.json +36 -0
- package/distr/core/contracts/ports/simai.property-view-port/1.14.0/kit/cases/view-save-is-one-layer-one-revision.json +35 -0
- package/distr/core/contracts/ports/simai.property-view-port/1.14.0/kit/cases/view-save-may-name-an-area-the-record-does-not-carry.json +49 -0
- package/distr/core/contracts/ports/simai.property-view-port/1.14.0/kit/cases/view-save-rejects-entries-by-kind.json +36 -0
- package/distr/core/contracts/ports/simai.property-view-port/1.14.0/kit/cases/view-settings-without-the-capability.json +30 -0
- package/distr/core/contracts/ports/simai.property-view-port/1.14.0/kit/manifest.json +66 -0
- package/distr/core/contracts/ports/simai.property-view-port/1.14.0/port.json +2484 -0
- package/distr/smart/field-renderers/js/field-renderers.min.js +128 -87
- package/package-manifest.json +57 -4
- package/package.json +5 -4
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "view-save-may-name-an-area-the-record-does-not-carry",
|
|
3
|
+
"intent": "view.save",
|
|
4
|
+
"capability": "view-settings",
|
|
5
|
+
"summary": "A layer may name an area or a section the record does not carry. The host keeps it and returns it in the next read, or refuses with its reason.",
|
|
6
|
+
"given": {
|
|
7
|
+
"capabilities": [
|
|
8
|
+
"view-settings"
|
|
9
|
+
]
|
|
10
|
+
},
|
|
11
|
+
"when": {
|
|
12
|
+
"intent": "view.save",
|
|
13
|
+
"payload": {
|
|
14
|
+
"record_id": null,
|
|
15
|
+
"collection": "pages",
|
|
16
|
+
"target": {
|
|
17
|
+
"kind": "personal",
|
|
18
|
+
"revision": "v7"
|
|
19
|
+
},
|
|
20
|
+
"view": {
|
|
21
|
+
"schema_version": 1,
|
|
22
|
+
"sections": {
|
|
23
|
+
"view-section-m1": {
|
|
24
|
+
"label": "Договоры",
|
|
25
|
+
"order": 2,
|
|
26
|
+
"hidden": false
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"groups": {
|
|
30
|
+
"view-group-m1": {
|
|
31
|
+
"label": "Договор",
|
|
32
|
+
"section": "view-section-m1",
|
|
33
|
+
"order": 1,
|
|
34
|
+
"columns": 1,
|
|
35
|
+
"hidden": false
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"fields": {}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"then": {
|
|
43
|
+
"answer": "applied",
|
|
44
|
+
"answer_must_include": [
|
|
45
|
+
"revision"
|
|
46
|
+
],
|
|
47
|
+
"note": "This is the one act of arranging that does not rearrange what the host sent: it names something new. The component draws it at once from the layer, so a person sees what they made, but it survives the next record.load only if the host returns it. A host that will not keep a new area answers refused with a reason rather than applied, and the component reads the record again."
|
|
48
|
+
}
|
|
49
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "view-save-rejects-entries-by-kind",
|
|
3
|
+
"intent": "view.save",
|
|
4
|
+
"capability": "view-settings",
|
|
5
|
+
"summary": "A layer naming an entry the host does not know is refused, with the reason under the entry that caused it, keyed by kind and key.",
|
|
6
|
+
"given": {
|
|
7
|
+
"capabilities": [
|
|
8
|
+
"view-settings"
|
|
9
|
+
]
|
|
10
|
+
},
|
|
11
|
+
"when": {
|
|
12
|
+
"intent": "view.save",
|
|
13
|
+
"payload": {
|
|
14
|
+
"record_id": null,
|
|
15
|
+
"collection": "pages",
|
|
16
|
+
"target": {
|
|
17
|
+
"kind": "personal",
|
|
18
|
+
"revision": "v7"
|
|
19
|
+
},
|
|
20
|
+
"view": {
|
|
21
|
+
"schema_version": 1,
|
|
22
|
+
"sections": {
|
|
23
|
+
"ghost": {
|
|
24
|
+
"order": 1
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"groups": {},
|
|
28
|
+
"fields": {}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"then": {
|
|
33
|
+
"answer": "refused",
|
|
34
|
+
"note": "Keyed by kind -- section:ghost -- because a section and a field may share a key. A bare key could name two different entries, and the error would be shown under the wrong one, which is worse than no error at all: it accuses something that is fine."
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "view-settings-without-the-capability",
|
|
3
|
+
"intent": "view.save",
|
|
4
|
+
"capability": "view-settings",
|
|
5
|
+
"summary": "A host that does not declare view-settings is never asked to save a view, and the component shows nothing that would lead there.",
|
|
6
|
+
"given": {
|
|
7
|
+
"capabilities": []
|
|
8
|
+
},
|
|
9
|
+
"when": {
|
|
10
|
+
"intent": "view.save",
|
|
11
|
+
"payload": {
|
|
12
|
+
"record_id": null,
|
|
13
|
+
"collection": "pages",
|
|
14
|
+
"target": {
|
|
15
|
+
"kind": "personal",
|
|
16
|
+
"revision": null
|
|
17
|
+
},
|
|
18
|
+
"view": {
|
|
19
|
+
"schema_version": 1,
|
|
20
|
+
"sections": {},
|
|
21
|
+
"groups": {},
|
|
22
|
+
"fields": {}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"then": {
|
|
27
|
+
"answer": "unavailable",
|
|
28
|
+
"note": "The control is absent rather than present and failing. A person offered a way to rearrange a view that cannot be stored would lose the arrangement on the next load and have no way to know why."
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schema": "simai.composite.host-port.conformance.v1",
|
|
3
|
+
"port": "simai.property-view-port",
|
|
4
|
+
"version": "1.14.0",
|
|
5
|
+
"transport": "neutral",
|
|
6
|
+
"summary": "The cases of 1.13.0's kit, unchanged, and nine of 1.14.0: a lookup field and its candidates by source and limit, a save confirmed with a digest, and fields that arrive with their conditions.",
|
|
7
|
+
"answers": [
|
|
8
|
+
"applied",
|
|
9
|
+
"conflict",
|
|
10
|
+
"refused",
|
|
11
|
+
"unavailable"
|
|
12
|
+
],
|
|
13
|
+
"cases": [
|
|
14
|
+
"load-applied-carries-the-object",
|
|
15
|
+
"load-refused-is-explained",
|
|
16
|
+
"load-unavailable-is-honest",
|
|
17
|
+
"load-late-answer-is-dropped",
|
|
18
|
+
"rare-fields-arrive-declared",
|
|
19
|
+
"group-save-applied-is-one-revision",
|
|
20
|
+
"group-save-stale-revision-is-a-conflict",
|
|
21
|
+
"group-save-field-errors-are-refused",
|
|
22
|
+
"options-page-carries-a-cursor",
|
|
23
|
+
"options-search-reaches-the-host",
|
|
24
|
+
"options-without-the-capability",
|
|
25
|
+
"options-refused-is-explained",
|
|
26
|
+
"the-address-is-the-hosts",
|
|
27
|
+
"upload-answers-with-the-stored-file",
|
|
28
|
+
"upload-refused-is-explained",
|
|
29
|
+
"removing-a-file-is-a-save",
|
|
30
|
+
"opening-a-reference-is-the-hosts-decision",
|
|
31
|
+
"field-presentation-keys-are-declared",
|
|
32
|
+
"view-save-is-one-layer-one-revision",
|
|
33
|
+
"view-save-against-a-stale-revision-is-a-conflict",
|
|
34
|
+
"view-save-rejects-entries-by-kind",
|
|
35
|
+
"view-reset-answers-with-what-now-resolves",
|
|
36
|
+
"view-settings-without-the-capability",
|
|
37
|
+
"a-related-group-is-a-list-not-fields",
|
|
38
|
+
"a-field-says-what-it-falls-back-to",
|
|
39
|
+
"view-save-may-name-an-area-the-record-does-not-carry",
|
|
40
|
+
"a-field-taken-out-of-an-area-is-unplaced",
|
|
41
|
+
"opening-the-record-as-a-page-is-offered-only-where-it-leads-somewhere",
|
|
42
|
+
"view-profile-applied-carries-the-record-through-it",
|
|
43
|
+
"view-profile-refused-is-explained",
|
|
44
|
+
"view-profile-unavailable-without-the-capability",
|
|
45
|
+
"view-create-answers-with-the-record-through-the-new-view",
|
|
46
|
+
"view-create-shared-may-be-refused",
|
|
47
|
+
"view-rename-changes-the-label-only",
|
|
48
|
+
"view-delete-the-last-shared-one-is-refused",
|
|
49
|
+
"view-delete-applied-answers-with-what-is-left",
|
|
50
|
+
"load-for-create-is-an-empty-object",
|
|
51
|
+
"a-reader-is-offered-nothing-to-change",
|
|
52
|
+
"create-applied-answers-with-the-id",
|
|
53
|
+
"create-field-errors-are-refused",
|
|
54
|
+
"save-applied-is-one-revision",
|
|
55
|
+
"save-stale-revision-is-a-conflict",
|
|
56
|
+
"lookup-arrives-with-its-label",
|
|
57
|
+
"options-carry-the-source-and-a-limit",
|
|
58
|
+
"options-search-by-source-reaches-the-host",
|
|
59
|
+
"group-save-may-ask-for-a-confirmation",
|
|
60
|
+
"group-save-confirmed-with-the-digest-is-applied",
|
|
61
|
+
"a-stale-confirmation-is-asked-again",
|
|
62
|
+
"save-may-ask-for-a-confirmation",
|
|
63
|
+
"conditions-arrive-declared",
|
|
64
|
+
"a-field-hidden-by-its-condition-is-not-saved"
|
|
65
|
+
]
|
|
66
|
+
}
|