@moh-sso/e-services 0.0.0-stage → 1.4.0
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/README.md +24 -2
- package/dist/_types/apps/e-services/src/components/eservice-empty-state.component.d.ts +8 -0
- package/dist/_types/apps/e-services/src/components/eservice-page-shell.component.d.ts +10 -0
- package/dist/_types/apps/e-services/src/index.d.ts +2 -0
- package/dist/_types/apps/e-services/src/pages/action-tracker.page.d.ts +1 -0
- package/dist/_types/apps/e-services/src/pages/activity-reporting.page.d.ts +1 -0
- package/dist/_types/apps/e-services/src/pages/budget-tracker.page.d.ts +1 -0
- package/dist/_types/apps/e-services/src/pages/clinician-outputs.page.d.ts +1 -0
- package/dist/_types/apps/e-services/src/pages/leave-absence-management.page.d.ts +1 -0
- package/dist/_types/apps/e-services/src/pages/meeting-manager.page.d.ts +1 -0
- package/dist/_types/apps/e-services/src/pages/workplans.page.d.ts +1 -0
- package/dist/_types/apps/e-services/src/root.component.d.ts +2 -0
- package/dist/_types/apps/e-services/src/routes.d.ts +2 -0
- package/dist/_types/apps/e-services/src/single-spa.d.ts +1 -0
- package/dist/_types/packages/api/src/api/baseApi.d.ts +2 -0
- package/dist/_types/packages/api/src/index.d.ts +1 -0
- package/dist/_types/packages/auth/src/api/auth.api.d.ts +531 -0
- package/dist/_types/packages/auth/src/api/health-context.api.d.ts +374 -0
- package/dist/_types/packages/auth/src/auth/AuthBootstrap.d.ts +1 -0
- package/dist/_types/packages/auth/src/auth/HealthContextProvider.d.ts +20 -0
- package/dist/_types/packages/auth/src/auth/PermissionGuard.d.ts +10 -0
- package/dist/_types/packages/auth/src/auth/auth.selectors.d.ts +896 -0
- package/dist/_types/packages/auth/src/auth/auth.slice.d.ts +14 -0
- package/dist/_types/packages/auth/src/auth/auth.types.d.ts +61 -0
- package/dist/_types/packages/auth/src/auth/login-url.d.ts +2 -0
- package/dist/_types/packages/auth/src/auth/permissions.d.ts +58 -0
- package/dist/_types/packages/auth/src/auth/rbac.d.ts +8 -0
- package/dist/_types/packages/auth/src/auth/system-launch-url.d.ts +9 -0
- package/dist/_types/packages/auth/src/auth/useAuthorization.d.ts +14 -0
- package/dist/_types/packages/auth/src/index.d.ts +14 -0
- package/dist/_types/packages/config/src/appMeta.d.ts +3 -0
- package/dist/_types/packages/config/src/index.d.ts +6 -0
- package/dist/_types/packages/config/src/lib/constants/api.constants.d.ts +178 -0
- package/dist/_types/packages/config/src/lib/constants/document-templates.d.ts +11 -0
- package/dist/_types/packages/config/src/lib/errors/errorMessages.d.ts +2 -0
- package/dist/_types/packages/config/src/lib/errors/errorSeverity.d.ts +3 -0
- package/dist/_types/packages/config/src/lib/errors/errorTypes.d.ts +1 -0
- package/dist/_types/packages/microfrontend/src/basename.d.ts +1 -0
- package/dist/_types/packages/microfrontend/src/index.d.ts +6 -0
- package/dist/_types/packages/microfrontend/src/lifecycle.d.ts +6 -0
- package/dist/_types/packages/microfrontend/src/navigation.d.ts +2 -0
- package/dist/_types/packages/microfrontend/src/props.d.ts +44 -0
- package/dist/_types/packages/microfrontend/src/react-lifecycle.d.ts +11 -0
- package/dist/_types/packages/microfrontend/src/routes.d.ts +13 -0
- package/dist/_types/packages/state/src/clients/clients.selectors.d.ts +534 -0
- package/dist/_types/packages/state/src/clients/clients.slice.d.ts +4 -0
- package/dist/_types/packages/state/src/document/documents.selectors.d.ts +1 -0
- package/dist/_types/packages/state/src/index.d.ts +29 -0
- package/dist/_types/packages/state/src/ui/ui.state.d.ts +1 -0
- package/dist/_types/packages/types/src/index.d.ts +6 -0
- package/dist/_types/packages/types/src/types/announcement-summary.types.d.ts +16 -0
- package/dist/_types/packages/types/src/types/client-role.types.d.ts +6 -0
- package/dist/_types/packages/types/src/types/client.types.d.ts +46 -0
- package/dist/_types/packages/types/src/types/document-processing.types.d.ts +1 -0
- package/dist/_types/packages/types/src/types/notifications.types.d.ts +96 -0
- package/dist/_types/packages/types/src/types/system-navigation.types.d.ts +18 -0
- package/dist/_types/packages/ui/src/accessibility/index.d.ts +1 -0
- package/dist/_types/packages/ui/src/accessibility/useFocusTrap.d.ts +10 -0
- package/dist/_types/packages/ui/src/branding/BuildMeta.d.ts +6 -0
- package/dist/_types/packages/ui/src/branding/PublicFooter.d.ts +6 -0
- package/dist/_types/packages/ui/src/branding/index.d.ts +2 -0
- package/dist/_types/packages/ui/src/data-display/DataTablePagination.d.ts +12 -0
- package/dist/_types/packages/ui/src/data-display/DataTableShell.d.ts +35 -0
- package/dist/_types/packages/ui/src/data-display/RowActionsCell.d.ts +7 -0
- package/dist/_types/packages/ui/src/data-display/TableEmptyState.d.ts +8 -0
- package/dist/_types/packages/ui/src/data-display/TableStatusTag.d.ts +8 -0
- package/dist/_types/packages/ui/src/data-display/index.d.ts +5 -0
- package/dist/_types/packages/ui/src/feedback/comingsoon/ComingSoon.d.ts +7 -0
- package/dist/_types/packages/ui/src/feedback/emptystate/EmptyState.d.ts +15 -0
- package/dist/_types/packages/ui/src/feedback/errorstate/ErrorState.d.ts +14 -0
- package/dist/_types/packages/ui/src/feedback/errorstate/MicrofrontendErrorBoundary.d.ts +16 -0
- package/dist/_types/packages/ui/src/feedback/index.d.ts +5 -0
- package/dist/_types/packages/ui/src/feedback/loadingstate/LoadingState.d.ts +5 -0
- package/dist/_types/packages/ui/src/forms/CaseFormsGrid.d.ts +1 -0
- package/dist/_types/packages/ui/src/forms/index.d.ts +1 -0
- package/dist/_types/packages/ui/src/index.d.ts +16 -0
- package/dist/_types/packages/ui/src/layout/PageShell/PageShell.d.ts +9 -0
- package/dist/_types/packages/ui/src/layout/SectionCard/SectionCard.d.ts +11 -0
- package/dist/_types/packages/ui/src/layout/index.d.ts +2 -0
- package/dist/_types/packages/ui/src/navigation/appmenu/AppGridContent.d.ts +12 -0
- package/dist/_types/packages/ui/src/navigation/appmenu/AppMenu.component.d.ts +6 -0
- package/dist/_types/packages/ui/src/navigation/appmenu/AppMenuItem.component.d.ts +13 -0
- package/dist/_types/packages/ui/src/navigation/appmenu/appMenuGroups.d.ts +11 -0
- package/dist/_types/packages/ui/src/navigation/breadcrumbs/AppBreadcrumbs.d.ts +12 -0
- package/dist/_types/packages/ui/src/navigation/breadcrumbs/BreadcrumbBar.d.ts +10 -0
- package/dist/_types/packages/ui/src/navigation/index.d.ts +2 -0
- package/dist/_types/packages/ui/src/navigation/sidenav/ClientSideNav.d.ts +14 -0
- package/dist/_types/packages/ui/src/notifications/FormInlineAlert.d.ts +7 -0
- package/dist/_types/packages/ui/src/notifications/NotificationsPanel.d.ts +14 -0
- package/dist/_types/packages/ui/src/notifications/index.d.ts +4 -0
- package/dist/_types/packages/ui/src/notifications/toast/ToastProvider.d.ts +20 -0
- package/dist/_types/packages/ui/src/notifications/toast/useToast.d.ts +20 -0
- package/dist/_types/packages/ui/src/overlays/header-panel/ReusableHeaderPanel.d.ts +17 -0
- package/dist/_types/packages/ui/src/overlays/header-panel/header-panel.context.d.ts +23 -0
- package/dist/_types/packages/ui/src/overlays/index.d.ts +4 -0
- package/dist/_types/packages/ui/src/overlays/modal/ReusableModal.d.ts +20 -0
- package/dist/_types/packages/ui/src/overlays/modal/modal.context.d.ts +14 -0
- package/dist/_types/packages/ui/src/shell/ExternalAppHeader.d.ts +22 -0
- package/dist/_types/packages/ui/src/shell/PublicHeader.component.d.ts +8 -0
- package/dist/_types/packages/ui/src/shell/UserHeader.component.d.ts +17 -0
- package/dist/_types/packages/ui/src/shell/index.d.ts +5 -0
- package/dist/_types/packages/ui/src/theme/ThemeProvider.d.ts +8 -0
- package/dist/_types/packages/ui/src/theme/index.d.ts +1 -0
- package/dist/_types/packages/ui/src/utils/severity.d.ts +22 -0
- package/dist/_types/packages/ui/src/utils/status.d.ts +1 -0
- package/dist/assets/e-services-DSyYLmlE.css +1 -0
- package/dist/assets/root.component-CP4U4iq0.js +242 -0
- package/dist/assets/root.component-CP4U4iq0.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +30 -0
- package/dist/index.js.map +1 -0
- package/dist/routes.d.ts +1 -0
- package/dist/routes.js +32 -0
- package/dist/routes.js.map +1 -0
- package/dist/single-spa.d.ts +1 -0
- package/dist/single-spa.js +32 -0
- package/dist/single-spa.js.map +1 -0
- package/package.json +52 -4
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import React from "react";
|
|
2
|
+
import { type ReusableModalProps } from "./ReusableModal";
|
|
3
|
+
type ModalState = Omit<ReusableModalProps, "open"> & {
|
|
4
|
+
open: boolean;
|
|
5
|
+
};
|
|
6
|
+
type ModalContextType = {
|
|
7
|
+
openModal: (config: Omit<ModalState, "open">) => void;
|
|
8
|
+
closeModal: () => void;
|
|
9
|
+
};
|
|
10
|
+
export declare function ModalProvider({ children }: {
|
|
11
|
+
children: React.ReactNode;
|
|
12
|
+
}): React.JSX.Element;
|
|
13
|
+
export declare function useModal(): ModalContextType;
|
|
14
|
+
export {};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export type ExternalAppLink = {
|
|
2
|
+
id: string;
|
|
3
|
+
name: string;
|
|
4
|
+
/** Absolute HTTP(S) launch URL approved by the application's backend. */
|
|
5
|
+
href: string;
|
|
6
|
+
};
|
|
7
|
+
export type ExternalAppHeaderProps = {
|
|
8
|
+
appName: string;
|
|
9
|
+
username: string;
|
|
10
|
+
/** Absolute portal launcher URL, including its deployment base path. */
|
|
11
|
+
portalUrl: string;
|
|
12
|
+
/** Supply only applications this user may launch. No portal API is called here. */
|
|
13
|
+
applications?: ExternalAppLink[];
|
|
14
|
+
isLoading?: boolean;
|
|
15
|
+
isError?: boolean;
|
|
16
|
+
onRetry?: () => void;
|
|
17
|
+
onProfile: () => void;
|
|
18
|
+
/** End the local application session and initiate the application's OIDC logout. */
|
|
19
|
+
onLogout: () => void;
|
|
20
|
+
};
|
|
21
|
+
/** Shared MOH chrome for independently hosted React apps. Requires no portal auth/store/router. */
|
|
22
|
+
export declare function ExternalAppHeader({ appName, username, portalUrl, applications, isLoading, isError, onRetry, onProfile, onLogout, }: ExternalAppHeaderProps): import("react").JSX.Element;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import type React from "react";
|
|
2
|
+
import type { ReactNode } from "react";
|
|
3
|
+
export type UserHeaderProps = {
|
|
4
|
+
appName?: string;
|
|
5
|
+
homeHref?: string;
|
|
6
|
+
username?: string | null;
|
|
7
|
+
appMenu?: ReactNode;
|
|
8
|
+
contextSelector?: ReactNode;
|
|
9
|
+
onNavigateHome?: () => void;
|
|
10
|
+
onLogout?: () => void;
|
|
11
|
+
onProfile?: () => void;
|
|
12
|
+
navigationExpanded?: boolean;
|
|
13
|
+
onToggleNavigation?: () => void;
|
|
14
|
+
onGlobalAction?: () => void;
|
|
15
|
+
};
|
|
16
|
+
declare const UserHeader: React.FC<UserHeaderProps>;
|
|
17
|
+
export default UserHeader;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export { default as PublicHeader } from "./PublicHeader.component";
|
|
2
|
+
export { default as UserHeader } from "./UserHeader.component";
|
|
3
|
+
export type { UserHeaderProps } from "./UserHeader.component";
|
|
4
|
+
export { ExternalAppHeader } from "./ExternalAppHeader";
|
|
5
|
+
export type { ExternalAppHeaderProps, ExternalAppLink } from "./ExternalAppHeader";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { ReactNode } from "react";
|
|
2
|
+
type MohTheme = "white" | "g10" | "g90" | "g100";
|
|
3
|
+
type MohThemeProviderProps = {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
theme?: MohTheme;
|
|
6
|
+
};
|
|
7
|
+
export declare function MohThemeProvider({ children, theme }: MohThemeProviderProps): import("react").JSX.Element;
|
|
8
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { MohThemeProvider } from "./ThemeProvider";
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ---------------------------------------------------
|
|
3
|
+
* Domain Severity (Business Layer)
|
|
4
|
+
* ---------------------------------------------------
|
|
5
|
+
*/
|
|
6
|
+
export type Severity = "info" | "success" | "warning" | "critical" | "danger";
|
|
7
|
+
/**
|
|
8
|
+
* ---------------------------------------------------
|
|
9
|
+
* Carbon Tag Type
|
|
10
|
+
* ---------------------------------------------------
|
|
11
|
+
*/
|
|
12
|
+
export type CarbonTagType = "red" | "magenta" | "purple" | "blue" | "cyan" | "teal" | "green" | "gray" | "cool-gray" | "warm-gray" | "high-contrast" | "outline";
|
|
13
|
+
export declare function isSeverity(value: unknown): value is Severity;
|
|
14
|
+
export declare function normalizeSeverity(value?: string | null): Severity;
|
|
15
|
+
/**
|
|
16
|
+
* ---------------------------------------------------
|
|
17
|
+
* Public Helpers
|
|
18
|
+
* ---------------------------------------------------
|
|
19
|
+
*/
|
|
20
|
+
export declare const getSeverityTagType: (severity?: string | null) => CarbonTagType;
|
|
21
|
+
export declare const getSeverityLabel: (severity?: string | null) => string;
|
|
22
|
+
export declare const getSeverityRank: (severity?: string | null) => number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.eservice-empty-state{display:grid;min-height:17.5rem;place-items:center;padding:2rem;text-align:center}.eservice-empty-state__title{margin:0}.eservice-empty-state__description{max-width:32.5rem;margin-top:.5rem;margin-bottom:1.25rem;color:var(--cds-text-secondary)}.eservice-page-shell{padding:1rem}.eservice-page-shell__header{display:flex;justify-content:space-between;gap:1rem;align-items:flex-start}.eservice-page-shell__title{margin:0}.eservice-page-shell__description{margin-top:.375rem;color:var(--cds-text-secondary)}@media(max-width:672px){.eservice-page-shell__header{flex-direction:column}}
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
import { jsx as e, jsxs as s } from "react/jsx-runtime";
|
|
2
|
+
import { resolveRuntimeBasename as u } from "@moh-sso/microfrontend";
|
|
3
|
+
import { BrowserRouter as v, Routes as g, Route as t, Navigate as c } from "react-router-dom";
|
|
4
|
+
import { PageShell as d, MohThemeProvider as h } from "@moh-sso/ui";
|
|
5
|
+
import { Button as p, Tile as b } from "@carbon/react";
|
|
6
|
+
import { Add as f } from "@carbon/react/icons";
|
|
7
|
+
function n({
|
|
8
|
+
title: i,
|
|
9
|
+
description: r,
|
|
10
|
+
actionLabel: o,
|
|
11
|
+
onActionClick: l
|
|
12
|
+
}) {
|
|
13
|
+
return /* @__PURE__ */ e("div", { className: "eservice-empty-state", children: /* @__PURE__ */ s("div", { children: [
|
|
14
|
+
/* @__PURE__ */ e("h4", { className: "eservice-empty-state__title", children: i }),
|
|
15
|
+
/* @__PURE__ */ e("p", { className: "eservice-empty-state__description", children: r }),
|
|
16
|
+
o && /* @__PURE__ */ e(p, { kind: "secondary", onClick: l, children: o })
|
|
17
|
+
] }) });
|
|
18
|
+
}
|
|
19
|
+
function a({
|
|
20
|
+
title: i,
|
|
21
|
+
description: r,
|
|
22
|
+
actionLabel: o,
|
|
23
|
+
onActionClick: l,
|
|
24
|
+
children: m
|
|
25
|
+
}) {
|
|
26
|
+
return /* @__PURE__ */ e(
|
|
27
|
+
d,
|
|
28
|
+
{
|
|
29
|
+
title: i,
|
|
30
|
+
subtitle: r,
|
|
31
|
+
actions: o ? /* @__PURE__ */ e(p, { renderIcon: f, onClick: l, children: o }) : void 0,
|
|
32
|
+
children: /* @__PURE__ */ e(b, { children: m })
|
|
33
|
+
}
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
function k() {
|
|
37
|
+
return /* @__PURE__ */ e(
|
|
38
|
+
a,
|
|
39
|
+
{
|
|
40
|
+
title: "Action Tracker",
|
|
41
|
+
description: "Track action points, responsible persons, deadlines, progress, and completion status.",
|
|
42
|
+
actionLabel: "New action",
|
|
43
|
+
onActionClick: () => {
|
|
44
|
+
},
|
|
45
|
+
children: /* @__PURE__ */ e(
|
|
46
|
+
n,
|
|
47
|
+
{
|
|
48
|
+
title: "No action points found",
|
|
49
|
+
description: "Action points from meetings, supervision visits, reviews, and program activities will appear here.",
|
|
50
|
+
actionLabel: "Create action point",
|
|
51
|
+
onActionClick: () => {
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
)
|
|
55
|
+
}
|
|
56
|
+
);
|
|
57
|
+
}
|
|
58
|
+
function C() {
|
|
59
|
+
return /* @__PURE__ */ e(
|
|
60
|
+
a,
|
|
61
|
+
{
|
|
62
|
+
title: "Activity Reporting",
|
|
63
|
+
description: "Submit, review, and monitor activity reports, outputs, implementation progress, and supporting evidence.",
|
|
64
|
+
actionLabel: "Submit report",
|
|
65
|
+
onActionClick: () => {
|
|
66
|
+
},
|
|
67
|
+
children: /* @__PURE__ */ e(
|
|
68
|
+
n,
|
|
69
|
+
{
|
|
70
|
+
title: "No activity reports submitted",
|
|
71
|
+
description: "Submitted activity reports, implementation updates, and supporting documentation will appear here.",
|
|
72
|
+
actionLabel: "Submit activity report",
|
|
73
|
+
onActionClick: () => {
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
)
|
|
77
|
+
}
|
|
78
|
+
);
|
|
79
|
+
}
|
|
80
|
+
function A() {
|
|
81
|
+
return /* @__PURE__ */ e(
|
|
82
|
+
a,
|
|
83
|
+
{
|
|
84
|
+
title: "Budget Tracker",
|
|
85
|
+
description: "Track budgets, allocations, expenditure, balances, and financial performance by activity or program.",
|
|
86
|
+
actionLabel: "Add budget item",
|
|
87
|
+
onActionClick: () => {
|
|
88
|
+
},
|
|
89
|
+
children: /* @__PURE__ */ e(
|
|
90
|
+
n,
|
|
91
|
+
{
|
|
92
|
+
title: "No budget records found",
|
|
93
|
+
description: "Budget allocations, expenditure summaries, and financial tracking records will appear here.",
|
|
94
|
+
actionLabel: "Add budget item",
|
|
95
|
+
onActionClick: () => {
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
)
|
|
99
|
+
}
|
|
100
|
+
);
|
|
101
|
+
}
|
|
102
|
+
function y() {
|
|
103
|
+
return /* @__PURE__ */ e(
|
|
104
|
+
a,
|
|
105
|
+
{
|
|
106
|
+
title: "Clinician Outputs",
|
|
107
|
+
description: "Monitor clinician outputs, performance indicators, reports, and service delivery contributions.",
|
|
108
|
+
actionLabel: "Add output",
|
|
109
|
+
onActionClick: () => {
|
|
110
|
+
},
|
|
111
|
+
children: /* @__PURE__ */ e(
|
|
112
|
+
n,
|
|
113
|
+
{
|
|
114
|
+
title: "No clinician outputs submitted",
|
|
115
|
+
description: "Clinician output records and performance summaries will be displayed here once submitted.",
|
|
116
|
+
actionLabel: "Add clinician output",
|
|
117
|
+
onActionClick: () => {
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
)
|
|
121
|
+
}
|
|
122
|
+
);
|
|
123
|
+
}
|
|
124
|
+
function w() {
|
|
125
|
+
return /* @__PURE__ */ e(
|
|
126
|
+
a,
|
|
127
|
+
{
|
|
128
|
+
title: "Leave & Absence Management",
|
|
129
|
+
description: "Manage leave requests, approvals, absence records, staff availability, and leave balances.",
|
|
130
|
+
actionLabel: "Request leave",
|
|
131
|
+
onActionClick: () => {
|
|
132
|
+
},
|
|
133
|
+
children: /* @__PURE__ */ e(
|
|
134
|
+
n,
|
|
135
|
+
{
|
|
136
|
+
title: "No leave requests found",
|
|
137
|
+
description: "Leave requests, absence records, approvals, and staff availability information will appear here.",
|
|
138
|
+
actionLabel: "Create leave request",
|
|
139
|
+
onActionClick: () => {
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
)
|
|
143
|
+
}
|
|
144
|
+
);
|
|
145
|
+
}
|
|
146
|
+
function L() {
|
|
147
|
+
return /* @__PURE__ */ e(
|
|
148
|
+
a,
|
|
149
|
+
{
|
|
150
|
+
title: "Meeting Manager",
|
|
151
|
+
description: "Plan meetings, manage agendas, track attendance, and document meeting resolutions.",
|
|
152
|
+
actionLabel: "Create meeting",
|
|
153
|
+
onActionClick: () => {
|
|
154
|
+
},
|
|
155
|
+
children: /* @__PURE__ */ e(
|
|
156
|
+
n,
|
|
157
|
+
{
|
|
158
|
+
title: "No meetings available",
|
|
159
|
+
description: "Create and manage meetings for departments, programs, partners, and internal coordination.",
|
|
160
|
+
actionLabel: "Create first meeting",
|
|
161
|
+
onActionClick: () => {
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
)
|
|
165
|
+
}
|
|
166
|
+
);
|
|
167
|
+
}
|
|
168
|
+
function N() {
|
|
169
|
+
return /* @__PURE__ */ e(
|
|
170
|
+
a,
|
|
171
|
+
{
|
|
172
|
+
title: "Workplans",
|
|
173
|
+
description: "Create, review, approve, and monitor departmental or program workplans.",
|
|
174
|
+
actionLabel: "Create workplan",
|
|
175
|
+
onActionClick: () => {
|
|
176
|
+
},
|
|
177
|
+
children: /* @__PURE__ */ e(
|
|
178
|
+
n,
|
|
179
|
+
{
|
|
180
|
+
title: "No workplans available",
|
|
181
|
+
description: "Program and departmental workplans will appear here after they are created or submitted.",
|
|
182
|
+
actionLabel: "Create first workplan",
|
|
183
|
+
onActionClick: () => {
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
)
|
|
187
|
+
}
|
|
188
|
+
);
|
|
189
|
+
}
|
|
190
|
+
function P(i) {
|
|
191
|
+
return !i || i === "/apps/eservices" ? "/apps/eservices" : i.replace(/\/+$/, "");
|
|
192
|
+
}
|
|
193
|
+
function q(i) {
|
|
194
|
+
const r = u(P(i.basename));
|
|
195
|
+
return /* @__PURE__ */ e("div", { className: "moh-microfrontend-root", children: /* @__PURE__ */ e(h, { theme: "white", children: /* @__PURE__ */ e(v, { basename: r, children: /* @__PURE__ */ s(g, { children: [
|
|
196
|
+
/* @__PURE__ */ e(t, { index: !0, element: /* @__PURE__ */ e(c, { to: "/ihris/meeting-manager", replace: !0 }) }),
|
|
197
|
+
/* @__PURE__ */ s(t, { path: "ihris", children: [
|
|
198
|
+
/* @__PURE__ */ e(t, { index: !0, element: /* @__PURE__ */ e(c, { to: "/ihris/meeting-manager", replace: !0 }) }),
|
|
199
|
+
/* @__PURE__ */ e(t, { path: "meeting-manager", element: /* @__PURE__ */ e(L, {}) }),
|
|
200
|
+
/* @__PURE__ */ e(t, { path: "action-tracker", element: /* @__PURE__ */ e(k, {}) }),
|
|
201
|
+
/* @__PURE__ */ e(t, { path: "clinician-outputs", element: /* @__PURE__ */ e(y, {}) }),
|
|
202
|
+
/* @__PURE__ */ e(t, { path: "leave-absence-management", element: /* @__PURE__ */ e(w, {}) }),
|
|
203
|
+
/* @__PURE__ */ e(t, { path: "workplans", element: /* @__PURE__ */ e(N, {}) }),
|
|
204
|
+
/* @__PURE__ */ e(t, { path: "budget-tracker", element: /* @__PURE__ */ e(A, {}) }),
|
|
205
|
+
/* @__PURE__ */ e(t, { path: "activity-reporting", element: /* @__PURE__ */ e(C, {}) }),
|
|
206
|
+
/* @__PURE__ */ e(t, { path: "*", element: /* @__PURE__ */ e(c, { to: "/ihris/meeting-manager", replace: !0 }) })
|
|
207
|
+
] }),
|
|
208
|
+
/* @__PURE__ */ e(
|
|
209
|
+
t,
|
|
210
|
+
{
|
|
211
|
+
path: "partner-management",
|
|
212
|
+
element: /* @__PURE__ */ e(
|
|
213
|
+
d,
|
|
214
|
+
{
|
|
215
|
+
title: "Partner Management",
|
|
216
|
+
subtitle: "Manage partner activities and collaboration.",
|
|
217
|
+
children: /* @__PURE__ */ e("p", { children: "This service is coming soon." })
|
|
218
|
+
}
|
|
219
|
+
)
|
|
220
|
+
}
|
|
221
|
+
),
|
|
222
|
+
/* @__PURE__ */ e(
|
|
223
|
+
t,
|
|
224
|
+
{
|
|
225
|
+
path: "observatory-uploads",
|
|
226
|
+
element: /* @__PURE__ */ e(
|
|
227
|
+
d,
|
|
228
|
+
{
|
|
229
|
+
title: "Observatory Uploads",
|
|
230
|
+
subtitle: "Submit and manage observatory data uploads.",
|
|
231
|
+
children: /* @__PURE__ */ e("p", { children: "This service is coming soon." })
|
|
232
|
+
}
|
|
233
|
+
)
|
|
234
|
+
}
|
|
235
|
+
),
|
|
236
|
+
/* @__PURE__ */ e(t, { path: "*", element: /* @__PURE__ */ e(c, { to: "/ihris/meeting-manager", replace: !0 }) })
|
|
237
|
+
] }) }) }) });
|
|
238
|
+
}
|
|
239
|
+
export {
|
|
240
|
+
q as E
|
|
241
|
+
};
|
|
242
|
+
//# sourceMappingURL=root.component-CP4U4iq0.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"root.component-CP4U4iq0.js","sources":["../../src/components/eservice-empty-state.component.tsx","../../src/components/eservice-page-shell.component.tsx","../../src/pages/action-tracker.page.tsx","../../src/pages/activity-reporting.page.tsx","../../src/pages/budget-tracker.page.tsx","../../src/pages/clinician-outputs.page.tsx","../../src/pages/leave-absence-management.page.tsx","../../src/pages/meeting-manager.page.tsx","../../src/pages/workplans.page.tsx","../../src/root.component.tsx"],"sourcesContent":["import { Button } from \"@carbon/react\";\n\nimport \"./eservice-components.scss\";\n\ntype EserviceEmptyStateProps = {\n title: string;\n description: string;\n actionLabel?: string;\n onActionClick?: () => void;\n};\n\nexport function EserviceEmptyState({\n title,\n description,\n actionLabel,\n onActionClick,\n}: EserviceEmptyStateProps) {\n return (\n <div className=\"eservice-empty-state\">\n <div>\n <h4 className=\"eservice-empty-state__title\">{title}</h4>\n <p className=\"eservice-empty-state__description\">\n {description}\n </p>\n\n {actionLabel && (\n <Button kind=\"secondary\" onClick={onActionClick}>\n {actionLabel}\n </Button>\n )}\n </div>\n </div>\n );\n}\n","import { PageShell } from \"@moh-sso/ui\";\nimport { Button, Tile } from \"@carbon/react\";\nimport { Add } from \"@carbon/react/icons\";\nimport type { ReactNode } from \"react\";\n\nimport \"./eservice-components.scss\";\n\ntype EservicePageShellProps = {\n title: string;\n description: string;\n actionLabel?: string;\n onActionClick?: () => void;\n children?: ReactNode;\n};\n\nexport function EservicePageShell({\n title,\n description,\n actionLabel,\n onActionClick,\n children,\n}: EservicePageShellProps) {\n return (\n <PageShell\n title={title}\n subtitle={description}\n actions={\n actionLabel ? (\n <Button renderIcon={Add} onClick={onActionClick}>\n {actionLabel}\n </Button>\n ) : undefined\n }\n >\n <Tile>{children}</Tile>\n </PageShell>\n );\n}\n","import { EserviceEmptyState } from \"../components/eservice-empty-state.component\";\nimport { EservicePageShell } from \"../components/eservice-page-shell.component\";\n\nexport default function ActionTrackerPage() {\n return (\n <EservicePageShell\n title=\"Action Tracker\"\n description=\"Track action points, responsible persons, deadlines, progress, and completion status.\"\n actionLabel=\"New action\"\n onActionClick={() => undefined}\n >\n <EserviceEmptyState\n title=\"No action points found\"\n description=\"Action points from meetings, supervision visits, reviews, and program activities will appear here.\"\n actionLabel=\"Create action point\"\n onActionClick={() => undefined}\n />\n </EservicePageShell>\n );\n}\n","import { EserviceEmptyState } from \"../components/eservice-empty-state.component\";\nimport { EservicePageShell } from \"../components/eservice-page-shell.component\";\n\nexport default function ActivityReportingPage() {\n return (\n <EservicePageShell\n title=\"Activity Reporting\"\n description=\"Submit, review, and monitor activity reports, outputs, implementation progress, and supporting evidence.\"\n actionLabel=\"Submit report\"\n onActionClick={() => undefined}\n >\n <EserviceEmptyState\n title=\"No activity reports submitted\"\n description=\"Submitted activity reports, implementation updates, and supporting documentation will appear here.\"\n actionLabel=\"Submit activity report\"\n onActionClick={() => undefined}\n />\n </EservicePageShell>\n );\n}\n","import { EserviceEmptyState } from \"../components/eservice-empty-state.component\";\nimport { EservicePageShell } from \"../components/eservice-page-shell.component\";\n\nexport default function BudgetTrackerPage() {\n return (\n <EservicePageShell\n title=\"Budget Tracker\"\n description=\"Track budgets, allocations, expenditure, balances, and financial performance by activity or program.\"\n actionLabel=\"Add budget item\"\n onActionClick={() => undefined}\n >\n <EserviceEmptyState\n title=\"No budget records found\"\n description=\"Budget allocations, expenditure summaries, and financial tracking records will appear here.\"\n actionLabel=\"Add budget item\"\n onActionClick={() => undefined}\n />\n </EservicePageShell>\n );\n}\n","import { EserviceEmptyState } from \"../components/eservice-empty-state.component\";\nimport { EservicePageShell } from \"../components/eservice-page-shell.component\";\n\nexport default function ClinicianOutputsPage() {\n return (\n <EservicePageShell\n title=\"Clinician Outputs\"\n description=\"Monitor clinician outputs, performance indicators, reports, and service delivery contributions.\"\n actionLabel=\"Add output\"\n onActionClick={() => undefined}\n >\n <EserviceEmptyState\n title=\"No clinician outputs submitted\"\n description=\"Clinician output records and performance summaries will be displayed here once submitted.\"\n actionLabel=\"Add clinician output\"\n onActionClick={() => undefined}\n />\n </EservicePageShell>\n );\n}\n","import { EserviceEmptyState } from \"../components/eservice-empty-state.component\";\nimport { EservicePageShell } from \"../components/eservice-page-shell.component\";\n\nexport default function LeaveAbsenceManagementPage() {\n return (\n <EservicePageShell\n title=\"Leave & Absence Management\"\n description=\"Manage leave requests, approvals, absence records, staff availability, and leave balances.\"\n actionLabel=\"Request leave\"\n onActionClick={() => undefined}\n >\n <EserviceEmptyState\n title=\"No leave requests found\"\n description=\"Leave requests, absence records, approvals, and staff availability information will appear here.\"\n actionLabel=\"Create leave request\"\n onActionClick={() => undefined}\n />\n </EservicePageShell>\n );\n}\n","import { EserviceEmptyState } from \"../components/eservice-empty-state.component\";\nimport { EservicePageShell } from \"../components/eservice-page-shell.component\";\n\nexport default function MeetingManagerPage() {\n return (\n <EservicePageShell\n title=\"Meeting Manager\"\n description=\"Plan meetings, manage agendas, track attendance, and document meeting resolutions.\"\n actionLabel=\"Create meeting\"\n onActionClick={() => undefined}\n >\n <EserviceEmptyState\n title=\"No meetings available\"\n description=\"Create and manage meetings for departments, programs, partners, and internal coordination.\"\n actionLabel=\"Create first meeting\"\n onActionClick={() => undefined}\n />\n </EservicePageShell>\n );\n}\n","import { EserviceEmptyState } from \"../components/eservice-empty-state.component\";\nimport { EservicePageShell } from \"../components/eservice-page-shell.component\";\n\nexport default function WorkplansPage() {\n return (\n <EservicePageShell\n title=\"Workplans\"\n description=\"Create, review, approve, and monitor departmental or program workplans.\"\n actionLabel=\"Create workplan\"\n onActionClick={() => undefined}\n >\n <EserviceEmptyState\n title=\"No workplans available\"\n description=\"Program and departmental workplans will appear here after they are created or submitted.\"\n actionLabel=\"Create first workplan\"\n onActionClick={() => undefined}\n />\n </EservicePageShell>\n );\n}\n","import { resolveRuntimeBasename, type MicrofrontendRuntimeProps } from \"@moh-sso/microfrontend\";\nimport { BrowserRouter, Navigate, Route, Routes } from \"react-router-dom\";\n\nimport { MohThemeProvider, PageShell } from \"@moh-sso/ui\";\n\nimport ActionTrackerPage from \"./pages/action-tracker.page\";\nimport ActivityReportingPage from \"./pages/activity-reporting.page\";\nimport BudgetTrackerPage from \"./pages/budget-tracker.page\";\nimport ClinicianOutputsPage from \"./pages/clinician-outputs.page\";\nimport LeaveAbsenceManagementPage from \"./pages/leave-absence-management.page\";\nimport MeetingManagerPage from \"./pages/meeting-manager.page\";\nimport WorkplansPage from \"./pages/workplans.page\";\n\nfunction normalizeBasename(basename?: string) {\n if (!basename || basename === \"/apps/eservices\") {\n return \"/apps/eservices\";\n }\n\n return basename.replace(/\\/+$/, \"\");\n}\n\nexport function EServicesRoot(props: MicrofrontendRuntimeProps) {\n const basename = resolveRuntimeBasename(normalizeBasename(props.basename));\n\n return (\n <div className=\"moh-microfrontend-root\">\n <MohThemeProvider theme=\"white\">\n <BrowserRouter basename={basename}>\n <Routes>\n <Route index element={<Navigate to=\"/ihris/meeting-manager\" replace />} />\n\n <Route path=\"ihris\">\n <Route index element={<Navigate to=\"/ihris/meeting-manager\" replace />} />\n\n <Route path=\"meeting-manager\" element={<MeetingManagerPage />} />\n\n <Route path=\"action-tracker\" element={<ActionTrackerPage />} />\n\n <Route path=\"clinician-outputs\" element={<ClinicianOutputsPage />} />\n\n <Route path=\"leave-absence-management\" element={<LeaveAbsenceManagementPage />} />\n\n <Route path=\"workplans\" element={<WorkplansPage />} />\n\n <Route path=\"budget-tracker\" element={<BudgetTrackerPage />} />\n\n <Route path=\"activity-reporting\" element={<ActivityReportingPage />} />\n\n <Route path=\"*\" element={<Navigate to=\"/ihris/meeting-manager\" replace />} />\n </Route>\n\n <Route\n path=\"partner-management\"\n element={\n <PageShell\n title=\"Partner Management\"\n subtitle=\"Manage partner activities and collaboration.\"\n >\n <p>This service is coming soon.</p>\n </PageShell>\n }\n />\n\n <Route\n path=\"observatory-uploads\"\n element={\n <PageShell\n title=\"Observatory Uploads\"\n subtitle=\"Submit and manage observatory data uploads.\"\n >\n <p>This service is coming soon.</p>\n </PageShell>\n }\n />\n\n <Route path=\"*\" element={<Navigate to=\"/ihris/meeting-manager\" replace />} />\n </Routes>\n </BrowserRouter>\n </MohThemeProvider>\n </div>\n );\n}\n"],"names":["EserviceEmptyState","title","description","actionLabel","onActionClick","jsx","Button","EservicePageShell","children","PageShell","Add","Tile","ActionTrackerPage","ActivityReportingPage","BudgetTrackerPage","ClinicianOutputsPage","LeaveAbsenceManagementPage","MeetingManagerPage","WorkplansPage","normalizeBasename","basename","EServicesRoot","props","resolveRuntimeBasename","MohThemeProvider","BrowserRouter","jsxs","Routes","Route","Navigate"],"mappings":";;;;;;AAWO,SAASA,EAAmB;AAAA,EACjC,OAAAC;AAAA,EACA,aAAAC;AAAA,EACA,aAAAC;AAAA,EACA,eAAAC;AACF,GAA4B;AAC1B,SACE,gBAAAC,EAAC,OAAA,EAAI,WAAU,wBACb,4BAAC,OAAA,EACC,UAAA;AAAA,IAAA,gBAAAA,EAAC,MAAA,EAAG,WAAU,+BAA+B,UAAAJ,GAAM;AAAA,IACnD,gBAAAI,EAAC,KAAA,EAAE,WAAU,qCACV,UAAAH,GACH;AAAA,IAECC,KACC,gBAAAE,EAACC,GAAA,EAAO,MAAK,aAAY,SAASF,GAC/B,UAAAD,EAAA,CACH;AAAA,EAAA,EAAA,CAEJ,EAAA,CACF;AAEJ;AClBO,SAASI,EAAkB;AAAA,EAChC,OAAAN;AAAA,EACA,aAAAC;AAAA,EACA,aAAAC;AAAA,EACA,eAAAC;AAAA,EACA,UAAAI;AACF,GAA2B;AACzB,SACE,gBAAAH;AAAA,IAACI;AAAA,IAAA;AAAA,MACC,OAAAR;AAAA,MACA,UAAUC;AAAA,MACV,SACEC,IACE,gBAAAE,EAACC,GAAA,EAAO,YAAYI,GAAK,SAASN,GAC/B,UAAAD,EAAA,CACH,IACE;AAAA,MAGN,UAAA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gBAAAvB,EAACwB,GAAA,EAAS,IAAG,0BAAyB,SAAO,GAAA,CAAC,EAAA,CAAI;AAAA,IAAA,GAC7E;AAAA,IAEA,gBAAAxB;AAAA,MAACuB;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,SACE,gBAAAvB;AAAA,UAACI;AAAA,UAAA;AAAA,YACC,OAAM;AAAA,YACN,UAAS;AAAA,YAET,UAAA,gBAAAJ,EAAC,OAAE,UAAA,+BAAA,CAA4B;AAAA,UAAA;AAAA,QAAA;AAAA,MACjC;AAAA,IAAA;AAAA,IAIJ,gBAAAA;AAAA,MAACuB;AAAA,MAAA;AAAA,QACC,MAAK;AAAA,QACL,SACE,gBAAAvB;AAAA,UAACI;AAAA,UAAA;AAAA,YACC,OAAM;AAAA,YACN,UAAS;AAAA,YAET,UAAA,gBAAAJ,EAAC,OAAE,UAAA,+BAAA,CAA4B;AAAA,UAAA;AAAA,QAAA;AAAA,MACjC;AAAA,IAAA;AAAA,IAIJ,gBAAAA,EAACuB,GAAA,EAAM,MAAK,KAAI,SAAS,gBAAAvB,EAACwB,GAAA,EAAS,IAAG,0BAAyB,SAAO,GAAA,CAAC,EAAA,CAAI;AAAA,EAAA,GAC7E,EAAA,CACF,GACF,GACF;AAEJ;"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./_types/apps/e-services/src/index.js";
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
|
|
2
|
+
const __mohCssFiles = [new URL("assets/e-services-DSyYLmlE.css", import.meta.url).href];
|
|
3
|
+
const __mohInjectCss = () => {
|
|
4
|
+
if (typeof document === "undefined") {
|
|
5
|
+
return;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
for (const file of __mohCssFiles) {
|
|
9
|
+
const href = file;
|
|
10
|
+
if (document.querySelector('link[data-moh-css="' + href + '"]')) {
|
|
11
|
+
continue;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const link = document.createElement("link");
|
|
15
|
+
link.rel = "stylesheet";
|
|
16
|
+
link.href = href;
|
|
17
|
+
link.setAttribute("data-moh-css", href);
|
|
18
|
+
document.head.appendChild(link);
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
queueMicrotask(__mohInjectCss);
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
import { E as r } from "./assets/root.component-CP4U4iq0.js";
|
|
25
|
+
import { eServicesRoute as s } from "./routes.js";
|
|
26
|
+
export {
|
|
27
|
+
r as EServicesRoot,
|
|
28
|
+
s as eServicesRoute
|
|
29
|
+
};
|
|
30
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
package/dist/routes.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./_types/apps/e-services/src/routes.js";
|
package/dist/routes.js
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
const __mohCssFiles = [new URL("assets/e-services-DSyYLmlE.css", import.meta.url).href];
|
|
3
|
+
const __mohInjectCss = () => {
|
|
4
|
+
if (typeof document === "undefined") {
|
|
5
|
+
return;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
for (const file of __mohCssFiles) {
|
|
9
|
+
const href = file;
|
|
10
|
+
if (document.querySelector('link[data-moh-css="' + href + '"]')) {
|
|
11
|
+
continue;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const link = document.createElement("link");
|
|
15
|
+
link.rel = "stylesheet";
|
|
16
|
+
link.href = href;
|
|
17
|
+
link.setAttribute("data-moh-css", href);
|
|
18
|
+
document.head.appendChild(link);
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
queueMicrotask(__mohInjectCss);
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
const e = {
|
|
25
|
+
appName: "@moh-sso/e-services",
|
|
26
|
+
path: "/apps/eservices",
|
|
27
|
+
requiredPermissions: ["systems:launch"]
|
|
28
|
+
};
|
|
29
|
+
export {
|
|
30
|
+
e as eServicesRoute
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=routes.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"routes.js","sources":["../src/routes.tsx"],"sourcesContent":["import type { MicrofrontendRoute } from \"@moh-sso/microfrontend\";\n\nexport const eServicesRoute: MicrofrontendRoute = {\n appName: \"@moh-sso/e-services\",\n path: \"/apps/eservices\",\n requiredPermissions: [\"systems:launch\"],\n};\n"],"names":["eServicesRoute"],"mappings":"AAEO,MAAMA,IAAqC;AAAA,EAChD,SAAS;AAAA,EACT,MAAM;AAAA,EACN,qBAAqB,CAAC,gBAAgB;AACxC;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./_types/apps/e-services/src/single-spa.js";
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
|
|
2
|
+
const __mohCssFiles = [new URL("assets/e-services-DSyYLmlE.css", import.meta.url).href];
|
|
3
|
+
const __mohInjectCss = () => {
|
|
4
|
+
if (typeof document === "undefined") {
|
|
5
|
+
return;
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
for (const file of __mohCssFiles) {
|
|
9
|
+
const href = file;
|
|
10
|
+
if (document.querySelector('link[data-moh-css="' + href + '"]')) {
|
|
11
|
+
continue;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const link = document.createElement("link");
|
|
15
|
+
link.rel = "stylesheet";
|
|
16
|
+
link.href = href;
|
|
17
|
+
link.setAttribute("data-moh-css", href);
|
|
18
|
+
document.head.appendChild(link);
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
queueMicrotask(__mohInjectCss);
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
import { createReactMicrofrontendLifecycle as o } from "@moh-sso/microfrontend";
|
|
25
|
+
import { E as t } from "./assets/root.component-CP4U4iq0.js";
|
|
26
|
+
const { bootstrap: c, mount: m, unmount: n } = o(t);
|
|
27
|
+
export {
|
|
28
|
+
c as bootstrap,
|
|
29
|
+
m as mount,
|
|
30
|
+
n as unmount
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=single-spa.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"single-spa.js","sources":["../src/single-spa.tsx"],"sourcesContent":["import { createReactMicrofrontendLifecycle } from \"@moh-sso/microfrontend\";\n\nimport { EServicesRoot } from \"./root.component\";\n\nexport const { bootstrap, mount, unmount } = createReactMicrofrontendLifecycle(EServicesRoot);\n"],"names":["bootstrap","mount","unmount","createReactMicrofrontendLifecycle","EServicesRoot"],"mappings":";;AAIO,MAAM,EAAE,WAAAA,GAAW,OAAAC,GAAO,SAAAC,EAAA,IAAYC,EAAkCC,CAAa;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,54 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moh-sso/e-services",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"type": "module",
|
|
4
|
+
"main": "./dist/index.js",
|
|
5
|
+
"types": "./dist/index.d.ts",
|
|
6
|
+
"exports": {
|
|
7
|
+
".": {
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"import": "./dist/index.js"
|
|
10
|
+
},
|
|
11
|
+
"./single-spa": {
|
|
12
|
+
"types": "./dist/single-spa.d.ts",
|
|
13
|
+
"import": "./dist/single-spa.js"
|
|
14
|
+
},
|
|
15
|
+
"./routes": {
|
|
16
|
+
"types": "./dist/routes.d.ts",
|
|
17
|
+
"import": "./dist/routes.js"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"version": "1.4.0",
|
|
21
|
+
"license": "UNLICENSED",
|
|
22
|
+
"module": "./dist/index.js",
|
|
23
|
+
"files": [
|
|
24
|
+
"dist",
|
|
25
|
+
"README.md",
|
|
26
|
+
"package.json"
|
|
27
|
+
],
|
|
28
|
+
"scripts": {
|
|
29
|
+
"build": "vite build --config vite.config.ts && node ../../scripts/write-package-declarations.mjs app e-services",
|
|
30
|
+
"dev": "vite --config vite.config.ts --host 0.0.0.0",
|
|
31
|
+
"preview": "vite preview --config vite.config.ts"
|
|
32
|
+
},
|
|
33
|
+
"publishConfig": {
|
|
34
|
+
"access": "public"
|
|
35
|
+
},
|
|
36
|
+
"dependencies": {
|
|
37
|
+
"@moh-sso/microfrontend": "^1.4.0",
|
|
38
|
+
"@moh-sso/ui": "^1.4.0"
|
|
39
|
+
},
|
|
40
|
+
"private": false,
|
|
41
|
+
"peerDependencies": {
|
|
42
|
+
"@carbon/react": "^1.95.0",
|
|
43
|
+
"react": "^19.2.0",
|
|
44
|
+
"react-dom": "^19.2.0",
|
|
45
|
+
"react-redux": "^9.2.0",
|
|
46
|
+
"react-router-dom": "^7.9.6",
|
|
47
|
+
"single-spa": "^6.0.3"
|
|
48
|
+
},
|
|
49
|
+
"repository": {
|
|
50
|
+
"type": "git",
|
|
51
|
+
"url": "git+https://github.com/mohuganda/moh-sso-dashboard.git",
|
|
52
|
+
"directory": "frontend/apps/e-services"
|
|
53
|
+
}
|
|
54
|
+
}
|