@getmicdrop/venue-calendar 4.3.23 → 4.3.24

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 (29) hide show
  1. package/dist/{CalendarFoundryView-BhyEWlgT.js → CalendarFoundryView-ylxXSy0Q.js} +30 -30
  2. package/dist/venue-calendar.es.js +2 -2
  3. package/dist/venue-calendar.iife.js +3 -3
  4. package/dist/venue-calendar.umd.js +2 -2
  5. package/package.json +2 -2
  6. /package/dist/locales/{4.3.23 → 4.3.24}/flow/de.js +0 -0
  7. /package/dist/locales/{4.3.23 → 4.3.24}/flow/es.js +0 -0
  8. /package/dist/locales/{4.3.23 → 4.3.24}/flow/fr.js +0 -0
  9. /package/dist/locales/{4.3.23 → 4.3.24}/flow/id.js +0 -0
  10. /package/dist/locales/{4.3.23 → 4.3.24}/flow/it.js +0 -0
  11. /package/dist/locales/{4.3.23 → 4.3.24}/flow/ja.js +0 -0
  12. /package/dist/locales/{4.3.23 → 4.3.24}/flow/ko.js +0 -0
  13. /package/dist/locales/{4.3.23 → 4.3.24}/flow/nl.js +0 -0
  14. /package/dist/locales/{4.3.23 → 4.3.24}/flow/pl.js +0 -0
  15. /package/dist/locales/{4.3.23 → 4.3.24}/flow/pt-br.js +0 -0
  16. /package/dist/locales/{4.3.23 → 4.3.24}/flow/tr.js +0 -0
  17. /package/dist/locales/{4.3.23 → 4.3.24}/flow/zh.js +0 -0
  18. /package/dist/locales/{4.3.23 → 4.3.24}/main/de.js +0 -0
  19. /package/dist/locales/{4.3.23 → 4.3.24}/main/es.js +0 -0
  20. /package/dist/locales/{4.3.23 → 4.3.24}/main/fr.js +0 -0
  21. /package/dist/locales/{4.3.23 → 4.3.24}/main/id.js +0 -0
  22. /package/dist/locales/{4.3.23 → 4.3.24}/main/it.js +0 -0
  23. /package/dist/locales/{4.3.23 → 4.3.24}/main/ja.js +0 -0
  24. /package/dist/locales/{4.3.23 → 4.3.24}/main/ko.js +0 -0
  25. /package/dist/locales/{4.3.23 → 4.3.24}/main/nl.js +0 -0
  26. /package/dist/locales/{4.3.23 → 4.3.24}/main/pl.js +0 -0
  27. /package/dist/locales/{4.3.23 → 4.3.24}/main/pt-br.js +0 -0
  28. /package/dist/locales/{4.3.23 → 4.3.24}/main/tr.js +0 -0
  29. /package/dist/locales/{4.3.23 → 4.3.24}/main/zh.js +0 -0
@@ -2192,14 +2192,14 @@ $.delegate(["click"]);
2192
2192
  var _o = $.from_html("<div></div>");
2193
2193
  function vo(e, t) {
2194
2194
  $.push(t, !0);
2195
- let n = $.prop(t, "options", 19, () => []), r = $.prop(t, "mode", 3, "single"), i = $.prop(t, "value", 15, ""), a = $.prop(t, "values", 31, () => $.proxy([])), o = $.prop(t, "disabled", 3, !1), s = $.prop(t, "class", 3, ""), c = $.derived(() => m("flex flex-wrap items-center gap-1.5", s())), l = $.derived(() => r() === "single"), u = $.derived(() => n().filter((e, t) => n().findIndex((t) => t.value === e.value) === t));
2196
- function d(e) {
2197
- return $.get(l) ? i() === e : a().includes(e);
2198
- }
2195
+ let n = $.prop(t, "options", 19, () => []), r = $.prop(t, "mode", 3, "single"), i = $.prop(t, "value", 15, ""), a = $.prop(t, "values", 31, () => $.proxy([])), o = $.prop(t, "disabled", 3, !1), s = $.prop(t, "orientation", 3, "horizontal"), c = $.prop(t, "class", 3, ""), l = $.derived(() => m(s() === "vertical" ? "flex flex-col items-stretch gap-1.5" : "flex flex-wrap items-center gap-1.5", c())), u = $.derived(() => r() === "single"), d = $.derived(() => n().filter((e, t) => n().findIndex((t) => t.value === e.value) === t));
2199
2196
  function f(e) {
2200
- let n = $.get(u).find((t) => t.value === e);
2197
+ return $.get(u) ? i() === e : a().includes(e);
2198
+ }
2199
+ function p(e) {
2200
+ let n = $.get(d).find((t) => t.value === e);
2201
2201
  if (!(o() || n?.disabled)) {
2202
- if ($.get(l)) {
2202
+ if ($.get(u)) {
2203
2203
  if (i() === e) return;
2204
2204
  i(e), t.onchange?.(e);
2205
2205
  return;
@@ -2207,39 +2207,39 @@ function vo(e, t) {
2207
2207
  a(a().includes(e) ? a().filter((t) => t !== e) : [...a(), e]), t.onchange?.(a());
2208
2208
  }
2209
2209
  }
2210
- let p = $.derived(() => {
2211
- if (!$.get(l)) return;
2212
- let e = $.get(u).filter((e) => !e.disabled && !o());
2210
+ let h = $.derived(() => {
2211
+ if (!$.get(u)) return;
2212
+ let e = $.get(d).filter((e) => !e.disabled && !o());
2213
2213
  return (e.find((e) => e.value === i()) ?? e[0])?.value;
2214
2214
  });
2215
2215
  Bt(mo, {
2216
2216
  get mode() {
2217
2217
  return r();
2218
2218
  },
2219
- isSelected: d,
2220
- isRoving: (e) => $.get(p) === e,
2221
- select: f
2219
+ isSelected: f,
2220
+ isRoving: (e) => $.get(h) === e,
2221
+ select: p
2222
2222
  });
2223
- let h = $.state(void 0), g = () => [...$.get(h)?.querySelectorAll(":scope > button") ?? []], _ = () => g().filter((e) => !e.disabled);
2224
- function v(e) {
2225
- let t = g().indexOf(e);
2226
- return t === -1 ? void 0 : $.get(u)[t];
2223
+ let g = $.state(void 0), _ = () => [...$.get(g)?.querySelectorAll(":scope > button") ?? []], v = () => _().filter((e) => !e.disabled);
2224
+ function y(e) {
2225
+ let t = _().indexOf(e);
2226
+ return t === -1 ? void 0 : $.get(d)[t];
2227
2227
  }
2228
- let y = li(_, {
2228
+ let b = $.derived(() => li(v, {
2229
2229
  loop: !0,
2230
- orientation: "horizontal",
2230
+ orientation: s() === "vertical" ? "both" : "horizontal",
2231
2231
  onSelect: (e) => {
2232
- let t = v(e);
2233
- t && f(t.value);
2232
+ let t = y(e);
2233
+ t && p(t.value);
2234
2234
  }
2235
- });
2236
- function b(e) {
2237
- if (!$.get(l) || o() || !y.handleKeydown(e)) return;
2238
- let t = document.activeElement, n = t && _().includes(t) ? v(t) : void 0;
2239
- n && f(n.value);
2235
+ }));
2236
+ function x(e) {
2237
+ if (!$.get(u) || o() || !$.get(b).handleKeydown(e)) return;
2238
+ let t = document.activeElement, n = t && v().includes(t) ? y(t) : void 0;
2239
+ n && p(n.value);
2240
2240
  }
2241
- var x = _o();
2242
- $.each(x, 21, () => $.get(u), $.index, (e, t) => {
2241
+ var S = _o();
2242
+ $.each(S, 21, () => $.get(d), $.index, (e, t) => {
2243
2243
  {
2244
2244
  let n = $.derived(() => o() || $.get(t).disabled);
2245
2245
  go(e, {
@@ -2257,9 +2257,9 @@ function vo(e, t) {
2257
2257
  $$slots: { default: !0 }
2258
2258
  });
2259
2259
  }
2260
- }), $.reset(x), $.bind_this(x, (e) => $.set(h, e), () => $.get(h)), $.template_effect(() => {
2261
- $.set_class(x, 1, $.clsx($.get(c))), $.set_attribute(x, "role", $.get(l) ? "radiogroup" : "group"), $.set_attribute(x, "aria-label", t["aria-label"]);
2262
- }), $.delegated("keydown", x, b), $.append(e, x), $.pop();
2260
+ }), $.reset(S), $.bind_this(S, (e) => $.set(g, e), () => $.get(g)), $.template_effect(() => {
2261
+ $.set_class(S, 1, $.clsx($.get(l))), $.set_attribute(S, "role", $.get(u) ? "radiogroup" : "group"), $.set_attribute(S, "aria-label", t["aria-label"]), $.set_attribute(S, "aria-orientation", $.get(u) ? s() : void 0);
2262
+ }), $.delegated("keydown", S, x), $.append(e, S), $.pop();
2263
2263
  }
2264
2264
  $.delegate(["keydown"]);
2265
2265
  //#endregion
@@ -1728,7 +1728,7 @@ function wr(t, n) {
1728
1728
  Gt({
1729
1729
  widgetId: de(),
1730
1730
  treatmentShare: typeof e == "number" ? e : void 0
1731
- }) === "treatment" && import("./CalendarFoundryView-BhyEWlgT.js").then((e) => {
1731
+ }) === "treatment" && import("./CalendarFoundryView-ylxXSy0Q.js").then((e) => {
1732
1732
  K.get(H) && (K.set(pt, e.default, !0), K.set(ut, !0));
1733
1733
  }).catch((e) => gr.error("Foundry calendar load failed:", e));
1734
1734
  }
@@ -3286,7 +3286,7 @@ if (typeof window < "u" && typeof HTMLElement < "u") {
3286
3286
  }
3287
3287
  //#endregion
3288
3288
  //#region src/lib/VenueCalendar.js
3289
- var Qr = "4.3.23", $r = t("VenueCalendar"), ei = null;
3289
+ var Qr = "4.3.24", $r = t("VenueCalendar"), ei = null;
3290
3290
  function ti(e = {}) {
3291
3291
  typeof e.onError == "function" && (ei = e.onError, oe({ onError: (t) => {
3292
3292
  try {