@openmrs/esm-reports-app 4.4.1-pre.897 → 4.4.1-pre.906

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.
@@ -38,6 +38,33 @@
38
38
  background-color: white;
39
39
  }
40
40
 
41
+ .header {
42
+ background-color: colors.$white;
43
+ border-bottom: 1px solid colors.$gray-20;
44
+ margin-bottom: layout.$spacing-05;
45
+ }
46
+
47
+ .content {
48
+ padding: 0 layout.$spacing-07 layout.$spacing-07;
49
+ }
50
+
51
+ .page {
52
+ padding: 0 layout.$spacing-07 layout.$spacing-07;
53
+ }
54
+
55
+ .actionsRow {
56
+ text-align: right;
57
+ margin-bottom: layout.$spacing-03;
58
+
59
+ .mainActionButtonsDiv {
60
+ height: auto;
61
+ }
62
+
63
+ .mainActionButton {
64
+ margin-top: 0;
65
+ }
66
+ }
67
+
41
68
  .actionsContainer {
42
69
  display: flex;
43
70
  flex-wrap: wrap;
@@ -68,10 +95,6 @@
68
95
  display: none;
69
96
  }
70
97
 
71
- .breadcrumb {
72
- margin-top: calc(-1 * layout.$spacing-07);
73
- }
74
-
75
98
  .rowCellEven {
76
99
  background-color: colors.$white !important;
77
100
  }
@@ -12,7 +12,7 @@ import {
12
12
  TableHeader,
13
13
  TableRow,
14
14
  } from '@carbon/react';
15
- import { ExtensionSlot, isDesktop, useLayoutType, usePagination } from '@openmrs/esm-framework';
15
+ import { isDesktop, useLayoutType, usePagination } from '@openmrs/esm-framework';
16
16
  import { useScheduledReports } from './reports.resource';
17
17
  import Overlay from './overlay.component';
18
18
  import ScheduledOverviewCellContent from './scheduled-overview-cell-content.component';
@@ -54,8 +54,7 @@ const ScheduledOverviewComponent: React.FC = () => {
54
54
  );
55
55
 
56
56
  return (
57
- <div>
58
- <ExtensionSlot name="breadcrumbs-slot" className={styles.breadcrumb} />
57
+ <div className={styles.page}>
59
58
  <div className={styles.mainPanelDiv}>
60
59
  <div className={styles.reportsLabelDiv}>
61
60
  <h3>{t('scheduledReports', 'Scheduld Reports')}</h3>
package/src/index.ts CHANGED
@@ -1,6 +1,5 @@
1
- import { defineConfigSchema, getAsyncLifecycle, registerBreadcrumbs } from '@openmrs/esm-framework';
2
- import { getFixedT } from 'i18next';
3
- import { basePath, moduleName } from './constants';
1
+ import { defineConfigSchema, getAsyncLifecycle } from '@openmrs/esm-framework';
2
+ import { moduleName } from './constants';
4
3
  import { configSchema } from './config-schema';
5
4
 
6
5
  const options = {
@@ -11,34 +10,6 @@ const options = {
11
10
  export const importTranslation = require.context('../translations', false, /.json$/, 'lazy');
12
11
 
13
12
  export function startupApp() {
14
- const t = getFixedT(undefined, moduleName);
15
-
16
- registerBreadcrumbs([
17
- {
18
- title: 'Home',
19
- path: `${window.getOpenmrsSpaBase().slice(0, -1)}${basePath}`,
20
- },
21
- {
22
- path: `${window.getOpenmrsSpaBase()}system-administration`,
23
- title: () => Promise.resolve(t('systemAdmin', 'System Administration')),
24
- parent: `${window.getOpenmrsSpaBase()}home`,
25
- },
26
- {
27
- title: () => Promise.resolve(t('reports', 'Reports')),
28
- path: `${window.getOpenmrsSpaBase()}reports`,
29
- parent: `${window.getOpenmrsSpaBase()}system-administration`,
30
- },
31
- {
32
- title: () => Promise.resolve(t('scheduledReports', 'Scheduled Reports')),
33
- path: `${window.getOpenmrsSpaBase()}reports/scheduled-overview`,
34
- parent: `${window.getOpenmrsSpaBase()}reports`,
35
- },
36
- {
37
- title: () => Promise.resolve(t('reportsDataOverview', 'Reports Data Overview')),
38
- path: `${window.getOpenmrsSpaBase()}reports/reports-data-overview`,
39
- parent: `${window.getOpenmrsSpaBase()}reports`,
40
- },
41
- ]);
42
13
  defineConfigSchema(moduleName, configSchema);
43
14
  }
44
15
 
package/src/root.scss CHANGED
@@ -1,5 +1,5 @@
1
1
  @use '@carbon/layout';
2
2
 
3
3
  .container {
4
- padding: layout.$spacing-07;
4
+ min-height: 100%;
5
5
  }