@solidstarters/solid-core-ui 1.1.11 → 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 +1 -1
- 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/filter/columns/SolidBigintField.d.ts +4 -0
- package/dist/components/core/filter/columns/SolidBigintField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidBigintField.js +8 -0
- package/dist/components/core/filter/columns/SolidBigintField.js.map +1 -0
- package/dist/components/core/filter/columns/SolidBooleanField.d.ts +4 -0
- package/dist/components/core/filter/columns/SolidBooleanField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidBooleanField.js +27 -0
- package/dist/components/core/filter/columns/SolidBooleanField.js.map +1 -0
- package/dist/components/core/filter/columns/SolidComputedField.d.ts +4 -0
- package/dist/components/core/filter/columns/SolidComputedField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidComputedField.js +22 -0
- package/dist/components/core/filter/columns/SolidComputedField.js.map +1 -0
- package/dist/components/core/filter/columns/SolidDateField.d.ts +9 -0
- package/dist/components/core/filter/columns/SolidDateField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidDateField.js +35 -0
- package/dist/components/core/filter/columns/SolidDateField.js.map +1 -0
- package/dist/components/core/filter/columns/SolidDatetimeField.d.ts +4 -0
- package/dist/components/core/filter/columns/SolidDatetimeField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidDatetimeField.js +24 -0
- package/dist/components/core/filter/columns/SolidDatetimeField.js.map +1 -0
- package/dist/components/core/filter/columns/SolidDecimalField.d.ts +4 -0
- package/dist/components/core/filter/columns/SolidDecimalField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidDecimalField.js +8 -0
- package/dist/components/core/filter/columns/SolidDecimalField.js.map +1 -0
- package/dist/components/core/filter/columns/SolidExternalIdField.d.ts +4 -0
- package/dist/components/core/filter/columns/SolidExternalIdField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidExternalIdField.js +25 -0
- package/dist/components/core/filter/columns/SolidExternalIdField.js.map +1 -0
- package/dist/components/core/filter/columns/SolidFloatField.d.ts +4 -0
- package/dist/components/core/filter/columns/SolidFloatField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidFloatField.js +8 -0
- package/dist/components/core/filter/columns/SolidFloatField.js.map +1 -0
- package/dist/components/core/filter/columns/SolidIdField.d.ts +4 -0
- package/dist/components/core/filter/columns/SolidIdField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidIdField.js +25 -0
- package/dist/components/core/filter/columns/SolidIdField.js.map +1 -0
- package/dist/components/core/filter/columns/SolidIntField.d.ts +4 -0
- package/dist/components/core/filter/columns/SolidIntField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidIntField.js +34 -0
- package/dist/components/core/filter/columns/SolidIntField.js.map +1 -0
- package/dist/components/core/filter/columns/SolidLongTextField.d.ts +4 -0
- package/dist/components/core/filter/columns/SolidLongTextField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidLongTextField.js +8 -0
- package/dist/components/core/filter/columns/SolidLongTextField.js.map +1 -0
- package/dist/components/core/filter/columns/SolidMediaMultipleField.d.ts +4 -0
- package/dist/components/core/filter/columns/SolidMediaMultipleField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidMediaMultipleField.js +35 -0
- package/dist/components/core/filter/columns/SolidMediaMultipleField.js.map +1 -0
- package/dist/components/core/filter/columns/SolidMediaSingleField.d.ts +4 -0
- package/dist/components/core/filter/columns/SolidMediaSingleField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidMediaSingleField.js +35 -0
- package/dist/components/core/filter/columns/SolidMediaSingleField.js.map +1 -0
- package/dist/components/core/filter/columns/SolidRelationField.d.ts +4 -0
- package/dist/components/core/filter/columns/SolidRelationField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidRelationField.js +12 -0
- package/dist/components/core/filter/columns/SolidRelationField.js.map +1 -0
- package/dist/components/core/filter/columns/SolidRichTextField.d.ts +4 -0
- package/dist/components/core/filter/columns/SolidRichTextField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidRichTextField.js +8 -0
- package/dist/components/core/filter/columns/SolidRichTextField.js.map +1 -0
- package/dist/components/core/filter/columns/SolidSelectionDynamicField.d.ts +4 -0
- package/dist/components/core/filter/columns/SolidSelectionDynamicField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidSelectionDynamicField.js +25 -0
- package/dist/components/core/filter/columns/SolidSelectionDynamicField.js.map +1 -0
- package/dist/components/core/filter/columns/SolidSelectionStaticField.d.ts +4 -0
- package/dist/components/core/filter/columns/SolidSelectionStaticField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidSelectionStaticField.js +26 -0
- package/dist/components/core/filter/columns/SolidSelectionStaticField.js.map +1 -0
- package/dist/components/core/filter/columns/SolidShortTextField.d.ts +4 -0
- package/dist/components/core/filter/columns/SolidShortTextField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidShortTextField.js +33 -0
- package/dist/components/core/filter/columns/SolidShortTextField.js.map +1 -0
- package/dist/components/core/filter/columns/SolidTimeField.d.ts +4 -0
- package/dist/components/core/filter/columns/SolidTimeField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidTimeField.js +24 -0
- package/dist/components/core/filter/columns/SolidTimeField.js.map +1 -0
- package/dist/components/core/filter/columns/SolidUuidField.d.ts +4 -0
- package/dist/components/core/filter/columns/SolidUuidField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/SolidUuidField.js +25 -0
- package/dist/components/core/filter/columns/SolidUuidField.js.map +1 -0
- package/dist/components/core/filter/columns/relations/SolidRelationManyToOneField.d.ts +4 -0
- package/dist/components/core/filter/columns/relations/SolidRelationManyToOneField.d.ts.map +1 -0
- package/dist/components/core/filter/columns/relations/SolidRelationManyToOneField.js +54 -0
- package/dist/components/core/filter/columns/relations/SolidRelationManyToOneField.js.map +1 -0
- package/dist/components/core/form/SolidFormView.d.ts.map +1 -1
- package/dist/components/core/form/SolidFormView.js +18 -9
- 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.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 +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 +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.js +2 -2
- 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 +57 -54
- 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 +20 -16
- package/dist/components/core/model/CreateModel.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 +3 -1
- 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 +32 -21
- package/src/components/core/form/fields/SolidBooleanField.tsx +8 -6
- package/src/components/core/form/fields/SolidDateField.tsx +5 -5
- package/src/components/core/form/fields/SolidDateTimeField.tsx +23 -22
- package/src/components/core/form/fields/SolidDecimalField.tsx +5 -3
- package/src/components/core/form/fields/SolidIntegerField.tsx +18 -16
- package/src/components/core/form/fields/SolidJsonField.tsx +14 -12
- package/src/components/core/form/fields/SolidLongTextField.tsx +18 -17
- 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 +24 -23
- package/src/components/core/form/fields/SolidShortTextField.tsx +19 -17
- package/src/components/core/form/fields/SolidTimeField.tsx +23 -21
- package/src/components/core/form/fields/relations/SolidRelationManyToManyField.tsx +2 -2
- package/src/components/core/form/fields/relations/SolidRelationManyToOneField.tsx +17 -16
- package/src/components/core/form/fields/relations/SolidRelationOneToManyField.tsx +2 -2
- package/src/components/core/list/SolidListView.tsx +59 -42
- package/src/components/core/model/CreateModel.tsx +92 -81
- 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
- package/dist/components/core/extension/dynamicComponentMap.d.ts +0 -3
- package/dist/components/core/extension/dynamicComponentMap.d.ts.map +0 -1
- package/dist/components/core/extension/dynamicComponentMap.js +0 -6
- package/dist/components/core/extension/dynamicComponentMap.js.map +0 -1
- package/dist/components/core/hooks/GlobalStateContext.d.ts +0 -11
- package/dist/components/core/hooks/GlobalStateContext.d.ts.map +0 -1
- package/dist/components/core/hooks/GlobalStateContext.js +0 -17
- 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
|
-
|
|
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
|
|
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=
|
|
201
|
-
{
|
|
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
|
-
<
|
|
216
|
-
|
|
217
|
-
|
|
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
|
-
|
|
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-
|
|
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
|
{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
|
-
|
|
109
|
-
|
|
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-
|
|
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
|
{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-
|
|
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
|
-
<
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
62
|
+
<div className="flex flex-column gap-2 mt-4">
|
|
63
|
+
<label htmlFor={fieldLayoutInfo.attrs.name} className="form-field-label">{fieldLabel}
|
|
64
|
+
{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-
|
|
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
|
{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-
|
|
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
|
-
<
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
67
|
+
<div className="flex flex-column gap-2 mt-4">
|
|
68
|
+
<label htmlFor={fieldLayoutInfo.attrs.name} className="form-field-label">{fieldLabel}
|
|
69
|
+
{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
|
|
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
|
-
<
|
|
58
|
+
<div className="flex flex-column gap-2 mt-4">
|
|
59
|
+
<label htmlFor={fieldLayoutInfo.attrs.name} className="form-field-label">{fieldLabel}
|
|
59
60
|
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
61
|
+
{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-
|
|
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
|
-
<
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
79
|
+
<div className="flex flex-column gap-2 mt-4">
|
|
80
|
+
<label htmlFor={fieldLayoutInfo.attrs.name} className="form-field-label">{fieldLabel}
|
|
81
|
+
{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
|
)}
|