Skip to content

Commit

Permalink
Updates dist and bumps version to 1.1.3.
Browse files Browse the repository at this point in the history
  • Loading branch information
istrau3 committed Feb 24, 2017
1 parent 7691319 commit 049d3d8
Show file tree
Hide file tree
Showing 9 changed files with 147 additions and 37 deletions.
1 change: 1 addition & 0 deletions dist/amd/aurelia-flatpickr.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<template>
<require from="flatpickr/dist/flatpickr.css"></require>
<input class="aurelia-flatpickr" type="text" placeholder="Select Date..">
</template>
58 changes: 48 additions & 10 deletions dist/amd/aurelia-flatpickr.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
define(['exports', 'aurelia-framework', 'flatpickr', 'flatpickr/dist/flatpickr.css'], function (exports, _aureliaFramework, _flatpickr) {
define(['exports', 'aurelia-framework', 'flatpickr'], function (exports, _aureliaFramework, _flatpickr) {
'use strict';

Object.defineProperty(exports, "__esModule", {
Expand All @@ -14,6 +14,12 @@ define(['exports', 'aurelia-framework', 'flatpickr', 'flatpickr/dist/flatpickr.c
};
}

var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
return typeof obj;
} : function (obj) {
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
};

function _initDefineProp(target, property, descriptor, context) {
if (!descriptor) return;
Object.defineProperty(target, property, {
Expand Down Expand Up @@ -146,24 +152,56 @@ define(['exports', 'aurelia-framework', 'flatpickr', 'flatpickr/dist/flatpickr.c

var modelDates = Array.isArray(model) ? model : [model];

for (var d = 0; d < modelDates.length; d++) {
var _loop = function _loop(d) {
var modelDate = modelDates[d];

if (view.indexOf(modelDate) > -1) {
continue;
if (view.findIndex(function (v) {
return v.valueOf() === modelDate.valueOf();
}) > -1) {
return 'continue';
}

return false;
return {
v: false
};
};

for (var d = 0; d < modelDates.length; d++) {
var _ret = _loop(d);

switch (_ret) {
case 'continue':
continue;

default:
if ((typeof _ret === 'undefined' ? 'undefined' : _typeof(_ret)) === "object") return _ret.v;
}
}

for (var _d = 0; _d < view.length; _d++) {
var viewDate = view[_d];
var _loop2 = function _loop2(d) {
var viewDate = view[d];

if (modelDates.indexOf(viewDate) > -1) {
continue;
if (modelDates.findIndex(function (m) {
return m.valueOf() === viewDate.valueOf();
}) > -1) {
return 'continue';
}

return false;
return {
v: false
};
};

for (var d = 0; d < view.length; d++) {
var _ret2 = _loop2(d);

switch (_ret2) {
case 'continue':
continue;

default:
if ((typeof _ret2 === 'undefined' ? 'undefined' : _typeof(_ret2)) === "object") return _ret2.v;
}
}

return true;
Expand Down
1 change: 1 addition & 0 deletions dist/commonjs/aurelia-flatpickr.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<template>
<require from="flatpickr/dist/flatpickr.css"></require>
<input class="aurelia-flatpickr" type="text" placeholder="Select Date..">
</template>
54 changes: 43 additions & 11 deletions dist/commonjs/aurelia-flatpickr.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ Object.defineProperty(exports, "__esModule", {
});
exports.AureliaFlatpickrCustomElement = undefined;

var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };

var _dec, _dec2, _class, _desc, _value, _class2, _descriptor, _descriptor2;

var _aureliaFramework = require('aurelia-framework');
Expand All @@ -13,8 +15,6 @@ var _flatpickr = require('flatpickr');

var _flatpickr2 = _interopRequireDefault(_flatpickr);

require('flatpickr/dist/flatpickr.css');

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

function _initDefineProp(target, property, descriptor, context) {
Expand Down Expand Up @@ -143,24 +143,56 @@ var AureliaFlatpickrCustomElement = exports.AureliaFlatpickrCustomElement = (_de

var modelDates = Array.isArray(model) ? model : [model];

for (var d = 0; d < modelDates.length; d++) {
var _loop = function _loop(d) {
var modelDate = modelDates[d];

if (view.indexOf(modelDate) > -1) {
continue;
if (view.findIndex(function (v) {
return v.valueOf() === modelDate.valueOf();
}) > -1) {
return 'continue';
}

return false;
return {
v: false
};
};

for (var d = 0; d < modelDates.length; d++) {
var _ret = _loop(d);

switch (_ret) {
case 'continue':
continue;

default:
if ((typeof _ret === 'undefined' ? 'undefined' : _typeof(_ret)) === "object") return _ret.v;
}
}

for (var _d = 0; _d < view.length; _d++) {
var viewDate = view[_d];
var _loop2 = function _loop2(d) {
var viewDate = view[d];

if (modelDates.indexOf(viewDate) > -1) {
continue;
if (modelDates.findIndex(function (m) {
return m.valueOf() === viewDate.valueOf();
}) > -1) {
return 'continue';
}

return false;
return {
v: false
};
};

for (var d = 0; d < view.length; d++) {
var _ret2 = _loop2(d);

switch (_ret2) {
case 'continue':
continue;

default:
if ((typeof _ret2 === 'undefined' ? 'undefined' : _typeof(_ret2)) === "object") return _ret2.v;
}
}

return true;
Expand Down
1 change: 1 addition & 0 deletions dist/es2015/aurelia-flatpickr.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<template>
<require from="flatpickr/dist/flatpickr.css"></require>
<input class="aurelia-flatpickr" type="text" placeholder="Select Date..">
</template>
5 changes: 2 additions & 3 deletions dist/es2015/aurelia-flatpickr.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ function _initializerWarningHelper(descriptor, context) {

import { inject, bindable, bindingMode } from 'aurelia-framework';
import Flatpickr from 'flatpickr';
import 'flatpickr/dist/flatpickr.css';

const defaultConfig = {
enableTime: true,
Expand Down Expand Up @@ -122,7 +121,7 @@ export let AureliaFlatpickrCustomElement = (_dec = inject(Element), _dec2 = bind
for (let d = 0; d < modelDates.length; d++) {
let modelDate = modelDates[d];

if (view.indexOf(modelDate) > -1) {
if (view.findIndex(v => v.valueOf() === modelDate.valueOf()) > -1) {
continue;
}

Expand All @@ -132,7 +131,7 @@ export let AureliaFlatpickrCustomElement = (_dec = inject(Element), _dec2 = bind
for (let d = 0; d < view.length; d++) {
let viewDate = view[d];

if (modelDates.indexOf(viewDate) > -1) {
if (modelDates.findIndex(m => m.valueOf() === viewDate.valueOf()) > -1) {
continue;
}

Expand Down
1 change: 1 addition & 0 deletions dist/system/aurelia-flatpickr.html
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
<template>
<require from="flatpickr/dist/flatpickr.css"></require>
<input class="aurelia-flatpickr" type="text" placeholder="Select Date..">
</template>
61 changes: 49 additions & 12 deletions dist/system/aurelia-flatpickr.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
'use strict';

System.register(['aurelia-framework', 'flatpickr', 'flatpickr/dist/flatpickr.css'], function (_export, _context) {
System.register(['aurelia-framework', 'flatpickr'], function (_export, _context) {
"use strict";

var inject, bindable, bindingMode, Flatpickr, _dec, _dec2, _class, _desc, _value, _class2, _descriptor, _descriptor2, defaultConfig, AureliaFlatpickrCustomElement;
var inject, bindable, bindingMode, Flatpickr, _typeof, _dec, _dec2, _class, _desc, _value, _class2, _descriptor, _descriptor2, defaultConfig, AureliaFlatpickrCustomElement;

function _initDefineProp(target, property, descriptor, context) {
if (!descriptor) return;
Expand Down Expand Up @@ -61,8 +61,13 @@ System.register(['aurelia-framework', 'flatpickr', 'flatpickr/dist/flatpickr.css
bindingMode = _aureliaFramework.bindingMode;
}, function (_flatpickr) {
Flatpickr = _flatpickr.default;
}, function (_flatpickrDistFlatpickrCss) {}],
}],
execute: function () {
_typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
return typeof obj;
} : function (obj) {
return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
};
defaultConfig = {
enableTime: true,
altInput: true,
Expand Down Expand Up @@ -144,24 +149,56 @@ System.register(['aurelia-framework', 'flatpickr', 'flatpickr/dist/flatpickr.css

var modelDates = Array.isArray(model) ? model : [model];

for (var d = 0; d < modelDates.length; d++) {
var _loop = function _loop(d) {
var modelDate = modelDates[d];

if (view.indexOf(modelDate) > -1) {
continue;
if (view.findIndex(function (v) {
return v.valueOf() === modelDate.valueOf();
}) > -1) {
return 'continue';
}

return false;
return {
v: false
};
};

for (var d = 0; d < modelDates.length; d++) {
var _ret = _loop(d);

switch (_ret) {
case 'continue':
continue;

default:
if ((typeof _ret === 'undefined' ? 'undefined' : _typeof(_ret)) === "object") return _ret.v;
}
}

for (var _d = 0; _d < view.length; _d++) {
var viewDate = view[_d];
var _loop2 = function _loop2(d) {
var viewDate = view[d];

if (modelDates.indexOf(viewDate) > -1) {
continue;
if (modelDates.findIndex(function (m) {
return m.valueOf() === viewDate.valueOf();
}) > -1) {
return 'continue';
}

return false;
return {
v: false
};
};

for (var d = 0; d < view.length; d++) {
var _ret2 = _loop2(d);

switch (_ret2) {
case 'continue':
continue;

default:
if ((typeof _ret2 === 'undefined' ? 'undefined' : _typeof(_ret2)) === "object") return _ret2.v;
}
}

return true;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "aurelia-flatpickr",
"version": "1.1.2",
"version": "1.1.3",
"description": "An aurelia flatpickr component.",
"keywords": [
"aurelia",
Expand Down

0 comments on commit 049d3d8

Please sign in to comment.