@burdenoff/microfe-theglobalfuel 2026.705.5 → 2026.709.2
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 +3 -0
- package/dist/dev/main.d.ts +2 -0
- package/dist/dev/main.d.ts.map +1 -0
- package/dist/generated/global-operations.d.ts +2 -0
- package/dist/generated/global-operations.d.ts.map +1 -0
- package/dist/generated/global-types.d.ts +18199 -0
- package/dist/generated/global-types.d.ts.map +1 -0
- package/dist/generated/wspace-operations.d.ts +2 -0
- package/dist/generated/wspace-operations.d.ts.map +1 -0
- package/dist/generated/wspace-types.d.ts +43046 -0
- package/dist/generated/wspace-types.d.ts.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3 -1
- package/dist/theglobalfuel/TheGlobalFuelRoot.d.ts +5 -0
- package/dist/theglobalfuel/TheGlobalFuelRoot.d.ts.map +1 -0
- package/dist/theglobalfuel/TheGlobalFuelRoot.js +106 -104
- package/dist/theglobalfuel/TheGlobalFuelRoot.js.map +1 -1
- package/dist/theglobalfuel/TheGlobalFuelRoutes.d.ts +4 -0
- package/dist/theglobalfuel/TheGlobalFuelRoutes.d.ts.map +1 -0
- package/dist/theglobalfuel/TheGlobalFuelRoutes.js +60 -38
- package/dist/theglobalfuel/TheGlobalFuelRoutes.js.map +1 -1
- package/dist/theglobalfuel/components/DataTable.d.ts +30 -0
- package/dist/theglobalfuel/components/DataTable.d.ts.map +1 -0
- package/dist/theglobalfuel/components/DataTable.js.map +1 -1
- package/dist/theglobalfuel/components/EmptyState.d.ts +18 -0
- package/dist/theglobalfuel/components/EmptyState.d.ts.map +1 -0
- package/dist/theglobalfuel/components/EvidenceUpload.d.ts +14 -0
- package/dist/theglobalfuel/components/EvidenceUpload.d.ts.map +1 -0
- package/dist/theglobalfuel/components/FileLink.d.ts +15 -0
- package/dist/theglobalfuel/components/FileLink.d.ts.map +1 -0
- package/dist/theglobalfuel/components/FilterTabs.d.ts +18 -0
- package/dist/theglobalfuel/components/FilterTabs.d.ts.map +1 -0
- package/dist/theglobalfuel/components/MetricsCard.d.ts +23 -0
- package/dist/theglobalfuel/components/MetricsCard.d.ts.map +1 -0
- package/dist/theglobalfuel/components/MiniBar.d.ts +16 -0
- package/dist/theglobalfuel/components/MiniBar.d.ts.map +1 -0
- package/dist/theglobalfuel/components/PageLayout.d.ts +18 -0
- package/dist/theglobalfuel/components/PageLayout.d.ts.map +1 -0
- package/dist/theglobalfuel/components/PageLayout.js +2 -1
- package/dist/theglobalfuel/components/PageLayout.js.map +1 -1
- package/dist/theglobalfuel/components/Pagination.d.ts +22 -0
- package/dist/theglobalfuel/components/Pagination.d.ts.map +1 -0
- package/dist/theglobalfuel/components/StateViews.d.ts +24 -0
- package/dist/theglobalfuel/components/StateViews.d.ts.map +1 -0
- package/dist/theglobalfuel/components/StatusBadge.d.ts +9 -0
- package/dist/theglobalfuel/components/StatusBadge.d.ts.map +1 -0
- package/dist/theglobalfuel/components/Tabs.d.ts +17 -0
- package/dist/theglobalfuel/components/Tabs.d.ts.map +1 -0
- package/dist/theglobalfuel/components/TheDiscussion.d.ts +18 -0
- package/dist/theglobalfuel/components/TheDiscussion.d.ts.map +1 -0
- package/dist/theglobalfuel/components/TheTags.d.ts +17 -0
- package/dist/theglobalfuel/components/TheTags.d.ts.map +1 -0
- package/dist/theglobalfuel/components/WorldMap.d.ts +18 -0
- package/dist/theglobalfuel/components/WorldMap.d.ts.map +1 -0
- package/dist/theglobalfuel/components/WorldMap.js.map +1 -1
- package/dist/theglobalfuel/components/index.d.ts +21 -0
- package/dist/theglobalfuel/components/index.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/AllocationBar.d.ts +21 -0
- package/dist/theglobalfuel/components/viz/AllocationBar.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/AreaChart.d.ts +18 -0
- package/dist/theglobalfuel/components/viz/AreaChart.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/AvatarStack.d.ts +13 -0
- package/dist/theglobalfuel/components/viz/AvatarStack.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/BarChart.d.ts +17 -0
- package/dist/theglobalfuel/components/viz/BarChart.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/CertificateCard.d.ts +14 -0
- package/dist/theglobalfuel/components/viz/CertificateCard.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/DonutChart.d.ts +20 -0
- package/dist/theglobalfuel/components/viz/DonutChart.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/HBarFunnel.d.ts +17 -0
- package/dist/theglobalfuel/components/viz/HBarFunnel.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/Heatmap.d.ts +26 -0
- package/dist/theglobalfuel/components/viz/Heatmap.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/KanbanBoard.d.ts +17 -0
- package/dist/theglobalfuel/components/viz/KanbanBoard.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/LineChart.d.ts +20 -0
- package/dist/theglobalfuel/components/viz/LineChart.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/OrgTree.d.ts +14 -0
- package/dist/theglobalfuel/components/viz/OrgTree.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/PathSteps.d.ts +17 -0
- package/dist/theglobalfuel/components/viz/PathSteps.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/ProgressRing.d.ts +20 -0
- package/dist/theglobalfuel/components/viz/ProgressRing.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/RatingStars.d.ts +14 -0
- package/dist/theglobalfuel/components/viz/RatingStars.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/SegmentedTabs.d.ts +26 -0
- package/dist/theglobalfuel/components/viz/SegmentedTabs.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/SkillBar.d.ts +17 -0
- package/dist/theglobalfuel/components/viz/SkillBar.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/Sparkline.d.ts +16 -0
- package/dist/theglobalfuel/components/viz/Sparkline.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/StatCard.d.ts +22 -0
- package/dist/theglobalfuel/components/viz/StatCard.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/StepProgress.d.ts +17 -0
- package/dist/theglobalfuel/components/viz/StepProgress.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/Timeline.d.ts +21 -0
- package/dist/theglobalfuel/components/viz/Timeline.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/index.d.ts +35 -0
- package/dist/theglobalfuel/components/viz/index.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/lib/Avatar.d.ts +15 -0
- package/dist/theglobalfuel/components/viz/lib/Avatar.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/lib/CartesianFrame.d.ts +44 -0
- package/dist/theglobalfuel/components/viz/lib/CartesianFrame.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/lib/ResponsiveSvg.d.ts +27 -0
- package/dist/theglobalfuel/components/viz/lib/ResponsiveSvg.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/lib/format.d.ts +10 -0
- package/dist/theglobalfuel/components/viz/lib/format.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/lib/geometry.d.ts +41 -0
- package/dist/theglobalfuel/components/viz/lib/geometry.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/lib/hooks.d.ts +18 -0
- package/dist/theglobalfuel/components/viz/lib/hooks.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/lib/palette.d.ts +31 -0
- package/dist/theglobalfuel/components/viz/lib/palette.d.ts.map +1 -0
- package/dist/theglobalfuel/components/viz/lib/types.d.ts +27 -0
- package/dist/theglobalfuel/components/viz/lib/types.d.ts.map +1 -0
- package/dist/theglobalfuel/context/TheGlobalFuelContext.d.ts +16 -0
- package/dist/theglobalfuel/context/TheGlobalFuelContext.d.ts.map +1 -0
- package/dist/theglobalfuel/context/index.d.ts +6 -0
- package/dist/theglobalfuel/context/index.d.ts.map +1 -0
- package/dist/theglobalfuel/hooks/index.d.ts +15 -0
- package/dist/theglobalfuel/hooks/index.d.ts.map +1 -0
- package/dist/theglobalfuel/hooks/index.js +4 -0
- package/dist/theglobalfuel/hooks/useCursorPager.d.ts +26 -0
- package/dist/theglobalfuel/hooks/useCursorPager.d.ts.map +1 -0
- package/dist/theglobalfuel/hooks/useNotify.d.ts +23 -0
- package/dist/theglobalfuel/hooks/useNotify.d.ts.map +1 -0
- package/dist/theglobalfuel/hooks/useTheAnalytics.d.ts +38 -0
- package/dist/theglobalfuel/hooks/useTheAnalytics.d.ts.map +1 -0
- package/dist/theglobalfuel/hooks/useTheAnalytics.js +46 -0
- package/dist/theglobalfuel/hooks/useTheAnalytics.js.map +1 -0
- package/dist/theglobalfuel/hooks/useTheComments.d.ts +36 -0
- package/dist/theglobalfuel/hooks/useTheComments.d.ts.map +1 -0
- package/dist/theglobalfuel/hooks/useTheFiles.d.ts +47 -0
- package/dist/theglobalfuel/hooks/useTheFiles.d.ts.map +1 -0
- package/dist/theglobalfuel/hooks/useTheGlobalFuelApi.d.ts +79 -0
- package/dist/theglobalfuel/hooks/useTheGlobalFuelApi.d.ts.map +1 -0
- package/dist/theglobalfuel/hooks/useTheGlobalFuelApi.js +2 -9
- package/dist/theglobalfuel/hooks/useTheGlobalFuelApi.js.map +1 -1
- package/dist/theglobalfuel/hooks/useTheNativeControls.d.ts +20 -0
- package/dist/theglobalfuel/hooks/useTheNativeControls.d.ts.map +1 -0
- package/dist/theglobalfuel/hooks/useTheNativeControls.js +22 -0
- package/dist/theglobalfuel/hooks/useTheNativeControls.js.map +1 -0
- package/dist/theglobalfuel/hooks/useThePageView.d.ts +10 -0
- package/dist/theglobalfuel/hooks/useThePageView.d.ts.map +1 -0
- package/dist/theglobalfuel/hooks/useThePageView.js +13 -0
- package/dist/theglobalfuel/hooks/useThePageView.js.map +1 -0
- package/dist/theglobalfuel/hooks/useTheTags.d.ts +44 -0
- package/dist/theglobalfuel/hooks/useTheTags.d.ts.map +1 -0
- package/dist/theglobalfuel/hooks/useTheTranslation.d.ts +4 -0
- package/dist/theglobalfuel/hooks/useTheTranslation.d.ts.map +1 -0
- package/dist/theglobalfuel/hooks/useTheTranslation.js +12 -0
- package/dist/theglobalfuel/hooks/useTheTranslation.js.map +1 -0
- package/dist/theglobalfuel/index.d.ts +11 -0
- package/dist/theglobalfuel/index.d.ts.map +1 -0
- package/dist/theglobalfuel/index.js +2 -0
- package/dist/theglobalfuel/pages/assets/AssetDetailPage.d.ts +13 -0
- package/dist/theglobalfuel/pages/assets/AssetDetailPage.d.ts.map +1 -0
- package/dist/theglobalfuel/pages/assets/AssetDetailPage.js +395 -353
- package/dist/theglobalfuel/pages/assets/AssetDetailPage.js.map +1 -1
- package/dist/theglobalfuel/pages/assets/AssetsPage.d.ts +10 -0
- package/dist/theglobalfuel/pages/assets/AssetsPage.d.ts.map +1 -0
- package/dist/theglobalfuel/pages/assets/AssetsPage.js +152 -146
- package/dist/theglobalfuel/pages/assets/AssetsPage.js.map +1 -1
- package/dist/theglobalfuel/pages/compliance/CompliancePage.d.ts +11 -0
- package/dist/theglobalfuel/pages/compliance/CompliancePage.d.ts.map +1 -0
- package/dist/theglobalfuel/pages/compliance/CompliancePage.js +233 -229
- package/dist/theglobalfuel/pages/compliance/CompliancePage.js.map +1 -1
- package/dist/theglobalfuel/pages/contracts/ContractDetailPage.d.ts +9 -0
- package/dist/theglobalfuel/pages/contracts/ContractDetailPage.d.ts.map +1 -0
- package/dist/theglobalfuel/pages/contracts/ContractDetailPage.js +410 -389
- package/dist/theglobalfuel/pages/contracts/ContractDetailPage.js.map +1 -1
- package/dist/theglobalfuel/pages/contracts/ContractsPage.d.ts +8 -0
- package/dist/theglobalfuel/pages/contracts/ContractsPage.d.ts.map +1 -0
- package/dist/theglobalfuel/pages/contracts/ContractsPage.js +237 -231
- package/dist/theglobalfuel/pages/contracts/ContractsPage.js.map +1 -1
- package/dist/theglobalfuel/pages/dashboard/DashboardPage.d.ts +17 -0
- package/dist/theglobalfuel/pages/dashboard/DashboardPage.d.ts.map +1 -0
- package/dist/theglobalfuel/pages/dashboard/DashboardPage.js +255 -250
- package/dist/theglobalfuel/pages/dashboard/DashboardPage.js.map +1 -1
- package/dist/theglobalfuel/pages/emissions/EmissionsPage.d.ts +13 -0
- package/dist/theglobalfuel/pages/emissions/EmissionsPage.d.ts.map +1 -0
- package/dist/theglobalfuel/pages/emissions/EmissionsPage.js +154 -150
- package/dist/theglobalfuel/pages/emissions/EmissionsPage.js.map +1 -1
- package/dist/theglobalfuel/pages/inventory/InventoryPage.d.ts +11 -0
- package/dist/theglobalfuel/pages/inventory/InventoryPage.d.ts.map +1 -0
- package/dist/theglobalfuel/pages/inventory/InventoryPage.js +151 -147
- package/dist/theglobalfuel/pages/inventory/InventoryPage.js.map +1 -1
- package/dist/theglobalfuel/pages/production/ProductionPage.d.ts +11 -0
- package/dist/theglobalfuel/pages/production/ProductionPage.d.ts.map +1 -0
- package/dist/theglobalfuel/pages/production/ProductionPage.js +175 -171
- package/dist/theglobalfuel/pages/production/ProductionPage.js.map +1 -1
- package/dist/theglobalfuel/pages/provenance/ProvenancePage.d.ts +23 -0
- package/dist/theglobalfuel/pages/provenance/ProvenancePage.d.ts.map +1 -0
- package/dist/theglobalfuel/pages/provenance/ProvenancePage.js +153 -146
- package/dist/theglobalfuel/pages/provenance/ProvenancePage.js.map +1 -1
- package/dist/theglobalfuel/pages/reserves/ReservesPage.d.ts +10 -0
- package/dist/theglobalfuel/pages/reserves/ReservesPage.d.ts.map +1 -0
- package/dist/theglobalfuel/pages/reserves/ReservesPage.js +168 -164
- package/dist/theglobalfuel/pages/reserves/ReservesPage.js.map +1 -1
- package/dist/theglobalfuel/pages/shipments/ShipmentsPage.d.ts +11 -0
- package/dist/theglobalfuel/pages/shipments/ShipmentsPage.d.ts.map +1 -0
- package/dist/theglobalfuel/pages/shipments/ShipmentsPage.js +179 -175
- package/dist/theglobalfuel/pages/shipments/ShipmentsPage.js.map +1 -1
- package/dist/theglobalfuel/services/assistantApi.d.ts +25 -0
- package/dist/theglobalfuel/services/assistantApi.d.ts.map +1 -0
- package/dist/theglobalfuel/services/assistantApi.js +225 -0
- package/dist/theglobalfuel/services/assistantApi.js.map +1 -0
- package/dist/theglobalfuel/services/createSandboxAssistantTransport.d.ts +38 -0
- package/dist/theglobalfuel/services/createSandboxAssistantTransport.d.ts.map +1 -0
- package/dist/theglobalfuel/services/createSandboxAssistantTransport.js +120 -0
- package/dist/theglobalfuel/services/createSandboxAssistantTransport.js.map +1 -0
- package/dist/theglobalfuel/services/index.d.ts +7 -0
- package/dist/theglobalfuel/services/index.d.ts.map +1 -0
- package/dist/theglobalfuel/types/assistant.d.ts +65 -0
- package/dist/theglobalfuel/types/assistant.d.ts.map +1 -0
- package/dist/theglobalfuel/types/index.d.ts +376 -0
- package/dist/theglobalfuel/types/index.d.ts.map +1 -0
- package/dist/theglobalfuel/utils/cn.d.ts +4 -0
- package/dist/theglobalfuel/utils/cn.d.ts.map +1 -0
- package/dist/theglobalfuel/utils/formatters.d.ts +44 -0
- package/dist/theglobalfuel/utils/formatters.d.ts.map +1 -0
- package/dist/theglobalfuel/utils/i18n.d.ts +5 -0
- package/dist/theglobalfuel/utils/i18n.d.ts.map +1 -0
- package/dist/theglobalfuel/utils/i18n.js +15 -0
- package/dist/theglobalfuel/utils/i18n.js.map +1 -0
- package/dist/theglobalfuel/utils/index.d.ts +10 -0
- package/dist/theglobalfuel/utils/index.d.ts.map +1 -0
- package/dist/theglobalfuel/utils/navigation.d.ts +14 -0
- package/dist/theglobalfuel/utils/navigation.d.ts.map +1 -0
- package/dist/theglobalfuel/utils/pageContext.d.ts +26 -0
- package/dist/theglobalfuel/utils/pageContext.d.ts.map +1 -0
- package/dist/theglobalfuel/utils/pageContext.js +65 -0
- package/dist/theglobalfuel/utils/pageContext.js.map +1 -0
- package/dist/theglobalfuel/utils/transitions.d.ts +17 -0
- package/dist/theglobalfuel/utils/transitions.d.ts.map +1 -0
- package/package.json +5 -1
- package/dist/node_modules/clsx/dist/clsx.js +0 -18
- package/dist/node_modules/clsx/dist/clsx.js.map +0 -1
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +0 -1716
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js.map +0 -1
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
interface EmptyStateProps {
|
|
4
|
+
icon?: ReactNode;
|
|
5
|
+
/**
|
|
6
|
+
* On-brand illustration name → `/illustrations/<name>.webp`. Standard names:
|
|
7
|
+
* empty-data, empty-search, empty-files, empty-people, empty-notifications,
|
|
8
|
+
* onboarding, empty-generic.
|
|
9
|
+
*/
|
|
10
|
+
illustration?: string;
|
|
11
|
+
title: string;
|
|
12
|
+
description?: string;
|
|
13
|
+
action?: ReactNode;
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const EmptyState: FC<EmptyStateProps>;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=EmptyState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EmptyState.d.ts","sourceRoot":"","sources":["../../../src/theglobalfuel/components/EmptyState.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAI3C,UAAU,eAAe;IACvB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAoC1C,CAAC"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { UploadedTheFile } from '../hooks';
|
|
2
|
+
|
|
3
|
+
interface EvidenceUploadProps {
|
|
4
|
+
id: string;
|
|
5
|
+
label: string;
|
|
6
|
+
value: UploadedTheFile | null;
|
|
7
|
+
onChange: (value: UploadedTheFile | null) => void;
|
|
8
|
+
accept?: string;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
hint?: string;
|
|
11
|
+
}
|
|
12
|
+
export declare function EvidenceUpload({ id, label, value, onChange, accept, disabled, hint, }: EvidenceUploadProps): import("react").JSX.Element;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=EvidenceUpload.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"EvidenceUpload.d.ts","sourceRoot":"","sources":["../../../src/theglobalfuel/components/EvidenceUpload.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAKH,OAAO,EAAoB,KAAK,eAAe,EAAE,MAAM,UAAU,CAAC;AAElE,UAAU,mBAAmB;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,eAAe,GAAG,IAAI,CAAC;IAC9B,QAAQ,EAAE,CAAC,KAAK,EAAE,eAAe,GAAG,IAAI,KAAK,IAAI,CAAC;IAClD,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,wBAAgB,cAAc,CAAC,EAC7B,EAAE,EACF,KAAK,EACL,KAAK,EACL,QAAQ,EACR,MAA0C,EAC1C,QAAgB,EAChB,IAAI,GACL,EAAE,mBAAmB,+BAkFrB"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FileLink — resolves a federated File id to a download link (Integration A).
|
|
3
|
+
* @module theglobalfuel/components/FileLink
|
|
4
|
+
*
|
|
5
|
+
* The eco queries select `evidence { id }` / `file { id }` (just the id). This
|
|
6
|
+
* resolves the platform File via `getFile(id)` for its name + signed
|
|
7
|
+
* `downloadUrl` so evidence/report artifacts render as a real link.
|
|
8
|
+
*/
|
|
9
|
+
interface FileLinkProps {
|
|
10
|
+
fileId: string | null | undefined;
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
export declare function FileLink({ fileId, className }: FileLinkProps): import("react").JSX.Element | null;
|
|
14
|
+
export {};
|
|
15
|
+
//# sourceMappingURL=FileLink.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FileLink.d.ts","sourceRoot":"","sources":["../../../src/theglobalfuel/components/FileLink.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAKH,UAAU,aAAa;IACrB,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAClC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,QAAQ,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,aAAa,sCA0C5D"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* FilterTabs — a segmented status/enum filter control.
|
|
3
|
+
* @module theglobalfuel/components
|
|
4
|
+
*/
|
|
5
|
+
export interface FilterOption<V extends string> {
|
|
6
|
+
value: V;
|
|
7
|
+
label: string;
|
|
8
|
+
count?: number;
|
|
9
|
+
}
|
|
10
|
+
interface FilterTabsProps<V extends string> {
|
|
11
|
+
options: FilterOption<V>[];
|
|
12
|
+
value: V;
|
|
13
|
+
onChange: (value: V) => void;
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare function FilterTabs<V extends string>({ options, value, onChange, className, }: FilterTabsProps<V>): import("react").JSX.Element;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=FilterTabs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FilterTabs.d.ts","sourceRoot":"","sources":["../../../src/theglobalfuel/components/FilterTabs.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,MAAM,WAAW,YAAY,CAAC,CAAC,SAAS,MAAM;IAC5C,KAAK,EAAE,CAAC,CAAC;IACT,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,UAAU,eAAe,CAAC,CAAC,SAAS,MAAM;IACxC,OAAO,EAAE,YAAY,CAAC,CAAC,CAAC,EAAE,CAAC;IAC3B,KAAK,EAAE,CAAC,CAAC;IACT,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,UAAU,CAAC,CAAC,SAAS,MAAM,EAAE,EAC3C,OAAO,EACP,KAAK,EACL,QAAQ,EACR,SAAS,GACV,EAAE,eAAe,CAAC,CAAC,CAAC,+BAyCpB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
import { TrendDirection } from '../types';
|
|
3
|
+
|
|
4
|
+
type Accent = 'success' | 'warning' | 'error';
|
|
5
|
+
interface MetricsCardProps {
|
|
6
|
+
icon: ReactNode;
|
|
7
|
+
value: string | number;
|
|
8
|
+
label: string;
|
|
9
|
+
trend?: TrendDirection;
|
|
10
|
+
trendValue?: string;
|
|
11
|
+
className?: string;
|
|
12
|
+
/** Render as the page's hero metric (glass treatment + accent glow). */
|
|
13
|
+
featured?: boolean;
|
|
14
|
+
/** Severity accent — tints the icon and adds a soft top-edge glow. */
|
|
15
|
+
accent?: Accent;
|
|
16
|
+
/** Optional pill shown in the top-right (e.g. "Critical"). */
|
|
17
|
+
pill?: ReactNode;
|
|
18
|
+
/** Optional slot under the value (e.g. a MiniBar or sub-label). */
|
|
19
|
+
footer?: ReactNode;
|
|
20
|
+
}
|
|
21
|
+
export declare const MetricsCard: FC<MetricsCardProps>;
|
|
22
|
+
export {};
|
|
23
|
+
//# sourceMappingURL=MetricsCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MetricsCard.d.ts","sourceRoot":"","sources":["../../../src/theglobalfuel/components/MetricsCard.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAI3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAE/C,KAAK,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,OAAO,CAAC;AAE9C,UAAU,gBAAgB;IACxB,IAAI,EAAE,SAAS,CAAC;IAChB,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,cAAc,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wEAAwE;IACxE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,sEAAsE;IACtE,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,8DAA8D;IAC9D,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,mEAAmE;IACnE,MAAM,CAAC,EAAE,SAAS,CAAC;CACpB;AAoBD,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAiD5C,CAAC"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MiniBar — a thin inline progress bar (target progress, completion, breach %).
|
|
3
|
+
* @module theglobalfuel/components
|
|
4
|
+
*/
|
|
5
|
+
interface MiniBarProps {
|
|
6
|
+
/** 0–100. */
|
|
7
|
+
value: number;
|
|
8
|
+
className?: string;
|
|
9
|
+
/** Bar fill token class (defaults to accent). */
|
|
10
|
+
barClassName?: string;
|
|
11
|
+
/** Height in px. */
|
|
12
|
+
height?: number;
|
|
13
|
+
}
|
|
14
|
+
export declare function MiniBar({ value, className, barClassName, height, }: MiniBarProps): import("react").JSX.Element;
|
|
15
|
+
export {};
|
|
16
|
+
//# sourceMappingURL=MiniBar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MiniBar.d.ts","sourceRoot":"","sources":["../../../src/theglobalfuel/components/MiniBar.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,UAAU,YAAY;IACpB,aAAa;IACb,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iDAAiD;IACjD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oBAAoB;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,OAAO,CAAC,EACtB,KAAK,EACL,SAAS,EACT,YAA0B,EAC1B,MAAU,GACX,EAAE,YAAY,+BAiBd"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
interface PageLayoutProps {
|
|
4
|
+
title: ReactNode;
|
|
5
|
+
description?: string;
|
|
6
|
+
actions?: ReactNode;
|
|
7
|
+
children: ReactNode;
|
|
8
|
+
className?: string;
|
|
9
|
+
/** Render the title as a gradient hero heading (reserve for the ONE primary page). */
|
|
10
|
+
titleGradient?: boolean;
|
|
11
|
+
/** Drop a subtle living-glass aurora behind the header (primary page only). */
|
|
12
|
+
aurora?: boolean;
|
|
13
|
+
/** Tour anchor id applied to the page wrapper for guided tours. */
|
|
14
|
+
dataTour?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const PageLayout: FC<PageLayoutProps>;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=PageLayout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"PageLayout.d.ts","sourceRoot":"","sources":["../../../src/theglobalfuel/components/PageLayout.tsx"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAI3C,UAAU,eAAe;IACvB,KAAK,EAAE,SAAS,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,sFAAsF;IACtF,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,+EAA+E;IAC/E,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,mEAAmE;IACnE,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,UAAU,EAAE,EAAE,CAAC,eAAe,CAqC1C,CAAC"}
|
|
@@ -2,8 +2,9 @@ import { cn as e } from "../utils/cn.js";
|
|
|
2
2
|
import { jsx as t, jsxs as n } from "react/jsx-runtime";
|
|
3
3
|
import { AuroraBackground as r, GradientText as i } from "@burdenoff/fe-libs/ui";
|
|
4
4
|
//#region src/theglobalfuel/components/PageLayout.tsx
|
|
5
|
-
var a = ({ title: a, description: o, actions: s, children: c, className: l, titleGradient: u = !1, aurora: d = !1 }) => /* @__PURE__ */ n("div", {
|
|
5
|
+
var a = ({ title: a, description: o, actions: s, children: c, className: l, titleGradient: u = !1, aurora: d = !1, dataTour: f }) => /* @__PURE__ */ n("div", {
|
|
6
6
|
className: e("flex flex-col h-full", l),
|
|
7
|
+
"data-tour": f,
|
|
7
8
|
children: [/* @__PURE__ */ n("div", {
|
|
8
9
|
className: e("relative flex flex-col gap-3 px-6 py-4 border-b border-border-seam sm:flex-row sm:items-center sm:justify-between sm:gap-4", d ? "overflow-hidden bg-gloss-card" : "bg-bg-surface"),
|
|
9
10
|
children: [
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageLayout.js","names":[],"sources":["../../../src/theglobalfuel/components/PageLayout.tsx"],"sourcesContent":["/**\n * Page Layout Component\n * @module theglobalfuel/components\n *\n * Boff UI 2.0 page wrapper. Supports a living-glass {@link AuroraBackground}\n * hero backdrop and a gradient hero title for the MFE's primary page.\n */\n\nimport type { FC, ReactNode } from 'react';\nimport { AuroraBackground, GradientText } from '@burdenoff/fe-libs/ui';\nimport { cn } from '../utils/cn';\n\ninterface PageLayoutProps {\n title: ReactNode;\n description?: string;\n actions?: ReactNode;\n children: ReactNode;\n className?: string;\n /** Render the title as a gradient hero heading (reserve for the ONE primary page). */\n titleGradient?: boolean;\n /** Drop a subtle living-glass aurora behind the header (primary page only). */\n aurora?: boolean;\n}\n\nexport const PageLayout: FC<PageLayoutProps> = ({\n title,\n description,\n actions,\n children,\n className,\n titleGradient = false,\n aurora = false,\n}) => {\n return (\n <div className={cn('flex flex-col h-full', className)}>\n <div\n className={cn(\n 'relative flex flex-col gap-3 px-6 py-4 border-b border-border-seam sm:flex-row sm:items-center sm:justify-between sm:gap-4',\n aurora ? 'overflow-hidden bg-gloss-card' : 'bg-bg-surface'\n )}\n >\n {aurora && <AuroraBackground intensity=\"subtle\" />}\n <div className=\"min-w-0\">\n {titleGradient && typeof title === 'string' ? (\n <GradientText as=\"h1\" className=\"text-2xl font-semibold tracking-tight\">\n {title}\n </GradientText>\n ) : (\n <h1 className=\"text-2xl font-semibold text-text-primary\">{title}</h1>\n )}\n {description && <p className=\"mt-1 text-sm text-text-secondary\">{description}</p>}\n </div>\n {actions && (\n <div className=\"flex flex-wrap items-center gap-3 shrink-0 max-sm:w-full\">{actions}</div>\n )}\n </div>\n\n <div className=\"flex-1 overflow-auto p-6\">{children}</div>\n </div>\n );\n};\n"],"mappings":";;;;
|
|
1
|
+
{"version":3,"file":"PageLayout.js","names":[],"sources":["../../../src/theglobalfuel/components/PageLayout.tsx"],"sourcesContent":["/**\n * Page Layout Component\n * @module theglobalfuel/components\n *\n * Boff UI 2.0 page wrapper. Supports a living-glass {@link AuroraBackground}\n * hero backdrop and a gradient hero title for the MFE's primary page.\n */\n\nimport type { FC, ReactNode } from 'react';\nimport { AuroraBackground, GradientText } from '@burdenoff/fe-libs/ui';\nimport { cn } from '../utils/cn';\n\ninterface PageLayoutProps {\n title: ReactNode;\n description?: string;\n actions?: ReactNode;\n children: ReactNode;\n className?: string;\n /** Render the title as a gradient hero heading (reserve for the ONE primary page). */\n titleGradient?: boolean;\n /** Drop a subtle living-glass aurora behind the header (primary page only). */\n aurora?: boolean;\n /** Tour anchor id applied to the page wrapper for guided tours. */\n dataTour?: string;\n}\n\nexport const PageLayout: FC<PageLayoutProps> = ({\n title,\n description,\n actions,\n children,\n className,\n titleGradient = false,\n aurora = false,\n dataTour,\n}) => {\n return (\n <div className={cn('flex flex-col h-full', className)} data-tour={dataTour}>\n <div\n className={cn(\n 'relative flex flex-col gap-3 px-6 py-4 border-b border-border-seam sm:flex-row sm:items-center sm:justify-between sm:gap-4',\n aurora ? 'overflow-hidden bg-gloss-card' : 'bg-bg-surface'\n )}\n >\n {aurora && <AuroraBackground intensity=\"subtle\" />}\n <div className=\"min-w-0\">\n {titleGradient && typeof title === 'string' ? (\n <GradientText as=\"h1\" className=\"text-2xl font-semibold tracking-tight\">\n {title}\n </GradientText>\n ) : (\n <h1 className=\"text-2xl font-semibold text-text-primary\">{title}</h1>\n )}\n {description && <p className=\"mt-1 text-sm text-text-secondary\">{description}</p>}\n </div>\n {actions && (\n <div className=\"flex flex-wrap items-center gap-3 shrink-0 max-sm:w-full\">{actions}</div>\n )}\n </div>\n\n <div className=\"flex-1 overflow-auto p-6\">{children}</div>\n </div>\n );\n};\n"],"mappings":";;;;AA0BA,IAAa,KAAmC,EAC9C,UACA,gBACA,YACA,aACA,cACA,mBAAgB,IAChB,YAAS,IACT,kBAGE,kBAAC,OAAD;CAAK,WAAW,EAAG,wBAAwB,EAAU;CAAE,aAAW;WAAlE,CACE,kBAAC,OAAD;EACE,WAAW,EACT,8HACA,IAAS,kCAAkC,gBAC5C;YAJH;GAMG,KAAU,kBAAC,GAAD,EAAkB,WAAU,UAAW,CAAA;GAClD,kBAAC,OAAD;IAAK,WAAU;cAAf,CACG,KAAiB,OAAO,KAAU,WACjC,kBAAC,GAAD;KAAc,IAAG;KAAK,WAAU;eAC7B;KACY,CAAA,GAEf,kBAAC,MAAD;KAAI,WAAU;eAA4C;KAAW,CAAA,EAEtE,KAAe,kBAAC,KAAD;KAAG,WAAU;eAAoC;KAAgB,CAAA,CAC7E;;GACL,KACC,kBAAC,OAAD;IAAK,WAAU;cAA4D;IAAc,CAAA;GAEvF;KAEN,kBAAC,OAAD;EAAK,WAAU;EAA4B;EAAe,CAAA,CACtD"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pagination — cursor-aware Prev/Next control for The* connection lists.
|
|
3
|
+
* @module theglobalfuel/components
|
|
4
|
+
*
|
|
5
|
+
* The svc list connections return `pageInfo { cursor, hasMore }` and paginate by
|
|
6
|
+
* cursor (offset is a no-op). Pages track a 0-indexed `page` for display and a
|
|
7
|
+
* cursor stack for navigation; this control exposes Prev/Next, disabling Prev on
|
|
8
|
+
* page 0 and Next when the server reports no more rows.
|
|
9
|
+
*/
|
|
10
|
+
interface PaginationProps {
|
|
11
|
+
page: number;
|
|
12
|
+
pageSize: number;
|
|
13
|
+
/** Number of rows on the current page. */
|
|
14
|
+
itemCount: number;
|
|
15
|
+
/** Server flag: are there more rows after this page? */
|
|
16
|
+
hasMore: boolean;
|
|
17
|
+
onPageChange: (page: number) => void;
|
|
18
|
+
className?: string;
|
|
19
|
+
}
|
|
20
|
+
export declare function Pagination({ page, pageSize, itemCount, hasMore, onPageChange, className, }: PaginationProps): import("react").JSX.Element | null;
|
|
21
|
+
export {};
|
|
22
|
+
//# sourceMappingURL=Pagination.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../../../src/theglobalfuel/components/Pagination.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAMH,UAAU,eAAe;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,0CAA0C;IAC1C,SAAS,EAAE,MAAM,CAAC;IAClB,wDAAwD;IACxD,OAAO,EAAE,OAAO,CAAC;IACjB,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IACrC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,UAAU,CAAC,EACzB,IAAI,EACJ,QAAQ,EACR,SAAS,EACT,OAAO,EACP,YAAY,EACZ,SAAS,GACV,EAAE,eAAe,sCAuCjB"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { FC, ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
interface LoadingViewProps {
|
|
4
|
+
label?: string;
|
|
5
|
+
className?: string;
|
|
6
|
+
}
|
|
7
|
+
export declare const LoadingView: FC<LoadingViewProps>;
|
|
8
|
+
interface ErrorViewProps {
|
|
9
|
+
title?: string;
|
|
10
|
+
message?: string;
|
|
11
|
+
onRetry?: () => void;
|
|
12
|
+
className?: string;
|
|
13
|
+
}
|
|
14
|
+
export declare const ErrorView: FC<ErrorViewProps>;
|
|
15
|
+
interface SectionProps {
|
|
16
|
+
title: string;
|
|
17
|
+
description?: string;
|
|
18
|
+
action?: ReactNode;
|
|
19
|
+
children: ReactNode;
|
|
20
|
+
className?: string;
|
|
21
|
+
}
|
|
22
|
+
export declare const Section: FC<SectionProps>;
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=StateViews.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StateViews.d.ts","sourceRoot":"","sources":["../../../src/theglobalfuel/components/StateViews.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAK3C,UAAU,gBAAgB;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAK5C,CAAC;AAEF,UAAU,cAAc;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,SAAS,EAAE,EAAE,CAAC,cAAc,CA2BxC,CAAC;AAEF,UAAU,YAAY;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,SAAS,CAAC;IACnB,QAAQ,EAAE,SAAS,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,OAAO,EAAE,EAAE,CAAC,YAAY,CAWpC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StatusBadge.d.ts","sourceRoot":"","sources":["../../../src/theglobalfuel/components/StatusBadge.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAIhC,UAAU,gBAAgB;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AA+ED,eAAO,MAAM,WAAW,EAAE,EAAE,CAAC,gBAAgB,CAsB5C,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface TabItem<V extends string> {
|
|
4
|
+
value: V;
|
|
5
|
+
label: string;
|
|
6
|
+
icon?: ReactNode;
|
|
7
|
+
count?: number;
|
|
8
|
+
}
|
|
9
|
+
interface TabsProps<V extends string> {
|
|
10
|
+
items: TabItem<V>[];
|
|
11
|
+
value: V;
|
|
12
|
+
onChange: (value: V) => void;
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare function Tabs<V extends string>({ items, value, onChange, className }: TabsProps<V>): import("react").JSX.Element;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=Tabs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tabs.d.ts","sourceRoot":"","sources":["../../../src/theglobalfuel/components/Tabs.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC,MAAM,WAAW,OAAO,CAAC,CAAC,SAAS,MAAM;IACvC,KAAK,EAAE,CAAC,CAAC;IACT,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,UAAU,SAAS,CAAC,CAAC,SAAS,MAAM;IAClC,KAAK,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC;IACpB,KAAK,EAAE,CAAC,CAAC;IACT,QAAQ,EAAE,CAAC,KAAK,EAAE,CAAC,KAAK,IAAI,CAAC;IAC7B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,IAAI,CAAC,CAAC,SAAS,MAAM,EAAE,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,EAAE,SAAS,CAAC,CAAC,CAAC,+BAyCzF"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TheDiscussion — a comment thread on any eco entity (Integration B).
|
|
3
|
+
* @module theglobalfuel/components/TheDiscussion
|
|
4
|
+
*
|
|
5
|
+
* Reuses the platform EntityComment API (`getEntityComments` /
|
|
6
|
+
* `createEntityComment`) keyed by `(entityType, entityId)` — no eco-svc change.
|
|
7
|
+
* Renders root comments (author, body, time) + a composer. Robust to empty
|
|
8
|
+
* state and errors.
|
|
9
|
+
*/
|
|
10
|
+
interface TheDiscussionProps {
|
|
11
|
+
entityType: string;
|
|
12
|
+
entityId: string;
|
|
13
|
+
title?: string;
|
|
14
|
+
description?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare function TheDiscussion({ entityType, entityId, title, description, }: TheDiscussionProps): import("react").JSX.Element;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=TheDiscussion.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TheDiscussion.d.ts","sourceRoot":"","sources":["../../../src/theglobalfuel/components/TheDiscussion.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAWH,UAAU,kBAAkB;IAC1B,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAaD,wBAAgB,aAAa,CAAC,EAC5B,UAAU,EACV,QAAQ,EACR,KAAoB,EACpB,WAAkE,GACnE,EAAE,kBAAkB,+BAoGpB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TheTags — a lightweight tag control for eco entities (Integration C).
|
|
3
|
+
* @module theglobalfuel/components/TheTags
|
|
4
|
+
*
|
|
5
|
+
* The eco svc exposes no tags field, so this drives the platform tag store
|
|
6
|
+
* directly: `getEntityTags` (display), `searchTags` (+ `createTag`) to pick or
|
|
7
|
+
* create, `assignTag`/`removeTagAssignment` to link — all via the workspace
|
|
8
|
+
* gateway. No eco-svc change.
|
|
9
|
+
*/
|
|
10
|
+
interface TheTagsProps {
|
|
11
|
+
entityType: string;
|
|
12
|
+
entityId: string;
|
|
13
|
+
label?: string;
|
|
14
|
+
}
|
|
15
|
+
export declare function TheTags({ entityType, entityId, label }: TheTagsProps): import("react").JSX.Element;
|
|
16
|
+
export {};
|
|
17
|
+
//# sourceMappingURL=TheTags.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TheTags.d.ts","sourceRoot":"","sources":["../../../src/theglobalfuel/components/TheTags.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAoBH,UAAU,YAAY;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,wBAAgB,OAAO,CAAC,EAAE,UAAU,EAAE,QAAQ,EAAE,KAAc,EAAE,EAAE,YAAY,+BAuL7E"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface GeoPoint {
|
|
4
|
+
lat: number;
|
|
5
|
+
lng: number;
|
|
6
|
+
label?: string;
|
|
7
|
+
/** Highlighted (pulsing) marker — use for the focused asset. */
|
|
8
|
+
primary?: boolean;
|
|
9
|
+
}
|
|
10
|
+
interface WorldMapProps {
|
|
11
|
+
points: GeoPoint[];
|
|
12
|
+
className?: string;
|
|
13
|
+
/** Show the coordinate readout of the primary point beneath the map. */
|
|
14
|
+
showReadout?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare const WorldMap: FC<WorldMapProps>;
|
|
17
|
+
export {};
|
|
18
|
+
//# sourceMappingURL=WorldMap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WorldMap.d.ts","sourceRoot":"","sources":["../../../src/theglobalfuel/components/WorldMap.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAW,KAAK,EAAE,EAAE,MAAM,OAAO,CAAC;AAGzC,MAAM,WAAW,QAAQ;IACvB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,gEAAgE;IAChE,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,UAAU,aAAa;IACrB,MAAM,EAAE,QAAQ,EAAE,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,wEAAwE;IACxE,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB;AAsBD,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,aAAa,CAgEtC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"WorldMap.js","names":[],"sources":["../../../src/theglobalfuel/components/WorldMap.tsx"],"sourcesContent":["/**\n * WorldMap — a self-contained, tokenized SVG equirectangular locator.\n * @module theglobalfuel/components\n *\n * No external map tiles or libraries: a subtle graticule + simplified continent\n * silhouettes over which real asset coordinates are projected as glowing\n * markers. Every colour is a fe-libs semantic token so it themes automatically;\n * the SVG scales responsively via its viewBox. Latitude/longitude are projected\n * equirectangularly: x = lng + 180, y = 90 − lat (viewBox 0 0 360 180).\n */\n\nimport { useMemo, type FC } from 'react';\nimport { cn } from '../utils/cn';\n\nexport interface GeoPoint {\n lat: number;\n lng: number;\n label?: string;\n /** Highlighted (pulsing) marker — use for the focused asset. */\n primary?: boolean;\n}\n\ninterface WorldMapProps {\n points: GeoPoint[];\n className?: string;\n /** Show the coordinate readout of the primary point beneath the map. */\n showReadout?: boolean;\n}\n\n// Simplified continent silhouettes in the 360×180 equirectangular space\n// (x = lng+180, y = 90−lat). Deliberately stylised — a recognisable backdrop,\n// not a survey map — so it stays compact and dependency-free.\nconst CONTINENTS: string[] = [\n // North America\n 'M55,34 Q70,24 96,30 Q118,34 112,52 Q104,70 88,72 Q70,74 62,60 Q50,50 55,34 Z',\n // Central + South America\n 'M96,74 Q108,72 112,82 Q118,96 110,116 Q104,140 96,150 Q88,138 90,116 Q88,96 96,74 Z',\n // Europe\n 'M168,34 Q184,28 196,36 Q200,46 190,52 Q176,56 168,48 Q164,40 168,34 Z',\n // Africa\n 'M176,58 Q198,54 210,66 Q214,84 204,104 Q196,118 186,112 Q176,98 176,80 Q172,66 176,58 Z',\n // Asia\n 'M198,30 Q236,22 276,30 Q292,40 282,58 Q262,74 232,70 Q210,68 202,54 Q194,42 198,30 Z',\n // Australia\n 'M270,104 Q290,100 302,110 Q304,122 292,126 Q276,128 270,118 Q266,110 270,104 Z',\n];\n\nconst project = (p: GeoPoint) => ({ x: p.lng + 180, y: 90 - p.lat });\n\nexport const WorldMap: FC<WorldMapProps> = ({ points, className, showReadout = true }) => {\n const projected = useMemo(() => points.map((p) => ({ ...p, ...project(p) })), [points]);\n const primary = projected.find((p) => p.primary) ?? projected[0];\n\n return (\n <div className={cn('flex flex-col gap-2', className)}>\n <div className=\"overflow-hidden rounded-xl border border-border-seam bg-bg-sunken/60\">\n <svg
|
|
1
|
+
{"version":3,"file":"WorldMap.js","names":[],"sources":["../../../src/theglobalfuel/components/WorldMap.tsx"],"sourcesContent":["/**\n * WorldMap — a self-contained, tokenized SVG equirectangular locator.\n * @module theglobalfuel/components\n *\n * No external map tiles or libraries: a subtle graticule + simplified continent\n * silhouettes over which real asset coordinates are projected as glowing\n * markers. Every colour is a fe-libs semantic token so it themes automatically;\n * the SVG scales responsively via its viewBox. Latitude/longitude are projected\n * equirectangularly: x = lng + 180, y = 90 − lat (viewBox 0 0 360 180).\n */\n\nimport { useMemo, type FC } from 'react';\nimport { cn } from '../utils/cn';\n\nexport interface GeoPoint {\n lat: number;\n lng: number;\n label?: string;\n /** Highlighted (pulsing) marker — use for the focused asset. */\n primary?: boolean;\n}\n\ninterface WorldMapProps {\n points: GeoPoint[];\n className?: string;\n /** Show the coordinate readout of the primary point beneath the map. */\n showReadout?: boolean;\n}\n\n// Simplified continent silhouettes in the 360×180 equirectangular space\n// (x = lng+180, y = 90−lat). Deliberately stylised — a recognisable backdrop,\n// not a survey map — so it stays compact and dependency-free.\nconst CONTINENTS: string[] = [\n // North America\n 'M55,34 Q70,24 96,30 Q118,34 112,52 Q104,70 88,72 Q70,74 62,60 Q50,50 55,34 Z',\n // Central + South America\n 'M96,74 Q108,72 112,82 Q118,96 110,116 Q104,140 96,150 Q88,138 90,116 Q88,96 96,74 Z',\n // Europe\n 'M168,34 Q184,28 196,36 Q200,46 190,52 Q176,56 168,48 Q164,40 168,34 Z',\n // Africa\n 'M176,58 Q198,54 210,66 Q214,84 204,104 Q196,118 186,112 Q176,98 176,80 Q172,66 176,58 Z',\n // Asia\n 'M198,30 Q236,22 276,30 Q292,40 282,58 Q262,74 232,70 Q210,68 202,54 Q194,42 198,30 Z',\n // Australia\n 'M270,104 Q290,100 302,110 Q304,122 292,126 Q276,128 270,118 Q266,110 270,104 Z',\n];\n\nconst project = (p: GeoPoint) => ({ x: p.lng + 180, y: 90 - p.lat });\n\nexport const WorldMap: FC<WorldMapProps> = ({ points, className, showReadout = true }) => {\n const projected = useMemo(() => points.map((p) => ({ ...p, ...project(p) })), [points]);\n const primary = projected.find((p) => p.primary) ?? projected[0];\n\n return (\n <div className={cn('flex flex-col gap-2', className)}>\n <div className=\"overflow-hidden rounded-xl border border-border-seam bg-bg-sunken/60\">\n <svg\n viewBox=\"0 0 360 180\"\n className=\"h-full w-full\"\n role=\"img\"\n aria-label=\"Asset location map\"\n >\n {/* graticule */}\n <g stroke=\"var(--color-border-seam)\" strokeWidth=\"0.4\" opacity=\"0.5\">\n {[30, 60, 90, 120, 150, 180, 210, 240, 270, 300, 330].map((x) => (\n <line key={`m${x}`} x1={x} y1=\"0\" x2={x} y2=\"180\" />\n ))}\n {[30, 60, 90, 120, 150].map((y) => (\n <line key={`p${y}`} x1=\"0\" y1={y} x2=\"360\" y2={y} />\n ))}\n </g>\n {/* continents */}\n <g fill=\"var(--color-bg-surface)\" stroke=\"var(--color-border-strong)\" strokeWidth=\"0.5\">\n {CONTINENTS.map((d, i) => (\n <path key={i} d={d} />\n ))}\n </g>\n {/* markers */}\n {projected.map((p, i) => (\n <g key={i}>\n {p.primary && (\n <circle\n cx={p.x}\n cy={p.y}\n r=\"6\"\n fill=\"var(--color-status-success-text)\"\n opacity=\"0.25\"\n className=\"motion-safe:animate-vc-glow-pulse\"\n />\n )}\n <circle cx={p.x} cy={p.y} r=\"2.4\" fill=\"var(--color-status-success-text)\" />\n <circle\n cx={p.x}\n cy={p.y}\n r=\"2.4\"\n fill=\"none\"\n stroke=\"var(--color-bg-canvas)\"\n strokeWidth=\"0.6\"\n />\n </g>\n ))}\n </svg>\n </div>\n {showReadout && primary && (\n <div className=\"flex items-center justify-between px-1 text-xs text-text-tertiary\">\n <span className=\"truncate\">{primary.label ?? 'Location'}</span>\n <span className=\"tabular-nums\">\n {primary.lat.toFixed(3)}, {primary.lng.toFixed(3)}\n </span>\n </div>\n )}\n </div>\n );\n};\n"],"mappings":";;;;AAgCA,IAAM,IAAuB;CAE3B;CAEA;CAEA;CAEA;CAEA;CAEA;CACD,EAEK,KAAW,OAAiB;CAAE,GAAG,EAAE,MAAM;CAAK,GAAG,KAAK,EAAE;CAAK,GAEtD,KAA+B,EAAE,WAAQ,cAAW,iBAAc,SAAW;CACxF,IAAM,IAAY,QAAc,EAAO,KAAK,OAAO;EAAE,GAAG;EAAG,GAAG,EAAQ,EAAE;EAAE,EAAE,EAAE,CAAC,EAAO,CAAC,EACjF,IAAU,EAAU,MAAM,MAAM,EAAE,QAAQ,IAAI,EAAU;AAE9D,QACE,kBAAC,OAAD;EAAK,WAAW,EAAG,uBAAuB,EAAU;YAApD,CACE,kBAAC,OAAD;GAAK,WAAU;aACb,kBAAC,OAAD;IACE,SAAQ;IACR,WAAU;IACV,MAAK;IACL,cAAW;cAJb;KAOE,kBAAC,KAAD;MAAG,QAAO;MAA2B,aAAY;MAAM,SAAQ;gBAA/D,CACG;OAAC;OAAI;OAAI;OAAI;OAAK;OAAK;OAAK;OAAK;OAAK;OAAK;OAAK;OAAI,CAAC,KAAK,MACzD,kBAAC,QAAD;OAAoB,IAAI;OAAG,IAAG;OAAI,IAAI;OAAG,IAAG;OAAQ,EAAzC,IAAI,IAAqC,CACpD,EACD;OAAC;OAAI;OAAI;OAAI;OAAK;OAAI,CAAC,KAAK,MAC3B,kBAAC,QAAD;OAAoB,IAAG;OAAI,IAAI;OAAG,IAAG;OAAM,IAAI;OAAK,EAAzC,IAAI,IAAqC,CACpD,CACA;;KAEJ,kBAAC,KAAD;MAAG,MAAK;MAA0B,QAAO;MAA6B,aAAY;gBAC/E,EAAW,KAAK,GAAG,MAClB,kBAAC,QAAD,EAAiB,MAAK,EAAX,EAAW,CACtB;MACA,CAAA;KAEH,EAAU,KAAK,GAAG,MACjB,kBAAC,KAAD,EAAA,UAAA;MACG,EAAE,WACD,kBAAC,UAAD;OACE,IAAI,EAAE;OACN,IAAI,EAAE;OACN,GAAE;OACF,MAAK;OACL,SAAQ;OACR,WAAU;OACV,CAAA;MAEJ,kBAAC,UAAD;OAAQ,IAAI,EAAE;OAAG,IAAI,EAAE;OAAG,GAAE;OAAM,MAAK;OAAqC,CAAA;MAC5E,kBAAC,UAAD;OACE,IAAI,EAAE;OACN,IAAI,EAAE;OACN,GAAE;OACF,MAAK;OACL,QAAO;OACP,aAAY;OACZ,CAAA;MACA,EAAA,EApBI,EAoBJ,CACJ;KACE;;GACF,CAAA,EACL,KAAe,KACd,kBAAC,OAAD;GAAK,WAAU;aAAf,CACE,kBAAC,QAAD;IAAM,WAAU;cAAY,EAAQ,SAAS;IAAkB,CAAA,EAC/D,kBAAC,QAAD;IAAM,WAAU;cAAhB;KACG,EAAQ,IAAI,QAAQ,EAAE;KAAC;KAAG,EAAQ,IAAI,QAAQ,EAAE;KAC5C;MACH;KAEJ"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Components index
|
|
3
|
+
* @module theglobalfuel/components
|
|
4
|
+
*/
|
|
5
|
+
export { PageLayout } from './PageLayout';
|
|
6
|
+
export { MetricsCard } from './MetricsCard';
|
|
7
|
+
export { StatusBadge } from './StatusBadge';
|
|
8
|
+
export { EmptyState } from './EmptyState';
|
|
9
|
+
export { LoadingView, ErrorView, Section } from './StateViews';
|
|
10
|
+
export { DataTable, type Column } from './DataTable';
|
|
11
|
+
export { FilterTabs, type FilterOption } from './FilterTabs';
|
|
12
|
+
export { Tabs, type TabItem } from './Tabs';
|
|
13
|
+
export { Pagination } from './Pagination';
|
|
14
|
+
export { MiniBar } from './MiniBar';
|
|
15
|
+
export { EvidenceUpload } from './EvidenceUpload';
|
|
16
|
+
export { FileLink } from './FileLink';
|
|
17
|
+
export { TheDiscussion } from './TheDiscussion';
|
|
18
|
+
export { TheTags } from './TheTags';
|
|
19
|
+
export { WorldMap, type GeoPoint } from './WorldMap';
|
|
20
|
+
export { Sparkline, AreaChart, LineChart, BarChart, HBarFunnel, DonutChart, ProgressRing, StatCard, Heatmap, Timeline, type TimelineItem, AllocationBar, StepProgress, type StepProgressStep, PathSteps, type PathStep, type PathStepState, SegmentedTabs, type LabeledValue, type Segment, } from './viz';
|
|
21
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/theglobalfuel/components/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,KAAK,MAAM,EAAE,MAAM,aAAa,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,KAAK,YAAY,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,EAAE,IAAI,EAAE,KAAK,OAAO,EAAE,MAAM,QAAQ,CAAC;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AACtC,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,KAAK,QAAQ,EAAE,MAAM,YAAY,CAAC;AAGrD,OAAO,EACL,SAAS,EACT,SAAS,EACT,SAAS,EACT,QAAQ,EACR,UAAU,EACV,UAAU,EACV,YAAY,EACZ,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,KAAK,YAAY,EACjB,aAAa,EACb,YAAY,EACZ,KAAK,gBAAgB,EACrB,SAAS,EACT,KAAK,QAAQ,EACb,KAAK,aAAa,EAClB,aAAa,EACb,KAAK,YAAY,EACjB,KAAK,OAAO,GACb,MAAM,OAAO,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { Segment } from './lib/types';
|
|
3
|
+
|
|
4
|
+
export interface AllocationBarProps {
|
|
5
|
+
/** Segments that make up the bar; widths are proportional to their values. */
|
|
6
|
+
segments: Segment[];
|
|
7
|
+
/** Optional label shown above the bar (left). */
|
|
8
|
+
label?: ReactNode;
|
|
9
|
+
/** Headline value shown above the bar (right), e.g. "82% utilized". */
|
|
10
|
+
rightLabel?: ReactNode;
|
|
11
|
+
showLegend?: boolean;
|
|
12
|
+
/** Bar height in pixels. */
|
|
13
|
+
height?: number;
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* A single horizontal bar split into labeled, tokenized segments that sum to
|
|
18
|
+
* 100% — ideal for utilization / capacity breakdowns.
|
|
19
|
+
*/
|
|
20
|
+
export declare function AllocationBar({ segments, label, rightLabel, showLegend, height, className, }: AllocationBarProps): import("react").JSX.Element | null;
|
|
21
|
+
//# sourceMappingURL=AllocationBar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AllocationBar.d.ts","sourceRoot":"","sources":["../../../../src/theglobalfuel/components/viz/AllocationBar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAKvC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C,MAAM,WAAW,kBAAkB;IACjC,8EAA8E;IAC9E,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,iDAAiD;IACjD,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,uEAAuE;IACvE,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,4BAA4B;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,EAC5B,QAAQ,EACR,KAAK,EACL,UAAU,EACV,UAAiB,EACjB,MAAW,EACX,SAAS,GACV,EAAE,kBAAkB,sCA6DpB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { LabeledValue } from './lib/types';
|
|
2
|
+
|
|
3
|
+
export interface AreaChartProps {
|
|
4
|
+
series: LabeledValue[];
|
|
5
|
+
/** Pixel height of the plot. */
|
|
6
|
+
height?: number;
|
|
7
|
+
/** Formats axis + tooltip values. Defaults to compact notation. */
|
|
8
|
+
valueFormatter?: (value: number) => string;
|
|
9
|
+
/** Accessible title; defaults to a generic description. */
|
|
10
|
+
title?: string;
|
|
11
|
+
className?: string;
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Gradient-fill area chart with x/y axes, faint grid and a pointer/keyboard
|
|
15
|
+
* hover readout. Draws itself in on mount unless reduced-motion is requested.
|
|
16
|
+
*/
|
|
17
|
+
export declare function AreaChart({ series, height, valueFormatter, title, className, }: AreaChartProps): import("react").JSX.Element | null;
|
|
18
|
+
//# sourceMappingURL=AreaChart.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AreaChart.d.ts","sourceRoot":"","sources":["../../../../src/theglobalfuel/components/viz/AreaChart.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,YAAY,EAAE,CAAC;IACvB,gCAAgC;IAChC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,mEAAmE;IACnE,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAC3C,2DAA2D;IAC3D,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,wBAAgB,SAAS,CAAC,EACxB,MAAM,EACN,MAAY,EACZ,cAA8B,EAC9B,KAAK,EACL,SAAS,GACV,EAAE,cAAc,sCA8FhB"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Person } from './lib/types';
|
|
2
|
+
|
|
3
|
+
export interface AvatarStackProps {
|
|
4
|
+
people: Person[];
|
|
5
|
+
/** Maximum avatars shown before collapsing into a "+N" chip. */
|
|
6
|
+
max?: number;
|
|
7
|
+
/** Pixel diameter of each avatar. */
|
|
8
|
+
size?: number;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
/** Overlapping avatars with a "+N" overflow chip. */
|
|
12
|
+
export declare function AvatarStack({ people, max, size, className }: AvatarStackProps): import("react").JSX.Element | null;
|
|
13
|
+
//# sourceMappingURL=AvatarStack.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AvatarStack.d.ts","sourceRoot":"","sources":["../../../../src/theglobalfuel/components/viz/AvatarStack.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE1C,MAAM,WAAW,gBAAgB;IAC/B,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,gEAAgE;IAChE,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,qCAAqC;IACrC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,qDAAqD;AACrD,wBAAgB,WAAW,CAAC,EAAE,MAAM,EAAE,GAAO,EAAE,IAAS,EAAE,SAAS,EAAE,EAAE,gBAAgB,sCAmCtF"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Segment } from './lib/types';
|
|
2
|
+
|
|
3
|
+
export interface BarChartProps {
|
|
4
|
+
/** Bars to render. A `color` on a datum overrides the palette. */
|
|
5
|
+
series: Segment[];
|
|
6
|
+
height?: number;
|
|
7
|
+
valueFormatter?: (value: number) => string;
|
|
8
|
+
/** Color each bar from the categorical palette instead of a single accent. */
|
|
9
|
+
colorful?: boolean;
|
|
10
|
+
/** Hide the value label above each bar. */
|
|
11
|
+
hideValues?: boolean;
|
|
12
|
+
title?: string;
|
|
13
|
+
className?: string;
|
|
14
|
+
}
|
|
15
|
+
/** Vertical bar chart with value labels and an animated grow-in. */
|
|
16
|
+
export declare function BarChart({ series, height, valueFormatter, colorful, hideValues, title, className, }: BarChartProps): import("react").JSX.Element | null;
|
|
17
|
+
//# sourceMappingURL=BarChart.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BarChart.d.ts","sourceRoot":"","sources":["../../../../src/theglobalfuel/components/viz/BarChart.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C,MAAM,WAAW,aAAa;IAC5B,kEAAkE;IAClE,MAAM,EAAE,OAAO,EAAE,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAC3C,8EAA8E;IAC9E,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,2CAA2C;IAC3C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAID,oEAAoE;AACpE,wBAAgB,QAAQ,CAAC,EACvB,MAAM,EACN,MAAY,EACZ,cAA8B,EAC9B,QAAgB,EAChB,UAAkB,EAClB,KAAK,EACL,SAAS,GACV,EAAE,aAAa,sCAoGf"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface CertificateCardProps {
|
|
2
|
+
title: string;
|
|
3
|
+
recipient: string;
|
|
4
|
+
date: string;
|
|
5
|
+
issuer?: string;
|
|
6
|
+
credentialId?: string;
|
|
7
|
+
/** When provided, renders a download button wired to this handler. */
|
|
8
|
+
onDownload?: () => void;
|
|
9
|
+
downloadLabel?: string;
|
|
10
|
+
className?: string;
|
|
11
|
+
}
|
|
12
|
+
/** Landscape certificate tile with seal, recipient, date and download affordance. */
|
|
13
|
+
export declare function CertificateCard({ title, recipient, date, issuer, credentialId, onDownload, downloadLabel, className, }: CertificateCardProps): import("react").JSX.Element;
|
|
14
|
+
//# sourceMappingURL=CertificateCard.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CertificateCard.d.ts","sourceRoot":"","sources":["../../../../src/theglobalfuel/components/viz/CertificateCard.tsx"],"names":[],"mappings":"AAMA,MAAM,WAAW,oBAAoB;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,sEAAsE;IACtE,UAAU,CAAC,EAAE,MAAM,IAAI,CAAC;IACxB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AA6BD,qFAAqF;AACrF,wBAAgB,eAAe,CAAC,EAC9B,KAAK,EACL,SAAS,EACT,IAAI,EACJ,MAAM,EACN,YAAY,EACZ,UAAU,EACV,aAA0B,EAC1B,SAAS,GACV,EAAE,oBAAoB,+BAkDtB"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { Segment } from './lib/types';
|
|
3
|
+
|
|
4
|
+
export interface DonutChartProps {
|
|
5
|
+
segments: Segment[];
|
|
6
|
+
centerLabel?: ReactNode;
|
|
7
|
+
/** Small caption under the center label. */
|
|
8
|
+
centerCaption?: ReactNode;
|
|
9
|
+
/** Pixel diameter (scales down responsively). */
|
|
10
|
+
size?: number;
|
|
11
|
+
/** Ring thickness as a fraction of the radius (0–1). */
|
|
12
|
+
thickness?: number;
|
|
13
|
+
valueFormatter?: (value: number) => string;
|
|
14
|
+
showLegend?: boolean;
|
|
15
|
+
title?: string;
|
|
16
|
+
className?: string;
|
|
17
|
+
}
|
|
18
|
+
/** Donut chart with a center label and an optional legend. */
|
|
19
|
+
export declare function DonutChart({ segments, centerLabel, centerCaption, size, thickness, valueFormatter, showLegend, title, className, }: DonutChartProps): import("react").JSX.Element | null;
|
|
20
|
+
//# sourceMappingURL=DonutChart.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DonutChart.d.ts","sourceRoot":"","sources":["../../../../src/theglobalfuel/components/viz/DonutChart.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAMvC,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C,MAAM,WAAW,eAAe;IAC9B,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,4CAA4C;IAC5C,aAAa,CAAC,EAAE,SAAS,CAAC;IAC1B,iDAAiD;IACjD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,wDAAwD;IACxD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAC3C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAMD,8DAA8D;AAC9D,wBAAgB,UAAU,CAAC,EACzB,QAAQ,EACR,WAAW,EACX,aAAa,EACb,IAAU,EACV,SAAgB,EAChB,cAA8B,EAC9B,UAAiB,EACjB,KAAK,EACL,SAAS,GACV,EAAE,eAAe,sCAyHjB"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { LabeledValue } from './lib/types';
|
|
2
|
+
|
|
3
|
+
export interface HBarFunnelProps {
|
|
4
|
+
/** Ordered funnel stages, largest first. */
|
|
5
|
+
stages: LabeledValue[];
|
|
6
|
+
valueFormatter?: (value: number) => string;
|
|
7
|
+
/** Show conversion % relative to the first stage. */
|
|
8
|
+
showConversion?: boolean;
|
|
9
|
+
className?: string;
|
|
10
|
+
}
|
|
11
|
+
/**
|
|
12
|
+
* Horizontal descending funnel. Each stage renders as a bar whose width is
|
|
13
|
+
* proportional to the top-of-funnel value; the accent fades down the funnel so
|
|
14
|
+
* the drop-off reads at a glance. Built with CSS bars for crisp, real text.
|
|
15
|
+
*/
|
|
16
|
+
export declare function HBarFunnel({ stages, valueFormatter, showConversion, className, }: HBarFunnelProps): import("react").JSX.Element | null;
|
|
17
|
+
//# sourceMappingURL=HBarFunnel.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"HBarFunnel.d.ts","sourceRoot":"","sources":["../../../../src/theglobalfuel/components/viz/HBarFunnel.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAEhD,MAAM,WAAW,eAAe;IAC9B,4CAA4C;IAC5C,MAAM,EAAE,YAAY,EAAE,CAAC;IACvB,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAC3C,qDAAqD;IACrD,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,EACzB,MAAM,EACN,cAA8B,EAC9B,cAAqB,EACrB,SAAS,GACV,EAAE,eAAe,sCAmDjB"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export interface HeatmapCell {
|
|
2
|
+
value: number;
|
|
3
|
+
/** Per-cell max; otherwise the grid-wide max is used. */
|
|
4
|
+
max?: number;
|
|
5
|
+
}
|
|
6
|
+
export interface HeatmapRow {
|
|
7
|
+
label: string;
|
|
8
|
+
cells: HeatmapCell[];
|
|
9
|
+
}
|
|
10
|
+
export interface HeatmapProps {
|
|
11
|
+
rows: HeatmapRow[];
|
|
12
|
+
colLabels?: string[];
|
|
13
|
+
/** Show the intensity legend below the grid. */
|
|
14
|
+
legend?: boolean;
|
|
15
|
+
/** Show the numeric value inside each cell. */
|
|
16
|
+
showValues?: boolean;
|
|
17
|
+
valueFormatter?: (value: number) => string;
|
|
18
|
+
title?: string;
|
|
19
|
+
className?: string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Row × column grid with accent-shaded cells. Rendered as a real table (row +
|
|
23
|
+
* column headers) and horizontally scrollable so wide grids never push the page.
|
|
24
|
+
*/
|
|
25
|
+
export declare function Heatmap({ rows, colLabels, legend, showValues, valueFormatter, title, className, }: HeatmapProps): import("react").JSX.Element | null;
|
|
26
|
+
//# sourceMappingURL=Heatmap.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Heatmap.d.ts","sourceRoot":"","sources":["../../../../src/theglobalfuel/components/viz/Heatmap.tsx"],"names":[],"mappings":"AAKA,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,yDAAyD;IACzD,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,UAAU;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,WAAW,EAAE,CAAC;CACtB;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,UAAU,EAAE,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;IACrB,gDAAgD;IAChD,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,+CAA+C;IAC/C,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAUD;;;GAGG;AACH,wBAAgB,OAAO,CAAC,EACtB,IAAI,EACJ,SAAS,EACT,MAAa,EACb,UAAkB,EAClB,cAAiC,EACjC,KAAK,EACL,SAAS,GACV,EAAE,YAAY,sCAwGd"}
|