@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
@@ -0,0 +1,49 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { ERROR_MESSAGES } from '../constants/error-messages';
3
+ import { Toast } from 'primereact/toast';
4
+ import { useRef } from 'react';
5
+ var toastRef = null;
6
+ export var ToastContainer = function () {
7
+ toastRef = useRef(null);
8
+ return _jsx(Toast, { ref: toastRef });
9
+ };
10
+ function isFetchBaseQueryErrorWithErrorResponse(error) {
11
+ return error && typeof error === 'object' && 'data' in error && 'message' in error.data;
12
+ }
13
+ var extractErrorMessages = function (errorObj) {
14
+ return Object.values(errorObj);
15
+ };
16
+ export var handleError = function (errorToast) {
17
+ var _a;
18
+ var errorMessage = errorToast ? errorToast : [ERROR_MESSAGES.ERROR_OCCURED];
19
+ if (typeof errorMessage == 'object') {
20
+ if (isFetchBaseQueryErrorWithErrorResponse(errorToast)) {
21
+ errorMessage = errorToast.data.message;
22
+ }
23
+ }
24
+ // if (isFetchBaseQueryErrorWithErrorResponse(errorToast)) {
25
+ // errorMessage = errorToast.data.message;
26
+ // } else {
27
+ // errorMessage = ['Something went wrong'];
28
+ // }
29
+ (_a = toastRef === null || toastRef === void 0 ? void 0 : toastRef.current) === null || _a === void 0 ? void 0 : _a.show({
30
+ severity: 'error',
31
+ summary: ERROR_MESSAGES.ERROR,
32
+ detail: errorMessage,
33
+ life: 3000,
34
+ //@ts-ignore
35
+ content: function (props) { return (_jsx("div", { className: "flex flex-column align-items-left", style: { flex: "1" }, children: Array.isArray(errorMessage) ? (errorMessage.map(function (message, index) { return (_jsx("div", { className: "flex align-items-center gap-2", children: _jsx("span", { className: "font-bold text-900", children: message.trim() }) }, index)); })) : (_jsx("div", { className: "flex align-items-center gap-2", children: _jsx("span", { className: "font-bold text-900", children: errorMessage === null || errorMessage === void 0 ? void 0 : errorMessage.trim() }) })) })); },
36
+ });
37
+ };
38
+ export var handleSuccess = function (successMessage) {
39
+ var _a;
40
+ (_a = toastRef === null || toastRef === void 0 ? void 0 : toastRef.current) === null || _a === void 0 ? void 0 : _a.show({
41
+ severity: 'error',
42
+ summary: ERROR_MESSAGES.IS_SUCCESS,
43
+ detail: successMessage,
44
+ life: 3000,
45
+ //@ts-ignore
46
+ content: function (props) { return (_jsx("div", { className: "flex flex-column align-items-left", style: { flex: "1" }, children: Array.isArray(successMessage) ? (successMessage.map(function (message, index) { return (_jsx("div", { className: "flex align-items-center gap-2", children: _jsx("span", { className: "font-bold text-900", children: message.trim() }) }, index)); })) : (_jsx("div", { className: "flex align-items-center gap-2", children: _jsx("span", { className: "font-bold text-900", children: successMessage === null || successMessage === void 0 ? void 0 : successMessage.trim() }) })) })); },
47
+ });
48
+ };
49
+ //# sourceMappingURL=ToastContainer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ToastContainer.js","sourceRoot":"","sources":["../../src/helpers/ToastContainer.tsx"],"names":[],"mappings":"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","sourcesContent":["\nimport { ERROR_MESSAGES } from '../constants/error-messages';\nimport { FetchBaseQueryError } from '@reduxjs/toolkit/dist/query';\nimport { Toast } from 'primereact/toast';\nimport React, { useRef } from 'react';\n\n\ninterface ErrorResponseData {\n message: string;\n statusCode: number;\n error: string;\n}\n\n\nlet toastRef: React.MutableRefObject<Toast | null> | null = null;\n\nexport const ToastContainer = () => {\n toastRef = useRef(null);\n\n return <Toast ref={toastRef} />;\n};\n\nfunction isFetchBaseQueryErrorWithErrorResponse(error: any): error is FetchBaseQueryError & { data: ErrorResponseData } {\n return error && typeof error === 'object' && 'data' in error && 'message' in error.data;\n}\nconst extractErrorMessages = (errorObj: Record<string, string>): string[] => {\n return Object.values(errorObj);\n};\n\n\nexport const handleError = (errorToast: any) => {\n let errorMessage: any = errorToast ? errorToast : [ERROR_MESSAGES.ERROR_OCCURED];\n\n\n if (typeof errorMessage == 'object') {\n if (isFetchBaseQueryErrorWithErrorResponse(errorToast)) {\n errorMessage = errorToast.data.message;\n }\n }\n // if (isFetchBaseQueryErrorWithErrorResponse(errorToast)) {\n // errorMessage = errorToast.data.message;\n // } else {\n // errorMessage = ['Something went wrong'];\n // }\n\n toastRef?.current?.show({\n severity: 'error',\n summary: ERROR_MESSAGES.ERROR,\n detail: errorMessage,\n life: 3000,\n //@ts-ignore\n content: (props) => (\n <div className=\"flex flex-column align-items-left\" style={{ flex: \"1\" }}>\n {Array.isArray(errorMessage) ? (\n errorMessage.map((message, index) => (\n <div className=\"flex align-items-center gap-2\" key={index}>\n <span className=\"font-bold text-900\">{message.trim()}</span>\n </div>\n ))\n ) : (\n <div className=\"flex align-items-center gap-2\">\n <span className=\"font-bold text-900\">{errorMessage?.trim()}</span>\n </div>\n )}\n </div>\n ),\n });\n};\n\nexport const handleSuccess = (successMessage: any) => {\n\n toastRef?.current?.show({\n severity: 'error',\n summary: ERROR_MESSAGES.IS_SUCCESS,\n detail: successMessage,\n life: 3000,\n //@ts-ignore\n content: (props) => (\n <div className=\"flex flex-column align-items-left\" style={{ flex: \"1\" }}>\n {Array.isArray(successMessage) ? (\n successMessage.map((message, index) => (\n <div className=\"flex align-items-center gap-2\" key={index}>\n <span className=\"font-bold text-900\">{message.trim()}</span>\n </div>\n ))\n ) : (\n <div className=\"flex align-items-center gap-2\">\n <span className=\"font-bold text-900\">{successMessage?.trim()}</span>\n </div>\n )}\n </div>\n ),\n });\n};\n"]}
@@ -0,0 +1,94 @@
1
+
2
+ import { ERROR_MESSAGES } from '../constants/error-messages';
3
+ import { FetchBaseQueryError } from '@reduxjs/toolkit/dist/query';
4
+ import { Toast } from 'primereact/toast';
5
+ import React, { useRef } from 'react';
6
+
7
+
8
+ interface ErrorResponseData {
9
+ message: string;
10
+ statusCode: number;
11
+ error: string;
12
+ }
13
+
14
+
15
+ let toastRef: React.MutableRefObject<Toast | null> | null = null;
16
+
17
+ export const ToastContainer = () => {
18
+ toastRef = useRef(null);
19
+
20
+ return <Toast ref={toastRef} />;
21
+ };
22
+
23
+ function isFetchBaseQueryErrorWithErrorResponse(error: any): error is FetchBaseQueryError & { data: ErrorResponseData } {
24
+ return error && typeof error === 'object' && 'data' in error && 'message' in error.data;
25
+ }
26
+ const extractErrorMessages = (errorObj: Record<string, string>): string[] => {
27
+ return Object.values(errorObj);
28
+ };
29
+
30
+
31
+ export const handleError = (errorToast: any) => {
32
+ let errorMessage: any = errorToast ? errorToast : [ERROR_MESSAGES.ERROR_OCCURED];
33
+
34
+
35
+ if (typeof errorMessage == 'object') {
36
+ if (isFetchBaseQueryErrorWithErrorResponse(errorToast)) {
37
+ errorMessage = errorToast.data.message;
38
+ }
39
+ }
40
+ // if (isFetchBaseQueryErrorWithErrorResponse(errorToast)) {
41
+ // errorMessage = errorToast.data.message;
42
+ // } else {
43
+ // errorMessage = ['Something went wrong'];
44
+ // }
45
+
46
+ toastRef?.current?.show({
47
+ severity: 'error',
48
+ summary: ERROR_MESSAGES.ERROR,
49
+ detail: errorMessage,
50
+ life: 3000,
51
+ //@ts-ignore
52
+ content: (props) => (
53
+ <div className="flex flex-column align-items-left" style={{ flex: "1" }}>
54
+ {Array.isArray(errorMessage) ? (
55
+ errorMessage.map((message, index) => (
56
+ <div className="flex align-items-center gap-2" key={index}>
57
+ <span className="font-bold text-900">{message.trim()}</span>
58
+ </div>
59
+ ))
60
+ ) : (
61
+ <div className="flex align-items-center gap-2">
62
+ <span className="font-bold text-900">{errorMessage?.trim()}</span>
63
+ </div>
64
+ )}
65
+ </div>
66
+ ),
67
+ });
68
+ };
69
+
70
+ export const handleSuccess = (successMessage: any) => {
71
+
72
+ toastRef?.current?.show({
73
+ severity: 'error',
74
+ summary: ERROR_MESSAGES.IS_SUCCESS,
75
+ detail: successMessage,
76
+ life: 3000,
77
+ //@ts-ignore
78
+ content: (props) => (
79
+ <div className="flex flex-column align-items-left" style={{ flex: "1" }}>
80
+ {Array.isArray(successMessage) ? (
81
+ successMessage.map((message, index) => (
82
+ <div className="flex align-items-center gap-2" key={index}>
83
+ <span className="font-bold text-900">{message.trim()}</span>
84
+ </div>
85
+ ))
86
+ ) : (
87
+ <div className="flex align-items-center gap-2">
88
+ <span className="font-bold text-900">{successMessage?.trim()}</span>
89
+ </div>
90
+ )}
91
+ </div>
92
+ ),
93
+ });
94
+ };
@@ -0,0 +1,13 @@
1
+ export declare const parseSavedFilterQueryJson: (value: any) => any;
2
+ export declare const getSavedFilterVariableNames: (value: any) => string[];
3
+ export declare const getUnboundSavedFilterVariableNames: (value: any) => string[];
4
+ export declare const resolveSavedFilterVariables: (value: any, activeUserId: number | string | null | undefined, variables?: Record<string, any>) => {
5
+ value: any;
6
+ missingVariables: string[];
7
+ };
8
+ /**
9
+ * Resolves the saved-filter runtime token without mutating the stored filter.
10
+ * Exact token values keep the user's id type; embedded tokens remain strings.
11
+ */
12
+ export declare const resolveActiveUserId: (value: any, activeUserId: number | string | null | undefined) => any;
13
+ //# sourceMappingURL=resolveActiveUserId.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolveActiveUserId.d.ts","sourceRoot":"","sources":["../../src/helpers/resolveActiveUserId.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,yBAAyB,UAAW,GAAG,KAAG,GACA,CAAC;AAExD,eAAO,MAAM,2BAA2B,UAAW,GAAG,KAAG,MAAM,EAoB9D,CAAC;AAEF,eAAO,MAAM,kCAAkC,UAAW,GAAG,KAAG,MAAM,EACQ,CAAC;AAE/E,eAAO,MAAM,2BAA2B,UAC/B,GAAG,gBACI,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,cACrC,OAAO,MAAM,EAAE,GAAG,CAAC;WACpB,GAAG;sBAAoB,MAAM,EAAE;CA0B1C,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,mBAAmB,UAAW,GAAG,gBAAgB,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,KAAG,GAsBlG,CAAC"}
@@ -0,0 +1,86 @@
1
+ var ACTIVE_USER_ID_TOKEN = "$activeUserId";
2
+ var VARIABLE_EXPRESSION = /^\$([A-Za-z_][A-Za-z0-9_]*)$/;
3
+ export var parseSavedFilterQueryJson = function (value) {
4
+ return typeof value === "string" ? JSON.parse(value) : value;
5
+ };
6
+ export var getSavedFilterVariableNames = function (value) {
7
+ var names = new Set();
8
+ var visit = function (current) {
9
+ if (Array.isArray(current)) {
10
+ current.forEach(visit);
11
+ return;
12
+ }
13
+ if (current && typeof current === "object") {
14
+ Object.values(current).forEach(visit);
15
+ return;
16
+ }
17
+ if (typeof current === "string") {
18
+ var match = current.match(VARIABLE_EXPRESSION);
19
+ if (match)
20
+ names.add(match[1]);
21
+ }
22
+ };
23
+ visit(value);
24
+ return Array.from(names);
25
+ };
26
+ export var getUnboundSavedFilterVariableNames = function (value) {
27
+ return getSavedFilterVariableNames(value).filter(function (name) { return name !== "activeUserId"; });
28
+ };
29
+ export var resolveSavedFilterVariables = function (value, activeUserId, variables) {
30
+ if (variables === void 0) { variables = {}; }
31
+ var missing = new Set();
32
+ var resolve = function (current) {
33
+ if (Array.isArray(current))
34
+ return current.map(resolve);
35
+ if (current && typeof current === "object") {
36
+ return Object.fromEntries(Object.entries(current).map(function (_a) {
37
+ var key = _a[0], nestedValue = _a[1];
38
+ return [key, resolve(nestedValue)];
39
+ }));
40
+ }
41
+ if (typeof current !== "string")
42
+ return current;
43
+ var exactMatch = current.match(VARIABLE_EXPRESSION);
44
+ if (exactMatch) {
45
+ var name_1 = exactMatch[1];
46
+ if (name_1 === "activeUserId" && activeUserId !== null && activeUserId !== undefined)
47
+ return activeUserId;
48
+ if (Object.prototype.hasOwnProperty.call(variables, name_1))
49
+ return variables[name_1];
50
+ missing.add(name_1);
51
+ return current;
52
+ }
53
+ return current.includes("$activeUserId")
54
+ ? current.split("$activeUserId").join(String(activeUserId !== null && activeUserId !== void 0 ? activeUserId : "$activeUserId"))
55
+ : current;
56
+ };
57
+ var resolved = resolve(value);
58
+ return { value: resolved, missingVariables: Array.from(missing) };
59
+ };
60
+ /**
61
+ * Resolves the saved-filter runtime token without mutating the stored filter.
62
+ * Exact token values keep the user's id type; embedded tokens remain strings.
63
+ */
64
+ export var resolveActiveUserId = function (value, activeUserId) {
65
+ if (activeUserId === null || activeUserId === undefined)
66
+ return value;
67
+ if (Array.isArray(value)) {
68
+ return value.map(function (item) { return resolveActiveUserId(item, activeUserId); });
69
+ }
70
+ if (value && typeof value === "object") {
71
+ return Object.fromEntries(Object.entries(value).map(function (_a) {
72
+ var key = _a[0], nestedValue = _a[1];
73
+ return [
74
+ key,
75
+ resolveActiveUserId(nestedValue, activeUserId),
76
+ ];
77
+ }));
78
+ }
79
+ if (value === ACTIVE_USER_ID_TOKEN)
80
+ return activeUserId;
81
+ if (typeof value === "string" && value.includes(ACTIVE_USER_ID_TOKEN)) {
82
+ return value.split(ACTIVE_USER_ID_TOKEN).join(String(activeUserId));
83
+ }
84
+ return value;
85
+ };
86
+ //# sourceMappingURL=resolveActiveUserId.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolveActiveUserId.js","sourceRoot":"","sources":["../../src/helpers/resolveActiveUserId.ts"],"names":[],"mappings":"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","sourcesContent":["const ACTIVE_USER_ID_TOKEN = \"$activeUserId\";\nconst VARIABLE_EXPRESSION = /^\\$([A-Za-z_][A-Za-z0-9_]*)$/;\n\nexport const parseSavedFilterQueryJson = (value: any): any =>\n typeof value === \"string\" ? JSON.parse(value) : value;\n\nexport const getSavedFilterVariableNames = (value: any): string[] => {\n const names = new Set<string>();\n\n const visit = (current: any) => {\n if (Array.isArray(current)) {\n current.forEach(visit);\n return;\n }\n if (current && typeof current === \"object\") {\n Object.values(current).forEach(visit);\n return;\n }\n if (typeof current === \"string\") {\n const match = current.match(VARIABLE_EXPRESSION);\n if (match) names.add(match[1]);\n }\n };\n\n visit(value);\n return Array.from(names);\n};\n\nexport const getUnboundSavedFilterVariableNames = (value: any): string[] =>\n getSavedFilterVariableNames(value).filter((name) => name !== \"activeUserId\");\n\nexport const resolveSavedFilterVariables = (\n value: any,\n activeUserId: number | string | null | undefined,\n variables: Record<string, any> = {}\n): { value: any; missingVariables: string[] } => {\n const missing = new Set<string>();\n\n const resolve = (current: any): any => {\n if (Array.isArray(current)) return current.map(resolve);\n if (current && typeof current === \"object\") {\n return Object.fromEntries(Object.entries(current).map(([key, nestedValue]) => [key, resolve(nestedValue)]));\n }\n if (typeof current !== \"string\") return current;\n\n const exactMatch = current.match(VARIABLE_EXPRESSION);\n if (exactMatch) {\n const name = exactMatch[1];\n if (name === \"activeUserId\" && activeUserId !== null && activeUserId !== undefined) return activeUserId;\n if (Object.prototype.hasOwnProperty.call(variables, name)) return variables[name];\n missing.add(name);\n return current;\n }\n\n return current.includes(\"$activeUserId\")\n ? current.split(\"$activeUserId\").join(String(activeUserId ?? \"$activeUserId\"))\n : current;\n };\n\n const resolved = resolve(value);\n return { value: resolved, missingVariables: Array.from(missing) };\n};\n\n/**\n * Resolves the saved-filter runtime token without mutating the stored filter.\n * Exact token values keep the user's id type; embedded tokens remain strings.\n */\nexport const resolveActiveUserId = (value: any, activeUserId: number | string | null | undefined): any => {\n if (activeUserId === null || activeUserId === undefined) return value;\n\n if (Array.isArray(value)) {\n return value.map((item) => resolveActiveUserId(item, activeUserId));\n }\n\n if (value && typeof value === \"object\") {\n return Object.fromEntries(\n Object.entries(value).map(([key, nestedValue]) => [\n key,\n resolveActiveUserId(nestedValue, activeUserId),\n ])\n );\n }\n\n if (value === ACTIVE_USER_ID_TOKEN) return activeUserId;\n if (typeof value === \"string\" && value.includes(ACTIVE_USER_ID_TOKEN)) {\n return value.split(ACTIVE_USER_ID_TOKEN).join(String(activeUserId));\n }\n\n return value;\n};\n"]}
@@ -0,0 +1,90 @@
1
+ const ACTIVE_USER_ID_TOKEN = "$activeUserId";
2
+ const VARIABLE_EXPRESSION = /^\$([A-Za-z_][A-Za-z0-9_]*)$/;
3
+
4
+ export const parseSavedFilterQueryJson = (value: any): any =>
5
+ typeof value === "string" ? JSON.parse(value) : value;
6
+
7
+ export const getSavedFilterVariableNames = (value: any): string[] => {
8
+ const names = new Set<string>();
9
+
10
+ const visit = (current: any) => {
11
+ if (Array.isArray(current)) {
12
+ current.forEach(visit);
13
+ return;
14
+ }
15
+ if (current && typeof current === "object") {
16
+ Object.values(current).forEach(visit);
17
+ return;
18
+ }
19
+ if (typeof current === "string") {
20
+ const match = current.match(VARIABLE_EXPRESSION);
21
+ if (match) names.add(match[1]);
22
+ }
23
+ };
24
+
25
+ visit(value);
26
+ return Array.from(names);
27
+ };
28
+
29
+ export const getUnboundSavedFilterVariableNames = (value: any): string[] =>
30
+ getSavedFilterVariableNames(value).filter((name) => name !== "activeUserId");
31
+
32
+ export const resolveSavedFilterVariables = (
33
+ value: any,
34
+ activeUserId: number | string | null | undefined,
35
+ variables: Record<string, any> = {}
36
+ ): { value: any; missingVariables: string[] } => {
37
+ const missing = new Set<string>();
38
+
39
+ const resolve = (current: any): any => {
40
+ if (Array.isArray(current)) return current.map(resolve);
41
+ if (current && typeof current === "object") {
42
+ return Object.fromEntries(Object.entries(current).map(([key, nestedValue]) => [key, resolve(nestedValue)]));
43
+ }
44
+ if (typeof current !== "string") return current;
45
+
46
+ const exactMatch = current.match(VARIABLE_EXPRESSION);
47
+ if (exactMatch) {
48
+ const name = exactMatch[1];
49
+ if (name === "activeUserId" && activeUserId !== null && activeUserId !== undefined) return activeUserId;
50
+ if (Object.prototype.hasOwnProperty.call(variables, name)) return variables[name];
51
+ missing.add(name);
52
+ return current;
53
+ }
54
+
55
+ return current.includes("$activeUserId")
56
+ ? current.split("$activeUserId").join(String(activeUserId ?? "$activeUserId"))
57
+ : current;
58
+ };
59
+
60
+ const resolved = resolve(value);
61
+ return { value: resolved, missingVariables: Array.from(missing) };
62
+ };
63
+
64
+ /**
65
+ * Resolves the saved-filter runtime token without mutating the stored filter.
66
+ * Exact token values keep the user's id type; embedded tokens remain strings.
67
+ */
68
+ export const resolveActiveUserId = (value: any, activeUserId: number | string | null | undefined): any => {
69
+ if (activeUserId === null || activeUserId === undefined) return value;
70
+
71
+ if (Array.isArray(value)) {
72
+ return value.map((item) => resolveActiveUserId(item, activeUserId));
73
+ }
74
+
75
+ if (value && typeof value === "object") {
76
+ return Object.fromEntries(
77
+ Object.entries(value).map(([key, nestedValue]) => [
78
+ key,
79
+ resolveActiveUserId(nestedValue, activeUserId),
80
+ ])
81
+ );
82
+ }
83
+
84
+ if (value === ACTIVE_USER_ID_TOKEN) return activeUserId;
85
+ if (typeof value === "string" && value.includes(ACTIVE_USER_ID_TOKEN)) {
86
+ return value.split(ACTIVE_USER_ID_TOKEN).join(String(activeUserId));
87
+ }
88
+
89
+ return value;
90
+ };
@@ -0,0 +1,5 @@
1
+ import { Toast } from "primereact/toast";
2
+ import { RefObject } from "react";
3
+ declare const showToast: (toast: RefObject<Toast>, severity: "success" | "error" | "info", summary: string, detail: string) => void;
4
+ export default showToast;
5
+ //# sourceMappingURL=showToast.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"showToast.d.ts","sourceRoot":"","sources":["../../src/helpers/showToast.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,QAAA,MAAM,SAAS,UAAW,UAAU,KAAK,CAAC,YAAY,SAAS,GAAG,OAAO,GAAG,MAAM,WAAW,MAAM,UAAU,MAAM,SAQlH,CAAC;AACF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,17 @@
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
+ var showToast = function (toast, severity, summary, detail) {
13
+ var _a;
14
+ (_a = toast.current) === null || _a === void 0 ? void 0 : _a.show(__assign({ severity: severity, summary: summary, detail: detail }, (severity === "error" ? { sticky: true } : { life: 3000 })));
15
+ };
16
+ export default showToast;
17
+ //# sourceMappingURL=showToast.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"showToast.js","sourceRoot":"","sources":["../../src/helpers/showToast.ts"],"names":[],"mappings":";;;;;;;;;;;AAGA,IAAM,SAAS,GAAG,UAAC,KAAuB,EAAE,QAAsC,EAAE,OAAe,EAAE,MAAc;;IAC/G,MAAA,KAAK,CAAC,OAAO,0CAAE,IAAI,YACf,QAAQ,UAAA,EACR,OAAO,SAAA,EACP,MAAM,QAAA,IAEH,CAAC,QAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAC/D,CAAC;AACP,CAAC,CAAC;AACF,eAAe,SAAS,CAAC","sourcesContent":["import { Toast } from \"primereact/toast\";\nimport { RefObject } from \"react\";\n\nconst showToast = (toast: RefObject<Toast>, severity: \"success\" | \"error\" | \"info\", summary: string, detail: string) => {\n toast.current?.show({\n severity,\n summary,\n detail,\n // stays until user closes\n ...(severity === \"error\" ? { sticky: true } : { life: 3000 }),\n });\n};\nexport default showToast;"]}
@@ -0,0 +1,13 @@
1
+ import { Toast } from "primereact/toast";
2
+ import { RefObject } from "react";
3
+
4
+ const showToast = (toast: RefObject<Toast>, severity: "success" | "error" | "info", summary: string, detail: string) => {
5
+ toast.current?.show({
6
+ severity,
7
+ summary,
8
+ detail,
9
+ // stays until user closes
10
+ ...(severity === "error" ? { sticky: true } : { life: 3000 }),
11
+ });
12
+ };
13
+ export default showToast;
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Studio Sandbox Mode API
3
+ *
4
+ * This module isolates the application layout from the Solid Studio UI.
5
+ * It dynamically creates a container to wrap the application root, converting
6
+ * it into a relative containing block. This prevents \`position: fixed\` elements
7
+ * within the application from inadvertently overlapping with the global Studio UI.
8
+ */
9
+ /**
10
+ * Wraps the app root into the sandbox container.
11
+ */
12
+ export declare function enableStudioMode(): void;
13
+ /**
14
+ * Restores the application to its original state.
15
+ */
16
+ export declare function disableStudioMode(): void;
17
+ /**
18
+ * Returns the active scroll element based on sandbox state.
19
+ * When Studio Mode is enabled, the scroll element becomes the container.
20
+ * Otherwise, it uses the default Window object.
21
+ */
22
+ export declare function getScrollElement(): HTMLElement | Window;
23
+ /**
24
+ * Returns the current vertical scroll position.
25
+ */
26
+ export declare function getScrollY(): number;
27
+ /**
28
+ * Returns the effective viewport height.
29
+ */
30
+ export declare function getViewportHeight(): number;
31
+ //# sourceMappingURL=studioSandbox.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"studioSandbox.d.ts","sourceRoot":"","sources":["../../src/helpers/studioSandbox.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAWH;;GAEG;AACH,wBAAgB,gBAAgB,SAgC/B;AAED;;GAEG;AACH,wBAAgB,iBAAiB,SAoBhC;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,IAAI,WAAW,GAAG,MAAM,CAOvD;AAED;;GAEG;AACH,wBAAgB,UAAU,IAAI,MAAM,CAOnC;AAED;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,MAAM,CAO1C"}
@@ -0,0 +1,104 @@
1
+ /**
2
+ * Studio Sandbox Mode API
3
+ *
4
+ * This module isolates the application layout from the Solid Studio UI.
5
+ * It dynamically creates a container to wrap the application root, converting
6
+ * it into a relative containing block. This prevents \`position: fixed\` elements
7
+ * within the application from inadvertently overlapping with the global Studio UI.
8
+ */
9
+ var originalRootParent = null;
10
+ var originalRootNextSibling = null;
11
+ var isSandboxActive = false;
12
+ function getAppRoot() {
13
+ // Determine the root depending on the framework (Vite uses #root, Next uses #__next)
14
+ return document.getElementById("root") || document.getElementById("__next") || document.body.firstElementChild;
15
+ }
16
+ /**
17
+ * Wraps the app root into the sandbox container.
18
+ */
19
+ export function enableStudioMode() {
20
+ if (typeof window === "undefined" || isSandboxActive)
21
+ return;
22
+ var appRoot = getAppRoot();
23
+ if (!appRoot || appRoot.id === "solid-studio-root" || appRoot.id === "solid-studio-app-container") {
24
+ return;
25
+ }
26
+ var parent = appRoot.parentNode;
27
+ if (!parent)
28
+ return;
29
+ isSandboxActive = true;
30
+ originalRootParent = parent;
31
+ originalRootNextSibling = appRoot.nextSibling;
32
+ // Create the outer wrapper
33
+ var studioRoot = document.createElement("div");
34
+ studioRoot.id = "solid-studio-root";
35
+ // Create the isolation container
36
+ var appContainer = document.createElement("div");
37
+ appContainer.id = "solid-studio-app-container";
38
+ // Re-parent the app node
39
+ appContainer.appendChild(appRoot);
40
+ studioRoot.appendChild(appContainer);
41
+ // Insert the wrapper into the DOM where the root used to be
42
+ parent.insertBefore(studioRoot, originalRootNextSibling);
43
+ // Set a class on the body to indicate Studio Mode
44
+ document.body.classList.add("solid-studio-active");
45
+ }
46
+ /**
47
+ * Restores the application to its original state.
48
+ */
49
+ export function disableStudioMode() {
50
+ if (typeof window === "undefined" || !isSandboxActive)
51
+ return;
52
+ var studioRoot = document.getElementById("solid-studio-root");
53
+ var appContainer = document.getElementById("solid-studio-app-container");
54
+ // Find our wrapped app root
55
+ var appRoot = appContainer === null || appContainer === void 0 ? void 0 : appContainer.firstElementChild;
56
+ if (studioRoot && appRoot && originalRootParent) {
57
+ originalRootParent.insertBefore(appRoot, originalRootNextSibling);
58
+ studioRoot.remove();
59
+ }
60
+ isSandboxActive = false;
61
+ originalRootParent = null;
62
+ originalRootNextSibling = null;
63
+ // Remove body class
64
+ document.body.classList.remove("solid-studio-active");
65
+ }
66
+ /**
67
+ * Returns the active scroll element based on sandbox state.
68
+ * When Studio Mode is enabled, the scroll element becomes the container.
69
+ * Otherwise, it uses the default Window object.
70
+ */
71
+ export function getScrollElement() {
72
+ if (typeof window === "undefined")
73
+ return window;
74
+ if (isSandboxActive) {
75
+ var container = document.getElementById("solid-studio-app-container");
76
+ return container || window;
77
+ }
78
+ return window;
79
+ }
80
+ /**
81
+ * Returns the current vertical scroll position.
82
+ */
83
+ export function getScrollY() {
84
+ if (typeof window === "undefined")
85
+ return 0;
86
+ if (isSandboxActive) {
87
+ var container = document.getElementById("solid-studio-app-container");
88
+ return container ? container.scrollTop : 0;
89
+ }
90
+ return window.scrollY;
91
+ }
92
+ /**
93
+ * Returns the effective viewport height.
94
+ */
95
+ export function getViewportHeight() {
96
+ if (typeof window === "undefined")
97
+ return 0;
98
+ if (isSandboxActive) {
99
+ var container = document.getElementById("solid-studio-app-container");
100
+ return container ? container.clientHeight : window.innerHeight;
101
+ }
102
+ return window.innerHeight;
103
+ }
104
+ //# sourceMappingURL=studioSandbox.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"studioSandbox.js","sourceRoot":"","sources":["../../src/helpers/studioSandbox.ts"],"names":[],"mappings":"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","sourcesContent":["/**\n * Studio Sandbox Mode API\n * \n * This module isolates the application layout from the Solid Studio UI. \n * It dynamically creates a container to wrap the application root, converting\n * it into a relative containing block. This prevents \\`position: fixed\\` elements \n * within the application from inadvertently overlapping with the global Studio UI.\n */\n\nlet originalRootParent: ParentNode | null = null;\nlet originalRootNextSibling: Node | null = null;\nlet isSandboxActive = false;\n\nfunction getAppRoot() {\n // Determine the root depending on the framework (Vite uses #root, Next uses #__next)\n return document.getElementById(\"root\") || document.getElementById(\"__next\") || document.body.firstElementChild;\n}\n\n/**\n * Wraps the app root into the sandbox container.\n */\nexport function enableStudioMode() {\n if (typeof window === \"undefined\" || isSandboxActive) return;\n\n const appRoot = getAppRoot();\n if (!appRoot || appRoot.id === \"solid-studio-root\" || appRoot.id === \"solid-studio-app-container\") {\n return;\n }\n\n const parent = appRoot.parentNode;\n if (!parent) return;\n\n isSandboxActive = true;\n originalRootParent = parent;\n originalRootNextSibling = appRoot.nextSibling;\n\n // Create the outer wrapper\n const studioRoot = document.createElement(\"div\");\n studioRoot.id = \"solid-studio-root\";\n\n // Create the isolation container\n const appContainer = document.createElement(\"div\");\n appContainer.id = \"solid-studio-app-container\";\n\n // Re-parent the app node\n appContainer.appendChild(appRoot);\n studioRoot.appendChild(appContainer);\n\n // Insert the wrapper into the DOM where the root used to be\n parent.insertBefore(studioRoot, originalRootNextSibling);\n\n // Set a class on the body to indicate Studio Mode\n document.body.classList.add(\"solid-studio-active\");\n}\n\n/**\n * Restores the application to its original state.\n */\nexport function disableStudioMode() {\n if (typeof window === \"undefined\" || !isSandboxActive) return;\n\n const studioRoot = document.getElementById(\"solid-studio-root\");\n const appContainer = document.getElementById(\"solid-studio-app-container\");\n\n // Find our wrapped app root\n const appRoot = appContainer?.firstElementChild;\n\n if (studioRoot && appRoot && originalRootParent) {\n originalRootParent.insertBefore(appRoot, originalRootNextSibling);\n studioRoot.remove();\n }\n\n isSandboxActive = false;\n originalRootParent = null;\n originalRootNextSibling = null;\n\n // Remove body class\n document.body.classList.remove(\"solid-studio-active\");\n}\n\n/**\n * Returns the active scroll element based on sandbox state.\n * When Studio Mode is enabled, the scroll element becomes the container.\n * Otherwise, it uses the default Window object.\n */\nexport function getScrollElement(): HTMLElement | Window {\n if (typeof window === \"undefined\") return window;\n if (isSandboxActive) {\n const container = document.getElementById(\"solid-studio-app-container\");\n return container || window;\n }\n return window;\n}\n\n/**\n * Returns the current vertical scroll position.\n */\nexport function getScrollY(): number {\n if (typeof window === \"undefined\") return 0;\n if (isSandboxActive) {\n const container = document.getElementById(\"solid-studio-app-container\");\n return container ? container.scrollTop : 0;\n }\n return window.scrollY;\n}\n\n/**\n * Returns the effective viewport height.\n */\nexport function getViewportHeight(): number {\n if (typeof window === \"undefined\") return 0;\n if (isSandboxActive) {\n const container = document.getElementById(\"solid-studio-app-container\");\n return container ? container.clientHeight : window.innerHeight;\n }\n return window.innerHeight;\n}\n"]}