@ulb-darmstadt/shacl-form 1.3.3 → 1.3.4

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/form.d.ts CHANGED
@@ -1,6 +1,7 @@
1
1
  import { ShaclNode } from './node';
2
2
  import { Config } from './config';
3
3
  import { ClassInstanceProvider, Plugin, PluginOptions } from './plugin';
4
+ import { Quad, Store } from 'n3';
4
5
  import { Theme } from './theme';
5
6
  export declare class ShaclForm extends HTMLElement {
6
7
  static get observedAttributes(): string[];
@@ -12,7 +13,8 @@ export declare class ShaclForm extends HTMLElement {
12
13
  connectedCallback(): void;
13
14
  attributeChangedCallback(): void;
14
15
  private initialize;
15
- serialize(format?: string): string;
16
+ serialize(format?: string, graph?: Store<import("rdf-js").Quad, Quad, import("rdf-js").Quad, import("rdf-js").Quad>): string;
17
+ toRDF(graph?: Store<import("rdf-js").Quad, Quad, import("rdf-js").Quad, import("rdf-js").Quad>): Store;
16
18
  registerPlugin(plugin: Plugin, options?: PluginOptions): void;
17
19
  setTheme(theme: Theme): void;
18
20
  setClassInstanceProvider(provider: ClassInstanceProvider): void;
package/dist/loader.d.ts CHANGED
@@ -1,7 +1,6 @@
1
1
  import { Store, Parser, NamedNode } from 'n3';
2
2
  import { Config } from './config';
3
3
  export declare class Loader {
4
- private abortController;
5
4
  private config;
6
5
  private loadedOwlImports;
7
6
  private loadedClasses;
@@ -1,2 +1,4 @@
1
- import { Quad, Prefixes } from 'n3';
1
+ import { NamedNode, Quad, Literal, Prefixes } from 'n3';
2
+ import { Editor } from './theme';
2
3
  export declare function serialize(quads: Quad[], format: string, prefixes?: Prefixes): string;
4
+ export declare function toRDF(editor: Editor): Literal | NamedNode | undefined;
package/dist/theme.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { Literal, NamedNode } from 'n3';
1
+ import { NamedNode } from 'n3';
2
2
  import { Term } from '@rdfjs/types';
3
3
  import { ShaclPropertyTemplate } from './property-template';
4
4
  export type Editor = HTMLElement & {
@@ -24,5 +24,4 @@ export declare abstract class Theme {
24
24
  abstract createBooleanEditor(label: string, value: Term | null, required: boolean, template: ShaclPropertyTemplate): HTMLElement;
25
25
  abstract createButton(label: string, primary: boolean): HTMLElement;
26
26
  }
27
- export declare function toRDF(editor: Editor): Literal | NamedNode | undefined;
28
27
  export declare function fieldFactory(template: ShaclPropertyTemplate, value: Term | null): HTMLElement;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ulb-darmstadt/shacl-form",
3
- "version": "1.3.3",
3
+ "version": "1.3.4",
4
4
  "description": "SHACL form generator",
5
5
  "main": "dist/form-default.js",
6
6
  "module": "dist/form-default.js",