@gomusdev/web-components 3.3.2 → 3.3.3

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,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.3.3 (2026-06-04)
4
+
5
+ ### Bug Fixes
6
+
7
+ * Mark timeslots as unavailable if max-capacity is 0
8
+
3
9
  ## 3.3.2 (2026-06-03)
4
10
 
5
11
  ### Bug Fixes
@@ -37329,8 +37329,9 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
37329
37329
  var consequent = ($$anchor2) => {
37330
37330
  var ul = root_1$1();
37331
37331
  each(ul, 20, () => details.timeslots, (timeslot) => timeslot, ($$anchor3, timeslot) => {
37332
- const soldOut = /* @__PURE__ */ user_derived(() => timeslot.capacity === 0);
37333
- const disabled = /* @__PURE__ */ user_derived(() => get$2(soldOut) || !timeslot.available);
37332
+ const unavailable = /* @__PURE__ */ user_derived(() => timeslot.totalCapacity === 0);
37333
+ const soldOut = /* @__PURE__ */ user_derived(() => !get$2(unavailable) && timeslot.capacity === 0);
37334
+ const disabled = /* @__PURE__ */ user_derived(() => get$2(unavailable) || get$2(soldOut) || !timeslot.available);
37334
37335
  const selected = /* @__PURE__ */ user_derived(() => details.tsd?.selectedTimeslot === timeslot.startAt);
37335
37336
  var li = root_2$1();
37336
37337
  var label = child(li);
@@ -37344,6 +37345,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
37344
37345
  template_effect(() => {
37345
37346
  set_class(li, 1, clsx({
37346
37347
  "go-timeslot": true,
37348
+ "is-unavailable": get$2(unavailable),
37347
37349
  "is-sold-out": get$2(soldOut),
37348
37350
  "is-disabled": get$2(disabled),
37349
37351
  "is-selected": get$2(selected)
@@ -37329,8 +37329,9 @@ function Timeslots($$anchor, $$props) {
37329
37329
  var consequent = ($$anchor2) => {
37330
37330
  var ul = root_1$1();
37331
37331
  each(ul, 20, () => details.timeslots, (timeslot) => timeslot, ($$anchor3, timeslot) => {
37332
- const soldOut = /* @__PURE__ */ user_derived(() => timeslot.capacity === 0);
37333
- const disabled = /* @__PURE__ */ user_derived(() => get$2(soldOut) || !timeslot.available);
37332
+ const unavailable = /* @__PURE__ */ user_derived(() => timeslot.totalCapacity === 0);
37333
+ const soldOut = /* @__PURE__ */ user_derived(() => !get$2(unavailable) && timeslot.capacity === 0);
37334
+ const disabled = /* @__PURE__ */ user_derived(() => get$2(unavailable) || get$2(soldOut) || !timeslot.available);
37334
37335
  const selected = /* @__PURE__ */ user_derived(() => details.tsd?.selectedTimeslot === timeslot.startAt);
37335
37336
  var li = root_2$1();
37336
37337
  var label = child(li);
@@ -37344,6 +37345,7 @@ function Timeslots($$anchor, $$props) {
37344
37345
  template_effect(() => {
37345
37346
  set_class(li, 1, clsx({
37346
37347
  "go-timeslot": true,
37348
+ "is-unavailable": get$2(unavailable),
37347
37349
  "is-sold-out": get$2(soldOut),
37348
37350
  "is-disabled": get$2(disabled),
37349
37351
  "is-selected": get$2(selected)