@solidstarters/solid-core-ui 1.1.3 → 1.1.5
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/auth/SolidChangeForcePassword.d.ts +3 -0
- package/dist/components/auth/SolidChangeForcePassword.d.ts.map +1 -0
- package/dist/components/auth/SolidChangeForcePassword.js +125 -0
- package/dist/components/auth/SolidChangeForcePassword.js.map +1 -0
- package/dist/components/auth/SolidForgotPassword.d.ts.map +1 -1
- package/dist/components/auth/SolidForgotPassword.js +54 -42
- package/dist/components/auth/SolidForgotPassword.js.map +1 -1
- package/dist/components/auth/SolidLogin.d.ts.map +1 -1
- package/dist/components/auth/SolidLogin.js +51 -38
- package/dist/components/auth/SolidLogin.js.map +1 -1
- package/dist/components/auth/SolidOTPVerify.d.ts.map +1 -1
- package/dist/components/auth/SolidOTPVerify.js +3 -2
- package/dist/components/auth/SolidOTPVerify.js.map +1 -1
- package/dist/components/auth/SolidRegister.d.ts.map +1 -1
- package/dist/components/auth/SolidRegister.js +12 -9
- package/dist/components/auth/SolidRegister.js.map +1 -1
- package/dist/components/auth/SolidResetPassword.d.ts +4 -1
- package/dist/components/auth/SolidResetPassword.d.ts.map +1 -1
- package/dist/components/auth/SolidResetPassword.js +58 -53
- package/dist/components/auth/SolidResetPassword.js.map +1 -1
- package/dist/components/common/FilterComponent.d.ts +3 -0
- package/dist/components/common/FilterComponent.d.ts.map +1 -0
- package/dist/components/common/FilterComponent.js +214 -0
- package/dist/components/common/FilterComponent.js.map +1 -0
- package/dist/components/common/SocialMediaLogin.d.ts.map +1 -1
- package/dist/components/common/SocialMediaLogin.js +2 -2
- package/dist/components/common/SocialMediaLogin.js.map +1 -1
- package/dist/components/core/common/SolidConfigureLayoutElement.d.ts.map +1 -1
- package/dist/components/core/common/SolidConfigureLayoutElement.js +39 -6
- package/dist/components/core/common/SolidConfigureLayoutElement.js.map +1 -1
- package/dist/components/core/filter/columns/SolidBigintField.d.ts +4 -0
- package/dist/components/core/filter/columns/SolidBigintField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidBigintField.js +8 -0
- package/dist/components/core/filter/columns/SolidBigintField.js.map +1 -0
- package/dist/components/core/filter/columns/SolidBooleanField.d.ts +4 -0
- package/dist/components/core/filter/columns/SolidBooleanField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidBooleanField.js +27 -0
- package/dist/components/core/filter/columns/SolidBooleanField.js.map +1 -0
- package/dist/components/core/filter/columns/SolidComputedField.d.ts +4 -0
- package/dist/components/core/filter/columns/SolidComputedField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidComputedField.js +22 -0
- package/dist/components/core/filter/columns/SolidComputedField.js.map +1 -0
- package/dist/components/core/filter/columns/SolidDateField.d.ts +9 -0
- package/dist/components/core/filter/columns/SolidDateField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidDateField.js +35 -0
- package/dist/components/core/filter/columns/SolidDateField.js.map +1 -0
- package/dist/components/core/filter/columns/SolidDatetimeField.d.ts +4 -0
- package/dist/components/core/filter/columns/SolidDatetimeField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidDatetimeField.js +24 -0
- package/dist/components/core/filter/columns/SolidDatetimeField.js.map +1 -0
- package/dist/components/core/filter/columns/SolidDecimalField.d.ts +4 -0
- package/dist/components/core/filter/columns/SolidDecimalField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidDecimalField.js +8 -0
- package/dist/components/core/filter/columns/SolidDecimalField.js.map +1 -0
- package/dist/components/core/filter/columns/SolidExternalIdField.d.ts +4 -0
- package/dist/components/core/filter/columns/SolidExternalIdField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidExternalIdField.js +25 -0
- package/dist/components/core/filter/columns/SolidExternalIdField.js.map +1 -0
- package/dist/components/core/filter/columns/SolidFloatField.d.ts +4 -0
- package/dist/components/core/filter/columns/SolidFloatField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidFloatField.js +8 -0
- package/dist/components/core/filter/columns/SolidFloatField.js.map +1 -0
- package/dist/components/core/filter/columns/SolidIdField.d.ts +4 -0
- package/dist/components/core/filter/columns/SolidIdField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidIdField.js +25 -0
- package/dist/components/core/filter/columns/SolidIdField.js.map +1 -0
- package/dist/components/core/filter/columns/SolidIntField.d.ts +4 -0
- package/dist/components/core/filter/columns/SolidIntField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidIntField.js +34 -0
- package/dist/components/core/filter/columns/SolidIntField.js.map +1 -0
- package/dist/components/core/filter/columns/SolidLongTextField.d.ts +4 -0
- package/dist/components/core/filter/columns/SolidLongTextField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidLongTextField.js +8 -0
- package/dist/components/core/filter/columns/SolidLongTextField.js.map +1 -0
- package/dist/components/core/filter/columns/SolidMediaMultipleField.d.ts +4 -0
- package/dist/components/core/filter/columns/SolidMediaMultipleField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidMediaMultipleField.js +35 -0
- package/dist/components/core/filter/columns/SolidMediaMultipleField.js.map +1 -0
- package/dist/components/core/filter/columns/SolidMediaSingleField.d.ts +4 -0
- package/dist/components/core/filter/columns/SolidMediaSingleField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidMediaSingleField.js +35 -0
- package/dist/components/core/filter/columns/SolidMediaSingleField.js.map +1 -0
- package/dist/components/core/filter/columns/SolidRelationField.d.ts +4 -0
- package/dist/components/core/filter/columns/SolidRelationField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidRelationField.js +12 -0
- package/dist/components/core/filter/columns/SolidRelationField.js.map +1 -0
- package/dist/components/core/filter/columns/SolidRichTextField.d.ts +4 -0
- package/dist/components/core/filter/columns/SolidRichTextField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidRichTextField.js +8 -0
- package/dist/components/core/filter/columns/SolidRichTextField.js.map +1 -0
- package/dist/components/core/filter/columns/SolidSelectionDynamicField.d.ts +4 -0
- package/dist/components/core/filter/columns/SolidSelectionDynamicField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidSelectionDynamicField.js +25 -0
- package/dist/components/core/filter/columns/SolidSelectionDynamicField.js.map +1 -0
- package/dist/components/core/filter/columns/SolidSelectionStaticField.d.ts +4 -0
- package/dist/components/core/filter/columns/SolidSelectionStaticField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidSelectionStaticField.js +26 -0
- package/dist/components/core/filter/columns/SolidSelectionStaticField.js.map +1 -0
- package/dist/components/core/filter/columns/SolidShortTextField.d.ts +4 -0
- package/dist/components/core/filter/columns/SolidShortTextField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidShortTextField.js +33 -0
- package/dist/components/core/filter/columns/SolidShortTextField.js.map +1 -0
- package/dist/components/core/filter/columns/SolidTimeField.d.ts +4 -0
- package/dist/components/core/filter/columns/SolidTimeField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidTimeField.js +24 -0
- package/dist/components/core/filter/columns/SolidTimeField.js.map +1 -0
- package/dist/components/core/filter/columns/SolidUuidField.d.ts +4 -0
- package/dist/components/core/filter/columns/SolidUuidField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidUuidField.js +25 -0
- package/dist/components/core/filter/columns/SolidUuidField.js.map +1 -0
- package/dist/components/core/filter/columns/relations/SolidRelationManyToOneField.d.ts +4 -0
- package/dist/components/core/filter/columns/relations/SolidRelationManyToOneField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/relations/SolidRelationManyToOneField.js +54 -0
- package/dist/components/core/filter/columns/relations/SolidRelationManyToOneField.js.map +1 -0
- package/dist/components/core/list/SolidListView.d.ts.map +1 -1
- package/dist/components/core/list/SolidListView.js +31 -58
- package/dist/components/core/list/SolidListView.js.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/SolidDateColumn.js +5 -1
- package/dist/components/core/list/columns/SolidDateColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidDatetimeColumn.js +5 -1
- package/dist/components/core/list/columns/SolidDatetimeColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidExternalIdColumn.js +5 -1
- package/dist/components/core/list/columns/SolidExternalIdColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidIdColumn.js +5 -1
- package/dist/components/core/list/columns/SolidIdColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidIntColumn.js +5 -1
- package/dist/components/core/list/columns/SolidIntColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidMediaMultipleColumn.js +5 -1
- package/dist/components/core/list/columns/SolidMediaMultipleColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidMediaSingleColumn.js +5 -1
- package/dist/components/core/list/columns/SolidMediaSingleColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidSelectionDynamicColumn.js +5 -1
- package/dist/components/core/list/columns/SolidSelectionDynamicColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidSelectionStaticColumn.js +3 -1
- 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 +3 -1
- package/dist/components/core/list/columns/SolidShortTextColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidTimeColumn.js +3 -1
- package/dist/components/core/list/columns/SolidTimeColumn.js.map +1 -1
- package/dist/components/core/list/columns/relations/SolidRelationManyToOneColumn.js +5 -1
- package/dist/components/core/list/columns/relations/SolidRelationManyToOneColumn.js.map +1 -1
- package/dist/components/core/model/FieldMetaDataForm.d.ts.map +1 -1
- package/dist/components/core/model/FieldMetaDataForm.js +30 -26
- package/dist/components/core/model/FieldMetaDataForm.js.map +1 -1
- package/dist/components/core/model/ModelMetaData.d.ts.map +1 -1
- package/dist/components/core/model/ModelMetaData.js +14 -36
- package/dist/components/core/model/ModelMetaData.js.map +1 -1
- package/dist/components/core/module/CreateModule.js +1 -1
- package/dist/components/core/module/CreateModule.js.map +1 -1
- package/dist/components/layout/AppSidebar.d.ts.map +1 -1
- package/dist/components/layout/AppSidebar.js +6 -7
- package/dist/components/layout/AppSidebar.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/redux/api/authApi.d.ts +4 -1
- package/dist/redux/api/authApi.d.ts.map +1 -1
- package/dist/redux/api/authApi.js +28 -1
- package/dist/redux/api/authApi.js.map +1 -1
- package/package.json +1 -1
- package/solidstarters-solid-core-ui-1.1.2.tgz +0 -0
- package/src/components/auth/SolidChangeForcePassword.tsx +159 -0
- package/src/components/auth/SolidForgotPassword.tsx +77 -78
- package/src/components/auth/SolidLogin.tsx +110 -93
- package/src/components/auth/SolidOTPVerify.tsx +16 -14
- package/src/components/auth/SolidRegister.tsx +41 -16
- package/src/components/auth/SolidResetPassword.tsx +106 -110
- package/src/components/common/SocialMediaLogin.tsx +7 -3
- package/src/components/core/common/SolidConfigureLayoutElement.tsx +86 -15
- package/src/components/core/list/SolidListView.tsx +71 -59
- package/src/components/core/list/columns/SolidBooleanColumn.tsx +1 -1
- package/src/components/core/list/columns/SolidDateColumn.tsx +2 -2
- package/src/components/core/list/columns/SolidDatetimeColumn.tsx +2 -2
- package/src/components/core/list/columns/SolidExternalIdColumn.tsx +2 -2
- package/src/components/core/list/columns/SolidIdColumn.tsx +2 -2
- package/src/components/core/list/columns/SolidIntColumn.tsx +2 -2
- package/src/components/core/list/columns/SolidMediaMultipleColumn.tsx +2 -2
- package/src/components/core/list/columns/SolidMediaSingleColumn.tsx +2 -2
- package/src/components/core/list/columns/SolidSelectionDynamicColumn.tsx +2 -2
- package/src/components/core/list/columns/SolidSelectionStaticColumn.tsx +1 -1
- package/src/components/core/list/columns/SolidShortTextColumn.tsx +3 -5
- package/src/components/core/list/columns/SolidTimeColumn.tsx +1 -1
- package/src/components/core/list/columns/relations/SolidRelationManyToOneColumn.tsx +2 -2
- package/src/components/core/model/FieldMetaDataForm.tsx +28 -2
- package/src/components/core/model/ModelMetaData.tsx +14 -83
- package/src/components/core/module/CreateModule.tsx +1 -1
- package/src/components/layout/AppSidebar.tsx +10 -14
- package/src/index.ts +1 -0
- package/src/redux/api/authApi.ts +30 -0
|
@@ -35,9 +35,9 @@ const SolidExternalIdColumn = ({ solidListViewMetaData, fieldMetadata, column }:
|
|
|
35
35
|
key={fieldMetadata.name}
|
|
36
36
|
field={fieldMetadata.name}
|
|
37
37
|
header={header}
|
|
38
|
-
className="text-sm"
|
|
38
|
+
// className="text-sm"
|
|
39
39
|
sortable={column.attrs.sortable}
|
|
40
|
-
filter={filterable}
|
|
40
|
+
// filter={filterable}
|
|
41
41
|
dataType={columnDataType}
|
|
42
42
|
showFilterOperator={showFilterOperator}
|
|
43
43
|
filterMatchModeOptions={filterMatchModeOptions}
|
|
@@ -35,9 +35,9 @@ const SolidIdColumn = ({ solidListViewMetaData, fieldMetadata, column }: SolidLi
|
|
|
35
35
|
key={fieldMetadata.name}
|
|
36
36
|
field={fieldMetadata.name}
|
|
37
37
|
header={header}
|
|
38
|
-
className="text-sm"
|
|
38
|
+
// className="text-sm"
|
|
39
39
|
sortable={column.sortable}
|
|
40
|
-
filter={filterable}
|
|
40
|
+
// filter={filterable}
|
|
41
41
|
dataType={columnDataType}
|
|
42
42
|
showFilterOperator={showFilterOperator}
|
|
43
43
|
filterMatchModeOptions={filterMatchModeOptions}
|
|
@@ -43,9 +43,9 @@ const SolidIntColumn = ({ solidListViewMetaData, fieldMetadata, column }: SolidL
|
|
|
43
43
|
key={fieldMetadata.name}
|
|
44
44
|
field={fieldMetadata.name}
|
|
45
45
|
header={header}
|
|
46
|
-
className="text-sm"
|
|
46
|
+
// className="text-sm"
|
|
47
47
|
sortable={column.attrs.sortable}
|
|
48
|
-
filter={filterable}
|
|
48
|
+
// filter={filterable}
|
|
49
49
|
dataType={columnDataType}
|
|
50
50
|
showFilterOperator={showFilterOperator}
|
|
51
51
|
filterMatchModeOptions={filterMatchModeOptions}
|
|
@@ -15,9 +15,9 @@ const SolidMediaMultipleColumn = ({ solidListViewMetaData, fieldMetadata, column
|
|
|
15
15
|
key={fieldMetadata.name}
|
|
16
16
|
field={fieldMetadata.name}
|
|
17
17
|
header={header}
|
|
18
|
-
className="text-sm"
|
|
18
|
+
// className="text-sm"
|
|
19
19
|
sortable={column.attrs.sortable}
|
|
20
|
-
filter={filterable}
|
|
20
|
+
// filter={filterable}
|
|
21
21
|
dataType={columnDataType}
|
|
22
22
|
showFilterOperator={showFilterOperator}
|
|
23
23
|
filterPlaceholder={`Search by ${fieldMetadata.displayName}`}
|
|
@@ -18,9 +18,9 @@ const SolidMediaSingleColumn = ({ solidListViewMetaData, fieldMetadata, column }
|
|
|
18
18
|
key={fieldMetadata.name}
|
|
19
19
|
field={fieldMetadata.name}
|
|
20
20
|
header={header}
|
|
21
|
-
className="text-sm"
|
|
21
|
+
// className="text-sm"
|
|
22
22
|
sortable={column.attrs.sortable}
|
|
23
|
-
filter={filterable}
|
|
23
|
+
// filter={filterable}
|
|
24
24
|
dataType={columnDataType}
|
|
25
25
|
showFilterOperator={showFilterOperator}
|
|
26
26
|
filterPlaceholder={`Search by ${fieldMetadata.displayName}`}
|
|
@@ -35,9 +35,9 @@ const SolidSelectionDynamicColumn = ({ solidListViewMetaData, fieldMetadata, col
|
|
|
35
35
|
key={fieldMetadata.name}
|
|
36
36
|
field={fieldMetadata.name}
|
|
37
37
|
header={header}
|
|
38
|
-
className="text-sm"
|
|
38
|
+
// className="text-sm"
|
|
39
39
|
sortable={column.attrs.sortable}
|
|
40
|
-
filter={filterable}
|
|
40
|
+
// filter={filterable}
|
|
41
41
|
dataType={columnDataType}
|
|
42
42
|
showFilterOperator={showFilterOperator}
|
|
43
43
|
filterMatchModeOptions={filterMatchModeOptions}
|
|
@@ -37,7 +37,7 @@ const SolidSelectionStaticColumn = ({ solidListViewMetaData, fieldMetadata, colu
|
|
|
37
37
|
key={fieldMetadata.name}
|
|
38
38
|
field={fieldMetadata.name}
|
|
39
39
|
header={header}
|
|
40
|
-
className="text-sm"
|
|
40
|
+
// className="text-sm"
|
|
41
41
|
sortable={column.attrs.sortable}
|
|
42
42
|
// filter={filterable}
|
|
43
43
|
dataType={columnDataType}
|
|
@@ -53,11 +53,9 @@ const SolidShortTextColumn = ({ solidListViewMetaData, fieldMetadata, column }:
|
|
|
53
53
|
filterPlaceholder={`Search by ${fieldMetadata.displayName}`}
|
|
54
54
|
style={{ minWidth: "12rem" }}
|
|
55
55
|
headerClassName="table-header-fs"
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
// return <div className="solid-table-row">{data.name}</div>
|
|
60
|
-
// }}
|
|
56
|
+
body={(rowData) => {
|
|
57
|
+
return <div className="solid-table-row">{rowData[fieldMetadata.name]}</div>;
|
|
58
|
+
}}
|
|
61
59
|
></Column>
|
|
62
60
|
);
|
|
63
61
|
|
|
@@ -34,7 +34,7 @@ const SolidTimeColumn = ({ solidListViewMetaData, fieldMetadata, column }: Solid
|
|
|
34
34
|
key={fieldMetadata.name}
|
|
35
35
|
field={fieldMetadata.name}
|
|
36
36
|
header={header}
|
|
37
|
-
className="text-sm"
|
|
37
|
+
// className="text-sm"
|
|
38
38
|
sortable={column.attrs.sortable}
|
|
39
39
|
// filter={filterable}
|
|
40
40
|
dataType={columnDataType}
|
|
@@ -52,9 +52,9 @@ const SolidRelationManyToOneColumn = ({ solidListViewMetaData, fieldMetadata, co
|
|
|
52
52
|
key={fieldMetadata.name}
|
|
53
53
|
field={fieldMetadata.name}
|
|
54
54
|
header={header}
|
|
55
|
-
className="text-sm"
|
|
55
|
+
// className="text-sm"
|
|
56
56
|
sortable={column.attrs.sortable}
|
|
57
|
-
filter={filterable}
|
|
57
|
+
// filter={filterable}
|
|
58
58
|
dataType={columnDataType}
|
|
59
59
|
showFilterOperator={showFilterOperator}
|
|
60
60
|
filterMatchModeOptions={filterMatchModeOptions}
|
|
@@ -195,6 +195,7 @@ function fetchCurrentFields(solidFieldType: any, fieldDefaultMetaData: any) {
|
|
|
195
195
|
"index",
|
|
196
196
|
"private",
|
|
197
197
|
"encrypt",
|
|
198
|
+
"isUserKey"
|
|
198
199
|
];
|
|
199
200
|
|
|
200
201
|
}
|
|
@@ -900,7 +901,8 @@ const FieldMetaDataForm = ({ modelMetaData, fieldMetaData, setFieldMetaData, all
|
|
|
900
901
|
// externalIdProvider: fieldMetaData ? fieldMetaData?.externalIdProvider : null,
|
|
901
902
|
// externalIdProviderCtxt: fieldMetaData ? fieldMetaData?.externalIdProviderCtxt : "",
|
|
902
903
|
isSystem: fieldMetaData ? fieldMetaData?.isSystem : false,
|
|
903
|
-
columnName: fieldMetaData ? fieldMetaData?.columnName : null
|
|
904
|
+
columnName: fieldMetaData ? fieldMetaData?.columnName : null,
|
|
905
|
+
isUserKey: fieldMetaData ? fieldMetaData?.isUserKey : false
|
|
904
906
|
};
|
|
905
907
|
|
|
906
908
|
|
|
@@ -966,7 +968,6 @@ const FieldMetaDataForm = ({ modelMetaData, fieldMetaData, setFieldMetaData, all
|
|
|
966
968
|
};
|
|
967
969
|
|
|
968
970
|
|
|
969
|
-
|
|
970
971
|
const handleTypeSelect = (e: any) => {
|
|
971
972
|
|
|
972
973
|
|
|
@@ -2736,7 +2737,32 @@ const FieldMetaDataForm = ({ modelMetaData, fieldMetaData, setFieldMetaData, all
|
|
|
2736
2737
|
</div>
|
|
2737
2738
|
</div>
|
|
2738
2739
|
)}
|
|
2740
|
+
{currentFields.includes("isUserKey") && (
|
|
2741
|
+
<div className="md:col-6 sm:col-12">
|
|
2742
|
+
<div className="field">
|
|
2743
|
+
<div className="flex align-items-center">
|
|
2744
|
+
<Checkbox
|
|
2745
|
+
name="isUserKey"
|
|
2746
|
+
onChange={(e) => {
|
|
2747
|
+
formik.setFieldValue("isUserKey", e.checked);
|
|
2748
|
+
}}
|
|
2749
|
+
checked={formik.values.isUserKey}
|
|
2750
|
+
></Checkbox>
|
|
2751
|
+
<label htmlFor="ingredient1" className="form-label form-field-label ml-2">
|
|
2752
|
+
Is Userkey
|
|
2753
|
+
</label>
|
|
2754
|
+
</div>
|
|
2755
|
+
<p className="fieldSubTitle">If userkey already then it will be replaced with this key</p>
|
|
2739
2756
|
|
|
2757
|
+
{isFormFieldValid(formik, "isUserKey") && (
|
|
2758
|
+
<Message
|
|
2759
|
+
severity="error"
|
|
2760
|
+
text={formik?.errors?.isUserKey?.toString()}
|
|
2761
|
+
/>
|
|
2762
|
+
)}
|
|
2763
|
+
</div>
|
|
2764
|
+
</div>
|
|
2765
|
+
)}
|
|
2740
2766
|
</div>
|
|
2741
2767
|
|
|
2742
2768
|
|
|
@@ -46,21 +46,16 @@ const ModelMetaData = React.forwardRef(({ modelMetaData, setModelMetaData, allMo
|
|
|
46
46
|
description: modelMetaData ? modelMetaData?.description : "",
|
|
47
47
|
dataSource: modelMetaData ? modelMetaData?.dataSource : "",
|
|
48
48
|
dataSourceType: modelMetaData ? modelMetaData?.dataSourceType : "",
|
|
49
|
-
tableName: modelMetaData ? modelMetaData?.tableName :
|
|
49
|
+
tableName: modelMetaData ? modelMetaData?.tableName : null,
|
|
50
50
|
moduleId: modelMetaData ? modelMetaData?.module?.id : "",
|
|
51
51
|
module: modelMetaData ? modelMetaData?.module : "",
|
|
52
52
|
isSystem: modelMetaData ? modelMetaData?.isSystem : false,
|
|
53
53
|
enableSoftDelete: modelMetaData ? modelMetaData?.enableSoftDelete : "",
|
|
54
54
|
enableAuditTracking: modelMetaData ? modelMetaData?.enableAuditTracking : "",
|
|
55
55
|
internationalisation: modelMetaData ? modelMetaData?.internationalisation : "",
|
|
56
|
-
isExportable: modelMetaData ? modelMetaData?.isExportable : "",
|
|
57
|
-
hasUserKey: modelMetaData ? modelMetaData?.hasUserKey : "",
|
|
58
|
-
userKeyFieldId: modelMetaData ? modelMetaData.userKeyFieldId : "",
|
|
59
56
|
};
|
|
60
57
|
|
|
61
58
|
const [showTableName, setShowTableName] = useState<any>(false);
|
|
62
|
-
const [showUserKeyField, setShowUserKeyField] = useState<any>(modelMetaData?.hasUserKey == true ? true : false);
|
|
63
|
-
|
|
64
59
|
|
|
65
60
|
useEffect(() => {
|
|
66
61
|
if (modelMetaData && modelMetaData.tableName) {
|
|
@@ -97,7 +92,6 @@ const ModelMetaData = React.forwardRef(({ modelMetaData, setModelMetaData, allMo
|
|
|
97
92
|
enableSoftDelete: Yup.boolean(),
|
|
98
93
|
enableAuditTracking: Yup.boolean(),
|
|
99
94
|
internationalisation: Yup.boolean(),
|
|
100
|
-
isExportable: Yup.boolean(),
|
|
101
95
|
});
|
|
102
96
|
|
|
103
97
|
|
|
@@ -128,9 +122,6 @@ const ModelMetaData = React.forwardRef(({ modelMetaData, setModelMetaData, allMo
|
|
|
128
122
|
enableSoftDelete: values.enableSoftDelete === true ? true : '',
|
|
129
123
|
enableAuditTracking: values.enableAuditTracking === true ? true : '',
|
|
130
124
|
internationalisation: values.internationalisation === true ? true : '',
|
|
131
|
-
isExportable: values.isExportable === true ? true : '',
|
|
132
|
-
hasUserKey: values.hasUserKey === true ? true : '',
|
|
133
|
-
// userKeyFieldId :"",
|
|
134
125
|
};
|
|
135
126
|
|
|
136
127
|
setModelMetaData(modelData);
|
|
@@ -337,7 +328,7 @@ const ModelMetaData = React.forwardRef(({ modelMetaData, setModelMetaData, allMo
|
|
|
337
328
|
existingData={formik.values.dataSource}
|
|
338
329
|
additionalAction={(e: any) => formik.setFieldValue("dataSourceType", e.target.value.type)}
|
|
339
330
|
/>
|
|
340
|
-
|
|
331
|
+
{formik.values.dataSourceType && <Message severity="info" text={`Your datasource will connect to a ${formik.values.dataSourceType} database`} />}
|
|
341
332
|
|
|
342
333
|
{isFormFieldValid(formik, "dataSource") && (
|
|
343
334
|
<Message severity="error" text={formik?.errors?.dataSource?.toString()} />
|
|
@@ -346,12 +337,12 @@ const ModelMetaData = React.forwardRef(({ modelMetaData, setModelMetaData, allMo
|
|
|
346
337
|
</div>
|
|
347
338
|
|
|
348
339
|
|
|
349
|
-
<div className="field mt-3">
|
|
340
|
+
{/* <div className="field mt-3">
|
|
350
341
|
<label htmlFor="dataSourceType" className="form-label form-field-label">
|
|
351
342
|
Data Source Type
|
|
352
343
|
</label>
|
|
353
344
|
<div>
|
|
354
|
-
|
|
345
|
+
<SingleSelectAutoCompleteField
|
|
355
346
|
key="dataSourceType"
|
|
356
347
|
formik={formik}
|
|
357
348
|
isFormFieldValid={isFormFieldValid}
|
|
@@ -362,7 +353,7 @@ const ModelMetaData = React.forwardRef(({ modelMetaData, setModelMetaData, allMo
|
|
|
362
353
|
valueKey="value"
|
|
363
354
|
searchData={serachDataSourceType}
|
|
364
355
|
existingData={formik.values.dataSourceType}
|
|
365
|
-
/>
|
|
356
|
+
/>
|
|
366
357
|
<InputText
|
|
367
358
|
disabled
|
|
368
359
|
type="text"
|
|
@@ -380,13 +371,13 @@ const ModelMetaData = React.forwardRef(({ modelMetaData, setModelMetaData, allMo
|
|
|
380
371
|
<Message severity="error" text={formik?.errors?.dataSourceType?.toString()} />
|
|
381
372
|
)}
|
|
382
373
|
</div>
|
|
383
|
-
</div>
|
|
374
|
+
</div> */}
|
|
384
375
|
</div>
|
|
385
376
|
<div className="form-wrapper mt-4">
|
|
386
377
|
<p className="form-wrapper-heading">Configurations</p>
|
|
387
378
|
|
|
388
379
|
<div className="grid formgrid">
|
|
389
|
-
{params.id === 'new' &&
|
|
380
|
+
{/* {params.id === 'new' &&
|
|
390
381
|
|
|
391
382
|
<div className="md:col-6 sm:col-12">
|
|
392
383
|
<div className="field">
|
|
@@ -410,7 +401,7 @@ const ModelMetaData = React.forwardRef(({ modelMetaData, setModelMetaData, allMo
|
|
|
410
401
|
/>
|
|
411
402
|
)}
|
|
412
403
|
</div>
|
|
413
|
-
</div>}
|
|
404
|
+
</div>} */}
|
|
414
405
|
<div className="md:col-6 sm:col-12">
|
|
415
406
|
<div className="field">
|
|
416
407
|
<div className="flex align-items-center">
|
|
@@ -419,12 +410,14 @@ const ModelMetaData = React.forwardRef(({ modelMetaData, setModelMetaData, allMo
|
|
|
419
410
|
onChange={(e) => {
|
|
420
411
|
formik.setFieldValue("enableSoftDelete", e.checked);
|
|
421
412
|
}}
|
|
413
|
+
disabled={params.id !== 'new'}
|
|
422
414
|
checked={formik.values.enableSoftDelete}
|
|
423
415
|
></Checkbox>
|
|
424
416
|
<label htmlFor="enableSoftDelete" className="form-field-label ml-2">
|
|
425
417
|
Enable Soft Delete
|
|
426
418
|
</label>
|
|
427
419
|
</div>
|
|
420
|
+
{params.id !== 'new' && <p className="fieldSubTitle">Soft Delete is disabled in edit mode</p>}
|
|
428
421
|
{isFormFieldValid(formik, "enableSoftDelete") && (
|
|
429
422
|
<Message
|
|
430
423
|
severity="error"
|
|
@@ -433,7 +426,7 @@ const ModelMetaData = React.forwardRef(({ modelMetaData, setModelMetaData, allMo
|
|
|
433
426
|
)}
|
|
434
427
|
</div>
|
|
435
428
|
</div>
|
|
436
|
-
<div className="md:col-6 sm:col-12">
|
|
429
|
+
{/* <div className="md:col-6 sm:col-12">
|
|
437
430
|
<div className="field">
|
|
438
431
|
<div className="flex align-items-center">
|
|
439
432
|
<Checkbox
|
|
@@ -454,8 +447,8 @@ const ModelMetaData = React.forwardRef(({ modelMetaData, setModelMetaData, allMo
|
|
|
454
447
|
/>
|
|
455
448
|
)}
|
|
456
449
|
</div>
|
|
457
|
-
</div>
|
|
458
|
-
<div className="md:col-6 sm:col-12">
|
|
450
|
+
</div> */}
|
|
451
|
+
{/* <div className="md:col-6 sm:col-12">
|
|
459
452
|
<div className="field">
|
|
460
453
|
<div className="flex align-items-center">
|
|
461
454
|
<Checkbox
|
|
@@ -476,69 +469,7 @@ const ModelMetaData = React.forwardRef(({ modelMetaData, setModelMetaData, allMo
|
|
|
476
469
|
/>
|
|
477
470
|
)}
|
|
478
471
|
</div>
|
|
479
|
-
</div>
|
|
480
|
-
|
|
481
|
-
<div className="md:col-6 sm:col-12">
|
|
482
|
-
<div className="field">
|
|
483
|
-
<div className="flex align-items-center">
|
|
484
|
-
<Checkbox
|
|
485
|
-
name="isExportable"
|
|
486
|
-
onChange={(e) => {
|
|
487
|
-
formik.setFieldValue("isExportable", e.checked);
|
|
488
|
-
}}
|
|
489
|
-
checked={formik.values.isExportable}
|
|
490
|
-
></Checkbox>
|
|
491
|
-
<label htmlFor="isExportable" className="form-field-label ml-2">
|
|
492
|
-
Is Exportable
|
|
493
|
-
</label>
|
|
494
|
-
</div>
|
|
495
|
-
{isFormFieldValid(formik, "isExportable") && (
|
|
496
|
-
<Message
|
|
497
|
-
severity="error"
|
|
498
|
-
text={formik?.errors?.isExportable?.toString()}
|
|
499
|
-
/>
|
|
500
|
-
)}
|
|
501
|
-
</div>
|
|
502
|
-
</div>
|
|
503
|
-
<div className="md:col-6 sm:col-12">
|
|
504
|
-
<div className="field">
|
|
505
|
-
<div className="flex align-items-center">
|
|
506
|
-
|
|
507
|
-
<div className="flex align-items-bottom">
|
|
508
|
-
<Checkbox onChange={e => {
|
|
509
|
-
setShowUserKeyField(e.checked);
|
|
510
|
-
formik.setFieldValue("hasUserKey", e.checked);
|
|
511
|
-
}} checked={showUserKeyField}></Checkbox>
|
|
512
|
-
<label htmlFor="ingredient1" className="form-field-label ml-2">
|
|
513
|
-
Has User Key
|
|
514
|
-
</label>
|
|
515
|
-
</div>
|
|
516
|
-
</div>
|
|
517
|
-
</div>
|
|
518
|
-
{showUserKeyField &&
|
|
519
|
-
<div className="field mt-3">
|
|
520
|
-
<label htmlFor="userKeyFieldId" className="form-label form-field-label">
|
|
521
|
-
User Key Field
|
|
522
|
-
</label>
|
|
523
|
-
<InputText
|
|
524
|
-
type="text"
|
|
525
|
-
id="userKeyFieldId"
|
|
526
|
-
name="userKeyFieldId"
|
|
527
|
-
onChange={formik.handleChange}
|
|
528
|
-
value={formik.values.userKeyFieldId}
|
|
529
|
-
className={classNames("p-inputtext-sm w-full small-input", {
|
|
530
|
-
"p-invalid": isFormFieldValid(formik, "userKeyFieldId"),
|
|
531
|
-
})}
|
|
532
|
-
/>
|
|
533
|
-
{isFormFieldValid(formik, "userKeyFieldId") && (
|
|
534
|
-
<Message
|
|
535
|
-
severity="error"
|
|
536
|
-
text={formik?.errors?.userKeyFieldId?.toString()}
|
|
537
|
-
/>
|
|
538
|
-
)}
|
|
539
|
-
</div>
|
|
540
|
-
}
|
|
541
|
-
</div>
|
|
472
|
+
</div> */}
|
|
542
473
|
|
|
543
474
|
</div>
|
|
544
475
|
|
|
@@ -1,16 +1,12 @@
|
|
|
1
|
+
import { ToastContainer } from "@/helpers/ToastContainer";
|
|
2
|
+
import { useGetSolidMenuBasedOnRoleQuery } from "@/redux/api/solidMenuApi";
|
|
3
|
+
import { showNavbar, toggleNavbar } from "@/redux/features/navbarSlice";
|
|
1
4
|
import { setIsAuthenticated, setUser } from "@/redux/features/userSlice";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
5
|
+
import { signOut, useSession } from "next-auth/react";
|
|
6
|
+
import { useEffect, useRef, useState } from "react";
|
|
7
|
+
import { useDispatch, useSelector } from "react-redux";
|
|
4
8
|
import NavbarTwoMenu from "./navbar-two-menu";
|
|
5
9
|
import UserProfileMenu from "./user-profile-menu";
|
|
6
|
-
import { useDispatch, useSelector } from "react-redux";
|
|
7
|
-
import { showNavbar, toggleNavbar } from "@/redux/features/navbarSlice";
|
|
8
|
-
import { InputText } from "primereact/inputtext";
|
|
9
|
-
import { Button } from "primereact/button";
|
|
10
|
-
import { IconField } from "primereact/iconfield";
|
|
11
|
-
import { InputIcon } from "primereact/inputicon";
|
|
12
|
-
import { useGetSolidMenuBasedOnRoleQuery } from "@/redux/api/solidMenuApi";
|
|
13
|
-
import { ToastContainer } from "@/helpers/ToastContainer";
|
|
14
10
|
// import menu from "@/helpers/menu";
|
|
15
11
|
|
|
16
12
|
const AppSidebar = () => {
|
|
@@ -92,10 +88,10 @@ const AppSidebar = () => {
|
|
|
92
88
|
|
|
93
89
|
{/* commented this as this is not working properly @Jenendar to figure this out... */}
|
|
94
90
|
{(visibleNavbar || currentMainMenu) && (
|
|
95
|
-
<
|
|
91
|
+
<div
|
|
96
92
|
className={`sidebar-toggle-button ${!visibleNavbar ? "s-collapsed" : ""}`}
|
|
97
93
|
onClick={handleToggle}
|
|
98
|
-
severity="secondary"
|
|
94
|
+
// severity="secondary"
|
|
99
95
|
>
|
|
100
96
|
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none">
|
|
101
97
|
<rect x="0.3" y="0.3" width="23.4" height="23.4" rx="2.1" fill="white" />
|
|
@@ -103,7 +99,7 @@ const AppSidebar = () => {
|
|
|
103
99
|
<path d="M5.09735 16V14.6667H13.5929V16H5.09735ZM5.09735 12.6667V11.3333H11.6324V12.6667H5.09735ZM5.09735 9.33333V8H13.5929V9.33333H5.09735Z" fill="#8D9199" />
|
|
104
100
|
<path d="M16.2621 12L18.9026 14.3L18.099 15L14.6549 12L18.099 9L18.9026 9.7L16.2621 12Z" fill="#8D9199" />
|
|
105
101
|
</svg>
|
|
106
|
-
</
|
|
102
|
+
</div>
|
|
107
103
|
)}
|
|
108
104
|
|
|
109
105
|
<div className="sidebar-left">
|
|
@@ -116,7 +112,7 @@ const AppSidebar = () => {
|
|
|
116
112
|
<a onClick={() => handleMenu(m)}>
|
|
117
113
|
{m.icon ?
|
|
118
114
|
<img
|
|
119
|
-
style={{ cursor: "pointer", width: '30px' }}
|
|
115
|
+
style={{ cursor: "pointer", width: '30px' , mixBlendMode: "multiply"}}
|
|
120
116
|
// src={currentMainMenu === m.title ? `/images/${m.title.toLocaleLowerCase()}-active.svg` : `/images/${m.title.toLocaleLowerCase()}.svg`}
|
|
121
117
|
// src={`/images/menu/${m.title}.svg`}
|
|
122
118
|
src={(m.icon && m.icon.startsWith("/")) ? m.icon : `${process.env.API_URL}/${m.icon}`}
|
package/src/index.ts
CHANGED
|
@@ -580,6 +580,7 @@ export { default as SolidLogin } from '@/components/auth/SolidLogin';
|
|
|
580
580
|
export { default as SolidOTPVerify } from '@/components/auth/SolidOTPVerify';
|
|
581
581
|
export { default as SolidRegister } from '@/components/auth/SolidRegister';
|
|
582
582
|
export { default as SolidResetPassword } from '@/components/auth/SolidResetPassword';
|
|
583
|
+
export { default as SolidChangeForcePassword } from '@/components/auth/SolidChangeForcePassword';
|
|
583
584
|
|
|
584
585
|
//redux
|
|
585
586
|
export { default as authenticationReducer } from '@/redux/features/authSlice';
|
package/src/redux/api/authApi.ts
CHANGED
|
@@ -48,6 +48,33 @@ export const authApi = createApi({
|
|
|
48
48
|
};
|
|
49
49
|
},
|
|
50
50
|
}),
|
|
51
|
+
initiateChangePassword: builder.mutation({
|
|
52
|
+
query(body) {
|
|
53
|
+
return {
|
|
54
|
+
url: '/iam/initiate/forgot-password',
|
|
55
|
+
method: "POST",
|
|
56
|
+
body,
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
}),
|
|
60
|
+
confirmForgotPassword: builder.mutation({
|
|
61
|
+
query(body) {
|
|
62
|
+
return {
|
|
63
|
+
url: '/iam/confirm/forgot-password',
|
|
64
|
+
method: "POST",
|
|
65
|
+
body
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}),
|
|
69
|
+
changePassword: builder.mutation({
|
|
70
|
+
query(body) {
|
|
71
|
+
return {
|
|
72
|
+
url: `/iam/change-password`,
|
|
73
|
+
method: "POST",
|
|
74
|
+
body,
|
|
75
|
+
};
|
|
76
|
+
},
|
|
77
|
+
}),
|
|
51
78
|
}),
|
|
52
79
|
});
|
|
53
80
|
|
|
@@ -57,4 +84,7 @@ export const {
|
|
|
57
84
|
useUpdateUserMutation,
|
|
58
85
|
useForgotPasswordMutation,
|
|
59
86
|
useResetPasswordMutation,
|
|
87
|
+
useInitiateChangePasswordMutation,
|
|
88
|
+
useConfirmForgotPasswordMutation,
|
|
89
|
+
useChangePasswordMutation
|
|
60
90
|
} = authApi;
|