@ulb-darmstadt/shacl-form 1.9.4 → 1.10.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/README.md CHANGED
@@ -72,6 +72,7 @@ data-collapse | When set, `sh:group`s and properties with `sh:node` and `sh:maxC
72
72
  data-submit-button | [Ignored when `data-view` attribute is set] Whether to add a submit button to the form. The value of this attribute is used as the button label. `submit` events get emitted only when the form data validates
73
73
  data-generate-node-shape-reference | When generating the RDF data graph, <shacl-form> can create a triple that references the root `sh:NodeShape` of the data. Suggested values for this attribute are `http://www.w3.org/1999/02/22-rdf-syntax-ns#type` or `http://purl.org/dc/terms/conformsTo`. Default is empty, so that no such triple is created
74
74
  data-show-node-ids | When this attribute is set, shacl node shapes will have their subject id shown in the form
75
+ data-proxy | URL of a proxy to use when fetching resources (e.g. `owl:imports`). This can help loading resources from the web that are not [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing) enabled. The URL of the resource to fetch will be appended to the value of this attribute. Example value for this attribute: `http://you-proxy.org/?url=`.
75
76
 
76
77
  ### Element functions
77
78
 
@@ -106,11 +107,6 @@ setClassInstanceProvider((className: string) => Promise<string>)
106
107
  ```
107
108
  Sets a callback function that is invoked when a SHACL property has an `sh:class` definition to retrieve class instances. See [below](#classInstanceProvider) for more information.
108
109
 
109
- ```typescript
110
- setSharedShapesGraph(graph: Store)
111
- ```
112
- Set an externally managed shapes graph to use. This improves performance When using multiple instances of `shacl-form` on the same page. Note that the shape triples need to be stored in the graph with ID `shapes` to be recognized.
113
-
114
110
  ## Features
115
111
 
116
112
  ### Validation
package/dist/config.d.ts CHANGED
@@ -19,6 +19,7 @@ export declare class ElementAttributes {
19
19
  view: string | null;
20
20
  language: string | null;
21
21
  loading: string;
22
+ proxy: string | null;
22
23
  ignoreOwlImports: string | null;
23
24
  collapse: string | null;
24
25
  submitButton: string | null;
@@ -20,6 +20,7 @@ export declare const SHACL_OBJECT_NODE_SHAPE: import('n3').NamedNode<string>;
20
20
  export declare const SHACL_OBJECT_IRI: import('n3').NamedNode<string>;
21
21
  export declare const SHACL_PREDICATE_PROPERTY: import('n3').NamedNode<string>;
22
22
  export declare const SHACL_PREDICATE_CLASS: import('n3').NamedNode<string>;
23
+ export declare const SHACL_PREDICATE_NODE: import('n3').NamedNode<string>;
23
24
  export declare const SHACL_PREDICATE_TARGET_CLASS: import('n3').NamedNode<string>;
24
25
  export declare const SHACL_PREDICATE_NODE_KIND: import('n3').NamedNode<string>;
25
26
  export declare const XSD_DATATYPE_STRING: import('n3').NamedNode<string>;
package/dist/exports.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  export type { InputListEntry, Editor } from './theme';
2
2
  export { Theme } from './theme';
3
- export { Loader, setSharedShapesGraph } from './loader';
3
+ export { Loader } from './loader';
4
4
  export { Config } from './config';
5
5
  export { Plugin, registerPlugin } from './plugin';
6
6
  export { ShaclPropertyTemplate } from './property-template';