@gomusdev/web-components 3.3.3 → 3.3.5
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/README.md +12 -0
- package/dist-js/gomus-webcomponents.iife.js +8 -3
- package/dist-js/gomus-webcomponents.js +8 -3
- package/dist-js/gomus-webcomponents.min.iife.js +13 -13
- package/dist-js/gomus-webcomponents.min.js +1953 -1953
- package/dist-js/src/lib/stores/auth.svelte.d.ts +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 3.3.5 (2026-06-09)
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* **cart:** keep day tickets valid for their whole day in localStorage
|
|
8
|
+
|
|
9
|
+
## 3.3.4 (2026-06-08)
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* **tickets:** render scaled ticket title via event_title prop
|
|
14
|
+
|
|
3
15
|
## 3.3.3 (2026-06-04)
|
|
4
16
|
|
|
5
17
|
### Bug Fixes
|
|
@@ -11307,11 +11307,11 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
|
|
|
11307
11307
|
const type = cartItem.product.type;
|
|
11308
11308
|
switch (type) {
|
|
11309
11309
|
case "Ticket":
|
|
11310
|
-
if (
|
|
11310
|
+
if (!isStillValid(cartItem)) return;
|
|
11311
11311
|
const ticket = createUITicket(cartItem.product);
|
|
11312
11312
|
return createCartItem(ticket, { time: cartItem.time, quantity: cartItem.quantity });
|
|
11313
11313
|
case "Event":
|
|
11314
|
-
if (
|
|
11314
|
+
if (!isStillValid(cartItem)) return;
|
|
11315
11315
|
const event2 = createUIEventTicket(cartItem.product, cartItem.id);
|
|
11316
11316
|
return createCartItem(event2, { time: cartItem.time, quantity: cartItem.quantity });
|
|
11317
11317
|
default:
|
|
@@ -11368,6 +11368,11 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
|
|
|
11368
11368
|
const parsed = new Date(time2);
|
|
11369
11369
|
return now < parsed;
|
|
11370
11370
|
};
|
|
11371
|
+
const validForToday = (time2) => $58246871e4652552$export$6b862160d295c8e(time2.slice(0, 10)).compare($ad063034c8620db8$export$d0bdf45af03a6ea3($ad063034c8620db8$export$aa8b41735afcabd2())) >= 0;
|
|
11372
|
+
const isStillValid = (cartItem) => {
|
|
11373
|
+
if (!cartItem.time) return true;
|
|
11374
|
+
return cartItem.product.subtype === "day" ? validForToday(cartItem.time) : inTheFuture(cartItem.time);
|
|
11375
|
+
};
|
|
11371
11376
|
const defined = (x) => x !== void 0;
|
|
11372
11377
|
let lastUuid = 0;
|
|
11373
11378
|
function createCart(products, contingent = 20) {
|
|
@@ -37068,7 +37073,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
37068
37073
|
reset(span_1);
|
|
37069
37074
|
template_effect(
|
|
37070
37075
|
($0) => {
|
|
37071
|
-
set_text(text2, `${item().product.
|
|
37076
|
+
set_text(text2, `${item().product.event_title ?? ""} - ${$0 ?? ""}`);
|
|
37072
37077
|
set_text(text_1, item().product.title);
|
|
37073
37078
|
},
|
|
37074
37079
|
[() => formatTime(item().time)]
|
|
@@ -11307,11 +11307,11 @@ function generateCartItem(cartItem) {
|
|
|
11307
11307
|
const type = cartItem.product.type;
|
|
11308
11308
|
switch (type) {
|
|
11309
11309
|
case "Ticket":
|
|
11310
|
-
if (
|
|
11310
|
+
if (!isStillValid(cartItem)) return;
|
|
11311
11311
|
const ticket = createUITicket(cartItem.product);
|
|
11312
11312
|
return createCartItem(ticket, { time: cartItem.time, quantity: cartItem.quantity });
|
|
11313
11313
|
case "Event":
|
|
11314
|
-
if (
|
|
11314
|
+
if (!isStillValid(cartItem)) return;
|
|
11315
11315
|
const event2 = createUIEventTicket(cartItem.product, cartItem.id);
|
|
11316
11316
|
return createCartItem(event2, { time: cartItem.time, quantity: cartItem.quantity });
|
|
11317
11317
|
default:
|
|
@@ -11368,6 +11368,11 @@ const inTheFuture = (time2) => {
|
|
|
11368
11368
|
const parsed = new Date(time2);
|
|
11369
11369
|
return now < parsed;
|
|
11370
11370
|
};
|
|
11371
|
+
const validForToday = (time2) => $58246871e4652552$export$6b862160d295c8e(time2.slice(0, 10)).compare($ad063034c8620db8$export$d0bdf45af03a6ea3($ad063034c8620db8$export$aa8b41735afcabd2())) >= 0;
|
|
11372
|
+
const isStillValid = (cartItem) => {
|
|
11373
|
+
if (!cartItem.time) return true;
|
|
11374
|
+
return cartItem.product.subtype === "day" ? validForToday(cartItem.time) : inTheFuture(cartItem.time);
|
|
11375
|
+
};
|
|
11371
11376
|
const defined = (x) => x !== void 0;
|
|
11372
11377
|
let lastUuid = 0;
|
|
11373
11378
|
function createCart(products, contingent = 20) {
|
|
@@ -37068,7 +37073,7 @@ function Item($$anchor, $$props) {
|
|
|
37068
37073
|
reset(span_1);
|
|
37069
37074
|
template_effect(
|
|
37070
37075
|
($0) => {
|
|
37071
|
-
set_text(text2, `${item().product.
|
|
37076
|
+
set_text(text2, `${item().product.event_title ?? ""} - ${$0 ?? ""}`);
|
|
37072
37077
|
set_text(text_1, item().product.title);
|
|
37073
37078
|
},
|
|
37074
37079
|
[() => formatTime(item().time)]
|