@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,803 +0,0 @@
|
|
|
1
|
-
// @ts-nocheck
|
|
2
|
-
|
|
3
|
-
"use client";
|
|
4
|
-
import { createPermission, deletePermission, updatePermission } from "@/helpers/permissions";
|
|
5
|
-
import { createSolidEntityApi } from "@/redux/api/solidEntityApi";
|
|
6
|
-
import { useGetSolidViewLayoutQuery } from "@/redux/api/solidViewApi";
|
|
7
|
-
import { useLazyCheckIfPermissionExistsQuery } from "@/redux/api/userApi";
|
|
8
|
-
import { DropResult } from "@hello-pangea/dnd";
|
|
9
|
-
import Link from "next/link";
|
|
10
|
-
import { FilterMatchMode } from "primereact/api";
|
|
11
|
-
import { Button } from "primereact/button";
|
|
12
|
-
import { Dialog } from "primereact/dialog";
|
|
13
|
-
import qs from "qs";
|
|
14
|
-
import { useEffect, useRef, useState } from "react";
|
|
15
|
-
import { SolidCreateButton } from "../common/SolidCreateButton";
|
|
16
|
-
import { SolidGlobalSearchElement } from "../common/SolidGlobalSearchElement";
|
|
17
|
-
import KanbanBoard from "./KanbanBoard";
|
|
18
|
-
import CompactImage from '../../../resources/images/layout/images/compact.png';
|
|
19
|
-
import CozyImage from '../../../resources/images/layout/images/cozy.png';
|
|
20
|
-
import ComfortableImage from '../../../resources/images/layout/images/comfortable.png';
|
|
21
|
-
import ListImage from '../../../resources/images/layout/images/cozy.png';
|
|
22
|
-
import KanbanImage from '../../../resources/images/layout/images/kanban.png';
|
|
23
|
-
import { capitalize } from "lodash";
|
|
24
|
-
import Lightbox from "yet-another-react-lightbox";
|
|
25
|
-
import Counter from "yet-another-react-lightbox/plugins/counter";
|
|
26
|
-
import Download from "yet-another-react-lightbox/plugins/download";
|
|
27
|
-
import "yet-another-react-lightbox/styles.css";
|
|
28
|
-
import "yet-another-react-lightbox/plugins/counter.css";
|
|
29
|
-
import { useRouter, useSearchParams } from "next/navigation";
|
|
30
|
-
import { SolidKanbanViewConfigure } from "./SolidKanbanViewConfigure";
|
|
31
|
-
import { KanbanUserViewLayout } from "./KanbanUserViewLayout";
|
|
32
|
-
import { useSelector } from "react-redux";
|
|
33
|
-
import { queryObjectToQueryString, queryStringToQueryObject } from "../list/SolidListView";
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
import { Toast } from "primereact/toast";
|
|
37
|
-
import { useSelector } from "react-redux";
|
|
38
|
-
import { queryObjectToQueryString, queryStringToQueryObject } from "../list/SolidListView";
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
type SolidKanbanViewParams = {
|
|
43
|
-
moduleName: string;
|
|
44
|
-
modelName: string;
|
|
45
|
-
embeded: boolean;
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
export const SolidKanbanView = (params: SolidKanbanViewParams) => {
|
|
50
|
-
const { user } = useSelector((state: any) => state.auth);
|
|
51
|
-
|
|
52
|
-
const solidGlobalSearchElementRef = useRef();
|
|
53
|
-
const searchParams = useSearchParams().toString(); // Converts the query params to a string
|
|
54
|
-
const router = useRouter();
|
|
55
|
-
// TODO: The initial filter state will be created based on the fields which are present on this kanban view.
|
|
56
|
-
const [filters, setFilters] = useState<any>();
|
|
57
|
-
const [toPopulate, setToPopulate] = useState<string[]>([]);
|
|
58
|
-
const [toPopulateMedia, setToPopulateMedia] = useState<string[]>([]);
|
|
59
|
-
const [actionsAllowed, setActionsAllowed] = useState<string[]>([]);
|
|
60
|
-
const [showGlobalSearchElement, setShowGlobalSearchElement] = useState<boolean>(false);
|
|
61
|
-
const [showArchived, setShowArchived] = useState(false);
|
|
62
|
-
const sizeOptions = [
|
|
63
|
-
{ label: 'Compact', value: 'small', image: CompactImage },
|
|
64
|
-
{ label: 'Cozy', value: 'normal', image: CozyImage },
|
|
65
|
-
{ label: 'Comfortable', value: 'large', image: ComfortableImage }
|
|
66
|
-
]
|
|
67
|
-
const [size, setSize] = useState<string | any>(sizeOptions[1].value);
|
|
68
|
-
const [viewModes, setViewModes] = useState<any>([]);
|
|
69
|
-
const [groupByFieldName, setGroupByFieldName] = useState<string>("");
|
|
70
|
-
const [groupedView, setGroupedView] = useState(true);
|
|
71
|
-
const [triggerCheckIfPermissionExists] = useLazyCheckIfPermissionExistsQuery();
|
|
72
|
-
const [openLightbox, setOpenLightbox] = useState(false);
|
|
73
|
-
const [lightboxUrls, setLightboxUrls] = useState({});
|
|
74
|
-
const [filterQueryString, setFilterQueryString] = useState<any>();
|
|
75
|
-
const [isLayoutDialogVisible, setLayoutDialogVisible] = useState(false);
|
|
76
|
-
const toast = useRef<Toast>(null);
|
|
77
|
-
|
|
78
|
-
const pushFiltersToRouter = (filterQueryString: any) => {
|
|
79
|
-
router.push(`?${filterQueryString}`, undefined, { shallow: true });
|
|
80
|
-
};
|
|
81
|
-
|
|
82
|
-
useEffect(() => {
|
|
83
|
-
if (filterQueryString) {
|
|
84
|
-
pushFiltersToRouter(filterQueryString);
|
|
85
|
-
}
|
|
86
|
-
}, [filterQueryString]);
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
useEffect(() => {
|
|
91
|
-
const fetchPermissions = async () => {
|
|
92
|
-
if (params.modelName) {
|
|
93
|
-
const permissionNames = [
|
|
94
|
-
createPermission(params.modelName),
|
|
95
|
-
deletePermission(params.modelName),
|
|
96
|
-
updatePermission(params.modelName)
|
|
97
|
-
]
|
|
98
|
-
const queryData = {
|
|
99
|
-
permissionNames: permissionNames
|
|
100
|
-
};
|
|
101
|
-
const queryString = qs.stringify(queryData, {
|
|
102
|
-
encodeValuesOnly: true
|
|
103
|
-
});
|
|
104
|
-
const response = await triggerCheckIfPermissionExists(queryString);
|
|
105
|
-
setActionsAllowed(response.data.data);
|
|
106
|
-
}
|
|
107
|
-
};
|
|
108
|
-
fetchPermissions();
|
|
109
|
-
}, [params.modelName]);
|
|
110
|
-
|
|
111
|
-
const isFilterApplied = filters ? true : false;
|
|
112
|
-
|
|
113
|
-
// Create the RTK slices for this entity
|
|
114
|
-
const entityApi = createSolidEntityApi(params.modelName);
|
|
115
|
-
const {
|
|
116
|
-
useCreateSolidEntityMutation,
|
|
117
|
-
useDeleteMultipleSolidEntitiesMutation,
|
|
118
|
-
useDeleteSolidEntityMutation,
|
|
119
|
-
useGetSolidEntitiesQuery,
|
|
120
|
-
useGetSolidEntityByIdQuery,
|
|
121
|
-
useLazyGetSolidEntitiesQuery,
|
|
122
|
-
useGetSolidKanbanEntitiesQuery,
|
|
123
|
-
useLazyGetSolidKanbanEntitiesQuery,
|
|
124
|
-
useLazyGetSolidEntityByIdQuery,
|
|
125
|
-
usePrefetch,
|
|
126
|
-
useUpdateSolidEntityMutation,
|
|
127
|
-
usePatchUpdateSolidEntityMutation
|
|
128
|
-
} = entityApi;
|
|
129
|
-
|
|
130
|
-
// Get the kanban view layout & metadata first.
|
|
131
|
-
const kanbanViewMetaDataQs = qs.stringify({ ...params, viewType: 'kanban' }, {
|
|
132
|
-
encodeValuesOnly: true,
|
|
133
|
-
});
|
|
134
|
-
const [kanbanViewMetaData, setKanbanViewMetaData] = useState<any>({});
|
|
135
|
-
|
|
136
|
-
const {
|
|
137
|
-
data: solidKanbanViewMetaData,
|
|
138
|
-
error: solidKanbanViewMetaDataError,
|
|
139
|
-
isLoading: solidKanbanViewMetaDataIsLoading,
|
|
140
|
-
isError: solidKanbanViewMetaDataIsError
|
|
141
|
-
} = useGetSolidViewLayoutQuery(kanbanViewMetaDataQs);
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
const initialFilterMethod = () => {
|
|
146
|
-
|
|
147
|
-
const solidView = solidKanbanViewMetaData.data.solidView;
|
|
148
|
-
const solidFieldsMetadata = solidKanbanViewMetaData.data.solidFieldsMetadata;
|
|
149
|
-
|
|
150
|
-
const initialFilters: any = {};
|
|
151
|
-
const toPopulate: string[] = [];
|
|
152
|
-
const toPopulateMedia: string[] = [];
|
|
153
|
-
function extractFields(node: any, result: any = []) {
|
|
154
|
-
if (node.type === "field") {
|
|
155
|
-
result.push(node);
|
|
156
|
-
}
|
|
157
|
-
if (node.children) {
|
|
158
|
-
node.children.forEach((child: any) => extractFields(child, result));
|
|
159
|
-
}
|
|
160
|
-
return result;
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
const data = { /* Your JSON object here */ };
|
|
164
|
-
const layoutFields = extractFields(solidView.layout);
|
|
165
|
-
|
|
166
|
-
for (let i = 0; i < layoutFields.length; i++) {
|
|
167
|
-
const column = layoutFields[i];
|
|
168
|
-
const fieldMetadata = solidFieldsMetadata[column.attrs.name];
|
|
169
|
-
|
|
170
|
-
// Form the initial filters after iterating over the columns and field metadata.
|
|
171
|
-
if (['int', 'bigint', 'float', 'decimal'].includes(fieldMetadata.type)) {
|
|
172
|
-
// initialFilters[column.attrs.name] = { operator: FilterOperator.OR, constraints: [{ value: null, matchMode: FilterMatchMode.EQUALS }] }
|
|
173
|
-
initialFilters[column.attrs.name] = { value: null, matchMode: FilterMatchMode.EQUALS }
|
|
174
|
-
}
|
|
175
|
-
else if (['date', 'datetime', 'time', 'boolean'].includes(fieldMetadata.type)) {
|
|
176
|
-
// initialFilters[column.attrs.name] = { operator: FilterOperator.OR, constraints: [{ value: null, matchMode: FilterMatchMode.DATE_IS }] }
|
|
177
|
-
initialFilters[column.attrs.name] = { value: null, matchMode: FilterMatchMode.EQUALS }
|
|
178
|
-
}
|
|
179
|
-
else if (['relation', 'selectionStatic', 'selectionDynamic'].includes(fieldMetadata.type)) {
|
|
180
|
-
initialFilters[column.attrs.name] = { value: null, matchMode: FilterMatchMode.IN }
|
|
181
|
-
}
|
|
182
|
-
else {
|
|
183
|
-
// initialFilters[column.attrs.name] = { operator: FilterOperator.OR, constraints: [{ value: null, matchMode: FilterMatchMode.STARTS_WITH }] }
|
|
184
|
-
initialFilters[column.attrs.name] = { value: null, matchMode: FilterMatchMode.STARTS_WITH }
|
|
185
|
-
}
|
|
186
|
-
|
|
187
|
-
if (column.attrs.name === 'id') {
|
|
188
|
-
initialFilters[column.attrs.name] = { value: null, matchMode: FilterMatchMode.IN }
|
|
189
|
-
}
|
|
190
|
-
|
|
191
|
-
// Form the "toPopulate" array.
|
|
192
|
-
if (fieldMetadata.type === 'relation' && fieldMetadata.relationType === 'many-to-one') {
|
|
193
|
-
toPopulate.push(fieldMetadata.name);
|
|
194
|
-
}
|
|
195
|
-
if (fieldMetadata.type === 'mediaSingle' || fieldMetadata.type === 'mediaMultiple') {
|
|
196
|
-
toPopulateMedia.push(fieldMetadata.name);
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
// setFilters(initialFilters);
|
|
200
|
-
const recordsInSwimlane = solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.recordsInSwimlane ? solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.recordsInSwimlane : 25;
|
|
201
|
-
// setToPopulate(toPopulate);
|
|
202
|
-
// setToPopulateMedia(toPopulateMedia);
|
|
203
|
-
setRecordsInSwimlane(recordsInSwimlane);
|
|
204
|
-
setToPopulate(toPopulate);
|
|
205
|
-
setToPopulateMedia(toPopulateMedia);
|
|
206
|
-
return { recordsInSwimlane, toPopulate, toPopulateMedia }
|
|
207
|
-
}
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
// Initial Filter data
|
|
211
|
-
useEffect(() => {
|
|
212
|
-
|
|
213
|
-
if (solidKanbanViewMetaData) {
|
|
214
|
-
setKanbanViewMetaData(solidKanbanViewMetaData);
|
|
215
|
-
// initialFilterMethod();
|
|
216
|
-
const viewModes = solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.allowedViews && solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.allowedViews.length > 0 && solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.allowedViews.map((view: any) => { return { label: capitalize(view), value: view } });
|
|
217
|
-
setViewModes(viewModes);
|
|
218
|
-
if (solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.grouped !== false) {
|
|
219
|
-
setGroupByFieldName(solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.groupBy)
|
|
220
|
-
} else {
|
|
221
|
-
setGroupByFieldName("deletedTracker");
|
|
222
|
-
setGroupedView(false);
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
}, [solidKanbanViewMetaData]);
|
|
226
|
-
|
|
227
|
-
// All kanban view state.
|
|
228
|
-
const [kanbanViewData, setKanbanViewData] = useState<any>([]);
|
|
229
|
-
const [kanbanLoadMoreData, setKanbanLoadMoreData] = useState<any>({});
|
|
230
|
-
const [recordsInSwimlane, setRecordsInSwimlane] = useState(25);
|
|
231
|
-
const [selectedRecords, setSelectedRecords] = useState<any[]>([]);
|
|
232
|
-
const [loading, setLoading] = useState<boolean>(true);
|
|
233
|
-
const [isDialogVisible, setDialogVisible] = useState(false);
|
|
234
|
-
const [createButtonUrl, setCreateButtonUrl] = useState<string>();
|
|
235
|
-
const [editButtonUrl, setEditButtonUrl] = useState<string>();
|
|
236
|
-
const [columnsCount, setColumnsCount] = useState(5);
|
|
237
|
-
const [swimLaneCurrentPageNumber, setSwimLaneCurrentPageNumber] = useState(1);
|
|
238
|
-
const [queryDataLoaded, setQueryDataLoaded] = useState(false);
|
|
239
|
-
const [showSaveFilterPopup, setShowSaveFilterPopup] = useState<boolean>(false);
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
const showToast = (severity: "success" | "error", summary: string, detail: string) => {
|
|
243
|
-
toast.current?.show({
|
|
244
|
-
severity,
|
|
245
|
-
summary,
|
|
246
|
-
detail,
|
|
247
|
-
life: 3000,
|
|
248
|
-
});
|
|
249
|
-
};
|
|
250
|
-
// Get the kanban view data.
|
|
251
|
-
// const [triggerGetSolidEntitiesForKanban, { data: solidEntityKanbanViewData, isLoading, error }] = useLazyGetSolidKanbanEntitiesQuery();
|
|
252
|
-
const [triggerGetSolidEntities, { data: solidEntityKanbanViewData, isLoading, error }] = useLazyGetSolidEntitiesQuery();
|
|
253
|
-
|
|
254
|
-
// Delete mutation
|
|
255
|
-
const [
|
|
256
|
-
deleteManySolidEntities,
|
|
257
|
-
{
|
|
258
|
-
isLoading: isSolidEntitiesDeleted,
|
|
259
|
-
isSuccess: isDeleteSolidEntitiesSucess,
|
|
260
|
-
isError: isSolidEntitiesDeleteError,
|
|
261
|
-
error: SolidEntitiesDeleteError,
|
|
262
|
-
data: DeletedSolidEntities,
|
|
263
|
-
},
|
|
264
|
-
] = useDeleteMultipleSolidEntitiesMutation();
|
|
265
|
-
const [
|
|
266
|
-
patchKanbanView,
|
|
267
|
-
{ isSuccess: isKanbanUpdateSuccessfull, isError: isKanbanUpdateError, error: kanbanUpdateError },
|
|
268
|
-
] = usePatchUpdateSolidEntityMutation();
|
|
269
|
-
|
|
270
|
-
// After data is fetched populate the kanban view state so as to be able to render the data.
|
|
271
|
-
useEffect(() => {
|
|
272
|
-
if (solidEntityKanbanViewData) {
|
|
273
|
-
const latestKanbanGroupData = [...kanbanViewData, ...solidEntityKanbanViewData?.groupRecords]
|
|
274
|
-
setKanbanViewData(latestKanbanGroupData);
|
|
275
|
-
const loadmoredata = Object.entries(latestKanbanGroupData).reduce((acc: any, [key, value]: any) => {
|
|
276
|
-
acc[value.groupName] = {
|
|
277
|
-
offset: (value.groupData.meta.currentPage - 1) * value.groupData.meta.perPage,
|
|
278
|
-
limit: value.groupData.meta.perPage,
|
|
279
|
-
count: value.groupData.meta.totalRecords
|
|
280
|
-
};
|
|
281
|
-
return acc;
|
|
282
|
-
}, {});
|
|
283
|
-
|
|
284
|
-
setKanbanLoadMoreData(loadmoredata)
|
|
285
|
-
setLoading(false);
|
|
286
|
-
}
|
|
287
|
-
}, [solidEntityKanbanViewData]);
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
useEffect(() => {
|
|
293
|
-
if (solidKanbanViewMetaData) {
|
|
294
|
-
const createActionUrl = solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.createAction && solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.createAction?.type === "custom" ? solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.createAction?.customComponent : "form/new";
|
|
295
|
-
const editActionUrl = solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.editAction && solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.editAction?.type === "custom" ? solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.editAction?.customComponent : "form";
|
|
296
|
-
if (createActionUrl) {
|
|
297
|
-
setCreateButtonUrl(createActionUrl)
|
|
298
|
-
}
|
|
299
|
-
if (editActionUrl) {
|
|
300
|
-
setEditButtonUrl(editActionUrl)
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
}, [solidKanbanViewMetaData])
|
|
304
|
-
|
|
305
|
-
// Fetch data after toPopulate has been populated...
|
|
306
|
-
useEffect(() => {
|
|
307
|
-
|
|
308
|
-
if (solidKanbanViewMetaData) {
|
|
309
|
-
|
|
310
|
-
const swimlanesCount = solidKanbanViewMetaData?.data.solidView?.layout?.attrs?.swimlanesCount || 5;
|
|
311
|
-
if (groupByFieldName && (toPopulate || toPopulateMedia)) {
|
|
312
|
-
|
|
313
|
-
const queryObject = queryStringToQueryObject();
|
|
314
|
-
let queryString = "";
|
|
315
|
-
if (searchParams) {
|
|
316
|
-
|
|
317
|
-
// Get Object from Url
|
|
318
|
-
const queryObject = qs.parse(searchParams,
|
|
319
|
-
{
|
|
320
|
-
decoder: str => decodeURIComponent(str),
|
|
321
|
-
allowDots: true,
|
|
322
|
-
}
|
|
323
|
-
);
|
|
324
|
-
|
|
325
|
-
const filters = {
|
|
326
|
-
$and: []
|
|
327
|
-
}
|
|
328
|
-
if (queryObject.s_filter) {
|
|
329
|
-
filters.$and.push(queryObject.s_filter);
|
|
330
|
-
}
|
|
331
|
-
if (queryObject.c_filter) {
|
|
332
|
-
filters.$and.push(queryObject.c_filter);
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
const queryData = {
|
|
336
|
-
offset: 0,
|
|
337
|
-
limit: Number(queryObject.limit) + Number(queryObject.offset),
|
|
338
|
-
fields: queryObject.fields || [`${groupByFieldName}`, `count(${groupByFieldName})`],
|
|
339
|
-
groupBy: queryObject.groupBy || groupByFieldName,
|
|
340
|
-
populateMedia: queryObject.populateMedia || toPopulateMedia,
|
|
341
|
-
populateGroup: queryObject.populateGroup || true,
|
|
342
|
-
groupFilter: {
|
|
343
|
-
limit: Number(queryObject.groupFilter.limit) + Number(queryObject.groupFilter.offset) || kanbanViewMetaData?.data?.solidView?.layout?.attrs?.recordsInSwimlane,
|
|
344
|
-
offset: 0,
|
|
345
|
-
filters: filters,
|
|
346
|
-
populate: queryObject.groupFilter.populate || toPopulate,
|
|
347
|
-
populateMedia: queryObject.groupFilter.populateMedia || toPopulateMedia
|
|
348
|
-
}
|
|
349
|
-
// sort: [`id:desc`],
|
|
350
|
-
};
|
|
351
|
-
|
|
352
|
-
setRecordsInSwimlane(queryData.limit);
|
|
353
|
-
setToPopulate(queryData.populate);
|
|
354
|
-
setToPopulateMedia(queryData.populateMedia);
|
|
355
|
-
setFilters(filters);
|
|
356
|
-
setQueryDataLoaded(true);
|
|
357
|
-
|
|
358
|
-
queryString = qs.stringify(queryData, {
|
|
359
|
-
encodeValuesOnly: true
|
|
360
|
-
});
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
} else {
|
|
364
|
-
const { recordsInSwimlane, toPopulate, toPopulateMedia } = initialFilterMethod();
|
|
365
|
-
const queryData = {
|
|
366
|
-
offset: 0,
|
|
367
|
-
limit: swimlanesCount,
|
|
368
|
-
fields: [`${groupByFieldName}`, `count(${groupByFieldName})`],
|
|
369
|
-
groupBy: groupByFieldName,
|
|
370
|
-
populateMedia: toPopulateMedia,
|
|
371
|
-
populateGroup: true,
|
|
372
|
-
groupFilter: {
|
|
373
|
-
limit: kanbanViewMetaData?.data?.solidView?.layout?.attrs?.recordsInSwimlane || 10,
|
|
374
|
-
offset: 0,
|
|
375
|
-
filters: filters,
|
|
376
|
-
populate: toPopulate,
|
|
377
|
-
populateMedia: toPopulateMedia
|
|
378
|
-
}
|
|
379
|
-
// sort: [`id:desc`],
|
|
380
|
-
};
|
|
381
|
-
setRecordsInSwimlane(recordsInSwimlane);
|
|
382
|
-
setToPopulate(toPopulate);
|
|
383
|
-
setToPopulateMedia(toPopulateMedia);
|
|
384
|
-
|
|
385
|
-
// fields=status&groupBy=status&fields=count(status)&populateGroup=true
|
|
386
|
-
queryString = qs.stringify(queryData, {
|
|
387
|
-
encodeValuesOnly: true
|
|
388
|
-
});
|
|
389
|
-
|
|
390
|
-
setQueryDataLoaded(true)
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
triggerGetSolidEntities(queryString);
|
|
394
|
-
setSelectedRecords([]);
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
}, [isDeleteSolidEntitiesSucess, groupByFieldName, solidKanbanViewMetaData]);
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
// clickable link allowing one to open the detail / form view.
|
|
401
|
-
const detailsBodyTemplate = (solidViewData: any) => {
|
|
402
|
-
return (
|
|
403
|
-
<Link href={`${editButtonUrl}/${solidViewData.id}`} rel="noopener noreferrer" className="text-sm font-bold p-0" style={{ color: "#12415D" }}>
|
|
404
|
-
<i className="pi pi-pencil" style={{ fontSize: "1rem" }}></i>
|
|
405
|
-
</Link>
|
|
406
|
-
);
|
|
407
|
-
};
|
|
408
|
-
|
|
409
|
-
// handle bulk deletion
|
|
410
|
-
const deleteBulk = () => {
|
|
411
|
-
let deleteList: any = [];
|
|
412
|
-
selectedRecords.forEach((element: any) => {
|
|
413
|
-
deleteList.push(element.id);
|
|
414
|
-
});
|
|
415
|
-
console.log(deleteList);
|
|
416
|
-
deleteManySolidEntities(deleteList);
|
|
417
|
-
setDialogVisible(false);
|
|
418
|
-
};
|
|
419
|
-
|
|
420
|
-
// handle closing of the delete dialog...
|
|
421
|
-
const onDeleteClose = () => {
|
|
422
|
-
setDialogVisible(false);
|
|
423
|
-
setSelectedRecords([]);
|
|
424
|
-
}
|
|
425
|
-
|
|
426
|
-
const handleLoadMore = async (groupByField: string) => {
|
|
427
|
-
const { offset, limit, records } = kanbanLoadMoreData[groupByField];
|
|
428
|
-
const newLoadMoreData = kanbanLoadMoreData;
|
|
429
|
-
kanbanLoadMoreData[groupByField].offset = offset + limit;
|
|
430
|
-
try {
|
|
431
|
-
const queryData = {
|
|
432
|
-
offset: offset + limit,
|
|
433
|
-
limit: limit,
|
|
434
|
-
populate: toPopulate,
|
|
435
|
-
populateMedia: toPopulateMedia,
|
|
436
|
-
populateGroup: true,
|
|
437
|
-
filters: {
|
|
438
|
-
[groupByFieldName]: {
|
|
439
|
-
$in: [groupByField],
|
|
440
|
-
},
|
|
441
|
-
...filters
|
|
442
|
-
}
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
const queryString = qs.stringify(queryData, {
|
|
447
|
-
encodeValuesOnly: true
|
|
448
|
-
});
|
|
449
|
-
// router.push(`?${queryString}`);
|
|
450
|
-
const data: any = await triggerGetSolidEntities(queryString);
|
|
451
|
-
const newRecords = data.data.records;
|
|
452
|
-
const currentData = kanbanViewData;
|
|
453
|
-
const mergeData = (
|
|
454
|
-
kanbanViewData: any[],
|
|
455
|
-
newRecords: any[],
|
|
456
|
-
groupByField: string
|
|
457
|
-
) => {
|
|
458
|
-
// Find the group matching the specified groupByField
|
|
459
|
-
const originalData = structuredClone(kanbanViewData);
|
|
460
|
-
const targetGroup = originalData.find(
|
|
461
|
-
(group: any) => group.groupName === groupByField
|
|
462
|
-
);
|
|
463
|
-
if (targetGroup) {
|
|
464
|
-
const { groupData } = targetGroup;
|
|
465
|
-
|
|
466
|
-
if (targetGroup.groupData) {
|
|
467
|
-
// Extract existing records
|
|
468
|
-
const existingRecords = targetGroup.groupData.records;
|
|
469
|
-
const updatedRecords = [...existingRecords, ...newRecords];
|
|
470
|
-
targetGroup.groupData.records = updatedRecords
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
// Update the meta data (you can adjust this logic as needed)
|
|
474
|
-
groupData.meta.prevPage = groupData.meta.currentPage
|
|
475
|
-
groupData.meta.currentPage = groupData.meta.currentPage + 1
|
|
476
|
-
groupData.meta.nextPage = groupData.meta.currentPage + 1
|
|
477
|
-
}
|
|
478
|
-
}
|
|
479
|
-
return originalData;
|
|
480
|
-
};
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
const updatedData = mergeData(kanbanViewData, newRecords, groupByField);
|
|
484
|
-
setKanbanViewData(updatedData);
|
|
485
|
-
const loadmoredata = Object.entries(updatedData).reduce((acc: any, [key, value]: any) => {
|
|
486
|
-
acc[value.groupName] = {
|
|
487
|
-
offset: (value.groupData.meta.currentPage - 1) * value.groupData.meta.perPage,
|
|
488
|
-
limit: value.groupData.meta.perPage,
|
|
489
|
-
count: value.groupData.meta.totalRecords
|
|
490
|
-
};
|
|
491
|
-
return acc;
|
|
492
|
-
}, {});
|
|
493
|
-
setKanbanLoadMoreData(loadmoredata)
|
|
494
|
-
|
|
495
|
-
} catch (error) {
|
|
496
|
-
console.error("Failed to load more data:", error);
|
|
497
|
-
}
|
|
498
|
-
};
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
// Handle drag-and-drop functionality
|
|
502
|
-
const onDragEnd = async (result: DropResult): void => {
|
|
503
|
-
const { source, destination } = result;
|
|
504
|
-
if (!destination) return;
|
|
505
|
-
|
|
506
|
-
const sourceGroupName = source.droppableId;
|
|
507
|
-
const destinationGroupName = destination.droppableId;
|
|
508
|
-
|
|
509
|
-
// Find the source and destination groups
|
|
510
|
-
const sourceGroupIndex = kanbanViewData.findIndex((group: any) => group.groupName === sourceGroupName);
|
|
511
|
-
const destinationGroupIndex = kanbanViewData.findIndex((group: any) => group.groupName === destinationGroupName);
|
|
512
|
-
|
|
513
|
-
if (sourceGroupIndex === -1 || destinationGroupIndex === -1) return;
|
|
514
|
-
|
|
515
|
-
// If dragging within the same group
|
|
516
|
-
if (sourceGroupName === destinationGroupName) {
|
|
517
|
-
setKanbanViewData((prevData: typeof kanbanViewData) =>
|
|
518
|
-
prevData.map((group: any) => {
|
|
519
|
-
if (group.groupName === sourceGroupName) {
|
|
520
|
-
const updatedRecords = [...group.groupData.records];
|
|
521
|
-
const [movedItem] = updatedRecords.splice(source.index, 1); // Remove the item
|
|
522
|
-
updatedRecords.splice(destination.index, 0, movedItem); // Insert at the new position
|
|
523
|
-
|
|
524
|
-
return {
|
|
525
|
-
...group,
|
|
526
|
-
groupData: {
|
|
527
|
-
...group.groupData,
|
|
528
|
-
records: updatedRecords,
|
|
529
|
-
},
|
|
530
|
-
};
|
|
531
|
-
}
|
|
532
|
-
return group;
|
|
533
|
-
})
|
|
534
|
-
);
|
|
535
|
-
return;
|
|
536
|
-
}
|
|
537
|
-
|
|
538
|
-
// Deep clone the source and destination groups
|
|
539
|
-
const sourceGroup = JSON.parse(JSON.stringify(kanbanViewData[sourceGroupIndex]));
|
|
540
|
-
const destinationGroup = JSON.parse(JSON.stringify(kanbanViewData[destinationGroupIndex]));
|
|
541
|
-
|
|
542
|
-
// Clone the records for immutability
|
|
543
|
-
const sourceRecords = [...sourceGroup.groupData.records];
|
|
544
|
-
const destinationRecords = [...destinationGroup.groupData.records];
|
|
545
|
-
|
|
546
|
-
// Remove the item from the source
|
|
547
|
-
const [movedItem] = sourceRecords.splice(source.index, 1);
|
|
548
|
-
|
|
549
|
-
// Create a mutable copy of the moved item
|
|
550
|
-
const updatedItem = { ...movedItem, status: destinationGroupName };
|
|
551
|
-
|
|
552
|
-
// Add the updated item to the destination
|
|
553
|
-
destinationRecords.splice(destination.index, 0, updatedItem);
|
|
554
|
-
|
|
555
|
-
// Update the group data
|
|
556
|
-
sourceGroup.groupData.records = sourceRecords;
|
|
557
|
-
destinationGroup.groupData.records = destinationRecords;
|
|
558
|
-
|
|
559
|
-
// Update the kanbanViewData state
|
|
560
|
-
try {
|
|
561
|
-
const formData = new FormData();
|
|
562
|
-
formData.append(groupByFieldName, destinationGroupName);
|
|
563
|
-
const kanbanUpdateResponse = await patchKanbanView({ id: +movedItem.id, data: formData }).unwrap();
|
|
564
|
-
|
|
565
|
-
if (kanbanUpdateResponse?.statusCode === 200) {
|
|
566
|
-
showToast("success", "Success", "Kanban View Updated!");
|
|
567
|
-
// Update the kanbanViewData state
|
|
568
|
-
setKanbanViewData((prevData: typeof kanbanViewData) =>
|
|
569
|
-
prevData.map((group: any) => {
|
|
570
|
-
if (group.groupName === sourceGroupName) {
|
|
571
|
-
return sourceGroup;
|
|
572
|
-
}
|
|
573
|
-
if (group.groupName === destinationGroupName) {
|
|
574
|
-
return destinationGroup;
|
|
575
|
-
}
|
|
576
|
-
return group;
|
|
577
|
-
})
|
|
578
|
-
);
|
|
579
|
-
} else {
|
|
580
|
-
showToast("error", "Duplicate Key", kanbanUpdateResponse?.error);
|
|
581
|
-
}
|
|
582
|
-
} catch (error: any) {
|
|
583
|
-
// 6. Handle 500 or network errors
|
|
584
|
-
console.error("API error:", error);
|
|
585
|
-
showToast("error", "Something went wrong", error?.data?.message || "Something went wrong");
|
|
586
|
-
}
|
|
587
|
-
};
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
// Handle SwimLane Pagination
|
|
591
|
-
const handleSwimLanePagination = async () => {
|
|
592
|
-
|
|
593
|
-
if (solidKanbanViewMetaData) {
|
|
594
|
-
|
|
595
|
-
const swimlanesCount = solidKanbanViewMetaData?.data.solidView?.layout?.attrs?.swimlanesCount || 5;
|
|
596
|
-
const queryData = {
|
|
597
|
-
offset: swimLaneCurrentPageNumber * swimlanesCount,
|
|
598
|
-
limit: swimlanesCount,
|
|
599
|
-
fields: [`${groupByFieldName}`, `count(${groupByFieldName})`],
|
|
600
|
-
groupBy: groupByFieldName,
|
|
601
|
-
populateMedia: toPopulateMedia,
|
|
602
|
-
populateGroup: true,
|
|
603
|
-
groupFilter: {
|
|
604
|
-
limit: recordsInSwimlane,
|
|
605
|
-
offset: 0,
|
|
606
|
-
filters: filters,
|
|
607
|
-
populate: toPopulate,
|
|
608
|
-
populateMedia: toPopulateMedia
|
|
609
|
-
|
|
610
|
-
}
|
|
611
|
-
// sort: [`id:desc`],
|
|
612
|
-
};
|
|
613
|
-
// fields=status&groupBy=status&fields=count(status)&populateGroup=true
|
|
614
|
-
const queryString = qs.stringify(queryData, {
|
|
615
|
-
encodeValuesOnly: true
|
|
616
|
-
});
|
|
617
|
-
|
|
618
|
-
//Push to Router
|
|
619
|
-
router.push(`?${queryString}`);
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
const data: any = await triggerGetSolidEntities(queryString);
|
|
623
|
-
if (data && data?.data?.groupRecords.length > 0) {
|
|
624
|
-
const updatedData = [...kanbanViewData, ...data.data.groupRecords];
|
|
625
|
-
setKanbanViewData(updatedData);
|
|
626
|
-
}
|
|
627
|
-
setSwimLaneCurrentPageNumber(swimLaneCurrentPageNumber + 1)
|
|
628
|
-
}
|
|
629
|
-
}
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
// Handle the custom filter and Search Filter
|
|
633
|
-
const handleApplyCustomFilter = async (transformedFilter: any) => {
|
|
634
|
-
|
|
635
|
-
if (solidKanbanViewMetaData) {
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
const queryfilter = {
|
|
639
|
-
$and: [
|
|
640
|
-
]
|
|
641
|
-
}
|
|
642
|
-
if (transformedFilter.s_filter) {
|
|
643
|
-
queryfilter.$and.push(transformedFilter.s_filter)
|
|
644
|
-
}
|
|
645
|
-
if (transformedFilter.c_filter) {
|
|
646
|
-
queryfilter.$and.push(transformedFilter.c_filter)
|
|
647
|
-
}
|
|
648
|
-
|
|
649
|
-
const customFilter = transformedFilter;
|
|
650
|
-
const updatedFilter = { ...(filters || {}), ...(queryfilter || {}) };
|
|
651
|
-
setFilters((prevFilters) => ({ ...(prevFilters || {}), ...(queryfilter || {}) }));
|
|
652
|
-
|
|
653
|
-
const swimlanesCount = solidKanbanViewMetaData?.data.solidView?.layout?.attrs?.swimlanesCount || 5;
|
|
654
|
-
|
|
655
|
-
if (toPopulate) {
|
|
656
|
-
const queryData = {
|
|
657
|
-
offset: 0,
|
|
658
|
-
limit: swimlanesCount,
|
|
659
|
-
fields: [`${groupByFieldName}`, `count(${groupByFieldName})`],
|
|
660
|
-
groupBy: groupByFieldName,
|
|
661
|
-
populateGroup: true,
|
|
662
|
-
groupFilter: {
|
|
663
|
-
limit: recordsInSwimlane,
|
|
664
|
-
offset: 0,
|
|
665
|
-
filters: updatedFilter,
|
|
666
|
-
populate: toPopulate,
|
|
667
|
-
populateMedia: toPopulateMedia
|
|
668
|
-
}
|
|
669
|
-
};
|
|
670
|
-
const queryString = qs.stringify(queryData, {
|
|
671
|
-
encodeValuesOnly: true
|
|
672
|
-
});
|
|
673
|
-
|
|
674
|
-
// s_filter and c_filter format that needs to be passed to the router
|
|
675
|
-
// only present if handleCustomFilter is applied
|
|
676
|
-
if (customFilter) {
|
|
677
|
-
let url
|
|
678
|
-
const urlData = queryData;
|
|
679
|
-
delete urlData.filters;
|
|
680
|
-
urlData.s_filter = customFilter.s_filter || {};
|
|
681
|
-
urlData.c_filter = customFilter.c_filter || {};
|
|
682
|
-
queryObjectToQueryString(urlData);
|
|
683
|
-
}
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
const data: any = await triggerGetSolidEntities(queryString);
|
|
687
|
-
|
|
688
|
-
// Update the kanban view data with the new data based on filter
|
|
689
|
-
if (data && data?.data?.groupRecords.length > 0) {
|
|
690
|
-
const updatedData = [...data.data.groupRecords];
|
|
691
|
-
setKanbanViewData(updatedData);
|
|
692
|
-
}
|
|
693
|
-
setSelectedRecords([]);
|
|
694
|
-
|
|
695
|
-
}
|
|
696
|
-
}
|
|
697
|
-
|
|
698
|
-
}
|
|
699
|
-
|
|
700
|
-
useEffect(() => {
|
|
701
|
-
if (solidKanbanViewMetaData) {
|
|
702
|
-
const createActionUrl = solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.createAction && solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.createAction?.type === "custom" ? solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.createAction?.customComponent : "form/new";
|
|
703
|
-
const editActionUrl = solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.editAction && solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.editAction?.type === "custom" ? solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.editAction?.customComponent : "form";
|
|
704
|
-
const viewModes = solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.allowedViews && solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.allowedViews.length > 0 && solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.allowedViews.map((view: any) => { return { label: capitalize(view), value: view } });
|
|
705
|
-
setViewModes(viewModes);
|
|
706
|
-
if (createActionUrl) {
|
|
707
|
-
setCreateButtonUrl(createActionUrl)
|
|
708
|
-
}
|
|
709
|
-
if (editActionUrl) {
|
|
710
|
-
setEditButtonUrl(editActionUrl)
|
|
711
|
-
}
|
|
712
|
-
}
|
|
713
|
-
}, [solidKanbanViewMetaData])
|
|
714
|
-
|
|
715
|
-
const kanbanViewTitle = solidKanbanViewMetaData?.data?.solidView?.displayName
|
|
716
|
-
|
|
717
|
-
return (
|
|
718
|
-
<div className="page-parent-wrapper">
|
|
719
|
-
<Toast ref={toast} />
|
|
720
|
-
<div className="page-header">
|
|
721
|
-
<div className="flex gap-3 align-items-center">
|
|
722
|
-
<p className="m-0 view-title">{kanbanViewTitle}</p>
|
|
723
|
-
{solidKanbanViewMetaData?.data?.solidView?.layout?.attrs.enableGlobalSearch === true &&
|
|
724
|
-
// <SolidGlobalSearchElement viewData={solidKanbanViewMetaData} handleApplyCustomFilter={handleApplyCustomFilter} ></SolidGlobalSearchElement>
|
|
725
|
-
<SolidGlobalSearchElement showSaveFilterPopup={showSaveFilterPopup} setShowSaveFilterPopup={setShowSaveFilterPopup} ref={solidGlobalSearchElementRef} viewData={solidKanbanViewMetaData} handleApplyCustomFilter={handleApplyCustomFilter} ></SolidGlobalSearchElement>
|
|
726
|
-
|
|
727
|
-
}
|
|
728
|
-
</div>
|
|
729
|
-
<div className="flex align-items-center gap-3">
|
|
730
|
-
{actionsAllowed.includes(`${createPermission(params.modelName)}`) && solidKanbanViewMetaData?.data?.solidView?.layout?.attrs.create !== false &&
|
|
731
|
-
<SolidCreateButton url={createButtonUrl} />
|
|
732
|
-
}
|
|
733
|
-
|
|
734
|
-
{actionsAllowed.includes(`${deletePermission(params.modelName)}`) && solidKanbanViewMetaData?.data?.solidView?.layout?.attrs.delete !== false && selectedRecords.length > 0 && <Button
|
|
735
|
-
type="button"
|
|
736
|
-
label="Delete"
|
|
737
|
-
size="small"
|
|
738
|
-
onClick={() => setDialogVisible(true)}
|
|
739
|
-
className="small-button"
|
|
740
|
-
severity="danger"
|
|
741
|
-
/>}
|
|
742
|
-
<Button
|
|
743
|
-
type="button"
|
|
744
|
-
size="small"
|
|
745
|
-
icon="pi pi-refresh"
|
|
746
|
-
severity="secondary"
|
|
747
|
-
outlined
|
|
748
|
-
onClick={() => {
|
|
749
|
-
window.location.reload()
|
|
750
|
-
}}
|
|
751
|
-
/>
|
|
752
|
-
<SolidKanbanViewConfigure
|
|
753
|
-
solidKanbanViewMetaData={solidKanbanViewMetaData}
|
|
754
|
-
actionsAllowed={actionsAllowed}
|
|
755
|
-
viewModes={viewModes}
|
|
756
|
-
setLayoutDialogVisible={setLayoutDialogVisible}
|
|
757
|
-
setShowSaveFilterPopup={setShowSaveFilterPopup}
|
|
758
|
-
/>
|
|
759
|
-
{/* <SolidConfigureLayoutElement></SolidConfigureLayoutElement> */}
|
|
760
|
-
</div>
|
|
761
|
-
</div>
|
|
762
|
-
<style>{`.p-datatable .p-datatable-loading-overlay {background-color: rgba(0, 0, 0, 0.0);}`}</style>
|
|
763
|
-
{solidKanbanViewMetaData && kanbanViewData &&
|
|
764
|
-
<KanbanBoard groupedView={groupedView} kanbanViewData={kanbanViewData} solidKanbanViewMetaData={solidKanbanViewMetaData?.data} setKanbanViewData={setKanbanViewData} handleLoadMore={handleLoadMore} onDragEnd={onDragEnd} handleSwimLanePagination={handleSwimLanePagination} setLightboxUrls={setLightboxUrls} setOpenLightbox={setOpenLightbox} editButtonUrl={editButtonUrl}></KanbanBoard>
|
|
765
|
-
}
|
|
766
|
-
|
|
767
|
-
<Dialog
|
|
768
|
-
visible={isDialogVisible}
|
|
769
|
-
header="Confirm Delete"
|
|
770
|
-
modal
|
|
771
|
-
footer={() => (
|
|
772
|
-
<div className="flex justify-content-center">
|
|
773
|
-
<Button label="Yes" icon="pi pi-check" className='small-button' severity="danger" autoFocus onClick={deleteBulk} />
|
|
774
|
-
<Button label="No" icon="pi pi-times" className='small-button' onClick={onDeleteClose} />
|
|
775
|
-
</div>
|
|
776
|
-
)}
|
|
777
|
-
onHide={() => setDialogVisible(false)}
|
|
778
|
-
>
|
|
779
|
-
<p>Are you sure you want to delete the selected records?</p>
|
|
780
|
-
</Dialog>
|
|
781
|
-
{openLightbox &&
|
|
782
|
-
<Lightbox
|
|
783
|
-
open={openLightbox}
|
|
784
|
-
plugins={[Counter, Download]}
|
|
785
|
-
close={() => setOpenLightbox(false)}
|
|
786
|
-
slides={lightboxUrls}
|
|
787
|
-
/>
|
|
788
|
-
}
|
|
789
|
-
<Dialog
|
|
790
|
-
visible={isLayoutDialogVisible}
|
|
791
|
-
header="Change Kanban Layout"
|
|
792
|
-
modal
|
|
793
|
-
onHide={() => setLayoutDialogVisible(false)}
|
|
794
|
-
contentStyle={{
|
|
795
|
-
width: 800
|
|
796
|
-
}}
|
|
797
|
-
>
|
|
798
|
-
<KanbanUserViewLayout solidKanbanViewMetaData={solidKanbanViewMetaData} setLayoutDialogVisible={setLayoutDialogVisible} />
|
|
799
|
-
</Dialog>
|
|
800
|
-
</div>
|
|
801
|
-
);
|
|
802
|
-
};
|
|
803
|
-
|