@solidxai/core-ui 0.1.7-beta.1 → 0.1.7-beta.10
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/adapters/auth/helper.d.ts +9 -0
- package/dist/adapters/auth/helper.d.ts.map +1 -0
- package/dist/adapters/auth/helper.js +37 -0
- package/dist/adapters/auth/helper.js.map +1 -0
- package/dist/adapters/auth/helper.ts +45 -0
- package/dist/adapters/auth/signInWithOtp.d.ts.map +1 -1
- package/dist/adapters/auth/signInWithOtp.js +3 -27
- package/dist/adapters/auth/signInWithOtp.js.map +1 -1
- package/dist/adapters/auth/signInWithOtp.ts +3 -23
- 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 +89 -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 +36 -37
- package/dist/components/auth/SolidLogin.js.map +1 -1
- package/dist/components/auth/SolidLogin.tsx +91 -116
- 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/AuthBanner.js.map +1 -1
- 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.d.ts.map +1 -1
- package/dist/components/common/DropzonePlaceholder.js +2 -2
- package/dist/components/common/DropzonePlaceholder.js.map +1 -1
- package/dist/components/common/DropzonePlaceholder.tsx +10 -8
- 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 +105 -109
- package/dist/components/common/GeneralSettings.js.map +1 -1
- package/dist/components/common/GeneralSettings.tsx +209 -329
- 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 +33 -0
- package/dist/components/common/SolidSettings/LlmSettings/AiModelConfigTab.d.ts.map +1 -0
- package/dist/components/common/SolidSettings/LlmSettings/AiModelConfigTab.js +48 -0
- package/dist/components/common/SolidSettings/LlmSettings/AiModelConfigTab.js.map +1 -0
- package/dist/components/common/SolidSettings/LlmSettings/AiModelConfigTab.tsx +155 -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 +3 -1
- package/dist/components/core/chatter/SolidChatter.d.ts.map +1 -1
- package/dist/components/core/chatter/SolidChatter.js +25 -23
- package/dist/components/core/chatter/SolidChatter.js.map +1 -1
- package/dist/components/core/chatter/SolidChatter.tsx +87 -69
- 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 +3 -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 +139 -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 +7 -3
- package/dist/components/core/chatter/SolidMessageComposer.d.ts.map +1 -1
- package/dist/components/core/chatter/SolidMessageComposer.js +17 -7
- package/dist/components/core/chatter/SolidMessageComposer.js.map +1 -1
- package/dist/components/core/chatter/SolidMessageComposer.tsx +92 -49
- package/dist/components/core/chatter/chatter.module.css +217 -17
- 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 +697 -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 +77 -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/common/SolidViewLayoutManager.d.ts +17 -0
- package/dist/components/core/common/SolidViewLayoutManager.d.ts.map +1 -1
- package/dist/components/core/common/SolidViewLayoutManager.js +58 -1
- package/dist/components/core/common/SolidViewLayoutManager.js.map +1 -1
- package/dist/components/core/common/SolidViewLayoutManager.ts +43 -2
- 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/chatterMessage/form/SolidChatterMessageCoModelEntityIdFormViewWidget.d.ts +3 -0
- package/dist/components/core/extension/solid-core/chatterMessage/form/SolidChatterMessageCoModelEntityIdFormViewWidget.d.ts.map +1 -0
- package/dist/components/core/extension/solid-core/chatterMessage/form/SolidChatterMessageCoModelEntityIdFormViewWidget.js +92 -0
- package/dist/components/core/extension/solid-core/chatterMessage/form/SolidChatterMessageCoModelEntityIdFormViewWidget.js.map +1 -0
- package/dist/components/core/extension/solid-core/chatterMessage/form/SolidChatterMessageCoModelEntityIdFormViewWidget.tsx +68 -0
- package/dist/components/core/extension/solid-core/chatterMessage/list/SolidChatterMessageCoModelEntityIdListViewWidget.d.ts +3 -0
- package/dist/components/core/extension/solid-core/chatterMessage/list/SolidChatterMessageCoModelEntityIdListViewWidget.d.ts.map +1 -0
- package/dist/components/core/extension/solid-core/chatterMessage/list/SolidChatterMessageCoModelEntityIdListViewWidget.js +87 -0
- package/dist/components/core/extension/solid-core/chatterMessage/list/SolidChatterMessageCoModelEntityIdListViewWidget.js.map +1 -0
- package/dist/components/core/extension/solid-core/chatterMessage/list/SolidChatterMessageCoModelEntityIdListViewWidget.tsx +70 -0
- 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/listOfValues/form/SolidLovTypeChangeFormEditWidget.d.ts +3 -0
- package/dist/components/core/extension/solid-core/listOfValues/form/SolidLovTypeChangeFormEditWidget.d.ts.map +1 -0
- package/dist/components/core/extension/solid-core/listOfValues/form/SolidLovTypeChangeFormEditWidget.js +111 -0
- package/dist/components/core/extension/solid-core/listOfValues/form/SolidLovTypeChangeFormEditWidget.js.map +1 -0
- package/dist/components/core/extension/solid-core/listOfValues/form/SolidLovTypeChangeFormEditWidget.tsx +122 -0
- 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 +141 -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/form/SolidMqMessageStageFormViewWIdget.d.ts +3 -0
- package/dist/components/core/extension/solid-core/mqMessage/form/SolidMqMessageStageFormViewWIdget.d.ts.map +1 -0
- package/dist/components/core/extension/solid-core/mqMessage/form/SolidMqMessageStageFormViewWIdget.js +10 -0
- package/dist/components/core/extension/solid-core/mqMessage/form/SolidMqMessageStageFormViewWIdget.js.map +1 -0
- package/dist/components/core/extension/solid-core/mqMessage/form/SolidMqMessageStageFormViewWIdget.tsx +21 -0
- package/dist/components/core/extension/solid-core/mqMessage/form/mqMessageOnFormLoadHandler.d.ts +8 -0
- package/dist/components/core/extension/solid-core/mqMessage/form/mqMessageOnFormLoadHandler.d.ts.map +1 -0
- package/dist/components/core/extension/solid-core/mqMessage/form/mqMessageOnFormLoadHandler.js +62 -0
- package/dist/components/core/extension/solid-core/mqMessage/form/mqMessageOnFormLoadHandler.js.map +1 -0
- package/dist/components/core/extension/solid-core/mqMessage/form/mqMessageOnFormLoadHandler.tsx +27 -0
- 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 +195 -0
- package/dist/components/core/extension/solid-core/mqMessage/list/SolidMqMessageStageListViewWidget.d.ts +3 -0
- package/dist/components/core/extension/solid-core/mqMessage/list/SolidMqMessageStageListViewWidget.d.ts.map +1 -0
- package/dist/components/core/extension/solid-core/mqMessage/list/SolidMqMessageStageListViewWidget.js +8 -0
- package/dist/components/core/extension/solid-core/mqMessage/list/SolidMqMessageStageListViewWidget.js.map +1 -0
- package/dist/components/core/extension/solid-core/mqMessage/list/SolidMqMessageStageListViewWidget.tsx +15 -0
- package/dist/components/core/extension/solid-core/mqMessage/list/SolidMqMessagesSummarizeListHeaderAction.d.ts +3 -0
- package/dist/components/core/extension/solid-core/mqMessage/list/SolidMqMessagesSummarizeListHeaderAction.d.ts.map +1 -0
- package/dist/components/core/extension/solid-core/mqMessage/list/SolidMqMessagesSummarizeListHeaderAction.js +158 -0
- package/dist/components/core/extension/solid-core/mqMessage/list/SolidMqMessagesSummarizeListHeaderAction.js.map +1 -0
- package/dist/components/core/extension/solid-core/mqMessage/list/SolidMqMessagesSummarizeListHeaderAction.tsx +185 -0
- package/dist/components/core/extension/solid-core/mqMessage/ui/MqMessageStageBadge.d.ts +17 -0
- package/dist/components/core/extension/solid-core/mqMessage/ui/MqMessageStageBadge.d.ts.map +1 -0
- package/dist/components/core/extension/solid-core/mqMessage/ui/MqMessageStageBadge.js +52 -0
- package/dist/components/core/extension/solid-core/mqMessage/ui/MqMessageStageBadge.js.map +1 -0
- package/dist/components/core/extension/solid-core/mqMessage/ui/MqMessageStageBadge.tsx +83 -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 +61 -55
- package/dist/components/core/form/SolidFormActionHeader.js.map +1 -1
- package/dist/components/core/form/SolidFormActionHeader.tsx +356 -334
- 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 +3 -3
- package/dist/components/core/form/SolidFormFooter.js.map +1 -1
- package/dist/components/core/form/SolidFormFooter.tsx +26 -19
- 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 +9 -13
- 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 +78 -127
- package/dist/components/core/form/SolidFormView.js.map +1 -1
- package/dist/components/core/form/SolidFormView.tsx +168 -212
- 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 +32 -15
- package/dist/components/core/form/SolidFormViewNormalHeaderButton.js.map +1 -1
- package/dist/components/core/form/SolidFormViewNormalHeaderButton.tsx +40 -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 +33 -69
- 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 +41 -49
- package/dist/components/core/form/fields/SolidMediaMultipleField.js.map +1 -1
- package/dist/components/core/form/fields/SolidMediaMultipleField.tsx +127 -111
- 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 +117 -100
- 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 +122 -117
- 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 +31 -28
- package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.js.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.tsx +105 -103
- package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.d.ts.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.js +38 -30
- package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.js.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.tsx +55 -40
- package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.d.ts.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.js +17 -19
- package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.js.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.tsx +40 -29
- 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 +263 -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/SolidChatterMessageCoModelEntityIdFormViewWidget.d.ts +3 -0
- package/dist/components/core/form/fields/widgets/SolidChatterMessageCoModelEntityIdFormViewWidget.d.ts.map +1 -0
- package/dist/components/core/form/fields/widgets/SolidChatterMessageCoModelEntityIdFormViewWidget.js +92 -0
- package/dist/components/core/form/fields/widgets/SolidChatterMessageCoModelEntityIdFormViewWidget.js.map +1 -0
- package/dist/components/core/form/fields/widgets/SolidChatterMessageCoModelEntityIdFormViewWidget.tsx +68 -0
- package/dist/components/core/form/fields/widgets/SolidIconEditWidget.d.ts.map +1 -1
- package/dist/components/core/form/fields/widgets/SolidIconEditWidget.js +21 -31
- package/dist/components/core/form/fields/widgets/SolidIconEditWidget.js.map +1 -1
- package/dist/components/core/form/fields/widgets/SolidIconEditWidget.tsx +62 -58
- package/dist/components/core/form/fields/widgets/SolidLovTypeChangeFormEditWidget.d.ts +3 -0
- package/dist/components/core/form/fields/widgets/SolidLovTypeChangeFormEditWidget.d.ts.map +1 -0
- package/dist/components/core/form/fields/widgets/SolidLovTypeChangeFormEditWidget.js +111 -0
- package/dist/components/core/form/fields/widgets/SolidLovTypeChangeFormEditWidget.js.map +1 -0
- package/dist/components/core/form/fields/widgets/SolidLovTypeChangeFormEditWidget.tsx +122 -0
- 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 +43 -33
- 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 +44 -8
- package/dist/components/core/kanban/KanbanBoard.js.map +1 -1
- package/dist/components/core/kanban/KanbanBoard.tsx +63 -9
- package/dist/components/core/kanban/KanbanCard.d.ts +8 -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 +67 -224
- package/dist/components/core/kanban/KanbanColumn.d.ts +4 -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 +60 -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/kanban/SolidManyToOneFilterElement.d.ts.map +1 -1
- package/dist/components/core/kanban/SolidManyToOneFilterElement.js.map +1 -1
- package/dist/components/core/kanban/SolidManyToOneFilterElement.tsx +1 -2
- package/dist/components/core/kanban/kanban-fields/SolidMediaMultipleKanbanField.d.ts.map +1 -1
- package/dist/components/core/kanban/kanban-fields/SolidMediaMultipleKanbanField.js +2 -2
- package/dist/components/core/kanban/kanban-fields/SolidMediaMultipleKanbanField.js.map +1 -1
- package/dist/components/core/kanban/kanban-fields/SolidMediaMultipleKanbanField.tsx +21 -10
- package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.d.ts.map +1 -1
- package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.js +2 -2
- package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.js.map +1 -1
- package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.tsx +18 -10
- package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.d.ts.map +1 -1
- package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.js +3 -6
- package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.js.map +1 -1
- package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.tsx +30 -24
- package/dist/components/core/kanban/kanban-fields/relations/SolidRelationManyToOneKanbanField.js.map +1 -1
- package/dist/components/core/kanban/kanban-fields/relations/SolidRelationManyToOneKanbanField.tsx +2 -2
- 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 +1 -0
- package/dist/components/core/list/SolidDataTable.d.ts.map +1 -1
- package/dist/components/core/list/SolidDataTable.js +26 -6
- package/dist/components/core/list/SolidDataTable.js.map +1 -1
- package/dist/components/core/list/SolidDataTable.tsx +38 -7
- package/dist/components/core/list/SolidDataTablePagination.d.ts +15 -0
- package/dist/components/core/list/SolidDataTablePagination.d.ts.map +1 -0
- package/dist/components/core/list/SolidDataTablePagination.js +22 -0
- package/dist/components/core/list/SolidDataTablePagination.js.map +1 -0
- package/dist/components/core/list/SolidDataTablePagination.tsx +71 -0
- 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 +714 -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/SolidListViewRowButtonContextMenu.d.ts +1 -1
- package/dist/components/core/list/SolidListViewRowButtonContextMenu.d.ts.map +1 -1
- package/dist/components/core/list/SolidListViewRowButtonContextMenu.js +6 -7
- package/dist/components/core/list/SolidListViewRowButtonContextMenu.js.map +1 -1
- package/dist/components/core/list/SolidListViewRowButtonContextMenu.tsx +9 -10
- 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.js +1 -1
- package/dist/components/core/list/columns/SolidDateColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidDateColumn.tsx +1 -1
- 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/list/widgets/SolidChatterMessageCoModelEntityIdListViewWidget.d.ts +3 -0
- package/dist/components/core/list/widgets/SolidChatterMessageCoModelEntityIdListViewWidget.d.ts.map +1 -0
- package/dist/components/core/list/widgets/SolidChatterMessageCoModelEntityIdListViewWidget.js +87 -0
- package/dist/components/core/list/widgets/SolidChatterMessageCoModelEntityIdListViewWidget.js.map +1 -0
- package/dist/components/core/list/widgets/SolidChatterMessageCoModelEntityIdListViewWidget.tsx +70 -0
- package/dist/components/core/list/widgets/SolidMqMessageStageListViewWidget.d.ts +3 -0
- package/dist/components/core/list/widgets/SolidMqMessageStageListViewWidget.d.ts.map +1 -0
- package/dist/components/core/list/widgets/SolidMqMessageStageListViewWidget.js +33 -0
- package/dist/components/core/list/widgets/SolidMqMessageStageListViewWidget.js.map +1 -0
- package/dist/components/core/list/widgets/SolidMqMessageStageListViewWidget.tsx +50 -0
- package/dist/components/core/list/widgets/SolidSummarizeListHeaderActionMqMessages.d.ts +3 -0
- package/dist/components/core/list/widgets/SolidSummarizeListHeaderActionMqMessages.d.ts.map +1 -0
- package/dist/components/core/list/widgets/SolidSummarizeListHeaderActionMqMessages.js +158 -0
- package/dist/components/core/list/widgets/SolidSummarizeListHeaderActionMqMessages.js.map +1 -0
- package/dist/components/core/list/widgets/SolidSummarizeListHeaderActionMqMessages.tsx +185 -0
- package/dist/components/core/locales/SolidChatterLocaleTabView.d.ts.map +1 -1
- package/dist/components/core/locales/SolidChatterLocaleTabView.js +56 -7
- package/dist/components/core/locales/SolidChatterLocaleTabView.js.map +1 -1
- package/dist/components/core/locales/SolidChatterLocaleTabView.tsx +97 -42
- package/dist/components/core/locales/SolidLocale.d.ts.map +1 -1
- package/dist/components/core/locales/SolidLocale.js +6 -10
- package/dist/components/core/locales/SolidLocale.js.map +1 -1
- package/dist/components/core/locales/SolidLocale.tsx +23 -29
- package/dist/components/core/locales/solid-locale.css +142 -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 +179 -213
- 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 +154 -103
- 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/ApiKeysTab/ApiKeysTab.css +38 -0
- package/dist/components/core/users/ApiKeysTab/ApiKeysTab.d.ts +8 -0
- package/dist/components/core/users/ApiKeysTab/ApiKeysTab.d.ts.map +1 -0
- package/dist/components/core/users/ApiKeysTab/ApiKeysTab.js +139 -0
- package/dist/components/core/users/ApiKeysTab/ApiKeysTab.js.map +1 -0
- package/dist/components/core/users/ApiKeysTab/ApiKeysTab.tsx +256 -0
- package/dist/components/core/users/ApiKeysTab/GenerateApiKeyModal.d.ts +9 -0
- package/dist/components/core/users/ApiKeysTab/GenerateApiKeyModal.d.ts.map +1 -0
- package/dist/components/core/users/ApiKeysTab/GenerateApiKeyModal.js +157 -0
- package/dist/components/core/users/ApiKeysTab/GenerateApiKeyModal.js.map +1 -0
- package/dist/components/core/users/ApiKeysTab/GenerateApiKeyModal.tsx +183 -0
- package/dist/components/core/users/ApiKeysTab/RevealApiKeyModal.d.ts +9 -0
- package/dist/components/core/users/ApiKeysTab/RevealApiKeyModal.d.ts.map +1 -0
- package/dist/components/core/users/ApiKeysTab/RevealApiKeyModal.js +37 -0
- package/dist/components/core/users/ApiKeysTab/RevealApiKeyModal.js.map +1 -0
- package/dist/components/core/users/ApiKeysTab/RevealApiKeyModal.tsx +111 -0
- package/dist/components/core/users/ApiKeysTab/index.d.ts +4 -0
- package/dist/components/core/users/ApiKeysTab/index.d.ts.map +1 -0
- package/dist/components/core/users/ApiKeysTab/index.js +4 -0
- package/dist/components/core/users/ApiKeysTab/index.js.map +1 -0
- package/dist/components/core/users/ApiKeysTab/index.ts +3 -0
- package/dist/components/core/users/CreateUser.d.ts.map +1 -1
- package/dist/components/core/users/CreateUser.js +147 -155
- package/dist/components/core/users/CreateUser.js.map +1 -1
- package/dist/components/core/users/CreateUser.tsx +396 -370
- 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 +215 -84
- package/dist/components/layout/AppSidebar.js.map +1 -1
- package/dist/components/layout/AppSidebar.tsx +357 -163
- 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 -7
- package/dist/components/layout/FilterMenu.js.map +1 -1
- package/dist/components/layout/FilterMenu.tsx +22 -20
- 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 +130 -64
- package/dist/components/layout/SolidAiStudioLayout.js.map +1 -1
- package/dist/components/layout/SolidAiStudioLayout.tsx +141 -189
- 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 +19 -0
- package/dist/components/shad-cn-ui/SolidCodeEditor.js.map +1 -0
- package/dist/components/shad-cn-ui/SolidCodeEditor.tsx +48 -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 +66 -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 +41 -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 +141 -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 +149 -0
- package/dist/components/shad-cn-ui/SolidIcon.js.map +1 -0
- package/dist/components/shad-cn-ui/SolidIcon.tsx +223 -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 +2 -1
- package/dist/components/shad-cn-ui/SolidSelect.d.ts.map +1 -1
- package/dist/components/shad-cn-ui/SolidSelect.js +4 -3
- package/dist/components/shad-cn-ui/SolidSelect.js.map +1 -1
- package/dist/components/shad-cn-ui/SolidSelect.tsx +5 -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 +36 -0
- package/dist/components/shad-cn-ui/SolidTextarea.js.map +1 -0
- package/dist/components/shad-cn-ui/SolidTextarea.tsx +26 -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/components/solid-ui/SolidButton.d.ts +14 -0
- package/dist/components/solid-ui/SolidButton.d.ts.map +1 -0
- package/dist/components/solid-ui/SolidButton.js +36 -0
- package/dist/components/solid-ui/SolidButton.js.map +1 -0
- package/dist/components/solid-ui/SolidButton.tsx +54 -0
- package/dist/components/solid-ui/SolidTabs.d.ts +18 -0
- package/dist/components/solid-ui/SolidTabs.d.ts.map +1 -0
- package/dist/components/solid-ui/SolidTabs.js +22 -0
- package/dist/components/solid-ui/SolidTabs.js.map +1 -0
- package/dist/components/solid-ui/SolidTabs.tsx +73 -0
- package/dist/components/solid-ui/index.d.ts +3 -0
- package/dist/components/solid-ui/index.d.ts.map +1 -0
- package/dist/components/solid-ui/index.js +3 -0
- package/dist/components/solid-ui/index.js.map +1 -0
- package/dist/components/solid-ui/index.ts +2 -0
- package/dist/helpers/# no such endpoints exist, need to calle +3 -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 +111 -90
- package/dist/helpers/registry.js.map +1 -1
- package/dist/helpers/registry.ts +126 -91
- 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 +18 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +15 -5
- package/dist/index.js.map +1 -1
- package/dist/index.ts +95 -6
- package/dist/redux/api/apiKeyApi.d.ts +47 -0
- package/dist/redux/api/apiKeyApi.d.ts.map +1 -0
- package/dist/redux/api/apiKeyApi.js +47 -0
- package/dist/redux/api/apiKeyApi.js.map +1 -0
- package/dist/redux/api/apiKeyApi.ts +69 -0
- package/dist/redux/store/defaultStoreConfig.d.ts +51 -35
- package/dist/redux/store/defaultStoreConfig.d.ts.map +1 -1
- package/dist/redux/store/defaultStoreConfig.js +32 -3
- package/dist/redux/store/defaultStoreConfig.js.map +1 -1
- package/dist/redux/store/defaultStoreConfig.ts +33 -33
- package/dist/resources/globals.css +3231 -808
- package/dist/resources/images/SolidXLogo-dark.svg +29 -0
- package/dist/resources/images/SolidXLogo-light.svg +29 -0
- package/dist/resources/shadcn-base.css +3040 -865
- package/dist/resources/solid-responsive.css +42 -86
- package/dist/resources/themes/solid-dark-purple/theme.css +15 -20
- 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/guards/AuthGuard.d.ts +5 -1
- package/dist/routes/guards/AuthGuard.d.ts.map +1 -1
- package/dist/routes/guards/AuthGuard.js +13 -2
- package/dist/routes/guards/AuthGuard.js.map +1 -1
- package/dist/routes/guards/AuthGuard.tsx +27 -3
- package/dist/routes/guards/GuestGuard.d.ts +2 -0
- package/dist/routes/guards/GuestGuard.d.ts.map +1 -0
- package/dist/routes/guards/GuestGuard.js +18 -0
- package/dist/routes/guards/GuestGuard.js.map +1 -0
- package/dist/routes/guards/GuestGuard.tsx +20 -0
- 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 +5 -5
- package/dist/routes/solidRoutes.d.ts.map +1 -1
- package/dist/routes/solidRoutes.js +18 -1
- package/dist/routes/solidRoutes.js.map +1 -1
- package/dist/routes/solidRoutes.tsx +19 -1
- 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 +30 -27
- package/package.json +10 -4
- package/dist/components/auth/SolidOTPVerify.d.ts +0 -3
- package/dist/components/auth/SolidOTPVerify.d.ts.map +0 -1
- package/dist/components/auth/SolidOTPVerify.js +0 -67
- package/dist/components/auth/SolidOTPVerify.js.map +0 -1
- package/dist/components/auth/SolidOTPVerify.tsx +0 -133
- package/dist/components/core/common/LoadDynamicJsxComponent.d.ts +0 -2
- package/dist/components/core/common/LoadDynamicJsxComponent.d.ts.map +0 -1
- package/dist/components/core/common/LoadDynamicJsxComponent.js +0 -50
- package/dist/components/core/common/LoadDynamicJsxComponent.js.map +0 -1
- package/dist/components/core/common/LoadDynamicJsxComponent.tsx +0 -70
- package/dist/nextAuth/authProviders.d.ts +0 -4
- package/dist/nextAuth/authProviders.d.ts.map +0 -1
- package/dist/nextAuth/authProviders.js +0 -198
- package/dist/nextAuth/authProviders.js.map +0 -1
- package/dist/nextAuth/authProviders.tsx +0 -232
- package/dist/nextAuth/handleLogout.d.ts +0 -2
- package/dist/nextAuth/handleLogout.d.ts.map +0 -1
- package/dist/nextAuth/handleLogout.js +0 -36
- package/dist/nextAuth/handleLogout.js.map +0 -1
- package/dist/nextAuth/handleLogout.tsx +0 -39
- package/dist/nextAuth/refreshAccessToken.d.ts +0 -2
- package/dist/nextAuth/refreshAccessToken.d.ts.map +0 -1
- package/dist/nextAuth/refreshAccessToken.js +0 -24
- package/dist/nextAuth/refreshAccessToken.js.map +0 -1
- package/dist/nextAuth/refreshAccessToken.tsx +0 -28
- package/dist/redux/features/settingsSlice.d.ts +0 -20
- package/dist/redux/features/settingsSlice.d.ts.map +0 -1
- package/dist/redux/features/settingsSlice.js +0 -39
- package/dist/redux/features/settingsSlice.js.map +0 -1
- package/dist/redux/features/settingsSlice.ts +0 -60
|
@@ -1,112 +1,243 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
1
12
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
13
|
import { useGetSolidMenuBasedOnRoleQuery } from "../../redux/api/solidMenuApi";
|
|
3
|
-
import {
|
|
14
|
+
import { hideNavbar, toggleNavbar } from "../../redux/features/navbarSlice";
|
|
4
15
|
import { setIsAuthenticated, setUser } from "../../redux/features/userSlice";
|
|
5
16
|
import { useSession } from "../../hooks/useSession";
|
|
6
|
-
import { useEffect,
|
|
17
|
+
import { useEffect, useMemo, useState } from "react";
|
|
7
18
|
import { useDispatch, useSelector } from "react-redux";
|
|
8
|
-
import NavbarTwoMenu from "./navbar-two-menu";
|
|
9
19
|
import UserProfileMenu from "./user-profile-menu";
|
|
10
|
-
import
|
|
11
|
-
import SettingImage from '../../resources/images/Navigation/SolidSettinsIcon.svg';
|
|
12
|
-
import { Avatar } from "primereact/avatar";
|
|
20
|
+
import SolidLink from "../common/Link";
|
|
13
21
|
import { usePathname } from "../../hooks/usePathname";
|
|
22
|
+
import { useSearchParams } from "../../hooks/useSearchParams";
|
|
14
23
|
import { env } from "../../adapters/env";
|
|
24
|
+
var defaultMenuKey = env("NEXT_PUBLIC_DEFAULT_MENU_KEY");
|
|
25
|
+
var SIDEBAR_STORAGE_KEY = "solidx.sidebar.collapsed";
|
|
26
|
+
var SELECTED_WORKSPACE_STORAGE_KEY = "solidx.sidebar.selected-workspace";
|
|
27
|
+
var SIDEBAR_TOGGLE_EVENT = "solidx:sidebar-toggle";
|
|
28
|
+
var DESKTOP_SIDEBAR_WIDTH = "272px";
|
|
29
|
+
var DEFAULT_WORKSPACE_TITLE = "Solid Core";
|
|
30
|
+
var DEFAULT_WORKSPACE_KEY = "solid-core";
|
|
31
|
+
function normalizePath(path) {
|
|
32
|
+
if (!path || path === "/")
|
|
33
|
+
return "/";
|
|
34
|
+
return path.endsWith("/") ? path.slice(0, -1) : path;
|
|
35
|
+
}
|
|
36
|
+
function getPathAndParams(targetPath) {
|
|
37
|
+
var parsed = new URL(targetPath, "http://localhost");
|
|
38
|
+
return {
|
|
39
|
+
pathname: normalizePath(parsed.pathname),
|
|
40
|
+
searchParams: new URLSearchParams(parsed.search),
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function doesSearchParamsMatchSubset(requiredParams, currentParams) {
|
|
44
|
+
var currentValueCounts = new Map();
|
|
45
|
+
currentParams.forEach(function (value, key) {
|
|
46
|
+
var token = "".concat(key, "=").concat(value);
|
|
47
|
+
currentValueCounts.set(token, (currentValueCounts.get(token) || 0) + 1);
|
|
48
|
+
});
|
|
49
|
+
var isSubset = true;
|
|
50
|
+
requiredParams.forEach(function (value, key) {
|
|
51
|
+
if (!isSubset)
|
|
52
|
+
return;
|
|
53
|
+
var token = "".concat(key, "=").concat(value);
|
|
54
|
+
var count = currentValueCounts.get(token) || 0;
|
|
55
|
+
if (count <= 0) {
|
|
56
|
+
isSubset = false;
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
currentValueCounts.set(token, count - 1);
|
|
60
|
+
});
|
|
61
|
+
return isSubset;
|
|
62
|
+
}
|
|
63
|
+
function isMenuPathActive(itemPath, currentPathname, currentSearchParams) {
|
|
64
|
+
if (!itemPath)
|
|
65
|
+
return false;
|
|
66
|
+
var _a = getPathAndParams(itemPath), itemPathname = _a.pathname, itemSearchParams = _a.searchParams;
|
|
67
|
+
if (itemPathname !== normalizePath(currentPathname))
|
|
68
|
+
return false;
|
|
69
|
+
return doesSearchParamsMatchSubset(itemSearchParams, currentSearchParams);
|
|
70
|
+
}
|
|
71
|
+
function filterMenuItems(items, query) {
|
|
72
|
+
var normalizedQuery = query.trim().toLowerCase();
|
|
73
|
+
if (!normalizedQuery)
|
|
74
|
+
return items;
|
|
75
|
+
var next = [];
|
|
76
|
+
items.forEach(function (item) {
|
|
77
|
+
var children = item.children ? filterMenuItems(item.children, normalizedQuery) : [];
|
|
78
|
+
var matchesSelf = item.title.toLowerCase().includes(normalizedQuery);
|
|
79
|
+
if (matchesSelf || children.length > 0) {
|
|
80
|
+
next.push(__assign(__assign({}, item), { children: children }));
|
|
81
|
+
}
|
|
82
|
+
});
|
|
83
|
+
return next;
|
|
84
|
+
}
|
|
85
|
+
function resolveDefaultWorkspace(items) {
|
|
86
|
+
return (items.find(function (item) { return item.key === DEFAULT_WORKSPACE_KEY; }) ||
|
|
87
|
+
items.find(function (item) { return item.title.trim().toLowerCase() === DEFAULT_WORKSPACE_TITLE.toLowerCase(); }) ||
|
|
88
|
+
items.find(function (item) { return item.key === defaultMenuKey; }) ||
|
|
89
|
+
items[0]);
|
|
90
|
+
}
|
|
91
|
+
var SidebarMenuTree = function (_a) {
|
|
92
|
+
var items = _a.items, pathname = _a.pathname, searchParams = _a.searchParams, forceExpand = _a.forceExpand;
|
|
93
|
+
var _b = useState({}), expandedKeys = _b[0], setExpandedKeys = _b[1];
|
|
94
|
+
var buildNodeId = function (node, parentId, index) {
|
|
95
|
+
var base = node.key || node.path || node.title || "node-".concat(index);
|
|
96
|
+
return "".concat(parentId, "/").concat(base);
|
|
97
|
+
};
|
|
98
|
+
useEffect(function () {
|
|
99
|
+
var initialExpanded = {};
|
|
100
|
+
if (forceExpand) {
|
|
101
|
+
var walk_1 = function (nodes, parentId) {
|
|
102
|
+
if (parentId === void 0) { parentId = "root"; }
|
|
103
|
+
nodes.forEach(function (node, index) {
|
|
104
|
+
var nodeId = buildNodeId(node, parentId, index);
|
|
105
|
+
if (node.children && node.children.length > 0 && node.key) {
|
|
106
|
+
initialExpanded[nodeId] = true;
|
|
107
|
+
walk_1(node.children, nodeId);
|
|
108
|
+
}
|
|
109
|
+
else if (node.children && node.children.length > 0) {
|
|
110
|
+
initialExpanded[nodeId] = true;
|
|
111
|
+
walk_1(node.children, nodeId);
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
};
|
|
115
|
+
walk_1(items);
|
|
116
|
+
}
|
|
117
|
+
setExpandedKeys(initialExpanded);
|
|
118
|
+
}, [items, forceExpand]);
|
|
119
|
+
var toggleExpanded = function (nodeId) {
|
|
120
|
+
setExpandedKeys(function (prev) {
|
|
121
|
+
var _a;
|
|
122
|
+
return (__assign(__assign({}, prev), (_a = {}, _a[nodeId] = !prev[nodeId], _a)));
|
|
123
|
+
});
|
|
124
|
+
};
|
|
125
|
+
var renderNode = function (node, depth, parentId, index) {
|
|
126
|
+
if (depth === void 0) { depth = 0; }
|
|
127
|
+
if (parentId === void 0) { parentId = "root"; }
|
|
128
|
+
if (index === void 0) { index = 0; }
|
|
129
|
+
var nodeId = buildNodeId(node, parentId, index);
|
|
130
|
+
var hasChildren = !!(node.children && node.children.length > 0);
|
|
131
|
+
var isExpanded = expandedKeys[nodeId] === true;
|
|
132
|
+
var isActive = isMenuPathActive(node.path, pathname, searchParams);
|
|
133
|
+
var paddingLeft = 12 + depth * 14;
|
|
134
|
+
return (_jsxs("li", { className: "solid-sidebar-tree-item", children: [_jsxs("div", { className: "solid-sidebar-tree-row ".concat(isActive ? "is-active" : ""), style: { paddingLeft: paddingLeft }, children: [hasChildren ? (_jsx("button", { type: "button", className: "solid-sidebar-tree-parent", onClick: function () { return toggleExpanded(nodeId); }, "aria-expanded": isExpanded, "aria-label": "Toggle ".concat(node.title), children: _jsx("span", { className: "solid-sidebar-tree-label", children: node.title }) })) : node.path ? (_jsx(SolidLink, { href: node.path, className: "solid-sidebar-tree-link", children: _jsx("span", { className: "solid-sidebar-tree-label", children: node.title }) })) : (_jsx("span", { className: "solid-sidebar-tree-label", children: node.title })), hasChildren && (_jsx("button", { type: "button", className: "solid-sidebar-tree-toggle", onClick: function () { return toggleExpanded(nodeId); }, "aria-label": "Toggle ".concat(node.title), children: _jsx("span", { className: "solid-tree-plusminus", children: isExpanded ? "−" : "+" }) }))] }), hasChildren && isExpanded && (_jsx("ul", { className: "solid-sidebar-tree-list solid-sidebar-tree-children", children: node.children.map(function (child, childIndex) { return renderNode(child, depth + 1, nodeId, childIndex); }) }))] }, nodeId));
|
|
135
|
+
};
|
|
136
|
+
return _jsx("ul", { className: "solid-sidebar-tree-list", children: items.map(function (item, index) { return renderNode(item, 0, "root", index); }) });
|
|
137
|
+
};
|
|
15
138
|
var AppSidebar = function () {
|
|
16
139
|
var dispatch = useDispatch();
|
|
17
140
|
var pathname = usePathname();
|
|
18
|
-
|
|
141
|
+
var searchParams = useSearchParams();
|
|
19
142
|
var visibleNavbar = useSelector(function (state) { return state.navbarState.visibleNavbar; });
|
|
20
143
|
var menu = useGetSolidMenuBasedOnRoleQuery("").data;
|
|
21
|
-
var _a = useState(),
|
|
22
|
-
var _b = useState(),
|
|
23
|
-
var _c = useState(
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
144
|
+
var _a = useState(""), searchTerm = _a[0], setSearchTerm = _a[1];
|
|
145
|
+
var _b = useState(false), workspaceOpen = _b[0], setWorkspaceOpen = _b[1];
|
|
146
|
+
var _c = useState(function () {
|
|
147
|
+
if (typeof window === "undefined")
|
|
148
|
+
return "";
|
|
149
|
+
return window.localStorage.getItem(SELECTED_WORKSPACE_STORAGE_KEY) || "";
|
|
150
|
+
}), selectedWorkspaceKey = _c[0], setSelectedWorkspaceKey = _c[1];
|
|
151
|
+
var _d = useState(typeof window === "undefined" ? true : window.innerWidth > 1199), isDesktop = _d[0], setIsDesktop = _d[1];
|
|
152
|
+
var _e = useState(function () {
|
|
153
|
+
if (typeof window === "undefined")
|
|
154
|
+
return false;
|
|
155
|
+
var stored = window.localStorage.getItem(SIDEBAR_STORAGE_KEY);
|
|
156
|
+
if (stored === null)
|
|
157
|
+
return true;
|
|
158
|
+
return stored === "true";
|
|
159
|
+
}), isCollapsed = _e[0], setIsCollapsed = _e[1];
|
|
31
160
|
var data = useSession().data;
|
|
32
|
-
// const handleToggle = () => setShow(!show);
|
|
33
|
-
var handleToggle = function () { return dispatch(toggleNavbar()); };
|
|
34
|
-
var handleMenu = function (m) {
|
|
35
|
-
// setShow(true);
|
|
36
|
-
dispatch(showNavbar());
|
|
37
|
-
setCurrentMainMenu(m.title);
|
|
38
|
-
setCurrentMenu(m.children);
|
|
39
|
-
};
|
|
40
|
-
useEffect(function () {
|
|
41
|
-
// Check if screen is small at the time of route change
|
|
42
|
-
if (window.innerWidth <= 1199) {
|
|
43
|
-
dispatch(hideNavbar());
|
|
44
|
-
}
|
|
45
|
-
}, [pathname, dispatch]);
|
|
46
161
|
useEffect(function () {
|
|
47
162
|
if (data) {
|
|
48
163
|
dispatch(setUser(data === null || data === void 0 ? void 0 : data.user));
|
|
49
164
|
dispatch(setIsAuthenticated(true));
|
|
50
165
|
}
|
|
51
|
-
}, [data]);
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
166
|
+
}, [data, dispatch]);
|
|
167
|
+
useEffect(function () {
|
|
168
|
+
var onResize = function () {
|
|
169
|
+
var desktop = window.innerWidth > 1199;
|
|
170
|
+
setIsDesktop(desktop);
|
|
171
|
+
if (desktop) {
|
|
172
|
+
dispatch(hideNavbar());
|
|
173
|
+
}
|
|
174
|
+
};
|
|
175
|
+
onResize();
|
|
176
|
+
window.addEventListener("resize", onResize);
|
|
177
|
+
return function () { return window.removeEventListener("resize", onResize); };
|
|
178
|
+
}, [dispatch]);
|
|
179
|
+
useEffect(function () {
|
|
180
|
+
if (typeof window === "undefined")
|
|
181
|
+
return;
|
|
182
|
+
window.localStorage.setItem(SIDEBAR_STORAGE_KEY, String(isCollapsed));
|
|
183
|
+
}, [isCollapsed]);
|
|
184
|
+
useEffect(function () {
|
|
185
|
+
if (typeof window === "undefined")
|
|
186
|
+
return;
|
|
187
|
+
if (!selectedWorkspaceKey) {
|
|
188
|
+
window.localStorage.removeItem(SELECTED_WORKSPACE_STORAGE_KEY);
|
|
189
|
+
return;
|
|
57
190
|
}
|
|
58
|
-
|
|
191
|
+
window.localStorage.setItem(SELECTED_WORKSPACE_STORAGE_KEY, selectedWorkspaceKey);
|
|
192
|
+
}, [selectedWorkspaceKey]);
|
|
193
|
+
useEffect(function () {
|
|
194
|
+
var width = isDesktop ? (isCollapsed ? "0px" : DESKTOP_SIDEBAR_WIDTH) : "0px";
|
|
195
|
+
document.documentElement.style.setProperty("--solid-sidebar-width", width);
|
|
196
|
+
}, [isDesktop, isCollapsed]);
|
|
59
197
|
useEffect(function () {
|
|
60
|
-
|
|
61
|
-
|
|
198
|
+
var _a;
|
|
199
|
+
if (!((_a = menu === null || menu === void 0 ? void 0 : menu.data) === null || _a === void 0 ? void 0 : _a.length))
|
|
200
|
+
return;
|
|
201
|
+
var defaultWorkspace = resolveDefaultWorkspace(menu.data);
|
|
202
|
+
var hasSelectedWorkspace = menu.data.some(function (workspace) { return workspace.key === selectedWorkspaceKey; });
|
|
203
|
+
var nextWorkspaceKey = hasSelectedWorkspace ? selectedWorkspaceKey : (defaultWorkspace === null || defaultWorkspace === void 0 ? void 0 : defaultWorkspace.key) || "";
|
|
204
|
+
if (nextWorkspaceKey !== selectedWorkspaceKey) {
|
|
205
|
+
setSelectedWorkspaceKey(nextWorkspaceKey);
|
|
62
206
|
}
|
|
63
|
-
|
|
64
|
-
|
|
207
|
+
}, [menu, selectedWorkspaceKey]);
|
|
208
|
+
useEffect(function () {
|
|
209
|
+
if (!isDesktop) {
|
|
210
|
+
dispatch(hideNavbar());
|
|
65
211
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
key: "general-settings",
|
|
73
|
-
children: [
|
|
74
|
-
{
|
|
75
|
-
title: "Settings",
|
|
76
|
-
path: "",
|
|
77
|
-
key: "settings-menu-item",
|
|
78
|
-
children: [
|
|
79
|
-
{
|
|
80
|
-
title: "App Settings",
|
|
81
|
-
path: "/admin/settings/app-settings",
|
|
82
|
-
key: "app-setting"
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
title: "Authentication Settings",
|
|
86
|
-
path: "/admin/settings/authentication-settings",
|
|
87
|
-
key: "auth-setting"
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
title: "Misc",
|
|
91
|
-
path: "/admin/settings/misc-settings",
|
|
92
|
-
key: "misc-setting"
|
|
93
|
-
}
|
|
94
|
-
]
|
|
212
|
+
}, [pathname, dispatch, isDesktop]);
|
|
213
|
+
useEffect(function () {
|
|
214
|
+
var onToggleRequest = function () {
|
|
215
|
+
if (window.innerWidth > 1199) {
|
|
216
|
+
setIsCollapsed(function (prev) { return !prev; });
|
|
217
|
+
return;
|
|
95
218
|
}
|
|
96
|
-
|
|
97
|
-
|
|
219
|
+
dispatch(toggleNavbar());
|
|
220
|
+
};
|
|
221
|
+
window.addEventListener(SIDEBAR_TOGGLE_EVENT, onToggleRequest);
|
|
222
|
+
return function () { return window.removeEventListener(SIDEBAR_TOGGLE_EVENT, onToggleRequest); };
|
|
223
|
+
}, [dispatch]);
|
|
224
|
+
var workspaces = (menu === null || menu === void 0 ? void 0 : menu.data) || [];
|
|
225
|
+
var selectedWorkspace = workspaces.find(function (m) { return m.key === selectedWorkspaceKey; }) || workspaces[0];
|
|
226
|
+
var selectedWorkspaceChildren = (selectedWorkspace === null || selectedWorkspace === void 0 ? void 0 : selectedWorkspace.children) || [];
|
|
227
|
+
var filteredMenu = useMemo(function () { return filterMenuItems(selectedWorkspaceChildren, searchTerm); }, [selectedWorkspaceChildren, searchTerm]);
|
|
228
|
+
var shellClasses = [
|
|
229
|
+
"solid-sidebar",
|
|
230
|
+
isDesktop && isCollapsed ? "is-collapsed" : "",
|
|
231
|
+
!isDesktop && visibleNavbar ? "is-open" : "",
|
|
232
|
+
]
|
|
233
|
+
.filter(Boolean)
|
|
234
|
+
.join(" ");
|
|
235
|
+
var selectWorkspace = function (workspace) {
|
|
236
|
+
setSelectedWorkspaceKey(workspace.key || "");
|
|
237
|
+
setSearchTerm("");
|
|
238
|
+
setWorkspaceOpen(false);
|
|
98
239
|
};
|
|
99
|
-
return (_jsxs(_Fragment, { children: [visibleNavbar &&
|
|
100
|
-
var iconSrc = typeof m.icon === "string"
|
|
101
|
-
? m.icon
|
|
102
|
-
: m.icon && typeof m.icon.src === "string"
|
|
103
|
-
? m.icon.src
|
|
104
|
-
: null;
|
|
105
|
-
return (_jsx("a", { className: "flex align-items-center menu-item ".concat(currentMainMenu === m.title ? "active-menu-image" : ""), onClick: function () { return handleMenu(m); }, style: { cursor: 'pointer' }, children: m.icon ?
|
|
106
|
-
_jsx(Image, { src: iconSrc.startsWith("/") ? iconSrc : "".concat(env("API_URL"), "/").concat(iconSrc), alt: m.title, height: 30, width: 30, className: "relative", unoptimized: true })
|
|
107
|
-
:
|
|
108
|
-
_jsx("div", { children: _jsx(Avatar, { label: m.title.charAt(0), shape: "circle", style: { backgroundColor: 'var(--primary-color)', fontWeight: 500 } }) }) }, m.title));
|
|
109
|
-
})) }), _jsx(UserProfileMenu, {})] }), currentMenu && (_jsxs("div", { className: "sidebar-right ".concat(visibleNavbar ? "open" : ""), children: [_jsx("div", { className: "flex relative justify-content-between align-items-center py-3 xl:py-4 px-3", children: _jsx("div", { className: "text-base sidebar-title font-semibold", children: currentMainMenu && currentMainMenu }) }), _jsx("div", { className: "px-3 solid-sidebar-menuitems-wrapper", children: _jsx(NavbarTwoMenu, { menuItems: currentMenu }) })] }))] }));
|
|
240
|
+
return (_jsxs(_Fragment, { children: [!isDesktop && visibleNavbar && _jsx("div", { className: "solid-sidebar-backdrop", onClick: function () { return dispatch(toggleNavbar()); } }), _jsxs("aside", { className: shellClasses, children: [_jsx("div", { className: "solid-sidebar-header", children: _jsxs("div", { className: "solid-workspace-switcher", children: [_jsxs("button", { type: "button", className: "solid-workspace-trigger", onClick: function () { return setWorkspaceOpen(function (prev) { return !prev; }); }, "aria-label": "Select workspace", children: [_jsx("span", { className: "solid-workspace-avatar", children: ((selectedWorkspace === null || selectedWorkspace === void 0 ? void 0 : selectedWorkspace.title) || "W").slice(0, 1).toUpperCase() }), !isCollapsed && (_jsxs(_Fragment, { children: [_jsxs("span", { className: "solid-workspace-label-wrap", children: [_jsx("span", { className: "solid-workspace-label-top", children: "Workspace" }), _jsx("span", { className: "solid-workspace-label", children: (selectedWorkspace === null || selectedWorkspace === void 0 ? void 0 : selectedWorkspace.title) || "Workspace" })] }), _jsx("span", { className: "solid-workspace-chevron-dual ".concat(workspaceOpen ? "is-open" : ""), "aria-hidden": "true", children: _jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: "14", height: "14", viewBox: "0 0 14 14", fill: "none", children: [_jsx("path", { d: "M4 6L7 3L10 6", stroke: "currentColor", strokeWidth: "1.25", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("path", { d: "M4 8L7 11L10 8", stroke: "currentColor", strokeWidth: "1.25", strokeLinecap: "round", strokeLinejoin: "round" })] }) })] }))] }), workspaceOpen && !isCollapsed && (_jsx("div", { className: "solid-workspace-menu", children: workspaces.map(function (workspace) { return (_jsxs("button", { type: "button", className: "solid-workspace-item ".concat(workspace.key === (selectedWorkspace === null || selectedWorkspace === void 0 ? void 0 : selectedWorkspace.key) ? "is-active" : ""), onClick: function () { return selectWorkspace(workspace); }, children: [_jsx("span", { className: "solid-workspace-item-avatar", children: workspace.title.slice(0, 1).toUpperCase() }), _jsx("span", { className: "solid-workspace-item-label", children: workspace.title })] }, workspace.key || workspace.title)); }) }))] }) }), !isCollapsed ? (_jsxs(_Fragment, { children: [_jsx("div", { className: "solid-sidebar-search-wrap", children: _jsx("input", { type: "text", value: searchTerm, onChange: function (e) { return setSearchTerm(e.target.value); }, placeholder: "Search in menu...", className: "solid-sidebar-search" }) }), _jsx("div", { className: "solid-sidebar-tree-wrap", children: _jsx(SidebarMenuTree, { items: filteredMenu, pathname: pathname, searchParams: searchParams, forceExpand: !!searchTerm.trim() }) })] })) : (_jsx("div", { className: "solid-sidebar-collapsed-nav", children: filteredMenu.slice(0, 10).map(function (item) { return (_jsx(SolidLink, { href: item.path || "#", className: "solid-collapsed-item ".concat(isMenuPathActive(item.path, pathname, searchParams) ? "is-active" : ""), title: item.title, children: item.title.slice(0, 1).toUpperCase() }, item.key || item.title)); }) })), _jsx("div", { className: "solid-sidebar-footer", children: _jsx(UserProfileMenu, {}) })] }), isDesktop && isCollapsed && (_jsx("button", { type: "button", className: "solid-sidebar-hotspot", onClick: function () { return setIsCollapsed(false); }, "aria-label": "Expand sidebar", title: "Expand sidebar" }))] }));
|
|
110
241
|
};
|
|
111
242
|
export default AppSidebar;
|
|
112
243
|
//# sourceMappingURL=AppSidebar.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppSidebar.js","sourceRoot":"","sources":["../../../src/components/layout/AppSidebar.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,+BAA+B,EAAE,MAAM,8BAA8B,CAAC;AAC/E,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,kCAAkC,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AAC7E,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,aAAa,MAAM,mBAAmB,CAAC;AAC9C,OAAO,eAAe,MAAM,qBAAqB,CAAC;AAClD,OAAO,KAAK,MAAM,iBAAiB,CAAC;AACpC,OAAO,YAAY,MAAM,wDAAwD,CAAA;AACjF,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,GAAG,EAAE,MAAM,oBAAoB,CAAC;AAEzC,IAAM,UAAU,GAAG;IACf,IAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAC/B,IAAM,QAAQ,GAAG,WAAW,EAAE,CAAC;IAC/B,2CAA2C;IAC3C,IAAM,aAAa,GAAG,WAAW,CAC7B,UAAC,KAAU,IAAK,OAAA,KAAK,CAAC,WAAW,CAAC,aAAa,EAA/B,CAA+B,CAClD,CAAC;IACM,IAAM,IAAI,GAAK,+BAA+B,CAAC,EAAE,CAAC,K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KAAK,EACZ,MAAM,EAAE,EAAE,EACV,KAAK,EAAE,EAAE,EACT,SAAS,EAAC,UAAU,EACpB,WAAW,SACb;oCACF,CAAC;wCACD,wBACI,KAAC,MAAM,IAAC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,KAAK,EAAC,QAAQ,EAAC,KAAK,EAAE,EAAE,eAAe,EAAE,sBAAsB,EAAE,UAAU,EAAE,GAAG,EAAE,GAAI,GACtH,IAjBL,CAAC,CAAC,KAAK,CAmBZ,CACP,CAAA;wBACL,CAAC,CAAC,CAAA,GACA,EAEN,KAAC,eAAe,KAAmB,IACjC,EACL,WAAW,IAAI,CACZ,eAAK,SAAS,EAAE,wBAAiB,aAAa,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAE,aAE1D,cAAK,SAAS,EAAC,4EAA4E,YACvF,cAAK,SAAS,EAAC,uCAAuC,YAAE,eAAe,IAAI,eAAe,GAAO,GAW/F,EAcN,cAAK,SAAS,EAAC,sCAAsC,YACjD,KAAC,aAAa,IAAC,SAAS,EAAE,WAAW,GAAkB,GACrD,IACJ,CACT,IACF,CACN,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC","sourcesContent":["import { useGetSolidMenuBasedOnRoleQuery } from \"../../redux/api/solidMenuApi\";\nimport { showNavbar, toggleNavbar, hideNavbar } from \"../../redux/features/navbarSlice\";\nimport { setIsAuthenticated, setUser } from \"../../redux/features/userSlice\";\nimport { useSession } from \"../../hooks/useSession\";\nimport { useEffect, useRef, useState } from \"react\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport NavbarTwoMenu from \"./navbar-two-menu\";\nimport UserProfileMenu from \"./user-profile-menu\";\nimport Image from \"../common/Image\";\nimport SettingImage from '../../resources/images/Navigation/SolidSettinsIcon.svg'\nimport { Avatar } from \"primereact/avatar\";\nimport { usePathname } from \"../../hooks/usePathname\";\nimport { env } from \"../../adapters/env\";\n\nconst AppSidebar = () => {\n const dispatch = useDispatch();\n const pathname = usePathname();\n // const [show, setShow] = useState(false);\n const visibleNavbar = useSelector(\n (state: any) => state.navbarState.visibleNavbar\n );\n const { data: menu } = useGetSolidMenuBasedOnRoleQuery(\"\");\n\n\n const [currentMenu, setCurrentMenu] = useState();\n const [currentMainMenu, setCurrentMainMenu] = useState();\n const [searchTerm, setSearchTerm] = useState(\"\");\n\n useEffect(() => {\n if (menu) {\n setCurrentMenu(menu && menu.data.length > 0 && menu.data.filter((m: any) => m.key === env(\"NEXT_PUBLIC_DEFAULT_MENU_KEY\"))[0]?.children);\n setCurrentMainMenu(menu && menu.data.length > 0 && menu.data.filter((m: any) => m.key === env(\"NEXT_PUBLIC_DEFAULT_MENU_KEY\"))[0]?.title)\n }\n }, [menu])\n\n const { data } = useSession();\n\n // const handleToggle = () => setShow(!show);\n const handleToggle = () => dispatch(toggleNavbar());\n const handleMenu = (m: any) => {\n // setShow(true);\n dispatch(showNavbar());\n setCurrentMainMenu(m.title);\n setCurrentMenu(m.children);\n };\n\n useEffect(() => {\n // Check if screen is small at the time of route change\n if (window.innerWidth <= 1199) {\n dispatch(hideNavbar());\n }\n }, [pathname, dispatch]);\n\n\n useEffect(() => {\n if (data) {\n dispatch(setUser(data?.user));\n dispatch(setIsAuthenticated(true));\n }\n }, [data]);\n\n const [isSearchShow, setSearchShow] = useState(false);\n const searchRef = useRef<HTMLDivElement>(null);\n\n const handleClickOutside = (event: any) => {\n if (searchRef.current && !searchRef.current.contains(event.target)) {\n setSearchShow(false);\n }\n };\n\n useEffect(() => {\n if (isSearchShow) {\n document.addEventListener(\"mousedown\", handleClickOutside);\n } else {\n document.removeEventListener(\"mousedown\", handleClickOutside);\n }\n\n return () => {\n document.removeEventListener(\"mousedown\", handleClickOutside);\n };\n }, [isSearchShow]);\n\n const additionalMenu = {\n title: \"General Settings\",\n key: \"general-settings\",\n children: [\n {\n title: \"Settings\",\n path: \"\",\n key: \"settings-menu-item\",\n children: [\n {\n title: \"App Settings\",\n path: \"/admin/settings/app-settings\",\n key: \"app-setting\"\n },\n {\n title: \"Authentication Settings\",\n path: \"/admin/settings/authentication-settings\",\n key: \"auth-setting\"\n },\n {\n title: \"Misc\",\n path: \"/admin/settings/misc-settings\",\n key: \"misc-setting\"\n }\n ]\n }\n ],\n icon: env(\"NEXT_PUBLIC_SETTINGS_ICON\") ? env(\"NEXT_PUBLIC_SETTINGS_ICON\") : SettingImage\n };\n\n\n\n return (\n <>\n {visibleNavbar && (\n <div\n className=\"sidebar-backdrop\"\n onClick={handleToggle}\n />\n )}\n {/* commented this as this is not working properly @Jenendar to figure this out... */}\n {(visibleNavbar || currentMainMenu) && (\n <div\n className={`sidebar-toggle-button ${!visibleNavbar || !currentMainMenu ? \"s-collapsed hidden md:flex\" : \"\"}`}\n onClick={handleToggle}\n // severity=\"secondary\"\n >\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" fill=\"none\">\n <rect x=\"0.3\" y=\"0.3\" width=\"23.4\" height=\"23.4\" rx=\"2.1\" fill=\"white\" />\n <rect x=\"0.3\" y=\"0.3\" width=\"23.4\" height=\"23.4\" rx=\"2.1\" stroke=\"#D8E2EA\" strokeWidth=\"0.6\" />\n <path d=\"M5.09735 16V14.6667H13.5929V16H5.09735ZM5.09735 12.6667V11.3333H11.6324V12.6667H5.09735ZM5.09735 9.33333V8H13.5929V9.33333H5.09735Z\" fill=\"#8D9199\" />\n <path d=\"M16.2621 12L18.9026 14.3L18.099 15L14.6549 12L18.099 9L18.9026 9.7L16.2621 12Z\" fill=\"#8D9199\" />\n </svg>\n </div>\n )}\n\n <div className={`sidebar-left ${visibleNavbar ? \"open\" : \"\"}`}>\n <div className=\"navbar-menu\">\n {menu?.data.length > 0 && menu?.data.map((m: any) => {\n const iconSrc =\n typeof m.icon === \"string\"\n ? m.icon\n : m.icon && typeof m.icon.src === \"string\"\n ? m.icon.src\n : null;\n return (\n <a\n key={m.title}\n className={`flex align-items-center menu-item ${currentMainMenu === m.title ? \"active-menu-image\" : \"\"}`}\n onClick={() => handleMenu(m)}\n style={{ cursor: 'pointer' }}\n >\n {m.icon ?\n <Image\n src={iconSrc.startsWith(\"/\") ? iconSrc : `${env(\"API_URL\")}/${iconSrc}`}\n alt={m.title}\n height={30}\n width={30}\n className=\"relative\"\n unoptimized\n />\n :\n <div>\n <Avatar label={m.title.charAt(0)} shape=\"circle\" style={{ backgroundColor: 'var(--primary-color)', fontWeight: 500 }} />\n </div>\n }\n </a>\n )\n })}\n </div>\n\n <UserProfileMenu></UserProfileMenu>\n </div>\n {currentMenu && (\n <div className={`sidebar-right ${visibleNavbar ? \"open\" : \"\"}`}>\n\n <div className=\"flex relative justify-content-between align-items-center py-3 xl:py-4 px-3\">\n <div className=\"text-base sidebar-title font-semibold\">{currentMainMenu && currentMainMenu}</div>\n {/* <button\n className=\"sidebar-toggle-button\"\n onClick={handleToggle}\n >\n <img\n style={{ cursor: \"pointer\" }}\n src={`/images/menu-toggle.png`}\n alt=\"Solid\"\n />\n </button> */}\n </div>\n {/* <div className=\"w-full px-3 mb-3\" style={{ position: 'relative' }} ref={searchRef}>\n <IconField iconPosition=\"left\">\n <InputIcon className=\"pi pi-search text-sm\"> </InputIcon>\n <InputText placeholder=\"Search\" className=\"small-input text-sm w-full pr-6\" />\n </IconField>\n <div className=\"absolute max-h-1rem\" style={{ top: 5, right: 20 }}>\n <img\n style={{ cursor: \"pointer\", maxHeight: '1.3rem' }}\n src=\"/images/icons/jump-to-icon.png\"\n alt=\"Solid\"\n />\n </div>\n </div> */}\n <div className=\"px-3 solid-sidebar-menuitems-wrapper\">\n <NavbarTwoMenu menuItems={currentMenu}></NavbarTwoMenu>\n </div>\n </div>\n )}\n </>\n );\n};\n\nexport default AppSidebar;\n"]}
|
|
1
|
+
{"version":3,"file":"AppSidebar.js","sourceRoot":"","sources":["../../../src/components/layout/AppSidebar.tsx"],"names":[],"mappings":";;;;;;;;;;;;AAAA,OAAO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F,CACN,CAAC;AACN,CAAC,CAAC;AAEF,eAAe,UAAU,CAAC","sourcesContent":["import { useGetSolidMenuBasedOnRoleQuery } from \"../../redux/api/solidMenuApi\";\nimport { hideNavbar, toggleNavbar } from \"../../redux/features/navbarSlice\";\nimport { setIsAuthenticated, setUser } from \"../../redux/features/userSlice\";\nimport { useSession } from \"../../hooks/useSession\";\nimport { useEffect, useMemo, useState } from \"react\";\nimport { useDispatch, useSelector } from \"react-redux\";\nimport UserProfileMenu from \"./user-profile-menu\";\nimport SolidLink from \"../common/Link\";\nimport { usePathname } from \"../../hooks/usePathname\";\nimport { useSearchParams } from \"../../hooks/useSearchParams\";\nimport { env } from \"../../adapters/env\";\n\ntype SolidMenuItem = {\n key?: string;\n title: string;\n path?: string;\n icon?: string | { src?: string };\n children?: SolidMenuItem[];\n};\n\nconst defaultMenuKey = env(\"NEXT_PUBLIC_DEFAULT_MENU_KEY\");\nconst SIDEBAR_STORAGE_KEY = \"solidx.sidebar.collapsed\";\nconst SELECTED_WORKSPACE_STORAGE_KEY = \"solidx.sidebar.selected-workspace\";\nconst SIDEBAR_TOGGLE_EVENT = \"solidx:sidebar-toggle\";\nconst DESKTOP_SIDEBAR_WIDTH = \"272px\";\nconst DEFAULT_WORKSPACE_TITLE = \"Solid Core\";\nconst DEFAULT_WORKSPACE_KEY = \"solid-core\";\n\nfunction normalizePath(path: string): string {\n if (!path || path === \"/\") return \"/\";\n return path.endsWith(\"/\") ? path.slice(0, -1) : path;\n}\n\nfunction getPathAndParams(targetPath: string): { pathname: string; searchParams: URLSearchParams } {\n const parsed = new URL(targetPath, \"http://localhost\");\n return {\n pathname: normalizePath(parsed.pathname),\n searchParams: new URLSearchParams(parsed.search),\n };\n}\n\nfunction doesSearchParamsMatchSubset(requiredParams: URLSearchParams, currentParams: URLSearchParams): boolean {\n const currentValueCounts = new Map<string, number>();\n currentParams.forEach((value, key) => {\n const token = `${key}=${value}`;\n currentValueCounts.set(token, (currentValueCounts.get(token) || 0) + 1);\n });\n\n let isSubset = true;\n requiredParams.forEach((value, key) => {\n if (!isSubset) return;\n const token = `${key}=${value}`;\n const count = currentValueCounts.get(token) || 0;\n if (count <= 0) {\n isSubset = false;\n return;\n }\n currentValueCounts.set(token, count - 1);\n });\n\n return isSubset;\n}\n\nfunction isMenuPathActive(itemPath: string | undefined, currentPathname: string, currentSearchParams: URLSearchParams): boolean {\n if (!itemPath) return false;\n\n const { pathname: itemPathname, searchParams: itemSearchParams } = getPathAndParams(itemPath);\n if (itemPathname !== normalizePath(currentPathname)) return false;\n\n return doesSearchParamsMatchSubset(itemSearchParams, currentSearchParams);\n}\n\nfunction filterMenuItems(items: SolidMenuItem[], query: string): SolidMenuItem[] {\n const normalizedQuery = query.trim().toLowerCase();\n if (!normalizedQuery) return items;\n\n const next: SolidMenuItem[] = [];\n items.forEach((item) => {\n const children = item.children ? filterMenuItems(item.children, normalizedQuery) : [];\n const matchesSelf = item.title.toLowerCase().includes(normalizedQuery);\n if (matchesSelf || children.length > 0) {\n next.push({ ...item, children });\n }\n });\n return next;\n}\n\nfunction resolveDefaultWorkspace(items: SolidMenuItem[]) {\n return (\n items.find((item) => item.key === DEFAULT_WORKSPACE_KEY) ||\n items.find((item) => item.title.trim().toLowerCase() === DEFAULT_WORKSPACE_TITLE.toLowerCase()) ||\n items.find((item) => item.key === defaultMenuKey) ||\n items[0]\n );\n}\n\nconst SidebarMenuTree = ({\n items,\n pathname,\n searchParams,\n forceExpand,\n}: {\n items: SolidMenuItem[];\n pathname: string;\n searchParams: URLSearchParams;\n forceExpand?: boolean;\n}) => {\n const [expandedKeys, setExpandedKeys] = useState<Record<string, boolean>>({});\n\n const buildNodeId = (node: SolidMenuItem, parentId: string, index: number) => {\n const base = node.key || node.path || node.title || `node-${index}`;\n return `${parentId}/${base}`;\n };\n\n useEffect(() => {\n const initialExpanded: Record<string, boolean> = {};\n if (forceExpand) {\n const walk = (nodes: SolidMenuItem[], parentId = \"root\") => {\n nodes.forEach((node, index) => {\n const nodeId = buildNodeId(node, parentId, index);\n if (node.children && node.children.length > 0 && node.key) {\n initialExpanded[nodeId] = true;\n walk(node.children, nodeId);\n } else if (node.children && node.children.length > 0) {\n initialExpanded[nodeId] = true;\n walk(node.children, nodeId);\n }\n });\n };\n walk(items);\n }\n setExpandedKeys(initialExpanded);\n }, [items, forceExpand]);\n\n const toggleExpanded = (nodeId: string) => {\n setExpandedKeys((prev) => ({ ...prev, [nodeId]: !prev[nodeId] }));\n };\n\n const renderNode = (node: SolidMenuItem, depth = 0, parentId = \"root\", index = 0) => {\n const nodeId = buildNodeId(node, parentId, index);\n const hasChildren = !!(node.children && node.children.length > 0);\n const isExpanded = expandedKeys[nodeId] === true;\n const isActive = isMenuPathActive(node.path, pathname, searchParams);\n const paddingLeft = 12 + depth * 14;\n\n return (\n <li key={nodeId} className=\"solid-sidebar-tree-item\">\n <div\n className={`solid-sidebar-tree-row ${isActive ? \"is-active\" : \"\"}`}\n style={{ paddingLeft }}\n >\n {hasChildren ? (\n <button\n type=\"button\"\n className=\"solid-sidebar-tree-parent\"\n onClick={() => toggleExpanded(nodeId)}\n aria-expanded={isExpanded}\n aria-label={`Toggle ${node.title}`}\n >\n <span className=\"solid-sidebar-tree-label\">{node.title}</span>\n </button>\n ) : node.path ? (\n <SolidLink href={node.path} className=\"solid-sidebar-tree-link\">\n <span className=\"solid-sidebar-tree-label\">{node.title}</span>\n </SolidLink>\n ) : (\n <span className=\"solid-sidebar-tree-label\">{node.title}</span>\n )}\n {hasChildren && (\n <button\n type=\"button\"\n className=\"solid-sidebar-tree-toggle\"\n onClick={() => toggleExpanded(nodeId)}\n aria-label={`Toggle ${node.title}`}\n >\n <span className=\"solid-tree-plusminus\">{isExpanded ? \"−\" : \"+\"}</span>\n </button>\n )}\n </div>\n {hasChildren && isExpanded && (\n <ul className=\"solid-sidebar-tree-list solid-sidebar-tree-children\">\n {node.children!.map((child, childIndex) => renderNode(child, depth + 1, nodeId, childIndex))}\n </ul>\n )}\n </li>\n );\n };\n\n return <ul className=\"solid-sidebar-tree-list\">{items.map((item, index) => renderNode(item, 0, \"root\", index))}</ul>;\n};\n\nconst AppSidebar = () => {\n const dispatch = useDispatch();\n const pathname = usePathname();\n const searchParams = useSearchParams();\n const visibleNavbar = useSelector((state: any) => state.navbarState.visibleNavbar);\n const { data: menu } = useGetSolidMenuBasedOnRoleQuery(\"\");\n\n const [searchTerm, setSearchTerm] = useState(\"\");\n const [workspaceOpen, setWorkspaceOpen] = useState(false);\n const [selectedWorkspaceKey, setSelectedWorkspaceKey] = useState<string>(() => {\n if (typeof window === \"undefined\") return \"\";\n return window.localStorage.getItem(SELECTED_WORKSPACE_STORAGE_KEY) || \"\";\n });\n const [isDesktop, setIsDesktop] = useState<boolean>(typeof window === \"undefined\" ? true : window.innerWidth > 1199);\n const [isCollapsed, setIsCollapsed] = useState<boolean>(() => {\n if (typeof window === \"undefined\") return false;\n const stored = window.localStorage.getItem(SIDEBAR_STORAGE_KEY);\n if (stored === null) return true;\n return stored === \"true\";\n });\n\n const { data } = useSession();\n\n useEffect(() => {\n if (data) {\n dispatch(setUser(data?.user));\n dispatch(setIsAuthenticated(true));\n }\n }, [data, dispatch]);\n\n useEffect(() => {\n const onResize = () => {\n const desktop = window.innerWidth > 1199;\n setIsDesktop(desktop);\n if (desktop) {\n dispatch(hideNavbar());\n }\n };\n\n onResize();\n window.addEventListener(\"resize\", onResize);\n return () => window.removeEventListener(\"resize\", onResize);\n }, [dispatch]);\n\n useEffect(() => {\n if (typeof window === \"undefined\") return;\n window.localStorage.setItem(SIDEBAR_STORAGE_KEY, String(isCollapsed));\n }, [isCollapsed]);\n\n useEffect(() => {\n if (typeof window === \"undefined\") return;\n if (!selectedWorkspaceKey) {\n window.localStorage.removeItem(SELECTED_WORKSPACE_STORAGE_KEY);\n return;\n }\n window.localStorage.setItem(SELECTED_WORKSPACE_STORAGE_KEY, selectedWorkspaceKey);\n }, [selectedWorkspaceKey]);\n\n useEffect(() => {\n const width = isDesktop ? (isCollapsed ? \"0px\" : DESKTOP_SIDEBAR_WIDTH) : \"0px\";\n document.documentElement.style.setProperty(\"--solid-sidebar-width\", width);\n }, [isDesktop, isCollapsed]);\n\n useEffect(() => {\n if (!menu?.data?.length) return;\n const defaultWorkspace = resolveDefaultWorkspace(menu.data);\n const hasSelectedWorkspace = menu.data.some((workspace: SolidMenuItem) => workspace.key === selectedWorkspaceKey);\n const nextWorkspaceKey = hasSelectedWorkspace ? selectedWorkspaceKey : defaultWorkspace?.key || \"\";\n\n if (nextWorkspaceKey !== selectedWorkspaceKey) {\n setSelectedWorkspaceKey(nextWorkspaceKey);\n }\n }, [menu, selectedWorkspaceKey]);\n\n useEffect(() => {\n if (!isDesktop) {\n dispatch(hideNavbar());\n }\n }, [pathname, dispatch, isDesktop]);\n\n useEffect(() => {\n const onToggleRequest = () => {\n if (window.innerWidth > 1199) {\n setIsCollapsed((prev) => !prev);\n return;\n }\n dispatch(toggleNavbar());\n };\n\n window.addEventListener(SIDEBAR_TOGGLE_EVENT, onToggleRequest);\n return () => window.removeEventListener(SIDEBAR_TOGGLE_EVENT, onToggleRequest);\n }, [dispatch]);\n\n const workspaces: SolidMenuItem[] = menu?.data || [];\n const selectedWorkspace = workspaces.find((m) => m.key === selectedWorkspaceKey) || workspaces[0];\n const selectedWorkspaceChildren = selectedWorkspace?.children || [];\n\n const filteredMenu = useMemo(\n () => filterMenuItems(selectedWorkspaceChildren, searchTerm),\n [selectedWorkspaceChildren, searchTerm]\n );\n\n const shellClasses = [\n \"solid-sidebar\",\n isDesktop && isCollapsed ? \"is-collapsed\" : \"\",\n !isDesktop && visibleNavbar ? \"is-open\" : \"\",\n ]\n .filter(Boolean)\n .join(\" \");\n\n const selectWorkspace = (workspace: SolidMenuItem) => {\n setSelectedWorkspaceKey(workspace.key || \"\");\n setSearchTerm(\"\");\n setWorkspaceOpen(false);\n };\n\n return (\n <>\n {!isDesktop && visibleNavbar && <div className=\"solid-sidebar-backdrop\" onClick={() => dispatch(toggleNavbar())} />}\n\n <aside className={shellClasses}>\n <div className=\"solid-sidebar-header\">\n <div className=\"solid-workspace-switcher\">\n <button\n type=\"button\"\n className=\"solid-workspace-trigger\"\n onClick={() => setWorkspaceOpen((prev) => !prev)}\n aria-label=\"Select workspace\"\n >\n <span className=\"solid-workspace-avatar\">\n {(selectedWorkspace?.title || \"W\").slice(0, 1).toUpperCase()}\n </span>\n {!isCollapsed && (\n <>\n <span className=\"solid-workspace-label-wrap\">\n <span className=\"solid-workspace-label-top\">Workspace</span>\n <span className=\"solid-workspace-label\">{selectedWorkspace?.title || \"Workspace\"}</span>\n </span>\n <span className={`solid-workspace-chevron-dual ${workspaceOpen ? \"is-open\" : \"\"}`} aria-hidden=\"true\">\n <svg xmlns=\"http://www.w3.org/2000/svg\" width=\"14\" height=\"14\" viewBox=\"0 0 14 14\" fill=\"none\">\n <path d=\"M4 6L7 3L10 6\" stroke=\"currentColor\" strokeWidth=\"1.25\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n <path d=\"M4 8L7 11L10 8\" stroke=\"currentColor\" strokeWidth=\"1.25\" strokeLinecap=\"round\" strokeLinejoin=\"round\" />\n </svg>\n </span>\n </>\n )}\n </button>\n\n {workspaceOpen && !isCollapsed && (\n <div className=\"solid-workspace-menu\">\n {workspaces.map((workspace) => (\n <button\n type=\"button\"\n key={workspace.key || workspace.title}\n className={`solid-workspace-item ${workspace.key === selectedWorkspace?.key ? \"is-active\" : \"\"}`}\n onClick={() => selectWorkspace(workspace)}\n >\n <span className=\"solid-workspace-item-avatar\">{workspace.title.slice(0, 1).toUpperCase()}</span>\n <span className=\"solid-workspace-item-label\">{workspace.title}</span>\n </button>\n ))}\n </div>\n )}\n </div>\n\n </div>\n\n {!isCollapsed ? (\n <>\n <div className=\"solid-sidebar-search-wrap\">\n <input\n type=\"text\"\n value={searchTerm}\n onChange={(e) => setSearchTerm(e.target.value)}\n placeholder=\"Search in menu...\"\n className=\"solid-sidebar-search\"\n />\n </div>\n\n <div className=\"solid-sidebar-tree-wrap\">\n <SidebarMenuTree items={filteredMenu} pathname={pathname} searchParams={searchParams} forceExpand={!!searchTerm.trim()} />\n </div>\n </>\n ) : (\n <div className=\"solid-sidebar-collapsed-nav\">\n {filteredMenu.slice(0, 10).map((item) => (\n <SolidLink\n key={item.key || item.title}\n href={item.path || \"#\"}\n className={`solid-collapsed-item ${isMenuPathActive(item.path, pathname, searchParams) ? \"is-active\" : \"\"}`}\n title={item.title}\n >\n {item.title.slice(0, 1).toUpperCase()}\n </SolidLink>\n ))}\n </div>\n )}\n\n <div className=\"solid-sidebar-footer\">\n <UserProfileMenu />\n </div>\n </aside>\n\n {isDesktop && isCollapsed && (\n <button\n type=\"button\"\n className=\"solid-sidebar-hotspot\"\n onClick={() => setIsCollapsed(false)}\n aria-label=\"Expand sidebar\"\n title=\"Expand sidebar\"\n />\n )}\n </>\n );\n};\n\nexport default AppSidebar;\n"]}
|