@solidstarters/solid-core-ui 1.1.78 → 1.1.80
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/CustomFooter/CustomFooter.js +162 -0
- package/dist/components/CustomFooter/CustomFooter.js.map +1 -0
- package/dist/components/CustomFooter/FooterForm.js +8 -0
- package/dist/components/CustomFooter/FooterForm.js.map +1 -0
- package/dist/components/CustomHeader/CallIcon.js +6 -0
- package/dist/components/CustomHeader/CallIcon.js.map +1 -0
- package/dist/components/CustomHeader/CustomDropdown.js +38 -0
- package/dist/components/CustomHeader/CustomDropdown.js.map +1 -0
- package/dist/components/CustomHeader/CustomHeader.js +18 -0
- package/dist/components/CustomHeader/CustomHeader.js.map +1 -0
- package/dist/components/CustomHeader/EmailIcon.js +6 -0
- package/dist/components/CustomHeader/EmailIcon.js.map +1 -0
- package/dist/components/CustomHeader/HeaderCart.js +7 -0
- package/dist/components/CustomHeader/HeaderCart.js.map +1 -0
- package/dist/components/CustomHeader/productNavData.js +178 -0
- package/dist/components/CustomHeader/productNavData.js.map +1 -0
- package/dist/components/FormView/DetailsViews.js +23 -0
- package/dist/components/FormView/DetailsViews.js.map +1 -0
- package/dist/components/FormView/OrderAddressDetails.js +31 -0
- package/dist/components/FormView/OrderAddressDetails.js.map +1 -0
- package/dist/components/FormView/OrderPaymentDetails.js +6 -0
- package/dist/components/FormView/OrderPaymentDetails.js.map +1 -0
- package/dist/components/FormView/OrderTableDetails.js +22 -0
- package/dist/components/FormView/OrderTableDetails.js.map +1 -0
- package/dist/components/FormView/OrderedProductDetail.js +6 -0
- package/dist/components/FormView/OrderedProductDetail.js.map +1 -0
- package/dist/components/Svg/ExcelSvg.js +6 -0
- package/dist/components/Svg/ExcelSvg.js.map +1 -0
- package/dist/components/Svg/FileSvg.js +15 -0
- package/dist/components/Svg/FileSvg.js.map +1 -0
- package/dist/components/Svg/PDFSvg.js +6 -0
- package/dist/components/Svg/PDFSvg.js.map +1 -0
- package/dist/components/Svg/RightArrowSvg.js +5 -0
- package/dist/components/Svg/RightArrowSvg.js.map +1 -0
- package/dist/components/Tag/CustomTag.js +34 -0
- package/dist/components/Tag/CustomTag.js.map +1 -0
- package/dist/components/auth/AuthLayout.js +83 -0
- package/dist/components/auth/AuthLayout.js.map +1 -0
- package/dist/components/auth/ForgotPasswordThankYou.js +18 -0
- package/dist/components/auth/ForgotPasswordThankYou.js.map +1 -0
- package/dist/components/auth/GoogleAuthChecking.js +99 -0
- package/dist/components/auth/GoogleAuthChecking.js.map +1 -0
- package/dist/components/auth/Login.js +117 -0
- package/dist/components/auth/Login.js.map +1 -0
- package/dist/components/auth/Register.js +173 -0
- package/dist/components/auth/Register.js.map +1 -0
- package/dist/components/auth/SolidChangeForcePassword.js +126 -0
- package/dist/components/auth/SolidChangeForcePassword.js.map +1 -0
- package/dist/components/auth/SolidForgotPassword.js +123 -0
- package/dist/components/auth/SolidForgotPassword.js.map +1 -0
- package/dist/components/auth/SolidInitialLoginOtp.js +142 -0
- package/dist/components/auth/SolidInitialLoginOtp.js.map +1 -0
- package/dist/components/auth/SolidInitiateRegisterOtp.js +129 -0
- package/dist/components/auth/SolidInitiateRegisterOtp.js.map +1 -0
- package/dist/components/auth/SolidLogin.js +204 -0
- package/dist/components/auth/SolidLogin.js.map +1 -0
- package/dist/components/auth/SolidOTPVerify.js +115 -0
- package/dist/components/auth/SolidOTPVerify.js.map +1 -0
- package/dist/components/auth/SolidRegister.js +251 -0
- package/dist/components/auth/SolidRegister.js.map +1 -0
- package/dist/components/auth/SolidResetPassword.js +131 -0
- package/dist/components/auth/SolidResetPassword.js.map +1 -0
- package/dist/components/common/AuthBanner.js +15 -0
- package/dist/components/common/AuthBanner.js.map +1 -0
- package/dist/components/common/AutoCompleteField.js +96 -0
- package/dist/components/common/AutoCompleteField.js.map +1 -0
- package/dist/components/common/BackButton.js +17 -0
- package/dist/components/common/BackButton.js.map +1 -0
- package/dist/components/common/CancelButton.js +34 -0
- package/dist/components/common/CancelButton.js.map +1 -0
- package/dist/components/common/CodeEditor.js +13 -0
- package/dist/components/common/CodeEditor.js.map +1 -0
- package/dist/components/common/CreateButton.js +11 -0
- package/dist/components/common/CreateButton.js.map +1 -0
- package/dist/components/common/DropzonePlaceholder.js +13 -0
- package/dist/components/common/DropzonePlaceholder.js.map +1 -0
- package/dist/components/common/DropzoneUpload.js +7 -0
- package/dist/components/common/DropzoneUpload.js.map +1 -0
- package/dist/components/common/FileReaderExt.js +17 -0
- package/dist/components/common/FileReaderExt.js.map +1 -0
- package/dist/components/common/GeneralSettings.js +150 -0
- package/dist/components/common/GeneralSettings.js.map +1 -0
- package/dist/components/common/HeaderDynamicTitles.js +9 -0
- package/dist/components/common/HeaderDynamicTitles.js.map +1 -0
- package/dist/components/common/MarkdownViewer.js +11 -0
- package/dist/components/common/MarkdownViewer.js.map +1 -0
- package/dist/components/common/MultipleSelectAutoCompleteField.js +86 -0
- package/dist/components/common/MultipleSelectAutoCompleteField.js.map +1 -0
- package/dist/components/common/NotFound.js +7 -0
- package/dist/components/common/NotFound.js.map +1 -0
- package/dist/components/common/SingleSelectAutoCompleteField.js +88 -0
- package/dist/components/common/SingleSelectAutoCompleteField.js.map +1 -0
- package/dist/components/common/SocialMediaLogin.js +10 -0
- package/dist/components/common/SocialMediaLogin.js.map +1 -0
- package/dist/components/common/SolidAdmin.js +6 -0
- package/dist/components/common/SolidAdmin.js.map +1 -0
- package/dist/components/common/SolidBreadcrumb.js +88 -0
- package/dist/components/common/SolidBreadcrumb.js.map +1 -0
- package/dist/components/common/SolidFormHeader.js +22 -0
- package/dist/components/common/SolidFormHeader.js.map +1 -0
- package/dist/components/common/SolidFormStepper.js +146 -0
- package/dist/components/common/SolidFormStepper.js.map +1 -0
- package/dist/components/common/SolidModuleHome.js +6 -0
- package/dist/components/common/SolidModuleHome.js.map +1 -0
- package/dist/components/common/SolidThemeLink.js +6 -0
- package/dist/components/common/SolidThemeLink.js.map +1 -0
- package/dist/components/common/SolidThemeProvider.js +38 -0
- package/dist/components/common/SolidThemeProvider.js.map +1 -0
- package/dist/components/common/error.js +7 -0
- package/dist/components/common/error.js.map +1 -0
- package/dist/components/core/chatter/SolidChatter.js +273 -0
- package/dist/components/core/chatter/SolidChatter.js.map +1 -0
- package/dist/components/core/chatter/SolidChatterDateDivider.js +8 -0
- package/dist/components/core/chatter/SolidChatterDateDivider.js.map +1 -0
- package/dist/components/core/chatter/SolidChatterHeader.js +68 -0
- package/dist/components/core/chatter/SolidChatterHeader.js.map +1 -0
- package/dist/components/core/chatter/SolidChatterMessageBox.js +47 -0
- package/dist/components/core/chatter/SolidChatterMessageBox.js.map +1 -0
- package/dist/components/core/chatter/SolidMessageComposer.js +119 -0
- package/dist/components/core/chatter/SolidMessageComposer.js.map +1 -0
- package/dist/components/core/common/FilterComponent.js +269 -0
- package/dist/components/core/common/FilterComponent.js.map +1 -0
- package/dist/components/core/common/LoadDynamicJsxComponent.js +54 -0
- package/dist/components/core/common/LoadDynamicJsxComponent.js.map +1 -0
- package/dist/components/core/common/SolidCreateButton.js +12 -0
- package/dist/components/core/common/SolidCreateButton.js.map +1 -0
- package/dist/components/core/common/SolidGlobalSearchElement.js +638 -0
- package/dist/components/core/common/SolidGlobalSearchElement.js.map +1 -0
- package/dist/components/core/common/SolidLayoutViews.js +14 -0
- package/dist/components/core/common/SolidLayoutViews.js.map +1 -0
- package/dist/components/core/common/SolidListViewOptions.js +11 -0
- package/dist/components/core/common/SolidListViewOptions.js.map +1 -0
- package/dist/components/core/common/SolidSaveCustomFilterForm.js +38 -0
- package/dist/components/core/common/SolidSaveCustomFilterForm.js.map +1 -0
- package/dist/components/core/common/SolidSearchBox.js +14 -0
- package/dist/components/core/common/SolidSearchBox.js.map +1 -0
- package/dist/components/core/common/SolidViewLayoutManager.js +90 -0
- package/dist/components/core/common/SolidViewLayoutManager.js.map +1 -0
- package/dist/components/core/extension/solid-core/emailTemplate/emailFormTypeChangeHandler.js +17 -0
- package/dist/components/core/extension/solid-core/emailTemplate/emailFormTypeChangeHandler.js.map +1 -0
- package/dist/components/core/extension/solid-core/emailTemplate/emailFormTypeLoad.js +17 -0
- package/dist/components/core/extension/solid-core/emailTemplate/emailFormTypeLoad.js.map +1 -0
- package/dist/components/core/extension/solid-core/modelMetadata/list/GenerateModelCodeRowAction.js +81 -0
- package/dist/components/core/extension/solid-core/modelMetadata/list/GenerateModelCodeRowAction.js.map +1 -0
- package/dist/components/core/extension/solid-core/moduleMetadata/list/GenerateModuleCodeRowAction.js +62 -0
- package/dist/components/core/extension/solid-core/moduleMetadata/list/GenerateModuleCodeRowAction.js.map +1 -0
- package/dist/components/core/extension/solid-core/roleMetadata/RolePermissionsManyToManyFieldWidget.js +78 -0
- package/dist/components/core/extension/solid-core/roleMetadata/RolePermissionsManyToManyFieldWidget.js.map +1 -0
- package/dist/components/core/field/FieldListViewData.js +192 -0
- package/dist/components/core/field/FieldListViewData.js.map +1 -0
- package/dist/components/core/filter/SolidFilterFields.js +109 -0
- package/dist/components/core/filter/SolidFilterFields.js.map +1 -0
- package/dist/components/core/filter/SolidManyToOneFilterElement.js +88 -0
- package/dist/components/core/filter/SolidManyToOneFilterElement.js.map +1 -0
- package/dist/components/core/filter/SolidSelectionDynamicFilterElement.js +73 -0
- package/dist/components/core/filter/SolidSelectionDynamicFilterElement.js.map +1 -0
- package/dist/components/core/filter/SolidSelectionStaticFilterElement.js +20 -0
- package/dist/components/core/filter/SolidSelectionStaticFilterElement.js.map +1 -0
- package/dist/components/core/filter/SolidVarInputsFilterElement.js +81 -0
- package/dist/components/core/filter/SolidVarInputsFilterElement.js.map +1 -0
- package/dist/components/core/filter/fields/SolidBigintField.js +8 -0
- package/dist/components/core/filter/fields/SolidBigintField.js.map +1 -0
- package/dist/components/core/filter/fields/SolidBooleanField.js +24 -0
- package/dist/components/core/filter/fields/SolidBooleanField.js.map +1 -0
- package/dist/components/core/filter/fields/SolidComputedField.js +22 -0
- package/dist/components/core/filter/fields/SolidComputedField.js.map +1 -0
- package/dist/components/core/filter/fields/SolidDateField.js +32 -0
- package/dist/components/core/filter/fields/SolidDateField.js.map +1 -0
- package/dist/components/core/filter/fields/SolidDatetimeField.js +27 -0
- package/dist/components/core/filter/fields/SolidDatetimeField.js.map +1 -0
- package/dist/components/core/filter/fields/SolidDecimalField.js +8 -0
- package/dist/components/core/filter/fields/SolidDecimalField.js.map +1 -0
- package/dist/components/core/filter/fields/SolidExternalIdField.js +22 -0
- package/dist/components/core/filter/fields/SolidExternalIdField.js.map +1 -0
- package/dist/components/core/filter/fields/SolidFloatField.js +8 -0
- package/dist/components/core/filter/fields/SolidFloatField.js.map +1 -0
- package/dist/components/core/filter/fields/SolidIdField.js +22 -0
- package/dist/components/core/filter/fields/SolidIdField.js.map +1 -0
- package/dist/components/core/filter/fields/SolidIntField.js +31 -0
- package/dist/components/core/filter/fields/SolidIntField.js.map +1 -0
- package/dist/components/core/filter/fields/SolidLongTextField.js +8 -0
- package/dist/components/core/filter/fields/SolidLongTextField.js.map +1 -0
- package/dist/components/core/filter/fields/SolidMediaMultipleField.js +32 -0
- package/dist/components/core/filter/fields/SolidMediaMultipleField.js.map +1 -0
- package/dist/components/core/filter/fields/SolidMediaSingleField.js +32 -0
- package/dist/components/core/filter/fields/SolidMediaSingleField.js.map +1 -0
- package/dist/components/core/filter/fields/SolidRelationField.js +12 -0
- package/dist/components/core/filter/fields/SolidRelationField.js.map +1 -0
- package/dist/components/core/filter/fields/SolidRichTextField.js +8 -0
- package/dist/components/core/filter/fields/SolidRichTextField.js.map +1 -0
- package/dist/components/core/filter/fields/SolidSelectionDynamicField.js +21 -0
- package/dist/components/core/filter/fields/SolidSelectionDynamicField.js.map +1 -0
- package/dist/components/core/filter/fields/SolidSelectionStaticField.js +23 -0
- package/dist/components/core/filter/fields/SolidSelectionStaticField.js.map +1 -0
- package/dist/components/core/filter/fields/SolidShortTextField.js +30 -0
- package/dist/components/core/filter/fields/SolidShortTextField.js.map +1 -0
- package/dist/components/core/filter/fields/SolidTimeField.js +22 -0
- package/dist/components/core/filter/fields/SolidTimeField.js.map +1 -0
- package/dist/components/core/filter/fields/SolidUuidField.js +22 -0
- package/dist/components/core/filter/fields/SolidUuidField.js.map +1 -0
- package/dist/components/core/filter/fields/relations/SolidRelationManyToOneField.js +51 -0
- package/dist/components/core/filter/fields/relations/SolidRelationManyToOneField.js.map +1 -0
- package/dist/components/core/form/SolidFormActionHeader.js +111 -0
- package/dist/components/core/form/SolidFormActionHeader.js.map +1 -0
- package/dist/components/core/form/SolidFormLayouts.js +69 -0
- package/dist/components/core/form/SolidFormLayouts.js.map +1 -0
- package/dist/components/core/form/SolidFormUserViewLayout.js +108 -0
- package/dist/components/core/form/SolidFormUserViewLayout.js.map +1 -0
- package/dist/components/core/form/SolidFormView.d.ts.map +1 -1
- package/dist/components/core/form/SolidFormView.js +912 -0
- package/dist/components/core/form/SolidFormView.js.map +1 -0
- package/dist/components/core/form/fields/ISolidField.d.ts +2 -1
- package/dist/components/core/form/fields/ISolidField.d.ts.map +1 -1
- package/dist/components/core/form/fields/ISolidField.js +3 -0
- package/dist/components/core/form/fields/ISolidField.js.map +1 -0
- package/dist/components/core/form/fields/SolidBooleanField.js +163 -0
- package/dist/components/core/form/fields/SolidBooleanField.js.map +1 -0
- package/dist/components/core/form/fields/SolidDateField.js +108 -0
- package/dist/components/core/form/fields/SolidDateField.js.map +1 -0
- package/dist/components/core/form/fields/SolidDateTimeField.js +106 -0
- package/dist/components/core/form/fields/SolidDateTimeField.js.map +1 -0
- package/dist/components/core/form/fields/SolidDecimalField.js +107 -0
- package/dist/components/core/form/fields/SolidDecimalField.js.map +1 -0
- package/dist/components/core/form/fields/SolidEmailField.js +114 -0
- package/dist/components/core/form/fields/SolidEmailField.js.map +1 -0
- package/dist/components/core/form/fields/SolidIntegerField.js +136 -0
- package/dist/components/core/form/fields/SolidIntegerField.js.map +1 -0
- package/dist/components/core/form/fields/SolidJsonField.js +109 -0
- package/dist/components/core/form/fields/SolidJsonField.js.map +1 -0
- package/dist/components/core/form/fields/SolidLongTextField.js +107 -0
- package/dist/components/core/form/fields/SolidLongTextField.js.map +1 -0
- package/dist/components/core/form/fields/SolidMediaMultipleField.js +366 -0
- package/dist/components/core/form/fields/SolidMediaMultipleField.js.map +1 -0
- package/dist/components/core/form/fields/SolidMediaSingleField.js +331 -0
- package/dist/components/core/form/fields/SolidMediaSingleField.js.map +1 -0
- package/dist/components/core/form/fields/SolidPasswordField.js +123 -0
- package/dist/components/core/form/fields/SolidPasswordField.js.map +1 -0
- package/dist/components/core/form/fields/SolidRelationField.d.ts +1 -1
- package/dist/components/core/form/fields/SolidRelationField.js +42 -0
- package/dist/components/core/form/fields/SolidRelationField.js.map +1 -0
- package/dist/components/core/form/fields/SolidRichTextField.js +118 -0
- package/dist/components/core/form/fields/SolidRichTextField.js.map +1 -0
- package/dist/components/core/form/fields/SolidSelectionDynamicField.js +185 -0
- package/dist/components/core/form/fields/SolidSelectionDynamicField.js.map +1 -0
- package/dist/components/core/form/fields/SolidSelectionStaticField.js +173 -0
- package/dist/components/core/form/fields/SolidSelectionStaticField.js.map +1 -0
- package/dist/components/core/form/fields/SolidShortTextField.js +131 -0
- package/dist/components/core/form/fields/SolidShortTextField.js.map +1 -0
- package/dist/components/core/form/fields/SolidTimeField.js +102 -0
- package/dist/components/core/form/fields/SolidTimeField.js.map +1 -0
- package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.js +168 -0
- package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.js.map +1 -0
- package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.d.ts +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.d.ts.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.js +266 -0
- package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.js.map +1 -0
- package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.d.ts.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.js +299 -0
- package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.js.map +1 -0
- package/dist/components/core/form/fields/relations/widgets/helpers/InlineRelationEntityDialog.js +35 -0
- package/dist/components/core/form/fields/relations/widgets/helpers/InlineRelationEntityDialog.js.map +1 -0
- package/dist/components/core/form/fields/relations/widgets/helpers/useRelationEntityHandler.js +119 -0
- package/dist/components/core/form/fields/relations/widgets/helpers/useRelationEntityHandler.js.map +1 -0
- package/dist/components/core/form/fields/widgets/SolidRelationFieldAvatarFormWidget.js +29 -0
- package/dist/components/core/form/fields/widgets/SolidRelationFieldAvatarFormWidget.js.map +1 -0
- package/dist/components/core/form/widgets/CustomHtml.js +15 -0
- package/dist/components/core/form/widgets/CustomHtml.js.map +1 -0
- package/dist/components/core/kanban/KanbanBoard.js +71 -0
- package/dist/components/core/kanban/KanbanBoard.js.map +1 -0
- package/dist/components/core/kanban/KanbanCard.js +156 -0
- package/dist/components/core/kanban/KanbanCard.js.map +1 -0
- package/dist/components/core/kanban/KanbanColumn.js +31 -0
- package/dist/components/core/kanban/KanbanColumn.js.map +1 -0
- package/dist/components/core/kanban/KanbanUserViewLayout.js +108 -0
- package/dist/components/core/kanban/KanbanUserViewLayout.js.map +1 -0
- package/dist/components/core/kanban/SolidKanbanView.js +678 -0
- package/dist/components/core/kanban/SolidKanbanView.js.map +1 -0
- package/dist/components/core/kanban/SolidKanbanViewConfigure.js +66 -0
- package/dist/components/core/kanban/SolidKanbanViewConfigure.js.map +1 -0
- package/dist/components/core/kanban/SolidKanbanViewFields.js +144 -0
- package/dist/components/core/kanban/SolidKanbanViewFields.js.map +1 -0
- package/dist/components/core/kanban/SolidManyToOneFilterElement.js +87 -0
- package/dist/components/core/kanban/SolidManyToOneFilterElement.js.map +1 -0
- package/dist/components/core/kanban/SolidSelectionDynamicFilterElement.js +74 -0
- package/dist/components/core/kanban/SolidSelectionDynamicFilterElement.js.map +1 -0
- package/dist/components/core/kanban/SolidSelectionStaticFilterElement.js +21 -0
- package/dist/components/core/kanban/SolidSelectionStaticFilterElement.js.map +1 -0
- package/dist/components/core/kanban/SolidVarInputsFilterElement.js +82 -0
- package/dist/components/core/kanban/SolidVarInputsFilterElement.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidBigintKanbanField.js +8 -0
- package/dist/components/core/kanban/kanban-fields/SolidBigintKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidBooleanKanbanField.js +8 -0
- package/dist/components/core/kanban/kanban-fields/SolidBooleanKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidComputedKanbanField.js +22 -0
- package/dist/components/core/kanban/kanban-fields/SolidComputedKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidDateKanbanField.js +8 -0
- package/dist/components/core/kanban/kanban-fields/SolidDateKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidDatetimeKanbanField.js +8 -0
- package/dist/components/core/kanban/kanban-fields/SolidDatetimeKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidDecimalKanbanField.js +8 -0
- package/dist/components/core/kanban/kanban-fields/SolidDecimalKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidExternalIdKanbanField.js +8 -0
- package/dist/components/core/kanban/kanban-fields/SolidExternalIdKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidFloatKanbanField.js +8 -0
- package/dist/components/core/kanban/kanban-fields/SolidFloatKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidIdKanbanField.js +8 -0
- package/dist/components/core/kanban/kanban-fields/SolidIdKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidIntKanbanField.js +16 -0
- package/dist/components/core/kanban/kanban-fields/SolidIntKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidLongTextKanbanField.js +8 -0
- package/dist/components/core/kanban/kanban-fields/SolidLongTextKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidMediaMultipleKanbanField.js +56 -0
- package/dist/components/core/kanban/kanban-fields/SolidMediaMultipleKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.js +42 -0
- package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidRelationKanbanField.js +12 -0
- package/dist/components/core/kanban/kanban-fields/SolidRelationKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidRichTextKanbanField.js +8 -0
- package/dist/components/core/kanban/kanban-fields/SolidRichTextKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidSelectionDynamicKanbanField.js +8 -0
- package/dist/components/core/kanban/kanban-fields/SolidSelectionDynamicKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidSelectionStaticKanbanField.js +8 -0
- package/dist/components/core/kanban/kanban-fields/SolidSelectionStaticKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.js +38 -0
- package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidTimeKanbanField.js +8 -0
- package/dist/components/core/kanban/kanban-fields/SolidTimeKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidUuidKanbanField.js +8 -0
- package/dist/components/core/kanban/kanban-fields/SolidUuidKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/relations/SolidRelationManyToOneKanbanField.js +8 -0
- package/dist/components/core/kanban/kanban-fields/relations/SolidRelationManyToOneKanbanField.js.map +1 -0
- package/dist/components/core/list/ListViewRowActionPopup.js +34 -0
- package/dist/components/core/list/ListViewRowActionPopup.js.map +1 -0
- package/dist/components/core/list/SolidEmptyListViewPlaceholder.js +16 -0
- package/dist/components/core/list/SolidEmptyListViewPlaceholder.js.map +1 -0
- package/dist/components/core/list/SolidListColumnSelector.js +179 -0
- package/dist/components/core/list/SolidListColumnSelector.js.map +1 -0
- package/dist/components/core/list/SolidListView.js +692 -0
- package/dist/components/core/list/SolidListView.js.map +1 -0
- package/dist/components/core/list/SolidListViewColumn.js +147 -0
- package/dist/components/core/list/SolidListViewColumn.js.map +1 -0
- package/dist/components/core/list/SolidListViewConfigure.js +73 -0
- package/dist/components/core/list/SolidListViewConfigure.js.map +1 -0
- package/dist/components/core/list/SolidListViewShimmerLoading.js +7 -0
- package/dist/components/core/list/SolidListViewShimmerLoading.js.map +1 -0
- package/dist/components/core/list/SolidListingHeader.js +13 -0
- package/dist/components/core/list/SolidListingHeader.js.map +1 -0
- package/dist/components/core/list/SolidManyToOneFilterElement.js +87 -0
- package/dist/components/core/list/SolidManyToOneFilterElement.js.map +1 -0
- package/dist/components/core/list/SolidSelectionDynamicFilterElement.js +74 -0
- package/dist/components/core/list/SolidSelectionDynamicFilterElement.js.map +1 -0
- package/dist/components/core/list/SolidSelectionStaticFilterElement.js +21 -0
- package/dist/components/core/list/SolidSelectionStaticFilterElement.js.map +1 -0
- package/dist/components/core/list/SolidTableRowCell.js +7 -0
- package/dist/components/core/list/SolidTableRowCell.js.map +1 -0
- package/dist/components/core/list/SolidVarInputsFilterElement.js +82 -0
- package/dist/components/core/list/SolidVarInputsFilterElement.js.map +1 -0
- package/dist/components/core/list/columns/SolidBigintColumn.js +8 -0
- package/dist/components/core/list/columns/SolidBigintColumn.js.map +1 -0
- package/dist/components/core/list/columns/SolidBooleanColumn.js +67 -0
- package/dist/components/core/list/columns/SolidBooleanColumn.js.map +1 -0
- package/dist/components/core/list/columns/SolidComputedColumn.js +22 -0
- package/dist/components/core/list/columns/SolidComputedColumn.js.map +1 -0
- package/dist/components/core/list/columns/SolidDateColumn.js +69 -0
- package/dist/components/core/list/columns/SolidDateColumn.js.map +1 -0
- package/dist/components/core/list/columns/SolidDatetimeColumn.js +58 -0
- package/dist/components/core/list/columns/SolidDatetimeColumn.js.map +1 -0
- package/dist/components/core/list/columns/SolidDecimalColumn.js +8 -0
- package/dist/components/core/list/columns/SolidDecimalColumn.js.map +1 -0
- package/dist/components/core/list/columns/SolidExternalIdColumn.js +59 -0
- package/dist/components/core/list/columns/SolidExternalIdColumn.js.map +1 -0
- package/dist/components/core/list/columns/SolidFloatColumn.js +8 -0
- package/dist/components/core/list/columns/SolidFloatColumn.js.map +1 -0
- package/dist/components/core/list/columns/SolidIdColumn.js +59 -0
- package/dist/components/core/list/columns/SolidIdColumn.js.map +1 -0
- package/dist/components/core/list/columns/SolidIntColumn.js +68 -0
- package/dist/components/core/list/columns/SolidIntColumn.js.map +1 -0
- package/dist/components/core/list/columns/SolidLongTextColumn.js +8 -0
- package/dist/components/core/list/columns/SolidLongTextColumn.js.map +1 -0
- package/dist/components/core/list/columns/SolidMediaMultipleColumn.js +65 -0
- package/dist/components/core/list/columns/SolidMediaMultipleColumn.js.map +1 -0
- package/dist/components/core/list/columns/SolidMediaSingleColumn.js +60 -0
- package/dist/components/core/list/columns/SolidMediaSingleColumn.js.map +1 -0
- package/dist/components/core/list/columns/SolidRelationColumn.js +20 -0
- package/dist/components/core/list/columns/SolidRelationColumn.js.map +1 -0
- package/dist/components/core/list/columns/SolidRichTextColumn.js +8 -0
- package/dist/components/core/list/columns/SolidRichTextColumn.js.map +1 -0
- package/dist/components/core/list/columns/SolidSelectionDynamicColumn.js +59 -0
- package/dist/components/core/list/columns/SolidSelectionDynamicColumn.js.map +1 -0
- package/dist/components/core/list/columns/SolidSelectionStaticColumn.js +59 -0
- package/dist/components/core/list/columns/SolidSelectionStaticColumn.js.map +1 -0
- package/dist/components/core/list/columns/SolidShortTextColumn.js +77 -0
- package/dist/components/core/list/columns/SolidShortTextColumn.js.map +1 -0
- package/dist/components/core/list/columns/SolidTimeColumn.js +58 -0
- package/dist/components/core/list/columns/SolidTimeColumn.js.map +1 -0
- package/dist/components/core/list/columns/SolidUuidColumn.js +59 -0
- package/dist/components/core/list/columns/SolidUuidColumn.js.map +1 -0
- package/dist/components/core/list/columns/relations/SolidRelationManyToManyColumn.js +70 -0
- package/dist/components/core/list/columns/relations/SolidRelationManyToManyColumn.js.map +1 -0
- package/dist/components/core/list/columns/relations/SolidRelationManyToOneColumn.js +67 -0
- package/dist/components/core/list/columns/relations/SolidRelationManyToOneColumn.js.map +1 -0
- package/dist/components/core/list/columns/relations/SolidRelationOneToManyColumn.js +70 -0
- package/dist/components/core/list/columns/relations/SolidRelationOneToManyColumn.js.map +1 -0
- package/dist/components/core/list/widgets/SolidRelationAvatarWidget.js +61 -0
- package/dist/components/core/list/widgets/SolidRelationAvatarWidget.js.map +1 -0
- package/dist/components/core/list/widgets/SolidShortTextAvatarWidget.js +42 -0
- package/dist/components/core/list/widgets/SolidShortTextAvatarWidget.js.map +1 -0
- package/dist/components/core/list/widgets/SolidShortTextFieldImageRenderModeWidget.js +10 -0
- package/dist/components/core/list/widgets/SolidShortTextFieldImageRenderModeWidget.js.map +1 -0
- package/dist/components/core/model/CreateModel.js +349 -0
- package/dist/components/core/model/CreateModel.js.map +1 -0
- package/dist/components/core/model/FieldMetaData.js +139 -0
- package/dist/components/core/model/FieldMetaData.js.map +1 -0
- package/dist/components/core/model/FieldMetaDataForm.js +1150 -0
- package/dist/components/core/model/FieldMetaDataForm.js.map +1 -0
- package/dist/components/core/model/FieldSelector.js +37 -0
- package/dist/components/core/model/FieldSelector.js.map +1 -0
- package/dist/components/core/model/ModelListViewData.js +211 -0
- package/dist/components/core/model/ModelListViewData.js.map +1 -0
- package/dist/components/core/model/ModelMetaData.js +397 -0
- package/dist/components/core/model/ModelMetaData.js.map +1 -0
- package/dist/components/core/module/CreateModule.js +362 -0
- package/dist/components/core/module/CreateModule.js.map +1 -0
- package/dist/components/core/module/ModuleListViewData.js +263 -0
- package/dist/components/core/module/ModuleListViewData.js.map +1 -0
- package/dist/components/core/users/CreateUser.js +238 -0
- package/dist/components/core/users/CreateUser.js.map +1 -0
- package/dist/components/core/users/CreateUserRole.js +168 -0
- package/dist/components/core/users/CreateUserRole.js.map +1 -0
- package/dist/components/core/users/UserListView.js +223 -0
- package/dist/components/core/users/UserListView.js.map +1 -0
- package/dist/components/layout/AdminLayout.js +86 -0
- package/dist/components/layout/AdminLayout.js.map +1 -0
- package/dist/components/layout/AdminSidebar.js +42 -0
- package/dist/components/layout/AdminSidebar.js.map +1 -0
- package/dist/components/layout/AppConfig.js +52 -0
- package/dist/components/layout/AppConfig.js.map +1 -0
- package/dist/components/layout/AppSidebar.js +133 -0
- package/dist/components/layout/AppSidebar.js.map +1 -0
- package/dist/components/layout/ButtonLoader.js +7 -0
- package/dist/components/layout/ButtonLoader.js.map +1 -0
- package/dist/components/layout/CustomPagination.js +49 -0
- package/dist/components/layout/CustomPagination.js.map +1 -0
- package/dist/components/layout/DashboardHeader.js +27 -0
- package/dist/components/layout/DashboardHeader.js.map +1 -0
- package/dist/components/layout/FilterMenu.js +49 -0
- package/dist/components/layout/FilterMenu.js.map +1 -0
- package/dist/components/layout/Footer.js +7 -0
- package/dist/components/layout/Footer.js.map +1 -0
- package/dist/components/layout/GlobalSearch.js +26 -0
- package/dist/components/layout/GlobalSearch.js.map +1 -0
- package/dist/components/layout/Header.js +8 -0
- package/dist/components/layout/Header.js.map +1 -0
- package/dist/components/layout/Layout.js +114 -0
- package/dist/components/layout/Layout.js.map +1 -0
- package/dist/components/layout/ListingHeader.js +90 -0
- package/dist/components/layout/ListingHeader.js.map +1 -0
- package/dist/components/layout/Loader.js +7 -0
- package/dist/components/layout/Loader.js.map +1 -0
- package/dist/components/layout/UserSidebar.js +32 -0
- package/dist/components/layout/UserSidebar.js.map +1 -0
- package/dist/components/layout/context/layoutcontext.js +56 -0
- package/dist/components/layout/context/layoutcontext.js.map +1 -0
- package/dist/components/layout/navbar-one.js +89 -0
- package/dist/components/layout/navbar-one.js.map +1 -0
- package/dist/components/layout/navbar-two-menu.js +45 -0
- package/dist/components/layout/navbar-two-menu.js.map +1 -0
- package/dist/components/layout/navbar-two.js +35 -0
- package/dist/components/layout/navbar-two.js.map +1 -0
- package/dist/components/layout/user-profile-menu.js +61 -0
- package/dist/components/layout/user-profile-menu.js.map +1 -0
- package/dist/components/layout/user-profile.js +8 -0
- package/dist/components/layout/user-profile.js.map +1 -0
- package/dist/components/modelsComponents/filterIcon.js +6 -0
- package/dist/components/modelsComponents/filterIcon.js.map +1 -0
- package/dist/components/tables/DemoData.js +317 -0
- package/dist/components/tables/DemoData.js.map +1 -0
- package/dist/components/tables/DynamicTable.js +24 -0
- package/dist/components/tables/DynamicTable.js.map +1 -0
- package/dist/components/tables/ListViewTable.js +120 -0
- package/dist/components/tables/ListViewTable.js.map +1 -0
- package/dist/helpers/AppTitle.js +8 -0
- package/dist/helpers/AppTitle.js.map +1 -0
- package/dist/helpers/ToastContainer.js +49 -0
- package/dist/helpers/ToastContainer.js.map +1 -0
- package/dist/helpers/authHeader.js +18 -0
- package/dist/helpers/authHeader.js.map +1 -0
- package/dist/helpers/countries.js +262 -0
- package/dist/helpers/countries.js.map +1 -0
- package/dist/helpers/downloadMediaFile.js +66 -0
- package/dist/helpers/downloadMediaFile.js.map +1 -0
- package/dist/helpers/getAcceptedFileTypes.js +20 -0
- package/dist/helpers/getAcceptedFileTypes.js.map +1 -0
- package/dist/helpers/getRandomColors.js +63 -0
- package/dist/helpers/getRandomColors.js.map +1 -0
- package/dist/helpers/helpers.js +26 -0
- package/dist/helpers/helpers.js.map +1 -0
- package/dist/helpers/menu.js +668 -0
- package/dist/helpers/menu.js.map +1 -0
- package/dist/helpers/permissions.js +15 -0
- package/dist/helpers/permissions.js.map +1 -0
- package/dist/helpers/registry.js +139 -0
- package/dist/helpers/registry.js.map +1 -0
- package/dist/helpers/revalidate.js +48 -0
- package/dist/helpers/revalidate.js.map +1 -0
- package/dist/index.js +578 -0
- package/dist/index.js.map +1 -0
- package/dist/nextAuth/authProviders.js +236 -0
- package/dist/nextAuth/authProviders.js.map +1 -0
- package/dist/nextAuth/refreshAccessToken.js +76 -0
- package/dist/nextAuth/refreshAccessToken.js.map +1 -0
- package/dist/redux/api/articleApi.js +57 -0
- package/dist/redux/api/articleApi.js.map +1 -0
- package/dist/redux/api/authApi.js +120 -0
- package/dist/redux/api/authApi.js.map +1 -0
- package/dist/redux/api/automationApi.js +57 -0
- package/dist/redux/api/automationApi.js.map +1 -0
- package/dist/redux/api/categoryApi.js +48 -0
- package/dist/redux/api/categoryApi.js.map +1 -0
- package/dist/redux/api/cityApi.js +54 -0
- package/dist/redux/api/cityApi.js.map +1 -0
- package/dist/redux/api/cmsBannerImageApi.js +57 -0
- package/dist/redux/api/cmsBannerImageApi.js.map +1 -0
- package/dist/redux/api/countryApi.js +57 -0
- package/dist/redux/api/countryApi.js.map +1 -0
- package/dist/redux/api/fetchBaseQuery.js +59 -0
- package/dist/redux/api/fetchBaseQuery.js.map +1 -0
- package/dist/redux/api/fieldApi.js +63 -0
- package/dist/redux/api/fieldApi.js.map +1 -0
- package/dist/redux/api/mediaApi.js +57 -0
- package/dist/redux/api/mediaApi.js.map +1 -0
- package/dist/redux/api/mediaStorageProviderApi.js +57 -0
- package/dist/redux/api/mediaStorageProviderApi.js.map +1 -0
- package/dist/redux/api/menuApi.js +57 -0
- package/dist/redux/api/menuApi.js.map +1 -0
- package/dist/redux/api/menuItemsApi.js +58 -0
- package/dist/redux/api/menuItemsApi.js.map +1 -0
- package/dist/redux/api/modelApi.js +78 -0
- package/dist/redux/api/modelApi.js.map +1 -0
- package/dist/redux/api/moduleApi.js +74 -0
- package/dist/redux/api/moduleApi.js.map +1 -0
- package/dist/redux/api/orderAttributeApi.js +39 -0
- package/dist/redux/api/orderAttributeApi.js.map +1 -0
- package/dist/redux/api/permissionApi.js +27 -0
- package/dist/redux/api/permissionApi.js.map +1 -0
- package/dist/redux/api/pincodeApi.js +54 -0
- package/dist/redux/api/pincodeApi.js.map +1 -0
- package/dist/redux/api/productData.js +78 -0
- package/dist/redux/api/productData.js.map +1 -0
- package/dist/redux/api/radixExtraModelAttributeApi.js +39 -0
- package/dist/redux/api/radixExtraModelAttributeApi.js.map +1 -0
- package/dist/redux/api/radixModelMetadataApi.js +64 -0
- package/dist/redux/api/radixModelMetadataApi.js.map +1 -0
- package/dist/redux/api/radixModelsApi.js +67 -0
- package/dist/redux/api/radixModelsApi.js.map +1 -0
- package/dist/redux/api/ratingApi.js +57 -0
- package/dist/redux/api/ratingApi.js.map +1 -0
- package/dist/redux/api/reviewApi.js +57 -0
- package/dist/redux/api/reviewApi.js.map +1 -0
- package/dist/redux/api/roleApi.js +49 -0
- package/dist/redux/api/roleApi.js.map +1 -0
- package/dist/redux/api/solidActionApi.js +58 -0
- package/dist/redux/api/solidActionApi.js.map +1 -0
- package/dist/redux/api/solidChatterMessageApi.js +29 -0
- package/dist/redux/api/solidChatterMessageApi.js.map +1 -0
- package/dist/redux/api/solidEntityApi.js +118 -0
- package/dist/redux/api/solidEntityApi.js.map +1 -0
- package/dist/redux/api/solidMenuApi.js +61 -0
- package/dist/redux/api/solidMenuApi.js.map +1 -0
- package/dist/redux/api/solidSettingsApi.js +50 -0
- package/dist/redux/api/solidSettingsApi.js.map +1 -0
- package/dist/redux/api/solidViewApi.js +63 -0
- package/dist/redux/api/solidViewApi.js.map +1 -0
- package/dist/redux/api/stateApi.js +54 -0
- package/dist/redux/api/stateApi.js.map +1 -0
- package/dist/redux/api/tagApi.js +57 -0
- package/dist/redux/api/tagApi.js.map +1 -0
- package/dist/redux/api/tagGroupApi.js +57 -0
- package/dist/redux/api/tagGroupApi.js.map +1 -0
- package/dist/redux/api/testApi.js +19 -0
- package/dist/redux/api/testApi.js.map +1 -0
- package/dist/redux/api/userApi.js +103 -0
- package/dist/redux/api/userApi.js.map +1 -0
- package/dist/redux/features/authSlice.js +19 -0
- package/dist/redux/features/authSlice.js.map +1 -0
- package/dist/redux/features/dataViewSlice.js +21 -0
- package/dist/redux/features/dataViewSlice.js.map +1 -0
- package/dist/redux/features/navbarSlice.js +22 -0
- package/dist/redux/features/navbarSlice.js.map +1 -0
- package/dist/redux/features/popupSlice.js +27 -0
- package/dist/redux/features/popupSlice.js.map +1 -0
- package/dist/redux/features/themeSlice.js +16 -0
- package/dist/redux/features/themeSlice.js.map +1 -0
- package/dist/redux/features/userSlice.js +21 -0
- package/dist/redux/features/userSlice.js.map +1 -0
- package/dist/types/solid-core.d.ts +1 -0
- package/package.json +1 -1
- package/src/types/solid-core.d.ts +1 -0
- package/tsconfig.json +1 -1
|
@@ -0,0 +1,678 @@
|
|
|
1
|
+
// @ts-nocheck
|
|
2
|
+
"use client";
|
|
3
|
+
var __assign = (this && this.__assign) || function () {
|
|
4
|
+
__assign = Object.assign || function(t) {
|
|
5
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
6
|
+
s = arguments[i];
|
|
7
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
8
|
+
t[p] = s[p];
|
|
9
|
+
}
|
|
10
|
+
return t;
|
|
11
|
+
};
|
|
12
|
+
return __assign.apply(this, arguments);
|
|
13
|
+
};
|
|
14
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
24
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
25
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
26
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
27
|
+
function step(op) {
|
|
28
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
29
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
30
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
31
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
32
|
+
switch (op[0]) {
|
|
33
|
+
case 0: case 1: t = op; break;
|
|
34
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
35
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
36
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
37
|
+
default:
|
|
38
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
39
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
40
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
41
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
42
|
+
if (t[2]) _.ops.pop();
|
|
43
|
+
_.trys.pop(); continue;
|
|
44
|
+
}
|
|
45
|
+
op = body.call(thisArg, _);
|
|
46
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
47
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
51
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
52
|
+
if (ar || !(i in from)) {
|
|
53
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
54
|
+
ar[i] = from[i];
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
58
|
+
};
|
|
59
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
60
|
+
import { createPermission, deletePermission, updatePermission } from "../../../helpers/permissions";
|
|
61
|
+
import { createSolidEntityApi } from "../../../redux/api/solidEntityApi";
|
|
62
|
+
import { useGetSolidViewLayoutQuery } from "../../../redux/api/solidViewApi";
|
|
63
|
+
import { useLazyCheckIfPermissionExistsQuery } from "../../../redux/api/userApi";
|
|
64
|
+
import Link from "next/link";
|
|
65
|
+
import { FilterMatchMode } from "primereact/api";
|
|
66
|
+
import { Button } from "primereact/button";
|
|
67
|
+
import { Dialog } from "primereact/dialog";
|
|
68
|
+
import qs from "qs";
|
|
69
|
+
import { useEffect, useRef, useState } from "react";
|
|
70
|
+
import { SolidCreateButton } from "../common/SolidCreateButton";
|
|
71
|
+
import { SolidGlobalSearchElement } from "../common/SolidGlobalSearchElement";
|
|
72
|
+
import KanbanBoard from "./KanbanBoard";
|
|
73
|
+
import CompactImage from '../../../resources/images/layout/images/compact.png';
|
|
74
|
+
import CozyImage from '../../../resources/images/layout/images/cozy.png';
|
|
75
|
+
import ComfortableImage from '../../../resources/images/layout/images/comfortable.png';
|
|
76
|
+
import { capitalize } from "lodash";
|
|
77
|
+
import Lightbox from "yet-another-react-lightbox";
|
|
78
|
+
import Counter from "yet-another-react-lightbox/plugins/counter";
|
|
79
|
+
import Download from "yet-another-react-lightbox/plugins/download";
|
|
80
|
+
import "yet-another-react-lightbox/styles.css";
|
|
81
|
+
import "yet-another-react-lightbox/plugins/counter.css";
|
|
82
|
+
import { useRouter, useSearchParams } from "next/navigation";
|
|
83
|
+
import { SolidKanbanViewConfigure } from "./SolidKanbanViewConfigure";
|
|
84
|
+
import { KanbanUserViewLayout } from "./KanbanUserViewLayout";
|
|
85
|
+
import { useSelector } from "react-redux";
|
|
86
|
+
import { queryObjectToQueryString, queryStringToQueryObject } from "../list/SolidListView";
|
|
87
|
+
import { Toast } from "primereact/toast";
|
|
88
|
+
export var SolidKanbanView = function (params) {
|
|
89
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
90
|
+
var user = useSelector(function (state) { return state.auth; }).user;
|
|
91
|
+
var solidGlobalSearchElementRef = useRef();
|
|
92
|
+
var searchParams = useSearchParams().toString(); // Converts the query params to a string
|
|
93
|
+
var router = useRouter();
|
|
94
|
+
// TODO: The initial filter state will be created based on the fields which are present on this kanban view.
|
|
95
|
+
var _m = useState(), filters = _m[0], setFilters = _m[1];
|
|
96
|
+
var _o = useState([]), toPopulate = _o[0], setToPopulate = _o[1];
|
|
97
|
+
var _p = useState([]), toPopulateMedia = _p[0], setToPopulateMedia = _p[1];
|
|
98
|
+
var _q = useState([]), actionsAllowed = _q[0], setActionsAllowed = _q[1];
|
|
99
|
+
var _r = useState(false), showGlobalSearchElement = _r[0], setShowGlobalSearchElement = _r[1];
|
|
100
|
+
var _s = useState(false), showArchived = _s[0], setShowArchived = _s[1];
|
|
101
|
+
var sizeOptions = [
|
|
102
|
+
{ label: 'Compact', value: 'small', image: CompactImage },
|
|
103
|
+
{ label: 'Cozy', value: 'normal', image: CozyImage },
|
|
104
|
+
{ label: 'Comfortable', value: 'large', image: ComfortableImage }
|
|
105
|
+
];
|
|
106
|
+
var _t = useState(sizeOptions[1].value), size = _t[0], setSize = _t[1];
|
|
107
|
+
var _u = useState([]), viewModes = _u[0], setViewModes = _u[1];
|
|
108
|
+
var _v = useState(""), groupByFieldName = _v[0], setGroupByFieldName = _v[1];
|
|
109
|
+
var _w = useState(true), groupedView = _w[0], setGroupedView = _w[1];
|
|
110
|
+
var triggerCheckIfPermissionExists = useLazyCheckIfPermissionExistsQuery()[0];
|
|
111
|
+
var _x = useState(false), openLightbox = _x[0], setOpenLightbox = _x[1];
|
|
112
|
+
var _y = useState({}), lightboxUrls = _y[0], setLightboxUrls = _y[1];
|
|
113
|
+
var _z = useState(), filterQueryString = _z[0], setFilterQueryString = _z[1];
|
|
114
|
+
var _0 = useState(false), isLayoutDialogVisible = _0[0], setLayoutDialogVisible = _0[1];
|
|
115
|
+
var toast = useRef(null);
|
|
116
|
+
var pushFiltersToRouter = function (filterQueryString) {
|
|
117
|
+
router.push("?".concat(filterQueryString), undefined, { shallow: true });
|
|
118
|
+
};
|
|
119
|
+
useEffect(function () {
|
|
120
|
+
if (filterQueryString) {
|
|
121
|
+
pushFiltersToRouter(filterQueryString);
|
|
122
|
+
}
|
|
123
|
+
}, [filterQueryString]);
|
|
124
|
+
useEffect(function () {
|
|
125
|
+
var fetchPermissions = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
126
|
+
var permissionNames, queryData, queryString, response;
|
|
127
|
+
return __generator(this, function (_a) {
|
|
128
|
+
switch (_a.label) {
|
|
129
|
+
case 0:
|
|
130
|
+
if (!params.modelName) return [3 /*break*/, 2];
|
|
131
|
+
permissionNames = [
|
|
132
|
+
createPermission(params.modelName),
|
|
133
|
+
deletePermission(params.modelName),
|
|
134
|
+
updatePermission(params.modelName)
|
|
135
|
+
];
|
|
136
|
+
queryData = {
|
|
137
|
+
permissionNames: permissionNames
|
|
138
|
+
};
|
|
139
|
+
queryString = qs.stringify(queryData, {
|
|
140
|
+
encodeValuesOnly: true
|
|
141
|
+
});
|
|
142
|
+
return [4 /*yield*/, triggerCheckIfPermissionExists(queryString)];
|
|
143
|
+
case 1:
|
|
144
|
+
response = _a.sent();
|
|
145
|
+
setActionsAllowed(response.data.data);
|
|
146
|
+
_a.label = 2;
|
|
147
|
+
case 2: return [2 /*return*/];
|
|
148
|
+
}
|
|
149
|
+
});
|
|
150
|
+
}); };
|
|
151
|
+
fetchPermissions();
|
|
152
|
+
}, [params.modelName]);
|
|
153
|
+
var isFilterApplied = filters ? true : false;
|
|
154
|
+
// Create the RTK slices for this entity
|
|
155
|
+
var entityApi = createSolidEntityApi(params.modelName);
|
|
156
|
+
var useCreateSolidEntityMutation = entityApi.useCreateSolidEntityMutation, useDeleteMultipleSolidEntitiesMutation = entityApi.useDeleteMultipleSolidEntitiesMutation, useDeleteSolidEntityMutation = entityApi.useDeleteSolidEntityMutation, useGetSolidEntitiesQuery = entityApi.useGetSolidEntitiesQuery, useGetSolidEntityByIdQuery = entityApi.useGetSolidEntityByIdQuery, useLazyGetSolidEntitiesQuery = entityApi.useLazyGetSolidEntitiesQuery, useGetSolidKanbanEntitiesQuery = entityApi.useGetSolidKanbanEntitiesQuery, useLazyGetSolidKanbanEntitiesQuery = entityApi.useLazyGetSolidKanbanEntitiesQuery, useLazyGetSolidEntityByIdQuery = entityApi.useLazyGetSolidEntityByIdQuery, usePrefetch = entityApi.usePrefetch, useUpdateSolidEntityMutation = entityApi.useUpdateSolidEntityMutation, usePatchUpdateSolidEntityMutation = entityApi.usePatchUpdateSolidEntityMutation;
|
|
157
|
+
// Get the kanban view layout & metadata first.
|
|
158
|
+
var kanbanViewMetaDataQs = qs.stringify(__assign(__assign({}, params), { viewType: 'kanban' }), {
|
|
159
|
+
encodeValuesOnly: true,
|
|
160
|
+
});
|
|
161
|
+
var _1 = useState({}), kanbanViewMetaData = _1[0], setKanbanViewMetaData = _1[1];
|
|
162
|
+
var _2 = useGetSolidViewLayoutQuery(kanbanViewMetaDataQs), solidKanbanViewMetaData = _2.data, solidKanbanViewMetaDataError = _2.error, solidKanbanViewMetaDataIsLoading = _2.isLoading, solidKanbanViewMetaDataIsError = _2.isError;
|
|
163
|
+
var initialFilterMethod = function () {
|
|
164
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
165
|
+
var solidView = solidKanbanViewMetaData.data.solidView;
|
|
166
|
+
var solidFieldsMetadata = solidKanbanViewMetaData.data.solidFieldsMetadata;
|
|
167
|
+
var initialFilters = {};
|
|
168
|
+
var toPopulate = [];
|
|
169
|
+
var toPopulateMedia = [];
|
|
170
|
+
function extractFields(node, result) {
|
|
171
|
+
if (result === void 0) { result = []; }
|
|
172
|
+
if (node.type === "field") {
|
|
173
|
+
result.push(node);
|
|
174
|
+
}
|
|
175
|
+
if (node.children) {
|
|
176
|
+
node.children.forEach(function (child) { return extractFields(child, result); });
|
|
177
|
+
}
|
|
178
|
+
return result;
|
|
179
|
+
}
|
|
180
|
+
var data = { /* Your JSON object here */};
|
|
181
|
+
var layoutFields = extractFields(solidView.layout);
|
|
182
|
+
for (var i = 0; i < layoutFields.length; i++) {
|
|
183
|
+
var column = layoutFields[i];
|
|
184
|
+
var fieldMetadata = solidFieldsMetadata[column.attrs.name];
|
|
185
|
+
// Form the initial filters after iterating over the columns and field metadata.
|
|
186
|
+
if (['int', 'bigint', 'float', 'decimal'].includes(fieldMetadata.type)) {
|
|
187
|
+
// initialFilters[column.attrs.name] = { operator: FilterOperator.OR, constraints: [{ value: null, matchMode: FilterMatchMode.EQUALS }] }
|
|
188
|
+
initialFilters[column.attrs.name] = { value: null, matchMode: FilterMatchMode.EQUALS };
|
|
189
|
+
}
|
|
190
|
+
else if (['date', 'datetime', 'time', 'boolean'].includes(fieldMetadata.type)) {
|
|
191
|
+
// initialFilters[column.attrs.name] = { operator: FilterOperator.OR, constraints: [{ value: null, matchMode: FilterMatchMode.DATE_IS }] }
|
|
192
|
+
initialFilters[column.attrs.name] = { value: null, matchMode: FilterMatchMode.EQUALS };
|
|
193
|
+
}
|
|
194
|
+
else if (['relation', 'selectionStatic', 'selectionDynamic'].includes(fieldMetadata.type)) {
|
|
195
|
+
initialFilters[column.attrs.name] = { value: null, matchMode: FilterMatchMode.IN };
|
|
196
|
+
}
|
|
197
|
+
else {
|
|
198
|
+
// initialFilters[column.attrs.name] = { operator: FilterOperator.OR, constraints: [{ value: null, matchMode: FilterMatchMode.STARTS_WITH }] }
|
|
199
|
+
initialFilters[column.attrs.name] = { value: null, matchMode: FilterMatchMode.STARTS_WITH };
|
|
200
|
+
}
|
|
201
|
+
if (column.attrs.name === 'id') {
|
|
202
|
+
initialFilters[column.attrs.name] = { value: null, matchMode: FilterMatchMode.IN };
|
|
203
|
+
}
|
|
204
|
+
// Form the "toPopulate" array.
|
|
205
|
+
if (fieldMetadata.type === 'relation' && fieldMetadata.relationType === 'many-to-one') {
|
|
206
|
+
toPopulate.push(fieldMetadata.name);
|
|
207
|
+
}
|
|
208
|
+
if (fieldMetadata.type === 'mediaSingle' || fieldMetadata.type === 'mediaMultiple') {
|
|
209
|
+
toPopulateMedia.push(fieldMetadata.name);
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
// setFilters(initialFilters);
|
|
213
|
+
var recordsInSwimlane = ((_d = (_c = (_b = (_a = solidKanbanViewMetaData === null || solidKanbanViewMetaData === void 0 ? void 0 : solidKanbanViewMetaData.data) === null || _a === void 0 ? void 0 : _a.solidView) === null || _b === void 0 ? void 0 : _b.layout) === null || _c === void 0 ? void 0 : _c.attrs) === null || _d === void 0 ? void 0 : _d.recordsInSwimlane) ? (_h = (_g = (_f = (_e = solidKanbanViewMetaData === null || solidKanbanViewMetaData === void 0 ? void 0 : solidKanbanViewMetaData.data) === null || _e === void 0 ? void 0 : _e.solidView) === null || _f === void 0 ? void 0 : _f.layout) === null || _g === void 0 ? void 0 : _g.attrs) === null || _h === void 0 ? void 0 : _h.recordsInSwimlane : 25;
|
|
214
|
+
// setToPopulate(toPopulate);
|
|
215
|
+
// setToPopulateMedia(toPopulateMedia);
|
|
216
|
+
setRecordsInSwimlane(recordsInSwimlane);
|
|
217
|
+
setToPopulate(toPopulate);
|
|
218
|
+
setToPopulateMedia(toPopulateMedia);
|
|
219
|
+
return { recordsInSwimlane: recordsInSwimlane, toPopulate: toPopulate, toPopulateMedia: toPopulateMedia };
|
|
220
|
+
};
|
|
221
|
+
// Initial Filter data
|
|
222
|
+
useEffect(function () {
|
|
223
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v;
|
|
224
|
+
if (solidKanbanViewMetaData) {
|
|
225
|
+
setKanbanViewMetaData(solidKanbanViewMetaData);
|
|
226
|
+
// initialFilterMethod();
|
|
227
|
+
var viewModes_1 = ((_d = (_c = (_b = (_a = solidKanbanViewMetaData === null || solidKanbanViewMetaData === void 0 ? void 0 : solidKanbanViewMetaData.data) === null || _a === void 0 ? void 0 : _a.solidView) === null || _b === void 0 ? void 0 : _b.layout) === null || _c === void 0 ? void 0 : _c.attrs) === null || _d === void 0 ? void 0 : _d.allowedViews) && ((_h = (_g = (_f = (_e = solidKanbanViewMetaData === null || solidKanbanViewMetaData === void 0 ? void 0 : solidKanbanViewMetaData.data) === null || _e === void 0 ? void 0 : _e.solidView) === null || _f === void 0 ? void 0 : _f.layout) === null || _g === void 0 ? void 0 : _g.attrs) === null || _h === void 0 ? void 0 : _h.allowedViews.length) > 0 && ((_m = (_l = (_k = (_j = solidKanbanViewMetaData === null || solidKanbanViewMetaData === void 0 ? void 0 : solidKanbanViewMetaData.data) === null || _j === void 0 ? void 0 : _j.solidView) === null || _k === void 0 ? void 0 : _k.layout) === null || _l === void 0 ? void 0 : _l.attrs) === null || _m === void 0 ? void 0 : _m.allowedViews.map(function (view) { return { label: capitalize(view), value: view }; }));
|
|
228
|
+
setViewModes(viewModes_1);
|
|
229
|
+
if (((_r = (_q = (_p = (_o = solidKanbanViewMetaData === null || solidKanbanViewMetaData === void 0 ? void 0 : solidKanbanViewMetaData.data) === null || _o === void 0 ? void 0 : _o.solidView) === null || _p === void 0 ? void 0 : _p.layout) === null || _q === void 0 ? void 0 : _q.attrs) === null || _r === void 0 ? void 0 : _r.grouped) !== false) {
|
|
230
|
+
setGroupByFieldName((_v = (_u = (_t = (_s = solidKanbanViewMetaData === null || solidKanbanViewMetaData === void 0 ? void 0 : solidKanbanViewMetaData.data) === null || _s === void 0 ? void 0 : _s.solidView) === null || _t === void 0 ? void 0 : _t.layout) === null || _u === void 0 ? void 0 : _u.attrs) === null || _v === void 0 ? void 0 : _v.groupBy);
|
|
231
|
+
}
|
|
232
|
+
else {
|
|
233
|
+
setGroupByFieldName("deletedTracker");
|
|
234
|
+
setGroupedView(false);
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
}, [solidKanbanViewMetaData]);
|
|
238
|
+
// All kanban view state.
|
|
239
|
+
var _3 = useState([]), kanbanViewData = _3[0], setKanbanViewData = _3[1];
|
|
240
|
+
var _4 = useState({}), kanbanLoadMoreData = _4[0], setKanbanLoadMoreData = _4[1];
|
|
241
|
+
var _5 = useState(25), recordsInSwimlane = _5[0], setRecordsInSwimlane = _5[1];
|
|
242
|
+
var _6 = useState([]), selectedRecords = _6[0], setSelectedRecords = _6[1];
|
|
243
|
+
var _7 = useState(true), loading = _7[0], setLoading = _7[1];
|
|
244
|
+
var _8 = useState(false), isDialogVisible = _8[0], setDialogVisible = _8[1];
|
|
245
|
+
var _9 = useState(), createButtonUrl = _9[0], setCreateButtonUrl = _9[1];
|
|
246
|
+
var _10 = useState(), editButtonUrl = _10[0], setEditButtonUrl = _10[1];
|
|
247
|
+
var _11 = useState(5), columnsCount = _11[0], setColumnsCount = _11[1];
|
|
248
|
+
var _12 = useState(1), swimLaneCurrentPageNumber = _12[0], setSwimLaneCurrentPageNumber = _12[1];
|
|
249
|
+
var _13 = useState(false), queryDataLoaded = _13[0], setQueryDataLoaded = _13[1];
|
|
250
|
+
var _14 = useState(false), showSaveFilterPopup = _14[0], setShowSaveFilterPopup = _14[1];
|
|
251
|
+
var showToast = function (severity, summary, detail) {
|
|
252
|
+
var _a;
|
|
253
|
+
(_a = toast.current) === null || _a === void 0 ? void 0 : _a.show({
|
|
254
|
+
severity: severity,
|
|
255
|
+
summary: summary,
|
|
256
|
+
detail: detail,
|
|
257
|
+
life: 3000,
|
|
258
|
+
});
|
|
259
|
+
};
|
|
260
|
+
// Get the kanban view data.
|
|
261
|
+
// const [triggerGetSolidEntitiesForKanban, { data: solidEntityKanbanViewData, isLoading, error }] = useLazyGetSolidKanbanEntitiesQuery();
|
|
262
|
+
var _15 = useLazyGetSolidEntitiesQuery(), triggerGetSolidEntities = _15[0], _16 = _15[1], solidEntityKanbanViewData = _16.data, isLoading = _16.isLoading, error = _16.error;
|
|
263
|
+
// Delete mutation
|
|
264
|
+
var _17 = useDeleteMultipleSolidEntitiesMutation(), deleteManySolidEntities = _17[0], _18 = _17[1], isSolidEntitiesDeleted = _18.isLoading, isDeleteSolidEntitiesSucess = _18.isSuccess, isSolidEntitiesDeleteError = _18.isError, SolidEntitiesDeleteError = _18.error, DeletedSolidEntities = _18.data;
|
|
265
|
+
var _19 = usePatchUpdateSolidEntityMutation(), patchKanbanView = _19[0], _20 = _19[1], isKanbanUpdateSuccessfull = _20.isSuccess, isKanbanUpdateError = _20.isError, kanbanUpdateError = _20.error;
|
|
266
|
+
// After data is fetched populate the kanban view state so as to be able to render the data.
|
|
267
|
+
useEffect(function () {
|
|
268
|
+
if (solidEntityKanbanViewData) {
|
|
269
|
+
var latestKanbanGroupData = __spreadArray(__spreadArray([], kanbanViewData, true), solidEntityKanbanViewData === null || solidEntityKanbanViewData === void 0 ? void 0 : solidEntityKanbanViewData.groupRecords, true);
|
|
270
|
+
setKanbanViewData(latestKanbanGroupData);
|
|
271
|
+
var loadmoredata = Object.entries(latestKanbanGroupData).reduce(function (acc, _a) {
|
|
272
|
+
var key = _a[0], value = _a[1];
|
|
273
|
+
acc[value.groupName] = {
|
|
274
|
+
offset: (value.groupData.meta.currentPage - 1) * value.groupData.meta.perPage,
|
|
275
|
+
limit: value.groupData.meta.perPage,
|
|
276
|
+
count: value.groupData.meta.totalRecords
|
|
277
|
+
};
|
|
278
|
+
return acc;
|
|
279
|
+
}, {});
|
|
280
|
+
setKanbanLoadMoreData(loadmoredata);
|
|
281
|
+
setLoading(false);
|
|
282
|
+
}
|
|
283
|
+
}, [solidEntityKanbanViewData]);
|
|
284
|
+
useEffect(function () {
|
|
285
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3;
|
|
286
|
+
if (solidKanbanViewMetaData) {
|
|
287
|
+
var createActionUrl = ((_d = (_c = (_b = (_a = solidKanbanViewMetaData === null || solidKanbanViewMetaData === void 0 ? void 0 : solidKanbanViewMetaData.data) === null || _a === void 0 ? void 0 : _a.solidView) === null || _b === void 0 ? void 0 : _b.layout) === null || _c === void 0 ? void 0 : _c.attrs) === null || _d === void 0 ? void 0 : _d.createAction) && ((_j = (_h = (_g = (_f = (_e = solidKanbanViewMetaData === null || solidKanbanViewMetaData === void 0 ? void 0 : solidKanbanViewMetaData.data) === null || _e === void 0 ? void 0 : _e.solidView) === null || _f === void 0 ? void 0 : _f.layout) === null || _g === void 0 ? void 0 : _g.attrs) === null || _h === void 0 ? void 0 : _h.createAction) === null || _j === void 0 ? void 0 : _j.type) === "custom" ? (_p = (_o = (_m = (_l = (_k = solidKanbanViewMetaData === null || solidKanbanViewMetaData === void 0 ? void 0 : solidKanbanViewMetaData.data) === null || _k === void 0 ? void 0 : _k.solidView) === null || _l === void 0 ? void 0 : _l.layout) === null || _m === void 0 ? void 0 : _m.attrs) === null || _o === void 0 ? void 0 : _o.createAction) === null || _p === void 0 ? void 0 : _p.customComponent : "form/new";
|
|
288
|
+
var editActionUrl = ((_t = (_s = (_r = (_q = solidKanbanViewMetaData === null || solidKanbanViewMetaData === void 0 ? void 0 : solidKanbanViewMetaData.data) === null || _q === void 0 ? void 0 : _q.solidView) === null || _r === void 0 ? void 0 : _r.layout) === null || _s === void 0 ? void 0 : _s.attrs) === null || _t === void 0 ? void 0 : _t.editAction) && ((_y = (_x = (_w = (_v = (_u = solidKanbanViewMetaData === null || solidKanbanViewMetaData === void 0 ? void 0 : solidKanbanViewMetaData.data) === null || _u === void 0 ? void 0 : _u.solidView) === null || _v === void 0 ? void 0 : _v.layout) === null || _w === void 0 ? void 0 : _w.attrs) === null || _x === void 0 ? void 0 : _x.editAction) === null || _y === void 0 ? void 0 : _y.type) === "custom" ? (_3 = (_2 = (_1 = (_0 = (_z = solidKanbanViewMetaData === null || solidKanbanViewMetaData === void 0 ? void 0 : solidKanbanViewMetaData.data) === null || _z === void 0 ? void 0 : _z.solidView) === null || _0 === void 0 ? void 0 : _0.layout) === null || _1 === void 0 ? void 0 : _1.attrs) === null || _2 === void 0 ? void 0 : _2.editAction) === null || _3 === void 0 ? void 0 : _3.customComponent : "form";
|
|
289
|
+
if (createActionUrl) {
|
|
290
|
+
setCreateButtonUrl(createActionUrl);
|
|
291
|
+
}
|
|
292
|
+
if (editActionUrl) {
|
|
293
|
+
setEditButtonUrl(editActionUrl);
|
|
294
|
+
}
|
|
295
|
+
}
|
|
296
|
+
}, [solidKanbanViewMetaData]);
|
|
297
|
+
// Fetch data after toPopulate has been populated...
|
|
298
|
+
useEffect(function () {
|
|
299
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
300
|
+
if (solidKanbanViewMetaData) {
|
|
301
|
+
var swimlanesCount = ((_c = (_b = (_a = solidKanbanViewMetaData === null || solidKanbanViewMetaData === void 0 ? void 0 : solidKanbanViewMetaData.data.solidView) === null || _a === void 0 ? void 0 : _a.layout) === null || _b === void 0 ? void 0 : _b.attrs) === null || _c === void 0 ? void 0 : _c.swimlanesCount) || 5;
|
|
302
|
+
if (groupByFieldName && (toPopulate || toPopulateMedia)) {
|
|
303
|
+
var queryObject = queryStringToQueryObject();
|
|
304
|
+
var queryString = "";
|
|
305
|
+
if (searchParams) {
|
|
306
|
+
// Get Object from Url
|
|
307
|
+
var queryObject_1 = qs.parse(searchParams, {
|
|
308
|
+
decoder: function (str) { return decodeURIComponent(str); },
|
|
309
|
+
allowDots: true,
|
|
310
|
+
});
|
|
311
|
+
var filters_1 = {
|
|
312
|
+
$and: []
|
|
313
|
+
};
|
|
314
|
+
if (queryObject_1.s_filter) {
|
|
315
|
+
filters_1.$and.push(queryObject_1.s_filter);
|
|
316
|
+
}
|
|
317
|
+
if (queryObject_1.c_filter) {
|
|
318
|
+
filters_1.$and.push(queryObject_1.c_filter);
|
|
319
|
+
}
|
|
320
|
+
var queryData = {
|
|
321
|
+
offset: 0,
|
|
322
|
+
limit: Number(queryObject_1.limit) + Number(queryObject_1.offset),
|
|
323
|
+
fields: queryObject_1.fields || ["".concat(groupByFieldName), "count(".concat(groupByFieldName, ")")],
|
|
324
|
+
groupBy: queryObject_1.groupBy || groupByFieldName,
|
|
325
|
+
populateMedia: queryObject_1.populateMedia || toPopulateMedia,
|
|
326
|
+
populateGroup: queryObject_1.populateGroup || true,
|
|
327
|
+
groupFilter: {
|
|
328
|
+
limit: Number(queryObject_1.groupFilter.limit) + Number(queryObject_1.groupFilter.offset) || ((_g = (_f = (_e = (_d = kanbanViewMetaData === null || kanbanViewMetaData === void 0 ? void 0 : kanbanViewMetaData.data) === null || _d === void 0 ? void 0 : _d.solidView) === null || _e === void 0 ? void 0 : _e.layout) === null || _f === void 0 ? void 0 : _f.attrs) === null || _g === void 0 ? void 0 : _g.recordsInSwimlane),
|
|
329
|
+
offset: 0,
|
|
330
|
+
filters: filters_1,
|
|
331
|
+
populate: queryObject_1.groupFilter.populate || toPopulate,
|
|
332
|
+
populateMedia: queryObject_1.groupFilter.populateMedia || toPopulateMedia
|
|
333
|
+
}
|
|
334
|
+
// sort: [`id:desc`],
|
|
335
|
+
};
|
|
336
|
+
setRecordsInSwimlane(queryData.limit);
|
|
337
|
+
setToPopulate(queryData.populate);
|
|
338
|
+
setToPopulateMedia(queryData.populateMedia);
|
|
339
|
+
setFilters(filters_1);
|
|
340
|
+
setQueryDataLoaded(true);
|
|
341
|
+
queryString = qs.stringify(queryData, {
|
|
342
|
+
encodeValuesOnly: true
|
|
343
|
+
});
|
|
344
|
+
}
|
|
345
|
+
else {
|
|
346
|
+
var _m = initialFilterMethod(), recordsInSwimlane_1 = _m.recordsInSwimlane, toPopulate_1 = _m.toPopulate, toPopulateMedia_1 = _m.toPopulateMedia;
|
|
347
|
+
var queryData = {
|
|
348
|
+
offset: 0,
|
|
349
|
+
limit: swimlanesCount,
|
|
350
|
+
fields: ["".concat(groupByFieldName), "count(".concat(groupByFieldName, ")")],
|
|
351
|
+
groupBy: groupByFieldName,
|
|
352
|
+
populateMedia: toPopulateMedia_1,
|
|
353
|
+
populateGroup: true,
|
|
354
|
+
groupFilter: {
|
|
355
|
+
limit: ((_l = (_k = (_j = (_h = kanbanViewMetaData === null || kanbanViewMetaData === void 0 ? void 0 : kanbanViewMetaData.data) === null || _h === void 0 ? void 0 : _h.solidView) === null || _j === void 0 ? void 0 : _j.layout) === null || _k === void 0 ? void 0 : _k.attrs) === null || _l === void 0 ? void 0 : _l.recordsInSwimlane) || 10,
|
|
356
|
+
offset: 0,
|
|
357
|
+
filters: filters,
|
|
358
|
+
populate: toPopulate_1,
|
|
359
|
+
populateMedia: toPopulateMedia_1
|
|
360
|
+
}
|
|
361
|
+
// sort: [`id:desc`],
|
|
362
|
+
};
|
|
363
|
+
setRecordsInSwimlane(recordsInSwimlane_1);
|
|
364
|
+
setToPopulate(toPopulate_1);
|
|
365
|
+
setToPopulateMedia(toPopulateMedia_1);
|
|
366
|
+
// fields=status&groupBy=status&fields=count(status)&populateGroup=true
|
|
367
|
+
queryString = qs.stringify(queryData, {
|
|
368
|
+
encodeValuesOnly: true
|
|
369
|
+
});
|
|
370
|
+
setQueryDataLoaded(true);
|
|
371
|
+
}
|
|
372
|
+
triggerGetSolidEntities(queryString);
|
|
373
|
+
setSelectedRecords([]);
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
}, [isDeleteSolidEntitiesSucess, groupByFieldName, solidKanbanViewMetaData]);
|
|
377
|
+
// clickable link allowing one to open the detail / form view.
|
|
378
|
+
var detailsBodyTemplate = function (solidViewData) {
|
|
379
|
+
return (_jsx(Link, { href: "".concat(editButtonUrl, "/").concat(solidViewData.id), rel: "noopener noreferrer", className: "text-sm font-bold p-0", style: { color: "#12415D" }, children: _jsx("i", { className: "pi pi-pencil", style: { fontSize: "1rem" } }) }));
|
|
380
|
+
};
|
|
381
|
+
// handle bulk deletion
|
|
382
|
+
var deleteBulk = function () {
|
|
383
|
+
var deleteList = [];
|
|
384
|
+
selectedRecords.forEach(function (element) {
|
|
385
|
+
deleteList.push(element.id);
|
|
386
|
+
});
|
|
387
|
+
console.log(deleteList);
|
|
388
|
+
deleteManySolidEntities(deleteList);
|
|
389
|
+
setDialogVisible(false);
|
|
390
|
+
};
|
|
391
|
+
// handle closing of the delete dialog...
|
|
392
|
+
var onDeleteClose = function () {
|
|
393
|
+
setDialogVisible(false);
|
|
394
|
+
setSelectedRecords([]);
|
|
395
|
+
};
|
|
396
|
+
var handleLoadMore = function (groupByField) { return __awaiter(void 0, void 0, void 0, function () {
|
|
397
|
+
var _a, offset, limit, records, newLoadMoreData, queryData, queryString, data, newRecords, currentData, mergeData, updatedData, loadmoredata, error_1;
|
|
398
|
+
var _b;
|
|
399
|
+
return __generator(this, function (_c) {
|
|
400
|
+
switch (_c.label) {
|
|
401
|
+
case 0:
|
|
402
|
+
_a = kanbanLoadMoreData[groupByField], offset = _a.offset, limit = _a.limit, records = _a.records;
|
|
403
|
+
newLoadMoreData = kanbanLoadMoreData;
|
|
404
|
+
kanbanLoadMoreData[groupByField].offset = offset + limit;
|
|
405
|
+
_c.label = 1;
|
|
406
|
+
case 1:
|
|
407
|
+
_c.trys.push([1, 3, , 4]);
|
|
408
|
+
queryData = {
|
|
409
|
+
offset: offset + limit,
|
|
410
|
+
limit: limit,
|
|
411
|
+
populate: toPopulate,
|
|
412
|
+
populateMedia: toPopulateMedia,
|
|
413
|
+
populateGroup: true,
|
|
414
|
+
filters: __assign((_b = {}, _b[groupByFieldName] = {
|
|
415
|
+
$in: [groupByField],
|
|
416
|
+
}, _b), filters)
|
|
417
|
+
};
|
|
418
|
+
queryString = qs.stringify(queryData, {
|
|
419
|
+
encodeValuesOnly: true
|
|
420
|
+
});
|
|
421
|
+
return [4 /*yield*/, triggerGetSolidEntities(queryString)];
|
|
422
|
+
case 2:
|
|
423
|
+
data = _c.sent();
|
|
424
|
+
newRecords = data.data.records;
|
|
425
|
+
currentData = kanbanViewData;
|
|
426
|
+
mergeData = function (kanbanViewData, newRecords, groupByField) {
|
|
427
|
+
// Find the group matching the specified groupByField
|
|
428
|
+
var originalData = structuredClone(kanbanViewData);
|
|
429
|
+
var targetGroup = originalData.find(function (group) { return group.groupName === groupByField; });
|
|
430
|
+
if (targetGroup) {
|
|
431
|
+
var groupData = targetGroup.groupData;
|
|
432
|
+
if (targetGroup.groupData) {
|
|
433
|
+
// Extract existing records
|
|
434
|
+
var existingRecords = targetGroup.groupData.records;
|
|
435
|
+
var updatedRecords = __spreadArray(__spreadArray([], existingRecords, true), newRecords, true);
|
|
436
|
+
targetGroup.groupData.records = updatedRecords;
|
|
437
|
+
// Update the meta data (you can adjust this logic as needed)
|
|
438
|
+
groupData.meta.prevPage = groupData.meta.currentPage;
|
|
439
|
+
groupData.meta.currentPage = groupData.meta.currentPage + 1;
|
|
440
|
+
groupData.meta.nextPage = groupData.meta.currentPage + 1;
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
return originalData;
|
|
444
|
+
};
|
|
445
|
+
updatedData = mergeData(kanbanViewData, newRecords, groupByField);
|
|
446
|
+
setKanbanViewData(updatedData);
|
|
447
|
+
loadmoredata = Object.entries(updatedData).reduce(function (acc, _a) {
|
|
448
|
+
var key = _a[0], value = _a[1];
|
|
449
|
+
acc[value.groupName] = {
|
|
450
|
+
offset: (value.groupData.meta.currentPage - 1) * value.groupData.meta.perPage,
|
|
451
|
+
limit: value.groupData.meta.perPage,
|
|
452
|
+
count: value.groupData.meta.totalRecords
|
|
453
|
+
};
|
|
454
|
+
return acc;
|
|
455
|
+
}, {});
|
|
456
|
+
setKanbanLoadMoreData(loadmoredata);
|
|
457
|
+
return [3 /*break*/, 4];
|
|
458
|
+
case 3:
|
|
459
|
+
error_1 = _c.sent();
|
|
460
|
+
console.error("Failed to load more data:", error_1);
|
|
461
|
+
return [3 /*break*/, 4];
|
|
462
|
+
case 4: return [2 /*return*/];
|
|
463
|
+
}
|
|
464
|
+
});
|
|
465
|
+
}); };
|
|
466
|
+
// Handle drag-and-drop functionality
|
|
467
|
+
var onDragEnd = function (result) { return __awaiter(void 0, void 0, void 0, function () {
|
|
468
|
+
var source, destination, sourceGroupName, destinationGroupName, sourceGroupIndex, destinationGroupIndex, sourceGroup, destinationGroup, sourceRecords, destinationRecords, movedItem, updatedItem, formData, kanbanUpdateResponse, error_2;
|
|
469
|
+
var _a;
|
|
470
|
+
return __generator(this, function (_b) {
|
|
471
|
+
switch (_b.label) {
|
|
472
|
+
case 0:
|
|
473
|
+
source = result.source, destination = result.destination;
|
|
474
|
+
if (!destination)
|
|
475
|
+
return [2 /*return*/];
|
|
476
|
+
sourceGroupName = source.droppableId;
|
|
477
|
+
destinationGroupName = destination.droppableId;
|
|
478
|
+
sourceGroupIndex = kanbanViewData.findIndex(function (group) { return group.groupName === sourceGroupName; });
|
|
479
|
+
destinationGroupIndex = kanbanViewData.findIndex(function (group) { return group.groupName === destinationGroupName; });
|
|
480
|
+
if (sourceGroupIndex === -1 || destinationGroupIndex === -1)
|
|
481
|
+
return [2 /*return*/];
|
|
482
|
+
// If dragging within the same group
|
|
483
|
+
if (sourceGroupName === destinationGroupName) {
|
|
484
|
+
setKanbanViewData(function (prevData) {
|
|
485
|
+
return prevData.map(function (group) {
|
|
486
|
+
if (group.groupName === sourceGroupName) {
|
|
487
|
+
var updatedRecords = __spreadArray([], group.groupData.records, true);
|
|
488
|
+
var movedItem_1 = updatedRecords.splice(source.index, 1)[0]; // Remove the item
|
|
489
|
+
updatedRecords.splice(destination.index, 0, movedItem_1); // Insert at the new position
|
|
490
|
+
return __assign(__assign({}, group), { groupData: __assign(__assign({}, group.groupData), { records: updatedRecords }) });
|
|
491
|
+
}
|
|
492
|
+
return group;
|
|
493
|
+
});
|
|
494
|
+
});
|
|
495
|
+
return [2 /*return*/];
|
|
496
|
+
}
|
|
497
|
+
sourceGroup = JSON.parse(JSON.stringify(kanbanViewData[sourceGroupIndex]));
|
|
498
|
+
destinationGroup = JSON.parse(JSON.stringify(kanbanViewData[destinationGroupIndex]));
|
|
499
|
+
sourceRecords = __spreadArray([], sourceGroup.groupData.records, true);
|
|
500
|
+
destinationRecords = __spreadArray([], destinationGroup.groupData.records, true);
|
|
501
|
+
movedItem = sourceRecords.splice(source.index, 1)[0];
|
|
502
|
+
updatedItem = __assign(__assign({}, movedItem), { status: destinationGroupName });
|
|
503
|
+
// Add the updated item to the destination
|
|
504
|
+
destinationRecords.splice(destination.index, 0, updatedItem);
|
|
505
|
+
// Update the group data
|
|
506
|
+
sourceGroup.groupData.records = sourceRecords;
|
|
507
|
+
destinationGroup.groupData.records = destinationRecords;
|
|
508
|
+
_b.label = 1;
|
|
509
|
+
case 1:
|
|
510
|
+
_b.trys.push([1, 3, , 4]);
|
|
511
|
+
formData = new FormData();
|
|
512
|
+
formData.append(groupByFieldName, destinationGroupName);
|
|
513
|
+
return [4 /*yield*/, patchKanbanView({ id: +movedItem.id, data: formData }).unwrap()];
|
|
514
|
+
case 2:
|
|
515
|
+
kanbanUpdateResponse = _b.sent();
|
|
516
|
+
if ((kanbanUpdateResponse === null || kanbanUpdateResponse === void 0 ? void 0 : kanbanUpdateResponse.statusCode) === 200) {
|
|
517
|
+
showToast("success", "Success", "Kanban View Updated!");
|
|
518
|
+
// Update the kanbanViewData state
|
|
519
|
+
setKanbanViewData(function (prevData) {
|
|
520
|
+
return prevData.map(function (group) {
|
|
521
|
+
if (group.groupName === sourceGroupName) {
|
|
522
|
+
return sourceGroup;
|
|
523
|
+
}
|
|
524
|
+
if (group.groupName === destinationGroupName) {
|
|
525
|
+
return destinationGroup;
|
|
526
|
+
}
|
|
527
|
+
return group;
|
|
528
|
+
});
|
|
529
|
+
});
|
|
530
|
+
}
|
|
531
|
+
else {
|
|
532
|
+
showToast("error", "Duplicate Key", kanbanUpdateResponse === null || kanbanUpdateResponse === void 0 ? void 0 : kanbanUpdateResponse.error);
|
|
533
|
+
}
|
|
534
|
+
return [3 /*break*/, 4];
|
|
535
|
+
case 3:
|
|
536
|
+
error_2 = _b.sent();
|
|
537
|
+
// 6. Handle 500 or network errors
|
|
538
|
+
console.error("API error:", error_2);
|
|
539
|
+
showToast("error", "Something went wrong", ((_a = error_2 === null || error_2 === void 0 ? void 0 : error_2.data) === null || _a === void 0 ? void 0 : _a.message) || "Something went wrong");
|
|
540
|
+
return [3 /*break*/, 4];
|
|
541
|
+
case 4: return [2 /*return*/];
|
|
542
|
+
}
|
|
543
|
+
});
|
|
544
|
+
}); };
|
|
545
|
+
// Handle SwimLane Pagination
|
|
546
|
+
var handleSwimLanePagination = function () { return __awaiter(void 0, void 0, void 0, function () {
|
|
547
|
+
var swimlanesCount, queryData, queryString, data, updatedData;
|
|
548
|
+
var _a, _b, _c, _d;
|
|
549
|
+
return __generator(this, function (_e) {
|
|
550
|
+
switch (_e.label) {
|
|
551
|
+
case 0:
|
|
552
|
+
if (!solidKanbanViewMetaData) return [3 /*break*/, 2];
|
|
553
|
+
swimlanesCount = ((_c = (_b = (_a = solidKanbanViewMetaData === null || solidKanbanViewMetaData === void 0 ? void 0 : solidKanbanViewMetaData.data.solidView) === null || _a === void 0 ? void 0 : _a.layout) === null || _b === void 0 ? void 0 : _b.attrs) === null || _c === void 0 ? void 0 : _c.swimlanesCount) || 5;
|
|
554
|
+
queryData = {
|
|
555
|
+
offset: swimLaneCurrentPageNumber * swimlanesCount,
|
|
556
|
+
limit: swimlanesCount,
|
|
557
|
+
fields: ["".concat(groupByFieldName), "count(".concat(groupByFieldName, ")")],
|
|
558
|
+
groupBy: groupByFieldName,
|
|
559
|
+
populateMedia: toPopulateMedia,
|
|
560
|
+
populateGroup: true,
|
|
561
|
+
groupFilter: {
|
|
562
|
+
limit: recordsInSwimlane,
|
|
563
|
+
offset: 0,
|
|
564
|
+
filters: filters,
|
|
565
|
+
populate: toPopulate,
|
|
566
|
+
populateMedia: toPopulateMedia
|
|
567
|
+
}
|
|
568
|
+
// sort: [`id:desc`],
|
|
569
|
+
};
|
|
570
|
+
queryString = qs.stringify(queryData, {
|
|
571
|
+
encodeValuesOnly: true
|
|
572
|
+
});
|
|
573
|
+
//Push to Router
|
|
574
|
+
router.push("?".concat(queryString));
|
|
575
|
+
return [4 /*yield*/, triggerGetSolidEntities(queryString)];
|
|
576
|
+
case 1:
|
|
577
|
+
data = _e.sent();
|
|
578
|
+
if (data && ((_d = data === null || data === void 0 ? void 0 : data.data) === null || _d === void 0 ? void 0 : _d.groupRecords.length) > 0) {
|
|
579
|
+
updatedData = __spreadArray(__spreadArray([], kanbanViewData, true), data.data.groupRecords, true);
|
|
580
|
+
setKanbanViewData(updatedData);
|
|
581
|
+
}
|
|
582
|
+
setSwimLaneCurrentPageNumber(swimLaneCurrentPageNumber + 1);
|
|
583
|
+
_e.label = 2;
|
|
584
|
+
case 2: return [2 /*return*/];
|
|
585
|
+
}
|
|
586
|
+
});
|
|
587
|
+
}); };
|
|
588
|
+
// Handle the custom filter and Search Filter
|
|
589
|
+
var handleApplyCustomFilter = function (transformedFilter) { return __awaiter(void 0, void 0, void 0, function () {
|
|
590
|
+
var queryfilter_1, customFilter, updatedFilter, swimlanesCount, queryData, queryString, url, urlData, data, updatedData;
|
|
591
|
+
var _a, _b, _c, _d;
|
|
592
|
+
return __generator(this, function (_e) {
|
|
593
|
+
switch (_e.label) {
|
|
594
|
+
case 0:
|
|
595
|
+
if (!solidKanbanViewMetaData) return [3 /*break*/, 2];
|
|
596
|
+
queryfilter_1 = {
|
|
597
|
+
$and: []
|
|
598
|
+
};
|
|
599
|
+
if (transformedFilter.s_filter) {
|
|
600
|
+
queryfilter_1.$and.push(transformedFilter.s_filter);
|
|
601
|
+
}
|
|
602
|
+
if (transformedFilter.c_filter) {
|
|
603
|
+
queryfilter_1.$and.push(transformedFilter.c_filter);
|
|
604
|
+
}
|
|
605
|
+
customFilter = transformedFilter;
|
|
606
|
+
updatedFilter = __assign(__assign({}, (filters || {})), (queryfilter_1 || {}));
|
|
607
|
+
setFilters(function (prevFilters) { return (__assign(__assign({}, (prevFilters || {})), (queryfilter_1 || {}))); });
|
|
608
|
+
swimlanesCount = ((_c = (_b = (_a = solidKanbanViewMetaData === null || solidKanbanViewMetaData === void 0 ? void 0 : solidKanbanViewMetaData.data.solidView) === null || _a === void 0 ? void 0 : _a.layout) === null || _b === void 0 ? void 0 : _b.attrs) === null || _c === void 0 ? void 0 : _c.swimlanesCount) || 5;
|
|
609
|
+
if (!toPopulate) return [3 /*break*/, 2];
|
|
610
|
+
queryData = {
|
|
611
|
+
offset: 0,
|
|
612
|
+
limit: swimlanesCount,
|
|
613
|
+
fields: ["".concat(groupByFieldName), "count(".concat(groupByFieldName, ")")],
|
|
614
|
+
groupBy: groupByFieldName,
|
|
615
|
+
populateGroup: true,
|
|
616
|
+
groupFilter: {
|
|
617
|
+
limit: recordsInSwimlane,
|
|
618
|
+
offset: 0,
|
|
619
|
+
filters: updatedFilter,
|
|
620
|
+
populate: toPopulate,
|
|
621
|
+
populateMedia: toPopulateMedia
|
|
622
|
+
}
|
|
623
|
+
};
|
|
624
|
+
queryString = qs.stringify(queryData, {
|
|
625
|
+
encodeValuesOnly: true
|
|
626
|
+
});
|
|
627
|
+
// s_filter and c_filter format that needs to be passed to the router
|
|
628
|
+
// only present if handleCustomFilter is applied
|
|
629
|
+
if (customFilter) {
|
|
630
|
+
url = void 0;
|
|
631
|
+
urlData = queryData;
|
|
632
|
+
delete urlData.filters;
|
|
633
|
+
urlData.s_filter = customFilter.s_filter || {};
|
|
634
|
+
urlData.c_filter = customFilter.c_filter || {};
|
|
635
|
+
queryObjectToQueryString(urlData);
|
|
636
|
+
}
|
|
637
|
+
return [4 /*yield*/, triggerGetSolidEntities(queryString)];
|
|
638
|
+
case 1:
|
|
639
|
+
data = _e.sent();
|
|
640
|
+
// Update the kanban view data with the new data based on filter
|
|
641
|
+
if (data && ((_d = data === null || data === void 0 ? void 0 : data.data) === null || _d === void 0 ? void 0 : _d.groupRecords.length) > 0) {
|
|
642
|
+
updatedData = __spreadArray([], data.data.groupRecords, true);
|
|
643
|
+
setKanbanViewData(updatedData);
|
|
644
|
+
}
|
|
645
|
+
setSelectedRecords([]);
|
|
646
|
+
_e.label = 2;
|
|
647
|
+
case 2: return [2 /*return*/];
|
|
648
|
+
}
|
|
649
|
+
});
|
|
650
|
+
}); };
|
|
651
|
+
useEffect(function () {
|
|
652
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15;
|
|
653
|
+
if (solidKanbanViewMetaData) {
|
|
654
|
+
var createActionUrl = ((_d = (_c = (_b = (_a = solidKanbanViewMetaData === null || solidKanbanViewMetaData === void 0 ? void 0 : solidKanbanViewMetaData.data) === null || _a === void 0 ? void 0 : _a.solidView) === null || _b === void 0 ? void 0 : _b.layout) === null || _c === void 0 ? void 0 : _c.attrs) === null || _d === void 0 ? void 0 : _d.createAction) && ((_j = (_h = (_g = (_f = (_e = solidKanbanViewMetaData === null || solidKanbanViewMetaData === void 0 ? void 0 : solidKanbanViewMetaData.data) === null || _e === void 0 ? void 0 : _e.solidView) === null || _f === void 0 ? void 0 : _f.layout) === null || _g === void 0 ? void 0 : _g.attrs) === null || _h === void 0 ? void 0 : _h.createAction) === null || _j === void 0 ? void 0 : _j.type) === "custom" ? (_p = (_o = (_m = (_l = (_k = solidKanbanViewMetaData === null || solidKanbanViewMetaData === void 0 ? void 0 : solidKanbanViewMetaData.data) === null || _k === void 0 ? void 0 : _k.solidView) === null || _l === void 0 ? void 0 : _l.layout) === null || _m === void 0 ? void 0 : _m.attrs) === null || _o === void 0 ? void 0 : _o.createAction) === null || _p === void 0 ? void 0 : _p.customComponent : "form/new";
|
|
655
|
+
var editActionUrl = ((_t = (_s = (_r = (_q = solidKanbanViewMetaData === null || solidKanbanViewMetaData === void 0 ? void 0 : solidKanbanViewMetaData.data) === null || _q === void 0 ? void 0 : _q.solidView) === null || _r === void 0 ? void 0 : _r.layout) === null || _s === void 0 ? void 0 : _s.attrs) === null || _t === void 0 ? void 0 : _t.editAction) && ((_y = (_x = (_w = (_v = (_u = solidKanbanViewMetaData === null || solidKanbanViewMetaData === void 0 ? void 0 : solidKanbanViewMetaData.data) === null || _u === void 0 ? void 0 : _u.solidView) === null || _v === void 0 ? void 0 : _v.layout) === null || _w === void 0 ? void 0 : _w.attrs) === null || _x === void 0 ? void 0 : _x.editAction) === null || _y === void 0 ? void 0 : _y.type) === "custom" ? (_3 = (_2 = (_1 = (_0 = (_z = solidKanbanViewMetaData === null || solidKanbanViewMetaData === void 0 ? void 0 : solidKanbanViewMetaData.data) === null || _z === void 0 ? void 0 : _z.solidView) === null || _0 === void 0 ? void 0 : _0.layout) === null || _1 === void 0 ? void 0 : _1.attrs) === null || _2 === void 0 ? void 0 : _2.editAction) === null || _3 === void 0 ? void 0 : _3.customComponent : "form";
|
|
656
|
+
var viewModes_2 = ((_7 = (_6 = (_5 = (_4 = solidKanbanViewMetaData === null || solidKanbanViewMetaData === void 0 ? void 0 : solidKanbanViewMetaData.data) === null || _4 === void 0 ? void 0 : _4.solidView) === null || _5 === void 0 ? void 0 : _5.layout) === null || _6 === void 0 ? void 0 : _6.attrs) === null || _7 === void 0 ? void 0 : _7.allowedViews) && ((_11 = (_10 = (_9 = (_8 = solidKanbanViewMetaData === null || solidKanbanViewMetaData === void 0 ? void 0 : solidKanbanViewMetaData.data) === null || _8 === void 0 ? void 0 : _8.solidView) === null || _9 === void 0 ? void 0 : _9.layout) === null || _10 === void 0 ? void 0 : _10.attrs) === null || _11 === void 0 ? void 0 : _11.allowedViews.length) > 0 && ((_15 = (_14 = (_13 = (_12 = solidKanbanViewMetaData === null || solidKanbanViewMetaData === void 0 ? void 0 : solidKanbanViewMetaData.data) === null || _12 === void 0 ? void 0 : _12.solidView) === null || _13 === void 0 ? void 0 : _13.layout) === null || _14 === void 0 ? void 0 : _14.attrs) === null || _15 === void 0 ? void 0 : _15.allowedViews.map(function (view) { return { label: capitalize(view), value: view }; }));
|
|
657
|
+
setViewModes(viewModes_2);
|
|
658
|
+
if (createActionUrl) {
|
|
659
|
+
setCreateButtonUrl(createActionUrl);
|
|
660
|
+
}
|
|
661
|
+
if (editActionUrl) {
|
|
662
|
+
setEditButtonUrl(editActionUrl);
|
|
663
|
+
}
|
|
664
|
+
}
|
|
665
|
+
}, [solidKanbanViewMetaData]);
|
|
666
|
+
var kanbanViewTitle = (_b = (_a = solidKanbanViewMetaData === null || solidKanbanViewMetaData === void 0 ? void 0 : solidKanbanViewMetaData.data) === null || _a === void 0 ? void 0 : _a.solidView) === null || _b === void 0 ? void 0 : _b.displayName;
|
|
667
|
+
return (_jsxs("div", { className: "page-parent-wrapper", children: [_jsx(Toast, { ref: toast }), _jsxs("div", { className: "page-header", children: [_jsxs("div", { className: "flex gap-3 align-items-center", children: [_jsx("p", { className: "m-0 view-title", children: kanbanViewTitle }), ((_e = (_d = (_c = solidKanbanViewMetaData === null || solidKanbanViewMetaData === void 0 ? void 0 : solidKanbanViewMetaData.data) === null || _c === void 0 ? void 0 : _c.solidView) === null || _d === void 0 ? void 0 : _d.layout) === null || _e === void 0 ? void 0 : _e.attrs.enableGlobalSearch) === true &&
|
|
668
|
+
// <SolidGlobalSearchElement viewData={solidKanbanViewMetaData} handleApplyCustomFilter={handleApplyCustomFilter} ></SolidGlobalSearchElement>
|
|
669
|
+
_jsx(SolidGlobalSearchElement, { showSaveFilterPopup: showSaveFilterPopup, setShowSaveFilterPopup: setShowSaveFilterPopup, ref: solidGlobalSearchElementRef, viewData: solidKanbanViewMetaData, handleApplyCustomFilter: handleApplyCustomFilter })] }), _jsxs("div", { className: "flex align-items-center gap-3", children: [actionsAllowed.includes("".concat(createPermission(params.modelName))) && ((_h = (_g = (_f = solidKanbanViewMetaData === null || solidKanbanViewMetaData === void 0 ? void 0 : solidKanbanViewMetaData.data) === null || _f === void 0 ? void 0 : _f.solidView) === null || _g === void 0 ? void 0 : _g.layout) === null || _h === void 0 ? void 0 : _h.attrs.create) !== false &&
|
|
670
|
+
_jsx(SolidCreateButton, { url: createButtonUrl }), actionsAllowed.includes("".concat(deletePermission(params.modelName))) && ((_l = (_k = (_j = solidKanbanViewMetaData === null || solidKanbanViewMetaData === void 0 ? void 0 : solidKanbanViewMetaData.data) === null || _j === void 0 ? void 0 : _j.solidView) === null || _k === void 0 ? void 0 : _k.layout) === null || _l === void 0 ? void 0 : _l.attrs.delete) !== false && selectedRecords.length > 0 && _jsx(Button, { type: "button", label: "Delete", size: "small", onClick: function () { return setDialogVisible(true); }, className: "small-button", severity: "danger" }), _jsx(Button, { type: "button", size: "small", icon: "pi pi-refresh", severity: "secondary", outlined: true, onClick: function () {
|
|
671
|
+
window.location.reload();
|
|
672
|
+
} }), _jsx(SolidKanbanViewConfigure, { solidKanbanViewMetaData: solidKanbanViewMetaData, actionsAllowed: actionsAllowed, viewModes: viewModes, setLayoutDialogVisible: setLayoutDialogVisible, setShowSaveFilterPopup: setShowSaveFilterPopup })] })] }), _jsx("style", { children: ".p-datatable .p-datatable-loading-overlay {background-color: rgba(0, 0, 0, 0.0);}" }), solidKanbanViewMetaData && kanbanViewData &&
|
|
673
|
+
_jsx(KanbanBoard, { groupedView: groupedView, kanbanViewData: kanbanViewData, solidKanbanViewMetaData: solidKanbanViewMetaData === null || solidKanbanViewMetaData === void 0 ? void 0 : solidKanbanViewMetaData.data, setKanbanViewData: setKanbanViewData, handleLoadMore: handleLoadMore, onDragEnd: onDragEnd, handleSwimLanePagination: handleSwimLanePagination, setLightboxUrls: setLightboxUrls, setOpenLightbox: setOpenLightbox, editButtonUrl: editButtonUrl }), _jsx(Dialog, { visible: isDialogVisible, header: "Confirm Delete", modal: true, footer: function () { return (_jsxs("div", { className: "flex justify-content-center", children: [_jsx(Button, { label: "Yes", icon: "pi pi-check", className: 'small-button', severity: "danger", autoFocus: true, onClick: deleteBulk }), _jsx(Button, { label: "No", icon: "pi pi-times", className: 'small-button', onClick: onDeleteClose })] })); }, onHide: function () { return setDialogVisible(false); }, children: _jsx("p", { children: "Are you sure you want to delete the selected records?" }) }), openLightbox &&
|
|
674
|
+
_jsx(Lightbox, { open: openLightbox, plugins: [Counter, Download], close: function () { return setOpenLightbox(false); }, slides: lightboxUrls }), _jsx(Dialog, { visible: isLayoutDialogVisible, header: "Change Kanban Layout", modal: true, onHide: function () { return setLayoutDialogVisible(false); }, contentStyle: {
|
|
675
|
+
width: 800
|
|
676
|
+
}, children: _jsx(KanbanUserViewLayout, { solidKanbanViewMetaData: solidKanbanViewMetaData, setLayoutDialogVisible: setLayoutDialogVisible }) })] }));
|
|
677
|
+
};
|
|
678
|
+
//# sourceMappingURL=SolidKanbanView.js.map
|