@gomusdev/web-components 1.57.1 → 1.57.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.
@@ -35895,8 +35895,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
35895
35895
  var consequent = ($$anchor2) => {
35896
35896
  var ul = root_1$1();
35897
35897
  each(ul, 20, () => details.timeslots, (timeslot) => timeslot, ($$anchor3, timeslot) => {
35898
- const soldOut = /* @__PURE__ */ user_derived(() => timeslot.capacity === 0);
35899
- const disabled = /* @__PURE__ */ user_derived(() => get$2(soldOut) || !timeslot.available);
35898
+ const unavailable = /* @__PURE__ */ user_derived(() => timeslot.totalCapacity === 0);
35899
+ const soldOut = /* @__PURE__ */ user_derived(() => !get$2(unavailable) && timeslot.capacity === 0);
35900
+ const disabled = /* @__PURE__ */ user_derived(() => get$2(unavailable) || get$2(soldOut) || !timeslot.available);
35900
35901
  const selected = /* @__PURE__ */ user_derived(() => details.tsd?.selectedTimeslot === timeslot.startAt);
35901
35902
  var li = root_2$1();
35902
35903
  var label = child(li);
@@ -35910,6 +35911,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
35910
35911
  template_effect(() => {
35911
35912
  set_class(li, 1, clsx({
35912
35913
  "go-timeslot": true,
35914
+ "is-unavailable": get$2(unavailable),
35913
35915
  "is-sold-out": get$2(soldOut),
35914
35916
  "is-disabled": get$2(disabled),
35915
35917
  "is-selected": get$2(selected)
@@ -35895,8 +35895,9 @@ function Timeslots($$anchor, $$props) {
35895
35895
  var consequent = ($$anchor2) => {
35896
35896
  var ul = root_1$1();
35897
35897
  each(ul, 20, () => details.timeslots, (timeslot) => timeslot, ($$anchor3, timeslot) => {
35898
- const soldOut = /* @__PURE__ */ user_derived(() => timeslot.capacity === 0);
35899
- const disabled = /* @__PURE__ */ user_derived(() => get$2(soldOut) || !timeslot.available);
35898
+ const unavailable = /* @__PURE__ */ user_derived(() => timeslot.totalCapacity === 0);
35899
+ const soldOut = /* @__PURE__ */ user_derived(() => !get$2(unavailable) && timeslot.capacity === 0);
35900
+ const disabled = /* @__PURE__ */ user_derived(() => get$2(unavailable) || get$2(soldOut) || !timeslot.available);
35900
35901
  const selected = /* @__PURE__ */ user_derived(() => details.tsd?.selectedTimeslot === timeslot.startAt);
35901
35902
  var li = root_2$1();
35902
35903
  var label = child(li);
@@ -35910,6 +35911,7 @@ function Timeslots($$anchor, $$props) {
35910
35911
  template_effect(() => {
35911
35912
  set_class(li, 1, clsx({
35912
35913
  "go-timeslot": true,
35914
+ "is-unavailable": get$2(unavailable),
35913
35915
  "is-sold-out": get$2(soldOut),
35914
35916
  "is-disabled": get$2(disabled),
35915
35917
  "is-selected": get$2(selected)
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "name": "Giantmonkey GmbH"
5
5
  },
6
6
  "license": "MIT",
7
- "version": "1.57.1",
7
+ "version": "1.57.2",
8
8
  "type": "module",
9
9
  "main": "./dist-js/gomus-webcomponents.iife.js",
10
10
  "module": "./dist-js/gomus-webcomponents.iife.js",