Skip to content

igx-date-picker validationFailed event requires IDatePickerValidationFailedEventArgs which is not exported #16162

@georgianastasov

Description

@georgianastasov

Description

When wiring up (validationFailed) on IgxDatePicker, the handler appears to require an IDatePickerValidationFailedEventArgs type. However:

Importing the type from the package root fails because it is not exported:

// error: '"igniteui-angular"' has no exported member named 'IDatePickerValidationFailedEventArgs'. // Did you mean 'IgxTimePickerValidationFailedEventArgs'? 

Importing the type from an internal path (as found in older samples) forces a deep import:

import { IDatePickerValidationFailedEventArgs } from '@infragistics/igniteui-angular/lib/date-picker/date-picker.common'; 

which triggers an unrelated build error:

TS2307: Cannot find module '@infragistics/igniteui-angular/lib/dialog/dialog.component' or its corresponding type declarations. [plugin angular-compiler] src/app/button-enabled-dialog/button-enabled-dialog.token.ts:2:31 

This suggests the event-args type for the date picker’s validationFailed is either not publicly exposed

  • igniteui-angular version: latest
  • browser: all

Steps to reproduce

Demo Sample

  1. Add a date picker with (validationFailed):
  2. Implement the handler with the expected date-picker-specific args:
  3. Try to import the args from the package root:
  4. Observe the “not exported member” error.
  5. Try to import from the internal path:
  6. Observe the TS2307 module resolution error for .../lib/dialog/dialog.component.

Result

Errors. No public export for the date picker’s validationFailed event args.

Expected result

The validationFailed event should have a properly exported.

Attachments

Demo Sample

Image

Metadata

Metadata

Assignees

Labels

🐛 bugAny issue that describes a bug📅 date-picker✅ status: resolvedApplies to issues that have pending PRs resolving them, or PRs that have already merged.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions