@dereekb/dbx-form 9.23.27 → 9.23.28

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.
Files changed (28) hide show
  1. package/calendar/lib/field/schedule/calendar.schedule.field.component.d.ts +2 -2
  2. package/esm2020/calendar/lib/calendar.schedule.selection.popover.content.component.mjs +1 -1
  3. package/esm2020/calendar/lib/calendar.schedule.selection.range.component.mjs +1 -1
  4. package/esm2020/calendar/lib/calendar.schedule.selection.store.mjs +8 -8
  5. package/esm2020/calendar/lib/field/schedule/calendar.schedule.field.component.mjs +1 -1
  6. package/esm2020/lib/formly/field/selection/pickable/pickable.field.mjs +1 -1
  7. package/esm2020/lib/formly/field/selection/pickable/pickable.util.mjs +1 -1
  8. package/esm2020/lib/formly/field/selection/selection.mjs +1 -1
  9. package/esm2020/lib/formly/field/value/date/datetime.field.component.mjs +2 -2
  10. package/esm2020/lib/formly/field/value/date/datetime.field.mjs +1 -1
  11. package/esm2020/lib/formly/template/login.mjs +1 -1
  12. package/esm2020/mapbox/lib/field/latlng/latlng.field.component.mjs +1 -1
  13. package/fesm2015/dereekb-dbx-form-calendar.mjs +7 -7
  14. package/fesm2015/dereekb-dbx-form-calendar.mjs.map +1 -1
  15. package/fesm2015/dereekb-dbx-form-mapbox.mjs.map +1 -1
  16. package/fesm2015/dereekb-dbx-form.mjs +1 -1
  17. package/fesm2015/dereekb-dbx-form.mjs.map +1 -1
  18. package/fesm2020/dereekb-dbx-form-calendar.mjs +7 -7
  19. package/fesm2020/dereekb-dbx-form-calendar.mjs.map +1 -1
  20. package/fesm2020/dereekb-dbx-form-mapbox.mjs.map +1 -1
  21. package/fesm2020/dereekb-dbx-form.mjs +1 -1
  22. package/fesm2020/dereekb-dbx-form.mjs.map +1 -1
  23. package/lib/formly/field/selection/pickable/pickable.util.d.ts +1 -2
  24. package/mapbox/esm2020/lib/field/latlng/latlng.field.component.mjs +1 -1
  25. package/mapbox/fesm2015/dereekb-dbx-form-mapbox.mjs.map +1 -1
  26. package/mapbox/fesm2020/dereekb-dbx-form-mapbox.mjs.map +1 -1
  27. package/mapbox/package.json +4 -4
  28. package/package.json +4 -4
@@ -176,10 +176,10 @@ class DbxCalendarScheduleSelectionStore extends ComponentStore {
176
176
  this.nextToggleSelection$ = this.hasConfiguredMinMaxRange$.pipe(switchMap((hasConfiguredMinMaxRange) => {
177
177
  let obs;
178
178
  if (hasConfiguredMinMaxRange) {
179
- obs = this.currentSelectionValue$.pipe(map((x) => (Boolean(x) ? 'none' : 'all')));
179
+ obs = this.currentSelectionValue$.pipe(map((x) => (x ? 'none' : 'all')));
180
180
  }
181
181
  else {
182
- obs = this.currentSelectionValue$.pipe(map((x) => (Boolean(x) ? 'none' : undefined)));
182
+ obs = this.currentSelectionValue$.pipe(map((x) => (x ? 'none' : undefined)));
183
183
  }
184
184
  return obs;
185
185
  }), shareReplay(1));
@@ -277,7 +277,7 @@ function updateStateWithFilter(state, inputFilter) {
277
277
  }
278
278
  if (minMaxDateRange) {
279
279
  enabledFilter.minMaxDateRange = minMaxDateRange;
280
- enabledFilter.setStartAsMinDate = Boolean(filter?.start) ? true : false; // If a start date is set, then it becomes the floor.
280
+ enabledFilter.setStartAsMinDate = filter?.start ? true : false; // If a start date is set, then it becomes the floor.
281
281
  }
282
282
  /**
283
283
  * If the input filter has a start date, use that as the relative start to ensure indexes are compared the same,
@@ -327,7 +327,7 @@ function updateStateWithTimezoneValue(state, timezone) {
327
327
  }
328
328
  function updateStateWithDateScheduleRangeValue(state, change) {
329
329
  const { timezoneNormal, currentSelectionValue } = state;
330
- let currentDateScheduleRange = currentSelectionValue?.dateScheduleRange; // current range is always in system time
330
+ const currentDateScheduleRange = currentSelectionValue?.dateScheduleRange; // current range is always in system time
331
331
  if (!calendarScheduleStartBeingUsedFromFilter(state) && timezoneNormal) {
332
332
  // When using timezones, always return from the start of the day. Inputs are converted to the system time and used as the start of the day.
333
333
  // Outputs remain accurate.
@@ -373,7 +373,7 @@ function updateStateWithChangedDates(state, change) {
373
373
  let selectedIndexes;
374
374
  if (change.reset || change.selectAll != null || change.set) {
375
375
  let set = change.set ?? [];
376
- let selectAll = change.reset === true ? state.initialSelectionState : change.selectAll;
376
+ const selectAll = change.reset === true ? state.initialSelectionState : change.selectAll;
377
377
  switch (selectAll) {
378
378
  case 'all':
379
379
  if (minDate != null && maxDate != null) {
@@ -423,8 +423,8 @@ function noSelectionCalendarScheduleSelectionState(state) {
423
423
  function updateStateWithChangedRange(state, change) {
424
424
  const { inputStart: currentInputStart, inputEnd: currentInputEnd, indexFactory, minMaxDateRange } = state;
425
425
  const { start: minDate, end: maxDate } = minMaxDateRange ?? {};
426
- let inputStart = startOfDay(change.inputStart);
427
- let inputEnd = endOfDay(change.inputEnd);
426
+ const inputStart = startOfDay(change.inputStart);
427
+ const inputEnd = endOfDay(change.inputEnd);
428
428
  const isValidRange = minDate != null || maxDate != null ? isDateInDateRangeFunction({ start: minDate ?? undefined, end: maxDate ?? undefined }) : () => true;
429
429
  if (!isValidRange(inputStart) || !isValidRange(inputEnd) || (isSameDateDay(inputStart, currentInputStart) && isSameDateDay(inputEnd, currentInputEnd))) {
430
430
  return state; // if no change, return the current state.