New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

aurelia-bootstrap-datetimepicker

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

aurelia-bootstrap-datetimepicker - npm Package Compare versions

Comparing version 0.3.2 to 0.3.3

187

dist/amd/abp-datetime-picker.js

@@ -68,5 +68,5 @@ define(['exports', 'aurelia-framework', 'moment', 'jquery', 'eonasdan-bootstrap-datetimepicker'], function (exports, _aureliaFramework, _moment, _jquery) {

var _dec, _dec2, _dec3, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28, _descriptor29, _descriptor30, _descriptor31, _descriptor32, _descriptor33, _descriptor34, _descriptor35, _descriptor36, _descriptor37, _descriptor38;
var _dec, _dec2, _dec3, _dec4, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28, _descriptor29, _descriptor30, _descriptor31, _descriptor32, _descriptor33, _descriptor34, _descriptor35, _descriptor36, _descriptor37, _descriptor38, _descriptor39, _descriptor40, _descriptor41, _descriptor42, _descriptor43, _descriptor44;
var AbpDatetimePickerCustomElement = exports.AbpDatetimePickerCustomElement = (_dec = (0, _aureliaFramework.inject)(Element), _dec2 = (0, _aureliaFramework.bindable)({ defaultBindingMode: _aureliaFramework.bindingMode.twoWay }), _dec3 = (0, _aureliaFramework.bindable)({ defaultBindingMode: _aureliaFramework.bindingMode.twoWay }), _dec(_class = (_class2 = function () {
var AbpDatetimePickerCustomElement = exports.AbpDatetimePickerCustomElement = (_dec = (0, _aureliaFramework.inject)(Element), _dec2 = (0, _aureliaFramework.bindable)({ defaultBindingMode: _aureliaFramework.bindingMode.twoWay }), _dec3 = (0, _aureliaFramework.bindable)({ defaultBindingMode: _aureliaFramework.bindingMode.twoWay }), _dec4 = (0, _aureliaFramework.bindable)({ defaultBindingMode: _aureliaFramework.bindingMode.twoWay }), _dec(_class = (_class2 = function () {
function AbpDatetimePickerCustomElement(elm) {

@@ -77,76 +77,88 @@ _classCallCheck(this, AbpDatetimePickerCustomElement);

_initDefineProp(this, 'value', _descriptor2, this);
_initDefineProp(this, 'model', _descriptor2, this);
_initDefineProp(this, 'iconSet', _descriptor3, this);
_initDefineProp(this, 'value', _descriptor3, this);
_initDefineProp(this, 'allowInputToggle', _descriptor4, this);
_initDefineProp(this, 'iconBase', _descriptor4, this);
_initDefineProp(this, 'calendarWeeks', _descriptor5, this);
_initDefineProp(this, 'allowInputToggle', _descriptor5, this);
_initDefineProp(this, 'collapse', _descriptor6, this);
_initDefineProp(this, 'calendarWeeks', _descriptor6, this);
_initDefineProp(this, 'daysOfWeekDisabled', _descriptor7, this);
_initDefineProp(this, 'collapse', _descriptor7, this);
_initDefineProp(this, 'dayViewHeaderFormat', _descriptor8, this);
_initDefineProp(this, 'daysOfWeekDisabled', _descriptor8, this);
_initDefineProp(this, 'debug', _descriptor9, this);
_initDefineProp(this, 'dayViewHeaderFormat', _descriptor9, this);
_initDefineProp(this, 'defaultDate', _descriptor10, this);
_initDefineProp(this, 'debug', _descriptor10, this);
_initDefineProp(this, 'disabledDates', _descriptor11, this);
_initDefineProp(this, 'defaultDate', _descriptor11, this);
_initDefineProp(this, 'disabledHours', _descriptor12, this);
_initDefineProp(this, 'disabledDates', _descriptor12, this);
_initDefineProp(this, 'disabledTimeIntervals', _descriptor13, this);
_initDefineProp(this, 'disabledHours', _descriptor13, this);
_initDefineProp(this, 'enabledDates', _descriptor14, this);
_initDefineProp(this, 'disabledTimeIntervals', _descriptor14, this);
_initDefineProp(this, 'enabledHours', _descriptor15, this);
_initDefineProp(this, 'enabledDates', _descriptor15, this);
_initDefineProp(this, 'extraFormats', _descriptor16, this);
_initDefineProp(this, 'enabledHours', _descriptor16, this);
_initDefineProp(this, 'focusOnShow', _descriptor17, this);
_initDefineProp(this, 'extraFormats', _descriptor17, this);
_initDefineProp(this, 'format', _descriptor18, this);
_initDefineProp(this, 'focusOnShow', _descriptor18, this);
_initDefineProp(this, 'icons', _descriptor19, this);
_initDefineProp(this, 'format', _descriptor19, this);
_initDefineProp(this, 'ignoreReadonly', _descriptor20, this);
_initDefineProp(this, 'icons', _descriptor20, this);
_initDefineProp(this, 'keepInvalid', _descriptor21, this);
_initDefineProp(this, 'ignoreReadonly', _descriptor21, this);
_initDefineProp(this, 'keepOpen', _descriptor22, this);
_initDefineProp(this, 'keepInvalid', _descriptor22, this);
_initDefineProp(this, 'inline', _descriptor23, this);
_initDefineProp(this, 'keepOpen', _descriptor23, this);
_initDefineProp(this, 'locale', _descriptor24, this);
_initDefineProp(this, 'inline', _descriptor24, this);
_initDefineProp(this, 'maxDate', _descriptor25, this);
_initDefineProp(this, 'locale', _descriptor25, this);
_initDefineProp(this, 'minDate', _descriptor26, this);
_initDefineProp(this, 'maxDate', _descriptor26, this);
_initDefineProp(this, 'showClear', _descriptor27, this);
_initDefineProp(this, 'minDate', _descriptor27, this);
_initDefineProp(this, 'showClose', _descriptor28, this);
_initDefineProp(this, 'showClear', _descriptor28, this);
_initDefineProp(this, 'showTodayButton', _descriptor29, this);
_initDefineProp(this, 'showClose', _descriptor29, this);
_initDefineProp(this, 'sideBySide', _descriptor30, this);
_initDefineProp(this, 'showTodayButton', _descriptor30, this);
_initDefineProp(this, 'stepping', _descriptor31, this);
_initDefineProp(this, 'sideBySide', _descriptor31, this);
_initDefineProp(this, 'toolbarPlacement', _descriptor32, this);
_initDefineProp(this, 'stepping', _descriptor32, this);
_initDefineProp(this, 'useCurrent', _descriptor33, this);
_initDefineProp(this, 'toolbarPlacement', _descriptor33, this);
_initDefineProp(this, 'useStrict', _descriptor34, this);
_initDefineProp(this, 'useCurrent', _descriptor34, this);
_initDefineProp(this, 'viewDate', _descriptor35, this);
_initDefineProp(this, 'useStrict', _descriptor35, this);
_initDefineProp(this, 'viewMode', _descriptor36, this);
_initDefineProp(this, 'viewDate', _descriptor36, this);
_initDefineProp(this, 'widgetParent', _descriptor37, this);
_initDefineProp(this, 'viewMode', _descriptor37, this);
_initDefineProp(this, 'widgetPositioning', _descriptor38, this);
_initDefineProp(this, 'widgetParent', _descriptor38, this);
_initDefineProp(this, 'widgetPositioning', _descriptor39, this);
_initDefineProp(this, 'onHide', _descriptor40, this);
_initDefineProp(this, 'onShow', _descriptor41, this);
_initDefineProp(this, 'onChange', _descriptor42, this);
_initDefineProp(this, 'onError', _descriptor43, this);
_initDefineProp(this, 'onUpdate', _descriptor44, this);
this.events = {};

@@ -159,2 +171,6 @@ this.methods = {};

AbpDatetimePickerCustomElement.prototype.bind = function bind() {
this.model = (0, _moment2.default)(this.model) || (0, _moment2.default)();
};
AbpDatetimePickerCustomElement.prototype.attached = function attached() {

@@ -173,2 +189,3 @@ var _this = this;

this.domElm.on('dp.change', function (e) {
_this.model = (0, _moment2.default)(e.date);
_this.value = (0, _moment2.default)(e.date).format(_this.format);

@@ -351,11 +368,14 @@ });

initializer: null
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, 'value', [_dec3], {
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, 'model', [_dec3], {
enumerable: true,
initializer: null
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, 'iconSet', [_aureliaFramework.bindable], {
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, 'value', [_dec4], {
enumerable: true,
initializer: null
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, 'iconBase', [_aureliaFramework.bindable], {
enumerable: true,
initializer: function initializer() {
return 'glyphicon';
}
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, 'allowInputToggle', [_aureliaFramework.bindable], {
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, 'allowInputToggle', [_aureliaFramework.bindable], {
enumerable: true,

@@ -365,3 +385,3 @@ initializer: function initializer() {

}
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, 'calendarWeeks', [_aureliaFramework.bindable], {
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, 'calendarWeeks', [_aureliaFramework.bindable], {
enumerable: true,

@@ -371,3 +391,3 @@ initializer: function initializer() {

}
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, 'collapse', [_aureliaFramework.bindable], {
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, 'collapse', [_aureliaFramework.bindable], {
enumerable: true,

@@ -377,3 +397,3 @@ initializer: function initializer() {

}
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, 'daysOfWeekDisabled', [_aureliaFramework.bindable], {
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, 'daysOfWeekDisabled', [_aureliaFramework.bindable], {
enumerable: true,

@@ -383,3 +403,3 @@ initializer: function initializer() {

}
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, 'dayViewHeaderFormat', [_aureliaFramework.bindable], {
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, 'dayViewHeaderFormat', [_aureliaFramework.bindable], {
enumerable: true,

@@ -389,3 +409,3 @@ initializer: function initializer() {

}
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, 'debug', [_aureliaFramework.bindable], {
}), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, 'debug', [_aureliaFramework.bindable], {
enumerable: true,

@@ -395,3 +415,3 @@ initializer: function initializer() {

}
}), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, 'defaultDate', [_aureliaFramework.bindable], {
}), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, 'defaultDate', [_aureliaFramework.bindable], {
enumerable: true,

@@ -401,3 +421,3 @@ initializer: function initializer() {

}
}), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, 'disabledDates', [_aureliaFramework.bindable], {
}), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, 'disabledDates', [_aureliaFramework.bindable], {
enumerable: true,

@@ -407,3 +427,3 @@ initializer: function initializer() {

}
}), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, 'disabledHours', [_aureliaFramework.bindable], {
}), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, 'disabledHours', [_aureliaFramework.bindable], {
enumerable: true,

@@ -413,3 +433,3 @@ initializer: function initializer() {

}
}), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, 'disabledTimeIntervals', [_aureliaFramework.bindable], {
}), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, 'disabledTimeIntervals', [_aureliaFramework.bindable], {
enumerable: true,

@@ -419,3 +439,3 @@ initializer: function initializer() {

}
}), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, 'enabledDates', [_aureliaFramework.bindable], {
}), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, 'enabledDates', [_aureliaFramework.bindable], {
enumerable: true,

@@ -425,3 +445,3 @@ initializer: function initializer() {

}
}), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, 'enabledHours', [_aureliaFramework.bindable], {
}), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, 'enabledHours', [_aureliaFramework.bindable], {
enumerable: true,

@@ -431,3 +451,3 @@ initializer: function initializer() {

}
}), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, 'extraFormats', [_aureliaFramework.bindable], {
}), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, 'extraFormats', [_aureliaFramework.bindable], {
enumerable: true,

@@ -437,3 +457,3 @@ initializer: function initializer() {

}
}), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, 'focusOnShow', [_aureliaFramework.bindable], {
}), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, 'focusOnShow', [_aureliaFramework.bindable], {
enumerable: true,

@@ -443,3 +463,3 @@ initializer: function initializer() {

}
}), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, 'format', [_aureliaFramework.bindable], {
}), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, 'format', [_aureliaFramework.bindable], {
enumerable: true,

@@ -449,6 +469,6 @@ initializer: function initializer() {

}
}), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, 'icons', [_aureliaFramework.bindable], {
}), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, 'icons', [_aureliaFramework.bindable], {
enumerable: true,
initializer: null
}), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, 'ignoreReadonly', [_aureliaFramework.bindable], {
}), _descriptor21 = _applyDecoratedDescriptor(_class2.prototype, 'ignoreReadonly', [_aureliaFramework.bindable], {
enumerable: true,

@@ -458,3 +478,3 @@ initializer: function initializer() {

}
}), _descriptor21 = _applyDecoratedDescriptor(_class2.prototype, 'keepInvalid', [_aureliaFramework.bindable], {
}), _descriptor22 = _applyDecoratedDescriptor(_class2.prototype, 'keepInvalid', [_aureliaFramework.bindable], {
enumerable: true,

@@ -464,3 +484,3 @@ initializer: function initializer() {

}
}), _descriptor22 = _applyDecoratedDescriptor(_class2.prototype, 'keepOpen', [_aureliaFramework.bindable], {
}), _descriptor23 = _applyDecoratedDescriptor(_class2.prototype, 'keepOpen', [_aureliaFramework.bindable], {
enumerable: true,

@@ -470,3 +490,3 @@ initializer: function initializer() {

}
}), _descriptor23 = _applyDecoratedDescriptor(_class2.prototype, 'inline', [_aureliaFramework.bindable], {
}), _descriptor24 = _applyDecoratedDescriptor(_class2.prototype, 'inline', [_aureliaFramework.bindable], {
enumerable: true,

@@ -476,3 +496,3 @@ initializer: function initializer() {

}
}), _descriptor24 = _applyDecoratedDescriptor(_class2.prototype, 'locale', [_aureliaFramework.bindable], {
}), _descriptor25 = _applyDecoratedDescriptor(_class2.prototype, 'locale', [_aureliaFramework.bindable], {
enumerable: true,

@@ -482,3 +502,3 @@ initializer: function initializer() {

}
}), _descriptor25 = _applyDecoratedDescriptor(_class2.prototype, 'maxDate', [_aureliaFramework.bindable], {
}), _descriptor26 = _applyDecoratedDescriptor(_class2.prototype, 'maxDate', [_aureliaFramework.bindable], {
enumerable: true,

@@ -488,3 +508,3 @@ initializer: function initializer() {

}
}), _descriptor26 = _applyDecoratedDescriptor(_class2.prototype, 'minDate', [_aureliaFramework.bindable], {
}), _descriptor27 = _applyDecoratedDescriptor(_class2.prototype, 'minDate', [_aureliaFramework.bindable], {
enumerable: true,

@@ -494,3 +514,3 @@ initializer: function initializer() {

}
}), _descriptor27 = _applyDecoratedDescriptor(_class2.prototype, 'showClear', [_aureliaFramework.bindable], {
}), _descriptor28 = _applyDecoratedDescriptor(_class2.prototype, 'showClear', [_aureliaFramework.bindable], {
enumerable: true,

@@ -500,3 +520,3 @@ initializer: function initializer() {

}
}), _descriptor28 = _applyDecoratedDescriptor(_class2.prototype, 'showClose', [_aureliaFramework.bindable], {
}), _descriptor29 = _applyDecoratedDescriptor(_class2.prototype, 'showClose', [_aureliaFramework.bindable], {
enumerable: true,

@@ -506,3 +526,3 @@ initializer: function initializer() {

}
}), _descriptor29 = _applyDecoratedDescriptor(_class2.prototype, 'showTodayButton', [_aureliaFramework.bindable], {
}), _descriptor30 = _applyDecoratedDescriptor(_class2.prototype, 'showTodayButton', [_aureliaFramework.bindable], {
enumerable: true,

@@ -512,3 +532,3 @@ initializer: function initializer() {

}
}), _descriptor30 = _applyDecoratedDescriptor(_class2.prototype, 'sideBySide', [_aureliaFramework.bindable], {
}), _descriptor31 = _applyDecoratedDescriptor(_class2.prototype, 'sideBySide', [_aureliaFramework.bindable], {
enumerable: true,

@@ -518,3 +538,3 @@ initializer: function initializer() {

}
}), _descriptor31 = _applyDecoratedDescriptor(_class2.prototype, 'stepping', [_aureliaFramework.bindable], {
}), _descriptor32 = _applyDecoratedDescriptor(_class2.prototype, 'stepping', [_aureliaFramework.bindable], {
enumerable: true,

@@ -524,3 +544,3 @@ initializer: function initializer() {

}
}), _descriptor32 = _applyDecoratedDescriptor(_class2.prototype, 'toolbarPlacement', [_aureliaFramework.bindable], {
}), _descriptor33 = _applyDecoratedDescriptor(_class2.prototype, 'toolbarPlacement', [_aureliaFramework.bindable], {
enumerable: true,

@@ -530,3 +550,3 @@ initializer: function initializer() {

}
}), _descriptor33 = _applyDecoratedDescriptor(_class2.prototype, 'useCurrent', [_aureliaFramework.bindable], {
}), _descriptor34 = _applyDecoratedDescriptor(_class2.prototype, 'useCurrent', [_aureliaFramework.bindable], {
enumerable: true,

@@ -536,3 +556,3 @@ initializer: function initializer() {

}
}), _descriptor34 = _applyDecoratedDescriptor(_class2.prototype, 'useStrict', [_aureliaFramework.bindable], {
}), _descriptor35 = _applyDecoratedDescriptor(_class2.prototype, 'useStrict', [_aureliaFramework.bindable], {
enumerable: true,

@@ -542,3 +562,3 @@ initializer: function initializer() {

}
}), _descriptor35 = _applyDecoratedDescriptor(_class2.prototype, 'viewDate', [_aureliaFramework.bindable], {
}), _descriptor36 = _applyDecoratedDescriptor(_class2.prototype, 'viewDate', [_aureliaFramework.bindable], {
enumerable: true,

@@ -548,3 +568,3 @@ initializer: function initializer() {

}
}), _descriptor36 = _applyDecoratedDescriptor(_class2.prototype, 'viewMode', [_aureliaFramework.bindable], {
}), _descriptor37 = _applyDecoratedDescriptor(_class2.prototype, 'viewMode', [_aureliaFramework.bindable], {
enumerable: true,

@@ -554,3 +574,3 @@ initializer: function initializer() {

}
}), _descriptor37 = _applyDecoratedDescriptor(_class2.prototype, 'widgetParent', [_aureliaFramework.bindable], {
}), _descriptor38 = _applyDecoratedDescriptor(_class2.prototype, 'widgetParent', [_aureliaFramework.bindable], {
enumerable: true,

@@ -560,3 +580,3 @@ initializer: function initializer() {

}
}), _descriptor38 = _applyDecoratedDescriptor(_class2.prototype, 'widgetPositioning', [_aureliaFramework.bindable], {
}), _descriptor39 = _applyDecoratedDescriptor(_class2.prototype, 'widgetPositioning', [_aureliaFramework.bindable], {
enumerable: true,

@@ -569,3 +589,18 @@ initializer: function initializer() {

}
}), _descriptor40 = _applyDecoratedDescriptor(_class2.prototype, 'onHide', [_aureliaFramework.bindable], {
enumerable: true,
initializer: null
}), _descriptor41 = _applyDecoratedDescriptor(_class2.prototype, 'onShow', [_aureliaFramework.bindable], {
enumerable: true,
initializer: null
}), _descriptor42 = _applyDecoratedDescriptor(_class2.prototype, 'onChange', [_aureliaFramework.bindable], {
enumerable: true,
initializer: null
}), _descriptor43 = _applyDecoratedDescriptor(_class2.prototype, 'onError', [_aureliaFramework.bindable], {
enumerable: true,
initializer: null
}), _descriptor44 = _applyDecoratedDescriptor(_class2.prototype, 'onUpdate', [_aureliaFramework.bindable], {
enumerable: true,
initializer: null
})), _class2)) || _class);
});

@@ -8,3 +8,3 @@ 'use strict';

var _dec, _dec2, _dec3, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28, _descriptor29, _descriptor30, _descriptor31, _descriptor32, _descriptor33, _descriptor34, _descriptor35, _descriptor36, _descriptor37, _descriptor38;
var _dec, _dec2, _dec3, _dec4, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28, _descriptor29, _descriptor30, _descriptor31, _descriptor32, _descriptor33, _descriptor34, _descriptor35, _descriptor36, _descriptor37, _descriptor38, _descriptor39, _descriptor40, _descriptor41, _descriptor42, _descriptor43, _descriptor44;

@@ -70,3 +70,3 @@ var _aureliaFramework = require('aurelia-framework');

var AbpDatetimePickerCustomElement = exports.AbpDatetimePickerCustomElement = (_dec = (0, _aureliaFramework.inject)(Element), _dec2 = (0, _aureliaFramework.bindable)({ defaultBindingMode: _aureliaFramework.bindingMode.twoWay }), _dec3 = (0, _aureliaFramework.bindable)({ defaultBindingMode: _aureliaFramework.bindingMode.twoWay }), _dec(_class = (_class2 = function () {
var AbpDatetimePickerCustomElement = exports.AbpDatetimePickerCustomElement = (_dec = (0, _aureliaFramework.inject)(Element), _dec2 = (0, _aureliaFramework.bindable)({ defaultBindingMode: _aureliaFramework.bindingMode.twoWay }), _dec3 = (0, _aureliaFramework.bindable)({ defaultBindingMode: _aureliaFramework.bindingMode.twoWay }), _dec4 = (0, _aureliaFramework.bindable)({ defaultBindingMode: _aureliaFramework.bindingMode.twoWay }), _dec(_class = (_class2 = function () {
function AbpDatetimePickerCustomElement(elm) {

@@ -77,76 +77,88 @@ _classCallCheck(this, AbpDatetimePickerCustomElement);

_initDefineProp(this, 'value', _descriptor2, this);
_initDefineProp(this, 'model', _descriptor2, this);
_initDefineProp(this, 'iconSet', _descriptor3, this);
_initDefineProp(this, 'value', _descriptor3, this);
_initDefineProp(this, 'allowInputToggle', _descriptor4, this);
_initDefineProp(this, 'iconBase', _descriptor4, this);
_initDefineProp(this, 'calendarWeeks', _descriptor5, this);
_initDefineProp(this, 'allowInputToggle', _descriptor5, this);
_initDefineProp(this, 'collapse', _descriptor6, this);
_initDefineProp(this, 'calendarWeeks', _descriptor6, this);
_initDefineProp(this, 'daysOfWeekDisabled', _descriptor7, this);
_initDefineProp(this, 'collapse', _descriptor7, this);
_initDefineProp(this, 'dayViewHeaderFormat', _descriptor8, this);
_initDefineProp(this, 'daysOfWeekDisabled', _descriptor8, this);
_initDefineProp(this, 'debug', _descriptor9, this);
_initDefineProp(this, 'dayViewHeaderFormat', _descriptor9, this);
_initDefineProp(this, 'defaultDate', _descriptor10, this);
_initDefineProp(this, 'debug', _descriptor10, this);
_initDefineProp(this, 'disabledDates', _descriptor11, this);
_initDefineProp(this, 'defaultDate', _descriptor11, this);
_initDefineProp(this, 'disabledHours', _descriptor12, this);
_initDefineProp(this, 'disabledDates', _descriptor12, this);
_initDefineProp(this, 'disabledTimeIntervals', _descriptor13, this);
_initDefineProp(this, 'disabledHours', _descriptor13, this);
_initDefineProp(this, 'enabledDates', _descriptor14, this);
_initDefineProp(this, 'disabledTimeIntervals', _descriptor14, this);
_initDefineProp(this, 'enabledHours', _descriptor15, this);
_initDefineProp(this, 'enabledDates', _descriptor15, this);
_initDefineProp(this, 'extraFormats', _descriptor16, this);
_initDefineProp(this, 'enabledHours', _descriptor16, this);
_initDefineProp(this, 'focusOnShow', _descriptor17, this);
_initDefineProp(this, 'extraFormats', _descriptor17, this);
_initDefineProp(this, 'format', _descriptor18, this);
_initDefineProp(this, 'focusOnShow', _descriptor18, this);
_initDefineProp(this, 'icons', _descriptor19, this);
_initDefineProp(this, 'format', _descriptor19, this);
_initDefineProp(this, 'ignoreReadonly', _descriptor20, this);
_initDefineProp(this, 'icons', _descriptor20, this);
_initDefineProp(this, 'keepInvalid', _descriptor21, this);
_initDefineProp(this, 'ignoreReadonly', _descriptor21, this);
_initDefineProp(this, 'keepOpen', _descriptor22, this);
_initDefineProp(this, 'keepInvalid', _descriptor22, this);
_initDefineProp(this, 'inline', _descriptor23, this);
_initDefineProp(this, 'keepOpen', _descriptor23, this);
_initDefineProp(this, 'locale', _descriptor24, this);
_initDefineProp(this, 'inline', _descriptor24, this);
_initDefineProp(this, 'maxDate', _descriptor25, this);
_initDefineProp(this, 'locale', _descriptor25, this);
_initDefineProp(this, 'minDate', _descriptor26, this);
_initDefineProp(this, 'maxDate', _descriptor26, this);
_initDefineProp(this, 'showClear', _descriptor27, this);
_initDefineProp(this, 'minDate', _descriptor27, this);
_initDefineProp(this, 'showClose', _descriptor28, this);
_initDefineProp(this, 'showClear', _descriptor28, this);
_initDefineProp(this, 'showTodayButton', _descriptor29, this);
_initDefineProp(this, 'showClose', _descriptor29, this);
_initDefineProp(this, 'sideBySide', _descriptor30, this);
_initDefineProp(this, 'showTodayButton', _descriptor30, this);
_initDefineProp(this, 'stepping', _descriptor31, this);
_initDefineProp(this, 'sideBySide', _descriptor31, this);
_initDefineProp(this, 'toolbarPlacement', _descriptor32, this);
_initDefineProp(this, 'stepping', _descriptor32, this);
_initDefineProp(this, 'useCurrent', _descriptor33, this);
_initDefineProp(this, 'toolbarPlacement', _descriptor33, this);
_initDefineProp(this, 'useStrict', _descriptor34, this);
_initDefineProp(this, 'useCurrent', _descriptor34, this);
_initDefineProp(this, 'viewDate', _descriptor35, this);
_initDefineProp(this, 'useStrict', _descriptor35, this);
_initDefineProp(this, 'viewMode', _descriptor36, this);
_initDefineProp(this, 'viewDate', _descriptor36, this);
_initDefineProp(this, 'widgetParent', _descriptor37, this);
_initDefineProp(this, 'viewMode', _descriptor37, this);
_initDefineProp(this, 'widgetPositioning', _descriptor38, this);
_initDefineProp(this, 'widgetParent', _descriptor38, this);
_initDefineProp(this, 'widgetPositioning', _descriptor39, this);
_initDefineProp(this, 'onHide', _descriptor40, this);
_initDefineProp(this, 'onShow', _descriptor41, this);
_initDefineProp(this, 'onChange', _descriptor42, this);
_initDefineProp(this, 'onError', _descriptor43, this);
_initDefineProp(this, 'onUpdate', _descriptor44, this);
this.events = {};

@@ -159,2 +171,6 @@ this.methods = {};

AbpDatetimePickerCustomElement.prototype.bind = function bind() {
this.model = (0, _moment2.default)(this.model) || (0, _moment2.default)();
};
AbpDatetimePickerCustomElement.prototype.attached = function attached() {

@@ -173,2 +189,3 @@ var _this = this;

this.domElm.on('dp.change', function (e) {
_this.model = (0, _moment2.default)(e.date);
_this.value = (0, _moment2.default)(e.date).format(_this.format);

@@ -351,11 +368,14 @@ });

initializer: null
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, 'value', [_dec3], {
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, 'model', [_dec3], {
enumerable: true,
initializer: null
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, 'iconSet', [_aureliaFramework.bindable], {
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, 'value', [_dec4], {
enumerable: true,
initializer: null
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, 'iconBase', [_aureliaFramework.bindable], {
enumerable: true,
initializer: function initializer() {
return 'glyphicon';
}
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, 'allowInputToggle', [_aureliaFramework.bindable], {
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, 'allowInputToggle', [_aureliaFramework.bindable], {
enumerable: true,

@@ -365,3 +385,3 @@ initializer: function initializer() {

}
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, 'calendarWeeks', [_aureliaFramework.bindable], {
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, 'calendarWeeks', [_aureliaFramework.bindable], {
enumerable: true,

@@ -371,3 +391,3 @@ initializer: function initializer() {

}
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, 'collapse', [_aureliaFramework.bindable], {
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, 'collapse', [_aureliaFramework.bindable], {
enumerable: true,

@@ -377,3 +397,3 @@ initializer: function initializer() {

}
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, 'daysOfWeekDisabled', [_aureliaFramework.bindable], {
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, 'daysOfWeekDisabled', [_aureliaFramework.bindable], {
enumerable: true,

@@ -383,3 +403,3 @@ initializer: function initializer() {

}
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, 'dayViewHeaderFormat', [_aureliaFramework.bindable], {
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, 'dayViewHeaderFormat', [_aureliaFramework.bindable], {
enumerable: true,

@@ -389,3 +409,3 @@ initializer: function initializer() {

}
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, 'debug', [_aureliaFramework.bindable], {
}), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, 'debug', [_aureliaFramework.bindable], {
enumerable: true,

@@ -395,3 +415,3 @@ initializer: function initializer() {

}
}), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, 'defaultDate', [_aureliaFramework.bindable], {
}), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, 'defaultDate', [_aureliaFramework.bindable], {
enumerable: true,

@@ -401,3 +421,3 @@ initializer: function initializer() {

}
}), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, 'disabledDates', [_aureliaFramework.bindable], {
}), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, 'disabledDates', [_aureliaFramework.bindable], {
enumerable: true,

@@ -407,3 +427,3 @@ initializer: function initializer() {

}
}), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, 'disabledHours', [_aureliaFramework.bindable], {
}), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, 'disabledHours', [_aureliaFramework.bindable], {
enumerable: true,

@@ -413,3 +433,3 @@ initializer: function initializer() {

}
}), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, 'disabledTimeIntervals', [_aureliaFramework.bindable], {
}), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, 'disabledTimeIntervals', [_aureliaFramework.bindable], {
enumerable: true,

@@ -419,3 +439,3 @@ initializer: function initializer() {

}
}), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, 'enabledDates', [_aureliaFramework.bindable], {
}), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, 'enabledDates', [_aureliaFramework.bindable], {
enumerable: true,

@@ -425,3 +445,3 @@ initializer: function initializer() {

}
}), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, 'enabledHours', [_aureliaFramework.bindable], {
}), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, 'enabledHours', [_aureliaFramework.bindable], {
enumerable: true,

@@ -431,3 +451,3 @@ initializer: function initializer() {

}
}), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, 'extraFormats', [_aureliaFramework.bindable], {
}), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, 'extraFormats', [_aureliaFramework.bindable], {
enumerable: true,

@@ -437,3 +457,3 @@ initializer: function initializer() {

}
}), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, 'focusOnShow', [_aureliaFramework.bindable], {
}), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, 'focusOnShow', [_aureliaFramework.bindable], {
enumerable: true,

@@ -443,3 +463,3 @@ initializer: function initializer() {

}
}), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, 'format', [_aureliaFramework.bindable], {
}), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, 'format', [_aureliaFramework.bindable], {
enumerable: true,

@@ -449,6 +469,6 @@ initializer: function initializer() {

}
}), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, 'icons', [_aureliaFramework.bindable], {
}), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, 'icons', [_aureliaFramework.bindable], {
enumerable: true,
initializer: null
}), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, 'ignoreReadonly', [_aureliaFramework.bindable], {
}), _descriptor21 = _applyDecoratedDescriptor(_class2.prototype, 'ignoreReadonly', [_aureliaFramework.bindable], {
enumerable: true,

@@ -458,3 +478,3 @@ initializer: function initializer() {

}
}), _descriptor21 = _applyDecoratedDescriptor(_class2.prototype, 'keepInvalid', [_aureliaFramework.bindable], {
}), _descriptor22 = _applyDecoratedDescriptor(_class2.prototype, 'keepInvalid', [_aureliaFramework.bindable], {
enumerable: true,

@@ -464,3 +484,3 @@ initializer: function initializer() {

}
}), _descriptor22 = _applyDecoratedDescriptor(_class2.prototype, 'keepOpen', [_aureliaFramework.bindable], {
}), _descriptor23 = _applyDecoratedDescriptor(_class2.prototype, 'keepOpen', [_aureliaFramework.bindable], {
enumerable: true,

@@ -470,3 +490,3 @@ initializer: function initializer() {

}
}), _descriptor23 = _applyDecoratedDescriptor(_class2.prototype, 'inline', [_aureliaFramework.bindable], {
}), _descriptor24 = _applyDecoratedDescriptor(_class2.prototype, 'inline', [_aureliaFramework.bindable], {
enumerable: true,

@@ -476,3 +496,3 @@ initializer: function initializer() {

}
}), _descriptor24 = _applyDecoratedDescriptor(_class2.prototype, 'locale', [_aureliaFramework.bindable], {
}), _descriptor25 = _applyDecoratedDescriptor(_class2.prototype, 'locale', [_aureliaFramework.bindable], {
enumerable: true,

@@ -482,3 +502,3 @@ initializer: function initializer() {

}
}), _descriptor25 = _applyDecoratedDescriptor(_class2.prototype, 'maxDate', [_aureliaFramework.bindable], {
}), _descriptor26 = _applyDecoratedDescriptor(_class2.prototype, 'maxDate', [_aureliaFramework.bindable], {
enumerable: true,

@@ -488,3 +508,3 @@ initializer: function initializer() {

}
}), _descriptor26 = _applyDecoratedDescriptor(_class2.prototype, 'minDate', [_aureliaFramework.bindable], {
}), _descriptor27 = _applyDecoratedDescriptor(_class2.prototype, 'minDate', [_aureliaFramework.bindable], {
enumerable: true,

@@ -494,3 +514,3 @@ initializer: function initializer() {

}
}), _descriptor27 = _applyDecoratedDescriptor(_class2.prototype, 'showClear', [_aureliaFramework.bindable], {
}), _descriptor28 = _applyDecoratedDescriptor(_class2.prototype, 'showClear', [_aureliaFramework.bindable], {
enumerable: true,

@@ -500,3 +520,3 @@ initializer: function initializer() {

}
}), _descriptor28 = _applyDecoratedDescriptor(_class2.prototype, 'showClose', [_aureliaFramework.bindable], {
}), _descriptor29 = _applyDecoratedDescriptor(_class2.prototype, 'showClose', [_aureliaFramework.bindable], {
enumerable: true,

@@ -506,3 +526,3 @@ initializer: function initializer() {

}
}), _descriptor29 = _applyDecoratedDescriptor(_class2.prototype, 'showTodayButton', [_aureliaFramework.bindable], {
}), _descriptor30 = _applyDecoratedDescriptor(_class2.prototype, 'showTodayButton', [_aureliaFramework.bindable], {
enumerable: true,

@@ -512,3 +532,3 @@ initializer: function initializer() {

}
}), _descriptor30 = _applyDecoratedDescriptor(_class2.prototype, 'sideBySide', [_aureliaFramework.bindable], {
}), _descriptor31 = _applyDecoratedDescriptor(_class2.prototype, 'sideBySide', [_aureliaFramework.bindable], {
enumerable: true,

@@ -518,3 +538,3 @@ initializer: function initializer() {

}
}), _descriptor31 = _applyDecoratedDescriptor(_class2.prototype, 'stepping', [_aureliaFramework.bindable], {
}), _descriptor32 = _applyDecoratedDescriptor(_class2.prototype, 'stepping', [_aureliaFramework.bindable], {
enumerable: true,

@@ -524,3 +544,3 @@ initializer: function initializer() {

}
}), _descriptor32 = _applyDecoratedDescriptor(_class2.prototype, 'toolbarPlacement', [_aureliaFramework.bindable], {
}), _descriptor33 = _applyDecoratedDescriptor(_class2.prototype, 'toolbarPlacement', [_aureliaFramework.bindable], {
enumerable: true,

@@ -530,3 +550,3 @@ initializer: function initializer() {

}
}), _descriptor33 = _applyDecoratedDescriptor(_class2.prototype, 'useCurrent', [_aureliaFramework.bindable], {
}), _descriptor34 = _applyDecoratedDescriptor(_class2.prototype, 'useCurrent', [_aureliaFramework.bindable], {
enumerable: true,

@@ -536,3 +556,3 @@ initializer: function initializer() {

}
}), _descriptor34 = _applyDecoratedDescriptor(_class2.prototype, 'useStrict', [_aureliaFramework.bindable], {
}), _descriptor35 = _applyDecoratedDescriptor(_class2.prototype, 'useStrict', [_aureliaFramework.bindable], {
enumerable: true,

@@ -542,3 +562,3 @@ initializer: function initializer() {

}
}), _descriptor35 = _applyDecoratedDescriptor(_class2.prototype, 'viewDate', [_aureliaFramework.bindable], {
}), _descriptor36 = _applyDecoratedDescriptor(_class2.prototype, 'viewDate', [_aureliaFramework.bindable], {
enumerable: true,

@@ -548,3 +568,3 @@ initializer: function initializer() {

}
}), _descriptor36 = _applyDecoratedDescriptor(_class2.prototype, 'viewMode', [_aureliaFramework.bindable], {
}), _descriptor37 = _applyDecoratedDescriptor(_class2.prototype, 'viewMode', [_aureliaFramework.bindable], {
enumerable: true,

@@ -554,3 +574,3 @@ initializer: function initializer() {

}
}), _descriptor37 = _applyDecoratedDescriptor(_class2.prototype, 'widgetParent', [_aureliaFramework.bindable], {
}), _descriptor38 = _applyDecoratedDescriptor(_class2.prototype, 'widgetParent', [_aureliaFramework.bindable], {
enumerable: true,

@@ -560,3 +580,3 @@ initializer: function initializer() {

}
}), _descriptor38 = _applyDecoratedDescriptor(_class2.prototype, 'widgetPositioning', [_aureliaFramework.bindable], {
}), _descriptor39 = _applyDecoratedDescriptor(_class2.prototype, 'widgetPositioning', [_aureliaFramework.bindable], {
enumerable: true,

@@ -569,2 +589,17 @@ initializer: function initializer() {

}
}), _descriptor40 = _applyDecoratedDescriptor(_class2.prototype, 'onHide', [_aureliaFramework.bindable], {
enumerable: true,
initializer: null
}), _descriptor41 = _applyDecoratedDescriptor(_class2.prototype, 'onShow', [_aureliaFramework.bindable], {
enumerable: true,
initializer: null
}), _descriptor42 = _applyDecoratedDescriptor(_class2.prototype, 'onChange', [_aureliaFramework.bindable], {
enumerable: true,
initializer: null
}), _descriptor43 = _applyDecoratedDescriptor(_class2.prototype, 'onError', [_aureliaFramework.bindable], {
enumerable: true,
initializer: null
}), _descriptor44 = _applyDecoratedDescriptor(_class2.prototype, 'onUpdate', [_aureliaFramework.bindable], {
enumerable: true,
initializer: null
})), _class2)) || _class);

@@ -1,2 +0,2 @@

var _dec, _dec2, _dec3, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28, _descriptor29, _descriptor30, _descriptor31, _descriptor32, _descriptor33, _descriptor34, _descriptor35, _descriptor36, _descriptor37, _descriptor38;
var _dec, _dec2, _dec3, _dec4, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28, _descriptor29, _descriptor30, _descriptor31, _descriptor32, _descriptor33, _descriptor34, _descriptor35, _descriptor36, _descriptor37, _descriptor38, _descriptor39, _descriptor40, _descriptor41, _descriptor42, _descriptor43, _descriptor44;

@@ -51,3 +51,3 @@ function _initDefineProp(target, property, descriptor, context) {

export let AbpDatetimePickerCustomElement = (_dec = inject(Element), _dec2 = bindable({ defaultBindingMode: bindingMode.twoWay }), _dec3 = bindable({ defaultBindingMode: bindingMode.twoWay }), _dec(_class = (_class2 = class AbpDatetimePickerCustomElement {
export let AbpDatetimePickerCustomElement = (_dec = inject(Element), _dec2 = bindable({ defaultBindingMode: bindingMode.twoWay }), _dec3 = bindable({ defaultBindingMode: bindingMode.twoWay }), _dec4 = bindable({ defaultBindingMode: bindingMode.twoWay }), _dec(_class = (_class2 = class AbpDatetimePickerCustomElement {

@@ -57,76 +57,88 @@ constructor(elm) {

_initDefineProp(this, 'value', _descriptor2, this);
_initDefineProp(this, 'model', _descriptor2, this);
_initDefineProp(this, 'iconSet', _descriptor3, this);
_initDefineProp(this, 'value', _descriptor3, this);
_initDefineProp(this, 'allowInputToggle', _descriptor4, this);
_initDefineProp(this, 'iconBase', _descriptor4, this);
_initDefineProp(this, 'calendarWeeks', _descriptor5, this);
_initDefineProp(this, 'allowInputToggle', _descriptor5, this);
_initDefineProp(this, 'collapse', _descriptor6, this);
_initDefineProp(this, 'calendarWeeks', _descriptor6, this);
_initDefineProp(this, 'daysOfWeekDisabled', _descriptor7, this);
_initDefineProp(this, 'collapse', _descriptor7, this);
_initDefineProp(this, 'dayViewHeaderFormat', _descriptor8, this);
_initDefineProp(this, 'daysOfWeekDisabled', _descriptor8, this);
_initDefineProp(this, 'debug', _descriptor9, this);
_initDefineProp(this, 'dayViewHeaderFormat', _descriptor9, this);
_initDefineProp(this, 'defaultDate', _descriptor10, this);
_initDefineProp(this, 'debug', _descriptor10, this);
_initDefineProp(this, 'disabledDates', _descriptor11, this);
_initDefineProp(this, 'defaultDate', _descriptor11, this);
_initDefineProp(this, 'disabledHours', _descriptor12, this);
_initDefineProp(this, 'disabledDates', _descriptor12, this);
_initDefineProp(this, 'disabledTimeIntervals', _descriptor13, this);
_initDefineProp(this, 'disabledHours', _descriptor13, this);
_initDefineProp(this, 'enabledDates', _descriptor14, this);
_initDefineProp(this, 'disabledTimeIntervals', _descriptor14, this);
_initDefineProp(this, 'enabledHours', _descriptor15, this);
_initDefineProp(this, 'enabledDates', _descriptor15, this);
_initDefineProp(this, 'extraFormats', _descriptor16, this);
_initDefineProp(this, 'enabledHours', _descriptor16, this);
_initDefineProp(this, 'focusOnShow', _descriptor17, this);
_initDefineProp(this, 'extraFormats', _descriptor17, this);
_initDefineProp(this, 'format', _descriptor18, this);
_initDefineProp(this, 'focusOnShow', _descriptor18, this);
_initDefineProp(this, 'icons', _descriptor19, this);
_initDefineProp(this, 'format', _descriptor19, this);
_initDefineProp(this, 'ignoreReadonly', _descriptor20, this);
_initDefineProp(this, 'icons', _descriptor20, this);
_initDefineProp(this, 'keepInvalid', _descriptor21, this);
_initDefineProp(this, 'ignoreReadonly', _descriptor21, this);
_initDefineProp(this, 'keepOpen', _descriptor22, this);
_initDefineProp(this, 'keepInvalid', _descriptor22, this);
_initDefineProp(this, 'inline', _descriptor23, this);
_initDefineProp(this, 'keepOpen', _descriptor23, this);
_initDefineProp(this, 'locale', _descriptor24, this);
_initDefineProp(this, 'inline', _descriptor24, this);
_initDefineProp(this, 'maxDate', _descriptor25, this);
_initDefineProp(this, 'locale', _descriptor25, this);
_initDefineProp(this, 'minDate', _descriptor26, this);
_initDefineProp(this, 'maxDate', _descriptor26, this);
_initDefineProp(this, 'showClear', _descriptor27, this);
_initDefineProp(this, 'minDate', _descriptor27, this);
_initDefineProp(this, 'showClose', _descriptor28, this);
_initDefineProp(this, 'showClear', _descriptor28, this);
_initDefineProp(this, 'showTodayButton', _descriptor29, this);
_initDefineProp(this, 'showClose', _descriptor29, this);
_initDefineProp(this, 'sideBySide', _descriptor30, this);
_initDefineProp(this, 'showTodayButton', _descriptor30, this);
_initDefineProp(this, 'stepping', _descriptor31, this);
_initDefineProp(this, 'sideBySide', _descriptor31, this);
_initDefineProp(this, 'toolbarPlacement', _descriptor32, this);
_initDefineProp(this, 'stepping', _descriptor32, this);
_initDefineProp(this, 'useCurrent', _descriptor33, this);
_initDefineProp(this, 'toolbarPlacement', _descriptor33, this);
_initDefineProp(this, 'useStrict', _descriptor34, this);
_initDefineProp(this, 'useCurrent', _descriptor34, this);
_initDefineProp(this, 'viewDate', _descriptor35, this);
_initDefineProp(this, 'useStrict', _descriptor35, this);
_initDefineProp(this, 'viewMode', _descriptor36, this);
_initDefineProp(this, 'viewDate', _descriptor36, this);
_initDefineProp(this, 'widgetParent', _descriptor37, this);
_initDefineProp(this, 'viewMode', _descriptor37, this);
_initDefineProp(this, 'widgetPositioning', _descriptor38, this);
_initDefineProp(this, 'widgetParent', _descriptor38, this);
_initDefineProp(this, 'widgetPositioning', _descriptor39, this);
_initDefineProp(this, 'onHide', _descriptor40, this);
_initDefineProp(this, 'onShow', _descriptor41, this);
_initDefineProp(this, 'onChange', _descriptor42, this);
_initDefineProp(this, 'onError', _descriptor43, this);
_initDefineProp(this, 'onUpdate', _descriptor44, this);
this.events = {};

@@ -139,2 +151,6 @@ this.methods = {};

bind() {
this.model = moment(this.model) || moment();
}
attached() {

@@ -151,2 +167,3 @@ this.domElm = $(this.elm).find('.input-group.date');

this.domElm.on('dp.change', e => {
this.model = moment(e.date);
this.value = moment(e.date).format(this.format);

@@ -321,11 +338,14 @@ });

initializer: null
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, 'value', [_dec3], {
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, 'model', [_dec3], {
enumerable: true,
initializer: null
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, 'iconSet', [bindable], {
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, 'value', [_dec4], {
enumerable: true,
initializer: null
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, 'iconBase', [bindable], {
enumerable: true,
initializer: function () {
return 'glyphicon';
}
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, 'allowInputToggle', [bindable], {
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, 'allowInputToggle', [bindable], {
enumerable: true,

@@ -335,3 +355,3 @@ initializer: function () {

}
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, 'calendarWeeks', [bindable], {
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, 'calendarWeeks', [bindable], {
enumerable: true,

@@ -341,3 +361,3 @@ initializer: function () {

}
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, 'collapse', [bindable], {
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, 'collapse', [bindable], {
enumerable: true,

@@ -347,3 +367,3 @@ initializer: function () {

}
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, 'daysOfWeekDisabled', [bindable], {
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, 'daysOfWeekDisabled', [bindable], {
enumerable: true,

@@ -353,3 +373,3 @@ initializer: function () {

}
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, 'dayViewHeaderFormat', [bindable], {
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, 'dayViewHeaderFormat', [bindable], {
enumerable: true,

@@ -359,3 +379,3 @@ initializer: function () {

}
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, 'debug', [bindable], {
}), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, 'debug', [bindable], {
enumerable: true,

@@ -365,3 +385,3 @@ initializer: function () {

}
}), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, 'defaultDate', [bindable], {
}), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, 'defaultDate', [bindable], {
enumerable: true,

@@ -371,3 +391,3 @@ initializer: function () {

}
}), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, 'disabledDates', [bindable], {
}), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, 'disabledDates', [bindable], {
enumerable: true,

@@ -377,3 +397,3 @@ initializer: function () {

}
}), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, 'disabledHours', [bindable], {
}), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, 'disabledHours', [bindable], {
enumerable: true,

@@ -383,3 +403,3 @@ initializer: function () {

}
}), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, 'disabledTimeIntervals', [bindable], {
}), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, 'disabledTimeIntervals', [bindable], {
enumerable: true,

@@ -389,3 +409,3 @@ initializer: function () {

}
}), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, 'enabledDates', [bindable], {
}), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, 'enabledDates', [bindable], {
enumerable: true,

@@ -395,3 +415,3 @@ initializer: function () {

}
}), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, 'enabledHours', [bindable], {
}), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, 'enabledHours', [bindable], {
enumerable: true,

@@ -401,3 +421,3 @@ initializer: function () {

}
}), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, 'extraFormats', [bindable], {
}), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, 'extraFormats', [bindable], {
enumerable: true,

@@ -407,3 +427,3 @@ initializer: function () {

}
}), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, 'focusOnShow', [bindable], {
}), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, 'focusOnShow', [bindable], {
enumerable: true,

@@ -413,3 +433,3 @@ initializer: function () {

}
}), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, 'format', [bindable], {
}), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, 'format', [bindable], {
enumerable: true,

@@ -419,6 +439,6 @@ initializer: function () {

}
}), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, 'icons', [bindable], {
}), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, 'icons', [bindable], {
enumerable: true,
initializer: null
}), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, 'ignoreReadonly', [bindable], {
}), _descriptor21 = _applyDecoratedDescriptor(_class2.prototype, 'ignoreReadonly', [bindable], {
enumerable: true,

@@ -428,3 +448,3 @@ initializer: function () {

}
}), _descriptor21 = _applyDecoratedDescriptor(_class2.prototype, 'keepInvalid', [bindable], {
}), _descriptor22 = _applyDecoratedDescriptor(_class2.prototype, 'keepInvalid', [bindable], {
enumerable: true,

@@ -434,3 +454,3 @@ initializer: function () {

}
}), _descriptor22 = _applyDecoratedDescriptor(_class2.prototype, 'keepOpen', [bindable], {
}), _descriptor23 = _applyDecoratedDescriptor(_class2.prototype, 'keepOpen', [bindable], {
enumerable: true,

@@ -440,3 +460,3 @@ initializer: function () {

}
}), _descriptor23 = _applyDecoratedDescriptor(_class2.prototype, 'inline', [bindable], {
}), _descriptor24 = _applyDecoratedDescriptor(_class2.prototype, 'inline', [bindable], {
enumerable: true,

@@ -446,3 +466,3 @@ initializer: function () {

}
}), _descriptor24 = _applyDecoratedDescriptor(_class2.prototype, 'locale', [bindable], {
}), _descriptor25 = _applyDecoratedDescriptor(_class2.prototype, 'locale', [bindable], {
enumerable: true,

@@ -452,3 +472,3 @@ initializer: function () {

}
}), _descriptor25 = _applyDecoratedDescriptor(_class2.prototype, 'maxDate', [bindable], {
}), _descriptor26 = _applyDecoratedDescriptor(_class2.prototype, 'maxDate', [bindable], {
enumerable: true,

@@ -458,3 +478,3 @@ initializer: function () {

}
}), _descriptor26 = _applyDecoratedDescriptor(_class2.prototype, 'minDate', [bindable], {
}), _descriptor27 = _applyDecoratedDescriptor(_class2.prototype, 'minDate', [bindable], {
enumerable: true,

@@ -464,3 +484,3 @@ initializer: function () {

}
}), _descriptor27 = _applyDecoratedDescriptor(_class2.prototype, 'showClear', [bindable], {
}), _descriptor28 = _applyDecoratedDescriptor(_class2.prototype, 'showClear', [bindable], {
enumerable: true,

@@ -470,3 +490,3 @@ initializer: function () {

}
}), _descriptor28 = _applyDecoratedDescriptor(_class2.prototype, 'showClose', [bindable], {
}), _descriptor29 = _applyDecoratedDescriptor(_class2.prototype, 'showClose', [bindable], {
enumerable: true,

@@ -476,3 +496,3 @@ initializer: function () {

}
}), _descriptor29 = _applyDecoratedDescriptor(_class2.prototype, 'showTodayButton', [bindable], {
}), _descriptor30 = _applyDecoratedDescriptor(_class2.prototype, 'showTodayButton', [bindable], {
enumerable: true,

@@ -482,3 +502,3 @@ initializer: function () {

}
}), _descriptor30 = _applyDecoratedDescriptor(_class2.prototype, 'sideBySide', [bindable], {
}), _descriptor31 = _applyDecoratedDescriptor(_class2.prototype, 'sideBySide', [bindable], {
enumerable: true,

@@ -488,3 +508,3 @@ initializer: function () {

}
}), _descriptor31 = _applyDecoratedDescriptor(_class2.prototype, 'stepping', [bindable], {
}), _descriptor32 = _applyDecoratedDescriptor(_class2.prototype, 'stepping', [bindable], {
enumerable: true,

@@ -494,3 +514,3 @@ initializer: function () {

}
}), _descriptor32 = _applyDecoratedDescriptor(_class2.prototype, 'toolbarPlacement', [bindable], {
}), _descriptor33 = _applyDecoratedDescriptor(_class2.prototype, 'toolbarPlacement', [bindable], {
enumerable: true,

@@ -500,3 +520,3 @@ initializer: function () {

}
}), _descriptor33 = _applyDecoratedDescriptor(_class2.prototype, 'useCurrent', [bindable], {
}), _descriptor34 = _applyDecoratedDescriptor(_class2.prototype, 'useCurrent', [bindable], {
enumerable: true,

@@ -506,3 +526,3 @@ initializer: function () {

}
}), _descriptor34 = _applyDecoratedDescriptor(_class2.prototype, 'useStrict', [bindable], {
}), _descriptor35 = _applyDecoratedDescriptor(_class2.prototype, 'useStrict', [bindable], {
enumerable: true,

@@ -512,3 +532,3 @@ initializer: function () {

}
}), _descriptor35 = _applyDecoratedDescriptor(_class2.prototype, 'viewDate', [bindable], {
}), _descriptor36 = _applyDecoratedDescriptor(_class2.prototype, 'viewDate', [bindable], {
enumerable: true,

@@ -518,3 +538,3 @@ initializer: function () {

}
}), _descriptor36 = _applyDecoratedDescriptor(_class2.prototype, 'viewMode', [bindable], {
}), _descriptor37 = _applyDecoratedDescriptor(_class2.prototype, 'viewMode', [bindable], {
enumerable: true,

@@ -524,3 +544,3 @@ initializer: function () {

}
}), _descriptor37 = _applyDecoratedDescriptor(_class2.prototype, 'widgetParent', [bindable], {
}), _descriptor38 = _applyDecoratedDescriptor(_class2.prototype, 'widgetParent', [bindable], {
enumerable: true,

@@ -530,3 +550,3 @@ initializer: function () {

}
}), _descriptor38 = _applyDecoratedDescriptor(_class2.prototype, 'widgetPositioning', [bindable], {
}), _descriptor39 = _applyDecoratedDescriptor(_class2.prototype, 'widgetPositioning', [bindable], {
enumerable: true,

@@ -539,2 +559,17 @@ initializer: function () {

}
}), _descriptor40 = _applyDecoratedDescriptor(_class2.prototype, 'onHide', [bindable], {
enumerable: true,
initializer: null
}), _descriptor41 = _applyDecoratedDescriptor(_class2.prototype, 'onShow', [bindable], {
enumerable: true,
initializer: null
}), _descriptor42 = _applyDecoratedDescriptor(_class2.prototype, 'onChange', [bindable], {
enumerable: true,
initializer: null
}), _descriptor43 = _applyDecoratedDescriptor(_class2.prototype, 'onError', [bindable], {
enumerable: true,
initializer: null
}), _descriptor44 = _applyDecoratedDescriptor(_class2.prototype, 'onUpdate', [bindable], {
enumerable: true,
initializer: null
})), _class2)) || _class);

@@ -6,3 +6,3 @@ 'use strict';

var inject, bindable, bindingMode, moment, $, _dec, _dec2, _dec3, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28, _descriptor29, _descriptor30, _descriptor31, _descriptor32, _descriptor33, _descriptor34, _descriptor35, _descriptor36, _descriptor37, _descriptor38, AbpDatetimePickerCustomElement;
var inject, bindable, bindingMode, moment, $, _dec, _dec2, _dec3, _dec4, _class, _desc, _value, _class2, _descriptor, _descriptor2, _descriptor3, _descriptor4, _descriptor5, _descriptor6, _descriptor7, _descriptor8, _descriptor9, _descriptor10, _descriptor11, _descriptor12, _descriptor13, _descriptor14, _descriptor15, _descriptor16, _descriptor17, _descriptor18, _descriptor19, _descriptor20, _descriptor21, _descriptor22, _descriptor23, _descriptor24, _descriptor25, _descriptor26, _descriptor27, _descriptor28, _descriptor29, _descriptor30, _descriptor31, _descriptor32, _descriptor33, _descriptor34, _descriptor35, _descriptor36, _descriptor37, _descriptor38, _descriptor39, _descriptor40, _descriptor41, _descriptor42, _descriptor43, _descriptor44, AbpDatetimePickerCustomElement;

@@ -69,3 +69,3 @@ function _initDefineProp(target, property, descriptor, context) {

execute: function () {
_export('AbpDatetimePickerCustomElement', AbpDatetimePickerCustomElement = (_dec = inject(Element), _dec2 = bindable({ defaultBindingMode: bindingMode.twoWay }), _dec3 = bindable({ defaultBindingMode: bindingMode.twoWay }), _dec(_class = (_class2 = function () {
_export('AbpDatetimePickerCustomElement', AbpDatetimePickerCustomElement = (_dec = inject(Element), _dec2 = bindable({ defaultBindingMode: bindingMode.twoWay }), _dec3 = bindable({ defaultBindingMode: bindingMode.twoWay }), _dec4 = bindable({ defaultBindingMode: bindingMode.twoWay }), _dec(_class = (_class2 = function () {
function AbpDatetimePickerCustomElement(elm) {

@@ -76,76 +76,88 @@ _classCallCheck(this, AbpDatetimePickerCustomElement);

_initDefineProp(this, 'value', _descriptor2, this);
_initDefineProp(this, 'model', _descriptor2, this);
_initDefineProp(this, 'iconSet', _descriptor3, this);
_initDefineProp(this, 'value', _descriptor3, this);
_initDefineProp(this, 'allowInputToggle', _descriptor4, this);
_initDefineProp(this, 'iconBase', _descriptor4, this);
_initDefineProp(this, 'calendarWeeks', _descriptor5, this);
_initDefineProp(this, 'allowInputToggle', _descriptor5, this);
_initDefineProp(this, 'collapse', _descriptor6, this);
_initDefineProp(this, 'calendarWeeks', _descriptor6, this);
_initDefineProp(this, 'daysOfWeekDisabled', _descriptor7, this);
_initDefineProp(this, 'collapse', _descriptor7, this);
_initDefineProp(this, 'dayViewHeaderFormat', _descriptor8, this);
_initDefineProp(this, 'daysOfWeekDisabled', _descriptor8, this);
_initDefineProp(this, 'debug', _descriptor9, this);
_initDefineProp(this, 'dayViewHeaderFormat', _descriptor9, this);
_initDefineProp(this, 'defaultDate', _descriptor10, this);
_initDefineProp(this, 'debug', _descriptor10, this);
_initDefineProp(this, 'disabledDates', _descriptor11, this);
_initDefineProp(this, 'defaultDate', _descriptor11, this);
_initDefineProp(this, 'disabledHours', _descriptor12, this);
_initDefineProp(this, 'disabledDates', _descriptor12, this);
_initDefineProp(this, 'disabledTimeIntervals', _descriptor13, this);
_initDefineProp(this, 'disabledHours', _descriptor13, this);
_initDefineProp(this, 'enabledDates', _descriptor14, this);
_initDefineProp(this, 'disabledTimeIntervals', _descriptor14, this);
_initDefineProp(this, 'enabledHours', _descriptor15, this);
_initDefineProp(this, 'enabledDates', _descriptor15, this);
_initDefineProp(this, 'extraFormats', _descriptor16, this);
_initDefineProp(this, 'enabledHours', _descriptor16, this);
_initDefineProp(this, 'focusOnShow', _descriptor17, this);
_initDefineProp(this, 'extraFormats', _descriptor17, this);
_initDefineProp(this, 'format', _descriptor18, this);
_initDefineProp(this, 'focusOnShow', _descriptor18, this);
_initDefineProp(this, 'icons', _descriptor19, this);
_initDefineProp(this, 'format', _descriptor19, this);
_initDefineProp(this, 'ignoreReadonly', _descriptor20, this);
_initDefineProp(this, 'icons', _descriptor20, this);
_initDefineProp(this, 'keepInvalid', _descriptor21, this);
_initDefineProp(this, 'ignoreReadonly', _descriptor21, this);
_initDefineProp(this, 'keepOpen', _descriptor22, this);
_initDefineProp(this, 'keepInvalid', _descriptor22, this);
_initDefineProp(this, 'inline', _descriptor23, this);
_initDefineProp(this, 'keepOpen', _descriptor23, this);
_initDefineProp(this, 'locale', _descriptor24, this);
_initDefineProp(this, 'inline', _descriptor24, this);
_initDefineProp(this, 'maxDate', _descriptor25, this);
_initDefineProp(this, 'locale', _descriptor25, this);
_initDefineProp(this, 'minDate', _descriptor26, this);
_initDefineProp(this, 'maxDate', _descriptor26, this);
_initDefineProp(this, 'showClear', _descriptor27, this);
_initDefineProp(this, 'minDate', _descriptor27, this);
_initDefineProp(this, 'showClose', _descriptor28, this);
_initDefineProp(this, 'showClear', _descriptor28, this);
_initDefineProp(this, 'showTodayButton', _descriptor29, this);
_initDefineProp(this, 'showClose', _descriptor29, this);
_initDefineProp(this, 'sideBySide', _descriptor30, this);
_initDefineProp(this, 'showTodayButton', _descriptor30, this);
_initDefineProp(this, 'stepping', _descriptor31, this);
_initDefineProp(this, 'sideBySide', _descriptor31, this);
_initDefineProp(this, 'toolbarPlacement', _descriptor32, this);
_initDefineProp(this, 'stepping', _descriptor32, this);
_initDefineProp(this, 'useCurrent', _descriptor33, this);
_initDefineProp(this, 'toolbarPlacement', _descriptor33, this);
_initDefineProp(this, 'useStrict', _descriptor34, this);
_initDefineProp(this, 'useCurrent', _descriptor34, this);
_initDefineProp(this, 'viewDate', _descriptor35, this);
_initDefineProp(this, 'useStrict', _descriptor35, this);
_initDefineProp(this, 'viewMode', _descriptor36, this);
_initDefineProp(this, 'viewDate', _descriptor36, this);
_initDefineProp(this, 'widgetParent', _descriptor37, this);
_initDefineProp(this, 'viewMode', _descriptor37, this);
_initDefineProp(this, 'widgetPositioning', _descriptor38, this);
_initDefineProp(this, 'widgetParent', _descriptor38, this);
_initDefineProp(this, 'widgetPositioning', _descriptor39, this);
_initDefineProp(this, 'onHide', _descriptor40, this);
_initDefineProp(this, 'onShow', _descriptor41, this);
_initDefineProp(this, 'onChange', _descriptor42, this);
_initDefineProp(this, 'onError', _descriptor43, this);
_initDefineProp(this, 'onUpdate', _descriptor44, this);
this.events = {};

@@ -158,2 +170,6 @@ this.methods = {};

AbpDatetimePickerCustomElement.prototype.bind = function bind() {
this.model = moment(this.model) || moment();
};
AbpDatetimePickerCustomElement.prototype.attached = function attached() {

@@ -172,2 +188,3 @@ var _this = this;

this.domElm.on('dp.change', function (e) {
_this.model = moment(e.date);
_this.value = moment(e.date).format(_this.format);

@@ -350,11 +367,14 @@ });

initializer: null
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, 'value', [_dec3], {
}), _descriptor2 = _applyDecoratedDescriptor(_class2.prototype, 'model', [_dec3], {
enumerable: true,
initializer: null
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, 'iconSet', [bindable], {
}), _descriptor3 = _applyDecoratedDescriptor(_class2.prototype, 'value', [_dec4], {
enumerable: true,
initializer: null
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, 'iconBase', [bindable], {
enumerable: true,
initializer: function initializer() {
return 'glyphicon';
}
}), _descriptor4 = _applyDecoratedDescriptor(_class2.prototype, 'allowInputToggle', [bindable], {
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, 'allowInputToggle', [bindable], {
enumerable: true,

@@ -364,3 +384,3 @@ initializer: function initializer() {

}
}), _descriptor5 = _applyDecoratedDescriptor(_class2.prototype, 'calendarWeeks', [bindable], {
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, 'calendarWeeks', [bindable], {
enumerable: true,

@@ -370,3 +390,3 @@ initializer: function initializer() {

}
}), _descriptor6 = _applyDecoratedDescriptor(_class2.prototype, 'collapse', [bindable], {
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, 'collapse', [bindable], {
enumerable: true,

@@ -376,3 +396,3 @@ initializer: function initializer() {

}
}), _descriptor7 = _applyDecoratedDescriptor(_class2.prototype, 'daysOfWeekDisabled', [bindable], {
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, 'daysOfWeekDisabled', [bindable], {
enumerable: true,

@@ -382,3 +402,3 @@ initializer: function initializer() {

}
}), _descriptor8 = _applyDecoratedDescriptor(_class2.prototype, 'dayViewHeaderFormat', [bindable], {
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, 'dayViewHeaderFormat', [bindable], {
enumerable: true,

@@ -388,3 +408,3 @@ initializer: function initializer() {

}
}), _descriptor9 = _applyDecoratedDescriptor(_class2.prototype, 'debug', [bindable], {
}), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, 'debug', [bindable], {
enumerable: true,

@@ -394,3 +414,3 @@ initializer: function initializer() {

}
}), _descriptor10 = _applyDecoratedDescriptor(_class2.prototype, 'defaultDate', [bindable], {
}), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, 'defaultDate', [bindable], {
enumerable: true,

@@ -400,3 +420,3 @@ initializer: function initializer() {

}
}), _descriptor11 = _applyDecoratedDescriptor(_class2.prototype, 'disabledDates', [bindable], {
}), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, 'disabledDates', [bindable], {
enumerable: true,

@@ -406,3 +426,3 @@ initializer: function initializer() {

}
}), _descriptor12 = _applyDecoratedDescriptor(_class2.prototype, 'disabledHours', [bindable], {
}), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, 'disabledHours', [bindable], {
enumerable: true,

@@ -412,3 +432,3 @@ initializer: function initializer() {

}
}), _descriptor13 = _applyDecoratedDescriptor(_class2.prototype, 'disabledTimeIntervals', [bindable], {
}), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, 'disabledTimeIntervals', [bindable], {
enumerable: true,

@@ -418,3 +438,3 @@ initializer: function initializer() {

}
}), _descriptor14 = _applyDecoratedDescriptor(_class2.prototype, 'enabledDates', [bindable], {
}), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, 'enabledDates', [bindable], {
enumerable: true,

@@ -424,3 +444,3 @@ initializer: function initializer() {

}
}), _descriptor15 = _applyDecoratedDescriptor(_class2.prototype, 'enabledHours', [bindable], {
}), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, 'enabledHours', [bindable], {
enumerable: true,

@@ -430,3 +450,3 @@ initializer: function initializer() {

}
}), _descriptor16 = _applyDecoratedDescriptor(_class2.prototype, 'extraFormats', [bindable], {
}), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, 'extraFormats', [bindable], {
enumerable: true,

@@ -436,3 +456,3 @@ initializer: function initializer() {

}
}), _descriptor17 = _applyDecoratedDescriptor(_class2.prototype, 'focusOnShow', [bindable], {
}), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, 'focusOnShow', [bindable], {
enumerable: true,

@@ -442,3 +462,3 @@ initializer: function initializer() {

}
}), _descriptor18 = _applyDecoratedDescriptor(_class2.prototype, 'format', [bindable], {
}), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, 'format', [bindable], {
enumerable: true,

@@ -448,6 +468,6 @@ initializer: function initializer() {

}
}), _descriptor19 = _applyDecoratedDescriptor(_class2.prototype, 'icons', [bindable], {
}), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, 'icons', [bindable], {
enumerable: true,
initializer: null
}), _descriptor20 = _applyDecoratedDescriptor(_class2.prototype, 'ignoreReadonly', [bindable], {
}), _descriptor21 = _applyDecoratedDescriptor(_class2.prototype, 'ignoreReadonly', [bindable], {
enumerable: true,

@@ -457,3 +477,3 @@ initializer: function initializer() {

}
}), _descriptor21 = _applyDecoratedDescriptor(_class2.prototype, 'keepInvalid', [bindable], {
}), _descriptor22 = _applyDecoratedDescriptor(_class2.prototype, 'keepInvalid', [bindable], {
enumerable: true,

@@ -463,3 +483,3 @@ initializer: function initializer() {

}
}), _descriptor22 = _applyDecoratedDescriptor(_class2.prototype, 'keepOpen', [bindable], {
}), _descriptor23 = _applyDecoratedDescriptor(_class2.prototype, 'keepOpen', [bindable], {
enumerable: true,

@@ -469,3 +489,3 @@ initializer: function initializer() {

}
}), _descriptor23 = _applyDecoratedDescriptor(_class2.prototype, 'inline', [bindable], {
}), _descriptor24 = _applyDecoratedDescriptor(_class2.prototype, 'inline', [bindable], {
enumerable: true,

@@ -475,3 +495,3 @@ initializer: function initializer() {

}
}), _descriptor24 = _applyDecoratedDescriptor(_class2.prototype, 'locale', [bindable], {
}), _descriptor25 = _applyDecoratedDescriptor(_class2.prototype, 'locale', [bindable], {
enumerable: true,

@@ -481,3 +501,3 @@ initializer: function initializer() {

}
}), _descriptor25 = _applyDecoratedDescriptor(_class2.prototype, 'maxDate', [bindable], {
}), _descriptor26 = _applyDecoratedDescriptor(_class2.prototype, 'maxDate', [bindable], {
enumerable: true,

@@ -487,3 +507,3 @@ initializer: function initializer() {

}
}), _descriptor26 = _applyDecoratedDescriptor(_class2.prototype, 'minDate', [bindable], {
}), _descriptor27 = _applyDecoratedDescriptor(_class2.prototype, 'minDate', [bindable], {
enumerable: true,

@@ -493,3 +513,3 @@ initializer: function initializer() {

}
}), _descriptor27 = _applyDecoratedDescriptor(_class2.prototype, 'showClear', [bindable], {
}), _descriptor28 = _applyDecoratedDescriptor(_class2.prototype, 'showClear', [bindable], {
enumerable: true,

@@ -499,3 +519,3 @@ initializer: function initializer() {

}
}), _descriptor28 = _applyDecoratedDescriptor(_class2.prototype, 'showClose', [bindable], {
}), _descriptor29 = _applyDecoratedDescriptor(_class2.prototype, 'showClose', [bindable], {
enumerable: true,

@@ -505,3 +525,3 @@ initializer: function initializer() {

}
}), _descriptor29 = _applyDecoratedDescriptor(_class2.prototype, 'showTodayButton', [bindable], {
}), _descriptor30 = _applyDecoratedDescriptor(_class2.prototype, 'showTodayButton', [bindable], {
enumerable: true,

@@ -511,3 +531,3 @@ initializer: function initializer() {

}
}), _descriptor30 = _applyDecoratedDescriptor(_class2.prototype, 'sideBySide', [bindable], {
}), _descriptor31 = _applyDecoratedDescriptor(_class2.prototype, 'sideBySide', [bindable], {
enumerable: true,

@@ -517,3 +537,3 @@ initializer: function initializer() {

}
}), _descriptor31 = _applyDecoratedDescriptor(_class2.prototype, 'stepping', [bindable], {
}), _descriptor32 = _applyDecoratedDescriptor(_class2.prototype, 'stepping', [bindable], {
enumerable: true,

@@ -523,3 +543,3 @@ initializer: function initializer() {

}
}), _descriptor32 = _applyDecoratedDescriptor(_class2.prototype, 'toolbarPlacement', [bindable], {
}), _descriptor33 = _applyDecoratedDescriptor(_class2.prototype, 'toolbarPlacement', [bindable], {
enumerable: true,

@@ -529,3 +549,3 @@ initializer: function initializer() {

}
}), _descriptor33 = _applyDecoratedDescriptor(_class2.prototype, 'useCurrent', [bindable], {
}), _descriptor34 = _applyDecoratedDescriptor(_class2.prototype, 'useCurrent', [bindable], {
enumerable: true,

@@ -535,3 +555,3 @@ initializer: function initializer() {

}
}), _descriptor34 = _applyDecoratedDescriptor(_class2.prototype, 'useStrict', [bindable], {
}), _descriptor35 = _applyDecoratedDescriptor(_class2.prototype, 'useStrict', [bindable], {
enumerable: true,

@@ -541,3 +561,3 @@ initializer: function initializer() {

}
}), _descriptor35 = _applyDecoratedDescriptor(_class2.prototype, 'viewDate', [bindable], {
}), _descriptor36 = _applyDecoratedDescriptor(_class2.prototype, 'viewDate', [bindable], {
enumerable: true,

@@ -547,3 +567,3 @@ initializer: function initializer() {

}
}), _descriptor36 = _applyDecoratedDescriptor(_class2.prototype, 'viewMode', [bindable], {
}), _descriptor37 = _applyDecoratedDescriptor(_class2.prototype, 'viewMode', [bindable], {
enumerable: true,

@@ -553,3 +573,3 @@ initializer: function initializer() {

}
}), _descriptor37 = _applyDecoratedDescriptor(_class2.prototype, 'widgetParent', [bindable], {
}), _descriptor38 = _applyDecoratedDescriptor(_class2.prototype, 'widgetParent', [bindable], {
enumerable: true,

@@ -559,3 +579,3 @@ initializer: function initializer() {

}
}), _descriptor38 = _applyDecoratedDescriptor(_class2.prototype, 'widgetPositioning', [bindable], {
}), _descriptor39 = _applyDecoratedDescriptor(_class2.prototype, 'widgetPositioning', [bindable], {
enumerable: true,

@@ -568,2 +588,17 @@ initializer: function initializer() {

}
}), _descriptor40 = _applyDecoratedDescriptor(_class2.prototype, 'onHide', [bindable], {
enumerable: true,
initializer: null
}), _descriptor41 = _applyDecoratedDescriptor(_class2.prototype, 'onShow', [bindable], {
enumerable: true,
initializer: null
}), _descriptor42 = _applyDecoratedDescriptor(_class2.prototype, 'onChange', [bindable], {
enumerable: true,
initializer: null
}), _descriptor43 = _applyDecoratedDescriptor(_class2.prototype, 'onError', [bindable], {
enumerable: true,
initializer: null
}), _descriptor44 = _applyDecoratedDescriptor(_class2.prototype, 'onUpdate', [bindable], {
enumerable: true,
initializer: null
})), _class2)) || _class));

@@ -570,0 +605,0 @@

{
"name": "aurelia-bootstrap-datetimepicker",
"version": "0.3.2",
"version": "0.3.3",
"description": "An Aurelia Custom Element for the 3rd party addon [Eonasdan Bootstrap Datepicker]",

@@ -5,0 +5,0 @@ "keywords": [

@@ -16,2 +16,4 @@ # Aurelia-Bootstrap-Datetimepicker

_**NOTE:** Our Custom Element has an extra option (`iconBase`) that is not found in the 3rd party library and it supports 2 possible `iconBase` which are ([default] `glyphicon` or `font-awesome`). You can define it this way: `<abp-datetime-picker icon-base="font-awesome"></abp-datetime-picker>`_
Example

@@ -18,0 +20,0 @@

@@ -10,6 +10,7 @@ import {inject, bindable, bindingMode} from 'aurelia-framework';

@bindable({defaultBindingMode: bindingMode.twoWay}) element;
@bindable({defaultBindingMode: bindingMode.twoWay}) model;
@bindable({defaultBindingMode: bindingMode.twoWay}) value;
// plugin own variables
@bindable iconSet = 'glyphicon';
@bindable iconBase = 'glyphicon';

@@ -56,2 +57,9 @@ // options (from the View), with some defaults

// events (from the View)
@bindable onHide;
@bindable onShow;
@bindable onChange;
@bindable onError;
@bindable onUpdate;
// variables

@@ -66,2 +74,6 @@ events = {};

bind() {
this.model = moment(this.model) || moment();
}
attached() {

@@ -81,2 +93,3 @@ // reference to the DOM element

this.domElm.on('dp.change', (e) => {
this.model = moment(e.date);
this.value = moment(e.date).format(this.format);

@@ -83,0 +96,0 @@ });

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc