@solidstarters/solid-core-ui 1.0.1 → 1.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/CustomFooter/CustomFooter.js.map +1 -1
- package/dist/components/CustomFooter/FooterForm.js.map +1 -1
- package/dist/components/auth/SolidForgotPassword.d.ts +3 -0
- package/dist/components/auth/SolidForgotPassword.d.ts.map +1 -0
- package/dist/components/auth/SolidForgotPassword.js +108 -0
- package/dist/components/auth/SolidForgotPassword.js.map +1 -0
- package/dist/components/auth/SolidLogin.d.ts +3 -0
- package/dist/components/auth/SolidLogin.d.ts.map +1 -0
- package/dist/components/auth/SolidLogin.js +115 -0
- package/dist/components/auth/SolidLogin.js.map +1 -0
- package/dist/components/auth/SolidOTPVerify.d.ts +3 -0
- package/dist/components/auth/SolidOTPVerify.d.ts.map +1 -0
- package/dist/components/auth/SolidOTPVerify.js +108 -0
- package/dist/components/auth/SolidOTPVerify.js.map +1 -0
- package/dist/components/auth/SolidRegister.d.ts +3 -0
- package/dist/components/auth/SolidRegister.d.ts.map +1 -0
- package/dist/components/auth/SolidRegister.js +166 -0
- package/dist/components/auth/SolidRegister.js.map +1 -0
- package/dist/components/auth/SolidResetPassword.d.ts +3 -0
- package/dist/components/auth/SolidResetPassword.d.ts.map +1 -0
- package/dist/components/auth/SolidResetPassword.js +119 -0
- package/dist/components/auth/SolidResetPassword.js.map +1 -0
- package/dist/components/core/common/FilterComponent.d.ts +33 -1
- package/dist/components/core/common/FilterComponent.d.ts.map +1 -1
- package/dist/components/core/common/FilterComponent.js +39 -35
- package/dist/components/core/common/FilterComponent.js.map +1 -1
- package/dist/components/core/common/SolidConfigureLayoutElement.js +4 -4
- package/dist/components/core/common/SolidConfigureLayoutElement.js.map +1 -1
- package/dist/components/core/common/SolidCreateButton.js +1 -1
- package/dist/components/core/common/SolidCreateButton.js.map +1 -1
- package/dist/components/core/common/SolidGlobalSearchElement.d.ts +1 -1
- package/dist/components/core/common/SolidGlobalSearchElement.d.ts.map +1 -1
- package/dist/components/core/common/SolidGlobalSearchElement.js +14 -9
- package/dist/components/core/common/SolidGlobalSearchElement.js.map +1 -1
- package/dist/components/core/common/SolidLayoutViews.d.ts +19 -0
- package/dist/components/core/common/SolidLayoutViews.d.ts.map +1 -0
- package/dist/components/core/common/SolidLayoutViews.js +14 -0
- package/dist/components/core/common/SolidLayoutViews.js.map +1 -0
- package/dist/components/core/common/SolidListViewOptions.d.ts +2 -0
- package/dist/components/core/common/SolidListViewOptions.d.ts.map +1 -0
- package/dist/components/core/common/SolidListViewOptions.js +11 -0
- package/dist/components/core/common/SolidListViewOptions.js.map +1 -0
- package/dist/components/core/common/SolidSearchBox.js.map +1 -1
- package/dist/components/core/field/FieldListViewData.js +7 -7
- package/dist/components/core/field/FieldListViewData.js.map +1 -1
- package/dist/components/core/filter/SolidFilterFields.d.ts.map +1 -1
- package/dist/components/core/filter/SolidFilterFields.js +32 -35
- package/dist/components/core/filter/SolidFilterFields.js.map +1 -1
- package/dist/components/core/filter/SolidManyToOneFilterElement.js +2 -2
- package/dist/components/core/filter/SolidManyToOneFilterElement.js.map +1 -1
- package/dist/components/core/filter/SolidSelectionDynamicFilterElement.d.ts.map +1 -1
- package/dist/components/core/filter/SolidSelectionDynamicFilterElement.js +0 -1
- package/dist/components/core/filter/SolidSelectionDynamicFilterElement.js.map +1 -1
- package/dist/components/core/filter/SolidSelectionStaticFilterElement.d.ts.map +1 -1
- package/dist/components/core/filter/SolidSelectionStaticFilterElement.js +0 -1
- package/dist/components/core/filter/SolidSelectionStaticFilterElement.js.map +1 -1
- package/dist/components/core/filter/SolidVarInputsFilterElement.d.ts.map +1 -1
- package/dist/components/core/filter/SolidVarInputsFilterElement.js +1 -2
- package/dist/components/core/filter/SolidVarInputsFilterElement.js.map +1 -1
- package/dist/components/core/filter/fields/SolidBigintField.d.ts +4 -0
- package/dist/components/core/filter/fields/SolidBigintField.d.ts.map +1 -0
- package/dist/components/core/filter/fields/SolidBigintField.js +8 -0
- package/dist/components/core/filter/fields/SolidBigintField.js.map +1 -0
- package/dist/components/core/filter/fields/SolidBooleanField.d.ts +4 -0
- package/dist/components/core/filter/fields/SolidBooleanField.d.ts.map +1 -0
- package/dist/components/core/filter/fields/SolidBooleanField.js +26 -0
- package/dist/components/core/filter/fields/SolidBooleanField.js.map +1 -0
- package/dist/components/core/filter/fields/SolidComputedField.d.ts +4 -0
- package/dist/components/core/filter/fields/SolidComputedField.d.ts.map +1 -0
- package/dist/components/core/filter/fields/SolidComputedField.js +22 -0
- package/dist/components/core/filter/fields/SolidComputedField.js.map +1 -0
- package/dist/components/core/filter/fields/SolidDateField.d.ts +8 -0
- package/dist/components/core/filter/fields/SolidDateField.d.ts.map +1 -0
- package/dist/components/core/filter/fields/SolidDateField.js +34 -0
- package/dist/components/core/filter/fields/SolidDateField.js.map +1 -0
- package/dist/components/core/filter/fields/SolidDatetimeField.d.ts +4 -0
- package/dist/components/core/filter/fields/SolidDatetimeField.d.ts.map +1 -0
- package/dist/components/core/filter/fields/SolidDatetimeField.js +29 -0
- package/dist/components/core/filter/fields/SolidDatetimeField.js.map +1 -0
- package/dist/components/core/filter/fields/SolidDecimalField.d.ts +4 -0
- package/dist/components/core/filter/fields/SolidDecimalField.d.ts.map +1 -0
- package/dist/components/core/filter/fields/SolidDecimalField.js +8 -0
- package/dist/components/core/filter/fields/SolidDecimalField.js.map +1 -0
- package/dist/components/core/filter/fields/SolidExternalIdField.d.ts +4 -0
- package/dist/components/core/filter/fields/SolidExternalIdField.d.ts.map +1 -0
- package/dist/components/core/filter/fields/SolidExternalIdField.js +24 -0
- package/dist/components/core/filter/fields/SolidExternalIdField.js.map +1 -0
- package/dist/components/core/filter/fields/SolidFloatField.d.ts +4 -0
- package/dist/components/core/filter/fields/SolidFloatField.d.ts.map +1 -0
- package/dist/components/core/filter/fields/SolidFloatField.js +8 -0
- package/dist/components/core/filter/fields/SolidFloatField.js.map +1 -0
- package/dist/components/core/filter/fields/SolidIdField.d.ts +4 -0
- package/dist/components/core/filter/fields/SolidIdField.d.ts.map +1 -0
- package/dist/components/core/filter/fields/SolidIdField.js +24 -0
- package/dist/components/core/filter/fields/SolidIdField.js.map +1 -0
- package/dist/components/core/filter/fields/SolidIntField.d.ts +4 -0
- package/dist/components/core/filter/fields/SolidIntField.d.ts.map +1 -0
- package/dist/components/core/filter/fields/SolidIntField.js +33 -0
- package/dist/components/core/filter/fields/SolidIntField.js.map +1 -0
- package/dist/components/core/filter/fields/SolidLongTextField.d.ts +4 -0
- package/dist/components/core/filter/fields/SolidLongTextField.d.ts.map +1 -0
- package/dist/components/core/filter/fields/SolidLongTextField.js +8 -0
- package/dist/components/core/filter/fields/SolidLongTextField.js.map +1 -0
- package/dist/components/core/filter/fields/SolidMediaMultipleField.d.ts +4 -0
- package/dist/components/core/filter/fields/SolidMediaMultipleField.d.ts.map +1 -0
- package/dist/components/core/filter/fields/SolidMediaMultipleField.js +34 -0
- package/dist/components/core/filter/fields/SolidMediaMultipleField.js.map +1 -0
- package/dist/components/core/filter/fields/SolidMediaSingleField.d.ts +4 -0
- package/dist/components/core/filter/fields/SolidMediaSingleField.d.ts.map +1 -0
- package/dist/components/core/filter/fields/SolidMediaSingleField.js +34 -0
- package/dist/components/core/filter/fields/SolidMediaSingleField.js.map +1 -0
- package/dist/components/core/filter/fields/SolidRelationField.d.ts +4 -0
- package/dist/components/core/filter/fields/SolidRelationField.d.ts.map +1 -0
- package/dist/components/core/filter/fields/SolidRelationField.js +12 -0
- package/dist/components/core/filter/fields/SolidRelationField.js.map +1 -0
- package/dist/components/core/filter/fields/SolidRichTextField.d.ts +4 -0
- package/dist/components/core/filter/fields/SolidRichTextField.d.ts.map +1 -0
- package/dist/components/core/filter/fields/SolidRichTextField.js +8 -0
- package/dist/components/core/filter/fields/SolidRichTextField.js.map +1 -0
- package/dist/components/core/filter/fields/SolidSelectionDynamicField.d.ts +4 -0
- package/dist/components/core/filter/fields/SolidSelectionDynamicField.d.ts.map +1 -0
- package/dist/components/core/filter/fields/SolidSelectionDynamicField.js +23 -0
- package/dist/components/core/filter/fields/SolidSelectionDynamicField.js.map +1 -0
- package/dist/components/core/filter/fields/SolidSelectionStaticField.d.ts +4 -0
- package/dist/components/core/filter/fields/SolidSelectionStaticField.d.ts.map +1 -0
- package/dist/components/core/filter/fields/SolidSelectionStaticField.js +25 -0
- package/dist/components/core/filter/fields/SolidSelectionStaticField.js.map +1 -0
- package/dist/components/core/filter/fields/SolidShortTextField.d.ts +4 -0
- package/dist/components/core/filter/fields/SolidShortTextField.d.ts.map +1 -0
- package/dist/components/core/filter/fields/SolidShortTextField.js +32 -0
- package/dist/components/core/filter/fields/SolidShortTextField.js.map +1 -0
- package/dist/components/core/filter/fields/SolidTimeField.d.ts +4 -0
- package/dist/components/core/filter/fields/SolidTimeField.d.ts.map +1 -0
- package/dist/components/core/filter/fields/SolidTimeField.js +24 -0
- package/dist/components/core/filter/fields/SolidTimeField.js.map +1 -0
- package/dist/components/core/filter/fields/SolidUuidField.d.ts +4 -0
- package/dist/components/core/filter/fields/SolidUuidField.d.ts.map +1 -0
- package/dist/components/core/filter/fields/SolidUuidField.js +24 -0
- package/dist/components/core/filter/fields/SolidUuidField.js.map +1 -0
- package/dist/components/core/filter/fields/relations/SolidRelationManyToOneField.d.ts +4 -0
- package/dist/components/core/filter/fields/relations/SolidRelationManyToOneField.d.ts.map +1 -0
- package/dist/components/core/filter/fields/relations/SolidRelationManyToOneField.js +53 -0
- package/dist/components/core/filter/fields/relations/SolidRelationManyToOneField.js.map +1 -0
- package/dist/components/core/form/SolidFormView.d.ts.map +1 -1
- package/dist/components/core/form/SolidFormView.js +23 -23
- package/dist/components/core/form/SolidFormView.js.map +1 -1
- package/dist/components/core/form/fields/ISolidField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidBooleanField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidBooleanField.js +1 -1
- package/dist/components/core/form/fields/SolidBooleanField.js.map +1 -1
- package/dist/components/core/form/fields/SolidDateField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidDateField.js +2 -2
- package/dist/components/core/form/fields/SolidDateField.js.map +1 -1
- package/dist/components/core/form/fields/SolidDateTimeField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidDateTimeField.js +2 -2
- package/dist/components/core/form/fields/SolidDateTimeField.js.map +1 -1
- package/dist/components/core/form/fields/SolidDecimalField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidDecimalField.js +2 -2
- package/dist/components/core/form/fields/SolidDecimalField.js.map +1 -1
- package/dist/components/core/form/fields/SolidIntegerField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidIntegerField.js +2 -2
- package/dist/components/core/form/fields/SolidIntegerField.js.map +1 -1
- package/dist/components/core/form/fields/SolidJsonField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidJsonField.js +2 -2
- package/dist/components/core/form/fields/SolidJsonField.js.map +1 -1
- package/dist/components/core/form/fields/SolidLongTextField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidLongTextField.js +2 -2
- package/dist/components/core/form/fields/SolidLongTextField.js.map +1 -1
- package/dist/components/core/form/fields/SolidMediaMultipleField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidMediaMultipleField.js +5 -5
- package/dist/components/core/form/fields/SolidMediaMultipleField.js.map +1 -1
- package/dist/components/core/form/fields/SolidMediaSingleField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidMediaSingleField.js +5 -5
- package/dist/components/core/form/fields/SolidMediaSingleField.js.map +1 -1
- package/dist/components/core/form/fields/SolidRelationField.js +1 -1
- package/dist/components/core/form/fields/SolidRelationField.js.map +1 -1
- package/dist/components/core/form/fields/SolidRichTextField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidRichTextField.js +2 -2
- package/dist/components/core/form/fields/SolidRichTextField.js.map +1 -1
- package/dist/components/core/form/fields/SolidSelectionDynamicField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidSelectionDynamicField.js +3 -3
- package/dist/components/core/form/fields/SolidSelectionDynamicField.js.map +1 -1
- package/dist/components/core/form/fields/SolidSelectionStaticField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidSelectionStaticField.js +2 -2
- package/dist/components/core/form/fields/SolidSelectionStaticField.js.map +1 -1
- package/dist/components/core/form/fields/SolidShortTextField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidShortTextField.js +1 -1
- package/dist/components/core/form/fields/SolidShortTextField.js.map +1 -1
- package/dist/components/core/form/fields/SolidTimeField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidTimeField.js +2 -2
- package/dist/components/core/form/fields/SolidTimeField.js.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.d.ts.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.js +7 -7
- package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.js.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.d.ts.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.js +3 -3
- package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.js.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.d.ts.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.js +2 -2
- package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.js.map +1 -1
- package/dist/components/core/kanban/KanbanBoard.d.ts +1 -1
- package/dist/components/core/kanban/KanbanBoard.d.ts.map +1 -1
- package/dist/components/core/kanban/KanbanBoard.js +10 -10
- package/dist/components/core/kanban/KanbanBoard.js.map +1 -1
- package/dist/components/core/kanban/KanbanCard.d.ts.map +1 -1
- package/dist/components/core/kanban/KanbanCard.js.map +1 -1
- package/dist/components/core/kanban/KanbanColumn.d.ts.map +1 -1
- package/dist/components/core/kanban/KanbanColumn.js +2 -2
- package/dist/components/core/kanban/KanbanColumn.js.map +1 -1
- package/dist/components/core/kanban/SolidKanbanView.d.ts.map +1 -1
- package/dist/components/core/kanban/SolidKanbanView.js +121 -210
- package/dist/components/core/kanban/SolidKanbanView.js.map +1 -1
- package/dist/components/core/list/SolidListView.d.ts.map +1 -1
- package/dist/components/core/list/SolidListView.js +302 -53
- package/dist/components/core/list/SolidListView.js.map +1 -1
- package/dist/components/core/list/SolidListViewColumn.d.ts.map +1 -1
- package/dist/components/core/list/SolidListViewColumn.js +12 -12
- package/dist/components/core/list/SolidListViewColumn.js.map +1 -1
- package/dist/components/core/list/SolidListingHeader.d.ts.map +1 -1
- package/dist/components/core/list/SolidListingHeader.js.map +1 -1
- package/dist/components/core/list/SolidManyToOneFilterElement.d.ts.map +1 -1
- package/dist/components/core/list/SolidManyToOneFilterElement.js +1 -2
- package/dist/components/core/list/SolidManyToOneFilterElement.js.map +1 -1
- package/dist/components/core/list/SolidSelectionDynamicFilterElement.js +2 -2
- package/dist/components/core/list/SolidSelectionDynamicFilterElement.js.map +1 -1
- package/dist/components/core/list/SolidSelectionStaticFilterElement.d.ts.map +1 -1
- package/dist/components/core/list/SolidSelectionStaticFilterElement.js.map +1 -1
- package/dist/components/core/list/SolidVarInputsFilterElement.js +1 -1
- package/dist/components/core/list/SolidVarInputsFilterElement.js.map +1 -1
- package/dist/components/core/list/columns/SolidBooleanColumn.d.ts.map +1 -1
- package/dist/components/core/list/columns/SolidBooleanColumn.js +3 -1
- package/dist/components/core/list/columns/SolidBooleanColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidComputedColumn.js +2 -2
- package/dist/components/core/list/columns/SolidComputedColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidDateColumn.d.ts +1 -1
- package/dist/components/core/list/columns/SolidDateColumn.d.ts.map +1 -1
- package/dist/components/core/list/columns/SolidDateColumn.js +2 -2
- package/dist/components/core/list/columns/SolidDateColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidDatetimeColumn.d.ts.map +1 -1
- package/dist/components/core/list/columns/SolidDatetimeColumn.js +1 -1
- package/dist/components/core/list/columns/SolidDatetimeColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidIdColumn.d.ts.map +1 -1
- package/dist/components/core/list/columns/SolidIdColumn.js +1 -1
- package/dist/components/core/list/columns/SolidIdColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidIntColumn.d.ts.map +1 -1
- package/dist/components/core/list/columns/SolidIntColumn.js +2 -2
- package/dist/components/core/list/columns/SolidIntColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidSelectionDynamicColumn.d.ts.map +1 -1
- package/dist/components/core/list/columns/SolidSelectionDynamicColumn.js +1 -1
- package/dist/components/core/list/columns/SolidSelectionDynamicColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidSelectionStaticColumn.d.ts.map +1 -1
- package/dist/components/core/list/columns/SolidSelectionStaticColumn.js +4 -2
- package/dist/components/core/list/columns/SolidSelectionStaticColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidShortTextColumn.d.ts.map +1 -1
- package/dist/components/core/list/columns/SolidShortTextColumn.js +7 -3
- package/dist/components/core/list/columns/SolidShortTextColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidTimeColumn.d.ts.map +1 -1
- package/dist/components/core/list/columns/SolidTimeColumn.js +4 -2
- package/dist/components/core/list/columns/SolidTimeColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidUuidColumn.d.ts.map +1 -1
- package/dist/components/core/list/columns/SolidUuidColumn.js +4 -2
- package/dist/components/core/list/columns/SolidUuidColumn.js.map +1 -1
- package/dist/components/core/list/columns/relations/SolidRelationManyToOneColumn.d.ts.map +1 -1
- package/dist/components/core/list/columns/relations/SolidRelationManyToOneColumn.js +1 -1
- package/dist/components/core/list/columns/relations/SolidRelationManyToOneColumn.js.map +1 -1
- package/dist/components/core/model/CreateModel.js +8 -8
- package/dist/components/core/model/CreateModel.js.map +1 -1
- package/dist/components/core/model/FieldMetaData.d.ts.map +1 -1
- package/dist/components/core/model/FieldMetaData.js +6 -6
- package/dist/components/core/model/FieldMetaData.js.map +1 -1
- package/dist/components/core/model/FieldMetaDataForm.js +23 -23
- package/dist/components/core/model/FieldMetaDataForm.js.map +1 -1
- package/dist/components/core/model/FieldSelector.d.ts.map +1 -1
- package/dist/components/core/model/FieldSelector.js.map +1 -1
- package/dist/components/core/model/ModelListViewData.d.ts.map +1 -1
- package/dist/components/core/model/ModelListViewData.js +7 -7
- package/dist/components/core/model/ModelListViewData.js.map +1 -1
- package/dist/components/core/model/ModelMetaData.d.ts.map +1 -1
- package/dist/components/core/model/ModelMetaData.js +9 -9
- package/dist/components/core/model/ModelMetaData.js.map +1 -1
- package/dist/components/core/module/CreateModule.d.ts.map +1 -1
- package/dist/components/core/module/CreateModule.js +18 -18
- package/dist/components/core/module/CreateModule.js.map +1 -1
- package/dist/components/core/module/ModuleListViewData.d.ts.map +1 -1
- package/dist/components/core/module/ModuleListViewData.js +8 -8
- package/dist/components/core/module/ModuleListViewData.js.map +1 -1
- package/dist/components/core/users/CreateUser.js +11 -11
- package/dist/components/core/users/CreateUser.js.map +1 -1
- package/dist/components/core/users/CreateUserRole.d.ts.map +1 -1
- package/dist/components/core/users/CreateUserRole.js +9 -9
- package/dist/components/core/users/CreateUserRole.js.map +1 -1
- package/dist/components/core/users/UserListView.d.ts.map +1 -1
- package/dist/components/core/users/UserListView.js +7 -7
- package/dist/components/core/users/UserListView.js.map +1 -1
- package/dist/components/layout/AdminSidebar.js.map +1 -1
- package/dist/components/layout/AppConfig.d.ts +4 -0
- package/dist/components/layout/AppConfig.d.ts.map +1 -0
- package/dist/components/layout/AppConfig.js +57 -0
- package/dist/components/layout/AppConfig.js.map +1 -0
- package/dist/components/layout/AppSidebar.d.ts +3 -0
- package/dist/components/layout/AppSidebar.d.ts.map +1 -0
- package/dist/components/layout/AppSidebar.js +75 -0
- package/dist/components/layout/AppSidebar.js.map +1 -0
- package/dist/components/layout/ButtonLoader.d.ts.map +1 -1
- package/dist/components/layout/ButtonLoader.js.map +1 -1
- package/dist/components/layout/CustomPagination.d.ts +0 -6
- package/dist/components/layout/CustomPagination.d.ts.map +1 -1
- package/dist/components/layout/CustomPagination.js +48 -27
- package/dist/components/layout/CustomPagination.js.map +1 -1
- package/dist/components/layout/FilterMenu.d.ts.map +1 -1
- package/dist/components/layout/FilterMenu.js +1 -2
- package/dist/components/layout/FilterMenu.js.map +1 -1
- package/dist/components/layout/GlobalSearch.js.map +1 -1
- package/dist/components/layout/ListingHeader.js +2 -2
- package/dist/components/layout/ListingHeader.js.map +1 -1
- package/dist/components/layout/context/layoutcontext.d.ts +5 -0
- package/dist/components/layout/context/layoutcontext.d.ts.map +1 -0
- package/dist/components/layout/context/layoutcontext.js +56 -0
- package/dist/components/layout/context/layoutcontext.js.map +1 -0
- package/dist/components/layout/navbar-one.d.ts.map +1 -1
- package/dist/components/layout/navbar-one.js +13 -11
- package/dist/components/layout/navbar-one.js.map +1 -1
- package/dist/components/layout/navbar-two-menu.d.ts.map +1 -1
- package/dist/components/layout/navbar-two-menu.js +7 -7
- package/dist/components/layout/navbar-two-menu.js.map +1 -1
- package/dist/components/layout/navbar-two.js +1 -1
- package/dist/components/layout/navbar-two.js.map +1 -1
- package/dist/components/layout/user-profile-menu.d.ts.map +1 -1
- package/dist/components/layout/user-profile-menu.js +38 -6
- package/dist/components/layout/user-profile-menu.js.map +1 -1
- package/dist/components/modelsComponents/filterIcon.d.ts.map +1 -1
- package/dist/components/modelsComponents/filterIcon.js.map +1 -1
- package/dist/components/tables/ListViewTable.d.ts.map +1 -1
- package/dist/components/tables/ListViewTable.js +8 -7
- package/dist/components/tables/ListViewTable.js.map +1 -1
- package/dist/helpers/helpers.d.ts +1 -1
- package/dist/helpers/helpers.d.ts.map +1 -1
- package/dist/index.d.ts +19 -14
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +43 -35
- package/dist/index.js.map +1 -1
- package/package.json +3 -2
- package/src/components/CustomFooter/CustomFooter.tsx +2 -2
- package/src/components/CustomFooter/FooterForm.tsx +2 -2
- package/src/components/auth/SolidForgotPassword.tsx +124 -0
- package/src/components/auth/SolidLogin.tsx +156 -0
- package/src/components/auth/SolidOTPVerify.tsx +127 -0
- package/src/components/auth/SolidRegister.tsx +221 -0
- package/src/components/auth/SolidResetPassword.tsx +160 -0
- package/src/components/core/common/FilterComponent.tsx +87 -57
- package/src/components/core/common/SolidConfigureLayoutElement.tsx +12 -12
- package/src/components/core/common/SolidCreateButton.tsx +1 -1
- package/src/components/core/common/SolidGlobalSearchElement.tsx +33 -13
- package/src/components/core/common/SolidLayoutViews.tsx +87 -0
- package/src/components/core/common/SolidListViewOptions.tsx +31 -0
- package/src/components/core/common/SolidSearchBox.tsx +1 -1
- package/src/components/core/field/FieldListViewData.tsx +10 -10
- package/src/components/core/filter/SolidFilterFields.tsx +32 -35
- package/src/components/core/filter/SolidManyToOneFilterElement.tsx +2 -2
- package/src/components/core/filter/SolidSelectionDynamicFilterElement.tsx +0 -1
- package/src/components/core/filter/SolidSelectionStaticFilterElement.tsx +0 -1
- package/src/components/core/filter/SolidVarInputsFilterElement.tsx +2 -4
- package/src/components/core/filter/{columns → fields}/SolidBigintField.tsx +1 -1
- package/src/components/core/filter/{columns → fields}/SolidBooleanField.tsx +6 -7
- package/src/components/core/filter/{columns → fields}/SolidComputedField.tsx +4 -4
- package/src/components/core/filter/{columns → fields}/SolidDateField.tsx +12 -13
- package/src/components/core/filter/{columns → fields}/SolidDatetimeField.tsx +10 -7
- package/src/components/core/filter/{columns → fields}/SolidDecimalField.tsx +1 -2
- package/src/components/core/filter/{columns → fields}/SolidExternalIdField.tsx +6 -9
- package/src/components/core/filter/{columns → fields}/SolidFloatField.tsx +1 -1
- package/src/components/core/filter/{columns → fields}/SolidIdField.tsx +8 -10
- package/src/components/core/filter/{columns → fields}/SolidIntField.tsx +12 -14
- package/src/components/core/filter/{columns → fields}/SolidLongTextField.tsx +1 -1
- package/src/components/core/filter/{columns → fields}/SolidMediaMultipleField.tsx +12 -15
- package/src/components/core/filter/{columns → fields}/SolidMediaSingleField.tsx +12 -14
- package/src/components/core/filter/{columns → fields}/SolidRelationField.tsx +1 -1
- package/src/components/core/filter/{columns → fields}/SolidRichTextField.tsx +1 -1
- package/src/components/core/filter/{columns → fields}/SolidSelectionDynamicField.tsx +6 -9
- package/src/components/core/filter/{columns → fields}/SolidSelectionStaticField.tsx +7 -9
- package/src/components/core/filter/{columns → fields}/SolidShortTextField.tsx +12 -14
- package/src/components/core/filter/{columns → fields}/SolidTimeField.tsx +5 -6
- package/src/components/core/filter/{columns → fields}/SolidUuidField.tsx +6 -8
- package/src/components/core/filter/{columns → fields}/relations/SolidRelationManyToOneField.tsx +6 -7
- package/src/components/core/form/SolidFormView.tsx +27 -26
- package/src/components/core/form/fields/ISolidField.tsx +1 -1
- package/src/components/core/form/fields/SolidBooleanField.tsx +3 -5
- package/src/components/core/form/fields/SolidDateField.tsx +4 -5
- package/src/components/core/form/fields/SolidDateTimeField.tsx +4 -5
- package/src/components/core/form/fields/SolidDecimalField.tsx +3 -5
- package/src/components/core/form/fields/SolidIntegerField.tsx +3 -5
- package/src/components/core/form/fields/SolidJsonField.tsx +3 -9
- package/src/components/core/form/fields/SolidLongTextField.tsx +3 -4
- package/src/components/core/form/fields/SolidMediaMultipleField.tsx +7 -8
- package/src/components/core/form/fields/SolidMediaSingleField.tsx +7 -8
- package/src/components/core/form/fields/SolidRelationField.tsx +1 -1
- package/src/components/core/form/fields/SolidRichTextField.tsx +4 -6
- package/src/components/core/form/fields/SolidSelectionDynamicField.tsx +5 -6
- package/src/components/core/form/fields/SolidSelectionStaticField.tsx +4 -6
- package/src/components/core/form/fields/SolidShortTextField.tsx +3 -4
- package/src/components/core/form/fields/SolidTimeField.tsx +4 -5
- package/src/components/core/form/fields/relations/SolidRelationManyToManyField.tsx +9 -12
- package/src/components/core/form/fields/relations/SolidRelationManyToOneField.tsx +5 -6
- package/src/components/core/form/fields/relations/SolidRelationOneToManyField.tsx +4 -10
- package/src/components/core/kanban/KanbanBoard.tsx +4 -2
- package/src/components/core/kanban/KanbanCard.tsx +1 -1
- package/src/components/core/kanban/KanbanColumn.tsx +2 -3
- package/src/components/core/kanban/SolidKanbanView.tsx +121 -262
- package/src/components/core/list/SolidListView.tsx +408 -86
- package/src/components/core/list/SolidListViewColumn.tsx +12 -13
- package/src/components/core/list/SolidListingHeader.tsx +1 -2
- package/src/components/core/list/SolidManyToOneFilterElement.tsx +1 -2
- package/src/components/core/list/SolidSelectionDynamicFilterElement.tsx +2 -2
- package/src/components/core/list/SolidSelectionStaticFilterElement.tsx +0 -2
- package/src/components/core/list/SolidVarInputsFilterElement.tsx +3 -3
- package/src/components/core/list/columns/SolidBooleanColumn.tsx +2 -7
- package/src/components/core/list/columns/SolidComputedColumn.tsx +2 -2
- package/src/components/core/list/columns/SolidDateColumn.tsx +3 -4
- package/src/components/core/list/columns/SolidDatetimeColumn.tsx +2 -3
- package/src/components/core/list/columns/SolidIdColumn.tsx +3 -4
- package/src/components/core/list/columns/SolidIntColumn.tsx +3 -4
- package/src/components/core/list/columns/SolidSelectionDynamicColumn.tsx +3 -4
- package/src/components/core/list/columns/SolidSelectionStaticColumn.tsx +4 -5
- package/src/components/core/list/columns/SolidShortTextColumn.tsx +11 -7
- package/src/components/core/list/columns/SolidTimeColumn.tsx +3 -5
- package/src/components/core/list/columns/SolidUuidColumn.tsx +4 -5
- package/src/components/core/list/columns/relations/SolidRelationManyToOneColumn.tsx +3 -4
- package/src/components/core/model/CreateModel.tsx +9 -9
- package/src/components/core/model/FieldMetaData.tsx +7 -9
- package/src/components/core/model/FieldMetaDataForm.tsx +23 -23
- package/src/components/core/model/FieldSelector.tsx +1 -3
- package/src/components/core/model/ModelListViewData.tsx +11 -16
- package/src/components/core/model/ModelMetaData.tsx +9 -13
- package/src/components/core/module/CreateModule.tsx +18 -20
- package/src/components/core/module/ModuleListViewData.tsx +10 -19
- package/src/components/core/users/CreateUser.tsx +12 -12
- package/src/components/core/users/CreateUserRole.tsx +9 -14
- package/src/components/core/users/UserListView.tsx +9 -10
- package/src/components/layout/AdminSidebar.tsx +1 -1
- package/src/components/layout/AppConfig.tsx +103 -0
- package/src/components/layout/AppSidebar.tsx +170 -0
- package/src/components/layout/ButtonLoader.tsx +0 -1
- package/src/components/layout/CustomPagination.tsx +55 -55
- package/src/components/layout/FilterMenu.tsx +1 -2
- package/src/components/layout/GlobalSearch.tsx +4 -4
- package/src/components/layout/ListingHeader.tsx +2 -2
- package/src/components/layout/context/layoutcontext.tsx +52 -0
- package/src/components/layout/navbar-one.tsx +8 -9
- package/src/components/layout/navbar-two-menu.tsx +14 -11
- package/src/components/layout/navbar-two.tsx +1 -1
- package/src/components/layout/user-profile-menu.tsx +74 -189
- package/src/components/modelsComponents/filterIcon.tsx +0 -1
- package/src/components/tables/ListViewTable.tsx +10 -9
- package/src/index.ts +157 -144
- package/src/types/index.d.ts +26 -0
- package/src/types/layout.d.ts +94 -0
- package/src/types/next-auth.d.ts +0 -0
- package/dist/components/core/kanban/SolidKanbanFilter.d.ts +0 -2
- package/dist/components/core/kanban/SolidKanbanFilter.d.ts.map +0 -1
- package/dist/components/core/kanban/SolidKanbanViewSearchColumn.d.ts +0 -10
- package/dist/components/core/kanban/SolidKanbanViewSearchColumn.d.ts.map +0 -1
- package/dist/components/core/kanban/SolidManyToOneFilterElement.d.ts +0 -2
- package/dist/components/core/kanban/SolidManyToOneFilterElement.d.ts.map +0 -1
- package/dist/components/core/kanban/SolidSelectionDynamicFilterElement.d.ts +0 -2
- package/dist/components/core/kanban/SolidSelectionDynamicFilterElement.d.ts.map +0 -1
- package/dist/components/core/kanban/SolidSelectionStaticFilterElement.d.ts +0 -2
- package/dist/components/core/kanban/SolidSelectionStaticFilterElement.d.ts.map +0 -1
- package/dist/components/core/kanban/SolidVarInputsFilterElement.d.ts +0 -12
- package/dist/components/core/kanban/SolidVarInputsFilterElement.d.ts.map +0 -1
- package/dist/components/core/kanban/columns/SolidBigintColumn.d.ts +0 -4
- package/dist/components/core/kanban/columns/SolidBigintColumn.d.ts.map +0 -1
- package/dist/components/core/kanban/columns/SolidBooleanColumn.d.ts +0 -4
- package/dist/components/core/kanban/columns/SolidBooleanColumn.d.ts.map +0 -1
- package/dist/components/core/kanban/columns/SolidComputedColumn.d.ts +0 -4
- package/dist/components/core/kanban/columns/SolidComputedColumn.d.ts.map +0 -1
- package/dist/components/core/kanban/columns/SolidDateColumn.d.ts +0 -9
- package/dist/components/core/kanban/columns/SolidDateColumn.d.ts.map +0 -1
- package/dist/components/core/kanban/columns/SolidDatetimeColumn.d.ts +0 -4
- package/dist/components/core/kanban/columns/SolidDatetimeColumn.d.ts.map +0 -1
- package/dist/components/core/kanban/columns/SolidDecimalColumn.d.ts +0 -4
- package/dist/components/core/kanban/columns/SolidDecimalColumn.d.ts.map +0 -1
- package/dist/components/core/kanban/columns/SolidExternalIdColumn.d.ts +0 -4
- package/dist/components/core/kanban/columns/SolidExternalIdColumn.d.ts.map +0 -1
- package/dist/components/core/kanban/columns/SolidFloatColumn.d.ts +0 -4
- package/dist/components/core/kanban/columns/SolidFloatColumn.d.ts.map +0 -1
- package/dist/components/core/kanban/columns/SolidIdColumn.d.ts +0 -4
- package/dist/components/core/kanban/columns/SolidIdColumn.d.ts.map +0 -1
- package/dist/components/core/kanban/columns/SolidIntColumn.d.ts +0 -4
- package/dist/components/core/kanban/columns/SolidIntColumn.d.ts.map +0 -1
- package/dist/components/core/kanban/columns/SolidLongTextColumn.d.ts +0 -4
- package/dist/components/core/kanban/columns/SolidLongTextColumn.d.ts.map +0 -1
- package/dist/components/core/kanban/columns/SolidMediaMultipleColumn.d.ts +0 -4
- package/dist/components/core/kanban/columns/SolidMediaMultipleColumn.d.ts.map +0 -1
- package/dist/components/core/kanban/columns/SolidMediaSingleColumn.d.ts +0 -4
- package/dist/components/core/kanban/columns/SolidMediaSingleColumn.d.ts.map +0 -1
- package/dist/components/core/kanban/columns/SolidRelationColumn.d.ts +0 -4
- package/dist/components/core/kanban/columns/SolidRelationColumn.d.ts.map +0 -1
- package/dist/components/core/kanban/columns/SolidRichTextColumn.d.ts +0 -4
- package/dist/components/core/kanban/columns/SolidRichTextColumn.d.ts.map +0 -1
- package/dist/components/core/kanban/columns/SolidSelectionDynamicColumn.d.ts +0 -4
- package/dist/components/core/kanban/columns/SolidSelectionDynamicColumn.d.ts.map +0 -1
- package/dist/components/core/kanban/columns/SolidSelectionStaticColumn.d.ts +0 -4
- package/dist/components/core/kanban/columns/SolidSelectionStaticColumn.d.ts.map +0 -1
- package/dist/components/core/kanban/columns/SolidShortTextColumn.d.ts +0 -4
- package/dist/components/core/kanban/columns/SolidShortTextColumn.d.ts.map +0 -1
- package/dist/components/core/kanban/columns/SolidTimeColumn.d.ts +0 -4
- package/dist/components/core/kanban/columns/SolidTimeColumn.d.ts.map +0 -1
- package/dist/components/core/kanban/columns/SolidUuidColumn.d.ts +0 -4
- package/dist/components/core/kanban/columns/SolidUuidColumn.d.ts.map +0 -1
- package/dist/components/core/kanban/columns/relations/SolidRelationManyToOneColumn.d.ts +0 -4
- package/dist/components/core/kanban/columns/relations/SolidRelationManyToOneColumn.d.ts.map +0 -1
- package/dist/redux/hooks.d.ts +0 -2
- package/dist/redux/hooks.d.ts.map +0 -1
- package/dist/redux/store.d.ts +0 -375
- package/dist/redux/store.d.ts.map +0 -1
- package/solidstarters-solid-core-ui-1.0.0.tgz +0 -0
- package/solidstarters-solid-core-ui-1.0.1.tgz +0 -0
- package/src/components/common/FilterComponent.tsx +0 -428
|
@@ -1,26 +1,20 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
DataTable,
|
|
5
|
-
DataTableFilterMeta,
|
|
6
|
-
DataTableStateEvent,
|
|
7
|
-
} from "primereact/datatable";
|
|
8
|
-
import { Column } from "primereact/column";
|
|
9
|
-
import { FilterMatchMode } from "primereact/api";
|
|
10
|
-
import Link from "next/link";
|
|
11
|
-
import qs from "qs";
|
|
12
|
-
import { Button } from "primereact/button";
|
|
13
|
-
import { Dialog } from "primereact/dialog";
|
|
2
|
+
import { createPermission, deletePermission, updatePermission } from "@/helpers/permissions";
|
|
14
3
|
import { createSolidEntityApi } from "@/redux/api/solidEntityApi";
|
|
15
4
|
import { useGetSolidViewLayoutQuery } from "@/redux/api/solidViewApi";
|
|
16
5
|
import { useLazyCheckIfPermissionExistsQuery } from "@/redux/api/userApi";
|
|
17
|
-
import { createPermission, deletePermission, updatePermission } from "@/helpers/permissions";
|
|
18
|
-
import KanbanBoard from "./KanbanBoard";
|
|
19
|
-
import { SolidGlobalSearchElement } from "../common/SolidGlobalSearchElement";
|
|
20
|
-
import { SolidConfigureLayoutElement } from "../common/SolidConfigureLayoutElement";
|
|
21
|
-
import { SolidCreateButton } from "../common/SolidCreateButton";
|
|
22
6
|
import { DropResult } from "@hello-pangea/dnd";
|
|
23
|
-
import
|
|
7
|
+
import Link from "next/link";
|
|
8
|
+
import { FilterMatchMode } from "primereact/api";
|
|
9
|
+
import { Button } from "primereact/button";
|
|
10
|
+
import {
|
|
11
|
+
DataTableFilterMeta
|
|
12
|
+
} from "primereact/datatable";
|
|
13
|
+
import { Dialog } from "primereact/dialog";
|
|
14
|
+
import qs from "qs";
|
|
15
|
+
import { useEffect, useState } from "react";
|
|
16
|
+
import { SolidCreateButton } from "../common/SolidCreateButton";
|
|
17
|
+
import KanbanBoard from "./KanbanBoard";
|
|
24
18
|
|
|
25
19
|
type SolidKanbanViewParams = {
|
|
26
20
|
moduleName: string;
|
|
@@ -82,13 +76,13 @@ export const SolidKanbanView = (params: SolidKanbanViewParams) => {
|
|
|
82
76
|
const kanbanViewMetaDataQs = qs.stringify({ ...params, viewType: 'kanban' }, {
|
|
83
77
|
encodeValuesOnly: true,
|
|
84
78
|
});
|
|
85
|
-
const [kanbanViewMetaData, setKanbanViewMetaData] = useState({});
|
|
79
|
+
const [kanbanViewMetaData, setKanbanViewMetaData] = useState<any>({});
|
|
80
|
+
|
|
86
81
|
const {
|
|
87
82
|
data: solidKanbanViewMetaData,
|
|
88
83
|
error: solidKanbanViewMetaDataError,
|
|
89
84
|
isLoading: solidKanbanViewMetaDataIsLoading,
|
|
90
|
-
isError: solidKanbanViewMetaDataIsError
|
|
91
|
-
refetch
|
|
85
|
+
isError: solidKanbanViewMetaDataIsError
|
|
92
86
|
} = useGetSolidViewLayoutQuery(kanbanViewMetaDataQs);
|
|
93
87
|
|
|
94
88
|
|
|
@@ -100,46 +94,58 @@ export const SolidKanbanView = (params: SolidKanbanViewParams) => {
|
|
|
100
94
|
|
|
101
95
|
const initialFilters: any = {};
|
|
102
96
|
const toPopulate: string[] = [];
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
97
|
+
function extractFields(node: any, result: any = []) {
|
|
98
|
+
if (node.type === "field") {
|
|
99
|
+
result.push(node);
|
|
100
|
+
}
|
|
101
|
+
if (node.children) {
|
|
102
|
+
node.children.forEach((child: any) => extractFields(child, result));
|
|
103
|
+
}
|
|
104
|
+
return result;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
const data = { /* Your JSON object here */ };
|
|
108
|
+
const layoutFields = extractFields(solidView.layout);
|
|
109
|
+
|
|
110
|
+
for (let i = 0; i < layoutFields.length; i++) {
|
|
111
|
+
const column = layoutFields[i];
|
|
112
|
+
const fieldMetadata = solidFieldsMetadata[column.attrs.name];
|
|
113
|
+
|
|
114
|
+
// Form the initial filters after iterating over the columns and field metadata.
|
|
115
|
+
if (['int', 'bigint', 'float', 'decimal'].includes(fieldMetadata.type)) {
|
|
116
|
+
// initialFilters[column.attrs.name] = { operator: FilterOperator.OR, constraints: [{ value: null, matchMode: FilterMatchMode.EQUALS }] }
|
|
117
|
+
initialFilters[column.attrs.name] = { value: null, matchMode: FilterMatchMode.EQUALS }
|
|
118
|
+
}
|
|
119
|
+
else if (['date', 'datetime', 'time', 'boolean'].includes(fieldMetadata.type)) {
|
|
120
|
+
// initialFilters[column.attrs.name] = { operator: FilterOperator.OR, constraints: [{ value: null, matchMode: FilterMatchMode.DATE_IS }] }
|
|
121
|
+
initialFilters[column.attrs.name] = { value: null, matchMode: FilterMatchMode.EQUALS }
|
|
122
|
+
}
|
|
123
|
+
else if (['relation', 'selectionStatic', 'selectionDynamic'].includes(fieldMetadata.type)) {
|
|
124
|
+
initialFilters[column.attrs.name] = { value: null, matchMode: FilterMatchMode.IN }
|
|
125
|
+
}
|
|
126
|
+
else {
|
|
127
|
+
// initialFilters[column.attrs.name] = { operator: FilterOperator.OR, constraints: [{ value: null, matchMode: FilterMatchMode.STARTS_WITH }] }
|
|
128
|
+
initialFilters[column.attrs.name] = { value: null, matchMode: FilterMatchMode.STARTS_WITH }
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
if (column.attrs.name === 'id') {
|
|
132
|
+
initialFilters[column.attrs.name] = { value: null, matchMode: FilterMatchMode.IN }
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
// Form the "toPopulate" array.
|
|
136
|
+
if (fieldMetadata.type === 'relation' && fieldMetadata.relationType === 'many-to-one') {
|
|
137
|
+
toPopulate.push(fieldMetadata.name);
|
|
138
|
+
}
|
|
139
|
+
}
|
|
133
140
|
setFilters(initialFilters);
|
|
134
|
-
setRows(
|
|
141
|
+
setRows(kanbanViewMetaData?.data?.solidView?.layout?.attrs?.defaultPageSize ? kanbanViewMetaData?.data?.solidView?.layout?.attrs.defaultPageSize : 25)
|
|
135
142
|
setToPopulate(toPopulate);
|
|
136
143
|
}
|
|
137
144
|
|
|
138
145
|
useEffect(() => {
|
|
139
|
-
|
|
146
|
+
|
|
140
147
|
if (solidKanbanViewMetaData) {
|
|
141
148
|
setKanbanViewMetaData(solidKanbanViewMetaData);
|
|
142
|
-
|
|
143
149
|
initialFilterMethod()
|
|
144
150
|
}
|
|
145
151
|
}, [solidKanbanViewMetaData]);
|
|
@@ -153,13 +159,16 @@ export const SolidKanbanView = (params: SolidKanbanViewParams) => {
|
|
|
153
159
|
const [filterValues, setFilterValues] = useState([{ field: '', operator: '', value: '' }]);
|
|
154
160
|
const [first, setFirst] = useState(0);
|
|
155
161
|
const [rows, setRows] = useState(25);
|
|
156
|
-
const [sortField, setSortField] = useState("");
|
|
157
|
-
const [sortOrder, setSortOrder] = useState(0);
|
|
158
162
|
const [selectedRecords, setSelectedRecords] = useState<any[]>([]);
|
|
159
163
|
const [loading, setLoading] = useState<boolean>(true);
|
|
160
164
|
const [isDialogVisible, setDialogVisible] = useState(false);
|
|
161
165
|
const [createButtonUrl, setCreateButtonUrl] = useState<string>();
|
|
162
166
|
const [editButtonUrl, setEditButtonUrl] = useState<string>();
|
|
167
|
+
const [columnsCount, setColumnsCount] = useState(5);
|
|
168
|
+
const [swimLaneCurrentPageNumber, setSwimLaneCurrentPageNumber] = useState(1);
|
|
169
|
+
|
|
170
|
+
console.log("kanbanViewData", kanbanViewData);
|
|
171
|
+
|
|
163
172
|
|
|
164
173
|
// Get the kanban view data.
|
|
165
174
|
// const [triggerGetSolidEntitiesForKanban, { data: solidEntityKanbanViewData, isLoading, error }] = useLazyGetSolidKanbanEntitiesQuery();
|
|
@@ -186,22 +195,6 @@ export const SolidKanbanView = (params: SolidKanbanViewParams) => {
|
|
|
186
195
|
}
|
|
187
196
|
}, [solidEntityKanbanViewData]);
|
|
188
197
|
|
|
189
|
-
|
|
190
|
-
useEffect(() => {
|
|
191
|
-
if (solidKanbanViewMetaData) {
|
|
192
|
-
const createActionUrl = solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.createAction && solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.createAction?.type === "custom" ? solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.createAction?.customComponent : "form/new";
|
|
193
|
-
const editActionUrl = solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.editAction && solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.editAction?.type === "custom" ? solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.editAction?.customComponent : "form";
|
|
194
|
-
if (createActionUrl) {
|
|
195
|
-
setCreateButtonUrl(createActionUrl)
|
|
196
|
-
}
|
|
197
|
-
if (editActionUrl) {
|
|
198
|
-
setEditButtonUrl(editActionUrl)
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
}, [solidKanbanViewMetaData])
|
|
202
|
-
console.log("solidKanbanViewMetaData", solidKanbanViewMetaData);
|
|
203
|
-
|
|
204
|
-
|
|
205
198
|
// Delete mutation
|
|
206
199
|
const [
|
|
207
200
|
deleteManySolidEntities,
|
|
@@ -216,10 +209,28 @@ export const SolidKanbanView = (params: SolidKanbanViewParams) => {
|
|
|
216
209
|
|
|
217
210
|
|
|
218
211
|
|
|
212
|
+
|
|
213
|
+
|
|
219
214
|
// Fetch data after toPopulate has been populated...
|
|
220
215
|
useEffect(() => {
|
|
216
|
+
|
|
217
|
+
if (solidKanbanViewMetaData) {
|
|
218
|
+
const createActionUrl = solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.createAction && solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.createAction?.type === "custom" ? solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.createAction?.customComponent : "form/new";
|
|
219
|
+
const editActionUrl = solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.editAction && solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.editAction?.type === "custom" ? solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.editAction?.customComponent : "form";
|
|
220
|
+
if (solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.pageSize) {
|
|
221
|
+
setColumnsCount(solidKanbanViewMetaData?.data.solidView?.layout?.attrs?.pageSize)
|
|
222
|
+
}
|
|
223
|
+
if (createActionUrl) {
|
|
224
|
+
setCreateButtonUrl(createActionUrl)
|
|
225
|
+
}
|
|
226
|
+
if (editActionUrl) {
|
|
227
|
+
setEditButtonUrl(editActionUrl)
|
|
228
|
+
}
|
|
229
|
+
}
|
|
221
230
|
if (solidKanbanViewMetaData) {
|
|
222
231
|
const groupByFieldName = solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.groupBy;
|
|
232
|
+
const columnsToLoadCount = solidKanbanViewMetaData?.data.solidView?.layout?.attrs?.pageSize || 5;
|
|
233
|
+
|
|
223
234
|
if (toPopulate) {
|
|
224
235
|
const queryData = {
|
|
225
236
|
offset: 0,
|
|
@@ -229,7 +240,7 @@ export const SolidKanbanView = (params: SolidKanbanViewParams) => {
|
|
|
229
240
|
populate: toPopulate,
|
|
230
241
|
populateGroup: true,
|
|
231
242
|
groupFilter: {
|
|
232
|
-
limit:
|
|
243
|
+
limit: rows,
|
|
233
244
|
offset: 0
|
|
234
245
|
}
|
|
235
246
|
// sort: [`id:desc`],
|
|
@@ -246,182 +257,8 @@ export const SolidKanbanView = (params: SolidKanbanViewParams) => {
|
|
|
246
257
|
|
|
247
258
|
}, [isDeleteSolidEntitiesSucess, toPopulate, solidKanbanViewMetaData]);
|
|
248
259
|
|
|
249
|
-
// Handle pagination event.
|
|
250
|
-
const onPageChange = (event: any) => {
|
|
251
|
-
setFirst(event.first);
|
|
252
|
-
setRows(event.rows);
|
|
253
|
-
setQueryString(event.first, event.rows, sortField, sortOrder, filters);
|
|
254
|
-
};
|
|
255
|
-
|
|
256
|
-
// Handle sort event.
|
|
257
|
-
const onSort = (event: DataTableStateEvent) => {
|
|
258
|
-
const { sortField, sortOrder } = event;
|
|
259
|
-
const validSortOrder = sortOrder === 1 || sortOrder === -1 ? sortOrder : 0;
|
|
260
|
-
setSortField(sortField);
|
|
261
|
-
setSortOrder(validSortOrder);
|
|
262
|
-
setFirst(0);
|
|
263
|
-
setQueryString(
|
|
264
|
-
0,
|
|
265
|
-
rows,
|
|
266
|
-
sortField,
|
|
267
|
-
sortOrder === 1 || sortOrder === -1 ? sortOrder : 0,
|
|
268
|
-
filters
|
|
269
|
-
);
|
|
270
|
-
};
|
|
271
|
-
|
|
272
|
-
// handle change in the records which are currently selected...
|
|
273
|
-
const onSelectionChange = (event: any) => {
|
|
274
|
-
const value = event.value;
|
|
275
|
-
setSelectedRecords(value);
|
|
276
|
-
};
|
|
277
|
-
|
|
278
|
-
const identifySolidOperatorAndValue = (primeReactMatchMode: FilterMatchMode, value: any): { operator: string, value: string | string[] | any[] } => {
|
|
279
|
-
// @ts-ignore
|
|
280
|
-
if (primeReactMatchMode.label && primeReactMatchMode.label === 'Not In') {
|
|
281
|
-
primeReactMatchMode = FilterMatchMode.NOT_IN;
|
|
282
|
-
}
|
|
283
|
-
|
|
284
|
-
// Default value, this might not be useful as the solid server might not support these match modes.
|
|
285
|
-
let solidOperator = '';
|
|
286
|
-
let solidValue = value[0];
|
|
287
|
-
|
|
288
|
-
switch (primeReactMatchMode) {
|
|
289
|
-
case FilterMatchMode.STARTS_WITH:
|
|
290
|
-
solidOperator = "$startsWithi";
|
|
291
|
-
break;
|
|
292
|
-
case FilterMatchMode.CONTAINS:
|
|
293
|
-
solidOperator = "$containsi";
|
|
294
|
-
break;
|
|
295
|
-
case FilterMatchMode.NOT_CONTAINS:
|
|
296
|
-
solidOperator = "$notContains";
|
|
297
|
-
break;
|
|
298
|
-
case FilterMatchMode.ENDS_WITH:
|
|
299
|
-
solidOperator = "$endsWith";
|
|
300
|
-
break;
|
|
301
|
-
case FilterMatchMode.EQUALS:
|
|
302
|
-
solidOperator = "$eqi";
|
|
303
|
-
solidValue = value;
|
|
304
|
-
break;
|
|
305
|
-
case FilterMatchMode.NOT_EQUALS:
|
|
306
|
-
solidOperator = "$nei";
|
|
307
|
-
solidValue = value;
|
|
308
|
-
break;
|
|
309
|
-
case FilterMatchMode.IN:
|
|
310
|
-
solidOperator = "$in";
|
|
311
|
-
solidValue = value;
|
|
312
|
-
break;
|
|
313
|
-
case FilterMatchMode.NOT_IN:
|
|
314
|
-
solidOperator = "$notIn";
|
|
315
|
-
solidValue = value;
|
|
316
|
-
break;
|
|
317
|
-
case FilterMatchMode.LESS_THAN:
|
|
318
|
-
solidOperator = "$lt";
|
|
319
|
-
break;
|
|
320
|
-
case FilterMatchMode.LESS_THAN_OR_EQUAL_TO:
|
|
321
|
-
solidOperator = "$lte";
|
|
322
|
-
break;
|
|
323
|
-
case FilterMatchMode.GREATER_THAN:
|
|
324
|
-
solidOperator = "$gt";
|
|
325
|
-
break;
|
|
326
|
-
case FilterMatchMode.GREATER_THAN_OR_EQUAL_TO:
|
|
327
|
-
solidOperator = "$gte";
|
|
328
|
-
break;
|
|
329
|
-
case FilterMatchMode.BETWEEN:
|
|
330
|
-
solidOperator = "$between";
|
|
331
|
-
solidValue = value;
|
|
332
|
-
break;
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
return { operator: solidOperator, value: solidValue };
|
|
336
|
-
|
|
337
|
-
}
|
|
338
|
-
|
|
339
|
-
// Common utility function that gets called on filter, sort & pagination events.
|
|
340
|
-
// This function creates the query string as per the solid backend API specification
|
|
341
|
-
const setQueryString = async (
|
|
342
|
-
offset?: number,
|
|
343
|
-
limit?: number,
|
|
344
|
-
sortField?: string,
|
|
345
|
-
sortOrder?: number,
|
|
346
|
-
filterQuery?: any
|
|
347
|
-
) => {
|
|
348
|
-
|
|
349
|
-
const formattedFilters: any = {};
|
|
350
|
-
const solidFieldsMetadata = solidKanbanViewMetaData.data.solidFieldsMetadata;
|
|
351
|
-
|
|
352
|
-
filterQuery.forEach((fieldData: any) => {
|
|
353
|
-
|
|
354
|
-
const filterFieldMeta = solidFieldsMetadata[fieldData.field];
|
|
355
|
-
|
|
356
|
-
// Some filters will not have constraints
|
|
357
|
-
if (!fieldData.constraints) {
|
|
358
|
-
if (fieldData.value != null) {
|
|
359
|
-
const { operator, value } = identifySolidOperatorAndValue(fieldData.operator, fieldData.value);
|
|
360
|
-
|
|
361
|
-
// Massage the filter value for relation many-to-one before sending to the server.
|
|
362
|
-
if (filterFieldMeta.type === 'relation' && filterFieldMeta.relationType === 'many-to-one') {
|
|
363
|
-
// @ts-ignore
|
|
364
|
-
const manyToOneIds = value.map(i => i.value);
|
|
365
|
-
formattedFilters[fieldData.field] = { [operator]: manyToOneIds };
|
|
366
|
-
}
|
|
367
|
-
// Massage the filter value for selectionStatic before sending to the server.
|
|
368
|
-
else if (['selectionStatic', 'selectionDynamic'].includes(filterFieldMeta.type)) {
|
|
369
|
-
// @ts-ignore
|
|
370
|
-
const values = value.map(i => i.value);
|
|
371
|
-
formattedFilters[fieldData.field] = { [operator]: values };
|
|
372
|
-
}
|
|
373
|
-
else {
|
|
374
|
-
formattedFilters[fieldData.field] = { [operator]: value };
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
}
|
|
378
|
-
// TODO: Incase we start supporting multiple constraints in the future then we need to implement an else block here.
|
|
379
|
-
else { }
|
|
380
|
-
|
|
381
|
-
});
|
|
382
260
|
|
|
383
|
-
const groupByFieldName = solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.groupBy;
|
|
384
|
-
const queryData: any = {
|
|
385
|
-
offset: offset ?? first,
|
|
386
|
-
limit: limit ?? rows,
|
|
387
|
-
populate: toPopulate,
|
|
388
|
-
fields: [`${groupByFieldName}`, `count(${groupByFieldName})`],
|
|
389
|
-
groupBy: groupByFieldName,
|
|
390
|
-
populateGroup: true,
|
|
391
|
-
filters: formattedFilters,
|
|
392
|
-
};
|
|
393
261
|
|
|
394
|
-
// if (sortField) {
|
|
395
|
-
// const sortFieldMetadata = solidFieldsMetadata[sortField];
|
|
396
|
-
// if (sortFieldMetadata.type === 'relation' && sortFieldMetadata.relationType === 'many-to-one') {
|
|
397
|
-
// sortField = `${sortField}.${sortFieldMetadata.relationModel.userKeyField.name}`;
|
|
398
|
-
// }
|
|
399
|
-
// queryData.sort = [
|
|
400
|
-
// `${sortField}:${sortOrder == 0 ? null : sortOrder == 1 ? "asc" : "desc"}`,
|
|
401
|
-
// ];
|
|
402
|
-
// }
|
|
403
|
-
// else {
|
|
404
|
-
// queryData.sort = [`id:desc`];
|
|
405
|
-
// }
|
|
406
|
-
|
|
407
|
-
const queryString = qs.stringify(queryData, {
|
|
408
|
-
encodeValuesOnly: true,
|
|
409
|
-
});
|
|
410
|
-
|
|
411
|
-
triggerGetSolidEntities(queryString);
|
|
412
|
-
};
|
|
413
|
-
|
|
414
|
-
// handle filter...
|
|
415
|
-
const onFilter = (e: any) => {
|
|
416
|
-
setFilters(e.filters);
|
|
417
|
-
setQueryString(
|
|
418
|
-
0,
|
|
419
|
-
rows,
|
|
420
|
-
sortField,
|
|
421
|
-
sortOrder === 1 || sortOrder === -1 ? sortOrder : 0,
|
|
422
|
-
e.filters
|
|
423
|
-
);
|
|
424
|
-
};
|
|
425
262
|
|
|
426
263
|
// clear Filter
|
|
427
264
|
const clearFilter = () => {
|
|
@@ -590,18 +427,40 @@ export const SolidKanbanView = (params: SolidKanbanViewParams) => {
|
|
|
590
427
|
);
|
|
591
428
|
};
|
|
592
429
|
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
430
|
+
|
|
431
|
+
const handleSwimLinPagination = async () => {
|
|
432
|
+
|
|
433
|
+
if (solidKanbanViewMetaData) {
|
|
434
|
+
const groupByFieldName = solidKanbanViewMetaData?.data?.solidView?.layout?.attrs?.groupBy;
|
|
435
|
+
const columnsToLoadCount = solidKanbanViewMetaData?.data.solidView?.layout?.attrs?.pageSize || 5;
|
|
436
|
+
const queryData = {
|
|
437
|
+
offset: swimLaneCurrentPageNumber * 2,
|
|
438
|
+
limit: 2,
|
|
439
|
+
fields: [`${groupByFieldName}`, `count(${groupByFieldName})`],
|
|
440
|
+
groupBy: groupByFieldName,
|
|
441
|
+
populate: toPopulate,
|
|
442
|
+
populateGroup: true,
|
|
443
|
+
groupFilter: {
|
|
444
|
+
limit: rows,
|
|
445
|
+
offset: 0
|
|
446
|
+
}
|
|
447
|
+
// sort: [`id:desc`],
|
|
448
|
+
};
|
|
449
|
+
// fields=status&groupBy=status&fields=count(status)&populateGroup=true
|
|
450
|
+
const queryString = qs.stringify(queryData, {
|
|
451
|
+
encodeValuesOnly: true
|
|
452
|
+
});
|
|
453
|
+
|
|
454
|
+
const data: any = await triggerGetSolidEntities(queryString);
|
|
455
|
+
console.log("data", data);
|
|
456
|
+
if (data && data?.data?.groupRecords.length > 0) {
|
|
457
|
+
const updatedData = [...kanbanViewData, ...data.data.groupRecords];
|
|
458
|
+
setKanbanViewData(updatedData);
|
|
459
|
+
}
|
|
460
|
+
setSwimLaneCurrentPageNumber(swimLaneCurrentPageNumber + 1)
|
|
461
|
+
}
|
|
602
462
|
}
|
|
603
463
|
|
|
604
|
-
|
|
605
464
|
|
|
606
465
|
return (
|
|
607
466
|
<>
|
|
@@ -632,17 +491,17 @@ export const SolidKanbanView = (params: SolidKanbanViewParams) => {
|
|
|
632
491
|
/>
|
|
633
492
|
}
|
|
634
493
|
|
|
635
|
-
{solidKanbanViewMetaData?.data?.solidView?.layout?.attrs.enableGlobalSearch === true &&
|
|
636
|
-
<SolidGlobalSearchElement solidKanbanViewMetaData={solidKanbanViewMetaData} applyFilter={applyFilter} filterValues={filterValues} setFilterValues={setFilterValues}></SolidGlobalSearchElement>
|
|
637
|
-
}
|
|
494
|
+
{/* {solidKanbanViewMetaData?.data?.solidView?.layout?.attrs.enableGlobalSearch === true &&
|
|
495
|
+
// <SolidGlobalSearchElement solidKanbanViewMetaData={solidKanbanViewMetaData} applyFilter={applyFilter} filterValues={filterValues} setFilterValues={setFilterValues}></SolidGlobalSearchElement>
|
|
496
|
+
} */}
|
|
638
497
|
</div>
|
|
639
498
|
|
|
640
|
-
<SolidConfigureLayoutElement></SolidConfigureLayoutElement>
|
|
499
|
+
{/* <SolidConfigureLayoutElement></SolidConfigureLayoutElement> */}
|
|
641
500
|
|
|
642
501
|
</div>
|
|
643
502
|
<style>{`.p-datatable .p-datatable-loading-overlay {background-color: rgba(0, 0, 0, 0.0);}`}</style>
|
|
644
503
|
{solidKanbanViewMetaData && kanbanViewData &&
|
|
645
|
-
<KanbanBoard kanbanViewData={kanbanViewData} solidViewMetaData={solidKanbanViewMetaData?.data} setKanbanViewData={setKanbanViewData} handleLoadMore={handleLoadMore} onDragEnd={onDragEnd}></KanbanBoard>
|
|
504
|
+
<KanbanBoard kanbanViewData={kanbanViewData} solidViewMetaData={solidKanbanViewMetaData?.data} setKanbanViewData={setKanbanViewData} handleLoadMore={handleLoadMore} onDragEnd={onDragEnd} handleSwimLinPagination={handleSwimLinPagination}></KanbanBoard>
|
|
646
505
|
}
|
|
647
506
|
|
|
648
507
|
<Dialog
|