@solidstarters/solid-core-ui 1.1.19 → 1.1.20

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 (336) hide show
  1. package/dist/components/auth/AuthLayout.d.ts.map +1 -1
  2. package/dist/components/auth/AuthLayout.js +4 -2
  3. package/dist/components/auth/AuthLayout.js.map +1 -1
  4. package/dist/components/auth/ForgotPasswordThankYou.d.ts.map +1 -1
  5. package/dist/components/auth/ForgotPasswordThankYou.js +3 -1
  6. package/dist/components/auth/ForgotPasswordThankYou.js.map +1 -1
  7. package/dist/components/auth/SolidForgotPassword.d.ts.map +1 -1
  8. package/dist/components/auth/SolidForgotPassword.js +3 -1
  9. package/dist/components/auth/SolidForgotPassword.js.map +1 -1
  10. package/dist/components/auth/SolidInitialLoginOtp.d.ts.map +1 -1
  11. package/dist/components/auth/SolidInitialLoginOtp.js +3 -1
  12. package/dist/components/auth/SolidInitialLoginOtp.js.map +1 -1
  13. package/dist/components/auth/SolidInitiateRegisterOtp.d.ts.map +1 -1
  14. package/dist/components/auth/SolidInitiateRegisterOtp.js +3 -1
  15. package/dist/components/auth/SolidInitiateRegisterOtp.js.map +1 -1
  16. package/dist/components/auth/SolidLogin.d.ts.map +1 -1
  17. package/dist/components/auth/SolidLogin.js +3 -1
  18. package/dist/components/auth/SolidLogin.js.map +1 -1
  19. package/dist/components/auth/SolidOTPVerify.d.ts.map +1 -1
  20. package/dist/components/auth/SolidOTPVerify.js +3 -1
  21. package/dist/components/auth/SolidOTPVerify.js.map +1 -1
  22. package/dist/components/auth/SolidRegister.d.ts.map +1 -1
  23. package/dist/components/auth/SolidRegister.js +3 -1
  24. package/dist/components/auth/SolidRegister.js.map +1 -1
  25. package/dist/components/auth/SolidResetPassword.d.ts.map +1 -1
  26. package/dist/components/auth/SolidResetPassword.js +3 -1
  27. package/dist/components/auth/SolidResetPassword.js.map +1 -1
  28. package/dist/components/common/CancelButton.js +2 -2
  29. package/dist/components/common/CancelButton.js.map +1 -1
  30. package/dist/components/common/SolidBreadcrumb.d.ts +11 -0
  31. package/dist/components/common/SolidBreadcrumb.d.ts.map +1 -0
  32. package/dist/components/common/SolidBreadcrumb.js +22 -0
  33. package/dist/components/common/SolidBreadcrumb.js.map +1 -0
  34. package/dist/components/core/common/SolidConfigureLayoutElement.d.ts +1 -1
  35. package/dist/components/core/common/SolidConfigureLayoutElement.d.ts.map +1 -1
  36. package/dist/components/core/common/SolidConfigureLayoutElement.js +13 -7
  37. package/dist/components/core/common/SolidConfigureLayoutElement.js.map +1 -1
  38. package/dist/components/core/filter/SolidManyToOneFilterElement.js +1 -1
  39. package/dist/components/core/filter/SolidManyToOneFilterElement.js.map +1 -1
  40. package/dist/components/core/form/SolidFormView.d.ts.map +1 -1
  41. package/dist/components/core/form/SolidFormView.js +31 -36
  42. package/dist/components/core/form/SolidFormView.js.map +1 -1
  43. package/dist/components/core/form/fields/ISolidField.d.ts +1 -0
  44. package/dist/components/core/form/fields/ISolidField.d.ts.map +1 -1
  45. package/dist/components/core/form/fields/SolidBooleanField.d.ts.map +1 -1
  46. package/dist/components/core/form/fields/SolidBooleanField.js +3 -2
  47. package/dist/components/core/form/fields/SolidBooleanField.js.map +1 -1
  48. package/dist/components/core/form/fields/SolidDateField.d.ts.map +1 -1
  49. package/dist/components/core/form/fields/SolidDateField.js +3 -2
  50. package/dist/components/core/form/fields/SolidDateField.js.map +1 -1
  51. package/dist/components/core/form/fields/SolidDateTimeField.d.ts.map +1 -1
  52. package/dist/components/core/form/fields/SolidDateTimeField.js +3 -2
  53. package/dist/components/core/form/fields/SolidDateTimeField.js.map +1 -1
  54. package/dist/components/core/form/fields/SolidDecimalField.d.ts.map +1 -1
  55. package/dist/components/core/form/fields/SolidDecimalField.js +10 -2
  56. package/dist/components/core/form/fields/SolidDecimalField.js.map +1 -1
  57. package/dist/components/core/form/fields/SolidIntegerField.d.ts.map +1 -1
  58. package/dist/components/core/form/fields/SolidIntegerField.js +10 -2
  59. package/dist/components/core/form/fields/SolidIntegerField.js.map +1 -1
  60. package/dist/components/core/form/fields/SolidJsonField.d.ts.map +1 -1
  61. package/dist/components/core/form/fields/SolidJsonField.js +3 -2
  62. package/dist/components/core/form/fields/SolidJsonField.js.map +1 -1
  63. package/dist/components/core/form/fields/SolidLongTextField.d.ts.map +1 -1
  64. package/dist/components/core/form/fields/SolidLongTextField.js +3 -2
  65. package/dist/components/core/form/fields/SolidLongTextField.js.map +1 -1
  66. package/dist/components/core/form/fields/SolidMediaMultipleField.d.ts.map +1 -1
  67. package/dist/components/core/form/fields/SolidMediaMultipleField.js +6 -5
  68. package/dist/components/core/form/fields/SolidMediaMultipleField.js.map +1 -1
  69. package/dist/components/core/form/fields/SolidMediaSingleField.d.ts.map +1 -1
  70. package/dist/components/core/form/fields/SolidMediaSingleField.js +4 -3
  71. package/dist/components/core/form/fields/SolidMediaSingleField.js.map +1 -1
  72. package/dist/components/core/form/fields/SolidRichTextField.d.ts.map +1 -1
  73. package/dist/components/core/form/fields/SolidRichTextField.js +3 -2
  74. package/dist/components/core/form/fields/SolidRichTextField.js.map +1 -1
  75. package/dist/components/core/form/fields/SolidSelectionDynamicField.d.ts.map +1 -1
  76. package/dist/components/core/form/fields/SolidSelectionDynamicField.js +3 -2
  77. package/dist/components/core/form/fields/SolidSelectionDynamicField.js.map +1 -1
  78. package/dist/components/core/form/fields/SolidSelectionStaticField.d.ts.map +1 -1
  79. package/dist/components/core/form/fields/SolidSelectionStaticField.js +3 -2
  80. package/dist/components/core/form/fields/SolidSelectionStaticField.js.map +1 -1
  81. package/dist/components/core/form/fields/SolidShortTextField.d.ts.map +1 -1
  82. package/dist/components/core/form/fields/SolidShortTextField.js +3 -2
  83. package/dist/components/core/form/fields/SolidShortTextField.js.map +1 -1
  84. package/dist/components/core/form/fields/SolidTimeField.d.ts.map +1 -1
  85. package/dist/components/core/form/fields/SolidTimeField.js +3 -2
  86. package/dist/components/core/form/fields/SolidTimeField.js.map +1 -1
  87. package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.d.ts.map +1 -1
  88. package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.js +9 -5
  89. package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.js.map +1 -1
  90. package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.js +7 -8
  91. package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.js.map +1 -1
  92. package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.d.ts.map +1 -1
  93. package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.js +10 -8
  94. package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.js.map +1 -1
  95. package/dist/components/core/list/SolidListView.d.ts.map +1 -1
  96. package/dist/components/core/list/SolidListView.js +54 -48
  97. package/dist/components/core/list/SolidListView.js.map +1 -1
  98. package/dist/components/core/list/SolidManyToOneFilterElement.js +1 -1
  99. package/dist/components/core/list/SolidManyToOneFilterElement.js.map +1 -1
  100. package/dist/components/core/model/CreateModel.d.ts.map +1 -1
  101. package/dist/components/core/model/CreateModel.js +13 -5
  102. package/dist/components/core/model/CreateModel.js.map +1 -1
  103. package/dist/components/core/model/FieldMetaData.js +1 -1
  104. package/dist/components/core/model/FieldMetaData.js.map +1 -1
  105. package/dist/components/core/model/FieldMetaDataForm.d.ts.map +1 -1
  106. package/dist/components/core/model/FieldMetaDataForm.js +65 -68
  107. package/dist/components/core/model/FieldMetaDataForm.js.map +1 -1
  108. package/dist/components/core/model/ModelMetaData.d.ts.map +1 -1
  109. package/dist/components/core/model/ModelMetaData.js +6 -1
  110. package/dist/components/core/model/ModelMetaData.js.map +1 -1
  111. package/dist/components/core/module/CreateModule.d.ts.map +1 -1
  112. package/dist/components/core/module/CreateModule.js +11 -4
  113. package/dist/components/core/module/CreateModule.js.map +1 -1
  114. package/dist/components/core/users/CreateUser.d.ts.map +1 -1
  115. package/dist/components/core/users/CreateUser.js +10 -3
  116. package/dist/components/core/users/CreateUser.js.map +1 -1
  117. package/dist/components/layout/AppSidebar.d.ts.map +1 -1
  118. package/dist/components/layout/AppSidebar.js +34 -5
  119. package/dist/components/layout/AppSidebar.js.map +1 -1
  120. package/dist/components/layout/user-profile-menu.d.ts.map +1 -1
  121. package/dist/components/layout/user-profile-menu.js +3 -1
  122. package/dist/components/layout/user-profile-menu.js.map +1 -1
  123. package/dist/helpers/permissions.d.ts +1 -0
  124. package/dist/helpers/permissions.d.ts.map +1 -1
  125. package/dist/helpers/permissions.js +3 -0
  126. package/dist/helpers/permissions.js.map +1 -1
  127. package/dist/redux/api/authApi.d.ts.map +1 -1
  128. package/dist/redux/api/authApi.js +1 -1
  129. package/dist/redux/api/authApi.js.map +1 -1
  130. package/dist/redux/api/solidViewApi.d.ts +1 -1
  131. package/dist/redux/api/solidViewApi.d.ts.map +1 -1
  132. package/dist/redux/api/solidViewApi.js +1 -1
  133. package/dist/redux/api/solidViewApi.js.map +1 -1
  134. package/dist/resources/globals.css +2551 -0
  135. package/dist/resources/images/AvatarDemo.png +0 -0
  136. package/dist/resources/images/Footerbg.png +0 -0
  137. package/dist/resources/images/LoginBanner.png +0 -0
  138. package/dist/resources/images/Navigation/Level.svg +5 -0
  139. package/dist/resources/images/Navigation/Presure.svg +7 -0
  140. package/dist/resources/images/Navigation/Temperature.svg +13 -0
  141. package/dist/resources/images/Navigation/settings.png +0 -0
  142. package/dist/resources/images/Profile/Avatar.png +0 -0
  143. package/dist/resources/images/SS-Logo.png +0 -0
  144. package/dist/resources/images/activity.svg +3 -0
  145. package/dist/resources/images/app-builder.png +0 -0
  146. package/dist/resources/images/auth/solid-left-layout-bg.png +0 -0
  147. package/dist/resources/images/auth/solid-login-light.png +0 -0
  148. package/dist/resources/images/auth/solid-right-layout-bg.png +0 -0
  149. package/dist/resources/images/clog-wheel.png +0 -0
  150. package/dist/resources/images/dark-mode.png +0 -0
  151. package/dist/resources/images/dashboard/Ellipse 1.svg +10 -0
  152. package/dist/resources/images/dashboard/Rectangle 17.svg +10 -0
  153. package/dist/resources/images/dashboard/Rectangle 25.svg +11 -0
  154. package/dist/resources/images/dashboard/image 5.svg +9 -0
  155. package/dist/resources/images/eye-icon.png +0 -0
  156. package/dist/resources/images/fb.svg +3 -0
  157. package/dist/resources/images/fileReader/image-jpg.png +0 -0
  158. package/dist/resources/images/filter-icon.png +0 -0
  159. package/dist/resources/images/form/user.png +0 -0
  160. package/dist/resources/images/iam.png +0 -0
  161. package/dist/resources/images/icons/icon-activity.svg +3 -0
  162. package/dist/resources/images/icons/icon-calender.svg +3 -0
  163. package/dist/resources/images/icons/icon-graph.svg +3 -0
  164. package/dist/resources/images/icons/icon-kanban.svg +3 -0
  165. package/dist/resources/images/icons/icon-list.svg +3 -0
  166. package/dist/resources/images/icons/icon-users.svg +3 -0
  167. package/dist/resources/images/icons/jump-to-icon.png +0 -0
  168. package/dist/resources/images/insta.svg +3 -0
  169. package/dist/resources/images/layout/images/comfortable.png +0 -0
  170. package/dist/resources/images/layout/images/compact.png +0 -0
  171. package/dist/resources/images/layout/images/cozy.png +0 -0
  172. package/dist/resources/images/layout/images/kanban.png +0 -0
  173. package/dist/resources/images/li.svg +3 -0
  174. package/dist/resources/images/loginhero.png +0 -0
  175. package/dist/resources/images/logo.png +0 -0
  176. package/dist/resources/images/mail-icon.png +0 -0
  177. package/dist/resources/images/menu/app-builder.svg +19 -0
  178. package/dist/resources/images/menu/iam.svg +14 -0
  179. package/dist/resources/images/menu/logicloop-black.svg +28 -0
  180. package/dist/resources/images/menu/logicloop-blue.svg +32 -0
  181. package/dist/resources/images/menu/logicloop-white.svg +32 -0
  182. package/dist/resources/images/menu/queues.svg +14 -0
  183. package/dist/resources/images/menu/radix.svg +9 -0
  184. package/dist/resources/images/menu/rl-lead-middleware.svg +19 -0
  185. package/dist/resources/images/menu/solid-address-master.svg +10 -0
  186. package/dist/resources/images/menu/srmd-tracker-black.svg +16 -0
  187. package/dist/resources/images/menu/srmd-tracker-original.svg +32 -0
  188. package/dist/resources/images/menu/srmd-tracker-white.svg +17 -0
  189. package/dist/resources/images/menu/srmd-tracker.svg +16 -0
  190. package/dist/resources/images/menu-icon.png +0 -0
  191. package/dist/resources/images/menu-toggle.png +0 -0
  192. package/dist/resources/images/password-icon.png +0 -0
  193. package/dist/resources/images/profile.png +0 -0
  194. package/dist/resources/images/radix-logo-white.png +0 -0
  195. package/dist/resources/images/radix-logo.png +0 -0
  196. package/dist/resources/images/search-icon.png +0 -0
  197. package/dist/resources/images/signupBanner.png +0 -0
  198. package/dist/resources/images/tw.svg +3 -0
  199. package/dist/resources/images/user-icon.png +0 -0
  200. package/dist/resources/stylesheets/_config.scss +54 -0
  201. package/dist/resources/stylesheets/_content.scss +91 -0
  202. package/dist/resources/stylesheets/_footer.scss +8 -0
  203. package/dist/resources/stylesheets/_main.scss +47 -0
  204. package/dist/resources/stylesheets/_menu.scss +185 -0
  205. package/dist/resources/stylesheets/_mixins.scss +13 -0
  206. package/dist/resources/stylesheets/_responsive.scss +99 -0
  207. package/dist/resources/stylesheets/_topbar.scss +149 -0
  208. package/dist/resources/stylesheets/_typography.scss +63 -0
  209. package/dist/resources/stylesheets/_utils.scss +27 -0
  210. package/dist/resources/stylesheets/_variables.scss +3 -0
  211. package/dist/resources/stylesheets/layout.scss +11 -0
  212. package/package.json +6 -3
  213. package/src/components/auth/AuthLayout.tsx +8 -5
  214. package/src/components/auth/ForgotPasswordThankYou.tsx +6 -3
  215. package/src/components/auth/SolidForgotPassword.tsx +6 -3
  216. package/src/components/auth/SolidInitialLoginOtp.tsx +6 -3
  217. package/src/components/auth/SolidInitiateRegisterOtp.tsx +6 -3
  218. package/src/components/auth/SolidLogin.tsx +6 -3
  219. package/src/components/auth/SolidOTPVerify.tsx +6 -3
  220. package/src/components/auth/SolidRegister.tsx +6 -4
  221. package/src/components/auth/SolidResetPassword.tsx +6 -3
  222. package/src/components/common/CancelButton.tsx +2 -2
  223. package/src/components/common/SolidBreadcrumb.tsx +27 -0
  224. package/src/components/core/common/SolidConfigureLayoutElement.tsx +31 -12
  225. package/src/components/core/filter/SolidManyToOneFilterElement.tsx +1 -1
  226. package/src/components/core/form/SolidFormView.tsx +63 -65
  227. package/src/components/core/form/fields/ISolidField.tsx +2 -1
  228. package/src/components/core/form/fields/SolidBooleanField.tsx +3 -2
  229. package/src/components/core/form/fields/SolidDateField.tsx +3 -2
  230. package/src/components/core/form/fields/SolidDateTimeField.tsx +3 -2
  231. package/src/components/core/form/fields/SolidDecimalField.tsx +10 -2
  232. package/src/components/core/form/fields/SolidIntegerField.tsx +10 -2
  233. package/src/components/core/form/fields/SolidJsonField.tsx +3 -2
  234. package/src/components/core/form/fields/SolidLongTextField.tsx +3 -2
  235. package/src/components/core/form/fields/SolidMediaMultipleField.tsx +5 -4
  236. package/src/components/core/form/fields/SolidMediaSingleField.tsx +4 -3
  237. package/src/components/core/form/fields/SolidRichTextField.tsx +3 -2
  238. package/src/components/core/form/fields/SolidSelectionDynamicField.tsx +3 -2
  239. package/src/components/core/form/fields/SolidSelectionStaticField.tsx +3 -2
  240. package/src/components/core/form/fields/SolidShortTextField.tsx +3 -2
  241. package/src/components/core/form/fields/SolidTimeField.tsx +3 -2
  242. package/src/components/core/form/fields/relations/SolidRelationManyToManyField.tsx +14 -7
  243. package/src/components/core/form/fields/relations/SolidRelationManyToOneField.tsx +7 -7
  244. package/src/components/core/form/fields/relations/SolidRelationOneToManyField.tsx +11 -7
  245. package/src/components/core/list/SolidListView.tsx +36 -55
  246. package/src/components/core/list/SolidManyToOneFilterElement.tsx +1 -1
  247. package/src/components/core/model/CreateModel.tsx +32 -23
  248. package/src/components/core/model/FieldMetaData.tsx +24 -24
  249. package/src/components/core/model/FieldMetaDataForm.tsx +45 -60
  250. package/src/components/core/model/ModelMetaData.tsx +7 -1
  251. package/src/components/core/module/CreateModule.tsx +20 -15
  252. package/src/components/core/users/CreateUser.tsx +13 -3
  253. package/src/components/layout/AppSidebar.tsx +58 -23
  254. package/src/components/layout/user-profile-menu.tsx +11 -8
  255. package/src/declarations.d.ts +19 -0
  256. package/src/helpers/permissions.ts +3 -0
  257. package/src/redux/api/authApi.ts +2 -1
  258. package/src/redux/api/solidViewApi.ts +1 -0
  259. package/src/resources/globals.css +2551 -0
  260. package/src/resources/images/AvatarDemo.png +0 -0
  261. package/src/resources/images/Footerbg.png +0 -0
  262. package/src/resources/images/LoginBanner.png +0 -0
  263. package/src/resources/images/Navigation/Level.svg +5 -0
  264. package/src/resources/images/Navigation/Presure.svg +7 -0
  265. package/src/resources/images/Navigation/Temperature.svg +13 -0
  266. package/src/resources/images/Navigation/settings.png +0 -0
  267. package/src/resources/images/Profile/Avatar.png +0 -0
  268. package/src/resources/images/SS-Logo.png +0 -0
  269. package/src/resources/images/activity.svg +3 -0
  270. package/src/resources/images/app-builder.png +0 -0
  271. package/src/resources/images/auth/solid-left-layout-bg.png +0 -0
  272. package/src/resources/images/auth/solid-login-light.png +0 -0
  273. package/src/resources/images/auth/solid-right-layout-bg.png +0 -0
  274. package/src/resources/images/clog-wheel.png +0 -0
  275. package/src/resources/images/dark-mode.png +0 -0
  276. package/src/resources/images/dashboard/Ellipse 1.svg +10 -0
  277. package/src/resources/images/dashboard/Rectangle 17.svg +10 -0
  278. package/src/resources/images/dashboard/Rectangle 25.svg +11 -0
  279. package/src/resources/images/dashboard/image 5.svg +9 -0
  280. package/src/resources/images/eye-icon.png +0 -0
  281. package/src/resources/images/fb.svg +3 -0
  282. package/src/resources/images/fileReader/image-jpg.png +0 -0
  283. package/src/resources/images/filter-icon.png +0 -0
  284. package/src/resources/images/form/user.png +0 -0
  285. package/src/resources/images/iam.png +0 -0
  286. package/src/resources/images/icons/icon-activity.svg +3 -0
  287. package/src/resources/images/icons/icon-calender.svg +3 -0
  288. package/src/resources/images/icons/icon-graph.svg +3 -0
  289. package/src/resources/images/icons/icon-kanban.svg +3 -0
  290. package/src/resources/images/icons/icon-list.svg +3 -0
  291. package/src/resources/images/icons/icon-users.svg +3 -0
  292. package/src/resources/images/icons/jump-to-icon.png +0 -0
  293. package/src/resources/images/insta.svg +3 -0
  294. package/src/resources/images/layout/images/comfortable.png +0 -0
  295. package/src/resources/images/layout/images/compact.png +0 -0
  296. package/src/resources/images/layout/images/cozy.png +0 -0
  297. package/src/resources/images/layout/images/kanban.png +0 -0
  298. package/src/resources/images/li.svg +3 -0
  299. package/src/resources/images/loginhero.png +0 -0
  300. package/src/resources/images/logo.png +0 -0
  301. package/src/resources/images/mail-icon.png +0 -0
  302. package/src/resources/images/menu/app-builder.svg +19 -0
  303. package/src/resources/images/menu/iam.svg +14 -0
  304. package/src/resources/images/menu/logicloop-black.svg +28 -0
  305. package/src/resources/images/menu/logicloop-blue.svg +32 -0
  306. package/src/resources/images/menu/logicloop-white.svg +32 -0
  307. package/src/resources/images/menu/queues.svg +14 -0
  308. package/src/resources/images/menu/radix.svg +9 -0
  309. package/src/resources/images/menu/rl-lead-middleware.svg +19 -0
  310. package/src/resources/images/menu/solid-address-master.svg +10 -0
  311. package/src/resources/images/menu/srmd-tracker-black.svg +16 -0
  312. package/src/resources/images/menu/srmd-tracker-original.svg +32 -0
  313. package/src/resources/images/menu/srmd-tracker-white.svg +17 -0
  314. package/src/resources/images/menu/srmd-tracker.svg +16 -0
  315. package/src/resources/images/menu-icon.png +0 -0
  316. package/src/resources/images/menu-toggle.png +0 -0
  317. package/src/resources/images/password-icon.png +0 -0
  318. package/src/resources/images/profile.png +0 -0
  319. package/src/resources/images/radix-logo-white.png +0 -0
  320. package/src/resources/images/radix-logo.png +0 -0
  321. package/src/resources/images/search-icon.png +0 -0
  322. package/src/resources/images/signupBanner.png +0 -0
  323. package/src/resources/images/tw.svg +3 -0
  324. package/src/resources/images/user-icon.png +0 -0
  325. package/src/resources/stylesheets/_config.scss +54 -0
  326. package/src/resources/stylesheets/_content.scss +91 -0
  327. package/src/resources/stylesheets/_footer.scss +8 -0
  328. package/src/resources/stylesheets/_main.scss +47 -0
  329. package/src/resources/stylesheets/_menu.scss +185 -0
  330. package/src/resources/stylesheets/_mixins.scss +13 -0
  331. package/src/resources/stylesheets/_responsive.scss +99 -0
  332. package/src/resources/stylesheets/_topbar.scss +149 -0
  333. package/src/resources/stylesheets/_typography.scss +63 -0
  334. package/src/resources/stylesheets/_utils.scss +27 -0
  335. package/src/resources/stylesheets/_variables.scss +3 -0
  336. package/src/resources/stylesheets/layout.scss +11 -0
@@ -32,6 +32,11 @@ import { FilterIcon } from '../../modelsComponents/filterIcon';
32
32
  import { OverlayPanel } from "primereact/overlaypanel";
33
33
  import { Toast } from "primereact/toast";
34
34
  import { Divider } from "primereact/divider";
35
+ import CompactImage from '../../../resources/images/layout/images/compact.png';
36
+ import CozyImage from '../../../resources/images/layout/images/cozy.png';
37
+ import ComfortableImage from '../../../resources/images/layout/images/comfortable.png';
38
+ import ListImage from '../../../resources/images/layout/images/cozy.png';
39
+ import KanbanImage from '../../../resources/images/layout/images/kanban.png';
35
40
 
36
41
  const getRandomInt = (min: number, max: number) => {
37
42
  return Math.floor(Math.random() * (max - min + 1)) + min;
@@ -261,7 +266,7 @@ export const SolidListView = (params: SolidListViewParams) => {
261
266
  sort: [`id:desc`],
262
267
  };
263
268
  if (showArchived) {
264
- queryData.showSoftDeleted = 'true';
269
+ queryData.showSoftDeleted = 'inclusive';
265
270
  }
266
271
  const queryString = qs.stringify(queryData, {
267
272
  encodeValuesOnly: true
@@ -611,14 +616,14 @@ export const SolidListView = (params: SolidListViewParams) => {
611
616
  }
612
617
 
613
618
  const sizeOptions = [
614
- { label: 'Compact', value: 'small', image: '/images/layout/images/compact.png' },
615
- { label: 'Cozy', value: 'normal', image: '/images/layout/images/cozy.png' },
616
- { label: 'Comfortable', value: 'large', image: '/images/layout/images/comfortable.png' }
619
+ { label: 'Compact', value: 'small', image: CompactImage},
620
+ { label: 'Cozy', value: 'normal', image: CozyImage },
621
+ { label: 'Comfortable', value: 'large', image: ComfortableImage }
617
622
  ]
618
623
 
619
624
  const viewModes = [
620
- { label: 'List ', value: 'list', image: '/images/layout/images/cozy.png' },
621
- { label: 'Kanban', value: 'kanban', image: '/images/layout/images/kanban.png' },
625
+ { label: 'List ', value: 'list', image: ListImage },
626
+ { label: 'Kanban', value: 'kanban', image: KanbanImage },
622
627
  ]
623
628
 
624
629
  const [size, setSize] = useState<string | any>(sizeOptions[1].value);
@@ -629,27 +634,6 @@ export const SolidListView = (params: SolidListViewParams) => {
629
634
  <div className="page-header">
630
635
  <Toast ref={toast} />
631
636
  <div className="flex gap-3 align-items-center">
632
-
633
-
634
- {actionsAllowed.includes(`${deletePermission(params.modelName)}`) && solidListViewMetaData?.data?.solidView?.layout?.attrs?.delete !== false && selectedRecords.length > 0 && <Button
635
- type="button"
636
- label="Delete"
637
- size="small"
638
- onClick={() => setDialogVisible(true)}
639
- severity="danger"
640
- />}
641
- {/* {isFilterApplied &&
642
- <Button
643
- type="button"
644
- icon="pi pi-filter-slash"
645
- label="Clear"
646
- size="small"
647
- outlined
648
- onClick={clearFilter}
649
- className="small-button"
650
- />
651
- } */}
652
-
653
637
  {solidListViewMetaData?.data?.solidView?.layout?.attrs?.enableGlobalSearch === true && params.embeded === false &&
654
638
  <SolidGlobalSearchElement filters={filters} clearFilter={clearFilter} ref={solidGlobalSearchElementRef} viewData={solidListViewMetaData} handleApplyCustomFilter={handleApplyCustomFilter}></SolidGlobalSearchElement>
655
639
  }
@@ -668,14 +652,7 @@ export const SolidListView = (params: SolidListViewParams) => {
668
652
  {showArchived && <Button type="button" icon="pi pi-refresh" label="Recover" size='small' severity="secondary"
669
653
  onClick={() => setRecoverDialogVisible(true)}
670
654
  ></Button>}
671
- {/* <SolidLayoutViews
672
- sizeOptions={sizeOptions}
673
- setSize={setSize}
674
- size={size}
675
- viewModes={viewModes}
676
- setView={setView}
677
- view={view}
678
- /> */}
655
+
679
656
  {params.embeded === false &&
680
657
  <SolidConfigureLayoutElement
681
658
  setShowArchived={setShowArchived}
@@ -687,11 +664,13 @@ export const SolidListView = (params: SolidListViewParams) => {
687
664
  viewModes={viewModes}
688
665
  setView={setView}
689
666
  view={view}
667
+ params={params}
668
+ actionsAllowed={actionsAllowed}
669
+ selectedRecords={selectedRecords}
670
+ setDialogVisible={setDialogVisible}
690
671
  ></SolidConfigureLayoutElement>
691
672
  }
692
- {/* {params.embeded === false &&
693
- <SolidListViewOptions></SolidListViewOptions>
694
- } */}
673
+
695
674
  </div>
696
675
  </div>
697
676
  <style>{`.p-datatable .p-datatable-loading-overlay {background-color: rgba(0, 0, 0, 0.0);} .greyed-out-row { background-color: #f5f5f5 !important; color: #a0a0a0 !important; opacity: 0.6;}`}</style>
@@ -744,16 +723,15 @@ export const SolidListView = (params: SolidListViewParams) => {
744
723
  ) :
745
724
  <>
746
725
  {detailsBodyTemplate(rowData)}
747
- <OverlayPanel ref={op} className="solid-custom-overlay" style={{ top: 10 }}>
726
+ <OverlayPanel ref={op} className="solid-custom-overlay" style={{ top: 10, minWidth: 120 }}>
748
727
  <div className="flex flex-column gap-1 p-1">
749
728
  <Button
750
- className="w-8rem text-left gap-2"
729
+ type="button"
730
+ className="w-full text-left gap-1"
751
731
  label="Edit"
752
732
  size="small"
753
733
  iconPos="left"
754
- icon={<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
755
- <path d="M3.33333 12.6667H4.28333L10.8 6.15L9.85 5.2L3.33333 11.7167V12.6667ZM2 14V11.1667L10.8 2.38333C10.9333 2.26111 11.0806 2.16667 11.2417 2.1C11.4028 2.03333 11.5722 2 11.75 2C11.9278 2 12.1 2.03333 12.2667 2.1C12.4333 2.16667 12.5778 2.26667 12.7 2.4L13.6167 3.33333C13.75 3.45556 13.8472 3.6 13.9083 3.76667C13.9694 3.93333 14 4.1 14 4.26667C14 4.44444 13.9694 4.61389 13.9083 4.775C13.8472 4.93611 13.75 5.08333 13.6167 5.21667L4.83333 14H2ZM10.3167 5.68333L9.85 5.2L10.8 6.15L10.3167 5.68333Z" fill="#F9F0FF" />
756
- </svg>}
734
+ icon={"pi pi-pencil"}
757
735
  onClick={() => {
758
736
  if (params.embeded == true) {
759
737
  params.handlePopUpOpen(selectedSolidViewData?.id);
@@ -762,18 +740,19 @@ export const SolidListView = (params: SolidListViewParams) => {
762
740
  }
763
741
  }}
764
742
  />
765
- <Button
766
- text
767
- className="w-8rem text-left gap-2"
768
- label="Delete"
769
- size="small"
770
- iconPos="left"
771
- severity="secondary"
772
- icon={<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
773
- <path d="M4.66666 14C4.29999 14 3.9861 13.8694 3.72499 13.6083C3.46388 13.3472 3.33332 13.0333 3.33332 12.6667V4H2.66666V2.66667H5.99999V2H9.99999V2.66667H13.3333V4H12.6667V12.6667C12.6667 13.0333 12.5361 13.3472 12.275 13.6083C12.0139 13.8694 11.7 14 11.3333 14H4.66666ZM11.3333 4H4.66666V12.6667H11.3333V4ZM5.99999 11.3333H7.33332V5.33333H5.99999V11.3333ZM8.66666 11.3333H9.99999V5.33333H8.66666V11.3333Z" fill="#4B4D52" />
774
- </svg>}
775
- onClick={() => setDeleteEntity(true)}
776
- />
743
+ {actionsAllowed.includes(`${deletePermission(params.modelName)}`) && solidListViewMetaData?.data?.solidView?.layout?.attrs?.delete !== false &&
744
+ <Button
745
+ text
746
+ type="button"
747
+ className="w-full text-left gap-1"
748
+ label="Delete"
749
+ size="small"
750
+ iconPos="left"
751
+ severity="danger"
752
+ icon={'pi pi-trash'}
753
+ onClick={() => setDeleteEntity(true)}
754
+ />
755
+ }
777
756
  {solidListViewMetaData?.data?.solidView?.layout?.attrs?.rowButtons &&
778
757
  solidListViewMetaData?.data?.solidView?.layout?.attrs?.rowButtons.map((rowAction: any) => {
779
758
  return (
@@ -793,6 +772,8 @@ export const SolidListView = (params: SolidListViewParams) => {
793
772
  setListViewRowActionPopupState(true)
794
773
  }
795
774
  }
775
+ className="w-full text-left gap-2"
776
+ label="Generate Code"
796
777
  />
797
778
  );
798
779
  })}
@@ -7,7 +7,7 @@ import qs from "qs";
7
7
 
8
8
  export const SolidManyToOneFilterElement = ({ value, updateInputs, index, fieldMetadata }: any) => {
9
9
 
10
- const entityApi = createSolidEntityApi(fieldMetadata.relationModelSingularName);
10
+ const entityApi = createSolidEntityApi(fieldMetadata.relationCoModelSingularName);
11
11
  const { useLazyGetSolidEntitiesQuery } = entityApi;
12
12
  const [triggerGetSolidEntities] = useLazyGetSolidEntitiesQuery();
13
13
 
@@ -18,6 +18,7 @@ import { SolidFormStepper } from "@/components/common/SolidFormStepper";
18
18
  import { Dialog } from "primereact/dialog";
19
19
  import { Divider } from "primereact/divider";
20
20
  import { OverlayPanel } from "primereact/overlaypanel";
21
+ import { SolidBreadcrumb } from "@/components/common/SolidBreadcrumb";
21
22
 
22
23
  interface ErrorResponseData {
23
24
  message: string;
@@ -145,17 +146,17 @@ const CreateModel = ({ data, params }: any) => {
145
146
  errorMessages.forEach((error) => {
146
147
  handleError([error]); // Call handleError for each error separately
147
148
  });
148
-
149
+
149
150
  firstErrorTab = 0; // Model Metadata tab has errors
150
151
  } else {
151
- setFormErrors({});
152
+ setFormErrors({});
152
153
  }
153
-
154
+
154
155
  if (fieldMetaData.length === 0) {
155
156
  handleError(["Please add at least one field"]);
156
157
  firstErrorTab = firstErrorTab ?? 1; // If no prior error, set to Field tab
157
158
  }
158
-
159
+
159
160
  if (firstErrorTab !== undefined) {
160
161
  setTabErrors({ [firstErrorTab]: true }); // Set error only on the first tab with an issue
161
162
  setActiveIndex(firstErrorTab); // Switch to the tab with an error
@@ -313,13 +314,9 @@ const CreateModel = ({ data, params }: any) => {
313
314
  outlined
314
315
  severity="secondary"
315
316
  type="button"
316
- icon={
317
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
318
- <path d="M6 14C5.45 14 4.97917 13.8042 4.5875 13.4125C4.19583 13.0208 4 12.55 4 12C4 11.45 4.19583 10.9792 4.5875 10.5875C4.97917 10.1958 5.45 10 6 10C6.55 10 7.02083 10.1958 7.4125 10.5875C7.80417 10.9792 8 11.45 8 12C8 12.55 7.80417 13.0208 7.4125 13.4125C7.02083 13.8042 6.55 14 6 14ZM12 14C11.45 14 10.9792 13.8042 10.5875 13.4125C10.1958 13.0208 10 12.55 10 12C10 11.45 10.1958 10.9792 10.5875 10.5875C10.9792 10.1958 11.45 10 12 10C12.55 10 13.0208 10.1958 13.4125 10.5875C13.8042 10.9792 14 11.45 14 12C14 12.55 13.8042 13.0208 13.4125 13.4125C13.0208 13.8042 12.55 14 12 14ZM18 14C17.45 14 16.9792 13.8042 16.5875 13.4125C16.1958 13.0208 16 12.55 16 12C16 11.45 16.1958 10.9792 16.5875 10.5875C16.9792 10.1958 17.45 10 18 10C18.55 10 19.0208 10.1958 19.4125 10.5875C19.8042 10.9792 20 11.45 20 12C20 12.55 19.8042 13.0208 19.4125 13.4125C19.0208 13.8042 18.55 14 18 14Z" fill="#4B4D52" />
319
- </svg>
320
- }
317
+ icon={'pi pi-cog'}
321
318
  size="small"
322
- className="bg-primary-reverse p-0"
319
+ className="surface-card p-0"
323
320
  style={{
324
321
  height: 33.06,
325
322
  width: 33.06
@@ -331,7 +328,7 @@ const CreateModel = ({ data, params }: any) => {
331
328
  />
332
329
  <OverlayPanel ref={op} className="solid-custom-overlay">
333
330
  <div className="flex flex-column gap-1 p-1">
334
- <Button
331
+ {/* <Button
335
332
  text
336
333
  type="button"
337
334
  className="w-8rem text-left gap-2 text-color"
@@ -341,18 +338,16 @@ const CreateModel = ({ data, params }: any) => {
341
338
  icon={<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
342
339
  <path d="M6 11.9997C5.63333 11.9997 5.31944 11.8691 5.05833 11.608C4.79722 11.3469 4.66667 11.033 4.66667 10.6663V2.66634C4.66667 2.29967 4.79722 1.98579 5.05833 1.72467C5.31944 1.46356 5.63333 1.33301 6 1.33301H12C12.3667 1.33301 12.6806 1.46356 12.9417 1.72467C13.2028 1.98579 13.3333 2.29967 13.3333 2.66634V10.6663C13.3333 11.033 13.2028 11.3469 12.9417 11.608C12.6806 11.8691 12.3667 11.9997 12 11.9997H6ZM6 10.6663H12V2.66634H6V10.6663ZM3.33333 14.6663C2.96667 14.6663 2.65278 14.5358 2.39167 14.2747C2.13056 14.0136 2 13.6997 2 13.333V3.99967H3.33333V13.333H10.6667V14.6663H3.33333Z" fill="black" fill-opacity="0.88" />
343
340
  </svg>}
344
- />
341
+ /> */}
345
342
  <Button
346
343
  text
347
344
  type="button"
348
- className="w-8rem text-left gap-2 text-color"
345
+ className="w-8rem text-left gap-2"
349
346
  label="Delete"
350
347
  size="small"
351
348
  iconPos="left"
352
- icon={<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
353
- <path d="M4.66666 14C4.29999 14 3.9861 13.8694 3.72499 13.6083C3.46388 13.3472 3.33332 13.0333 3.33332 12.6667V4H2.66666V2.66667H5.99999V2H9.99999V2.66667H13.3333V4H12.6667V12.6667C12.6667 13.0333 12.5361 13.3472 12.275 13.6083C12.0139 13.8694 11.7 14 11.3333 14H4.66666ZM11.3333 4H4.66666V12.6667H11.3333V4ZM5.99999 11.3333H7.33332V5.33333H5.99999V11.3333ZM8.66666 11.3333H9.99999V5.33333H8.66666V11.3333Z" fill="#4B4D52" />
354
- </svg>
355
- }
349
+ severity="danger"
350
+ icon={'pi pi-trash'}
356
351
  onClick={() => setDeleteEntity(true)}
357
352
  />
358
353
  </div>
@@ -361,6 +356,14 @@ const CreateModel = ({ data, params }: any) => {
361
356
  )
362
357
  }
363
358
 
359
+ const breadcrumbData = [
360
+ { label: 'Model', link: '/admin/core/solid-core/model-metadata/list' },
361
+ { label: params.id === "new" ? 'Create Model' : 'Edit Model' },
362
+ ];
363
+
364
+ const [isDirty, setIsDirty] = useState(false);
365
+
366
+
364
367
  return (
365
368
  <div className="solid-form-wrapper">
366
369
  <Toast ref={toast} />
@@ -373,7 +376,9 @@ const CreateModel = ({ data, params }: any) => {
373
376
  <div className="form-wrapper-title">Create Model</div>
374
377
  </div>
375
378
  <div className="gap-3 flex">
376
- <Button label="Save" size="small" onClick={handleSubmit} type="submit" />
379
+ {isDirty &&
380
+ <Button label="Save" size="small" onClick={handleSubmit} type="submit" />
381
+ }
377
382
  <CancelButton />
378
383
  </div>
379
384
  </>
@@ -387,7 +392,9 @@ const CreateModel = ({ data, params }: any) => {
387
392
  {data?.isSystem !== true &&
388
393
  <>
389
394
  <div>
390
- <Button label="Save" size="small" type="submit" onClick={handleSubmit} />
395
+ {isDirty &&
396
+ <Button label="Save" size="small" type="submit" onClick={handleSubmit} />
397
+ }
391
398
  </div>
392
399
  <div>
393
400
  <Button outlined label="Delete" size="small" severity="danger" type="button" onClick={() => setDeleteEntity(true)} />
@@ -400,6 +407,7 @@ const CreateModel = ({ data, params }: any) => {
400
407
  </>
401
408
  }
402
409
  </div>
410
+ <SolidBreadcrumb breadcrumbItems={breadcrumbData} />
403
411
  {/* <div className="solid-form-stepper">
404
412
  <SolidFormStepper />
405
413
  </div> */}
@@ -418,8 +426,8 @@ const CreateModel = ({ data, params }: any) => {
418
426
 
419
427
  }}
420
428
  >
421
- <TabPanel header="Model"
422
- headerClassName={tabErrors[0] ? "tab-error" : ""}>
429
+ <TabPanel header="Model"
430
+ headerClassName={tabErrors[0] ? "tab-error" : ""}>
423
431
  <ModelMetaData
424
432
  modelMetaData={modelMetaData}
425
433
  setModelMetaData={setModelMetaData}
@@ -428,10 +436,11 @@ const CreateModel = ({ data, params }: any) => {
428
436
  nextTab={nextTab}
429
437
  formikModelMetadataRef={formikModelMetadataRef}
430
438
  params={params}
431
- formErrors= {formErrors}
439
+ formErrors={formErrors}
440
+ setIsDirty={setIsDirty}
432
441
  ></ModelMetaData>
433
442
  </TabPanel>
434
- <TabPanel header="Fields"
443
+ <TabPanel header="Fields"
435
444
  headerClassName={tabErrors[1] ? "tab-error" : ""}>
436
445
  <FieldMetaData
437
446
  modelMetaData={modelMetaData}
@@ -74,36 +74,36 @@ const FieldMetaData = ({ modelMetaData, fieldMetaData, setFieldMetaData, deleteM
74
74
  )
75
75
  };
76
76
 
77
- const showToaster = async (message: any, severity: any) => {
78
- const errorMessages = Object.values(message);
79
- if (errorMessages.length > 0) {
80
- toast?.current?.show({
81
- severity: severity,
82
- summary: "Can you send me the report?",
83
- life: 3000,
84
- //@ts-ignore
85
- content: (props) => (
86
- <div
87
- className="flex flex-column align-items-left"
88
- style={{ flex: "1" }}
89
- >
90
- {errorMessages.map((m, index) => (
91
- <div className="flex align-items-center gap-2" key={index}>
92
- <span className="font-bold text-900">{String(m)}</span>
93
- </div>
94
- ))}
95
- </div>
96
- ),
97
- });
98
- }
99
- };
77
+ const showToaster = async (message: any, severity: any) => {
78
+ const errorMessages = Object.values(message);
79
+ if (errorMessages.length > 0) {
80
+ toast?.current?.show({
81
+ severity: severity,
82
+ summary: "Can you send me the report?",
83
+ life: 3000,
84
+ //@ts-ignore
85
+ content: (props) => (
86
+ <div
87
+ className="flex flex-column align-items-left"
88
+ style={{ flex: "1" }}
89
+ >
90
+ {errorMessages.map((m, index) => (
91
+ <div className="flex align-items-center gap-2" key={index}>
92
+ <span className="font-bold text-900">{String(m)}</span>
93
+ </div>
94
+ ))}
95
+ </div>
96
+ ),
97
+ });
98
+ }
99
+ };
100
100
 
101
101
 
102
102
 
103
103
  return (
104
104
  <>
105
105
 
106
- {!modelMetaData.moduleId ?
106
+ {!modelMetaData.moduleId || !modelMetaData.dataSource ?
107
107
  <div className="card flex justify-content-center">
108
108
  <Messages ref={msgs} />
109
109
  </div>
@@ -388,13 +388,13 @@ const createValidationSchema = (currentFields: any, selectedType: any, allFields
388
388
  ...(currentFields.includes("relationType") && {
389
389
  relationType: Yup.string().required("Relation Type is required"),
390
390
  }),
391
- ...(currentFields.includes("relationModelSingularName") && {
392
- relationModelSingularName: Yup.string().required(
391
+ ...(currentFields.includes("relationCoModelSingularName") && {
392
+ relationCoModelSingularName: Yup.string().required(
393
393
  "Relation Model Singular Name is required"
394
394
  ),
395
395
  }),
396
- ...(currentFields.includes("relationModelFieldName") && {
397
- relationModelFieldName: Yup.string()
396
+ ...(currentFields.includes("relationCoModelFieldName") && {
397
+ relationCoModelFieldName: Yup.string()
398
398
  // .required(
399
399
  // "Relation Model Field Name is required"
400
400
  // ),
@@ -703,7 +703,7 @@ const FieldMetaDataForm = ({ modelMetaData, fieldMetaData, setFieldMetaData, all
703
703
  }
704
704
  };
705
705
 
706
- const searchRelationModelSingularNames = async (event: any) => {
706
+ const searchrelationCoModelSingularNames = async (event: any) => {
707
707
  try {
708
708
  const query = event.query;
709
709
  const queryData: any = {
@@ -892,8 +892,8 @@ const FieldMetaDataForm = ({ modelMetaData, fieldMetaData, setFieldMetaData, all
892
892
  mediaStorageProvider: fieldMetaData ? fieldMetaData?.mediaStorageProvider : null,
893
893
  mediaEmbedded: fieldMetaData ? (fieldMetaData?.mediaEmbedded && fieldMetaData?.mediaEmbedded.toString()) : "true",
894
894
  relationType: fieldMetaData ? fieldMetaData?.relationType : null,
895
- relationModelSingularName: fieldMetaData ? fieldMetaData?.relationModelSingularName : null,
896
- relationModelFieldName: fieldMetaData ? fieldMetaData?.relationModelFieldName : modelMetaData.pluralName || '',
895
+ relationCoModelSingularName: fieldMetaData ? fieldMetaData?.relationCoModelSingularName : null,
896
+ relationCoModelFieldName: fieldMetaData ? fieldMetaData?.relationCoModelFieldName : modelMetaData.pluralName || '',
897
897
  relationCreateInverse: fieldMetaData ? fieldMetaData?.relationCreateInverse : false,
898
898
  relationCascade: fieldMetaData ? fieldMetaData?.relationCascade : 'cascade',
899
899
  relationModelModuleName: fieldMetaData ? fieldMetaData?.relationModelModuleName : modelMetaData?.module.name,
@@ -909,8 +909,7 @@ const FieldMetaDataForm = ({ modelMetaData, fieldMetaData, setFieldMetaData, all
909
909
  isSystem: fieldMetaData ? fieldMetaData?.isSystem : false,
910
910
  columnName: fieldMetaData ? fieldMetaData?.columnName : null,
911
911
  isUserKey: fieldMetaData ? fieldMetaData?.isUserKey : false,
912
- relationJoinColumnName: fieldMetaData ? fieldMetaData?.relationJoinColumnName : null,
913
- joinColumnName: fieldMetaData ? fieldMetaData?.joinColumnName : null,
912
+ relationCoModelColumnName: fieldMetaData ? fieldMetaData?.relationCoModelColumnName : null,
914
913
  relationJoinTableName: fieldMetaData ? fieldMetaData?.relationJoinTableName : null,
915
914
  userKey: fieldMetaData ? fieldMetaData?.userKey : null
916
915
  };
@@ -940,7 +939,7 @@ const FieldMetaDataForm = ({ modelMetaData, fieldMetaData, setFieldMetaData, all
940
939
  });
941
940
  if (values.userKey) {
942
941
  const data = {
943
- modelName: values.relationModelSingularName,
942
+ modelName: values.relationCoModelSingularName,
944
943
  fieldName: values.userKey
945
944
  }
946
945
  updateUserKey(data);
@@ -1039,7 +1038,7 @@ const FieldMetaDataForm = ({ modelMetaData, fieldMetaData, setFieldMetaData, all
1039
1038
  offset: 0,
1040
1039
  filters: {
1041
1040
  singularName: {
1042
- $eq: formik.values.relationModelSingularName
1041
+ $eq: formik.values.relationCoModelSingularName
1043
1042
  }
1044
1043
  },
1045
1044
  populate: ['fields']
@@ -1061,10 +1060,10 @@ const FieldMetaDataForm = ({ modelMetaData, fieldMetaData, setFieldMetaData, all
1061
1060
  }
1062
1061
  }
1063
1062
  }
1064
- if (formik.values.relationModelSingularName) {
1063
+ if (formik.values.relationCoModelSingularName) {
1065
1064
  fetchFields();
1066
1065
  }
1067
- }, [formik.values.relationModelSingularName])
1066
+ }, [formik.values.relationCoModelSingularName])
1068
1067
 
1069
1068
  const updateEnumValues = (index: number, updatedString: string) => {
1070
1069
  const updatedValues = formik.values.selectionStaticValues.map((enumValue: string, i: number) =>
@@ -1791,9 +1790,8 @@ const FieldMetaDataForm = ({ modelMetaData, fieldMetaData, setFieldMetaData, all
1791
1790
  searchData={searchRelationModelModuleNames}
1792
1791
  existingData={formik.values.relationModelModuleName}
1793
1792
  additionalAction={(e: any) => {
1794
- formik.setFieldValue("relationModelSingularName", "");
1795
- formik.setFieldValue("relationJoinColumnName", "");
1796
- formik.setFieldValue("joinColumnName", "");
1793
+ formik.setFieldValue("relationCoModelSingularName", "");
1794
+ formik.setFieldValue("relationCoModelColumnName", "");
1797
1795
  formik.setFieldValue("relationJoinTableName", "");
1798
1796
  }}
1799
1797
  />
@@ -1832,11 +1830,11 @@ const FieldMetaDataForm = ({ modelMetaData, fieldMetaData, setFieldMetaData, all
1832
1830
  )}
1833
1831
 
1834
1832
  {currentFields.includes(
1835
- "relationModelSingularName"
1833
+ "relationCoModelSingularName"
1836
1834
  ) && (
1837
1835
  <div className="field col-6 flex-flex-column gap-2 mt-3">
1838
1836
  <label
1839
- htmlFor="relationModelSingularName"
1837
+ htmlFor="relationCoModelSingularName"
1840
1838
  className="form-field-label"
1841
1839
  >
1842
1840
  Co-Model Name
@@ -1844,37 +1842,23 @@ const FieldMetaDataForm = ({ modelMetaData, fieldMetaData, setFieldMetaData, all
1844
1842
 
1845
1843
 
1846
1844
  <SingleSelectAutoCompleteField
1847
- key="relationModelSingularName"
1845
+ key="relationCoModelSingularName"
1848
1846
  formik={formik}
1849
1847
  isFormFieldValid={isFormFieldValid}
1850
- fieldName="relationModelSingularName"
1851
- fieldNameId="relationModelSingularName"
1848
+ fieldName="relationCoModelSingularName"
1849
+ fieldNameId="relationCoModelSingularName"
1852
1850
  labelKey="displayName"
1853
1851
  valueKey="singularName"
1854
- searchData={searchRelationModelSingularNames}
1855
- existingData={formik.values.relationModelSingularName}
1852
+ searchData={searchrelationCoModelSingularNames}
1853
+ existingData={formik.values.relationCoModelSingularName}
1856
1854
  />
1857
-
1858
- {/* <InputText
1859
- type="text"
1860
- id="relationModelSingularName"
1861
- name="relationModelSingularName"
1862
- onChange={formik.handleChange}
1863
- value={formik.values.relationModelSingularName}
1864
- className={classNames("", {
1865
- "p-invalid": isFormFieldValid(
1866
- formik,
1867
- "relationModelSingularName"
1868
- ),
1869
- })}
1870
- /> */}
1871
1855
  {isFormFieldValid(
1872
1856
  formik,
1873
- "relationModelSingularName"
1857
+ "relationCoModelSingularName"
1874
1858
  ) && (
1875
1859
  <Message
1876
1860
  severity="error"
1877
- text={formik?.errors?.relationModelSingularName?.toString()}
1861
+ text={formik?.errors?.relationCoModelSingularName?.toString()}
1878
1862
  />
1879
1863
  )}
1880
1864
  </div>
@@ -1913,7 +1897,7 @@ const FieldMetaDataForm = ({ modelMetaData, fieldMetaData, setFieldMetaData, all
1913
1897
  </div>
1914
1898
  )}
1915
1899
 
1916
- {currentFields.includes("relationCreateInverse") && formik.values.relationType === "many-to-many" && (
1900
+ {currentFields.includes("relationCreateInverse") && (formik.values.relationType === "many-to-many" || formik.values.relationType === "many-to-one")&& (
1917
1901
  <div className="field col-6 flex flex-column gap-2 mt-3">
1918
1902
  <label htmlFor="relationCreateInverse" className="form-field-label">
1919
1903
  Relation Create Inverse
@@ -1933,31 +1917,31 @@ const FieldMetaDataForm = ({ modelMetaData, fieldMetaData, setFieldMetaData, all
1933
1917
  </div>
1934
1918
  )}
1935
1919
 
1936
- {currentFields.includes("relationModelFieldName") && formik.values.relationCreateInverse && formik.values.relationType === "many-to-many" && (
1920
+ {currentFields.includes("relationCoModelFieldName") && formik.values.relationCreateInverse && (formik.values.relationType === "many-to-many" || formik.values.relationType === "many-to-one") && (
1937
1921
  <div className="field col-6 flex-flex-column gap-2 mt-3">
1938
1922
  <label
1939
- htmlFor="relationModelFieldName"
1923
+ htmlFor="relationCoModelFieldName"
1940
1924
  className="form-field-label"
1941
1925
  >
1942
1926
  Field Name on Inverse Side
1943
1927
  </label>
1944
1928
  <InputText
1945
1929
  type="text"
1946
- id="relationModelFieldName"
1947
- name="relationModelFieldName"
1930
+ id="relationCoModelFieldName"
1931
+ name="relationCoModelFieldName"
1948
1932
  onChange={formik.handleChange}
1949
- value={formik.values.relationModelFieldName}
1933
+ value={formik.values.relationCoModelFieldName}
1950
1934
  className={classNames("", {
1951
1935
  "p-invalid": isFormFieldValid(
1952
1936
  formik,
1953
- "relationModelFieldName"
1937
+ "relationCoModelFieldName"
1954
1938
  ),
1955
1939
  })}
1956
1940
  />
1957
- {isFormFieldValid(formik, "relationModelFieldName") && (
1941
+ {isFormFieldValid(formik, "relationCoModelFieldName") && (
1958
1942
  <Message
1959
1943
  severity="error"
1960
- text={formik?.errors?.relationModelFieldName?.toString()}
1944
+ text={formik?.errors?.relationCoModelFieldName?.toString()}
1961
1945
  />
1962
1946
  )}
1963
1947
 
@@ -1995,7 +1979,7 @@ const FieldMetaDataForm = ({ modelMetaData, fieldMetaData, setFieldMetaData, all
1995
1979
  </div>
1996
1980
  )}
1997
1981
 
1998
- {currentFields.includes("joinColumnName") && formik.values.relationType === "many-to-many" && (
1982
+ {/* {currentFields.includes("joinColumnName") && formik.values.relationType === "many-to-many" && (
1999
1983
  <div className="field col-6 flex-flex-column gap-2 mt-3">
2000
1984
  <label
2001
1985
  htmlFor="joinColumnName"
@@ -2024,33 +2008,33 @@ const FieldMetaDataForm = ({ modelMetaData, fieldMetaData, setFieldMetaData, all
2024
2008
  )}
2025
2009
 
2026
2010
  </div>
2027
- )}
2011
+ )} */}
2028
2012
 
2029
- {currentFields.includes("relationJoinColumnName") && formik.values.relationType === "many-to-many" && (
2013
+ {currentFields.includes("relationCoModelColumnName") && (formik.values.relationType === "many-to-many" || formik.values.relationType === "many-to-one") && (
2030
2014
  <div className="field col-6 flex-flex-column gap-2 mt-3">
2031
2015
  <label
2032
- htmlFor="relationJoinColumnName"
2016
+ htmlFor="relationCoModelColumnName"
2033
2017
  className="form-field-label"
2034
2018
  >
2035
- Relation Join Column Name
2019
+ Relation Co-Model Column Name
2036
2020
  </label>
2037
2021
  <InputText
2038
2022
  type="text"
2039
- id="relationJoinColumnName"
2040
- name="relationJoinColumnName"
2023
+ id="relationCoModelColumnName"
2024
+ name="relationCoModelColumnName"
2041
2025
  onChange={formik.handleChange}
2042
- value={formik.values.relationJoinColumnName}
2026
+ value={formik.values.relationCoModelColumnName}
2043
2027
  className={classNames("", {
2044
2028
  "p-invalid": isFormFieldValid(
2045
2029
  formik,
2046
- "relationJoinColumnName"
2030
+ "relationCoModelColumnName"
2047
2031
  ),
2048
2032
  })}
2049
2033
  />
2050
- {isFormFieldValid(formik, "relationJoinColumnName") && (
2034
+ {isFormFieldValid(formik, "relationCoModelColumnName") && (
2051
2035
  <Message
2052
2036
  severity="error"
2053
- text={formik?.errors?.relationJoinColumnName?.toString()}
2037
+ text={formik?.errors?.relationCoModelColumnName?.toString()}
2054
2038
  />
2055
2039
  )}
2056
2040
 
@@ -2707,6 +2691,7 @@ const FieldMetaDataForm = ({ modelMetaData, fieldMetaData, setFieldMetaData, all
2707
2691
  name="unique"
2708
2692
  onChange={(e) => {
2709
2693
  formik.setFieldValue("unique", e.checked);
2694
+ formik.setFieldValue("isUserKey", false);
2710
2695
  }}
2711
2696
  checked={formik.values.unique}
2712
2697
  ></Checkbox>
@@ -2818,7 +2803,7 @@ const FieldMetaDataForm = ({ modelMetaData, fieldMetaData, setFieldMetaData, all
2818
2803
  </div>
2819
2804
  </div>
2820
2805
  )} */}
2821
- {currentFields.includes("isUserKey") && (
2806
+ {currentFields.includes("isUserKey") && formik.values.unique && (
2822
2807
  <div className="field col-6 flex-flex-column gap-2 mt-3">
2823
2808
  <div className="flex align-items-center gap-2">
2824
2809
  <Checkbox