data-primals-engine 1.6.3 → 1.7.0

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/README.md +52 -900
  2. package/client/index.js +3 -0
  3. package/client/package-lock.json +7563 -8811
  4. package/client/package.json +11 -1
  5. package/client/src/App.scss +29 -0
  6. package/client/src/AssistantChat.jsx +369 -362
  7. package/client/src/DataEditor.jsx +383 -383
  8. package/client/src/DataLayout.jsx +54 -20
  9. package/client/src/ModelList.jsx +280 -280
  10. package/client/src/ViewSwitcher.scss +0 -31
  11. package/client/src/_variables.scss +3 -0
  12. package/client/src/constants.js +81 -100
  13. package/client/src/contexts/CommandContext.jsx +274 -259
  14. package/client/vite.config.js +30 -30
  15. package/doc/AI-assistance.md +93 -0
  16. package/doc/Advanced-workflows.md +90 -0
  17. package/doc/Event-system.md +79 -0
  18. package/doc/Packs-gallery.md +73 -0
  19. package/doc/automation-workflows.md +102 -0
  20. package/doc/core-concepts.md +33 -0
  21. package/doc/custom-api-endpoints.md +40 -0
  22. package/doc/dashboards-kpis-charts.md +49 -0
  23. package/doc/data-management.md +120 -0
  24. package/doc/data-models.md +75 -0
  25. package/doc/index.md +14 -0
  26. package/doc/roles-permissions.md +43 -0
  27. package/doc/users.md +30 -0
  28. package/package.json +20 -10
  29. package/src/client.js +6 -4
  30. package/src/constants.js +1 -1
  31. package/src/core.js +31 -12
  32. package/src/defaultModels.js +1 -1
  33. package/src/engine.js +342 -335
  34. package/src/filter.js +72 -173
  35. package/src/migrate.js +1 -1
  36. package/src/modules/assistant/assistant.js +30 -20
  37. package/src/modules/data/data.backup.js +4 -4
  38. package/src/modules/data/data.js +8 -7
  39. package/src/modules/data/data.operations.js +186 -133
  40. package/src/modules/data/data.relations.js +3 -2
  41. package/src/modules/data/data.scheduling.js +1 -1
  42. package/src/modules/mongodb.js +17 -8
  43. package/src/modules/swagger.js +25 -5
  44. package/src/modules/user.js +108 -79
  45. package/src/modules/workflow.js +138 -3
  46. package/src/packs.js +5697 -5697
  47. package/src/profiles.js +19 -0
  48. package/swagger-en.yml +3391 -1550
  49. package/swagger-fr.yml +3385 -2896
  50. package/test/assistant.test.js +2 -2
  51. package/test/core.test.js +341 -0
  52. package/test/data.backup.integration.test.js +3 -1
  53. package/test/data.history.integration.test.js +0 -1
  54. package/test/data.integration.test.js +137 -2
  55. package/test/user.test.js +33 -29
@@ -4,6 +4,7 @@
4
4
  "version": "0.0.0",
5
5
  "type": "module",
6
6
  "scripts": {
7
+ "preinstall": "npx force-resolutions",
7
8
  "dev": "vite",
8
9
  "build": "vite build --mode development",
9
10
  "build:ssr-client": "vite build --ssrManifest --outDir dist/client --mode development",
@@ -11,6 +12,15 @@
11
12
  "lint": "eslint .",
12
13
  "preview": "vite preview"
13
14
  },
15
+ "resolutions": {
16
+ "body-parser": ">=2.2.1",
17
+ "js-yaml": ">=4.1.1",
18
+ "prismjs": ">=1.30.0",
19
+ "qs": ">=6.14.1",
20
+ "lodash": ">=4.17.23",
21
+ "react-router": ">=7.12.0",
22
+ "react-router-dom": ">=7.12.0"
23
+ },
14
24
  "peerDependencies": {
15
25
  "@tiptap/react": "^2.26.1",
16
26
  "react-chartjs-2": "^5.3.0",
@@ -54,7 +64,7 @@
54
64
  "react-color": "^2.19.3",
55
65
  "react-dom": "^18.3.1",
56
66
  "react-leaflet": "^4.2.1",
57
- "react-router": "^7.8.1",
67
+ "react-router": "7.12.0",
58
68
  "react-switch": "^7.1.0",
59
69
  "uniqid": "^5.4.0",
60
70
  "yet-another-react-lightbox": "^3.25.0"
@@ -5,6 +5,35 @@ img {
5
5
  width: auto;
6
6
  }
7
7
 
8
+ /*
9
+ * Style global pour les barres de défilement (scrollbars)
10
+ * S'applique à toute l'application, y compris les blocs de code.
11
+ */
12
+
13
+ /* Pour les navigateurs WebKit (Chrome, Safari, Edge, etc.) */
14
+ ::-webkit-scrollbar {
15
+ width: 8px; /* Largeur de la scrollbar verticale */
16
+ height: 8px; /* Hauteur de la scrollbar horizontale */
17
+ }
18
+
19
+ /* La piste (le fond de la scrollbar) */
20
+ ::-webkit-scrollbar-track {
21
+ background: $scrollbar-track-color;
22
+ border-radius: 10px;
23
+ }
24
+
25
+ /* La poignée (la partie mobile de la scrollbar) */
26
+ ::-webkit-scrollbar-thumb {
27
+ background-color: $scrollbar-thumb-color;
28
+ border-radius: 10px;
29
+ border: 2px solid $scrollbar-track-color; /* Crée un petit espacement autour de la poignée */
30
+ }
31
+
32
+ /* La poignée au survol de la souris */
33
+ ::-webkit-scrollbar-thumb:hover {
34
+ background-color: $scrollbar-thumb-hover-color;
35
+ }
36
+
8
37
  body {
9
38
  font-family: "Nunito Sans", sans-serif;
10
39
  line-height: 1.6; // Améliore la lisibilité