@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
@@ -1,8 +1,11 @@
1
1
  import * as React from "react";
2
+ import { createPortal } from "react-dom";
2
3
 
3
4
  type SolidPopoverContextValue = {
4
5
  open: boolean;
5
6
  setOpen: (open: boolean) => void;
7
+ rootRef: React.MutableRefObject<HTMLDivElement | null>;
8
+ contentRef: React.MutableRefObject<HTMLDivElement | null>;
6
9
  };
7
10
 
8
11
  const SolidPopoverContext = React.createContext<SolidPopoverContextValue | null>(null);
@@ -12,10 +15,19 @@ function cx(...parts: Array<string | false | undefined>) {
12
15
  return parts.filter(Boolean).join(" ");
13
16
  }
14
17
 
18
+ function assignRef<T>(ref: React.ForwardedRef<T>, value: T) {
19
+ if (typeof ref === "function") {
20
+ ref(value);
21
+ } else if (ref && typeof ref === "object") {
22
+ ref.current = value;
23
+ }
24
+ }
25
+
15
26
  type SolidPopoverContentProps = React.HTMLAttributes<HTMLDivElement> & {
16
27
  sideOffset?: number;
17
28
  align?: "start" | "center" | "end";
18
29
  side?: "top" | "right" | "bottom" | "left";
30
+ portal?: boolean;
19
31
  };
20
32
 
21
33
  type SolidPopoverContentStyle = React.CSSProperties & {
@@ -29,6 +41,83 @@ type SolidPopoverProps = {
29
41
  autoCloseGroup?: string;
30
42
  };
31
43
 
44
+ type PopoverPosition = {
45
+ left: number;
46
+ top: number;
47
+ side: "top" | "right" | "bottom" | "left";
48
+ };
49
+
50
+ const POPOVER_VIEWPORT_OFFSET = 8;
51
+ const POPOVER_PORTAL_Z_INDEX = 100000;
52
+
53
+ function clamp(value: number, min: number, max: number) {
54
+ return Math.min(Math.max(value, min), max);
55
+ }
56
+
57
+ function resolvePopoverPosition({
58
+ triggerRect,
59
+ contentRect,
60
+ side,
61
+ align,
62
+ sideOffset,
63
+ }: {
64
+ triggerRect: DOMRect;
65
+ contentRect: DOMRect;
66
+ side: "top" | "right" | "bottom" | "left";
67
+ align: "start" | "center" | "end";
68
+ sideOffset: number;
69
+ }): PopoverPosition {
70
+ const viewportWidth = window.innerWidth;
71
+ const viewportHeight = window.innerHeight;
72
+ const availableTop = triggerRect.top;
73
+ const availableBottom = viewportHeight - triggerRect.bottom;
74
+ const availableLeft = triggerRect.left;
75
+ const availableRight = viewportWidth - triggerRect.right;
76
+
77
+ let resolvedSide = side;
78
+
79
+ if (side === "bottom" && availableBottom < contentRect.height + sideOffset && availableTop > availableBottom) {
80
+ resolvedSide = "top";
81
+ } else if (side === "top" && availableTop < contentRect.height + sideOffset && availableBottom > availableTop) {
82
+ resolvedSide = "bottom";
83
+ } else if (side === "right" && availableRight < contentRect.width + sideOffset && availableLeft > availableRight) {
84
+ resolvedSide = "left";
85
+ } else if (side === "left" && availableLeft < contentRect.width + sideOffset && availableRight > availableLeft) {
86
+ resolvedSide = "right";
87
+ }
88
+
89
+ let top = triggerRect.bottom + sideOffset;
90
+ let left = triggerRect.left;
91
+
92
+ if (resolvedSide === "bottom" || resolvedSide === "top") {
93
+ if (align === "center") {
94
+ left = triggerRect.left + (triggerRect.width / 2) - (contentRect.width / 2);
95
+ } else if (align === "end") {
96
+ left = triggerRect.right - contentRect.width;
97
+ }
98
+
99
+ top = resolvedSide === "bottom"
100
+ ? triggerRect.bottom + sideOffset
101
+ : triggerRect.top - contentRect.height - sideOffset;
102
+ } else {
103
+ if (align === "center") {
104
+ top = triggerRect.top + (triggerRect.height / 2) - (contentRect.height / 2);
105
+ } else if (align === "end") {
106
+ top = triggerRect.bottom - contentRect.height;
107
+ }
108
+
109
+ left = resolvedSide === "right"
110
+ ? triggerRect.right + sideOffset
111
+ : triggerRect.left - contentRect.width - sideOffset;
112
+ }
113
+
114
+ return {
115
+ left: clamp(left, POPOVER_VIEWPORT_OFFSET, Math.max(POPOVER_VIEWPORT_OFFSET, viewportWidth - contentRect.width - POPOVER_VIEWPORT_OFFSET)),
116
+ top: clamp(top, POPOVER_VIEWPORT_OFFSET, Math.max(POPOVER_VIEWPORT_OFFSET, viewportHeight - contentRect.height - POPOVER_VIEWPORT_OFFSET)),
117
+ side: resolvedSide,
118
+ };
119
+ }
120
+
32
121
  export function SolidPopover({
33
122
  open,
34
123
  onOpenChange,
@@ -36,6 +125,7 @@ export function SolidPopover({
36
125
  autoCloseGroup,
37
126
  }: SolidPopoverProps) {
38
127
  const rootRef = React.useRef<HTMLDivElement | null>(null);
128
+ const contentRef = React.useRef<HTMLDivElement | null>(null);
39
129
  const popoverId = React.useId();
40
130
  const [internalOpen, setInternalOpen] = React.useState(false);
41
131
  const isControlled = typeof open === "boolean";
@@ -71,7 +161,9 @@ export function SolidPopover({
71
161
  if (!currentOpen || typeof document === "undefined") return;
72
162
  const handlePointerDown = (event: MouseEvent) => {
73
163
  const root = rootRef.current;
74
- if (!root || root.contains(event.target as Node)) return;
164
+ const content = contentRef.current;
165
+ const target = event.target as Node;
166
+ if (!root || root.contains(target) || content?.contains(target)) return;
75
167
  handleSetOpen(false);
76
168
  };
77
169
  document.addEventListener("pointerdown", handlePointerDown);
@@ -81,7 +173,7 @@ export function SolidPopover({
81
173
  }, [currentOpen, handleSetOpen]);
82
174
 
83
175
  return (
84
- <SolidPopoverContext.Provider value={{ open: currentOpen, setOpen: handleSetOpen }}>
176
+ <SolidPopoverContext.Provider value={{ open: currentOpen, setOpen: handleSetOpen, rootRef, contentRef }}>
85
177
  <div className="solid-popover-root" ref={rootRef}>
86
178
  {children}
87
179
  </div>
@@ -121,29 +213,100 @@ export function SolidPopoverTrigger({
121
213
  }
122
214
 
123
215
  export const SolidPopoverContent = React.forwardRef<HTMLDivElement, SolidPopoverContentProps>(function SolidPopoverContent(
124
- { className, children, sideOffset = 4, align = "end", side = "bottom", style, ...props },
216
+ { className, children, sideOffset = 4, align = "end", side = "bottom", style, portal = true, ...props },
125
217
  ref
126
218
  ) {
127
219
  const ctx = React.useContext(SolidPopoverContext);
128
220
  if (!ctx || !ctx.open) return null;
129
221
 
222
+ const localRef = React.useRef<HTMLDivElement | null>(null);
223
+ const [portalPosition, setPortalPosition] = React.useState<PopoverPosition | null>(null);
224
+
225
+ const attachRef = React.useCallback((node: HTMLDivElement | null) => {
226
+ localRef.current = node;
227
+ ctx.contentRef.current = node;
228
+ assignRef(ref, node);
229
+ }, [ctx.contentRef, ref]);
230
+
231
+ React.useLayoutEffect(() => {
232
+ if (!portal || typeof window === "undefined") {
233
+ setPortalPosition(null);
234
+ return;
235
+ }
236
+
237
+ const updatePosition = () => {
238
+ const trigger = ctx.rootRef.current;
239
+ const content = localRef.current;
240
+ if (!trigger || !content) return;
241
+
242
+ const triggerRect = trigger.getBoundingClientRect();
243
+ const contentRect = content.getBoundingClientRect();
244
+ const nextPosition = resolvePopoverPosition({ triggerRect, contentRect, side, align, sideOffset });
245
+
246
+ setPortalPosition(nextPosition);
247
+ };
248
+
249
+ const rafId = window.requestAnimationFrame(updatePosition);
250
+ window.addEventListener("resize", updatePosition);
251
+ window.addEventListener("scroll", updatePosition, true);
252
+
253
+ const observer = typeof ResizeObserver !== "undefined"
254
+ ? new ResizeObserver(() => updatePosition())
255
+ : null;
256
+
257
+ if (observer) {
258
+ if (ctx.rootRef.current) observer.observe(ctx.rootRef.current);
259
+ if (localRef.current) observer.observe(localRef.current);
260
+ }
261
+
262
+ return () => {
263
+ window.cancelAnimationFrame(rafId);
264
+ window.removeEventListener("resize", updatePosition);
265
+ window.removeEventListener("scroll", updatePosition, true);
266
+ observer?.disconnect();
267
+ };
268
+ }, [align, ctx.rootRef, portal, side, sideOffset]);
269
+
130
270
  const offsetValue = `${sideOffset}px`;
131
- const contentStyle: SolidPopoverContentStyle = {
132
- ...(style ?? {}),
133
- ["--solid-popover-side-offset"]: offsetValue,
134
- };
271
+ const contentStyle = React.useMemo<SolidPopoverContentStyle>(() => {
272
+ if (!portal) {
273
+ return {
274
+ ...(style ?? {}),
275
+ ["--solid-popover-side-offset"]: offsetValue,
276
+ };
277
+ }
135
278
 
136
- return (
279
+ return {
280
+ ...(style ?? {}),
281
+ ["--solid-popover-side-offset"]: offsetValue,
282
+ position: "fixed",
283
+ top: portalPosition?.top ?? 0,
284
+ left: portalPosition?.left ?? 0,
285
+ right: "auto",
286
+ bottom: "auto",
287
+ transform: "none",
288
+ zIndex: POPOVER_PORTAL_Z_INDEX,
289
+ pointerEvents: "auto",
290
+ visibility: portalPosition ? "visible" : "hidden",
291
+ };
292
+ }, [offsetValue, portal, portalPosition, style]);
293
+
294
+ const content = (
137
295
  <div
138
- ref={ref}
296
+ ref={attachRef}
139
297
  className={cx("solid-popover-content", className)}
140
298
  role="dialog"
141
299
  data-align={align}
142
- data-side={side}
300
+ data-side={portalPosition?.side ?? side}
301
+ data-portal={portal ? "true" : "false"}
143
302
  style={contentStyle}
144
303
  {...props}
145
304
  >
146
305
  {children}
147
306
  </div>
148
307
  );
308
+
309
+ return portal && typeof document !== "undefined"
310
+ ? createPortal(content, document.body)
311
+ : content;
149
312
  });
@@ -11,7 +11,8 @@ type SolidSelectProps = {
11
11
  value: any;
12
12
  }) => void;
13
13
  id?: string;
14
+ native?: boolean;
14
15
  };
15
- export declare function SolidSelect({ value, options, optionLabel, optionValue, placeholder, className, disabled, onChange, id, }: SolidSelectProps): import("react/jsx-runtime").JSX.Element;
16
+ export declare function SolidSelect({ value, options, optionLabel, optionValue, placeholder, className, disabled, onChange, id, native, }: SolidSelectProps): import("react/jsx-runtime").JSX.Element;
16
17
  export {};
17
18
  //# sourceMappingURL=SolidSelect.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SolidSelect.d.ts","sourceRoot":"","sources":["../../../src/components/shad-cn-ui/SolidSelect.tsx"],"names":[],"mappings":"AAGA,KAAK,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAE7C,KAAK,gBAAgB,GAAG;IACtB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,OAAO,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,KAAK,EAAE,GAAG,CAAA;KAAE,KAAK,IAAI,CAAC;IAC3C,EAAE,CAAC,EAAE,MAAM,CAAC;CACb,CAAC;AAMF,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,OAAY,EACZ,WAAqB,EACrB,WAAqB,EACrB,WAAW,EACX,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,EAAE,GACH,EAAE,gBAAgB,2CAoClB"}
1
+ {"version":3,"file":"SolidSelect.d.ts","sourceRoot":"","sources":["../../../src/components/shad-cn-ui/SolidSelect.tsx"],"names":[],"mappings":"AAGA,KAAK,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAE7C,KAAK,gBAAgB,GAAG;IACtB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,OAAO,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAC9B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE;QAAE,KAAK,EAAE,GAAG,CAAA;KAAE,KAAK,IAAI,CAAC;IAC3C,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,OAAO,CAAC;CAClB,CAAC;AAMF,wBAAgB,WAAW,CAAC,EAC1B,KAAK,EACL,OAAY,EACZ,WAAqB,EACrB,WAAqB,EACrB,WAAW,EACX,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,EAAE,EACF,MAAa,GACd,EAAE,gBAAgB,2CAiIlB"}
@@ -1,4 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import React from "react";
2
3
  import { ChevronDown } from "lucide-react";
3
4
  function cx() {
4
5
  var parts = [];
@@ -8,7 +9,11 @@ function cx() {
8
9
  return parts.filter(Boolean).join(" ");
9
10
  }
10
11
  export function SolidSelect(_a) {
11
- var value = _a.value, _b = _a.options, options = _b === void 0 ? [] : _b, _c = _a.optionLabel, optionLabel = _c === void 0 ? "label" : _c, _d = _a.optionValue, optionValue = _d === void 0 ? "value" : _d, placeholder = _a.placeholder, className = _a.className, disabled = _a.disabled, onChange = _a.onChange, id = _a.id;
12
+ var value = _a.value, _b = _a.options, options = _b === void 0 ? [] : _b, _c = _a.optionLabel, optionLabel = _c === void 0 ? "label" : _c, _d = _a.optionValue, optionValue = _d === void 0 ? "value" : _d, placeholder = _a.placeholder, className = _a.className, disabled = _a.disabled, onChange = _a.onChange, id = _a.id, _e = _a.native, native = _e === void 0 ? true : _e;
13
+ var _f = React.useState(false), open = _f[0], setOpen = _f[1];
14
+ var _g = React.useState(false), openUpward = _g[0], setOpenUpward = _g[1];
15
+ var rootRef = React.useRef(null);
16
+ var menuRef = React.useRef(null);
12
17
  var normalized = options.map(function (option, index) {
13
18
  var _a;
14
19
  return ({
@@ -19,6 +24,51 @@ export function SolidSelect(_a) {
19
24
  });
20
25
  var selectedIndex = normalized.findIndex(function (item) { return item.value === value; });
21
26
  var selectedKey = selectedIndex >= 0 ? normalized[selectedIndex].key : "";
27
+ var selectedOption = selectedIndex >= 0 ? normalized[selectedIndex] : null;
28
+ React.useEffect(function () {
29
+ if (!open)
30
+ return;
31
+ var handlePointerDown = function (event) {
32
+ var _a;
33
+ if (!((_a = rootRef.current) === null || _a === void 0 ? void 0 : _a.contains(event.target))) {
34
+ setOpen(false);
35
+ }
36
+ };
37
+ var handleEscape = function (event) {
38
+ if (event.key === "Escape") {
39
+ setOpen(false);
40
+ }
41
+ };
42
+ document.addEventListener("mousedown", handlePointerDown);
43
+ document.addEventListener("touchstart", handlePointerDown);
44
+ document.addEventListener("keydown", handleEscape);
45
+ return function () {
46
+ document.removeEventListener("mousedown", handlePointerDown);
47
+ document.removeEventListener("touchstart", handlePointerDown);
48
+ document.removeEventListener("keydown", handleEscape);
49
+ };
50
+ }, [open]);
51
+ React.useLayoutEffect(function () {
52
+ if (!open || native || !rootRef.current || !menuRef.current)
53
+ return;
54
+ var rootRect = rootRef.current.getBoundingClientRect();
55
+ var menuHeight = menuRef.current.offsetHeight;
56
+ var viewportHeight = window.innerHeight;
57
+ var spaceBelow = viewportHeight - rootRect.bottom;
58
+ var spaceAbove = rootRect.top;
59
+ var needsOpenUpward = spaceBelow < menuHeight + 8 && spaceAbove > spaceBelow;
60
+ setOpenUpward(needsOpenUpward);
61
+ }, [open, native, options.length]);
62
+ if (!native) {
63
+ return (_jsxs("div", { ref: rootRef, className: cx("solid-select-wrap", "solid-select-wrap-custom", className), children: [_jsxs("button", { id: id, type: "button", className: "solid-select solid-select-trigger", disabled: disabled, "aria-haspopup": "listbox", "aria-expanded": open, onClick: function () {
64
+ if (disabled)
65
+ return;
66
+ setOpen(function (prev) { return !prev; });
67
+ }, children: [_jsx("span", { className: cx("solid-select-trigger-label", !selectedOption && "solid-select-placeholder"), children: (selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.label) || placeholder || "Select" }), _jsx("span", { className: "solid-select-icon", "aria-hidden": "true", children: _jsx(ChevronDown, { size: 14 }) })] }), open ? (_jsx("div", { ref: menuRef, className: cx("solid-select-menu", openUpward && "solid-select-menu-top"), role: "listbox", children: normalized.map(function (item) { return (_jsx("button", { type: "button", role: "option", className: cx("solid-select-menu-item", item.value === value && "is-selected"), "aria-selected": item.value === value, onClick: function () {
68
+ onChange === null || onChange === void 0 ? void 0 : onChange({ value: item.value });
69
+ setOpen(false);
70
+ }, children: item.label }, item.key)); }) })) : null] }));
71
+ }
22
72
  return (_jsxs("div", { className: cx("solid-select-wrap", className), children: [_jsxs("select", { id: id, className: "solid-select", value: selectedKey, disabled: disabled, onChange: function (event) {
23
73
  var next = normalized.find(function (item) { return item.key === event.target.value; });
24
74
  onChange === null || onChange === void 0 ? void 0 : onChange({ value: next === null || next === void 0 ? void 0 : next.value });
@@ -1 +1 @@
1
- {"version":3,"file":"SolidSelect.js","sourceRoot":"","sources":["../../../src/components/shad-cn-ui/SolidSelect.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAgB3C,SAAS,EAAE;IAAC,eAA2C;SAA3C,UAA2C,EAA3C,qBAA2C,EAA3C,IAA2C;QAA3C,0BAA2C;;IACrD,OAAO,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACzC,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,EAUT;QATjB,KAAK,WAAA,EACL,eAAY,EAAZ,OAAO,mBAAG,EAAE,KAAA,EACZ,mBAAqB,EAArB,WAAW,mBAAG,OAAO,KAAA,EACrB,mBAAqB,EAArB,WAAW,mBAAG,OAAO,KAAA,EACrB,WAAW,iBAAA,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,EACR,UAAU,CAAC,GAAG,CAAC,UAAC,IAAI,IAAK,OAAA,CACxB,iBAAuB,KAAK,EAAE,IAAI,CAAC,GAAG,YACnC,IAAI,CAAC,KAAK,IADA,IAAI,CAAC,GAAG,CAEZ,CACV,EAJyB,CAIzB,CAAC,IACK,EACT,eAAM,SAAS,EAAC,mBAAmB,iBAAa,MAAM,YACpD,KAAC,WAAW,IAAC,IAAI,EAAE,EAAE,GAAI,GACpB,IACH,CACP,CAAC;AACJ,CAAC","sourcesContent":["import React from \"react\";\nimport { ChevronDown } from \"lucide-react\";\n\ntype SolidSelectOption = Record<string, any>;\n\ntype SolidSelectProps = {\n value?: any;\n options?: SolidSelectOption[];\n optionLabel?: string;\n optionValue?: string;\n placeholder?: string;\n className?: string;\n disabled?: boolean;\n onChange?: (event: { value: any }) => void;\n id?: string;\n};\n\nfunction cx(...parts: Array<string | false | undefined>) {\n return parts.filter(Boolean).join(\" \");\n}\n\nexport function SolidSelect({\n value,\n options = [],\n optionLabel = \"label\",\n optionValue = \"value\",\n placeholder,\n className,\n disabled,\n onChange,\n id,\n}: SolidSelectProps) {\n const normalized = options.map((option, index) => ({\n key: String(index),\n label: option?.[optionLabel] ?? \"\",\n value: option?.[optionValue],\n }));\n\n const selectedIndex = normalized.findIndex((item) => item.value === value);\n const selectedKey = selectedIndex >= 0 ? normalized[selectedIndex].key : \"\";\n\n return (\n <div className={cx(\"solid-select-wrap\", className)}>\n <select\n id={id}\n className=\"solid-select\"\n value={selectedKey}\n disabled={disabled}\n onChange={(event) => {\n const next = normalized.find((item) => item.key === event.target.value);\n onChange?.({ value: next?.value });\n }}\n >\n <option value=\"\" disabled>\n {placeholder || \"Select\"}\n </option>\n {normalized.map((item) => (\n <option key={item.key} value={item.key}>\n {item.label}\n </option>\n ))}\n </select>\n <span className=\"solid-select-icon\" aria-hidden=\"true\">\n <ChevronDown size={14} />\n </span>\n </div>\n );\n}\n"]}
1
+ {"version":3,"file":"SolidSelect.js","sourceRoot":"","sources":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,KAAK,EAA/B,CAA+B,CAAC,CAAC;oBACxE,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAG,EAAE,KAAK,EAAE,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,EAAE,CAAC,CAAC;gBACrC,CAAC,aAED,iBAAQ,KAAK,EAAC,EAAE,EAAC,QAAQ,kBACtB,WAAW,IAAI,QAAQ,GACjB,EACR,UAAU,CAAC,GAAG,CAAC,UAAC,IAAI,IAAK,OAAA,CACxB,iBAAuB,KAAK,EAAE,IAAI,CAAC,GAAG,YACnC,IAAI,CAAC,KAAK,IADA,IAAI,CAAC,GAAG,CAEZ,CACV,EAJyB,CAIzB,CAAC,IACK,EACT,eAAM,SAAS,EAAC,mBAAmB,iBAAa,MAAM,YACpD,KAAC,WAAW,IAAC,IAAI,EAAE,EAAE,GAAI,GACpB,IACH,CACP,CAAC;AACJ,CAAC","sourcesContent":["import React from \"react\";\nimport { ChevronDown } from \"lucide-react\";\n\ntype SolidSelectOption = Record<string, any>;\n\ntype SolidSelectProps = {\n value?: any;\n options?: SolidSelectOption[];\n optionLabel?: string;\n optionValue?: string;\n placeholder?: string;\n className?: string;\n disabled?: boolean;\n onChange?: (event: { value: any }) => void;\n id?: string;\n native?: boolean;\n};\n\nfunction cx(...parts: Array<string | false | undefined>) {\n return parts.filter(Boolean).join(\" \");\n}\n\nexport function SolidSelect({\n value,\n options = [],\n optionLabel = \"label\",\n optionValue = \"value\",\n placeholder,\n className,\n disabled,\n onChange,\n id,\n native = true,\n}: SolidSelectProps) {\n const [open, setOpen] = React.useState(false);\n const [openUpward, setOpenUpward] = React.useState(false);\n const rootRef = React.useRef<HTMLDivElement | null>(null);\n const menuRef = React.useRef<HTMLDivElement | null>(null);\n const normalized = options.map((option, index) => ({\n key: String(index),\n label: option?.[optionLabel] ?? \"\",\n value: option?.[optionValue],\n }));\n\n const selectedIndex = normalized.findIndex((item) => item.value === value);\n const selectedKey = selectedIndex >= 0 ? normalized[selectedIndex].key : \"\";\n const selectedOption = selectedIndex >= 0 ? normalized[selectedIndex] : null;\n\n React.useEffect(() => {\n if (!open) return;\n\n const handlePointerDown = (event: MouseEvent | TouchEvent) => {\n if (!rootRef.current?.contains(event.target as Node)) {\n setOpen(false);\n }\n };\n\n const handleEscape = (event: KeyboardEvent) => {\n if (event.key === \"Escape\") {\n setOpen(false);\n }\n };\n\n document.addEventListener(\"mousedown\", handlePointerDown);\n document.addEventListener(\"touchstart\", handlePointerDown);\n document.addEventListener(\"keydown\", handleEscape);\n\n return () => {\n document.removeEventListener(\"mousedown\", handlePointerDown);\n document.removeEventListener(\"touchstart\", handlePointerDown);\n document.removeEventListener(\"keydown\", handleEscape);\n };\n }, [open]);\n\n React.useLayoutEffect(() => {\n if (!open || native || !rootRef.current || !menuRef.current) return;\n\n const rootRect = rootRef.current.getBoundingClientRect();\n const menuHeight = menuRef.current.offsetHeight;\n const viewportHeight = window.innerHeight;\n const spaceBelow = viewportHeight - rootRect.bottom;\n const spaceAbove = rootRect.top;\n const needsOpenUpward = spaceBelow < menuHeight + 8 && spaceAbove > spaceBelow;\n\n setOpenUpward(needsOpenUpward);\n }, [open, native, options.length]);\n\n if (!native) {\n return (\n <div ref={rootRef} className={cx(\"solid-select-wrap\", \"solid-select-wrap-custom\", className)}>\n <button\n id={id}\n type=\"button\"\n className=\"solid-select solid-select-trigger\"\n disabled={disabled}\n aria-haspopup=\"listbox\"\n aria-expanded={open}\n onClick={() => {\n if (disabled) return;\n setOpen((prev) => !prev);\n }}\n >\n <span className={cx(\"solid-select-trigger-label\", !selectedOption && \"solid-select-placeholder\")}>\n {selectedOption?.label || placeholder || \"Select\"}\n </span>\n <span className=\"solid-select-icon\" aria-hidden=\"true\">\n <ChevronDown size={14} />\n </span>\n </button>\n {open ? (\n <div\n ref={menuRef}\n className={cx(\"solid-select-menu\", openUpward && \"solid-select-menu-top\")}\n role=\"listbox\"\n >\n {normalized.map((item) => (\n <button\n key={item.key}\n type=\"button\"\n role=\"option\"\n className={cx(\"solid-select-menu-item\", item.value === value && \"is-selected\")}\n aria-selected={item.value === value}\n onClick={() => {\n onChange?.({ value: item.value });\n setOpen(false);\n }}\n >\n {item.label}\n </button>\n ))}\n </div>\n ) : null}\n </div>\n );\n }\n\n return (\n <div className={cx(\"solid-select-wrap\", className)}>\n <select\n id={id}\n className=\"solid-select\"\n value={selectedKey}\n disabled={disabled}\n onChange={(event) => {\n const next = normalized.find((item) => item.key === event.target.value);\n onChange?.({ value: next?.value });\n }}\n >\n <option value=\"\" disabled>\n {placeholder || \"Select\"}\n </option>\n {normalized.map((item) => (\n <option key={item.key} value={item.key}>\n {item.label}\n </option>\n ))}\n </select>\n <span className=\"solid-select-icon\" aria-hidden=\"true\">\n <ChevronDown size={14} />\n </span>\n </div>\n );\n}\n"]}
@@ -13,6 +13,7 @@ type SolidSelectProps = {
13
13
  disabled?: boolean;
14
14
  onChange?: (event: { value: any }) => void;
15
15
  id?: string;
16
+ native?: boolean;
16
17
  };
17
18
 
18
19
  function cx(...parts: Array<string | false | undefined>) {
@@ -29,7 +30,12 @@ export function SolidSelect({
29
30
  disabled,
30
31
  onChange,
31
32
  id,
33
+ native = true,
32
34
  }: SolidSelectProps) {
35
+ const [open, setOpen] = React.useState(false);
36
+ const [openUpward, setOpenUpward] = React.useState(false);
37
+ const rootRef = React.useRef<HTMLDivElement | null>(null);
38
+ const menuRef = React.useRef<HTMLDivElement | null>(null);
33
39
  const normalized = options.map((option, index) => ({
34
40
  key: String(index),
35
41
  label: option?.[optionLabel] ?? "",
@@ -38,6 +44,95 @@ export function SolidSelect({
38
44
 
39
45
  const selectedIndex = normalized.findIndex((item) => item.value === value);
40
46
  const selectedKey = selectedIndex >= 0 ? normalized[selectedIndex].key : "";
47
+ const selectedOption = selectedIndex >= 0 ? normalized[selectedIndex] : null;
48
+
49
+ React.useEffect(() => {
50
+ if (!open) return;
51
+
52
+ const handlePointerDown = (event: MouseEvent | TouchEvent) => {
53
+ if (!rootRef.current?.contains(event.target as Node)) {
54
+ setOpen(false);
55
+ }
56
+ };
57
+
58
+ const handleEscape = (event: KeyboardEvent) => {
59
+ if (event.key === "Escape") {
60
+ setOpen(false);
61
+ }
62
+ };
63
+
64
+ document.addEventListener("mousedown", handlePointerDown);
65
+ document.addEventListener("touchstart", handlePointerDown);
66
+ document.addEventListener("keydown", handleEscape);
67
+
68
+ return () => {
69
+ document.removeEventListener("mousedown", handlePointerDown);
70
+ document.removeEventListener("touchstart", handlePointerDown);
71
+ document.removeEventListener("keydown", handleEscape);
72
+ };
73
+ }, [open]);
74
+
75
+ React.useLayoutEffect(() => {
76
+ if (!open || native || !rootRef.current || !menuRef.current) return;
77
+
78
+ const rootRect = rootRef.current.getBoundingClientRect();
79
+ const menuHeight = menuRef.current.offsetHeight;
80
+ const viewportHeight = window.innerHeight;
81
+ const spaceBelow = viewportHeight - rootRect.bottom;
82
+ const spaceAbove = rootRect.top;
83
+ const needsOpenUpward = spaceBelow < menuHeight + 8 && spaceAbove > spaceBelow;
84
+
85
+ setOpenUpward(needsOpenUpward);
86
+ }, [open, native, options.length]);
87
+
88
+ if (!native) {
89
+ return (
90
+ <div ref={rootRef} className={cx("solid-select-wrap", "solid-select-wrap-custom", className)}>
91
+ <button
92
+ id={id}
93
+ type="button"
94
+ className="solid-select solid-select-trigger"
95
+ disabled={disabled}
96
+ aria-haspopup="listbox"
97
+ aria-expanded={open}
98
+ onClick={() => {
99
+ if (disabled) return;
100
+ setOpen((prev) => !prev);
101
+ }}
102
+ >
103
+ <span className={cx("solid-select-trigger-label", !selectedOption && "solid-select-placeholder")}>
104
+ {selectedOption?.label || placeholder || "Select"}
105
+ </span>
106
+ <span className="solid-select-icon" aria-hidden="true">
107
+ <ChevronDown size={14} />
108
+ </span>
109
+ </button>
110
+ {open ? (
111
+ <div
112
+ ref={menuRef}
113
+ className={cx("solid-select-menu", openUpward && "solid-select-menu-top")}
114
+ role="listbox"
115
+ >
116
+ {normalized.map((item) => (
117
+ <button
118
+ key={item.key}
119
+ type="button"
120
+ role="option"
121
+ className={cx("solid-select-menu-item", item.value === value && "is-selected")}
122
+ aria-selected={item.value === value}
123
+ onClick={() => {
124
+ onChange?.({ value: item.value });
125
+ setOpen(false);
126
+ }}
127
+ >
128
+ {item.label}
129
+ </button>
130
+ ))}
131
+ </div>
132
+ ) : null}
133
+ </div>
134
+ );
135
+ }
41
136
 
42
137
  return (
43
138
  <div className={cx("solid-select-wrap", className)}>
@@ -102,6 +102,19 @@ export declare const ERROR_MESSAGES: {
102
102
  DELETE_ERROR: string;
103
103
  FORBIDDEN_ERROR: string;
104
104
  IMPORT_ERROR: string;
105
+ IMPORT_FILE_READ_FAILED: string;
106
+ IMPORT_NO_SAMPLE_VALUE: string;
107
+ IMPORT_UNSUPPORTED_SAMPLE_VALUE: string;
108
+ IMPORT_NO_MATCHED_COLUMNS: string;
109
+ IMPORT_UNMAPPED_COLUMNS: string;
110
+ IMPORT_DUPLICATE_FIELD_MAPPING: string;
111
+ IMPORT_REQUIRED_FIELD_MAPPING_TITLE: string;
112
+ IMPORT_REQUIRED_FIELD_MAPPING_MESSAGE: (count: number) => string;
113
+ IMPORT_TEMPLATE_MISMATCH_TITLE: string;
114
+ IMPORT_TEMPLATE_MISMATCH_MESSAGE: string;
115
+ IMPORT_MAPPING_INCOMPLETE_TITLE: string;
116
+ IMPORT_MAPPING_INCOMPLETE_MESSAGE: (count: number) => string;
117
+ IMPORT_UNABLE_TO_READ_FILE: string;
105
118
  EXPORT_SUCCESSFULLY: string;
106
119
  SEND_REPORT: string;
107
120
  ERROR: string;
@@ -1 +1 @@
1
- {"version":3,"file":"error-messages.d.ts","sourceRoot":"","sources":["../../src/constants/error-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;4BAyBD,MAAM;;;;;;;;+BAaH,MAAM;;;;;;;;;;;;;;;2CAkBM,MAAM;;;;;;;;;;0CAaP,MAAM,aAAa,MAAM;;;;;;mCAOhC,MAAM;;;;;;;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AAM;wCAEE,MAAM;;;;;;uBAYvB,MAAM;CAK1B,CAAC"}
@@ -128,6 +128,23 @@ export var ERROR_MESSAGES = {
128
128
  FORBIDDEN_ERROR: 'You do not have permission to perform this action.',
129
129
  /* ----------------------------- IMPORT / EXPORT ----------------------------- */
130
130
  IMPORT_ERROR: 'Import Error',
131
+ IMPORT_FILE_READ_FAILED: "We couldn't read the uploaded file. Please verify the headers and sample data, then try again.",
132
+ IMPORT_NO_SAMPLE_VALUE: 'No sample value',
133
+ IMPORT_UNSUPPORTED_SAMPLE_VALUE: 'Unsupported sample value',
134
+ IMPORT_NO_MATCHED_COLUMNS: "We couldn't match any columns from this file. Upload the correct template or map at least one column before importing.",
135
+ IMPORT_UNMAPPED_COLUMNS: 'Some file columns are still unmapped. Map them to a SolidX field or remove them before importing.',
136
+ IMPORT_DUPLICATE_FIELD_MAPPING: 'Each SolidX field can only be mapped once. Update duplicate mappings before importing.',
137
+ IMPORT_REQUIRED_FIELD_MAPPING_TITLE: 'Required fields are still unmapped',
138
+ IMPORT_REQUIRED_FIELD_MAPPING_MESSAGE: function (count) {
139
+ return "".concat(count, " required field").concat(count > 1 ? 's are' : ' is', " still unmapped. Map ").concat(count > 1 ? 'them' : 'it', " before importing.");
140
+ },
141
+ IMPORT_TEMPLATE_MISMATCH_TITLE: 'Template mismatch detected',
142
+ IMPORT_TEMPLATE_MISMATCH_MESSAGE: "We couldn't auto-match any columns from this file. This usually means the uploaded file headers don't match the expected import template.",
143
+ IMPORT_MAPPING_INCOMPLETE_TITLE: 'Mapping still incomplete',
144
+ IMPORT_MAPPING_INCOMPLETE_MESSAGE: function (count) {
145
+ return "".concat(count, " importable field").concat(count > 1 ? 's are' : ' is', " still unmapped. Map ").concat(count > 1 ? 'them' : 'it', " before importing.");
146
+ },
147
+ IMPORT_UNABLE_TO_READ_FILE: 'Unable to read import file',
131
148
  EXPORT_SUCCESSFULLY: 'File Exported Successfully',
132
149
  SEND_REPORT: 'Can you send me the report?',
133
150
  /* ----------------------------------- MISC ---------------------------------- */
@@ -1 +1 @@
1
- {"version":3,"file":"error-messages.js","sourceRoot":"","sources":["../../src/constants/error-messages.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,cAAc,GAAG;IAE5B,gFAAgF;IAChF,mBAAmB,EAAE,qBAAqB;IAC1C,qBAAqB,EAAE,uBAAuB;IAC9C,mBAAmB,EAAE,qBAAqB;IAC1C,eAAe,EAAE,qCAAqC;IACtD,oBAAoB,EAAE,kCAAkC;IACxD,WAAW,EAAE,aAAa;IAC1B,aAAa,EAAE,eAAe;IAC9B,WAAW,EAAE,aAAa;IAC1B,eAAe,EAAE,wBAAwB;IACzC,aAAa,EAAE,iBAAiB;IAChC,kBAAkB,EAAE,oBAAoB;IAExC,gFAAgF;IAChF,yBAAyB,EAAE,2BAA2B;IACtD,qBAAqB,EAAE,iCAAiC;IACxD,iBAAiB,EAAE,4BAA4B;IAC/C,UAAU,EAAE,sBAAsB;IAClC,qBAAqB,EAAE,+BAA+B;IACtD,eAAe,EAAE,8BAA8B;IAE/C,gFAAgF;IAChF,WAAW,EAAE,aAAa;IAC1B,UAAU,EAAE,UAAC,SAAiB;QAC5B,OAAA,uCAAgC,SAAS,eAAY;IAArD,CAAqD;IAEvD,iFAAiF;IACjF,qBAAqB,EAAE,2BAA2B;IAElD,iFAAiF;IACjF,oBAAoB,EAAE,sBAAsB;IAC5C,kBAAkB,EAAE,oBAAoB;IACxC,oBAAoB,EAAE,sBAAsB;IAC5C,eAAe,EAAE,iBAAiB;IAClC,UAAU,EAAE,gBAAgB;IAC5B,aAAa,EAAE,0BAA0B;IACzC,cAAc,EAAE,UAAC,QAAgB;QAC/B,OAAA,yCAAkC,QAAQ,SAAM;IAAhD,CAAgD;IAClD,eAAe,EAAE,mBAAmB;IACpC,kBAAkB,EAAE,qBAAqB;IACzC,YAAY,EAAE,cAAc;IAC5B,mBAAmB,EAAE,sBAAsB;IAC3C,oBAAoB,EAAE,wBAAwB;IAC9C,sBAAs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AC5C,iCAAiC,EAAE,UAAC,KAAa;QAC/C,OAAA,UAAG,KAAK,2DAAwD;IAAhE,CAAgE;IAElE,iEAAiE;IACjE,oBAAoB,EAAE,UAAC,KAAa;QAClC,OAAA,UAAG,KAAK,kCAA+B;IAAvC,CAAuC;IACzC,kBAAkB,EAAE,UAAC,KAAa;QAChC,OAAA,uCAAgC,KAAK,MAAG;IAAxC,CAAwC;IAC1C,0BAA0B,EAAE,UAAC,KAAa;QACxC,OAAA,gCAAyB,KAAK,wBAAqB;IAAnD,CAAmD;IACrD,oBAAoB,EAAE,+BAA+B;IAErD,4DAA4D;IAC5D,aAAa,EAAE,eAAe;IAC9B,4BAA4B,EAC1B,gEAAgE;IAElE,wDAAwD;IACxD,gBAAgB,EAAE,kBAAkB;IACpC,gBAAgB,EAAE,iEAAiE;IACnF,UAAU,EAAE,UAAC,IAAY;QACvB,OAAA,UAAG,IAAI,oFAAiF;IAAxF,CAAwF;CAI3F,CAAC","sourcesContent":["export const ERROR_MESSAGES = {\n\n /* ----------------------------- AUTHENTICATION ----------------------------- */\n NO_AUTH_TOKEN_FOUND: 'No auth token found',\n AUTHENICATION__FAILED: 'Authentication failed',\n INVALID_CREDENTIALS: 'Invalid Credentials',\n SESSION_EXPIRED: 'Session Expired. Please Login Again',\n FAILED_REFRESH_TOKEN: 'Failed to refresh access token: ',\n LOGIN_ERROR: 'Login Error',\n LOGIN_SUCCESS: 'Login Success',\n PLEASE_WAIT: \"Please wait\",\n SOMETHING_WRONG: 'Something Went Wrong !',\n LOGOUT_FAILED: 'Logout Failed !',\n LOGIN_SUCCESSFULLY: 'Login Successfully',\n\n /* -------------------------------- PASSWORD -------------------------------- */\n FAILED_TO_UPDATE_PASSWORD: 'Failed to update password',\n INVALID_PASSWORD_REGX: 'Invalid password regex in .env:',\n INCORRECT_CURRENT: \"Incorrect Current Password\",\n MUST_MATCH: \"Passwords must match\",\n FORCE_PASSWORD_CHANGE: \"Force Password Change Success\",\n PASSWORD_CHANGE: 'Password Change Successfully',\n\n /* ---------------------------------- OTP ----------------------------------- */\n INAVLID_OTP: \"Invalid OTP\",\n OPT_FORMAT: (formatted: string) =>\n `You can request a new OTP in ${formatted} second(s)`,\n\n /* ---------------------------- AUTH / DASHBOARD ----------------------------- */\n DASHBOARD_REDIRECTING: \"Redirecting to dashboard.\",\n\n /* ------------------------------- FILE ERRORS ------------------------------- */\n FILE_DOWNLOAD_FAILED: 'File download failed',\n FAILED_TO_DOWNLOAD: 'Failed to download',\n FAILED_TO_FETCH_FILE: 'Failed to fetch file',\n DOWNLOAD_FAILED: 'Download failed',\n FILE_LARGE: 'File too large',\n MAX_FILE_SIZE: 'Maximum file size is 2MB',\n FILE_TOO_LAREG: (fileSize: string) =>\n `File is too large. Max size is ${fileSize} KB.`,\n FILE_NOT_ACCEPT: 'File not accepted',\n FAILED_UPLOAD_FILE: 'Fail to upload file',\n MISSING_FILE: 'Missing File',\n ERROR_DELETING_FILE: 'Error deleting file:',\n FAILED_DELETED_IMAGE: 'Failed to delete image',\n PROFILE_PICTURE_REMOVE: \"Profile picture removed\",\n FILE_UPLOAD: 'File Uploaded',\n FILE_UPLOAD_SUCCESSFULLY: 'File Uploaded Successfully',\n\n /* ------------------------------- USER / ENTITY ------------------------------ */\n NO_ENTITY_SELECTED: 'No entity selected',\n FAILED_UPDATED_PROFILE: 'Failed to update profile',\n ENTITY_FAILED: 'Failed to create Entity:',\n ENTITY_DELETE: 'Entity deleted successfully',\n RECORD_DELETE: 'Records deleted successfully',\n MODEL_DELETE: 'Model Deleted',\n MODEL_DELETE_SUCCESSFULLY: (modelName: string) =>\n `Model ${modelName} has been deleted successfully`,\n DELETE_FAIELD: \"Delete Failed\",\n EMAIL_ALREADY_TAKEN: 'Email is already taken,',\n UPDATED: 'Updated',\n SETTING_UPDATED: 'Settings updated',\n USER_REGISTER: 'User Registered',\n NO_CHANGE: 'No Change',\n NO_SETTING_UPDATE: 'No settings were updated',\n UPDATING_USER: 'Error updating user view:',\n\n /* ---------------------------- RELATION & FILTER ---------------------------- */\n INVALID_FILTER_STRUCTURE: 'Invalid filter structure',\n INVALID_RELATION_TYPE: (relationType: string, fieldName: string) =>\n `Invalid relationType ${relationType} on field ${fieldName}`,\n INVALID_JSON_WHERECLAUSE: 'Invalid whereClause JSON:',\n FIXED_FILTER_NOT_APPLIED: 'Fixed filter not applied due to parsing issues or invalid data',\n SELECT_RELEVANT_FIELD: 'Please select relevant fields used in fixed filter',\n SKIPPING_EMPTY_FIXED_FILTER: 'Skipping invalid/empty fixed filter : ',\n FIELD_NOT_SELECT: 'Fields Not selected!',\n FIELD_NOT_IN_METADATA: (label: string) =>\n `${label} is not present in metadata`,\n SAVE_FILTER_UNDEFINED_NULL: 'Saved filter ID is undefined or null',\n\n /* -------------------------------- FORM / UI -------------------------------- */\n FAILED_UPDATE_FROM: \"Failed to update the form\",\n UPDATING_STEPPER: 'Error updating stepper : ',\n DYNAMIC_FUNCTION_ERROR: 'Error in DynamicFunctionComponent : ',\n ON_FORM_LOAD: 'Error in onFormLoad handler:',\n UNABLE_LOAD_DYNAMIC_MODULE: 'Unable to load dynamic module: ',\n LOADING_COMPONENT: 'Error loading component',\n FORM_LAYOUT_UPDATE: 'Form Layout Updated successfully!',\n LAYOUT: 'Layout',\n MARK_PUBLISH: 'Marked as publish !',\n MARK_UNPUBLISH: 'Marked as unpublish !',\n SAVED: 'Saved',\n FORM_UPDATE: 'Form Updated',\n FORM_UPDATE_SUCCESSFULLY: 'Form updated successfully!',\n FORM_SAVED: 'Form Saved',\n FORM_SAVED_SUCCESSFULLY: 'Form saved successfully!',\n PROFILE_SAVED: 'Profile Saved',\n PROFILE_SAVED_SUCCESSFULLY: 'Profile saved successfully!',\n NO_UPDATE_MADE: 'No updates were made',\n DASHBOARD_LAYOUT_UPDATE_SUCCESSFULLY: 'Dashboard Layout Updated successfully!',\n DASHBOARD_LAYOUT_UPDATE_FAILED: 'Failed to update dashboard layout!',\n\n\n\n\n /* ------------------------------ INTERACTIONS ------------------------------ */\n INTERATCTION_MESSGAE: (message: string, err: any) =>\n `Error handling interaction.message: ${message || String(err)}`,\n APPLY_FAILED: 'Apply Failed',\n APPLY_SUCCESS: 'Apply Successful',\n PREVIEW_INTERACTION: 'Preview clicked for interaction:',\n FAILED_APPLY_INTERACTION: (error: string) =>\n `Failed to apply interaction - ${error}`,\n\n /* --------------------------- PROCESS / BACKEND ---------------------------- */\n BACKEND_UNAVAILABLE: 'Backend Unavailable',\n SEEDER_NOT_TRIGGERED: 'Seeder not triggered. Could not reach backend',\n IS_SEEDER_ERROR: 'isSeederError',\n IS_SEEDER_SUCCESS: 'isSeederSuccess',\n SEEDER_ERROR: 'Seeder Error',\n SEEDER_NOT_RUN: 'Could not run seeder. Please try again',\n BACKEND_NOT_ALIVE: 'Backend is not alive, cannot run seeder',\n FAILED_TRIGGER_MCP_CLIENT_JOB: 'Failed to trigger MCP client job',\n\n /* --------------------------------- NETWORK --------------------------------- */\n API_ERROR: 'API error: ',\n ERROR_OCCURED: \"An error occurred\",\n FETCHING_MESSAGE: 'Error fetching messages:',\n FETCHING_USER: 'Error fetching users:',\n FETCHING_ITEMS: 'Error fetching items',\n LOAD_MORE_DATA: 'Failed to load more data:',\n NETWORK_ERROR: 'Network error occurred. Please try again',\n NETWORK_OR_SERVER_ERROR: 'Network or server error occurred',\n DELETE_ERROR: 'Delete error',\n FORBIDDEN_ERROR: 'You do not have permission to perform this action.',\n\n /* ----------------------------- IMPORT / EXPORT ----------------------------- */\n IMPORT_ERROR: 'Import Error',\n EXPORT_SUCCESSFULLY: 'File Exported Successfully',\n SEND_REPORT: 'Can you send me the report?',\n\n /* ----------------------------------- MISC ---------------------------------- */\n ERROR: 'Error',\n FAILED: 'Failed',\n IS_SUCCESS: 'Success',\n DELETED: 'Deleted',\n UPDATE_FAILED: 'Update failed',\n FAILED_CREATE_MENU: 'Failed to create menu',\n ORM_TYPE_REQUIRED: 'Orm Type is required!',\n ACTION_FUNCTION: (action: string) =>\n `Action function \"${action}\" not found.`,\n DUPLICATE_KEY: \"Duplicate Key\",\n ERROR_DECODING: 'Error decoding or parsing query string from local storage:',\n CREATE_MODEL: 'Failed to create Model',\n TEMPLATE_FAILED: 'Failed to create template',\n SELECT_FROMAT: 'Please Select Format',\n PARSED_FIELD: 'Failed to parse fields:',\n CODE_GENERTAE_SUCCESSFULLY: 'Code Generated Successfully',\n RESPONSE_GENERATE_CODE_HANDLER: \"response generate code handler\",\n KANBAN_UPDATED: \"Kanban View Updated!\",\n TRY_AGAIN: 'Please try again later',\n REMOVE_ROOT_NODE: \"Cannot remove the root node\",\n ATTEMPT_FETCH_MESSAGE_STATUS: (queryString: string) =>\n `Attempting to fetch mq message status with query string: ${queryString}`,\n FAILED_FETCH_MESSAGE: \"Failed to fetch MQ message status:\",\n FAILED_CREATE_INVOICE: \"Failed to create Invoice:\",\n\n /* ----------------------------------- CRUD ---------------------------------- */\n ADD_ATLEAST_ONE_FIELD: \"Please add at least one field\",\n\n\n /* ----------------------------------- Validation ---------------------------------- */\n\n // -------------------- REQUIRED / BASIC FIELD ERRORS --------------------\n FIELD_REUQIRED: (field: string) => `${field} is required`,\n FIELD_INAVLID_FORMAT: (field: string) => `Invalid ${field} format`,\n FIELD_INVALID: (field: string) => `Invalid ${field}`,\n ENTER_VALID_FIELD: (field: string) => `Please enter a valid ${field}.`,\n FIELD_INVALID_DATA: (field: string) => `${field} has invalid data.`,\n FIELD_MUST_MATCH: (field: string) => `${field}s must match.`,\n FIELD_ALREADY_USE: (field: string, field1: string) =>\n `${field} Already in use. Please choose a different ${field1}.`,\n FIELD_MUST_BE_AN: (field: string, type: string) =>\n `${field} must be an ${type}\"`,\n REQUIRED_REALTION: 'required-relation',\n VALIDATE_SELECTION: 'valid-selection',\n\n // -------------------- PASSWORD VALIDATION --------------------\n PASSWORD_DO_NOT_MEET: 'Password does not meet complexity requirements',\n PASSWORD_CHARACTER: (count: Number) =>\n `Password must be at least ${count} characters`,\n PASSWORD_CONTAIN: (contain: string, type = 'letter') =>\n `Password must contain at least one ${contain} ${type}`,\n\n // -------------------- LENGTH VALIDATION --------------------\n FIELD_MINIMUM_CHARACTER: (field: string, characters: Number) =>\n `${field} should be at-least ${characters} characters long.`,\n FIELD_MAXIMUM_CHARACTER: (field: string, characters: Number) =>\n `${field} should not be more than ${characters} characters long.`,\n\n // -------------------- OTP --------------------\n OTP_CHARACTER: (count: Number) =>\n `OTP must be a ${count}-digit number`,\n OPT_RESEND: 'OTP Resent Successfully',\n OPT_SEND: 'OTP Sent Successfully',\n\n // -------------------- UPDATE MESSAGES --------------------\n FIELD_UPDATE: (field: string) => `${field} Updated`,\n FIELD_UPDATE_SUCCESSFULLY: (field: string) =>\n `${field} Updated Successfully`,\n\n // -------------------- FILE / OBJECT VALIDATION --------------------\n MUST_BE_FILE_OBJECT: (field: string) =>\n `${field} must be a file, an object, or empty`,\n FILE_OBJECT: 'file-or-object',\n EMPTY_VALID_ARRAY: 'is-empty-or-valid-array',\n CONTAIN_EMPTY_ARRAY_OR_FILE_OBECT: (field: string) =>\n `${field} must be an empty array or contain only files/objects.`,\n\n // -------------------- SELECTION VALIDATION --------------------\n FIELD_MUST_HAVE_ITEM: (field: string) =>\n `${field} must have at least one item.`,\n SELECT_ATLEAST_ONE: (field: string) =>\n `You must select at least one ${field}.`,\n SELECT_VALID_FROM_DROPDOWN: (field: string) =>\n `Please select a valid ${field} from the dropdown.`,\n SELECT_ONE_OPERATION: 'Select at least one operation',\n\n // -------------------- JSON VALIDATION --------------------\n IS_VALID_JSON: 'is-valid-json',\n COMPUTED_FIELD_VALIDATE_JSON:\n 'Computed Field Value Provider Context Value must be valid JSON',\n\n // -------------------- OTHER RULES --------------------\n GREATER_THAN_MIN: 'greater-than-min',\n RELATION_CASCADE: 'Relation Cascade Value is required for one-to-one relationships',\n SNAKE_CASE: (name: string) =>\n `${name} name must be in snake_case (lowercase letters, numbers, and underscores only).`,\n\n\n\n};\n"]}
1
+ {"version":3,"file":"error-messages.js","sourceRoot":"","sources":["../../src/constants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IAAY;QACvB,OAAA,UAAG,IAAI,oFAAiF;IAAxF,CAAwF;CAI3F,CAAC","sourcesContent":["export const ERROR_MESSAGES = {\n\n /* ----------------------------- AUTHENTICATION ----------------------------- */\n NO_AUTH_TOKEN_FOUND: 'No auth token found',\n AUTHENICATION__FAILED: 'Authentication failed',\n INVALID_CREDENTIALS: 'Invalid Credentials',\n SESSION_EXPIRED: 'Session Expired. Please Login Again',\n FAILED_REFRESH_TOKEN: 'Failed to refresh access token: ',\n LOGIN_ERROR: 'Login Error',\n LOGIN_SUCCESS: 'Login Success',\n PLEASE_WAIT: \"Please wait\",\n SOMETHING_WRONG: 'Something Went Wrong !',\n LOGOUT_FAILED: 'Logout Failed !',\n LOGIN_SUCCESSFULLY: 'Login Successfully',\n\n /* -------------------------------- PASSWORD -------------------------------- */\n FAILED_TO_UPDATE_PASSWORD: 'Failed to update password',\n INVALID_PASSWORD_REGX: 'Invalid password regex in .env:',\n INCORRECT_CURRENT: \"Incorrect Current Password\",\n MUST_MATCH: \"Passwords must match\",\n FORCE_PASSWORD_CHANGE: \"Force Password Change Success\",\n PASSWORD_CHANGE: 'Password Change Successfully',\n\n /* ---------------------------------- OTP ----------------------------------- */\n INAVLID_OTP: \"Invalid OTP\",\n OPT_FORMAT: (formatted: string) =>\n `You can request a new OTP in ${formatted} second(s)`,\n\n /* ---------------------------- AUTH / DASHBOARD ----------------------------- */\n DASHBOARD_REDIRECTING: \"Redirecting to dashboard.\",\n\n /* ------------------------------- FILE ERRORS ------------------------------- */\n FILE_DOWNLOAD_FAILED: 'File download failed',\n FAILED_TO_DOWNLOAD: 'Failed to download',\n FAILED_TO_FETCH_FILE: 'Failed to fetch file',\n DOWNLOAD_FAILED: 'Download failed',\n FILE_LARGE: 'File too large',\n MAX_FILE_SIZE: 'Maximum file size is 2MB',\n FILE_TOO_LAREG: (fileSize: string) =>\n `File is too large. Max size is ${fileSize} KB.`,\n FILE_NOT_ACCEPT: 'File not accepted',\n FAILED_UPLOAD_FILE: 'Fail to upload file',\n MISSING_FILE: 'Missing File',\n ERROR_DELETING_FILE: 'Error deleting file:',\n FAILED_DELETED_IMAGE: 'Failed to delete image',\n PROFILE_PICTURE_REMOVE: \"Profile picture removed\",\n FILE_UPLOAD: 'File Uploaded',\n FILE_UPLOAD_SUCCESSFULLY: 'File Uploaded Successfully',\n\n /* ------------------------------- USER / ENTITY ------------------------------ */\n NO_ENTITY_SELECTED: 'No entity selected',\n FAILED_UPDATED_PROFILE: 'Failed to update profile',\n ENTITY_FAILED: 'Failed to create Entity:',\n ENTITY_DELETE: 'Entity deleted successfully',\n RECORD_DELETE: 'Records deleted successfully',\n MODEL_DELETE: 'Model Deleted',\n MODEL_DELETE_SUCCESSFULLY: (modelName: string) =>\n `Model ${modelName} has been deleted successfully`,\n DELETE_FAIELD: \"Delete Failed\",\n EMAIL_ALREADY_TAKEN: 'Email is already taken,',\n UPDATED: 'Updated',\n SETTING_UPDATED: 'Settings updated',\n USER_REGISTER: 'User Registered',\n NO_CHANGE: 'No Change',\n NO_SETTING_UPDATE: 'No settings were updated',\n UPDATING_USER: 'Error updating user view:',\n\n /* ---------------------------- RELATION & FILTER ---------------------------- */\n INVALID_FILTER_STRUCTURE: 'Invalid filter structure',\n INVALID_RELATION_TYPE: (relationType: string, fieldName: string) =>\n `Invalid relationType ${relationType} on field ${fieldName}`,\n INVALID_JSON_WHERECLAUSE: 'Invalid whereClause JSON:',\n FIXED_FILTER_NOT_APPLIED: 'Fixed filter not applied due to parsing issues or invalid data',\n SELECT_RELEVANT_FIELD: 'Please select relevant fields used in fixed filter',\n SKIPPING_EMPTY_FIXED_FILTER: 'Skipping invalid/empty fixed filter : ',\n FIELD_NOT_SELECT: 'Fields Not selected!',\n FIELD_NOT_IN_METADATA: (label: string) =>\n `${label} is not present in metadata`,\n SAVE_FILTER_UNDEFINED_NULL: 'Saved filter ID is undefined or null',\n\n /* -------------------------------- FORM / UI -------------------------------- */\n FAILED_UPDATE_FROM: \"Failed to update the form\",\n UPDATING_STEPPER: 'Error updating stepper : ',\n DYNAMIC_FUNCTION_ERROR: 'Error in DynamicFunctionComponent : ',\n ON_FORM_LOAD: 'Error in onFormLoad handler:',\n UNABLE_LOAD_DYNAMIC_MODULE: 'Unable to load dynamic module: ',\n LOADING_COMPONENT: 'Error loading component',\n FORM_LAYOUT_UPDATE: 'Form Layout Updated successfully!',\n LAYOUT: 'Layout',\n MARK_PUBLISH: 'Marked as publish !',\n MARK_UNPUBLISH: 'Marked as unpublish !',\n SAVED: 'Saved',\n FORM_UPDATE: 'Form Updated',\n FORM_UPDATE_SUCCESSFULLY: 'Form updated successfully!',\n FORM_SAVED: 'Form Saved',\n FORM_SAVED_SUCCESSFULLY: 'Form saved successfully!',\n PROFILE_SAVED: 'Profile Saved',\n PROFILE_SAVED_SUCCESSFULLY: 'Profile saved successfully!',\n NO_UPDATE_MADE: 'No updates were made',\n DASHBOARD_LAYOUT_UPDATE_SUCCESSFULLY: 'Dashboard Layout Updated successfully!',\n DASHBOARD_LAYOUT_UPDATE_FAILED: 'Failed to update dashboard layout!',\n\n\n\n\n /* ------------------------------ INTERACTIONS ------------------------------ */\n INTERATCTION_MESSGAE: (message: string, err: any) =>\n `Error handling interaction.message: ${message || String(err)}`,\n APPLY_FAILED: 'Apply Failed',\n APPLY_SUCCESS: 'Apply Successful',\n PREVIEW_INTERACTION: 'Preview clicked for interaction:',\n FAILED_APPLY_INTERACTION: (error: string) =>\n `Failed to apply interaction - ${error}`,\n\n /* --------------------------- PROCESS / BACKEND ---------------------------- */\n BACKEND_UNAVAILABLE: 'Backend Unavailable',\n SEEDER_NOT_TRIGGERED: 'Seeder not triggered. Could not reach backend',\n IS_SEEDER_ERROR: 'isSeederError',\n IS_SEEDER_SUCCESS: 'isSeederSuccess',\n SEEDER_ERROR: 'Seeder Error',\n SEEDER_NOT_RUN: 'Could not run seeder. Please try again',\n BACKEND_NOT_ALIVE: 'Backend is not alive, cannot run seeder',\n FAILED_TRIGGER_MCP_CLIENT_JOB: 'Failed to trigger MCP client job',\n\n /* --------------------------------- NETWORK --------------------------------- */\n API_ERROR: 'API error: ',\n ERROR_OCCURED: \"An error occurred\",\n FETCHING_MESSAGE: 'Error fetching messages:',\n FETCHING_USER: 'Error fetching users:',\n FETCHING_ITEMS: 'Error fetching items',\n LOAD_MORE_DATA: 'Failed to load more data:',\n NETWORK_ERROR: 'Network error occurred. Please try again',\n NETWORK_OR_SERVER_ERROR: 'Network or server error occurred',\n DELETE_ERROR: 'Delete error',\n FORBIDDEN_ERROR: 'You do not have permission to perform this action.',\n\n /* ----------------------------- IMPORT / EXPORT ----------------------------- */\n IMPORT_ERROR: 'Import Error',\n IMPORT_FILE_READ_FAILED: \"We couldn't read the uploaded file. Please verify the headers and sample data, then try again.\",\n IMPORT_NO_SAMPLE_VALUE: 'No sample value',\n IMPORT_UNSUPPORTED_SAMPLE_VALUE: 'Unsupported sample value',\n IMPORT_NO_MATCHED_COLUMNS: \"We couldn't match any columns from this file. Upload the correct template or map at least one column before importing.\",\n IMPORT_UNMAPPED_COLUMNS: 'Some file columns are still unmapped. Map them to a SolidX field or remove them before importing.',\n IMPORT_DUPLICATE_FIELD_MAPPING: 'Each SolidX field can only be mapped once. Update duplicate mappings before importing.',\n IMPORT_REQUIRED_FIELD_MAPPING_TITLE: 'Required fields are still unmapped',\n IMPORT_REQUIRED_FIELD_MAPPING_MESSAGE: (count: number) =>\n `${count} required field${count > 1 ? 's are' : ' is'} still unmapped. Map ${count > 1 ? 'them' : 'it'} before importing.`,\n IMPORT_TEMPLATE_MISMATCH_TITLE: 'Template mismatch detected',\n IMPORT_TEMPLATE_MISMATCH_MESSAGE: \"We couldn't auto-match any columns from this file. This usually means the uploaded file headers don't match the expected import template.\",\n IMPORT_MAPPING_INCOMPLETE_TITLE: 'Mapping still incomplete',\n IMPORT_MAPPING_INCOMPLETE_MESSAGE: (count: number) =>\n `${count} importable field${count > 1 ? 's are' : ' is'} still unmapped. Map ${count > 1 ? 'them' : 'it'} before importing.`,\n IMPORT_UNABLE_TO_READ_FILE: 'Unable to read import file',\n EXPORT_SUCCESSFULLY: 'File Exported Successfully',\n SEND_REPORT: 'Can you send me the report?',\n\n /* ----------------------------------- MISC ---------------------------------- */\n ERROR: 'Error',\n FAILED: 'Failed',\n IS_SUCCESS: 'Success',\n DELETED: 'Deleted',\n UPDATE_FAILED: 'Update failed',\n FAILED_CREATE_MENU: 'Failed to create menu',\n ORM_TYPE_REQUIRED: 'Orm Type is required!',\n ACTION_FUNCTION: (action: string) =>\n `Action function \"${action}\" not found.`,\n DUPLICATE_KEY: \"Duplicate Key\",\n ERROR_DECODING: 'Error decoding or parsing query string from local storage:',\n CREATE_MODEL: 'Failed to create Model',\n TEMPLATE_FAILED: 'Failed to create template',\n SELECT_FROMAT: 'Please Select Format',\n PARSED_FIELD: 'Failed to parse fields:',\n CODE_GENERTAE_SUCCESSFULLY: 'Code Generated Successfully',\n RESPONSE_GENERATE_CODE_HANDLER: \"response generate code handler\",\n KANBAN_UPDATED: \"Kanban View Updated!\",\n TRY_AGAIN: 'Please try again later',\n REMOVE_ROOT_NODE: \"Cannot remove the root node\",\n ATTEMPT_FETCH_MESSAGE_STATUS: (queryString: string) =>\n `Attempting to fetch mq message status with query string: ${queryString}`,\n FAILED_FETCH_MESSAGE: \"Failed to fetch MQ message status:\",\n FAILED_CREATE_INVOICE: \"Failed to create Invoice:\",\n\n /* ----------------------------------- CRUD ---------------------------------- */\n ADD_ATLEAST_ONE_FIELD: \"Please add at least one field\",\n\n\n /* ----------------------------------- Validation ---------------------------------- */\n\n // -------------------- REQUIRED / BASIC FIELD ERRORS --------------------\n FIELD_REUQIRED: (field: string) => `${field} is required`,\n FIELD_INAVLID_FORMAT: (field: string) => `Invalid ${field} format`,\n FIELD_INVALID: (field: string) => `Invalid ${field}`,\n ENTER_VALID_FIELD: (field: string) => `Please enter a valid ${field}.`,\n FIELD_INVALID_DATA: (field: string) => `${field} has invalid data.`,\n FIELD_MUST_MATCH: (field: string) => `${field}s must match.`,\n FIELD_ALREADY_USE: (field: string, field1: string) =>\n `${field} Already in use. Please choose a different ${field1}.`,\n FIELD_MUST_BE_AN: (field: string, type: string) =>\n `${field} must be an ${type}\"`,\n REQUIRED_REALTION: 'required-relation',\n VALIDATE_SELECTION: 'valid-selection',\n\n // -------------------- PASSWORD VALIDATION --------------------\n PASSWORD_DO_NOT_MEET: 'Password does not meet complexity requirements',\n PASSWORD_CHARACTER: (count: Number) =>\n `Password must be at least ${count} characters`,\n PASSWORD_CONTAIN: (contain: string, type = 'letter') =>\n `Password must contain at least one ${contain} ${type}`,\n\n // -------------------- LENGTH VALIDATION --------------------\n FIELD_MINIMUM_CHARACTER: (field: string, characters: Number) =>\n `${field} should be at-least ${characters} characters long.`,\n FIELD_MAXIMUM_CHARACTER: (field: string, characters: Number) =>\n `${field} should not be more than ${characters} characters long.`,\n\n // -------------------- OTP --------------------\n OTP_CHARACTER: (count: Number) =>\n `OTP must be a ${count}-digit number`,\n OPT_RESEND: 'OTP Resent Successfully',\n OPT_SEND: 'OTP Sent Successfully',\n\n // -------------------- UPDATE MESSAGES --------------------\n FIELD_UPDATE: (field: string) => `${field} Updated`,\n FIELD_UPDATE_SUCCESSFULLY: (field: string) =>\n `${field} Updated Successfully`,\n\n // -------------------- FILE / OBJECT VALIDATION --------------------\n MUST_BE_FILE_OBJECT: (field: string) =>\n `${field} must be a file, an object, or empty`,\n FILE_OBJECT: 'file-or-object',\n EMPTY_VALID_ARRAY: 'is-empty-or-valid-array',\n CONTAIN_EMPTY_ARRAY_OR_FILE_OBECT: (field: string) =>\n `${field} must be an empty array or contain only files/objects.`,\n\n // -------------------- SELECTION VALIDATION --------------------\n FIELD_MUST_HAVE_ITEM: (field: string) =>\n `${field} must have at least one item.`,\n SELECT_ATLEAST_ONE: (field: string) =>\n `You must select at least one ${field}.`,\n SELECT_VALID_FROM_DROPDOWN: (field: string) =>\n `Please select a valid ${field} from the dropdown.`,\n SELECT_ONE_OPERATION: 'Select at least one operation',\n\n // -------------------- JSON VALIDATION --------------------\n IS_VALID_JSON: 'is-valid-json',\n COMPUTED_FIELD_VALIDATE_JSON:\n 'Computed Field Value Provider Context Value must be valid JSON',\n\n // -------------------- OTHER RULES --------------------\n GREATER_THAN_MIN: 'greater-than-min',\n RELATION_CASCADE: 'Relation Cascade Value is required for one-to-one relationships',\n SNAKE_CASE: (name: string) =>\n `${name} name must be in snake_case (lowercase letters, numbers, and underscores only).`,\n\n\n\n};\n"]}