@ulb-darmstadt/shacl-form 1.7.4 → 1.8.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 +20 -7
- package/dist/config.d.ts +4 -5
- package/dist/constants.d.ts +13 -13
- package/dist/constraints.d.ts +2 -2
- package/dist/exports.d.ts +2 -1
- package/dist/form-bootstrap.d.ts +1 -1
- package/dist/form-bootstrap.js +361 -2
- package/dist/form-default.d.ts +1 -1
- package/dist/form-default.js +350 -2
- package/dist/form-material.d.ts +1 -1
- package/dist/form-material.js +670 -2
- package/dist/form.d.ts +3 -2
- package/dist/node.d.ts +2 -1
- package/dist/plugins/leaflet.d.ts +2 -4
- package/dist/plugins/leaflet.js +720 -2
- package/dist/plugins/mapbox.d.ts +2 -2
- package/dist/plugins/mapbox.js +2764 -2
- package/dist/property-template.d.ts +1 -1
- package/dist/property.d.ts +6 -2
- package/dist/theme.d.ts +3 -3
- package/dist/themes/default.d.ts +3 -3
- package/dist/themes/material.d.ts +2 -3
- package/dist/util.d.ts +2 -2
- package/package.json +26 -12
- package/src/config.ts +11 -10
- package/src/constants.ts +3 -3
- package/src/constraints.ts +15 -18
- package/src/exports.ts +2 -1
- package/src/form.ts +32 -17
- package/src/group.ts +1 -1
- package/src/loader.ts +12 -13
- package/src/node.ts +40 -38
- package/src/plugins/leaflet.ts +2 -2
- package/src/plugins/mapbox.ts +4 -4
- package/src/property-template.ts +4 -5
- package/src/property.ts +154 -56
- package/src/serialize.ts +14 -1
- package/src/styles.css +8 -10
- package/src/theme.ts +6 -6
- package/src/themes/bootstrap.ts +1 -1
- package/src/themes/default.css +2 -2
- package/src/themes/default.ts +38 -30
- package/src/themes/material.ts +37 -34
- package/src/util.ts +26 -20
- package/dist/form-bootstrap.js.LICENSE.txt +0 -69
- package/dist/form-default.js.LICENSE.txt +0 -69
- package/dist/form-material.js.LICENSE.txt +0 -69
- package/dist/plugins/file-upload.js +0 -1
- package/dist/plugins/fixed-list.js +0 -1
- package/dist/plugins/leaflet.js.LICENSE.txt +0 -4
- package/dist/plugins/mapbox.js.LICENSE.txt +0 -10
package/dist/plugins/mapbox.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { Plugin, PluginOptions } from '../plugin';
|
|
|
3
3
|
import { ShaclPropertyTemplate } from '../property-template';
|
|
4
4
|
import { Editor } from '../theme';
|
|
5
5
|
import { Map } from 'mapbox-gl';
|
|
6
|
-
import MapboxDraw from '@mapbox/mapbox-gl-draw';
|
|
6
|
+
import { default as MapboxDraw } from '@mapbox/mapbox-gl-draw';
|
|
7
7
|
import { Geometry } from './map-util';
|
|
8
8
|
export declare class MapboxPlugin extends Plugin {
|
|
9
9
|
map: Map | undefined;
|
|
@@ -13,7 +13,7 @@ export declare class MapboxPlugin extends Plugin {
|
|
|
13
13
|
constructor(options: PluginOptions, apiKey: string);
|
|
14
14
|
initEditMode(form: HTMLElement): HTMLDialogElement;
|
|
15
15
|
createEditor(template: ShaclPropertyTemplate, value?: Term): HTMLElement;
|
|
16
|
-
createViewer(
|
|
16
|
+
createViewer(_: ShaclPropertyTemplate, value: Term): HTMLElement;
|
|
17
17
|
fitToGeometry(map: Map, geometry: Geometry): void;
|
|
18
18
|
deleteAllButLastDrawing(): void;
|
|
19
19
|
}
|