@ulb-darmstadt/shacl-form 1.3.2 → 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/README.md +8 -2
- package/dist/form-bootstrap.js +1 -1
- package/dist/form-default.js +1 -1
- package/dist/form-material.js +91 -91
- package/dist/form.d.ts +3 -1
- package/dist/loader.d.ts +0 -1
- package/dist/serialize.d.ts +3 -1
- package/dist/theme.d.ts +1 -2
- package/package.json +3 -2
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
package/dist/serialize.d.ts
CHANGED
|
@@ -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 {
|
|
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
|
+
"version": "1.3.4",
|
|
4
4
|
"description": "SHACL form generator",
|
|
5
5
|
"main": "dist/form-default.js",
|
|
6
6
|
"module": "dist/form-default.js",
|
|
@@ -21,7 +21,8 @@
|
|
|
21
21
|
"generator",
|
|
22
22
|
"RDF",
|
|
23
23
|
"metadata",
|
|
24
|
-
"editor"
|
|
24
|
+
"editor",
|
|
25
|
+
"viewer"
|
|
25
26
|
],
|
|
26
27
|
"scripts": {
|
|
27
28
|
"build": "npm run clean && webpack --mode production",
|