@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 @@
|
|
|
1
|
+
{"version":3,"file":"useTheNativeControls.d.ts","sourceRoot":"","sources":["../../../src/theglobalfuel/hooks/useTheNativeControls.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAYH,OAAO,KAAK,EACV,iBAAiB,EACjB,sBAAsB,EACtB,aAAa,EACb,cAAc,EACd,YAAY,EACb,MAAM,kCAAkC,CAAC;AAE1C,MAAM,WAAW,cAAc;IAC7B,mEAAmE;IACnE,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAC5C,qDAAqD;IACrD,MAAM,EAAE,CAAC,IAAI,EAAE,sBAAsB,KAAK,IAAI,CAAC;IAC/C,6DAA6D;IAC7D,KAAK,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,aAAa,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IACvE,8DAA8D;IAC9D,OAAO,EAAE,CAAC,OAAO,EAAE,cAAc,KAAK,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC;IAC9D,mEAAmE;IACnE,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IAC7C,6DAA6D;IAC7D,KAAK,EAAE,CAAC,OAAO,EAAE,YAAY,KAAK,OAAO,CAAC,OAAO,CAAC,CAAC;IACnD,iFAAiF;IACjF,eAAe,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;CACjD;AAED,wBAAgB,oBAAoB,IAAI,cAAc,CA8BrD"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { useCallback as e } from "react";
|
|
2
|
+
import { nativeConfirm as t, nativeCopyText as n, nativeImpact as r, nativeNotify as i, nativeOpenUrl as a, nativeShare as o, nativeToast as s } from "@burdenoff/fe-libs/shared/native";
|
|
3
|
+
//#region src/theglobalfuel/hooks/useTheNativeControls.ts
|
|
4
|
+
function c() {
|
|
5
|
+
return {
|
|
6
|
+
haptic: e((e) => {
|
|
7
|
+
r(e ?? "light");
|
|
8
|
+
}, []),
|
|
9
|
+
notify: e((e) => {
|
|
10
|
+
i(e);
|
|
11
|
+
}, []),
|
|
12
|
+
toast: e(async (e, t) => s(e, t ?? "short"), []),
|
|
13
|
+
confirm: e(async (e) => t(e), []),
|
|
14
|
+
copyText: e(async (e) => n(e), []),
|
|
15
|
+
share: e(async (e) => o(e), []),
|
|
16
|
+
openExternalUrl: e(async (e) => a(e), [])
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
//#endregion
|
|
20
|
+
export { c as useTheNativeControls };
|
|
21
|
+
|
|
22
|
+
//# sourceMappingURL=useTheNativeControls.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTheNativeControls.js","names":[],"sources":["../../../src/theglobalfuel/hooks/useTheNativeControls.ts"],"sourcesContent":["/**\n * Native-control helpers for TheGlobalFuel pages.\n * @module theglobalfuel/hooks\n *\n * Thin wrappers around `@burdenoff/fe-libs/shared/native` so every page can\n * progressively enhance web UI with Capacitor-native behaviour. All helpers\n * no-op gracefully on web / desktop where the native bridge is absent.\n */\n\nimport { useCallback } from 'react';\nimport {\n nativeImpact,\n nativeNotify,\n nativeToast,\n nativeConfirm,\n nativeCopyText,\n nativeShare,\n nativeOpenUrl,\n} from '@burdenoff/fe-libs/shared/native';\nimport type {\n HapticImpactStyle,\n HapticNotificationType,\n ToastDuration,\n ConfirmOptions,\n ShareOptions,\n} from '@burdenoff/fe-libs/shared/native';\n\nexport interface NativeControls {\n /** Light haptic tap for button presses, toggles, tab selection. */\n haptic: (style?: HapticImpactStyle) => void;\n /** Success / warning / error haptic notification. */\n notify: (type: HapticNotificationType) => void;\n /** Native toast (falls back to the shell toaster on web). */\n toast: (message: string, duration?: ToastDuration) => Promise<boolean>;\n /** Native confirm dialog (falls back to `window.confirm`). */\n confirm: (options: ConfirmOptions) => Promise<boolean | null>;\n /** Copy text to native clipboard (falls back to web clipboard). */\n copyText: (text: string) => Promise<boolean>;\n /** Open native share sheet (falls back to web share API). */\n share: (options: ShareOptions) => Promise<boolean>;\n /** Open an external HTTPS URL in SFSafariViewController / Chrome Custom Tabs. */\n openExternalUrl: (url: string) => Promise<void>;\n}\n\nexport function useTheNativeControls(): NativeControls {\n const haptic = useCallback((style?: HapticImpactStyle) => {\n nativeImpact(style ?? 'light');\n }, []);\n\n const notify = useCallback((type: HapticNotificationType) => {\n nativeNotify(type);\n }, []);\n\n const toast = useCallback(async (message: string, duration?: ToastDuration) => {\n return nativeToast(message, duration ?? 'short');\n }, []);\n\n const confirm = useCallback(async (options: ConfirmOptions) => {\n return nativeConfirm(options);\n }, []);\n\n const copyText = useCallback(async (text: string) => {\n return nativeCopyText(text);\n }, []);\n\n const share = useCallback(async (options: ShareOptions) => {\n return nativeShare(options);\n }, []);\n\n const openExternalUrl = useCallback(async (url: string) => {\n return nativeOpenUrl(url);\n }, []);\n\n return { haptic, notify, toast, confirm, copyText, share, openExternalUrl };\n}\n"],"mappings":";;;AA4CA,SAAgB,IAAuC;AA6BrD,QAAO;EAAE,QA5BM,GAAa,MAA8B;AACxD,KAAa,KAAS,QAAQ;KAC7B,EAAE,CAAC;EA0BW,QAxBF,GAAa,MAAiC;AAC3D,KAAa,EAAK;KACjB,EAAE,CAAC;EAsBmB,OApBX,EAAY,OAAO,GAAiB,MACzC,EAAY,GAAS,KAAY,QAAQ,EAC/C,EAAE,CAAC;EAkB0B,SAhBhB,EAAY,OAAO,MAC1B,EAAc,EAAQ,EAC5B,EAAE,CAAC;EAcmC,UAZxB,EAAY,OAAO,MAC3B,EAAe,EAAK,EAC1B,EAAE,CAAC;EAU6C,OARrC,EAAY,OAAO,MACxB,EAAY,EAAQ,EAC1B,EAAE,CAAC;EAMoD,iBAJlC,EAAY,OAAO,MAClC,EAAc,EAAI,EACxB,EAAE,CAAC;EAEqE"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Page-view analytics hook.
|
|
3
|
+
* @module theglobalfuel/hooks
|
|
4
|
+
*
|
|
5
|
+
* Emits a product-specific `theglobalfuel.<page>.viewed` event on mount.
|
|
6
|
+
* This lets the app-shell RybbitSink forward page views under a
|
|
7
|
+
* TheGlobalFuel-scoped event name rather than the generic `pageview` rename.
|
|
8
|
+
*/
|
|
9
|
+
export declare function useThePageView(page: string): void;
|
|
10
|
+
//# sourceMappingURL=useThePageView.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useThePageView.d.ts","sourceRoot":"","sources":["../../../src/theglobalfuel/hooks/useThePageView.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAKH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAMjD"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { useTheAnalytics as e } from "./useTheAnalytics.js";
|
|
2
|
+
import { useEffect as t } from "react";
|
|
3
|
+
//#region src/theglobalfuel/hooks/useThePageView.ts
|
|
4
|
+
function n(n) {
|
|
5
|
+
let { trackPageViewed: r } = e();
|
|
6
|
+
t(() => {
|
|
7
|
+
r(n);
|
|
8
|
+
}, [n, r]);
|
|
9
|
+
}
|
|
10
|
+
//#endregion
|
|
11
|
+
export { n as useThePageView };
|
|
12
|
+
|
|
13
|
+
//# sourceMappingURL=useThePageView.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useThePageView.js","names":[],"sources":["../../../src/theglobalfuel/hooks/useThePageView.ts"],"sourcesContent":["/**\n * Page-view analytics hook.\n * @module theglobalfuel/hooks\n *\n * Emits a product-specific `theglobalfuel.<page>.viewed` event on mount.\n * This lets the app-shell RybbitSink forward page views under a\n * TheGlobalFuel-scoped event name rather than the generic `pageview` rename.\n */\n\nimport { useEffect } from 'react';\nimport { useTheAnalytics } from './useTheAnalytics';\n\nexport function useThePageView(page: string): void {\n const { trackPageViewed } = useTheAnalytics();\n\n useEffect(() => {\n trackPageViewed(page);\n }, [page, trackPageViewed]);\n}\n"],"mappings":";;;AAYA,SAAgB,EAAe,GAAoB;CACjD,IAAM,EAAE,uBAAoB,GAAiB;AAE7C,SAAgB;AACd,IAAgB,EAAK;IACpB,CAAC,GAAM,EAAgB,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TheGlobalFuel — wspace-tags-svc UniversalTag REUSE hooks (Integration C).
|
|
3
|
+
* @module theglobalfuel/hooks/useTheTags
|
|
4
|
+
*
|
|
5
|
+
* The theglobalfuel svc does NOT expose a tags field, so we drive the platform tag
|
|
6
|
+
* assignment store directly (approach (b) in the reuse audit) — no eco-svc
|
|
7
|
+
* change. All operations are composed into the WORKSPACE supergraph:
|
|
8
|
+
* - `getEntityTags(entityType, entityId)` → current assignments (display)
|
|
9
|
+
* - `searchTags(query)` → pick an existing tag
|
|
10
|
+
* - `createTag(input)` → create a new tag (needs a vocabulary)
|
|
11
|
+
* - `assignTag(input)` → link tag ↔ entity
|
|
12
|
+
* - `removeTagAssignment(id)` → unlink
|
|
13
|
+
*
|
|
14
|
+
* `createTag` requires a `vocabularyId`; we resolve a stable, workspace-scoped
|
|
15
|
+
* "theglobalfuel" vocabulary (`getVocabularyByKey`, creating it on first use).
|
|
16
|
+
*
|
|
17
|
+
* Transport reuses `wspaceFetch` from `useTheFiles`. Lives in a separate file;
|
|
18
|
+
* `useTheGlobalFuelApi.ts` is untouched.
|
|
19
|
+
*/
|
|
20
|
+
export interface TheTag {
|
|
21
|
+
id: string;
|
|
22
|
+
label: string;
|
|
23
|
+
color: string | null;
|
|
24
|
+
key: string;
|
|
25
|
+
}
|
|
26
|
+
export interface TheTagAssignment {
|
|
27
|
+
id: string;
|
|
28
|
+
tag: TheTag;
|
|
29
|
+
}
|
|
30
|
+
/** Current tag assignments for an eco entity. */
|
|
31
|
+
export declare const useTheEntityTags: (entityType: string, entityId: string | undefined) => import('@tanstack/react-query').UseQueryResult<NoInfer<TheTagAssignment[]>, Error>;
|
|
32
|
+
/** Search existing tags (enabled only for a non-empty query). */
|
|
33
|
+
export declare const useTheTagSearch: (query: string) => import('@tanstack/react-query').UseQueryResult<NoInfer<TheTag[]>, Error>;
|
|
34
|
+
/** Assign an existing tag to the entity. */
|
|
35
|
+
export declare const useTheAssignTag: (entityType: string, entityId: string) => import('@tanstack/react-query').UseMutationResult<{
|
|
36
|
+
id: string;
|
|
37
|
+
}, Error, string, unknown>;
|
|
38
|
+
/** Remove a tag assignment by its assignment id. */
|
|
39
|
+
export declare const useTheRemoveTagAssignment: (entityType: string, entityId: string) => import('@tanstack/react-query').UseMutationResult<boolean, Error, string, unknown>;
|
|
40
|
+
/** Create a new tag from a free-text label and assign it to the entity. */
|
|
41
|
+
export declare const useTheCreateAndAssignTag: (entityType: string, entityId: string) => import('@tanstack/react-query').UseMutationResult<{
|
|
42
|
+
id: string;
|
|
43
|
+
}, Error, string, unknown>;
|
|
44
|
+
//# sourceMappingURL=useTheTags.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTheTags.d.ts","sourceRoot":"","sources":["../../../src/theglobalfuel/hooks/useTheTags.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAOH,MAAM,WAAW,MAAM;IACrB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;CACb;AAiBD,iDAAiD;AACjD,eAAO,MAAM,gBAAgB,GAAI,YAAY,MAAM,EAAE,UAAU,MAAM,GAAG,SAAS,uFAmBhF,CAAC;AAEF,iEAAiE;AACjE,eAAO,MAAM,eAAe,GAAI,OAAO,MAAM,6EAiB5C,CAAC;AAEF,4CAA4C;AAC5C,eAAO,MAAM,eAAe,GAAI,YAAY,MAAM,EAAE,UAAU,MAAM;QAKZ,MAAM;0BAW7D,CAAC;AAEF,oDAAoD;AACpD,eAAO,MAAM,yBAAyB,GAAI,YAAY,MAAM,EAAE,UAAU,MAAM,uFAgB7E,CAAC;AA+BF,2EAA2E;AAC3E,eAAO,MAAM,wBAAwB,GAAI,YAAY,MAAM,EAAE,UAAU,MAAM;QAalB,MAAM;0BAkBhE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTheTranslation.d.ts","sourceRoot":"","sources":["../../../src/theglobalfuel/hooks/useTheTranslation.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAIH,OAAO,EAAiB,KAAK,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAEtE,wBAAgB,iBAAiB,IAAI,CACnC,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,EAChB,MAAM,CAAC,EAAE,iBAAiB,KACvB,MAAM,CAQV"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { tWithFallback as e } from "../utils/i18n.js";
|
|
2
|
+
import { useCallback as t } from "react";
|
|
3
|
+
import { useI18n as n } from "@burdenoff/fe-libs/shared/providers/shell/I18nProvider";
|
|
4
|
+
//#region src/theglobalfuel/hooks/useTheTranslation.ts
|
|
5
|
+
function r() {
|
|
6
|
+
let { t: r } = n();
|
|
7
|
+
return t((t, n, i) => e(r, t, n, i), [r]);
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
export { r as useTheTranslation };
|
|
11
|
+
|
|
12
|
+
//# sourceMappingURL=useTheTranslation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useTheTranslation.js","names":[],"sources":["../../../src/theglobalfuel/hooks/useTheTranslation.ts"],"sourcesContent":["/**\n * Product-scoped translation helper.\n * @module theglobalfuel/hooks\n *\n * Wraps the shell `useI18n()` hook and falls back to the provided English string\n * when the i18n service has no translation for a key. This lets the MFE render\n * correctly even when translations haven't been fetched yet.\n */\n\nimport { useCallback } from 'react';\nimport { useI18n } from '@burdenoff/fe-libs/shared/providers/shell/I18nProvider';\nimport { tWithFallback, type TranslationParams } from '../utils/i18n';\n\nexport function useTheTranslation(): (\n key: string,\n fallback: string,\n params?: TranslationParams\n) => string {\n const { t } = useI18n();\n\n return useCallback(\n (key: string, fallback: string, params?: TranslationParams): string =>\n tWithFallback(t, key, fallback, params),\n [t]\n );\n}\n"],"mappings":";;;;AAaA,SAAgB,IAIJ;CACV,IAAM,EAAE,SAAM,GAAS;AAEvB,QAAO,GACJ,GAAa,GAAkB,MAC9B,EAAc,GAAG,GAAK,GAAU,EAAO,EACzC,CAAC,EAAE,CACJ"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TheGlobalFuel Module Exports
|
|
3
|
+
* @module theglobalfuel
|
|
4
|
+
*/
|
|
5
|
+
export { TheGlobalFuelRoot } from './TheGlobalFuelRoot';
|
|
6
|
+
export type { TheGlobalFuelRootProps, NavItem, FooterItem, TrendDirection } from './types';
|
|
7
|
+
export { TheGlobalFuelProvider, useTheGlobalFuel } from './context';
|
|
8
|
+
export { useSandboxAssistantTransport, type AssistantTransport, } from './services/createSandboxAssistantTransport';
|
|
9
|
+
export { gatherPageContext } from './utils/pageContext';
|
|
10
|
+
export { cn, joinPath, formatDate, formatDateTime, formatRelativeTime, formatNumber, formatQuantity, formatPercent, formatCo2e, formatCoords, formatEnumLabel, formatUnit, formatVolume, formatMoney, formatTonnesCo2e, isExpired, } from './utils';
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/theglobalfuel/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAGxD,YAAY,EAAE,sBAAsB,EAAE,OAAO,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAG3F,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAGpE,OAAO,EACL,4BAA4B,EAC5B,KAAK,kBAAkB,GACxB,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAGxD,OAAO,EACL,EAAE,EACF,QAAQ,EACR,UAAU,EACV,cAAc,EACd,kBAAkB,EAClB,YAAY,EACZ,cAAc,EACd,aAAa,EACb,UAAU,EACV,YAAY,EACZ,eAAe,EACf,UAAU,EACV,YAAY,EACZ,WAAW,EACX,gBAAgB,EAChB,SAAS,GACV,MAAM,SAAS,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Asset detail — lifecycle, production capture, reserve estimates, emissions,
|
|
3
|
+
* tags & discussion for a single resource asset.
|
|
4
|
+
* @module theglobalfuel/pages/assets
|
|
5
|
+
*
|
|
6
|
+
* Reads `theAsset` (+ nested productionRecords / reserveEstimates) and
|
|
7
|
+
* `theListEmissionRecords`; writes `theRecordProduction`,
|
|
8
|
+
* `theCreateReserveEstimate`, `theTransitionAsset` and `theRetireAsset`. Child
|
|
9
|
+
* creates invalidate the asset query in the hooks, so we just close the dialog
|
|
10
|
+
* and let it refetch. No mock data.
|
|
11
|
+
*/
|
|
12
|
+
export declare function AssetDetailPage(): import("react").JSX.Element;
|
|
13
|
+
//# sourceMappingURL=AssetDetailPage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AssetDetailPage.d.ts","sourceRoot":"","sources":["../../../../src/theglobalfuel/pages/assets/AssetDetailPage.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AA0IH,wBAAgB,eAAe,gCA6/B9B"}
|