@solidstarters/solid-core-ui 1.1.73 → 1.1.75
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/common/FileReaderExt.js +1 -0
- package/dist/components/common/FileReaderExt.js.map +1 -1
- package/dist/components/common/GeneralSettings.js +1 -1
- package/dist/components/common/SolidAdmin.d.ts.map +1 -1
- package/dist/components/common/SolidAdmin.js +1 -0
- package/dist/components/common/SolidAdmin.js.map +1 -1
- package/dist/components/common/SolidThemeLink.d.ts.map +1 -1
- package/dist/components/common/SolidThemeLink.js +1 -0
- package/dist/components/common/SolidThemeLink.js.map +1 -1
- package/dist/components/core/chatter/SolidChatterDateDivider.js +1 -0
- package/dist/components/core/chatter/SolidChatterDateDivider.js.map +1 -1
- package/dist/components/core/chatter/SolidChatterHeader.d.ts.map +1 -1
- package/dist/components/core/chatter/SolidChatterHeader.js +4 -3
- package/dist/components/core/chatter/SolidChatterHeader.js.map +1 -1
- package/dist/components/core/chatter/SolidChatterMessageBox.d.ts.map +1 -1
- package/dist/components/core/chatter/SolidChatterMessageBox.js +7 -6
- package/dist/components/core/chatter/SolidChatterMessageBox.js.map +1 -1
- package/dist/components/core/common/SolidSaveCustomFilterForm.d.ts.map +1 -1
- package/dist/components/core/common/SolidSaveCustomFilterForm.js +1 -0
- package/dist/components/core/common/SolidSaveCustomFilterForm.js.map +1 -1
- package/dist/components/core/form/SolidFormActionHeader.d.ts +2 -0
- package/dist/components/core/form/SolidFormActionHeader.d.ts.map +1 -0
- package/dist/components/core/form/SolidFormActionHeader.js +67 -0
- package/dist/components/core/form/SolidFormActionHeader.js.map +1 -0
- package/dist/components/core/form/SolidFormView.d.ts.map +1 -1
- package/dist/components/core/form/SolidFormView.js +3 -68
- package/dist/components/core/form/SolidFormView.js.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.js +1 -1
- package/dist/components/core/list/columns/SolidDateColumn.js +1 -1
- package/dist/components/core/list/columns/SolidDateColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidDatetimeColumn.js +1 -1
- package/dist/components/core/list/columns/SolidDatetimeColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidExternalIdColumn.js +1 -1
- package/dist/components/core/list/columns/SolidExternalIdColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidIdColumn.js +1 -1
- package/dist/components/core/list/columns/SolidIdColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidIntColumn.js +1 -1
- package/dist/components/core/list/columns/SolidIntColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidRelationColumn.d.ts.map +1 -1
- package/dist/components/core/list/columns/SolidRelationColumn.js +2 -1
- package/dist/components/core/list/columns/SolidRelationColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidSelectionDynamicColumn.js +1 -1
- package/dist/components/core/list/columns/SolidSelectionDynamicColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidSelectionStaticColumn.js +1 -1
- package/dist/components/core/list/columns/SolidSelectionStaticColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidTimeColumn.js +1 -1
- package/dist/components/core/list/columns/SolidTimeColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidUuidColumn.js +1 -1
- package/dist/components/core/list/columns/SolidUuidColumn.js.map +1 -1
- package/dist/components/core/list/widgets/SolidRelationAvatarWidget.d.ts.map +1 -1
- package/dist/components/core/list/widgets/SolidRelationAvatarWidget.js +14 -13
- package/dist/components/core/list/widgets/SolidRelationAvatarWidget.js.map +1 -1
- package/dist/components/core/list/widgets/SolidShortTextAvatarWidget.d.ts.map +1 -1
- package/dist/components/core/list/widgets/SolidShortTextAvatarWidget.js +13 -12
- package/dist/components/core/list/widgets/SolidShortTextAvatarWidget.js.map +1 -1
- package/dist/components/core/module/CreateModule.d.ts.map +1 -1
- package/dist/components/core/module/CreateModule.js +0 -2
- package/dist/components/core/module/CreateModule.js.map +1 -1
- package/dist/declarations.d.ts +4 -1
- package/dist/helpers/registry.js +2 -1
- package/dist/helpers/registry.js.map +1 -1
- package/dist/types/solid-core.d.ts +1 -0
- package/package.json +1 -1
- package/src/declarations.d.ts +4 -1
- package/src/types/solid-core.d.ts +1 -0
- package/tsconfig.json +2 -1
- package/dist/components/CustomFooter/CustomFooter.tsx +0 -264
- package/dist/components/CustomFooter/FooterForm.tsx +0 -19
- package/dist/components/CustomHeader/CallIcon.tsx +0 -20
- package/dist/components/CustomHeader/CustomDropdown.tsx +0 -175
- package/dist/components/CustomHeader/CustomHeader.tsx +0 -64
- package/dist/components/CustomHeader/EmailIcon.tsx +0 -12
- package/dist/components/CustomHeader/HeaderCart.tsx +0 -15
- package/dist/components/CustomHeader/productNavData.tsx +0 -180
- package/dist/components/FormView/DetailsViews.tsx +0 -46
- package/dist/components/FormView/OrderAddressDetails.tsx +0 -70
- package/dist/components/FormView/OrderPaymentDetails.tsx +0 -18
- package/dist/components/FormView/OrderTableDetails.tsx +0 -36
- package/dist/components/FormView/OrderedProductDetail.tsx +0 -22
- package/dist/components/Svg/ExcelSvg.tsx +0 -15
- package/dist/components/Svg/FileSvg.tsx +0 -19
- package/dist/components/Svg/PDFSvg.tsx +0 -15
- package/dist/components/Svg/RightArrowSvg.tsx +0 -9
- package/dist/components/Tag/CustomTag.tsx +0 -50
- package/dist/components/auth/AuthLayout.tsx +0 -140
- package/dist/components/auth/ForgotPasswordThankYou.tsx +0 -48
- package/dist/components/auth/GoogleAuthChecking.tsx +0 -60
- package/dist/components/auth/Login.tsx +0 -155
- package/dist/components/auth/Register.tsx +0 -239
- package/dist/components/auth/SolidChangeForcePassword.tsx +0 -145
- package/dist/components/auth/SolidForgotPassword.tsx +0 -125
- package/dist/components/auth/SolidInitialLoginOtp.tsx +0 -152
- package/dist/components/auth/SolidInitiateRegisterOtp.tsx +0 -141
- package/dist/components/auth/SolidLogin.tsx +0 -275
- package/dist/components/auth/SolidOTPVerify.tsx +0 -132
- package/dist/components/auth/SolidRegister.tsx +0 -348
- package/dist/components/auth/SolidResetPassword.tsx +0 -162
- package/dist/components/common/AuthBanner.tsx +0 -41
- package/dist/components/common/AutoCompleteField.tsx +0 -76
- package/dist/components/common/BackButton.tsx +0 -27
- package/dist/components/common/CancelButton.tsx +0 -48
- package/dist/components/common/CodeEditor.tsx +0 -26
- package/dist/components/common/CreateButton.tsx +0 -17
- package/dist/components/common/DropzonePlaceholder.tsx +0 -31
- package/dist/components/common/DropzoneUpload.tsx +0 -11
- package/dist/components/common/FileReaderExt.tsx +0 -20
- package/dist/components/common/GeneralSettings.tsx +0 -414
- package/dist/components/common/HeaderDynamicTitles.tsx +0 -13
- package/dist/components/common/MarkdownViewer.tsx +0 -16
- package/dist/components/common/MultipleSelectAutoCompleteField.tsx +0 -62
- package/dist/components/common/NotFound.tsx +0 -22
- package/dist/components/common/SingleSelectAutoCompleteField.tsx +0 -67
- package/dist/components/common/SocialMediaLogin.tsx +0 -53
- package/dist/components/common/SolidAdmin.tsx +0 -7
- package/dist/components/common/SolidBreadcrumb.tsx +0 -105
- package/dist/components/common/SolidFormHeader.tsx +0 -22
- package/dist/components/common/SolidFormStepper.tsx +0 -213
- package/dist/components/common/SolidModuleHome.tsx +0 -61
- package/dist/components/common/SolidThemeLink.tsx +0 -5
- package/dist/components/common/SolidThemeProvider.tsx +0 -44
- package/dist/components/common/error.tsx +0 -30
- package/dist/components/core/chatter/SolidChatter.tsx +0 -252
- package/dist/components/core/chatter/SolidChatterDateDivider.tsx +0 -16
- package/dist/components/core/chatter/SolidChatterHeader.tsx +0 -178
- package/dist/components/core/chatter/SolidChatterMessageBox.tsx +0 -165
- package/dist/components/core/chatter/SolidMessageComposer.tsx +0 -145
- package/dist/components/core/common/FilterComponent.tsx +0 -434
- package/dist/components/core/common/LoadDynamicJsxComponent.tsx +0 -70
- package/dist/components/core/common/SolidCreateButton.tsx +0 -17
- package/dist/components/core/common/SolidGlobalSearchElement.tsx +0 -843
- package/dist/components/core/common/SolidLayoutViews.tsx +0 -87
- package/dist/components/core/common/SolidListViewOptions.tsx +0 -31
- package/dist/components/core/common/SolidSaveCustomFilterForm.tsx +0 -74
- package/dist/components/core/common/SolidSearchBox.tsx +0 -17
- package/dist/components/core/common/SolidViewLayoutManager.ts +0 -85
- package/dist/components/core/extension/solid-core/emailTemplate/emailFormTypeChangeHandler.ts +0 -18
- package/dist/components/core/extension/solid-core/emailTemplate/emailFormTypeLoad.ts +0 -18
- package/dist/components/core/extension/solid-core/modelMetadata/list/GenerateModelCodeRowAction.tsx +0 -59
- package/dist/components/core/extension/solid-core/moduleMetadata/list/GenerateModuleCodeRowAction.tsx +0 -38
- package/dist/components/core/extension/solid-core/roleMetadata/RolePermissionsManyToManyFieldWidget.tsx +0 -123
- package/dist/components/core/field/FieldListViewData.tsx +0 -312
- package/dist/components/core/filter/SolidFilterFields.tsx +0 -128
- package/dist/components/core/filter/SolidManyToOneFilterElement.tsx +0 -60
- package/dist/components/core/filter/SolidSelectionDynamicFilterElement.tsx +0 -50
- package/dist/components/core/filter/SolidSelectionStaticFilterElement.tsx +0 -32
- package/dist/components/core/filter/SolidVarInputsFilterElement.tsx +0 -180
- package/dist/components/core/filter/fields/SolidBigintField.tsx +0 -9
- package/dist/components/core/filter/fields/SolidBooleanField.tsx +0 -50
- package/dist/components/core/filter/fields/SolidComputedField.tsx +0 -23
- package/dist/components/core/filter/fields/SolidDateField.tsx +0 -58
- package/dist/components/core/filter/fields/SolidDatetimeField.tsx +0 -51
- package/dist/components/core/filter/fields/SolidDecimalField.tsx +0 -9
- package/dist/components/core/filter/fields/SolidExternalIdField.tsx +0 -46
- package/dist/components/core/filter/fields/SolidFloatField.tsx +0 -9
- package/dist/components/core/filter/fields/SolidIdField.tsx +0 -46
- package/dist/components/core/filter/fields/SolidIntField.tsx +0 -56
- package/dist/components/core/filter/fields/SolidLongTextField.tsx +0 -9
- package/dist/components/core/filter/fields/SolidMediaMultipleField.tsx +0 -54
- package/dist/components/core/filter/fields/SolidMediaSingleField.tsx +0 -56
- package/dist/components/core/filter/fields/SolidRelationField.tsx +0 -13
- package/dist/components/core/filter/fields/SolidRichTextField.tsx +0 -9
- package/dist/components/core/filter/fields/SolidSelectionDynamicField.tsx +0 -46
- package/dist/components/core/filter/fields/SolidSelectionStaticField.tsx +0 -48
- package/dist/components/core/filter/fields/SolidShortTextField.tsx +0 -54
- package/dist/components/core/filter/fields/SolidTimeField.tsx +0 -45
- package/dist/components/core/filter/fields/SolidUuidField.tsx +0 -45
- package/dist/components/core/filter/fields/relations/SolidRelationManyToOneField.tsx +0 -80
- package/dist/components/core/form/SolidFormLayouts.tsx +0 -104
- package/dist/components/core/form/SolidFormUserViewLayout.tsx +0 -85
- package/dist/components/core/form/SolidFormView.tsx +0 -1356
- package/dist/components/core/form/fields/ISolidField.tsx +0 -69
- package/dist/components/core/form/fields/SolidBooleanField.tsx +0 -269
- package/dist/components/core/form/fields/SolidDateField.tsx +0 -153
- package/dist/components/core/form/fields/SolidDateTimeField.tsx +0 -154
- package/dist/components/core/form/fields/SolidDecimalField.tsx +0 -155
- package/dist/components/core/form/fields/SolidEmailField.tsx +0 -168
- package/dist/components/core/form/fields/SolidIntegerField.tsx +0 -158
- package/dist/components/core/form/fields/SolidJsonField.tsx +0 -173
- package/dist/components/core/form/fields/SolidLongTextField.tsx +0 -161
- package/dist/components/core/form/fields/SolidMediaMultipleField.tsx +0 -639
- package/dist/components/core/form/fields/SolidMediaSingleField.tsx +0 -522
- package/dist/components/core/form/fields/SolidPasswordField.tsx +0 -187
- package/dist/components/core/form/fields/SolidRelationField.tsx +0 -54
- package/dist/components/core/form/fields/SolidRichTextField.tsx +0 -177
- package/dist/components/core/form/fields/SolidSelectionDynamicField.tsx +0 -204
- package/dist/components/core/form/fields/SolidSelectionStaticField.tsx +0 -272
- package/dist/components/core/form/fields/SolidShortTextField.tsx +0 -208
- package/dist/components/core/form/fields/SolidTimeField.tsx +0 -147
- package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.tsx +0 -309
- package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.tsx +0 -291
- package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.tsx +0 -311
- package/dist/components/core/form/fields/relations/widgets/helpers/InlineRelationEntityDialog.tsx +0 -33
- package/dist/components/core/form/fields/relations/widgets/helpers/useRelationEntityHandler.ts +0 -64
- package/dist/components/core/form/fields/widgets/SolidRelationFieldAvatarFormWidget.tsx +0 -46
- package/dist/components/core/form/widgets/CustomHtml.tsx +0 -19
- package/dist/components/core/kanban/KanbanBoard.tsx +0 -131
- package/dist/components/core/kanban/KanbanCard.tsx +0 -255
- package/dist/components/core/kanban/KanbanColumn.tsx +0 -139
- package/dist/components/core/kanban/KanbanUserViewLayout.tsx +0 -85
- package/dist/components/core/kanban/SolidKanbanView.tsx +0 -803
- package/dist/components/core/kanban/SolidKanbanViewConfigure.tsx +0 -146
- package/dist/components/core/kanban/SolidKanbanViewFields.tsx +0 -164
- package/dist/components/core/kanban/SolidManyToOneFilterElement.tsx +0 -59
- package/dist/components/core/kanban/SolidSelectionDynamicFilterElement.tsx +0 -50
- package/dist/components/core/kanban/SolidSelectionStaticFilterElement.tsx +0 -32
- package/dist/components/core/kanban/SolidVarInputsFilterElement.tsx +0 -184
- package/dist/components/core/kanban/kanban-fields/SolidBigintKanbanField.tsx +0 -9
- package/dist/components/core/kanban/kanban-fields/SolidBooleanKanbanField.tsx +0 -13
- package/dist/components/core/kanban/kanban-fields/SolidComputedKanbanField.tsx +0 -23
- package/dist/components/core/kanban/kanban-fields/SolidDateKanbanField.tsx +0 -14
- package/dist/components/core/kanban/kanban-fields/SolidDatetimeKanbanField.tsx +0 -13
- package/dist/components/core/kanban/kanban-fields/SolidDecimalKanbanField.tsx +0 -9
- package/dist/components/core/kanban/kanban-fields/SolidExternalIdKanbanField.tsx +0 -12
- package/dist/components/core/kanban/kanban-fields/SolidFloatKanbanField.tsx +0 -9
- package/dist/components/core/kanban/kanban-fields/SolidIdKanbanField.tsx +0 -14
- package/dist/components/core/kanban/kanban-fields/SolidIntKanbanField.tsx +0 -20
- package/dist/components/core/kanban/kanban-fields/SolidLongTextKanbanField.tsx +0 -9
- package/dist/components/core/kanban/kanban-fields/SolidMediaMultipleKanbanField.tsx +0 -136
- package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.tsx +0 -158
- package/dist/components/core/kanban/kanban-fields/SolidRelationKanbanField.tsx +0 -13
- package/dist/components/core/kanban/kanban-fields/SolidRichTextKanbanField.tsx +0 -9
- package/dist/components/core/kanban/kanban-fields/SolidSelectionDynamicKanbanField.tsx +0 -13
- package/dist/components/core/kanban/kanban-fields/SolidSelectionStaticKanbanField.tsx +0 -14
- package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.tsx +0 -121
- package/dist/components/core/kanban/kanban-fields/SolidTimeKanbanField.tsx +0 -12
- package/dist/components/core/kanban/kanban-fields/SolidUuidKanbanField.tsx +0 -13
- package/dist/components/core/kanban/kanban-fields/relations/SolidRelationManyToOneKanbanField.tsx +0 -16
- package/dist/components/core/list/ListViewRowActionPopup.tsx +0 -42
- package/dist/components/core/list/SolidEmptyListViewPlaceholder.tsx +0 -41
- package/dist/components/core/list/SolidListColumnSelector.tsx +0 -167
- package/dist/components/core/list/SolidListView.tsx +0 -981
- package/dist/components/core/list/SolidListViewColumn.tsx +0 -165
- package/dist/components/core/list/SolidListViewConfigure.tsx +0 -198
- package/dist/components/core/list/SolidListViewShimmerLoading.tsx +0 -77
- package/dist/components/core/list/SolidListingHeader.tsx +0 -42
- package/dist/components/core/list/SolidManyToOneFilterElement.tsx +0 -59
- package/dist/components/core/list/SolidSelectionDynamicFilterElement.tsx +0 -50
- package/dist/components/core/list/SolidSelectionStaticFilterElement.tsx +0 -32
- package/dist/components/core/list/SolidTableRowCell.tsx +0 -12
- package/dist/components/core/list/SolidVarInputsFilterElement.tsx +0 -184
- package/dist/components/core/list/columns/SolidBigintColumn.tsx +0 -9
- package/dist/components/core/list/columns/SolidBooleanColumn.tsx +0 -89
- package/dist/components/core/list/columns/SolidComputedColumn.tsx +0 -23
- package/dist/components/core/list/columns/SolidDateColumn.tsx +0 -90
- package/dist/components/core/list/columns/SolidDatetimeColumn.tsx +0 -79
- package/dist/components/core/list/columns/SolidDecimalColumn.tsx +0 -9
- package/dist/components/core/list/columns/SolidExternalIdColumn.tsx +0 -80
- package/dist/components/core/list/columns/SolidFloatColumn.tsx +0 -9
- package/dist/components/core/list/columns/SolidIdColumn.tsx +0 -79
- package/dist/components/core/list/columns/SolidIntColumn.tsx +0 -87
- package/dist/components/core/list/columns/SolidLongTextColumn.tsx +0 -9
- package/dist/components/core/list/columns/SolidMediaMultipleColumn.tsx +0 -100
- package/dist/components/core/list/columns/SolidMediaSingleColumn.tsx +0 -98
- package/dist/components/core/list/columns/SolidRelationColumn.tsx +0 -20
- package/dist/components/core/list/columns/SolidRichTextColumn.tsx +0 -9
- package/dist/components/core/list/columns/SolidSelectionDynamicColumn.tsx +0 -80
- package/dist/components/core/list/columns/SolidSelectionStaticColumn.tsx +0 -81
- package/dist/components/core/list/columns/SolidShortTextColumn.tsx +0 -103
- package/dist/components/core/list/columns/SolidTimeColumn.tsx +0 -78
- package/dist/components/core/list/columns/SolidUuidColumn.tsx +0 -79
- package/dist/components/core/list/columns/relations/SolidRelationManyToManyColumn.tsx +0 -110
- package/dist/components/core/list/columns/relations/SolidRelationManyToOneColumn.tsx +0 -95
- package/dist/components/core/list/columns/relations/SolidRelationOneToManyColumn.tsx +0 -111
- package/dist/components/core/list/widgets/SolidRelationAvatarWidget.tsx +0 -89
- package/dist/components/core/list/widgets/SolidShortTextAvatarWidget.tsx +0 -58
- package/dist/components/core/list/widgets/SolidShortTextFieldImageRenderModeWidget.tsx +0 -21
- package/dist/components/core/model/CreateModel.tsx +0 -476
- package/dist/components/core/model/FieldMetaData.tsx +0 -193
- package/dist/components/core/model/FieldMetaDataForm.tsx +0 -3048
- package/dist/components/core/model/FieldSelector.tsx +0 -62
- package/dist/components/core/model/ModelListViewData.tsx +0 -383
- package/dist/components/core/model/ModelMetaData.tsx +0 -840
- package/dist/components/core/module/CreateModule.tsx +0 -620
- package/dist/components/core/module/ModuleListViewData.tsx +0 -429
- package/dist/components/core/users/CreateUser.tsx +0 -436
- package/dist/components/core/users/CreateUserRole.tsx +0 -211
- package/dist/components/core/users/UserListView.tsx +0 -374
- package/dist/components/layout/AdminLayout.tsx +0 -62
- package/dist/components/layout/AdminSidebar.tsx +0 -65
- package/dist/components/layout/AppConfig.tsx +0 -104
- package/dist/components/layout/AppSidebar.tsx +0 -225
- package/dist/components/layout/ButtonLoader.tsx +0 -7
- package/dist/components/layout/CustomPagination.tsx +0 -55
- package/dist/components/layout/DashboardHeader.tsx +0 -89
- package/dist/components/layout/FilterMenu.tsx +0 -122
- package/dist/components/layout/Footer.tsx +0 -13
- package/dist/components/layout/GlobalSearch.tsx +0 -37
- package/dist/components/layout/Header.tsx +0 -8
- package/dist/components/layout/Layout.tsx +0 -136
- package/dist/components/layout/ListingHeader.tsx +0 -204
- package/dist/components/layout/Loader.tsx +0 -16
- package/dist/components/layout/UserSidebar.tsx +0 -53
- package/dist/components/layout/context/layoutcontext.tsx +0 -52
- package/dist/components/layout/navbar-one.tsx +0 -258
- package/dist/components/layout/navbar-two-menu.tsx +0 -73
- package/dist/components/layout/navbar-two.tsx +0 -37
- package/dist/components/layout/user-profile-menu.tsx +0 -120
- package/dist/components/layout/user-profile.tsx +0 -7
- package/dist/components/modelsComponents/filterIcon.tsx +0 -9
- package/dist/components/tables/DemoData.tsx +0 -318
- package/dist/components/tables/DynamicTable.tsx +0 -56
- package/dist/components/tables/ListViewTable.tsx +0 -156
- package/dist/helpers/AppTitle.tsx +0 -12
- package/dist/helpers/ToastContainer.tsx +0 -93
- package/dist/helpers/authHeader.ts +0 -20
- package/dist/helpers/countries.tsx +0 -260
- package/dist/helpers/downloadMediaFile.tsx +0 -19
- package/dist/helpers/getAcceptedFileTypes.tsx +0 -22
- package/dist/helpers/getRandomColors.tsx +0 -68
- package/dist/helpers/helpers.ts +0 -40
- package/dist/helpers/menu.tsx +0 -670
- package/dist/helpers/permissions.ts +0 -19
- package/dist/helpers/registry.ts +0 -173
- package/dist/helpers/revalidate.ts +0 -7
- package/dist/index.ts +0 -642
- package/dist/nextAuth/authProviders.tsx +0 -221
- package/dist/nextAuth/refreshAccessToken.tsx +0 -27
- package/dist/redux/api/articleApi.ts +0 -55
- package/dist/redux/api/authApi.ts +0 -131
- package/dist/redux/api/automationApi.ts +0 -55
- package/dist/redux/api/categoryApi.tsx +0 -46
- package/dist/redux/api/cityApi.tsx +0 -56
- package/dist/redux/api/cmsBannerImageApi.tsx +0 -55
- package/dist/redux/api/countryApi.tsx +0 -56
- package/dist/redux/api/fetchBaseQuery.tsx +0 -15
- package/dist/redux/api/fieldApi.ts +0 -78
- package/dist/redux/api/mediaApi.ts +0 -55
- package/dist/redux/api/mediaStorageProviderApi.ts +0 -55
- package/dist/redux/api/menuApi.tsx +0 -55
- package/dist/redux/api/menuItemsApi.tsx +0 -56
- package/dist/redux/api/modelApi.ts +0 -77
- package/dist/redux/api/moduleApi.ts +0 -72
- package/dist/redux/api/orderAttributeApi.tsx +0 -37
- package/dist/redux/api/permissionApi.ts +0 -32
- package/dist/redux/api/pincodeApi.tsx +0 -56
- package/dist/redux/api/productData.tsx +0 -87
- package/dist/redux/api/radixExtraModelAttributeApi.tsx +0 -37
- package/dist/redux/api/radixModelMetadataApi.tsx +0 -62
- package/dist/redux/api/radixModelsApi.tsx +0 -64
- package/dist/redux/api/ratingApi.ts +0 -55
- package/dist/redux/api/reviewApi.ts +0 -55
- package/dist/redux/api/roleApi.ts +0 -58
- package/dist/redux/api/solidActionApi.ts +0 -66
- package/dist/redux/api/solidChatterMessageApi.ts +0 -30
- package/dist/redux/api/solidEntityApi.tsx +0 -110
- package/dist/redux/api/solidMenuApi.ts +0 -71
- package/dist/redux/api/solidSettingsApi.tsx +0 -55
- package/dist/redux/api/solidViewApi.ts +0 -73
- package/dist/redux/api/stateApi.tsx +0 -56
- package/dist/redux/api/tagApi.ts +0 -55
- package/dist/redux/api/tagGroupApi.tsx +0 -55
- package/dist/redux/api/testApi.ts +0 -21
- package/dist/redux/api/userApi.ts +0 -120
- package/dist/redux/features/authSlice.ts +0 -19
- package/dist/redux/features/dataViewSlice.ts +0 -26
- package/dist/redux/features/navbarSlice.ts +0 -21
- package/dist/redux/features/popupSlice.ts +0 -27
- package/dist/redux/features/themeSlice.ts +0 -17
- package/dist/redux/features/userSlice.ts +0 -28
- package/src/components/CustomFooter/CustomFooter.tsx +0 -264
- package/src/components/CustomFooter/FooterForm.tsx +0 -19
- package/src/components/CustomHeader/CallIcon.tsx +0 -20
- package/src/components/CustomHeader/CustomDropdown.tsx +0 -175
- package/src/components/CustomHeader/CustomHeader.tsx +0 -64
- package/src/components/CustomHeader/EmailIcon.tsx +0 -12
- package/src/components/CustomHeader/HeaderCart.tsx +0 -15
- package/src/components/CustomHeader/productNavData.tsx +0 -180
- package/src/components/FormView/DetailsViews.tsx +0 -46
- package/src/components/FormView/OrderAddressDetails.tsx +0 -70
- package/src/components/FormView/OrderPaymentDetails.tsx +0 -18
- package/src/components/FormView/OrderTableDetails.tsx +0 -36
- package/src/components/FormView/OrderedProductDetail.tsx +0 -22
- package/src/components/Svg/ExcelSvg.tsx +0 -15
- package/src/components/Svg/FileSvg.tsx +0 -19
- package/src/components/Svg/PDFSvg.tsx +0 -15
- package/src/components/Svg/RightArrowSvg.tsx +0 -9
- package/src/components/Tag/CustomTag.tsx +0 -50
- package/src/components/auth/AuthLayout.tsx +0 -140
- package/src/components/auth/ForgotPasswordThankYou.tsx +0 -48
- package/src/components/auth/GoogleAuthChecking.tsx +0 -60
- package/src/components/auth/Login.tsx +0 -155
- package/src/components/auth/Register.tsx +0 -239
- package/src/components/auth/SolidChangeForcePassword.tsx +0 -145
- package/src/components/auth/SolidForgotPassword.tsx +0 -125
- package/src/components/auth/SolidInitialLoginOtp.tsx +0 -152
- package/src/components/auth/SolidInitiateRegisterOtp.tsx +0 -141
- package/src/components/auth/SolidLogin.tsx +0 -275
- package/src/components/auth/SolidOTPVerify.tsx +0 -132
- package/src/components/auth/SolidRegister.tsx +0 -348
- package/src/components/auth/SolidResetPassword.tsx +0 -162
- package/src/components/common/AuthBanner.tsx +0 -41
- package/src/components/common/AutoCompleteField.tsx +0 -76
- package/src/components/common/BackButton.tsx +0 -27
- package/src/components/common/CancelButton.tsx +0 -48
- package/src/components/common/CodeEditor.tsx +0 -26
- package/src/components/common/CreateButton.tsx +0 -17
- package/src/components/common/DropzonePlaceholder.tsx +0 -31
- package/src/components/common/DropzoneUpload.tsx +0 -11
- package/src/components/common/FileReaderExt.tsx +0 -20
- package/src/components/common/GeneralSettings.tsx +0 -414
- package/src/components/common/HeaderDynamicTitles.tsx +0 -13
- package/src/components/common/MarkdownViewer.tsx +0 -16
- package/src/components/common/MultipleSelectAutoCompleteField.tsx +0 -62
- package/src/components/common/NotFound.tsx +0 -22
- package/src/components/common/SingleSelectAutoCompleteField.tsx +0 -67
- package/src/components/common/SocialMediaLogin.tsx +0 -53
- package/src/components/common/SolidAdmin.tsx +0 -7
- package/src/components/common/SolidBreadcrumb.tsx +0 -105
- package/src/components/common/SolidFormHeader.tsx +0 -22
- package/src/components/common/SolidFormStepper.tsx +0 -213
- package/src/components/common/SolidModuleHome.tsx +0 -61
- package/src/components/common/SolidThemeLink.tsx +0 -5
- package/src/components/common/SolidThemeProvider.tsx +0 -44
- package/src/components/common/error.tsx +0 -30
- package/src/components/core/chatter/SolidChatter.tsx +0 -252
- package/src/components/core/chatter/SolidChatterDateDivider.tsx +0 -16
- package/src/components/core/chatter/SolidChatterHeader.tsx +0 -178
- package/src/components/core/chatter/SolidChatterMessageBox.tsx +0 -165
- package/src/components/core/chatter/SolidMessageComposer.tsx +0 -145
- package/src/components/core/common/FilterComponent.tsx +0 -434
- package/src/components/core/common/LoadDynamicJsxComponent.tsx +0 -70
- package/src/components/core/common/SolidCreateButton.tsx +0 -17
- package/src/components/core/common/SolidGlobalSearchElement.tsx +0 -843
- package/src/components/core/common/SolidLayoutViews.tsx +0 -87
- package/src/components/core/common/SolidListViewOptions.tsx +0 -31
- package/src/components/core/common/SolidSaveCustomFilterForm.tsx +0 -74
- package/src/components/core/common/SolidSearchBox.tsx +0 -17
- package/src/components/core/common/SolidViewLayoutManager.ts +0 -85
- package/src/components/core/extension/solid-core/emailTemplate/emailFormTypeChangeHandler.ts +0 -18
- package/src/components/core/extension/solid-core/emailTemplate/emailFormTypeLoad.ts +0 -18
- package/src/components/core/extension/solid-core/modelMetadata/list/GenerateModelCodeRowAction.tsx +0 -59
- package/src/components/core/extension/solid-core/moduleMetadata/list/GenerateModuleCodeRowAction.tsx +0 -38
- package/src/components/core/extension/solid-core/roleMetadata/RolePermissionsManyToManyFieldWidget.tsx +0 -123
- package/src/components/core/field/FieldListViewData.tsx +0 -312
- package/src/components/core/filter/SolidFilterFields.tsx +0 -128
- package/src/components/core/filter/SolidManyToOneFilterElement.tsx +0 -60
- package/src/components/core/filter/SolidSelectionDynamicFilterElement.tsx +0 -50
- package/src/components/core/filter/SolidSelectionStaticFilterElement.tsx +0 -32
- package/src/components/core/filter/SolidVarInputsFilterElement.tsx +0 -180
- package/src/components/core/filter/fields/SolidBigintField.tsx +0 -9
- package/src/components/core/filter/fields/SolidBooleanField.tsx +0 -50
- package/src/components/core/filter/fields/SolidComputedField.tsx +0 -23
- package/src/components/core/filter/fields/SolidDateField.tsx +0 -58
- package/src/components/core/filter/fields/SolidDatetimeField.tsx +0 -51
- package/src/components/core/filter/fields/SolidDecimalField.tsx +0 -9
- package/src/components/core/filter/fields/SolidExternalIdField.tsx +0 -46
- package/src/components/core/filter/fields/SolidFloatField.tsx +0 -9
- package/src/components/core/filter/fields/SolidIdField.tsx +0 -46
- package/src/components/core/filter/fields/SolidIntField.tsx +0 -56
- package/src/components/core/filter/fields/SolidLongTextField.tsx +0 -9
- package/src/components/core/filter/fields/SolidMediaMultipleField.tsx +0 -54
- package/src/components/core/filter/fields/SolidMediaSingleField.tsx +0 -56
- package/src/components/core/filter/fields/SolidRelationField.tsx +0 -13
- package/src/components/core/filter/fields/SolidRichTextField.tsx +0 -9
- package/src/components/core/filter/fields/SolidSelectionDynamicField.tsx +0 -46
- package/src/components/core/filter/fields/SolidSelectionStaticField.tsx +0 -48
- package/src/components/core/filter/fields/SolidShortTextField.tsx +0 -54
- package/src/components/core/filter/fields/SolidTimeField.tsx +0 -45
- package/src/components/core/filter/fields/SolidUuidField.tsx +0 -45
- package/src/components/core/filter/fields/relations/SolidRelationManyToOneField.tsx +0 -80
- package/src/components/core/form/SolidFormLayouts.tsx +0 -104
- package/src/components/core/form/SolidFormUserViewLayout.tsx +0 -85
- package/src/components/core/form/SolidFormView.tsx +0 -1356
- package/src/components/core/form/fields/ISolidField.tsx +0 -69
- package/src/components/core/form/fields/SolidBooleanField.tsx +0 -269
- package/src/components/core/form/fields/SolidDateField.tsx +0 -153
- package/src/components/core/form/fields/SolidDateTimeField.tsx +0 -154
- package/src/components/core/form/fields/SolidDecimalField.tsx +0 -155
- package/src/components/core/form/fields/SolidEmailField.tsx +0 -168
- package/src/components/core/form/fields/SolidIntegerField.tsx +0 -158
- package/src/components/core/form/fields/SolidJsonField.tsx +0 -173
- package/src/components/core/form/fields/SolidLongTextField.tsx +0 -161
- package/src/components/core/form/fields/SolidMediaMultipleField.tsx +0 -639
- package/src/components/core/form/fields/SolidMediaSingleField.tsx +0 -522
- package/src/components/core/form/fields/SolidPasswordField.tsx +0 -187
- package/src/components/core/form/fields/SolidRelationField.tsx +0 -54
- package/src/components/core/form/fields/SolidRichTextField.tsx +0 -177
- package/src/components/core/form/fields/SolidSelectionDynamicField.tsx +0 -204
- package/src/components/core/form/fields/SolidSelectionStaticField.tsx +0 -272
- package/src/components/core/form/fields/SolidShortTextField.tsx +0 -208
- package/src/components/core/form/fields/SolidTimeField.tsx +0 -147
- package/src/components/core/form/fields/relations/SolidRelationManyToManyField.tsx +0 -309
- package/src/components/core/form/fields/relations/SolidRelationManyToOneField.tsx +0 -291
- package/src/components/core/form/fields/relations/SolidRelationOneToManyField.tsx +0 -311
- package/src/components/core/form/fields/relations/widgets/helpers/InlineRelationEntityDialog.tsx +0 -33
- package/src/components/core/form/fields/relations/widgets/helpers/useRelationEntityHandler.ts +0 -64
- package/src/components/core/form/fields/widgets/SolidRelationFieldAvatarFormWidget.tsx +0 -46
- package/src/components/core/form/widgets/CustomHtml.tsx +0 -19
- package/src/components/core/kanban/KanbanBoard.tsx +0 -131
- package/src/components/core/kanban/KanbanCard.tsx +0 -255
- package/src/components/core/kanban/KanbanColumn.tsx +0 -139
- package/src/components/core/kanban/KanbanUserViewLayout.tsx +0 -85
- package/src/components/core/kanban/SolidKanbanView.tsx +0 -803
- package/src/components/core/kanban/SolidKanbanViewConfigure.tsx +0 -146
- package/src/components/core/kanban/SolidKanbanViewFields.tsx +0 -164
- package/src/components/core/kanban/SolidManyToOneFilterElement.tsx +0 -59
- package/src/components/core/kanban/SolidSelectionDynamicFilterElement.tsx +0 -50
- package/src/components/core/kanban/SolidSelectionStaticFilterElement.tsx +0 -32
- package/src/components/core/kanban/SolidVarInputsFilterElement.tsx +0 -184
- package/src/components/core/kanban/kanban-fields/SolidBigintKanbanField.tsx +0 -9
- package/src/components/core/kanban/kanban-fields/SolidBooleanKanbanField.tsx +0 -13
- package/src/components/core/kanban/kanban-fields/SolidComputedKanbanField.tsx +0 -23
- package/src/components/core/kanban/kanban-fields/SolidDateKanbanField.tsx +0 -14
- package/src/components/core/kanban/kanban-fields/SolidDatetimeKanbanField.tsx +0 -13
- package/src/components/core/kanban/kanban-fields/SolidDecimalKanbanField.tsx +0 -9
- package/src/components/core/kanban/kanban-fields/SolidExternalIdKanbanField.tsx +0 -12
- package/src/components/core/kanban/kanban-fields/SolidFloatKanbanField.tsx +0 -9
- package/src/components/core/kanban/kanban-fields/SolidIdKanbanField.tsx +0 -14
- package/src/components/core/kanban/kanban-fields/SolidIntKanbanField.tsx +0 -20
- package/src/components/core/kanban/kanban-fields/SolidLongTextKanbanField.tsx +0 -9
- package/src/components/core/kanban/kanban-fields/SolidMediaMultipleKanbanField.tsx +0 -136
- package/src/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.tsx +0 -158
- package/src/components/core/kanban/kanban-fields/SolidRelationKanbanField.tsx +0 -13
- package/src/components/core/kanban/kanban-fields/SolidRichTextKanbanField.tsx +0 -9
- package/src/components/core/kanban/kanban-fields/SolidSelectionDynamicKanbanField.tsx +0 -13
- package/src/components/core/kanban/kanban-fields/SolidSelectionStaticKanbanField.tsx +0 -14
- package/src/components/core/kanban/kanban-fields/SolidShortTextKanbanField.tsx +0 -121
- package/src/components/core/kanban/kanban-fields/SolidTimeKanbanField.tsx +0 -12
- package/src/components/core/kanban/kanban-fields/SolidUuidKanbanField.tsx +0 -13
- package/src/components/core/kanban/kanban-fields/relations/SolidRelationManyToOneKanbanField.tsx +0 -16
- package/src/components/core/list/ListViewRowActionPopup.tsx +0 -42
- package/src/components/core/list/SolidEmptyListViewPlaceholder.tsx +0 -41
- package/src/components/core/list/SolidListColumnSelector.tsx +0 -167
- package/src/components/core/list/SolidListView.tsx +0 -981
- package/src/components/core/list/SolidListViewColumn.tsx +0 -165
- package/src/components/core/list/SolidListViewConfigure.tsx +0 -198
- package/src/components/core/list/SolidListViewShimmerLoading.tsx +0 -77
- package/src/components/core/list/SolidListingHeader.tsx +0 -42
- package/src/components/core/list/SolidManyToOneFilterElement.tsx +0 -59
- package/src/components/core/list/SolidSelectionDynamicFilterElement.tsx +0 -50
- package/src/components/core/list/SolidSelectionStaticFilterElement.tsx +0 -32
- package/src/components/core/list/SolidTableRowCell.tsx +0 -12
- package/src/components/core/list/SolidVarInputsFilterElement.tsx +0 -184
- package/src/components/core/list/columns/SolidBigintColumn.tsx +0 -9
- package/src/components/core/list/columns/SolidBooleanColumn.tsx +0 -89
- package/src/components/core/list/columns/SolidComputedColumn.tsx +0 -23
- package/src/components/core/list/columns/SolidDateColumn.tsx +0 -90
- package/src/components/core/list/columns/SolidDatetimeColumn.tsx +0 -79
- package/src/components/core/list/columns/SolidDecimalColumn.tsx +0 -9
- package/src/components/core/list/columns/SolidExternalIdColumn.tsx +0 -80
- package/src/components/core/list/columns/SolidFloatColumn.tsx +0 -9
- package/src/components/core/list/columns/SolidIdColumn.tsx +0 -79
- package/src/components/core/list/columns/SolidIntColumn.tsx +0 -87
- package/src/components/core/list/columns/SolidLongTextColumn.tsx +0 -9
- package/src/components/core/list/columns/SolidMediaMultipleColumn.tsx +0 -100
- package/src/components/core/list/columns/SolidMediaSingleColumn.tsx +0 -98
- package/src/components/core/list/columns/SolidRelationColumn.tsx +0 -20
- package/src/components/core/list/columns/SolidRichTextColumn.tsx +0 -9
- package/src/components/core/list/columns/SolidSelectionDynamicColumn.tsx +0 -80
- package/src/components/core/list/columns/SolidSelectionStaticColumn.tsx +0 -81
- package/src/components/core/list/columns/SolidShortTextColumn.tsx +0 -103
- package/src/components/core/list/columns/SolidTimeColumn.tsx +0 -78
- package/src/components/core/list/columns/SolidUuidColumn.tsx +0 -79
- package/src/components/core/list/columns/relations/SolidRelationManyToManyColumn.tsx +0 -110
- package/src/components/core/list/columns/relations/SolidRelationManyToOneColumn.tsx +0 -95
- package/src/components/core/list/columns/relations/SolidRelationOneToManyColumn.tsx +0 -111
- package/src/components/core/list/widgets/SolidRelationAvatarWidget.tsx +0 -89
- package/src/components/core/list/widgets/SolidShortTextAvatarWidget.tsx +0 -58
- package/src/components/core/list/widgets/SolidShortTextFieldImageRenderModeWidget.tsx +0 -21
- package/src/components/core/model/CreateModel.tsx +0 -476
- package/src/components/core/model/FieldMetaData.tsx +0 -193
- package/src/components/core/model/FieldMetaDataForm.tsx +0 -3048
- package/src/components/core/model/FieldSelector.tsx +0 -62
- package/src/components/core/model/ModelListViewData.tsx +0 -383
- package/src/components/core/model/ModelMetaData.tsx +0 -840
- package/src/components/core/module/CreateModule.tsx +0 -620
- package/src/components/core/module/ModuleListViewData.tsx +0 -429
- package/src/components/core/users/CreateUser.tsx +0 -436
- package/src/components/core/users/CreateUserRole.tsx +0 -211
- package/src/components/core/users/UserListView.tsx +0 -374
- package/src/components/layout/AdminLayout.tsx +0 -62
- package/src/components/layout/AdminSidebar.tsx +0 -65
- package/src/components/layout/AppConfig.tsx +0 -104
- package/src/components/layout/AppSidebar.tsx +0 -225
- package/src/components/layout/ButtonLoader.tsx +0 -7
- package/src/components/layout/CustomPagination.tsx +0 -55
- package/src/components/layout/DashboardHeader.tsx +0 -89
- package/src/components/layout/FilterMenu.tsx +0 -122
- package/src/components/layout/Footer.tsx +0 -13
- package/src/components/layout/GlobalSearch.tsx +0 -37
- package/src/components/layout/Header.tsx +0 -8
- package/src/components/layout/Layout.tsx +0 -136
- package/src/components/layout/ListingHeader.tsx +0 -204
- package/src/components/layout/Loader.tsx +0 -16
- package/src/components/layout/UserSidebar.tsx +0 -53
- package/src/components/layout/context/layoutcontext.tsx +0 -52
- package/src/components/layout/navbar-one.tsx +0 -258
- package/src/components/layout/navbar-two-menu.tsx +0 -73
- package/src/components/layout/navbar-two.tsx +0 -37
- package/src/components/layout/user-profile-menu.tsx +0 -120
- package/src/components/layout/user-profile.tsx +0 -7
- package/src/components/modelsComponents/filterIcon.tsx +0 -9
- package/src/components/tables/DemoData.tsx +0 -318
- package/src/components/tables/DynamicTable.tsx +0 -56
- package/src/components/tables/ListViewTable.tsx +0 -156
- package/src/helpers/AppTitle.tsx +0 -12
- package/src/helpers/ToastContainer.tsx +0 -93
- package/src/helpers/authHeader.ts +0 -20
- package/src/helpers/countries.tsx +0 -260
- package/src/helpers/downloadMediaFile.tsx +0 -19
- package/src/helpers/getAcceptedFileTypes.tsx +0 -22
- package/src/helpers/getRandomColors.tsx +0 -68
- package/src/helpers/helpers.ts +0 -40
- package/src/helpers/menu.tsx +0 -670
- package/src/helpers/permissions.ts +0 -19
- package/src/helpers/registry.ts +0 -173
- package/src/helpers/revalidate.ts +0 -7
- package/src/index.ts +0 -642
- package/src/nextAuth/authProviders.tsx +0 -221
- package/src/nextAuth/refreshAccessToken.tsx +0 -27
- package/src/redux/api/articleApi.ts +0 -55
- package/src/redux/api/authApi.ts +0 -131
- package/src/redux/api/automationApi.ts +0 -55
- package/src/redux/api/categoryApi.tsx +0 -46
- package/src/redux/api/cityApi.tsx +0 -56
- package/src/redux/api/cmsBannerImageApi.tsx +0 -55
- package/src/redux/api/countryApi.tsx +0 -56
- package/src/redux/api/fetchBaseQuery.tsx +0 -15
- package/src/redux/api/fieldApi.ts +0 -78
- package/src/redux/api/mediaApi.ts +0 -55
- package/src/redux/api/mediaStorageProviderApi.ts +0 -55
- package/src/redux/api/menuApi.tsx +0 -55
- package/src/redux/api/menuItemsApi.tsx +0 -56
- package/src/redux/api/modelApi.ts +0 -77
- package/src/redux/api/moduleApi.ts +0 -72
- package/src/redux/api/orderAttributeApi.tsx +0 -37
- package/src/redux/api/permissionApi.ts +0 -32
- package/src/redux/api/pincodeApi.tsx +0 -56
- package/src/redux/api/productData.tsx +0 -87
- package/src/redux/api/radixExtraModelAttributeApi.tsx +0 -37
- package/src/redux/api/radixModelMetadataApi.tsx +0 -62
- package/src/redux/api/radixModelsApi.tsx +0 -64
- package/src/redux/api/ratingApi.ts +0 -55
- package/src/redux/api/reviewApi.ts +0 -55
- package/src/redux/api/roleApi.ts +0 -58
- package/src/redux/api/solidActionApi.ts +0 -66
- package/src/redux/api/solidChatterMessageApi.ts +0 -30
- package/src/redux/api/solidEntityApi.tsx +0 -110
- package/src/redux/api/solidMenuApi.ts +0 -71
- package/src/redux/api/solidSettingsApi.tsx +0 -55
- package/src/redux/api/solidViewApi.ts +0 -73
- package/src/redux/api/stateApi.tsx +0 -56
- package/src/redux/api/tagApi.ts +0 -55
- package/src/redux/api/tagGroupApi.tsx +0 -55
- package/src/redux/api/testApi.ts +0 -21
- package/src/redux/api/userApi.ts +0 -120
- package/src/redux/features/authSlice.ts +0 -19
- package/src/redux/features/dataViewSlice.ts +0 -26
- package/src/redux/features/navbarSlice.ts +0 -21
- package/src/redux/features/popupSlice.ts +0 -27
- package/src/redux/features/themeSlice.ts +0 -17
- package/src/redux/features/userSlice.ts +0 -28
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
|
|
3
|
-
import Link from "next/link";
|
|
4
|
-
import { useSearchParams } from "next/navigation";
|
|
5
|
-
import { useContext } from "react";
|
|
6
|
-
import { LayoutContext } from "../layout/context/layoutcontext";
|
|
7
|
-
import Image from "next/image";
|
|
8
|
-
import SolidLogo from '../../resources/images/SS-Logo.png'
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
export const ForgotPasswordThankYou = () => {
|
|
12
|
-
const { layoutConfig } = useContext(LayoutContext);
|
|
13
|
-
const { authLayout } = layoutConfig;
|
|
14
|
-
const searchParams = useSearchParams();
|
|
15
|
-
const email = searchParams.get('email');
|
|
16
|
-
const decodedEmail = email ? decodeURIComponent(email) : '';
|
|
17
|
-
return (
|
|
18
|
-
<div>
|
|
19
|
-
<div className={`auth-container ${authLayout === 'Center' ? 'center' : 'side'}`}>
|
|
20
|
-
{authLayout === 'Center' &&
|
|
21
|
-
<div className="flex justify-content-center">
|
|
22
|
-
<div className="solid-logo flex align-items-center gap-3">
|
|
23
|
-
<Image
|
|
24
|
-
alt="solid logo"
|
|
25
|
-
src={SolidLogo}
|
|
26
|
-
className="relative"
|
|
27
|
-
fill
|
|
28
|
-
/>
|
|
29
|
-
<div>
|
|
30
|
-
<p className="solid-logo-title">
|
|
31
|
-
Solid<br />Starters
|
|
32
|
-
</p>
|
|
33
|
-
</div>
|
|
34
|
-
</div>
|
|
35
|
-
</div>
|
|
36
|
-
}
|
|
37
|
-
<h5 className='text-center font-bold'>We have sent an email to yourregistered email address</h5>
|
|
38
|
-
<p className='font-bold text-center'>{decodedEmail}</p>
|
|
39
|
-
<p className='text-center'>
|
|
40
|
-
Please follow the instructions in the email
|
|
41
|
-
</p>
|
|
42
|
-
<div className='text-center'>
|
|
43
|
-
<Link href={"/"} className='btn'>Back to Home</Link>
|
|
44
|
-
</div>
|
|
45
|
-
</div>
|
|
46
|
-
</div>
|
|
47
|
-
)
|
|
48
|
-
}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
import { signIn } from 'next-auth/react';
|
|
3
|
-
import { useRouter, useSearchParams } from 'next/navigation';
|
|
4
|
-
import { ProgressSpinner } from 'primereact/progressspinner';
|
|
5
|
-
import { Toast } from 'primereact/toast';
|
|
6
|
-
import React, { useEffect, useRef, useState } from 'react'
|
|
7
|
-
export const GoogleAuthChecking = () => {
|
|
8
|
-
const searchParams = useSearchParams();
|
|
9
|
-
const accessCode = searchParams.get("accessCode");
|
|
10
|
-
|
|
11
|
-
const router = useRouter();
|
|
12
|
-
const [error, setError] = useState<string | null>(null);
|
|
13
|
-
const toast = useRef<Toast>(null);
|
|
14
|
-
const showToast = (severity: "success" | "error", summary: string, detail: string) => {
|
|
15
|
-
toast.current?.show({
|
|
16
|
-
severity,
|
|
17
|
-
summary,
|
|
18
|
-
detail,
|
|
19
|
-
life: 3000,
|
|
20
|
-
});
|
|
21
|
-
};
|
|
22
|
-
useEffect(() => {
|
|
23
|
-
const handleOAuthAuthentication = async () => {
|
|
24
|
-
try {
|
|
25
|
-
const response = await signIn("credentials", {
|
|
26
|
-
redirect: false,
|
|
27
|
-
accessCode: accessCode
|
|
28
|
-
// accessToken: accessToken?.accessToken,
|
|
29
|
-
// refreshToken: accessToken?.refreshToken
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
if (response?.error) {
|
|
33
|
-
showToast("error", "Login Error", response.error);
|
|
34
|
-
setError("Authentication failed.")
|
|
35
|
-
} else {
|
|
36
|
-
showToast("success", "Login Success", "Redirecting to dashboard...");
|
|
37
|
-
router.push(`${process.env.NEXT_PUBLIC_LOGIN_REDIRECT_URL}`);
|
|
38
|
-
}
|
|
39
|
-
} catch (err: any) {
|
|
40
|
-
showToast("error", "Login Error", err?.data?.message || "Authentication failed.");
|
|
41
|
-
}
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
handleOAuthAuthentication();
|
|
45
|
-
}, [router]);
|
|
46
|
-
|
|
47
|
-
if (error) {
|
|
48
|
-
return (
|
|
49
|
-
<div className="flex items-center justify-center min-h-screen">
|
|
50
|
-
<h2 className="text-red-500 text-xl font-semibold">{error}</h2>
|
|
51
|
-
</div>
|
|
52
|
-
);
|
|
53
|
-
}
|
|
54
|
-
return (
|
|
55
|
-
<div>
|
|
56
|
-
<Toast ref={toast} />
|
|
57
|
-
<ProgressSpinner />
|
|
58
|
-
</div>
|
|
59
|
-
)
|
|
60
|
-
}
|
|
@@ -1,155 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import { Form, Formik } from "formik";
|
|
4
|
-
import { signIn, useSession } from "next-auth/react";
|
|
5
|
-
import Link from "next/link";
|
|
6
|
-
import { useRouter } from "next/navigation";
|
|
7
|
-
import { Button } from "primereact/button";
|
|
8
|
-
import { Checkbox } from "primereact/checkbox";
|
|
9
|
-
import { Divider } from "primereact/divider";
|
|
10
|
-
import { InputText } from "primereact/inputtext";
|
|
11
|
-
import { Message } from "primereact/message";
|
|
12
|
-
import { Password } from "primereact/password";
|
|
13
|
-
import { Toast } from "primereact/toast";
|
|
14
|
-
import { classNames } from "primereact/utils";
|
|
15
|
-
import { useRef, useState } from "react";
|
|
16
|
-
import * as Yup from "yup";
|
|
17
|
-
import AuthBanner from "../common/AuthBanner";
|
|
18
|
-
import { SocialMediaLogin } from "../common/SocialMediaLogin";
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
const Login = () => {
|
|
22
|
-
const toast = useRef<Toast>(null);
|
|
23
|
-
const router = useRouter();
|
|
24
|
-
|
|
25
|
-
const [password, setPassword] = useState('');
|
|
26
|
-
const [checked, setChecked] = useState<boolean>(false);
|
|
27
|
-
const session = useSession();
|
|
28
|
-
|
|
29
|
-
const validationSchema = Yup.object({
|
|
30
|
-
email: Yup.string()
|
|
31
|
-
.email("Invalid email address")
|
|
32
|
-
.required("Email is required"),
|
|
33
|
-
password: Yup.string().required("Password is required"),
|
|
34
|
-
});
|
|
35
|
-
|
|
36
|
-
const showToast = (severity: "success" | "error", summary: string, detail: string) => {
|
|
37
|
-
toast.current?.show({
|
|
38
|
-
severity,
|
|
39
|
-
summary,
|
|
40
|
-
detail,
|
|
41
|
-
life: 3000,
|
|
42
|
-
});
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
const isFormFieldValid = (formik: any, fieldName: string) =>
|
|
46
|
-
formik.touched[fieldName] && formik.errors[fieldName];
|
|
47
|
-
|
|
48
|
-
return (
|
|
49
|
-
<div className="h-screen">
|
|
50
|
-
<Toast ref={toast} />
|
|
51
|
-
<div className="grid m-0 h-full">
|
|
52
|
-
<div className="col-12 md:col-12 lg:col-6">
|
|
53
|
-
<div className="flex justify-content-center align-items-center h-full">
|
|
54
|
-
<div className="col-12 sm:col-8">
|
|
55
|
-
<h2 className="text-4xl text-semibold text-start secondary-color">Sign in to {process.env.SOLID_APP_TITLE}</h2>
|
|
56
|
-
{/* <p className="signup-desc text-center">Create your account</p> */}
|
|
57
|
-
<>
|
|
58
|
-
<Formik
|
|
59
|
-
initialValues={{
|
|
60
|
-
email: "",
|
|
61
|
-
password: "",
|
|
62
|
-
}}
|
|
63
|
-
validationSchema={validationSchema}
|
|
64
|
-
onSubmit={async (values) => {
|
|
65
|
-
// Handle form submission
|
|
66
|
-
const email = values.email;
|
|
67
|
-
const password = values.password;
|
|
68
|
-
|
|
69
|
-
const response = await signIn("credentials", {
|
|
70
|
-
redirect: false,
|
|
71
|
-
email,
|
|
72
|
-
password,
|
|
73
|
-
});
|
|
74
|
-
if (response?.error) {
|
|
75
|
-
showToast("error", "Login Error", response.error);
|
|
76
|
-
} else {
|
|
77
|
-
showToast("success", "Login Success", "Redirecting to dashboard...");
|
|
78
|
-
router.push("/admin/core/solid-core/user/list");
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
}}
|
|
82
|
-
>
|
|
83
|
-
{(formik) => (
|
|
84
|
-
<Form>
|
|
85
|
-
<div className="flex flex-column gap-2">
|
|
86
|
-
<label htmlFor="email" className="text-color-secondary">Email</label>
|
|
87
|
-
<InputText
|
|
88
|
-
id="email"
|
|
89
|
-
name="email"
|
|
90
|
-
placeholder="Your Email"
|
|
91
|
-
onChange={formik.handleChange}
|
|
92
|
-
value={formik.values.email}
|
|
93
|
-
/>
|
|
94
|
-
{isFormFieldValid(formik, "email") && <Message
|
|
95
|
-
className="text-red-500 text-sm"
|
|
96
|
-
severity="error"
|
|
97
|
-
text={formik?.errors?.email?.toString()}
|
|
98
|
-
/>}
|
|
99
|
-
</div>
|
|
100
|
-
<div className="flex flex-column gap-2 mt-4" style={{}}>
|
|
101
|
-
<label htmlFor="password" className="text-color-secondary">Password</label>
|
|
102
|
-
<Password
|
|
103
|
-
id="password"
|
|
104
|
-
value={password}
|
|
105
|
-
onChange={(e) => {
|
|
106
|
-
setPassword(e.target.value);
|
|
107
|
-
formik.setFieldValue("password", e.target.value);
|
|
108
|
-
}}
|
|
109
|
-
toggleMask
|
|
110
|
-
className={classNames("p-inputtext-sm w-full s-password-input", {
|
|
111
|
-
"p-invalid": isFormFieldValid(formik, "password"),
|
|
112
|
-
})}
|
|
113
|
-
inputClassName="w-full"
|
|
114
|
-
feedback={false}
|
|
115
|
-
/>
|
|
116
|
-
{isFormFieldValid(formik, "password") && <Message
|
|
117
|
-
className="text-red-500 text-sm"
|
|
118
|
-
severity="error"
|
|
119
|
-
text={formik?.errors?.password?.toString()}
|
|
120
|
-
/>}
|
|
121
|
-
</div>
|
|
122
|
-
<div className="flex align-items-center mt-4">
|
|
123
|
-
<Checkbox inputId="remember" onChange={(e: any) => setChecked(e.checked)} checked={checked} />
|
|
124
|
-
<label htmlFor="remember" className="ml-2">Remember me</label>
|
|
125
|
-
</div>
|
|
126
|
-
<div className="mt-4">
|
|
127
|
-
<Button className="w-full secondary-bg-color" label="Sign in" style={{ borderColor: 'currentcolor' }} />
|
|
128
|
-
</div>
|
|
129
|
-
</Form>
|
|
130
|
-
)}
|
|
131
|
-
</Formik>
|
|
132
|
-
<Divider align="center">
|
|
133
|
-
<div className="inline-flex align-items-center text-400">
|
|
134
|
-
or continue with
|
|
135
|
-
</div>
|
|
136
|
-
</Divider>
|
|
137
|
-
<div className="text-center">
|
|
138
|
-
<div className="text-sm text-400">
|
|
139
|
-
Don’t have an account ? <Link href="/auth/register">Sign up</Link>
|
|
140
|
-
</div>
|
|
141
|
-
</div>
|
|
142
|
-
<SocialMediaLogin />
|
|
143
|
-
</>
|
|
144
|
-
</div>
|
|
145
|
-
</div>
|
|
146
|
-
</div>
|
|
147
|
-
<div className="col-12 md:col-12 lg:col-6 hidden lg:block p-0">
|
|
148
|
-
<AuthBanner></AuthBanner>
|
|
149
|
-
</div>
|
|
150
|
-
</div>
|
|
151
|
-
</div>
|
|
152
|
-
);
|
|
153
|
-
};
|
|
154
|
-
|
|
155
|
-
export default Login;
|
|
@@ -1,239 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
|
|
3
|
-
import { useRegisterMutation } from "@/redux/api/authApi";
|
|
4
|
-
import { FetchBaseQueryError } from "@reduxjs/toolkit/query/react";
|
|
5
|
-
import { useFormik } from "formik";
|
|
6
|
-
import Link from "next/link";
|
|
7
|
-
import { useRouter } from "next/navigation";
|
|
8
|
-
import { Button } from "primereact/button";
|
|
9
|
-
import { Checkbox } from "primereact/checkbox";
|
|
10
|
-
import { Divider } from "primereact/divider";
|
|
11
|
-
import { InputText } from "primereact/inputtext";
|
|
12
|
-
import { Message } from "primereact/message";
|
|
13
|
-
import { Password } from "primereact/password";
|
|
14
|
-
import { Toast } from "primereact/toast";
|
|
15
|
-
import { classNames } from "primereact/utils";
|
|
16
|
-
import { ChangeEventHandler, useEffect, useRef, useState } from "react";
|
|
17
|
-
import * as Yup from "yup";
|
|
18
|
-
import AuthBanner from "../common/AuthBanner";
|
|
19
|
-
import { SocialMediaLogin } from "../common/SocialMediaLogin";
|
|
20
|
-
|
|
21
|
-
const Register = () => {
|
|
22
|
-
const toast = useRef<Toast>(null);
|
|
23
|
-
const [password, setPassword] = useState("");
|
|
24
|
-
const [checked, setChecked] = useState<boolean>(false);
|
|
25
|
-
const [showPassword, setShowPassword] = useState(false);
|
|
26
|
-
const [user, setUser] = useState({
|
|
27
|
-
name: "",
|
|
28
|
-
email: "",
|
|
29
|
-
password: "",
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
const validationSchema = Yup.object({
|
|
33
|
-
username: Yup.string().required("User Name is required"),
|
|
34
|
-
email: Yup.string()
|
|
35
|
-
.email("Invalid email address")
|
|
36
|
-
.required("Email is required"),
|
|
37
|
-
password: Yup.string().required("Password is required"),
|
|
38
|
-
});
|
|
39
|
-
|
|
40
|
-
const router = useRouter();
|
|
41
|
-
|
|
42
|
-
const isFormFieldValid = (formik: any, fieldName: string) =>
|
|
43
|
-
formik.touched[fieldName] && formik.errors[fieldName];
|
|
44
|
-
|
|
45
|
-
const [register, { isLoading, error, isSuccess,data }] = useRegisterMutation();
|
|
46
|
-
|
|
47
|
-
const onChange: ChangeEventHandler<HTMLInputElement> = (e) => {
|
|
48
|
-
setUser({ ...user, [e.target.name]: e.target.value });
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
const initialValues = {
|
|
52
|
-
username: "",
|
|
53
|
-
email: "",
|
|
54
|
-
password: "",
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
const formik = useFormik({
|
|
58
|
-
initialValues,
|
|
59
|
-
validationSchema,
|
|
60
|
-
enableReinitialize: true,
|
|
61
|
-
onSubmit: async (values) => {
|
|
62
|
-
try {
|
|
63
|
-
const userData = {
|
|
64
|
-
username: values.username,
|
|
65
|
-
email: values.email,
|
|
66
|
-
password: values.password,
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
await register(userData);
|
|
70
|
-
} catch (err) {
|
|
71
|
-
console.log('inside', err);
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
|
|
76
|
-
const showError = () => {
|
|
77
|
-
if (error) {
|
|
78
|
-
if ("data" in error) {
|
|
79
|
-
const apiError = error as FetchBaseQueryError;
|
|
80
|
-
const errorMessages = Array.isArray(apiError.data?.message)
|
|
81
|
-
? apiError.data?.message
|
|
82
|
-
: [apiError.data?.message];
|
|
83
|
-
|
|
84
|
-
toast.current?.show({
|
|
85
|
-
severity: "error",
|
|
86
|
-
summary: "Error",
|
|
87
|
-
detail: errorMessages.join(", "),
|
|
88
|
-
life: 3000,
|
|
89
|
-
});
|
|
90
|
-
} else {
|
|
91
|
-
const serializedError = error as Error;
|
|
92
|
-
toast.current?.show({
|
|
93
|
-
severity: "error",
|
|
94
|
-
summary: "Error",
|
|
95
|
-
detail: serializedError.message || "An error occurred",
|
|
96
|
-
life: 3000,
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
};
|
|
101
|
-
|
|
102
|
-
useEffect(() => {
|
|
103
|
-
if (error) {
|
|
104
|
-
showError();
|
|
105
|
-
}
|
|
106
|
-
}, [error]);
|
|
107
|
-
|
|
108
|
-
useEffect(() => {
|
|
109
|
-
if (isSuccess) {
|
|
110
|
-
router.replace("/auth/login");
|
|
111
|
-
}
|
|
112
|
-
}, [isSuccess])
|
|
113
|
-
|
|
114
|
-
return (
|
|
115
|
-
<div className="h-screen">
|
|
116
|
-
<Toast ref={toast} />
|
|
117
|
-
<div className="grid m-0 h-full">
|
|
118
|
-
<div className="col-12 md:col-12 lg:col-6">
|
|
119
|
-
<div className="flex justify-content-center align-items-center h-full">
|
|
120
|
-
<div className="col-12 sm:col-8">
|
|
121
|
-
<h2 className="text-4xl text-semibold text-start secondary-color mb-0">
|
|
122
|
-
Sign up to Radix Solutions
|
|
123
|
-
</h2>
|
|
124
|
-
<p className="text-sm">Create your account</p>
|
|
125
|
-
<form onSubmit={formik.handleSubmit}>
|
|
126
|
-
<div className="flex flex-column gap-2">
|
|
127
|
-
<label
|
|
128
|
-
htmlFor="username"
|
|
129
|
-
className="text-color-secondary"
|
|
130
|
-
>
|
|
131
|
-
Username
|
|
132
|
-
</label>
|
|
133
|
-
<InputText
|
|
134
|
-
id="username"
|
|
135
|
-
name="username"
|
|
136
|
-
placeholder="username"
|
|
137
|
-
onChange={formik.handleChange}
|
|
138
|
-
value={formik.values.username}
|
|
139
|
-
className={classNames("p-inputtext-sm w-full", {
|
|
140
|
-
"p-invalid": isFormFieldValid(formik, "name"),
|
|
141
|
-
})}
|
|
142
|
-
/>
|
|
143
|
-
{isFormFieldValid(formik, "username") && <Message
|
|
144
|
-
className="text-red-500 text-sm"
|
|
145
|
-
severity="error"
|
|
146
|
-
text={formik?.errors?.username?.toString()}
|
|
147
|
-
/>}
|
|
148
|
-
</div>
|
|
149
|
-
<div className="flex flex-column gap-2 mt-4">
|
|
150
|
-
<label htmlFor="email" className="text-color-secondary">
|
|
151
|
-
Email
|
|
152
|
-
</label>
|
|
153
|
-
{/* <img
|
|
154
|
-
style={{ cursor: "pointer" }}
|
|
155
|
-
src={`/images/mail-icon.png`}
|
|
156
|
-
alt="Solid"
|
|
157
|
-
/> */}
|
|
158
|
-
<InputText
|
|
159
|
-
id="email"
|
|
160
|
-
name="email"
|
|
161
|
-
placeholder="Yourgmail@123.com"
|
|
162
|
-
onChange={formik.handleChange}
|
|
163
|
-
value={formik.values.email}
|
|
164
|
-
className={classNames("p-inputtext-sm w-full", {
|
|
165
|
-
"p-invalid": isFormFieldValid(formik, "name"),
|
|
166
|
-
})}
|
|
167
|
-
/>
|
|
168
|
-
{isFormFieldValid(formik, "email") && <Message
|
|
169
|
-
className="text-red-500 text-sm"
|
|
170
|
-
severity="error" text={formik?.errors?.email?.toString()}
|
|
171
|
-
/>}
|
|
172
|
-
</div>
|
|
173
|
-
<div className="flex flex-column gap-2 mt-4" style={{}}>
|
|
174
|
-
<label
|
|
175
|
-
htmlFor="password"
|
|
176
|
-
className="text-color-secondary"
|
|
177
|
-
>
|
|
178
|
-
Password
|
|
179
|
-
</label>
|
|
180
|
-
<Password
|
|
181
|
-
id="password"
|
|
182
|
-
name="password"
|
|
183
|
-
value={formik.values.password}
|
|
184
|
-
onChange={formik.handleChange}
|
|
185
|
-
// value={formik.values.password}}
|
|
186
|
-
toggleMask
|
|
187
|
-
inputClassName="w-full"
|
|
188
|
-
className={classNames("p-inputtext-sm w-full s-password-input", {
|
|
189
|
-
"p-invalid": isFormFieldValid(formik, "password"),
|
|
190
|
-
})}
|
|
191
|
-
/>
|
|
192
|
-
{isFormFieldValid(formik, "password") && <Message
|
|
193
|
-
className="text-red-500 text-sm"
|
|
194
|
-
severity="error" text={formik?.errors?.password?.toString()}
|
|
195
|
-
/>}
|
|
196
|
-
</div>
|
|
197
|
-
<div className="flex align-items-center mt-4">
|
|
198
|
-
<Checkbox
|
|
199
|
-
inputId="remember"
|
|
200
|
-
onChange={(e: any) => setChecked(e.checked)}
|
|
201
|
-
checked={checked}
|
|
202
|
-
/>
|
|
203
|
-
<label htmlFor="remember" className="ml-2">
|
|
204
|
-
Remember me
|
|
205
|
-
</label>
|
|
206
|
-
</div>
|
|
207
|
-
<div className="mt-4">
|
|
208
|
-
<Button
|
|
209
|
-
className="w-full secondary-bg-color"
|
|
210
|
-
label="Create your account"
|
|
211
|
-
style={{ borderColor: "currentcolor" }}
|
|
212
|
-
type="submit"
|
|
213
|
-
/>
|
|
214
|
-
</div>
|
|
215
|
-
</form>
|
|
216
|
-
<Divider align="center">
|
|
217
|
-
<div className="inline-flex align-items-center text-400">
|
|
218
|
-
or continue with
|
|
219
|
-
</div>
|
|
220
|
-
</Divider>
|
|
221
|
-
<div className="text-center">
|
|
222
|
-
<div className="text-sm text-400">
|
|
223
|
-
Don’t have an account ?{" "}
|
|
224
|
-
<Link href="/auth/login">Sign in</Link>
|
|
225
|
-
</div>
|
|
226
|
-
</div>
|
|
227
|
-
<SocialMediaLogin />
|
|
228
|
-
</div>
|
|
229
|
-
</div>
|
|
230
|
-
</div>
|
|
231
|
-
<div className="col-12 md:col-12 lg:col-6 hidden lg:block p-0">
|
|
232
|
-
<AuthBanner></AuthBanner>
|
|
233
|
-
</div>
|
|
234
|
-
</div>
|
|
235
|
-
</div>
|
|
236
|
-
);
|
|
237
|
-
};
|
|
238
|
-
|
|
239
|
-
export default Register;
|
|
@@ -1,145 +0,0 @@
|
|
|
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
|