ion2-calendar
Advanced tools
Comparing version 2.0.8 to 2.0.9
@@ -5,3 +5,3 @@ import { Injectable } from '@angular/core'; | ||
import { CalendarService } from './services/calendar.service'; | ||
var CalendarController = (function () { | ||
var CalendarController = /** @class */ (function () { | ||
function CalendarController(modalCtrl, calSvc) { | ||
@@ -47,13 +47,13 @@ this.modalCtrl = modalCtrl; | ||
}; | ||
CalendarController.decorators = [ | ||
{ type: Injectable }, | ||
]; | ||
/** @nocollapse */ | ||
CalendarController.ctorParameters = function () { return [ | ||
{ type: ModalController, }, | ||
{ type: CalendarService, }, | ||
]; }; | ||
return CalendarController; | ||
}()); | ||
export { CalendarController }; | ||
CalendarController.decorators = [ | ||
{ type: Injectable }, | ||
]; | ||
/** @nocollapse */ | ||
CalendarController.ctorParameters = function () { return [ | ||
{ type: ModalController, }, | ||
{ type: CalendarService, }, | ||
]; }; | ||
//# sourceMappingURL=calendar.controller.js.map |
@@ -1,2 +0,2 @@ | ||
var CalendarMonth = (function () { | ||
var CalendarMonth = /** @class */ (function () { | ||
function CalendarMonth() { | ||
@@ -7,3 +7,3 @@ } | ||
export { CalendarMonth }; | ||
var PrivateCalendarOptions = (function () { | ||
var PrivateCalendarOptions = /** @class */ (function () { | ||
function PrivateCalendarOptions() { | ||
@@ -14,3 +14,3 @@ } | ||
export { PrivateCalendarOptions }; | ||
var CalendarResult = (function () { | ||
var CalendarResult = /** @class */ (function () { | ||
function CalendarResult() { | ||
@@ -17,0 +17,0 @@ } |
@@ -9,24 +9,24 @@ import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core'; | ||
} | ||
var CalendarModule = (function () { | ||
var CalendarModule = /** @class */ (function () { | ||
function CalendarModule() { | ||
} | ||
CalendarModule.decorators = [ | ||
{ type: NgModule, args: [{ | ||
imports: [IonicModule], | ||
declarations: CALENDAR_COMPONENTS, | ||
exports: CALENDAR_COMPONENTS, | ||
entryComponents: CALENDAR_COMPONENTS, | ||
providers: [{ | ||
provide: CalendarController, | ||
useFactory: calendarController, | ||
deps: [ModalController, CalendarService], | ||
}, CalendarService], | ||
schemas: [CUSTOM_ELEMENTS_SCHEMA], | ||
},] }, | ||
]; | ||
/** @nocollapse */ | ||
CalendarModule.ctorParameters = function () { return []; }; | ||
return CalendarModule; | ||
}()); | ||
export { CalendarModule }; | ||
CalendarModule.decorators = [ | ||
{ type: NgModule, args: [{ | ||
imports: [IonicModule], | ||
declarations: CALENDAR_COMPONENTS, | ||
exports: CALENDAR_COMPONENTS, | ||
entryComponents: CALENDAR_COMPONENTS, | ||
providers: [{ | ||
provide: CalendarController, | ||
useFactory: calendarController, | ||
deps: [ModalController, CalendarService], | ||
}, CalendarService], | ||
schemas: [CUSTOM_ELEMENTS_SCHEMA], | ||
},] }, | ||
]; | ||
/** @nocollapse */ | ||
CalendarModule.ctorParameters = function () { return []; }; | ||
//# sourceMappingURL=calendar.module.js.map |
import { Component, Input } from '@angular/core'; | ||
var CalendarWeekComponent = (function () { | ||
var CalendarWeekComponent = /** @class */ (function () { | ||
function CalendarWeekComponent() { | ||
@@ -33,18 +33,18 @@ this._weekArray = ['S', 'M', 'T', 'W', 'T', 'F', 'S']; | ||
}; | ||
CalendarWeekComponent.decorators = [ | ||
{ type: Component, args: [{ | ||
selector: 'ion-calendar-week', | ||
template: "\n <ion-toolbar class=\"week-toolbar\" no-border-top>\n <ul [class]=\"'week-title ' + color\">\n <li *ngFor=\"let w of _weekArray\">{{w}}</li>\n </ul>\n </ion-toolbar>\n ", | ||
},] }, | ||
]; | ||
/** @nocollapse */ | ||
CalendarWeekComponent.ctorParameters = function () { return []; }; | ||
CalendarWeekComponent.propDecorators = { | ||
'color': [{ type: Input },], | ||
'weekArray': [{ type: Input },], | ||
'weekStart': [{ type: Input },], | ||
}; | ||
return CalendarWeekComponent; | ||
}()); | ||
export { CalendarWeekComponent }; | ||
CalendarWeekComponent.decorators = [ | ||
{ type: Component, args: [{ | ||
selector: 'ion-calendar-week', | ||
template: "\n <ion-toolbar class=\"week-toolbar\" no-border-top>\n <ul [class]=\"'week-title ' + color\">\n <li *ngFor=\"let w of _weekArray\">{{w}}</li>\n </ul>\n </ion-toolbar>\n ", | ||
},] }, | ||
]; | ||
/** @nocollapse */ | ||
CalendarWeekComponent.ctorParameters = function () { return []; }; | ||
CalendarWeekComponent.propDecorators = { | ||
'color': [{ type: Input },], | ||
'weekArray': [{ type: Input },], | ||
'weekStart': [{ type: Input },], | ||
}; | ||
//# sourceMappingURL=calendar-week.component.js.map |
@@ -8,4 +8,9 @@ import { OnInit, EventEmitter } from '@angular/core'; | ||
calSvc: CalendarService; | ||
_d: CalendarModalOptions; | ||
_options: CalendarComponentOptions; | ||
_view: string; | ||
_calendarMonthValue: any[]; | ||
_showToggleButtons: boolean; | ||
_showMonthPicker: boolean; | ||
monthOpt: CalendarMonth; | ||
options: CalendarComponentOptions; | ||
format: string; | ||
@@ -16,7 +21,3 @@ type: 'string' | 'js-date' | 'moment' | 'time' | 'object'; | ||
monthChange: EventEmitter<any>; | ||
_d: CalendarModalOptions; | ||
_view: string; | ||
_calendarMonthValue: any[]; | ||
_showToggleButtons: boolean; | ||
_showMonthPicker: boolean; | ||
options: CalendarComponentOptions; | ||
_onChanged: Function; | ||
@@ -27,2 +28,3 @@ _onTouched: Function; | ||
ngOnInit(): void; | ||
initOpt(): void; | ||
writeValue(obj: any): void; | ||
@@ -29,0 +31,0 @@ registerOnChange(fn: any): void; |
@@ -10,5 +10,9 @@ import { Component, Input, Output, EventEmitter, forwardRef } from '@angular/core'; | ||
}; | ||
var CalendarComponent = (function () { | ||
var CalendarComponent = /** @class */ (function () { | ||
function CalendarComponent(calSvc) { | ||
this.calSvc = calSvc; | ||
this._view = 'days'; | ||
this._calendarMonthValue = [null, null]; | ||
this._showToggleButtons = true; | ||
this._showMonthPicker = true; | ||
this.format = 'YYYY-MM-DD'; | ||
@@ -19,23 +23,33 @@ this.type = 'string'; | ||
this.monthChange = new EventEmitter(); | ||
this._view = 'days'; | ||
this._calendarMonthValue = [null, null]; | ||
this._showToggleButtons = true; | ||
this._showMonthPicker = true; | ||
this._onChanged = function () { | ||
}; | ||
this._onTouched = function () { | ||
}; | ||
this._onChanged = function () { }; | ||
this._onTouched = function () { }; | ||
} | ||
Object.defineProperty(CalendarComponent.prototype, "options", { | ||
get: function () { | ||
return this._options; | ||
}, | ||
set: function (value) { | ||
this._options = value; | ||
this.initOpt(); | ||
if (this.monthOpt && this.monthOpt.original) { | ||
this.monthOpt = this.createMonth(this.monthOpt.original.time); | ||
} | ||
}, | ||
enumerable: true, | ||
configurable: true | ||
}); | ||
CalendarComponent.prototype.ionViewDidLoad = function () { | ||
}; | ||
CalendarComponent.prototype.ngOnInit = function () { | ||
if (this.options && this.options.showToggleButtons === false) { | ||
this.initOpt(); | ||
this.monthOpt = this.createMonth(new Date().getTime()); | ||
}; | ||
CalendarComponent.prototype.initOpt = function () { | ||
if (this._options && this._options.showToggleButtons === false) { | ||
this._showToggleButtons = false; | ||
} | ||
if (this.options && this.options.showMonthPicker === false) { | ||
if (this._options && this._options.showMonthPicker === false) { | ||
this._showMonthPicker = false; | ||
} | ||
this._d = this.calSvc.safeOpt(this.options || {}); | ||
// this.showToggleButtons = this.options.showToggleButtons; | ||
this.monthOpt = this.createMonth(new Date().getTime()); | ||
this._d = this.calSvc.safeOpt(this._options || {}); | ||
}; | ||
@@ -210,24 +224,24 @@ CalendarComponent.prototype.writeValue = function (obj) { | ||
}; | ||
CalendarComponent.decorators = [ | ||
{ type: Component, args: [{ | ||
selector: 'ion-calendar', | ||
providers: [ION_CAL_VALUE_ACCESSOR], | ||
template: "\n <div class=\"title\">\n <ng-template [ngIf]=\"_showMonthPicker ? _showMonthPicker || !readonly : false\" [ngIfElse]=\"title\">\n <button type=\"button\"\n ion-button\n clear\n class=\"switch-btn\"\n [disabled]=\"readonly\"\n (click)=\"switchView()\">\n {{monthOpt.original.time | date: _d.monthFormat}}\n <ion-icon *ngIf=\"!readonly\"\n class=\"arrow-dropdown\"\n [name]=\"_view === 'days' ? 'md-arrow-dropdown' : 'md-arrow-dropup'\"></ion-icon>\n </button>\n </ng-template>\n <ng-template #title>\n <div class=\"switch-btn\">\n {{monthOpt.original.time | date: _d.monthFormat}}\n </div>\n </ng-template>\n <ng-template [ngIf]=\"_showToggleButtons\">\n <button type='button' ion-button clear class=\"back\" [disabled]=\"!canBack() || readonly\" (click)=\"prev()\">\n <ion-icon name=\"ios-arrow-back\"></ion-icon>\n </button>\n <button type='button' ion-button clear class=\"forward\" [disabled]=\"!canNext() || readonly\"\n (click)=\"next()\">\n <ion-icon name=\"ios-arrow-forward\"></ion-icon>\n </button>\n </ng-template>\n </div>\n \n <ng-template [ngIf]=\"_view === 'days'\" [ngIfElse]=\"monthPicker\">\n <ion-calendar-week color=\"transparent\"\n [weekArray]=\"_d.weekdays\"\n [weekStart]=\"_d.weekStart\">\n </ion-calendar-week>\n\n <ion-calendar-month [(ngModel)]=\"_calendarMonthValue\"\n [month]=\"monthOpt\"\n [readonly]=\"readonly\"\n (onChange)=\"onChanged($event)\"\n [pickMode]=\"_d.pickMode\"\n [color]=\"_d.color\">\n </ion-calendar-month>\n </ng-template>\n\n <ng-template #monthPicker>\n <ion-calendar-month-picker [color]=\"_d.color\" \n [monthFormat]=\"_options?.monthPickerFormat\"\n (onSelect)=\"monthOnSelect($event)\"\n [month]=\"monthOpt\">\n </ion-calendar-month-picker>\n </ng-template>\n ", | ||
},] }, | ||
]; | ||
/** @nocollapse */ | ||
CalendarComponent.ctorParameters = function () { return [ | ||
{ type: CalendarService, }, | ||
]; }; | ||
CalendarComponent.propDecorators = { | ||
'format': [{ type: Input },], | ||
'type': [{ type: Input },], | ||
'readonly': [{ type: Input },], | ||
'onChange': [{ type: Output },], | ||
'monthChange': [{ type: Output },], | ||
'options': [{ type: Input },], | ||
}; | ||
return CalendarComponent; | ||
}()); | ||
export { CalendarComponent }; | ||
CalendarComponent.decorators = [ | ||
{ type: Component, args: [{ | ||
selector: 'ion-calendar', | ||
providers: [ION_CAL_VALUE_ACCESSOR], | ||
template: "\n <div class=\"title\">\n <ng-template [ngIf]=\"_showMonthPicker || !readonly\" [ngIfElse]=\"title\">\n <button type=\"button\"\n ion-button\n clear\n class=\"switch-btn\"\n [disabled]=\"readonly\"\n (click)=\"switchView()\">\n {{monthOpt.original.time | date: _d.monthFormat}}\n <ion-icon *ngIf=\"!readonly\"\n class=\"arrow-dropdown\"\n [name]=\"_view === 'days' ? 'md-arrow-dropdown' : 'md-arrow-dropup'\"></ion-icon>\n </button>\n </ng-template>\n <ng-template #title>\n <div class=\"switch-btn\">\n {{monthOpt.original.time | date: _d.monthFormat}}\n </div>\n </ng-template>\n <ng-template [ngIf]=\"_showToggleButtons\">\n <button type='button' ion-button clear class=\"back\" [disabled]=\"!canBack() || readonly\" (click)=\"prev()\">\n <ion-icon name=\"ios-arrow-back\"></ion-icon>\n </button>\n <button type='button' ion-button clear class=\"forward\" [disabled]=\"!canNext() || readonly\"\n (click)=\"next()\">\n <ion-icon name=\"ios-arrow-forward\"></ion-icon>\n </button>\n </ng-template>\n </div>\n \n <ng-template [ngIf]=\"_view === 'days'\" [ngIfElse]=\"monthPicker\">\n <ion-calendar-week color=\"transparent\"\n [weekArray]=\"_d.weekdays\"\n [weekStart]=\"_d.weekStart\">\n </ion-calendar-week>\n\n <ion-calendar-month [(ngModel)]=\"_calendarMonthValue\"\n [month]=\"monthOpt\"\n [readonly]=\"readonly\"\n (onChange)=\"onChanged($event)\"\n [pickMode]=\"_d.pickMode\"\n [color]=\"_d.color\">\n </ion-calendar-month>\n </ng-template>\n\n <ng-template #monthPicker>\n <ion-calendar-month-picker [color]=\"_d.color\" \n [monthFormat]=\"options?.monthPickerFormat\"\n (onSelect)=\"monthOnSelect($event)\"\n [month]=\"monthOpt\">\n </ion-calendar-month-picker>\n </ng-template>\n ", | ||
},] }, | ||
]; | ||
/** @nocollapse */ | ||
CalendarComponent.ctorParameters = function () { return [ | ||
{ type: CalendarService, }, | ||
]; }; | ||
CalendarComponent.propDecorators = { | ||
'options': [{ type: Input },], | ||
'format': [{ type: Input },], | ||
'type': [{ type: Input },], | ||
'readonly': [{ type: Input },], | ||
'onChange': [{ type: Output },], | ||
'monthChange': [{ type: Output },], | ||
}; | ||
//# sourceMappingURL=calendar.component.js.map |
@@ -1,1 +0,1 @@ | ||
[{"__symbolic":"module","version":3,"metadata":{"ION_CAL_VALUE_ACCESSOR":{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR"},"useExisting":{"__symbolic":"reference","name":"CalendarComponent"},"multi":true},"CalendarComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"ion-calendar","providers":[{"__symbolic":"reference","name":"ION_CAL_VALUE_ACCESSOR"}],"template":"\n <div class=\"title\">\n <ng-template [ngIf]=\"_showMonthPicker || !readonly\" [ngIfElse]=\"title\">\n <button type=\"button\"\n ion-button\n clear\n class=\"switch-btn\"\n [disabled]=\"readonly\"\n (click)=\"switchView()\">\n {{monthOpt.original.time | date: _d.monthFormat}}\n <ion-icon *ngIf=\"!readonly\"\n class=\"arrow-dropdown\"\n [name]=\"_view === 'days' ? 'md-arrow-dropdown' : 'md-arrow-dropup'\"></ion-icon>\n </button>\n </ng-template>\n <ng-template #title>\n <div class=\"switch-btn\">\n {{monthOpt.original.time | date: _d.monthFormat}}\n </div>\n </ng-template>\n <ng-template [ngIf]=\"_showToggleButtons\">\n <button type='button' ion-button clear class=\"back\" [disabled]=\"!canBack() || readonly\" (click)=\"prev()\">\n <ion-icon name=\"ios-arrow-back\"></ion-icon>\n </button>\n <button type='button' ion-button clear class=\"forward\" [disabled]=\"!canNext() || readonly\"\n (click)=\"next()\">\n <ion-icon name=\"ios-arrow-forward\"></ion-icon>\n </button>\n </ng-template>\n </div>\n \n <ng-template [ngIf]=\"_view === 'days'\" [ngIfElse]=\"monthPicker\">\n <ion-calendar-week color=\"transparent\"\n [weekArray]=\"_d.weekdays\"\n [weekStart]=\"_d.weekStart\">\n </ion-calendar-week>\n\n <ion-calendar-month [(ngModel)]=\"_calendarMonthValue\"\n [month]=\"monthOpt\"\n [readonly]=\"readonly\"\n (onChange)=\"onChanged($event)\"\n [pickMode]=\"_d.pickMode\"\n [color]=\"_d.color\">\n </ion-calendar-month>\n </ng-template>\n\n <ng-template #monthPicker>\n <ion-calendar-month-picker [color]=\"_d.color\" \n [monthFormat]=\"options?.monthPickerFormat\"\n (onSelect)=\"monthOnSelect($event)\"\n [month]=\"monthOpt\">\n </ion-calendar-month-picker>\n </ng-template>\n "}]}],"members":{"options":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"format":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"type":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"readonly":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"onChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"monthChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../services/calendar.service","name":"CalendarService"}]}],"ionViewDidLoad":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"createMonth":[{"__symbolic":"method"}],"switchView":[{"__symbolic":"method"}],"prev":[{"__symbolic":"method"}],"next":[{"__symbolic":"method"}],"prevYear":[{"__symbolic":"method"}],"nextYear":[{"__symbolic":"method"}],"nextMonth":[{"__symbolic":"method"}],"canNext":[{"__symbolic":"method"}],"backMonth":[{"__symbolic":"method"}],"canBack":[{"__symbolic":"method"}],"monthOnSelect":[{"__symbolic":"method"}],"onChanged":[{"__symbolic":"method"}],"_writeValue":[{"__symbolic":"method"}],"_createCalendarDay":[{"__symbolic":"method"}],"_handleType":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"ION_CAL_VALUE_ACCESSOR":{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR"},"useExisting":{"__symbolic":"reference","name":"CalendarComponent"},"multi":true},"CalendarComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"ion-calendar","providers":[{"__symbolic":"reference","name":"ION_CAL_VALUE_ACCESSOR"}],"template":"\n <div class=\"title\">\n <ng-template [ngIf]=\"_showMonthPicker || !readonly\" [ngIfElse]=\"title\">\n <button type=\"button\"\n ion-button\n clear\n class=\"switch-btn\"\n [disabled]=\"readonly\"\n (click)=\"switchView()\">\n {{monthOpt.original.time | date: _d.monthFormat}}\n <ion-icon *ngIf=\"!readonly\"\n class=\"arrow-dropdown\"\n [name]=\"_view === 'days' ? 'md-arrow-dropdown' : 'md-arrow-dropup'\"></ion-icon>\n </button>\n </ng-template>\n <ng-template #title>\n <div class=\"switch-btn\">\n {{monthOpt.original.time | date: _d.monthFormat}}\n </div>\n </ng-template>\n <ng-template [ngIf]=\"_showToggleButtons\">\n <button type='button' ion-button clear class=\"back\" [disabled]=\"!canBack() || readonly\" (click)=\"prev()\">\n <ion-icon name=\"ios-arrow-back\"></ion-icon>\n </button>\n <button type='button' ion-button clear class=\"forward\" [disabled]=\"!canNext() || readonly\"\n (click)=\"next()\">\n <ion-icon name=\"ios-arrow-forward\"></ion-icon>\n </button>\n </ng-template>\n </div>\n \n <ng-template [ngIf]=\"_view === 'days'\" [ngIfElse]=\"monthPicker\">\n <ion-calendar-week color=\"transparent\"\n [weekArray]=\"_d.weekdays\"\n [weekStart]=\"_d.weekStart\">\n </ion-calendar-week>\n\n <ion-calendar-month [(ngModel)]=\"_calendarMonthValue\"\n [month]=\"monthOpt\"\n [readonly]=\"readonly\"\n (onChange)=\"onChanged($event)\"\n [pickMode]=\"_d.pickMode\"\n [color]=\"_d.color\">\n </ion-calendar-month>\n </ng-template>\n\n <ng-template #monthPicker>\n <ion-calendar-month-picker [color]=\"_d.color\" \n [monthFormat]=\"options?.monthPickerFormat\"\n (onSelect)=\"monthOnSelect($event)\"\n [month]=\"monthOpt\">\n </ion-calendar-month-picker>\n </ng-template>\n "}]}],"members":{"options":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"format":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"type":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"readonly":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"onChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"monthChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../services/calendar.service","name":"CalendarService"}]}],"ionViewDidLoad":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"createMonth":[{"__symbolic":"method"}],"switchView":[{"__symbolic":"method"}],"prev":[{"__symbolic":"method"}],"next":[{"__symbolic":"method"}],"prevYear":[{"__symbolic":"method"}],"nextYear":[{"__symbolic":"method"}],"nextMonth":[{"__symbolic":"method"}],"canNext":[{"__symbolic":"method"}],"backMonth":[{"__symbolic":"method"}],"canBack":[{"__symbolic":"method"}],"monthOnSelect":[{"__symbolic":"method"}],"onChanged":[{"__symbolic":"method"}],"_writeValue":[{"__symbolic":"method"}],"_createCalendarDay":[{"__symbolic":"method"}],"_handleType":[{"__symbolic":"method"}]}}}}] | ||
[{"__symbolic":"module","version":3,"metadata":{"ION_CAL_VALUE_ACCESSOR":{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR"},"useExisting":{"__symbolic":"reference","name":"CalendarComponent"},"multi":true},"CalendarComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"ion-calendar","providers":[{"__symbolic":"reference","name":"ION_CAL_VALUE_ACCESSOR"}],"template":"\n <div class=\"title\">\n <ng-template [ngIf]=\"_showMonthPicker ? _showMonthPicker || !readonly : false\" [ngIfElse]=\"title\">\n <button type=\"button\"\n ion-button\n clear\n class=\"switch-btn\"\n [disabled]=\"readonly\"\n (click)=\"switchView()\">\n {{monthOpt.original.time | date: _d.monthFormat}}\n <ion-icon *ngIf=\"!readonly\"\n class=\"arrow-dropdown\"\n [name]=\"_view === 'days' ? 'md-arrow-dropdown' : 'md-arrow-dropup'\"></ion-icon>\n </button>\n </ng-template>\n <ng-template #title>\n <div class=\"switch-btn\">\n {{monthOpt.original.time | date: _d.monthFormat}}\n </div>\n </ng-template>\n <ng-template [ngIf]=\"_showToggleButtons\">\n <button type='button' ion-button clear class=\"back\" [disabled]=\"!canBack() || readonly\" (click)=\"prev()\">\n <ion-icon name=\"ios-arrow-back\"></ion-icon>\n </button>\n <button type='button' ion-button clear class=\"forward\" [disabled]=\"!canNext() || readonly\"\n (click)=\"next()\">\n <ion-icon name=\"ios-arrow-forward\"></ion-icon>\n </button>\n </ng-template>\n </div>\n \n <ng-template [ngIf]=\"_view === 'days'\" [ngIfElse]=\"monthPicker\">\n <ion-calendar-week color=\"transparent\"\n [weekArray]=\"_d.weekdays\"\n [weekStart]=\"_d.weekStart\">\n </ion-calendar-week>\n\n <ion-calendar-month [(ngModel)]=\"_calendarMonthValue\"\n [month]=\"monthOpt\"\n [readonly]=\"readonly\"\n (onChange)=\"onChanged($event)\"\n [pickMode]=\"_d.pickMode\"\n [color]=\"_d.color\">\n </ion-calendar-month>\n </ng-template>\n\n <ng-template #monthPicker>\n <ion-calendar-month-picker [color]=\"_d.color\" \n [monthFormat]=\"_options?.monthPickerFormat\"\n (onSelect)=\"monthOnSelect($event)\"\n [month]=\"monthOpt\">\n </ion-calendar-month-picker>\n </ng-template>\n "}]}],"members":{"format":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"type":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"readonly":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"onChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"monthChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"options":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../services/calendar.service","name":"CalendarService"}]}],"ionViewDidLoad":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}],"initOpt":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"createMonth":[{"__symbolic":"method"}],"switchView":[{"__symbolic":"method"}],"prev":[{"__symbolic":"method"}],"next":[{"__symbolic":"method"}],"prevYear":[{"__symbolic":"method"}],"nextYear":[{"__symbolic":"method"}],"nextMonth":[{"__symbolic":"method"}],"canNext":[{"__symbolic":"method"}],"backMonth":[{"__symbolic":"method"}],"canBack":[{"__symbolic":"method"}],"monthOnSelect":[{"__symbolic":"method"}],"onChanged":[{"__symbolic":"method"}],"_writeValue":[{"__symbolic":"method"}],"_createCalendarDay":[{"__symbolic":"method"}],"_handleType":[{"__symbolic":"method"}]}}}},{"__symbolic":"module","version":1,"metadata":{"ION_CAL_VALUE_ACCESSOR":{"provide":{"__symbolic":"reference","module":"@angular/forms","name":"NG_VALUE_ACCESSOR"},"useExisting":{"__symbolic":"reference","name":"CalendarComponent"},"multi":true},"CalendarComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component"},"arguments":[{"selector":"ion-calendar","providers":[{"__symbolic":"reference","name":"ION_CAL_VALUE_ACCESSOR"}],"template":"\n <div class=\"title\">\n <ng-template [ngIf]=\"_showMonthPicker ? _showMonthPicker || !readonly : false\" [ngIfElse]=\"title\">\n <button type=\"button\"\n ion-button\n clear\n class=\"switch-btn\"\n [disabled]=\"readonly\"\n (click)=\"switchView()\">\n {{monthOpt.original.time | date: _d.monthFormat}}\n <ion-icon *ngIf=\"!readonly\"\n class=\"arrow-dropdown\"\n [name]=\"_view === 'days' ? 'md-arrow-dropdown' : 'md-arrow-dropup'\"></ion-icon>\n </button>\n </ng-template>\n <ng-template #title>\n <div class=\"switch-btn\">\n {{monthOpt.original.time | date: _d.monthFormat}}\n </div>\n </ng-template>\n <ng-template [ngIf]=\"_showToggleButtons\">\n <button type='button' ion-button clear class=\"back\" [disabled]=\"!canBack() || readonly\" (click)=\"prev()\">\n <ion-icon name=\"ios-arrow-back\"></ion-icon>\n </button>\n <button type='button' ion-button clear class=\"forward\" [disabled]=\"!canNext() || readonly\"\n (click)=\"next()\">\n <ion-icon name=\"ios-arrow-forward\"></ion-icon>\n </button>\n </ng-template>\n </div>\n \n <ng-template [ngIf]=\"_view === 'days'\" [ngIfElse]=\"monthPicker\">\n <ion-calendar-week color=\"transparent\"\n [weekArray]=\"_d.weekdays\"\n [weekStart]=\"_d.weekStart\">\n </ion-calendar-week>\n\n <ion-calendar-month [(ngModel)]=\"_calendarMonthValue\"\n [month]=\"monthOpt\"\n [readonly]=\"readonly\"\n (onChange)=\"onChanged($event)\"\n [pickMode]=\"_d.pickMode\"\n [color]=\"_d.color\">\n </ion-calendar-month>\n </ng-template>\n\n <ng-template #monthPicker>\n <ion-calendar-month-picker [color]=\"_d.color\" \n [monthFormat]=\"_options?.monthPickerFormat\"\n (onSelect)=\"monthOnSelect($event)\"\n [month]=\"monthOpt\">\n </ion-calendar-month-picker>\n </ng-template>\n "}]}],"members":{"format":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"type":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"readonly":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"onChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"monthChange":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output"}}]}],"options":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input"}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"../services/calendar.service","name":"CalendarService"}]}],"ionViewDidLoad":[{"__symbolic":"method"}],"ngOnInit":[{"__symbolic":"method"}],"initOpt":[{"__symbolic":"method"}],"writeValue":[{"__symbolic":"method"}],"registerOnChange":[{"__symbolic":"method"}],"registerOnTouched":[{"__symbolic":"method"}],"createMonth":[{"__symbolic":"method"}],"switchView":[{"__symbolic":"method"}],"prev":[{"__symbolic":"method"}],"next":[{"__symbolic":"method"}],"prevYear":[{"__symbolic":"method"}],"nextYear":[{"__symbolic":"method"}],"nextMonth":[{"__symbolic":"method"}],"canNext":[{"__symbolic":"method"}],"backMonth":[{"__symbolic":"method"}],"canBack":[{"__symbolic":"method"}],"monthOnSelect":[{"__symbolic":"method"}],"onChanged":[{"__symbolic":"method"}],"_writeValue":[{"__symbolic":"method"}],"_createCalendarDay":[{"__symbolic":"method"}],"_handleType":[{"__symbolic":"method"}]}}}}] |
@@ -5,3 +5,3 @@ import { Component, ViewChild, ElementRef, ChangeDetectorRef, Renderer } from '@angular/core'; | ||
import * as moment from 'moment'; | ||
var CalendarModal = (function () { | ||
var CalendarModal = /** @class */ (function () { | ||
function CalendarModal(_renderer, _elementRef, params, viewCtrl, ref, calSvc) { | ||
@@ -269,24 +269,24 @@ this._renderer = _renderer; | ||
}; | ||
CalendarModal.decorators = [ | ||
{ type: Component, args: [{ | ||
selector: 'ion-calendar-modal', | ||
template: "\n <ion-header>\n\n <ion-navbar [color]=\"_color\">\n\n <!--<ion-buttons start [hidden]=\"!showYearPicker\">-->\n <!--<ion-select [(ngModel)]=\"year\" (ngModelChange)=\"changedYearSelection()\" interface=\"popover\">-->\n <!--<ion-option *ngFor=\"let y of years\" value=\"{{y}}\">{{y}}</ion-option>-->\n <!--</ion-select>-->\n <!--</ion-buttons>-->\n\n <ion-buttons start>\n <button type='button' ion-button icon-only clear (click)=\"onCancel()\">\n <span *ngIf=\"closeLabel !== '' && !closeIcon\">{{closeLabel}}</span>\n <ion-icon *ngIf=\"closeIcon\" name=\"close\"></ion-icon>\n </button>\n </ion-buttons>\n\n <ion-title>{{title}}</ion-title>\n\n <ion-buttons end>\n <button type='button' ion-button icon-only *ngIf=\"!_d.autoDone\" clear [disabled]=\"!canDone()\" (click)=\"done()\">\n <span *ngIf=\"doneLabel !== '' && !doneIcon\">{{doneLabel}}</span>\n <ion-icon *ngIf=\"doneIcon\" name=\"checkmark\"></ion-icon>\n </button>\n\n </ion-buttons>\n\n </ion-navbar>\n\n <ion-calendar-week\n [color]=\"_color\"\n [weekArray]=\"weekdays\"\n [weekStart]=\"weekStart\">\n </ion-calendar-week>\n\n </ion-header>\n\n <ion-content (ionScroll)=\"onScroll($event)\" class=\"calendar-page\"\n [ngClass]=\"{'multi-selection': options.pickMode === 'multi'}\">\n\n <div #months>\n <ng-template ngFor let-month [ngForOf]=\"calendarMonths\" [ngForTrackBy]=\"trackByTime\" let-i=\"index\">\n <div class=\"month-box\" [attr.id]=\"'month-' + i\">\n <h4 class=\"text-center month-title\">{{month.original.date | date:monthFormatFilterStr}}</h4>\n <ion-calendar-month [month]=\"month\"\n [pickMode]=\"options.pickMode\"\n [isSaveHistory]=\"isSaveHistory\"\n [id]=\"_id\"\n [color]=\"_color\"\n (onChange)=\"onChange($event)\"\n [(ngModel)]=\"datesTemp\">\n\n </ion-calendar-month>\n </div>\n </ng-template>\n\n </div>\n\n <ion-infinite-scroll (ionInfinite)=\"nextMonth($event)\">\n <ion-infinite-scroll-content></ion-infinite-scroll-content>\n </ion-infinite-scroll>\n\n </ion-content>\n ", | ||
},] }, | ||
]; | ||
/** @nocollapse */ | ||
CalendarModal.ctorParameters = function () { return [ | ||
{ type: Renderer, }, | ||
{ type: ElementRef, }, | ||
{ type: NavParams, }, | ||
{ type: ViewController, }, | ||
{ type: ChangeDetectorRef, }, | ||
{ type: CalendarService, }, | ||
]; }; | ||
CalendarModal.propDecorators = { | ||
'content': [{ type: ViewChild, args: [Content,] },], | ||
'monthsEle': [{ type: ViewChild, args: ['months',] },], | ||
}; | ||
return CalendarModal; | ||
}()); | ||
export { CalendarModal }; | ||
CalendarModal.decorators = [ | ||
{ type: Component, args: [{ | ||
selector: 'ion-calendar-modal', | ||
template: "\n <ion-header>\n\n <ion-navbar [color]=\"_color\">\n\n <!--<ion-buttons start [hidden]=\"!showYearPicker\">-->\n <!--<ion-select [(ngModel)]=\"year\" (ngModelChange)=\"changedYearSelection()\" interface=\"popover\">-->\n <!--<ion-option *ngFor=\"let y of years\" value=\"{{y}}\">{{y}}</ion-option>-->\n <!--</ion-select>-->\n <!--</ion-buttons>-->\n\n <ion-buttons start>\n <button type='button' ion-button icon-only clear (click)=\"onCancel()\">\n <span *ngIf=\"closeLabel !== '' && !closeIcon\">{{closeLabel}}</span>\n <ion-icon *ngIf=\"closeIcon\" name=\"close\"></ion-icon>\n </button>\n </ion-buttons>\n\n <ion-title>{{title}}</ion-title>\n\n <ion-buttons end>\n <button type='button' ion-button icon-only *ngIf=\"!_d.autoDone\" clear [disabled]=\"!canDone()\" (click)=\"done()\">\n <span *ngIf=\"doneLabel !== '' && !doneIcon\">{{doneLabel}}</span>\n <ion-icon *ngIf=\"doneIcon\" name=\"checkmark\"></ion-icon>\n </button>\n\n </ion-buttons>\n\n </ion-navbar>\n\n <ion-calendar-week\n [color]=\"_color\"\n [weekArray]=\"weekdays\"\n [weekStart]=\"weekStart\">\n </ion-calendar-week>\n\n </ion-header>\n\n <ion-content (ionScroll)=\"onScroll($event)\" class=\"calendar-page\"\n [ngClass]=\"{'multi-selection': options.pickMode === 'multi'}\">\n\n <div #months>\n <ng-template ngFor let-month [ngForOf]=\"calendarMonths\" [ngForTrackBy]=\"trackByTime\" let-i=\"index\">\n <div class=\"month-box\" [attr.id]=\"'month-' + i\">\n <h4 class=\"text-center month-title\">{{month.original.date | date:monthFormatFilterStr}}</h4>\n <ion-calendar-month [month]=\"month\"\n [pickMode]=\"options.pickMode\"\n [isSaveHistory]=\"isSaveHistory\"\n [id]=\"_id\"\n [color]=\"_color\"\n (onChange)=\"onChange($event)\"\n [(ngModel)]=\"datesTemp\">\n\n </ion-calendar-month>\n </div>\n </ng-template>\n\n </div>\n\n <ion-infinite-scroll (ionInfinite)=\"nextMonth($event)\">\n <ion-infinite-scroll-content></ion-infinite-scroll-content>\n </ion-infinite-scroll>\n\n </ion-content>\n ", | ||
},] }, | ||
]; | ||
/** @nocollapse */ | ||
CalendarModal.ctorParameters = function () { return [ | ||
{ type: Renderer, }, | ||
{ type: ElementRef, }, | ||
{ type: NavParams, }, | ||
{ type: ViewController, }, | ||
{ type: ChangeDetectorRef, }, | ||
{ type: CalendarService, }, | ||
]; }; | ||
CalendarModal.propDecorators = { | ||
'content': [{ type: ViewChild, args: [Content,] },], | ||
'monthsEle': [{ type: ViewChild, args: ['months',] },], | ||
}; | ||
//# sourceMappingURL=calendar.modal.js.map |
import { Component, EventEmitter, Input, Output } from '@angular/core'; | ||
var MonthPickerComponent = (function () { | ||
var MonthPickerComponent = /** @class */ (function () { | ||
function MonthPickerComponent() { | ||
@@ -24,19 +24,19 @@ this.color = 'primary'; | ||
}; | ||
MonthPickerComponent.decorators = [ | ||
{ type: Component, args: [{ | ||
selector: 'ion-calendar-month-picker', | ||
template: "\n <div [class]=\"'month-picker ' + color\">\n <div class=\"month-packer-item\"\n [class.this-month]=\"\n i === _thisMonth.getMonth() \n && month.original.year === _thisMonth.getFullYear()\"\n *ngFor=\"let item of _monthFormat; let i = index\">\n <button type=\"button\" (click)=\"_onSelect(i)\">{{item}}</button>\n </div>\n </div>\n ", | ||
},] }, | ||
]; | ||
/** @nocollapse */ | ||
MonthPickerComponent.ctorParameters = function () { return []; }; | ||
MonthPickerComponent.propDecorators = { | ||
'month': [{ type: Input },], | ||
'color': [{ type: Input },], | ||
'onSelect': [{ type: Output },], | ||
'monthFormat': [{ type: Input },], | ||
}; | ||
return MonthPickerComponent; | ||
}()); | ||
export { MonthPickerComponent }; | ||
MonthPickerComponent.decorators = [ | ||
{ type: Component, args: [{ | ||
selector: 'ion-calendar-month-picker', | ||
template: "\n <div [class]=\"'month-picker ' + color\">\n <div class=\"month-packer-item\"\n [class.this-month]=\"\n i === _thisMonth.getMonth() \n && month.original.year === _thisMonth.getFullYear()\"\n *ngFor=\"let item of _monthFormat; let i = index\">\n <button type=\"button\" (click)=\"_onSelect(i)\">{{item}}</button>\n </div>\n </div>\n ", | ||
},] }, | ||
]; | ||
/** @nocollapse */ | ||
MonthPickerComponent.ctorParameters = function () { return []; }; | ||
MonthPickerComponent.propDecorators = { | ||
'month': [{ type: Input },], | ||
'color': [{ type: Input },], | ||
'onSelect': [{ type: Output },], | ||
'monthFormat': [{ type: Input },], | ||
}; | ||
//# sourceMappingURL=month-picker.component.js.map |
@@ -8,3 +8,3 @@ import { Component, ChangeDetectorRef, Input, Output, EventEmitter, forwardRef, } from '@angular/core'; | ||
}; | ||
var MonthComponent = (function () { | ||
var MonthComponent = /** @class */ (function () { | ||
function MonthComponent(ref) { | ||
@@ -122,25 +122,25 @@ this.ref = ref; | ||
}; | ||
MonthComponent.decorators = [ | ||
{ type: Component, args: [{ | ||
selector: 'ion-calendar-month', | ||
providers: [MONTH_VALUE_ACCESSOR], | ||
template: "\n <div [class]=\"color\">\n <ng-template [ngIf]=\"pickMode !== 'range'\" [ngIfElse]=\"rangeBox\">\n <div class=\"days-box\">\n <ng-template ngFor let-day [ngForOf]=\"month.days\" [ngForTrackBy]=\"trackByTime\">\n <div class=\"days\">\n <ng-container *ngIf=\"day\">\n <button type='button'\n [class]=\"'days-btn ' + day.cssClass\"\n [class.today]=\"day.isToday\"\n (click)=\"onSelected(day)\"\n [class.marked]=\"day.marked\"\n [class.on-selected]=\"isSelected(day.time)\"\n [disabled]=\"day.disable\">\n <p>{{day.title}}</p>\n <small *ngIf=\"day.subTitle\">{{day?.subTitle}}</small>\n </button>\n </ng-container>\n </div>\n </ng-template>\n </div>\n </ng-template>\n\n <ng-template #rangeBox>\n <div class=\"days-box\">\n <ng-template ngFor let-day [ngForOf]=\"month.days\" [ngForTrackBy]=\"trackByTime\">\n <div class=\"days\"\n [class.startSelection]=\"isStartSelection(day)\"\n [class.endSelection]=\"isEndSelection(day)\"\n [class.between]=\"isBetween(day)\">\n <ng-container *ngIf=\"day\">\n <button type='button'\n [class]=\"'days-btn ' + day.cssClass\"\n [class.today]=\"day.isToday\"\n (click)=\"onSelected(day)\"\n [class.marked]=\"day.marked\"\n [class.on-selected]=\"isSelected(day.time)\"\n [disabled]=\"day.disable\">\n <p>{{day.title}}</p>\n <small *ngIf=\"day.subTitle\">{{day?.subTitle}}</small>\n </button>\n </ng-container>\n\n </div>\n </ng-template>\n </div>\n </ng-template>\n </div>\n ", | ||
},] }, | ||
]; | ||
/** @nocollapse */ | ||
MonthComponent.ctorParameters = function () { return [ | ||
{ type: ChangeDetectorRef, }, | ||
]; }; | ||
MonthComponent.propDecorators = { | ||
'month': [{ type: Input },], | ||
'pickMode': [{ type: Input },], | ||
'isSaveHistory': [{ type: Input },], | ||
'id': [{ type: Input },], | ||
'readonly': [{ type: Input },], | ||
'color': [{ type: Input },], | ||
'onChange': [{ type: Output },], | ||
}; | ||
return MonthComponent; | ||
}()); | ||
export { MonthComponent }; | ||
MonthComponent.decorators = [ | ||
{ type: Component, args: [{ | ||
selector: 'ion-calendar-month', | ||
providers: [MONTH_VALUE_ACCESSOR], | ||
template: "\n <div [class]=\"color\">\n <ng-template [ngIf]=\"pickMode !== 'range'\" [ngIfElse]=\"rangeBox\">\n <div class=\"days-box\">\n <ng-template ngFor let-day [ngForOf]=\"month.days\" [ngForTrackBy]=\"trackByTime\">\n <div class=\"days\">\n <ng-container *ngIf=\"day\">\n <button type='button'\n [class]=\"'days-btn ' + day.cssClass\"\n [class.today]=\"day.isToday\"\n (click)=\"onSelected(day)\"\n [class.marked]=\"day.marked\"\n [class.on-selected]=\"isSelected(day.time)\"\n [disabled]=\"day.disable\">\n <p>{{day.title}}</p>\n <small *ngIf=\"day.subTitle\">{{day?.subTitle}}</small>\n </button>\n </ng-container>\n </div>\n </ng-template>\n </div>\n </ng-template>\n\n <ng-template #rangeBox>\n <div class=\"days-box\">\n <ng-template ngFor let-day [ngForOf]=\"month.days\" [ngForTrackBy]=\"trackByTime\">\n <div class=\"days\"\n [class.startSelection]=\"isStartSelection(day)\"\n [class.endSelection]=\"isEndSelection(day)\"\n [class.between]=\"isBetween(day)\">\n <ng-container *ngIf=\"day\">\n <button type='button'\n [class]=\"'days-btn ' + day.cssClass\"\n [class.today]=\"day.isToday\"\n (click)=\"onSelected(day)\"\n [class.marked]=\"day.marked\"\n [class.on-selected]=\"isSelected(day.time)\"\n [disabled]=\"day.disable\">\n <p>{{day.title}}</p>\n <small *ngIf=\"day.subTitle\">{{day?.subTitle}}</small>\n </button>\n </ng-container>\n\n </div>\n </ng-template>\n </div>\n </ng-template>\n </div>\n ", | ||
},] }, | ||
]; | ||
/** @nocollapse */ | ||
MonthComponent.ctorParameters = function () { return [ | ||
{ type: ChangeDetectorRef, }, | ||
]; }; | ||
MonthComponent.propDecorators = { | ||
'month': [{ type: Input },], | ||
'pickMode': [{ type: Input },], | ||
'isSaveHistory': [{ type: Input },], | ||
'id': [{ type: Input },], | ||
'readonly': [{ type: Input },], | ||
'color': [{ type: Input },], | ||
'onChange': [{ type: Output },], | ||
}; | ||
//# sourceMappingURL=month.component.js.map |
import { Injectable } from '@angular/core'; | ||
import { isBoolean } from "ionic-angular/util/util"; | ||
import * as moment from 'moment'; | ||
var CalendarService = (function () { | ||
var CalendarService = /** @class */ (function () { | ||
function CalendarService() { | ||
@@ -198,10 +198,10 @@ } | ||
}; | ||
CalendarService.decorators = [ | ||
{ type: Injectable }, | ||
]; | ||
/** @nocollapse */ | ||
CalendarService.ctorParameters = function () { return []; }; | ||
return CalendarService; | ||
}()); | ||
export { CalendarService }; | ||
CalendarService.decorators = [ | ||
{ type: Injectable }, | ||
]; | ||
/** @nocollapse */ | ||
CalendarService.ctorParameters = function () { return []; }; | ||
//# sourceMappingURL=calendar.service.js.map |
{ | ||
"name": "ion2-calendar", | ||
"version": "2.0.8", | ||
"version": "2.0.9", | ||
"description": "A date picker component for ionic2 ", | ||
@@ -20,23 +20,23 @@ "main": "./dist/index.js", | ||
"devDependencies": { | ||
"@angular/common": "4.4.3", | ||
"@angular/compiler": "4.4.3", | ||
"@angular/compiler-cli": "4.4.3", | ||
"@angular/core": "4.4.3", | ||
"@angular/forms": "4.4.3", | ||
"@angular/http": "4.4.3", | ||
"@angular/platform-browser": "4.4.3", | ||
"@angular/platform-browser-dynamic": "4.4.3", | ||
"@ionic-native/core": "4.3.0", | ||
"@ionic-native/splash-screen": "4.3.0", | ||
"@ionic-native/status-bar": "4.3.0", | ||
"@ionic/storage": "2.0.1", | ||
"gulp": "^3.9.1", | ||
"moment": "^2.18.1", | ||
"typescript": "^2.0.9", | ||
"tslint": "^5.3.2", | ||
"@angular/common": "4.1.2", | ||
"@angular/compiler": "4.1.2", | ||
"@angular/compiler-cli": "4.1.2", | ||
"@angular/core": "4.1.2", | ||
"@angular/forms": "4.1.2", | ||
"@angular/http": "4.1.2", | ||
"@angular/platform-browser": "4.1.2", | ||
"@angular/platform-browser-dynamic": "4.1.2", | ||
"@ionic-native/core": "3.6.1", | ||
"@ionic-native/splash-screen": "3.6.1", | ||
"@ionic-native/status-bar": "3.6.1", | ||
"@ionic/storage": "2.0.1", | ||
"ionic-angular": "3.3.0", | ||
"ionic-angular": "3.7.1", | ||
"ionicons": "3.0.0", | ||
"rxjs": "5.1.1", | ||
"moment": "^2.19.1", | ||
"rxjs": "5.4.3", | ||
"sw-toolbox": "3.6.0", | ||
"tslint": "^5.3.2", | ||
"tslint-eslint-rules": "^4.1.1", | ||
"typescript": "^2.5.3", | ||
"zone.js": "0.8.10" | ||
@@ -53,4 +53,4 @@ }, | ||
"dependencies": { | ||
"moment": "^2.18.1" | ||
"moment": "^2.19.1" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
2136907
135
1673
Updatedmoment@^2.19.1