@gomusdev/web-components 4.6.0 → 4.6.2
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 +13 -0
- package/dist-js/gomus-webcomponents.iife.js +43 -19
- package/dist-js/gomus-webcomponents.js +43 -19
- package/dist-js/gomus-webcomponents.min.iife.js +20 -20
- package/dist-js/gomus-webcomponents.min.js +4187 -4173
- package/dist-js/src/components/shared/quantityStepper/quantityLabel.d.ts +11 -0
- package/dist-js/src/components/shared/quantityStepper/quantityLabel.spec.d.ts +1 -0
- package/package.json +3 -2
package/README.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 4.6.2 (2026-07-14)
|
|
4
|
+
|
|
5
|
+
### Bug Fixes
|
|
6
|
+
|
|
7
|
+
* **a11y:** derive quantity control name from event title for flat-price rows, closes [#141](https://gitlab.giantmonkey.de/gomus/frontend/issues/141)
|
|
8
|
+
* **assets:** shorten /uploads cache to 60s
|
|
9
|
+
|
|
10
|
+
## 4.6.1 (2026-07-14)
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* **go-order:** clear cart and guest session on token change, closes [gomus/frontend#142](https://gitlab.giantmonkey.de/gomus/frontend/issues/142)
|
|
15
|
+
|
|
3
16
|
## 4.6.0 (2026-07-14)
|
|
4
17
|
|
|
5
18
|
### Features
|
|
@@ -17846,6 +17846,22 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
17846
17846
|
preview: {}
|
|
17847
17847
|
}, [], [], { mode: "open" });
|
|
17848
17848
|
//#endregion
|
|
17849
|
+
//#region src/components/shared/quantityStepper/quantityLabel.ts
|
|
17850
|
+
/**
|
|
17851
|
+
* Accessible name for a line's QuantityControl, derived from the same source as
|
|
17852
|
+
* the visible row title: event rows compose it from event_title + time because a
|
|
17853
|
+
* flat-price event's price row carries no title (the row IS the event) — naming
|
|
17854
|
+
* the control from product.title alone left it unnamed (WI #141).
|
|
17855
|
+
*/
|
|
17856
|
+
function quantityLabel(item) {
|
|
17857
|
+
const { product } = item;
|
|
17858
|
+
return isEventTicket(product) ? [
|
|
17859
|
+
product.event_title,
|
|
17860
|
+
item.time && formatTime(item.time),
|
|
17861
|
+
product.title
|
|
17862
|
+
].filter(Boolean).join(" - ") : product.title;
|
|
17863
|
+
}
|
|
17864
|
+
//#endregion
|
|
17849
17865
|
//#region src/components/cart/components/Item.svelte
|
|
17850
17866
|
var root$47 = /* @__PURE__ */ from_html(`<s class="go-cart-item-price-original"> </s> <span class="go-cart-item-price-discounted"> </span>`, 1);
|
|
17851
17867
|
var root_1$15 = /* @__PURE__ */ from_html(`<span class="go-cart-item-price-discounted"> </span>`);
|
|
@@ -18006,6 +18022,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
18006
18022
|
var alternate_1 = ($$anchor) => {
|
|
18007
18023
|
{
|
|
18008
18024
|
let $0 = /* @__PURE__ */ user_derived(() => displayItem().quantity ?? 0);
|
|
18025
|
+
let $1 = /* @__PURE__ */ user_derived(() => quantityLabel(displayItem()));
|
|
18009
18026
|
QuantityControl($$anchor, {
|
|
18010
18027
|
get value() {
|
|
18011
18028
|
return get$2($0);
|
|
@@ -18017,7 +18034,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
18017
18034
|
return get$2(capacity).max;
|
|
18018
18035
|
},
|
|
18019
18036
|
get label() {
|
|
18020
|
-
return
|
|
18037
|
+
return get$2($1);
|
|
18021
18038
|
},
|
|
18022
18039
|
floor: 1,
|
|
18023
18040
|
onChange: updateQuantity
|
|
@@ -36151,9 +36168,12 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
36151
36168
|
let token = prop($$props, "token", 7);
|
|
36152
36169
|
const orderDetails = new OrderDetails(token());
|
|
36153
36170
|
setDetails($$props.$$host, orderDetails);
|
|
36154
|
-
|
|
36155
|
-
|
|
36156
|
-
|
|
36171
|
+
user_effect(() => {
|
|
36172
|
+
orderDetails.token = token();
|
|
36173
|
+
untrack(() => {
|
|
36174
|
+
shop.cart.clearItems();
|
|
36175
|
+
if (shop.auth.isGuest()) shop.auth.signOut();
|
|
36176
|
+
});
|
|
36157
36177
|
});
|
|
36158
36178
|
return pop({
|
|
36159
36179
|
orderDetails,
|
|
@@ -37414,21 +37434,25 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
|
|
|
37414
37434
|
var text_4 = child(li_5, true);
|
|
37415
37435
|
reset(li_5);
|
|
37416
37436
|
var li_6 = sibling(li_5, 2);
|
|
37417
|
-
|
|
37418
|
-
|
|
37419
|
-
|
|
37420
|
-
|
|
37421
|
-
|
|
37422
|
-
|
|
37423
|
-
|
|
37424
|
-
|
|
37425
|
-
|
|
37426
|
-
|
|
37427
|
-
|
|
37428
|
-
|
|
37429
|
-
|
|
37430
|
-
|
|
37431
|
-
|
|
37437
|
+
var node_4 = child(li_6);
|
|
37438
|
+
{
|
|
37439
|
+
let $0 = /* @__PURE__ */ user_derived(() => quantityLabel(item()));
|
|
37440
|
+
QuantityControl(node_4, {
|
|
37441
|
+
get value() {
|
|
37442
|
+
return item().quantity;
|
|
37443
|
+
},
|
|
37444
|
+
get min() {
|
|
37445
|
+
return get$2(capacity).min;
|
|
37446
|
+
},
|
|
37447
|
+
get max() {
|
|
37448
|
+
return get$2(capacity).max;
|
|
37449
|
+
},
|
|
37450
|
+
get label() {
|
|
37451
|
+
return get$2($0);
|
|
37452
|
+
},
|
|
37453
|
+
onChange: (q) => item().quantity = q
|
|
37454
|
+
});
|
|
37455
|
+
}
|
|
37432
37456
|
reset(li_6);
|
|
37433
37457
|
reset(ul);
|
|
37434
37458
|
reset(article);
|
|
@@ -17845,6 +17845,22 @@ create_custom_element(SubRow, {
|
|
|
17845
17845
|
preview: {}
|
|
17846
17846
|
}, [], [], { mode: "open" });
|
|
17847
17847
|
//#endregion
|
|
17848
|
+
//#region src/components/shared/quantityStepper/quantityLabel.ts
|
|
17849
|
+
/**
|
|
17850
|
+
* Accessible name for a line's QuantityControl, derived from the same source as
|
|
17851
|
+
* the visible row title: event rows compose it from event_title + time because a
|
|
17852
|
+
* flat-price event's price row carries no title (the row IS the event) — naming
|
|
17853
|
+
* the control from product.title alone left it unnamed (WI #141).
|
|
17854
|
+
*/
|
|
17855
|
+
function quantityLabel(item) {
|
|
17856
|
+
const { product } = item;
|
|
17857
|
+
return isEventTicket(product) ? [
|
|
17858
|
+
product.event_title,
|
|
17859
|
+
item.time && formatTime(item.time),
|
|
17860
|
+
product.title
|
|
17861
|
+
].filter(Boolean).join(" - ") : product.title;
|
|
17862
|
+
}
|
|
17863
|
+
//#endregion
|
|
17848
17864
|
//#region src/components/cart/components/Item.svelte
|
|
17849
17865
|
var root$47 = /* @__PURE__ */ from_html(`<s class="go-cart-item-price-original"> </s> <span class="go-cart-item-price-discounted"> </span>`, 1);
|
|
17850
17866
|
var root_1$15 = /* @__PURE__ */ from_html(`<span class="go-cart-item-price-discounted"> </span>`);
|
|
@@ -18005,6 +18021,7 @@ function Item$1($$anchor, $$props) {
|
|
|
18005
18021
|
var alternate_1 = ($$anchor) => {
|
|
18006
18022
|
{
|
|
18007
18023
|
let $0 = /* @__PURE__ */ user_derived(() => displayItem().quantity ?? 0);
|
|
18024
|
+
let $1 = /* @__PURE__ */ user_derived(() => quantityLabel(displayItem()));
|
|
18008
18025
|
QuantityControl($$anchor, {
|
|
18009
18026
|
get value() {
|
|
18010
18027
|
return get$2($0);
|
|
@@ -18016,7 +18033,7 @@ function Item$1($$anchor, $$props) {
|
|
|
18016
18033
|
return get$2(capacity).max;
|
|
18017
18034
|
},
|
|
18018
18035
|
get label() {
|
|
18019
|
-
return
|
|
18036
|
+
return get$2($1);
|
|
18020
18037
|
},
|
|
18021
18038
|
floor: 1,
|
|
18022
18039
|
onChange: updateQuantity
|
|
@@ -36150,9 +36167,12 @@ function Order($$anchor, $$props) {
|
|
|
36150
36167
|
let token = prop($$props, "token", 7);
|
|
36151
36168
|
const orderDetails = new OrderDetails(token());
|
|
36152
36169
|
setDetails($$props.$$host, orderDetails);
|
|
36153
|
-
|
|
36154
|
-
|
|
36155
|
-
|
|
36170
|
+
user_effect(() => {
|
|
36171
|
+
orderDetails.token = token();
|
|
36172
|
+
untrack(() => {
|
|
36173
|
+
shop.cart.clearItems();
|
|
36174
|
+
if (shop.auth.isGuest()) shop.auth.signOut();
|
|
36175
|
+
});
|
|
36156
36176
|
});
|
|
36157
36177
|
return pop({
|
|
36158
36178
|
orderDetails,
|
|
@@ -37413,21 +37433,25 @@ function Item($$anchor, $$props) {
|
|
|
37413
37433
|
var text_4 = child(li_5, true);
|
|
37414
37434
|
reset(li_5);
|
|
37415
37435
|
var li_6 = sibling(li_5, 2);
|
|
37416
|
-
|
|
37417
|
-
|
|
37418
|
-
|
|
37419
|
-
|
|
37420
|
-
|
|
37421
|
-
|
|
37422
|
-
|
|
37423
|
-
|
|
37424
|
-
|
|
37425
|
-
|
|
37426
|
-
|
|
37427
|
-
|
|
37428
|
-
|
|
37429
|
-
|
|
37430
|
-
|
|
37436
|
+
var node_4 = child(li_6);
|
|
37437
|
+
{
|
|
37438
|
+
let $0 = /* @__PURE__ */ user_derived(() => quantityLabel(item()));
|
|
37439
|
+
QuantityControl(node_4, {
|
|
37440
|
+
get value() {
|
|
37441
|
+
return item().quantity;
|
|
37442
|
+
},
|
|
37443
|
+
get min() {
|
|
37444
|
+
return get$2(capacity).min;
|
|
37445
|
+
},
|
|
37446
|
+
get max() {
|
|
37447
|
+
return get$2(capacity).max;
|
|
37448
|
+
},
|
|
37449
|
+
get label() {
|
|
37450
|
+
return get$2($0);
|
|
37451
|
+
},
|
|
37452
|
+
onChange: (q) => item().quantity = q
|
|
37453
|
+
});
|
|
37454
|
+
}
|
|
37431
37455
|
reset(li_6);
|
|
37432
37456
|
reset(ul);
|
|
37433
37457
|
reset(article);
|