data-primals-engine 1.5.0 → 1.5.2

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 (63) hide show
  1. package/README.md +37 -0
  2. package/client/src/AddWidgetTypeModal.jsx +47 -43
  3. package/client/src/App.jsx +2 -6
  4. package/client/src/App.scss +13 -1
  5. package/client/src/AssistantChat.jsx +363 -323
  6. package/client/src/AssistantChat.scss +27 -10
  7. package/client/src/Dashboard.jsx +480 -396
  8. package/client/src/Dashboard.scss +1 -1
  9. package/client/src/DashboardHtmlViewItem.jsx +147 -0
  10. package/client/src/DashboardView.jsx +654 -569
  11. package/client/src/DataEditor.jsx +10 -3
  12. package/client/src/DataLayout.jsx +807 -755
  13. package/client/src/DataLayout.scss +14 -0
  14. package/client/src/DataTable.jsx +39 -75
  15. package/client/src/Dialog.scss +1 -1
  16. package/client/src/Field.jsx +2057 -1825
  17. package/client/src/FlexViewCard.jsx +44 -0
  18. package/client/src/HistoryDialog.jsx +69 -14
  19. package/client/src/HtmlViewBuilderModal.jsx +91 -0
  20. package/client/src/HtmlViewBuilderModal.scss +18 -0
  21. package/client/src/HtmlViewCard.jsx +44 -0
  22. package/client/src/HtmlViewCard.scss +35 -0
  23. package/client/src/KanbanCard.jsx +1 -2
  24. package/client/src/ModelCreator.jsx +5 -4
  25. package/client/src/ModelCreatorField.jsx +51 -4
  26. package/client/src/ModelList.jsx +280 -236
  27. package/client/src/Notification.jsx +136 -136
  28. package/client/src/Notification.scss +0 -18
  29. package/client/src/Pagination.jsx +5 -3
  30. package/client/src/RelationField.jsx +354 -258
  31. package/client/src/RelationSelectorWidget.jsx +173 -0
  32. package/client/src/contexts/ModelContext.jsx +10 -1
  33. package/client/src/contexts/UIContext.jsx +72 -63
  34. package/client/src/filter.js +263 -212
  35. package/client/src/hooks/useValidation.js +75 -0
  36. package/client/src/translations.js +24 -24
  37. package/package.json +7 -6
  38. package/src/constants.js +1 -1
  39. package/src/core.js +8 -1
  40. package/src/defaultModels.js +1596 -1544
  41. package/src/engine.js +85 -43
  42. package/src/events.js +137 -113
  43. package/src/i18n.js +710 -10
  44. package/src/index.js +3 -0
  45. package/src/modules/assistant/assistant.js +253 -134
  46. package/src/modules/assistant/constants.js +2 -1
  47. package/src/modules/bucket.js +2 -1
  48. package/src/modules/data/data.core.js +118 -92
  49. package/src/modules/data/data.history.js +555 -492
  50. package/src/modules/data/data.js +3 -53
  51. package/src/modules/data/data.operations.js +3381 -3231
  52. package/src/modules/data/data.relations.js +686 -686
  53. package/src/modules/data/data.routes.js +1879 -1821
  54. package/src/modules/data/data.validation.js +81 -2
  55. package/src/modules/file.js +247 -238
  56. package/src/modules/user.js +1 -0
  57. package/src/modules/workflow.js +2 -2
  58. package/src/openai.jobs.js +3 -2
  59. package/src/packs.js +5482 -5478
  60. package/src/sso.js +2 -2
  61. package/src/workers/import-export-worker.js +1 -1
  62. package/test/data.history.integration.test.js +264 -192
  63. package/test/data.integration.test.js +149 -3
@@ -8,31 +8,48 @@ $chat-window-bg: #ffffff;
8
8
  $header-height: 50px;
9
9
  $input-height: 50px;
10
10
 
11
- // Le bouton flottant (quand le chat est fermé)
12
- .assistant-fab {
13
- position: fixed;
14
- bottom: 20px;
15
- right: 20px;
16
- width: 60px;
17
- height: 60px;
18
- background-color: $primary-color;
11
+
12
+ .fab {
19
13
  color: white;
20
14
  border-radius: 50%;
21
15
  border: none;
22
16
  display: flex;
17
+ padding: 0;
18
+ font-size: 24px;
23
19
  align-items: center;
24
20
  justify-content: center;
25
- font-size: 24px;
26
21
  cursor: pointer;
27
22
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
28
23
  z-index: 1000;
29
24
  transition: transform 0.2s ease-in-out;
30
-
31
25
  &:hover {
32
26
  transform: scale(1.1);
33
27
  }
28
+ width: 60px;
29
+ height: 60px;
34
30
  }
35
31
 
32
+ .plus-fab {
33
+ content: "+";
34
+ font-size: 30px;
35
+ background-color: #38ae02;
36
+ color: white;
37
+ }
38
+
39
+ // Le bouton flottant (quand le chat est fermé)
40
+ .assistant-fab {
41
+ font-size: 32px;
42
+ background-color: $primary-color;
43
+ }
44
+ .fabs {
45
+ gap: 16px;
46
+ position: fixed;
47
+ bottom: 20px;
48
+ align-items: center;
49
+ right: 20px;
50
+ display: flex;
51
+ flex-direction: row;
52
+ }
36
53
  // La fenêtre de chat (quand elle est ouverte)
37
54
  .assistant-chat-window {
38
55