@solidstarters/solid-core-ui 1.1.17 → 1.1.19

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 (295) hide show
  1. package/dist/components/Svg/FileSvg.d.ts +4 -0
  2. package/dist/components/Svg/FileSvg.d.ts.map +1 -0
  3. package/dist/components/Svg/FileSvg.js +15 -0
  4. package/dist/components/Svg/FileSvg.js.map +1 -0
  5. package/dist/components/auth/AuthLayout.d.ts.map +1 -1
  6. package/dist/components/auth/AuthLayout.js +6 -6
  7. package/dist/components/auth/AuthLayout.js.map +1 -1
  8. package/dist/components/auth/SolidForgotPassword.js +1 -1
  9. package/dist/components/auth/SolidForgotPassword.js.map +1 -1
  10. package/dist/components/auth/SolidInitialLoginOtp.js +1 -1
  11. package/dist/components/auth/SolidInitialLoginOtp.js.map +1 -1
  12. package/dist/components/auth/SolidInitiateRegisterOtp.js +1 -1
  13. package/dist/components/auth/SolidInitiateRegisterOtp.js.map +1 -1
  14. package/dist/components/auth/SolidResetPassword.js +1 -1
  15. package/dist/components/auth/SolidResetPassword.js.map +1 -1
  16. package/dist/components/common/DropzonePlaceholder.d.ts +6 -1
  17. package/dist/components/common/DropzonePlaceholder.d.ts.map +1 -1
  18. package/dist/components/common/DropzonePlaceholder.js +8 -2
  19. package/dist/components/common/DropzonePlaceholder.js.map +1 -1
  20. package/dist/components/common/FileReaderExt.d.ts.map +1 -1
  21. package/dist/components/common/FileReaderExt.js +2 -1
  22. package/dist/components/common/FileReaderExt.js.map +1 -1
  23. package/dist/components/common/SingleSelectAutoCompleteField.d.ts.map +1 -1
  24. package/dist/components/common/SingleSelectAutoCompleteField.js +3 -1
  25. package/dist/components/common/SingleSelectAutoCompleteField.js.map +1 -1
  26. package/dist/components/core/common/SolidConfigureLayoutElement.d.ts.map +1 -1
  27. package/dist/components/core/common/SolidConfigureLayoutElement.js +28 -6
  28. package/dist/components/core/common/SolidConfigureLayoutElement.js.map +1 -1
  29. package/dist/components/core/common/SolidGlobalSearchElement.d.ts.map +1 -1
  30. package/dist/components/core/common/SolidGlobalSearchElement.js +6 -6
  31. package/dist/components/core/common/SolidGlobalSearchElement.js.map +1 -1
  32. package/dist/components/core/form/SolidFormView.js +3 -5
  33. package/dist/components/core/form/SolidFormView.js.map +1 -1
  34. package/dist/components/core/form/fields/SolidBooleanField.d.ts.map +1 -1
  35. package/dist/components/core/form/fields/SolidBooleanField.js +9 -7
  36. package/dist/components/core/form/fields/SolidBooleanField.js.map +1 -1
  37. package/dist/components/core/form/fields/SolidDateField.d.ts.map +1 -1
  38. package/dist/components/core/form/fields/SolidDateField.js +7 -5
  39. package/dist/components/core/form/fields/SolidDateField.js.map +1 -1
  40. package/dist/components/core/form/fields/SolidDateTimeField.d.ts.map +1 -1
  41. package/dist/components/core/form/fields/SolidDateTimeField.js +7 -5
  42. package/dist/components/core/form/fields/SolidDateTimeField.js.map +1 -1
  43. package/dist/components/core/form/fields/SolidDecimalField.d.ts.map +1 -1
  44. package/dist/components/core/form/fields/SolidDecimalField.js +9 -7
  45. package/dist/components/core/form/fields/SolidDecimalField.js.map +1 -1
  46. package/dist/components/core/form/fields/SolidIntegerField.d.ts.map +1 -1
  47. package/dist/components/core/form/fields/SolidIntegerField.js +9 -7
  48. package/dist/components/core/form/fields/SolidIntegerField.js.map +1 -1
  49. package/dist/components/core/form/fields/SolidJsonField.d.ts.map +1 -1
  50. package/dist/components/core/form/fields/SolidJsonField.js +6 -4
  51. package/dist/components/core/form/fields/SolidJsonField.js.map +1 -1
  52. package/dist/components/core/form/fields/SolidLongTextField.d.ts.map +1 -1
  53. package/dist/components/core/form/fields/SolidLongTextField.js +8 -6
  54. package/dist/components/core/form/fields/SolidLongTextField.js.map +1 -1
  55. package/dist/components/core/form/fields/SolidMediaMultipleField.d.ts.map +1 -1
  56. package/dist/components/core/form/fields/SolidMediaMultipleField.js +61 -57
  57. package/dist/components/core/form/fields/SolidMediaMultipleField.js.map +1 -1
  58. package/dist/components/core/form/fields/SolidMediaSingleField.d.ts.map +1 -1
  59. package/dist/components/core/form/fields/SolidMediaSingleField.js +74 -91
  60. package/dist/components/core/form/fields/SolidMediaSingleField.js.map +1 -1
  61. package/dist/components/core/form/fields/SolidRichTextField.d.ts.map +1 -1
  62. package/dist/components/core/form/fields/SolidRichTextField.js +9 -7
  63. package/dist/components/core/form/fields/SolidRichTextField.js.map +1 -1
  64. package/dist/components/core/form/fields/SolidSelectionDynamicField.d.ts.map +1 -1
  65. package/dist/components/core/form/fields/SolidSelectionDynamicField.js +10 -8
  66. package/dist/components/core/form/fields/SolidSelectionDynamicField.js.map +1 -1
  67. package/dist/components/core/form/fields/SolidSelectionStaticField.d.ts.map +1 -1
  68. package/dist/components/core/form/fields/SolidSelectionStaticField.js +10 -8
  69. package/dist/components/core/form/fields/SolidSelectionStaticField.js.map +1 -1
  70. package/dist/components/core/form/fields/SolidShortTextField.d.ts.map +1 -1
  71. package/dist/components/core/form/fields/SolidShortTextField.js +8 -6
  72. package/dist/components/core/form/fields/SolidShortTextField.js.map +1 -1
  73. package/dist/components/core/form/fields/SolidTimeField.d.ts.map +1 -1
  74. package/dist/components/core/form/fields/SolidTimeField.js +7 -5
  75. package/dist/components/core/form/fields/SolidTimeField.js.map +1 -1
  76. package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.d.ts.map +1 -1
  77. package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.js +15 -11
  78. package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.js.map +1 -1
  79. package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.d.ts +1 -0
  80. package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.d.ts.map +1 -1
  81. package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.js +66 -7
  82. package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.js.map +1 -1
  83. package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.d.ts.map +1 -1
  84. package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.js +12 -10
  85. package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.js.map +1 -1
  86. package/dist/components/core/list/SolidListView.d.ts.map +1 -1
  87. package/dist/components/core/list/SolidListView.js +42 -34
  88. package/dist/components/core/list/SolidListView.js.map +1 -1
  89. package/dist/components/core/list/columns/SolidMediaMultipleColumn.d.ts.map +1 -1
  90. package/dist/components/core/list/columns/SolidMediaMultipleColumn.js +9 -2
  91. package/dist/components/core/list/columns/SolidMediaMultipleColumn.js.map +1 -1
  92. package/dist/components/core/list/columns/SolidMediaSingleColumn.d.ts.map +1 -1
  93. package/dist/components/core/list/columns/SolidMediaSingleColumn.js +10 -3
  94. package/dist/components/core/list/columns/SolidMediaSingleColumn.js.map +1 -1
  95. package/dist/components/core/model/CreateModel.js +3 -4
  96. package/dist/components/core/model/CreateModel.js.map +1 -1
  97. package/dist/components/core/model/FieldMetaData.d.ts.map +1 -1
  98. package/dist/components/core/model/FieldMetaData.js +54 -1
  99. package/dist/components/core/model/FieldMetaData.js.map +1 -1
  100. package/dist/components/core/model/FieldMetaDataForm.d.ts +1 -1
  101. package/dist/components/core/model/FieldMetaDataForm.d.ts.map +1 -1
  102. package/dist/components/core/model/FieldMetaDataForm.js +118 -51
  103. package/dist/components/core/model/FieldMetaDataForm.js.map +1 -1
  104. package/dist/components/core/module/CreateModule.js +5 -5
  105. package/dist/components/core/module/CreateModule.js.map +1 -1
  106. package/dist/components/core/users/CreateUser.js +1 -2
  107. package/dist/components/core/users/CreateUser.js.map +1 -1
  108. package/dist/components/layout/AppConfig.js +1 -1
  109. package/dist/components/layout/navbar-two-menu.js +1 -1
  110. package/dist/components/layout/user-profile-menu.d.ts.map +1 -1
  111. package/dist/components/layout/user-profile-menu.js +1 -1
  112. package/dist/components/layout/user-profile-menu.js.map +1 -1
  113. package/dist/helpers/downloadMediaFile.d.ts +2 -0
  114. package/dist/helpers/downloadMediaFile.d.ts.map +1 -0
  115. package/dist/helpers/downloadMediaFile.js +66 -0
  116. package/dist/helpers/downloadMediaFile.js.map +1 -0
  117. package/dist/helpers/getAcceptedFileTypes.d.ts +4 -0
  118. package/dist/helpers/getAcceptedFileTypes.d.ts.map +1 -0
  119. package/dist/helpers/getAcceptedFileTypes.js +20 -0
  120. package/dist/helpers/getAcceptedFileTypes.js.map +1 -0
  121. package/dist/index.js +2 -2
  122. package/dist/nextAuth/authProviders.d.ts.map +1 -1
  123. package/dist/nextAuth/authProviders.js +15 -10
  124. package/dist/nextAuth/authProviders.js.map +1 -1
  125. package/dist/redux/api/modelApi.d.ts +2 -1
  126. package/dist/redux/api/modelApi.d.ts.map +1 -1
  127. package/dist/redux/api/modelApi.js +9 -2
  128. package/dist/redux/api/modelApi.js.map +1 -1
  129. package/dist/stylesheets/globals.css +2476 -0
  130. package/dist/stylesheets/styles/SF-Pro-Display-Regular.otf +0 -0
  131. package/dist/stylesheets/styles/layout/_config.scss +54 -0
  132. package/dist/stylesheets/styles/layout/_content.scss +77 -0
  133. package/dist/stylesheets/styles/layout/_footer.scss +8 -0
  134. package/dist/stylesheets/styles/layout/_main.scss +47 -0
  135. package/dist/stylesheets/styles/layout/_menu.scss +185 -0
  136. package/dist/stylesheets/styles/layout/_mixins.scss +13 -0
  137. package/dist/stylesheets/styles/layout/_responsive.scss +99 -0
  138. package/dist/stylesheets/styles/layout/_topbar.scss +149 -0
  139. package/dist/stylesheets/styles/layout/_typography.scss +63 -0
  140. package/dist/stylesheets/styles/layout/_utils.scss +27 -0
  141. package/dist/stylesheets/styles/layout/_variables.scss +3 -0
  142. package/dist/stylesheets/styles/layout/layout.scss +11 -0
  143. package/dist/stylesheets/themes/solid-dark-purple/fonts/SF-Pro-Display-Black.otf +0 -0
  144. package/dist/stylesheets/themes/solid-dark-purple/fonts/SF-Pro-Display-Bold.otf +0 -0
  145. package/dist/stylesheets/themes/solid-dark-purple/fonts/SF-Pro-Display-Heavy.otf +0 -0
  146. package/dist/stylesheets/themes/solid-dark-purple/fonts/SF-Pro-Display-Light.otf +0 -0
  147. package/dist/stylesheets/themes/solid-dark-purple/fonts/SF-Pro-Display-Medium.otf +0 -0
  148. package/dist/stylesheets/themes/solid-dark-purple/fonts/SF-Pro-Display-Regular.otf +0 -0
  149. package/dist/stylesheets/themes/solid-dark-purple/fonts/SF-Pro-Display-Semibold.otf +0 -0
  150. package/dist/stylesheets/themes/solid-dark-purple/fonts/SF-Pro-Display-Thin.otf +0 -0
  151. package/dist/stylesheets/themes/solid-dark-purple/fonts/SF-Pro-Display-Ultralight.otf +0 -0
  152. package/dist/stylesheets/themes/solid-dark-purple/theme.css +9051 -0
  153. package/dist/stylesheets/themes/solid-light-purple/fonts/SF-Pro-Display-Black.otf +0 -0
  154. package/dist/stylesheets/themes/solid-light-purple/fonts/SF-Pro-Display-Bold.otf +0 -0
  155. package/dist/stylesheets/themes/solid-light-purple/fonts/SF-Pro-Display-Heavy.otf +0 -0
  156. package/dist/stylesheets/themes/solid-light-purple/fonts/SF-Pro-Display-Light.otf +0 -0
  157. package/dist/stylesheets/themes/solid-light-purple/fonts/SF-Pro-Display-Medium.otf +0 -0
  158. package/dist/stylesheets/themes/solid-light-purple/fonts/SF-Pro-Display-Regular.otf +0 -0
  159. package/dist/stylesheets/themes/solid-light-purple/fonts/SF-Pro-Display-Semibold.otf +0 -0
  160. package/dist/stylesheets/themes/solid-light-purple/fonts/SF-Pro-Display-Thin.otf +0 -0
  161. package/dist/stylesheets/themes/solid-light-purple/fonts/SF-Pro-Display-Ultralight.otf +0 -0
  162. package/dist/stylesheets/themes/solid-light-purple/theme.css +9077 -0
  163. package/package.json +1 -1
  164. package/src/components/Svg/FileSvg.tsx +18 -0
  165. package/src/components/auth/AuthLayout.tsx +7 -5
  166. package/src/components/auth/SolidForgotPassword.tsx +1 -1
  167. package/src/components/auth/SolidInitialLoginOtp.tsx +1 -1
  168. package/src/components/auth/SolidInitiateRegisterOtp.tsx +1 -1
  169. package/src/components/auth/SolidResetPassword.tsx +1 -1
  170. package/src/components/common/DropzonePlaceholder.tsx +22 -9
  171. package/src/components/common/FileReaderExt.tsx +5 -3
  172. package/src/components/common/SingleSelectAutoCompleteField.tsx +3 -1
  173. package/src/components/core/common/SolidConfigureLayoutElement.tsx +72 -31
  174. package/src/components/core/common/SolidGlobalSearchElement.tsx +7 -6
  175. package/src/components/core/form/SolidFormView.tsx +4 -4
  176. package/src/components/core/form/fields/SolidBooleanField.tsx +6 -3
  177. package/src/components/core/form/fields/SolidDateField.tsx +6 -3
  178. package/src/components/core/form/fields/SolidDateTimeField.tsx +6 -3
  179. package/src/components/core/form/fields/SolidDecimalField.tsx +6 -3
  180. package/src/components/core/form/fields/SolidIntegerField.tsx +6 -3
  181. package/src/components/core/form/fields/SolidJsonField.tsx +6 -3
  182. package/src/components/core/form/fields/SolidLongTextField.tsx +6 -3
  183. package/src/components/core/form/fields/SolidMediaMultipleField.tsx +122 -98
  184. package/src/components/core/form/fields/SolidMediaSingleField.tsx +115 -126
  185. package/src/components/core/form/fields/SolidRichTextField.tsx +7 -3
  186. package/src/components/core/form/fields/SolidSelectionDynamicField.tsx +6 -3
  187. package/src/components/core/form/fields/SolidSelectionStaticField.tsx +6 -3
  188. package/src/components/core/form/fields/SolidShortTextField.tsx +8 -4
  189. package/src/components/core/form/fields/SolidTimeField.tsx +7 -4
  190. package/src/components/core/form/fields/relations/SolidRelationManyToManyField.tsx +29 -25
  191. package/src/components/core/form/fields/relations/SolidRelationManyToOneField.tsx +92 -2
  192. package/src/components/core/form/fields/relations/SolidRelationOneToManyField.tsx +5 -1
  193. package/src/components/core/list/SolidListView.tsx +12 -3
  194. package/src/components/core/list/columns/SolidMediaMultipleColumn.tsx +18 -0
  195. package/src/components/core/list/columns/SolidMediaSingleColumn.tsx +21 -0
  196. package/src/components/core/model/CreateModel.tsx +4 -4
  197. package/src/components/core/model/FieldMetaData.tsx +25 -1
  198. package/src/components/core/model/FieldMetaDataForm.tsx +108 -18
  199. package/src/components/core/module/CreateModule.tsx +5 -5
  200. package/src/components/core/users/CreateUser.tsx +2 -2
  201. package/src/components/layout/AppConfig.tsx +1 -1
  202. package/src/components/layout/navbar-two-menu.tsx +1 -1
  203. package/src/components/layout/user-profile-menu.tsx +7 -8
  204. package/src/helpers/downloadMediaFile.tsx +19 -0
  205. package/src/helpers/getAcceptedFileTypes.tsx +22 -0
  206. package/src/nextAuth/authProviders.tsx +3 -2
  207. package/src/redux/api/modelApi.ts +9 -2
  208. package/dist/components/common/FilterComponent.d.ts +0 -3
  209. package/dist/components/common/FilterComponent.d.ts.map +0 -1
  210. package/dist/components/common/FilterComponent.js +0 -214
  211. package/dist/components/common/FilterComponent.js.map +0 -1
  212. package/dist/components/core/filter/columns/SolidBigintField.d.ts +0 -4
  213. package/dist/components/core/filter/columns/SolidBigintField.d.ts.map +0 -1
  214. package/dist/components/core/filter/columns/SolidBigintField.js +0 -8
  215. package/dist/components/core/filter/columns/SolidBigintField.js.map +0 -1
  216. package/dist/components/core/filter/columns/SolidBooleanField.d.ts +0 -4
  217. package/dist/components/core/filter/columns/SolidBooleanField.d.ts.map +0 -1
  218. package/dist/components/core/filter/columns/SolidBooleanField.js +0 -27
  219. package/dist/components/core/filter/columns/SolidBooleanField.js.map +0 -1
  220. package/dist/components/core/filter/columns/SolidComputedField.d.ts +0 -4
  221. package/dist/components/core/filter/columns/SolidComputedField.d.ts.map +0 -1
  222. package/dist/components/core/filter/columns/SolidComputedField.js +0 -22
  223. package/dist/components/core/filter/columns/SolidComputedField.js.map +0 -1
  224. package/dist/components/core/filter/columns/SolidDateField.d.ts +0 -9
  225. package/dist/components/core/filter/columns/SolidDateField.d.ts.map +0 -1
  226. package/dist/components/core/filter/columns/SolidDateField.js +0 -35
  227. package/dist/components/core/filter/columns/SolidDateField.js.map +0 -1
  228. package/dist/components/core/filter/columns/SolidDatetimeField.d.ts +0 -4
  229. package/dist/components/core/filter/columns/SolidDatetimeField.d.ts.map +0 -1
  230. package/dist/components/core/filter/columns/SolidDatetimeField.js +0 -24
  231. package/dist/components/core/filter/columns/SolidDatetimeField.js.map +0 -1
  232. package/dist/components/core/filter/columns/SolidDecimalField.d.ts +0 -4
  233. package/dist/components/core/filter/columns/SolidDecimalField.d.ts.map +0 -1
  234. package/dist/components/core/filter/columns/SolidDecimalField.js +0 -8
  235. package/dist/components/core/filter/columns/SolidDecimalField.js.map +0 -1
  236. package/dist/components/core/filter/columns/SolidExternalIdField.d.ts +0 -4
  237. package/dist/components/core/filter/columns/SolidExternalIdField.d.ts.map +0 -1
  238. package/dist/components/core/filter/columns/SolidExternalIdField.js +0 -25
  239. package/dist/components/core/filter/columns/SolidExternalIdField.js.map +0 -1
  240. package/dist/components/core/filter/columns/SolidFloatField.d.ts +0 -4
  241. package/dist/components/core/filter/columns/SolidFloatField.d.ts.map +0 -1
  242. package/dist/components/core/filter/columns/SolidFloatField.js +0 -8
  243. package/dist/components/core/filter/columns/SolidFloatField.js.map +0 -1
  244. package/dist/components/core/filter/columns/SolidIdField.d.ts +0 -4
  245. package/dist/components/core/filter/columns/SolidIdField.d.ts.map +0 -1
  246. package/dist/components/core/filter/columns/SolidIdField.js +0 -25
  247. package/dist/components/core/filter/columns/SolidIdField.js.map +0 -1
  248. package/dist/components/core/filter/columns/SolidIntField.d.ts +0 -4
  249. package/dist/components/core/filter/columns/SolidIntField.d.ts.map +0 -1
  250. package/dist/components/core/filter/columns/SolidIntField.js +0 -34
  251. package/dist/components/core/filter/columns/SolidIntField.js.map +0 -1
  252. package/dist/components/core/filter/columns/SolidLongTextField.d.ts +0 -4
  253. package/dist/components/core/filter/columns/SolidLongTextField.d.ts.map +0 -1
  254. package/dist/components/core/filter/columns/SolidLongTextField.js +0 -8
  255. package/dist/components/core/filter/columns/SolidLongTextField.js.map +0 -1
  256. package/dist/components/core/filter/columns/SolidMediaMultipleField.d.ts +0 -4
  257. package/dist/components/core/filter/columns/SolidMediaMultipleField.d.ts.map +0 -1
  258. package/dist/components/core/filter/columns/SolidMediaMultipleField.js +0 -35
  259. package/dist/components/core/filter/columns/SolidMediaMultipleField.js.map +0 -1
  260. package/dist/components/core/filter/columns/SolidMediaSingleField.d.ts +0 -4
  261. package/dist/components/core/filter/columns/SolidMediaSingleField.d.ts.map +0 -1
  262. package/dist/components/core/filter/columns/SolidMediaSingleField.js +0 -35
  263. package/dist/components/core/filter/columns/SolidMediaSingleField.js.map +0 -1
  264. package/dist/components/core/filter/columns/SolidRelationField.d.ts +0 -4
  265. package/dist/components/core/filter/columns/SolidRelationField.d.ts.map +0 -1
  266. package/dist/components/core/filter/columns/SolidRelationField.js +0 -12
  267. package/dist/components/core/filter/columns/SolidRelationField.js.map +0 -1
  268. package/dist/components/core/filter/columns/SolidRichTextField.d.ts +0 -4
  269. package/dist/components/core/filter/columns/SolidRichTextField.d.ts.map +0 -1
  270. package/dist/components/core/filter/columns/SolidRichTextField.js +0 -8
  271. package/dist/components/core/filter/columns/SolidRichTextField.js.map +0 -1
  272. package/dist/components/core/filter/columns/SolidSelectionDynamicField.d.ts +0 -4
  273. package/dist/components/core/filter/columns/SolidSelectionDynamicField.d.ts.map +0 -1
  274. package/dist/components/core/filter/columns/SolidSelectionDynamicField.js +0 -25
  275. package/dist/components/core/filter/columns/SolidSelectionDynamicField.js.map +0 -1
  276. package/dist/components/core/filter/columns/SolidSelectionStaticField.d.ts +0 -4
  277. package/dist/components/core/filter/columns/SolidSelectionStaticField.d.ts.map +0 -1
  278. package/dist/components/core/filter/columns/SolidSelectionStaticField.js +0 -26
  279. package/dist/components/core/filter/columns/SolidSelectionStaticField.js.map +0 -1
  280. package/dist/components/core/filter/columns/SolidShortTextField.d.ts +0 -4
  281. package/dist/components/core/filter/columns/SolidShortTextField.d.ts.map +0 -1
  282. package/dist/components/core/filter/columns/SolidShortTextField.js +0 -33
  283. package/dist/components/core/filter/columns/SolidShortTextField.js.map +0 -1
  284. package/dist/components/core/filter/columns/SolidTimeField.d.ts +0 -4
  285. package/dist/components/core/filter/columns/SolidTimeField.d.ts.map +0 -1
  286. package/dist/components/core/filter/columns/SolidTimeField.js +0 -24
  287. package/dist/components/core/filter/columns/SolidTimeField.js.map +0 -1
  288. package/dist/components/core/filter/columns/SolidUuidField.d.ts +0 -4
  289. package/dist/components/core/filter/columns/SolidUuidField.d.ts.map +0 -1
  290. package/dist/components/core/filter/columns/SolidUuidField.js +0 -25
  291. package/dist/components/core/filter/columns/SolidUuidField.js.map +0 -1
  292. package/dist/components/core/filter/columns/relations/SolidRelationManyToOneField.d.ts +0 -4
  293. package/dist/components/core/filter/columns/relations/SolidRelationManyToOneField.d.ts.map +0 -1
  294. package/dist/components/core/filter/columns/relations/SolidRelationManyToOneField.js +0 -54
  295. package/dist/components/core/filter/columns/relations/SolidRelationManyToOneField.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solidstarters/solid-core-ui",
3
- "version": "1.1.17",
3
+ "version": "1.1.19",
4
4
  "scripts": {
5
5
  "build": "tsc && tsc-alias",
6
6
  "clean": "rm -rf dist",
@@ -0,0 +1,18 @@
1
+ import * as React from "react"
2
+ import { SVGProps } from "react"
3
+ const FileSvg = (props: SVGProps<SVGSVGElement>) => (
4
+ <svg
5
+ xmlns="http://www.w3.org/2000/svg"
6
+ width={64}
7
+ height={64}
8
+ fill="none"
9
+ {...props}
10
+ >
11
+ <path
12
+ fill="#F9F0FF"
13
+ d="M36.03 25.291a2 2 0 0 1-2-2V6.271H16a6 6 0 0 0-6 6v40.08a6 6 0 0 0 6 6h31.06a6.01 6.01 0 0 0 6-6v-27.06H36.03Z"
14
+ />
15
+ <path fill="#722ED1" d="M51.88 21.291 38.03 7.441v13.85h13.85Z" />
16
+ </svg>
17
+ )
18
+ export default FileSvg
@@ -103,13 +103,15 @@ export const AuthLayout = ({ children }: { children: React.ReactNode }) => {
103
103
  </div>
104
104
  }
105
105
  </div>
106
- <div className="absolute solid-auth-footer flex align-items-center justify-content-between">
107
- <div>
106
+ <div className={`absolute ${solidSettingsData?.data?.authPagesLayout === 'center' ? 'solid-auth-footer flex align-items-center justify-content-between' : 'solid-auth-footer-2 grid'}`}>
107
+ <div className={solidSettingsData?.data?.authPagesLayout !== 'center' ? 'col-6 flex justify-content-center' : ''}>
108
108
  <p className={`solid-auth-input-label text-sm m-0 ${solidSettingsData?.data?.authPagesLayout === 'right' ? 'right' : ''}`}>Made with <svg className="mx-1" width="12px" height="12px" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"> <path d="M1.24264 8.24264L8 15L14.7574 8.24264C15.553 7.44699 16 6.36786 16 5.24264V5.05234C16 2.8143 14.1857 1 11.9477 1C10.7166 1 9.55233 1.55959 8.78331 2.52086L8 3.5L7.21669 2.52086C6.44767 1.55959 5.28338 1 4.05234 1C1.8143 1 0 2.8143 0 5.05234V5.24264C0 6.36786 0.44699 7.44699 1.24264 8.24264Z" fill="#ff0000"></path> </g></svg> in Mumbai</p>
109
109
  </div>
110
- <div className={`flex align-items-center gap-5 solid-auth-subtitle ${solidSettingsData?.data?.authPagesLayout === 'left' ? 'left' : ''}`}>
111
- <p className="m-0"> <Link href={solidSettingsData ? solidSettingsData?.data?.appTnc : "#"}>Terms of Service</Link></p>
112
- <p className="m-0"> <Link href={solidSettingsData ? solidSettingsData?.data?.appPrivacyPolicy : "#"}>Privacy Policy.</Link></p>
110
+ <div className={solidSettingsData?.data?.authPagesLayout !== 'center' ? 'col-6 flex justify-content-center' : ''}>
111
+ <div className={`flex align-items-center gap-5 solid-auth-subtitle ${solidSettingsData?.data?.authPagesLayout === 'left' ? 'left' : ''}`}>
112
+ <p className="m-0"> <Link href={solidSettingsData ? solidSettingsData?.data?.appTnc : "#"}>Terms of Service</Link></p>
113
+ <p className="m-0"> <Link href={solidSettingsData ? solidSettingsData?.data?.appPrivacyPolicy : "#"}>Privacy Policy.</Link></p>
114
+ </div>
113
115
  </div>
114
116
  </div>
115
117
  <Dialog
@@ -106,7 +106,7 @@ const SolidForgotPassword = () => {
106
106
  </div>
107
107
  <div className="mt-4">
108
108
  <Button className="w-full font-light auth-submit-button" label="Send OTP" disabled={formik.isSubmitting} loading={formik.isSubmitting} />
109
- <Button type="button" label="Back" className="w-full auth-back-button text-center" link onClick={() => (window.location.href = '/auth/login')} />
109
+ <Button type="button" label="Back" className="w-full auth-back-button text-center mt-1" link onClick={() => (window.location.href = '/auth/login')} />
110
110
  </div>
111
111
  </form>
112
112
  </div>
@@ -119,7 +119,7 @@ const SolidInitialLoginOtp = () => {
119
119
  </div>
120
120
  <div className="mt-4">
121
121
  <Button type="submit" className="w-full font-light auth-submit-button" label="Verify" disabled={formik.isSubmitting} loading={formik.isSubmitting} />
122
- <Button type="button" label="Back" className="w-full auth-back-button text-center" link onClick={() => (window.location.href = '/auth/login')} />
122
+ <Button type="button" label="Back" className="w-full auth-back-button text-center mt-1" link onClick={() => (window.location.href = '/auth/login')} />
123
123
  </div>
124
124
  </Form>
125
125
  )}
@@ -119,7 +119,7 @@ const SolidInitiateRegisterOtp = () => {
119
119
  </div>
120
120
  <div className="mt-4">
121
121
  <Button type="submit" className="w-full font-light auth-submit-button" label="Verify" disabled={formik.isSubmitting} loading={formik.isSubmitting} />
122
- <Button type="button" label="Back" className="w-full auth-back-button text-center" link onClick={() => (window.location.href = '/auth/login')} />
122
+ <Button type="button" label="Back" className="w-full auth-back-button text-center mt-1" link onClick={() => (window.location.href = '/auth/login')} />
123
123
  </div>
124
124
  </Form>
125
125
  )}
@@ -143,7 +143,7 @@ const SolidResetPassword = () => {
143
143
  </div> */}
144
144
  <div className="mt-4">
145
145
  <Button className="w-full font-light auth-submit-button" label="Reset Password" disabled={formik.isSubmitting} loading={formik.isSubmitting} />
146
- <Button type="button" label="Back" className="w-full auth-back-button text-center" link onClick={() => (window.location.href = '/auth/login')} />
146
+ <Button type="button" label="Back" className="w-full auth-back-button text-center mt-1" link onClick={() => (window.location.href = '/auth/login')} />
147
147
  </div>
148
148
  </form>
149
149
  </div>
@@ -1,18 +1,31 @@
1
1
  'use client';
2
2
 
3
3
  import { Button } from "primereact/button";
4
+ interface DropzonePlaceholderProps {
5
+ mediaTypes?: string[];
6
+ mediaMaxSizeKb?: number;
7
+ }
8
+
9
+ export const DropzonePlaceholder = ({ mediaTypes, mediaMaxSizeKb }: DropzonePlaceholderProps) => {
10
+ const supportedFormats = mediaTypes?.length
11
+ ? mediaTypes.map(type => type.toUpperCase()).join(", ")
12
+ : "PDF, JPEG | File";
13
+
14
+ // Convert max size from KB to MB and ensure it's at least 1MB
15
+ const maxSizeMB = mediaMaxSizeKb ? (mediaMaxSizeKb / 1024).toFixed(1) : "10";
4
16
 
5
- export const DropzonePlaceholder = () => {
6
17
  return (
7
18
  <div className='solid-dropzone'>
8
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
9
- <path d="M11 16V7.85L8.4 10.45L7 9L12 4L17 9L15.6 10.45L13 7.85V16H11ZM6 20C5.45 20 4.97917 19.8042 4.5875 19.4125C4.19583 19.0208 4 18.55 4 18V15H6V18H18V15H20V18C20 18.55 19.8042 19.0208 19.4125 19.4125C19.0208 19.8042 18.55 20 18 20H6Z" fill="#666666" />
10
- </svg>
11
- <div className='font-bold'>
12
- Drag and Drop or <span className='text-primary'> choose files</span> to upload
13
- </div>
14
- <p>Supported format : PDF/JPEG | File size max 10 MB</p>
15
- <Button outlined size='small' severity='secondary' label='Click to Brows' type="button"/>
19
+ <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
20
+ <path d="M11 16V7.85L8.4 10.45L7 9L12 4L17 9L15.6 10.45L13 7.85V16H11ZM6 20C5.45 20 4.97917 19.8042 4.5875 19.4125C4.19583 19.0208 4 18.55 4 18V15H6V18H18V15H20V18C20 18.55 19.8042 19.0208 19.4125 19.4125C19.0208 19.8042 18.55 20 18 20H6Z" fill="#666666" />
21
+ </svg>
22
+ <div className='font-bold mt-2'>
23
+ Drag and Drop or <span className='text-primary'> choose files</span> to upload
24
+ </div>
25
+ <p>Supported format: {supportedFormats} | Max size: {maxSizeMB} MB</p>
26
+ <div>
27
+ <Button outlined size='small' severity='secondary' label='Click to Browse' type="button" />
28
+ </div>
16
29
  </div>
17
30
  )
18
31
  }
@@ -1,8 +1,9 @@
1
1
  import React from 'react'
2
+ import FileSvg from '../Svg/FileSvg'
2
3
 
3
4
  export const FileReaderExt = ({ fileDetails }: { fileDetails: any }) => {
4
- const renderFile =()=>{
5
- const type =fileDetails.type
5
+ const renderFile = () => {
6
+ const type = fileDetails.type
6
7
  switch (type) {
7
8
  case "image/png":
8
9
  return '/images/fileReader/image-jpg.png'
@@ -12,7 +13,8 @@ export const FileReaderExt = ({ fileDetails }: { fileDetails: any }) => {
12
13
  }
13
14
  return (
14
15
  <div>
15
- <img src={renderFile()} style={{height: 50, width:50}}/>
16
+ <FileSvg />
17
+ {/* <img src={renderFile()} style={{height: 50, width:50}}/> */}
16
18
  </div>
17
19
  )
18
20
  }
@@ -32,7 +32,9 @@ export const SingleSelectAutoCompleteField = ({ disabled, formik, isFormFieldVal
32
32
  disabled={disabled ? disabled : false}
33
33
  value={selectedItem}
34
34
  suggestions={filteredItem}
35
- invalid={(isFormFieldValid(formik, fieldName) || (formErrors[fieldName]))}
35
+ // invalid={(isFormFieldValid(formik, fieldName) || (formErrors[fieldName]))}
36
+ invalid={isFormFieldValid(formik, fieldName)}
37
+
36
38
  completeMethod={searchItems}
37
39
  virtualScrollerOptions={{ itemSize: 38 }}
38
40
  // style={{
@@ -5,7 +5,7 @@ import { Checkbox, CheckboxChangeEvent } from "primereact/checkbox";
5
5
  import { Divider } from "primereact/divider";
6
6
  import { OverlayPanel } from "primereact/overlaypanel";
7
7
  import { RadioButton } from "primereact/radiobutton";
8
- import { useRef, useState } from "react";
8
+ import { useEffect, useRef, useState } from "react";
9
9
 
10
10
  interface FilterColumns {
11
11
  name: string;
@@ -15,9 +15,26 @@ export const SolidConfigureLayoutElement = ({ setShowArchived, showArchived, vie
15
15
 
16
16
  // const [visible, setVisible] = useState<boolean>(false);
17
17
  const op = useRef(null);
18
- const customizeLayout = useRef(null);
19
- const [isOverlayOpen, setIsOverlayOpen] = useState(true);
18
+ const customizeLayout = useRef<OverlayPanel | null>(null);
19
+ const [isOverlayOpen, setIsOverlayOpen] = useState(false);
20
+ useEffect(() => {
21
+ const handleClickOutside = (event: MouseEvent) => {
22
+ if (
23
+ customizeLayout.current &&
24
+ !customizeLayout.current.getElement()?.contains(event.target as Node)
25
+ ) {
26
+ setIsOverlayOpen(false);
27
+ }
28
+ };
20
29
 
30
+ if (isOverlayOpen) {
31
+ document.addEventListener("click", handleClickOutside);
32
+ } else {
33
+ document.removeEventListener("click", handleClickOutside);
34
+ }
35
+
36
+ return () => document.removeEventListener("click", handleClickOutside);
37
+ }, [isOverlayOpen])
21
38
  const categories: FilterColumns[] = [
22
39
  { name: 'ID', key: 'A' },
23
40
  { name: 'Tracker Date', key: 'M' },
@@ -48,47 +65,69 @@ export const SolidConfigureLayoutElement = ({ setShowArchived, showArchived, vie
48
65
  // @ts-ignore
49
66
  onClick={(e) => op.current.toggle(e)}
50
67
  />
51
- <OverlayPanel ref={op}>
68
+ <OverlayPanel ref={op} className="listview-cogwheel-panel">
52
69
  <div className="p-2">
53
70
  <div className="flex flex-column">
54
71
  <Button text icon='pi pi-download' label="Import" size="small" severity="secondary" className="text-left gap-2" />
55
72
  <Button text icon='pi pi-upload' label="Export" size="small" severity="secondary" className="text-left gap-2" />
56
- <Button text icon='pi pi-share-alt' label="Share" size="small" severity="secondary" className="text-left gap-2" />
73
+ {/* <Button text icon='pi pi-share-alt' label="Share" size="small" severity="secondary" className="text-left gap-2" /> */}
74
+ {/* {viewData?.data?.solidView?.model?.enableSoftDelete &&
75
+ <Button text severity="secondary" size="small" className="text-left w-13rem" label={showArchived ? "Hide Archived Records" : "Show Archived Records"} iconPos="left" onClick={() => { setShowArchived(!showArchived); }} />
76
+ } */}
77
+ {viewData?.data?.solidView?.model?.enableSoftDelete && (
78
+ <div className="flex align-items-center px-3 gap-2 mt-2 mb-1">
79
+ <Checkbox
80
+ inputId="showArchived"
81
+ checked={showArchived}
82
+ onChange={() => setShowArchived(!showArchived)}
83
+ />
84
+ <label htmlFor="showArchived" className="ml-2 text-base solid-secondary-text-color">
85
+ Show Archived Records
86
+ </label>
87
+ </div>
88
+ )}
89
+
90
+
57
91
  </div>
58
92
  </div>
59
93
  <Divider className="m-0" />
60
94
  <div className="p-2 position-relative flex flex-column gap-1">
61
- {viewData?.data?.solidView?.model?.enableSoftDelete &&
62
- <Button text size="small" className="text-left w-13rem" label={showArchived ? "Hide Archived Records" : "Show Archived Records"} iconPos="left" onClick={() => { setShowArchived(!showArchived); }} />
63
- }
64
95
  <Button
65
96
  icon='pi pi-sliders-h'
66
97
  label="Customize Layout"
98
+ severity={isOverlayOpen ? undefined : "secondary"}
67
99
  size="small"
68
- text={isOverlayOpen}
69
- className="text-left gap-2 w-13rem"
100
+ text={isOverlayOpen ? false : true}
101
+ className="text-left gap-2 w-full"
70
102
  // @ts-ignore
71
- onClick={(e) => customizeLayout.current.toggle(e)}
72
- // onMouseEnter={(e) => customizeLayout.current.show(e)}
73
- />
74
- <p className="mt-3 mb-1 font-medium" style={{ color: 'var(--gray-400)' }}>Saved Layouts</p>
75
- <Button text severity="secondary" label="Diet Tracking" icon="pi pi-plus" size="small" />
103
+ onClick={(e) => {
104
+ customizeLayout.current?.toggle(e);
105
+ setIsOverlayOpen((prev) => !prev); // ✅ Ensure state updates when toggled
106
+ }}
107
+ >
108
+ <i className="pi pi-chevron-right text-sm"></i>
109
+ </Button>
110
+ {/* <p className="mt-3 mb-1 font-medium" style={{ color: 'var(--gray-400)' }}>Saved Layouts</p> */}
111
+ {/* <Button text severity="secondary" label="Diet Tracking" icon="pi pi-plus" size="small" /> */}
76
112
  <OverlayPanel ref={customizeLayout} className="customize-layout-panel" style={{ minWidth: 250 }}
77
- onShow={() => setIsOverlayOpen(false)}
78
- onHide={() => setIsOverlayOpen(true)}
113
+ onShow={() => setIsOverlayOpen(true)}
114
+ onHide={() => {
115
+ console.log("Overlay closed");
116
+ setTimeout(() => setIsOverlayOpen(false), 50); // ✅ Ensure state updates
117
+ }}
79
118
  >
80
119
  <div className="solid-layout-accordion">
81
120
  <Accordion multiple expandIcon="pi pi-chevron-down" collapseIcon="pi pi-chevron-up">
82
121
  <AccordionTab header="Switch Type">
83
- <div className="flex flex-column gap-1">
84
- {sizeOptions.map((option: any) => (
85
- <div key={option.value} className={`flex align-items-center ${option.value === size ? 'solid-active-view' : 'solid-view'}`}>
122
+ <div className="flex flex-column gap-1 p-1">
123
+ {viewModes.map((option: any) => (
124
+ <div key={option.value} className={`flex align-items-center ${option.value === view ? 'solid-active-view' : 'solid-view'}`}>
86
125
  <RadioButton
87
126
  inputId={option.value}
88
- name="sizes"
127
+ name="views"
89
128
  value={option.value}
90
- onChange={(e) => setSize(e.value)}
91
- checked={option.value === size}
129
+ onChange={(e) => setView(e.value)}
130
+ checked={option.value === view}
92
131
  />
93
132
  <label htmlFor={option.value} className="ml-2 flex align-items-center justify-content-between w-full">
94
133
  {option.label}
@@ -104,15 +143,16 @@ export const SolidConfigureLayoutElement = ({ setShowArchived, showArchived, vie
104
143
  </div>
105
144
  </AccordionTab>
106
145
  <AccordionTab header="List">
107
- <div className="flex flex-column gap-1">
108
- {viewModes.map((option: any) => (
109
- <div key={option.value} className={`flex align-items-center ${option.value === view ? 'solid-active-view' : 'solid-view'}`}>
146
+ <div className="flex flex-column gap-1 p-1">
147
+ <p className="m-0 px-3">Row Spacing</p>
148
+ {sizeOptions.map((option: any) => (
149
+ <div key={option.value} className={`flex align-items-center ${option.value === size ? 'solid-active-view' : 'solid-view'}`}>
110
150
  <RadioButton
111
151
  inputId={option.value}
112
- name="views"
152
+ name="sizes"
113
153
  value={option.value}
114
- onChange={(e) => setView(e.value)}
115
- checked={option.value === view}
154
+ onChange={(e) => setSize(e.value)}
155
+ checked={option.value === size}
116
156
  />
117
157
  <label htmlFor={option.value} className="ml-2 flex align-items-center justify-content-between w-full">
118
158
  {option.label}
@@ -134,7 +174,7 @@ export const SolidConfigureLayoutElement = ({ setShowArchived, showArchived, vie
134
174
  <p className="m-0">Column Selector</p>
135
175
  {/* <Button text label="Save Layout" icon="pi pi-plus" /> */}
136
176
  </div>
137
- <div className="flex flex-column gap-3 p-3">
177
+ <div className="flex flex-column gap-3 p-3 cogwheel-column-filter">
138
178
  {categories.map((category) => {
139
179
  return (
140
180
  <div key={category.key} className="flex align-items-center gap-1">
@@ -144,8 +184,9 @@ export const SolidConfigureLayoutElement = ({ setShowArchived, showArchived, vie
144
184
  value={category}
145
185
  onChange={onCategoryChange}
146
186
  checked={selectedCategories.some((item) => item.key === category.key)}
187
+ className="text-base"
147
188
  />
148
- <label htmlFor={category.key} className="ml-2">
189
+ <label htmlFor={category.key} className="ml-2 text-base">
149
190
  {category.name}
150
191
  </label>
151
192
  </div>
@@ -254,9 +254,9 @@ export const SolidGlobalSearchElement = forwardRef(({ viewData, handleApplyCusto
254
254
  ];
255
255
 
256
256
 
257
- useEffect(() => {
258
- console.log("Input Value", customChip, "Input Value", searchChips, "Input Value", inputValue);
259
- }, [chipsToDisplay])
257
+ // useEffect(() => {
258
+ // console.log("Input Value", customChip, "Input Value", searchChips, "Input Value", inputValue);
259
+ // }, [chipsToDisplay])
260
260
 
261
261
  const customChipTemplate = (item: any) => {
262
262
  if (item === customChip) {
@@ -340,7 +340,7 @@ export const SolidGlobalSearchElement = forwardRef(({ viewData, handleApplyCusto
340
340
  // }}
341
341
  />
342
342
  </div>
343
- <OverlayPanel ref={op} className="solid-custom-overlay" style={{ minWidth: 378 }}>
343
+ <OverlayPanel ref={op} className="solid-custom-overlay" style={{ minWidth: 405 }}>
344
344
  {inputValue ? (
345
345
  <>
346
346
  <div className="custom-filter-search-options px-2 py-2 flex flex-column">
@@ -353,6 +353,7 @@ export const SolidGlobalSearchElement = forwardRef(({ viewData, handleApplyCusto
353
353
  onClick={() => handleAddChip(value?.attrs?.name)}
354
354
  text
355
355
  severity="secondary"
356
+ size="small"
356
357
  >
357
358
  Search <strong>{value?.attrs?.name}</strong> for :
358
359
  <span className="font-bold" style={{ color: '#000' }}>{inputValue}</span>
@@ -364,12 +365,12 @@ export const SolidGlobalSearchElement = forwardRef(({ viewData, handleApplyCusto
364
365
  </>
365
366
  ) :
366
367
  <>
367
- <div className="p-3">Search Here...</div>
368
+ <div className="p-3 text-base">Search Here...</div>
368
369
  <Divider className="m-0" />
369
370
  </>
370
371
  }
371
372
  <div className="px-2 py-1">
372
- <Button text size="small" label="Custom Filter" iconPos="left" icon='pi pi-plus' onClick={() => setShowGlobalSearchElement(true)} />
373
+ <Button text size="small" label="Custom Filter" iconPos="left" icon='pi pi-plus' onClick={() => setShowGlobalSearchElement(true)} className="font-bold" />
373
374
  </div>
374
375
  <Divider className="m-0" />
375
376
  </OverlayPanel>
@@ -696,8 +696,8 @@ const SolidFormView = (params: SolidFormViewProps) => {
696
696
  size="small"
697
697
  className="bg-primary-reverse p-0"
698
698
  style={{
699
- height: 32,
700
- width: 32
699
+ height: 33.06,
700
+ width: 33.06
701
701
  }}
702
702
  onClick={(e) =>
703
703
  // @ts-ignore
@@ -893,11 +893,11 @@ const SolidFormView = (params: SolidFormViewProps) => {
893
893
  </>
894
894
  )}
895
895
  </div>
896
- {params.embeded !== true &&
896
+ {/* {params.embeded !== true &&
897
897
  <div className="solid-form-stepper">
898
898
  <SolidFormStepper />
899
899
  </div>
900
- }
900
+ } */}
901
901
  <div className="p-4 solid-form-content">
902
902
  {renderFormDynamically(formViewMetaData)}
903
903
  </div>
@@ -69,6 +69,7 @@ export class SolidBooleanField implements ISolidField {
69
69
  const fieldDescription = fieldLayoutInfo.attrs.description ?? fieldMetadata.description;
70
70
  const booleanOptions = ["false", "true"];
71
71
  const solidFormViewMetaData = this.fieldContext.solidFormViewMetaData;
72
+ const showFieldLabel = fieldLayoutInfo?.attrs?.showLabel;
72
73
 
73
74
  useEffect(() => { formik.setFieldValue(fieldLayoutInfo.attrs.name, "false") }, [])
74
75
 
@@ -83,9 +84,11 @@ export class SolidBooleanField implements ISolidField {
83
84
  return (
84
85
  <div className={className}>
85
86
  <div className="flex flex-column gap-2 mt-4">
86
- <label htmlFor={fieldLayoutInfo.attrs.name} className="form-field-label">{fieldLabel}
87
- &nbsp; {fieldDescription && <span className="form_field_help">({fieldDescription}) </span>}
88
- </label>
87
+ {showFieldLabel != false &&
88
+ <label htmlFor={fieldLayoutInfo.attrs.name} className="form-field-label">{fieldLabel}
89
+ &nbsp; {fieldDescription && <span className="form_field_help">({fieldDescription}) </span>}
90
+ </label>
91
+ }
89
92
  {/* <InputText
90
93
  id={fieldLayoutInfo.attrs.name}
91
94
  className="small-input"
@@ -52,6 +52,7 @@ export class SolidDateField implements ISolidField {
52
52
  const fieldDescription = fieldLayoutInfo.attrs.description ?? fieldMetadata.description;
53
53
  const isFormFieldValid = (formik: any, fieldName: string) => formik.touched[fieldName] && formik.errors[fieldName];
54
54
  const solidFormViewMetaData = this.fieldContext.solidFormViewMetaData;
55
+ const showFieldLabel = fieldLayoutInfo?.attrs?.showLabel;
55
56
 
56
57
  const fieldDisabled = fieldLayoutInfo.attrs?.disabled;
57
58
  // const fieldReadonly = fieldLayoutInfo.attrs?.readonly;
@@ -62,9 +63,11 @@ export class SolidDateField implements ISolidField {
62
63
  return (
63
64
  <div className={className}>
64
65
  <div className="flex flex-column gap-2 mt-4">
65
- <label htmlFor={fieldLayoutInfo.attrs.name} className="form-field-label">{fieldLabel}
66
- &nbsp; {fieldDescription && <span className="form_field_help">({fieldDescription}) </span>}
67
- </label>
66
+ {showFieldLabel != false &&
67
+ <label htmlFor={fieldLayoutInfo.attrs.name} className="form-field-label">{fieldLabel}
68
+ &nbsp; {fieldDescription && <span className="form_field_help">({fieldDescription}) </span>}
69
+ </label>
70
+ }
68
71
  <Calendar
69
72
  disabled={formDisabled || fieldDisabled}
70
73
  ref={calendarRef} // Attach ref to Calendar
@@ -51,6 +51,7 @@ export class SolidDateTimeField implements ISolidField {
51
51
  const calendarRef = useRef<any>(null); // Reference for the Calendar component
52
52
  const fieldDescription = fieldLayoutInfo.attrs.description ?? fieldMetadata.description;
53
53
  const solidFormViewMetaData = this.fieldContext.solidFormViewMetaData;
54
+ const showFieldLabel = fieldLayoutInfo?.attrs?.showLabel;
54
55
 
55
56
  const isFormFieldValid = (formik: any, fieldName: string) => formik.touched[fieldName] && formik.errors[fieldName];
56
57
 
@@ -60,9 +61,11 @@ export class SolidDateTimeField implements ISolidField {
60
61
  return (
61
62
  <div className={className}>
62
63
  <div className="flex flex-column gap-2 mt-4">
63
- <label htmlFor={fieldLayoutInfo.attrs.name} className="form-field-label">{fieldLabel}
64
- &nbsp; {fieldDescription && <span className="form_field_help">({fieldDescription}) </span>}
65
- </label>
64
+ {showFieldLabel != false &&
65
+ <label htmlFor={fieldLayoutInfo.attrs.name} className="form-field-label">{fieldLabel}
66
+ &nbsp; {fieldDescription && <span className="form_field_help">({fieldDescription}) </span>}
67
+ </label>
68
+ }
66
69
  <Calendar
67
70
  disabled={formDisabled || fieldDisabled}
68
71
  ref={calendarRef} // Attach ref to Calendar
@@ -52,6 +52,7 @@ export class SolidDecimalField implements ISolidField {
52
52
  const fieldLabel = fieldLayoutInfo.attrs.label ?? fieldMetadata.displayName;
53
53
  const fieldDescription = fieldLayoutInfo.attrs.description ?? fieldMetadata.description;
54
54
  const solidFormViewMetaData = this.fieldContext.solidFormViewMetaData;
55
+ const showFieldLabel = fieldLayoutInfo?.attrs?.showLabel;
55
56
 
56
57
  const isFormFieldValid = (formik: any, fieldName: string) => formik.touched[fieldName] && formik.errors[fieldName];
57
58
 
@@ -64,9 +65,11 @@ export class SolidDecimalField implements ISolidField {
64
65
  return (
65
66
  <div className={className}>
66
67
  <div className="flex flex-column gap-2 mt-4">
67
- <label htmlFor={fieldLayoutInfo.attrs.name} className="form-field-label">{fieldLabel}
68
- &nbsp; {fieldDescription && <span className="form_field_help">({fieldDescription}) </span>}
69
- </label>
68
+ {showFieldLabel != false &&
69
+ <label htmlFor={fieldLayoutInfo.attrs.name} className="form-field-label">{fieldLabel}
70
+ &nbsp; {fieldDescription && <span className="form_field_help">({fieldDescription}) </span>}
71
+ </label>
72
+ }
70
73
  <InputNumber
71
74
  readOnly={formReadonly || fieldReadonly}
72
75
  disabled={formDisabled || fieldDisabled}
@@ -53,6 +53,7 @@ export class SolidIntegerField implements ISolidField {
53
53
  const fieldLabel = fieldLayoutInfo.attrs.label ?? fieldMetadata.displayName;
54
54
  const fieldDescription = fieldLayoutInfo.attrs.description ?? fieldMetadata.description;
55
55
  const solidFormViewMetaData = this.fieldContext.solidFormViewMetaData;
56
+ const showFieldLabel = fieldLayoutInfo?.attrs?.showLabel;
56
57
 
57
58
  const isFormFieldValid = (formik: any, fieldName: string) => formik.touched[fieldName] && formik.errors[fieldName];
58
59
 
@@ -65,9 +66,11 @@ export class SolidIntegerField implements ISolidField {
65
66
  return (
66
67
  <div className={className}>
67
68
  <div className="flex flex-column gap-2 mt-4">
68
- <label htmlFor={fieldLayoutInfo.attrs.name} className="form-field-label">{fieldLabel}
69
- &nbsp; {fieldDescription && <span className="form_field_help">({fieldDescription}) </span>}
70
- </label>
69
+ {showFieldLabel != false &&
70
+ <label htmlFor={fieldLayoutInfo.attrs.name} className="form-field-label">{fieldLabel}
71
+ &nbsp; {fieldDescription && <span className="form_field_help">({fieldDescription}) </span>}
72
+ </label>
73
+ }
71
74
  <InputNumber
72
75
  readOnly={formReadonly || fieldReadonly}
73
76
  disabled={formDisabled || fieldDisabled}
@@ -47,6 +47,7 @@ export class SolidJsonField implements ISolidField {
47
47
  const fieldLabel = fieldLayoutInfo.attrs.label ?? fieldMetadata.displayName;
48
48
  const fieldDescription = fieldLayoutInfo.attrs.description ?? fieldMetadata.description;
49
49
  const solidFormViewMetaData = this.fieldContext.solidFormViewMetaData;
50
+ const showFieldLabel = fieldLayoutInfo?.attrs?.showLabel;
50
51
 
51
52
  const isFormFieldValid = (formik: any, fieldName: string) => formik.touched[fieldName] && formik.errors[fieldName];
52
53
 
@@ -56,10 +57,12 @@ export class SolidJsonField implements ISolidField {
56
57
  return (
57
58
  <div className={className}>
58
59
  <div className="flex flex-column gap-2 mt-4">
59
- <label htmlFor={fieldLayoutInfo.attrs.name} className="form-field-label">{fieldLabel}
60
+ {showFieldLabel != false &&
61
+ <label htmlFor={fieldLayoutInfo.attrs.name} className="form-field-label">{fieldLabel}
60
62
 
61
- &nbsp; {fieldDescription && <span className="form_field_help">({fieldDescription}) </span>}
62
- </label>
63
+ &nbsp; {fieldDescription && <span className="form_field_help">({fieldDescription}) </span>}
64
+ </label>
65
+ }
63
66
  <CodeEditor
64
67
  formik={formik}
65
68
  field={fieldLayoutInfo.attrs.name}
@@ -65,6 +65,7 @@ export class SolidLongTextField implements ISolidField {
65
65
  const fieldLabel = fieldLayoutInfo.attrs.label ?? fieldMetadata.displayName;
66
66
  const fieldDescription = fieldLayoutInfo.attrs.description ?? fieldMetadata.description;
67
67
  const solidFormViewMetaData = this.fieldContext.solidFormViewMetaData;
68
+ const showFieldLabel = fieldLayoutInfo?.attrs?.showLabel;
68
69
 
69
70
  const isFormFieldValid = (formik: any, fieldName: string) => formik.touched[fieldName] && formik.errors[fieldName];
70
71
 
@@ -77,9 +78,11 @@ export class SolidLongTextField implements ISolidField {
77
78
  return (
78
79
  <div className={className}>
79
80
  <div className="flex flex-column gap-2 mt-4">
80
- <label htmlFor={fieldLayoutInfo.attrs.name} className="form-field-label">{fieldLabel}
81
- &nbsp; {fieldDescription && <span>({fieldDescription}) </span>}
82
- </label>
81
+ {showFieldLabel != false &&
82
+ <label htmlFor={fieldLayoutInfo.attrs.name} className="form-field-label">{fieldLabel}
83
+ &nbsp; {fieldDescription && <span>({fieldDescription}) </span>}
84
+ </label>
85
+ }
83
86
  <InputTextarea
84
87
  readOnly={formReadonly || fieldReadonly}
85
88
  disabled={formDisabled || fieldDisabled}