@solidstarters/solid-core-ui 1.1.10 → 1.1.12
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/SolidForgotPassword.d.ts.map +1 -1
- package/dist/components/auth/SolidForgotPassword.js +2 -1
- package/dist/components/auth/SolidForgotPassword.js.map +1 -1
- package/dist/components/auth/SolidInitialLoginOtp.d.ts.map +1 -1
- package/dist/components/auth/SolidInitialLoginOtp.js +2 -1
- package/dist/components/auth/SolidInitialLoginOtp.js.map +1 -1
- package/dist/components/auth/SolidInitiateRegisterOtp.d.ts.map +1 -1
- package/dist/components/auth/SolidInitiateRegisterOtp.js +2 -1
- package/dist/components/auth/SolidInitiateRegisterOtp.js.map +1 -1
- package/dist/components/auth/SolidLogin.d.ts.map +1 -1
- package/dist/components/auth/SolidLogin.js +2 -1
- 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 +2 -1
- 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 +125 -103
- package/dist/components/auth/SolidRegister.js.map +1 -1
- package/dist/components/auth/SolidResetPassword.d.ts.map +1 -1
- package/dist/components/auth/SolidResetPassword.js +2 -1
- package/dist/components/auth/SolidResetPassword.js.map +1 -1
- package/dist/components/common/DropzonePlaceholder.js +1 -1
- package/dist/components/common/DropzonePlaceholder.js.map +1 -1
- package/dist/components/common/GeneralSettings.d.ts.map +1 -1
- package/dist/components/common/GeneralSettings.js +43 -31
- package/dist/components/common/GeneralSettings.js.map +1 -1
- package/dist/components/core/common/FilterComponent.d.ts +2 -1
- package/dist/components/core/common/FilterComponent.d.ts.map +1 -1
- package/dist/components/core/common/FilterComponent.js +52 -16
- package/dist/components/core/common/FilterComponent.js.map +1 -1
- package/dist/components/core/common/SolidConfigureLayoutElement.d.ts +1 -1
- package/dist/components/core/common/SolidConfigureLayoutElement.d.ts.map +1 -1
- package/dist/components/core/common/SolidConfigureLayoutElement.js +5 -2
- package/dist/components/core/common/SolidConfigureLayoutElement.js.map +1 -1
- package/dist/components/core/common/SolidGlobalSearchElement.d.ts.map +1 -1
- package/dist/components/core/common/SolidGlobalSearchElement.js +131 -23
- package/dist/components/core/common/SolidGlobalSearchElement.js.map +1 -1
- package/dist/components/core/filter/SolidManyToOneFilterElement.d.ts.map +1 -1
- package/dist/components/core/filter/SolidManyToOneFilterElement.js +8 -6
- package/dist/components/core/filter/SolidManyToOneFilterElement.js.map +1 -1
- package/dist/components/core/filter/SolidSelectionDynamicFilterElement.js +1 -1
- package/dist/components/core/filter/SolidSelectionDynamicFilterElement.js.map +1 -1
- package/dist/components/core/filter/SolidSelectionStaticFilterElement.js +1 -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 +11 -10
- package/dist/components/core/filter/SolidVarInputsFilterElement.js.map +1 -1
- package/dist/components/core/form/SolidFormView.d.ts.map +1 -1
- package/dist/components/core/form/SolidFormView.js +49 -14
- package/dist/components/core/form/SolidFormView.js.map +1 -1
- package/dist/components/core/form/fields/SolidBooleanField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidBooleanField.js +9 -5
- 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 +12 -8
- 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 +12 -8
- 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 +9 -5
- 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 +9 -5
- 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 +7 -3
- 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 +155 -46
- 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 +87 -31
- package/dist/components/core/form/fields/SolidMediaSingleField.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 +4 -4
- 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 +18 -9
- 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 +7 -3
- 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 +12 -8
- package/dist/components/core/form/fields/SolidTimeField.js.map +1 -1
- package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.js +22 -15
- 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 +11 -8
- package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.js.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/list/SolidListView.d.ts.map +1 -1
- package/dist/components/core/list/SolidListView.js +88 -63
- package/dist/components/core/list/SolidListView.js.map +1 -1
- package/dist/components/core/list/SolidManyToOneFilterElement.js +7 -5
- package/dist/components/core/list/SolidManyToOneFilterElement.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/relations/SolidRelationManyToOneColumn.js +2 -1
- package/dist/components/core/list/columns/relations/SolidRelationManyToOneColumn.js.map +1 -1
- package/dist/components/core/model/CreateModel.d.ts.map +1 -1
- package/dist/components/core/model/CreateModel.js +20 -16
- package/dist/components/core/model/CreateModel.js.map +1 -1
- package/dist/components/core/model/FieldMetaDataForm.d.ts.map +1 -1
- package/dist/components/core/model/FieldMetaDataForm.js +67 -54
- package/dist/components/core/model/FieldMetaDataForm.js.map +1 -1
- package/dist/components/core/model/FieldSelector.js +1 -1
- package/dist/components/core/model/FieldSelector.js.map +1 -1
- package/dist/components/core/model/ModelMetaData.d.ts.map +1 -1
- package/dist/components/core/model/ModelMetaData.js +12 -17
- 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 +23 -23
- 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 +42 -11
- package/dist/components/layout/AppSidebar.js.map +1 -1
- package/dist/components/layout/navbar-two-menu.d.ts.map +1 -1
- package/dist/components/layout/navbar-two-menu.js +6 -2
- package/dist/components/layout/navbar-two-menu.js.map +1 -1
- package/dist/components/layout/user-profile-menu.d.ts.map +1 -1
- package/dist/components/layout/user-profile-menu.js +7 -3
- package/dist/components/layout/user-profile-menu.js.map +1 -1
- package/dist/helpers/AppTitle.d.ts +4 -0
- package/dist/helpers/AppTitle.d.ts.map +1 -0
- package/dist/helpers/AppTitle.js +8 -0
- package/dist/helpers/AppTitle.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/components/auth/SolidForgotPassword.tsx +2 -6
- package/src/components/auth/SolidInitialLoginOtp.tsx +2 -6
- package/src/components/auth/SolidInitiateRegisterOtp.tsx +2 -6
- package/src/components/auth/SolidLogin.tsx +2 -5
- package/src/components/auth/SolidOTPVerify.tsx +4 -7
- package/src/components/auth/SolidRegister.tsx +207 -178
- package/src/components/auth/SolidResetPassword.tsx +2 -6
- package/src/components/common/DropzonePlaceholder.tsx +1 -1
- package/src/components/common/GeneralSettings.tsx +310 -193
- package/src/components/core/common/FilterComponent.tsx +148 -202
- package/src/components/core/common/SolidConfigureLayoutElement.tsx +6 -4
- package/src/components/core/common/SolidGlobalSearchElement.tsx +193 -50
- package/src/components/core/filter/SolidManyToOneFilterElement.tsx +5 -3
- package/src/components/core/filter/SolidSelectionDynamicFilterElement.tsx +1 -1
- package/src/components/core/filter/SolidSelectionStaticFilterElement.tsx +1 -1
- package/src/components/core/filter/SolidVarInputsFilterElement.tsx +103 -135
- package/src/components/core/form/SolidFormView.tsx +64 -25
- package/src/components/core/form/fields/SolidBooleanField.tsx +12 -5
- package/src/components/core/form/fields/SolidDateField.tsx +9 -4
- package/src/components/core/form/fields/SolidDateTimeField.tsx +27 -21
- package/src/components/core/form/fields/SolidDecimalField.tsx +9 -2
- package/src/components/core/form/fields/SolidIntegerField.tsx +22 -15
- package/src/components/core/form/fields/SolidJsonField.tsx +14 -12
- package/src/components/core/form/fields/SolidLongTextField.tsx +22 -16
- package/src/components/core/form/fields/SolidMediaMultipleField.tsx +257 -79
- package/src/components/core/form/fields/SolidMediaSingleField.tsx +148 -61
- package/src/components/core/form/fields/SolidRichTextField.tsx +6 -4
- package/src/components/core/form/fields/SolidSelectionDynamicField.tsx +6 -5
- package/src/components/core/form/fields/SolidSelectionStaticField.tsx +34 -23
- package/src/components/core/form/fields/SolidShortTextField.tsx +23 -16
- package/src/components/core/form/fields/SolidTimeField.tsx +27 -20
- package/src/components/core/form/fields/relations/SolidRelationManyToManyField.tsx +9 -9
- package/src/components/core/form/fields/relations/SolidRelationManyToOneField.tsx +20 -19
- package/src/components/core/form/fields/relations/SolidRelationOneToManyField.tsx +2 -2
- package/src/components/core/list/SolidListView.tsx +91 -49
- package/src/components/core/list/SolidManyToOneFilterElement.tsx +2 -2
- package/src/components/core/list/columns/SolidBooleanColumn.tsx +2 -2
- package/src/components/core/list/columns/relations/SolidRelationManyToOneColumn.tsx +1 -1
- package/src/components/core/model/CreateModel.tsx +92 -81
- package/src/components/core/model/FieldMetaDataForm.tsx +166 -87
- package/src/components/core/model/FieldSelector.tsx +1 -1
- package/src/components/core/model/ModelMetaData.tsx +8 -7
- package/src/components/core/module/CreateModule.tsx +181 -183
- package/src/components/layout/AppSidebar.tsx +35 -10
- package/src/components/layout/navbar-two-menu.tsx +6 -1
- package/src/components/layout/user-profile-menu.tsx +20 -8
- package/src/helpers/AppTitle.tsx +14 -0
- package/src/index.ts +2 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
|
|
3
|
+
import { AppTitle } from "@/helpers/AppTitle";
|
|
3
4
|
import { useConfirmForgotPasswordMutation } from "@/redux/api/authApi";
|
|
4
5
|
import { useLazyGetAuthSettingsQuery } from "@/redux/api/solidSettingsApi";
|
|
5
6
|
import { useFormik } from "formik";
|
|
@@ -13,7 +14,6 @@ import { classNames } from "primereact/utils";
|
|
|
13
14
|
import { useEffect, useRef } from "react";
|
|
14
15
|
import * as Yup from "yup";
|
|
15
16
|
|
|
16
|
-
|
|
17
17
|
const SolidResetPassword = ({ verificationToken, username }: { verificationToken?: any, username?: any }) => {
|
|
18
18
|
const [trigger, { data: solidSettingsData }] = useLazyGetAuthSettingsQuery();
|
|
19
19
|
useEffect(() => {
|
|
@@ -82,11 +82,7 @@ const SolidResetPassword = ({ verificationToken, username }: { verificationToken
|
|
|
82
82
|
src={'/images/SS-Logo-1 1.png'}
|
|
83
83
|
className="position-relative img-fluid"
|
|
84
84
|
/>
|
|
85
|
-
<
|
|
86
|
-
<p className="solid-logo-title">
|
|
87
|
-
Solid<br />Starters
|
|
88
|
-
</p>
|
|
89
|
-
</div>
|
|
85
|
+
<AppTitle title={solidSettingsData} />
|
|
90
86
|
</div>
|
|
91
87
|
</div>
|
|
92
88
|
}
|
|
@@ -12,7 +12,7 @@ export const DropzonePlaceholder = () => {
|
|
|
12
12
|
Drag and Drop or <span className='text-primary'> choose files</span> to upload
|
|
13
13
|
</div>
|
|
14
14
|
<p>Supported format : PDF/JPEG | File size max 10 MB</p>
|
|
15
|
-
<Button outlined size='small' severity='secondary' label='Click to Brows' />
|
|
15
|
+
<Button outlined size='small' severity='secondary' label='Click to Brows' type="button"/>
|
|
16
16
|
</div>
|
|
17
17
|
)
|
|
18
18
|
}
|
|
@@ -3,13 +3,16 @@ import { useCreateSolidSettingsMutation, useUpdateSolidSettingsMutation } from '
|
|
|
3
3
|
import { useFormik } from 'formik';
|
|
4
4
|
import { Button } from 'primereact/button';
|
|
5
5
|
import { InputText } from 'primereact/inputtext';
|
|
6
|
-
import { SelectButton } from 'primereact/selectbutton';
|
|
7
6
|
import { Toast } from 'primereact/toast';
|
|
8
|
-
import { useRef } from 'react'
|
|
7
|
+
import { useEffect, useRef } from 'react'
|
|
8
|
+
import { CancelButton } from './CancelButton';
|
|
9
|
+
import { InputSwitch } from 'primereact/inputswitch';
|
|
10
|
+
import { RadioButton } from 'primereact/radiobutton';
|
|
11
|
+
import { handleError } from '@/helpers/ToastContainer';
|
|
12
|
+
import { usePathname } from 'next/navigation';
|
|
9
13
|
|
|
10
14
|
export const GeneralSettings = ({ solidSettingsData }: { solidSettingsData: any }) => {
|
|
11
|
-
|
|
12
|
-
|
|
15
|
+
const pathname = usePathname();
|
|
13
16
|
const [updateSolidSettings] = useUpdateSolidSettingsMutation();
|
|
14
17
|
const [
|
|
15
18
|
createSolidSettings,
|
|
@@ -28,6 +31,7 @@ export const GeneralSettings = ({ solidSettingsData }: { solidSettingsData: any
|
|
|
28
31
|
iamAllowPublicRegistration: solidSettingsData?.data?.records?.[0]?.iamAllowPublicRegistration || false,
|
|
29
32
|
iamPasswordRegistrationEnabled: solidSettingsData?.data?.records?.[0]?.iamPasswordRegistrationEnabled || false,
|
|
30
33
|
iamPasswordLessRegistrationEnabled: solidSettingsData?.data?.records?.[0]?.iamPasswordLessRegistrationEnabled || false,
|
|
34
|
+
iamActivateUserOnRegistration: solidSettingsData?.data?.records?.[0]?.iamActivateUserOnRegistration || false,
|
|
31
35
|
iamGoogleOAuthEnabled: solidSettingsData?.data?.records?.[0]?.iamGoogleOAuthEnabled || false,
|
|
32
36
|
shouldQueueEmails: solidSettingsData?.data?.records?.[0]?.shouldQueueEmails || false,
|
|
33
37
|
shouldQueueSms: solidSettingsData?.data?.records?.[0]?.shouldQueueSms || false,
|
|
@@ -50,7 +54,7 @@ export const GeneralSettings = ({ solidSettingsData }: { solidSettingsData: any
|
|
|
50
54
|
if (typeof value === "boolean") {
|
|
51
55
|
formData.append(key, value ? "true" : "");
|
|
52
56
|
} else {
|
|
53
|
-
formData.append(key, value.toString()
|
|
57
|
+
formData.append(key, value.toString());
|
|
54
58
|
}
|
|
55
59
|
});
|
|
56
60
|
if (solidSettingsData?.data?.records?.length > 0) {
|
|
@@ -69,217 +73,330 @@ export const GeneralSettings = ({ solidSettingsData }: { solidSettingsData: any
|
|
|
69
73
|
},
|
|
70
74
|
})
|
|
71
75
|
|
|
72
|
-
const
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
]
|
|
76
|
-
|
|
77
|
-
const justifyOptions = [
|
|
78
|
-
{ icon: 'pi pi-align-left', value: 'left' },
|
|
79
|
-
{ icon: 'pi pi-align-center', value: 'Center' },
|
|
80
|
-
{ icon: 'pi pi-align-right', value: 'Right' },
|
|
81
|
-
];
|
|
76
|
+
const showError = async () => {
|
|
77
|
+
const errors = await formik.validateForm(); // Trigger validation and get the updated errors
|
|
78
|
+
const errorMessages = Object.values(errors);
|
|
82
79
|
|
|
83
|
-
|
|
84
|
-
|
|
80
|
+
if (errorMessages.length > 0 && toast.current) {
|
|
81
|
+
handleError(errorMessages)
|
|
82
|
+
}
|
|
85
83
|
}
|
|
84
|
+
useEffect(() => {
|
|
85
|
+
|
|
86
|
+
}, [pathname])
|
|
87
|
+
console.log("pathname", pathname);
|
|
86
88
|
|
|
87
89
|
return (
|
|
88
|
-
<div className="page-parent-wrapper
|
|
90
|
+
<div className="page-parent-wrapper">
|
|
89
91
|
<Toast ref={toast} />
|
|
90
|
-
<
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
<div className="
|
|
95
|
-
<
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
92
|
+
<div className="solid-form-wrapper">
|
|
93
|
+
<form onSubmit={formik.handleSubmit}>
|
|
94
|
+
<div className="page-header secondary-border-bottom">
|
|
95
|
+
<div className="form-wrapper-title">Settings</div>
|
|
96
|
+
<div className="gap-3 flex">
|
|
97
|
+
<Button label="Save" size="small" onClick={() => showError()} type="submit" />
|
|
98
|
+
<CancelButton />
|
|
99
|
+
</div>
|
|
100
|
+
</div>
|
|
101
|
+
<div className="p-4 solid-form-content">
|
|
102
|
+
{pathname.includes("app-settings") &&
|
|
103
|
+
<>
|
|
104
|
+
<p className='font-bold ' style={{ fontSize: 16, color: 'var(--solid-setting-title)' }}>App Logo </p>
|
|
105
|
+
<div className='formgrid grid'>
|
|
106
|
+
<div className='col-8'>
|
|
107
|
+
<div className="formgrid grid">
|
|
108
|
+
<div className="col-6">
|
|
109
|
+
<div className="formgrid grid align-items-center">
|
|
110
|
+
<div className="col-5">
|
|
111
|
+
<label className="form-field-label">App Logo</label>
|
|
112
|
+
</div>
|
|
113
|
+
{/* <div className="col-7">
|
|
114
|
+
<InputText
|
|
115
|
+
type="text"
|
|
116
|
+
id="appTitle"
|
|
117
|
+
name="appTitle"
|
|
118
|
+
onChange={formik.handleChange}
|
|
119
|
+
value={formik.values.appTitle}
|
|
120
|
+
/>
|
|
121
|
+
</div> */}
|
|
122
|
+
</div>
|
|
123
|
+
</div>
|
|
124
|
+
</div>
|
|
109
125
|
</div>
|
|
110
126
|
</div>
|
|
111
|
-
|
|
127
|
+
<div className='mt-4' style={{ borderBottom: '1px dashed #D8E2EA' }}></div>
|
|
112
128
|
|
|
113
|
-
|
|
114
|
-
<div className=
|
|
115
|
-
<div className=
|
|
116
|
-
<
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
129
|
+
<p className='font-bold mt-4' style={{ fontSize: 16, color: 'var(--solid-setting-title)' }}>Title & Description Details </p>
|
|
130
|
+
<div className='formgrid grid'>
|
|
131
|
+
<div className='col-8'>
|
|
132
|
+
<div className="formgrid grid">
|
|
133
|
+
<div className="col-6">
|
|
134
|
+
<div className="formgrid grid align-items-center">
|
|
135
|
+
<div className="col-5">
|
|
136
|
+
<label className="form-field-label">App Title</label>
|
|
137
|
+
</div>
|
|
138
|
+
<div className="col-7">
|
|
139
|
+
<InputText
|
|
140
|
+
type="text"
|
|
141
|
+
id="appTitle"
|
|
142
|
+
name="appTitle"
|
|
143
|
+
onChange={formik.handleChange}
|
|
144
|
+
value={formik.values.appTitle}
|
|
145
|
+
/>
|
|
146
|
+
</div>
|
|
147
|
+
</div>
|
|
148
|
+
</div>
|
|
149
|
+
<div className="col-6">
|
|
150
|
+
<div className="formgrid grid align-items-center">
|
|
151
|
+
<div className="col-5">
|
|
152
|
+
<label className="form-field-label">Description</label>
|
|
153
|
+
</div>
|
|
154
|
+
<div className="col-7">
|
|
155
|
+
<InputText
|
|
156
|
+
type="text"
|
|
157
|
+
id="appDescription"
|
|
158
|
+
name="appDescription"
|
|
159
|
+
onChange={formik.handleChange}
|
|
160
|
+
value={formik.values.appDescription}
|
|
161
|
+
/>
|
|
162
|
+
</div>
|
|
163
|
+
</div>
|
|
164
|
+
</div>
|
|
165
|
+
</div>
|
|
127
166
|
</div>
|
|
128
167
|
</div>
|
|
129
|
-
|
|
168
|
+
<div className='mt-4' style={{ borderBottom: '1px dashed #D8E2EA' }}></div>
|
|
130
169
|
|
|
131
|
-
|
|
132
|
-
<div className=
|
|
133
|
-
<div className=
|
|
134
|
-
<
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
170
|
+
<p className='font-bold mt-4' style={{ fontSize: 16, color: 'var(--solid-setting-title)' }}>Policies Links </p>
|
|
171
|
+
<div className='formgrid grid'>
|
|
172
|
+
<div className='col-8'>
|
|
173
|
+
<div className="formgrid grid">
|
|
174
|
+
<div className="col-6 mt-3">
|
|
175
|
+
<div className="formgrid grid align-items-center">
|
|
176
|
+
<div className="col-5">
|
|
177
|
+
<label className="form-field-label">Terms and Conditions Link</label>
|
|
178
|
+
</div>
|
|
179
|
+
<div className="col-7">
|
|
180
|
+
<InputText
|
|
181
|
+
type="text"
|
|
182
|
+
id="appTnc"
|
|
183
|
+
name="appTnc"
|
|
184
|
+
onChange={formik.handleChange}
|
|
185
|
+
value={formik.values.appTnc}
|
|
186
|
+
/>
|
|
187
|
+
</div>
|
|
188
|
+
</div>
|
|
189
|
+
</div>
|
|
190
|
+
<div className="col-6 mt-3">
|
|
191
|
+
<div className="formgrid grid align-items-center">
|
|
192
|
+
<div className="col-5">
|
|
193
|
+
<label className="form-field-label">Privacy Policy Link</label>
|
|
194
|
+
</div>
|
|
195
|
+
<div className="col-7">
|
|
196
|
+
<InputText
|
|
197
|
+
type="text"
|
|
198
|
+
id="appPrivacyPolicy"
|
|
199
|
+
name="appPrivacyPolicy"
|
|
200
|
+
onChange={formik.handleChange}
|
|
201
|
+
value={formik.values.appPrivacyPolicy}
|
|
202
|
+
/>
|
|
203
|
+
</div>
|
|
204
|
+
</div>
|
|
205
|
+
</div>
|
|
206
|
+
</div>
|
|
145
207
|
</div>
|
|
146
208
|
</div>
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
209
|
+
</>
|
|
210
|
+
}
|
|
211
|
+
{pathname.includes("authentication-settings") &&
|
|
212
|
+
<>
|
|
213
|
+
<p className='font-bold' style={{ fontSize: 16, color: 'var(--solid-setting-title)' }}>User Authentication </p>
|
|
214
|
+
<div className='formgrid grid'>
|
|
215
|
+
<div className='col-8'>
|
|
216
|
+
<div className="formgrid grid">
|
|
217
|
+
<div className="col-6">
|
|
218
|
+
<div className="formgrid grid align-items-center">
|
|
219
|
+
<div className="col-5">
|
|
220
|
+
<label className="form-field-label">Public Registration</label>
|
|
221
|
+
</div>
|
|
222
|
+
<div className="col-7">
|
|
223
|
+
<InputSwitch
|
|
224
|
+
name="iamAllowPublicRegistration"
|
|
225
|
+
checked={formik.values.iamAllowPublicRegistration}
|
|
226
|
+
onChange={(e) => formik.setFieldValue("iamAllowPublicRegistration", e.value)}
|
|
227
|
+
/>
|
|
228
|
+
</div>
|
|
229
|
+
</div>
|
|
230
|
+
</div>
|
|
231
|
+
<div className="col-6">
|
|
232
|
+
<div className="formgrid grid align-items-center">
|
|
233
|
+
<div className="col-5">
|
|
234
|
+
<label className="form-field-label">Signup with Password</label>
|
|
235
|
+
</div>
|
|
236
|
+
<div className="col-7">
|
|
237
|
+
<InputSwitch
|
|
238
|
+
name="iamPasswordRegistrationEnabled"
|
|
239
|
+
checked={formik.values.iamPasswordRegistrationEnabled}
|
|
240
|
+
onChange={(e) => formik.setFieldValue("iamPasswordRegistrationEnabled", e.value)}
|
|
241
|
+
/>
|
|
242
|
+
</div>
|
|
243
|
+
</div>
|
|
244
|
+
</div>
|
|
245
|
+
<div className="col-6 mt-3">
|
|
246
|
+
<div className="formgrid grid align-items-center">
|
|
247
|
+
<div className="col-5">
|
|
248
|
+
<label className="form-field-label">Signup without Password</label>
|
|
249
|
+
</div>
|
|
250
|
+
<div className="col-7">
|
|
251
|
+
<InputSwitch
|
|
252
|
+
name="iamPasswordLessRegistrationEnabled"
|
|
253
|
+
checked={formik.values.iamPasswordLessRegistrationEnabled}
|
|
254
|
+
onChange={(e) => formik.setFieldValue("iamPasswordLessRegistrationEnabled", e.value)}
|
|
255
|
+
/>
|
|
256
|
+
</div>
|
|
257
|
+
</div>
|
|
258
|
+
</div>
|
|
259
|
+
<div className="col-6 mt-3">
|
|
260
|
+
<div className="formgrid grid align-items-center">
|
|
261
|
+
<div className="col-5">
|
|
262
|
+
<label className="form-field-label">Auto Activate User on Registration </label>
|
|
263
|
+
</div>
|
|
264
|
+
<div className="col-7">
|
|
265
|
+
<InputSwitch
|
|
266
|
+
name="iamActivateUserOnRegistration"
|
|
267
|
+
checked={formik.values.iamActivateUserOnRegistration}
|
|
268
|
+
onChange={(e) => formik.setFieldValue("iamActivateUserOnRegistration", e.value)}
|
|
269
|
+
/>
|
|
270
|
+
</div>
|
|
271
|
+
</div>
|
|
272
|
+
</div>
|
|
273
|
+
<div className="col-6 mt-3">
|
|
274
|
+
<div className="formgrid grid align-items-center">
|
|
275
|
+
<div className="col-5">
|
|
276
|
+
<label className="form-field-label">Allow Login/ Signup with Google </label>
|
|
277
|
+
</div>
|
|
278
|
+
<div className="col-7">
|
|
279
|
+
<InputSwitch
|
|
280
|
+
name="iamGoogleOAuthEnabled"
|
|
281
|
+
checked={formik.values.iamGoogleOAuthEnabled}
|
|
282
|
+
onChange={(e) => formik.setFieldValue("iamGoogleOAuthEnabled", e.value)}
|
|
283
|
+
/>
|
|
284
|
+
</div>
|
|
285
|
+
</div>
|
|
286
|
+
</div>
|
|
287
|
+
</div>
|
|
163
288
|
</div>
|
|
164
289
|
</div>
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
290
|
+
<div className='mt-4' style={{ borderBottom: '1px dashed #D8E2EA' }}></div>
|
|
291
|
+
<p className='font-bold mt-4' style={{ fontSize: 16, color: 'var(--solid-setting-title)' }}>Authentication Screen Layout</p>
|
|
292
|
+
<div className='formgrid grid'>
|
|
293
|
+
<div className='col-8'>
|
|
294
|
+
<div className="flex align-items-center gap-3">
|
|
295
|
+
<div className="flex align-items-center">
|
|
296
|
+
<RadioButton
|
|
297
|
+
inputId="authPagesLayout-left"
|
|
298
|
+
name="authPagesLayout"
|
|
299
|
+
value="left"
|
|
300
|
+
checked={formik.values.authPagesLayout === "left"}
|
|
301
|
+
onChange={(e) => formik.setFieldValue("authPagesLayout", e.value)}
|
|
302
|
+
/>
|
|
303
|
+
<label htmlFor="authPagesLayout-left" className="ml-2">Left</label>
|
|
304
|
+
</div>
|
|
305
|
+
<div className="flex align-items-center">
|
|
306
|
+
<RadioButton
|
|
307
|
+
inputId="authPagesLayout-center"
|
|
308
|
+
name="authPagesLayout"
|
|
309
|
+
value="center"
|
|
310
|
+
checked={formik.values.authPagesLayout === "center"}
|
|
311
|
+
onChange={(e) => formik.setFieldValue("authPagesLayout", e.value)}
|
|
312
|
+
/>
|
|
313
|
+
<label htmlFor="authPagesLayout-center" className="ml-2">Center</label>
|
|
314
|
+
</div>
|
|
315
|
+
<div className="flex align-items-center">
|
|
316
|
+
<RadioButton
|
|
317
|
+
inputId="authPagesLayout-right"
|
|
318
|
+
name="authPagesLayout"
|
|
319
|
+
value="right"
|
|
320
|
+
checked={formik.values.authPagesLayout === "right"}
|
|
321
|
+
onChange={(e) => formik.setFieldValue("authPagesLayout", e.value)}
|
|
322
|
+
/>
|
|
323
|
+
<label htmlFor="authPagesLayout-right" className="ml-2">Right</label>
|
|
324
|
+
</div>
|
|
325
|
+
</div>
|
|
181
326
|
</div>
|
|
182
327
|
</div>
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
328
|
+
<div className='mt-4' style={{ borderBottom: '1px dashed #D8E2EA' }}></div>
|
|
329
|
+
<p className='font-bold mt-4' style={{ fontSize: 16, color: 'var(--solid-setting-title)' }}>Authentication Screen Theme</p>
|
|
330
|
+
<div className='formgrid grid'>
|
|
331
|
+
<div className='col-8'>
|
|
332
|
+
<div className="flex align-items-center gap-3">
|
|
333
|
+
<div className="flex align-items-center">
|
|
334
|
+
<RadioButton
|
|
335
|
+
inputId="theme-light"
|
|
336
|
+
name="authPagesTheme"
|
|
337
|
+
value="light"
|
|
338
|
+
checked={formik.values.authPagesTheme === "light"}
|
|
339
|
+
onChange={(e) => formik.setFieldValue("authPagesTheme", e.value)}
|
|
340
|
+
/>
|
|
341
|
+
<label htmlFor="theme-light" className="ml-2">Solid Light</label>
|
|
342
|
+
</div>
|
|
343
|
+
<div className="flex align-items-center">
|
|
344
|
+
<RadioButton
|
|
345
|
+
inputId="theme-dark"
|
|
346
|
+
name="authPagesTheme"
|
|
347
|
+
value="dark"
|
|
348
|
+
checked={formik.values.authPagesTheme === "dark"}
|
|
349
|
+
onChange={(e) => formik.setFieldValue("authPagesTheme", e.value)}
|
|
350
|
+
/>
|
|
351
|
+
<label htmlFor="theme-dark" className="ml-2">Solid Dark</label>
|
|
352
|
+
</div>
|
|
353
|
+
</div>
|
|
199
354
|
</div>
|
|
200
355
|
</div>
|
|
201
|
-
|
|
356
|
+
</>
|
|
357
|
+
}
|
|
202
358
|
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
359
|
+
{pathname.includes("misc-settings") &&
|
|
360
|
+
<>
|
|
361
|
+
<p className='font-bold' style={{ fontSize: 16, color: 'var(--solid-setting-title)' }}>Misc Details</p>
|
|
362
|
+
<div className='formgrid grid'>
|
|
363
|
+
<div className='col-8'>
|
|
364
|
+
<div className="formgrid grid">
|
|
365
|
+
<div className="col-6">
|
|
366
|
+
<div className="formgrid grid align-items-center">
|
|
367
|
+
<div className="col-5">
|
|
368
|
+
<label className="form-field-label">Use queue for sending emails</label>
|
|
369
|
+
</div>
|
|
370
|
+
<div className="col-7">
|
|
371
|
+
<InputSwitch
|
|
372
|
+
name="shouldQueueEmails"
|
|
373
|
+
checked={formik.values.shouldQueueEmails}
|
|
374
|
+
onChange={(e) => formik.setFieldValue("shouldQueueEmails", e.value)}
|
|
375
|
+
/>
|
|
376
|
+
</div>
|
|
377
|
+
</div>
|
|
378
|
+
</div>
|
|
379
|
+
<div className="col-6">
|
|
380
|
+
<div className="formgrid grid align-items-center">
|
|
381
|
+
<div className="col-5">
|
|
382
|
+
<label className="form-field-label">Use queue for sending SMS</label>
|
|
383
|
+
</div>
|
|
384
|
+
<div className="col-7">
|
|
385
|
+
<InputSwitch
|
|
386
|
+
name="shouldQueueSms"
|
|
387
|
+
checked={formik.values.shouldQueueSms}
|
|
388
|
+
onChange={(e) => formik.setFieldValue("shouldQueueSms", e.value)}
|
|
389
|
+
/>
|
|
390
|
+
</div>
|
|
391
|
+
</div>
|
|
392
|
+
</div>
|
|
222
393
|
</div>
|
|
223
394
|
</div>
|
|
224
395
|
</div>
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
<label className="form-field-label">Authentication Pages Theme</label>
|
|
230
|
-
</div>
|
|
231
|
-
<div className="col-7">
|
|
232
|
-
<SelectButton
|
|
233
|
-
name="authPagesLayout"
|
|
234
|
-
value={
|
|
235
|
-
formik.values.authPagesLayout === "left"
|
|
236
|
-
? "left"
|
|
237
|
-
: formik.values.authPagesLayout.charAt(0).toUpperCase() + formik.values.authPagesLayout.slice(1)
|
|
238
|
-
}
|
|
239
|
-
onChange={(e) => formik.setFieldValue("authPagesLayout", e.value)}
|
|
240
|
-
itemTemplate={justifyTemplate}
|
|
241
|
-
optionLabel="value"
|
|
242
|
-
options={justifyOptions}
|
|
243
|
-
/>
|
|
244
|
-
</div>
|
|
245
|
-
</div>
|
|
246
|
-
</div>
|
|
247
|
-
<div className="col-6 mt-3">
|
|
248
|
-
<div className="formgrid grid align-items-center">
|
|
249
|
-
<div className="col-5">
|
|
250
|
-
<label className="form-field-label">Terms and Conditions Link</label>
|
|
251
|
-
</div>
|
|
252
|
-
<div className="col-7">
|
|
253
|
-
<InputText
|
|
254
|
-
type="text"
|
|
255
|
-
id="appTnc"
|
|
256
|
-
name="appTnc"
|
|
257
|
-
onChange={formik.handleChange}
|
|
258
|
-
value={formik.values.appTnc}
|
|
259
|
-
/>
|
|
260
|
-
</div>
|
|
261
|
-
</div>
|
|
262
|
-
</div>
|
|
263
|
-
<div className="col-6 mt-3">
|
|
264
|
-
<div className="formgrid grid align-items-center">
|
|
265
|
-
<div className="col-5">
|
|
266
|
-
<label className="form-field-label">Privacy Policy Link</label>
|
|
267
|
-
</div>
|
|
268
|
-
<div className="col-7">
|
|
269
|
-
<InputText
|
|
270
|
-
type="text"
|
|
271
|
-
id="appPrivacyPolicy"
|
|
272
|
-
name="appPrivacyPolicy"
|
|
273
|
-
onChange={formik.handleChange}
|
|
274
|
-
value={formik.values.appPrivacyPolicy}
|
|
275
|
-
/>
|
|
276
|
-
</div>
|
|
277
|
-
</div>
|
|
278
|
-
</div>
|
|
279
|
-
</div>
|
|
280
|
-
<Button type="submit" label="Save" className="mt-3" />
|
|
281
|
-
</form>
|
|
282
|
-
</div>
|
|
396
|
+
</>
|
|
397
|
+
}
|
|
398
|
+
</div>
|
|
399
|
+
</form>
|
|
283
400
|
</div>
|
|
284
401
|
</div>
|
|
285
402
|
)
|