GithubHelp home page GithubHelp logo

amirkabirdataminers / adm-datetimepicker Goto Github PK

View Code? Open in Web Editor NEW
244.0 244.0 93.0 1014 KB

Pure AngularJs dateTimePicker

Home Page: http://amirkabirdataminers.github.io/ADM-dateTimePicker

License: MIT License

CSS 69.41% HTML 30.59%
adm adm-datetimepicker adm-dtp angularjs datepicker datetimepicker gregorian-calendar jalali-calendar persian-calendar

adm-datetimepicker's People

Contributors

mete-30 avatar

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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

adm-datetimepicker's Issues

Add start week day support

Currently there is no option to set a starting week day. Think it would be an awesome feature since most calendars in Europe start with Monday instead of Sunday

div elements overlap

I cant pick most of the days because my calendar is overlapped by timePickerContainer and datePickerContainer elements, so when i click on any day, instead it's changing the time. If i delete this elements in browser everything works perfectly fine. What can be the cause of this problem?

p.s: turns out i was using another module, which had .content rule in it's stylesheet, that caused the conflict.

Problem with rangePickers, when try to destroy the first one

سلام خسته نباشید و ممنون از تایم پیکر فوق العاده تون عزیز .... من از کد شما استفاده کردم به این صورت که یک بازه ی زمانی مشخص کردم و حالت زمان پابانی رو قفل شه تا زمانی که حالت آغاز زمانی می بایست پر شود اول ! ولی مشکلی که هست اینه که زمانی که کاربر زمان رو اشتباه وارد میکنه و وقتی میخواد زمان شروع رو تغییر برده نمیتونه چون زمان پابانی قفل هست به نظرم می بایست هر وقت روی زمان شروع کلیک میکنه زمان پایانی فیلدش رو اتوماتیک خالی کنه.. ممنون میشم راهنمایی بفرمایید

how set mindate for today

سلام و تشکر و از زحمت فوق العاده شما
چطوره میشه تاریخ شروع رو برای همان روز تنظیم کرد این تلاش من که نتیجه ای نداشت
<adm-dtp ng-model='event.startData' full-data="event.startData_detail" maxdate="{{event.endData_detail.unix}}" options='{dtpType:"date" , mindate:today}'></adm-dtp>

Missing Dependencies

@font-face { font-family: 'minifontawesome'; src: url("../fonts/font.svg#minifontawesomeregular") format("svg"); }

Fonts directory is not there with the package.
Have to change the css manually to another url for the fonts. Can help with that if you want.

[Request] AM/PM Time

Is is possible to do a mode with AM/PM instead of the 24 hour clock?
If this is not something you plan on adding could you give some recommendations on how I might modify this to do this.

Translate support

Can you remove "monthsNames" as "constants" and put it parametrizable? This constants can be defaults but parametrizable by provider or options variable.

And add translation for "Today" word too

disable past

hi.
how can I disable last dates?
thank you for nice library

set date with keyboard?

Is seems that the datepicker has does not allow to use keyboard to set date. sometime we want to set date with keyboard instead of popup form. thanks in advance

Add month and year picker

This datepicker is great! But one thing that is missing compared to Angular UI's datepicker is the ability to, from within the control itself, explicitly select months and years.

For example, if I open a datepicker and it defaults at "January 2016", if I need to go back to "February 1990", there isn't an easy way in the datepicker itself to do that.

multiSelect option

از اینکه این کامپوننت را در اختیار عموم گذاشتید سپاسگزارم
اگر امکانش هست ، ویژگی انتخاب چندتاریخ همزمان را به این کامپوننت اضافه کنید.

Option default - no date (= 'none')

Default is 'today', but what is the right option to have it blank, with no value un ng-model. False seems to work, but 'none' would be better, no ?

Ability to build with custom style

Thanks for your awesome angular directive. It works perfect.

I have noticed there is a ADM-dateTimePicker.scss file which the result of it is ADM-dateTimePicker.css thas is used as the main css file of date picker.

Do you have any plan to make it customizable in terms of look and feel? I mean there should be a way of changing ADM-dateTimePicker.scss and make a new build of the date picker with the new css rules.

The main reason I'm asking this, is to change date picker color pallet ( and of course other settings ) based on project user interface. It would be nice if you provide a setting.scss file.

ng-model returning formatted date, could we have option to have it back as javascript date format

Hi again,

I've try to initiate the ng-model with a javascript english datetime format and it is working as expected (format it as option chosen dd/mm/yyyy for french date), but when I get it back from ng-model variable, it return it as formatted option and not to regular english date time. It could be nice feature sometimes but I would have expected to have an option to force retrun in regular date format.

I know the full-date option could do the job, but you have then to handle it in the form submit code.

today() is not working correctly

There are some problems in today(), and I know some other people filled issues about it but here are my problems with ADM, and today() :

  • Today button needed to have a type="button", otherwise, it is trying to submit its parent form.
  • Icons are not included, I don't know if is there any dependencies for ADM?

Thank you
This date picker is nice and it's working good, but there are just some small problems.

Inline datepicker

It would be nice to have the possibility to display just the calendar inline, without a previous input.

Sending form by clicking in a button

Hey, first of all. Congratulations for the only user friendly angularjs datetimepicker that doesn't require 1 billions clicks from the user to set the date/time.

I found an issue with ADM which is when the component is inside a form and I click in the "Today" button, as the button is not set as type="Button", the form is submitted.

It looks very easy to fix but I don't know if I have enough knowledge of angularjs and git to make a pull request of this.

ATM-dateTimePicker Returns an error on Custom input template

I am using ADM-dateTimePicker and I here is my code to make a date picker:

 <adm-dtp ng-model='date5' full-data='date_details' options='{dtpType: "date&time", calType: "jalali", format: "YYYY/MM/DD-hh:mm", default: "today", multiple:false, freezeInput:true }'>
        <input type='text' ng-model='date5' dtp-input />
        <button dtp-toggle > Open calendar </button>
    </adm-dtp>

But, when I click on the Open calendar button, it returns:

TypeError: Cannot set property 'location' of undefined

What is the problem?

getting ng-model as gregorian datetime

Hi
I searched all around for angularJS datetime (Jalali/Gregorian) for last 8 months.Finally, I found "ADM-dateTimePicker".
I want to special thanks to everyone who involved in. It's perfect and almost covered all of my needs, simply.

I know you probability, considered for next publishes. But let me suggest:
It would be nice if there was an option to allowing use ng-model just as Gregorian or Jalali.

Thanks.
Morteza

Anuglar2 support

Is there any plan to rewrite date and time picker for Angular2?

Error when not assigning fulldata with angularjs 1.5

I'm have a new issue after upgrading to Angular 1.5.

Following error:http://errors.angularjs.org/1.5.0/$compile/nonassign?p0=undefined&p1=fullData&p2=admDtp

when call like this: <adm-dtp ng-model='item.Date_Ouverture' options='{format: "DD/MM/YYYY", autoClose: true}'">

Error not appearing when adding full-data
<adm-dtp ng-model='item.Date_Ouverture' options='{format: "DD/MM/YYYY", autoClose: true}' full-data="date_details_Ouverture">

Did I miss something ?

Add option to change month & day names

First comment: look very nice ! good job !

I will try to use it in one of my projet, but I would like to know if you could put in option the possibility to change language:

Example: The gregorian calendar in French would be:

  • gregorian: { monthsNames: ['Janvier', 'Février', 'Mars', 'Avril', 'Mai', 'Juin', 'Juillet', 'Août', 'Septembre', 'Octobre', 'Novembre', 'Décembre'],daysNames: ['Dim', 'Lun', 'Mar', 'Mer', 'Jeu', 'Ven', 'Sam'],
    today: 'Aujourd'hui'}

The second request would be to withdraw the possibility by option to change Calandar type.

I've found the way to do it on your code, but it would be nice to have it in future version.

Thanks.
Olivier

support webpack

can't use this with webpack.

the js works fine when i'm doing import "adm-dtp/dist/ADM-dateTimePicker" although would be better if i could just import "adm-dtp"
but the css does a-lot of troubles, seems like it contains many references to files the aren't there like on line 43: src: url("../fonts/font.svg#minifontawesomeregular") format("svg")
also including the scss doesn't work nor the minified css.

I would be happy to help if you want

Separate timePicker

Add dateTimePickerType to options, for separating timePicker and datePicker.

leap year bug

hi
when selected after leap year for example 1396/06/06 then open the calendar without select day (close out form) day increment auto(this bug in jalali calendar mode)

Two icons for navigating betweens months

Hi folks,

thank you for your great DateTimePicker for Jalali calendar, maybe the best out there!

I'm trying to integrate your ADM-DateTimePicker with ionic and angular in my App.
With that I'm facing the following issues:

  • There are many icons for selecting of months or navigating to other months.

image

Thank you for your help!

Best regards,
Reza

Error when typing the input by had with custom input

When I use the datetimepicker with an custom input element like that:

<adm-dtp ng-model='vm.entity.date_start' ng-change="vm.validateDate('start',vm.entity.date_start)" options="{multiple:false}" mindate="'{{vm.today}}'" > <div class="input-group date"> <input type="text" dtp-input class="form-control input-sm" name="start-date" ng-model='vm.entity.date_start' required > <span dtp-toggle class="input-group-addon"> <i class="fa fa-calendar"></i> </span> </div> </adm-dtp>

And i change the date in the input by hand i get this error in the console: TypeError: Cannot read property 'replace' of undefined

AngularJS when the html5Mode is enabled ....

Hi,
There seems to be a problem with AngularJS when the html5Mode is enabled that upon loading any url except / the icons are not displayed.
The error is: " NetworkError: A network error occurred. >> jquery.js - line: 5961 "

jQuery JavaScript Library v2.2.4

Popup div element should be added to document body

Thanks for your great datepicker. I've noticed a problem when opening the calendar popup, it can go behind some other part of the page which has a higher z-index than the container of the date picker, and there would be no way to bring it to front, since the popup element is added under the ADMdtp-container. I believe the common practice for popup div elements in web design is to add them as an immediate child of document body, so they can be properly brought to front using a z-index.

Thanks again

How to change calType with $scope variable

Hi

How to change calType of datepicker with $scope variable like this:

$scope.cal='gregorian';

 $scope.options = {
        calType: $scope.cal,
        default: 'today',
        multiple:false,
        autoClose:true
    };

Thanks

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.