@solidstarters/solid-core-ui 1.1.75 → 1.1.78
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/core/chatter/SolidChatter.d.ts.map +1 -1
- package/dist/components/core/form/SolidFormActionHeader.d.ts.map +1 -1
- package/dist/components/core/form/SolidFormView.d.ts +1 -0
- package/dist/components/core/form/SolidFormView.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidIntegerField.d.ts +1 -0
- package/dist/components/core/form/fields/SolidIntegerField.d.ts.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.d.ts +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.d.ts.map +1 -1
- package/dist/components/core/form/fields/solidFields.module.css +7 -0
- package/dist/types/solid-core.d.ts +9 -7
- package/package.json +1 -1
- package/src/components/core/form/fields/solidFields.module.css +7 -0
- package/src/types/solid-core.d.ts +9 -7
- package/dist/components/CustomFooter/CustomFooter.js +0 -162
- package/dist/components/CustomFooter/CustomFooter.js.map +0 -1
- package/dist/components/CustomFooter/FooterForm.js +0 -8
- package/dist/components/CustomFooter/FooterForm.js.map +0 -1
- package/dist/components/CustomHeader/CallIcon.js +0 -6
- package/dist/components/CustomHeader/CallIcon.js.map +0 -1
- package/dist/components/CustomHeader/CustomDropdown.js +0 -38
- package/dist/components/CustomHeader/CustomDropdown.js.map +0 -1
- package/dist/components/CustomHeader/CustomHeader.js +0 -18
- package/dist/components/CustomHeader/CustomHeader.js.map +0 -1
- package/dist/components/CustomHeader/EmailIcon.js +0 -6
- package/dist/components/CustomHeader/EmailIcon.js.map +0 -1
- package/dist/components/CustomHeader/HeaderCart.js +0 -7
- package/dist/components/CustomHeader/HeaderCart.js.map +0 -1
- package/dist/components/CustomHeader/productNavData.js +0 -178
- package/dist/components/CustomHeader/productNavData.js.map +0 -1
- package/dist/components/FormView/DetailsViews.js +0 -23
- package/dist/components/FormView/DetailsViews.js.map +0 -1
- package/dist/components/FormView/OrderAddressDetails.js +0 -31
- package/dist/components/FormView/OrderAddressDetails.js.map +0 -1
- package/dist/components/FormView/OrderPaymentDetails.js +0 -6
- package/dist/components/FormView/OrderPaymentDetails.js.map +0 -1
- package/dist/components/FormView/OrderTableDetails.js +0 -22
- package/dist/components/FormView/OrderTableDetails.js.map +0 -1
- package/dist/components/FormView/OrderedProductDetail.js +0 -6
- package/dist/components/FormView/OrderedProductDetail.js.map +0 -1
- package/dist/components/Svg/ExcelSvg.js +0 -6
- package/dist/components/Svg/ExcelSvg.js.map +0 -1
- package/dist/components/Svg/FileSvg.js +0 -15
- package/dist/components/Svg/FileSvg.js.map +0 -1
- package/dist/components/Svg/PDFSvg.js +0 -6
- package/dist/components/Svg/PDFSvg.js.map +0 -1
- package/dist/components/Svg/RightArrowSvg.js +0 -5
- package/dist/components/Svg/RightArrowSvg.js.map +0 -1
- package/dist/components/Tag/CustomTag.js +0 -34
- package/dist/components/Tag/CustomTag.js.map +0 -1
- package/dist/components/auth/AuthLayout.js +0 -83
- package/dist/components/auth/AuthLayout.js.map +0 -1
- package/dist/components/auth/ForgotPasswordThankYou.js +0 -18
- package/dist/components/auth/ForgotPasswordThankYou.js.map +0 -1
- package/dist/components/auth/GoogleAuthChecking.js +0 -99
- package/dist/components/auth/GoogleAuthChecking.js.map +0 -1
- package/dist/components/auth/Login.js +0 -117
- package/dist/components/auth/Login.js.map +0 -1
- package/dist/components/auth/Register.js +0 -173
- package/dist/components/auth/Register.js.map +0 -1
- package/dist/components/auth/SolidChangeForcePassword.js +0 -126
- package/dist/components/auth/SolidChangeForcePassword.js.map +0 -1
- package/dist/components/auth/SolidForgotPassword.js +0 -123
- package/dist/components/auth/SolidForgotPassword.js.map +0 -1
- package/dist/components/auth/SolidInitialLoginOtp.js +0 -142
- package/dist/components/auth/SolidInitialLoginOtp.js.map +0 -1
- package/dist/components/auth/SolidInitiateRegisterOtp.js +0 -129
- package/dist/components/auth/SolidInitiateRegisterOtp.js.map +0 -1
- package/dist/components/auth/SolidLogin.js +0 -204
- package/dist/components/auth/SolidLogin.js.map +0 -1
- package/dist/components/auth/SolidOTPVerify.js +0 -115
- package/dist/components/auth/SolidOTPVerify.js.map +0 -1
- package/dist/components/auth/SolidRegister.js +0 -251
- package/dist/components/auth/SolidRegister.js.map +0 -1
- package/dist/components/auth/SolidResetPassword.js +0 -131
- package/dist/components/auth/SolidResetPassword.js.map +0 -1
- package/dist/components/common/AuthBanner.js +0 -15
- package/dist/components/common/AuthBanner.js.map +0 -1
- package/dist/components/common/AutoCompleteField.js +0 -96
- package/dist/components/common/AutoCompleteField.js.map +0 -1
- package/dist/components/common/BackButton.js +0 -17
- package/dist/components/common/BackButton.js.map +0 -1
- package/dist/components/common/CancelButton.js +0 -34
- package/dist/components/common/CancelButton.js.map +0 -1
- package/dist/components/common/CodeEditor.js +0 -13
- package/dist/components/common/CodeEditor.js.map +0 -1
- package/dist/components/common/CreateButton.js +0 -11
- package/dist/components/common/CreateButton.js.map +0 -1
- package/dist/components/common/DropzonePlaceholder.js +0 -13
- package/dist/components/common/DropzonePlaceholder.js.map +0 -1
- package/dist/components/common/DropzoneUpload.js +0 -7
- package/dist/components/common/DropzoneUpload.js.map +0 -1
- package/dist/components/common/FileReaderExt.js +0 -17
- package/dist/components/common/FileReaderExt.js.map +0 -1
- package/dist/components/common/GeneralSettings.js +0 -150
- package/dist/components/common/GeneralSettings.js.map +0 -1
- package/dist/components/common/HeaderDynamicTitles.js +0 -9
- package/dist/components/common/HeaderDynamicTitles.js.map +0 -1
- package/dist/components/common/MarkdownViewer.js +0 -11
- package/dist/components/common/MarkdownViewer.js.map +0 -1
- package/dist/components/common/MultipleSelectAutoCompleteField.js +0 -86
- package/dist/components/common/MultipleSelectAutoCompleteField.js.map +0 -1
- package/dist/components/common/NotFound.js +0 -7
- package/dist/components/common/NotFound.js.map +0 -1
- package/dist/components/common/SingleSelectAutoCompleteField.js +0 -88
- package/dist/components/common/SingleSelectAutoCompleteField.js.map +0 -1
- package/dist/components/common/SocialMediaLogin.js +0 -10
- package/dist/components/common/SocialMediaLogin.js.map +0 -1
- package/dist/components/common/SolidAdmin.js +0 -6
- package/dist/components/common/SolidAdmin.js.map +0 -1
- package/dist/components/common/SolidBreadcrumb.js +0 -88
- package/dist/components/common/SolidBreadcrumb.js.map +0 -1
- package/dist/components/common/SolidFormHeader.js +0 -22
- package/dist/components/common/SolidFormHeader.js.map +0 -1
- package/dist/components/common/SolidFormStepper.js +0 -146
- package/dist/components/common/SolidFormStepper.js.map +0 -1
- package/dist/components/common/SolidModuleHome.js +0 -6
- package/dist/components/common/SolidModuleHome.js.map +0 -1
- package/dist/components/common/SolidThemeLink.js +0 -6
- package/dist/components/common/SolidThemeLink.js.map +0 -1
- package/dist/components/common/SolidThemeProvider.js +0 -38
- package/dist/components/common/SolidThemeProvider.js.map +0 -1
- package/dist/components/common/error.js +0 -7
- package/dist/components/common/error.js.map +0 -1
- package/dist/components/core/chatter/SolidChatter.js +0 -269
- package/dist/components/core/chatter/SolidChatter.js.map +0 -1
- package/dist/components/core/chatter/SolidChatterDateDivider.js +0 -8
- package/dist/components/core/chatter/SolidChatterDateDivider.js.map +0 -1
- package/dist/components/core/chatter/SolidChatterHeader.js +0 -68
- package/dist/components/core/chatter/SolidChatterHeader.js.map +0 -1
- package/dist/components/core/chatter/SolidChatterMessageBox.js +0 -47
- package/dist/components/core/chatter/SolidChatterMessageBox.js.map +0 -1
- package/dist/components/core/chatter/SolidMessageComposer.js +0 -119
- package/dist/components/core/chatter/SolidMessageComposer.js.map +0 -1
- package/dist/components/core/common/FilterComponent.js +0 -269
- package/dist/components/core/common/FilterComponent.js.map +0 -1
- package/dist/components/core/common/LoadDynamicJsxComponent.js +0 -54
- package/dist/components/core/common/LoadDynamicJsxComponent.js.map +0 -1
- package/dist/components/core/common/SolidConfigureLayoutElement.d.ts +0 -2
- package/dist/components/core/common/SolidConfigureLayoutElement.d.ts.map +0 -1
- package/dist/components/core/common/SolidConfigureLayoutElement.js +0 -77
- package/dist/components/core/common/SolidConfigureLayoutElement.js.map +0 -1
- package/dist/components/core/common/SolidCreateButton.js +0 -12
- package/dist/components/core/common/SolidCreateButton.js.map +0 -1
- package/dist/components/core/common/SolidGlobalSearchElement.js +0 -638
- package/dist/components/core/common/SolidGlobalSearchElement.js.map +0 -1
- package/dist/components/core/common/SolidLayoutViews.js +0 -14
- package/dist/components/core/common/SolidLayoutViews.js.map +0 -1
- package/dist/components/core/common/SolidListViewOptions.js +0 -11
- package/dist/components/core/common/SolidListViewOptions.js.map +0 -1
- package/dist/components/core/common/SolidSaveCustomFilterForm.js +0 -38
- package/dist/components/core/common/SolidSaveCustomFilterForm.js.map +0 -1
- package/dist/components/core/common/SolidSearchBox.js +0 -14
- package/dist/components/core/common/SolidSearchBox.js.map +0 -1
- package/dist/components/core/common/SolidViewLayoutManager.js +0 -90
- package/dist/components/core/common/SolidViewLayoutManager.js.map +0 -1
- package/dist/components/core/extension/solid-core/emailTemplate/emailFormTypeChangeHandler.js +0 -17
- package/dist/components/core/extension/solid-core/emailTemplate/emailFormTypeChangeHandler.js.map +0 -1
- package/dist/components/core/extension/solid-core/emailTemplate/emailFormTypeLoad.js +0 -17
- package/dist/components/core/extension/solid-core/emailTemplate/emailFormTypeLoad.js.map +0 -1
- package/dist/components/core/extension/solid-core/modelMetadata/list/GenerateModelCodeRowAction.js +0 -81
- package/dist/components/core/extension/solid-core/modelMetadata/list/GenerateModelCodeRowAction.js.map +0 -1
- package/dist/components/core/extension/solid-core/moduleMetadata/list/GenerateModuleCodeRowAction.js +0 -62
- package/dist/components/core/extension/solid-core/moduleMetadata/list/GenerateModuleCodeRowAction.js.map +0 -1
- package/dist/components/core/extension/solid-core/roleMetadata/RolePermissionsManyToManyFieldWidget.js +0 -78
- package/dist/components/core/extension/solid-core/roleMetadata/RolePermissionsManyToManyFieldWidget.js.map +0 -1
- package/dist/components/core/field/FieldListViewData.js +0 -192
- package/dist/components/core/field/FieldListViewData.js.map +0 -1
- package/dist/components/core/filter/SolidFilterFields.js +0 -109
- package/dist/components/core/filter/SolidFilterFields.js.map +0 -1
- package/dist/components/core/filter/SolidManyToOneFilterElement.js +0 -88
- package/dist/components/core/filter/SolidManyToOneFilterElement.js.map +0 -1
- package/dist/components/core/filter/SolidSelectionDynamicFilterElement.js +0 -73
- package/dist/components/core/filter/SolidSelectionDynamicFilterElement.js.map +0 -1
- package/dist/components/core/filter/SolidSelectionStaticFilterElement.js +0 -20
- package/dist/components/core/filter/SolidSelectionStaticFilterElement.js.map +0 -1
- package/dist/components/core/filter/SolidVarInputsFilterElement.js +0 -81
- package/dist/components/core/filter/SolidVarInputsFilterElement.js.map +0 -1
- package/dist/components/core/filter/fields/SolidBigintField.js +0 -8
- package/dist/components/core/filter/fields/SolidBigintField.js.map +0 -1
- package/dist/components/core/filter/fields/SolidBooleanField.js +0 -24
- package/dist/components/core/filter/fields/SolidBooleanField.js.map +0 -1
- package/dist/components/core/filter/fields/SolidComputedField.js +0 -22
- package/dist/components/core/filter/fields/SolidComputedField.js.map +0 -1
- package/dist/components/core/filter/fields/SolidDateField.js +0 -32
- package/dist/components/core/filter/fields/SolidDateField.js.map +0 -1
- package/dist/components/core/filter/fields/SolidDatetimeField.js +0 -27
- package/dist/components/core/filter/fields/SolidDatetimeField.js.map +0 -1
- package/dist/components/core/filter/fields/SolidDecimalField.js +0 -8
- package/dist/components/core/filter/fields/SolidDecimalField.js.map +0 -1
- package/dist/components/core/filter/fields/SolidExternalIdField.js +0 -22
- package/dist/components/core/filter/fields/SolidExternalIdField.js.map +0 -1
- package/dist/components/core/filter/fields/SolidFloatField.js +0 -8
- package/dist/components/core/filter/fields/SolidFloatField.js.map +0 -1
- package/dist/components/core/filter/fields/SolidIdField.js +0 -22
- package/dist/components/core/filter/fields/SolidIdField.js.map +0 -1
- package/dist/components/core/filter/fields/SolidIntField.js +0 -31
- package/dist/components/core/filter/fields/SolidIntField.js.map +0 -1
- package/dist/components/core/filter/fields/SolidLongTextField.js +0 -8
- package/dist/components/core/filter/fields/SolidLongTextField.js.map +0 -1
- package/dist/components/core/filter/fields/SolidMediaMultipleField.js +0 -32
- package/dist/components/core/filter/fields/SolidMediaMultipleField.js.map +0 -1
- package/dist/components/core/filter/fields/SolidMediaSingleField.js +0 -32
- package/dist/components/core/filter/fields/SolidMediaSingleField.js.map +0 -1
- package/dist/components/core/filter/fields/SolidRelationField.js +0 -12
- package/dist/components/core/filter/fields/SolidRelationField.js.map +0 -1
- package/dist/components/core/filter/fields/SolidRichTextField.js +0 -8
- package/dist/components/core/filter/fields/SolidRichTextField.js.map +0 -1
- package/dist/components/core/filter/fields/SolidSelectionDynamicField.js +0 -21
- package/dist/components/core/filter/fields/SolidSelectionDynamicField.js.map +0 -1
- package/dist/components/core/filter/fields/SolidSelectionStaticField.js +0 -23
- package/dist/components/core/filter/fields/SolidSelectionStaticField.js.map +0 -1
- package/dist/components/core/filter/fields/SolidShortTextField.js +0 -30
- package/dist/components/core/filter/fields/SolidShortTextField.js.map +0 -1
- package/dist/components/core/filter/fields/SolidTimeField.js +0 -22
- package/dist/components/core/filter/fields/SolidTimeField.js.map +0 -1
- package/dist/components/core/filter/fields/SolidUuidField.js +0 -22
- package/dist/components/core/filter/fields/SolidUuidField.js.map +0 -1
- package/dist/components/core/filter/fields/relations/SolidRelationManyToOneField.js +0 -51
- package/dist/components/core/filter/fields/relations/SolidRelationManyToOneField.js.map +0 -1
- package/dist/components/core/form/SolidFormActionHeader.js +0 -67
- package/dist/components/core/form/SolidFormActionHeader.js.map +0 -1
- package/dist/components/core/form/SolidFormLayouts.js +0 -69
- package/dist/components/core/form/SolidFormLayouts.js.map +0 -1
- package/dist/components/core/form/SolidFormUserViewLayout.js +0 -108
- package/dist/components/core/form/SolidFormUserViewLayout.js.map +0 -1
- package/dist/components/core/form/SolidFormView.js +0 -908
- package/dist/components/core/form/SolidFormView.js.map +0 -1
- package/dist/components/core/form/fields/ISolidField.js +0 -3
- package/dist/components/core/form/fields/ISolidField.js.map +0 -1
- package/dist/components/core/form/fields/SolidBooleanField.js +0 -163
- package/dist/components/core/form/fields/SolidBooleanField.js.map +0 -1
- package/dist/components/core/form/fields/SolidDateField.js +0 -108
- package/dist/components/core/form/fields/SolidDateField.js.map +0 -1
- package/dist/components/core/form/fields/SolidDateTimeField.js +0 -106
- package/dist/components/core/form/fields/SolidDateTimeField.js.map +0 -1
- package/dist/components/core/form/fields/SolidDecimalField.js +0 -107
- package/dist/components/core/form/fields/SolidDecimalField.js.map +0 -1
- package/dist/components/core/form/fields/SolidEmailField.js +0 -114
- package/dist/components/core/form/fields/SolidEmailField.js.map +0 -1
- package/dist/components/core/form/fields/SolidIntegerField.js +0 -107
- package/dist/components/core/form/fields/SolidIntegerField.js.map +0 -1
- package/dist/components/core/form/fields/SolidJsonField.js +0 -109
- package/dist/components/core/form/fields/SolidJsonField.js.map +0 -1
- package/dist/components/core/form/fields/SolidLongTextField.js +0 -107
- package/dist/components/core/form/fields/SolidLongTextField.js.map +0 -1
- package/dist/components/core/form/fields/SolidMediaMultipleField.js +0 -366
- package/dist/components/core/form/fields/SolidMediaMultipleField.js.map +0 -1
- package/dist/components/core/form/fields/SolidMediaSingleField.js +0 -331
- package/dist/components/core/form/fields/SolidMediaSingleField.js.map +0 -1
- package/dist/components/core/form/fields/SolidPasswordField.js +0 -123
- package/dist/components/core/form/fields/SolidPasswordField.js.map +0 -1
- package/dist/components/core/form/fields/SolidRelationField.js +0 -42
- package/dist/components/core/form/fields/SolidRelationField.js.map +0 -1
- package/dist/components/core/form/fields/SolidRichTextField.js +0 -118
- package/dist/components/core/form/fields/SolidRichTextField.js.map +0 -1
- package/dist/components/core/form/fields/SolidSelectionDynamicField.js +0 -185
- package/dist/components/core/form/fields/SolidSelectionDynamicField.js.map +0 -1
- package/dist/components/core/form/fields/SolidSelectionStaticField.js +0 -173
- package/dist/components/core/form/fields/SolidSelectionStaticField.js.map +0 -1
- package/dist/components/core/form/fields/SolidShortTextField.js +0 -131
- package/dist/components/core/form/fields/SolidShortTextField.js.map +0 -1
- package/dist/components/core/form/fields/SolidTimeField.js +0 -102
- package/dist/components/core/form/fields/SolidTimeField.js.map +0 -1
- package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.js +0 -168
- package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.js.map +0 -1
- package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.js +0 -249
- package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.js.map +0 -1
- package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.js +0 -223
- package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.js.map +0 -1
- package/dist/components/core/form/fields/relations/widgets/SolidRelationManyToManyAutocompleteWidget.d.ts +0 -3
- package/dist/components/core/form/fields/relations/widgets/SolidRelationManyToManyAutocompleteWidget.d.ts.map +0 -1
- package/dist/components/core/form/fields/relations/widgets/SolidRelationManyToManyAutocompleteWidget.js +0 -38
- package/dist/components/core/form/fields/relations/widgets/SolidRelationManyToManyAutocompleteWidget.js.map +0 -1
- package/dist/components/core/form/fields/relations/widgets/SolidRelationManyToManyCheckboxWidget.d.ts +0 -3
- package/dist/components/core/form/fields/relations/widgets/SolidRelationManyToManyCheckboxWidget.d.ts.map +0 -1
- package/dist/components/core/form/fields/relations/widgets/SolidRelationManyToManyCheckboxWidget.js +0 -48
- package/dist/components/core/form/fields/relations/widgets/SolidRelationManyToManyCheckboxWidget.js.map +0 -1
- package/dist/components/core/form/fields/relations/widgets/helpers/InlineRelationEntityDialog.js +0 -35
- package/dist/components/core/form/fields/relations/widgets/helpers/InlineRelationEntityDialog.js.map +0 -1
- package/dist/components/core/form/fields/relations/widgets/helpers/useRelationEntityHandler.js +0 -119
- package/dist/components/core/form/fields/relations/widgets/helpers/useRelationEntityHandler.js.map +0 -1
- package/dist/components/core/form/fields/widgets/SolidBooleanCheckboxFieldWidget.d.ts +0 -3
- package/dist/components/core/form/fields/widgets/SolidBooleanCheckboxFieldWidget.d.ts.map +0 -1
- package/dist/components/core/form/fields/widgets/SolidBooleanCheckboxFieldWidget.js +0 -57
- package/dist/components/core/form/fields/widgets/SolidBooleanCheckboxFieldWidget.js.map +0 -1
- package/dist/components/core/form/fields/widgets/SolidBooleanSelectFieldWidget.d.ts +0 -3
- package/dist/components/core/form/fields/widgets/SolidBooleanSelectFieldWidget.d.ts.map +0 -1
- package/dist/components/core/form/fields/widgets/SolidBooleanSelectFieldWidget.js +0 -30
- package/dist/components/core/form/fields/widgets/SolidBooleanSelectFieldWidget.js.map +0 -1
- package/dist/components/core/form/fields/widgets/SolidFormFieldJsonViewModeWidget.d.ts +0 -2
- package/dist/components/core/form/fields/widgets/SolidFormFieldJsonViewModeWidget.d.ts.map +0 -1
- package/dist/components/core/form/fields/widgets/SolidFormFieldJsonViewModeWidget.js +0 -9
- package/dist/components/core/form/fields/widgets/SolidFormFieldJsonViewModeWidget.js.map +0 -1
- package/dist/components/core/form/fields/widgets/SolidFormFieldMediaViewModeWidget.d.ts +0 -2
- package/dist/components/core/form/fields/widgets/SolidFormFieldMediaViewModeWidget.d.ts.map +0 -1
- package/dist/components/core/form/fields/widgets/SolidFormFieldMediaViewModeWidget.js +0 -8
- package/dist/components/core/form/fields/widgets/SolidFormFieldMediaViewModeWidget.js.map +0 -1
- package/dist/components/core/form/fields/widgets/SolidFormFieldPasswordViewModeWidget.d.ts +0 -2
- package/dist/components/core/form/fields/widgets/SolidFormFieldPasswordViewModeWidget.d.ts.map +0 -1
- package/dist/components/core/form/fields/widgets/SolidFormFieldPasswordViewModeWidget.js +0 -9
- package/dist/components/core/form/fields/widgets/SolidFormFieldPasswordViewModeWidget.js.map +0 -1
- package/dist/components/core/form/fields/widgets/SolidFormFieldRelationViewModeWidget.d.ts +0 -2
- package/dist/components/core/form/fields/widgets/SolidFormFieldRelationViewModeWidget.d.ts.map +0 -1
- package/dist/components/core/form/fields/widgets/SolidFormFieldRelationViewModeWidget.js +0 -20
- package/dist/components/core/form/fields/widgets/SolidFormFieldRelationViewModeWidget.js.map +0 -1
- package/dist/components/core/form/fields/widgets/SolidFormFieldRichTextViewModeWidget.d.ts +0 -2
- package/dist/components/core/form/fields/widgets/SolidFormFieldRichTextViewModeWidget.d.ts.map +0 -1
- package/dist/components/core/form/fields/widgets/SolidFormFieldRichTextViewModeWidget.js +0 -7
- package/dist/components/core/form/fields/widgets/SolidFormFieldRichTextViewModeWidget.js.map +0 -1
- package/dist/components/core/form/fields/widgets/SolidFormFieldViewMediaMultipleWidget.d.ts +0 -3
- package/dist/components/core/form/fields/widgets/SolidFormFieldViewMediaMultipleWidget.d.ts.map +0 -1
- package/dist/components/core/form/fields/widgets/SolidFormFieldViewMediaMultipleWidget.js +0 -90
- package/dist/components/core/form/fields/widgets/SolidFormFieldViewMediaMultipleWidget.js.map +0 -1
- package/dist/components/core/form/fields/widgets/SolidFormFieldViewMediaSingleWidget.d.ts +0 -3
- package/dist/components/core/form/fields/widgets/SolidFormFieldViewMediaSingleWidget.d.ts.map +0 -1
- package/dist/components/core/form/fields/widgets/SolidFormFieldViewMediaSingleWidget.js +0 -74
- package/dist/components/core/form/fields/widgets/SolidFormFieldViewMediaSingleWidget.js.map +0 -1
- package/dist/components/core/form/fields/widgets/SolidFormFieldViewModeWidget.d.ts +0 -2
- package/dist/components/core/form/fields/widgets/SolidFormFieldViewModeWidget.d.ts.map +0 -1
- package/dist/components/core/form/fields/widgets/SolidFormFieldViewModeWidget.js +0 -6
- package/dist/components/core/form/fields/widgets/SolidFormFieldViewModeWidget.js.map +0 -1
- package/dist/components/core/form/fields/widgets/SolidRelationFieldAvatarFormWidget.js +0 -29
- package/dist/components/core/form/fields/widgets/SolidRelationFieldAvatarFormWidget.js.map +0 -1
- package/dist/components/core/form/fields/widgets/SolidSelectionStaticAutocompleteFieldWidget.d.ts +0 -3
- package/dist/components/core/form/fields/widgets/SolidSelectionStaticAutocompleteFieldWidget.d.ts.map +0 -1
- package/dist/components/core/form/fields/widgets/SolidSelectionStaticAutocompleteFieldWidget.js +0 -50
- package/dist/components/core/form/fields/widgets/SolidSelectionStaticAutocompleteFieldWidget.js.map +0 -1
- package/dist/components/core/form/fields/widgets/SolidSelectionStaticRadioFieldWidget.d.ts +0 -3
- package/dist/components/core/form/fields/widgets/SolidSelectionStaticRadioFieldWidget.d.ts.map +0 -1
- package/dist/components/core/form/fields/widgets/SolidSelectionStaticRadioFieldWidget.js +0 -34
- package/dist/components/core/form/fields/widgets/SolidSelectionStaticRadioFieldWidget.js.map +0 -1
- package/dist/components/core/form/widgets/CustomHtml.js +0 -15
- package/dist/components/core/form/widgets/CustomHtml.js.map +0 -1
- package/dist/components/core/kanban/KanbanBoard.js +0 -71
- package/dist/components/core/kanban/KanbanBoard.js.map +0 -1
- package/dist/components/core/kanban/KanbanCard.js +0 -156
- package/dist/components/core/kanban/KanbanCard.js.map +0 -1
- package/dist/components/core/kanban/KanbanColumn.js +0 -31
- package/dist/components/core/kanban/KanbanColumn.js.map +0 -1
- package/dist/components/core/kanban/KanbanUserViewLayout.js +0 -108
- package/dist/components/core/kanban/KanbanUserViewLayout.js.map +0 -1
- package/dist/components/core/kanban/SolidKanbanView.js +0 -678
- package/dist/components/core/kanban/SolidKanbanView.js.map +0 -1
- package/dist/components/core/kanban/SolidKanbanViewConfigure.js +0 -66
- package/dist/components/core/kanban/SolidKanbanViewConfigure.js.map +0 -1
- package/dist/components/core/kanban/SolidKanbanViewFields.js +0 -144
- package/dist/components/core/kanban/SolidKanbanViewFields.js.map +0 -1
- package/dist/components/core/kanban/SolidManyToOneFilterElement.js +0 -87
- package/dist/components/core/kanban/SolidManyToOneFilterElement.js.map +0 -1
- package/dist/components/core/kanban/SolidSelectionDynamicFilterElement.js +0 -74
- package/dist/components/core/kanban/SolidSelectionDynamicFilterElement.js.map +0 -1
- package/dist/components/core/kanban/SolidSelectionStaticFilterElement.js +0 -21
- package/dist/components/core/kanban/SolidSelectionStaticFilterElement.js.map +0 -1
- package/dist/components/core/kanban/SolidVarInputsFilterElement.js +0 -82
- package/dist/components/core/kanban/SolidVarInputsFilterElement.js.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidBigintKanbanField.js +0 -8
- package/dist/components/core/kanban/kanban-fields/SolidBigintKanbanField.js.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidBooleanKanbanField.js +0 -8
- package/dist/components/core/kanban/kanban-fields/SolidBooleanKanbanField.js.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidComputedKanbanField.js +0 -22
- package/dist/components/core/kanban/kanban-fields/SolidComputedKanbanField.js.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidDateKanbanField.js +0 -8
- package/dist/components/core/kanban/kanban-fields/SolidDateKanbanField.js.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidDatetimeKanbanField.js +0 -8
- package/dist/components/core/kanban/kanban-fields/SolidDatetimeKanbanField.js.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidDecimalKanbanField.js +0 -8
- package/dist/components/core/kanban/kanban-fields/SolidDecimalKanbanField.js.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidExternalIdKanbanField.js +0 -8
- package/dist/components/core/kanban/kanban-fields/SolidExternalIdKanbanField.js.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidFloatKanbanField.js +0 -8
- package/dist/components/core/kanban/kanban-fields/SolidFloatKanbanField.js.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidIdKanbanField.js +0 -8
- package/dist/components/core/kanban/kanban-fields/SolidIdKanbanField.js.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidIntKanbanField.js +0 -16
- package/dist/components/core/kanban/kanban-fields/SolidIntKanbanField.js.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidLongTextKanbanField.js +0 -8
- package/dist/components/core/kanban/kanban-fields/SolidLongTextKanbanField.js.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidMediaMultipleKanbanField.js +0 -56
- package/dist/components/core/kanban/kanban-fields/SolidMediaMultipleKanbanField.js.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.js +0 -42
- package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.js.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidRelationKanbanField.js +0 -12
- package/dist/components/core/kanban/kanban-fields/SolidRelationKanbanField.js.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidRichTextKanbanField.js +0 -8
- package/dist/components/core/kanban/kanban-fields/SolidRichTextKanbanField.js.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidSelectionDynamicKanbanField.js +0 -8
- package/dist/components/core/kanban/kanban-fields/SolidSelectionDynamicKanbanField.js.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidSelectionStaticKanbanField.js +0 -8
- package/dist/components/core/kanban/kanban-fields/SolidSelectionStaticKanbanField.js.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.js +0 -38
- package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.js.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidTimeKanbanField.js +0 -8
- package/dist/components/core/kanban/kanban-fields/SolidTimeKanbanField.js.map +0 -1
- package/dist/components/core/kanban/kanban-fields/SolidUuidKanbanField.js +0 -8
- package/dist/components/core/kanban/kanban-fields/SolidUuidKanbanField.js.map +0 -1
- package/dist/components/core/kanban/kanban-fields/relations/SolidRelationManyToOneKanbanField.js +0 -8
- package/dist/components/core/kanban/kanban-fields/relations/SolidRelationManyToOneKanbanField.js.map +0 -1
- package/dist/components/core/list/ListViewRowActionPopup.js +0 -34
- package/dist/components/core/list/ListViewRowActionPopup.js.map +0 -1
- package/dist/components/core/list/SolidEmptyListViewPlaceholder.js +0 -16
- package/dist/components/core/list/SolidEmptyListViewPlaceholder.js.map +0 -1
- package/dist/components/core/list/SolidListColumnSelector.js +0 -179
- package/dist/components/core/list/SolidListColumnSelector.js.map +0 -1
- package/dist/components/core/list/SolidListView.js +0 -692
- package/dist/components/core/list/SolidListView.js.map +0 -1
- package/dist/components/core/list/SolidListViewColumn.js +0 -147
- package/dist/components/core/list/SolidListViewColumn.js.map +0 -1
- package/dist/components/core/list/SolidListViewConfigure.js +0 -73
- package/dist/components/core/list/SolidListViewConfigure.js.map +0 -1
- package/dist/components/core/list/SolidListViewShimmerLoading.js +0 -7
- package/dist/components/core/list/SolidListViewShimmerLoading.js.map +0 -1
- package/dist/components/core/list/SolidListingHeader.js +0 -13
- package/dist/components/core/list/SolidListingHeader.js.map +0 -1
- package/dist/components/core/list/SolidManyToOneFilterElement.js +0 -87
- package/dist/components/core/list/SolidManyToOneFilterElement.js.map +0 -1
- package/dist/components/core/list/SolidSelectionDynamicFilterElement.js +0 -74
- package/dist/components/core/list/SolidSelectionDynamicFilterElement.js.map +0 -1
- package/dist/components/core/list/SolidSelectionStaticFilterElement.js +0 -21
- package/dist/components/core/list/SolidSelectionStaticFilterElement.js.map +0 -1
- package/dist/components/core/list/SolidTableRowCell.js +0 -7
- package/dist/components/core/list/SolidTableRowCell.js.map +0 -1
- package/dist/components/core/list/SolidVarInputsFilterElement.js +0 -82
- package/dist/components/core/list/SolidVarInputsFilterElement.js.map +0 -1
- package/dist/components/core/list/columns/SolidBigintColumn.js +0 -8
- package/dist/components/core/list/columns/SolidBigintColumn.js.map +0 -1
- package/dist/components/core/list/columns/SolidBooleanColumn.js +0 -67
- package/dist/components/core/list/columns/SolidBooleanColumn.js.map +0 -1
- package/dist/components/core/list/columns/SolidComputedColumn.js +0 -22
- package/dist/components/core/list/columns/SolidComputedColumn.js.map +0 -1
- package/dist/components/core/list/columns/SolidDateColumn.js +0 -69
- package/dist/components/core/list/columns/SolidDateColumn.js.map +0 -1
- package/dist/components/core/list/columns/SolidDatetimeColumn.js +0 -58
- package/dist/components/core/list/columns/SolidDatetimeColumn.js.map +0 -1
- package/dist/components/core/list/columns/SolidDecimalColumn.js +0 -8
- package/dist/components/core/list/columns/SolidDecimalColumn.js.map +0 -1
- package/dist/components/core/list/columns/SolidExternalIdColumn.js +0 -59
- package/dist/components/core/list/columns/SolidExternalIdColumn.js.map +0 -1
- package/dist/components/core/list/columns/SolidFloatColumn.js +0 -8
- package/dist/components/core/list/columns/SolidFloatColumn.js.map +0 -1
- package/dist/components/core/list/columns/SolidIdColumn.js +0 -59
- package/dist/components/core/list/columns/SolidIdColumn.js.map +0 -1
- package/dist/components/core/list/columns/SolidIntColumn.js +0 -68
- package/dist/components/core/list/columns/SolidIntColumn.js.map +0 -1
- package/dist/components/core/list/columns/SolidLongTextColumn.js +0 -8
- package/dist/components/core/list/columns/SolidLongTextColumn.js.map +0 -1
- package/dist/components/core/list/columns/SolidMediaMultipleColumn.js +0 -65
- package/dist/components/core/list/columns/SolidMediaMultipleColumn.js.map +0 -1
- package/dist/components/core/list/columns/SolidMediaSingleColumn.js +0 -60
- package/dist/components/core/list/columns/SolidMediaSingleColumn.js.map +0 -1
- package/dist/components/core/list/columns/SolidRelationColumn.js +0 -20
- package/dist/components/core/list/columns/SolidRelationColumn.js.map +0 -1
- package/dist/components/core/list/columns/SolidRichTextColumn.js +0 -8
- package/dist/components/core/list/columns/SolidRichTextColumn.js.map +0 -1
- package/dist/components/core/list/columns/SolidSelectionDynamicColumn.js +0 -59
- package/dist/components/core/list/columns/SolidSelectionDynamicColumn.js.map +0 -1
- package/dist/components/core/list/columns/SolidSelectionStaticColumn.js +0 -59
- package/dist/components/core/list/columns/SolidSelectionStaticColumn.js.map +0 -1
- package/dist/components/core/list/columns/SolidShortTextColumn.js +0 -77
- package/dist/components/core/list/columns/SolidShortTextColumn.js.map +0 -1
- package/dist/components/core/list/columns/SolidTimeColumn.js +0 -58
- package/dist/components/core/list/columns/SolidTimeColumn.js.map +0 -1
- package/dist/components/core/list/columns/SolidUuidColumn.js +0 -59
- package/dist/components/core/list/columns/SolidUuidColumn.js.map +0 -1
- package/dist/components/core/list/columns/relations/SolidRelationManyToManyColumn.js +0 -70
- package/dist/components/core/list/columns/relations/SolidRelationManyToManyColumn.js.map +0 -1
- package/dist/components/core/list/columns/relations/SolidRelationManyToOneColumn.js +0 -67
- package/dist/components/core/list/columns/relations/SolidRelationManyToOneColumn.js.map +0 -1
- package/dist/components/core/list/columns/relations/SolidRelationOneToManyColumn.js +0 -70
- package/dist/components/core/list/columns/relations/SolidRelationOneToManyColumn.js.map +0 -1
- package/dist/components/core/list/widgets/SolidRelationAvatarWidget.js +0 -61
- package/dist/components/core/list/widgets/SolidRelationAvatarWidget.js.map +0 -1
- package/dist/components/core/list/widgets/SolidShortTextAvatarWidget.js +0 -42
- package/dist/components/core/list/widgets/SolidShortTextAvatarWidget.js.map +0 -1
- package/dist/components/core/list/widgets/SolidShortTextFieldImageRenderModeWidget.js +0 -10
- package/dist/components/core/list/widgets/SolidShortTextFieldImageRenderModeWidget.js.map +0 -1
- package/dist/components/core/list/widgets/SolidShortTextFieldTextRenderModeWidget copy.d.ts +0 -2
- package/dist/components/core/list/widgets/SolidShortTextFieldTextRenderModeWidget copy.d.ts.map +0 -1
- package/dist/components/core/list/widgets/SolidShortTextFieldTextRenderModeWidget copy.js +0 -7
- package/dist/components/core/list/widgets/SolidShortTextFieldTextRenderModeWidget copy.js.map +0 -1
- package/dist/components/core/list/widgets/SolidShortTextFieldTextRenderModeWidget.d.ts +0 -2
- package/dist/components/core/list/widgets/SolidShortTextFieldTextRenderModeWidget.d.ts.map +0 -1
- package/dist/components/core/list/widgets/SolidShortTextFieldTextRenderModeWidget.js +0 -7
- package/dist/components/core/list/widgets/SolidShortTextFieldTextRenderModeWidget.js.map +0 -1
- package/dist/components/core/list/widgets/SolidUserNameAvatarWidget.d.ts +0 -2
- package/dist/components/core/list/widgets/SolidUserNameAvatarWidget.d.ts.map +0 -1
- package/dist/components/core/list/widgets/SolidUserNameAvatarWidget.js +0 -36
- package/dist/components/core/list/widgets/SolidUserNameAvatarWidget.js.map +0 -1
- package/dist/components/core/model/CreateModel.js +0 -349
- package/dist/components/core/model/CreateModel.js.map +0 -1
- package/dist/components/core/model/FieldMetaData.js +0 -139
- package/dist/components/core/model/FieldMetaData.js.map +0 -1
- package/dist/components/core/model/FieldMetaDataForm.js +0 -1150
- package/dist/components/core/model/FieldMetaDataForm.js.map +0 -1
- package/dist/components/core/model/FieldSelector.js +0 -37
- package/dist/components/core/model/FieldSelector.js.map +0 -1
- package/dist/components/core/model/ModelListViewData.js +0 -211
- package/dist/components/core/model/ModelListViewData.js.map +0 -1
- package/dist/components/core/model/ModelMetaData.js +0 -397
- package/dist/components/core/model/ModelMetaData.js.map +0 -1
- package/dist/components/core/module/CreateModule.js +0 -362
- package/dist/components/core/module/CreateModule.js.map +0 -1
- package/dist/components/core/module/ModuleListViewData.js +0 -263
- package/dist/components/core/module/ModuleListViewData.js.map +0 -1
- package/dist/components/core/users/CreateUser.js +0 -238
- package/dist/components/core/users/CreateUser.js.map +0 -1
- package/dist/components/core/users/CreateUserRole.js +0 -168
- package/dist/components/core/users/CreateUserRole.js.map +0 -1
- package/dist/components/core/users/UserListView.js +0 -223
- package/dist/components/core/users/UserListView.js.map +0 -1
- package/dist/components/layout/AdminLayout.js +0 -86
- package/dist/components/layout/AdminLayout.js.map +0 -1
- package/dist/components/layout/AdminSidebar.js +0 -42
- package/dist/components/layout/AdminSidebar.js.map +0 -1
- package/dist/components/layout/AppConfig.js +0 -52
- package/dist/components/layout/AppConfig.js.map +0 -1
- package/dist/components/layout/AppSidebar.js +0 -133
- package/dist/components/layout/AppSidebar.js.map +0 -1
- package/dist/components/layout/ButtonLoader.js +0 -7
- package/dist/components/layout/ButtonLoader.js.map +0 -1
- package/dist/components/layout/CustomPagination.js +0 -49
- package/dist/components/layout/CustomPagination.js.map +0 -1
- package/dist/components/layout/DashboardHeader.js +0 -27
- package/dist/components/layout/DashboardHeader.js.map +0 -1
- package/dist/components/layout/FilterMenu.js +0 -49
- package/dist/components/layout/FilterMenu.js.map +0 -1
- package/dist/components/layout/Footer.js +0 -7
- package/dist/components/layout/Footer.js.map +0 -1
- package/dist/components/layout/GlobalSearch.js +0 -26
- package/dist/components/layout/GlobalSearch.js.map +0 -1
- package/dist/components/layout/Header.js +0 -8
- package/dist/components/layout/Header.js.map +0 -1
- package/dist/components/layout/Layout.js +0 -114
- package/dist/components/layout/Layout.js.map +0 -1
- package/dist/components/layout/ListingHeader.js +0 -90
- package/dist/components/layout/ListingHeader.js.map +0 -1
- package/dist/components/layout/Loader.js +0 -7
- package/dist/components/layout/Loader.js.map +0 -1
- package/dist/components/layout/UserSidebar.js +0 -32
- package/dist/components/layout/UserSidebar.js.map +0 -1
- package/dist/components/layout/context/layoutcontext.js +0 -56
- package/dist/components/layout/context/layoutcontext.js.map +0 -1
- package/dist/components/layout/navbar-one.js +0 -89
- package/dist/components/layout/navbar-one.js.map +0 -1
- package/dist/components/layout/navbar-two-menu.js +0 -45
- package/dist/components/layout/navbar-two-menu.js.map +0 -1
- package/dist/components/layout/navbar-two.js +0 -35
- package/dist/components/layout/navbar-two.js.map +0 -1
- package/dist/components/layout/user-profile-menu.js +0 -61
- package/dist/components/layout/user-profile-menu.js.map +0 -1
- package/dist/components/layout/user-profile.js +0 -8
- package/dist/components/layout/user-profile.js.map +0 -1
- package/dist/components/modelsComponents/filterIcon.js +0 -6
- package/dist/components/modelsComponents/filterIcon.js.map +0 -1
- package/dist/components/tables/DemoData.js +0 -317
- package/dist/components/tables/DemoData.js.map +0 -1
- package/dist/components/tables/DynamicTable.js +0 -24
- package/dist/components/tables/DynamicTable.js.map +0 -1
- package/dist/components/tables/ListViewTable.js +0 -120
- package/dist/components/tables/ListViewTable.js.map +0 -1
- package/dist/helpers/AppTitle.js +0 -8
- package/dist/helpers/AppTitle.js.map +0 -1
- package/dist/helpers/ToastContainer.js +0 -49
- package/dist/helpers/ToastContainer.js.map +0 -1
- package/dist/helpers/authHeader.js +0 -18
- package/dist/helpers/authHeader.js.map +0 -1
- package/dist/helpers/countries.js +0 -262
- package/dist/helpers/countries.js.map +0 -1
- package/dist/helpers/downloadMediaFile.js +0 -66
- package/dist/helpers/downloadMediaFile.js.map +0 -1
- package/dist/helpers/getAcceptedFileTypes.js +0 -20
- package/dist/helpers/getAcceptedFileTypes.js.map +0 -1
- package/dist/helpers/getRandomColors.js +0 -63
- package/dist/helpers/getRandomColors.js.map +0 -1
- package/dist/helpers/helpers.js +0 -26
- package/dist/helpers/helpers.js.map +0 -1
- package/dist/helpers/menu.js +0 -668
- package/dist/helpers/menu.js.map +0 -1
- package/dist/helpers/permissions.js +0 -15
- package/dist/helpers/permissions.js.map +0 -1
- package/dist/helpers/registry.js +0 -138
- package/dist/helpers/registry.js.map +0 -1
- package/dist/helpers/revalidate.js +0 -48
- package/dist/helpers/revalidate.js.map +0 -1
- package/dist/index.js +0 -578
- package/dist/index.js.map +0 -1
- package/dist/nextAuth/authProviders.js +0 -236
- package/dist/nextAuth/authProviders.js.map +0 -1
- package/dist/nextAuth/refreshAccessToken.js +0 -76
- package/dist/nextAuth/refreshAccessToken.js.map +0 -1
- package/dist/redux/api/articleApi.js +0 -57
- package/dist/redux/api/articleApi.js.map +0 -1
- package/dist/redux/api/authApi.js +0 -120
- package/dist/redux/api/authApi.js.map +0 -1
- package/dist/redux/api/automationApi.js +0 -57
- package/dist/redux/api/automationApi.js.map +0 -1
- package/dist/redux/api/categoryApi.js +0 -48
- package/dist/redux/api/categoryApi.js.map +0 -1
- package/dist/redux/api/cityApi.js +0 -54
- package/dist/redux/api/cityApi.js.map +0 -1
- package/dist/redux/api/cmsBannerImageApi.js +0 -57
- package/dist/redux/api/cmsBannerImageApi.js.map +0 -1
- package/dist/redux/api/countryApi.js +0 -57
- package/dist/redux/api/countryApi.js.map +0 -1
- package/dist/redux/api/fetchBaseQuery.js +0 -59
- package/dist/redux/api/fetchBaseQuery.js.map +0 -1
- package/dist/redux/api/fieldApi.js +0 -63
- package/dist/redux/api/fieldApi.js.map +0 -1
- package/dist/redux/api/mediaApi.js +0 -57
- package/dist/redux/api/mediaApi.js.map +0 -1
- package/dist/redux/api/mediaStorageProviderApi.js +0 -57
- package/dist/redux/api/mediaStorageProviderApi.js.map +0 -1
- package/dist/redux/api/menuApi.js +0 -57
- package/dist/redux/api/menuApi.js.map +0 -1
- package/dist/redux/api/menuItemsApi.js +0 -58
- package/dist/redux/api/menuItemsApi.js.map +0 -1
- package/dist/redux/api/modelApi.js +0 -78
- package/dist/redux/api/modelApi.js.map +0 -1
- package/dist/redux/api/moduleApi.js +0 -74
- package/dist/redux/api/moduleApi.js.map +0 -1
- package/dist/redux/api/orderAttributeApi.js +0 -39
- package/dist/redux/api/orderAttributeApi.js.map +0 -1
- package/dist/redux/api/permissionApi.js +0 -27
- package/dist/redux/api/permissionApi.js.map +0 -1
- package/dist/redux/api/pincodeApi.js +0 -54
- package/dist/redux/api/pincodeApi.js.map +0 -1
- package/dist/redux/api/productData.js +0 -78
- package/dist/redux/api/productData.js.map +0 -1
- package/dist/redux/api/radixExtraModelAttributeApi.js +0 -39
- package/dist/redux/api/radixExtraModelAttributeApi.js.map +0 -1
- package/dist/redux/api/radixModelMetadataApi.js +0 -64
- package/dist/redux/api/radixModelMetadataApi.js.map +0 -1
- package/dist/redux/api/radixModelsApi.js +0 -67
- package/dist/redux/api/radixModelsApi.js.map +0 -1
- package/dist/redux/api/ratingApi.js +0 -57
- package/dist/redux/api/ratingApi.js.map +0 -1
- package/dist/redux/api/reviewApi.js +0 -57
- package/dist/redux/api/reviewApi.js.map +0 -1
- package/dist/redux/api/roleApi.js +0 -49
- package/dist/redux/api/roleApi.js.map +0 -1
- package/dist/redux/api/solidActionApi.js +0 -58
- package/dist/redux/api/solidActionApi.js.map +0 -1
- package/dist/redux/api/solidChatterMessageApi.js +0 -29
- package/dist/redux/api/solidChatterMessageApi.js.map +0 -1
- package/dist/redux/api/solidEntityApi.js +0 -118
- package/dist/redux/api/solidEntityApi.js.map +0 -1
- package/dist/redux/api/solidMenuApi.js +0 -61
- package/dist/redux/api/solidMenuApi.js.map +0 -1
- package/dist/redux/api/solidSettingsApi.js +0 -50
- package/dist/redux/api/solidSettingsApi.js.map +0 -1
- package/dist/redux/api/solidViewApi.js +0 -63
- package/dist/redux/api/solidViewApi.js.map +0 -1
- package/dist/redux/api/stateApi.js +0 -54
- package/dist/redux/api/stateApi.js.map +0 -1
- package/dist/redux/api/tagApi.js +0 -57
- package/dist/redux/api/tagApi.js.map +0 -1
- package/dist/redux/api/tagGroupApi.js +0 -57
- package/dist/redux/api/tagGroupApi.js.map +0 -1
- package/dist/redux/api/testApi.js +0 -19
- package/dist/redux/api/testApi.js.map +0 -1
- package/dist/redux/api/userApi.js +0 -103
- package/dist/redux/api/userApi.js.map +0 -1
- package/dist/redux/features/authSlice.js +0 -19
- package/dist/redux/features/authSlice.js.map +0 -1
- package/dist/redux/features/dataViewSlice.js +0 -21
- package/dist/redux/features/dataViewSlice.js.map +0 -1
- package/dist/redux/features/navbarSlice.js +0 -22
- package/dist/redux/features/navbarSlice.js.map +0 -1
- package/dist/redux/features/popupSlice.js +0 -27
- package/dist/redux/features/popupSlice.js.map +0 -1
- package/dist/redux/features/themeSlice.js +0 -16
- package/dist/redux/features/themeSlice.js.map +0 -1
- package/dist/redux/features/userSlice.js +0 -21
- package/dist/redux/features/userSlice.js.map +0 -1
- package/dist/stylesheets/globals.css +0 -2476
- package/dist/stylesheets/styles/SF-Pro-Display-Regular.otf +0 -0
- package/dist/stylesheets/styles/layout/_config.scss +0 -54
- package/dist/stylesheets/styles/layout/_content.scss +0 -77
- package/dist/stylesheets/styles/layout/_footer.scss +0 -8
- package/dist/stylesheets/styles/layout/_main.scss +0 -47
- package/dist/stylesheets/styles/layout/_menu.scss +0 -185
- package/dist/stylesheets/styles/layout/_mixins.scss +0 -13
- package/dist/stylesheets/styles/layout/_responsive.scss +0 -99
- package/dist/stylesheets/styles/layout/_topbar.scss +0 -149
- package/dist/stylesheets/styles/layout/_typography.scss +0 -63
- package/dist/stylesheets/styles/layout/_utils.scss +0 -27
- package/dist/stylesheets/styles/layout/_variables.scss +0 -3
- package/dist/stylesheets/styles/layout/layout.scss +0 -11
- package/dist/stylesheets/themes/solid-dark-purple/fonts/SF-Pro-Display-Black.otf +0 -0
- package/dist/stylesheets/themes/solid-dark-purple/fonts/SF-Pro-Display-Bold.otf +0 -0
- package/dist/stylesheets/themes/solid-dark-purple/fonts/SF-Pro-Display-Heavy.otf +0 -0
- package/dist/stylesheets/themes/solid-dark-purple/fonts/SF-Pro-Display-Light.otf +0 -0
- package/dist/stylesheets/themes/solid-dark-purple/fonts/SF-Pro-Display-Medium.otf +0 -0
- package/dist/stylesheets/themes/solid-dark-purple/fonts/SF-Pro-Display-Regular.otf +0 -0
- package/dist/stylesheets/themes/solid-dark-purple/fonts/SF-Pro-Display-Semibold.otf +0 -0
- package/dist/stylesheets/themes/solid-dark-purple/fonts/SF-Pro-Display-Thin.otf +0 -0
- package/dist/stylesheets/themes/solid-dark-purple/fonts/SF-Pro-Display-Ultralight.otf +0 -0
- package/dist/stylesheets/themes/solid-dark-purple/theme.css +0 -9051
- package/dist/stylesheets/themes/solid-light-purple/fonts/SF-Pro-Display-Black.otf +0 -0
- package/dist/stylesheets/themes/solid-light-purple/fonts/SF-Pro-Display-Bold.otf +0 -0
- package/dist/stylesheets/themes/solid-light-purple/fonts/SF-Pro-Display-Heavy.otf +0 -0
- package/dist/stylesheets/themes/solid-light-purple/fonts/SF-Pro-Display-Light.otf +0 -0
- package/dist/stylesheets/themes/solid-light-purple/fonts/SF-Pro-Display-Medium.otf +0 -0
- package/dist/stylesheets/themes/solid-light-purple/fonts/SF-Pro-Display-Regular.otf +0 -0
- package/dist/stylesheets/themes/solid-light-purple/fonts/SF-Pro-Display-Semibold.otf +0 -0
- package/dist/stylesheets/themes/solid-light-purple/fonts/SF-Pro-Display-Thin.otf +0 -0
- package/dist/stylesheets/themes/solid-light-purple/fonts/SF-Pro-Display-Ultralight.otf +0 -0
- package/dist/stylesheets/themes/solid-light-purple/theme.css +0 -9077
|
@@ -1,678 +0,0 @@
|
|
|
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
|