From 7cd8a301c50bc8eb083c810e2d601878d331d3ce Mon Sep 17 00:00:00 2001 From: Kevin O'Leary Date: Sun, 16 Oct 2016 13:35:27 -0700 Subject: [PATCH 1/2] Update dependencies --- package.json | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/package.json b/package.json index 03ce3f8..288c309 100644 --- a/package.json +++ b/package.json @@ -11,14 +11,14 @@ "material" ], "devDependencies": { - "@angular/common": "~2.0.1", - "@angular/compiler": "~2.0.1", - "@angular/compiler-cli": "^0.6.3", - "@angular/core": "~2.0.1", - "@angular/forms": "~2.0.1", - "@angular/platform-browser": "~2.0.1", - "@angular/platform-browser-dynamic": "~2.0.1", - "@angular/platform-server": "^2.0.1", + "@angular/common": "~2.1.0", + "@angular/compiler": "~2.1.0", + "@angular/compiler-cli": "^2.1.0", + "@angular/core": "~2.1.0", + "@angular/forms": "~2.1.0", + "@angular/platform-browser": "~2.1.0", + "@angular/platform-browser-dynamic": "~2.1.0", + "@angular/platform-server": "~2.1.0", "@angular/router": "~3.0.1", "@types/es6-shim": "^0.31.32", "calendar": "^0.1.0", @@ -33,10 +33,10 @@ "zone.js": "^0.6.25" }, "peerDependencies": { - "@angular/common": "~2.0.1", - "@angular/compiler": "~2.0.1", - "@angular/core": "~2.0.1", - "@angular/forms": "~2.0.1" + "@angular/common": "~2.1.0", + "@angular/compiler": "~2.1.0", + "@angular/core": "~2.1.0", + "@angular/forms": "~2.1.0" }, "repository": { "type": "git", @@ -46,6 +46,7 @@ "start": "tsc && concurrently \"tsc -w\" \"lite-server\" ", "lite": "lite-server", "tsc": "tsc", - "tsc:w": "tsc -w" + "tsc:w": "tsc -w", + "ngc": "node_modules/.bin/ngc -p tsconfig-aot.json && rm integration-test/*.metadata.json" } } From 1f9d23a2f052dfdcfd0fa54d79f681ab90c83418 Mon Sep 17 00:00:00 2001 From: Kevin O'Leary Date: Sun, 16 Oct 2016 13:35:49 -0700 Subject: [PATCH 2/2] Listen for click events --- npm-debug.log | 44 -------------------------- src/datepicker.component.js | 27 +++++++++++++--- src/datepicker.component.js.map | 2 +- src/datepicker.component.metadata.json | 2 +- src/datepicker.component.ts | 34 ++++++++++++++++---- src/datepicker.module.metadata.json | 2 +- tsconfig-aot.json | 2 +- 7 files changed, 55 insertions(+), 58 deletions(-) delete mode 100644 npm-debug.log diff --git a/npm-debug.log b/npm-debug.log deleted file mode 100644 index 18df06a..0000000 --- a/npm-debug.log +++ /dev/null @@ -1,44 +0,0 @@ -0 info it worked if it ends with ok -1 verbose cli [ '/Users/kevinoleary/.nvm/versions/node/v5.0.0/bin/node', -1 verbose cli '/Users/kevinoleary/.nvm/versions/node/v5.0.0/bin/npm', -1 verbose cli 'start' ] -2 info using npm@3.3.6 -3 info using node@v5.0.0 -4 verbose run-script [ 'prestart', 'start', 'poststart' ] -5 info lifecycle angular2-material-datepicker@0.3.2~prestart: angular2-material-datepicker@0.3.2 -6 silly lifecycle angular2-material-datepicker@0.3.2~prestart: no script for prestart, continuing -7 info lifecycle angular2-material-datepicker@0.3.2~start: angular2-material-datepicker@0.3.2 -8 verbose lifecycle angular2-material-datepicker@0.3.2~start: unsafe-perm in lifecycle true -9 verbose lifecycle angular2-material-datepicker@0.3.2~start: PATH: /Users/kevinoleary/.nvm/versions/node/v5.0.0/lib/node_modules/npm/bin/node-gyp-bin:/Users/kevinoleary/Coding/Angular-2-Datepicker/node_modules/.bin:/Users/kevinoleary/.nvm/versions/node/v5.0.0/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/local/git/bin -10 verbose lifecycle angular2-material-datepicker@0.3.2~start: CWD: /Users/kevinoleary/Coding/Angular-2-Datepicker -11 silly lifecycle angular2-material-datepicker@0.3.2~start: Args: [ '-c', 'tsc && concurrently "tsc -w" "lite-server" ' ] -12 silly lifecycle angular2-material-datepicker@0.3.2~start: Returned: code: 1 signal: null -13 info lifecycle angular2-material-datepicker@0.3.2~start: Failed to exec start script -14 verbose stack Error: angular2-material-datepicker@0.3.2 start: `tsc && concurrently "tsc -w" "lite-server" ` -14 verbose stack Exit status 1 -14 verbose stack at EventEmitter. (/Users/kevinoleary/.nvm/versions/node/v5.0.0/lib/node_modules/npm/lib/utils/lifecycle.js:233:16) -14 verbose stack at emitTwo (events.js:87:13) -14 verbose stack at EventEmitter.emit (events.js:172:7) -14 verbose stack at ChildProcess. (/Users/kevinoleary/.nvm/versions/node/v5.0.0/lib/node_modules/npm/lib/utils/spawn.js:24:14) -14 verbose stack at emitTwo (events.js:87:13) -14 verbose stack at ChildProcess.emit (events.js:172:7) -14 verbose stack at maybeClose (internal/child_process.js:818:16) -14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5) -15 verbose pkgid angular2-material-datepicker@0.3.2 -16 verbose cwd /Users/kevinoleary/Coding/Angular-2-Datepicker -17 error Darwin 14.4.0 -18 error argv "/Users/kevinoleary/.nvm/versions/node/v5.0.0/bin/node" "/Users/kevinoleary/.nvm/versions/node/v5.0.0/bin/npm" "start" -19 error node v5.0.0 -20 error npm v3.3.6 -21 error code ELIFECYCLE -22 error angular2-material-datepicker@0.3.2 start: `tsc && concurrently "tsc -w" "lite-server" ` -22 error Exit status 1 -23 error Failed at the angular2-material-datepicker@0.3.2 start script 'tsc && concurrently "tsc -w" "lite-server" '. -23 error This is most likely a problem with the angular2-material-datepicker package, -23 error not with npm itself. -23 error Tell the author that this fails on your system: -23 error tsc && concurrently "tsc -w" "lite-server" -23 error You can get their info via: -23 error npm owner ls angular2-material-datepicker -23 error There is likely additional logging output above. -24 verbose exit [ 1, true ] diff --git a/src/datepicker.component.js b/src/datepicker.component.js index bbb9e98..3c4ac02 100644 --- a/src/datepicker.component.js +++ b/src/datepicker.component.js @@ -11,7 +11,10 @@ var __metadata = (this && this.__metadata) || function (k, v) { var core_1 = require('@angular/core'); var calendar_1 = require('./calendar'); var DatepickerComponent = (function () { - function DatepickerComponent() { + function DatepickerComponent(renderer, elementRef) { + var _this = this; + this.renderer = renderer; + this.elementRef = elementRef; // events this.onSelect = new core_1.EventEmitter(); this.dateFormat = 'YYYY-MM-DD'; @@ -34,6 +37,8 @@ var DatepickerComponent = (function () { 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', ' December' ]; + // listeners + this.clickListener = renderer.listenGlobal('document', 'click', function (event) { return _this.handleGlobalClick(event); }); } DatepickerComponent.prototype.ngOnInit = function () { this.initialized = true; @@ -44,8 +49,15 @@ var DatepickerComponent = (function () { this.setDate(); } }; + DatepickerComponent.prototype.ngOnDestroy = function () { + this.clickListener(); + }; // State Management // ------------------------------------------------------------------------------------ + DatepickerComponent.prototype.closeCalendar = function () { + this.showCalendar = false; + this.setDate(); + }; DatepickerComponent.prototype.setDate = function () { if (this.date) { this.setInputText(this.date); @@ -137,7 +149,7 @@ var DatepickerComponent = (function () { } }; DatepickerComponent.prototype.onCancel = function () { - this.showCalendar = false; + this.closeCalendar(); }; DatepickerComponent.prototype.onInputClick = function () { this.showCalendar = !this.showCalendar; @@ -148,6 +160,13 @@ var DatepickerComponent = (function () { this.showCalendar = !this.showCalendar; this.onSelect.emit(day); }; + // Listeners + // ------------------------------------------------------------------------------------ + DatepickerComponent.prototype.handleGlobalClick = function (event) { + if (!this.elementRef.nativeElement.contains(event.target)) { + this.closeCalendar(); + } + }; // Helpers // ------------------------------------------------------------------------------------ DatepickerComponent.prototype.getDayBackgroundColor = function (day) { @@ -271,9 +290,9 @@ var DatepickerComponent = (function () { styles: [ ".datepicker {\n position: relative;\n display: inline-block;\n color: #2b2b2b;\n font-family: 'Helvetica Neue', 'Helvetica', 'Arial', 'Calibri', 'Roboto';\n }\n\n .datepicker__calendar {\n position: absolute;\n overflow: hidden;\n z-index: 1000;\n top: 1.9em;\n left: 0;\n height: 24.25em;\n width: 20.5em;\n font-size: 14px;\n background-color: #ffffff;\n box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);\n cursor: default;\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n }\n\n .datepicker__calendar__cancel {\n position: absolute;\n bottom: 1em;\n left: 1.8em;\n color: #d8d8d8;\n cursor: pointer;\n -webkit-transition: 0.37s;\n transition: 0.37s;\n }\n\n .datepicker__calendar__cancel:hover {\n color: #b1b1b1;\n }\n\n .datepicker__calendar__content {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-flow: wrap;\n flex-flow: wrap;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n margin-top: 0.2em;\n }\n\n .datepicker__calendar__label {\n display: inline-block;\n width: 2.2em;\n height: 2.2em;\n margin: 0.2em;\n line-height: 2.2em;\n text-align: center;\n color: #d8d8d8;\n }\n\n .datepicker__calendar__month {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-flow: wrap;\n flex-flow: wrap;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n }\n\n .datepicker__calendar__month__day {\n display: inline-block;\n width: 2.2em;\n height: 2.2em;\n margin: 0.2em;\n border-radius: 2.2em;\n line-height: 2.2em;\n text-align: center;\n -webkit-transition: 0.37s;\n transition: 0.37s;\n }\n\n .datepicker__calendar__nav {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n height: 3em;\n background-color: #fff;\n border-bottom: 1px solid #e8e8e8;\n }\n\n .datepicker__calendar__nav__arrow {\n width: 0.8em;\n height: 0.8em;\n cursor: pointer;\n -webkit-transition: 0.37s;\n transition: 0.37s;\n }\n\n .datepicker__calendar__nav__arrow:hover {\n -webkit-transform: scale(1.05);\n transform: scale(1.05);\n }\n\n .datepicker__calendar__nav__chevron {\n fill: #bbbbbb;\n -webkit-transition: 0.37s;\n transition: 0.37s;\n }\n\n .datepicker__calendar__nav__chevron:hover {\n fill: #2b2b2b;\n }\n\n .datepicker__calendar__nav__header {\n width: 11em;\n margin: 0 1em;\n text-align: center;\n }\n\n .datepicker__input {\n outline: none;\n border-radius: 0.1rem;\n padding: .2em .6em;\n font-size: 14px;\n }\n " ], - template: "\n \n \n \n
\n \n \n \n \n \n \n \n \n \n
\n
\n {{ currentMonth }} {{ currentYear }}\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n {{ day }}\n \n \n \n \n {{ day.getDate() }}\n \n \n \n \n Cancel\n \n \n \n \n " + template: "\n \n \n \n
\n \n \n \n \n \n \n \n \n \n
\n
\n {{ currentMonth }} {{ currentYear }}\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n {{ day }}\n \n \n \n \n {{ day.getDate() }}\n \n \n \n \n Cancel\n \n \n \n \n " }), - __metadata('design:paramtypes', []) + __metadata('design:paramtypes', [core_1.Renderer, core_1.ElementRef]) ], DatepickerComponent); return DatepickerComponent; }()); diff --git a/src/datepicker.component.js.map b/src/datepicker.component.js.map index f0780b2..1158b34 100644 --- a/src/datepicker.component.js.map +++ b/src/datepicker.component.js.map @@ -1 +1 @@ -{"version":3,"file":"datepicker.component.js","sourceRoot":"","sources":["datepicker.component.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,qBACwE,eAAe,CAAC,CAAA;AAExF,yBAAyB,YAAY,CAAC,CAAA;AAkQtC;IA+BE;QAjBA,SAAS;QACC,aAAQ,GAAG,IAAI,mBAAY,EAAQ,CAAC;QAiB5C,IAAI,CAAC,UAAU,GAAG,YAAY,CAAC;QAC/B,aAAa;QACb,IAAI,CAAC,WAAW,GAAG,KAAK,CAAC;QACzB,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;QAC1B,SAAS;QACT,IAAI,CAAC,MAAM,GAAG;YACZ,OAAO,EAAE,SAAS;YAClB,MAAM,EAAE,SAAS;YACjB,WAAW,EAAE,SAAS;YACtB,OAAO,EAAE,SAAS;SACnB,CAAC;QACF,IAAI,CAAC,WAAW,GAAG,IAAI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U,CAAC,WAAW,EAAE;wBACtB,cAAO,CAAC,GAAG,EAAE,gBAAS,CAAC;4BACrB,YAAK,CAAC,EAAC,SAAS,EAAE,kBAAkB,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;4BACpD,YAAK,CAAC,EAAC,SAAS,EAAE,mBAAmB,EAAE,MAAM,EAAE,IAAI,EAAC,CAAC;4BACrD,YAAK,CAAC,EAAC,SAAS,EAAE,eAAe,EAAE,MAAM,EAAE,CAAC,EAAC,CAAC;yBAC/C,CAAC,CAAC;qBACJ,CAAC;oBACF,iBAAU,CAAC,YAAY,EAAE;wBACvB,cAAO,CAAC,GAAG,EAAE,gBAAS,CAAC;4BACrB,YAAK,CAAC,EAAC,SAAS,EAAE,mBAAmB,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;4BACrD,YAAK,CAAC,EAAC,SAAS,EAAE,kBAAkB,EAAE,MAAM,EAAE,IAAI,EAAC,CAAC;4BACpD,YAAK,CAAC,EAAC,SAAS,EAAE,eAAe,EAAE,MAAM,EAAE,CAAC,EAAC,CAAC;yBAC/C,CAAC,CAAC;qBACJ,CAAC;iBACH,CAAC;aACH;YACD,MAAM,EAAE;gBACN,09GAuIC;aACF;YACD,QAAQ,EAAE,whIA+FP;SACJ,CAAC;;2BAAA;IAqOF,0BAAC;AAAD,CAAC,AApOD,IAoOC;AApOY,2BAAmB,sBAoO/B,CAAA"} \ No newline at end of file +{"version":3,"file":"datepicker.component.js","sourceRoot":"","sources":["datepicker.component.ts"],"names":[],"mappings":";;;;;;;;;;AAAA,qBAC0F,eAAe,CAAC,CAAA;AAE1G,yBAAyB,YAAY,CAAC,CAAA;AAmQtC;IAiCE,6BAAoB,QAAkB,EAAU,UAAsB;QAjCxE,iBAyPC;QAxNqB,aAAQ,GAAR,QAAQ,CAAU;QAAU,eAAU,GAAV,UAAU,CAAY;QAnBtE,SAAS;QACC,aAAQ,GAAG,IAAI,mBAAY,EAAQ,CAAC;QAmB5C,IAAI,CAAC,UAAU,G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,iBAAU,CAAC,YAAY,EAAE;wBACvB,cAAO,CAAC,GAAG,EAAE,gBAAS,CAAC;4BACrB,YAAK,CAAC,EAAC,SAAS,EAAE,mBAAmB,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC;4BACrD,YAAK,CAAC,EAAC,SAAS,EAAE,kBAAkB,EAAE,MAAM,EAAE,IAAI,EAAC,CAAC;4BACpD,YAAK,CAAC,EAAC,SAAS,EAAE,eAAe,EAAE,MAAM,EAAE,CAAC,EAAC,CAAC;yBAC/C,CAAC,CAAC;qBACJ,CAAC;iBACH,CAAC;aACH;YACD,MAAM,EAAE;gBACN,09GAuIC;aACF;YACD,QAAQ,EAAE,6lIAgGP;SACJ,CAAC;;2BAAA;IA0PF,0BAAC;AAAD,CAAC,AAzPD,IAyPC;AAzPY,2BAAmB,sBAyP/B,CAAA"} \ No newline at end of file diff --git a/src/datepicker.component.metadata.json b/src/datepicker.component.metadata.json index 8aa8b5a..f47ac92 100644 --- a/src/datepicker.component.metadata.json +++ b/src/datepicker.component.metadata.json @@ -1 +1 @@ -{"__symbolic":"module","version":1,"metadata":{"DatepickerComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"material-datepicker","animations":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"trigger"},"arguments":["calendarAnimation",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"transition"},"arguments":["* => left",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"animate"},"arguments":[180,{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"keyframes"},"arguments":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"style"},"arguments":[{"transform":"translateX(105%)","offset":0.5}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"style"},"arguments":[{"transform":"translateX(-130%)","offset":0.51}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"style"},"arguments":[{"transform":"translateX(0)","offset":1}]}]]}]}]]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"transition"},"arguments":["* => right",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"animate"},"arguments":[180,{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"keyframes"},"arguments":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"style"},"arguments":[{"transform":"translateX(-105%)","offset":0.5}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"style"},"arguments":[{"transform":"translateX(130%)","offset":0.51}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"style"},"arguments":[{"transform":"translateX(0)","offset":1}]}]]}]}]]}]]}],"styles":[".datepicker {\n position: relative;\n display: inline-block;\n color: #2b2b2b;\n font-family: 'Helvetica Neue', 'Helvetica', 'Arial', 'Calibri', 'Roboto';\n }\n\n .datepicker__calendar {\n position: absolute;\n overflow: hidden;\n z-index: 1000;\n top: 1.9em;\n left: 0;\n height: 24.25em;\n width: 20.5em;\n font-size: 14px;\n background-color: #ffffff;\n box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);\n cursor: default;\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n }\n\n .datepicker__calendar__cancel {\n position: absolute;\n bottom: 1em;\n left: 1.8em;\n color: #d8d8d8;\n cursor: pointer;\n -webkit-transition: 0.37s;\n transition: 0.37s;\n }\n\n .datepicker__calendar__cancel:hover {\n color: #b1b1b1;\n }\n\n .datepicker__calendar__content {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-flow: wrap;\n flex-flow: wrap;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n margin-top: 0.2em;\n }\n\n .datepicker__calendar__label {\n display: inline-block;\n width: 2.2em;\n height: 2.2em;\n margin: 0.2em;\n line-height: 2.2em;\n text-align: center;\n color: #d8d8d8;\n }\n\n .datepicker__calendar__month {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-flow: wrap;\n flex-flow: wrap;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n }\n\n .datepicker__calendar__month__day {\n display: inline-block;\n width: 2.2em;\n height: 2.2em;\n margin: 0.2em;\n border-radius: 2.2em;\n line-height: 2.2em;\n text-align: center;\n -webkit-transition: 0.37s;\n transition: 0.37s;\n }\n\n .datepicker__calendar__nav {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n height: 3em;\n background-color: #fff;\n border-bottom: 1px solid #e8e8e8;\n }\n\n .datepicker__calendar__nav__arrow {\n width: 0.8em;\n height: 0.8em;\n cursor: pointer;\n -webkit-transition: 0.37s;\n transition: 0.37s;\n }\n\n .datepicker__calendar__nav__arrow:hover {\n -webkit-transform: scale(1.05);\n transform: scale(1.05);\n }\n\n .datepicker__calendar__nav__chevron {\n fill: #bbbbbb;\n -webkit-transition: 0.37s;\n transition: 0.37s;\n }\n\n .datepicker__calendar__nav__chevron:hover {\n fill: #2b2b2b;\n }\n\n .datepicker__calendar__nav__header {\n width: 11em;\n margin: 0 1em;\n text-align: center;\n }\n\n .datepicker__input {\n outline: none;\n border-radius: 0.1rem;\n padding: .2em .6em;\n font-size: 14px;\n }\n "],"template":"\n \n \n \n
\n \n \n \n \n \n \n \n \n \n
\n
\n {{ currentMonth }} {{ currentYear }}\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n {{ day }}\n \n \n \n \n {{ day.getDate() }}\n \n \n \n \n Cancel\n \n \n \n \n "}]}],"members":{"accentColor":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"altInputStyle":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"date":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"dateFormat":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"fontFamily":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"rangeStart":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"rangeEnd":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"inputText":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"showCalendar":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"onSelect":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"calendarDays":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"currentMonth":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"dayNames":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"hoveredDay":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor"}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"setDate":[{"__symbolic":"method"}],"setCurrentMonth":[{"__symbolic":"method"}],"setHoveredDay":[{"__symbolic":"method"}],"removeHoveredDay":[{"__symbolic":"method"}],"setInputText":[{"__symbolic":"method"}],"onArrowLeftClick":[{"__symbolic":"method"}],"onArrowRightClick":[{"__symbolic":"method"}],"onCancel":[{"__symbolic":"method"}],"onInputClick":[{"__symbolic":"method"}],"onSelectDay":[{"__symbolic":"method"}],"getDayBackgroundColor":[{"__symbolic":"method"}],"getDayFontColor":[{"__symbolic":"method"}],"isChosenDay":[{"__symbolic":"method"}],"isCurrentDay":[{"__symbolic":"method"}],"isHoveredDay":[{"__symbolic":"method"}],"triggerAnimation":[{"__symbolic":"method"}]}}}} \ No newline at end of file +{"__symbolic":"module","version":1,"metadata":{"DatepickerComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"material-datepicker","animations":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"trigger"},"arguments":["calendarAnimation",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"transition"},"arguments":["* => left",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"animate"},"arguments":[180,{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"keyframes"},"arguments":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"style"},"arguments":[{"transform":"translateX(105%)","offset":0.5}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"style"},"arguments":[{"transform":"translateX(-130%)","offset":0.51}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"style"},"arguments":[{"transform":"translateX(0)","offset":1}]}]]}]}]]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"transition"},"arguments":["* => right",[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"animate"},"arguments":[180,{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"keyframes"},"arguments":[[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"style"},"arguments":[{"transform":"translateX(-105%)","offset":0.5}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"style"},"arguments":[{"transform":"translateX(130%)","offset":0.51}]},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"style"},"arguments":[{"transform":"translateX(0)","offset":1}]}]]}]}]]}]]}],"styles":[".datepicker {\n position: relative;\n display: inline-block;\n color: #2b2b2b;\n font-family: 'Helvetica Neue', 'Helvetica', 'Arial', 'Calibri', 'Roboto';\n }\n\n .datepicker__calendar {\n position: absolute;\n overflow: hidden;\n z-index: 1000;\n top: 1.9em;\n left: 0;\n height: 24.25em;\n width: 20.5em;\n font-size: 14px;\n background-color: #ffffff;\n box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);\n cursor: default;\n -webkit-touch-callout: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n }\n\n .datepicker__calendar__cancel {\n position: absolute;\n bottom: 1em;\n left: 1.8em;\n color: #d8d8d8;\n cursor: pointer;\n -webkit-transition: 0.37s;\n transition: 0.37s;\n }\n\n .datepicker__calendar__cancel:hover {\n color: #b1b1b1;\n }\n\n .datepicker__calendar__content {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-flow: wrap;\n flex-flow: wrap;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n margin-top: 0.2em;\n }\n\n .datepicker__calendar__label {\n display: inline-block;\n width: 2.2em;\n height: 2.2em;\n margin: 0.2em;\n line-height: 2.2em;\n text-align: center;\n color: #d8d8d8;\n }\n\n .datepicker__calendar__month {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -ms-flex-flow: wrap;\n flex-flow: wrap;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n }\n\n .datepicker__calendar__month__day {\n display: inline-block;\n width: 2.2em;\n height: 2.2em;\n margin: 0.2em;\n border-radius: 2.2em;\n line-height: 2.2em;\n text-align: center;\n -webkit-transition: 0.37s;\n transition: 0.37s;\n }\n\n .datepicker__calendar__nav {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n height: 3em;\n background-color: #fff;\n border-bottom: 1px solid #e8e8e8;\n }\n\n .datepicker__calendar__nav__arrow {\n width: 0.8em;\n height: 0.8em;\n cursor: pointer;\n -webkit-transition: 0.37s;\n transition: 0.37s;\n }\n\n .datepicker__calendar__nav__arrow:hover {\n -webkit-transform: scale(1.05);\n transform: scale(1.05);\n }\n\n .datepicker__calendar__nav__chevron {\n fill: #bbbbbb;\n -webkit-transition: 0.37s;\n transition: 0.37s;\n }\n\n .datepicker__calendar__nav__chevron:hover {\n fill: #2b2b2b;\n }\n\n .datepicker__calendar__nav__header {\n width: 11em;\n margin: 0 1em;\n text-align: center;\n }\n\n .datepicker__input {\n outline: none;\n border-radius: 0.1rem;\n padding: .2em .6em;\n font-size: 14px;\n }\n "],"template":"\n \n \n \n
\n \n \n \n \n \n \n \n \n \n
\n
\n {{ currentMonth }} {{ currentYear }}\n
\n \n \n \n \n \n \n \n \n \n \n \n \n \n {{ day }}\n \n \n \n \n {{ day.getDate() }}\n \n \n \n \n Cancel\n \n \n \n \n "}]}],"members":{"accentColor":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"altInputStyle":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"date":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"dateFormat":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"fontFamily":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"rangeStart":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"rangeEnd":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"inputText":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"showCalendar":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"onSelect":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"calendarDays":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"currentMonth":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"dayNames":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"hoveredDay":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"@angular/core","name":"Renderer"},{"__symbolic":"reference","module":"@angular/core","name":"ElementRef"}]}],"ngOnInit":[{"__symbolic":"method"}],"ngOnChanges":[{"__symbolic":"method"}],"ngOnDestroy":[{"__symbolic":"method"}],"setDate":[{"__symbolic":"method"}],"setCurrentMonth":[{"__symbolic":"method"}],"setHoveredDay":[{"__symbolic":"method"}],"removeHoveredDay":[{"__symbolic":"method"}],"setInputText":[{"__symbolic":"method"}],"onArrowLeftClick":[{"__symbolic":"method"}],"onArrowRightClick":[{"__symbolic":"method"}],"onCancel":[{"__symbolic":"method"}],"onInputClick":[{"__symbolic":"method"}],"onSelectDay":[{"__symbolic":"method"}],"handleGlobalClick":[{"__symbolic":"method"}],"getDayBackgroundColor":[{"__symbolic":"method"}],"getDayFontColor":[{"__symbolic":"method"}],"isChosenDay":[{"__symbolic":"method"}],"isCurrentDay":[{"__symbolic":"method"}],"isHoveredDay":[{"__symbolic":"method"}],"triggerAnimation":[{"__symbolic":"method"}]}}}} \ No newline at end of file diff --git a/src/datepicker.component.ts b/src/datepicker.component.ts index ce4ca63..a8950f5 100644 --- a/src/datepicker.component.ts +++ b/src/datepicker.component.ts @@ -1,5 +1,5 @@ -import { animate, Component, EventEmitter, Input, keyframes, OnChanges, OnInit, - Output, SimpleChange, state, style, transition, trigger } from '@angular/core'; +import { animate, Component, ElementRef, EventEmitter, Input, keyframes, OnChanges, + OnInit, Output, Renderer, SimpleChange, state, style, transition, trigger } from '@angular/core'; import { Calendar } from './calendar'; @@ -237,7 +237,8 @@ import { Calendar } from './calendar'; class="datepicker__calendar__month__day" [ngStyle]="{'cursor': day == 0 ? 'initial' : 'pointer', 'background-color': getDayBackgroundColor(day), - 'color': isHoveredDay(day) ? accentColor : getDayFontColor(day) + 'color': isHoveredDay(day) ? accentColor : getDayFontColor(day), + 'pointer-events': day == 0 ? 'none' : '' }" (click)="onSelectDay(day)" (mouseenter)="hoveredDay = day" @@ -287,10 +288,12 @@ export class DatepickerComponent implements OnInit, OnChanges { // animation animate: string; // colors - colors: any; + colors: { [id: string] : string }; + // listeners + clickListener: Function; - constructor() { + constructor(private renderer: Renderer, private elementRef: ElementRef) { this.dateFormat = 'YYYY-MM-DD'; // view logic this.initialized = false; @@ -311,6 +314,8 @@ export class DatepickerComponent implements OnInit, OnChanges { 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', ' December' ]; + // listeners + this.clickListener = renderer.listenGlobal('document', 'click', (event: MouseEvent) => this.handleGlobalClick(event)); } ngOnInit() { @@ -324,8 +329,17 @@ export class DatepickerComponent implements OnInit, OnChanges { } } + ngOnDestroy() { + this.clickListener(); + } + // State Management // ------------------------------------------------------------------------------------ + closeCalendar(): void { + this.showCalendar = false; + this.setDate(); + } + setDate(): void { if (this.date) { this.setInputText(this.date); @@ -429,7 +443,7 @@ export class DatepickerComponent implements OnInit, OnChanges { } onCancel(): void { - this.showCalendar = false; + this.closeCalendar(); } onInputClick(): void { @@ -443,6 +457,14 @@ export class DatepickerComponent implements OnInit, OnChanges { this.onSelect.emit(day); } + // Listeners + // ------------------------------------------------------------------------------------ + handleGlobalClick(event: MouseEvent): void { + if (!this.elementRef.nativeElement.contains(event.target)) { + this.closeCalendar(); + } + } + // Helpers // ------------------------------------------------------------------------------------ getDayBackgroundColor(day: Date): string { diff --git a/src/datepicker.module.metadata.json b/src/datepicker.module.metadata.json index 96bf73f..be56e08 100644 --- a/src/datepicker.module.metadata.json +++ b/src/datepicker.module.metadata.json @@ -1 +1 @@ -{"__symbolic":"module","version":1,"metadata":{"DatepickerModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"declarations":[{"__symbolic":"reference","module":"./datepicker.component","name":"DatepickerComponent"}],"exports":[{"__symbolic":"reference","module":"./datepicker.component","name":"DatepickerComponent"}],"imports":[{"__symbolic":"reference","module":"@angular/platform-browser","name":"BrowserModule"},{"__symbolic":"reference","module":"@angular/forms","name":"FormsModule"}]}]}]}},"exports":[{"from":"./datepicker.component"}]} \ No newline at end of file +{"__symbolic":"module","version":1,"metadata":{"DatepickerModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule"},"arguments":[{"declarations":[{"__symbolic":"reference","module":"./datepicker.component","name":"DatepickerComponent"}],"exports":[{"__symbolic":"reference","module":"./datepicker.component","name":"DatepickerComponent"}],"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule"},{"__symbolic":"reference","module":"@angular/forms","name":"FormsModule"}]}]}]}},"exports":[{"from":"./datepicker.component"}]} \ No newline at end of file diff --git a/tsconfig-aot.json b/tsconfig-aot.json index 84f817f..a403769 100644 --- a/tsconfig-aot.json +++ b/tsconfig-aot.json @@ -19,6 +19,6 @@ "angularCompilerOptions": { "genDir": "aot", - "skipMetadataEmit" : true + "skipMetadataEmit" : false } }