@solidxai/core-ui 0.1.7-beta.0 → 0.1.7-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/auth/AuthLayout.d.ts.map +1 -1
- package/dist/components/auth/AuthLayout.js +41 -26
- package/dist/components/auth/AuthLayout.js.map +1 -1
- package/dist/components/auth/AuthLayout.tsx +87 -88
- package/dist/components/auth/ForgotPasswordThankYou.d.ts.map +1 -1
- package/dist/components/auth/ForgotPasswordThankYou.js +4 -2
- package/dist/components/auth/ForgotPasswordThankYou.js.map +1 -1
- package/dist/components/auth/ForgotPasswordThankYou.tsx +14 -11
- package/dist/components/auth/GoogleAuthChecking.d.ts.map +1 -1
- package/dist/components/auth/GoogleAuthChecking.js +17 -12
- package/dist/components/auth/GoogleAuthChecking.js.map +1 -1
- package/dist/components/auth/GoogleAuthChecking.tsx +8 -5
- package/dist/components/auth/SolidChangeForcePassword.d.ts.map +1 -1
- package/dist/components/auth/SolidChangeForcePassword.js +3 -5
- package/dist/components/auth/SolidChangeForcePassword.js.map +1 -1
- package/dist/components/auth/SolidChangeForcePassword.tsx +41 -34
- package/dist/components/auth/SolidForgotPassword.d.ts.map +1 -1
- package/dist/components/auth/SolidForgotPassword.js +5 -10
- package/dist/components/auth/SolidForgotPassword.js.map +1 -1
- package/dist/components/auth/SolidForgotPassword.tsx +26 -27
- package/dist/components/auth/SolidInitialLoginOtp.d.ts.map +1 -1
- package/dist/components/auth/SolidInitialLoginOtp.js +25 -25
- package/dist/components/auth/SolidInitialLoginOtp.js.map +1 -1
- package/dist/components/auth/SolidInitialLoginOtp.tsx +55 -43
- package/dist/components/auth/SolidInitiateRegisterOtp.d.ts.map +1 -1
- package/dist/components/auth/SolidInitiateRegisterOtp.js +11 -16
- package/dist/components/auth/SolidInitiateRegisterOtp.js.map +1 -1
- package/dist/components/auth/SolidInitiateRegisterOtp.tsx +48 -42
- package/dist/components/auth/SolidLogin.d.ts.map +1 -1
- package/dist/components/auth/SolidLogin.js +34 -35
- package/dist/components/auth/SolidLogin.js.map +1 -1
- package/dist/components/auth/SolidLogin.tsx +90 -115
- package/dist/components/auth/SolidRegister.d.ts.map +1 -1
- package/dist/components/auth/SolidRegister.js +23 -25
- package/dist/components/auth/SolidRegister.js.map +1 -1
- package/dist/components/auth/SolidRegister.tsx +53 -71
- package/dist/components/auth/SolidResetPassword.d.ts.map +1 -1
- package/dist/components/auth/SolidResetPassword.js +5 -15
- package/dist/components/auth/SolidResetPassword.js.map +1 -1
- package/dist/components/auth/SolidResetPassword.tsx +15 -37
- package/dist/components/common/AutoCompleteField.d.ts.map +1 -1
- package/dist/components/common/AutoCompleteField.js +2 -2
- package/dist/components/common/AutoCompleteField.js.map +1 -1
- package/dist/components/common/AutoCompleteField.tsx +4 -6
- package/dist/components/common/BackButton.js +4 -3
- package/dist/components/common/BackButton.js.map +1 -1
- package/dist/components/common/BackButton.tsx +6 -6
- package/dist/components/common/CancelButton.d.ts.map +1 -1
- package/dist/components/common/CancelButton.js +5 -4
- package/dist/components/common/CancelButton.js.map +1 -1
- package/dist/components/common/CancelButton.tsx +10 -6
- package/dist/components/common/CreateButton.d.ts.map +1 -1
- package/dist/components/common/CreateButton.js +2 -2
- package/dist/components/common/CreateButton.js.map +1 -1
- package/dist/components/common/CreateButton.tsx +8 -2
- package/dist/components/common/DownloadProgressToast.d.ts.map +1 -1
- package/dist/components/common/DownloadProgressToast.js +3 -3
- package/dist/components/common/DownloadProgressToast.js.map +1 -1
- package/dist/components/common/DownloadProgressToast.tsx +21 -18
- package/dist/components/common/DropzonePlaceholder.js +2 -2
- package/dist/components/common/DropzonePlaceholder.js.map +1 -1
- package/dist/components/common/DropzonePlaceholder.tsx +3 -3
- package/dist/components/common/DropzoneUpload.js +2 -2
- package/dist/components/common/DropzoneUpload.js.map +1 -1
- package/dist/components/common/DropzoneUpload.tsx +3 -3
- package/dist/components/common/GeneralSettings.d.ts.map +1 -1
- package/dist/components/common/GeneralSettings.js +70 -106
- package/dist/components/common/GeneralSettings.js.map +1 -1
- package/dist/components/common/GeneralSettings.tsx +168 -327
- package/dist/components/common/GlobalToast.d.ts +1 -1
- package/dist/components/common/GlobalToast.d.ts.map +1 -1
- package/dist/components/common/GlobalToast.js +1 -24
- package/dist/components/common/GlobalToast.js.map +1 -1
- package/dist/components/common/GlobalToast.tsx +1 -25
- package/dist/components/common/MultipleSelectAutoCompleteField.d.ts.map +1 -1
- package/dist/components/common/MultipleSelectAutoCompleteField.js +2 -2
- package/dist/components/common/MultipleSelectAutoCompleteField.js.map +1 -1
- package/dist/components/common/MultipleSelectAutoCompleteField.tsx +3 -5
- package/dist/components/common/NotFound.d.ts.map +1 -1
- package/dist/components/common/NotFound.js +3 -3
- package/dist/components/common/NotFound.js.map +1 -1
- package/dist/components/common/NotFound.tsx +8 -15
- package/dist/components/common/SocialMediaLogin.d.ts.map +1 -1
- package/dist/components/common/SocialMediaLogin.js +13 -4
- package/dist/components/common/SocialMediaLogin.js.map +1 -1
- package/dist/components/common/SocialMediaLogin.tsx +58 -45
- package/dist/components/common/SolidAdmin.d.ts.map +1 -1
- package/dist/components/common/SolidAdmin.js +10 -2
- package/dist/components/common/SolidAdmin.js.map +1 -1
- package/dist/components/common/SolidAdmin.tsx +116 -131
- package/dist/components/common/SolidBreadcrumb.d.ts.map +1 -1
- package/dist/components/common/SolidBreadcrumb.js +10 -25
- package/dist/components/common/SolidBreadcrumb.js.map +1 -1
- package/dist/components/common/SolidBreadcrumb.tsx +32 -26
- package/dist/components/common/SolidErrorPage.d.ts.map +1 -1
- package/dist/components/common/SolidErrorPage.js +4 -6
- package/dist/components/common/SolidErrorPage.js.map +1 -1
- package/dist/components/common/SolidErrorPage.tsx +11 -37
- package/dist/components/common/SolidExport.d.ts +1 -1
- package/dist/components/common/SolidExport.d.ts.map +1 -1
- package/dist/components/common/SolidExport.js +182 -221
- package/dist/components/common/SolidExport.js.map +1 -1
- package/dist/components/common/SolidExport.tsx +401 -453
- package/dist/components/common/SolidFieldTooltip.d.ts +1 -1
- package/dist/components/common/SolidFieldTooltip.d.ts.map +1 -1
- package/dist/components/common/SolidFieldTooltip.js +8 -7
- package/dist/components/common/SolidFieldTooltip.js.map +1 -1
- package/dist/components/common/SolidFieldTooltip.tsx +29 -16
- package/dist/components/common/SolidFormHeader.d.ts +1 -1
- package/dist/components/common/SolidFormHeader.d.ts.map +1 -1
- package/dist/components/common/SolidFormHeader.js +7 -5
- package/dist/components/common/SolidFormHeader.js.map +1 -1
- package/dist/components/common/SolidFormHeader.tsx +11 -6
- package/dist/components/common/SolidFormStepper.d.ts.map +1 -1
- package/dist/components/common/SolidFormStepper.js +7 -22
- package/dist/components/common/SolidFormStepper.js.map +1 -1
- package/dist/components/common/SolidFormStepper.tsx +31 -50
- package/dist/components/common/SolidHeaderRequestStatus.d.ts +6 -0
- package/dist/components/common/SolidHeaderRequestStatus.d.ts.map +1 -0
- package/dist/components/common/SolidHeaderRequestStatus.js +9 -0
- package/dist/components/common/SolidHeaderRequestStatus.js.map +1 -0
- package/dist/components/common/SolidHeaderRequestStatus.tsx +16 -0
- package/dist/components/common/SolidModuleHome.d.ts.map +1 -1
- package/dist/components/common/SolidModuleHome.js +3 -3
- package/dist/components/common/SolidModuleHome.js.map +1 -1
- package/dist/components/common/SolidModuleHome.tsx +13 -5
- package/dist/components/common/SolidNotFoundPage.d.ts.map +1 -1
- package/dist/components/common/SolidNotFoundPage.js +4 -5
- package/dist/components/common/SolidNotFoundPage.js.map +1 -1
- package/dist/components/common/SolidNotFoundPage.tsx +11 -29
- package/dist/components/common/SolidPopupContainer.d.ts.map +1 -1
- package/dist/components/common/SolidPopupContainer.js +11 -6
- package/dist/components/common/SolidPopupContainer.js.map +1 -1
- package/dist/components/common/SolidPopupContainer.tsx +28 -29
- package/dist/components/common/SolidSettings/LlmSettings/AiModelConfigTab.d.ts +11 -0
- package/dist/components/common/SolidSettings/LlmSettings/AiModelConfigTab.d.ts.map +1 -0
- package/dist/components/common/SolidSettings/LlmSettings/AiModelConfigTab.js +60 -0
- package/dist/components/common/SolidSettings/LlmSettings/AiModelConfigTab.js.map +1 -0
- package/dist/components/common/SolidSettings/LlmSettings/AiModelConfigTab.tsx +76 -0
- package/dist/components/common/SolidSettings/LlmSettings/AnthropicProviderComponent.d.ts.map +1 -1
- package/dist/components/common/SolidSettings/LlmSettings/AnthropicProviderComponent.js +2 -3
- package/dist/components/common/SolidSettings/LlmSettings/AnthropicProviderComponent.js.map +1 -1
- package/dist/components/common/SolidSettings/LlmSettings/AnthropicProviderComponent.tsx +28 -38
- package/dist/components/common/SolidSettings/LlmSettings/OpenAiProviderComponent.d.ts.map +1 -1
- package/dist/components/common/SolidSettings/LlmSettings/OpenAiProviderComponent.js +2 -3
- package/dist/components/common/SolidSettings/LlmSettings/OpenAiProviderComponent.js.map +1 -1
- package/dist/components/common/SolidSettings/LlmSettings/OpenAiProviderComponent.tsx +28 -38
- package/dist/components/common/SolidSettings/SettingDropzoneActivePlaceholder.js +2 -2
- package/dist/components/common/SolidSettings/SettingDropzoneActivePlaceholder.js.map +1 -1
- package/dist/components/common/SolidSettings/SettingDropzoneActivePlaceholder.tsx +3 -3
- package/dist/components/common/SolidSettings/SettingsImageRemoveButton.js +2 -2
- package/dist/components/common/SolidSettings/SettingsImageRemoveButton.js.map +1 -1
- package/dist/components/common/SolidSettings/SettingsImageRemoveButton.tsx +3 -3
- package/dist/components/common/SolidToastProvider.d.ts +2 -0
- package/dist/components/common/SolidToastProvider.d.ts.map +1 -0
- package/dist/components/common/SolidToastProvider.js +45 -0
- package/dist/components/common/SolidToastProvider.js.map +1 -0
- package/dist/components/common/SolidToastProvider.tsx +39 -0
- package/dist/components/common/error.d.ts.map +1 -1
- package/dist/components/common/error.js +4 -2
- package/dist/components/common/error.js.map +1 -1
- package/dist/components/common/error.tsx +9 -15
- package/dist/components/common/solid-export.css +454 -59
- package/dist/components/core/card/CardGrid.d.ts +3 -0
- package/dist/components/core/card/CardGrid.d.ts.map +1 -0
- package/dist/components/core/card/CardGrid.js +42 -0
- package/dist/components/core/card/CardGrid.js.map +1 -0
- package/dist/components/core/card/CardGrid.tsx +83 -0
- package/dist/components/core/card/CardItem.d.ts +13 -0
- package/dist/components/core/card/CardItem.d.ts.map +1 -0
- package/dist/components/core/card/CardItem.js +21 -0
- package/dist/components/core/card/CardItem.js.map +1 -0
- package/dist/components/core/card/CardItem.tsx +91 -0
- package/dist/components/core/card/CardUserViewLayout.d.ts +2 -0
- package/dist/components/core/card/CardUserViewLayout.d.ts.map +1 -0
- package/dist/components/core/card/CardUserViewLayout.js +94 -0
- package/dist/components/core/card/CardUserViewLayout.js.map +1 -0
- package/dist/components/core/card/CardUserViewLayout.tsx +68 -0
- package/dist/components/core/card/SolidCardView.d.ts +8 -0
- package/dist/components/core/card/SolidCardView.d.ts.map +1 -0
- package/dist/components/core/card/SolidCardView.js +365 -0
- package/dist/components/core/card/SolidCardView.js.map +1 -0
- package/dist/components/core/card/SolidCardView.tsx +528 -0
- package/dist/components/core/card/SolidCardViewConfigure.d.ts +2 -0
- package/dist/components/core/card/SolidCardViewConfigure.d.ts.map +1 -0
- package/dist/components/core/card/SolidCardViewConfigure.js +122 -0
- package/dist/components/core/card/SolidCardViewConfigure.js.map +1 -0
- package/dist/components/core/card/SolidCardViewConfigure.tsx +268 -0
- package/dist/components/core/chatter/SolidChatter.d.ts.map +1 -1
- package/dist/components/core/chatter/SolidChatter.js +25 -21
- package/dist/components/core/chatter/SolidChatter.js.map +1 -1
- package/dist/components/core/chatter/SolidChatter.tsx +85 -67
- package/dist/components/core/chatter/SolidChatterAuditMessage.js +1 -1
- package/dist/components/core/chatter/SolidChatterAuditMessage.js.map +1 -1
- package/dist/components/core/chatter/SolidChatterAuditMessage.tsx +3 -3
- package/dist/components/core/chatter/SolidChatterCustomMessage.d.ts.map +1 -1
- package/dist/components/core/chatter/SolidChatterCustomMessage.js +2 -1
- package/dist/components/core/chatter/SolidChatterCustomMessage.js.map +1 -1
- package/dist/components/core/chatter/SolidChatterCustomMessage.tsx +3 -6
- package/dist/components/core/chatter/SolidChatterDateDivider.js.map +1 -1
- package/dist/components/core/chatter/SolidChatterDateDivider.tsx +1 -1
- package/dist/components/core/chatter/SolidChatterHeader.d.ts +1 -0
- package/dist/components/core/chatter/SolidChatterHeader.d.ts.map +1 -1
- package/dist/components/core/chatter/SolidChatterHeader.js +40 -30
- package/dist/components/core/chatter/SolidChatterHeader.js.map +1 -1
- package/dist/components/core/chatter/SolidChatterHeader.tsx +137 -101
- package/dist/components/core/chatter/SolidChatterMessageBox.d.ts.map +1 -1
- package/dist/components/core/chatter/SolidChatterMessageBox.js +55 -21
- package/dist/components/core/chatter/SolidChatterMessageBox.js.map +1 -1
- package/dist/components/core/chatter/SolidChatterMessageBox.tsx +124 -91
- package/dist/components/core/chatter/SolidMessageComposer.d.ts +6 -3
- package/dist/components/core/chatter/SolidMessageComposer.d.ts.map +1 -1
- package/dist/components/core/chatter/SolidMessageComposer.js +15 -7
- package/dist/components/core/chatter/SolidMessageComposer.js.map +1 -1
- package/dist/components/core/chatter/SolidMessageComposer.tsx +90 -49
- package/dist/components/core/chatter/chatter.module.css +197 -7
- package/dist/components/core/common/DateFieldViewComponent.d.ts +2 -1
- package/dist/components/core/common/DateFieldViewComponent.d.ts.map +1 -1
- package/dist/components/core/common/DateFieldViewComponent.js +2 -2
- package/dist/components/core/common/DateFieldViewComponent.js.map +1 -1
- package/dist/components/core/common/DateFieldViewComponent.tsx +3 -1
- package/dist/components/core/common/FilterComponent.d.ts +2 -8
- package/dist/components/core/common/FilterComponent.d.ts.map +1 -1
- package/dist/components/core/common/FilterComponent.js +27 -49
- package/dist/components/core/common/FilterComponent.js.map +1 -1
- package/dist/components/core/common/FilterComponent.tsx +69 -127
- package/dist/components/core/common/GroupingComponent.d.ts.map +1 -1
- package/dist/components/core/common/GroupingComponent.js +40 -70
- package/dist/components/core/common/GroupingComponent.js.map +1 -1
- package/dist/components/core/common/GroupingComponent.tsx +174 -251
- package/dist/components/core/common/SolidAccountSettings/SolidAccountSettings.d.ts +1 -1
- package/dist/components/core/common/SolidAccountSettings/SolidAccountSettings.d.ts.map +1 -1
- package/dist/components/core/common/SolidAccountSettings/SolidAccountSettings.js +12 -32
- package/dist/components/core/common/SolidAccountSettings/SolidAccountSettings.js.map +1 -1
- package/dist/components/core/common/SolidAccountSettings/SolidAccountSettings.module.css +530 -42
- package/dist/components/core/common/SolidAccountSettings/SolidAccountSettings.tsx +71 -86
- package/dist/components/core/common/SolidAccountSettings/SolidChangePassword.d.ts.map +1 -1
- package/dist/components/core/common/SolidAccountSettings/SolidChangePassword.js +75 -48
- package/dist/components/core/common/SolidAccountSettings/SolidChangePassword.js.map +1 -1
- package/dist/components/core/common/SolidAccountSettings/SolidChangePassword.tsx +242 -172
- package/dist/components/core/common/SolidAccountSettings/SolidNotifications.d.ts.map +1 -1
- package/dist/components/core/common/SolidAccountSettings/SolidNotifications.js +44 -55
- package/dist/components/core/common/SolidAccountSettings/SolidNotifications.js.map +1 -1
- package/dist/components/core/common/SolidAccountSettings/SolidNotifications.tsx +108 -125
- package/dist/components/core/common/SolidAccountSettings/SolidPersonalInfo.d.ts.map +1 -1
- package/dist/components/core/common/SolidAccountSettings/SolidPersonalInfo.js +106 -87
- package/dist/components/core/common/SolidAccountSettings/SolidPersonalInfo.js.map +1 -1
- package/dist/components/core/common/SolidAccountSettings/SolidPersonalInfo.tsx +332 -285
- package/dist/components/core/common/SolidAccountSettings/SolidVersionInfo.d.ts.map +1 -1
- package/dist/components/core/common/SolidAccountSettings/SolidVersionInfo.js +12 -13
- package/dist/components/core/common/SolidAccountSettings/SolidVersionInfo.js.map +1 -1
- package/dist/components/core/common/SolidAccountSettings/SolidVersionInfo.tsx +48 -65
- package/dist/components/core/common/SolidCreateButton.d.ts.map +1 -1
- package/dist/components/core/common/SolidCreateButton.js +5 -3
- package/dist/components/core/common/SolidCreateButton.js.map +1 -1
- package/dist/components/core/common/SolidCreateButton.tsx +20 -14
- package/dist/components/core/common/SolidGenericImport/SolidGenericImport.d.ts.map +1 -1
- package/dist/components/core/common/SolidGenericImport/SolidGenericImport.js +30 -11
- package/dist/components/core/common/SolidGenericImport/SolidGenericImport.js.map +1 -1
- package/dist/components/core/common/SolidGenericImport/SolidGenericImport.tsx +91 -43
- package/dist/components/core/common/SolidGenericImport/SolidImport.module.css +574 -27
- package/dist/components/core/common/SolidGenericImport/SolidImportDropzone.d.ts.map +1 -1
- package/dist/components/core/common/SolidGenericImport/SolidImportDropzone.js +14 -9
- package/dist/components/core/common/SolidGenericImport/SolidImportDropzone.js.map +1 -1
- package/dist/components/core/common/SolidGenericImport/SolidImportDropzone.tsx +46 -24
- package/dist/components/core/common/SolidGenericImport/SolidImportInstructions.d.ts.map +1 -1
- package/dist/components/core/common/SolidGenericImport/SolidImportInstructions.js +24 -25
- package/dist/components/core/common/SolidGenericImport/SolidImportInstructions.js.map +1 -1
- package/dist/components/core/common/SolidGenericImport/SolidImportInstructions.tsx +78 -54
- package/dist/components/core/common/SolidGenericImport/SolidImportStepper.d.ts +1 -1
- package/dist/components/core/common/SolidGenericImport/SolidImportStepper.d.ts.map +1 -1
- package/dist/components/core/common/SolidGenericImport/SolidImportStepper.js +15 -125
- package/dist/components/core/common/SolidGenericImport/SolidImportStepper.js.map +1 -1
- package/dist/components/core/common/SolidGenericImport/SolidImportStepper.tsx +35 -213
- package/dist/components/core/common/SolidGenericImport/SolidImportTransaction.d.ts.map +1 -1
- package/dist/components/core/common/SolidGenericImport/SolidImportTransaction.js +16 -31
- package/dist/components/core/common/SolidGenericImport/SolidImportTransaction.js.map +1 -1
- package/dist/components/core/common/SolidGenericImport/SolidImportTransaction.tsx +77 -84
- package/dist/components/core/common/SolidGenericImport/SolidImportTransactionStatus.d.ts.map +1 -1
- package/dist/components/core/common/SolidGenericImport/SolidImportTransactionStatus.js +11 -13
- package/dist/components/core/common/SolidGenericImport/SolidImportTransactionStatus.js.map +1 -1
- package/dist/components/core/common/SolidGenericImport/SolidImportTransactionStatus.tsx +87 -52
- package/dist/components/core/common/SolidGlobalSearchElement.d.ts.map +1 -1
- package/dist/components/core/common/SolidGlobalSearchElement.js +319 -161
- package/dist/components/core/common/SolidGlobalSearchElement.js.map +1 -1
- package/dist/components/core/common/SolidGlobalSearchElement.tsx +654 -287
- package/dist/components/core/common/SolidLayoutViews.d.ts.map +1 -1
- package/dist/components/core/common/SolidLayoutViews.js +5 -8
- package/dist/components/core/common/SolidLayoutViews.js.map +1 -1
- package/dist/components/core/common/SolidLayoutViews.tsx +49 -63
- package/dist/components/core/common/SolidListViewOptions.d.ts.map +1 -1
- package/dist/components/core/common/SolidListViewOptions.js +3 -3
- package/dist/components/core/common/SolidListViewOptions.js.map +1 -1
- package/dist/components/core/common/SolidListViewOptions.tsx +7 -6
- package/dist/components/core/common/SolidSaveCustomFilterForm.d.ts.map +1 -1
- package/dist/components/core/common/SolidSaveCustomFilterForm.js +3 -3
- package/dist/components/core/common/SolidSaveCustomFilterForm.js.map +1 -1
- package/dist/components/core/common/SolidSaveCustomFilterForm.tsx +31 -28
- package/dist/components/core/common/SolidSearchBox.d.ts.map +1 -1
- package/dist/components/core/common/SolidSearchBox.js +2 -2
- package/dist/components/core/common/SolidSearchBox.js.map +1 -1
- package/dist/components/core/common/SolidSearchBox.tsx +3 -4
- package/dist/components/core/dashboard/DashboardFilter.d.ts.map +1 -1
- package/dist/components/core/dashboard/DashboardFilter.js +8 -14
- package/dist/components/core/dashboard/DashboardFilter.js.map +1 -1
- package/dist/components/core/dashboard/DashboardFilter.tsx +26 -34
- package/dist/components/core/dashboard/PrimeDataTableWrapper.js +2 -2
- package/dist/components/core/dashboard/PrimeDataTableWrapper.js.map +1 -1
- package/dist/components/core/dashboard/PrimeDataTableWrapper.tsx +3 -3
- package/dist/components/core/dashboard/SolidDashboard.d.ts.map +1 -1
- package/dist/components/core/dashboard/SolidDashboard.js +13 -125
- package/dist/components/core/dashboard/SolidDashboard.js.map +1 -1
- package/dist/components/core/dashboard/SolidDashboard.module.css +3 -3
- package/dist/components/core/dashboard/SolidDashboard.tsx +41 -187
- package/dist/components/core/dashboard/SolidDashboardBody.d.ts.map +1 -1
- package/dist/components/core/dashboard/SolidDashboardBody.js +14 -14
- package/dist/components/core/dashboard/SolidDashboardBody.js.map +1 -1
- package/dist/components/core/dashboard/SolidDashboardBody.tsx +6 -7
- package/dist/components/core/dashboard/SolidDashboardFilterRequired.js +2 -1
- package/dist/components/core/dashboard/SolidDashboardFilterRequired.js.map +1 -1
- package/dist/components/core/dashboard/SolidDashboardFilterRequired.tsx +3 -3
- package/dist/components/core/dashboard/SolidDashboardLoading.d.ts.map +1 -1
- package/dist/components/core/dashboard/SolidDashboardLoading.js +5 -2
- package/dist/components/core/dashboard/SolidDashboardLoading.js.map +1 -1
- package/dist/components/core/dashboard/SolidDashboardLoading.tsx +20 -14
- package/dist/components/core/dashboard/SolidDashboardNotAvailable.js +2 -1
- package/dist/components/core/dashboard/SolidDashboardNotAvailable.js.map +1 -1
- package/dist/components/core/dashboard/SolidDashboardNotAvailable.tsx +3 -3
- package/dist/components/core/dashboard/SolidDashboardRenderError.d.ts.map +1 -1
- package/dist/components/core/dashboard/SolidDashboardRenderError.js +2 -1
- package/dist/components/core/dashboard/SolidDashboardRenderError.js.map +1 -1
- package/dist/components/core/dashboard/SolidDashboardRenderError.tsx +3 -4
- package/dist/components/core/dashboard/SolidDashboardVariable.d.ts.map +1 -1
- package/dist/components/core/dashboard/SolidDashboardVariable.js +9 -18
- package/dist/components/core/dashboard/SolidDashboardVariable.js.map +1 -1
- package/dist/components/core/dashboard/SolidDashboardVariable.tsx +40 -37
- package/dist/components/core/dashboard/SolidQuestionRenderer.d.ts.map +1 -1
- package/dist/components/core/dashboard/SolidQuestionRenderer.js +16 -11
- package/dist/components/core/dashboard/SolidQuestionRenderer.js.map +1 -1
- package/dist/components/core/dashboard/SolidQuestionRenderer.tsx +30 -11
- package/dist/components/core/dashboard/chart-renderers/PrimeReactDatatableRenderer.d.ts.map +1 -1
- package/dist/components/core/dashboard/chart-renderers/PrimeReactDatatableRenderer.js +4 -14
- package/dist/components/core/dashboard/chart-renderers/PrimeReactDatatableRenderer.js.map +1 -1
- package/dist/components/core/dashboard/chart-renderers/PrimeReactDatatableRenderer.tsx +24 -27
- package/dist/components/core/extension/solid-core/CustomIcon/StatusIcon.d.ts +1 -2
- package/dist/components/core/extension/solid-core/CustomIcon/StatusIcon.d.ts.map +1 -1
- package/dist/components/core/extension/solid-core/CustomIcon/StatusIcon.js +2 -2
- package/dist/components/core/extension/solid-core/CustomIcon/StatusIcon.js.map +1 -1
- package/dist/components/core/extension/solid-core/CustomIcon/StatusIcon.tsx +10 -12
- package/dist/components/core/extension/solid-core/dashboardQuestion/ChartFormPreviewWidget.js +2 -2
- package/dist/components/core/extension/solid-core/dashboardQuestion/ChartFormPreviewWidget.js.map +1 -1
- package/dist/components/core/extension/solid-core/dashboardQuestion/ChartFormPreviewWidget.tsx +3 -3
- package/dist/components/core/extension/solid-core/media/card/MediaCardWidget.d.ts +3 -0
- package/dist/components/core/extension/solid-core/media/card/MediaCardWidget.d.ts.map +1 -0
- package/dist/components/core/extension/solid-core/media/card/MediaCardWidget.js +69 -0
- package/dist/components/core/extension/solid-core/media/card/MediaCardWidget.js.map +1 -0
- package/dist/components/core/extension/solid-core/media/card/MediaCardWidget.tsx +139 -0
- package/dist/components/core/extension/solid-core/modelMetadata/list/DeleteModelRowAction.d.ts.map +1 -1
- package/dist/components/core/extension/solid-core/modelMetadata/list/DeleteModelRowAction.js +3 -6
- package/dist/components/core/extension/solid-core/modelMetadata/list/DeleteModelRowAction.js.map +1 -1
- package/dist/components/core/extension/solid-core/modelMetadata/list/DeleteModelRowAction.tsx +54 -38
- package/dist/components/core/extension/solid-core/modelMetadata/list/GenerateModelCodeRowAction.d.ts.map +1 -1
- package/dist/components/core/extension/solid-core/modelMetadata/list/GenerateModelCodeRowAction.js +74 -97
- package/dist/components/core/extension/solid-core/modelMetadata/list/GenerateModelCodeRowAction.js.map +1 -1
- package/dist/components/core/extension/solid-core/modelMetadata/list/GenerateModelCodeRowAction.tsx +178 -188
- package/dist/components/core/extension/solid-core/moduleMetadata/list/DeleteModuleRowAction.d.ts.map +1 -1
- package/dist/components/core/extension/solid-core/moduleMetadata/list/DeleteModuleRowAction.js +33 -35
- package/dist/components/core/extension/solid-core/moduleMetadata/list/DeleteModuleRowAction.js.map +1 -1
- package/dist/components/core/extension/solid-core/moduleMetadata/list/DeleteModuleRowAction.tsx +123 -110
- package/dist/components/core/extension/solid-core/moduleMetadata/list/GenerateModuleCodeRowAction.d.ts.map +1 -1
- package/dist/components/core/extension/solid-core/moduleMetadata/list/GenerateModuleCodeRowAction.js +70 -106
- package/dist/components/core/extension/solid-core/moduleMetadata/list/GenerateModuleCodeRowAction.js.map +1 -1
- package/dist/components/core/extension/solid-core/moduleMetadata/list/GenerateModuleCodeRowAction.tsx +175 -182
- package/dist/components/core/extension/solid-core/mqMessage/kanban/MqMessageKanbanCardWidget.d.ts +3 -0
- package/dist/components/core/extension/solid-core/mqMessage/kanban/MqMessageKanbanCardWidget.d.ts.map +1 -0
- package/dist/components/core/extension/solid-core/mqMessage/kanban/MqMessageKanbanCardWidget.js +128 -0
- package/dist/components/core/extension/solid-core/mqMessage/kanban/MqMessageKanbanCardWidget.js.map +1 -0
- package/dist/components/core/extension/solid-core/mqMessage/kanban/MqMessageKanbanCardWidget.tsx +193 -0
- package/dist/components/core/extension/solid-core/roleMetadata/RolePermissionsManyToManyFieldWidget.d.ts.map +1 -1
- package/dist/components/core/extension/solid-core/roleMetadata/RolePermissionsManyToManyFieldWidget.js +10 -18
- package/dist/components/core/extension/solid-core/roleMetadata/RolePermissionsManyToManyFieldWidget.js.map +1 -1
- package/dist/components/core/extension/solid-core/roleMetadata/RolePermissionsManyToManyFieldWidget.tsx +32 -53
- package/dist/components/core/field/FieldListViewData.d.ts.map +1 -1
- package/dist/components/core/field/FieldListViewData.js +83 -74
- package/dist/components/core/field/FieldListViewData.js.map +1 -1
- package/dist/components/core/field/FieldListViewData.tsx +120 -168
- package/dist/components/core/filter/SEARCH_FILTER_HIERARCHY.md +582 -0
- package/dist/components/core/filter/SolidBooleanFilterElement.d.ts +1 -1
- package/dist/components/core/filter/SolidBooleanFilterElement.d.ts.map +1 -1
- package/dist/components/core/filter/SolidBooleanFilterElement.js +4 -4
- package/dist/components/core/filter/SolidBooleanFilterElement.js.map +1 -1
- package/dist/components/core/filter/SolidBooleanFilterElement.tsx +7 -6
- package/dist/components/core/filter/SolidManyToManyFilterElement.d.ts +1 -1
- package/dist/components/core/filter/SolidManyToManyFilterElement.d.ts.map +1 -1
- package/dist/components/core/filter/SolidManyToManyFilterElement.js +5 -9
- package/dist/components/core/filter/SolidManyToManyFilterElement.js.map +1 -1
- package/dist/components/core/filter/SolidManyToManyFilterElement.tsx +8 -7
- package/dist/components/core/filter/SolidManyToOneFilterElement.d.ts +1 -1
- package/dist/components/core/filter/SolidManyToOneFilterElement.d.ts.map +1 -1
- package/dist/components/core/filter/SolidManyToOneFilterElement.js +4 -4
- package/dist/components/core/filter/SolidManyToOneFilterElement.js.map +1 -1
- package/dist/components/core/filter/SolidManyToOneFilterElement.tsx +7 -6
- package/dist/components/core/filter/SolidOneToManyFilterElement.d.ts +1 -1
- package/dist/components/core/filter/SolidOneToManyFilterElement.d.ts.map +1 -1
- package/dist/components/core/filter/SolidOneToManyFilterElement.js +5 -9
- package/dist/components/core/filter/SolidOneToManyFilterElement.js.map +1 -1
- package/dist/components/core/filter/SolidOneToManyFilterElement.tsx +8 -7
- package/dist/components/core/filter/SolidSelectionDynamicFilterElement.d.ts +1 -1
- package/dist/components/core/filter/SolidSelectionDynamicFilterElement.d.ts.map +1 -1
- package/dist/components/core/filter/SolidSelectionDynamicFilterElement.js +4 -4
- package/dist/components/core/filter/SolidSelectionDynamicFilterElement.js.map +1 -1
- package/dist/components/core/filter/SolidSelectionDynamicFilterElement.tsx +7 -6
- package/dist/components/core/filter/SolidSelectionStaticFilterElement.d.ts +1 -1
- package/dist/components/core/filter/SolidSelectionStaticFilterElement.d.ts.map +1 -1
- package/dist/components/core/filter/SolidSelectionStaticFilterElement.js +4 -4
- package/dist/components/core/filter/SolidSelectionStaticFilterElement.js.map +1 -1
- package/dist/components/core/filter/SolidSelectionStaticFilterElement.tsx +7 -6
- package/dist/components/core/filter/SolidVarInputsFilterElement.d.ts +1 -1
- package/dist/components/core/filter/SolidVarInputsFilterElement.d.ts.map +1 -1
- package/dist/components/core/filter/SolidVarInputsFilterElement.js +109 -38
- package/dist/components/core/filter/SolidVarInputsFilterElement.js.map +1 -1
- package/dist/components/core/filter/SolidVarInputsFilterElement.tsx +215 -155
- package/dist/components/core/filter/fields/SolidBooleanField.js +3 -3
- package/dist/components/core/filter/fields/SolidBooleanField.js.map +1 -1
- package/dist/components/core/filter/fields/SolidBooleanField.tsx +6 -6
- package/dist/components/core/filter/fields/SolidDateField.d.ts.map +1 -1
- package/dist/components/core/filter/fields/SolidDateField.js +3 -5
- package/dist/components/core/filter/fields/SolidDateField.js.map +1 -1
- package/dist/components/core/filter/fields/SolidDateField.tsx +6 -8
- package/dist/components/core/filter/fields/SolidDatetimeField.js +3 -3
- package/dist/components/core/filter/fields/SolidDatetimeField.js.map +1 -1
- package/dist/components/core/filter/fields/SolidDatetimeField.tsx +5 -5
- package/dist/components/core/filter/fields/SolidExternalIdField.js +5 -5
- package/dist/components/core/filter/fields/SolidExternalIdField.js.map +1 -1
- package/dist/components/core/filter/fields/SolidExternalIdField.tsx +8 -8
- package/dist/components/core/filter/fields/SolidIdField.d.ts.map +1 -1
- package/dist/components/core/filter/fields/SolidIdField.js +11 -4
- package/dist/components/core/filter/fields/SolidIdField.js.map +1 -1
- package/dist/components/core/filter/fields/SolidIdField.tsx +12 -5
- package/dist/components/core/filter/fields/SolidIntField.d.ts.map +1 -1
- package/dist/components/core/filter/fields/SolidIntField.js +3 -5
- package/dist/components/core/filter/fields/SolidIntField.js.map +1 -1
- package/dist/components/core/filter/fields/SolidIntField.tsx +6 -8
- package/dist/components/core/filter/fields/SolidMediaMultipleField.d.ts.map +1 -1
- package/dist/components/core/filter/fields/SolidMediaMultipleField.js +3 -5
- package/dist/components/core/filter/fields/SolidMediaMultipleField.js.map +1 -1
- package/dist/components/core/filter/fields/SolidMediaMultipleField.tsx +6 -8
- package/dist/components/core/filter/fields/SolidMediaSingleField.d.ts.map +1 -1
- package/dist/components/core/filter/fields/SolidMediaSingleField.js +3 -5
- package/dist/components/core/filter/fields/SolidMediaSingleField.js.map +1 -1
- package/dist/components/core/filter/fields/SolidMediaSingleField.tsx +6 -8
- package/dist/components/core/filter/fields/SolidSelectionDynamicField.js +3 -3
- package/dist/components/core/filter/fields/SolidSelectionDynamicField.js.map +1 -1
- package/dist/components/core/filter/fields/SolidSelectionDynamicField.tsx +5 -5
- package/dist/components/core/filter/fields/SolidSelectionStaticField.js +3 -3
- package/dist/components/core/filter/fields/SolidSelectionStaticField.js.map +1 -1
- package/dist/components/core/filter/fields/SolidSelectionStaticField.tsx +5 -5
- package/dist/components/core/filter/fields/SolidShortTextField.d.ts.map +1 -1
- package/dist/components/core/filter/fields/SolidShortTextField.js +3 -5
- package/dist/components/core/filter/fields/SolidShortTextField.js.map +1 -1
- package/dist/components/core/filter/fields/SolidShortTextField.tsx +6 -8
- package/dist/components/core/filter/fields/SolidTimeField.js +3 -3
- package/dist/components/core/filter/fields/SolidTimeField.js.map +1 -1
- package/dist/components/core/filter/fields/SolidTimeField.tsx +5 -5
- package/dist/components/core/filter/fields/SolidUuidField.js +5 -5
- package/dist/components/core/filter/fields/SolidUuidField.js.map +1 -1
- package/dist/components/core/filter/fields/SolidUuidField.tsx +8 -8
- package/dist/components/core/filter/fields/relations/SolidRelationManyToManyField.js +2 -2
- package/dist/components/core/filter/fields/relations/SolidRelationManyToManyField.js.map +1 -1
- package/dist/components/core/filter/fields/relations/SolidRelationManyToManyField.tsx +4 -4
- package/dist/components/core/filter/fields/relations/SolidRelationManyToOneField.js +3 -3
- package/dist/components/core/filter/fields/relations/SolidRelationManyToOneField.js.map +1 -1
- package/dist/components/core/filter/fields/relations/SolidRelationManyToOneField.tsx +5 -5
- package/dist/components/core/filter/fields/relations/SolidRelationOneToManyField.js +2 -2
- package/dist/components/core/filter/fields/relations/SolidRelationOneToManyField.js.map +1 -1
- package/dist/components/core/filter/fields/relations/SolidRelationOneToManyField.tsx +4 -4
- package/dist/components/core/filter/filterMatchMode.d.ts +17 -0
- package/dist/components/core/filter/filterMatchMode.d.ts.map +1 -0
- package/dist/components/core/filter/filterMatchMode.js +16 -0
- package/dist/components/core/filter/filterMatchMode.js.map +1 -0
- package/dist/components/core/filter/filterMatchMode.ts +18 -0
- package/dist/components/core/form/SolidFormActionHeader.d.ts +1 -1
- package/dist/components/core/form/SolidFormActionHeader.d.ts.map +1 -1
- package/dist/components/core/form/SolidFormActionHeader.js +60 -54
- package/dist/components/core/form/SolidFormActionHeader.js.map +1 -1
- package/dist/components/core/form/SolidFormActionHeader.tsx +356 -331
- package/dist/components/core/form/SolidFormFieldRender.js +2 -2
- package/dist/components/core/form/SolidFormFieldRender.js.map +1 -1
- package/dist/components/core/form/SolidFormFieldRender.tsx +2 -2
- package/dist/components/core/form/SolidFormFooter.d.ts.map +1 -1
- package/dist/components/core/form/SolidFormFooter.js +2 -2
- package/dist/components/core/form/SolidFormFooter.js.map +1 -1
- package/dist/components/core/form/SolidFormFooter.tsx +26 -18
- package/dist/components/core/form/SolidFormUserViewLayout.d.ts.map +1 -1
- package/dist/components/core/form/SolidFormUserViewLayout.js +3 -6
- package/dist/components/core/form/SolidFormUserViewLayout.js.map +1 -1
- package/dist/components/core/form/SolidFormUserViewLayout.tsx +8 -12
- package/dist/components/core/form/SolidFormView.d.ts +0 -3
- package/dist/components/core/form/SolidFormView.d.ts.map +1 -1
- package/dist/components/core/form/SolidFormView.js +62 -100
- package/dist/components/core/form/SolidFormView.js.map +1 -1
- package/dist/components/core/form/SolidFormView.tsx +140 -163
- package/dist/components/core/form/SolidFormViewContextMenuHeaderButton.d.ts +3 -1
- package/dist/components/core/form/SolidFormViewContextMenuHeaderButton.d.ts.map +1 -1
- package/dist/components/core/form/SolidFormViewContextMenuHeaderButton.js +22 -16
- package/dist/components/core/form/SolidFormViewContextMenuHeaderButton.js.map +1 -1
- package/dist/components/core/form/SolidFormViewContextMenuHeaderButton.tsx +46 -17
- package/dist/components/core/form/SolidFormViewNormalHeaderButton.d.ts +3 -1
- package/dist/components/core/form/SolidFormViewNormalHeaderButton.d.ts.map +1 -1
- package/dist/components/core/form/SolidFormViewNormalHeaderButton.js +21 -15
- package/dist/components/core/form/SolidFormViewNormalHeaderButton.js.map +1 -1
- package/dist/components/core/form/SolidFormViewNormalHeaderButton.tsx +39 -17
- package/dist/components/core/form/SolidFormViewShimmerLoading.d.ts.map +1 -1
- package/dist/components/core/form/SolidFormViewShimmerLoading.js +5 -2
- package/dist/components/core/form/SolidFormViewShimmerLoading.js.map +1 -1
- package/dist/components/core/form/SolidFormViewShimmerLoading.tsx +40 -37
- package/dist/components/core/form/fields/SolidBooleanField.d.ts +1 -1
- package/dist/components/core/form/fields/SolidBooleanField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidBooleanField.js +80 -69
- package/dist/components/core/form/fields/SolidBooleanField.js.map +1 -1
- package/dist/components/core/form/fields/SolidBooleanField.tsx +116 -145
- package/dist/components/core/form/fields/SolidDateField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidDateField.js +22 -49
- package/dist/components/core/form/fields/SolidDateField.js.map +1 -1
- package/dist/components/core/form/fields/SolidDateField.tsx +30 -72
- package/dist/components/core/form/fields/SolidDateTimeField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidDateTimeField.js +22 -48
- package/dist/components/core/form/fields/SolidDateTimeField.js.map +1 -1
- package/dist/components/core/form/fields/SolidDateTimeField.tsx +32 -68
- package/dist/components/core/form/fields/SolidDecimalField.d.ts +1 -1
- package/dist/components/core/form/fields/SolidDecimalField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidDecimalField.js +17 -17
- package/dist/components/core/form/fields/SolidDecimalField.js.map +1 -1
- package/dist/components/core/form/fields/SolidDecimalField.tsx +21 -24
- package/dist/components/core/form/fields/SolidEmailField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidEmailField.js +11 -15
- package/dist/components/core/form/fields/SolidEmailField.js.map +1 -1
- package/dist/components/core/form/fields/SolidEmailField.tsx +27 -33
- package/dist/components/core/form/fields/SolidIntegerField.d.ts +1 -1
- package/dist/components/core/form/fields/SolidIntegerField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidIntegerField.js +12 -9
- package/dist/components/core/form/fields/SolidIntegerField.js.map +1 -1
- package/dist/components/core/form/fields/SolidIntegerField.tsx +23 -24
- package/dist/components/core/form/fields/SolidJsonField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidJsonField.js +15 -10
- package/dist/components/core/form/fields/SolidJsonField.js.map +1 -1
- package/dist/components/core/form/fields/SolidJsonField.tsx +21 -20
- package/dist/components/core/form/fields/SolidLongTextField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidLongTextField.js +28 -44
- package/dist/components/core/form/fields/SolidLongTextField.js.map +1 -1
- package/dist/components/core/form/fields/SolidLongTextField.tsx +90 -119
- package/dist/components/core/form/fields/SolidMediaMultipleField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidMediaMultipleField.js +33 -41
- package/dist/components/core/form/fields/SolidMediaMultipleField.js.map +1 -1
- package/dist/components/core/form/fields/SolidMediaMultipleField.tsx +96 -94
- package/dist/components/core/form/fields/SolidMediaSingleField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidMediaSingleField.js +10 -23
- package/dist/components/core/form/fields/SolidMediaSingleField.js.map +1 -1
- package/dist/components/core/form/fields/SolidMediaSingleField.tsx +94 -91
- package/dist/components/core/form/fields/SolidPasswordField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidPasswordField.js +29 -32
- package/dist/components/core/form/fields/SolidPasswordField.js.map +1 -1
- package/dist/components/core/form/fields/SolidPasswordField.tsx +89 -88
- package/dist/components/core/form/fields/SolidRichTextField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidRichTextField.js +6 -8
- package/dist/components/core/form/fields/SolidRichTextField.js.map +1 -1
- package/dist/components/core/form/fields/SolidRichTextField.tsx +31 -46
- package/dist/components/core/form/fields/SolidSelectionDynamicField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidSelectionDynamicField.js +36 -24
- package/dist/components/core/form/fields/SolidSelectionDynamicField.js.map +1 -1
- package/dist/components/core/form/fields/SolidSelectionDynamicField.tsx +56 -61
- package/dist/components/core/form/fields/SolidSelectionStaticField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidSelectionStaticField.js +60 -74
- package/dist/components/core/form/fields/SolidSelectionStaticField.js.map +1 -1
- package/dist/components/core/form/fields/SolidSelectionStaticField.tsx +99 -167
- package/dist/components/core/form/fields/SolidShortTextField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidShortTextField.js +23 -36
- package/dist/components/core/form/fields/SolidShortTextField.js.map +1 -1
- package/dist/components/core/form/fields/SolidShortTextField.tsx +54 -119
- package/dist/components/core/form/fields/SolidTimeField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidTimeField.js +14 -14
- package/dist/components/core/form/fields/SolidTimeField.js.map +1 -1
- package/dist/components/core/form/fields/SolidTimeField.tsx +23 -26
- package/dist/components/core/form/fields/fieldEventUtils.d.ts +10 -0
- package/dist/components/core/form/fields/fieldEventUtils.d.ts.map +1 -0
- package/dist/components/core/form/fields/fieldEventUtils.js +11 -0
- package/dist/components/core/form/fields/fieldEventUtils.js.map +1 -0
- package/dist/components/core/form/fields/fieldEventUtils.ts +24 -0
- package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.d.ts.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.js +19 -12
- package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.js.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.tsx +57 -53
- package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.d.ts.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.js +37 -25
- package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.js.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.tsx +52 -34
- package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.d.ts.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.js +9 -8
- package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.js.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.tsx +15 -18
- package/dist/components/core/form/fields/relations/widgets/helpers/InlineRelationEntityDialog.d.ts.map +1 -1
- package/dist/components/core/form/fields/relations/widgets/helpers/InlineRelationEntityDialog.js +5 -8
- package/dist/components/core/form/fields/relations/widgets/helpers/InlineRelationEntityDialog.js.map +1 -1
- package/dist/components/core/form/fields/relations/widgets/helpers/InlineRelationEntityDialog.tsx +20 -13
- package/dist/components/core/form/fields/solidFields.module.css +192 -1
- package/dist/components/core/form/fields/widgets/SolidAiInteractionMetadataFieldFormWidget.d.ts.map +1 -1
- package/dist/components/core/form/fields/widgets/SolidAiInteractionMetadataFieldFormWidget.js +76 -56
- package/dist/components/core/form/fields/widgets/SolidAiInteractionMetadataFieldFormWidget.js.map +1 -1
- package/dist/components/core/form/fields/widgets/SolidAiInteractionMetadataFieldFormWidget.tsx +106 -120
- package/dist/components/core/form/fields/widgets/SolidIconEditWidget.js +8 -8
- package/dist/components/core/form/fields/widgets/SolidIconEditWidget.js.map +1 -1
- package/dist/components/core/form/fields/widgets/SolidIconEditWidget.tsx +16 -16
- package/dist/components/core/form/fields/widgets/SolidRelationFieldAvatarFormWidget.d.ts.map +1 -1
- package/dist/components/core/form/fields/widgets/SolidRelationFieldAvatarFormWidget.js.map +1 -1
- package/dist/components/core/form/fields/widgets/SolidRelationFieldAvatarFormWidget.tsx +0 -5
- package/dist/components/core/form/fields/widgets/SolidS3FileViewerWidget.d.ts.map +1 -1
- package/dist/components/core/form/fields/widgets/SolidS3FileViewerWidget.js +9 -8
- package/dist/components/core/form/fields/widgets/SolidS3FileViewerWidget.js.map +1 -1
- package/dist/components/core/form/fields/widgets/SolidS3FileViewerWidget.tsx +38 -29
- package/dist/components/core/form/fields/widgets/SolidShortTextFieldAvatarWidget.d.ts.map +1 -1
- package/dist/components/core/form/fields/widgets/SolidShortTextFieldAvatarWidget.js.map +1 -1
- package/dist/components/core/form/fields/widgets/SolidShortTextFieldAvatarWidget.tsx +1 -6
- package/dist/components/core/kanban/KanbanBoard.d.ts +1 -1
- package/dist/components/core/kanban/KanbanBoard.d.ts.map +1 -1
- package/dist/components/core/kanban/KanbanBoard.js +38 -8
- package/dist/components/core/kanban/KanbanBoard.js.map +1 -1
- package/dist/components/core/kanban/KanbanBoard.tsx +55 -9
- package/dist/components/core/kanban/KanbanCard.d.ts +7 -0
- package/dist/components/core/kanban/KanbanCard.d.ts.map +1 -1
- package/dist/components/core/kanban/KanbanCard.js +22 -162
- package/dist/components/core/kanban/KanbanCard.js.map +1 -1
- package/dist/components/core/kanban/KanbanCard.tsx +64 -222
- package/dist/components/core/kanban/KanbanColumn.d.ts +3 -2
- package/dist/components/core/kanban/KanbanColumn.d.ts.map +1 -1
- package/dist/components/core/kanban/KanbanColumn.js +8 -14
- package/dist/components/core/kanban/KanbanColumn.js.map +1 -1
- package/dist/components/core/kanban/KanbanColumn.tsx +59 -80
- package/dist/components/core/kanban/KanbanUserViewLayout.d.ts.map +1 -1
- package/dist/components/core/kanban/KanbanUserViewLayout.js +4 -7
- package/dist/components/core/kanban/KanbanUserViewLayout.js.map +1 -1
- package/dist/components/core/kanban/KanbanUserViewLayout.tsx +15 -16
- package/dist/components/core/kanban/SolidKanbanView.d.ts +0 -2
- package/dist/components/core/kanban/SolidKanbanView.d.ts.map +1 -1
- package/dist/components/core/kanban/SolidKanbanView.js +121 -74
- package/dist/components/core/kanban/SolidKanbanView.js.map +1 -1
- package/dist/components/core/kanban/SolidKanbanView.tsx +221 -139
- package/dist/components/core/kanban/SolidKanbanViewConfigure.d.ts +1 -1
- package/dist/components/core/kanban/SolidKanbanViewConfigure.d.ts.map +1 -1
- package/dist/components/core/kanban/SolidKanbanViewConfigure.js +111 -52
- package/dist/components/core/kanban/SolidKanbanViewConfigure.js.map +1 -1
- package/dist/components/core/kanban/SolidKanbanViewConfigure.tsx +239 -122
- package/dist/components/core/list/ListViewRowActionPopup.d.ts.map +1 -1
- package/dist/components/core/list/ListViewRowActionPopup.js +3 -2
- package/dist/components/core/list/ListViewRowActionPopup.js.map +1 -1
- package/dist/components/core/list/ListViewRowActionPopup.tsx +8 -5
- package/dist/components/core/list/PLAN.md +22 -2
- package/dist/components/core/list/SolidColumnSelector/SolidListColumnSelector.d.ts +1 -1
- package/dist/components/core/list/SolidColumnSelector/SolidListColumnSelector.d.ts.map +1 -1
- package/dist/components/core/list/SolidColumnSelector/SolidListColumnSelector.js +3 -8
- package/dist/components/core/list/SolidColumnSelector/SolidListColumnSelector.js.map +1 -1
- package/dist/components/core/list/SolidColumnSelector/SolidListColumnSelector.tsx +19 -24
- package/dist/components/core/list/SolidDataTable.d.ts.map +1 -1
- package/dist/components/core/list/SolidDataTable.js +7 -4
- package/dist/components/core/list/SolidDataTable.js.map +1 -1
- package/dist/components/core/list/SolidDataTable.tsx +8 -5
- package/dist/components/core/list/SolidEmptyListViewPlaceholder.d.ts +1 -1
- package/dist/components/core/list/SolidEmptyListViewPlaceholder.d.ts.map +1 -1
- package/dist/components/core/list/SolidEmptyListViewPlaceholder.js +51 -30
- package/dist/components/core/list/SolidEmptyListViewPlaceholder.js.map +1 -1
- package/dist/components/core/list/SolidEmptyListViewPlaceholder.tsx +122 -90
- package/dist/components/core/list/SolidListView.d.ts +5 -12
- package/dist/components/core/list/SolidListView.d.ts.map +1 -1
- package/dist/components/core/list/SolidListView.js +363 -426
- package/dist/components/core/list/SolidListView.js.map +1 -1
- package/dist/components/core/list/SolidListView.tsx +713 -899
- package/dist/components/core/list/SolidListViewConfigure.d.ts.map +1 -1
- package/dist/components/core/list/SolidListViewConfigure.js +50 -61
- package/dist/components/core/list/SolidListViewConfigure.js.map +1 -1
- package/dist/components/core/list/SolidListViewConfigure.tsx +237 -215
- package/dist/components/core/list/SolidListViewHeaderButton.d.ts.map +1 -1
- package/dist/components/core/list/SolidListViewHeaderButton.js +6 -5
- package/dist/components/core/list/SolidListViewHeaderButton.js.map +1 -1
- package/dist/components/core/list/SolidListViewHeaderButton.tsx +9 -7
- package/dist/components/core/list/SolidListViewHeaderContextMenuButton.d.ts +1 -1
- package/dist/components/core/list/SolidListViewHeaderContextMenuButton.d.ts.map +1 -1
- package/dist/components/core/list/SolidListViewHeaderContextMenuButton.js +12 -7
- package/dist/components/core/list/SolidListViewHeaderContextMenuButton.js.map +1 -1
- package/dist/components/core/list/SolidListViewHeaderContextMenuButton.tsx +15 -13
- package/dist/components/core/list/SolidListViewRowActionMenuItem.d.ts +2 -0
- package/dist/components/core/list/SolidListViewRowActionMenuItem.d.ts.map +1 -0
- package/dist/components/core/list/SolidListViewRowActionMenuItem.js +42 -0
- package/dist/components/core/list/SolidListViewRowActionMenuItem.js.map +1 -0
- package/dist/components/core/list/SolidListViewRowActionMenuItem.tsx +43 -0
- package/dist/components/core/list/SolidListViewRowActionsMenu.d.ts +2 -0
- package/dist/components/core/list/SolidListViewRowActionsMenu.d.ts.map +1 -0
- package/dist/components/core/list/SolidListViewRowActionsMenu.js +32 -0
- package/dist/components/core/list/SolidListViewRowActionsMenu.js.map +1 -0
- package/dist/components/core/list/SolidListViewRowActionsMenu.tsx +106 -0
- package/dist/components/core/list/SolidListViewShimmerLoading.d.ts.map +1 -1
- package/dist/components/core/list/SolidListViewShimmerLoading.js +3 -4
- package/dist/components/core/list/SolidListViewShimmerLoading.js.map +1 -1
- package/dist/components/core/list/SolidListViewShimmerLoading.tsx +4 -72
- package/dist/components/core/list/SolidListViewWrapper.module.css +82 -41
- package/dist/components/core/list/SolidManyToOneFilterElement.d.ts.map +1 -1
- package/dist/components/core/list/SolidManyToOneFilterElement.js +2 -2
- package/dist/components/core/list/SolidManyToOneFilterElement.js.map +1 -1
- package/dist/components/core/list/SolidManyToOneFilterElement.tsx +5 -5
- package/dist/components/core/list/SolidSelectionDynamicFilterElement.d.ts.map +1 -1
- package/dist/components/core/list/SolidSelectionDynamicFilterElement.js +2 -2
- package/dist/components/core/list/SolidSelectionDynamicFilterElement.js.map +1 -1
- package/dist/components/core/list/SolidSelectionDynamicFilterElement.tsx +5 -4
- package/dist/components/core/list/SolidSelectionStaticFilterElement.d.ts.map +1 -1
- package/dist/components/core/list/SolidSelectionStaticFilterElement.js +2 -2
- package/dist/components/core/list/SolidSelectionStaticFilterElement.js.map +1 -1
- package/dist/components/core/list/SolidSelectionStaticFilterElement.tsx +5 -4
- package/dist/components/core/list/SolidTableRowCell.d.ts.map +1 -1
- package/dist/components/core/list/SolidTableRowCell.js +4 -3
- package/dist/components/core/list/SolidTableRowCell.js.map +1 -1
- package/dist/components/core/list/SolidTableRowCell.tsx +11 -8
- package/dist/components/core/list/columns/SolidBooleanColumn.js +2 -2
- package/dist/components/core/list/columns/SolidBooleanColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidBooleanColumn.tsx +2 -2
- package/dist/components/core/list/columns/SolidDateColumn.d.ts +1 -0
- package/dist/components/core/list/columns/SolidDateColumn.d.ts.map +1 -1
- package/dist/components/core/list/columns/SolidDateColumn.js +10 -3
- package/dist/components/core/list/columns/SolidDateColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidDateColumn.tsx +12 -3
- package/dist/components/core/list/columns/SolidDatetimeColumn.js +1 -1
- package/dist/components/core/list/columns/SolidDatetimeColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidDatetimeColumn.tsx +1 -1
- package/dist/components/core/list/columns/SolidExternalIdColumn.js +1 -1
- package/dist/components/core/list/columns/SolidExternalIdColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidExternalIdColumn.tsx +1 -1
- package/dist/components/core/list/columns/SolidIdColumn.js +2 -2
- package/dist/components/core/list/columns/SolidIdColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidIdColumn.tsx +3 -3
- package/dist/components/core/list/columns/SolidIntColumn.d.ts.map +1 -1
- package/dist/components/core/list/columns/SolidIntColumn.js +2 -2
- package/dist/components/core/list/columns/SolidIntColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidIntColumn.tsx +4 -2
- package/dist/components/core/list/columns/SolidMediaMultipleColumn.d.ts.map +1 -1
- package/dist/components/core/list/columns/SolidMediaMultipleColumn.js +7 -10
- package/dist/components/core/list/columns/SolidMediaMultipleColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidMediaMultipleColumn.tsx +13 -18
- package/dist/components/core/list/columns/SolidMediaSingleColumn.d.ts.map +1 -1
- package/dist/components/core/list/columns/SolidMediaSingleColumn.js +4 -4
- package/dist/components/core/list/columns/SolidMediaSingleColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidMediaSingleColumn.tsx +4 -4
- package/dist/components/core/list/columns/SolidSelectionDynamicColumn.js +1 -1
- package/dist/components/core/list/columns/SolidSelectionDynamicColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidSelectionDynamicColumn.tsx +1 -1
- package/dist/components/core/list/columns/SolidSelectionStaticColumn.js +1 -1
- package/dist/components/core/list/columns/SolidSelectionStaticColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidSelectionStaticColumn.tsx +1 -1
- package/dist/components/core/list/columns/SolidShortTextColumn.js +1 -1
- package/dist/components/core/list/columns/SolidShortTextColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidShortTextColumn.tsx +1 -1
- package/dist/components/core/list/columns/SolidTimeColumn.js +1 -1
- package/dist/components/core/list/columns/SolidTimeColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidTimeColumn.tsx +1 -1
- package/dist/components/core/list/columns/SolidUuidColumn.js +1 -1
- package/dist/components/core/list/columns/SolidUuidColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidUuidColumn.tsx +1 -1
- package/dist/components/core/list/columns/relations/SolidRelationManyToManyColumn.js +1 -1
- package/dist/components/core/list/columns/relations/SolidRelationManyToManyColumn.js.map +1 -1
- package/dist/components/core/list/columns/relations/SolidRelationManyToManyColumn.tsx +1 -1
- package/dist/components/core/list/columns/relations/SolidRelationManyToOneColumn.d.ts.map +1 -1
- package/dist/components/core/list/columns/relations/SolidRelationManyToOneColumn.js +5 -7
- package/dist/components/core/list/columns/relations/SolidRelationManyToOneColumn.js.map +1 -1
- package/dist/components/core/list/columns/relations/SolidRelationManyToOneColumn.tsx +9 -11
- package/dist/components/core/list/columns/relations/SolidRelationOneToManyColumn.js +1 -1
- package/dist/components/core/list/columns/relations/SolidRelationOneToManyColumn.js.map +1 -1
- package/dist/components/core/list/columns/relations/SolidRelationOneToManyColumn.tsx +1 -1
- package/dist/components/core/locales/SolidChatterLocaleTabView.d.ts.map +1 -1
- package/dist/components/core/locales/SolidChatterLocaleTabView.js +50 -6
- package/dist/components/core/locales/SolidChatterLocaleTabView.js.map +1 -1
- package/dist/components/core/locales/SolidChatterLocaleTabView.tsx +78 -43
- package/dist/components/core/locales/SolidLocale.d.ts.map +1 -1
- package/dist/components/core/locales/SolidLocale.js +4 -8
- package/dist/components/core/locales/SolidLocale.js.map +1 -1
- package/dist/components/core/locales/SolidLocale.tsx +5 -11
- package/dist/components/core/locales/solid-locale.css +44 -23
- package/dist/components/core/model/CreateModel.d.ts.map +1 -1
- package/dist/components/core/model/CreateModel.js +58 -63
- package/dist/components/core/model/CreateModel.js.map +1 -1
- package/dist/components/core/model/CreateModel.tsx +178 -212
- package/dist/components/core/model/FieldMetaData.d.ts.map +1 -1
- package/dist/components/core/model/FieldMetaData.js +29 -40
- package/dist/components/core/model/FieldMetaData.js.map +1 -1
- package/dist/components/core/model/FieldMetaData.tsx +128 -100
- package/dist/components/core/model/FieldMetaDataForm.d.ts.map +1 -1
- package/dist/components/core/model/FieldMetaDataForm.js +521 -270
- package/dist/components/core/model/FieldMetaDataForm.js.map +1 -1
- package/dist/components/core/model/FieldMetaDataForm.tsx +1142 -956
- package/dist/components/core/model/FieldSelector.d.ts +5 -1
- package/dist/components/core/model/FieldSelector.d.ts.map +1 -1
- package/dist/components/core/model/FieldSelector.js +52 -30
- package/dist/components/core/model/FieldSelector.js.map +1 -1
- package/dist/components/core/model/FieldSelector.tsx +119 -57
- package/dist/components/core/model/ModelListViewData.d.ts.map +1 -1
- package/dist/components/core/model/ModelListViewData.js +110 -91
- package/dist/components/core/model/ModelListViewData.js.map +1 -1
- package/dist/components/core/model/ModelListViewData.tsx +172 -220
- package/dist/components/core/model/ModelMetaData.d.ts.map +1 -1
- package/dist/components/core/model/ModelMetaData.js +105 -61
- package/dist/components/core/model/ModelMetaData.js.map +1 -1
- package/dist/components/core/model/ModelMetaData.tsx +277 -457
- package/dist/components/core/module/CreateModule.d.ts +1 -1
- package/dist/components/core/module/CreateModule.d.ts.map +1 -1
- package/dist/components/core/module/CreateModule.js +33 -54
- package/dist/components/core/module/CreateModule.js.map +1 -1
- package/dist/components/core/module/CreateModule.tsx +273 -299
- package/dist/components/core/module/ModuleListViewData.d.ts.map +1 -1
- package/dist/components/core/module/ModuleListViewData.js +104 -135
- package/dist/components/core/module/ModuleListViewData.js.map +1 -1
- package/dist/components/core/module/ModuleListViewData.tsx +172 -278
- package/dist/components/core/solid-ai/SolidAiChat.d.ts.map +1 -1
- package/dist/components/core/solid-ai/SolidAiChat.js +25 -20
- package/dist/components/core/solid-ai/SolidAiChat.js.map +1 -1
- package/dist/components/core/solid-ai/SolidAiChat.tsx +80 -31
- package/dist/components/core/solid-ai/SolidAiMainWrapper.d.ts.map +1 -1
- package/dist/components/core/solid-ai/SolidAiMainWrapper.js +5 -2
- package/dist/components/core/solid-ai/SolidAiMainWrapper.js.map +1 -1
- package/dist/components/core/solid-ai/SolidAiMainWrapper.tsx +7 -2
- package/dist/components/core/tree/SolidTreeTable.d.ts +73 -0
- package/dist/components/core/tree/SolidTreeTable.d.ts.map +1 -0
- package/dist/components/core/tree/SolidTreeTable.js +275 -0
- package/dist/components/core/tree/SolidTreeTable.js.map +1 -0
- package/dist/components/core/tree/SolidTreeTable.tsx +522 -0
- package/dist/components/core/tree/SolidTreeView.d.ts.map +1 -1
- package/dist/components/core/tree/SolidTreeView.js +266 -244
- package/dist/components/core/tree/SolidTreeView.js.map +1 -1
- package/dist/components/core/tree/SolidTreeView.tsx +606 -625
- package/dist/components/core/users/CreateUser.d.ts.map +1 -1
- package/dist/components/core/users/CreateUser.js +81 -143
- package/dist/components/core/users/CreateUser.js.map +1 -1
- package/dist/components/core/users/CreateUser.tsx +217 -317
- package/dist/components/core/users/CreateUserRole.d.ts.map +1 -1
- package/dist/components/core/users/CreateUserRole.js +14 -21
- package/dist/components/core/users/CreateUserRole.js.map +1 -1
- package/dist/components/core/users/CreateUserRole.tsx +16 -33
- package/dist/components/core/users/UserListView.d.ts.map +1 -1
- package/dist/components/core/users/UserListView.js +95 -92
- package/dist/components/core/users/UserListView.js.map +1 -1
- package/dist/components/core/users/UserListView.tsx +286 -330
- package/dist/components/layout/AdminLayout.d.ts.map +1 -1
- package/dist/components/layout/AdminLayout.js +4 -12
- package/dist/components/layout/AdminLayout.js.map +1 -1
- package/dist/components/layout/AdminLayout.tsx +22 -31
- package/dist/components/layout/AppConfig.d.ts +2 -2
- package/dist/components/layout/AppConfig.d.ts.map +1 -1
- package/dist/components/layout/AppConfig.js +9 -47
- package/dist/components/layout/AppConfig.js.map +1 -1
- package/dist/components/layout/AppConfig.tsx +10 -98
- package/dist/components/layout/AppSidebar.d.ts.map +1 -1
- package/dist/components/layout/AppSidebar.js +149 -86
- package/dist/components/layout/AppSidebar.js.map +1 -1
- package/dist/components/layout/AppSidebar.tsx +281 -164
- package/dist/components/layout/DashboardHeader.d.ts.map +1 -1
- package/dist/components/layout/DashboardHeader.js +11 -17
- package/dist/components/layout/DashboardHeader.js.map +1 -1
- package/dist/components/layout/DashboardHeader.tsx +40 -35
- package/dist/components/layout/FilterMenu.d.ts.map +1 -1
- package/dist/components/layout/FilterMenu.js +4 -6
- package/dist/components/layout/FilterMenu.js.map +1 -1
- package/dist/components/layout/FilterMenu.tsx +21 -19
- package/dist/components/layout/GlobalSearch.d.ts.map +1 -1
- package/dist/components/layout/GlobalSearch.js +2 -6
- package/dist/components/layout/GlobalSearch.js.map +1 -1
- package/dist/components/layout/GlobalSearch.tsx +7 -13
- package/dist/components/layout/Layout.d.ts.map +1 -1
- package/dist/components/layout/Layout.js +11 -130
- package/dist/components/layout/Layout.js.map +1 -1
- package/dist/components/layout/Layout.tsx +18 -161
- package/dist/components/layout/ListingHeader.d.ts.map +1 -1
- package/dist/components/layout/ListingHeader.js +4 -8
- package/dist/components/layout/ListingHeader.js.map +1 -1
- package/dist/components/layout/ListingHeader.tsx +3 -9
- package/dist/components/layout/SolidAiStudioLayout.d.ts.map +1 -1
- package/dist/components/layout/SolidAiStudioLayout.js +14 -63
- package/dist/components/layout/SolidAiStudioLayout.js.map +1 -1
- package/dist/components/layout/SolidAiStudioLayout.tsx +75 -187
- package/dist/components/layout/UserSidebar.d.ts.map +1 -1
- package/dist/components/layout/UserSidebar.js +5 -4
- package/dist/components/layout/UserSidebar.js.map +1 -1
- package/dist/components/layout/UserSidebar.tsx +6 -5
- package/dist/components/layout/context/layoutcontext.d.ts.map +1 -1
- package/dist/components/layout/context/layoutcontext.js +31 -6
- package/dist/components/layout/context/layoutcontext.js.map +1 -1
- package/dist/components/layout/context/layoutcontext.tsx +31 -2
- package/dist/components/layout/navbar-one.d.ts.map +1 -1
- package/dist/components/layout/navbar-one.js +3 -8
- package/dist/components/layout/navbar-one.js.map +1 -1
- package/dist/components/layout/navbar-one.tsx +24 -15
- package/dist/components/layout/navbar-two-menu.d.ts.map +1 -1
- package/dist/components/layout/navbar-two-menu.js +16 -2
- package/dist/components/layout/navbar-two-menu.js.map +1 -1
- package/dist/components/layout/navbar-two-menu.tsx +50 -13
- package/dist/components/layout/user-profile-menu.d.ts.map +1 -1
- package/dist/components/layout/user-profile-menu.js +74 -59
- package/dist/components/layout/user-profile-menu.js.map +1 -1
- package/dist/components/layout/user-profile-menu.tsx +206 -143
- package/dist/components/shad-cn-ui/SolidAccordion.d.ts +7 -0
- package/dist/components/shad-cn-ui/SolidAccordion.d.ts.map +1 -0
- package/dist/components/shad-cn-ui/SolidAccordion.js +47 -0
- package/dist/components/shad-cn-ui/SolidAccordion.js.map +1 -0
- package/dist/components/shad-cn-ui/SolidAccordion.tsx +41 -0
- package/dist/components/shad-cn-ui/SolidAutocomplete.d.ts +12 -1
- package/dist/components/shad-cn-ui/SolidAutocomplete.d.ts.map +1 -1
- package/dist/components/shad-cn-ui/SolidAutocomplete.js +31 -15
- package/dist/components/shad-cn-ui/SolidAutocomplete.js.map +1 -1
- package/dist/components/shad-cn-ui/SolidAutocomplete.tsx +60 -24
- package/dist/components/shad-cn-ui/SolidButton.d.ts +10 -2
- package/dist/components/shad-cn-ui/SolidButton.d.ts.map +1 -1
- package/dist/components/shad-cn-ui/SolidButton.js +18 -2
- package/dist/components/shad-cn-ui/SolidButton.js.map +1 -1
- package/dist/components/shad-cn-ui/SolidButton.tsx +54 -8
- package/dist/components/shad-cn-ui/SolidCheckbox.d.ts +7 -0
- package/dist/components/shad-cn-ui/SolidCheckbox.d.ts.map +1 -0
- package/dist/components/shad-cn-ui/SolidCheckbox.js +35 -0
- package/dist/components/shad-cn-ui/SolidCheckbox.js.map +1 -0
- package/dist/components/shad-cn-ui/SolidCheckbox.tsx +19 -0
- package/dist/components/shad-cn-ui/SolidCodeEditor.d.ts +12 -0
- package/dist/components/shad-cn-ui/SolidCodeEditor.d.ts.map +1 -0
- package/dist/components/shad-cn-ui/SolidCodeEditor.js +13 -0
- package/dist/components/shad-cn-ui/SolidCodeEditor.js.map +1 -0
- package/dist/components/shad-cn-ui/SolidCodeEditor.tsx +38 -0
- package/dist/components/shad-cn-ui/SolidConfirmDialog.d.ts +14 -0
- package/dist/components/shad-cn-ui/SolidConfirmDialog.d.ts.map +1 -0
- package/dist/components/shad-cn-ui/SolidConfirmDialog.js +8 -0
- package/dist/components/shad-cn-ui/SolidConfirmDialog.js.map +1 -0
- package/dist/components/shad-cn-ui/SolidConfirmDialog.tsx +50 -0
- package/dist/components/shad-cn-ui/SolidDatePicker.d.ts +10 -0
- package/dist/components/shad-cn-ui/SolidDatePicker.d.ts.map +1 -0
- package/dist/components/shad-cn-ui/SolidDatePicker.js +65 -0
- package/dist/components/shad-cn-ui/SolidDatePicker.js.map +1 -0
- package/dist/components/shad-cn-ui/SolidDatePicker.tsx +72 -0
- package/dist/components/shad-cn-ui/SolidDialog.d.ts +40 -0
- package/dist/components/shad-cn-ui/SolidDialog.d.ts.map +1 -0
- package/dist/components/shad-cn-ui/SolidDialog.js +61 -0
- package/dist/components/shad-cn-ui/SolidDialog.js.map +1 -0
- package/dist/components/shad-cn-ui/SolidDialog.tsx +138 -0
- package/dist/components/shad-cn-ui/SolidDivider.d.ts +4 -0
- package/dist/components/shad-cn-ui/SolidDivider.d.ts.map +1 -0
- package/dist/components/shad-cn-ui/SolidDivider.js +6 -0
- package/dist/components/shad-cn-ui/SolidDivider.js.map +1 -0
- package/dist/components/shad-cn-ui/SolidDivider.tsx +5 -0
- package/dist/components/shad-cn-ui/SolidDropdownMenu.d.ts +15 -0
- package/dist/components/shad-cn-ui/SolidDropdownMenu.d.ts.map +1 -0
- package/dist/components/shad-cn-ui/SolidDropdownMenu.js +70 -0
- package/dist/components/shad-cn-ui/SolidDropdownMenu.js.map +1 -0
- package/dist/components/shad-cn-ui/SolidDropdownMenu.tsx +124 -0
- package/dist/components/shad-cn-ui/SolidIcon.d.ts +92 -0
- package/dist/components/shad-cn-ui/SolidIcon.d.ts.map +1 -0
- package/dist/components/shad-cn-ui/SolidIcon.js +148 -0
- package/dist/components/shad-cn-ui/SolidIcon.js.map +1 -0
- package/dist/components/shad-cn-ui/SolidIcon.tsx +220 -0
- package/dist/components/shad-cn-ui/SolidInput.d.ts +1 -1
- package/dist/components/shad-cn-ui/SolidInput.d.ts.map +1 -1
- package/dist/components/shad-cn-ui/SolidInput.js +4 -3
- package/dist/components/shad-cn-ui/SolidInput.js.map +1 -1
- package/dist/components/shad-cn-ui/SolidInput.tsx +6 -4
- package/dist/components/shad-cn-ui/SolidLightbox.d.ts +19 -0
- package/dist/components/shad-cn-ui/SolidLightbox.d.ts.map +1 -0
- package/dist/components/shad-cn-ui/SolidLightbox.js +160 -0
- package/dist/components/shad-cn-ui/SolidLightbox.js.map +1 -0
- package/dist/components/shad-cn-ui/SolidLightbox.tsx +281 -0
- package/dist/components/shad-cn-ui/SolidMessage.d.ts +10 -0
- package/dist/components/shad-cn-ui/SolidMessage.d.ts.map +1 -0
- package/dist/components/shad-cn-ui/SolidMessage.js +13 -0
- package/dist/components/shad-cn-ui/SolidMessage.js.map +1 -0
- package/dist/components/shad-cn-ui/SolidMessage.tsx +20 -0
- package/dist/components/shad-cn-ui/SolidOtpInput.d.ts +12 -0
- package/dist/components/shad-cn-ui/SolidOtpInput.d.ts.map +1 -0
- package/dist/components/shad-cn-ui/SolidOtpInput.js +143 -0
- package/dist/components/shad-cn-ui/SolidOtpInput.js.map +1 -0
- package/dist/components/shad-cn-ui/SolidOtpInput.tsx +149 -0
- package/dist/components/shad-cn-ui/SolidPanel.d.ts +11 -0
- package/dist/components/shad-cn-ui/SolidPanel.d.ts.map +1 -0
- package/dist/components/shad-cn-ui/SolidPanel.js +17 -0
- package/dist/components/shad-cn-ui/SolidPanel.js.map +1 -0
- package/dist/components/shad-cn-ui/SolidPanel.tsx +36 -0
- package/dist/components/shad-cn-ui/SolidPasswordInput.d.ts +7 -0
- package/dist/components/shad-cn-ui/SolidPasswordInput.d.ts.map +1 -0
- package/dist/components/shad-cn-ui/SolidPasswordInput.js +39 -0
- package/dist/components/shad-cn-ui/SolidPasswordInput.js.map +1 -0
- package/dist/components/shad-cn-ui/SolidPasswordInput.tsx +31 -0
- package/dist/components/shad-cn-ui/SolidPopover.d.ts +19 -0
- package/dist/components/shad-cn-ui/SolidPopover.d.ts.map +1 -0
- package/dist/components/shad-cn-ui/SolidPopover.js +110 -0
- package/dist/components/shad-cn-ui/SolidPopover.js.map +1 -0
- package/dist/components/shad-cn-ui/SolidPopover.tsx +149 -0
- package/dist/components/shad-cn-ui/SolidProgressBar.d.ts +10 -0
- package/dist/components/shad-cn-ui/SolidProgressBar.d.ts.map +1 -0
- package/dist/components/shad-cn-ui/SolidProgressBar.js +14 -0
- package/dist/components/shad-cn-ui/SolidProgressBar.js.map +1 -0
- package/dist/components/shad-cn-ui/SolidProgressBar.tsx +29 -0
- package/dist/components/shad-cn-ui/SolidRadioGroup.d.ts +17 -0
- package/dist/components/shad-cn-ui/SolidRadioGroup.d.ts.map +1 -0
- package/dist/components/shad-cn-ui/SolidRadioGroup.js +13 -0
- package/dist/components/shad-cn-ui/SolidRadioGroup.js.map +1 -0
- package/dist/components/shad-cn-ui/SolidRadioGroup.tsx +50 -0
- package/dist/components/shad-cn-ui/SolidRichTextEditor.d.ts +17 -0
- package/dist/components/shad-cn-ui/SolidRichTextEditor.d.ts.map +1 -0
- package/dist/components/shad-cn-ui/SolidRichTextEditor.js +109 -0
- package/dist/components/shad-cn-ui/SolidRichTextEditor.js.map +1 -0
- package/dist/components/shad-cn-ui/SolidRichTextEditor.tsx +146 -0
- package/dist/components/shad-cn-ui/SolidSegmentedControl.d.ts +17 -0
- package/dist/components/shad-cn-ui/SolidSegmentedControl.d.ts.map +1 -0
- package/dist/components/shad-cn-ui/SolidSegmentedControl.js +34 -0
- package/dist/components/shad-cn-ui/SolidSegmentedControl.js.map +1 -0
- package/dist/components/shad-cn-ui/SolidSegmentedControl.tsx +60 -0
- package/dist/components/shad-cn-ui/SolidSelect.d.ts.map +1 -1
- package/dist/components/shad-cn-ui/SolidSelect.js +2 -1
- package/dist/components/shad-cn-ui/SolidSelect.js.map +1 -1
- package/dist/components/shad-cn-ui/SolidSelect.tsx +2 -2
- package/dist/components/shad-cn-ui/SolidSlider.d.ts +12 -0
- package/dist/components/shad-cn-ui/SolidSlider.d.ts.map +1 -0
- package/dist/components/shad-cn-ui/SolidSlider.js +13 -0
- package/dist/components/shad-cn-ui/SolidSlider.js.map +1 -0
- package/dist/components/shad-cn-ui/SolidSlider.tsx +30 -0
- package/dist/components/shad-cn-ui/SolidSpinner.d.ts +8 -0
- package/dist/components/shad-cn-ui/SolidSpinner.d.ts.map +1 -0
- package/dist/components/shad-cn-ui/SolidSpinner.js +14 -0
- package/dist/components/shad-cn-ui/SolidSpinner.js.map +1 -0
- package/dist/components/shad-cn-ui/SolidSpinner.tsx +21 -0
- package/dist/components/shad-cn-ui/SolidSwitch.d.ts +10 -0
- package/dist/components/shad-cn-ui/SolidSwitch.d.ts.map +1 -0
- package/dist/components/shad-cn-ui/SolidSwitch.js +18 -0
- package/dist/components/shad-cn-ui/SolidSwitch.js.map +1 -0
- package/dist/components/shad-cn-ui/SolidSwitch.tsx +34 -0
- package/dist/components/shad-cn-ui/SolidTabs.d.ts +3 -1
- package/dist/components/shad-cn-ui/SolidTabs.d.ts.map +1 -1
- package/dist/components/shad-cn-ui/SolidTabs.js +4 -4
- package/dist/components/shad-cn-ui/SolidTabs.js.map +1 -1
- package/dist/components/shad-cn-ui/SolidTabs.tsx +16 -4
- package/dist/components/shad-cn-ui/SolidTag.d.ts +9 -0
- package/dist/components/shad-cn-ui/SolidTag.d.ts.map +1 -0
- package/dist/components/shad-cn-ui/SolidTag.js +13 -0
- package/dist/components/shad-cn-ui/SolidTag.js.map +1 -0
- package/dist/components/shad-cn-ui/SolidTag.tsx +15 -0
- package/dist/components/shad-cn-ui/SolidTextarea.d.ts +5 -0
- package/dist/components/shad-cn-ui/SolidTextarea.d.ts.map +1 -0
- package/dist/components/shad-cn-ui/SolidTextarea.js +35 -0
- package/dist/components/shad-cn-ui/SolidTextarea.js.map +1 -0
- package/dist/components/shad-cn-ui/SolidTextarea.tsx +11 -0
- package/dist/components/shad-cn-ui/SolidToast.d.ts +13 -0
- package/dist/components/shad-cn-ui/SolidToast.d.ts.map +1 -0
- package/dist/components/shad-cn-ui/SolidToast.js +34 -0
- package/dist/components/shad-cn-ui/SolidToast.js.map +1 -0
- package/dist/components/shad-cn-ui/SolidToast.tsx +55 -0
- package/dist/components/shad-cn-ui/SolidTooltip.d.ts +22 -0
- package/dist/components/shad-cn-ui/SolidTooltip.d.ts.map +1 -0
- package/dist/components/shad-cn-ui/SolidTooltip.js +22 -0
- package/dist/components/shad-cn-ui/SolidTooltip.js.map +1 -0
- package/dist/components/shad-cn-ui/SolidTooltip.tsx +65 -0
- package/dist/components/shad-cn-ui/index.d.ts +26 -0
- package/dist/components/shad-cn-ui/index.d.ts.map +1 -1
- package/dist/components/shad-cn-ui/index.js +26 -0
- package/dist/components/shad-cn-ui/index.js.map +1 -1
- package/dist/components/shad-cn-ui/index.ts +48 -0
- package/dist/helpers/mediaType.d.ts +3 -0
- package/dist/helpers/mediaType.d.ts.map +1 -0
- package/dist/helpers/mediaType.js +19 -0
- package/dist/helpers/mediaType.js.map +1 -0
- package/dist/helpers/mediaType.ts +23 -0
- package/dist/helpers/registry.d.ts +3 -4
- package/dist/helpers/registry.d.ts.map +1 -1
- package/dist/helpers/registry.js +99 -90
- package/dist/helpers/registry.js.map +1 -1
- package/dist/helpers/registry.ts +109 -92
- package/dist/helpers/routePaths.js +1 -1
- package/dist/helpers/routePaths.js.map +1 -1
- package/dist/helpers/routePaths.ts +1 -1
- package/dist/hooks/useSolidAutocompleteField.d.ts +31 -0
- package/dist/hooks/useSolidAutocompleteField.d.ts.map +1 -0
- package/dist/hooks/useSolidAutocompleteField.js +116 -0
- package/dist/hooks/useSolidAutocompleteField.js.map +1 -0
- package/dist/hooks/useSolidAutocompleteField.ts +90 -0
- package/dist/index.d.ts +12 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +9 -4
- package/dist/index.js.map +1 -1
- package/dist/index.ts +13 -5
- package/dist/redux/store/defaultStoreConfig.d.ts +35 -34
- package/dist/redux/store/defaultStoreConfig.d.ts.map +1 -1
- package/dist/redux/store/defaultStoreConfig.js +29 -2
- package/dist/redux/store/defaultStoreConfig.js.map +1 -1
- package/dist/redux/store/defaultStoreConfig.ts +30 -32
- package/dist/resources/globals.css +2400 -538
- package/dist/resources/images/SolidXLogo-dark.svg +29 -0
- package/dist/resources/images/SolidXLogo-light.svg +29 -0
- package/dist/resources/shadcn-base.css +2688 -839
- package/dist/resources/solid-responsive.css +36 -80
- package/dist/resources/themes/solid-dark-purple/theme.css +14 -19
- package/dist/resources/themes/solid-light-purple/theme.css +14 -19
- package/dist/routes/AppEventListener.d.ts +1 -1
- package/dist/routes/AppEventListener.d.ts.map +1 -1
- package/dist/routes/AppEventListener.js +3 -1
- package/dist/routes/AppEventListener.js.map +1 -1
- package/dist/routes/AppEventListener.tsx +7 -1
- package/dist/routes/pages/admin/core/CardPage.d.ts +2 -0
- package/dist/routes/pages/admin/core/CardPage.d.ts.map +1 -0
- package/dist/routes/pages/admin/core/CardPage.js +22 -0
- package/dist/routes/pages/admin/core/CardPage.js.map +1 -0
- package/dist/routes/pages/admin/core/CardPage.tsx +10 -0
- package/dist/routes/pages/auth/SsoPage.d.ts.map +1 -1
- package/dist/routes/pages/auth/SsoPage.js +4 -5
- package/dist/routes/pages/auth/SsoPage.js.map +1 -1
- package/dist/routes/pages/auth/SsoPage.tsx +7 -15
- package/dist/routes/pages/studio/StudioLandingPage.js +3 -3
- package/dist/routes/pages/studio/StudioLandingPage.js.map +1 -1
- package/dist/routes/pages/studio/StudioLandingPage.tsx +4 -4
- package/dist/routes/solidRoutes.d.ts.map +1 -1
- package/dist/routes/solidRoutes.js +16 -0
- package/dist/routes/solidRoutes.js.map +1 -1
- package/dist/routes/solidRoutes.tsx +17 -0
- package/dist/routes/types.d.ts +1 -1
- package/dist/routes/types.d.ts.map +1 -1
- package/dist/routes/types.js.map +1 -1
- package/dist/routes/types.ts +5 -1
- package/dist/styles.d.ts +1 -0
- package/dist/styles.d.ts.map +1 -1
- package/dist/styles.js +1 -0
- package/dist/styles.js.map +1 -1
- package/dist/styles.ts +1 -0
- package/dist/types/extension-registry.d.ts +28 -0
- package/dist/types/extension-registry.d.ts.map +1 -0
- package/dist/types/extension-registry.js +26 -0
- package/dist/types/extension-registry.js.map +1 -0
- package/dist/types/extension-registry.ts +32 -0
- package/dist/types/external.d.ts +11 -0
- package/dist/types/layout.d.ts +4 -2
- package/dist/types/solid-core.d.ts +29 -27
- package/package.json +9 -4
package/dist/components/core/extension/solid-core/modelMetadata/list/GenerateModelCodeRowAction.tsx
CHANGED
|
@@ -1,200 +1,190 @@
|
|
|
1
|
-
|
|
1
|
+
import { useEffect, useMemo, useState } from "react";
|
|
2
|
+
import { useDispatch } from "react-redux";
|
|
3
|
+
import { AlertTriangle, FileCode2, Sparkles } from "lucide-react";
|
|
4
|
+
import { SolidCircularLoader } from "../../../../../../components/core/common/SolidLoaders/SolidCircularLoader";
|
|
5
|
+
import { ERROR_MESSAGES } from "../../../../../../constants/error-messages";
|
|
6
|
+
import { env } from "../../../../../../adapters/env";
|
|
2
7
|
import { useGenerateCodeForModelMutation } from "../../../../../../redux/api/modelApi";
|
|
3
8
|
import { useSeederMutation } from "../../../../../../redux/api/solidServiceApi";
|
|
4
9
|
import { closePopup } from "../../../../../../redux/features/popupSlice";
|
|
5
|
-
import { SolidListRowdataDynamicFunctionProps } from "../../../../../../types/solid-core";
|
|
6
|
-
import { Button } from "primereact/button";
|
|
7
|
-
import { useEffect, useState } from "react";
|
|
8
|
-
import { useDispatch } from "react-redux";
|
|
9
10
|
import { showToast } from "../../../../../../redux/features/toastSlice";
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import { env } from "../../../../../../adapters/env";
|
|
13
|
-
|
|
11
|
+
import { SolidListRowdataDynamicFunctionProps } from "../../../../../../types/solid-core";
|
|
12
|
+
import { SolidButton } from "../../../../../shad-cn-ui";
|
|
14
13
|
|
|
15
14
|
const GenerateModelCodeRowAction = (event: SolidListRowdataDynamicFunctionProps) => {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
// }
|
|
62
|
-
// } catch (e) {
|
|
63
|
-
// // ignore and retry
|
|
64
|
-
// }
|
|
65
|
-
// await new Promise((resolve) => setTimeout(resolve, delay));
|
|
66
|
-
// }
|
|
67
|
-
// return false;
|
|
68
|
-
// };
|
|
69
|
-
|
|
70
|
-
const generateCodeHandler = async () => {
|
|
71
|
-
const response: any = await generateCode({ id: event?.rowData?.id });
|
|
72
|
-
console.log("response generate code handler", response);
|
|
73
|
-
setIsGenerating(true);
|
|
15
|
+
const dispatch = useDispatch();
|
|
16
|
+
const [statusMessage, setStatusMessage] = useState("Preparing model generation...");
|
|
17
|
+
const [isPinging, setIsPinging] = useState(false);
|
|
18
|
+
const [isGenerating, setIsGenerating] = useState(false);
|
|
19
|
+
|
|
20
|
+
const [generateCode, { isLoading: isGenerateCodeUpdating, isSuccess: isGenerateCodeSuceess }] =
|
|
21
|
+
useGenerateCodeForModelMutation();
|
|
22
|
+
|
|
23
|
+
const [triggerSeeder, { data, isSuccess: isSeederSuccess, isError: isSeederError }] = useSeederMutation();
|
|
24
|
+
|
|
25
|
+
const isSolidCoreModel = event?.rowData?.module?.name === "solid-core";
|
|
26
|
+
const generatedFiles = useMemo(
|
|
27
|
+
() => [
|
|
28
|
+
"Entity file",
|
|
29
|
+
"Repository file",
|
|
30
|
+
"Controller file",
|
|
31
|
+
"Service file",
|
|
32
|
+
"Create and update DTO files",
|
|
33
|
+
],
|
|
34
|
+
[]
|
|
35
|
+
);
|
|
36
|
+
|
|
37
|
+
const pingBackendWithRetry = async (retries = 30, delay = 500): Promise<boolean> => {
|
|
38
|
+
for (let i = 0; i < retries; i += 1) {
|
|
39
|
+
try {
|
|
40
|
+
const res = await fetch(`${env("NEXT_PUBLIC_BACKEND_API_URL")}/api/ping`);
|
|
41
|
+
if (res.ok) return true;
|
|
42
|
+
} catch (error) {
|
|
43
|
+
// ignore and retry
|
|
44
|
+
}
|
|
45
|
+
await new Promise((resolve) => setTimeout(resolve, delay));
|
|
46
|
+
}
|
|
47
|
+
return false;
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
const generateCodeHandler = async () => {
|
|
51
|
+
try {
|
|
52
|
+
setIsGenerating(true);
|
|
53
|
+
setStatusMessage("Submitting model generation request...");
|
|
54
|
+
await generateCode({ id: event?.rowData?.id }).unwrap();
|
|
55
|
+
setStatusMessage("Waiting for backend to come back online...");
|
|
56
|
+
} catch (error) {
|
|
57
|
+
setIsGenerating(false);
|
|
58
|
+
dispatch(closePopup());
|
|
59
|
+
dispatch(showToast({ severity: "error", summary: "Something went wrong", detail: ERROR_MESSAGES.API_ERROR }));
|
|
74
60
|
}
|
|
61
|
+
};
|
|
62
|
+
|
|
63
|
+
useEffect(() => {
|
|
64
|
+
if (!isGenerateCodeSuceess) return undefined;
|
|
65
|
+
|
|
66
|
+
const timer = window.setTimeout(async () => {
|
|
67
|
+
setIsPinging(true);
|
|
68
|
+
setStatusMessage("Checking backend availability before refreshing metadata...");
|
|
69
|
+
const isAlive = await pingBackendWithRetry();
|
|
70
|
+
setIsPinging(false);
|
|
71
|
+
|
|
72
|
+
if (isAlive) {
|
|
73
|
+
setStatusMessage("Refreshing seeded metadata...");
|
|
74
|
+
await triggerSeeder("ModuleMetadataSeederService");
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
setIsGenerating(false);
|
|
79
|
+
dispatch(closePopup());
|
|
80
|
+
dispatch(
|
|
81
|
+
showToast({
|
|
82
|
+
severity: "error",
|
|
83
|
+
summary: ERROR_MESSAGES.BACKEND_UNAVAILABLE,
|
|
84
|
+
detail: ERROR_MESSAGES.SEEDER_NOT_TRIGGERED,
|
|
85
|
+
})
|
|
86
|
+
);
|
|
87
|
+
}, 5000);
|
|
75
88
|
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
data,
|
|
79
|
-
isLoading,
|
|
80
|
-
isSuccess: isSeederSuccess,
|
|
81
|
-
isError: isSeederError
|
|
82
|
-
}] = useSeederMutation();
|
|
83
|
-
|
|
84
|
-
// Utitlity to track if solid-api is up
|
|
85
|
-
const [isPinging, setIsPinging] = useState(false);
|
|
86
|
-
const [isGenerating, setIsGenerating] = useState(false);
|
|
87
|
-
const pingBackendWithRetry = async (retries = 30, delay = 500): Promise<boolean> => {
|
|
88
|
-
for (let i = 0; i < retries; i++) {
|
|
89
|
-
try {
|
|
90
|
-
const res = await fetch(`${env("NEXT_PUBLIC_BACKEND_API_URL")}/api/ping`);
|
|
91
|
-
console.log("ping response", res);
|
|
92
|
-
|
|
93
|
-
if (res.ok)
|
|
94
|
-
return true;
|
|
95
|
-
} catch (e) {
|
|
96
|
-
// ignore and retry
|
|
97
|
-
}
|
|
98
|
-
await new Promise((resolve) => setTimeout(resolve, delay));
|
|
99
|
-
}
|
|
100
|
-
return false;
|
|
101
|
-
};
|
|
102
|
-
|
|
103
|
-
useEffect(() => {
|
|
104
|
-
const runSeederIfQueueStatusIsSuccess = async () => {
|
|
105
|
-
if (isGenerateCodeSuceess) {
|
|
106
|
-
// console.log("isGenerateCodeSuceess", isGenerateCodeSuceess);
|
|
107
|
-
// setIsPinging(true);
|
|
108
|
-
// const hasMqMessageCompleted = await fetchMqMessageStatus(30, 500, generateCodeData);
|
|
109
|
-
const isAlive = await pingBackendWithRetry();
|
|
110
|
-
setIsPinging(false);
|
|
111
|
-
|
|
112
|
-
// const hasMqMessageCompleted = true;
|
|
113
|
-
// const isAlive = true;
|
|
114
|
-
// if (hasMqMessageCompleted && isAlive) {
|
|
115
|
-
if (isAlive) {
|
|
116
|
-
await triggerSeeder("ModuleMetadataSeederService");
|
|
117
|
-
} else {
|
|
118
|
-
dispatch(closePopup());
|
|
119
|
-
console.log("Backend is not alive, cannot run seeder");
|
|
120
|
-
dispatch(showToast({ severity: "error", summary: ERROR_MESSAGES.BACKEND_UNAVAILABLE, detail: ERROR_MESSAGES.SEEDER_NOT_TRIGGERED }));
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
};
|
|
124
|
-
setTimeout(() => {
|
|
125
|
-
runSeederIfQueueStatusIsSuccess();
|
|
126
|
-
}, 5000);
|
|
127
|
-
}, [isGenerateCodeSuceess]);
|
|
128
|
-
|
|
129
|
-
useEffect(() => {
|
|
130
|
-
if (isSeederSuccess) {
|
|
131
|
-
console.log(ERROR_MESSAGES.IS_SEEDER_SUCCESS, data);
|
|
132
|
-
dispatch(showToast({ severity: "success", summary: ERROR_MESSAGES.CODE_GENERTAE_SUCCESSFULLY, detail: ERROR_MESSAGES.CODE_GENERTAE_SUCCESSFULLY }));
|
|
133
|
-
setIsGenerating(false);
|
|
134
|
-
dispatch(closePopup());
|
|
135
|
-
window.location.reload();
|
|
136
|
-
}
|
|
137
|
-
if (isSeederError) {
|
|
138
|
-
console.log(ERROR_MESSAGES.IS_SEEDER_ERROR, isSeederError);
|
|
139
|
-
dispatch(showToast({ severity: "error", summary: ERROR_MESSAGES.SEEDER_ERROR, detail: ERROR_MESSAGES.SEEDER_NOT_RUN }));
|
|
140
|
-
setIsGenerating(false);
|
|
141
|
-
}
|
|
142
|
-
}, [isSeederSuccess])
|
|
143
|
-
// TODO: END REFACTORING - reusable code alert
|
|
89
|
+
return () => window.clearTimeout(timer);
|
|
90
|
+
}, [dispatch, isGenerateCodeSuceess, triggerSeeder]);
|
|
144
91
|
|
|
92
|
+
useEffect(() => {
|
|
93
|
+
if (isSeederSuccess) {
|
|
94
|
+
dispatch(
|
|
95
|
+
showToast({
|
|
96
|
+
severity: "success",
|
|
97
|
+
summary: ERROR_MESSAGES.CODE_GENERTAE_SUCCESSFULLY,
|
|
98
|
+
detail: ERROR_MESSAGES.CODE_GENERTAE_SUCCESSFULLY,
|
|
99
|
+
})
|
|
100
|
+
);
|
|
101
|
+
setIsGenerating(false);
|
|
102
|
+
dispatch(closePopup());
|
|
103
|
+
window.location.reload();
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
if (isSeederError) {
|
|
107
|
+
dispatch(showToast({ severity: "error", summary: ERROR_MESSAGES.SEEDER_ERROR, detail: ERROR_MESSAGES.SEEDER_NOT_RUN }));
|
|
108
|
+
setIsGenerating(false);
|
|
109
|
+
}
|
|
110
|
+
}, [data, dispatch, isSeederError, isSeederSuccess]);
|
|
111
|
+
|
|
112
|
+
if (isGenerating) {
|
|
145
113
|
return (
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
114
|
+
<div className="solid-generate-code-popup">
|
|
115
|
+
<div className="solid-filter-dialog-head solid-generate-code-popup__head">
|
|
116
|
+
<div>
|
|
117
|
+
<h3 className="solid-filter-dialog-title">Generate Model</h3>
|
|
118
|
+
<p className="solid-filter-dialog-subtitle m-0">Applying the code generation pipeline and reseeding metadata.</p>
|
|
119
|
+
</div>
|
|
120
|
+
</div>
|
|
121
|
+
<div className="solid-filter-dialog-sep" />
|
|
122
|
+
<div className="solid-filter-dialog-body solid-generate-code-popup__body solid-generate-code-popup__body--loading">
|
|
123
|
+
<SolidCircularLoader />
|
|
124
|
+
<p className="solid-generate-code-popup__loading-title">
|
|
125
|
+
{isPinging ? "Waiting for backend..." : "Generating model code..."}
|
|
126
|
+
</p>
|
|
127
|
+
<p className="solid-generate-code-popup__loading-copy">{statusMessage}</p>
|
|
128
|
+
</div>
|
|
129
|
+
</div>
|
|
130
|
+
);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
return (
|
|
134
|
+
<div className="solid-generate-code-popup">
|
|
135
|
+
<div className="solid-filter-dialog-head solid-generate-code-popup__head">
|
|
136
|
+
<div>
|
|
137
|
+
<h3 className="solid-filter-dialog-title">Generate Model</h3>
|
|
138
|
+
<p className="solid-filter-dialog-subtitle m-0">
|
|
139
|
+
Generate or refresh the model code artifacts from the current metadata definition.
|
|
140
|
+
</p>
|
|
141
|
+
</div>
|
|
142
|
+
</div>
|
|
143
|
+
<div className="solid-filter-dialog-sep" />
|
|
144
|
+
<div className="solid-filter-dialog-body solid-generate-code-popup__body">
|
|
145
|
+
{isSolidCoreModel ? (
|
|
146
|
+
<div className="solid-generate-code-popup__notice is-warning">
|
|
147
|
+
<AlertTriangle size={16} />
|
|
148
|
+
<span>You cannot generate code for Solid Core models.</span>
|
|
149
|
+
</div>
|
|
150
|
+
) : (
|
|
151
|
+
<>
|
|
152
|
+
<p className="solid-generate-code-popup__intro">
|
|
153
|
+
Proceed with model code generation. Existing generated files may be overwritten.
|
|
154
|
+
</p>
|
|
155
|
+
<div className="solid-generate-code-popup__panel">
|
|
156
|
+
<div className="solid-generate-code-popup__panel-title">
|
|
157
|
+
<FileCode2 size={15} />
|
|
158
|
+
<span>Artifacts created</span>
|
|
159
|
+
</div>
|
|
160
|
+
<ul className="solid-generate-code-popup__list">
|
|
161
|
+
{generatedFiles.map((item) => (
|
|
162
|
+
<li key={item}>{item}</li>
|
|
163
|
+
))}
|
|
164
|
+
</ul>
|
|
165
|
+
</div>
|
|
166
|
+
</>
|
|
167
|
+
)}
|
|
168
|
+
|
|
169
|
+
<div className="solid-generate-code-popup__actions">
|
|
170
|
+
{!isSolidCoreModel ? (
|
|
171
|
+
<SolidButton
|
|
172
|
+
size="small"
|
|
173
|
+
autoFocus
|
|
174
|
+
leftIcon={<Sparkles size={14} />}
|
|
175
|
+
loading={isGenerateCodeUpdating}
|
|
176
|
+
onClick={generateCodeHandler}
|
|
177
|
+
>
|
|
178
|
+
Generate
|
|
179
|
+
</SolidButton>
|
|
180
|
+
) : null}
|
|
181
|
+
<SolidButton size="small" variant="outline" onClick={() => dispatch(closePopup())}>
|
|
182
|
+
{isSolidCoreModel ? "Close" : "Cancel"}
|
|
183
|
+
</SolidButton>
|
|
184
|
+
</div>
|
|
185
|
+
</div>
|
|
186
|
+
</div>
|
|
187
|
+
);
|
|
188
|
+
};
|
|
199
189
|
|
|
200
190
|
export default GenerateModelCodeRowAction;
|
package/dist/components/core/extension/solid-core/moduleMetadata/list/DeleteModuleRowAction.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeleteModuleRowAction.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/core/extension/solid-core/moduleMetadata/list/DeleteModuleRowAction.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DeleteModuleRowAction.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/core/extension/solid-core/moduleMetadata/list/DeleteModuleRowAction.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,oCAAoC,EAAE,MAAM,oCAAoC,CAAC;AAG1F,QAAA,MAAM,qBAAqB,UAAW,oCAAoC,4CA8HzE,CAAC;AAEF,eAAe,qBAAqB,CAAC"}
|
package/dist/components/core/extension/solid-core/moduleMetadata/list/DeleteModuleRowAction.js
CHANGED
|
@@ -35,39 +35,32 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
37
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
38
|
+
import { useEffect, useState } from "react";
|
|
39
|
+
import { useDispatch } from "react-redux";
|
|
40
|
+
import { kebabCase } from "lodash";
|
|
41
|
+
import { AlertTriangle } from "lucide-react";
|
|
38
42
|
import { ERROR_MESSAGES } from "../../../../../../constants/error-messages";
|
|
39
43
|
import { useGetModelsQuery } from "../../../../../../redux/api/modelApi";
|
|
40
44
|
import { createSolidEntityApi } from "../../../../../../redux/api/solidEntityApi";
|
|
41
45
|
import { closePopup } from "../../../../../../redux/features/popupSlice";
|
|
42
|
-
import { kebabCase } from "lodash";
|
|
43
|
-
import { Button } from "primereact/button";
|
|
44
|
-
import { Column } from "primereact/column";
|
|
45
|
-
import { DataTable } from "primereact/datatable";
|
|
46
|
-
import { useEffect, useState } from "react";
|
|
47
|
-
import { useDispatch } from "react-redux";
|
|
48
46
|
import { showToast } from "../../../../../../redux/features/toastSlice";
|
|
47
|
+
import { SolidButton } from "../../../../../shad-cn-ui";
|
|
49
48
|
var DeleteModuleRowAction = function (event) {
|
|
50
49
|
var _a;
|
|
51
|
-
var _b = useState(
|
|
52
|
-
var _c = useState(
|
|
53
|
-
var _d = useState(false),
|
|
50
|
+
var _b = useState(null), errorState = _b[0], setErrorState = _b[1];
|
|
51
|
+
var _c = useState(false), isDeleting = _c[0], setIsDeleting = _c[1];
|
|
52
|
+
var _d = useState(false), allowDelete = _d[0], setAllowDelete = _d[1];
|
|
54
53
|
var dispatch = useDispatch();
|
|
55
54
|
var entityApi = createSolidEntityApi("moduleMetadata");
|
|
56
55
|
var useDeleteSolidEntityMutation = entityApi.useDeleteSolidEntityMutation;
|
|
57
|
-
var
|
|
58
|
-
var _f = useDeleteSolidEntityMutation(), deleteSolidSingleEntiry = _f[0], isSolidEntitiesDeleteError = _f[1].isError;
|
|
56
|
+
var deleteSolidSingleEntiry = useDeleteSolidEntityMutation()[0];
|
|
59
57
|
var queryString = "filters[$and][0][$or][0][module][$in][0]=".concat((_a = event === null || event === void 0 ? void 0 : event.rowData) === null || _a === void 0 ? void 0 : _a.id);
|
|
60
|
-
var
|
|
58
|
+
var _e = useGetModelsQuery(queryString), models = _e.data, getModelsLoading = _e.isLoading;
|
|
61
59
|
useEffect(function () {
|
|
62
|
-
|
|
63
|
-
setAllowDelete(true);
|
|
64
|
-
}
|
|
65
|
-
else {
|
|
66
|
-
setAllowDelete(false);
|
|
67
|
-
}
|
|
60
|
+
setAllowDelete(Boolean(models && models.meta.totalRecords === 0));
|
|
68
61
|
}, [models]);
|
|
69
62
|
var deleteModuleHandler = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
70
|
-
var res, message, err_1;
|
|
63
|
+
var res, message, err_1, message;
|
|
71
64
|
var _a, _b, _c;
|
|
72
65
|
return __generator(this, function (_d) {
|
|
73
66
|
switch (_d.label) {
|
|
@@ -77,30 +70,31 @@ var DeleteModuleRowAction = function (event) {
|
|
|
77
70
|
_d.label = 1;
|
|
78
71
|
case 1:
|
|
79
72
|
_d.trys.push([1, 3, 4, 5]);
|
|
80
|
-
return [4 /*yield*/, deleteSolidSingleEntiry(event.rowData.id)
|
|
81
|
-
// console.log('delete model res', res);
|
|
82
|
-
];
|
|
73
|
+
return [4 /*yield*/, deleteSolidSingleEntiry(event.rowData.id)];
|
|
83
74
|
case 2:
|
|
84
75
|
res = _d.sent();
|
|
85
|
-
// console.log('delete model res', res);
|
|
86
|
-
setErrorState(res.error || null);
|
|
87
76
|
if (res.error) {
|
|
88
77
|
message = ((_b = (_a = res.error) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.message) ||
|
|
89
78
|
((_c = res.error) === null || _c === void 0 ? void 0 : _c.error) ||
|
|
90
79
|
ERROR_MESSAGES.ERROR_OCCURED;
|
|
91
80
|
setErrorState(message);
|
|
92
|
-
dispatch(showToast({ severity:
|
|
81
|
+
dispatch(showToast({ severity: "error", summary: ERROR_MESSAGES.DELETE_FAIELD, detail: message }));
|
|
93
82
|
}
|
|
94
83
|
else {
|
|
95
|
-
dispatch(showToast({
|
|
84
|
+
dispatch(showToast({
|
|
85
|
+
severity: "success",
|
|
86
|
+
summary: ERROR_MESSAGES.MODEL_DELETE,
|
|
87
|
+
detail: ERROR_MESSAGES.MODEL_DELETE_SUCCESSFULLY(event.rowData.singularName),
|
|
88
|
+
}));
|
|
96
89
|
dispatch(closePopup());
|
|
97
90
|
}
|
|
98
91
|
return [3 /*break*/, 5];
|
|
99
92
|
case 3:
|
|
100
93
|
err_1 = _d.sent();
|
|
101
94
|
console.error(ERROR_MESSAGES.DELETE_ERROR, err_1);
|
|
102
|
-
|
|
103
|
-
|
|
95
|
+
message = err_1.message || ERROR_MESSAGES.NETWORK_ERROR;
|
|
96
|
+
setErrorState(message);
|
|
97
|
+
dispatch(showToast({ severity: "error", summary: ERROR_MESSAGES.ERROR, detail: ERROR_MESSAGES.NETWORK_OR_SERVER_ERROR }));
|
|
104
98
|
return [3 /*break*/, 5];
|
|
105
99
|
case 4:
|
|
106
100
|
setIsDeleting(false);
|
|
@@ -110,14 +104,18 @@ var DeleteModuleRowAction = function (event) {
|
|
|
110
104
|
});
|
|
111
105
|
}); };
|
|
112
106
|
var rows = [
|
|
113
|
-
{
|
|
114
|
-
|
|
107
|
+
{
|
|
108
|
+
file: "".concat(kebabCase(event.rowData.name), ".module.ts"),
|
|
109
|
+
description: "Delete the module file.",
|
|
110
|
+
intervention: "Automatic",
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
file: "".concat(kebabCase(event.rowData.name), "-metadata.json"),
|
|
114
|
+
description: "Remove the module metadata JSON file.",
|
|
115
|
+
intervention: "Automatic",
|
|
116
|
+
},
|
|
115
117
|
];
|
|
116
|
-
return (_jsxs("div", { className: "", children: [_jsx("div", { className: "
|
|
117
|
-
"Deleting a module should be done carefully. The below files will be impacted as part of deleting a model:"
|
|
118
|
-
:
|
|
119
|
-
"This module still has models associated with it. Please delete those models before deleting the module" }), _jsxs(DataTable, { value: rows, size: "small", children: [_jsx(Column, { field: "file", header: "File Name" }), _jsx(Column, { field: "description", header: "Description" }), _jsx(Column, { field: "intervention", header: "Intervention" })] })] }), _jsxs("div", { className: "flex gap-3 justify-content-start", children: [allowDelete === true &&
|
|
120
|
-
_jsx(Button, { size: "small", label: "Apply", autoFocus: true, onClick: deleteModuleHandler }), _jsx(Button, { size: "small", label: "Cancel", outlined: true, onClick: function () { return dispatch(closePopup()); } })] })] })] }));
|
|
118
|
+
return (_jsxs("div", { className: "solid-delete-model-popup solid-delete-module-popup", children: [_jsx("div", { className: "solid-filter-dialog-head solid-delete-model-popup__head", children: _jsxs("div", { children: [_jsx("h3", { className: "solid-filter-dialog-title", children: "Delete Module" }), _jsx("p", { className: "solid-filter-dialog-subtitle m-0", children: "Review the affected files and confirm there are no linked models before deleting this module." })] }) }), _jsx("div", { className: "solid-filter-dialog-sep" }), _jsxs("div", { className: "solid-filter-dialog-body solid-delete-model-popup__body", children: [getModelsLoading ? (_jsx("p", { className: "solid-delete-model-popup__intro", children: "Checking whether this module still has linked models." })) : allowDelete ? (_jsx("p", { className: "solid-delete-model-popup__intro", children: "Deleting a module should be done carefully. The following files will be removed as part of deleting this module." })) : (_jsxs("div", { className: "solid-delete-module-popup__notice", children: [_jsx(AlertTriangle, { size: 16 }), _jsx("span", { children: "This module still has models associated with it. Delete those models first before deleting the module." })] })), _jsx("div", { className: "solid-delete-model-popup__table-wrap", children: _jsxs("table", { className: "solid-delete-model-popup__table", children: [_jsx("thead", { children: _jsxs("tr", { children: [_jsx("th", { children: "File Name" }), _jsx("th", { children: "Description" }), _jsx("th", { children: "Intervention" })] }) }), _jsx("tbody", { children: rows.map(function (row) { return (_jsxs("tr", { children: [_jsx("td", { className: "solid-delete-model-popup__file", children: row.file }), _jsx("td", { children: row.description }), _jsx("td", { className: "solid-delete-model-popup__intervention", children: row.intervention })] }, row.file)); }) })] }) }), errorState ? _jsx("div", { className: "solid-delete-module-popup__error", children: errorState }) : null, _jsxs("div", { className: "solid-delete-model-popup__actions", children: [allowDelete ? (_jsx(SolidButton, { size: "small", autoFocus: true, loading: isDeleting, disabled: getModelsLoading || isDeleting, onClick: deleteModuleHandler, children: "Apply" })) : null, _jsx(SolidButton, { size: "small", variant: "outline", onClick: function () { return dispatch(closePopup()); }, children: allowDelete ? "Cancel" : "Close" })] })] })] }));
|
|
121
119
|
};
|
|
122
120
|
export default DeleteModuleRowAction;
|
|
123
121
|
//# sourceMappingURL=DeleteModuleRowAction.js.map
|
package/dist/components/core/extension/solid-core/moduleMetadata/list/DeleteModuleRowAction.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DeleteModuleRowAction.js","sourceRoot":"","sources":["../../../../../../../src/components/core/extension/solid-core/moduleMetadata/list/DeleteModuleRowAction.tsx"],"names":[],"mappings":"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","sourcesContent":["\nimport { SolidCircularLoader } from \"../../../../../../components/core/common/SolidLoaders/SolidCircularLoader\";\nimport { ERROR_MESSAGES } from \"../../../../../../constants/error-messages\";\nimport { useGetModelsQuery, useLazyGetModelsQuery } from \"../../../../../../redux/api/modelApi\";\nimport { useGenerateCodeFormoduleMutation } from \"../../../../../../redux/api/moduleApi\";\nimport { createSolidEntityApi } from \"../../../../../../redux/api/solidEntityApi\";\nimport { useSeederMutation } from \"../../../../../../redux/api/solidServiceApi\";\nimport { closePopup } from \"../../../../../../redux/features/popupSlice\";\nimport { SolidListRowdataDynamicFunctionProps } from \"../../../../../../types/solid-core\";\nimport { kebabCase } from \"lodash\";\nimport { Button } from \"primereact/button\";\nimport { Checkbox } from \"primereact/checkbox\";\nimport { Column } from \"primereact/column\";\nimport { DataTable } from \"primereact/datatable\";\nimport { useEffect, useState } from \"react\";\nimport { useDispatch } from \"react-redux\";\nimport { showToast } from \"../../../../../../redux/features/toastSlice\";\n\nconst DeleteModuleRowAction = (event: SolidListRowdataDynamicFunctionProps) => {\n\n const [isConfirmed, setIsConfirmed] = useState(false);\n const [errorState, setErrorState] = useState<string | null>(null);\n const [isDeleting, setIsDeleting] = useState(false);\n const dispatch = useDispatch();\n const entityApi = createSolidEntityApi(\"moduleMetadata\");\n const { useDeleteSolidEntityMutation } = entityApi;\n\n const [allowDelete, setAllowDelete] = useState(false);\n\n const [deleteSolidSingleEntiry, {\n isError: isSolidEntitiesDeleteError,\n }] = useDeleteSolidEntityMutation()\n\n const queryString = `filters[$and][0][$or][0][module][$in][0]=${event?.rowData?.id}`;\n const { data: models, isLoading: getModelsLoading, error } = useGetModelsQuery(queryString);\n\n useEffect(() => {\n if (models && models.meta.totalRecords == 0) {\n setAllowDelete(true);\n } else {\n setAllowDelete(false);\n }\n }, [models]);\n\n const deleteModuleHandler = async () => {\n setIsDeleting(true);\n setErrorState(null);\n try {\n const res: any = await deleteSolidSingleEntiry(event.rowData.id)\n // console.log('delete model res', res);\n setErrorState(res.error || null);\n if (res.error) {\n // handle backend or RTK error object\n const message =\n res.error?.data?.message ||\n res.error?.error ||\n ERROR_MESSAGES.ERROR_OCCURED;\n setErrorState(message);\n dispatch(showToast({ severity: 'error', summary: ERROR_MESSAGES.DELETE_FAIELD, detail: message }));\n } else {\n dispatch(showToast({ severity: 'success', summary: ERROR_MESSAGES.MODEL_DELETE, detail: ERROR_MESSAGES.MODEL_DELETE_SUCCESSFULLY(event.rowData.singularName) }));\n dispatch(closePopup());\n }\n } catch (err: any) {\n console.error(ERROR_MESSAGES.DELETE_ERROR, err);\n setErrorState(err.message || ERROR_MESSAGES.NETWORK_ERROR);\n dispatch(showToast({ severity: 'error', summary: ERROR_MESSAGES.ERROR, detail: ERROR_MESSAGES.NETWORK_OR_SERVER_ERROR }));\n } finally {\n setIsDeleting(false);\n }\n }\n\n const rows = [\n { file: `${kebabCase(event.rowData.name)}.module.ts`, description: 'Delete the module file', intervention: 'Automatic'},\n { file: `${kebabCase(event.rowData.name)}-metadata.json`, description: 'Remove the module metadata json file', intervention: 'Automatic' },\n ];\n\n return (\n <div className=\"\">\n <div className=\"p-dialog-header secondary-border-bottom py-3\" style={{ background: 'var(--solid-light-grey)' }}>\n <span className=\"p-dialog-title\">\n Delete Module\n </span>\n </div>\n <div className=\"px-4 pb-4 pt-3\">\n <div>\n <p className=\"form-field-label font-medium\">\n {allowDelete === true ?\n \"Deleting a module should be done carefully. The below files will be impacted as part of deleting a model:\"\n :\n \"This module still has models associated with it. Please delete those models before deleting the module\"\n }\n </p>\n {/* {allowDelete === true && */}\n <DataTable value={rows} size=\"small\">\n <Column field=\"file\" header=\"File Name\" />\n <Column field=\"description\" header=\"Description\" />\n <Column field=\"intervention\" header=\"Intervention\" />\n </DataTable>\n {/* } */}\n {/* {allowDelete === true &&\n\n <div className=\"my-4\">\n <div className=\"flex align-items-center\">\n <Checkbox\n inputId=\"confirmation\"\n name=\"confirm\"\n checked={isConfirmed}\n onChange={() => setIsConfirmed(!isConfirmed)} />\n <label htmlFor=\"confirmation\" className=\"ml-2 form-field-label\">\n I confirm that #7 & #9 will be done by me manually after the automatic steps above are applied.\n </label>\n </div>\n </div>\n } */}\n </div>\n <div className=\"flex gap-3 justify-content-start\">\n {allowDelete === true &&\n <Button size=\"small\" label=\"Apply\" autoFocus onClick={deleteModuleHandler} />\n }\n <Button size=\"small\" label=\"Cancel\" outlined onClick={() => dispatch(closePopup())} />\n </div>\n </div>\n </div>\n )\n}\n\nexport default DeleteModuleRowAction;"]}
|
|
1
|
+
{"version":3,"file":"DeleteModuleRowAction.js","sourceRoot":"","sources":["../../../../../../../src/components/core/extension/solid-core/moduleMetadata/list/DeleteModuleRowAction.tsx"],"names":[],"mappings":"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","sourcesContent":["import { useEffect, useState } from \"react\";\nimport { useDispatch } from \"react-redux\";\nimport { kebabCase } from \"lodash\";\nimport { AlertTriangle } from \"lucide-react\";\nimport { ERROR_MESSAGES } from \"../../../../../../constants/error-messages\";\nimport { useGetModelsQuery } from \"../../../../../../redux/api/modelApi\";\nimport { createSolidEntityApi } from \"../../../../../../redux/api/solidEntityApi\";\nimport { closePopup } from \"../../../../../../redux/features/popupSlice\";\nimport { showToast } from \"../../../../../../redux/features/toastSlice\";\nimport { SolidListRowdataDynamicFunctionProps } from \"../../../../../../types/solid-core\";\nimport { SolidButton } from \"../../../../../shad-cn-ui\";\n\nconst DeleteModuleRowAction = (event: SolidListRowdataDynamicFunctionProps) => {\n const [errorState, setErrorState] = useState<string | null>(null);\n const [isDeleting, setIsDeleting] = useState(false);\n const [allowDelete, setAllowDelete] = useState(false);\n\n const dispatch = useDispatch();\n const entityApi = createSolidEntityApi(\"moduleMetadata\");\n const { useDeleteSolidEntityMutation } = entityApi;\n const [deleteSolidSingleEntiry] = useDeleteSolidEntityMutation();\n\n const queryString = `filters[$and][0][$or][0][module][$in][0]=${event?.rowData?.id}`;\n const { data: models, isLoading: getModelsLoading } = useGetModelsQuery(queryString);\n\n useEffect(() => {\n setAllowDelete(Boolean(models && models.meta.totalRecords === 0));\n }, [models]);\n\n const deleteModuleHandler = async () => {\n setIsDeleting(true);\n setErrorState(null);\n\n try {\n const res: any = await deleteSolidSingleEntiry(event.rowData.id);\n\n if (res.error) {\n const message =\n res.error?.data?.message ||\n res.error?.error ||\n ERROR_MESSAGES.ERROR_OCCURED;\n\n setErrorState(message);\n dispatch(showToast({ severity: \"error\", summary: ERROR_MESSAGES.DELETE_FAIELD, detail: message }));\n } else {\n dispatch(\n showToast({\n severity: \"success\",\n summary: ERROR_MESSAGES.MODEL_DELETE,\n detail: ERROR_MESSAGES.MODEL_DELETE_SUCCESSFULLY(event.rowData.singularName),\n })\n );\n dispatch(closePopup());\n }\n } catch (err: any) {\n console.error(ERROR_MESSAGES.DELETE_ERROR, err);\n const message = err.message || ERROR_MESSAGES.NETWORK_ERROR;\n setErrorState(message);\n dispatch(showToast({ severity: \"error\", summary: ERROR_MESSAGES.ERROR, detail: ERROR_MESSAGES.NETWORK_OR_SERVER_ERROR }));\n } finally {\n setIsDeleting(false);\n }\n };\n\n const rows = [\n {\n file: `${kebabCase(event.rowData.name)}.module.ts`,\n description: \"Delete the module file.\",\n intervention: \"Automatic\",\n },\n {\n file: `${kebabCase(event.rowData.name)}-metadata.json`,\n description: \"Remove the module metadata JSON file.\",\n intervention: \"Automatic\",\n },\n ];\n\n return (\n <div className=\"solid-delete-model-popup solid-delete-module-popup\">\n <div className=\"solid-filter-dialog-head solid-delete-model-popup__head\">\n <div>\n <h3 className=\"solid-filter-dialog-title\">Delete Module</h3>\n <p className=\"solid-filter-dialog-subtitle m-0\">\n Review the affected files and confirm there are no linked models before deleting this module.\n </p>\n </div>\n </div>\n <div className=\"solid-filter-dialog-sep\" />\n <div className=\"solid-filter-dialog-body solid-delete-model-popup__body\">\n {getModelsLoading ? (\n <p className=\"solid-delete-model-popup__intro\">Checking whether this module still has linked models.</p>\n ) : allowDelete ? (\n <p className=\"solid-delete-model-popup__intro\">\n Deleting a module should be done carefully. The following files will be removed as part of deleting this module.\n </p>\n ) : (\n <div className=\"solid-delete-module-popup__notice\">\n <AlertTriangle size={16} />\n <span>This module still has models associated with it. Delete those models first before deleting the module.</span>\n </div>\n )}\n\n <div className=\"solid-delete-model-popup__table-wrap\">\n <table className=\"solid-delete-model-popup__table\">\n <thead>\n <tr>\n <th>File Name</th>\n <th>Description</th>\n <th>Intervention</th>\n </tr>\n </thead>\n <tbody>\n {rows.map((row) => (\n <tr key={row.file}>\n <td className=\"solid-delete-model-popup__file\">{row.file}</td>\n <td>{row.description}</td>\n <td className=\"solid-delete-model-popup__intervention\">{row.intervention}</td>\n </tr>\n ))}\n </tbody>\n </table>\n </div>\n\n {errorState ? <div className=\"solid-delete-module-popup__error\">{errorState}</div> : null}\n\n <div className=\"solid-delete-model-popup__actions\">\n {allowDelete ? (\n <SolidButton size=\"small\" autoFocus loading={isDeleting} disabled={getModelsLoading || isDeleting} onClick={deleteModuleHandler}>\n Apply\n </SolidButton>\n ) : null}\n <SolidButton size=\"small\" variant=\"outline\" onClick={() => dispatch(closePopup())}>\n {allowDelete ? \"Cancel\" : \"Close\"}\n </SolidButton>\n </div>\n </div>\n </div>\n );\n};\n\nexport default DeleteModuleRowAction;\n"]}
|