@solidstarters/solid-core-ui 1.1.204 → 1.1.205

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 (262) hide show
  1. package/dist/components/auth/GoogleAuthChecking.d.ts.map +1 -1
  2. package/dist/components/auth/GoogleAuthChecking.js +5 -4
  3. package/dist/components/auth/GoogleAuthChecking.js.map +1 -1
  4. package/dist/components/auth/SolidChangeForcePassword.d.ts.map +1 -1
  5. package/dist/components/auth/SolidChangeForcePassword.js +17 -16
  6. package/dist/components/auth/SolidChangeForcePassword.js.map +1 -1
  7. package/dist/components/auth/SolidForgotPassword.d.ts.map +1 -1
  8. package/dist/components/auth/SolidForgotPassword.js +5 -4
  9. package/dist/components/auth/SolidForgotPassword.js.map +1 -1
  10. package/dist/components/auth/SolidInitialLoginOtp.d.ts.map +1 -1
  11. package/dist/components/auth/SolidInitialLoginOtp.js +11 -10
  12. package/dist/components/auth/SolidInitialLoginOtp.js.map +1 -1
  13. package/dist/components/auth/SolidInitiateRegisterOtp.d.ts.map +1 -1
  14. package/dist/components/auth/SolidInitiateRegisterOtp.js +10 -9
  15. package/dist/components/auth/SolidInitiateRegisterOtp.js.map +1 -1
  16. package/dist/components/auth/SolidLogin.d.ts.map +1 -1
  17. package/dist/components/auth/SolidLogin.js +20 -18
  18. package/dist/components/auth/SolidLogin.js.map +1 -1
  19. package/dist/components/auth/SolidOTPVerify.js +5 -4
  20. package/dist/components/auth/SolidOTPVerify.js.map +1 -1
  21. package/dist/components/auth/SolidRegister.d.ts.map +1 -1
  22. package/dist/components/auth/SolidRegister.js +32 -31
  23. package/dist/components/auth/SolidRegister.js.map +1 -1
  24. package/dist/components/auth/SolidResetPassword.js +8 -7
  25. package/dist/components/auth/SolidResetPassword.js.map +1 -1
  26. package/dist/components/common/GeneralSettings.d.ts.map +1 -1
  27. package/dist/components/common/GeneralSettings.js +43 -33
  28. package/dist/components/common/GeneralSettings.js.map +1 -1
  29. package/dist/components/common/SolidExport.js +6 -5
  30. package/dist/components/common/SolidExport.js.map +1 -1
  31. package/dist/components/common/SolidFormStepper.js +4 -3
  32. package/dist/components/common/SolidFormStepper.js.map +1 -1
  33. package/dist/components/common/solidModuleHome.module.css +1 -1
  34. package/dist/components/common/useHandleFormCustomButtonClick.js +2 -1
  35. package/dist/components/common/useHandleFormCustomButtonClick.js.map +1 -1
  36. package/dist/components/common/useHandleListCustomButtonClick.js +2 -1
  37. package/dist/components/common/useHandleListCustomButtonClick.js.map +1 -1
  38. package/dist/components/core/chatter/SolidChatter.d.ts.map +1 -1
  39. package/dist/components/core/chatter/SolidChatter.js +2 -1
  40. package/dist/components/core/chatter/SolidChatter.js.map +1 -1
  41. package/dist/components/core/chatter/SolidChatterHeader.js +2 -1
  42. package/dist/components/core/chatter/SolidChatterHeader.js.map +1 -1
  43. package/dist/components/core/chatter/SolidMessageComposer.js +2 -1
  44. package/dist/components/core/chatter/SolidMessageComposer.js.map +1 -1
  45. package/dist/components/core/common/LoadDynamicJsxComponent.js +2 -1
  46. package/dist/components/core/common/LoadDynamicJsxComponent.js.map +1 -1
  47. package/dist/components/core/common/SolidAccountSettings/SolidAccountSettings.d.ts.map +1 -1
  48. package/dist/components/core/common/SolidAccountSettings/SolidAccountSettings.js +10 -7
  49. package/dist/components/core/common/SolidAccountSettings/SolidAccountSettings.js.map +1 -1
  50. package/dist/components/core/common/SolidAccountSettings/SolidChangePassword.d.ts +1 -1
  51. package/dist/components/core/common/SolidAccountSettings/SolidChangePassword.d.ts.map +1 -1
  52. package/dist/components/core/common/SolidAccountSettings/SolidChangePassword.js +53 -36
  53. package/dist/components/core/common/SolidAccountSettings/SolidChangePassword.js.map +1 -1
  54. package/dist/components/core/common/SolidAccountSettings/SolidNotifications.js +4 -3
  55. package/dist/components/core/common/SolidAccountSettings/SolidNotifications.js.map +1 -1
  56. package/dist/components/core/common/SolidAccountSettings/SolidPersonalInfo.js +8 -7
  57. package/dist/components/core/common/SolidAccountSettings/SolidPersonalInfo.js.map +1 -1
  58. package/dist/components/core/common/SolidGenericImport/SolidImportDropzone.d.ts.map +1 -1
  59. package/dist/components/core/common/SolidGenericImport/SolidImportDropzone.js +6 -5
  60. package/dist/components/core/common/SolidGenericImport/SolidImportDropzone.js.map +1 -1
  61. package/dist/components/core/common/SolidGenericImport/SolidImportInstructions.js +4 -3
  62. package/dist/components/core/common/SolidGenericImport/SolidImportInstructions.js.map +1 -1
  63. package/dist/components/core/common/SolidGenericImport/SolidImportTransaction.js +5 -4
  64. package/dist/components/core/common/SolidGenericImport/SolidImportTransaction.js.map +1 -1
  65. package/dist/components/core/common/SolidGenericImport/SolidImportTransactionStatus.js +4 -3
  66. package/dist/components/core/common/SolidGenericImport/SolidImportTransactionStatus.js.map +1 -1
  67. package/dist/components/core/common/SolidGlobalSearchElement.d.ts.map +1 -1
  68. package/dist/components/core/common/SolidGlobalSearchElement.js +159 -48
  69. package/dist/components/core/common/SolidGlobalSearchElement.js.map +1 -1
  70. package/dist/components/core/common/SolidPasswordHelperText.d.ts +1 -1
  71. package/dist/components/core/common/SolidPasswordHelperText.d.ts.map +1 -1
  72. package/dist/components/core/common/SolidPasswordHelperText.js +7 -2
  73. package/dist/components/core/common/SolidPasswordHelperText.js.map +1 -1
  74. package/dist/components/core/common/SolidViewLayoutManager.d.ts.map +1 -1
  75. package/dist/components/core/common/SolidViewLayoutManager.js +2 -1
  76. package/dist/components/core/common/SolidViewLayoutManager.js.map +1 -1
  77. package/dist/components/core/dashboard/SolidDashboard.d.ts.map +1 -1
  78. package/dist/components/core/dashboard/SolidDashboard.js +23 -1
  79. package/dist/components/core/dashboard/SolidDashboard.js.map +1 -1
  80. package/dist/components/core/dashboard/SolidDashboardVariable.d.ts +2 -0
  81. package/dist/components/core/dashboard/SolidDashboardVariable.d.ts.map +1 -1
  82. package/dist/components/core/dashboard/SolidDashboardVariable.js +23 -8
  83. package/dist/components/core/dashboard/SolidDashboardVariable.js.map +1 -1
  84. package/dist/components/core/extension/solid-core/modelMetadata/list/DeleteModelRowAction.d.ts.map +1 -1
  85. package/dist/components/core/extension/solid-core/modelMetadata/list/DeleteModelRowAction.js +47 -16
  86. package/dist/components/core/extension/solid-core/modelMetadata/list/DeleteModelRowAction.js.map +1 -1
  87. package/dist/components/core/extension/solid-core/modelMetadata/list/GenerateModelCodeRowAction.d.ts.map +1 -1
  88. package/dist/components/core/extension/solid-core/modelMetadata/list/GenerateModelCodeRowAction.js +6 -5
  89. package/dist/components/core/extension/solid-core/modelMetadata/list/GenerateModelCodeRowAction.js.map +1 -1
  90. package/dist/components/core/extension/solid-core/moduleMetadata/list/GenerateModuleCodeRowAction.d.ts.map +1 -1
  91. package/dist/components/core/extension/solid-core/moduleMetadata/list/GenerateModuleCodeRowAction.js +8 -7
  92. package/dist/components/core/extension/solid-core/moduleMetadata/list/GenerateModuleCodeRowAction.js.map +1 -1
  93. package/dist/components/core/form/SolidFormActionHeader.d.ts.map +1 -1
  94. package/dist/components/core/form/SolidFormActionHeader.js +20 -17
  95. package/dist/components/core/form/SolidFormActionHeader.js.map +1 -1
  96. package/dist/components/core/form/SolidFormUserViewLayout.js +3 -2
  97. package/dist/components/core/form/SolidFormUserViewLayout.js.map +1 -1
  98. package/dist/components/core/form/SolidFormView.d.ts.map +1 -1
  99. package/dist/components/core/form/SolidFormView.js +17 -16
  100. package/dist/components/core/form/SolidFormView.js.map +1 -1
  101. package/dist/components/core/form/fields/SolidBooleanField.d.ts.map +1 -1
  102. package/dist/components/core/form/fields/SolidBooleanField.js +5 -3
  103. package/dist/components/core/form/fields/SolidBooleanField.js.map +1 -1
  104. package/dist/components/core/form/fields/SolidDateField.d.ts.map +1 -1
  105. package/dist/components/core/form/fields/SolidDateField.js +5 -3
  106. package/dist/components/core/form/fields/SolidDateField.js.map +1 -1
  107. package/dist/components/core/form/fields/SolidDateTimeField.d.ts.map +1 -1
  108. package/dist/components/core/form/fields/SolidDateTimeField.js +5 -3
  109. package/dist/components/core/form/fields/SolidDateTimeField.js.map +1 -1
  110. package/dist/components/core/form/fields/SolidDecimalField.d.ts.map +1 -1
  111. package/dist/components/core/form/fields/SolidDecimalField.js +4 -3
  112. package/dist/components/core/form/fields/SolidDecimalField.js.map +1 -1
  113. package/dist/components/core/form/fields/SolidEmailField.d.ts.map +1 -1
  114. package/dist/components/core/form/fields/SolidEmailField.js +6 -5
  115. package/dist/components/core/form/fields/SolidEmailField.js.map +1 -1
  116. package/dist/components/core/form/fields/SolidIntegerField.d.ts.map +1 -1
  117. package/dist/components/core/form/fields/SolidIntegerField.js +4 -3
  118. package/dist/components/core/form/fields/SolidIntegerField.js.map +1 -1
  119. package/dist/components/core/form/fields/SolidJsonField.d.ts.map +1 -1
  120. package/dist/components/core/form/fields/SolidJsonField.js +2 -1
  121. package/dist/components/core/form/fields/SolidJsonField.js.map +1 -1
  122. package/dist/components/core/form/fields/SolidLongTextField.d.ts.map +1 -1
  123. package/dist/components/core/form/fields/SolidLongTextField.js +6 -5
  124. package/dist/components/core/form/fields/SolidLongTextField.js.map +1 -1
  125. package/dist/components/core/form/fields/SolidMediaMultipleField.d.ts.map +1 -1
  126. package/dist/components/core/form/fields/SolidMediaMultipleField.js +10 -8
  127. package/dist/components/core/form/fields/SolidMediaMultipleField.js.map +1 -1
  128. package/dist/components/core/form/fields/SolidMediaSingleField.d.ts.map +1 -1
  129. package/dist/components/core/form/fields/SolidMediaSingleField.js +6 -5
  130. package/dist/components/core/form/fields/SolidMediaSingleField.js.map +1 -1
  131. package/dist/components/core/form/fields/SolidPasswordField.d.ts.map +1 -1
  132. package/dist/components/core/form/fields/SolidPasswordField.js +13 -11
  133. package/dist/components/core/form/fields/SolidPasswordField.js.map +1 -1
  134. package/dist/components/core/form/fields/SolidRelationField.d.ts.map +1 -1
  135. package/dist/components/core/form/fields/SolidRelationField.js +2 -1
  136. package/dist/components/core/form/fields/SolidRelationField.js.map +1 -1
  137. package/dist/components/core/form/fields/SolidRichTextField.d.ts.map +1 -1
  138. package/dist/components/core/form/fields/SolidRichTextField.js +4 -3
  139. package/dist/components/core/form/fields/SolidRichTextField.js.map +1 -1
  140. package/dist/components/core/form/fields/SolidSelectionDynamicField.d.ts.map +1 -1
  141. package/dist/components/core/form/fields/SolidSelectionDynamicField.js +7 -5
  142. package/dist/components/core/form/fields/SolidSelectionDynamicField.js.map +1 -1
  143. package/dist/components/core/form/fields/SolidSelectionStaticField.d.ts.map +1 -1
  144. package/dist/components/core/form/fields/SolidSelectionStaticField.js +9 -7
  145. package/dist/components/core/form/fields/SolidSelectionStaticField.js.map +1 -1
  146. package/dist/components/core/form/fields/SolidShortTextField.d.ts.map +1 -1
  147. package/dist/components/core/form/fields/SolidShortTextField.js +11 -8
  148. package/dist/components/core/form/fields/SolidShortTextField.js.map +1 -1
  149. package/dist/components/core/form/fields/SolidTimeField.d.ts.map +1 -1
  150. package/dist/components/core/form/fields/SolidTimeField.js +5 -3
  151. package/dist/components/core/form/fields/SolidTimeField.js.map +1 -1
  152. package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.d.ts.map +1 -1
  153. package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.js +10 -9
  154. package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.js.map +1 -1
  155. package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.d.ts.map +1 -1
  156. package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.js +14 -12
  157. package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.js.map +1 -1
  158. package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.d.ts.map +1 -1
  159. package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.js +2 -1
  160. package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.js.map +1 -1
  161. package/dist/components/core/form/fields/widgets/SolidAiInteractionMessageFieldFormWidget.d.ts.map +1 -1
  162. package/dist/components/core/form/fields/widgets/SolidAiInteractionMessageFieldFormWidget.js +2 -1
  163. package/dist/components/core/form/fields/widgets/SolidAiInteractionMessageFieldFormWidget.js.map +1 -1
  164. package/dist/components/core/form/widgets/CustomHtml.js +1 -1
  165. package/dist/components/core/form/widgets/CustomHtml.js.map +1 -1
  166. package/dist/components/core/kanban/KanbanUserViewLayout.js +3 -2
  167. package/dist/components/core/kanban/KanbanUserViewLayout.js.map +1 -1
  168. package/dist/components/core/kanban/SolidKanbanView.d.ts.map +1 -1
  169. package/dist/components/core/kanban/SolidKanbanView.js +12 -11
  170. package/dist/components/core/kanban/SolidKanbanView.js.map +1 -1
  171. package/dist/components/core/list/SolidColumnSelector/SolidListColumnSelector.d.ts.map +1 -1
  172. package/dist/components/core/list/SolidColumnSelector/SolidListColumnSelector.js +3 -2
  173. package/dist/components/core/list/SolidColumnSelector/SolidListColumnSelector.js.map +1 -1
  174. package/dist/components/core/list/SolidEmptyListViewPlaceholder.js +2 -2
  175. package/dist/components/core/list/SolidEmptyListViewPlaceholder.js.map +1 -1
  176. package/dist/components/core/list/SolidListView.d.ts.map +1 -1
  177. package/dist/components/core/list/SolidListView.js +105 -46
  178. package/dist/components/core/list/SolidListView.js.map +1 -1
  179. package/dist/components/core/list/SolidListViewConfigure.d.ts.map +1 -1
  180. package/dist/components/core/list/SolidListViewConfigure.js +51 -41
  181. package/dist/components/core/list/SolidListViewConfigure.js.map +1 -1
  182. package/dist/components/core/list/columns/SolidMediaMultipleColumn.d.ts +1 -1
  183. package/dist/components/core/list/columns/SolidMediaMultipleColumn.d.ts.map +1 -1
  184. package/dist/components/core/list/columns/SolidMediaMultipleColumn.js +95 -24
  185. package/dist/components/core/list/columns/SolidMediaMultipleColumn.js.map +1 -1
  186. package/dist/components/core/model/CreateModel.d.ts.map +1 -1
  187. package/dist/components/core/model/CreateModel.js +3 -2
  188. package/dist/components/core/model/CreateModel.js.map +1 -1
  189. package/dist/components/core/model/FieldMetaData.d.ts.map +1 -1
  190. package/dist/components/core/model/FieldMetaData.js +4 -3
  191. package/dist/components/core/model/FieldMetaData.js.map +1 -1
  192. package/dist/components/core/model/FieldMetaDataForm.d.ts.map +1 -1
  193. package/dist/components/core/model/FieldMetaDataForm.js +52 -51
  194. package/dist/components/core/model/FieldMetaDataForm.js.map +1 -1
  195. package/dist/components/core/model/ModelMetaData.d.ts.map +1 -1
  196. package/dist/components/core/model/ModelMetaData.js +17 -16
  197. package/dist/components/core/model/ModelMetaData.js.map +1 -1
  198. package/dist/components/core/module/CreateModule.d.ts.map +1 -1
  199. package/dist/components/core/module/CreateModule.js +7 -6
  200. package/dist/components/core/module/CreateModule.js.map +1 -1
  201. package/dist/components/core/solid-ai/SolidXAIInputBox.d.ts.map +1 -1
  202. package/dist/components/core/solid-ai/SolidXAIInputBox.js +2 -1
  203. package/dist/components/core/solid-ai/SolidXAIInputBox.js.map +1 -1
  204. package/dist/components/core/solid-ai/SolidXAIModule.d.ts.map +1 -1
  205. package/dist/components/core/solid-ai/SolidXAIModule.js +3 -2
  206. package/dist/components/core/solid-ai/SolidXAIModule.js.map +1 -1
  207. package/dist/components/core/solid-ai/SolidXAiJsonDisplay.d.ts.map +1 -1
  208. package/dist/components/core/solid-ai/SolidXAiJsonDisplay.js +33 -16
  209. package/dist/components/core/solid-ai/SolidXAiJsonDisplay.js.map +1 -1
  210. package/dist/components/core/users/CreateUser.d.ts.map +1 -1
  211. package/dist/components/core/users/CreateUser.js +21 -14
  212. package/dist/components/core/users/CreateUser.js.map +1 -1
  213. package/dist/components/core/users/CreateUserRole.d.ts.map +1 -1
  214. package/dist/components/core/users/CreateUserRole.js +7 -6
  215. package/dist/components/core/users/CreateUserRole.js.map +1 -1
  216. package/dist/components/core/users/UserListView.d.ts.map +1 -1
  217. package/dist/components/core/users/UserListView.js +4 -3
  218. package/dist/components/core/users/UserListView.js.map +1 -1
  219. package/dist/components/layout/AdminLayout.d.ts.map +1 -1
  220. package/dist/components/layout/AdminLayout.js +2 -1
  221. package/dist/components/layout/AdminLayout.js.map +1 -1
  222. package/dist/components/layout/Layout.d.ts.map +1 -1
  223. package/dist/components/layout/Layout.js +84 -0
  224. package/dist/components/layout/Layout.js.map +1 -1
  225. package/dist/constants/error-messages.d.ts +152 -2
  226. package/dist/constants/error-messages.d.ts.map +1 -1
  227. package/dist/constants/error-messages.js +221 -4
  228. package/dist/constants/error-messages.js.map +1 -1
  229. package/dist/helpers/ToastContainer.d.ts.map +1 -1
  230. package/dist/helpers/ToastContainer.js +4 -3
  231. package/dist/helpers/ToastContainer.js.map +1 -1
  232. package/dist/helpers/downloadFileWithProgress.d.ts.map +1 -1
  233. package/dist/helpers/downloadFileWithProgress.js +4 -3
  234. package/dist/helpers/downloadFileWithProgress.js.map +1 -1
  235. package/dist/helpers/downloadMediaFile.d.ts.map +1 -1
  236. package/dist/helpers/downloadMediaFile.js +2 -1
  237. package/dist/helpers/downloadMediaFile.js.map +1 -1
  238. package/dist/helpers/permissions.d.ts +1 -5
  239. package/dist/helpers/permissions.d.ts.map +1 -1
  240. package/dist/helpers/permissions.js +3 -14
  241. package/dist/helpers/permissions.js.map +1 -1
  242. package/dist/helpers/updatePasswordField.d.ts.map +1 -1
  243. package/dist/helpers/updatePasswordField.js +2 -1
  244. package/dist/helpers/updatePasswordField.js.map +1 -1
  245. package/dist/index.d.ts +2 -2
  246. package/dist/index.d.ts.map +1 -1
  247. package/dist/index.js +1 -1
  248. package/dist/index.js.map +1 -1
  249. package/dist/nextAuth/handleLogout.d.ts.map +1 -1
  250. package/dist/nextAuth/handleLogout.js +8 -9
  251. package/dist/nextAuth/handleLogout.js.map +1 -1
  252. package/dist/nextAuth/refreshAccessToken.d.ts.map +1 -1
  253. package/dist/nextAuth/refreshAccessToken.js +2 -1
  254. package/dist/nextAuth/refreshAccessToken.js.map +1 -1
  255. package/dist/types/handlebars.d.ts +4 -0
  256. package/dist/types/index.d.ts +6 -0
  257. package/dist/types/solid-core.d.ts +60 -4
  258. package/package.json +1 -1
  259. package/src/components/common/solidModuleHome.module.css +1 -1
  260. package/src/types/handlebars.d.ts +4 -0
  261. package/src/types/index.d.ts +6 -0
  262. package/src/types/solid-core.d.ts +60 -4
@@ -1 +1 @@
1
- {"version":3,"file":"handleLogout.d.ts","sourceRoot":"","sources":["../../src/nextAuth/handleLogout.tsx"],"names":[],"mappings":"AAGA,wBAAsB,YAAY,CAAC,EAAE,KAAK,EAAE,EAAE,GAAG,iBAkChD"}
1
+ {"version":3,"file":"handleLogout.d.ts","sourceRoot":"","sources":["../../src/nextAuth/handleLogout.tsx"],"names":[],"mappings":"AAIA,wBAAsB,YAAY,CAAC,EAAE,KAAK,EAAE,EAAE,GAAG,iBAkChD"}
@@ -34,26 +34,25 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
34
34
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
35
35
  }
36
36
  };
37
+ import { ERROR_MESSAGES } from '../constants/error-messages';
37
38
  import axios from 'axios';
38
39
  import { getSession, signOut } from 'next-auth/react';
39
40
  export function handleLogout(_a) {
40
41
  var _b, _c, _d, _e, _f, _g, _h, _j, _k;
41
42
  var toast = _a.toast;
42
43
  return __awaiter(this, void 0, void 0, function () {
43
- var session, token, response, error_1, err, message;
44
+ var session, refreshToken, response, error_1, err, message;
44
45
  return __generator(this, function (_l) {
45
46
  switch (_l.label) {
46
47
  case 0: return [4 /*yield*/, getSession()];
47
48
  case 1:
48
49
  session = _l.sent();
49
- token = (_b = session === null || session === void 0 ? void 0 : session.user) === null || _b === void 0 ? void 0 : _b.accessToken;
50
+ refreshToken = (_b = session === null || session === void 0 ? void 0 : session.user) === null || _b === void 0 ? void 0 : _b.refreshToken;
50
51
  _l.label = 2;
51
52
  case 2:
52
53
  _l.trys.push([2, 7, , 8]);
53
- return [4 /*yield*/, axios.post("".concat(process.env.NEXT_PUBLIC_BACKEND_API_URL, "/api/iam/logout"), null, {
54
- headers: {
55
- Authorization: "Bearer ".concat(token),
56
- },
54
+ return [4 /*yield*/, axios.post("".concat(process.env.NEXT_PUBLIC_BACKEND_API_URL, "/api/iam/logout"), {
55
+ refreshToken: refreshToken, // Pass refresh token in body
57
56
  })];
58
57
  case 3:
59
58
  response = _l.sent();
@@ -66,7 +65,7 @@ export function handleLogout(_a) {
66
65
  case 5:
67
66
  (_d = toast === null || toast === void 0 ? void 0 : toast.current) === null || _d === void 0 ? void 0 : _d.show({
68
67
  severity: 'error',
69
- summary: 'Logout Failed',
68
+ summary: ERROR_MESSAGES.LOGOUT_FAILED,
70
69
  detail: "".concat((_f = (_e = response === null || response === void 0 ? void 0 : response.data) === null || _e === void 0 ? void 0 : _e.data) === null || _f === void 0 ? void 0 : _f.status),
71
70
  life: 3000,
72
71
  });
@@ -75,10 +74,10 @@ export function handleLogout(_a) {
75
74
  case 7:
76
75
  error_1 = _l.sent();
77
76
  err = error_1;
78
- message = ((_j = (_h = (_g = err.response) === null || _g === void 0 ? void 0 : _g.data) === null || _h === void 0 ? void 0 : _h.data) === null || _j === void 0 ? void 0 : _j.message) || err.message || 'Logout failed';
77
+ message = ((_j = (_h = (_g = err.response) === null || _g === void 0 ? void 0 : _g.data) === null || _h === void 0 ? void 0 : _h.data) === null || _j === void 0 ? void 0 : _j.message) || err.message || ERROR_MESSAGES.LOGOUT_FAILED;
79
78
  (_k = toast === null || toast === void 0 ? void 0 : toast.current) === null || _k === void 0 ? void 0 : _k.show({
80
79
  severity: 'error',
81
- summary: 'Logout Failed',
80
+ summary: ERROR_MESSAGES.LOGOUT_FAILED,
82
81
  detail: message,
83
82
  life: 3000,
84
83
  });
@@ -1 +1 @@
1
- {"version":3,"file":"handleLogout.js","sourceRoot":"","sources":["../../src/nextAuth/handleLogout.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAEtD,MAAM,UAAgB,YAAY,CAAC,EAAc;;QAAZ,KAAK,WAAA;;;;;wBACtB,qBAAM,UAAU,EAAE,EAAA;;oBAA5B,OAAO,GAAG,SAAkB;oBAC5B,KAAK,GAAG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EAAE,IAAI;qBACb,CAAC,CAAC;;;;;oBAGD,GAAG,GAAG,OAAY,CAAC;oBACnB,OAAO,GACT,CAAA,MAAA,MAAA,MAAA,GAAG,CAAC,QAAQ,0CAAE,IAAI,0CAAE,IAAI,0CAAE,OAAO,KAAI,GAAG,CAAC,OAAO,IAAI,cAAc,CAAC,aAAa,CAAC;oBAErF,MAAA,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,OAAO,0CAAE,IAAI,CAAC;wBACjB,QAAQ,EAAE,OAAO;wBACjB,OAAO,EAAE,cAAc,CAAC,aAAa;wBACrC,MAAM,EAAE,OAAO;wBACf,IAAI,EAAE,IAAI;qBACb,CAAC,CAAC;;;;;;CAEV"}
@@ -1 +1 @@
1
- {"version":3,"file":"refreshAccessToken.d.ts","sourceRoot":"","sources":["../../src/nextAuth/refreshAccessToken.tsx"],"names":[],"mappings":"AAGA,wBAAsB,kBAAkB,CAAC,KAAK,EAAE,GAAG,gBAuBhD"}
1
+ {"version":3,"file":"refreshAccessToken.d.ts","sourceRoot":"","sources":["../../src/nextAuth/refreshAccessToken.tsx"],"names":[],"mappings":"AAIA,wBAAsB,kBAAkB,CAAC,KAAK,EAAE,GAAG,gBAuBhD"}
@@ -45,6 +45,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
45
45
  if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
46
46
  }
47
47
  };
48
+ import { ERROR_MESSAGES } from "../constants/error-messages";
48
49
  import axios from "axios";
49
50
  import { jwtDecode } from "jwt-decode";
50
51
  export function refreshAccessToken(token) {
@@ -63,7 +64,7 @@ export function refreshAccessToken(token) {
63
64
  return [2 /*return*/, __assign(__assign({}, token), { accessToken: accessToken, refreshToken: refreshToken, accessTokenExpires: accessTokenExpires * 1000 })];
64
65
  case 2:
65
66
  error_1 = _c.sent();
66
- console.error("Failed to refresh access token:", error_1.message || ((_a = error_1.response) === null || _a === void 0 ? void 0 : _a.data));
67
+ console.error(ERROR_MESSAGES.FAILED_REFRESH_TOKEN, error_1.message || ((_a = error_1.response) === null || _a === void 0 ? void 0 : _a.data));
67
68
  return [2 /*return*/, {
68
69
  // ...token,
69
70
  error: "RefreshAccessTokenError",
@@ -1 +1 @@
1
- {"version":3,"file":"refreshAccessToken.js","sourceRoot":"","sources":["../../src/nextAuth/refreshAccessToken.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,MAAM,UAAgB,kBAAkB,CAAC,KAAU;;;;;;;;oBAE5B,qBAAM,KAAK,CAAC,IAAI,CAC/B,UAAG,OAAO,CAAC,GAAG,CAAC,2BAA2B,4BAAyB,EACnE,EAAE,YAAY,EAAE,KAAK,CAAC,YAAY,EAAE,CACrC,EAAA;;oBAHK,QAAQ,GAAG,SAGhB;oBAEK,KAAgC,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAhD,WAAW,iBAAA,EAAE,YAAY,kBAAA,CAAwB;oBAC5C,kBAAkB,GAAK,SAAS,CAAkB,WAAW,CAAC,IAA5C,CAA6C;oBAE5E,4CACK,KAAK,KACR,WAAW,aAAA,EACX,YAAY,cAAA,EACZ,kBAAkB,EAAE,kBAAkB,GAAG,IAAI,KAC7C;;;oBAEF,OAAO,CAAC,KAAK,CAAC,iCAAiC,EAAE,OAAK,CAAC,OAAO,KAAI,MAAA,OAAK,CAAC,QAAQ,0CAAE,IAAI,CAAA,CAAC,CAAC;oBACxF,sBAAO;4BACL,YAAY;4BACZ,KAAK,EAAE,yBAAyB;yBACjC,EAAC;;;;;CAEL"}
1
+ {"version":3,"file":"refreshAccessToken.js","sourceRoot":"","sources":["../../src/nextAuth/refreshAccessToken.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAC5D,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEvC,MAAM,UAAgB,kBAAkB,CAAC,KAAU;;;;;;;;oBAE5B,qBAAM,KAAK,CAAC,IAAI,CAC/B,UAAG,OAAO,CAAC,GAAG,CAAC,2BAA2B,4BAAyB,EACnE,EAAE,YAAY,EAAE,KAAK,CAAC,YAAY,EAAE,CACrC,EAAA;;oBAHK,QAAQ,GAAG,SAGhB;oBAEK,KAAgC,QAAQ,CAAC,IAAI,CAAC,IAAI,EAAhD,WAAW,iBAAA,EAAE,YAAY,kBAAA,CAAwB;oBAC5C,kBAAkB,GAAK,SAAS,CAAkB,WAAW,CAAC,IAA5C,CAA6C;oBAE5E,4CACK,KAAK,KACR,WAAW,aAAA,EACX,YAAY,cAAA,EACZ,kBAAkB,EAAE,kBAAkB,GAAG,IAAI,KAC7C;;;oBAEF,OAAO,CAAC,KAAK,CAAC,cAAc,CAAC,oBAAoB,EAAE,OAAK,CAAC,OAAO,KAAI,MAAA,OAAK,CAAC,QAAQ,0CAAE,IAAI,CAAA,CAAC,CAAC;oBAC1F,sBAAO;4BACL,YAAY;4BACZ,KAAK,EAAE,yBAAyB;yBACjC,EAAC;;;;;CAEL"}
@@ -0,0 +1,4 @@
1
+ declare module "handlebars/dist/handlebars" {
2
+ import * as Handlebars from "handlebars";
3
+ export = Handlebars;
4
+ }
@@ -26,6 +26,9 @@ import {
26
26
  LayoutNodeType,
27
27
  SolidUiEvents,
28
28
  SolidUiEvent,
29
+ SolidListUiEvent,
30
+ SolidUiEventResponse,
31
+ SolidListUiEventResponse,
29
32
  SolidFormWidgetProps,
30
33
  SolidChartRendererProps
31
34
  } from './solid-core';
@@ -57,6 +60,9 @@ export type {
57
60
  LayoutNodeType,
58
61
  SolidUiEvents,
59
62
  SolidUiEvent,
63
+ SolidUiEventResponse,
64
+ SolidListUiEventResponse,
65
+ SolidListUiEvent,
60
66
  SolidFormWidgetProps,
61
67
  SolidChartRendererProps
62
68
  };
@@ -82,7 +82,7 @@ export type LayoutAttribute = {
82
82
  };
83
83
 
84
84
  // Generic representation of any node in our layout
85
- export type LayoutNodeType = "form" | "sheet" | "notebook" | "page" | "row" | "column" | "field" | "div" | "p" | "span" | "h1" | "h2" | "h3";
85
+ export type LayoutNodeType = "form" | "sheet" | "notebook" | "page" | "row" | "column" | "field" | "div" | "p" | "span" | "h1" | "h2" | "h3" | "list";
86
86
  export type LayoutNode = {
87
87
  body?: string;
88
88
  type: LayoutNodeType;
@@ -90,8 +90,14 @@ export type LayoutNode = {
90
90
  children?: LayoutNode[];
91
91
  };
92
92
 
93
+ export type ListLayoutType = {
94
+ type: LayoutNodeType;
95
+ attrs: LayoutAttribute;
96
+ children?: any[];
97
+ };
98
+
93
99
  // Event type
94
- export type SolidUiEvents = "onFieldChange" | "onFieldBlur" | "onCustomWidgetRender" | "onFormDataLoad" | "onFormLayoutLoad" | "onFormLoad";
100
+ export type SolidUiEvents = "onFieldChange" | "onFieldBlur" | "onCustomWidgetRender" | "onFormDataLoad" | "onFormLayoutLoad" | "onFormLoad" | "onListLoad" | "afterLogin" | "beforeLogout" | "onApplicationMount";
95
101
  export type SolidUiEvent = {
96
102
  type: SolidUiEvents;
97
103
  modifiedField?: string;
@@ -103,6 +109,14 @@ export type SolidUiEvent = {
103
109
  formViewLayout: LayoutNode;
104
110
  };
105
111
 
112
+ export type SolidUiEventResponse = {
113
+ dataChanged?: Boolean;
114
+ newFormData?: Record<string, any>;
115
+ layoutChanged?: Boolean;
116
+ newLayout?: LayoutNode;
117
+ }
118
+
119
+
106
120
  export type SolidLoadForm = {
107
121
  parentData?: any,
108
122
  type: SolidUiEvents;
@@ -112,6 +126,48 @@ export type SolidLoadForm = {
112
126
  formViewLayout: LayoutNode;
113
127
  }
114
128
 
129
+
130
+ export type SolidListUiEvent = {
131
+ type: SolidUiEvents;
132
+ listData: any[];
133
+ fieldsMetadata: FieldsMetadata;
134
+ totalRecords: number;
135
+ viewMetadata: SolidView;
136
+ listViewLayout: ListLayoutType;
137
+ };
138
+
139
+ export type SolidLoadList = {
140
+ type: SolidUiEvents;
141
+ listData: any[];
142
+ fieldsMetadata: FieldsMetadata;
143
+ totalRecords: number;
144
+ viewMetadata: SolidView;
145
+ listViewLayout: ListLayoutType;
146
+ user: any,
147
+ session: any
148
+ }
149
+
150
+ export type SolidListUiEventResponse = {
151
+ dataChanged?: Boolean;
152
+ newListData?: any[];
153
+ layoutChanged?: Boolean;
154
+ newLayout?: LayoutNode;
155
+ }
156
+
157
+ export type SolidAfterLoginEvent = {
158
+ type: SolidUiEvents;
159
+ user: any
160
+ }
161
+
162
+ export type SolidOnApplicationMountEvent = {
163
+ type: SolidUiEvents;
164
+ user: any,
165
+ session: any
166
+ }
167
+
168
+
169
+
170
+
115
171
  export enum SqlExpressionOperator {
116
172
  EQUALS = '$equals',
117
173
  NOT_EQUALS = '$notEquals',
@@ -210,6 +266,6 @@ export interface AiInteraction {
210
266
  modelUsed?: string;
211
267
  responseTimeMs?: number;
212
268
  metadata?: string;
213
- isApplied ?: boolean;
214
- createdAt? :Date
269
+ isApplied?: boolean;
270
+ createdAt?: Date
215
271
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@solidstarters/solid-core-ui",
3
- "version": "1.1.204",
3
+ "version": "1.1.205",
4
4
  "scripts": {
5
5
  "prebuild": "npm run copy-resources && npm run copy-styles",
6
6
  "build": "tsc && tsc-alias",
@@ -25,7 +25,7 @@
25
25
  border-radius: 0.5rem;
26
26
  padding: 24px;
27
27
  display: flex;
28
- align-items: end;
28
+ align-items: flex-end;
29
29
  justify-content: space-between;
30
30
  height: 100%;
31
31
  }
@@ -0,0 +1,4 @@
1
+ declare module "handlebars/dist/handlebars" {
2
+ import * as Handlebars from "handlebars";
3
+ export = Handlebars;
4
+ }
@@ -26,6 +26,9 @@ import {
26
26
  LayoutNodeType,
27
27
  SolidUiEvents,
28
28
  SolidUiEvent,
29
+ SolidListUiEvent,
30
+ SolidUiEventResponse,
31
+ SolidListUiEventResponse,
29
32
  SolidFormWidgetProps,
30
33
  SolidChartRendererProps
31
34
  } from './solid-core';
@@ -57,6 +60,9 @@ export type {
57
60
  LayoutNodeType,
58
61
  SolidUiEvents,
59
62
  SolidUiEvent,
63
+ SolidUiEventResponse,
64
+ SolidListUiEventResponse,
65
+ SolidListUiEvent,
60
66
  SolidFormWidgetProps,
61
67
  SolidChartRendererProps
62
68
  };
@@ -82,7 +82,7 @@ export type LayoutAttribute = {
82
82
  };
83
83
 
84
84
  // Generic representation of any node in our layout
85
- export type LayoutNodeType = "form" | "sheet" | "notebook" | "page" | "row" | "column" | "field" | "div" | "p" | "span" | "h1" | "h2" | "h3";
85
+ export type LayoutNodeType = "form" | "sheet" | "notebook" | "page" | "row" | "column" | "field" | "div" | "p" | "span" | "h1" | "h2" | "h3" | "list";
86
86
  export type LayoutNode = {
87
87
  body?: string;
88
88
  type: LayoutNodeType;
@@ -90,8 +90,14 @@ export type LayoutNode = {
90
90
  children?: LayoutNode[];
91
91
  };
92
92
 
93
+ export type ListLayoutType = {
94
+ type: LayoutNodeType;
95
+ attrs: LayoutAttribute;
96
+ children?: any[];
97
+ };
98
+
93
99
  // Event type
94
- export type SolidUiEvents = "onFieldChange" | "onFieldBlur" | "onCustomWidgetRender" | "onFormDataLoad" | "onFormLayoutLoad" | "onFormLoad";
100
+ export type SolidUiEvents = "onFieldChange" | "onFieldBlur" | "onCustomWidgetRender" | "onFormDataLoad" | "onFormLayoutLoad" | "onFormLoad" | "onListLoad" | "afterLogin" | "beforeLogout" | "onApplicationMount";
95
101
  export type SolidUiEvent = {
96
102
  type: SolidUiEvents;
97
103
  modifiedField?: string;
@@ -103,6 +109,14 @@ export type SolidUiEvent = {
103
109
  formViewLayout: LayoutNode;
104
110
  };
105
111
 
112
+ export type SolidUiEventResponse = {
113
+ dataChanged?: Boolean;
114
+ newFormData?: Record<string, any>;
115
+ layoutChanged?: Boolean;
116
+ newLayout?: LayoutNode;
117
+ }
118
+
119
+
106
120
  export type SolidLoadForm = {
107
121
  parentData?: any,
108
122
  type: SolidUiEvents;
@@ -112,6 +126,48 @@ export type SolidLoadForm = {
112
126
  formViewLayout: LayoutNode;
113
127
  }
114
128
 
129
+
130
+ export type SolidListUiEvent = {
131
+ type: SolidUiEvents;
132
+ listData: any[];
133
+ fieldsMetadata: FieldsMetadata;
134
+ totalRecords: number;
135
+ viewMetadata: SolidView;
136
+ listViewLayout: ListLayoutType;
137
+ };
138
+
139
+ export type SolidLoadList = {
140
+ type: SolidUiEvents;
141
+ listData: any[];
142
+ fieldsMetadata: FieldsMetadata;
143
+ totalRecords: number;
144
+ viewMetadata: SolidView;
145
+ listViewLayout: ListLayoutType;
146
+ user: any,
147
+ session: any
148
+ }
149
+
150
+ export type SolidListUiEventResponse = {
151
+ dataChanged?: Boolean;
152
+ newListData?: any[];
153
+ layoutChanged?: Boolean;
154
+ newLayout?: LayoutNode;
155
+ }
156
+
157
+ export type SolidAfterLoginEvent = {
158
+ type: SolidUiEvents;
159
+ user: any
160
+ }
161
+
162
+ export type SolidOnApplicationMountEvent = {
163
+ type: SolidUiEvents;
164
+ user: any,
165
+ session: any
166
+ }
167
+
168
+
169
+
170
+
115
171
  export enum SqlExpressionOperator {
116
172
  EQUALS = '$equals',
117
173
  NOT_EQUALS = '$notEquals',
@@ -210,6 +266,6 @@ export interface AiInteraction {
210
266
  modelUsed?: string;
211
267
  responseTimeMs?: number;
212
268
  metadata?: string;
213
- isApplied ?: boolean;
214
- createdAt? :Date
269
+ isApplied?: boolean;
270
+ createdAt?: Date
215
271
  }