@ulb-darmstadt/shacl-form 1.1.9 → 1.2.1
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 +27 -10
- package/dist/bootstrap.js +2 -0
- package/dist/config.d.ts +5 -1
- package/dist/form-bootstrap.d.ts +4 -0
- package/dist/form-material.d.ts +4 -0
- package/dist/form-native.d.ts +4 -0
- package/dist/form.d.ts +4 -5
- package/dist/index.js +1 -1
- package/dist/loader.d.ts +0 -1
- package/dist/material.js +335 -0
- package/dist/material.js.LICENSE.txt +137 -0
- package/dist/plugin.d.ts +5 -2
- package/dist/plugins/fixed-list.d.ts +1 -1
- package/dist/plugins/fixed-list.js +1 -0
- package/dist/plugins/mapbox.d.ts +8 -15
- package/dist/plugins/mapbox.js +2 -0
- package/dist/plugins/mapbox.js.LICENSE.txt +1 -0
- package/dist/property.d.ts +1 -1
- package/dist/theme.d.ts +12 -16
- package/dist/themes/bootstrap.d.ts +10 -0
- package/dist/themes/material.d.ts +15 -0
- package/dist/themes/material.js +335 -0
- package/dist/themes/material.js.LICENSE.txt +65 -0
- package/dist/themes/native.d.ts +15 -0
- package/dist/util.d.ts +1 -0
- package/package.json +4 -6
- package/dist/editors.d.ts +0 -19
- package/dist/index-with-plugins.d.ts +0 -2
- package/dist/index-with-plugins.js +0 -3
- package/dist/index-with-plugins.js.map +0 -1
- package/dist/index.d.ts +0 -3
- package/dist/plugins/index.d.ts +0 -3
- /package/dist/{index-with-plugins.js.LICENSE.txt → bootstrap.js.LICENSE.txt} +0 -0
package/dist/config.d.ts
CHANGED
|
@@ -10,9 +10,11 @@ export declare class ElementAttributes {
|
|
|
10
10
|
values: string | null;
|
|
11
11
|
valuesUrl: string | null;
|
|
12
12
|
valueSubject: string | null;
|
|
13
|
-
|
|
13
|
+
mode: string | null;
|
|
14
14
|
language: string;
|
|
15
|
+
loading: string;
|
|
15
16
|
ignoreOwlImports: string | null;
|
|
17
|
+
collapse: string | null;
|
|
16
18
|
submitButton: string | null;
|
|
17
19
|
}
|
|
18
20
|
export declare class Config {
|
|
@@ -26,7 +28,9 @@ export declare class Config {
|
|
|
26
28
|
lists: Record<string, Term[]>;
|
|
27
29
|
groups: Array<string>;
|
|
28
30
|
theme: Theme;
|
|
31
|
+
form: HTMLElement;
|
|
29
32
|
private _shapesGraph;
|
|
33
|
+
constructor(theme: Theme, form: HTMLElement);
|
|
30
34
|
updateAttributes(elem: HTMLElement): void;
|
|
31
35
|
static dataAttributes(): Array<string>;
|
|
32
36
|
get shapesGraph(): Store;
|
package/dist/form.d.ts
CHANGED
|
@@ -1,22 +1,21 @@
|
|
|
1
1
|
import { ShaclNode } from './node';
|
|
2
2
|
import { Config } from './config';
|
|
3
|
-
import { ClassInstanceProvider, Plugin } from './plugin';
|
|
3
|
+
import { ClassInstanceProvider, Plugin, PluginOptions } from './plugin';
|
|
4
4
|
import { Theme } from './theme';
|
|
5
|
-
import './styles.css';
|
|
6
5
|
export declare class ShaclForm extends HTMLElement {
|
|
7
6
|
static get observedAttributes(): string[];
|
|
8
7
|
config: Config;
|
|
9
8
|
shape: ShaclNode | null;
|
|
10
9
|
form: HTMLFormElement;
|
|
11
10
|
initDebounceTimeout: ReturnType<typeof setTimeout> | undefined;
|
|
12
|
-
constructor();
|
|
11
|
+
constructor(theme: Theme);
|
|
13
12
|
connectedCallback(): void;
|
|
14
13
|
attributeChangedCallback(): void;
|
|
15
14
|
private initialize;
|
|
16
15
|
serialize(format?: string): string;
|
|
17
|
-
registerPlugin(plugin: Plugin): void;
|
|
18
|
-
setClassInstanceProvider(provider: ClassInstanceProvider): void;
|
|
16
|
+
registerPlugin(plugin: Plugin, options?: PluginOptions): void;
|
|
19
17
|
setTheme(theme: Theme): void;
|
|
18
|
+
setClassInstanceProvider(provider: ClassInstanceProvider): void;
|
|
20
19
|
validate(ignoreEmptyValues?: boolean): Promise<boolean>;
|
|
21
20
|
private createValidationErrorDisplay;
|
|
22
21
|
private findRootShaclShapeSubject;
|