Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

0.26 #589

Merged
merged 119 commits into from
Sep 3, 2018
Merged

0.26 #589

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
119 commits
Select commit Hold shift + click to select a range
b3c9520
feat: remove direct dependency on date-fns
mattlewis92 Jun 10, 2018
ab764ec
feat: upgrade the drag and drop library
mattlewis92 Jun 10, 2018
9b071db
refactor: move shared logic into main adapter
mattlewis92 Jun 10, 2018
522e3c6
chore: merge with master
mattlewis92 Jun 13, 2018
e05a115
docs: fix stackblitz generation
mattlewis92 Jun 10, 2018
1c5d32f
feat: allow moment to be used as a replacement to date-fns
mattlewis92 Jun 10, 2018
a2fff58
fix(moment): change weekViewColumnSubHeader from `D MMM` to `MMM D`
mattlewis92 Jun 10, 2018
dcf1a8f
build: revert accidental tsconfig changes
mattlewis92 Jun 10, 2018
c788300
refactor: cleanup date adapter api
mattlewis92 Jun 13, 2018
7e35137
refactor: undo accidental breaking change
mattlewis92 Jun 13, 2018
8e1a982
docs(demos): fix the moment demo in aot
mattlewis92 Jun 13, 2018
36fb312
fix: prevent text getting selected in safari while dragging events
mattlewis92 Jun 16, 2018
24eb394
feat: remove deep module imports
mattlewis92 Jun 16, 2018
b2a3e05
test: fix tests
mattlewis92 Jun 16, 2018
c27b2d8
feat: allow meta to be passed to the event times changed interface
mattlewis92 Jun 16, 2018
797178f
chore: merge with master
mattlewis92 Jun 16, 2018
111234d
chore: merge with master
mattlewis92 Jun 17, 2018
427d5a2
build: upgrade drag and drop lib
mattlewis92 Jun 17, 2018
40b02cb
build: upgrade drag and drop lib
mattlewis92 Jun 17, 2018
44347e2
feat(day-view): expose events in beforeViewRender output
mattlewis92 Jun 17, 2018
df62e7a
feat(event-title-formatter): expose the pre-formatted title
mattlewis92 Jun 17, 2018
f634a86
feat: add a CalendarView enum to prevent typos in view names
mattlewis92 Jun 17, 2018
1fd9089
fix(day-view): prevent segment double hover when dragging
mattlewis92 Jun 17, 2018
19d4250
build: prevent local build from crashing
mattlewis92 Jun 17, 2018
ce8063d
fix: make sure events that are being resized are always on top
mattlewis92 Jun 17, 2018
1e414cf
refactor: make drag helper start position readonly
mattlewis92 Jun 18, 2018
6641319
feat(day-view): allow events to be dragged outside of the view
mattlewis92 Jun 18, 2018
d2223d5
fix(day-view): dont remove events that start and end at the same time
mattlewis92 Jun 18, 2018
50159cc
feat(day-view): make previous and next view helpers respect excludeDays
mattlewis92 Jun 18, 2018
be40f52
build: exclude all export not found warnings in tests
mattlewis92 Jun 18, 2018
97459d8
docs: clarify demo utils are only for the demo
mattlewis92 Jun 18, 2018
2454892
feat(month-view): allow events to be dropped on the open day events list
mattlewis92 Jun 18, 2018
c505d38
fix(month-view): prevent day clicked from firing when dragging events
mattlewis92 Jun 18, 2018
79dd846
fix(day-view): make sure segmentHeight is passed to a custom template
mattlewis92 Jun 18, 2018
8908759
fix(day-view): always default eventSnapSize to hour segment height
mattlewis92 Jun 18, 2018
885f349
docs(demos): dont preload all modules
mattlewis92 Jun 18, 2018
b0ebcd5
docs(demos): fix async demo in non GMT timezone
mattlewis92 Jun 18, 2018
4f9ee6c
build: upgrade calendar-utils
mattlewis92 Jun 18, 2018
bca145e
refactor: remove accidental console.log
mattlewis92 Jun 22, 2018
d9e76d4
feat: upgrade draggable library
mattlewis92 Jun 22, 2018
45444b8
refactor: dont expose duplicate events
mattlewis92 Jun 22, 2018
10ff7d5
fix(month-view): stop events overflowing on ie11
mattlewis92 Jun 22, 2018
a0d80ef
chore: merge with matser
mattlewis92 Jun 22, 2018
01b0c14
build: use star imports for date-fns
mattlewis92 Jun 22, 2018
9a4c14c
docs(demos): add calendar-utils to stackblitz
mattlewis92 Jun 22, 2018
013c98b
test: fix day view tests
mattlewis92 Jun 23, 2018
2aaaeb8
test: fix tests for real
mattlewis92 Jun 23, 2018
e2538a1
feat(week-view): allow events to be dragged outside of the view
mattlewis92 Jun 23, 2018
bb08ec1
fix(week-view): make sure currently resized events are always on top
mattlewis92 Jun 23, 2018
56dc132
fix(day-view): disable pointer events whilst resizing
mattlewis92 Jun 23, 2018
ccffe05
fix(week-view): allow resizing events with no end date
mattlewis92 Jun 23, 2018
94a8e79
refactor(day-view): make intention more explicit
mattlewis92 Jun 23, 2018
b00d57c
fix(day-view): allow events with no end date to be resized
mattlewis92 Jun 23, 2018
3dcc029
test: remove it.only from tests
mattlewis92 Jun 23, 2018
51f3f2b
build: transpile date-adapters to commonjs for better interop
mattlewis92 Jun 23, 2018
ab3aa6e
refactor(click): make click event handler stop propagation automatic
mattlewis92 Jun 24, 2018
403e127
fix(event-clicked): clicking actual events now triggers eventClicked
dwknippers May 30, 2018
ba1dd15
refactor(tests): use more explicit chai helpers
mattlewis92 Jun 24, 2018
9a56f4e
build: upgrade tslint rules
mattlewis92 Jun 24, 2018
c4e3c26
build(demos): fix tslint warnings
mattlewis92 Jun 24, 2018
743e216
build: upgrade dependencies
mattlewis92 Jun 24, 2018
0d7d184
test: fix week view tests
mattlewis92 Jun 24, 2018
3b2482a
build: fix aot with missing date adapter
mattlewis92 Jun 25, 2018
2dddd25
build: npm update
mattlewis92 Jun 25, 2018
3fb7bb7
build: swap out bootstrap dependency
mattlewis92 Jun 25, 2018
af8149c
docs(demos): fix stackblitz demo
mattlewis92 Jun 25, 2018
6ada99e
build: reinstall all deps
mattlewis92 Jun 25, 2018
d6d61c4
feat(tooltip): allow tooltip to be auto positioned
mattlewis92 Jun 25, 2018
479c75a
feat(event-times-changed): expose type of event (resize, drag or drop)
mattlewis92 Jun 28, 2018
5353b15
build: upgrade dependencies
mattlewis92 Jun 28, 2018
249f5e9
refactor: use proper drag end event
mattlewis92 Jun 28, 2018
7cab7b6
Merge branch 'master' into 0.26
mattlewis92 Jun 29, 2018
9fe2a0f
fix: handle scrolling the page while dragging evwnts
mattlewis92 Jun 29, 2018
8ae3ced
Merge branch '0.26' of github.com:mattlewis92/angular-calendar into 0.26
mattlewis92 Jun 29, 2018
db0c880
feat(month-view): allow the open day events animation to be overridden
mattlewis92 Jul 2, 2018
6e170bc
build: npm update
mattlewis92 Jul 2, 2018
61f4b62
chore: merge with master
mattlewis92 Jul 5, 2018
13a688e
feat(month-view): add class to day that's being highlighted
mattlewis92 Jul 8, 2018
571c36b
build: upgrade calendar-utils
mattlewis92 Jul 11, 2018
ca2705d
build: upgrade dependencies
mattlewis92 Jul 17, 2018
e5d8630
Merge branch 'master' into 0.26
mattlewis92 Jul 20, 2018
e3b402c
build: pin calendar-utils
mattlewis92 Jul 20, 2018
f2e26a2
build: upgrade dependencies
mattlewis92 Jul 24, 2018
bcd6a59
chore: merge with master
mattlewis92 Jul 26, 2018
7ce5967
Merge branch 'master' into 0.26
mattlewis92 Jul 30, 2018
1cc282c
chore: merge with master
mattlewis92 Jul 30, 2018
e54c140
chore: merge with master
mattlewis92 Jul 30, 2018
cab760d
refactor: use a Set instead of a WeakSet to fix ie11 compat
mattlewis92 Jul 31, 2018
b06e470
test: run tests in UTC
mattlewis92 Jul 31, 2018
7e7c374
test: fix tests
mattlewis92 Jul 31, 2018
5cfbfc7
feat: add time grid to the week view
mattlewis92 Jul 31, 2018
0b4fcd5
feat(week-view): allow total days in the week to be customised
mattlewis92 Jul 31, 2018
2d22869
build: upgrade dependencies
mattlewis92 Aug 3, 2018
b11260a
build: upgrade dependencies
mattlewis92 Aug 3, 2018
3147854
style: reformat with prettier
mattlewis92 Aug 3, 2018
df339b9
fix: allow events that end on different days to be dragged
mattlewis92 Aug 3, 2018
1185d27
feat: expose the full week view on the beforeViewRender output
mattlewis92 Aug 5, 2018
aa82729
build: npm update
mattlewis92 Aug 5, 2018
e3d6652
Merge branch 'master' into 0.26
mattlewis92 Aug 5, 2018
62c41b9
feat(day-view): allow dragging and dropping all day events
mattlewis92 Aug 5, 2018
fb4bbb7
fix(week-view): use correct event left positioning
mattlewis92 Aug 6, 2018
2c8a6db
feat: allow event actions template to be customised
mattlewis92 Aug 6, 2018
6a7e956
test: fix all failing tests
mattlewis92 Aug 6, 2018
66e9223
fix(week-view): fix cursor on draggable events
mattlewis92 Aug 6, 2018
c6b095a
feat(day-view): remove the mwl-calendar-all-day-event component
mattlewis92 Aug 6, 2018
4bfac45
fix(resizable): prevent resizing of elements when not on top stack
mattlewis92 Aug 6, 2018
aa7edd9
feat(week-view): make the week view title work with no config with i18n
mattlewis92 Aug 6, 2018
46a650a
fix: more robust way of telling if an event is dropped within a calendar
mattlewis92 Aug 8, 2018
710431c
build: upgrade dependencies
mattlewis92 Aug 8, 2018
25f8db5
build: upgrade dependencies
mattlewis92 Aug 11, 2018
08661c4
fix: allow the mouse to be moved slightly when clicking events
mattlewis92 Aug 11, 2018
1706b32
build: upgrade dependencies
mattlewis92 Aug 13, 2018
b682fa7
build: upgrade dependencies to final versions
mattlewis92 Aug 29, 2018
6bb89fe
build: upgrade dependencies
mattlewis92 Aug 29, 2018
a894502
build: remove unused dep
mattlewis92 Aug 29, 2018
f13e03d
build: upgrade dependencies
mattlewis92 Sep 1, 2018
40a82a2
build: remove yarn.lock from example
mattlewis92 Sep 1, 2018
21fa48f
build: switch to the angular cli
mattlewis92 Sep 2, 2018
f2bb934
build: upgrade dependencies
mattlewis92 Sep 3, 2018
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
# editorconfig.org
# Editor configuration, see http://editorconfig.org
root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
max_line_length = off
trim_trailing_whitespace = false
44 changes: 39 additions & 5 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,6 +1,40 @@
.idea
# See http://help.github.com/ignore-files/ for more about ignoring files.

# compiled output
/dist
/tmp
/out-tsc

# dependencies
/node_modules

# IDEs and editors
/.idea
.project
.classpath
.c9/
*.launch
.settings/
*.sublime-workspace

# IDE - VSCode
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json

# misc
/.sass-cache
/connect.lock
/coverage
/libpeerconnection.log
npm-debug.log
yarn-error.log
testem.log
/typings
projects/angular-calendar/package.json

# System Files
.DS_Store
node_modules
typings
coverage
dist
Thumbs.db
1 change: 0 additions & 1 deletion .npmrc

This file was deleted.

7 changes: 5 additions & 2 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"extends": "stylelint-config-standard"
}
"extends": "stylelint-config-standard",
"rules": {
"no-descending-specificity": null
}
}
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
The MIT License (MIT)

Copyright (c) 2016 Matt Lewis
Copyright (c) 2018 Matt Lewis

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
13 changes: 10 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ A calendar component for Angular 6.0+ that can display events on a month, week o
First install through npm:

```bash
npm install --save angular-calendar
npm install --save angular-calendar date-fns
```

Next include the CSS file in the global (not component scoped) styles of your app:
Expand All @@ -49,10 +49,17 @@ Finally import the calendar module into your apps module:
```typescript
import { NgModule } from '@angular/core';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { CalendarModule } from 'angular-calendar';
import { CalendarModule, DateAdapter } from 'angular-calendar';
import { adapterFactory } from 'angular-calendar/date-adapters/date-fns';

@NgModule({
imports: [BrowserAnimationsModule, CalendarModule.forRoot()]
imports: [
BrowserAnimationsModule,
CalendarModule.forRoot({
provide: DateAdapter,
useFactory: adapterFactory
})
]
})
export class MyModule {}
```
Expand Down
135 changes: 135 additions & 0 deletions angular.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
{
"$schema": "./node_modules/@angular/cli/lib/config/schema.json",
"version": 1,
"newProjectRoot": "projects",
"projects": {
"demos": {
"root": "",
"sourceRoot": "src",
"projectType": "application",
"prefix": "mwl",
"schematics": {
"@schematics/angular:component": {
"styleext": "scss",
"spec": false
},
"@schematics/angular:class": {
"spec": false
},
"@schematics/angular:directive": {
"spec": false
},
"@schematics/angular:guard": {
"spec": false
},
"@schematics/angular:module": {
"spec": false
},
"@schematics/angular:pipe": {
"spec": false
},
"@schematics/angular:service": {
"spec": false
}
},
"architect": {
"build": {
"builder": "@angular-devkit/build-angular:browser",
"options": {
"outputPath": "dist/demos",
"index": "src/index.html",
"main": "src/main.ts",
"polyfills": "src/polyfills.ts",
"tsConfig": "src/tsconfig.app.json",
"assets": [
"src/favicon.ico",
"src/assets"
],
"styles": [
"src/styles.scss"
],
"scripts": []
},
"configurations": {
"production": {
"fileReplacements": [
{
"replace": "src/environments/environment.ts",
"with": "src/environments/environment.prod.ts"
}
],
"optimization": true,
"outputHashing": "all",
"sourceMap": false,
"extractCss": true,
"namedChunks": false,
"aot": true,
"extractLicenses": true,
"vendorChunk": false,
"buildOptimizer": false
}
}
},
"serve": {
"builder": "@angular-devkit/build-angular:dev-server",
"options": {
"browserTarget": "demos:build"
},
"configurations": {
"production": {
"browserTarget": "demos:build:production"
}
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"src/tsconfig.app.json"
],
"exclude": [
"**/node_modules/**"
]
}
}
}
},
"angular-calendar": {
"root": "projects/angular-calendar",
"sourceRoot": "projects/angular-calendar/src",
"projectType": "library",
"prefix": "mwl",
"architect": {
"build": {
"builder": "@angular-devkit/build-ng-packagr:build",
"options": {
"tsConfig": "projects/angular-calendar/tsconfig.lib.json",
"project": "projects/angular-calendar/ng-package.json"
}
},
"test": {
"builder": "@angular-devkit/build-angular:karma",
"options": {
"main": "projects/angular-calendar/test/entry.ts",
"tsConfig": "projects/angular-calendar/tsconfig.spec.json",
"karmaConfig": "projects/angular-calendar/karma.conf.ts",
"sourceMap": true
}
},
"lint": {
"builder": "@angular-devkit/build-angular:tslint",
"options": {
"tsConfig": [
"projects/angular-calendar/tsconfig.lib.json",
"projects/angular-calendar/tsconfig.spec.json"
],
"exclude": [
"**/node_modules/**"
]
}
}
}
}
},
"defaultProject": "demos"
}
Loading