@ministryofjustice/frontend 7.1.0 → 8.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/moj/all.bundle.js +5 -5
- package/moj/all.bundle.js.map +1 -1
- package/moj/all.bundle.mjs +5 -5
- package/moj/all.bundle.mjs.map +1 -1
- package/moj/common/moj-frontend-version.mjs +1 -1
- package/moj/components/date-picker/date-picker.bundle.js +2 -4
- package/moj/components/date-picker/date-picker.bundle.js.map +1 -1
- package/moj/components/date-picker/date-picker.bundle.mjs +2 -4
- package/moj/components/date-picker/date-picker.bundle.mjs.map +1 -1
- package/moj/components/date-picker/date-picker.mjs +2 -4
- package/moj/components/date-picker/date-picker.mjs.map +1 -1
- package/moj/components/domain-specific/probation/header/README.md +2 -2
- package/moj/components/domain-specific/probation/header/header.bundle.js +2 -0
- package/moj/components/domain-specific/probation/header/header.bundle.js.map +1 -1
- package/moj/components/domain-specific/probation/header/header.bundle.mjs +2 -0
- package/moj/components/domain-specific/probation/header/header.bundle.mjs.map +1 -1
- package/moj/components/domain-specific/probation/header/header.mjs +2 -0
- package/moj/components/domain-specific/probation/header/header.mjs.map +1 -1
- package/moj/core/_moj-frontend-properties.scss +1 -1
- package/moj/core/_moj-frontend-properties.scss.map +1 -1
- package/moj/moj-frontend.min.css +1 -1
- package/moj/moj-frontend.min.css.map +1 -1
- package/moj/moj-frontend.min.js +1 -1
- package/moj/moj-frontend.min.js.map +1 -1
- package/package.json +1 -1
package/moj/all.bundle.js
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
*
|
|
15
15
|
* {@link https://github.com/ministryofjustice/moj-frontend/releases}
|
|
16
16
|
*/
|
|
17
|
-
const version = '
|
|
17
|
+
const version = '8.0.0-beta.1';
|
|
18
18
|
|
|
19
19
|
class AddAnother extends govukFrontend.Component {
|
|
20
20
|
/**
|
|
@@ -984,8 +984,8 @@
|
|
|
984
984
|
}
|
|
985
985
|
setExcludedDays() {
|
|
986
986
|
if (this.config.excludedDays) {
|
|
987
|
-
|
|
988
|
-
|
|
987
|
+
/* lowercase and arrange dayLabels to put indexOf sunday == 0 for comparison
|
|
988
|
+
with getDay() function */
|
|
989
989
|
const weekDays = this.dayLabels.map(item => item.toLowerCase());
|
|
990
990
|
if (this.config.weekStartDay === 'monday') {
|
|
991
991
|
weekDays.unshift(weekDays.pop());
|
|
@@ -1011,8 +1011,6 @@
|
|
|
1011
1011
|
* @returns {boolean}
|
|
1012
1012
|
*/
|
|
1013
1013
|
isExcludedDate(date) {
|
|
1014
|
-
// This comparison does not work correctly - it will exclude the mindate itself
|
|
1015
|
-
// see: https://github.com/ministryofjustice/moj-frontend/issues/923
|
|
1016
1014
|
if (this.minDate && this.minDate > date) {
|
|
1017
1015
|
return true;
|
|
1018
1016
|
}
|
|
@@ -1544,9 +1542,11 @@
|
|
|
1544
1542
|
$servicesToggle.removeAttribute('hidden');
|
|
1545
1543
|
this.closeTabs([[$userToggle, $userMenu], [$servicesToggle, $servicesMenu]]);
|
|
1546
1544
|
$userToggle.addEventListener('click', _event => {
|
|
1545
|
+
this.closeTabs([[$servicesToggle, $servicesMenu]]);
|
|
1547
1546
|
this.toggleMenu($userToggle, $userMenu);
|
|
1548
1547
|
});
|
|
1549
1548
|
$servicesToggle.addEventListener('click', _event => {
|
|
1549
|
+
this.closeTabs([[$userToggle, $userMenu]]);
|
|
1550
1550
|
this.toggleMenu($servicesToggle, $servicesMenu);
|
|
1551
1551
|
});
|
|
1552
1552
|
}
|