Skip to content

Commit

Permalink
fix: restore compatibility with system.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Matt Lewis committed Jan 2, 2018
1 parent fe9b951 commit 1b3c27a
Show file tree
Hide file tree
Showing 9 changed files with 38 additions and 38 deletions.
36 changes: 18 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,24 +32,24 @@
"umdModuleIds": {
"angular-draggable-droppable": "angular-draggable-droppable",
"angular-resizable-element": "angular-resizable-element",
"date-fns/sub_days": "dateFns.subDays",
"date-fns/sub_weeks": "dateFns.subWeeks",
"date-fns/sub_months": "dateFns.subMonths",
"date-fns/add_days": "dateFns.addDays",
"date-fns/add_weeks": "dateFns.addWeeks",
"date-fns/add_months": "dateFns.addMonths",
"date-fns/start_of_today": "dateFns.startOfToday",
"date-fns/get_iso_week": "dateFns.getIsoWeek",
"date-fns/is_same_day": "dateFns.isSameDay",
"date-fns/set_date": "dateFns.setDate",
"date-fns/set_month": "dateFns.setMonth",
"date-fns/set_year": "dateFns.setYear",
"date-fns/get_date": "dateFns.getDate",
"date-fns/get_month": "dateFns.getMonth",
"date-fns/get_year": "dateFns.getYear",
"date-fns/difference_in_seconds": "dateFns.differenceInSeconds",
"date-fns/add_seconds": "dateFns.addSeconds",
"date-fns/add_minutes": "dateFns.addMinutes"
"date-fns/sub_days/index": "dateFns.subDays",
"date-fns/sub_weeks/index": "dateFns.subWeeks",
"date-fns/sub_months/index": "dateFns.subMonths",
"date-fns/add_days/index": "dateFns.addDays",
"date-fns/add_weeks/index": "dateFns.addWeeks",
"date-fns/add_months/index": "dateFns.addMonths",
"date-fns/start_of_today/index": "dateFns.startOfToday",
"date-fns/get_iso_week/index": "dateFns.getIsoWeek",
"date-fns/is_same_day/index": "dateFns.isSameDay",
"date-fns/set_date/index": "dateFns.setDate",
"date-fns/set_month/index": "dateFns.setMonth",
"date-fns/set_year/index": "dateFns.setYear",
"date-fns/get_date/index": "dateFns.getDate",
"date-fns/get_month/index": "dateFns.getMonth",
"date-fns/get_year/index": "dateFns.getYear",
"date-fns/difference_in_seconds/index": "dateFns.differenceInSeconds",
"date-fns/add_seconds/index": "dateFns.addSeconds",
"date-fns/add_minutes/index": "dateFns.addMinutes"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
CalendarDateFormatterInterface,
DateFormatterParams
} from './calendar-date-formatter.interface';
import getISOWeek from 'date-fns/get_iso_week';
import getISOWeek from 'date-fns/get_iso_week/index';
import { DatePipe } from '@angular/common';

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import {
CalendarDateFormatterInterface,
DateFormatterParams
} from './calendar-date-formatter.interface';
import getISOWeek from 'date-fns/get_iso_week';
import getISOWeek from 'date-fns/get_iso_week/index';

/**
* This will use <a href="https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Intl" target="_blank">Intl</a> API to do all date formatting.
Expand Down
6 changes: 3 additions & 3 deletions src/modules/common/calendar-next-view.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import {
Output,
EventEmitter
} from '@angular/core';
import addDays from 'date-fns/add_days';
import addWeeks from 'date-fns/add_weeks';
import addMonths from 'date-fns/add_months';
import addDays from 'date-fns/add_days/index';
import addWeeks from 'date-fns/add_weeks/index';
import addMonths from 'date-fns/add_months/index';

/**
* Change the view date to the next view. For example:
Expand Down
6 changes: 3 additions & 3 deletions src/modules/common/calendar-previous-view.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import {
Output,
EventEmitter
} from '@angular/core';
import subDays from 'date-fns/sub_days';
import subWeeks from 'date-fns/sub_weeks';
import subMonths from 'date-fns/sub_months';
import subDays from 'date-fns/sub_days/index';
import subWeeks from 'date-fns/sub_weeks/index';
import subMonths from 'date-fns/sub_months/index';

/**
* Change the view date to the previous view. For example:
Expand Down
2 changes: 1 addition & 1 deletion src/modules/common/calendar-today.directive.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import {
Output,
EventEmitter
} from '@angular/core';
import startOfToday from 'date-fns/start_of_today';
import startOfToday from 'date-fns/start_of_today/index';

/**
* Change the view date to the current day. For example:
Expand Down
2 changes: 1 addition & 1 deletion src/modules/day/calendar-day-view.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {
import { Subject } from 'rxjs/Subject';
import { Subscription } from 'rxjs/Subscription';
import { ResizeEvent } from 'angular-resizable-element';
import addMinutes from 'date-fns/add_minutes';
import addMinutes from 'date-fns/add_minutes/index';
import { CalendarDragHelper } from '../common/calendar-drag-helper.provider';
import { CalendarResizeHelper } from '../common/calendar-resize-helper.provider';
import { CalendarEventTimesChangedEvent } from '../common/calendar-event-times-changed-event.interface';
Expand Down
18 changes: 9 additions & 9 deletions src/modules/month/calendar-month-view.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ import {
} from 'calendar-utils';
import { Subject } from 'rxjs/Subject';
import { Subscription } from 'rxjs/Subscription';
import isSameDay from 'date-fns/is_same_day';
import setDate from 'date-fns/set_date';
import setMonth from 'date-fns/set_month';
import setYear from 'date-fns/set_year';
import getDate from 'date-fns/get_date';
import getMonth from 'date-fns/get_month';
import getYear from 'date-fns/get_year';
import differenceInSeconds from 'date-fns/difference_in_seconds';
import addSeconds from 'date-fns/add_seconds';
import isSameDay from 'date-fns/is_same_day/index';
import setDate from 'date-fns/set_date/index';
import setMonth from 'date-fns/set_month/index';
import setYear from 'date-fns/set_year/index';
import getDate from 'date-fns/get_date/index';
import getMonth from 'date-fns/get_month/index';
import getYear from 'date-fns/get_year/index';
import differenceInSeconds from 'date-fns/difference_in_seconds/index';
import addSeconds from 'date-fns/add_seconds/index';
import { CalendarEventTimesChangedEvent } from '../common/calendar-event-times-changed-event.interface';
import { CalendarUtils } from '../common/calendar-utils.provider';
import { validateEvents } from '../common/util';
Expand Down
2 changes: 1 addition & 1 deletion src/modules/week/calendar-week-view.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {
MonthViewDay
} from 'calendar-utils';
import { ResizeEvent } from 'angular-resizable-element';
import addDays from 'date-fns/add_days';
import addDays from 'date-fns/add_days/index';
import { CalendarDragHelper } from '../common/calendar-drag-helper.provider';
import { CalendarResizeHelper } from '../common/calendar-resize-helper.provider';
import { CalendarEventTimesChangedEvent } from '../common/calendar-event-times-changed-event.interface';
Expand Down

0 comments on commit 1b3c27a

Please sign in to comment.