@getodk/xpath 0.6.0 → 0.8.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/README.md +0 -2
- package/dist/.vite/manifest.json +4 -4
- package/dist/adapter/interface/XPathChoiceNode.d.ts +3 -0
- package/dist/{expressionParser-BUM7qFCl.js → expressionParser-DjyNe4Lw.js} +6 -2
- package/dist/{expressionParser-BUM7qFCl.js.map → expressionParser-DjyNe4Lw.js.map} +1 -1
- package/dist/expressionParser.js +1 -1
- package/dist/functions/javarosa/select.d.ts +14 -0
- package/dist/functions/xforms/string.d.ts +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +83 -9
- package/dist/index.js.map +1 -1
- package/package.json +12 -12
package/README.md
CHANGED
|
@@ -106,7 +106,6 @@ evaluator.evaluate('jr:itext("hello")', xform, null, XPathResult.STRING_TYPE).st
|
|
|
106
106
|
There are currently a few caveats to `jr:itext` use:
|
|
107
107
|
|
|
108
108
|
- `<itext>` and its translations are evaluated from the **document root** of the `rootNode` specified in `XFormsXPathEvaluator` options. As such:
|
|
109
|
-
|
|
110
109
|
- translations _will_ be resolved if a descendant `rootNode` (e.g. the XForm's primary `<instance>` element) is specified
|
|
111
110
|
|
|
112
111
|
- translations _will not_ be resolved for an XForm in an unusual DOM structure (e.g. a `DocumentFragment`, or in an arbitrary subtree of an unrelated document)
|
|
@@ -149,7 +148,6 @@ Both evaluator classes provide the following convenience methods:
|
|
|
149
148
|
|
|
150
149
|
We intend to support the full ODK XForms function library, but support is currently incomplete. The following functions are not yet supported (the `jr:` prefix is used by convention to refer to the JavaRosa namespace):
|
|
151
150
|
|
|
152
|
-
- `pulldata`
|
|
153
151
|
- `jr:choice-name`
|
|
154
152
|
|
|
155
153
|
### Non-browser environments
|
package/dist/.vite/manifest.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
|
-
"_expressionParser-
|
|
3
|
-
"file": "expressionParser-
|
|
2
|
+
"_expressionParser-DjyNe4Lw.js": {
|
|
3
|
+
"file": "expressionParser-DjyNe4Lw.js",
|
|
4
4
|
"name": "expressionParser"
|
|
5
5
|
},
|
|
6
6
|
"src/expressionParser.ts": {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"src": "src/expressionParser.ts",
|
|
10
10
|
"isEntry": true,
|
|
11
11
|
"imports": [
|
|
12
|
-
"_expressionParser-
|
|
12
|
+
"_expressionParser-DjyNe4Lw.js"
|
|
13
13
|
]
|
|
14
14
|
},
|
|
15
15
|
"src/index.ts": {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
"src": "src/index.ts",
|
|
19
19
|
"isEntry": true,
|
|
20
20
|
"imports": [
|
|
21
|
-
"_expressionParser-
|
|
21
|
+
"_expressionParser-DjyNe4Lw.js"
|
|
22
22
|
]
|
|
23
23
|
}
|
|
24
24
|
}
|
|
@@ -58,7 +58,11 @@ function getAugmentedNamespace(n) {
|
|
|
58
58
|
var f = n.default;
|
|
59
59
|
if (typeof f == "function") {
|
|
60
60
|
var a = function a () {
|
|
61
|
-
|
|
61
|
+
var isInstance = false;
|
|
62
|
+
try {
|
|
63
|
+
isInstance = this instanceof a;
|
|
64
|
+
} catch {}
|
|
65
|
+
if (isInstance) {
|
|
62
66
|
return Reflect.construct(f, arguments, this.constructor);
|
|
63
67
|
}
|
|
64
68
|
return f.apply(this, arguments);
|
|
@@ -3479,4 +3483,4 @@ const expressionParser = await ExpressionParser.init({
|
|
|
3479
3483
|
});
|
|
3480
3484
|
|
|
3481
3485
|
export { UpsertableMap as U, getDefaultExportFromCjs as a, commonjsGlobal as c, expressionParser as e, getAugmentedNamespace as g };
|
|
3482
|
-
//# sourceMappingURL=expressionParser-
|
|
3486
|
+
//# sourceMappingURL=expressionParser-DjyNe4Lw.js.map
|