nexheal-lib 0.0.60 → 0.0.61

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.
@@ -581,7 +581,8 @@ class CalendarControl {
581
581
  return;
582
582
  }
583
583
  }
584
- // Single date: compute week range via getWeekRange (Sun–Sat default)
584
+ // Single date: trust it as the week start (the parent already computed
585
+ // the correct start day), and add 6 days for the end.
585
586
  const parsed = this.parseDate(parts[0]?.trim()) || this.parseDate(raw);
586
587
  if (!parsed) {
587
588
  this.selectedWeekStart = null;
@@ -590,7 +591,10 @@ class CalendarControl {
590
591
  this.inputControl.setValue("", { emitEvent: false });
591
592
  return;
592
593
  }
593
- const { start, end } = this.getWeekRange(parsed);
594
+ const start = new Date(parsed.getFullYear(), parsed.getMonth(), parsed.getDate());
595
+ const end = new Date(start);
596
+ end.setDate(start.getDate() + 6);
597
+ end.setHours(23, 59, 59, 999);
594
598
  this.selectedWeekStart = start;
595
599
  this.selectedWeekEnd = end;
596
600
  this.selectedDate = start;
@@ -2699,7 +2703,10 @@ class MultiselectControl {
2699
2703
  if (value.length > 0 &&
2700
2704
  typeof value[0] === "object" &&
2701
2705
  value[0][this.optionValueProperty] != null) {
2702
- // Convert to an array of IDs, then treat exactly like CASE A
2706
+ // Immediately use the value objects for display (they have displayname)
2707
+ this.selectedItems = [...value];
2708
+ this._updateSelectedItemList();
2709
+ // Also set up pending mapping to sync with option references when available
2703
2710
  const idArray = value.map((obj) => obj[this.optionValueProperty]);
2704
2711
  this._isPrimitivePatch = true;
2705
2712
  this._pendingPrimitiveValues = idArray;