@ulb-darmstadt/shacl-form 1.5.3 → 1.6.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 +39 -2
- package/dist/constants.d.ts +1 -1
- package/dist/form-bootstrap.js +1 -1
- package/dist/form-default.js +1 -1
- package/dist/form-material.js +96 -96
- package/dist/node.d.ts +3 -1
- package/dist/plugins/leaflet.js +1 -1
- package/dist/plugins/mapbox.js +1 -1
- package/dist/plugins/mapbox.js.LICENSE.txt +0 -8
- package/dist/property-template.d.ts +5 -3
- package/dist/property.d.ts +2 -1
- package/dist/theme.d.ts +1 -0
- package/dist/util.d.ts +3 -3
- package/package.json +2 -2
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { Literal, NamedNode,
|
|
1
|
+
import { Literal, NamedNode, Quad } from 'n3';
|
|
2
2
|
import { Term } from '@rdfjs/types';
|
|
3
3
|
import { Config } from './config';
|
|
4
|
+
import { ShaclNode } from './node';
|
|
4
5
|
export declare class ShaclPropertyTemplate {
|
|
6
|
+
parent: ShaclNode;
|
|
5
7
|
label: string;
|
|
6
|
-
nodeId: NamedNode | BlankNode;
|
|
7
8
|
name: Literal | undefined;
|
|
8
9
|
description: Literal | undefined;
|
|
9
10
|
path: string | undefined;
|
|
@@ -29,9 +30,10 @@ export declare class ShaclPropertyTemplate {
|
|
|
29
30
|
languageIn: Term[] | undefined;
|
|
30
31
|
datatype: NamedNode | undefined;
|
|
31
32
|
hasValue: Term | undefined;
|
|
33
|
+
owlImports: NamedNode[];
|
|
32
34
|
config: Config;
|
|
33
35
|
extendedShapes: NamedNode[] | undefined;
|
|
34
|
-
constructor(quads: Quad[],
|
|
36
|
+
constructor(quads: Quad[], parent: ShaclNode, config: Config);
|
|
35
37
|
merge(quads: Quad[]): ShaclPropertyTemplate;
|
|
36
38
|
clone(): ShaclPropertyTemplate;
|
|
37
39
|
}
|
package/dist/property.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { BlankNode, NamedNode, Store } from 'n3';
|
|
2
2
|
import { Term } from '@rdfjs/types';
|
|
3
|
+
import { ShaclNode } from './node';
|
|
3
4
|
import { Config } from './config';
|
|
4
5
|
import { ShaclPropertyTemplate } from './property-template';
|
|
5
6
|
export declare class ShaclProperty extends HTMLElement {
|
|
6
7
|
template: ShaclPropertyTemplate;
|
|
7
8
|
addButton: HTMLElement | undefined;
|
|
8
|
-
constructor(shaclSubject: BlankNode | NamedNode,
|
|
9
|
+
constructor(shaclSubject: BlankNode | NamedNode, parent: ShaclNode, config: Config, valueSubject?: NamedNode | BlankNode);
|
|
9
10
|
addPropertyInstance(value?: Term): HTMLElement;
|
|
10
11
|
updateControls(): void;
|
|
11
12
|
toRDF(graph: Store, subject: NamedNode | BlankNode): void;
|
package/dist/theme.d.ts
CHANGED
package/dist/util.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { NamedNode, Prefixes, Quad, Store } from 'n3';
|
|
2
2
|
import { Term } from '@rdfjs/types';
|
|
3
3
|
import { InputListEntry } from './theme';
|
|
4
|
-
import {
|
|
4
|
+
import { ShaclPropertyTemplate } from './property-template';
|
|
5
5
|
export declare function findObjectValueByPredicate(quads: Quad[], predicate: string, prefix?: string, languages?: string[]): string;
|
|
6
6
|
export declare function findObjectByPredicate(quads: Quad[], predicate: string, prefix?: string, languages?: string[]): Term | undefined;
|
|
7
7
|
export declare function focusFirstInputElement(context: HTMLElement): void;
|
|
8
8
|
export declare function findLabel(quads: Quad[], languages: string[]): string;
|
|
9
|
-
export declare function createInputListEntries(subjects: Term[], shapesGraph: Store, languages: string[]): InputListEntry[];
|
|
9
|
+
export declare function createInputListEntries(subjects: Term[], shapesGraph: Store, languages: string[], indent?: number): InputListEntry[];
|
|
10
10
|
export declare function removePrefixes(id: string, prefixes: Prefixes): string;
|
|
11
|
-
export declare function findInstancesOf(clazz: NamedNode,
|
|
11
|
+
export declare function findInstancesOf(clazz: NamedNode, template: ShaclPropertyTemplate, indent?: number): InputListEntry[];
|
|
12
12
|
export declare function isURL(input: string): boolean;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ulb-darmstadt/shacl-form",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "SHACL form generator",
|
|
5
5
|
"main": "dist/form-default.js",
|
|
6
6
|
"module": "dist/form-default.js",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"rimraf": "^5.0.1",
|
|
44
44
|
"ts-loader": "^9.5.1",
|
|
45
45
|
"typescript": "^5.4.5",
|
|
46
|
-
"webpack": "
|
|
46
|
+
"webpack": ">=5.94.0",
|
|
47
47
|
"webpack-cli": "^5.1.4",
|
|
48
48
|
"webpack-dev-server": "^5.0.4"
|
|
49
49
|
},
|