@solidstarters/solid-core-ui 1.1.204 → 1.1.206
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/auth/GoogleAuthChecking.d.ts.map +1 -1
- package/dist/components/auth/GoogleAuthChecking.js +5 -4
- package/dist/components/auth/GoogleAuthChecking.js.map +1 -1
- package/dist/components/auth/SolidChangeForcePassword.d.ts.map +1 -1
- package/dist/components/auth/SolidChangeForcePassword.js +17 -16
- package/dist/components/auth/SolidChangeForcePassword.js.map +1 -1
- package/dist/components/auth/SolidForgotPassword.d.ts.map +1 -1
- package/dist/components/auth/SolidForgotPassword.js +5 -4
- package/dist/components/auth/SolidForgotPassword.js.map +1 -1
- package/dist/components/auth/SolidInitialLoginOtp.d.ts.map +1 -1
- package/dist/components/auth/SolidInitialLoginOtp.js +11 -10
- package/dist/components/auth/SolidInitialLoginOtp.js.map +1 -1
- package/dist/components/auth/SolidInitiateRegisterOtp.d.ts.map +1 -1
- package/dist/components/auth/SolidInitiateRegisterOtp.js +10 -9
- package/dist/components/auth/SolidInitiateRegisterOtp.js.map +1 -1
- package/dist/components/auth/SolidLogin.d.ts.map +1 -1
- package/dist/components/auth/SolidLogin.js +21 -19
- package/dist/components/auth/SolidLogin.js.map +1 -1
- package/dist/components/auth/SolidOTPVerify.js +5 -4
- package/dist/components/auth/SolidOTPVerify.js.map +1 -1
- package/dist/components/auth/SolidRegister.d.ts.map +1 -1
- package/dist/components/auth/SolidRegister.js +32 -31
- package/dist/components/auth/SolidRegister.js.map +1 -1
- package/dist/components/auth/SolidResetPassword.js +8 -7
- package/dist/components/auth/SolidResetPassword.js.map +1 -1
- package/dist/components/common/GeneralSettings.d.ts.map +1 -1
- package/dist/components/common/GeneralSettings.js +46 -34
- package/dist/components/common/GeneralSettings.js.map +1 -1
- package/dist/components/common/SolidExport.js +6 -5
- package/dist/components/common/SolidExport.js.map +1 -1
- package/dist/components/common/SolidFormStepper.js +4 -3
- package/dist/components/common/SolidFormStepper.js.map +1 -1
- package/dist/components/common/solidModuleHome.module.css +1 -1
- package/dist/components/common/useHandleFormCustomButtonClick.js +2 -1
- package/dist/components/common/useHandleFormCustomButtonClick.js.map +1 -1
- package/dist/components/common/useHandleListCustomButtonClick.js +2 -1
- package/dist/components/common/useHandleListCustomButtonClick.js.map +1 -1
- package/dist/components/core/chatter/SolidChatter.d.ts +2 -1
- package/dist/components/core/chatter/SolidChatter.d.ts.map +1 -1
- package/dist/components/core/chatter/SolidChatter.js +13 -11
- package/dist/components/core/chatter/SolidChatter.js.map +1 -1
- package/dist/components/core/chatter/SolidChatterHeader.js +2 -1
- package/dist/components/core/chatter/SolidChatterHeader.js.map +1 -1
- package/dist/components/core/chatter/SolidMessageComposer.js +2 -1
- package/dist/components/core/chatter/SolidMessageComposer.js.map +1 -1
- package/dist/components/core/common/LoadDynamicJsxComponent.js +2 -1
- package/dist/components/core/common/LoadDynamicJsxComponent.js.map +1 -1
- package/dist/components/core/common/PDFViewer.d.ts +4 -0
- package/dist/components/core/common/PDFViewer.d.ts.map +1 -0
- package/dist/components/core/common/PDFViewer.js +99 -0
- package/dist/components/core/common/PDFViewer.js.map +1 -0
- package/dist/components/core/common/SolidAccountSettings/SolidAccountSettings.d.ts.map +1 -1
- package/dist/components/core/common/SolidAccountSettings/SolidAccountSettings.js +10 -7
- package/dist/components/core/common/SolidAccountSettings/SolidAccountSettings.js.map +1 -1
- package/dist/components/core/common/SolidAccountSettings/SolidChangePassword.d.ts +1 -1
- package/dist/components/core/common/SolidAccountSettings/SolidChangePassword.d.ts.map +1 -1
- package/dist/components/core/common/SolidAccountSettings/SolidChangePassword.js +53 -36
- package/dist/components/core/common/SolidAccountSettings/SolidChangePassword.js.map +1 -1
- package/dist/components/core/common/SolidAccountSettings/SolidNotifications.js +4 -3
- package/dist/components/core/common/SolidAccountSettings/SolidNotifications.js.map +1 -1
- package/dist/components/core/common/SolidAccountSettings/SolidPersonalInfo.js +8 -7
- package/dist/components/core/common/SolidAccountSettings/SolidPersonalInfo.js.map +1 -1
- package/dist/components/core/common/SolidGenericImport/SolidImportDropzone.d.ts.map +1 -1
- package/dist/components/core/common/SolidGenericImport/SolidImportDropzone.js +6 -5
- package/dist/components/core/common/SolidGenericImport/SolidImportDropzone.js.map +1 -1
- package/dist/components/core/common/SolidGenericImport/SolidImportInstructions.js +4 -3
- package/dist/components/core/common/SolidGenericImport/SolidImportInstructions.js.map +1 -1
- package/dist/components/core/common/SolidGenericImport/SolidImportTransaction.js +5 -4
- package/dist/components/core/common/SolidGenericImport/SolidImportTransaction.js.map +1 -1
- package/dist/components/core/common/SolidGenericImport/SolidImportTransactionStatus.js +4 -3
- package/dist/components/core/common/SolidGenericImport/SolidImportTransactionStatus.js.map +1 -1
- package/dist/components/core/common/SolidGlobalSearchElement.d.ts.map +1 -1
- package/dist/components/core/common/SolidGlobalSearchElement.js +189 -53
- package/dist/components/core/common/SolidGlobalSearchElement.js.map +1 -1
- package/dist/components/core/common/SolidPasswordHelperText.d.ts +1 -1
- package/dist/components/core/common/SolidPasswordHelperText.d.ts.map +1 -1
- package/dist/components/core/common/SolidPasswordHelperText.js +7 -2
- package/dist/components/core/common/SolidPasswordHelperText.js.map +1 -1
- package/dist/components/core/common/SolidViewLayoutManager.d.ts +152 -0
- package/dist/components/core/common/SolidViewLayoutManager.d.ts.map +1 -1
- package/dist/components/core/common/SolidViewLayoutManager.js +256 -8
- package/dist/components/core/common/SolidViewLayoutManager.js.map +1 -1
- package/dist/components/core/common/SolidXAiIframe.d.ts +7 -0
- package/dist/components/core/common/SolidXAiIframe.d.ts.map +1 -0
- package/dist/components/core/common/SolidXAiIframe.js +94 -0
- package/dist/components/core/common/SolidXAiIframe.js.map +1 -0
- package/dist/components/core/dashboard/SolidDashboard.d.ts.map +1 -1
- package/dist/components/core/dashboard/SolidDashboard.js +29 -4
- package/dist/components/core/dashboard/SolidDashboard.js.map +1 -1
- package/dist/components/core/dashboard/SolidDashboardFilterRequired.d.ts +2 -0
- package/dist/components/core/dashboard/SolidDashboardFilterRequired.d.ts.map +1 -0
- package/dist/components/core/dashboard/SolidDashboardFilterRequired.js +6 -0
- package/dist/components/core/dashboard/SolidDashboardFilterRequired.js.map +1 -0
- package/dist/components/core/dashboard/SolidDashboardLoading.d.ts +2 -0
- package/dist/components/core/dashboard/SolidDashboardLoading.d.ts.map +1 -0
- package/dist/components/core/dashboard/SolidDashboardLoading.js +7 -0
- package/dist/components/core/dashboard/SolidDashboardLoading.js.map +1 -0
- package/dist/components/core/dashboard/SolidDashboardRenderError.d.ts +2 -0
- package/dist/components/core/dashboard/SolidDashboardRenderError.d.ts.map +1 -0
- package/dist/components/core/dashboard/SolidDashboardRenderError.js +6 -0
- package/dist/components/core/dashboard/SolidDashboardRenderError.js.map +1 -0
- package/dist/components/core/dashboard/SolidDashboardVariable.d.ts +2 -0
- package/dist/components/core/dashboard/SolidDashboardVariable.d.ts.map +1 -1
- package/dist/components/core/dashboard/SolidDashboardVariable.js +25 -8
- package/dist/components/core/dashboard/SolidDashboardVariable.js.map +1 -1
- package/dist/components/core/extension/solid-core/CustomIcon/StatusIcon.d.ts +8 -0
- package/dist/components/core/extension/solid-core/CustomIcon/StatusIcon.d.ts.map +1 -0
- package/dist/components/core/extension/solid-core/CustomIcon/StatusIcon.js +7 -0
- package/dist/components/core/extension/solid-core/CustomIcon/StatusIcon.js.map +1 -0
- package/dist/components/core/extension/solid-core/modelMetadata/list/DeleteModelRowAction.d.ts.map +1 -1
- package/dist/components/core/extension/solid-core/modelMetadata/list/DeleteModelRowAction.js +47 -16
- package/dist/components/core/extension/solid-core/modelMetadata/list/DeleteModelRowAction.js.map +1 -1
- package/dist/components/core/extension/solid-core/modelMetadata/list/GenerateModelCodeRowAction.d.ts.map +1 -1
- package/dist/components/core/extension/solid-core/modelMetadata/list/GenerateModelCodeRowAction.js +6 -5
- package/dist/components/core/extension/solid-core/modelMetadata/list/GenerateModelCodeRowAction.js.map +1 -1
- package/dist/components/core/extension/solid-core/moduleMetadata/list/GenerateModuleCodeRowAction.d.ts.map +1 -1
- package/dist/components/core/extension/solid-core/moduleMetadata/list/GenerateModuleCodeRowAction.js +8 -7
- package/dist/components/core/extension/solid-core/moduleMetadata/list/GenerateModuleCodeRowAction.js.map +1 -1
- package/dist/components/core/form/SolidFormActionHeader.d.ts.map +1 -1
- package/dist/components/core/form/SolidFormActionHeader.js +28 -22
- package/dist/components/core/form/SolidFormActionHeader.js.map +1 -1
- package/dist/components/core/form/SolidFormUserViewLayout.js +3 -2
- package/dist/components/core/form/SolidFormUserViewLayout.js.map +1 -1
- package/dist/components/core/form/SolidFormView.d.ts.map +1 -1
- package/dist/components/core/form/SolidFormView.js +47 -41
- package/dist/components/core/form/SolidFormView.js.map +1 -1
- package/dist/components/core/form/fields/SolidBooleanField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidBooleanField.js +5 -3
- package/dist/components/core/form/fields/SolidBooleanField.js.map +1 -1
- package/dist/components/core/form/fields/SolidDateField.d.ts +2 -1
- package/dist/components/core/form/fields/SolidDateField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidDateField.js +12 -3
- package/dist/components/core/form/fields/SolidDateField.js.map +1 -1
- package/dist/components/core/form/fields/SolidDateTimeField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidDateTimeField.js +5 -3
- package/dist/components/core/form/fields/SolidDateTimeField.js.map +1 -1
- package/dist/components/core/form/fields/SolidDecimalField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidDecimalField.js +4 -3
- package/dist/components/core/form/fields/SolidDecimalField.js.map +1 -1
- package/dist/components/core/form/fields/SolidEmailField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidEmailField.js +6 -5
- package/dist/components/core/form/fields/SolidEmailField.js.map +1 -1
- package/dist/components/core/form/fields/SolidIntegerField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidIntegerField.js +10 -3
- package/dist/components/core/form/fields/SolidIntegerField.js.map +1 -1
- package/dist/components/core/form/fields/SolidJsonField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidJsonField.js +2 -1
- package/dist/components/core/form/fields/SolidJsonField.js.map +1 -1
- package/dist/components/core/form/fields/SolidLongTextField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidLongTextField.js +4 -3
- package/dist/components/core/form/fields/SolidLongTextField.js.map +1 -1
- package/dist/components/core/form/fields/SolidMediaMultipleField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidMediaMultipleField.js +10 -8
- package/dist/components/core/form/fields/SolidMediaMultipleField.js.map +1 -1
- package/dist/components/core/form/fields/SolidMediaSingleField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidMediaSingleField.js +6 -5
- package/dist/components/core/form/fields/SolidMediaSingleField.js.map +1 -1
- package/dist/components/core/form/fields/SolidPasswordField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidPasswordField.js +13 -11
- package/dist/components/core/form/fields/SolidPasswordField.js.map +1 -1
- package/dist/components/core/form/fields/SolidRelationField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidRelationField.js +2 -1
- package/dist/components/core/form/fields/SolidRelationField.js.map +1 -1
- package/dist/components/core/form/fields/SolidRichTextField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidRichTextField.js +4 -3
- package/dist/components/core/form/fields/SolidRichTextField.js.map +1 -1
- package/dist/components/core/form/fields/SolidSelectionDynamicField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidSelectionDynamicField.js +7 -5
- package/dist/components/core/form/fields/SolidSelectionDynamicField.js.map +1 -1
- package/dist/components/core/form/fields/SolidSelectionStaticField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidSelectionStaticField.js +9 -7
- package/dist/components/core/form/fields/SolidSelectionStaticField.js.map +1 -1
- package/dist/components/core/form/fields/SolidShortTextField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidShortTextField.js +93 -29
- package/dist/components/core/form/fields/SolidShortTextField.js.map +1 -1
- package/dist/components/core/form/fields/SolidTimeField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidTimeField.js +5 -3
- package/dist/components/core/form/fields/SolidTimeField.js.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.d.ts.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.js +10 -9
- package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.js.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.d.ts +10 -1
- package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.d.ts.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.js +388 -30
- package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.js.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.d.ts +16 -2
- package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.d.ts.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.js +133 -35
- package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.js.map +1 -1
- package/dist/components/core/form/fields/widgets/SolidAiInteractionMessageFieldFormWidget.d.ts.map +1 -1
- package/dist/components/core/form/fields/widgets/SolidAiInteractionMessageFieldFormWidget.js +2 -1
- package/dist/components/core/form/fields/widgets/SolidAiInteractionMessageFieldFormWidget.js.map +1 -1
- package/dist/components/core/form/fields/widgets/SolidS3FileViewerWidget.d.ts +6 -0
- package/dist/components/core/form/fields/widgets/SolidS3FileViewerWidget.d.ts.map +1 -0
- package/dist/components/core/form/fields/widgets/SolidS3FileViewerWidget.js +164 -0
- package/dist/components/core/form/fields/widgets/SolidS3FileViewerWidget.js.map +1 -0
- package/dist/components/core/form/widgets/CustomHtml.js +1 -1
- package/dist/components/core/form/widgets/CustomHtml.js.map +1 -1
- package/dist/components/core/kanban/KanbanUserViewLayout.js +3 -2
- package/dist/components/core/kanban/KanbanUserViewLayout.js.map +1 -1
- package/dist/components/core/kanban/SolidKanbanView.d.ts.map +1 -1
- package/dist/components/core/kanban/SolidKanbanView.js +12 -11
- package/dist/components/core/kanban/SolidKanbanView.js.map +1 -1
- package/dist/components/core/list/SolidColumnSelector/SolidListColumnSelector.d.ts.map +1 -1
- package/dist/components/core/list/SolidColumnSelector/SolidListColumnSelector.js +3 -2
- package/dist/components/core/list/SolidColumnSelector/SolidListColumnSelector.js.map +1 -1
- package/dist/components/core/list/SolidEmptyListViewPlaceholder.js +2 -2
- package/dist/components/core/list/SolidEmptyListViewPlaceholder.js.map +1 -1
- package/dist/components/core/list/SolidListView.d.ts.map +1 -1
- package/dist/components/core/list/SolidListView.js +261 -144
- package/dist/components/core/list/SolidListView.js.map +1 -1
- package/dist/components/core/list/SolidListViewConfigure.d.ts.map +1 -1
- package/dist/components/core/list/SolidListViewConfigure.js +51 -41
- package/dist/components/core/list/SolidListViewConfigure.js.map +1 -1
- package/dist/components/core/list/columns/SolidMediaMultipleColumn.d.ts +1 -1
- package/dist/components/core/list/columns/SolidMediaMultipleColumn.d.ts.map +1 -1
- package/dist/components/core/list/columns/SolidMediaMultipleColumn.js +95 -24
- package/dist/components/core/list/columns/SolidMediaMultipleColumn.js.map +1 -1
- package/dist/components/core/locales/SolidChatterLocaleTabView.d.ts +1 -0
- package/dist/components/core/locales/SolidChatterLocaleTabView.d.ts.map +1 -1
- package/dist/components/core/locales/SolidChatterLocaleTabView.js +5 -5
- package/dist/components/core/locales/SolidChatterLocaleTabView.js.map +1 -1
- package/dist/components/core/locales/SolidLocale.d.ts.map +1 -1
- package/dist/components/core/locales/SolidLocale.js +9 -8
- package/dist/components/core/locales/SolidLocale.js.map +1 -1
- package/dist/components/core/model/CreateModel.d.ts.map +1 -1
- package/dist/components/core/model/CreateModel.js +3 -2
- package/dist/components/core/model/CreateModel.js.map +1 -1
- package/dist/components/core/model/FieldMetaData.d.ts.map +1 -1
- package/dist/components/core/model/FieldMetaData.js +4 -3
- package/dist/components/core/model/FieldMetaData.js.map +1 -1
- package/dist/components/core/model/FieldMetaDataForm.d.ts.map +1 -1
- package/dist/components/core/model/FieldMetaDataForm.js +83 -81
- package/dist/components/core/model/FieldMetaDataForm.js.map +1 -1
- package/dist/components/core/model/ModelMetaData.d.ts.map +1 -1
- package/dist/components/core/model/ModelMetaData.js +28 -20
- package/dist/components/core/model/ModelMetaData.js.map +1 -1
- package/dist/components/core/module/CreateModule.d.ts.map +1 -1
- package/dist/components/core/module/CreateModule.js +7 -6
- package/dist/components/core/module/CreateModule.js.map +1 -1
- package/dist/components/core/solid-ai/SolidAiMainWrapper.d.ts +2 -0
- package/dist/components/core/solid-ai/SolidAiMainWrapper.d.ts.map +1 -0
- package/dist/components/core/solid-ai/SolidAiMainWrapper.js +20 -0
- package/dist/components/core/solid-ai/SolidAiMainWrapper.js.map +1 -0
- package/dist/components/core/solid-ai/SolidXAIInputBox.d.ts +3 -1
- package/dist/components/core/solid-ai/SolidXAIInputBox.d.ts.map +1 -1
- package/dist/components/core/solid-ai/SolidXAIInputBox.js +33 -15
- package/dist/components/core/solid-ai/SolidXAIInputBox.js.map +1 -1
- package/dist/components/core/solid-ai/SolidXAIModule.d.ts +1 -1
- package/dist/components/core/solid-ai/SolidXAIModule.d.ts.map +1 -1
- package/dist/components/core/solid-ai/SolidXAIModule.js +26 -34
- package/dist/components/core/solid-ai/SolidXAIModule.js.map +1 -1
- package/dist/components/core/solid-ai/SolidXAIResponse.d.ts.map +1 -1
- package/dist/components/core/solid-ai/SolidXAIResponse.js +5 -4
- package/dist/components/core/solid-ai/SolidXAIResponse.js.map +1 -1
- package/dist/components/core/solid-ai/SolidXAIThreadWrapper.d.ts +1 -0
- package/dist/components/core/solid-ai/SolidXAIThreadWrapper.d.ts.map +1 -1
- package/dist/components/core/solid-ai/SolidXAIThreadWrapper.js +140 -40
- package/dist/components/core/solid-ai/SolidXAIThreadWrapper.js.map +1 -1
- package/dist/components/core/solid-ai/SolidXAiJsonDisplay.d.ts.map +1 -1
- package/dist/components/core/solid-ai/SolidXAiJsonDisplay.js +34 -17
- package/dist/components/core/solid-ai/SolidXAiJsonDisplay.js.map +1 -1
- package/dist/components/core/solid-ai/SolidXAiPlainTextDisplay.js +9 -10
- package/dist/components/core/solid-ai/SolidXAiPlainTextDisplay.js.map +1 -1
- package/dist/components/core/solid-ai/SolidXAiStatusErrorDisplay.d.ts +7 -0
- package/dist/components/core/solid-ai/SolidXAiStatusErrorDisplay.d.ts.map +1 -0
- package/dist/components/core/solid-ai/SolidXAiStatusErrorDisplay.js +7 -0
- package/dist/components/core/solid-ai/SolidXAiStatusErrorDisplay.js.map +1 -0
- package/dist/components/core/solid-ai/SolidXUserPrompt.js +1 -1
- package/dist/components/core/solid-ai/SolidXUserPrompt.js.map +1 -1
- package/dist/components/core/users/CreateUser.d.ts.map +1 -1
- package/dist/components/core/users/CreateUser.js +21 -14
- package/dist/components/core/users/CreateUser.js.map +1 -1
- package/dist/components/core/users/CreateUserRole.d.ts.map +1 -1
- package/dist/components/core/users/CreateUserRole.js +7 -6
- package/dist/components/core/users/CreateUserRole.js.map +1 -1
- package/dist/components/core/users/UserListView.d.ts.map +1 -1
- package/dist/components/core/users/UserListView.js +4 -3
- package/dist/components/core/users/UserListView.js.map +1 -1
- package/dist/components/layout/AdminLayout.d.ts.map +1 -1
- package/dist/components/layout/AdminLayout.js +11 -57
- package/dist/components/layout/AdminLayout.js.map +1 -1
- package/dist/components/layout/Layout.d.ts.map +1 -1
- package/dist/components/layout/Layout.js +84 -0
- package/dist/components/layout/Layout.js.map +1 -1
- package/dist/constants/error-messages.d.ts +152 -2
- package/dist/constants/error-messages.d.ts.map +1 -1
- package/dist/constants/error-messages.js +221 -4
- package/dist/constants/error-messages.js.map +1 -1
- package/dist/helpers/ToastContainer.d.ts.map +1 -1
- package/dist/helpers/ToastContainer.js +4 -3
- package/dist/helpers/ToastContainer.js.map +1 -1
- package/dist/helpers/downloadFileWithProgress.d.ts.map +1 -1
- package/dist/helpers/downloadFileWithProgress.js +4 -3
- package/dist/helpers/downloadFileWithProgress.js.map +1 -1
- package/dist/helpers/downloadMediaFile.d.ts.map +1 -1
- package/dist/helpers/downloadMediaFile.js +2 -1
- package/dist/helpers/downloadMediaFile.js.map +1 -1
- package/dist/helpers/permissions.d.ts +1 -5
- package/dist/helpers/permissions.d.ts.map +1 -1
- package/dist/helpers/permissions.js +3 -14
- package/dist/helpers/permissions.js.map +1 -1
- package/dist/helpers/registry.d.ts.map +1 -1
- package/dist/helpers/registry.js +8 -3
- package/dist/helpers/registry.js.map +1 -1
- package/dist/helpers/updatePasswordField.d.ts.map +1 -1
- package/dist/helpers/updatePasswordField.js +2 -1
- package/dist/helpers/updatePasswordField.js.map +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/nextAuth/handleLogout.d.ts.map +1 -1
- package/dist/nextAuth/handleLogout.js +8 -9
- package/dist/nextAuth/handleLogout.js.map +1 -1
- package/dist/nextAuth/refreshAccessToken.d.ts.map +1 -1
- package/dist/nextAuth/refreshAccessToken.js +2 -1
- package/dist/nextAuth/refreshAccessToken.js.map +1 -1
- package/dist/redux/api/fieldApi.d.ts +2 -1
- package/dist/redux/api/fieldApi.d.ts.map +1 -1
- package/dist/redux/api/fieldApi.js +8 -1
- package/dist/redux/api/fieldApi.js.map +1 -1
- package/dist/redux/api/solidEntityApi.d.ts +2 -0
- package/dist/redux/api/solidEntityApi.d.ts.map +1 -1
- package/dist/redux/api/solidEntityApi.js +20 -0
- package/dist/redux/api/solidEntityApi.js.map +1 -1
- package/dist/redux/store/defaultStoreConfig.d.ts +1 -0
- package/dist/redux/store/defaultStoreConfig.d.ts.map +1 -1
- package/dist/resources/globals.css +22 -2
- package/dist/types/handlebars.d.ts +4 -0
- package/dist/types/index.d.ts +6 -0
- package/dist/types/solid-core.d.ts +87 -9
- package/package.json +4 -4
- package/src/components/common/solidModuleHome.module.css +1 -1
- package/src/resources/globals.css +22 -2
- package/src/types/handlebars.d.ts +4 -0
- package/src/types/index.d.ts +6 -0
- package/src/types/solid-core.d.ts +87 -9
|
@@ -1,13 +1,165 @@
|
|
|
1
1
|
import { LayoutAttribute, LayoutNode } from "../../../types/solid-core";
|
|
2
|
+
/**
|
|
3
|
+
* SolidViewLayoutManager
|
|
4
|
+
*
|
|
5
|
+
* Central manager for mutating Solid View layout trees.
|
|
6
|
+
* Provides low-level tree operations and domain-specific helpers
|
|
7
|
+
* for view attributes, form buttons, and row buttons.
|
|
8
|
+
*/
|
|
2
9
|
export declare class SolidViewLayoutManager {
|
|
10
|
+
/** Internal mutable layout copy */
|
|
3
11
|
private layout;
|
|
12
|
+
/**
|
|
13
|
+
* Creates a new layout manager instance.
|
|
14
|
+
* A deep copy of the provided layout is created to avoid side effects.
|
|
15
|
+
*
|
|
16
|
+
* @param layout - Original layout definition
|
|
17
|
+
*/
|
|
4
18
|
constructor(layout: LayoutNode);
|
|
19
|
+
/**
|
|
20
|
+
* Recursively finds a layout node by its `attrs.name`.
|
|
21
|
+
* Searches children and formButtons.
|
|
22
|
+
*
|
|
23
|
+
* @param node - Node to start searching from
|
|
24
|
+
* @param name - Name of the node to find
|
|
25
|
+
* @returns The matching LayoutNode or null
|
|
26
|
+
*/
|
|
5
27
|
private findNode;
|
|
28
|
+
/**
|
|
29
|
+
* Recursively removes a node from the layout tree.
|
|
30
|
+
*
|
|
31
|
+
* @param parent - Parent node to search within
|
|
32
|
+
* @param name - Name of the node to remove
|
|
33
|
+
* @returns true if the node was removed
|
|
34
|
+
*/
|
|
6
35
|
private removeNodeRecursive;
|
|
36
|
+
/**
|
|
37
|
+
* Returns the managed layout instance.
|
|
38
|
+
*
|
|
39
|
+
* @returns Current layout tree
|
|
40
|
+
*/
|
|
7
41
|
getLayout(): LayoutNode;
|
|
42
|
+
/**
|
|
43
|
+
* Updates attributes of a specific node.
|
|
44
|
+
* This method adds or overrides attributes.
|
|
45
|
+
*
|
|
46
|
+
* @param name - Node name
|
|
47
|
+
* @param newAttributes - Attributes to merge
|
|
48
|
+
* @returns true if node was found and updated
|
|
49
|
+
*/
|
|
8
50
|
updateNodeAttributes(name: string, newAttributes: Partial<LayoutAttribute>): boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Adds a child node to a parent node.
|
|
53
|
+
*
|
|
54
|
+
* @param parentName - Name of the parent node
|
|
55
|
+
* @param newNode - Child layout node to add
|
|
56
|
+
* @returns true if parent exists and child was added
|
|
57
|
+
*/
|
|
9
58
|
addChildNode(parentName: string, newNode: LayoutNode): boolean;
|
|
59
|
+
/**
|
|
60
|
+
* Removes a node and its subtree.
|
|
61
|
+
* Root node removal is prevented.
|
|
62
|
+
*
|
|
63
|
+
* @param name - Name of the node to remove
|
|
64
|
+
* @returns true if node was removed
|
|
65
|
+
*/
|
|
10
66
|
removeNode(name: string): boolean;
|
|
67
|
+
/**
|
|
68
|
+
* Traverses the entire layout tree and executes a callback for each node.
|
|
69
|
+
*
|
|
70
|
+
* @param callback - Function executed for each node
|
|
71
|
+
* @param node - Starting node (defaults to root)
|
|
72
|
+
*/
|
|
11
73
|
traverse(callback: (node: LayoutNode) => void, node?: LayoutNode): void;
|
|
74
|
+
/**
|
|
75
|
+
* Adds or updates view-level attributes.
|
|
76
|
+
* Existing attributes are updated, missing attributes are added.
|
|
77
|
+
*
|
|
78
|
+
* @param attrs - Attributes to set on the view
|
|
79
|
+
* @returns true if at least one attribute was applied
|
|
80
|
+
*/
|
|
81
|
+
setViewAttributes(attrs: Partial<LayoutAttribute>): boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Adds view-level attributes only if they do not already exist.
|
|
84
|
+
*
|
|
85
|
+
* @param attrs - Attributes to add
|
|
86
|
+
* @returns true if at least one attribute was added
|
|
87
|
+
*/
|
|
88
|
+
addViewAttributes(attrs: Partial<LayoutAttribute>): boolean;
|
|
89
|
+
/**
|
|
90
|
+
* Updates existing view-level attributes.
|
|
91
|
+
* Attributes that do not exist are ignored.
|
|
92
|
+
*
|
|
93
|
+
* @param attrs - Attributes to update
|
|
94
|
+
* @returns true if at least one attribute was updated
|
|
95
|
+
*/
|
|
96
|
+
updateViewAttributes(attrs: Partial<LayoutAttribute>): boolean;
|
|
97
|
+
/**
|
|
98
|
+
* Removes specific view-level attributes.
|
|
99
|
+
*
|
|
100
|
+
* @param keys - Attribute keys to remove
|
|
101
|
+
* @returns true if at least one attribute was removed
|
|
102
|
+
*/
|
|
103
|
+
removeViewAttributes(keys: (keyof LayoutAttribute)[]): boolean;
|
|
104
|
+
/**
|
|
105
|
+
* Adds a new form-level button.
|
|
106
|
+
*
|
|
107
|
+
* @param button - Button layout node
|
|
108
|
+
*/
|
|
109
|
+
addFormButton(button: LayoutNode): void;
|
|
110
|
+
/**
|
|
111
|
+
* Updates a form button identified by its action.
|
|
112
|
+
*
|
|
113
|
+
* @param action - Button action identifier
|
|
114
|
+
* @param attrs - Attributes to update
|
|
115
|
+
* @returns true if button was found and updated
|
|
116
|
+
*/
|
|
117
|
+
updateFormButtonByAction(action: string, attrs: Partial<LayoutAttribute>): boolean;
|
|
118
|
+
/**
|
|
119
|
+
* Removes a form button by its action.
|
|
120
|
+
*
|
|
121
|
+
* @param action - Button action identifier
|
|
122
|
+
* @returns true if button was removed
|
|
123
|
+
*/
|
|
124
|
+
removeFormButtonByAction(action: string): boolean;
|
|
125
|
+
/**
|
|
126
|
+
* Disables a form-level button.
|
|
127
|
+
*
|
|
128
|
+
* @param action - Button action identifier
|
|
129
|
+
* @returns true if button was disabled
|
|
130
|
+
*/
|
|
131
|
+
disableFormButton(action: string): boolean;
|
|
132
|
+
/**
|
|
133
|
+
* Hides a form-level button.
|
|
134
|
+
*
|
|
135
|
+
* @param action - Button action identifier
|
|
136
|
+
* @returns true if button was hidden
|
|
137
|
+
*/
|
|
138
|
+
hideFormButton(action: string): boolean;
|
|
139
|
+
/**
|
|
140
|
+
* Adds a row-level button to a field.
|
|
141
|
+
*
|
|
142
|
+
* @param fieldName - Target field name
|
|
143
|
+
* @param button - Button definition
|
|
144
|
+
* @returns true if field exists and button was added
|
|
145
|
+
*/
|
|
146
|
+
addRowButtonToField(fieldName: string, button: LayoutNode): boolean;
|
|
147
|
+
/**
|
|
148
|
+
* Updates a row-level button for a field.
|
|
149
|
+
*
|
|
150
|
+
* @param fieldName - Field name
|
|
151
|
+
* @param action - Button action identifier
|
|
152
|
+
* @param attrs - Attributes to update
|
|
153
|
+
* @returns true if button was updated
|
|
154
|
+
*/
|
|
155
|
+
updateRowButton(fieldName: string, action: string, attrs: Partial<LayoutAttribute>): boolean;
|
|
156
|
+
/**
|
|
157
|
+
* Removes a row-level button from a field.
|
|
158
|
+
*
|
|
159
|
+
* @param fieldName - Field name
|
|
160
|
+
* @param action - Button action identifier
|
|
161
|
+
* @returns true if button was removed
|
|
162
|
+
*/
|
|
163
|
+
removeRowButton(fieldName: string, action: string): boolean;
|
|
12
164
|
}
|
|
13
165
|
//# sourceMappingURL=SolidViewLayoutManager.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SolidViewLayoutManager.d.ts","sourceRoot":"","sources":["../../../../src/components/core/common/SolidViewLayoutManager.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SolidViewLayoutManager.d.ts","sourceRoot":"","sources":["../../../../src/components/core/common/SolidViewLayoutManager.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAEjE;;;;;;GAMG;AACH,qBAAa,sBAAsB;IAC/B,mCAAmC;IACnC,OAAO,CAAC,MAAM,CAAa;IAE3B;;;;;OAKG;gBACS,MAAM,EAAE,UAAU;IAK9B;;;;;;;OAOG;IACH,OAAO,CAAC,QAAQ;IAuBhB;;;;;;OAMG;IACH,OAAO,CAAC,mBAAmB;IAa3B;;;;QAII;IACJ,SAAS,IAAI,UAAU;IAKvB;;;;;;;OAOG;IACH,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,aAAa,EAAE,OAAO,CAAC,eAAe,CAAC,GAAG,OAAO;IASpF;;;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e,CAAC,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO;CAc9D"}
|
|
@@ -9,12 +9,33 @@ var __assign = (this && this.__assign) || function () {
|
|
|
9
9
|
};
|
|
10
10
|
return __assign.apply(this, arguments);
|
|
11
11
|
};
|
|
12
|
+
import { ERROR_MESSAGES } from "../../../constants/error-messages";
|
|
13
|
+
/**
|
|
14
|
+
* SolidViewLayoutManager
|
|
15
|
+
*
|
|
16
|
+
* Central manager for mutating Solid View layout trees.
|
|
17
|
+
* Provides low-level tree operations and domain-specific helpers
|
|
18
|
+
* for view attributes, form buttons, and row buttons.
|
|
19
|
+
*/
|
|
12
20
|
var SolidViewLayoutManager = /** @class */ (function () {
|
|
21
|
+
/**
|
|
22
|
+
* Creates a new layout manager instance.
|
|
23
|
+
* A deep copy of the provided layout is created to avoid side effects.
|
|
24
|
+
*
|
|
25
|
+
* @param layout - Original layout definition
|
|
26
|
+
*/
|
|
13
27
|
function SolidViewLayoutManager(layout) {
|
|
14
28
|
// Create a deep copy to prevent modifying the original object
|
|
15
29
|
this.layout = structuredClone ? structuredClone(layout) : JSON.parse(JSON.stringify(layout));
|
|
16
30
|
}
|
|
17
|
-
|
|
31
|
+
/**
|
|
32
|
+
* Recursively finds a layout node by its `attrs.name`.
|
|
33
|
+
* Searches children and formButtons.
|
|
34
|
+
*
|
|
35
|
+
* @param node - Node to start searching from
|
|
36
|
+
* @param name - Name of the node to find
|
|
37
|
+
* @returns The matching LayoutNode or null
|
|
38
|
+
*/
|
|
18
39
|
SolidViewLayoutManager.prototype.findNode = function (node, name) {
|
|
19
40
|
var _a;
|
|
20
41
|
if (node.attrs.name === name) {
|
|
@@ -39,7 +60,13 @@ var SolidViewLayoutManager = /** @class */ (function () {
|
|
|
39
60
|
}
|
|
40
61
|
return null;
|
|
41
62
|
};
|
|
42
|
-
|
|
63
|
+
/**
|
|
64
|
+
* Recursively removes a node from the layout tree.
|
|
65
|
+
*
|
|
66
|
+
* @param parent - Parent node to search within
|
|
67
|
+
* @param name - Name of the node to remove
|
|
68
|
+
* @returns true if the node was removed
|
|
69
|
+
*/
|
|
43
70
|
SolidViewLayoutManager.prototype.removeNodeRecursive = function (parent, name) {
|
|
44
71
|
var _this = this;
|
|
45
72
|
if (!parent.children)
|
|
@@ -51,12 +78,23 @@ var SolidViewLayoutManager = /** @class */ (function () {
|
|
|
51
78
|
}
|
|
52
79
|
return parent.children.some(function (child) { return _this.removeNodeRecursive(child, name); });
|
|
53
80
|
};
|
|
54
|
-
|
|
81
|
+
/**
|
|
82
|
+
* Returns the managed layout instance.
|
|
83
|
+
*
|
|
84
|
+
* @returns Current layout tree
|
|
85
|
+
*/
|
|
55
86
|
SolidViewLayoutManager.prototype.getLayout = function () {
|
|
56
87
|
// return structuredClone ? structuredClone(this.layout) : JSON.parse(JSON.stringify(this.layout));
|
|
57
88
|
return this.layout;
|
|
58
89
|
};
|
|
59
|
-
|
|
90
|
+
/**
|
|
91
|
+
* Updates attributes of a specific node.
|
|
92
|
+
* This method adds or overrides attributes.
|
|
93
|
+
*
|
|
94
|
+
* @param name - Node name
|
|
95
|
+
* @param newAttributes - Attributes to merge
|
|
96
|
+
* @returns true if node was found and updated
|
|
97
|
+
*/
|
|
60
98
|
SolidViewLayoutManager.prototype.updateNodeAttributes = function (name, newAttributes) {
|
|
61
99
|
var node = this.findNode(this.layout, name);
|
|
62
100
|
if (node) {
|
|
@@ -65,7 +103,13 @@ var SolidViewLayoutManager = /** @class */ (function () {
|
|
|
65
103
|
}
|
|
66
104
|
return false;
|
|
67
105
|
};
|
|
68
|
-
|
|
106
|
+
/**
|
|
107
|
+
* Adds a child node to a parent node.
|
|
108
|
+
*
|
|
109
|
+
* @param parentName - Name of the parent node
|
|
110
|
+
* @param newNode - Child layout node to add
|
|
111
|
+
* @returns true if parent exists and child was added
|
|
112
|
+
*/
|
|
69
113
|
SolidViewLayoutManager.prototype.addChildNode = function (parentName, newNode) {
|
|
70
114
|
var parentNode = this.findNode(this.layout, parentName);
|
|
71
115
|
if (parentNode) {
|
|
@@ -77,15 +121,26 @@ var SolidViewLayoutManager = /** @class */ (function () {
|
|
|
77
121
|
}
|
|
78
122
|
return false;
|
|
79
123
|
};
|
|
80
|
-
|
|
124
|
+
/**
|
|
125
|
+
* Removes a node and its subtree.
|
|
126
|
+
* Root node removal is prevented.
|
|
127
|
+
*
|
|
128
|
+
* @param name - Name of the node to remove
|
|
129
|
+
* @returns true if node was removed
|
|
130
|
+
*/
|
|
81
131
|
SolidViewLayoutManager.prototype.removeNode = function (name) {
|
|
82
132
|
if (this.layout.attrs.name === name) {
|
|
83
|
-
console.warn(
|
|
133
|
+
console.warn(ERROR_MESSAGES.REMOVE_ROOT_NODE);
|
|
84
134
|
return false;
|
|
85
135
|
}
|
|
86
136
|
return this.removeNodeRecursive(this.layout, name);
|
|
87
137
|
};
|
|
88
|
-
|
|
138
|
+
/**
|
|
139
|
+
* Traverses the entire layout tree and executes a callback for each node.
|
|
140
|
+
*
|
|
141
|
+
* @param callback - Function executed for each node
|
|
142
|
+
* @param node - Starting node (defaults to root)
|
|
143
|
+
*/
|
|
89
144
|
SolidViewLayoutManager.prototype.traverse = function (callback, node) {
|
|
90
145
|
var _this = this;
|
|
91
146
|
if (node === void 0) { node = this.layout; }
|
|
@@ -94,6 +149,199 @@ var SolidViewLayoutManager = /** @class */ (function () {
|
|
|
94
149
|
node.children.forEach(function (child) { return _this.traverse(callback, child); });
|
|
95
150
|
}
|
|
96
151
|
};
|
|
152
|
+
/**
|
|
153
|
+
* Adds or updates view-level attributes.
|
|
154
|
+
* Existing attributes are updated, missing attributes are added.
|
|
155
|
+
*
|
|
156
|
+
* @param attrs - Attributes to set on the view
|
|
157
|
+
* @returns true if at least one attribute was applied
|
|
158
|
+
*/
|
|
159
|
+
SolidViewLayoutManager.prototype.setViewAttributes = function (attrs) {
|
|
160
|
+
var viewNode = this.findNode(this.layout, this.layout.attrs.name);
|
|
161
|
+
if (!viewNode)
|
|
162
|
+
return false;
|
|
163
|
+
var changed = false;
|
|
164
|
+
for (var _i = 0, _a = Object.keys(attrs); _i < _a.length; _i++) {
|
|
165
|
+
var key = _a[_i];
|
|
166
|
+
var newValue = attrs[key];
|
|
167
|
+
if (viewNode.attrs[key] !== newValue) {
|
|
168
|
+
viewNode.attrs[key] = newValue;
|
|
169
|
+
changed = true;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
return changed;
|
|
173
|
+
};
|
|
174
|
+
/**
|
|
175
|
+
* Adds view-level attributes only if they do not already exist.
|
|
176
|
+
*
|
|
177
|
+
* @param attrs - Attributes to add
|
|
178
|
+
* @returns true if at least one attribute was added
|
|
179
|
+
*/
|
|
180
|
+
SolidViewLayoutManager.prototype.addViewAttributes = function (attrs) {
|
|
181
|
+
var viewNode = this.findNode(this.layout, this.layout.attrs.name);
|
|
182
|
+
if (!viewNode)
|
|
183
|
+
return false;
|
|
184
|
+
var added = false;
|
|
185
|
+
for (var key in attrs) {
|
|
186
|
+
if (!(key in viewNode.attrs)) {
|
|
187
|
+
// @ts-ignore – layout attributes are dynamic
|
|
188
|
+
viewNode.attrs[key] = attrs[key];
|
|
189
|
+
added = true;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
return added;
|
|
193
|
+
};
|
|
194
|
+
/**
|
|
195
|
+
* Updates existing view-level attributes.
|
|
196
|
+
* Attributes that do not exist are ignored.
|
|
197
|
+
*
|
|
198
|
+
* @param attrs - Attributes to update
|
|
199
|
+
* @returns true if at least one attribute was updated
|
|
200
|
+
*/
|
|
201
|
+
SolidViewLayoutManager.prototype.updateViewAttributes = function (attrs) {
|
|
202
|
+
var viewNode = this.findNode(this.layout, this.layout.attrs.name);
|
|
203
|
+
if (!viewNode)
|
|
204
|
+
return false;
|
|
205
|
+
var updated = false;
|
|
206
|
+
for (var key in attrs) {
|
|
207
|
+
if (key in viewNode.attrs) {
|
|
208
|
+
// @ts-ignore
|
|
209
|
+
viewNode.attrs[key] = attrs[key];
|
|
210
|
+
updated = true;
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
return updated;
|
|
214
|
+
};
|
|
215
|
+
/**
|
|
216
|
+
* Removes specific view-level attributes.
|
|
217
|
+
*
|
|
218
|
+
* @param keys - Attribute keys to remove
|
|
219
|
+
* @returns true if at least one attribute was removed
|
|
220
|
+
*/
|
|
221
|
+
SolidViewLayoutManager.prototype.removeViewAttributes = function (keys) {
|
|
222
|
+
var viewNode = this.findNode(this.layout, this.layout.attrs.name);
|
|
223
|
+
if (!viewNode)
|
|
224
|
+
return false;
|
|
225
|
+
var removed = false;
|
|
226
|
+
for (var _i = 0, keys_1 = keys; _i < keys_1.length; _i++) {
|
|
227
|
+
var key = keys_1[_i];
|
|
228
|
+
if (key in viewNode.attrs) {
|
|
229
|
+
// @ts-ignore
|
|
230
|
+
delete viewNode.attrs[key];
|
|
231
|
+
removed = true;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
return removed;
|
|
235
|
+
};
|
|
236
|
+
/**
|
|
237
|
+
* Adds a new form-level button.
|
|
238
|
+
*
|
|
239
|
+
* @param button - Button layout node
|
|
240
|
+
*/
|
|
241
|
+
SolidViewLayoutManager.prototype.addFormButton = function (button) {
|
|
242
|
+
var _a;
|
|
243
|
+
var _b;
|
|
244
|
+
(_a = (_b = this.layout.attrs).formButtons) !== null && _a !== void 0 ? _a : (_b.formButtons = []);
|
|
245
|
+
this.layout.attrs.formButtons.push(button);
|
|
246
|
+
};
|
|
247
|
+
/**
|
|
248
|
+
* Updates a form button identified by its action.
|
|
249
|
+
*
|
|
250
|
+
* @param action - Button action identifier
|
|
251
|
+
* @param attrs - Attributes to update
|
|
252
|
+
* @returns true if button was found and updated
|
|
253
|
+
*/
|
|
254
|
+
SolidViewLayoutManager.prototype.updateFormButtonByAction = function (action, attrs) {
|
|
255
|
+
var _a;
|
|
256
|
+
var button = (_a = this.layout.attrs.formButtons) === null || _a === void 0 ? void 0 : _a.find(function (b) { return b.attrs.action === action; });
|
|
257
|
+
if (!button)
|
|
258
|
+
return false;
|
|
259
|
+
button.attrs = __assign(__assign({}, button.attrs), attrs);
|
|
260
|
+
return true;
|
|
261
|
+
};
|
|
262
|
+
/**
|
|
263
|
+
* Removes a form button by its action.
|
|
264
|
+
*
|
|
265
|
+
* @param action - Button action identifier
|
|
266
|
+
* @returns true if button was removed
|
|
267
|
+
*/
|
|
268
|
+
SolidViewLayoutManager.prototype.removeFormButtonByAction = function (action) {
|
|
269
|
+
if (!this.layout.attrs.formButtons)
|
|
270
|
+
return false;
|
|
271
|
+
var initialLength = this.layout.attrs.formButtons.length;
|
|
272
|
+
this.layout.attrs.formButtons = this.layout.attrs.formButtons.filter(function (b) { return b.attrs.action !== action; });
|
|
273
|
+
return this.layout.attrs.formButtons.length !== initialLength;
|
|
274
|
+
};
|
|
275
|
+
/**
|
|
276
|
+
* Disables a form-level button.
|
|
277
|
+
*
|
|
278
|
+
* @param action - Button action identifier
|
|
279
|
+
* @returns true if button was disabled
|
|
280
|
+
*/
|
|
281
|
+
SolidViewLayoutManager.prototype.disableFormButton = function (action) {
|
|
282
|
+
return this.updateFormButtonByAction(action, { disabled: true });
|
|
283
|
+
};
|
|
284
|
+
/**
|
|
285
|
+
* Hides a form-level button.
|
|
286
|
+
*
|
|
287
|
+
* @param action - Button action identifier
|
|
288
|
+
* @returns true if button was hidden
|
|
289
|
+
*/
|
|
290
|
+
SolidViewLayoutManager.prototype.hideFormButton = function (action) {
|
|
291
|
+
return this.updateFormButtonByAction(action, { visible: false });
|
|
292
|
+
};
|
|
293
|
+
/**
|
|
294
|
+
* Adds a row-level button to a field.
|
|
295
|
+
*
|
|
296
|
+
* @param fieldName - Target field name
|
|
297
|
+
* @param button - Button definition
|
|
298
|
+
* @returns true if field exists and button was added
|
|
299
|
+
*/
|
|
300
|
+
SolidViewLayoutManager.prototype.addRowButtonToField = function (fieldName, button) {
|
|
301
|
+
var _a;
|
|
302
|
+
var _b;
|
|
303
|
+
var fieldNode = this.findNode(this.layout, fieldName);
|
|
304
|
+
if (!fieldNode)
|
|
305
|
+
return false;
|
|
306
|
+
(_a = (_b = fieldNode.attrs).rowButtons) !== null && _a !== void 0 ? _a : (_b.rowButtons = []);
|
|
307
|
+
fieldNode.attrs.rowButtons.push(button);
|
|
308
|
+
return true;
|
|
309
|
+
};
|
|
310
|
+
/**
|
|
311
|
+
* Updates a row-level button for a field.
|
|
312
|
+
*
|
|
313
|
+
* @param fieldName - Field name
|
|
314
|
+
* @param action - Button action identifier
|
|
315
|
+
* @param attrs - Attributes to update
|
|
316
|
+
* @returns true if button was updated
|
|
317
|
+
*/
|
|
318
|
+
SolidViewLayoutManager.prototype.updateRowButton = function (fieldName, action, attrs) {
|
|
319
|
+
var _a;
|
|
320
|
+
var fieldNode = this.findNode(this.layout, fieldName);
|
|
321
|
+
if (!((_a = fieldNode === null || fieldNode === void 0 ? void 0 : fieldNode.attrs) === null || _a === void 0 ? void 0 : _a.rowButtons))
|
|
322
|
+
return false;
|
|
323
|
+
var button = fieldNode.attrs.rowButtons.find(function (b) { return b.action === action; });
|
|
324
|
+
if (!button)
|
|
325
|
+
return false;
|
|
326
|
+
Object.assign(button, attrs);
|
|
327
|
+
return true;
|
|
328
|
+
};
|
|
329
|
+
/**
|
|
330
|
+
* Removes a row-level button from a field.
|
|
331
|
+
*
|
|
332
|
+
* @param fieldName - Field name
|
|
333
|
+
* @param action - Button action identifier
|
|
334
|
+
* @returns true if button was removed
|
|
335
|
+
*/
|
|
336
|
+
SolidViewLayoutManager.prototype.removeRowButton = function (fieldName, action) {
|
|
337
|
+
var _a;
|
|
338
|
+
var fieldNode = this.findNode(this.layout, fieldName);
|
|
339
|
+
if (!((_a = fieldNode === null || fieldNode === void 0 ? void 0 : fieldNode.attrs) === null || _a === void 0 ? void 0 : _a.rowButtons))
|
|
340
|
+
return false;
|
|
341
|
+
var initialLength = fieldNode.attrs.rowButtons.length;
|
|
342
|
+
fieldNode.attrs.rowButtons = fieldNode.attrs.rowButtons.filter(function (b) { return b.action !== action; });
|
|
343
|
+
return fieldNode.attrs.rowButtons.length !== initialLength;
|
|
344
|
+
};
|
|
97
345
|
return SolidViewLayoutManager;
|
|
98
346
|
}());
|
|
99
347
|
export { SolidViewLayoutManager };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SolidViewLayoutManager.js","sourceRoot":"","sources":["../../../../src/components/core/common/SolidViewLayoutManager.ts"],"names":[],"mappings":";;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"SolidViewLayoutManager.js","sourceRoot":"","sources":["../../../../src/components/core/common/SolidViewLayoutManager.ts"],"names":[],"mappings":";;;;;;;;;;;AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,4BAA4B,CAAC;AAG5D;;;;;;GAMG;AACH;IAII;;;;;OAKG;IACH,gCAAY,MAAkB;QAC1B,8DAA8D;QAC9D,IAAI,CAAC,MAAM,GAAG,eAAe,CAAC,CAAC,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;IACjG,CAAC;IAED;;;;;;;OAOG;IACK,yCAAQ,GAAhB,UAAiB,IAAgB,EAAE,IAAY;;QAC3C,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,KAAK,IAAI,EAAE;YAC1B,OAAO,IAAI,CAAC;SACf;QAED,IAAI,IAAI,CAAC,QAAQ,EAAE;YACf,KAAkB,UAAa,EAAb,KAAA,IAAI,CAAC,QAAQ,EAAb,cAAa,EAAb,IAAa,EAAE;gBAA5B,IAAI,KAAK,SAAA;gBACV,IAAM,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC;gBACzC,IAAI,KAAK;oBAAE,OAAO,KAAK,CAAC;aAC3B;SACJ;QAED,wBAAwB;QACxB,IAAI,MAAA,IAAI,CAAC,KAAK,0CAAE,WAAW,EAAE;YACzB,KAAkB,UAAsB,EAA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AM,aAAa,GAAG,SAAS,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,CAAC;QAExD,SAAS,CAAC,KAAK,CAAC,UAAU,GAAG,SAAS,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,CAC1D,UAAC,CAAM,IAAK,OAAA,CAAC,CAAC,MAAM,KAAK,MAAM,EAAnB,CAAmB,CAClC,CAAC;QAEF,OAAO,SAAS,CAAC,KAAK,CAAC,UAAU,CAAC,MAAM,KAAK,aAAa,CAAC;IAC/D,CAAC;IAGL,6BAAC;AAAD,CAAC,AAzXD,IAyXC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SolidXAiIframe.d.ts","sourceRoot":"","sources":["../../../../src/components/core/common/SolidXAiIframe.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAsC,MAAM,OAAO,CAAC;AAE3D,UAAU,mBAAmB;IAC3B,GAAG,EAAE,MAAM,CAAC;CACb;AAED,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAsExD,CAAC"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
11
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
12
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
13
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
14
|
+
function step(op) {
|
|
15
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
16
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
17
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
18
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
19
|
+
switch (op[0]) {
|
|
20
|
+
case 0: case 1: t = op; break;
|
|
21
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
22
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
23
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
24
|
+
default:
|
|
25
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
26
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
27
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
28
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
29
|
+
if (t[2]) _.ops.pop();
|
|
30
|
+
_.trys.pop(); continue;
|
|
31
|
+
}
|
|
32
|
+
op = body.call(thisArg, _);
|
|
33
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
34
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
38
|
+
import { useEffect, useState } from "react";
|
|
39
|
+
export var SolidXAiIframe = function (_a) {
|
|
40
|
+
var url = _a.url;
|
|
41
|
+
var _b = useState(null), reachable = _b[0], setReachable = _b[1];
|
|
42
|
+
useEffect(function () {
|
|
43
|
+
var handler = function (event) {
|
|
44
|
+
var _a;
|
|
45
|
+
if (((_a = event.data) === null || _a === void 0 ? void 0 : _a.action) === "REFRESH_PARENT") {
|
|
46
|
+
window.location.reload();
|
|
47
|
+
}
|
|
48
|
+
};
|
|
49
|
+
window.addEventListener("message", handler);
|
|
50
|
+
return function () { return window.removeEventListener("message", handler); };
|
|
51
|
+
}, []);
|
|
52
|
+
useEffect(function () {
|
|
53
|
+
var checkServer = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
54
|
+
var res, err_1;
|
|
55
|
+
return __generator(this, function (_a) {
|
|
56
|
+
switch (_a.label) {
|
|
57
|
+
case 0:
|
|
58
|
+
_a.trys.push([0, 2, , 3]);
|
|
59
|
+
return [4 /*yield*/, fetch(url, { method: "HEAD" })];
|
|
60
|
+
case 1:
|
|
61
|
+
res = _a.sent();
|
|
62
|
+
if (res.ok) {
|
|
63
|
+
setReachable(true);
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
setReachable(false);
|
|
67
|
+
}
|
|
68
|
+
return [3 /*break*/, 3];
|
|
69
|
+
case 2:
|
|
70
|
+
err_1 = _a.sent();
|
|
71
|
+
setReachable(false);
|
|
72
|
+
return [3 /*break*/, 3];
|
|
73
|
+
case 3: return [2 /*return*/];
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
}); };
|
|
77
|
+
checkServer();
|
|
78
|
+
}, [url]);
|
|
79
|
+
// Loading state
|
|
80
|
+
if (reachable === null) {
|
|
81
|
+
return (_jsx("div", { className: "flex items-center justify-center h-full text-gray-600", children: "Checking SolidX AI server..." }));
|
|
82
|
+
}
|
|
83
|
+
// Error state
|
|
84
|
+
if (reachable === false) {
|
|
85
|
+
return (_jsx("div", { className: "flex items-center justify-center align-items-center h-full text-center p-4", children: _jsxs("h3", { children: ["Mcp Server not reachable. ", _jsx("br", {}), _jsx("span", { className: "opacity-60 mt-2", children: _jsx("strong", { children: url }) })] }) }));
|
|
86
|
+
}
|
|
87
|
+
// SUCCESS → load iframe
|
|
88
|
+
return (_jsx("iframe", { src: url, style: {
|
|
89
|
+
width: "100%",
|
|
90
|
+
height: "100%",
|
|
91
|
+
border: "none",
|
|
92
|
+
}, allow: "clipboard-write; clipboard-read", title: "SolidX AI JSON Viewer" }));
|
|
93
|
+
};
|
|
94
|
+
//# sourceMappingURL=SolidXAiIframe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SolidXAiIframe.js","sourceRoot":"","sources":["../../../../src/components/core/common/SolidXAiIframe.tsx"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,OAAc,EAAE,SAAS,EAAU,QAAQ,EAAE,MAAM,OAAO,CAAC;AAM3D,MAAM,CAAC,IAAM,cAAc,GAAkC,UAAC,EAAO;QAAL,GAAG,SAAA;IAC3D,IAAA,KAA4B,QAAQ,CAAiB,IAAI,CAAC,EAAzD,SAAS,QAAA,EAAE,YAAY,QAAkC,CAAC;IAGjE,SAAS,CAAC;QACV,IAAM,OAAO,GAAG,UAAC,KAAS;;YACxB,IAAI,CAAA,MAAA,KAAK,CAAC,IAAI,0CAAE,MAAM,MAAK,gBAAgB,EAAE;gBAC3C,MAAM,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;aAC1B;QACH,CAAC,CAAC;QAEF,MAAM,CAAC,gBAAgB,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;QAC5C,OAAO,cAAM,OAAA,MAAM,CAAC,mBAAmB,CAAC,SAAS,EAAE,OAAO,CAAC,EAA9C,CAA8C,CAAC;IAC9D,CAAC,EAAE,EAAE,CAAC,CAAC;IAIL,SAAS,CAAC;QACR,IAAM,WAAW,GAAG;;;;;;wBAGJ,qBAAM,KAAK,CAAC,GAAG,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,EAAA;;wBAA1C,GAAG,GAAG,SAAoC;wBAEhD,IAAI,GAAG,CAAC,EAAE,EAAE;4BACV,YAAY,CAAC,IAAI,CAAC,CAAC;yBACpB;6BAAM;4BACL,YAAY,CAAC,KAAK,CAAC,CAAC;yBACrB;;;;wBAED,YAAY,CAAC,KAAK,CAAC,CAAC;;;;;aAEvB,CAAC;QAEF,WAAW,EAAE,CAAC;IAChB,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAEV,gBAAgB;IAChB,IAAI,SAAS,KAAK,IAAI,EAAE;QACtB,OAAO,CACL,cAAK,SAAS,EAAC,uDAAuD,6CAEhE,CACP,CAAC;KACH;IAED,cAAc;IACd,IAAI,SAAS,KAAK,KAAK,EAAE;QACvB,OAAO,CACL,cAAK,SAAS,EAAC,6EAA6E,YAC1F,uDAA8B,cAAS,EACrC,eAAM,SAAS,EAAC,iBAAiB,YAC/B,2BAAS,GAAG,GAAU,GACjB,IACJ,GACD,CACP,CAAC;KACH;IACD,wBAAwB;IACxB,OAAO,CACL,iBACE,GAAG,EAAE,GAAG,EACR,KAAK,EAAE;YACL,KAAK,EAAE,MAAM;YACb,MAAM,EAAE,MAAM;YACd,MAAM,EAAE,MAAM;SACf,EACD,KAAK,EAAC,iCAAiC,EACvC,KAAK,EAAC,uBAAuB,GAC7B,CACH,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SolidDashboard.d.ts","sourceRoot":"","sources":["../../../../src/components/core/dashboard/SolidDashboard.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SolidDashboard.d.ts","sourceRoot":"","sources":["../../../../src/components/core/dashboard/SolidDashboard.tsx"],"names":[],"mappings":"AAiBA,oBAAY,qBAAqB;IAC/B,IAAI,SAAS;IACb,gBAAgB,oBAAoB;IACpC,iBAAiB,qBAAqB;CACvC;AAED,aAAK,WAAW;IACd,GAAG,QAAQ;IACX,QAAQ,aAAa;CACtB;AAED,MAAM,WAAW,uBAAuB;IACtC,EAAE,EAAE,MAAM,CAAC;IACX,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,qBAAqB,CAAC;IACpC,qBAAqB,CAAC,EAAE,MAAM,EAAE,CAAC;IACjC,0BAA0B,CAAC,EAAE,WAAW,CAAC;IACzC,4BAA4B,CAAC,EAAE,MAAM,CAAC;IACtC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC1B;AAwED,KAAK,uBAAuB,GAAG;IAC7B,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,QAAA,MAAM,cAAc,WAAY,uBAAuB,4CA4JtD,CAAA;AAED,eAAe,cAAc,CAAC"}
|