@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
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { useRegisterMutation } from "@/redux/api/authApi";
|
|
4
|
+
import { FetchBaseQueryError } from "@reduxjs/toolkit/query/react";
|
|
5
|
+
import { useFormik } from "formik";
|
|
6
|
+
import Link from "next/link";
|
|
7
|
+
import { useRouter } from "next/navigation";
|
|
8
|
+
import { Button } from "primereact/button";
|
|
9
|
+
import { InputText } from "primereact/inputtext";
|
|
10
|
+
import { Message } from "primereact/message";
|
|
11
|
+
import { Password } from "primereact/password";
|
|
12
|
+
import { Toast } from "primereact/toast";
|
|
13
|
+
import { classNames } from "primereact/utils";
|
|
14
|
+
import { ChangeEventHandler, useContext, useEffect, useRef, useState } from "react";
|
|
15
|
+
import * as Yup from "yup";
|
|
16
|
+
import { LayoutContext } from "../layout/context/layoutcontext";
|
|
17
|
+
|
|
18
|
+
const SolidRegister = () => {
|
|
19
|
+
const { layoutConfig } = useContext(LayoutContext);
|
|
20
|
+
const { authLayout } = layoutConfig;
|
|
21
|
+
const toast = useRef<Toast>(null);
|
|
22
|
+
const [password, setPassword] = useState("");
|
|
23
|
+
const [checked, setChecked] = useState<boolean>(false);
|
|
24
|
+
const [showPassword, setShowPassword] = useState(false);
|
|
25
|
+
const [user, setUser] = useState({
|
|
26
|
+
name: "",
|
|
27
|
+
email: "",
|
|
28
|
+
password: "",
|
|
29
|
+
});
|
|
30
|
+
|
|
31
|
+
const validationSchema = Yup.object({
|
|
32
|
+
username: Yup.string().required("User Name is required"),
|
|
33
|
+
email: Yup.string()
|
|
34
|
+
.email("Invalid email address")
|
|
35
|
+
.required("Email is required"),
|
|
36
|
+
password: Yup.string().required("Password is required"),
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
const router = useRouter();
|
|
40
|
+
|
|
41
|
+
const isFormFieldValid = (formik: any, fieldName: string) =>
|
|
42
|
+
formik.touched[fieldName] && formik.errors[fieldName];
|
|
43
|
+
|
|
44
|
+
const [register, { isLoading, error, isSuccess, data }] = useRegisterMutation();
|
|
45
|
+
|
|
46
|
+
const onChange: ChangeEventHandler<HTMLInputElement> = (e) => {
|
|
47
|
+
setUser({ ...user, [e.target.name]: e.target.value });
|
|
48
|
+
};
|
|
49
|
+
|
|
50
|
+
const initialValues = {
|
|
51
|
+
username: "",
|
|
52
|
+
email: "",
|
|
53
|
+
password: "",
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
const formik = useFormik({
|
|
57
|
+
initialValues,
|
|
58
|
+
validationSchema,
|
|
59
|
+
enableReinitialize: true,
|
|
60
|
+
onSubmit: async (values) => {
|
|
61
|
+
try {
|
|
62
|
+
const userData = {
|
|
63
|
+
username: values.username,
|
|
64
|
+
email: values.email,
|
|
65
|
+
password: values.password,
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
await register(userData);
|
|
69
|
+
} catch (err) {
|
|
70
|
+
console.log('inside', err);
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
});
|
|
74
|
+
|
|
75
|
+
const showError = () => {
|
|
76
|
+
if (error) {
|
|
77
|
+
if ("data" in error) {
|
|
78
|
+
const apiError = error as FetchBaseQueryError;
|
|
79
|
+
const errorMessages = Array.isArray(apiError.data?.message)
|
|
80
|
+
? apiError.data?.message
|
|
81
|
+
: [apiError.data?.message];
|
|
82
|
+
|
|
83
|
+
toast.current?.show({
|
|
84
|
+
severity: "error",
|
|
85
|
+
summary: "Error",
|
|
86
|
+
detail: errorMessages.join(", "),
|
|
87
|
+
life: 3000,
|
|
88
|
+
});
|
|
89
|
+
} else {
|
|
90
|
+
const serializedError = error as Error;
|
|
91
|
+
toast.current?.show({
|
|
92
|
+
severity: "error",
|
|
93
|
+
summary: "Error",
|
|
94
|
+
detail: serializedError.message || "An error occurred",
|
|
95
|
+
life: 3000,
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
useEffect(() => {
|
|
102
|
+
if (error) {
|
|
103
|
+
showError();
|
|
104
|
+
}
|
|
105
|
+
}, [error]);
|
|
106
|
+
|
|
107
|
+
useEffect(() => {
|
|
108
|
+
if (isSuccess) {
|
|
109
|
+
router.replace("/auth/login");
|
|
110
|
+
}
|
|
111
|
+
}, [isSuccess])
|
|
112
|
+
return (
|
|
113
|
+
<>
|
|
114
|
+
<Toast ref={toast} />
|
|
115
|
+
<div className={`auth-container ${authLayout === 'Center' ? 'center' : 'side'}`}>
|
|
116
|
+
<div className="flex justify-content-center">
|
|
117
|
+
<div className="solid-logo flex align-items-center gap-3">
|
|
118
|
+
<img
|
|
119
|
+
alt="solid logo"
|
|
120
|
+
src={'/images/SS-Logo-1 1.png'}
|
|
121
|
+
className="position-relative img-fluid"
|
|
122
|
+
/>
|
|
123
|
+
<div>
|
|
124
|
+
<p className="solid-logo-title">
|
|
125
|
+
Solid<br />Starters
|
|
126
|
+
</p>
|
|
127
|
+
</div>
|
|
128
|
+
</div>
|
|
129
|
+
</div>
|
|
130
|
+
<h2 className="solid-auth-title text-center">Sign Up To Your Account</h2>
|
|
131
|
+
<p className="solid-auth-subtitle text-sm">By continuing, you agree to the <Link href={'#'}>Terms of Service</Link> and acknowledge you’ve read our <Link href={'#'}>Privacy Policy.</Link> </p>
|
|
132
|
+
<>
|
|
133
|
+
<form onSubmit={formik.handleSubmit}>
|
|
134
|
+
<div className="grid">
|
|
135
|
+
<div className="col-6">
|
|
136
|
+
<div className="flex flex-column gap-2">
|
|
137
|
+
<label htmlFor="email" className="solid-auth-input-label">First Name</label>
|
|
138
|
+
<InputText
|
|
139
|
+
id="username"
|
|
140
|
+
name="username"
|
|
141
|
+
placeholder="username"
|
|
142
|
+
onChange={formik.handleChange}
|
|
143
|
+
value={formik.values.username}
|
|
144
|
+
/>
|
|
145
|
+
{isFormFieldValid(formik, "username") && <Message
|
|
146
|
+
className="text-red-500 text-sm"
|
|
147
|
+
severity="error"
|
|
148
|
+
text={formik?.errors?.username?.toString()}
|
|
149
|
+
/>}
|
|
150
|
+
</div>
|
|
151
|
+
</div>
|
|
152
|
+
<div className="col-6">
|
|
153
|
+
<div className="flex flex-column gap-2">
|
|
154
|
+
<label htmlFor="email" className="solid-auth-input-label">Last Name</label>
|
|
155
|
+
<InputText
|
|
156
|
+
id="email"
|
|
157
|
+
name="email"
|
|
158
|
+
placeholder="Yourgmail@123.com"
|
|
159
|
+
onChange={formik.handleChange}
|
|
160
|
+
value={formik.values.email}
|
|
161
|
+
/>
|
|
162
|
+
{isFormFieldValid(formik, "email") && <Message
|
|
163
|
+
className="text-red-500 text-sm"
|
|
164
|
+
severity="error"
|
|
165
|
+
text={formik?.errors?.email?.toString()}
|
|
166
|
+
/>}
|
|
167
|
+
</div>
|
|
168
|
+
</div>
|
|
169
|
+
</div>
|
|
170
|
+
<div className="flex flex-column gap-2 mt-3">
|
|
171
|
+
<label htmlFor="email" className="solid-auth-input-label">Email</label>
|
|
172
|
+
<InputText
|
|
173
|
+
id="email"
|
|
174
|
+
name="email"
|
|
175
|
+
placeholder="Yourgmail@123.com"
|
|
176
|
+
onChange={formik.handleChange}
|
|
177
|
+
value={formik.values.email}
|
|
178
|
+
/>
|
|
179
|
+
{isFormFieldValid(formik, "email") && <Message
|
|
180
|
+
className="text-red-500 text-sm"
|
|
181
|
+
severity="error"
|
|
182
|
+
text={formik?.errors?.email?.toString()}
|
|
183
|
+
/>}
|
|
184
|
+
</div>
|
|
185
|
+
<div className="flex flex-column gap-2 mt-3">
|
|
186
|
+
<label htmlFor="password" className="solid-auth-input-label">Password</label>
|
|
187
|
+
<Password
|
|
188
|
+
id="password"
|
|
189
|
+
name="password"
|
|
190
|
+
value={formik.values.password}
|
|
191
|
+
onChange={formik.handleChange}
|
|
192
|
+
placeholder="***************"
|
|
193
|
+
toggleMask
|
|
194
|
+
className={classNames("", {
|
|
195
|
+
"p-invalid": isFormFieldValid(formik, "password"),
|
|
196
|
+
})}
|
|
197
|
+
inputClassName="w-full"
|
|
198
|
+
feedback={false}
|
|
199
|
+
/>
|
|
200
|
+
{isFormFieldValid(formik, "password") && <Message
|
|
201
|
+
className="text-red-500 text-sm"
|
|
202
|
+
severity="error"
|
|
203
|
+
text={formik?.errors?.password?.toString()}
|
|
204
|
+
/>}
|
|
205
|
+
</div>
|
|
206
|
+
<div className="mt-4">
|
|
207
|
+
<Button className="w-full font-light" label="Sign Up" />
|
|
208
|
+
</div>
|
|
209
|
+
</form>
|
|
210
|
+
</>
|
|
211
|
+
</div>
|
|
212
|
+
<div className="text-center mt-5">
|
|
213
|
+
<div className="text-sm text-400 secondary-dark-color">
|
|
214
|
+
Already have an account ? <Link className="font-bold" href="/auth/login">Sign In</Link>
|
|
215
|
+
</div>
|
|
216
|
+
</div>
|
|
217
|
+
</>
|
|
218
|
+
);
|
|
219
|
+
};
|
|
220
|
+
|
|
221
|
+
export default SolidRegister;
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
|
|
3
|
+
import { Form, Formik } from "formik";
|
|
4
|
+
import { signIn } from "next-auth/react";
|
|
5
|
+
import Link from "next/link";
|
|
6
|
+
import { useRouter } from "next/navigation";
|
|
7
|
+
import { Button } from "primereact/button";
|
|
8
|
+
import { Message } from "primereact/message";
|
|
9
|
+
import { Password } from "primereact/password";
|
|
10
|
+
import { Toast } from "primereact/toast";
|
|
11
|
+
import { classNames } from "primereact/utils";
|
|
12
|
+
import { useContext, useRef, useState } from "react";
|
|
13
|
+
import * as Yup from "yup";
|
|
14
|
+
import { LayoutContext } from "../layout/context/layoutcontext";
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
const SolidResetPassword = () => {
|
|
18
|
+
const { layoutConfig } = useContext(LayoutContext);
|
|
19
|
+
const { authLayout } = layoutConfig;
|
|
20
|
+
const toast = useRef<Toast>(null);
|
|
21
|
+
const router = useRouter();
|
|
22
|
+
|
|
23
|
+
const [password, setPassword] = useState('');
|
|
24
|
+
const [checked, setChecked] = useState<boolean>(false);
|
|
25
|
+
|
|
26
|
+
const validationSchema = Yup.object({
|
|
27
|
+
email: Yup.string()
|
|
28
|
+
.email("Invalid email address")
|
|
29
|
+
.required("Email is required"),
|
|
30
|
+
password: Yup.string().required("Password is required"),
|
|
31
|
+
});
|
|
32
|
+
|
|
33
|
+
const showToast = (severity: "success" | "error", summary: string, detail: string) => {
|
|
34
|
+
toast.current?.show({
|
|
35
|
+
severity,
|
|
36
|
+
summary,
|
|
37
|
+
detail,
|
|
38
|
+
life: 3000,
|
|
39
|
+
});
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
const isFormFieldValid = (formik: any, fieldName: string) =>
|
|
43
|
+
formik.touched[fieldName] && formik.errors[fieldName];
|
|
44
|
+
|
|
45
|
+
return (
|
|
46
|
+
<>
|
|
47
|
+
<Toast ref={toast} />
|
|
48
|
+
<div className={`auth-container ${authLayout === 'Center' ? 'center' : 'side'}`}>
|
|
49
|
+
<div className="flex justify-content-center">
|
|
50
|
+
<div className="solid-logo flex align-items-center gap-3">
|
|
51
|
+
<img
|
|
52
|
+
alt="solid logo"
|
|
53
|
+
src={'/images/SS-Logo-1 1.png'}
|
|
54
|
+
className="position-relative img-fluid"
|
|
55
|
+
/>
|
|
56
|
+
<div>
|
|
57
|
+
<p className="solid-logo-title">
|
|
58
|
+
Solid<br />Starters
|
|
59
|
+
</p>
|
|
60
|
+
</div>
|
|
61
|
+
</div>
|
|
62
|
+
</div>
|
|
63
|
+
<h2 className="solid-auth-title text-center">Create New Password</h2>
|
|
64
|
+
<p className="solid-auth-subtitle text-sm">By continuing, you agree to the <Link href={'#'}>Terms of Service</Link> and acknowledge you’ve read our <Link href={'#'}>Privacy Policy.</Link> </p>
|
|
65
|
+
<>
|
|
66
|
+
<Formik
|
|
67
|
+
initialValues={{
|
|
68
|
+
email: "",
|
|
69
|
+
password: "",
|
|
70
|
+
}}
|
|
71
|
+
validationSchema={validationSchema}
|
|
72
|
+
onSubmit={async (values) => {
|
|
73
|
+
// Handle form submission
|
|
74
|
+
const email = values.email;
|
|
75
|
+
const password = values.password;
|
|
76
|
+
|
|
77
|
+
const response = await signIn("credentials", {
|
|
78
|
+
redirect: false,
|
|
79
|
+
email,
|
|
80
|
+
password,
|
|
81
|
+
});
|
|
82
|
+
if (response?.error) {
|
|
83
|
+
showToast("error", "Login Error", response.error);
|
|
84
|
+
} else {
|
|
85
|
+
showToast("success", "Login Success", "Redirecting to dashboard...");
|
|
86
|
+
router.push("/admin/core/solid-core/user/list");
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
}}
|
|
90
|
+
>
|
|
91
|
+
{(formik) => (
|
|
92
|
+
<Form>
|
|
93
|
+
<div className="flex flex-column gap-2">
|
|
94
|
+
<label htmlFor="email" className="solid-auth-input-label">New Password</label>
|
|
95
|
+
<Password
|
|
96
|
+
id="password"
|
|
97
|
+
placeholder="***************"
|
|
98
|
+
value={password}
|
|
99
|
+
onChange={(e) => {
|
|
100
|
+
setPassword(e.target.value);
|
|
101
|
+
formik.setFieldValue("password", e.target.value);
|
|
102
|
+
}}
|
|
103
|
+
toggleMask
|
|
104
|
+
className={classNames("", {
|
|
105
|
+
"p-invalid": isFormFieldValid(formik, "password"),
|
|
106
|
+
})}
|
|
107
|
+
inputClassName="w-full"
|
|
108
|
+
feedback={false}
|
|
109
|
+
/>
|
|
110
|
+
{isFormFieldValid(formik, "password") && <Message
|
|
111
|
+
className="text-red-500 text-sm"
|
|
112
|
+
severity="error"
|
|
113
|
+
text={formik?.errors?.password?.toString()}
|
|
114
|
+
/>}
|
|
115
|
+
</div>
|
|
116
|
+
<div className="flex flex-column gap-2 mt-4" style={{}}>
|
|
117
|
+
<label htmlFor="password" className="solid-auth-input-label">Confirm Password</label>
|
|
118
|
+
<Password
|
|
119
|
+
id="password"
|
|
120
|
+
placeholder="***************"
|
|
121
|
+
value={password}
|
|
122
|
+
onChange={(e) => {
|
|
123
|
+
setPassword(e.target.value);
|
|
124
|
+
formik.setFieldValue("password", e.target.value);
|
|
125
|
+
}}
|
|
126
|
+
toggleMask
|
|
127
|
+
className={classNames("", {
|
|
128
|
+
"p-invalid": isFormFieldValid(formik, "password"),
|
|
129
|
+
})}
|
|
130
|
+
inputClassName="w-full"
|
|
131
|
+
feedback={false}
|
|
132
|
+
/>
|
|
133
|
+
{isFormFieldValid(formik, "password") && <Message
|
|
134
|
+
className="text-red-500 text-sm"
|
|
135
|
+
severity="error"
|
|
136
|
+
text={formik?.errors?.password?.toString()}
|
|
137
|
+
/>}
|
|
138
|
+
</div>
|
|
139
|
+
{/* <div className="flex align-items-center mt-4">
|
|
140
|
+
<Checkbox inputId="remember" onChange={(e: any) => setChecked(e.checked)} checked={checked} />
|
|
141
|
+
<label htmlFor="remember" className="ml-2">Remember me</label>
|
|
142
|
+
</div> */}
|
|
143
|
+
<div className="mt-4">
|
|
144
|
+
<Button className="w-full font-light" label="Reset Password" />
|
|
145
|
+
</div>
|
|
146
|
+
</Form>
|
|
147
|
+
)}
|
|
148
|
+
</Formik>
|
|
149
|
+
</>
|
|
150
|
+
</div>
|
|
151
|
+
<div className="text-center mt-5">
|
|
152
|
+
<div className="text-sm text-400 secondary-dark-color">
|
|
153
|
+
{'<'} Back to <Link className="font-bold" href="/auth/login">Sign In</Link>
|
|
154
|
+
</div>
|
|
155
|
+
</div>
|
|
156
|
+
</>
|
|
157
|
+
);
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
export default SolidResetPassword;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
// @ts-nocheck
|
|
2
|
-
|
|
2
|
+
"use client";
|
|
3
|
+
|
|
3
4
|
import { Calendar } from 'primereact/calendar';
|
|
4
5
|
import { Dropdown } from 'primereact/dropdown';
|
|
5
6
|
import { InputNumber } from 'primereact/inputnumber';
|
|
@@ -9,17 +10,17 @@ import React, { useEffect, useState } from 'react';
|
|
|
9
10
|
import { SolidFilterFields } from '../filter/SolidFilterFields';
|
|
10
11
|
import { Button } from 'primereact/button';
|
|
11
12
|
|
|
12
|
-
enum FilterRuleType {
|
|
13
|
+
export enum FilterRuleType {
|
|
13
14
|
RULE = 'rule',
|
|
14
15
|
RULE_GROUP = 'rule_group'
|
|
15
16
|
}
|
|
16
17
|
|
|
17
|
-
enum FilterOperator {
|
|
18
|
+
export enum FilterOperator {
|
|
18
19
|
AND = 'and',
|
|
19
20
|
OR = 'or'
|
|
20
21
|
}
|
|
21
22
|
|
|
22
|
-
enum FilterMatchMode {
|
|
23
|
+
export enum FilterMatchMode {
|
|
23
24
|
STARTS_WITH = 'startsWith',
|
|
24
25
|
CONTAINS = 'contains',
|
|
25
26
|
EQUALS = 'equals',
|
|
@@ -27,18 +28,18 @@ enum FilterMatchMode {
|
|
|
27
28
|
LESS_THAN = 'lt',
|
|
28
29
|
}
|
|
29
30
|
|
|
30
|
-
interface FilterRule {
|
|
31
|
+
export interface FilterRule {
|
|
31
32
|
id: number;
|
|
32
33
|
type: FilterRuleType;
|
|
33
34
|
matchOperator?: FilterOperator;
|
|
34
|
-
fieldName?: string;
|
|
35
|
-
matchMode?: FilterMatchMode;
|
|
35
|
+
fieldName?: string | null;
|
|
36
|
+
matchMode?: FilterMatchMode | null;
|
|
36
37
|
value?: any;
|
|
37
38
|
parentRule: number | null;
|
|
38
39
|
children?: FilterRule[];
|
|
39
40
|
}
|
|
40
41
|
|
|
41
|
-
interface Field {
|
|
42
|
+
export interface Field {
|
|
42
43
|
name: string;
|
|
43
44
|
type: 'string' | 'number' | 'date';
|
|
44
45
|
}
|
|
@@ -87,28 +88,31 @@ const FilterRuleComponent = ({ viewData, fields, rule, onChange, onAddRule, onAd
|
|
|
87
88
|
// const applicableInputField = rule.fieldName ? fields.find(f => f.name === rule.fieldName)?.type : "";
|
|
88
89
|
const [fieldName, setFieldName] = useState({ name: rule.fieldName });
|
|
89
90
|
const [matchMode, setMatchMode] = useState({ name: rule.matchMode });
|
|
90
|
-
console.log("
|
|
91
|
+
console.log("level", level);
|
|
91
92
|
|
|
92
93
|
return (
|
|
93
94
|
// <div style={{ marginLeft: (level - 1) * 10 + 'px' }} className="filter-rule">
|
|
94
|
-
<div
|
|
95
|
+
<div className="filter-rule">
|
|
95
96
|
<div className="filter-individual-rule">
|
|
96
97
|
<div className='filter-individual-rule-form'>
|
|
97
|
-
<div className="
|
|
98
|
-
<div className="
|
|
99
|
-
<div className="filter-component-fields">
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
onChange
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
98
|
+
<div className=" flex align-items-center">
|
|
99
|
+
<div className=" p-0" style={{ flex: "10" }}>
|
|
100
|
+
{/* <div className="filter-component-fields"> */}
|
|
101
|
+
<div className='filter-component-fields'>
|
|
102
|
+
<div className='filter-component-fields-section-one' >
|
|
103
|
+
<Dropdown
|
|
104
|
+
key={rule.id}
|
|
105
|
+
value={fieldName.name}
|
|
106
|
+
onChange={e => {
|
|
107
|
+
setFieldName({ name: e.value, value: e.value })
|
|
108
|
+
onChange(rule.id, 'fieldName', e.value)
|
|
109
|
+
}}
|
|
110
|
+
options={fields}
|
|
111
|
+
optionLabel='name'
|
|
112
|
+
optionValue='name'
|
|
113
|
+
style={{ marginLeft: (level - 1) * 5 + 'px', width: "100%", maxWidth: "-webkit-fill-available" }}
|
|
114
|
+
placeholder="Select Field" className="w-full md:w-14rem" />
|
|
115
|
+
</div>
|
|
112
116
|
{/* <Dropdown
|
|
113
117
|
value={matchMode}
|
|
114
118
|
onChange={e => {
|
|
@@ -119,9 +123,28 @@ const FilterRuleComponent = ({ viewData, fields, rule, onChange, onAddRule, onAd
|
|
|
119
123
|
options={applicableOperators}
|
|
120
124
|
optionLabel='name'
|
|
121
125
|
placeholder="Select Field" className="w-full filter-small-input md:w-14rem" /> */}
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
126
|
+
|
|
127
|
+
<div className='filter-component-fields-section-two'>
|
|
128
|
+
{!rule.fieldName &&
|
|
129
|
+
<>
|
|
130
|
+
<InputText
|
|
131
|
+
disabled
|
|
132
|
+
value={rule.value || ''}
|
|
133
|
+
placeholder="operator"
|
|
134
|
+
className='filter-small-input'
|
|
135
|
+
/>
|
|
136
|
+
<InputText
|
|
137
|
+
disabled
|
|
138
|
+
value={rule.value || ''}
|
|
139
|
+
placeholder="value"
|
|
140
|
+
className='filter-small-input'
|
|
141
|
+
/>
|
|
142
|
+
</>
|
|
143
|
+
}
|
|
144
|
+
{rule.fieldName &&
|
|
145
|
+
<SolidFilterFields viewData={viewData} fieldMetadata={viewData.data.solidFieldsMetadata[rule.fieldName]} onChange={onChange} index={rule.id} rule={rule}></SolidFilterFields>
|
|
146
|
+
}
|
|
147
|
+
</div>
|
|
125
148
|
|
|
126
149
|
|
|
127
150
|
{/* <div className="col-4">
|
|
@@ -152,7 +175,7 @@ const FilterRuleComponent = ({ viewData, fields, rule, onChange, onAddRule, onAd
|
|
|
152
175
|
|
|
153
176
|
</div>
|
|
154
177
|
</div>
|
|
155
|
-
<div className="col-2 flex justify-content-end">
|
|
178
|
+
<div className="col-2 flex justify-content-end" style={{ flex: "2" }}>
|
|
156
179
|
<button onClick={() => onAddRule(rule.parentRule)}>
|
|
157
180
|
<div className="card flex justify-content-center">
|
|
158
181
|
{/* <Tooltip target=".custom-target-icon" /> */}
|
|
@@ -237,11 +260,13 @@ const FilterRuleComponent = ({ viewData, fields, rule, onChange, onAddRule, onAd
|
|
|
237
260
|
// Component to render a group of filter rules
|
|
238
261
|
const FilterGroupComponent = ({ viewData, fields, group, onChange, onAddRule, onAddGroup, onDelete, level }) => {
|
|
239
262
|
return (
|
|
240
|
-
<div
|
|
263
|
+
<div className="filter-group">
|
|
241
264
|
{/* <div style={{ marginLeft: (level - 1) * 10 + 'px' }} className="filter-group"> */}
|
|
242
265
|
|
|
243
266
|
<div className='flex justify-content-between align-items-center'>
|
|
244
|
-
<p className='
|
|
267
|
+
<p className='mb-1 mt-1 filter-text'
|
|
268
|
+
style={{ marginLeft: (level - 1) * 5 + 'px' }}
|
|
269
|
+
> Match
|
|
245
270
|
<select className='filter-select'
|
|
246
271
|
value={group.matchOperator}
|
|
247
272
|
onChange={e => onChange(group.id, 'matchOperator', e.target.value)}
|
|
@@ -255,7 +280,7 @@ const FilterGroupComponent = ({ viewData, fields, group, onChange, onAddRule, on
|
|
|
255
280
|
{/* <button onClick={() => onAddGroup(group.id)}>Add Group to Group</button> */}
|
|
256
281
|
|
|
257
282
|
{/* Add Delete Button for non-root groups */}
|
|
258
|
-
{level > 0 && <button onClick={() => onDelete(group.id)}>
|
|
283
|
+
{level > 0 && <button style={{ marginRight: "8px" }} onClick={() => onDelete(group.id)}>
|
|
259
284
|
<div className="card flex justify-content-center">
|
|
260
285
|
<Tooltip target=".custom-target-icon" />
|
|
261
286
|
|
|
@@ -278,28 +303,28 @@ const FilterGroupComponent = ({ viewData, fields, group, onChange, onAddRule, on
|
|
|
278
303
|
};
|
|
279
304
|
|
|
280
305
|
// Main Filter component
|
|
281
|
-
const FilterComponent = ({ viewData, fields }) => {
|
|
282
|
-
const initialState: FilterRule[] = [
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
];
|
|
301
|
-
|
|
302
|
-
const [filterRules, setFilterRules] = useState<FilterRule[]>(initialState);
|
|
306
|
+
const FilterComponent = ({ viewData, fields, filterRules, setFilterRules, handleApplyCustomFilter }) => {
|
|
307
|
+
// const initialState: FilterRule[] = [
|
|
308
|
+
// {
|
|
309
|
+
// id: 1,
|
|
310
|
+
// type: FilterRuleType.RULE_GROUP,
|
|
311
|
+
// matchOperator: FilterOperator.OR,
|
|
312
|
+
// parentRule: null,
|
|
313
|
+
// children: [
|
|
314
|
+
// {
|
|
315
|
+
// id: Date.now() + getRandomInt(1, 500),
|
|
316
|
+
// type: FilterRuleType.RULE,
|
|
317
|
+
// fieldName: null,
|
|
318
|
+
// matchMode: null,
|
|
319
|
+
// value: null,
|
|
320
|
+
// parentRule: 1,
|
|
321
|
+
// children: []
|
|
322
|
+
// }
|
|
323
|
+
// ]
|
|
324
|
+
// }
|
|
325
|
+
// ];
|
|
326
|
+
|
|
327
|
+
// const [filterRules, setFilterRules] = useState<FilterRule[]>(initialState);
|
|
303
328
|
const [printedState, setPrintedState] = useState<string>('');
|
|
304
329
|
|
|
305
330
|
const addChild = (rules, parentId, newChild) => {
|
|
@@ -397,8 +422,12 @@ const FilterComponent = ({ viewData, fields }) => {
|
|
|
397
422
|
|
|
398
423
|
const handlePrintState = () => {
|
|
399
424
|
setPrintedState(JSON.stringify(filterRules, null, 2)); // Pretty format the state
|
|
425
|
+
handleApplyCustomFilter()
|
|
400
426
|
};
|
|
401
427
|
|
|
428
|
+
|
|
429
|
+
|
|
430
|
+
|
|
402
431
|
return (
|
|
403
432
|
<div className=''>
|
|
404
433
|
<div className="filter-builder">
|
|
@@ -419,10 +448,11 @@ const FilterComponent = ({ viewData, fields }) => {
|
|
|
419
448
|
|
|
420
449
|
</div>
|
|
421
450
|
|
|
422
|
-
<div>
|
|
423
|
-
<
|
|
451
|
+
<div className='text-center'>
|
|
452
|
+
<Button label="Apply" size="small" onClick={handlePrintState} type="submit" className="small-button" />
|
|
453
|
+
|
|
424
454
|
<br></br>
|
|
425
|
-
<textarea value={printedState} readOnly rows={20} cols={
|
|
455
|
+
<textarea value={printedState} readOnly rows={20} cols={100} style={{ marginTop: '20px' }} />
|
|
426
456
|
</div>
|
|
427
457
|
</div>
|
|
428
458
|
);
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import {
|
|
2
|
+
import { Button } from "primereact/button";
|
|
3
3
|
import { Dialog } from "primereact/dialog";
|
|
4
|
-
import
|
|
4
|
+
import { useState } from "react";
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
export const SolidConfigureLayoutElement = ({ }: any) => {
|
|
8
8
|
|
|
9
9
|
const [visible, setVisible] = useState<boolean>(false);
|
|
10
10
|
|
|
11
|
-
const [componentsToRender, setComponentsToRender] = useState(["Header", "NonExistentComponent"]);
|
|
12
|
-
|
|
13
11
|
return (
|
|
14
|
-
<div className="
|
|
15
|
-
<
|
|
16
|
-
|
|
12
|
+
<div className="flex justify-content-center">
|
|
13
|
+
<Button
|
|
14
|
+
type="button"
|
|
15
|
+
size="small"
|
|
16
|
+
icon="pi pi-cog"
|
|
17
|
+
onClick={() => setVisible(true)}
|
|
18
|
+
severity="secondary"
|
|
19
|
+
outlined
|
|
20
|
+
/>
|
|
17
21
|
<Dialog header="Header" visible={visible} style={{ width: '50vw' }} onHide={() => { if (!visible) return; setVisible(false); }}>
|
|
18
22
|
<p className="m-0">
|
|
19
|
-
ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
|
23
|
+
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
|
|
20
24
|
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
|
21
25
|
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
|
|
22
26
|
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
|
|
23
27
|
</p>
|
|
24
|
-
<div>
|
|
25
|
-
|
|
26
|
-
</div>
|
|
27
|
-
|
|
28
28
|
</Dialog>
|
|
29
29
|
</div>
|
|
30
30
|
)
|