@solidstarters/solid-core-ui 1.1.70 → 1.1.72
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/CustomFooter/CustomFooter.tsx +264 -0
- package/dist/components/CustomFooter/FooterForm.tsx +19 -0
- package/dist/components/CustomHeader/CallIcon.tsx +20 -0
- package/dist/components/CustomHeader/CustomDropdown.tsx +175 -0
- package/dist/components/CustomHeader/CustomHeader.tsx +64 -0
- package/dist/components/CustomHeader/EmailIcon.tsx +12 -0
- package/dist/components/CustomHeader/HeaderCart.tsx +15 -0
- package/dist/components/CustomHeader/productNavData.tsx +180 -0
- package/dist/components/FormView/DetailsViews.tsx +46 -0
- package/dist/components/FormView/OrderAddressDetails.tsx +70 -0
- package/dist/components/FormView/OrderPaymentDetails.tsx +18 -0
- package/dist/components/FormView/OrderTableDetails.tsx +36 -0
- package/dist/components/FormView/OrderedProductDetail.tsx +22 -0
- package/dist/components/Svg/ExcelSvg.tsx +15 -0
- package/dist/components/Svg/FileSvg.tsx +19 -0
- package/dist/components/Svg/PDFSvg.tsx +15 -0
- package/dist/components/Svg/RightArrowSvg.d.ts +2 -0
- package/dist/components/Svg/RightArrowSvg.d.ts.map +1 -0
- package/dist/components/Svg/RightArrowSvg.js +5 -0
- package/dist/components/Svg/RightArrowSvg.js.map +1 -0
- package/dist/components/Svg/RightArrowSvg.tsx +9 -0
- package/dist/components/Tag/CustomTag.tsx +50 -0
- package/dist/components/auth/AuthLayout.js +3 -3
- package/dist/components/auth/AuthLayout.js.map +1 -1
- package/dist/components/auth/AuthLayout.tsx +140 -0
- package/dist/components/auth/ForgotPasswordThankYou.tsx +48 -0
- package/dist/components/auth/GoogleAuthChecking.tsx +60 -0
- package/dist/components/auth/Login.tsx +155 -0
- package/dist/components/auth/Register.tsx +239 -0
- package/dist/components/auth/SolidChangeForcePassword.tsx +145 -0
- package/dist/components/auth/SolidForgotPassword.tsx +125 -0
- package/dist/components/auth/SolidInitialLoginOtp.tsx +152 -0
- package/dist/components/auth/SolidInitiateRegisterOtp.tsx +141 -0
- package/dist/components/auth/SolidLogin.js +5 -5
- package/dist/components/auth/SolidLogin.js.map +1 -1
- package/dist/components/auth/SolidLogin.tsx +275 -0
- package/dist/components/auth/SolidOTPVerify.tsx +132 -0
- package/dist/components/auth/SolidRegister.js +4 -4
- package/dist/components/auth/SolidRegister.js.map +1 -1
- package/dist/components/auth/SolidRegister.tsx +348 -0
- package/dist/components/auth/SolidResetPassword.tsx +162 -0
- package/dist/components/common/AuthBanner.tsx +41 -0
- package/dist/components/common/AutoCompleteField.tsx +76 -0
- package/dist/components/common/BackButton.tsx +27 -0
- package/dist/components/common/CancelButton.tsx +48 -0
- package/dist/components/common/CodeEditor.tsx +26 -0
- package/dist/components/common/CreateButton.tsx +17 -0
- package/dist/components/common/DropzonePlaceholder.tsx +31 -0
- package/dist/components/common/DropzoneUpload.tsx +11 -0
- package/dist/components/common/FileReaderExt.tsx +20 -0
- package/dist/components/common/GeneralSettings.d.ts.map +1 -1
- package/dist/components/common/GeneralSettings.js +48 -48
- package/dist/components/common/GeneralSettings.js.map +1 -1
- package/dist/components/common/GeneralSettings.tsx +414 -0
- package/dist/components/common/HeaderDynamicTitles.tsx +13 -0
- package/dist/components/common/MarkdownViewer.tsx +16 -0
- package/dist/components/common/MultipleSelectAutoCompleteField.tsx +62 -0
- package/dist/components/common/NotFound.tsx +22 -0
- package/dist/components/common/SingleSelectAutoCompleteField.tsx +67 -0
- package/dist/components/common/SocialMediaLogin.tsx +53 -0
- package/dist/components/common/SolidAdmin.tsx +7 -0
- package/dist/components/common/SolidBreadcrumb.tsx +103 -0
- package/dist/components/common/SolidFormHeader.tsx +22 -0
- package/dist/components/common/SolidFormStepper.tsx +213 -0
- package/dist/components/common/SolidModuleHome.tsx +61 -0
- package/dist/components/common/SolidThemeLink.tsx +5 -0
- package/dist/components/common/SolidThemeProvider.tsx +44 -0
- package/dist/components/common/error.tsx +30 -0
- package/dist/components/core/chatter/SolidChatter.d.ts +7 -0
- package/dist/components/core/chatter/SolidChatter.d.ts.map +1 -0
- package/dist/components/core/chatter/SolidChatter.js +269 -0
- package/dist/components/core/chatter/SolidChatter.js.map +1 -0
- package/dist/components/core/chatter/SolidChatter.tsx +252 -0
- package/dist/components/core/chatter/SolidChatterDateDivider.d.ts +6 -0
- package/dist/components/core/chatter/SolidChatterDateDivider.d.ts.map +1 -0
- package/dist/components/core/chatter/SolidChatterDateDivider.js +7 -0
- package/dist/components/core/chatter/SolidChatterDateDivider.js.map +1 -0
- package/dist/components/core/chatter/SolidChatterDateDivider.tsx +16 -0
- package/dist/components/core/chatter/SolidChatterHeader.d.ts +17 -0
- package/dist/components/core/chatter/SolidChatterHeader.d.ts.map +1 -0
- package/dist/components/core/chatter/SolidChatterHeader.js +67 -0
- package/dist/components/core/chatter/SolidChatterHeader.js.map +1 -0
- package/dist/components/core/chatter/SolidChatterHeader.tsx +178 -0
- package/dist/components/core/chatter/SolidChatterMessageBox.d.ts +19 -0
- package/dist/components/core/chatter/SolidChatterMessageBox.d.ts.map +1 -0
- package/dist/components/core/chatter/SolidChatterMessageBox.js +46 -0
- package/dist/components/core/chatter/SolidChatterMessageBox.js.map +1 -0
- package/dist/components/core/chatter/SolidChatterMessageBox.tsx +165 -0
- package/dist/components/core/chatter/SolidMessageComposer.d.ts +7 -0
- package/dist/components/core/chatter/SolidMessageComposer.d.ts.map +1 -0
- package/dist/components/core/chatter/SolidMessageComposer.js +119 -0
- package/dist/components/core/chatter/SolidMessageComposer.js.map +1 -0
- package/dist/components/core/chatter/SolidMessageComposer.tsx +145 -0
- package/dist/components/core/chatter/chatter.module.css +70 -0
- package/dist/components/core/common/FilterComponent.tsx +434 -0
- package/dist/components/core/common/LoadDynamicJsxComponent.tsx +70 -0
- package/dist/components/core/common/SolidCreateButton.tsx +20 -0
- package/dist/components/core/common/SolidGlobalSearchElement.tsx +843 -0
- package/dist/components/core/common/SolidLayoutViews.tsx +87 -0
- package/dist/components/core/common/SolidListViewOptions.tsx +31 -0
- package/dist/components/core/common/SolidSaveCustomFilterForm.tsx +74 -0
- package/dist/components/core/common/SolidSearchBox.tsx +17 -0
- package/dist/components/core/common/SolidViewLayoutManager.d.ts +1 -1
- package/dist/components/core/common/SolidViewLayoutManager.ts +85 -0
- package/dist/components/core/extension/solid-core/emailTemplate/emailFormTypeChangeHandler.ts +18 -0
- package/dist/components/core/extension/solid-core/emailTemplate/emailFormTypeLoad.ts +18 -0
- package/dist/components/core/extension/solid-core/modelMetadata/list/GenerateModelCodeRowAction.tsx +59 -0
- package/dist/components/core/extension/solid-core/moduleMetadata/list/GenerateModuleCodeRowAction.tsx +38 -0
- package/dist/components/core/extension/solid-core/roleMetadata/RolePermissionsManyToManyFieldWidget.d.ts +2 -2
- package/dist/components/core/extension/solid-core/roleMetadata/RolePermissionsManyToManyFieldWidget.d.ts.map +1 -1
- package/dist/components/core/extension/solid-core/roleMetadata/RolePermissionsManyToManyFieldWidget.js.map +1 -1
- package/dist/components/core/extension/solid-core/roleMetadata/RolePermissionsManyToManyFieldWidget.tsx +123 -0
- package/dist/components/core/field/FieldListViewData.tsx +312 -0
- package/dist/components/core/filter/SolidFilterFields.tsx +128 -0
- package/dist/components/core/filter/SolidManyToOneFilterElement.tsx +60 -0
- package/dist/components/core/filter/SolidSelectionDynamicFilterElement.tsx +50 -0
- package/dist/components/core/filter/SolidSelectionStaticFilterElement.tsx +32 -0
- package/dist/components/core/filter/SolidVarInputsFilterElement.tsx +180 -0
- package/dist/components/core/filter/fields/SolidBigintField.tsx +9 -0
- package/dist/components/core/filter/fields/SolidBooleanField.tsx +50 -0
- package/dist/components/core/filter/fields/SolidComputedField.tsx +23 -0
- package/dist/components/core/filter/fields/SolidDateField.tsx +58 -0
- package/dist/components/core/filter/fields/SolidDatetimeField.tsx +51 -0
- package/dist/components/core/filter/fields/SolidDecimalField.tsx +9 -0
- package/dist/components/core/filter/fields/SolidExternalIdField.tsx +46 -0
- package/dist/components/core/filter/fields/SolidFloatField.tsx +9 -0
- package/dist/components/core/filter/fields/SolidIdField.tsx +46 -0
- package/dist/components/core/filter/fields/SolidIntField.tsx +56 -0
- package/dist/components/core/filter/fields/SolidLongTextField.tsx +9 -0
- package/dist/components/core/filter/fields/SolidMediaMultipleField.tsx +54 -0
- package/dist/components/core/filter/fields/SolidMediaSingleField.tsx +56 -0
- package/dist/components/core/filter/fields/SolidRelationField.tsx +13 -0
- package/dist/components/core/filter/fields/SolidRichTextField.tsx +9 -0
- package/dist/components/core/filter/fields/SolidSelectionDynamicField.tsx +46 -0
- package/dist/components/core/filter/fields/SolidSelectionStaticField.tsx +48 -0
- package/dist/components/core/filter/fields/SolidShortTextField.tsx +54 -0
- package/dist/components/core/filter/fields/SolidTimeField.tsx +45 -0
- package/dist/components/core/filter/fields/SolidUuidField.tsx +45 -0
- package/dist/components/core/filter/fields/relations/SolidRelationManyToOneField.tsx +80 -0
- package/dist/components/core/form/SolidFormLayouts.tsx +104 -0
- package/dist/components/core/form/SolidFormUserViewLayout.tsx +85 -0
- package/dist/components/core/form/SolidFormView.d.ts.map +1 -1
- package/dist/components/core/form/SolidFormView.js +53 -46
- package/dist/components/core/form/SolidFormView.js.map +1 -1
- package/dist/components/core/form/SolidFormView.tsx +1352 -0
- package/dist/components/core/form/fields/ISolidField.tsx +69 -0
- package/dist/components/core/form/fields/SolidBooleanField.d.ts +4 -1
- package/dist/components/core/form/fields/SolidBooleanField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidBooleanField.js +80 -29
- package/dist/components/core/form/fields/SolidBooleanField.js.map +1 -1
- package/dist/components/core/form/fields/SolidBooleanField.tsx +269 -0
- package/dist/components/core/form/fields/SolidDateField.d.ts +3 -0
- package/dist/components/core/form/fields/SolidDateField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidDateField.js +45 -25
- package/dist/components/core/form/fields/SolidDateField.js.map +1 -1
- package/dist/components/core/form/fields/SolidDateField.tsx +153 -0
- package/dist/components/core/form/fields/SolidDateTimeField.d.ts +3 -0
- package/dist/components/core/form/fields/SolidDateTimeField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidDateTimeField.js +44 -25
- package/dist/components/core/form/fields/SolidDateTimeField.js.map +1 -1
- package/dist/components/core/form/fields/SolidDateTimeField.tsx +154 -0
- package/dist/components/core/form/fields/SolidDecimalField.d.ts +3 -0
- package/dist/components/core/form/fields/SolidDecimalField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidDecimalField.js +41 -21
- package/dist/components/core/form/fields/SolidDecimalField.js.map +1 -1
- package/dist/components/core/form/fields/SolidDecimalField.tsx +155 -0
- package/dist/components/core/form/fields/SolidEmailField.d.ts +3 -0
- package/dist/components/core/form/fields/SolidEmailField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidEmailField.js +41 -21
- package/dist/components/core/form/fields/SolidEmailField.js.map +1 -1
- package/dist/components/core/form/fields/SolidEmailField.tsx +168 -0
- package/dist/components/core/form/fields/SolidIntegerField.d.ts +3 -0
- package/dist/components/core/form/fields/SolidIntegerField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidIntegerField.js +41 -21
- package/dist/components/core/form/fields/SolidIntegerField.js.map +1 -1
- package/dist/components/core/form/fields/SolidIntegerField.tsx +158 -0
- package/dist/components/core/form/fields/SolidJsonField.d.ts +4 -0
- package/dist/components/core/form/fields/SolidJsonField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidJsonField.js +51 -15
- package/dist/components/core/form/fields/SolidJsonField.js.map +1 -1
- package/dist/components/core/form/fields/SolidJsonField.tsx +173 -0
- package/dist/components/core/form/fields/SolidLongTextField.d.ts +3 -2
- package/dist/components/core/form/fields/SolidLongTextField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidLongTextField.js +33 -52
- package/dist/components/core/form/fields/SolidLongTextField.js.map +1 -1
- package/dist/components/core/form/fields/SolidLongTextField.tsx +161 -0
- package/dist/components/core/form/fields/SolidMediaMultipleField.d.ts +4 -0
- package/dist/components/core/form/fields/SolidMediaMultipleField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidMediaMultipleField.js +262 -153
- package/dist/components/core/form/fields/SolidMediaMultipleField.js.map +1 -1
- package/dist/components/core/form/fields/SolidMediaMultipleField.tsx +639 -0
- package/dist/components/core/form/fields/SolidMediaSingleField.d.ts +4 -0
- package/dist/components/core/form/fields/SolidMediaSingleField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidMediaSingleField.js +243 -149
- package/dist/components/core/form/fields/SolidMediaSingleField.js.map +1 -1
- package/dist/components/core/form/fields/SolidMediaSingleField.tsx +522 -0
- package/dist/components/core/form/fields/SolidPasswordField.d.ts +4 -0
- package/dist/components/core/form/fields/SolidPasswordField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidPasswordField.js +50 -20
- package/dist/components/core/form/fields/SolidPasswordField.js.map +1 -1
- package/dist/components/core/form/fields/SolidPasswordField.tsx +187 -0
- package/dist/components/core/form/fields/SolidRelationField.tsx +54 -0
- package/dist/components/core/form/fields/SolidRichTextField.d.ts +4 -0
- package/dist/components/core/form/fields/SolidRichTextField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidRichTextField.js +49 -20
- package/dist/components/core/form/fields/SolidRichTextField.js.map +1 -1
- package/dist/components/core/form/fields/SolidRichTextField.tsx +177 -0
- package/dist/components/core/form/fields/SolidSelectionDynamicField.d.ts +4 -0
- package/dist/components/core/form/fields/SolidSelectionDynamicField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidSelectionDynamicField.js +88 -60
- package/dist/components/core/form/fields/SolidSelectionDynamicField.js.map +1 -1
- package/dist/components/core/form/fields/SolidSelectionDynamicField.tsx +204 -0
- package/dist/components/core/form/fields/SolidSelectionStaticField.d.ts +5 -1
- package/dist/components/core/form/fields/SolidSelectionStaticField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidSelectionStaticField.js +88 -27
- package/dist/components/core/form/fields/SolidSelectionStaticField.js.map +1 -1
- package/dist/components/core/form/fields/SolidSelectionStaticField.tsx +272 -0
- package/dist/components/core/form/fields/SolidShortTextField.d.ts +4 -0
- package/dist/components/core/form/fields/SolidShortTextField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidShortTextField.js +57 -26
- package/dist/components/core/form/fields/SolidShortTextField.js.map +1 -1
- package/dist/components/core/form/fields/SolidShortTextField.tsx +208 -0
- package/dist/components/core/form/fields/SolidTimeField.d.ts +3 -0
- package/dist/components/core/form/fields/SolidTimeField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidTimeField.js +44 -22
- package/dist/components/core/form/fields/SolidTimeField.js.map +1 -1
- package/dist/components/core/form/fields/SolidTimeField.tsx +147 -0
- package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.d.ts +4 -1
- package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.d.ts.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.js +77 -19
- package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.js.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.tsx +309 -0
- package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.d.ts +5 -1
- package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.d.ts.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.js +136 -107
- package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.js.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.tsx +291 -0
- package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.d.ts +5 -1
- package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.d.ts.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.js +159 -107
- package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.js.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.tsx +311 -0
- package/dist/components/core/form/fields/relations/widgets/SolidRelationManyToManyAutocompleteWidget.d.ts +1 -1
- package/dist/components/core/form/fields/relations/widgets/SolidRelationManyToManyCheckboxWidget.d.ts +1 -1
- package/dist/components/core/form/fields/relations/widgets/helpers/InlineRelationEntityDialog.tsx +33 -0
- package/dist/components/core/form/fields/relations/widgets/helpers/useRelationEntityHandler.ts +64 -0
- package/dist/components/core/form/fields/widgets/SolidBooleanCheckboxFieldWidget.d.ts +1 -1
- package/dist/components/core/form/fields/widgets/SolidBooleanSelectFieldWidget.d.ts +1 -1
- package/dist/components/core/form/fields/widgets/SolidFormFieldViewMediaMultipleWidget.d.ts +1 -1
- package/dist/components/core/form/fields/widgets/SolidFormFieldViewMediaSingleWidget.d.ts +1 -1
- package/dist/components/core/form/fields/widgets/SolidRelationFieldAvatarFormWidget.d.ts +3 -0
- package/dist/components/core/form/fields/widgets/SolidRelationFieldAvatarFormWidget.d.ts.map +1 -0
- package/dist/components/core/form/fields/widgets/SolidRelationFieldAvatarFormWidget.js +29 -0
- package/dist/components/core/form/fields/widgets/SolidRelationFieldAvatarFormWidget.js.map +1 -0
- package/dist/components/core/form/fields/widgets/SolidRelationFieldAvatarFormWidget.tsx +46 -0
- package/dist/components/core/form/fields/widgets/SolidSelectionStaticAutocompleteFieldWidget.d.ts +1 -1
- package/dist/components/core/form/fields/widgets/SolidSelectionStaticRadioFieldWidget.d.ts +1 -1
- package/dist/components/core/form/widgets/CustomHtml.d.ts +1 -1
- package/dist/components/core/form/widgets/CustomHtml.tsx +19 -0
- package/dist/components/core/kanban/KanbanBoard.tsx +131 -0
- package/dist/components/core/kanban/KanbanCard.tsx +255 -0
- package/dist/components/core/kanban/KanbanColumn.tsx +139 -0
- package/dist/components/core/kanban/KanbanUserViewLayout.tsx +85 -0
- package/dist/components/core/kanban/SolidKanbanView.tsx +803 -0
- package/dist/components/core/kanban/SolidKanbanViewConfigure.tsx +146 -0
- package/dist/components/core/kanban/SolidKanbanViewFields.tsx +164 -0
- package/dist/components/core/kanban/SolidManyToOneFilterElement.tsx +59 -0
- package/dist/components/core/kanban/SolidSelectionDynamicFilterElement.tsx +50 -0
- package/dist/components/core/kanban/SolidSelectionStaticFilterElement.tsx +32 -0
- package/dist/components/core/kanban/SolidVarInputsFilterElement.tsx +184 -0
- package/dist/components/core/kanban/kanban-fields/SolidBigintKanbanField.tsx +9 -0
- package/dist/components/core/kanban/kanban-fields/SolidBooleanKanbanField.tsx +13 -0
- package/dist/components/core/kanban/kanban-fields/SolidComputedKanbanField.tsx +23 -0
- package/dist/components/core/kanban/kanban-fields/SolidDateKanbanField.tsx +14 -0
- package/dist/components/core/kanban/kanban-fields/SolidDatetimeKanbanField.tsx +13 -0
- package/dist/components/core/kanban/kanban-fields/SolidDecimalKanbanField.tsx +9 -0
- package/dist/components/core/kanban/kanban-fields/SolidExternalIdKanbanField.tsx +12 -0
- package/dist/components/core/kanban/kanban-fields/SolidFloatKanbanField.tsx +9 -0
- package/dist/components/core/kanban/kanban-fields/SolidIdKanbanField.tsx +14 -0
- package/dist/components/core/kanban/kanban-fields/SolidIntKanbanField.tsx +20 -0
- package/dist/components/core/kanban/kanban-fields/SolidLongTextKanbanField.tsx +9 -0
- package/dist/components/core/kanban/kanban-fields/SolidMediaMultipleKanbanField.tsx +136 -0
- package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.tsx +158 -0
- package/dist/components/core/kanban/kanban-fields/SolidRelationKanbanField.tsx +13 -0
- package/dist/components/core/kanban/kanban-fields/SolidRichTextKanbanField.tsx +9 -0
- package/dist/components/core/kanban/kanban-fields/SolidSelectionDynamicKanbanField.tsx +13 -0
- package/dist/components/core/kanban/kanban-fields/SolidSelectionStaticKanbanField.tsx +14 -0
- package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.js +6 -6
- package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.js.map +1 -1
- package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.tsx +121 -0
- package/dist/components/core/kanban/kanban-fields/SolidTimeKanbanField.tsx +12 -0
- package/dist/components/core/kanban/kanban-fields/SolidUuidKanbanField.tsx +13 -0
- package/dist/components/core/kanban/kanban-fields/relations/SolidRelationManyToOneKanbanField.tsx +16 -0
- package/dist/components/core/list/ListViewRowActionPopup.tsx +42 -0
- package/dist/components/core/list/SolidListColumnSelector.tsx +167 -0
- package/dist/components/core/list/SolidListView.js +1 -1
- package/dist/components/core/list/SolidListView.js.map +1 -1
- package/dist/components/core/list/SolidListView.tsx +961 -0
- package/dist/components/core/list/SolidListViewColumn.tsx +162 -0
- package/dist/components/core/list/SolidListViewConfigure.tsx +198 -0
- package/dist/components/core/list/SolidListingHeader.tsx +42 -0
- package/dist/components/core/list/SolidManyToOneFilterElement.tsx +59 -0
- package/dist/components/core/list/SolidSelectionDynamicFilterElement.tsx +50 -0
- package/dist/components/core/list/SolidSelectionStaticFilterElement.tsx +32 -0
- package/dist/components/core/list/SolidTableRowCell.tsx +12 -0
- package/dist/components/core/list/SolidVarInputsFilterElement.tsx +184 -0
- package/dist/components/core/list/columns/SolidBigintColumn.tsx +9 -0
- package/dist/components/core/list/columns/SolidBooleanColumn.d.ts +2 -0
- package/dist/components/core/list/columns/SolidBooleanColumn.d.ts.map +1 -1
- package/dist/components/core/list/columns/SolidBooleanColumn.js +33 -2
- package/dist/components/core/list/columns/SolidBooleanColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidBooleanColumn.tsx +89 -0
- package/dist/components/core/list/columns/SolidComputedColumn.tsx +23 -0
- package/dist/components/core/list/columns/SolidDateColumn.d.ts.map +1 -1
- package/dist/components/core/list/columns/SolidDateColumn.js +27 -3
- package/dist/components/core/list/columns/SolidDateColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidDateColumn.tsx +90 -0
- package/dist/components/core/list/columns/SolidDatetimeColumn.d.ts.map +1 -1
- package/dist/components/core/list/columns/SolidDatetimeColumn.js +27 -3
- package/dist/components/core/list/columns/SolidDatetimeColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidDatetimeColumn.tsx +79 -0
- package/dist/components/core/list/columns/SolidDecimalColumn.tsx +9 -0
- package/dist/components/core/list/columns/SolidExternalIdColumn.d.ts.map +1 -1
- package/dist/components/core/list/columns/SolidExternalIdColumn.js +27 -3
- package/dist/components/core/list/columns/SolidExternalIdColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidExternalIdColumn.tsx +80 -0
- package/dist/components/core/list/columns/SolidFloatColumn.tsx +9 -0
- package/dist/components/core/list/columns/SolidIdColumn.d.ts.map +1 -1
- package/dist/components/core/list/columns/SolidIdColumn.js +27 -3
- package/dist/components/core/list/columns/SolidIdColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidIdColumn.tsx +79 -0
- package/dist/components/core/list/columns/SolidIntColumn.d.ts.map +1 -1
- package/dist/components/core/list/columns/SolidIntColumn.js +27 -3
- package/dist/components/core/list/columns/SolidIntColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidIntColumn.tsx +87 -0
- package/dist/components/core/list/columns/SolidLongTextColumn.tsx +9 -0
- package/dist/components/core/list/columns/SolidMediaMultipleColumn.d.ts +2 -0
- package/dist/components/core/list/columns/SolidMediaMultipleColumn.d.ts.map +1 -1
- package/dist/components/core/list/columns/SolidMediaMultipleColumn.js +48 -22
- package/dist/components/core/list/columns/SolidMediaMultipleColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidMediaMultipleColumn.tsx +100 -0
- package/dist/components/core/list/columns/SolidMediaSingleColumn.d.ts +2 -0
- package/dist/components/core/list/columns/SolidMediaSingleColumn.d.ts.map +1 -1
- package/dist/components/core/list/columns/SolidMediaSingleColumn.js +41 -13
- package/dist/components/core/list/columns/SolidMediaSingleColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidMediaSingleColumn.tsx +98 -0
- package/dist/components/core/list/columns/SolidRelationColumn.d.ts.map +1 -1
- package/dist/components/core/list/columns/SolidRelationColumn.js +7 -0
- package/dist/components/core/list/columns/SolidRelationColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidRelationColumn.tsx +20 -0
- package/dist/components/core/list/columns/SolidRichTextColumn.tsx +9 -0
- package/dist/components/core/list/columns/SolidSelectionDynamicColumn.d.ts.map +1 -1
- package/dist/components/core/list/columns/SolidSelectionDynamicColumn.js +27 -3
- package/dist/components/core/list/columns/SolidSelectionDynamicColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidSelectionDynamicColumn.tsx +80 -0
- package/dist/components/core/list/columns/SolidSelectionStaticColumn.d.ts.map +1 -1
- package/dist/components/core/list/columns/SolidSelectionStaticColumn.js +27 -3
- package/dist/components/core/list/columns/SolidSelectionStaticColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidSelectionStaticColumn.tsx +81 -0
- package/dist/components/core/list/columns/SolidShortTextColumn.d.ts +2 -0
- package/dist/components/core/list/columns/SolidShortTextColumn.d.ts.map +1 -1
- package/dist/components/core/list/columns/SolidShortTextColumn.js +16 -37
- package/dist/components/core/list/columns/SolidShortTextColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidShortTextColumn.tsx +103 -0
- package/dist/components/core/list/columns/SolidTimeColumn.d.ts.map +1 -1
- package/dist/components/core/list/columns/SolidTimeColumn.js +27 -3
- package/dist/components/core/list/columns/SolidTimeColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidTimeColumn.tsx +78 -0
- package/dist/components/core/list/columns/SolidUuidColumn.d.ts.map +1 -1
- package/dist/components/core/list/columns/SolidUuidColumn.js +27 -3
- package/dist/components/core/list/columns/SolidUuidColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidUuidColumn.tsx +79 -0
- package/dist/components/core/list/columns/relations/SolidRelationManyToManyColumn.d.ts +6 -0
- package/dist/components/core/list/columns/relations/SolidRelationManyToManyColumn.d.ts.map +1 -0
- package/dist/components/core/list/columns/relations/SolidRelationManyToManyColumn.js +70 -0
- package/dist/components/core/list/columns/relations/SolidRelationManyToManyColumn.js.map +1 -0
- package/dist/components/core/list/columns/relations/SolidRelationManyToManyColumn.tsx +110 -0
- package/dist/components/core/list/columns/relations/SolidRelationManyToOneColumn.d.ts +2 -0
- package/dist/components/core/list/columns/relations/SolidRelationManyToOneColumn.d.ts.map +1 -1
- package/dist/components/core/list/columns/relations/SolidRelationManyToOneColumn.js +42 -17
- package/dist/components/core/list/columns/relations/SolidRelationManyToOneColumn.js.map +1 -1
- package/dist/components/core/list/columns/relations/SolidRelationManyToOneColumn.tsx +95 -0
- package/dist/components/core/list/columns/relations/SolidRelationOneToManyColumn.d.ts +6 -0
- package/dist/components/core/list/columns/relations/SolidRelationOneToManyColumn.d.ts.map +1 -0
- package/dist/components/core/list/columns/relations/SolidRelationOneToManyColumn.js +70 -0
- package/dist/components/core/list/columns/relations/SolidRelationOneToManyColumn.js.map +1 -0
- package/dist/components/core/list/columns/relations/SolidRelationOneToManyColumn.tsx +111 -0
- package/dist/components/core/list/widgets/SolidRelationAvatarWidget.d.ts +4 -0
- package/dist/components/core/list/widgets/SolidRelationAvatarWidget.d.ts.map +1 -0
- package/dist/components/core/list/widgets/SolidRelationAvatarWidget.js +60 -0
- package/dist/components/core/list/widgets/SolidRelationAvatarWidget.js.map +1 -0
- package/dist/components/core/list/widgets/SolidRelationAvatarWidget.tsx +89 -0
- package/dist/components/core/list/widgets/SolidShortTextAvatarWidget.d.ts +3 -0
- package/dist/components/core/list/widgets/SolidShortTextAvatarWidget.d.ts.map +1 -0
- package/dist/components/core/list/widgets/SolidShortTextAvatarWidget.js +42 -0
- package/dist/components/core/list/widgets/SolidShortTextAvatarWidget.js.map +1 -0
- package/{src/components/core/list/widgets/SolidUserNameAvatarWidget.tsx → dist/components/core/list/widgets/SolidShortTextAvatarWidget.tsx} +18 -11
- package/dist/components/core/list/widgets/SolidShortTextFieldImageRenderModeWidget.d.ts +2 -1
- package/dist/components/core/list/widgets/SolidShortTextFieldImageRenderModeWidget.d.ts.map +1 -1
- package/dist/components/core/list/widgets/SolidShortTextFieldImageRenderModeWidget.js +4 -4
- package/dist/components/core/list/widgets/SolidShortTextFieldImageRenderModeWidget.js.map +1 -1
- package/dist/components/core/list/widgets/SolidShortTextFieldImageRenderModeWidget.tsx +21 -0
- package/dist/components/core/model/CreateModel.tsx +476 -0
- package/dist/components/core/model/FieldMetaData.tsx +193 -0
- package/dist/components/core/model/FieldMetaDataForm.js +1 -1
- package/dist/components/core/model/FieldMetaDataForm.js.map +1 -1
- package/dist/components/core/model/FieldMetaDataForm.tsx +3048 -0
- package/dist/components/core/model/FieldSelector.tsx +62 -0
- package/dist/components/core/model/ModelListViewData.tsx +383 -0
- package/dist/components/core/model/ModelMetaData.tsx +840 -0
- package/dist/components/core/module/CreateModule.tsx +620 -0
- package/dist/components/core/module/ModuleListViewData.tsx +429 -0
- package/dist/components/core/users/CreateUser.d.ts.map +1 -1
- package/dist/components/core/users/CreateUser.js +16 -16
- package/dist/components/core/users/CreateUser.js.map +1 -1
- package/dist/components/core/users/CreateUser.tsx +436 -0
- package/dist/components/core/users/CreateUserRole.tsx +211 -0
- package/dist/components/core/users/UserListView.tsx +374 -0
- package/dist/components/layout/AdminLayout.tsx +62 -0
- package/dist/components/layout/AdminSidebar.tsx +65 -0
- package/dist/components/layout/AppConfig.d.ts +1 -1
- package/dist/components/layout/AppConfig.tsx +104 -0
- package/dist/components/layout/AppSidebar.tsx +225 -0
- package/dist/components/layout/ButtonLoader.tsx +7 -0
- package/dist/components/layout/CustomPagination.tsx +55 -0
- package/dist/components/layout/DashboardHeader.tsx +89 -0
- package/dist/components/layout/FilterMenu.tsx +122 -0
- package/dist/components/layout/Footer.tsx +13 -0
- package/dist/components/layout/GlobalSearch.tsx +37 -0
- package/dist/components/layout/Header.tsx +8 -0
- package/dist/components/layout/Layout.d.ts +1 -1
- package/dist/components/layout/Layout.tsx +136 -0
- package/dist/components/layout/ListingHeader.tsx +204 -0
- package/dist/components/layout/Loader.tsx +16 -0
- package/dist/components/layout/UserSidebar.tsx +53 -0
- package/dist/components/layout/context/layoutcontext.d.ts +1 -1
- package/dist/components/layout/context/layoutcontext.tsx +52 -0
- package/dist/components/layout/navbar-one.tsx +258 -0
- package/dist/components/layout/navbar-two-menu.tsx +73 -0
- package/dist/components/layout/navbar-two.tsx +37 -0
- package/dist/components/layout/user-profile-menu.tsx +120 -0
- package/dist/components/layout/user-profile.tsx +7 -0
- package/dist/components/modelsComponents/filterIcon.tsx +9 -0
- package/dist/components/tables/DemoData.tsx +318 -0
- package/dist/components/tables/DynamicTable.tsx +56 -0
- package/dist/components/tables/ListViewTable.tsx +156 -0
- package/dist/declarations.d.ts +19 -0
- package/dist/helpers/AppTitle.tsx +12 -0
- package/dist/helpers/ToastContainer.tsx +93 -0
- package/dist/helpers/authHeader.ts +20 -0
- package/dist/helpers/countries.tsx +260 -0
- package/dist/helpers/downloadMediaFile.tsx +19 -0
- package/dist/helpers/getAcceptedFileTypes.tsx +22 -0
- package/dist/helpers/getRandomColors.d.ts +4 -0
- package/dist/helpers/getRandomColors.d.ts.map +1 -0
- package/dist/helpers/getRandomColors.js +63 -0
- package/dist/helpers/getRandomColors.js.map +1 -0
- package/dist/helpers/getRandomColors.tsx +68 -0
- package/dist/helpers/helpers.ts +40 -0
- package/dist/helpers/menu.tsx +670 -0
- package/dist/helpers/permissions.ts +19 -0
- package/dist/helpers/registry.d.ts.map +1 -1
- package/dist/helpers/registry.js +77 -35
- package/dist/helpers/registry.js.map +1 -1
- package/dist/helpers/registry.ts +173 -0
- package/dist/helpers/revalidate.ts +7 -0
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/index.ts +642 -0
- package/dist/nextAuth/authProviders.tsx +221 -0
- package/dist/nextAuth/refreshAccessToken.tsx +27 -0
- package/dist/redux/api/articleApi.ts +55 -0
- package/dist/redux/api/authApi.ts +131 -0
- package/dist/redux/api/automationApi.ts +55 -0
- package/dist/redux/api/categoryApi.tsx +46 -0
- package/dist/redux/api/cityApi.tsx +56 -0
- package/dist/redux/api/cmsBannerImageApi.tsx +55 -0
- package/dist/redux/api/countryApi.tsx +56 -0
- package/dist/redux/api/fetchBaseQuery.tsx +15 -0
- package/dist/redux/api/fieldApi.ts +78 -0
- package/dist/redux/api/mediaApi.ts +55 -0
- package/dist/redux/api/mediaStorageProviderApi.ts +55 -0
- package/dist/redux/api/menuApi.tsx +55 -0
- package/dist/redux/api/menuItemsApi.tsx +56 -0
- package/dist/redux/api/modelApi.ts +77 -0
- package/dist/redux/api/moduleApi.ts +72 -0
- package/dist/redux/api/orderAttributeApi.tsx +37 -0
- package/dist/redux/api/permissionApi.ts +32 -0
- package/dist/redux/api/pincodeApi.tsx +56 -0
- package/dist/redux/api/productData.tsx +87 -0
- package/dist/redux/api/radixExtraModelAttributeApi.tsx +37 -0
- package/dist/redux/api/radixModelMetadataApi.tsx +62 -0
- package/dist/redux/api/radixModelsApi.tsx +64 -0
- package/dist/redux/api/ratingApi.ts +55 -0
- package/dist/redux/api/reviewApi.ts +55 -0
- package/dist/redux/api/roleApi.ts +58 -0
- package/dist/redux/api/solidActionApi.ts +66 -0
- package/dist/redux/api/solidChatterMessageApi.d.ts +7 -0
- package/dist/redux/api/solidChatterMessageApi.d.ts.map +1 -0
- package/dist/redux/api/solidChatterMessageApi.js +29 -0
- package/dist/redux/api/solidChatterMessageApi.js.map +1 -0
- package/dist/redux/api/solidChatterMessageApi.ts +30 -0
- package/dist/redux/api/solidEntityApi.tsx +110 -0
- package/dist/redux/api/solidMenuApi.ts +71 -0
- package/dist/redux/api/solidSettingsApi.d.ts +2 -1
- package/dist/redux/api/solidSettingsApi.d.ts.map +1 -1
- package/dist/redux/api/solidSettingsApi.js +11 -1
- package/dist/redux/api/solidSettingsApi.js.map +1 -1
- package/dist/redux/api/solidSettingsApi.tsx +55 -0
- package/dist/redux/api/solidViewApi.ts +73 -0
- package/dist/redux/api/stateApi.tsx +56 -0
- package/dist/redux/api/tagApi.ts +55 -0
- package/dist/redux/api/tagGroupApi.tsx +55 -0
- package/dist/redux/api/testApi.ts +21 -0
- package/dist/redux/api/userApi.ts +120 -0
- package/dist/redux/features/authSlice.ts +19 -0
- package/dist/redux/features/dataViewSlice.ts +26 -0
- package/dist/redux/features/navbarSlice.ts +21 -0
- package/dist/redux/features/popupSlice.ts +27 -0
- package/dist/redux/features/themeSlice.ts +17 -0
- package/dist/redux/features/userSlice.ts +28 -0
- package/dist/resources/globals.css +59 -0
- package/dist/types/index.d.ts +60 -0
- package/dist/types/layout.d.ts +94 -0
- package/dist/types/next-auth.d.ts +0 -0
- package/dist/types/next.d.ts +46 -0
- package/dist/types/solid-core.d.ts +139 -0
- package/package.json +4 -3
- package/src/components/Svg/RightArrowSvg.tsx +9 -0
- package/src/components/auth/AuthLayout.tsx +3 -3
- package/src/components/auth/SolidLogin.tsx +6 -6
- package/src/components/auth/SolidRegister.tsx +5 -5
- package/src/components/common/GeneralSettings.tsx +293 -285
- package/src/components/core/chatter/SolidChatter.tsx +252 -0
- package/src/components/core/chatter/SolidChatterDateDivider.tsx +16 -0
- package/src/components/core/chatter/SolidChatterHeader.tsx +178 -0
- package/src/components/core/chatter/SolidChatterMessageBox.tsx +165 -0
- package/src/components/core/chatter/SolidMessageComposer.tsx +145 -0
- package/src/components/core/chatter/chatter.module.css +70 -0
- package/src/components/core/extension/solid-core/roleMetadata/RolePermissionsManyToManyFieldWidget.tsx +2 -2
- package/src/components/core/form/SolidFormView.tsx +166 -136
- package/src/components/core/form/fields/SolidBooleanField.tsx +170 -48
- package/src/components/core/form/fields/SolidDateField.tsx +86 -51
- package/src/components/core/form/fields/SolidDateTimeField.tsx +89 -52
- package/src/components/core/form/fields/SolidDecimalField.tsx +84 -49
- package/src/components/core/form/fields/SolidEmailField.tsx +90 -51
- package/src/components/core/form/fields/SolidIntegerField.tsx +86 -49
- package/src/components/core/form/fields/SolidJsonField.tsx +112 -42
- package/src/components/core/form/fields/SolidLongTextField.tsx +76 -117
- package/src/components/core/form/fields/SolidMediaMultipleField.tsx +474 -258
- package/src/components/core/form/fields/SolidMediaSingleField.tsx +408 -249
- package/src/components/core/form/fields/SolidPasswordField.tsx +112 -55
- package/src/components/core/form/fields/SolidRichTextField.tsx +105 -52
- package/src/components/core/form/fields/SolidSelectionDynamicField.tsx +138 -91
- package/src/components/core/form/fields/SolidSelectionStaticField.tsx +169 -37
- package/src/components/core/form/fields/SolidShortTextField.tsx +131 -74
- package/src/components/core/form/fields/SolidTimeField.tsx +85 -53
- package/src/components/core/form/fields/relations/SolidRelationManyToManyField.tsx +193 -30
- package/src/components/core/form/fields/relations/SolidRelationManyToOneField.tsx +206 -165
- package/src/components/core/form/fields/relations/SolidRelationOneToManyField.tsx +223 -142
- package/src/components/core/form/fields/widgets/SolidRelationFieldAvatarFormWidget.tsx +46 -0
- package/src/components/core/kanban/kanban-fields/SolidShortTextKanbanField.tsx +10 -10
- package/src/components/core/list/SolidListView.tsx +1 -1
- package/src/components/core/list/columns/SolidBooleanColumn.tsx +30 -2
- package/src/components/core/list/columns/SolidDateColumn.tsx +23 -8
- package/src/components/core/list/columns/SolidDatetimeColumn.tsx +24 -8
- package/src/components/core/list/columns/SolidExternalIdColumn.tsx +23 -8
- package/src/components/core/list/columns/SolidIdColumn.tsx +22 -7
- package/src/components/core/list/columns/SolidIntColumn.tsx +22 -7
- package/src/components/core/list/columns/SolidMediaMultipleColumn.tsx +68 -45
- package/src/components/core/list/columns/SolidMediaSingleColumn.tsx +48 -26
- package/src/components/core/list/columns/SolidRelationColumn.tsx +7 -0
- package/src/components/core/list/columns/SolidSelectionDynamicColumn.tsx +22 -7
- package/src/components/core/list/columns/SolidSelectionStaticColumn.tsx +24 -9
- package/src/components/core/list/columns/SolidShortTextColumn.tsx +26 -39
- package/src/components/core/list/columns/SolidTimeColumn.tsx +22 -7
- package/src/components/core/list/columns/SolidUuidColumn.tsx +22 -7
- package/src/components/core/list/columns/relations/SolidRelationManyToManyColumn.tsx +110 -0
- package/src/components/core/list/columns/relations/SolidRelationManyToOneColumn.tsx +43 -19
- package/src/components/core/list/columns/relations/SolidRelationOneToManyColumn.tsx +111 -0
- package/src/components/core/list/widgets/SolidRelationAvatarWidget.tsx +89 -0
- package/src/components/core/list/widgets/SolidShortTextAvatarWidget.tsx +59 -0
- package/src/components/core/list/widgets/SolidShortTextFieldImageRenderModeWidget.tsx +5 -3
- package/src/components/core/model/FieldMetaDataForm.tsx +1 -1
- package/src/components/core/users/CreateUser.tsx +173 -171
- package/src/helpers/getRandomColors.tsx +68 -0
- package/src/helpers/registry.ts +90 -38
- package/src/index.ts +1 -0
- package/src/redux/api/solidChatterMessageApi.ts +30 -0
- package/src/redux/api/solidSettingsApi.tsx +8 -0
- package/src/resources/globals.css +59 -0
- package/src/types/solid-core.d.ts +24 -16
- package/src/components/core/form/fields/relations/widgets/SolidRelationManyToManyAutocompleteWidget.tsx +0 -74
- package/src/components/core/form/fields/relations/widgets/SolidRelationManyToManyCheckboxWidget.tsx +0 -103
- package/src/components/core/form/fields/widgets/SolidBooleanCheckboxFieldWidget.tsx +0 -79
- package/src/components/core/form/fields/widgets/SolidBooleanSelectFieldWidget.tsx +0 -68
- package/src/components/core/form/fields/widgets/SolidFormFieldJsonViewModeWidget.tsx +0 -23
- package/src/components/core/form/fields/widgets/SolidFormFieldMediaViewModeWidget.tsx +0 -13
- package/src/components/core/form/fields/widgets/SolidFormFieldPasswordViewModeWidget.tsx +0 -23
- package/src/components/core/form/fields/widgets/SolidFormFieldRelationViewModeWidget.tsx +0 -32
- package/src/components/core/form/fields/widgets/SolidFormFieldRichTextViewModeWidget.tsx +0 -17
- package/src/components/core/form/fields/widgets/SolidFormFieldViewMediaMultipleWidget.tsx +0 -174
- package/src/components/core/form/fields/widgets/SolidFormFieldViewMediaSingleWidget.tsx +0 -115
- package/src/components/core/form/fields/widgets/SolidFormFieldViewModeWidget.tsx +0 -11
- package/src/components/core/form/fields/widgets/SolidSelectionStaticAutocompleteFieldWidget.tsx +0 -72
- package/src/components/core/form/fields/widgets/SolidSelectionStaticRadioFieldWidget.tsx +0 -72
- package/src/components/core/list/widgets/SolidShortTextFieldTextRenderModeWidget.tsx +0 -11
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
"use client"
|
|
2
|
+
import { useChangePasswordMutation } from '@/redux/api/authApi';
|
|
3
|
+
import { useFormik } from 'formik';
|
|
4
|
+
import { signOut, useSession } from 'next-auth/react';
|
|
5
|
+
import { Button } from 'primereact/button';
|
|
6
|
+
import { InputText } from 'primereact/inputtext';
|
|
7
|
+
import { Message } from 'primereact/message';
|
|
8
|
+
import { Password } from 'primereact/password';
|
|
9
|
+
import { Toast } from 'primereact/toast';
|
|
10
|
+
import { classNames } from 'primereact/utils';
|
|
11
|
+
import { useRef } from 'react';
|
|
12
|
+
import * as Yup from 'yup';
|
|
13
|
+
const SolidChangeForcePassword = () => {
|
|
14
|
+
const toast = useRef<Toast>(null);
|
|
15
|
+
const [changePassword] = useChangePasswordMutation();
|
|
16
|
+
|
|
17
|
+
const session: any = useSession();
|
|
18
|
+
const showToast = (severity: "success" | "error", summary: string, detail: string) => {
|
|
19
|
+
toast.current?.show({
|
|
20
|
+
severity,
|
|
21
|
+
summary,
|
|
22
|
+
detail,
|
|
23
|
+
life: 3000,
|
|
24
|
+
});
|
|
25
|
+
};
|
|
26
|
+
const validationSchema = Yup.object({
|
|
27
|
+
email: Yup.string().email('Invalid email format').required('Email is required'),
|
|
28
|
+
currentPassword: Yup.string().min(6, 'Password must be at least 6 characters').required('Current password is required'),
|
|
29
|
+
newPassword: Yup.string().min(6, 'Password must be at least 6 characters').required('New password is required'),
|
|
30
|
+
confirmPassword: Yup.string().oneOf([Yup.ref('newPassword')], 'Passwords must match').required('Confirm password is required'),
|
|
31
|
+
id: Yup.number().required('User ID is required'),
|
|
32
|
+
});
|
|
33
|
+
const formik = useFormik({
|
|
34
|
+
initialValues: {
|
|
35
|
+
email: session?.data?.user?.user?.email,
|
|
36
|
+
currentPassword: "",
|
|
37
|
+
newPassword: "",
|
|
38
|
+
confirmPassword: "",
|
|
39
|
+
id: session?.data?.user?.user?.id,
|
|
40
|
+
},
|
|
41
|
+
validationSchema,
|
|
42
|
+
onSubmit: async (values, { setErrors }) => {
|
|
43
|
+
try {
|
|
44
|
+
const payload = {
|
|
45
|
+
id: values.id,
|
|
46
|
+
email: session?.data?.user?.user?.email,
|
|
47
|
+
currentPassword: values.currentPassword,
|
|
48
|
+
newPassword: values.newPassword,
|
|
49
|
+
};
|
|
50
|
+
console.log("Payload:", payload);
|
|
51
|
+
|
|
52
|
+
// Call the mutation and handle the response
|
|
53
|
+
const response = await changePassword(payload).unwrap(); // Await the API call and unwrap to handle errors.
|
|
54
|
+
if (response?.error) {
|
|
55
|
+
showToast("error", "Error", response.error)
|
|
56
|
+
setErrors({
|
|
57
|
+
currentPassword: "Incorrect Current Password",
|
|
58
|
+
newPassword: "Passwords must match",
|
|
59
|
+
confirmPassword: "Passwords must match",
|
|
60
|
+
})
|
|
61
|
+
} else {
|
|
62
|
+
showToast("success", "Force Password Change Success", "Password Change Successfully");
|
|
63
|
+
signOut({ callbackUrl: "/auth/login" })
|
|
64
|
+
}
|
|
65
|
+
} catch (err: any) {
|
|
66
|
+
showToast("error", "Login Failed", err?.data?.message);
|
|
67
|
+
// setErrors({
|
|
68
|
+
// currentPassword: "Incorrect Current Password",
|
|
69
|
+
// })
|
|
70
|
+
}
|
|
71
|
+
},
|
|
72
|
+
});
|
|
73
|
+
const isFormFieldValid = (formik: any, fieldName: string) =>
|
|
74
|
+
formik.touched[fieldName] && formik.errors[fieldName];
|
|
75
|
+
|
|
76
|
+
return (
|
|
77
|
+
<>
|
|
78
|
+
<Toast ref={toast} />
|
|
79
|
+
|
|
80
|
+
<form onSubmit={formik.handleSubmit} className='d-flex flex-column gap-3 auth-form'>
|
|
81
|
+
<div className="flex flex-column gap-2 mt-2" style={{}}>
|
|
82
|
+
<label htmlFor="currentPassword" className="solid-auth-input-label">Current Password</label>
|
|
83
|
+
<Password
|
|
84
|
+
id="currentPassword"
|
|
85
|
+
name="currentPassword"
|
|
86
|
+
value={formik.values.currentPassword}
|
|
87
|
+
onChange={formik.handleChange}
|
|
88
|
+
onBlur={formik.handleBlur}
|
|
89
|
+
toggleMask
|
|
90
|
+
invalid={!!formik.errors.currentPassword}
|
|
91
|
+
inputClassName="w-full"
|
|
92
|
+
feedback={false}
|
|
93
|
+
/>
|
|
94
|
+
{isFormFieldValid(formik, "currentPassword") && <Message
|
|
95
|
+
className="text-red-500 text-sm"
|
|
96
|
+
severity="error"
|
|
97
|
+
text={formik?.errors?.currentPassword?.toString()}
|
|
98
|
+
/>}
|
|
99
|
+
</div>
|
|
100
|
+
<div className="flex flex-column gap-2 mt-4" style={{}}>
|
|
101
|
+
<label htmlFor="password" className="solid-auth-input-label">New Password</label>
|
|
102
|
+
<Password
|
|
103
|
+
id="newPassword"
|
|
104
|
+
name="newPassword"
|
|
105
|
+
value={formik.values.newPassword}
|
|
106
|
+
onChange={formik.handleChange}
|
|
107
|
+
onBlur={formik.handleBlur}
|
|
108
|
+
toggleMask
|
|
109
|
+
invalid={!!formik.errors.newPassword}
|
|
110
|
+
inputClassName="w-full"
|
|
111
|
+
feedback={false}
|
|
112
|
+
/>
|
|
113
|
+
{isFormFieldValid(formik, "newPassword") && <Message
|
|
114
|
+
className="text-red-500 text-sm"
|
|
115
|
+
severity="error"
|
|
116
|
+
text={formik?.errors?.newPassword?.toString()}
|
|
117
|
+
/>}
|
|
118
|
+
</div>
|
|
119
|
+
<div className="flex flex-column gap-2 mt-4" style={{}}>
|
|
120
|
+
<label htmlFor="password" className="solid-auth-input-label">Confirm Password</label>
|
|
121
|
+
<Password
|
|
122
|
+
id="confirmPassword"
|
|
123
|
+
name="confirmPassword"
|
|
124
|
+
value={formik.values.confirmPassword}
|
|
125
|
+
onChange={formik.handleChange}
|
|
126
|
+
onBlur={formik.handleBlur}
|
|
127
|
+
toggleMask
|
|
128
|
+
invalid={!!formik.errors.confirmPassword}
|
|
129
|
+
inputClassName="w-full"
|
|
130
|
+
feedback={false}
|
|
131
|
+
/>
|
|
132
|
+
{isFormFieldValid(formik, "confirmPassword") && <Message
|
|
133
|
+
className="text-red-500 text-sm"
|
|
134
|
+
severity="error"
|
|
135
|
+
text={formik?.errors?.confirmPassword?.toString()}
|
|
136
|
+
/>}
|
|
137
|
+
</div>
|
|
138
|
+
<div className="mt-4">
|
|
139
|
+
<Button className="w-full font-light auth-submit-button" label="Change Password" disabled={formik.isSubmitting} loading={formik.isSubmitting} />
|
|
140
|
+
</div>
|
|
141
|
+
</form>
|
|
142
|
+
</>
|
|
143
|
+
)
|
|
144
|
+
}
|
|
145
|
+
export default SolidChangeForcePassword
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { useInitiateChangePasswordMutation } from "@/redux/api/authApi";
|
|
4
|
+
import { useFormik } from "formik";
|
|
5
|
+
import Link from "next/link";
|
|
6
|
+
import { useRouter } from "next/navigation";
|
|
7
|
+
import { Button } from "primereact/button";
|
|
8
|
+
import { InputText } from "primereact/inputtext";
|
|
9
|
+
import { Message } from "primereact/message";
|
|
10
|
+
import { Toast } from "primereact/toast";
|
|
11
|
+
import { useContext, useEffect, useRef } from "react";
|
|
12
|
+
import * as Yup from "yup";
|
|
13
|
+
import { LayoutContext } from "../layout/context/layoutcontext";
|
|
14
|
+
import { useLazyGetAuthSettingsQuery } from "@/redux/api/solidSettingsApi";
|
|
15
|
+
import { AppTitle } from "@/helpers/AppTitle";
|
|
16
|
+
import Image from "next/image";
|
|
17
|
+
import SolidLogo from '../../resources/images/SS-Logo.png'
|
|
18
|
+
|
|
19
|
+
const SolidForgotPassword = () => {
|
|
20
|
+
const [trigger, { data: solidSettingsData }] = useLazyGetAuthSettingsQuery()
|
|
21
|
+
useEffect(() => {
|
|
22
|
+
trigger("") // Fetch settings on mount
|
|
23
|
+
}, [trigger])
|
|
24
|
+
const toast = useRef<Toast>(null);
|
|
25
|
+
const router = useRouter();
|
|
26
|
+
const showToast = (severity: "success" | "error", summary: string, detail: string) => {
|
|
27
|
+
toast.current?.show({
|
|
28
|
+
severity,
|
|
29
|
+
summary,
|
|
30
|
+
detail,
|
|
31
|
+
life: 3000,
|
|
32
|
+
});
|
|
33
|
+
};
|
|
34
|
+
const [initiateChangePassword] = useInitiateChangePasswordMutation();
|
|
35
|
+
const validationSchema = Yup.object({
|
|
36
|
+
email: Yup.string()
|
|
37
|
+
.email('Invalid email format')
|
|
38
|
+
.required('Email is required'),
|
|
39
|
+
});
|
|
40
|
+
function maskEmail(email: string) {
|
|
41
|
+
const [localPart, domain] = email.split('@');
|
|
42
|
+
const maskedLocal = localPart.slice(0, 3) + '*'.repeat(localPart.length - 3);
|
|
43
|
+
const maskedDomain = domain.slice(-8).padStart(domain.length, '*');
|
|
44
|
+
return `${maskedLocal}@${maskedDomain}`;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
const formik = useFormik({
|
|
48
|
+
initialValues: {
|
|
49
|
+
email: "",
|
|
50
|
+
},
|
|
51
|
+
validationSchema,
|
|
52
|
+
onSubmit: async (values) => {
|
|
53
|
+
try {
|
|
54
|
+
const payload = {
|
|
55
|
+
email: values.email,
|
|
56
|
+
};
|
|
57
|
+
const response = await initiateChangePassword(payload).unwrap();
|
|
58
|
+
if (response?.statusCode === 200) {
|
|
59
|
+
const email = response?.data?.data?.user?.email;
|
|
60
|
+
const maskedEmail = maskEmail(email);
|
|
61
|
+
router.push(`/auth/initiate-forgot-password-thank-you?email=${maskedEmail}`)
|
|
62
|
+
} else (
|
|
63
|
+
showToast("error", "Login Error", response.error)
|
|
64
|
+
)
|
|
65
|
+
} catch (err: any) {
|
|
66
|
+
showToast("error", "Login Error", err?.data ? err?.data?.message : "Something Went Wrong");
|
|
67
|
+
}
|
|
68
|
+
},
|
|
69
|
+
});
|
|
70
|
+
|
|
71
|
+
const isFormFieldValid = (formik: any, fieldName: string) =>
|
|
72
|
+
formik.touched[fieldName] && formik.errors[fieldName];
|
|
73
|
+
|
|
74
|
+
return (
|
|
75
|
+
<>
|
|
76
|
+
<Toast ref={toast} />
|
|
77
|
+
<div className={`auth-container ${solidSettingsData?.data?.authPagesLayout === 'center' ? 'center' : 'side'}`}>
|
|
78
|
+
{solidSettingsData?.data?.authPagesLayout === 'center' &&
|
|
79
|
+
<div className="flex justify-content-center">
|
|
80
|
+
<div className="solid-logo flex align-items-center gap-3">
|
|
81
|
+
<Image
|
|
82
|
+
alt="solid logo"
|
|
83
|
+
src={SolidLogo}
|
|
84
|
+
className="relative"
|
|
85
|
+
fill
|
|
86
|
+
/>
|
|
87
|
+
<AppTitle title={solidSettingsData} />
|
|
88
|
+
</div>
|
|
89
|
+
</div>
|
|
90
|
+
}
|
|
91
|
+
<h2 className={`solid-auth-title ${solidSettingsData?.data?.authPagesLayout === 'center' ? 'text-center' : 'text-left'}`}>Forgot Password</h2>
|
|
92
|
+
{/* <p className="solid-auth-subtitle text-sm">By continuing, you agree to the <Link href={'#'}>Terms of Service</Link> and acknowledge you’ve read our <Link href={'#'}>Privacy Policy.</Link> </p> */}
|
|
93
|
+
<form onSubmit={formik.handleSubmit}>
|
|
94
|
+
<div className="flex flex-column gap-2">
|
|
95
|
+
<label htmlFor="email" className="solid-auth-input-label">Username or Email</label>
|
|
96
|
+
<InputText
|
|
97
|
+
id="email"
|
|
98
|
+
name="email"
|
|
99
|
+
placeholder="Email ID"
|
|
100
|
+
value={formik.values.email}
|
|
101
|
+
onChange={formik.handleChange}
|
|
102
|
+
onBlur={formik.handleBlur}
|
|
103
|
+
/>
|
|
104
|
+
{isFormFieldValid(formik, "email") && <Message
|
|
105
|
+
className="text-red-500 text-sm"
|
|
106
|
+
severity="error"
|
|
107
|
+
text={formik?.errors?.email?.toString()}
|
|
108
|
+
/>}
|
|
109
|
+
</div>
|
|
110
|
+
<div className="mt-4">
|
|
111
|
+
<Button className="w-full font-light auth-submit-button" label="Send OTP" disabled={formik.isSubmitting} loading={formik.isSubmitting} />
|
|
112
|
+
<Button type="button" label="Back" className="w-full auth-back-button text-center mt-1" link onClick={() => (window.location.href = '/auth/login')} />
|
|
113
|
+
</div>
|
|
114
|
+
</form>
|
|
115
|
+
</div>
|
|
116
|
+
{/* <div className="text-center mt-5">
|
|
117
|
+
<div className="text-sm text-400 secondary-dark-color">
|
|
118
|
+
{'<'} Back to <Link className="font-bold" href="/auth/login">Sign In</Link>
|
|
119
|
+
</div>
|
|
120
|
+
</div> */}
|
|
121
|
+
</>
|
|
122
|
+
);
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
export default SolidForgotPassword;
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { AppTitle } from "@/helpers/AppTitle";
|
|
4
|
+
import { useConfirmOtpLoginMutation } from "@/redux/api/authApi";
|
|
5
|
+
import { useLazyGetAuthSettingsQuery } from "@/redux/api/solidSettingsApi";
|
|
6
|
+
import { Form, Formik } from "formik";
|
|
7
|
+
import Image from "next/image";
|
|
8
|
+
import Link from "next/link";
|
|
9
|
+
import { useRouter, useSearchParams } from "next/navigation";
|
|
10
|
+
import { Button } from "primereact/button";
|
|
11
|
+
import { InputOtp } from "primereact/inputotp";
|
|
12
|
+
import { Message } from "primereact/message";
|
|
13
|
+
import { Toast } from "primereact/toast";
|
|
14
|
+
import { useEffect, useRef } from "react";
|
|
15
|
+
import * as Yup from "yup";
|
|
16
|
+
import SolidLogo from '../../resources/images/SS-Logo.png'
|
|
17
|
+
import { signIn } from "next-auth/react";
|
|
18
|
+
|
|
19
|
+
const SolidInitialLoginOtp = () => {
|
|
20
|
+
const searchParams = useSearchParams();
|
|
21
|
+
const tempEmail = searchParams.get('email');
|
|
22
|
+
const email = tempEmail ? decodeURIComponent(tempEmail) : '';
|
|
23
|
+
const [trigger, { data: solidSettingsData }] = useLazyGetAuthSettingsQuery();
|
|
24
|
+
useEffect(() => {
|
|
25
|
+
trigger("")
|
|
26
|
+
}, [trigger])
|
|
27
|
+
const [initiateOtpLogin] = useConfirmOtpLoginMutation();
|
|
28
|
+
|
|
29
|
+
const toast = useRef<Toast>(null);
|
|
30
|
+
const router = useRouter();
|
|
31
|
+
|
|
32
|
+
const validationSchema = Yup.object({
|
|
33
|
+
otp: Yup.string()
|
|
34
|
+
.matches(/^\d{6}$/, "OTP must be a 6-digit number")
|
|
35
|
+
.required("OTP is required"),
|
|
36
|
+
});
|
|
37
|
+
|
|
38
|
+
const showToast = (severity: "success" | "error", summary: string, detail: string) => {
|
|
39
|
+
toast.current?.show({
|
|
40
|
+
severity,
|
|
41
|
+
summary,
|
|
42
|
+
detail,
|
|
43
|
+
life: 3000,
|
|
44
|
+
});
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
const isFormFieldValid = (formik: any, fieldName: string) =>
|
|
48
|
+
formik.touched[fieldName] && formik.errors[fieldName];
|
|
49
|
+
|
|
50
|
+
return (
|
|
51
|
+
<>
|
|
52
|
+
<Toast ref={toast} />
|
|
53
|
+
<div className={`auth-container ${solidSettingsData?.data?.authPagesLayout === 'center' ? 'center' : 'side'}`} style={{ minWidth: 480 }}>
|
|
54
|
+
{solidSettingsData?.data?.authPagesLayout === 'center' &&
|
|
55
|
+
<div className="flex justify-content-center">
|
|
56
|
+
<div className="solid-logo flex align-items-center gap-3">
|
|
57
|
+
<Image
|
|
58
|
+
alt="solid logo"
|
|
59
|
+
src={SolidLogo}
|
|
60
|
+
className="relative"
|
|
61
|
+
fill
|
|
62
|
+
/>
|
|
63
|
+
<AppTitle title={solidSettingsData} />
|
|
64
|
+
</div>
|
|
65
|
+
</div>
|
|
66
|
+
}
|
|
67
|
+
<h2 className={`solid-auth-title ${solidSettingsData?.data?.authPagesLayout === 'center' ? 'text-center' : 'text-left'}`}>OTP Verification</h2>
|
|
68
|
+
<p className="solid-auth-subtitle text-sm">
|
|
69
|
+
Please enter the OTP sent to your email to complete verification
|
|
70
|
+
</p>
|
|
71
|
+
<>
|
|
72
|
+
<Formik
|
|
73
|
+
initialValues={{
|
|
74
|
+
otp: "",
|
|
75
|
+
}}
|
|
76
|
+
validationSchema={validationSchema}
|
|
77
|
+
onSubmit={async (values, { setSubmitting, setErrors }) => {
|
|
78
|
+
try {
|
|
79
|
+
const payload = {
|
|
80
|
+
type: "email",
|
|
81
|
+
identifier: email,
|
|
82
|
+
otp: values.otp
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
const response = await initiateOtpLogin(payload).unwrap(); // Call mutation trigger
|
|
86
|
+
|
|
87
|
+
if (response?.statusCode === 200) {
|
|
88
|
+
const otpResponse = await signIn("credentials", {
|
|
89
|
+
redirect: false,
|
|
90
|
+
accessToken: response?.data?.accessToken,
|
|
91
|
+
email: response?.data?.user?.email,
|
|
92
|
+
});
|
|
93
|
+
|
|
94
|
+
if (otpResponse?.error) {
|
|
95
|
+
showToast("error", "Login Error", otpResponse.error);
|
|
96
|
+
} else {
|
|
97
|
+
showToast("success", "Login Success", "Redirecting to dashboard...");
|
|
98
|
+
router.push(`${process.env.NEXT_PUBLIC_LOGIN_REDIRECT_URL}`);
|
|
99
|
+
}
|
|
100
|
+
} else {
|
|
101
|
+
showToast("error", "Invalid OTP", response.error);
|
|
102
|
+
setErrors({
|
|
103
|
+
otp: "Invalid OTP",
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
} catch (err: any) {
|
|
107
|
+
showToast("error", "Login Error", err?.data ? err?.data?.message : "Something Went Wrong");
|
|
108
|
+
} finally {
|
|
109
|
+
setSubmitting(false);
|
|
110
|
+
}
|
|
111
|
+
}}
|
|
112
|
+
>
|
|
113
|
+
{(formik) => (
|
|
114
|
+
<Form>
|
|
115
|
+
<div className="flex flex-column gap-2">
|
|
116
|
+
<label htmlFor="otp" className="solid-auth-input-label">Enter OTP</label>
|
|
117
|
+
<InputOtp
|
|
118
|
+
value={formik.values.otp}
|
|
119
|
+
onChange={(e) => formik.setFieldValue("otp", e.value)}
|
|
120
|
+
length={6}
|
|
121
|
+
style={{ width: '100%' }}
|
|
122
|
+
invalid={!!formik.errors.otp}
|
|
123
|
+
/>
|
|
124
|
+
{isFormFieldValid(formik, "otp") && (
|
|
125
|
+
<Message className="text-red-500 text-sm" severity="error" text={formik.errors.otp?.toString()} />
|
|
126
|
+
)}
|
|
127
|
+
<div className="flex align-items-center justify-content-between">
|
|
128
|
+
<Button type="button" icon='pi pi-refresh' iconPos="left" link label="Resend Code" className="px-0 text-sm font-normal" />
|
|
129
|
+
<p className="m-0 text-sm text-color">
|
|
130
|
+
Time left: 00:28
|
|
131
|
+
</p>
|
|
132
|
+
</div>
|
|
133
|
+
</div>
|
|
134
|
+
<div className="mt-4">
|
|
135
|
+
<Button type="submit" className="w-full font-light auth-submit-button" label="Verify" disabled={formik.isSubmitting} loading={formik.isSubmitting} />
|
|
136
|
+
<Button type="button" label="Back" className="w-full auth-back-button text-center mt-1" link onClick={() => (window.location.href = '/auth/login')} />
|
|
137
|
+
</div>
|
|
138
|
+
</Form>
|
|
139
|
+
)}
|
|
140
|
+
</Formik>
|
|
141
|
+
</>
|
|
142
|
+
</div>
|
|
143
|
+
{/* <div className="text-center mt-5">
|
|
144
|
+
<div className="text-sm text-400 secondary-dark-color">
|
|
145
|
+
{'<'} Back to <Link className="font-bold" href="/auth/login">Back</Link>
|
|
146
|
+
</div>
|
|
147
|
+
</div> */}
|
|
148
|
+
</>
|
|
149
|
+
);
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
export default SolidInitialLoginOtp;
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { AppTitle } from "@/helpers/AppTitle";
|
|
4
|
+
import { useConfirmOtpRegisterMutation } from "@/redux/api/authApi";
|
|
5
|
+
import { useLazyGetAuthSettingsQuery } from "@/redux/api/solidSettingsApi";
|
|
6
|
+
import { Form, Formik } from "formik";
|
|
7
|
+
import Image from "next/image";
|
|
8
|
+
import Link from "next/link";
|
|
9
|
+
import { useRouter, useSearchParams } from "next/navigation";
|
|
10
|
+
import { Button } from "primereact/button";
|
|
11
|
+
import { InputOtp } from "primereact/inputotp";
|
|
12
|
+
import { Message } from "primereact/message";
|
|
13
|
+
import { Toast } from "primereact/toast";
|
|
14
|
+
import { useEffect, useRef } from "react";
|
|
15
|
+
import * as Yup from "yup";
|
|
16
|
+
import SolidLogo from '../../resources/images/SS-Logo.png'
|
|
17
|
+
|
|
18
|
+
const SolidInitiateRegisterOtp = () => {
|
|
19
|
+
const searchParams = useSearchParams();
|
|
20
|
+
const tempEmail = searchParams.get('email');
|
|
21
|
+
const email = tempEmail ? decodeURIComponent(tempEmail) : '';
|
|
22
|
+
const [trigger, { data: solidSettingsData }] = useLazyGetAuthSettingsQuery();
|
|
23
|
+
useEffect(() => {
|
|
24
|
+
trigger("")
|
|
25
|
+
}, [trigger])
|
|
26
|
+
const [initiateOtpRegister] = useConfirmOtpRegisterMutation();
|
|
27
|
+
|
|
28
|
+
const toast = useRef<Toast>(null);
|
|
29
|
+
const router = useRouter();
|
|
30
|
+
|
|
31
|
+
const validationSchema = Yup.object({
|
|
32
|
+
otp: Yup.string()
|
|
33
|
+
.matches(/^\d{6}$/, "OTP must be a 6-digit number")
|
|
34
|
+
.required("OTP is required"),
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
const showToast = (severity: "success" | "error", summary: string, detail: string) => {
|
|
38
|
+
toast.current?.show({
|
|
39
|
+
severity,
|
|
40
|
+
summary,
|
|
41
|
+
detail,
|
|
42
|
+
life: 3000,
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
|
|
46
|
+
const isFormFieldValid = (formik: any, fieldName: string) =>
|
|
47
|
+
formik.touched[fieldName] && formik.errors[fieldName];
|
|
48
|
+
|
|
49
|
+
return (
|
|
50
|
+
<>
|
|
51
|
+
<Toast ref={toast} />
|
|
52
|
+
<div className={`auth-container ${solidSettingsData?.data?.authPagesLayout === 'center' ? 'center' : 'side'}`} style={{ minWidth: 480 }}>
|
|
53
|
+
{solidSettingsData?.data?.authPagesLayout === 'center' &&
|
|
54
|
+
<div className="flex justify-content-center">
|
|
55
|
+
<div className="solid-logo flex align-items-center gap-3">
|
|
56
|
+
<Image
|
|
57
|
+
alt="solid logo"
|
|
58
|
+
src={SolidLogo}
|
|
59
|
+
className="relative"
|
|
60
|
+
fill
|
|
61
|
+
/>
|
|
62
|
+
<AppTitle title={solidSettingsData} />
|
|
63
|
+
</div>
|
|
64
|
+
</div>
|
|
65
|
+
}
|
|
66
|
+
<h2 className={`solid-auth-title ${solidSettingsData?.data?.authPagesLayout === 'center' ? 'text-center' : 'text-left'}`}>OTP Verification</h2>
|
|
67
|
+
<p className="solid-auth-subtitle text-sm">
|
|
68
|
+
Please enter the OTP sent to your email to complete verification
|
|
69
|
+
</p>
|
|
70
|
+
<>
|
|
71
|
+
<Formik
|
|
72
|
+
initialValues={{
|
|
73
|
+
otp: "",
|
|
74
|
+
}}
|
|
75
|
+
validationSchema={validationSchema}
|
|
76
|
+
onSubmit={async (values, { setSubmitting, setErrors }) => {
|
|
77
|
+
try {
|
|
78
|
+
const payload = {
|
|
79
|
+
type: "email",
|
|
80
|
+
identifier: email,
|
|
81
|
+
otp: values.otp
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
const response = await initiateOtpRegister(payload).unwrap(); // Call mutation trigger
|
|
85
|
+
|
|
86
|
+
if (response?.statusCode === 200) {
|
|
87
|
+
showToast("success", "Login Successfully", "Login");
|
|
88
|
+
router.push(`/auth/login`);
|
|
89
|
+
} else {
|
|
90
|
+
showToast("error", "Invalid OTP", response.error);
|
|
91
|
+
setErrors({
|
|
92
|
+
otp: "Invalid OTP",
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
} catch (err: any) {
|
|
96
|
+
showToast("error", "Login Error", err?.data ? err?.data?.message : "Something Went Wrong");
|
|
97
|
+
} finally {
|
|
98
|
+
setSubmitting(false);
|
|
99
|
+
}
|
|
100
|
+
}}
|
|
101
|
+
>
|
|
102
|
+
{(formik) => (
|
|
103
|
+
<Form>
|
|
104
|
+
<div className="flex flex-column gap-2">
|
|
105
|
+
<label htmlFor="otp" className="solid-auth-input-label">Enter OTP</label>
|
|
106
|
+
<InputOtp
|
|
107
|
+
value={formik.values.otp}
|
|
108
|
+
onChange={(e) => formik.setFieldValue("otp", e.value)}
|
|
109
|
+
length={6}
|
|
110
|
+
style={{ width: '100%' }}
|
|
111
|
+
invalid={!!formik.errors.otp}
|
|
112
|
+
/>
|
|
113
|
+
{isFormFieldValid(formik, "otp") && (
|
|
114
|
+
<Message className="text-red-500 text-sm" severity="error" text={formik.errors.otp?.toString()} />
|
|
115
|
+
)}
|
|
116
|
+
<div className="flex align-items-center justify-content-between">
|
|
117
|
+
<Button type="button" icon='pi pi-refresh' iconPos="left" link label="Resend Code" className="px-0 text-sm font-normal" />
|
|
118
|
+
<p className="m-0 text-sm text-color">
|
|
119
|
+
Time left: 00:28
|
|
120
|
+
</p>
|
|
121
|
+
</div>
|
|
122
|
+
</div>
|
|
123
|
+
<div className="mt-4">
|
|
124
|
+
<Button type="submit" className="w-full font-light auth-submit-button" label="Verify" disabled={formik.isSubmitting} loading={formik.isSubmitting} />
|
|
125
|
+
<Button type="button" label="Back" className="w-full auth-back-button text-center mt-1" link onClick={() => (window.location.href = '/auth/login')} />
|
|
126
|
+
</div>
|
|
127
|
+
</Form>
|
|
128
|
+
)}
|
|
129
|
+
</Formik>
|
|
130
|
+
</>
|
|
131
|
+
</div>
|
|
132
|
+
{/* <div className="text-center mt-5">
|
|
133
|
+
<div className="text-sm text-400 secondary-dark-color">
|
|
134
|
+
{'<'} Back to <Link className="font-bold" href="/auth/login">Sign In</Link>
|
|
135
|
+
</div>
|
|
136
|
+
</div> */}
|
|
137
|
+
</>
|
|
138
|
+
);
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
export default SolidInitiateRegisterOtp;
|
|
@@ -182,14 +182,14 @@ var SolidLogin = function () {
|
|
|
182
182
|
} }));
|
|
183
183
|
};
|
|
184
184
|
var AuthTabs = function (_a) {
|
|
185
|
-
var iamPasswordRegistrationEnabled = _a.iamPasswordRegistrationEnabled,
|
|
186
|
-
if (iamPasswordRegistrationEnabled &&
|
|
185
|
+
var iamPasswordRegistrationEnabled = _a.iamPasswordRegistrationEnabled, passwordlessRegistration = _a.passwordlessRegistration;
|
|
186
|
+
if (iamPasswordRegistrationEnabled && passwordlessRegistration) {
|
|
187
187
|
return (_jsxs(TabView, { className: "solid-auth-tabview", children: [_jsx(TabPanel, { header: "With Password", children: _jsx(PasswordLogin, {}) }), _jsx(TabPanel, { header: "Without Password", children: _jsx(PasswordLessLogin, {}) })] }));
|
|
188
188
|
}
|
|
189
189
|
else if (iamPasswordRegistrationEnabled) {
|
|
190
190
|
return _jsx(PasswordLogin, {});
|
|
191
191
|
}
|
|
192
|
-
else if (
|
|
192
|
+
else if (passwordlessRegistration) {
|
|
193
193
|
return _jsx(PasswordLessLogin, {});
|
|
194
194
|
}
|
|
195
195
|
else {
|
|
@@ -197,8 +197,8 @@ var SolidLogin = function () {
|
|
|
197
197
|
}
|
|
198
198
|
};
|
|
199
199
|
return (_jsxs("div", { className: "", children: [_jsx(Toast, { ref: toast }), _jsxs("div", { className: "auth-container ".concat(((_a = solidSettingsData === null || solidSettingsData === void 0 ? void 0 : solidSettingsData.data) === null || _a === void 0 ? void 0 : _a.authPagesLayout) === 'center' ? 'center' : 'side'), children: [((_b = solidSettingsData === null || solidSettingsData === void 0 ? void 0 : solidSettingsData.data) === null || _b === void 0 ? void 0 : _b.authPagesLayout) === 'center' &&
|
|
200
|
-
_jsx("div", { className: "flex justify-content-center", children: _jsxs("div", { className: "solid-logo flex align-items-center gap-3", children: [_jsx(Image, { alt: "solid logo", src: SolidLogo, className: "relative", fill: true }), _jsx(AppTitle, { title: solidSettingsData })] }) }), _jsx("h2", { className: "solid-auth-title ".concat(((_c = solidSettingsData === null || solidSettingsData === void 0 ? void 0 : solidSettingsData.data) === null || _c === void 0 ? void 0 : _c.authPagesLayout) === 'center' ? 'text-center mt-4' : 'text-left'), children: "Sign In To Your Account" }), _jsx(AuthTabs, { iamPasswordRegistrationEnabled: (_d = solidSettingsData === null || solidSettingsData === void 0 ? void 0 : solidSettingsData.data) === null || _d === void 0 ? void 0 : _d.iamPasswordRegistrationEnabled,
|
|
201
|
-
_jsxs(_Fragment, { children: [_jsx(Divider, { align: "center", children: _jsx("div", { className: "inline-flex align-items-center", children: "or" }) }), _jsx(SocialMediaLogin, {})] })] }), ((_g = solidSettingsData === null || solidSettingsData === void 0 ? void 0 : solidSettingsData.data) === null || _g === void 0 ? void 0 : _g.
|
|
200
|
+
_jsx("div", { className: "flex justify-content-center", children: _jsxs("div", { className: "solid-logo flex align-items-center gap-3", children: [_jsx(Image, { alt: "solid logo", src: SolidLogo, className: "relative", fill: true }), _jsx(AppTitle, { title: solidSettingsData })] }) }), _jsx("h2", { className: "solid-auth-title ".concat(((_c = solidSettingsData === null || solidSettingsData === void 0 ? void 0 : solidSettingsData.data) === null || _c === void 0 ? void 0 : _c.authPagesLayout) === 'center' ? 'text-center mt-4' : 'text-left'), children: "Sign In To Your Account" }), _jsx(AuthTabs, { iamPasswordRegistrationEnabled: (_d = solidSettingsData === null || solidSettingsData === void 0 ? void 0 : solidSettingsData.data) === null || _d === void 0 ? void 0 : _d.iamPasswordRegistrationEnabled, passwordlessRegistration: (_e = solidSettingsData === null || solidSettingsData === void 0 ? void 0 : solidSettingsData.data) === null || _e === void 0 ? void 0 : _e.passwordlessRegistration }), ((_f = solidSettingsData === null || solidSettingsData === void 0 ? void 0 : solidSettingsData.data) === null || _f === void 0 ? void 0 : _f.iamGoogleOAuthEnabled) &&
|
|
201
|
+
_jsxs(_Fragment, { children: [_jsx(Divider, { align: "center", children: _jsx("div", { className: "inline-flex align-items-center", children: "or" }) }), _jsx(SocialMediaLogin, {})] })] }), ((_g = solidSettingsData === null || solidSettingsData === void 0 ? void 0 : solidSettingsData.data) === null || _g === void 0 ? void 0 : _g.allowPublicRegistration) && _jsx("div", { className: " mt-5", children: _jsxs("div", { className: "text-sm text-center text-400 secondary-dark-color", children: ["Don\u2019t have an account ? ", _jsx(Link, { className: "font-bold", href: "/auth/register", children: "Sign Up" })] }) })] }));
|
|
202
202
|
};
|
|
203
203
|
export default SolidLogin;
|
|
204
204
|
//# sourceMappingURL=SolidLogin.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SolidLogin.js","sourceRoot":"","sources":["../../../src/components/auth/SolidLogin.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEb,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAEzC,OAAO,EAAc,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AAChE,OAAO,KAAK,GAAG,MAAM,KAAK,CAAC;AAC3B,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAE9D,OAAO,EAAE,2BAA2B,EAAE,MAAM,8BAA8B,CAAC;AAC3E,OAAO,EAAE,uBAAuB,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,KAAK,MAAM,YAAY,CAAC;AAC/B,OAAO,SAAS,MAAM,oCAAoC,C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