@moh-sso/utilities 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.
Files changed (113) hide show
  1. package/README.md +24 -2
  2. package/dist/_types/apps/utilities/src/index.d.ts +7 -0
  3. package/dist/_types/apps/utilities/src/pages/absence-requests.component.d.ts +1 -0
  4. package/dist/_types/apps/utilities/src/pages/elearning.component.d.ts +1 -0
  5. package/dist/_types/apps/utilities/src/pages/leave-plan.component.d.ts +1 -0
  6. package/dist/_types/apps/utilities/src/pages/my-absence-dashboard.component.d.ts +1 -0
  7. package/dist/_types/apps/utilities/src/pages/my-timesheet.component.d.ts +1 -0
  8. package/dist/_types/apps/utilities/src/root.component.d.ts +2 -0
  9. package/dist/_types/apps/utilities/src/routes.d.ts +2 -0
  10. package/dist/_types/apps/utilities/src/single-spa.d.ts +1 -0
  11. package/dist/_types/packages/api/src/api/baseApi.d.ts +2 -0
  12. package/dist/_types/packages/api/src/index.d.ts +1 -0
  13. package/dist/_types/packages/auth/src/api/auth.api.d.ts +531 -0
  14. package/dist/_types/packages/auth/src/api/health-context.api.d.ts +374 -0
  15. package/dist/_types/packages/auth/src/auth/AuthBootstrap.d.ts +1 -0
  16. package/dist/_types/packages/auth/src/auth/HealthContextProvider.d.ts +20 -0
  17. package/dist/_types/packages/auth/src/auth/PermissionGuard.d.ts +10 -0
  18. package/dist/_types/packages/auth/src/auth/auth.selectors.d.ts +896 -0
  19. package/dist/_types/packages/auth/src/auth/auth.slice.d.ts +14 -0
  20. package/dist/_types/packages/auth/src/auth/auth.types.d.ts +61 -0
  21. package/dist/_types/packages/auth/src/auth/login-url.d.ts +2 -0
  22. package/dist/_types/packages/auth/src/auth/permissions.d.ts +58 -0
  23. package/dist/_types/packages/auth/src/auth/rbac.d.ts +8 -0
  24. package/dist/_types/packages/auth/src/auth/system-launch-url.d.ts +9 -0
  25. package/dist/_types/packages/auth/src/auth/useAuthorization.d.ts +14 -0
  26. package/dist/_types/packages/auth/src/index.d.ts +14 -0
  27. package/dist/_types/packages/config/src/appMeta.d.ts +3 -0
  28. package/dist/_types/packages/config/src/index.d.ts +6 -0
  29. package/dist/_types/packages/config/src/lib/constants/api.constants.d.ts +178 -0
  30. package/dist/_types/packages/config/src/lib/constants/document-templates.d.ts +11 -0
  31. package/dist/_types/packages/config/src/lib/errors/errorMessages.d.ts +2 -0
  32. package/dist/_types/packages/config/src/lib/errors/errorSeverity.d.ts +3 -0
  33. package/dist/_types/packages/config/src/lib/errors/errorTypes.d.ts +1 -0
  34. package/dist/_types/packages/microfrontend/src/basename.d.ts +1 -0
  35. package/dist/_types/packages/microfrontend/src/index.d.ts +6 -0
  36. package/dist/_types/packages/microfrontend/src/lifecycle.d.ts +6 -0
  37. package/dist/_types/packages/microfrontend/src/navigation.d.ts +2 -0
  38. package/dist/_types/packages/microfrontend/src/props.d.ts +44 -0
  39. package/dist/_types/packages/microfrontend/src/react-lifecycle.d.ts +11 -0
  40. package/dist/_types/packages/microfrontend/src/routes.d.ts +13 -0
  41. package/dist/_types/packages/state/src/clients/clients.selectors.d.ts +534 -0
  42. package/dist/_types/packages/state/src/clients/clients.slice.d.ts +4 -0
  43. package/dist/_types/packages/state/src/document/documents.selectors.d.ts +1 -0
  44. package/dist/_types/packages/state/src/index.d.ts +29 -0
  45. package/dist/_types/packages/state/src/ui/ui.state.d.ts +1 -0
  46. package/dist/_types/packages/types/src/index.d.ts +6 -0
  47. package/dist/_types/packages/types/src/types/announcement-summary.types.d.ts +16 -0
  48. package/dist/_types/packages/types/src/types/client-role.types.d.ts +6 -0
  49. package/dist/_types/packages/types/src/types/client.types.d.ts +46 -0
  50. package/dist/_types/packages/types/src/types/document-processing.types.d.ts +1 -0
  51. package/dist/_types/packages/types/src/types/notifications.types.d.ts +96 -0
  52. package/dist/_types/packages/types/src/types/system-navigation.types.d.ts +18 -0
  53. package/dist/_types/packages/ui/src/accessibility/index.d.ts +1 -0
  54. package/dist/_types/packages/ui/src/accessibility/useFocusTrap.d.ts +10 -0
  55. package/dist/_types/packages/ui/src/branding/BuildMeta.d.ts +6 -0
  56. package/dist/_types/packages/ui/src/branding/PublicFooter.d.ts +6 -0
  57. package/dist/_types/packages/ui/src/branding/index.d.ts +2 -0
  58. package/dist/_types/packages/ui/src/data-display/DataTablePagination.d.ts +12 -0
  59. package/dist/_types/packages/ui/src/data-display/DataTableShell.d.ts +35 -0
  60. package/dist/_types/packages/ui/src/data-display/RowActionsCell.d.ts +7 -0
  61. package/dist/_types/packages/ui/src/data-display/TableEmptyState.d.ts +8 -0
  62. package/dist/_types/packages/ui/src/data-display/TableStatusTag.d.ts +8 -0
  63. package/dist/_types/packages/ui/src/data-display/index.d.ts +5 -0
  64. package/dist/_types/packages/ui/src/feedback/comingsoon/ComingSoon.d.ts +7 -0
  65. package/dist/_types/packages/ui/src/feedback/emptystate/EmptyState.d.ts +15 -0
  66. package/dist/_types/packages/ui/src/feedback/errorstate/ErrorState.d.ts +14 -0
  67. package/dist/_types/packages/ui/src/feedback/errorstate/MicrofrontendErrorBoundary.d.ts +16 -0
  68. package/dist/_types/packages/ui/src/feedback/index.d.ts +5 -0
  69. package/dist/_types/packages/ui/src/feedback/loadingstate/LoadingState.d.ts +5 -0
  70. package/dist/_types/packages/ui/src/forms/CaseFormsGrid.d.ts +1 -0
  71. package/dist/_types/packages/ui/src/forms/index.d.ts +1 -0
  72. package/dist/_types/packages/ui/src/index.d.ts +16 -0
  73. package/dist/_types/packages/ui/src/layout/PageShell/PageShell.d.ts +9 -0
  74. package/dist/_types/packages/ui/src/layout/SectionCard/SectionCard.d.ts +11 -0
  75. package/dist/_types/packages/ui/src/layout/index.d.ts +2 -0
  76. package/dist/_types/packages/ui/src/navigation/appmenu/AppGridContent.d.ts +12 -0
  77. package/dist/_types/packages/ui/src/navigation/appmenu/AppMenu.component.d.ts +6 -0
  78. package/dist/_types/packages/ui/src/navigation/appmenu/AppMenuItem.component.d.ts +13 -0
  79. package/dist/_types/packages/ui/src/navigation/appmenu/appMenuGroups.d.ts +11 -0
  80. package/dist/_types/packages/ui/src/navigation/breadcrumbs/AppBreadcrumbs.d.ts +12 -0
  81. package/dist/_types/packages/ui/src/navigation/breadcrumbs/BreadcrumbBar.d.ts +10 -0
  82. package/dist/_types/packages/ui/src/navigation/index.d.ts +2 -0
  83. package/dist/_types/packages/ui/src/navigation/sidenav/ClientSideNav.d.ts +14 -0
  84. package/dist/_types/packages/ui/src/notifications/FormInlineAlert.d.ts +7 -0
  85. package/dist/_types/packages/ui/src/notifications/NotificationsPanel.d.ts +14 -0
  86. package/dist/_types/packages/ui/src/notifications/index.d.ts +4 -0
  87. package/dist/_types/packages/ui/src/notifications/toast/ToastProvider.d.ts +20 -0
  88. package/dist/_types/packages/ui/src/notifications/toast/useToast.d.ts +20 -0
  89. package/dist/_types/packages/ui/src/overlays/header-panel/ReusableHeaderPanel.d.ts +17 -0
  90. package/dist/_types/packages/ui/src/overlays/header-panel/header-panel.context.d.ts +23 -0
  91. package/dist/_types/packages/ui/src/overlays/index.d.ts +4 -0
  92. package/dist/_types/packages/ui/src/overlays/modal/ReusableModal.d.ts +20 -0
  93. package/dist/_types/packages/ui/src/overlays/modal/modal.context.d.ts +14 -0
  94. package/dist/_types/packages/ui/src/shell/ExternalAppHeader.d.ts +22 -0
  95. package/dist/_types/packages/ui/src/shell/PublicHeader.component.d.ts +8 -0
  96. package/dist/_types/packages/ui/src/shell/UserHeader.component.d.ts +17 -0
  97. package/dist/_types/packages/ui/src/shell/index.d.ts +5 -0
  98. package/dist/_types/packages/ui/src/theme/ThemeProvider.d.ts +8 -0
  99. package/dist/_types/packages/ui/src/theme/index.d.ts +1 -0
  100. package/dist/_types/packages/ui/src/utils/severity.d.ts +22 -0
  101. package/dist/_types/packages/ui/src/utils/status.d.ts +1 -0
  102. package/dist/assets/root.component-B5HL7OiH.js +32 -0
  103. package/dist/assets/root.component-B5HL7OiH.js.map +1 -0
  104. package/dist/index.d.ts +1 -0
  105. package/dist/index.js +29 -0
  106. package/dist/index.js.map +1 -0
  107. package/dist/routes.d.ts +1 -0
  108. package/dist/routes.js +10 -0
  109. package/dist/routes.js.map +1 -0
  110. package/dist/single-spa.d.ts +1 -0
  111. package/dist/single-spa.js +9 -0
  112. package/dist/single-spa.js.map +1 -0
  113. package/package.json +51 -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,8 @@
1
+ import type React from "react";
2
+ type PublicHeaderProps = {
3
+ onNavigateHome?: () => void;
4
+ homeHref?: string;
5
+ onLogin?: () => void;
6
+ };
7
+ declare const PublicHeader: React.FC<PublicHeaderProps>;
8
+ export default PublicHeader;
@@ -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,32 @@
1
+ import { jsx as e, jsxs as a } from "react/jsx-runtime";
2
+ import { resolveRuntimeBasename as l } from "@moh-sso/microfrontend";
3
+ import { BrowserRouter as o, Routes as m, Route as t, Navigate as s } from "react-router-dom";
4
+ import { MohThemeProvider as c, PageShell as h, ComingSoon as u } from "@moh-sso/ui";
5
+ function i({ title: n }) {
6
+ return /* @__PURE__ */ e(h, { title: n, subtitle: "Access your self-service tools and requests.", children: /* @__PURE__ */ e(u, { title: "Coming soon" }) });
7
+ }
8
+ function p(n) {
9
+ const r = n?.replace(/\/+$/, "");
10
+ return !r || r.endsWith("/apps/utilities") ? "/apps/utilities/self-service" : r;
11
+ }
12
+ function g(n) {
13
+ const r = l(p(n.basename));
14
+ return /* @__PURE__ */ e("div", { className: "moh-microfrontend-root", children: /* @__PURE__ */ e(c, { theme: "white", children: /* @__PURE__ */ e(o, { basename: r, children: /* @__PURE__ */ a(m, { children: [
15
+ /* @__PURE__ */ e(t, { index: !0, element: /* @__PURE__ */ e(s, { to: "timesheet", replace: !0 }) }),
16
+ /* @__PURE__ */ e(t, { path: "timesheet", element: /* @__PURE__ */ e(i, { title: "Timesheet" }) }),
17
+ /* @__PURE__ */ e(t, { path: "elearning", element: /* @__PURE__ */ e(i, { title: "E-learning" }) }),
18
+ /* @__PURE__ */ e(t, { path: "leave-plan", element: /* @__PURE__ */ e(i, { title: "Leave Plan" }) }),
19
+ /* @__PURE__ */ e(t, { path: "absence-requests", element: /* @__PURE__ */ e(i, { title: "Absence Requests" }) }),
20
+ /* @__PURE__ */ e(t, { path: "absence-dashboard", element: /* @__PURE__ */ e(i, { title: "Absence Dashboard" }) }),
21
+ /* @__PURE__ */ a(t, { path: "eservice", children: [
22
+ /* @__PURE__ */ e(t, { index: !0, element: /* @__PURE__ */ e(s, { to: "service-access", replace: !0 }) }),
23
+ /* @__PURE__ */ e(t, { path: "service-access", element: /* @__PURE__ */ e(i, { title: "Service Access" }) }),
24
+ /* @__PURE__ */ e(t, { path: "equipment-request", element: /* @__PURE__ */ e(i, { title: "Equipment Request" }) })
25
+ ] }),
26
+ /* @__PURE__ */ e(t, { path: "*", element: /* @__PURE__ */ e(s, { to: "timesheet", replace: !0 }) })
27
+ ] }) }) }) });
28
+ }
29
+ export {
30
+ g as U
31
+ };
32
+ //# sourceMappingURL=root.component-B5HL7OiH.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"root.component-B5HL7OiH.js","sources":["../../src/root.component.tsx"],"sourcesContent":["import { resolveRuntimeBasename, type MicrofrontendRuntimeProps } from \"@moh-sso/microfrontend\";\nimport { BrowserRouter, Navigate, Route, Routes } from \"react-router-dom\";\n\nimport { ComingSoon, MohThemeProvider, PageShell } from \"@moh-sso/ui\";\n\nfunction UtilityPage({ title }: { title: string }) {\n return (\n <PageShell title={title} subtitle=\"Access your self-service tools and requests.\">\n <ComingSoon title=\"Coming soon\" />\n </PageShell>\n );\n}\n\nfunction normalizeBasename(basename?: string) {\n const normalized = basename?.replace(/\\/+$/, \"\");\n\n if (!normalized || normalized.endsWith(\"/apps/utilities\")) {\n return \"/apps/utilities/self-service\";\n }\n\n return normalized;\n}\n\nexport function UtilitiesRoot(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=\"timesheet\" replace />} />\n\n <Route path=\"timesheet\" element={<UtilityPage title=\"Timesheet\" />} />\n\n <Route path=\"elearning\" element={<UtilityPage title=\"E-learning\" />} />\n\n <Route path=\"leave-plan\" element={<UtilityPage title=\"Leave Plan\" />} />\n\n <Route path=\"absence-requests\" element={<UtilityPage title=\"Absence Requests\" />} />\n\n <Route path=\"absence-dashboard\" element={<UtilityPage title=\"Absence Dashboard\" />} />\n\n <Route path=\"eservice\">\n <Route index element={<Navigate to=\"service-access\" replace />} />\n <Route path=\"service-access\" element={<UtilityPage title=\"Service Access\" />} />\n <Route path=\"equipment-request\" element={<UtilityPage title=\"Equipment Request\" />} />\n </Route>\n\n <Route path=\"*\" element={<Navigate to=\"timesheet\" replace />} />\n </Routes>\n </BrowserRouter>\n </MohThemeProvider>\n </div>\n );\n}\n"],"names":["UtilityPage","title","jsx","PageShell","ComingSoon","normalizeBasename","basename","normalized","UtilitiesRoot","props","resolveRuntimeBasename","MohThemeProvider","BrowserRouter","jsxs","Routes","Route","Navigate"],"mappings":";;;;AAKA,SAASA,EAAY,EAAE,OAAAC,KAA4B;AACjD,SACE,gBAAAC,EAACC,KAAU,OAAAF,GAAc,UAAS,gDAChC,UAAA,gBAAAC,EAACE,GAAA,EAAW,OAAM,cAAA,CAAc,EAAA,CAClC;AAEJ;AAEA,SAASC,EAAkBC,GAAmB;AAC5C,QAAMC,IAAaD,GAAU,QAAQ,QAAQ,EAAE;AAE/C,SAAI,CAACC,KAAcA,EAAW,SAAS,iBAAiB,IAC/C,iCAGFA;AACT;AAEO,SAASC,EAAcC,GAAkC;AAC9D,QAAMH,IAAWI,EAAuBL,EAAkBI,EAAM,QAAQ,CAAC;AAEzE,SACE,gBAAAP,EAAC,OAAA,EAAI,WAAU,0BACb,UAAA,gBAAAA,EAACS,GAAA,EAAiB,OAAM,SACtB,UAAA,gBAAAT,EAACU,GAAA,EAAc,UAAAN,GACb,UAAA,gBAAAO,EAACC,GAAA,EACC,UAAA;AAAA,IAAA,gBAAAZ,EAACa,GAAA,EAAM,OAAK,IAAC,SAAS,gBAAAb,EAACc,KAAS,IAAG,aAAY,SAAO,GAAA,CAAC,EAAA,CAAI;AAAA,IAE3D,gBAAAd,EAACa,KAAM,MAAK,aAAY,SAAS,gBAAAb,EAACF,GAAA,EAAY,OAAM,YAAA,CAAY,EAAA,CAAI;AAAA,IAEpE,gBAAAE,EAACa,KAAM,MAAK,aAAY,SAAS,gBAAAb,EAACF,GAAA,EAAY,OAAM,aAAA,CAAa,EAAA,CAAI;AAAA,IAErE,gBAAAE,EAACa,KAAM,MAAK,cAAa,SAAS,gBAAAb,EAACF,GAAA,EAAY,OAAM,aAAA,CAAa,EAAA,CAAI;AAAA,IAEtE,gBAAAE,EAACa,KAAM,MAAK,oBAAmB,SAAS,gBAAAb,EAACF,GAAA,EAAY,OAAM,mBAAA,CAAmB,EAAA,CAAI;AAAA,IAElF,gBAAAE,EAACa,KAAM,MAAK,qBAAoB,SAAS,gBAAAb,EAACF,GAAA,EAAY,OAAM,oBAAA,CAAoB,EAAA,CAAI;AAAA,IAEpF,gBAAAa,EAACE,GAAA,EAAM,MAAK,YACV,UAAA;AAAA,MAAA,gBAAAb,EAACa,GAAA,EAAM,OAAK,IAAC,SAAS,gBAAAb,EAACc,KAAS,IAAG,kBAAiB,SAAO,GAAA,CAAC,EAAA,CAAI;AAAA,MAChE,gBAAAd,EAACa,KAAM,MAAK,kBAAiB,SAAS,gBAAAb,EAACF,GAAA,EAAY,OAAM,iBAAA,CAAiB,EAAA,CAAI;AAAA,MAC9E,gBAAAE,EAACa,KAAM,MAAK,qBAAoB,SAAS,gBAAAb,EAACF,GAAA,EAAY,OAAM,oBAAA,CAAoB,EAAA,CAAI;AAAA,IAAA,GACtF;AAAA,IAEA,gBAAAE,EAACa,GAAA,EAAM,MAAK,KAAI,SAAS,gBAAAb,EAACc,GAAA,EAAS,IAAG,aAAY,SAAO,GAAA,CAAC,EAAA,CAAI;AAAA,EAAA,GAChE,EAAA,CACF,GACF,GACF;AAEJ;"}
@@ -0,0 +1 @@
1
+ export * from "./_types/apps/utilities/src/index.js";
package/dist/index.js ADDED
@@ -0,0 +1,29 @@
1
+ import { U as d } from "./assets/root.component-B5HL7OiH.js";
2
+ import { utilitiesRoute as N } from "./routes.js";
3
+ import { jsx as e } from "react/jsx-runtime";
4
+ import { EmptyState as t } from "@moh-sso/ui";
5
+ function r() {
6
+ return /* @__PURE__ */ e(t, { title: "No Data", description: "No Absence Request data here" });
7
+ }
8
+ function a() {
9
+ return /* @__PURE__ */ e(t, { title: "No Data", description: "No Elearning data here" });
10
+ }
11
+ function n() {
12
+ return /* @__PURE__ */ e(t, { title: "No Data", description: "No Leave plan data here" });
13
+ }
14
+ function s() {
15
+ return /* @__PURE__ */ e(t, { title: "No Data", description: "No absence data here" });
16
+ }
17
+ function c() {
18
+ return /* @__PURE__ */ e(t, { title: "No Data", description: "No timesheet data here" });
19
+ }
20
+ export {
21
+ r as AbsenceRequests,
22
+ a as Elearning,
23
+ n as LeavePlan,
24
+ s as MyAbsenceDashboard,
25
+ c as MyTimeSheet,
26
+ d as UtilitiesRoot,
27
+ N as utilitiesRoute
28
+ };
29
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":["../src/pages/absence-requests.component.tsx","../src/pages/elearning.component.tsx","../src/pages/leave-plan.component.tsx","../src/pages/my-absence-dashboard.component.tsx","../src/pages/my-timesheet.component.tsx"],"sourcesContent":["import { EmptyState } from \"@moh-sso/ui\";\n\nexport default function AbsenceRequests() {\n return <EmptyState title={\"No Data\"} description={\"No Absence Request data here\"} />;\n}\n","import { EmptyState } from \"@moh-sso/ui\";\n\nexport default function Elearning() {\n return <EmptyState title={\"No Data\"} description={\"No Elearning data here\"} />;\n}\n","import { EmptyState } from \"@moh-sso/ui\";\n\nexport default function LeavePlan() {\n return <EmptyState title={\"No Data\"} description={\"No Leave plan data here\"} />;\n}\n","import { EmptyState } from \"@moh-sso/ui\";\n\nexport default function MyAbsenceDashboard() {\n return <EmptyState title={\"No Data\"} description={\"No absence data here\"} />;\n}\n","import { EmptyState } from \"@moh-sso/ui\";\n\nexport default function MyTimeSheet() {\n return <EmptyState title={\"No Data\"} description={\"No timesheet data here\"} />;\n}\n"],"names":["AbsenceRequests","jsx","EmptyState","Elearning","LeavePlan","MyAbsenceDashboard","MyTimeSheet"],"mappings":";;;;AAEA,SAAwBA,IAAkB;AACxC,SAAO,gBAAAC,EAACC,GAAA,EAAW,OAAO,WAAW,aAAa,gCAAgC;AACpF;ACFA,SAAwBC,IAAY;AAClC,SAAO,gBAAAF,EAACC,GAAA,EAAW,OAAO,WAAW,aAAa,0BAA0B;AAC9E;ACFA,SAAwBE,IAAY;AAClC,SAAO,gBAAAH,EAACC,GAAA,EAAW,OAAO,WAAW,aAAa,2BAA2B;AAC/E;ACFA,SAAwBG,IAAqB;AAC3C,SAAO,gBAAAJ,EAACC,GAAA,EAAW,OAAO,WAAW,aAAa,yBAAyB;AAC7E;ACFA,SAAwBI,IAAc;AACpC,SAAO,gBAAAL,EAACC,GAAA,EAAW,OAAO,WAAW,aAAa,2BAA2B;AAC/E;"}
@@ -0,0 +1 @@
1
+ export * from "./_types/apps/utilities/src/routes.js";
package/dist/routes.js ADDED
@@ -0,0 +1,10 @@
1
+ const i = {
2
+ appName: "@moh-sso/utilities",
3
+ path: "/apps/utilities/self-service",
4
+ paths: ["/apps/utilities/self-service"],
5
+ requiredSystems: ["utilities"]
6
+ };
7
+ export {
8
+ i as utilitiesRoute
9
+ };
10
+ //# 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 utilitiesRoute: MicrofrontendRoute = {\n appName: \"@moh-sso/utilities\",\n path: \"/apps/utilities/self-service\",\n paths: [\"/apps/utilities/self-service\"],\n requiredSystems: [\"utilities\"],\n};\n"],"names":["utilitiesRoute"],"mappings":"AAEO,MAAMA,IAAqC;AAAA,EAChD,SAAS;AAAA,EACT,MAAM;AAAA,EACN,OAAO,CAAC,8BAA8B;AAAA,EACtC,iBAAiB,CAAC,WAAW;AAC/B;"}
@@ -0,0 +1 @@
1
+ export * from "./_types/apps/utilities/src/single-spa.js";
@@ -0,0 +1,9 @@
1
+ import { createReactMicrofrontendLifecycle as o } from "@moh-sso/microfrontend";
2
+ import { U as t } from "./assets/root.component-B5HL7OiH.js";
3
+ const { bootstrap: i, mount: c, unmount: m } = o(t);
4
+ export {
5
+ i as bootstrap,
6
+ c as mount,
7
+ m as unmount
8
+ };
9
+ //# 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 { UtilitiesRoot } from \"./root.component\";\n\nexport const { bootstrap, mount, unmount } = createReactMicrofrontendLifecycle(UtilitiesRoot);\n"],"names":["bootstrap","mount","unmount","createReactMicrofrontendLifecycle","UtilitiesRoot"],"mappings":";;AAIO,MAAM,EAAE,WAAAA,GAAW,OAAAC,GAAO,SAAAC,EAAA,IAAYC,EAAkCC,CAAa;"}
package/package.json CHANGED
@@ -1,6 +1,53 @@
1
1
  {
2
2
  "name": "@moh-sso/utilities",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
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 utilities",
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
+ "peerDependencies": {
41
+ "react-router-dom": "^7.9.6",
42
+ "react": "^19.2.0",
43
+ "react-dom": "^19.2.0",
44
+ "react-redux": "^9.2.0",
45
+ "single-spa": "^6.0.3"
46
+ },
47
+ "private": false,
48
+ "repository": {
49
+ "type": "git",
50
+ "url": "git+https://github.com/mohuganda/moh-sso-dashboard.git",
51
+ "directory": "frontend/apps/utilities"
52
+ }
53
+ }