@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.
Files changed (55) hide show
  1. package/dist/bundle.d.ts +3 -0
  2. package/dist/bundle.js +415 -0
  3. package/dist/constants.d.ts +16 -16
  4. package/dist/constraints.d.ts +2 -2
  5. package/dist/form.d.ts +4 -3
  6. package/dist/index.js +62 -0
  7. package/dist/plugins/assets/plugin-VN3CfgGe.js +1 -0
  8. package/dist/plugins/file-upload.js +1 -0
  9. package/dist/plugins/leaflet.d.ts +8 -2
  10. package/dist/plugins/leaflet.js +5 -708
  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/map-util.d.ts +0 -5
  21. package/dist/plugins/mapbox.d.ts +0 -19
  22. package/dist/plugins/mapbox.js +0 -2904
  23. package/dist/themes/bootstrap.d.ts +0 -10
  24. package/dist/themes/material.d.ts +0 -15
  25. package/src/config.ts +0 -110
  26. package/src/constants.ts +0 -30
  27. package/src/constraints.ts +0 -149
  28. package/src/exports.ts +0 -7
  29. package/src/form-bootstrap.ts +0 -12
  30. package/src/form-default.ts +0 -12
  31. package/src/form-material.ts +0 -12
  32. package/src/form.ts +0 -319
  33. package/src/globals.d.ts +0 -2
  34. package/src/group.ts +0 -34
  35. package/src/loader.ts +0 -187
  36. package/src/node.ts +0 -192
  37. package/src/plugin.ts +0 -60
  38. package/src/plugins/file-upload.ts +0 -26
  39. package/src/plugins/fixed-list.ts +0 -19
  40. package/src/plugins/leaflet.ts +0 -196
  41. package/src/plugins/map-util.ts +0 -41
  42. package/src/plugins/mapbox.ts +0 -157
  43. package/src/property-template.ts +0 -151
  44. package/src/property.ts +0 -309
  45. package/src/serialize.ts +0 -96
  46. package/src/shacl-engine.d.ts +0 -2
  47. package/src/styles.css +0 -49
  48. package/src/theme.ts +0 -132
  49. package/src/themes/bootstrap.css +0 -6
  50. package/src/themes/bootstrap.ts +0 -44
  51. package/src/themes/default.css +0 -4
  52. package/src/themes/default.ts +0 -258
  53. package/src/themes/material.css +0 -14
  54. package/src/themes/material.ts +0 -253
  55. package/src/util.ts +0 -275
@@ -1,6 +1,6 @@
1
1
  import { Term } from '@rdfjs/types';
2
- import { ShaclPropertyTemplate } from '../property-template';
3
- import { Editor, InputListEntry, Theme } from '../theme';
2
+ import { ShaclPropertyTemplate } from "./property-template";
3
+ import { Editor, InputListEntry, Theme } from "./theme";
4
4
  export declare class DefaultTheme extends Theme {
5
5
  idCtr: number;
6
6
  constructor(overiddenCss?: string);
package/package.json CHANGED
@@ -1,22 +1,20 @@
1
1
  {
2
2
  "name": "@ulb-darmstadt/shacl-form",
3
- "version": "1.10.4",
3
+ "version": "2.0.0-rc2",
4
4
  "description": "SHACL form generator",
5
- "main": "dist/form-default.js",
6
- "module": "dist/form-default.js",
7
- "types": "dist/form-default.d.ts",
5
+ "main": "dist/index.js",
6
+ "module": "dist/index.js",
7
+ "types": "dist/form.d.ts",
8
8
  "type": "module",
9
9
  "exports": {
10
10
  ".": {
11
- "import": "./dist/form-default.js",
12
- "types": "./dist/form-default.d.ts"
11
+ "import": "./dist/index.js",
12
+ "types": "./dist/form.d.ts"
13
13
  },
14
- "./*.ts": "./src/*.ts",
15
- "./plugins/*.ts": "./src/plugins/*.ts"
14
+ "./plugins/*": "./dist/plugins/*"
16
15
  },
17
16
  "files": [
18
- "dist",
19
- "src"
17
+ "dist"
20
18
  ],
21
19
  "repository": {
22
20
  "type": "git",
@@ -36,14 +34,14 @@
36
34
  ],
37
35
  "scripts": {
38
36
  "dev": "vite serve ./demo --host",
39
- "build": "tsc && npm run build-default && npm run build-bootstrap && npm run build-material && npm run build-leaflet && npm run build-mapbox",
37
+ "build": "npm run clean && tsc && npm run build-lib && npm run build-bundle && npm run build-plugins",
40
38
  "preview": "vite preview",
41
39
  "test": "echo \"no tests specified\" && exit 0",
42
- "build-default": "vite build -c ./vite.form-default.config.ts",
43
- "build-bootstrap": "vite build -c ./vite.form-bootstrap.config.ts",
44
- "build-material": "vite build -c ./vite.form-material.config.ts",
45
- "build-leaflet": "vite build -c ./vite.plugin-leaflet.config.ts",
46
- "build-mapbox": "vite build -c ./vite.plugin-mapbox.config.ts"
40
+ "future-test": "web-test-runner --config test/web-test-runner.config.mjs",
41
+ "clean": "rimraf dist",
42
+ "build-lib": "vite build -c ./vite.config.ts",
43
+ "build-bundle": "vite build -c ./vite.config.bundle.ts",
44
+ "build-plugins": "vite build -c ./vite.config.plugins.ts"
47
45
  },
48
46
  "devDependencies": {
49
47
  "@open-wc/testing": "^4.0.0",
@@ -52,33 +50,29 @@
52
50
  "@types/leaflet-editable": "^1.2.7",
53
51
  "@types/leaflet.fullscreen": "^3.0.3",
54
52
  "@types/mapbox__mapbox-gl-draw": "^1.4.9",
53
+ "@types/mocha": "^10.0.10",
55
54
  "@types/n3": "^1.26.0",
56
55
  "@types/uuid": "^10.0.0",
57
56
  "@web/dev-server-esbuild": "^1.0.4",
58
57
  "@web/test-runner": "^0.20.2",
58
+ "glob": "^11.0.3",
59
59
  "rdf-isomorphic": "^2.0.1",
60
+ "rimraf": "^6.0.1",
60
61
  "rollup-plugin-peer-deps-external": "^2.2.4",
61
62
  "typescript": "^5.9.2",
62
63
  "vite": "^7.1.5",
63
- "vite-plugin-dts": "^4.5.4",
64
64
  "vitest": "^3.2.4"
65
65
  },
66
- "dependencies": {
67
- "@mapbox/mapbox-gl-draw": "^1.5.0",
68
- "bootstrap": "^5.3.8",
66
+ "peerDependencies": {
67
+ "@ro-kit/ui-widgets": "^0.0.45",
69
68
  "jsonld": "^8.3.3",
70
69
  "leaflet": "^1.9.4",
71
70
  "leaflet-editable": "^1.3.2",
72
71
  "leaflet.fullscreen": "^4.0.0",
73
- "mapbox-gl": "^3.15.0",
72
+ "lit": "^3.3.1",
74
73
  "n3": "^1.26.0",
75
74
  "rdfxml-streaming-parser": "^3.1.0",
76
75
  "shacl-engine": "^1.0.2",
77
76
  "uuid": "^13.0.0"
78
- },
79
- "peerDependencies": {
80
- "@ro-kit/ui-widgets": "^0.0.44",
81
- "lit": "^3.3.1",
82
- "mdui": "^2.1.4"
83
77
  }
84
78
  }
@@ -1,5 +0,0 @@
1
- import { ShaclForm as FormBase } from './form';
2
- export * from './exports';
3
- export declare class ShaclForm extends FormBase {
4
- constructor();
5
- }