@getodk/xforms-engine 0.16.0 → 0.16.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/dist/client/AttributeNode.d.ts +4 -3
- package/dist/index.js +272 -211
- package/dist/index.js.map +1 -1
- package/dist/instance/Attribute.d.ts +11 -23
- package/dist/instance/Group.d.ts +3 -0
- package/dist/instance/InputControl.d.ts +3 -0
- package/dist/instance/ModelValue.d.ts +4 -0
- package/dist/instance/Note.d.ts +4 -0
- package/dist/instance/PrimaryInstance.d.ts +3 -0
- package/dist/instance/RangeControl.d.ts +4 -0
- package/dist/instance/RankControl.d.ts +5 -1
- package/dist/instance/Root.d.ts +3 -0
- package/dist/instance/SelectControl.d.ts +5 -1
- package/dist/instance/TriggerControl.d.ts +4 -0
- package/dist/instance/UploadControl.d.ts +3 -0
- package/dist/instance/abstract/DescendantNode.d.ts +5 -4
- package/dist/instance/abstract/InstanceNode.d.ts +4 -3
- package/dist/instance/hierarchy.d.ts +2 -1
- package/dist/instance/repeat/RepeatInstance.d.ts +2 -0
- package/dist/integration/xpath/adapter/XFormsXPathNode.d.ts +1 -1
- package/dist/integration/xpath/adapter/kind.d.ts +5 -3
- package/dist/integration/xpath/adapter/traversal.d.ts +3 -3
- package/dist/integration/xpath/static-dom/StaticAttribute.d.ts +1 -0
- package/dist/parse/model/AttributeDefinition.d.ts +2 -0
- package/dist/solid.js +272 -211
- package/dist/solid.js.map +1 -1
- package/package.json +2 -2
- package/src/client/AttributeNode.ts +4 -3
- package/src/instance/Attribute.ts +38 -54
- package/src/instance/Group.ts +12 -4
- package/src/instance/InputControl.ts +12 -4
- package/src/instance/ModelValue.ts +13 -4
- package/src/instance/Note.ts +13 -4
- package/src/instance/PrimaryInstance.ts +12 -4
- package/src/instance/RangeControl.ts +13 -4
- package/src/instance/RankControl.ts +14 -5
- package/src/instance/Root.ts +12 -4
- package/src/instance/SelectControl.ts +14 -5
- package/src/instance/TriggerControl.ts +13 -4
- package/src/instance/UploadControl.ts +13 -3
- package/src/instance/abstract/DescendantNode.ts +4 -3
- package/src/instance/abstract/InstanceNode.ts +5 -3
- package/src/instance/attachments/buildAttributes.ts +5 -1
- package/src/instance/children/childrenInitOptions.ts +2 -1
- package/src/instance/hierarchy.ts +2 -0
- package/src/instance/repeat/RepeatInstance.ts +11 -3
- package/src/integration/xpath/adapter/XFormsXPathNode.ts +1 -0
- package/src/integration/xpath/adapter/engineDOMAdapter.ts +2 -2
- package/src/integration/xpath/adapter/kind.ts +6 -1
- package/src/integration/xpath/adapter/names.ts +1 -0
- package/src/integration/xpath/adapter/traversal.ts +5 -6
- package/src/integration/xpath/static-dom/StaticAttribute.ts +1 -0
- package/src/lib/reactivity/createInstanceValueState.ts +29 -3
- package/src/parse/model/AttributeDefinition.ts +7 -0
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { Root } from '../instance/Root.ts';
|
|
2
2
|
import { AttributeDefinition } from '../parse/model/AttributeDefinition.ts';
|
|
3
|
+
import { BaseNode, BaseNodeState } from './BaseNode.ts';
|
|
3
4
|
import { InstanceState } from './serialization/InstanceState.ts';
|
|
4
|
-
export interface AttributeNodeState {
|
|
5
|
+
export interface AttributeNodeState extends BaseNodeState {
|
|
5
6
|
get value(): string;
|
|
6
7
|
get relevant(): boolean;
|
|
7
8
|
}
|
|
8
9
|
/**
|
|
9
10
|
* Base interface for common/shared aspects of attributes.
|
|
10
11
|
*/
|
|
11
|
-
export interface AttributeNode {
|
|
12
|
+
export interface AttributeNode extends BaseNode {
|
|
12
13
|
/**
|
|
13
14
|
* Specifies the node's general type. This can be useful for narrowing types,
|
|
14
15
|
* e.g. those of children.
|
|
@@ -25,7 +26,7 @@ export interface AttributeNode {
|
|
|
25
26
|
* Each node links back to the node representing the root of the form.
|
|
26
27
|
*/
|
|
27
28
|
readonly root: Root;
|
|
28
|
-
readonly
|
|
29
|
+
readonly parent: unknown;
|
|
29
30
|
/**
|
|
30
31
|
* Each node provides a discrete object representing the stateful aspects of
|
|
31
32
|
* that node which will change over time. This includes state which is either
|