@dereekb/dbx-form 13.41.0 → 13.42.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.
@@ -884,7 +884,7 @@ function updateStateWithChangedRange(state, change) {
884
884
  // retain all indexes that are within the new range
885
885
  const minIndex = indexFactory(inputStart);
886
886
  const maxIndex = indexFactory(inputEnd) + 1;
887
- const currentIndexes = [...state.toggledIndexes];
887
+ const currentIndexes = Array.from(state.toggledIndexes);
888
888
  const isInCurrentRange = isIndexNumberInIndexRangeFunction({ minIndex, maxIndex });
889
889
  const excludedIndexesInNewRange = currentIndexes.filter(isInCurrentRange);
890
890
  const toggledIndexes = new Set(excludedIndexesInNewRange);
@@ -1044,7 +1044,7 @@ function computeCalendarScheduleSelectionRange(state) {
1044
1044
  */
1045
1045
  function computeCalendarScheduleSelectionDateCellRange(state) {
1046
1046
  const { allowedDaysOfWeek, indexFactory, inputStart, inputEnd, indexDayOfWeek, isEnabledDay, isEnabledFilterDay } = state;
1047
- const enabledExclusionIndexes = [...state.toggledIndexes].filter((i) => allowedDaysOfWeek.has(indexDayOfWeek(i)));
1047
+ const enabledExclusionIndexes = Array.from(state.toggledIndexes).filter((i) => allowedDaysOfWeek.has(indexDayOfWeek(i)));
1048
1048
  const minAndMaxSelectedValues = minAndMaxNumber(enabledExclusionIndexes);
1049
1049
  let startRange;
1050
1050
  let endRange;