Skip to content
This repository was archived by the owner on Mar 4, 2023. It is now read-only.

Commit 9ddebf2

Browse files
authored
Merge pull request #4 from eksrvb/bugfix/npm-publish
fix api + npm publish
2 parents 51adb90 + 0a039ad commit 9ddebf2

File tree

7 files changed

+18
-16
lines changed

7 files changed

+18
-16
lines changed

README.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ This material calendar is just beginning. As in the angular material components,
44

55
> Note: tthe following changes from version 3.0.0 onwards will no longer be compatible with this api. All necessary changes are documented. Version 3.0.0 is coming soon ;)
66
7-
### Live demo
8-
[Open demo on Stackblitz](https://stackblitz.com/github/e-netsupport/material-calendar-demo)
7+
### Working demo
8+
[demo github project](https://github.com/eksrvb/material-calendar-demo)
99

1010
## Installing
1111
`npm i material-calendar`
@@ -43,14 +43,6 @@ In your html:
4343
```
4444
and you are good to go ;)
4545

46-
>If only a one-month layout is required, the following tag can also be used:
47-
>``` html
48-
><calendar-panel [placeholderDay]="placeholder" year="2020" month="5" [config]="calendarConfig" (clickDate)="yourMethod($event)">
49-
></calendar-panel>
50-
>```
51-
>.
52-
53-
5446
All options are shown here:
5547

5648
``` html

angular.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,9 @@
139139
"configurations": {
140140
"production": {
141141
"tsConfig": "projects/material-calendar/tsconfig.lib.prod.json"
142+
},
143+
"ivy": {
144+
"tsConfig": "projects/material-calendar/tsconfig.lib.ivy.json"
142145
}
143146
}
144147
},

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
"ng": "ng",
66
"start": "ng serve",
77
"build": "ng build material-calendar --configuration production",
8+
"build:ivy": "ng build material-calendar --configuration ivy",
89
"prebuild": "cp README.md projects/material-calendar/",
910
"test": "ng test",
1011
"lint": "ng lint",

projects/material-calendar/src/lib/service/calendar.service.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
import { Injectable, LOCALE_ID, Inject } from '@angular/core';
2-
import * as moment_ from 'moment';
3-
import * as business_ from 'moment-business';
2+
import * as moment from 'moment';
3+
import * as business from 'moment-business';
44
import 'moment/min/locales';
55
import { Calendar, Month, Day } from './models';
66

7-
const moment = moment_;
8-
const business = business_;
7+
// const moment = moment_;
8+
// const business = business_;
99

1010
@Injectable({
1111
providedIn: 'root'

projects/material-calendar/src/public-api.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,4 @@
55
// export * from './lib/service/calendar.service';
66
export * from './lib/service/models';
77
export * from './lib/calendar-panels/calendar-panels.component';
8-
export * from './lib/calendar-panel/calendar-panel.component';
98
export * from './lib/material-calendar.module';
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
/* To learn more about this file see: https://angular.io/config/tsconfig. */
2+
{
3+
"extends": "./tsconfig.lib.json",
4+
"angularCompilerOptions": {
5+
"enableIvy": true
6+
}
7+
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"extends": "./tsconfig.lib.json",
33
"angularCompilerOptions": {
4-
"enableIvy": true
4+
"enableIvy": false
55
}
66
}

0 commit comments

Comments
 (0)