GithubHelp home page GithubHelp logo

jkuri / ng-daterangepicker Goto Github PK

View Code? Open in Web Editor NEW
68.0 7.0 43.0 595 KB

Angular Date Range Picker inspired by PayPal's one

License: MIT License

TypeScript 39.89% HTML 31.24% CSS 24.58% JavaScript 4.30%
angular datepicker date datepicker-component angular-component ng2

ng-daterangepicker's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

ng-daterangepicker's Issues

Error: Unable to dynamically transpile ES module

Hi @jkuri !
I would like to use this package, so I installed and put into my angular2 project in the given way, but after running it I got an error.
Firtstly when I implemented it, how the tutorial written, I get http404 error, while app didn't find the package. So I put the following line into my system.config.js file:
'ng-daterangepicker': 'node_modules/ng-daterangepicker/ng-daterangepicker.js'
After that I run it again and I get following error:
Error: Unable to dynamically transpile ES module A loader plugin needs to be configured via SystemJS.config({ transpiler: 'transpiler-module' }). Instantiating http://localhost:8080/node_modules/ng-daterangepicker/ng-daterangepicker.js
Please help me, I want to use this package. Thanks

year selection

Can you add year selection button so that calendar automatically go to that particulate year... in same code

Not working if dates are in the future

Hi,

On demo, click on "start", click "next" arrow, to be in a couple of month. Try to select a day in "August 2017" for example. Nothing is happening.
Or more generaly, try to pick first date after the second date on first choice. (Before I made any choice)

Stéphane.

CSS not loaded

Hi, I added the code in various places as shown in the ReadMe to use the date range picker.

However, when the page hosting the date picker is shown, the CSS styles for the data range picker is not loaded. e.g. hero-bocy is not found

Is there any extra step needed?

Thanks

Setting default Date Range

Hi @jkuri

Is there any option to set default date?

<ng-daterangepicker [(ngModel)]="dateValue" [options]="options"></ng-daterangepicker>

dateValue: '2017/09/05-2017/09/17';

 this.options = {
      theme: 'default',
      range: 'tw',
      dayNames: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
      presetNames: ['This Month', 'Last Month', 'This Week', 'Last Week', 'This Year', 'Last Year', 'From', 'End'],
      dateFormat: 'yMd',
      outputFormat: 'YYYY/MM/DD',
      startOfWeek: 1
    };

Add new range

Is there anyway we can add custom range like like "Last 7 Days" in the selector?

Changelog and versioning

Hi,

Any plans for adding CHANGELOG.md to the repo? Would be useful.

BTW yarn info shows the following versions:

$ yarn info ng-daterangepicker
yarn info v0.23.2
{ name: 'ng-daterangepicker',
  description: 'AngularJS Daterangepicker',
  'dist-tags': { latest: '0.2.0' },
  versions: 
   [ '0.1.0',
     '0.1.1',
     '0.1.2',
     '0.2.0',
     '0.9.0' ],
  maintainers: 
   [ { name: 'jkuri',
       email: '[email protected]' } ],
  time: 
   { modified: '2017-03-28T21:42:57.378Z',
     created: '2015-09-20T11:27:44.293Z',
     '0.9.0': '2015-09-20T11:27:44.293Z',
     '0.1.0': '2017-03-10T00:05:01.722Z',
     '0.1.1': '2017-03-12T19:42:43.737Z',
     '0.1.2': '2017-03-15T20:01:07.561Z',
     '0.2.0': '2017-03-28T21:42:57.378Z' },

Is the 0.9.0 the latest one? Bit weird, as it's apparently released in 2015, the 0.2.0 seems to be the latest one.

Demo link is not working

The link provided as demo doesn't seems to be original link. Chrome complains privacy error and there no date picker found on the page. Page seems to me hijacked.

cant change the styles of calendar-container

capture
The component looks messy for a strange reason, so I wanted to change in the sass file (to change the width of calendar-container) but unfortunately even if I change in the sass file nothing changes

disable input field

How could i disable input field of this data-picker
user not allowed to be type anything in this data picker
is there any option for that or how to customise it

Won't compile without -aot

package.json:
"ngx-daterangepicker": "^0.7.0",

After some updates, now I have a new error:
Angular CLI: 1.7.3
Node: 7.4.0
OS: linux x64
Angular: 5.2.1
... animations, common, compiler, compiler-cli, core, forms
... http, language-service, platform-browser
... platform-browser-dynamic, platform-server, router

ERROR in ./node_modules/ngx-daterangepicker/src/ngx-daterangepicker/index.ts
Module build failed: Error: node_modules/ngx-daterangepicker/src/ngx-daterangepicker/index.ts is missing from the TypeScript compilation. Please make sure it is in your tsconfig via the 'files' or 'include' property.
The missing file seems to be part of a third party library. TS files in published libraries are often a sign of a badly packaged library. Please open an issue in the library repository to alert its author and ask them to package the library using the Angular Package Format (https://goo.gl/jB3GVv).
at AngularCompilerPlugin.getCompiledFile (node_modules//src/angular_compiler_plugin.js:674:23)
at plugin.done.then (node_modules//src/loader.js:467:39)
at process._tickCallback (internal/process/next_tick.js:103:7)

How to change default date?

Hi,

thanks for this plugin. I was wondering if the datepicker could be initialized with no dates?

Thanks,

Stéphane.

Change the language

Hi, I´m trying to integrate your datepicker into my angular 2 project, can you tell me if it is possible to change the names of the months, and if yes where?

Thank you

no work ng4 ...

Unexpected value 'undefined' exported by the module 'NgDateRangePickerModule'

Choose minus ...

Before all good work
i want to know if there is a possibility to choose hours min .. ?

How to enable the range selector ?

Hi, really nice component by the looks of it but i couldn't find a way of enabling the range buttons like in the demo pages. Would appreciate some documentation for that.

2017 Oct weekdays displayed wrongly

Hi, I really like this useful tool you developed.

But when I am using it in my project, occasionally I found the weekdays displayed was wrong.

To be specifically, 2017 Oct 1st should be Sunday, but appears to be Monday in ng-daterangepicker.

Can you review and make updates against this defect? Because I will feel really sorry to abort this very significant extension in my project.
2017-11-08 18 30 58

DateTIME range picker

Hi, really like your component and would like to use it for my current project.
But I need to select time as well. A bit like Angular 1 JS Moment Picker but using your excellent range automation.
Have you thought of extending this?

set min and max dates

There doesn't seem to be the ability to set min and max dates accessible in the date picker. This critical functionality for any generic date picker.

I'll likely start looking for alternative date picker due to this missing feature.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.