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

ember-pikaday

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ember-pikaday - npm Package Compare versions

Comparing version 2.1.0 to 2.2.0

4

addon/helpers/pikaday.js

@@ -12,4 +12,4 @@ import Ember from 'ember';

var PikadayInteractor = {
selectorForMonthSelect: '.pika-select-month:visible',
selectorForYearSelect: '.pika-select-year:visible',
selectorForMonthSelect: '.pika-lendar:visible .pika-select-month',
selectorForYearSelect: '.pika-lendar:visible .pika-select-year',
selectDate: function(date) {

@@ -16,0 +16,0 @@ var day = date.getDate();

@@ -5,3 +5,7 @@ /* globals Pikaday */

const { isPresent } = Ember;
const {
isPresent,
run,
} = Ember;
const assign = Ember.assign || Ember.merge;

@@ -14,3 +18,13 @@ export default Ember.Mixin.create({

if (isPresent(this.get('i18n'))) {
options.i18n = this.get('i18n');
if(isPresent(this.get('i18n').t)) {
options.i18n = {
previousMonth : this.get('i18n').t('previousMonth').toString(),
nextMonth : this.get('i18n').t('nextMonth').toString(),
months : this.get('i18n').t('months').toString().split(','),
weekdays : this.get('i18n').t('weekdays').toString().split(','),
weekdaysShort : this.get('i18n').t('weekdaysShort').toString().split(',')
};
} else {
options.i18n = this.get('i18n');
}
}

@@ -24,3 +38,3 @@ if (isPresent(this.get('position'))) {

Ember.merge(options, this.get('options') || {});
assign(options, this.get('options') || {});
return options;

@@ -37,6 +51,6 @@ }

bound: this.get('pikadayContainer') ? false : true,
onOpen: Ember.run.bind(this, this.onPikadayOpen),
onClose: Ember.run.bind(this, this.onPikadayClose),
onSelect: Ember.run.bind(this, this.onPikadaySelect),
onDraw: Ember.run.bind(this, this.onPikadayRedraw),
onOpen: run.bind(this, this.onPikadayOpen),
onClose: run.bind(this, this.onPikadayClose),
onSelect: run.bind(this, this.onPikadaySelect),
onDraw: run.bind(this, this.onPikadayRedraw),
firstDay: (typeof firstDay !== 'undefined') ? parseInt(firstDay, 10) : 1,

@@ -53,5 +67,5 @@ format: this.get('format') || 'DD.MM.YYYY',

this._super(...arguments);
this.setPikadayDate();
this.setMinDate();
this.setMaxDate();
this.setPikadayDate();

@@ -94,3 +108,5 @@ if(newAttrs.options) {

if (this.get('minDate')) {
this.get('pikaday').setMinDate(this.get('minDate'));
run.later(() => {
this.get('pikaday').setMinDate(this.get('minDate'));
});
}

@@ -101,3 +117,5 @@ },

if (this.get('maxDate')) {
this.get('pikaday').setMaxDate(this.get('maxDate'));
run.later(() => {
this.get('pikaday').setMaxDate(this.get('maxDate'));
});
}

@@ -104,0 +122,0 @@ },

@@ -5,8 +5,4 @@ module.exports = {

afterInstall: function() {
var that = this;
return this.addBowerPackageToProject('pikaday').then(function() {
return that.addAddonToProject('ember-cli-moment-shim', '1.1.0');
});
return this.addAddonToProject('ember-cli-moment-shim', '2.1.0');
}
};
[View 1.X CHANGELOG](https://github.com/edgycircle/ember-pikaday/blob/stable-1/CHANGELOG.md)
## 2.2.0
- Fix test helper. (Contribution by [@duizendnegen](https://github.com/duizendnegen))
- Use Pikaday through npm instead of bower. (Contribution by [@josemarluedke](https://github.com/josemarluedke))
- Fix setting date to wait after min / max date to be updated. (Contribution by [@sl249](https://github.com/sl249))
- Fix firing min/max date changes. (Contribution by [@patrickberkeley](https://github.com/patrickberkeley))
- Basic Fastboot compatibility, by merely rendering an input and excluding Pikaday.js in Fastboot mode. (Contribution by [@josemarluedke](https://github.com/josemarluedke))
- Support for modern `ember-i18n`. (Contribution by [@lcpriest](https://github.com/lcpriest))
## 2.1.0

@@ -4,0 +12,0 @@ - Remove Moment.js deprecation warning due to passed non-parsable arguments. (Contribution by [@mdentremont](https://github.com/mdentremont))

@@ -7,18 +7,12 @@ /* jshint node: true */

included: function(app) {
// When ember-pikaday is used in another addon we have to do some work
// upfront. See this issue for more information:
// https://github.com/ember-cli/ember-cli/issues/3718
if (typeof app.import !== 'function' && app.app) {
app = app.app;
options: {
nodeAssets: {
pikaday: {
import: [
{ enabled: process.env.EMBER_CLI_FASTBOOT !== 'true', path: 'pikaday.js' },
'css/pikaday.css'
]
}
}
this._super.included(app);
var options = app.options.emberPikaday || {};
if (!options.excludePikadayAssets) {
app.import(app.bowerDirectory + '/pikaday/pikaday.js');
app.import(app.bowerDirectory + '/pikaday/css/pikaday.css');
}
}
};
{
"name": "ember-pikaday",
"version": "2.1.0",
"version": "2.2.0",
"description": "A tested datepicker component for Ember CLI projects including test helpers for your own acceptance tests.",

@@ -12,3 +12,3 @@ "directories": {

"start": "ember server",
"test": "ember try:testall"
"test": "ember try:each"
},

@@ -23,4 +23,4 @@ "repository": "https://github.com/edgycircle/ember-pikaday",

"broccoli-asset-rev": "^2.4.2",
"ember-ajax": "0.7.1",
"ember-cli": "2.5.1",
"ember-ajax": "^2.0.1",
"ember-cli": "2.8.0",
"ember-cli-app-version": "^1.0.0",

@@ -30,7 +30,8 @@ "ember-cli-dependency-checker": "^1.2.0",

"ember-cli-inject-live-reload": "^1.4.0",
"ember-cli-moment-shim": "~0.6.2",
"ember-cli-jshint": "^1.0.0",
"ember-cli-qunit": "^1.4.0",
"ember-cli-release": "0.2.8",
"ember-cli-moment-shim": "~2.1.0",
"ember-cli-qunit": "^2.1.0",
"ember-cli-release": "^0.2.9",
"ember-cli-sri": "^2.1.0",
"ember-cli-test-loader": "^1.1.0",
"ember-cli-uglify": "^1.2.0",

@@ -41,3 +42,2 @@ "ember-disable-prototype-extensions": "^1.1.0",

"ember-resolver": "^2.0.3",
"ember-try": "^0.2.2",
"loader.js": "^4.0.1"

@@ -52,3 +52,5 @@ },

"ember-cli-babel": "^5.1.6",
"ember-cli-htmlbars": "^1.0.3"
"ember-cli-htmlbars": "^1.0.3",
"ember-cli-node-assets": "^0.1.4",
"pikaday": "^1.4.0"
},

@@ -55,0 +57,0 @@ "ember-addon": {

@@ -161,3 +161,3 @@ # ember-pikaday [![Build Status](https://travis-ci.org/edgycircle/ember-pikaday.svg)](https://travis-ci.org/edgycircle/ember-pikaday)

<label>
{{pikaday-input options=(hash numberOfMonths=2 disableWeekends=true)}}
{{pikaday-input options=(hash numberOfMonths=2 disableWeekends=true disableDayFn=(action 'someAction'))}}
</label>

@@ -164,0 +164,0 @@ ```

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