@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.
Files changed (137) hide show
  1. package/dist/lib/LoadScreen.js +14 -14
  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 +44 -35
  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/index.js +19 -17
  49. package/dist/lib/map/Map.js +1 -1
  50. package/dist/lib/map/MapStyleDisplayOptions.js +16 -16
  51. package/dist/lib/map/Menu.js +23 -24
  52. package/dist/lib/map/integrations/map-icon-manager.js +3 -0
  53. package/dist/lib/map/utils.js +16 -13
  54. package/dist/lib/monitors/components/MonitorClusterTooltip.js +4 -4
  55. package/dist/lib/monitors/components/MonitorMarkersLegend.js +35 -0
  56. package/dist/lib/monitors/components/MonitorSubscriptionManager.js +1 -1
  57. package/dist/lib/monitors/components/MonitorTooltip.js +1 -1
  58. package/dist/lib/monitors/components/MonitorWidgetModal.js +1 -1
  59. package/dist/lib/monitors/components/MonitorsDisplayOptions.js +21 -21
  60. package/dist/lib/monitors/monitors-icon-manager.svelte.js +9 -9
  61. package/dist/lib/monitors/monitors-map-integration.svelte.js +36 -36
  62. package/dist/lib/monitors/monitors.svelte.js +38 -42
  63. package/dist/lib/router-context.js +13 -0
  64. package/dist/lib/routes.js +10 -0
  65. package/dist/lib/search/Search.js +124 -0
  66. package/dist/lib/search/service.js +90 -0
  67. package/dist/lib/sjvair-sjv.avif +0 -0
  68. package/dist/lib/sjvair-sjv.webp +0 -0
  69. package/dist/lib/sjvair-sjv2.avif +0 -0
  70. package/dist/lib/sjvair-sjv2.webp +0 -0
  71. package/dist/lib/utils.js +9 -3
  72. package/package.json +37 -36
  73. package/src/lib/LoadScreen.svelte +5 -5
  74. package/src/lib/MainMapView.svelte +1 -0
  75. package/src/lib/MapLegend.svelte +15 -0
  76. package/src/lib/MonitorDetailPanel.svelte +152 -0
  77. package/src/lib/MonitorMapLayout.svelte +193 -0
  78. package/src/lib/components/MapLayersDisplayOptions.svelte +6 -2
  79. package/src/lib/hms/components/HMSFireLegend.svelte +21 -0
  80. package/src/lib/index.ts +34 -0
  81. package/src/lib/map/Map.svelte +1 -0
  82. package/src/lib/map/Menu.svelte +4 -7
  83. package/src/lib/map/integrations/map-icon-manager.ts +4 -1
  84. package/src/lib/monitors/monitors.svelte.ts +1 -3
  85. package/src/lib/router-context.ts +48 -0
  86. package/src/lib/routes.ts +8 -0
  87. package/src/lib/search/Search.svelte +189 -0
  88. package/src/lib/search/service.ts +101 -0
  89. package/src/lib/utils.ts +11 -0
  90. package/dist/lib/assets/icons/adjustment-horizontal.js +0 -4
  91. package/dist/lib/node_modules/@internationalized/date/dist/private/CalendarDate.js +0 -122
  92. package/dist/lib/node_modules/@internationalized/date/dist/private/DateFormatter.js +0 -84
  93. package/dist/lib/node_modules/@internationalized/date/dist/private/calendars/GregorianCalendar.js +0 -91
  94. package/dist/lib/node_modules/@internationalized/date/dist/private/conversion.js +0 -104
  95. package/dist/lib/node_modules/@internationalized/date/dist/private/manipulation.js +0 -159
  96. package/dist/lib/node_modules/@internationalized/date/dist/private/queries.js +0 -32
  97. package/dist/lib/node_modules/@internationalized/date/dist/private/string.js +0 -37
  98. package/dist/lib/node_modules/@internationalized/date/dist/private/utils.js +0 -6
  99. package/dist/lib/node_modules/clsx/dist/clsx.js +0 -16
  100. package/dist/lib/node_modules/tailwind-merge/dist/bundle-mjs.js +0 -1723
  101. package/dist/lib/node_modules/tailwind-variants/dist/chunk-LQJYWU4O.js +0 -70
  102. package/dist/lib/node_modules/tailwind-variants/dist/chunk-RZF76H2U.js +0 -166
  103. package/dist/lib/node_modules/tailwind-variants/dist/index.js +0 -19
  104. package/dist/lib/node_modules/uplot/dist/uPlot.esm.js +0 -2147
  105. package/dist/lib/src/MonitorDetailPanel.js +0 -169
  106. package/dist/lib/src/router.js +0 -9
  107. package/dist/monitor-map/MonitorDetailPanel.css +0 -1
  108. package/dist/monitor-map/assets/MonitorDetailPanel-BU_pXZjp.js +0 -15
  109. package/dist/monitor-map/assets/validate-routes-CgbRa8fT.js +0 -1
  110. package/dist/monitor-map/inter-cyrillic-ext-wght-normal.woff2 +0 -0
  111. package/dist/monitor-map/inter-cyrillic-wght-normal.woff2 +0 -0
  112. package/dist/monitor-map/inter-greek-ext-wght-normal.woff2 +0 -0
  113. package/dist/monitor-map/inter-greek-wght-normal.woff2 +0 -0
  114. package/dist/monitor-map/inter-latin-ext-wght-normal.woff2 +0 -0
  115. package/dist/monitor-map/inter-latin-wght-normal.woff2 +0 -0
  116. package/dist/monitor-map/inter-vietnamese-wght-normal.woff2 +0 -0
  117. package/dist/monitor-map/lungs.svg +0 -99
  118. package/dist/monitor-map/sjvair-air.avif +0 -0
  119. package/dist/monitor-map/sjvair-air.png +0 -0
  120. package/dist/monitor-map/sjvair-air.webp +0 -0
  121. package/dist/monitor-map/sjvair-air2.avif +0 -0
  122. package/dist/monitor-map/sjvair-air2.png +0 -0
  123. package/dist/monitor-map/sjvair-air2.webp +0 -0
  124. package/dist/monitor-map/sjvair-icon.avif +0 -0
  125. package/dist/monitor-map/sjvair-icon.png +0 -0
  126. package/dist/monitor-map/sjvair-icon.webp +0 -0
  127. package/dist/monitor-map/sjvair-icon2.avif +0 -0
  128. package/dist/monitor-map/sjvair-icon2.png +0 -0
  129. package/dist/monitor-map/sjvair-icon2.webp +0 -0
  130. package/dist/monitor-map/sjvair-sjv.avif +0 -0
  131. package/dist/monitor-map/sjvair-sjv.png +0 -0
  132. package/dist/monitor-map/sjvair-sjv.webp +0 -0
  133. package/dist/monitor-map/sjvair-sjv2.avif +0 -0
  134. package/dist/monitor-map/sjvair-sjv2.png +0 -0
  135. package/dist/monitor-map/sjvair-sjv2.webp +0 -0
  136. package/dist/monitor-map/sjvairMonitorMap.css +0 -1
  137. 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
- 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("text-muted-foreground w-(--cell-size) rounded-md text-[0.8rem] font-normal", i.class));
18
- t.component(c, () => n.HeadCell, (e, n) => {
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
- } }, () => 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-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);
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", i.class));
18
- t.component(c, () => n.Header, (e, n) => {
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
- } }, () => 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,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 = t.from_html("<option> </option>"), a = t.from_html("<select></select> <span class=\"[&amp;>svg]:text-muted-foreground flex h-(--cell-size) items-center gap-1 rounded-md ps-2 pe-1 text-sm font-medium select-none [&amp;>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);
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=\"[&amp;>svg]:text-muted-foreground flex h-(--cell-size) items-center gap-1 rounded-md ps-2 pe-1 text-sm font-medium select-none [&amp;>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 o = (n, o) => {
22
- let s = () => o?.().props, l = () => o?.().monthItems, u = () => o?.().selectedMonthItem;
23
- var d = a(), f = t.first_child(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: 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);
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, 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) ?? "");
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", c.class));
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 ?? ""} `), [() => l().find((e) => e.value === c.value)?.label || u().label]), t.append(n, d);
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(f, () => n.MonthSelect, (e, n) => {
46
- n(e, t.spread_props({ class: "absolute inset-0 opacity-0" }, () => u, {
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 l();
48
+ return u();
49
49
  },
50
50
  set ref(e) {
51
- l(e);
51
+ u(e);
52
52
  },
53
- child: o,
53
+ child: i,
54
54
  $$slots: { child: !0 }
55
55
  }));
56
56
  });
57
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();
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 { s as default };
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 = 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,
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", 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();
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 { r as default };
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 = 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) => ({
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
- ...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();
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 { r as default };
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 = 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,
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", 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();
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 { r as default };
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
- function a(a, o) {
9
- n.push(o, !0);
10
- let s = (t) => {
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", o.class));
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
- }, 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);
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: 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) => {
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
- } }, () => u, {
33
+ } }, () => d, {
33
34
  get ref() {
34
- return c();
35
+ return l();
35
36
  },
36
37
  set ref(e) {
37
- c(e);
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, () => o.children ?? n.noop), n.append(e, t);
43
- }, c = (e) => {
44
- s(e);
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
- o.children ? e(a) : e(c, -1);
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(a, d), n.pop();
55
+ n.append(o, f), n.pop();
55
56
  }
56
57
  //#endregion
57
- export { a as default };
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
- function a(a, o) {
9
- n.push(o, !0);
10
- let s = (t) => {
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", o.class));
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
- }, 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);
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: 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) => {
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
- } }, () => u, {
33
+ } }, () => d, {
33
34
  get ref() {
34
- return c();
35
+ return l();
35
36
  },
36
37
  set ref(e) {
37
- c(e);
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, () => o.children ?? n.noop), n.append(e, t);
43
- }, c = (e) => {
44
- s(e);
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
- o.children ? e(a) : e(c, -1);
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(a, d), n.pop();
55
+ n.append(o, f), n.pop();
55
56
  }
56
57
  //#endregion
57
- export { a as default };
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 = t.from_html("<option> </option>"), a = t.from_html("<select></select> <span class=\"[&amp;>svg]:text-muted-foreground flex h-(--cell-size) items-center gap-1 rounded-md ps-2 pe-1 text-sm font-medium select-none [&amp;>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);
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=\"[&amp;>svg]:text-muted-foreground flex h-(--cell-size) items-center gap-1 rounded-md ps-2 pe-1 text-sm font-medium select-none [&amp;>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 o = (n, o) => {
21
- let s = () => o?.().props, l = () => o?.().yearItems, u = () => o?.().selectedYearItem;
22
- var d = a(), f = t.first_child(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: c.value
26
- })), t.each(f, 21, l, (e) => e.value, (e, n) => {
27
- var r = i(), a = t.child(r, !0);
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, 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) ?? "");
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", c.class));
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 ?? ""} `), [() => l().find((e) => e.value === c.value)?.label || u().label]), t.append(n, d);
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(f, () => n.YearSelect, (e, n) => {
44
- n(e, t.spread_props({ class: "absolute inset-0 opacity-0" }, () => u, {
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 l();
46
+ return u();
47
47
  },
48
48
  set ref(e) {
49
- l(e);
49
+ u(e);
50
50
  },
51
- child: o,
51
+ child: i,
52
52
  $$slots: { child: !0 }
53
53
  }));
54
54
  });
55
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();
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 { s as default };
59
+ export { c as default };