@ulb-darmstadt/shacl-form 1.1.3 → 1.1.5

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/loader.d.ts CHANGED
@@ -3,6 +3,8 @@ import { Config } from './config';
3
3
  export declare class Loader {
4
4
  private abortController;
5
5
  private config;
6
+ private loadedOwlImports;
7
+ private loadedClasses;
6
8
  constructor(config: Config);
7
9
  loadGraphs(): Promise<void>;
8
10
  importRDF(input: string | Promise<string>, store: Store, graph?: NamedNode, parser?: Parser): Promise<void>;
package/dist/plugin.d.ts CHANGED
@@ -1,8 +1,5 @@
1
1
  import { ShaclPropertyTemplate } from './property-template';
2
- import { InputListEntry } from './editors';
3
- import { NamedNode } from 'n3';
4
2
  import { Term } from '@rdfjs/types';
5
- import { Config } from './config';
6
3
  export type Plugins = {
7
4
  [predicate: string]: Plugin;
8
5
  };
@@ -12,10 +9,3 @@ export declare abstract class Plugin {
12
9
  abstract createInstance(template: ShaclPropertyTemplate, value?: Term): HTMLElement;
13
10
  }
14
11
  export type ClassInstanceProvider = (clazz: string) => Promise<string>;
15
- export declare class ClassInstanceLoader {
16
- private config;
17
- private provider;
18
- private loadedClasses;
19
- constructor(config: Config, provider: ClassInstanceProvider);
20
- loadClassInstances(clazz: NamedNode, config: Config): Promise<InputListEntry[]>;
21
- }
@@ -3,7 +3,7 @@ import { Term } from '@rdfjs/types';
3
3
  import { ShaclPropertyTemplate } from '../property-template';
4
4
  import { InputListEntry } from '../editors';
5
5
  export declare class FixedListPlugin extends Plugin {
6
- entries: InputListEntry[] | Promise<InputListEntry[]>;
7
- constructor(predicate: string, entries: InputListEntry[] | Promise<InputListEntry[]>);
6
+ entries: InputListEntry[];
7
+ constructor(predicate: string, entries: InputListEntry[]);
8
8
  createInstance(template: ShaclPropertyTemplate, value?: Term): HTMLElement;
9
9
  }
@@ -1,8 +1,15 @@
1
1
  import { Term } from '@rdfjs/types';
2
2
  import { Plugin } from '../plugin';
3
3
  import { ShaclPropertyTemplate } from '../property-template';
4
+ import { Editor } from '../editors';
5
+ import mapboxgl from 'mapbox-gl';
6
+ import 'mapbox-gl/dist/mapbox-gl.css';
4
7
  export declare class MapBoxPlugin extends Plugin {
5
- apiKey: string;
8
+ map: mapboxgl.Map;
9
+ dialog: HTMLDialogElement;
10
+ currentEditor: Editor | undefined;
11
+ currentMarker: mapboxgl.Marker | undefined;
6
12
  constructor(predicate: string, apiKey: string);
7
13
  createInstance(template: ShaclPropertyTemplate, value?: Term): HTMLElement;
14
+ setMarker(pos: mapboxgl.LngLat | undefined): void;
8
15
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ulb-darmstadt/shacl-form",
3
- "version": "1.1.3",
3
+ "version": "1.1.5",
4
4
  "description": "SHACL form generator",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -44,6 +44,7 @@
44
44
  "webpack-dev-server": "^4.15.1"
45
45
  },
46
46
  "dependencies": {
47
+ "mapbox-gl": "^2.15.0",
47
48
  "n3": "^1.17.0",
48
49
  "rdf-validate-shacl": "^0.4.5",
49
50
  "uuid": "^9.0.0"