@sjvair/monitor-map 3.0.0 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/lib/LoadScreen.js +73 -0
- package/dist/lib/actions.js +9 -0
- package/dist/lib/assets/icons/adjustment-horizontal.js +4 -0
- package/dist/lib/collocation-sites/CollocationTooltip.js +105 -0
- package/dist/lib/collocation-sites/collocations-icon-manager.svelte.js +21 -0
- package/dist/lib/collocation-sites/collocations-map-integration.svelte.js +84 -0
- package/dist/lib/collocation-sites/collocations.svelte.js +26 -0
- package/dist/lib/colors.js +25 -0
- package/dist/lib/components/DataBox.js +30 -0
- package/dist/lib/components/DisplayOption.js +10 -0
- package/dist/lib/components/MapLayersDisplayOptions.js +71 -0
- package/dist/lib/components/SegmentedControl.js +37 -0
- package/dist/lib/components/ToggleSwitch.js +17 -0
- package/dist/lib/components/ui/button/button.js +34 -0
- package/dist/lib/components/ui/range-calendar/range-calendar-caption.js +79 -0
- package/dist/lib/components/ui/range-calendar/range-calendar-cell.js +34 -0
- package/dist/lib/components/ui/range-calendar/range-calendar-day.js +34 -0
- package/dist/lib/components/ui/range-calendar/range-calendar-grid-body.js +26 -0
- package/dist/lib/components/ui/range-calendar/range-calendar-grid-head.js +26 -0
- package/dist/lib/components/ui/range-calendar/range-calendar-grid-row.js +34 -0
- package/dist/lib/components/ui/range-calendar/range-calendar-grid.js +34 -0
- package/dist/lib/components/ui/range-calendar/range-calendar-head-cell.js +34 -0
- package/dist/lib/components/ui/range-calendar/range-calendar-header.js +34 -0
- package/dist/lib/components/ui/range-calendar/range-calendar-month-select.js +61 -0
- package/dist/lib/components/ui/range-calendar/range-calendar-month.js +25 -0
- package/dist/lib/components/ui/range-calendar/range-calendar-months.js +25 -0
- package/dist/lib/components/ui/range-calendar/range-calendar-nav.js +25 -0
- package/dist/lib/components/ui/range-calendar/range-calendar-next-button.js +57 -0
- package/dist/lib/components/ui/range-calendar/range-calendar-prev-button.js +57 -0
- package/dist/lib/components/ui/range-calendar/range-calendar-year-select.js +59 -0
- package/dist/lib/components/ui/range-calendar/range-calendar.js +272 -0
- package/dist/lib/data-chart/DataChart.js +142 -0
- package/dist/lib/data-chart/DateRange.js +15 -0
- package/dist/lib/data-chart/chart-utils.js +99 -0
- package/dist/lib/data-chart/data-chart.svelte.js +28 -0
- package/dist/lib/data-chart/requests.js +30 -0
- package/dist/lib/data-chart/tooltip.js +101 -0
- package/dist/lib/hms/hms-fire-icon-manager.js +39 -0
- package/dist/lib/hms/hms-fire-map-integration.svelte.js +97 -0
- package/dist/lib/hms/hms-smoke-map-integration.svelte.js +84 -0
- package/dist/lib/hms/hms.svelte.js +78 -0
- package/dist/lib/index.js +19 -0
- package/dist/lib/map/Map.js +14 -0
- package/dist/lib/map/MapStyleDisplayOptions.js +43 -0
- package/dist/lib/map/Menu.js +45 -0
- package/dist/lib/map/icons.js +31 -0
- package/dist/lib/map/integrations/base-layer-seperator.js +12 -0
- package/dist/lib/map/integrations/click-manager.js +33 -0
- package/dist/lib/map/integrations/integrations-manager.js +12 -0
- package/dist/lib/map/integrations/map-display-option.svelte.js +17 -0
- package/dist/lib/map/integrations/map-geojson-integration.svelte.js +17 -0
- package/dist/lib/map/integrations/map-icon-manager.js +43 -0
- package/dist/lib/map/integrations/map-integration.svelte.js +5 -0
- package/dist/lib/map/integrations/map-layer-integration.svelte.js +23 -0
- package/dist/lib/map/integrations/tooltip.svelte.js +81 -0
- package/dist/lib/map/map.svelte.js +51 -0
- package/dist/lib/map/utils.js +30 -0
- package/dist/lib/monitors/components/MonitorClusterTooltip.js +83 -0
- package/dist/lib/monitors/components/MonitorSubscriptionManager.js +104 -0
- package/dist/lib/monitors/components/MonitorTooltip.js +59 -0
- package/dist/lib/monitors/components/MonitorWidgetModal.js +40 -0
- package/dist/lib/monitors/components/MonitorsDisplayOptions.js +67 -0
- package/dist/lib/monitors/monitor-utils.js +26 -0
- package/dist/lib/monitors/monitors-cluster-renderer.js +212 -0
- package/dist/lib/monitors/monitors-icon-manager.svelte.js +64 -0
- package/dist/lib/monitors/monitors-map-integration.svelte.js +264 -0
- package/dist/lib/monitors/monitors.svelte.js +68 -0
- package/dist/lib/node_modules/@internationalized/date/dist/private/CalendarDate.js +122 -0
- package/dist/lib/node_modules/@internationalized/date/dist/private/DateFormatter.js +84 -0
- package/dist/lib/node_modules/@internationalized/date/dist/private/calendars/GregorianCalendar.js +91 -0
- package/dist/lib/node_modules/@internationalized/date/dist/private/conversion.js +104 -0
- package/dist/lib/node_modules/@internationalized/date/dist/private/manipulation.js +159 -0
- package/dist/lib/node_modules/@internationalized/date/dist/private/queries.js +32 -0
- package/dist/lib/node_modules/@internationalized/date/dist/private/string.js +37 -0
- package/dist/lib/node_modules/@internationalized/date/dist/private/utils.js +6 -0
- package/dist/lib/node_modules/clsx/dist/clsx.js +16 -0
- package/dist/lib/node_modules/tailwind-merge/dist/bundle-mjs.js +1723 -0
- package/dist/lib/node_modules/tailwind-variants/dist/chunk-LQJYWU4O.js +70 -0
- package/dist/lib/node_modules/tailwind-variants/dist/chunk-RZF76H2U.js +166 -0
- package/dist/lib/node_modules/tailwind-variants/dist/index.js +19 -0
- package/dist/lib/node_modules/uplot/dist/uPlot.esm.js +2147 -0
- 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 +7 -0
- package/dist/lib/src/MonitorDetailPanel.js +169 -0
- package/dist/lib/src/router.js +9 -0
- package/dist/lib/utils.js +8 -0
- package/dist/lib/weather.js +8 -0
- package/dist/lib/wind/wind.svelte.js +21 -0
- package/dist/monitor-map/MonitorDetailPanel.css +1 -0
- package/dist/monitor-map/assets/MonitorDetailPanel-DmN3xPui.js +15 -0
- package/dist/monitor-map/assets/validate-routes-CgbRa8fT.js +1 -0
- 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 +99 -0
- 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 +1 -0
- package/dist/monitor-map/sjvairMonitorMap.js +4042 -0
- package/package.json +1 -1
|
@@ -0,0 +1,34 @@
|
|
|
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 };
|
|
@@ -0,0 +1,34 @@
|
|
|
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 };
|
|
@@ -0,0 +1,26 @@
|
|
|
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 };
|
|
@@ -0,0 +1,26 @@
|
|
|
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 };
|
|
@@ -0,0 +1,34 @@
|
|
|
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 };
|
|
@@ -0,0 +1,34 @@
|
|
|
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 };
|
|
@@ -0,0 +1,34 @@
|
|
|
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 };
|
|
@@ -0,0 +1,34 @@
|
|
|
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 };
|
|
@@ -0,0 +1,61 @@
|
|
|
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
|
+
import r from "@lucide/svelte/icons/chevron-down";
|
|
6
|
+
//#region src/lib/components/ui/range-calendar/range-calendar-month-select.svelte
|
|
7
|
+
var i = t.from_html("<option> </option>"), a = 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), o = t.from_html("<span><!></span>");
|
|
8
|
+
function s(s, c) {
|
|
9
|
+
t.push(c, !0);
|
|
10
|
+
let l = t.prop(c, "ref", 15, null), u = t.rest_props(c, [
|
|
11
|
+
"$$slots",
|
|
12
|
+
"$$events",
|
|
13
|
+
"$$legacy",
|
|
14
|
+
"ref",
|
|
15
|
+
"class",
|
|
16
|
+
"value",
|
|
17
|
+
"onchange"
|
|
18
|
+
]);
|
|
19
|
+
var d = o(), f = t.child(d);
|
|
20
|
+
{
|
|
21
|
+
let o = (n, o) => {
|
|
22
|
+
let s = () => o?.().props, l = () => o?.().monthItems, u = () => o?.().selectedMonthItem;
|
|
23
|
+
var d = a(), f = t.first_child(d);
|
|
24
|
+
t.attribute_effect(f, () => ({
|
|
25
|
+
...s(),
|
|
26
|
+
value: c.value,
|
|
27
|
+
onchange: c.onchange
|
|
28
|
+
})), t.each(f, 21, l, (e) => e.value, (e, n) => {
|
|
29
|
+
var r = i(), a = t.child(r, !0);
|
|
30
|
+
t.reset(r);
|
|
31
|
+
var o = {};
|
|
32
|
+
t.template_effect(() => {
|
|
33
|
+
t.set_selected(r, c.value === void 0 ? t.get(n).value === u().value : t.get(n).value === c.value), t.set_text(a, t.get(n).label), o !== (o = t.get(n).value) && (r.value = (r.__value = t.get(n).value) ?? "");
|
|
34
|
+
}), t.append(e, r);
|
|
35
|
+
}), t.reset(f);
|
|
36
|
+
var p = t.sibling(f, 2), m = t.child(p), h = t.sibling(m);
|
|
37
|
+
{
|
|
38
|
+
let n = t.derived(() => e("size-4", c.class));
|
|
39
|
+
r(h, { get class() {
|
|
40
|
+
return t.get(n);
|
|
41
|
+
} });
|
|
42
|
+
}
|
|
43
|
+
t.reset(p), t.template_effect((e) => t.set_text(m, `${e ?? ""} `), [() => l().find((e) => e.value === c.value)?.label || u().label]), t.append(n, d);
|
|
44
|
+
};
|
|
45
|
+
t.component(f, () => n.MonthSelect, (e, n) => {
|
|
46
|
+
n(e, t.spread_props({ class: "absolute inset-0 opacity-0" }, () => u, {
|
|
47
|
+
get ref() {
|
|
48
|
+
return l();
|
|
49
|
+
},
|
|
50
|
+
set ref(e) {
|
|
51
|
+
l(e);
|
|
52
|
+
},
|
|
53
|
+
child: o,
|
|
54
|
+
$$slots: { child: !0 }
|
|
55
|
+
}));
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
t.reset(d), t.template_effect((e) => t.set_class(d, 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]", c.class))]), t.append(s, d), t.pop();
|
|
59
|
+
}
|
|
60
|
+
//#endregion
|
|
61
|
+
export { s as default };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { cn as e } from "../../../utils.js";
|
|
2
|
+
import * as t from "svelte/internal/client";
|
|
3
|
+
import "svelte/internal/disclose-version";
|
|
4
|
+
//#region src/lib/components/ui/range-calendar/range-calendar-month.svelte
|
|
5
|
+
var n = t.from_html("<div><!></div>");
|
|
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
|
+
"children"
|
|
15
|
+
]);
|
|
16
|
+
var s = n();
|
|
17
|
+
t.attribute_effect(s, (e) => ({
|
|
18
|
+
...o,
|
|
19
|
+
class: e
|
|
20
|
+
}), [() => e("flex flex-col", i.class)]);
|
|
21
|
+
var c = t.child(s);
|
|
22
|
+
t.snippet(c, () => i.children ?? t.noop), t.reset(s), t.bind_this(s, (e) => a(e), () => a()), t.append(r, s), t.pop();
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
export { r as default };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { cn as e } from "../../../utils.js";
|
|
2
|
+
import * as t from "svelte/internal/client";
|
|
3
|
+
import "svelte/internal/disclose-version";
|
|
4
|
+
//#region src/lib/components/ui/range-calendar/range-calendar-months.svelte
|
|
5
|
+
var n = t.from_html("<div><!></div>");
|
|
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
|
+
"children"
|
|
15
|
+
]);
|
|
16
|
+
var s = n();
|
|
17
|
+
t.attribute_effect(s, (e) => ({
|
|
18
|
+
class: e,
|
|
19
|
+
...o
|
|
20
|
+
}), [() => e("relative flex flex-col gap-4 md:flex-row", i.class)]);
|
|
21
|
+
var c = t.child(s);
|
|
22
|
+
t.snippet(c, () => i.children ?? t.noop), t.reset(s), t.bind_this(s, (e) => a(e), () => a()), t.append(r, s), t.pop();
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
export { r as default };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { cn as e } from "../../../utils.js";
|
|
2
|
+
import * as t from "svelte/internal/client";
|
|
3
|
+
import "svelte/internal/disclose-version";
|
|
4
|
+
//#region src/lib/components/ui/range-calendar/range-calendar-nav.svelte
|
|
5
|
+
var n = t.from_html("<nav><!></nav>");
|
|
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
|
+
"children"
|
|
15
|
+
]);
|
|
16
|
+
var s = n();
|
|
17
|
+
t.attribute_effect(s, (e) => ({
|
|
18
|
+
...o,
|
|
19
|
+
class: e
|
|
20
|
+
}), [() => e("absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1", i.class)]);
|
|
21
|
+
var c = t.child(s);
|
|
22
|
+
t.snippet(c, () => i.children ?? t.noop), t.reset(s), t.bind_this(s, (e) => a(e), () => a()), t.append(r, s), t.pop();
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
export { r as default };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { cn as e } from "../../../utils.js";
|
|
2
|
+
import { buttonVariants as t } from "../button/button.js";
|
|
3
|
+
import * as n from "svelte/internal/client";
|
|
4
|
+
import "svelte/internal/disclose-version";
|
|
5
|
+
import { RangeCalendar as r } from "bits-ui";
|
|
6
|
+
import i from "@lucide/svelte/icons/chevron-right";
|
|
7
|
+
//#region src/lib/components/ui/range-calendar/range-calendar-next-button.svelte
|
|
8
|
+
function a(a, o) {
|
|
9
|
+
n.push(o, !0);
|
|
10
|
+
let s = (t) => {
|
|
11
|
+
{
|
|
12
|
+
let r = n.derived(() => e("size-4", o.class));
|
|
13
|
+
i(t, { get class() {
|
|
14
|
+
return n.get(r);
|
|
15
|
+
} });
|
|
16
|
+
}
|
|
17
|
+
}, c = n.prop(o, "ref", 15, null), l = n.prop(o, "variant", 3, "ghost"), u = n.rest_props(o, [
|
|
18
|
+
"$$slots",
|
|
19
|
+
"$$events",
|
|
20
|
+
"$$legacy",
|
|
21
|
+
"ref",
|
|
22
|
+
"class",
|
|
23
|
+
"children",
|
|
24
|
+
"variant"
|
|
25
|
+
]);
|
|
26
|
+
var d = n.comment(), f = n.first_child(d);
|
|
27
|
+
{
|
|
28
|
+
let i = n.derived(() => e(t({ variant: l() }), "size-(--cell-size) bg-transparent p-0 select-none disabled:opacity-50 rtl:rotate-180", o.class));
|
|
29
|
+
n.component(f, () => r.NextButton, (e, t) => {
|
|
30
|
+
t(e, n.spread_props({ get class() {
|
|
31
|
+
return n.get(i);
|
|
32
|
+
} }, () => u, {
|
|
33
|
+
get ref() {
|
|
34
|
+
return c();
|
|
35
|
+
},
|
|
36
|
+
set ref(e) {
|
|
37
|
+
c(e);
|
|
38
|
+
},
|
|
39
|
+
children: (e, t) => {
|
|
40
|
+
var r = n.comment(), i = n.first_child(r), a = (e) => {
|
|
41
|
+
var t = n.comment(), r = n.first_child(t);
|
|
42
|
+
n.snippet(r, () => o.children ?? n.noop), n.append(e, t);
|
|
43
|
+
}, c = (e) => {
|
|
44
|
+
s(e);
|
|
45
|
+
};
|
|
46
|
+
n.if(i, (e) => {
|
|
47
|
+
o.children ? e(a) : e(c, -1);
|
|
48
|
+
}), n.append(e, r);
|
|
49
|
+
},
|
|
50
|
+
$$slots: { default: !0 }
|
|
51
|
+
}));
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
n.append(a, d), n.pop();
|
|
55
|
+
}
|
|
56
|
+
//#endregion
|
|
57
|
+
export { a as default };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { cn as e } from "../../../utils.js";
|
|
2
|
+
import { buttonVariants as t } from "../button/button.js";
|
|
3
|
+
import * as n from "svelte/internal/client";
|
|
4
|
+
import "svelte/internal/disclose-version";
|
|
5
|
+
import { RangeCalendar as r } from "bits-ui";
|
|
6
|
+
import i from "@lucide/svelte/icons/chevron-left";
|
|
7
|
+
//#region src/lib/components/ui/range-calendar/range-calendar-prev-button.svelte
|
|
8
|
+
function a(a, o) {
|
|
9
|
+
n.push(o, !0);
|
|
10
|
+
let s = (t) => {
|
|
11
|
+
{
|
|
12
|
+
let r = n.derived(() => e("size-4", o.class));
|
|
13
|
+
i(t, { get class() {
|
|
14
|
+
return n.get(r);
|
|
15
|
+
} });
|
|
16
|
+
}
|
|
17
|
+
}, c = n.prop(o, "ref", 15, null), l = n.prop(o, "variant", 3, "ghost"), u = n.rest_props(o, [
|
|
18
|
+
"$$slots",
|
|
19
|
+
"$$events",
|
|
20
|
+
"$$legacy",
|
|
21
|
+
"ref",
|
|
22
|
+
"class",
|
|
23
|
+
"children",
|
|
24
|
+
"variant"
|
|
25
|
+
]);
|
|
26
|
+
var d = n.comment(), f = n.first_child(d);
|
|
27
|
+
{
|
|
28
|
+
let i = n.derived(() => e(t({ variant: l() }), "size-(--cell-size) bg-transparent p-0 select-none disabled:opacity-50 rtl:rotate-180", o.class));
|
|
29
|
+
n.component(f, () => r.PrevButton, (e, t) => {
|
|
30
|
+
t(e, n.spread_props({ get class() {
|
|
31
|
+
return n.get(i);
|
|
32
|
+
} }, () => u, {
|
|
33
|
+
get ref() {
|
|
34
|
+
return c();
|
|
35
|
+
},
|
|
36
|
+
set ref(e) {
|
|
37
|
+
c(e);
|
|
38
|
+
},
|
|
39
|
+
children: (e, t) => {
|
|
40
|
+
var r = n.comment(), i = n.first_child(r), a = (e) => {
|
|
41
|
+
var t = n.comment(), r = n.first_child(t);
|
|
42
|
+
n.snippet(r, () => o.children ?? n.noop), n.append(e, t);
|
|
43
|
+
}, c = (e) => {
|
|
44
|
+
s(e);
|
|
45
|
+
};
|
|
46
|
+
n.if(i, (e) => {
|
|
47
|
+
o.children ? e(a) : e(c, -1);
|
|
48
|
+
}), n.append(e, r);
|
|
49
|
+
},
|
|
50
|
+
$$slots: { default: !0 }
|
|
51
|
+
}));
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
n.append(a, d), n.pop();
|
|
55
|
+
}
|
|
56
|
+
//#endregion
|
|
57
|
+
export { a as default };
|
|
@@ -0,0 +1,59 @@
|
|
|
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
|
+
import r from "@lucide/svelte/icons/chevron-down";
|
|
6
|
+
//#region src/lib/components/ui/range-calendar/range-calendar-year-select.svelte
|
|
7
|
+
var i = t.from_html("<option> </option>"), a = 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), o = t.from_html("<span><!></span>");
|
|
8
|
+
function s(s, c) {
|
|
9
|
+
t.push(c, !0);
|
|
10
|
+
let l = t.prop(c, "ref", 15, null), u = t.rest_props(c, [
|
|
11
|
+
"$$slots",
|
|
12
|
+
"$$events",
|
|
13
|
+
"$$legacy",
|
|
14
|
+
"ref",
|
|
15
|
+
"class",
|
|
16
|
+
"value"
|
|
17
|
+
]);
|
|
18
|
+
var d = o(), f = t.child(d);
|
|
19
|
+
{
|
|
20
|
+
let o = (n, o) => {
|
|
21
|
+
let s = () => o?.().props, l = () => o?.().yearItems, u = () => o?.().selectedYearItem;
|
|
22
|
+
var d = a(), f = t.first_child(d);
|
|
23
|
+
t.attribute_effect(f, () => ({
|
|
24
|
+
...s(),
|
|
25
|
+
value: c.value
|
|
26
|
+
})), t.each(f, 21, l, (e) => e.value, (e, n) => {
|
|
27
|
+
var r = i(), a = t.child(r, !0);
|
|
28
|
+
t.reset(r);
|
|
29
|
+
var o = {};
|
|
30
|
+
t.template_effect(() => {
|
|
31
|
+
t.set_selected(r, c.value === void 0 ? t.get(n).value === u().value : t.get(n).value === c.value), t.set_text(a, t.get(n).label), o !== (o = t.get(n).value) && (r.value = (r.__value = t.get(n).value) ?? "");
|
|
32
|
+
}), t.append(e, r);
|
|
33
|
+
}), t.reset(f);
|
|
34
|
+
var p = t.sibling(f, 2), m = t.child(p), h = t.sibling(m);
|
|
35
|
+
{
|
|
36
|
+
let n = t.derived(() => e("size-4", c.class));
|
|
37
|
+
r(h, { get class() {
|
|
38
|
+
return t.get(n);
|
|
39
|
+
} });
|
|
40
|
+
}
|
|
41
|
+
t.reset(p), t.template_effect((e) => t.set_text(m, `${e ?? ""} `), [() => l().find((e) => e.value === c.value)?.label || u().label]), t.append(n, d);
|
|
42
|
+
};
|
|
43
|
+
t.component(f, () => n.YearSelect, (e, n) => {
|
|
44
|
+
n(e, t.spread_props({ class: "absolute inset-0 opacity-0" }, () => u, {
|
|
45
|
+
get ref() {
|
|
46
|
+
return l();
|
|
47
|
+
},
|
|
48
|
+
set ref(e) {
|
|
49
|
+
l(e);
|
|
50
|
+
},
|
|
51
|
+
child: o,
|
|
52
|
+
$$slots: { child: !0 }
|
|
53
|
+
}));
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
t.reset(d), t.template_effect((e) => t.set_class(d, 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]", c.class))]), t.append(s, d), t.pop();
|
|
57
|
+
}
|
|
58
|
+
//#endregion
|
|
59
|
+
export { s as default };
|