@ulb-darmstadt/shacl-form 1.10.4 → 2.0.0-rc1

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.
Files changed (54) hide show
  1. package/dist/bundle.js +412 -0
  2. package/dist/constants.d.ts +16 -16
  3. package/dist/constraints.d.ts +2 -2
  4. package/dist/form.d.ts +4 -3
  5. package/dist/index.js +62 -0
  6. package/dist/plugins/assets/plugin-VN3CfgGe.js +1 -0
  7. package/dist/plugins/file-upload.js +1 -0
  8. package/dist/plugins/leaflet.d.ts +3 -1
  9. package/dist/plugins/leaflet.js +5 -708
  10. package/dist/plugins/map-util.js +1 -0
  11. package/dist/{themes/default.d.ts → theme.default.d.ts} +2 -2
  12. package/package.json +20 -26
  13. package/dist/form-bootstrap.d.ts +0 -5
  14. package/dist/form-bootstrap.js +0 -413
  15. package/dist/form-default.d.ts +0 -5
  16. package/dist/form-default.js +0 -402
  17. package/dist/form-material.d.ts +0 -5
  18. package/dist/form-material.js +0 -722
  19. package/dist/plugins/fixed-list.d.ts +0 -9
  20. package/dist/plugins/mapbox.d.ts +0 -19
  21. package/dist/plugins/mapbox.js +0 -2904
  22. package/dist/themes/bootstrap.d.ts +0 -10
  23. package/dist/themes/material.d.ts +0 -15
  24. package/src/config.ts +0 -110
  25. package/src/constants.ts +0 -30
  26. package/src/constraints.ts +0 -149
  27. package/src/exports.ts +0 -7
  28. package/src/form-bootstrap.ts +0 -12
  29. package/src/form-default.ts +0 -12
  30. package/src/form-material.ts +0 -12
  31. package/src/form.ts +0 -319
  32. package/src/globals.d.ts +0 -2
  33. package/src/group.ts +0 -34
  34. package/src/loader.ts +0 -187
  35. package/src/node.ts +0 -192
  36. package/src/plugin.ts +0 -60
  37. package/src/plugins/file-upload.ts +0 -26
  38. package/src/plugins/fixed-list.ts +0 -19
  39. package/src/plugins/leaflet.ts +0 -196
  40. package/src/plugins/map-util.ts +0 -41
  41. package/src/plugins/mapbox.ts +0 -157
  42. package/src/property-template.ts +0 -151
  43. package/src/property.ts +0 -309
  44. package/src/serialize.ts +0 -96
  45. package/src/shacl-engine.d.ts +0 -2
  46. package/src/styles.css +0 -49
  47. package/src/theme.ts +0 -132
  48. package/src/themes/bootstrap.css +0 -6
  49. package/src/themes/bootstrap.ts +0 -44
  50. package/src/themes/default.css +0 -4
  51. package/src/themes/default.ts +0 -258
  52. package/src/themes/material.css +0 -14
  53. package/src/themes/material.ts +0 -253
  54. 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,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
- }