@getodk/web-forms 0.17.0 → 0.18.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 +5 -1
- package/dist/MapBlock-BYfMvIAS.js +28232 -0
- package/dist/{index-BcIPirKE.js → index-HrcI5GPb.js} +29236 -29024
- package/dist/index.js +2 -2
- package/package.json +34 -27
- package/dist/MapBlock-DGAoqRx5.js +0 -23630
package/README.md
CHANGED
|
@@ -17,9 +17,11 @@ To use this library in a Vue.js application:
|
|
|
17
17
|
:missing-resource-behavior="missingBehavior"
|
|
18
18
|
:submission-max-size="5242880" <!-- 5MB -->
|
|
19
19
|
:edit-instance="editOptions"
|
|
20
|
+
:preload-properties="preloadProperties"
|
|
21
|
+
:track-device="true"
|
|
20
22
|
@submit="handleSubmit"
|
|
21
23
|
@submit-chunked="handleChunkedSubmit"
|
|
22
|
-
|
|
24
|
+
/>
|
|
23
25
|
```
|
|
24
26
|
|
|
25
27
|
### Plugin
|
|
@@ -40,6 +42,8 @@ The `<OdkWebForm>` component accepts the following props:
|
|
|
40
42
|
- `missingResourceBehavior` (`MissingResourceBehavior`, optional): Defines behavior when resources are missing
|
|
41
43
|
- `submissionMaxSize` (`number`, optional): Maximum size for chunked submissions. Required when subscribing to `submitChunked` event
|
|
42
44
|
- `editInstance` (`EditInstanceOptions`, optional): Options to resolve and load instance and attachment resources for editing
|
|
45
|
+
- `preloadProperties` (`PreloadProperties`, optional): Properties to make available for binding in the form using jr:preload.
|
|
46
|
+
- `trackDevice` (`boolean`, optional, defaults to `false`): If `true`, generates a unique identifier for this device and stores it in `localstorage` for use in subsequent submissions. Ignored if `preloadProperties.deviceID` is given.
|
|
43
47
|
|
|
44
48
|
### Events (`OdkWebFormEmits`)
|
|
45
49
|
|