@solidstarters/solid-core-ui 0.1.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/CustomFooter/CustomFooter.d.ts +2 -0
- package/dist/components/CustomFooter/CustomFooter.d.ts.map +1 -0
- package/dist/components/CustomFooter/FooterForm.d.ts +2 -0
- package/dist/components/CustomFooter/FooterForm.d.ts.map +1 -0
- package/dist/components/CustomHeader/CallIcon.d.ts +2 -0
- package/dist/components/CustomHeader/CallIcon.d.ts.map +1 -0
- package/dist/components/CustomHeader/CustomDropdown.d.ts +21 -0
- package/dist/components/CustomHeader/CustomDropdown.d.ts.map +1 -0
- package/dist/components/CustomHeader/CustomHeader.d.ts +2 -0
- package/dist/components/CustomHeader/CustomHeader.d.ts.map +1 -0
- package/dist/components/CustomHeader/EmailIcon.d.ts +2 -0
- package/dist/components/CustomHeader/EmailIcon.d.ts.map +1 -0
- package/dist/components/CustomHeader/HeaderCart.d.ts +2 -0
- package/dist/components/CustomHeader/HeaderCart.d.ts.map +1 -0
- package/dist/components/CustomHeader/productNavData.d.ts +3 -0
- package/dist/components/CustomHeader/productNavData.d.ts.map +1 -0
- package/dist/components/FormView/DetailsViews.d.ts +2 -0
- package/dist/components/FormView/DetailsViews.d.ts.map +1 -0
- package/dist/components/FormView/OrderAddressDetails.d.ts +2 -0
- package/dist/components/FormView/OrderAddressDetails.d.ts.map +1 -0
- package/dist/components/FormView/OrderPaymentDetails.d.ts +2 -0
- package/dist/components/FormView/OrderPaymentDetails.d.ts.map +1 -0
- package/dist/components/FormView/OrderTableDetails.d.ts +2 -0
- package/dist/components/FormView/OrderTableDetails.d.ts.map +1 -0
- package/dist/components/FormView/OrderedProductDetail.d.ts +2 -0
- package/dist/components/FormView/OrderedProductDetail.d.ts.map +1 -0
- package/dist/components/Tag/CustomTag.d.ts +8 -0
- package/dist/components/Tag/CustomTag.d.ts.map +1 -0
- package/dist/components/auth/Login.d.ts +3 -0
- package/dist/components/auth/Login.d.ts.map +1 -0
- package/dist/components/auth/Register.d.ts +3 -0
- package/dist/components/auth/Register.d.ts.map +1 -0
- package/dist/components/common/AuthBanner.d.ts +3 -0
- package/dist/components/common/AuthBanner.d.ts.map +1 -0
- package/dist/components/common/AutoCompleteField.d.ts +2 -0
- package/dist/components/common/AutoCompleteField.d.ts.map +1 -0
- package/dist/components/common/CancelButton.d.ts +3 -0
- package/dist/components/common/CancelButton.d.ts.map +1 -0
- package/dist/components/common/CodeEditor.d.ts +3 -0
- package/dist/components/common/CodeEditor.d.ts.map +1 -0
- package/dist/components/common/CreateButton.d.ts +2 -0
- package/dist/components/common/CreateButton.d.ts.map +1 -0
- package/dist/components/common/DropzonePlaceholder.d.ts +2 -0
- package/dist/components/common/DropzonePlaceholder.d.ts.map +1 -0
- package/dist/components/common/DropzoneUpload.d.ts +2 -0
- package/dist/components/common/DropzoneUpload.d.ts.map +1 -0
- package/dist/components/common/FilterComponent.d.ts +3 -0
- package/dist/components/common/FilterComponent.d.ts.map +1 -0
- package/dist/components/common/HeaderDynamicTitles.d.ts +2 -0
- package/dist/components/common/HeaderDynamicTitles.d.ts.map +1 -0
- package/dist/components/common/MarkdownViewer.d.ts +3 -0
- package/dist/components/common/MarkdownViewer.d.ts.map +1 -0
- package/dist/components/common/MultipleSelectAutoCompleteField.d.ts +2 -0
- package/dist/components/common/MultipleSelectAutoCompleteField.d.ts.map +1 -0
- package/dist/components/common/SingleSelectAutoCompleteField.d.ts +2 -0
- package/dist/components/common/SingleSelectAutoCompleteField.d.ts.map +1 -0
- package/dist/components/common/SocialMediaLogin.d.ts +2 -0
- package/dist/components/common/SocialMediaLogin.d.ts.map +1 -0
- package/dist/components/core/common/SolidConfigureLayoutElement.d.ts +2 -0
- package/dist/components/core/common/SolidConfigureLayoutElement.d.ts.map +1 -0
- package/dist/components/core/common/SolidCreateButton.d.ts +2 -0
- package/dist/components/core/common/SolidCreateButton.d.ts.map +1 -0
- package/dist/components/core/common/SolidGlobalSearchElement.d.ts +2 -0
- package/dist/components/core/common/SolidGlobalSearchElement.d.ts.map +1 -0
- package/dist/components/core/common/SolidSearchBox.d.ts +2 -0
- package/dist/components/core/common/SolidSearchBox.d.ts.map +1 -0
- package/dist/components/core/field/FieldListViewData.d.ts +7 -0
- package/dist/components/core/field/FieldListViewData.d.ts.map +1 -0
- package/dist/components/core/form/SolidFormView.d.ts +14 -0
- package/dist/components/core/form/SolidFormView.d.ts.map +1 -0
- package/dist/components/core/form/fields/ISolidField.d.ts +63 -0
- package/dist/components/core/form/fields/ISolidField.d.ts.map +1 -0
- package/dist/components/core/form/fields/SolidBooleanField.d.ts +11 -0
- package/dist/components/core/form/fields/SolidBooleanField.d.ts.map +1 -0
- package/dist/components/core/form/fields/SolidDateField.d.ts +11 -0
- package/dist/components/core/form/fields/SolidDateField.d.ts.map +1 -0
- package/dist/components/core/form/fields/SolidDateTimeField.d.ts +11 -0
- package/dist/components/core/form/fields/SolidDateTimeField.d.ts.map +1 -0
- package/dist/components/core/form/fields/SolidDecimalField.d.ts +11 -0
- package/dist/components/core/form/fields/SolidDecimalField.d.ts.map +1 -0
- package/dist/components/core/form/fields/SolidIntegerField.d.ts +11 -0
- package/dist/components/core/form/fields/SolidIntegerField.d.ts.map +1 -0
- package/dist/components/core/form/fields/SolidJsonField.d.ts +11 -0
- package/dist/components/core/form/fields/SolidJsonField.d.ts.map +1 -0
- package/dist/components/core/form/fields/SolidLongTextField.d.ts +11 -0
- package/dist/components/core/form/fields/SolidLongTextField.d.ts.map +1 -0
- package/dist/components/core/form/fields/SolidMediaMultipleField.d.ts +11 -0
- package/dist/components/core/form/fields/SolidMediaMultipleField.d.ts.map +1 -0
- package/dist/components/core/form/fields/SolidMediaSingleField.d.ts +11 -0
- package/dist/components/core/form/fields/SolidMediaSingleField.d.ts.map +1 -0
- package/dist/components/core/form/fields/SolidRelationField.d.ts +13 -0
- package/dist/components/core/form/fields/SolidRelationField.d.ts.map +1 -0
- package/dist/components/core/form/fields/SolidRichTextField.d.ts +11 -0
- package/dist/components/core/form/fields/SolidRichTextField.d.ts.map +1 -0
- package/dist/components/core/form/fields/SolidSelectionDynamicField.d.ts +11 -0
- package/dist/components/core/form/fields/SolidSelectionDynamicField.d.ts.map +1 -0
- package/dist/components/core/form/fields/SolidSelectionStaticField.d.ts +11 -0
- package/dist/components/core/form/fields/SolidSelectionStaticField.d.ts.map +1 -0
- package/dist/components/core/form/fields/SolidShortTextField.d.ts +11 -0
- package/dist/components/core/form/fields/SolidShortTextField.d.ts.map +1 -0
- package/dist/components/core/form/fields/SolidTimeField.d.ts +11 -0
- package/dist/components/core/form/fields/SolidTimeField.d.ts.map +1 -0
- package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.d.ts +14 -0
- package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.d.ts.map +1 -0
- package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.d.ts +11 -0
- package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.d.ts.map +1 -0
- package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.d.ts +12 -0
- package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.d.ts.map +1 -0
- package/dist/components/core/kanban/KanbanBoard.d.ts +3 -0
- package/dist/components/core/kanban/KanbanBoard.d.ts.map +1 -0
- package/dist/components/core/kanban/KanbanCard.d.ts +14 -0
- package/dist/components/core/kanban/KanbanCard.d.ts.map +1 -0
- package/dist/components/core/kanban/KanbanColumn.d.ts +20 -0
- package/dist/components/core/kanban/KanbanColumn.d.ts.map +1 -0
- package/dist/components/core/kanban/SolidKanbanFilter.d.ts +2 -0
- package/dist/components/core/kanban/SolidKanbanFilter.d.ts.map +1 -0
- package/dist/components/core/kanban/SolidKanbanView.d.ts +8 -0
- package/dist/components/core/kanban/SolidKanbanView.d.ts.map +1 -0
- package/dist/components/core/kanban/SolidKanbanViewSearchColumn.d.ts +10 -0
- package/dist/components/core/kanban/SolidKanbanViewSearchColumn.d.ts.map +1 -0
- package/dist/components/core/kanban/SolidManyToOneFilterElement.d.ts +2 -0
- package/dist/components/core/kanban/SolidManyToOneFilterElement.d.ts.map +1 -0
- package/dist/components/core/kanban/SolidSelectionDynamicFilterElement.d.ts +2 -0
- package/dist/components/core/kanban/SolidSelectionDynamicFilterElement.d.ts.map +1 -0
- package/dist/components/core/kanban/SolidSelectionStaticFilterElement.d.ts +2 -0
- package/dist/components/core/kanban/SolidSelectionStaticFilterElement.d.ts.map +1 -0
- package/dist/components/core/kanban/SolidVarInputsFilterElement.d.ts +12 -0
- package/dist/components/core/kanban/SolidVarInputsFilterElement.d.ts.map +1 -0
- package/dist/components/core/kanban/columns/SolidBigintColumn.d.ts +4 -0
- package/dist/components/core/kanban/columns/SolidBigintColumn.d.ts.map +1 -0
- package/dist/components/core/kanban/columns/SolidBooleanColumn.d.ts +4 -0
- package/dist/components/core/kanban/columns/SolidBooleanColumn.d.ts.map +1 -0
- package/dist/components/core/kanban/columns/SolidComputedColumn.d.ts +4 -0
- package/dist/components/core/kanban/columns/SolidComputedColumn.d.ts.map +1 -0
- package/dist/components/core/kanban/columns/SolidDateColumn.d.ts +9 -0
- package/dist/components/core/kanban/columns/SolidDateColumn.d.ts.map +1 -0
- package/dist/components/core/kanban/columns/SolidDatetimeColumn.d.ts +4 -0
- package/dist/components/core/kanban/columns/SolidDatetimeColumn.d.ts.map +1 -0
- package/dist/components/core/kanban/columns/SolidDecimalColumn.d.ts +4 -0
- package/dist/components/core/kanban/columns/SolidDecimalColumn.d.ts.map +1 -0
- package/dist/components/core/kanban/columns/SolidExternalIdColumn.d.ts +4 -0
- package/dist/components/core/kanban/columns/SolidExternalIdColumn.d.ts.map +1 -0
- package/dist/components/core/kanban/columns/SolidFloatColumn.d.ts +4 -0
- package/dist/components/core/kanban/columns/SolidFloatColumn.d.ts.map +1 -0
- package/dist/components/core/kanban/columns/SolidIdColumn.d.ts +4 -0
- package/dist/components/core/kanban/columns/SolidIdColumn.d.ts.map +1 -0
- package/dist/components/core/kanban/columns/SolidIntColumn.d.ts +4 -0
- package/dist/components/core/kanban/columns/SolidIntColumn.d.ts.map +1 -0
- package/dist/components/core/kanban/columns/SolidLongTextColumn.d.ts +4 -0
- package/dist/components/core/kanban/columns/SolidLongTextColumn.d.ts.map +1 -0
- package/dist/components/core/kanban/columns/SolidMediaMultipleColumn.d.ts +4 -0
- package/dist/components/core/kanban/columns/SolidMediaMultipleColumn.d.ts.map +1 -0
- package/dist/components/core/kanban/columns/SolidMediaSingleColumn.d.ts +4 -0
- package/dist/components/core/kanban/columns/SolidMediaSingleColumn.d.ts.map +1 -0
- package/dist/components/core/kanban/columns/SolidRelationColumn.d.ts +4 -0
- package/dist/components/core/kanban/columns/SolidRelationColumn.d.ts.map +1 -0
- package/dist/components/core/kanban/columns/SolidRichTextColumn.d.ts +4 -0
- package/dist/components/core/kanban/columns/SolidRichTextColumn.d.ts.map +1 -0
- package/dist/components/core/kanban/columns/SolidSelectionDynamicColumn.d.ts +4 -0
- package/dist/components/core/kanban/columns/SolidSelectionDynamicColumn.d.ts.map +1 -0
- package/dist/components/core/kanban/columns/SolidSelectionStaticColumn.d.ts +4 -0
- package/dist/components/core/kanban/columns/SolidSelectionStaticColumn.d.ts.map +1 -0
- package/dist/components/core/kanban/columns/SolidShortTextColumn.d.ts +4 -0
- package/dist/components/core/kanban/columns/SolidShortTextColumn.d.ts.map +1 -0
- package/dist/components/core/kanban/columns/SolidTimeColumn.d.ts +4 -0
- package/dist/components/core/kanban/columns/SolidTimeColumn.d.ts.map +1 -0
- package/dist/components/core/kanban/columns/SolidUuidColumn.d.ts +4 -0
- package/dist/components/core/kanban/columns/SolidUuidColumn.d.ts.map +1 -0
- package/dist/components/core/kanban/columns/relations/SolidRelationManyToOneColumn.d.ts +4 -0
- package/dist/components/core/kanban/columns/relations/SolidRelationManyToOneColumn.d.ts.map +1 -0
- package/dist/components/core/list/SolidListView.d.ts +12 -0
- package/dist/components/core/list/SolidListView.d.ts.map +1 -0
- package/dist/components/core/list/SolidListViewColumn.d.ts +8 -0
- package/dist/components/core/list/SolidListViewColumn.d.ts.map +1 -0
- package/dist/components/core/list/SolidListingHeader.d.ts +3 -0
- package/dist/components/core/list/SolidListingHeader.d.ts.map +1 -0
- package/dist/components/core/list/SolidManyToOneFilterElement.d.ts +2 -0
- package/dist/components/core/list/SolidManyToOneFilterElement.d.ts.map +1 -0
- package/dist/components/core/list/SolidSelectionDynamicFilterElement.d.ts +2 -0
- package/dist/components/core/list/SolidSelectionDynamicFilterElement.d.ts.map +1 -0
- package/dist/components/core/list/SolidSelectionStaticFilterElement.d.ts +2 -0
- package/dist/components/core/list/SolidSelectionStaticFilterElement.d.ts.map +1 -0
- package/dist/components/core/list/SolidVarInputsFilterElement.d.ts +12 -0
- package/dist/components/core/list/SolidVarInputsFilterElement.d.ts.map +1 -0
- package/dist/components/core/list/columns/SolidBigintColumn.d.ts +4 -0
- package/dist/components/core/list/columns/SolidBigintColumn.d.ts.map +1 -0
- package/dist/components/core/list/columns/SolidBooleanColumn.d.ts +4 -0
- package/dist/components/core/list/columns/SolidBooleanColumn.d.ts.map +1 -0
- package/dist/components/core/list/columns/SolidComputedColumn.d.ts +4 -0
- package/dist/components/core/list/columns/SolidComputedColumn.d.ts.map +1 -0
- package/dist/components/core/list/columns/SolidDateColumn.d.ts +9 -0
- package/dist/components/core/list/columns/SolidDateColumn.d.ts.map +1 -0
- package/dist/components/core/list/columns/SolidDatetimeColumn.d.ts +4 -0
- package/dist/components/core/list/columns/SolidDatetimeColumn.d.ts.map +1 -0
- package/dist/components/core/list/columns/SolidDecimalColumn.d.ts +4 -0
- package/dist/components/core/list/columns/SolidDecimalColumn.d.ts.map +1 -0
- package/dist/components/core/list/columns/SolidExternalIdColumn.d.ts +4 -0
- package/dist/components/core/list/columns/SolidExternalIdColumn.d.ts.map +1 -0
- package/dist/components/core/list/columns/SolidFloatColumn.d.ts +4 -0
- package/dist/components/core/list/columns/SolidFloatColumn.d.ts.map +1 -0
- package/dist/components/core/list/columns/SolidIdColumn.d.ts +4 -0
- package/dist/components/core/list/columns/SolidIdColumn.d.ts.map +1 -0
- package/dist/components/core/list/columns/SolidIntColumn.d.ts +4 -0
- package/dist/components/core/list/columns/SolidIntColumn.d.ts.map +1 -0
- package/dist/components/core/list/columns/SolidLongTextColumn.d.ts +4 -0
- package/dist/components/core/list/columns/SolidLongTextColumn.d.ts.map +1 -0
- package/dist/components/core/list/columns/SolidMediaMultipleColumn.d.ts +4 -0
- package/dist/components/core/list/columns/SolidMediaMultipleColumn.d.ts.map +1 -0
- package/dist/components/core/list/columns/SolidMediaSingleColumn.d.ts +4 -0
- package/dist/components/core/list/columns/SolidMediaSingleColumn.d.ts.map +1 -0
- package/dist/components/core/list/columns/SolidRelationColumn.d.ts +4 -0
- package/dist/components/core/list/columns/SolidRelationColumn.d.ts.map +1 -0
- package/dist/components/core/list/columns/SolidRichTextColumn.d.ts +4 -0
- package/dist/components/core/list/columns/SolidRichTextColumn.d.ts.map +1 -0
- package/dist/components/core/list/columns/SolidSelectionDynamicColumn.d.ts +4 -0
- package/dist/components/core/list/columns/SolidSelectionDynamicColumn.d.ts.map +1 -0
- package/dist/components/core/list/columns/SolidSelectionStaticColumn.d.ts +4 -0
- package/dist/components/core/list/columns/SolidSelectionStaticColumn.d.ts.map +1 -0
- package/dist/components/core/list/columns/SolidShortTextColumn.d.ts +4 -0
- package/dist/components/core/list/columns/SolidShortTextColumn.d.ts.map +1 -0
- package/dist/components/core/list/columns/SolidTimeColumn.d.ts +4 -0
- package/dist/components/core/list/columns/SolidTimeColumn.d.ts.map +1 -0
- package/dist/components/core/list/columns/SolidUuidColumn.d.ts +4 -0
- package/dist/components/core/list/columns/SolidUuidColumn.d.ts.map +1 -0
- package/dist/components/core/list/columns/relations/SolidRelationManyToOneColumn.d.ts +4 -0
- package/dist/components/core/list/columns/relations/SolidRelationManyToOneColumn.d.ts.map +1 -0
- package/dist/components/core/model/CreateModel.d.ts +3 -0
- package/dist/components/core/model/CreateModel.d.ts.map +1 -0
- package/dist/components/core/model/FieldMetaData.d.ts +3 -0
- package/dist/components/core/model/FieldMetaData.d.ts.map +1 -0
- package/dist/components/core/model/FieldMetaDataForm.d.ts +3 -0
- package/dist/components/core/model/FieldMetaDataForm.d.ts.map +1 -0
- package/dist/components/core/model/FieldSelector.d.ts +3 -0
- package/dist/components/core/model/FieldSelector.d.ts.map +1 -0
- package/dist/components/core/model/ModelListViewData.d.ts +8 -0
- package/dist/components/core/model/ModelListViewData.d.ts.map +1 -0
- package/dist/components/core/model/ModelMetaData.d.ts +4 -0
- package/dist/components/core/model/ModelMetaData.d.ts.map +1 -0
- package/dist/components/core/module/CreateModule.d.ts +3 -0
- package/dist/components/core/module/CreateModule.d.ts.map +1 -0
- package/dist/components/core/module/ModuleListViewData.d.ts +7 -0
- package/dist/components/core/module/ModuleListViewData.d.ts.map +1 -0
- package/dist/components/core/users/CreateUser.d.ts +3 -0
- package/dist/components/core/users/CreateUser.d.ts.map +1 -0
- package/dist/components/core/users/CreateUserRole.d.ts +3 -0
- package/dist/components/core/users/CreateUserRole.d.ts.map +1 -0
- package/dist/components/core/users/UserListView.d.ts +2 -0
- package/dist/components/core/users/UserListView.d.ts.map +1 -0
- package/dist/components/layout/AdminSidebar.d.ts +3 -0
- package/dist/components/layout/AdminSidebar.d.ts.map +1 -0
- package/dist/components/layout/ButtonLoader.d.ts +3 -0
- package/dist/components/layout/ButtonLoader.d.ts.map +1 -0
- package/dist/components/layout/CustomPagination.d.ts +7 -0
- package/dist/components/layout/CustomPagination.d.ts.map +1 -0
- package/dist/components/layout/DashboardHeader.d.ts +3 -0
- package/dist/components/layout/DashboardHeader.d.ts.map +1 -0
- package/dist/components/layout/FilterMenu.d.ts +3 -0
- package/dist/components/layout/FilterMenu.d.ts.map +1 -0
- package/dist/components/layout/Footer.d.ts +3 -0
- package/dist/components/layout/Footer.d.ts.map +1 -0
- package/dist/components/layout/GlobalSearch.d.ts +2 -0
- package/dist/components/layout/GlobalSearch.d.ts.map +1 -0
- package/dist/components/layout/Header.d.ts +3 -0
- package/dist/components/layout/Header.d.ts.map +1 -0
- package/dist/components/layout/ListingHeader.d.ts +3 -0
- package/dist/components/layout/ListingHeader.d.ts.map +1 -0
- package/dist/components/layout/Loader.d.ts +3 -0
- package/dist/components/layout/Loader.d.ts.map +1 -0
- package/dist/components/layout/UserSidebar.d.ts +3 -0
- package/dist/components/layout/UserSidebar.d.ts.map +1 -0
- package/dist/components/layout/navbar-one.d.ts +3 -0
- package/dist/components/layout/navbar-one.d.ts.map +1 -0
- package/dist/components/layout/navbar-two-menu.d.ts +3 -0
- package/dist/components/layout/navbar-two-menu.d.ts.map +1 -0
- package/dist/components/layout/navbar-two.d.ts +3 -0
- package/dist/components/layout/navbar-two.d.ts.map +1 -0
- package/dist/components/layout/user-profile-menu.d.ts +3 -0
- package/dist/components/layout/user-profile-menu.d.ts.map +1 -0
- package/dist/components/layout/user-profile.d.ts +3 -0
- package/dist/components/layout/user-profile.d.ts.map +1 -0
- package/dist/components/modelsComponents/filterIcon.d.ts +2 -0
- package/dist/components/modelsComponents/filterIcon.d.ts.map +1 -0
- package/dist/components/tables/DemoData.d.ts +23 -0
- package/dist/components/tables/DemoData.d.ts.map +1 -0
- package/dist/components/tables/DynamicTable.d.ts +6 -0
- package/dist/components/tables/DynamicTable.d.ts.map +1 -0
- package/dist/components/tables/ListViewTable.d.ts +12 -0
- package/dist/components/tables/ListViewTable.d.ts.map +1 -0
- package/dist/helpers/ToastContainer.d.ts +4 -0
- package/dist/helpers/ToastContainer.d.ts.map +1 -0
- package/dist/helpers/authHeader.d.ts +7 -0
- package/dist/helpers/authHeader.d.ts.map +1 -0
- package/dist/helpers/countries.d.ts +6 -0
- package/dist/helpers/countries.d.ts.map +1 -0
- package/dist/helpers/helpers.d.ts +10 -0
- package/dist/helpers/helpers.d.ts.map +1 -0
- package/dist/helpers/menu.d.ts +35 -0
- package/dist/helpers/menu.d.ts.map +1 -0
- package/dist/helpers/permissions.d.ts +4 -0
- package/dist/helpers/permissions.d.ts.map +1 -0
- package/dist/helpers/revalidate.d.ts +2 -0
- package/dist/helpers/revalidate.d.ts.map +1 -0
- package/dist/index.d.ts +182 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +45552 -0
- package/dist/index.js.map +1 -0
- package/dist/redux/api/articleApi.d.ts +19 -0
- package/dist/redux/api/articleApi.d.ts.map +1 -0
- package/dist/redux/api/authApi.d.ts +9 -0
- package/dist/redux/api/authApi.d.ts.map +1 -0
- package/dist/redux/api/automationApi.d.ts +19 -0
- package/dist/redux/api/automationApi.d.ts.map +1 -0
- package/dist/redux/api/categoryApi.d.ts +10 -0
- package/dist/redux/api/categoryApi.d.ts.map +1 -0
- package/dist/redux/api/cityApi.d.ts +36 -0
- package/dist/redux/api/cityApi.d.ts.map +1 -0
- package/dist/redux/api/cmsBannerImageApi.d.ts +19 -0
- package/dist/redux/api/cmsBannerImageApi.d.ts.map +1 -0
- package/dist/redux/api/countryApi.d.ts +39 -0
- package/dist/redux/api/countryApi.d.ts.map +1 -0
- package/dist/redux/api/fetchBaseQuery.d.ts +2 -0
- package/dist/redux/api/fetchBaseQuery.d.ts.map +1 -0
- package/dist/redux/api/fieldApi.d.ts +20 -0
- package/dist/redux/api/fieldApi.d.ts.map +1 -0
- package/dist/redux/api/mediaApi.d.ts +19 -0
- package/dist/redux/api/mediaApi.d.ts.map +1 -0
- package/dist/redux/api/mediaStorageProviderApi.d.ts +19 -0
- package/dist/redux/api/mediaStorageProviderApi.d.ts.map +1 -0
- package/dist/redux/api/menuApi.d.ts +19 -0
- package/dist/redux/api/menuApi.d.ts.map +1 -0
- package/dist/redux/api/menuItemsApi.d.ts +19 -0
- package/dist/redux/api/menuItemsApi.d.ts.map +1 -0
- package/dist/redux/api/modelApi.d.ts +20 -0
- package/dist/redux/api/modelApi.d.ts.map +1 -0
- package/dist/redux/api/moduleApi.d.ts +22 -0
- package/dist/redux/api/moduleApi.d.ts.map +1 -0
- package/dist/redux/api/orderAttributeApi.d.ts +8 -0
- package/dist/redux/api/orderAttributeApi.d.ts.map +1 -0
- package/dist/redux/api/permissionApi.d.ts +15 -0
- package/dist/redux/api/permissionApi.d.ts.map +1 -0
- package/dist/redux/api/pincodeApi.d.ts +36 -0
- package/dist/redux/api/pincodeApi.d.ts.map +1 -0
- package/dist/redux/api/productData.d.ts +51 -0
- package/dist/redux/api/productData.d.ts.map +1 -0
- package/dist/redux/api/radixExtraModelAttributeApi.d.ts +8 -0
- package/dist/redux/api/radixExtraModelAttributeApi.d.ts.map +1 -0
- package/dist/redux/api/radixModelMetadataApi.d.ts +20 -0
- package/dist/redux/api/radixModelMetadataApi.d.ts.map +1 -0
- package/dist/redux/api/radixModelsApi.d.ts +13 -0
- package/dist/redux/api/radixModelsApi.d.ts.map +1 -0
- package/dist/redux/api/ratingApi.d.ts +19 -0
- package/dist/redux/api/ratingApi.d.ts.map +1 -0
- package/dist/redux/api/reviewApi.d.ts +19 -0
- package/dist/redux/api/reviewApi.d.ts.map +1 -0
- package/dist/redux/api/roleApi.d.ts +10 -0
- package/dist/redux/api/roleApi.d.ts.map +1 -0
- package/dist/redux/api/solidActionApi.d.ts +19 -0
- package/dist/redux/api/solidActionApi.d.ts.map +1 -0
- package/dist/redux/api/solidEntityApi.d.ts +18 -0
- package/dist/redux/api/solidEntityApi.d.ts.map +1 -0
- package/dist/redux/api/solidMenuApi.d.ts +20 -0
- package/dist/redux/api/solidMenuApi.d.ts.map +1 -0
- package/dist/redux/api/solidViewApi.d.ts +20 -0
- package/dist/redux/api/solidViewApi.d.ts.map +1 -0
- package/dist/redux/api/stateApi.d.ts +36 -0
- package/dist/redux/api/stateApi.d.ts.map +1 -0
- package/dist/redux/api/tagApi.d.ts +19 -0
- package/dist/redux/api/tagApi.d.ts.map +1 -0
- package/dist/redux/api/tagGroupApi.d.ts +19 -0
- package/dist/redux/api/tagGroupApi.d.ts.map +1 -0
- package/dist/redux/api/userApi.d.ts +17 -0
- package/dist/redux/api/userApi.d.ts.map +1 -0
- package/dist/redux/features/authSlice.d.ts +6 -0
- package/dist/redux/features/authSlice.d.ts.map +1 -0
- package/dist/redux/features/dataViewSlice.d.ts +7 -0
- package/dist/redux/features/dataViewSlice.d.ts.map +1 -0
- package/dist/redux/features/navbarSlice.d.ts +6 -0
- package/dist/redux/features/navbarSlice.d.ts.map +1 -0
- package/dist/redux/features/popupSlice.d.ts +7 -0
- package/dist/redux/features/popupSlice.d.ts.map +1 -0
- package/dist/redux/features/themeSlice.d.ts +6 -0
- package/dist/redux/features/themeSlice.d.ts.map +1 -0
- package/dist/redux/features/userSlice.d.ts +13 -0
- package/dist/redux/features/userSlice.d.ts.map +1 -0
- package/dist/redux/hooks.d.ts +2 -0
- package/dist/redux/hooks.d.ts.map +1 -0
- package/dist/redux/store.d.ts +375 -0
- package/dist/redux/store.d.ts.map +1 -0
- package/package.json +114 -0
- package/rollup.config.mjs +45 -0
- package/solidstarters-solid-core-ui-0.1.24.tgz +0 -0
- package/src/components/CustomFooter/CustomFooter.tsx +263 -0
- package/src/components/CustomFooter/FooterForm.tsx +18 -0
- package/src/components/CustomHeader/CallIcon.tsx +19 -0
- package/src/components/CustomHeader/CustomDropdown.tsx +175 -0
- package/src/components/CustomHeader/CustomHeader.tsx +64 -0
- package/src/components/CustomHeader/EmailIcon.tsx +11 -0
- package/src/components/CustomHeader/HeaderCart.tsx +14 -0
- package/src/components/CustomHeader/productNavData.tsx +179 -0
- package/src/components/FormView/DetailsViews.tsx +46 -0
- package/src/components/FormView/OrderAddressDetails.tsx +69 -0
- package/src/components/FormView/OrderPaymentDetails.tsx +17 -0
- package/src/components/FormView/OrderTableDetails.tsx +35 -0
- package/src/components/FormView/OrderedProductDetail.tsx +21 -0
- package/src/components/Tag/CustomTag.tsx +49 -0
- package/src/components/auth/Login.tsx +155 -0
- package/src/components/auth/Register.tsx +239 -0
- package/src/components/common/AuthBanner.tsx +40 -0
- package/src/components/common/AutoCompleteField.tsx +74 -0
- package/src/components/common/CancelButton.tsx +42 -0
- package/src/components/common/CodeEditor.tsx +24 -0
- package/src/components/common/CreateButton.tsx +16 -0
- package/src/components/common/DropzonePlaceholder.tsx +9 -0
- package/src/components/common/DropzoneUpload.tsx +9 -0
- package/src/components/common/FilterComponent.tsx +427 -0
- package/src/components/common/HeaderDynamicTitles.tsx +11 -0
- package/src/components/common/MarkdownViewer.tsx +14 -0
- package/src/components/common/MultipleSelectAutoCompleteField.tsx +61 -0
- package/src/components/common/SingleSelectAutoCompleteField.tsx +64 -0
- package/src/components/common/SocialMediaLogin.tsx +44 -0
- package/src/components/core/common/SolidConfigureLayoutElement.tsx +24 -0
- package/src/components/core/common/SolidCreateButton.tsx +19 -0
- package/src/components/core/common/SolidGlobalSearchElement.tsx +37 -0
- package/src/components/core/common/SolidSearchBox.tsx +17 -0
- package/src/components/core/field/FieldListViewData.tsx +312 -0
- package/src/components/core/form/SolidFormView.tsx +821 -0
- package/src/components/core/form/fields/ISolidField.tsx +64 -0
- package/src/components/core/form/fields/SolidBooleanField.tsx +112 -0
- package/src/components/core/form/fields/SolidDateField.tsx +89 -0
- package/src/components/core/form/fields/SolidDateTimeField.tsx +87 -0
- package/src/components/core/form/fields/SolidDecimalField.tsx +85 -0
- package/src/components/core/form/fields/SolidIntegerField.tsx +85 -0
- package/src/components/core/form/fields/SolidJsonField.tsx +79 -0
- package/src/components/core/form/fields/SolidLongTextField.tsx +99 -0
- package/src/components/core/form/fields/SolidMediaMultipleField.tsx +246 -0
- package/src/components/core/form/fields/SolidMediaSingleField.tsx +227 -0
- package/src/components/core/form/fields/SolidRelationField.tsx +53 -0
- package/src/components/core/form/fields/SolidRichTextField.tsx +97 -0
- package/src/components/core/form/fields/SolidSelectionDynamicField.tsx +122 -0
- package/src/components/core/form/fields/SolidSelectionStaticField.tsx +117 -0
- package/src/components/core/form/fields/SolidShortTextField.tsx +99 -0
- package/src/components/core/form/fields/SolidTimeField.tsx +87 -0
- package/src/components/core/form/fields/relations/SolidRelationManyToManyField.tsx +435 -0
- package/src/components/core/form/fields/relations/SolidRelationManyToOneField.tsx +137 -0
- package/src/components/core/form/fields/relations/SolidRelationOneToManyField.tsx +184 -0
- package/src/components/core/kanban/KanbanBoard.tsx +116 -0
- package/src/components/core/kanban/KanbanCard.tsx +159 -0
- package/src/components/core/kanban/KanbanColumn.tsx +124 -0
- package/src/components/core/kanban/SolidKanbanFilter.tsx +104 -0
- package/src/components/core/kanban/SolidKanbanView.tsx +660 -0
- package/src/components/core/kanban/SolidKanbanViewSearchColumn.tsx +131 -0
- package/src/components/core/kanban/SolidManyToOneFilterElement.tsx +56 -0
- package/src/components/core/kanban/SolidSelectionDynamicFilterElement.tsx +49 -0
- package/src/components/core/kanban/SolidSelectionStaticFilterElement.tsx +31 -0
- package/src/components/core/kanban/SolidVarInputsFilterElement.tsx +183 -0
- package/src/components/core/kanban/columns/SolidBigintColumn.tsx +8 -0
- package/src/components/core/kanban/columns/SolidBooleanColumn.tsx +49 -0
- package/src/components/core/kanban/columns/SolidComputedColumn.tsx +22 -0
- package/src/components/core/kanban/columns/SolidDateColumn.tsx +58 -0
- package/src/components/core/kanban/columns/SolidDatetimeColumn.tsx +45 -0
- package/src/components/core/kanban/columns/SolidDecimalColumn.tsx +8 -0
- package/src/components/core/kanban/columns/SolidExternalIdColumn.tsx +46 -0
- package/src/components/core/kanban/columns/SolidFloatColumn.tsx +8 -0
- package/src/components/core/kanban/columns/SolidIdColumn.tsx +46 -0
- package/src/components/core/kanban/columns/SolidIntColumn.tsx +56 -0
- package/src/components/core/kanban/columns/SolidLongTextColumn.tsx +8 -0
- package/src/components/core/kanban/columns/SolidMediaMultipleColumn.tsx +54 -0
- package/src/components/core/kanban/columns/SolidMediaSingleColumn.tsx +56 -0
- package/src/components/core/kanban/columns/SolidRelationColumn.tsx +12 -0
- package/src/components/core/kanban/columns/SolidRichTextColumn.tsx +8 -0
- package/src/components/core/kanban/columns/SolidSelectionDynamicColumn.tsx +46 -0
- package/src/components/core/kanban/columns/SolidSelectionStaticColumn.tsx +47 -0
- package/src/components/core/kanban/columns/SolidShortTextColumn.tsx +53 -0
- package/src/components/core/kanban/columns/SolidTimeColumn.tsx +42 -0
- package/src/components/core/kanban/columns/SolidUuidColumn.tsx +44 -0
- package/src/components/core/kanban/columns/relations/SolidRelationManyToOneColumn.tsx +79 -0
- package/src/components/core/list/SolidListView.tsx +569 -0
- package/src/components/core/list/SolidListViewColumn.tsx +161 -0
- package/src/components/core/list/SolidListingHeader.tsx +41 -0
- package/src/components/core/list/SolidManyToOneFilterElement.tsx +56 -0
- package/src/components/core/list/SolidSelectionDynamicFilterElement.tsx +49 -0
- package/src/components/core/list/SolidSelectionStaticFilterElement.tsx +31 -0
- package/src/components/core/list/SolidVarInputsFilterElement.tsx +183 -0
- package/src/components/core/list/columns/SolidBigintColumn.tsx +8 -0
- package/src/components/core/list/columns/SolidBooleanColumn.tsx +60 -0
- package/src/components/core/list/columns/SolidComputedColumn.tsx +22 -0
- package/src/components/core/list/columns/SolidDateColumn.tsx +63 -0
- package/src/components/core/list/columns/SolidDatetimeColumn.tsx +51 -0
- package/src/components/core/list/columns/SolidDecimalColumn.tsx +8 -0
- package/src/components/core/list/columns/SolidExternalIdColumn.tsx +51 -0
- package/src/components/core/list/columns/SolidFloatColumn.tsx +8 -0
- package/src/components/core/list/columns/SolidIdColumn.tsx +52 -0
- package/src/components/core/list/columns/SolidIntColumn.tsx +60 -0
- package/src/components/core/list/columns/SolidLongTextColumn.tsx +8 -0
- package/src/components/core/list/columns/SolidMediaMultipleColumn.tsx +29 -0
- package/src/components/core/list/columns/SolidMediaSingleColumn.tsx +29 -0
- package/src/components/core/list/columns/SolidRelationColumn.tsx +12 -0
- package/src/components/core/list/columns/SolidRichTextColumn.tsx +8 -0
- package/src/components/core/list/columns/SolidSelectionDynamicColumn.tsx +52 -0
- package/src/components/core/list/columns/SolidSelectionStaticColumn.tsx +53 -0
- package/src/components/core/list/columns/SolidShortTextColumn.tsx +60 -0
- package/src/components/core/list/columns/SolidTimeColumn.tsx +51 -0
- package/src/components/core/list/columns/SolidUuidColumn.tsx +51 -0
- package/src/components/core/list/columns/relations/SolidRelationManyToOneColumn.tsx +70 -0
- package/src/components/core/model/CreateModel.tsx +340 -0
- package/src/components/core/model/FieldMetaData.tsx +148 -0
- package/src/components/core/model/FieldMetaDataForm.tsx +2877 -0
- package/src/components/core/model/FieldSelector.tsx +67 -0
- package/src/components/core/model/ModelListViewData.tsx +383 -0
- package/src/components/core/model/ModelMetaData.tsx +777 -0
- package/src/components/core/module/CreateModule.tsx +577 -0
- package/src/components/core/module/ModuleListViewData.tsx +429 -0
- package/src/components/core/users/CreateUser.tsx +415 -0
- package/src/components/core/users/CreateUserRole.tsx +209 -0
- package/src/components/core/users/UserListView.tsx +374 -0
- package/src/components/layout/AdminSidebar.tsx +65 -0
- package/src/components/layout/ButtonLoader.tsx +7 -0
- package/src/components/layout/CustomPagination.tsx +55 -0
- package/src/components/layout/DashboardHeader.tsx +88 -0
- package/src/components/layout/FilterMenu.tsx +122 -0
- package/src/components/layout/Footer.tsx +12 -0
- package/src/components/layout/GlobalSearch.tsx +36 -0
- package/src/components/layout/Header.tsx +8 -0
- package/src/components/layout/ListingHeader.tsx +203 -0
- package/src/components/layout/Loader.tsx +15 -0
- package/src/components/layout/UserSidebar.tsx +53 -0
- package/src/components/layout/navbar-one.tsx +258 -0
- package/src/components/layout/navbar-two-menu.tsx +64 -0
- package/src/components/layout/navbar-two.tsx +36 -0
- package/src/components/layout/user-profile-menu.tsx +214 -0
- package/src/components/layout/user-profile.tsx +6 -0
- package/src/components/modelsComponents/filterIcon.tsx +9 -0
- package/src/components/tables/DemoData.tsx +317 -0
- package/src/components/tables/DynamicTable.tsx +56 -0
- package/src/components/tables/ListViewTable.tsx +155 -0
- package/src/helpers/ToastContainer.tsx +92 -0
- package/src/helpers/authHeader.ts +19 -0
- package/src/helpers/countries.tsx +259 -0
- package/src/helpers/helpers.ts +39 -0
- package/src/helpers/menu.tsx +670 -0
- package/src/helpers/permissions.ts +15 -0
- package/src/helpers/revalidate.ts +6 -0
- package/src/index.ts +630 -0
- package/src/redux/api/articleApi.ts +55 -0
- package/src/redux/api/authApi.ts +60 -0
- package/src/redux/api/automationApi.ts +55 -0
- package/src/redux/api/categoryApi.tsx +46 -0
- package/src/redux/api/cityApi.tsx +56 -0
- package/src/redux/api/cmsBannerImageApi.tsx +55 -0
- package/src/redux/api/countryApi.tsx +56 -0
- package/src/redux/api/fetchBaseQuery.tsx +15 -0
- package/src/redux/api/fieldApi.ts +78 -0
- package/src/redux/api/mediaApi.ts +55 -0
- package/src/redux/api/mediaStorageProviderApi.ts +55 -0
- package/src/redux/api/menuApi.tsx +55 -0
- package/src/redux/api/menuItemsApi.tsx +56 -0
- package/src/redux/api/modelApi.ts +70 -0
- package/src/redux/api/moduleApi.ts +72 -0
- package/src/redux/api/orderAttributeApi.tsx +37 -0
- package/src/redux/api/permissionApi.ts +32 -0
- package/src/redux/api/pincodeApi.tsx +56 -0
- package/src/redux/api/productData.tsx +87 -0
- package/src/redux/api/radixExtraModelAttributeApi.tsx +37 -0
- package/src/redux/api/radixModelMetadataApi.tsx +62 -0
- package/src/redux/api/radixModelsApi.tsx +64 -0
- package/src/redux/api/ratingApi.ts +55 -0
- package/src/redux/api/reviewApi.ts +55 -0
- package/src/redux/api/roleApi.ts +58 -0
- package/src/redux/api/solidActionApi.ts +66 -0
- package/src/redux/api/solidEntityApi.tsx +86 -0
- package/src/redux/api/solidMenuApi.ts +71 -0
- package/src/redux/api/solidViewApi.ts +72 -0
- package/src/redux/api/stateApi.tsx +56 -0
- package/src/redux/api/tagApi.ts +55 -0
- package/src/redux/api/tagGroupApi.tsx +55 -0
- package/src/redux/api/userApi.ts +120 -0
- package/src/redux/features/authSlice.ts +19 -0
- package/src/redux/features/dataViewSlice.ts +26 -0
- package/src/redux/features/navbarSlice.ts +21 -0
- package/src/redux/features/popupSlice.ts +27 -0
- package/src/redux/features/themeSlice.ts +17 -0
- package/src/redux/features/userSlice.ts +28 -0
- package/src/types/index.d.ts +7 -0
- package/src/types/next.d.ts +46 -0
- package/tsconfig.json +37 -0
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import SolidBigintColumn from "./columns/SolidBigintColumn";
|
|
3
|
+
import SolidBooleanColumn from "./columns/SolidBooleanColumn";
|
|
4
|
+
import SolidComputedColumn from "./columns/SolidComputedColumn";
|
|
5
|
+
import SolidDateColumn from "./columns/SolidDateColumn";
|
|
6
|
+
import SolidDatetimeColumn from "./columns/SolidDatetimeColumn";
|
|
7
|
+
import SolidDecimalColumn from "./columns/SolidDecimalColumn";
|
|
8
|
+
import SolidExternalIdColumn from "./columns/SolidExternalIdColumn";
|
|
9
|
+
import SolidFloatColumn from "./columns/SolidFloatColumn";
|
|
10
|
+
import SolidIntColumn from "./columns/SolidIntColumn";
|
|
11
|
+
import SolidLongTextColumn from "./columns/SolidLongTextColumn";
|
|
12
|
+
import SolidMediaMultipleColumn from "./columns/SolidMediaMultipleColumn";
|
|
13
|
+
import SolidMediaSingleColumn from "./columns/SolidMediaSingleColumn";
|
|
14
|
+
import SolidRelationColumn from "./columns/SolidRelationColumn";
|
|
15
|
+
import SolidRichTextColumn from "./columns/SolidRichTextColumn";
|
|
16
|
+
import SolidSelectionDynamicColumn from "./columns/SolidSelectionDynamicColumn";
|
|
17
|
+
import SolidSelectionStaticColumn from "./columns/SolidSelectionStaticColumn";
|
|
18
|
+
import SolidShortTextColumn from "./columns/SolidShortTextColumn";
|
|
19
|
+
import SolidTimeColumn from "./columns/SolidTimeColumn";
|
|
20
|
+
import SolidUuidColumn from "./columns/SolidUuidColumn";
|
|
21
|
+
|
|
22
|
+
export type SolidListViewColumnParams = {
|
|
23
|
+
solidListViewMetaData: any;
|
|
24
|
+
fieldMetadata: any,
|
|
25
|
+
column: any
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
export const getNumberOfInputs = (matchMode: any): number | null => {
|
|
29
|
+
if (matchMode.label && matchMode.label === 'Not In') {
|
|
30
|
+
matchMode = 'notIn';
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
switch (matchMode) {
|
|
34
|
+
case 'between':
|
|
35
|
+
return 2;
|
|
36
|
+
case 'in':
|
|
37
|
+
case 'notIn':
|
|
38
|
+
return null;
|
|
39
|
+
case 'startsWith':
|
|
40
|
+
case 'contains':
|
|
41
|
+
case 'notContains':
|
|
42
|
+
case 'endsWith':
|
|
43
|
+
case 'equals':
|
|
44
|
+
case 'notEquals':
|
|
45
|
+
case 'lt':
|
|
46
|
+
case 'lte':
|
|
47
|
+
case 'gt':
|
|
48
|
+
case 'gte':
|
|
49
|
+
return 1;
|
|
50
|
+
default:
|
|
51
|
+
return 1; // Default to single input if no specific match is found
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// // @ts-ignore
|
|
56
|
+
// const components = require.context('./columns', false, /Solid.*Column\.tsx$/);
|
|
57
|
+
|
|
58
|
+
// // Define a function to dynamically load components based on type
|
|
59
|
+
// const loadComponentByType = async (type: string) => {
|
|
60
|
+
// try {
|
|
61
|
+
// const componentName = `./columns/Solid${type.charAt(0).toUpperCase() + type.slice(1)}Column.tsx`;
|
|
62
|
+
// console.log(`Loading component: ${componentName}`);
|
|
63
|
+
|
|
64
|
+
// // Dynamically import the component based on type
|
|
65
|
+
// const componentModule = await import(componentName);
|
|
66
|
+
|
|
67
|
+
// return componentModule.default;
|
|
68
|
+
// } catch (error) {
|
|
69
|
+
// console.error(`Failed to load component for type: ${type}`, error);
|
|
70
|
+
// return null;
|
|
71
|
+
// }
|
|
72
|
+
// };
|
|
73
|
+
|
|
74
|
+
export const SolidListViewColumn = ({ solidListViewMetaData, fieldMetadata, column }: SolidListViewColumnParams) => {
|
|
75
|
+
|
|
76
|
+
// And finally we can implement additional switching logic based on certain special fields.
|
|
77
|
+
if (fieldMetadata.name === 'id') {
|
|
78
|
+
return SolidIntColumn({ solidListViewMetaData, fieldMetadata, column });
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
if (fieldMetadata.type === 'int') {
|
|
82
|
+
return SolidIntColumn({ solidListViewMetaData, fieldMetadata, column });
|
|
83
|
+
}
|
|
84
|
+
if (fieldMetadata.type === 'bigint') {
|
|
85
|
+
return SolidBigintColumn({ solidListViewMetaData, fieldMetadata, column });
|
|
86
|
+
}
|
|
87
|
+
if (fieldMetadata.type === 'float') {
|
|
88
|
+
return SolidFloatColumn({ solidListViewMetaData, fieldMetadata, column });
|
|
89
|
+
}
|
|
90
|
+
if (fieldMetadata.type === 'decimal') {
|
|
91
|
+
return SolidDecimalColumn({ solidListViewMetaData, fieldMetadata, column });
|
|
92
|
+
}
|
|
93
|
+
if (fieldMetadata.type === 'shortText') {
|
|
94
|
+
return SolidShortTextColumn({ solidListViewMetaData, fieldMetadata, column });
|
|
95
|
+
}
|
|
96
|
+
if (fieldMetadata.type === 'longText') {
|
|
97
|
+
return SolidLongTextColumn({ solidListViewMetaData, fieldMetadata, column });
|
|
98
|
+
}
|
|
99
|
+
if (fieldMetadata.type === 'richText') {
|
|
100
|
+
return SolidRichTextColumn({ solidListViewMetaData, fieldMetadata, column });
|
|
101
|
+
}
|
|
102
|
+
if (fieldMetadata.type === 'boolean') {
|
|
103
|
+
return SolidBooleanColumn({ solidListViewMetaData, fieldMetadata, column });
|
|
104
|
+
}
|
|
105
|
+
if (fieldMetadata.type === 'date') {
|
|
106
|
+
return SolidDateColumn({ solidListViewMetaData, fieldMetadata, column });
|
|
107
|
+
}
|
|
108
|
+
if (fieldMetadata.type === 'datetime') {
|
|
109
|
+
return SolidDatetimeColumn({ solidListViewMetaData, fieldMetadata, column });
|
|
110
|
+
}
|
|
111
|
+
if (fieldMetadata.type === 'time') {
|
|
112
|
+
return SolidTimeColumn({ solidListViewMetaData, fieldMetadata, column });
|
|
113
|
+
}
|
|
114
|
+
if (fieldMetadata.type === 'relation') {
|
|
115
|
+
return SolidRelationColumn({ solidListViewMetaData, fieldMetadata, column });
|
|
116
|
+
}
|
|
117
|
+
if (fieldMetadata.type === 'mediaSingle') {
|
|
118
|
+
return SolidMediaSingleColumn({ solidListViewMetaData, fieldMetadata, column });
|
|
119
|
+
}
|
|
120
|
+
if (fieldMetadata.type === 'mediaMultiple') {
|
|
121
|
+
return SolidMediaMultipleColumn({ solidListViewMetaData, fieldMetadata, column });
|
|
122
|
+
}
|
|
123
|
+
if (fieldMetadata.type === 'selectionStatic') {
|
|
124
|
+
return SolidSelectionStaticColumn({ solidListViewMetaData, fieldMetadata, column });
|
|
125
|
+
}
|
|
126
|
+
if (fieldMetadata.type === 'selectionDynamic') {
|
|
127
|
+
return SolidSelectionDynamicColumn({ solidListViewMetaData, fieldMetadata, column });
|
|
128
|
+
}
|
|
129
|
+
if (fieldMetadata.type === 'computed') {
|
|
130
|
+
return SolidComputedColumn({ solidListViewMetaData, fieldMetadata, column });
|
|
131
|
+
}
|
|
132
|
+
if (fieldMetadata.type === 'externalId') {
|
|
133
|
+
return SolidExternalIdColumn({ solidListViewMetaData, fieldMetadata, column });
|
|
134
|
+
}
|
|
135
|
+
if (fieldMetadata.type === 'uuid') {
|
|
136
|
+
return SolidUuidColumn({ solidListViewMetaData, fieldMetadata, column });
|
|
137
|
+
}
|
|
138
|
+
// // Load everything else based on type and dynamically.
|
|
139
|
+
// else {
|
|
140
|
+
// const ComponentFound = await loadComponentByType(fieldMetadata.type);
|
|
141
|
+
// const ComponentNotFound = ({ solidListViewMetaData, fieldMetadata, column }: SolidListViewColumnParams) => (
|
|
142
|
+
// <Column
|
|
143
|
+
// key={fieldMetadata.name}
|
|
144
|
+
// field={fieldMetadata.name}
|
|
145
|
+
// header={fieldMetadata.displayName}
|
|
146
|
+
// className="text-sm"
|
|
147
|
+
// sortable={false}
|
|
148
|
+
// filter={false}
|
|
149
|
+
// showFilterOperator={false}
|
|
150
|
+
// body={() => (<span>Type not supported</span>)}
|
|
151
|
+
// style={{ minWidth: "12rem" }}
|
|
152
|
+
// headerClassName="table-header-fs"
|
|
153
|
+
// ></Column>
|
|
154
|
+
// );
|
|
155
|
+
|
|
156
|
+
// return ComponentFound ? ComponentFound({ solidListViewMetaData, fieldMetadata, column }) : ComponentNotFound({ solidListViewMetaData, fieldMetadata, column });
|
|
157
|
+
// }
|
|
158
|
+
|
|
159
|
+
// TODO: we can implement additional switching logic based on the widget type being used to render the list view column.
|
|
160
|
+
|
|
161
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { usePathname } from 'next/navigation';
|
|
2
|
+
import { plural } from "pluralize";
|
|
3
|
+
import { } from "react";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
const SolidListingHeader = () => {
|
|
7
|
+
const path = usePathname();
|
|
8
|
+
const getHeading = path.split('/').slice(-2, -1)[0].replace(/-/g, ' ').replace(/\b\w/g, char => char.toUpperCase());
|
|
9
|
+
const pathSegments = path.split('/');
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
return (
|
|
13
|
+
<>
|
|
14
|
+
{pathSegments[pathSegments.length - 1] === "list" &&
|
|
15
|
+
|
|
16
|
+
<div
|
|
17
|
+
className="flex justify-content-between align-items-center px-5 relative lg:static"
|
|
18
|
+
style={{ height: "60px", minHeight: 60, backgroundColor: '#f6f6f9' }}
|
|
19
|
+
>
|
|
20
|
+
<div className="flex align-items-center">
|
|
21
|
+
<div className="">
|
|
22
|
+
<div className='text-xl font-bold'>
|
|
23
|
+
All {plural(getHeading)}
|
|
24
|
+
</div>
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
{/* <GlobalSearch /> */}
|
|
28
|
+
<div className="flex align-items-center">
|
|
29
|
+
<div>
|
|
30
|
+
{/* <FilterMenu></FilterMenu> */}
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
<div className="flex align-items-center">
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
}
|
|
37
|
+
</>
|
|
38
|
+
|
|
39
|
+
);
|
|
40
|
+
};
|
|
41
|
+
export default SolidListingHeader;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { createSolidEntityApi } from "@/redux/api/solidEntityApi";
|
|
2
|
+
import { AutoComplete, AutoCompleteCompleteEvent } from "primereact/autocomplete";
|
|
3
|
+
import qs from "qs";
|
|
4
|
+
import { useState } from "react";
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
export const SolidManyToOneFilterElement = ({ value, updateInputs, index, fieldMetadata }: any) => {
|
|
8
|
+
|
|
9
|
+
const entityApi = createSolidEntityApi(fieldMetadata.relationModelSingularName);
|
|
10
|
+
const { useLazyGetSolidEntitiesQuery } = entityApi;
|
|
11
|
+
const [triggerGetSolidEntities] = useLazyGetSolidEntitiesQuery();
|
|
12
|
+
|
|
13
|
+
const [autoCompleteItems, setAutoCompleteItems] = useState([]);
|
|
14
|
+
const autoCompleteSearch = async (event: AutoCompleteCompleteEvent) => {
|
|
15
|
+
|
|
16
|
+
// Get the list view layout & metadata first.
|
|
17
|
+
const queryData = {
|
|
18
|
+
offset: 0,
|
|
19
|
+
limit: 10,
|
|
20
|
+
filters: {
|
|
21
|
+
[fieldMetadata.relationModel.userKeyField.name]: {
|
|
22
|
+
'$containsi': event.query
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
const autocompleteQs = qs.stringify(queryData, {
|
|
28
|
+
encodeValuesOnly: true,
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
// TODO: do error handling here, possible errors like modelname is incorrect etc...
|
|
32
|
+
const autocompleteResponse = await triggerGetSolidEntities(autocompleteQs);
|
|
33
|
+
|
|
34
|
+
// TODO: if no data found then can we show no matching "entities", where entities can be replaced with the model plural name,
|
|
35
|
+
const autocompleteData = autocompleteResponse.data;
|
|
36
|
+
|
|
37
|
+
if (autocompleteData) {
|
|
38
|
+
const autoCompleteItems = autocompleteData.records.map((item: any) => {
|
|
39
|
+
return {
|
|
40
|
+
label: item[fieldMetadata.relationModel.userKeyField.name],
|
|
41
|
+
value: item['id']
|
|
42
|
+
}
|
|
43
|
+
});
|
|
44
|
+
setAutoCompleteItems(autoCompleteItems);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
return (
|
|
49
|
+
<AutoComplete
|
|
50
|
+
field="label"
|
|
51
|
+
value={value}
|
|
52
|
+
suggestions={autoCompleteItems}
|
|
53
|
+
completeMethod={autoCompleteSearch}
|
|
54
|
+
onChange={(e) => updateInputs(index, e.value)} />
|
|
55
|
+
)
|
|
56
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { AutoComplete, AutoCompleteCompleteEvent } from "primereact/autocomplete";
|
|
2
|
+
import { useState } from "react";
|
|
3
|
+
import qs from "qs";
|
|
4
|
+
import { useLazyGetSelectionDynamicValuesQuery } from "@/redux/api/fieldApi";
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
export const SolidSelectionDynamicFilterElement = ({ value, updateInputs, index, fieldMetadata }: any) => {
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
// selection dynamic specific code.
|
|
11
|
+
const [triggerGetSelectionDynamicValues] = useLazyGetSelectionDynamicValuesQuery();
|
|
12
|
+
const [selectionDynamicItems, setSelectionDynamicItems] = useState([]);
|
|
13
|
+
const selectionDynamicSearch = async (event: AutoCompleteCompleteEvent) => {
|
|
14
|
+
|
|
15
|
+
// Get the list view layout & metadata first.
|
|
16
|
+
const queryData = {
|
|
17
|
+
offset: 0,
|
|
18
|
+
limit: 10,
|
|
19
|
+
query: event.query,
|
|
20
|
+
id: fieldMetadata.id
|
|
21
|
+
};
|
|
22
|
+
|
|
23
|
+
const sdQs = qs.stringify(queryData, {
|
|
24
|
+
encodeValuesOnly: true,
|
|
25
|
+
});
|
|
26
|
+
|
|
27
|
+
// TODO: do error handling here, possible errors like modelname is incorrect etc...
|
|
28
|
+
const sdResponse = await triggerGetSelectionDynamicValues(sdQs);
|
|
29
|
+
|
|
30
|
+
// TODO: if no data found then can we show no matching "entities", where entities can be replaced with the model plural name,
|
|
31
|
+
const sdData = sdResponse.data.data;
|
|
32
|
+
|
|
33
|
+
// @ts-ignore
|
|
34
|
+
setSelectionDynamicItems(sdData);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
return (
|
|
39
|
+
|
|
40
|
+
<AutoComplete
|
|
41
|
+
field="label"
|
|
42
|
+
value={value}
|
|
43
|
+
dropdown
|
|
44
|
+
className="w-full small-input"
|
|
45
|
+
suggestions={selectionDynamicItems}
|
|
46
|
+
completeMethod={selectionDynamicSearch}
|
|
47
|
+
onChange={(e) => updateInputs(index, e.value)} />
|
|
48
|
+
)
|
|
49
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { AutoComplete, AutoCompleteCompleteEvent } from "primereact/autocomplete";
|
|
2
|
+
import { useState } from "react";
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export const SolidSelectionStaticFilterElement = ({ value, updateInputs, index, fieldMetadata }: any) => {
|
|
6
|
+
|
|
7
|
+
// selection dynamic specific code.
|
|
8
|
+
const [selectionStaticItems, setSelectionStaticItems] = useState([]);
|
|
9
|
+
const selectionStaticSearch = (event: AutoCompleteCompleteEvent) => {
|
|
10
|
+
const selectionStaticData = fieldMetadata.selectionStaticValues.map((i: string) => {
|
|
11
|
+
return {
|
|
12
|
+
label: i.split(":")[1],
|
|
13
|
+
value: i.split(":")[0]
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
const suggestionData = selectionStaticData.filter((t: any) => t.value.toLowerCase().startsWith(event.query.toLowerCase()));
|
|
17
|
+
setSelectionStaticItems(suggestionData)
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
return (
|
|
21
|
+
|
|
22
|
+
<AutoComplete
|
|
23
|
+
field="label"
|
|
24
|
+
value={value}
|
|
25
|
+
dropdown
|
|
26
|
+
className="w-full small-input"
|
|
27
|
+
suggestions={selectionStaticItems}
|
|
28
|
+
completeMethod={selectionStaticSearch}
|
|
29
|
+
onChange={(e) => updateInputs(index, e.value)} />
|
|
30
|
+
)
|
|
31
|
+
}
|
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
import { Button } from "primereact/button"
|
|
2
|
+
import { Calendar } from "primereact/calendar";
|
|
3
|
+
import { InputNumber } from "primereact/inputnumber";
|
|
4
|
+
import { InputText } from "primereact/inputtext"
|
|
5
|
+
import { useEffect, useState } from "react";
|
|
6
|
+
import { SolidManyToOneFilterElement } from "./SolidManyToOneFilterElement";
|
|
7
|
+
import { SolidSelectionStaticFilterElement } from "./SolidSelectionStaticFilterElement";
|
|
8
|
+
import { SolidSelectionDynamicFilterElement } from "./SolidSelectionDynamicFilterElement";
|
|
9
|
+
|
|
10
|
+
export enum InputTypes {
|
|
11
|
+
Date = 'Date',
|
|
12
|
+
DateTime = 'DateTime',
|
|
13
|
+
Time = 'Time',
|
|
14
|
+
Numeric = 'Numeric',
|
|
15
|
+
Text = 'Text',
|
|
16
|
+
SelectionStatic = 'SelectionStatic',
|
|
17
|
+
RelationManyToOne = 'RelationManyToOne',
|
|
18
|
+
SelectionDynamic = 'SelectionDynamic'
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
// Based on numberOfInputs map the input filed and hide add and delete
|
|
23
|
+
export const SolidVarInputsFilterElement = ({ values, onChange, inputType = InputTypes.Text, numberOfInputs = null, solidListViewMetaData, fieldMetadata }: any) => {
|
|
24
|
+
|
|
25
|
+
if (!values) {
|
|
26
|
+
values = numberOfInputs && numberOfInputs > 0 ? Array(numberOfInputs).fill('') : [''];
|
|
27
|
+
// values = [''];
|
|
28
|
+
} else {
|
|
29
|
+
if (values[0] == '') {
|
|
30
|
+
values = numberOfInputs && numberOfInputs > 0 ? Array(numberOfInputs).fill('') : [''];
|
|
31
|
+
} else {
|
|
32
|
+
|
|
33
|
+
values = values
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
// TODO: Ideally values will be an array, so we can spread them here instead of making a nested array.
|
|
40
|
+
const [inputs, setInputs] = useState([...values]);
|
|
41
|
+
useEffect(() => {
|
|
42
|
+
setInputs([...values])
|
|
43
|
+
}, [numberOfInputs])
|
|
44
|
+
|
|
45
|
+
const updateInputs = (index: number, value: any) => {
|
|
46
|
+
const updatedSpecification = inputs.map((item, i) =>
|
|
47
|
+
i === index ? value : item
|
|
48
|
+
);
|
|
49
|
+
setInputs(updatedSpecification);
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
const addInput = () => {
|
|
53
|
+
setInputs([...inputs, '']);
|
|
54
|
+
};
|
|
55
|
+
|
|
56
|
+
const deleteInput = (index: number) => {
|
|
57
|
+
if (inputs.length > 1) {
|
|
58
|
+
const updatedRows = inputs.filter((_, rowIndex) => rowIndex !== index);
|
|
59
|
+
setInputs(updatedRows);
|
|
60
|
+
|
|
61
|
+
} else {
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
|
|
65
|
+
useEffect(() => {
|
|
66
|
+
onChange(inputs)
|
|
67
|
+
}, [inputs])
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
return (
|
|
72
|
+
<div className="grid formgrid">
|
|
73
|
+
<div className="col-12">
|
|
74
|
+
<div className="flex flex-column gap-2">
|
|
75
|
+
{inputs && inputs.map((value: any, index: number) => (
|
|
76
|
+
|
|
77
|
+
<div key={index} className="flex align-items-center gap-2">
|
|
78
|
+
|
|
79
|
+
{inputType === InputTypes.Text &&
|
|
80
|
+
<InputText
|
|
81
|
+
value={value}
|
|
82
|
+
onChange={(e) => updateInputs(index, e.target.value)}
|
|
83
|
+
placeholder=""
|
|
84
|
+
className="p-inputtext-sm small-input w-full"
|
|
85
|
+
/>
|
|
86
|
+
}
|
|
87
|
+
{inputType === InputTypes.Numeric &&
|
|
88
|
+
<InputNumber
|
|
89
|
+
value={value}
|
|
90
|
+
onChange={(e) => updateInputs(index, e.value)}
|
|
91
|
+
placeholder=""
|
|
92
|
+
className="p-inputtext-sm small-input w-full"
|
|
93
|
+
/>
|
|
94
|
+
}
|
|
95
|
+
{inputType === InputTypes.Date &&
|
|
96
|
+
<Calendar
|
|
97
|
+
value={value}
|
|
98
|
+
onChange={(e) => updateInputs(index, e.target.value)}
|
|
99
|
+
dateFormat="mm/dd/yy"
|
|
100
|
+
placeholder="mm/dd/yyyy"
|
|
101
|
+
mask="99/99/9999"
|
|
102
|
+
/>
|
|
103
|
+
}
|
|
104
|
+
{inputType === InputTypes.DateTime &&
|
|
105
|
+
<Calendar
|
|
106
|
+
value={value}
|
|
107
|
+
onChange={(e) => updateInputs(index, e.target.value)}
|
|
108
|
+
dateFormat="mm/dd/yy"
|
|
109
|
+
placeholder="mm/dd/yyyy hh:mm"
|
|
110
|
+
mask="99/99/9999 99:99"
|
|
111
|
+
showTime
|
|
112
|
+
hourFormat="24"
|
|
113
|
+
/>
|
|
114
|
+
}
|
|
115
|
+
{inputType === InputTypes.Time &&
|
|
116
|
+
<Calendar
|
|
117
|
+
value={value}
|
|
118
|
+
onChange={(e) => updateInputs(index, e.target.value)}
|
|
119
|
+
placeholder="hh:mm"
|
|
120
|
+
mask="99:99"
|
|
121
|
+
timeOnly
|
|
122
|
+
hourFormat="24"
|
|
123
|
+
/>
|
|
124
|
+
}
|
|
125
|
+
{inputType === InputTypes.RelationManyToOne &&
|
|
126
|
+
<SolidManyToOneFilterElement
|
|
127
|
+
value={value}
|
|
128
|
+
index={index}
|
|
129
|
+
updateInputs={updateInputs}
|
|
130
|
+
fieldMetadata={fieldMetadata}
|
|
131
|
+
></SolidManyToOneFilterElement>
|
|
132
|
+
}
|
|
133
|
+
{inputType === InputTypes.SelectionDynamic &&
|
|
134
|
+
<SolidSelectionDynamicFilterElement
|
|
135
|
+
value={value}
|
|
136
|
+
index={index}
|
|
137
|
+
updateInputs={updateInputs}
|
|
138
|
+
fieldMetadata={fieldMetadata}
|
|
139
|
+
></SolidSelectionDynamicFilterElement>
|
|
140
|
+
}
|
|
141
|
+
{inputType === InputTypes.SelectionStatic &&
|
|
142
|
+
|
|
143
|
+
<SolidSelectionStaticFilterElement
|
|
144
|
+
value={value}
|
|
145
|
+
index={index}
|
|
146
|
+
updateInputs={updateInputs}
|
|
147
|
+
fieldMetadata={fieldMetadata}
|
|
148
|
+
></SolidSelectionStaticFilterElement>
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
{numberOfInputs === null &&
|
|
152
|
+
<>
|
|
153
|
+
{/* Plus Button to add a new row */}
|
|
154
|
+
< Button
|
|
155
|
+
icon="pi pi-plus"
|
|
156
|
+
size="small"
|
|
157
|
+
className="small-button"
|
|
158
|
+
onClick={addInput}
|
|
159
|
+
type="button"
|
|
160
|
+
/>
|
|
161
|
+
|
|
162
|
+
{/* Trash Button to delete the row */}
|
|
163
|
+
<Button
|
|
164
|
+
icon="pi pi-trash"
|
|
165
|
+
size="small"
|
|
166
|
+
className="small-button"
|
|
167
|
+
onClick={() => deleteInput(index)}
|
|
168
|
+
outlined
|
|
169
|
+
severity="danger"
|
|
170
|
+
type="button"
|
|
171
|
+
/>
|
|
172
|
+
</>
|
|
173
|
+
}
|
|
174
|
+
</div>
|
|
175
|
+
|
|
176
|
+
))}
|
|
177
|
+
|
|
178
|
+
</div>
|
|
179
|
+
|
|
180
|
+
</div>
|
|
181
|
+
</div>
|
|
182
|
+
)
|
|
183
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { SolidListViewColumnParams } from '../SolidListViewColumn';
|
|
2
|
+
import SolidIntColumn from './SolidIntColumn';
|
|
3
|
+
|
|
4
|
+
const SolidBigintColumn = ({ solidListViewMetaData, fieldMetadata, column }: SolidListViewColumnParams) => {
|
|
5
|
+
return SolidIntColumn({ solidListViewMetaData, fieldMetadata, column });
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export default SolidBigintColumn;
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { Column, ColumnFilterElementTemplateOptions } from "primereact/column";
|
|
2
|
+
import { Dropdown } from 'primereact/dropdown';
|
|
3
|
+
import { SolidListViewColumnParams } from '../SolidListViewColumn';
|
|
4
|
+
|
|
5
|
+
const SolidBooleanColumn = ({ solidListViewMetaData, fieldMetadata, column }: SolidListViewColumnParams) => {
|
|
6
|
+
const filterable = column.attrs.filterable;
|
|
7
|
+
const showFilterOperator = false;
|
|
8
|
+
const columnDataType = 'boolean';
|
|
9
|
+
|
|
10
|
+
const booleanOptions = [
|
|
11
|
+
{ label: 'Yes', value: true },
|
|
12
|
+
{ label: 'No', value: false },
|
|
13
|
+
];
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
// Custom filter template for Boolean column
|
|
18
|
+
const filterTemplate = (options: ColumnFilterElementTemplateOptions) => {
|
|
19
|
+
return (
|
|
20
|
+
<Dropdown
|
|
21
|
+
value={options.value}
|
|
22
|
+
options={booleanOptions}
|
|
23
|
+
onChange={(e) => options.filterCallback(e.value)}
|
|
24
|
+
placeholder="Select"
|
|
25
|
+
className="p-column-filter"
|
|
26
|
+
/>
|
|
27
|
+
);
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
// Custom body template for Boolean column
|
|
31
|
+
const bodyTemplate = (rowData: any) => {
|
|
32
|
+
return rowData.isActive ? 'Yes' : 'No';
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
const header = column.attrs.label ?? fieldMetadata.displayName;
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
// TODO: filterTemplate, bodyTemplate & filterMatchModeOptions to be provided.
|
|
39
|
+
|
|
40
|
+
return (
|
|
41
|
+
<Column
|
|
42
|
+
key={fieldMetadata.name}
|
|
43
|
+
field={fieldMetadata.name}
|
|
44
|
+
header={header}
|
|
45
|
+
className="text-sm"
|
|
46
|
+
sortable={column.attrs.sortable}
|
|
47
|
+
filter={filterable}
|
|
48
|
+
dataType={columnDataType}
|
|
49
|
+
showFilterOperator={showFilterOperator}
|
|
50
|
+
// filterMatchModeOptions={filterMatchModeOptions}
|
|
51
|
+
filterElement={filterTemplate}
|
|
52
|
+
body={bodyTemplate}
|
|
53
|
+
filterPlaceholder={`Search by ${fieldMetadata.displayName}`}
|
|
54
|
+
style={{ minWidth: "12rem" }}
|
|
55
|
+
headerClassName="table-header-fs"
|
|
56
|
+
></Column>
|
|
57
|
+
);
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export default SolidBooleanColumn;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { SolidListViewColumnParams } from '../SolidListViewColumn';
|
|
2
|
+
import SolidShortTextColumn from './SolidShortTextColumn';
|
|
3
|
+
import SolidIntColumn from './SolidIntColumn';
|
|
4
|
+
import SolidDateColumn from './SolidDateColumn';
|
|
5
|
+
import SolidDatetimeColumn from './SolidDatetimeColumn';
|
|
6
|
+
|
|
7
|
+
const SolidComputedColumn = ({ solidListViewMetaData, fieldMetadata, column }: SolidListViewColumnParams) => {
|
|
8
|
+
if (['text', 'string'].includes(fieldMetadata.computedFieldValueType)) {
|
|
9
|
+
return SolidShortTextColumn({ solidListViewMetaData, fieldMetadata, column });
|
|
10
|
+
}
|
|
11
|
+
if (['int', 'decimal'].includes(fieldMetadata.computedFieldValueType)) {
|
|
12
|
+
return SolidIntColumn({ solidListViewMetaData, fieldMetadata, column });
|
|
13
|
+
}
|
|
14
|
+
if (fieldMetadata.computedFieldValueType === 'date') {
|
|
15
|
+
return SolidDateColumn({ solidListViewMetaData, fieldMetadata, column });
|
|
16
|
+
}
|
|
17
|
+
if (fieldMetadata.computedFieldValueType === 'datetime') {
|
|
18
|
+
return SolidDatetimeColumn({ solidListViewMetaData, fieldMetadata, column });
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export default SolidComputedColumn;
|