@sjvair/monitor-map 3.0.2 → 3.0.4
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/lib/LoadScreen.svelte +68 -0
- package/dist/lib/LoadScreen.svelte.d.ts +25 -0
- package/dist/lib/MainMapView.svelte +1 -0
- package/dist/lib/MainMapView.svelte.d.ts +26 -0
- package/dist/lib/MapLegend.svelte +15 -0
- package/dist/lib/MapLegend.svelte.d.ts +18 -0
- package/dist/lib/MonitorDetailPanel.svelte +152 -0
- package/dist/lib/MonitorDetailPanel.svelte.d.ts +3 -0
- package/dist/lib/MonitorMapLayout.svelte +193 -0
- package/dist/lib/MonitorMapLayout.svelte.d.ts +7 -0
- package/dist/lib/actions.d.ts +3 -0
- package/dist/lib/actions.js +12 -8
- package/dist/lib/assets/icons/adjustment-horizontal.svg +3 -0
- package/dist/lib/assets/logos/airgradient-blue.svg +63 -0
- package/dist/lib/assets/logos/airnow-compact.jpg +0 -0
- package/dist/lib/assets/logos/carb-compact.jpg +0 -0
- package/dist/lib/assets/logos/purpleair-compact.png +0 -0
- package/dist/lib/assets/logos/sjvair-parts/sjvair-air.webp +0 -0
- package/dist/lib/assets/logos/sjvair-parts/sjvair-icon.webp +0 -0
- package/dist/lib/assets/logos/sjvair-parts/sjvair-sjv.webp +0 -0
- package/dist/lib/assets/logos/sjvair-white.svg +115 -0
- package/dist/lib/assets/logos/sjvair.svg +96 -0
- package/dist/lib/collocation-sites/CollocationTooltip.svelte +98 -0
- package/dist/lib/collocation-sites/CollocationTooltip.svelte.d.ts +7 -0
- package/dist/lib/collocation-sites/collocation-utils.d.ts +3 -0
- package/dist/lib/collocation-sites/collocation-utils.js +30 -0
- package/dist/lib/collocation-sites/collocations-icon-manager.svelte.d.ts +7 -0
- package/dist/lib/collocation-sites/collocations-icon-manager.svelte.js +17 -20
- package/dist/lib/collocation-sites/collocations-map-integration.svelte.d.ts +18 -0
- package/dist/lib/collocation-sites/collocations-map-integration.svelte.js +98 -83
- package/dist/lib/collocation-sites/collocations.svelte.d.ts +9 -0
- package/dist/lib/collocation-sites/collocations.svelte.js +17 -26
- package/dist/lib/collocation-sites/types.d.ts +8 -0
- package/dist/lib/collocation-sites/types.js +1 -0
- package/dist/lib/colors.d.ts +17 -0
- package/dist/lib/colors.js +29 -23
- package/dist/lib/components/DataBox.svelte +29 -0
- package/dist/lib/components/DataBox.svelte.d.ts +9 -0
- package/dist/lib/components/DisplayOption.svelte +7 -0
- package/dist/lib/components/DisplayOption.svelte.d.ts +5 -0
- package/dist/lib/components/MapLayersDisplayOptions.svelte +42 -0
- package/dist/lib/components/MapLayersDisplayOptions.svelte.d.ts +18 -0
- package/dist/lib/components/SegmentedControl.svelte +61 -0
- package/dist/lib/components/SegmentedControl.svelte.d.ts +11 -0
- package/dist/lib/components/ToggleSwitch.svelte +93 -0
- package/dist/lib/components/ToggleSwitch.svelte.d.ts +9 -0
- package/dist/lib/components/ui/button/button.svelte +89 -0
- package/dist/lib/components/ui/button/button.svelte.d.ts +70 -0
- package/dist/lib/components/ui/button/index.d.ts +2 -0
- package/dist/lib/components/ui/button/index.js +4 -0
- package/dist/lib/components/ui/range-calendar/index.d.ts +19 -0
- package/dist/lib/components/ui/range-calendar/index.js +21 -0
- package/dist/lib/components/ui/range-calendar/range-calendar-caption.svelte +76 -0
- package/dist/lib/components/ui/range-calendar/range-calendar-caption.svelte.d.ts +19 -0
- package/dist/lib/components/ui/range-calendar/range-calendar-cell.svelte +19 -0
- package/dist/lib/components/ui/range-calendar/range-calendar-cell.svelte.d.ts +4 -0
- package/dist/lib/components/ui/range-calendar/range-calendar-day.svelte +36 -0
- package/dist/lib/components/ui/range-calendar/range-calendar-day.svelte.d.ts +4 -0
- package/dist/lib/components/ui/range-calendar/range-calendar-grid-body.svelte +7 -0
- package/dist/lib/components/ui/range-calendar/range-calendar-grid-body.svelte.d.ts +4 -0
- package/dist/lib/components/ui/range-calendar/range-calendar-grid-head.svelte +7 -0
- package/dist/lib/components/ui/range-calendar/range-calendar-grid-head.svelte.d.ts +4 -0
- package/dist/lib/components/ui/range-calendar/range-calendar-grid-row.svelte +12 -0
- package/dist/lib/components/ui/range-calendar/range-calendar-grid-row.svelte.d.ts +4 -0
- package/dist/lib/components/ui/range-calendar/range-calendar-grid.svelte +16 -0
- package/dist/lib/components/ui/range-calendar/range-calendar-grid.svelte.d.ts +4 -0
- package/dist/lib/components/ui/range-calendar/range-calendar-head-cell.svelte +19 -0
- package/dist/lib/components/ui/range-calendar/range-calendar-head-cell.svelte.d.ts +4 -0
- package/dist/lib/components/ui/range-calendar/range-calendar-header.svelte +19 -0
- package/dist/lib/components/ui/range-calendar/range-calendar-header.svelte.d.ts +4 -0
- package/dist/lib/components/ui/range-calendar/range-calendar-heading.svelte +16 -0
- package/dist/lib/components/ui/range-calendar/range-calendar-heading.svelte.d.ts +4 -0
- package/dist/lib/components/ui/range-calendar/range-calendar-month-select.svelte +44 -0
- package/dist/lib/components/ui/range-calendar/range-calendar-month-select.svelte.d.ts +4 -0
- package/dist/lib/components/ui/range-calendar/range-calendar-month.svelte +15 -0
- package/dist/lib/components/ui/range-calendar/range-calendar-month.svelte.d.ts +5 -0
- package/dist/lib/components/ui/range-calendar/range-calendar-months.svelte +19 -0
- package/dist/lib/components/ui/range-calendar/range-calendar-months.svelte.d.ts +5 -0
- package/dist/lib/components/ui/range-calendar/range-calendar-nav.svelte +19 -0
- package/dist/lib/components/ui/range-calendar/range-calendar-nav.svelte.d.ts +5 -0
- package/dist/lib/components/ui/range-calendar/range-calendar-next-button.svelte +36 -0
- package/dist/lib/components/ui/range-calendar/range-calendar-next-button.svelte.d.ts +8 -0
- package/dist/lib/components/ui/range-calendar/range-calendar-prev-button.svelte +36 -0
- package/dist/lib/components/ui/range-calendar/range-calendar-prev-button.svelte.d.ts +8 -0
- package/dist/lib/components/ui/range-calendar/range-calendar-year-select.svelte +43 -0
- package/dist/lib/components/ui/range-calendar/range-calendar-year-select.svelte.d.ts +4 -0
- package/dist/lib/components/ui/range-calendar/range-calendar.svelte +112 -0
- package/dist/lib/components/ui/range-calendar/range-calendar.svelte.d.ts +21 -0
- package/dist/lib/data-chart/DataChart.svelte +303 -0
- package/dist/lib/data-chart/DataChart.svelte.d.ts +7 -0
- package/dist/lib/data-chart/DateRange.d.ts +6 -0
- package/dist/lib/data-chart/DateRange.js +15 -14
- package/dist/lib/data-chart/chart-utils.d.ts +3 -0
- package/dist/lib/data-chart/chart-utils.js +157 -93
- package/dist/lib/data-chart/data-chart.svelte.d.ts +7 -0
- package/dist/lib/data-chart/data-chart.svelte.js +7 -28
- package/dist/lib/data-chart/requests.d.ts +3 -0
- package/dist/lib/data-chart/requests.js +36 -28
- package/dist/lib/data-chart/tooltip.d.ts +10 -0
- package/dist/lib/data-chart/tooltip.js +160 -98
- package/dist/lib/ev-stations/components/EvStationClusterTooltip.svelte +16 -0
- package/dist/lib/ev-stations/components/EvStationClusterTooltip.svelte.d.ts +7 -0
- package/dist/lib/ev-stations/components/EvStationTooltip.svelte +127 -0
- package/dist/lib/ev-stations/components/EvStationTooltip.svelte.d.ts +7 -0
- package/dist/lib/ev-stations/components/EvStationsDisplayOptions.svelte +46 -0
- package/dist/lib/ev-stations/components/EvStationsDisplayOptions.svelte.d.ts +18 -0
- package/dist/lib/ev-stations/data-maps.d.ts +5 -0
- package/dist/lib/ev-stations/data-maps.js +152 -0
- package/dist/lib/ev-stations/ev-station-icons.d.ts +16 -0
- package/dist/lib/ev-stations/ev-station-icons.js +26 -0
- package/dist/lib/ev-stations/ev-stations-cluster-renderer.d.ts +19 -0
- package/dist/lib/ev-stations/ev-stations-cluster-renderer.js +131 -0
- package/dist/lib/ev-stations/ev-stations-map-integration.svelte.d.ts +31 -0
- package/dist/lib/ev-stations/ev-stations-map-integration.svelte.js +207 -0
- package/dist/lib/ev-stations/ev-stations.svelte.d.ts +9 -0
- package/dist/lib/ev-stations/ev-stations.svelte.js +55 -0
- package/dist/lib/ev-stations/types.d.ts +53 -0
- package/dist/lib/ev-stations/types.js +1 -0
- package/dist/lib/ev-stations/zip-codes.d.ts +13 -0
- package/dist/lib/ev-stations/zip-codes.js +458 -0
- package/dist/lib/hms/components/HMSFireLegend.svelte +21 -0
- package/dist/lib/hms/components/HMSFireLegend.svelte.d.ts +18 -0
- package/dist/lib/hms/hms-fire-icon-manager.d.ts +5 -0
- package/dist/lib/hms/hms-fire-icon-manager.js +28 -37
- package/dist/lib/hms/hms-fire-map-integration.svelte.d.ts +23 -0
- package/dist/lib/hms/hms-fire-map-integration.svelte.js +94 -97
- package/dist/lib/hms/hms-smoke-map-integration.svelte.d.ts +19 -0
- package/dist/lib/hms/hms-smoke-map-integration.svelte.js +68 -84
- package/dist/lib/hms/hms.svelte.d.ts +19 -0
- package/dist/lib/hms/hms.svelte.js +225 -76
- package/dist/lib/index.d.ts +68 -0
- package/dist/lib/index.js +56 -19
- package/dist/lib/map/Map.svelte +13 -0
- package/dist/lib/map/Map.svelte.d.ts +8 -0
- package/dist/lib/map/MapStyleDisplayOptions.svelte +61 -0
- package/dist/lib/map/MapStyleDisplayOptions.svelte.d.ts +3 -0
- package/dist/lib/map/Menu.svelte +64 -0
- package/dist/lib/map/Menu.svelte.d.ts +5 -0
- package/dist/lib/map/icons.d.ts +7 -0
- package/dist/lib/map/icons.js +24 -22
- package/dist/lib/map/integrations/base-layer-seperator.d.ts +9 -0
- package/dist/lib/map/integrations/base-layer-seperator.js +11 -12
- package/dist/lib/map/integrations/click-manager.d.ts +14 -0
- package/dist/lib/map/integrations/click-manager.js +52 -33
- package/dist/lib/map/integrations/integrations-manager.d.ts +8 -0
- package/dist/lib/map/integrations/integrations-manager.js +20 -12
- package/dist/lib/map/integrations/map-display-option.svelte.d.ts +7 -0
- package/dist/lib/map/integrations/map-display-option.svelte.js +10 -18
- package/dist/lib/map/integrations/map-geojson-integration.svelte.d.ts +13 -0
- package/dist/lib/map/integrations/map-geojson-integration.svelte.js +21 -17
- package/dist/lib/map/integrations/map-icon-manager.d.ts +15 -0
- package/dist/lib/map/integrations/map-icon-manager.js +52 -43
- package/dist/lib/map/integrations/map-integration.svelte.d.ts +6 -0
- package/dist/lib/map/integrations/map-integration.svelte.js +2 -5
- package/dist/lib/map/integrations/map-layer-integration.svelte.d.ts +11 -0
- package/dist/lib/map/integrations/map-layer-integration.svelte.js +36 -23
- package/dist/lib/map/integrations/tooltip.svelte.d.ts +28 -0
- package/dist/lib/map/integrations/tooltip.svelte.js +120 -78
- package/dist/lib/map/integrations/types.d.ts +14 -0
- package/dist/lib/map/integrations/types.js +1 -0
- package/dist/lib/map/map.svelte.d.ts +14 -0
- package/dist/lib/map/map.svelte.js +48 -50
- package/dist/lib/map/utils.d.ts +7 -0
- package/dist/lib/map/utils.js +33 -27
- package/dist/lib/monitors/components/MonitorClusterTooltip.svelte +112 -0
- package/dist/lib/monitors/components/MonitorClusterTooltip.svelte.d.ts +7 -0
- package/dist/lib/monitors/components/MonitorMarkersLegend.svelte +41 -0
- package/dist/lib/monitors/components/MonitorMarkersLegend.svelte.d.ts +3 -0
- package/dist/lib/monitors/components/MonitorSubscriptionManager.svelte +128 -0
- package/dist/lib/monitors/components/MonitorSubscriptionManager.svelte.d.ts +6 -0
- package/dist/lib/monitors/components/MonitorTooltip.svelte +61 -0
- package/dist/lib/monitors/components/MonitorTooltip.svelte.d.ts +7 -0
- package/dist/lib/monitors/components/MonitorWidgetModal.svelte +100 -0
- package/dist/lib/monitors/components/MonitorWidgetModal.svelte.d.ts +6 -0
- package/dist/lib/monitors/components/MonitorsDisplayOptions.svelte +79 -0
- package/dist/lib/monitors/components/MonitorsDisplayOptions.svelte.d.ts +3 -0
- package/dist/lib/monitors/monitor-utils.d.ts +4 -0
- package/dist/lib/monitors/monitor-utils.js +33 -23
- package/dist/lib/monitors/monitors-cluster-renderer.d.ts +33 -0
- package/dist/lib/monitors/monitors-cluster-renderer.js +218 -209
- package/dist/lib/monitors/monitors-icon-manager.svelte.d.ts +13 -0
- package/dist/lib/monitors/monitors-icon-manager.svelte.js +75 -70
- package/dist/lib/monitors/monitors-map-integration.svelte.d.ts +40 -0
- package/dist/lib/monitors/monitors-map-integration.svelte.js +278 -270
- package/dist/lib/monitors/monitors.svelte.d.ts +16 -0
- package/dist/lib/monitors/monitors.svelte.js +38 -67
- package/dist/lib/monitors/types.d.ts +26 -0
- package/dist/lib/monitors/types.js +1 -0
- package/dist/lib/reactivity.svelte.d.ts +0 -0
- package/dist/lib/reactivity.svelte.js +83 -0
- package/dist/lib/router-context.d.ts +27 -0
- package/dist/lib/router-context.js +13 -0
- package/dist/lib/routes.d.ts +2 -0
- package/dist/lib/routes.js +11 -0
- package/dist/lib/search/Search.svelte +189 -0
- package/dist/lib/search/Search.svelte.d.ts +3 -0
- package/dist/lib/search/service.d.ts +17 -0
- package/dist/lib/search/service.js +80 -0
- package/dist/lib/utils.d.ts +13 -0
- package/dist/lib/utils.js +11 -7
- package/dist/lib/weather.d.ts +1 -0
- package/dist/lib/weather.js +11 -7
- package/dist/lib/wind/wind.svelte.d.ts +10 -0
- package/dist/lib/wind/wind.svelte.js +13 -21
- package/package.json +45 -42
- package/src/lib/LoadScreen.svelte +5 -5
- package/src/lib/MainMapView.svelte +1 -0
- package/src/lib/MapLegend.svelte +15 -0
- package/src/lib/MonitorDetailPanel.svelte +152 -0
- package/src/lib/MonitorMapLayout.svelte +193 -0
- package/src/lib/components/MapLayersDisplayOptions.svelte +6 -2
- package/src/lib/hms/components/HMSFireLegend.svelte +21 -0
- package/src/lib/hms/hms.svelte.ts +8 -9
- package/src/lib/index.ts +52 -0
- package/src/lib/map/Map.svelte +1 -0
- package/src/lib/map/Menu.svelte +4 -7
- package/src/lib/map/integrations/map-icon-manager.ts +4 -1
- package/src/lib/monitors/monitors.svelte.ts +1 -3
- package/src/lib/router-context.ts +48 -0
- package/src/lib/routes.ts +13 -0
- package/src/lib/search/Search.svelte +189 -0
- package/src/lib/search/service.ts +101 -0
- package/src/lib/utils.ts +11 -0
- package/dist/lib/LoadScreen.js +0 -73
- package/dist/lib/assets/icons/adjustment-horizontal.js +0 -4
- package/dist/lib/collocation-sites/CollocationTooltip.js +0 -105
- package/dist/lib/components/DataBox.js +0 -30
- package/dist/lib/components/DisplayOption.js +0 -10
- package/dist/lib/components/MapLayersDisplayOptions.js +0 -78
- package/dist/lib/components/SegmentedControl.js +0 -37
- package/dist/lib/components/ToggleSwitch.js +0 -17
- package/dist/lib/components/ui/button/button.js +0 -34
- package/dist/lib/components/ui/range-calendar/range-calendar-caption.js +0 -79
- package/dist/lib/components/ui/range-calendar/range-calendar-cell.js +0 -34
- package/dist/lib/components/ui/range-calendar/range-calendar-day.js +0 -34
- package/dist/lib/components/ui/range-calendar/range-calendar-grid-body.js +0 -26
- package/dist/lib/components/ui/range-calendar/range-calendar-grid-head.js +0 -26
- package/dist/lib/components/ui/range-calendar/range-calendar-grid-row.js +0 -34
- package/dist/lib/components/ui/range-calendar/range-calendar-grid.js +0 -34
- package/dist/lib/components/ui/range-calendar/range-calendar-head-cell.js +0 -34
- package/dist/lib/components/ui/range-calendar/range-calendar-header.js +0 -34
- package/dist/lib/components/ui/range-calendar/range-calendar-month-select.js +0 -61
- package/dist/lib/components/ui/range-calendar/range-calendar-month.js +0 -25
- package/dist/lib/components/ui/range-calendar/range-calendar-months.js +0 -25
- package/dist/lib/components/ui/range-calendar/range-calendar-nav.js +0 -25
- package/dist/lib/components/ui/range-calendar/range-calendar-next-button.js +0 -57
- package/dist/lib/components/ui/range-calendar/range-calendar-prev-button.js +0 -57
- package/dist/lib/components/ui/range-calendar/range-calendar-year-select.js +0 -59
- package/dist/lib/components/ui/range-calendar/range-calendar.js +0 -272
- package/dist/lib/data-chart/DataChart.js +0 -142
- package/dist/lib/map/Map.js +0 -14
- package/dist/lib/map/MapStyleDisplayOptions.js +0 -43
- package/dist/lib/map/Menu.js +0 -45
- package/dist/lib/monitors/components/MonitorClusterTooltip.js +0 -83
- package/dist/lib/monitors/components/MonitorSubscriptionManager.js +0 -104
- package/dist/lib/monitors/components/MonitorTooltip.js +0 -59
- package/dist/lib/monitors/components/MonitorWidgetModal.js +0 -40
- package/dist/lib/monitors/components/MonitorsDisplayOptions.js +0 -76
- package/dist/lib/node_modules/@internationalized/date/dist/private/CalendarDate.js +0 -122
- package/dist/lib/node_modules/@internationalized/date/dist/private/DateFormatter.js +0 -84
- package/dist/lib/node_modules/@internationalized/date/dist/private/calendars/GregorianCalendar.js +0 -91
- package/dist/lib/node_modules/@internationalized/date/dist/private/conversion.js +0 -104
- package/dist/lib/node_modules/@internationalized/date/dist/private/manipulation.js +0 -159
- package/dist/lib/node_modules/@internationalized/date/dist/private/queries.js +0 -32
- package/dist/lib/node_modules/@internationalized/date/dist/private/string.js +0 -37
- package/dist/lib/node_modules/@internationalized/date/dist/private/utils.js +0 -6
- package/dist/lib/node_modules/clsx/dist/clsx.js +0 -16
- package/dist/lib/node_modules/tailwind-merge/dist/bundle-mjs.js +0 -1723
- package/dist/lib/node_modules/tailwind-variants/dist/chunk-LQJYWU4O.js +0 -70
- package/dist/lib/node_modules/tailwind-variants/dist/chunk-RZF76H2U.js +0 -166
- package/dist/lib/node_modules/tailwind-variants/dist/index.js +0 -19
- package/dist/lib/node_modules/uplot/dist/uPlot.esm.js +0 -2147
- package/dist/lib/sjvair-air.avif +0 -0
- package/dist/lib/sjvair-air.png +0 -0
- package/dist/lib/sjvair-air.webp +0 -0
- package/dist/lib/sjvair-air2.avif +0 -0
- package/dist/lib/sjvair-air2.png +0 -0
- package/dist/lib/sjvair-air2.webp +0 -0
- package/dist/lib/sjvair-icon.avif +0 -0
- package/dist/lib/sjvair-icon.png +0 -0
- package/dist/lib/sjvair-icon.webp +0 -0
- package/dist/lib/sjvair-icon2.avif +0 -0
- package/dist/lib/sjvair-icon2.png +0 -0
- package/dist/lib/sjvair-icon2.webp +0 -0
- package/dist/lib/sjvair-sjv.avif +0 -0
- package/dist/lib/sjvair-sjv.png +0 -0
- package/dist/lib/sjvair-sjv.webp +0 -0
- package/dist/lib/sjvair-sjv2.avif +0 -0
- package/dist/lib/sjvair-sjv2.png +0 -0
- package/dist/lib/sjvair-sjv2.webp +0 -0
- package/dist/lib/src/MapView.js +0 -7
- package/dist/lib/src/MonitorDetailPanel.js +0 -169
- package/dist/lib/src/router.js +0 -9
- package/dist/monitor-map/MonitorDetailPanel.css +0 -1
- package/dist/monitor-map/assets/MonitorDetailPanel-BU_pXZjp.js +0 -15
- package/dist/monitor-map/assets/validate-routes-CgbRa8fT.js +0 -1
- package/dist/monitor-map/inter-cyrillic-ext-wght-normal.woff2 +0 -0
- package/dist/monitor-map/inter-cyrillic-wght-normal.woff2 +0 -0
- package/dist/monitor-map/inter-greek-ext-wght-normal.woff2 +0 -0
- package/dist/monitor-map/inter-greek-wght-normal.woff2 +0 -0
- package/dist/monitor-map/inter-latin-ext-wght-normal.woff2 +0 -0
- package/dist/monitor-map/inter-latin-wght-normal.woff2 +0 -0
- package/dist/monitor-map/inter-vietnamese-wght-normal.woff2 +0 -0
- package/dist/monitor-map/lungs.svg +0 -99
- package/dist/monitor-map/sjvair-air.avif +0 -0
- package/dist/monitor-map/sjvair-air.png +0 -0
- package/dist/monitor-map/sjvair-air.webp +0 -0
- package/dist/monitor-map/sjvair-air2.avif +0 -0
- package/dist/monitor-map/sjvair-air2.png +0 -0
- package/dist/monitor-map/sjvair-air2.webp +0 -0
- package/dist/monitor-map/sjvair-icon.avif +0 -0
- package/dist/monitor-map/sjvair-icon.png +0 -0
- package/dist/monitor-map/sjvair-icon.webp +0 -0
- package/dist/monitor-map/sjvair-icon2.avif +0 -0
- package/dist/monitor-map/sjvair-icon2.png +0 -0
- package/dist/monitor-map/sjvair-icon2.webp +0 -0
- package/dist/monitor-map/sjvair-sjv.avif +0 -0
- package/dist/monitor-map/sjvair-sjv.png +0 -0
- package/dist/monitor-map/sjvair-sjv.webp +0 -0
- package/dist/monitor-map/sjvair-sjv2.avif +0 -0
- package/dist/monitor-map/sjvair-sjv2.png +0 -0
- package/dist/monitor-map/sjvair-sjv2.webp +0 -0
- package/dist/monitor-map/sjvairMonitorMap.css +0 -1
- package/dist/monitor-map/sjvairMonitorMap.js +0 -4042
|
@@ -1,105 +0,0 @@
|
|
|
1
|
-
import { monitorsManager as e } from "../monitors/monitors.svelte.js";
|
|
2
|
-
import { getCurrentLevel as t } from "../monitors/monitor-utils.js";
|
|
3
|
-
import n from "../components/DataBox.js";
|
|
4
|
-
import * as r from "svelte/internal/client";
|
|
5
|
-
import "svelte/internal/disclose-version";
|
|
6
|
-
import { format as i, formatDistanceToNow as a } from "date-fns";
|
|
7
|
-
//#region src/lib/collocation-sites/CollocationTooltip.svelte
|
|
8
|
-
var o = r.from_html("<div class=\"flex gap-2\"><!> <div class=\"flex flex-col\"><p class=\"leading-none\"> </p> <h1 class=\"text-lg font-bold underline\"> </h1> <p class=\"leading-none\">Reference monitor</p> <div class=\"mt-auto\"><p class=\"text-base leading-none\">Last updated</p> <p class=\"text-base leading-none\"> </p></div></div></div>"), s = r.from_html("<h1>Reference monitor disabled</h1>"), c = r.from_html("<div class=\"flex flex-row-reverse gap-2\"><!> <div class=\"flex flex-col\"><p class=\"leading-none\"> </p> <h1 class=\"text-lg font-bold underline\"> </h1> <p class=\"leading-none\">Collocated monitor</p> <div class=\"mt-auto\"><p class=\"text-base leading-none\">Last updated</p> <p class=\"text-base leading-none\"> </p></div></div></div>"), l = r.from_html("<h1>Collocated monitor disabled</h1>"), u = r.from_html("<div class=\"flex flex-col gap-4\"><!> <!></div>");
|
|
9
|
-
function d(d, f) {
|
|
10
|
-
r.push(f, !0);
|
|
11
|
-
let p = r.derived(() => {
|
|
12
|
-
let t = e.latest?.get(f.feature.properties.colocated_id), n = e.latest?.get(f.feature.properties.reference_id);
|
|
13
|
-
return {
|
|
14
|
-
collocated: m(t),
|
|
15
|
-
reference: m(n)
|
|
16
|
-
};
|
|
17
|
-
});
|
|
18
|
-
function m(n) {
|
|
19
|
-
if (!n || !("value" in n.latest) || !e.meta) return;
|
|
20
|
-
let r = e.meta.entryType(n.latest.entry_type), o = t(n.latest.value, r.asIter.levels), s = e.meta.monitorType(n.type).expected_interval;
|
|
21
|
-
return {
|
|
22
|
-
color: o?.color ?? "",
|
|
23
|
-
header: r.label,
|
|
24
|
-
date: {
|
|
25
|
-
formatted: i(n.latest.timestamp, "h:mm:aaa EEEE MMM dd, yyyy"),
|
|
26
|
-
diference: a(n.latest.timestamp, {
|
|
27
|
-
addSuffix: !0,
|
|
28
|
-
includeSeconds: !0
|
|
29
|
-
})
|
|
30
|
-
},
|
|
31
|
-
monitorName: n.name,
|
|
32
|
-
subheading: `(${s} avg)`,
|
|
33
|
-
value: Math.round(parseInt(n.latest.value, 10)).toString()
|
|
34
|
-
};
|
|
35
|
-
}
|
|
36
|
-
var h = r.comment(), g = r.first_child(h), _ = (e) => {
|
|
37
|
-
var t = u(), i = r.child(t), a = (e) => {
|
|
38
|
-
var t = o(), i = r.child(t);
|
|
39
|
-
n(i, {
|
|
40
|
-
get color() {
|
|
41
|
-
return r.get(p).reference.color;
|
|
42
|
-
},
|
|
43
|
-
get header() {
|
|
44
|
-
return r.get(p).reference.header;
|
|
45
|
-
},
|
|
46
|
-
get subheading() {
|
|
47
|
-
return r.get(p).reference.subheading;
|
|
48
|
-
},
|
|
49
|
-
get value() {
|
|
50
|
-
return r.get(p).reference.value;
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
var a = r.sibling(i, 2), s = r.child(a), c = r.child(s, !0);
|
|
54
|
-
r.reset(s);
|
|
55
|
-
var l = r.sibling(s, 2), u = r.child(l, !0);
|
|
56
|
-
r.reset(l);
|
|
57
|
-
var d = r.sibling(l, 4), f = r.sibling(r.child(d), 2), m = r.child(f, !0);
|
|
58
|
-
r.reset(f), r.reset(d), r.reset(a), r.reset(t), r.template_effect(() => {
|
|
59
|
-
r.set_text(c, r.get(p).reference.date.formatted), r.set_text(u, r.get(p).reference.monitorName), r.set_text(m, r.get(p).reference.date.diference);
|
|
60
|
-
}), r.append(e, t);
|
|
61
|
-
}, d = (e) => {
|
|
62
|
-
var t = s();
|
|
63
|
-
r.append(e, t);
|
|
64
|
-
};
|
|
65
|
-
r.if(i, (e) => {
|
|
66
|
-
r.get(p).reference ? e(a) : e(d, -1);
|
|
67
|
-
});
|
|
68
|
-
var f = r.sibling(i, 2), m = (e) => {
|
|
69
|
-
var t = c(), i = r.child(t);
|
|
70
|
-
n(i, {
|
|
71
|
-
get color() {
|
|
72
|
-
return r.get(p).collocated.color;
|
|
73
|
-
},
|
|
74
|
-
get header() {
|
|
75
|
-
return r.get(p).collocated.header;
|
|
76
|
-
},
|
|
77
|
-
get subheading() {
|
|
78
|
-
return r.get(p).collocated.subheading;
|
|
79
|
-
},
|
|
80
|
-
get value() {
|
|
81
|
-
return r.get(p).collocated.value;
|
|
82
|
-
}
|
|
83
|
-
});
|
|
84
|
-
var a = r.sibling(i, 2), o = r.child(a), s = r.child(o, !0);
|
|
85
|
-
r.reset(o);
|
|
86
|
-
var l = r.sibling(o, 2), u = r.child(l, !0);
|
|
87
|
-
r.reset(l);
|
|
88
|
-
var d = r.sibling(l, 4), f = r.sibling(r.child(d), 2), m = r.child(f, !0);
|
|
89
|
-
r.reset(f), r.reset(d), r.reset(a), r.reset(t), r.template_effect(() => {
|
|
90
|
-
r.set_text(s, r.get(p).collocated.date.formatted), r.set_text(u, r.get(p).collocated.monitorName), r.set_text(m, r.get(p).collocated.date.diference);
|
|
91
|
-
}), r.append(e, t);
|
|
92
|
-
}, h = (e) => {
|
|
93
|
-
var t = l();
|
|
94
|
-
r.append(e, t);
|
|
95
|
-
};
|
|
96
|
-
r.if(f, (e) => {
|
|
97
|
-
r.get(p).collocated ? e(m) : e(h, -1);
|
|
98
|
-
}), r.reset(t), r.append(e, t);
|
|
99
|
-
};
|
|
100
|
-
r.if(g, (e) => {
|
|
101
|
-
r.get(p) && e(_);
|
|
102
|
-
}), r.append(d, h), r.pop();
|
|
103
|
-
}
|
|
104
|
-
//#endregion
|
|
105
|
-
export { d as default };
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import * as e from "svelte/internal/client";
|
|
2
|
-
import "svelte/internal/disclose-version";
|
|
3
|
-
import { darken as t, readableColor as n } from "color2k";
|
|
4
|
-
//#region src/lib/components/DataBox.svelte
|
|
5
|
-
var r = e.from_html("<p class=\"whitespace-nowrap\"> </p>"), i = e.from_html("<div class=\"flex flex-col rounded-sm border-4 p-1 text-center\"><p class=\"text-base whitespace-nowrap\"> </p> <div class=\"flex flex-1 flex-col items-center justify-center\"><p> </p> <!></div></div>");
|
|
6
|
-
function a(a, o) {
|
|
7
|
-
e.push(o, !0);
|
|
8
|
-
let s = e.derived(() => t(o.color, .1)), c = e.derived(() => n(o.color));
|
|
9
|
-
var l = i();
|
|
10
|
-
let u;
|
|
11
|
-
var d = e.child(l), f = e.child(d, !0);
|
|
12
|
-
e.reset(d);
|
|
13
|
-
var p = e.sibling(d, 2), m = e.child(p), h = e.child(m, !0);
|
|
14
|
-
e.reset(m);
|
|
15
|
-
var g = e.sibling(m, 2), _ = (t) => {
|
|
16
|
-
var n = r(), i = e.child(n, !0);
|
|
17
|
-
e.reset(n), e.template_effect(() => e.set_text(i, o.subheading)), e.append(t, n);
|
|
18
|
-
};
|
|
19
|
-
e.if(g, (e) => {
|
|
20
|
-
o.subheading && e(_);
|
|
21
|
-
}), e.reset(p), e.reset(l), e.template_effect(() => {
|
|
22
|
-
u = e.set_style(l, "", u, {
|
|
23
|
-
"background-color": o.color,
|
|
24
|
-
"border-color": e.get(s),
|
|
25
|
-
color: e.get(c)
|
|
26
|
-
}), e.set_text(f, o.header), e.set_class(m, 1, e.clsx(["font-bold whitespace-nowrap", o.subheading ? "text-3xl" : "text-4xl"])), e.set_text(h, o.value);
|
|
27
|
-
}), e.append(a, l), e.pop();
|
|
28
|
-
}
|
|
29
|
-
//#endregion
|
|
30
|
-
export { a as default };
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import * as e from "svelte/internal/client";
|
|
2
|
-
import "svelte/internal/disclose-version";
|
|
3
|
-
//#region src/lib/components/DisplayOption.svelte
|
|
4
|
-
var t = e.from_html("<div class=\"flex flex-col items-start justify-center rounded\"><!></div>");
|
|
5
|
-
function n(n, r) {
|
|
6
|
-
var i = t(), a = e.child(i);
|
|
7
|
-
e.snippet(a, () => r.children ?? e.noop), e.reset(i), e.append(n, i);
|
|
8
|
-
}
|
|
9
|
-
//#endregion
|
|
10
|
-
export { n as default };
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { monitorsManager as e } from "../monitors/monitors.svelte.js";
|
|
2
|
-
import { collocationSitesMapIntegration as t } from "../collocation-sites/collocations-map-integration.svelte.js";
|
|
3
|
-
import { windMapIntegration as n } from "../wind/wind.svelte.js";
|
|
4
|
-
import r from "./DisplayOption.js";
|
|
5
|
-
import i from "./ToggleSwitch.js";
|
|
6
|
-
import { hmsFireMapIntegration as a } from "../hms/hms-fire-map-integration.svelte.js";
|
|
7
|
-
import { hmsSmokeMapIntegration as o } from "../hms/hms-smoke-map-integration.svelte.js";
|
|
8
|
-
import * as s from "svelte/internal/client";
|
|
9
|
-
import "svelte/internal/disclose-version";
|
|
10
|
-
import "svelte/internal/flags/legacy";
|
|
11
|
-
import { CrosshairIcon as c, FlameIcon as l, WavesVerticalIcon as u, WindIcon as d } from "@lucide/svelte";
|
|
12
|
-
//#region src/lib/components/MapLayersDisplayOptions.svelte
|
|
13
|
-
var f = s.reactive_import(() => n), p = s.reactive_import(() => t), m = s.reactive_import(() => a), h = s.reactive_import(() => o), g = s.from_html("<div class=\"flex gap-1 items-center\"><!> <!></div>"), _ = s.from_html("<p class=\"text-lg font-bold whitespace-nowrap underline\">Map Layers</p> <div class=\"flex gap-1 items-center\"><!> <!></div> <!> <div class=\"flex gap-1 items-center\"><!> <!></div> <div class=\"flex gap-1 items-center\"><!> <!></div>", 1);
|
|
14
|
-
function v(t, n) {
|
|
15
|
-
s.push(n, !1), s.init(), r(t, {
|
|
16
|
-
children: (t, n) => {
|
|
17
|
-
var r = _(), a = s.sibling(s.first_child(r), 2), o = s.child(a);
|
|
18
|
-
d(o, { size: "16" }), i(s.sibling(o, 2), {
|
|
19
|
-
id: "wind",
|
|
20
|
-
label: "Wind",
|
|
21
|
-
get value() {
|
|
22
|
-
return f().enabled;
|
|
23
|
-
},
|
|
24
|
-
set value(e) {
|
|
25
|
-
f(f().enabled = e);
|
|
26
|
-
},
|
|
27
|
-
$$legacy: !0
|
|
28
|
-
}), s.reset(a);
|
|
29
|
-
var v = s.sibling(a, 2), y = (e) => {
|
|
30
|
-
var t = g(), n = s.child(t);
|
|
31
|
-
c(n, {
|
|
32
|
-
size: "16",
|
|
33
|
-
color: "#4A5FC6"
|
|
34
|
-
}), i(s.sibling(n, 2), {
|
|
35
|
-
id: "collocation-sites",
|
|
36
|
-
label: "Collocation Sites",
|
|
37
|
-
get value() {
|
|
38
|
-
return p().enabled;
|
|
39
|
-
},
|
|
40
|
-
set value(e) {
|
|
41
|
-
p(p().enabled = e);
|
|
42
|
-
},
|
|
43
|
-
$$legacy: !0
|
|
44
|
-
}), s.reset(t), s.append(e, t);
|
|
45
|
-
};
|
|
46
|
-
s.if(v, (t) => {
|
|
47
|
-
e.pollutant === "pm25" && t(y);
|
|
48
|
-
});
|
|
49
|
-
var b = s.sibling(v, 2), x = s.child(b);
|
|
50
|
-
l(x, { size: "16" }), i(s.sibling(x, 2), {
|
|
51
|
-
id: "hms-fire",
|
|
52
|
-
label: "HMS Fire",
|
|
53
|
-
get value() {
|
|
54
|
-
return m().enabled;
|
|
55
|
-
},
|
|
56
|
-
set value(e) {
|
|
57
|
-
m(m().enabled = e);
|
|
58
|
-
},
|
|
59
|
-
$$legacy: !0
|
|
60
|
-
}), s.reset(b);
|
|
61
|
-
var S = s.sibling(b, 2), C = s.child(S);
|
|
62
|
-
u(C, { size: "16" }), i(s.sibling(C, 2), {
|
|
63
|
-
id: "hms-smoke",
|
|
64
|
-
label: "HMS Smoke",
|
|
65
|
-
get value() {
|
|
66
|
-
return h().enabled;
|
|
67
|
-
},
|
|
68
|
-
set value(e) {
|
|
69
|
-
h(h().enabled = e);
|
|
70
|
-
},
|
|
71
|
-
$$legacy: !0
|
|
72
|
-
}), s.reset(S), s.append(t, r);
|
|
73
|
-
},
|
|
74
|
-
$$slots: { default: !0 }
|
|
75
|
-
}), s.pop();
|
|
76
|
-
}
|
|
77
|
-
//#endregion
|
|
78
|
-
export { v as default };
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import * as e from "svelte/internal/client";
|
|
2
|
-
import { searchParams as t } from "sv-router";
|
|
3
|
-
import "svelte/internal/disclose-version";
|
|
4
|
-
import { untrack as n } from "svelte";
|
|
5
|
-
//#region src/lib/components/SegmentedControl.svelte
|
|
6
|
-
var r = e.from_html("<p> </p>"), i = e.from_html("<label class=\"relative z-1 cursor-pointer text-center transition-all duration-750 active:scale-95 has-checked:text-white\"><input type=\"radio\" class=\"hidden\"/> </label>"), a = e.from_html("<div class=\"relative\"><!> <div class=\"relative flex gap-4 px-[.5em] before:absolute before:top-[0.125em] before:bottom-[0.125em] before:left-0 before:z-0 before:w-(--highlight-width) before:translate-x-(--highlight-x-pos) before:rounded-md before:bg-[#5465FF] before:transition-transform before:duration-500 before:content-['']\"></div></div>");
|
|
7
|
-
function o(o, s) {
|
|
8
|
-
e.push(s, !0);
|
|
9
|
-
let c = [], l = e.prop(s, "group", 15), u = e.state(void 0);
|
|
10
|
-
e.user_effect(() => {
|
|
11
|
-
if (l(), !e.get(u)) return;
|
|
12
|
-
let r = e.get(u).querySelector("input:checked");
|
|
13
|
-
if (!r) return;
|
|
14
|
-
n(() => t.get("pollutant")) !== r.value && n(() => t.set("pollutant", r.value));
|
|
15
|
-
let i = parseFloat(getComputedStyle(e.get(u)).fontSize), a = r.closest("label"), o = e.get(u).getBoundingClientRect(), s = a.getBoundingClientRect();
|
|
16
|
-
e.get(u).style.setProperty("--highlight-width", `${s.width + i}px`), e.get(u).style.setProperty("--highlight-x-pos", `${s.left - o.left - i / 2}px`);
|
|
17
|
-
});
|
|
18
|
-
var d = a(), f = e.child(d), p = (t) => {
|
|
19
|
-
var n = r(), i = e.child(n, !0);
|
|
20
|
-
e.reset(n), e.template_effect(() => e.set_text(i, s.segmentLabel)), e.append(t, n);
|
|
21
|
-
};
|
|
22
|
-
e.if(f, (e) => {
|
|
23
|
-
s.segmentLabel && e(p);
|
|
24
|
-
});
|
|
25
|
-
var m = e.sibling(f, 2);
|
|
26
|
-
e.each(m, 21, () => s.options, ({ label: e, value: t }) => t, (t, n, r, a) => {
|
|
27
|
-
let o = () => e.get(n).label, s = () => e.get(n).value, u = e.derived(() => `${s()}-segmented-control-option`);
|
|
28
|
-
var d = i(), f = e.child(d);
|
|
29
|
-
e.remove_input_defaults(f);
|
|
30
|
-
var p, m = e.sibling(f);
|
|
31
|
-
e.reset(d), e.template_effect(() => {
|
|
32
|
-
e.set_attribute(d, "for", e.get(u)), e.set_attribute(f, "id", e.get(u)), e.set_attribute(f, "name", o()), p !== (p = s()) && (f.value = (f.__value = s()) ?? ""), e.set_text(m, ` ${o() ?? ""}`);
|
|
33
|
-
}), e.bind_group(c, [], f, () => (s(), l()), l), e.append(t, d);
|
|
34
|
-
}), e.reset(m), e.bind_this(m, (t) => e.set(u, t), () => e.get(u)), e.reset(d), e.append(o, d), e.pop();
|
|
35
|
-
}
|
|
36
|
-
//#endregion
|
|
37
|
-
export { o as default };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import * as e from "svelte/internal/client";
|
|
2
|
-
import "svelte/internal/disclose-version";
|
|
3
|
-
//#region src/lib/components/ToggleSwitch.svelte
|
|
4
|
-
var t = e.from_html("<label> <div class=\"switch svelte-1inz2ds\"><input class=\"switch-input svelte-1inz2ds\" type=\"checkbox\"/> <span class=\"slider round svelte-1inz2ds\"></span></div></label>"), n = {
|
|
5
|
-
hash: "svelte-1inz2ds",
|
|
6
|
-
code: ".switch.svelte-1inz2ds {--animation-duration: 100ms;--switch-diameter: 1.625em;--switch-offset: 0.25em;--track-width: 3.75em;--track-height: 2.125em;font-size:0.5em;position:relative;display:inline-block;width:var(--track-width);height:var(--track-height);transform:scale(0.8);.switch-input:where(.svelte-1inz2ds) {opacity:0;width:0;height:0;&:checked + .slider:where(.svelte-1inz2ds) {background-color:#2196f3;}&:focus + .slider:where(.svelte-1inz2ds) {box-shadow:0 0 1px #2196f3;}&:checked + .slider:where(.svelte-1inz2ds):before {-webkit-transform:translateX(var(--switch-diameter));-ms-transform:translateX(var(--switch-diameter));transform:translateX(var(--switch-diameter));}}.slider:where(.svelte-1inz2ds) {position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:#ccc;-webkit-transition:var(--animation-duration);transition:var(--animation-duration);&:before {position:absolute;content:\"\";height:var(--switch-diameter);width:var(--switch-diameter);left:var(--switch-offset);bottom:var(--switch-offset);background-color:white;-webkit-transition:var(--animation-duration);transition:var(--animation-duration);}\n /* Rounded sliders */&.round {border-radius:var(--track-height);}&.round:before {border-radius:50%;}}}"
|
|
7
|
-
};
|
|
8
|
-
function r(r, i) {
|
|
9
|
-
e.push(i, !0), e.append_styles(r, n);
|
|
10
|
-
let a = e.prop(i, "value", 15);
|
|
11
|
-
var o = t(), s = e.child(o), c = e.sibling(s), l = e.child(c);
|
|
12
|
-
e.remove_input_defaults(l), e.next(2), e.reset(c), e.reset(o), e.template_effect(() => {
|
|
13
|
-
e.set_attribute(o, "for", i.id), e.set_class(o, 1, e.clsx(["flex cursor-pointer items-center justify-center gap-x-[0.25em] whitespace-nowrap select-none", { "flex-row-reverse": i.reverse }])), e.set_text(s, `${i.label ?? ""} `), e.set_attribute(l, "id", i.id), e.set_attribute(l, "name", i.id);
|
|
14
|
-
}), e.bind_checked(l, a), e.append(r, o), e.pop();
|
|
15
|
-
}
|
|
16
|
-
//#endregion
|
|
17
|
-
export { r as default };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { tv as e } from "../../../node_modules/tailwind-variants/dist/index.js";
|
|
2
|
-
import * as t from "svelte/internal/client";
|
|
3
|
-
import "svelte/internal/disclose-version";
|
|
4
|
-
//#region src/lib/components/ui/button/button.svelte
|
|
5
|
-
var n = e({
|
|
6
|
-
base: "focus-visible:border-ring focus-visible:ring-ring/50 aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive dark:aria-invalid:border-destructive/50 rounded-lg border border-transparent bg-clip-padding text-sm font-medium focus-visible:ring-3 active:not-aria-[haspopup]:translate-y-px aria-invalid:ring-3 [&_svg:not([class*='size-'])]:size-4 group/button inline-flex shrink-0 items-center justify-center whitespace-nowrap transition-all outline-none select-none disabled:pointer-events-none disabled:opacity-50 [&_svg]:pointer-events-none [&_svg]:shrink-0",
|
|
7
|
-
variants: {
|
|
8
|
-
variant: {
|
|
9
|
-
default: "bg-primary text-primary-foreground [a]:hover:bg-primary/80",
|
|
10
|
-
outline: "border-border bg-background hover:bg-muted hover:text-foreground dark:bg-input/30 dark:border-input dark:hover:bg-input/50 aria-expanded:bg-muted aria-expanded:text-foreground",
|
|
11
|
-
secondary: "bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground",
|
|
12
|
-
ghost: "hover:bg-muted hover:text-foreground dark:hover:bg-muted/50 aria-expanded:bg-muted aria-expanded:text-foreground",
|
|
13
|
-
destructive: "bg-destructive/10 hover:bg-destructive/20 focus-visible:ring-destructive/20 dark:focus-visible:ring-destructive/40 dark:bg-destructive/20 text-destructive focus-visible:border-destructive/40 dark:hover:bg-destructive/30",
|
|
14
|
-
link: "text-primary underline-offset-4 hover:underline"
|
|
15
|
-
},
|
|
16
|
-
size: {
|
|
17
|
-
default: "h-8 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
|
|
18
|
-
xs: "h-6 gap-1 rounded-[min(var(--radius-md),10px)] px-2 text-xs in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3",
|
|
19
|
-
sm: "h-7 gap-1 rounded-[min(var(--radius-md),12px)] px-2.5 text-[0.8rem] in-data-[slot=button-group]:rounded-lg has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3.5",
|
|
20
|
-
lg: "h-9 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2",
|
|
21
|
-
icon: "size-8",
|
|
22
|
-
"icon-xs": "size-6 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-lg [&_svg:not([class*='size-'])]:size-3",
|
|
23
|
-
"icon-sm": "size-7 rounded-[min(var(--radius-md),12px)] in-data-[slot=button-group]:rounded-lg",
|
|
24
|
-
"icon-lg": "size-9"
|
|
25
|
-
}
|
|
26
|
-
},
|
|
27
|
-
defaultVariants: {
|
|
28
|
-
variant: "default",
|
|
29
|
-
size: "default"
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
t.from_html("<a><!></a>"), t.from_html("<button><!></button>");
|
|
33
|
-
//#endregion
|
|
34
|
-
export { n as buttonVariants };
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
import { $ad063034c8620db8$export$aa8b41735afcabd2 as e } from "../../../node_modules/@internationalized/date/dist/private/queries.js";
|
|
2
|
-
import { $12a3c853105e5a70$export$ad991b66133851cf as t } from "../../../node_modules/@internationalized/date/dist/private/DateFormatter.js";
|
|
3
|
-
import n from "./range-calendar-month-select.js";
|
|
4
|
-
import r from "./range-calendar-year-select.js";
|
|
5
|
-
import * as i from "svelte/internal/client";
|
|
6
|
-
import "svelte/internal/disclose-version";
|
|
7
|
-
//#region src/lib/components/ui/range-calendar/range-calendar-caption.svelte
|
|
8
|
-
var a = i.from_html("<!> <!>", 1), o = i.from_html("<!> <!>", 1), s = i.from_html("<!> <!>", 1);
|
|
9
|
-
function c(c, l) {
|
|
10
|
-
i.push(l, !0);
|
|
11
|
-
let u = (e) => {
|
|
12
|
-
n(e, {
|
|
13
|
-
get months() {
|
|
14
|
-
return l.months;
|
|
15
|
-
},
|
|
16
|
-
get monthFormat() {
|
|
17
|
-
return l.monthFormat;
|
|
18
|
-
},
|
|
19
|
-
get value() {
|
|
20
|
-
return l.month.month;
|
|
21
|
-
},
|
|
22
|
-
onchange: (e) => {
|
|
23
|
-
if (!f()) return;
|
|
24
|
-
let t = Number.parseInt(e.currentTarget.value);
|
|
25
|
-
f(f().set({ month: t }).subtract({ months: p() }));
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
}, d = (e) => {
|
|
29
|
-
r(e, {
|
|
30
|
-
get years() {
|
|
31
|
-
return l.years;
|
|
32
|
-
},
|
|
33
|
-
get yearFormat() {
|
|
34
|
-
return l.yearFormat;
|
|
35
|
-
},
|
|
36
|
-
get value() {
|
|
37
|
-
return l.month.year;
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
}, f = i.prop(l, "placeholder", 15), p = i.prop(l, "monthIndex", 3, 0);
|
|
41
|
-
function m(n) {
|
|
42
|
-
let r = n.toDate(e());
|
|
43
|
-
return typeof l.yearFormat == "function" ? l.yearFormat(r.getFullYear()) : new t(l.locale, { year: l.yearFormat }).format(r);
|
|
44
|
-
}
|
|
45
|
-
function h(n) {
|
|
46
|
-
let r = n.toDate(e());
|
|
47
|
-
return typeof l.monthFormat == "function" ? l.monthFormat(r.getMonth() + 1) : new t(l.locale, { month: l.monthFormat }).format(r);
|
|
48
|
-
}
|
|
49
|
-
var g = i.comment(), _ = i.first_child(g), v = (e) => {
|
|
50
|
-
var t = a(), n = i.first_child(t);
|
|
51
|
-
u(n), d(i.sibling(n, 2)), i.append(e, t);
|
|
52
|
-
}, y = (e) => {
|
|
53
|
-
var t = o(), n = i.first_child(t);
|
|
54
|
-
u(n);
|
|
55
|
-
var r = i.sibling(n, 2), a = (e) => {
|
|
56
|
-
var t = i.text();
|
|
57
|
-
i.template_effect((e) => i.set_text(t, e), [() => m(f())]), i.append(e, t);
|
|
58
|
-
};
|
|
59
|
-
i.if(r, (e) => {
|
|
60
|
-
f() && e(a);
|
|
61
|
-
}), i.append(e, t);
|
|
62
|
-
}, b = (e) => {
|
|
63
|
-
var t = s(), n = i.first_child(t), r = (e) => {
|
|
64
|
-
var t = i.text();
|
|
65
|
-
i.template_effect((e) => i.set_text(t, e), [() => h(f())]), i.append(e, t);
|
|
66
|
-
};
|
|
67
|
-
i.if(n, (e) => {
|
|
68
|
-
f() && e(r);
|
|
69
|
-
}), d(i.sibling(n, 2)), i.append(e, t);
|
|
70
|
-
}, x = (e) => {
|
|
71
|
-
var t = i.text();
|
|
72
|
-
i.template_effect((e, n) => i.set_text(t, `${e ?? ""} ${n ?? ""}`), [() => h(l.month), () => m(l.month)]), i.append(e, t);
|
|
73
|
-
};
|
|
74
|
-
i.if(_, (e) => {
|
|
75
|
-
l.captionLayout === "dropdown" ? e(v) : l.captionLayout === "dropdown-months" ? e(y, 1) : l.captionLayout === "dropdown-years" ? e(b, 2) : e(x, -1);
|
|
76
|
-
}), i.append(c, g), i.pop();
|
|
77
|
-
}
|
|
78
|
-
//#endregion
|
|
79
|
-
export { c as default };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { cn as e } from "../../../utils.js";
|
|
2
|
-
import * as t from "svelte/internal/client";
|
|
3
|
-
import "svelte/internal/disclose-version";
|
|
4
|
-
import { RangeCalendar as n } from "bits-ui";
|
|
5
|
-
//#region src/lib/components/ui/range-calendar/range-calendar-cell.svelte
|
|
6
|
-
function r(r, i) {
|
|
7
|
-
t.push(i, !0);
|
|
8
|
-
let a = t.prop(i, "ref", 15, null), o = t.rest_props(i, [
|
|
9
|
-
"$$slots",
|
|
10
|
-
"$$events",
|
|
11
|
-
"$$legacy",
|
|
12
|
-
"ref",
|
|
13
|
-
"class"
|
|
14
|
-
]);
|
|
15
|
-
var s = t.comment(), c = t.first_child(s);
|
|
16
|
-
{
|
|
17
|
-
let r = t.derived(() => e("dark:[&:has([data-range-start])]:hover:bg-accent dark:[&:has([data-range-end])]:hover:bg-accent [&:has([data-range-middle])]:bg-accent dark:[&:has([data-range-middle])]:hover:bg-accent/50 [&:has([data-selected])]:bg-accent relative size-(--cell-size) p-0 text-center text-sm focus-within:z-20 data-[range-middle]:rounded-e-(--cell-radius) [&:first-child[data-selected]_[data-bits-day]]:rounded-s-(--cell-radius) [&:has([data-range-end])]:rounded-e-(--cell-radius) [&:has([data-range-middle])]:rounded-none first:[&:has([data-range-middle])]:rounded-s-(--cell-radius) last:[&:has([data-range-middle])]:rounded-e-(--cell-radius) [&:has([data-range-start])]:rounded-s-(--cell-radius) [&:last-child[data-selected]_[data-bits-day]]:rounded-e-(--cell-radius)", i.class));
|
|
18
|
-
t.component(c, () => n.Cell, (e, n) => {
|
|
19
|
-
n(e, t.spread_props({ get class() {
|
|
20
|
-
return t.get(r);
|
|
21
|
-
} }, () => o, {
|
|
22
|
-
get ref() {
|
|
23
|
-
return a();
|
|
24
|
-
},
|
|
25
|
-
set ref(e) {
|
|
26
|
-
a(e);
|
|
27
|
-
}
|
|
28
|
-
}));
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
t.append(r, s), t.pop();
|
|
32
|
-
}
|
|
33
|
-
//#endregion
|
|
34
|
-
export { r as default };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { cn as e } from "../../../utils.js";
|
|
2
|
-
import * as t from "svelte/internal/client";
|
|
3
|
-
import "svelte/internal/disclose-version";
|
|
4
|
-
import { RangeCalendar as n } from "bits-ui";
|
|
5
|
-
//#region src/lib/components/ui/range-calendar/range-calendar-day.svelte
|
|
6
|
-
function r(r, i) {
|
|
7
|
-
t.push(i, !0);
|
|
8
|
-
let a = t.prop(i, "ref", 15, null), o = t.rest_props(i, [
|
|
9
|
-
"$$slots",
|
|
10
|
-
"$$events",
|
|
11
|
-
"$$legacy",
|
|
12
|
-
"ref",
|
|
13
|
-
"class"
|
|
14
|
-
]);
|
|
15
|
-
var s = t.comment(), c = t.first_child(s);
|
|
16
|
-
{
|
|
17
|
-
let r = t.derived(() => e("flex size-(--cell-size) flex-col items-center justify-center gap-1 rounded-(--cell-radius) p-0 leading-none font-normal whitespace-nowrap select-none", "not-data-selected:hover:bg-accent/50 not-data-selected:hover:text-accent-foreground", "[&[data-today]:not([data-selected])]:bg-accent [&[data-today]:not([data-selected])]:text-accent-foreground [&[data-today][data-disabled]]:text-muted-foreground data-[range-middle]:rounded-none", "data-[range-start]:bg-primary data-[range-start]:text-primary-foreground data-[range-start]:hover:text-foreground", "data-[range-end]:bg-primary data-[range-end]:text-primary-foreground data-[range-end]:hover:text-foreground", "[&[data-outside-month]:not([data-selected])]:text-muted-foreground [&[data-outside-month]:not([data-selected])]:hover:text-accent-foreground", "data-[disabled]:text-muted-foreground data-[disabled]:pointer-events-none data-[disabled]:opacity-50", "data-[unavailable]:line-through", "dark:data-[range-middle]:hover:bg-accent/0", "focus:border-ring focus:ring-ring/50 focus:relative", "[&>span]:text-xs [&>span]:opacity-70", i.class));
|
|
18
|
-
t.component(c, () => n.Day, (e, n) => {
|
|
19
|
-
n(e, t.spread_props({ get class() {
|
|
20
|
-
return t.get(r);
|
|
21
|
-
} }, () => o, {
|
|
22
|
-
get ref() {
|
|
23
|
-
return a();
|
|
24
|
-
},
|
|
25
|
-
set ref(e) {
|
|
26
|
-
a(e);
|
|
27
|
-
}
|
|
28
|
-
}));
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
t.append(r, s), t.pop();
|
|
32
|
-
}
|
|
33
|
-
//#endregion
|
|
34
|
-
export { r as default };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import * as e from "svelte/internal/client";
|
|
2
|
-
import "svelte/internal/disclose-version";
|
|
3
|
-
import { RangeCalendar as t } from "bits-ui";
|
|
4
|
-
//#region src/lib/components/ui/range-calendar/range-calendar-grid-body.svelte
|
|
5
|
-
function n(n, r) {
|
|
6
|
-
e.push(r, !0);
|
|
7
|
-
let i = e.prop(r, "ref", 15, null), a = e.rest_props(r, [
|
|
8
|
-
"$$slots",
|
|
9
|
-
"$$events",
|
|
10
|
-
"$$legacy",
|
|
11
|
-
"ref"
|
|
12
|
-
]);
|
|
13
|
-
var o = e.comment(), s = e.first_child(o);
|
|
14
|
-
e.component(s, () => t.GridBody, (t, n) => {
|
|
15
|
-
n(t, e.spread_props(() => a, {
|
|
16
|
-
get ref() {
|
|
17
|
-
return i();
|
|
18
|
-
},
|
|
19
|
-
set ref(e) {
|
|
20
|
-
i(e);
|
|
21
|
-
}
|
|
22
|
-
}));
|
|
23
|
-
}), e.append(n, o), e.pop();
|
|
24
|
-
}
|
|
25
|
-
//#endregion
|
|
26
|
-
export { n as default };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import * as e from "svelte/internal/client";
|
|
2
|
-
import "svelte/internal/disclose-version";
|
|
3
|
-
import { RangeCalendar as t } from "bits-ui";
|
|
4
|
-
//#region src/lib/components/ui/range-calendar/range-calendar-grid-head.svelte
|
|
5
|
-
function n(n, r) {
|
|
6
|
-
e.push(r, !0);
|
|
7
|
-
let i = e.prop(r, "ref", 15, null), a = e.rest_props(r, [
|
|
8
|
-
"$$slots",
|
|
9
|
-
"$$events",
|
|
10
|
-
"$$legacy",
|
|
11
|
-
"ref"
|
|
12
|
-
]);
|
|
13
|
-
var o = e.comment(), s = e.first_child(o);
|
|
14
|
-
e.component(s, () => t.GridHead, (t, n) => {
|
|
15
|
-
n(t, e.spread_props(() => a, {
|
|
16
|
-
get ref() {
|
|
17
|
-
return i();
|
|
18
|
-
},
|
|
19
|
-
set ref(e) {
|
|
20
|
-
i(e);
|
|
21
|
-
}
|
|
22
|
-
}));
|
|
23
|
-
}), e.append(n, o), e.pop();
|
|
24
|
-
}
|
|
25
|
-
//#endregion
|
|
26
|
-
export { n as default };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { cn as e } from "../../../utils.js";
|
|
2
|
-
import * as t from "svelte/internal/client";
|
|
3
|
-
import "svelte/internal/disclose-version";
|
|
4
|
-
import { RangeCalendar as n } from "bits-ui";
|
|
5
|
-
//#region src/lib/components/ui/range-calendar/range-calendar-grid-row.svelte
|
|
6
|
-
function r(r, i) {
|
|
7
|
-
t.push(i, !0);
|
|
8
|
-
let a = t.prop(i, "ref", 15, null), o = t.rest_props(i, [
|
|
9
|
-
"$$slots",
|
|
10
|
-
"$$events",
|
|
11
|
-
"$$legacy",
|
|
12
|
-
"ref",
|
|
13
|
-
"class"
|
|
14
|
-
]);
|
|
15
|
-
var s = t.comment(), c = t.first_child(s);
|
|
16
|
-
{
|
|
17
|
-
let r = t.derived(() => e("flex", i.class));
|
|
18
|
-
t.component(c, () => n.GridRow, (e, n) => {
|
|
19
|
-
n(e, t.spread_props({ get class() {
|
|
20
|
-
return t.get(r);
|
|
21
|
-
} }, () => o, {
|
|
22
|
-
get ref() {
|
|
23
|
-
return a();
|
|
24
|
-
},
|
|
25
|
-
set ref(e) {
|
|
26
|
-
a(e);
|
|
27
|
-
}
|
|
28
|
-
}));
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
t.append(r, s), t.pop();
|
|
32
|
-
}
|
|
33
|
-
//#endregion
|
|
34
|
-
export { r as default };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { cn as e } from "../../../utils.js";
|
|
2
|
-
import * as t from "svelte/internal/client";
|
|
3
|
-
import "svelte/internal/disclose-version";
|
|
4
|
-
import { RangeCalendar as n } from "bits-ui";
|
|
5
|
-
//#region src/lib/components/ui/range-calendar/range-calendar-grid.svelte
|
|
6
|
-
function r(r, i) {
|
|
7
|
-
t.push(i, !0);
|
|
8
|
-
let a = t.prop(i, "ref", 15, null), o = t.rest_props(i, [
|
|
9
|
-
"$$slots",
|
|
10
|
-
"$$events",
|
|
11
|
-
"$$legacy",
|
|
12
|
-
"ref",
|
|
13
|
-
"class"
|
|
14
|
-
]);
|
|
15
|
-
var s = t.comment(), c = t.first_child(s);
|
|
16
|
-
{
|
|
17
|
-
let r = t.derived(() => e("mt-4 flex w-full border-collapse flex-col gap-1", i.class));
|
|
18
|
-
t.component(c, () => n.Grid, (e, n) => {
|
|
19
|
-
n(e, t.spread_props({ get class() {
|
|
20
|
-
return t.get(r);
|
|
21
|
-
} }, () => o, {
|
|
22
|
-
get ref() {
|
|
23
|
-
return a();
|
|
24
|
-
},
|
|
25
|
-
set ref(e) {
|
|
26
|
-
a(e);
|
|
27
|
-
}
|
|
28
|
-
}));
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
t.append(r, s), t.pop();
|
|
32
|
-
}
|
|
33
|
-
//#endregion
|
|
34
|
-
export { r as default };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { cn as e } from "../../../utils.js";
|
|
2
|
-
import * as t from "svelte/internal/client";
|
|
3
|
-
import "svelte/internal/disclose-version";
|
|
4
|
-
import { RangeCalendar as n } from "bits-ui";
|
|
5
|
-
//#region src/lib/components/ui/range-calendar/range-calendar-head-cell.svelte
|
|
6
|
-
function r(r, i) {
|
|
7
|
-
t.push(i, !0);
|
|
8
|
-
let a = t.prop(i, "ref", 15, null), o = t.rest_props(i, [
|
|
9
|
-
"$$slots",
|
|
10
|
-
"$$events",
|
|
11
|
-
"$$legacy",
|
|
12
|
-
"ref",
|
|
13
|
-
"class"
|
|
14
|
-
]);
|
|
15
|
-
var s = t.comment(), c = t.first_child(s);
|
|
16
|
-
{
|
|
17
|
-
let r = t.derived(() => e("text-muted-foreground w-(--cell-size) rounded-md text-[0.8rem] font-normal", i.class));
|
|
18
|
-
t.component(c, () => n.HeadCell, (e, n) => {
|
|
19
|
-
n(e, t.spread_props({ get class() {
|
|
20
|
-
return t.get(r);
|
|
21
|
-
} }, () => o, {
|
|
22
|
-
get ref() {
|
|
23
|
-
return a();
|
|
24
|
-
},
|
|
25
|
-
set ref(e) {
|
|
26
|
-
a(e);
|
|
27
|
-
}
|
|
28
|
-
}));
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
t.append(r, s), t.pop();
|
|
32
|
-
}
|
|
33
|
-
//#endregion
|
|
34
|
-
export { r as default };
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { cn as e } from "../../../utils.js";
|
|
2
|
-
import * as t from "svelte/internal/client";
|
|
3
|
-
import "svelte/internal/disclose-version";
|
|
4
|
-
import { RangeCalendar as n } from "bits-ui";
|
|
5
|
-
//#region src/lib/components/ui/range-calendar/range-calendar-header.svelte
|
|
6
|
-
function r(r, i) {
|
|
7
|
-
t.push(i, !0);
|
|
8
|
-
let a = t.prop(i, "ref", 15, null), o = t.rest_props(i, [
|
|
9
|
-
"$$slots",
|
|
10
|
-
"$$events",
|
|
11
|
-
"$$legacy",
|
|
12
|
-
"ref",
|
|
13
|
-
"class"
|
|
14
|
-
]);
|
|
15
|
-
var s = t.comment(), c = t.first_child(s);
|
|
16
|
-
{
|
|
17
|
-
let r = t.derived(() => e("flex h-(--cell-size) w-full items-center justify-center gap-1.5 text-sm font-medium", i.class));
|
|
18
|
-
t.component(c, () => n.Header, (e, n) => {
|
|
19
|
-
n(e, t.spread_props({ get class() {
|
|
20
|
-
return t.get(r);
|
|
21
|
-
} }, () => o, {
|
|
22
|
-
get ref() {
|
|
23
|
-
return a();
|
|
24
|
-
},
|
|
25
|
-
set ref(e) {
|
|
26
|
-
a(e);
|
|
27
|
-
}
|
|
28
|
-
}));
|
|
29
|
-
});
|
|
30
|
-
}
|
|
31
|
-
t.append(r, s), t.pop();
|
|
32
|
-
}
|
|
33
|
-
//#endregion
|
|
34
|
-
export { r as default };
|