@sjvair/monitor-map 3.0.2 → 3.0.3
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.js +14 -14
- package/dist/lib/{src/MapView.js → MainMapView.js} +2 -2
- package/dist/lib/MapLegend.js +13 -0
- package/dist/lib/MonitorDetailPanel.js +169 -0
- package/dist/lib/MonitorMapLayout.js +91 -0
- package/dist/lib/_virtual/_rolldown/runtime.js +11 -0
- package/dist/lib/assets/logos/airgradient-blue.js +4 -0
- package/dist/lib/assets/logos/airnow-compact.js +4 -0
- package/dist/lib/assets/logos/carb-compact.js +4 -0
- package/dist/lib/assets/logos/purpleair-compact.js +4 -0
- package/dist/lib/assets/logos/sjvair.js +4 -0
- package/dist/lib/collocation-sites/CollocationTooltip.js +1 -1
- package/dist/lib/collocation-sites/collocations-map-integration.svelte.js +20 -20
- package/dist/lib/components/DataBox.js +1 -1
- package/dist/lib/components/DisplayOption.js +1 -1
- package/dist/lib/components/MapLayersDisplayOptions.js +44 -35
- package/dist/lib/components/SegmentedControl.js +4 -4
- package/dist/lib/components/ToggleSwitch.js +1 -1
- package/dist/lib/components/ui/button/button.js +4 -4
- package/dist/lib/components/ui/range-calendar/range-calendar-caption.js +57 -54
- package/dist/lib/components/ui/range-calendar/range-calendar-cell.js +19 -18
- package/dist/lib/components/ui/range-calendar/range-calendar-day.js +19 -18
- package/dist/lib/components/ui/range-calendar/range-calendar-grid-body.js +17 -16
- package/dist/lib/components/ui/range-calendar/range-calendar-grid-head.js +17 -16
- package/dist/lib/components/ui/range-calendar/range-calendar-grid-row.js +19 -18
- package/dist/lib/components/ui/range-calendar/range-calendar-grid.js +19 -18
- package/dist/lib/components/ui/range-calendar/range-calendar-head-cell.js +19 -18
- package/dist/lib/components/ui/range-calendar/range-calendar-header.js +19 -18
- package/dist/lib/components/ui/range-calendar/range-calendar-month-select.js +31 -31
- package/dist/lib/components/ui/range-calendar/range-calendar-month.js +19 -19
- package/dist/lib/components/ui/range-calendar/range-calendar-months.js +19 -19
- package/dist/lib/components/ui/range-calendar/range-calendar-nav.js +19 -19
- package/dist/lib/components/ui/range-calendar/range-calendar-next-button.js +27 -26
- package/dist/lib/components/ui/range-calendar/range-calendar-prev-button.js +27 -26
- package/dist/lib/components/ui/range-calendar/range-calendar-year-select.js +29 -29
- package/dist/lib/components/ui/range-calendar/range-calendar.js +154 -154
- package/dist/lib/data-chart/DataChart.js +76 -76
- package/dist/lib/ev-stations/components/EvStationClusterTooltip.js +16 -0
- package/dist/lib/ev-stations/components/EvStationTooltip.js +120 -0
- package/dist/lib/ev-stations/components/EvStationsDisplayOptions.js +41 -0
- package/dist/lib/ev-stations/data-maps.js +4 -0
- package/dist/lib/ev-stations/ev-station-icons.js +32 -0
- package/dist/lib/ev-stations/ev-stations-cluster-renderer.js +118 -0
- package/dist/lib/ev-stations/ev-stations-map-integration.svelte.js +181 -0
- package/dist/lib/ev-stations/ev-stations.svelte.js +33 -0
- package/dist/lib/ev-stations/zip-codes.js +136 -0
- package/dist/lib/hms/components/HMSFireLegend.js +35 -0
- package/dist/lib/index.js +19 -17
- package/dist/lib/map/Map.js +1 -1
- package/dist/lib/map/MapStyleDisplayOptions.js +16 -16
- package/dist/lib/map/Menu.js +23 -24
- package/dist/lib/map/integrations/map-icon-manager.js +3 -0
- package/dist/lib/map/utils.js +16 -13
- package/dist/lib/monitors/components/MonitorClusterTooltip.js +4 -4
- package/dist/lib/monitors/components/MonitorMarkersLegend.js +35 -0
- package/dist/lib/monitors/components/MonitorSubscriptionManager.js +1 -1
- package/dist/lib/monitors/components/MonitorTooltip.js +1 -1
- package/dist/lib/monitors/components/MonitorWidgetModal.js +1 -1
- package/dist/lib/monitors/components/MonitorsDisplayOptions.js +21 -21
- package/dist/lib/monitors/monitors-icon-manager.svelte.js +9 -9
- package/dist/lib/monitors/monitors-map-integration.svelte.js +36 -36
- package/dist/lib/monitors/monitors.svelte.js +38 -42
- package/dist/lib/router-context.js +13 -0
- package/dist/lib/routes.js +10 -0
- package/dist/lib/search/Search.js +124 -0
- package/dist/lib/search/service.js +90 -0
- package/dist/lib/sjvair-sjv.avif +0 -0
- package/dist/lib/sjvair-sjv.webp +0 -0
- package/dist/lib/sjvair-sjv2.avif +0 -0
- package/dist/lib/sjvair-sjv2.webp +0 -0
- package/dist/lib/utils.js +9 -3
- package/package.json +37 -36
- 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/index.ts +34 -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 +8 -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/assets/icons/adjustment-horizontal.js +0 -4
- 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/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,75 +1,84 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import r from "
|
|
5
|
-
import i from "
|
|
1
|
+
import e from "./DisplayOption.js";
|
|
2
|
+
import t from "./ToggleSwitch.js";
|
|
3
|
+
import { monitorsManager as n } from "../monitors/monitors.svelte.js";
|
|
4
|
+
import { windMapIntegration as r } from "../wind/wind.svelte.js";
|
|
5
|
+
import { collocationSitesMapIntegration as i } from "../collocation-sites/collocations-map-integration.svelte.js";
|
|
6
6
|
import { hmsFireMapIntegration as a } from "../hms/hms-fire-map-integration.svelte.js";
|
|
7
7
|
import { hmsSmokeMapIntegration as o } from "../hms/hms-smoke-map-integration.svelte.js";
|
|
8
|
-
import * as s from "svelte/internal/client";
|
|
9
8
|
import "svelte/internal/disclose-version";
|
|
9
|
+
import * as s from "svelte/internal/client";
|
|
10
|
+
import { CrosshairIcon as c, WavesVerticalIcon as l, WindIcon as u } from "@lucide/svelte";
|
|
10
11
|
import "svelte/internal/flags/legacy";
|
|
11
|
-
import { CrosshairIcon as c, FlameIcon as l, WavesVerticalIcon as u, WindIcon as d } from "@lucide/svelte";
|
|
12
12
|
//#region src/lib/components/MapLayersDisplayOptions.svelte
|
|
13
|
-
var
|
|
14
|
-
function v(
|
|
15
|
-
s.push(
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
var d = s.reactive_import(() => r), f = s.reactive_import(() => i), p = s.reactive_import(() => a), m = s.reactive_import(() => o), h = s.from_html("<div class=\"flex gap-1 items-center\"><!> <!></div>"), g = s.from_html("<img class=\"w-4\"/>"), _ = 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(r, i) {
|
|
15
|
+
s.push(i, !1);
|
|
16
|
+
let a = p().icons.get("hms-fire-xxl");
|
|
17
|
+
s.init(), e(r, {
|
|
18
|
+
children: (e, r) => {
|
|
19
|
+
var i = _(), o = s.sibling(s.first_child(i), 2), v = s.child(o);
|
|
20
|
+
u(v, { size: "16" }), t(s.sibling(v, 2), {
|
|
19
21
|
id: "wind",
|
|
20
22
|
label: "Wind",
|
|
21
23
|
get value() {
|
|
22
|
-
return
|
|
24
|
+
return d().enabled;
|
|
23
25
|
},
|
|
24
26
|
set value(e) {
|
|
25
|
-
|
|
27
|
+
d(d().enabled = e);
|
|
26
28
|
},
|
|
27
29
|
$$legacy: !0
|
|
28
|
-
}), s.reset(
|
|
29
|
-
var
|
|
30
|
-
var
|
|
31
|
-
c(
|
|
30
|
+
}), s.reset(o);
|
|
31
|
+
var y = s.sibling(o, 2), b = (e) => {
|
|
32
|
+
var n = h(), r = s.child(n);
|
|
33
|
+
c(r, {
|
|
32
34
|
size: "16",
|
|
33
35
|
color: "#4A5FC6"
|
|
34
|
-
}),
|
|
36
|
+
}), t(s.sibling(r, 2), {
|
|
35
37
|
id: "collocation-sites",
|
|
36
38
|
label: "Collocation Sites",
|
|
37
39
|
get value() {
|
|
38
|
-
return
|
|
40
|
+
return f().enabled;
|
|
39
41
|
},
|
|
40
42
|
set value(e) {
|
|
41
|
-
|
|
43
|
+
f(f().enabled = e);
|
|
42
44
|
},
|
|
43
45
|
$$legacy: !0
|
|
44
|
-
}), s.reset(
|
|
46
|
+
}), s.reset(n), s.append(e, n);
|
|
45
47
|
};
|
|
46
|
-
s.if(
|
|
47
|
-
|
|
48
|
+
s.if(y, (e) => {
|
|
49
|
+
n.pollutant === "pm25" && e(b);
|
|
48
50
|
});
|
|
49
|
-
var
|
|
50
|
-
|
|
51
|
+
var x = s.sibling(y, 2), S = s.child(x), C = (e) => {
|
|
52
|
+
var t = g();
|
|
53
|
+
s.template_effect(() => {
|
|
54
|
+
s.set_attribute(t, "src", a.image.src), s.set_attribute(t, "alt", a.image.alt);
|
|
55
|
+
}), s.append(e, t);
|
|
56
|
+
};
|
|
57
|
+
s.if(S, (e) => {
|
|
58
|
+
a && e(C);
|
|
59
|
+
}), t(s.sibling(S, 2), {
|
|
51
60
|
id: "hms-fire",
|
|
52
61
|
label: "HMS Fire",
|
|
53
62
|
get value() {
|
|
54
|
-
return
|
|
63
|
+
return p().enabled;
|
|
55
64
|
},
|
|
56
65
|
set value(e) {
|
|
57
|
-
|
|
66
|
+
p(p().enabled = e);
|
|
58
67
|
},
|
|
59
68
|
$$legacy: !0
|
|
60
|
-
}), s.reset(
|
|
61
|
-
var
|
|
62
|
-
|
|
69
|
+
}), s.reset(x);
|
|
70
|
+
var w = s.sibling(x, 2), T = s.child(w);
|
|
71
|
+
l(T, { size: "16" }), t(s.sibling(T, 2), {
|
|
63
72
|
id: "hms-smoke",
|
|
64
73
|
label: "HMS Smoke",
|
|
65
74
|
get value() {
|
|
66
|
-
return
|
|
75
|
+
return m().enabled;
|
|
67
76
|
},
|
|
68
77
|
set value(e) {
|
|
69
|
-
|
|
78
|
+
m(m().enabled = e);
|
|
70
79
|
},
|
|
71
80
|
$$legacy: !0
|
|
72
|
-
}), s.reset(
|
|
81
|
+
}), s.reset(w), s.append(e, i);
|
|
73
82
|
},
|
|
74
83
|
$$slots: { default: !0 }
|
|
75
84
|
}), s.pop();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import * as e from "svelte/internal/client";
|
|
2
|
-
import { searchParams as t } from "sv-router";
|
|
3
1
|
import "svelte/internal/disclose-version";
|
|
4
|
-
import
|
|
2
|
+
import * as e from "svelte/internal/client";
|
|
3
|
+
import { untrack as t } from "svelte";
|
|
4
|
+
import { searchParams as n } from "sv-router";
|
|
5
5
|
//#region src/lib/components/SegmentedControl.svelte
|
|
6
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
7
|
function o(o, s) {
|
|
@@ -11,7 +11,7 @@ function o(o, s) {
|
|
|
11
11
|
if (l(), !e.get(u)) return;
|
|
12
12
|
let r = e.get(u).querySelector("input:checked");
|
|
13
13
|
if (!r) return;
|
|
14
|
-
|
|
14
|
+
t(() => n.get("pollutant")) !== r.value && t(() => n.set("pollutant", r.value));
|
|
15
15
|
let i = parseFloat(getComputedStyle(e.get(u)).fontSize), a = r.closest("label"), o = e.get(u).getBoundingClientRect(), s = a.getBoundingClientRect();
|
|
16
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
17
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as e from "svelte/internal/client";
|
|
2
1
|
import "svelte/internal/disclose-version";
|
|
2
|
+
import * as e from "svelte/internal/client";
|
|
3
3
|
//#region src/lib/components/ToggleSwitch.svelte
|
|
4
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
5
|
hash: "svelte-1inz2ds",
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { tv as e } from "../../../node_modules/tailwind-variants/dist/index.js";
|
|
2
|
-
import * as t from "svelte/internal/client";
|
|
3
1
|
import "svelte/internal/disclose-version";
|
|
2
|
+
import * as e from "svelte/internal/client";
|
|
3
|
+
import { tv as t } from "tailwind-variants";
|
|
4
4
|
//#region src/lib/components/ui/button/button.svelte
|
|
5
|
-
var n =
|
|
5
|
+
var n = t({
|
|
6
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
7
|
variants: {
|
|
8
8
|
variant: {
|
|
@@ -29,6 +29,6 @@ var n = e({
|
|
|
29
29
|
size: "default"
|
|
30
30
|
}
|
|
31
31
|
});
|
|
32
|
-
|
|
32
|
+
e.from_html("<a><!></a>"), e.from_html("<button><!></button>");
|
|
33
33
|
//#endregion
|
|
34
34
|
export { n as buttonVariants };
|
|
@@ -1,79 +1,82 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
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";
|
|
1
|
+
import e from "./range-calendar-month-select.js";
|
|
2
|
+
import t from "./range-calendar-year-select.js";
|
|
6
3
|
import "svelte/internal/disclose-version";
|
|
4
|
+
import * as n from "svelte/internal/client";
|
|
5
|
+
import { DateFormatter as r, getLocalTimeZone as i } from "@internationalized/date";
|
|
7
6
|
//#region src/lib/components/ui/range-calendar/range-calendar-caption.svelte
|
|
8
|
-
var a =
|
|
9
|
-
function
|
|
10
|
-
|
|
11
|
-
let
|
|
12
|
-
|
|
7
|
+
var a = n.from_html("<!> <!>", 1);
|
|
8
|
+
function o(o, s) {
|
|
9
|
+
n.push(s, !0);
|
|
10
|
+
let c = (t) => {
|
|
11
|
+
e(t, {
|
|
13
12
|
get months() {
|
|
14
|
-
return
|
|
13
|
+
return s.months;
|
|
15
14
|
},
|
|
16
15
|
get monthFormat() {
|
|
17
|
-
return
|
|
16
|
+
return s.monthFormat;
|
|
18
17
|
},
|
|
19
18
|
get value() {
|
|
20
|
-
return
|
|
19
|
+
return s.month.month;
|
|
21
20
|
},
|
|
22
21
|
onchange: (e) => {
|
|
23
|
-
if (!
|
|
24
|
-
let t = Number.parseInt(e.currentTarget.value);
|
|
25
|
-
|
|
22
|
+
if (!u()) return;
|
|
23
|
+
let t = Number.parseInt(e.currentTarget.value), n = u().set({ month: t });
|
|
24
|
+
u(n.subtract({ months: d() }));
|
|
26
25
|
}
|
|
27
26
|
});
|
|
28
|
-
},
|
|
29
|
-
|
|
27
|
+
}, l = (e) => {
|
|
28
|
+
t(e, {
|
|
30
29
|
get years() {
|
|
31
|
-
return
|
|
30
|
+
return s.years;
|
|
32
31
|
},
|
|
33
32
|
get yearFormat() {
|
|
34
|
-
return
|
|
33
|
+
return s.yearFormat;
|
|
35
34
|
},
|
|
36
35
|
get value() {
|
|
37
|
-
return
|
|
36
|
+
return s.month.year;
|
|
38
37
|
}
|
|
39
38
|
});
|
|
40
|
-
},
|
|
41
|
-
function
|
|
42
|
-
let
|
|
43
|
-
return typeof
|
|
39
|
+
}, u = n.prop(s, "placeholder", 15), d = n.prop(s, "monthIndex", 3, 0);
|
|
40
|
+
function f(e) {
|
|
41
|
+
let t = e.toDate(i());
|
|
42
|
+
return typeof s.yearFormat == "function" ? s.yearFormat(t.getFullYear()) : new r(s.locale, { year: s.yearFormat }).format(t);
|
|
44
43
|
}
|
|
45
|
-
function
|
|
46
|
-
let
|
|
47
|
-
return typeof
|
|
44
|
+
function p(e) {
|
|
45
|
+
let t = e.toDate(i());
|
|
46
|
+
return typeof s.monthFormat == "function" ? s.monthFormat(t.getMonth() + 1) : new r(s.locale, { month: s.monthFormat }).format(t);
|
|
48
47
|
}
|
|
49
|
-
var
|
|
50
|
-
var t = a(),
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
var
|
|
56
|
-
|
|
57
|
-
|
|
48
|
+
var m = n.comment(), h = n.first_child(m), g = (e) => {
|
|
49
|
+
var t = a(), r = n.first_child(t);
|
|
50
|
+
c(r);
|
|
51
|
+
var i = n.sibling(r, 2);
|
|
52
|
+
l(i), n.append(e, t);
|
|
53
|
+
}, _ = (e) => {
|
|
54
|
+
var t = a(), r = n.first_child(t);
|
|
55
|
+
c(r);
|
|
56
|
+
var i = n.sibling(r, 2), o = (e) => {
|
|
57
|
+
var t = n.text();
|
|
58
|
+
n.template_effect((e) => n.set_text(t, e), [() => f(u())]), n.append(e, t);
|
|
58
59
|
};
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
}),
|
|
62
|
-
},
|
|
63
|
-
var t =
|
|
64
|
-
var t =
|
|
65
|
-
|
|
60
|
+
n.if(i, (e) => {
|
|
61
|
+
u() && e(o);
|
|
62
|
+
}), n.append(e, t);
|
|
63
|
+
}, v = (e) => {
|
|
64
|
+
var t = a(), r = n.first_child(t), i = (e) => {
|
|
65
|
+
var t = n.text();
|
|
66
|
+
n.template_effect((e) => n.set_text(t, e), [() => p(u())]), n.append(e, t);
|
|
66
67
|
};
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
})
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
68
|
+
n.if(r, (e) => {
|
|
69
|
+
u() && e(i);
|
|
70
|
+
});
|
|
71
|
+
var o = n.sibling(r, 2);
|
|
72
|
+
l(o), n.append(e, t);
|
|
73
|
+
}, y = (e) => {
|
|
74
|
+
var t = n.text();
|
|
75
|
+
n.template_effect((e, r) => n.set_text(t, `${e ?? ""} ${r ?? ""}`), [() => p(s.month), () => f(s.month)]), n.append(e, t);
|
|
73
76
|
};
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}),
|
|
77
|
+
n.if(h, (e) => {
|
|
78
|
+
s.captionLayout === "dropdown" ? e(g) : s.captionLayout === "dropdown-months" ? e(_, 1) : s.captionLayout === "dropdown-years" ? e(v, 2) : e(y, -1);
|
|
79
|
+
}), n.append(o, m), n.pop();
|
|
77
80
|
}
|
|
78
81
|
//#endregion
|
|
79
|
-
export {
|
|
82
|
+
export { o as default };
|
|
@@ -1,34 +1,35 @@
|
|
|
1
1
|
import { cn as e } from "../../../utils.js";
|
|
2
|
-
import * as t from "svelte/internal/client";
|
|
3
2
|
import "svelte/internal/disclose-version";
|
|
3
|
+
import * as t from "svelte/internal/client";
|
|
4
4
|
import { RangeCalendar as n } from "bits-ui";
|
|
5
5
|
//#region src/lib/components/ui/range-calendar/range-calendar-cell.svelte
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
6
|
+
var r = /* @__PURE__ */ new Set([
|
|
7
|
+
"$$slots",
|
|
8
|
+
"$$events",
|
|
9
|
+
"$$legacy",
|
|
10
|
+
"ref",
|
|
11
|
+
"class"
|
|
12
|
+
]);
|
|
13
|
+
function i(i, a) {
|
|
14
|
+
t.push(a, !0);
|
|
15
|
+
let o = t.prop(a, "ref", 15, null), s = t.rest_props(a, r);
|
|
16
|
+
var c = t.comment(), l = t.first_child(c);
|
|
16
17
|
{
|
|
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)",
|
|
18
|
-
t.component(
|
|
18
|
+
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)", a.class));
|
|
19
|
+
t.component(l, () => n.Cell, (e, n) => {
|
|
19
20
|
n(e, t.spread_props({ get class() {
|
|
20
21
|
return t.get(r);
|
|
21
|
-
} }, () =>
|
|
22
|
+
} }, () => s, {
|
|
22
23
|
get ref() {
|
|
23
|
-
return
|
|
24
|
+
return o();
|
|
24
25
|
},
|
|
25
26
|
set ref(e) {
|
|
26
|
-
|
|
27
|
+
o(e);
|
|
27
28
|
}
|
|
28
29
|
}));
|
|
29
30
|
});
|
|
30
31
|
}
|
|
31
|
-
t.append(
|
|
32
|
+
t.append(i, c), t.pop();
|
|
32
33
|
}
|
|
33
34
|
//#endregion
|
|
34
|
-
export {
|
|
35
|
+
export { i as default };
|
|
@@ -1,34 +1,35 @@
|
|
|
1
1
|
import { cn as e } from "../../../utils.js";
|
|
2
|
-
import * as t from "svelte/internal/client";
|
|
3
2
|
import "svelte/internal/disclose-version";
|
|
3
|
+
import * as t from "svelte/internal/client";
|
|
4
4
|
import { RangeCalendar as n } from "bits-ui";
|
|
5
5
|
//#region src/lib/components/ui/range-calendar/range-calendar-day.svelte
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
6
|
+
var r = /* @__PURE__ */ new Set([
|
|
7
|
+
"$$slots",
|
|
8
|
+
"$$events",
|
|
9
|
+
"$$legacy",
|
|
10
|
+
"ref",
|
|
11
|
+
"class"
|
|
12
|
+
]);
|
|
13
|
+
function i(i, a) {
|
|
14
|
+
t.push(a, !0);
|
|
15
|
+
let o = t.prop(a, "ref", 15, null), s = t.rest_props(a, r);
|
|
16
|
+
var c = t.comment(), l = t.first_child(c);
|
|
16
17
|
{
|
|
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",
|
|
18
|
-
t.component(
|
|
18
|
+
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", a.class));
|
|
19
|
+
t.component(l, () => n.Day, (e, n) => {
|
|
19
20
|
n(e, t.spread_props({ get class() {
|
|
20
21
|
return t.get(r);
|
|
21
|
-
} }, () =>
|
|
22
|
+
} }, () => s, {
|
|
22
23
|
get ref() {
|
|
23
|
-
return
|
|
24
|
+
return o();
|
|
24
25
|
},
|
|
25
26
|
set ref(e) {
|
|
26
|
-
|
|
27
|
+
o(e);
|
|
27
28
|
}
|
|
28
29
|
}));
|
|
29
30
|
});
|
|
30
31
|
}
|
|
31
|
-
t.append(
|
|
32
|
+
t.append(i, c), t.pop();
|
|
32
33
|
}
|
|
33
34
|
//#endregion
|
|
34
|
-
export {
|
|
35
|
+
export { i as default };
|
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
import * as e from "svelte/internal/client";
|
|
2
1
|
import "svelte/internal/disclose-version";
|
|
2
|
+
import * as e from "svelte/internal/client";
|
|
3
3
|
import { RangeCalendar as t } from "bits-ui";
|
|
4
4
|
//#region src/lib/components/ui/range-calendar/range-calendar-grid-body.svelte
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
e.
|
|
15
|
-
|
|
5
|
+
var n = /* @__PURE__ */ new Set([
|
|
6
|
+
"$$slots",
|
|
7
|
+
"$$events",
|
|
8
|
+
"$$legacy",
|
|
9
|
+
"ref"
|
|
10
|
+
]);
|
|
11
|
+
function r(r, i) {
|
|
12
|
+
e.push(i, !0);
|
|
13
|
+
let a = e.prop(i, "ref", 15, null), o = e.rest_props(i, n);
|
|
14
|
+
var s = e.comment(), c = e.first_child(s);
|
|
15
|
+
e.component(c, () => t.GridBody, (t, n) => {
|
|
16
|
+
n(t, e.spread_props(() => o, {
|
|
16
17
|
get ref() {
|
|
17
|
-
return
|
|
18
|
+
return a();
|
|
18
19
|
},
|
|
19
20
|
set ref(e) {
|
|
20
|
-
|
|
21
|
+
a(e);
|
|
21
22
|
}
|
|
22
23
|
}));
|
|
23
|
-
}), e.append(
|
|
24
|
+
}), e.append(r, s), e.pop();
|
|
24
25
|
}
|
|
25
26
|
//#endregion
|
|
26
|
-
export {
|
|
27
|
+
export { r as default };
|
|
@@ -1,26 +1,27 @@
|
|
|
1
|
-
import * as e from "svelte/internal/client";
|
|
2
1
|
import "svelte/internal/disclose-version";
|
|
2
|
+
import * as e from "svelte/internal/client";
|
|
3
3
|
import { RangeCalendar as t } from "bits-ui";
|
|
4
4
|
//#region src/lib/components/ui/range-calendar/range-calendar-grid-head.svelte
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
e.
|
|
15
|
-
|
|
5
|
+
var n = /* @__PURE__ */ new Set([
|
|
6
|
+
"$$slots",
|
|
7
|
+
"$$events",
|
|
8
|
+
"$$legacy",
|
|
9
|
+
"ref"
|
|
10
|
+
]);
|
|
11
|
+
function r(r, i) {
|
|
12
|
+
e.push(i, !0);
|
|
13
|
+
let a = e.prop(i, "ref", 15, null), o = e.rest_props(i, n);
|
|
14
|
+
var s = e.comment(), c = e.first_child(s);
|
|
15
|
+
e.component(c, () => t.GridHead, (t, n) => {
|
|
16
|
+
n(t, e.spread_props(() => o, {
|
|
16
17
|
get ref() {
|
|
17
|
-
return
|
|
18
|
+
return a();
|
|
18
19
|
},
|
|
19
20
|
set ref(e) {
|
|
20
|
-
|
|
21
|
+
a(e);
|
|
21
22
|
}
|
|
22
23
|
}));
|
|
23
|
-
}), e.append(
|
|
24
|
+
}), e.append(r, s), e.pop();
|
|
24
25
|
}
|
|
25
26
|
//#endregion
|
|
26
|
-
export {
|
|
27
|
+
export { r as default };
|
|
@@ -1,34 +1,35 @@
|
|
|
1
1
|
import { cn as e } from "../../../utils.js";
|
|
2
|
-
import * as t from "svelte/internal/client";
|
|
3
2
|
import "svelte/internal/disclose-version";
|
|
3
|
+
import * as t from "svelte/internal/client";
|
|
4
4
|
import { RangeCalendar as n } from "bits-ui";
|
|
5
5
|
//#region src/lib/components/ui/range-calendar/range-calendar-grid-row.svelte
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
6
|
+
var r = /* @__PURE__ */ new Set([
|
|
7
|
+
"$$slots",
|
|
8
|
+
"$$events",
|
|
9
|
+
"$$legacy",
|
|
10
|
+
"ref",
|
|
11
|
+
"class"
|
|
12
|
+
]);
|
|
13
|
+
function i(i, a) {
|
|
14
|
+
t.push(a, !0);
|
|
15
|
+
let o = t.prop(a, "ref", 15, null), s = t.rest_props(a, r);
|
|
16
|
+
var c = t.comment(), l = t.first_child(c);
|
|
16
17
|
{
|
|
17
|
-
let r = t.derived(() => e("flex",
|
|
18
|
-
t.component(
|
|
18
|
+
let r = t.derived(() => e("flex", a.class));
|
|
19
|
+
t.component(l, () => n.GridRow, (e, n) => {
|
|
19
20
|
n(e, t.spread_props({ get class() {
|
|
20
21
|
return t.get(r);
|
|
21
|
-
} }, () =>
|
|
22
|
+
} }, () => s, {
|
|
22
23
|
get ref() {
|
|
23
|
-
return
|
|
24
|
+
return o();
|
|
24
25
|
},
|
|
25
26
|
set ref(e) {
|
|
26
|
-
|
|
27
|
+
o(e);
|
|
27
28
|
}
|
|
28
29
|
}));
|
|
29
30
|
});
|
|
30
31
|
}
|
|
31
|
-
t.append(
|
|
32
|
+
t.append(i, c), t.pop();
|
|
32
33
|
}
|
|
33
34
|
//#endregion
|
|
34
|
-
export {
|
|
35
|
+
export { i as default };
|
|
@@ -1,34 +1,35 @@
|
|
|
1
1
|
import { cn as e } from "../../../utils.js";
|
|
2
|
-
import * as t from "svelte/internal/client";
|
|
3
2
|
import "svelte/internal/disclose-version";
|
|
3
|
+
import * as t from "svelte/internal/client";
|
|
4
4
|
import { RangeCalendar as n } from "bits-ui";
|
|
5
5
|
//#region src/lib/components/ui/range-calendar/range-calendar-grid.svelte
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
6
|
+
var r = /* @__PURE__ */ new Set([
|
|
7
|
+
"$$slots",
|
|
8
|
+
"$$events",
|
|
9
|
+
"$$legacy",
|
|
10
|
+
"ref",
|
|
11
|
+
"class"
|
|
12
|
+
]);
|
|
13
|
+
function i(i, a) {
|
|
14
|
+
t.push(a, !0);
|
|
15
|
+
let o = t.prop(a, "ref", 15, null), s = t.rest_props(a, r);
|
|
16
|
+
var c = t.comment(), l = t.first_child(c);
|
|
16
17
|
{
|
|
17
|
-
let r = t.derived(() => e("mt-4 flex w-full border-collapse flex-col gap-1",
|
|
18
|
-
t.component(
|
|
18
|
+
let r = t.derived(() => e("mt-4 flex w-full border-collapse flex-col gap-1", a.class));
|
|
19
|
+
t.component(l, () => n.Grid, (e, n) => {
|
|
19
20
|
n(e, t.spread_props({ get class() {
|
|
20
21
|
return t.get(r);
|
|
21
|
-
} }, () =>
|
|
22
|
+
} }, () => s, {
|
|
22
23
|
get ref() {
|
|
23
|
-
return
|
|
24
|
+
return o();
|
|
24
25
|
},
|
|
25
26
|
set ref(e) {
|
|
26
|
-
|
|
27
|
+
o(e);
|
|
27
28
|
}
|
|
28
29
|
}));
|
|
29
30
|
});
|
|
30
31
|
}
|
|
31
|
-
t.append(
|
|
32
|
+
t.append(i, c), t.pop();
|
|
32
33
|
}
|
|
33
34
|
//#endregion
|
|
34
|
-
export {
|
|
35
|
+
export { i as default };
|