@ulb-darmstadt/shacl-form 1.6.4 → 1.6.6
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 +1 -0
- package/dist/config.d.ts +3 -1
- package/dist/form-bootstrap.js +1 -1
- package/dist/form-default.js +1 -1
- package/dist/form-material.js +1 -1
- package/dist/property-template.d.ts +1 -0
- package/package.json +1 -1
- package/src/config.ts +4 -1
- package/src/node.ts +2 -2
- package/src/property-template.ts +2 -0
- package/src/property.ts +2 -3
- package/src/themes/default.ts +1 -1
- package/src/themes/material.ts +1 -1
package/README.md
CHANGED
|
@@ -63,6 +63,7 @@ data-values | RDF triples (e.g. a turtle string) to use as existing data graph t
|
|
|
63
63
|
data-values-url | When `data-values` is not set, the data graph triples are loaded from this URL
|
|
64
64
|
data-values-subject | The subject (id) of the generated data. If this is not set, a blank node with a new UUID is created. If `data-values` or `data-values-url` is set, this id is also used to find the root node in the data graph to fill the form
|
|
65
65
|
data-values-namespace | RDF namespace to use when generating new RDF subjects. Default is empty, so that subjects will be blank nodes.
|
|
66
|
+
data-values-graph | If set, serializing the form will create a named graph with the given IRI.
|
|
66
67
|
data-language | Language to use if shapes contain langStrings, e.g. in `sh:name` or `rdfs:label`. Default is [`navigator.language`](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/language) with fallback to [`navigator.languages`](https://developer.mozilla.org/en-US/docs/Web/API/Navigator/languages)
|
|
67
68
|
data-loading | Text to display while the web component is initializing. Default: `"Loading..."`
|
|
68
69
|
data‑ignore‑owl‑imports | By default, `owl:imports` URLs are fetched and the resulting RDF triples are added to the shapes graph. Setting this attribute to any value disables this feature
|
package/dist/config.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Prefixes, Store } from 'n3';
|
|
1
|
+
import { NamedNode, Prefixes, Store } from 'n3';
|
|
2
2
|
import { Term } from '@rdfjs/types';
|
|
3
3
|
import { ClassInstanceProvider } from './plugin';
|
|
4
4
|
import { Loader } from './loader';
|
|
@@ -15,6 +15,7 @@ export declare class ElementAttributes {
|
|
|
15
15
|
valueSubject: string | null;
|
|
16
16
|
valuesSubject: string | null;
|
|
17
17
|
valuesNamespace: string;
|
|
18
|
+
valuesGraph: string | null;
|
|
18
19
|
view: string | null;
|
|
19
20
|
language: string | null;
|
|
20
21
|
loading: string;
|
|
@@ -37,6 +38,7 @@ export declare class Config {
|
|
|
37
38
|
theme: Theme;
|
|
38
39
|
form: HTMLElement;
|
|
39
40
|
renderedNodes: Set<string>;
|
|
41
|
+
valuesGraph: NamedNode | undefined;
|
|
40
42
|
private _shapesGraph;
|
|
41
43
|
constructor(theme: Theme, form: HTMLElement);
|
|
42
44
|
updateAttributes(elem: HTMLElement): void;
|