@solidxai/core-ui 0.1.9-beta.7 → 0.1.9
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/README.md +1 -1
- package/dist/adapters/auth/handleLogout.d.ts +1 -1
- package/dist/adapters/auth/handleLogout.d.ts.map +1 -1
- package/dist/adapters/auth/handleLogout.js +20 -32
- package/dist/adapters/auth/handleLogout.js.map +1 -1
- package/dist/adapters/auth/handleLogout.ts +7 -14
- package/dist/components/auth/AuthLayout.d.ts.map +1 -1
- package/dist/components/auth/AuthLayout.js +23 -19
- package/dist/components/auth/AuthLayout.js.map +1 -1
- package/dist/components/auth/AuthLayout.tsx +62 -52
- package/dist/components/auth/ForgotPasswordThankYou.js +1 -1
- package/dist/components/auth/ForgotPasswordThankYou.js.map +1 -1
- package/dist/components/auth/ForgotPasswordThankYou.tsx +2 -2
- package/dist/components/auth/MicrosoftActiveDirectoryAuthChecking.d.ts +2 -0
- package/dist/components/auth/MicrosoftActiveDirectoryAuthChecking.d.ts.map +1 -0
- package/dist/components/auth/MicrosoftActiveDirectoryAuthChecking.js +112 -0
- package/dist/components/auth/MicrosoftActiveDirectoryAuthChecking.js.map +1 -0
- package/dist/components/auth/MicrosoftActiveDirectoryAuthChecking.tsx +78 -0
- package/dist/components/auth/SolidChangeForcePassword.js +2 -2
- package/dist/components/auth/SolidChangeForcePassword.js.map +1 -1
- package/dist/components/auth/SolidChangeForcePassword.tsx +13 -13
- package/dist/components/auth/SolidForgotPassword.js +1 -1
- package/dist/components/auth/SolidForgotPassword.js.map +1 -1
- package/dist/components/auth/SolidForgotPassword.tsx +3 -3
- package/dist/components/auth/SolidInitialLoginOtp.js +1 -1
- package/dist/components/auth/SolidInitialLoginOtp.js.map +1 -1
- package/dist/components/auth/SolidInitialLoginOtp.tsx +2 -2
- package/dist/components/auth/SolidInitiateRegisterOtp.js +1 -1
- package/dist/components/auth/SolidInitiateRegisterOtp.js.map +1 -1
- package/dist/components/auth/SolidInitiateRegisterOtp.tsx +2 -2
- package/dist/components/auth/SolidLogin.js +4 -4
- package/dist/components/auth/SolidLogin.js.map +1 -1
- package/dist/components/auth/SolidLogin.tsx +13 -13
- package/dist/components/auth/SolidOTPVerify.d.ts +3 -0
- package/dist/components/auth/SolidOTPVerify.d.ts.map +1 -0
- package/dist/components/auth/SolidOTPVerify.js +67 -0
- package/dist/components/auth/SolidOTPVerify.js.map +1 -0
- package/dist/components/auth/SolidOTPVerify.tsx +133 -0
- package/dist/components/auth/SolidRegister.js +6 -6
- package/dist/components/auth/SolidRegister.js.map +1 -1
- package/dist/components/auth/SolidRegister.tsx +15 -15
- package/dist/components/auth/SolidResetPassword.js +2 -2
- package/dist/components/auth/SolidResetPassword.js.map +1 -1
- package/dist/components/auth/SolidResetPassword.tsx +8 -8
- package/dist/components/common/AuthBanner.js.map +1 -1
- package/dist/components/common/BackButton.js +1 -1
- package/dist/components/common/BackButton.js.map +1 -1
- package/dist/components/common/BackButton.tsx +1 -1
- package/dist/components/common/CancelButton.js +2 -2
- package/dist/components/common/CancelButton.js.map +1 -1
- package/dist/components/common/CancelButton.tsx +3 -3
- package/dist/components/common/GeneralSettings.js +18 -18
- package/dist/components/common/GeneralSettings.js.map +1 -1
- package/dist/components/common/GeneralSettings.tsx +137 -137
- package/dist/components/common/SettingsComponent.d.ts.map +1 -1
- package/dist/components/common/SettingsComponent.js +4 -1
- package/dist/components/common/SettingsComponent.js.map +1 -1
- package/dist/components/common/SettingsComponent.module.css +95 -2
- package/dist/components/common/SettingsComponent.tsx +4 -1
- package/dist/components/common/SocialMediaLogin.d.ts.map +1 -1
- package/dist/components/common/SocialMediaLogin.js +1 -1
- package/dist/components/common/SocialMediaLogin.js.map +1 -1
- package/dist/components/common/SocialMediaLogin.tsx +4 -0
- 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 +11 -4
- package/dist/components/common/SolidExport.js.map +1 -1
- package/dist/components/common/SolidExport.tsx +12 -2
- package/dist/components/common/SolidFaviconProvider.d.ts +3 -0
- package/dist/components/common/SolidFaviconProvider.d.ts.map +1 -0
- package/dist/components/common/SolidFaviconProvider.js +102 -0
- package/dist/components/common/SolidFaviconProvider.js.map +1 -0
- package/dist/components/common/SolidFaviconProvider.tsx +55 -0
- package/dist/components/common/SolidFormHeader.js +1 -1
- package/dist/components/common/SolidFormHeader.js.map +1 -1
- package/dist/components/common/SolidFormHeader.tsx +1 -1
- package/dist/components/common/SolidModuleHome.js +2 -2
- package/dist/components/common/SolidModuleHome.js.map +1 -1
- package/dist/components/common/SolidModuleHome.tsx +7 -7
- package/dist/components/common/SolidSettings/LlmSettings/AiModelConfigTab.js +3 -3
- package/dist/components/common/SolidSettings/LlmSettings/AiModelConfigTab.js.map +1 -1
- package/dist/components/common/SolidSettings/LlmSettings/AiModelConfigTab.tsx +6 -6
- package/dist/components/common/SolidSettings/LlmSettings/AnthropicProviderComponent.js +1 -1
- package/dist/components/common/SolidSettings/LlmSettings/AnthropicProviderComponent.js.map +1 -1
- package/dist/components/common/SolidSettings/LlmSettings/AnthropicProviderComponent.tsx +4 -4
- package/dist/components/common/SolidSettings/LlmSettings/OpenAiProviderComponent.js +1 -1
- package/dist/components/common/SolidSettings/LlmSettings/OpenAiProviderComponent.js.map +1 -1
- package/dist/components/common/SolidSettings/LlmSettings/OpenAiProviderComponent.tsx +4 -4
- package/dist/components/common/SolidSettings/SettingDropzoneActivePlaceholder.js +1 -1
- package/dist/components/common/SolidSettings/SettingDropzoneActivePlaceholder.js.map +1 -1
- package/dist/components/common/SolidSettings/SettingDropzoneActivePlaceholder.tsx +1 -1
- package/dist/components/core/card/SolidCardView.js +1 -1
- package/dist/components/core/card/SolidCardView.js.map +1 -1
- package/dist/components/core/card/SolidCardView.tsx +6 -6
- package/dist/components/core/card/SolidCardViewConfigure.d.ts.map +1 -1
- package/dist/components/core/card/SolidCardViewConfigure.js +1 -1
- package/dist/components/core/card/SolidCardViewConfigure.js.map +1 -1
- package/dist/components/core/card/SolidCardViewConfigure.tsx +5 -1
- package/dist/components/core/chatter/SolidChatter.d.ts.map +1 -1
- package/dist/components/core/chatter/SolidChatter.js +29 -16
- package/dist/components/core/chatter/SolidChatter.js.map +1 -1
- package/dist/components/core/chatter/SolidChatter.tsx +28 -14
- 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 +2 -2
- package/dist/components/core/chatter/SolidChatterHeader.d.ts.map +1 -1
- package/dist/components/core/chatter/SolidChatterHeader.js +2 -2
- package/dist/components/core/chatter/SolidChatterHeader.js.map +1 -1
- package/dist/components/core/chatter/SolidChatterHeader.tsx +10 -6
- package/dist/components/core/chatter/SolidChatterMessageBox.d.ts +1 -0
- package/dist/components/core/chatter/SolidChatterMessageBox.d.ts.map +1 -1
- package/dist/components/core/chatter/SolidChatterMessageBox.js +151 -12
- package/dist/components/core/chatter/SolidChatterMessageBox.js.map +1 -1
- package/dist/components/core/chatter/SolidChatterMessageBox.tsx +256 -15
- package/dist/components/core/chatter/SolidMessageComposer.d.ts.map +1 -1
- package/dist/components/core/chatter/SolidMessageComposer.js +3 -2
- package/dist/components/core/chatter/SolidMessageComposer.js.map +1 -1
- package/dist/components/core/chatter/SolidMessageComposer.tsx +11 -9
- package/dist/components/core/chatter/chatter.module.css +1 -1
- package/dist/components/core/common/FilterComponent.d.ts.map +1 -1
- package/dist/components/core/common/FilterComponent.js +5 -3
- package/dist/components/core/common/FilterComponent.js.map +1 -1
- package/dist/components/core/common/FilterComponent.tsx +6 -2
- package/dist/components/core/common/GroupingComponent.d.ts.map +1 -1
- package/dist/components/core/common/GroupingComponent.js +2 -2
- package/dist/components/core/common/GroupingComponent.js.map +1 -1
- package/dist/components/core/common/GroupingComponent.tsx +2 -0
- package/dist/components/core/common/LoadDynamicJsxComponent.d.ts +2 -0
- package/dist/components/core/common/LoadDynamicJsxComponent.d.ts.map +1 -0
- package/dist/components/core/common/LoadDynamicJsxComponent.js +50 -0
- package/dist/components/core/common/LoadDynamicJsxComponent.js.map +1 -0
- package/dist/components/core/common/LoadDynamicJsxComponent.tsx +70 -0
- package/dist/components/core/common/SolidAccountSettings/SolidChangePassword.d.ts.map +1 -1
- package/dist/components/core/common/SolidAccountSettings/SolidChangePassword.js +1 -10
- package/dist/components/core/common/SolidAccountSettings/SolidChangePassword.js.map +1 -1
- package/dist/components/core/common/SolidAccountSettings/SolidChangePassword.tsx +1 -8
- package/dist/components/core/common/SolidAccountSettings/SolidNotifications.d.ts.map +1 -1
- package/dist/components/core/common/SolidAccountSettings/SolidNotifications.js +6 -11
- package/dist/components/core/common/SolidAccountSettings/SolidNotifications.js.map +1 -1
- package/dist/components/core/common/SolidAccountSettings/SolidNotifications.tsx +5 -31
- package/dist/components/core/common/SolidCreateButton.d.ts.map +1 -1
- package/dist/components/core/common/SolidCreateButton.js +16 -1
- package/dist/components/core/common/SolidCreateButton.js.map +1 -1
- package/dist/components/core/common/SolidCreateButton.tsx +18 -1
- package/dist/components/core/common/SolidGenericImport/SolidImport.module.css +61 -1
- package/dist/components/core/common/SolidGenericImport/SolidImportDropzone.d.ts.map +1 -1
- package/dist/components/core/common/SolidGenericImport/SolidImportDropzone.js +3 -1
- package/dist/components/core/common/SolidGenericImport/SolidImportDropzone.js.map +1 -1
- package/dist/components/core/common/SolidGenericImport/SolidImportDropzone.tsx +4 -2
- package/dist/components/core/common/SolidGenericImport/SolidImportInstructions.d.ts.map +1 -1
- package/dist/components/core/common/SolidGenericImport/SolidImportInstructions.js +19 -1
- package/dist/components/core/common/SolidGenericImport/SolidImportInstructions.js.map +1 -1
- package/dist/components/core/common/SolidGenericImport/SolidImportInstructions.tsx +16 -3
- package/dist/components/core/common/SolidGenericImport/SolidImportTransaction.d.ts.map +1 -1
- package/dist/components/core/common/SolidGenericImport/SolidImportTransaction.js +168 -26
- package/dist/components/core/common/SolidGenericImport/SolidImportTransaction.js.map +1 -1
- package/dist/components/core/common/SolidGenericImport/SolidImportTransaction.tsx +174 -10
- package/dist/components/core/common/SolidGlobalSearchElement.d.ts.map +1 -1
- package/dist/components/core/common/SolidGlobalSearchElement.js +180 -90
- package/dist/components/core/common/SolidGlobalSearchElement.js.map +1 -1
- package/dist/components/core/common/SolidGlobalSearchElement.tsx +167 -49
- package/dist/components/core/common/SolidLayoutViews.js +2 -2
- package/dist/components/core/common/SolidLayoutViews.js.map +1 -1
- package/dist/components/core/common/SolidLayoutViews.tsx +4 -4
- package/dist/components/core/common/SolidListViewOptions.js +1 -1
- package/dist/components/core/common/SolidListViewOptions.js.map +1 -1
- package/dist/components/core/common/SolidListViewOptions.tsx +1 -1
- package/dist/components/core/common/SolidPasswordHelperText.js +2 -2
- package/dist/components/core/common/SolidPasswordHelperText.js.map +1 -1
- package/dist/components/core/common/SolidPasswordHelperText.tsx +4 -4
- package/dist/components/core/common/SolidSaveCustomFilterForm.d.ts.map +1 -1
- package/dist/components/core/common/SolidSaveCustomFilterForm.js +1 -1
- package/dist/components/core/common/SolidSaveCustomFilterForm.js.map +1 -1
- package/dist/components/core/common/SolidSaveCustomFilterForm.tsx +0 -1
- package/dist/components/core/common/SolidSearchBox.js +1 -1
- package/dist/components/core/common/SolidSearchBox.js.map +1 -1
- package/dist/components/core/common/SolidSearchBox.tsx +1 -1
- package/dist/components/core/common/SolidXAiIframe.js +1 -1
- package/dist/components/core/common/SolidXAiIframe.js.map +1 -1
- package/dist/components/core/common/SolidXAiIframe.tsx +1 -1
- package/dist/components/core/dashboard/mappers/echartsOptionMapper.d.ts +4 -0
- package/dist/components/core/dashboard/mappers/echartsOptionMapper.d.ts.map +1 -0
- package/dist/components/core/dashboard/mappers/echartsOptionMapper.js +79 -0
- package/dist/components/core/dashboard/mappers/echartsOptionMapper.js.map +1 -0
- package/dist/components/core/dashboard/mappers/echartsOptionMapper.ts +81 -0
- package/dist/components/core/dashboard/widgets/DefaultDashboardBarChartWidget.d.ts +3 -0
- package/dist/components/core/dashboard/widgets/DefaultDashboardBarChartWidget.d.ts.map +1 -0
- package/dist/components/core/dashboard/widgets/DefaultDashboardBarChartWidget.js +17 -0
- package/dist/components/core/dashboard/widgets/DefaultDashboardBarChartWidget.js.map +1 -0
- package/dist/components/core/dashboard/widgets/DefaultDashboardBarChartWidget.tsx +6 -0
- package/dist/components/core/dashboard/widgets/DefaultDashboardChartWidget.d.ts +3 -0
- package/dist/components/core/dashboard/widgets/DefaultDashboardChartWidget.d.ts.map +1 -0
- package/dist/components/core/dashboard/widgets/DefaultDashboardChartWidget.js +41 -0
- package/dist/components/core/dashboard/widgets/DefaultDashboardChartWidget.js.map +1 -0
- package/dist/components/core/dashboard/widgets/DefaultDashboardChartWidget.tsx +56 -0
- package/dist/components/core/dashboard/widgets/DefaultDashboardKpiWidget.d.ts +3 -0
- package/dist/components/core/dashboard/widgets/DefaultDashboardKpiWidget.d.ts.map +1 -0
- package/dist/components/core/dashboard/widgets/DefaultDashboardKpiWidget.js +14 -0
- package/dist/components/core/dashboard/widgets/DefaultDashboardKpiWidget.js.map +1 -0
- package/dist/components/core/dashboard/widgets/DefaultDashboardKpiWidget.tsx +19 -0
- package/dist/components/core/dashboard/widgets/DefaultDashboardLineChartWidget.d.ts +3 -0
- package/dist/components/core/dashboard/widgets/DefaultDashboardLineChartWidget.d.ts.map +1 -0
- package/dist/components/core/dashboard/widgets/DefaultDashboardLineChartWidget.js +17 -0
- package/dist/components/core/dashboard/widgets/DefaultDashboardLineChartWidget.js.map +1 -0
- package/dist/components/core/dashboard/widgets/DefaultDashboardLineChartWidget.tsx +6 -0
- package/dist/components/core/dashboard/widgets/DefaultDashboardPieChartWidget.d.ts +3 -0
- package/dist/components/core/dashboard/widgets/DefaultDashboardPieChartWidget.d.ts.map +1 -0
- package/dist/components/core/dashboard/widgets/DefaultDashboardPieChartWidget.js +17 -0
- package/dist/components/core/dashboard/widgets/DefaultDashboardPieChartWidget.js.map +1 -0
- package/dist/components/core/dashboard/widgets/DefaultDashboardPieChartWidget.tsx +6 -0
- package/dist/components/core/dashboard/widgets/DefaultDashboardTableWidget.d.ts +3 -0
- package/dist/components/core/dashboard/widgets/DefaultDashboardTableWidget.d.ts.map +1 -0
- package/dist/components/core/dashboard/widgets/DefaultDashboardTableWidget.js +12 -0
- package/dist/components/core/dashboard/widgets/DefaultDashboardTableWidget.js.map +1 -0
- package/dist/components/core/dashboard/widgets/DefaultDashboardTableWidget.tsx +39 -0
- package/dist/components/core/dashboard/widgets/DefaultDashboardUnknownWidget.d.ts +3 -0
- package/dist/components/core/dashboard/widgets/DefaultDashboardUnknownWidget.d.ts.map +1 -0
- package/dist/components/core/dashboard/widgets/DefaultDashboardUnknownWidget.js +7 -0
- package/dist/components/core/dashboard/widgets/DefaultDashboardUnknownWidget.js.map +1 -0
- package/dist/components/core/dashboard/widgets/DefaultDashboardUnknownWidget.tsx +9 -0
- package/dist/components/core/dashboard/widgets/QueueSlaHeatmapWidget.d.ts +3 -0
- package/dist/components/core/dashboard/widgets/QueueSlaHeatmapWidget.d.ts.map +1 -0
- package/dist/components/core/dashboard/widgets/QueueSlaHeatmapWidget.js +203 -0
- package/dist/components/core/dashboard/widgets/QueueSlaHeatmapWidget.js.map +1 -0
- package/dist/components/core/dashboard/widgets/QueueSlaHeatmapWidget.tsx +251 -0
- package/dist/components/core/extension/solid-core/listOfValues/form/SolidLovTypeChangeFormEditWidget.js +1 -1
- package/dist/components/core/extension/solid-core/listOfValues/form/SolidLovTypeChangeFormEditWidget.js.map +1 -1
- package/dist/components/core/extension/solid-core/listOfValues/form/SolidLovTypeChangeFormEditWidget.tsx +2 -2
- package/dist/components/core/extension/solid-core/metadata/MetadataExplorerFormWidget.d.ts +16 -0
- package/dist/components/core/extension/solid-core/metadata/MetadataExplorerFormWidget.d.ts.map +1 -0
- package/dist/components/core/extension/solid-core/metadata/MetadataExplorerFormWidget.js +31 -0
- package/dist/components/core/extension/solid-core/metadata/MetadataExplorerFormWidget.js.map +1 -0
- package/dist/components/core/extension/solid-core/metadata/MetadataExplorerFormWidget.tsx +43 -0
- package/dist/components/core/extension/solid-core/moduleMetadata/list/ClearModulePackageRuntimeHeaderAction.d.ts +3 -0
- package/dist/components/core/extension/solid-core/moduleMetadata/list/ClearModulePackageRuntimeHeaderAction.d.ts.map +1 -0
- package/dist/components/core/extension/solid-core/moduleMetadata/list/ClearModulePackageRuntimeHeaderAction.js +141 -0
- package/dist/components/core/extension/solid-core/moduleMetadata/list/ClearModulePackageRuntimeHeaderAction.js.map +1 -0
- package/dist/components/core/extension/solid-core/moduleMetadata/list/ClearModulePackageRuntimeHeaderAction.tsx +205 -0
- package/dist/components/core/extension/solid-core/moduleMetadata/list/ExportModulePackageRowAction.d.ts +4 -0
- package/dist/components/core/extension/solid-core/moduleMetadata/list/ExportModulePackageRowAction.d.ts.map +1 -0
- package/dist/components/core/extension/solid-core/moduleMetadata/list/ExportModulePackageRowAction.js +112 -0
- package/dist/components/core/extension/solid-core/moduleMetadata/list/ExportModulePackageRowAction.js.map +1 -0
- package/dist/components/core/extension/solid-core/moduleMetadata/list/ExportModulePackageRowAction.tsx +146 -0
- package/dist/components/core/extension/solid-core/moduleMetadata/list/ModuleImportListHeaderAction.d.ts +11 -0
- package/dist/components/core/extension/solid-core/moduleMetadata/list/ModuleImportListHeaderAction.d.ts.map +1 -0
- package/dist/components/core/extension/solid-core/moduleMetadata/list/ModuleImportListHeaderAction.js +22 -0
- package/dist/components/core/extension/solid-core/moduleMetadata/list/ModuleImportListHeaderAction.js.map +1 -0
- package/dist/components/core/extension/solid-core/moduleMetadata/list/ModuleImportListHeaderAction.tsx +36 -0
- package/dist/components/core/extension/solid-core/moduleMetadata/list/moduleMetadataListOnLoad.d.ts +3 -0
- package/dist/components/core/extension/solid-core/moduleMetadata/list/moduleMetadataListOnLoad.d.ts.map +1 -0
- package/dist/components/core/extension/solid-core/moduleMetadata/list/moduleMetadataListOnLoad.js +133 -0
- package/dist/components/core/extension/solid-core/moduleMetadata/list/moduleMetadataListOnLoad.js.map +1 -0
- package/dist/components/core/extension/solid-core/moduleMetadata/list/moduleMetadataListOnLoad.ts +76 -0
- package/dist/components/core/extension/solid-core/roleMetadata/RolePermissionsManyToManyFieldWidget.js +2 -2
- package/dist/components/core/extension/solid-core/roleMetadata/RolePermissionsManyToManyFieldWidget.js.map +1 -1
- package/dist/components/core/extension/solid-core/roleMetadata/RolePermissionsManyToManyFieldWidget.tsx +5 -5
- package/dist/components/core/field/FieldListViewData.js +2 -2
- package/dist/components/core/field/FieldListViewData.js.map +1 -1
- package/dist/components/core/field/FieldListViewData.tsx +5 -5
- package/dist/components/core/filter/fields/SolidBooleanField.d.ts.map +1 -1
- package/dist/components/core/filter/fields/SolidBooleanField.js +2 -2
- package/dist/components/core/filter/fields/SolidBooleanField.js.map +1 -1
- package/dist/components/core/filter/fields/SolidBooleanField.tsx +5 -13
- package/dist/components/core/filter/fields/SolidDateField.d.ts.map +1 -1
- package/dist/components/core/filter/fields/SolidDateField.js +2 -2
- package/dist/components/core/filter/fields/SolidDateField.js.map +1 -1
- package/dist/components/core/filter/fields/SolidDateField.tsx +4 -3
- package/dist/components/core/filter/fields/SolidDatetimeField.d.ts.map +1 -1
- package/dist/components/core/filter/fields/SolidDatetimeField.js +2 -2
- package/dist/components/core/filter/fields/SolidDatetimeField.js.map +1 -1
- package/dist/components/core/filter/fields/SolidDatetimeField.tsx +5 -4
- package/dist/components/core/filter/fields/SolidExternalIdField.d.ts.map +1 -1
- package/dist/components/core/filter/fields/SolidExternalIdField.js +2 -2
- package/dist/components/core/filter/fields/SolidExternalIdField.js.map +1 -1
- package/dist/components/core/filter/fields/SolidExternalIdField.tsx +4 -3
- package/dist/components/core/filter/fields/SolidIdField.d.ts.map +1 -1
- package/dist/components/core/filter/fields/SolidIdField.js +2 -2
- package/dist/components/core/filter/fields/SolidIdField.js.map +1 -1
- package/dist/components/core/filter/fields/SolidIdField.tsx +3 -2
- package/dist/components/core/filter/fields/SolidIntField.d.ts.map +1 -1
- package/dist/components/core/filter/fields/SolidIntField.js +2 -2
- package/dist/components/core/filter/fields/SolidIntField.js.map +1 -1
- package/dist/components/core/filter/fields/SolidIntField.tsx +4 -3
- package/dist/components/core/filter/fields/SolidMediaMultipleField.d.ts.map +1 -1
- package/dist/components/core/filter/fields/SolidMediaMultipleField.js +2 -2
- package/dist/components/core/filter/fields/SolidMediaMultipleField.js.map +1 -1
- package/dist/components/core/filter/fields/SolidMediaMultipleField.tsx +4 -3
- package/dist/components/core/filter/fields/SolidMediaSingleField.d.ts.map +1 -1
- package/dist/components/core/filter/fields/SolidMediaSingleField.js +2 -2
- package/dist/components/core/filter/fields/SolidMediaSingleField.js.map +1 -1
- package/dist/components/core/filter/fields/SolidMediaSingleField.tsx +4 -3
- package/dist/components/core/filter/fields/SolidSelectionDynamicField.d.ts.map +1 -1
- package/dist/components/core/filter/fields/SolidSelectionDynamicField.js +2 -2
- package/dist/components/core/filter/fields/SolidSelectionDynamicField.js.map +1 -1
- package/dist/components/core/filter/fields/SolidSelectionDynamicField.tsx +5 -4
- package/dist/components/core/filter/fields/SolidSelectionStaticField.d.ts.map +1 -1
- package/dist/components/core/filter/fields/SolidSelectionStaticField.js +2 -2
- package/dist/components/core/filter/fields/SolidSelectionStaticField.js.map +1 -1
- package/dist/components/core/filter/fields/SolidSelectionStaticField.tsx +5 -4
- package/dist/components/core/filter/fields/SolidShortTextField.d.ts.map +1 -1
- package/dist/components/core/filter/fields/SolidShortTextField.js +2 -2
- package/dist/components/core/filter/fields/SolidShortTextField.js.map +1 -1
- package/dist/components/core/filter/fields/SolidShortTextField.tsx +4 -3
- package/dist/components/core/filter/fields/SolidTimeField.d.ts.map +1 -1
- package/dist/components/core/filter/fields/SolidTimeField.js +2 -2
- package/dist/components/core/filter/fields/SolidTimeField.js.map +1 -1
- package/dist/components/core/filter/fields/SolidTimeField.tsx +5 -4
- package/dist/components/core/filter/fields/SolidUuidField.d.ts.map +1 -1
- package/dist/components/core/filter/fields/SolidUuidField.js +2 -2
- package/dist/components/core/filter/fields/SolidUuidField.js.map +1 -1
- package/dist/components/core/filter/fields/SolidUuidField.tsx +5 -4
- package/dist/components/core/filter/fields/relations/SolidRelationManyToManyField.d.ts.map +1 -1
- 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 +5 -4
- package/dist/components/core/filter/fields/relations/SolidRelationManyToOneField.d.ts.map +1 -1
- package/dist/components/core/filter/fields/relations/SolidRelationManyToOneField.js +2 -2
- package/dist/components/core/filter/fields/relations/SolidRelationManyToOneField.js.map +1 -1
- package/dist/components/core/filter/fields/relations/SolidRelationManyToOneField.tsx +5 -4
- package/dist/components/core/filter/fields/relations/SolidRelationOneToManyField.d.ts.map +1 -1
- 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 +5 -4
- package/dist/components/core/form/SolidFormActionHeader.js +8 -8
- package/dist/components/core/form/SolidFormActionHeader.js.map +1 -1
- package/dist/components/core/form/SolidFormActionHeader.tsx +13 -13
- package/dist/components/core/form/SolidFormFieldRender.js +1 -1
- package/dist/components/core/form/SolidFormFieldRender.js.map +1 -1
- package/dist/components/core/form/SolidFormFieldRender.tsx +1 -1
- package/dist/components/core/form/SolidFormFooter.d.ts.map +1 -1
- package/dist/components/core/form/SolidFormFooter.js +20 -7
- package/dist/components/core/form/SolidFormFooter.js.map +1 -1
- package/dist/components/core/form/SolidFormFooter.tsx +23 -7
- package/dist/components/core/form/SolidFormView.d.ts.map +1 -1
- package/dist/components/core/form/SolidFormView.js +207 -68
- package/dist/components/core/form/SolidFormView.js.map +1 -1
- package/dist/components/core/form/SolidFormView.tsx +197 -45
- package/dist/components/core/form/SolidFormViewContextMenuHeaderButton.d.ts.map +1 -1
- package/dist/components/core/form/SolidFormViewContextMenuHeaderButton.js +16 -3
- package/dist/components/core/form/SolidFormViewContextMenuHeaderButton.js.map +1 -1
- package/dist/components/core/form/SolidFormViewContextMenuHeaderButton.tsx +25 -16
- package/dist/components/core/form/SolidFormViewNormalHeaderButton.d.ts.map +1 -1
- package/dist/components/core/form/SolidFormViewNormalHeaderButton.js +19 -5
- package/dist/components/core/form/SolidFormViewNormalHeaderButton.js.map +1 -1
- package/dist/components/core/form/SolidFormViewNormalHeaderButton.tsx +25 -9
- package/dist/components/core/form/SolidFormViewShimmerLoading.js +1 -1
- package/dist/components/core/form/SolidFormViewShimmerLoading.js.map +1 -1
- package/dist/components/core/form/SolidFormViewShimmerLoading.tsx +46 -46
- package/dist/components/core/form/field-quality-check-fixes.md +201 -0
- package/dist/components/core/form/fields/SolidBooleanField.js +3 -3
- package/dist/components/core/form/fields/SolidBooleanField.js.map +1 -1
- package/dist/components/core/form/fields/SolidBooleanField.tsx +3 -3
- package/dist/components/core/form/fields/SolidComputedField.js +1 -1
- package/dist/components/core/form/fields/SolidComputedField.js.map +1 -1
- package/dist/components/core/form/fields/SolidComputedField.tsx +1 -1
- package/dist/components/core/form/fields/SolidDateField.js +2 -2
- package/dist/components/core/form/fields/SolidDateField.js.map +1 -1
- package/dist/components/core/form/fields/SolidDateField.tsx +2 -2
- package/dist/components/core/form/fields/SolidDateTimeField.js +2 -2
- package/dist/components/core/form/fields/SolidDateTimeField.js.map +1 -1
- package/dist/components/core/form/fields/SolidDateTimeField.tsx +2 -2
- package/dist/components/core/form/fields/SolidDecimalField.js +1 -1
- package/dist/components/core/form/fields/SolidDecimalField.js.map +1 -1
- package/dist/components/core/form/fields/SolidDecimalField.tsx +1 -1
- package/dist/components/core/form/fields/SolidEmailField.js +1 -1
- package/dist/components/core/form/fields/SolidEmailField.js.map +1 -1
- package/dist/components/core/form/fields/SolidEmailField.tsx +1 -1
- package/dist/components/core/form/fields/SolidIntegerField.js +3 -3
- package/dist/components/core/form/fields/SolidIntegerField.js.map +1 -1
- package/dist/components/core/form/fields/SolidIntegerField.tsx +3 -3
- package/dist/components/core/form/fields/SolidJsonField.js +3 -3
- package/dist/components/core/form/fields/SolidJsonField.js.map +1 -1
- package/dist/components/core/form/fields/SolidJsonField.tsx +3 -3
- package/dist/components/core/form/fields/SolidLongTextField.d.ts +0 -1
- package/dist/components/core/form/fields/SolidLongTextField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidLongTextField.js +6 -58
- package/dist/components/core/form/fields/SolidLongTextField.js.map +1 -1
- package/dist/components/core/form/fields/SolidLongTextField.tsx +12 -107
- package/dist/components/core/form/fields/SolidMediaMultipleField.js +11 -11
- package/dist/components/core/form/fields/SolidMediaMultipleField.js.map +1 -1
- package/dist/components/core/form/fields/SolidMediaMultipleField.tsx +28 -28
- package/dist/components/core/form/fields/SolidMediaSingleField.js +5 -5
- package/dist/components/core/form/fields/SolidMediaSingleField.js.map +1 -1
- package/dist/components/core/form/fields/SolidMediaSingleField.tsx +9 -9
- package/dist/components/core/form/fields/SolidPasswordField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidPasswordField.js +12 -6
- package/dist/components/core/form/fields/SolidPasswordField.js.map +1 -1
- package/dist/components/core/form/fields/SolidPasswordField.tsx +13 -6
- package/dist/components/core/form/fields/SolidRichTextField.js +2 -2
- package/dist/components/core/form/fields/SolidRichTextField.js.map +1 -1
- package/dist/components/core/form/fields/SolidRichTextField.tsx +2 -2
- package/dist/components/core/form/fields/SolidSelectionDynamicField.js +2 -2
- package/dist/components/core/form/fields/SolidSelectionDynamicField.js.map +1 -1
- package/dist/components/core/form/fields/SolidSelectionDynamicField.tsx +2 -2
- package/dist/components/core/form/fields/SolidSelectionStaticField.js +1 -1
- package/dist/components/core/form/fields/SolidSelectionStaticField.js.map +1 -1
- package/dist/components/core/form/fields/SolidSelectionStaticField.tsx +1 -1
- package/dist/components/core/form/fields/SolidShortTextField.js +1 -1
- package/dist/components/core/form/fields/SolidShortTextField.js.map +1 -1
- package/dist/components/core/form/fields/SolidShortTextField.tsx +1 -1
- package/dist/components/core/form/fields/SolidTimeField.js +2 -2
- package/dist/components/core/form/fields/SolidTimeField.js.map +1 -1
- package/dist/components/core/form/fields/SolidTimeField.tsx +2 -2
- package/dist/components/core/form/fields/relations/RolesGroupedByModuleWidget.d.ts +8 -0
- package/dist/components/core/form/fields/relations/RolesGroupedByModuleWidget.d.ts.map +1 -0
- package/dist/components/core/form/fields/relations/RolesGroupedByModuleWidget.js +123 -0
- package/dist/components/core/form/fields/relations/RolesGroupedByModuleWidget.js.map +1 -0
- package/dist/components/core/form/fields/relations/RolesGroupedByModuleWidget.tsx +140 -0
- package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.d.ts.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.js +20 -18
- package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.js.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.tsx +47 -37
- package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.d.ts.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.js +18 -18
- package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.js.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.tsx +17 -13
- package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.d.ts.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.js +19 -17
- package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.js.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.tsx +28 -27
- package/dist/components/core/form/fields/relations/widgets/helpers/InlineRelationEntityDialog.js +1 -1
- 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 +1 -1
- package/dist/components/core/form/fields/widgets/SolidAiInteractionMessageFieldFormWidget.js +1 -1
- package/dist/components/core/form/fields/widgets/SolidAiInteractionMessageFieldFormWidget.js.map +1 -1
- package/dist/components/core/form/fields/widgets/SolidAiInteractionMessageFieldFormWidget.tsx +1 -1
- package/dist/components/core/form/fields/widgets/SolidAiInteractionMetadataFieldFormWidget.js +1 -1
- package/dist/components/core/form/fields/widgets/SolidAiInteractionMetadataFieldFormWidget.js.map +1 -1
- package/dist/components/core/form/fields/widgets/SolidAiInteractionMetadataFieldFormWidget.tsx +1 -1
- package/dist/components/core/form/fields/widgets/SolidIconEditWidget.js +5 -5
- package/dist/components/core/form/fields/widgets/SolidIconEditWidget.js.map +1 -1
- package/dist/components/core/form/fields/widgets/SolidIconEditWidget.tsx +17 -17
- package/dist/components/core/form/fields/widgets/SolidRelationFieldAvatarFormWidget.js +1 -1
- package/dist/components/core/form/fields/widgets/SolidRelationFieldAvatarFormWidget.js.map +1 -1
- package/dist/components/core/form/fields/widgets/SolidRelationFieldAvatarFormWidget.tsx +1 -1
- package/dist/components/core/form/fields/widgets/SolidShortTextFieldAvatarWidget.js +1 -1
- package/dist/components/core/form/fields/widgets/SolidShortTextFieldAvatarWidget.js.map +1 -1
- package/dist/components/core/form/fields/widgets/SolidShortTextFieldAvatarWidget.tsx +1 -1
- 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 +2 -2
- package/dist/components/core/kanban/KanbanBoard.js.map +1 -1
- package/dist/components/core/kanban/KanbanBoard.tsx +2 -1
- package/dist/components/core/kanban/KanbanCard.d.ts +1 -0
- package/dist/components/core/kanban/KanbanCard.d.ts.map +1 -1
- package/dist/components/core/kanban/KanbanCard.js +15 -4
- package/dist/components/core/kanban/KanbanCard.js.map +1 -1
- package/dist/components/core/kanban/KanbanCard.tsx +27 -4
- package/dist/components/core/kanban/KanbanColumn.d.ts +2 -1
- package/dist/components/core/kanban/KanbanColumn.d.ts.map +1 -1
- package/dist/components/core/kanban/KanbanColumn.js +4 -4
- package/dist/components/core/kanban/KanbanColumn.js.map +1 -1
- package/dist/components/core/kanban/KanbanColumn.tsx +5 -4
- package/dist/components/core/kanban/SolidKanbanView.d.ts.map +1 -1
- package/dist/components/core/kanban/SolidKanbanView.js +44 -39
- package/dist/components/core/kanban/SolidKanbanView.js.map +1 -1
- package/dist/components/core/kanban/SolidKanbanView.tsx +22 -10
- package/dist/components/core/kanban/SolidKanbanViewConfigure.d.ts.map +1 -1
- package/dist/components/core/kanban/SolidKanbanViewConfigure.js +1 -1
- package/dist/components/core/kanban/SolidKanbanViewConfigure.js.map +1 -1
- package/dist/components/core/kanban/SolidKanbanViewConfigure.tsx +5 -1
- 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 +2 -1
- 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 +10 -21
- 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 +10 -18
- package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.d.ts.map +1 -1
- package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.js +6 -3
- package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.js.map +1 -1
- package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.tsx +24 -30
- 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.js +1 -1
- package/dist/components/core/list/ListViewRowActionPopup.js.map +1 -1
- package/dist/components/core/list/ListViewRowActionPopup.tsx +1 -2
- package/dist/components/core/list/SolidColumnSelector/SolidListColumnSelector.js +1 -1
- package/dist/components/core/list/SolidColumnSelector/SolidListColumnSelector.js.map +1 -1
- package/dist/components/core/list/SolidColumnSelector/SolidListColumnSelector.tsx +3 -3
- package/dist/components/core/list/SolidDataTable.d.ts.map +1 -1
- package/dist/components/core/list/SolidDataTable.js +3 -2
- package/dist/components/core/list/SolidDataTable.js.map +1 -1
- package/dist/components/core/list/SolidDataTable.tsx +9 -10
- package/dist/components/core/list/SolidEmptyListViewPlaceholder.d.ts.map +1 -1
- package/dist/components/core/list/SolidEmptyListViewPlaceholder.js +3 -0
- package/dist/components/core/list/SolidEmptyListViewPlaceholder.js.map +1 -1
- package/dist/components/core/list/SolidEmptyListViewPlaceholder.tsx +2 -0
- package/dist/components/core/list/SolidListView.d.ts.map +1 -1
- package/dist/components/core/list/SolidListView.js +123 -100
- package/dist/components/core/list/SolidListView.js.map +1 -1
- package/dist/components/core/list/SolidListView.tsx +70 -41
- package/dist/components/core/list/SolidListViewColumn.d.ts +3 -1
- package/dist/components/core/list/SolidListViewColumn.d.ts.map +1 -1
- package/dist/components/core/list/SolidListViewColumn.js +27 -2
- package/dist/components/core/list/SolidListViewColumn.js.map +1 -1
- package/dist/components/core/list/SolidListViewColumn.tsx +16 -3
- package/dist/components/core/list/SolidListViewConfigure.d.ts.map +1 -1
- package/dist/components/core/list/SolidListViewConfigure.js +11 -10
- package/dist/components/core/list/SolidListViewConfigure.js.map +1 -1
- package/dist/components/core/list/SolidListViewConfigure.tsx +9 -3
- package/dist/components/core/list/SolidListViewHeaderButton.d.ts.map +1 -1
- package/dist/components/core/list/SolidListViewHeaderButton.js +13 -3
- package/dist/components/core/list/SolidListViewHeaderButton.js.map +1 -1
- package/dist/components/core/list/SolidListViewHeaderButton.tsx +16 -7
- package/dist/components/core/list/SolidListViewHeaderContextMenuButton.d.ts.map +1 -1
- package/dist/components/core/list/SolidListViewHeaderContextMenuButton.js +19 -7
- package/dist/components/core/list/SolidListViewHeaderContextMenuButton.js.map +1 -1
- package/dist/components/core/list/SolidListViewHeaderContextMenuButton.tsx +19 -6
- package/dist/components/core/list/SolidListViewRowActionMenuItem.d.ts.map +1 -1
- package/dist/components/core/list/SolidListViewRowActionMenuItem.js +14 -5
- package/dist/components/core/list/SolidListViewRowActionMenuItem.js.map +1 -1
- package/dist/components/core/list/SolidListViewRowActionMenuItem.tsx +17 -6
- package/dist/components/core/list/SolidListViewRowActionsMenu.d.ts.map +1 -1
- package/dist/components/core/list/SolidListViewRowActionsMenu.js +7 -1
- package/dist/components/core/list/SolidListViewRowActionsMenu.js.map +1 -1
- package/dist/components/core/list/SolidListViewRowActionsMenu.tsx +5 -1
- 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 +7 -6
- package/dist/components/core/list/SolidListViewRowButtonContextMenu.js.map +1 -1
- package/dist/components/core/list/SolidListViewRowButtonContextMenu.tsx +10 -9
- package/dist/components/core/list/SolidListingHeader.js +1 -1
- package/dist/components/core/list/SolidListingHeader.js.map +1 -1
- package/dist/components/core/list/SolidListingHeader.tsx +4 -4
- package/dist/components/core/list/SolidTableRowCell.js +1 -1
- package/dist/components/core/list/SolidTableRowCell.js.map +1 -1
- package/dist/components/core/list/SolidTableRowCell.tsx +1 -1
- package/dist/components/core/list/columns/SolidBooleanColumn.d.ts.map +1 -1
- package/dist/components/core/list/columns/SolidBooleanColumn.js +4 -6
- package/dist/components/core/list/columns/SolidBooleanColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidBooleanColumn.tsx +1 -3
- package/dist/components/core/list/columns/SolidMediaMultipleColumn.d.ts.map +1 -1
- package/dist/components/core/list/columns/SolidMediaMultipleColumn.js +8 -7
- package/dist/components/core/list/columns/SolidMediaMultipleColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidMediaMultipleColumn.tsx +11 -10
- package/dist/components/core/list/columns/SolidMediaSingleColumn.d.ts.map +1 -1
- package/dist/components/core/list/columns/SolidMediaSingleColumn.js +6 -5
- package/dist/components/core/list/columns/SolidMediaSingleColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidMediaSingleColumn.tsx +6 -5
- package/dist/components/core/list/columns/SolidRelationColumn.d.ts +1 -1
- package/dist/components/core/list/columns/SolidRelationColumn.d.ts.map +1 -1
- package/dist/components/core/list/columns/SolidRelationColumn.js +2 -2
- package/dist/components/core/list/columns/SolidRelationColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidRelationColumn.tsx +2 -2
- package/dist/components/core/list/columns/relations/SolidRelationManyToOneColumn.d.ts +2 -2
- package/dist/components/core/list/columns/relations/SolidRelationManyToOneColumn.d.ts.map +1 -1
- package/dist/components/core/list/columns/relations/SolidRelationManyToOneColumn.js +9 -4
- package/dist/components/core/list/columns/relations/SolidRelationManyToOneColumn.js.map +1 -1
- package/dist/components/core/list/columns/relations/SolidRelationManyToOneColumn.tsx +14 -4
- package/dist/components/core/list/field-quality-check-fixes.md +178 -0
- package/dist/components/core/list/widgets/SolidManyToManyRelationAvatarListWidget.js +1 -1
- package/dist/components/core/list/widgets/SolidManyToManyRelationAvatarListWidget.js.map +1 -1
- package/dist/components/core/list/widgets/SolidManyToManyRelationAvatarListWidget.tsx +1 -1
- package/dist/components/core/list/widgets/SolidShortTextFieldImageRenderModeWidget.js +1 -1
- package/dist/components/core/list/widgets/SolidShortTextFieldImageRenderModeWidget.js.map +1 -1
- package/dist/components/core/list/widgets/SolidShortTextFieldImageRenderModeWidget.tsx +1 -2
- package/dist/components/core/list/widgets/SolidUserBlockedStatusListWidget.d.ts +3 -0
- package/dist/components/core/list/widgets/SolidUserBlockedStatusListWidget.d.ts.map +1 -0
- package/dist/components/core/list/widgets/SolidUserBlockedStatusListWidget.js +39 -0
- package/dist/components/core/list/widgets/SolidUserBlockedStatusListWidget.js.map +1 -0
- package/dist/components/core/list/widgets/SolidUserBlockedStatusListWidget.tsx +50 -0
- package/dist/components/core/locales/SolidLocale.js +3 -3
- package/dist/components/core/locales/SolidLocale.js.map +1 -1
- package/dist/components/core/locales/SolidLocale.tsx +7 -7
- package/dist/components/core/locales/solid-locale.css +5 -4
- package/dist/components/core/model/CreateModel.css +48 -0
- package/dist/components/core/model/CreateModel.d.ts +1 -0
- package/dist/components/core/model/CreateModel.d.ts.map +1 -1
- package/dist/components/core/model/CreateModel.js +80 -128
- package/dist/components/core/model/CreateModel.js.map +1 -1
- package/dist/components/core/model/CreateModel.tsx +102 -226
- package/dist/components/core/model/FieldMetaData.d.ts +1 -1
- package/dist/components/core/model/FieldMetaData.d.ts.map +1 -1
- package/dist/components/core/model/FieldMetaData.js +7 -23
- package/dist/components/core/model/FieldMetaData.js.map +1 -1
- package/dist/components/core/model/FieldMetaData.tsx +17 -50
- package/dist/components/core/model/FieldMetaDataForm.d.ts.map +1 -1
- package/dist/components/core/model/FieldMetaDataForm.js +198 -224
- package/dist/components/core/model/FieldMetaDataForm.js.map +1 -1
- package/dist/components/core/model/FieldMetaDataForm.tsx +75 -302
- package/dist/components/core/model/ModelListViewData.js +4 -4
- package/dist/components/core/model/ModelListViewData.js.map +1 -1
- package/dist/components/core/model/ModelListViewData.tsx +7 -7
- package/dist/components/core/model/ModelMetaData.d.ts.map +1 -1
- package/dist/components/core/model/ModelMetaData.js +13 -25
- package/dist/components/core/model/ModelMetaData.js.map +1 -1
- package/dist/components/core/model/ModelMetaData.tsx +18 -79
- package/dist/components/core/module/CreateModule.css +44 -0
- package/dist/components/core/module/CreateModule.d.ts +1 -0
- package/dist/components/core/module/CreateModule.d.ts.map +1 -1
- package/dist/components/core/module/CreateModule.js +40 -57
- package/dist/components/core/module/CreateModule.js.map +1 -1
- package/dist/components/core/module/CreateModule.tsx +246 -264
- package/dist/components/core/module/ModuleListViewData.d.ts.map +1 -1
- package/dist/components/core/module/ModuleListViewData.js +48 -8
- package/dist/components/core/module/ModuleListViewData.js.map +1 -1
- package/dist/components/core/module/ModuleListViewData.tsx +65 -7
- package/dist/components/core/module/ModuleMetadataExplorer.css +638 -0
- package/dist/components/core/module/ModuleMetadataExplorer.d.ts +15 -0
- package/dist/components/core/module/ModuleMetadataExplorer.d.ts.map +1 -0
- package/dist/components/core/module/ModuleMetadataExplorer.js +666 -0
- package/dist/components/core/module/ModuleMetadataExplorer.js.map +1 -0
- package/dist/components/core/module/ModuleMetadataExplorer.tsx +1000 -0
- package/dist/components/core/module/ModulePackageDialog.css +540 -0
- package/dist/components/core/module/ModulePackageDialog.d.ts +16 -0
- package/dist/components/core/module/ModulePackageDialog.d.ts.map +1 -0
- package/dist/components/core/module/ModulePackageDialog.js +625 -0
- package/dist/components/core/module/ModulePackageDialog.js.map +1 -0
- package/dist/components/core/module/ModulePackageDialog.tsx +906 -0
- package/dist/components/core/solid-ai/SolidAiChat.module.css +2 -2
- package/dist/components/core/tree/SolidTreeTable.js +1 -1
- package/dist/components/core/tree/SolidTreeTable.js.map +1 -1
- package/dist/components/core/tree/SolidTreeTable.tsx +1 -1
- package/dist/components/core/tree/SolidTreeView.d.ts.map +1 -1
- package/dist/components/core/tree/SolidTreeView.js +4 -4
- package/dist/components/core/tree/SolidTreeView.js.map +1 -1
- package/dist/components/core/tree/SolidTreeView.tsx +16 -12
- package/dist/components/core/users/CreateUser.d.ts.map +1 -1
- package/dist/components/core/users/CreateUser.js +51 -27
- package/dist/components/core/users/CreateUser.js.map +1 -1
- package/dist/components/core/users/CreateUser.tsx +47 -68
- package/dist/components/core/users/CreateUserRole.js +2 -2
- package/dist/components/core/users/CreateUserRole.js.map +1 -1
- package/dist/components/core/users/CreateUserRole.tsx +9 -9
- package/dist/components/core/users/UserListView.js +4 -4
- package/dist/components/core/users/UserListView.js.map +1 -1
- package/dist/components/core/users/UserListView.tsx +6 -6
- package/dist/components/layout/AdminHeaderActions.d.ts +8 -0
- package/dist/components/layout/AdminHeaderActions.d.ts.map +1 -0
- package/dist/components/layout/AdminHeaderActions.js +77 -0
- package/dist/components/layout/AdminHeaderActions.js.map +1 -0
- package/dist/components/layout/AdminHeaderActions.tsx +155 -0
- package/dist/components/layout/AdminSidebar.js +1 -1
- package/dist/components/layout/AdminSidebar.js.map +1 -1
- package/dist/components/layout/AdminSidebar.tsx +1 -1
- package/dist/components/layout/AdminTopHeader.d.ts.map +1 -1
- package/dist/components/layout/AdminTopHeader.js +14 -5
- package/dist/components/layout/AdminTopHeader.js.map +1 -1
- package/dist/components/layout/AdminTopHeader.tsx +35 -28
- package/dist/components/layout/AppSidebar.d.ts.map +1 -1
- package/dist/components/layout/AppSidebar.js +2 -1
- package/dist/components/layout/AppSidebar.js.map +1 -1
- package/dist/components/layout/AppSidebar.tsx +2 -0
- package/dist/components/layout/CustomPagination.js +0 -1
- package/dist/components/layout/CustomPagination.js.map +1 -1
- package/dist/components/layout/CustomPagination.tsx +0 -1
- package/dist/components/layout/FilterMenu.js +1 -1
- package/dist/components/layout/FilterMenu.js.map +1 -1
- package/dist/components/layout/FilterMenu.tsx +4 -4
- package/dist/components/layout/Footer.js +1 -1
- package/dist/components/layout/Footer.js.map +1 -1
- package/dist/components/layout/Footer.tsx +1 -1
- package/dist/components/layout/GlobalSearch.js +1 -1
- package/dist/components/layout/GlobalSearch.js.map +1 -1
- package/dist/components/layout/GlobalSearch.tsx +1 -1
- package/dist/components/layout/ListingHeader.js +3 -3
- package/dist/components/layout/ListingHeader.js.map +1 -1
- package/dist/components/layout/ListingHeader.tsx +4 -4
- package/dist/components/layout/Loader.js +1 -1
- package/dist/components/layout/Loader.js.map +1 -1
- package/dist/components/layout/Loader.tsx +1 -1
- package/dist/components/layout/UserSidebar.js +1 -1
- package/dist/components/layout/UserSidebar.js.map +1 -1
- package/dist/components/layout/UserSidebar.tsx +1 -1
- package/dist/components/layout/navbar-one.js +2 -2
- package/dist/components/layout/navbar-one.js.map +1 -1
- package/dist/components/layout/navbar-one.tsx +8 -8
- package/dist/components/layout/navbar-two-menu.js +2 -2
- package/dist/components/layout/navbar-two-menu.js.map +1 -1
- package/dist/components/layout/navbar-two-menu.tsx +7 -7
- package/dist/components/layout/user-profile-menu.d.ts.map +1 -1
- package/dist/components/layout/user-profile-menu.js +57 -33
- package/dist/components/layout/user-profile-menu.js.map +1 -1
- package/dist/components/layout/user-profile-menu.tsx +11 -59
- package/dist/components/shad-cn-ui/SolidAutocomplete.d.ts +2 -1
- package/dist/components/shad-cn-ui/SolidAutocomplete.d.ts.map +1 -1
- package/dist/components/shad-cn-ui/SolidAutocomplete.js +60 -6
- package/dist/components/shad-cn-ui/SolidAutocomplete.js.map +1 -1
- package/dist/components/shad-cn-ui/SolidAutocomplete.tsx +81 -22
- package/dist/components/shad-cn-ui/SolidButton.d.ts.map +1 -1
- package/dist/components/shad-cn-ui/SolidButton.js +10 -2
- package/dist/components/shad-cn-ui/SolidButton.js.map +1 -1
- package/dist/components/shad-cn-ui/SolidButton.tsx +10 -2
- package/dist/components/shad-cn-ui/SolidCodeEditor.d.ts.map +1 -1
- package/dist/components/shad-cn-ui/SolidCodeEditor.js +3 -1
- package/dist/components/shad-cn-ui/SolidCodeEditor.js.map +1 -1
- package/dist/components/shad-cn-ui/SolidCodeEditor.tsx +3 -0
- package/dist/components/shad-cn-ui/SolidDatePicker.d.ts +1 -1
- package/dist/components/shad-cn-ui/SolidDatePicker.d.ts.map +1 -1
- package/dist/components/shad-cn-ui/SolidDatePicker.js +2 -2
- package/dist/components/shad-cn-ui/SolidDatePicker.js.map +1 -1
- package/dist/components/shad-cn-ui/SolidDatePicker.tsx +4 -0
- package/dist/components/shad-cn-ui/SolidDialog.d.ts.map +1 -1
- package/dist/components/shad-cn-ui/SolidDialog.js +38 -4
- package/dist/components/shad-cn-ui/SolidDialog.js.map +1 -1
- package/dist/components/shad-cn-ui/SolidDialog.tsx +47 -3
- package/dist/components/shad-cn-ui/SolidIcon.d.ts +2 -1
- package/dist/components/shad-cn-ui/SolidIcon.d.ts.map +1 -1
- package/dist/components/shad-cn-ui/SolidIcon.js +1 -0
- package/dist/components/shad-cn-ui/SolidIcon.js.map +1 -1
- package/dist/components/shad-cn-ui/SolidIcon.tsx +1 -0
- package/dist/components/shad-cn-ui/SolidPasswordInput.d.ts.map +1 -1
- package/dist/components/shad-cn-ui/SolidPasswordInput.js +1 -1
- package/dist/components/shad-cn-ui/SolidPasswordInput.js.map +1 -1
- package/dist/components/shad-cn-ui/SolidPasswordInput.tsx +1 -0
- package/dist/components/shad-cn-ui/SolidPopover.d.ts +1 -0
- package/dist/components/shad-cn-ui/SolidPopover.d.ts.map +1 -1
- package/dist/components/shad-cn-ui/SolidPopover.js +124 -5
- package/dist/components/shad-cn-ui/SolidPopover.js.map +1 -1
- package/dist/components/shad-cn-ui/SolidPopover.tsx +173 -10
- 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 +51 -1
- package/dist/components/shad-cn-ui/SolidSelect.js.map +1 -1
- package/dist/components/shad-cn-ui/SolidSelect.tsx +95 -0
- package/dist/constants/error-messages.d.ts +13 -0
- package/dist/constants/error-messages.d.ts.map +1 -1
- package/dist/constants/error-messages.js +17 -0
- package/dist/constants/error-messages.js.map +1 -1
- package/dist/constants/error-messages.ts +15 -0
- package/dist/helpers/buttonEnvironment.d.ts +5 -0
- package/dist/helpers/buttonEnvironment.d.ts.map +1 -0
- package/dist/helpers/buttonEnvironment.js +30 -0
- package/dist/helpers/buttonEnvironment.js.map +1 -0
- package/dist/helpers/buttonEnvironment.ts +35 -0
- package/dist/helpers/buttonPresentation.d.ts +24 -0
- package/dist/helpers/buttonPresentation.d.ts.map +1 -0
- package/dist/helpers/buttonPresentation.js +28 -0
- package/dist/helpers/buttonPresentation.js.map +1 -0
- package/dist/helpers/buttonPresentation.ts +53 -0
- package/dist/helpers/fileTypeIcon.d.ts +12 -0
- package/dist/helpers/fileTypeIcon.d.ts.map +1 -0
- package/dist/helpers/fileTypeIcon.js +37 -0
- package/dist/helpers/fileTypeIcon.js.map +1 -0
- package/dist/helpers/fileTypeIcon.tsx +65 -0
- package/dist/helpers/registry.d.ts.map +1 -1
- package/dist/helpers/registry.js +28 -10
- package/dist/helpers/registry.js.map +1 -1
- package/dist/helpers/registry.ts +31 -13
- package/dist/helpers/waitForBackendAvailability.d.ts +7 -0
- package/dist/helpers/waitForBackendAvailability.d.ts.map +1 -0
- package/dist/helpers/waitForBackendAvailability.js +86 -0
- package/dist/helpers/waitForBackendAvailability.js.map +1 -0
- package/dist/helpers/waitForBackendAvailability.ts +37 -0
- package/dist/index.d.ts +8 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -8
- package/dist/index.js.map +1 -1
- package/dist/index.ts +32 -13
- package/dist/nextAuth/authProviders.d.ts +4 -0
- package/dist/nextAuth/authProviders.d.ts.map +1 -0
- package/dist/nextAuth/authProviders.js +198 -0
- package/dist/nextAuth/authProviders.js.map +1 -0
- package/dist/nextAuth/authProviders.tsx +232 -0
- package/dist/nextAuth/handleLogout.d.ts +2 -0
- package/dist/nextAuth/handleLogout.d.ts.map +1 -0
- package/dist/nextAuth/handleLogout.js +36 -0
- package/dist/nextAuth/handleLogout.js.map +1 -0
- package/dist/nextAuth/handleLogout.tsx +39 -0
- package/dist/nextAuth/refreshAccessToken.d.ts +2 -0
- package/dist/nextAuth/refreshAccessToken.d.ts.map +1 -0
- package/dist/nextAuth/refreshAccessToken.js +24 -0
- package/dist/nextAuth/refreshAccessToken.js.map +1 -0
- package/dist/nextAuth/refreshAccessToken.tsx +28 -0
- package/dist/redux/api/dashboardRuntimeApi.d.ts +34 -0
- package/dist/redux/api/dashboardRuntimeApi.d.ts.map +1 -0
- package/dist/redux/api/dashboardRuntimeApi.js +79 -0
- package/dist/redux/api/dashboardRuntimeApi.js.map +1 -0
- package/dist/redux/api/dashboardRuntimeApi.ts +75 -0
- package/dist/redux/api/moduleApi.d.ts +26 -1
- package/dist/redux/api/moduleApi.d.ts.map +1 -1
- package/dist/redux/api/moduleApi.js +237 -1
- package/dist/redux/api/moduleApi.js.map +1 -1
- package/dist/redux/api/moduleApi.ts +181 -1
- package/dist/redux/api/solidChatterMessageApi.d.ts +2 -1
- package/dist/redux/api/solidChatterMessageApi.d.ts.map +1 -1
- package/dist/redux/api/solidChatterMessageApi.js +11 -1
- package/dist/redux/api/solidChatterMessageApi.js.map +1 -1
- package/dist/redux/api/solidChatterMessageApi.ts +10 -1
- package/dist/redux/features/settingsSlice.d.ts +20 -0
- package/dist/redux/features/settingsSlice.d.ts.map +1 -0
- package/dist/redux/features/settingsSlice.js +39 -0
- package/dist/redux/features/settingsSlice.js.map +1 -0
- package/dist/redux/features/settingsSlice.ts +60 -0
- package/dist/redux/store/defaultStoreConfig.d.ts +57 -9
- package/dist/redux/store/defaultStoreConfig.d.ts.map +1 -1
- package/dist/redux/store/defaultStoreConfig.js +2 -6
- package/dist/redux/store/defaultStoreConfig.js.map +1 -1
- package/dist/redux/store/defaultStoreConfig.ts +2 -6
- package/dist/redux/store/solidEntityApiPool.d.ts +1 -0
- package/dist/redux/store/solidEntityApiPool.d.ts.map +1 -1
- package/dist/redux/store/solidEntityApiPool.js +4 -0
- package/dist/redux/store/solidEntityApiPool.js.map +1 -1
- package/dist/redux/store/solidEntityApiPool.ts +4 -0
- package/dist/resources/globals.css +195 -20
- package/dist/resources/shadcn-base.css +392 -175
- package/dist/resources/solid-custom.css +6565 -0
- package/dist/resources/solid-primereact.css +14 -12
- package/dist/resources/solid-responsive.css +259 -51
- package/dist/resources/solid-tailwind-generated.css +1 -0
- package/dist/resources/solid-tailwind.css +3 -0
- package/dist/routes/AppEventListener.d.ts.map +1 -1
- package/dist/routes/AppEventListener.js +58 -8
- package/dist/routes/AppEventListener.js.map +1 -1
- package/dist/routes/AppEventListener.tsx +69 -8
- package/dist/routes/pages/admin/core/DashboardPage.d.ts +1 -0
- package/dist/routes/pages/admin/core/DashboardPage.d.ts.map +1 -1
- package/dist/routes/pages/admin/core/DashboardPage.js +860 -5
- package/dist/routes/pages/admin/core/DashboardPage.js.map +1 -1
- package/dist/routes/pages/admin/core/DashboardPage.module.css +219 -0
- package/dist/routes/pages/admin/core/DashboardPage.tsx +1025 -7
- package/dist/routes/pages/auth/InitiateMicrosoftActiveDirectoryOauthPage.d.ts +2 -0
- package/dist/routes/pages/auth/InitiateMicrosoftActiveDirectoryOauthPage.d.ts.map +1 -0
- package/dist/routes/pages/auth/InitiateMicrosoftActiveDirectoryOauthPage.js +6 -0
- package/dist/routes/pages/auth/InitiateMicrosoftActiveDirectoryOauthPage.js.map +1 -0
- package/dist/routes/pages/auth/InitiateMicrosoftActiveDirectoryOauthPage.tsx +5 -0
- package/dist/routes/pages/auth/SsoPage.js +1 -1
- package/dist/routes/pages/auth/SsoPage.js.map +1 -1
- package/dist/routes/pages/auth/SsoPage.tsx +1 -1
- package/dist/routes/solidRoutes.d.ts.map +1 -1
- package/dist/routes/solidRoutes.js +2 -2
- package/dist/routes/solidRoutes.js.map +1 -1
- package/dist/routes/solidRoutes.tsx +2 -2
- 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 +1 -1
- package/dist/styles.d.ts +2 -1
- package/dist/styles.d.ts.map +1 -1
- package/dist/styles.js +2 -1
- package/dist/styles.js.map +1 -1
- package/dist/styles.ts +2 -1
- package/dist/types/dashboard.d.ts +16 -0
- package/dist/types/dashboard.d.ts.map +1 -0
- package/dist/types/dashboard.js +2 -0
- package/dist/types/dashboard.js.map +1 -0
- package/dist/types/dashboard.ts +23 -0
- package/dist/types/extension-registry.d.ts +1 -0
- package/dist/types/extension-registry.d.ts.map +1 -1
- package/dist/types/extension-registry.js +1 -0
- package/dist/types/extension-registry.js.map +1 -1
- package/dist/types/extension-registry.ts +1 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/jsoneditor.d.ts +4 -0
- package/dist/types/solid-core.d.ts +1 -0
- package/package.json +9 -3
- package/dist/components/core/list/SolidDataTablePagination.d.ts +0 -15
- package/dist/components/core/list/SolidDataTablePagination.d.ts.map +0 -1
- package/dist/components/core/list/SolidDataTablePagination.js +0 -22
- package/dist/components/core/list/SolidDataTablePagination.js.map +0 -1
- package/dist/components/core/list/SolidDataTablePagination.tsx +0 -71
- package/dist/components/solid-ui/SolidButton.d.ts +0 -14
- package/dist/components/solid-ui/SolidButton.d.ts.map +0 -1
- package/dist/components/solid-ui/SolidButton.js +0 -36
- package/dist/components/solid-ui/SolidButton.js.map +0 -1
- package/dist/components/solid-ui/SolidButton.tsx +0 -54
- package/dist/components/solid-ui/SolidTabs.d.ts +0 -18
- package/dist/components/solid-ui/SolidTabs.d.ts.map +0 -1
- package/dist/components/solid-ui/SolidTabs.js +0 -22
- package/dist/components/solid-ui/SolidTabs.js.map +0 -1
- package/dist/components/solid-ui/SolidTabs.tsx +0 -73
- package/dist/components/solid-ui/index.d.ts +0 -3
- package/dist/components/solid-ui/index.d.ts.map +0 -1
- package/dist/components/solid-ui/index.js +0 -3
- package/dist/components/solid-ui/index.js.map +0 -1
- package/dist/components/solid-ui/index.ts +0 -2
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import * as React from "react";
|
|
2
|
+
import { createPortal } from "react-dom";
|
|
2
3
|
|
|
3
4
|
type SolidPopoverContextValue = {
|
|
4
5
|
open: boolean;
|
|
5
6
|
setOpen: (open: boolean) => void;
|
|
7
|
+
rootRef: React.MutableRefObject<HTMLDivElement | null>;
|
|
8
|
+
contentRef: React.MutableRefObject<HTMLDivElement | null>;
|
|
6
9
|
};
|
|
7
10
|
|
|
8
11
|
const SolidPopoverContext = React.createContext<SolidPopoverContextValue | null>(null);
|
|
@@ -12,10 +15,19 @@ function cx(...parts: Array<string | false | undefined>) {
|
|
|
12
15
|
return parts.filter(Boolean).join(" ");
|
|
13
16
|
}
|
|
14
17
|
|
|
18
|
+
function assignRef<T>(ref: React.ForwardedRef<T>, value: T) {
|
|
19
|
+
if (typeof ref === "function") {
|
|
20
|
+
ref(value);
|
|
21
|
+
} else if (ref && typeof ref === "object") {
|
|
22
|
+
ref.current = value;
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
|
|
15
26
|
type SolidPopoverContentProps = React.HTMLAttributes<HTMLDivElement> & {
|
|
16
27
|
sideOffset?: number;
|
|
17
28
|
align?: "start" | "center" | "end";
|
|
18
29
|
side?: "top" | "right" | "bottom" | "left";
|
|
30
|
+
portal?: boolean;
|
|
19
31
|
};
|
|
20
32
|
|
|
21
33
|
type SolidPopoverContentStyle = React.CSSProperties & {
|
|
@@ -29,6 +41,83 @@ type SolidPopoverProps = {
|
|
|
29
41
|
autoCloseGroup?: string;
|
|
30
42
|
};
|
|
31
43
|
|
|
44
|
+
type PopoverPosition = {
|
|
45
|
+
left: number;
|
|
46
|
+
top: number;
|
|
47
|
+
side: "top" | "right" | "bottom" | "left";
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
const POPOVER_VIEWPORT_OFFSET = 8;
|
|
51
|
+
const POPOVER_PORTAL_Z_INDEX = 100000;
|
|
52
|
+
|
|
53
|
+
function clamp(value: number, min: number, max: number) {
|
|
54
|
+
return Math.min(Math.max(value, min), max);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
function resolvePopoverPosition({
|
|
58
|
+
triggerRect,
|
|
59
|
+
contentRect,
|
|
60
|
+
side,
|
|
61
|
+
align,
|
|
62
|
+
sideOffset,
|
|
63
|
+
}: {
|
|
64
|
+
triggerRect: DOMRect;
|
|
65
|
+
contentRect: DOMRect;
|
|
66
|
+
side: "top" | "right" | "bottom" | "left";
|
|
67
|
+
align: "start" | "center" | "end";
|
|
68
|
+
sideOffset: number;
|
|
69
|
+
}): PopoverPosition {
|
|
70
|
+
const viewportWidth = window.innerWidth;
|
|
71
|
+
const viewportHeight = window.innerHeight;
|
|
72
|
+
const availableTop = triggerRect.top;
|
|
73
|
+
const availableBottom = viewportHeight - triggerRect.bottom;
|
|
74
|
+
const availableLeft = triggerRect.left;
|
|
75
|
+
const availableRight = viewportWidth - triggerRect.right;
|
|
76
|
+
|
|
77
|
+
let resolvedSide = side;
|
|
78
|
+
|
|
79
|
+
if (side === "bottom" && availableBottom < contentRect.height + sideOffset && availableTop > availableBottom) {
|
|
80
|
+
resolvedSide = "top";
|
|
81
|
+
} else if (side === "top" && availableTop < contentRect.height + sideOffset && availableBottom > availableTop) {
|
|
82
|
+
resolvedSide = "bottom";
|
|
83
|
+
} else if (side === "right" && availableRight < contentRect.width + sideOffset && availableLeft > availableRight) {
|
|
84
|
+
resolvedSide = "left";
|
|
85
|
+
} else if (side === "left" && availableLeft < contentRect.width + sideOffset && availableRight > availableLeft) {
|
|
86
|
+
resolvedSide = "right";
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
let top = triggerRect.bottom + sideOffset;
|
|
90
|
+
let left = triggerRect.left;
|
|
91
|
+
|
|
92
|
+
if (resolvedSide === "bottom" || resolvedSide === "top") {
|
|
93
|
+
if (align === "center") {
|
|
94
|
+
left = triggerRect.left + (triggerRect.width / 2) - (contentRect.width / 2);
|
|
95
|
+
} else if (align === "end") {
|
|
96
|
+
left = triggerRect.right - contentRect.width;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
top = resolvedSide === "bottom"
|
|
100
|
+
? triggerRect.bottom + sideOffset
|
|
101
|
+
: triggerRect.top - contentRect.height - sideOffset;
|
|
102
|
+
} else {
|
|
103
|
+
if (align === "center") {
|
|
104
|
+
top = triggerRect.top + (triggerRect.height / 2) - (contentRect.height / 2);
|
|
105
|
+
} else if (align === "end") {
|
|
106
|
+
top = triggerRect.bottom - contentRect.height;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
left = resolvedSide === "right"
|
|
110
|
+
? triggerRect.right + sideOffset
|
|
111
|
+
: triggerRect.left - contentRect.width - sideOffset;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
return {
|
|
115
|
+
left: clamp(left, POPOVER_VIEWPORT_OFFSET, Math.max(POPOVER_VIEWPORT_OFFSET, viewportWidth - contentRect.width - POPOVER_VIEWPORT_OFFSET)),
|
|
116
|
+
top: clamp(top, POPOVER_VIEWPORT_OFFSET, Math.max(POPOVER_VIEWPORT_OFFSET, viewportHeight - contentRect.height - POPOVER_VIEWPORT_OFFSET)),
|
|
117
|
+
side: resolvedSide,
|
|
118
|
+
};
|
|
119
|
+
}
|
|
120
|
+
|
|
32
121
|
export function SolidPopover({
|
|
33
122
|
open,
|
|
34
123
|
onOpenChange,
|
|
@@ -36,6 +125,7 @@ export function SolidPopover({
|
|
|
36
125
|
autoCloseGroup,
|
|
37
126
|
}: SolidPopoverProps) {
|
|
38
127
|
const rootRef = React.useRef<HTMLDivElement | null>(null);
|
|
128
|
+
const contentRef = React.useRef<HTMLDivElement | null>(null);
|
|
39
129
|
const popoverId = React.useId();
|
|
40
130
|
const [internalOpen, setInternalOpen] = React.useState(false);
|
|
41
131
|
const isControlled = typeof open === "boolean";
|
|
@@ -71,7 +161,9 @@ export function SolidPopover({
|
|
|
71
161
|
if (!currentOpen || typeof document === "undefined") return;
|
|
72
162
|
const handlePointerDown = (event: MouseEvent) => {
|
|
73
163
|
const root = rootRef.current;
|
|
74
|
-
|
|
164
|
+
const content = contentRef.current;
|
|
165
|
+
const target = event.target as Node;
|
|
166
|
+
if (!root || root.contains(target) || content?.contains(target)) return;
|
|
75
167
|
handleSetOpen(false);
|
|
76
168
|
};
|
|
77
169
|
document.addEventListener("pointerdown", handlePointerDown);
|
|
@@ -81,7 +173,7 @@ export function SolidPopover({
|
|
|
81
173
|
}, [currentOpen, handleSetOpen]);
|
|
82
174
|
|
|
83
175
|
return (
|
|
84
|
-
<SolidPopoverContext.Provider value={{ open: currentOpen, setOpen: handleSetOpen }}>
|
|
176
|
+
<SolidPopoverContext.Provider value={{ open: currentOpen, setOpen: handleSetOpen, rootRef, contentRef }}>
|
|
85
177
|
<div className="solid-popover-root" ref={rootRef}>
|
|
86
178
|
{children}
|
|
87
179
|
</div>
|
|
@@ -121,29 +213,100 @@ export function SolidPopoverTrigger({
|
|
|
121
213
|
}
|
|
122
214
|
|
|
123
215
|
export const SolidPopoverContent = React.forwardRef<HTMLDivElement, SolidPopoverContentProps>(function SolidPopoverContent(
|
|
124
|
-
{ className, children, sideOffset = 4, align = "end", side = "bottom", style, ...props },
|
|
216
|
+
{ className, children, sideOffset = 4, align = "end", side = "bottom", style, portal = true, ...props },
|
|
125
217
|
ref
|
|
126
218
|
) {
|
|
127
219
|
const ctx = React.useContext(SolidPopoverContext);
|
|
128
220
|
if (!ctx || !ctx.open) return null;
|
|
129
221
|
|
|
222
|
+
const localRef = React.useRef<HTMLDivElement | null>(null);
|
|
223
|
+
const [portalPosition, setPortalPosition] = React.useState<PopoverPosition | null>(null);
|
|
224
|
+
|
|
225
|
+
const attachRef = React.useCallback((node: HTMLDivElement | null) => {
|
|
226
|
+
localRef.current = node;
|
|
227
|
+
ctx.contentRef.current = node;
|
|
228
|
+
assignRef(ref, node);
|
|
229
|
+
}, [ctx.contentRef, ref]);
|
|
230
|
+
|
|
231
|
+
React.useLayoutEffect(() => {
|
|
232
|
+
if (!portal || typeof window === "undefined") {
|
|
233
|
+
setPortalPosition(null);
|
|
234
|
+
return;
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
const updatePosition = () => {
|
|
238
|
+
const trigger = ctx.rootRef.current;
|
|
239
|
+
const content = localRef.current;
|
|
240
|
+
if (!trigger || !content) return;
|
|
241
|
+
|
|
242
|
+
const triggerRect = trigger.getBoundingClientRect();
|
|
243
|
+
const contentRect = content.getBoundingClientRect();
|
|
244
|
+
const nextPosition = resolvePopoverPosition({ triggerRect, contentRect, side, align, sideOffset });
|
|
245
|
+
|
|
246
|
+
setPortalPosition(nextPosition);
|
|
247
|
+
};
|
|
248
|
+
|
|
249
|
+
const rafId = window.requestAnimationFrame(updatePosition);
|
|
250
|
+
window.addEventListener("resize", updatePosition);
|
|
251
|
+
window.addEventListener("scroll", updatePosition, true);
|
|
252
|
+
|
|
253
|
+
const observer = typeof ResizeObserver !== "undefined"
|
|
254
|
+
? new ResizeObserver(() => updatePosition())
|
|
255
|
+
: null;
|
|
256
|
+
|
|
257
|
+
if (observer) {
|
|
258
|
+
if (ctx.rootRef.current) observer.observe(ctx.rootRef.current);
|
|
259
|
+
if (localRef.current) observer.observe(localRef.current);
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
return () => {
|
|
263
|
+
window.cancelAnimationFrame(rafId);
|
|
264
|
+
window.removeEventListener("resize", updatePosition);
|
|
265
|
+
window.removeEventListener("scroll", updatePosition, true);
|
|
266
|
+
observer?.disconnect();
|
|
267
|
+
};
|
|
268
|
+
}, [align, ctx.rootRef, portal, side, sideOffset]);
|
|
269
|
+
|
|
130
270
|
const offsetValue = `${sideOffset}px`;
|
|
131
|
-
const contentStyle
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
271
|
+
const contentStyle = React.useMemo<SolidPopoverContentStyle>(() => {
|
|
272
|
+
if (!portal) {
|
|
273
|
+
return {
|
|
274
|
+
...(style ?? {}),
|
|
275
|
+
["--solid-popover-side-offset"]: offsetValue,
|
|
276
|
+
};
|
|
277
|
+
}
|
|
135
278
|
|
|
136
|
-
|
|
279
|
+
return {
|
|
280
|
+
...(style ?? {}),
|
|
281
|
+
["--solid-popover-side-offset"]: offsetValue,
|
|
282
|
+
position: "fixed",
|
|
283
|
+
top: portalPosition?.top ?? 0,
|
|
284
|
+
left: portalPosition?.left ?? 0,
|
|
285
|
+
right: "auto",
|
|
286
|
+
bottom: "auto",
|
|
287
|
+
transform: "none",
|
|
288
|
+
zIndex: POPOVER_PORTAL_Z_INDEX,
|
|
289
|
+
pointerEvents: "auto",
|
|
290
|
+
visibility: portalPosition ? "visible" : "hidden",
|
|
291
|
+
};
|
|
292
|
+
}, [offsetValue, portal, portalPosition, style]);
|
|
293
|
+
|
|
294
|
+
const content = (
|
|
137
295
|
<div
|
|
138
|
-
ref={
|
|
296
|
+
ref={attachRef}
|
|
139
297
|
className={cx("solid-popover-content", className)}
|
|
140
298
|
role="dialog"
|
|
141
299
|
data-align={align}
|
|
142
|
-
data-side={side}
|
|
300
|
+
data-side={portalPosition?.side ?? side}
|
|
301
|
+
data-portal={portal ? "true" : "false"}
|
|
143
302
|
style={contentStyle}
|
|
144
303
|
{...props}
|
|
145
304
|
>
|
|
146
305
|
{children}
|
|
147
306
|
</div>
|
|
148
307
|
);
|
|
308
|
+
|
|
309
|
+
return portal && typeof document !== "undefined"
|
|
310
|
+
? createPortal(content, document.body)
|
|
311
|
+
: content;
|
|
149
312
|
});
|
|
@@ -11,7 +11,8 @@ type SolidSelectProps = {
|
|
|
11
11
|
value: any;
|
|
12
12
|
}) => void;
|
|
13
13
|
id?: string;
|
|
14
|
+
native?: boolean;
|
|
14
15
|
};
|
|
15
|
-
export declare function SolidSelect({ value, options, optionLabel, optionValue, placeholder, className, disabled, onChange, id, }: SolidSelectProps): import("react/jsx-runtime").JSX.Element;
|
|
16
|
+
export declare function SolidSelect({ value, options, optionLabel, optionValue, placeholder, className, disabled, onChange, id, native, }: SolidSelectProps): import("react/jsx-runtime").JSX.Element;
|
|
16
17
|
export {};
|
|
17
18
|
//# sourceMappingURL=SolidSelect.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SolidSelect.d.ts","sourceRoot":"","sources":["../../../src/components/shad-cn-ui/SolidSelect.tsx"],"names":[],"mappings":"AAGA,KAAK,iBAAiB,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;AAE7C,KAAK,gBAAgB,GAAG;IACtB,KAAK,CAAC,EAAE,GAA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{ jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import React from "react";
|
|
2
3
|
import { ChevronDown } from "lucide-react";
|
|
3
4
|
function cx() {
|
|
4
5
|
var parts = [];
|
|
@@ -8,7 +9,11 @@ function cx() {
|
|
|
8
9
|
return parts.filter(Boolean).join(" ");
|
|
9
10
|
}
|
|
10
11
|
export function SolidSelect(_a) {
|
|
11
|
-
var value = _a.value, _b = _a.options, options = _b === void 0 ? [] : _b, _c = _a.optionLabel, optionLabel = _c === void 0 ? "label" : _c, _d = _a.optionValue, optionValue = _d === void 0 ? "value" : _d, placeholder = _a.placeholder, className = _a.className, disabled = _a.disabled, onChange = _a.onChange, id = _a.id;
|
|
12
|
+
var value = _a.value, _b = _a.options, options = _b === void 0 ? [] : _b, _c = _a.optionLabel, optionLabel = _c === void 0 ? "label" : _c, _d = _a.optionValue, optionValue = _d === void 0 ? "value" : _d, placeholder = _a.placeholder, className = _a.className, disabled = _a.disabled, onChange = _a.onChange, id = _a.id, _e = _a.native, native = _e === void 0 ? true : _e;
|
|
13
|
+
var _f = React.useState(false), open = _f[0], setOpen = _f[1];
|
|
14
|
+
var _g = React.useState(false), openUpward = _g[0], setOpenUpward = _g[1];
|
|
15
|
+
var rootRef = React.useRef(null);
|
|
16
|
+
var menuRef = React.useRef(null);
|
|
12
17
|
var normalized = options.map(function (option, index) {
|
|
13
18
|
var _a;
|
|
14
19
|
return ({
|
|
@@ -19,6 +24,51 @@ export function SolidSelect(_a) {
|
|
|
19
24
|
});
|
|
20
25
|
var selectedIndex = normalized.findIndex(function (item) { return item.value === value; });
|
|
21
26
|
var selectedKey = selectedIndex >= 0 ? normalized[selectedIndex].key : "";
|
|
27
|
+
var selectedOption = selectedIndex >= 0 ? normalized[selectedIndex] : null;
|
|
28
|
+
React.useEffect(function () {
|
|
29
|
+
if (!open)
|
|
30
|
+
return;
|
|
31
|
+
var handlePointerDown = function (event) {
|
|
32
|
+
var _a;
|
|
33
|
+
if (!((_a = rootRef.current) === null || _a === void 0 ? void 0 : _a.contains(event.target))) {
|
|
34
|
+
setOpen(false);
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
var handleEscape = function (event) {
|
|
38
|
+
if (event.key === "Escape") {
|
|
39
|
+
setOpen(false);
|
|
40
|
+
}
|
|
41
|
+
};
|
|
42
|
+
document.addEventListener("mousedown", handlePointerDown);
|
|
43
|
+
document.addEventListener("touchstart", handlePointerDown);
|
|
44
|
+
document.addEventListener("keydown", handleEscape);
|
|
45
|
+
return function () {
|
|
46
|
+
document.removeEventListener("mousedown", handlePointerDown);
|
|
47
|
+
document.removeEventListener("touchstart", handlePointerDown);
|
|
48
|
+
document.removeEventListener("keydown", handleEscape);
|
|
49
|
+
};
|
|
50
|
+
}, [open]);
|
|
51
|
+
React.useLayoutEffect(function () {
|
|
52
|
+
if (!open || native || !rootRef.current || !menuRef.current)
|
|
53
|
+
return;
|
|
54
|
+
var rootRect = rootRef.current.getBoundingClientRect();
|
|
55
|
+
var menuHeight = menuRef.current.offsetHeight;
|
|
56
|
+
var viewportHeight = window.innerHeight;
|
|
57
|
+
var spaceBelow = viewportHeight - rootRect.bottom;
|
|
58
|
+
var spaceAbove = rootRect.top;
|
|
59
|
+
var needsOpenUpward = spaceBelow < menuHeight + 8 && spaceAbove > spaceBelow;
|
|
60
|
+
setOpenUpward(needsOpenUpward);
|
|
61
|
+
}, [open, native, options.length]);
|
|
62
|
+
if (!native) {
|
|
63
|
+
return (_jsxs("div", { ref: rootRef, className: cx("solid-select-wrap", "solid-select-wrap-custom", className), children: [_jsxs("button", { id: id, type: "button", className: "solid-select solid-select-trigger", disabled: disabled, "aria-haspopup": "listbox", "aria-expanded": open, onClick: function () {
|
|
64
|
+
if (disabled)
|
|
65
|
+
return;
|
|
66
|
+
setOpen(function (prev) { return !prev; });
|
|
67
|
+
}, children: [_jsx("span", { className: cx("solid-select-trigger-label", !selectedOption && "solid-select-placeholder"), children: (selectedOption === null || selectedOption === void 0 ? void 0 : selectedOption.label) || placeholder || "Select" }), _jsx("span", { className: "solid-select-icon", "aria-hidden": "true", children: _jsx(ChevronDown, { size: 14 }) })] }), open ? (_jsx("div", { ref: menuRef, className: cx("solid-select-menu", openUpward && "solid-select-menu-top"), role: "listbox", children: normalized.map(function (item) { return (_jsx("button", { type: "button", role: "option", className: cx("solid-select-menu-item", item.value === value && "is-selected"), "aria-selected": item.value === value, onClick: function () {
|
|
68
|
+
onChange === null || onChange === void 0 ? void 0 : onChange({ value: item.value });
|
|
69
|
+
setOpen(false);
|
|
70
|
+
}, children: item.label }, item.key)); }) })) : null] }));
|
|
71
|
+
}
|
|
22
72
|
return (_jsxs("div", { className: cx("solid-select-wrap", className), children: [_jsxs("select", { id: id, className: "solid-select", value: selectedKey, disabled: disabled, onChange: function (event) {
|
|
23
73
|
var next = normalized.find(function (item) { return item.key === event.target.value; });
|
|
24
74
|
onChange === null || onChange === void 0 ? void 0 : onChange({ value: next === null || next === void 0 ? void 0 : next.value });
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SolidSelect.js","sourceRoot":"","sources":["../../../src/components/shad-cn-ui/SolidSelect.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"SolidSelect.js","sourceRoot":"","sources":["../../../src/components/shad-cn-ui/SolidSelect.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAiB3C,SAAS,EAAE;IAAC,eAA2C;SAA3C,UAA2C,EAA3C,qBAA2C,EAA3C,IAA2C;QAA3C,0BAA2C;;IACrD,OAAO,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;AACzC,CAAC;AAED,MAAM,UAAU,WAAW,CAAC,EAWT;QAVjB,KAAK,WAAA,EACL,eAAY,EAAZ,OAAO,mBAAG,EAAE,KAAA,EACZ,mBAAqB,EAArB,WAAW,mBAA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AAC,mBAAmB,iBAAa,MAAM,YACpD,KAAC,WAAW,IAAC,IAAI,EAAE,EAAE,GAAI,GACpB,IACH,CACP,CAAC;AACJ,CAAC","sourcesContent":["import React from \"react\";\nimport { ChevronDown } from \"lucide-react\";\n\ntype SolidSelectOption = Record<string, any>;\n\ntype SolidSelectProps = {\n value?: any;\n options?: SolidSelectOption[];\n optionLabel?: string;\n optionValue?: string;\n placeholder?: string;\n className?: string;\n disabled?: boolean;\n onChange?: (event: { value: any }) => void;\n id?: string;\n native?: boolean;\n};\n\nfunction cx(...parts: Array<string | false | undefined>) {\n return parts.filter(Boolean).join(\" \");\n}\n\nexport function SolidSelect({\n value,\n options = [],\n optionLabel = \"label\",\n optionValue = \"value\",\n placeholder,\n className,\n disabled,\n onChange,\n id,\n native = true,\n}: SolidSelectProps) {\n const [open, setOpen] = React.useState(false);\n const [openUpward, setOpenUpward] = React.useState(false);\n const rootRef = React.useRef<HTMLDivElement | null>(null);\n const menuRef = React.useRef<HTMLDivElement | null>(null);\n const normalized = options.map((option, index) => ({\n key: String(index),\n label: option?.[optionLabel] ?? \"\",\n value: option?.[optionValue],\n }));\n\n const selectedIndex = normalized.findIndex((item) => item.value === value);\n const selectedKey = selectedIndex >= 0 ? normalized[selectedIndex].key : \"\";\n const selectedOption = selectedIndex >= 0 ? normalized[selectedIndex] : null;\n\n React.useEffect(() => {\n if (!open) return;\n\n const handlePointerDown = (event: MouseEvent | TouchEvent) => {\n if (!rootRef.current?.contains(event.target as Node)) {\n setOpen(false);\n }\n };\n\n const handleEscape = (event: KeyboardEvent) => {\n if (event.key === \"Escape\") {\n setOpen(false);\n }\n };\n\n document.addEventListener(\"mousedown\", handlePointerDown);\n document.addEventListener(\"touchstart\", handlePointerDown);\n document.addEventListener(\"keydown\", handleEscape);\n\n return () => {\n document.removeEventListener(\"mousedown\", handlePointerDown);\n document.removeEventListener(\"touchstart\", handlePointerDown);\n document.removeEventListener(\"keydown\", handleEscape);\n };\n }, [open]);\n\n React.useLayoutEffect(() => {\n if (!open || native || !rootRef.current || !menuRef.current) return;\n\n const rootRect = rootRef.current.getBoundingClientRect();\n const menuHeight = menuRef.current.offsetHeight;\n const viewportHeight = window.innerHeight;\n const spaceBelow = viewportHeight - rootRect.bottom;\n const spaceAbove = rootRect.top;\n const needsOpenUpward = spaceBelow < menuHeight + 8 && spaceAbove > spaceBelow;\n\n setOpenUpward(needsOpenUpward);\n }, [open, native, options.length]);\n\n if (!native) {\n return (\n <div ref={rootRef} className={cx(\"solid-select-wrap\", \"solid-select-wrap-custom\", className)}>\n <button\n id={id}\n type=\"button\"\n className=\"solid-select solid-select-trigger\"\n disabled={disabled}\n aria-haspopup=\"listbox\"\n aria-expanded={open}\n onClick={() => {\n if (disabled) return;\n setOpen((prev) => !prev);\n }}\n >\n <span className={cx(\"solid-select-trigger-label\", !selectedOption && \"solid-select-placeholder\")}>\n {selectedOption?.label || placeholder || \"Select\"}\n </span>\n <span className=\"solid-select-icon\" aria-hidden=\"true\">\n <ChevronDown size={14} />\n </span>\n </button>\n {open ? (\n <div\n ref={menuRef}\n className={cx(\"solid-select-menu\", openUpward && \"solid-select-menu-top\")}\n role=\"listbox\"\n >\n {normalized.map((item) => (\n <button\n key={item.key}\n type=\"button\"\n role=\"option\"\n className={cx(\"solid-select-menu-item\", item.value === value && \"is-selected\")}\n aria-selected={item.value === value}\n onClick={() => {\n onChange?.({ value: item.value });\n setOpen(false);\n }}\n >\n {item.label}\n </button>\n ))}\n </div>\n ) : null}\n </div>\n );\n }\n\n return (\n <div className={cx(\"solid-select-wrap\", className)}>\n <select\n id={id}\n className=\"solid-select\"\n value={selectedKey}\n disabled={disabled}\n onChange={(event) => {\n const next = normalized.find((item) => item.key === event.target.value);\n onChange?.({ value: next?.value });\n }}\n >\n <option value=\"\" disabled>\n {placeholder || \"Select\"}\n </option>\n {normalized.map((item) => (\n <option key={item.key} value={item.key}>\n {item.label}\n </option>\n ))}\n </select>\n <span className=\"solid-select-icon\" aria-hidden=\"true\">\n <ChevronDown size={14} />\n </span>\n </div>\n );\n}\n"]}
|
|
@@ -13,6 +13,7 @@ type SolidSelectProps = {
|
|
|
13
13
|
disabled?: boolean;
|
|
14
14
|
onChange?: (event: { value: any }) => void;
|
|
15
15
|
id?: string;
|
|
16
|
+
native?: boolean;
|
|
16
17
|
};
|
|
17
18
|
|
|
18
19
|
function cx(...parts: Array<string | false | undefined>) {
|
|
@@ -29,7 +30,12 @@ export function SolidSelect({
|
|
|
29
30
|
disabled,
|
|
30
31
|
onChange,
|
|
31
32
|
id,
|
|
33
|
+
native = true,
|
|
32
34
|
}: SolidSelectProps) {
|
|
35
|
+
const [open, setOpen] = React.useState(false);
|
|
36
|
+
const [openUpward, setOpenUpward] = React.useState(false);
|
|
37
|
+
const rootRef = React.useRef<HTMLDivElement | null>(null);
|
|
38
|
+
const menuRef = React.useRef<HTMLDivElement | null>(null);
|
|
33
39
|
const normalized = options.map((option, index) => ({
|
|
34
40
|
key: String(index),
|
|
35
41
|
label: option?.[optionLabel] ?? "",
|
|
@@ -38,6 +44,95 @@ export function SolidSelect({
|
|
|
38
44
|
|
|
39
45
|
const selectedIndex = normalized.findIndex((item) => item.value === value);
|
|
40
46
|
const selectedKey = selectedIndex >= 0 ? normalized[selectedIndex].key : "";
|
|
47
|
+
const selectedOption = selectedIndex >= 0 ? normalized[selectedIndex] : null;
|
|
48
|
+
|
|
49
|
+
React.useEffect(() => {
|
|
50
|
+
if (!open) return;
|
|
51
|
+
|
|
52
|
+
const handlePointerDown = (event: MouseEvent | TouchEvent) => {
|
|
53
|
+
if (!rootRef.current?.contains(event.target as Node)) {
|
|
54
|
+
setOpen(false);
|
|
55
|
+
}
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
const handleEscape = (event: KeyboardEvent) => {
|
|
59
|
+
if (event.key === "Escape") {
|
|
60
|
+
setOpen(false);
|
|
61
|
+
}
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
document.addEventListener("mousedown", handlePointerDown);
|
|
65
|
+
document.addEventListener("touchstart", handlePointerDown);
|
|
66
|
+
document.addEventListener("keydown", handleEscape);
|
|
67
|
+
|
|
68
|
+
return () => {
|
|
69
|
+
document.removeEventListener("mousedown", handlePointerDown);
|
|
70
|
+
document.removeEventListener("touchstart", handlePointerDown);
|
|
71
|
+
document.removeEventListener("keydown", handleEscape);
|
|
72
|
+
};
|
|
73
|
+
}, [open]);
|
|
74
|
+
|
|
75
|
+
React.useLayoutEffect(() => {
|
|
76
|
+
if (!open || native || !rootRef.current || !menuRef.current) return;
|
|
77
|
+
|
|
78
|
+
const rootRect = rootRef.current.getBoundingClientRect();
|
|
79
|
+
const menuHeight = menuRef.current.offsetHeight;
|
|
80
|
+
const viewportHeight = window.innerHeight;
|
|
81
|
+
const spaceBelow = viewportHeight - rootRect.bottom;
|
|
82
|
+
const spaceAbove = rootRect.top;
|
|
83
|
+
const needsOpenUpward = spaceBelow < menuHeight + 8 && spaceAbove > spaceBelow;
|
|
84
|
+
|
|
85
|
+
setOpenUpward(needsOpenUpward);
|
|
86
|
+
}, [open, native, options.length]);
|
|
87
|
+
|
|
88
|
+
if (!native) {
|
|
89
|
+
return (
|
|
90
|
+
<div ref={rootRef} className={cx("solid-select-wrap", "solid-select-wrap-custom", className)}>
|
|
91
|
+
<button
|
|
92
|
+
id={id}
|
|
93
|
+
type="button"
|
|
94
|
+
className="solid-select solid-select-trigger"
|
|
95
|
+
disabled={disabled}
|
|
96
|
+
aria-haspopup="listbox"
|
|
97
|
+
aria-expanded={open}
|
|
98
|
+
onClick={() => {
|
|
99
|
+
if (disabled) return;
|
|
100
|
+
setOpen((prev) => !prev);
|
|
101
|
+
}}
|
|
102
|
+
>
|
|
103
|
+
<span className={cx("solid-select-trigger-label", !selectedOption && "solid-select-placeholder")}>
|
|
104
|
+
{selectedOption?.label || placeholder || "Select"}
|
|
105
|
+
</span>
|
|
106
|
+
<span className="solid-select-icon" aria-hidden="true">
|
|
107
|
+
<ChevronDown size={14} />
|
|
108
|
+
</span>
|
|
109
|
+
</button>
|
|
110
|
+
{open ? (
|
|
111
|
+
<div
|
|
112
|
+
ref={menuRef}
|
|
113
|
+
className={cx("solid-select-menu", openUpward && "solid-select-menu-top")}
|
|
114
|
+
role="listbox"
|
|
115
|
+
>
|
|
116
|
+
{normalized.map((item) => (
|
|
117
|
+
<button
|
|
118
|
+
key={item.key}
|
|
119
|
+
type="button"
|
|
120
|
+
role="option"
|
|
121
|
+
className={cx("solid-select-menu-item", item.value === value && "is-selected")}
|
|
122
|
+
aria-selected={item.value === value}
|
|
123
|
+
onClick={() => {
|
|
124
|
+
onChange?.({ value: item.value });
|
|
125
|
+
setOpen(false);
|
|
126
|
+
}}
|
|
127
|
+
>
|
|
128
|
+
{item.label}
|
|
129
|
+
</button>
|
|
130
|
+
))}
|
|
131
|
+
</div>
|
|
132
|
+
) : null}
|
|
133
|
+
</div>
|
|
134
|
+
);
|
|
135
|
+
}
|
|
41
136
|
|
|
42
137
|
return (
|
|
43
138
|
<div className={cx("solid-select-wrap", className)}>
|
|
@@ -102,6 +102,19 @@ export declare const ERROR_MESSAGES: {
|
|
|
102
102
|
DELETE_ERROR: string;
|
|
103
103
|
FORBIDDEN_ERROR: string;
|
|
104
104
|
IMPORT_ERROR: string;
|
|
105
|
+
IMPORT_FILE_READ_FAILED: string;
|
|
106
|
+
IMPORT_NO_SAMPLE_VALUE: string;
|
|
107
|
+
IMPORT_UNSUPPORTED_SAMPLE_VALUE: string;
|
|
108
|
+
IMPORT_NO_MATCHED_COLUMNS: string;
|
|
109
|
+
IMPORT_UNMAPPED_COLUMNS: string;
|
|
110
|
+
IMPORT_DUPLICATE_FIELD_MAPPING: string;
|
|
111
|
+
IMPORT_REQUIRED_FIELD_MAPPING_TITLE: string;
|
|
112
|
+
IMPORT_REQUIRED_FIELD_MAPPING_MESSAGE: (count: number) => string;
|
|
113
|
+
IMPORT_TEMPLATE_MISMATCH_TITLE: string;
|
|
114
|
+
IMPORT_TEMPLATE_MISMATCH_MESSAGE: string;
|
|
115
|
+
IMPORT_MAPPING_INCOMPLETE_TITLE: string;
|
|
116
|
+
IMPORT_MAPPING_INCOMPLETE_MESSAGE: (count: number) => string;
|
|
117
|
+
IMPORT_UNABLE_TO_READ_FILE: string;
|
|
105
118
|
EXPORT_SUCCESSFULLY: string;
|
|
106
119
|
SEND_REPORT: string;
|
|
107
120
|
ERROR: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-messages.d.ts","sourceRoot":"","sources":["../../src/constants/error-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;4BAyBD,MAAM;;;;;;;;+BAaH,MAAM;;;;;;;;;;;;;;;2CAkBM,MAAM;;;;;;;;;;0CAaP,MAAM,aAAa,MAAM;;;;;;mCAOhC,MAAM;;;;;;;;;;;;;;;;;;;;;;oCA8BL,MAAM,OAAO,GAAG;;;;sCAKd,MAAM
|
|
1
|
+
{"version":3,"file":"error-messages.d.ts","sourceRoot":"","sources":["../../src/constants/error-messages.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;4BAyBD,MAAM;;;;;;;;+BAaH,MAAM;;;;;;;;;;;;;;;2CAkBM,MAAM;;;;;;;;;;0CAaP,MAAM,aAAa,MAAM;;;;;;mCAOhC,MAAM;;;;;;;;;;;;;;;;;;;;;;oCA8BL,MAAM,OAAO,GAAG;;;;sCAKd,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;mDAkCO,MAAM;;;;+CAKV,MAAM;;;;;;;;;;;8BAcvB,MAAM;;;;;;;;;;;;gDAaY,MAAM;;;;4BAY1B,MAAM;kCACA,MAAM;2BACb,MAAM;+BACF,MAAM;gCACL,MAAM;8BACR,MAAM;+BACL,MAAM,UAAU,MAAM;8BAEvB,MAAM,QAAQ,MAAM;;;;gCAOlB,MAAM;gCAEN,MAAM;qCAID,MAAM,cAAc,MAAM;qCAE1B,MAAM,cAAc,MAAM;2BAIpC,MAAM;;;0BAMP,MAAM;uCACO,MAAM;iCAIZ,MAAM;;;+CAIQ,MAAM;kCAInB,MAAM;gCAER,MAAM;wCAEE,MAAM;;;;;;uBAYvB,MAAM;CAK1B,CAAC"}
|
|
@@ -128,6 +128,23 @@ export var ERROR_MESSAGES = {
|
|
|
128
128
|
FORBIDDEN_ERROR: 'You do not have permission to perform this action.',
|
|
129
129
|
/* ----------------------------- IMPORT / EXPORT ----------------------------- */
|
|
130
130
|
IMPORT_ERROR: 'Import Error',
|
|
131
|
+
IMPORT_FILE_READ_FAILED: "We couldn't read the uploaded file. Please verify the headers and sample data, then try again.",
|
|
132
|
+
IMPORT_NO_SAMPLE_VALUE: 'No sample value',
|
|
133
|
+
IMPORT_UNSUPPORTED_SAMPLE_VALUE: 'Unsupported sample value',
|
|
134
|
+
IMPORT_NO_MATCHED_COLUMNS: "We couldn't match any columns from this file. Upload the correct template or map at least one column before importing.",
|
|
135
|
+
IMPORT_UNMAPPED_COLUMNS: 'Some file columns are still unmapped. Map them to a SolidX field or remove them before importing.',
|
|
136
|
+
IMPORT_DUPLICATE_FIELD_MAPPING: 'Each SolidX field can only be mapped once. Update duplicate mappings before importing.',
|
|
137
|
+
IMPORT_REQUIRED_FIELD_MAPPING_TITLE: 'Required fields are still unmapped',
|
|
138
|
+
IMPORT_REQUIRED_FIELD_MAPPING_MESSAGE: function (count) {
|
|
139
|
+
return "".concat(count, " required field").concat(count > 1 ? 's are' : ' is', " still unmapped. Map ").concat(count > 1 ? 'them' : 'it', " before importing.");
|
|
140
|
+
},
|
|
141
|
+
IMPORT_TEMPLATE_MISMATCH_TITLE: 'Template mismatch detected',
|
|
142
|
+
IMPORT_TEMPLATE_MISMATCH_MESSAGE: "We couldn't auto-match any columns from this file. This usually means the uploaded file headers don't match the expected import template.",
|
|
143
|
+
IMPORT_MAPPING_INCOMPLETE_TITLE: 'Mapping still incomplete',
|
|
144
|
+
IMPORT_MAPPING_INCOMPLETE_MESSAGE: function (count) {
|
|
145
|
+
return "".concat(count, " importable field").concat(count > 1 ? 's are' : ' is', " still unmapped. Map ").concat(count > 1 ? 'them' : 'it', " before importing.");
|
|
146
|
+
},
|
|
147
|
+
IMPORT_UNABLE_TO_READ_FILE: 'Unable to read import file',
|
|
131
148
|
EXPORT_SUCCESSFULLY: 'File Exported Successfully',
|
|
132
149
|
SEND_REPORT: 'Can you send me the report?',
|
|
133
150
|
/* ----------------------------------- MISC ---------------------------------- */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"error-messages.js","sourceRoot":"","sources":["../../src/constants/error-messages.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,cAAc,GAAG;IAE5B,gFAAgF;IAChF,mBAAmB,EAAE,qBAAqB;IAC1C,qBAAqB,EAAE,uBAAuB;IAC9C,mBAAmB,EAAE,qBAAqB;IAC1C,eAAe,EAAE,qCAAqC;IACtD,oBAAoB,EAAE,kCAAkC;IACxD,WAAW,EAAE,aAAa;IAC1B,aAAa,EAAE,eAAe;IAC9B,WAAW,EAAE,aAAa;IAC1B,eAAe,EAAE,wBAAwB;IACzC,aAAa,EAAE,iBAAiB;IAChC,kBAAkB,EAAE,oBAAoB;IAExC,gFAAgF;IAChF,yBAAyB,EAAE,2BAA2B;IACtD,qBAAqB,EAAE,iCAAiC;IACxD,iBAAiB,EAAE,4BAA4B;IAC/C,UAAU,EAAE,sBAAsB;IAClC,qBAAqB,EAAE,+BAA+B;IACtD,eAAe,EAAE,8BAA8B;IAE/C,gFAAgF;IAChF,WAAW,EAAE,aAAa;IAC1B,UAAU,EAAE,UAAC,SAAiB;QAC5B,OAAA,uCAAgC,SAAS,eAAY;IAArD,CAAqD;IAEvD,iFAAiF;IACjF,qBAAqB,EAAE,2BAA2B;IAElD,iFAAiF;IACjF,oBAAoB,EAAE,sBAAsB;IAC5C,kBAAkB,EAAE,oBAAoB;IACxC,oBAAoB,EAAE,sBAAsB;IAC5C,eAAe,EAAE,iBAAiB;IAClC,UAAU,EAAE,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AAA,UAAG,KAAK,aAAU,EAAlB,CAAkB;IACnD,yBAAyB,EAAE,UAAC,KAAa;QACvC,OAAA,UAAG,KAAK,0BAAuB;IAA/B,CAA+B;IAEjC,qEAAqE;IACrE,mBAAmB,EAAE,UAAC,KAAa;QACjC,OAAA,UAAG,KAAK,0CAAuC;IAA/C,CAA+C;IACjD,WAAW,EAAE,gBAAgB;IAC7B,iBAAiB,EAAE,yBAAyB;IAC5C,iCAAiC,EAAE,UAAC,KAAa;QAC/C,OAAA,UAAG,KAAK,2DAAwD;IAAhE,CAAgE;IAElE,iEAAiE;IACjE,oBAAoB,EAAE,UAAC,KAAa;QAClC,OAAA,UAAG,KAAK,kCAA+B;IAAvC,CAAuC;IACzC,kBAAkB,EAAE,UAAC,KAAa;QAChC,OAAA,uCAAgC,KAAK,MAAG;IAAxC,CAAwC;IAC1C,0BAA0B,EAAE,UAAC,KAAa;QACxC,OAAA,gCAAyB,KAAK,wBAAqB;IAAnD,CAAmD;IACrD,oBAAoB,EAAE,+BAA+B;IAErD,4DAA4D;IAC5D,aAAa,EAAE,eAAe;IAC9B,4BAA4B,EAC1B,gEAAgE;IAElE,wDAAwD;IACxD,gBAAgB,EAAE,kBAAkB;IACpC,gBAAgB,EAAE,iEAAiE;IACnF,UAAU,EAAE,UAAC,IAAY;QACvB,OAAA,UAAG,IAAI,oFAAiF;IAAxF,CAAwF;CAI3F,CAAC","sourcesContent":["export const ERROR_MESSAGES = {\n\n /* ----------------------------- AUTHENTICATION ----------------------------- */\n NO_AUTH_TOKEN_FOUND: 'No auth token found',\n AUTHENICATION__FAILED: 'Authentication failed',\n INVALID_CREDENTIALS: 'Invalid Credentials',\n SESSION_EXPIRED: 'Session Expired. Please Login Again',\n FAILED_REFRESH_TOKEN: 'Failed to refresh access token: ',\n LOGIN_ERROR: 'Login Error',\n LOGIN_SUCCESS: 'Login Success',\n PLEASE_WAIT: \"Please wait\",\n SOMETHING_WRONG: 'Something Went Wrong !',\n LOGOUT_FAILED: 'Logout Failed !',\n LOGIN_SUCCESSFULLY: 'Login Successfully',\n\n /* -------------------------------- PASSWORD -------------------------------- */\n FAILED_TO_UPDATE_PASSWORD: 'Failed to update password',\n INVALID_PASSWORD_REGX: 'Invalid password regex in .env:',\n INCORRECT_CURRENT: \"Incorrect Current Password\",\n MUST_MATCH: \"Passwords must match\",\n FORCE_PASSWORD_CHANGE: \"Force Password Change Success\",\n PASSWORD_CHANGE: 'Password Change Successfully',\n\n /* ---------------------------------- OTP ----------------------------------- */\n INAVLID_OTP: \"Invalid OTP\",\n OPT_FORMAT: (formatted: string) =>\n `You can request a new OTP in ${formatted} second(s)`,\n\n /* ---------------------------- AUTH / DASHBOARD ----------------------------- */\n DASHBOARD_REDIRECTING: \"Redirecting to dashboard.\",\n\n /* ------------------------------- FILE ERRORS ------------------------------- */\n FILE_DOWNLOAD_FAILED: 'File download failed',\n FAILED_TO_DOWNLOAD: 'Failed to download',\n FAILED_TO_FETCH_FILE: 'Failed to fetch file',\n DOWNLOAD_FAILED: 'Download failed',\n FILE_LARGE: 'File too large',\n MAX_FILE_SIZE: 'Maximum file size is 2MB',\n FILE_TOO_LAREG: (fileSize: string) =>\n `File is too large. Max size is ${fileSize} KB.`,\n FILE_NOT_ACCEPT: 'File not accepted',\n FAILED_UPLOAD_FILE: 'Fail to upload file',\n MISSING_FILE: 'Missing File',\n ERROR_DELETING_FILE: 'Error deleting file:',\n FAILED_DELETED_IMAGE: 'Failed to delete image',\n PROFILE_PICTURE_REMOVE: \"Profile picture removed\",\n FILE_UPLOAD: 'File Uploaded',\n FILE_UPLOAD_SUCCESSFULLY: 'File Uploaded Successfully',\n\n /* ------------------------------- USER / ENTITY ------------------------------ */\n NO_ENTITY_SELECTED: 'No entity selected',\n FAILED_UPDATED_PROFILE: 'Failed to update profile',\n ENTITY_FAILED: 'Failed to create Entity:',\n ENTITY_DELETE: 'Entity deleted successfully',\n RECORD_DELETE: 'Records deleted successfully',\n MODEL_DELETE: 'Model Deleted',\n MODEL_DELETE_SUCCESSFULLY: (modelName: string) =>\n `Model ${modelName} has been deleted successfully`,\n DELETE_FAIELD: \"Delete Failed\",\n EMAIL_ALREADY_TAKEN: 'Email is already taken,',\n UPDATED: 'Updated',\n SETTING_UPDATED: 'Settings updated',\n USER_REGISTER: 'User Registered',\n NO_CHANGE: 'No Change',\n NO_SETTING_UPDATE: 'No settings were updated',\n UPDATING_USER: 'Error updating user view:',\n\n /* ---------------------------- RELATION & FILTER ---------------------------- */\n INVALID_FILTER_STRUCTURE: 'Invalid filter structure',\n INVALID_RELATION_TYPE: (relationType: string, fieldName: string) =>\n `Invalid relationType ${relationType} on field ${fieldName}`,\n INVALID_JSON_WHERECLAUSE: 'Invalid whereClause JSON:',\n FIXED_FILTER_NOT_APPLIED: 'Fixed filter not applied due to parsing issues or invalid data',\n SELECT_RELEVANT_FIELD: 'Please select relevant fields used in fixed filter',\n SKIPPING_EMPTY_FIXED_FILTER: 'Skipping invalid/empty fixed filter : ',\n FIELD_NOT_SELECT: 'Fields Not selected!',\n FIELD_NOT_IN_METADATA: (label: string) =>\n `${label} is not present in metadata`,\n SAVE_FILTER_UNDEFINED_NULL: 'Saved filter ID is undefined or null',\n\n /* -------------------------------- FORM / UI -------------------------------- */\n FAILED_UPDATE_FROM: \"Failed to update the form\",\n UPDATING_STEPPER: 'Error updating stepper : ',\n DYNAMIC_FUNCTION_ERROR: 'Error in DynamicFunctionComponent : ',\n ON_FORM_LOAD: 'Error in onFormLoad handler:',\n UNABLE_LOAD_DYNAMIC_MODULE: 'Unable to load dynamic module: ',\n LOADING_COMPONENT: 'Error loading component',\n FORM_LAYOUT_UPDATE: 'Form Layout Updated successfully!',\n LAYOUT: 'Layout',\n MARK_PUBLISH: 'Marked as publish !',\n MARK_UNPUBLISH: 'Marked as unpublish !',\n SAVED: 'Saved',\n FORM_UPDATE: 'Form Updated',\n FORM_UPDATE_SUCCESSFULLY: 'Form updated successfully!',\n FORM_SAVED: 'Form Saved',\n FORM_SAVED_SUCCESSFULLY: 'Form saved successfully!',\n PROFILE_SAVED: 'Profile Saved',\n PROFILE_SAVED_SUCCESSFULLY: 'Profile saved successfully!',\n NO_UPDATE_MADE: 'No updates were made',\n DASHBOARD_LAYOUT_UPDATE_SUCCESSFULLY: 'Dashboard Layout Updated successfully!',\n DASHBOARD_LAYOUT_UPDATE_FAILED: 'Failed to update dashboard layout!',\n\n\n\n\n /* ------------------------------ INTERACTIONS ------------------------------ */\n INTERATCTION_MESSGAE: (message: string, err: any) =>\n `Error handling interaction.message: ${message || String(err)}`,\n APPLY_FAILED: 'Apply Failed',\n APPLY_SUCCESS: 'Apply Successful',\n PREVIEW_INTERACTION: 'Preview clicked for interaction:',\n FAILED_APPLY_INTERACTION: (error: string) =>\n `Failed to apply interaction - ${error}`,\n\n /* --------------------------- PROCESS / BACKEND ---------------------------- */\n BACKEND_UNAVAILABLE: 'Backend Unavailable',\n SEEDER_NOT_TRIGGERED: 'Seeder not triggered. Could not reach backend',\n IS_SEEDER_ERROR: 'isSeederError',\n IS_SEEDER_SUCCESS: 'isSeederSuccess',\n SEEDER_ERROR: 'Seeder Error',\n SEEDER_NOT_RUN: 'Could not run seeder. Please try again',\n BACKEND_NOT_ALIVE: 'Backend is not alive, cannot run seeder',\n FAILED_TRIGGER_MCP_CLIENT_JOB: 'Failed to trigger MCP client job',\n\n /* --------------------------------- NETWORK --------------------------------- */\n API_ERROR: 'API error: ',\n ERROR_OCCURED: \"An error occurred\",\n FETCHING_MESSAGE: 'Error fetching messages:',\n FETCHING_USER: 'Error fetching users:',\n FETCHING_ITEMS: 'Error fetching items',\n LOAD_MORE_DATA: 'Failed to load more data:',\n NETWORK_ERROR: 'Network error occurred. Please try again',\n NETWORK_OR_SERVER_ERROR: 'Network or server error occurred',\n DELETE_ERROR: 'Delete error',\n FORBIDDEN_ERROR: 'You do not have permission to perform this action.',\n\n /* ----------------------------- IMPORT / EXPORT ----------------------------- */\n IMPORT_ERROR: 'Import Error',\n EXPORT_SUCCESSFULLY: 'File Exported Successfully',\n SEND_REPORT: 'Can you send me the report?',\n\n /* ----------------------------------- MISC ---------------------------------- */\n ERROR: 'Error',\n FAILED: 'Failed',\n IS_SUCCESS: 'Success',\n DELETED: 'Deleted',\n UPDATE_FAILED: 'Update failed',\n FAILED_CREATE_MENU: 'Failed to create menu',\n ORM_TYPE_REQUIRED: 'Orm Type is required!',\n ACTION_FUNCTION: (action: string) =>\n `Action function \"${action}\" not found.`,\n DUPLICATE_KEY: \"Duplicate Key\",\n ERROR_DECODING: 'Error decoding or parsing query string from local storage:',\n CREATE_MODEL: 'Failed to create Model',\n TEMPLATE_FAILED: 'Failed to create template',\n SELECT_FROMAT: 'Please Select Format',\n PARSED_FIELD: 'Failed to parse fields:',\n CODE_GENERTAE_SUCCESSFULLY: 'Code Generated Successfully',\n RESPONSE_GENERATE_CODE_HANDLER: \"response generate code handler\",\n KANBAN_UPDATED: \"Kanban View Updated!\",\n TRY_AGAIN: 'Please try again later',\n REMOVE_ROOT_NODE: \"Cannot remove the root node\",\n ATTEMPT_FETCH_MESSAGE_STATUS: (queryString: string) =>\n `Attempting to fetch mq message status with query string: ${queryString}`,\n FAILED_FETCH_MESSAGE: \"Failed to fetch MQ message status:\",\n FAILED_CREATE_INVOICE: \"Failed to create Invoice:\",\n\n /* ----------------------------------- CRUD ---------------------------------- */\n ADD_ATLEAST_ONE_FIELD: \"Please add at least one field\",\n\n\n /* ----------------------------------- Validation ---------------------------------- */\n\n // -------------------- REQUIRED / BASIC FIELD ERRORS --------------------\n FIELD_REUQIRED: (field: string) => `${field} is required`,\n FIELD_INAVLID_FORMAT: (field: string) => `Invalid ${field} format`,\n FIELD_INVALID: (field: string) => `Invalid ${field}`,\n ENTER_VALID_FIELD: (field: string) => `Please enter a valid ${field}.`,\n FIELD_INVALID_DATA: (field: string) => `${field} has invalid data.`,\n FIELD_MUST_MATCH: (field: string) => `${field}s must match.`,\n FIELD_ALREADY_USE: (field: string, field1: string) =>\n `${field} Already in use. Please choose a different ${field1}.`,\n FIELD_MUST_BE_AN: (field: string, type: string) =>\n `${field} must be an ${type}\"`,\n REQUIRED_REALTION: 'required-relation',\n VALIDATE_SELECTION: 'valid-selection',\n\n // -------------------- PASSWORD VALIDATION --------------------\n PASSWORD_DO_NOT_MEET: 'Password does not meet complexity requirements',\n PASSWORD_CHARACTER: (count: Number) =>\n `Password must be at least ${count} characters`,\n PASSWORD_CONTAIN: (contain: string, type = 'letter') =>\n `Password must contain at least one ${contain} ${type}`,\n\n // -------------------- LENGTH VALIDATION --------------------\n FIELD_MINIMUM_CHARACTER: (field: string, characters: Number) =>\n `${field} should be at-least ${characters} characters long.`,\n FIELD_MAXIMUM_CHARACTER: (field: string, characters: Number) =>\n `${field} should not be more than ${characters} characters long.`,\n\n // -------------------- OTP --------------------\n OTP_CHARACTER: (count: Number) =>\n `OTP must be a ${count}-digit number`,\n OPT_RESEND: 'OTP Resent Successfully',\n OPT_SEND: 'OTP Sent Successfully',\n\n // -------------------- UPDATE MESSAGES --------------------\n FIELD_UPDATE: (field: string) => `${field} Updated`,\n FIELD_UPDATE_SUCCESSFULLY: (field: string) =>\n `${field} Updated Successfully`,\n\n // -------------------- FILE / OBJECT VALIDATION --------------------\n MUST_BE_FILE_OBJECT: (field: string) =>\n `${field} must be a file, an object, or empty`,\n FILE_OBJECT: 'file-or-object',\n EMPTY_VALID_ARRAY: 'is-empty-or-valid-array',\n CONTAIN_EMPTY_ARRAY_OR_FILE_OBECT: (field: string) =>\n `${field} must be an empty array or contain only files/objects.`,\n\n // -------------------- SELECTION VALIDATION --------------------\n FIELD_MUST_HAVE_ITEM: (field: string) =>\n `${field} must have at least one item.`,\n SELECT_ATLEAST_ONE: (field: string) =>\n `You must select at least one ${field}.`,\n SELECT_VALID_FROM_DROPDOWN: (field: string) =>\n `Please select a valid ${field} from the dropdown.`,\n SELECT_ONE_OPERATION: 'Select at least one operation',\n\n // -------------------- JSON VALIDATION --------------------\n IS_VALID_JSON: 'is-valid-json',\n COMPUTED_FIELD_VALIDATE_JSON:\n 'Computed Field Value Provider Context Value must be valid JSON',\n\n // -------------------- OTHER RULES --------------------\n GREATER_THAN_MIN: 'greater-than-min',\n RELATION_CASCADE: 'Relation Cascade Value is required for one-to-one relationships',\n SNAKE_CASE: (name: string) =>\n `${name} name must be in snake_case (lowercase letters, numbers, and underscores only).`,\n\n\n\n};\n"]}
|
|
1
|
+
{"version":3,"file":"error-messages.js","sourceRoot":"","sources":["../../src/constants/error-messages.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,cAAc,GAAG;IAE5B,gFAAgF;IAChF,mBAAmB,EAAE,qBAAqB;IAC1C,qBAAqB,EAAE,uBAAuB;IAC9C,mBAAmB,EAAE,qBAAqB;IAC1C,eAAe,EAAE,qCAAqC;IACtD,oBAAoB,EAAE,kCAAkC;IACxD,WAAW,EAAE,aAAa;IAC1B,aAAa,EAAE,eAAe;IAC9B,WAAW,EAAE,aAAa;IAC1B,eAAe,EAAE,wBAAwB;IACzC,aAAa,EAAE,iBAAiB;IAChC,kBAAkB,EAAE,oBAAoB;IAExC,gFAAgF;IAChF,yBAAyB,EAAE,2BAA2B;IACtD,qBAAqB,EAAE,iCAAiC;IACxD,iBAAiB,EAAE,4BAA4B;IAC/C,UAAU,EAAE,sBAAsB;IAClC,qBAAqB,EAAE,+BAA+B;IACtD,eAAe,EAAE,8BAA8B;IAE/C,gFAAgF;IAChF,WAAW,EAAE,aAAa;IAC1B,UAAU,EAAE,UAAC,SAAiB;QAC5B,OAAA,uCAAgC,SAAS,eAAY;IAArD,CAAqD;IAEvD,iFAAiF;IACjF,qBAAqB,EAAE,2BAA2B;IAElD,iFAAiF;IACjF,oBAAoB,EAAE,sBAAsB;IAC5C,kBAAkB,EAAE,oBAAoB;IACxC,oBAAoB,EAAE,sBAAsB;IAC5C,eAAe,EAAE,iBAAiB;IAClC,UAAU,EAAE,gBAAgB;IAC5B,aAAa,EAAE,0BAA0B;IACzC,cAAc,EAAE,UAAC,QAAgB;QAC/B,OAAA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C1C,0BAA0B,EAAE,UAAC,KAAa;QACxC,OAAA,gCAAyB,KAAK,wBAAqB;IAAnD,CAAmD;IACrD,oBAAoB,EAAE,+BAA+B;IAErD,4DAA4D;IAC5D,aAAa,EAAE,eAAe;IAC9B,4BAA4B,EAC1B,gEAAgE;IAElE,wDAAwD;IACxD,gBAAgB,EAAE,kBAAkB;IACpC,gBAAgB,EAAE,iEAAiE;IACnF,UAAU,EAAE,UAAC,IAAY;QACvB,OAAA,UAAG,IAAI,oFAAiF;IAAxF,CAAwF;CAI3F,CAAC","sourcesContent":["export const ERROR_MESSAGES = {\n\n /* ----------------------------- AUTHENTICATION ----------------------------- */\n NO_AUTH_TOKEN_FOUND: 'No auth token found',\n AUTHENICATION__FAILED: 'Authentication failed',\n INVALID_CREDENTIALS: 'Invalid Credentials',\n SESSION_EXPIRED: 'Session Expired. Please Login Again',\n FAILED_REFRESH_TOKEN: 'Failed to refresh access token: ',\n LOGIN_ERROR: 'Login Error',\n LOGIN_SUCCESS: 'Login Success',\n PLEASE_WAIT: \"Please wait\",\n SOMETHING_WRONG: 'Something Went Wrong !',\n LOGOUT_FAILED: 'Logout Failed !',\n LOGIN_SUCCESSFULLY: 'Login Successfully',\n\n /* -------------------------------- PASSWORD -------------------------------- */\n FAILED_TO_UPDATE_PASSWORD: 'Failed to update password',\n INVALID_PASSWORD_REGX: 'Invalid password regex in .env:',\n INCORRECT_CURRENT: \"Incorrect Current Password\",\n MUST_MATCH: \"Passwords must match\",\n FORCE_PASSWORD_CHANGE: \"Force Password Change Success\",\n PASSWORD_CHANGE: 'Password Change Successfully',\n\n /* ---------------------------------- OTP ----------------------------------- */\n INAVLID_OTP: \"Invalid OTP\",\n OPT_FORMAT: (formatted: string) =>\n `You can request a new OTP in ${formatted} second(s)`,\n\n /* ---------------------------- AUTH / DASHBOARD ----------------------------- */\n DASHBOARD_REDIRECTING: \"Redirecting to dashboard.\",\n\n /* ------------------------------- FILE ERRORS ------------------------------- */\n FILE_DOWNLOAD_FAILED: 'File download failed',\n FAILED_TO_DOWNLOAD: 'Failed to download',\n FAILED_TO_FETCH_FILE: 'Failed to fetch file',\n DOWNLOAD_FAILED: 'Download failed',\n FILE_LARGE: 'File too large',\n MAX_FILE_SIZE: 'Maximum file size is 2MB',\n FILE_TOO_LAREG: (fileSize: string) =>\n `File is too large. Max size is ${fileSize} KB.`,\n FILE_NOT_ACCEPT: 'File not accepted',\n FAILED_UPLOAD_FILE: 'Fail to upload file',\n MISSING_FILE: 'Missing File',\n ERROR_DELETING_FILE: 'Error deleting file:',\n FAILED_DELETED_IMAGE: 'Failed to delete image',\n PROFILE_PICTURE_REMOVE: \"Profile picture removed\",\n FILE_UPLOAD: 'File Uploaded',\n FILE_UPLOAD_SUCCESSFULLY: 'File Uploaded Successfully',\n\n /* ------------------------------- USER / ENTITY ------------------------------ */\n NO_ENTITY_SELECTED: 'No entity selected',\n FAILED_UPDATED_PROFILE: 'Failed to update profile',\n ENTITY_FAILED: 'Failed to create Entity:',\n ENTITY_DELETE: 'Entity deleted successfully',\n RECORD_DELETE: 'Records deleted successfully',\n MODEL_DELETE: 'Model Deleted',\n MODEL_DELETE_SUCCESSFULLY: (modelName: string) =>\n `Model ${modelName} has been deleted successfully`,\n DELETE_FAIELD: \"Delete Failed\",\n EMAIL_ALREADY_TAKEN: 'Email is already taken,',\n UPDATED: 'Updated',\n SETTING_UPDATED: 'Settings updated',\n USER_REGISTER: 'User Registered',\n NO_CHANGE: 'No Change',\n NO_SETTING_UPDATE: 'No settings were updated',\n UPDATING_USER: 'Error updating user view:',\n\n /* ---------------------------- RELATION & FILTER ---------------------------- */\n INVALID_FILTER_STRUCTURE: 'Invalid filter structure',\n INVALID_RELATION_TYPE: (relationType: string, fieldName: string) =>\n `Invalid relationType ${relationType} on field ${fieldName}`,\n INVALID_JSON_WHERECLAUSE: 'Invalid whereClause JSON:',\n FIXED_FILTER_NOT_APPLIED: 'Fixed filter not applied due to parsing issues or invalid data',\n SELECT_RELEVANT_FIELD: 'Please select relevant fields used in fixed filter',\n SKIPPING_EMPTY_FIXED_FILTER: 'Skipping invalid/empty fixed filter : ',\n FIELD_NOT_SELECT: 'Fields Not selected!',\n FIELD_NOT_IN_METADATA: (label: string) =>\n `${label} is not present in metadata`,\n SAVE_FILTER_UNDEFINED_NULL: 'Saved filter ID is undefined or null',\n\n /* -------------------------------- FORM / UI -------------------------------- */\n FAILED_UPDATE_FROM: \"Failed to update the form\",\n UPDATING_STEPPER: 'Error updating stepper : ',\n DYNAMIC_FUNCTION_ERROR: 'Error in DynamicFunctionComponent : ',\n ON_FORM_LOAD: 'Error in onFormLoad handler:',\n UNABLE_LOAD_DYNAMIC_MODULE: 'Unable to load dynamic module: ',\n LOADING_COMPONENT: 'Error loading component',\n FORM_LAYOUT_UPDATE: 'Form Layout Updated successfully!',\n LAYOUT: 'Layout',\n MARK_PUBLISH: 'Marked as publish !',\n MARK_UNPUBLISH: 'Marked as unpublish !',\n SAVED: 'Saved',\n FORM_UPDATE: 'Form Updated',\n FORM_UPDATE_SUCCESSFULLY: 'Form updated successfully!',\n FORM_SAVED: 'Form Saved',\n FORM_SAVED_SUCCESSFULLY: 'Form saved successfully!',\n PROFILE_SAVED: 'Profile Saved',\n PROFILE_SAVED_SUCCESSFULLY: 'Profile saved successfully!',\n NO_UPDATE_MADE: 'No updates were made',\n DASHBOARD_LAYOUT_UPDATE_SUCCESSFULLY: 'Dashboard Layout Updated successfully!',\n DASHBOARD_LAYOUT_UPDATE_FAILED: 'Failed to update dashboard layout!',\n\n\n\n\n /* ------------------------------ INTERACTIONS ------------------------------ */\n INTERATCTION_MESSGAE: (message: string, err: any) =>\n `Error handling interaction.message: ${message || String(err)}`,\n APPLY_FAILED: 'Apply Failed',\n APPLY_SUCCESS: 'Apply Successful',\n PREVIEW_INTERACTION: 'Preview clicked for interaction:',\n FAILED_APPLY_INTERACTION: (error: string) =>\n `Failed to apply interaction - ${error}`,\n\n /* --------------------------- PROCESS / BACKEND ---------------------------- */\n BACKEND_UNAVAILABLE: 'Backend Unavailable',\n SEEDER_NOT_TRIGGERED: 'Seeder not triggered. Could not reach backend',\n IS_SEEDER_ERROR: 'isSeederError',\n IS_SEEDER_SUCCESS: 'isSeederSuccess',\n SEEDER_ERROR: 'Seeder Error',\n SEEDER_NOT_RUN: 'Could not run seeder. Please try again',\n BACKEND_NOT_ALIVE: 'Backend is not alive, cannot run seeder',\n FAILED_TRIGGER_MCP_CLIENT_JOB: 'Failed to trigger MCP client job',\n\n /* --------------------------------- NETWORK --------------------------------- */\n API_ERROR: 'API error: ',\n ERROR_OCCURED: \"An error occurred\",\n FETCHING_MESSAGE: 'Error fetching messages:',\n FETCHING_USER: 'Error fetching users:',\n FETCHING_ITEMS: 'Error fetching items',\n LOAD_MORE_DATA: 'Failed to load more data:',\n NETWORK_ERROR: 'Network error occurred. Please try again',\n NETWORK_OR_SERVER_ERROR: 'Network or server error occurred',\n DELETE_ERROR: 'Delete error',\n FORBIDDEN_ERROR: 'You do not have permission to perform this action.',\n\n /* ----------------------------- IMPORT / EXPORT ----------------------------- */\n IMPORT_ERROR: 'Import Error',\n IMPORT_FILE_READ_FAILED: \"We couldn't read the uploaded file. Please verify the headers and sample data, then try again.\",\n IMPORT_NO_SAMPLE_VALUE: 'No sample value',\n IMPORT_UNSUPPORTED_SAMPLE_VALUE: 'Unsupported sample value',\n IMPORT_NO_MATCHED_COLUMNS: \"We couldn't match any columns from this file. Upload the correct template or map at least one column before importing.\",\n IMPORT_UNMAPPED_COLUMNS: 'Some file columns are still unmapped. Map them to a SolidX field or remove them before importing.',\n IMPORT_DUPLICATE_FIELD_MAPPING: 'Each SolidX field can only be mapped once. Update duplicate mappings before importing.',\n IMPORT_REQUIRED_FIELD_MAPPING_TITLE: 'Required fields are still unmapped',\n IMPORT_REQUIRED_FIELD_MAPPING_MESSAGE: (count: number) =>\n `${count} required field${count > 1 ? 's are' : ' is'} still unmapped. Map ${count > 1 ? 'them' : 'it'} before importing.`,\n IMPORT_TEMPLATE_MISMATCH_TITLE: 'Template mismatch detected',\n IMPORT_TEMPLATE_MISMATCH_MESSAGE: \"We couldn't auto-match any columns from this file. This usually means the uploaded file headers don't match the expected import template.\",\n IMPORT_MAPPING_INCOMPLETE_TITLE: 'Mapping still incomplete',\n IMPORT_MAPPING_INCOMPLETE_MESSAGE: (count: number) =>\n `${count} importable field${count > 1 ? 's are' : ' is'} still unmapped. Map ${count > 1 ? 'them' : 'it'} before importing.`,\n IMPORT_UNABLE_TO_READ_FILE: 'Unable to read import file',\n EXPORT_SUCCESSFULLY: 'File Exported Successfully',\n SEND_REPORT: 'Can you send me the report?',\n\n /* ----------------------------------- MISC ---------------------------------- */\n ERROR: 'Error',\n FAILED: 'Failed',\n IS_SUCCESS: 'Success',\n DELETED: 'Deleted',\n UPDATE_FAILED: 'Update failed',\n FAILED_CREATE_MENU: 'Failed to create menu',\n ORM_TYPE_REQUIRED: 'Orm Type is required!',\n ACTION_FUNCTION: (action: string) =>\n `Action function \"${action}\" not found.`,\n DUPLICATE_KEY: \"Duplicate Key\",\n ERROR_DECODING: 'Error decoding or parsing query string from local storage:',\n CREATE_MODEL: 'Failed to create Model',\n TEMPLATE_FAILED: 'Failed to create template',\n SELECT_FROMAT: 'Please Select Format',\n PARSED_FIELD: 'Failed to parse fields:',\n CODE_GENERTAE_SUCCESSFULLY: 'Code Generated Successfully',\n RESPONSE_GENERATE_CODE_HANDLER: \"response generate code handler\",\n KANBAN_UPDATED: \"Kanban View Updated!\",\n TRY_AGAIN: 'Please try again later',\n REMOVE_ROOT_NODE: \"Cannot remove the root node\",\n ATTEMPT_FETCH_MESSAGE_STATUS: (queryString: string) =>\n `Attempting to fetch mq message status with query string: ${queryString}`,\n FAILED_FETCH_MESSAGE: \"Failed to fetch MQ message status:\",\n FAILED_CREATE_INVOICE: \"Failed to create Invoice:\",\n\n /* ----------------------------------- CRUD ---------------------------------- */\n ADD_ATLEAST_ONE_FIELD: \"Please add at least one field\",\n\n\n /* ----------------------------------- Validation ---------------------------------- */\n\n // -------------------- REQUIRED / BASIC FIELD ERRORS --------------------\n FIELD_REUQIRED: (field: string) => `${field} is required`,\n FIELD_INAVLID_FORMAT: (field: string) => `Invalid ${field} format`,\n FIELD_INVALID: (field: string) => `Invalid ${field}`,\n ENTER_VALID_FIELD: (field: string) => `Please enter a valid ${field}.`,\n FIELD_INVALID_DATA: (field: string) => `${field} has invalid data.`,\n FIELD_MUST_MATCH: (field: string) => `${field}s must match.`,\n FIELD_ALREADY_USE: (field: string, field1: string) =>\n `${field} Already in use. Please choose a different ${field1}.`,\n FIELD_MUST_BE_AN: (field: string, type: string) =>\n `${field} must be an ${type}\"`,\n REQUIRED_REALTION: 'required-relation',\n VALIDATE_SELECTION: 'valid-selection',\n\n // -------------------- PASSWORD VALIDATION --------------------\n PASSWORD_DO_NOT_MEET: 'Password does not meet complexity requirements',\n PASSWORD_CHARACTER: (count: Number) =>\n `Password must be at least ${count} characters`,\n PASSWORD_CONTAIN: (contain: string, type = 'letter') =>\n `Password must contain at least one ${contain} ${type}`,\n\n // -------------------- LENGTH VALIDATION --------------------\n FIELD_MINIMUM_CHARACTER: (field: string, characters: Number) =>\n `${field} should be at-least ${characters} characters long.`,\n FIELD_MAXIMUM_CHARACTER: (field: string, characters: Number) =>\n `${field} should not be more than ${characters} characters long.`,\n\n // -------------------- OTP --------------------\n OTP_CHARACTER: (count: Number) =>\n `OTP must be a ${count}-digit number`,\n OPT_RESEND: 'OTP Resent Successfully',\n OPT_SEND: 'OTP Sent Successfully',\n\n // -------------------- UPDATE MESSAGES --------------------\n FIELD_UPDATE: (field: string) => `${field} Updated`,\n FIELD_UPDATE_SUCCESSFULLY: (field: string) =>\n `${field} Updated Successfully`,\n\n // -------------------- FILE / OBJECT VALIDATION --------------------\n MUST_BE_FILE_OBJECT: (field: string) =>\n `${field} must be a file, an object, or empty`,\n FILE_OBJECT: 'file-or-object',\n EMPTY_VALID_ARRAY: 'is-empty-or-valid-array',\n CONTAIN_EMPTY_ARRAY_OR_FILE_OBECT: (field: string) =>\n `${field} must be an empty array or contain only files/objects.`,\n\n // -------------------- SELECTION VALIDATION --------------------\n FIELD_MUST_HAVE_ITEM: (field: string) =>\n `${field} must have at least one item.`,\n SELECT_ATLEAST_ONE: (field: string) =>\n `You must select at least one ${field}.`,\n SELECT_VALID_FROM_DROPDOWN: (field: string) =>\n `Please select a valid ${field} from the dropdown.`,\n SELECT_ONE_OPERATION: 'Select at least one operation',\n\n // -------------------- JSON VALIDATION --------------------\n IS_VALID_JSON: 'is-valid-json',\n COMPUTED_FIELD_VALIDATE_JSON:\n 'Computed Field Value Provider Context Value must be valid JSON',\n\n // -------------------- OTHER RULES --------------------\n GREATER_THAN_MIN: 'greater-than-min',\n RELATION_CASCADE: 'Relation Cascade Value is required for one-to-one relationships',\n SNAKE_CASE: (name: string) =>\n `${name} name must be in snake_case (lowercase letters, numbers, and underscores only).`,\n\n\n\n};\n"]}
|