Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Most of the issues and requests done #88

Closed
wants to merge 254 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
254 commits
Select commit Hold shift + click to select a range
e429bfe
bower 1.5.4
hexadecy Feb 7, 2017
28020e7
#17 load script in index.html head
hexadecy Feb 7, 2017
e9a8759
Add id attribute to date picker and time picker
mak-pun Feb 10, 2017
c8c7060
Merge branch 'refs/heads/pr/6' into gh-pages
hexadecy Feb 12, 2017
f64334e
fix small js error
hexadecy Feb 12, 2017
48e50e7
1.5.5
hexadecy Feb 12, 2017
2d76cce
bump version 1.5.5
hexadecy Feb 12, 2017
22c0f82
change class name dtp-btn-ok to dtp-btn-today
mak-pun Feb 14, 2017
12a7bbf
Merge branch 'refs/heads/pr/7' into gh-pages
hexadecy Feb 15, 2017
2baabc1
#58 remove class md-input-focused after element blur
hexadecy Feb 15, 2017
8c00f2f
remove unused code
hexadecy Feb 16, 2017
c7794d1
version 1.5.6
hexadecy Feb 16, 2017
df0c8e9
1.5.6
hexadecy Feb 16, 2017
1570119
build dist
hexadecy Feb 16, 2017
9ddbc8c
change option name skipHide to multiple
visavis2k Feb 16, 2017
db83b84
Merge pull request #8 from visavis2k/master
hexadecy Feb 17, 2017
8ed3b43
gulp bump
hexadecy Feb 17, 2017
80c1700
bump version
hexadecy Feb 17, 2017
05c9456
1.5.7 dist
hexadecy Feb 17, 2017
c73cb00
favicon
hexadecy Feb 18, 2017
e5b3c3e
#91 fix problem with rtl website
hexadecy Feb 22, 2017
b4e1bbb
#70 disable-parent-scroll attribute
hexadecy Feb 22, 2017
93e6fd9
#70 corrects the readme
hexadecy Feb 22, 2017
c13cad7
#92 skipHide for am < 1.1.2
Feb 22, 2017
f013bc4
bump version
Feb 22, 2017
b0eeadc
dist files
Feb 22, 2017
5de0849
#73 hide minutes view
hexadecy Feb 23, 2017
92b54c0
fix gh-pages
hexadecy Feb 23, 2017
1b61fdd
#95 Month buttons
hexadecy Feb 28, 2017
ebe9859
bump version 1.5.9
hexadecy Feb 28, 2017
5dd7f98
#96 minDate and maxDate mixed up in demo
hexadecy Mar 3, 2017
1fa315b
#96 fix default options mixed up with old value from another picker
hexadecy Mar 5, 2017
af2ef55
unecessary that
hexadecy Mar 6, 2017
5d62b3f
Revert "unecessary that"
hexadecy Mar 6, 2017
04c7afa
bump version 1.5.10
hexadecy Mar 6, 2017
ed95821
#100 change the current date to be the start of the day in demo
hexadecy Mar 26, 2017
f64791b
angular 1.6.3, momentjs 2.18.1
hexadecy Mar 26, 2017
8302cde
add cdn
hexadecy Mar 28, 2017
66c043c
add more cdn links for dependencies
hexadecy Mar 28, 2017
448a1ef
#104 demo for locale
hexadecy Apr 6, 2017
fd35551
#91 simpler fix
hexadecy Apr 11, 2017
f2f68ba
1.5.11
hexadecy Apr 11, 2017
6499b74
bower 1.5.11
hexadecy Apr 11, 2017
68a33b4
#81 Single click to select
hexadecy Apr 17, 2017
ffc71fe
version 1.5.12
hexadecy Apr 17, 2017
cf6fe0a
#107 full 24 hour clock face
hexadecy Apr 27, 2017
e372645
version 1.6.0
hexadecy Apr 27, 2017
24054ab
Fix auto-ok when currentValue don't change
hexadecy Apr 28, 2017
6c4d4b6
version 1.6.1
hexadecy Apr 30, 2017
3e466f1
#85 example with a normal input and the service
hexadecy Apr 30, 2017
f8724ed
#9 auto-ok except minutes view
hexadecy May 2, 2017
c96c9cb
Change character to increment / decrement
hexadecy Jun 2, 2017
6cc8def
version 1.6.3
hexadecy Jun 2, 2017
fec358c
#109 fix not working with angular less than 1.5
hexadecy Jun 8, 2017
1ba46bf
readme
hexadecy Jun 8, 2017
272179b
Today nearest 5 minutes
hexadecy Jun 22, 2017
46dd6eb
version 1.6.5
hexadecy Jun 22, 2017
5325085
merge PR #99 compatible require
hexadecy Jun 24, 2017
8d45dff
version 1.6.6
hexadecy Jun 24, 2017
ff16210
Adds parameter disableClick to allow for typing in the datetimefield
EmielH Jun 27, 2017
42533ab
#110 return module name
hexadecy Jun 29, 2017
df584f6
#10 fix next and prev buttons for rtl
hexadecy Jun 29, 2017
3a7986c
Merge pull request #12 from EmielH/gh-pages
hexadecy Jun 29, 2017
b8a34fc
#12 add demo and change to editInput
hexadecy Jun 29, 2017
10f290b
#112 add click outside to close as attribute
hexadecy Jun 30, 2017
4919c35
fix parsers to validate each change
hexadecy Jul 7, 2017
0c84d85
version 1.6.7
hexadecy Jul 7, 2017
8b973f9
show-todays-date with just the attribute
hexadecy Jul 15, 2017
46517fc
Fix #65 minute steps param, fix #113 console log
hexadecy Jul 23, 2017
56c09bc
version 1.7.0
hexadecy Jul 23, 2017
26b76bd
align close button
hexadecy Jul 23, 2017
7898779
fix #14 ngModelOptions for Angular 1.5-
hexadecy Jul 24, 2017
9348856
version 1.7.1
hexadecy Jul 24, 2017
541ff02
fix #105 weekDays param
hexadecy Jul 31, 2017
3f57932
version 1.7.2
hexadecy Jul 31, 2017
a493562
#14 new seconds selection clock
hexadecy Aug 12, 2017
713cbef
change color when selecting hours, minutes or seconds
hexadecy Aug 13, 2017
7e0fbce
fix seconds selection can add to minutes if 60 is selected
hexadecy Aug 13, 2017
12ae190
version 1.8.1
hexadecy Aug 13, 2017
39febfb
Refactored factory mdcDefaultParams to allow updating every parameter…
SimonSimCity Aug 15, 2017
ca978e9
Merge pull request #15 from SimonSimCity/changable-default-params
hexadecy Aug 15, 2017
ab8c677
Add setDefaultLocale example
hexadecy Aug 15, 2017
ecdb7af
version 1.8.2
hexadecy Aug 15, 2017
6d4a28d
Add theming info to readme
hexadecy Aug 16, 2017
1110744
smaller width for actions buttons and more info on mdcDefaultParams
hexadecy Aug 16, 2017
5408d2c
version 1.8.3
hexadecy Aug 16, 2017
eae223e
year and month menu picker
hexadecy Aug 20, 2017
ab42de3
version 1.8.4
hexadecy Aug 20, 2017
c294b39
#118 clear button for edit-input
hexadecy Sep 1, 2017
6b257a7
version 1.8.5
hexadecy Sep 1, 2017
cbbe2f9
#16 round minute to nearest step, default 5 minutes
hexadecy Sep 4, 2017
1bd4947
version 1.8.6
hexadecy Sep 4, 2017
bb70e74
#16 fix missing currentDate assignment
hexadecy Sep 6, 2017
f43f77b
version 1.8.7
hexadecy Sep 6, 2017
310bdea
Include icon to edit-input mode
hexadecy Sep 10, 2017
7b1aec4
version 1.9.0
hexadecy Sep 10, 2017
f5bcfb5
#17 Add time icon to edit-input mode
hexadecy Sep 11, 2017
4c0acaf
version 1.9.1
hexadecy Sep 11, 2017
3daf5f5
Add show-icon param
hexadecy Sep 12, 2017
16bb19f
version 1.9.2
hexadecy Sep 12, 2017
f455cb3
readme
hexadecy Sep 12, 2017
69828f5
minor
hexadecy Sep 12, 2017
05225d3
Add an example for #16
hexadecy Sep 15, 2017
f4cc475
Update angular-material-datetimepicker.js
abrararies Sep 22, 2017
03e9e09
Merge pull request #19 from abrararies/gh-pages
hexadecy Sep 24, 2017
42a6fd3
version 1.9.3
hexadecy Sep 24, 2017
93c9e0f
package version 1.9.3
hexadecy Sep 24, 2017
402c1b2
#18 best effort to support older version
hexadecy Sep 27, 2017
af36d59
version 1.9.4
hexadecy Sep 28, 2017
758c331
add template options
Oct 18, 2017
61cb64f
Merge pull request #21 from paragraff/gh-pages
hexadecy Oct 19, 2017
7ac5067
update deps
hexadecy Oct 19, 2017
5d9ef94
code cleanup
hexadecy Oct 19, 2017
4ba7b14
version 1.9.5
hexadecy Oct 19, 2017
2c3e078
readme
hexadecy Oct 19, 2017
701d8a9
Fix point not available for mouve move
hexadecy Oct 29, 2017
d27185f
version 1.9.6
hexadecy Oct 29, 2017
e3b11ff
#23 Add ng-clear attribute
hexadecy Dec 6, 2017
aa44d8b
version 1.9.7
hexadecy Dec 6, 2017
65520f5
#23 call ng-change when cleared with X
hexadecy Dec 15, 2017
ff73dcf
version 1.10.0
hexadecy Dec 15, 2017
fb891d7
#25 a moment utc will not be converted to a js date
hexadecy Dec 17, 2017
40f0ea8
version 1.11.0
hexadecy Dec 17, 2017
da617f6
Added min- and maxdate validation
coennijhuis Jan 22, 2018
77d4ccd
#27 add support for ng-model-options timezone
hexadecy Jan 29, 2018
ddfb801
Merge pull request #28 from coennijhuis/coennijhuis-patch-1
hexadecy Feb 9, 2018
fbdc20c
version 1.12.0
hexadecy Feb 9, 2018
7d29d37
code format
hexadecy Feb 9, 2018
e850d5c
#25 fix ng-model-options for angular 1.5
hexadecy Feb 10, 2018
b357003
#25 fix ng-model-options for angular 1.5
hexadecy Feb 10, 2018
ea3d352
Merge branch 'gh-pages' of https://github.com/beenote/angular-materia…
hexadecy Feb 10, 2018
40adfd0
Merge branch 'gh-pages' of https://github.com/beenote/angular-materia…
hexadecy Feb 10, 2018
24748be
Merge branch 'gh-pages' of https://github.com/beenote/angular-materia…
hexadecy Feb 10, 2018
d249b57
#27 add ng-model-options to exSourceCode
hexadecy Feb 10, 2018
d6b57bb
#28 add test for minDate maxDate with edit input
hexadecy Feb 10, 2018
bc75b89
version 1.13.0
hexadecy Feb 10, 2018
bb68312
vulnerabilities badge
Feb 21, 2018
425a9b1
more badges
hexadecy Feb 22, 2018
037438a
update dep, use gulp4
hexadecy Mar 30, 2018
750afa2
version 1.13.1
hexadecy Mar 30, 2018
2a26e1a
#30 Add validation for input with format
hexadecy Apr 24, 2018
2c50676
add utcOffset when editInput and timezone specified
Apr 24, 2018
377449c
add utcOffset when editInput and timezone specified
Apr 24, 2018
66a8d8a
version 1.13.2
Apr 24, 2018
0649a56
Merge pull request #32 from andreyjkee/utcoffset-for-edit-input
hexadecy Apr 24, 2018
9c5d550
#31 fix for offset 0, stay moment._isUTC if a timezone is set and wor…
Apr 24, 2018
0c8d7d6
version 1.13.3
Apr 24, 2018
b576358
Implement "targetEvent", "openFrom" and "closeTo" options
norkunas Apr 25, 2018
a33467d
#35 round seconds and milliseconds
Apr 25, 2018
bb1662c
#31 example changed
Apr 25, 2018
ecca449
version 1.14.0
Apr 25, 2018
c7c2c79
Merge pull request #33 from norkunas/new-options
hexadecy Apr 26, 2018
a193cdf
#33 add example and readme
hexadecy Apr 26, 2018
de62677
#34 disabled unavailable minute steps
hexadecy Apr 26, 2018
a97c2c1
version 1.15.0
hexadecy Apr 26, 2018
a837b43
#31 fix parsing problem when the timezone is not in the format
hexadecy Apr 27, 2018
1161b13
check with DeepCode.ai, es6 for node
hexadecy Apr 27, 2018
aa40b21
version 1.15.1
hexadecy Apr 27, 2018
99d4794
fix demo typo
hexadecy May 1, 2018
bd7a354
code format and remove mdcDatetimePickerDefaultLocale
hexadecy May 1, 2018
fc68976
#130 step by step video
hexadecy May 17, 2018
6a2e54f
remove video
hexadecy May 17, 2018
d2bf5a9
add watchers for min/max date to set correct validity state of input
May 24, 2018
ea2d88e
#39 fix input with a invalid moment object
May 24, 2018
7513489
Merge pull request #40 from andreyjkee/watchers-for-max-min-dates
hexadecy May 24, 2018
8269787
#38 revert $watchers as they are too global
May 29, 2018
3d19128
version 1.15.2
May 29, 2018
9bebd13
mdcDatetimePickerDefaultLocale is no more
May 29, 2018
e5d697a
update demo to Angular.js 1.7.0
May 30, 2018
86eb819
#41 add lite-server
Jun 4, 2018
27a03ba
#42 more info on utc time zone options
hexadecy Jun 15, 2018
7c58414
#36 Option to hide Today button
hexadecy Jun 16, 2018
68ce960
version 1.6.0 update deps
hexadecy Jul 4, 2018
b708a07
customize dropdown list of month and year
preraksola Jul 25, 2018
51e2802
Merge pull request #44 from preraksola/gh-pages
hexadecy Aug 2, 2018
b942660
version 1.16.1
Aug 3, 2018
c5bc54a
#45 set validity when date is selected in the picker
Sep 11, 2018
b6219f1
Version 1.17.0
Sep 11, 2018
a62a1c7
#47 fix for max-date when set to 12 PM
hexadecy Oct 12, 2018
7407b52
version 1.17.1
hexadecy Oct 12, 2018
2856891
#51 current year not in dropdown if maxDate is now
hexadecy Jan 25, 2019
57c62c6
Version 1.17.2
hexadecy Jan 25, 2019
6fbc748
#52 Add short days format options
hexadecy Jan 26, 2019
3fa67ed
Version 1.18.0
hexadecy Jan 26, 2019
c7b616b
Code cleanup
hexadecy Jan 28, 2019
6b93045
#54 There was no check on minutes and hours (min, max) for today button
hexadecy Feb 8, 2019
36ebb57
Version 1.18.1
hexadecy Feb 8, 2019
8fa77bf
Does not update ngModel states correctly
tw1nk Feb 14, 2019
c755653
Merge pull request #55 from tw1nk/patch-1
hexadecy Feb 16, 2019
c664384
Version 1.18.2
hexadecy Feb 23, 2019
7d75c1c
Revert PR #55
hexadecy Mar 1, 2019
78368d0
Version 1.18.3
hexadecy Mar 1, 2019
6ff47f8
Update dependencies
hexadecy Mar 4, 2019
46e138c
#56 setDirty for the form
hexadecy Mar 17, 2019
fc4ad6e
version 1.18.4
hexadecy Mar 24, 2019
a1fe552
#61 Add hasBackdrop option
hexadecy Apr 27, 2019
ece4354
Version 1.18.5
hexadecy Apr 27, 2019
78a99d4
Update README for am pm
hexadecy May 4, 2019
a099827
#65 show am/pm when date only with short-time
hexadecy Sep 2, 2019
93e0c18
version 1.18.6
hexadecy Sep 2, 2019
368ac0d
Update deps to fix vulnerabilities
hexadecy Sep 2, 2019
a1c9941
version 1.19.0
hexadecy Sep 2, 2019
307a514
# 66 add show-clear option
hexadecy Sep 9, 2019
896382e
version 1.19.1
hexadecy Sep 9, 2019
01f45ae
#67 fix calendar topIndex month does not fit
hexadecy Sep 18, 2019
86d4458
version 1.19.2
hexadecy Sep 18, 2019
30ec0b3
update to angular js 1.7.9 and angular material js 1.1.21
hexadecy Jan 23, 2020
dd2d128
version 1.19.3
hexadecy Jan 23, 2020
a6e319b
update yarn.lock file
hexadecy Jan 23, 2020
709fd98
upgrade deps
hexadecy Mar 21, 2020
fdbd70a
#73 convey ng-disabled to buttons
hexadecy Apr 6, 2020
e9c042d
version 1.19.4
hexadecy Apr 6, 2020
b64dc0c
Bump acorn from 5.3.0 to 5.7.4
dependabot[bot] Apr 6, 2020
f2d14e6
Merge pull request #74 from beenote/dependabot/npm_and_yarn/acorn-5.7.4
hexadecy Apr 6, 2020
dbbd369
#73 use $parse for ng-disabled
hexadecy Apr 8, 2020
0bb9e7f
Merge branch 'gh-pages' of https://github.com/beenote/angular-materia…
hexadecy Apr 8, 2020
5de817f
version 1.19.5
hexadecy Apr 8, 2020
258c3d5
Bump lodash from 4.17.15 to 4.17.19
dependabot[bot] Jul 18, 2020
1dabaef
fix: BREAKING: Reliance on prebound constructor
oliversalzburg Aug 25, 2020
e2d3446
Version 1.19.6 update deps to Angular 1.8.0
hexadecy Sep 7, 2020
ea0e772
Merge pull request #81 from oliversalzburg/fix/params
hexadecy Sep 7, 2020
9d5ad5f
Merge pull request #79 from beenote/dependabot/npm_and_yarn/lodash-4.…
hexadecy Sep 7, 2020
a5eb67b
distribution
hexadecy Sep 7, 2020
981c543
update deps
hexadecy Dec 30, 2020
a8e4f9f
Bump ini from 1.3.5 to 1.3.8
dependabot[bot] Dec 30, 2020
8c8bc5e
Merge pull request #83 from beenote/dependabot/npm_and_yarn/ini-1.3.8
hexadecy Dec 30, 2020
318ec58
replace gulp by esbuild
hexadecy Dec 31, 2020
7ac2ef5
Merge branch 'gh-pages' of https://github.com/beenote/angular-materia…
hexadecy Dec 31, 2020
b4dc6e9
version 1.19.7
hexadecy Dec 31, 2020
faee1e8
remove bower
hexadecy Dec 31, 2020
796e9b0
Bump ua-parser-js from 0.7.23 to 0.7.28
dependabot[bot] May 7, 2021
e0ad82a
Bump lodash from 4.17.20 to 4.17.21
dependabot[bot] May 10, 2021
ccb2417
Merge pull request #85 from beenote/dependabot/npm_and_yarn/lodash-4.…
hexadecy May 14, 2021
5ec8f27
Merge pull request #84 from beenote/dependabot/npm_and_yarn/ua-parser…
hexadecy May 14, 2021
6e89b51
Replace lite-server with web-dev-server
hexadecy May 14, 2021
1c800b8
upgrade esbuild to 0.11.20
hexadecy May 14, 2021
96656c9
Update badges
hexadecy May 14, 2021
3494970
update deps
hexadecy Sep 4, 2021
e34f0e7
updated build
hexadecy Sep 4, 2021
8b94d22
version 1.19.8
hexadecy Sep 4, 2021
566bc31
update dev deps
hexadecy Oct 16, 2021
ec8d3e4
update README
hexadecy Oct 16, 2021
49718f0
migrate to yarn 2
hexadecy Nov 6, 2021
cb4d9f6
Bump moment from 2.29.1 to 2.29.2
dependabot[bot] Apr 9, 2022
d98d974
Merge pull request #89 from beenote/dependabot/npm_and_yarn/moment-2.…
hexadecy Apr 16, 2022
efdb93e
Bump async from 2.6.3 to 2.6.4
dependabot[bot] Apr 16, 2022
f8ee554
Merge pull request #90 from beenote/dependabot/npm_and_yarn/async-2.6.4
hexadecy Apr 16, 2022
71b2ef4
#88 disable dragstart
hexadecy Apr 16, 2022
181775f
update yarn
hexadecy Apr 16, 2022
6721313
Version 1.20.0
hexadecy Apr 16, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,10 @@ bower_components
node_modules
*.log

.pnp.*
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
363 changes: 363 additions & 0 deletions .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

Large diffs are not rendered by default.

785 changes: 785 additions & 0 deletions .yarn/releases/yarn-3.2.0.cjs

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
nodeLinker: pnp

plugins:
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
spec: "@yarnpkg/plugin-interactive-tools"

yarnPath: .yarn/releases/yarn-3.2.0.cjs
267 changes: 196 additions & 71 deletions README.md

Large diffs are not rendered by default.

14 changes: 6 additions & 8 deletions beautifier.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function style_html(html_source, options) {
indent_size = options.indent_size || 4;
indent_character = options.indent_char || ' ';
brace_style = options.brace_style || 'collapse';
max_char = options.max_char == 0 ? Infinity : options.max_char || 70;
max_char = options.max_char === 0 ? Infinity : options.max_char || 70;
unformatted = options.unformatted || ['a'];

function Parser() {
Expand Down Expand Up @@ -204,8 +204,7 @@ function style_html(html_source, options) {
space = false;
}

if (content.length && content[content.length - 1] !== '=' && input_char !== '>'
&& space) { //no space after = or before >
if (content.length && content[content.length - 1] !== '=' && input_char !== '>' && space) { //no space after = or before >
if (this.line_char_count >= this.max_char) {
this.print_newline(false, content);
this.line_char_count = 0;
Expand All @@ -231,8 +230,7 @@ function style_html(html_source, options) {
if (tag_complete.charAt(tag_complete.length - 2) === '/' ||
this.Utils.in_array(tag_check, this.Utils.single_token)) { //if this tag name is a single tag type (either in the list or has a closing /)
this.tag_type = 'SINGLE';
}
else if (tag_check === 'script') { //for later script handling
} else if (tag_check === 'script') { //for later script handling
this.record_tag(tag_check);
this.tag_type = 'SCRIPT';
}
Expand Down Expand Up @@ -299,7 +297,7 @@ function style_html(html_source, options) {
}

input_char = this.input.charAt(this.pos);
this.pos++
this.pos++;

if (this.Utils.in_array(input_char, this.Utils.whitespace)) {
if (!space) {
Expand Down Expand Up @@ -331,7 +329,7 @@ function style_html(html_source, options) {
var token;

if (this.last_token === 'TK_TAG_SCRIPT' || this.last_token === 'TK_TAG_STYLE') { //check if we need to format javascript
var type = this.last_token.substr(7)
var type = this.last_token.substr(7);
token = this.get_contents_to(type);
if (typeof token !== 'string') {
return token;
Expand Down Expand Up @@ -366,7 +364,7 @@ function style_html(html_source, options) {
return '';

return Array(level + 1).join(this.indent_string);
}
};


this.printer = function (js_source, indent_character, indent_size, max_char, brace_style) { //handles input/output and some other printing functions
Expand Down
34 changes: 0 additions & 34 deletions bower.json

This file was deleted.

16 changes: 16 additions & 0 deletions build.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
var esbuild = require('esbuild');

esbuild.build({
entryPoints: ['./js/angular-material-datetimepicker.js'],
minify: true,
outdir: 'dist',
sourcemap: true,
outExtension: { '.js': '.min.js' },
}).catch(function(err) {process.exit(1);});

esbuild.build({
entryPoints: ['./css/material-datetimepicker.css'],
minify: true,
outdir: 'dist',
outExtension: { '.css': '.min.css' },
}).catch(function(err) {process.exit(1);});
110 changes: 101 additions & 9 deletions css/material-datetimepicker.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,15 @@ md-dialog.dtp {
background-color: #fff;
max-height: none;
min-width: 300px;
width: 300px;
}

.noselect {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}

.dtp *:focus {
outline: none !important;
Expand Down Expand Up @@ -43,7 +50,6 @@ md-dialog.dtp {
background: #689F38;
color: #fff;
text-align: center;
padding: 3px;
}

.dtp div.dtp-date, .dtp div.dtp-time {
Expand All @@ -60,21 +66,50 @@ md-dialog.dtp {

.dtp div.dtp-actual-month {
font-size: 1.5em;
cursor: pointer;
}

md-menu-content.dtp-month-list {
background-color: #ffffff;
}

.dtp div.dtp-actual-num {
font-size: 3em;
font-size: 2em;
line-height: 0.9;
}

.dtp div.dtp-actual-maxtime {
font-size: 3em;
font-size: 2em;
line-height: 0.9;
color: #DCEDC8;
}

.dtp div.dtp-actual-maxtime span.selected {
color: #fff;
}

.dtp div.dtp-actual-year {
font-size: 1.6em;
color: #DCEDC8;
cursor: pointer;
}

md-menu-content.dtp-year-list {
background-color: #ffffff;
}

.dtp div.dtp-month-btn {
font-size: 1.4em;
line-height: 30px;
cursor: pointer;
}

.dtp div.dtp-month-btn-prev {
text-align: right;
}

.dtp div.dtp-month-btn-next {
text-align: left;
}

.dtp div.dtp-year-btn {
Expand All @@ -94,21 +129,26 @@ md-dialog.dtp {
}

.dtp div.dtp-picker {
padding: 10px;
padding: 10px 10px 0 10px;
text-align: center;

/* Prevent dialog resizing when switcing between date/time */
overflow: hidden;
}

.dtp div.dtp-picker-month, .dtp div.dtp-actual-time {
font-size: 1em;
font-weight: 500;
text-align: center;
}

.dtp div.dtp-actual-time.p60 span.selected {
color: #689F38;
}

.dtp .dtp-close {
position: absolute;
top: 0.25em;
top: 0;
right: 5px;
font-size: 16px;
}
Expand All @@ -124,7 +164,7 @@ md-dialog.dtp {

.dtp table.dtp-picker-days {
margin: 0;
min-height: 220px;
min-height: 260px;
}

.dtp md-virtual-repeat-container.months {
Expand All @@ -136,7 +176,7 @@ md-dialog.dtp {
}

.dtp table.dtp-picker-days tr > td {
font-size: 11px;
font-size: 12px;
text-align: center;
padding: 0;
}
Expand Down Expand Up @@ -189,7 +229,7 @@ md-dialog.dtp {
color: #757575;
text-align: center;
font-weight: 700;
padding: 4px 3px;
padding: 2px 3px;
width: 38px;
height: 28px;
}
Expand Down Expand Up @@ -219,9 +259,20 @@ md-dialog.dtp {
display: inline-block;
}

.dtp div.dtp-picker-datetime {
padding-bottom: 25px;
}

.dtp span.dtp-actual-meridien {
font-size: 0.6em;
}

.dtp div.dtp-actual-meridien {
height: 20px;
}

.dtp a.dtp-meridien-am, .dtp a.dtp-meridien-pm {
position: relative;
top: 10px;
color: #212121;
font-weight: 500;
padding: 7px 5px;
Expand Down Expand Up @@ -271,6 +322,8 @@ md-dialog.dtp {
padding: 10px;
border-radius: 50% !important;
background: #eee;
direction: ltr;
cursor: default;
}

.dtp-clock-center {
Expand Down Expand Up @@ -303,6 +356,11 @@ md-dialog.dtp {
margin-left: -1px;
}

.dtp .dtp-second-hand {
width: 1px;
margin-left: -1px;
}

.dtp .dtp-hand.on {
background: #8BC34A;
}
Expand Down Expand Up @@ -336,3 +394,37 @@ md-dialog.dtp {
text-align: center;
}

[dir=rtl] .dtp div.dtp-year-btn-next, [dir=rtl] .dtp div.dtp-month-btn-next,
[dir=rtl] .dtp div.dtp-year-btn-prev, [dir=rtl] .dtp div.dtp-month-btn-prev {
-ms-transform: rotate(180deg);
-webkit-transform: rotate(180deg);
transform: rotate(180deg);
}

.dtp-btn-today, .dtp-btn-ok, .dtp-btn-cancel {
min-width: 70px;
}

.dtp-clear {
position: absolute;
top: 0;
right: -10px;
}

/* Remove IE clear button */
.dtp-no-msclear::-ms-clear {
display: none;
width : 0;
height: 0;
}

.dtp-btn-calendar {
position: absolute;
top: -3px;
left: -10px;
}

.dtp-input {
margin-left: 30px;
max-width: calc(100% - 30px);
}
2 changes: 1 addition & 1 deletion dist/angular-material-datetimepicker.min.js

Large diffs are not rendered by default.

8 changes: 7 additions & 1 deletion dist/angular-material-datetimepicker.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/material-datetimepicker.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file added favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed font/Material-Design-Icons.eot
Binary file not shown.
Loading