@sjvair/monitor-map 3.0.1 → 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.
Files changed (151) hide show
  1. package/dist/lib/LoadScreen.js +15 -15
  2. package/dist/lib/{src/MapView.js → MainMapView.js} +2 -2
  3. package/dist/lib/MapLegend.js +13 -0
  4. package/dist/lib/MonitorDetailPanel.js +169 -0
  5. package/dist/lib/MonitorMapLayout.js +91 -0
  6. package/dist/lib/_virtual/_rolldown/runtime.js +11 -0
  7. package/dist/lib/assets/logos/airgradient-blue.js +4 -0
  8. package/dist/lib/assets/logos/airnow-compact.js +4 -0
  9. package/dist/lib/assets/logos/carb-compact.js +4 -0
  10. package/dist/lib/assets/logos/purpleair-compact.js +4 -0
  11. package/dist/lib/assets/logos/sjvair.js +4 -0
  12. package/dist/lib/collocation-sites/CollocationTooltip.js +1 -1
  13. package/dist/lib/collocation-sites/collocations-map-integration.svelte.js +20 -20
  14. package/dist/lib/components/DataBox.js +1 -1
  15. package/dist/lib/components/DisplayOption.js +1 -1
  16. package/dist/lib/components/MapLayersDisplayOptions.js +47 -31
  17. package/dist/lib/components/SegmentedControl.js +4 -4
  18. package/dist/lib/components/ToggleSwitch.js +1 -1
  19. package/dist/lib/components/ui/button/button.js +4 -4
  20. package/dist/lib/components/ui/range-calendar/range-calendar-caption.js +57 -54
  21. package/dist/lib/components/ui/range-calendar/range-calendar-cell.js +19 -18
  22. package/dist/lib/components/ui/range-calendar/range-calendar-day.js +19 -18
  23. package/dist/lib/components/ui/range-calendar/range-calendar-grid-body.js +17 -16
  24. package/dist/lib/components/ui/range-calendar/range-calendar-grid-head.js +17 -16
  25. package/dist/lib/components/ui/range-calendar/range-calendar-grid-row.js +19 -18
  26. package/dist/lib/components/ui/range-calendar/range-calendar-grid.js +19 -18
  27. package/dist/lib/components/ui/range-calendar/range-calendar-head-cell.js +19 -18
  28. package/dist/lib/components/ui/range-calendar/range-calendar-header.js +19 -18
  29. package/dist/lib/components/ui/range-calendar/range-calendar-month-select.js +31 -31
  30. package/dist/lib/components/ui/range-calendar/range-calendar-month.js +19 -19
  31. package/dist/lib/components/ui/range-calendar/range-calendar-months.js +19 -19
  32. package/dist/lib/components/ui/range-calendar/range-calendar-nav.js +19 -19
  33. package/dist/lib/components/ui/range-calendar/range-calendar-next-button.js +27 -26
  34. package/dist/lib/components/ui/range-calendar/range-calendar-prev-button.js +27 -26
  35. package/dist/lib/components/ui/range-calendar/range-calendar-year-select.js +29 -29
  36. package/dist/lib/components/ui/range-calendar/range-calendar.js +154 -154
  37. package/dist/lib/data-chart/DataChart.js +76 -76
  38. package/dist/lib/ev-stations/components/EvStationClusterTooltip.js +16 -0
  39. package/dist/lib/ev-stations/components/EvStationTooltip.js +120 -0
  40. package/dist/lib/ev-stations/components/EvStationsDisplayOptions.js +41 -0
  41. package/dist/lib/ev-stations/data-maps.js +4 -0
  42. package/dist/lib/ev-stations/ev-station-icons.js +32 -0
  43. package/dist/lib/ev-stations/ev-stations-cluster-renderer.js +118 -0
  44. package/dist/lib/ev-stations/ev-stations-map-integration.svelte.js +181 -0
  45. package/dist/lib/ev-stations/ev-stations.svelte.js +33 -0
  46. package/dist/lib/ev-stations/zip-codes.js +136 -0
  47. package/dist/lib/hms/components/HMSFireLegend.js +35 -0
  48. package/dist/lib/hms/hms.svelte.js +12 -12
  49. package/dist/lib/index.js +19 -17
  50. package/dist/lib/map/Map.js +1 -1
  51. package/dist/lib/map/MapStyleDisplayOptions.js +16 -16
  52. package/dist/lib/map/Menu.js +23 -24
  53. package/dist/lib/map/integrations/map-display-option.svelte.js +3 -2
  54. package/dist/lib/map/integrations/map-icon-manager.js +4 -1
  55. package/dist/lib/map/utils.js +16 -13
  56. package/dist/lib/monitors/components/MonitorClusterTooltip.js +4 -4
  57. package/dist/lib/monitors/components/MonitorMarkersLegend.js +35 -0
  58. package/dist/lib/monitors/components/MonitorSubscriptionManager.js +1 -1
  59. package/dist/lib/monitors/components/MonitorTooltip.js +1 -1
  60. package/dist/lib/monitors/components/MonitorWidgetModal.js +1 -1
  61. package/dist/lib/monitors/components/MonitorsDisplayOptions.js +48 -39
  62. package/dist/lib/monitors/monitors-icon-manager.svelte.js +24 -17
  63. package/dist/lib/monitors/monitors-map-integration.svelte.js +65 -59
  64. package/dist/lib/monitors/monitors.svelte.js +38 -42
  65. package/dist/lib/router-context.js +13 -0
  66. package/dist/lib/routes.js +10 -0
  67. package/dist/lib/search/Search.js +124 -0
  68. package/dist/lib/search/service.js +90 -0
  69. package/dist/lib/sjvair-air.webp +0 -0
  70. package/dist/lib/sjvair-air2.webp +0 -0
  71. package/dist/lib/sjvair-icon.avif +0 -0
  72. package/dist/lib/sjvair-icon.png +0 -0
  73. package/dist/lib/sjvair-icon2.avif +0 -0
  74. package/dist/lib/sjvair-icon2.png +0 -0
  75. package/dist/lib/sjvair-sjv.avif +0 -0
  76. package/dist/lib/sjvair-sjv.webp +0 -0
  77. package/dist/lib/sjvair-sjv2.avif +0 -0
  78. package/dist/lib/sjvair-sjv2.webp +0 -0
  79. package/dist/lib/utils.js +9 -3
  80. package/package.json +37 -36
  81. package/src/lib/LoadScreen.svelte +5 -5
  82. package/src/lib/MainMapView.svelte +1 -0
  83. package/src/lib/MapLegend.svelte +15 -0
  84. package/src/lib/MonitorDetailPanel.svelte +152 -0
  85. package/src/lib/MonitorMapLayout.svelte +193 -0
  86. package/src/lib/components/MapLayersDisplayOptions.svelte +27 -10
  87. package/src/lib/ev-stations/components/EvStationsDisplayOptions.svelte +14 -2
  88. package/src/lib/ev-stations/ev-stations-map-integration.svelte.ts +4 -4
  89. package/src/lib/hms/components/HMSFireLegend.svelte +21 -0
  90. package/src/lib/index.ts +34 -0
  91. package/src/lib/map/Map.svelte +1 -0
  92. package/src/lib/map/Menu.svelte +4 -7
  93. package/src/lib/map/integrations/map-display-option.svelte.ts +5 -1
  94. package/src/lib/map/integrations/map-icon-manager.ts +7 -3
  95. package/src/lib/monitors/components/MonitorsDisplayOptions.svelte +4 -1
  96. package/src/lib/monitors/monitors-icon-manager.svelte.ts +3 -1
  97. package/src/lib/monitors/monitors-map-integration.svelte.ts +9 -9
  98. package/src/lib/monitors/monitors.svelte.ts +1 -3
  99. package/src/lib/router-context.ts +48 -0
  100. package/src/lib/routes.ts +8 -0
  101. package/src/lib/search/Search.svelte +189 -0
  102. package/src/lib/search/service.ts +101 -0
  103. package/src/lib/utils.ts +11 -0
  104. package/dist/lib/assets/icons/adjustment-horizontal.js +0 -4
  105. package/dist/lib/node_modules/@internationalized/date/dist/private/CalendarDate.js +0 -122
  106. package/dist/lib/node_modules/@internationalized/date/dist/private/DateFormatter.js +0 -84
  107. package/dist/lib/node_modules/@internationalized/date/dist/private/calendars/GregorianCalendar.js +0 -91
  108. package/dist/lib/node_modules/@internationalized/date/dist/private/conversion.js +0 -104
  109. package/dist/lib/node_modules/@internationalized/date/dist/private/manipulation.js +0 -159
  110. package/dist/lib/node_modules/@internationalized/date/dist/private/queries.js +0 -32
  111. package/dist/lib/node_modules/@internationalized/date/dist/private/string.js +0 -37
  112. package/dist/lib/node_modules/@internationalized/date/dist/private/utils.js +0 -6
  113. package/dist/lib/node_modules/clsx/dist/clsx.js +0 -16
  114. package/dist/lib/node_modules/tailwind-merge/dist/bundle-mjs.js +0 -1723
  115. package/dist/lib/node_modules/tailwind-variants/dist/chunk-LQJYWU4O.js +0 -70
  116. package/dist/lib/node_modules/tailwind-variants/dist/chunk-RZF76H2U.js +0 -166
  117. package/dist/lib/node_modules/tailwind-variants/dist/index.js +0 -19
  118. package/dist/lib/node_modules/uplot/dist/uPlot.esm.js +0 -2147
  119. package/dist/lib/src/MonitorDetailPanel.js +0 -169
  120. package/dist/lib/src/router.js +0 -9
  121. package/dist/monitor-map/MonitorDetailPanel.css +0 -1
  122. package/dist/monitor-map/assets/MonitorDetailPanel-DmN3xPui.js +0 -15
  123. package/dist/monitor-map/assets/validate-routes-CgbRa8fT.js +0 -1
  124. package/dist/monitor-map/inter-cyrillic-ext-wght-normal.woff2 +0 -0
  125. package/dist/monitor-map/inter-cyrillic-wght-normal.woff2 +0 -0
  126. package/dist/monitor-map/inter-greek-ext-wght-normal.woff2 +0 -0
  127. package/dist/monitor-map/inter-greek-wght-normal.woff2 +0 -0
  128. package/dist/monitor-map/inter-latin-ext-wght-normal.woff2 +0 -0
  129. package/dist/monitor-map/inter-latin-wght-normal.woff2 +0 -0
  130. package/dist/monitor-map/inter-vietnamese-wght-normal.woff2 +0 -0
  131. package/dist/monitor-map/lungs.svg +0 -99
  132. package/dist/monitor-map/sjvair-air.avif +0 -0
  133. package/dist/monitor-map/sjvair-air.png +0 -0
  134. package/dist/monitor-map/sjvair-air.webp +0 -0
  135. package/dist/monitor-map/sjvair-air2.avif +0 -0
  136. package/dist/monitor-map/sjvair-air2.png +0 -0
  137. package/dist/monitor-map/sjvair-air2.webp +0 -0
  138. package/dist/monitor-map/sjvair-icon.avif +0 -0
  139. package/dist/monitor-map/sjvair-icon.png +0 -0
  140. package/dist/monitor-map/sjvair-icon.webp +0 -0
  141. package/dist/monitor-map/sjvair-icon2.avif +0 -0
  142. package/dist/monitor-map/sjvair-icon2.png +0 -0
  143. package/dist/monitor-map/sjvair-icon2.webp +0 -0
  144. package/dist/monitor-map/sjvair-sjv.avif +0 -0
  145. package/dist/monitor-map/sjvair-sjv.png +0 -0
  146. package/dist/monitor-map/sjvair-sjv.webp +0 -0
  147. package/dist/monitor-map/sjvair-sjv2.avif +0 -0
  148. package/dist/monitor-map/sjvair-sjv2.png +0 -0
  149. package/dist/monitor-map/sjvair-sjv2.webp +0 -0
  150. package/dist/monitor-map/sjvairMonitorMap.css +0 -1
  151. package/dist/monitor-map/sjvairMonitorMap.js +0 -4042
@@ -1,71 +1,87 @@
1
- import { monitorsManager as e } from "../monitors/monitors.svelte.js";
2
- import { collocationSitesMapIntegration as t } from "../collocation-sites/collocations-map-integration.svelte.js";
3
- import { windMapIntegration as n } from "../wind/wind.svelte.js";
4
- import r from "./DisplayOption.js";
5
- import i from "./ToggleSwitch.js";
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
12
  //#region src/lib/components/MapLayersDisplayOptions.svelte
12
- var c = s.reactive_import(() => n), l = s.reactive_import(() => t), u = s.reactive_import(() => a), d = s.reactive_import(() => o), f = s.from_html("<p class=\"text-lg font-bold whitespace-nowrap underline\">Map Layers</p> <!> <!> <!> <!>", 1);
13
- function p(t, n) {
14
- s.push(n, !1), s.init(), r(t, {
15
- children: (t, n) => {
16
- var r = f(), a = s.sibling(s.first_child(r), 2);
17
- i(a, {
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), {
18
21
  id: "wind",
19
22
  label: "Wind",
20
23
  get value() {
21
- return c().enabled;
24
+ return d().enabled;
22
25
  },
23
26
  set value(e) {
24
- c(c().enabled = e);
27
+ d(d().enabled = e);
25
28
  },
26
29
  $$legacy: !0
27
- });
28
- var o = s.sibling(a, 2), p = (e) => {
29
- i(e, {
30
+ }), s.reset(o);
31
+ var y = s.sibling(o, 2), b = (e) => {
32
+ var n = h(), r = s.child(n);
33
+ c(r, {
34
+ size: "16",
35
+ color: "#4A5FC6"
36
+ }), t(s.sibling(r, 2), {
30
37
  id: "collocation-sites",
31
38
  label: "Collocation Sites",
32
39
  get value() {
33
- return l().enabled;
40
+ return f().enabled;
34
41
  },
35
42
  set value(e) {
36
- l(l().enabled = e);
43
+ f(f().enabled = e);
37
44
  },
38
45
  $$legacy: !0
39
- });
46
+ }), s.reset(n), s.append(e, n);
40
47
  };
41
- s.if(o, (t) => {
42
- e.pollutant === "pm25" && t(p);
48
+ s.if(y, (e) => {
49
+ n.pollutant === "pm25" && e(b);
43
50
  });
44
- var m = s.sibling(o, 2);
45
- i(m, {
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), {
46
60
  id: "hms-fire",
47
61
  label: "HMS Fire",
48
62
  get value() {
49
- return u().enabled;
63
+ return p().enabled;
50
64
  },
51
65
  set value(e) {
52
- u(u().enabled = e);
66
+ p(p().enabled = e);
53
67
  },
54
68
  $$legacy: !0
55
- }), i(s.sibling(m, 2), {
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), {
56
72
  id: "hms-smoke",
57
73
  label: "HMS Smoke",
58
74
  get value() {
59
- return d().enabled;
75
+ return m().enabled;
60
76
  },
61
77
  set value(e) {
62
- d(d().enabled = e);
78
+ m(m().enabled = e);
63
79
  },
64
80
  $$legacy: !0
65
- }), s.append(t, r);
81
+ }), s.reset(w), s.append(e, i);
66
82
  },
67
83
  $$slots: { default: !0 }
68
84
  }), s.pop();
69
85
  }
70
86
  //#endregion
71
- export { p as default };
87
+ export { v as default };
@@ -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 { untrack as n } from "svelte";
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
- n(() => t.get("pollutant")) !== r.value && n(() => t.set("pollutant", r.value));
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 = e({
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
- t.from_html("<a><!></a>"), t.from_html("<button><!></button>");
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 { $ad063034c8620db8$export$aa8b41735afcabd2 as e } from "../../../node_modules/@internationalized/date/dist/private/queries.js";
2
- import { $12a3c853105e5a70$export$ad991b66133851cf as t } from "../../../node_modules/@internationalized/date/dist/private/DateFormatter.js";
3
- import n from "./range-calendar-month-select.js";
4
- import r from "./range-calendar-year-select.js";
5
- import * as i from "svelte/internal/client";
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 = i.from_html("<!> <!>", 1), o = i.from_html("<!> <!>", 1), s = i.from_html("<!> <!>", 1);
9
- function c(c, l) {
10
- i.push(l, !0);
11
- let u = (e) => {
12
- n(e, {
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 l.months;
13
+ return s.months;
15
14
  },
16
15
  get monthFormat() {
17
- return l.monthFormat;
16
+ return s.monthFormat;
18
17
  },
19
18
  get value() {
20
- return l.month.month;
19
+ return s.month.month;
21
20
  },
22
21
  onchange: (e) => {
23
- if (!f()) return;
24
- let t = Number.parseInt(e.currentTarget.value);
25
- f(f().set({ month: t }).subtract({ months: p() }));
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
- }, d = (e) => {
29
- r(e, {
27
+ }, l = (e) => {
28
+ t(e, {
30
29
  get years() {
31
- return l.years;
30
+ return s.years;
32
31
  },
33
32
  get yearFormat() {
34
- return l.yearFormat;
33
+ return s.yearFormat;
35
34
  },
36
35
  get value() {
37
- return l.month.year;
36
+ return s.month.year;
38
37
  }
39
38
  });
40
- }, f = i.prop(l, "placeholder", 15), p = i.prop(l, "monthIndex", 3, 0);
41
- function m(n) {
42
- let r = n.toDate(e());
43
- return typeof l.yearFormat == "function" ? l.yearFormat(r.getFullYear()) : new t(l.locale, { year: l.yearFormat }).format(r);
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 h(n) {
46
- let r = n.toDate(e());
47
- return typeof l.monthFormat == "function" ? l.monthFormat(r.getMonth() + 1) : new t(l.locale, { month: l.monthFormat }).format(r);
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 g = i.comment(), _ = i.first_child(g), v = (e) => {
50
- var t = a(), n = i.first_child(t);
51
- u(n), d(i.sibling(n, 2)), i.append(e, t);
52
- }, y = (e) => {
53
- var t = o(), n = i.first_child(t);
54
- u(n);
55
- var r = i.sibling(n, 2), a = (e) => {
56
- var t = i.text();
57
- i.template_effect((e) => i.set_text(t, e), [() => m(f())]), i.append(e, t);
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
- i.if(r, (e) => {
60
- f() && e(a);
61
- }), i.append(e, t);
62
- }, b = (e) => {
63
- var t = s(), n = i.first_child(t), r = (e) => {
64
- var t = i.text();
65
- i.template_effect((e) => i.set_text(t, e), [() => h(f())]), i.append(e, t);
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
- i.if(n, (e) => {
68
- f() && e(r);
69
- }), d(i.sibling(n, 2)), i.append(e, t);
70
- }, x = (e) => {
71
- var t = i.text();
72
- i.template_effect((e, n) => i.set_text(t, `${e ?? ""} ${n ?? ""}`), [() => h(l.month), () => m(l.month)]), i.append(e, t);
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
- i.if(_, (e) => {
75
- l.captionLayout === "dropdown" ? e(v) : l.captionLayout === "dropdown-months" ? e(y, 1) : l.captionLayout === "dropdown-years" ? e(b, 2) : e(x, -1);
76
- }), i.append(c, g), i.pop();
77
+ 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 { c as default };
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
- 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);
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)", i.class));
18
- t.component(c, () => n.Cell, (e, n) => {
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
- } }, () => o, {
22
+ } }, () => s, {
22
23
  get ref() {
23
- return a();
24
+ return o();
24
25
  },
25
26
  set ref(e) {
26
- a(e);
27
+ o(e);
27
28
  }
28
29
  }));
29
30
  });
30
31
  }
31
- t.append(r, s), t.pop();
32
+ t.append(i, c), t.pop();
32
33
  }
33
34
  //#endregion
34
- export { r as default };
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
- 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);
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", i.class));
18
- t.component(c, () => n.Day, (e, n) => {
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
- } }, () => o, {
22
+ } }, () => s, {
22
23
  get ref() {
23
- return a();
24
+ return o();
24
25
  },
25
26
  set ref(e) {
26
- a(e);
27
+ o(e);
27
28
  }
28
29
  }));
29
30
  });
30
31
  }
31
- t.append(r, s), t.pop();
32
+ t.append(i, c), t.pop();
32
33
  }
33
34
  //#endregion
34
- export { r as default };
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
- 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, {
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 i();
18
+ return a();
18
19
  },
19
20
  set ref(e) {
20
- i(e);
21
+ a(e);
21
22
  }
22
23
  }));
23
- }), e.append(n, o), e.pop();
24
+ }), e.append(r, s), e.pop();
24
25
  }
25
26
  //#endregion
26
- export { n as default };
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
- 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, {
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 i();
18
+ return a();
18
19
  },
19
20
  set ref(e) {
20
- i(e);
21
+ a(e);
21
22
  }
22
23
  }));
23
- }), e.append(n, o), e.pop();
24
+ }), e.append(r, s), e.pop();
24
25
  }
25
26
  //#endregion
26
- export { n as default };
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
- 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);
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", i.class));
18
- t.component(c, () => n.GridRow, (e, n) => {
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
- } }, () => o, {
22
+ } }, () => s, {
22
23
  get ref() {
23
- return a();
24
+ return o();
24
25
  },
25
26
  set ref(e) {
26
- a(e);
27
+ o(e);
27
28
  }
28
29
  }));
29
30
  });
30
31
  }
31
- t.append(r, s), t.pop();
32
+ t.append(i, c), t.pop();
32
33
  }
33
34
  //#endregion
34
- export { r as default };
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
- 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);
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", i.class));
18
- t.component(c, () => n.Grid, (e, n) => {
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
- } }, () => o, {
22
+ } }, () => s, {
22
23
  get ref() {
23
- return a();
24
+ return o();
24
25
  },
25
26
  set ref(e) {
26
- a(e);
27
+ o(e);
27
28
  }
28
29
  }));
29
30
  });
30
31
  }
31
- t.append(r, s), t.pop();
32
+ t.append(i, c), t.pop();
32
33
  }
33
34
  //#endregion
34
- export { r as default };
35
+ export { i as default };