@ministryofjustice/frontend 1.4.2 → 1.6.0

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.
@@ -1,6 +1,87 @@
1
1
  {
2
- "nunjucksPaths": ["/"],
3
- "scripts": ["/moj/all.js"],
4
- "assets": ["/moj/assets"],
5
- "sass": ["/moj/all.scss"]
2
+ "nunjucksFilters": [
3
+ "/moj/filters/prototype-kit-13-filters.js"
4
+ ],
5
+ "scripts": [
6
+ "/moj/all.js"
7
+ ],
8
+ "assets": [
9
+ "/moj/assets"
10
+ ],
11
+ "sass": [
12
+ "/moj/all.scss"
13
+ ],
14
+ "nunjucksPaths": [
15
+ "/"
16
+ ],
17
+ "nunjucksMacros": [
18
+ {
19
+ "importFrom": "moj/components/side-navigation/macro.njk",
20
+ "macroName": "mojSideNavigation"
21
+ },
22
+ {
23
+ "importFrom": "moj/components/organisation-switcher/macro.njk",
24
+ "macroName": "mojOrganisationSwitcher"
25
+ },
26
+ {
27
+ "importFrom": "moj/components/primary-navigation/macro.njk",
28
+ "macroName": "mojPrimaryNavigation"
29
+ },
30
+ {
31
+ "importFrom": "moj/components/identity-bar/macro.njk",
32
+ "macroName": "mojIdentityBar"
33
+ },
34
+ {
35
+ "importFrom": "moj/components/sub-navigation/macro.njk",
36
+ "macroName": "mojSubNavigation"
37
+ },
38
+ {
39
+ "importFrom": "moj/components/notification-badge/macro.njk",
40
+ "macroName": "mojNotificationBadge"
41
+ },
42
+ {
43
+ "importFrom": "moj/components/ticket-panel/macro.njk",
44
+ "macroName": "mojTicketPanel"
45
+ },
46
+ {
47
+ "importFrom": "moj/components/timeline/macro.njk",
48
+ "macroName": "mojTimeline"
49
+ },
50
+ {
51
+ "importFrom": "moj/components/badge/macro.njk",
52
+ "macroName": "mojBadge"
53
+ },
54
+ {
55
+ "importFrom": "moj/components/messages/macro.njk",
56
+ "macroName": "mojMessages"
57
+ },
58
+ {
59
+ "importFrom": "moj/components/banner/macro.njk",
60
+ "macroName": "mojBanner"
61
+ },
62
+ {
63
+ "importFrom": "moj/components/pagination/macro.njk",
64
+ "macroName": "mojPagination"
65
+ },
66
+ {
67
+ "importFrom": "moj/components/filter/macro.njk",
68
+ "macroName": "mojFilter"
69
+ },
70
+ {
71
+ "importFrom": "moj/components/button-menu/macro.njk",
72
+ "macroName": "mojButtonMenu"
73
+ },
74
+ {
75
+ "importFrom": "moj/components/page-header-actions/macro.njk",
76
+ "macroName": "mojPageHeaderActions"
77
+ },
78
+ {
79
+ "importFrom": "moj/components/search/macro.njk",
80
+ "macroName": "mojSearch"
81
+ },
82
+ {
83
+ "importFrom": "moj/components/header/macro.njk",
84
+ "macroName": "mojHeader"
85
+ }
86
+ ]
6
87
  }
package/moj/all.js CHANGED
@@ -867,6 +867,7 @@ MOJFrontend.PasswordReveal = function(element) {
867
867
  }
868
868
 
869
869
  $el.data('moj-password-reveal-initialised', true);
870
+ $el.attr('spellcheck', 'false');
870
871
 
871
872
  $el.wrap('<div class="moj-password-reveal"></div>');
872
873
  this.container = $(this.el).parent();
@@ -7,6 +7,7 @@ MOJFrontend.PasswordReveal = function(element) {
7
7
  }
8
8
 
9
9
  $el.data('moj-password-reveal-initialised', true);
10
+ $el.attr('spellcheck', 'false');
10
11
 
11
12
  $el.wrap('<div class="moj-password-reveal"></div>');
12
13
  this.container = $(this.el).parent();
@@ -32,8 +32,8 @@ This component accepts the following arguments.
32
32
 
33
33
  |Name|Type|Required|Description|
34
34
  |---|---|---|---|
35
- |classes|string|No|Classes to add to the timeline's container.|
36
- |attributes|object|No|HTML attributes (for example data attributes) to add to the timeline's container.|
35
+ |classes|string|No|Classes to add to the ticket panel's container.|
36
+ |attributes|object|No|HTML attributes (for example data attributes) to add to the ticket panel's container.|
37
37
 
38
38
  ### Items
39
39
 
@@ -41,5 +41,16 @@ This component accepts the following arguments.
41
41
  |---|---|---|---|
42
42
  |text|string|Yes|If `html` is set, this is not required. Text to use within the item. If `html` is provided, the `text` argument will be ignored.|
43
43
  |html|string|Yes|If `text` is set, this is not required. HTML to use within the item. If `html` is provided, the `text` argument will be ignored.|
44
- |classes|string|No|Classes to add to the timeline's container.|
45
- |attributes|object|No|HTML attributes (for example data attributes) to add to the timeline's container.|
44
+ |classes|string|No|Classes to add to the ticket panel's container.|
45
+ |attributes|object|No|HTML attributes (for example data attributes) to add to the ticket panel's container.|
46
+
47
+ ### Classes
48
+
49
+ |Name|
50
+ |---|
51
+ |moj-ticket-panel__content--blue|
52
+ |moj-ticket-panel__content--red|
53
+ |moj-ticket-panel__content--yellow|
54
+ |moj-ticket-panel__content--green|
55
+ |moj-ticket-panel__content--purple|
56
+ |moj-ticket-panel__content--orange|
@@ -0,0 +1,8 @@
1
+ const { addFilter } = require('govuk-prototype-kit').views
2
+ const getAllFilters = require('./all')
3
+
4
+ const allFilters = getAllFilters()
5
+
6
+ Object.keys(allFilters).forEach(name => {
7
+ addFilter(name, allFilters[name])
8
+ })
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ministryofjustice/frontend",
3
3
  "description": "The MOJ Frontend contains the code you need to start building user interfaces for UK Ministry of Justice government services.",
4
- "version": "1.4.2",
4
+ "version": "1.6.0",
5
5
  "main": "moj/all.js",
6
6
  "sass": "moj/all.scss",
7
7
  "engines": {