Skip to content

Commit a235f9b

Browse files
committed
chore(*): fixing build errors
1 parent 26dcb3b commit a235f9b

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

projects/igniteui-angular/directives/src/directives/date-time-editor/date-time-editor.directive.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -405,8 +405,8 @@ export class IgxDateTimeEditorDirective extends IgxMaskDirective implements OnCh
405405

406406
let errors = {};
407407
const value = DateTimeUtil.isValidDate(control.value) ? control.value : DateTimeUtil.parseIsoDate(control.value);
408-
const minValueDate = DateTimeUtil.isValidDate(this.minValue) ? this.minValue : this.parseDate(this.minValue);
409-
const maxValueDate = DateTimeUtil.isValidDate(this.maxValue) ? this.maxValue : this.parseDate(this.maxValue);
408+
const minValueDate = DateTimeUtil.isValidDate(this.minValue) ? this.minValue : this.parseDate(this.minValue.toString());
409+
const maxValueDate = DateTimeUtil.isValidDate(this.maxValue) ? this.maxValue : this.parseDate(this.maxValue.toString());
410410
if (minValueDate || maxValueDate) {
411411
errors = DateTimeUtil.validateMinMax(value,
412412
minValueDate, maxValueDate,
@@ -602,8 +602,8 @@ export class IgxDateTimeEditorDirective extends IgxMaskDirective implements OnCh
602602
}
603603

604604
let errors = {};
605-
const minValueDate = DateTimeUtil.isValidDate(this.minValue) ? this.minValue : this.parseDate(this.minValue);
606-
const maxValueDate = DateTimeUtil.isValidDate(this.maxValue) ? this.maxValue : this.parseDate(this.maxValue);
605+
const minValueDate = DateTimeUtil.isValidDate(this.minValue) ? this.minValue : this.parseDate(this.minValue.toString());
606+
const maxValueDate = DateTimeUtil.isValidDate(this.maxValue) ? this.maxValue : this.parseDate(this.maxValue.toString());
607607
if (minValueDate || maxValueDate) {
608608
errors = DateTimeUtil.validateMinMax(value,
609609
this.minValue, this.maxValue,
@@ -618,6 +618,8 @@ export class IgxDateTimeEditorDirective extends IgxMaskDirective implements OnCh
618618
return null;
619619
}
620620
const newDate = new Date(this.dateValue.getTime());
621+
let formatPart;
622+
let amPmFromMask;
621623
switch (datePart) {
622624
case DatePart.Date:
623625
DateTimeUtil.spinDate(delta, newDate, this.spinLoop);
@@ -641,8 +643,8 @@ export class IgxDateTimeEditorDirective extends IgxMaskDirective implements OnCh
641643
DateTimeUtil.spinFractionalSeconds(delta, newDate, this.spinLoop);
642644
break;
643645
case DatePart.AmPm:
644-
const formatPart = this._inputDateParts.find(dp => dp.type === DatePart.AmPm);
645-
const amPmFromMask = this.inputValue.substring(formatPart.start, formatPart.end);
646+
formatPart = this._inputDateParts.find(dp => dp.type === DatePart.AmPm);
647+
amPmFromMask = this.inputValue.substring(formatPart.start, formatPart.end);
646648
return DateTimeUtil.spinAmPm(newDate, this.dateValue, amPmFromMask);
647649
}
648650

projects/igniteui-angular/directives/src/public_api.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export * from './directives/layout/layout.directive';
2222
export * from './directives/mask/mask.directive';
2323
// Note: Radio-group directive moved to radio entry point in v21.0.0
2424
// Users should now import from 'igniteui-angular/radio' instead
25-
export { IgxRadioGroupDirective, IChangeRadioEventArgs } from 'igniteui-angular/radio';
25+
// export { IgxRadioGroupDirective, IChangeRadioEventArgs } from 'igniteui-angular/radio';
2626
export * from './directives/ripple/ripple.directive';
2727
export * from './directives/scroll-inertia/scroll_inertia.directive';
2828
export * from './directives/size/ig-size.directive';
@@ -34,13 +34,12 @@ export * from './directives/tooltip/public_api';
3434
export * from './directives/date-time-editor/public_api';
3535
export * from './directives/form-control/form-control.directive';
3636

37-
// NOTE: Input-related directives (IgxHintDirective, IgxInputDirective, IgxLabelDirective,
38-
// IgxPrefixDirective, IgxSuffixDirective, IgxReadonlyInputDirective) have been moved
37+
// NOTE: Input-related directives (IgxHintDirective, IgxInputDirective, IgxLabelDirective,
38+
// IgxPrefixDirective, IgxSuffixDirective, IgxReadonlyInputDirective) have been moved
3939
// to igniteui-angular/input-group entry point.
4040
// Import them from 'igniteui-angular/input-group' instead of 'igniteui-angular/directives'
4141

4242
// Directive modules for backwards compatibility
43-
export * from './directives/autocomplete/autocomplete.module';
4443
export * from './directives/button/button.module';
4544
export * from './directives/date-time-editor/date-time-editor.module';
4645
export * from './directives/divider/divider.module';
@@ -52,7 +51,7 @@ export * from './directives/for-of/for_of.module';
5251
export * from './directives/form-control/form-control.module';
5352
export * from './directives/layout/layout.module';
5453
export * from './directives/mask/mask.module';
55-
export { IgxRadioModule } from 'igniteui-angular/radio';
54+
// export { IgxRadioModule } from 'igniteui-angular/radio';
5655
export * from './directives/ripple/ripple.module';
5756
export * from './directives/scroll-inertia/scroll_inertia.module';
5857
export * from './directives/text-highlight/text-highlight.module';

0 commit comments

Comments
 (0)