Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
v6.9.4
  • Loading branch information
Eonasdan committed Dec 21, 2023
1 parent 1fde400 commit 30bb220
Show file tree
Hide file tree
Showing 14 changed files with 56 additions and 21 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

Please note that I'm moving on to other projects. New issues will need to be sponsored. This can be done via BountySource or my other donation links. Please reach out to me first so we can discuss the terms. Thank you for your years of support.

# Tempus Dominus Date/Time Picker v6.7.19
# Tempus Dominus Date/Time Picker v6.9.4

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.

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "Jonathan Peterson"
},
"name": "@eonasdan/tempus-dominus",
"version": "6.7.19",
"version": "6.9.4",
"style": "dist/css/tempus-dominus.css",
"sass": "scss/tempus-dominus.scss",
"main": "dist/js/tempus-dominus.js",
Expand Down
2 changes: 1 addition & 1 deletion sonar-project.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ sonar.organization=eonasdan
sonar.projectKey=Eonasdan_tempus-dominus

sonar.projectName=tempus-dominus
sonar.projectVersion=6.7.19
sonar.projectVersion=6.9.4

sonar.sources = src/
sonar.tests = test/
17 changes: 17 additions & 0 deletions src/docs/partials/change-log.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,23 @@
<div id='change-log'>
<h1>Version 6</h1>

<div class='row'>
<h2>6.9.4</h2>
<h3>New</h3>
<ul>
<li>SCSS now provides <code>root</code> css variables #2857</li>
<li>Custom date format parsing errors are now caught and provided through the event system. #2793</li>
</ul>
<h3>Bug fixes</h3>
<ul>
<li>Fixed #2886</li>
<li>Fixed #2884</li>
<li>Fixed #2881</li>
<li>Fixed #2879</li>
<li>Fixed #2877 </li>
</ul>
</div>

<div class='row'>
<h2>6.7.19</h2>
<h3>New</h3>
Expand Down
4 changes: 2 additions & 2 deletions src/docs/partials/installing.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ <h2 id='cdn'>Via CDN</h2>
<code class='language-html'>&lt;!-- Popperjs --&gt;
&lt;script src=&quot;https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js&quot; crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
&lt;!-- Tempus Dominus JavaScript --&gt;
&lt;script src=&quot;https://cdn.jsdelivr.net/npm/@eonasdan/tempus-dominus@6.7.19/dist/js/tempus-dominus.min.js&quot; crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;https://cdn.jsdelivr.net/npm/@eonasdan/tempus-dominus@6.9.4/dist/js/tempus-dominus.min.js&quot; crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;

&lt;!-- Tempus Dominus Styles --&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;https://cdn.jsdelivr.net/npm/@eonasdan/tempus-dominus@6.7.19/dist/css/tempus-dominus.min.css&quot; crossorigin=&quot;anonymous&quot;&gt;</code>
&lt;link rel=&quot;stylesheet&quot; href=&quot;https://cdn.jsdelivr.net/npm/@eonasdan/tempus-dominus@6.9.4/dist/css/tempus-dominus.min.css&quot; crossorigin=&quot;anonymous&quot;&gt;</code>
</pre>
</div>

Expand Down
6 changes: 3 additions & 3 deletions src/docs/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ <h1 class='mb-3 fw-semibold'>Powerful and robust date and time picker</h1>
</div>
</div>
<p class='text-muted mb-0'>
Currently <strong>v6.7.19</strong>
Currently <strong>v6.9.4</strong>
<span class='px-1'>&middot;</span>
<a href='https://getdatepicker.com/5-4/' class='link-secondary'>v5 docs</a>
</p>
Expand Down Expand Up @@ -55,10 +55,10 @@ <h3 class='fw-semibold'>JsDelivr</h3>
<code class='language-html'>&lt;!-- Popperjs --&gt;
&lt;script src=&quot;https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js&quot; integrity=&quot;sha256-BRqBN7dYgABqtY9Hd4ynE+1slnEw+roEPFzQ7TRRfcg=&quot; crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
&lt;!-- Tempus Dominus JavaScript --&gt;
&lt;script src=&quot;https://cdn.jsdelivr.net/npm/@eonasdan/tempus-dominus@6.7.19/dist/js/tempus-dominus.min.js&quot; crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;https://cdn.jsdelivr.net/npm/@eonasdan/tempus-dominus@6.9.4/dist/js/tempus-dominus.min.js&quot; crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;

&lt;!-- Tempus Dominus Styles --&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;https://cdn.jsdelivr.net/npm/@eonasdan/tempus-dominus@6.7.19/dist/css/tempus-dominus.min.css&quot; crossorigin=&quot;anonymous&quot;&gt;</code>
&lt;link rel=&quot;stylesheet&quot; href=&quot;https://cdn.jsdelivr.net/npm/@eonasdan/tempus-dominus@6.9.4/dist/css/tempus-dominus.min.css&quot; crossorigin=&quot;anonymous&quot;&gt;</code>
</pre>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/docs/templates/shell.html
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@
<span class='d-none d-lg-inline'>Tempus Dominus</span> v6.0
</button>
<ul class='dropdown-menu dropdown-menu-end' aria-labelledby='bd-versions'>
<li><a class='dropdown-item current' aria-current='true' href='/6/'>Latest (6.7.19)</a></li>
<li><a class='dropdown-item current' aria-current='true' href='/6/'>Latest (6.9.4)</a></li>
<li>
<hr class='dropdown-divider'>
</li>
Expand Down Expand Up @@ -181,7 +181,7 @@
target='_blank' rel='license noopener'>MIT</a>, docs <a
href='https://creativecommons.org/licenses/by/3.0/' target='_blank' rel='license noopener'>CC BY 3.0</a>.
</li>
<li class='mb-2'>Currently v6.7.19</li>
<li class='mb-2'>Currently v6.9.4</li>
</ul>
</div>
<div class='col-6 col-lg-2 offset-lg-1 mb-3'>
Expand Down
13 changes: 9 additions & 4 deletions src/js/dates.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
import { DateTime, getFormatByUnit, Unit } from './datetime';
import Namespace from './utilities/namespace';
import { ChangeEvent, FailEvent } from './utilities/event-types';
import {
ChangeEvent,
FailEvent,
ParseErrorEvent,
} from './utilities/event-types';
import Validation from './validation';
import { serviceLocator } from './utilities/service-locator';
import { EventEmitters } from './utilities/event-emitter';
Expand Down Expand Up @@ -66,9 +70,10 @@ export default class Dates {
} catch (e) {
this._eventEmitters.triggerEvent.emit({
type: Namespace.events.error,
reason: Namespace.errorMessages.failedToSetInvalidDate,
date: value,
} as FailEvent);
reason: Namespace.errorMessages.failedToParseInput,
format: this.optionsStore.options.localization.format,
value: value,
} as ParseErrorEvent);
return undefined;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/js/jQuery-provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*global $, tempusDominus */

/*!
* Tempus Dominus v6.7.19 (https://getdatepicker.com/)
* Tempus Dominus v6.9.4 (https://getdatepicker.com/)
* Copyright 2013-2021 Jonathan Peterson
* Licensed under MIT (https://github.com/Eonasdan/tempus-dominus/blob/master/LICENSE)
*/
Expand Down
2 changes: 1 addition & 1 deletion src/js/tempus-dominus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -646,7 +646,7 @@ const extend = function (plugin, option = undefined) {
return tempusDominus;
};

const version = '6.7.19';
const version = '6.9.4';

const tempusDominus = {
TempusDominus,
Expand Down
15 changes: 14 additions & 1 deletion src/js/utilities/event-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,12 @@ interface BaseEvent {
viewMode?: keyof ViewMode;
}

interface ParseErrorEvent extends BaseEvent {
reason: string;
value: unknown;
format: string;
}

/**
* Triggers when setValue fails because of validation rules etc.
* @event FailEvent
Expand Down Expand Up @@ -40,4 +46,11 @@ interface ViewUpdateEvent extends BaseEvent {
viewDate: DateTime;
}

export { BaseEvent, FailEvent, HideEvent, ChangeEvent, ViewUpdateEvent };
export {
BaseEvent,
FailEvent,
HideEvent,
ChangeEvent,
ViewUpdateEvent,
ParseErrorEvent,
};
2 changes: 1 addition & 1 deletion src/nuget/TempusDominus.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>TempusDominus</id>
<version>6.7.19</version>
<version>6.9.4</version>
<title>Tempus Dominus</title>
<authors>Eonasdan</authors>
<owners>Eonasdan</owners>
Expand Down
2 changes: 1 addition & 1 deletion src/nuget/TempusDominus.scss.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>TempusDominus.scss</id>
<version>6.7.19</version>
<version>6.9.4</version>
<title>Tempus Dominus</title>
<authors>Eonasdan</authors>
<owners>Eonasdan</owners>
Expand Down

0 comments on commit 30bb220

Please sign in to comment.