@openmrs/esm-form-builder-app 2.2.2-pre.645 → 2.2.2-pre.651
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/259.js +1 -1
- package/dist/259.js.map +1 -1
- package/dist/openmrs-esm-form-builder-app.js.buildmanifest.json +3 -3
- package/dist/routes.json +1 -1
- package/package.json +1 -1
- package/src/components/dashboard/dashboard.component.tsx +10 -0
- package/src/components/dashboard/dashboard.scss +7 -4
- package/src/components/dashboard/dashboard.test.tsx +23 -1
- package/src/components/form-editor/form-editor.component.tsx +13 -9
- package/src/components/form-editor/form-editor.scss +6 -1
- package/src/setup-tests.ts +3 -0
|
@@ -250,17 +250,21 @@ const FormEditor: React.FC = () => {
|
|
|
250
250
|
<div className={styles.actionButtons}>
|
|
251
251
|
{isLoadingFormOrSchema ? (
|
|
252
252
|
<InlineLoading description={t('loadingSchema', 'Loading schema') + '...'} />
|
|
253
|
-
) :
|
|
253
|
+
) : (
|
|
254
|
+
<h1 className={styles.formName}>{form?.name}</h1>
|
|
255
|
+
)}
|
|
254
256
|
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
{
|
|
258
|
-
|
|
259
|
-
|
|
257
|
+
<div>
|
|
258
|
+
{isNewSchema && !schema ? (
|
|
259
|
+
<Button kind="ghost" onClick={inputDummySchema}>
|
|
260
|
+
{t('inputDummySchema', 'Input dummy schema')}
|
|
261
|
+
</Button>
|
|
262
|
+
) : null}
|
|
260
263
|
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
+
<Button kind="ghost" onClick={renderSchemaChanges}>
|
|
265
|
+
<span>{t('renderChanges', 'Render changes')}</span>
|
|
266
|
+
</Button>
|
|
267
|
+
</div>
|
|
264
268
|
</div>
|
|
265
269
|
<div>
|
|
266
270
|
<div className={styles.heading}>
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
.actionButtons {
|
|
42
42
|
display: flex;
|
|
43
43
|
align-items: center;
|
|
44
|
-
justify-content:
|
|
44
|
+
justify-content: space-between;
|
|
45
45
|
margin: 1rem 0;
|
|
46
46
|
|
|
47
47
|
button {
|
|
@@ -49,6 +49,10 @@
|
|
|
49
49
|
}
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
+
.formName {
|
|
53
|
+
@include type.type-style('heading-03');
|
|
54
|
+
}
|
|
55
|
+
|
|
52
56
|
.editorContainer {
|
|
53
57
|
padding: 1rem;
|
|
54
58
|
}
|
|
@@ -67,3 +71,4 @@
|
|
|
67
71
|
width: 100%;
|
|
68
72
|
padding: 0.75rem;
|
|
69
73
|
}
|
|
74
|
+
|