@ulb-darmstadt/shacl-form 1.3.6 → 1.3.7
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/package.json +2 -2
- package/dist/config.d.ts +0 -39
- package/dist/constants.d.ts +0 -16
- package/dist/constraints.d.ts +0 -7
- package/dist/exports.d.ts +0 -2
- package/dist/form-bootstrap.d.ts +0 -5
- package/dist/form-bootstrap.js +0 -2
- package/dist/form-bootstrap.js.LICENSE.txt +0 -71
- package/dist/form-default.d.ts +0 -5
- package/dist/form-default.js +0 -2
- package/dist/form-default.js.LICENSE.txt +0 -71
- package/dist/form-material.d.ts +0 -5
- package/dist/form-material.js +0 -351
- package/dist/form-material.js.LICENSE.txt +0 -137
- package/dist/form.d.ts +0 -24
- package/dist/group.d.ts +0 -2
- package/dist/loader.d.ts +0 -12
- package/dist/node.d.ts +0 -10
- package/dist/plugin.d.ts +0 -21
- package/dist/plugins/fixed-list.d.ts +0 -9
- package/dist/plugins/fixed-list.js +0 -1
- package/dist/plugins/mapbox.d.ts +0 -24
- package/dist/plugins/mapbox.js +0 -2
- package/dist/plugins/mapbox.js.LICENSE.txt +0 -1
- package/dist/property-template.d.ts +0 -36
- package/dist/property.d.ts +0 -13
- package/dist/serialize.d.ts +0 -4
- package/dist/theme.d.ts +0 -27
- package/dist/themes/bootstrap.d.ts +0 -10
- package/dist/themes/default.d.ts +0 -15
- package/dist/themes/material.d.ts +0 -15
- package/dist/util.d.ts +0 -12
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { Literal, NamedNode, BlankNode, Quad } from 'n3';
|
|
2
|
-
import { Term } from '@rdfjs/types';
|
|
3
|
-
import { Config } from './config';
|
|
4
|
-
export declare class ShaclPropertyTemplate {
|
|
5
|
-
label: string;
|
|
6
|
-
nodeId: NamedNode | BlankNode;
|
|
7
|
-
name: Literal | undefined;
|
|
8
|
-
description: Literal | undefined;
|
|
9
|
-
path: string | undefined;
|
|
10
|
-
node: NamedNode | undefined;
|
|
11
|
-
class: NamedNode | undefined;
|
|
12
|
-
minCount: number | undefined;
|
|
13
|
-
maxCount: number | undefined;
|
|
14
|
-
minLength: number | undefined;
|
|
15
|
-
maxLength: number | undefined;
|
|
16
|
-
minInclusive: number | undefined;
|
|
17
|
-
maxInclusive: number | undefined;
|
|
18
|
-
minExclusive: number | undefined;
|
|
19
|
-
maxExclusive: number | undefined;
|
|
20
|
-
singleLine: boolean | undefined;
|
|
21
|
-
defaultValue: Term | undefined;
|
|
22
|
-
pattern: string | undefined;
|
|
23
|
-
order: string | undefined;
|
|
24
|
-
nodeKind: NamedNode | undefined;
|
|
25
|
-
shaclAnd: string | undefined;
|
|
26
|
-
shaclIn: string | undefined;
|
|
27
|
-
shaclOr: Term[] | undefined;
|
|
28
|
-
languageIn: Term[] | undefined;
|
|
29
|
-
datatype: NamedNode | undefined;
|
|
30
|
-
hasValue: Term | undefined;
|
|
31
|
-
config: Config;
|
|
32
|
-
extendedShapes: NamedNode[] | undefined;
|
|
33
|
-
constructor(quads: Quad[], nodeId: NamedNode | BlankNode, config: Config);
|
|
34
|
-
merge(quads: Quad[]): ShaclPropertyTemplate;
|
|
35
|
-
clone(): ShaclPropertyTemplate;
|
|
36
|
-
}
|
package/dist/property.d.ts
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { BlankNode, NamedNode, Store } from 'n3';
|
|
2
|
-
import { Term } from '@rdfjs/types';
|
|
3
|
-
import { Config } from './config';
|
|
4
|
-
import { ShaclPropertyTemplate } from './property-template';
|
|
5
|
-
export declare class ShaclProperty extends HTMLElement {
|
|
6
|
-
template: ShaclPropertyTemplate;
|
|
7
|
-
addButton: HTMLElement | undefined;
|
|
8
|
-
constructor(shaclSubject: BlankNode | NamedNode, config: Config, nodeId: NamedNode | BlankNode, valueSubject?: NamedNode | BlankNode);
|
|
9
|
-
addPropertyInstance(value?: Term): HTMLElement;
|
|
10
|
-
updateControls(): void;
|
|
11
|
-
toRDF(graph: Store, subject: NamedNode | BlankNode): void;
|
|
12
|
-
}
|
|
13
|
-
export declare function createPropertyInstance(template: ShaclPropertyTemplate, value?: Term, forceRemovable?: boolean): HTMLElement;
|
package/dist/serialize.d.ts
DELETED
package/dist/theme.d.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { NamedNode } from 'n3';
|
|
2
|
-
import { Term } from '@rdfjs/types';
|
|
3
|
-
import { ShaclPropertyTemplate } from './property-template';
|
|
4
|
-
export type Editor = HTMLElement & {
|
|
5
|
-
value: string;
|
|
6
|
-
type?: string;
|
|
7
|
-
shaclDatatype?: NamedNode<string>;
|
|
8
|
-
checked?: boolean;
|
|
9
|
-
};
|
|
10
|
-
export type InputListEntry = {
|
|
11
|
-
value: Term | string;
|
|
12
|
-
label?: string;
|
|
13
|
-
};
|
|
14
|
-
export declare abstract class Theme {
|
|
15
|
-
stylesheet: CSSStyleSheet;
|
|
16
|
-
constructor(styles?: string);
|
|
17
|
-
apply(root: HTMLFormElement): void;
|
|
18
|
-
createViewer(label: string, value: Term, template: ShaclPropertyTemplate): HTMLElement;
|
|
19
|
-
abstract createListEditor(label: string, value: Term | null, required: boolean, listEntries: InputListEntry[], template?: ShaclPropertyTemplate): HTMLElement;
|
|
20
|
-
abstract createLangStringEditor(label: string, value: Term | null, required: boolean, template: ShaclPropertyTemplate): HTMLElement;
|
|
21
|
-
abstract createTextEditor(label: string, value: Term | null, required: boolean, template: ShaclPropertyTemplate): HTMLElement;
|
|
22
|
-
abstract createNumberEditor(label: string, value: Term | null, required: boolean, template: ShaclPropertyTemplate): HTMLElement;
|
|
23
|
-
abstract createDateEditor(label: string, value: Term | null, required: boolean, template: ShaclPropertyTemplate): HTMLElement;
|
|
24
|
-
abstract createBooleanEditor(label: string, value: Term | null, required: boolean, template: ShaclPropertyTemplate): HTMLElement;
|
|
25
|
-
abstract createButton(label: string, primary: boolean): HTMLElement;
|
|
26
|
-
}
|
|
27
|
-
export declare function fieldFactory(template: ShaclPropertyTemplate, value: Term | null): HTMLElement;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { DefaultTheme } from './default';
|
|
2
|
-
import { Term } from '@rdfjs/types';
|
|
3
|
-
import { ShaclPropertyTemplate } from '../property-template';
|
|
4
|
-
import { Editor } from '../theme';
|
|
5
|
-
export declare class BootstrapTheme extends DefaultTheme {
|
|
6
|
-
constructor();
|
|
7
|
-
apply(root: HTMLFormElement): void;
|
|
8
|
-
createDefaultTemplate(label: string, value: Term | null, required: boolean, editor: Editor, template?: ShaclPropertyTemplate | undefined): HTMLElement;
|
|
9
|
-
createButton(label: string, primary: boolean): HTMLElement;
|
|
10
|
-
}
|
package/dist/themes/default.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Term } from '@rdfjs/types';
|
|
2
|
-
import { ShaclPropertyTemplate } from "../property-template";
|
|
3
|
-
import { Editor, InputListEntry, Theme } from "../theme";
|
|
4
|
-
export declare class DefaultTheme extends Theme {
|
|
5
|
-
idCtr: number;
|
|
6
|
-
constructor(overiddenCss?: string);
|
|
7
|
-
createDefaultTemplate(label: string, value: Term | null, required: boolean, editor: Editor, template?: ShaclPropertyTemplate): HTMLElement;
|
|
8
|
-
createDateEditor(label: string, value: Term | null, required: boolean, template: ShaclPropertyTemplate): HTMLElement;
|
|
9
|
-
createTextEditor(label: string, value: Term | null, required: boolean, template: ShaclPropertyTemplate): HTMLElement;
|
|
10
|
-
createLangStringEditor(label: string, value: Term | null, required: boolean, template: ShaclPropertyTemplate): HTMLElement;
|
|
11
|
-
createBooleanEditor(label: string, value: Term | null, required: boolean, template: ShaclPropertyTemplate): HTMLElement;
|
|
12
|
-
createNumberEditor(label: string, value: Term | null, required: boolean, template: ShaclPropertyTemplate): HTMLElement;
|
|
13
|
-
createListEditor(label: string, value: Term | null, required: boolean, listEntries: InputListEntry[], template?: ShaclPropertyTemplate): HTMLElement;
|
|
14
|
-
createButton(label: string, primary: boolean): HTMLElement;
|
|
15
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { ShaclPropertyTemplate } from '../property-template';
|
|
2
|
-
import { Term } from '@rdfjs/types';
|
|
3
|
-
import { Theme } from '../theme';
|
|
4
|
-
import { InputListEntry, Editor } from '../theme';
|
|
5
|
-
export declare class MaterialTheme extends Theme {
|
|
6
|
-
constructor();
|
|
7
|
-
createDefaultTemplate(label: string, value: Term | null, required: boolean, editor: Editor, template?: ShaclPropertyTemplate): HTMLElement;
|
|
8
|
-
createTextEditor(label: string, value: Term | null, required: boolean, template: ShaclPropertyTemplate): HTMLElement;
|
|
9
|
-
createNumberEditor(label: string, value: Term | null, required: boolean, template: ShaclPropertyTemplate): HTMLElement;
|
|
10
|
-
createListEditor(label: string, value: Term | null, required: boolean, listEntries: InputListEntry[], template?: ShaclPropertyTemplate): HTMLElement;
|
|
11
|
-
createBooleanEditor(label: string, value: Term | null, required: boolean, template: ShaclPropertyTemplate): HTMLElement;
|
|
12
|
-
createDateEditor(label: string, value: Term | null, required: boolean, template: ShaclPropertyTemplate): HTMLElement;
|
|
13
|
-
createLangStringEditor(label: string, value: Term | null, required: boolean, template: ShaclPropertyTemplate): HTMLElement;
|
|
14
|
-
createButton(label: string, primary: boolean): HTMLElement;
|
|
15
|
-
}
|
package/dist/util.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { NamedNode, Prefixes, Quad, Store } from 'n3';
|
|
2
|
-
import { Term } from '@rdfjs/types';
|
|
3
|
-
import { InputListEntry } from './theme';
|
|
4
|
-
import { Config } from './config';
|
|
5
|
-
export declare function findObjectValueByPredicate(quads: Quad[], predicate: string, prefix?: string, language?: string): string;
|
|
6
|
-
export declare function findObjectByPredicate(quads: Quad[], predicate: string, prefix?: string, language?: string): Term | undefined;
|
|
7
|
-
export declare function focusFirstInputElement(context: HTMLElement): void;
|
|
8
|
-
export declare function findLabel(quads: Quad[], language: string): string;
|
|
9
|
-
export declare function createInputListEntries(subjects: Term[], shapesGraph: Store, language: string): InputListEntry[];
|
|
10
|
-
export declare function removePrefixes(id: string, prefixes: Prefixes): string;
|
|
11
|
-
export declare function findInstancesOf(clazz: NamedNode, config: Config): InputListEntry[];
|
|
12
|
-
export declare function isURL(input: string): boolean;
|