@gomusdev/web-components 1.26.4 → 1.27.0

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.
@@ -11114,7 +11114,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
11114
11114
  return totalCap;
11115
11115
  },
11116
11116
  timeslotsOn(date2) {
11117
- const ret2 = this.timeslots().filter((x) => x.timeSlot.startsWith(date2.toString())).filter((x) => x.capacity > 0);
11117
+ const ret2 = this.timeslots().filter((x) => x.timeSlot.startsWith(date2.toString()));
11118
11118
  return ret2;
11119
11119
  }
11120
11120
  };
@@ -29281,7 +29281,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
29281
29281
  var option_1 = first_child(fragment_3);
29282
29282
  var text_1 = child(option_1, true);
29283
29283
  reset(option_1);
29284
- var option_1_value = {};
29284
+ option_1.value = option_1.__value = "";
29285
29285
  var node_5 = sibling(option_1, 2);
29286
29286
  each(node_5, 17, () => field().options(), index$1, ($$anchor4, option) => {
29287
29287
  var option_2 = root_7$2();
@@ -29296,15 +29296,7 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
29296
29296
  });
29297
29297
  append($$anchor4, option_2);
29298
29298
  });
29299
- template_effect(
29300
- ($0, $1) => {
29301
- set_text(text_1, $0);
29302
- if (option_1_value !== (option_1_value = $1)) {
29303
- option_1.__value = $1;
29304
- }
29305
- },
29306
- [() => shop.t("common.choose"), () => shop.t("common.choose")]
29307
- );
29299
+ template_effect(($0) => set_text(text_1, $0), [() => shop.t("common.choose")]);
29308
29300
  append($$anchor3, fragment_3);
29309
29301
  };
29310
29302
  if_block(node_4, ($$render) => {
@@ -31260,8 +31252,11 @@ var __privateAdd = (obj, member, value) => member.has(obj) ? __typeError("Cannot
31260
31252
  reset(li);
31261
31253
  attach(li, () => dataAttr("selected", get$2(selected)));
31262
31254
  template_effect(() => {
31255
+ set_class(li, 1, clsx(timeslot.capacity == 0 ? "sold-out" : ""));
31263
31256
  set_class(label, 1, clsx(timeslot.available ? "" : "disabled"));
31264
31257
  set_text(text2, `${timeslot.timeFormatted ?? ""} `);
31258
+ input.disabled = timeslot.capacity == 0;
31259
+ set_attribute(input, "aria-disabled", timeslot.capacity == 0);
31265
31260
  if (input_value !== (input_value = timeslot.startAt)) {
31266
31261
  input.value = (input.__value = timeslot.startAt) ?? "";
31267
31262
  }
@@ -11114,7 +11114,7 @@ function createQuotaManager(quotas) {
11114
11114
  return totalCap;
11115
11115
  },
11116
11116
  timeslotsOn(date2) {
11117
- const ret2 = this.timeslots().filter((x) => x.timeSlot.startsWith(date2.toString())).filter((x) => x.capacity > 0);
11117
+ const ret2 = this.timeslots().filter((x) => x.timeSlot.startsWith(date2.toString()));
11118
11118
  return ret2;
11119
11119
  }
11120
11120
  };
@@ -29281,7 +29281,7 @@ function InputAndLabel($$anchor, $$props) {
29281
29281
  var option_1 = first_child(fragment_3);
29282
29282
  var text_1 = child(option_1, true);
29283
29283
  reset(option_1);
29284
- var option_1_value = {};
29284
+ option_1.value = option_1.__value = "";
29285
29285
  var node_5 = sibling(option_1, 2);
29286
29286
  each(node_5, 17, () => field().options(), index$1, ($$anchor4, option) => {
29287
29287
  var option_2 = root_7$2();
@@ -29296,15 +29296,7 @@ function InputAndLabel($$anchor, $$props) {
29296
29296
  });
29297
29297
  append($$anchor4, option_2);
29298
29298
  });
29299
- template_effect(
29300
- ($0, $1) => {
29301
- set_text(text_1, $0);
29302
- if (option_1_value !== (option_1_value = $1)) {
29303
- option_1.__value = $1;
29304
- }
29305
- },
29306
- [() => shop.t("common.choose"), () => shop.t("common.choose")]
29307
- );
29299
+ template_effect(($0) => set_text(text_1, $0), [() => shop.t("common.choose")]);
29308
29300
  append($$anchor3, fragment_3);
29309
29301
  };
29310
29302
  if_block(node_4, ($$render) => {
@@ -31260,8 +31252,11 @@ function Timeslots($$anchor, $$props) {
31260
31252
  reset(li);
31261
31253
  attach(li, () => dataAttr("selected", get$2(selected)));
31262
31254
  template_effect(() => {
31255
+ set_class(li, 1, clsx(timeslot.capacity == 0 ? "sold-out" : ""));
31263
31256
  set_class(label, 1, clsx(timeslot.available ? "" : "disabled"));
31264
31257
  set_text(text2, `${timeslot.timeFormatted ?? ""} `);
31258
+ input.disabled = timeslot.capacity == 0;
31259
+ set_attribute(input, "aria-disabled", timeslot.capacity == 0);
31265
31260
  if (input_value !== (input_value = timeslot.startAt)) {
31266
31261
  input.value = (input.__value = timeslot.startAt) ?? "";
31267
31262
  }
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "name": "Giantmonkey GmbH"
5
5
  },
6
6
  "license": "MIT",
7
- "version": "1.26.4",
7
+ "version": "1.27.0",
8
8
  "type": "module",
9
9
  "main": "./dist-js/gomus-webcomponents.iife.js",
10
10
  "module": "./dist-js/gomus-webcomponents.iife.js",
@@ -14,7 +14,7 @@
14
14
  "scripts": {
15
15
  "dev": "vite",
16
16
  "test": "vitest",
17
- "npm:publish": "npm publish --tag latest",
17
+ "npm:publish": "pnpm version patch && pnpm build && npm publish --tag latest",
18
18
  "Dev:Personalization": "vite dev -c vite.personalization.config.ts",
19
19
  "build": "vite build",
20
20
  "preview": "vite preview",