@getodk/xforms-engine 0.11.0 → 0.13.0
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/TextRange.d.ts +0 -9
- package/dist/index.js +265 -146
- package/dist/index.js.map +1 -1
- package/dist/instance/RankControl.d.ts +3 -2
- package/dist/instance/SelectControl.d.ts +3 -2
- package/dist/parse/body/control/ItemsetDefinition.d.ts +1 -1
- package/dist/parse/expression/BindComputationExpression.d.ts +1 -1
- package/dist/parse/expression/ItemsetNodesetExpression.d.ts +1 -2
- package/dist/parse/expression/TextChunkExpression.d.ts +9 -7
- package/dist/parse/expression/abstract/DependentExpression.d.ts +1 -15
- package/dist/parse/model/ModelDefinition.d.ts +6 -1
- package/dist/parse/model/generateItextChunks.d.ts +5 -0
- package/dist/parse/xpath/semantic-analysis.d.ts +1 -0
- package/dist/solid.js +249 -116
- package/dist/solid.js.map +1 -1
- package/package.json +16 -16
- package/src/client/TextRange.ts +0 -9
- package/src/instance/RankControl.ts +8 -2
- package/src/instance/SelectControl.ts +8 -2
- package/src/lib/reactivity/text/createTextRange.ts +30 -30
- package/src/parse/body/control/ItemsetDefinition.ts +2 -2
- package/src/parse/expression/BindComputationExpression.ts +2 -7
- package/src/parse/expression/ItemsetNodesetExpression.ts +2 -3
- package/src/parse/expression/ItemsetValueExpression.ts +1 -1
- package/src/parse/expression/RepeatCountControlExpression.ts +4 -4
- package/src/parse/expression/TextChunkExpression.ts +25 -35
- package/src/parse/expression/abstract/DependentExpression.ts +2 -38
- package/src/parse/model/ModelDefinition.ts +13 -0
- package/src/parse/model/generateItextChunks.ts +61 -0
- package/src/parse/text/ItemsetLabelDefinition.ts +4 -4
- package/src/parse/text/MessageDefinition.ts +4 -4
- package/src/parse/text/abstract/TextElementDefinition.ts +6 -7
- package/src/parse/xpath/semantic-analysis.ts +37 -8
|
@@ -47,15 +47,6 @@ import { ActiveLanguage } from './FormLanguage.ts';
|
|
|
47
47
|
* - `h:body//hint/@ref[not(is-translation-expr())]`
|
|
48
48
|
*
|
|
49
49
|
* (See notes above for clarification of `is-translation-expr()`.)
|
|
50
|
-
*
|
|
51
|
-
* @todo It's unclear whether this will all become simpler or more compelex when
|
|
52
|
-
* we add support for outputs in translations. In theory, the actual translation
|
|
53
|
-
* `<text>` nodes map quite well to the `TextRange` concept (i.e. they are a
|
|
54
|
-
* range of static and output chunks, just like labels and hints). The potential
|
|
55
|
-
* for complications arise from XPath implementation details being largely
|
|
56
|
-
* opaque (as in, the `jr:itext` implementation is encapsulated in the `xpath`
|
|
57
|
-
* package, and the engine doesn't really deal with itext translations at the
|
|
58
|
-
* node level at all).
|
|
59
50
|
*/
|
|
60
51
|
export type TextChunkSource = 'literal' | 'output' | 'reference' | 'translation';
|
|
61
52
|
/**
|