@solidxai/core-ui 0.1.9-beta.20 → 0.1.9-beta.21

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 (470) hide show
  1. package/README.md +1 -1
  2. package/dist/components/auth/AuthLayout.d.ts.map +1 -1
  3. package/dist/components/auth/AuthLayout.js +23 -19
  4. package/dist/components/auth/AuthLayout.js.map +1 -1
  5. package/dist/components/auth/AuthLayout.tsx +62 -52
  6. package/dist/components/auth/ForgotPasswordThankYou.js +1 -1
  7. package/dist/components/auth/ForgotPasswordThankYou.js.map +1 -1
  8. package/dist/components/auth/ForgotPasswordThankYou.tsx +2 -2
  9. package/dist/components/auth/MicrosoftActiveDirectoryAuthChecking.d.ts +2 -0
  10. package/dist/components/auth/MicrosoftActiveDirectoryAuthChecking.d.ts.map +1 -0
  11. package/dist/components/auth/MicrosoftActiveDirectoryAuthChecking.js +112 -0
  12. package/dist/components/auth/MicrosoftActiveDirectoryAuthChecking.js.map +1 -0
  13. package/dist/components/auth/MicrosoftActiveDirectoryAuthChecking.tsx +78 -0
  14. package/dist/components/auth/SolidChangeForcePassword.js +2 -2
  15. package/dist/components/auth/SolidChangeForcePassword.js.map +1 -1
  16. package/dist/components/auth/SolidChangeForcePassword.tsx +13 -13
  17. package/dist/components/auth/SolidForgotPassword.js +1 -1
  18. package/dist/components/auth/SolidForgotPassword.js.map +1 -1
  19. package/dist/components/auth/SolidForgotPassword.tsx +3 -3
  20. package/dist/components/auth/SolidInitialLoginOtp.js +1 -1
  21. package/dist/components/auth/SolidInitialLoginOtp.js.map +1 -1
  22. package/dist/components/auth/SolidInitialLoginOtp.tsx +2 -2
  23. package/dist/components/auth/SolidInitiateRegisterOtp.js +1 -1
  24. package/dist/components/auth/SolidInitiateRegisterOtp.js.map +1 -1
  25. package/dist/components/auth/SolidInitiateRegisterOtp.tsx +2 -2
  26. package/dist/components/auth/SolidLogin.js +4 -4
  27. package/dist/components/auth/SolidLogin.js.map +1 -1
  28. package/dist/components/auth/SolidLogin.tsx +11 -11
  29. package/dist/components/auth/SolidRegister.js +6 -6
  30. package/dist/components/auth/SolidRegister.js.map +1 -1
  31. package/dist/components/auth/SolidRegister.tsx +14 -14
  32. package/dist/components/auth/SolidResetPassword.js +2 -2
  33. package/dist/components/auth/SolidResetPassword.js.map +1 -1
  34. package/dist/components/auth/SolidResetPassword.tsx +8 -8
  35. package/dist/components/common/BackButton.js +1 -1
  36. package/dist/components/common/BackButton.js.map +1 -1
  37. package/dist/components/common/BackButton.tsx +1 -1
  38. package/dist/components/common/CancelButton.js +2 -2
  39. package/dist/components/common/CancelButton.js.map +1 -1
  40. package/dist/components/common/CancelButton.tsx +3 -3
  41. package/dist/components/common/GeneralSettings.js +18 -18
  42. package/dist/components/common/GeneralSettings.js.map +1 -1
  43. package/dist/components/common/GeneralSettings.tsx +136 -136
  44. package/dist/components/common/SolidExport.d.ts +1 -1
  45. package/dist/components/common/SolidExport.d.ts.map +1 -1
  46. package/dist/components/common/SolidExport.js +10 -3
  47. package/dist/components/common/SolidExport.js.map +1 -1
  48. package/dist/components/common/SolidExport.tsx +10 -2
  49. package/dist/components/common/SolidFormHeader.js +1 -1
  50. package/dist/components/common/SolidFormHeader.js.map +1 -1
  51. package/dist/components/common/SolidFormHeader.tsx +1 -1
  52. package/dist/components/common/SolidModuleHome.js +2 -2
  53. package/dist/components/common/SolidModuleHome.js.map +1 -1
  54. package/dist/components/common/SolidModuleHome.tsx +7 -7
  55. package/dist/components/common/SolidSettings/LlmSettings/AiModelConfigTab.js +3 -3
  56. package/dist/components/common/SolidSettings/LlmSettings/AiModelConfigTab.js.map +1 -1
  57. package/dist/components/common/SolidSettings/LlmSettings/AiModelConfigTab.tsx +6 -6
  58. package/dist/components/common/SolidSettings/LlmSettings/AnthropicProviderComponent.js +1 -1
  59. package/dist/components/common/SolidSettings/LlmSettings/AnthropicProviderComponent.js.map +1 -1
  60. package/dist/components/common/SolidSettings/LlmSettings/AnthropicProviderComponent.tsx +4 -4
  61. package/dist/components/common/SolidSettings/LlmSettings/OpenAiProviderComponent.js +1 -1
  62. package/dist/components/common/SolidSettings/LlmSettings/OpenAiProviderComponent.js.map +1 -1
  63. package/dist/components/common/SolidSettings/LlmSettings/OpenAiProviderComponent.tsx +4 -4
  64. package/dist/components/common/SolidSettings/SettingDropzoneActivePlaceholder.js +1 -1
  65. package/dist/components/common/SolidSettings/SettingDropzoneActivePlaceholder.js.map +1 -1
  66. package/dist/components/common/SolidSettings/SettingDropzoneActivePlaceholder.tsx +1 -1
  67. package/dist/components/core/card/SolidCardView.js +1 -1
  68. package/dist/components/core/card/SolidCardView.js.map +1 -1
  69. package/dist/components/core/card/SolidCardView.tsx +5 -5
  70. package/dist/components/core/card/SolidCardViewConfigure.d.ts.map +1 -1
  71. package/dist/components/core/card/SolidCardViewConfigure.js +1 -1
  72. package/dist/components/core/card/SolidCardViewConfigure.js.map +1 -1
  73. package/dist/components/core/card/SolidCardViewConfigure.tsx +5 -1
  74. package/dist/components/core/chatter/SolidChatter.js +5 -5
  75. package/dist/components/core/chatter/SolidChatter.js.map +1 -1
  76. package/dist/components/core/chatter/SolidChatter.tsx +8 -8
  77. package/dist/components/core/chatter/SolidChatterAuditMessage.js +1 -1
  78. package/dist/components/core/chatter/SolidChatterAuditMessage.js.map +1 -1
  79. package/dist/components/core/chatter/SolidChatterAuditMessage.tsx +2 -2
  80. package/dist/components/core/chatter/SolidChatterHeader.js +2 -2
  81. package/dist/components/core/chatter/SolidChatterHeader.js.map +1 -1
  82. package/dist/components/core/chatter/SolidChatterHeader.tsx +6 -6
  83. package/dist/components/core/chatter/SolidChatterMessageBox.js +4 -4
  84. package/dist/components/core/chatter/SolidChatterMessageBox.js.map +1 -1
  85. package/dist/components/core/chatter/SolidChatterMessageBox.tsx +12 -12
  86. package/dist/components/core/chatter/SolidMessageComposer.js +1 -1
  87. package/dist/components/core/chatter/SolidMessageComposer.js.map +1 -1
  88. package/dist/components/core/chatter/SolidMessageComposer.tsx +7 -7
  89. package/dist/components/core/common/SolidCreateButton.d.ts.map +1 -1
  90. package/dist/components/core/common/SolidCreateButton.js +16 -1
  91. package/dist/components/core/common/SolidCreateButton.js.map +1 -1
  92. package/dist/components/core/common/SolidCreateButton.tsx +18 -1
  93. package/dist/components/core/common/SolidGenericImport/SolidImport.module.css +60 -0
  94. package/dist/components/core/common/SolidGenericImport/SolidImportDropzone.js +1 -1
  95. package/dist/components/core/common/SolidGenericImport/SolidImportDropzone.js.map +1 -1
  96. package/dist/components/core/common/SolidGenericImport/SolidImportDropzone.tsx +2 -2
  97. package/dist/components/core/common/SolidGenericImport/SolidImportInstructions.d.ts.map +1 -1
  98. package/dist/components/core/common/SolidGenericImport/SolidImportInstructions.js +19 -1
  99. package/dist/components/core/common/SolidGenericImport/SolidImportInstructions.js.map +1 -1
  100. package/dist/components/core/common/SolidGenericImport/SolidImportInstructions.tsx +16 -3
  101. package/dist/components/core/common/SolidGenericImport/SolidImportTransaction.d.ts.map +1 -1
  102. package/dist/components/core/common/SolidGenericImport/SolidImportTransaction.js +168 -26
  103. package/dist/components/core/common/SolidGenericImport/SolidImportTransaction.js.map +1 -1
  104. package/dist/components/core/common/SolidGenericImport/SolidImportTransaction.tsx +174 -10
  105. package/dist/components/core/common/SolidGlobalSearchElement.d.ts.map +1 -1
  106. package/dist/components/core/common/SolidGlobalSearchElement.js +46 -36
  107. package/dist/components/core/common/SolidGlobalSearchElement.js.map +1 -1
  108. package/dist/components/core/common/SolidGlobalSearchElement.tsx +77 -40
  109. package/dist/components/core/common/SolidLayoutViews.js +2 -2
  110. package/dist/components/core/common/SolidLayoutViews.js.map +1 -1
  111. package/dist/components/core/common/SolidLayoutViews.tsx +4 -4
  112. package/dist/components/core/common/SolidListViewOptions.js +1 -1
  113. package/dist/components/core/common/SolidListViewOptions.js.map +1 -1
  114. package/dist/components/core/common/SolidListViewOptions.tsx +1 -1
  115. package/dist/components/core/common/SolidPasswordHelperText.js +2 -2
  116. package/dist/components/core/common/SolidPasswordHelperText.js.map +1 -1
  117. package/dist/components/core/common/SolidPasswordHelperText.tsx +4 -4
  118. package/dist/components/core/common/SolidSearchBox.js +1 -1
  119. package/dist/components/core/common/SolidSearchBox.js.map +1 -1
  120. package/dist/components/core/common/SolidSearchBox.tsx +1 -1
  121. package/dist/components/core/common/SolidXAiIframe.js +1 -1
  122. package/dist/components/core/common/SolidXAiIframe.js.map +1 -1
  123. package/dist/components/core/common/SolidXAiIframe.tsx +1 -1
  124. package/dist/components/core/extension/solid-core/listOfValues/form/SolidLovTypeChangeFormEditWidget.js +1 -1
  125. package/dist/components/core/extension/solid-core/listOfValues/form/SolidLovTypeChangeFormEditWidget.js.map +1 -1
  126. package/dist/components/core/extension/solid-core/listOfValues/form/SolidLovTypeChangeFormEditWidget.tsx +2 -2
  127. package/dist/components/core/extension/solid-core/roleMetadata/RolePermissionsManyToManyFieldWidget.js +2 -2
  128. package/dist/components/core/extension/solid-core/roleMetadata/RolePermissionsManyToManyFieldWidget.js.map +1 -1
  129. package/dist/components/core/extension/solid-core/roleMetadata/RolePermissionsManyToManyFieldWidget.tsx +4 -4
  130. package/dist/components/core/field/FieldListViewData.js +2 -2
  131. package/dist/components/core/field/FieldListViewData.js.map +1 -1
  132. package/dist/components/core/field/FieldListViewData.tsx +5 -5
  133. package/dist/components/core/filter/fields/SolidBooleanField.d.ts.map +1 -1
  134. package/dist/components/core/filter/fields/SolidBooleanField.js +2 -2
  135. package/dist/components/core/filter/fields/SolidBooleanField.js.map +1 -1
  136. package/dist/components/core/filter/fields/SolidBooleanField.tsx +3 -12
  137. package/dist/components/core/filter/fields/SolidDateField.js +2 -2
  138. package/dist/components/core/filter/fields/SolidDateField.js.map +1 -1
  139. package/dist/components/core/filter/fields/SolidDateField.tsx +3 -3
  140. package/dist/components/core/filter/fields/SolidDatetimeField.js +2 -2
  141. package/dist/components/core/filter/fields/SolidDatetimeField.js.map +1 -1
  142. package/dist/components/core/filter/fields/SolidDatetimeField.tsx +3 -3
  143. package/dist/components/core/filter/fields/SolidExternalIdField.js +2 -2
  144. package/dist/components/core/filter/fields/SolidExternalIdField.js.map +1 -1
  145. package/dist/components/core/filter/fields/SolidExternalIdField.tsx +3 -3
  146. package/dist/components/core/filter/fields/SolidIdField.js +2 -2
  147. package/dist/components/core/filter/fields/SolidIdField.js.map +1 -1
  148. package/dist/components/core/filter/fields/SolidIdField.tsx +2 -2
  149. package/dist/components/core/filter/fields/SolidIntField.js +2 -2
  150. package/dist/components/core/filter/fields/SolidIntField.js.map +1 -1
  151. package/dist/components/core/filter/fields/SolidIntField.tsx +3 -3
  152. package/dist/components/core/filter/fields/SolidMediaMultipleField.js +2 -2
  153. package/dist/components/core/filter/fields/SolidMediaMultipleField.js.map +1 -1
  154. package/dist/components/core/filter/fields/SolidMediaMultipleField.tsx +3 -3
  155. package/dist/components/core/filter/fields/SolidMediaSingleField.js +2 -2
  156. package/dist/components/core/filter/fields/SolidMediaSingleField.js.map +1 -1
  157. package/dist/components/core/filter/fields/SolidMediaSingleField.tsx +3 -3
  158. package/dist/components/core/filter/fields/SolidSelectionDynamicField.js +2 -2
  159. package/dist/components/core/filter/fields/SolidSelectionDynamicField.js.map +1 -1
  160. package/dist/components/core/filter/fields/SolidSelectionDynamicField.tsx +3 -3
  161. package/dist/components/core/filter/fields/SolidSelectionStaticField.js +2 -2
  162. package/dist/components/core/filter/fields/SolidSelectionStaticField.js.map +1 -1
  163. package/dist/components/core/filter/fields/SolidSelectionStaticField.tsx +3 -3
  164. package/dist/components/core/filter/fields/SolidShortTextField.js +2 -2
  165. package/dist/components/core/filter/fields/SolidShortTextField.js.map +1 -1
  166. package/dist/components/core/filter/fields/SolidShortTextField.tsx +3 -3
  167. package/dist/components/core/filter/fields/SolidTimeField.js +2 -2
  168. package/dist/components/core/filter/fields/SolidTimeField.js.map +1 -1
  169. package/dist/components/core/filter/fields/SolidTimeField.tsx +3 -3
  170. package/dist/components/core/filter/fields/SolidUuidField.js +2 -2
  171. package/dist/components/core/filter/fields/SolidUuidField.js.map +1 -1
  172. package/dist/components/core/filter/fields/SolidUuidField.tsx +4 -4
  173. package/dist/components/core/filter/fields/relations/SolidRelationManyToManyField.js +2 -2
  174. package/dist/components/core/filter/fields/relations/SolidRelationManyToManyField.js.map +1 -1
  175. package/dist/components/core/filter/fields/relations/SolidRelationManyToManyField.tsx +3 -3
  176. package/dist/components/core/filter/fields/relations/SolidRelationManyToOneField.js +2 -2
  177. package/dist/components/core/filter/fields/relations/SolidRelationManyToOneField.js.map +1 -1
  178. package/dist/components/core/filter/fields/relations/SolidRelationManyToOneField.tsx +3 -3
  179. package/dist/components/core/filter/fields/relations/SolidRelationOneToManyField.js +2 -2
  180. package/dist/components/core/filter/fields/relations/SolidRelationOneToManyField.js.map +1 -1
  181. package/dist/components/core/filter/fields/relations/SolidRelationOneToManyField.tsx +3 -3
  182. package/dist/components/core/form/SolidFormActionHeader.js +8 -8
  183. package/dist/components/core/form/SolidFormActionHeader.js.map +1 -1
  184. package/dist/components/core/form/SolidFormActionHeader.tsx +13 -13
  185. package/dist/components/core/form/SolidFormFieldRender.js +1 -1
  186. package/dist/components/core/form/SolidFormFieldRender.js.map +1 -1
  187. package/dist/components/core/form/SolidFormFieldRender.tsx +1 -1
  188. package/dist/components/core/form/SolidFormFooter.d.ts.map +1 -1
  189. package/dist/components/core/form/SolidFormFooter.js +12 -5
  190. package/dist/components/core/form/SolidFormFooter.js.map +1 -1
  191. package/dist/components/core/form/SolidFormFooter.tsx +14 -5
  192. package/dist/components/core/form/SolidFormView.d.ts.map +1 -1
  193. package/dist/components/core/form/SolidFormView.js +200 -65
  194. package/dist/components/core/form/SolidFormView.js.map +1 -1
  195. package/dist/components/core/form/SolidFormView.tsx +188 -41
  196. package/dist/components/core/form/SolidFormViewContextMenuHeaderButton.d.ts.map +1 -1
  197. package/dist/components/core/form/SolidFormViewContextMenuHeaderButton.js +5 -1
  198. package/dist/components/core/form/SolidFormViewContextMenuHeaderButton.js.map +1 -1
  199. package/dist/components/core/form/SolidFormViewContextMenuHeaderButton.tsx +5 -1
  200. package/dist/components/core/form/SolidFormViewNormalHeaderButton.d.ts.map +1 -1
  201. package/dist/components/core/form/SolidFormViewNormalHeaderButton.js +5 -1
  202. package/dist/components/core/form/SolidFormViewNormalHeaderButton.js.map +1 -1
  203. package/dist/components/core/form/SolidFormViewNormalHeaderButton.tsx +5 -1
  204. package/dist/components/core/form/SolidFormViewShimmerLoading.js +1 -1
  205. package/dist/components/core/form/SolidFormViewShimmerLoading.js.map +1 -1
  206. package/dist/components/core/form/SolidFormViewShimmerLoading.tsx +46 -46
  207. package/dist/components/core/form/fields/SolidBooleanField.js +3 -3
  208. package/dist/components/core/form/fields/SolidBooleanField.js.map +1 -1
  209. package/dist/components/core/form/fields/SolidBooleanField.tsx +3 -3
  210. package/dist/components/core/form/fields/SolidComputedField.js +1 -1
  211. package/dist/components/core/form/fields/SolidComputedField.js.map +1 -1
  212. package/dist/components/core/form/fields/SolidComputedField.tsx +1 -1
  213. package/dist/components/core/form/fields/SolidDateField.js +2 -2
  214. package/dist/components/core/form/fields/SolidDateField.js.map +1 -1
  215. package/dist/components/core/form/fields/SolidDateField.tsx +2 -2
  216. package/dist/components/core/form/fields/SolidDateTimeField.js +2 -2
  217. package/dist/components/core/form/fields/SolidDateTimeField.js.map +1 -1
  218. package/dist/components/core/form/fields/SolidDateTimeField.tsx +2 -2
  219. package/dist/components/core/form/fields/SolidDecimalField.js +1 -1
  220. package/dist/components/core/form/fields/SolidDecimalField.js.map +1 -1
  221. package/dist/components/core/form/fields/SolidDecimalField.tsx +1 -1
  222. package/dist/components/core/form/fields/SolidEmailField.js +1 -1
  223. package/dist/components/core/form/fields/SolidEmailField.js.map +1 -1
  224. package/dist/components/core/form/fields/SolidEmailField.tsx +1 -1
  225. package/dist/components/core/form/fields/SolidIntegerField.js +3 -3
  226. package/dist/components/core/form/fields/SolidIntegerField.js.map +1 -1
  227. package/dist/components/core/form/fields/SolidIntegerField.tsx +3 -3
  228. package/dist/components/core/form/fields/SolidJsonField.js +3 -3
  229. package/dist/components/core/form/fields/SolidJsonField.js.map +1 -1
  230. package/dist/components/core/form/fields/SolidJsonField.tsx +3 -3
  231. package/dist/components/core/form/fields/SolidLongTextField.js +6 -6
  232. package/dist/components/core/form/fields/SolidLongTextField.js.map +1 -1
  233. package/dist/components/core/form/fields/SolidLongTextField.tsx +12 -12
  234. package/dist/components/core/form/fields/SolidMediaMultipleField.js +11 -11
  235. package/dist/components/core/form/fields/SolidMediaMultipleField.js.map +1 -1
  236. package/dist/components/core/form/fields/SolidMediaMultipleField.tsx +28 -28
  237. package/dist/components/core/form/fields/SolidMediaSingleField.js +5 -5
  238. package/dist/components/core/form/fields/SolidMediaSingleField.js.map +1 -1
  239. package/dist/components/core/form/fields/SolidMediaSingleField.tsx +9 -9
  240. package/dist/components/core/form/fields/SolidPasswordField.d.ts.map +1 -1
  241. package/dist/components/core/form/fields/SolidPasswordField.js +12 -6
  242. package/dist/components/core/form/fields/SolidPasswordField.js.map +1 -1
  243. package/dist/components/core/form/fields/SolidPasswordField.tsx +13 -6
  244. package/dist/components/core/form/fields/SolidRichTextField.js +2 -2
  245. package/dist/components/core/form/fields/SolidRichTextField.js.map +1 -1
  246. package/dist/components/core/form/fields/SolidRichTextField.tsx +2 -2
  247. package/dist/components/core/form/fields/SolidSelectionDynamicField.js +2 -2
  248. package/dist/components/core/form/fields/SolidSelectionDynamicField.js.map +1 -1
  249. package/dist/components/core/form/fields/SolidSelectionDynamicField.tsx +2 -2
  250. package/dist/components/core/form/fields/SolidSelectionStaticField.js +1 -1
  251. package/dist/components/core/form/fields/SolidSelectionStaticField.js.map +1 -1
  252. package/dist/components/core/form/fields/SolidSelectionStaticField.tsx +1 -1
  253. package/dist/components/core/form/fields/SolidShortTextField.js +1 -1
  254. package/dist/components/core/form/fields/SolidShortTextField.js.map +1 -1
  255. package/dist/components/core/form/fields/SolidShortTextField.tsx +1 -1
  256. package/dist/components/core/form/fields/SolidTimeField.js +2 -2
  257. package/dist/components/core/form/fields/SolidTimeField.js.map +1 -1
  258. package/dist/components/core/form/fields/SolidTimeField.tsx +2 -2
  259. package/dist/components/core/form/fields/relations/RolesGroupedByModuleWidget.d.ts +7 -11
  260. package/dist/components/core/form/fields/relations/RolesGroupedByModuleWidget.d.ts.map +1 -1
  261. package/dist/components/core/form/fields/relations/RolesGroupedByModuleWidget.js +18 -63
  262. package/dist/components/core/form/fields/relations/RolesGroupedByModuleWidget.js.map +1 -1
  263. package/dist/components/core/form/fields/relations/RolesGroupedByModuleWidget.tsx +63 -164
  264. package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.d.ts.map +1 -1
  265. package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.js +6 -6
  266. package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.js.map +1 -1
  267. package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.tsx +38 -36
  268. package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.js +6 -6
  269. package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.js.map +1 -1
  270. package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.tsx +6 -6
  271. package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.d.ts.map +1 -1
  272. package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.js +10 -10
  273. package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.js.map +1 -1
  274. package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.tsx +20 -25
  275. package/dist/components/core/form/fields/widgets/SolidAiInteractionMessageFieldFormWidget.js +1 -1
  276. package/dist/components/core/form/fields/widgets/SolidAiInteractionMessageFieldFormWidget.js.map +1 -1
  277. package/dist/components/core/form/fields/widgets/SolidAiInteractionMessageFieldFormWidget.tsx +1 -1
  278. package/dist/components/core/form/fields/widgets/SolidAiInteractionMetadataFieldFormWidget.js +1 -1
  279. package/dist/components/core/form/fields/widgets/SolidAiInteractionMetadataFieldFormWidget.js.map +1 -1
  280. package/dist/components/core/form/fields/widgets/SolidAiInteractionMetadataFieldFormWidget.tsx +1 -1
  281. package/dist/components/core/form/fields/widgets/SolidIconEditWidget.js +5 -5
  282. package/dist/components/core/form/fields/widgets/SolidIconEditWidget.js.map +1 -1
  283. package/dist/components/core/form/fields/widgets/SolidIconEditWidget.tsx +17 -17
  284. package/dist/components/core/form/fields/widgets/SolidRelationFieldAvatarFormWidget.js +1 -1
  285. package/dist/components/core/form/fields/widgets/SolidRelationFieldAvatarFormWidget.js.map +1 -1
  286. package/dist/components/core/form/fields/widgets/SolidRelationFieldAvatarFormWidget.tsx +1 -1
  287. package/dist/components/core/form/fields/widgets/SolidShortTextFieldAvatarWidget.js +1 -1
  288. package/dist/components/core/form/fields/widgets/SolidShortTextFieldAvatarWidget.js.map +1 -1
  289. package/dist/components/core/form/fields/widgets/SolidShortTextFieldAvatarWidget.tsx +1 -1
  290. package/dist/components/core/kanban/KanbanBoard.d.ts +1 -1
  291. package/dist/components/core/kanban/KanbanBoard.d.ts.map +1 -1
  292. package/dist/components/core/kanban/KanbanBoard.js +2 -2
  293. package/dist/components/core/kanban/KanbanBoard.js.map +1 -1
  294. package/dist/components/core/kanban/KanbanBoard.tsx +2 -1
  295. package/dist/components/core/kanban/KanbanCard.d.ts +1 -0
  296. package/dist/components/core/kanban/KanbanCard.d.ts.map +1 -1
  297. package/dist/components/core/kanban/KanbanCard.js +15 -4
  298. package/dist/components/core/kanban/KanbanCard.js.map +1 -1
  299. package/dist/components/core/kanban/KanbanCard.tsx +27 -4
  300. package/dist/components/core/kanban/KanbanColumn.d.ts +2 -1
  301. package/dist/components/core/kanban/KanbanColumn.d.ts.map +1 -1
  302. package/dist/components/core/kanban/KanbanColumn.js +4 -4
  303. package/dist/components/core/kanban/KanbanColumn.js.map +1 -1
  304. package/dist/components/core/kanban/KanbanColumn.tsx +5 -4
  305. package/dist/components/core/kanban/SolidKanbanView.d.ts.map +1 -1
  306. package/dist/components/core/kanban/SolidKanbanView.js +44 -39
  307. package/dist/components/core/kanban/SolidKanbanView.js.map +1 -1
  308. package/dist/components/core/kanban/SolidKanbanView.tsx +22 -10
  309. package/dist/components/core/kanban/SolidKanbanViewConfigure.d.ts.map +1 -1
  310. package/dist/components/core/kanban/SolidKanbanViewConfigure.js +1 -1
  311. package/dist/components/core/kanban/SolidKanbanViewConfigure.js.map +1 -1
  312. package/dist/components/core/kanban/SolidKanbanViewConfigure.tsx +5 -1
  313. package/dist/components/core/list/ListViewRowActionPopup.js +1 -1
  314. package/dist/components/core/list/ListViewRowActionPopup.js.map +1 -1
  315. package/dist/components/core/list/ListViewRowActionPopup.tsx +1 -2
  316. package/dist/components/core/list/SolidColumnSelector/SolidListColumnSelector.js +1 -1
  317. package/dist/components/core/list/SolidColumnSelector/SolidListColumnSelector.js.map +1 -1
  318. package/dist/components/core/list/SolidColumnSelector/SolidListColumnSelector.tsx +3 -3
  319. package/dist/components/core/list/SolidDataTable.js +1 -1
  320. package/dist/components/core/list/SolidDataTable.js.map +1 -1
  321. package/dist/components/core/list/SolidDataTable.tsx +1 -1
  322. package/dist/components/core/list/SolidListView.d.ts.map +1 -1
  323. package/dist/components/core/list/SolidListView.js +14 -6
  324. package/dist/components/core/list/SolidListView.js.map +1 -1
  325. package/dist/components/core/list/SolidListView.tsx +21 -13
  326. package/dist/components/core/list/SolidListViewConfigure.d.ts.map +1 -1
  327. package/dist/components/core/list/SolidListViewConfigure.js +1 -1
  328. package/dist/components/core/list/SolidListViewConfigure.js.map +1 -1
  329. package/dist/components/core/list/SolidListViewConfigure.tsx +5 -1
  330. package/dist/components/core/list/SolidListViewHeaderButton.d.ts.map +1 -1
  331. package/dist/components/core/list/SolidListViewHeaderButton.js +5 -1
  332. package/dist/components/core/list/SolidListViewHeaderButton.js.map +1 -1
  333. package/dist/components/core/list/SolidListViewHeaderButton.tsx +5 -1
  334. package/dist/components/core/list/SolidListingHeader.js +1 -1
  335. package/dist/components/core/list/SolidListingHeader.js.map +1 -1
  336. package/dist/components/core/list/SolidListingHeader.tsx +4 -4
  337. package/dist/components/core/list/SolidTableRowCell.js +1 -1
  338. package/dist/components/core/list/SolidTableRowCell.js.map +1 -1
  339. package/dist/components/core/list/SolidTableRowCell.tsx +1 -1
  340. package/dist/components/core/list/columns/SolidMediaMultipleColumn.js +5 -5
  341. package/dist/components/core/list/columns/SolidMediaMultipleColumn.js.map +1 -1
  342. package/dist/components/core/list/columns/SolidMediaMultipleColumn.tsx +8 -8
  343. package/dist/components/core/list/columns/SolidMediaSingleColumn.js +3 -3
  344. package/dist/components/core/list/columns/SolidMediaSingleColumn.js.map +1 -1
  345. package/dist/components/core/list/columns/SolidMediaSingleColumn.tsx +3 -3
  346. package/dist/components/core/list/widgets/SolidManyToManyRelationAvatarListWidget.js +1 -1
  347. package/dist/components/core/list/widgets/SolidManyToManyRelationAvatarListWidget.js.map +1 -1
  348. package/dist/components/core/list/widgets/SolidManyToManyRelationAvatarListWidget.tsx +1 -1
  349. package/dist/components/core/list/widgets/SolidShortTextFieldImageRenderModeWidget.js +1 -1
  350. package/dist/components/core/list/widgets/SolidShortTextFieldImageRenderModeWidget.js.map +1 -1
  351. package/dist/components/core/list/widgets/SolidShortTextFieldImageRenderModeWidget.tsx +1 -2
  352. package/dist/components/core/locales/SolidLocale.js +3 -3
  353. package/dist/components/core/locales/SolidLocale.js.map +1 -1
  354. package/dist/components/core/locales/SolidLocale.tsx +7 -7
  355. package/dist/components/core/locales/solid-locale.css +5 -4
  356. package/dist/components/core/model/FieldMetaData.js +2 -2
  357. package/dist/components/core/model/FieldMetaData.js.map +1 -1
  358. package/dist/components/core/model/FieldMetaData.tsx +2 -2
  359. package/dist/components/core/model/FieldMetaDataForm.d.ts.map +1 -1
  360. package/dist/components/core/model/FieldMetaDataForm.js +50 -50
  361. package/dist/components/core/model/FieldMetaDataForm.js.map +1 -1
  362. package/dist/components/core/model/FieldMetaDataForm.tsx +74 -229
  363. package/dist/components/core/model/ModelListViewData.js +4 -4
  364. package/dist/components/core/model/ModelListViewData.js.map +1 -1
  365. package/dist/components/core/model/ModelListViewData.tsx +7 -7
  366. package/dist/components/core/model/ModelMetaData.d.ts.map +1 -1
  367. package/dist/components/core/model/ModelMetaData.js +2 -2
  368. package/dist/components/core/model/ModelMetaData.js.map +1 -1
  369. package/dist/components/core/model/ModelMetaData.tsx +3 -58
  370. package/dist/components/core/module/CreateModule.d.ts.map +1 -1
  371. package/dist/components/core/module/CreateModule.js +3 -17
  372. package/dist/components/core/module/CreateModule.js.map +1 -1
  373. package/dist/components/core/module/CreateModule.tsx +18 -32
  374. package/dist/components/core/module/ModuleListViewData.js +5 -5
  375. package/dist/components/core/module/ModuleListViewData.js.map +1 -1
  376. package/dist/components/core/module/ModuleListViewData.tsx +8 -8
  377. package/dist/components/core/module/ModuleMetadataExplorer.js +1 -1
  378. package/dist/components/core/module/ModuleMetadataExplorer.js.map +1 -1
  379. package/dist/components/core/module/ModuleMetadataExplorer.tsx +1 -1
  380. package/dist/components/core/solid-ai/SolidAiChat.module.css +2 -2
  381. package/dist/components/core/tree/SolidTreeTable.js +1 -1
  382. package/dist/components/core/tree/SolidTreeTable.js.map +1 -1
  383. package/dist/components/core/tree/SolidTreeTable.tsx +1 -1
  384. package/dist/components/core/tree/SolidTreeView.d.ts.map +1 -1
  385. package/dist/components/core/tree/SolidTreeView.js +3 -3
  386. package/dist/components/core/tree/SolidTreeView.js.map +1 -1
  387. package/dist/components/core/tree/SolidTreeView.tsx +14 -10
  388. package/dist/components/core/users/CreateUser.d.ts.map +1 -1
  389. package/dist/components/core/users/CreateUser.js +8 -10
  390. package/dist/components/core/users/CreateUser.js.map +1 -1
  391. package/dist/components/core/users/CreateUser.tsx +18 -36
  392. package/dist/components/core/users/CreateUserRole.js +2 -2
  393. package/dist/components/core/users/CreateUserRole.js.map +1 -1
  394. package/dist/components/core/users/CreateUserRole.tsx +9 -9
  395. package/dist/components/core/users/UserListView.js +4 -4
  396. package/dist/components/core/users/UserListView.js.map +1 -1
  397. package/dist/components/core/users/UserListView.tsx +6 -6
  398. package/dist/components/layout/AdminHeaderActions.d.ts +1 -0
  399. package/dist/components/layout/AdminHeaderActions.d.ts.map +1 -1
  400. package/dist/components/layout/AdminHeaderActions.js +1 -1
  401. package/dist/components/layout/AdminHeaderActions.js.map +1 -1
  402. package/dist/components/layout/AdminHeaderActions.tsx +1 -1
  403. package/dist/components/layout/AdminSidebar.js +1 -1
  404. package/dist/components/layout/AdminSidebar.js.map +1 -1
  405. package/dist/components/layout/AdminSidebar.tsx +1 -1
  406. package/dist/components/layout/AdminTopHeader.d.ts.map +1 -1
  407. package/dist/components/layout/AdminTopHeader.js +21 -3
  408. package/dist/components/layout/AdminTopHeader.js.map +1 -1
  409. package/dist/components/layout/AdminTopHeader.tsx +64 -2
  410. package/dist/components/layout/CustomPagination.js +0 -1
  411. package/dist/components/layout/CustomPagination.js.map +1 -1
  412. package/dist/components/layout/CustomPagination.tsx +0 -1
  413. package/dist/components/layout/FilterMenu.js +1 -1
  414. package/dist/components/layout/FilterMenu.js.map +1 -1
  415. package/dist/components/layout/FilterMenu.tsx +4 -4
  416. package/dist/components/layout/Footer.js +1 -1
  417. package/dist/components/layout/Footer.js.map +1 -1
  418. package/dist/components/layout/Footer.tsx +1 -1
  419. package/dist/components/layout/GlobalSearch.js +1 -1
  420. package/dist/components/layout/GlobalSearch.js.map +1 -1
  421. package/dist/components/layout/GlobalSearch.tsx +1 -1
  422. package/dist/components/layout/ListingHeader.js +3 -3
  423. package/dist/components/layout/ListingHeader.js.map +1 -1
  424. package/dist/components/layout/ListingHeader.tsx +4 -4
  425. package/dist/components/layout/Loader.js +1 -1
  426. package/dist/components/layout/Loader.js.map +1 -1
  427. package/dist/components/layout/Loader.tsx +1 -1
  428. package/dist/components/layout/UserSidebar.js +1 -1
  429. package/dist/components/layout/UserSidebar.js.map +1 -1
  430. package/dist/components/layout/UserSidebar.tsx +1 -1
  431. package/dist/components/layout/navbar-one.js +2 -2
  432. package/dist/components/layout/navbar-one.js.map +1 -1
  433. package/dist/components/layout/navbar-one.tsx +8 -8
  434. package/dist/components/layout/navbar-two-menu.js +2 -2
  435. package/dist/components/layout/navbar-two-menu.js.map +1 -1
  436. package/dist/components/layout/navbar-two-menu.tsx +7 -7
  437. package/dist/components/shad-cn-ui/SolidCodeEditor.d.ts.map +1 -1
  438. package/dist/components/shad-cn-ui/SolidCodeEditor.js +3 -1
  439. package/dist/components/shad-cn-ui/SolidCodeEditor.js.map +1 -1
  440. package/dist/components/shad-cn-ui/SolidCodeEditor.tsx +3 -0
  441. package/dist/components/shad-cn-ui/SolidPopover.d.ts +1 -0
  442. package/dist/components/shad-cn-ui/SolidPopover.d.ts.map +1 -1
  443. package/dist/components/shad-cn-ui/SolidPopover.js +124 -5
  444. package/dist/components/shad-cn-ui/SolidPopover.js.map +1 -1
  445. package/dist/components/shad-cn-ui/SolidPopover.tsx +173 -10
  446. package/dist/constants/error-messages.d.ts +13 -0
  447. package/dist/constants/error-messages.d.ts.map +1 -1
  448. package/dist/constants/error-messages.js +17 -0
  449. package/dist/constants/error-messages.js.map +1 -1
  450. package/dist/constants/error-messages.ts +15 -0
  451. package/dist/resources/globals.css +32 -1
  452. package/dist/resources/solid-custom.css +6565 -0
  453. package/dist/resources/solid-primereact.css +14 -12
  454. package/dist/resources/solid-responsive.css +25 -2
  455. package/dist/resources/solid-tailwind-generated.css +1 -0
  456. package/dist/resources/solid-tailwind.css +3 -0
  457. package/dist/routes/pages/auth/InitiateMicrosoftActiveDirectoryOauthPage.d.ts +2 -0
  458. package/dist/routes/pages/auth/InitiateMicrosoftActiveDirectoryOauthPage.d.ts.map +1 -0
  459. package/dist/routes/pages/auth/InitiateMicrosoftActiveDirectoryOauthPage.js +6 -0
  460. package/dist/routes/pages/auth/InitiateMicrosoftActiveDirectoryOauthPage.js.map +1 -0
  461. package/dist/routes/pages/auth/InitiateMicrosoftActiveDirectoryOauthPage.tsx +5 -0
  462. package/dist/routes/pages/auth/SsoPage.js +1 -1
  463. package/dist/routes/pages/auth/SsoPage.js.map +1 -1
  464. package/dist/routes/pages/auth/SsoPage.tsx +1 -1
  465. package/dist/styles.d.ts +2 -1
  466. package/dist/styles.d.ts.map +1 -1
  467. package/dist/styles.js +2 -1
  468. package/dist/styles.js.map +1 -1
  469. package/dist/styles.ts +2 -1
  470. package/package.json +6 -3
@@ -1,7 +1,7 @@
1
1
  import { useSession } from '../../../hooks/useSession'
2
2
  import { permissionExpression } from "../../../helpers/permissions";
3
3
  import { createSolidEntityApi } from "../../../redux/api/solidEntityApi";
4
- import { useGetSolidViewLayoutQuery } from "../../../redux/api/solidViewApi";
4
+ import { useGetSolidViewLayoutQuery, useLazyGetSolidViewLayoutQuery } from "../../../redux/api/solidViewApi";
5
5
  import { useLazyCheckIfPermissionExistsQuery } from "../../../redux/api/userApi";
6
6
  import { FetchBaseQueryError } from "@reduxjs/toolkit/dist/query";
7
7
  import { useFormik } from "formik";
@@ -80,6 +80,107 @@ interface ErrorResponseData {
80
80
  error: string;
81
81
  }
82
82
 
83
+ const LAYOUT_CLASSNAME_MAPPER: Record<string, string> = {
84
+ grid: "flex flex-wrap",
85
+ formgrid: "flex-wrap",
86
+ "col-12": "w-full",
87
+ "col-11": "w-[91.666667%]",
88
+ "col-10": "w-[83.333333%]",
89
+ "col-9": "w-3/4",
90
+ "col-8": "w-[66.666667%]",
91
+ "col-7": "w-[58.333333%]",
92
+ "col-6": "w-1/2",
93
+ "col-5": "w-[41.666667%]",
94
+ "col-4": "w-1/3",
95
+ "col-3": "w-1/4",
96
+ "col-2": "w-[16.666667%]",
97
+ "col-1": "w-[8.333333%]",
98
+ "flex-column": "flex-col",
99
+ "flex-row": "flex-row",
100
+ "flex-wrap": "flex-wrap",
101
+ "align-items-start": "items-start",
102
+ "align-items-center": "items-center",
103
+ "align-items-end": "items-end",
104
+ "justify-content-start": "justify-start",
105
+ "justify-content-center": "justify-center",
106
+ "justify-content-end": "justify-end",
107
+ "justify-content-between": "justify-between",
108
+ "m-0": "m-0",
109
+ "mt-0": "mt-0",
110
+ "mt-1": "mt-1",
111
+ "mt-2": "mt-2",
112
+ "mt-3": "mt-3",
113
+ "mt-4": "mt-4",
114
+ "mb-0": "mb-0",
115
+ "mb-2": "mb-2",
116
+ "mb-3": "mb-3",
117
+ "my-4": "my-4",
118
+ "mx-auto": "mx-auto",
119
+ "px-0": "px-0",
120
+ "px-2": "px-2",
121
+ "px-3": "px-3",
122
+ "px-4": "px-4",
123
+ "py-2": "py-2",
124
+ "py-3": "py-3",
125
+ "pt-0": "pt-0",
126
+ "pt-2": "pt-2",
127
+ "pb-0": "pb-0",
128
+ "pb-2": "pb-2",
129
+ "pb-3": "pb-3",
130
+ "w-full": "w-full",
131
+ "h-full": "h-full",
132
+ };
133
+
134
+ const PRIMEFLEX_BREAKPOINT_TO_TAILWIND: Record<string, string> = {
135
+ sm: "sm",
136
+ md: "md",
137
+ lg: "lg",
138
+ xl: "xl",
139
+ };
140
+
141
+ const mapLayoutToken = (token: string) => {
142
+ const directMatch = LAYOUT_CLASSNAME_MAPPER[token];
143
+ if (directMatch) return directMatch;
144
+
145
+ const responsiveColumnMatch = token.match(/^col-(sm|md|lg|xl)-(\d{1,2})$/);
146
+ if (responsiveColumnMatch) {
147
+ const [, breakpoint, columnSize] = responsiveColumnMatch;
148
+ const widthClass = LAYOUT_CLASSNAME_MAPPER[`col-${columnSize}`];
149
+
150
+ if (widthClass) {
151
+ return `${PRIMEFLEX_BREAKPOINT_TO_TAILWIND[breakpoint]}:${widthClass}`;
152
+ }
153
+ }
154
+
155
+ return token;
156
+ };
157
+
158
+ const normalizeLayoutClassName = (className?: string) => {
159
+ if (!className) return className;
160
+
161
+ return className
162
+ .split(/\s+/)
163
+ .filter(Boolean)
164
+ .map((token) => {
165
+ const parts = token.split(":");
166
+ const baseToken = parts[parts.length - 1];
167
+ const responsivePrefix = parts.length > 1 ? `${parts.slice(0, -1).join(":")}:` : "";
168
+ const mappedToken = mapLayoutToken(baseToken);
169
+
170
+ return mappedToken ? `${responsivePrefix}${mappedToken}` : token;
171
+ })
172
+ .join(" ");
173
+ };
174
+
175
+ const normalizeLayoutAttrs = (attrs: any = {}) => {
176
+ if (!attrs?.className) return attrs;
177
+
178
+ return {
179
+ ...attrs,
180
+ className: normalizeLayoutClassName(attrs.className),
181
+ };
182
+ };
183
+
83
184
  const getLayoutFields = (node: any): any => {
84
185
  let fields = [];
85
186
 
@@ -211,32 +312,42 @@ const SolidField = ({ formik, field, fieldMetadata, initialEntityData, solidForm
211
312
  };
212
313
 
213
314
  const SolidGroup = ({ children, attrs }: any) => {
214
- const className = ["solid-form-layout-group", attrs.label ? "solid-form-layout-group--labeled" : "", attrs.className]
315
+ const className = [
316
+ "solid-form-layout-group",
317
+ "px-2",
318
+ "pt-2",
319
+ attrs.label ? "solid-form-layout-group--labeled" : "",
320
+ attrs.className,
321
+ ]
215
322
  .filter(Boolean)
216
323
  .join(" ");
217
324
 
218
325
  return (
219
326
  <div className={className}>
220
327
  {attrs.label && <p className="solid-form-layout-label">{attrs.label}</p>}
221
- <div className="grid">{children}</div>
328
+ <div className="flex flex-wrap -mx-2 -mt-2">{children}</div>
222
329
  </div>
223
330
  // <div className={className}>
224
331
  // <div className="s_group">
225
332
  // <fieldset>
226
333
  // {attrs.label && <p className="s_group_heading">{attrs.label}</p>}
227
- // <div className="grid">{children}</div>
334
+ // <div className="flex flex-wrap -mx-2 -mt-2">{children}</div>
228
335
  // </fieldset>
229
336
  // </div>
230
337
 
231
338
  // </div>
232
- // <div className="formgrid grid">
233
- // {children}
234
- // </div>
235
339
  );
236
340
  };
237
341
 
238
342
  const SolidRow = ({ children, attrs }: any) => {
239
- const className = ["row", "solid-form-layout-row", attrs.label ? "solid-form-layout-row--labeled" : "", attrs.className]
343
+ const className = [
344
+ "row",
345
+ "solid-form-layout-row",
346
+ "px-2",
347
+ "pt-2",
348
+ attrs.label ? "solid-form-layout-row--labeled" : "",
349
+ attrs.className,
350
+ ]
240
351
  .filter(Boolean)
241
352
  .join(" ");
242
353
 
@@ -246,34 +357,41 @@ const SolidRow = ({ children, attrs }: any) => {
246
357
  // <div className="s_group">
247
358
  // <fieldset>
248
359
  // {attrs.label && <p className="s_group_heading">{attrs.label}</p>}
249
- // <div className="grid">{children}</div>
360
+ // <div className="flex flex-wrap -mx-2 -mt-2">{children}</div>
250
361
  // </fieldset>
251
362
  // </div>
252
363
 
253
364
  // </div>
254
365
  <div className={className}>
255
366
  {attrs.label && <p className="solid-form-layout-label">{attrs.label}</p>}
256
- <div className="grid">{children}</div>
367
+ <div className="flex flex-wrap -mx-2 -mt-2">{children}</div>
257
368
  </div>
258
369
  // <div>{children}</div>
259
370
  );
260
371
  };
261
372
 
262
373
  const SolidColumn = ({ children, attrs }: any) => {
263
- const className = ["solid-form-layout-column", attrs.label ? "solid-form-layout-column--labeled" : "", attrs.className]
374
+ const className = [
375
+ "solid-form-layout-column",
376
+ "px-2",
377
+ "pt-2",
378
+ "min-w-0",
379
+ attrs.label ? "solid-form-layout-column--labeled" : "",
380
+ attrs.className,
381
+ ]
264
382
  .filter(Boolean)
265
383
  .join(" ");
266
384
 
267
385
  return (
268
386
  <div className={className}>
269
387
  {attrs.label && <p className="solid-form-layout-label">{attrs.label}</p>}
270
- <div className="grid">{children}</div>
388
+ <div className="flex flex-wrap -mx-2 -mt-2">{children}</div>
271
389
  </div>
272
390
  );
273
391
  };
274
392
 
275
393
  const SolidSheet = ({ children }: any) => (
276
- <div className="p-fluid p-grid">
394
+ <div className="solid-fluid flex flex-wrap -mx-2 mt-1">
277
395
  {children}
278
396
  </div>
279
397
  );
@@ -398,7 +516,7 @@ const SolidPage = ({ attrs, children, key, formik, fields }: any) => {
398
516
 
399
517
  return (
400
518
  <SolidPageTab key={key} label={label} tabKey={key} hasError={errorCount > 0}>
401
- <div className="p-fluid">{children}</div>
519
+ <div className="solid-fluid">{children}</div>
402
520
  </SolidPageTab>
403
521
  );
404
522
  };
@@ -411,7 +529,6 @@ const SolidPage = ({ attrs, children, key, formik, fields }: any) => {
411
529
  // element.attrs = {
412
530
  // ...element.attrs,
413
531
  // level: level, // Add level information to the attrs
414
- // // className: level === 1 ? 'col-12' : 'col-6', // Assign className based on level
415
532
  // };
416
533
  // } else {
417
534
  // element.children = addLevelToGroups(element.children, level);
@@ -713,6 +830,7 @@ const SolidFormView = (params: SolidFormViewProps) => {
713
830
  data: solidFormViewMetaData,
714
831
  isLoading: solidFormViewMetaDataIsLoading
715
832
  } = useGetSolidViewLayoutQuery(formViewMetaDataQs);
833
+ const [triggerGetSolidViewLayout] = useLazyGetSolidViewLayoutQuery();
716
834
  const entityDisplayName =
717
835
  solidFormViewMetaData?.data?.solidView?.model?.displayName || params.modelName;
718
836
  const [refreshChatterMessage, setRefreshChatterMessage] = useState<boolean>(true);
@@ -1291,12 +1409,12 @@ const SolidFormView = (params: SolidFormViewProps) => {
1291
1409
  return (
1292
1410
  <div className={`solid-form-wrapper ${viewMode=="edit"?"solid-form-edit":"solid-form-view"}`} ref={solidFormWrapperRef}>
1293
1411
  <div className="solid-form-section">
1294
- <div className="page-header solid-list-toolbar flex-column lg:flex-row">
1295
- <div className="flex justify-content-between w-full solid-form-toolbar-row">
1296
- <div className="flex gap-3 align-items-center solid-form-toolbar-left">
1412
+ <div className="page-header solid-list-toolbar flex-col lg:flex-row">
1413
+ <div className="flex justify-between w-full solid-form-toolbar-row">
1414
+ <div className="flex gap-4 items-center solid-form-toolbar-left">
1297
1415
  <p className="m-0 view-title solid-text-wrapper">Loading form</p>
1298
1416
  </div>
1299
- <div className="flex align-items-center solid-header-buttons-wrapper solid-form-toolbar-actions">
1417
+ <div className="flex items-center solid-header-buttons-wrapper solid-form-toolbar-actions">
1300
1418
  <SolidHeaderRequestStatus label="Loading..." />
1301
1419
  </div>
1302
1420
  </div>
@@ -1450,16 +1568,18 @@ const SolidFormView = (params: SolidFormViewProps) => {
1450
1568
  // Now render the form dynamically...
1451
1569
  const renderFormElementDynamically: any = (element: any, recursiveFVMD: any, path = "root") => {
1452
1570
  let { type, attrs, body, children } = element;
1571
+ const normalizedAttrs = normalizeLayoutAttrs(attrs);
1572
+ const normalizedElement = normalizedAttrs === attrs ? element : { ...element, attrs: normalizedAttrs };
1453
1573
 
1454
1574
  // const key = attrs?.name ?? generateRandomKey();
1455
- const key = attrs?.key ?? attrs?.name ?? attrs?.label ?? `${type}-${path}`;
1456
- let visible = attrs?.visible;
1575
+ const key = normalizedAttrs?.key ?? normalizedAttrs?.name ?? normalizedAttrs?.label ?? `${type}-${path}`;
1576
+ let visible = normalizedAttrs?.visible;
1457
1577
  if (visible === undefined || visible === null) {
1458
1578
  visible = true;
1459
1579
  }
1460
1580
  // console.log(`Resolved visibility of form element ${ key } to ${ visible } `);
1461
1581
  // console.log(`Form element ${ key }: `, attrs);
1462
- const visibleToRole = attrs?.roles || [];
1582
+ const visibleToRole = normalizedAttrs?.roles || [];
1463
1583
 
1464
1584
  if (visibleToRole.length > 0) {
1465
1585
  if (!hasAnyRole(user?.roles, visibleToRole)) {
@@ -1475,48 +1595,48 @@ const SolidFormView = (params: SolidFormViewProps) => {
1475
1595
  case "div":
1476
1596
  if (!children)
1477
1597
  children = [];
1478
- return <div key={key} {...attrs}>{children.map((element: any, index: number) => renderFormElementDynamically(element, recursiveFVMD, `${path}.${index}`))}</div>
1598
+ return <div key={key} {...normalizedAttrs}>{children.map((element: any, index: number) => renderFormElementDynamically(element, recursiveFVMD, `${path}.${index}`))}</div>
1479
1599
  case "span":
1480
- return <span key={key} {...attrs}>{body}</span>
1600
+ return <span key={key} {...normalizedAttrs}>{body}</span>
1481
1601
  case "p":
1482
- return <p key={key} className={attrs?.className} {...attrs}>{body}</p>
1602
+ return <p key={key} className={normalizedAttrs?.className} {...normalizedAttrs}>{body}</p>
1483
1603
  case "h1":
1484
- return <h1 key={key} {...attrs}>{body}</h1>
1604
+ return <h1 key={key} {...normalizedAttrs}>{body}</h1>
1485
1605
  case "h2":
1486
- return <h2 key={key} {...attrs}>{body}</h2>
1606
+ return <h2 key={key} {...normalizedAttrs}>{body}</h2>
1487
1607
  case "ul":
1488
1608
  if (!children)
1489
1609
  children = [];
1490
- return <ul key={key} {...attrs}>{children.map((element: any, index: number) => renderFormElementDynamically(element, recursiveFVMD, `${path}.${index}`))}</ul>
1610
+ return <ul key={key} {...normalizedAttrs}>{children.map((element: any, index: number) => renderFormElementDynamically(element, recursiveFVMD, `${path}.${index}`))}</ul>
1491
1611
  case "li":
1492
- return <li key={key} {...attrs}>{body}</li>
1612
+ return <li key={key} {...normalizedAttrs}>{body}</li>
1493
1613
  case "sheet":
1494
1614
  return <SolidSheet key={key}>{children.map((element: any, index: number) => renderFormElementDynamically(element, recursiveFVMD, `${path}.${index}`))}</SolidSheet>;
1495
1615
  case "group":
1496
1616
  if (visible === true) {
1497
- return <SolidGroup key={key} attrs={attrs}>{children.map((element: any, index: number) => renderFormElementDynamically(element, recursiveFVMD, `${path}.${index}`))}</SolidGroup>;
1617
+ return <SolidGroup key={key} attrs={normalizedAttrs}>{children.map((element: any, index: number) => renderFormElementDynamically(element, recursiveFVMD, `${path}.${index}`))}</SolidGroup>;
1498
1618
  }
1499
1619
  break;
1500
1620
  case "row":
1501
1621
  if (visible === true) {
1502
- return <SolidRow key={key} attrs={attrs}>{children.map((element: any, index: number) => renderFormElementDynamically(element, recursiveFVMD, `${path}.${index}`))}</SolidRow>;
1622
+ return <SolidRow key={key} attrs={normalizedAttrs}>{children.map((element: any, index: number) => renderFormElementDynamically(element, recursiveFVMD, `${path}.${index}`))}</SolidRow>;
1503
1623
  }
1504
1624
  break;
1505
1625
  case "column":
1506
1626
  if (visible === true) {
1507
- return <SolidColumn key={key} attrs={attrs}>{children.map((element: any, index: number) => renderFormElementDynamically(element, recursiveFVMD, `${path}.${index}`))}</SolidColumn>;
1627
+ return <SolidColumn key={key} attrs={normalizedAttrs}>{children.map((element: any, index: number) => renderFormElementDynamically(element, recursiveFVMD, `${path}.${index}`))}</SolidColumn>;
1508
1628
  }
1509
1629
  break;
1510
1630
  case "field":
1511
1631
  if (visible === true) {
1512
1632
 
1513
1633
  // const fieldMetadata = solidFieldsMetadata[attrs.name];
1514
- const fieldMetadata = recursiveFVMD.data.solidFieldsMetadata[attrs.name];
1634
+ const fieldMetadata = recursiveFVMD.data.solidFieldsMetadata[normalizedAttrs.name];
1515
1635
  // Read only permission if there is no update permission on model and router doesnt contains new
1516
1636
  const readOnlyPermission = !actionsAllowed.includes(`${permissionExpression(params.modelName, 'update')}`) && params.id !== "new";
1517
1637
  return <SolidField
1518
- key={attrs.name}
1519
- field={element}
1638
+ key={normalizedAttrs.name}
1639
+ field={normalizedElement}
1520
1640
  formik={formik}
1521
1641
  fieldMetadata={fieldMetadata}
1522
1642
  initialEntityData={solidFormViewData ? solidFormViewData.data : {}}
@@ -1638,20 +1758,47 @@ const SolidFormView = (params: SolidFormViewProps) => {
1638
1758
  };
1639
1759
 
1640
1760
  //en 4 null
1641
- const handleLocaleChangeRedirect = (
1761
+ const handleLocaleChangeRedirect = async (
1642
1762
  locale: string,
1643
1763
  defaultEntityLocaleId: string,
1644
1764
  viewMode: string,
1645
1765
  ) => {
1646
1766
  let newViewMode = viewMode;
1647
1767
  const defaultApplicableLocales = solidFormViewMetaData?.data?.applicableLocales || [];
1648
- //fr 4
1649
- const matchingLocale = defaultApplicableLocales.find(
1768
+ let matchingLocale = defaultApplicableLocales.find(
1650
1769
  (loc: any) =>
1651
1770
  loc.defaultEntityLocaleId &&
1652
1771
  loc.entityId &&
1653
1772
  loc.locale === locale
1654
1773
  );
1774
+
1775
+ if (!matchingLocale) {
1776
+ const resolvedDefaultEntityLocaleId =
1777
+ defaultEntityLocaleId || params.id;
1778
+
1779
+ const freshQuery = qs.stringify(
1780
+ {
1781
+ ...params,
1782
+ viewType: 'form',
1783
+ defaultEntityLocaleId: resolvedDefaultEntityLocaleId,
1784
+ },
1785
+ { encodeValuesOnly: true },
1786
+ );
1787
+
1788
+ try {
1789
+ const freshResponse: any = await triggerGetSolidViewLayout(freshQuery).unwrap();
1790
+ const freshApplicableLocales = freshResponse?.data?.applicableLocales || [];
1791
+ matchingLocale = freshApplicableLocales.find(
1792
+ (loc: any) =>
1793
+ loc.defaultEntityLocaleId &&
1794
+ loc.entityId &&
1795
+ loc.locale === locale
1796
+ );
1797
+ } catch {
1798
+ // Fall back to the existing locale metadata if the refresh fails.
1799
+ }
1800
+ }
1801
+
1655
1802
  // Extract the base path from the current pathname, removing query params if any
1656
1803
  const basePath = pathname.split('?')[0];
1657
1804
 
@@ -1765,7 +1912,7 @@ const SolidFormView = (params: SolidFormViewProps) => {
1765
1912
  handleDraftPublishWorkFlow={handleDraftPublishWorkFlow}
1766
1913
  onStepperUpdate={() => setRefreshChatterMessage(true)}
1767
1914
  isSubmitting={isSubmitting}
1768
- headerRequestStatusLabel={isSubmitting ? "Saving..." : null}
1915
+ // headerRequestStatusLabel={isSubmitting ? "Saving..." : null}
1769
1916
  showMobileOpenChatter={isMobileViewport && !isShowChatter && params.embeded !== true}
1770
1917
  onMobileOpenChatter={() => setShowChatter(true)}
1771
1918
  />
@@ -1810,7 +1957,7 @@ const SolidFormView = (params: SolidFormViewProps) => {
1810
1957
  />
1811
1958
  }
1812
1959
  {isShowChatter === false ?
1813
- <div className="flex flex-column gap-2 justify-content-center p-1">
1960
+ <div className="flex flex-col gap-2 justify-center p-1">
1814
1961
  {/*if solidview Internationalisation is enabled then show the locale tab */}
1815
1962
  {solidFormViewMetaData?.data?.solidView?.model?.draftPublishWorkflow &&
1816
1963
  <div className="chatter-collapsed-content" onClick={() => handleChatterExpandClick('info')}>
@@ -1874,7 +2021,7 @@ const SolidFormView = (params: SolidFormViewProps) => {
1874
2021
  <SolidDialogClose />
1875
2022
  </SolidDialogHeader>
1876
2023
  <SolidDialogSeparator />
1877
- <SolidDialogBody className="p-3 pt-0 lg:p-4">
2024
+ <SolidDialogBody className="p-4 pt-0 lg:p-6">
1878
2025
  <SolidFormUserViewLayout solidFormViewMetaData={solidFormViewMetaData} setLayoutDialogVisible={setLayoutDialogVisible} />
1879
2026
  </SolidDialogBody>
1880
2027
  </SolidDialog>
@@ -1 +1 @@
1
- {"version":3,"file":"SolidFormViewContextMenuHeaderButton.d.ts","sourceRoot":"","sources":["../../../../src/components/core/form/SolidFormViewContextMenuHeaderButton.tsx"],"names":[],"mappings":"AAKA,UAAU,yCAAyC;IAC/C,MAAM,EAAE,GAAG,CAAC;IACZ,MAAM,EAAE,GAAG,CAAC;IACZ,MAAM,EAAE,GAAG,CAAC;IACZ,qBAAqB,EAAE,GAAG,CAAC;IAC3B,uBAAuB,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IAC1D,QAAQ,EAAE,GAAG,CAAC;IACd,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;CAChC;AAED,wBAAgB,oCAAoC,CAAC,EACjD,MAAM,EACN,MAAM,EACN,MAAM,EACN,qBAAqB,EACrB,uBAAuB,EACvB,QAAQ,EACR,gBAAgB,EAChB,OAAmB,EACtB,EAAE,yCAAyC,kDA6D3C"}
1
+ {"version":3,"file":"SolidFormViewContextMenuHeaderButton.d.ts","sourceRoot":"","sources":["../../../../src/components/core/form/SolidFormViewContextMenuHeaderButton.tsx"],"names":[],"mappings":"AAKA,UAAU,yCAAyC;IAC/C,MAAM,EAAE,GAAG,CAAC;IACZ,MAAM,EAAE,GAAG,CAAC;IACZ,MAAM,EAAE,GAAG,CAAC;IACZ,qBAAqB,EAAE,GAAG,CAAC;IAC3B,uBAAuB,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IAC1D,QAAQ,EAAE,GAAG,CAAC;IACd,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;CAChC;AAED,wBAAgB,oCAAoC,CAAC,EACjD,MAAM,EACN,MAAM,EACN,MAAM,EACN,qBAAqB,EACrB,uBAAuB,EACvB,QAAQ,EACR,gBAAgB,EAChB,OAAmB,EACtB,EAAE,yCAAyC,kDAiE3C"}
@@ -36,6 +36,10 @@ export function SolidFormViewContextMenuHeaderButton(_a) {
36
36
  if (variant === "menu") {
37
37
  return (_jsxs("button", { type: "button", className: "solid-row-action-button ".concat(presentation.buttonClassName ? presentation.buttonClassName : ''), onClick: handleClick, title: presentation.tooltip, "aria-label": presentation.isIconOnly ? ((_h = (_f = presentation.tooltip) !== null && _f !== void 0 ? _f : (_g = button === null || button === void 0 ? void 0 : button.attrs) === null || _g === void 0 ? void 0 : _g.action) !== null && _h !== void 0 ? _h : "Action") : undefined, children: [presentation.iconPos === "left" ? iconNode : null, presentation.showLabel ? _jsx("span", { className: "solid-row-action-button-label", children: presentation.label }) : null, presentation.iconPos === "right" ? iconNode : null] }));
38
38
  }
39
- return (_jsx("div", { children: _jsx(SolidButton, { text: true, type: "button", className: "w-full text-left gap-2 ".concat(presentation.buttonClassName ? presentation.buttonClassName : ''), label: presentation.label, size: "sm", icon: presentation.icon, iconPos: presentation.iconPos, tooltip: presentation.tooltip, "aria-label": presentation.isIconOnly ? ((_l = (_j = presentation.tooltip) !== null && _j !== void 0 ? _j : (_k = button === null || button === void 0 ? void 0 : button.attrs) === null || _k === void 0 ? void 0 : _k.action) !== null && _l !== void 0 ? _l : "Action") : undefined, onClick: handleClick }) }));
39
+ return (_jsx("div", { children: _jsx(SolidButton, { text: true, type: "button", className: [
40
+ "w-full text-left gap-2",
41
+ presentation.isIconOnly ? "solid-icon-button" : "",
42
+ presentation.buttonClassName ? presentation.buttonClassName : ""
43
+ ].filter(Boolean).join(" "), label: presentation.label, size: "sm", icon: presentation.icon, iconPos: presentation.iconPos, tooltip: presentation.tooltip, "aria-label": presentation.isIconOnly ? ((_l = (_j = presentation.tooltip) !== null && _j !== void 0 ? _j : (_k = button === null || button === void 0 ? void 0 : button.attrs) === null || _k === void 0 ? void 0 : _k.action) !== null && _l !== void 0 ? _l : "Action") : undefined, onClick: handleClick }) }));
40
44
  }
41
45
  //# sourceMappingURL=SolidFormViewContextMenuHeaderButton.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SolidFormViewContextMenuHeaderButton.js","sourceRoot":"","sources":["../../../../src/components/core/form/SolidFormViewContextMenuHeaderButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAE,yBAAyB,EAAE,MAAM,qCAAqC,CAAC;AAChF,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAa9E,MAAM,UAAU,oCAAoC,CAAC,EAST;;QARxC,MAAM,YAAA,EACN,MAAM,YAAA,EACN,MAAM,YAAA,EACN,qBAAqB,2BAAA,EACrB,uBAAuB,6BAAA,EACvB,QAAQ,cAAA,EACR,gBAAgB,sBAAA,EAChB,eAAmB,EAAnB,OAAO,mBAAG,SAAS,KAAA;IAGb,IAAA,KAA4B,UAAU,EAAE,EAAhC,OAAO,UAAA,EAAE,MAAM,YAAiB,CAAC;IAC/C,IAAM,IAAI,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,CAAC;IAE3B,IAAM,OAAO,GAAG,CAAC,CAAA,MAAA,MAAM,CAAC,KAAK,0CAAE,KAAK,CAAA,IAAI,CAAA,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,KAAK,0CAAE,KAAK,CAAC,MAAM,MAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,UAAU,CAAC,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,KAAK,EAAE,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,KAAK,0CAAE,KAAK,CAAC,CAAC;IACjI,IAAM,YAAY,GAAG,yBAAyB,CAAC,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,KAAK,CAAC,CAA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helpers/buttonPresentation\";\nimport { useSession } from \"../../../hooks/useSession\";\nimport { SolidButton, SolidIcon, parseSolidIconMeta } from \"../../shad-cn-ui\";\n\ninterface SolidFormViewContextMenuHeaderButtonProps {\n button: any;\n params: any;\n formik: any;\n solidFormViewMetaData: any;\n handleCustomButtonClick: (attrs: any, event: any) => void;\n formData: any;\n onActionComplete?: () => void;\n variant?: \"default\" | \"menu\";\n}\n\nexport function SolidFormViewContextMenuHeaderButton({\n button,\n params,\n formik,\n solidFormViewMetaData,\n handleCustomButtonClick,\n formData,\n onActionComplete,\n variant = \"default\"\n}: SolidFormViewContextMenuHeaderButtonProps) {\n\n const { data: session, status } = useSession();\n const user = session?.user;\n\n const hasRole = !button.attrs?.roles || button?.attrs?.roles.length === 0 ? true : hasAnyRole(user?.roles, button?.attrs?.roles);\n const presentation = resolveButtonPresentation(button?.attrs);\n\n if (!hasRole) return null;\n if (button.attrs?.visible == false) return null\n if (!presentation.showIcon && !presentation.showLabel) return null;\n const iconMeta = presentation.icon ? parseSolidIconMeta(presentation.icon) : undefined;\n const iconNode = presentation.showIcon\n ? (iconMeta\n ? <SolidIcon name={iconMeta.name} spin={iconMeta.spin} className=\"solid-row-action-button-icon\" aria-hidden />\n : <i className={`${presentation.icon} solid-row-action-button-icon`} aria-hidden />)\n : null;\n const handleClick = () => {\n const event = {\n action: button.attrs.action,\n params,\n formik,\n solidFormViewMetaData: solidFormViewMetaData.data,\n formData\n };\n handleCustomButtonClick(button.attrs, event);\n onActionComplete?.();\n };\n\n if (variant === \"menu\") {\n return (\n <button\n type=\"button\"\n className={`solid-row-action-button ${presentation.buttonClassName ? presentation.buttonClassName : ''}`}\n onClick={handleClick}\n title={presentation.tooltip}\n aria-label={presentation.isIconOnly ? (presentation.tooltip ?? button?.attrs?.action ?? \"Action\") : undefined}\n >\n {presentation.iconPos === \"left\" ? iconNode : null}\n {presentation.showLabel ? <span className=\"solid-row-action-button-label\">{presentation.label}</span> : null}\n {presentation.iconPos === \"right\" ? iconNode : null}\n </button>\n );\n }\n\n return (\n <div>\n <SolidButton\n text\n type=\"button\"\n className={`w-full text-left gap-2 ${presentation.buttonClassName ? presentation.buttonClassName : ''}`}\n label={presentation.label}\n size=\"sm\"\n icon={presentation.icon}\n iconPos={presentation.iconPos}\n tooltip={presentation.tooltip}\n aria-label={presentation.isIconOnly ? (presentation.tooltip ?? button?.attrs?.action ?? \"Action\") : undefined}\n onClick={handleClick}\n />\n </div>\n );\n}\n"]}
1
+ {"version":3,"file":"SolidFormViewContextMenuHeaderButton.js","sourceRoot":"","sources":["../../../../src/components/core/form/SolidFormViewContextMenuHeaderButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAE,yBAAyB,EAAE,MAAM,qCAAqC,CAAC;AAChF,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAa9E,MAAM,UAAU,oCAAoC,CAAC,EAST;;QARxC,MAAM,YAAA,EACN,MAAM,YAAA,EACN,MAAM,YAAA,EACN,qBAAqB,2BAAA,EACrB,uBAAuB,6BAAA,EACvB,QAAQ,cAAA,EACR,gBAAgB,sBAAA,EAChB,eAAmB,EAAnB,OAAO,mBAAG,SAAS,KAAA;IAGb,IAAA,KAA4B,UAAU,EAAE,EAAhC,OAAO,UAAA,EAAE,MAAM,YAAiB,CAAC;IAC/C,IAAM,IAAI,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,CAAC;IAE3B,IAAM,OAAO,GAAG,CAAC,CAAA,MAAA,MAAM,CAAC,KAAK,0CAAE,KAAK,CAAA,IAAI,CAAA,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,KAAK,0CAAE,KAAK,CAAC,MAAM,MAAK,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,U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E,YAAY,CAAC,OAAO,EAC7B,OAAO,EAAE,YAAY,CAAC,OAAO,gBACjB,YAAY,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,MAAA,MAAA,YAAY,CAAC,OAAO,mCAAI,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,KAAK,0CAAE,MAAM,mCAAI,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,EAC7G,OAAO,EAAE,WAAW,GACtB,GACA,CACT,CAAC;AACN,CAAC","sourcesContent":["import { hasAnyRole } from \"../../../helpers/rolesHelper\";\nimport { resolveButtonPresentation } from \"../../../helpers/buttonPresentation\";\nimport { useSession } from \"../../../hooks/useSession\";\nimport { SolidButton, SolidIcon, parseSolidIconMeta } from \"../../shad-cn-ui\";\n\ninterface SolidFormViewContextMenuHeaderButtonProps {\n button: any;\n params: any;\n formik: any;\n solidFormViewMetaData: any;\n handleCustomButtonClick: (attrs: any, event: any) => void;\n formData: any;\n onActionComplete?: () => void;\n variant?: \"default\" | \"menu\";\n}\n\nexport function SolidFormViewContextMenuHeaderButton({\n button,\n params,\n formik,\n solidFormViewMetaData,\n handleCustomButtonClick,\n formData,\n onActionComplete,\n variant = \"default\"\n}: SolidFormViewContextMenuHeaderButtonProps) {\n\n const { data: session, status } = useSession();\n const user = session?.user;\n\n const hasRole = !button.attrs?.roles || button?.attrs?.roles.length === 0 ? true : hasAnyRole(user?.roles, button?.attrs?.roles);\n const presentation = resolveButtonPresentation(button?.attrs);\n\n if (!hasRole) return null;\n if (button.attrs?.visible == false) return null\n if (!presentation.showIcon && !presentation.showLabel) return null;\n const iconMeta = presentation.icon ? parseSolidIconMeta(presentation.icon) : undefined;\n const iconNode = presentation.showIcon\n ? (iconMeta\n ? <SolidIcon name={iconMeta.name} spin={iconMeta.spin} className=\"solid-row-action-button-icon\" aria-hidden />\n : <i className={`${presentation.icon} solid-row-action-button-icon`} aria-hidden />)\n : null;\n const handleClick = () => {\n const event = {\n action: button.attrs.action,\n params,\n formik,\n solidFormViewMetaData: solidFormViewMetaData.data,\n formData\n };\n handleCustomButtonClick(button.attrs, event);\n onActionComplete?.();\n };\n\n if (variant === \"menu\") {\n return (\n <button\n type=\"button\"\n className={`solid-row-action-button ${presentation.buttonClassName ? presentation.buttonClassName : ''}`}\n onClick={handleClick}\n title={presentation.tooltip}\n aria-label={presentation.isIconOnly ? (presentation.tooltip ?? button?.attrs?.action ?? \"Action\") : undefined}\n >\n {presentation.iconPos === \"left\" ? iconNode : null}\n {presentation.showLabel ? <span className=\"solid-row-action-button-label\">{presentation.label}</span> : null}\n {presentation.iconPos === \"right\" ? iconNode : null}\n </button>\n );\n }\n\n return (\n <div>\n <SolidButton\n text\n type=\"button\"\n className={[\n \"w-full text-left gap-2\",\n presentation.isIconOnly ? \"solid-icon-button\" : \"\",\n presentation.buttonClassName ? presentation.buttonClassName : \"\"\n ].filter(Boolean).join(\" \")}\n label={presentation.label}\n size=\"sm\"\n icon={presentation.icon}\n iconPos={presentation.iconPos}\n tooltip={presentation.tooltip}\n aria-label={presentation.isIconOnly ? (presentation.tooltip ?? button?.attrs?.action ?? \"Action\") : undefined}\n onClick={handleClick}\n />\n </div>\n );\n}\n"]}
@@ -73,7 +73,11 @@ export function SolidFormViewContextMenuHeaderButton({
73
73
  <SolidButton
74
74
  text
75
75
  type="button"
76
- className={`w-full text-left gap-2 ${presentation.buttonClassName ? presentation.buttonClassName : ''}`}
76
+ className={[
77
+ "w-full text-left gap-2",
78
+ presentation.isIconOnly ? "solid-icon-button" : "",
79
+ presentation.buttonClassName ? presentation.buttonClassName : ""
80
+ ].filter(Boolean).join(" ")}
77
81
  label={presentation.label}
78
82
  size="sm"
79
83
  icon={presentation.icon}
@@ -1 +1 @@
1
- {"version":3,"file":"SolidFormViewNormalHeaderButton.d.ts","sourceRoot":"","sources":["../../../../src/components/core/form/SolidFormViewNormalHeaderButton.tsx"],"names":[],"mappings":"AAMA,UAAU,oCAAoC;IAC1C,MAAM,EAAE,GAAG,CAAC;IACZ,MAAM,EAAE,GAAG,CAAC;IACZ,MAAM,EAAE,GAAG,CAAC;IACZ,qBAAqB,EAAE,GAAG,CAAC;IAC3B,uBAAuB,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IAC1D,QAAQ,EAAE,GAAG,CAAC;IACd,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;CAChC;AAED,wBAAgB,+BAA+B,CAAC,EAC5C,MAAM,EACN,MAAM,EACN,MAAM,EACN,qBAAqB,EACrB,uBAAuB,EACvB,QAAQ,EACR,gBAAgB,EAChB,OAAmB,EACtB,EAAE,oCAAoC,kDA6DtC"}
1
+ {"version":3,"file":"SolidFormViewNormalHeaderButton.d.ts","sourceRoot":"","sources":["../../../../src/components/core/form/SolidFormViewNormalHeaderButton.tsx"],"names":[],"mappings":"AAMA,UAAU,oCAAoC;IAC1C,MAAM,EAAE,GAAG,CAAC;IACZ,MAAM,EAAE,GAAG,CAAC;IACZ,MAAM,EAAE,GAAG,CAAC;IACZ,qBAAqB,EAAE,GAAG,CAAC;IAC3B,uBAAuB,EAAE,CAAC,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC;IAC1D,QAAQ,EAAE,GAAG,CAAC;IACd,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAC;IAC9B,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;CAChC;AAED,wBAAgB,+BAA+B,CAAC,EAC5C,MAAM,EACN,MAAM,EACN,MAAM,EACN,qBAAqB,EACrB,uBAAuB,EACvB,QAAQ,EACR,gBAAgB,EAChB,OAAmB,EACtB,EAAE,oCAAoC,kDAiEtC"}
@@ -48,6 +48,10 @@ export function SolidFormViewNormalHeaderButton(_a) {
48
48
  : null;
49
49
  return (_jsxs("button", { type: "button", className: "solid-row-action-button ".concat(presentation.buttonClassName ? presentation.buttonClassName : ''), onClick: handleClick, title: presentation.tooltip, "aria-label": presentation.isIconOnly ? ((_h = (_f = presentation.tooltip) !== null && _f !== void 0 ? _f : (_g = button === null || button === void 0 ? void 0 : button.attrs) === null || _g === void 0 ? void 0 : _g.action) !== null && _h !== void 0 ? _h : "Action") : undefined, children: [presentation.iconPos === "left" ? iconNode : null, presentation.showLabel ? _jsx("span", { className: "solid-row-action-button-label", children: presentation.label }) : null, presentation.iconPos === "right" ? iconNode : null] }));
50
50
  }
51
- return (_jsx("div", { children: _jsx(SolidButton, __assign({ type: "button", className: "w-full text-left gap-2 solid-icon-button ".concat(presentation.buttonClassName ? presentation.buttonClassName : '') }, button.attrs, { label: presentation.label, size: "sm", iconPos: presentation.iconPos, icon: presentation.icon, tooltip: presentation.tooltip, "aria-label": presentation.isIconOnly ? ((_l = (_j = presentation.tooltip) !== null && _j !== void 0 ? _j : (_k = button === null || button === void 0 ? void 0 : button.attrs) === null || _k === void 0 ? void 0 : _k.action) !== null && _l !== void 0 ? _l : "Action") : undefined, onClick: handleClick })) }));
51
+ return (_jsx("div", { children: _jsx(SolidButton, __assign({ type: "button", className: [
52
+ "w-full text-left gap-2",
53
+ presentation.isIconOnly ? "solid-icon-button" : "",
54
+ presentation.buttonClassName ? presentation.buttonClassName : ""
55
+ ].filter(Boolean).join(" ") }, button.attrs, { label: presentation.label, size: "sm", iconPos: presentation.iconPos, icon: presentation.icon, tooltip: presentation.tooltip, "aria-label": presentation.isIconOnly ? ((_l = (_j = presentation.tooltip) !== null && _j !== void 0 ? _j : (_k = button === null || button === void 0 ? void 0 : button.attrs) === null || _k === void 0 ? void 0 : _k.action) !== null && _l !== void 0 ? _l : "Action") : undefined, onClick: handleClick })) }));
52
56
  }
53
57
  //# sourceMappingURL=SolidFormViewNormalHeaderButton.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"SolidFormViewNormalHeaderButton.js","sourceRoot":"","sources":["../../../../src/components/core/form/SolidFormViewNormalHeaderButton.tsx"],"names":[],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U,CAAC,CAAC,CAAC,CAAC,MAAA,MAAA,YAAY,CAAC,OAAO,mCAAI,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,KAAK,0CAAE,MAAM,mCAAI,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,aAE5G,YAAY,CAAC,OAAO,KAAK,MAAM,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,EACjD,YAAY,CAAC,SAAS,CAAC,CAAC,CAAC,eAAM,SAAS,EAAC,+BAA+B,YAAE,YAAY,CAAC,KAAK,GAAQ,CAAC,CAAC,CAAC,IAAI,EAC3G,YAAY,CAAC,OAAO,KAAK,OAAO,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,IAC9C,CACZ,CAAC;KACL;IAED,OAAO,CACH,wBACI,KAAC,WAAW,aACR,IAAI,EAAC,QAAQ,EACb,SAAS,EAAE,mDAA4C,YAAY,CAAC,eAAe,CAAC,CAAC,CAAC,YAAY,CAAC,eAAe,CAAC,CAAC,CAAC,EAAE,CAAE,IACrH,MAAM,CAAC,KAAK,IAChB,KAAK,EAAE,YAAY,CAAC,KAAK,EACzB,IAAI,EAAC,IAAI,EACT,OAAO,EAAE,YAAY,CAAC,OAAO,EAC7B,IAAI,EAAE,YAAY,CAAC,IAAI,EACvB,OAAO,EAAE,YAAY,CAAC,OAAO,gBACjB,YAAY,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,MAAA,MAAA,YAAY,CAAC,OAAO,mCAAI,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,KAAK,0CAAE,MAAM,mCAAI,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,EAC7G,OAAO,EAAE,WAAW,IACtB,GACA,CACT,CAAC;AACN,CAAC","sourcesContent":["import { hasAnyRole } from '../../../helpers/rolesHelper';\nimport { useSession } from \"../../../hooks/useSession\";\nimport { resolveButtonPresentation } from '../../../helpers/buttonPresentation';\nimport { SolidButton } from '../../shad-cn-ui';\nimport { SolidIcon, parseSolidIconMeta } from \"../../shad-cn-ui/SolidIcon\";\n\ninterface SolidFormViewNormalHeaderButtonProps {\n button: any;\n params: any;\n formik: any;\n solidFormViewMetaData: any;\n handleCustomButtonClick: (attrs: any, event: any) => void;\n formData: any;\n onActionComplete?: () => void;\n variant?: \"default\" | \"menu\";\n}\n\nexport function SolidFormViewNormalHeaderButton({\n button,\n params,\n formik,\n solidFormViewMetaData,\n handleCustomButtonClick,\n formData,\n onActionComplete,\n variant = \"default\"\n}: SolidFormViewNormalHeaderButtonProps) {\n\n const { data: session, status } = useSession();\n const user = session?.user;\n\n const hasRole = !button?.attrs?.roles || button?.attrs?.roles.length === 0 ? true : hasAnyRole(user?.roles, button?.attrs?.roles);\n const presentation = resolveButtonPresentation(button?.attrs);\n\n if (!hasRole) return null;\n if (button?.attrs?.visible == false) return null\n if (!presentation.showIcon && !presentation.showLabel) return null;\n const handleClick = () => {\n const event = {\n action: button.attrs.action,\n params,\n formik,\n solidFormViewMetaData: solidFormViewMetaData.data,\n formData\n };\n handleCustomButtonClick(button.attrs, event);\n onActionComplete?.();\n };\n\n if (variant === \"menu\") {\n const iconMeta = presentation.icon ? parseSolidIconMeta(presentation.icon) : undefined;\n const iconNode = presentation.showIcon\n ? (iconMeta\n ? <SolidIcon name={iconMeta.name} spin={iconMeta.spin} className=\"solid-row-action-button-icon\" />\n : <i className={`${presentation.icon} solid-row-action-button-icon`} />)\n : null;\n return (\n <button\n type=\"button\"\n className={`solid-row-action-button ${presentation.buttonClassName ? presentation.buttonClassName : ''}`}\n onClick={handleClick}\n title={presentation.tooltip}\n aria-label={presentation.isIconOnly ? (presentation.tooltip ?? button?.attrs?.action ?? \"Action\") : undefined}\n >\n {presentation.iconPos === \"left\" ? iconNode : null}\n {presentation.showLabel ? <span className=\"solid-row-action-button-label\">{presentation.label}</span> : null}\n {presentation.iconPos === \"right\" ? iconNode : null}\n </button>\n );\n }\n\n return (\n <div>\n <SolidButton\n type=\"button\"\n className={`w-full text-left gap-2 solid-icon-button ${presentation.buttonClassName ? presentation.buttonClassName : ''}`}\n {...button.attrs}\n label={presentation.label}\n size=\"sm\"\n iconPos={presentation.iconPos}\n icon={presentation.icon}\n tooltip={presentation.tooltip}\n aria-label={presentation.isIconOnly ? (presentation.tooltip ?? button?.attrs?.action ?? \"Action\") : undefined}\n onClick={handleClick}\n />\n </div>\n );\n}\n"]}
1
+ {"version":3,"file":"SolidFormViewNormalHeaderButton.js","sourceRoot":"","sources":["../../../../src/components/core/form/SolidFormViewNormalHeaderButton.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAC;AACvD,OAAO,EAAE,yBAAyB,EAAE,MAAM,qCAAqC,CAAC;AAChF,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,SAAS,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAa3E,MAAM,UAAU,+BAA+B,CAAC,EAST;;QARnC,MAAM,YAAA,EACN,MAAM,YAAA,EACN,MAAM,YAAA,EACN,qBAAqB,2BAAA,EACrB,uBAAuB,6BAAA,EACvB,QAAQ,cAAA,EACR,gBAAgB,sBAAA,EAChB,eAAmB,EAAnB,OAAO,mBAAG,SAAS,KAAA;IAGb,IAAA,KAA4B,UAAU,EAAE,EAAhC,OAAO,UAAA,EAAE,MAAM,YAAiB,CAAC;IAC/C,IAAM,IAAI,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,IAAI,CAAC;IAE3B,IAAM,OAAO,GAAG,CAAC,CAAA,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,KAAK,0CAAE,KAAK,CAAA,IAAI,CAAA,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,KAAK,0CAAE,KAAK,CAAC,MAAM,MAAK,CAAC,CAAC,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B,IAAI,EAAC,IAAI,EACT,OAAO,EAAE,YAAY,CAAC,OAAO,EAC7B,IAAI,EAAE,YAAY,CAAC,IAAI,EACvB,OAAO,EAAE,YAAY,CAAC,OAAO,gBACjB,YAAY,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,MAAA,MAAA,YAAY,CAAC,OAAO,mCAAI,MAAA,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,KAAK,0CAAE,MAAM,mCAAI,QAAQ,CAAC,CAAC,CAAC,CAAC,SAAS,EAC7G,OAAO,EAAE,WAAW,IACtB,GACA,CACT,CAAC;AACN,CAAC","sourcesContent":["import { hasAnyRole } from '../../../helpers/rolesHelper';\nimport { useSession } from \"../../../hooks/useSession\";\nimport { resolveButtonPresentation } from '../../../helpers/buttonPresentation';\nimport { SolidButton } from '../../shad-cn-ui';\nimport { SolidIcon, parseSolidIconMeta } from \"../../shad-cn-ui/SolidIcon\";\n\ninterface SolidFormViewNormalHeaderButtonProps {\n button: any;\n params: any;\n formik: any;\n solidFormViewMetaData: any;\n handleCustomButtonClick: (attrs: any, event: any) => void;\n formData: any;\n onActionComplete?: () => void;\n variant?: \"default\" | \"menu\";\n}\n\nexport function SolidFormViewNormalHeaderButton({\n button,\n params,\n formik,\n solidFormViewMetaData,\n handleCustomButtonClick,\n formData,\n onActionComplete,\n variant = \"default\"\n}: SolidFormViewNormalHeaderButtonProps) {\n\n const { data: session, status } = useSession();\n const user = session?.user;\n\n const hasRole = !button?.attrs?.roles || button?.attrs?.roles.length === 0 ? true : hasAnyRole(user?.roles, button?.attrs?.roles);\n const presentation = resolveButtonPresentation(button?.attrs);\n\n if (!hasRole) return null;\n if (button?.attrs?.visible == false) return null\n if (!presentation.showIcon && !presentation.showLabel) return null;\n const handleClick = () => {\n const event = {\n action: button.attrs.action,\n params,\n formik,\n solidFormViewMetaData: solidFormViewMetaData.data,\n formData\n };\n handleCustomButtonClick(button.attrs, event);\n onActionComplete?.();\n };\n\n if (variant === \"menu\") {\n const iconMeta = presentation.icon ? parseSolidIconMeta(presentation.icon) : undefined;\n const iconNode = presentation.showIcon\n ? (iconMeta\n ? <SolidIcon name={iconMeta.name} spin={iconMeta.spin} className=\"solid-row-action-button-icon\" />\n : <i className={`${presentation.icon} solid-row-action-button-icon`} />)\n : null;\n return (\n <button\n type=\"button\"\n className={`solid-row-action-button ${presentation.buttonClassName ? presentation.buttonClassName : ''}`}\n onClick={handleClick}\n title={presentation.tooltip}\n aria-label={presentation.isIconOnly ? (presentation.tooltip ?? button?.attrs?.action ?? \"Action\") : undefined}\n >\n {presentation.iconPos === \"left\" ? iconNode : null}\n {presentation.showLabel ? <span className=\"solid-row-action-button-label\">{presentation.label}</span> : null}\n {presentation.iconPos === \"right\" ? iconNode : null}\n </button>\n );\n }\n\n return (\n <div>\n <SolidButton\n type=\"button\"\n className={[\n \"w-full text-left gap-2\",\n presentation.isIconOnly ? \"solid-icon-button\" : \"\",\n presentation.buttonClassName ? presentation.buttonClassName : \"\"\n ].filter(Boolean).join(\" \")}\n {...button.attrs}\n label={presentation.label}\n size=\"sm\"\n iconPos={presentation.iconPos}\n icon={presentation.icon}\n tooltip={presentation.tooltip}\n aria-label={presentation.isIconOnly ? (presentation.tooltip ?? button?.attrs?.action ?? \"Action\") : undefined}\n onClick={handleClick}\n />\n </div>\n );\n}\n"]}
@@ -73,7 +73,11 @@ export function SolidFormViewNormalHeaderButton({
73
73
  <div>
74
74
  <SolidButton
75
75
  type="button"
76
- className={`w-full text-left gap-2 solid-icon-button ${presentation.buttonClassName ? presentation.buttonClassName : ''}`}
76
+ className={[
77
+ "w-full text-left gap-2",
78
+ presentation.isIconOnly ? "solid-icon-button" : "",
79
+ presentation.buttonClassName ? presentation.buttonClassName : ""
80
+ ].filter(Boolean).join(" ")}
77
81
  {...button.attrs}
78
82
  label={presentation.label}
79
83
  size="sm"
@@ -5,6 +5,6 @@ var SkeletonBlock = function (_a) {
5
5
  return (_jsx("div", { className: "solid-skeleton ".concat(className !== null && className !== void 0 ? className : ""), style: { width: width, height: height } }));
6
6
  };
7
7
  export var SolidFormViewShimmerLoading = function () {
8
- return (_jsxs("div", { className: 'h-screen surface-0', children: [_jsxs("div", { className: "page-header pl-2 ", children: [_jsxs("div", { className: 'flex align-items-center gap-3', children: [_jsx(SkeletonBlock, { width: "50px", height: '1.4rem', className: 'md:h-1.3rem border-round-lg ' }), _jsx(SkeletonBlock, { width: "300px", className: 'border-round-lg hidden md:flex' })] }), _jsxs("div", { className: 'flex align-items-center gap-3', children: [_jsx(SkeletonBlock, { width: "2.7rem", height: "1.6rem", className: "md:w-4rem md:h-2rem" }), _jsx(SkeletonBlock, { width: "2.7rem", height: "1.6rem", className: "md:w-4rem md:h-2rem" }), _jsx(SkeletonBlock, { width: "2.7rem", height: "1.6rem", className: "md:w-4rem md:h-2rem flex md:hidden" })] })] }), _jsx("div", { className: "page-header", style: { borderTop: '1px solid var(--primary-light-color)' }, children: _jsx("div", { className: 'w-full flex align-items-center justify-content-end', children: _jsx(SkeletonBlock, { width: "30%", height: "2rem" }) }) }), _jsxs("div", { className: styles.solidFormViewShimmerLoadingWrapper, children: [_jsxs("div", { className: 'p-4', children: [_jsx("div", { className: 'formgrid grid', children: _jsx("div", { className: 'field col-6', children: _jsxs("div", { className: 'flex align-items-center gap-2', children: [_jsx(SkeletonBlock, { width: "2rem", className: 'border-round-lg' }), _jsx(SkeletonBlock, { width: "2rem", className: 'border-round-lg' }), _jsx(SkeletonBlock, { width: "2rem", className: 'border-round-lg' })] }) }) }), _jsxs("div", { className: 'formgrid grid mt-4', children: [_jsxs("div", { className: 'field col-6 flex flex-column gap-4', children: [_jsxs("div", { className: 'flex flex-column gap-2', children: [_jsx(SkeletonBlock, { width: "40%", className: 'border-round-lg' }), _jsx(SkeletonBlock, { width: "100%", height: "2rem" })] }), _jsxs("div", { className: 'flex flex-column gap-2', children: [_jsx(SkeletonBlock, { width: "40%", className: 'border-round-lg' }), _jsx(SkeletonBlock, { width: "100%", height: "2rem" })] }), _jsxs("div", { className: 'flex flex-column gap-2', children: [_jsx(SkeletonBlock, { width: "40%", className: 'border-round-lg' }), _jsx(SkeletonBlock, { width: "100%", height: "2rem" })] })] }), _jsxs("div", { className: 'field col-6 flex flex-column gap-4', children: [_jsxs("div", { className: 'flex flex-column gap-2', children: [_jsx(SkeletonBlock, { width: "40%", className: 'border-round-lg' }), _jsx(SkeletonBlock, { width: "100%", height: "2rem" })] }), _jsxs("div", { className: 'flex flex-column gap-2', children: [_jsx(SkeletonBlock, { width: "40%", className: 'border-round-lg' }), _jsx(SkeletonBlock, { width: "100%", height: "2rem" })] }), _jsxs("div", { className: 'flex flex-column gap-2', children: [_jsx(SkeletonBlock, { width: "40%", className: 'border-round-lg' }), _jsx(SkeletonBlock, { width: "100%", height: "2rem" })] })] })] })] }), _jsx("div", { style: { borderTop: '1px solid var(--primary-light-color)' } }), _jsxs("div", { className: 'p-4', children: [_jsx("div", { className: 'formgrid grid', children: _jsx("div", { className: 'field col-6', children: _jsx("div", { className: 'flex align-items-center gap-2', children: _jsx(SkeletonBlock, { width: "8rem", height: '1.5rem', className: 'border-round-lg' }) }) }) }), _jsxs("div", { className: 'formgrid grid mt-4', children: [_jsxs("div", { className: 'field col-6 flex flex-column gap-4', children: [_jsxs("div", { className: 'flex flex-column gap-2', children: [_jsx(SkeletonBlock, { width: "40%", className: 'border-round-lg' }), _jsx(SkeletonBlock, { width: "100%", height: "2rem" })] }), _jsxs("div", { className: 'flex flex-column gap-2', children: [_jsx(SkeletonBlock, { width: "40%", className: 'border-round-lg' }), _jsx(SkeletonBlock, { width: "100%", height: "2rem" })] }), _jsxs("div", { className: 'flex flex-column gap-2', children: [_jsx(SkeletonBlock, { width: "40%", className: 'border-round-lg' }), _jsx(SkeletonBlock, { width: "100%", height: "2rem" })] })] }), _jsxs("div", { className: 'field col-6 flex flex-column gap-4', children: [_jsxs("div", { className: 'flex flex-column gap-2', children: [_jsx(SkeletonBlock, { width: "40%", className: 'border-round-lg' }), _jsx(SkeletonBlock, { width: "100%", height: "2rem" })] }), _jsxs("div", { className: 'flex flex-column gap-2', children: [_jsx(SkeletonBlock, { width: "40%", className: 'border-round-lg' }), _jsx(SkeletonBlock, { width: "100%", height: "2rem" })] }), _jsxs("div", { className: 'flex flex-column gap-2', children: [_jsx(SkeletonBlock, { width: "40%", className: 'border-round-lg' }), _jsx(SkeletonBlock, { width: "100%", height: "2rem" })] })] })] })] })] })] }));
8
+ return (_jsxs("div", { className: 'h-screen bg-[var(--surface-0)]', children: [_jsxs("div", { className: "page-header pl-2 ", children: [_jsxs("div", { className: 'flex items-center gap-4', children: [_jsx(SkeletonBlock, { width: "50px", height: '1.4rem', className: 'rounded-lg md:h-1.3rem' }), _jsx(SkeletonBlock, { width: "300px", className: 'hidden rounded-lg md:flex' })] }), _jsxs("div", { className: 'flex items-center gap-4', children: [_jsx(SkeletonBlock, { width: "2.7rem", height: "1.6rem", className: "md:w-4rem md:h-2rem" }), _jsx(SkeletonBlock, { width: "2.7rem", height: "1.6rem", className: "md:w-4rem md:h-2rem" }), _jsx(SkeletonBlock, { width: "2.7rem", height: "1.6rem", className: "md:w-4rem md:h-2rem flex md:hidden" })] })] }), _jsx("div", { className: "page-header", style: { borderTop: '1px solid var(--primary-light-color)' }, children: _jsx("div", { className: 'w-full flex items-center justify-end', children: _jsx(SkeletonBlock, { width: "30%", height: "2rem" }) }) }), _jsxs("div", { className: styles.solidFormViewShimmerLoadingWrapper, children: [_jsxs("div", { className: 'p-4', children: [_jsx("div", { className: 'flex flex-wrap -mx-2 -mt-2', children: _jsx("div", { className: 'field w-1/2 px-2 pt-2', children: _jsxs("div", { className: 'flex items-center gap-2', children: [_jsx(SkeletonBlock, { width: "2rem", className: 'rounded-lg' }), _jsx(SkeletonBlock, { width: "2rem", className: 'rounded-lg' }), _jsx(SkeletonBlock, { width: "2rem", className: 'rounded-lg' })] }) }) }), _jsxs("div", { className: 'flex flex-wrap -mx-2 -mt-2 mt-6', children: [_jsxs("div", { className: 'field w-1/2 px-2 pt-2 flex flex-col gap-6', children: [_jsxs("div", { className: 'flex flex-col gap-2', children: [_jsx(SkeletonBlock, { width: "40%", className: 'rounded-lg' }), _jsx(SkeletonBlock, { width: "100%", height: "2rem" })] }), _jsxs("div", { className: 'flex flex-col gap-2', children: [_jsx(SkeletonBlock, { width: "40%", className: 'rounded-lg' }), _jsx(SkeletonBlock, { width: "100%", height: "2rem" })] }), _jsxs("div", { className: 'flex flex-col gap-2', children: [_jsx(SkeletonBlock, { width: "40%", className: 'rounded-lg' }), _jsx(SkeletonBlock, { width: "100%", height: "2rem" })] })] }), _jsxs("div", { className: 'field w-1/2 px-2 pt-2 flex flex-col gap-6', children: [_jsxs("div", { className: 'flex flex-col gap-2', children: [_jsx(SkeletonBlock, { width: "40%", className: 'rounded-lg' }), _jsx(SkeletonBlock, { width: "100%", height: "2rem" })] }), _jsxs("div", { className: 'flex flex-col gap-2', children: [_jsx(SkeletonBlock, { width: "40%", className: 'rounded-lg' }), _jsx(SkeletonBlock, { width: "100%", height: "2rem" })] }), _jsxs("div", { className: 'flex flex-col gap-2', children: [_jsx(SkeletonBlock, { width: "40%", className: 'rounded-lg' }), _jsx(SkeletonBlock, { width: "100%", height: "2rem" })] })] })] })] }), _jsx("div", { style: { borderTop: '1px solid var(--primary-light-color)' } }), _jsxs("div", { className: 'p-4', children: [_jsx("div", { className: 'flex flex-wrap -mx-2 -mt-2', children: _jsx("div", { className: 'field w-1/2 px-2 pt-2', children: _jsx("div", { className: 'flex items-center gap-2', children: _jsx(SkeletonBlock, { width: "8rem", height: '1.5rem', className: 'rounded-lg' }) }) }) }), _jsxs("div", { className: 'flex flex-wrap -mx-2 -mt-2 mt-6', children: [_jsxs("div", { className: 'field w-1/2 px-2 pt-2 flex flex-col gap-6', children: [_jsxs("div", { className: 'flex flex-col gap-2', children: [_jsx(SkeletonBlock, { width: "40%", className: 'rounded-lg' }), _jsx(SkeletonBlock, { width: "100%", height: "2rem" })] }), _jsxs("div", { className: 'flex flex-col gap-2', children: [_jsx(SkeletonBlock, { width: "40%", className: 'rounded-lg' }), _jsx(SkeletonBlock, { width: "100%", height: "2rem" })] }), _jsxs("div", { className: 'flex flex-col gap-2', children: [_jsx(SkeletonBlock, { width: "40%", className: 'rounded-lg' }), _jsx(SkeletonBlock, { width: "100%", height: "2rem" })] })] }), _jsxs("div", { className: 'field w-1/2 px-2 pt-2 flex flex-col gap-6', children: [_jsxs("div", { className: 'flex flex-col gap-2', children: [_jsx(SkeletonBlock, { width: "40%", className: 'rounded-lg' }), _jsx(SkeletonBlock, { width: "100%", height: "2rem" })] }), _jsxs("div", { className: 'flex flex-col gap-2', children: [_jsx(SkeletonBlock, { width: "40%", className: 'rounded-lg' }), _jsx(SkeletonBlock, { width: "100%", height: "2rem" })] }), _jsxs("div", { className: 'flex flex-col gap-2', children: [_jsx(SkeletonBlock, { width: "40%", className: 'rounded-lg' }), _jsx(SkeletonBlock, { width: "100%", height: "2rem" })] })] })] })] })] })] }));
9
9
  };
10
10
  //# sourceMappingURL=SolidFormViewShimmerLoading.js.map