@solidxai/core-ui 0.1.13-beta.2 → 0.1.13-beta.3

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 (460) hide show
  1. package/dist/components/auth/SolidOTPVerify.d.ts +3 -0
  2. package/dist/components/auth/SolidOTPVerify.d.ts.map +1 -0
  3. package/dist/components/auth/SolidOTPVerify.js +67 -0
  4. package/dist/components/auth/SolidOTPVerify.js.map +1 -0
  5. package/dist/components/auth/SolidOTPVerify.tsx +133 -0
  6. package/dist/components/common/AuthBanner.d.ts +3 -0
  7. package/dist/components/common/AuthBanner.d.ts.map +1 -0
  8. package/dist/components/common/AuthBanner.js +15 -0
  9. package/dist/components/common/AuthBanner.js.map +1 -0
  10. package/dist/components/common/AuthBanner.tsx +41 -0
  11. package/dist/components/common/SingleSelectAutoCompleteField.d.ts +2 -0
  12. package/dist/components/common/SingleSelectAutoCompleteField.d.ts.map +1 -0
  13. package/dist/components/common/SingleSelectAutoCompleteField.js +92 -0
  14. package/dist/components/common/SingleSelectAutoCompleteField.js.map +1 -0
  15. package/dist/components/common/SingleSelectAutoCompleteField.tsx +73 -0
  16. package/dist/components/common/SolidExportStepper.d.ts +12 -0
  17. package/dist/components/common/SolidExportStepper.d.ts.map +1 -0
  18. package/dist/components/common/SolidExportStepper.js +30 -0
  19. package/dist/components/common/SolidExportStepper.js.map +1 -0
  20. package/dist/components/common/SolidExportStepper.tsx +135 -0
  21. package/dist/components/core/common/LoadDynamicJsxComponent.d.ts +2 -0
  22. package/dist/components/core/common/LoadDynamicJsxComponent.d.ts.map +1 -0
  23. package/dist/components/core/common/LoadDynamicJsxComponent.js +50 -0
  24. package/dist/components/core/common/LoadDynamicJsxComponent.js.map +1 -0
  25. package/dist/components/core/common/LoadDynamicJsxComponent.tsx +70 -0
  26. package/dist/components/core/common/SolidGenericImport/SolidImportWrapper.d.ts +2 -0
  27. package/dist/components/core/common/SolidGenericImport/SolidImportWrapper.d.ts.map +1 -0
  28. package/dist/components/core/common/SolidGenericImport/SolidImportWrapper.js +16 -0
  29. package/dist/components/core/common/SolidGenericImport/SolidImportWrapper.js.map +1 -0
  30. package/dist/components/core/common/SolidGenericImport/SolidImportWrapper.tsx +29 -0
  31. package/dist/components/core/dashboard/DashboardFilter.d.ts +13 -0
  32. package/dist/components/core/dashboard/DashboardFilter.d.ts.map +1 -0
  33. package/dist/components/core/dashboard/DashboardFilter.js +299 -0
  34. package/dist/components/core/dashboard/DashboardFilter.js.map +1 -0
  35. package/dist/components/core/dashboard/DashboardFilter.tsx +348 -0
  36. package/dist/components/core/dashboard/PrimeDataTableWrapper.d.ts +3 -0
  37. package/dist/components/core/dashboard/PrimeDataTableWrapper.d.ts.map +1 -0
  38. package/dist/components/core/dashboard/PrimeDataTableWrapper.js +21 -0
  39. package/dist/components/core/dashboard/PrimeDataTableWrapper.js.map +1 -0
  40. package/dist/components/core/dashboard/PrimeDataTableWrapper.tsx +40 -0
  41. package/dist/components/core/dashboard/SolidDashboard.d.ts +28 -0
  42. package/dist/components/core/dashboard/SolidDashboard.d.ts.map +1 -0
  43. package/dist/components/core/dashboard/SolidDashboard.js +183 -0
  44. package/dist/components/core/dashboard/SolidDashboard.js.map +1 -0
  45. package/dist/components/core/dashboard/SolidDashboard.module.css +83 -0
  46. package/dist/components/core/dashboard/SolidDashboard.tsx +263 -0
  47. package/dist/components/core/dashboard/SolidDashboardBody.d.ts +24 -0
  48. package/dist/components/core/dashboard/SolidDashboardBody.d.ts.map +1 -0
  49. package/dist/components/core/dashboard/SolidDashboardBody.js +162 -0
  50. package/dist/components/core/dashboard/SolidDashboardBody.js.map +1 -0
  51. package/dist/components/core/dashboard/SolidDashboardBody.tsx +168 -0
  52. package/dist/components/core/dashboard/SolidDashboardFilterRequired.d.ts +2 -0
  53. package/dist/components/core/dashboard/SolidDashboardFilterRequired.d.ts.map +1 -0
  54. package/dist/components/core/dashboard/SolidDashboardFilterRequired.js +11 -0
  55. package/dist/components/core/dashboard/SolidDashboardFilterRequired.js.map +1 -0
  56. package/dist/components/core/dashboard/SolidDashboardFilterRequired.tsx +28 -0
  57. package/dist/components/core/dashboard/SolidDashboardHeader.d.ts +3 -0
  58. package/dist/components/core/dashboard/SolidDashboardHeader.d.ts.map +1 -0
  59. package/dist/components/core/dashboard/SolidDashboardHeader.js +6 -0
  60. package/dist/components/core/dashboard/SolidDashboardHeader.js.map +1 -0
  61. package/dist/components/core/dashboard/SolidDashboardHeader.tsx +10 -0
  62. package/dist/components/core/dashboard/SolidDashboardLoading.d.ts +2 -0
  63. package/dist/components/core/dashboard/SolidDashboardLoading.d.ts.map +1 -0
  64. package/dist/components/core/dashboard/SolidDashboardLoading.js +10 -0
  65. package/dist/components/core/dashboard/SolidDashboardLoading.js.map +1 -0
  66. package/dist/components/core/dashboard/SolidDashboardLoading.tsx +61 -0
  67. package/dist/components/core/dashboard/SolidDashboardNotAvailable.d.ts +3 -0
  68. package/dist/components/core/dashboard/SolidDashboardNotAvailable.d.ts.map +1 -0
  69. package/dist/components/core/dashboard/SolidDashboardNotAvailable.js +12 -0
  70. package/dist/components/core/dashboard/SolidDashboardNotAvailable.js.map +1 -0
  71. package/dist/components/core/dashboard/SolidDashboardNotAvailable.tsx +32 -0
  72. package/dist/components/core/dashboard/SolidDashboardRenderError.d.ts +2 -0
  73. package/dist/components/core/dashboard/SolidDashboardRenderError.d.ts.map +1 -0
  74. package/dist/components/core/dashboard/SolidDashboardRenderError.js +11 -0
  75. package/dist/components/core/dashboard/SolidDashboardRenderError.js.map +1 -0
  76. package/dist/components/core/dashboard/SolidDashboardRenderError.tsx +28 -0
  77. package/dist/components/core/dashboard/SolidDashboardVariable.d.ts +19 -0
  78. package/dist/components/core/dashboard/SolidDashboardVariable.d.ts.map +1 -0
  79. package/dist/components/core/dashboard/SolidDashboardVariable.js +171 -0
  80. package/dist/components/core/dashboard/SolidDashboardVariable.js.map +1 -0
  81. package/dist/components/core/dashboard/SolidDashboardVariable.tsx +259 -0
  82. package/dist/components/core/dashboard/SolidQuestionRenderer.d.ts +9 -0
  83. package/dist/components/core/dashboard/SolidQuestionRenderer.d.ts.map +1 -0
  84. package/dist/components/core/dashboard/SolidQuestionRenderer.js +42 -0
  85. package/dist/components/core/dashboard/SolidQuestionRenderer.js.map +1 -0
  86. package/dist/components/core/dashboard/SolidQuestionRenderer.tsx +99 -0
  87. package/dist/components/core/dashboard/chart-renderers/ChartJsRenderer.d.ts +9 -0
  88. package/dist/components/core/dashboard/chart-renderers/ChartJsRenderer.d.ts.map +1 -0
  89. package/dist/components/core/dashboard/chart-renderers/ChartJsRenderer.js +35 -0
  90. package/dist/components/core/dashboard/chart-renderers/ChartJsRenderer.js.map +1 -0
  91. package/dist/components/core/dashboard/chart-renderers/ChartJsRenderer.tsx +48 -0
  92. package/dist/components/core/dashboard/chart-renderers/PrimeReactDatatableRenderer.d.ts +7 -0
  93. package/dist/components/core/dashboard/chart-renderers/PrimeReactDatatableRenderer.d.ts.map +1 -0
  94. package/dist/components/core/dashboard/chart-renderers/PrimeReactDatatableRenderer.js +22 -0
  95. package/dist/components/core/dashboard/chart-renderers/PrimeReactDatatableRenderer.js.map +1 -0
  96. package/dist/components/core/dashboard/chart-renderers/PrimeReactDatatableRenderer.tsx +51 -0
  97. package/dist/components/core/dashboard/chart-renderers/init-chartjs.d.ts +2 -0
  98. package/dist/components/core/dashboard/chart-renderers/init-chartjs.d.ts.map +1 -0
  99. package/dist/components/core/dashboard/chart-renderers/init-chartjs.js +4 -0
  100. package/dist/components/core/dashboard/chart-renderers/init-chartjs.js.map +1 -0
  101. package/dist/components/core/dashboard/chart-renderers/init-chartjs.ts +25 -0
  102. package/dist/components/core/dashboard/dashboard-utils.d.ts +2 -0
  103. package/dist/components/core/dashboard/dashboard-utils.d.ts.map +1 -0
  104. package/dist/components/core/dashboard/dashboard-utils.js +38 -0
  105. package/dist/components/core/dashboard/dashboard-utils.js.map +1 -0
  106. package/dist/components/core/dashboard/dashboard-utils.ts +39 -0
  107. package/dist/components/core/extension/solid-core/dashboard/dashboardFormViewChangeHandler.d.ts +10 -0
  108. package/dist/components/core/extension/solid-core/dashboard/dashboardFormViewChangeHandler.d.ts.map +1 -0
  109. package/dist/components/core/extension/solid-core/dashboard/dashboardFormViewChangeHandler.js +16 -0
  110. package/dist/components/core/extension/solid-core/dashboard/dashboardFormViewChangeHandler.js.map +1 -0
  111. package/dist/components/core/extension/solid-core/dashboard/dashboardFormViewChangeHandler.ts +19 -0
  112. package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionFieldChangeHandler.d.ts +8 -0
  113. package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionFieldChangeHandler.d.ts.map +1 -0
  114. package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionFieldChangeHandler.js +64 -0
  115. package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionFieldChangeHandler.js.map +1 -0
  116. package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionFieldChangeHandler.ts +30 -0
  117. package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionOnFormLoadHandler.d.ts +8 -0
  118. package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionOnFormLoadHandler.d.ts.map +1 -0
  119. package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionOnFormLoadHandler.js +62 -0
  120. package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionOnFormLoadHandler.js.map +1 -0
  121. package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionOnFormLoadHandler.ts +29 -0
  122. package/dist/components/core/extension/solid-core/dashboardQuestion/ChartFormPreviewWidget.d.ts +4 -0
  123. package/dist/components/core/extension/solid-core/dashboardQuestion/ChartFormPreviewWidget.d.ts.map +1 -0
  124. package/dist/components/core/extension/solid-core/dashboardQuestion/ChartFormPreviewWidget.js +23 -0
  125. package/dist/components/core/extension/solid-core/dashboardQuestion/ChartFormPreviewWidget.js.map +1 -0
  126. package/dist/components/core/extension/solid-core/dashboardQuestion/ChartFormPreviewWidget.tsx +36 -0
  127. package/dist/components/core/form/fields/SolidMediaMultipleField.d.ts.map +1 -1
  128. package/dist/components/core/form/fields/SolidMediaMultipleField.js +111 -106
  129. package/dist/components/core/form/fields/SolidMediaMultipleField.js.map +1 -1
  130. package/dist/components/core/form/fields/SolidMediaMultipleField.tsx +165 -134
  131. package/dist/components/core/form/fields/SolidMediaSingleField.d.ts.map +1 -1
  132. package/dist/components/core/form/fields/SolidMediaSingleField.js +81 -84
  133. package/dist/components/core/form/fields/SolidMediaSingleField.js.map +1 -1
  134. package/dist/components/core/form/fields/SolidMediaSingleField.tsx +97 -86
  135. package/dist/components/core/form/fields/widgets/SolidChatterMessageCoModelEntityIdFormViewWidget.d.ts +3 -0
  136. package/dist/components/core/form/fields/widgets/SolidChatterMessageCoModelEntityIdFormViewWidget.d.ts.map +1 -0
  137. package/dist/components/core/form/fields/widgets/SolidChatterMessageCoModelEntityIdFormViewWidget.js +92 -0
  138. package/dist/components/core/form/fields/widgets/SolidChatterMessageCoModelEntityIdFormViewWidget.js.map +1 -0
  139. package/dist/components/core/form/fields/widgets/SolidChatterMessageCoModelEntityIdFormViewWidget.tsx +68 -0
  140. package/dist/components/core/form/fields/widgets/SolidLovTypeChangeFormEditWidget.d.ts +3 -0
  141. package/dist/components/core/form/fields/widgets/SolidLovTypeChangeFormEditWidget.d.ts.map +1 -0
  142. package/dist/components/core/form/fields/widgets/SolidLovTypeChangeFormEditWidget.js +111 -0
  143. package/dist/components/core/form/fields/widgets/SolidLovTypeChangeFormEditWidget.js.map +1 -0
  144. package/dist/components/core/form/fields/widgets/SolidLovTypeChangeFormEditWidget.tsx +122 -0
  145. package/dist/components/core/kanban/SolidKanbanViewFields.d.ts +12 -0
  146. package/dist/components/core/kanban/SolidKanbanViewFields.d.ts.map +1 -0
  147. package/dist/components/core/kanban/SolidKanbanViewFields.js +145 -0
  148. package/dist/components/core/kanban/SolidKanbanViewFields.js.map +1 -0
  149. package/dist/components/core/kanban/SolidKanbanViewFields.tsx +164 -0
  150. package/dist/components/core/kanban/SolidManyToOneFilterElement.d.ts +2 -0
  151. package/dist/components/core/kanban/SolidManyToOneFilterElement.d.ts.map +1 -0
  152. package/dist/components/core/kanban/SolidManyToOneFilterElement.js +87 -0
  153. package/dist/components/core/kanban/SolidManyToOneFilterElement.js.map +1 -0
  154. package/dist/components/core/kanban/SolidManyToOneFilterElement.tsx +59 -0
  155. package/dist/components/core/kanban/SolidSelectionDynamicFilterElement.d.ts +2 -0
  156. package/dist/components/core/kanban/SolidSelectionDynamicFilterElement.d.ts.map +1 -0
  157. package/dist/components/core/kanban/SolidSelectionDynamicFilterElement.js +73 -0
  158. package/dist/components/core/kanban/SolidSelectionDynamicFilterElement.js.map +1 -0
  159. package/dist/components/core/kanban/SolidSelectionDynamicFilterElement.tsx +50 -0
  160. package/dist/components/core/kanban/SolidSelectionStaticFilterElement.d.ts +2 -0
  161. package/dist/components/core/kanban/SolidSelectionStaticFilterElement.d.ts.map +1 -0
  162. package/dist/components/core/kanban/SolidSelectionStaticFilterElement.js +20 -0
  163. package/dist/components/core/kanban/SolidSelectionStaticFilterElement.js.map +1 -0
  164. package/dist/components/core/kanban/SolidSelectionStaticFilterElement.tsx +32 -0
  165. package/dist/components/core/kanban/SolidVarInputsFilterElement.d.ts +12 -0
  166. package/dist/components/core/kanban/SolidVarInputsFilterElement.d.ts.map +1 -0
  167. package/dist/components/core/kanban/SolidVarInputsFilterElement.js +81 -0
  168. package/dist/components/core/kanban/SolidVarInputsFilterElement.js.map +1 -0
  169. package/dist/components/core/kanban/SolidVarInputsFilterElement.tsx +184 -0
  170. package/dist/components/core/kanban/kanban-fields/SolidBigintKanbanField.d.ts +4 -0
  171. package/dist/components/core/kanban/kanban-fields/SolidBigintKanbanField.d.ts.map +1 -0
  172. package/dist/components/core/kanban/kanban-fields/SolidBigintKanbanField.js +7 -0
  173. package/dist/components/core/kanban/kanban-fields/SolidBigintKanbanField.js.map +1 -0
  174. package/dist/components/core/kanban/kanban-fields/SolidBigintKanbanField.tsx +9 -0
  175. package/dist/components/core/kanban/kanban-fields/SolidBooleanKanbanField.d.ts +4 -0
  176. package/dist/components/core/kanban/kanban-fields/SolidBooleanKanbanField.d.ts.map +1 -0
  177. package/dist/components/core/kanban/kanban-fields/SolidBooleanKanbanField.js +8 -0
  178. package/dist/components/core/kanban/kanban-fields/SolidBooleanKanbanField.js.map +1 -0
  179. package/dist/components/core/kanban/kanban-fields/SolidBooleanKanbanField.tsx +16 -0
  180. package/dist/components/core/kanban/kanban-fields/SolidComputedKanbanField.d.ts +4 -0
  181. package/dist/components/core/kanban/kanban-fields/SolidComputedKanbanField.d.ts.map +1 -0
  182. package/dist/components/core/kanban/kanban-fields/SolidComputedKanbanField.js +21 -0
  183. package/dist/components/core/kanban/kanban-fields/SolidComputedKanbanField.js.map +1 -0
  184. package/dist/components/core/kanban/kanban-fields/SolidComputedKanbanField.tsx +23 -0
  185. package/dist/components/core/kanban/kanban-fields/SolidDateKanbanField.d.ts +4 -0
  186. package/dist/components/core/kanban/kanban-fields/SolidDateKanbanField.d.ts.map +1 -0
  187. package/dist/components/core/kanban/kanban-fields/SolidDateKanbanField.js +8 -0
  188. package/dist/components/core/kanban/kanban-fields/SolidDateKanbanField.js.map +1 -0
  189. package/dist/components/core/kanban/kanban-fields/SolidDateKanbanField.tsx +14 -0
  190. package/dist/components/core/kanban/kanban-fields/SolidDatetimeKanbanField.d.ts +4 -0
  191. package/dist/components/core/kanban/kanban-fields/SolidDatetimeKanbanField.d.ts.map +1 -0
  192. package/dist/components/core/kanban/kanban-fields/SolidDatetimeKanbanField.js +8 -0
  193. package/dist/components/core/kanban/kanban-fields/SolidDatetimeKanbanField.js.map +1 -0
  194. package/dist/components/core/kanban/kanban-fields/SolidDatetimeKanbanField.tsx +13 -0
  195. package/dist/components/core/kanban/kanban-fields/SolidDecimalKanbanField.d.ts +4 -0
  196. package/dist/components/core/kanban/kanban-fields/SolidDecimalKanbanField.d.ts.map +1 -0
  197. package/dist/components/core/kanban/kanban-fields/SolidDecimalKanbanField.js +7 -0
  198. package/dist/components/core/kanban/kanban-fields/SolidDecimalKanbanField.js.map +1 -0
  199. package/dist/components/core/kanban/kanban-fields/SolidDecimalKanbanField.tsx +9 -0
  200. package/dist/components/core/kanban/kanban-fields/SolidExternalIdKanbanField.d.ts +4 -0
  201. package/dist/components/core/kanban/kanban-fields/SolidExternalIdKanbanField.d.ts.map +1 -0
  202. package/dist/components/core/kanban/kanban-fields/SolidExternalIdKanbanField.js +8 -0
  203. package/dist/components/core/kanban/kanban-fields/SolidExternalIdKanbanField.js.map +1 -0
  204. package/dist/components/core/kanban/kanban-fields/SolidExternalIdKanbanField.tsx +12 -0
  205. package/dist/components/core/kanban/kanban-fields/SolidFloatKanbanField.d.ts +4 -0
  206. package/dist/components/core/kanban/kanban-fields/SolidFloatKanbanField.d.ts.map +1 -0
  207. package/dist/components/core/kanban/kanban-fields/SolidFloatKanbanField.js +7 -0
  208. package/dist/components/core/kanban/kanban-fields/SolidFloatKanbanField.js.map +1 -0
  209. package/dist/components/core/kanban/kanban-fields/SolidFloatKanbanField.tsx +9 -0
  210. package/dist/components/core/kanban/kanban-fields/SolidIdKanbanField.d.ts +4 -0
  211. package/dist/components/core/kanban/kanban-fields/SolidIdKanbanField.d.ts.map +1 -0
  212. package/dist/components/core/kanban/kanban-fields/SolidIdKanbanField.js +8 -0
  213. package/dist/components/core/kanban/kanban-fields/SolidIdKanbanField.js.map +1 -0
  214. package/dist/components/core/kanban/kanban-fields/SolidIdKanbanField.tsx +14 -0
  215. package/dist/components/core/kanban/kanban-fields/SolidIntKanbanField.d.ts +4 -0
  216. package/dist/components/core/kanban/kanban-fields/SolidIntKanbanField.d.ts.map +1 -0
  217. package/dist/components/core/kanban/kanban-fields/SolidIntKanbanField.js +16 -0
  218. package/dist/components/core/kanban/kanban-fields/SolidIntKanbanField.js.map +1 -0
  219. package/dist/components/core/kanban/kanban-fields/SolidIntKanbanField.tsx +20 -0
  220. package/dist/components/core/kanban/kanban-fields/SolidLongTextKanbanField.d.ts +4 -0
  221. package/dist/components/core/kanban/kanban-fields/SolidLongTextKanbanField.d.ts.map +1 -0
  222. package/dist/components/core/kanban/kanban-fields/SolidLongTextKanbanField.js +7 -0
  223. package/dist/components/core/kanban/kanban-fields/SolidLongTextKanbanField.js.map +1 -0
  224. package/dist/components/core/kanban/kanban-fields/SolidLongTextKanbanField.tsx +9 -0
  225. package/dist/components/core/kanban/kanban-fields/SolidMediaMultipleKanbanField.d.ts +4 -0
  226. package/dist/components/core/kanban/kanban-fields/SolidMediaMultipleKanbanField.d.ts.map +1 -0
  227. package/dist/components/core/kanban/kanban-fields/SolidMediaMultipleKanbanField.js +56 -0
  228. package/dist/components/core/kanban/kanban-fields/SolidMediaMultipleKanbanField.js.map +1 -0
  229. package/dist/components/core/kanban/kanban-fields/SolidMediaMultipleKanbanField.tsx +140 -0
  230. package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.d.ts +4 -0
  231. package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.d.ts.map +1 -0
  232. package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.js +42 -0
  233. package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.js.map +1 -0
  234. package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.tsx +164 -0
  235. package/dist/components/core/kanban/kanban-fields/SolidRelationKanbanField.d.ts +4 -0
  236. package/dist/components/core/kanban/kanban-fields/SolidRelationKanbanField.d.ts.map +1 -0
  237. package/dist/components/core/kanban/kanban-fields/SolidRelationKanbanField.js +11 -0
  238. package/dist/components/core/kanban/kanban-fields/SolidRelationKanbanField.js.map +1 -0
  239. package/dist/components/core/kanban/kanban-fields/SolidRelationKanbanField.tsx +13 -0
  240. package/dist/components/core/kanban/kanban-fields/SolidRichTextKanbanField.d.ts +4 -0
  241. package/dist/components/core/kanban/kanban-fields/SolidRichTextKanbanField.d.ts.map +1 -0
  242. package/dist/components/core/kanban/kanban-fields/SolidRichTextKanbanField.js +7 -0
  243. package/dist/components/core/kanban/kanban-fields/SolidRichTextKanbanField.js.map +1 -0
  244. package/dist/components/core/kanban/kanban-fields/SolidRichTextKanbanField.tsx +9 -0
  245. package/dist/components/core/kanban/kanban-fields/SolidSelectionDynamicKanbanField.d.ts +4 -0
  246. package/dist/components/core/kanban/kanban-fields/SolidSelectionDynamicKanbanField.d.ts.map +1 -0
  247. package/dist/components/core/kanban/kanban-fields/SolidSelectionDynamicKanbanField.js +8 -0
  248. package/dist/components/core/kanban/kanban-fields/SolidSelectionDynamicKanbanField.js.map +1 -0
  249. package/dist/components/core/kanban/kanban-fields/SolidSelectionDynamicKanbanField.tsx +14 -0
  250. package/dist/components/core/kanban/kanban-fields/SolidSelectionStaticKanbanField.d.ts +4 -0
  251. package/dist/components/core/kanban/kanban-fields/SolidSelectionStaticKanbanField.d.ts.map +1 -0
  252. package/dist/components/core/kanban/kanban-fields/SolidSelectionStaticKanbanField.js +8 -0
  253. package/dist/components/core/kanban/kanban-fields/SolidSelectionStaticKanbanField.js.map +1 -0
  254. package/dist/components/core/kanban/kanban-fields/SolidSelectionStaticKanbanField.tsx +14 -0
  255. package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.d.ts +4 -0
  256. package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.d.ts.map +1 -0
  257. package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.js +37 -0
  258. package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.js.map +1 -0
  259. package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.tsx +121 -0
  260. package/dist/components/core/kanban/kanban-fields/SolidTimeKanbanField.d.ts +4 -0
  261. package/dist/components/core/kanban/kanban-fields/SolidTimeKanbanField.d.ts.map +1 -0
  262. package/dist/components/core/kanban/kanban-fields/SolidTimeKanbanField.js +8 -0
  263. package/dist/components/core/kanban/kanban-fields/SolidTimeKanbanField.js.map +1 -0
  264. package/dist/components/core/kanban/kanban-fields/SolidTimeKanbanField.tsx +12 -0
  265. package/dist/components/core/kanban/kanban-fields/SolidUuidKanbanField.d.ts +4 -0
  266. package/dist/components/core/kanban/kanban-fields/SolidUuidKanbanField.d.ts.map +1 -0
  267. package/dist/components/core/kanban/kanban-fields/SolidUuidKanbanField.js +8 -0
  268. package/dist/components/core/kanban/kanban-fields/SolidUuidKanbanField.js.map +1 -0
  269. package/dist/components/core/kanban/kanban-fields/SolidUuidKanbanField.tsx +13 -0
  270. package/dist/components/core/kanban/kanban-fields/relations/SolidRelationManyToOneKanbanField.d.ts +4 -0
  271. package/dist/components/core/kanban/kanban-fields/relations/SolidRelationManyToOneKanbanField.d.ts.map +1 -0
  272. package/dist/components/core/kanban/kanban-fields/relations/SolidRelationManyToOneKanbanField.js +7 -0
  273. package/dist/components/core/kanban/kanban-fields/relations/SolidRelationManyToOneKanbanField.js.map +1 -0
  274. package/dist/components/core/kanban/kanban-fields/relations/SolidRelationManyToOneKanbanField.tsx +16 -0
  275. package/dist/components/core/list/SolidListViewRowButtonContextMenu.d.ts +2 -0
  276. package/dist/components/core/list/SolidListViewRowButtonContextMenu.d.ts.map +1 -0
  277. package/dist/components/core/list/SolidListViewRowButtonContextMenu.js +39 -0
  278. package/dist/components/core/list/SolidListViewRowButtonContextMenu.js.map +1 -0
  279. package/dist/components/core/list/SolidListViewRowButtonContextMenu.tsx +40 -0
  280. package/dist/components/core/list/SolidVarInputsFilterElement.d.ts +12 -0
  281. package/dist/components/core/list/SolidVarInputsFilterElement.d.ts.map +1 -0
  282. package/dist/components/core/list/SolidVarInputsFilterElement.js +81 -0
  283. package/dist/components/core/list/SolidVarInputsFilterElement.js.map +1 -0
  284. package/dist/components/core/list/SolidVarInputsFilterElement.tsx +184 -0
  285. package/dist/components/core/list/columns/SolidMediaMultipleColumn.d.ts.map +1 -1
  286. package/dist/components/core/list/columns/SolidMediaMultipleColumn.js +42 -81
  287. package/dist/components/core/list/columns/SolidMediaMultipleColumn.js.map +1 -1
  288. package/dist/components/core/list/columns/SolidMediaMultipleColumn.tsx +90 -120
  289. package/dist/components/core/list/columns/SolidMediaSingleColumn.d.ts.map +1 -1
  290. package/dist/components/core/list/columns/SolidMediaSingleColumn.js +34 -42
  291. package/dist/components/core/list/columns/SolidMediaSingleColumn.js.map +1 -1
  292. package/dist/components/core/list/columns/SolidMediaSingleColumn.tsx +51 -46
  293. package/dist/components/core/list/widgets/SolidChatterMessageCoModelEntityIdListViewWidget.d.ts +3 -0
  294. package/dist/components/core/list/widgets/SolidChatterMessageCoModelEntityIdListViewWidget.d.ts.map +1 -0
  295. package/dist/components/core/list/widgets/SolidChatterMessageCoModelEntityIdListViewWidget.js +87 -0
  296. package/dist/components/core/list/widgets/SolidChatterMessageCoModelEntityIdListViewWidget.js.map +1 -0
  297. package/dist/components/core/list/widgets/SolidChatterMessageCoModelEntityIdListViewWidget.tsx +70 -0
  298. package/dist/components/core/list/widgets/SolidMqMessageStageListViewWidget.d.ts +3 -0
  299. package/dist/components/core/list/widgets/SolidMqMessageStageListViewWidget.d.ts.map +1 -0
  300. package/dist/components/core/list/widgets/SolidMqMessageStageListViewWidget.js +33 -0
  301. package/dist/components/core/list/widgets/SolidMqMessageStageListViewWidget.js.map +1 -0
  302. package/dist/components/core/list/widgets/SolidMqMessageStageListViewWidget.tsx +50 -0
  303. package/dist/components/core/list/widgets/SolidSummarizeListHeaderActionMqMessages.d.ts +3 -0
  304. package/dist/components/core/list/widgets/SolidSummarizeListHeaderActionMqMessages.d.ts.map +1 -0
  305. package/dist/components/core/list/widgets/SolidSummarizeListHeaderActionMqMessages.js +158 -0
  306. package/dist/components/core/list/widgets/SolidSummarizeListHeaderActionMqMessages.js.map +1 -0
  307. package/dist/components/core/list/widgets/SolidSummarizeListHeaderActionMqMessages.tsx +185 -0
  308. package/dist/components/layout/DashboardHeader.d.ts +3 -0
  309. package/dist/components/layout/DashboardHeader.d.ts.map +1 -0
  310. package/dist/components/layout/DashboardHeader.js +20 -0
  311. package/dist/components/layout/DashboardHeader.js.map +1 -0
  312. package/dist/components/layout/DashboardHeader.tsx +94 -0
  313. package/dist/helpers/# no such endpoints exist, need to calle +3 -0
  314. package/dist/helpers/ToastContainer.d.ts +4 -0
  315. package/dist/helpers/ToastContainer.d.ts.map +1 -0
  316. package/dist/helpers/ToastContainer.js +49 -0
  317. package/dist/helpers/ToastContainer.js.map +1 -0
  318. package/dist/helpers/ToastContainer.tsx +94 -0
  319. package/dist/helpers/downloadMediaFile.d.ts.map +1 -1
  320. package/dist/helpers/downloadMediaFile.js +10 -3
  321. package/dist/helpers/downloadMediaFile.js.map +1 -1
  322. package/dist/helpers/downloadMediaFile.tsx +13 -7
  323. package/dist/helpers/fileTypeIcon.d.ts +3 -2
  324. package/dist/helpers/fileTypeIcon.d.ts.map +1 -1
  325. package/dist/helpers/fileTypeIcon.js +11 -7
  326. package/dist/helpers/fileTypeIcon.js.map +1 -1
  327. package/dist/helpers/fileTypeIcon.tsx +12 -7
  328. package/dist/helpers/mediaType.d.ts +7 -0
  329. package/dist/helpers/mediaType.d.ts.map +1 -1
  330. package/dist/helpers/mediaType.js +39 -8
  331. package/dist/helpers/mediaType.js.map +1 -1
  332. package/dist/helpers/mediaType.ts +46 -7
  333. package/dist/helpers/mediaUrl.d.ts +2 -0
  334. package/dist/helpers/mediaUrl.d.ts.map +1 -0
  335. package/dist/helpers/mediaUrl.js +10 -0
  336. package/dist/helpers/mediaUrl.js.map +1 -0
  337. package/dist/helpers/mediaUrl.ts +11 -0
  338. package/dist/helpers/showToast.d.ts +5 -0
  339. package/dist/helpers/showToast.d.ts.map +1 -0
  340. package/dist/helpers/showToast.js +17 -0
  341. package/dist/helpers/showToast.js.map +1 -0
  342. package/dist/helpers/showToast.ts +13 -0
  343. package/dist/helpers/studioSandbox.d.ts +31 -0
  344. package/dist/helpers/studioSandbox.d.ts.map +1 -0
  345. package/dist/helpers/studioSandbox.js +104 -0
  346. package/dist/helpers/studioSandbox.js.map +1 -0
  347. package/dist/helpers/studioSandbox.ts +117 -0
  348. package/dist/nextAuth/authProviders.d.ts +4 -0
  349. package/dist/nextAuth/authProviders.d.ts.map +1 -0
  350. package/dist/nextAuth/authProviders.js +198 -0
  351. package/dist/nextAuth/authProviders.js.map +1 -0
  352. package/dist/nextAuth/authProviders.tsx +232 -0
  353. package/dist/nextAuth/handleLogout.d.ts +2 -0
  354. package/dist/nextAuth/handleLogout.d.ts.map +1 -0
  355. package/dist/nextAuth/handleLogout.js +36 -0
  356. package/dist/nextAuth/handleLogout.js.map +1 -0
  357. package/dist/nextAuth/handleLogout.tsx +39 -0
  358. package/dist/nextAuth/refreshAccessToken.d.ts +2 -0
  359. package/dist/nextAuth/refreshAccessToken.d.ts.map +1 -0
  360. package/dist/nextAuth/refreshAccessToken.js +24 -0
  361. package/dist/nextAuth/refreshAccessToken.js.map +1 -0
  362. package/dist/nextAuth/refreshAccessToken.tsx +28 -0
  363. package/dist/redux/api/dashboardApi.d.ts +23 -0
  364. package/dist/redux/api/dashboardApi.d.ts.map +1 -0
  365. package/dist/redux/api/dashboardApi.js +35 -0
  366. package/dist/redux/api/dashboardApi.js.map +1 -0
  367. package/dist/redux/api/dashboardApi.ts +56 -0
  368. package/dist/redux/api/dashboardLayoutApi.d.ts +24 -0
  369. package/dist/redux/api/dashboardLayoutApi.d.ts.map +1 -0
  370. package/dist/redux/api/dashboardLayoutApi.js +34 -0
  371. package/dist/redux/api/dashboardLayoutApi.js.map +1 -0
  372. package/dist/redux/api/dashboardLayoutApi.ts +55 -0
  373. package/dist/redux/api/dashboardQuestionApi.d.ts +5 -0
  374. package/dist/redux/api/dashboardQuestionApi.d.ts.map +1 -0
  375. package/dist/redux/api/dashboardQuestionApi.js +18 -0
  376. package/dist/redux/api/dashboardQuestionApi.js.map +1 -0
  377. package/dist/redux/api/dashboardQuestionApi.ts +17 -0
  378. package/dist/redux/features/settingsSlice.d.ts +20 -0
  379. package/dist/redux/features/settingsSlice.d.ts.map +1 -0
  380. package/dist/redux/features/settingsSlice.js +39 -0
  381. package/dist/redux/features/settingsSlice.js.map +1 -0
  382. package/dist/redux/features/settingsSlice.ts +60 -0
  383. package/dist/resources/images/Footerbg.png +0 -0
  384. package/dist/resources/images/LoginBanner.png +0 -0
  385. package/dist/resources/images/dashboard/Ellipse 1.svg +10 -0
  386. package/dist/resources/images/dashboard/Rectangle 17.svg +10 -0
  387. package/dist/resources/images/dashboard/Rectangle 25.svg +11 -0
  388. package/dist/resources/images/dashboard/image 5.svg +9 -0
  389. package/dist/resources/images/loginhero.png +0 -0
  390. package/dist/resources/images/logo.png +0 -0
  391. package/dist/resources/images/radix-logo-white.png +0 -0
  392. package/dist/resources/images/radix-logo.png +0 -0
  393. package/dist/resources/images/signupBanner.png +0 -0
  394. package/dist/resources/shadcn-base.css +16 -70
  395. package/dist/resources/solid-tailwind-generated.css +1 -1
  396. package/package.json +1 -1
  397. package/dist/components/core/extension/solid-core/workflowDefinition/list/openWorkflowDefinitionEditorHeaderAction.d.ts +0 -8
  398. package/dist/components/core/extension/solid-core/workflowDefinition/list/openWorkflowDefinitionEditorHeaderAction.d.ts.map +0 -1
  399. package/dist/components/core/extension/solid-core/workflowDefinition/list/openWorkflowDefinitionEditorHeaderAction.js +0 -6
  400. package/dist/components/core/extension/solid-core/workflowDefinition/list/openWorkflowDefinitionEditorHeaderAction.js.map +0 -1
  401. package/dist/components/core/extension/solid-core/workflowDefinition/list/openWorkflowDefinitionEditorHeaderAction.ts +0 -13
  402. package/dist/components/core/extension/solid-core/workflowDefinition/list/openWorkflowDefinitionEditorRowAction.d.ts +0 -11
  403. package/dist/components/core/extension/solid-core/workflowDefinition/list/openWorkflowDefinitionEditorRowAction.d.ts.map +0 -1
  404. package/dist/components/core/extension/solid-core/workflowDefinition/list/openWorkflowDefinitionEditorRowAction.js +0 -10
  405. package/dist/components/core/extension/solid-core/workflowDefinition/list/openWorkflowDefinitionEditorRowAction.js.map +0 -1
  406. package/dist/components/core/extension/solid-core/workflowDefinition/list/openWorkflowDefinitionEditorRowAction.ts +0 -22
  407. package/dist/components/core/list/SolidCustomListColumn.d.ts +0 -8
  408. package/dist/components/core/list/SolidCustomListColumn.d.ts.map +0 -1
  409. package/dist/components/core/list/SolidCustomListColumn.js +0 -47
  410. package/dist/components/core/list/SolidCustomListColumn.js.map +0 -1
  411. package/dist/components/core/list/SolidCustomListColumn.tsx +0 -57
  412. package/dist/components/workflow/WorkflowFlowCanvas.css +0 -431
  413. package/dist/components/workflow/WorkflowFlowCanvas.d.ts +0 -41
  414. package/dist/components/workflow/WorkflowFlowCanvas.d.ts.map +0 -1
  415. package/dist/components/workflow/WorkflowFlowCanvas.js +0 -705
  416. package/dist/components/workflow/WorkflowFlowCanvas.js.map +0 -1
  417. package/dist/components/workflow/WorkflowFlowCanvas.tsx +0 -1274
  418. package/dist/components/workflow/WorkflowNodeDocsPanel.css +0 -247
  419. package/dist/components/workflow/WorkflowNodeDocsPanel.d.ts +0 -22
  420. package/dist/components/workflow/WorkflowNodeDocsPanel.d.ts.map +0 -1
  421. package/dist/components/workflow/WorkflowNodeDocsPanel.js +0 -97
  422. package/dist/components/workflow/WorkflowNodeDocsPanel.js.map +0 -1
  423. package/dist/components/workflow/WorkflowNodeDocsPanel.tsx +0 -363
  424. package/dist/components/workflow/WorkflowNodeSchemaEditor.d.ts +0 -50
  425. package/dist/components/workflow/WorkflowNodeSchemaEditor.d.ts.map +0 -1
  426. package/dist/components/workflow/WorkflowNodeSchemaEditor.js +0 -309
  427. package/dist/components/workflow/WorkflowNodeSchemaEditor.js.map +0 -1
  428. package/dist/components/workflow/WorkflowNodeSchemaEditor.tsx +0 -808
  429. package/dist/helpers/modulePackageResumeState.d.ts +0 -6
  430. package/dist/helpers/modulePackageResumeState.d.ts.map +0 -1
  431. package/dist/helpers/modulePackageResumeState.js +0 -46
  432. package/dist/helpers/modulePackageResumeState.js.map +0 -1
  433. package/dist/helpers/modulePackageResumeState.ts +0 -57
  434. package/dist/redux/api/workflowDefinitionEditorApi.d.ts +0 -17
  435. package/dist/redux/api/workflowDefinitionEditorApi.d.ts.map +0 -1
  436. package/dist/redux/api/workflowDefinitionEditorApi.js +0 -38
  437. package/dist/redux/api/workflowDefinitionEditorApi.js.map +0 -1
  438. package/dist/redux/api/workflowDefinitionEditorApi.ts +0 -40
  439. package/dist/redux/api/workflowNodeApi.d.ts +0 -6
  440. package/dist/redux/api/workflowNodeApi.d.ts.map +0 -1
  441. package/dist/redux/api/workflowNodeApi.js +0 -14
  442. package/dist/redux/api/workflowNodeApi.js.map +0 -1
  443. package/dist/redux/api/workflowNodeApi.ts +0 -18
  444. package/dist/routes/pages/admin/core/WorkflowDefinitionEditorPage.css +0 -970
  445. package/dist/routes/pages/admin/core/WorkflowDefinitionEditorPage.d.ts +0 -3
  446. package/dist/routes/pages/admin/core/WorkflowDefinitionEditorPage.d.ts.map +0 -1
  447. package/dist/routes/pages/admin/core/WorkflowDefinitionEditorPage.js +0 -1287
  448. package/dist/routes/pages/admin/core/WorkflowDefinitionEditorPage.js.map +0 -1
  449. package/dist/routes/pages/admin/core/WorkflowDefinitionEditorPage.tsx +0 -2572
  450. package/dist/routes/pages/admin/core/WorkflowDefinitionListPage.css +0 -151
  451. package/dist/routes/pages/admin/core/WorkflowDefinitionListPage.d.ts +0 -3
  452. package/dist/routes/pages/admin/core/WorkflowDefinitionListPage.d.ts.map +0 -1
  453. package/dist/routes/pages/admin/core/WorkflowDefinitionListPage.js +0 -250
  454. package/dist/routes/pages/admin/core/WorkflowDefinitionListPage.js.map +0 -1
  455. package/dist/routes/pages/admin/core/WorkflowDefinitionListPage.tsx +0 -455
  456. package/dist/types/workflow-node.d.ts +0 -127
  457. package/dist/types/workflow-node.d.ts.map +0 -1
  458. package/dist/types/workflow-node.js +0 -2
  459. package/dist/types/workflow-node.js.map +0 -1
  460. package/dist/types/workflow-node.ts +0 -162
@@ -1 +1 @@
1
- {"version":3,"file":"fileTypeIcon.js","sourceRoot":"","sources":["../../src/helpers/fileTypeIcon.tsx"],"names":[],"mappings":";AAOA,IAAM,iBAAiB,G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_ICON: FileTypeIconTone = {\n bg: \"#64748B\",\n corner: \"#CBD5E1\"\n};\n\nconst FILE_TYPE_ICON_MAP: Record<string, FileTypeIconTone> = {\n pdf: { bg: \"#DC2626\", corner: \"#FCA5A5\" },\n txt: { bg: \"#475569\", corner: \"#CBD5E1\" },\n doc: { bg: \"#2563EB\", corner: \"#93C5FD\" },\n docx: { bg: \"#2563EB\", corner: \"#93C5FD\" },\n xls: { bg: \"#16A34A\", corner: \"#86EFAC\" },\n xlsx: { bg: \"#16A34A\", corner: \"#86EFAC\" },\n csv: { bg: \"#059669\", corner: \"#A7F3D0\" },\n ppt: { bg: \"#EA580C\", corner: \"#FDBA74\" },\n pptx: { bg: \"#EA580C\", corner: \"#FDBA74\" },\n zip: { bg: \"#7C3AED\", corner: \"#C4B5FD\" },\n rar: { bg: \"#7C3AED\", corner: \"#C4B5FD\" },\n webm: { bg: \"#4F46E5\", corner: \"#A5B4FC\" },\n ogg: { bg: \"#DB2777\", corner: \"#F9A8D4\" },\n wav: { bg: \"#DB2777\", corner: \"#F9A8D4\" }\n};\n\nconst getFileExtension = (fileUrl: string) => {\n const cleanUrl = fileUrl.split(\"?\")[0];\n return cleanUrl.split(\".\").pop()?.toLowerCase() ?? \"\";\n};\n\nexport const getFileTypeIconTone = (fileUrl: string) => {\n const extension = getFileExtension(fileUrl);\n return FILE_TYPE_ICON_MAP[extension] ?? DEFAULT_FILE_ICON;\n};\n\nexport const SolidFileTypeIcon = ({ fileUrl, size = 24, className }: { fileUrl: string; size?: number; className?: string }) => {\n const icon = getFileTypeIconTone(fileUrl);\n\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width={size}\n height={size}\n viewBox=\"0 0 32 32\"\n fill=\"none\"\n className={className}\n aria-hidden\n >\n <path\n d=\"M7.5 2.5h12L26 9v19.5a2 2 0 0 1-2 2H7.5a2 2 0 0 1-2-2v-24a2 2 0 0 1 2-2Z\"\n fill={icon.bg}\n />\n <path\n d=\"M19.5 2.5V8a1 1 0 0 0 1 1H26L19.5 2.5Z\"\n fill={icon.corner}\n />\n <path d=\"M9.5 12.25h9.5M9.5 15.25h12\" stroke=\"rgba(255,255,255,0.42)\" strokeWidth=\"1.4\" strokeLinecap=\"round\" />\n <rect x=\"7.5\" y=\"18\" width=\"17\" height=\"7.5\" rx=\"1.5\" fill=\"rgba(255,255,255,0.2)\" />\n </svg>\n );\n};\n"]}
1
+ {"version":3,"file":"fileTypeIcon.js","sourceRoot":"","sources":["../../src/helpers/fileTypeIcon.tsx"],"names":[],"mappings":";AAOA,IAAM,iBAAiB,GAAqB;IACxC,EAAE,EAAE,SAAS;IACb,MAAM,EAAE,SAAS;CACpB,CAAC;AAEF,IAAM,kBAAkB,GAAqC;IACzD,GAAG,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE;IACzC,GAAG,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE;IACzC,GAAG,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE;IACzC,IAAI,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE;IAC1C,GAAG,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE;IACzC,IAAI,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE;IAC1C,GAAG,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE;IACzC,GAAG,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE;IACzC,IAAI,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE;IAC1C,GAAG,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,EAAE,SAAS,EAAE;IACzC,GAAG,EAAE,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,EA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GpB,eACI,CAAC,EAAC,0EAA0E,EAC5E,IAAI,EAAE,IAAI,CAAC,EAAE,GACf,EACF,eACI,CAAC,EAAC,wCAAwC,EAC1C,IAAI,EAAE,IAAI,CAAC,MAAM,GACnB,EACF,eAAM,CAAC,EAAC,6BAA6B,EAAC,MAAM,EAAC,wBAAwB,EAAC,WAAW,EAAC,KAAK,EAAC,aAAa,EAAC,OAAO,GAAG,EAChH,eAAM,CAAC,EAAC,KAAK,EAAC,CAAC,EAAC,IAAI,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,EAAE,EAAC,KAAK,EAAC,IAAI,EAAC,uBAAuB,GAAG,IACnF,CACT,CAAC;AACN,CAAC,CAAC","sourcesContent":["import React from \"react\";\n\ntype FileTypeIconTone = {\n bg: string;\n corner: string;\n};\n\nconst DEFAULT_FILE_ICON: FileTypeIconTone = {\n bg: \"#64748B\",\n corner: \"#CBD5E1\"\n};\n\nconst FILE_TYPE_ICON_MAP: Record<string, FileTypeIconTone> = {\n pdf: { bg: \"#DC2626\", corner: \"#FCA5A5\" },\n txt: { bg: \"#475569\", corner: \"#CBD5E1\" },\n doc: { bg: \"#2563EB\", corner: \"#93C5FD\" },\n docx: { bg: \"#2563EB\", corner: \"#93C5FD\" },\n xls: { bg: \"#16A34A\", corner: \"#86EFAC\" },\n xlsx: { bg: \"#16A34A\", corner: \"#86EFAC\" },\n csv: { bg: \"#059669\", corner: \"#A7F3D0\" },\n ppt: { bg: \"#EA580C\", corner: \"#FDBA74\" },\n pptx: { bg: \"#EA580C\", corner: \"#FDBA74\" },\n zip: { bg: \"#7C3AED\", corner: \"#C4B5FD\" },\n rar: { bg: \"#7C3AED\", corner: \"#C4B5FD\" },\n webm: { bg: \"#4F46E5\", corner: \"#A5B4FC\" },\n ogg: { bg: \"#DB2777\", corner: \"#F9A8D4\" },\n wav: { bg: \"#DB2777\", corner: \"#F9A8D4\" }\n};\n\nconst getFileExtension = (fileName?: string, fileUrl?: string) => {\n const value = fileName || fileUrl;\n if (!value) {\n return \"\";\n }\n\n const cleanValue = value.split(\"?\")[0];\n return cleanValue.split(\".\").pop()?.toLowerCase() ?? \"\";\n};\n\nexport const getFileTypeIconTone = (fileUrl: string, fileName?: string) => {\n const extension = getFileExtension(fileName, fileUrl);\n return FILE_TYPE_ICON_MAP[extension] ?? DEFAULT_FILE_ICON;\n};\n\nexport const SolidFileTypeIcon = ({ fileUrl, fileName, size = 24, className }: { fileUrl: string; fileName?: string; size?: number; className?: string }) => {\n const icon = getFileTypeIconTone(fileUrl, fileName);\n\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width={size}\n height={size}\n viewBox=\"0 0 32 32\"\n fill=\"none\"\n className={className}\n aria-hidden\n >\n <path\n d=\"M7.5 2.5h12L26 9v19.5a2 2 0 0 1-2 2H7.5a2 2 0 0 1-2-2v-24a2 2 0 0 1 2-2Z\"\n fill={icon.bg}\n />\n <path\n d=\"M19.5 2.5V8a1 1 0 0 0 1 1H26L19.5 2.5Z\"\n fill={icon.corner}\n />\n <path d=\"M9.5 12.25h9.5M9.5 15.25h12\" stroke=\"rgba(255,255,255,0.42)\" strokeWidth=\"1.4\" strokeLinecap=\"round\" />\n <rect x=\"7.5\" y=\"18\" width=\"17\" height=\"7.5\" rx=\"1.5\" fill=\"rgba(255,255,255,0.2)\" />\n </svg>\n );\n};\n"]}
@@ -27,18 +27,23 @@ const FILE_TYPE_ICON_MAP: Record<string, FileTypeIconTone> = {
27
27
  wav: { bg: "#DB2777", corner: "#F9A8D4" }
28
28
  };
29
29
 
30
- const getFileExtension = (fileUrl: string) => {
31
- const cleanUrl = fileUrl.split("?")[0];
32
- return cleanUrl.split(".").pop()?.toLowerCase() ?? "";
30
+ const getFileExtension = (fileName?: string, fileUrl?: string) => {
31
+ const value = fileName || fileUrl;
32
+ if (!value) {
33
+ return "";
34
+ }
35
+
36
+ const cleanValue = value.split("?")[0];
37
+ return cleanValue.split(".").pop()?.toLowerCase() ?? "";
33
38
  };
34
39
 
35
- export const getFileTypeIconTone = (fileUrl: string) => {
36
- const extension = getFileExtension(fileUrl);
40
+ export const getFileTypeIconTone = (fileUrl: string, fileName?: string) => {
41
+ const extension = getFileExtension(fileName, fileUrl);
37
42
  return FILE_TYPE_ICON_MAP[extension] ?? DEFAULT_FILE_ICON;
38
43
  };
39
44
 
40
- export const SolidFileTypeIcon = ({ fileUrl, size = 24, className }: { fileUrl: string; size?: number; className?: string }) => {
41
- const icon = getFileTypeIconTone(fileUrl);
45
+ export const SolidFileTypeIcon = ({ fileUrl, fileName, size = 24, className }: { fileUrl: string; fileName?: string; size?: number; className?: string }) => {
46
+ const icon = getFileTypeIconTone(fileUrl, fileName);
42
47
 
43
48
  return (
44
49
  <svg
@@ -1,3 +1,10 @@
1
1
  export type MediaKind = "image" | "video" | "audio";
2
+ export type MediaPreviewKind = MediaKind | "file";
3
+ export declare const getMediaPreviewKind: ({ url, fileName, mimeType }: {
4
+ url?: string | undefined;
5
+ fileName?: string | undefined;
6
+ mimeType?: string | undefined;
7
+ }) => MediaPreviewKind;
8
+ export declare const isLightboxMediaKind: (mediaKind: MediaPreviewKind) => mediaKind is "video" | "image";
2
9
  export declare const getMediaTypeFromUrl: (url?: string) => MediaKind;
3
10
  //# sourceMappingURL=mediaType.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mediaType.d.ts","sourceRoot":"","sources":["../../src/helpers/mediaType.ts"],"names":[],"mappings":"AAGA,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC;AAEpD,eAAO,MAAM,mBAAmB,SAAU,MAAM,KAAG,SAiBlD,CAAC"}
1
+ {"version":3,"file":"mediaType.d.ts","sourceRoot":"","sources":["../../src/helpers/mediaType.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC;AACpD,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,MAAM,CAAC;AAyClD,eAAO,MAAM,mBAAmB;;;;MAA0F,gBAEzH,CAAC;AAEF,eAAO,MAAM,mBAAmB,cACnB,gBAAgB,mCACsD,CAAC;AAEpF,eAAO,MAAM,mBAAmB,SAAU,MAAM,KAAG,SAOlD,CAAC"}
@@ -1,19 +1,50 @@
1
+ var imageExtensions = ["jpg", "jpeg", "png", "gif", "bmp", "webp", "svg", "avif"];
1
2
  var videoExtensions = ["mp4", "webm", "ogg", "mov", "m4v"];
2
3
  var audioExtensions = ["mp3", "wav", "m4a", "aac", "oga"];
3
- export var getMediaTypeFromUrl = function (url) {
4
- var _a;
5
- if (!url)
4
+ var getMediaExtension = function (value) {
5
+ var _a, _b;
6
+ if (!value)
7
+ return "";
8
+ var cleanValue = value.split("?")[0];
9
+ return (_b = (_a = cleanValue.split(".").pop()) === null || _a === void 0 ? void 0 : _a.toLowerCase()) !== null && _b !== void 0 ? _b : "";
10
+ };
11
+ var getMediaKind = function (_a) {
12
+ var url = _a.url, fileName = _a.fileName, mimeType = _a.mimeType;
13
+ var normalizedMimeType = String(mimeType || "").toLowerCase();
14
+ if (normalizedMimeType.startsWith("image/")) {
6
15
  return "image";
7
- var cleanUrl = url.split("?")[0];
8
- var ext = (_a = cleanUrl.split(".").pop()) === null || _a === void 0 ? void 0 : _a.toLowerCase();
9
- if (!ext)
16
+ }
17
+ if (normalizedMimeType.startsWith("video/")) {
18
+ return "video";
19
+ }
20
+ if (normalizedMimeType.startsWith("audio/")) {
21
+ return "audio";
22
+ }
23
+ var extension = getMediaExtension(fileName) || getMediaExtension(url);
24
+ if (!extension)
25
+ return null;
26
+ if (imageExtensions.includes(extension)) {
10
27
  return "image";
11
- if (videoExtensions.includes(ext)) {
28
+ }
29
+ if (videoExtensions.includes(extension)) {
12
30
  return "video";
13
31
  }
14
- if (audioExtensions.includes(ext)) {
32
+ if (audioExtensions.includes(extension)) {
15
33
  return "audio";
16
34
  }
35
+ return null;
36
+ };
37
+ export var getMediaPreviewKind = function (_a) {
38
+ var _b;
39
+ var url = _a.url, fileName = _a.fileName, mimeType = _a.mimeType;
40
+ return (_b = getMediaKind({ url: url, fileName: fileName, mimeType: mimeType })) !== null && _b !== void 0 ? _b : "file";
41
+ };
42
+ export var isLightboxMediaKind = function (mediaKind) { return mediaKind === "image" || mediaKind === "video"; };
43
+ export var getMediaTypeFromUrl = function (url) {
44
+ var mediaKind = getMediaKind({ url: url });
45
+ if (mediaKind === "video" || mediaKind === "audio") {
46
+ return mediaKind;
47
+ }
17
48
  return "image";
18
49
  };
19
50
  //# sourceMappingURL=mediaType.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"mediaType.js","sourceRoot":"","sources":["../../src/helpers/mediaType.ts"],"names":[],"mappings":"AAAA,IAAM,eAAe,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;AAC7D,IAAM,eAAe,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;AAI5D,MAAM,CAAC,IAAM,mBAAmB,GAAG,UAAC,GAAY;;IAC9C,IAAI,CAAC,GAAG;QAAE,OAAO,OAAO,CAAC;IAEzB,IAAM,QAAQ,GAAG,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IACnC,IAAM,GAAG,GAAG,MAAA,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,0CAAE,WAAW,EAAE,CAAC;IAErD,IAAI,CAAC,GAAG;QAAE,OAAO,OAAO,CAAC;IAEzB,IAAI,eAAe,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;QACjC,OAAO,OAAO,CAAC;KAChB;IAED,IAAI,eAAe,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;QACjC,OAAO,OAAO,CAAC;KAChB;IAED,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC","sourcesContent":["const videoExtensions = [\"mp4\", \"webm\", \"ogg\", \"mov\", \"m4v\"];\nconst audioExtensions = [\"mp3\", \"wav\", \"m4a\", \"aac\", \"oga\"];\n\nexport type MediaKind = \"image\" | \"video\" | \"audio\";\n\nexport const getMediaTypeFromUrl = (url?: string): MediaKind => {\n if (!url) return \"image\";\n\n const cleanUrl = url.split(\"?\")[0];\n const ext = cleanUrl.split(\".\").pop()?.toLowerCase();\n\n if (!ext) return \"image\";\n\n if (videoExtensions.includes(ext)) {\n return \"video\";\n }\n\n if (audioExtensions.includes(ext)) {\n return \"audio\";\n }\n\n return \"image\";\n};\n"]}
1
+ {"version":3,"file":"mediaType.js","sourceRoot":"","sources":["../../src/helpers/mediaType.ts"],"names":[],"mappings":"AAAA,IAAM,eAAe,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;AACpF,IAAM,eAAe,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;AAC7D,IAAM,eAAe,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;AAK5D,IAAM,iBAAiB,GAAG,UAAC,KAAc;;IACvC,IAAI,CAAC,KAAK;QAAE,OAAO,EAAE,CAAC;IAEtB,IAAM,UAAU,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IACvC,OAAO,MAAA,MAAA,UAAU,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,0CAAE,WAAW,EAAE,mCAAI,EAAE,CAAC;AAC1D,CAAC,CAAC;AAEF,IAAM,YAAY,GAAG,UAAC,EAAoF;QAAlF,GAAG,SAAA,EAAE,QAAQ,cAAA,EAAE,QAAQ,cAAA;IAC7C,IAAM,kBAAkB,GAAG,MAAM,CAAC,QAAQ,IAAI,EAAE,CAAC,CAAC,W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KAAK,OAAO,IAAI,SAAS,KAAK,OAAO,EAAE;QAClD,OAAO,SAAS,CAAC;KAClB;IAED,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC","sourcesContent":["const imageExtensions = [\"jpg\", \"jpeg\", \"png\", \"gif\", \"bmp\", \"webp\", \"svg\", \"avif\"];\nconst videoExtensions = [\"mp4\", \"webm\", \"ogg\", \"mov\", \"m4v\"];\nconst audioExtensions = [\"mp3\", \"wav\", \"m4a\", \"aac\", \"oga\"];\n\nexport type MediaKind = \"image\" | \"video\" | \"audio\";\nexport type MediaPreviewKind = MediaKind | \"file\";\n\nconst getMediaExtension = (value?: string): string => {\n if (!value) return \"\";\n\n const cleanValue = value.split(\"?\")[0];\n return cleanValue.split(\".\").pop()?.toLowerCase() ?? \"\";\n};\n\nconst getMediaKind = ({ url, fileName, mimeType }: { url?: string; fileName?: string; mimeType?: string; }): MediaKind | null => {\n const normalizedMimeType = String(mimeType || \"\").toLowerCase();\n if (normalizedMimeType.startsWith(\"image/\")) {\n return \"image\";\n }\n\n if (normalizedMimeType.startsWith(\"video/\")) {\n return \"video\";\n }\n\n if (normalizedMimeType.startsWith(\"audio/\")) {\n return \"audio\";\n }\n\n const extension = getMediaExtension(fileName) || getMediaExtension(url);\n if (!extension) return null;\n\n if (imageExtensions.includes(extension)) {\n return \"image\";\n }\n\n if (videoExtensions.includes(extension)) {\n return \"video\";\n }\n\n if (audioExtensions.includes(extension)) {\n return \"audio\";\n }\n\n return null;\n};\n\nexport const getMediaPreviewKind = ({ url, fileName, mimeType}: { url?: string; fileName?: string; mimeType?: string; }): MediaPreviewKind => {\n return getMediaKind({ url, fileName, mimeType }) ?? \"file\";\n};\n\nexport const isLightboxMediaKind = (\n mediaKind: MediaPreviewKind\n): mediaKind is \"image\" | \"video\" => mediaKind === \"image\" || mediaKind === \"video\";\n\nexport const getMediaTypeFromUrl = (url?: string): MediaKind => {\n const mediaKind = getMediaKind({ url });\n if (mediaKind === \"video\" || mediaKind === \"audio\") {\n return mediaKind;\n }\n\n return \"image\";\n};\n"]}
@@ -1,23 +1,62 @@
1
+ const imageExtensions = ["jpg", "jpeg", "png", "gif", "bmp", "webp", "svg", "avif"];
1
2
  const videoExtensions = ["mp4", "webm", "ogg", "mov", "m4v"];
2
3
  const audioExtensions = ["mp3", "wav", "m4a", "aac", "oga"];
3
4
 
4
5
  export type MediaKind = "image" | "video" | "audio";
6
+ export type MediaPreviewKind = MediaKind | "file";
5
7
 
6
- export const getMediaTypeFromUrl = (url?: string): MediaKind => {
7
- if (!url) return "image";
8
+ const getMediaExtension = (value?: string): string => {
9
+ if (!value) return "";
10
+
11
+ const cleanValue = value.split("?")[0];
12
+ return cleanValue.split(".").pop()?.toLowerCase() ?? "";
13
+ };
14
+
15
+ const getMediaKind = ({ url, fileName, mimeType }: { url?: string; fileName?: string; mimeType?: string; }): MediaKind | null => {
16
+ const normalizedMimeType = String(mimeType || "").toLowerCase();
17
+ if (normalizedMimeType.startsWith("image/")) {
18
+ return "image";
19
+ }
20
+
21
+ if (normalizedMimeType.startsWith("video/")) {
22
+ return "video";
23
+ }
24
+
25
+ if (normalizedMimeType.startsWith("audio/")) {
26
+ return "audio";
27
+ }
8
28
 
9
- const cleanUrl = url.split("?")[0];
10
- const ext = cleanUrl.split(".").pop()?.toLowerCase();
29
+ const extension = getMediaExtension(fileName) || getMediaExtension(url);
30
+ if (!extension) return null;
11
31
 
12
- if (!ext) return "image";
32
+ if (imageExtensions.includes(extension)) {
33
+ return "image";
34
+ }
13
35
 
14
- if (videoExtensions.includes(ext)) {
36
+ if (videoExtensions.includes(extension)) {
15
37
  return "video";
16
38
  }
17
39
 
18
- if (audioExtensions.includes(ext)) {
40
+ if (audioExtensions.includes(extension)) {
19
41
  return "audio";
20
42
  }
21
43
 
44
+ return null;
45
+ };
46
+
47
+ export const getMediaPreviewKind = ({ url, fileName, mimeType}: { url?: string; fileName?: string; mimeType?: string; }): MediaPreviewKind => {
48
+ return getMediaKind({ url, fileName, mimeType }) ?? "file";
49
+ };
50
+
51
+ export const isLightboxMediaKind = (
52
+ mediaKind: MediaPreviewKind
53
+ ): mediaKind is "image" | "video" => mediaKind === "image" || mediaKind === "video";
54
+
55
+ export const getMediaTypeFromUrl = (url?: string): MediaKind => {
56
+ const mediaKind = getMediaKind({ url });
57
+ if (mediaKind === "video" || mediaKind === "audio") {
58
+ return mediaKind;
59
+ }
60
+
22
61
  return "image";
23
62
  };
@@ -0,0 +1,2 @@
1
+ export declare const openMediaInNewTab: (value?: string) => void;
2
+ //# sourceMappingURL=mediaUrl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mediaUrl.d.ts","sourceRoot":"","sources":["../../src/helpers/mediaUrl.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,WAAY,MAAM,SAU/C,CAAC"}
@@ -0,0 +1,10 @@
1
+ export var openMediaInNewTab = function (value) {
2
+ if (typeof window === "undefined") {
3
+ return;
4
+ }
5
+ if (!value) {
6
+ return;
7
+ }
8
+ window.open(value, "_blank", "noopener,noreferrer");
9
+ };
10
+ //# sourceMappingURL=mediaUrl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mediaUrl.js","sourceRoot":"","sources":["../../src/helpers/mediaUrl.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,iBAAiB,GAAG,UAAC,KAAc;IAC5C,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE;QAC/B,OAAO;KACV;IAED,IAAI,CAAC,KAAK,EAAE;QACR,OAAO;KACV;IAED,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,QAAQ,EAAE,qBAAqB,CAAC,CAAC;AACxD,CAAC,CAAC","sourcesContent":["export const openMediaInNewTab = (value?: string) => {\n if (typeof window === \"undefined\") {\n return;\n }\n\n if (!value) {\n return;\n }\n\n window.open(value, \"_blank\", \"noopener,noreferrer\");\n};\n"]}
@@ -0,0 +1,11 @@
1
+ export const openMediaInNewTab = (value?: string) => {
2
+ if (typeof window === "undefined") {
3
+ return;
4
+ }
5
+
6
+ if (!value) {
7
+ return;
8
+ }
9
+
10
+ window.open(value, "_blank", "noopener,noreferrer");
11
+ };
@@ -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":"AAAA;;;;;;;GAOG;AAEH,IAAI,kBAAkB,GAAsB,IAAI,CAAC;AACjD,IAAI,uBAAuB,GAAgB,IAAI,CAAC;AAChD,IAAI,eAAe,GAAG,KAAK,CAAC;AAE5B,SAAS,UAAU;IACf,qFAAqF;IACrF,OAAO,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,IAAI,QAAQ,CAAC,cAAc,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,IAAI,CAAC,iBAAiB,CAAC;AACnH,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,gBAAgB;IAC5B,IAAI,OAAO,MAAM,KAAK,WAAW,IAAI,eAAe;QAAE,OAAO;IAE7D,IAAM,OAAO,GAAG,UAAU,EAAE,CAAC;IAC7B,IAAI,CAAC,OAAO,IAAI,OAAO,CAAC,EAAE,KAAK,mBAAmB,IAAI,OAAO,CAAC,EAAE,KAAK,4BAA4B,EAAE;QAC/F,OAAO;KACV;IAED,IAAM,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC;IAClC,IAAI,CAAC,MAAM;QAAE,OAAO;IAEpB,eAAe,GAAG,IAAI,CAAC;IACvB,kBAAkB,GAAG,MAAM,CAAC;IAC5B,uBAAuB,GAAG,OAAO,CAAC,WAAW,CAAC;IAE9C,2BAA2B;IAC3B,IAAM,UAAU,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IACjD,UAAU,CAAC,EAAE,GAAG,mBAAmB,CAAC;IAEpC,iCAAiC;IACjC,IAAM,YAAY,GAAG,QAAQ,CAAC,aAAa,CAAC,KAAK,CAAC,CAAC;IACnD,YAAY,CAAC,EAAE,GA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AAM,CAAC;KAC9B;IACD,OAAO,MAAM,CAAC;AAClB,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,UAAU;IACtB,IAAI,OAAO,MAAM,KAAK,WAAW;QAAE,OAAO,CAAC,CAAC;IAC5C,IAAI,eAAe,EAAE;QACjB,IAAM,SAAS,GAAG,QAAQ,CAAC,cAAc,CAAC,4BAA4B,CAAC,CAAC;QACxE,OAAO,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC;KAC9C;IACD,OAAO,MAAM,CAAC,OAAO,CAAC;AAC1B,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,iBAAiB;IAC7B,IAAI,OAAO,MAAM,KAAK,WAAW;QAAE,OAAO,CAAC,CAAC;IAC5C,IAAI,eAAe,EAAE;QACjB,IAAM,SAAS,GAAG,QAAQ,CAAC,cAAc,CAAC,4BAA4B,CAAC,CAAC;QACxE,OAAO,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,WAAW,CAAC;KAClE;IACD,OAAO,MAAM,CAAC,WAAW,CAAC;AAC9B,CAAC","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"]}
@@ -0,0 +1,117 @@
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
+ let originalRootParent: ParentNode | null = null;
11
+ let originalRootNextSibling: Node | null = null;
12
+ let isSandboxActive = false;
13
+
14
+ function getAppRoot() {
15
+ // Determine the root depending on the framework (Vite uses #root, Next uses #__next)
16
+ return document.getElementById("root") || document.getElementById("__next") || document.body.firstElementChild;
17
+ }
18
+
19
+ /**
20
+ * Wraps the app root into the sandbox container.
21
+ */
22
+ export function enableStudioMode() {
23
+ if (typeof window === "undefined" || isSandboxActive) return;
24
+
25
+ const appRoot = getAppRoot();
26
+ if (!appRoot || appRoot.id === "solid-studio-root" || appRoot.id === "solid-studio-app-container") {
27
+ return;
28
+ }
29
+
30
+ const parent = appRoot.parentNode;
31
+ if (!parent) return;
32
+
33
+ isSandboxActive = true;
34
+ originalRootParent = parent;
35
+ originalRootNextSibling = appRoot.nextSibling;
36
+
37
+ // Create the outer wrapper
38
+ const studioRoot = document.createElement("div");
39
+ studioRoot.id = "solid-studio-root";
40
+
41
+ // Create the isolation container
42
+ const appContainer = document.createElement("div");
43
+ appContainer.id = "solid-studio-app-container";
44
+
45
+ // Re-parent the app node
46
+ appContainer.appendChild(appRoot);
47
+ studioRoot.appendChild(appContainer);
48
+
49
+ // Insert the wrapper into the DOM where the root used to be
50
+ parent.insertBefore(studioRoot, originalRootNextSibling);
51
+
52
+ // Set a class on the body to indicate Studio Mode
53
+ document.body.classList.add("solid-studio-active");
54
+ }
55
+
56
+ /**
57
+ * Restores the application to its original state.
58
+ */
59
+ export function disableStudioMode() {
60
+ if (typeof window === "undefined" || !isSandboxActive) return;
61
+
62
+ const studioRoot = document.getElementById("solid-studio-root");
63
+ const appContainer = document.getElementById("solid-studio-app-container");
64
+
65
+ // Find our wrapped app root
66
+ const appRoot = appContainer?.firstElementChild;
67
+
68
+ if (studioRoot && appRoot && originalRootParent) {
69
+ originalRootParent.insertBefore(appRoot, originalRootNextSibling);
70
+ studioRoot.remove();
71
+ }
72
+
73
+ isSandboxActive = false;
74
+ originalRootParent = null;
75
+ originalRootNextSibling = null;
76
+
77
+ // Remove body class
78
+ document.body.classList.remove("solid-studio-active");
79
+ }
80
+
81
+ /**
82
+ * Returns the active scroll element based on sandbox state.
83
+ * When Studio Mode is enabled, the scroll element becomes the container.
84
+ * Otherwise, it uses the default Window object.
85
+ */
86
+ export function getScrollElement(): HTMLElement | Window {
87
+ if (typeof window === "undefined") return window;
88
+ if (isSandboxActive) {
89
+ const container = document.getElementById("solid-studio-app-container");
90
+ return container || window;
91
+ }
92
+ return window;
93
+ }
94
+
95
+ /**
96
+ * Returns the current vertical scroll position.
97
+ */
98
+ export function getScrollY(): number {
99
+ if (typeof window === "undefined") return 0;
100
+ if (isSandboxActive) {
101
+ const container = document.getElementById("solid-studio-app-container");
102
+ return container ? container.scrollTop : 0;
103
+ }
104
+ return window.scrollY;
105
+ }
106
+
107
+ /**
108
+ * Returns the effective viewport height.
109
+ */
110
+ export function getViewportHeight(): number {
111
+ if (typeof window === "undefined") return 0;
112
+ if (isSandboxActive) {
113
+ const container = document.getElementById("solid-studio-app-container");
114
+ return container ? container.clientHeight : window.innerHeight;
115
+ }
116
+ return window.innerHeight;
117
+ }
@@ -0,0 +1,4 @@
1
+ import { NextAuthOptions } from "next-auth";
2
+ declare const authProviders: NextAuthOptions;
3
+ export default authProviders;
4
+ //# sourceMappingURL=authProviders.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authProviders.d.ts","sourceRoot":"./","sources":["nextAuth/authProviders.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAW5C,QAAA,MAAM,aAAa,EAAE,eAqNpB,CAAA;AAED,eAAe,aAAa,CAAA"}