@solidstarters/solid-core-ui 1.1.74 → 1.1.77

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 (659) hide show
  1. package/dist/components/common/FileReaderExt.js +1 -0
  2. package/dist/components/common/FileReaderExt.js.map +1 -1
  3. package/dist/components/common/GeneralSettings.js +1 -1
  4. package/dist/components/common/SolidAdmin.d.ts.map +1 -1
  5. package/dist/components/common/SolidAdmin.js +1 -0
  6. package/dist/components/common/SolidAdmin.js.map +1 -1
  7. package/dist/components/common/SolidThemeLink.d.ts.map +1 -1
  8. package/dist/components/common/SolidThemeLink.js +1 -0
  9. package/dist/components/common/SolidThemeLink.js.map +1 -1
  10. package/dist/components/core/chatter/SolidChatter.d.ts.map +1 -1
  11. package/dist/components/core/chatter/SolidChatterDateDivider.js +1 -0
  12. package/dist/components/core/chatter/SolidChatterDateDivider.js.map +1 -1
  13. package/dist/components/core/chatter/SolidChatterHeader.d.ts.map +1 -1
  14. package/dist/components/core/chatter/SolidChatterHeader.js +4 -3
  15. package/dist/components/core/chatter/SolidChatterHeader.js.map +1 -1
  16. package/dist/components/core/chatter/SolidChatterMessageBox.d.ts.map +1 -1
  17. package/dist/components/core/chatter/SolidChatterMessageBox.js +7 -6
  18. package/dist/components/core/chatter/SolidChatterMessageBox.js.map +1 -1
  19. package/dist/components/core/common/SolidSaveCustomFilterForm.d.ts.map +1 -1
  20. package/dist/components/core/common/SolidSaveCustomFilterForm.js +1 -0
  21. package/dist/components/core/common/SolidSaveCustomFilterForm.js.map +1 -1
  22. package/dist/components/core/form/SolidFormActionHeader.d.ts.map +1 -1
  23. package/dist/components/core/form/SolidFormActionHeader.js +1 -0
  24. package/dist/components/core/form/SolidFormActionHeader.js.map +1 -1
  25. package/dist/components/core/form/SolidFormView.d.ts +1 -0
  26. package/dist/components/core/form/SolidFormView.d.ts.map +1 -1
  27. package/dist/components/core/form/fields/SolidIntegerField.d.ts +1 -0
  28. package/dist/components/core/form/fields/SolidIntegerField.d.ts.map +1 -1
  29. package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.d.ts +1 -1
  30. package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.d.ts.map +1 -1
  31. package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.js +1 -1
  32. package/dist/components/core/form/fields/solidFields.module.css +7 -0
  33. package/dist/components/core/list/columns/SolidDateColumn.js +1 -1
  34. package/dist/components/core/list/columns/SolidDateColumn.js.map +1 -1
  35. package/dist/components/core/list/columns/SolidDatetimeColumn.js +1 -1
  36. package/dist/components/core/list/columns/SolidDatetimeColumn.js.map +1 -1
  37. package/dist/components/core/list/columns/SolidExternalIdColumn.js +1 -1
  38. package/dist/components/core/list/columns/SolidExternalIdColumn.js.map +1 -1
  39. package/dist/components/core/list/columns/SolidIdColumn.js +1 -1
  40. package/dist/components/core/list/columns/SolidIdColumn.js.map +1 -1
  41. package/dist/components/core/list/columns/SolidIntColumn.js +1 -1
  42. package/dist/components/core/list/columns/SolidIntColumn.js.map +1 -1
  43. package/dist/components/core/list/columns/SolidRelationColumn.d.ts.map +1 -1
  44. package/dist/components/core/list/columns/SolidRelationColumn.js +2 -1
  45. package/dist/components/core/list/columns/SolidRelationColumn.js.map +1 -1
  46. package/dist/components/core/list/columns/SolidSelectionDynamicColumn.js +1 -1
  47. package/dist/components/core/list/columns/SolidSelectionDynamicColumn.js.map +1 -1
  48. package/dist/components/core/list/columns/SolidSelectionStaticColumn.js +1 -1
  49. package/dist/components/core/list/columns/SolidSelectionStaticColumn.js.map +1 -1
  50. package/dist/components/core/list/columns/SolidTimeColumn.js +1 -1
  51. package/dist/components/core/list/columns/SolidTimeColumn.js.map +1 -1
  52. package/dist/components/core/list/columns/SolidUuidColumn.js +1 -1
  53. package/dist/components/core/list/columns/SolidUuidColumn.js.map +1 -1
  54. package/dist/components/core/list/widgets/SolidRelationAvatarWidget.d.ts.map +1 -1
  55. package/dist/components/core/list/widgets/SolidRelationAvatarWidget.js +14 -13
  56. package/dist/components/core/list/widgets/SolidRelationAvatarWidget.js.map +1 -1
  57. package/dist/components/core/list/widgets/SolidShortTextAvatarWidget.d.ts.map +1 -1
  58. package/dist/components/core/list/widgets/SolidShortTextAvatarWidget.js +13 -12
  59. package/dist/components/core/list/widgets/SolidShortTextAvatarWidget.js.map +1 -1
  60. package/dist/components/core/module/CreateModule.d.ts.map +1 -1
  61. package/dist/components/core/module/CreateModule.js +0 -2
  62. package/dist/components/core/module/CreateModule.js.map +1 -1
  63. package/dist/declarations.d.ts +4 -1
  64. package/dist/helpers/registry.js +2 -1
  65. package/dist/helpers/registry.js.map +1 -1
  66. package/dist/types/solid-core.d.ts +10 -7
  67. package/package.json +1 -1
  68. package/src/components/core/form/fields/solidFields.module.css +7 -0
  69. package/src/declarations.d.ts +4 -1
  70. package/src/types/solid-core.d.ts +10 -7
  71. package/tsconfig.json +2 -1
  72. package/dist/components/CustomFooter/CustomFooter.tsx +0 -264
  73. package/dist/components/CustomFooter/FooterForm.tsx +0 -19
  74. package/dist/components/CustomHeader/CallIcon.tsx +0 -20
  75. package/dist/components/CustomHeader/CustomDropdown.tsx +0 -175
  76. package/dist/components/CustomHeader/CustomHeader.tsx +0 -64
  77. package/dist/components/CustomHeader/EmailIcon.tsx +0 -12
  78. package/dist/components/CustomHeader/HeaderCart.tsx +0 -15
  79. package/dist/components/CustomHeader/productNavData.tsx +0 -180
  80. package/dist/components/FormView/DetailsViews.tsx +0 -46
  81. package/dist/components/FormView/OrderAddressDetails.tsx +0 -70
  82. package/dist/components/FormView/OrderPaymentDetails.tsx +0 -18
  83. package/dist/components/FormView/OrderTableDetails.tsx +0 -36
  84. package/dist/components/FormView/OrderedProductDetail.tsx +0 -22
  85. package/dist/components/Svg/ExcelSvg.tsx +0 -15
  86. package/dist/components/Svg/FileSvg.tsx +0 -19
  87. package/dist/components/Svg/PDFSvg.tsx +0 -15
  88. package/dist/components/Svg/RightArrowSvg.tsx +0 -9
  89. package/dist/components/Tag/CustomTag.tsx +0 -50
  90. package/dist/components/auth/AuthLayout.tsx +0 -140
  91. package/dist/components/auth/ForgotPasswordThankYou.tsx +0 -48
  92. package/dist/components/auth/GoogleAuthChecking.tsx +0 -60
  93. package/dist/components/auth/Login.tsx +0 -155
  94. package/dist/components/auth/Register.tsx +0 -239
  95. package/dist/components/auth/SolidChangeForcePassword.tsx +0 -145
  96. package/dist/components/auth/SolidForgotPassword.tsx +0 -125
  97. package/dist/components/auth/SolidInitialLoginOtp.tsx +0 -152
  98. package/dist/components/auth/SolidInitiateRegisterOtp.tsx +0 -141
  99. package/dist/components/auth/SolidLogin.tsx +0 -275
  100. package/dist/components/auth/SolidOTPVerify.tsx +0 -132
  101. package/dist/components/auth/SolidRegister.tsx +0 -348
  102. package/dist/components/auth/SolidResetPassword.tsx +0 -162
  103. package/dist/components/common/AuthBanner.tsx +0 -41
  104. package/dist/components/common/AutoCompleteField.tsx +0 -76
  105. package/dist/components/common/BackButton.tsx +0 -27
  106. package/dist/components/common/CancelButton.tsx +0 -48
  107. package/dist/components/common/CodeEditor.tsx +0 -26
  108. package/dist/components/common/CreateButton.tsx +0 -17
  109. package/dist/components/common/DropzonePlaceholder.tsx +0 -31
  110. package/dist/components/common/DropzoneUpload.tsx +0 -11
  111. package/dist/components/common/FileReaderExt.tsx +0 -20
  112. package/dist/components/common/GeneralSettings.tsx +0 -414
  113. package/dist/components/common/HeaderDynamicTitles.tsx +0 -13
  114. package/dist/components/common/MarkdownViewer.tsx +0 -16
  115. package/dist/components/common/MultipleSelectAutoCompleteField.tsx +0 -62
  116. package/dist/components/common/NotFound.tsx +0 -22
  117. package/dist/components/common/SingleSelectAutoCompleteField.tsx +0 -67
  118. package/dist/components/common/SocialMediaLogin.tsx +0 -53
  119. package/dist/components/common/SolidAdmin.tsx +0 -7
  120. package/dist/components/common/SolidBreadcrumb.tsx +0 -105
  121. package/dist/components/common/SolidFormHeader.tsx +0 -22
  122. package/dist/components/common/SolidFormStepper.tsx +0 -213
  123. package/dist/components/common/SolidModuleHome.tsx +0 -61
  124. package/dist/components/common/SolidThemeLink.tsx +0 -5
  125. package/dist/components/common/SolidThemeProvider.tsx +0 -44
  126. package/dist/components/common/error.tsx +0 -30
  127. package/dist/components/core/chatter/SolidChatter.tsx +0 -252
  128. package/dist/components/core/chatter/SolidChatterDateDivider.tsx +0 -16
  129. package/dist/components/core/chatter/SolidChatterHeader.tsx +0 -178
  130. package/dist/components/core/chatter/SolidChatterMessageBox.tsx +0 -165
  131. package/dist/components/core/chatter/SolidMessageComposer.tsx +0 -145
  132. package/dist/components/core/common/FilterComponent.tsx +0 -434
  133. package/dist/components/core/common/LoadDynamicJsxComponent.tsx +0 -70
  134. package/dist/components/core/common/SolidCreateButton.tsx +0 -17
  135. package/dist/components/core/common/SolidGlobalSearchElement.tsx +0 -843
  136. package/dist/components/core/common/SolidLayoutViews.tsx +0 -87
  137. package/dist/components/core/common/SolidListViewOptions.tsx +0 -31
  138. package/dist/components/core/common/SolidSaveCustomFilterForm.tsx +0 -74
  139. package/dist/components/core/common/SolidSearchBox.tsx +0 -17
  140. package/dist/components/core/common/SolidViewLayoutManager.ts +0 -85
  141. package/dist/components/core/extension/solid-core/emailTemplate/emailFormTypeChangeHandler.ts +0 -18
  142. package/dist/components/core/extension/solid-core/emailTemplate/emailFormTypeLoad.ts +0 -18
  143. package/dist/components/core/extension/solid-core/modelMetadata/list/GenerateModelCodeRowAction.tsx +0 -59
  144. package/dist/components/core/extension/solid-core/moduleMetadata/list/GenerateModuleCodeRowAction.tsx +0 -38
  145. package/dist/components/core/extension/solid-core/roleMetadata/RolePermissionsManyToManyFieldWidget.tsx +0 -123
  146. package/dist/components/core/field/FieldListViewData.tsx +0 -312
  147. package/dist/components/core/filter/SolidFilterFields.tsx +0 -128
  148. package/dist/components/core/filter/SolidManyToOneFilterElement.tsx +0 -60
  149. package/dist/components/core/filter/SolidSelectionDynamicFilterElement.tsx +0 -50
  150. package/dist/components/core/filter/SolidSelectionStaticFilterElement.tsx +0 -32
  151. package/dist/components/core/filter/SolidVarInputsFilterElement.tsx +0 -180
  152. package/dist/components/core/filter/fields/SolidBigintField.tsx +0 -9
  153. package/dist/components/core/filter/fields/SolidBooleanField.tsx +0 -50
  154. package/dist/components/core/filter/fields/SolidComputedField.tsx +0 -23
  155. package/dist/components/core/filter/fields/SolidDateField.tsx +0 -58
  156. package/dist/components/core/filter/fields/SolidDatetimeField.tsx +0 -51
  157. package/dist/components/core/filter/fields/SolidDecimalField.tsx +0 -9
  158. package/dist/components/core/filter/fields/SolidExternalIdField.tsx +0 -46
  159. package/dist/components/core/filter/fields/SolidFloatField.tsx +0 -9
  160. package/dist/components/core/filter/fields/SolidIdField.tsx +0 -46
  161. package/dist/components/core/filter/fields/SolidIntField.tsx +0 -56
  162. package/dist/components/core/filter/fields/SolidLongTextField.tsx +0 -9
  163. package/dist/components/core/filter/fields/SolidMediaMultipleField.tsx +0 -54
  164. package/dist/components/core/filter/fields/SolidMediaSingleField.tsx +0 -56
  165. package/dist/components/core/filter/fields/SolidRelationField.tsx +0 -13
  166. package/dist/components/core/filter/fields/SolidRichTextField.tsx +0 -9
  167. package/dist/components/core/filter/fields/SolidSelectionDynamicField.tsx +0 -46
  168. package/dist/components/core/filter/fields/SolidSelectionStaticField.tsx +0 -48
  169. package/dist/components/core/filter/fields/SolidShortTextField.tsx +0 -54
  170. package/dist/components/core/filter/fields/SolidTimeField.tsx +0 -45
  171. package/dist/components/core/filter/fields/SolidUuidField.tsx +0 -45
  172. package/dist/components/core/filter/fields/relations/SolidRelationManyToOneField.tsx +0 -80
  173. package/dist/components/core/form/SolidFormActionHeader.tsx +0 -216
  174. package/dist/components/core/form/SolidFormLayouts.tsx +0 -104
  175. package/dist/components/core/form/SolidFormUserViewLayout.tsx +0 -85
  176. package/dist/components/core/form/SolidFormView.tsx +0 -1129
  177. package/dist/components/core/form/fields/ISolidField.tsx +0 -69
  178. package/dist/components/core/form/fields/SolidBooleanField.tsx +0 -269
  179. package/dist/components/core/form/fields/SolidDateField.tsx +0 -153
  180. package/dist/components/core/form/fields/SolidDateTimeField.tsx +0 -154
  181. package/dist/components/core/form/fields/SolidDecimalField.tsx +0 -155
  182. package/dist/components/core/form/fields/SolidEmailField.tsx +0 -168
  183. package/dist/components/core/form/fields/SolidIntegerField.tsx +0 -158
  184. package/dist/components/core/form/fields/SolidJsonField.tsx +0 -173
  185. package/dist/components/core/form/fields/SolidLongTextField.tsx +0 -161
  186. package/dist/components/core/form/fields/SolidMediaMultipleField.tsx +0 -639
  187. package/dist/components/core/form/fields/SolidMediaSingleField.tsx +0 -522
  188. package/dist/components/core/form/fields/SolidPasswordField.tsx +0 -187
  189. package/dist/components/core/form/fields/SolidRelationField.tsx +0 -54
  190. package/dist/components/core/form/fields/SolidRichTextField.tsx +0 -177
  191. package/dist/components/core/form/fields/SolidSelectionDynamicField.tsx +0 -204
  192. package/dist/components/core/form/fields/SolidSelectionStaticField.tsx +0 -272
  193. package/dist/components/core/form/fields/SolidShortTextField.tsx +0 -208
  194. package/dist/components/core/form/fields/SolidTimeField.tsx +0 -147
  195. package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.tsx +0 -309
  196. package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.tsx +0 -291
  197. package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.tsx +0 -311
  198. package/dist/components/core/form/fields/relations/widgets/helpers/InlineRelationEntityDialog.tsx +0 -33
  199. package/dist/components/core/form/fields/relations/widgets/helpers/useRelationEntityHandler.ts +0 -64
  200. package/dist/components/core/form/fields/widgets/SolidRelationFieldAvatarFormWidget.tsx +0 -46
  201. package/dist/components/core/form/widgets/CustomHtml.tsx +0 -19
  202. package/dist/components/core/kanban/KanbanBoard.tsx +0 -131
  203. package/dist/components/core/kanban/KanbanCard.tsx +0 -255
  204. package/dist/components/core/kanban/KanbanColumn.tsx +0 -139
  205. package/dist/components/core/kanban/KanbanUserViewLayout.tsx +0 -85
  206. package/dist/components/core/kanban/SolidKanbanView.tsx +0 -803
  207. package/dist/components/core/kanban/SolidKanbanViewConfigure.tsx +0 -146
  208. package/dist/components/core/kanban/SolidKanbanViewFields.tsx +0 -164
  209. package/dist/components/core/kanban/SolidManyToOneFilterElement.tsx +0 -59
  210. package/dist/components/core/kanban/SolidSelectionDynamicFilterElement.tsx +0 -50
  211. package/dist/components/core/kanban/SolidSelectionStaticFilterElement.tsx +0 -32
  212. package/dist/components/core/kanban/SolidVarInputsFilterElement.tsx +0 -184
  213. package/dist/components/core/kanban/kanban-fields/SolidBigintKanbanField.tsx +0 -9
  214. package/dist/components/core/kanban/kanban-fields/SolidBooleanKanbanField.tsx +0 -13
  215. package/dist/components/core/kanban/kanban-fields/SolidComputedKanbanField.tsx +0 -23
  216. package/dist/components/core/kanban/kanban-fields/SolidDateKanbanField.tsx +0 -14
  217. package/dist/components/core/kanban/kanban-fields/SolidDatetimeKanbanField.tsx +0 -13
  218. package/dist/components/core/kanban/kanban-fields/SolidDecimalKanbanField.tsx +0 -9
  219. package/dist/components/core/kanban/kanban-fields/SolidExternalIdKanbanField.tsx +0 -12
  220. package/dist/components/core/kanban/kanban-fields/SolidFloatKanbanField.tsx +0 -9
  221. package/dist/components/core/kanban/kanban-fields/SolidIdKanbanField.tsx +0 -14
  222. package/dist/components/core/kanban/kanban-fields/SolidIntKanbanField.tsx +0 -20
  223. package/dist/components/core/kanban/kanban-fields/SolidLongTextKanbanField.tsx +0 -9
  224. package/dist/components/core/kanban/kanban-fields/SolidMediaMultipleKanbanField.tsx +0 -136
  225. package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.tsx +0 -158
  226. package/dist/components/core/kanban/kanban-fields/SolidRelationKanbanField.tsx +0 -13
  227. package/dist/components/core/kanban/kanban-fields/SolidRichTextKanbanField.tsx +0 -9
  228. package/dist/components/core/kanban/kanban-fields/SolidSelectionDynamicKanbanField.tsx +0 -13
  229. package/dist/components/core/kanban/kanban-fields/SolidSelectionStaticKanbanField.tsx +0 -14
  230. package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.tsx +0 -121
  231. package/dist/components/core/kanban/kanban-fields/SolidTimeKanbanField.tsx +0 -12
  232. package/dist/components/core/kanban/kanban-fields/SolidUuidKanbanField.tsx +0 -13
  233. package/dist/components/core/kanban/kanban-fields/relations/SolidRelationManyToOneKanbanField.tsx +0 -16
  234. package/dist/components/core/list/ListViewRowActionPopup.tsx +0 -42
  235. package/dist/components/core/list/SolidEmptyListViewPlaceholder.tsx +0 -41
  236. package/dist/components/core/list/SolidListColumnSelector.tsx +0 -167
  237. package/dist/components/core/list/SolidListView.tsx +0 -981
  238. package/dist/components/core/list/SolidListViewColumn.tsx +0 -165
  239. package/dist/components/core/list/SolidListViewConfigure.tsx +0 -198
  240. package/dist/components/core/list/SolidListViewShimmerLoading.tsx +0 -77
  241. package/dist/components/core/list/SolidListingHeader.tsx +0 -42
  242. package/dist/components/core/list/SolidManyToOneFilterElement.tsx +0 -59
  243. package/dist/components/core/list/SolidSelectionDynamicFilterElement.tsx +0 -50
  244. package/dist/components/core/list/SolidSelectionStaticFilterElement.tsx +0 -32
  245. package/dist/components/core/list/SolidTableRowCell.tsx +0 -12
  246. package/dist/components/core/list/SolidVarInputsFilterElement.tsx +0 -184
  247. package/dist/components/core/list/columns/SolidBigintColumn.tsx +0 -9
  248. package/dist/components/core/list/columns/SolidBooleanColumn.tsx +0 -89
  249. package/dist/components/core/list/columns/SolidComputedColumn.tsx +0 -23
  250. package/dist/components/core/list/columns/SolidDateColumn.tsx +0 -90
  251. package/dist/components/core/list/columns/SolidDatetimeColumn.tsx +0 -79
  252. package/dist/components/core/list/columns/SolidDecimalColumn.tsx +0 -9
  253. package/dist/components/core/list/columns/SolidExternalIdColumn.tsx +0 -80
  254. package/dist/components/core/list/columns/SolidFloatColumn.tsx +0 -9
  255. package/dist/components/core/list/columns/SolidIdColumn.tsx +0 -79
  256. package/dist/components/core/list/columns/SolidIntColumn.tsx +0 -87
  257. package/dist/components/core/list/columns/SolidLongTextColumn.tsx +0 -9
  258. package/dist/components/core/list/columns/SolidMediaMultipleColumn.tsx +0 -100
  259. package/dist/components/core/list/columns/SolidMediaSingleColumn.tsx +0 -98
  260. package/dist/components/core/list/columns/SolidRelationColumn.tsx +0 -20
  261. package/dist/components/core/list/columns/SolidRichTextColumn.tsx +0 -9
  262. package/dist/components/core/list/columns/SolidSelectionDynamicColumn.tsx +0 -80
  263. package/dist/components/core/list/columns/SolidSelectionStaticColumn.tsx +0 -81
  264. package/dist/components/core/list/columns/SolidShortTextColumn.tsx +0 -103
  265. package/dist/components/core/list/columns/SolidTimeColumn.tsx +0 -78
  266. package/dist/components/core/list/columns/SolidUuidColumn.tsx +0 -79
  267. package/dist/components/core/list/columns/relations/SolidRelationManyToManyColumn.tsx +0 -110
  268. package/dist/components/core/list/columns/relations/SolidRelationManyToOneColumn.tsx +0 -95
  269. package/dist/components/core/list/columns/relations/SolidRelationOneToManyColumn.tsx +0 -111
  270. package/dist/components/core/list/widgets/SolidRelationAvatarWidget.tsx +0 -89
  271. package/dist/components/core/list/widgets/SolidShortTextAvatarWidget.tsx +0 -58
  272. package/dist/components/core/list/widgets/SolidShortTextFieldImageRenderModeWidget.tsx +0 -21
  273. package/dist/components/core/model/CreateModel.tsx +0 -476
  274. package/dist/components/core/model/FieldMetaData.tsx +0 -193
  275. package/dist/components/core/model/FieldMetaDataForm.tsx +0 -3048
  276. package/dist/components/core/model/FieldSelector.tsx +0 -62
  277. package/dist/components/core/model/ModelListViewData.tsx +0 -383
  278. package/dist/components/core/model/ModelMetaData.tsx +0 -840
  279. package/dist/components/core/module/CreateModule.tsx +0 -620
  280. package/dist/components/core/module/ModuleListViewData.tsx +0 -429
  281. package/dist/components/core/users/CreateUser.tsx +0 -436
  282. package/dist/components/core/users/CreateUserRole.tsx +0 -211
  283. package/dist/components/core/users/UserListView.tsx +0 -374
  284. package/dist/components/layout/AdminLayout.tsx +0 -62
  285. package/dist/components/layout/AdminSidebar.tsx +0 -65
  286. package/dist/components/layout/AppConfig.tsx +0 -104
  287. package/dist/components/layout/AppSidebar.tsx +0 -225
  288. package/dist/components/layout/ButtonLoader.tsx +0 -7
  289. package/dist/components/layout/CustomPagination.tsx +0 -55
  290. package/dist/components/layout/DashboardHeader.tsx +0 -89
  291. package/dist/components/layout/FilterMenu.tsx +0 -122
  292. package/dist/components/layout/Footer.tsx +0 -13
  293. package/dist/components/layout/GlobalSearch.tsx +0 -37
  294. package/dist/components/layout/Header.tsx +0 -8
  295. package/dist/components/layout/Layout.tsx +0 -136
  296. package/dist/components/layout/ListingHeader.tsx +0 -204
  297. package/dist/components/layout/Loader.tsx +0 -16
  298. package/dist/components/layout/UserSidebar.tsx +0 -53
  299. package/dist/components/layout/context/layoutcontext.tsx +0 -52
  300. package/dist/components/layout/navbar-one.tsx +0 -258
  301. package/dist/components/layout/navbar-two-menu.tsx +0 -73
  302. package/dist/components/layout/navbar-two.tsx +0 -37
  303. package/dist/components/layout/user-profile-menu.tsx +0 -120
  304. package/dist/components/layout/user-profile.tsx +0 -7
  305. package/dist/components/modelsComponents/filterIcon.tsx +0 -9
  306. package/dist/components/tables/DemoData.tsx +0 -318
  307. package/dist/components/tables/DynamicTable.tsx +0 -56
  308. package/dist/components/tables/ListViewTable.tsx +0 -156
  309. package/dist/helpers/AppTitle.tsx +0 -12
  310. package/dist/helpers/ToastContainer.tsx +0 -93
  311. package/dist/helpers/authHeader.ts +0 -20
  312. package/dist/helpers/countries.tsx +0 -260
  313. package/dist/helpers/downloadMediaFile.tsx +0 -19
  314. package/dist/helpers/getAcceptedFileTypes.tsx +0 -22
  315. package/dist/helpers/getRandomColors.tsx +0 -68
  316. package/dist/helpers/helpers.ts +0 -40
  317. package/dist/helpers/menu.tsx +0 -670
  318. package/dist/helpers/permissions.ts +0 -19
  319. package/dist/helpers/registry.ts +0 -173
  320. package/dist/helpers/revalidate.ts +0 -7
  321. package/dist/index.ts +0 -642
  322. package/dist/nextAuth/authProviders.tsx +0 -221
  323. package/dist/nextAuth/refreshAccessToken.tsx +0 -27
  324. package/dist/redux/api/articleApi.ts +0 -55
  325. package/dist/redux/api/authApi.ts +0 -131
  326. package/dist/redux/api/automationApi.ts +0 -55
  327. package/dist/redux/api/categoryApi.tsx +0 -46
  328. package/dist/redux/api/cityApi.tsx +0 -56
  329. package/dist/redux/api/cmsBannerImageApi.tsx +0 -55
  330. package/dist/redux/api/countryApi.tsx +0 -56
  331. package/dist/redux/api/fetchBaseQuery.tsx +0 -15
  332. package/dist/redux/api/fieldApi.ts +0 -78
  333. package/dist/redux/api/mediaApi.ts +0 -55
  334. package/dist/redux/api/mediaStorageProviderApi.ts +0 -55
  335. package/dist/redux/api/menuApi.tsx +0 -55
  336. package/dist/redux/api/menuItemsApi.tsx +0 -56
  337. package/dist/redux/api/modelApi.ts +0 -77
  338. package/dist/redux/api/moduleApi.ts +0 -72
  339. package/dist/redux/api/orderAttributeApi.tsx +0 -37
  340. package/dist/redux/api/permissionApi.ts +0 -32
  341. package/dist/redux/api/pincodeApi.tsx +0 -56
  342. package/dist/redux/api/productData.tsx +0 -87
  343. package/dist/redux/api/radixExtraModelAttributeApi.tsx +0 -37
  344. package/dist/redux/api/radixModelMetadataApi.tsx +0 -62
  345. package/dist/redux/api/radixModelsApi.tsx +0 -64
  346. package/dist/redux/api/ratingApi.ts +0 -55
  347. package/dist/redux/api/reviewApi.ts +0 -55
  348. package/dist/redux/api/roleApi.ts +0 -58
  349. package/dist/redux/api/solidActionApi.ts +0 -66
  350. package/dist/redux/api/solidChatterMessageApi.ts +0 -30
  351. package/dist/redux/api/solidEntityApi.tsx +0 -110
  352. package/dist/redux/api/solidMenuApi.ts +0 -71
  353. package/dist/redux/api/solidSettingsApi.tsx +0 -55
  354. package/dist/redux/api/solidViewApi.ts +0 -73
  355. package/dist/redux/api/stateApi.tsx +0 -56
  356. package/dist/redux/api/tagApi.ts +0 -55
  357. package/dist/redux/api/tagGroupApi.tsx +0 -55
  358. package/dist/redux/api/testApi.ts +0 -21
  359. package/dist/redux/api/userApi.ts +0 -120
  360. package/dist/redux/features/authSlice.ts +0 -19
  361. package/dist/redux/features/dataViewSlice.ts +0 -26
  362. package/dist/redux/features/navbarSlice.ts +0 -21
  363. package/dist/redux/features/popupSlice.ts +0 -27
  364. package/dist/redux/features/themeSlice.ts +0 -17
  365. package/dist/redux/features/userSlice.ts +0 -28
  366. package/src/components/CustomFooter/CustomFooter.tsx +0 -264
  367. package/src/components/CustomFooter/FooterForm.tsx +0 -19
  368. package/src/components/CustomHeader/CallIcon.tsx +0 -20
  369. package/src/components/CustomHeader/CustomDropdown.tsx +0 -175
  370. package/src/components/CustomHeader/CustomHeader.tsx +0 -64
  371. package/src/components/CustomHeader/EmailIcon.tsx +0 -12
  372. package/src/components/CustomHeader/HeaderCart.tsx +0 -15
  373. package/src/components/CustomHeader/productNavData.tsx +0 -180
  374. package/src/components/FormView/DetailsViews.tsx +0 -46
  375. package/src/components/FormView/OrderAddressDetails.tsx +0 -70
  376. package/src/components/FormView/OrderPaymentDetails.tsx +0 -18
  377. package/src/components/FormView/OrderTableDetails.tsx +0 -36
  378. package/src/components/FormView/OrderedProductDetail.tsx +0 -22
  379. package/src/components/Svg/ExcelSvg.tsx +0 -15
  380. package/src/components/Svg/FileSvg.tsx +0 -19
  381. package/src/components/Svg/PDFSvg.tsx +0 -15
  382. package/src/components/Svg/RightArrowSvg.tsx +0 -9
  383. package/src/components/Tag/CustomTag.tsx +0 -50
  384. package/src/components/auth/AuthLayout.tsx +0 -140
  385. package/src/components/auth/ForgotPasswordThankYou.tsx +0 -48
  386. package/src/components/auth/GoogleAuthChecking.tsx +0 -60
  387. package/src/components/auth/Login.tsx +0 -155
  388. package/src/components/auth/Register.tsx +0 -239
  389. package/src/components/auth/SolidChangeForcePassword.tsx +0 -145
  390. package/src/components/auth/SolidForgotPassword.tsx +0 -125
  391. package/src/components/auth/SolidInitialLoginOtp.tsx +0 -152
  392. package/src/components/auth/SolidInitiateRegisterOtp.tsx +0 -141
  393. package/src/components/auth/SolidLogin.tsx +0 -275
  394. package/src/components/auth/SolidOTPVerify.tsx +0 -132
  395. package/src/components/auth/SolidRegister.tsx +0 -348
  396. package/src/components/auth/SolidResetPassword.tsx +0 -162
  397. package/src/components/common/AuthBanner.tsx +0 -41
  398. package/src/components/common/AutoCompleteField.tsx +0 -76
  399. package/src/components/common/BackButton.tsx +0 -27
  400. package/src/components/common/CancelButton.tsx +0 -48
  401. package/src/components/common/CodeEditor.tsx +0 -26
  402. package/src/components/common/CreateButton.tsx +0 -17
  403. package/src/components/common/DropzonePlaceholder.tsx +0 -31
  404. package/src/components/common/DropzoneUpload.tsx +0 -11
  405. package/src/components/common/FileReaderExt.tsx +0 -20
  406. package/src/components/common/GeneralSettings.tsx +0 -414
  407. package/src/components/common/HeaderDynamicTitles.tsx +0 -13
  408. package/src/components/common/MarkdownViewer.tsx +0 -16
  409. package/src/components/common/MultipleSelectAutoCompleteField.tsx +0 -62
  410. package/src/components/common/NotFound.tsx +0 -22
  411. package/src/components/common/SingleSelectAutoCompleteField.tsx +0 -67
  412. package/src/components/common/SocialMediaLogin.tsx +0 -53
  413. package/src/components/common/SolidAdmin.tsx +0 -7
  414. package/src/components/common/SolidBreadcrumb.tsx +0 -105
  415. package/src/components/common/SolidFormHeader.tsx +0 -22
  416. package/src/components/common/SolidFormStepper.tsx +0 -213
  417. package/src/components/common/SolidModuleHome.tsx +0 -61
  418. package/src/components/common/SolidThemeLink.tsx +0 -5
  419. package/src/components/common/SolidThemeProvider.tsx +0 -44
  420. package/src/components/common/error.tsx +0 -30
  421. package/src/components/core/chatter/SolidChatter.tsx +0 -252
  422. package/src/components/core/chatter/SolidChatterDateDivider.tsx +0 -16
  423. package/src/components/core/chatter/SolidChatterHeader.tsx +0 -178
  424. package/src/components/core/chatter/SolidChatterMessageBox.tsx +0 -165
  425. package/src/components/core/chatter/SolidMessageComposer.tsx +0 -145
  426. package/src/components/core/common/FilterComponent.tsx +0 -434
  427. package/src/components/core/common/LoadDynamicJsxComponent.tsx +0 -70
  428. package/src/components/core/common/SolidCreateButton.tsx +0 -17
  429. package/src/components/core/common/SolidGlobalSearchElement.tsx +0 -843
  430. package/src/components/core/common/SolidLayoutViews.tsx +0 -87
  431. package/src/components/core/common/SolidListViewOptions.tsx +0 -31
  432. package/src/components/core/common/SolidSaveCustomFilterForm.tsx +0 -74
  433. package/src/components/core/common/SolidSearchBox.tsx +0 -17
  434. package/src/components/core/common/SolidViewLayoutManager.ts +0 -85
  435. package/src/components/core/extension/solid-core/emailTemplate/emailFormTypeChangeHandler.ts +0 -18
  436. package/src/components/core/extension/solid-core/emailTemplate/emailFormTypeLoad.ts +0 -18
  437. package/src/components/core/extension/solid-core/modelMetadata/list/GenerateModelCodeRowAction.tsx +0 -59
  438. package/src/components/core/extension/solid-core/moduleMetadata/list/GenerateModuleCodeRowAction.tsx +0 -38
  439. package/src/components/core/extension/solid-core/roleMetadata/RolePermissionsManyToManyFieldWidget.tsx +0 -123
  440. package/src/components/core/field/FieldListViewData.tsx +0 -312
  441. package/src/components/core/filter/SolidFilterFields.tsx +0 -128
  442. package/src/components/core/filter/SolidManyToOneFilterElement.tsx +0 -60
  443. package/src/components/core/filter/SolidSelectionDynamicFilterElement.tsx +0 -50
  444. package/src/components/core/filter/SolidSelectionStaticFilterElement.tsx +0 -32
  445. package/src/components/core/filter/SolidVarInputsFilterElement.tsx +0 -180
  446. package/src/components/core/filter/fields/SolidBigintField.tsx +0 -9
  447. package/src/components/core/filter/fields/SolidBooleanField.tsx +0 -50
  448. package/src/components/core/filter/fields/SolidComputedField.tsx +0 -23
  449. package/src/components/core/filter/fields/SolidDateField.tsx +0 -58
  450. package/src/components/core/filter/fields/SolidDatetimeField.tsx +0 -51
  451. package/src/components/core/filter/fields/SolidDecimalField.tsx +0 -9
  452. package/src/components/core/filter/fields/SolidExternalIdField.tsx +0 -46
  453. package/src/components/core/filter/fields/SolidFloatField.tsx +0 -9
  454. package/src/components/core/filter/fields/SolidIdField.tsx +0 -46
  455. package/src/components/core/filter/fields/SolidIntField.tsx +0 -56
  456. package/src/components/core/filter/fields/SolidLongTextField.tsx +0 -9
  457. package/src/components/core/filter/fields/SolidMediaMultipleField.tsx +0 -54
  458. package/src/components/core/filter/fields/SolidMediaSingleField.tsx +0 -56
  459. package/src/components/core/filter/fields/SolidRelationField.tsx +0 -13
  460. package/src/components/core/filter/fields/SolidRichTextField.tsx +0 -9
  461. package/src/components/core/filter/fields/SolidSelectionDynamicField.tsx +0 -46
  462. package/src/components/core/filter/fields/SolidSelectionStaticField.tsx +0 -48
  463. package/src/components/core/filter/fields/SolidShortTextField.tsx +0 -54
  464. package/src/components/core/filter/fields/SolidTimeField.tsx +0 -45
  465. package/src/components/core/filter/fields/SolidUuidField.tsx +0 -45
  466. package/src/components/core/filter/fields/relations/SolidRelationManyToOneField.tsx +0 -80
  467. package/src/components/core/form/SolidFormActionHeader.tsx +0 -216
  468. package/src/components/core/form/SolidFormLayouts.tsx +0 -104
  469. package/src/components/core/form/SolidFormUserViewLayout.tsx +0 -85
  470. package/src/components/core/form/SolidFormView.tsx +0 -1129
  471. package/src/components/core/form/fields/ISolidField.tsx +0 -69
  472. package/src/components/core/form/fields/SolidBooleanField.tsx +0 -269
  473. package/src/components/core/form/fields/SolidDateField.tsx +0 -153
  474. package/src/components/core/form/fields/SolidDateTimeField.tsx +0 -154
  475. package/src/components/core/form/fields/SolidDecimalField.tsx +0 -155
  476. package/src/components/core/form/fields/SolidEmailField.tsx +0 -168
  477. package/src/components/core/form/fields/SolidIntegerField.tsx +0 -158
  478. package/src/components/core/form/fields/SolidJsonField.tsx +0 -173
  479. package/src/components/core/form/fields/SolidLongTextField.tsx +0 -161
  480. package/src/components/core/form/fields/SolidMediaMultipleField.tsx +0 -639
  481. package/src/components/core/form/fields/SolidMediaSingleField.tsx +0 -522
  482. package/src/components/core/form/fields/SolidPasswordField.tsx +0 -187
  483. package/src/components/core/form/fields/SolidRelationField.tsx +0 -54
  484. package/src/components/core/form/fields/SolidRichTextField.tsx +0 -177
  485. package/src/components/core/form/fields/SolidSelectionDynamicField.tsx +0 -204
  486. package/src/components/core/form/fields/SolidSelectionStaticField.tsx +0 -272
  487. package/src/components/core/form/fields/SolidShortTextField.tsx +0 -208
  488. package/src/components/core/form/fields/SolidTimeField.tsx +0 -147
  489. package/src/components/core/form/fields/relations/SolidRelationManyToManyField.tsx +0 -309
  490. package/src/components/core/form/fields/relations/SolidRelationManyToOneField.tsx +0 -291
  491. package/src/components/core/form/fields/relations/SolidRelationOneToManyField.tsx +0 -311
  492. package/src/components/core/form/fields/relations/widgets/helpers/InlineRelationEntityDialog.tsx +0 -33
  493. package/src/components/core/form/fields/relations/widgets/helpers/useRelationEntityHandler.ts +0 -64
  494. package/src/components/core/form/fields/widgets/SolidRelationFieldAvatarFormWidget.tsx +0 -46
  495. package/src/components/core/form/widgets/CustomHtml.tsx +0 -19
  496. package/src/components/core/kanban/KanbanBoard.tsx +0 -131
  497. package/src/components/core/kanban/KanbanCard.tsx +0 -255
  498. package/src/components/core/kanban/KanbanColumn.tsx +0 -139
  499. package/src/components/core/kanban/KanbanUserViewLayout.tsx +0 -85
  500. package/src/components/core/kanban/SolidKanbanView.tsx +0 -803
  501. package/src/components/core/kanban/SolidKanbanViewConfigure.tsx +0 -146
  502. package/src/components/core/kanban/SolidKanbanViewFields.tsx +0 -164
  503. package/src/components/core/kanban/SolidManyToOneFilterElement.tsx +0 -59
  504. package/src/components/core/kanban/SolidSelectionDynamicFilterElement.tsx +0 -50
  505. package/src/components/core/kanban/SolidSelectionStaticFilterElement.tsx +0 -32
  506. package/src/components/core/kanban/SolidVarInputsFilterElement.tsx +0 -184
  507. package/src/components/core/kanban/kanban-fields/SolidBigintKanbanField.tsx +0 -9
  508. package/src/components/core/kanban/kanban-fields/SolidBooleanKanbanField.tsx +0 -13
  509. package/src/components/core/kanban/kanban-fields/SolidComputedKanbanField.tsx +0 -23
  510. package/src/components/core/kanban/kanban-fields/SolidDateKanbanField.tsx +0 -14
  511. package/src/components/core/kanban/kanban-fields/SolidDatetimeKanbanField.tsx +0 -13
  512. package/src/components/core/kanban/kanban-fields/SolidDecimalKanbanField.tsx +0 -9
  513. package/src/components/core/kanban/kanban-fields/SolidExternalIdKanbanField.tsx +0 -12
  514. package/src/components/core/kanban/kanban-fields/SolidFloatKanbanField.tsx +0 -9
  515. package/src/components/core/kanban/kanban-fields/SolidIdKanbanField.tsx +0 -14
  516. package/src/components/core/kanban/kanban-fields/SolidIntKanbanField.tsx +0 -20
  517. package/src/components/core/kanban/kanban-fields/SolidLongTextKanbanField.tsx +0 -9
  518. package/src/components/core/kanban/kanban-fields/SolidMediaMultipleKanbanField.tsx +0 -136
  519. package/src/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.tsx +0 -158
  520. package/src/components/core/kanban/kanban-fields/SolidRelationKanbanField.tsx +0 -13
  521. package/src/components/core/kanban/kanban-fields/SolidRichTextKanbanField.tsx +0 -9
  522. package/src/components/core/kanban/kanban-fields/SolidSelectionDynamicKanbanField.tsx +0 -13
  523. package/src/components/core/kanban/kanban-fields/SolidSelectionStaticKanbanField.tsx +0 -14
  524. package/src/components/core/kanban/kanban-fields/SolidShortTextKanbanField.tsx +0 -121
  525. package/src/components/core/kanban/kanban-fields/SolidTimeKanbanField.tsx +0 -12
  526. package/src/components/core/kanban/kanban-fields/SolidUuidKanbanField.tsx +0 -13
  527. package/src/components/core/kanban/kanban-fields/relations/SolidRelationManyToOneKanbanField.tsx +0 -16
  528. package/src/components/core/list/ListViewRowActionPopup.tsx +0 -42
  529. package/src/components/core/list/SolidEmptyListViewPlaceholder.tsx +0 -41
  530. package/src/components/core/list/SolidListColumnSelector.tsx +0 -167
  531. package/src/components/core/list/SolidListView.tsx +0 -981
  532. package/src/components/core/list/SolidListViewColumn.tsx +0 -165
  533. package/src/components/core/list/SolidListViewConfigure.tsx +0 -198
  534. package/src/components/core/list/SolidListViewShimmerLoading.tsx +0 -77
  535. package/src/components/core/list/SolidListingHeader.tsx +0 -42
  536. package/src/components/core/list/SolidManyToOneFilterElement.tsx +0 -59
  537. package/src/components/core/list/SolidSelectionDynamicFilterElement.tsx +0 -50
  538. package/src/components/core/list/SolidSelectionStaticFilterElement.tsx +0 -32
  539. package/src/components/core/list/SolidTableRowCell.tsx +0 -12
  540. package/src/components/core/list/SolidVarInputsFilterElement.tsx +0 -184
  541. package/src/components/core/list/columns/SolidBigintColumn.tsx +0 -9
  542. package/src/components/core/list/columns/SolidBooleanColumn.tsx +0 -89
  543. package/src/components/core/list/columns/SolidComputedColumn.tsx +0 -23
  544. package/src/components/core/list/columns/SolidDateColumn.tsx +0 -90
  545. package/src/components/core/list/columns/SolidDatetimeColumn.tsx +0 -79
  546. package/src/components/core/list/columns/SolidDecimalColumn.tsx +0 -9
  547. package/src/components/core/list/columns/SolidExternalIdColumn.tsx +0 -80
  548. package/src/components/core/list/columns/SolidFloatColumn.tsx +0 -9
  549. package/src/components/core/list/columns/SolidIdColumn.tsx +0 -79
  550. package/src/components/core/list/columns/SolidIntColumn.tsx +0 -87
  551. package/src/components/core/list/columns/SolidLongTextColumn.tsx +0 -9
  552. package/src/components/core/list/columns/SolidMediaMultipleColumn.tsx +0 -100
  553. package/src/components/core/list/columns/SolidMediaSingleColumn.tsx +0 -98
  554. package/src/components/core/list/columns/SolidRelationColumn.tsx +0 -20
  555. package/src/components/core/list/columns/SolidRichTextColumn.tsx +0 -9
  556. package/src/components/core/list/columns/SolidSelectionDynamicColumn.tsx +0 -80
  557. package/src/components/core/list/columns/SolidSelectionStaticColumn.tsx +0 -81
  558. package/src/components/core/list/columns/SolidShortTextColumn.tsx +0 -103
  559. package/src/components/core/list/columns/SolidTimeColumn.tsx +0 -78
  560. package/src/components/core/list/columns/SolidUuidColumn.tsx +0 -79
  561. package/src/components/core/list/columns/relations/SolidRelationManyToManyColumn.tsx +0 -110
  562. package/src/components/core/list/columns/relations/SolidRelationManyToOneColumn.tsx +0 -95
  563. package/src/components/core/list/columns/relations/SolidRelationOneToManyColumn.tsx +0 -111
  564. package/src/components/core/list/widgets/SolidRelationAvatarWidget.tsx +0 -89
  565. package/src/components/core/list/widgets/SolidShortTextAvatarWidget.tsx +0 -58
  566. package/src/components/core/list/widgets/SolidShortTextFieldImageRenderModeWidget.tsx +0 -21
  567. package/src/components/core/model/CreateModel.tsx +0 -476
  568. package/src/components/core/model/FieldMetaData.tsx +0 -193
  569. package/src/components/core/model/FieldMetaDataForm.tsx +0 -3048
  570. package/src/components/core/model/FieldSelector.tsx +0 -62
  571. package/src/components/core/model/ModelListViewData.tsx +0 -383
  572. package/src/components/core/model/ModelMetaData.tsx +0 -840
  573. package/src/components/core/module/CreateModule.tsx +0 -620
  574. package/src/components/core/module/ModuleListViewData.tsx +0 -429
  575. package/src/components/core/users/CreateUser.tsx +0 -436
  576. package/src/components/core/users/CreateUserRole.tsx +0 -211
  577. package/src/components/core/users/UserListView.tsx +0 -374
  578. package/src/components/layout/AdminLayout.tsx +0 -62
  579. package/src/components/layout/AdminSidebar.tsx +0 -65
  580. package/src/components/layout/AppConfig.tsx +0 -104
  581. package/src/components/layout/AppSidebar.tsx +0 -225
  582. package/src/components/layout/ButtonLoader.tsx +0 -7
  583. package/src/components/layout/CustomPagination.tsx +0 -55
  584. package/src/components/layout/DashboardHeader.tsx +0 -89
  585. package/src/components/layout/FilterMenu.tsx +0 -122
  586. package/src/components/layout/Footer.tsx +0 -13
  587. package/src/components/layout/GlobalSearch.tsx +0 -37
  588. package/src/components/layout/Header.tsx +0 -8
  589. package/src/components/layout/Layout.tsx +0 -136
  590. package/src/components/layout/ListingHeader.tsx +0 -204
  591. package/src/components/layout/Loader.tsx +0 -16
  592. package/src/components/layout/UserSidebar.tsx +0 -53
  593. package/src/components/layout/context/layoutcontext.tsx +0 -52
  594. package/src/components/layout/navbar-one.tsx +0 -258
  595. package/src/components/layout/navbar-two-menu.tsx +0 -73
  596. package/src/components/layout/navbar-two.tsx +0 -37
  597. package/src/components/layout/user-profile-menu.tsx +0 -120
  598. package/src/components/layout/user-profile.tsx +0 -7
  599. package/src/components/modelsComponents/filterIcon.tsx +0 -9
  600. package/src/components/tables/DemoData.tsx +0 -318
  601. package/src/components/tables/DynamicTable.tsx +0 -56
  602. package/src/components/tables/ListViewTable.tsx +0 -156
  603. package/src/helpers/AppTitle.tsx +0 -12
  604. package/src/helpers/ToastContainer.tsx +0 -93
  605. package/src/helpers/authHeader.ts +0 -20
  606. package/src/helpers/countries.tsx +0 -260
  607. package/src/helpers/downloadMediaFile.tsx +0 -19
  608. package/src/helpers/getAcceptedFileTypes.tsx +0 -22
  609. package/src/helpers/getRandomColors.tsx +0 -68
  610. package/src/helpers/helpers.ts +0 -40
  611. package/src/helpers/menu.tsx +0 -670
  612. package/src/helpers/permissions.ts +0 -19
  613. package/src/helpers/registry.ts +0 -173
  614. package/src/helpers/revalidate.ts +0 -7
  615. package/src/index.ts +0 -642
  616. package/src/nextAuth/authProviders.tsx +0 -221
  617. package/src/nextAuth/refreshAccessToken.tsx +0 -27
  618. package/src/redux/api/articleApi.ts +0 -55
  619. package/src/redux/api/authApi.ts +0 -131
  620. package/src/redux/api/automationApi.ts +0 -55
  621. package/src/redux/api/categoryApi.tsx +0 -46
  622. package/src/redux/api/cityApi.tsx +0 -56
  623. package/src/redux/api/cmsBannerImageApi.tsx +0 -55
  624. package/src/redux/api/countryApi.tsx +0 -56
  625. package/src/redux/api/fetchBaseQuery.tsx +0 -15
  626. package/src/redux/api/fieldApi.ts +0 -78
  627. package/src/redux/api/mediaApi.ts +0 -55
  628. package/src/redux/api/mediaStorageProviderApi.ts +0 -55
  629. package/src/redux/api/menuApi.tsx +0 -55
  630. package/src/redux/api/menuItemsApi.tsx +0 -56
  631. package/src/redux/api/modelApi.ts +0 -77
  632. package/src/redux/api/moduleApi.ts +0 -72
  633. package/src/redux/api/orderAttributeApi.tsx +0 -37
  634. package/src/redux/api/permissionApi.ts +0 -32
  635. package/src/redux/api/pincodeApi.tsx +0 -56
  636. package/src/redux/api/productData.tsx +0 -87
  637. package/src/redux/api/radixExtraModelAttributeApi.tsx +0 -37
  638. package/src/redux/api/radixModelMetadataApi.tsx +0 -62
  639. package/src/redux/api/radixModelsApi.tsx +0 -64
  640. package/src/redux/api/ratingApi.ts +0 -55
  641. package/src/redux/api/reviewApi.ts +0 -55
  642. package/src/redux/api/roleApi.ts +0 -58
  643. package/src/redux/api/solidActionApi.ts +0 -66
  644. package/src/redux/api/solidChatterMessageApi.ts +0 -30
  645. package/src/redux/api/solidEntityApi.tsx +0 -110
  646. package/src/redux/api/solidMenuApi.ts +0 -71
  647. package/src/redux/api/solidSettingsApi.tsx +0 -55
  648. package/src/redux/api/solidViewApi.ts +0 -73
  649. package/src/redux/api/stateApi.tsx +0 -56
  650. package/src/redux/api/tagApi.ts +0 -55
  651. package/src/redux/api/tagGroupApi.tsx +0 -55
  652. package/src/redux/api/testApi.ts +0 -21
  653. package/src/redux/api/userApi.ts +0 -120
  654. package/src/redux/features/authSlice.ts +0 -19
  655. package/src/redux/features/dataViewSlice.ts +0 -26
  656. package/src/redux/features/navbarSlice.ts +0 -21
  657. package/src/redux/features/popupSlice.ts +0 -27
  658. package/src/redux/features/themeSlice.ts +0 -17
  659. package/src/redux/features/userSlice.ts +0 -28
@@ -1,803 +0,0 @@
1
- // @ts-nocheck
2
-
3
- "use client";
4
- import { createPermission, deletePermission, updatePermission } from "@/helpers/permissions";
5
- import { createSolidEntityApi } from "@/redux/api/solidEntityApi";
6
- import { useGetSolidViewLayoutQuery } from "@/redux/api/solidViewApi";
7
- import { useLazyCheckIfPermissionExistsQuery } from "@/redux/api/userApi";
8
- import { DropResult } from "@hello-pangea/dnd";
9
- import Link from "next/link";
10
- import { FilterMatchMode } from "primereact/api";
11
- import { Button } from "primereact/button";
12
- import { Dialog } from "primereact/dialog";
13
- import qs from "qs";
14
- import { useEffect, useRef, useState } from "react";
15
- import { SolidCreateButton } from "../common/SolidCreateButton";
16
- import { SolidGlobalSearchElement } from "../common/SolidGlobalSearchElement";
17
- import KanbanBoard from "./KanbanBoard";
18
- import CompactImage from '../../../resources/images/layout/images/compact.png';
19
- import CozyImage from '../../../resources/images/layout/images/cozy.png';
20
- import ComfortableImage from '../../../resources/images/layout/images/comfortable.png';
21
- import ListImage from '../../../resources/images/layout/images/cozy.png';
22
- import KanbanImage from '../../../resources/images/layout/images/kanban.png';
23
- import { capitalize } from "lodash";
24
- import Lightbox from "yet-another-react-lightbox";
25
- import Counter from "yet-another-react-lightbox/plugins/counter";
26
- import Download from "yet-another-react-lightbox/plugins/download";
27
- import "yet-another-react-lightbox/styles.css";
28
- import "yet-another-react-lightbox/plugins/counter.css";
29
- import { useRouter, useSearchParams } from "next/navigation";
30
- import { SolidKanbanViewConfigure } from "./SolidKanbanViewConfigure";
31
- import { KanbanUserViewLayout } from "./KanbanUserViewLayout";
32
- import { useSelector } from "react-redux";
33
- import { queryObjectToQueryString, queryStringToQueryObject } from "../list/SolidListView";
34
-
35
-
36
- import { Toast } from "primereact/toast";
37
- import { useSelector } from "react-redux";
38
- import { queryObjectToQueryString, queryStringToQueryObject } from "../list/SolidListView";
39
-
40
-
41
-
42
- type SolidKanbanViewParams = {
43
- moduleName: string;
44
- modelName: string;
45
- embeded: boolean;
46
- };
47
-
48
-
49
- export const SolidKanbanView = (params: SolidKanbanViewParams) => {
50
- const { user } = useSelector((state: any) => state.auth);
51
-
52
- const solidGlobalSearchElementRef = useRef();
53
- const searchParams = useSearchParams().toString(); // Converts the query params to a string
54
- const router = useRouter();
55
- // TODO: The initial filter state will be created based on the fields which are present on this kanban view.
56
- const [filters, setFilters] = useState<any>();
57
- const [toPopulate, setToPopulate] = useState<string[]>([]);
58
- const [toPopulateMedia, setToPopulateMedia] = useState<string[]>([]);
59
- const [actionsAllowed, setActionsAllowed] = useState<string[]>([]);
60
- const [showGlobalSearchElement, setShowGlobalSearchElement] = useState<boolean>(false);
61
- const [showArchived, setShowArchived] = useState(false);
62
- const sizeOptions = [
63
- { label: 'Compact', value: 'small', image: CompactImage },
64
- { label: 'Cozy', value: 'normal', image: CozyImage },
65
- { label: 'Comfortable', value: 'large', image: ComfortableImage }
66
- ]
67
- const [size, setSize] = useState<string | any>(sizeOptions[1].value);
68
- const [viewModes, setViewModes] = useState<any>([]);
69
- const [groupByFieldName, setGroupByFieldName] = useState<string>("");
70
- const [groupedView, setGroupedView] = useState(true);
71
- const [triggerCheckIfPermissionExists] = useLazyCheckIfPermissionExistsQuery();
72
- const [openLightbox, setOpenLightbox] = useState(false);
73
- const [lightboxUrls, setLightboxUrls] = useState({});
74
- const [filterQueryString, setFilterQueryString] = useState<any>();
75
- const [isLayoutDialogVisible, setLayoutDialogVisible] = useState(false);
76
- const toast = useRef<Toast>(null);
77
-
78
- const pushFiltersToRouter = (filterQueryString: any) => {
79
- router.push(`?${filterQueryString}`, undefined, { shallow: true });
80
- };
81
-
82
- useEffect(() => {
83
- if (filterQueryString) {
84
- pushFiltersToRouter(filterQueryString);
85
- }
86
- }, [filterQueryString]);
87
-
88
-
89
-
90
- useEffect(() => {
91
- const fetchPermissions = async () => {
92
- if (params.modelName) {
93
- const permissionNames = [
94
- createPermission(params.modelName),
95
- deletePermission(params.modelName),
96
- updatePermission(params.modelName)
97
- ]
98
- const queryData = {
99
- permissionNames: permissionNames
100
- };
101
- const queryString = qs.stringify(queryData, {
102
- encodeValuesOnly: true
103
- });
104
- const response = await triggerCheckIfPermissionExists(queryString);
105
- setActionsAllowed(response.data.data);
106
- }
107
- };
108
- fetchPermissions();
109
- }, [params.modelName]);
110
-
111
- const isFilterApplied = filters ? true : false;
112
-
113
- // Create the RTK slices for this entity
114
- const entityApi = createSolidEntityApi(params.modelName);
115
- const {
116
- useCreateSolidEntityMutation,
117
- useDeleteMultipleSolidEntitiesMutation,
118
- useDeleteSolidEntityMutation,
119
- useGetSolidEntitiesQuery,
120
- useGetSolidEntityByIdQuery,
121
- useLazyGetSolidEntitiesQuery,
122
- useGetSolidKanbanEntitiesQuery,
123
- useLazyGetSolidKanbanEntitiesQuery,
124
- useLazyGetSolidEntityByIdQuery,
125
- usePrefetch,
126
- useUpdateSolidEntityMutation,
127
- usePatchUpdateSolidEntityMutation
128
- } = entityApi;
129
-
130
- // Get the kanban view layout & metadata first.
131
- const kanbanViewMetaDataQs = qs.stringify({ ...params, viewType: 'kanban' }, {
132
- encodeValuesOnly: true,
133
- });
134
- const [kanbanViewMetaData, setKanbanViewMetaData] = useState<any>({});
135
-
136
- const {
137
- data: solidKanbanViewMetaData,
138
- error: solidKanbanViewMetaDataError,
139
- isLoading: solidKanbanViewMetaDataIsLoading,
140
- isError: solidKanbanViewMetaDataIsError
141
- } = useGetSolidViewLayoutQuery(kanbanViewMetaDataQs);
142
-
143
-
144
-
145
- const initialFilterMethod = () => {
146
-
147
- const solidView = solidKanbanViewMetaData.data.solidView;
148
- const solidFieldsMetadata = solidKanbanViewMetaData.data.solidFieldsMetadata;
149
-
150
- const initialFilters: any = {};
151
- const toPopulate: string[] = [];
152
- const toPopulateMedia: string[] = [];
153
- function extractFields(node: any, result: any = []) {
154
- if (node.type === "field") {
155
- result.push(node);
156
- }
157
- if (node.children) {
158
- node.children.forEach((child: any) => extractFields(child, result));
159
- }
160
- return result;
161
- }
162
-
163
- const data = { /* Your JSON object here */ };
164
- const layoutFields = extractFields(solidView.layout);
165
-
166
- for (let i = 0; i < layoutFields.length; i++) {
167
- const column = layoutFields[i];
168
- const fieldMetadata = solidFieldsMetadata[column.attrs.name];
169
-
170
- // Form the initial filters after iterating over the columns and field metadata.
171
- if (['int', 'bigint', 'float', 'decimal'].includes(fieldMetadata.type)) {
172
- // initialFilters[column.attrs.name] = { operator: FilterOperator.OR, constraints: [{ value: null, matchMode: FilterMatchMode.EQUALS }] }
173
- initialFilters[column.attrs.name] = { value: null, matchMode: FilterMatchMode.EQUALS }
174
- }
175
- else if (['date', 'datetime', 'time', 'boolean'].includes(fieldMetadata.type)) {
176
- // initialFilters[column.attrs.name] = { operator: FilterOperator.OR, constraints: [{ value: null, matchMode: FilterMatchMode.DATE_IS }] }
177
- initialFilters[column.attrs.name] = { value: null, matchMode: FilterMatchMode.EQUALS }
178
- }
179
- else if (['relation', 'selectionStatic', 'selectionDynamic'].includes(fieldMetadata.type)) {
180
- initialFilters[column.attrs.name] = { value: null, matchMode: FilterMatchMode.IN }
181
- }
182
- else {
183
- // initialFilters[column.attrs.name] = { operator: FilterOperator.OR, constraints: [{ value: null, matchMode: FilterMatchMode.STARTS_WITH }] }
184
- initialFilters[column.attrs.name] = { value: null, matchMode: FilterMatchMode.STARTS_WITH }
185
- }
186
-
187
- if (column.attrs.name === 'id') {
188
- initialFilters[column.attrs.name] = { value: null, matchMode: FilterMatchMode.IN }
189
- }
190
-
191
- // Form the "toPopulate" array.
192
- if (fieldMetadata.type === 'relation' && fieldMetadata.relationType === 'many-to-one') {
193
- toPopulate.push(fieldMetadata.name);
194
- }
195
- if (fieldMetadata.type === 'mediaSingle' || fieldMetadata.type === 'mediaMultiple') {
196
- toPopulateMedia.push(fieldMetadata.name);
197
- }
198
- }
199
- // setFilters(initialFilters);
200
- const recordsInSwimlane = solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.recordsInSwimlane ? solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.recordsInSwimlane : 25;
201
- // setToPopulate(toPopulate);
202
- // setToPopulateMedia(toPopulateMedia);
203
- setRecordsInSwimlane(recordsInSwimlane);
204
- setToPopulate(toPopulate);
205
- setToPopulateMedia(toPopulateMedia);
206
- return { recordsInSwimlane, toPopulate, toPopulateMedia }
207
- }
208
-
209
-
210
- // Initial Filter data
211
- useEffect(() => {
212
-
213
- if (solidKanbanViewMetaData) {
214
- setKanbanViewMetaData(solidKanbanViewMetaData);
215
- // initialFilterMethod();
216
- const viewModes = solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.allowedViews && solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.allowedViews.length > 0 && solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.allowedViews.map((view: any) => { return { label: capitalize(view), value: view } });
217
- setViewModes(viewModes);
218
- if (solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.grouped !== false) {
219
- setGroupByFieldName(solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.groupBy)
220
- } else {
221
- setGroupByFieldName("deletedTracker");
222
- setGroupedView(false);
223
- }
224
- }
225
- }, [solidKanbanViewMetaData]);
226
-
227
- // All kanban view state.
228
- const [kanbanViewData, setKanbanViewData] = useState<any>([]);
229
- const [kanbanLoadMoreData, setKanbanLoadMoreData] = useState<any>({});
230
- const [recordsInSwimlane, setRecordsInSwimlane] = useState(25);
231
- const [selectedRecords, setSelectedRecords] = useState<any[]>([]);
232
- const [loading, setLoading] = useState<boolean>(true);
233
- const [isDialogVisible, setDialogVisible] = useState(false);
234
- const [createButtonUrl, setCreateButtonUrl] = useState<string>();
235
- const [editButtonUrl, setEditButtonUrl] = useState<string>();
236
- const [columnsCount, setColumnsCount] = useState(5);
237
- const [swimLaneCurrentPageNumber, setSwimLaneCurrentPageNumber] = useState(1);
238
- const [queryDataLoaded, setQueryDataLoaded] = useState(false);
239
- const [showSaveFilterPopup, setShowSaveFilterPopup] = useState<boolean>(false);
240
-
241
-
242
- const showToast = (severity: "success" | "error", summary: string, detail: string) => {
243
- toast.current?.show({
244
- severity,
245
- summary,
246
- detail,
247
- life: 3000,
248
- });
249
- };
250
- // Get the kanban view data.
251
- // const [triggerGetSolidEntitiesForKanban, { data: solidEntityKanbanViewData, isLoading, error }] = useLazyGetSolidKanbanEntitiesQuery();
252
- const [triggerGetSolidEntities, { data: solidEntityKanbanViewData, isLoading, error }] = useLazyGetSolidEntitiesQuery();
253
-
254
- // Delete mutation
255
- const [
256
- deleteManySolidEntities,
257
- {
258
- isLoading: isSolidEntitiesDeleted,
259
- isSuccess: isDeleteSolidEntitiesSucess,
260
- isError: isSolidEntitiesDeleteError,
261
- error: SolidEntitiesDeleteError,
262
- data: DeletedSolidEntities,
263
- },
264
- ] = useDeleteMultipleSolidEntitiesMutation();
265
- const [
266
- patchKanbanView,
267
- { isSuccess: isKanbanUpdateSuccessfull, isError: isKanbanUpdateError, error: kanbanUpdateError },
268
- ] = usePatchUpdateSolidEntityMutation();
269
-
270
- // After data is fetched populate the kanban view state so as to be able to render the data.
271
- useEffect(() => {
272
- if (solidEntityKanbanViewData) {
273
- const latestKanbanGroupData = [...kanbanViewData, ...solidEntityKanbanViewData?.groupRecords]
274
- setKanbanViewData(latestKanbanGroupData);
275
- const loadmoredata = Object.entries(latestKanbanGroupData).reduce((acc: any, [key, value]: any) => {
276
- acc[value.groupName] = {
277
- offset: (value.groupData.meta.currentPage - 1) * value.groupData.meta.perPage,
278
- limit: value.groupData.meta.perPage,
279
- count: value.groupData.meta.totalRecords
280
- };
281
- return acc;
282
- }, {});
283
-
284
- setKanbanLoadMoreData(loadmoredata)
285
- setLoading(false);
286
- }
287
- }, [solidEntityKanbanViewData]);
288
-
289
-
290
-
291
-
292
- useEffect(() => {
293
- if (solidKanbanViewMetaData) {
294
- const createActionUrl = solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.createAction && solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.createAction?.type === "custom" ? solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.createAction?.customComponent : "form/new";
295
- const editActionUrl = solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.editAction && solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.editAction?.type === "custom" ? solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.editAction?.customComponent : "form";
296
- if (createActionUrl) {
297
- setCreateButtonUrl(createActionUrl)
298
- }
299
- if (editActionUrl) {
300
- setEditButtonUrl(editActionUrl)
301
- }
302
- }
303
- }, [solidKanbanViewMetaData])
304
-
305
- // Fetch data after toPopulate has been populated...
306
- useEffect(() => {
307
-
308
- if (solidKanbanViewMetaData) {
309
-
310
- const swimlanesCount = solidKanbanViewMetaData?.data.solidView?.layout?.attrs?.swimlanesCount || 5;
311
- if (groupByFieldName && (toPopulate || toPopulateMedia)) {
312
-
313
- const queryObject = queryStringToQueryObject();
314
- let queryString = "";
315
- if (searchParams) {
316
-
317
- // Get Object from Url
318
- const queryObject = qs.parse(searchParams,
319
- {
320
- decoder: str => decodeURIComponent(str),
321
- allowDots: true,
322
- }
323
- );
324
-
325
- const filters = {
326
- $and: []
327
- }
328
- if (queryObject.s_filter) {
329
- filters.$and.push(queryObject.s_filter);
330
- }
331
- if (queryObject.c_filter) {
332
- filters.$and.push(queryObject.c_filter);
333
- }
334
-
335
- const queryData = {
336
- offset: 0,
337
- limit: Number(queryObject.limit) + Number(queryObject.offset),
338
- fields: queryObject.fields || [`${groupByFieldName}`, `count(${groupByFieldName})`],
339
- groupBy: queryObject.groupBy || groupByFieldName,
340
- populateMedia: queryObject.populateMedia || toPopulateMedia,
341
- populateGroup: queryObject.populateGroup || true,
342
- groupFilter: {
343
- limit: Number(queryObject.groupFilter.limit) + Number(queryObject.groupFilter.offset) || kanbanViewMetaData?.data?.solidView?.layout?.attrs?.recordsInSwimlane,
344
- offset: 0,
345
- filters: filters,
346
- populate: queryObject.groupFilter.populate || toPopulate,
347
- populateMedia: queryObject.groupFilter.populateMedia || toPopulateMedia
348
- }
349
- // sort: [`id:desc`],
350
- };
351
-
352
- setRecordsInSwimlane(queryData.limit);
353
- setToPopulate(queryData.populate);
354
- setToPopulateMedia(queryData.populateMedia);
355
- setFilters(filters);
356
- setQueryDataLoaded(true);
357
-
358
- queryString = qs.stringify(queryData, {
359
- encodeValuesOnly: true
360
- });
361
-
362
-
363
- } else {
364
- const { recordsInSwimlane, toPopulate, toPopulateMedia } = initialFilterMethod();
365
- const queryData = {
366
- offset: 0,
367
- limit: swimlanesCount,
368
- fields: [`${groupByFieldName}`, `count(${groupByFieldName})`],
369
- groupBy: groupByFieldName,
370
- populateMedia: toPopulateMedia,
371
- populateGroup: true,
372
- groupFilter: {
373
- limit: kanbanViewMetaData?.data?.solidView?.layout?.attrs?.recordsInSwimlane || 10,
374
- offset: 0,
375
- filters: filters,
376
- populate: toPopulate,
377
- populateMedia: toPopulateMedia
378
- }
379
- // sort: [`id:desc`],
380
- };
381
- setRecordsInSwimlane(recordsInSwimlane);
382
- setToPopulate(toPopulate);
383
- setToPopulateMedia(toPopulateMedia);
384
-
385
- // fields=status&groupBy=status&fields=count(status)&populateGroup=true
386
- queryString = qs.stringify(queryData, {
387
- encodeValuesOnly: true
388
- });
389
-
390
- setQueryDataLoaded(true)
391
- }
392
-
393
- triggerGetSolidEntities(queryString);
394
- setSelectedRecords([]);
395
- }
396
- }
397
- }, [isDeleteSolidEntitiesSucess, groupByFieldName, solidKanbanViewMetaData]);
398
-
399
-
400
- // clickable link allowing one to open the detail / form view.
401
- const detailsBodyTemplate = (solidViewData: any) => {
402
- return (
403
- <Link href={`${editButtonUrl}/${solidViewData.id}`} rel="noopener noreferrer" className="text-sm font-bold p-0" style={{ color: "#12415D" }}>
404
- <i className="pi pi-pencil" style={{ fontSize: "1rem" }}></i>
405
- </Link>
406
- );
407
- };
408
-
409
- // handle bulk deletion
410
- const deleteBulk = () => {
411
- let deleteList: any = [];
412
- selectedRecords.forEach((element: any) => {
413
- deleteList.push(element.id);
414
- });
415
- console.log(deleteList);
416
- deleteManySolidEntities(deleteList);
417
- setDialogVisible(false);
418
- };
419
-
420
- // handle closing of the delete dialog...
421
- const onDeleteClose = () => {
422
- setDialogVisible(false);
423
- setSelectedRecords([]);
424
- }
425
-
426
- const handleLoadMore = async (groupByField: string) => {
427
- const { offset, limit, records } = kanbanLoadMoreData[groupByField];
428
- const newLoadMoreData = kanbanLoadMoreData;
429
- kanbanLoadMoreData[groupByField].offset = offset + limit;
430
- try {
431
- const queryData = {
432
- offset: offset + limit,
433
- limit: limit,
434
- populate: toPopulate,
435
- populateMedia: toPopulateMedia,
436
- populateGroup: true,
437
- filters: {
438
- [groupByFieldName]: {
439
- $in: [groupByField],
440
- },
441
- ...filters
442
- }
443
- }
444
-
445
-
446
- const queryString = qs.stringify(queryData, {
447
- encodeValuesOnly: true
448
- });
449
- // router.push(`?${queryString}`);
450
- const data: any = await triggerGetSolidEntities(queryString);
451
- const newRecords = data.data.records;
452
- const currentData = kanbanViewData;
453
- const mergeData = (
454
- kanbanViewData: any[],
455
- newRecords: any[],
456
- groupByField: string
457
- ) => {
458
- // Find the group matching the specified groupByField
459
- const originalData = structuredClone(kanbanViewData);
460
- const targetGroup = originalData.find(
461
- (group: any) => group.groupName === groupByField
462
- );
463
- if (targetGroup) {
464
- const { groupData } = targetGroup;
465
-
466
- if (targetGroup.groupData) {
467
- // Extract existing records
468
- const existingRecords = targetGroup.groupData.records;
469
- const updatedRecords = [...existingRecords, ...newRecords];
470
- targetGroup.groupData.records = updatedRecords
471
-
472
-
473
- // Update the meta data (you can adjust this logic as needed)
474
- groupData.meta.prevPage = groupData.meta.currentPage
475
- groupData.meta.currentPage = groupData.meta.currentPage + 1
476
- groupData.meta.nextPage = groupData.meta.currentPage + 1
477
- }
478
- }
479
- return originalData;
480
- };
481
-
482
-
483
- const updatedData = mergeData(kanbanViewData, newRecords, groupByField);
484
- setKanbanViewData(updatedData);
485
- const loadmoredata = Object.entries(updatedData).reduce((acc: any, [key, value]: any) => {
486
- acc[value.groupName] = {
487
- offset: (value.groupData.meta.currentPage - 1) * value.groupData.meta.perPage,
488
- limit: value.groupData.meta.perPage,
489
- count: value.groupData.meta.totalRecords
490
- };
491
- return acc;
492
- }, {});
493
- setKanbanLoadMoreData(loadmoredata)
494
-
495
- } catch (error) {
496
- console.error("Failed to load more data:", error);
497
- }
498
- };
499
-
500
-
501
- // Handle drag-and-drop functionality
502
- const onDragEnd = async (result: DropResult): void => {
503
- const { source, destination } = result;
504
- if (!destination) return;
505
-
506
- const sourceGroupName = source.droppableId;
507
- const destinationGroupName = destination.droppableId;
508
-
509
- // Find the source and destination groups
510
- const sourceGroupIndex = kanbanViewData.findIndex((group: any) => group.groupName === sourceGroupName);
511
- const destinationGroupIndex = kanbanViewData.findIndex((group: any) => group.groupName === destinationGroupName);
512
-
513
- if (sourceGroupIndex === -1 || destinationGroupIndex === -1) return;
514
-
515
- // If dragging within the same group
516
- if (sourceGroupName === destinationGroupName) {
517
- setKanbanViewData((prevData: typeof kanbanViewData) =>
518
- prevData.map((group: any) => {
519
- if (group.groupName === sourceGroupName) {
520
- const updatedRecords = [...group.groupData.records];
521
- const [movedItem] = updatedRecords.splice(source.index, 1); // Remove the item
522
- updatedRecords.splice(destination.index, 0, movedItem); // Insert at the new position
523
-
524
- return {
525
- ...group,
526
- groupData: {
527
- ...group.groupData,
528
- records: updatedRecords,
529
- },
530
- };
531
- }
532
- return group;
533
- })
534
- );
535
- return;
536
- }
537
-
538
- // Deep clone the source and destination groups
539
- const sourceGroup = JSON.parse(JSON.stringify(kanbanViewData[sourceGroupIndex]));
540
- const destinationGroup = JSON.parse(JSON.stringify(kanbanViewData[destinationGroupIndex]));
541
-
542
- // Clone the records for immutability
543
- const sourceRecords = [...sourceGroup.groupData.records];
544
- const destinationRecords = [...destinationGroup.groupData.records];
545
-
546
- // Remove the item from the source
547
- const [movedItem] = sourceRecords.splice(source.index, 1);
548
-
549
- // Create a mutable copy of the moved item
550
- const updatedItem = { ...movedItem, status: destinationGroupName };
551
-
552
- // Add the updated item to the destination
553
- destinationRecords.splice(destination.index, 0, updatedItem);
554
-
555
- // Update the group data
556
- sourceGroup.groupData.records = sourceRecords;
557
- destinationGroup.groupData.records = destinationRecords;
558
-
559
- // Update the kanbanViewData state
560
- try {
561
- const formData = new FormData();
562
- formData.append(groupByFieldName, destinationGroupName);
563
- const kanbanUpdateResponse = await patchKanbanView({ id: +movedItem.id, data: formData }).unwrap();
564
-
565
- if (kanbanUpdateResponse?.statusCode === 200) {
566
- showToast("success", "Success", "Kanban View Updated!");
567
- // Update the kanbanViewData state
568
- setKanbanViewData((prevData: typeof kanbanViewData) =>
569
- prevData.map((group: any) => {
570
- if (group.groupName === sourceGroupName) {
571
- return sourceGroup;
572
- }
573
- if (group.groupName === destinationGroupName) {
574
- return destinationGroup;
575
- }
576
- return group;
577
- })
578
- );
579
- } else {
580
- showToast("error", "Duplicate Key", kanbanUpdateResponse?.error);
581
- }
582
- } catch (error: any) {
583
- // 6. Handle 500 or network errors
584
- console.error("API error:", error);
585
- showToast("error", "Something went wrong", error?.data?.message || "Something went wrong");
586
- }
587
- };
588
-
589
-
590
- // Handle SwimLane Pagination
591
- const handleSwimLanePagination = async () => {
592
-
593
- if (solidKanbanViewMetaData) {
594
-
595
- const swimlanesCount = solidKanbanViewMetaData?.data.solidView?.layout?.attrs?.swimlanesCount || 5;
596
- const queryData = {
597
- offset: swimLaneCurrentPageNumber * swimlanesCount,
598
- limit: swimlanesCount,
599
- fields: [`${groupByFieldName}`, `count(${groupByFieldName})`],
600
- groupBy: groupByFieldName,
601
- populateMedia: toPopulateMedia,
602
- populateGroup: true,
603
- groupFilter: {
604
- limit: recordsInSwimlane,
605
- offset: 0,
606
- filters: filters,
607
- populate: toPopulate,
608
- populateMedia: toPopulateMedia
609
-
610
- }
611
- // sort: [`id:desc`],
612
- };
613
- // fields=status&groupBy=status&fields=count(status)&populateGroup=true
614
- const queryString = qs.stringify(queryData, {
615
- encodeValuesOnly: true
616
- });
617
-
618
- //Push to Router
619
- router.push(`?${queryString}`);
620
-
621
-
622
- const data: any = await triggerGetSolidEntities(queryString);
623
- if (data && data?.data?.groupRecords.length > 0) {
624
- const updatedData = [...kanbanViewData, ...data.data.groupRecords];
625
- setKanbanViewData(updatedData);
626
- }
627
- setSwimLaneCurrentPageNumber(swimLaneCurrentPageNumber + 1)
628
- }
629
- }
630
-
631
-
632
- // Handle the custom filter and Search Filter
633
- const handleApplyCustomFilter = async (transformedFilter: any) => {
634
-
635
- if (solidKanbanViewMetaData) {
636
-
637
-
638
- const queryfilter = {
639
- $and: [
640
- ]
641
- }
642
- if (transformedFilter.s_filter) {
643
- queryfilter.$and.push(transformedFilter.s_filter)
644
- }
645
- if (transformedFilter.c_filter) {
646
- queryfilter.$and.push(transformedFilter.c_filter)
647
- }
648
-
649
- const customFilter = transformedFilter;
650
- const updatedFilter = { ...(filters || {}), ...(queryfilter || {}) };
651
- setFilters((prevFilters) => ({ ...(prevFilters || {}), ...(queryfilter || {}) }));
652
-
653
- const swimlanesCount = solidKanbanViewMetaData?.data.solidView?.layout?.attrs?.swimlanesCount || 5;
654
-
655
- if (toPopulate) {
656
- const queryData = {
657
- offset: 0,
658
- limit: swimlanesCount,
659
- fields: [`${groupByFieldName}`, `count(${groupByFieldName})`],
660
- groupBy: groupByFieldName,
661
- populateGroup: true,
662
- groupFilter: {
663
- limit: recordsInSwimlane,
664
- offset: 0,
665
- filters: updatedFilter,
666
- populate: toPopulate,
667
- populateMedia: toPopulateMedia
668
- }
669
- };
670
- const queryString = qs.stringify(queryData, {
671
- encodeValuesOnly: true
672
- });
673
-
674
- // s_filter and c_filter format that needs to be passed to the router
675
- // only present if handleCustomFilter is applied
676
- if (customFilter) {
677
- let url
678
- const urlData = queryData;
679
- delete urlData.filters;
680
- urlData.s_filter = customFilter.s_filter || {};
681
- urlData.c_filter = customFilter.c_filter || {};
682
- queryObjectToQueryString(urlData);
683
- }
684
-
685
-
686
- const data: any = await triggerGetSolidEntities(queryString);
687
-
688
- // Update the kanban view data with the new data based on filter
689
- if (data && data?.data?.groupRecords.length > 0) {
690
- const updatedData = [...data.data.groupRecords];
691
- setKanbanViewData(updatedData);
692
- }
693
- setSelectedRecords([]);
694
-
695
- }
696
- }
697
-
698
- }
699
-
700
- useEffect(() => {
701
- if (solidKanbanViewMetaData) {
702
- const createActionUrl = solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.createAction && solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.createAction?.type === "custom" ? solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.createAction?.customComponent : "form/new";
703
- const editActionUrl = solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.editAction && solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.editAction?.type === "custom" ? solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.editAction?.customComponent : "form";
704
- const viewModes = solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.allowedViews && solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.allowedViews.length > 0 && solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.allowedViews.map((view: any) => { return { label: capitalize(view), value: view } });
705
- setViewModes(viewModes);
706
- if (createActionUrl) {
707
- setCreateButtonUrl(createActionUrl)
708
- }
709
- if (editActionUrl) {
710
- setEditButtonUrl(editActionUrl)
711
- }
712
- }
713
- }, [solidKanbanViewMetaData])
714
-
715
- const kanbanViewTitle = solidKanbanViewMetaData?.data?.solidView?.displayName
716
-
717
- return (
718
- <div className="page-parent-wrapper">
719
- <Toast ref={toast} />
720
- <div className="page-header">
721
- <div className="flex gap-3 align-items-center">
722
- <p className="m-0 view-title">{kanbanViewTitle}</p>
723
- {solidKanbanViewMetaData?.data?.solidView?.layout?.attrs.enableGlobalSearch === true &&
724
- // <SolidGlobalSearchElement viewData={solidKanbanViewMetaData} handleApplyCustomFilter={handleApplyCustomFilter} ></SolidGlobalSearchElement>
725
- <SolidGlobalSearchElement showSaveFilterPopup={showSaveFilterPopup} setShowSaveFilterPopup={setShowSaveFilterPopup} ref={solidGlobalSearchElementRef} viewData={solidKanbanViewMetaData} handleApplyCustomFilter={handleApplyCustomFilter} ></SolidGlobalSearchElement>
726
-
727
- }
728
- </div>
729
- <div className="flex align-items-center gap-3">
730
- {actionsAllowed.includes(`${createPermission(params.modelName)}`) && solidKanbanViewMetaData?.data?.solidView?.layout?.attrs.create !== false &&
731
- <SolidCreateButton url={createButtonUrl} />
732
- }
733
-
734
- {actionsAllowed.includes(`${deletePermission(params.modelName)}`) && solidKanbanViewMetaData?.data?.solidView?.layout?.attrs.delete !== false && selectedRecords.length > 0 && <Button
735
- type="button"
736
- label="Delete"
737
- size="small"
738
- onClick={() => setDialogVisible(true)}
739
- className="small-button"
740
- severity="danger"
741
- />}
742
- <Button
743
- type="button"
744
- size="small"
745
- icon="pi pi-refresh"
746
- severity="secondary"
747
- outlined
748
- onClick={() => {
749
- window.location.reload()
750
- }}
751
- />
752
- <SolidKanbanViewConfigure
753
- solidKanbanViewMetaData={solidKanbanViewMetaData}
754
- actionsAllowed={actionsAllowed}
755
- viewModes={viewModes}
756
- setLayoutDialogVisible={setLayoutDialogVisible}
757
- setShowSaveFilterPopup={setShowSaveFilterPopup}
758
- />
759
- {/* <SolidConfigureLayoutElement></SolidConfigureLayoutElement> */}
760
- </div>
761
- </div>
762
- <style>{`.p-datatable .p-datatable-loading-overlay {background-color: rgba(0, 0, 0, 0.0);}`}</style>
763
- {solidKanbanViewMetaData && kanbanViewData &&
764
- <KanbanBoard groupedView={groupedView} kanbanViewData={kanbanViewData} solidKanbanViewMetaData={solidKanbanViewMetaData?.data} setKanbanViewData={setKanbanViewData} handleLoadMore={handleLoadMore} onDragEnd={onDragEnd} handleSwimLanePagination={handleSwimLanePagination} setLightboxUrls={setLightboxUrls} setOpenLightbox={setOpenLightbox} editButtonUrl={editButtonUrl}></KanbanBoard>
765
- }
766
-
767
- <Dialog
768
- visible={isDialogVisible}
769
- header="Confirm Delete"
770
- modal
771
- footer={() => (
772
- <div className="flex justify-content-center">
773
- <Button label="Yes" icon="pi pi-check" className='small-button' severity="danger" autoFocus onClick={deleteBulk} />
774
- <Button label="No" icon="pi pi-times" className='small-button' onClick={onDeleteClose} />
775
- </div>
776
- )}
777
- onHide={() => setDialogVisible(false)}
778
- >
779
- <p>Are you sure you want to delete the selected records?</p>
780
- </Dialog>
781
- {openLightbox &&
782
- <Lightbox
783
- open={openLightbox}
784
- plugins={[Counter, Download]}
785
- close={() => setOpenLightbox(false)}
786
- slides={lightboxUrls}
787
- />
788
- }
789
- <Dialog
790
- visible={isLayoutDialogVisible}
791
- header="Change Kanban Layout"
792
- modal
793
- onHide={() => setLayoutDialogVisible(false)}
794
- contentStyle={{
795
- width: 800
796
- }}
797
- >
798
- <KanbanUserViewLayout solidKanbanViewMetaData={solidKanbanViewMetaData} setLayoutDialogVisible={setLayoutDialogVisible} />
799
- </Dialog>
800
- </div>
801
- );
802
- };
803
-