data-primals-engine 1.5.0 → 1.5.1

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 (52) hide show
  1. package/README.md +35 -0
  2. package/client/src/AddWidgetTypeModal.jsx +47 -43
  3. package/client/src/App.jsx +2 -6
  4. package/client/src/App.scss +12 -0
  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 +805 -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 +47 -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 +92 -53
  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 +262 -212
  35. package/client/src/hooks/useValidation.js +75 -0
  36. package/client/src/translations.js +24 -24
  37. package/package.json +2 -1
  38. package/src/constants.js +1 -1
  39. package/src/defaultModels.js +1596 -1544
  40. package/src/i18n.js +710 -10
  41. package/src/modules/assistant/assistant.js +148 -18
  42. package/src/modules/bucket.js +2 -1
  43. package/src/modules/data/data.core.js +118 -92
  44. package/src/modules/data/data.history.js +531 -492
  45. package/src/modules/data/data.js +3 -53
  46. package/src/modules/data/data.operations.js +77 -26
  47. package/src/modules/data/data.relations.js +686 -686
  48. package/src/modules/data/data.routes.js +1879 -1821
  49. package/src/modules/data/data.validation.js +81 -2
  50. package/src/modules/file.js +247 -238
  51. package/src/packs.js +5482 -5478
  52. package/test/data.integration.test.js +1115 -1060
@@ -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