@ulb-darmstadt/shacl-form 1.0.13 → 1.0.15
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/config.d.ts +5 -6
- package/dist/{prefixes.d.ts → constants.d.ts} +5 -0
- package/dist/form.d.ts +2 -0
- package/dist/index-with-plugins.js +1 -1
- package/dist/index-with-plugins.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/inputs.d.ts +3 -4
- package/dist/loader.d.ts +12 -0
- package/dist/plugin.d.ts +1 -1
- package/dist/property.d.ts +2 -0
- package/dist/util.d.ts +1 -0
- package/package.json +3 -3
package/dist/inputs.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Quad, NamedNode } from 'n3';
|
|
2
2
|
import { Term, Literal } from '@rdfjs/types';
|
|
3
3
|
import { Config } from './config';
|
|
4
|
-
export
|
|
4
|
+
export type Editor = HTMLElement & {
|
|
5
5
|
value: string;
|
|
6
6
|
};
|
|
7
7
|
export declare abstract class InputBase extends HTMLElement {
|
|
@@ -38,14 +38,13 @@ export declare class InputNumber extends InputBase {
|
|
|
38
38
|
createEditor(quads: Quad[]): Editor;
|
|
39
39
|
toRDFObject(): Literal | undefined;
|
|
40
40
|
}
|
|
41
|
-
export
|
|
42
|
-
label?: string;
|
|
41
|
+
export type InputListEntry = Term | {
|
|
43
42
|
value: string;
|
|
43
|
+
label?: string;
|
|
44
44
|
};
|
|
45
45
|
export declare class InputList extends InputBase {
|
|
46
46
|
constructor(quads: Quad[], config: Config);
|
|
47
47
|
setListEntries(list: InputListEntry[]): void;
|
|
48
|
-
findLabel(subject: NamedNode, config: Config): string | null;
|
|
49
48
|
createEditor(quads: Quad[]): Editor;
|
|
50
49
|
toRDFObject(): Literal | NamedNode | undefined;
|
|
51
50
|
}
|
package/dist/loader.d.ts
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Store, Parser, Prefixes, NamedNode } from 'n3';
|
|
2
|
+
import { ShaclForm } from './form';
|
|
3
|
+
export declare class Loader {
|
|
4
|
+
private abortController;
|
|
5
|
+
private form;
|
|
6
|
+
constructor(form: ShaclForm);
|
|
7
|
+
loadGraphs(): Promise<void>;
|
|
8
|
+
importRDF(input: string | Promise<string>, store: Store, graph?: NamedNode, parser?: Parser): Promise<null>;
|
|
9
|
+
fetchRDF(url: string, accept?: string): Promise<string>;
|
|
10
|
+
toURL(id: string, prefixes: Prefixes): string | null;
|
|
11
|
+
isURL(input: string): boolean;
|
|
12
|
+
}
|
package/dist/plugin.d.ts
CHANGED
package/dist/property.d.ts
CHANGED
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import { BlankNode, NamedNode, Quad, Store, Quad_Object } from 'n3';
|
|
2
|
+
import { InputListEntry } from './inputs';
|
|
2
3
|
import { ShaclForm } from './form';
|
|
3
4
|
export declare class ShaclProperty extends HTMLElement {
|
|
4
5
|
name: string;
|
|
5
6
|
node: NamedNode | null;
|
|
7
|
+
classInstances: Array<InputListEntry> | null;
|
|
6
8
|
minCount: number;
|
|
7
9
|
maxCount: number;
|
|
8
10
|
quads: Quad[];
|
package/dist/util.d.ts
CHANGED
|
@@ -2,3 +2,4 @@ import { Quad, Quad_Object } from 'n3';
|
|
|
2
2
|
export declare function findObjectValueByPredicate(quads: Quad[], predicate: string, prefix?: string, language?: string | null): string;
|
|
3
3
|
export declare function findObjectByPredicate(quads: Quad[], predicate: string, prefix?: string, language?: string | null): Quad_Object | null;
|
|
4
4
|
export declare function focusFirstInputElement(context: HTMLElement): void;
|
|
5
|
+
export declare function findLabel(quads: Quad[], language: string | null): string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ulb-darmstadt/shacl-form",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.15",
|
|
4
4
|
"description": "SHACL form generator",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -44,8 +44,8 @@
|
|
|
44
44
|
"webpack-dev-server": "^4.11.1"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"n3": "^1.
|
|
48
|
-
"rdf-ext": "^2.
|
|
47
|
+
"n3": "^1.17.0",
|
|
48
|
+
"rdf-ext": "^2.2.0",
|
|
49
49
|
"rdf-validate-shacl": "^0.4.5",
|
|
50
50
|
"uuid": "^9.0.0"
|
|
51
51
|
}
|