Skip to content

Commit 825b2e2

Browse files
committed
refactor(calendar): remove circ dependency #4282
1 parent 6c0ec08 commit 825b2e2

File tree

3 files changed

+20
-13
lines changed

3 files changed

+20
-13
lines changed

projects/igniteui-angular/src/lib/calendar/calendar.component.ts

+2-6
Original file line numberDiff line numberDiff line change
@@ -24,18 +24,14 @@ import { ICalendarDate, monthRange } from './calendar';
2424
import { CalendarView, IgxMonthPickerBase } from './month-picker-base';
2525
import { IgxMonthsViewComponent } from './months-view/months-view.component';
2626
import { IgxYearsViewComponent } from './years-view/years-view.component';
27-
import { IgxDaysViewComponent, IViewChangedArgs } from './days-view/days-view.component';
27+
import { IgxDaysViewComponent } from './days-view/days-view.component';
2828
import { interval, Subscription } from 'rxjs';
2929
import { takeUntil, debounce, skipLast, switchMap } from 'rxjs/operators';
3030
import { ScrollMonth } from './calendar-base';
31+
import { IMonthView, IViewChangedArgs } from './calendar.interface';
3132

3233
let NEXT_ID = 0;
3334

34-
export interface IMonthView {
35-
value: Date | Date[];
36-
viewDate: Date;
37-
}
38-
3935
/**
4036
* **Ignite UI for Angular Calendar** -
4137
* [Documentation](https://www.infragistics.com/products/ignite-ui-angular/angular/components/calendar.html)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/**
2+
* @hidden
3+
*/
4+
export interface IMonthView {
5+
value: Date | Date[];
6+
viewDate: Date;
7+
}
8+
9+
/**
10+
* @hidden
11+
*/
12+
export interface IViewChangedArgs {
13+
date: Date;
14+
delta: number;
15+
moveToFirst?: boolean;
16+
}

projects/igniteui-angular/src/lib/calendar/days-view/days-view.component.ts

+2-7
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,18 @@ import {
99
HostBinding,
1010
DoCheck
1111
} from '@angular/core';
12-
import { ICalendarDate, isDateInRanges } from '../../calendar';
12+
import { ICalendarDate, isDateInRanges } from '../../calendar/calendar';
1313
import { trigger, transition, useAnimation } from '@angular/animations';
1414
import { slideInLeft, slideInRight } from '../../animations/main';
1515
import { NG_VALUE_ACCESSOR } from '@angular/forms';
1616
import { IgxDayItemComponent } from './day-item.component';
1717
import { DateRangeDescriptor, DateRangeType } from '../../core/dates';
1818
import { IgxCalendarBase, ScrollMonth, CalendarSelection } from '../calendar-base';
1919
import { isEqual } from '../../core/utils';
20+
import { IViewChangedArgs } from '../calendar.interface';
2021

2122
let NEXT_ID = 0;
2223

23-
export interface IViewChangedArgs {
24-
date: Date;
25-
delta: number;
26-
moveToFirst?: boolean;
27-
}
28-
2924
@Component({
3025
providers: [
3126
{

0 commit comments

Comments
 (0)