@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,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-head-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("text-muted-foreground w-(--cell-size) rounded-md text-[0.8rem] font-normal",
|
|
18
|
-
t.component(
|
|
18
|
+
let r = t.derived(() => e("text-muted-foreground w-(--cell-size) rounded-md text-[0.8rem] font-normal", a.class));
|
|
19
|
+
t.component(l, () => n.HeadCell, (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-header.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 h-(--cell-size) w-full items-center justify-center gap-1.5 text-sm font-medium",
|
|
18
|
-
t.component(
|
|
18
|
+
let r = t.derived(() => e("flex h-(--cell-size) w-full items-center justify-center gap-1.5 text-sm font-medium", a.class));
|
|
19
|
+
t.component(l, () => n.Header, (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,61 +1,61 @@
|
|
|
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
|
import r from "@lucide/svelte/icons/chevron-down";
|
|
6
6
|
//#region src/lib/components/ui/range-calendar/range-calendar-month-select.svelte
|
|
7
|
-
var i =
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
var
|
|
7
|
+
var i = /* @__PURE__ */ new Set([
|
|
8
|
+
"$$slots",
|
|
9
|
+
"$$events",
|
|
10
|
+
"$$legacy",
|
|
11
|
+
"ref",
|
|
12
|
+
"class",
|
|
13
|
+
"value",
|
|
14
|
+
"onchange"
|
|
15
|
+
]), a = t.from_html("<option> </option>"), o = t.from_html("<select></select> <span class=\"[&>svg]:text-muted-foreground flex h-(--cell-size) items-center gap-1 rounded-md ps-2 pe-1 text-sm font-medium select-none [&>svg]:size-3.5\" aria-hidden=\"true\"> <!></span>", 1), s = t.from_html("<span><!></span>");
|
|
16
|
+
function c(c, l) {
|
|
17
|
+
t.push(l, !0);
|
|
18
|
+
let u = t.prop(l, "ref", 15, null), d = t.rest_props(l, i);
|
|
19
|
+
var f = s(), p = t.child(f);
|
|
20
20
|
{
|
|
21
|
-
let
|
|
22
|
-
let s = () =>
|
|
23
|
-
var d =
|
|
21
|
+
let i = (n, i) => {
|
|
22
|
+
let s = () => (i?.()).props, c = () => (i?.()).monthItems, u = () => (i?.()).selectedMonthItem;
|
|
23
|
+
var d = o(), f = t.first_child(d);
|
|
24
24
|
t.attribute_effect(f, () => ({
|
|
25
25
|
...s(),
|
|
26
|
-
value:
|
|
27
|
-
onchange:
|
|
28
|
-
})), t.each(f, 21,
|
|
29
|
-
var r =
|
|
26
|
+
value: l.value,
|
|
27
|
+
onchange: l.onchange
|
|
28
|
+
})), t.each(f, 21, c, (e) => e.value, (e, n) => {
|
|
29
|
+
var r = a(), i = t.child(r, !0);
|
|
30
30
|
t.reset(r);
|
|
31
31
|
var o = {};
|
|
32
32
|
t.template_effect(() => {
|
|
33
|
-
t.set_selected(r,
|
|
33
|
+
t.set_selected(r, l.value === void 0 ? t.get(n).value === u().value : t.get(n).value === l.value), t.set_text(i, t.get(n).label), o !== (o = t.get(n).value) && (r.value = (r.__value = t.get(n).value) ?? "");
|
|
34
34
|
}), t.append(e, r);
|
|
35
35
|
}), t.reset(f);
|
|
36
36
|
var p = t.sibling(f, 2), m = t.child(p), h = t.sibling(m);
|
|
37
37
|
{
|
|
38
|
-
let n = t.derived(() => e("size-4",
|
|
38
|
+
let n = t.derived(() => e("size-4", l.class));
|
|
39
39
|
r(h, { get class() {
|
|
40
40
|
return t.get(n);
|
|
41
41
|
} });
|
|
42
42
|
}
|
|
43
|
-
t.reset(p), t.template_effect((e) => t.set_text(m, `${e ?? ""} `), [() =>
|
|
43
|
+
t.reset(p), t.template_effect((e) => t.set_text(m, `${e ?? ""} `), [() => c().find((e) => e.value === l.value)?.label || u().label]), t.append(n, d);
|
|
44
44
|
};
|
|
45
|
-
t.component(
|
|
46
|
-
n(e, t.spread_props({ class: "absolute inset-0 opacity-0" }, () =>
|
|
45
|
+
t.component(p, () => n.MonthSelect, (e, n) => {
|
|
46
|
+
n(e, t.spread_props({ class: "absolute inset-0 opacity-0" }, () => d, {
|
|
47
47
|
get ref() {
|
|
48
|
-
return
|
|
48
|
+
return u();
|
|
49
49
|
},
|
|
50
50
|
set ref(e) {
|
|
51
|
-
|
|
51
|
+
u(e);
|
|
52
52
|
},
|
|
53
|
-
child:
|
|
53
|
+
child: i,
|
|
54
54
|
$$slots: { child: !0 }
|
|
55
55
|
}));
|
|
56
56
|
});
|
|
57
57
|
}
|
|
58
|
-
t.reset(
|
|
58
|
+
t.reset(f), t.template_effect((e) => t.set_class(f, 1, e), [() => t.clsx(e("has-focus:border-ring border-input has-focus:ring-ring/50 relative flex rounded-md border shadow-xs has-focus:ring-[3px]", l.class))]), t.append(c, f), t.pop();
|
|
59
59
|
}
|
|
60
60
|
//#endregion
|
|
61
|
-
export {
|
|
61
|
+
export { c as default };
|
|
@@ -1,25 +1,25 @@
|
|
|
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
|
//#region src/lib/components/ui/range-calendar/range-calendar-month.svelte
|
|
5
|
-
var n =
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
var
|
|
17
|
-
t.attribute_effect(
|
|
18
|
-
...
|
|
5
|
+
var n = /* @__PURE__ */ new Set([
|
|
6
|
+
"$$slots",
|
|
7
|
+
"$$events",
|
|
8
|
+
"$$legacy",
|
|
9
|
+
"ref",
|
|
10
|
+
"class",
|
|
11
|
+
"children"
|
|
12
|
+
]), r = t.from_html("<div><!></div>");
|
|
13
|
+
function i(i, a) {
|
|
14
|
+
t.push(a, !0);
|
|
15
|
+
let o = t.prop(a, "ref", 15, null), s = t.rest_props(a, n);
|
|
16
|
+
var c = r();
|
|
17
|
+
t.attribute_effect(c, (e) => ({
|
|
18
|
+
...s,
|
|
19
19
|
class: e
|
|
20
|
-
}), [() => e("flex flex-col",
|
|
21
|
-
var
|
|
22
|
-
t.snippet(
|
|
20
|
+
}), [() => e("flex flex-col", a.class)]);
|
|
21
|
+
var l = t.child(c);
|
|
22
|
+
t.snippet(l, () => a.children ?? t.noop), t.reset(c), t.bind_this(c, (e) => o(e), () => o()), t.append(i, c), t.pop();
|
|
23
23
|
}
|
|
24
24
|
//#endregion
|
|
25
|
-
export {
|
|
25
|
+
export { i as default };
|
|
@@ -1,25 +1,25 @@
|
|
|
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
|
//#region src/lib/components/ui/range-calendar/range-calendar-months.svelte
|
|
5
|
-
var n =
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
var
|
|
17
|
-
t.attribute_effect(
|
|
5
|
+
var n = /* @__PURE__ */ new Set([
|
|
6
|
+
"$$slots",
|
|
7
|
+
"$$events",
|
|
8
|
+
"$$legacy",
|
|
9
|
+
"ref",
|
|
10
|
+
"class",
|
|
11
|
+
"children"
|
|
12
|
+
]), r = t.from_html("<div><!></div>");
|
|
13
|
+
function i(i, a) {
|
|
14
|
+
t.push(a, !0);
|
|
15
|
+
let o = t.prop(a, "ref", 15, null), s = t.rest_props(a, n);
|
|
16
|
+
var c = r();
|
|
17
|
+
t.attribute_effect(c, (e) => ({
|
|
18
18
|
class: e,
|
|
19
|
-
...
|
|
20
|
-
}), [() => e("relative flex flex-col gap-4 md:flex-row",
|
|
21
|
-
var
|
|
22
|
-
t.snippet(
|
|
19
|
+
...s
|
|
20
|
+
}), [() => e("relative flex flex-col gap-4 md:flex-row", a.class)]);
|
|
21
|
+
var l = t.child(c);
|
|
22
|
+
t.snippet(l, () => a.children ?? t.noop), t.reset(c), t.bind_this(c, (e) => o(e), () => o()), t.append(i, c), t.pop();
|
|
23
23
|
}
|
|
24
24
|
//#endregion
|
|
25
|
-
export {
|
|
25
|
+
export { i as default };
|
|
@@ -1,25 +1,25 @@
|
|
|
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
|
//#region src/lib/components/ui/range-calendar/range-calendar-nav.svelte
|
|
5
|
-
var n =
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
var
|
|
17
|
-
t.attribute_effect(
|
|
18
|
-
...
|
|
5
|
+
var n = /* @__PURE__ */ new Set([
|
|
6
|
+
"$$slots",
|
|
7
|
+
"$$events",
|
|
8
|
+
"$$legacy",
|
|
9
|
+
"ref",
|
|
10
|
+
"class",
|
|
11
|
+
"children"
|
|
12
|
+
]), r = t.from_html("<nav><!></nav>");
|
|
13
|
+
function i(i, a) {
|
|
14
|
+
t.push(a, !0);
|
|
15
|
+
let o = t.prop(a, "ref", 15, null), s = t.rest_props(a, n);
|
|
16
|
+
var c = r();
|
|
17
|
+
t.attribute_effect(c, (e) => ({
|
|
18
|
+
...s,
|
|
19
19
|
class: e
|
|
20
|
-
}), [() => e("absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1",
|
|
21
|
-
var
|
|
22
|
-
t.snippet(
|
|
20
|
+
}), [() => e("absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1", a.class)]);
|
|
21
|
+
var l = t.child(c);
|
|
22
|
+
t.snippet(l, () => a.children ?? t.noop), t.reset(c), t.bind_this(c, (e) => o(e), () => o()), t.append(i, c), t.pop();
|
|
23
23
|
}
|
|
24
24
|
//#endregion
|
|
25
|
-
export {
|
|
25
|
+
export { i as default };
|
|
@@ -1,57 +1,58 @@
|
|
|
1
1
|
import { cn as e } from "../../../utils.js";
|
|
2
2
|
import { buttonVariants as t } from "../button/button.js";
|
|
3
|
-
import * as n from "svelte/internal/client";
|
|
4
3
|
import "svelte/internal/disclose-version";
|
|
4
|
+
import * as n from "svelte/internal/client";
|
|
5
5
|
import { RangeCalendar as r } from "bits-ui";
|
|
6
6
|
import i from "@lucide/svelte/icons/chevron-right";
|
|
7
7
|
//#region src/lib/components/ui/range-calendar/range-calendar-next-button.svelte
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
var a = /* @__PURE__ */ new Set([
|
|
9
|
+
"$$slots",
|
|
10
|
+
"$$events",
|
|
11
|
+
"$$legacy",
|
|
12
|
+
"ref",
|
|
13
|
+
"class",
|
|
14
|
+
"children",
|
|
15
|
+
"variant"
|
|
16
|
+
]);
|
|
17
|
+
function o(o, s) {
|
|
18
|
+
n.push(s, !0);
|
|
19
|
+
let c = (t) => {
|
|
11
20
|
{
|
|
12
|
-
let r = n.derived(() => e("size-4",
|
|
21
|
+
let r = n.derived(() => e("size-4", s.class));
|
|
13
22
|
i(t, { get class() {
|
|
14
23
|
return n.get(r);
|
|
15
24
|
} });
|
|
16
25
|
}
|
|
17
|
-
},
|
|
18
|
-
|
|
19
|
-
"$$events",
|
|
20
|
-
"$$legacy",
|
|
21
|
-
"ref",
|
|
22
|
-
"class",
|
|
23
|
-
"children",
|
|
24
|
-
"variant"
|
|
25
|
-
]);
|
|
26
|
-
var d = n.comment(), f = n.first_child(d);
|
|
26
|
+
}, l = n.prop(s, "ref", 15, null), u = n.prop(s, "variant", 3, "ghost"), d = n.rest_props(s, a);
|
|
27
|
+
var f = n.comment(), p = n.first_child(f);
|
|
27
28
|
{
|
|
28
|
-
let i = n.derived(() => e(t({ variant:
|
|
29
|
-
n.component(
|
|
29
|
+
let i = n.derived(() => e(t({ variant: u() }), "size-(--cell-size) bg-transparent p-0 select-none disabled:opacity-50 rtl:rotate-180", s.class));
|
|
30
|
+
n.component(p, () => r.NextButton, (e, t) => {
|
|
30
31
|
t(e, n.spread_props({ get class() {
|
|
31
32
|
return n.get(i);
|
|
32
|
-
} }, () =>
|
|
33
|
+
} }, () => d, {
|
|
33
34
|
get ref() {
|
|
34
|
-
return
|
|
35
|
+
return l();
|
|
35
36
|
},
|
|
36
37
|
set ref(e) {
|
|
37
|
-
|
|
38
|
+
l(e);
|
|
38
39
|
},
|
|
39
40
|
children: (e, t) => {
|
|
40
41
|
var r = n.comment(), i = n.first_child(r), a = (e) => {
|
|
41
42
|
var t = n.comment(), r = n.first_child(t);
|
|
42
|
-
n.snippet(r, () =>
|
|
43
|
-
},
|
|
44
|
-
|
|
43
|
+
n.snippet(r, () => s.children ?? n.noop), n.append(e, t);
|
|
44
|
+
}, o = (e) => {
|
|
45
|
+
c(e);
|
|
45
46
|
};
|
|
46
47
|
n.if(i, (e) => {
|
|
47
|
-
|
|
48
|
+
s.children ? e(a) : e(o, -1);
|
|
48
49
|
}), n.append(e, r);
|
|
49
50
|
},
|
|
50
51
|
$$slots: { default: !0 }
|
|
51
52
|
}));
|
|
52
53
|
});
|
|
53
54
|
}
|
|
54
|
-
n.append(
|
|
55
|
+
n.append(o, f), n.pop();
|
|
55
56
|
}
|
|
56
57
|
//#endregion
|
|
57
|
-
export {
|
|
58
|
+
export { o as default };
|
|
@@ -1,57 +1,58 @@
|
|
|
1
1
|
import { cn as e } from "../../../utils.js";
|
|
2
2
|
import { buttonVariants as t } from "../button/button.js";
|
|
3
|
-
import * as n from "svelte/internal/client";
|
|
4
3
|
import "svelte/internal/disclose-version";
|
|
4
|
+
import * as n from "svelte/internal/client";
|
|
5
5
|
import { RangeCalendar as r } from "bits-ui";
|
|
6
6
|
import i from "@lucide/svelte/icons/chevron-left";
|
|
7
7
|
//#region src/lib/components/ui/range-calendar/range-calendar-prev-button.svelte
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
8
|
+
var a = /* @__PURE__ */ new Set([
|
|
9
|
+
"$$slots",
|
|
10
|
+
"$$events",
|
|
11
|
+
"$$legacy",
|
|
12
|
+
"ref",
|
|
13
|
+
"class",
|
|
14
|
+
"children",
|
|
15
|
+
"variant"
|
|
16
|
+
]);
|
|
17
|
+
function o(o, s) {
|
|
18
|
+
n.push(s, !0);
|
|
19
|
+
let c = (t) => {
|
|
11
20
|
{
|
|
12
|
-
let r = n.derived(() => e("size-4",
|
|
21
|
+
let r = n.derived(() => e("size-4", s.class));
|
|
13
22
|
i(t, { get class() {
|
|
14
23
|
return n.get(r);
|
|
15
24
|
} });
|
|
16
25
|
}
|
|
17
|
-
},
|
|
18
|
-
|
|
19
|
-
"$$events",
|
|
20
|
-
"$$legacy",
|
|
21
|
-
"ref",
|
|
22
|
-
"class",
|
|
23
|
-
"children",
|
|
24
|
-
"variant"
|
|
25
|
-
]);
|
|
26
|
-
var d = n.comment(), f = n.first_child(d);
|
|
26
|
+
}, l = n.prop(s, "ref", 15, null), u = n.prop(s, "variant", 3, "ghost"), d = n.rest_props(s, a);
|
|
27
|
+
var f = n.comment(), p = n.first_child(f);
|
|
27
28
|
{
|
|
28
|
-
let i = n.derived(() => e(t({ variant:
|
|
29
|
-
n.component(
|
|
29
|
+
let i = n.derived(() => e(t({ variant: u() }), "size-(--cell-size) bg-transparent p-0 select-none disabled:opacity-50 rtl:rotate-180", s.class));
|
|
30
|
+
n.component(p, () => r.PrevButton, (e, t) => {
|
|
30
31
|
t(e, n.spread_props({ get class() {
|
|
31
32
|
return n.get(i);
|
|
32
|
-
} }, () =>
|
|
33
|
+
} }, () => d, {
|
|
33
34
|
get ref() {
|
|
34
|
-
return
|
|
35
|
+
return l();
|
|
35
36
|
},
|
|
36
37
|
set ref(e) {
|
|
37
|
-
|
|
38
|
+
l(e);
|
|
38
39
|
},
|
|
39
40
|
children: (e, t) => {
|
|
40
41
|
var r = n.comment(), i = n.first_child(r), a = (e) => {
|
|
41
42
|
var t = n.comment(), r = n.first_child(t);
|
|
42
|
-
n.snippet(r, () =>
|
|
43
|
-
},
|
|
44
|
-
|
|
43
|
+
n.snippet(r, () => s.children ?? n.noop), n.append(e, t);
|
|
44
|
+
}, o = (e) => {
|
|
45
|
+
c(e);
|
|
45
46
|
};
|
|
46
47
|
n.if(i, (e) => {
|
|
47
|
-
|
|
48
|
+
s.children ? e(a) : e(o, -1);
|
|
48
49
|
}), n.append(e, r);
|
|
49
50
|
},
|
|
50
51
|
$$slots: { default: !0 }
|
|
51
52
|
}));
|
|
52
53
|
});
|
|
53
54
|
}
|
|
54
|
-
n.append(
|
|
55
|
+
n.append(o, f), n.pop();
|
|
55
56
|
}
|
|
56
57
|
//#endregion
|
|
57
|
-
export {
|
|
58
|
+
export { o as default };
|
|
@@ -1,59 +1,59 @@
|
|
|
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
|
import r from "@lucide/svelte/icons/chevron-down";
|
|
6
6
|
//#region src/lib/components/ui/range-calendar/range-calendar-year-select.svelte
|
|
7
|
-
var i =
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
var
|
|
7
|
+
var i = /* @__PURE__ */ new Set([
|
|
8
|
+
"$$slots",
|
|
9
|
+
"$$events",
|
|
10
|
+
"$$legacy",
|
|
11
|
+
"ref",
|
|
12
|
+
"class",
|
|
13
|
+
"value"
|
|
14
|
+
]), a = t.from_html("<option> </option>"), o = t.from_html("<select></select> <span class=\"[&>svg]:text-muted-foreground flex h-(--cell-size) items-center gap-1 rounded-md ps-2 pe-1 text-sm font-medium select-none [&>svg]:size-3.5\" aria-hidden=\"true\"> <!></span>", 1), s = t.from_html("<span><!></span>");
|
|
15
|
+
function c(c, l) {
|
|
16
|
+
t.push(l, !0);
|
|
17
|
+
let u = t.prop(l, "ref", 15, null), d = t.rest_props(l, i);
|
|
18
|
+
var f = s(), p = t.child(f);
|
|
19
19
|
{
|
|
20
|
-
let
|
|
21
|
-
let s = () =>
|
|
22
|
-
var d =
|
|
20
|
+
let i = (n, i) => {
|
|
21
|
+
let s = () => (i?.()).props, c = () => (i?.()).yearItems, u = () => (i?.()).selectedYearItem;
|
|
22
|
+
var d = o(), f = t.first_child(d);
|
|
23
23
|
t.attribute_effect(f, () => ({
|
|
24
24
|
...s(),
|
|
25
|
-
value:
|
|
26
|
-
})), t.each(f, 21,
|
|
27
|
-
var r =
|
|
25
|
+
value: l.value
|
|
26
|
+
})), t.each(f, 21, c, (e) => e.value, (e, n) => {
|
|
27
|
+
var r = a(), i = t.child(r, !0);
|
|
28
28
|
t.reset(r);
|
|
29
29
|
var o = {};
|
|
30
30
|
t.template_effect(() => {
|
|
31
|
-
t.set_selected(r,
|
|
31
|
+
t.set_selected(r, l.value === void 0 ? t.get(n).value === u().value : t.get(n).value === l.value), t.set_text(i, t.get(n).label), o !== (o = t.get(n).value) && (r.value = (r.__value = t.get(n).value) ?? "");
|
|
32
32
|
}), t.append(e, r);
|
|
33
33
|
}), t.reset(f);
|
|
34
34
|
var p = t.sibling(f, 2), m = t.child(p), h = t.sibling(m);
|
|
35
35
|
{
|
|
36
|
-
let n = t.derived(() => e("size-4",
|
|
36
|
+
let n = t.derived(() => e("size-4", l.class));
|
|
37
37
|
r(h, { get class() {
|
|
38
38
|
return t.get(n);
|
|
39
39
|
} });
|
|
40
40
|
}
|
|
41
|
-
t.reset(p), t.template_effect((e) => t.set_text(m, `${e ?? ""} `), [() =>
|
|
41
|
+
t.reset(p), t.template_effect((e) => t.set_text(m, `${e ?? ""} `), [() => c().find((e) => e.value === l.value)?.label || u().label]), t.append(n, d);
|
|
42
42
|
};
|
|
43
|
-
t.component(
|
|
44
|
-
n(e, t.spread_props({ class: "absolute inset-0 opacity-0" }, () =>
|
|
43
|
+
t.component(p, () => n.YearSelect, (e, n) => {
|
|
44
|
+
n(e, t.spread_props({ class: "absolute inset-0 opacity-0" }, () => d, {
|
|
45
45
|
get ref() {
|
|
46
|
-
return
|
|
46
|
+
return u();
|
|
47
47
|
},
|
|
48
48
|
set ref(e) {
|
|
49
|
-
|
|
49
|
+
u(e);
|
|
50
50
|
},
|
|
51
|
-
child:
|
|
51
|
+
child: i,
|
|
52
52
|
$$slots: { child: !0 }
|
|
53
53
|
}));
|
|
54
54
|
});
|
|
55
55
|
}
|
|
56
|
-
t.reset(
|
|
56
|
+
t.reset(f), t.template_effect((e) => t.set_class(f, 1, e), [() => t.clsx(e("has-focus:border-ring border-input has-focus:ring-ring/50 relative flex rounded-md border shadow-xs has-focus:ring-[3px]", l.class))]), t.append(c, f), t.pop();
|
|
57
57
|
}
|
|
58
58
|
//#endregion
|
|
59
|
-
export {
|
|
59
|
+
export { c as default };
|