@solidxai/core-ui 0.1.9-beta.2 → 0.1.9-beta.21

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 (813) hide show
  1. package/README.md +1 -1
  2. package/dist/adapters/auth/handleLogout.d.ts +1 -1
  3. package/dist/adapters/auth/handleLogout.d.ts.map +1 -1
  4. package/dist/adapters/auth/handleLogout.js +20 -32
  5. package/dist/adapters/auth/handleLogout.js.map +1 -1
  6. package/dist/adapters/auth/handleLogout.ts +7 -14
  7. package/dist/components/auth/AuthLayout.d.ts.map +1 -1
  8. package/dist/components/auth/AuthLayout.js +24 -19
  9. package/dist/components/auth/AuthLayout.js.map +1 -1
  10. package/dist/components/auth/AuthLayout.tsx +63 -51
  11. package/dist/components/auth/ForgotPasswordThankYou.js +1 -1
  12. package/dist/components/auth/ForgotPasswordThankYou.js.map +1 -1
  13. package/dist/components/auth/ForgotPasswordThankYou.tsx +4 -4
  14. package/dist/components/auth/MicrosoftActiveDirectoryAuthChecking.d.ts +2 -0
  15. package/dist/components/auth/MicrosoftActiveDirectoryAuthChecking.d.ts.map +1 -0
  16. package/dist/components/auth/MicrosoftActiveDirectoryAuthChecking.js +112 -0
  17. package/dist/components/auth/MicrosoftActiveDirectoryAuthChecking.js.map +1 -0
  18. package/dist/components/auth/MicrosoftActiveDirectoryAuthChecking.tsx +78 -0
  19. package/dist/components/auth/SolidChangeForcePassword.js +2 -2
  20. package/dist/components/auth/SolidChangeForcePassword.js.map +1 -1
  21. package/dist/components/auth/SolidChangeForcePassword.tsx +13 -13
  22. package/dist/components/auth/SolidForgotPassword.js +1 -1
  23. package/dist/components/auth/SolidForgotPassword.js.map +1 -1
  24. package/dist/components/auth/SolidForgotPassword.tsx +5 -5
  25. package/dist/components/auth/SolidInitialLoginOtp.js +9 -9
  26. package/dist/components/auth/SolidInitialLoginOtp.js.map +1 -1
  27. package/dist/components/auth/SolidInitialLoginOtp.tsx +3 -3
  28. package/dist/components/auth/SolidInitiateRegisterOtp.js +9 -9
  29. package/dist/components/auth/SolidInitiateRegisterOtp.js.map +1 -1
  30. package/dist/components/auth/SolidInitiateRegisterOtp.tsx +3 -3
  31. package/dist/components/auth/SolidLogin.js +11 -12
  32. package/dist/components/auth/SolidLogin.js.map +1 -1
  33. package/dist/components/auth/SolidLogin.tsx +14 -14
  34. package/dist/components/auth/SolidRegister.js +15 -15
  35. package/dist/components/auth/SolidRegister.js.map +1 -1
  36. package/dist/components/auth/SolidRegister.tsx +17 -17
  37. package/dist/components/auth/SolidResetPassword.js +2 -2
  38. package/dist/components/auth/SolidResetPassword.js.map +1 -1
  39. package/dist/components/auth/SolidResetPassword.tsx +8 -8
  40. package/dist/components/common/BackButton.js +1 -1
  41. package/dist/components/common/BackButton.js.map +1 -1
  42. package/dist/components/common/BackButton.tsx +1 -1
  43. package/dist/components/common/CancelButton.js +2 -2
  44. package/dist/components/common/CancelButton.js.map +1 -1
  45. package/dist/components/common/CancelButton.tsx +3 -3
  46. package/dist/components/common/GeneralSettings.js +18 -18
  47. package/dist/components/common/GeneralSettings.js.map +1 -1
  48. package/dist/components/common/GeneralSettings.tsx +137 -137
  49. package/dist/components/common/SettingsComponent.d.ts.map +1 -1
  50. package/dist/components/common/SettingsComponent.js +4 -1
  51. package/dist/components/common/SettingsComponent.js.map +1 -1
  52. package/dist/components/common/SettingsComponent.module.css +95 -2
  53. package/dist/components/common/SettingsComponent.tsx +4 -1
  54. package/dist/components/common/SocialMediaLogin.d.ts.map +1 -1
  55. package/dist/components/common/SocialMediaLogin.js +2 -2
  56. package/dist/components/common/SocialMediaLogin.js.map +1 -1
  57. package/dist/components/common/SocialMediaLogin.tsx +8 -4
  58. package/dist/components/common/SolidExport.d.ts +1 -1
  59. package/dist/components/common/SolidExport.d.ts.map +1 -1
  60. package/dist/components/common/SolidExport.js +11 -4
  61. package/dist/components/common/SolidExport.js.map +1 -1
  62. package/dist/components/common/SolidExport.tsx +12 -2
  63. package/dist/components/common/SolidFaviconProvider.d.ts +3 -0
  64. package/dist/components/common/SolidFaviconProvider.d.ts.map +1 -0
  65. package/dist/components/common/SolidFaviconProvider.js +102 -0
  66. package/dist/components/common/SolidFaviconProvider.js.map +1 -0
  67. package/dist/components/common/SolidFaviconProvider.tsx +55 -0
  68. package/dist/components/common/SolidFormHeader.js +1 -1
  69. package/dist/components/common/SolidFormHeader.js.map +1 -1
  70. package/dist/components/common/SolidFormHeader.tsx +1 -1
  71. package/dist/components/common/SolidModuleHome.js +2 -2
  72. package/dist/components/common/SolidModuleHome.js.map +1 -1
  73. package/dist/components/common/SolidModuleHome.tsx +7 -7
  74. package/dist/components/common/SolidSettings/LlmSettings/AiModelConfigTab.js +3 -3
  75. package/dist/components/common/SolidSettings/LlmSettings/AiModelConfigTab.js.map +1 -1
  76. package/dist/components/common/SolidSettings/LlmSettings/AiModelConfigTab.tsx +6 -6
  77. package/dist/components/common/SolidSettings/LlmSettings/AnthropicProviderComponent.js +1 -1
  78. package/dist/components/common/SolidSettings/LlmSettings/AnthropicProviderComponent.js.map +1 -1
  79. package/dist/components/common/SolidSettings/LlmSettings/AnthropicProviderComponent.tsx +4 -4
  80. package/dist/components/common/SolidSettings/LlmSettings/OpenAiProviderComponent.js +1 -1
  81. package/dist/components/common/SolidSettings/LlmSettings/OpenAiProviderComponent.js.map +1 -1
  82. package/dist/components/common/SolidSettings/LlmSettings/OpenAiProviderComponent.tsx +4 -4
  83. package/dist/components/common/SolidSettings/SettingDropzoneActivePlaceholder.js +1 -1
  84. package/dist/components/common/SolidSettings/SettingDropzoneActivePlaceholder.js.map +1 -1
  85. package/dist/components/common/SolidSettings/SettingDropzoneActivePlaceholder.tsx +1 -1
  86. package/dist/components/core/card/SolidCardView.js +1 -1
  87. package/dist/components/core/card/SolidCardView.js.map +1 -1
  88. package/dist/components/core/card/SolidCardView.tsx +6 -6
  89. package/dist/components/core/card/SolidCardViewConfigure.d.ts.map +1 -1
  90. package/dist/components/core/card/SolidCardViewConfigure.js +1 -1
  91. package/dist/components/core/card/SolidCardViewConfigure.js.map +1 -1
  92. package/dist/components/core/card/SolidCardViewConfigure.tsx +5 -1
  93. package/dist/components/core/chatter/SolidChatter.d.ts.map +1 -1
  94. package/dist/components/core/chatter/SolidChatter.js +29 -16
  95. package/dist/components/core/chatter/SolidChatter.js.map +1 -1
  96. package/dist/components/core/chatter/SolidChatter.tsx +28 -14
  97. package/dist/components/core/chatter/SolidChatterAuditMessage.js +1 -1
  98. package/dist/components/core/chatter/SolidChatterAuditMessage.js.map +1 -1
  99. package/dist/components/core/chatter/SolidChatterAuditMessage.tsx +2 -2
  100. package/dist/components/core/chatter/SolidChatterHeader.d.ts.map +1 -1
  101. package/dist/components/core/chatter/SolidChatterHeader.js +2 -2
  102. package/dist/components/core/chatter/SolidChatterHeader.js.map +1 -1
  103. package/dist/components/core/chatter/SolidChatterHeader.tsx +10 -6
  104. package/dist/components/core/chatter/SolidChatterMessageBox.d.ts +1 -0
  105. package/dist/components/core/chatter/SolidChatterMessageBox.d.ts.map +1 -1
  106. package/dist/components/core/chatter/SolidChatterMessageBox.js +151 -12
  107. package/dist/components/core/chatter/SolidChatterMessageBox.js.map +1 -1
  108. package/dist/components/core/chatter/SolidChatterMessageBox.tsx +256 -15
  109. package/dist/components/core/chatter/SolidMessageComposer.d.ts.map +1 -1
  110. package/dist/components/core/chatter/SolidMessageComposer.js +3 -2
  111. package/dist/components/core/chatter/SolidMessageComposer.js.map +1 -1
  112. package/dist/components/core/chatter/SolidMessageComposer.tsx +11 -9
  113. package/dist/components/core/chatter/chatter.module.css +1 -1
  114. package/dist/components/core/common/FilterComponent.d.ts.map +1 -1
  115. package/dist/components/core/common/FilterComponent.js +5 -3
  116. package/dist/components/core/common/FilterComponent.js.map +1 -1
  117. package/dist/components/core/common/FilterComponent.tsx +6 -2
  118. package/dist/components/core/common/GroupingComponent.d.ts.map +1 -1
  119. package/dist/components/core/common/GroupingComponent.js +2 -2
  120. package/dist/components/core/common/GroupingComponent.js.map +1 -1
  121. package/dist/components/core/common/GroupingComponent.tsx +2 -0
  122. package/dist/components/core/common/SolidAccountSettings/SolidChangePassword.d.ts.map +1 -1
  123. package/dist/components/core/common/SolidAccountSettings/SolidChangePassword.js +1 -10
  124. package/dist/components/core/common/SolidAccountSettings/SolidChangePassword.js.map +1 -1
  125. package/dist/components/core/common/SolidAccountSettings/SolidChangePassword.tsx +1 -8
  126. package/dist/components/core/common/SolidAccountSettings/SolidNotifications.d.ts.map +1 -1
  127. package/dist/components/core/common/SolidAccountSettings/SolidNotifications.js +6 -11
  128. package/dist/components/core/common/SolidAccountSettings/SolidNotifications.js.map +1 -1
  129. package/dist/components/core/common/SolidAccountSettings/SolidNotifications.tsx +5 -31
  130. package/dist/components/core/common/SolidCreateButton.d.ts.map +1 -1
  131. package/dist/components/core/common/SolidCreateButton.js +16 -1
  132. package/dist/components/core/common/SolidCreateButton.js.map +1 -1
  133. package/dist/components/core/common/SolidCreateButton.tsx +18 -1
  134. package/dist/components/core/common/SolidGenericImport/SolidImport.module.css +61 -1
  135. package/dist/components/core/common/SolidGenericImport/SolidImportDropzone.d.ts.map +1 -1
  136. package/dist/components/core/common/SolidGenericImport/SolidImportDropzone.js +3 -1
  137. package/dist/components/core/common/SolidGenericImport/SolidImportDropzone.js.map +1 -1
  138. package/dist/components/core/common/SolidGenericImport/SolidImportDropzone.tsx +4 -2
  139. package/dist/components/core/common/SolidGenericImport/SolidImportInstructions.d.ts.map +1 -1
  140. package/dist/components/core/common/SolidGenericImport/SolidImportInstructions.js +19 -1
  141. package/dist/components/core/common/SolidGenericImport/SolidImportInstructions.js.map +1 -1
  142. package/dist/components/core/common/SolidGenericImport/SolidImportInstructions.tsx +16 -3
  143. package/dist/components/core/common/SolidGenericImport/SolidImportTransaction.d.ts.map +1 -1
  144. package/dist/components/core/common/SolidGenericImport/SolidImportTransaction.js +168 -26
  145. package/dist/components/core/common/SolidGenericImport/SolidImportTransaction.js.map +1 -1
  146. package/dist/components/core/common/SolidGenericImport/SolidImportTransaction.tsx +174 -10
  147. package/dist/components/core/common/SolidGlobalSearchElement.d.ts.map +1 -1
  148. package/dist/components/core/common/SolidGlobalSearchElement.js +180 -90
  149. package/dist/components/core/common/SolidGlobalSearchElement.js.map +1 -1
  150. package/dist/components/core/common/SolidGlobalSearchElement.tsx +167 -49
  151. package/dist/components/core/common/SolidLayoutViews.js +2 -2
  152. package/dist/components/core/common/SolidLayoutViews.js.map +1 -1
  153. package/dist/components/core/common/SolidLayoutViews.tsx +4 -4
  154. package/dist/components/core/common/SolidListViewOptions.js +1 -1
  155. package/dist/components/core/common/SolidListViewOptions.js.map +1 -1
  156. package/dist/components/core/common/SolidListViewOptions.tsx +1 -1
  157. package/dist/components/core/common/SolidPasswordHelperText.js +2 -2
  158. package/dist/components/core/common/SolidPasswordHelperText.js.map +1 -1
  159. package/dist/components/core/common/SolidPasswordHelperText.tsx +4 -4
  160. package/dist/components/core/common/SolidSaveCustomFilterForm.d.ts.map +1 -1
  161. package/dist/components/core/common/SolidSaveCustomFilterForm.js +1 -1
  162. package/dist/components/core/common/SolidSaveCustomFilterForm.js.map +1 -1
  163. package/dist/components/core/common/SolidSaveCustomFilterForm.tsx +0 -1
  164. package/dist/components/core/common/SolidSearchBox.js +1 -1
  165. package/dist/components/core/common/SolidSearchBox.js.map +1 -1
  166. package/dist/components/core/common/SolidSearchBox.tsx +1 -1
  167. package/dist/components/core/common/SolidXAiIframe.js +1 -1
  168. package/dist/components/core/common/SolidXAiIframe.js.map +1 -1
  169. package/dist/components/core/common/SolidXAiIframe.tsx +1 -1
  170. package/dist/components/core/dashboard/mappers/echartsOptionMapper.d.ts +4 -0
  171. package/dist/components/core/dashboard/mappers/echartsOptionMapper.d.ts.map +1 -0
  172. package/dist/components/core/dashboard/mappers/echartsOptionMapper.js +79 -0
  173. package/dist/components/core/dashboard/mappers/echartsOptionMapper.js.map +1 -0
  174. package/dist/components/core/dashboard/mappers/echartsOptionMapper.ts +81 -0
  175. package/dist/components/core/dashboard/widgets/DefaultDashboardBarChartWidget.d.ts +3 -0
  176. package/dist/components/core/dashboard/widgets/DefaultDashboardBarChartWidget.d.ts.map +1 -0
  177. package/dist/components/core/dashboard/widgets/DefaultDashboardBarChartWidget.js +17 -0
  178. package/dist/components/core/dashboard/widgets/DefaultDashboardBarChartWidget.js.map +1 -0
  179. package/dist/components/core/dashboard/widgets/DefaultDashboardBarChartWidget.tsx +6 -0
  180. package/dist/components/core/dashboard/widgets/DefaultDashboardChartWidget.d.ts +3 -0
  181. package/dist/components/core/dashboard/widgets/DefaultDashboardChartWidget.d.ts.map +1 -0
  182. package/dist/components/core/dashboard/widgets/DefaultDashboardChartWidget.js +41 -0
  183. package/dist/components/core/dashboard/widgets/DefaultDashboardChartWidget.js.map +1 -0
  184. package/dist/components/core/dashboard/widgets/DefaultDashboardChartWidget.tsx +56 -0
  185. package/dist/components/core/dashboard/widgets/DefaultDashboardKpiWidget.d.ts +3 -0
  186. package/dist/components/core/dashboard/widgets/DefaultDashboardKpiWidget.d.ts.map +1 -0
  187. package/dist/components/core/dashboard/widgets/DefaultDashboardKpiWidget.js +14 -0
  188. package/dist/components/core/dashboard/widgets/DefaultDashboardKpiWidget.js.map +1 -0
  189. package/dist/components/core/dashboard/widgets/DefaultDashboardKpiWidget.tsx +19 -0
  190. package/dist/components/core/dashboard/widgets/DefaultDashboardLineChartWidget.d.ts +3 -0
  191. package/dist/components/core/dashboard/widgets/DefaultDashboardLineChartWidget.d.ts.map +1 -0
  192. package/dist/components/core/dashboard/widgets/DefaultDashboardLineChartWidget.js +17 -0
  193. package/dist/components/core/dashboard/widgets/DefaultDashboardLineChartWidget.js.map +1 -0
  194. package/dist/components/core/dashboard/widgets/DefaultDashboardLineChartWidget.tsx +6 -0
  195. package/dist/components/core/dashboard/widgets/DefaultDashboardPieChartWidget.d.ts +3 -0
  196. package/dist/components/core/dashboard/widgets/DefaultDashboardPieChartWidget.d.ts.map +1 -0
  197. package/dist/components/core/dashboard/widgets/DefaultDashboardPieChartWidget.js +17 -0
  198. package/dist/components/core/dashboard/widgets/DefaultDashboardPieChartWidget.js.map +1 -0
  199. package/dist/components/core/dashboard/widgets/DefaultDashboardPieChartWidget.tsx +6 -0
  200. package/dist/components/core/dashboard/widgets/DefaultDashboardTableWidget.d.ts +3 -0
  201. package/dist/components/core/dashboard/widgets/DefaultDashboardTableWidget.d.ts.map +1 -0
  202. package/dist/components/core/dashboard/widgets/DefaultDashboardTableWidget.js +12 -0
  203. package/dist/components/core/dashboard/widgets/DefaultDashboardTableWidget.js.map +1 -0
  204. package/dist/components/core/dashboard/widgets/DefaultDashboardTableWidget.tsx +39 -0
  205. package/dist/components/core/dashboard/widgets/DefaultDashboardUnknownWidget.d.ts +3 -0
  206. package/dist/components/core/dashboard/widgets/DefaultDashboardUnknownWidget.d.ts.map +1 -0
  207. package/dist/components/core/dashboard/widgets/DefaultDashboardUnknownWidget.js +7 -0
  208. package/dist/components/core/dashboard/widgets/DefaultDashboardUnknownWidget.js.map +1 -0
  209. package/dist/components/core/dashboard/widgets/DefaultDashboardUnknownWidget.tsx +9 -0
  210. package/dist/components/core/dashboard/widgets/QueueSlaHeatmapWidget.d.ts +3 -0
  211. package/dist/components/core/dashboard/widgets/QueueSlaHeatmapWidget.d.ts.map +1 -0
  212. package/dist/components/core/dashboard/widgets/QueueSlaHeatmapWidget.js +203 -0
  213. package/dist/components/core/dashboard/widgets/QueueSlaHeatmapWidget.js.map +1 -0
  214. package/dist/components/core/dashboard/widgets/QueueSlaHeatmapWidget.tsx +251 -0
  215. package/dist/components/core/extension/solid-core/listOfValues/form/SolidLovTypeChangeFormEditWidget.js +1 -1
  216. package/dist/components/core/extension/solid-core/listOfValues/form/SolidLovTypeChangeFormEditWidget.js.map +1 -1
  217. package/dist/components/core/extension/solid-core/listOfValues/form/SolidLovTypeChangeFormEditWidget.tsx +2 -2
  218. package/dist/components/core/extension/solid-core/metadata/MetadataExplorerFormWidget.d.ts +16 -0
  219. package/dist/components/core/extension/solid-core/metadata/MetadataExplorerFormWidget.d.ts.map +1 -0
  220. package/dist/components/core/extension/solid-core/metadata/MetadataExplorerFormWidget.js +31 -0
  221. package/dist/components/core/extension/solid-core/metadata/MetadataExplorerFormWidget.js.map +1 -0
  222. package/dist/components/core/extension/solid-core/metadata/MetadataExplorerFormWidget.tsx +43 -0
  223. package/dist/components/core/extension/solid-core/moduleMetadata/list/ClearModulePackageRuntimeHeaderAction.d.ts +3 -0
  224. package/dist/components/core/extension/solid-core/moduleMetadata/list/ClearModulePackageRuntimeHeaderAction.d.ts.map +1 -0
  225. package/dist/components/core/extension/solid-core/moduleMetadata/list/ClearModulePackageRuntimeHeaderAction.js +141 -0
  226. package/dist/components/core/extension/solid-core/moduleMetadata/list/ClearModulePackageRuntimeHeaderAction.js.map +1 -0
  227. package/dist/components/core/extension/solid-core/moduleMetadata/list/ClearModulePackageRuntimeHeaderAction.tsx +205 -0
  228. package/dist/components/core/extension/solid-core/moduleMetadata/list/ExportModulePackageRowAction.d.ts +4 -0
  229. package/dist/components/core/extension/solid-core/moduleMetadata/list/ExportModulePackageRowAction.d.ts.map +1 -0
  230. package/dist/components/core/extension/solid-core/moduleMetadata/list/ExportModulePackageRowAction.js +112 -0
  231. package/dist/components/core/extension/solid-core/moduleMetadata/list/ExportModulePackageRowAction.js.map +1 -0
  232. package/dist/components/core/extension/solid-core/moduleMetadata/list/ExportModulePackageRowAction.tsx +146 -0
  233. package/dist/components/core/extension/solid-core/moduleMetadata/list/ModuleImportListHeaderAction.d.ts +11 -0
  234. package/dist/components/core/extension/solid-core/moduleMetadata/list/ModuleImportListHeaderAction.d.ts.map +1 -0
  235. package/dist/components/core/extension/solid-core/moduleMetadata/list/ModuleImportListHeaderAction.js +22 -0
  236. package/dist/components/core/extension/solid-core/moduleMetadata/list/ModuleImportListHeaderAction.js.map +1 -0
  237. package/dist/components/core/extension/solid-core/moduleMetadata/list/ModuleImportListHeaderAction.tsx +36 -0
  238. package/dist/components/core/extension/solid-core/moduleMetadata/list/moduleMetadataListOnLoad.d.ts +3 -0
  239. package/dist/components/core/extension/solid-core/moduleMetadata/list/moduleMetadataListOnLoad.d.ts.map +1 -0
  240. package/dist/components/core/extension/solid-core/moduleMetadata/list/moduleMetadataListOnLoad.js +133 -0
  241. package/dist/components/core/extension/solid-core/moduleMetadata/list/moduleMetadataListOnLoad.js.map +1 -0
  242. package/dist/components/core/extension/solid-core/moduleMetadata/list/moduleMetadataListOnLoad.ts +76 -0
  243. package/dist/components/core/extension/solid-core/roleMetadata/RolePermissionsManyToManyFieldWidget.js +2 -2
  244. package/dist/components/core/extension/solid-core/roleMetadata/RolePermissionsManyToManyFieldWidget.js.map +1 -1
  245. package/dist/components/core/extension/solid-core/roleMetadata/RolePermissionsManyToManyFieldWidget.tsx +5 -5
  246. package/dist/components/core/field/FieldListViewData.js +2 -2
  247. package/dist/components/core/field/FieldListViewData.js.map +1 -1
  248. package/dist/components/core/field/FieldListViewData.tsx +5 -5
  249. package/dist/components/core/filter/fields/SolidBooleanField.d.ts.map +1 -1
  250. package/dist/components/core/filter/fields/SolidBooleanField.js +2 -2
  251. package/dist/components/core/filter/fields/SolidBooleanField.js.map +1 -1
  252. package/dist/components/core/filter/fields/SolidBooleanField.tsx +5 -13
  253. package/dist/components/core/filter/fields/SolidDateField.d.ts.map +1 -1
  254. package/dist/components/core/filter/fields/SolidDateField.js +2 -2
  255. package/dist/components/core/filter/fields/SolidDateField.js.map +1 -1
  256. package/dist/components/core/filter/fields/SolidDateField.tsx +4 -3
  257. package/dist/components/core/filter/fields/SolidDatetimeField.d.ts.map +1 -1
  258. package/dist/components/core/filter/fields/SolidDatetimeField.js +2 -2
  259. package/dist/components/core/filter/fields/SolidDatetimeField.js.map +1 -1
  260. package/dist/components/core/filter/fields/SolidDatetimeField.tsx +5 -4
  261. package/dist/components/core/filter/fields/SolidExternalIdField.d.ts.map +1 -1
  262. package/dist/components/core/filter/fields/SolidExternalIdField.js +2 -2
  263. package/dist/components/core/filter/fields/SolidExternalIdField.js.map +1 -1
  264. package/dist/components/core/filter/fields/SolidExternalIdField.tsx +4 -3
  265. package/dist/components/core/filter/fields/SolidIdField.d.ts.map +1 -1
  266. package/dist/components/core/filter/fields/SolidIdField.js +2 -2
  267. package/dist/components/core/filter/fields/SolidIdField.js.map +1 -1
  268. package/dist/components/core/filter/fields/SolidIdField.tsx +3 -2
  269. package/dist/components/core/filter/fields/SolidIntField.d.ts.map +1 -1
  270. package/dist/components/core/filter/fields/SolidIntField.js +2 -2
  271. package/dist/components/core/filter/fields/SolidIntField.js.map +1 -1
  272. package/dist/components/core/filter/fields/SolidIntField.tsx +4 -3
  273. package/dist/components/core/filter/fields/SolidMediaMultipleField.d.ts.map +1 -1
  274. package/dist/components/core/filter/fields/SolidMediaMultipleField.js +2 -2
  275. package/dist/components/core/filter/fields/SolidMediaMultipleField.js.map +1 -1
  276. package/dist/components/core/filter/fields/SolidMediaMultipleField.tsx +4 -3
  277. package/dist/components/core/filter/fields/SolidMediaSingleField.d.ts.map +1 -1
  278. package/dist/components/core/filter/fields/SolidMediaSingleField.js +2 -2
  279. package/dist/components/core/filter/fields/SolidMediaSingleField.js.map +1 -1
  280. package/dist/components/core/filter/fields/SolidMediaSingleField.tsx +4 -3
  281. package/dist/components/core/filter/fields/SolidSelectionDynamicField.d.ts.map +1 -1
  282. package/dist/components/core/filter/fields/SolidSelectionDynamicField.js +2 -2
  283. package/dist/components/core/filter/fields/SolidSelectionDynamicField.js.map +1 -1
  284. package/dist/components/core/filter/fields/SolidSelectionDynamicField.tsx +5 -4
  285. package/dist/components/core/filter/fields/SolidSelectionStaticField.d.ts.map +1 -1
  286. package/dist/components/core/filter/fields/SolidSelectionStaticField.js +2 -2
  287. package/dist/components/core/filter/fields/SolidSelectionStaticField.js.map +1 -1
  288. package/dist/components/core/filter/fields/SolidSelectionStaticField.tsx +5 -4
  289. package/dist/components/core/filter/fields/SolidShortTextField.d.ts.map +1 -1
  290. package/dist/components/core/filter/fields/SolidShortTextField.js +2 -2
  291. package/dist/components/core/filter/fields/SolidShortTextField.js.map +1 -1
  292. package/dist/components/core/filter/fields/SolidShortTextField.tsx +4 -3
  293. package/dist/components/core/filter/fields/SolidTimeField.d.ts.map +1 -1
  294. package/dist/components/core/filter/fields/SolidTimeField.js +2 -2
  295. package/dist/components/core/filter/fields/SolidTimeField.js.map +1 -1
  296. package/dist/components/core/filter/fields/SolidTimeField.tsx +5 -4
  297. package/dist/components/core/filter/fields/SolidUuidField.d.ts.map +1 -1
  298. package/dist/components/core/filter/fields/SolidUuidField.js +2 -2
  299. package/dist/components/core/filter/fields/SolidUuidField.js.map +1 -1
  300. package/dist/components/core/filter/fields/SolidUuidField.tsx +5 -4
  301. package/dist/components/core/filter/fields/relations/SolidRelationManyToManyField.d.ts.map +1 -1
  302. package/dist/components/core/filter/fields/relations/SolidRelationManyToManyField.js +2 -2
  303. package/dist/components/core/filter/fields/relations/SolidRelationManyToManyField.js.map +1 -1
  304. package/dist/components/core/filter/fields/relations/SolidRelationManyToManyField.tsx +5 -4
  305. package/dist/components/core/filter/fields/relations/SolidRelationManyToOneField.d.ts.map +1 -1
  306. package/dist/components/core/filter/fields/relations/SolidRelationManyToOneField.js +2 -2
  307. package/dist/components/core/filter/fields/relations/SolidRelationManyToOneField.js.map +1 -1
  308. package/dist/components/core/filter/fields/relations/SolidRelationManyToOneField.tsx +5 -4
  309. package/dist/components/core/filter/fields/relations/SolidRelationOneToManyField.d.ts.map +1 -1
  310. package/dist/components/core/filter/fields/relations/SolidRelationOneToManyField.js +2 -2
  311. package/dist/components/core/filter/fields/relations/SolidRelationOneToManyField.js.map +1 -1
  312. package/dist/components/core/filter/fields/relations/SolidRelationOneToManyField.tsx +5 -4
  313. package/dist/components/core/form/SolidFormActionHeader.d.ts.map +1 -1
  314. package/dist/components/core/form/SolidFormActionHeader.js +9 -8
  315. package/dist/components/core/form/SolidFormActionHeader.js.map +1 -1
  316. package/dist/components/core/form/SolidFormActionHeader.tsx +15 -14
  317. package/dist/components/core/form/SolidFormFieldRender.js +1 -1
  318. package/dist/components/core/form/SolidFormFieldRender.js.map +1 -1
  319. package/dist/components/core/form/SolidFormFieldRender.tsx +1 -1
  320. package/dist/components/core/form/SolidFormFooter.d.ts.map +1 -1
  321. package/dist/components/core/form/SolidFormFooter.js +25 -11
  322. package/dist/components/core/form/SolidFormFooter.js.map +1 -1
  323. package/dist/components/core/form/SolidFormFooter.tsx +29 -12
  324. package/dist/components/core/form/SolidFormView.d.ts.map +1 -1
  325. package/dist/components/core/form/SolidFormView.js +210 -70
  326. package/dist/components/core/form/SolidFormView.js.map +1 -1
  327. package/dist/components/core/form/SolidFormView.tsx +199 -46
  328. package/dist/components/core/form/SolidFormViewContextMenuHeaderButton.d.ts.map +1 -1
  329. package/dist/components/core/form/SolidFormViewContextMenuHeaderButton.js +16 -3
  330. package/dist/components/core/form/SolidFormViewContextMenuHeaderButton.js.map +1 -1
  331. package/dist/components/core/form/SolidFormViewContextMenuHeaderButton.tsx +25 -16
  332. package/dist/components/core/form/SolidFormViewNormalHeaderButton.d.ts.map +1 -1
  333. package/dist/components/core/form/SolidFormViewNormalHeaderButton.js +19 -5
  334. package/dist/components/core/form/SolidFormViewNormalHeaderButton.js.map +1 -1
  335. package/dist/components/core/form/SolidFormViewNormalHeaderButton.tsx +25 -9
  336. package/dist/components/core/form/SolidFormViewShimmerLoading.js +1 -1
  337. package/dist/components/core/form/SolidFormViewShimmerLoading.js.map +1 -1
  338. package/dist/components/core/form/SolidFormViewShimmerLoading.tsx +46 -46
  339. package/dist/components/core/form/field-quality-check-fixes.md +201 -0
  340. package/dist/components/core/form/fields/SolidBooleanField.d.ts.map +1 -1
  341. package/dist/components/core/form/fields/SolidBooleanField.js +13 -4
  342. package/dist/components/core/form/fields/SolidBooleanField.js.map +1 -1
  343. package/dist/components/core/form/fields/SolidBooleanField.tsx +16 -4
  344. package/dist/components/core/form/fields/SolidComputedField.js +1 -1
  345. package/dist/components/core/form/fields/SolidComputedField.js.map +1 -1
  346. package/dist/components/core/form/fields/SolidComputedField.tsx +1 -1
  347. package/dist/components/core/form/fields/SolidDateField.js +2 -2
  348. package/dist/components/core/form/fields/SolidDateField.js.map +1 -1
  349. package/dist/components/core/form/fields/SolidDateField.tsx +2 -2
  350. package/dist/components/core/form/fields/SolidDateTimeField.js +2 -2
  351. package/dist/components/core/form/fields/SolidDateTimeField.js.map +1 -1
  352. package/dist/components/core/form/fields/SolidDateTimeField.tsx +2 -2
  353. package/dist/components/core/form/fields/SolidDecimalField.d.ts.map +1 -1
  354. package/dist/components/core/form/fields/SolidDecimalField.js +8 -2
  355. package/dist/components/core/form/fields/SolidDecimalField.js.map +1 -1
  356. package/dist/components/core/form/fields/SolidDecimalField.tsx +11 -2
  357. package/dist/components/core/form/fields/SolidEmailField.js +1 -1
  358. package/dist/components/core/form/fields/SolidEmailField.js.map +1 -1
  359. package/dist/components/core/form/fields/SolidEmailField.tsx +1 -1
  360. package/dist/components/core/form/fields/SolidIntegerField.d.ts.map +1 -1
  361. package/dist/components/core/form/fields/SolidIntegerField.js +17 -5
  362. package/dist/components/core/form/fields/SolidIntegerField.js.map +1 -1
  363. package/dist/components/core/form/fields/SolidIntegerField.tsx +23 -5
  364. package/dist/components/core/form/fields/SolidJsonField.d.ts.map +1 -1
  365. package/dist/components/core/form/fields/SolidJsonField.js +12 -4
  366. package/dist/components/core/form/fields/SolidJsonField.js.map +1 -1
  367. package/dist/components/core/form/fields/SolidJsonField.tsx +15 -4
  368. package/dist/components/core/form/fields/SolidLongTextField.d.ts +0 -1
  369. package/dist/components/core/form/fields/SolidLongTextField.d.ts.map +1 -1
  370. package/dist/components/core/form/fields/SolidLongTextField.js +22 -54
  371. package/dist/components/core/form/fields/SolidLongTextField.js.map +1 -1
  372. package/dist/components/core/form/fields/SolidLongTextField.tsx +34 -100
  373. package/dist/components/core/form/fields/SolidMediaMultipleField.d.ts.map +1 -1
  374. package/dist/components/core/form/fields/SolidMediaMultipleField.js +26 -13
  375. package/dist/components/core/form/fields/SolidMediaMultipleField.js.map +1 -1
  376. package/dist/components/core/form/fields/SolidMediaMultipleField.tsx +48 -32
  377. package/dist/components/core/form/fields/SolidMediaSingleField.d.ts.map +1 -1
  378. package/dist/components/core/form/fields/SolidMediaSingleField.js +26 -8
  379. package/dist/components/core/form/fields/SolidMediaSingleField.js.map +1 -1
  380. package/dist/components/core/form/fields/SolidMediaSingleField.tsx +39 -12
  381. package/dist/components/core/form/fields/SolidPasswordField.d.ts.map +1 -1
  382. package/dist/components/core/form/fields/SolidPasswordField.js +14 -7
  383. package/dist/components/core/form/fields/SolidPasswordField.js.map +1 -1
  384. package/dist/components/core/form/fields/SolidPasswordField.tsx +26 -7
  385. package/dist/components/core/form/fields/SolidRichTextField.d.ts.map +1 -1
  386. package/dist/components/core/form/fields/SolidRichTextField.js +11 -3
  387. package/dist/components/core/form/fields/SolidRichTextField.js.map +1 -1
  388. package/dist/components/core/form/fields/SolidRichTextField.tsx +14 -3
  389. package/dist/components/core/form/fields/SolidSelectionDynamicField.js +2 -2
  390. package/dist/components/core/form/fields/SolidSelectionDynamicField.js.map +1 -1
  391. package/dist/components/core/form/fields/SolidSelectionDynamicField.tsx +2 -2
  392. package/dist/components/core/form/fields/SolidSelectionStaticField.js +1 -1
  393. package/dist/components/core/form/fields/SolidSelectionStaticField.js.map +1 -1
  394. package/dist/components/core/form/fields/SolidSelectionStaticField.tsx +1 -1
  395. package/dist/components/core/form/fields/SolidShortTextField.js +1 -1
  396. package/dist/components/core/form/fields/SolidShortTextField.js.map +1 -1
  397. package/dist/components/core/form/fields/SolidShortTextField.tsx +1 -1
  398. package/dist/components/core/form/fields/SolidTimeField.js +2 -2
  399. package/dist/components/core/form/fields/SolidTimeField.js.map +1 -1
  400. package/dist/components/core/form/fields/SolidTimeField.tsx +2 -2
  401. package/dist/components/core/form/fields/relations/RolesGroupedByModuleWidget.d.ts +8 -0
  402. package/dist/components/core/form/fields/relations/RolesGroupedByModuleWidget.d.ts.map +1 -0
  403. package/dist/components/core/form/fields/relations/RolesGroupedByModuleWidget.js +123 -0
  404. package/dist/components/core/form/fields/relations/RolesGroupedByModuleWidget.js.map +1 -0
  405. package/dist/components/core/form/fields/relations/RolesGroupedByModuleWidget.tsx +140 -0
  406. package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.d.ts.map +1 -1
  407. package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.js +20 -18
  408. package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.js.map +1 -1
  409. package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.tsx +47 -37
  410. package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.d.ts.map +1 -1
  411. package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.js +20 -20
  412. package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.js.map +1 -1
  413. package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.tsx +25 -15
  414. package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.d.ts.map +1 -1
  415. package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.js +19 -17
  416. package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.js.map +1 -1
  417. package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.tsx +28 -27
  418. package/dist/components/core/form/fields/relations/widgets/helpers/InlineRelationEntityDialog.js +1 -1
  419. package/dist/components/core/form/fields/relations/widgets/helpers/InlineRelationEntityDialog.js.map +1 -1
  420. package/dist/components/core/form/fields/relations/widgets/helpers/InlineRelationEntityDialog.tsx +1 -1
  421. package/dist/components/core/form/fields/widgets/SolidAiInteractionMessageFieldFormWidget.js +1 -1
  422. package/dist/components/core/form/fields/widgets/SolidAiInteractionMessageFieldFormWidget.js.map +1 -1
  423. package/dist/components/core/form/fields/widgets/SolidAiInteractionMessageFieldFormWidget.tsx +1 -1
  424. package/dist/components/core/form/fields/widgets/SolidAiInteractionMetadataFieldFormWidget.js +1 -1
  425. package/dist/components/core/form/fields/widgets/SolidAiInteractionMetadataFieldFormWidget.js.map +1 -1
  426. package/dist/components/core/form/fields/widgets/SolidAiInteractionMetadataFieldFormWidget.tsx +1 -1
  427. package/dist/components/core/form/fields/widgets/SolidIconEditWidget.d.ts.map +1 -1
  428. package/dist/components/core/form/fields/widgets/SolidIconEditWidget.js +19 -8
  429. package/dist/components/core/form/fields/widgets/SolidIconEditWidget.js.map +1 -1
  430. package/dist/components/core/form/fields/widgets/SolidIconEditWidget.tsx +37 -20
  431. package/dist/components/core/form/fields/widgets/SolidRelationFieldAvatarFormWidget.js +1 -1
  432. package/dist/components/core/form/fields/widgets/SolidRelationFieldAvatarFormWidget.js.map +1 -1
  433. package/dist/components/core/form/fields/widgets/SolidRelationFieldAvatarFormWidget.tsx +1 -1
  434. package/dist/components/core/form/fields/widgets/SolidShortTextFieldAvatarWidget.js +1 -1
  435. package/dist/components/core/form/fields/widgets/SolidShortTextFieldAvatarWidget.js.map +1 -1
  436. package/dist/components/core/form/fields/widgets/SolidShortTextFieldAvatarWidget.tsx +1 -1
  437. package/dist/components/core/kanban/KanbanBoard.d.ts +1 -1
  438. package/dist/components/core/kanban/KanbanBoard.d.ts.map +1 -1
  439. package/dist/components/core/kanban/KanbanBoard.js +2 -2
  440. package/dist/components/core/kanban/KanbanBoard.js.map +1 -1
  441. package/dist/components/core/kanban/KanbanBoard.tsx +2 -1
  442. package/dist/components/core/kanban/KanbanCard.d.ts +1 -0
  443. package/dist/components/core/kanban/KanbanCard.d.ts.map +1 -1
  444. package/dist/components/core/kanban/KanbanCard.js +15 -4
  445. package/dist/components/core/kanban/KanbanCard.js.map +1 -1
  446. package/dist/components/core/kanban/KanbanCard.tsx +27 -4
  447. package/dist/components/core/kanban/KanbanColumn.d.ts +2 -1
  448. package/dist/components/core/kanban/KanbanColumn.d.ts.map +1 -1
  449. package/dist/components/core/kanban/KanbanColumn.js +4 -4
  450. package/dist/components/core/kanban/KanbanColumn.js.map +1 -1
  451. package/dist/components/core/kanban/KanbanColumn.tsx +5 -4
  452. package/dist/components/core/kanban/SolidKanbanView.d.ts.map +1 -1
  453. package/dist/components/core/kanban/SolidKanbanView.js +44 -39
  454. package/dist/components/core/kanban/SolidKanbanView.js.map +1 -1
  455. package/dist/components/core/kanban/SolidKanbanView.tsx +22 -10
  456. package/dist/components/core/kanban/SolidKanbanViewConfigure.d.ts.map +1 -1
  457. package/dist/components/core/kanban/SolidKanbanViewConfigure.js +1 -1
  458. package/dist/components/core/kanban/SolidKanbanViewConfigure.js.map +1 -1
  459. package/dist/components/core/kanban/SolidKanbanViewConfigure.tsx +5 -1
  460. package/dist/components/core/list/ListViewRowActionPopup.js +1 -1
  461. package/dist/components/core/list/ListViewRowActionPopup.js.map +1 -1
  462. package/dist/components/core/list/ListViewRowActionPopup.tsx +1 -2
  463. package/dist/components/core/list/SolidColumnSelector/SolidListColumnSelector.js +1 -1
  464. package/dist/components/core/list/SolidColumnSelector/SolidListColumnSelector.js.map +1 -1
  465. package/dist/components/core/list/SolidColumnSelector/SolidListColumnSelector.tsx +3 -3
  466. package/dist/components/core/list/SolidDataTable.d.ts.map +1 -1
  467. package/dist/components/core/list/SolidDataTable.js +3 -2
  468. package/dist/components/core/list/SolidDataTable.js.map +1 -1
  469. package/dist/components/core/list/SolidDataTable.tsx +9 -10
  470. package/dist/components/core/list/SolidEmptyListViewPlaceholder.d.ts.map +1 -1
  471. package/dist/components/core/list/SolidEmptyListViewPlaceholder.js +3 -0
  472. package/dist/components/core/list/SolidEmptyListViewPlaceholder.js.map +1 -1
  473. package/dist/components/core/list/SolidEmptyListViewPlaceholder.tsx +2 -0
  474. package/dist/components/core/list/SolidListView.d.ts.map +1 -1
  475. package/dist/components/core/list/SolidListView.js +189 -102
  476. package/dist/components/core/list/SolidListView.js.map +1 -1
  477. package/dist/components/core/list/SolidListView.tsx +137 -43
  478. package/dist/components/core/list/SolidListViewColumn.d.ts +3 -1
  479. package/dist/components/core/list/SolidListViewColumn.d.ts.map +1 -1
  480. package/dist/components/core/list/SolidListViewColumn.js +27 -2
  481. package/dist/components/core/list/SolidListViewColumn.js.map +1 -1
  482. package/dist/components/core/list/SolidListViewColumn.tsx +16 -3
  483. package/dist/components/core/list/SolidListViewConfigure.d.ts.map +1 -1
  484. package/dist/components/core/list/SolidListViewConfigure.js +11 -10
  485. package/dist/components/core/list/SolidListViewConfigure.js.map +1 -1
  486. package/dist/components/core/list/SolidListViewConfigure.tsx +9 -3
  487. package/dist/components/core/list/SolidListViewHeaderButton.d.ts.map +1 -1
  488. package/dist/components/core/list/SolidListViewHeaderButton.js +13 -3
  489. package/dist/components/core/list/SolidListViewHeaderButton.js.map +1 -1
  490. package/dist/components/core/list/SolidListViewHeaderButton.tsx +16 -7
  491. package/dist/components/core/list/SolidListViewHeaderContextMenuButton.d.ts.map +1 -1
  492. package/dist/components/core/list/SolidListViewHeaderContextMenuButton.js +19 -7
  493. package/dist/components/core/list/SolidListViewHeaderContextMenuButton.js.map +1 -1
  494. package/dist/components/core/list/SolidListViewHeaderContextMenuButton.tsx +19 -6
  495. package/dist/components/core/list/SolidListViewRowActionMenuItem.d.ts.map +1 -1
  496. package/dist/components/core/list/SolidListViewRowActionMenuItem.js +14 -5
  497. package/dist/components/core/list/SolidListViewRowActionMenuItem.js.map +1 -1
  498. package/dist/components/core/list/SolidListViewRowActionMenuItem.tsx +17 -6
  499. package/dist/components/core/list/SolidListViewRowActionsMenu.d.ts.map +1 -1
  500. package/dist/components/core/list/SolidListViewRowActionsMenu.js +7 -1
  501. package/dist/components/core/list/SolidListViewRowActionsMenu.js.map +1 -1
  502. package/dist/components/core/list/SolidListViewRowActionsMenu.tsx +5 -1
  503. package/dist/components/core/list/SolidListingHeader.js +1 -1
  504. package/dist/components/core/list/SolidListingHeader.js.map +1 -1
  505. package/dist/components/core/list/SolidListingHeader.tsx +4 -4
  506. package/dist/components/core/list/SolidTableRowCell.js +1 -1
  507. package/dist/components/core/list/SolidTableRowCell.js.map +1 -1
  508. package/dist/components/core/list/SolidTableRowCell.tsx +1 -1
  509. package/dist/components/core/list/columns/SolidBooleanColumn.d.ts.map +1 -1
  510. package/dist/components/core/list/columns/SolidBooleanColumn.js +4 -6
  511. package/dist/components/core/list/columns/SolidBooleanColumn.js.map +1 -1
  512. package/dist/components/core/list/columns/SolidBooleanColumn.tsx +1 -3
  513. package/dist/components/core/list/columns/SolidMediaMultipleColumn.d.ts.map +1 -1
  514. package/dist/components/core/list/columns/SolidMediaMultipleColumn.js +8 -7
  515. package/dist/components/core/list/columns/SolidMediaMultipleColumn.js.map +1 -1
  516. package/dist/components/core/list/columns/SolidMediaMultipleColumn.tsx +11 -10
  517. package/dist/components/core/list/columns/SolidMediaSingleColumn.d.ts.map +1 -1
  518. package/dist/components/core/list/columns/SolidMediaSingleColumn.js +6 -5
  519. package/dist/components/core/list/columns/SolidMediaSingleColumn.js.map +1 -1
  520. package/dist/components/core/list/columns/SolidMediaSingleColumn.tsx +6 -5
  521. package/dist/components/core/list/columns/SolidRelationColumn.d.ts +1 -1
  522. package/dist/components/core/list/columns/SolidRelationColumn.d.ts.map +1 -1
  523. package/dist/components/core/list/columns/SolidRelationColumn.js +2 -2
  524. package/dist/components/core/list/columns/SolidRelationColumn.js.map +1 -1
  525. package/dist/components/core/list/columns/SolidRelationColumn.tsx +2 -2
  526. package/dist/components/core/list/columns/relations/SolidRelationManyToOneColumn.d.ts +2 -2
  527. package/dist/components/core/list/columns/relations/SolidRelationManyToOneColumn.d.ts.map +1 -1
  528. package/dist/components/core/list/columns/relations/SolidRelationManyToOneColumn.js +9 -4
  529. package/dist/components/core/list/columns/relations/SolidRelationManyToOneColumn.js.map +1 -1
  530. package/dist/components/core/list/columns/relations/SolidRelationManyToOneColumn.tsx +14 -4
  531. package/dist/components/core/list/field-quality-check-fixes.md +178 -0
  532. package/dist/components/core/list/widgets/SolidManyToManyRelationAvatarListWidget.js +1 -1
  533. package/dist/components/core/list/widgets/SolidManyToManyRelationAvatarListWidget.js.map +1 -1
  534. package/dist/components/core/list/widgets/SolidManyToManyRelationAvatarListWidget.tsx +1 -1
  535. package/dist/components/core/list/widgets/SolidShortTextFieldImageRenderModeWidget.js +1 -1
  536. package/dist/components/core/list/widgets/SolidShortTextFieldImageRenderModeWidget.js.map +1 -1
  537. package/dist/components/core/list/widgets/SolidShortTextFieldImageRenderModeWidget.tsx +1 -2
  538. package/dist/components/core/list/widgets/SolidUserBlockedStatusListWidget.d.ts +3 -0
  539. package/dist/components/core/list/widgets/SolidUserBlockedStatusListWidget.d.ts.map +1 -0
  540. package/dist/components/core/list/widgets/SolidUserBlockedStatusListWidget.js +39 -0
  541. package/dist/components/core/list/widgets/SolidUserBlockedStatusListWidget.js.map +1 -0
  542. package/dist/components/core/list/widgets/SolidUserBlockedStatusListWidget.tsx +50 -0
  543. package/dist/components/core/locales/SolidLocale.js +3 -3
  544. package/dist/components/core/locales/SolidLocale.js.map +1 -1
  545. package/dist/components/core/locales/SolidLocale.tsx +7 -7
  546. package/dist/components/core/locales/solid-locale.css +5 -4
  547. package/dist/components/core/model/CreateModel.css +48 -0
  548. package/dist/components/core/model/CreateModel.d.ts +1 -0
  549. package/dist/components/core/model/CreateModel.d.ts.map +1 -1
  550. package/dist/components/core/model/CreateModel.js +80 -128
  551. package/dist/components/core/model/CreateModel.js.map +1 -1
  552. package/dist/components/core/model/CreateModel.tsx +102 -226
  553. package/dist/components/core/model/FieldMetaData.d.ts +1 -1
  554. package/dist/components/core/model/FieldMetaData.d.ts.map +1 -1
  555. package/dist/components/core/model/FieldMetaData.js +7 -23
  556. package/dist/components/core/model/FieldMetaData.js.map +1 -1
  557. package/dist/components/core/model/FieldMetaData.tsx +17 -50
  558. package/dist/components/core/model/FieldMetaDataForm.d.ts.map +1 -1
  559. package/dist/components/core/model/FieldMetaDataForm.js +198 -224
  560. package/dist/components/core/model/FieldMetaDataForm.js.map +1 -1
  561. package/dist/components/core/model/FieldMetaDataForm.tsx +75 -302
  562. package/dist/components/core/model/ModelListViewData.js +4 -4
  563. package/dist/components/core/model/ModelListViewData.js.map +1 -1
  564. package/dist/components/core/model/ModelListViewData.tsx +7 -7
  565. package/dist/components/core/model/ModelMetaData.d.ts.map +1 -1
  566. package/dist/components/core/model/ModelMetaData.js +13 -25
  567. package/dist/components/core/model/ModelMetaData.js.map +1 -1
  568. package/dist/components/core/model/ModelMetaData.tsx +18 -79
  569. package/dist/components/core/module/CreateModule.css +44 -0
  570. package/dist/components/core/module/CreateModule.d.ts +1 -0
  571. package/dist/components/core/module/CreateModule.d.ts.map +1 -1
  572. package/dist/components/core/module/CreateModule.js +40 -57
  573. package/dist/components/core/module/CreateModule.js.map +1 -1
  574. package/dist/components/core/module/CreateModule.tsx +246 -264
  575. package/dist/components/core/module/ModuleListViewData.d.ts.map +1 -1
  576. package/dist/components/core/module/ModuleListViewData.js +48 -8
  577. package/dist/components/core/module/ModuleListViewData.js.map +1 -1
  578. package/dist/components/core/module/ModuleListViewData.tsx +65 -7
  579. package/dist/components/core/module/ModuleMetadataExplorer.css +638 -0
  580. package/dist/components/core/module/ModuleMetadataExplorer.d.ts +15 -0
  581. package/dist/components/core/module/ModuleMetadataExplorer.d.ts.map +1 -0
  582. package/dist/components/core/module/ModuleMetadataExplorer.js +666 -0
  583. package/dist/components/core/module/ModuleMetadataExplorer.js.map +1 -0
  584. package/dist/components/core/module/ModuleMetadataExplorer.tsx +1000 -0
  585. package/dist/components/core/module/ModulePackageDialog.css +540 -0
  586. package/dist/components/core/module/ModulePackageDialog.d.ts +16 -0
  587. package/dist/components/core/module/ModulePackageDialog.d.ts.map +1 -0
  588. package/dist/components/core/module/ModulePackageDialog.js +625 -0
  589. package/dist/components/core/module/ModulePackageDialog.js.map +1 -0
  590. package/dist/components/core/module/ModulePackageDialog.tsx +906 -0
  591. package/dist/components/core/solid-ai/SolidAiChat.module.css +2 -2
  592. package/dist/components/core/tree/SolidTreeTable.js +1 -1
  593. package/dist/components/core/tree/SolidTreeTable.js.map +1 -1
  594. package/dist/components/core/tree/SolidTreeTable.tsx +1 -1
  595. package/dist/components/core/tree/SolidTreeView.d.ts.map +1 -1
  596. package/dist/components/core/tree/SolidTreeView.js +4 -4
  597. package/dist/components/core/tree/SolidTreeView.js.map +1 -1
  598. package/dist/components/core/tree/SolidTreeView.tsx +16 -12
  599. package/dist/components/core/users/CreateUser.css +27 -2
  600. package/dist/components/core/users/CreateUser.d.ts.map +1 -1
  601. package/dist/components/core/users/CreateUser.js +58 -32
  602. package/dist/components/core/users/CreateUser.js.map +1 -1
  603. package/dist/components/core/users/CreateUser.tsx +63 -68
  604. package/dist/components/core/users/CreateUserRole.js +2 -2
  605. package/dist/components/core/users/CreateUserRole.js.map +1 -1
  606. package/dist/components/core/users/CreateUserRole.tsx +9 -9
  607. package/dist/components/core/users/UserListView.js +4 -4
  608. package/dist/components/core/users/UserListView.js.map +1 -1
  609. package/dist/components/core/users/UserListView.tsx +6 -6
  610. package/dist/components/layout/AdminHeaderActions.d.ts +8 -0
  611. package/dist/components/layout/AdminHeaderActions.d.ts.map +1 -0
  612. package/dist/components/layout/AdminHeaderActions.js +77 -0
  613. package/dist/components/layout/AdminHeaderActions.js.map +1 -0
  614. package/dist/components/layout/AdminHeaderActions.tsx +155 -0
  615. package/dist/components/layout/AdminSidebar.js +1 -1
  616. package/dist/components/layout/AdminSidebar.js.map +1 -1
  617. package/dist/components/layout/AdminSidebar.tsx +1 -1
  618. package/dist/components/layout/AdminTopHeader.d.ts.map +1 -1
  619. package/dist/components/layout/AdminTopHeader.js +14 -5
  620. package/dist/components/layout/AdminTopHeader.js.map +1 -1
  621. package/dist/components/layout/AdminTopHeader.tsx +35 -28
  622. package/dist/components/layout/AppSidebar.d.ts.map +1 -1
  623. package/dist/components/layout/AppSidebar.js +2 -1
  624. package/dist/components/layout/AppSidebar.js.map +1 -1
  625. package/dist/components/layout/AppSidebar.tsx +2 -0
  626. package/dist/components/layout/CustomPagination.js +0 -1
  627. package/dist/components/layout/CustomPagination.js.map +1 -1
  628. package/dist/components/layout/CustomPagination.tsx +0 -1
  629. package/dist/components/layout/FilterMenu.js +1 -1
  630. package/dist/components/layout/FilterMenu.js.map +1 -1
  631. package/dist/components/layout/FilterMenu.tsx +4 -4
  632. package/dist/components/layout/Footer.js +1 -1
  633. package/dist/components/layout/Footer.js.map +1 -1
  634. package/dist/components/layout/Footer.tsx +1 -1
  635. package/dist/components/layout/GlobalSearch.js +1 -1
  636. package/dist/components/layout/GlobalSearch.js.map +1 -1
  637. package/dist/components/layout/GlobalSearch.tsx +1 -1
  638. package/dist/components/layout/ListingHeader.js +3 -3
  639. package/dist/components/layout/ListingHeader.js.map +1 -1
  640. package/dist/components/layout/ListingHeader.tsx +4 -4
  641. package/dist/components/layout/Loader.js +1 -1
  642. package/dist/components/layout/Loader.js.map +1 -1
  643. package/dist/components/layout/Loader.tsx +1 -1
  644. package/dist/components/layout/UserSidebar.js +1 -1
  645. package/dist/components/layout/UserSidebar.js.map +1 -1
  646. package/dist/components/layout/UserSidebar.tsx +1 -1
  647. package/dist/components/layout/navbar-one.js +2 -2
  648. package/dist/components/layout/navbar-one.js.map +1 -1
  649. package/dist/components/layout/navbar-one.tsx +8 -8
  650. package/dist/components/layout/navbar-two-menu.js +2 -2
  651. package/dist/components/layout/navbar-two-menu.js.map +1 -1
  652. package/dist/components/layout/navbar-two-menu.tsx +7 -7
  653. package/dist/components/layout/user-profile-menu.d.ts.map +1 -1
  654. package/dist/components/layout/user-profile-menu.js +57 -33
  655. package/dist/components/layout/user-profile-menu.js.map +1 -1
  656. package/dist/components/layout/user-profile-menu.tsx +11 -59
  657. package/dist/components/shad-cn-ui/SolidAutocomplete.d.ts +2 -1
  658. package/dist/components/shad-cn-ui/SolidAutocomplete.d.ts.map +1 -1
  659. package/dist/components/shad-cn-ui/SolidAutocomplete.js +60 -6
  660. package/dist/components/shad-cn-ui/SolidAutocomplete.js.map +1 -1
  661. package/dist/components/shad-cn-ui/SolidAutocomplete.tsx +81 -22
  662. package/dist/components/shad-cn-ui/SolidButton.d.ts.map +1 -1
  663. package/dist/components/shad-cn-ui/SolidButton.js +10 -2
  664. package/dist/components/shad-cn-ui/SolidButton.js.map +1 -1
  665. package/dist/components/shad-cn-ui/SolidButton.tsx +10 -2
  666. package/dist/components/shad-cn-ui/SolidCodeEditor.d.ts.map +1 -1
  667. package/dist/components/shad-cn-ui/SolidCodeEditor.js +3 -1
  668. package/dist/components/shad-cn-ui/SolidCodeEditor.js.map +1 -1
  669. package/dist/components/shad-cn-ui/SolidCodeEditor.tsx +3 -0
  670. package/dist/components/shad-cn-ui/SolidDatePicker.d.ts +1 -1
  671. package/dist/components/shad-cn-ui/SolidDatePicker.d.ts.map +1 -1
  672. package/dist/components/shad-cn-ui/SolidDatePicker.js +2 -2
  673. package/dist/components/shad-cn-ui/SolidDatePicker.js.map +1 -1
  674. package/dist/components/shad-cn-ui/SolidDatePicker.tsx +4 -0
  675. package/dist/components/shad-cn-ui/SolidDialog.d.ts.map +1 -1
  676. package/dist/components/shad-cn-ui/SolidDialog.js +38 -4
  677. package/dist/components/shad-cn-ui/SolidDialog.js.map +1 -1
  678. package/dist/components/shad-cn-ui/SolidDialog.tsx +47 -3
  679. package/dist/components/shad-cn-ui/SolidIcon.d.ts +2 -1
  680. package/dist/components/shad-cn-ui/SolidIcon.d.ts.map +1 -1
  681. package/dist/components/shad-cn-ui/SolidIcon.js +1 -0
  682. package/dist/components/shad-cn-ui/SolidIcon.js.map +1 -1
  683. package/dist/components/shad-cn-ui/SolidIcon.tsx +1 -0
  684. package/dist/components/shad-cn-ui/SolidPasswordInput.d.ts.map +1 -1
  685. package/dist/components/shad-cn-ui/SolidPasswordInput.js +1 -1
  686. package/dist/components/shad-cn-ui/SolidPasswordInput.js.map +1 -1
  687. package/dist/components/shad-cn-ui/SolidPasswordInput.tsx +1 -0
  688. package/dist/components/shad-cn-ui/SolidPopover.d.ts +1 -0
  689. package/dist/components/shad-cn-ui/SolidPopover.d.ts.map +1 -1
  690. package/dist/components/shad-cn-ui/SolidPopover.js +124 -5
  691. package/dist/components/shad-cn-ui/SolidPopover.js.map +1 -1
  692. package/dist/components/shad-cn-ui/SolidPopover.tsx +173 -10
  693. package/dist/components/shad-cn-ui/SolidSelect.d.ts +2 -1
  694. package/dist/components/shad-cn-ui/SolidSelect.d.ts.map +1 -1
  695. package/dist/components/shad-cn-ui/SolidSelect.js +51 -1
  696. package/dist/components/shad-cn-ui/SolidSelect.js.map +1 -1
  697. package/dist/components/shad-cn-ui/SolidSelect.tsx +95 -0
  698. package/dist/constants/error-messages.d.ts +13 -0
  699. package/dist/constants/error-messages.d.ts.map +1 -1
  700. package/dist/constants/error-messages.js +17 -0
  701. package/dist/constants/error-messages.js.map +1 -1
  702. package/dist/constants/error-messages.ts +15 -0
  703. package/dist/helpers/buttonEnvironment.d.ts +5 -0
  704. package/dist/helpers/buttonEnvironment.d.ts.map +1 -0
  705. package/dist/helpers/buttonEnvironment.js +30 -0
  706. package/dist/helpers/buttonEnvironment.js.map +1 -0
  707. package/dist/helpers/buttonEnvironment.ts +35 -0
  708. package/dist/helpers/buttonPresentation.d.ts +24 -0
  709. package/dist/helpers/buttonPresentation.d.ts.map +1 -0
  710. package/dist/helpers/buttonPresentation.js +28 -0
  711. package/dist/helpers/buttonPresentation.js.map +1 -0
  712. package/dist/helpers/buttonPresentation.ts +53 -0
  713. package/dist/helpers/fileTypeIcon.d.ts +12 -0
  714. package/dist/helpers/fileTypeIcon.d.ts.map +1 -0
  715. package/dist/helpers/fileTypeIcon.js +37 -0
  716. package/dist/helpers/fileTypeIcon.js.map +1 -0
  717. package/dist/helpers/fileTypeIcon.tsx +65 -0
  718. package/dist/helpers/registry.d.ts.map +1 -1
  719. package/dist/helpers/registry.js +28 -10
  720. package/dist/helpers/registry.js.map +1 -1
  721. package/dist/helpers/registry.ts +31 -13
  722. package/dist/helpers/waitForBackendAvailability.d.ts +7 -0
  723. package/dist/helpers/waitForBackendAvailability.d.ts.map +1 -0
  724. package/dist/helpers/waitForBackendAvailability.js +86 -0
  725. package/dist/helpers/waitForBackendAvailability.js.map +1 -0
  726. package/dist/helpers/waitForBackendAvailability.ts +37 -0
  727. package/dist/index.d.ts +10 -9
  728. package/dist/index.d.ts.map +1 -1
  729. package/dist/index.js +7 -8
  730. package/dist/index.js.map +1 -1
  731. package/dist/index.ts +34 -13
  732. package/dist/redux/api/dashboardRuntimeApi.d.ts +34 -0
  733. package/dist/redux/api/dashboardRuntimeApi.d.ts.map +1 -0
  734. package/dist/redux/api/dashboardRuntimeApi.js +79 -0
  735. package/dist/redux/api/dashboardRuntimeApi.js.map +1 -0
  736. package/dist/redux/api/dashboardRuntimeApi.ts +75 -0
  737. package/dist/redux/api/moduleApi.d.ts +26 -1
  738. package/dist/redux/api/moduleApi.d.ts.map +1 -1
  739. package/dist/redux/api/moduleApi.js +237 -1
  740. package/dist/redux/api/moduleApi.js.map +1 -1
  741. package/dist/redux/api/moduleApi.ts +181 -1
  742. package/dist/redux/api/solidChatterMessageApi.d.ts +2 -1
  743. package/dist/redux/api/solidChatterMessageApi.d.ts.map +1 -1
  744. package/dist/redux/api/solidChatterMessageApi.js +11 -1
  745. package/dist/redux/api/solidChatterMessageApi.js.map +1 -1
  746. package/dist/redux/api/solidChatterMessageApi.ts +10 -1
  747. package/dist/redux/store/defaultStoreConfig.d.ts +57 -9
  748. package/dist/redux/store/defaultStoreConfig.d.ts.map +1 -1
  749. package/dist/redux/store/defaultStoreConfig.js +2 -6
  750. package/dist/redux/store/defaultStoreConfig.js.map +1 -1
  751. package/dist/redux/store/defaultStoreConfig.ts +2 -6
  752. package/dist/redux/store/solidEntityApiPool.d.ts +1 -0
  753. package/dist/redux/store/solidEntityApiPool.d.ts.map +1 -1
  754. package/dist/redux/store/solidEntityApiPool.js +4 -0
  755. package/dist/redux/store/solidEntityApiPool.js.map +1 -1
  756. package/dist/redux/store/solidEntityApiPool.ts +4 -0
  757. package/dist/resources/globals.css +195 -20
  758. package/dist/resources/shadcn-base.css +408 -183
  759. package/dist/resources/solid-custom.css +6565 -0
  760. package/dist/resources/solid-primereact.css +14 -12
  761. package/dist/resources/solid-responsive.css +259 -51
  762. package/dist/resources/solid-tailwind-generated.css +1 -0
  763. package/dist/resources/solid-tailwind.css +3 -0
  764. package/dist/routes/AppEventListener.d.ts.map +1 -1
  765. package/dist/routes/AppEventListener.js +58 -8
  766. package/dist/routes/AppEventListener.js.map +1 -1
  767. package/dist/routes/AppEventListener.tsx +69 -8
  768. package/dist/routes/SolidRouteMetadataBoundary.d.ts +5 -0
  769. package/dist/routes/SolidRouteMetadataBoundary.d.ts.map +1 -0
  770. package/dist/routes/SolidRouteMetadataBoundary.js +72 -0
  771. package/dist/routes/SolidRouteMetadataBoundary.js.map +1 -0
  772. package/dist/routes/SolidRouteMetadataBoundary.tsx +77 -0
  773. package/dist/routes/pages/admin/core/DashboardPage.d.ts +1 -0
  774. package/dist/routes/pages/admin/core/DashboardPage.d.ts.map +1 -1
  775. package/dist/routes/pages/admin/core/DashboardPage.js +860 -5
  776. package/dist/routes/pages/admin/core/DashboardPage.js.map +1 -1
  777. package/dist/routes/pages/admin/core/DashboardPage.module.css +219 -0
  778. package/dist/routes/pages/admin/core/DashboardPage.tsx +1025 -7
  779. package/dist/routes/pages/auth/InitiateMicrosoftActiveDirectoryOauthPage.d.ts +2 -0
  780. package/dist/routes/pages/auth/InitiateMicrosoftActiveDirectoryOauthPage.d.ts.map +1 -0
  781. package/dist/routes/pages/auth/InitiateMicrosoftActiveDirectoryOauthPage.js +6 -0
  782. package/dist/routes/pages/auth/InitiateMicrosoftActiveDirectoryOauthPage.js.map +1 -0
  783. package/dist/routes/pages/auth/InitiateMicrosoftActiveDirectoryOauthPage.tsx +5 -0
  784. package/dist/routes/pages/auth/SsoPage.js +1 -1
  785. package/dist/routes/pages/auth/SsoPage.js.map +1 -1
  786. package/dist/routes/pages/auth/SsoPage.tsx +1 -1
  787. package/dist/routes/solidRoutes.d.ts.map +1 -1
  788. package/dist/routes/solidRoutes.js +48 -27
  789. package/dist/routes/solidRoutes.js.map +1 -1
  790. package/dist/routes/solidRoutes.tsx +48 -27
  791. package/dist/routes/types.d.ts +8 -1
  792. package/dist/routes/types.d.ts.map +1 -1
  793. package/dist/routes/types.js.map +1 -1
  794. package/dist/routes/types.ts +9 -1
  795. package/dist/styles.d.ts +2 -1
  796. package/dist/styles.d.ts.map +1 -1
  797. package/dist/styles.js +2 -1
  798. package/dist/styles.js.map +1 -1
  799. package/dist/styles.ts +2 -1
  800. package/dist/types/dashboard.d.ts +16 -0
  801. package/dist/types/dashboard.d.ts.map +1 -0
  802. package/dist/types/dashboard.js +2 -0
  803. package/dist/types/dashboard.js.map +1 -0
  804. package/dist/types/dashboard.ts +23 -0
  805. package/dist/types/extension-registry.d.ts +1 -0
  806. package/dist/types/extension-registry.d.ts.map +1 -1
  807. package/dist/types/extension-registry.js +1 -0
  808. package/dist/types/extension-registry.js.map +1 -1
  809. package/dist/types/extension-registry.ts +1 -0
  810. package/dist/types/index.d.ts +3 -0
  811. package/dist/types/jsoneditor.d.ts +4 -0
  812. package/dist/types/solid-core.d.ts +1 -0
  813. package/package.json +9 -3
@@ -3,7 +3,7 @@ import { SolidDataTable as DataTable, DataTableStateEvent, Column } from "./Soli
3
3
  import qs from "qs";
4
4
  import { createSolidEntityApi } from "../../../redux/api/solidEntityApi";
5
5
  import { useGetSolidViewLayoutQuery } from "../../../redux/api/solidViewApi";
6
- import { SolidListViewColumn } from "./SolidListViewColumn";
6
+ import { SolidListViewColumn, isFieldSortable } from "./SolidListViewColumn";
7
7
  import { SolidCreateButton } from "../common/SolidCreateButton";
8
8
  import { SolidGlobalSearchElement } from "../common/SolidGlobalSearchElement";
9
9
  import { useLazyCheckIfPermissionExistsQuery } from "../../../redux/api/userApi";
@@ -21,8 +21,10 @@ import type { SolidLightboxSlide } from "../../shad-cn-ui/SolidLightbox";
21
21
  import { SolidListViewConfigure } from "./SolidListViewConfigure";
22
22
  import { SolidEmptyListViewPlaceholder } from "./SolidEmptyListViewPlaceholder";
23
23
  import { useHandleListCustomButtonClick } from "../../../components/common/useHandleListCustomButtonClick";
24
+ import { isButtonVisibleInCurrentEnv } from "../../../helpers/buttonEnvironment";
24
25
  import { hasAnyRole } from "../../../helpers/rolesHelper";
25
26
  import { SolidListViewHeaderButton } from "./SolidListViewHeaderButton";
27
+ import { resolveButtonPresentation } from "../../../helpers/buttonPresentation";
26
28
  import { useDispatch, useSelector } from "react-redux";
27
29
  import styles from "./SolidListViewWrapper.module.css";
28
30
  import { SolidBeforeListDataLoad, SolidListUiEventResponse, SolidLoadList } from "../../../types/solid-core";
@@ -47,7 +49,7 @@ import {
47
49
  SolidDialogTitle,
48
50
  } from "../../shad-cn-ui";
49
51
  import { FilterMatchMode } from "../filter/filterMatchMode";
50
- import { LayoutGrid, Pencil, Plus, RefreshCw, RotateCcw, Search, SquarePen, Trash2 } from "lucide-react";
52
+ import { LayoutGrid, Pencil, Plus, RefreshCw, RotateCcw, Search, Trash2 } from "lucide-react";
51
53
  // import { ERROR_MESSAGES } from "../../../constants/error-messages";
52
54
 
53
55
  const getRandomInt = (min: number, max: number) => {
@@ -244,11 +246,20 @@ export const SolidListView = forwardRef<SolidListViewHandle, SolidListViewParams
244
246
  const [filterPredicates, setFilterPredicates] = useState<any>(null);
245
247
  const [showSaveFilterPopup, setShowSaveFilterPopup] = useState<boolean>(false);
246
248
  const [showGlobalSearchElement, setShowGlobalSearchElement] = useState(false);
249
+ const suppressNextFilterPaginationResetRef = useRef(false);
247
250
 
248
251
  const [triggerCheckIfPermissionExists] = useLazyCheckIfPermissionExistsQuery();
249
252
 
250
253
  const handleCustomButtonClick = useHandleListCustomButtonClick();
251
254
 
255
+ const visibleHeaderButtons = useMemo(
256
+ () =>
257
+ (solidListViewLayout?.attrs?.headerButtons ?? []).filter(
258
+ (button: any) => isButtonVisibleInCurrentEnv(button?.attrs),
259
+ ),
260
+ [solidListViewLayout?.attrs?.headerButtons],
261
+ );
262
+
252
263
  const editBaseUrl = useMemo(
253
264
  () => normalizeSolidListTreeKanbanActionPath(pathname, editButtonUrl || "form"),
254
265
  [editButtonUrl, pathname]
@@ -283,7 +294,6 @@ export const SolidListView = forwardRef<SolidListViewHandle, SolidListViewParams
283
294
  fetchPermissions();
284
295
  }, [params.modelName]);
285
296
 
286
-
287
297
  const isFilterApplied = filters ? true : false;
288
298
 
289
299
  // Create the RTK slices for this entity
@@ -564,6 +574,7 @@ export const SolidListView = forwardRef<SolidListViewHandle, SolidListViewParams
564
574
  const queryObject = getFilterObjectFromLocalStorage();
565
575
 
566
576
  if (queryObject) {
577
+ suppressNextFilterPaginationResetRef.current = true;
567
578
  const queryData = {
568
579
  offset: queryObject.offset || 0,
569
580
  limit: queryObject.limit || 25,
@@ -772,11 +783,15 @@ export const SolidListView = forwardRef<SolidListViewHandle, SolidListViewParams
772
783
  const currentSortOrder = latestSortOrderRef.current;
773
784
  if (currentSortField && (currentSortOrder === 1 || currentSortOrder === -1)) {
774
785
  const meta = solidFieldsMetadata?.[currentSortField];
775
- let resolvedField = currentSortField;
776
- if (meta?.type === "relation" && meta?.relationType === "many-to-one") {
777
- resolvedField = `${currentSortField}.${meta?.relationModel?.userKeyField?.name}`;
786
+ if (!isFieldSortable(meta)) {
787
+ queryData.sort = [`id:desc`];
788
+ } else {
789
+ let resolvedField = currentSortField;
790
+ if (meta?.type === "relation" && meta?.relationType === "many-to-one") {
791
+ resolvedField = `${currentSortField}.${meta?.relationModel?.userKeyField?.name}`;
792
+ }
793
+ queryData.sort = [`${resolvedField}:${currentSortOrder === 1 ? "asc" : "desc"}`];
778
794
  }
779
- queryData.sort = [`${resolvedField}:${currentSortOrder === 1 ? "asc" : "desc"}`];
780
795
  } else {
781
796
  queryData.sort = [`id:desc`];
782
797
  }
@@ -822,8 +837,9 @@ export const SolidListView = forwardRef<SolidListViewHandle, SolidListViewParams
822
837
 
823
838
  const queryString = qs.stringify(queryData, { encodeValuesOnly: true });
824
839
 
825
- if (latestFilterPredicatesRef.current && latestFilterPredicatesRef.current.persistFilter) {
840
+ if (latestFilterPredicatesRef.current) {
826
841
  const fileterTobeStored = structuredClone(queryData);
842
+ fileterTobeStored.finalFullFilter = fileterTobeStored.filters;
827
843
  delete fileterTobeStored.filters;
828
844
  fileterTobeStored.custom_filter_predicate = latestFilterPredicatesRef.current.custom_filter_predicate || null;
829
845
  fileterTobeStored.search_predicate = latestFilterPredicatesRef.current.search_predicate || null;
@@ -853,6 +869,22 @@ export const SolidListView = forwardRef<SolidListViewHandle, SolidListViewParams
853
869
  }
854
870
  const updatedFilter = queryfilter;
855
871
 
872
+ const previousPredicates = latestFilterPredicatesRef.current;
873
+ const nextPredicatesComparable = {
874
+ custom_filter_predicate: filterPredicates?.custom_filter_predicate || null,
875
+ search_predicate: filterPredicates?.search_predicate || null,
876
+ saved_filter_predicate: filterPredicates?.saved_filter_predicate || null,
877
+ predefined_search_predicate: filterPredicates?.predefined_search_predicate || null,
878
+ };
879
+ const previousPredicatesComparable = {
880
+ custom_filter_predicate: previousPredicates?.custom_filter_predicate || null,
881
+ search_predicate: previousPredicates?.search_predicate || null,
882
+ saved_filter_predicate: previousPredicates?.saved_filter_predicate || null,
883
+ predefined_search_predicate: previousPredicates?.predefined_search_predicate || null,
884
+ };
885
+ const hasPredicateChanged =
886
+ JSON.stringify(previousPredicatesComparable) !== JSON.stringify(nextPredicatesComparable);
887
+
856
888
  // Update refs IMMEDIATELY (synchronously)
857
889
  latestFiltersRef.current = updatedFilter;
858
890
  const updatedFilterPredicates = structuredClone(filterPredicates);
@@ -862,7 +894,53 @@ export const SolidListView = forwardRef<SolidListViewHandle, SolidListViewParams
862
894
  // Then update state
863
895
  setFilters(updatedFilter);
864
896
  setFilterPredicates(updatedFilterPredicates);
865
- setFirst(0);
897
+ const hasMeaningfulFilterValueLocal = (value: any): boolean => {
898
+ if (value === null || value === undefined) return false;
899
+ if (typeof value === "string") return value.trim().length > 0;
900
+ if (typeof value === "number" || typeof value === "boolean") return true;
901
+ if (Array.isArray(value)) return value.some((item) => hasMeaningfulFilterValueLocal(item));
902
+ if (typeof value === "object") return hasAppliedFiltersLocal(value);
903
+ return false;
904
+ };
905
+
906
+ const hasAppliedFiltersLocal = (filterObject: any): boolean => {
907
+ if (!filterObject || typeof filterObject !== "object") return false;
908
+
909
+ if (Array.isArray(filterObject)) {
910
+ return filterObject.some((item) => hasAppliedFiltersLocal(item) || hasMeaningfulFilterValueLocal(item));
911
+ }
912
+
913
+ return Object.entries(filterObject).some(([key, val]) => {
914
+ if (key === "matchMode" || key === "operator") return false;
915
+ if (key === "value") return hasMeaningfulFilterValueLocal(val);
916
+ if ((key === "$and" || key === "$or") && Array.isArray(val)) {
917
+ return val.some((item) => hasAppliedFiltersLocal(item) || hasMeaningfulFilterValueLocal(item));
918
+ }
919
+ if (typeof val === "object") return hasAppliedFiltersLocal(val);
920
+ return hasMeaningfulFilterValueLocal(val);
921
+ });
922
+ };
923
+
924
+ const hasCurrentMeaningfulPredicates =
925
+ hasAppliedFiltersLocal(updatedFilterPredicates?.custom_filter_predicate) ||
926
+ hasAppliedFiltersLocal(updatedFilterPredicates?.search_predicate) ||
927
+ hasAppliedFiltersLocal(updatedFilterPredicates?.saved_filter_predicate) ||
928
+ hasAppliedFiltersLocal(updatedFilterPredicates?.predefined_search_predicate);
929
+
930
+ const hasPreviousMeaningfulPredicates =
931
+ hasAppliedFiltersLocal(previousPredicates?.custom_filter_predicate) ||
932
+ hasAppliedFiltersLocal(previousPredicates?.search_predicate) ||
933
+ hasAppliedFiltersLocal(previousPredicates?.saved_filter_predicate) ||
934
+ hasAppliedFiltersLocal(previousPredicates?.predefined_search_predicate);
935
+
936
+ const shouldResetPagination =
937
+ hasPredicateChanged && (hasCurrentMeaningfulPredicates || hasPreviousMeaningfulPredicates);
938
+
939
+ if (suppressNextFilterPaginationResetRef.current) {
940
+ suppressNextFilterPaginationResetRef.current = false;
941
+ } else if (shouldResetPagination) {
942
+ setFirst(0);
943
+ }
866
944
  // Force synchronous state updates
867
945
  };
868
946
 
@@ -1050,6 +1128,7 @@ export const SolidListView = forwardRef<SolidListViewHandle, SolidListViewParams
1050
1128
  column,
1051
1129
  setLightboxUrls,
1052
1130
  setOpenLightbox,
1131
+ embeded: params.embeded
1053
1132
  });
1054
1133
  } else {
1055
1134
  return null;
@@ -1061,6 +1140,7 @@ export const SolidListView = forwardRef<SolidListViewHandle, SolidListViewParams
1061
1140
  column,
1062
1141
  setLightboxUrls,
1063
1142
  setOpenLightbox,
1143
+ embeded: params.embeded
1064
1144
  });
1065
1145
  }
1066
1146
  });
@@ -1117,6 +1197,13 @@ export const SolidListView = forwardRef<SolidListViewHandle, SolidListViewParams
1117
1197
  hasAppliedFilters(filterPredicates?.predefined_search_predicate);
1118
1198
 
1119
1199
  const hasAppliedFilterValues = hasAppliedFilters(filters);
1200
+ const hasAnyActiveFilters = hasAppliedFilterValues || hasFilterPredicatesApplied;
1201
+
1202
+ useEffect(() => {
1203
+ if (params.embeded === false && hasAnyActiveFilters) {
1204
+ setShowGlobalSearchElement(true);
1205
+ }
1206
+ }, [hasAnyActiveFilters, params.embeded]);
1120
1207
 
1121
1208
  const isListViewEmptyWithoutFilters =
1122
1209
  !loading &&
@@ -1228,35 +1315,35 @@ export const SolidListView = forwardRef<SolidListViewHandle, SolidListViewParams
1228
1315
 
1229
1316
  const hasCustomContextMenuButtons =
1230
1317
  solidListViewLayout?.attrs?.rowButtons?.some(
1231
- (rb: any) => rb?.attrs?.actionInContextMenu === true
1318
+ (rb: any) => rb?.attrs?.actionInContextMenu === true && isButtonVisibleInCurrentEnv(rb?.attrs)
1232
1319
  );
1233
1320
 
1234
1321
  const hasAnyContextMenuActions =
1235
1322
  hasEditInContextMenu || hasDeleteInContextMenu || hasCustomContextMenuButtons;
1236
1323
 
1237
- const toggleBothSidebars = () => {
1238
- if (visibleNavbar) {
1239
- dispatch(toggleNavbar()); // close both
1240
- } else {
1241
- dispatch(showNavbar()); // open both
1242
- }
1243
- };
1324
+ // const toggleBothSidebars = () => {
1325
+ // if (visibleNavbar) {
1326
+ // dispatch(toggleNavbar()); // close both
1327
+ // } else {
1328
+ // dispatch(showNavbar()); // open both
1329
+ // }
1330
+ // };
1244
1331
  return (
1245
1332
  <div className="page-parent-wrapper solid-list-page-wrapper flex h-full min-h-0 overflow-hidden">
1246
- <div className={`solid-list-content h-full flex flex-column flex-grow-1 ${styles.ListContentWrapper}`}>
1247
- <div className="solid-list-surface flex flex-column flex-1 min-h-0">
1333
+ <div className={`solid-list-content flex flex-col flex-grow-1 ${styles.ListContentWrapper}`}>
1334
+ <div className="solid-list-surface flex flex-col flex-1 min-h-0">
1248
1335
  {solidListViewInitialMetaData &&
1249
- <div className="page-header solid-list-toolbar flex-column lg:flex-row">
1336
+ <div className="page-header solid-list-toolbar flex-col lg:flex-row">
1250
1337
  {/* <div> */}
1251
- <div className="flex justify-content-between w-full">
1252
- <div className="flex gap-3 align-items-center w-full solid-list-toolbar-left">
1253
- <div className='flex align-items-center gap-2'>
1254
- {params.embeded !== true &&
1338
+ <div className="flex justify-between w-full">
1339
+ <div className="solid-list-toolbar-left flex w-full items-center gap-3">
1340
+ <div className='flex items-center gap-2'>
1341
+ {/* {params.embeded !== true &&
1255
1342
  <div className="apps-icon block md:hidden cursor-pointer" onClick={toggleBothSidebars}>
1256
1343
  <LayoutGrid size={18} />
1257
1344
  </div>
1258
- }
1259
- <p className="m-0 view-title solid-text-wrapper">
1345
+ } */}
1346
+ <p className="m-0 view-title solid-list-view-text-wrapper">
1260
1347
  {solidListViewMetaData?.data?.solidView?.action?.displayName || solidListViewMetaData?.data?.solidView?.displayName}
1261
1348
  </p>
1262
1349
  </div>
@@ -1278,7 +1365,7 @@ export const SolidListView = forwardRef<SolidListViewHandle, SolidListViewParams
1278
1365
  )}
1279
1366
 
1280
1367
  </div>
1281
- <div className="flex align-items-center solid-header-buttons-wrapper solid-list-toolbar-actions">
1368
+ <div className="flex items-center solid-header-buttons-wrapper solid-list-toolbar-actions">
1282
1369
  <SolidHeaderRequestStatus label={headerRequestStatusLabel} />
1283
1370
  {params.embeded === false && (
1284
1371
  <div className="flex lg:hidden">
@@ -1293,8 +1380,8 @@ export const SolidListView = forwardRef<SolidListViewHandle, SolidListViewParams
1293
1380
  </div>
1294
1381
  )}
1295
1382
 
1296
- <div className="hidden lg:flex align-items-center solid-header-buttons-wrapper">
1297
- {solidListViewLayout?.attrs?.headerButtons
1383
+ <div className="solid-header-buttons-wrapper hidden items-center lg:flex">
1384
+ {visibleHeaderButtons
1298
1385
  ?.filter((rb: any) => rb.attrs.actionInContextMenu != true)
1299
1386
  ?.map((button: any, index: number) => (
1300
1387
  <SolidListViewHeaderButton
@@ -1428,7 +1515,7 @@ export const SolidListView = forwardRef<SolidListViewHandle, SolidListViewParams
1428
1515
  >
1429
1516
  <DataTable
1430
1517
  value={listViewData}
1431
- viewportHeight={params.embeded === true ? undefined : "calc(100dvh - 128px)"}
1518
+ // viewportHeight={params.embeded === true ? undefined : "calc(100dvh - 128px)"}
1432
1519
  rowClassName={(rowData) => {
1433
1520
  return rowData.deletedAt ? "greyed-out-row" : "";
1434
1521
  }}
@@ -1522,8 +1609,9 @@ export const SolidListView = forwardRef<SolidListViewHandle, SolidListViewParams
1522
1609
  hasAnyRole(user?.roles, roles);
1523
1610
 
1524
1611
  const isVisible = rb?.attrs?.visible !== false;
1612
+ const isVisibleInCurrentEnv = isButtonVisibleInCurrentEnv(rb?.attrs);
1525
1613
 
1526
- return !isInContextMenu && isAllowed && isVisible;
1614
+ return !isInContextMenu && isAllowed && isVisible && isVisibleInCurrentEnv;
1527
1615
  })
1528
1616
  .map((button: any, index: number) => {
1529
1617
 
@@ -1533,14 +1621,22 @@ export const SolidListView = forwardRef<SolidListViewHandle, SolidListViewParams
1533
1621
  header={button.attrs.label}
1534
1622
  body={(rowData) => {
1535
1623
  return (
1624
+ (() => {
1625
+ const presentation = resolveButtonPresentation(button?.attrs);
1626
+ if (!presentation.showIcon && !presentation.showLabel) return null;
1627
+ return (
1536
1628
  <SolidButton
1537
1629
  type="button"
1538
- icon={button?.attrs?.icon}
1539
- leftIcon={!button?.attrs?.icon ? <SquarePen size={14} /> : undefined}
1540
- className={`solid-inline-row-button w-full text-left gap-2 ${button?.attrs?.className
1541
- ? button?.attrs?.className
1542
- : ""
1543
- }`}
1630
+ icon={presentation.icon}
1631
+ iconPos={presentation.iconPos}
1632
+ label={presentation.label}
1633
+ tooltip={presentation.tooltip}
1634
+ aria-label={presentation.isIconOnly ? (presentation.tooltip ?? button?.attrs?.action ?? "Action") : undefined}
1635
+ className={[
1636
+ "solid-inline-row-button w-full text-left gap-2",
1637
+ presentation.isIconOnly ? "solid-icon-button" : "",
1638
+ presentation.buttonClassName ? presentation.buttonClassName : ""
1639
+ ].filter(Boolean).join(" ")}
1544
1640
  size="small"
1545
1641
  variant="ghost"
1546
1642
  onClick={() => {
@@ -1552,11 +1648,9 @@ export const SolidListView = forwardRef<SolidListViewHandle, SolidListViewParams
1552
1648
  };
1553
1649
  handleCustomButtonClick(button.attrs, event);
1554
1650
  }}
1555
- >
1556
- {button.attrs.showLabel !== false
1557
- ? button.attrs.label
1558
- : ""}
1559
- </SolidButton>
1651
+ />
1652
+ );
1653
+ })()
1560
1654
  );
1561
1655
  }}
1562
1656
  />
@@ -1663,7 +1757,7 @@ export const SolidListView = forwardRef<SolidListViewHandle, SolidListViewParams
1663
1757
  <>
1664
1758
  {solidListViewLayout?.attrs?.showRowContextMenu !==
1665
1759
  false && (
1666
- <div className="flex justify-content-end" data-no-row-click="true">
1760
+ <div className="flex justify-end" data-no-row-click="true">
1667
1761
  <SolidListViewRowActionsMenu
1668
1762
  rowData={rowData}
1669
1763
  hasEditInContextMenu={hasEditInContextMenu}
@@ -4,7 +4,9 @@ export type SolidListViewColumnParams = {
4
4
  column: any;
5
5
  setLightboxUrls?: any;
6
6
  setOpenLightbox?: any;
7
+ embeded?: boolean;
7
8
  };
9
+ export declare const isFieldSortable: (fieldMetadata: any) => boolean;
8
10
  export declare const getNumberOfInputs: (matchMode: any) => number | null;
9
- export declare const SolidListViewColumn: ({ solidListViewMetaData, fieldMetadata, column, setLightboxUrls, setOpenLightbox }: SolidListViewColumnParams) => import("react/jsx-runtime").JSX.Element | undefined;
11
+ export declare const SolidListViewColumn: ({ solidListViewMetaData, fieldMetadata, column, setLightboxUrls, setOpenLightbox, embeded }: SolidListViewColumnParams) => import("react/jsx-runtime").JSX.Element | undefined;
10
12
  //# sourceMappingURL=SolidListViewColumn.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SolidListViewColumn.d.ts","sourceRoot":"","sources":["../../../../src/components/core/list/SolidListViewColumn.tsx"],"names":[],"mappings":"AAqBA,MAAM,MAAM,yBAAyB,GAAG;IACpC,qBAAqB,EAAE,GAAG,CAAC;IAC3B,aAAa,EAAE,GAAG,CAAC;IACnB,MAAM,EAAE,GAAG,CAAC;IACZ,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,eAAe,CAAC,EAAE,GAAG,CAAA;CACxB,CAAC;AAEF,eAAO,MAAM,iBAAiB,cAAe,GAAG,KAAG,MAAM,GAAG,IAyB3D,CAAA;AAoBD,eAAO,MAAM,mBAAmB,uFAAwF,yBAAyB,wDA0FhJ,CAAC"}
1
+ {"version":3,"file":"SolidListViewColumn.d.ts","sourceRoot":"","sources":["../../../../src/components/core/list/SolidListViewColumn.tsx"],"names":[],"mappings":"AAqBA,MAAM,MAAM,yBAAyB,GAAG;IACpC,qBAAqB,EAAE,GAAG,CAAC;IAC3B,aAAa,EAAE,GAAG,CAAC;IACnB,MAAM,EAAE,GAAG,CAAC;IACZ,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,eAAe,CAAC,EAAE,GAAG,CAAC;IACtB,OAAO,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,eAAe,kBAAmB,GAAG,KAAG,OAMpD,CAAC;AAEF,eAAO,MAAM,iBAAiB,cAAe,GAAG,KAAG,MAAM,GAAG,IAyB3D,CAAA;AAoBD,eAAO,MAAM,mBAAmB,gGAAiG,yBAAyB,wDA8FzJ,CAAC"}
@@ -1,3 +1,14 @@
1
+ var __assign = (this && this.__assign) || function () {
2
+ __assign = Object.assign || function(t) {
3
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
4
+ s = arguments[i];
5
+ for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
+ t[p] = s[p];
7
+ }
8
+ return t;
9
+ };
10
+ return __assign.apply(this, arguments);
11
+ };
1
12
  import SolidBigintColumn from "./columns/SolidBigintColumn";
2
13
  import SolidBooleanColumn from "./columns/SolidBooleanColumn";
3
14
  import SolidComputedColumn from "./columns/SolidComputedColumn";
@@ -17,6 +28,16 @@ import SolidSelectionStaticColumn from "./columns/SolidSelectionStaticColumn";
17
28
  import SolidShortTextColumn from "./columns/SolidShortTextColumn";
18
29
  import SolidTimeColumn from "./columns/SolidTimeColumn";
19
30
  import SolidUuidColumn from "./columns/SolidUuidColumn";
31
+ export var isFieldSortable = function (fieldMetadata) {
32
+ if (!fieldMetadata)
33
+ return false;
34
+ var type = fieldMetadata.type;
35
+ if (type === 'mediaSingle' || type === 'mediaMultiple')
36
+ return false;
37
+ if (type === 'relation')
38
+ return fieldMetadata.relationType === 'many-to-one';
39
+ return true;
40
+ };
20
41
  export var getNumberOfInputs = function (matchMode) {
21
42
  if (matchMode.label && matchMode.label === 'Not In') {
22
43
  matchMode = 'notIn';
@@ -57,7 +78,11 @@ export var getNumberOfInputs = function (matchMode) {
57
78
  // }
58
79
  // };
59
80
  export var SolidListViewColumn = function (_a) {
60
- var solidListViewMetaData = _a.solidListViewMetaData, fieldMetadata = _a.fieldMetadata, column = _a.column, setLightboxUrls = _a.setLightboxUrls, setOpenLightbox = _a.setOpenLightbox;
81
+ var _b;
82
+ var solidListViewMetaData = _a.solidListViewMetaData, fieldMetadata = _a.fieldMetadata, column = _a.column, setLightboxUrls = _a.setLightboxUrls, setOpenLightbox = _a.setOpenLightbox, embeded = _a.embeded;
83
+ if (!isFieldSortable(fieldMetadata) && ((_b = column === null || column === void 0 ? void 0 : column.attrs) === null || _b === void 0 ? void 0 : _b.sortable)) {
84
+ column = __assign(__assign({}, column), { attrs: __assign(__assign({}, column.attrs), { sortable: false }) });
85
+ }
61
86
  // And finally we can implement additional switching logic based on certain special fields.
62
87
  if (fieldMetadata.name === 'id') {
63
88
  return SolidIntColumn({ solidListViewMetaData: solidListViewMetaData, fieldMetadata: fieldMetadata, column: column });
@@ -99,7 +124,7 @@ export var SolidListViewColumn = function (_a) {
99
124
  return SolidTimeColumn({ solidListViewMetaData: solidListViewMetaData, fieldMetadata: fieldMetadata, column: column });
100
125
  }
101
126
  if (fieldMetadata.type === 'relation') {
102
- return SolidRelationColumn({ solidListViewMetaData: solidListViewMetaData, fieldMetadata: fieldMetadata, column: column });
127
+ return SolidRelationColumn({ solidListViewMetaData: solidListViewMetaData, fieldMetadata: fieldMetadata, column: column, embeded: embeded });
103
128
  }
104
129
  if (fieldMetadata.type === 'mediaSingle') {
105
130
  return SolidMediaSingleColumn({ solidListViewMetaData: solidListViewMetaData, fieldMetadata: fieldMetadata, column: column, setLightboxUrls: setLightboxUrls, setOpenLightbox: setOpenLightbox });
@@ -1 +1 @@
1
- {"version":3,"file":"SolidListViewColumn.js","sourceRoot":"","sources":["../../../../src/components/core/list/SolidListViewColumn.tsx"],"names":[],"mappings":"AACA,OAAO,iBAAiB,MAAM,6BAA6B,CAAC;AAC5D,OAAO,kBAAkB,MAAM,8BAA8B,CAAC;AAC9D,OAAO,mBAAmB,MAAM,+BAA+B,CAAC;AAChE,OAAO,eAAe,MAAM,2BAA2B,CAAC;AACxD,OAAO,mBAAmB,MAAM,+BAA+B,CAAC;AAChE,OAAO,kBAAkB,MAAM,8BAA8B,CAAC;AAC9D,OAAO,qBAAqB,MAAM,iCAAiC,CAAC;AACpE,OAAO,gBAAgB,MAAM,4BAA4B,CAAC;AAC1D,OAAO,cAAc,MAAM,0BAA0B,CAAC;AACtD,OAAO,mBAAmB,MAAM,+BAA+B,CAAC;AAChE,OAAO,wBAAwB,MAAM,oCAAoC,CAAC;AAC1E,OAAO,sBAAsB,MAAM,kCAAkC,CAAC;AACtE,OAAO,mBAAmB,MAAM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ourcesContent":["\nimport SolidBigintColumn from \"./columns/SolidBigintColumn\";\nimport SolidBooleanColumn from \"./columns/SolidBooleanColumn\";\nimport SolidComputedColumn from \"./columns/SolidComputedColumn\";\nimport SolidDateColumn from \"./columns/SolidDateColumn\";\nimport SolidDatetimeColumn from \"./columns/SolidDatetimeColumn\";\nimport SolidDecimalColumn from \"./columns/SolidDecimalColumn\";\nimport SolidExternalIdColumn from \"./columns/SolidExternalIdColumn\";\nimport SolidFloatColumn from \"./columns/SolidFloatColumn\";\nimport SolidIntColumn from \"./columns/SolidIntColumn\";\nimport SolidLongTextColumn from \"./columns/SolidLongTextColumn\";\nimport SolidMediaMultipleColumn from \"./columns/SolidMediaMultipleColumn\";\nimport SolidMediaSingleColumn from \"./columns/SolidMediaSingleColumn\";\nimport SolidRelationColumn from \"./columns/SolidRelationColumn\";\nimport SolidRichTextColumn from \"./columns/SolidRichTextColumn\";\nimport SolidSelectionDynamicColumn from \"./columns/SolidSelectionDynamicColumn\";\nimport SolidSelectionStaticColumn from \"./columns/SolidSelectionStaticColumn\";\nimport SolidShortTextColumn from \"./columns/SolidShortTextColumn\";\nimport SolidTimeColumn from \"./columns/SolidTimeColumn\";\nimport SolidUuidColumn from \"./columns/SolidUuidColumn\";\n\nexport type SolidListViewColumnParams = {\n solidListViewMetaData: any;\n fieldMetadata: any,\n column: any,\n setLightboxUrls?: any,\n setOpenLightbox?: any\n};\n\nexport const getNumberOfInputs = (matchMode: any): number | null => {\n if (matchMode.label && matchMode.label === 'Not In') {\n matchMode = 'notIn';\n }\n\n switch (matchMode) {\n case 'between':\n return 2;\n case 'in':\n case 'notIn':\n return null;\n case 'startsWith':\n case 'contains':\n case 'notContains':\n case 'endsWith':\n case 'equals':\n case 'notEquals':\n case 'lt':\n case 'lte':\n case 'gt':\n case 'gte':\n return 1;\n default:\n return 1; // Default to single input if no specific match is found\n }\n}\n\n// // @ts-ignore\n// const components = require.context('./columns', false, /Solid.*Column\\.tsx$/);\n\n// // Define a function to dynamically load components based on type\n// const loadComponentByType = async (type: string) => {\n// try {\n// const componentName = `./columns/Solid${type.charAt(0).toUpperCase() + type.slice(1)}Column.tsx`;\n\n// // Dynamically import the component based on type\n// const componentModule = await import(componentName);\n\n// return componentModule.default;\n// } catch (error) {\n// console.error(`Failed to load component for type: ${type}`, error);\n// return null;\n// }\n// };\n\nexport const SolidListViewColumn = ({ solidListViewMetaData, fieldMetadata, column, setLightboxUrls, setOpenLightbox }: SolidListViewColumnParams) => {\n\n // And finally we can implement additional switching logic based on certain special fields. \n if (fieldMetadata.name === 'id') {\n return SolidIntColumn({ solidListViewMetaData, fieldMetadata, column });\n }\n\n if (fieldMetadata.type === 'int') {\n return SolidIntColumn({ solidListViewMetaData, fieldMetadata, column });\n }\n if (fieldMetadata.type === 'bigint') {\n return SolidBigintColumn({ solidListViewMetaData, fieldMetadata, column });\n }\n if (fieldMetadata.type === 'float') {\n return SolidFloatColumn({ solidListViewMetaData, fieldMetadata, column });\n }\n if (fieldMetadata.type === 'decimal') {\n return SolidDecimalColumn({ solidListViewMetaData, fieldMetadata, column });\n }\n if (fieldMetadata.type === 'shortText') {\n return SolidShortTextColumn({ solidListViewMetaData, fieldMetadata, column, setLightboxUrls, setOpenLightbox });\n }\n if (fieldMetadata.type === 'longText') {\n return SolidLongTextColumn({ solidListViewMetaData, fieldMetadata, column });\n }\n if (fieldMetadata.type === 'richText') {\n return SolidRichTextColumn({ solidListViewMetaData, fieldMetadata, column });\n }\n if (fieldMetadata.type === 'email') {\n return SolidShortTextColumn({ solidListViewMetaData, fieldMetadata, column });\n }\n if (fieldMetadata.type === 'boolean') {\n return SolidBooleanColumn({ solidListViewMetaData, fieldMetadata, column });\n }\n if (fieldMetadata.type === 'date') {\n return SolidDateColumn({ solidListViewMetaData, fieldMetadata, column });\n }\n if (fieldMetadata.type === 'datetime') {\n return SolidDatetimeColumn({ solidListViewMetaData, fieldMetadata, column });\n }\n if (fieldMetadata.type === 'time') {\n return SolidTimeColumn({ solidListViewMetaData, fieldMetadata, column });\n }\n if (fieldMetadata.type === 'relation') {\n return SolidRelationColumn({ solidListViewMetaData, fieldMetadata, column });\n }\n if (fieldMetadata.type === 'mediaSingle') {\n return SolidMediaSingleColumn({ solidListViewMetaData, fieldMetadata, column, setLightboxUrls, setOpenLightbox });\n }\n if (fieldMetadata.type === 'mediaMultiple') {\n return SolidMediaMultipleColumn({ solidListViewMetaData, fieldMetadata, column, setLightboxUrls, setOpenLightbox });\n }\n if (fieldMetadata.type === 'selectionStatic') {\n return SolidSelectionStaticColumn({ solidListViewMetaData, fieldMetadata, column });\n }\n if (fieldMetadata.type === 'selectionDynamic') {\n return SolidSelectionDynamicColumn({ solidListViewMetaData, fieldMetadata, column });\n }\n if (fieldMetadata.type === 'computed') {\n return SolidComputedColumn({ solidListViewMetaData, fieldMetadata, column });\n }\n if (fieldMetadata.type === 'externalId') {\n return SolidExternalIdColumn({ solidListViewMetaData, fieldMetadata, column });\n }\n if (fieldMetadata.type === 'uuid') {\n return SolidUuidColumn({ solidListViewMetaData, fieldMetadata, column });\n }\n // // Load everything else based on type and dynamically.\n // else {\n // const ComponentFound = await loadComponentByType(fieldMetadata.type);\n // const ComponentNotFound = ({ solidListViewMetaData, fieldMetadata, column }: SolidListViewColumnParams) => (\n // <Column\n // key={fieldMetadata.name}\n // field={fieldMetadata.name}\n // header={fieldMetadata.displayName}\n // className=\"text-sm\"\n // sortable={false}\n // filter={false}\n // showFilterOperator={false}\n // body={() => (<span>Type not supported</span>)}\n // style={{ minWidth: \"12rem\" }}\n // headerClassName=\"table-header-fs\"\n // ></Column>\n // );\n\n // return ComponentFound ? ComponentFound({ solidListViewMetaData, fieldMetadata, column }) : ComponentNotFound({ solidListViewMetaData, fieldMetadata, column });\n // }\n\n // TODO: we can implement additional switching logic based on the widget type being used to render the list view column.\n\n};\n"]}
1
+ {"version":3,"file":"SolidListViewColumn.js","sourceRoot":"","sources":["../../../../src/components/core/list/SolidListViewColumn.tsx"],"names":[],"mappings":";;;;;;;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A,EAAE,eAAe,iBAAA,EAAE,CAAC,CAAC;KACvH;IACD,IAAI,aAAa,CAAC,IAAI,KAAK,iBAAiB,EAAE;QAC1C,OAAO,0BAA0B,CAAC,EAAE,qBAAqB,uBAAA,EAAE,aAAa,eAAA,EAAE,MAAM,QAAA,EAAE,CAAC,CAAC;KACvF;IACD,IAAI,aAAa,CAAC,IAAI,KAAK,kBAAkB,EAAE;QAC3C,OAAO,2BAA2B,CAAC,EAAE,qBAAqB,uBAAA,EAAE,aAAa,eAAA,EAAE,MAAM,QAAA,EAAE,CAAC,CAAC;KACxF;IACD,IAAI,aAAa,CAAC,IAAI,KAAK,UAAU,EAAE;QACnC,OAAO,mBAAmB,CAAC,EAAE,qBAAqB,uBAAA,EAAE,aAAa,eAAA,EAAE,MAAM,QAAA,EAAE,CAAC,CAAC;KAChF;IACD,IAAI,aAAa,CAAC,IAAI,KAAK,YAAY,EAAE;QACrC,OAAO,qBAAqB,CAAC,EAAE,qBAAqB,uBAAA,EAAE,aAAa,eAAA,EAAE,MAAM,QAAA,EAAE,CAAC,CAAC;KAClF;IACD,IAAI,aAAa,CAAC,IAAI,KAAK,MAAM,EAAE;QAC/B,OAAO,eAAe,CAAC,EAAE,qBAAqB,uBAAA,EAAE,aAAa,eAAA,EAAE,MAAM,QAAA,EAAE,CAAC,CAAC;KAC5E;IACD,yDAAyD;IACzD,SAAS;IACT,4EAA4E;IAC5E,mHAAmH;IACnH,kBAAkB;IAClB,uCAAuC;IACvC,yCAAyC;IACzC,iDAAiD;IACjD,kCAAkC;IAClC,+BAA+B;IAC/B,6BAA6B;IAC7B,yCAAyC;IACzC,6DAA6D;IAC7D,4CAA4C;IAC5C,gDAAgD;IAChD,qBAAqB;IACrB,SAAS;IAET,sKAAsK;IACtK,IAAI;IAEJ,wHAAwH;AAE5H,CAAC,CAAC","sourcesContent":["\nimport SolidBigintColumn from \"./columns/SolidBigintColumn\";\nimport SolidBooleanColumn from \"./columns/SolidBooleanColumn\";\nimport SolidComputedColumn from \"./columns/SolidComputedColumn\";\nimport SolidDateColumn from \"./columns/SolidDateColumn\";\nimport SolidDatetimeColumn from \"./columns/SolidDatetimeColumn\";\nimport SolidDecimalColumn from \"./columns/SolidDecimalColumn\";\nimport SolidExternalIdColumn from \"./columns/SolidExternalIdColumn\";\nimport SolidFloatColumn from \"./columns/SolidFloatColumn\";\nimport SolidIntColumn from \"./columns/SolidIntColumn\";\nimport SolidLongTextColumn from \"./columns/SolidLongTextColumn\";\nimport SolidMediaMultipleColumn from \"./columns/SolidMediaMultipleColumn\";\nimport SolidMediaSingleColumn from \"./columns/SolidMediaSingleColumn\";\nimport SolidRelationColumn from \"./columns/SolidRelationColumn\";\nimport SolidRichTextColumn from \"./columns/SolidRichTextColumn\";\nimport SolidSelectionDynamicColumn from \"./columns/SolidSelectionDynamicColumn\";\nimport SolidSelectionStaticColumn from \"./columns/SolidSelectionStaticColumn\";\nimport SolidShortTextColumn from \"./columns/SolidShortTextColumn\";\nimport SolidTimeColumn from \"./columns/SolidTimeColumn\";\nimport SolidUuidColumn from \"./columns/SolidUuidColumn\";\n\nexport type SolidListViewColumnParams = {\n solidListViewMetaData: any;\n fieldMetadata: any,\n column: any,\n setLightboxUrls?: any,\n setOpenLightbox?: any,\n embeded?: boolean; \n};\n\nexport const isFieldSortable = (fieldMetadata: any): boolean => {\n if (!fieldMetadata) return false;\n const type = fieldMetadata.type;\n if (type === 'mediaSingle' || type === 'mediaMultiple') return false;\n if (type === 'relation') return fieldMetadata.relationType === 'many-to-one';\n return true;\n};\n\nexport const getNumberOfInputs = (matchMode: any): number | null => {\n if (matchMode.label && matchMode.label === 'Not In') {\n matchMode = 'notIn';\n }\n\n switch (matchMode) {\n case 'between':\n return 2;\n case 'in':\n case 'notIn':\n return null;\n case 'startsWith':\n case 'contains':\n case 'notContains':\n case 'endsWith':\n case 'equals':\n case 'notEquals':\n case 'lt':\n case 'lte':\n case 'gt':\n case 'gte':\n return 1;\n default:\n return 1; // Default to single input if no specific match is found\n }\n}\n\n// // @ts-ignore\n// const components = require.context('./columns', false, /Solid.*Column\\.tsx$/);\n\n// // Define a function to dynamically load components based on type\n// const loadComponentByType = async (type: string) => {\n// try {\n// const componentName = `./columns/Solid${type.charAt(0).toUpperCase() + type.slice(1)}Column.tsx`;\n\n// // Dynamically import the component based on type\n// const componentModule = await import(componentName);\n\n// return componentModule.default;\n// } catch (error) {\n// console.error(`Failed to load component for type: ${type}`, error);\n// return null;\n// }\n// };\n\nexport const SolidListViewColumn = ({ solidListViewMetaData, fieldMetadata, column, setLightboxUrls, setOpenLightbox, embeded }: SolidListViewColumnParams) => {\n\n if (!isFieldSortable(fieldMetadata) && column?.attrs?.sortable) {\n column = { ...column, attrs: { ...column.attrs, sortable: false } };\n }\n\n // And finally we can implement additional switching logic based on certain special fields. \n if (fieldMetadata.name === 'id') {\n return SolidIntColumn({ solidListViewMetaData, fieldMetadata, column });\n }\n\n if (fieldMetadata.type === 'int') {\n return SolidIntColumn({ solidListViewMetaData, fieldMetadata, column });\n }\n if (fieldMetadata.type === 'bigint') {\n return SolidBigintColumn({ solidListViewMetaData, fieldMetadata, column });\n }\n if (fieldMetadata.type === 'float') {\n return SolidFloatColumn({ solidListViewMetaData, fieldMetadata, column });\n }\n if (fieldMetadata.type === 'decimal') {\n return SolidDecimalColumn({ solidListViewMetaData, fieldMetadata, column });\n }\n if (fieldMetadata.type === 'shortText') {\n return SolidShortTextColumn({ solidListViewMetaData, fieldMetadata, column, setLightboxUrls, setOpenLightbox });\n }\n if (fieldMetadata.type === 'longText') {\n return SolidLongTextColumn({ solidListViewMetaData, fieldMetadata, column });\n }\n if (fieldMetadata.type === 'richText') {\n return SolidRichTextColumn({ solidListViewMetaData, fieldMetadata, column });\n }\n if (fieldMetadata.type === 'email') {\n return SolidShortTextColumn({ solidListViewMetaData, fieldMetadata, column });\n }\n if (fieldMetadata.type === 'boolean') {\n return SolidBooleanColumn({ solidListViewMetaData, fieldMetadata, column });\n }\n if (fieldMetadata.type === 'date') {\n return SolidDateColumn({ solidListViewMetaData, fieldMetadata, column });\n }\n if (fieldMetadata.type === 'datetime') {\n return SolidDatetimeColumn({ solidListViewMetaData, fieldMetadata, column });\n }\n if (fieldMetadata.type === 'time') {\n return SolidTimeColumn({ solidListViewMetaData, fieldMetadata, column });\n }\n if (fieldMetadata.type === 'relation') {\n return SolidRelationColumn({ solidListViewMetaData, fieldMetadata, column, embeded });\n }\n if (fieldMetadata.type === 'mediaSingle') {\n return SolidMediaSingleColumn({ solidListViewMetaData, fieldMetadata, column, setLightboxUrls, setOpenLightbox });\n }\n if (fieldMetadata.type === 'mediaMultiple') {\n return SolidMediaMultipleColumn({ solidListViewMetaData, fieldMetadata, column, setLightboxUrls, setOpenLightbox });\n }\n if (fieldMetadata.type === 'selectionStatic') {\n return SolidSelectionStaticColumn({ solidListViewMetaData, fieldMetadata, column });\n }\n if (fieldMetadata.type === 'selectionDynamic') {\n return SolidSelectionDynamicColumn({ solidListViewMetaData, fieldMetadata, column });\n }\n if (fieldMetadata.type === 'computed') {\n return SolidComputedColumn({ solidListViewMetaData, fieldMetadata, column });\n }\n if (fieldMetadata.type === 'externalId') {\n return SolidExternalIdColumn({ solidListViewMetaData, fieldMetadata, column });\n }\n if (fieldMetadata.type === 'uuid') {\n return SolidUuidColumn({ solidListViewMetaData, fieldMetadata, column });\n }\n // // Load everything else based on type and dynamically.\n // else {\n // const ComponentFound = await loadComponentByType(fieldMetadata.type);\n // const ComponentNotFound = ({ solidListViewMetaData, fieldMetadata, column }: SolidListViewColumnParams) => (\n // <Column\n // key={fieldMetadata.name}\n // field={fieldMetadata.name}\n // header={fieldMetadata.displayName}\n // className=\"text-sm\"\n // sortable={false}\n // filter={false}\n // showFilterOperator={false}\n // body={() => (<span>Type not supported</span>)}\n // style={{ minWidth: \"12rem\" }}\n // headerClassName=\"table-header-fs\"\n // ></Column>\n // );\n\n // return ComponentFound ? ComponentFound({ solidListViewMetaData, fieldMetadata, column }) : ComponentNotFound({ solidListViewMetaData, fieldMetadata, column });\n // }\n\n // TODO: we can implement additional switching logic based on the widget type being used to render the list view column.\n\n};\n"]}
@@ -24,7 +24,16 @@ export type SolidListViewColumnParams = {
24
24
  fieldMetadata: any,
25
25
  column: any,
26
26
  setLightboxUrls?: any,
27
- setOpenLightbox?: any
27
+ setOpenLightbox?: any,
28
+ embeded?: boolean;
29
+ };
30
+
31
+ export const isFieldSortable = (fieldMetadata: any): boolean => {
32
+ if (!fieldMetadata) return false;
33
+ const type = fieldMetadata.type;
34
+ if (type === 'mediaSingle' || type === 'mediaMultiple') return false;
35
+ if (type === 'relation') return fieldMetadata.relationType === 'many-to-one';
36
+ return true;
28
37
  };
29
38
 
30
39
  export const getNumberOfInputs = (matchMode: any): number | null => {
@@ -72,7 +81,11 @@ export const getNumberOfInputs = (matchMode: any): number | null => {
72
81
  // }
73
82
  // };
74
83
 
75
- export const SolidListViewColumn = ({ solidListViewMetaData, fieldMetadata, column, setLightboxUrls, setOpenLightbox }: SolidListViewColumnParams) => {
84
+ export const SolidListViewColumn = ({ solidListViewMetaData, fieldMetadata, column, setLightboxUrls, setOpenLightbox, embeded }: SolidListViewColumnParams) => {
85
+
86
+ if (!isFieldSortable(fieldMetadata) && column?.attrs?.sortable) {
87
+ column = { ...column, attrs: { ...column.attrs, sortable: false } };
88
+ }
76
89
 
77
90
  // And finally we can implement additional switching logic based on certain special fields.
78
91
  if (fieldMetadata.name === 'id') {
@@ -116,7 +129,7 @@ export const SolidListViewColumn = ({ solidListViewMetaData, fieldMetadata, colu
116
129
  return SolidTimeColumn({ solidListViewMetaData, fieldMetadata, column });
117
130
  }
118
131
  if (fieldMetadata.type === 'relation') {
119
- return SolidRelationColumn({ solidListViewMetaData, fieldMetadata, column });
132
+ return SolidRelationColumn({ solidListViewMetaData, fieldMetadata, column, embeded });
120
133
  }
121
134
  if (fieldMetadata.type === 'mediaSingle') {
122
135
  return SolidMediaSingleColumn({ solidListViewMetaData, fieldMetadata, column, setLightboxUrls, setOpenLightbox });
@@ -1 +1 @@
1
- {"version":3,"file":"SolidListViewConfigure.d.ts","sourceRoot":"","sources":["../../../../src/components/core/list/SolidListViewConfigure.tsx"],"names":[],"mappings":"AASA,OAAO,+BAA+B,CAAC;AA4BvC,MAAM,MAAM,QAAQ,GAAG;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;CAChB,CAAA;AAED,eAAO,MAAM,sBAAsB,+QAoB3B,GAAG,4CAmVV,CAAA"}
1
+ {"version":3,"file":"SolidListViewConfigure.d.ts","sourceRoot":"","sources":["../../../../src/components/core/list/SolidListViewConfigure.tsx"],"names":[],"mappings":"AAUA,OAAO,+BAA+B,CAAC;AA4BvC,MAAM,MAAM,QAAQ,GAAG;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;IACnB,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;CAChB,CAAA;AAED,eAAO,MAAM,sBAAsB,+QAoB3B,GAAG,4CAwVV,CAAA"}
@@ -8,6 +8,7 @@ import { SolidListColumnSelector } from "./SolidColumnSelector/SolidListColumnSe
8
8
  import { SolidExport } from "../../../components/common/SolidExport";
9
9
  import { useHandleListCustomButtonClick } from "../../../components/common/useHandleListCustomButtonClick";
10
10
  import { SolidListViewHeaderContextMenuButton } from "./SolidListViewHeaderContextMenuButton";
11
+ import { isButtonVisibleInCurrentEnv } from "../../../helpers/buttonEnvironment";
11
12
  import "../../common/solid-export.css";
12
13
  import { SolidGenericImport } from "../common/SolidGenericImport/SolidGenericImport";
13
14
  import { hasAnyRole } from "../../../helpers/rolesHelper";
@@ -15,17 +16,17 @@ import { capitalize } from "lodash";
15
16
  import { Cog, Download, RefreshCw, Save, SlidersHorizontal, Table, Trash2, Upload } from "lucide-react";
16
17
  import { SolidDialog, SolidDialogBody, SolidDialogClose, SolidDialogDescription, SolidDialogHeader, SolidDialogSeparator, SolidDialogTitle, SolidDropdownMenu, SolidDropdownMenuCheckboxItem, SolidDropdownMenuContent, SolidDropdownMenuItem, SolidDropdownMenuLabel, SolidDropdownMenuRadioGroup, SolidDropdownMenuRadioItem, SolidDropdownMenuSeparator, SolidDropdownMenuSub, SolidDropdownMenuSubContent, SolidDropdownMenuSubTrigger, SolidDropdownMenuTrigger, } from "../../shad-cn-ui";
17
18
  export var SolidListViewConfigure = function (_a) {
18
- var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w;
19
+ var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x;
19
20
  var listViewMetaData = _a.listViewMetaData, solidListViewLayout = _a.solidListViewLayout, setShowArchived = _a.setShowArchived, showArchived = _a.showArchived, viewData = _a.viewData, sizeOptions = _a.sizeOptions, setSize = _a.setSize, size = _a.size, viewModes = _a.viewModes, params = _a.params, actionsAllowed = _a.actionsAllowed, selectedRecords = _a.selectedRecords, setDialogVisible = _a.setDialogVisible, setShowSaveFilterPopup = _a.setShowSaveFilterPopup, filters = _a.filters, handleFetchUpdatedRecords = _a.handleFetchUpdatedRecords, setRecoverDialogVisible = _a.setRecoverDialogVisible;
20
21
  // const [visible, setVisible] = useState<boolean>(false);
21
22
  var handleCustomButtonClick = useHandleListCustomButtonClick();
22
- var _x = useState(false), openImportDialog = _x[0], setOpenImportDialog = _x[1];
23
+ var _y = useState(false), openImportDialog = _y[0], setOpenImportDialog = _y[1];
23
24
  var pathname = usePathname();
24
25
  var router = useRouter();
25
- var _y = useState(""), view = _y[0], setView = _y[1];
26
- var _z = useState(false), exportView = _z[0], setExportView = _z[1];
27
- var _0 = useState(false), isCogMenuOpen = _0[0], setIsCogMenuOpen = _0[1];
28
- var _1 = useState(false), showColumnSelectorDialog = _1[0], setShowColumnSelectorDialog = _1[1];
26
+ var _z = useState(""), view = _z[0], setView = _z[1];
27
+ var _0 = useState(false), exportView = _0[0], setExportView = _0[1];
28
+ var _1 = useState(false), isCogMenuOpen = _1[0], setIsCogMenuOpen = _1[1];
29
+ var _2 = useState(false), showColumnSelectorDialog = _2[0], setShowColumnSelectorDialog = _2[1];
29
30
  var handleViewChange = function (newView) {
30
31
  if (view === newView.type)
31
32
  return; // Prevent unnecessary updates
@@ -60,7 +61,7 @@ export var SolidListViewConfigure = function (_a) {
60
61
  savedFilters: normalizeAction(headerActions.savedFilters),
61
62
  };
62
63
  // Role checks
63
- var _2 = useSession(), session = _2.data, status = _2.status;
64
+ var _3 = useSession(), session = _3.data, status = _3.status;
64
65
  var user = session === null || session === void 0 ? void 0 : session.user;
65
66
  var useRoleCheck = function (roles) { return hasAnyRole(user === null || user === void 0 ? void 0 : user.roles, roles); };
66
67
  // Map of action → roleCheck
@@ -131,7 +132,7 @@ export var SolidListViewConfigure = function (_a) {
131
132
  isHeaderActionEnabled('export') && actionsAllowed.includes("".concat(permissionExpression(params.modelName, 'findMany'))) && actionsAllowed.includes("".concat(permissionExpression('exportTransaction', 'create'))) ||
132
133
  isHeaderActionEnabled('customizeLayout') && actionsAllowed.includes("".concat(permissionExpression('userViewMetadata', 'create'))) ||
133
134
  isHeaderActionEnabled('savedFilters') && actionsAllowed.includes("".concat(permissionExpression('savedFilters', 'create'))) ||
134
- ((_h = (_g = solidListViewLayout === null || solidListViewLayout === void 0 ? void 0 : solidListViewLayout.attrs) === null || _g === void 0 ? void 0 : _g.headerButtons) === null || _h === void 0 ? void 0 : _h.some(function (rb) { return rb.attrs.actionInContextMenu === true; })) ||
135
+ ((_h = (_g = solidListViewLayout === null || solidListViewLayout === void 0 ? void 0 : solidListViewLayout.attrs) === null || _g === void 0 ? void 0 : _g.headerButtons) === null || _h === void 0 ? void 0 : _h.some(function (rb) { return rb.attrs.actionInContextMenu === true && isButtonVisibleInCurrentEnv(rb === null || rb === void 0 ? void 0 : rb.attrs); })) ||
135
136
  ((_l = (_k = (_j = viewData === null || viewData === void 0 ? void 0 : viewData.data) === null || _j === void 0 ? void 0 : _j.solidView) === null || _k === void 0 ? void 0 : _k.model) === null || _l === void 0 ? void 0 : _l.enableSoftDelete)) && (_jsxs(_Fragment, { children: [actionsAllowed.includes("".concat(permissionExpression(params.modelName, 'deleteMany'))) && ((_q = (_p = (_o = (_m = viewData === null || viewData === void 0 ? void 0 : viewData.data) === null || _m === void 0 ? void 0 : _m.solidView) === null || _o === void 0 ? void 0 : _o.layout) === null || _p === void 0 ? void 0 : _p.attrs) === null || _q === void 0 ? void 0 : _q.delete) !== false && selectedRecords.length > 0 && (_jsxs(SolidDropdownMenuItem, { className: "solid-header-dropdown-item solid-header-dropdown-item-danger", onSelect: function () {
136
137
  setDialogVisible(true);
137
138
  setIsCogMenuOpen(false);
@@ -141,7 +142,7 @@ export var SolidListViewConfigure = function (_a) {
141
142
  }, children: [_jsx(Download, { size: 14, className: "solid-header-action-button-icon" }), _jsx("span", { className: "solid-header-action-button-label", children: "Import" })] })), isHeaderActionEnabled("export") && actionsAllowed.includes("".concat(permissionExpression(params.modelName, 'findMany'))) && actionsAllowed.includes("".concat(permissionExpression('exportTransaction', 'create'))) && (_jsxs(SolidDropdownMenuItem, { className: "solid-header-dropdown-item", onSelect: function () {
142
143
  setExportView(function (current) { return !current; });
143
144
  setIsCogMenuOpen(false);
144
- }, children: [_jsx(Upload, { size: 14, className: "solid-header-action-button-icon" }), _jsx("span", { className: "solid-header-action-button-label", children: "Export" })] })), (_t = (_s = (_r = solidListViewLayout === null || solidListViewLayout === void 0 ? void 0 : solidListViewLayout.attrs) === null || _r === void 0 ? void 0 : _r.headerButtons) === null || _s === void 0 ? void 0 : _s.filter(function (rb) { return rb.attrs.actionInContextMenu === true; })) === null || _t === void 0 ? void 0 : _t.map(function (button, index) { return (_jsx(SolidListViewHeaderContextMenuButton, { button: button, params: params, solidListViewMetaData: listViewMetaData, handleCustomButtonClick: handleCustomButtonClick, onActionComplete: function () { return setIsCogMenuOpen(false); } }, index)); }), ((_w = (_v = (_u = viewData === null || viewData === void 0 ? void 0 : viewData.data) === null || _u === void 0 ? void 0 : _u.solidView) === null || _v === void 0 ? void 0 : _v.model) === null || _w === void 0 ? void 0 : _w.enableSoftDelete) && (_jsx(SolidDropdownMenuCheckboxItem, { checked: showArchived, onCheckedChange: function () { return setShowArchived(!showArchived); }, children: "Show Archived Records" })), showArchived && (_jsxs(SolidDropdownMenuItem, { className: "solid-header-dropdown-item lg:hidden", onSelect: function () {
145
+ }, children: [_jsx(Upload, { size: 14, className: "solid-header-action-button-icon" }), _jsx("span", { className: "solid-header-action-button-label", children: "Export" })] })), (_u = (_t = (_s = (_r = solidListViewLayout === null || solidListViewLayout === void 0 ? void 0 : solidListViewLayout.attrs) === null || _r === void 0 ? void 0 : _r.headerButtons) === null || _s === void 0 ? void 0 : _s.filter(function (rb) { return isButtonVisibleInCurrentEnv(rb === null || rb === void 0 ? void 0 : rb.attrs); })) === null || _t === void 0 ? void 0 : _t.filter(function (rb) { return rb.attrs.actionInContextMenu === true; })) === null || _u === void 0 ? void 0 : _u.map(function (button, index) { return (_jsx(SolidListViewHeaderContextMenuButton, { button: button, params: params, solidListViewMetaData: listViewMetaData, handleCustomButtonClick: handleCustomButtonClick, onActionComplete: function () { return setIsCogMenuOpen(false); } }, index)); }), ((_x = (_w = (_v = viewData === null || viewData === void 0 ? void 0 : viewData.data) === null || _v === void 0 ? void 0 : _v.solidView) === null || _w === void 0 ? void 0 : _w.model) === null || _x === void 0 ? void 0 : _x.enableSoftDelete) && (_jsx(SolidDropdownMenuCheckboxItem, { checked: showArchived, onCheckedChange: function () { return setShowArchived(!showArchived); }, children: "Show Archived Records" })), showArchived && (_jsxs(SolidDropdownMenuItem, { className: "solid-header-dropdown-item lg:hidden", onSelect: function () {
145
146
  setRecoverDialogVisible(true);
146
147
  setIsCogMenuOpen(false);
147
148
  }, children: [_jsx(RefreshCw, { size: 14, className: "solid-header-action-button-icon" }), _jsx("span", { className: "solid-header-action-button-label", children: "Recover" })] })), (isHeaderActionEnabled('customizeLayout') && actionsAllowed.includes("".concat(permissionExpression('userViewMetadata', 'create'))) ||
@@ -155,7 +156,7 @@ export var SolidListViewConfigure = function (_a) {
155
156
  }, children: [_jsx(Save, { size: 14, className: "solid-header-action-button-icon" }), _jsx("span", { className: "solid-header-action-button-label", children: "Save Custom Filter" })] })), _jsxs(SolidDropdownMenuItem, { className: "solid-header-dropdown-item", onSelect: function () {
156
157
  clearLocalstorageCache();
157
158
  setIsCogMenuOpen(false);
158
- }, children: [_jsx(Trash2, { size: 14, className: "solid-header-action-button-icon" }), _jsx("span", { className: "solid-header-action-button-label", children: "Clear cache" })] })] })) })] }), _jsxs(SolidDialog, { open: exportView, onOpenChange: setExportView, className: "solid-kanban-export-dialog solid-list-export-dialog", style: { width: "min(980px, calc(100vw - 32px))" }, children: [_jsxs(SolidDialogHeader, { className: "solid-export-dialog-header", children: [_jsxs("div", { children: [_jsx(SolidDialogTitle, { children: "Export" }), _jsx(SolidDialogDescription, { className: "solid-filter-dialog-subtitle m-0", children: "Choose the file format, refine the field set, and save reusable export templates." })] }), _jsx(SolidDialogClose, {})] }), _jsx(SolidDialogSeparator, {}), _jsx(SolidDialogBody, { className: "solid-kanban-export-dialog-body", children: _jsx(SolidExport, { listViewMetaData: listViewMetaData, filters: filters }) })] }), _jsxs(SolidDialog, { open: showColumnSelectorDialog, onOpenChange: setShowColumnSelectorDialog, className: "solid-column-selector-dialog", style: { width: "min(388px, calc(100vw - 2rem))" }, children: [_jsxs(SolidDialogHeader, { className: "solid-filter-dialog-head", children: [_jsxs("div", { children: [_jsx(SolidDialogTitle, { className: "solid-filter-dialog-title m-0", children: "Column Selector" }), _jsx(SolidDialogDescription, { className: "solid-filter-dialog-subtitle m-0", children: "Choose visible columns and reorder them for this list view." })] }), _jsx(SolidDialogClose, { className: "solid-filter-dialog-close" })] }), _jsx(SolidDialogSeparator, { className: "solid-filter-dialog-sep" }), _jsx(SolidDialogBody, { className: "solid-filter-dialog-body", children: _jsx(SolidListColumnSelector, { listViewMetaData: listViewMetaData, onClose: function () { return setShowColumnSelectorDialog(false); } }) })] }), openImportDialog &&
159
+ }, children: [_jsx(Trash2, { size: 14, className: "solid-header-action-button-icon" }), _jsx("span", { className: "solid-header-action-button-label", children: "Reset View" })] })] })) })] }), _jsxs(SolidDialog, { open: exportView, onOpenChange: setExportView, className: "solid-kanban-export-dialog solid-list-export-dialog", style: { width: "min(980px, calc(100vw - 32px))" }, children: [_jsxs(SolidDialogHeader, { className: "solid-export-dialog-header", children: [_jsxs("div", { children: [_jsx(SolidDialogTitle, { children: "Export" }), _jsx(SolidDialogDescription, { className: "solid-filter-dialog-subtitle m-0", children: "Choose the file format, refine the field set, and save reusable export templates." })] }), _jsx(SolidDialogClose, {})] }), _jsx(SolidDialogSeparator, {}), _jsx(SolidDialogBody, { className: "solid-kanban-export-dialog-body", children: _jsx(SolidExport, { listViewMetaData: listViewMetaData, filters: filters, onExportComplete: function () { return setExportView(false); } }) })] }), _jsxs(SolidDialog, { open: showColumnSelectorDialog, onOpenChange: setShowColumnSelectorDialog, className: "solid-column-selector-dialog", style: { width: "min(388px, calc(100vw - 2rem))" }, children: [_jsxs(SolidDialogHeader, { className: "solid-filter-dialog-head", children: [_jsxs("div", { children: [_jsx(SolidDialogTitle, { className: "solid-filter-dialog-title m-0", children: "Column Selector" }), _jsx(SolidDialogDescription, { className: "solid-filter-dialog-subtitle m-0", children: "Choose visible columns and reorder them for this list view." })] }), _jsx(SolidDialogClose, { className: "solid-filter-dialog-close" })] }), _jsx(SolidDialogSeparator, { className: "solid-filter-dialog-sep" }), _jsx(SolidDialogBody, { className: "solid-filter-dialog-body", children: _jsx(SolidListColumnSelector, { listViewMetaData: listViewMetaData, onClose: function () { return setShowColumnSelectorDialog(false); } }) })] }), openImportDialog &&
159
160
  _jsx(SolidGenericImport, { openImportDialog: openImportDialog, setOpenImportDialog: setOpenImportDialog, listViewMetaData: listViewMetaData, handleFetchUpdatedRecords: handleFetchUpdatedRecords })] }));
160
161
  };
161
162
  //# sourceMappingURL=SolidListViewConfigure.js.map