@solidxai/core-ui 0.1.14-beta.6 → 0.1.14-beta.9

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 (537) hide show
  1. package/dist/components/auth/AuthLayout.js +1 -1
  2. package/dist/components/auth/AuthLayout.js.map +1 -1
  3. package/dist/components/auth/AuthLayout.tsx +2 -2
  4. package/dist/components/auth/SolidOTPVerify.d.ts +3 -0
  5. package/dist/components/auth/SolidOTPVerify.d.ts.map +1 -0
  6. package/dist/components/auth/SolidOTPVerify.js +67 -0
  7. package/dist/components/auth/SolidOTPVerify.js.map +1 -0
  8. package/dist/components/auth/SolidOTPVerify.tsx +133 -0
  9. package/dist/components/common/AuthBanner.d.ts +3 -0
  10. package/dist/components/common/AuthBanner.d.ts.map +1 -0
  11. package/dist/components/common/AuthBanner.js +15 -0
  12. package/dist/components/common/AuthBanner.js.map +1 -0
  13. package/dist/components/common/AuthBanner.tsx +41 -0
  14. package/dist/components/common/SettingsComponent.module.css +4 -1
  15. package/dist/components/common/SingleSelectAutoCompleteField.d.ts +2 -0
  16. package/dist/components/common/SingleSelectAutoCompleteField.d.ts.map +1 -0
  17. package/dist/components/common/SingleSelectAutoCompleteField.js +92 -0
  18. package/dist/components/common/SingleSelectAutoCompleteField.js.map +1 -0
  19. package/dist/components/common/SingleSelectAutoCompleteField.tsx +73 -0
  20. package/dist/components/common/SolidExportStepper.d.ts +12 -0
  21. package/dist/components/common/SolidExportStepper.d.ts.map +1 -0
  22. package/dist/components/common/SolidExportStepper.js +30 -0
  23. package/dist/components/common/SolidExportStepper.js.map +1 -0
  24. package/dist/components/common/SolidExportStepper.tsx +135 -0
  25. package/dist/components/common/SolidFormStepper.d.ts.map +1 -1
  26. package/dist/components/common/SolidFormStepper.js +7 -6
  27. package/dist/components/common/SolidFormStepper.js.map +1 -1
  28. package/dist/components/common/SolidFormStepper.tsx +7 -1
  29. package/dist/components/common/SolidThemeProvider.d.ts.map +1 -1
  30. package/dist/components/common/SolidThemeProvider.js +127 -11
  31. package/dist/components/common/SolidThemeProvider.js.map +1 -1
  32. package/dist/components/common/SolidThemeProvider.tsx +104 -22
  33. package/dist/components/core/card/CardGrid.d.ts +1 -1
  34. package/dist/components/core/card/CardGrid.d.ts.map +1 -1
  35. package/dist/components/core/card/CardGrid.js +2 -2
  36. package/dist/components/core/card/CardGrid.js.map +1 -1
  37. package/dist/components/core/card/CardGrid.tsx +4 -0
  38. package/dist/components/core/card/CardItem.d.ts +2 -0
  39. package/dist/components/core/card/CardItem.d.ts.map +1 -1
  40. package/dist/components/core/card/CardItem.js +4 -3
  41. package/dist/components/core/card/CardItem.js.map +1 -1
  42. package/dist/components/core/card/CardItem.tsx +15 -0
  43. package/dist/components/core/card/SolidCardView.d.ts +28 -1
  44. package/dist/components/core/card/SolidCardView.d.ts.map +1 -1
  45. package/dist/components/core/card/SolidCardView.js +99 -44
  46. package/dist/components/core/card/SolidCardView.js.map +1 -1
  47. package/dist/components/core/card/SolidCardView.tsx +124 -7
  48. package/dist/components/core/card/SolidCardViewConfigure.d.ts +1 -1
  49. package/dist/components/core/card/SolidCardViewConfigure.d.ts.map +1 -1
  50. package/dist/components/core/card/SolidCardViewConfigure.js +15 -6
  51. package/dist/components/core/card/SolidCardViewConfigure.js.map +1 -1
  52. package/dist/components/core/card/SolidCardViewConfigure.tsx +34 -0
  53. package/dist/components/core/card/cardViewRegistry.d.ts +7 -0
  54. package/dist/components/core/card/cardViewRegistry.d.ts.map +1 -0
  55. package/dist/components/core/card/cardViewRegistry.js +17 -0
  56. package/dist/components/core/card/cardViewRegistry.js.map +1 -0
  57. package/dist/components/core/card/cardViewRegistry.ts +23 -0
  58. package/dist/components/core/common/LoadDynamicJsxComponent.d.ts +2 -0
  59. package/dist/components/core/common/LoadDynamicJsxComponent.d.ts.map +1 -0
  60. package/dist/components/core/common/LoadDynamicJsxComponent.js +50 -0
  61. package/dist/components/core/common/LoadDynamicJsxComponent.js.map +1 -0
  62. package/dist/components/core/common/LoadDynamicJsxComponent.tsx +70 -0
  63. package/dist/components/core/common/PDFViewer.d.ts +9 -5
  64. package/dist/components/core/common/PDFViewer.d.ts.map +1 -1
  65. package/dist/components/core/common/PDFViewer.js +10 -102
  66. package/dist/components/core/common/PDFViewer.js.map +1 -1
  67. package/dist/components/core/common/PDFViewer.tsx +29 -88
  68. package/dist/components/core/common/SolidCollectionRowActionMenuItems.d.ts +12 -0
  69. package/dist/components/core/common/SolidCollectionRowActionMenuItems.d.ts.map +1 -0
  70. package/dist/components/core/common/SolidCollectionRowActionMenuItems.js +50 -0
  71. package/dist/components/core/common/SolidCollectionRowActionMenuItems.js.map +1 -0
  72. package/dist/components/core/common/SolidCollectionRowActionMenuItems.tsx +91 -0
  73. package/dist/components/core/common/SolidCreateButton.d.ts.map +1 -1
  74. package/dist/components/core/common/SolidCreateButton.js +2 -2
  75. package/dist/components/core/common/SolidCreateButton.js.map +1 -1
  76. package/dist/components/core/common/SolidCreateButton.tsx +22 -2
  77. package/dist/components/core/common/SolidGenericImport/SolidImportWrapper.d.ts +2 -0
  78. package/dist/components/core/common/SolidGenericImport/SolidImportWrapper.d.ts.map +1 -0
  79. package/dist/components/core/common/SolidGenericImport/SolidImportWrapper.js +16 -0
  80. package/dist/components/core/common/SolidGenericImport/SolidImportWrapper.js.map +1 -0
  81. package/dist/components/core/common/SolidGenericImport/SolidImportWrapper.tsx +29 -0
  82. package/dist/components/core/common/SolidGlobalSearchElement.d.ts.map +1 -1
  83. package/dist/components/core/common/SolidGlobalSearchElement.js +137 -134
  84. package/dist/components/core/common/SolidGlobalSearchElement.js.map +1 -1
  85. package/dist/components/core/common/SolidGlobalSearchElement.tsx +127 -119
  86. package/dist/components/core/dashboard/DashboardFilter.d.ts +13 -0
  87. package/dist/components/core/dashboard/DashboardFilter.d.ts.map +1 -0
  88. package/dist/components/core/dashboard/DashboardFilter.js +299 -0
  89. package/dist/components/core/dashboard/DashboardFilter.js.map +1 -0
  90. package/dist/components/core/dashboard/DashboardFilter.tsx +348 -0
  91. package/dist/components/core/dashboard/PrimeDataTableWrapper.d.ts +3 -0
  92. package/dist/components/core/dashboard/PrimeDataTableWrapper.d.ts.map +1 -0
  93. package/dist/components/core/dashboard/PrimeDataTableWrapper.js +21 -0
  94. package/dist/components/core/dashboard/PrimeDataTableWrapper.js.map +1 -0
  95. package/dist/components/core/dashboard/PrimeDataTableWrapper.tsx +40 -0
  96. package/dist/components/core/dashboard/SolidDashboard.d.ts +28 -0
  97. package/dist/components/core/dashboard/SolidDashboard.d.ts.map +1 -0
  98. package/dist/components/core/dashboard/SolidDashboard.js +183 -0
  99. package/dist/components/core/dashboard/SolidDashboard.js.map +1 -0
  100. package/dist/components/core/dashboard/SolidDashboard.module.css +83 -0
  101. package/dist/components/core/dashboard/SolidDashboard.tsx +263 -0
  102. package/dist/components/core/dashboard/SolidDashboardBody.d.ts +24 -0
  103. package/dist/components/core/dashboard/SolidDashboardBody.d.ts.map +1 -0
  104. package/dist/components/core/dashboard/SolidDashboardBody.js +162 -0
  105. package/dist/components/core/dashboard/SolidDashboardBody.js.map +1 -0
  106. package/dist/components/core/dashboard/SolidDashboardBody.tsx +168 -0
  107. package/dist/components/core/dashboard/SolidDashboardFilterRequired.d.ts +2 -0
  108. package/dist/components/core/dashboard/SolidDashboardFilterRequired.d.ts.map +1 -0
  109. package/dist/components/core/dashboard/SolidDashboardFilterRequired.js +11 -0
  110. package/dist/components/core/dashboard/SolidDashboardFilterRequired.js.map +1 -0
  111. package/dist/components/core/dashboard/SolidDashboardFilterRequired.tsx +28 -0
  112. package/dist/components/core/dashboard/SolidDashboardHeader.d.ts +3 -0
  113. package/dist/components/core/dashboard/SolidDashboardHeader.d.ts.map +1 -0
  114. package/dist/components/core/dashboard/SolidDashboardHeader.js +6 -0
  115. package/dist/components/core/dashboard/SolidDashboardHeader.js.map +1 -0
  116. package/dist/components/core/dashboard/SolidDashboardHeader.tsx +10 -0
  117. package/dist/components/core/dashboard/SolidDashboardLoading.d.ts +2 -0
  118. package/dist/components/core/dashboard/SolidDashboardLoading.d.ts.map +1 -0
  119. package/dist/components/core/dashboard/SolidDashboardLoading.js +10 -0
  120. package/dist/components/core/dashboard/SolidDashboardLoading.js.map +1 -0
  121. package/dist/components/core/dashboard/SolidDashboardLoading.tsx +61 -0
  122. package/dist/components/core/dashboard/SolidDashboardNotAvailable.d.ts +3 -0
  123. package/dist/components/core/dashboard/SolidDashboardNotAvailable.d.ts.map +1 -0
  124. package/dist/components/core/dashboard/SolidDashboardNotAvailable.js +12 -0
  125. package/dist/components/core/dashboard/SolidDashboardNotAvailable.js.map +1 -0
  126. package/dist/components/core/dashboard/SolidDashboardNotAvailable.tsx +32 -0
  127. package/dist/components/core/dashboard/SolidDashboardRenderError.d.ts +2 -0
  128. package/dist/components/core/dashboard/SolidDashboardRenderError.d.ts.map +1 -0
  129. package/dist/components/core/dashboard/SolidDashboardRenderError.js +11 -0
  130. package/dist/components/core/dashboard/SolidDashboardRenderError.js.map +1 -0
  131. package/dist/components/core/dashboard/SolidDashboardRenderError.tsx +28 -0
  132. package/dist/components/core/dashboard/SolidDashboardVariable.d.ts +19 -0
  133. package/dist/components/core/dashboard/SolidDashboardVariable.d.ts.map +1 -0
  134. package/dist/components/core/dashboard/SolidDashboardVariable.js +171 -0
  135. package/dist/components/core/dashboard/SolidDashboardVariable.js.map +1 -0
  136. package/dist/components/core/dashboard/SolidDashboardVariable.tsx +259 -0
  137. package/dist/components/core/dashboard/SolidQuestionRenderer.d.ts +9 -0
  138. package/dist/components/core/dashboard/SolidQuestionRenderer.d.ts.map +1 -0
  139. package/dist/components/core/dashboard/SolidQuestionRenderer.js +42 -0
  140. package/dist/components/core/dashboard/SolidQuestionRenderer.js.map +1 -0
  141. package/dist/components/core/dashboard/SolidQuestionRenderer.tsx +99 -0
  142. package/dist/components/core/dashboard/chart-renderers/ChartJsRenderer.d.ts +9 -0
  143. package/dist/components/core/dashboard/chart-renderers/ChartJsRenderer.d.ts.map +1 -0
  144. package/dist/components/core/dashboard/chart-renderers/ChartJsRenderer.js +35 -0
  145. package/dist/components/core/dashboard/chart-renderers/ChartJsRenderer.js.map +1 -0
  146. package/dist/components/core/dashboard/chart-renderers/ChartJsRenderer.tsx +48 -0
  147. package/dist/components/core/dashboard/chart-renderers/PrimeReactDatatableRenderer.d.ts +7 -0
  148. package/dist/components/core/dashboard/chart-renderers/PrimeReactDatatableRenderer.d.ts.map +1 -0
  149. package/dist/components/core/dashboard/chart-renderers/PrimeReactDatatableRenderer.js +22 -0
  150. package/dist/components/core/dashboard/chart-renderers/PrimeReactDatatableRenderer.js.map +1 -0
  151. package/dist/components/core/dashboard/chart-renderers/PrimeReactDatatableRenderer.tsx +51 -0
  152. package/dist/components/core/dashboard/chart-renderers/init-chartjs.d.ts +2 -0
  153. package/dist/components/core/dashboard/chart-renderers/init-chartjs.d.ts.map +1 -0
  154. package/dist/components/core/dashboard/chart-renderers/init-chartjs.js +4 -0
  155. package/dist/components/core/dashboard/chart-renderers/init-chartjs.js.map +1 -0
  156. package/dist/components/core/dashboard/chart-renderers/init-chartjs.ts +25 -0
  157. package/dist/components/core/dashboard/dashboard-utils.d.ts +2 -0
  158. package/dist/components/core/dashboard/dashboard-utils.d.ts.map +1 -0
  159. package/dist/components/core/dashboard/dashboard-utils.js +38 -0
  160. package/dist/components/core/dashboard/dashboard-utils.js.map +1 -0
  161. package/dist/components/core/dashboard/dashboard-utils.ts +39 -0
  162. package/dist/components/core/extension/solid-core/dashboard/dashboardFormViewChangeHandler.d.ts +10 -0
  163. package/dist/components/core/extension/solid-core/dashboard/dashboardFormViewChangeHandler.d.ts.map +1 -0
  164. package/dist/components/core/extension/solid-core/dashboard/dashboardFormViewChangeHandler.js +16 -0
  165. package/dist/components/core/extension/solid-core/dashboard/dashboardFormViewChangeHandler.js.map +1 -0
  166. package/dist/components/core/extension/solid-core/dashboard/dashboardFormViewChangeHandler.ts +19 -0
  167. package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionFieldChangeHandler.d.ts +8 -0
  168. package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionFieldChangeHandler.d.ts.map +1 -0
  169. package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionFieldChangeHandler.js +64 -0
  170. package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionFieldChangeHandler.js.map +1 -0
  171. package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionFieldChangeHandler.ts +30 -0
  172. package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionOnFormLoadHandler.d.ts +8 -0
  173. package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionOnFormLoadHandler.d.ts.map +1 -0
  174. package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionOnFormLoadHandler.js +62 -0
  175. package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionOnFormLoadHandler.js.map +1 -0
  176. package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionOnFormLoadHandler.ts +29 -0
  177. package/dist/components/core/extension/solid-core/dashboardQuestion/ChartFormPreviewWidget.d.ts +4 -0
  178. package/dist/components/core/extension/solid-core/dashboardQuestion/ChartFormPreviewWidget.d.ts.map +1 -0
  179. package/dist/components/core/extension/solid-core/dashboardQuestion/ChartFormPreviewWidget.js +23 -0
  180. package/dist/components/core/extension/solid-core/dashboardQuestion/ChartFormPreviewWidget.js.map +1 -0
  181. package/dist/components/core/extension/solid-core/dashboardQuestion/ChartFormPreviewWidget.tsx +36 -0
  182. package/dist/components/core/form/SolidFormActionHeader.d.ts.map +1 -1
  183. package/dist/components/core/form/SolidFormActionHeader.js +21 -21
  184. package/dist/components/core/form/SolidFormActionHeader.js.map +1 -1
  185. package/dist/components/core/form/SolidFormActionHeader.tsx +62 -53
  186. package/dist/components/core/form/SolidFormView.d.ts.map +1 -1
  187. package/dist/components/core/form/SolidFormView.js +5 -2
  188. package/dist/components/core/form/SolidFormView.js.map +1 -1
  189. package/dist/components/core/form/SolidFormView.tsx +7 -2
  190. package/dist/components/core/form/fields/widgets/SolidChatterMessageCoModelEntityIdFormViewWidget.d.ts +3 -0
  191. package/dist/components/core/form/fields/widgets/SolidChatterMessageCoModelEntityIdFormViewWidget.d.ts.map +1 -0
  192. package/dist/components/core/form/fields/widgets/SolidChatterMessageCoModelEntityIdFormViewWidget.js +92 -0
  193. package/dist/components/core/form/fields/widgets/SolidChatterMessageCoModelEntityIdFormViewWidget.js.map +1 -0
  194. package/dist/components/core/form/fields/widgets/SolidChatterMessageCoModelEntityIdFormViewWidget.tsx +68 -0
  195. package/dist/components/core/form/fields/widgets/SolidLovTypeChangeFormEditWidget.d.ts +3 -0
  196. package/dist/components/core/form/fields/widgets/SolidLovTypeChangeFormEditWidget.d.ts.map +1 -0
  197. package/dist/components/core/form/fields/widgets/SolidLovTypeChangeFormEditWidget.js +111 -0
  198. package/dist/components/core/form/fields/widgets/SolidLovTypeChangeFormEditWidget.js.map +1 -0
  199. package/dist/components/core/form/fields/widgets/SolidLovTypeChangeFormEditWidget.tsx +122 -0
  200. package/dist/components/core/kanban/KanbanBoard.d.ts +1 -1
  201. package/dist/components/core/kanban/KanbanBoard.d.ts.map +1 -1
  202. package/dist/components/core/kanban/KanbanBoard.js +2 -2
  203. package/dist/components/core/kanban/KanbanBoard.js.map +1 -1
  204. package/dist/components/core/kanban/KanbanBoard.tsx +3 -1
  205. package/dist/components/core/kanban/KanbanCard.d.ts +2 -0
  206. package/dist/components/core/kanban/KanbanCard.d.ts.map +1 -1
  207. package/dist/components/core/kanban/KanbanCard.js +4 -2
  208. package/dist/components/core/kanban/KanbanCard.js.map +1 -1
  209. package/dist/components/core/kanban/KanbanCard.tsx +14 -1
  210. package/dist/components/core/kanban/KanbanColumn.d.ts +3 -1
  211. package/dist/components/core/kanban/KanbanColumn.d.ts.map +1 -1
  212. package/dist/components/core/kanban/KanbanColumn.js +2 -2
  213. package/dist/components/core/kanban/KanbanColumn.js.map +1 -1
  214. package/dist/components/core/kanban/KanbanColumn.tsx +4 -2
  215. package/dist/components/core/kanban/SolidKanbanView.d.ts +25 -1
  216. package/dist/components/core/kanban/SolidKanbanView.d.ts.map +1 -1
  217. package/dist/components/core/kanban/SolidKanbanView.js +89 -50
  218. package/dist/components/core/kanban/SolidKanbanView.js.map +1 -1
  219. package/dist/components/core/kanban/SolidKanbanView.tsx +82 -9
  220. package/dist/components/core/kanban/SolidKanbanViewFields.d.ts +12 -0
  221. package/dist/components/core/kanban/SolidKanbanViewFields.d.ts.map +1 -0
  222. package/dist/components/core/kanban/SolidKanbanViewFields.js +145 -0
  223. package/dist/components/core/kanban/SolidKanbanViewFields.js.map +1 -0
  224. package/dist/components/core/kanban/SolidKanbanViewFields.tsx +164 -0
  225. package/dist/components/core/kanban/SolidManyToOneFilterElement.d.ts +2 -0
  226. package/dist/components/core/kanban/SolidManyToOneFilterElement.d.ts.map +1 -0
  227. package/dist/components/core/kanban/SolidManyToOneFilterElement.js +87 -0
  228. package/dist/components/core/kanban/SolidManyToOneFilterElement.js.map +1 -0
  229. package/dist/components/core/kanban/SolidManyToOneFilterElement.tsx +59 -0
  230. package/dist/components/core/kanban/SolidSelectionDynamicFilterElement.d.ts +2 -0
  231. package/dist/components/core/kanban/SolidSelectionDynamicFilterElement.d.ts.map +1 -0
  232. package/dist/components/core/kanban/SolidSelectionDynamicFilterElement.js +73 -0
  233. package/dist/components/core/kanban/SolidSelectionDynamicFilterElement.js.map +1 -0
  234. package/dist/components/core/kanban/SolidSelectionDynamicFilterElement.tsx +50 -0
  235. package/dist/components/core/kanban/SolidSelectionStaticFilterElement.d.ts +2 -0
  236. package/dist/components/core/kanban/SolidSelectionStaticFilterElement.d.ts.map +1 -0
  237. package/dist/components/core/kanban/SolidSelectionStaticFilterElement.js +20 -0
  238. package/dist/components/core/kanban/SolidSelectionStaticFilterElement.js.map +1 -0
  239. package/dist/components/core/kanban/SolidSelectionStaticFilterElement.tsx +32 -0
  240. package/dist/components/core/kanban/SolidVarInputsFilterElement.d.ts +12 -0
  241. package/dist/components/core/kanban/SolidVarInputsFilterElement.d.ts.map +1 -0
  242. package/dist/components/core/kanban/SolidVarInputsFilterElement.js +81 -0
  243. package/dist/components/core/kanban/SolidVarInputsFilterElement.js.map +1 -0
  244. package/dist/components/core/kanban/SolidVarInputsFilterElement.tsx +184 -0
  245. package/dist/components/core/kanban/kanban-fields/SolidBigintKanbanField.d.ts +4 -0
  246. package/dist/components/core/kanban/kanban-fields/SolidBigintKanbanField.d.ts.map +1 -0
  247. package/dist/components/core/kanban/kanban-fields/SolidBigintKanbanField.js +7 -0
  248. package/dist/components/core/kanban/kanban-fields/SolidBigintKanbanField.js.map +1 -0
  249. package/dist/components/core/kanban/kanban-fields/SolidBigintKanbanField.tsx +9 -0
  250. package/dist/components/core/kanban/kanban-fields/SolidBooleanKanbanField.d.ts +4 -0
  251. package/dist/components/core/kanban/kanban-fields/SolidBooleanKanbanField.d.ts.map +1 -0
  252. package/dist/components/core/kanban/kanban-fields/SolidBooleanKanbanField.js +8 -0
  253. package/dist/components/core/kanban/kanban-fields/SolidBooleanKanbanField.js.map +1 -0
  254. package/dist/components/core/kanban/kanban-fields/SolidBooleanKanbanField.tsx +16 -0
  255. package/dist/components/core/kanban/kanban-fields/SolidComputedKanbanField.d.ts +4 -0
  256. package/dist/components/core/kanban/kanban-fields/SolidComputedKanbanField.d.ts.map +1 -0
  257. package/dist/components/core/kanban/kanban-fields/SolidComputedKanbanField.js +21 -0
  258. package/dist/components/core/kanban/kanban-fields/SolidComputedKanbanField.js.map +1 -0
  259. package/dist/components/core/kanban/kanban-fields/SolidComputedKanbanField.tsx +23 -0
  260. package/dist/components/core/kanban/kanban-fields/SolidDateKanbanField.d.ts +4 -0
  261. package/dist/components/core/kanban/kanban-fields/SolidDateKanbanField.d.ts.map +1 -0
  262. package/dist/components/core/kanban/kanban-fields/SolidDateKanbanField.js +8 -0
  263. package/dist/components/core/kanban/kanban-fields/SolidDateKanbanField.js.map +1 -0
  264. package/dist/components/core/kanban/kanban-fields/SolidDateKanbanField.tsx +14 -0
  265. package/dist/components/core/kanban/kanban-fields/SolidDatetimeKanbanField.d.ts +4 -0
  266. package/dist/components/core/kanban/kanban-fields/SolidDatetimeKanbanField.d.ts.map +1 -0
  267. package/dist/components/core/kanban/kanban-fields/SolidDatetimeKanbanField.js +8 -0
  268. package/dist/components/core/kanban/kanban-fields/SolidDatetimeKanbanField.js.map +1 -0
  269. package/dist/components/core/kanban/kanban-fields/SolidDatetimeKanbanField.tsx +13 -0
  270. package/dist/components/core/kanban/kanban-fields/SolidDecimalKanbanField.d.ts +4 -0
  271. package/dist/components/core/kanban/kanban-fields/SolidDecimalKanbanField.d.ts.map +1 -0
  272. package/dist/components/core/kanban/kanban-fields/SolidDecimalKanbanField.js +7 -0
  273. package/dist/components/core/kanban/kanban-fields/SolidDecimalKanbanField.js.map +1 -0
  274. package/dist/components/core/kanban/kanban-fields/SolidDecimalKanbanField.tsx +9 -0
  275. package/dist/components/core/kanban/kanban-fields/SolidExternalIdKanbanField.d.ts +4 -0
  276. package/dist/components/core/kanban/kanban-fields/SolidExternalIdKanbanField.d.ts.map +1 -0
  277. package/dist/components/core/kanban/kanban-fields/SolidExternalIdKanbanField.js +8 -0
  278. package/dist/components/core/kanban/kanban-fields/SolidExternalIdKanbanField.js.map +1 -0
  279. package/dist/components/core/kanban/kanban-fields/SolidExternalIdKanbanField.tsx +12 -0
  280. package/dist/components/core/kanban/kanban-fields/SolidFloatKanbanField.d.ts +4 -0
  281. package/dist/components/core/kanban/kanban-fields/SolidFloatKanbanField.d.ts.map +1 -0
  282. package/dist/components/core/kanban/kanban-fields/SolidFloatKanbanField.js +7 -0
  283. package/dist/components/core/kanban/kanban-fields/SolidFloatKanbanField.js.map +1 -0
  284. package/dist/components/core/kanban/kanban-fields/SolidFloatKanbanField.tsx +9 -0
  285. package/dist/components/core/kanban/kanban-fields/SolidIdKanbanField.d.ts +4 -0
  286. package/dist/components/core/kanban/kanban-fields/SolidIdKanbanField.d.ts.map +1 -0
  287. package/dist/components/core/kanban/kanban-fields/SolidIdKanbanField.js +8 -0
  288. package/dist/components/core/kanban/kanban-fields/SolidIdKanbanField.js.map +1 -0
  289. package/dist/components/core/kanban/kanban-fields/SolidIdKanbanField.tsx +14 -0
  290. package/dist/components/core/kanban/kanban-fields/SolidIntKanbanField.d.ts +4 -0
  291. package/dist/components/core/kanban/kanban-fields/SolidIntKanbanField.d.ts.map +1 -0
  292. package/dist/components/core/kanban/kanban-fields/SolidIntKanbanField.js +16 -0
  293. package/dist/components/core/kanban/kanban-fields/SolidIntKanbanField.js.map +1 -0
  294. package/dist/components/core/kanban/kanban-fields/SolidIntKanbanField.tsx +20 -0
  295. package/dist/components/core/kanban/kanban-fields/SolidLongTextKanbanField.d.ts +4 -0
  296. package/dist/components/core/kanban/kanban-fields/SolidLongTextKanbanField.d.ts.map +1 -0
  297. package/dist/components/core/kanban/kanban-fields/SolidLongTextKanbanField.js +7 -0
  298. package/dist/components/core/kanban/kanban-fields/SolidLongTextKanbanField.js.map +1 -0
  299. package/dist/components/core/kanban/kanban-fields/SolidLongTextKanbanField.tsx +9 -0
  300. package/dist/components/core/kanban/kanban-fields/SolidMediaMultipleKanbanField.d.ts +4 -0
  301. package/dist/components/core/kanban/kanban-fields/SolidMediaMultipleKanbanField.d.ts.map +1 -0
  302. package/dist/components/core/kanban/kanban-fields/SolidMediaMultipleKanbanField.js +56 -0
  303. package/dist/components/core/kanban/kanban-fields/SolidMediaMultipleKanbanField.js.map +1 -0
  304. package/dist/components/core/kanban/kanban-fields/SolidMediaMultipleKanbanField.tsx +140 -0
  305. package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.d.ts +4 -0
  306. package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.d.ts.map +1 -0
  307. package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.js +42 -0
  308. package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.js.map +1 -0
  309. package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.tsx +164 -0
  310. package/dist/components/core/kanban/kanban-fields/SolidRelationKanbanField.d.ts +4 -0
  311. package/dist/components/core/kanban/kanban-fields/SolidRelationKanbanField.d.ts.map +1 -0
  312. package/dist/components/core/kanban/kanban-fields/SolidRelationKanbanField.js +11 -0
  313. package/dist/components/core/kanban/kanban-fields/SolidRelationKanbanField.js.map +1 -0
  314. package/dist/components/core/kanban/kanban-fields/SolidRelationKanbanField.tsx +13 -0
  315. package/dist/components/core/kanban/kanban-fields/SolidRichTextKanbanField.d.ts +4 -0
  316. package/dist/components/core/kanban/kanban-fields/SolidRichTextKanbanField.d.ts.map +1 -0
  317. package/dist/components/core/kanban/kanban-fields/SolidRichTextKanbanField.js +7 -0
  318. package/dist/components/core/kanban/kanban-fields/SolidRichTextKanbanField.js.map +1 -0
  319. package/dist/components/core/kanban/kanban-fields/SolidRichTextKanbanField.tsx +9 -0
  320. package/dist/components/core/kanban/kanban-fields/SolidSelectionDynamicKanbanField.d.ts +4 -0
  321. package/dist/components/core/kanban/kanban-fields/SolidSelectionDynamicKanbanField.d.ts.map +1 -0
  322. package/dist/components/core/kanban/kanban-fields/SolidSelectionDynamicKanbanField.js +8 -0
  323. package/dist/components/core/kanban/kanban-fields/SolidSelectionDynamicKanbanField.js.map +1 -0
  324. package/dist/components/core/kanban/kanban-fields/SolidSelectionDynamicKanbanField.tsx +14 -0
  325. package/dist/components/core/kanban/kanban-fields/SolidSelectionStaticKanbanField.d.ts +4 -0
  326. package/dist/components/core/kanban/kanban-fields/SolidSelectionStaticKanbanField.d.ts.map +1 -0
  327. package/dist/components/core/kanban/kanban-fields/SolidSelectionStaticKanbanField.js +8 -0
  328. package/dist/components/core/kanban/kanban-fields/SolidSelectionStaticKanbanField.js.map +1 -0
  329. package/dist/components/core/kanban/kanban-fields/SolidSelectionStaticKanbanField.tsx +14 -0
  330. package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.d.ts +4 -0
  331. package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.d.ts.map +1 -0
  332. package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.js +37 -0
  333. package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.js.map +1 -0
  334. package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.tsx +121 -0
  335. package/dist/components/core/kanban/kanban-fields/SolidTimeKanbanField.d.ts +4 -0
  336. package/dist/components/core/kanban/kanban-fields/SolidTimeKanbanField.d.ts.map +1 -0
  337. package/dist/components/core/kanban/kanban-fields/SolidTimeKanbanField.js +8 -0
  338. package/dist/components/core/kanban/kanban-fields/SolidTimeKanbanField.js.map +1 -0
  339. package/dist/components/core/kanban/kanban-fields/SolidTimeKanbanField.tsx +12 -0
  340. package/dist/components/core/kanban/kanban-fields/SolidUuidKanbanField.d.ts +4 -0
  341. package/dist/components/core/kanban/kanban-fields/SolidUuidKanbanField.d.ts.map +1 -0
  342. package/dist/components/core/kanban/kanban-fields/SolidUuidKanbanField.js +8 -0
  343. package/dist/components/core/kanban/kanban-fields/SolidUuidKanbanField.js.map +1 -0
  344. package/dist/components/core/kanban/kanban-fields/SolidUuidKanbanField.tsx +13 -0
  345. package/dist/components/core/kanban/kanban-fields/relations/SolidRelationManyToOneKanbanField.d.ts +4 -0
  346. package/dist/components/core/kanban/kanban-fields/relations/SolidRelationManyToOneKanbanField.d.ts.map +1 -0
  347. package/dist/components/core/kanban/kanban-fields/relations/SolidRelationManyToOneKanbanField.js +7 -0
  348. package/dist/components/core/kanban/kanban-fields/relations/SolidRelationManyToOneKanbanField.js.map +1 -0
  349. package/dist/components/core/kanban/kanban-fields/relations/SolidRelationManyToOneKanbanField.tsx +16 -0
  350. package/dist/components/core/kanban/kanbanViewRegistry.d.ts +7 -0
  351. package/dist/components/core/kanban/kanbanViewRegistry.d.ts.map +1 -0
  352. package/dist/components/core/kanban/kanbanViewRegistry.js +17 -0
  353. package/dist/components/core/kanban/kanbanViewRegistry.js.map +1 -0
  354. package/dist/components/core/kanban/kanbanViewRegistry.ts +23 -0
  355. package/dist/components/core/list/PLAN.md +1 -1
  356. package/dist/components/core/list/SolidListView.d.ts +11 -0
  357. package/dist/components/core/list/SolidListView.d.ts.map +1 -1
  358. package/dist/components/core/list/SolidListView.js +8 -3
  359. package/dist/components/core/list/SolidListView.js.map +1 -1
  360. package/dist/components/core/list/SolidListView.tsx +82 -43
  361. package/dist/components/core/list/SolidListViewConfigure.js +1 -1
  362. package/dist/components/core/list/SolidListViewConfigure.js.map +1 -1
  363. package/dist/components/core/list/SolidListViewConfigure.tsx +1 -1
  364. package/dist/components/core/list/SolidListViewRowButtonContextMenu.d.ts +2 -0
  365. package/dist/components/core/list/SolidListViewRowButtonContextMenu.d.ts.map +1 -0
  366. package/dist/components/core/list/SolidListViewRowButtonContextMenu.js +39 -0
  367. package/dist/components/core/list/SolidListViewRowButtonContextMenu.js.map +1 -0
  368. package/dist/components/core/list/SolidListViewRowButtonContextMenu.tsx +40 -0
  369. package/dist/components/core/list/SolidVarInputsFilterElement.d.ts +12 -0
  370. package/dist/components/core/list/SolidVarInputsFilterElement.d.ts.map +1 -0
  371. package/dist/components/core/list/SolidVarInputsFilterElement.js +81 -0
  372. package/dist/components/core/list/SolidVarInputsFilterElement.js.map +1 -0
  373. package/dist/components/core/list/SolidVarInputsFilterElement.tsx +184 -0
  374. package/dist/components/core/list/widgets/SolidChatterMessageCoModelEntityIdListViewWidget.d.ts +3 -0
  375. package/dist/components/core/list/widgets/SolidChatterMessageCoModelEntityIdListViewWidget.d.ts.map +1 -0
  376. package/dist/components/core/list/widgets/SolidChatterMessageCoModelEntityIdListViewWidget.js +87 -0
  377. package/dist/components/core/list/widgets/SolidChatterMessageCoModelEntityIdListViewWidget.js.map +1 -0
  378. package/dist/components/core/list/widgets/SolidChatterMessageCoModelEntityIdListViewWidget.tsx +70 -0
  379. package/dist/components/core/list/widgets/SolidMqMessageStageListViewWidget.d.ts +3 -0
  380. package/dist/components/core/list/widgets/SolidMqMessageStageListViewWidget.d.ts.map +1 -0
  381. package/dist/components/core/list/widgets/SolidMqMessageStageListViewWidget.js +33 -0
  382. package/dist/components/core/list/widgets/SolidMqMessageStageListViewWidget.js.map +1 -0
  383. package/dist/components/core/list/widgets/SolidMqMessageStageListViewWidget.tsx +50 -0
  384. package/dist/components/core/list/widgets/SolidSummarizeListHeaderActionMqMessages.d.ts +3 -0
  385. package/dist/components/core/list/widgets/SolidSummarizeListHeaderActionMqMessages.d.ts.map +1 -0
  386. package/dist/components/core/list/widgets/SolidSummarizeListHeaderActionMqMessages.js +158 -0
  387. package/dist/components/core/list/widgets/SolidSummarizeListHeaderActionMqMessages.js.map +1 -0
  388. package/dist/components/core/list/widgets/SolidSummarizeListHeaderActionMqMessages.tsx +185 -0
  389. package/dist/components/core/model/CreateModel.d.ts.map +1 -1
  390. package/dist/components/core/model/CreateModel.js +2 -1
  391. package/dist/components/core/model/CreateModel.js.map +1 -1
  392. package/dist/components/core/model/CreateModel.tsx +2 -0
  393. package/dist/components/core/model/FieldMetaData.d.ts +1 -1
  394. package/dist/components/core/model/FieldMetaData.d.ts.map +1 -1
  395. package/dist/components/core/model/FieldMetaData.js +8 -8
  396. package/dist/components/core/model/FieldMetaData.js.map +1 -1
  397. package/dist/components/core/model/FieldMetaData.tsx +2 -2
  398. package/dist/components/core/model/FieldMetaDataForm.css +119 -0
  399. package/dist/components/core/model/FieldMetaDataForm.js +1 -1
  400. package/dist/components/core/model/FieldMetaDataForm.js.map +1 -1
  401. package/dist/components/core/model/FieldMetaDataForm.tsx +1 -1
  402. package/dist/components/core/module/ModuleMetadataExplorer.css +64 -0
  403. package/dist/components/core/module/ModulePackageDialog.css +117 -12
  404. package/dist/components/core/tree/SolidTreeView.d.ts.map +1 -1
  405. package/dist/components/core/tree/SolidTreeView.js +6 -3
  406. package/dist/components/core/tree/SolidTreeView.js.map +1 -1
  407. package/dist/components/core/tree/SolidTreeView.tsx +35 -13
  408. package/dist/components/layout/AdminHeaderActions.d.ts.map +1 -1
  409. package/dist/components/layout/AdminHeaderActions.js +15 -10
  410. package/dist/components/layout/AdminHeaderActions.js.map +1 -1
  411. package/dist/components/layout/AdminHeaderActions.tsx +15 -8
  412. package/dist/components/layout/AdminTopHeader.d.ts.map +1 -1
  413. package/dist/components/layout/AdminTopHeader.js +1 -18
  414. package/dist/components/layout/AdminTopHeader.js.map +1 -1
  415. package/dist/components/layout/AdminTopHeader.tsx +3 -21
  416. package/dist/components/layout/DashboardHeader.d.ts +3 -0
  417. package/dist/components/layout/DashboardHeader.d.ts.map +1 -0
  418. package/dist/components/layout/DashboardHeader.js +20 -0
  419. package/dist/components/layout/DashboardHeader.js.map +1 -0
  420. package/dist/components/layout/DashboardHeader.tsx +94 -0
  421. package/dist/helpers/# no such endpoints exist, need to calle +3 -0
  422. package/dist/helpers/ToastContainer.d.ts +4 -0
  423. package/dist/helpers/ToastContainer.d.ts.map +1 -0
  424. package/dist/helpers/ToastContainer.js +49 -0
  425. package/dist/helpers/ToastContainer.js.map +1 -0
  426. package/dist/helpers/ToastContainer.tsx +94 -0
  427. package/dist/helpers/resolveActiveUserId.d.ts +13 -0
  428. package/dist/helpers/resolveActiveUserId.d.ts.map +1 -0
  429. package/dist/helpers/resolveActiveUserId.js +86 -0
  430. package/dist/helpers/resolveActiveUserId.js.map +1 -0
  431. package/dist/helpers/resolveActiveUserId.ts +90 -0
  432. package/dist/helpers/showToast.d.ts +5 -0
  433. package/dist/helpers/showToast.d.ts.map +1 -0
  434. package/dist/helpers/showToast.js +17 -0
  435. package/dist/helpers/showToast.js.map +1 -0
  436. package/dist/helpers/showToast.ts +13 -0
  437. package/dist/helpers/studioSandbox.d.ts +31 -0
  438. package/dist/helpers/studioSandbox.d.ts.map +1 -0
  439. package/dist/helpers/studioSandbox.js +104 -0
  440. package/dist/helpers/studioSandbox.js.map +1 -0
  441. package/dist/helpers/studioSandbox.ts +117 -0
  442. package/dist/index.d.ts +5 -0
  443. package/dist/index.d.ts.map +1 -1
  444. package/dist/index.js +3 -0
  445. package/dist/index.js.map +1 -1
  446. package/dist/index.ts +5 -0
  447. package/dist/nextAuth/authProviders.d.ts +4 -0
  448. package/dist/nextAuth/authProviders.d.ts.map +1 -0
  449. package/dist/nextAuth/authProviders.js +198 -0
  450. package/dist/nextAuth/authProviders.js.map +1 -0
  451. package/dist/nextAuth/authProviders.tsx +232 -0
  452. package/dist/nextAuth/handleLogout.d.ts +2 -0
  453. package/dist/nextAuth/handleLogout.d.ts.map +1 -0
  454. package/dist/nextAuth/handleLogout.js +36 -0
  455. package/dist/nextAuth/handleLogout.js.map +1 -0
  456. package/dist/nextAuth/handleLogout.tsx +39 -0
  457. package/dist/nextAuth/refreshAccessToken.d.ts +2 -0
  458. package/dist/nextAuth/refreshAccessToken.d.ts.map +1 -0
  459. package/dist/nextAuth/refreshAccessToken.js +24 -0
  460. package/dist/nextAuth/refreshAccessToken.js.map +1 -0
  461. package/dist/nextAuth/refreshAccessToken.tsx +28 -0
  462. package/dist/redux/api/dashboardApi.d.ts +23 -0
  463. package/dist/redux/api/dashboardApi.d.ts.map +1 -0
  464. package/dist/redux/api/dashboardApi.js +35 -0
  465. package/dist/redux/api/dashboardApi.js.map +1 -0
  466. package/dist/redux/api/dashboardApi.ts +56 -0
  467. package/dist/redux/api/dashboardLayoutApi.d.ts +24 -0
  468. package/dist/redux/api/dashboardLayoutApi.d.ts.map +1 -0
  469. package/dist/redux/api/dashboardLayoutApi.js +34 -0
  470. package/dist/redux/api/dashboardLayoutApi.js.map +1 -0
  471. package/dist/redux/api/dashboardLayoutApi.ts +55 -0
  472. package/dist/redux/api/dashboardQuestionApi.d.ts +5 -0
  473. package/dist/redux/api/dashboardQuestionApi.d.ts.map +1 -0
  474. package/dist/redux/api/dashboardQuestionApi.js +18 -0
  475. package/dist/redux/api/dashboardQuestionApi.js.map +1 -0
  476. package/dist/redux/api/dashboardQuestionApi.ts +17 -0
  477. package/dist/redux/features/settingsSlice.d.ts +20 -0
  478. package/dist/redux/features/settingsSlice.d.ts.map +1 -0
  479. package/dist/redux/features/settingsSlice.js +39 -0
  480. package/dist/redux/features/settingsSlice.js.map +1 -0
  481. package/dist/redux/features/settingsSlice.ts +60 -0
  482. package/dist/resources/globals.css +15 -0
  483. package/dist/resources/images/Footerbg.png +0 -0
  484. package/dist/resources/images/LoginBanner.png +0 -0
  485. package/dist/resources/images/dashboard/Ellipse 1.svg +10 -0
  486. package/dist/resources/images/dashboard/Rectangle 17.svg +10 -0
  487. package/dist/resources/images/dashboard/Rectangle 25.svg +11 -0
  488. package/dist/resources/images/dashboard/image 5.svg +9 -0
  489. package/dist/resources/images/loginhero.png +0 -0
  490. package/dist/resources/images/logo.png +0 -0
  491. package/dist/resources/images/radix-logo-white.png +0 -0
  492. package/dist/resources/images/radix-logo.png +0 -0
  493. package/dist/resources/images/signupBanner.png +0 -0
  494. package/dist/resources/shadcn-base.css +16 -70
  495. package/dist/resources/solid-custom.css +11 -0
  496. package/dist/resources/solid-tailwind-generated.css +1 -1
  497. package/dist/resources/themes/solid-dark-enterprise/theme-variables.css +28 -0
  498. package/dist/resources/themes/solid-dark-enterprise/theme.css +926 -0
  499. package/dist/resources/themes/solid-dark-modern/theme-variables.css +27 -0
  500. package/dist/resources/themes/solid-dark-modern/theme.css +600 -0
  501. package/dist/resources/themes/solid-light-enterprise/theme-variables.css +28 -0
  502. package/dist/resources/themes/solid-light-enterprise/theme.css +930 -0
  503. package/dist/resources/themes/solid-light-modern/theme-variables.css +31 -0
  504. package/dist/resources/themes/solid-light-modern/theme.css +1041 -0
  505. package/dist/routes/pages/admin/core/CardPage.d.ts.map +1 -1
  506. package/dist/routes/pages/admin/core/CardPage.js +15 -2
  507. package/dist/routes/pages/admin/core/CardPage.js.map +1 -1
  508. package/dist/routes/pages/admin/core/CardPage.tsx +17 -2
  509. package/dist/routes/pages/admin/core/DashboardPage.d.ts.map +1 -1
  510. package/dist/routes/pages/admin/core/DashboardPage.js +31 -3
  511. package/dist/routes/pages/admin/core/DashboardPage.js.map +1 -1
  512. package/dist/routes/pages/admin/core/DashboardPage.tsx +39 -11
  513. package/dist/routes/pages/admin/core/KanbanPage.d.ts.map +1 -1
  514. package/dist/routes/pages/admin/core/KanbanPage.js +15 -2
  515. package/dist/routes/pages/admin/core/KanbanPage.js.map +1 -1
  516. package/dist/routes/pages/admin/core/KanbanPage.tsx +17 -2
  517. package/dist/routes/pages/admin/core/ListPage.d.ts.map +1 -1
  518. package/dist/routes/pages/admin/core/ListPage.js +5 -13
  519. package/dist/routes/pages/admin/core/ListPage.js.map +1 -1
  520. package/dist/routes/pages/admin/core/ListPage.tsx +5 -15
  521. package/dist/theme/theme-registry.d.ts +6 -0
  522. package/dist/theme/theme-registry.d.ts.map +1 -0
  523. package/dist/theme/theme-registry.js +65 -0
  524. package/dist/theme/theme-registry.js.map +1 -0
  525. package/dist/theme/theme-registry.ts +78 -0
  526. package/dist/types/solid-core.d.ts +8 -0
  527. package/package.json +1 -1
  528. package/dist/components/core/list/SolidCustomListColumn.d.ts +0 -8
  529. package/dist/components/core/list/SolidCustomListColumn.d.ts.map +0 -1
  530. package/dist/components/core/list/SolidCustomListColumn.js +0 -47
  531. package/dist/components/core/list/SolidCustomListColumn.js.map +0 -1
  532. package/dist/components/core/list/SolidCustomListColumn.tsx +0 -57
  533. package/dist/helpers/modulePackageResumeState.d.ts +0 -6
  534. package/dist/helpers/modulePackageResumeState.d.ts.map +0 -1
  535. package/dist/helpers/modulePackageResumeState.js +0 -46
  536. package/dist/helpers/modulePackageResumeState.js.map +0 -1
  537. package/dist/helpers/modulePackageResumeState.ts +0 -57
@@ -1,9 +1,11 @@
1
1
  import { useEffect, useMemo, useRef, useState } from "react";
2
2
  import { useParams } from "react-router-dom";
3
+ import { useDispatch } from "react-redux";
3
4
  import { AlertTriangle, Filter, RefreshCw, Save } from "lucide-react";
4
5
  import { GridStack, type GridStackNode } from "gridstack";
5
6
  import "gridstack/dist/gridstack.min.css";
6
7
  import { getExtensionComponent } from "../../../../helpers/registry";
8
+ import { ERROR_MESSAGES } from "../../../../constants/error-messages";
7
9
  import {
8
10
  SolidAutocomplete,
9
11
  SolidButton,
@@ -22,6 +24,7 @@ import {
22
24
  useLazyGetDashboardVariableOptionsQuery,
23
25
  useSaveDashboardLayoutMutation,
24
26
  } from "../../../../redux/api/dashboardRuntimeApi";
27
+ import { showToast } from "../../../../redux/features/toastSlice";
25
28
  import type { DashboardGridLayoutItem, DashboardWidgetComponentProps } from "../../../../types/dashboard";
26
29
  import styles from "./DashboardPage.module.css";
27
30
 
@@ -79,6 +82,11 @@ const toIso = (value: Date | null | undefined): string | null => {
79
82
  return value.toISOString();
80
83
  };
81
84
 
85
+ const getErrorMessage = (error: any, fallback: string): string => {
86
+ const message = error?.data?.message ?? error?.data?.error ?? error?.message;
87
+ return Array.isArray(message) ? message.join(", ") : message || fallback;
88
+ };
89
+
82
90
  const extractWidgetName = (widgetData: any): string =>
83
91
  widgetData?.meta?.widgetName ?? widgetData?.widgetName ?? widgetData?.id ?? "";
84
92
 
@@ -424,6 +432,7 @@ const isUnauthorizedWidgetRuntime = (runtime: any): boolean =>
424
432
  !!(runtime?.meta?.unauthorized || runtime?.uiHints?.state === "unauthorized");
425
433
 
426
434
  export function DashboardPage() {
435
+ const dispatch = useDispatch();
427
436
  const params = useParams();
428
437
  const moduleName = params.moduleName ?? "";
429
438
  const dashboardName = params.dashboardName ?? "";
@@ -748,17 +757,36 @@ export function DashboardPage() {
748
757
  ? draftLayoutItems
749
758
  : baseLayout;
750
759
 
751
- await saveDashboardLayout({
752
- moduleName,
753
- dashboardName,
754
- layout: {
755
- engine: "gridstack",
756
- columns: gridColumns,
757
- items,
758
- },
759
- }).unwrap();
760
-
761
- setDraftLayoutItems(null);
760
+ try {
761
+ await saveDashboardLayout({
762
+ moduleName,
763
+ dashboardName,
764
+ layout: {
765
+ engine: "gridstack",
766
+ columns: gridColumns,
767
+ items,
768
+ },
769
+ }).unwrap();
770
+
771
+ setDraftLayoutItems(null);
772
+ dispatch(
773
+ showToast({
774
+ severity: "success",
775
+ summary: ERROR_MESSAGES.LAYOUT,
776
+ detail: ERROR_MESSAGES.DASHBOARD_LAYOUT_UPDATE_SUCCESSFULLY,
777
+ life: 3000,
778
+ })
779
+ );
780
+ } catch (error) {
781
+ dispatch(
782
+ showToast({
783
+ severity: "error",
784
+ summary: ERROR_MESSAGES.UPDATE_FAILED,
785
+ detail: getErrorMessage(error, ERROR_MESSAGES.DASHBOARD_LAYOUT_UPDATE_FAILED),
786
+ life: 4000,
787
+ })
788
+ );
789
+ }
762
790
  }
763
791
 
764
792
  const renderVariable = (variable: any) => {
@@ -1 +1 @@
1
- {"version":3,"file":"KanbanPage.d.ts","sourceRoot":"","sources":["../../../../../src/routes/pages/admin/core/KanbanPage.tsx"],"names":[],"mappings":"AAQA,wBAAgB,UAAU,4CAczB"}
1
+ {"version":3,"file":"KanbanPage.d.ts","sourceRoot":"","sources":["../../../../../src/routes/pages/admin/core/KanbanPage.tsx"],"names":[],"mappings":"AAUA,wBAAgB,UAAU,4CA2BzB"}
@@ -11,8 +11,9 @@ var __assign = (this && this.__assign) || function () {
11
11
  };
12
12
  import { jsx as _jsx } from "react/jsx-runtime";
13
13
  import { SolidKanbanView } from "../../../../components/core/kanban/SolidKanbanView";
14
+ import { registerKanbanView, unregisterKanbanView } from "../../../../components/core/kanban/kanbanViewRegistry";
14
15
  import { camelCase } from "lodash";
15
- import { useEffect } from "react";
16
+ import { useCallback, useEffect } from "react";
16
17
  import { useParams } from "react-router-dom";
17
18
  import { storeCurrentModelViewContext } from "../../../../helpers/modelViewPersistence";
18
19
  import { usePathname } from "../../../../hooks/usePathname";
@@ -24,10 +25,22 @@ export function KanbanPage() {
24
25
  var search = searchParams.toString();
25
26
  var moduleName = params.moduleName || "";
26
27
  var modelName = params.modelName ? camelCase(params.modelName) : "";
28
+ var menuItemId = searchParams.get("menuItemId") || "";
29
+ var menuItemName = searchParams.get("menuItemName") || "";
30
+ var actionId = searchParams.get("actionId") || "";
31
+ var actionName = searchParams.get("actionName") || "";
32
+ var kanbanId = "page:".concat(moduleName, ":").concat(modelName, ":").concat(menuItemId, ":").concat(menuItemName, ":").concat(actionId, ":").concat(actionName);
33
+ var setKanbanRef = useCallback(function (handle) {
34
+ if (handle) {
35
+ registerKanbanView(kanbanId, handle);
36
+ return;
37
+ }
38
+ unregisterKanbanView(kanbanId);
39
+ }, [kanbanId]);
27
40
  useEffect(function () {
28
41
  var currentUrl = search ? "".concat(pathname, "?").concat(search) : pathname;
29
42
  storeCurrentModelViewContext(currentUrl);
30
43
  }, [pathname, search]);
31
- return _jsx(SolidKanbanView, __assign({}, params, { embeded: false, moduleName: moduleName, modelName: modelName }));
44
+ return _jsx(SolidKanbanView, __assign({ ref: setKanbanRef }, params, { embeded: false, moduleName: moduleName, modelName: modelName }), kanbanId);
32
45
  }
33
46
  //# sourceMappingURL=KanbanPage.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"KanbanPage.js","sourceRoot":"","sources":["../../../../../src/routes/pages/admin/core/KanbanPage.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oDAAoD,CAAC;AACrF,OAAO,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACnC,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAC7C,OAAO,EAAE,4BAA4B,EAAE,MAAM,0CAA0C,CAAC;AACxF,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAEpE,MAAM,UAAU,UAAU;IACxB,IAAM,MAAM,GAAG,SAAS,EAAE,CAAC;IAC3B,IAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAC/B,IAAM,YAAY,GAAG,eAAe,EAAE,CAAC;IACvC,IAAM,MAAM,GAAG,YAAY,CAAC,QAAQ,EAAE,CAAC;IACvC,IAAM,UAAU,GAAG,MAAM,CAAC,UAAU,IAAI,EAAE,CAAC;IAC3C,IAAM,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;IAEtE,SAAS,CAAC;QACR,IAAM,UAAU,GAAG,MAAM,CAAC,CAAC,CAAC,UAAG,QAAQ,cAAI,MAAM,CAAE,CAAC,CAAC,CAAC,QAAQ,CAAC;QAC/D,4BAA4B,CAAC,UAAU,CAAC,CAAC;IAC3C,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC;IAEvB,OAAO,KAAC,eAAe,eAAK,MAAM,IAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,IAAI,CAAC;AACvG,CAAC","sourcesContent":["import { SolidKanbanView } from \"../../../../components/core/kanban/SolidKanbanView\";\nimport { camelCase } from \"lodash\";\nimport { useEffect } from \"react\";\nimport { useParams } from \"react-router-dom\";\nimport { storeCurrentModelViewContext } from \"../../../../helpers/modelViewPersistence\";\nimport { usePathname } from \"../../../../hooks/usePathname\";\nimport { useSearchParams } from \"../../../../hooks/useSearchParams\";\n\nexport function KanbanPage() {\n const params = useParams();\n const pathname = usePathname();\n const searchParams = useSearchParams();\n const search = searchParams.toString();\n const moduleName = params.moduleName || \"\";\n const modelName = params.modelName ? camelCase(params.modelName) : \"\";\n\n useEffect(() => {\n const currentUrl = search ? `${pathname}?${search}` : pathname;\n storeCurrentModelViewContext(currentUrl);\n }, [pathname, search]);\n\n return <SolidKanbanView {...params} embeded={false} moduleName={moduleName} modelName={modelName} />;\n}\n"]}
1
+ {"version":3,"file":"KanbanPage.js","sourceRoot":"","sources":["../../../../../src/routes/pages/admin/core/KanbanPage.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,oDAAoD,CAAC;AAErF,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,M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AAE;YACV,kBAAkB,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC;YACrC,OAAO;SACR;QACD,oBAAoB,CAAC,QAAQ,CAAC,CAAC;IACjC,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC,CAAC;IAEf,SAAS,CAAC;QACR,IAAM,UAAU,GAAG,MAAM,CAAC,CAAC,CAAC,UAAG,QAAQ,cAAI,MAAM,CAAE,CAAC,CAAC,CAAC,QAAQ,CAAC;QAC/D,4BAA4B,CAAC,UAAU,CAAC,CAAC;IAC3C,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC;IAEvB,OAAO,KAAC,eAAe,aAAC,GAAG,EAAE,YAAY,IAAqB,MAAM,IAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,KAAlF,QAAQ,CAA8E,CAAC;AACzI,CAAC","sourcesContent":["import { SolidKanbanView } from \"../../../../components/core/kanban/SolidKanbanView\";\nimport type { SolidKanbanViewHandle } from \"../../../../components/core/kanban/SolidKanbanView\";\nimport { registerKanbanView, unregisterKanbanView } from \"../../../../components/core/kanban/kanbanViewRegistry\";\nimport { camelCase } from \"lodash\";\nimport { useCallback, useEffect } from \"react\";\nimport { useParams } from \"react-router-dom\";\nimport { storeCurrentModelViewContext } from \"../../../../helpers/modelViewPersistence\";\nimport { usePathname } from \"../../../../hooks/usePathname\";\nimport { useSearchParams } from \"../../../../hooks/useSearchParams\";\n\nexport function KanbanPage() {\n const params = useParams();\n const pathname = usePathname();\n const searchParams = useSearchParams();\n const search = searchParams.toString();\n const moduleName = params.moduleName || \"\";\n const modelName = params.modelName ? camelCase(params.modelName) : \"\";\n const menuItemId = searchParams.get(\"menuItemId\") || \"\";\n const menuItemName = searchParams.get(\"menuItemName\") || \"\";\n const actionId = searchParams.get(\"actionId\") || \"\";\n const actionName = searchParams.get(\"actionName\") || \"\";\n const kanbanId = `page:${moduleName}:${modelName}:${menuItemId}:${menuItemName}:${actionId}:${actionName}`;\n\n const setKanbanRef = useCallback((handle: SolidKanbanViewHandle | null) => {\n if (handle) {\n registerKanbanView(kanbanId, handle);\n return;\n }\n unregisterKanbanView(kanbanId);\n }, [kanbanId]);\n\n useEffect(() => {\n const currentUrl = search ? `${pathname}?${search}` : pathname;\n storeCurrentModelViewContext(currentUrl);\n }, [pathname, search]);\n\n return <SolidKanbanView ref={setKanbanRef} key={kanbanId} {...params} embeded={false} moduleName={moduleName} modelName={modelName} />;\n}\n"]}
@@ -1,6 +1,8 @@
1
1
  import { SolidKanbanView } from "../../../../components/core/kanban/SolidKanbanView";
2
+ import type { SolidKanbanViewHandle } from "../../../../components/core/kanban/SolidKanbanView";
3
+ import { registerKanbanView, unregisterKanbanView } from "../../../../components/core/kanban/kanbanViewRegistry";
2
4
  import { camelCase } from "lodash";
3
- import { useEffect } from "react";
5
+ import { useCallback, useEffect } from "react";
4
6
  import { useParams } from "react-router-dom";
5
7
  import { storeCurrentModelViewContext } from "../../../../helpers/modelViewPersistence";
6
8
  import { usePathname } from "../../../../hooks/usePathname";
@@ -13,11 +15,24 @@ export function KanbanPage() {
13
15
  const search = searchParams.toString();
14
16
  const moduleName = params.moduleName || "";
15
17
  const modelName = params.modelName ? camelCase(params.modelName) : "";
18
+ const menuItemId = searchParams.get("menuItemId") || "";
19
+ const menuItemName = searchParams.get("menuItemName") || "";
20
+ const actionId = searchParams.get("actionId") || "";
21
+ const actionName = searchParams.get("actionName") || "";
22
+ const kanbanId = `page:${moduleName}:${modelName}:${menuItemId}:${menuItemName}:${actionId}:${actionName}`;
23
+
24
+ const setKanbanRef = useCallback((handle: SolidKanbanViewHandle | null) => {
25
+ if (handle) {
26
+ registerKanbanView(kanbanId, handle);
27
+ return;
28
+ }
29
+ unregisterKanbanView(kanbanId);
30
+ }, [kanbanId]);
16
31
 
17
32
  useEffect(() => {
18
33
  const currentUrl = search ? `${pathname}?${search}` : pathname;
19
34
  storeCurrentModelViewContext(currentUrl);
20
35
  }, [pathname, search]);
21
36
 
22
- return <SolidKanbanView {...params} embeded={false} moduleName={moduleName} modelName={modelName} />;
37
+ return <SolidKanbanView ref={setKanbanRef} key={kanbanId} {...params} embeded={false} moduleName={moduleName} modelName={modelName} />;
23
38
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ListPage.d.ts","sourceRoot":"","sources":["../../../../../src/routes/pages/admin/core/ListPage.tsx"],"names":[],"mappings":"AAUA,wBAAgB,QAAQ,4CA+CvB"}
1
+ {"version":3,"file":"ListPage.d.ts","sourceRoot":"","sources":["../../../../../src/routes/pages/admin/core/ListPage.tsx"],"names":[],"mappings":"AAUA,wBAAgB,QAAQ,4CAqCvB"}
@@ -40,20 +40,12 @@ export function ListPage() {
40
40
  }, [listId]);
41
41
  useEffect(function () {
42
42
  var currentUrl = search ? "".concat(pathname, "?").concat(search) : pathname;
43
- var hasSavedQuery = searchParams.has("savedQuery");
44
- if (!hasSavedQuery) {
45
- var retainedUrl = resolveRetainedModelViewRoute(currentUrl);
46
- if (retainedUrl !== currentUrl) {
47
- router.replace(retainedUrl);
48
- return;
49
- }
43
+ var retainedUrl = resolveRetainedModelViewRoute(currentUrl);
44
+ if (retainedUrl !== currentUrl) {
45
+ router.replace(retainedUrl);
46
+ return;
50
47
  }
51
- // savedQuery strip karke store karo
52
- var params = new URLSearchParams(search);
53
- params.delete("savedQuery");
54
- var cleanSearch = params.toString();
55
- var urlToStore = cleanSearch ? "".concat(pathname, "?").concat(cleanSearch) : pathname;
56
- storeCurrentModelViewContext(urlToStore);
48
+ storeCurrentModelViewContext(currentUrl);
57
49
  }, [pathname, search]);
58
50
  return _jsx(SolidListView, __assign({ ref: setListRef }, params, { embeded: false, moduleName: moduleName, modelName: modelName }), listId);
59
51
  }
@@ -1 +1 @@
1
- {"version":3,"file":"ListPage.js","sourceRoot":"","sources":["../../../../../src/routes/pages/admin/core/ListPage.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,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,CAA8E,CAAC;AACnI,CAAC","sourcesContent":["import { SolidListView } from \"../../../../components/core/list/SolidListView\";\nimport { camelCase } from \"lodash\";\nimport { useCallback, useEffect } from \"react\";\nimport { useParams, useSearchParams } from \"react-router-dom\";\nimport type { SolidListViewHandle } from \"../../../../components/core/list/SolidListView\";\nimport { registerListView, unregisterListView } from \"../../../../components/core/list/listViewRegistry\";\nimport { usePathname } from \"../../../../hooks/usePathname\";\nimport { useRouter } from \"../../../../hooks/useRouter\";\nimport { resolveRetainedModelViewRoute, storeCurrentModelViewContext } from \"../../../../helpers/modelViewPersistence\";\n\nexport function ListPage() {\n const params = useParams();\n const [searchParams] = useSearchParams();\n const pathname = usePathname();\n const router = useRouter();\n const search = searchParams.toString();\n\n const moduleName = params.moduleName || \"\";\n const modelName = params.modelName ? camelCase(params.modelName) : \"\";\n\n const menuItemId = searchParams.get(\"menuItemId\") || \"\";\n const menuItemName = searchParams.get(\"menuItemName\") || \"\";\n const actionId = searchParams.get(\"actionId\") || \"\";\n const actionName = searchParams.get(\"actionName\") || \"\";\n\n const listId = `page:${moduleName}:${modelName}:${menuItemId}:${menuItemName}:${actionId}:${actionName}`;\n\n const setListRef = useCallback((handle: SolidListViewHandle | null) => {\n if (handle) {\n registerListView(listId, handle);\n return;\n }\n unregisterListView(listId);\n }, [listId]);\n\n useEffect(() => {\n const currentUrl = search ? `${pathname}?${search}` : pathname;\n const hasSavedQuery = searchParams.has(\"savedQuery\");\n\n if (!hasSavedQuery) {\n const retainedUrl = resolveRetainedModelViewRoute(currentUrl);\n if (retainedUrl !== currentUrl) {\n router.replace(retainedUrl);\n return;\n }\n }\n\n // savedQuery strip karke store karo\n const params = new URLSearchParams(search);\n params.delete(\"savedQuery\");\n const cleanSearch = params.toString();\n const urlToStore = cleanSearch ? `${pathname}?${cleanSearch}` : pathname;\n\n storeCurrentModelViewContext(urlToStore);\n }, [pathname, search]);\n\n return <SolidListView ref={setListRef} key={listId} {...params} embeded={false} moduleName={moduleName} modelName={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G,CAAC,UAAU,CAAC,IAAI,EAAE,CAAC;IACpD,IAAM,UAAU,GAAG,YAAY,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,EAAE,CAAC;IAExD,IAAM,MAAM,GAAG,eAAQ,UAAU,cAAI,SAAS,cAAI,UAAU,cAAI,YAAY,cAAI,QAAQ,cAAI,UAAU,CAAE,CAAC;IAEzG,IAAM,UAAU,GAAG,WAAW,CAAC,UAAC,MAAkC;QAChE,IAAI,MAAM,EAAE;YACV,gBAAgB,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;YACjC,OAAO;SACR;QACD,kBAAkB,CAAC,MAAM,CAAC,CAAC;IAC7B,CAAC,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAEb,SAAS,CAAC;QACR,IAAM,UAAU,GAAG,MAAM,CAAC,CAAC,CAAC,UAAG,QAAQ,cAAI,MAAM,CAAE,CAAC,CAAC,CAAC,QAAQ,CAAC;QAC/D,IAAM,WAAW,GAAG,6BAA6B,CAAC,UAAU,CAAC,CAAC;QAC9D,IAAI,WAAW,KAAK,UAAU,EAAE;YAC9B,MAAM,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC;YAC5B,OAAO;SACR;QAED,4BAA4B,CAAC,UAAU,CAAC,CAAC;IAC3C,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,CAAC,CAAC,CAAC;IAEvB,OAAO,KAAC,aAAa,aAAC,GAAG,EAAE,UAAU,IAAmB,MAAM,IAAE,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,UAAU,EAAE,SAAS,EAAE,SAAS,KAAhF,MAAM,CAA8E,CAAC;AACnI,CAAC","sourcesContent":["import { SolidListView } from \"../../../../components/core/list/SolidListView\";\nimport { camelCase } from \"lodash\";\nimport { useCallback, useEffect } from \"react\";\nimport { useParams, useSearchParams } from \"react-router-dom\";\nimport type { SolidListViewHandle } from \"../../../../components/core/list/SolidListView\";\nimport { registerListView, unregisterListView } from \"../../../../components/core/list/listViewRegistry\";\nimport { usePathname } from \"../../../../hooks/usePathname\";\nimport { useRouter } from \"../../../../hooks/useRouter\";\nimport { resolveRetainedModelViewRoute, storeCurrentModelViewContext } from \"../../../../helpers/modelViewPersistence\";\n\nexport function ListPage() {\n const params = useParams();\n const [searchParams] = useSearchParams();\n const pathname = usePathname();\n const router = useRouter();\n const search = searchParams.toString();\n\n const moduleName = params.moduleName || \"\";\n const modelName = params.modelName ? camelCase(params.modelName) : \"\";\n\n const menuItemId = searchParams.get(\"menuItemId\") || \"\";\n const menuItemName = searchParams.get(\"menuItemName\") || \"\";\n const actionId = searchParams.get(\"actionId\") || \"\";\n const actionName = searchParams.get(\"actionName\") || \"\";\n\n const listId = `page:${moduleName}:${modelName}:${menuItemId}:${menuItemName}:${actionId}:${actionName}`;\n\n const setListRef = useCallback((handle: SolidListViewHandle | null) => {\n if (handle) {\n registerListView(listId, handle);\n return;\n }\n unregisterListView(listId);\n }, [listId]);\n\n useEffect(() => {\n const currentUrl = search ? `${pathname}?${search}` : pathname;\n const retainedUrl = resolveRetainedModelViewRoute(currentUrl);\n if (retainedUrl !== currentUrl) {\n router.replace(retainedUrl);\n return;\n }\n\n storeCurrentModelViewContext(currentUrl);\n }, [pathname, search]);\n\n return <SolidListView ref={setListRef} key={listId} {...params} embeded={false} moduleName={moduleName} modelName={modelName} />;\n}\n"]}
@@ -35,23 +35,13 @@ export function ListPage() {
35
35
 
36
36
  useEffect(() => {
37
37
  const currentUrl = search ? `${pathname}?${search}` : pathname;
38
- const hasSavedQuery = searchParams.has("savedQuery");
39
-
40
- if (!hasSavedQuery) {
41
- const retainedUrl = resolveRetainedModelViewRoute(currentUrl);
42
- if (retainedUrl !== currentUrl) {
43
- router.replace(retainedUrl);
44
- return;
45
- }
38
+ const retainedUrl = resolveRetainedModelViewRoute(currentUrl);
39
+ if (retainedUrl !== currentUrl) {
40
+ router.replace(retainedUrl);
41
+ return;
46
42
  }
47
43
 
48
- // savedQuery strip karke store karo
49
- const params = new URLSearchParams(search);
50
- params.delete("savedQuery");
51
- const cleanSearch = params.toString();
52
- const urlToStore = cleanSearch ? `${pathname}?${cleanSearch}` : pathname;
53
-
54
- storeCurrentModelViewContext(urlToStore);
44
+ storeCurrentModelViewContext(currentUrl);
55
45
  }, [pathname, search]);
56
46
 
57
47
  return <SolidListView ref={setListRef} key={listId} {...params} embeded={false} moduleName={moduleName} modelName={modelName} />;
@@ -0,0 +1,6 @@
1
+ export type ThemeMode = "light" | "dark";
2
+ export declare function getThemeModeFromThemeKey(value?: string | null): ThemeMode | null;
3
+ export declare function getDefaultThemeKey(mode?: ThemeMode): string;
4
+ export declare function toThemeModeVariant(value: string, mode: ThemeMode): string | null;
5
+ export declare function isRegisteredThemeKey(value?: string | null, mode?: ThemeMode): value is string;
6
+ //# sourceMappingURL=theme-registry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme-registry.d.ts","sourceRoot":"","sources":["../../src/theme/theme-registry.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;AAgDzC,wBAAgB,wBAAwB,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,CAQhF;AAED,wBAAgB,kBAAkB,CAAC,IAAI,GAAE,SAAmB,GAAG,MAAM,CAEpE;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,SAAS,GAAG,MAAM,GAAG,IAAI,CAShF;AAED,wBAAgB,oBAAoB,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,EAAE,IAAI,CAAC,EAAE,SAAS,GAAG,KAAK,IAAI,MAAM,CAI7F"}
@@ -0,0 +1,65 @@
1
+ var DEFAULT_THEME_KEYS = {
2
+ light: "solid-light-purple",
3
+ dark: "solid-dark-purple",
4
+ };
5
+ var THEME_MODE_TOKENS = {
6
+ light: "-light-",
7
+ dark: "-dark-",
8
+ };
9
+ var THEME_MODE_SUFFIXES = {
10
+ light: "-light",
11
+ dark: "-dark",
12
+ };
13
+ function normalizeThemeKey(value) {
14
+ var normalized = value === null || value === void 0 ? void 0 : value.trim().toLowerCase();
15
+ return normalized || null;
16
+ }
17
+ function matchesThemeMode(value, mode) {
18
+ return (value.includes(THEME_MODE_TOKENS[mode])
19
+ || value.endsWith(THEME_MODE_SUFFIXES[mode])
20
+ || value === mode);
21
+ }
22
+ function replaceThemeMode(value, targetMode) {
23
+ var sourceMode = targetMode === "light" ? "dark" : "light";
24
+ var sourceToken = THEME_MODE_TOKENS[sourceMode];
25
+ var targetToken = THEME_MODE_TOKENS[targetMode];
26
+ var sourceSuffix = THEME_MODE_SUFFIXES[sourceMode];
27
+ var targetSuffix = THEME_MODE_SUFFIXES[targetMode];
28
+ if (value.includes(sourceToken)) {
29
+ return value.replace(sourceToken, targetToken);
30
+ }
31
+ if (value.endsWith(sourceSuffix)) {
32
+ return "".concat(value.slice(0, -sourceSuffix.length)).concat(targetSuffix);
33
+ }
34
+ return null;
35
+ }
36
+ export function getThemeModeFromThemeKey(value) {
37
+ var normalized = normalizeThemeKey(value);
38
+ if (!normalized)
39
+ return null;
40
+ if (matchesThemeMode(normalized, "light"))
41
+ return "light";
42
+ if (matchesThemeMode(normalized, "dark"))
43
+ return "dark";
44
+ return null;
45
+ }
46
+ export function getDefaultThemeKey(mode) {
47
+ if (mode === void 0) { mode = "light"; }
48
+ return DEFAULT_THEME_KEYS[mode];
49
+ }
50
+ export function toThemeModeVariant(value, mode) {
51
+ var normalized = normalizeThemeKey(value);
52
+ if (!normalized)
53
+ return null;
54
+ if (getThemeModeFromThemeKey(normalized) === mode) {
55
+ return normalized;
56
+ }
57
+ return replaceThemeMode(normalized, mode);
58
+ }
59
+ export function isRegisteredThemeKey(value, mode) {
60
+ var currentMode = getThemeModeFromThemeKey(value);
61
+ if (!value || !currentMode)
62
+ return false;
63
+ return mode ? currentMode === mode : true;
64
+ }
65
+ //# sourceMappingURL=theme-registry.js.map
@@ -0,0 +1 @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CAAC,IAAI,CAAC;AAC5C,CAAC","sourcesContent":["export type ThemeMode = \"light\" | \"dark\";\n\nconst DEFAULT_THEME_KEYS: Record<ThemeMode, string> = {\n light: \"solid-light-purple\",\n dark: \"solid-dark-purple\",\n};\n\nconst THEME_MODE_TOKENS: Record<ThemeMode, string> = {\n light: \"-light-\",\n dark: \"-dark-\",\n};\n\nconst THEME_MODE_SUFFIXES: Record<ThemeMode, string> = {\n light: \"-light\",\n dark: \"-dark\",\n};\n\nfunction normalizeThemeKey(value?: string | null): string | null {\n const normalized = value?.trim().toLowerCase();\n return normalized || null;\n}\n\nfunction matchesThemeMode(value: string, mode: ThemeMode): boolean {\n return (\n value.includes(THEME_MODE_TOKENS[mode])\n || value.endsWith(THEME_MODE_SUFFIXES[mode])\n || value === mode\n );\n}\n\nfunction replaceThemeMode(value: string, targetMode: ThemeMode): string | null {\n const sourceMode: ThemeMode = targetMode === \"light\" ? \"dark\" : \"light\";\n const sourceToken = THEME_MODE_TOKENS[sourceMode];\n const targetToken = THEME_MODE_TOKENS[targetMode];\n const sourceSuffix = THEME_MODE_SUFFIXES[sourceMode];\n const targetSuffix = THEME_MODE_SUFFIXES[targetMode];\n\n if (value.includes(sourceToken)) {\n return value.replace(sourceToken, targetToken);\n }\n\n if (value.endsWith(sourceSuffix)) {\n return `${value.slice(0, -sourceSuffix.length)}${targetSuffix}`;\n }\n\n return null;\n}\n\nexport function getThemeModeFromThemeKey(value?: string | null): ThemeMode | null {\n const normalized = normalizeThemeKey(value);\n if (!normalized) return null;\n\n if (matchesThemeMode(normalized, \"light\")) return \"light\";\n if (matchesThemeMode(normalized, \"dark\")) return \"dark\";\n\n return null;\n}\n\nexport function getDefaultThemeKey(mode: ThemeMode = \"light\"): string {\n return DEFAULT_THEME_KEYS[mode];\n}\n\nexport function toThemeModeVariant(value: string, mode: ThemeMode): string | null {\n const normalized = normalizeThemeKey(value);\n if (!normalized) return null;\n\n if (getThemeModeFromThemeKey(normalized) === mode) {\n return normalized;\n }\n\n return replaceThemeMode(normalized, mode);\n}\n\nexport function isRegisteredThemeKey(value?: string | null, mode?: ThemeMode): value is string {\n const currentMode = getThemeModeFromThemeKey(value);\n if (!value || !currentMode) return false;\n return mode ? currentMode === mode : true;\n}\n"]}
@@ -0,0 +1,78 @@
1
+ export type ThemeMode = "light" | "dark";
2
+
3
+ const DEFAULT_THEME_KEYS: Record<ThemeMode, string> = {
4
+ light: "solid-light-purple",
5
+ dark: "solid-dark-purple",
6
+ };
7
+
8
+ const THEME_MODE_TOKENS: Record<ThemeMode, string> = {
9
+ light: "-light-",
10
+ dark: "-dark-",
11
+ };
12
+
13
+ const THEME_MODE_SUFFIXES: Record<ThemeMode, string> = {
14
+ light: "-light",
15
+ dark: "-dark",
16
+ };
17
+
18
+ function normalizeThemeKey(value?: string | null): string | null {
19
+ const normalized = value?.trim().toLowerCase();
20
+ return normalized || null;
21
+ }
22
+
23
+ function matchesThemeMode(value: string, mode: ThemeMode): boolean {
24
+ return (
25
+ value.includes(THEME_MODE_TOKENS[mode])
26
+ || value.endsWith(THEME_MODE_SUFFIXES[mode])
27
+ || value === mode
28
+ );
29
+ }
30
+
31
+ function replaceThemeMode(value: string, targetMode: ThemeMode): string | null {
32
+ const sourceMode: ThemeMode = targetMode === "light" ? "dark" : "light";
33
+ const sourceToken = THEME_MODE_TOKENS[sourceMode];
34
+ const targetToken = THEME_MODE_TOKENS[targetMode];
35
+ const sourceSuffix = THEME_MODE_SUFFIXES[sourceMode];
36
+ const targetSuffix = THEME_MODE_SUFFIXES[targetMode];
37
+
38
+ if (value.includes(sourceToken)) {
39
+ return value.replace(sourceToken, targetToken);
40
+ }
41
+
42
+ if (value.endsWith(sourceSuffix)) {
43
+ return `${value.slice(0, -sourceSuffix.length)}${targetSuffix}`;
44
+ }
45
+
46
+ return null;
47
+ }
48
+
49
+ export function getThemeModeFromThemeKey(value?: string | null): ThemeMode | null {
50
+ const normalized = normalizeThemeKey(value);
51
+ if (!normalized) return null;
52
+
53
+ if (matchesThemeMode(normalized, "light")) return "light";
54
+ if (matchesThemeMode(normalized, "dark")) return "dark";
55
+
56
+ return null;
57
+ }
58
+
59
+ export function getDefaultThemeKey(mode: ThemeMode = "light"): string {
60
+ return DEFAULT_THEME_KEYS[mode];
61
+ }
62
+
63
+ export function toThemeModeVariant(value: string, mode: ThemeMode): string | null {
64
+ const normalized = normalizeThemeKey(value);
65
+ if (!normalized) return null;
66
+
67
+ if (getThemeModeFromThemeKey(normalized) === mode) {
68
+ return normalized;
69
+ }
70
+
71
+ return replaceThemeMode(normalized, mode);
72
+ }
73
+
74
+ export function isRegisteredThemeKey(value?: string | null, mode?: ThemeMode): value is string {
75
+ const currentMode = getThemeModeFromThemeKey(value);
76
+ if (!value || !currentMode) return false;
77
+ return mode ? currentMode === mode : true;
78
+ }
@@ -108,7 +108,15 @@ export type LayoutAttribute = {
108
108
  showEditFormButton?: boolean;
109
109
  showAddFormButton?: boolean;
110
110
  showDeleteFormButton?: boolean;
111
+ action?: string;
112
+ actionInContextMenu?: boolean;
113
+ openInPopup?: boolean;
114
+ popupWidth?: string;
115
+ closable?: boolean;
116
+ roles?: string[];
117
+ env?: string[] | string;
111
118
  formButtons?: any;
119
+ headerButtons?: any;
112
120
  rowButtons?: any;
113
121
  whereClause?: string;
114
122
  disabled?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solidxai/core-ui",
3
- "version": "0.1.14-beta.6",
3
+ "version": "0.1.14-beta.9",
4
4
  "scripts": {
5
5
  "build:tailwind": "tailwindcss -i ./src/resources/solid-tailwind.css -o ./src/resources/solid-tailwind-generated.css -c ./tailwind.config.js --minify",
6
6
  "prebuild": "npm run build:tailwind && npm run copy-resources && npm run copy-styles",
@@ -1,8 +0,0 @@
1
- type SolidCustomListColumnProps = {
2
- solidListViewMetaData: any;
3
- column: any;
4
- embeded?: boolean;
5
- };
6
- export declare const SolidCustomListColumn: ({ solidListViewMetaData, column, embeded }: SolidCustomListColumnProps) => import("react/jsx-runtime").JSX.Element;
7
- export {};
8
- //# sourceMappingURL=SolidCustomListColumn.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SolidCustomListColumn.d.ts","sourceRoot":"","sources":["../../../../src/components/core/list/SolidCustomListColumn.tsx"],"names":[],"mappings":"AAIA,KAAK,0BAA0B,GAAG;IAC9B,qBAAqB,EAAE,GAAG,CAAC;IAC3B,MAAM,EAAE,GAAG,CAAC;IACZ,OAAO,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC;AAEF,eAAO,MAAM,qBAAqB,+CAAgD,0BAA0B,4CA8C3G,CAAC"}
@@ -1,47 +0,0 @@
1
- var __assign = (this && this.__assign) || function () {
2
- __assign = Object.assign || function(t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
6
- t[p] = s[p];
7
- }
8
- return t;
9
- };
10
- return __assign.apply(this, arguments);
11
- };
12
- import { jsx as _jsx } from "react/jsx-runtime";
13
- import { Column } from "./SolidDataTable";
14
- import { getExtensionComponent } from "../../../helpers/registry";
15
- export var SolidCustomListColumn = function (_a) {
16
- var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
17
- var solidListViewMetaData = _a.solidListViewMetaData, column = _a.column, embeded = _a.embeded;
18
- var widgetName = (_b = column === null || column === void 0 ? void 0 : column.attrs) === null || _b === void 0 ? void 0 : _b.widget;
19
- var fieldName = (_e = (_d = (_c = column === null || column === void 0 ? void 0 : column.attrs) === null || _c === void 0 ? void 0 : _c.name) !== null && _d !== void 0 ? _d : widgetName) !== null && _e !== void 0 ? _e : "custom";
20
- var header = (_g = (_f = column === null || column === void 0 ? void 0 : column.attrs) === null || _f === void 0 ? void 0 : _f.label) !== null && _g !== void 0 ? _g : fieldName;
21
- var DynamicWidget = widgetName ? getExtensionComponent(widgetName) : null;
22
- var truncateAfter = (_l = (_k = (_j = (_h = solidListViewMetaData === null || solidListViewMetaData === void 0 ? void 0 : solidListViewMetaData.data) === null || _h === void 0 ? void 0 : _h.solidView) === null || _j === void 0 ? void 0 : _j.layout) === null || _k === void 0 ? void 0 : _k.attrs) === null || _l === void 0 ? void 0 : _l.truncateAfter;
23
- var fieldMetadata = {
24
- name: fieldName,
25
- displayName: header,
26
- type: (_o = (_m = column === null || column === void 0 ? void 0 : column.attrs) === null || _m === void 0 ? void 0 : _m.fieldType) !== null && _o !== void 0 ? _o : "shortText",
27
- };
28
- return (_jsx(Column, { field: fieldName, sortable: Boolean(((_p = column === null || column === void 0 ? void 0 : column.attrs) === null || _p === void 0 ? void 0 : _p.sortable) && ((_q = column === null || column === void 0 ? void 0 : column.attrs) === null || _q === void 0 ? void 0 : _q.name)), header: function () { return (_jsx("div", { style: {
29
- maxWidth: truncateAfter ? "".concat(truncateAfter, "ch") : "30ch",
30
- whiteSpace: "nowrap",
31
- textOverflow: "ellipsis",
32
- overflow: "hidden",
33
- }, children: header })); }, body: function (rowData) {
34
- if (!DynamicWidget) {
35
- return null;
36
- }
37
- var widgetProps = {
38
- rowData: rowData,
39
- solidListViewMetaData: solidListViewMetaData,
40
- fieldMetadata: fieldMetadata,
41
- column: column,
42
- embeded: embeded,
43
- };
44
- return _jsx(DynamicWidget, __assign({}, widgetProps));
45
- } }, fieldName));
46
- };
47
- //# sourceMappingURL=SolidCustomListColumn.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SolidCustomListColumn.js","sourceRoot":"","sources":["../../../../src/components/core/list/SolidCustomListColumn.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC1C,OAAO,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAC;AASlE,MAAM,CAAC,IAAM,qBAAqB,GAAG,UAAC,EAAsE;;QAApE,qBAAqB,2BAAA,EAAE,MAAM,YAAA,EAAE,OAAO,aAAA;IAC1E,IAAM,UAAU,GAAG,MAAA,M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EAXa,CAWb,EACD,IAAI,EAAE,UAAC,OAAO;YACV,IAAI,CAAC,aAAa,EAAE;gBAChB,OAAO,IAAI,CAAC;aACf;YAED,IAAM,WAAW,GAA8B;gBAC3C,OAAO,SAAA;gBACP,qBAAqB,uBAAA;gBACrB,aAAa,EAAE,aAAoB;gBACnC,MAAM,QAAA;gBACN,OAAO,SAAA;aACV,CAAC;YAEF,OAAO,KAAC,aAAa,eAAK,WAAW,EAAI,CAAC;QAC9C,CAAC,IA7BI,SAAS,CA8BhB,CACL,CAAC;AACN,CAAC,CAAC","sourcesContent":["import { Column } from \"./SolidDataTable\";\nimport { getExtensionComponent } from \"../../../helpers/registry\";\nimport type { SolidListFieldWidgetProps } from \"../../../types/solid-core\";\n\ntype SolidCustomListColumnProps = {\n solidListViewMetaData: any;\n column: any;\n embeded?: boolean;\n};\n\nexport const SolidCustomListColumn = ({ solidListViewMetaData, column, embeded }: SolidCustomListColumnProps) => {\n const widgetName = column?.attrs?.widget;\n const fieldName = column?.attrs?.name ?? widgetName ?? \"custom\";\n const header = column?.attrs?.label ?? fieldName;\n const DynamicWidget = widgetName ? getExtensionComponent(widgetName) : null;\n const truncateAfter = solidListViewMetaData?.data?.solidView?.layout?.attrs?.truncateAfter;\n const fieldMetadata = {\n name: fieldName,\n displayName: header,\n type: column?.attrs?.fieldType ?? \"shortText\",\n };\n\n return (\n <Column\n key={fieldName}\n field={fieldName}\n sortable={Boolean(column?.attrs?.sortable && column?.attrs?.name)}\n header={() => (\n <div\n style={{\n maxWidth: truncateAfter ? `${truncateAfter}ch` : \"30ch\",\n whiteSpace: \"nowrap\",\n textOverflow: \"ellipsis\",\n overflow: \"hidden\",\n }}\n >\n {header}\n </div>\n )}\n body={(rowData) => {\n if (!DynamicWidget) {\n return null;\n }\n\n const widgetProps: SolidListFieldWidgetProps = {\n rowData,\n solidListViewMetaData,\n fieldMetadata: fieldMetadata as any,\n column,\n embeded,\n };\n\n return <DynamicWidget {...widgetProps} />;\n }}\n />\n );\n};\n"]}
@@ -1,57 +0,0 @@
1
- import { Column } from "./SolidDataTable";
2
- import { getExtensionComponent } from "../../../helpers/registry";
3
- import type { SolidListFieldWidgetProps } from "../../../types/solid-core";
4
-
5
- type SolidCustomListColumnProps = {
6
- solidListViewMetaData: any;
7
- column: any;
8
- embeded?: boolean;
9
- };
10
-
11
- export const SolidCustomListColumn = ({ solidListViewMetaData, column, embeded }: SolidCustomListColumnProps) => {
12
- const widgetName = column?.attrs?.widget;
13
- const fieldName = column?.attrs?.name ?? widgetName ?? "custom";
14
- const header = column?.attrs?.label ?? fieldName;
15
- const DynamicWidget = widgetName ? getExtensionComponent(widgetName) : null;
16
- const truncateAfter = solidListViewMetaData?.data?.solidView?.layout?.attrs?.truncateAfter;
17
- const fieldMetadata = {
18
- name: fieldName,
19
- displayName: header,
20
- type: column?.attrs?.fieldType ?? "shortText",
21
- };
22
-
23
- return (
24
- <Column
25
- key={fieldName}
26
- field={fieldName}
27
- sortable={Boolean(column?.attrs?.sortable && column?.attrs?.name)}
28
- header={() => (
29
- <div
30
- style={{
31
- maxWidth: truncateAfter ? `${truncateAfter}ch` : "30ch",
32
- whiteSpace: "nowrap",
33
- textOverflow: "ellipsis",
34
- overflow: "hidden",
35
- }}
36
- >
37
- {header}
38
- </div>
39
- )}
40
- body={(rowData) => {
41
- if (!DynamicWidget) {
42
- return null;
43
- }
44
-
45
- const widgetProps: SolidListFieldWidgetProps = {
46
- rowData,
47
- solidListViewMetaData,
48
- fieldMetadata: fieldMetadata as any,
49
- column,
50
- embeded,
51
- };
52
-
53
- return <DynamicWidget {...widgetProps} />;
54
- }}
55
- />
56
- );
57
- };
@@ -1,6 +0,0 @@
1
- export declare function getPendingModulePackageResumeTransactionKey(): string | null;
2
- export declare function setPendingModulePackageResumeTransactionKey(transactionKey: string | null | undefined): void;
3
- export declare function clearPendingModulePackageResumeTransactionKey(expectedTransactionKey?: string | null): void;
4
- export declare function getLastOpenedModulePackageResumeTransactionKey(): string | null;
5
- export declare function setLastOpenedModulePackageResumeTransactionKey(transactionKey: string | null | undefined): void;
6
- //# sourceMappingURL=modulePackageResumeState.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"modulePackageResumeState.d.ts","sourceRoot":"","sources":["../../src/helpers/modulePackageResumeState.ts"],"names":[],"mappings":"AAOA,wBAAgB,2CAA2C,IAAI,MAAM,GAAG,IAAI,CAM3E;AAED,wBAAgB,2CAA2C,CAAC,cAAc,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,QAYpG;AAED,wBAAgB,6CAA6C,CAAC,sBAAsB,CAAC,EAAE,MAAM,GAAG,IAAI,QAanG;AAED,wBAAgB,8CAA8C,IAAI,MAAM,GAAG,IAAI,CAE9E;AAED,wBAAgB,8CAA8C,CAAC,cAAc,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,QAQvG"}