@burdenoff/microfe-movethewheels 2026.704.1 → 2026.710.1
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/dist/MoveTheWheelsRoot.js +203 -0
- package/dist/MoveTheWheelsRoutes.js +197 -0
- package/dist/{chunk-BdsCSvBP.js → _virtual/_rolldown/runtime.js} +1 -1
- package/dist/{DataTable-CmdZd6iV.js → components/DataTable.js} +95 -122
- package/dist/components/DocumentsCard.js +89 -0
- package/dist/{FormError-D4T5FWZA.js → components/FormError.js} +2 -2
- package/dist/components/GlassPanel.js +40 -0
- package/dist/{MetricCard-CqU5WsyW.js → components/MetricCard.js} +3 -3
- package/dist/components/Notice.js +28 -0
- package/dist/components/PageLayout.js +157 -0
- package/dist/components/StatusBadge.js +105 -0
- package/dist/components/charts/ChartShell.js +45 -0
- package/dist/components/charts/Sparkline.js +95 -0
- package/dist/components/charts/StatusDonut.js +83 -0
- package/dist/components/charts/TrendChart.js +169 -0
- package/dist/components/charts/VolumeBar.js +99 -0
- package/dist/components/charts/chartTokens.js +30 -0
- package/dist/components/charts/index.js +6 -0
- package/dist/components/index.js +22 -0
- package/dist/components/maps/LogisticsMap.js +47 -0
- package/dist/components/maps/MapCanvas.js +80 -0
- package/dist/components/maps/RouteMap.js +41 -0
- package/dist/components/maps/TrackingMap.js +66 -0
- package/dist/components/maps/index.js +5 -0
- package/dist/components/maps/leaflet-setup.js +56 -0
- package/dist/components/ui.js +38 -0
- package/dist/constants/index.js +53 -0
- package/dist/dev/main.d.ts +1 -0
- package/dist/generated/global-operations.d.ts +1 -0
- package/dist/generated/global-types.d.ts +23526 -0
- package/dist/generated/wspace-operations.d.ts +3704 -0
- package/dist/generated/wspace-types.d.ts +57850 -0
- package/dist/hooks/index.js +12 -0
- package/dist/hooks/useAnalytics.js +352 -0
- package/dist/hooks/useAssistant.js +39 -0
- package/dist/{useCustomers-BQ4AIEAT.js → hooks/useCustomers.js} +27 -26
- package/dist/hooks/useEntityDocuments.js +73 -0
- package/dist/{useFleet-BfA_-VUW.js → hooks/useFleet.js} +70 -69
- package/dist/{useImportExport-7-O8noRJ.js → hooks/useImportExport.js} +10 -9
- package/dist/{useInventory-BO7TSgq_.js → hooks/useInventory.js} +59 -58
- package/dist/{useOrders-B5FV0kcz.js → hooks/useOrders.js} +46 -45
- package/dist/{useReports-hUXb8ryJ.js → hooks/useReports.js} +12 -11
- package/dist/{useRoutes-C_ZCYJ_h.js → hooks/useRoutes.js} +43 -42
- package/dist/hooks/useSettings.js +59 -0
- package/dist/{useTracking-7nd_XOSL.js → hooks/useTracking.js} +35 -34
- package/dist/index.d.ts +4 -0
- package/dist/index.js +39 -794
- package/dist/movethewheels/MoveTheWheelsRoot.d.ts +25 -0
- package/dist/movethewheels/MoveTheWheelsRoutes.d.ts +7 -0
- package/dist/movethewheels/components/DataTable.d.ts +67 -0
- package/dist/movethewheels/components/DocumentsCard.d.ts +8 -0
- package/dist/movethewheels/components/FormError.d.ts +11 -0
- package/dist/movethewheels/components/GlassPanel.d.ts +25 -0
- package/dist/movethewheels/components/MetricCard.d.ts +68 -0
- package/dist/movethewheels/components/Notice.d.ts +24 -0
- package/dist/movethewheels/components/PageLayout.d.ts +86 -0
- package/dist/movethewheels/components/StatusBadge.d.ts +49 -0
- package/dist/movethewheels/components/charts/ChartShell.d.ts +27 -0
- package/dist/movethewheels/components/charts/Sparkline.d.ts +22 -0
- package/dist/movethewheels/components/charts/StatusDonut.d.ts +23 -0
- package/dist/movethewheels/components/charts/TrendChart.d.ts +29 -0
- package/dist/movethewheels/components/charts/VolumeBar.d.ts +22 -0
- package/dist/movethewheels/components/charts/chartTokens.d.ts +29 -0
- package/dist/movethewheels/components/charts/index.d.ts +9 -0
- package/dist/movethewheels/components/index.d.ts +16 -0
- package/dist/movethewheels/components/maps/LogisticsMap.d.ts +30 -0
- package/dist/movethewheels/components/maps/MapCanvas.d.ts +32 -0
- package/dist/movethewheels/components/maps/RouteMap.d.ts +20 -0
- package/dist/movethewheels/components/maps/TrackingMap.d.ts +29 -0
- package/dist/movethewheels/components/maps/index.d.ts +10 -0
- package/dist/movethewheels/components/maps/leaflet-setup.d.ts +31 -0
- package/dist/movethewheels/components/ui.d.ts +22 -0
- package/dist/movethewheels/constants/index.d.ts +20 -0
- package/dist/movethewheels/hooks/index.d.ts +17 -0
- package/dist/movethewheels/hooks/useAnalytics.d.ts +136 -0
- package/dist/movethewheels/hooks/useAssistant.d.ts +17 -0
- package/dist/movethewheels/hooks/useCustomers.d.ts +39 -0
- package/dist/movethewheels/hooks/useEntityDocuments.d.ts +31 -0
- package/dist/movethewheels/hooks/useFleet.d.ts +100 -0
- package/dist/movethewheels/hooks/useImportExport.d.ts +13 -0
- package/dist/movethewheels/hooks/useInventory.d.ts +121 -0
- package/dist/movethewheels/hooks/useOrders.d.ts +53 -0
- package/dist/movethewheels/hooks/useReports.d.ts +39 -0
- package/dist/movethewheels/hooks/useRoutes.d.ts +46 -0
- package/dist/movethewheels/hooks/useSettings.d.ts +17 -0
- package/dist/movethewheels/hooks/useTracking.d.ts +69 -0
- package/dist/movethewheels/index.d.ts +31 -0
- package/dist/movethewheels/pages/AIAssistantPage.d.ts +4 -0
- package/dist/movethewheels/pages/AnalyticsPage.d.ts +8 -0
- package/dist/movethewheels/pages/CreateOrderPage.d.ts +6 -0
- package/dist/movethewheels/pages/CustomerDetailsPage.d.ts +4 -0
- package/dist/movethewheels/pages/CustomersPage.d.ts +4 -0
- package/dist/movethewheels/pages/DashboardPage.d.ts +6 -0
- package/dist/movethewheels/pages/DriverDetailsPage.d.ts +4 -0
- package/dist/movethewheels/pages/DriversPage.d.ts +4 -0
- package/dist/movethewheels/pages/FinancePage.d.ts +10 -0
- package/dist/movethewheels/pages/FleetPage.d.ts +6 -0
- package/dist/movethewheels/pages/ImportExportPage.d.ts +8 -0
- package/dist/movethewheels/pages/InventoryPage.d.ts +4 -0
- package/dist/movethewheels/pages/LiveTrackingPage.d.ts +6 -0
- package/dist/movethewheels/pages/MarketplacePage.d.ts +9 -0
- package/dist/movethewheels/pages/OrderDetailsPage.d.ts +6 -0
- package/dist/movethewheels/pages/OrdersListPage.d.ts +6 -0
- package/dist/movethewheels/pages/ProductDetailsPage.d.ts +4 -0
- package/dist/movethewheels/pages/ProductsPage.d.ts +4 -0
- package/dist/movethewheels/pages/ReportsPage.d.ts +8 -0
- package/dist/movethewheels/pages/RouteDetailsPage.d.ts +4 -0
- package/dist/movethewheels/pages/RoutesPage.d.ts +4 -0
- package/dist/movethewheels/pages/SettingsPage.d.ts +8 -0
- package/dist/movethewheels/pages/TrackingPage.d.ts +6 -0
- package/dist/movethewheels/pages/VehicleDetailsPage.d.ts +4 -0
- package/dist/movethewheels/pages/VehiclesPage.d.ts +4 -0
- package/dist/movethewheels/pages/WarehouseDetailsPage.d.ts +4 -0
- package/dist/movethewheels/pages/WarehousesPage.d.ts +4 -0
- package/dist/movethewheels/providers/MoveTheWheelsProvider.d.ts +16 -0
- package/dist/movethewheels/services/createSandboxAssistantTransport.d.ts +7 -0
- package/dist/movethewheels/store/movethewheelsStore.d.ts +73 -0
- package/dist/movethewheels/types/index.d.ts +667 -0
- package/dist/movethewheels/utils/cn.d.ts +6 -0
- package/dist/movethewheels/utils/download.d.ts +19 -0
- package/dist/movethewheels/utils/formatters.d.ts +60 -0
- package/dist/movethewheels/utils/graphqlClient.d.ts +11 -0
- package/dist/movethewheels/utils/index.d.ts +7 -0
- package/dist/movethewheels/utils/mapMarkers.d.ts +17 -0
- package/dist/movethewheels/utils/navigation.d.ts +23 -0
- package/dist/node_modules/@react-leaflet/core/lib/attribution.js +10 -0
- package/dist/node_modules/@react-leaflet/core/lib/component.js +37 -0
- package/dist/node_modules/@react-leaflet/core/lib/context.js +21 -0
- package/dist/node_modules/@react-leaflet/core/lib/div-overlay.js +13 -0
- package/dist/node_modules/@react-leaflet/core/lib/element.js +28 -0
- package/dist/node_modules/@react-leaflet/core/lib/events.js +12 -0
- package/dist/node_modules/@react-leaflet/core/lib/generic.js +20 -0
- package/dist/node_modules/@react-leaflet/core/lib/grid-layer.js +7 -0
- package/dist/node_modules/@react-leaflet/core/lib/layer.js +21 -0
- package/dist/node_modules/@react-leaflet/core/lib/pane.js +10 -0
- package/dist/node_modules/@react-leaflet/core/lib/path.js +23 -0
- package/dist/node_modules/clsx/dist/clsx.js +16 -0
- package/dist/node_modules/d3-array/src/ascending.js +6 -0
- package/dist/node_modules/d3-array/src/bisect.js +8 -0
- package/dist/node_modules/d3-array/src/bisector.js +41 -0
- package/dist/node_modules/d3-array/src/descending.js +6 -0
- package/dist/node_modules/d3-array/src/max.js +12 -0
- package/dist/node_modules/d3-array/src/min.js +12 -0
- package/dist/node_modules/d3-array/src/number.js +13 -0
- package/dist/node_modules/d3-array/src/quantile.js +23 -0
- package/dist/node_modules/d3-array/src/quickselect.js +24 -0
- package/dist/node_modules/d3-array/src/range.js +8 -0
- package/dist/node_modules/d3-array/src/sort.js +15 -0
- package/dist/node_modules/d3-array/src/ticks.js +32 -0
- package/dist/node_modules/d3-color/src/color.js +289 -0
- package/dist/node_modules/d3-color/src/define.js +11 -0
- package/dist/node_modules/d3-format/src/defaultLocale.js +13 -0
- package/dist/node_modules/d3-format/src/exponent.js +7 -0
- package/dist/node_modules/d3-format/src/formatDecimal.js +11 -0
- package/dist/node_modules/d3-format/src/formatGroup.js +9 -0
- package/dist/node_modules/d3-format/src/formatNumerals.js +10 -0
- package/dist/node_modules/d3-format/src/formatPrefixAuto.js +11 -0
- package/dist/node_modules/d3-format/src/formatRounded.js +10 -0
- package/dist/node_modules/d3-format/src/formatSpecifier.js +27 -0
- package/dist/node_modules/d3-format/src/formatTrim.js +18 -0
- package/dist/node_modules/d3-format/src/formatTypes.js +21 -0
- package/dist/node_modules/d3-format/src/identity.js +6 -0
- package/dist/node_modules/d3-format/src/locale.js +84 -0
- package/dist/node_modules/d3-format/src/precisionFixed.js +7 -0
- package/dist/node_modules/d3-format/src/precisionPrefix.js +7 -0
- package/dist/node_modules/d3-format/src/precisionRound.js +7 -0
- package/dist/node_modules/d3-interpolate/src/array.js +13 -0
- package/dist/node_modules/d3-interpolate/src/basis.js +14 -0
- package/dist/node_modules/d3-interpolate/src/basisClosed.js +11 -0
- package/dist/node_modules/d3-interpolate/src/color.js +23 -0
- package/dist/node_modules/d3-interpolate/src/constant.js +4 -0
- package/dist/node_modules/d3-interpolate/src/date.js +9 -0
- package/dist/node_modules/d3-interpolate/src/number.js +8 -0
- package/dist/node_modules/d3-interpolate/src/numberArray.js +14 -0
- package/dist/node_modules/d3-interpolate/src/object.js +12 -0
- package/dist/node_modules/d3-interpolate/src/piecewise.js +12 -0
- package/dist/node_modules/d3-interpolate/src/rgb.js +17 -0
- package/dist/node_modules/d3-interpolate/src/round.js +8 -0
- package/dist/node_modules/d3-interpolate/src/string.js +26 -0
- package/dist/node_modules/d3-interpolate/src/value.js +16 -0
- package/dist/node_modules/d3-path/src/path.js +63 -0
- package/dist/node_modules/d3-scale/src/band.js +50 -0
- package/dist/node_modules/d3-scale/src/constant.js +8 -0
- package/dist/node_modules/d3-scale/src/continuous.js +71 -0
- package/dist/node_modules/d3-scale/src/diverging.js +80 -0
- package/dist/node_modules/d3-scale/src/identity.js +18 -0
- package/dist/node_modules/d3-scale/src/init.js +27 -0
- package/dist/node_modules/d3-scale/src/linear.js +34 -0
- package/dist/node_modules/d3-scale/src/log.js +75 -0
- package/dist/node_modules/d3-scale/src/nice.js +8 -0
- package/dist/node_modules/d3-scale/src/number.js +6 -0
- package/dist/node_modules/d3-scale/src/ordinal.js +29 -0
- package/dist/node_modules/d3-scale/src/pow.js +35 -0
- package/dist/node_modules/d3-scale/src/quantile.js +35 -0
- package/dist/node_modules/d3-scale/src/quantize.js +31 -0
- package/dist/node_modules/d3-scale/src/radial.js +37 -0
- package/dist/node_modules/d3-scale/src/sequential.js +65 -0
- package/dist/node_modules/d3-scale/src/sequentialQuantile.js +28 -0
- package/dist/node_modules/d3-scale/src/symlog.js +28 -0
- package/dist/node_modules/d3-scale/src/threshold.js +23 -0
- package/dist/node_modules/d3-scale/src/tickFormat.js +29 -0
- package/dist/node_modules/d3-scale/src/time.js +45 -0
- package/dist/node_modules/d3-scale/src/utcTime.js +17 -0
- package/dist/node_modules/d3-shape/src/area.js +53 -0
- package/dist/node_modules/d3-shape/src/array.js +6 -0
- package/dist/node_modules/d3-shape/src/constant.js +8 -0
- package/dist/node_modules/d3-shape/src/curve/basis.js +47 -0
- package/dist/node_modules/d3-shape/src/curve/basisClosed.js +48 -0
- package/dist/node_modules/d3-shape/src/curve/basisOpen.js +44 -0
- package/dist/node_modules/d3-shape/src/curve/bump.js +38 -0
- package/dist/node_modules/d3-shape/src/curve/linear.js +34 -0
- package/dist/node_modules/d3-shape/src/curve/linearClosed.js +23 -0
- package/dist/node_modules/d3-shape/src/curve/monotone.js +92 -0
- package/dist/node_modules/d3-shape/src/curve/natural.js +37 -0
- package/dist/node_modules/d3-shape/src/curve/step.js +45 -0
- package/dist/node_modules/d3-shape/src/line.js +28 -0
- package/dist/node_modules/d3-shape/src/math.js +6 -0
- package/dist/node_modules/d3-shape/src/noop.js +4 -0
- package/dist/node_modules/d3-shape/src/offset/expand.js +13 -0
- package/dist/node_modules/d3-shape/src/offset/none.js +6 -0
- package/dist/node_modules/d3-shape/src/offset/silhouette.js +13 -0
- package/dist/node_modules/d3-shape/src/offset/wiggle.js +19 -0
- package/dist/node_modules/d3-shape/src/order/none.js +7 -0
- package/dist/node_modules/d3-shape/src/path.js +17 -0
- package/dist/node_modules/d3-shape/src/point.js +9 -0
- package/dist/node_modules/d3-shape/src/stack.js +32 -0
- package/dist/node_modules/d3-shape/src/symbol/circle.js +8 -0
- package/dist/node_modules/d3-shape/src/symbol/cross.js +8 -0
- package/dist/node_modules/d3-shape/src/symbol/diamond.js +8 -0
- package/dist/node_modules/d3-shape/src/symbol/square.js +8 -0
- package/dist/node_modules/d3-shape/src/symbol/star.js +13 -0
- package/dist/node_modules/d3-shape/src/symbol/triangle.js +8 -0
- package/dist/node_modules/d3-shape/src/symbol/wye.js +8 -0
- package/dist/node_modules/d3-shape/src/symbol.js +21 -0
- package/dist/node_modules/d3-time/src/day.js +19 -0
- package/dist/node_modules/d3-time/src/duration.js +4 -0
- package/dist/node_modules/d3-time/src/hour.js +17 -0
- package/dist/node_modules/d3-time/src/interval.js +26 -0
- package/dist/node_modules/d3-time/src/millisecond.js +12 -0
- package/dist/node_modules/d3-time/src/minute.js +17 -0
- package/dist/node_modules/d3-time/src/month.js +16 -0
- package/dist/node_modules/d3-time/src/second.js +11 -0
- package/dist/node_modules/d3-time/src/ticks.js +123 -0
- package/dist/node_modules/d3-time/src/week.js +23 -0
- package/dist/node_modules/d3-time/src/year.js +24 -0
- package/dist/node_modules/d3-time-format/src/defaultLocale.js +60 -0
- package/dist/node_modules/d3-time-format/src/locale.js +488 -0
- package/dist/node_modules/decimal.js-light/decimal.js +376 -0
- package/dist/node_modules/eventemitter3/index.js +93 -0
- package/dist/node_modules/fast-equals/dist/es/index.js +265 -0
- package/dist/node_modules/internmap/src/index.js +38 -0
- package/dist/{maps-CtfuCAmh.js → node_modules/leaflet/dist/leaflet-src.js} +885 -1372
- package/dist/node_modules/lodash/_DataView.js +10 -0
- package/dist/node_modules/lodash/_Hash.js +21 -0
- package/dist/node_modules/lodash/_ListCache.js +21 -0
- package/dist/node_modules/lodash/_Map.js +10 -0
- package/dist/node_modules/lodash/_MapCache.js +21 -0
- package/dist/node_modules/lodash/_Promise.js +10 -0
- package/dist/node_modules/lodash/_Set.js +10 -0
- package/dist/node_modules/lodash/_SetCache.js +16 -0
- package/dist/node_modules/lodash/_Stack.js +18 -0
- package/dist/node_modules/lodash/_Symbol.js +9 -0
- package/dist/node_modules/lodash/_Uint8Array.js +9 -0
- package/dist/node_modules/lodash/_WeakMap.js +10 -0
- package/dist/node_modules/lodash/_apply.js +17 -0
- package/dist/node_modules/lodash/_arrayEvery.js +12 -0
- package/dist/node_modules/lodash/_arrayFilter.js +15 -0
- package/dist/node_modules/lodash/_arrayIncludes.js +13 -0
- package/dist/node_modules/lodash/_arrayIncludesWith.js +12 -0
- package/dist/node_modules/lodash/_arrayLikeKeys.js +20 -0
- package/dist/node_modules/lodash/_arrayMap.js +12 -0
- package/dist/node_modules/lodash/_arrayPush.js +12 -0
- package/dist/node_modules/lodash/_arraySome.js +12 -0
- package/dist/node_modules/lodash/_asciiToArray.js +11 -0
- package/dist/node_modules/lodash/_assocIndexOf.js +14 -0
- package/dist/node_modules/lodash/_baseAssignValue.js +18 -0
- package/dist/node_modules/lodash/_baseEach.js +11 -0
- package/dist/node_modules/lodash/_baseEvery.js +16 -0
- package/dist/node_modules/lodash/_baseExtremum.js +17 -0
- package/dist/node_modules/lodash/_baseFindIndex.js +12 -0
- package/dist/node_modules/lodash/_baseFlatten.js +19 -0
- package/dist/node_modules/lodash/_baseFor.js +9 -0
- package/dist/node_modules/lodash/_baseForOwn.js +14 -0
- package/dist/node_modules/lodash/_baseGet.js +16 -0
- package/dist/node_modules/lodash/_baseGetAllKeys.js +15 -0
- package/dist/node_modules/lodash/_baseGetTag.js +15 -0
- package/dist/node_modules/lodash/_baseGt.js +11 -0
- package/dist/node_modules/lodash/_baseHasIn.js +11 -0
- package/dist/node_modules/lodash/_baseIndexOf.js +15 -0
- package/dist/node_modules/lodash/_baseIsArguments.js +14 -0
- package/dist/node_modules/lodash/_baseIsEqual.js +14 -0
- package/dist/node_modules/lodash/_baseIsEqualDeep.js +35 -0
- package/dist/node_modules/lodash/_baseIsMatch.js +31 -0
- package/dist/node_modules/lodash/_baseIsNaN.js +11 -0
- package/dist/node_modules/lodash/_baseIsNative.js +16 -0
- package/dist/node_modules/lodash/_baseIsTypedArray.js +16 -0
- package/dist/node_modules/lodash/_baseIteratee.js +17 -0
- package/dist/node_modules/lodash/_baseKeys.js +17 -0
- package/dist/node_modules/lodash/_baseLt.js +11 -0
- package/dist/node_modules/lodash/_baseMap.js +17 -0
- package/dist/node_modules/lodash/_baseMatches.js +18 -0
- package/dist/node_modules/lodash/_baseMatchesProperty.js +22 -0
- package/dist/node_modules/lodash/_baseOrderBy.js +37 -0
- package/dist/node_modules/lodash/_baseProperty.js +13 -0
- package/dist/node_modules/lodash/_basePropertyDeep.js +15 -0
- package/dist/node_modules/lodash/_baseRange.js +13 -0
- package/dist/node_modules/lodash/_baseRest.js +15 -0
- package/dist/node_modules/lodash/_baseSetToString.js +19 -0
- package/dist/node_modules/lodash/_baseSlice.js +14 -0
- package/dist/node_modules/lodash/_baseSome.js +16 -0
- package/dist/node_modules/lodash/_baseSortBy.js +13 -0
- package/dist/node_modules/lodash/_baseTimes.js +12 -0
- package/dist/node_modules/lodash/_baseToString.js +20 -0
- package/dist/node_modules/lodash/_baseTrim.js +13 -0
- package/dist/node_modules/lodash/_baseUnary.js +13 -0
- package/dist/node_modules/lodash/_baseUniq.js +32 -0
- package/dist/node_modules/lodash/_cacheHas.js +11 -0
- package/dist/node_modules/lodash/_castPath.js +16 -0
- package/dist/node_modules/lodash/_castSlice.js +14 -0
- package/dist/node_modules/lodash/_compareAscending.js +18 -0
- package/dist/node_modules/lodash/_compareMultiple.js +17 -0
- package/dist/node_modules/lodash/_coreJsData.js +9 -0
- package/dist/node_modules/lodash/_createBaseEach.js +18 -0
- package/dist/node_modules/lodash/_createBaseFor.js +17 -0
- package/dist/node_modules/lodash/_createCaseFirst.js +20 -0
- package/dist/node_modules/lodash/_createFind.js +25 -0
- package/dist/node_modules/lodash/_createRange.js +17 -0
- package/dist/node_modules/lodash/_createSet.js +14 -0
- package/dist/node_modules/lodash/_defineProperty.js +15 -0
- package/dist/node_modules/lodash/_equalArrays.js +40 -0
- package/dist/node_modules/lodash/_equalByTag.js +40 -0
- package/dist/node_modules/lodash/_equalObjects.js +37 -0
- package/dist/node_modules/lodash/_freeGlobal.js +8 -0
- package/dist/node_modules/lodash/_getAllKeys.js +15 -0
- package/dist/node_modules/lodash/_getMapData.js +14 -0
- package/dist/node_modules/lodash/_getMatchData.js +22 -0
- package/dist/node_modules/lodash/_getNative.js +15 -0
- package/dist/node_modules/lodash/_getPrototype.js +9 -0
- package/dist/node_modules/lodash/_getRawTag.js +19 -0
- package/dist/node_modules/lodash/_getSymbols.js +15 -0
- package/dist/node_modules/lodash/_getTag.js +26 -0
- package/dist/node_modules/lodash/_getValue.js +11 -0
- package/dist/node_modules/lodash/_hasPath.js +24 -0
- package/dist/node_modules/lodash/_hasUnicode.js +12 -0
- package/dist/node_modules/lodash/_hashClear.js +13 -0
- package/dist/node_modules/lodash/_hashDelete.js +12 -0
- package/dist/node_modules/lodash/_hashGet.js +18 -0
- package/dist/node_modules/lodash/_hashHas.js +14 -0
- package/dist/node_modules/lodash/_hashSet.js +14 -0
- package/dist/node_modules/lodash/_isFlattenable.js +15 -0
- package/dist/node_modules/lodash/_isIndex.js +13 -0
- package/dist/node_modules/lodash/_isIterateeCall.js +18 -0
- package/dist/node_modules/lodash/_isKey.js +16 -0
- package/dist/node_modules/lodash/_isKeyable.js +12 -0
- package/dist/node_modules/lodash/_isMasked.js +16 -0
- package/dist/node_modules/lodash/_isPrototype.js +13 -0
- package/dist/node_modules/lodash/_isStrictComparable.js +13 -0
- package/dist/node_modules/lodash/_listCacheClear.js +11 -0
- package/dist/node_modules/lodash/_listCacheDelete.js +14 -0
- package/dist/node_modules/lodash/_listCacheGet.js +14 -0
- package/dist/node_modules/lodash/_listCacheHas.js +13 -0
- package/dist/node_modules/lodash/_listCacheSet.js +14 -0
- package/dist/node_modules/lodash/_mapCacheClear.js +19 -0
- package/dist/node_modules/lodash/_mapCacheDelete.js +14 -0
- package/dist/node_modules/lodash/_mapCacheGet.js +13 -0
- package/dist/node_modules/lodash/_mapCacheHas.js +13 -0
- package/dist/node_modules/lodash/_mapCacheSet.js +14 -0
- package/dist/node_modules/lodash/_mapToArray.js +14 -0
- package/dist/node_modules/lodash/_matchesStrictComparable.js +13 -0
- package/dist/node_modules/lodash/_memoizeCapped.js +16 -0
- package/dist/node_modules/lodash/_nativeCreate.js +9 -0
- package/dist/node_modules/lodash/_nativeKeys.js +9 -0
- package/dist/node_modules/lodash/_nodeUtil.js +14 -0
- package/dist/node_modules/lodash/_objectToString.js +12 -0
- package/dist/node_modules/lodash/_overArg.js +13 -0
- package/dist/node_modules/lodash/_overRest.js +18 -0
- package/dist/node_modules/lodash/_root.js +10 -0
- package/dist/node_modules/lodash/_setCacheAdd.js +12 -0
- package/dist/node_modules/lodash/_setCacheHas.js +11 -0
- package/dist/node_modules/lodash/_setToArray.js +14 -0
- package/dist/node_modules/lodash/_setToString.js +11 -0
- package/dist/node_modules/lodash/_shortOut.js +19 -0
- package/dist/node_modules/lodash/_stackClear.js +13 -0
- package/dist/node_modules/lodash/_stackDelete.js +12 -0
- package/dist/node_modules/lodash/_stackGet.js +11 -0
- package/dist/node_modules/lodash/_stackHas.js +11 -0
- package/dist/node_modules/lodash/_stackSet.js +21 -0
- package/dist/node_modules/lodash/_strictIndexOf.js +12 -0
- package/dist/node_modules/lodash/_stringToArray.js +15 -0
- package/dist/node_modules/lodash/_stringToPath.js +15 -0
- package/dist/node_modules/lodash/_toKey.js +15 -0
- package/dist/node_modules/lodash/_toSource.js +20 -0
- package/dist/node_modules/lodash/_trimmedEndIndex.js +13 -0
- package/dist/node_modules/lodash/_unicodeToArray.js +22 -0
- package/dist/node_modules/lodash/constant.js +13 -0
- package/dist/node_modules/lodash/debounce.js +55 -0
- package/dist/node_modules/lodash/eq.js +11 -0
- package/dist/node_modules/lodash/every.js +18 -0
- package/dist/node_modules/lodash/find.js +10 -0
- package/dist/node_modules/lodash/findIndex.js +18 -0
- package/dist/node_modules/lodash/flatMap.js +14 -0
- package/dist/node_modules/lodash/get.js +14 -0
- package/dist/node_modules/lodash/hasIn.js +14 -0
- package/dist/node_modules/lodash/identity.js +11 -0
- package/dist/node_modules/lodash/isArguments.js +15 -0
- package/dist/node_modules/lodash/isArray.js +8 -0
- package/dist/node_modules/lodash/isArrayLike.js +14 -0
- package/dist/node_modules/lodash/isBoolean.js +14 -0
- package/dist/node_modules/lodash/isBuffer.js +11 -0
- package/dist/node_modules/lodash/isEqual.js +13 -0
- package/dist/node_modules/lodash/isFunction.js +16 -0
- package/dist/node_modules/lodash/isLength.js +12 -0
- package/dist/node_modules/lodash/isNaN.js +13 -0
- package/dist/node_modules/lodash/isNil.js +11 -0
- package/dist/node_modules/lodash/isNumber.js +14 -0
- package/dist/node_modules/lodash/isObject.js +12 -0
- package/dist/node_modules/lodash/isObjectLike.js +11 -0
- package/dist/node_modules/lodash/isPlainObject.js +19 -0
- package/dist/node_modules/lodash/isString.js +15 -0
- package/dist/node_modules/lodash/isSymbol.js +14 -0
- package/dist/node_modules/lodash/isTypedArray.js +12 -0
- package/dist/node_modules/lodash/keys.js +15 -0
- package/dist/node_modules/lodash/last.js +12 -0
- package/dist/node_modules/lodash/map.js +16 -0
- package/dist/node_modules/lodash/mapValues.js +18 -0
- package/dist/node_modules/lodash/max.js +15 -0
- package/dist/node_modules/lodash/maxBy.js +15 -0
- package/dist/node_modules/lodash/memoize.js +20 -0
- package/dist/node_modules/lodash/min.js +15 -0
- package/dist/node_modules/lodash/minBy.js +15 -0
- package/dist/node_modules/lodash/noop.js +9 -0
- package/dist/node_modules/lodash/now.js +12 -0
- package/dist/node_modules/lodash/property.js +16 -0
- package/dist/node_modules/lodash/range.js +9 -0
- package/dist/node_modules/lodash/some.js +18 -0
- package/dist/node_modules/lodash/sortBy.js +17 -0
- package/dist/node_modules/lodash/stubArray.js +11 -0
- package/dist/node_modules/lodash/stubFalse.js +11 -0
- package/dist/node_modules/lodash/throttle.js +20 -0
- package/dist/node_modules/lodash/toFinite.js +13 -0
- package/dist/node_modules/lodash/toInteger.js +14 -0
- package/dist/node_modules/lodash/toNumber.js +24 -0
- package/dist/node_modules/lodash/toString.js +13 -0
- package/dist/node_modules/lodash/uniqBy.js +14 -0
- package/dist/node_modules/lodash/upperFirst.js +9 -0
- package/dist/node_modules/lucide-react/dist/esm/Icon.js +16 -0
- package/dist/node_modules/lucide-react/dist/esm/createLucideIcon.js +15 -0
- package/dist/node_modules/lucide-react/dist/esm/defaultAttributes.js +14 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/activity.js +8 -0
- package/dist/{arrow-up-VQuGMABN.js → node_modules/lucide-react/dist/esm/icons/arrow-down.js} +2 -8
- package/dist/{arrow-left-1dVWv2dg.js → node_modules/lucide-react/dist/esm/icons/arrow-left.js} +2 -2
- package/dist/{arrow-right-PUCNATnk.js → node_modules/lucide-react/dist/esm/icons/arrow-right.js} +2 -2
- package/dist/node_modules/lucide-react/dist/esm/icons/arrow-up-down.js +22 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/arrow-up.js +11 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/bell.js +11 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/bot.js +34 -0
- package/dist/{box-DW1KNP8j.js → node_modules/lucide-react/dist/esm/icons/box.js} +2 -2
- package/dist/{boxes-D6I00XqA.js → node_modules/lucide-react/dist/esm/icons/boxes.js} +2 -2
- package/dist/node_modules/lucide-react/dist/esm/icons/building-2.js +34 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/building.js +55 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/calendar.js +26 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/car.js +26 -0
- package/dist/{chart-column-BwQ5H9ol.js → node_modules/lucide-react/dist/esm/icons/chart-column.js} +2 -2
- package/dist/node_modules/lucide-react/dist/esm/icons/check.js +8 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-down.js +8 -0
- package/dist/{chevron-left-DzNxoaBG.js → node_modules/lucide-react/dist/esm/icons/chevron-left.js} +2 -2
- package/dist/{chevron-right-CKm3ZC1T.js → node_modules/lucide-react/dist/esm/icons/chevron-right.js} +2 -2
- package/dist/node_modules/lucide-react/dist/esm/icons/chevron-up.js +8 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/chevrons-left.js +11 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/chevrons-right.js +11 -0
- package/dist/{circle-alert-CtBm6oIb.js → node_modules/lucide-react/dist/esm/icons/circle-alert.js} +2 -2
- package/dist/{circle-check-big-H5pLiMBW.js → node_modules/lucide-react/dist/esm/icons/circle-check-big.js} +2 -2
- package/dist/{circle-check-B_Y7FDyR.js → node_modules/lucide-react/dist/esm/icons/circle-check.js} +2 -2
- package/dist/node_modules/lucide-react/dist/esm/icons/circle-x.js +20 -0
- package/dist/{clock-B4-qjGuB.js → node_modules/lucide-react/dist/esm/icons/clock.js} +2 -2
- package/dist/node_modules/lucide-react/dist/esm/icons/coffee.js +22 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/credit-card.js +18 -0
- package/dist/{dollar-sign-CYGHy2oS.js → node_modules/lucide-react/dist/esm/icons/dollar-sign.js} +2 -2
- package/dist/{download-BJonq2ty.js → node_modules/lucide-react/dist/esm/icons/download.js} +2 -2
- package/dist/node_modules/lucide-react/dist/esm/icons/external-link.js +18 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/file-chart-column-increasing.js +26 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/file-spreadsheet.js +30 -0
- package/dist/{file-text-C-cZx58r.js → node_modules/lucide-react/dist/esm/icons/file-text.js} +2 -2
- package/dist/{filter-B_S6WOqr.js → node_modules/lucide-react/dist/esm/icons/filter.js} +2 -2
- package/dist/{fuel-Cjt6IxKr.js → node_modules/lucide-react/dist/esm/icons/fuel.js} +2 -2
- package/dist/node_modules/lucide-react/dist/esm/icons/gauge.js +11 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/globe.js +20 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/info.js +20 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/layout-dashboard.js +38 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/lightbulb.js +18 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/list.js +30 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/mail.js +15 -0
- package/dist/{map-pin-BISLzLwb.js → node_modules/lucide-react/dist/esm/icons/map-pin.js} +2 -2
- package/dist/{map-CO0aWUae.js → node_modules/lucide-react/dist/esm/icons/map.js} +2 -2
- package/dist/{navigation-BFki5UJz.js → node_modules/lucide-react/dist/esm/icons/navigation.js} +2 -2
- package/dist/{package-UyaWiALC.js → node_modules/lucide-react/dist/esm/icons/package.js} +2 -2
- package/dist/node_modules/lucide-react/dist/esm/icons/phone.js +8 -0
- package/dist/{plus-Bk_G-lFC.js → node_modules/lucide-react/dist/esm/icons/plus.js} +2 -2
- package/dist/node_modules/lucide-react/dist/esm/icons/printer.js +22 -0
- package/dist/{refresh-cw-C4-jecjy.js → node_modules/lucide-react/dist/esm/icons/refresh-cw.js} +2 -2
- package/dist/{route-WpCP6F1x.js → node_modules/lucide-react/dist/esm/icons/route.js} +2 -2
- package/dist/{save-CcfoIn2J.js → node_modules/lucide-react/dist/esm/icons/save.js} +2 -2
- package/dist/{search-C3YRxW9e.js → node_modules/lucide-react/dist/esm/icons/search.js} +2 -2
- package/dist/node_modules/lucide-react/dist/esm/icons/send.js +11 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/settings.js +13 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/shield.js +8 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/sparkles.js +26 -0
- package/dist/{square-pen-Dr1X-P2s.js → node_modules/lucide-react/dist/esm/icons/square-pen.js} +2 -2
- package/dist/{star-1Ixfuzai.js → node_modules/lucide-react/dist/esm/icons/star.js} +2 -2
- package/dist/{store-BwU935v5.js → node_modules/lucide-react/dist/esm/icons/store.js} +2 -2
- package/dist/node_modules/lucide-react/dist/esm/icons/tag.js +14 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/thermometer.js +8 -0
- package/dist/{trash-2-CC4KugEJ.js → node_modules/lucide-react/dist/esm/icons/trash-2.js} +2 -2
- package/dist/{trending-up-1brglj1E.js → node_modules/lucide-react/dist/esm/icons/trending-up.js} +2 -2
- package/dist/{triangle-alert-Dh56Yu3-.js → node_modules/lucide-react/dist/esm/icons/triangle-alert.js} +2 -2
- package/dist/{truck-DxhtLfkG.js → node_modules/lucide-react/dist/esm/icons/truck.js} +2 -2
- package/dist/{upload-CLf0JLXW.js → node_modules/lucide-react/dist/esm/icons/upload.js} +2 -2
- package/dist/{user-check-Cx6fHHll.js → node_modules/lucide-react/dist/esm/icons/user-check.js} +2 -2
- package/dist/node_modules/lucide-react/dist/esm/icons/user-minus.js +23 -0
- package/dist/node_modules/lucide-react/dist/esm/icons/user-plus.js +30 -0
- package/dist/{user-B1IjWJtn.js → node_modules/lucide-react/dist/esm/icons/user.js} +2 -2
- package/dist/{users-BKmsb79k.js → node_modules/lucide-react/dist/esm/icons/users.js} +2 -2
- package/dist/{warehouse-DE1irFyJ.js → node_modules/lucide-react/dist/esm/icons/warehouse.js} +2 -2
- package/dist/node_modules/lucide-react/dist/esm/icons/webhook.js +18 -0
- package/dist/{wrench-DTJGFs17.js → node_modules/lucide-react/dist/esm/icons/wrench.js} +2 -2
- package/dist/{x-CvsUGJy1.js → node_modules/lucide-react/dist/esm/icons/x.js} +2 -2
- package/dist/node_modules/lucide-react/dist/esm/icons/zap.js +8 -0
- package/dist/node_modules/lucide-react/dist/esm/shared/src/utils.js +4 -0
- package/dist/node_modules/object-assign/index.js +39 -0
- package/dist/node_modules/prop-types/checkPropTypes.js +44 -0
- package/dist/node_modules/prop-types/factoryWithThrowingShims.js +47 -0
- package/dist/node_modules/prop-types/factoryWithTypeCheckers.js +270 -0
- package/dist/node_modules/prop-types/index.js +14 -0
- package/dist/node_modules/prop-types/lib/ReactPropTypesSecret.js +8 -0
- package/dist/node_modules/prop-types/lib/has.js +8 -0
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js +82 -0
- package/dist/node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js +62 -0
- package/dist/node_modules/prop-types/node_modules/react-is/index.js +10 -0
- package/dist/node_modules/react-is/cjs/react-is.development.js +85 -0
- package/dist/node_modules/react-is/cjs/react-is.production.min.js +63 -0
- package/dist/node_modules/react-is/index.js +10 -0
- package/dist/node_modules/react-leaflet/lib/MapContainer.js +31 -0
- package/dist/node_modules/react-leaflet/lib/Marker.js +14 -0
- package/dist/node_modules/react-leaflet/lib/Polyline.js +14 -0
- package/dist/node_modules/react-leaflet/lib/Popup.js +35 -0
- package/dist/node_modules/react-leaflet/lib/TileLayer.js +16 -0
- package/dist/node_modules/react-leaflet/lib/hooks.js +8 -0
- package/dist/node_modules/react-smooth/es6/Animate.js +372 -0
- package/dist/node_modules/react-smooth/es6/AnimateManager.js +71 -0
- package/dist/node_modules/react-smooth/es6/configUpdate.js +171 -0
- package/dist/node_modules/react-smooth/es6/easing.js +150 -0
- package/dist/node_modules/react-smooth/es6/index.js +7 -0
- package/dist/node_modules/react-smooth/es6/setRafTimeout.js +12 -0
- package/dist/node_modules/react-smooth/es6/util.js +90 -0
- package/dist/node_modules/recharts/es6/cartesian/Area.js +433 -0
- package/dist/node_modules/recharts/es6/cartesian/Bar.js +385 -0
- package/dist/node_modules/recharts/es6/cartesian/Brush.js +497 -0
- package/dist/node_modules/recharts/es6/cartesian/CartesianAxis.js +336 -0
- package/dist/node_modules/recharts/es6/cartesian/CartesianGrid.js +303 -0
- package/dist/node_modules/recharts/es6/cartesian/ErrorBar.js +241 -0
- package/dist/node_modules/recharts/es6/cartesian/Line.js +471 -0
- package/dist/node_modules/recharts/es6/cartesian/ReferenceArea.js +171 -0
- package/dist/node_modules/recharts/es6/cartesian/ReferenceDot.js +176 -0
- package/dist/node_modules/recharts/es6/cartesian/ReferenceLine.js +252 -0
- package/dist/node_modules/recharts/es6/cartesian/XAxis.js +142 -0
- package/dist/node_modules/recharts/es6/cartesian/YAxis.js +141 -0
- package/dist/node_modules/recharts/es6/cartesian/getEquidistantTicks.js +16 -0
- package/dist/node_modules/recharts/es6/cartesian/getTicks.js +119 -0
- package/dist/node_modules/recharts/es6/chart/AccessibilityManager.js +99 -0
- package/dist/node_modules/recharts/es6/chart/AreaChart.js +20 -0
- package/dist/node_modules/recharts/es6/chart/BarChart.js +22 -0
- package/dist/node_modules/recharts/es6/chart/LineChart.js +20 -0
- package/dist/node_modules/recharts/es6/chart/PieChart.js +32 -0
- package/dist/node_modules/recharts/es6/chart/generateCategoricalChart.js +1243 -0
- package/dist/node_modules/recharts/es6/component/Cell.js +7 -0
- package/dist/node_modules/recharts/es6/component/Cursor.js +91 -0
- package/dist/node_modules/recharts/es6/component/DefaultLegendContent.js +235 -0
- package/dist/node_modules/recharts/es6/component/DefaultTooltipContent.js +169 -0
- package/dist/node_modules/recharts/es6/component/Label.js +351 -0
- package/dist/node_modules/recharts/es6/component/LabelList.js +164 -0
- package/dist/node_modules/recharts/es6/component/Legend.js +232 -0
- package/dist/node_modules/recharts/es6/component/ResponsiveContainer.js +185 -0
- package/dist/node_modules/recharts/es6/component/Text.js +223 -0
- package/dist/node_modules/recharts/es6/component/Tooltip.js +180 -0
- package/dist/node_modules/recharts/es6/component/TooltipBoundingBox.js +196 -0
- package/dist/node_modules/recharts/es6/container/Layer.js +38 -0
- package/dist/node_modules/recharts/es6/container/Surface.js +58 -0
- package/dist/node_modules/recharts/es6/context/chartLayoutContext.js +55 -0
- package/dist/node_modules/recharts/es6/polar/Pie.js +433 -0
- package/dist/node_modules/recharts/es6/polar/PolarAngleAxis.js +213 -0
- package/dist/node_modules/recharts/es6/polar/PolarRadiusAxis.js +266 -0
- package/dist/node_modules/recharts/es6/shape/Cross.js +110 -0
- package/dist/node_modules/recharts/es6/shape/Curve.js +134 -0
- package/dist/node_modules/recharts/es6/shape/Dot.js +25 -0
- package/dist/node_modules/recharts/es6/shape/Polygon.js +110 -0
- package/dist/node_modules/recharts/es6/shape/Rectangle.js +203 -0
- package/dist/node_modules/recharts/es6/shape/Sector.js +190 -0
- package/dist/node_modules/recharts/es6/shape/Symbols.js +141 -0
- package/dist/node_modules/recharts/es6/shape/Trapezoid.js +173 -0
- package/dist/node_modules/recharts/es6/util/ActiveShapeUtils.js +179 -0
- package/dist/node_modules/recharts/es6/util/BarUtils.js +110 -0
- package/dist/node_modules/recharts/es6/util/CartesianUtils.js +232 -0
- package/dist/node_modules/recharts/es6/util/ChartUtils.js +560 -0
- package/dist/node_modules/recharts/es6/util/CssPrefixUtils.js +68 -0
- package/dist/node_modules/recharts/es6/util/DOMUtils.js +106 -0
- package/dist/node_modules/recharts/es6/util/DataUtils.js +55 -0
- package/dist/node_modules/recharts/es6/util/DetectReferenceElementsDomain.js +56 -0
- package/dist/node_modules/recharts/es6/util/Events.js +5 -0
- package/dist/node_modules/recharts/es6/util/Global.js +19 -0
- package/dist/node_modules/recharts/es6/util/IfOverflowMatches.js +7 -0
- package/dist/node_modules/recharts/es6/util/LogUtils.js +13 -0
- package/dist/node_modules/recharts/es6/util/PolarUtils.js +196 -0
- package/dist/node_modules/recharts/es6/util/ReactUtils.js +135 -0
- package/dist/node_modules/recharts/es6/util/ReduceCSSCalc.js +179 -0
- package/dist/node_modules/recharts/es6/util/ShallowEqual.js +8 -0
- package/dist/node_modules/recharts/es6/util/TickUtils.js +29 -0
- package/dist/node_modules/recharts/es6/util/calculateViewBox.js +23 -0
- package/dist/node_modules/recharts/es6/util/cursor/getCursorPoints.js +21 -0
- package/dist/node_modules/recharts/es6/util/cursor/getCursorRectangle.js +14 -0
- package/dist/node_modules/recharts/es6/util/cursor/getRadialCursorPoints.js +15 -0
- package/dist/node_modules/recharts/es6/util/getEveryNthWithCondition.js +10 -0
- package/dist/node_modules/recharts/es6/util/getLegendProps.js +86 -0
- package/dist/node_modules/recharts/es6/util/isDomainSpecifiedByUser.js +11 -0
- package/dist/node_modules/recharts/es6/util/payload/getUniqPayload.js +10 -0
- package/dist/node_modules/recharts/es6/util/tooltip/translate.js +85 -0
- package/dist/node_modules/recharts/es6/util/types.js +41 -0
- package/dist/node_modules/recharts-scale/es6/getNiceTickValues.js +130 -0
- package/dist/node_modules/recharts-scale/es6/index.js +1 -0
- package/dist/node_modules/recharts-scale/es6/util/arithmetic.js +30 -0
- package/dist/node_modules/recharts-scale/es6/util/utils.js +77 -0
- package/dist/node_modules/tailwind-merge/dist/bundle-mjs.js +1714 -0
- package/dist/node_modules/tiny-invariant/dist/esm/tiny-invariant.js +11 -0
- package/dist/node_modules/victory-vendor/es/d3-scale.js +51 -0
- package/dist/node_modules/zustand/esm/middleware.js +240 -0
- package/dist/{AIAssistantPage-MWJLAMN_.js → pages/AIAssistantPage.js} +61 -99
- package/dist/{AnalyticsPage-900jpV2T.js → pages/AnalyticsPage.js} +39 -34
- package/dist/{CreateOrderPage-CXbhJLLz.js → pages/CreateOrderPage.js} +97 -94
- package/dist/pages/CustomerDetailsPage.js +567 -0
- package/dist/{CustomersPage-CwtVspuq.js → pages/CustomersPage.js} +39 -67
- package/dist/{DashboardPage-BoswH3ec.js → pages/DashboardPage.js} +166 -165
- package/dist/{DriverDetailsPage-CPO0G8Ki.js → pages/DriverDetailsPage.js} +148 -145
- package/dist/{DriversPage-6Z61dpDI.js → pages/DriversPage.js} +56 -89
- package/dist/{FinancePage-DYadOUzC.js → pages/FinancePage.js} +41 -51
- package/dist/{FleetPage-qWRj7WFO.js → pages/FleetPage.js} +88 -85
- package/dist/{ImportExportPage-BhWGfbH3.js → pages/ImportExportPage.js} +63 -88
- package/dist/{InventoryPage-DbR4Z--d.js → pages/InventoryPage.js} +56 -53
- package/dist/{LiveTrackingPage-5U68u3oA.js → pages/LiveTrackingPage.js} +66 -89
- package/dist/pages/MarketplacePage.js +425 -0
- package/dist/pages/OrderDetailsPage.js +562 -0
- package/dist/pages/OrdersListPage.js +364 -0
- package/dist/{ProductDetailsPage-CWgcRqGR.js → pages/ProductDetailsPage.js} +99 -107
- package/dist/{ProductsPage-CokwDOR2.js → pages/ProductsPage.js} +35 -37
- package/dist/pages/ReportsPage.js +317 -0
- package/dist/pages/RouteDetailsPage.js +646 -0
- package/dist/{RoutesPage-Dqd5Don6.js → pages/RoutesPage.js} +26 -22
- package/dist/{SettingsPage-_6SIlcBX.js → pages/SettingsPage.js} +90 -106
- package/dist/{TrackingPage-Cg0tYGJe.js → pages/TrackingPage.js} +69 -65
- package/dist/{VehicleDetailsPage-BbZlCFPo.js → pages/VehicleDetailsPage.js} +129 -126
- package/dist/{VehiclesPage-BfBEyXGs.js → pages/VehiclesPage.js} +38 -35
- package/dist/{WarehouseDetailsPage-DxNhiaoI.js → pages/WarehouseDetailsPage.js} +140 -137
- package/dist/{WarehousesPage-M3NaBT0z.js → pages/WarehousesPage.js} +35 -40
- package/dist/providers/MoveTheWheelsProvider.js +32 -0
- package/dist/services/createSandboxAssistantTransport.d.ts +1 -0
- package/dist/services/createSandboxAssistantTransport.js +31 -0
- package/dist/src/generated/wspace-operations.js +793 -0
- package/dist/store/movethewheelsStore.js +63 -0
- package/dist/utils/cn.js +8 -0
- package/dist/utils/download.js +22 -0
- package/dist/{formatters-FWJDwTFv.js → utils/formatters.js} +1 -1
- package/dist/utils/graphqlClient.js +84 -0
- package/dist/{mapMarkers-NCV9MRKR.js → utils/mapMarkers.js} +1 -1
- package/dist/utils/navigation.js +6 -0
- package/package.json +5 -1
- package/src/movethewheels/hooks/useRoutes.ts +17 -7
- package/src/movethewheels/index.ts +11 -0
- package/src/movethewheels/services/createSandboxAssistantTransport.ts +67 -0
- package/dist/CustomerDetailsPage-CHzg75Q5.js +0 -615
- package/dist/DocumentsCard-y2ybnAlu.js +0 -169
- package/dist/MarketplacePage-DMH0HNDH.js +0 -426
- package/dist/Notice-BrXJ85dA.js +0 -46
- package/dist/OrderDetailsPage-DRYifXm9.js +0 -588
- package/dist/OrdersListPage-DvICveRv.js +0 -388
- package/dist/PageLayout-j9Zw3wBN.js +0 -2070
- package/dist/ReportsPage-MU8F9DQC.js +0 -377
- package/dist/RouteDetailsPage-BHQbFgI9.js +0 -642
- package/dist/Sparkline-DTGdlxUH.js +0 -16729
- package/dist/StatusBadge-BfiF-nNI.js +0 -152
- package/dist/charts-Dv_zxP7L.js +0 -2018
- package/dist/phone-Bav_V7rR.js +0 -18
- package/dist/useAssistant-B9qBtRKm.js +0 -67
- package/dist/useSettings-BNNzQs_B.js +0 -81
- /package/dist/{index.css → microfe-movethewheels.css} +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useMoveTheWheels as e } from "../providers/MoveTheWheelsProvider.js";
|
|
2
|
+
import { executeGraphQL as t } from "../utils/graphqlClient.js";
|
|
2
3
|
import { useCallback as n, useEffect as r, useMemo as i, useState as a } from "react";
|
|
3
4
|
//#region src/movethewheels/hooks/useOrders.ts
|
|
4
5
|
var o = "\n query ListMovethewheelsOrders($filter: OrderFilterInput, $pagination: PaginationInput) {\n movethewheelsOrders(filter: $filter, pagination: $pagination) {\n id\n orderNumber\n customerId\n orderType\n status\n priority\n pickupAddress\n deliveryAddress\n items\n pricing\n trackingNumber\n specialInstructions\n scheduledDelivery\n vehicleId\n driverId\n createdAt\n updatedAt\n customer {\n name\n email\n phone\n company\n }\n statusHistory {\n status\n notes\n location\n createdAt\n createdBy\n }\n }\n }\n", s = "\n query GetMovethewheelsOrder($id: ID!) {\n movethewheelsOrder(id: $id) {\n id\n orderNumber\n customerId\n orderType\n status\n priority\n pickupAddress\n deliveryAddress\n items\n pricing\n trackingNumber\n specialInstructions\n scheduledDelivery\n vehicleId\n driverId\n createdAt\n updatedAt\n customer {\n name\n email\n phone\n company\n }\n statusHistory {\n status\n notes\n location\n createdAt\n createdBy\n }\n }\n }\n", c = "\n query GetOrderStatsBundle {\n orderStats {\n total\n pending\n inTransit\n delivered\n cancelled\n failed\n }\n financeMetrics {\n revenue {\n totalRevenue\n averageOrderValue\n }\n }\n }\n", l = "\n mutation CreateMovethewheelsOrder($input: CreateOrderInput!) {\n createMovethewheelsOrder(input: $input) {\n id\n orderNumber\n customerId\n orderType\n status\n priority\n pickupAddress\n deliveryAddress\n items\n pricing\n trackingNumber\n specialInstructions\n scheduledDelivery\n vehicleId\n driverId\n createdAt\n updatedAt\n customer {\n name\n email\n phone\n company\n }\n statusHistory {\n status\n notes\n location\n createdAt\n createdBy\n }\n }\n }\n", u = "\n mutation UpdateMovethewheelsOrder($id: ID!, $input: UpdateOrderInput!) {\n updateMovethewheelsOrder(id: $id, input: $input) {\n id\n orderNumber\n customerId\n orderType\n status\n priority\n pickupAddress\n deliveryAddress\n items\n pricing\n trackingNumber\n specialInstructions\n scheduledDelivery\n vehicleId\n driverId\n createdAt\n updatedAt\n customer {\n name\n email\n phone\n company\n }\n statusHistory {\n status\n notes\n location\n createdAt\n createdBy\n }\n }\n }\n", d = "\n mutation UpdateMovethewheelsOrderStatus($id: ID!, $input: UpdateOrderStatusInput!) {\n updateMovethewheelsOrderStatus(id: $id, input: $input) {\n id\n orderNumber\n customerId\n orderType\n status\n priority\n pickupAddress\n deliveryAddress\n items\n pricing\n trackingNumber\n specialInstructions\n scheduledDelivery\n vehicleId\n driverId\n createdAt\n updatedAt\n customer {\n name\n email\n phone\n company\n }\n statusHistory {\n status\n notes\n location\n createdAt\n createdBy\n }\n }\n }\n", f = "\n mutation DeleteMovethewheelsOrder($id: ID!) {\n deleteMovethewheelsOrder(id: $id)\n }\n";
|
|
@@ -115,7 +116,7 @@ function x(s = {}) {
|
|
|
115
116
|
c?.customerId,
|
|
116
117
|
c?.driverId,
|
|
117
118
|
c?.unassigned
|
|
118
|
-
]), { apiGatewayUrl: y, authToken: x, workspaceToken: S, workspaceId: C, tenantId: w, currentUser: T } =
|
|
119
|
+
]), { apiGatewayUrl: y, authToken: x, workspaceToken: S, workspaceId: C, tenantId: w, currentUser: T } = e(), [E, D] = a([]), [O, k] = a(!1), [A, j] = a(!1), [M, N] = a(null), P = i(() => ({
|
|
119
120
|
apiGatewayUrl: y,
|
|
120
121
|
authToken: x,
|
|
121
122
|
workspaceToken: S,
|
|
@@ -132,7 +133,7 @@ function x(s = {}) {
|
|
|
132
133
|
]), F = n(async () => {
|
|
133
134
|
j(!0), N(null);
|
|
134
135
|
try {
|
|
135
|
-
let
|
|
136
|
+
let e = (await t(P, o, {
|
|
136
137
|
filter: {
|
|
137
138
|
status: h?.status ? g(h.status) : void 0,
|
|
138
139
|
priority: h?.priority ? v(h.priority) : void 0,
|
|
@@ -145,8 +146,8 @@ function x(s = {}) {
|
|
|
145
146
|
offset: m
|
|
146
147
|
}
|
|
147
148
|
})).movethewheelsOrders;
|
|
148
|
-
k(
|
|
149
|
-
let n =
|
|
149
|
+
k(e.length === p);
|
|
150
|
+
let n = e.map(b);
|
|
150
151
|
h?.unassigned && (n = n.filter((e) => !e.driverId)), D(n);
|
|
151
152
|
} catch (e) {
|
|
152
153
|
N(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to load orders"));
|
|
@@ -164,27 +165,27 @@ function x(s = {}) {
|
|
|
164
165
|
}, [F]);
|
|
165
166
|
let I = n(() => {
|
|
166
167
|
F();
|
|
167
|
-
}, [F]), L = n(async (
|
|
168
|
-
let n = b((await
|
|
169
|
-
orderNumber:
|
|
170
|
-
orderType: _(
|
|
171
|
-
status: g(
|
|
172
|
-
priority: v(
|
|
173
|
-
customerId:
|
|
174
|
-
pickupAddress:
|
|
175
|
-
deliveryAddress:
|
|
176
|
-
items:
|
|
177
|
-
pricing:
|
|
178
|
-
specialInstructions:
|
|
179
|
-
trackingNumber:
|
|
180
|
-
scheduledDelivery:
|
|
181
|
-
vehicleId:
|
|
182
|
-
driverId:
|
|
168
|
+
}, [F]), L = n(async (e) => {
|
|
169
|
+
let n = b((await t(P, l, { input: {
|
|
170
|
+
orderNumber: e.orderNumber ?? `ORD-${(/* @__PURE__ */ new Date()).getFullYear()}-${Date.now().toString().slice(-6)}`,
|
|
171
|
+
orderType: _(e.orderType),
|
|
172
|
+
status: g(e.status ?? "pending"),
|
|
173
|
+
priority: v(e.priority),
|
|
174
|
+
customerId: e.customerId,
|
|
175
|
+
pickupAddress: e.pickupAddress ?? {},
|
|
176
|
+
deliveryAddress: e.deliveryAddress ?? {},
|
|
177
|
+
items: e.items ?? [],
|
|
178
|
+
pricing: e.pricing ?? null,
|
|
179
|
+
specialInstructions: e.specialInstructions,
|
|
180
|
+
trackingNumber: e.trackingNumber,
|
|
181
|
+
scheduledDelivery: e.scheduledDelivery?.toISOString(),
|
|
182
|
+
vehicleId: e.vehicleId,
|
|
183
|
+
driverId: e.driverId
|
|
183
184
|
} })).createMovethewheelsOrder);
|
|
184
185
|
return D((e) => [n, ...e]), n;
|
|
185
|
-
}, [P]), R = n(async (
|
|
186
|
-
let r = b((await
|
|
187
|
-
id:
|
|
186
|
+
}, [P]), R = n(async (e, n) => {
|
|
187
|
+
let r = b((await t(P, u, {
|
|
188
|
+
id: e,
|
|
188
189
|
input: {
|
|
189
190
|
orderType: n.orderType ? _(n.orderType) : void 0,
|
|
190
191
|
status: n.status ? g(n.status) : void 0,
|
|
@@ -201,15 +202,15 @@ function x(s = {}) {
|
|
|
201
202
|
driverId: n.driverId
|
|
202
203
|
}
|
|
203
204
|
})).updateMovethewheelsOrder);
|
|
204
|
-
return D((
|
|
205
|
-
}, [P]), z = n(async (
|
|
206
|
-
await
|
|
207
|
-
}, [P]), B = n(async (
|
|
208
|
-
let r = b((await
|
|
209
|
-
id:
|
|
205
|
+
return D((t) => t.map((t) => t.id === e ? r : t)), r;
|
|
206
|
+
}, [P]), z = n(async (e) => {
|
|
207
|
+
await t(P, f, { id: e }), D((t) => t.filter((t) => t.id !== e));
|
|
208
|
+
}, [P]), B = n(async (e, n) => {
|
|
209
|
+
let r = b((await t(P, d, {
|
|
210
|
+
id: e,
|
|
210
211
|
input: { status: g(n) }
|
|
211
212
|
})).updateMovethewheelsOrderStatus);
|
|
212
|
-
return D((
|
|
213
|
+
return D((t) => t.map((t) => t.id === e ? r : t)), r;
|
|
213
214
|
}, [P]);
|
|
214
215
|
return {
|
|
215
216
|
orders: E,
|
|
@@ -225,7 +226,7 @@ function x(s = {}) {
|
|
|
225
226
|
};
|
|
226
227
|
}
|
|
227
228
|
function S(o) {
|
|
228
|
-
let { apiGatewayUrl: c, authToken: l, workspaceToken: u, workspaceId: d, tenantId: f, currentUser: p } =
|
|
229
|
+
let { apiGatewayUrl: c, authToken: l, workspaceToken: u, workspaceId: d, tenantId: f, currentUser: p } = e(), [m, h] = a(null), [g, _] = a(!1), [v, y] = a(null), x = i(() => ({
|
|
229
230
|
apiGatewayUrl: c,
|
|
230
231
|
authToken: l,
|
|
231
232
|
workspaceToken: u,
|
|
@@ -246,8 +247,8 @@ function S(o) {
|
|
|
246
247
|
}
|
|
247
248
|
_(!0), y(null);
|
|
248
249
|
try {
|
|
249
|
-
let
|
|
250
|
-
h(
|
|
250
|
+
let e = await t(x, s, { id: o });
|
|
251
|
+
h(e.movethewheelsOrder ? b(e.movethewheelsOrder) : null);
|
|
251
252
|
} catch (e) {
|
|
252
253
|
y(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to load order"));
|
|
253
254
|
} finally {
|
|
@@ -266,7 +267,7 @@ function S(o) {
|
|
|
266
267
|
};
|
|
267
268
|
}
|
|
268
269
|
function C() {
|
|
269
|
-
let { apiGatewayUrl: o, authToken: s, workspaceToken: l, workspaceId: u, tenantId: d, currentUser: f } =
|
|
270
|
+
let { apiGatewayUrl: o, authToken: s, workspaceToken: l, workspaceId: u, tenantId: d, currentUser: f } = e(), [p, m] = a(!1), [h, g] = a(null), [_, v] = a({
|
|
270
271
|
total: 0,
|
|
271
272
|
byStatus: {
|
|
272
273
|
pending: 0,
|
|
@@ -299,23 +300,23 @@ function C() {
|
|
|
299
300
|
]), b = n(async () => {
|
|
300
301
|
m(!0), g(null);
|
|
301
302
|
try {
|
|
302
|
-
let
|
|
303
|
+
let e = await t(y, c);
|
|
303
304
|
v({
|
|
304
|
-
total:
|
|
305
|
+
total: e.orderStats.total,
|
|
305
306
|
byStatus: {
|
|
306
|
-
pending:
|
|
307
|
+
pending: e.orderStats.pending,
|
|
307
308
|
confirmed: 0,
|
|
308
309
|
assigned: 0,
|
|
309
310
|
picked_up: 0,
|
|
310
|
-
in_transit:
|
|
311
|
+
in_transit: e.orderStats.inTransit,
|
|
311
312
|
out_for_delivery: 0,
|
|
312
|
-
delivered:
|
|
313
|
-
cancelled:
|
|
314
|
-
failed:
|
|
313
|
+
delivered: e.orderStats.delivered,
|
|
314
|
+
cancelled: e.orderStats.cancelled,
|
|
315
|
+
failed: e.orderStats.failed
|
|
315
316
|
},
|
|
316
|
-
totalRevenue:
|
|
317
|
+
totalRevenue: e.financeMetrics.revenue.totalRevenue,
|
|
317
318
|
todayOrders: 0,
|
|
318
|
-
avgOrderValue:
|
|
319
|
+
avgOrderValue: e.financeMetrics.revenue.averageOrderValue
|
|
319
320
|
});
|
|
320
321
|
} catch (e) {
|
|
321
322
|
g(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to load order stats"));
|
|
@@ -332,4 +333,4 @@ function C() {
|
|
|
332
333
|
};
|
|
333
334
|
}
|
|
334
335
|
//#endregion
|
|
335
|
-
export {
|
|
336
|
+
export { S as useOrder, C as useOrderStats, x as useOrders };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useMoveTheWheels as e } from "../providers/MoveTheWheelsProvider.js";
|
|
2
|
+
import { executeGraphQL as t } from "../utils/graphqlClient.js";
|
|
2
3
|
import { useCallback as n, useEffect as r, useMemo as i, useState as a } from "react";
|
|
3
4
|
//#region src/movethewheels/hooks/useReports.ts
|
|
4
5
|
var o = "\n id\n name\n description\n type\n status\n schedule\n lastGenerated\n createdAt\n updatedAt\n", s = `
|
|
@@ -25,7 +26,7 @@ var o = "\n id\n name\n description\n type\n status\n schedule\n lastGene
|
|
|
25
26
|
}
|
|
26
27
|
`;
|
|
27
28
|
function u(o = {}) {
|
|
28
|
-
let { limit: u = 100, offset: d = 0 } = o, { apiGatewayUrl: f, authToken: p, workspaceToken: m, workspaceId: h, tenantId: g, currentUser: _ } =
|
|
29
|
+
let { limit: u = 100, offset: d = 0 } = o, { apiGatewayUrl: f, authToken: p, workspaceToken: m, workspaceId: h, tenantId: g, currentUser: _ } = e(), [v, y] = a([]), [b, x] = a(!1), [S, C] = a(!1), [w, T] = a(null), E = i(() => ({
|
|
29
30
|
apiGatewayUrl: f,
|
|
30
31
|
authToken: p,
|
|
31
32
|
workspaceToken: m,
|
|
@@ -42,11 +43,11 @@ function u(o = {}) {
|
|
|
42
43
|
]), D = n(async () => {
|
|
43
44
|
C(!0), T(null);
|
|
44
45
|
try {
|
|
45
|
-
let
|
|
46
|
+
let e = await t(E, s, { pagination: {
|
|
46
47
|
limit: u,
|
|
47
48
|
offset: d
|
|
48
49
|
} });
|
|
49
|
-
x(
|
|
50
|
+
x(e.movethewheelsReports.length === u), y(e.movethewheelsReports);
|
|
50
51
|
} catch (e) {
|
|
51
52
|
T(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to load reports"));
|
|
52
53
|
} finally {
|
|
@@ -67,18 +68,18 @@ function u(o = {}) {
|
|
|
67
68
|
refetch: n(() => {
|
|
68
69
|
D();
|
|
69
70
|
}, [D]),
|
|
70
|
-
createReport: n(async (
|
|
71
|
-
let n = (await
|
|
71
|
+
createReport: n(async (e) => {
|
|
72
|
+
let n = (await t(E, c, { input: e })).createMovethewheelsReport;
|
|
72
73
|
return y((e) => [n, ...e]), n;
|
|
73
74
|
}, [E]),
|
|
74
|
-
generateReport: n(async (
|
|
75
|
-
let r = (await
|
|
76
|
-
reportId:
|
|
75
|
+
generateReport: n(async (e, n) => {
|
|
76
|
+
let r = (await t(E, l, { input: {
|
|
77
|
+
reportId: e,
|
|
77
78
|
parameters: n
|
|
78
79
|
} })).generateMovethewheelsReport;
|
|
79
|
-
return y((
|
|
80
|
+
return y((t) => t.map((t) => t.id === e ? r.report : t)), r;
|
|
80
81
|
}, [E])
|
|
81
82
|
};
|
|
82
83
|
}
|
|
83
84
|
//#endregion
|
|
84
|
-
export { u as
|
|
85
|
+
export { u as useReports };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useMoveTheWheels as e } from "../providers/MoveTheWheelsProvider.js";
|
|
2
|
+
import { executeGraphQL as t } from "../utils/graphqlClient.js";
|
|
2
3
|
import { useCallback as n, useEffect as r, useMemo as i, useState as a } from "react";
|
|
3
4
|
//#region src/movethewheels/hooks/useRoutes.ts
|
|
4
5
|
var o = "\n query ListRoutes($filter: RouteFilterInput, $pagination: PaginationInput) {\n routes(filter: $filter, pagination: $pagination) {\n id\n name\n status\n shipmentId\n vehicleId\n driverId\n waypoints\n estimatedDistance\n estimatedDuration\n fuelCost\n actualDistance\n actualDuration\n createdAt\n }\n }\n", s = "\n query GetRoute($id: ID!) {\n route(id: $id) {\n id\n name\n status\n shipmentId\n vehicleId\n driverId\n waypoints\n estimatedDistance\n estimatedDuration\n fuelCost\n actualDistance\n actualDuration\n createdAt\n }\n }\n", c = "\n mutation CreateRoute($input: CreateRouteInput!) {\n createRoute(input: $input) {\n id\n name\n status\n shipmentId\n vehicleId\n driverId\n waypoints\n estimatedDistance\n estimatedDuration\n fuelCost\n actualDistance\n actualDuration\n createdAt\n }\n }\n", l = "\n mutation UpdateRoute($id: ID!, $input: UpdateRouteInput!) {\n updateRoute(id: $id, input: $input) {\n id\n name\n status\n shipmentId\n vehicleId\n driverId\n waypoints\n estimatedDistance\n estimatedDuration\n fuelCost\n actualDistance\n actualDuration\n createdAt\n }\n }\n", u = "\n mutation DeleteRoute($id: ID!) {\n deleteRoute(id: $id)\n }\n", d = "\n mutation OptimizeRoute($id: ID!) {\n optimizeRoute(id: $id) {\n id\n name\n status\n shipmentId\n vehicleId\n driverId\n waypoints\n estimatedDistance\n estimatedDuration\n fuelCost\n actualDistance\n actualDuration\n createdAt\n }\n }\n";
|
|
@@ -20,19 +21,19 @@ function p(e) {
|
|
|
20
21
|
}
|
|
21
22
|
function m(e) {
|
|
22
23
|
return Array.isArray(e) ? e.map((e, t) => {
|
|
23
|
-
let n = e ?? {};
|
|
24
|
+
let n = e ?? {}, r = n.address, i = r && typeof r == "object" ? r : {}, a = typeof r == "string" ? r : void 0;
|
|
24
25
|
return {
|
|
25
26
|
id: String(n.id ?? `stop-${t + 1}`),
|
|
26
27
|
orderId: String(n.orderId ?? ""),
|
|
27
28
|
sequence: Number(n.sequence ?? t + 1),
|
|
28
29
|
address: {
|
|
29
|
-
street: String(n.street ?? ""),
|
|
30
|
-
city: String(n.city ?? ""),
|
|
31
|
-
state: String(n.state ?? ""),
|
|
32
|
-
postalCode: String(n.postalCode ?? ""),
|
|
33
|
-
country: String(n.country ?? ""),
|
|
34
|
-
latitude: Number(n.latitude ?? 0),
|
|
35
|
-
longitude: Number(n.longitude ?? 0)
|
|
30
|
+
street: String(i.street ?? n.street ?? a ?? ""),
|
|
31
|
+
city: String(i.city ?? n.city ?? ""),
|
|
32
|
+
state: String(i.state ?? n.state ?? ""),
|
|
33
|
+
postalCode: String(i.postalCode ?? n.postalCode ?? ""),
|
|
34
|
+
country: String(i.country ?? n.country ?? ""),
|
|
35
|
+
latitude: Number(i.latitude ?? n.latitude ?? n.lat ?? 0),
|
|
36
|
+
longitude: Number(i.longitude ?? n.longitude ?? n.lng ?? 0)
|
|
36
37
|
},
|
|
37
38
|
type: n.type === "pickup" ? "pickup" : "delivery",
|
|
38
39
|
scheduledTime: n.scheduledTime ? new Date(String(n.scheduledTime)) : /* @__PURE__ */ new Date(),
|
|
@@ -63,16 +64,16 @@ function h(e) {
|
|
|
63
64
|
};
|
|
64
65
|
}
|
|
65
66
|
function g() {
|
|
66
|
-
let { apiGatewayUrl:
|
|
67
|
+
let { apiGatewayUrl: t, authToken: n, workspaceToken: r, workspaceId: a, tenantId: o, currentUser: s } = e();
|
|
67
68
|
return i(() => ({
|
|
68
|
-
apiGatewayUrl:
|
|
69
|
+
apiGatewayUrl: t,
|
|
69
70
|
authToken: n,
|
|
70
71
|
workspaceToken: r,
|
|
71
72
|
workspaceId: a,
|
|
72
73
|
tenantId: o,
|
|
73
74
|
actorId: s?.id
|
|
74
75
|
}), [
|
|
75
|
-
|
|
76
|
+
t,
|
|
76
77
|
n,
|
|
77
78
|
r,
|
|
78
79
|
a,
|
|
@@ -80,11 +81,11 @@ function g() {
|
|
|
80
81
|
s?.id
|
|
81
82
|
]);
|
|
82
83
|
}
|
|
83
|
-
function _(
|
|
84
|
-
let { driverId: i, vehicleId: s, status: f, limit: m = 500, offset: _ = 0 } =
|
|
84
|
+
function _(e = {}) {
|
|
85
|
+
let { driverId: i, vehicleId: s, status: f, limit: m = 500, offset: _ = 0 } = e, v = g(), [y, b] = a([]), [x, S] = a(!1), [C, w] = a(!1), [T, E] = a(null), D = n(async () => {
|
|
85
86
|
w(!0), E(null);
|
|
86
87
|
try {
|
|
87
|
-
let
|
|
88
|
+
let e = await t(v, o, {
|
|
88
89
|
filter: {
|
|
89
90
|
driverId: i,
|
|
90
91
|
vehicleId: s,
|
|
@@ -95,7 +96,7 @@ function _(t = {}) {
|
|
|
95
96
|
offset: _
|
|
96
97
|
}
|
|
97
98
|
});
|
|
98
|
-
S(
|
|
99
|
+
S(e.routes.length === m), b(e.routes.map(h));
|
|
99
100
|
} catch (e) {
|
|
100
101
|
E(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to load routes"));
|
|
101
102
|
} finally {
|
|
@@ -114,24 +115,24 @@ function _(t = {}) {
|
|
|
114
115
|
}, [D]);
|
|
115
116
|
let O = n(() => {
|
|
116
117
|
D();
|
|
117
|
-
}, [D]), k = n(async (
|
|
118
|
-
let n = h((await
|
|
119
|
-
name:
|
|
120
|
-
status: p(
|
|
118
|
+
}, [D]), k = n(async (e) => {
|
|
119
|
+
let n = h((await t(v, c, { input: {
|
|
120
|
+
name: e.name ?? `Route ${(/* @__PURE__ */ new Date()).toLocaleDateString()}`,
|
|
121
|
+
status: p(e.status),
|
|
121
122
|
shipmentId: void 0,
|
|
122
|
-
vehicleId:
|
|
123
|
-
driverId:
|
|
124
|
-
waypoints:
|
|
125
|
-
estimatedDistance:
|
|
126
|
-
estimatedDuration:
|
|
127
|
-
fuelCost:
|
|
128
|
-
actualDistance:
|
|
129
|
-
actualDuration:
|
|
123
|
+
vehicleId: e.vehicleId,
|
|
124
|
+
driverId: e.driverId,
|
|
125
|
+
waypoints: e.stops ?? [],
|
|
126
|
+
estimatedDistance: e.distance ?? 0,
|
|
127
|
+
estimatedDuration: e.estimatedDuration ?? 0,
|
|
128
|
+
fuelCost: e.fuelCost,
|
|
129
|
+
actualDistance: e.distance,
|
|
130
|
+
actualDuration: e.actualDuration
|
|
130
131
|
} })).createRoute);
|
|
131
132
|
return b((e) => [n, ...e]), n;
|
|
132
|
-
}, [v]), A = n(async (
|
|
133
|
-
let r = h((await
|
|
134
|
-
id:
|
|
133
|
+
}, [v]), A = n(async (e, n) => {
|
|
134
|
+
let r = h((await t(v, l, {
|
|
135
|
+
id: e,
|
|
135
136
|
input: {
|
|
136
137
|
name: n.name,
|
|
137
138
|
status: p(n.status),
|
|
@@ -146,15 +147,15 @@ function _(t = {}) {
|
|
|
146
147
|
actualDuration: n.actualDuration
|
|
147
148
|
}
|
|
148
149
|
})).updateRoute);
|
|
149
|
-
return b((
|
|
150
|
-
}, [v]), j = n(async (
|
|
151
|
-
await
|
|
152
|
-
}, [v]), M = n(async (
|
|
150
|
+
return b((t) => t.map((t) => t.id === e ? r : t)), r;
|
|
151
|
+
}, [v]), j = n(async (e) => {
|
|
152
|
+
await t(v, u, { id: e }), b((t) => t.filter((t) => t.id !== e));
|
|
153
|
+
}, [v]), M = n(async (e) => {
|
|
153
154
|
let n = {
|
|
154
|
-
...h((await
|
|
155
|
+
...h((await t(v, d, { id: e })).optimizeRoute),
|
|
155
156
|
optimized: !0
|
|
156
157
|
};
|
|
157
|
-
return b((
|
|
158
|
+
return b((t) => t.map((t) => t.id === e ? n : t)), n;
|
|
158
159
|
}, [v]), N = n(async (e, t, n) => {
|
|
159
160
|
let r = y.find((t) => t.id === e);
|
|
160
161
|
if (!r) throw Error("Route not found");
|
|
@@ -182,22 +183,22 @@ function _(t = {}) {
|
|
|
182
183
|
updateStopStatus: N
|
|
183
184
|
};
|
|
184
185
|
}
|
|
185
|
-
function v(
|
|
186
|
+
function v(e) {
|
|
186
187
|
let i = g(), [o, c] = a(null), [l, u] = a(!1), [d, f] = a(null), p = n(async () => {
|
|
187
|
-
if (!
|
|
188
|
+
if (!e) {
|
|
188
189
|
c(null);
|
|
189
190
|
return;
|
|
190
191
|
}
|
|
191
192
|
u(!0), f(null);
|
|
192
193
|
try {
|
|
193
|
-
let n = await
|
|
194
|
+
let n = await t(i, s, { id: e });
|
|
194
195
|
c(n.route ? h(n.route) : null);
|
|
195
196
|
} catch (e) {
|
|
196
197
|
f(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to load route"));
|
|
197
198
|
} finally {
|
|
198
199
|
u(!1);
|
|
199
200
|
}
|
|
200
|
-
}, [i,
|
|
201
|
+
}, [i, e]);
|
|
201
202
|
return r(() => {
|
|
202
203
|
p();
|
|
203
204
|
}, [p]), {
|
|
@@ -229,4 +230,4 @@ function y() {
|
|
|
229
230
|
};
|
|
230
231
|
}
|
|
231
232
|
//#endregion
|
|
232
|
-
export {
|
|
233
|
+
export { v as useRoute, y as useRouteStats, _ as useRoutes };
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import { useMoveTheWheels as e } from "../providers/MoveTheWheelsProvider.js";
|
|
2
|
+
import { executeGraphQL as t } from "../utils/graphqlClient.js";
|
|
3
|
+
import { useCallback as n, useEffect as r, useMemo as i, useState as a } from "react";
|
|
4
|
+
//#region src/movethewheels/hooks/useSettings.ts
|
|
5
|
+
var o = "\n query MovethewheelsModuleSettings {\n moduleSettings {\n preferences\n updatedAt\n workspaceId\n }\n }\n", s = "\n mutation UpdateMovethewheelsModuleSettings($input: UpdateMovethewheelsModuleSettingsInput!) {\n updateModuleSettings(input: $input) {\n preferences\n updatedAt\n workspaceId\n }\n }\n";
|
|
6
|
+
function c() {
|
|
7
|
+
let { apiGatewayUrl: c, authToken: l, workspaceToken: u, workspaceId: d, tenantId: f, currentUser: p } = e(), [m, h] = a(null), [g, _] = a(!1), [v, y] = a(!1), [b, x] = a(null), S = i(() => ({
|
|
8
|
+
apiGatewayUrl: c,
|
|
9
|
+
authToken: l,
|
|
10
|
+
workspaceToken: u,
|
|
11
|
+
workspaceId: d,
|
|
12
|
+
tenantId: f,
|
|
13
|
+
actorId: p?.id
|
|
14
|
+
}), [
|
|
15
|
+
c,
|
|
16
|
+
l,
|
|
17
|
+
u,
|
|
18
|
+
d,
|
|
19
|
+
f,
|
|
20
|
+
p?.id
|
|
21
|
+
]), C = n(async () => {
|
|
22
|
+
_(!0), x(null);
|
|
23
|
+
try {
|
|
24
|
+
h((await t(S, o)).moduleSettings);
|
|
25
|
+
} catch (e) {
|
|
26
|
+
x(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to load settings"));
|
|
27
|
+
} finally {
|
|
28
|
+
_(!1);
|
|
29
|
+
}
|
|
30
|
+
}, [S]);
|
|
31
|
+
r(() => {
|
|
32
|
+
C();
|
|
33
|
+
}, [C]);
|
|
34
|
+
let w = n(() => {
|
|
35
|
+
C();
|
|
36
|
+
}, [C]), T = n(async (e) => {
|
|
37
|
+
y(!0), x(null);
|
|
38
|
+
try {
|
|
39
|
+
let n = await t(S, s, { input: { preferences: e } });
|
|
40
|
+
return h(n.updateModuleSettings), n.updateModuleSettings;
|
|
41
|
+
} catch (e) {
|
|
42
|
+
let t = e instanceof Error ? e : /* @__PURE__ */ Error("Failed to save settings");
|
|
43
|
+
throw x(t), t;
|
|
44
|
+
} finally {
|
|
45
|
+
y(!1);
|
|
46
|
+
}
|
|
47
|
+
}, [S]);
|
|
48
|
+
return {
|
|
49
|
+
settings: m,
|
|
50
|
+
preferences: i(() => m?.preferences ?? {}, [m]),
|
|
51
|
+
isLoading: g,
|
|
52
|
+
isSaving: v,
|
|
53
|
+
error: b,
|
|
54
|
+
refetch: w,
|
|
55
|
+
savePreferences: T
|
|
56
|
+
};
|
|
57
|
+
}
|
|
58
|
+
//#endregion
|
|
59
|
+
export { c as useModuleSettings };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
1
|
+
import { useMoveTheWheels as e } from "../providers/MoveTheWheelsProvider.js";
|
|
2
|
+
import { executeGraphQL as t } from "../utils/graphqlClient.js";
|
|
3
|
+
import { useOrder as n, useOrders as r } from "./useOrders.js";
|
|
4
|
+
import { useDriver as i, useDrivers as a, useVehicle as o, useVehicles as s } from "./useFleet.js";
|
|
4
5
|
import { useCallback as c, useEffect as l, useMemo as u, useState as d } from "react";
|
|
5
6
|
//#region src/movethewheels/hooks/useTracking.ts
|
|
6
7
|
var f = "\n query ListShipments($filter: ShipmentFilterInput, $pagination: PaginationInput) {\n shipments(filter: $filter, pagination: $pagination) {\n id\n shipmentNumber\n orderId\n status\n estimatedDelivery\n }\n }\n", p = "\n query GetShipment($id: ID!) {\n shipment(id: $id) {\n id\n shipmentNumber\n orderId\n status\n estimatedDelivery\n trackingEvents {\n id\n shipmentId\n eventType\n location\n details\n timestamp\n }\n }\n }\n", m = "\n query GetOrderTracking($orderId: ID!) {\n orderTracking(orderId: $orderId) {\n id\n shipmentId\n eventType\n location\n details\n timestamp\n }\n }\n", h = "\n query GetActiveDeliveries {\n activeDeliveries {\n id\n shipmentNumber\n orderId\n status\n estimatedDelivery\n }\n }\n", g = "\n query GetTrackingAlerts {\n trackingAlerts {\n shipmentId\n shipmentNumber\n alertType\n message\n }\n }\n";
|
|
@@ -25,16 +26,16 @@ function _(e, t) {
|
|
|
25
26
|
};
|
|
26
27
|
}
|
|
27
28
|
function v() {
|
|
28
|
-
let { apiGatewayUrl:
|
|
29
|
+
let { apiGatewayUrl: t, authToken: n, workspaceToken: r, workspaceId: i, tenantId: a, currentUser: o } = e();
|
|
29
30
|
return u(() => ({
|
|
30
|
-
apiGatewayUrl:
|
|
31
|
+
apiGatewayUrl: t,
|
|
31
32
|
authToken: n,
|
|
32
33
|
workspaceToken: r,
|
|
33
34
|
workspaceId: i,
|
|
34
35
|
tenantId: a,
|
|
35
36
|
actorId: o?.id
|
|
36
37
|
}), [
|
|
37
|
-
|
|
38
|
+
t,
|
|
38
39
|
n,
|
|
39
40
|
r,
|
|
40
41
|
i,
|
|
@@ -42,11 +43,11 @@ function v() {
|
|
|
42
43
|
o?.id
|
|
43
44
|
]);
|
|
44
45
|
}
|
|
45
|
-
function y(
|
|
46
|
-
let { entityId: n, entityType: r } =
|
|
46
|
+
function y(e = {}) {
|
|
47
|
+
let { entityId: n, entityType: r } = e, i = v(), [a, o] = d([]), [s, u] = d(!1), [p, m] = d(null), h = c(async () => {
|
|
47
48
|
u(!0), m(null);
|
|
48
49
|
try {
|
|
49
|
-
o((await
|
|
50
|
+
o((await t(i, f, { pagination: {
|
|
50
51
|
limit: 200,
|
|
51
52
|
offset: 0
|
|
52
53
|
} })).shipments.map((e) => ({
|
|
@@ -84,22 +85,22 @@ function y(t = {}) {
|
|
|
84
85
|
refetch: () => void h()
|
|
85
86
|
};
|
|
86
87
|
}
|
|
87
|
-
function b(
|
|
88
|
-
let
|
|
89
|
-
if (!
|
|
88
|
+
function b(e) {
|
|
89
|
+
let r = v(), { order: i } = n(e), [a, o] = d(null), [s, u] = d(!1), [f, p] = d(null), h = c(async () => {
|
|
90
|
+
if (!e) {
|
|
90
91
|
o(null);
|
|
91
92
|
return;
|
|
92
93
|
}
|
|
93
94
|
u(!0), p(null);
|
|
94
95
|
try {
|
|
95
|
-
let
|
|
96
|
-
o(i ? _(i,
|
|
96
|
+
let n = await t(r, m, { orderId: e }), i = n.orderTracking[n.orderTracking.length - 1];
|
|
97
|
+
o(i ? _(i, e) : null);
|
|
97
98
|
} catch (e) {
|
|
98
99
|
p(e instanceof Error ? e : /* @__PURE__ */ Error("Failed to load order tracking"));
|
|
99
100
|
} finally {
|
|
100
101
|
u(!1);
|
|
101
102
|
}
|
|
102
|
-
}, [
|
|
103
|
+
}, [r, e]);
|
|
103
104
|
return l(() => {
|
|
104
105
|
h();
|
|
105
106
|
}, [h]), {
|
|
@@ -111,7 +112,7 @@ function b(t) {
|
|
|
111
112
|
};
|
|
112
113
|
}
|
|
113
114
|
function x(e) {
|
|
114
|
-
let { vehicle: t, isLoading: n, error: r, refetch:
|
|
115
|
+
let { vehicle: t, isLoading: n, error: r, refetch: i } = o(e);
|
|
115
116
|
return {
|
|
116
117
|
tracking: u(() => !t || !t.currentLocation ? null : {
|
|
117
118
|
id: `vehicle-track-${t.id}`,
|
|
@@ -126,11 +127,11 @@ function x(e) {
|
|
|
126
127
|
vehicle: t,
|
|
127
128
|
isLoading: n,
|
|
128
129
|
error: r,
|
|
129
|
-
refetch:
|
|
130
|
+
refetch: i
|
|
130
131
|
};
|
|
131
132
|
}
|
|
132
133
|
function S(e) {
|
|
133
|
-
let { driver: t, isLoading: n, error: r, refetch:
|
|
134
|
+
let { driver: t, isLoading: n, error: r, refetch: a } = i(e);
|
|
134
135
|
return {
|
|
135
136
|
tracking: u(() => !t || !t.currentLocation ? null : {
|
|
136
137
|
id: `driver-track-${t.id}`,
|
|
@@ -145,22 +146,22 @@ function S(e) {
|
|
|
145
146
|
driver: t,
|
|
146
147
|
isLoading: n,
|
|
147
148
|
error: r,
|
|
148
|
-
refetch:
|
|
149
|
+
refetch: a
|
|
149
150
|
};
|
|
150
151
|
}
|
|
151
152
|
function C() {
|
|
152
|
-
let
|
|
153
|
+
let e = v(), { orders: n } = r(), { vehicles: i } = s(), { drivers: o } = a(), [u, f] = d([]), [m, g] = d(!1), [y, b] = d(null), x = c(async () => {
|
|
153
154
|
g(!0), b(null);
|
|
154
155
|
try {
|
|
155
|
-
let
|
|
156
|
-
f((await Promise.all(
|
|
157
|
-
let a = (await e
|
|
156
|
+
let r = await t(e, h);
|
|
157
|
+
f((await Promise.all(r.activeDeliveries.map(async (r) => {
|
|
158
|
+
let a = (await t(e, p, { id: r.id })).shipment?.trackingEvents ?? [], s = a[a.length - 1], c = n.find((e) => e.id === r.orderId);
|
|
158
159
|
return c ? {
|
|
159
160
|
order: c,
|
|
160
|
-
driver: c.driverId ?
|
|
161
|
+
driver: c.driverId ? o.find((e) => e.id === c.driverId || e.userId === c.driverId) ?? null : null,
|
|
161
162
|
vehicle: c.vehicleId ? i.find((e) => e.id === c.vehicleId) ?? null : null,
|
|
162
|
-
tracking:
|
|
163
|
-
estimatedArrival:
|
|
163
|
+
tracking: s ? _(s, r.orderId) : null,
|
|
164
|
+
estimatedArrival: r.estimatedDelivery ? new Date(r.estimatedDelivery) : void 0
|
|
164
165
|
} : null;
|
|
165
166
|
}))).filter((e) => e !== null));
|
|
166
167
|
} catch (e) {
|
|
@@ -169,9 +170,9 @@ function C() {
|
|
|
169
170
|
g(!1);
|
|
170
171
|
}
|
|
171
172
|
}, [
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
173
|
+
o,
|
|
174
|
+
e,
|
|
175
|
+
n,
|
|
175
176
|
i
|
|
176
177
|
]);
|
|
177
178
|
return l(() => {
|
|
@@ -184,10 +185,10 @@ function C() {
|
|
|
184
185
|
};
|
|
185
186
|
}
|
|
186
187
|
function w() {
|
|
187
|
-
let
|
|
188
|
+
let e = v(), [n, r] = d([]), [i, a] = d(!1), [o, s] = d(null), f = c(async () => {
|
|
188
189
|
a(!0), s(null);
|
|
189
190
|
try {
|
|
190
|
-
r((await e
|
|
191
|
+
r((await t(e, g)).trackingAlerts.map((e) => ({
|
|
191
192
|
id: `${e.shipmentId}-${e.alertType}`,
|
|
192
193
|
type: "delay",
|
|
193
194
|
severity: "medium",
|
|
@@ -200,7 +201,7 @@ function w() {
|
|
|
200
201
|
} finally {
|
|
201
202
|
a(!1);
|
|
202
203
|
}
|
|
203
|
-
}, [
|
|
204
|
+
}, [e]);
|
|
204
205
|
return l(() => {
|
|
205
206
|
f();
|
|
206
207
|
}, [f]), {
|
|
@@ -218,7 +219,7 @@ function w() {
|
|
|
218
219
|
};
|
|
219
220
|
}
|
|
220
221
|
function T(e, t) {
|
|
221
|
-
let { vehicles: n } =
|
|
222
|
+
let { vehicles: n } = s(), { drivers: r } = a();
|
|
222
223
|
return {
|
|
223
224
|
entitiesInRange: u(() => {
|
|
224
225
|
let i = [];
|
|
@@ -258,4 +259,4 @@ function D(e) {
|
|
|
258
259
|
return Math.PI / 180 * e;
|
|
259
260
|
}
|
|
260
261
|
//#endregion
|
|
261
|
-
export {
|
|
262
|
+
export { S as useDriverTracking, T as useGeofence, C as useLiveTracking, b as useOrderTracking, y as useTracking, w as useTrackingAlerts, x as useVehicleTracking };
|
package/dist/index.d.ts
ADDED