@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.
@@ -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
- ) : null}
253
+ ) : (
254
+ <h1 className={styles.formName}>{form?.name}</h1>
255
+ )}
254
256
 
255
- {isNewSchema && !schema ? (
256
- <Button kind="ghost" onClick={inputDummySchema}>
257
- {t('inputDummySchema', 'Input dummy schema')}
258
- </Button>
259
- ) : null}
257
+ <div>
258
+ {isNewSchema && !schema ? (
259
+ <Button kind="ghost" onClick={inputDummySchema}>
260
+ {t('inputDummySchema', 'Input dummy schema')}
261
+ </Button>
262
+ ) : null}
260
263
 
261
- <Button kind="ghost" onClick={renderSchemaChanges}>
262
- <span>{t('renderChanges', 'Render changes')}</span>
263
- </Button>
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: flex-end;
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
+
@@ -1,3 +1,6 @@
1
1
  import '@testing-library/jest-dom';
2
2
 
3
3
  window.URL.createObjectURL = jest.fn();
4
+ window.openmrsBase = '/openmrs';
5
+ window.spaBase = '/spa';
6
+ window.getOpenmrsSpaBase = () => '/openmrs/spa/';