@ardium-ui/ui 5.0.0-alpha.94 → 5.0.0-alpha.95

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.
@@ -8691,7 +8691,7 @@ class ArdiumDateInputComponent extends _AbstractDateInput {
8691
8691
  this.isRangeSelector = false;
8692
8692
  this.dateInputValue = model('');
8693
8693
  //! date input event handlers
8694
- this.dateInput = viewChild.required('dateInput');
8694
+ this.dateInput = viewChild('dateInput');
8695
8695
  this.inputAttrs = input(this._DEFAULTS.inputAttrs);
8696
8696
  this.inputReadOnly = input(this._DEFAULTS.inputReadOnly, {
8697
8697
  transform: v => coerceBooleanProperty(v),
@@ -8786,7 +8786,9 @@ class ArdiumDateInputComponent extends _AbstractDateInput {
8786
8786
  this.value.set(date);
8787
8787
  }
8788
8788
  _setDateInputAttributes() {
8789
- const input = this.dateInput().nativeElement;
8789
+ const input = this.dateInput()?.nativeElement;
8790
+ if (!input)
8791
+ return;
8790
8792
  const attributes = {
8791
8793
  type: 'text',
8792
8794
  autocorrect: 'off',
@@ -8813,7 +8815,7 @@ class ArdiumDateInputComponent extends _AbstractDateInput {
8813
8815
  if (this.disabled() || this.readonly())
8814
8816
  return;
8815
8817
  super.onGeneralClick(event);
8816
- this.dateInput().nativeElement.focus();
8818
+ this.dateInput()?.nativeElement.focus();
8817
8819
  if (this.isOpen()) {
8818
8820
  this.close();
8819
8821
  }