@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,15 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
interface MediaProps {
|
|
3
|
-
size?: any
|
|
4
|
-
}
|
|
5
|
-
export const ExcelSvg = (props: MediaProps) => {
|
|
6
|
-
const { size } = props;
|
|
7
|
-
return (
|
|
8
|
-
<svg width={size ? size : 80} height={size ? size : 80} viewBox="0 0 80 80" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
9
|
-
<path d="M15 10.4147V10.4146C14.9999 5.29959 19.6888 1 25.3892 1H53.5858L77 24.4142V69.5852C77 74.7288 72.5287 78.9999 66.8806 78.9999H25.1406C19.47 78.9999 15 74.7276 15 69.5852V10.4147Z" fill="white" stroke="#DBDBDB" stroke-width="2" />
|
|
10
|
-
<path d="M54.0513 16.32V0L78 24H62.0342C54.8496 24 53.7187 18.88 54.0513 16.32Z" fill="#D4D4D8" />
|
|
11
|
-
<rect x="2" y="38" width="51" height="30" rx="6" fill="#079455" />
|
|
12
|
-
<path d="M13.7955 46.9091L16.4354 51.3707H16.5376L19.1903 46.9091H22.3161L18.321 53.4545L22.4055 60H19.2223L16.5376 55.532H16.4354L13.7507 60H10.5803L14.6776 53.4545L10.657 46.9091H13.7955ZM24.0675 60V46.9091H26.8352V57.718H32.4474V60H24.0675ZM41.3819 50.674C41.3308 50.1584 41.1113 49.7578 40.7235 49.4723C40.3358 49.1868 39.8095 49.044 39.1447 49.044C38.693 49.044 38.3116 49.108 38.0005 49.2358C37.6895 49.3594 37.4508 49.532 37.2846 49.7536C37.1227 49.9751 37.0417 50.2266 37.0417 50.5078C37.0332 50.7422 37.0822 50.9467 37.1887 51.1214C37.2995 51.2962 37.4508 51.4474 37.6426 51.5753C37.8343 51.6989 38.0559 51.8075 38.3074 51.9013C38.5588 51.9908 38.8272 52.0675 39.1127 52.1314L40.2889 52.4126C40.8599 52.5405 41.3841 52.7109 41.8613 52.924C42.3386 53.1371 42.752 53.3991 43.1014 53.7102C43.4508 54.0213 43.7214 54.3878 43.9132 54.8097C44.1092 55.2315 44.2093 55.7152 44.2136 56.2607C44.2093 57.0618 44.0048 57.7564 43.6 58.3445C43.1994 58.9283 42.6199 59.3821 41.8613 59.706C41.1071 60.0256 40.1973 60.1854 39.1319 60.1854C38.0751 60.1854 37.1547 60.0234 36.3706 59.6996C35.5907 59.3757 34.9814 58.8963 34.5424 58.2614C34.1078 57.6222 33.8798 56.8317 33.8585 55.8899H36.5368C36.5666 56.3288 36.6923 56.6953 36.9139 56.9893C37.1397 57.2791 37.4402 57.4986 37.8152 57.6477C38.1944 57.7926 38.6227 57.8651 39.1 57.8651C39.5687 57.8651 39.9757 57.7969 40.3208 57.6605C40.6703 57.5241 40.9409 57.3345 41.1326 57.0916C41.3244 56.8487 41.4203 56.5696 41.4203 56.2543C41.4203 55.9602 41.3329 55.7131 41.1582 55.5128C40.9877 55.3125 40.7363 55.142 40.4039 55.0014C40.0758 54.8608 39.6731 54.733 39.1958 54.6179L37.7704 54.2599C36.6667 53.9915 35.7953 53.5717 35.1561 53.0007C34.5169 52.4297 34.1994 51.6605 34.2037 50.6932C34.1994 49.9006 34.4103 49.2081 34.8365 48.6158C35.2669 48.0234 35.8571 47.5611 36.6071 47.2287C37.3571 46.8963 38.2093 46.7301 39.1639 46.7301C40.1355 46.7301 40.9835 46.8963 41.7079 47.2287C42.4366 47.5611 43.0034 48.0234 43.4082 48.6158C43.813 49.2081 44.0218 49.8942 44.0346 50.674H41.3819Z" fill="white" />
|
|
13
|
-
</svg>
|
|
14
|
-
)
|
|
15
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import * as React from "react"
|
|
2
|
-
import { SVGProps } from "react"
|
|
3
|
-
const FileSvg = (props: SVGProps<SVGSVGElement>) => (
|
|
4
|
-
<svg
|
|
5
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
6
|
-
width={64}
|
|
7
|
-
height={64}
|
|
8
|
-
fill="none"
|
|
9
|
-
{...props}
|
|
10
|
-
className="solid-file-reader"
|
|
11
|
-
>
|
|
12
|
-
<path
|
|
13
|
-
fill="#F9F0FF"
|
|
14
|
-
d="M36.03 25.291a2 2 0 0 1-2-2V6.271H16a6 6 0 0 0-6 6v40.08a6 6 0 0 0 6 6h31.06a6.01 6.01 0 0 0 6-6v-27.06H36.03Z"
|
|
15
|
-
/>
|
|
16
|
-
<path fill="#722ED1" d="M51.88 21.291 38.03 7.441v13.85h13.85Z" />
|
|
17
|
-
</svg>
|
|
18
|
-
)
|
|
19
|
-
export default FileSvg
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
interface MediaProps {
|
|
3
|
-
size?: any
|
|
4
|
-
}
|
|
5
|
-
export const PDFSvg = (props: MediaProps) => {
|
|
6
|
-
const { size } = props;
|
|
7
|
-
return (
|
|
8
|
-
<svg width={size ? size : 80} height={size ? size : 80} viewBox="0 0 80 80" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
9
|
-
<path d="M15 10.4147V10.4146C14.9999 5.29959 19.6888 1 25.3892 1H53.5858L77 24.4142V69.5852C77 74.7288 72.5287 78.9999 66.8806 78.9999H25.1406C19.47 78.9999 15 74.7276 15 69.5852V10.4147Z" fill="white" stroke="#DBDBDB" stroke-width="2" />
|
|
10
|
-
<path d="M54.0513 16.32V0L78 24H62.0342C54.8496 24 53.7187 18.88 54.0513 16.32Z" fill="#D4D4D8" />
|
|
11
|
-
<rect x="2" y="38" width="52" height="30" rx="6" fill="#E62E05" />
|
|
12
|
-
<path d="M11.4718 60V46.9091H16.6365C17.6294 46.9091 18.4753 47.0987 19.1742 47.478C19.873 47.853 20.4057 48.375 20.7722 49.044C21.1429 49.7088 21.3283 50.4759 21.3283 51.3452C21.3283 52.2145 21.1408 52.9815 20.7658 53.6463C20.3908 54.3111 19.8475 54.8288 19.1358 55.1996C18.4284 55.5703 17.5719 55.7557 16.5662 55.7557H13.2743V53.5376H16.1188C16.6515 53.5376 17.0904 53.446 17.4355 53.2628C17.785 53.0753 18.0449 52.8175 18.2154 52.4893C18.3901 52.157 18.4775 51.7756 18.4775 51.3452C18.4775 50.9105 18.3901 50.5312 18.2154 50.2074C18.0449 49.8793 17.785 49.6257 17.4355 49.4467C17.0861 49.2635 16.6429 49.1719 16.106 49.1719H14.2395V60H11.4718ZM23.1261 60V46.9091H28.2908C29.2837 46.9091 30.1296 47.0987 30.8285 47.478C31.5273 47.853 32.06 48.375 32.4265 49.044C32.7972 49.7088 32.9826 50.4759 32.9826 51.3452C32.9826 52.2145 32.7951 52.9815 32.4201 53.6463C32.0451 54.3111 31.5018 54.8288 30.7901 55.1996C30.0827 55.5703 29.2262 55.7557 28.2205 55.7557H24.9286V53.5376H27.7731C28.3058 53.5376 28.7447 53.446 29.0898 53.2628C29.4393 53.0753 29.6992 52.8175 29.8697 52.4893C30.0444 52.157 30.1317 51.7756 30.1317 51.3452C30.1317 50.9105 30.0444 50.5312 29.8697 50.2074C29.6992 49.8793 29.4393 49.6257 29.0898 49.4467C28.7404 49.2635 28.2972 49.1719 27.7603 49.1719H25.8938V60H23.1261ZM34.2818 49.1911V46.9091H45.0332V49.1911H41.0254V60H38.2896V49.1911H34.2818Z" fill="white" />
|
|
13
|
-
</svg>
|
|
14
|
-
)
|
|
15
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import React from 'react'
|
|
2
|
-
|
|
3
|
-
export const RightArrowSvg = () => {
|
|
4
|
-
return (
|
|
5
|
-
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none">
|
|
6
|
-
<path d="M11.6667 11L10.7167 10.0667L12.1167 8.66667H2V7.33333H12.1167L10.7333 5.93333L11.6833 5L14.6667 8L11.6667 11Z" fill="black" fill-opacity="0.45" />
|
|
7
|
-
</svg>
|
|
8
|
-
)
|
|
9
|
-
}
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
interface Props {
|
|
3
|
-
className?: string,
|
|
4
|
-
value: string,
|
|
5
|
-
severity: string,
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
const getSeverityColor = (severity: string): { textColor: string; backgroundColor: string } => {
|
|
9
|
-
let textColor;
|
|
10
|
-
let backgroundColor;
|
|
11
|
-
|
|
12
|
-
switch (severity) {
|
|
13
|
-
case 'Delivered':
|
|
14
|
-
textColor = '#148C00';
|
|
15
|
-
backgroundColor = '#E8FFEA';
|
|
16
|
-
break;
|
|
17
|
-
case 'Returned':
|
|
18
|
-
textColor = '#D89100';
|
|
19
|
-
backgroundColor = '#FFF7E5';
|
|
20
|
-
break;
|
|
21
|
-
case 'Cancelled':
|
|
22
|
-
textColor = '#B50000';
|
|
23
|
-
backgroundColor = '#FFEAEA';
|
|
24
|
-
break;
|
|
25
|
-
case 'On The Way':
|
|
26
|
-
textColor = '#12415D';
|
|
27
|
-
backgroundColor = '#E3F5FF';
|
|
28
|
-
break;
|
|
29
|
-
default:
|
|
30
|
-
textColor = '#808080';
|
|
31
|
-
backgroundColor = '#FFF7E5';
|
|
32
|
-
}
|
|
33
|
-
return { textColor, backgroundColor };
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
export const CustomTag = (props: Props) => {
|
|
37
|
-
const { className, value, severity } = props;
|
|
38
|
-
const severityColor = getSeverityColor(severity);
|
|
39
|
-
|
|
40
|
-
return (
|
|
41
|
-
<div className='flex'>
|
|
42
|
-
<div
|
|
43
|
-
className={`border-round text-xs font-semibold ${className}`}
|
|
44
|
-
style={{ backgroundColor: severityColor.backgroundColor, color: severityColor.textColor, padding: '0.5rem 0.75rem' }}
|
|
45
|
-
>
|
|
46
|
-
{value}
|
|
47
|
-
</div>
|
|
48
|
-
</div>
|
|
49
|
-
)
|
|
50
|
-
}
|
|
@@ -1,140 +0,0 @@
|
|
|
1
|
-
"use client"
|
|
2
|
-
import { AppTitle } from "@/helpers/AppTitle";
|
|
3
|
-
import { useLazyGetAuthSettingsQuery } from "@/redux/api/solidSettingsApi";
|
|
4
|
-
import { toggleTheme } from "@/redux/features/themeSlice";
|
|
5
|
-
import { LayoutConfig } from "@/types";
|
|
6
|
-
import Link from "next/link";
|
|
7
|
-
import { usePathname, useRouter } from "next/navigation";
|
|
8
|
-
import { PrimeReactContext } from "primereact/api";
|
|
9
|
-
import { Button } from "primereact/button";
|
|
10
|
-
import { Dialog } from "primereact/dialog";
|
|
11
|
-
import { useContext, useEffect, useState } from "react";
|
|
12
|
-
import { useDispatch } from "react-redux";
|
|
13
|
-
import { LayoutContext } from "../layout/context/layoutcontext";
|
|
14
|
-
import Image from "next/image";
|
|
15
|
-
import SolidLogo from '../../resources/images/SS-Logo.png'
|
|
16
|
-
import { Divider } from "primereact/divider";
|
|
17
|
-
|
|
18
|
-
export const AuthLayout = ({ children }: { children: React.ReactNode }) => {
|
|
19
|
-
const [trigger, { data: solidSettingsData }] = useLazyGetAuthSettingsQuery()
|
|
20
|
-
const [allowRegistration, setAllowRegistration] = useState<boolean | null>(null);
|
|
21
|
-
const [isRestricted, setIsRestricted] = useState(false);
|
|
22
|
-
const pathname = usePathname();
|
|
23
|
-
const router = useRouter();
|
|
24
|
-
|
|
25
|
-
const { changeTheme } = useContext(PrimeReactContext);
|
|
26
|
-
const { layoutConfig, setLayoutConfig } = useContext(LayoutContext);
|
|
27
|
-
const dispatch = useDispatch();
|
|
28
|
-
const _changeTheme = (theme: string, colorScheme: string) => {
|
|
29
|
-
changeTheme?.(layoutConfig.theme, theme, 'theme-css', () => {
|
|
30
|
-
setLayoutConfig((prevState: LayoutConfig) => ({ ...prevState, theme, colorScheme }));
|
|
31
|
-
});
|
|
32
|
-
};
|
|
33
|
-
useEffect(() => {
|
|
34
|
-
const theme = solidSettingsData?.data?.authPagesTheme; // 'dark' or 'light'
|
|
35
|
-
if (theme) {
|
|
36
|
-
dispatch(toggleTheme()); // Dispatch Redux action
|
|
37
|
-
_changeTheme(
|
|
38
|
-
theme === "dark" ? "solid-dark-purple" : "solid-light-purple",
|
|
39
|
-
theme
|
|
40
|
-
);
|
|
41
|
-
}
|
|
42
|
-
}, [solidSettingsData]);
|
|
43
|
-
useEffect(() => {
|
|
44
|
-
// Fetch settings if not already available
|
|
45
|
-
trigger("");
|
|
46
|
-
|
|
47
|
-
const allowPublicRegistration = solidSettingsData?.data?.allowPublicRegistration;
|
|
48
|
-
|
|
49
|
-
if (allowPublicRegistration === false) {
|
|
50
|
-
setAllowRegistration(false);
|
|
51
|
-
if (pathname === "/auth/register") {
|
|
52
|
-
setIsRestricted(true);
|
|
53
|
-
} else {
|
|
54
|
-
setIsRestricted(false);
|
|
55
|
-
}
|
|
56
|
-
} else if (allowPublicRegistration === true) {
|
|
57
|
-
setAllowRegistration(true);
|
|
58
|
-
setIsRestricted(false);
|
|
59
|
-
}
|
|
60
|
-
}, [solidSettingsData, pathname, trigger]);
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
if (allowRegistration === null) return null;
|
|
64
|
-
|
|
65
|
-
const authChildren = allowRegistration || pathname !== "/auth/register" ? children : null;
|
|
66
|
-
const handleRegistration = () => {
|
|
67
|
-
router.push("/auth/login");
|
|
68
|
-
setIsRestricted(false);
|
|
69
|
-
}
|
|
70
|
-
return (
|
|
71
|
-
<div className={`solid-auth-theme-wrapper ${solidSettingsData?.data?.authPagesLayout || 'center'}`}>
|
|
72
|
-
<div className={`${solidSettingsData?.data?.authPagesLayout !== 'center' ? 'grid w-full h-full m-0' : ''}`}>
|
|
73
|
-
{solidSettingsData?.data?.authPagesLayout === 'left' &&
|
|
74
|
-
<div className='col-6 flex align-items-center justify-content-center solid-login-dark-bg'>
|
|
75
|
-
<div className="w-full">
|
|
76
|
-
{authChildren}
|
|
77
|
-
</div>
|
|
78
|
-
</div>
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
<div
|
|
82
|
-
className={`${solidSettingsData?.data?.authPagesLayout !== 'center' ? 'col-6 position-relative' : ''}
|
|
83
|
-
${solidSettingsData?.data?.authPagesLayout === 'left' ? 'solid-left-layout' : ''}
|
|
84
|
-
${solidSettingsData?.data?.authPagesLayout === 'right' ? 'solid-right-layout' : ''}`.trim()}
|
|
85
|
-
>
|
|
86
|
-
{solidSettingsData?.data?.authPagesLayout !== 'center' &&
|
|
87
|
-
<div className="solid-logo flex align-items-center gap-3">
|
|
88
|
-
<Image
|
|
89
|
-
alt="solid logo"
|
|
90
|
-
src={SolidLogo}
|
|
91
|
-
className="relative"
|
|
92
|
-
fill
|
|
93
|
-
/>
|
|
94
|
-
<AppTitle title={solidSettingsData} />
|
|
95
|
-
</div>
|
|
96
|
-
}
|
|
97
|
-
</div>
|
|
98
|
-
|
|
99
|
-
{solidSettingsData?.data?.authPagesLayout === 'center' && <div className="solid-center-layout">
|
|
100
|
-
{authChildren}
|
|
101
|
-
</div>}
|
|
102
|
-
{solidSettingsData?.data?.authPagesLayout === 'right' &&
|
|
103
|
-
<div className='col-6 flex align-items-center justify-content-center solid-login-dark-bg'>
|
|
104
|
-
<div className="w-full">
|
|
105
|
-
{authChildren}
|
|
106
|
-
</div>
|
|
107
|
-
</div>
|
|
108
|
-
}
|
|
109
|
-
</div>
|
|
110
|
-
<div className={`absolute ${solidSettingsData?.data?.authPagesLayout === 'center' ? 'solid-auth-footer flex align-items-center justify-content-between' : 'solid-auth-footer-2 grid'}`}>
|
|
111
|
-
<div className={solidSettingsData?.data?.authPagesLayout !== 'center' ? 'col-6 flex justify-content-center' : ''}>
|
|
112
|
-
<p className={`solid-auth-input-label text-sm m-0 ${solidSettingsData?.data?.authPagesLayout === 'right' ? 'right' : ''}`}>Made with <svg className="mx-1" width="12px" height="12px" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><g id="SVGRepo_bgCarrier" stroke-width="0"></g><g id="SVGRepo_tracerCarrier" stroke-linecap="round" stroke-linejoin="round"></g><g id="SVGRepo_iconCarrier"> <path d="M1.24264 8.24264L8 15L14.7574 8.24264C15.553 7.44699 16 6.36786 16 5.24264V5.05234C16 2.8143 14.1857 1 11.9477 1C10.7166 1 9.55233 1.55959 8.78331 2.52086L8 3.5L7.21669 2.52086C6.44767 1.55959 5.28338 1 4.05234 1C1.8143 1 0 2.8143 0 5.05234V5.24264C0 6.36786 0.44699 7.44699 1.24264 8.24264Z" fill="#ff0000"></path> </g></svg> in Mumbai</p>
|
|
113
|
-
</div>
|
|
114
|
-
<div className={solidSettingsData?.data?.authPagesLayout !== 'center' ? 'col-6 flex justify-content-center' : ''}>
|
|
115
|
-
<div className={`flex align-items-center gap-5 solid-auth-subtitle ${solidSettingsData?.data?.authPagesLayout === 'left' ? 'left' : ''}`}>
|
|
116
|
-
<p className="m-0 "> <Link className="text-sm no-underline font-normal" href={solidSettingsData ? solidSettingsData?.data?.appTnc : "#"}>Terms of Service</Link></p>
|
|
117
|
-
<p className="m-0 "> <Link className="text-sm no-underline font-normal" href={solidSettingsData ? solidSettingsData?.data?.appPrivacyPolicy : "#"}>Privacy Policy.</Link></p>
|
|
118
|
-
</div>
|
|
119
|
-
</div>
|
|
120
|
-
</div>
|
|
121
|
-
<Dialog
|
|
122
|
-
visible={isRestricted}
|
|
123
|
-
onHide={handleRegistration}
|
|
124
|
-
header="Access Restricted"
|
|
125
|
-
headerClassName="py-2" contentClassName="px-0 pb-0"
|
|
126
|
-
footer={
|
|
127
|
-
<div className="flex align-items-center justify-content-start">
|
|
128
|
-
<Button label="Close" onClick={handleRegistration} size="small" />
|
|
129
|
-
</div>
|
|
130
|
-
}
|
|
131
|
-
draggable={false}
|
|
132
|
-
>
|
|
133
|
-
<Divider className="m-0" />
|
|
134
|
-
<div className="p-4">
|
|
135
|
-
<p>Sign-up is not available. Please contact the admin.</p>
|
|
136
|
-
</div>
|
|
137
|
-
</Dialog>
|
|
138
|
-
</div>
|
|
139
|
-
)
|
|
140
|
-
}
|
|
@@ -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;
|