@solidstarters/solid-core-ui 1.0.1 → 1.1.0

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 (517) hide show
  1. package/dist/components/CustomFooter/CustomFooter.js.map +1 -1
  2. package/dist/components/CustomFooter/FooterForm.js.map +1 -1
  3. package/dist/components/auth/SolidForgotPassword.d.ts +3 -0
  4. package/dist/components/auth/SolidForgotPassword.d.ts.map +1 -0
  5. package/dist/components/auth/SolidForgotPassword.js +108 -0
  6. package/dist/components/auth/SolidForgotPassword.js.map +1 -0
  7. package/dist/components/auth/SolidLogin.d.ts +3 -0
  8. package/dist/components/auth/SolidLogin.d.ts.map +1 -0
  9. package/dist/components/auth/SolidLogin.js +115 -0
  10. package/dist/components/auth/SolidLogin.js.map +1 -0
  11. package/dist/components/auth/SolidOTPVerify.d.ts +3 -0
  12. package/dist/components/auth/SolidOTPVerify.d.ts.map +1 -0
  13. package/dist/components/auth/SolidOTPVerify.js +108 -0
  14. package/dist/components/auth/SolidOTPVerify.js.map +1 -0
  15. package/dist/components/auth/SolidRegister.d.ts +3 -0
  16. package/dist/components/auth/SolidRegister.d.ts.map +1 -0
  17. package/dist/components/auth/SolidRegister.js +166 -0
  18. package/dist/components/auth/SolidRegister.js.map +1 -0
  19. package/dist/components/auth/SolidResetPassword.d.ts +3 -0
  20. package/dist/components/auth/SolidResetPassword.d.ts.map +1 -0
  21. package/dist/components/auth/SolidResetPassword.js +119 -0
  22. package/dist/components/auth/SolidResetPassword.js.map +1 -0
  23. package/dist/components/core/common/FilterComponent.d.ts +33 -1
  24. package/dist/components/core/common/FilterComponent.d.ts.map +1 -1
  25. package/dist/components/core/common/FilterComponent.js +39 -35
  26. package/dist/components/core/common/FilterComponent.js.map +1 -1
  27. package/dist/components/core/common/SolidConfigureLayoutElement.js +4 -4
  28. package/dist/components/core/common/SolidConfigureLayoutElement.js.map +1 -1
  29. package/dist/components/core/common/SolidCreateButton.js +1 -1
  30. package/dist/components/core/common/SolidCreateButton.js.map +1 -1
  31. package/dist/components/core/common/SolidGlobalSearchElement.d.ts +1 -1
  32. package/dist/components/core/common/SolidGlobalSearchElement.d.ts.map +1 -1
  33. package/dist/components/core/common/SolidGlobalSearchElement.js +14 -9
  34. package/dist/components/core/common/SolidGlobalSearchElement.js.map +1 -1
  35. package/dist/components/core/common/SolidLayoutViews.d.ts +19 -0
  36. package/dist/components/core/common/SolidLayoutViews.d.ts.map +1 -0
  37. package/dist/components/core/common/SolidLayoutViews.js +14 -0
  38. package/dist/components/core/common/SolidLayoutViews.js.map +1 -0
  39. package/dist/components/core/common/SolidListViewOptions.d.ts +2 -0
  40. package/dist/components/core/common/SolidListViewOptions.d.ts.map +1 -0
  41. package/dist/components/core/common/SolidListViewOptions.js +11 -0
  42. package/dist/components/core/common/SolidListViewOptions.js.map +1 -0
  43. package/dist/components/core/common/SolidSearchBox.js.map +1 -1
  44. package/dist/components/core/field/FieldListViewData.js +7 -7
  45. package/dist/components/core/field/FieldListViewData.js.map +1 -1
  46. package/dist/components/core/filter/SolidFilterFields.d.ts.map +1 -1
  47. package/dist/components/core/filter/SolidFilterFields.js +32 -35
  48. package/dist/components/core/filter/SolidFilterFields.js.map +1 -1
  49. package/dist/components/core/filter/SolidManyToOneFilterElement.js +2 -2
  50. package/dist/components/core/filter/SolidManyToOneFilterElement.js.map +1 -1
  51. package/dist/components/core/filter/SolidSelectionDynamicFilterElement.d.ts.map +1 -1
  52. package/dist/components/core/filter/SolidSelectionDynamicFilterElement.js +0 -1
  53. package/dist/components/core/filter/SolidSelectionDynamicFilterElement.js.map +1 -1
  54. package/dist/components/core/filter/SolidSelectionStaticFilterElement.d.ts.map +1 -1
  55. package/dist/components/core/filter/SolidSelectionStaticFilterElement.js +0 -1
  56. package/dist/components/core/filter/SolidSelectionStaticFilterElement.js.map +1 -1
  57. package/dist/components/core/filter/SolidVarInputsFilterElement.d.ts.map +1 -1
  58. package/dist/components/core/filter/SolidVarInputsFilterElement.js +1 -2
  59. package/dist/components/core/filter/SolidVarInputsFilterElement.js.map +1 -1
  60. package/dist/components/core/filter/fields/SolidBigintField.d.ts +4 -0
  61. package/dist/components/core/filter/fields/SolidBigintField.d.ts.map +1 -0
  62. package/dist/components/core/filter/fields/SolidBigintField.js +8 -0
  63. package/dist/components/core/filter/fields/SolidBigintField.js.map +1 -0
  64. package/dist/components/core/filter/fields/SolidBooleanField.d.ts +4 -0
  65. package/dist/components/core/filter/fields/SolidBooleanField.d.ts.map +1 -0
  66. package/dist/components/core/filter/fields/SolidBooleanField.js +26 -0
  67. package/dist/components/core/filter/fields/SolidBooleanField.js.map +1 -0
  68. package/dist/components/core/filter/fields/SolidComputedField.d.ts +4 -0
  69. package/dist/components/core/filter/fields/SolidComputedField.d.ts.map +1 -0
  70. package/dist/components/core/filter/fields/SolidComputedField.js +22 -0
  71. package/dist/components/core/filter/fields/SolidComputedField.js.map +1 -0
  72. package/dist/components/core/filter/fields/SolidDateField.d.ts +8 -0
  73. package/dist/components/core/filter/fields/SolidDateField.d.ts.map +1 -0
  74. package/dist/components/core/filter/fields/SolidDateField.js +34 -0
  75. package/dist/components/core/filter/fields/SolidDateField.js.map +1 -0
  76. package/dist/components/core/filter/fields/SolidDatetimeField.d.ts +4 -0
  77. package/dist/components/core/filter/fields/SolidDatetimeField.d.ts.map +1 -0
  78. package/dist/components/core/filter/fields/SolidDatetimeField.js +29 -0
  79. package/dist/components/core/filter/fields/SolidDatetimeField.js.map +1 -0
  80. package/dist/components/core/filter/fields/SolidDecimalField.d.ts +4 -0
  81. package/dist/components/core/filter/fields/SolidDecimalField.d.ts.map +1 -0
  82. package/dist/components/core/filter/fields/SolidDecimalField.js +8 -0
  83. package/dist/components/core/filter/fields/SolidDecimalField.js.map +1 -0
  84. package/dist/components/core/filter/fields/SolidExternalIdField.d.ts +4 -0
  85. package/dist/components/core/filter/fields/SolidExternalIdField.d.ts.map +1 -0
  86. package/dist/components/core/filter/fields/SolidExternalIdField.js +24 -0
  87. package/dist/components/core/filter/fields/SolidExternalIdField.js.map +1 -0
  88. package/dist/components/core/filter/fields/SolidFloatField.d.ts +4 -0
  89. package/dist/components/core/filter/fields/SolidFloatField.d.ts.map +1 -0
  90. package/dist/components/core/filter/fields/SolidFloatField.js +8 -0
  91. package/dist/components/core/filter/fields/SolidFloatField.js.map +1 -0
  92. package/dist/components/core/filter/fields/SolidIdField.d.ts +4 -0
  93. package/dist/components/core/filter/fields/SolidIdField.d.ts.map +1 -0
  94. package/dist/components/core/filter/fields/SolidIdField.js +24 -0
  95. package/dist/components/core/filter/fields/SolidIdField.js.map +1 -0
  96. package/dist/components/core/filter/fields/SolidIntField.d.ts +4 -0
  97. package/dist/components/core/filter/fields/SolidIntField.d.ts.map +1 -0
  98. package/dist/components/core/filter/fields/SolidIntField.js +33 -0
  99. package/dist/components/core/filter/fields/SolidIntField.js.map +1 -0
  100. package/dist/components/core/filter/fields/SolidLongTextField.d.ts +4 -0
  101. package/dist/components/core/filter/fields/SolidLongTextField.d.ts.map +1 -0
  102. package/dist/components/core/filter/fields/SolidLongTextField.js +8 -0
  103. package/dist/components/core/filter/fields/SolidLongTextField.js.map +1 -0
  104. package/dist/components/core/filter/fields/SolidMediaMultipleField.d.ts +4 -0
  105. package/dist/components/core/filter/fields/SolidMediaMultipleField.d.ts.map +1 -0
  106. package/dist/components/core/filter/fields/SolidMediaMultipleField.js +34 -0
  107. package/dist/components/core/filter/fields/SolidMediaMultipleField.js.map +1 -0
  108. package/dist/components/core/filter/fields/SolidMediaSingleField.d.ts +4 -0
  109. package/dist/components/core/filter/fields/SolidMediaSingleField.d.ts.map +1 -0
  110. package/dist/components/core/filter/fields/SolidMediaSingleField.js +34 -0
  111. package/dist/components/core/filter/fields/SolidMediaSingleField.js.map +1 -0
  112. package/dist/components/core/filter/fields/SolidRelationField.d.ts +4 -0
  113. package/dist/components/core/filter/fields/SolidRelationField.d.ts.map +1 -0
  114. package/dist/components/core/filter/fields/SolidRelationField.js +12 -0
  115. package/dist/components/core/filter/fields/SolidRelationField.js.map +1 -0
  116. package/dist/components/core/filter/fields/SolidRichTextField.d.ts +4 -0
  117. package/dist/components/core/filter/fields/SolidRichTextField.d.ts.map +1 -0
  118. package/dist/components/core/filter/fields/SolidRichTextField.js +8 -0
  119. package/dist/components/core/filter/fields/SolidRichTextField.js.map +1 -0
  120. package/dist/components/core/filter/fields/SolidSelectionDynamicField.d.ts +4 -0
  121. package/dist/components/core/filter/fields/SolidSelectionDynamicField.d.ts.map +1 -0
  122. package/dist/components/core/filter/fields/SolidSelectionDynamicField.js +23 -0
  123. package/dist/components/core/filter/fields/SolidSelectionDynamicField.js.map +1 -0
  124. package/dist/components/core/filter/fields/SolidSelectionStaticField.d.ts +4 -0
  125. package/dist/components/core/filter/fields/SolidSelectionStaticField.d.ts.map +1 -0
  126. package/dist/components/core/filter/fields/SolidSelectionStaticField.js +25 -0
  127. package/dist/components/core/filter/fields/SolidSelectionStaticField.js.map +1 -0
  128. package/dist/components/core/filter/fields/SolidShortTextField.d.ts +4 -0
  129. package/dist/components/core/filter/fields/SolidShortTextField.d.ts.map +1 -0
  130. package/dist/components/core/filter/fields/SolidShortTextField.js +32 -0
  131. package/dist/components/core/filter/fields/SolidShortTextField.js.map +1 -0
  132. package/dist/components/core/filter/fields/SolidTimeField.d.ts +4 -0
  133. package/dist/components/core/filter/fields/SolidTimeField.d.ts.map +1 -0
  134. package/dist/components/core/filter/fields/SolidTimeField.js +24 -0
  135. package/dist/components/core/filter/fields/SolidTimeField.js.map +1 -0
  136. package/dist/components/core/filter/fields/SolidUuidField.d.ts +4 -0
  137. package/dist/components/core/filter/fields/SolidUuidField.d.ts.map +1 -0
  138. package/dist/components/core/filter/fields/SolidUuidField.js +24 -0
  139. package/dist/components/core/filter/fields/SolidUuidField.js.map +1 -0
  140. package/dist/components/core/filter/fields/relations/SolidRelationManyToOneField.d.ts +4 -0
  141. package/dist/components/core/filter/fields/relations/SolidRelationManyToOneField.d.ts.map +1 -0
  142. package/dist/components/core/filter/fields/relations/SolidRelationManyToOneField.js +53 -0
  143. package/dist/components/core/filter/fields/relations/SolidRelationManyToOneField.js.map +1 -0
  144. package/dist/components/core/form/SolidFormView.d.ts.map +1 -1
  145. package/dist/components/core/form/SolidFormView.js +23 -23
  146. package/dist/components/core/form/SolidFormView.js.map +1 -1
  147. package/dist/components/core/form/fields/ISolidField.d.ts.map +1 -1
  148. package/dist/components/core/form/fields/SolidBooleanField.d.ts.map +1 -1
  149. package/dist/components/core/form/fields/SolidBooleanField.js +1 -1
  150. package/dist/components/core/form/fields/SolidBooleanField.js.map +1 -1
  151. package/dist/components/core/form/fields/SolidDateField.d.ts.map +1 -1
  152. package/dist/components/core/form/fields/SolidDateField.js +2 -2
  153. package/dist/components/core/form/fields/SolidDateField.js.map +1 -1
  154. package/dist/components/core/form/fields/SolidDateTimeField.d.ts.map +1 -1
  155. package/dist/components/core/form/fields/SolidDateTimeField.js +2 -2
  156. package/dist/components/core/form/fields/SolidDateTimeField.js.map +1 -1
  157. package/dist/components/core/form/fields/SolidDecimalField.d.ts.map +1 -1
  158. package/dist/components/core/form/fields/SolidDecimalField.js +2 -2
  159. package/dist/components/core/form/fields/SolidDecimalField.js.map +1 -1
  160. package/dist/components/core/form/fields/SolidIntegerField.d.ts.map +1 -1
  161. package/dist/components/core/form/fields/SolidIntegerField.js +2 -2
  162. package/dist/components/core/form/fields/SolidIntegerField.js.map +1 -1
  163. package/dist/components/core/form/fields/SolidJsonField.d.ts.map +1 -1
  164. package/dist/components/core/form/fields/SolidJsonField.js +2 -2
  165. package/dist/components/core/form/fields/SolidJsonField.js.map +1 -1
  166. package/dist/components/core/form/fields/SolidLongTextField.d.ts.map +1 -1
  167. package/dist/components/core/form/fields/SolidLongTextField.js +2 -2
  168. package/dist/components/core/form/fields/SolidLongTextField.js.map +1 -1
  169. package/dist/components/core/form/fields/SolidMediaMultipleField.d.ts.map +1 -1
  170. package/dist/components/core/form/fields/SolidMediaMultipleField.js +5 -5
  171. package/dist/components/core/form/fields/SolidMediaMultipleField.js.map +1 -1
  172. package/dist/components/core/form/fields/SolidMediaSingleField.d.ts.map +1 -1
  173. package/dist/components/core/form/fields/SolidMediaSingleField.js +5 -5
  174. package/dist/components/core/form/fields/SolidMediaSingleField.js.map +1 -1
  175. package/dist/components/core/form/fields/SolidRelationField.js +1 -1
  176. package/dist/components/core/form/fields/SolidRelationField.js.map +1 -1
  177. package/dist/components/core/form/fields/SolidRichTextField.d.ts.map +1 -1
  178. package/dist/components/core/form/fields/SolidRichTextField.js +2 -2
  179. package/dist/components/core/form/fields/SolidRichTextField.js.map +1 -1
  180. package/dist/components/core/form/fields/SolidSelectionDynamicField.d.ts.map +1 -1
  181. package/dist/components/core/form/fields/SolidSelectionDynamicField.js +3 -3
  182. package/dist/components/core/form/fields/SolidSelectionDynamicField.js.map +1 -1
  183. package/dist/components/core/form/fields/SolidSelectionStaticField.d.ts.map +1 -1
  184. package/dist/components/core/form/fields/SolidSelectionStaticField.js +2 -2
  185. package/dist/components/core/form/fields/SolidSelectionStaticField.js.map +1 -1
  186. package/dist/components/core/form/fields/SolidShortTextField.d.ts.map +1 -1
  187. package/dist/components/core/form/fields/SolidShortTextField.js +1 -1
  188. package/dist/components/core/form/fields/SolidShortTextField.js.map +1 -1
  189. package/dist/components/core/form/fields/SolidTimeField.d.ts.map +1 -1
  190. package/dist/components/core/form/fields/SolidTimeField.js +2 -2
  191. package/dist/components/core/form/fields/SolidTimeField.js.map +1 -1
  192. package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.d.ts.map +1 -1
  193. package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.js +7 -7
  194. package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.js.map +1 -1
  195. package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.d.ts.map +1 -1
  196. package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.js +3 -3
  197. package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.js.map +1 -1
  198. package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.d.ts.map +1 -1
  199. package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.js +2 -2
  200. package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.js.map +1 -1
  201. package/dist/components/core/kanban/KanbanBoard.d.ts +1 -1
  202. package/dist/components/core/kanban/KanbanBoard.d.ts.map +1 -1
  203. package/dist/components/core/kanban/KanbanBoard.js +10 -10
  204. package/dist/components/core/kanban/KanbanBoard.js.map +1 -1
  205. package/dist/components/core/kanban/KanbanCard.d.ts.map +1 -1
  206. package/dist/components/core/kanban/KanbanCard.js.map +1 -1
  207. package/dist/components/core/kanban/KanbanColumn.d.ts.map +1 -1
  208. package/dist/components/core/kanban/KanbanColumn.js +2 -2
  209. package/dist/components/core/kanban/KanbanColumn.js.map +1 -1
  210. package/dist/components/core/kanban/SolidKanbanView.d.ts.map +1 -1
  211. package/dist/components/core/kanban/SolidKanbanView.js +121 -210
  212. package/dist/components/core/kanban/SolidKanbanView.js.map +1 -1
  213. package/dist/components/core/list/SolidListView.d.ts.map +1 -1
  214. package/dist/components/core/list/SolidListView.js +302 -53
  215. package/dist/components/core/list/SolidListView.js.map +1 -1
  216. package/dist/components/core/list/SolidListViewColumn.d.ts.map +1 -1
  217. package/dist/components/core/list/SolidListViewColumn.js +12 -12
  218. package/dist/components/core/list/SolidListViewColumn.js.map +1 -1
  219. package/dist/components/core/list/SolidListingHeader.d.ts.map +1 -1
  220. package/dist/components/core/list/SolidListingHeader.js.map +1 -1
  221. package/dist/components/core/list/SolidManyToOneFilterElement.d.ts.map +1 -1
  222. package/dist/components/core/list/SolidManyToOneFilterElement.js +1 -2
  223. package/dist/components/core/list/SolidManyToOneFilterElement.js.map +1 -1
  224. package/dist/components/core/list/SolidSelectionDynamicFilterElement.js +2 -2
  225. package/dist/components/core/list/SolidSelectionDynamicFilterElement.js.map +1 -1
  226. package/dist/components/core/list/SolidSelectionStaticFilterElement.d.ts.map +1 -1
  227. package/dist/components/core/list/SolidSelectionStaticFilterElement.js.map +1 -1
  228. package/dist/components/core/list/SolidVarInputsFilterElement.js +1 -1
  229. package/dist/components/core/list/SolidVarInputsFilterElement.js.map +1 -1
  230. package/dist/components/core/list/columns/SolidBooleanColumn.d.ts.map +1 -1
  231. package/dist/components/core/list/columns/SolidBooleanColumn.js +3 -1
  232. package/dist/components/core/list/columns/SolidBooleanColumn.js.map +1 -1
  233. package/dist/components/core/list/columns/SolidComputedColumn.js +2 -2
  234. package/dist/components/core/list/columns/SolidComputedColumn.js.map +1 -1
  235. package/dist/components/core/list/columns/SolidDateColumn.d.ts +1 -1
  236. package/dist/components/core/list/columns/SolidDateColumn.d.ts.map +1 -1
  237. package/dist/components/core/list/columns/SolidDateColumn.js +2 -2
  238. package/dist/components/core/list/columns/SolidDateColumn.js.map +1 -1
  239. package/dist/components/core/list/columns/SolidDatetimeColumn.d.ts.map +1 -1
  240. package/dist/components/core/list/columns/SolidDatetimeColumn.js +1 -1
  241. package/dist/components/core/list/columns/SolidDatetimeColumn.js.map +1 -1
  242. package/dist/components/core/list/columns/SolidIdColumn.d.ts.map +1 -1
  243. package/dist/components/core/list/columns/SolidIdColumn.js +1 -1
  244. package/dist/components/core/list/columns/SolidIdColumn.js.map +1 -1
  245. package/dist/components/core/list/columns/SolidIntColumn.d.ts.map +1 -1
  246. package/dist/components/core/list/columns/SolidIntColumn.js +2 -2
  247. package/dist/components/core/list/columns/SolidIntColumn.js.map +1 -1
  248. package/dist/components/core/list/columns/SolidSelectionDynamicColumn.d.ts.map +1 -1
  249. package/dist/components/core/list/columns/SolidSelectionDynamicColumn.js +1 -1
  250. package/dist/components/core/list/columns/SolidSelectionDynamicColumn.js.map +1 -1
  251. package/dist/components/core/list/columns/SolidSelectionStaticColumn.d.ts.map +1 -1
  252. package/dist/components/core/list/columns/SolidSelectionStaticColumn.js +4 -2
  253. package/dist/components/core/list/columns/SolidSelectionStaticColumn.js.map +1 -1
  254. package/dist/components/core/list/columns/SolidShortTextColumn.d.ts.map +1 -1
  255. package/dist/components/core/list/columns/SolidShortTextColumn.js +7 -3
  256. package/dist/components/core/list/columns/SolidShortTextColumn.js.map +1 -1
  257. package/dist/components/core/list/columns/SolidTimeColumn.d.ts.map +1 -1
  258. package/dist/components/core/list/columns/SolidTimeColumn.js +4 -2
  259. package/dist/components/core/list/columns/SolidTimeColumn.js.map +1 -1
  260. package/dist/components/core/list/columns/SolidUuidColumn.d.ts.map +1 -1
  261. package/dist/components/core/list/columns/SolidUuidColumn.js +4 -2
  262. package/dist/components/core/list/columns/SolidUuidColumn.js.map +1 -1
  263. package/dist/components/core/list/columns/relations/SolidRelationManyToOneColumn.d.ts.map +1 -1
  264. package/dist/components/core/list/columns/relations/SolidRelationManyToOneColumn.js +1 -1
  265. package/dist/components/core/list/columns/relations/SolidRelationManyToOneColumn.js.map +1 -1
  266. package/dist/components/core/model/CreateModel.js +8 -8
  267. package/dist/components/core/model/CreateModel.js.map +1 -1
  268. package/dist/components/core/model/FieldMetaData.d.ts.map +1 -1
  269. package/dist/components/core/model/FieldMetaData.js +6 -6
  270. package/dist/components/core/model/FieldMetaData.js.map +1 -1
  271. package/dist/components/core/model/FieldMetaDataForm.js +23 -23
  272. package/dist/components/core/model/FieldMetaDataForm.js.map +1 -1
  273. package/dist/components/core/model/FieldSelector.d.ts.map +1 -1
  274. package/dist/components/core/model/FieldSelector.js.map +1 -1
  275. package/dist/components/core/model/ModelListViewData.d.ts.map +1 -1
  276. package/dist/components/core/model/ModelListViewData.js +7 -7
  277. package/dist/components/core/model/ModelListViewData.js.map +1 -1
  278. package/dist/components/core/model/ModelMetaData.d.ts.map +1 -1
  279. package/dist/components/core/model/ModelMetaData.js +9 -9
  280. package/dist/components/core/model/ModelMetaData.js.map +1 -1
  281. package/dist/components/core/module/CreateModule.d.ts.map +1 -1
  282. package/dist/components/core/module/CreateModule.js +18 -18
  283. package/dist/components/core/module/CreateModule.js.map +1 -1
  284. package/dist/components/core/module/ModuleListViewData.d.ts.map +1 -1
  285. package/dist/components/core/module/ModuleListViewData.js +8 -8
  286. package/dist/components/core/module/ModuleListViewData.js.map +1 -1
  287. package/dist/components/core/users/CreateUser.js +11 -11
  288. package/dist/components/core/users/CreateUser.js.map +1 -1
  289. package/dist/components/core/users/CreateUserRole.d.ts.map +1 -1
  290. package/dist/components/core/users/CreateUserRole.js +9 -9
  291. package/dist/components/core/users/CreateUserRole.js.map +1 -1
  292. package/dist/components/core/users/UserListView.d.ts.map +1 -1
  293. package/dist/components/core/users/UserListView.js +7 -7
  294. package/dist/components/core/users/UserListView.js.map +1 -1
  295. package/dist/components/layout/AdminSidebar.js.map +1 -1
  296. package/dist/components/layout/AppConfig.d.ts +4 -0
  297. package/dist/components/layout/AppConfig.d.ts.map +1 -0
  298. package/dist/components/layout/AppConfig.js +57 -0
  299. package/dist/components/layout/AppConfig.js.map +1 -0
  300. package/dist/components/layout/AppSidebar.d.ts +3 -0
  301. package/dist/components/layout/AppSidebar.d.ts.map +1 -0
  302. package/dist/components/layout/AppSidebar.js +75 -0
  303. package/dist/components/layout/AppSidebar.js.map +1 -0
  304. package/dist/components/layout/ButtonLoader.d.ts.map +1 -1
  305. package/dist/components/layout/ButtonLoader.js.map +1 -1
  306. package/dist/components/layout/CustomPagination.d.ts +0 -6
  307. package/dist/components/layout/CustomPagination.d.ts.map +1 -1
  308. package/dist/components/layout/CustomPagination.js +48 -27
  309. package/dist/components/layout/CustomPagination.js.map +1 -1
  310. package/dist/components/layout/FilterMenu.d.ts.map +1 -1
  311. package/dist/components/layout/FilterMenu.js +1 -2
  312. package/dist/components/layout/FilterMenu.js.map +1 -1
  313. package/dist/components/layout/GlobalSearch.js.map +1 -1
  314. package/dist/components/layout/ListingHeader.js +2 -2
  315. package/dist/components/layout/ListingHeader.js.map +1 -1
  316. package/dist/components/layout/context/layoutcontext.d.ts +5 -0
  317. package/dist/components/layout/context/layoutcontext.d.ts.map +1 -0
  318. package/dist/components/layout/context/layoutcontext.js +56 -0
  319. package/dist/components/layout/context/layoutcontext.js.map +1 -0
  320. package/dist/components/layout/navbar-one.d.ts.map +1 -1
  321. package/dist/components/layout/navbar-one.js +13 -11
  322. package/dist/components/layout/navbar-one.js.map +1 -1
  323. package/dist/components/layout/navbar-two-menu.d.ts.map +1 -1
  324. package/dist/components/layout/navbar-two-menu.js +7 -7
  325. package/dist/components/layout/navbar-two-menu.js.map +1 -1
  326. package/dist/components/layout/navbar-two.js +1 -1
  327. package/dist/components/layout/navbar-two.js.map +1 -1
  328. package/dist/components/layout/user-profile-menu.d.ts.map +1 -1
  329. package/dist/components/layout/user-profile-menu.js +38 -6
  330. package/dist/components/layout/user-profile-menu.js.map +1 -1
  331. package/dist/components/modelsComponents/filterIcon.d.ts.map +1 -1
  332. package/dist/components/modelsComponents/filterIcon.js.map +1 -1
  333. package/dist/components/tables/ListViewTable.d.ts.map +1 -1
  334. package/dist/components/tables/ListViewTable.js +8 -7
  335. package/dist/components/tables/ListViewTable.js.map +1 -1
  336. package/dist/helpers/helpers.d.ts +1 -1
  337. package/dist/helpers/helpers.d.ts.map +1 -1
  338. package/dist/index.d.ts +19 -14
  339. package/dist/index.d.ts.map +1 -1
  340. package/dist/index.js +43 -35
  341. package/dist/index.js.map +1 -1
  342. package/package.json +3 -2
  343. package/src/components/CustomFooter/CustomFooter.tsx +2 -2
  344. package/src/components/CustomFooter/FooterForm.tsx +2 -2
  345. package/src/components/auth/SolidForgotPassword.tsx +124 -0
  346. package/src/components/auth/SolidLogin.tsx +156 -0
  347. package/src/components/auth/SolidOTPVerify.tsx +127 -0
  348. package/src/components/auth/SolidRegister.tsx +221 -0
  349. package/src/components/auth/SolidResetPassword.tsx +160 -0
  350. package/src/components/core/common/FilterComponent.tsx +87 -57
  351. package/src/components/core/common/SolidConfigureLayoutElement.tsx +12 -12
  352. package/src/components/core/common/SolidCreateButton.tsx +1 -1
  353. package/src/components/core/common/SolidGlobalSearchElement.tsx +33 -13
  354. package/src/components/core/common/SolidLayoutViews.tsx +87 -0
  355. package/src/components/core/common/SolidListViewOptions.tsx +31 -0
  356. package/src/components/core/common/SolidSearchBox.tsx +1 -1
  357. package/src/components/core/field/FieldListViewData.tsx +10 -10
  358. package/src/components/core/filter/SolidFilterFields.tsx +32 -35
  359. package/src/components/core/filter/SolidManyToOneFilterElement.tsx +2 -2
  360. package/src/components/core/filter/SolidSelectionDynamicFilterElement.tsx +0 -1
  361. package/src/components/core/filter/SolidSelectionStaticFilterElement.tsx +0 -1
  362. package/src/components/core/filter/SolidVarInputsFilterElement.tsx +2 -4
  363. package/src/components/core/filter/{columns → fields}/SolidBigintField.tsx +1 -1
  364. package/src/components/core/filter/{columns → fields}/SolidBooleanField.tsx +6 -7
  365. package/src/components/core/filter/{columns → fields}/SolidComputedField.tsx +4 -4
  366. package/src/components/core/filter/{columns → fields}/SolidDateField.tsx +12 -13
  367. package/src/components/core/filter/{columns → fields}/SolidDatetimeField.tsx +10 -7
  368. package/src/components/core/filter/{columns → fields}/SolidDecimalField.tsx +1 -2
  369. package/src/components/core/filter/{columns → fields}/SolidExternalIdField.tsx +6 -9
  370. package/src/components/core/filter/{columns → fields}/SolidFloatField.tsx +1 -1
  371. package/src/components/core/filter/{columns → fields}/SolidIdField.tsx +8 -10
  372. package/src/components/core/filter/{columns → fields}/SolidIntField.tsx +12 -14
  373. package/src/components/core/filter/{columns → fields}/SolidLongTextField.tsx +1 -1
  374. package/src/components/core/filter/{columns → fields}/SolidMediaMultipleField.tsx +12 -15
  375. package/src/components/core/filter/{columns → fields}/SolidMediaSingleField.tsx +12 -14
  376. package/src/components/core/filter/{columns → fields}/SolidRelationField.tsx +1 -1
  377. package/src/components/core/filter/{columns → fields}/SolidRichTextField.tsx +1 -1
  378. package/src/components/core/filter/{columns → fields}/SolidSelectionDynamicField.tsx +6 -9
  379. package/src/components/core/filter/{columns → fields}/SolidSelectionStaticField.tsx +7 -9
  380. package/src/components/core/filter/{columns → fields}/SolidShortTextField.tsx +12 -14
  381. package/src/components/core/filter/{columns → fields}/SolidTimeField.tsx +5 -6
  382. package/src/components/core/filter/{columns → fields}/SolidUuidField.tsx +6 -8
  383. package/src/components/core/filter/{columns → fields}/relations/SolidRelationManyToOneField.tsx +6 -7
  384. package/src/components/core/form/SolidFormView.tsx +27 -26
  385. package/src/components/core/form/fields/ISolidField.tsx +1 -1
  386. package/src/components/core/form/fields/SolidBooleanField.tsx +3 -5
  387. package/src/components/core/form/fields/SolidDateField.tsx +4 -5
  388. package/src/components/core/form/fields/SolidDateTimeField.tsx +4 -5
  389. package/src/components/core/form/fields/SolidDecimalField.tsx +3 -5
  390. package/src/components/core/form/fields/SolidIntegerField.tsx +3 -5
  391. package/src/components/core/form/fields/SolidJsonField.tsx +3 -9
  392. package/src/components/core/form/fields/SolidLongTextField.tsx +3 -4
  393. package/src/components/core/form/fields/SolidMediaMultipleField.tsx +7 -8
  394. package/src/components/core/form/fields/SolidMediaSingleField.tsx +7 -8
  395. package/src/components/core/form/fields/SolidRelationField.tsx +1 -1
  396. package/src/components/core/form/fields/SolidRichTextField.tsx +4 -6
  397. package/src/components/core/form/fields/SolidSelectionDynamicField.tsx +5 -6
  398. package/src/components/core/form/fields/SolidSelectionStaticField.tsx +4 -6
  399. package/src/components/core/form/fields/SolidShortTextField.tsx +3 -4
  400. package/src/components/core/form/fields/SolidTimeField.tsx +4 -5
  401. package/src/components/core/form/fields/relations/SolidRelationManyToManyField.tsx +9 -12
  402. package/src/components/core/form/fields/relations/SolidRelationManyToOneField.tsx +5 -6
  403. package/src/components/core/form/fields/relations/SolidRelationOneToManyField.tsx +4 -10
  404. package/src/components/core/kanban/KanbanBoard.tsx +4 -2
  405. package/src/components/core/kanban/KanbanCard.tsx +1 -1
  406. package/src/components/core/kanban/KanbanColumn.tsx +2 -3
  407. package/src/components/core/kanban/SolidKanbanView.tsx +121 -262
  408. package/src/components/core/list/SolidListView.tsx +408 -86
  409. package/src/components/core/list/SolidListViewColumn.tsx +12 -13
  410. package/src/components/core/list/SolidListingHeader.tsx +1 -2
  411. package/src/components/core/list/SolidManyToOneFilterElement.tsx +1 -2
  412. package/src/components/core/list/SolidSelectionDynamicFilterElement.tsx +2 -2
  413. package/src/components/core/list/SolidSelectionStaticFilterElement.tsx +0 -2
  414. package/src/components/core/list/SolidVarInputsFilterElement.tsx +3 -3
  415. package/src/components/core/list/columns/SolidBooleanColumn.tsx +2 -7
  416. package/src/components/core/list/columns/SolidComputedColumn.tsx +2 -2
  417. package/src/components/core/list/columns/SolidDateColumn.tsx +3 -4
  418. package/src/components/core/list/columns/SolidDatetimeColumn.tsx +2 -3
  419. package/src/components/core/list/columns/SolidIdColumn.tsx +3 -4
  420. package/src/components/core/list/columns/SolidIntColumn.tsx +3 -4
  421. package/src/components/core/list/columns/SolidSelectionDynamicColumn.tsx +3 -4
  422. package/src/components/core/list/columns/SolidSelectionStaticColumn.tsx +4 -5
  423. package/src/components/core/list/columns/SolidShortTextColumn.tsx +11 -7
  424. package/src/components/core/list/columns/SolidTimeColumn.tsx +3 -5
  425. package/src/components/core/list/columns/SolidUuidColumn.tsx +4 -5
  426. package/src/components/core/list/columns/relations/SolidRelationManyToOneColumn.tsx +3 -4
  427. package/src/components/core/model/CreateModel.tsx +9 -9
  428. package/src/components/core/model/FieldMetaData.tsx +7 -9
  429. package/src/components/core/model/FieldMetaDataForm.tsx +23 -23
  430. package/src/components/core/model/FieldSelector.tsx +1 -3
  431. package/src/components/core/model/ModelListViewData.tsx +11 -16
  432. package/src/components/core/model/ModelMetaData.tsx +9 -13
  433. package/src/components/core/module/CreateModule.tsx +18 -20
  434. package/src/components/core/module/ModuleListViewData.tsx +10 -19
  435. package/src/components/core/users/CreateUser.tsx +12 -12
  436. package/src/components/core/users/CreateUserRole.tsx +9 -14
  437. package/src/components/core/users/UserListView.tsx +9 -10
  438. package/src/components/layout/AdminSidebar.tsx +1 -1
  439. package/src/components/layout/AppConfig.tsx +103 -0
  440. package/src/components/layout/AppSidebar.tsx +170 -0
  441. package/src/components/layout/ButtonLoader.tsx +0 -1
  442. package/src/components/layout/CustomPagination.tsx +55 -55
  443. package/src/components/layout/FilterMenu.tsx +1 -2
  444. package/src/components/layout/GlobalSearch.tsx +4 -4
  445. package/src/components/layout/ListingHeader.tsx +2 -2
  446. package/src/components/layout/context/layoutcontext.tsx +52 -0
  447. package/src/components/layout/navbar-one.tsx +8 -9
  448. package/src/components/layout/navbar-two-menu.tsx +14 -11
  449. package/src/components/layout/navbar-two.tsx +1 -1
  450. package/src/components/layout/user-profile-menu.tsx +74 -189
  451. package/src/components/modelsComponents/filterIcon.tsx +0 -1
  452. package/src/components/tables/ListViewTable.tsx +10 -9
  453. package/src/index.ts +157 -144
  454. package/src/types/index.d.ts +26 -0
  455. package/src/types/layout.d.ts +94 -0
  456. package/src/types/next-auth.d.ts +0 -0
  457. package/dist/components/core/kanban/SolidKanbanFilter.d.ts +0 -2
  458. package/dist/components/core/kanban/SolidKanbanFilter.d.ts.map +0 -1
  459. package/dist/components/core/kanban/SolidKanbanViewSearchColumn.d.ts +0 -10
  460. package/dist/components/core/kanban/SolidKanbanViewSearchColumn.d.ts.map +0 -1
  461. package/dist/components/core/kanban/SolidManyToOneFilterElement.d.ts +0 -2
  462. package/dist/components/core/kanban/SolidManyToOneFilterElement.d.ts.map +0 -1
  463. package/dist/components/core/kanban/SolidSelectionDynamicFilterElement.d.ts +0 -2
  464. package/dist/components/core/kanban/SolidSelectionDynamicFilterElement.d.ts.map +0 -1
  465. package/dist/components/core/kanban/SolidSelectionStaticFilterElement.d.ts +0 -2
  466. package/dist/components/core/kanban/SolidSelectionStaticFilterElement.d.ts.map +0 -1
  467. package/dist/components/core/kanban/SolidVarInputsFilterElement.d.ts +0 -12
  468. package/dist/components/core/kanban/SolidVarInputsFilterElement.d.ts.map +0 -1
  469. package/dist/components/core/kanban/columns/SolidBigintColumn.d.ts +0 -4
  470. package/dist/components/core/kanban/columns/SolidBigintColumn.d.ts.map +0 -1
  471. package/dist/components/core/kanban/columns/SolidBooleanColumn.d.ts +0 -4
  472. package/dist/components/core/kanban/columns/SolidBooleanColumn.d.ts.map +0 -1
  473. package/dist/components/core/kanban/columns/SolidComputedColumn.d.ts +0 -4
  474. package/dist/components/core/kanban/columns/SolidComputedColumn.d.ts.map +0 -1
  475. package/dist/components/core/kanban/columns/SolidDateColumn.d.ts +0 -9
  476. package/dist/components/core/kanban/columns/SolidDateColumn.d.ts.map +0 -1
  477. package/dist/components/core/kanban/columns/SolidDatetimeColumn.d.ts +0 -4
  478. package/dist/components/core/kanban/columns/SolidDatetimeColumn.d.ts.map +0 -1
  479. package/dist/components/core/kanban/columns/SolidDecimalColumn.d.ts +0 -4
  480. package/dist/components/core/kanban/columns/SolidDecimalColumn.d.ts.map +0 -1
  481. package/dist/components/core/kanban/columns/SolidExternalIdColumn.d.ts +0 -4
  482. package/dist/components/core/kanban/columns/SolidExternalIdColumn.d.ts.map +0 -1
  483. package/dist/components/core/kanban/columns/SolidFloatColumn.d.ts +0 -4
  484. package/dist/components/core/kanban/columns/SolidFloatColumn.d.ts.map +0 -1
  485. package/dist/components/core/kanban/columns/SolidIdColumn.d.ts +0 -4
  486. package/dist/components/core/kanban/columns/SolidIdColumn.d.ts.map +0 -1
  487. package/dist/components/core/kanban/columns/SolidIntColumn.d.ts +0 -4
  488. package/dist/components/core/kanban/columns/SolidIntColumn.d.ts.map +0 -1
  489. package/dist/components/core/kanban/columns/SolidLongTextColumn.d.ts +0 -4
  490. package/dist/components/core/kanban/columns/SolidLongTextColumn.d.ts.map +0 -1
  491. package/dist/components/core/kanban/columns/SolidMediaMultipleColumn.d.ts +0 -4
  492. package/dist/components/core/kanban/columns/SolidMediaMultipleColumn.d.ts.map +0 -1
  493. package/dist/components/core/kanban/columns/SolidMediaSingleColumn.d.ts +0 -4
  494. package/dist/components/core/kanban/columns/SolidMediaSingleColumn.d.ts.map +0 -1
  495. package/dist/components/core/kanban/columns/SolidRelationColumn.d.ts +0 -4
  496. package/dist/components/core/kanban/columns/SolidRelationColumn.d.ts.map +0 -1
  497. package/dist/components/core/kanban/columns/SolidRichTextColumn.d.ts +0 -4
  498. package/dist/components/core/kanban/columns/SolidRichTextColumn.d.ts.map +0 -1
  499. package/dist/components/core/kanban/columns/SolidSelectionDynamicColumn.d.ts +0 -4
  500. package/dist/components/core/kanban/columns/SolidSelectionDynamicColumn.d.ts.map +0 -1
  501. package/dist/components/core/kanban/columns/SolidSelectionStaticColumn.d.ts +0 -4
  502. package/dist/components/core/kanban/columns/SolidSelectionStaticColumn.d.ts.map +0 -1
  503. package/dist/components/core/kanban/columns/SolidShortTextColumn.d.ts +0 -4
  504. package/dist/components/core/kanban/columns/SolidShortTextColumn.d.ts.map +0 -1
  505. package/dist/components/core/kanban/columns/SolidTimeColumn.d.ts +0 -4
  506. package/dist/components/core/kanban/columns/SolidTimeColumn.d.ts.map +0 -1
  507. package/dist/components/core/kanban/columns/SolidUuidColumn.d.ts +0 -4
  508. package/dist/components/core/kanban/columns/SolidUuidColumn.d.ts.map +0 -1
  509. package/dist/components/core/kanban/columns/relations/SolidRelationManyToOneColumn.d.ts +0 -4
  510. package/dist/components/core/kanban/columns/relations/SolidRelationManyToOneColumn.d.ts.map +0 -1
  511. package/dist/redux/hooks.d.ts +0 -2
  512. package/dist/redux/hooks.d.ts.map +0 -1
  513. package/dist/redux/store.d.ts +0 -375
  514. package/dist/redux/store.d.ts.map +0 -1
  515. package/solidstarters-solid-core-ui-1.0.0.tgz +0 -0
  516. package/solidstarters-solid-core-ui-1.0.1.tgz +0 -0
  517. package/src/components/common/FilterComponent.tsx +0 -428
@@ -1,6 +1,8 @@
1
- 'use client';
1
+ // @ts-nocheck
2
+
2
3
  "use client";
3
- import React, { useState, useEffect } from "react";
4
+
5
+ import React, { useState, useEffect, useRef } from "react";
4
6
  import {
5
7
  DataTable,
6
8
  DataTableFilterMeta,
@@ -15,7 +17,7 @@ import { Dialog } from "primereact/dialog";
15
17
  import { createSolidEntityApi } from "@/redux/api/solidEntityApi";
16
18
  import { useGetSolidViewLayoutQuery } from "@/redux/api/solidViewApi";
17
19
  import { SolidListViewColumn } from "./SolidListViewColumn";
18
- import { SolidConfigureLayoutElement } from "../common/SolidConfigureLayoutElement";
20
+ // import { SolidListViewOptions } from "../common/SolidListviewOptions";
19
21
  import { SolidCreateButton } from "../common/SolidCreateButton";
20
22
  import { SolidGlobalSearchElement } from "../common/SolidGlobalSearchElement";
21
23
  import { pascalCase } from "change-case";
@@ -23,6 +25,13 @@ import { useLazyCheckIfPermissionExistsQuery } from "@/redux/api/userApi";
23
25
  import { createPermission, deletePermission, updatePermission } from "@/helpers/permissions";
24
26
  import { useRouter } from "next/navigation";
25
27
  import { ListViewRowActionPopup } from "./ListViewRowActionPopup";
28
+ import FilterComponent, { FilterOperator, FilterRule, FilterRuleType } from "@/components/core/common/FilterComponent";
29
+ import { SolidLayoutViews } from '../common/SolidLayoutViews'
30
+ import { FilterIcon } from '../../modelsComponents/filterIcon';
31
+ import { OverlayPanel } from "primereact/overlaypanel";
32
+ const getRandomInt = (min: number, max: number) => {
33
+ return Math.floor(Math.random() * (max - min + 1)) + min;
34
+ }
26
35
 
27
36
  type SolidListViewParams = {
28
37
  moduleName: string;
@@ -34,11 +43,215 @@ type SolidListViewParams = {
34
43
  customFilter?: any
35
44
  };
36
45
 
46
+ // const transformRulesToFilters = (filterRules: any) => {
47
+ // if (!filterRules || !filterRules.children) return {};
48
+
49
+ // let operatorKey = filterRules.matchOperator === "and" ? "$and" : "$or";
50
+
51
+ // let filters = filterRules.children.map((child: any) => {
52
+ // if (child.type === "rule") {
53
+ // let filterValue ;
54
+ // if(child.value){
55
+
56
+ // if(child.value.length === 1){
57
+ // if (typeof child.value[0] === "object" && child.value[0] !== null) {
58
+ // filterValue = [child.value[0].value];
59
+ // }else{
60
+ // filterValue = child.value[0];
61
+ // }
62
+ // }else{
63
+ // if (typeof child.value[0] === "object" && child.value[0] !== null) {
64
+ // filterValue = child.value.map((i:any) => i.value);
65
+ // }else{
66
+ // filterValue = child.value;
67
+ // }
68
+ // }
69
+ // }
70
+
71
+ // let ruleFilter = { [child.fieldName]: { [child.matchMode]: filterValue} };
72
+ // // If the rule has children, process them recursively
73
+ // if (child.children && child.children.length > 0) {
74
+ // let childFilters = transformRulesToFilters({ matchOperator: "and", children: child.children }).filters;
75
+ // return { [operatorKey]: [ruleFilter, childFilters] };
76
+ // }
77
+
78
+ // return ruleFilter;
79
+ // } else if (child.type === "rule_group") {
80
+ // return transformRulesToFilters(child).filters; // Recursively process rule groups
81
+ // }
82
+ // }).filter(Boolean);
83
+
84
+ // return { filters: { [operatorKey]: filters } };
85
+
86
+
87
+ // }
88
+ const transformRulesToFilters = (input: any) => {
89
+
90
+ // Helper function to process individual rules
91
+ const processRule = (rule) => {
92
+ if (rule.value.length > 0) {
93
+
94
+ // Ensure rule.value is always an array
95
+ let values = typeof rule.value[0] === "object" ? rule.value.map((i: any) => i.value) : rule.value;
96
+ if (rule.matchMode !== '$in' && rule.matchMode !== '$notIn' && rule.matchMode !== '$between') {
97
+ values = values[0];
98
+ }
99
+ // Rule transformation
100
+ let transformedRule = {
101
+ [rule.fieldName]: {
102
+ [rule.matchMode]: values // Assuming `value` is always an array with `value` and `label`
103
+ }
104
+ };
105
+
106
+ // If the rule has children (which means it's a rule group), process them
107
+ let processedFields;
108
+ if (rule.children && rule.children.length > 0) {
109
+ processedFields = rule.children.map(child => processRuleGroup(child));
110
+ }
111
+ if (processedFields) {
112
+ return { ...transformedRule, processedFields }
113
+ }
114
+ return { ...transformedRule }
115
+ }
116
+
117
+ };
118
+
119
+ // Helper function to process rule groups
120
+ const processRuleGroup = (ruleGroup) => {
121
+ const operator = ruleGroup.matchOperator === 'or' ? '$or' : '$and';
122
+ const children = ruleGroup.children.map(child => {
123
+ if (child.type === 'rule') {
124
+ // Process the rule
125
+ return processRule(child);
126
+ } else if (child.type === 'rule_group') {
127
+ // Process the rule group recursively
128
+ return processRuleGroup(child);
129
+ }
130
+ });
131
+
132
+ return {
133
+ [operator]: children
134
+ };
135
+ };
136
+
137
+ // Start processing the root rule group
138
+ const filterObject = processRuleGroup(input);
139
+
140
+ function liftProcessedFields(filters) {
141
+ if (!filters || typeof filters !== 'object') return filters;
142
+
143
+ function processArray(arr) {
144
+ let newArr = [];
145
+ for (let obj of arr) {
146
+ if (obj.processedFields) {
147
+ let processed = processArray(obj.processedFields); // Recursively process nested processedFields
148
+ delete obj.processedFields;
149
+ newArr.push(obj, ...processed);
150
+ } else {
151
+ newArr.push(obj);
152
+ }
153
+
154
+ for (let key in obj) {
155
+ if (Array.isArray(obj[key])) {
156
+ obj[key] = processArray(obj[key]);
157
+ }
158
+ }
159
+ }
160
+ return newArr;
161
+ }
162
+
163
+ for (let key in filters) {
164
+ if (Array.isArray(filters[key])) {
165
+ filters[key] = processArray(filters[key]);
166
+ }
167
+ }
168
+
169
+ return filters;
170
+ } return {
171
+ filters: liftProcessedFields(filterObject)
172
+ };
173
+ }
174
+
175
+
37
176
  export const SolidListView = (params: SolidListViewParams) => {
38
177
 
178
+ const initialState: FilterRule[] = [
179
+ {
180
+ "id": 1,
181
+ "type": "rule_group",
182
+ "matchOperator": "or",
183
+ "parentRule": null,
184
+ "children": [
185
+ {
186
+ "id": 1738397527814,
187
+ "type": "rule",
188
+ "fieldName": "module",
189
+ "matchMode": "$in",
190
+ "value": [
191
+ {
192
+ "label": "solid-core",
193
+ "value": 1
194
+ }
195
+ ],
196
+ "parentRule": 1,
197
+ "children": [
198
+ {
199
+ "id": 1738397555900,
200
+ "type": "rule_group",
201
+ "matchOperator": "and",
202
+ "parentRule": 1738397527814,
203
+ "children": [
204
+ {
205
+ "id": 1738397556184,
206
+ "type": "rule",
207
+ "fieldName": "name",
208
+ "matchMode": "$startsWithi",
209
+ "value": [
210
+ "social"
211
+ ],
212
+ "parentRule": 1738397555900,
213
+ "children": []
214
+ },
215
+ {
216
+ "id": 1738397556147,
217
+ "type": "rule",
218
+ "fieldName": "displayName",
219
+ "matchMode": "$startsWithi",
220
+ "value": [
221
+ "social"
222
+ ],
223
+ "parentRule": 1738397555900,
224
+ "children": []
225
+ }
226
+ ]
227
+ }
228
+ ]
229
+ },
230
+ {
231
+ "id": 1738397547577,
232
+ "type": "rule",
233
+ "fieldName": "module",
234
+ "matchMode": "$in",
235
+ "value": [
236
+ {
237
+ "label": "srmd-tracker",
238
+ "value": 4
239
+ }
240
+ ],
241
+ "parentRule": 1,
242
+ "children": []
243
+ }
244
+ ]
245
+ }
246
+ ];
247
+
248
+
39
249
  const router = useRouter()
40
250
  // TODO: The initial filter state will be created based on the fields which are present on this list view.
41
251
  const [filters, setFilters] = useState<DataTableFilterMeta>({});
252
+ const [customFilter, setCustomFilter] = useState<FilterRule[]>(initialState);
253
+ const [showGlobalSearchElement, setShowGlobalSearchElement] = useState<boolean>(false);
254
+
42
255
  const [toPopulate, setToPopulate] = useState<string[]>([]);
43
256
  const [actionsAllowed, setActionsAllowed] = useState<string[]>([]);
44
257
 
@@ -159,6 +372,9 @@ export const SolidListView = (params: SolidListViewParams) => {
159
372
 
160
373
 
161
374
 
375
+
376
+
377
+
162
378
  // All list view state.
163
379
  const [listViewData, setListViewData] = useState<any[]>([]);
164
380
  const [first, setFirst] = useState(0);
@@ -205,6 +421,7 @@ export const SolidListView = (params: SolidListViewParams) => {
205
421
  }
206
422
  }
207
423
  }, [solidListViewMetaData])
424
+ const [deleteSolidSingleEntiry, { isSuccess: isDeleteSolidSingleEntitySuccess }] = useDeleteSolidEntityMutation()
208
425
 
209
426
  // Delete mutation
210
427
  const [
@@ -238,7 +455,7 @@ export const SolidListView = (params: SolidListViewParams) => {
238
455
  triggerGetSolidEntities(queryString);
239
456
  setSelectedRecords([]);
240
457
  }
241
- }, [isDeleteSolidEntitiesSucess, toPopulate]);
458
+ }, [isDeleteSolidEntitiesSucess, isDeleteSolidSingleEntitySuccess, toPopulate]);
242
459
 
243
460
  // Handle pagination event.
244
461
  const onPageChange = (event: any) => {
@@ -402,6 +619,31 @@ export const SolidListView = (params: SolidListViewParams) => {
402
619
  triggerGetSolidEntities(queryString);
403
620
  };
404
621
 
622
+ //apply custom filter code
623
+ const handleApplyCustomFilter = () => {
624
+ const transformedFilter = transformRulesToFilters(customFilter[0]);
625
+ console.log("transformedFilter", transformedFilter);
626
+
627
+ if (toPopulate) {
628
+ const queryData = {
629
+ offset: 0,
630
+ limit: 25,
631
+ populate: toPopulate,
632
+ sort: [`id:desc`],
633
+ filters: { ...transformedFilter.filters }
634
+ };
635
+ if (params.embeded) {
636
+
637
+ }
638
+ const queryString = qs.stringify(queryData, {
639
+ encodeValuesOnly: true
640
+ });
641
+
642
+ triggerGetSolidEntities(queryString);
643
+ // setShowGlobalSearchElement(false)
644
+ setSelectedRecords([]);
645
+ }
646
+ }
405
647
  // handle filter...
406
648
  const onFilter = (e: any) => {
407
649
  setFilters(e.filters);
@@ -421,20 +663,67 @@ export const SolidListView = (params: SolidListViewParams) => {
421
663
  }
422
664
  };
423
665
 
666
+ const op = useRef(null)
424
667
 
425
668
  // clickable link allowing one to open the detail / form view.
426
669
  const detailsBodyTemplate = (solidViewData: any) => {
427
-
428
670
  return (
429
- <a onClick={() => {
430
- if (params.embeded == true) {
431
- params.handlePopUpOpen(solidViewData.id);
432
- } else {
433
- router.push(`${editButtonUrl}/${solidViewData.id}`)
434
- }
435
- }} rel="noopener noreferrer" className="text-sm font-bold p-0" style={{ color: "#12415D" }}>
436
- <i className="pi pi-pencil" style={{ fontSize: "1rem" }}></i>
437
- </a>
671
+ <div>
672
+
673
+ <Button
674
+ text
675
+ size="small"
676
+ className="p-0"
677
+ onClick={(e) =>
678
+ // @ts-ignore
679
+ op.current.toggle(e)}
680
+ >
681
+ <svg xmlns="http://www.w3.org/2000/svg" width="3" height="10" viewBox="0 0 4 16" fill="none">
682
+ <path d="M4 14C4 14.55 3.80417 15.0208 3.4125 15.4125C3.02083 15.8042 2.55 16 2 16C1.45 16 0.979167 15.8042 0.5875 15.4125C0.195833 15.0208 0 14.55 0 14C0 13.45 0.195833 12.9792 0.5875 12.5875C0.979167 12.1958 1.45 12 2 12C2.55 12 3.02083 12.1958 3.4125 12.5875C3.80417 12.9792 4 13.45 4 14ZM4 8C4 8.55 3.80417 9.02083 3.4125 9.4125C3.02083 9.80417 2.55 10 2 10C1.45 10 0.979167 9.80417 0.5875 9.4125C0.195833 9.02083 0 8.55 0 8C0 7.45 0.195833 6.97917 0.5875 6.5875C0.979167 6.19583 1.45 6 2 6C2.55 6 3.02083 6.19583 3.4125 6.5875C3.80417 6.97917 4 7.45 4 8ZM4 2C4 2.55 3.80417 3.02083 3.4125 3.4125C3.02083 3.80417 2.55 4 2 4C1.45 4 0.979167 3.80417 0.5875 3.4125C0.195833 3.02083 0 2.55 0 2C0 1.45 0.195833 0.979166 0.5875 0.5875C0.979167 0.195833 1.45 0 2 0C2.55 0 3.02083 0.195833 3.4125 0.5875C3.80417 0.979166 4 1.45 4 2Z" fill="#666666" />
683
+ </svg>
684
+ </Button>
685
+ <OverlayPanel ref={op} className="solid-custom-overlay" style={{ top: 10 }}>
686
+ <div className="flex flex-column gap-1 p-1">
687
+ <Button
688
+ className="w-8rem"
689
+ label="Edit"
690
+ size="small"
691
+ iconPos="left"
692
+ icon={<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
693
+ <path d="M3.33333 12.6667H4.28333L10.8 6.15L9.85 5.2L3.33333 11.7167V12.6667ZM2 14V11.1667L10.8 2.38333C10.9333 2.26111 11.0806 2.16667 11.2417 2.1C11.4028 2.03333 11.5722 2 11.75 2C11.9278 2 12.1 2.03333 12.2667 2.1C12.4333 2.16667 12.5778 2.26667 12.7 2.4L13.6167 3.33333C13.75 3.45556 13.8472 3.6 13.9083 3.76667C13.9694 3.93333 14 4.1 14 4.26667C14 4.44444 13.9694 4.61389 13.9083 4.775C13.8472 4.93611 13.75 5.08333 13.6167 5.21667L4.83333 14H2ZM10.3167 5.68333L9.85 5.2L10.8 6.15L10.3167 5.68333Z" fill="#F9F0FF" />
694
+ </svg>}
695
+ onClick={() => {
696
+ if (params.embeded == true) {
697
+ params.handlePopUpOpen(solidViewData.id);
698
+ } else {
699
+ router.push(`${editButtonUrl}/${solidViewData.id}`)
700
+ }
701
+ }}
702
+ />
703
+ <Button
704
+ text
705
+ className="w-8rem"
706
+ label="Delete"
707
+ size="small"
708
+ iconPos="left"
709
+ severity="secondary"
710
+ icon={<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
711
+ <path d="M4.66666 14C4.29999 14 3.9861 13.8694 3.72499 13.6083C3.46388 13.3472 3.33332 13.0333 3.33332 12.6667V4H2.66666V2.66667H5.99999V2H9.99999V2.66667H13.3333V4H12.6667V12.6667C12.6667 13.0333 12.5361 13.3472 12.275 13.6083C12.0139 13.8694 11.7 14 11.3333 14H4.66666ZM11.3333 4H4.66666V12.6667H11.3333V4ZM5.99999 11.3333H7.33332V5.33333H5.99999V11.3333ZM8.66666 11.3333H9.99999V5.33333H8.66666V11.3333Z" fill="#4B4D52" />
712
+ </svg>}
713
+ onClick={() => deleteSolidSingleEntiry(solidViewData.id)}
714
+ />
715
+ </div>
716
+ </OverlayPanel>
717
+ </div>
718
+ // <a onClick={() => {
719
+ // if (params.embeded == true) {
720
+ // params.handlePopUpOpen(solidViewData.id);
721
+ // } else {
722
+ // router.push(`${editButtonUrl}/${solidViewData.id}`)
723
+ // }
724
+ // }} rel="noopener noreferrer" className="text-sm font-bold p-0" style={{ color: "#12415D" }}>
725
+ // <i className="pi pi-pencil" style={{ fontSize: "1rem" }}></i>
726
+ // </a>
438
727
  );
439
728
  };
440
729
 
@@ -488,21 +777,26 @@ export const SolidListView = (params: SolidListViewParams) => {
488
777
  setListViewRowActionPopupState(false)
489
778
  }
490
779
 
780
+ const sizeOptions = [
781
+ { label: 'Compact', value: 'small', image: '/images/layout/images/compact.png' },
782
+ { label: 'Cozy', value: 'normal', image: '/images/layout/images/cozy.png' },
783
+ { label: 'Comfortable', value: 'large', image: '/images/layout/images/comfortable.png' }
784
+ ]
785
+
786
+ const viewModes = [
787
+ { label: 'List ', value: 'list', image: '/images/layout/images/cozy.png' },
788
+ { label: 'Kanban', value: 'kanban', image: '/images/layout/images/kanban.png' },
789
+ ]
790
+
791
+ const [size, setSize] = useState<string | any>(sizeOptions[1].value);
792
+ const [view, setView] = useState<string | any>(viewModes[0].value);
491
793
 
492
794
  return (
493
795
  <>
494
- <div className="flex gap-3 mb-3 align-items-center justify-content-between align-items-top">
495
- <div className="flex gap-3 align-items-center" >
796
+ <div className="page-header">
797
+ <div className="flex gap-3 align-items-center">
798
+
496
799
 
497
- {actionsAllowed.includes(`${createPermission(params.modelName)}`) && solidListViewMetaData?.data?.solidView?.layout?.attrs?.create !== false && params.embeded !== true &&
498
- <SolidCreateButton url={createButtonUrl} />
499
- }
500
- {actionsAllowed.includes(`${createPermission(params.modelName)}`) && solidListViewMetaData?.data?.solidView?.layout?.attrs?.create !== false && params.embeded == true && params.inlineCreate == true &&
501
- // < SolidCreateButton url={createButtonUrl} />
502
- <Button type="button" icon="pi pi-plus" label="Add" size='small' className='small-button'
503
- onClick={() => params.handlePopUpOpen(true)}
504
- ></Button>
505
- }
506
800
  {actionsAllowed.includes(`${deletePermission(params.modelName)}`) && solidListViewMetaData?.data?.solidView?.layout?.attrs?.delete !== false && selectedRecords.length > 0 && <Button
507
801
  type="button"
508
802
  label="Delete"
@@ -524,73 +818,101 @@ export const SolidListView = (params: SolidListViewParams) => {
524
818
  }
525
819
 
526
820
  {solidListViewMetaData?.data?.solidView?.layout?.attrs?.enableGlobalSearch === true && params.embeded === false &&
527
- <SolidGlobalSearchElement viewData={solidListViewMetaData} ></SolidGlobalSearchElement>
821
+ <SolidGlobalSearchElement viewData={solidListViewMetaData} showGlobalSearchElement={showGlobalSearchElement} setShowGlobalSearchElement={setShowGlobalSearchElement} customFilter={customFilter} setCustomFilter={setCustomFilter} handleApplyCustomFilter={handleApplyCustomFilter} ></SolidGlobalSearchElement>
528
822
  }
529
823
  </div>
530
- {params.embeded === false &&
531
- <SolidConfigureLayoutElement></SolidConfigureLayoutElement>
532
- }
824
+ <div className="flex align-items-center gap-3">
825
+
826
+ {actionsAllowed.includes(`${createPermission(params.modelName)}`) && solidListViewMetaData?.data?.solidView?.layout?.attrs?.create !== false && params.embeded !== true &&
827
+ <SolidCreateButton url={createButtonUrl} />
828
+ }
829
+ {actionsAllowed.includes(`${createPermission(params.modelName)}`) && solidListViewMetaData?.data?.solidView?.layout?.attrs?.create !== false && params.embeded == true && params.inlineCreate == true &&
830
+ // < SolidCreateButton url={createButtonUrl} />
831
+ <Button type="button" icon="pi pi-plus" label="Add" size='small' className='small-button'
832
+ onClick={() => params.handlePopUpOpen(true)}
833
+ ></Button>
834
+ }
835
+ <SolidLayoutViews
836
+ sizeOptions={sizeOptions}
837
+ setSize={setSize}
838
+ size={size}
839
+ viewModes={viewModes}
840
+ setView={setView}
841
+ view={view}
842
+ />
843
+
844
+ {/* {params.embeded === false &&
845
+ <SolidListViewOptions></SolidListViewOptions>
846
+ } */}
847
+ </div>
533
848
  </div>
534
849
  <style>{`.p-datatable .p-datatable-loading-overlay {background-color: rgba(0, 0, 0, 0.0);}`}</style>
850
+ <div className="solid-datatable-wrapper">
851
+ <DataTable
852
+ value={listViewData}
853
+ showGridlines={false}
854
+ lazy
855
+ scrollable
856
+ scrollHeight="90vh"
857
+ size={size}
858
+ resizableColumns
859
+ paginator={true}
860
+ rows={rows}
861
+ rowsPerPageOptions={solidListViewMetaData?.data?.solidView?.layout?.attrs?.pageSizeOptions}
862
+ dataKey="id"
863
+ filters={filters}
864
+ emptyMessage="No Entities found."
865
+ onFilter={onFilter}
866
+ filterDisplay="menu"
867
+ totalRecords={totalRecords}
868
+ first={first}
869
+ onPage={onPageChange}
870
+ onSort={(e: DataTableStateEvent) => onSort(e)}
871
+ sortField={sortField}
872
+ sortOrder={sortOrder === 1 || sortOrder === -1 ? sortOrder : 0}
873
+ loading={loading || isLoading}
874
+ loadingIcon="pi pi-spinner"
875
+ selection={selectedRecords}
876
+ onSelectionChange={onSelectionChange}
877
+ selectionMode="multiple"
878
+ removableSort
879
+ filterIcon={<FilterIcon />}
880
+ tableClassName="solid-data-table"
881
+ paginatorClassName="solid-paginator"
882
+ >
535
883
 
536
- <DataTable
537
- value={listViewData}
538
- showGridlines
539
- lazy
540
- size="small"
541
- paginator={true}
542
- rows={rows}
543
- rowsPerPageOptions={solidListViewMetaData?.data?.solidView?.layout?.attrs?.pageSizeOptions}
544
- dataKey="id"
545
- filters={filters}
546
- emptyMessage="No Entities found."
547
- onFilter={onFilter}
548
- filterDisplay="menu"
549
- totalRecords={totalRecords}
550
- first={first}
551
- onPage={onPageChange}
552
- onSort={(e: DataTableStateEvent) => onSort(e)}
553
- sortField={sortField}
554
- sortOrder={sortOrder === 1 || sortOrder === -1 ? sortOrder : 0}
555
- loading={loading || isLoading}
556
- loadingIcon="pi pi-spinner"
557
- selection={selectedRecords}
558
- onSelectionChange={onSelectionChange}
559
- selectionMode="multiple"
560
- removableSort
561
- >
562
-
563
- <Column selectionMode="multiple" headerStyle={{ width: "3em" }} />
884
+ <Column selectionMode="multiple" headerStyle={{ width: "3em" }} />
564
885
 
565
- {renderColumnsDynamically(listViewMetaData)}
566
- {actionsAllowed.includes(`${updatePermission(params.modelName)}`) && solidListViewMetaData?.data?.solidView?.layout?.attrs?.edit !== false &&
567
- <Column body={detailsBodyTemplate}></Column>
568
- }
569
- {solidListViewMetaData?.data?.solidView?.layout?.attrs?.rowButtons &&
570
- solidListViewMetaData?.data?.solidView?.layout?.attrs?.rowButtons.map((rowAction: any) => {
571
- return (
572
- <Column
573
- key={rowAction}
574
- body={(rowData) => (
575
- <a onClick={() => {
576
- setListRowActionData({
577
- modelName: params.modelName,
578
- moduleName: params.moduleName,
579
- rowAction: rowAction,
580
- rowData: rowData,
581
- closeListViewRowActionPopup: closeListViewRowActionPopup
582
-
583
- });
584
- setListViewRowActionPopupState(true)
585
- }
586
- }>
587
- <i className={rowAction?.attrs?.className ? rowAction?.attrs?.className : "pi pi-pencil"} /> {/* PrimeIcons pencil icon */}
588
- </a>
589
- )}
590
- />
591
- );
592
- })}
593
- </DataTable>
886
+ {renderColumnsDynamically(listViewMetaData)}
887
+ {actionsAllowed.includes(`${updatePermission(params.modelName)}`) && solidListViewMetaData?.data?.solidView?.layout?.attrs?.edit !== false &&
888
+ <Column body={detailsBodyTemplate}></Column>
889
+ }
890
+ {solidListViewMetaData?.data?.solidView?.layout?.attrs?.rowButtons &&
891
+ solidListViewMetaData?.data?.solidView?.layout?.attrs?.rowButtons.map((rowAction: any) => {
892
+ return (
893
+ <Column
894
+ key={rowAction}
895
+ body={(rowData) => (
896
+ <a onClick={() => {
897
+ setListRowActionData({
898
+ modelName: params.modelName,
899
+ moduleName: params.moduleName,
900
+ rowAction: rowAction,
901
+ rowData: rowData,
902
+ closeListViewRowActionPopup: closeListViewRowActionPopup
903
+
904
+ });
905
+ setListViewRowActionPopupState(true)
906
+ }
907
+ }>
908
+ <i className={rowAction?.attrs?.className ? rowAction?.attrs?.className : "pi pi-pencil"} /> {/* PrimeIcons pencil icon */}
909
+ </a>
910
+ )}
911
+ />
912
+ );
913
+ })}
914
+ </DataTable>
915
+ </div>
594
916
  <Dialog
595
917
  visible={isDialogVisible}
596
918
  header="Confirm Delete"
@@ -1,24 +1,23 @@
1
1
  "use client";
2
- import SolidIntColumn from "./columns/SolidIntColumn";
3
2
  import SolidBigintColumn from "./columns/SolidBigintColumn";
4
- import SolidFloatColumn from "./columns/SolidFloatColumn";
5
- import SolidDecimalColumn from "./columns/SolidDecimalColumn";
6
- import SolidShortTextColumn from "./columns/SolidShortTextColumn";
7
- import SolidLongTextColumn from "./columns/SolidLongTextColumn";
8
- import SolidRichTextColumn from "./columns/SolidRichTextColumn";
9
3
  import SolidBooleanColumn from "./columns/SolidBooleanColumn";
4
+ import SolidComputedColumn from "./columns/SolidComputedColumn";
10
5
  import SolidDateColumn from "./columns/SolidDateColumn";
11
6
  import SolidDatetimeColumn from "./columns/SolidDatetimeColumn";
12
- import SolidTimeColumn from "./columns/SolidTimeColumn";
13
- import SolidRelationColumn from "./columns/SolidRelationColumn";
14
- import SolidMediaSingleColumn from "./columns/SolidMediaSingleColumn";
7
+ import SolidDecimalColumn from "./columns/SolidDecimalColumn";
8
+ import SolidExternalIdColumn from "./columns/SolidExternalIdColumn";
9
+ import SolidFloatColumn from "./columns/SolidFloatColumn";
10
+ import SolidIntColumn from "./columns/SolidIntColumn";
11
+ import SolidLongTextColumn from "./columns/SolidLongTextColumn";
15
12
  import SolidMediaMultipleColumn from "./columns/SolidMediaMultipleColumn";
16
- import SolidSelectionStaticColumn from "./columns/SolidSelectionStaticColumn";
13
+ import SolidMediaSingleColumn from "./columns/SolidMediaSingleColumn";
14
+ import SolidRelationColumn from "./columns/SolidRelationColumn";
15
+ import SolidRichTextColumn from "./columns/SolidRichTextColumn";
17
16
  import SolidSelectionDynamicColumn from "./columns/SolidSelectionDynamicColumn";
18
- import SolidComputedColumn from "./columns/SolidComputedColumn";
19
- import SolidExternalIdColumn from "./columns/SolidExternalIdColumn";
17
+ import SolidSelectionStaticColumn from "./columns/SolidSelectionStaticColumn";
18
+ import SolidShortTextColumn from "./columns/SolidShortTextColumn";
19
+ import SolidTimeColumn from "./columns/SolidTimeColumn";
20
20
  import SolidUuidColumn from "./columns/SolidUuidColumn";
21
- import { Column } from "primereact/column";
22
21
 
23
22
  export type SolidListViewColumnParams = {
24
23
  solidListViewMetaData: any;
@@ -1,8 +1,7 @@
1
1
  'use client';
2
- import React, { } from "react";
3
2
  import { usePathname } from 'next/navigation';
4
- import FilterMenu from "@/components/layout/FilterMenu";
5
3
  import { plural } from "pluralize";
4
+ import { } from "react";
6
5
 
7
6
 
8
7
  const SolidListingHeader = () => {
@@ -1,4 +1,3 @@
1
- 'use client';
2
1
  import { createSolidEntityApi } from "@/redux/api/solidEntityApi";
3
2
  import { InputTypes } from "./SolidVarInputsFilterElement"
4
3
  import { AutoComplete, AutoCompleteCompleteEvent } from "primereact/autocomplete";
@@ -21,7 +20,7 @@ export const SolidManyToOneFilterElement = ({ value, updateInputs, index, fieldM
21
20
  limit: 10,
22
21
  filters: {
23
22
  [fieldMetadata.relationModel.userKeyField.name]: {
24
- '$containsi': event.query
23
+ $containsi: event.query
25
24
  }
26
25
  }
27
26
  };
@@ -1,8 +1,8 @@
1
1
  'use client';
2
+ import { useLazyGetSelectionDynamicValuesQuery } from "@/redux/api/fieldApi";
2
3
  import { AutoComplete, AutoCompleteCompleteEvent } from "primereact/autocomplete";
3
- import { useState } from "react";
4
4
  import qs from "qs";
5
- import { useLazyGetSelectionDynamicValuesQuery } from "@/redux/api/fieldApi";
5
+ import { useState } from "react";
6
6
 
7
7
 
8
8
  export const SolidSelectionDynamicFilterElement = ({ value, updateInputs, index, fieldMetadata }: any) => {
@@ -1,8 +1,6 @@
1
1
  'use client';
2
2
  import { AutoComplete, AutoCompleteCompleteEvent } from "primereact/autocomplete";
3
3
  import { useState } from "react";
4
- import qs from "qs";
5
- import { useLazyGetSelectionDynamicValuesQuery } from "@/redux/api/fieldApi";
6
4
 
7
5
 
8
6
  export const SolidSelectionStaticFilterElement = ({ value, updateInputs, index, fieldMetadata }: any) => {