Skip to content

Commit 9c99501

Browse files
EonasdaneznowdenjcompagnerjchafikWilliam-H-M
authored
Dev master (#2546)
* sonarqube issues * plugins and locales! * sonarqube issues * plugins and locales! * trying out some plugin stuff * tiny di works * clean packagelock * fixed docs, plugin examples, add other locales * update build * doc updates. moved cheese * types * I spel real good * Fixed month manipulation issue #2474 * fixed start/end of week #2473 * If view option is passed do not override with default. * dark mode and minification! * input event trigger * fix for disposing inline calender gives an exception #2493 * fix reshow should not call dates.setValue with the current fixes: #2488 when a reshow is done, especially with inline calender the useCurrent or useDefault should not be used if there is already someting in the dates. If there is already a date set, but then you update some options it should stick to that date, not reset to the current or default.. * #fixes 2424 * bit of code clean up added view mode information to events * code cleanup * update paint * sonar * sonar * sonar * sonar * sonar * sonar * clean up and bug fixes * Fixes use of SVG icons (issue #2527) (#2529) - Create SVG elements in correct namespace - Add standard `href` tag to `use` element. Maintain deprecated `xlink:href` for backward compatibility. See: https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/xlink:href https://svgwg.org/svg2-draft/linking.html#XLinkRefAttrs * Trigger native change event on input when available (#2533) * Fixed clear() doesn't erase text of date. #2472 Fixed clear button event cycle. #2516 Fixed 2 digit formatting. #2513 Trigger native change event on input when available - fixes #2401 via #2533 Fixes use of SVG icons (issue #2527) via #2529 * Fixed clear() doesn't erase text of date. #2472 Fixed clear button event cycle. #2516 Fixed 2 digit formatting. #2513 Trigger native change event on input when available - fixes #2401 via #2533 Fixes use of SVG icons (issue #2527) via #2529 * Fix 2539; (#2541) - Fix template for 24H HourDisplay Co-authored-by: William Duban Hernandez Monterrosa <[email protected]> * formatting hotfix Co-authored-by: jorge <[email protected]> Co-authored-by: Johan Compagner <[email protected]> Co-authored-by: Jacob Chafik <[email protected]> Co-authored-by: William <[email protected]> Co-authored-by: William Duban Hernandez Monterrosa <[email protected]>
1 parent a65e6f3 commit 9c99501

26 files changed

+77
-59
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![Rate on Openbase](https://badges.openbase.com/js/rating/@eonasdan/tempus-dominus.svg)](https://openbase.com/js/@eonasdan/tempus-dominus?utm_source=embedded&utm_medium=badge&utm_campaign=rate-badge)
44

5-
# Tempus Dominus Date/Time Picker v6.0.0-beta5
5+
# Tempus Dominus Date/Time Picker v6.0.0-beta5.1
66

77
Tempus Dominus is a powerful and robust date time picker for javascript. Version 6 is another major rewrite over the previous version. V6 is written with modern browsers in mind and is written in typescript. Bootstrap, momentjs and jQuery are no longer required dependencies. Popper2 is all that is required for the picker to position correctly. If you still require jQuery (seriously, you should move off that asap) there's a jQuery provider that wraps the native js functions.
88

dist/js/jQuery-provider.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/*global $ */
33

44
/*!
5-
* Tempus Dominus v6.0.0-beta4 (https://getdatepicker.com/)
5+
* Tempus Dominus v6.0.0-beta5.1 (https://getdatepicker.com/)
66
* Copyright 2013-2021 [object Object]
77
* Licensed under MIT (https://github.com/Eonasdan/tempus-dominus/blob/master/LICENSE)
88
*/

dist/js/jQuery-provider.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/tempus-dominus.esm.js

+39-24
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/tempus-dominus.esm.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/tempus-dominus.esm.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/tempus-dominus.js

+6-5
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/tempus-dominus.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/tempus-dominus.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/locales/de.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Tempus Dominus v6.0.0-beta4 (https://getdatepicker.com/)
2+
* Tempus Dominus v6.0.0-beta5.1 (https://getdatepicker.com/)
33
* Copyright 2013-2022 Jonathan Peterson
44
* Licensed under MIT (https://github.com/Eonasdan/tempus-dominus/blob/master/LICENSE)
55
*/

dist/locales/es.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Tempus Dominus v6.0.0-beta4 (https://getdatepicker.com/)
2+
* Tempus Dominus v6.0.0-beta5.1 (https://getdatepicker.com/)
33
* Copyright 2013-2022 Jonathan Peterson
44
* Licensed under MIT (https://github.com/Eonasdan/tempus-dominus/blob/master/LICENSE)
55
*/

dist/locales/it.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Tempus Dominus v6.0.0-beta4 (https://getdatepicker.com/)
2+
* Tempus Dominus v6.0.0-beta5.1 (https://getdatepicker.com/)
33
* Copyright 2013-2022 Jonathan Peterson
44
* Licensed under MIT (https://github.com/Eonasdan/tempus-dominus/blob/master/LICENSE)
55
*/

dist/locales/nl.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Tempus Dominus v6.0.0-beta4 (https://getdatepicker.com/)
2+
* Tempus Dominus v6.0.0-beta5.1 (https://getdatepicker.com/)
33
* Copyright 2013-2022 Jonathan Peterson
44
* Licensed under MIT (https://github.com/Eonasdan/tempus-dominus/blob/master/LICENSE)
55
*/

dist/locales/ro.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Tempus Dominus v6.0.0-beta4 (https://getdatepicker.com/)
2+
* Tempus Dominus v6.0.0-beta5.1 (https://getdatepicker.com/)
33
* Copyright 2013-2022 Jonathan Peterson
44
* Licensed under MIT (https://github.com/Eonasdan/tempus-dominus/blob/master/LICENSE)
55
*/

dist/locales/ru.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Tempus Dominus v6.0.0-beta4 (https://getdatepicker.com/)
2+
* Tempus Dominus v6.0.0-beta5.1 (https://getdatepicker.com/)
33
* Copyright 2013-2022 Jonathan Peterson
44
* Licensed under MIT (https://github.com/Eonasdan/tempus-dominus/blob/master/LICENSE)
55
*/

dist/plugins/examples/sample.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Tempus Dominus v6.0.0-beta4 (https://getdatepicker.com/)
2+
* Tempus Dominus v6.0.0-beta5 (https://getdatepicker.com/)
33
* Copyright 2013-2022 Jonathan Peterson
44
* Licensed under MIT (https://github.com/Eonasdan/tempus-dominus/blob/master/LICENSE)
55
*/

dist/plugins/fa-five.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Tempus Dominus v6.0.0-beta4 (https://getdatepicker.com/)
2+
* Tempus Dominus v6.0.0-beta5.1 (https://getdatepicker.com/)
33
* Copyright 2013-2022 Jonathan Peterson
44
* Licensed under MIT (https://github.com/Eonasdan/tempus-dominus/blob/master/LICENSE)
55
*/

dist/plugins/moment-parse.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*!
2-
* Tempus Dominus v6.0.0-beta4 (https://getdatepicker.com/)
2+
* Tempus Dominus v6.0.0-beta5.1 (https://getdatepicker.com/)
33
* Copyright 2013-2022 Jonathan Peterson
44
* Licensed under MIT (https://github.com/Eonasdan/tempus-dominus/blob/master/LICENSE)
55
*/

package-lock.json

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"name": "Jonathan Peterson"
44
},
55
"name": "@eonasdan/tempus-dominus",
6-
"version": "6.0.0-beta5",
6+
"version": "6.0.0-beta5.1",
77
"style": "dist/css/tempus-dominus.css",
88
"sass": "scss/tempus-dominus.scss",
99
"main": "dist/js/tempus-dominus.js",

src/docs/templates/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ <h1 class="mb-3">Powerful and robust date and time picker</h1>
1616
<a href="/6/installing.html" class="btn btn-lg btn-outline-secondary mb-3" onclick="ga('send', 'event', 'Jumbotron actions', 'Download', 'Download 6');">Download</a>
1717
</div>
1818
<p class="text-muted mb-0">
19-
Currently <strong>v6.0.0-beta5</strong>
19+
Currently <strong>v6.0.0-beta5.1</strong>
2020
<span class="px-1">&middot;</span>
2121
<a href="https://getdatepicker.com/5-4/" class="link-secondary">v5 docs</a>
2222
</p>

src/js/datetime.ts

+4-3
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ const twoDigitTemplate = {
1717
hour12: true,
1818
}
1919

20-
const twoDigitTwentyForTemplate = {
20+
const twoDigitTwentyFourTemplate = {
21+
hour: '2-digit',
2122
hour12: false
2223
}
2324

@@ -311,7 +312,7 @@ export class DateTime extends Date {
311312
* Returns two digit hours
312313
*/
313314
get secondsFormatted(): string {
314-
return this.parts(undefined, twoDigitTemplate).seconds;
315+
return this.parts(undefined, twoDigitTemplate).second;
315316
}
316317

317318
/**
@@ -353,7 +354,7 @@ export class DateTime extends Date {
353354
* Returns two digit hours
354355
*/
355356
get hoursFormatted(): string {
356-
let formatted =this.parts(undefined, twoDigitTwentyForTemplate).hour;
357+
let formatted =this.parts(undefined, twoDigitTwentyFourTemplate).hour;
357358
if (formatted === '24') formatted = '00';
358359
return formatted;
359360
}

src/js/jQuery-provider.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/*global $ */
33

44
/*!
5-
* Tempus Dominus v6.0.0-beta5 (https://getdatepicker.com/)
5+
* Tempus Dominus v6.0.0-beta5.1 (https://getdatepicker.com/)
66
* Copyright 2013-2021 [object Object]
77
* Licensed under MIT (https://github.com/Eonasdan/tempus-dominus/blob/master/LICENSE)
88
*/

0 commit comments

Comments
 (0)