@solidstarters/solid-core-ui 1.1.6 → 1.1.8
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.map +1 -1
- package/dist/components/auth/SolidChangeForcePassword.js +7 -7
- package/dist/components/auth/SolidChangeForcePassword.js.map +1 -1
- package/dist/components/auth/SolidForgotPassword.d.ts.map +1 -1
- package/dist/components/auth/SolidForgotPassword.js +9 -4
- 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 +13 -6
- package/dist/components/auth/SolidLogin.js.map +1 -1
- package/dist/components/common/BackButton.d.ts +2 -0
- package/dist/components/common/BackButton.d.ts.map +1 -0
- package/dist/components/common/BackButton.js +17 -0
- package/dist/components/common/BackButton.js.map +1 -0
- package/dist/components/common/CancelButton.js +2 -2
- package/dist/components/common/CancelButton.js.map +1 -1
- package/dist/components/common/DropzonePlaceholder.d.ts.map +1 -1
- package/dist/components/common/DropzonePlaceholder.js +2 -1
- package/dist/components/common/DropzonePlaceholder.js.map +1 -1
- package/dist/components/common/FileReaderExt.d.ts +4 -0
- package/dist/components/common/FileReaderExt.d.ts.map +1 -0
- package/dist/components/common/FileReaderExt.js +15 -0
- package/dist/components/common/FileReaderExt.js.map +1 -0
- package/dist/components/common/GeneralSettings.d.ts +4 -0
- package/dist/components/common/GeneralSettings.d.ts.map +1 -0
- package/dist/components/common/GeneralSettings.js +139 -0
- package/dist/components/common/GeneralSettings.js.map +1 -0
- package/dist/components/common/SingleSelectAutoCompleteField.d.ts.map +1 -1
- package/dist/components/common/SingleSelectAutoCompleteField.js +1 -1
- package/dist/components/common/SingleSelectAutoCompleteField.js.map +1 -1
- package/dist/components/common/SolidFormStepper.d.ts +2 -0
- package/dist/components/common/SolidFormStepper.d.ts.map +1 -0
- package/dist/components/common/SolidFormStepper.js +6 -0
- package/dist/components/common/SolidFormStepper.js.map +1 -0
- package/dist/components/core/common/LoadDynamicJsxComponent.d.ts.map +1 -1
- package/dist/components/core/common/LoadDynamicJsxComponent.js +2 -1
- package/dist/components/core/common/LoadDynamicJsxComponent.js.map +1 -1
- package/dist/components/core/common/SolidGlobalSearchElement.d.ts.map +1 -1
- package/dist/components/core/common/SolidGlobalSearchElement.js +6 -5
- package/dist/components/core/common/SolidGlobalSearchElement.js.map +1 -1
- package/dist/components/core/extension/solid-core/modelMetadata/list/GenerateModelCodeRowAction.d.ts +2 -1
- package/dist/components/core/extension/solid-core/modelMetadata/list/GenerateModelCodeRowAction.d.ts.map +1 -1
- package/dist/components/core/extension/solid-core/modelMetadata/list/GenerateModelCodeRowAction.js +4 -3
- package/dist/components/core/extension/solid-core/modelMetadata/list/GenerateModelCodeRowAction.js.map +1 -1
- package/dist/components/core/form/SolidFormView.d.ts.map +1 -1
- package/dist/components/core/form/SolidFormView.js +83 -54
- 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 +4 -4
- 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 +7 -7
- 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 +7 -7
- 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 +4 -4
- 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 +4 -4
- 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 +11 -11
- 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 +13 -13
- 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 +4 -4
- 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 +2 -2
- 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 +7 -7
- 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 +15 -14
- 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 +2 -2
- 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 +99 -21
- package/dist/components/core/list/SolidListView.js.map +1 -1
- package/dist/components/core/model/CreateModel.d.ts.map +1 -1
- package/dist/components/core/model/CreateModel.js +15 -11
- 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.d.ts.map +1 -1
- package/dist/components/core/model/FieldMetaDataForm.js +189 -176
- 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 +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 +55 -44
- 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 +98 -60
- package/dist/components/core/module/CreateModule.js.map +1 -1
- package/dist/components/core/users/CreateUser.d.ts.map +1 -1
- package/dist/components/core/users/CreateUser.js +18 -15
- package/dist/components/core/users/CreateUser.js.map +1 -1
- package/dist/components/layout/user-profile-menu.d.ts.map +1 -1
- package/dist/components/layout/user-profile-menu.js +3 -1
- package/dist/components/layout/user-profile-menu.js.map +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/redux/api/solidEntityApi.d.ts +2 -0
- package/dist/redux/api/solidEntityApi.d.ts.map +1 -1
- package/dist/redux/api/solidEntityApi.js +10 -0
- package/dist/redux/api/solidEntityApi.js.map +1 -1
- package/dist/redux/api/solidSettingsApi.d.ts +9 -0
- package/dist/redux/api/solidSettingsApi.d.ts.map +1 -0
- package/dist/redux/api/solidSettingsApi.js +40 -0
- package/dist/redux/api/solidSettingsApi.js.map +1 -0
- package/package.json +1 -1
- package/src/components/auth/SolidChangeForcePassword.tsx +2 -3
- package/src/components/auth/SolidForgotPassword.tsx +9 -4
- package/src/components/auth/SolidLogin.tsx +21 -12
- package/src/components/common/BackButton.tsx +27 -0
- package/src/components/common/CancelButton.tsx +2 -2
- package/src/components/common/DropzonePlaceholder.tsx +11 -3
- package/src/components/common/FileReaderExt.tsx +18 -0
- package/src/components/common/GeneralSettings.tsx +286 -0
- package/src/components/common/SingleSelectAutoCompleteField.tsx +0 -1
- package/src/components/common/SolidFormStepper.tsx +12 -0
- package/src/components/core/common/LoadDynamicJsxComponent.tsx +2 -1
- package/src/components/core/common/SolidGlobalSearchElement.tsx +6 -2
- package/src/components/core/extension/solid-core/modelMetadata/list/GenerateModelCodeRowAction.tsx +4 -4
- package/src/components/core/form/SolidFormView.tsx +201 -186
- package/src/components/core/form/fields/SolidBooleanField.tsx +3 -7
- package/src/components/core/form/fields/SolidDateField.tsx +2 -8
- package/src/components/core/form/fields/SolidDateTimeField.tsx +19 -24
- package/src/components/core/form/fields/SolidDecimalField.tsx +2 -7
- package/src/components/core/form/fields/SolidIntegerField.tsx +17 -22
- package/src/components/core/form/fields/SolidJsonField.tsx +15 -19
- package/src/components/core/form/fields/SolidLongTextField.tsx +19 -24
- package/src/components/core/form/fields/SolidMediaMultipleField.tsx +47 -51
- package/src/components/core/form/fields/SolidMediaSingleField.tsx +47 -51
- package/src/components/core/form/fields/SolidRichTextField.tsx +3 -7
- package/src/components/core/form/fields/SolidSelectionDynamicField.tsx +2 -7
- package/src/components/core/form/fields/SolidSelectionStaticField.tsx +20 -25
- package/src/components/core/form/fields/SolidShortTextField.tsx +18 -23
- package/src/components/core/form/fields/SolidTimeField.tsx +19 -24
- package/src/components/core/form/fields/relations/SolidRelationManyToManyField.tsx +51 -52
- package/src/components/core/form/fields/relations/SolidRelationManyToOneField.tsx +20 -25
- package/src/components/core/form/fields/relations/SolidRelationOneToManyField.tsx +6 -5
- package/src/components/core/list/SolidListView.tsx +118 -8
- package/src/components/core/model/CreateModel.tsx +68 -53
- package/src/components/core/model/FieldMetaData.tsx +16 -21
- package/src/components/core/model/FieldMetaDataForm.tsx +803 -895
- package/src/components/core/model/FieldSelector.tsx +10 -15
- package/src/components/core/model/ModelMetaData.tsx +373 -358
- package/src/components/core/module/CreateModule.tsx +327 -295
- package/src/components/core/users/CreateUser.tsx +175 -167
- package/src/components/layout/user-profile-menu.tsx +6 -1
- package/src/index.ts +6 -2
- package/src/redux/api/solidEntityApi.tsx +11 -0
- package/src/redux/api/solidSettingsApi.tsx +47 -0
|
@@ -43,7 +43,7 @@ export class SolidDecimalField implements ISolidField {
|
|
|
43
43
|
render(formik: FormikObject) {
|
|
44
44
|
const fieldMetadata = this.fieldContext.fieldMetadata;
|
|
45
45
|
const fieldLayoutInfo = this.fieldContext.field;
|
|
46
|
-
const className = fieldLayoutInfo.attrs?.className || 'col-
|
|
46
|
+
const className = fieldLayoutInfo.attrs?.className || 'field col-6 flex flex-column gap-2 mt-4';
|
|
47
47
|
const fieldLabel = fieldLayoutInfo.attrs.label ?? fieldMetadata.displayName;
|
|
48
48
|
const fieldDescription = fieldLayoutInfo.attrs.description ?? fieldMetadata.description;
|
|
49
49
|
const solidFormViewMetaData = this.fieldContext.solidFormViewMetaData;
|
|
@@ -58,18 +58,14 @@ export class SolidDecimalField implements ISolidField {
|
|
|
58
58
|
|
|
59
59
|
return (
|
|
60
60
|
<div className={className}>
|
|
61
|
-
|
|
62
|
-
<label htmlFor={fieldLayoutInfo.attrs.name}>{fieldLabel}
|
|
61
|
+
<label htmlFor={fieldLayoutInfo.attrs.name} className="form-field-label">{fieldLabel}
|
|
63
62
|
{fieldDescription && <span className="form_field_help">({fieldDescription}) </span>}
|
|
64
63
|
</label>
|
|
65
|
-
</div>
|
|
66
|
-
<div className="s-input">
|
|
67
64
|
<InputNumber
|
|
68
65
|
readOnly={formReadonly || fieldReadonly}
|
|
69
66
|
disabled={formDisabled || fieldDisabled}
|
|
70
67
|
id={fieldLayoutInfo.attrs.name}
|
|
71
68
|
minFractionDigits={2}
|
|
72
|
-
className="small-input"
|
|
73
69
|
aria-describedby={`${fieldLayoutInfo.attrs.name}-help`}
|
|
74
70
|
onChange={(e: any) => {
|
|
75
71
|
formik.setFieldValue(fieldLayoutInfo.attrs.name, e.value)
|
|
@@ -79,7 +75,6 @@ export class SolidDecimalField implements ISolidField {
|
|
|
79
75
|
{isFormFieldValid(formik, fieldLayoutInfo.attrs.name) && (
|
|
80
76
|
<Message severity="error" text={formik?.errors[fieldLayoutInfo.attrs.name]?.toString()} />
|
|
81
77
|
)}
|
|
82
|
-
</div>
|
|
83
78
|
</div>
|
|
84
79
|
);
|
|
85
80
|
}
|
|
@@ -44,7 +44,7 @@ export class SolidIntegerField implements ISolidField {
|
|
|
44
44
|
render(formik: FormikObject) {
|
|
45
45
|
const fieldMetadata = this.fieldContext.fieldMetadata;
|
|
46
46
|
const fieldLayoutInfo = this.fieldContext.field;
|
|
47
|
-
const className = fieldLayoutInfo.attrs?.className || 'col-
|
|
47
|
+
const className = fieldLayoutInfo.attrs?.className || 'field col-6 flex flex-column gap-2 mt-4';
|
|
48
48
|
const fieldLabel = fieldLayoutInfo.attrs.label ?? fieldMetadata.displayName;
|
|
49
49
|
const fieldDescription = fieldLayoutInfo.attrs.description ?? fieldMetadata.description;
|
|
50
50
|
const solidFormViewMetaData = this.fieldContext.solidFormViewMetaData;
|
|
@@ -59,27 +59,22 @@ export class SolidIntegerField implements ISolidField {
|
|
|
59
59
|
|
|
60
60
|
return (
|
|
61
61
|
<div className={className}>
|
|
62
|
-
<
|
|
63
|
-
<
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
/>
|
|
79
|
-
{isFormFieldValid(formik, fieldLayoutInfo.attrs.name) && (
|
|
80
|
-
<Message severity="error" text={formik?.errors[fieldLayoutInfo.attrs.name]?.toString()} />
|
|
81
|
-
)}
|
|
82
|
-
</div>
|
|
62
|
+
<label htmlFor={fieldLayoutInfo.attrs.name} className="form-field-label">{fieldLabel}
|
|
63
|
+
{fieldDescription && <span className="form_field_help">({fieldDescription}) </span>}
|
|
64
|
+
</label>
|
|
65
|
+
<InputNumber
|
|
66
|
+
readOnly={formReadonly || fieldReadonly}
|
|
67
|
+
disabled={formDisabled || fieldDisabled}
|
|
68
|
+
id={fieldLayoutInfo.attrs.name}
|
|
69
|
+
aria-describedby={`${fieldLayoutInfo.attrs.name}-help`}
|
|
70
|
+
onChange={(e: any) => {
|
|
71
|
+
formik.setFieldValue(fieldLayoutInfo.attrs.name, e.value)
|
|
72
|
+
}}
|
|
73
|
+
value={formik.values[fieldLayoutInfo.attrs.name] || ''}
|
|
74
|
+
/>
|
|
75
|
+
{isFormFieldValid(formik, fieldLayoutInfo.attrs.name) && (
|
|
76
|
+
<Message severity="error" text={formik?.errors[fieldLayoutInfo.attrs.name]?.toString()} />
|
|
77
|
+
)}
|
|
83
78
|
</div>
|
|
84
79
|
);
|
|
85
80
|
}
|
|
@@ -43,7 +43,7 @@ export class SolidJsonField implements ISolidField {
|
|
|
43
43
|
render(formik: FormikObject) {
|
|
44
44
|
const fieldMetadata = this.fieldContext.fieldMetadata;
|
|
45
45
|
const fieldLayoutInfo = this.fieldContext.field;
|
|
46
|
-
const className = fieldLayoutInfo.attrs?.className || 'col-12
|
|
46
|
+
const className = fieldLayoutInfo.attrs?.className || 'field col-12 flex flex-column gap-2 mt-4';
|
|
47
47
|
const fieldLabel = fieldLayoutInfo.attrs.label ?? fieldMetadata.displayName;
|
|
48
48
|
const fieldDescription = fieldLayoutInfo.attrs.description ?? fieldMetadata.description;
|
|
49
49
|
const solidFormViewMetaData = this.fieldContext.solidFormViewMetaData;
|
|
@@ -55,25 +55,21 @@ export class SolidJsonField implements ISolidField {
|
|
|
55
55
|
|
|
56
56
|
return (
|
|
57
57
|
<div className={className}>
|
|
58
|
-
<
|
|
59
|
-
<label htmlFor={fieldLayoutInfo.attrs.name}>{fieldLabel}
|
|
58
|
+
<label htmlFor={fieldLayoutInfo.attrs.name} className="form-field-label">{fieldLabel}
|
|
60
59
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
<Message severity="error" text={formik?.errors[fieldLayoutInfo.attrs.name]?.toString()} />
|
|
75
|
-
)}
|
|
76
|
-
</div>
|
|
60
|
+
{fieldDescription && <span className="form_field_help">({fieldDescription}) </span>}
|
|
61
|
+
</label>
|
|
62
|
+
<CodeEditor
|
|
63
|
+
formik={formik}
|
|
64
|
+
field={fieldLayoutInfo.attrs.name}
|
|
65
|
+
height={fieldLayoutInfo.attrs?.height}
|
|
66
|
+
fontSize={fieldLayoutInfo.attrs?.fontSize}
|
|
67
|
+
readOnly={formReadonly || fieldReadonly}
|
|
68
|
+
>
|
|
69
|
+
</CodeEditor>
|
|
70
|
+
{isFormFieldValid(formik, fieldLayoutInfo.attrs.name) && (
|
|
71
|
+
<Message severity="error" text={formik?.errors[fieldLayoutInfo.attrs.name]?.toString()} />
|
|
72
|
+
)}
|
|
77
73
|
</div>
|
|
78
74
|
);
|
|
79
75
|
}
|
|
@@ -56,7 +56,7 @@ export class SolidLongTextField implements ISolidField {
|
|
|
56
56
|
render(formik: FormikObject) {
|
|
57
57
|
const fieldMetadata = this.fieldContext.fieldMetadata;
|
|
58
58
|
const fieldLayoutInfo = this.fieldContext.field;
|
|
59
|
-
const className = fieldLayoutInfo.attrs?.className || 'col-
|
|
59
|
+
const className = fieldLayoutInfo.attrs?.className || 'field col-6 flex flex-column gap-2 mt-4';
|
|
60
60
|
const fieldLabel = fieldLayoutInfo.attrs.label ?? fieldMetadata.displayName;
|
|
61
61
|
const fieldDescription = fieldLayoutInfo.attrs.description ?? fieldMetadata.description;
|
|
62
62
|
const solidFormViewMetaData = this.fieldContext.solidFormViewMetaData;
|
|
@@ -71,30 +71,25 @@ export class SolidLongTextField implements ISolidField {
|
|
|
71
71
|
|
|
72
72
|
return (
|
|
73
73
|
<div className={className}>
|
|
74
|
-
<
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
/>
|
|
92
|
-
{isFormFieldValid(formik, fieldLayoutInfo.attrs.name) && (
|
|
93
|
-
<Message severity="error" text={formik?.errors[fieldLayoutInfo.attrs.name]?.toString()} />
|
|
94
|
-
)}
|
|
95
|
-
</div>
|
|
96
|
-
|
|
74
|
+
<label htmlFor={fieldLayoutInfo.attrs.name} className="form-field-label">{fieldLabel}
|
|
75
|
+
|
|
76
|
+
{fieldDescription && <span>({fieldDescription}) </span>}
|
|
77
|
+
</label>
|
|
78
|
+
<InputTextarea
|
|
79
|
+
readOnly={formReadonly || fieldReadonly}
|
|
80
|
+
disabled={formDisabled || fieldDisabled}
|
|
81
|
+
id={fieldLayoutInfo.attrs.name}
|
|
82
|
+
aria-describedby={`${fieldLayoutInfo.attrs.name}-help`}
|
|
83
|
+
onChange={formik.handleChange}
|
|
84
|
+
value={formik.values[fieldLayoutInfo.attrs.name] || ''}
|
|
85
|
+
rows={5}
|
|
86
|
+
cols={30}
|
|
87
|
+
/>
|
|
88
|
+
{isFormFieldValid(formik, fieldLayoutInfo.attrs.name) && (
|
|
89
|
+
<Message severity="error" text={formik?.errors[fieldLayoutInfo.attrs.name]?.toString()} />
|
|
90
|
+
)}
|
|
97
91
|
</div>
|
|
98
92
|
);
|
|
99
93
|
}
|
|
100
94
|
}
|
|
95
|
+
|
|
@@ -88,7 +88,7 @@ export class SolidMediaMultipleField implements ISolidField {
|
|
|
88
88
|
render(formik: FormikObject) {
|
|
89
89
|
const fieldMetadata = this.fieldContext.fieldMetadata;
|
|
90
90
|
const fieldLayoutInfo = this.fieldContext.field;
|
|
91
|
-
const className = fieldLayoutInfo.attrs?.className || 'col-
|
|
91
|
+
const className = fieldLayoutInfo.attrs?.className || 'field col-6 flex flex-column gap-2 mt-4';
|
|
92
92
|
const fieldLabel = fieldLayoutInfo.attrs.label ?? fieldMetadata.displayName;
|
|
93
93
|
const fieldDescription = fieldLayoutInfo.attrs.description ?? fieldMetadata.description;
|
|
94
94
|
const solidFormViewMetaData = this.fieldContext.solidFormViewMetaData;
|
|
@@ -171,57 +171,53 @@ export class SolidMediaMultipleField implements ISolidField {
|
|
|
171
171
|
|
|
172
172
|
return (
|
|
173
173
|
<div className={className}>
|
|
174
|
-
<
|
|
175
|
-
<label htmlFor={fieldLayoutInfo.attrs.name}>{fieldLabel}
|
|
174
|
+
<label htmlFor={fieldLayoutInfo.attrs.name} className="form-field-label">{fieldLabel}
|
|
176
175
|
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
/>
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
<
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
<DropzonePlaceholder />
|
|
223
|
-
}
|
|
224
|
-
</div>
|
|
176
|
+
{fieldDescription && <span className="form_field_help">({fieldDescription}) </span>}
|
|
177
|
+
</label>
|
|
178
|
+
<div
|
|
179
|
+
{...getRootProps()}
|
|
180
|
+
className="dropzone p-3 border-1 border-round surface-border"
|
|
181
|
+
>
|
|
182
|
+
<input {...getInputProps()}
|
|
183
|
+
/>
|
|
184
|
+
{isDragActive ? (
|
|
185
|
+
<DropzonePlaceholder />
|
|
186
|
+
|
|
187
|
+
) : imagesPreview.length > 0 ? (
|
|
188
|
+
<div className="flex overflow-auto gap-3">
|
|
189
|
+
{imagesPreview.map((preview, index) => (
|
|
190
|
+
<div key={index} className="relative">
|
|
191
|
+
|
|
192
|
+
<img
|
|
193
|
+
src={imageFormatHandler(preview) as string}
|
|
194
|
+
alt={`Preview ${index + 1}`}
|
|
195
|
+
className="bg-white h-10rem w-14rem"
|
|
196
|
+
/>
|
|
197
|
+
<Button
|
|
198
|
+
type="button"
|
|
199
|
+
onClick={(e) => {
|
|
200
|
+
e.stopPropagation();
|
|
201
|
+
setDeleteImageDialogVisible(true);
|
|
202
|
+
const data = {
|
|
203
|
+
index, e
|
|
204
|
+
}
|
|
205
|
+
setImageToBeDeletedData(data)
|
|
206
|
+
}}
|
|
207
|
+
icon="pi pi-trash"
|
|
208
|
+
severity="secondary"
|
|
209
|
+
outlined
|
|
210
|
+
className="absolute right-0 top-0 bg-white z-5 m-2"
|
|
211
|
+
style={{ height: 25, width: 25 }}
|
|
212
|
+
/>
|
|
213
|
+
<DropzoneUpload />
|
|
214
|
+
|
|
215
|
+
</div>
|
|
216
|
+
))}
|
|
217
|
+
</div>
|
|
218
|
+
) :
|
|
219
|
+
<DropzonePlaceholder />
|
|
220
|
+
}
|
|
225
221
|
|
|
226
222
|
{isFormFieldValid(formik, fieldLayoutInfo.attrs.name) && (
|
|
227
223
|
<Message severity="error" text={formik?.errors[fieldLayoutInfo.attrs.name]?.toString()} />
|
|
@@ -74,7 +74,7 @@ export class SolidMediaSingleField implements ISolidField {
|
|
|
74
74
|
render(formik: FormikObject) {
|
|
75
75
|
const fieldMetadata = this.fieldContext.fieldMetadata;
|
|
76
76
|
const fieldLayoutInfo = this.fieldContext.field;
|
|
77
|
-
const className = fieldLayoutInfo.attrs?.className || 'col-
|
|
77
|
+
const className = fieldLayoutInfo.attrs?.className || 'field col-6 flex flex-column gap-2 mt-4';
|
|
78
78
|
const fieldLabel = fieldLayoutInfo.attrs.label ?? fieldMetadata.displayName;
|
|
79
79
|
const fieldDescription = fieldLayoutInfo.attrs.description ?? fieldMetadata.description;
|
|
80
80
|
const solidFormViewMetaData = this.fieldContext.solidFormViewMetaData;
|
|
@@ -156,58 +156,54 @@ export class SolidMediaSingleField implements ISolidField {
|
|
|
156
156
|
|
|
157
157
|
return (
|
|
158
158
|
<div className={className}>
|
|
159
|
-
<
|
|
160
|
-
<
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
<
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
<
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
e
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
</div>
|
|
202
|
-
) : (
|
|
203
|
-
<DropzonePlaceholder />
|
|
204
|
-
)}
|
|
205
|
-
{ }
|
|
206
|
-
</div>
|
|
207
|
-
{isFormFieldValid(formik, fieldLayoutInfo.attrs.name) && (
|
|
208
|
-
<Message severity="error" text={formik?.errors[fieldLayoutInfo.attrs.name]?.toString()} />
|
|
159
|
+
<label htmlFor={fieldLayoutInfo.attrs.name} className="form-field-label">{fieldLabel}
|
|
160
|
+
{fieldDescription && <span className="form_field_help">({fieldDescription}) </span>}
|
|
161
|
+
</label>
|
|
162
|
+
<div
|
|
163
|
+
{...getRootProps()}
|
|
164
|
+
className="dropzone p-3 border-1 border-round surface-border"
|
|
165
|
+
>
|
|
166
|
+
<input {...getInputProps()} />
|
|
167
|
+
|
|
168
|
+
{isDragActive ? (
|
|
169
|
+
<DropzonePlaceholder />
|
|
170
|
+
) : imagesPreview ? (
|
|
171
|
+
<div className="relative">
|
|
172
|
+
<img
|
|
173
|
+
src={imageFormatHandler(imagesPreview) as string}
|
|
174
|
+
alt="Banner Image"
|
|
175
|
+
className="bg-white h-10rem w-14rem"
|
|
176
|
+
/>
|
|
177
|
+
<Button
|
|
178
|
+
type="button"
|
|
179
|
+
onClick={(e) => {
|
|
180
|
+
e.stopPropagation();
|
|
181
|
+
setDeleteImageDialogVisible(true);
|
|
182
|
+
const data = {
|
|
183
|
+
e, imagesPreview
|
|
184
|
+
}
|
|
185
|
+
setImageToBeDeletedData(data)
|
|
186
|
+
}}
|
|
187
|
+
icon="pi pi-trash"
|
|
188
|
+
severity="secondary"
|
|
189
|
+
outlined
|
|
190
|
+
aria-label="Bookmark"
|
|
191
|
+
className="absolute right-0 top-0 bg-white z-5 m-2"
|
|
192
|
+
style={{
|
|
193
|
+
height: 25,
|
|
194
|
+
width: 25,
|
|
195
|
+
}}
|
|
196
|
+
/>
|
|
197
|
+
<DropzoneUpload />
|
|
198
|
+
</div>
|
|
199
|
+
) : (
|
|
200
|
+
<DropzonePlaceholder />
|
|
209
201
|
)}
|
|
202
|
+
{ }
|
|
210
203
|
</div>
|
|
204
|
+
{isFormFieldValid(formik, fieldLayoutInfo.attrs.name) && (
|
|
205
|
+
<Message severity="error" text={formik?.errors[fieldLayoutInfo.attrs.name]?.toString()} />
|
|
206
|
+
)}
|
|
211
207
|
<Dialog
|
|
212
208
|
visible={isDeleteImageDialogVisible}
|
|
213
209
|
header="Confirm Delete"
|
|
@@ -57,7 +57,7 @@ export class SolidRichTextField implements ISolidField {
|
|
|
57
57
|
render(formik: FormikObject) {
|
|
58
58
|
const fieldMetadata = this.fieldContext.fieldMetadata;
|
|
59
59
|
const fieldLayoutInfo = this.fieldContext.field;
|
|
60
|
-
const className = fieldLayoutInfo.attrs?.className || 'col-
|
|
60
|
+
const className = fieldLayoutInfo.attrs?.className || 'field col-6 flex flex-column gap-2 mt-4';
|
|
61
61
|
const fieldLabel = fieldLayoutInfo.attrs.label ?? fieldMetadata.displayName;
|
|
62
62
|
const fieldDescription = fieldLayoutInfo.attrs.description ?? fieldMetadata.description;
|
|
63
63
|
const solidFormViewMetaData = this.fieldContext.solidFormViewMetaData;
|
|
@@ -73,12 +73,9 @@ export class SolidRichTextField implements ISolidField {
|
|
|
73
73
|
|
|
74
74
|
return (
|
|
75
75
|
<div className={className}>
|
|
76
|
-
|
|
77
|
-
<label htmlFor={fieldLayoutInfo.attrs.name}>{fieldLabel}
|
|
76
|
+
<label htmlFor={fieldLayoutInfo.attrs.name} className="form-field-label">{fieldLabel}
|
|
78
77
|
{fieldDescription && <span className="form_field_help">({fieldDescription}) </span>}
|
|
79
78
|
</label>
|
|
80
|
-
</div>
|
|
81
|
-
<div className="s-input">
|
|
82
79
|
<Editor
|
|
83
80
|
readOnly={formReadonly || fieldReadonly}
|
|
84
81
|
disabled={formDisabled || fieldDisabled}
|
|
@@ -91,8 +88,7 @@ export class SolidRichTextField implements ISolidField {
|
|
|
91
88
|
{isFormFieldValid(formik, fieldLayoutInfo.attrs.name) && (
|
|
92
89
|
<Message severity="error" text={formik?.errors[fieldLayoutInfo.attrs.name]?.toString()} />
|
|
93
90
|
)}
|
|
94
|
-
</div>
|
|
95
91
|
</div>
|
|
96
92
|
);
|
|
97
93
|
}
|
|
98
|
-
}
|
|
94
|
+
}
|
|
@@ -51,7 +51,7 @@ export class SolidSelectionDynamicField implements ISolidField {
|
|
|
51
51
|
render(formik: FormikObject) {
|
|
52
52
|
const fieldMetadata = this.fieldContext.fieldMetadata;
|
|
53
53
|
const fieldLayoutInfo = this.fieldContext.field;
|
|
54
|
-
const className = fieldLayoutInfo.attrs?.className || 'col-
|
|
54
|
+
const className = fieldLayoutInfo.attrs?.className || 'field col-6 flex flex-column gap-2 mt-4';
|
|
55
55
|
const fieldLabel = fieldLayoutInfo.attrs.label ?? fieldMetadata.displayName;
|
|
56
56
|
const fieldDescription = fieldLayoutInfo.attrs.description ?? fieldMetadata.description;
|
|
57
57
|
const solidFormViewMetaData = this.fieldContext.solidFormViewMetaData;
|
|
@@ -93,13 +93,10 @@ export class SolidSelectionDynamicField implements ISolidField {
|
|
|
93
93
|
|
|
94
94
|
return (
|
|
95
95
|
<div className={className}>
|
|
96
|
-
|
|
97
|
-
<label htmlFor={fieldLayoutInfo.attrs.name}>{fieldLabel}
|
|
96
|
+
<label htmlFor={fieldLayoutInfo.attrs.name} className="form-field-label">{fieldLabel}
|
|
98
97
|
|
|
99
98
|
{fieldDescription && <span className="form_field_help">({fieldDescription}) </span>}
|
|
100
99
|
</label>
|
|
101
|
-
</div>
|
|
102
|
-
<div className="s-input">
|
|
103
100
|
<AutoComplete
|
|
104
101
|
readOnly={formReadonly || fieldReadonly}
|
|
105
102
|
disabled={formDisabled || fieldDisabled}
|
|
@@ -108,7 +105,6 @@ export class SolidSelectionDynamicField implements ISolidField {
|
|
|
108
105
|
field="label"
|
|
109
106
|
value={formik.values[fieldLayoutInfo.attrs.name] || ''}
|
|
110
107
|
dropdown
|
|
111
|
-
className="w-full small-input"
|
|
112
108
|
suggestions={selectionDynamicItems}
|
|
113
109
|
completeMethod={selectionDynamicSearch}
|
|
114
110
|
// onChange={(e) => updateInputs(index, e.value)} />
|
|
@@ -116,7 +112,6 @@ export class SolidSelectionDynamicField implements ISolidField {
|
|
|
116
112
|
{isFormFieldValid(formik, fieldLayoutInfo.attrs.name) && (
|
|
117
113
|
<Message severity="error" text={formik?.errors[fieldLayoutInfo.attrs.name]?.toString()} />
|
|
118
114
|
)}
|
|
119
|
-
</div>
|
|
120
115
|
</div>
|
|
121
116
|
);
|
|
122
117
|
}
|
|
@@ -62,7 +62,7 @@ export class SolidSelectionStaticField implements ISolidField {
|
|
|
62
62
|
render(formik: FormikObject) {
|
|
63
63
|
const fieldMetadata = this.fieldContext.fieldMetadata;
|
|
64
64
|
const fieldLayoutInfo = this.fieldContext.field;
|
|
65
|
-
const className = fieldLayoutInfo.attrs?.className || 'col-
|
|
65
|
+
const className = fieldLayoutInfo.attrs?.className || 'field col-6 flex flex-column gap-2 mt-4';
|
|
66
66
|
const fieldLabel = fieldLayoutInfo.attrs.label ?? fieldMetadata.displayName;
|
|
67
67
|
const fieldDescription = fieldLayoutInfo.attrs.description ?? fieldMetadata.description;
|
|
68
68
|
const solidFormViewMetaData = this.fieldContext.solidFormViewMetaData;
|
|
@@ -88,30 +88,25 @@ export class SolidSelectionStaticField implements ISolidField {
|
|
|
88
88
|
|
|
89
89
|
return (
|
|
90
90
|
<div className={className}>
|
|
91
|
-
<
|
|
92
|
-
<
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
{isFormFieldValid(formik, fieldLayoutInfo.attrs.name) && (
|
|
112
|
-
<Message severity="error" text={formik?.errors[fieldLayoutInfo.attrs.name]?.toString()} />
|
|
113
|
-
)}
|
|
114
|
-
</div>
|
|
91
|
+
<label htmlFor={fieldLayoutInfo.attrs.name} className="form-field-label">{fieldLabel}
|
|
92
|
+
{fieldDescription && <span className="form_field_help">({fieldDescription}) </span>}
|
|
93
|
+
</label>
|
|
94
|
+
<AutoComplete
|
|
95
|
+
readOnly={formReadonly || fieldReadonly}
|
|
96
|
+
disabled={formDisabled || fieldDisabled}
|
|
97
|
+
{...formik.getFieldProps(fieldLayoutInfo.attrs.name)}
|
|
98
|
+
id={fieldLayoutInfo.attrs.name}
|
|
99
|
+
field="label"
|
|
100
|
+
value={formik.values[fieldLayoutInfo.attrs.name] || ''}
|
|
101
|
+
dropdown
|
|
102
|
+
suggestions={selectionStaticItems}
|
|
103
|
+
completeMethod={selectionStaticSearch}
|
|
104
|
+
// onChange={(e) => updateInputs(index, e.value)} />
|
|
105
|
+
onChange={formik.handleChange} />
|
|
106
|
+
|
|
107
|
+
{isFormFieldValid(formik, fieldLayoutInfo.attrs.name) && (
|
|
108
|
+
<Message severity="error" text={formik?.errors[fieldLayoutInfo.attrs.name]?.toString()} />
|
|
109
|
+
)}
|
|
115
110
|
</div>
|
|
116
111
|
);
|
|
117
112
|
}
|
|
@@ -58,7 +58,7 @@ export class SolidShortTextField implements ISolidField {
|
|
|
58
58
|
render(formik: FormikObject) {
|
|
59
59
|
const fieldMetadata = this.fieldContext.fieldMetadata;
|
|
60
60
|
const fieldLayoutInfo = this.fieldContext.field;
|
|
61
|
-
const className = fieldLayoutInfo.attrs?.className || 'col-
|
|
61
|
+
const className = fieldLayoutInfo.attrs?.className || 'field col-6 flex flex-column gap-2 mt-4';
|
|
62
62
|
const fieldLabel = fieldLayoutInfo.attrs.label ?? fieldMetadata.displayName;
|
|
63
63
|
const fieldDescription = fieldLayoutInfo.attrs.description ?? fieldMetadata.description;
|
|
64
64
|
const solidFormViewMetaData = this.fieldContext.solidFormViewMetaData;
|
|
@@ -73,28 +73,23 @@ export class SolidShortTextField implements ISolidField {
|
|
|
73
73
|
|
|
74
74
|
return (
|
|
75
75
|
<div className={className}>
|
|
76
|
-
<
|
|
77
|
-
<
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
/>
|
|
93
|
-
{isFormFieldValid(formik, fieldLayoutInfo.attrs.name) && (
|
|
94
|
-
<Message severity="error" text={formik?.errors[fieldLayoutInfo.attrs.name]?.toString()} />
|
|
95
|
-
)}
|
|
96
|
-
</div>
|
|
76
|
+
<label htmlFor={fieldLayoutInfo.attrs.name} className="form-field-label">{fieldLabel}
|
|
77
|
+
{fieldDescription && <span className="form_field_help">({fieldDescription}) </span>}
|
|
78
|
+
|
|
79
|
+
{/* {fieldDescription && <span className="form_field_help_text">`(${fieldDescription})` </span>} */}
|
|
80
|
+
</label>
|
|
81
|
+
<InputText
|
|
82
|
+
readOnly={formReadonly || fieldReadonly}
|
|
83
|
+
disabled={formDisabled || fieldDisabled}
|
|
84
|
+
id={fieldLayoutInfo.attrs.name}
|
|
85
|
+
aria-describedby={`${fieldLayoutInfo.attrs.name}-help`}
|
|
86
|
+
onChange={formik.handleChange}
|
|
87
|
+
value={formik.values[fieldLayoutInfo.attrs.name] || ''}
|
|
88
|
+
/>
|
|
89
|
+
{isFormFieldValid(formik, fieldLayoutInfo.attrs.name) && (
|
|
90
|
+
<Message severity="error" text={formik?.errors[fieldLayoutInfo.attrs.name]?.toString()} />
|
|
91
|
+
)}
|
|
97
92
|
</div>
|
|
98
93
|
);
|
|
99
94
|
}
|
|
100
|
-
}
|
|
95
|
+
}
|