data-primals-engine 1.4.3 → 1.5.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 (50) hide show
  1. package/README.md +878 -867
  2. package/client/package-lock.json +49 -0
  3. package/client/package.json +1 -0
  4. package/client/src/App.jsx +1 -1
  5. package/client/src/App.scss +13 -3
  6. package/client/src/AssistantChat.scss +3 -2
  7. package/client/src/DashboardView.jsx +569 -569
  8. package/client/src/DataEditor.jsx +2 -2
  9. package/client/src/DataLayout.jsx +1 -8
  10. package/client/src/DataTable.jsx +26 -4
  11. package/client/src/Field.jsx +1825 -1788
  12. package/client/src/FlexDataRenderer.jsx +2 -0
  13. package/client/src/FlexTreeUtils.js +1 -1
  14. package/client/src/KPIDialog.jsx +11 -1
  15. package/client/src/ModelCreator.jsx +1 -2
  16. package/client/src/ModelCreatorField.jsx +23 -27
  17. package/client/src/ModelList.jsx +1 -1
  18. package/client/src/constants.js +1 -1
  19. package/client/src/hooks/useTutorials.jsx +62 -65
  20. package/client/src/translations.js +2 -0
  21. package/package.json +2 -1
  22. package/perf/README.md +147 -0
  23. package/perf/artillery-hooks.js +37 -0
  24. package/perf/perf-shot-hardwork.yml +84 -0
  25. package/perf/perf-shot-search.yml +45 -0
  26. package/perf/setup.yml +26 -0
  27. package/server.js +1 -1
  28. package/src/constants.js +2 -27
  29. package/src/core.js +15 -1
  30. package/src/data.js +1 -1
  31. package/src/defaultModels.js +1544 -1540
  32. package/src/email.js +5 -2
  33. package/src/engine.js +5 -3
  34. package/src/filter.js +5 -3
  35. package/src/modules/assistant/assistant.js +3 -1
  36. package/src/modules/bucket.js +12 -15
  37. package/src/modules/data/data.backup.js +11 -8
  38. package/src/modules/data/data.js +6 -3
  39. package/src/modules/data/data.operations.js +3231 -2999
  40. package/src/modules/data/data.routes.js +1821 -1785
  41. package/src/modules/data/data.scheduling.js +2 -1
  42. package/src/modules/data/data.validation.js +4 -1
  43. package/src/modules/file.js +4 -2
  44. package/src/modules/user.js +4 -1
  45. package/src/modules/workflow.js +9 -10
  46. package/src/openai.jobs.js +2 -0
  47. package/src/packs.js +22 -5
  48. package/src/providers.js +22 -7
  49. package/test/data.integration.test.js +1060 -981
  50. package/test/import_export.integration.test.js +1 -1
@@ -32,6 +32,7 @@
32
32
  "lowlight": "^3.3.0",
33
33
  "react": "^18.3.1",
34
34
  "react-big-calendar": "^1.15.0",
35
+ "react-color": "^2.19.3",
35
36
  "react-dom": "^18.3.1",
36
37
  "react-leaflet": "^4.2.1",
37
38
  "react-router": "^7.8.1",
@@ -1277,6 +1278,15 @@
1277
1278
  "url": "https://github.com/sponsors/nzakas"
1278
1279
  }
1279
1280
  },
1281
+ "node_modules/@icons/material": {
1282
+ "version": "0.2.4",
1283
+ "resolved": "https://registry.npmjs.org/@icons/material/-/material-0.2.4.tgz",
1284
+ "integrity": "sha512-QPcGmICAPbGLGb6F/yNf/KzKqvFx8z5qx3D1yFqVAjoFmXK35EgyW+cJ57Te3CNsmzblwtzakLGFqHPqrfb4Tw==",
1285
+ "license": "MIT",
1286
+ "peerDependencies": {
1287
+ "react": "*"
1288
+ }
1289
+ },
1280
1290
  "node_modules/@jridgewell/gen-mapping": {
1281
1291
  "version": "0.3.12",
1282
1292
  "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.12.tgz",
@@ -5301,6 +5311,12 @@
5301
5311
  "remove-accents": "0.5.0"
5302
5312
  }
5303
5313
  },
5314
+ "node_modules/material-colors": {
5315
+ "version": "1.2.6",
5316
+ "resolved": "https://registry.npmjs.org/material-colors/-/material-colors-1.2.6.tgz",
5317
+ "integrity": "sha512-6qE4B9deFBIa9YSpOc9O0Sgc43zTeVYbgDT5veRKSlB2+ZuHNoVVxA1L/ckMUayV9Ay9y7Z/SZCLcGteW9i7bg==",
5318
+ "license": "ISC"
5319
+ },
5304
5320
  "node_modules/math-intrinsics": {
5305
5321
  "version": "1.1.0",
5306
5322
  "resolved": "https://registry.npmjs.org/math-intrinsics/-/math-intrinsics-1.1.0.tgz",
@@ -6213,6 +6229,24 @@
6213
6229
  "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==",
6214
6230
  "peer": true
6215
6231
  },
6232
+ "node_modules/react-color": {
6233
+ "version": "2.19.3",
6234
+ "resolved": "https://registry.npmjs.org/react-color/-/react-color-2.19.3.tgz",
6235
+ "integrity": "sha512-LEeGE/ZzNLIsFWa1TMe8y5VYqr7bibneWmvJwm1pCn/eNmrabWDh659JSPn9BuaMpEfU83WTOJfnCcjDZwNQTA==",
6236
+ "license": "MIT",
6237
+ "dependencies": {
6238
+ "@icons/material": "^0.2.4",
6239
+ "lodash": "^4.17.15",
6240
+ "lodash-es": "^4.17.15",
6241
+ "material-colors": "^1.2.1",
6242
+ "prop-types": "^15.5.10",
6243
+ "reactcss": "^1.2.0",
6244
+ "tinycolor2": "^1.4.1"
6245
+ },
6246
+ "peerDependencies": {
6247
+ "react": "*"
6248
+ }
6249
+ },
6216
6250
  "node_modules/react-cookie": {
6217
6251
  "version": "8.0.1",
6218
6252
  "resolved": "https://registry.npmjs.org/react-cookie/-/react-cookie-8.0.1.tgz",
@@ -6489,6 +6523,15 @@
6489
6523
  "react-dom": ">=16.14.0"
6490
6524
  }
6491
6525
  },
6526
+ "node_modules/reactcss": {
6527
+ "version": "1.2.3",
6528
+ "resolved": "https://registry.npmjs.org/reactcss/-/reactcss-1.2.3.tgz",
6529
+ "integrity": "sha512-KiwVUcFu1RErkI97ywr8nvx8dNOpT03rbnma0SSalTYjkrPYaEajR4a/MRt6DZ46K6arDRbWMNHF+xH7G7n/8A==",
6530
+ "license": "MIT",
6531
+ "dependencies": {
6532
+ "lodash": "^4.0.1"
6533
+ }
6534
+ },
6492
6535
  "node_modules/readdirp": {
6493
6536
  "version": "4.1.2",
6494
6537
  "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-4.1.2.tgz",
@@ -7672,6 +7715,12 @@
7672
7715
  "node": ">=16.0.0"
7673
7716
  }
7674
7717
  },
7718
+ "node_modules/tinycolor2": {
7719
+ "version": "1.6.0",
7720
+ "resolved": "https://registry.npmjs.org/tinycolor2/-/tinycolor2-1.6.0.tgz",
7721
+ "integrity": "sha512-XPaBkWQJdsf3pLKJV9p4qN/S+fm2Oj8AIPo1BTUhg5oxkvm9+SVEGFdhyOz7tTdUTfvxMiAs4sp6/eZO2Ew+pw==",
7722
+ "license": "MIT"
7723
+ },
7675
7724
  "node_modules/tinyglobby": {
7676
7725
  "version": "0.2.14",
7677
7726
  "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.14.tgz",
@@ -50,6 +50,7 @@
50
50
  "lowlight": "^3.3.0",
51
51
  "react": "^18.3.1",
52
52
  "react-big-calendar": "^1.15.0",
53
+ "react-color": "^2.19.3",
53
54
  "react-dom": "^18.3.1",
54
55
  "react-leaflet": "^4.2.1",
55
56
  "react-router": "^7.8.1",
@@ -55,7 +55,7 @@ import { translations as allTranslations} from "../../src/i18n.js";
55
55
  import {getBrowserRandom, getRandom} from "../../src/core.js";
56
56
  import {getUserHash} from "../../src/data.js";
57
57
  import {langs, seoTitle} from "./constants.js";
58
- import {host, useAI} from "../../src/constants.js";
58
+ import {host} from "../../src/constants.js";
59
59
  import i18next from "i18next";
60
60
  import {websiteTranslations} from "./translations.js";
61
61
 
@@ -45,6 +45,9 @@ header {
45
45
  &.flex-start {
46
46
  align-items: start;
47
47
  }
48
+ &.flex-end {
49
+ justify-content: flex-end;
50
+ }
48
51
  &.flex-self-end {
49
52
  align-self: end;
50
53
  }
@@ -80,10 +83,9 @@ header {
80
83
  flex-direction: column;
81
84
  }
82
85
  gap: 4px;
83
- @media only screen and (min-width: 480px){
86
+ @media only screen and (min-width: 720px){
84
87
  gap: 12px;
85
88
  }
86
-
87
89
  }
88
90
  .flex-1 {
89
91
  flex: 1;
@@ -1553,4 +1555,12 @@ select[multiple]{
1553
1555
  }
1554
1556
  }
1555
1557
 
1556
-
1558
+ .gap-2 {
1559
+ gap: 8px;
1560
+ }
1561
+ .gap-3 {
1562
+ gap: 16px;
1563
+ }
1564
+ .gap-4 {
1565
+ gap: 32px;
1566
+ }
@@ -35,10 +35,11 @@ $input-height: 50px;
35
35
 
36
36
  // La fenêtre de chat (quand elle est ouverte)
37
37
  .assistant-chat-window {
38
+
38
39
  position: fixed;
39
40
  bottom: 20px;
40
- right: 20px;
41
- width: 100%;
41
+ right: 5px;
42
+ width: calc(100% - 10px);
42
43
  max-width: 720px;
43
44
  min-height: 400px;
44
45
  height: 60vh;