@gomusdev/web-components 4.6.1 → 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 CHANGED
@@ -1,5 +1,12 @@
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
+
3
10
  ## 4.6.1 (2026-07-14)
4
11
 
5
12
  ### Bug Fixes
@@ -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 displayItem().product.title;
18037
+ return get$2($1);
18021
18038
  },
18022
18039
  floor: 1,
18023
18040
  onChange: updateQuantity
@@ -37417,21 +37434,25 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
37417
37434
  var text_4 = child(li_5, true);
37418
37435
  reset(li_5);
37419
37436
  var li_6 = sibling(li_5, 2);
37420
- QuantityControl(child(li_6), {
37421
- get value() {
37422
- return item().quantity;
37423
- },
37424
- get min() {
37425
- return get$2(capacity).min;
37426
- },
37427
- get max() {
37428
- return get$2(capacity).max;
37429
- },
37430
- get label() {
37431
- return item().product.title;
37432
- },
37433
- onChange: (q) => item().quantity = q
37434
- });
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
+ }
37435
37456
  reset(li_6);
37436
37457
  reset(ul);
37437
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 displayItem().product.title;
18036
+ return get$2($1);
18020
18037
  },
18021
18038
  floor: 1,
18022
18039
  onChange: updateQuantity
@@ -37416,21 +37433,25 @@ function Item($$anchor, $$props) {
37416
37433
  var text_4 = child(li_5, true);
37417
37434
  reset(li_5);
37418
37435
  var li_6 = sibling(li_5, 2);
37419
- QuantityControl(child(li_6), {
37420
- get value() {
37421
- return item().quantity;
37422
- },
37423
- get min() {
37424
- return get$2(capacity).min;
37425
- },
37426
- get max() {
37427
- return get$2(capacity).max;
37428
- },
37429
- get label() {
37430
- return item().product.title;
37431
- },
37432
- onChange: (q) => item().quantity = q
37433
- });
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
+ }
37434
37455
  reset(li_6);
37435
37456
  reset(ul);
37436
37457
  reset(article);