Skip to content

Commit 29eb8c9

Browse files
committed
feat: publish package in ivy partial compilation mode
BREAKING CHANGE: angular 12 or higher is now required to use this package Closes #1536
1 parent 228de33 commit 29eb8c9

File tree

8 files changed

+33
-6
lines changed

8 files changed

+33
-6
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<h1 align="center">angular 10.0+ calendar</h1>
1+
<h1 align="center">angular 12.0+ calendar</h1>
22

33
<div align="center">
44

@@ -38,7 +38,7 @@ https://mattlewis92.github.io/angular-calendar/
3838

3939
<h2 align="center">About</h2>
4040

41-
A calendar component for Angular 10.0+ that can display events on a month, week or day view. The successor of [angular-bootstrap-calendar](https://github.com/mattlewis92/angular-bootstrap-calendar).
41+
A calendar component for Angular 12.0+ that can display events on a month, week or day view. The successor of [angular-bootstrap-calendar](https://github.com/mattlewis92/angular-bootstrap-calendar).
4242

4343
<h2 align="center">Getting started</h2>
4444

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "angular-calendar",
33
"version": "0.28.28",
4-
"description": "A calendar component for angular 10.0+ that can display events on a month, week or day view",
4+
"description": "A calendar component for angular 12.0+ that can display events on a month, week or day view",
55
"funding": {
66
"url": "https://github.com/sponsors/mattlewis92"
77
},

projects/angular-calendar/src/modules/common/calendar-common.module.ts

+16
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,22 @@ export * from './calendar-event-times-changed-event.interface';
3939
export * from '../../date-adapters/date-adapter';
4040
export * from './calendar-view.enum';
4141

42+
// needed for ivy, not part of the public api
43+
export { CalendarEventActionsComponent as ɵCalendarEventActionsComponent } from './calendar-event-actions.component';
44+
export { CalendarEventTitleComponent as ɵCalendarEventTitleComponent } from './calendar-event-title.component';
45+
export {
46+
CalendarTooltipDirective as ɵCalendarTooltipDirective,
47+
CalendarTooltipWindowComponent as ɵCalendarTooltipWindowComponent,
48+
} from './calendar-tooltip.directive';
49+
export { CalendarPreviousViewDirective as ɵCalendarPreviousViewDirective } from './calendar-previous-view.directive';
50+
export { CalendarNextViewDirective as ɵCalendarNextViewDirective } from './calendar-next-view.directive';
51+
export { CalendarTodayDirective as ɵCalendarTodayDirective } from './calendar-today.directive';
52+
export { CalendarDatePipe as ɵCalendarDatePipe } from './calendar-date.pipe';
53+
export { CalendarEventTitlePipe as ɵCalendarEventTitlePipe } from './calendar-event-title.pipe';
54+
export { ClickDirective as ɵClickDirective } from './click.directive';
55+
export { KeydownEnterDirective as ɵKeydownEnterDirective } from './keydown-enter.directive';
56+
export { CalendarA11yPipe as ɵCalendarA11yPipe } from './calendar-a11y.pipe';
57+
4258
export {
4359
CalendarEvent,
4460
EventAction as CalendarEventAction,

projects/angular-calendar/src/modules/month/calendar-month.module.ts

+5
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ export {
1515
export { MonthViewDay as CalendarMonthViewDay } from 'calendar-utils';
1616
export { collapseAnimation } from './calendar-open-day-events.component';
1717

18+
// needed for ivy, not part of the public api
19+
export { CalendarMonthCellComponent as ɵCalendarMonthCellComponent } from './calendar-month-cell.component';
20+
export { CalendarMonthViewHeaderComponent as ɵCalendarMonthViewHeaderComponent } from './calendar-month-view-header.component';
21+
export { CalendarOpenDayEventsComponent as ɵCalendarOpenDayEventsComponent } from './calendar-open-day-events.component';
22+
1823
@NgModule({
1924
imports: [CommonModule, DragAndDropModule, CalendarCommonModule],
2025
declarations: [

projects/angular-calendar/src/modules/week/calendar-week.module.ts

+6
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ export {
2020
} from 'calendar-utils';
2121
export { getWeekViewPeriod } from '../common/util';
2222

23+
// needed for ivy, not part of the public api
24+
export { CalendarWeekViewHeaderComponent as ɵCalendarWeekViewHeaderComponent } from './calendar-week-view-header.component';
25+
export { CalendarWeekViewEventComponent as ɵCalendarWeekViewEventComponent } from './calendar-week-view-event.component';
26+
export { CalendarWeekViewHourSegmentComponent as ɵCalendarWeekViewHourSegmentComponent } from './calendar-week-view-hour-segment.component';
27+
export { CalendarWeekViewCurrentTimeMarkerComponent as ɵCalendarWeekViewCurrentTimeMarkerComponent } from './calendar-week-view-current-time-marker.component';
28+
2329
@NgModule({
2430
imports: [
2531
CommonModule,

projects/angular-calendar/tsconfig.lib.prod.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44
"declarationMap": false
55
},
66
"angularCompilerOptions": {
7-
"enableIvy": false
7+
"compilationMode": "partial"
88
}
99
}

projects/demos/app/demo-app.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[class.bg-dark]="activeDemo?.darkTheme"
55
role="navigation"
66
>
7-
<a class="navbar-brand" href="#">Angular 10.0+ calendar</a>
7+
<a class="navbar-brand" href="#">Angular 12.0+ calendar</a>
88

99
<button
1010
type="button"

projects/demos/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<meta charset="utf-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1" />
66
<meta http-equiv="x-ua-compatible" content="ie=edge" />
7-
<title>Angular 10.0+ calendar</title>
7+
<title>Angular 12.0+ calendar</title>
88
<link rel="icon" type="image/x-icon" href="favicon.ico" />
99

1010
<style type="text/css">

0 commit comments

Comments
 (0)