@ulb-darmstadt/shacl-form 1.5.3 → 1.6.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.
@@ -1,9 +1 @@
1
1
  /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
2
-
3
- /**
4
- * tiny-lru
5
- *
6
- * @copyright 2024 Jason Mulligan <jason.mulligan@avoidwork.com>
7
- * @license BSD-3-Clause
8
- * @version 11.2.11
9
- */
@@ -1,9 +1,10 @@
1
- import { Literal, NamedNode, BlankNode, Quad } from 'n3';
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[], nodeId: NamedNode | BlankNode, config: Config);
36
+ constructor(quads: Quad[], parent: ShaclNode, config: Config);
35
37
  merge(quads: Quad[]): ShaclPropertyTemplate;
36
38
  clone(): ShaclPropertyTemplate;
37
39
  }
@@ -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, config: Config, nodeId: NamedNode | BlankNode, valueSubject?: NamedNode | BlankNode);
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
@@ -12,6 +12,7 @@ export type Editor = HTMLElement & {
12
12
  export type InputListEntry = {
13
13
  value: Term | string;
14
14
  label?: string;
15
+ indent?: number;
15
16
  };
16
17
  export declare abstract class Theme {
17
18
  stylesheet: CSSStyleSheet;
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 { Config } from './config';
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, config: Config): InputListEntry[];
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.5.3",
3
+ "version": "1.6.1",
4
4
  "description": "SHACL form generator",
5
5
  "main": "dist/form-default.js",
6
6
  "module": "dist/form-default.js",
@@ -31,33 +31,32 @@
31
31
  "serve": "webpack serve --mode development"
32
32
  },
33
33
  "devDependencies": {
34
- "@types/jsonld": "^1.5.13",
34
+ "@types/jsonld": "^1.5.15",
35
35
  "@types/leaflet": "^1.9.12",
36
36
  "@types/leaflet-editable": "^1.2.6",
37
37
  "@types/leaflet.fullscreen": "^3.0.2",
38
38
  "@types/mapbox__mapbox-gl-draw": "^1.4.6",
39
- "@types/n3": "^1.16.4",
40
- "@types/rdf-validate-shacl": "^0.4.7",
41
- "@types/uuid": "^9.0.8",
39
+ "@types/n3": "^1.21.0",
40
+ "@types/uuid": "^10.0.0",
42
41
  "raw-loader": "^4.0.2",
43
- "rimraf": "^5.0.1",
42
+ "rimraf": "^6.0.1",
44
43
  "ts-loader": "^9.5.1",
45
- "typescript": "^5.4.5",
46
- "webpack": "^5.91.0",
44
+ "typescript": "^5.6.2",
45
+ "webpack": ">=5.94.0",
47
46
  "webpack-cli": "^5.1.4",
48
- "webpack-dev-server": "^5.0.4"
47
+ "webpack-dev-server": "^5.1.0"
49
48
  },
50
49
  "dependencies": {
51
50
  "@mapbox/mapbox-gl-draw": "^1.4.3",
52
- "@material/web": "^1.5.1",
51
+ "@material/web": "^2.1.0",
53
52
  "bootstrap": "^5.3.3",
54
53
  "jsonld": "^8.3.2",
55
54
  "leaflet": "^1.9.4",
56
- "leaflet-editable": "^1.2.0",
57
- "leaflet.fullscreen": "^3.0.1",
55
+ "leaflet-editable": "^1.3.0",
56
+ "leaflet.fullscreen": "^3.0.2",
58
57
  "mapbox-gl": "^3.3.0",
59
- "n3": "^1.17.3",
58
+ "n3": "^1.21.1",
60
59
  "shacl-engine": "^1.0.1",
61
- "uuid": "^9.0.1"
60
+ "uuid": "^10.0.0"
62
61
  }
63
62
  }