@ulb-darmstadt/shacl-form
Version:
SHACL form generator
17 lines (16 loc) • 1.36 kB
TypeScript
import { Term } from '@rdfjs/types';
import { ShaclPropertyTemplate } from "./property-template";
import { Editor, InputListEntry, Theme } from "./theme";
export declare class DefaultTheme extends Theme {
idCtr: number;
constructor(overiddenCss?: string);
createDefaultTemplate(label: string, value: Term | null, required: boolean, editor: Editor, template?: ShaclPropertyTemplate): HTMLElement;
createDateEditor(label: string, value: Term | null, required: boolean, template: ShaclPropertyTemplate): HTMLElement;
createTextEditor(label: string, value: Term | null, required: boolean, template: ShaclPropertyTemplate): HTMLElement;
createLangStringEditor(label: string, value: Term | null, required: boolean, template: ShaclPropertyTemplate): HTMLElement;
createBooleanEditor(label: string, value: Term | null, required: boolean, template: ShaclPropertyTemplate): HTMLElement;
createFileEditor(label: string, value: Term | null, required: boolean, template: ShaclPropertyTemplate): HTMLElement;
createNumberEditor(label: string, value: Term | null, required: boolean, template: ShaclPropertyTemplate): HTMLElement;
createListEditor(label: string, value: Term | null, required: boolean, listEntries: InputListEntry[], template?: ShaclPropertyTemplate): HTMLElement;
createButton(label: string, _: boolean): HTMLElement;
}