@ulb-darmstadt/shacl-form 1.0.8 → 1.0.9
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/config.d.ts +27 -0
- package/dist/form.d.ts +19 -0
- package/dist/group.d.ts +4 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +2 -0
- package/dist/index.js.LICENSE.txt +16 -0
- package/dist/inputs.d.ts +43 -0
- package/dist/node.d.ts +12 -0
- package/dist/prefixes.d.ts +11 -0
- package/dist/property.d.ts +15 -0
- package/dist/theme.d.ts +9 -0
- package/dist/util.d.ts +4 -0
- package/package.json +5 -4
package/dist/config.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Store } from 'n3';
|
|
2
|
+
import { Term } from '@rdfjs/types';
|
|
3
|
+
import { Theme } from './theme';
|
|
4
|
+
export declare class Config {
|
|
5
|
+
static abortController: AbortController;
|
|
6
|
+
shapes: string | null;
|
|
7
|
+
shapesUrl: string | null;
|
|
8
|
+
shapeSubject: string | null;
|
|
9
|
+
values: string | null;
|
|
10
|
+
valuesUrl: string | null;
|
|
11
|
+
valueSubject: string | null;
|
|
12
|
+
language: string | null;
|
|
13
|
+
private _theme;
|
|
14
|
+
private _shapesGraph;
|
|
15
|
+
private _valuesGraph;
|
|
16
|
+
private _lists;
|
|
17
|
+
private _groups;
|
|
18
|
+
equals(other: Config): boolean;
|
|
19
|
+
loadGraphs(): Promise<void>;
|
|
20
|
+
get shapesGraph(): Store<import("@rdfjs/types").Quad, import("n3").Quad, import("@rdfjs/types").Quad, import("@rdfjs/types").Quad>;
|
|
21
|
+
get valuesGraph(): Store<import("@rdfjs/types").Quad, import("n3").Quad, import("@rdfjs/types").Quad, import("@rdfjs/types").Quad>;
|
|
22
|
+
get lists(): Record<string, Term[]>;
|
|
23
|
+
get groups(): string[];
|
|
24
|
+
set theme(theme: Theme);
|
|
25
|
+
static from(elem: HTMLElement): Config;
|
|
26
|
+
static get keysAsDataAttributes(): Array<string>;
|
|
27
|
+
}
|
package/dist/form.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ShaclNode } from './node';
|
|
2
|
+
import { Config } from './config';
|
|
3
|
+
import { Quad } from 'n3';
|
|
4
|
+
export declare class ShaclForm extends HTMLElement {
|
|
5
|
+
static get observedAttributes(): string[];
|
|
6
|
+
config: Config;
|
|
7
|
+
shape: ShaclNode | undefined;
|
|
8
|
+
form: HTMLFormElement;
|
|
9
|
+
initTimeout: ReturnType<typeof setTimeout> | undefined;
|
|
10
|
+
constructor();
|
|
11
|
+
connectedCallback(): void;
|
|
12
|
+
attributeChangedCallback(): void;
|
|
13
|
+
private initialize;
|
|
14
|
+
toRDF(): Quad[];
|
|
15
|
+
toRDFTurtle(): string;
|
|
16
|
+
reportValidity(): boolean;
|
|
17
|
+
private validate;
|
|
18
|
+
private findRootShaclShapeSubject;
|
|
19
|
+
}
|
package/dist/group.d.ts
ADDED
package/dist/index.d.ts
ADDED