@ulb-darmstadt/shacl-form 1.10.4 → 2.0.0-rc2
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/bundle.d.ts +3 -0
- package/dist/bundle.js +415 -0
- package/dist/constants.d.ts +16 -16
- package/dist/constraints.d.ts +2 -2
- package/dist/form.d.ts +4 -3
- package/dist/index.js +62 -0
- package/dist/plugins/assets/plugin-VN3CfgGe.js +1 -0
- package/dist/plugins/file-upload.js +1 -0
- package/dist/plugins/leaflet.d.ts +8 -2
- package/dist/plugins/leaflet.js +5 -708
- package/dist/{themes/default.d.ts → theme.default.d.ts} +2 -2
- package/package.json +20 -26
- package/dist/form-bootstrap.d.ts +0 -5
- package/dist/form-bootstrap.js +0 -413
- package/dist/form-default.d.ts +0 -5
- package/dist/form-default.js +0 -402
- package/dist/form-material.d.ts +0 -5
- package/dist/form-material.js +0 -722
- package/dist/plugins/fixed-list.d.ts +0 -9
- package/dist/plugins/map-util.d.ts +0 -5
- package/dist/plugins/mapbox.d.ts +0 -19
- package/dist/plugins/mapbox.js +0 -2904
- package/dist/themes/bootstrap.d.ts +0 -10
- package/dist/themes/material.d.ts +0 -15
- package/src/config.ts +0 -110
- package/src/constants.ts +0 -30
- package/src/constraints.ts +0 -149
- package/src/exports.ts +0 -7
- package/src/form-bootstrap.ts +0 -12
- package/src/form-default.ts +0 -12
- package/src/form-material.ts +0 -12
- package/src/form.ts +0 -319
- package/src/globals.d.ts +0 -2
- package/src/group.ts +0 -34
- package/src/loader.ts +0 -187
- package/src/node.ts +0 -192
- package/src/plugin.ts +0 -60
- package/src/plugins/file-upload.ts +0 -26
- package/src/plugins/fixed-list.ts +0 -19
- package/src/plugins/leaflet.ts +0 -196
- package/src/plugins/map-util.ts +0 -41
- package/src/plugins/mapbox.ts +0 -157
- package/src/property-template.ts +0 -151
- package/src/property.ts +0 -309
- package/src/serialize.ts +0 -96
- package/src/shacl-engine.d.ts +0 -2
- package/src/styles.css +0 -49
- package/src/theme.ts +0 -132
- package/src/themes/bootstrap.css +0 -6
- package/src/themes/bootstrap.ts +0 -44
- package/src/themes/default.css +0 -4
- package/src/themes/default.ts +0 -258
- package/src/themes/material.css +0 -14
- package/src/themes/material.ts +0 -253
- package/src/util.ts +0 -275
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Plugin, PluginOptions } from '../plugin';
|
|
2
|
-
import { Term } from '@rdfjs/types';
|
|
3
|
-
import { ShaclPropertyTemplate } from '../property-template';
|
|
4
|
-
import { InputListEntry } from '../theme';
|
|
5
|
-
export declare class FixedListPlugin extends Plugin {
|
|
6
|
-
entries: InputListEntry[];
|
|
7
|
-
constructor(options: PluginOptions, entries: InputListEntry[]);
|
|
8
|
-
createEditor(template: ShaclPropertyTemplate, value?: Term): HTMLElement;
|
|
9
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { Point, Polygon } from 'geojson';
|
|
2
|
-
export type Geometry = Point | Polygon;
|
|
3
|
-
export declare const worldBounds: [number, number][];
|
|
4
|
-
export declare function wktToGeometry(wkt: string): Geometry | undefined;
|
|
5
|
-
export declare function geometryToWkt(geometry: Geometry): string;
|
package/dist/plugins/mapbox.d.ts
DELETED
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { Term } from '@rdfjs/types';
|
|
2
|
-
import { Plugin, PluginOptions } from '../plugin';
|
|
3
|
-
import { ShaclPropertyTemplate } from '../property-template';
|
|
4
|
-
import { Editor } from '../theme';
|
|
5
|
-
import { Map } from 'mapbox-gl';
|
|
6
|
-
import { default as MapboxDraw } from '@mapbox/mapbox-gl-draw';
|
|
7
|
-
import { Geometry } from './map-util';
|
|
8
|
-
export declare class MapboxPlugin extends Plugin {
|
|
9
|
-
map: Map | undefined;
|
|
10
|
-
draw: MapboxDraw | undefined;
|
|
11
|
-
currentEditor: Editor | undefined;
|
|
12
|
-
apiKey: string;
|
|
13
|
-
constructor(options: PluginOptions, apiKey: string);
|
|
14
|
-
initEditMode(form: HTMLElement): HTMLDialogElement;
|
|
15
|
-
createEditor(template: ShaclPropertyTemplate, value?: Term): HTMLElement;
|
|
16
|
-
createViewer(_: ShaclPropertyTemplate, value: Term): HTMLElement;
|
|
17
|
-
fitToGeometry(map: Map, geometry: Geometry): void;
|
|
18
|
-
deleteAllButLastDrawing(): void;
|
|
19
|
-
}
|