@solidstarters/solid-core-ui 1.1.11 → 1.1.13

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.
Files changed (179) hide show
  1. package/dist/components/auth/SolidForgotPassword.d.ts.map +1 -1
  2. package/dist/components/auth/SolidForgotPassword.js +2 -1
  3. package/dist/components/auth/SolidForgotPassword.js.map +1 -1
  4. package/dist/components/auth/SolidInitialLoginOtp.d.ts.map +1 -1
  5. package/dist/components/auth/SolidInitialLoginOtp.js +2 -1
  6. package/dist/components/auth/SolidInitialLoginOtp.js.map +1 -1
  7. package/dist/components/auth/SolidInitiateRegisterOtp.d.ts.map +1 -1
  8. package/dist/components/auth/SolidInitiateRegisterOtp.js +2 -1
  9. package/dist/components/auth/SolidInitiateRegisterOtp.js.map +1 -1
  10. package/dist/components/auth/SolidLogin.d.ts.map +1 -1
  11. package/dist/components/auth/SolidLogin.js +2 -1
  12. package/dist/components/auth/SolidLogin.js.map +1 -1
  13. package/dist/components/auth/SolidOTPVerify.d.ts.map +1 -1
  14. package/dist/components/auth/SolidOTPVerify.js +2 -1
  15. package/dist/components/auth/SolidOTPVerify.js.map +1 -1
  16. package/dist/components/auth/SolidRegister.d.ts.map +1 -1
  17. package/dist/components/auth/SolidRegister.js +125 -103
  18. package/dist/components/auth/SolidRegister.js.map +1 -1
  19. package/dist/components/auth/SolidResetPassword.d.ts.map +1 -1
  20. package/dist/components/auth/SolidResetPassword.js +2 -1
  21. package/dist/components/auth/SolidResetPassword.js.map +1 -1
  22. package/dist/components/common/DropzonePlaceholder.js +1 -1
  23. package/dist/components/common/DropzonePlaceholder.js.map +1 -1
  24. package/dist/components/common/GeneralSettings.d.ts.map +1 -1
  25. package/dist/components/common/GeneralSettings.js +43 -31
  26. package/dist/components/common/GeneralSettings.js.map +1 -1
  27. package/dist/components/core/common/FilterComponent.d.ts +2 -1
  28. package/dist/components/core/common/FilterComponent.d.ts.map +1 -1
  29. package/dist/components/core/common/FilterComponent.js +52 -16
  30. package/dist/components/core/common/FilterComponent.js.map +1 -1
  31. package/dist/components/core/common/SolidConfigureLayoutElement.d.ts +1 -1
  32. package/dist/components/core/common/SolidConfigureLayoutElement.d.ts.map +1 -1
  33. package/dist/components/core/common/SolidConfigureLayoutElement.js +5 -2
  34. package/dist/components/core/common/SolidConfigureLayoutElement.js.map +1 -1
  35. package/dist/components/core/common/SolidGlobalSearchElement.d.ts.map +1 -1
  36. package/dist/components/core/common/SolidGlobalSearchElement.js +131 -23
  37. package/dist/components/core/common/SolidGlobalSearchElement.js.map +1 -1
  38. package/dist/components/core/filter/SolidManyToOneFilterElement.d.ts.map +1 -1
  39. package/dist/components/core/filter/SolidManyToOneFilterElement.js +1 -1
  40. package/dist/components/core/filter/SolidManyToOneFilterElement.js.map +1 -1
  41. package/dist/components/core/filter/SolidSelectionDynamicFilterElement.js +1 -1
  42. package/dist/components/core/filter/SolidSelectionDynamicFilterElement.js.map +1 -1
  43. package/dist/components/core/filter/SolidSelectionStaticFilterElement.js +1 -1
  44. package/dist/components/core/filter/SolidSelectionStaticFilterElement.js.map +1 -1
  45. package/dist/components/core/filter/SolidVarInputsFilterElement.d.ts.map +1 -1
  46. package/dist/components/core/filter/SolidVarInputsFilterElement.js +11 -10
  47. package/dist/components/core/filter/SolidVarInputsFilterElement.js.map +1 -1
  48. package/dist/components/core/form/SolidFormView.d.ts.map +1 -1
  49. package/dist/components/core/form/SolidFormView.js +18 -9
  50. package/dist/components/core/form/SolidFormView.js.map +1 -1
  51. package/dist/components/core/form/fields/SolidBooleanField.d.ts.map +1 -1
  52. package/dist/components/core/form/fields/SolidBooleanField.js +4 -4
  53. package/dist/components/core/form/fields/SolidBooleanField.js.map +1 -1
  54. package/dist/components/core/form/fields/SolidDateField.js +7 -7
  55. package/dist/components/core/form/fields/SolidDateField.js.map +1 -1
  56. package/dist/components/core/form/fields/SolidDateTimeField.d.ts.map +1 -1
  57. package/dist/components/core/form/fields/SolidDateTimeField.js +7 -7
  58. package/dist/components/core/form/fields/SolidDateTimeField.js.map +1 -1
  59. package/dist/components/core/form/fields/SolidDecimalField.d.ts.map +1 -1
  60. package/dist/components/core/form/fields/SolidDecimalField.js +4 -4
  61. package/dist/components/core/form/fields/SolidDecimalField.js.map +1 -1
  62. package/dist/components/core/form/fields/SolidIntegerField.d.ts.map +1 -1
  63. package/dist/components/core/form/fields/SolidIntegerField.js +4 -4
  64. package/dist/components/core/form/fields/SolidIntegerField.js.map +1 -1
  65. package/dist/components/core/form/fields/SolidJsonField.d.ts.map +1 -1
  66. package/dist/components/core/form/fields/SolidJsonField.js +2 -2
  67. package/dist/components/core/form/fields/SolidJsonField.js.map +1 -1
  68. package/dist/components/core/form/fields/SolidLongTextField.d.ts.map +1 -1
  69. package/dist/components/core/form/fields/SolidLongTextField.js +2 -2
  70. package/dist/components/core/form/fields/SolidLongTextField.js.map +1 -1
  71. package/dist/components/core/form/fields/SolidMediaMultipleField.d.ts.map +1 -1
  72. package/dist/components/core/form/fields/SolidMediaMultipleField.js +155 -46
  73. package/dist/components/core/form/fields/SolidMediaMultipleField.js.map +1 -1
  74. package/dist/components/core/form/fields/SolidMediaSingleField.d.ts.map +1 -1
  75. package/dist/components/core/form/fields/SolidMediaSingleField.js +87 -31
  76. package/dist/components/core/form/fields/SolidMediaSingleField.js.map +1 -1
  77. package/dist/components/core/form/fields/SolidRichTextField.d.ts.map +1 -1
  78. package/dist/components/core/form/fields/SolidRichTextField.js +2 -2
  79. package/dist/components/core/form/fields/SolidRichTextField.js.map +1 -1
  80. package/dist/components/core/form/fields/SolidSelectionDynamicField.d.ts.map +1 -1
  81. package/dist/components/core/form/fields/SolidSelectionDynamicField.js +4 -4
  82. package/dist/components/core/form/fields/SolidSelectionDynamicField.js.map +1 -1
  83. package/dist/components/core/form/fields/SolidSelectionStaticField.d.ts.map +1 -1
  84. package/dist/components/core/form/fields/SolidSelectionStaticField.js +4 -4
  85. package/dist/components/core/form/fields/SolidSelectionStaticField.js.map +1 -1
  86. package/dist/components/core/form/fields/SolidShortTextField.d.ts.map +1 -1
  87. package/dist/components/core/form/fields/SolidShortTextField.js +2 -2
  88. package/dist/components/core/form/fields/SolidShortTextField.js.map +1 -1
  89. package/dist/components/core/form/fields/SolidTimeField.d.ts.map +1 -1
  90. package/dist/components/core/form/fields/SolidTimeField.js +7 -7
  91. package/dist/components/core/form/fields/SolidTimeField.js.map +1 -1
  92. package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.js +2 -2
  93. package/dist/components/core/form/fields/relations/SolidRelationManyToManyField.js.map +1 -1
  94. package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.d.ts.map +1 -1
  95. package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.js +2 -2
  96. package/dist/components/core/form/fields/relations/SolidRelationManyToOneField.js.map +1 -1
  97. package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.js +2 -2
  98. package/dist/components/core/form/fields/relations/SolidRelationOneToManyField.js.map +1 -1
  99. package/dist/components/core/list/SolidListView.d.ts.map +1 -1
  100. package/dist/components/core/list/SolidListView.js +57 -54
  101. package/dist/components/core/list/SolidListView.js.map +1 -1
  102. package/dist/components/core/model/CreateModel.d.ts.map +1 -1
  103. package/dist/components/core/model/CreateModel.js +20 -16
  104. package/dist/components/core/model/CreateModel.js.map +1 -1
  105. package/dist/components/core/module/CreateModule.d.ts.map +1 -1
  106. package/dist/components/core/module/CreateModule.js +23 -23
  107. package/dist/components/core/module/CreateModule.js.map +1 -1
  108. package/dist/components/layout/AppSidebar.d.ts.map +1 -1
  109. package/dist/components/layout/AppSidebar.js +42 -11
  110. package/dist/components/layout/AppSidebar.js.map +1 -1
  111. package/dist/components/layout/navbar-two-menu.d.ts.map +1 -1
  112. package/dist/components/layout/navbar-two-menu.js +6 -2
  113. package/dist/components/layout/navbar-two-menu.js.map +1 -1
  114. package/dist/components/layout/user-profile-menu.d.ts.map +1 -1
  115. package/dist/components/layout/user-profile-menu.js +7 -3
  116. package/dist/components/layout/user-profile-menu.js.map +1 -1
  117. package/dist/helpers/AppTitle.d.ts +4 -0
  118. package/dist/helpers/AppTitle.d.ts.map +1 -0
  119. package/dist/helpers/AppTitle.js +8 -0
  120. package/dist/helpers/AppTitle.js.map +1 -0
  121. package/dist/index.d.ts +1 -0
  122. package/dist/index.d.ts.map +1 -1
  123. package/dist/index.js +3 -2
  124. package/dist/index.js.map +1 -1
  125. package/package.json +1 -1
  126. package/src/components/auth/SolidForgotPassword.tsx +2 -6
  127. package/src/components/auth/SolidInitialLoginOtp.tsx +2 -6
  128. package/src/components/auth/SolidInitiateRegisterOtp.tsx +2 -6
  129. package/src/components/auth/SolidLogin.tsx +2 -5
  130. package/src/components/auth/SolidOTPVerify.tsx +4 -7
  131. package/src/components/auth/SolidRegister.tsx +207 -178
  132. package/src/components/auth/SolidResetPassword.tsx +2 -6
  133. package/src/components/common/DropzonePlaceholder.tsx +1 -1
  134. package/src/components/common/GeneralSettings.tsx +310 -193
  135. package/src/components/core/common/FilterComponent.tsx +148 -202
  136. package/src/components/core/common/SolidConfigureLayoutElement.tsx +6 -4
  137. package/src/components/core/common/SolidGlobalSearchElement.tsx +193 -50
  138. package/src/components/core/filter/SolidManyToOneFilterElement.tsx +3 -1
  139. package/src/components/core/filter/SolidSelectionDynamicFilterElement.tsx +1 -1
  140. package/src/components/core/filter/SolidSelectionStaticFilterElement.tsx +1 -1
  141. package/src/components/core/filter/SolidVarInputsFilterElement.tsx +103 -135
  142. package/src/components/core/form/SolidFormView.tsx +32 -21
  143. package/src/components/core/form/fields/SolidBooleanField.tsx +8 -6
  144. package/src/components/core/form/fields/SolidDateField.tsx +5 -5
  145. package/src/components/core/form/fields/SolidDateTimeField.tsx +23 -22
  146. package/src/components/core/form/fields/SolidDecimalField.tsx +5 -3
  147. package/src/components/core/form/fields/SolidIntegerField.tsx +18 -16
  148. package/src/components/core/form/fields/SolidJsonField.tsx +14 -12
  149. package/src/components/core/form/fields/SolidLongTextField.tsx +18 -17
  150. package/src/components/core/form/fields/SolidMediaMultipleField.tsx +257 -79
  151. package/src/components/core/form/fields/SolidMediaSingleField.tsx +148 -61
  152. package/src/components/core/form/fields/SolidRichTextField.tsx +6 -4
  153. package/src/components/core/form/fields/SolidSelectionDynamicField.tsx +6 -5
  154. package/src/components/core/form/fields/SolidSelectionStaticField.tsx +24 -23
  155. package/src/components/core/form/fields/SolidShortTextField.tsx +19 -17
  156. package/src/components/core/form/fields/SolidTimeField.tsx +23 -21
  157. package/src/components/core/form/fields/relations/SolidRelationManyToManyField.tsx +2 -2
  158. package/src/components/core/form/fields/relations/SolidRelationManyToOneField.tsx +17 -16
  159. package/src/components/core/form/fields/relations/SolidRelationOneToManyField.tsx +2 -2
  160. package/src/components/core/list/SolidListView.tsx +60 -43
  161. package/src/components/core/model/CreateModel.tsx +92 -81
  162. package/src/components/core/module/CreateModule.tsx +181 -183
  163. package/src/components/layout/AppSidebar.tsx +35 -10
  164. package/src/components/layout/navbar-two-menu.tsx +6 -1
  165. package/src/components/layout/user-profile-menu.tsx +20 -8
  166. package/src/helpers/AppTitle.tsx +14 -0
  167. package/src/index.ts +2 -1
  168. package/dist/components/common/FilterComponent.d.ts +0 -3
  169. package/dist/components/common/FilterComponent.d.ts.map +0 -1
  170. package/dist/components/common/FilterComponent.js +0 -214
  171. package/dist/components/common/FilterComponent.js.map +0 -1
  172. package/dist/components/core/extension/dynamicComponentMap.d.ts +0 -3
  173. package/dist/components/core/extension/dynamicComponentMap.d.ts.map +0 -1
  174. package/dist/components/core/extension/dynamicComponentMap.js +0 -6
  175. package/dist/components/core/extension/dynamicComponentMap.js.map +0 -1
  176. package/dist/components/core/hooks/GlobalStateContext.d.ts +0 -11
  177. package/dist/components/core/hooks/GlobalStateContext.d.ts.map +0 -1
  178. package/dist/components/core/hooks/GlobalStateContext.js +0 -17
  179. package/dist/components/core/hooks/GlobalStateContext.js.map +0 -1
@@ -151,6 +151,10 @@ const SolidGroup = ({ children, attrs }: any) => {
151
151
  const className = attrs.className;
152
152
 
153
153
  return (
154
+ <div className={className}>
155
+ {attrs.label && <p>{attrs.label}</p>}
156
+ <div className="grid">{children}</div>
157
+ </div>
154
158
  // <div className={className}>
155
159
  // <div className="s_group">
156
160
  // <fieldset>
@@ -160,9 +164,9 @@ const SolidGroup = ({ children, attrs }: any) => {
160
164
  // </div>
161
165
 
162
166
  // </div>
163
- <div className="formgrid grid">
164
- {children}
165
- </div>
167
+ // <div className="formgrid grid">
168
+ // {children}
169
+ // </div>
166
170
  );
167
171
  };
168
172
 
@@ -181,7 +185,11 @@ const SolidRow = ({ children, attrs }: any) => {
181
185
  // </div>
182
186
 
183
187
  // </div>
184
- <div>{children}</div>
188
+ <div className={`row ${className}`}>
189
+ {attrs.label && <p >{attrs.label}</p>}
190
+ <div className="grid">{children}</div>
191
+ </div>
192
+ // <div>{children}</div>
185
193
  );
186
194
  };
187
195
  const SolidColumn = ({ children, attrs }: any) => {
@@ -197,31 +205,36 @@ const SolidColumn = ({ children, attrs }: any) => {
197
205
  // </div>
198
206
 
199
207
  // </div>
200
- <div className="formgrid grid">
201
- {children}
208
+ <div className={`${className}`}>
209
+ {attrs.label && <p>{attrs.label}</p>}
210
+ <div className="grid">{children}</div>
202
211
  </div>
212
+ // <div className="formgrid grid">
213
+ // {children}
214
+ // </div>
203
215
  );
204
216
  };
205
217
 
206
218
  const SolidSheet = ({ children }: any) => (
207
-
208
- <div>
219
+ <div className="p-fluid p-grid">
209
220
  {children}
210
221
  </div>
211
222
  );
212
223
  const SolidNotebook = ({ children }: any) => {
213
224
 
214
225
  return (
215
- <TabView>
216
- {children}
217
- </TabView>
226
+ <div className="solid-tab-view w-full">
227
+ <TabView>
228
+ {children}
229
+ </TabView>
230
+ </div>
218
231
  )
219
232
  };
220
233
 
221
234
 
222
235
  const SolidPage = ({ attrs, children, key }: any) => (
223
236
  <TabPanel key={key} header={attrs.label} >
224
- <div>{children}</div>
237
+ <div className="p-fluid">{children}</div>
225
238
  </TabPanel>
226
239
  );
227
240
 
@@ -493,7 +506,7 @@ const SolidFormView = (params: SolidFormViewProps) => {
493
506
  });
494
507
 
495
508
  });
496
-
509
+
497
510
  // errorFields.length = 0;
498
511
  };
499
512
  useEffect(() => {
@@ -679,7 +692,7 @@ const SolidFormView = (params: SolidFormViewProps) => {
679
692
  <div className="solid-form-wrapper">
680
693
  <Toast ref={toast} />
681
694
 
682
- <form onSubmit={formik.handleSubmit}>
695
+ <form style={{ width: '77.5%', borderRight: '1px solid var(--primary-light-color' }} onSubmit={formik.handleSubmit}>
683
696
  <div className="solid-form-header">
684
697
  {params.id === "new" ? (
685
698
  <>
@@ -835,13 +848,11 @@ const SolidFormView = (params: SolidFormViewProps) => {
835
848
  <SolidFormStepper />
836
849
  </div>
837
850
  <div className="p-4 solid-form-content">
838
- <div className="grid">
839
- <div className="col-8 mx-auto">
840
- {renderFormDynamically(formViewMetaData)}
841
- </div>
842
- </div>
851
+ {renderFormDynamically(formViewMetaData)}
843
852
  </div>
844
- </form >
853
+ </form>
854
+ <div style={{ width: '22.5%' }}>
855
+ </div>
845
856
  <Dialog
846
857
  visible={isDeleteDialogVisible}
847
858
  header="Confirm Delete"
@@ -856,7 +867,7 @@ const SolidFormView = (params: SolidFormViewProps) => {
856
867
  >
857
868
  <p>Are you sure you want to delete?</p>
858
869
  </Dialog>
859
- </div >
870
+ </div>
860
871
  );
861
872
 
862
873
  }
@@ -25,9 +25,9 @@ export class SolidBooleanField implements ISolidField {
25
25
  initialValue(): any {
26
26
  const fieldName = this.fieldContext.field.attrs.name;
27
27
  const fieldDefaultValue = this.fieldContext?.fieldMetadata?.defaultValue;
28
-
28
+
29
29
  const existingValue = this.fieldContext.data[fieldName];
30
-
30
+
31
31
  return existingValue !== undefined && existingValue !== null ? existingValue : fieldDefaultValue || '';
32
32
  }
33
33
 
@@ -64,7 +64,7 @@ export class SolidBooleanField implements ISolidField {
64
64
 
65
65
  const fieldMetadata = this.fieldContext.fieldMetadata;
66
66
  const fieldLayoutInfo = this.fieldContext.field;
67
- const className = fieldLayoutInfo.attrs?.className || 'field col-6 flex flex-column gap-2 mt-4';
67
+ const className = fieldLayoutInfo.attrs?.className || 'field col-12';
68
68
  const fieldLabel = fieldLayoutInfo.attrs.label ?? fieldMetadata.displayName;
69
69
  const fieldDescription = fieldLayoutInfo.attrs.description ?? fieldMetadata.description;
70
70
  const booleanOptions = ["false", "true"];
@@ -82,6 +82,7 @@ export class SolidBooleanField implements ISolidField {
82
82
 
83
83
  return (
84
84
  <div className={className}>
85
+ <div className="flex flex-column gap-2 mt-4">
85
86
  <label htmlFor={fieldLayoutInfo.attrs.name} className="form-field-label">{fieldLabel}
86
87
  &nbsp; {fieldDescription && <span className="form_field_help">({fieldDescription}) </span>}
87
88
  </label>
@@ -105,9 +106,10 @@ export class SolidBooleanField implements ISolidField {
105
106
  })}
106
107
 
107
108
  />
108
- {isFormFieldValid(formik, fieldLayoutInfo.attrs.name) && (
109
- <Message severity="error" text={formik?.errors[fieldLayoutInfo.attrs.name]?.toString()} />
110
- )}
109
+ </div>
110
+ {isFormFieldValid(formik, fieldLayoutInfo.attrs.name) && (
111
+ <Message severity="error" text={formik?.errors[fieldLayoutInfo.attrs.name]?.toString()} />
112
+ )}
111
113
  </div>
112
114
  );
113
115
  }
@@ -24,9 +24,9 @@ export class SolidDateField implements ISolidField {
24
24
  initialValue(): any {
25
25
  const fieldName = this.fieldContext.field.attrs.name;
26
26
  const fieldDefaultValue = this.fieldContext?.fieldMetadata?.defaultValue;
27
-
27
+
28
28
  const existingValue = this.fieldContext.data[fieldName];
29
-
29
+
30
30
  return existingValue !== undefined && existingValue !== null ? existingValue : fieldDefaultValue || '';
31
31
  }
32
32
 
@@ -46,7 +46,7 @@ export class SolidDateField implements ISolidField {
46
46
  render(formik: FormikObject) {
47
47
  const fieldMetadata = this.fieldContext.fieldMetadata;
48
48
  const fieldLayoutInfo = this.fieldContext.field;
49
- const className = fieldLayoutInfo.attrs?.className || 'field col-6 flex flex-column gap-2 mt-4';
49
+ const className = fieldLayoutInfo.attrs?.className || 'field col-12';
50
50
  const fieldLabel = fieldLayoutInfo.attrs.label ?? fieldMetadata.displayName;
51
51
  const calendarRef = useRef<any>(null); // Reference for the Calendar component
52
52
  const fieldDescription = fieldLayoutInfo.attrs.description ?? fieldMetadata.description;
@@ -61,8 +61,8 @@ export class SolidDateField implements ISolidField {
61
61
 
62
62
  return (
63
63
  <div className={className}>
64
+ <div className="flex flex-column gap-2 mt-4">
64
65
  <label htmlFor={fieldLayoutInfo.attrs.name} className="form-field-label">{fieldLabel}
65
-
66
66
  &nbsp; {fieldDescription && <span className="form_field_help">({fieldDescription}) </span>}
67
67
  </label>
68
68
  <Calendar
@@ -79,7 +79,7 @@ export class SolidDateField implements ISolidField {
79
79
  hideOnDateTimeSelect
80
80
  className=""
81
81
  />
82
-
82
+ </div>
83
83
  {isFormFieldValid(formik, fieldLayoutInfo.attrs.name) && (
84
84
  <Message severity="error" text={formik?.errors[fieldLayoutInfo.attrs.name]?.toString()} />
85
85
  )}
@@ -24,9 +24,9 @@ export class SolidDateTimeField implements ISolidField {
24
24
  initialValue(): any {
25
25
  const fieldName = this.fieldContext.field.attrs.name;
26
26
  const fieldDefaultValue = this.fieldContext?.fieldMetadata?.defaultValue;
27
-
27
+
28
28
  const existingValue = this.fieldContext.data[fieldName];
29
-
29
+
30
30
  return existingValue !== undefined && existingValue !== null ? existingValue : fieldDefaultValue || '';
31
31
  }
32
32
 
@@ -46,7 +46,7 @@ export class SolidDateTimeField implements ISolidField {
46
46
  render(formik: FormikObject) {
47
47
  const fieldMetadata = this.fieldContext.fieldMetadata;
48
48
  const fieldLayoutInfo = this.fieldContext.field;
49
- const className = fieldLayoutInfo.attrs?.className || 'field col-6 flex flex-column gap-2 mt-4';
49
+ const className = fieldLayoutInfo.attrs?.className || 'field col-12';
50
50
  const fieldLabel = fieldLayoutInfo.attrs.label ?? fieldMetadata.displayName;
51
51
  const calendarRef = useRef<any>(null); // Reference for the Calendar component
52
52
  const fieldDescription = fieldLayoutInfo.attrs.description ?? fieldMetadata.description;
@@ -59,26 +59,27 @@ export class SolidDateTimeField implements ISolidField {
59
59
 
60
60
  return (
61
61
  <div className={className}>
62
- <label htmlFor={fieldLayoutInfo.attrs.name} className="form-field-label">{fieldLabel}
63
-
64
- &nbsp; {fieldDescription && <span className="form_field_help">({fieldDescription}) </span>}
65
- </label>
66
- <Calendar
67
- disabled={formDisabled || fieldDisabled}
68
- ref={calendarRef} // Attach ref to Calendar
69
- id={fieldLayoutInfo.attrs.name}
70
- aria-describedby={`${fieldLayoutInfo.attrs.name}-help`}
71
- onChange={formik.handleChange}
72
- //@ts-ignore
73
- value={formik.values[fieldLayoutInfo.attrs.name] ? new Date(formik.values[fieldLayoutInfo.attrs.name]) : Date()}
74
- // dateFormat="mm/dd/yy"
75
- // placeholder="mm/dd/yyyy hh:mm"
76
- mask="99/99/9999 99:99"
77
- hideOnDateTimeSelect
78
- showTime className=""
79
- hourFormat="24"
62
+ <div className="flex flex-column gap-2 mt-4">
63
+ <label htmlFor={fieldLayoutInfo.attrs.name} className="form-field-label">{fieldLabel}
64
+ &nbsp; {fieldDescription && <span className="form_field_help">({fieldDescription}) </span>}
65
+ </label>
66
+ <Calendar
67
+ disabled={formDisabled || fieldDisabled}
68
+ ref={calendarRef} // Attach ref to Calendar
69
+ id={fieldLayoutInfo.attrs.name}
70
+ aria-describedby={`${fieldLayoutInfo.attrs.name}-help`}
71
+ onChange={formik.handleChange}
72
+ //@ts-ignore
73
+ value={formik.values[fieldLayoutInfo.attrs.name] ? new Date(formik.values[fieldLayoutInfo.attrs.name]) : Date()}
74
+ // dateFormat="mm/dd/yy"
75
+ // placeholder="mm/dd/yyyy hh:mm"
76
+ mask="99/99/9999 99:99"
77
+ hideOnDateTimeSelect
78
+ showTime className=""
79
+ hourFormat="24"
80
80
 
81
- />
81
+ />
82
+ </div>
82
83
  {isFormFieldValid(formik, fieldLayoutInfo.attrs.name) && (
83
84
  <Message severity="error" text={formik?.errors[fieldLayoutInfo.attrs.name]?.toString()} />
84
85
  )}
@@ -23,9 +23,9 @@ export class SolidDecimalField implements ISolidField {
23
23
  initialValue(): any {
24
24
  const fieldName = this.fieldContext.field.attrs.name;
25
25
  const fieldDefaultValue = this.fieldContext?.fieldMetadata?.defaultValue;
26
-
26
+
27
27
  const existingValue = this.fieldContext.data[fieldName];
28
-
28
+
29
29
  return existingValue !== undefined && existingValue !== null ? existingValue : fieldDefaultValue || '';
30
30
  }
31
31
 
@@ -48,7 +48,7 @@ export class SolidDecimalField implements ISolidField {
48
48
  render(formik: FormikObject) {
49
49
  const fieldMetadata = this.fieldContext.fieldMetadata;
50
50
  const fieldLayoutInfo = this.fieldContext.field;
51
- const className = fieldLayoutInfo.attrs?.className || 'field col-6 flex flex-column gap-2 mt-4';
51
+ const className = fieldLayoutInfo.attrs?.className || 'field col-12';
52
52
  const fieldLabel = fieldLayoutInfo.attrs.label ?? fieldMetadata.displayName;
53
53
  const fieldDescription = fieldLayoutInfo.attrs.description ?? fieldMetadata.description;
54
54
  const solidFormViewMetaData = this.fieldContext.solidFormViewMetaData;
@@ -63,6 +63,7 @@ export class SolidDecimalField implements ISolidField {
63
63
 
64
64
  return (
65
65
  <div className={className}>
66
+ <div className="flex flex-column gap-2 mt-4">
66
67
  <label htmlFor={fieldLayoutInfo.attrs.name} className="form-field-label">{fieldLabel}
67
68
  &nbsp; {fieldDescription && <span className="form_field_help">({fieldDescription}) </span>}
68
69
  </label>
@@ -80,6 +81,7 @@ export class SolidDecimalField implements ISolidField {
80
81
  {isFormFieldValid(formik, fieldLayoutInfo.attrs.name) && (
81
82
  <Message severity="error" text={formik?.errors[fieldLayoutInfo.attrs.name]?.toString()} />
82
83
  )}
84
+ </div>
83
85
  </div>
84
86
  );
85
87
  }
@@ -23,9 +23,9 @@ export class SolidIntegerField implements ISolidField {
23
23
  initialValue(): any {
24
24
  const fieldName = this.fieldContext.field.attrs.name;
25
25
  const fieldDefaultValue = this.fieldContext?.fieldMetadata?.defaultValue;
26
-
26
+
27
27
  const existingValue = this.fieldContext.data[fieldName];
28
-
28
+
29
29
  return existingValue !== undefined && existingValue !== null ? existingValue : fieldDefaultValue || '';
30
30
  }
31
31
 
@@ -49,7 +49,7 @@ export class SolidIntegerField implements ISolidField {
49
49
  render(formik: FormikObject) {
50
50
  const fieldMetadata = this.fieldContext.fieldMetadata;
51
51
  const fieldLayoutInfo = this.fieldContext.field;
52
- const className = fieldLayoutInfo.attrs?.className || 'field col-6 flex flex-column gap-2 mt-4';
52
+ const className = fieldLayoutInfo.attrs?.className || 'field col-12';
53
53
  const fieldLabel = fieldLayoutInfo.attrs.label ?? fieldMetadata.displayName;
54
54
  const fieldDescription = fieldLayoutInfo.attrs.description ?? fieldMetadata.description;
55
55
  const solidFormViewMetaData = this.fieldContext.solidFormViewMetaData;
@@ -64,19 +64,21 @@ export class SolidIntegerField implements ISolidField {
64
64
 
65
65
  return (
66
66
  <div className={className}>
67
- <label htmlFor={fieldLayoutInfo.attrs.name} className="form-field-label">{fieldLabel}
68
- &nbsp; {fieldDescription && <span className="form_field_help">({fieldDescription}) </span>}
69
- </label>
70
- <InputNumber
71
- readOnly={formReadonly || fieldReadonly}
72
- disabled={formDisabled || fieldDisabled}
73
- id={fieldLayoutInfo.attrs.name}
74
- aria-describedby={`${fieldLayoutInfo.attrs.name}-help`}
75
- onChange={(e: any) => {
76
- formik.setFieldValue(fieldLayoutInfo.attrs.name, e.value)
77
- }}
78
- value={formik.values[fieldLayoutInfo.attrs.name] || ''}
79
- />
67
+ <div className="flex flex-column gap-2 mt-4">
68
+ <label htmlFor={fieldLayoutInfo.attrs.name} className="form-field-label">{fieldLabel}
69
+ &nbsp; {fieldDescription && <span className="form_field_help">({fieldDescription}) </span>}
70
+ </label>
71
+ <InputNumber
72
+ readOnly={formReadonly || fieldReadonly}
73
+ disabled={formDisabled || fieldDisabled}
74
+ id={fieldLayoutInfo.attrs.name}
75
+ aria-describedby={`${fieldLayoutInfo.attrs.name}-help`}
76
+ onChange={(e: any) => {
77
+ formik.setFieldValue(fieldLayoutInfo.attrs.name, e.value)
78
+ }}
79
+ value={formik.values[fieldLayoutInfo.attrs.name] || ''}
80
+ />
81
+ </div>
80
82
  {isFormFieldValid(formik, fieldLayoutInfo.attrs.name) && (
81
83
  <Message severity="error" text={formik?.errors[fieldLayoutInfo.attrs.name]?.toString()} />
82
84
  )}
@@ -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 || 'field col-12 flex flex-column gap-2 mt-4';
46
+ const className = fieldLayoutInfo.attrs?.className || 'field col-12';
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,18 +55,20 @@ export class SolidJsonField implements ISolidField {
55
55
 
56
56
  return (
57
57
  <div className={className}>
58
- <label htmlFor={fieldLayoutInfo.attrs.name} className="form-field-label">{fieldLabel}
58
+ <div className="flex flex-column gap-2 mt-4">
59
+ <label htmlFor={fieldLayoutInfo.attrs.name} className="form-field-label">{fieldLabel}
59
60
 
60
- &nbsp; {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>
61
+ &nbsp; {fieldDescription && <span className="form_field_help">({fieldDescription}) </span>}
62
+ </label>
63
+ <CodeEditor
64
+ formik={formik}
65
+ field={fieldLayoutInfo.attrs.name}
66
+ height={fieldLayoutInfo.attrs?.height}
67
+ fontSize={fieldLayoutInfo.attrs?.fontSize}
68
+ readOnly={formReadonly || fieldReadonly}
69
+ >
70
+ </CodeEditor>
71
+ </div>
70
72
  {isFormFieldValid(formik, fieldLayoutInfo.attrs.name) && (
71
73
  <Message severity="error" text={formik?.errors[fieldLayoutInfo.attrs.name]?.toString()} />
72
74
  )}
@@ -23,9 +23,9 @@ export class SolidLongTextField implements ISolidField {
23
23
  initialValue(): any {
24
24
  const fieldName = this.fieldContext.field.attrs.name;
25
25
  const fieldDefaultValue = this.fieldContext?.fieldMetadata?.defaultValue;
26
-
26
+
27
27
  const existingValue = this.fieldContext.data[fieldName];
28
-
28
+
29
29
  return existingValue !== undefined && existingValue !== null ? existingValue : fieldDefaultValue || '';
30
30
  }
31
31
 
@@ -61,7 +61,7 @@ export class SolidLongTextField implements ISolidField {
61
61
  render(formik: FormikObject) {
62
62
  const fieldMetadata = this.fieldContext.fieldMetadata;
63
63
  const fieldLayoutInfo = this.fieldContext.field;
64
- const className = fieldLayoutInfo.attrs?.className || 'field col-6 flex flex-column gap-2 mt-4';
64
+ const className = fieldLayoutInfo.attrs?.className || 'field col-12';
65
65
  const fieldLabel = fieldLayoutInfo.attrs.label ?? fieldMetadata.displayName;
66
66
  const fieldDescription = fieldLayoutInfo.attrs.description ?? fieldMetadata.description;
67
67
  const solidFormViewMetaData = this.fieldContext.solidFormViewMetaData;
@@ -76,20 +76,21 @@ export class SolidLongTextField implements ISolidField {
76
76
 
77
77
  return (
78
78
  <div className={className}>
79
- <label htmlFor={fieldLayoutInfo.attrs.name} className="form-field-label">{fieldLabel}
80
-
81
- &nbsp; {fieldDescription && <span>({fieldDescription}) </span>}
82
- </label>
83
- <InputTextarea
84
- readOnly={formReadonly || fieldReadonly}
85
- disabled={formDisabled || fieldDisabled}
86
- id={fieldLayoutInfo.attrs.name}
87
- aria-describedby={`${fieldLayoutInfo.attrs.name}-help`}
88
- onChange={formik.handleChange}
89
- value={formik.values[fieldLayoutInfo.attrs.name] || ''}
90
- rows={5}
91
- cols={30}
92
- />
79
+ <div className="flex flex-column gap-2 mt-4">
80
+ <label htmlFor={fieldLayoutInfo.attrs.name} className="form-field-label">{fieldLabel}
81
+ &nbsp; {fieldDescription && <span>({fieldDescription}) </span>}
82
+ </label>
83
+ <InputTextarea
84
+ readOnly={formReadonly || fieldReadonly}
85
+ disabled={formDisabled || fieldDisabled}
86
+ id={fieldLayoutInfo.attrs.name}
87
+ aria-describedby={`${fieldLayoutInfo.attrs.name}-help`}
88
+ onChange={formik.handleChange}
89
+ value={formik.values[fieldLayoutInfo.attrs.name] || ''}
90
+ rows={5}
91
+ cols={30}
92
+ />
93
+ </div>
93
94
  {isFormFieldValid(formik, fieldLayoutInfo.attrs.name) && (
94
95
  <Message severity="error" text={formik?.errors[fieldLayoutInfo.attrs.name]?.toString()} />
95
96
  )}