@oneluiz/dual-datepicker 4.0.1 → 4.0.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.
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { InjectionToken, Injectable, inject, signal, computed, makeEnvironmentProviders, APP_INITIALIZER, Inject, EventEmitter, effect, forwardRef, HostListener, Output, Input, Component } from '@angular/core';
2
+ import { InjectionToken, Injectable, inject, signal, computed, makeEnvironmentProviders, APP_INITIALIZER, Optional, Inject, EventEmitter, effect, forwardRef, HostListener, Output, Input, Component } from '@angular/core';
3
3
  import * as i1 from '@angular/common';
4
4
  import { CommonModule } from '@angular/common';
5
5
  import { FormsModule, ReactiveFormsModule, NG_VALUE_ACCESSOR } from '@angular/forms';
@@ -1971,7 +1971,7 @@ function providePresetPackage(packageName, presets) {
1971
1971
  class CalendarGridFactory {
1972
1972
  adapter;
1973
1973
  constructor(adapter) {
1974
- this.adapter = adapter;
1974
+ this.adapter = adapter ?? new NativeDateAdapter();
1975
1975
  }
1976
1976
  /**
1977
1977
  * Create a calendar grid for a given month
@@ -2040,13 +2040,15 @@ class CalendarGridFactory {
2040
2040
  }
2041
2041
  return offset;
2042
2042
  }
2043
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: CalendarGridFactory, deps: [{ token: DATE_ADAPTER }], target: i0.ɵɵFactoryTarget.Injectable });
2043
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: CalendarGridFactory, deps: [{ token: DATE_ADAPTER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
2044
2044
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: CalendarGridFactory, providedIn: 'root' });
2045
2045
  }
2046
2046
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.5", ngImport: i0, type: CalendarGridFactory, decorators: [{
2047
2047
  type: Injectable,
2048
2048
  args: [{ providedIn: 'root' }]
2049
2049
  }], ctorParameters: () => [{ type: undefined, decorators: [{
2050
+ type: Optional
2051
+ }, {
2050
2052
  type: Inject,
2051
2053
  args: [DATE_ADAPTER]
2052
2054
  }] }] });