govuk_tech_docs 3.4.0 → 3.4.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (75) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +9 -1
  3. data/lib/assets/stylesheets/_govuk_tech_docs.scss +13 -0
  4. data/lib/govuk_tech_docs/version.rb +1 -1
  5. data/lib/source/favicon.ico +0 -0
  6. data/lib/source/layouts/_header.erb +13 -15
  7. data/node_modules/govuk-frontend/govuk/all-ie8.scss +8 -0
  8. data/node_modules/govuk-frontend/govuk/all.js +4918 -3796
  9. data/node_modules/govuk-frontend/govuk/common/closest-attribute-value.js +54 -49
  10. data/node_modules/govuk-frontend/govuk/common/govuk-frontend-version.js +17 -0
  11. data/node_modules/govuk-frontend/govuk/common/index.js +172 -152
  12. data/node_modules/govuk-frontend/govuk/common/normalise-dataset.js +334 -321
  13. data/node_modules/govuk-frontend/govuk/common.js +171 -151
  14. data/node_modules/govuk-frontend/govuk/components/_all.scss +3 -2
  15. data/node_modules/govuk-frontend/govuk/components/accordion/_index.scss +26 -7
  16. data/node_modules/govuk-frontend/govuk/components/accordion/accordion.js +2203 -1650
  17. data/node_modules/govuk-frontend/govuk/components/back-link/_index.scss +24 -16
  18. data/node_modules/govuk-frontend/govuk/components/breadcrumbs/_index.scss +34 -11
  19. data/node_modules/govuk-frontend/govuk/components/button/_index.scss +49 -9
  20. data/node_modules/govuk-frontend/govuk/components/button/button.js +961 -916
  21. data/node_modules/govuk-frontend/govuk/components/character-count/character-count.js +2142 -2038
  22. data/node_modules/govuk-frontend/govuk/components/checkboxes/_index.scss +6 -6
  23. data/node_modules/govuk-frontend/govuk/components/checkboxes/checkboxes.js +1204 -1145
  24. data/node_modules/govuk-frontend/govuk/components/details/details.js +826 -799
  25. data/node_modules/govuk-frontend/govuk/components/error-summary/error-summary.js +1097 -1044
  26. data/node_modules/govuk-frontend/govuk/components/exit-this-page/_exit-this-page.scss +2 -0
  27. data/node_modules/govuk-frontend/govuk/components/exit-this-page/_index.scss +97 -0
  28. data/node_modules/govuk-frontend/govuk/components/exit-this-page/exit-this-page.js +2120 -0
  29. data/node_modules/govuk-frontend/govuk/components/file-upload/_index.scss +6 -1
  30. data/node_modules/govuk-frontend/govuk/components/footer/_index.scss +0 -7
  31. data/node_modules/govuk-frontend/govuk/components/header/_index.scss +6 -0
  32. data/node_modules/govuk-frontend/govuk/components/header/header.js +683 -1003
  33. data/node_modules/govuk-frontend/govuk/components/input/_index.scss +15 -3
  34. data/node_modules/govuk-frontend/govuk/components/notification-banner/notification-banner.js +786 -751
  35. data/node_modules/govuk-frontend/govuk/components/radios/_index.scss +5 -5
  36. data/node_modules/govuk-frontend/govuk/components/radios/radios.js +1151 -1105
  37. data/node_modules/govuk-frontend/govuk/components/select/_index.scss +7 -1
  38. data/node_modules/govuk-frontend/govuk/components/skip-link/skip-link.js +1045 -1014
  39. data/node_modules/govuk-frontend/govuk/components/summary-list/_index.scss +107 -0
  40. data/node_modules/govuk-frontend/govuk/components/tabs/tabs.js +1514 -1268
  41. data/node_modules/govuk-frontend/govuk/components/tag/_index.scss +18 -18
  42. data/node_modules/govuk-frontend/govuk/components/textarea/_index.scss +8 -1
  43. data/node_modules/govuk-frontend/govuk/core/_all.scss +1 -0
  44. data/node_modules/govuk-frontend/govuk/core/_govuk-frontend-version.scss +5 -0
  45. data/node_modules/govuk-frontend/govuk/helpers/_colour.scss +5 -2
  46. data/node_modules/govuk-frontend/govuk/helpers/_focused.scss +1 -1
  47. data/node_modules/govuk-frontend/govuk/helpers/_font-faces.scss +1 -1
  48. data/node_modules/govuk-frontend/govuk/helpers/_visually-hidden.scss +12 -0
  49. data/node_modules/govuk-frontend/govuk/i18n.js +371 -364
  50. data/node_modules/govuk-frontend/govuk/objects/_template.scss +20 -0
  51. data/node_modules/govuk-frontend/govuk/objects/_width-container.scss +1 -1
  52. data/node_modules/govuk-frontend/govuk/settings/_colours-organisations.scss +4 -0
  53. data/node_modules/govuk-frontend/govuk/settings/_ie8.scss +16 -0
  54. data/node_modules/govuk-frontend/govuk/settings/_links.scss +5 -1
  55. data/node_modules/govuk-frontend/govuk/settings/_measurements.scss +5 -5
  56. data/node_modules/govuk-frontend/govuk/tools/_ie8.scss +38 -2
  57. data/node_modules/govuk-frontend/govuk/vendor/polyfills/DOMTokenList.js +243 -241
  58. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Date/now.js +14 -12
  59. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Document.js +18 -16
  60. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/classList.js +553 -545
  61. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/closest.js +40 -36
  62. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/dataset.js +257 -250
  63. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/matches.js +22 -20
  64. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/nextElementSibling.js +204 -197
  65. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element/prototype/previousElementSibling.js +204 -197
  66. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Element.js +109 -105
  67. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Event.js +407 -399
  68. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Function/prototype/bind.js +242 -238
  69. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Object/defineProperty.js +73 -71
  70. data/node_modules/govuk-frontend/govuk/vendor/polyfills/String/prototype/trim.js +15 -13
  71. data/node_modules/govuk-frontend/govuk/vendor/polyfills/Window.js +18 -16
  72. data/node_modules/govuk-frontend/govuk-prototype-kit/init.js +1 -0
  73. data/package-lock.json +7 -7
  74. data/package.json +1 -1
  75. metadata +8 -3
@@ -1,272 +1,274 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory() :
3
- typeof define === 'function' && define.amd ? define('GOVUKFrontend', factory) :
4
- (factory());
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory() :
3
+ typeof define === 'function' && define.amd ? define('GOVUKFrontend', factory) :
4
+ (factory());
5
5
  }(this, (function () { 'use strict';
6
6
 
7
- (function(undefined) {
8
-
9
- // Detection from https://raw.githubusercontent.com/Financial-Times/polyfill-service/master/packages/polyfill-library/polyfills/DOMTokenList/detect.js
10
- var detect = (
11
- 'DOMTokenList' in this && (function (x) {
12
- return 'classList' in x ? !x.classList.toggle('x', false) && !x.className : true;
13
- })(document.createElement('x'))
14
- );
15
-
16
- if (detect) return
17
-
18
- // Polyfill from https://raw.githubusercontent.com/Financial-Times/polyfill-service/master/packages/polyfill-library/polyfills/DOMTokenList/polyfill.js
19
- (function (global) {
20
- var nativeImpl = "DOMTokenList" in global && global.DOMTokenList;
21
-
22
- if (
23
- !nativeImpl ||
24
- (
25
- !!document.createElementNS &&
26
- !!document.createElementNS('http://www.w3.org/2000/svg', 'svg') &&
27
- !(document.createElementNS("http://www.w3.org/2000/svg", "svg").classList instanceof DOMTokenList)
28
- )
29
- ) {
30
- global.DOMTokenList = (function() { // eslint-disable-line no-unused-vars
31
- var dpSupport = true;
32
- var defineGetter = function (object, name, fn, configurable) {
33
- if (Object.defineProperty)
34
- Object.defineProperty(object, name, {
35
- configurable: false === dpSupport ? true : !!configurable,
36
- get: fn
37
- });
38
-
39
- else object.__defineGetter__(name, fn);
40
- };
41
-
42
- /** Ensure the browser allows Object.defineProperty to be used on native JavaScript objects. */
43
- try {
44
- defineGetter({}, "support");
45
- }
46
- catch (e) {
47
- dpSupport = false;
48
- }
49
-
50
-
51
- var _DOMTokenList = function (el, prop) {
52
- var that = this;
53
- var tokens = [];
54
- var tokenMap = {};
55
- var length = 0;
56
- var maxLength = 0;
57
- var addIndexGetter = function (i) {
58
- defineGetter(that, i, function () {
59
- preop();
60
- return tokens[i];
61
- }, false);
7
+ // @ts-nocheck
8
+ (function (undefined) {
9
+
10
+ // Detection from https://raw.githubusercontent.com/Financial-Times/polyfill-service/master/packages/polyfill-library/polyfills/DOMTokenList/detect.js
11
+ var detect = (
12
+ 'DOMTokenList' in this && (function (x) {
13
+ return 'classList' in x ? !x.classList.toggle('x', false) && !x.className : true;
14
+ })(document.createElement('x'))
15
+ );
16
+
17
+ if (detect) return
18
+
19
+ // Polyfill from https://raw.githubusercontent.com/Financial-Times/polyfill-service/master/packages/polyfill-library/polyfills/DOMTokenList/polyfill.js
20
+ (function (global) {
21
+ var nativeImpl = "DOMTokenList" in global && global.DOMTokenList;
22
+
23
+ if (
24
+ !nativeImpl ||
25
+ (
26
+ !!document.createElementNS &&
27
+ !!document.createElementNS('http://www.w3.org/2000/svg', 'svg') &&
28
+ !(document.createElementNS("http://www.w3.org/2000/svg", "svg").classList instanceof DOMTokenList)
29
+ )
30
+ ) {
31
+ global.DOMTokenList = (function() { // eslint-disable-line no-unused-vars
32
+ var dpSupport = true;
33
+ var defineGetter = function (object, name, fn, configurable) {
34
+ if (Object.defineProperty)
35
+ Object.defineProperty(object, name, {
36
+ configurable: false === dpSupport ? true : !!configurable,
37
+ get: fn
38
+ });
39
+
40
+ else object.__defineGetter__(name, fn);
41
+ };
62
42
 
63
- };
64
- var reindex = function () {
43
+ /** Ensure the browser allows Object.defineProperty to be used on native JavaScript objects. */
44
+ try {
45
+ defineGetter({}, "support");
46
+ }
47
+ catch (e) {
48
+ dpSupport = false;
49
+ }
65
50
 
66
- /** Define getter functions for array-like access to the tokenList's contents. */
67
- if (length >= maxLength)
68
- for (; maxLength < length; ++maxLength) {
69
- addIndexGetter(maxLength);
70
- }
71
- };
72
51
 
73
- /** Helper function called at the start of each class method. Internal use only. */
74
- var preop = function () {
75
- var error;
76
- var i;
77
- var args = arguments;
78
- var rSpace = /\s+/;
79
-
80
- /** Validate the token/s passed to an instance method, if any. */
81
- if (args.length)
82
- for (i = 0; i < args.length; ++i)
83
- if (rSpace.test(args[i])) {
84
- error = new SyntaxError('String "' + args[i] + '" ' + "contains" + ' an invalid character');
85
- error.code = 5;
86
- error.name = "InvalidCharacterError";
87
- throw error;
52
+ var _DOMTokenList = function (el, prop) {
53
+ var that = this;
54
+ var tokens = [];
55
+ var tokenMap = {};
56
+ var length = 0;
57
+ var maxLength = 0;
58
+ var addIndexGetter = function (i) {
59
+ defineGetter(that, i, function () {
60
+ preop();
61
+ return tokens[i];
62
+ }, false);
63
+
64
+ };
65
+ var reindex = function () {
66
+
67
+ /** Define getter functions for array-like access to the tokenList's contents. */
68
+ if (length >= maxLength)
69
+ for (; maxLength < length; ++maxLength) {
70
+ addIndexGetter(maxLength);
71
+ }
72
+ };
73
+
74
+ /** Helper function called at the start of each class method. Internal use only. */
75
+ var preop = function () {
76
+ var error;
77
+ var i;
78
+ var args = arguments;
79
+ var rSpace = /\s+/;
80
+
81
+ /** Validate the token/s passed to an instance method, if any. */
82
+ if (args.length)
83
+ for (i = 0; i < args.length; ++i)
84
+ if (rSpace.test(args[i])) {
85
+ error = new SyntaxError('String "' + args[i] + '" ' + "contains" + ' an invalid character');
86
+ error.code = 5;
87
+ error.name = "InvalidCharacterError";
88
+ throw error;
89
+ }
90
+
91
+
92
+ /** Split the new value apart by whitespace*/
93
+ if (typeof el[prop] === "object") {
94
+ tokens = ("" + el[prop].baseVal).replace(/^\s+|\s+$/g, "").split(rSpace);
95
+ } else {
96
+ tokens = ("" + el[prop]).replace(/^\s+|\s+$/g, "").split(rSpace);
88
97
  }
89
98
 
99
+ /** Avoid treating blank strings as single-item token lists */
100
+ if ("" === tokens[0]) tokens = [];
90
101
 
91
- /** Split the new value apart by whitespace*/
92
- if (typeof el[prop] === "object") {
93
- tokens = ("" + el[prop].baseVal).replace(/^\s+|\s+$/g, "").split(rSpace);
94
- } else {
95
- tokens = ("" + el[prop]).replace(/^\s+|\s+$/g, "").split(rSpace);
96
- }
97
-
98
- /** Avoid treating blank strings as single-item token lists */
99
- if ("" === tokens[0]) tokens = [];
100
-
101
- /** Repopulate the internal token lists */
102
- tokenMap = {};
103
- for (i = 0; i < tokens.length; ++i)
104
- tokenMap[tokens[i]] = true;
105
- length = tokens.length;
106
- reindex();
107
- };
102
+ /** Repopulate the internal token lists */
103
+ tokenMap = {};
104
+ for (i = 0; i < tokens.length; ++i)
105
+ tokenMap[tokens[i]] = true;
106
+ length = tokens.length;
107
+ reindex();
108
+ };
108
109
 
109
- /** Populate our internal token list if the targeted attribute of the subject element isn't empty. */
110
- preop();
110
+ /** Populate our internal token list if the targeted attribute of the subject element isn't empty. */
111
+ preop();
111
112
 
112
- /** Return the number of tokens in the underlying string. Read-only. */
113
- defineGetter(that, "length", function () {
114
- preop();
115
- return length;
116
- });
113
+ /** Return the number of tokens in the underlying string. Read-only. */
114
+ defineGetter(that, "length", function () {
115
+ preop();
116
+ return length;
117
+ });
118
+
119
+ /** Override the default toString/toLocaleString methods to return a space-delimited list of tokens when typecast. */
120
+ that.toLocaleString =
121
+ that.toString = function () {
122
+ preop();
123
+ return tokens.join(" ");
124
+ };
125
+
126
+ that.item = function (idx) {
127
+ preop();
128
+ return tokens[idx];
129
+ };
130
+
131
+ that.contains = function (token) {
132
+ preop();
133
+ return !!tokenMap[token];
134
+ };
135
+
136
+ that.add = function () {
137
+ preop.apply(that, args = arguments);
138
+
139
+ for (var args, token, i = 0, l = args.length; i < l; ++i) {
140
+ token = args[i];
141
+ if (!tokenMap[token]) {
142
+ tokens.push(token);
143
+ tokenMap[token] = true;
144
+ }
145
+ }
117
146
 
118
- /** Override the default toString/toLocaleString methods to return a space-delimited list of tokens when typecast. */
119
- that.toLocaleString =
120
- that.toString = function () {
121
- preop();
122
- return tokens.join(" ");
123
- };
147
+ /** Update the targeted attribute of the attached element if the token list's changed. */
148
+ if (length !== tokens.length) {
149
+ length = tokens.length >>> 0;
150
+ if (typeof el[prop] === "object") {
151
+ el[prop].baseVal = tokens.join(" ");
152
+ } else {
153
+ el[prop] = tokens.join(" ");
154
+ }
155
+ reindex();
156
+ }
157
+ };
124
158
 
125
- that.item = function (idx) {
126
- preop();
127
- return tokens[idx];
128
- };
159
+ that.remove = function () {
160
+ preop.apply(that, args = arguments);
129
161
 
130
- that.contains = function (token) {
131
- preop();
132
- return !!tokenMap[token];
133
- };
162
+ /** Build a hash of token names to compare against when recollecting our token list. */
163
+ for (var args, ignore = {}, i = 0, t = []; i < args.length; ++i) {
164
+ ignore[args[i]] = true;
165
+ delete tokenMap[args[i]];
166
+ }
134
167
 
135
- that.add = function () {
136
- preop.apply(that, args = arguments);
168
+ /** Run through our tokens list and reassign only those that aren't defined in the hash declared above. */
169
+ for (i = 0; i < tokens.length; ++i)
170
+ if (!ignore[tokens[i]]) t.push(tokens[i]);
137
171
 
138
- for (var args, token, i = 0, l = args.length; i < l; ++i) {
139
- token = args[i];
140
- if (!tokenMap[token]) {
141
- tokens.push(token);
142
- tokenMap[token] = true;
143
- }
144
- }
172
+ tokens = t;
173
+ length = t.length >>> 0;
145
174
 
146
- /** Update the targeted attribute of the attached element if the token list's changed. */
147
- if (length !== tokens.length) {
148
- length = tokens.length >>> 0;
149
- if (typeof el[prop] === "object") {
150
- el[prop].baseVal = tokens.join(" ");
151
- } else {
152
- el[prop] = tokens.join(" ");
153
- }
154
- reindex();
155
- }
156
- };
175
+ /** Update the targeted attribute of the attached element. */
176
+ if (typeof el[prop] === "object") {
177
+ el[prop].baseVal = tokens.join(" ");
178
+ } else {
179
+ el[prop] = tokens.join(" ");
180
+ }
181
+ reindex();
182
+ };
183
+
184
+ that.toggle = function (token, force) {
185
+ preop.apply(that, [token]);
186
+
187
+ /** Token state's being forced. */
188
+ if (undefined !== force) {
189
+ if (force) {
190
+ that.add(token);
191
+ return true;
192
+ } else {
193
+ that.remove(token);
194
+ return false;
195
+ }
196
+ }
157
197
 
158
- that.remove = function () {
159
- preop.apply(that, args = arguments);
198
+ /** Token already exists in tokenList. Remove it, and return FALSE. */
199
+ if (tokenMap[token]) {
200
+ that.remove(token);
201
+ return false;
202
+ }
160
203
 
161
- /** Build a hash of token names to compare against when recollecting our token list. */
162
- for (var args, ignore = {}, i = 0, t = []; i < args.length; ++i) {
163
- ignore[args[i]] = true;
164
- delete tokenMap[args[i]];
165
- }
204
+ /** Otherwise, add the token and return TRUE. */
205
+ that.add(token);
206
+ return true;
207
+ };
166
208
 
167
- /** Run through our tokens list and reassign only those that aren't defined in the hash declared above. */
168
- for (i = 0; i < tokens.length; ++i)
169
- if (!ignore[tokens[i]]) t.push(tokens[i]);
209
+ return that;
210
+ };
170
211
 
171
- tokens = t;
172
- length = t.length >>> 0;
212
+ return _DOMTokenList;
213
+ }());
214
+ }
173
215
 
174
- /** Update the targeted attribute of the attached element. */
175
- if (typeof el[prop] === "object") {
176
- el[prop].baseVal = tokens.join(" ");
177
- } else {
178
- el[prop] = tokens.join(" ");
216
+ // Add second argument to native DOMTokenList.toggle() if necessary
217
+ (function () {
218
+ var e = document.createElement('span');
219
+ if (!('classList' in e)) return;
220
+ e.classList.toggle('x', false);
221
+ if (!e.classList.contains('x')) return;
222
+ e.classList.constructor.prototype.toggle = function toggle(token /*, force*/) {
223
+ var force = arguments[1];
224
+ if (force === undefined) {
225
+ var add = !this.contains(token);
226
+ this[add ? 'add' : 'remove'](token);
227
+ return add;
179
228
  }
180
- reindex();
229
+ force = !!force;
230
+ this[force ? 'add' : 'remove'](token);
231
+ return force;
181
232
  };
182
-
183
- that.toggle = function (token, force) {
184
- preop.apply(that, [token]);
185
-
186
- /** Token state's being forced. */
187
- if (undefined !== force) {
188
- if (force) {
189
- that.add(token);
190
- return true;
191
- } else {
192
- that.remove(token);
193
- return false;
194
- }
233
+ }());
234
+
235
+ // Add multiple arguments to native DOMTokenList.add() if necessary
236
+ (function () {
237
+ var e = document.createElement('span');
238
+ if (!('classList' in e)) return;
239
+ e.classList.add('a', 'b');
240
+ if (e.classList.contains('b')) return;
241
+ var native = e.classList.constructor.prototype.add;
242
+ e.classList.constructor.prototype.add = function () {
243
+ var args = arguments;
244
+ var l = arguments.length;
245
+ for (var i = 0; i < l; i++) {
246
+ native.call(this, args[i]);
195
247
  }
196
-
197
- /** Token already exists in tokenList. Remove it, and return FALSE. */
198
- if (tokenMap[token]) {
199
- that.remove(token);
200
- return false;
248
+ };
249
+ }());
250
+
251
+ // Add multiple arguments to native DOMTokenList.remove() if necessary
252
+ (function () {
253
+ var e = document.createElement('span');
254
+ if (!('classList' in e)) return;
255
+ e.classList.add('a');
256
+ e.classList.add('b');
257
+ e.classList.remove('a', 'b');
258
+ if (!e.classList.contains('b')) return;
259
+ var native = e.classList.constructor.prototype.remove;
260
+ e.classList.constructor.prototype.remove = function () {
261
+ var args = arguments;
262
+ var l = arguments.length;
263
+ for (var i = 0; i < l; i++) {
264
+ native.call(this, args[i]);
201
265
  }
202
-
203
- /** Otherwise, add the token and return TRUE. */
204
- that.add(token);
205
- return true;
206
266
  };
267
+ }());
207
268
 
208
- return that;
209
- };
210
-
211
- return _DOMTokenList;
212
- }());
213
- }
214
-
215
- // Add second argument to native DOMTokenList.toggle() if necessary
216
- (function () {
217
- var e = document.createElement('span');
218
- if (!('classList' in e)) return;
219
- e.classList.toggle('x', false);
220
- if (!e.classList.contains('x')) return;
221
- e.classList.constructor.prototype.toggle = function toggle(token /*, force*/) {
222
- var force = arguments[1];
223
- if (force === undefined) {
224
- var add = !this.contains(token);
225
- this[add ? 'add' : 'remove'](token);
226
- return add;
227
- }
228
- force = !!force;
229
- this[force ? 'add' : 'remove'](token);
230
- return force;
231
- };
232
- }());
233
-
234
- // Add multiple arguments to native DOMTokenList.add() if necessary
235
- (function () {
236
- var e = document.createElement('span');
237
- if (!('classList' in e)) return;
238
- e.classList.add('a', 'b');
239
- if (e.classList.contains('b')) return;
240
- var native = e.classList.constructor.prototype.add;
241
- e.classList.constructor.prototype.add = function () {
242
- var args = arguments;
243
- var l = arguments.length;
244
- for (var i = 0; i < l; i++) {
245
- native.call(this, args[i]);
246
- }
247
- };
248
- }());
249
-
250
- // Add multiple arguments to native DOMTokenList.remove() if necessary
251
- (function () {
252
- var e = document.createElement('span');
253
- if (!('classList' in e)) return;
254
- e.classList.add('a');
255
- e.classList.add('b');
256
- e.classList.remove('a', 'b');
257
- if (!e.classList.contains('b')) return;
258
- var native = e.classList.constructor.prototype.remove;
259
- e.classList.constructor.prototype.remove = function () {
260
- var args = arguments;
261
- var l = arguments.length;
262
- for (var i = 0; i < l; i++) {
263
- native.call(this, args[i]);
264
- }
265
- };
266
- }());
267
-
268
- }(this));
269
+ }(this));
269
270
 
270
- }).call('object' === typeof window && window || 'object' === typeof self && self || 'object' === typeof global && global || {});
271
+ }).call('object' === typeof window && window || 'object' === typeof self && self || 'object' === typeof global && global || {});
271
272
 
272
273
  })));
274
+ //# sourceMappingURL=DOMTokenList.js.map
@@ -1,21 +1,23 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory() :
3
- typeof define === 'function' && define.amd ? define('GOVUKFrontend', factory) :
4
- (factory());
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory() :
3
+ typeof define === 'function' && define.amd ? define('GOVUKFrontend', factory) :
4
+ (factory());
5
5
  }(this, (function () { 'use strict';
6
6
 
7
- (function(undefined) {
7
+ // @ts-nocheck
8
+ (function (undefined) {
8
9
 
9
- // Detection from https://github.com/Financial-Times/polyfill-library/blob/v3.111.0/polyfills/Date/now/detect.js
10
- var detect = ('Date' in self && 'now' in self.Date && 'getTime' in self.Date.prototype);
10
+ // Detection from https://github.com/Financial-Times/polyfill-library/blob/v3.111.0/polyfills/Date/now/detect.js
11
+ var detect = ('Date' in self && 'now' in self.Date && 'getTime' in self.Date.prototype);
11
12
 
12
- if (detect) return
13
+ if (detect) return
13
14
 
14
- // Polyfill from https://polyfill.io/v3/polyfill.js?version=3.111.0&features=Date.now&flags=always
15
- Date.now = function () {
16
- return new Date().getTime();
17
- };
15
+ // Polyfill from https://polyfill.io/v3/polyfill.js?version=3.111.0&features=Date.now&flags=always
16
+ Date.now = function () {
17
+ return new Date().getTime();
18
+ };
18
19
 
19
- }).call('object' === typeof window && window || 'object' === typeof self && self || 'object' === typeof global && global || {});
20
+ }).call('object' === typeof window && window || 'object' === typeof self && self || 'object' === typeof global && global || {});
20
21
 
21
22
  })));
23
+ //# sourceMappingURL=now.js.map
@@ -4,31 +4,33 @@
4
4
  (factory());
5
5
  }(this, (function () { 'use strict';
6
6
 
7
- (function(undefined) {
7
+ // @ts-nocheck
8
+ (function (undefined) {
8
9
 
9
- // Detection from https://github.com/Financial-Times/polyfill-service/blob/master/packages/polyfill-library/polyfills/Document/detect.js
10
- var detect = ("Document" in this);
10
+ // Detection from https://github.com/Financial-Times/polyfill-service/blob/master/packages/polyfill-library/polyfills/Document/detect.js
11
+ var detect = ("Document" in this);
11
12
 
12
- if (detect) return
13
+ if (detect) return
13
14
 
14
- // Polyfill from https://cdn.polyfill.io/v2/polyfill.js?features=Document&flags=always
15
- if ((typeof WorkerGlobalScope === "undefined") && (typeof importScripts !== "function")) {
15
+ // Polyfill from https://cdn.polyfill.io/v2/polyfill.js?features=Document&flags=always
16
+ if ((typeof WorkerGlobalScope === "undefined") && (typeof importScripts !== "function")) {
16
17
 
17
- if (this.HTMLDocument) { // IE8
18
+ if (this.HTMLDocument) { // IE8
18
19
 
19
- // HTMLDocument is an extension of Document. If the browser has HTMLDocument but not Document, the former will suffice as an alias for the latter.
20
- this.Document = this.HTMLDocument;
20
+ // HTMLDocument is an extension of Document. If the browser has HTMLDocument but not Document, the former will suffice as an alias for the latter.
21
+ this.Document = this.HTMLDocument;
21
22
 
22
- } else {
23
+ } else {
23
24
 
24
- // Create an empty function to act as the missing constructor for the document object, attach the document object as its prototype. The function needs to be anonymous else it is hoisted and causes the feature detect to prematurely pass, preventing the assignments below being made.
25
- this.Document = this.HTMLDocument = document.constructor = (new Function('return function Document() {}')());
26
- this.Document.prototype = document;
25
+ // Create an empty function to act as the missing constructor for the document object, attach the document object as its prototype. The function needs to be anonymous else it is hoisted and causes the feature detect to prematurely pass, preventing the assignments below being made.
26
+ this.Document = this.HTMLDocument = document.constructor = (new Function('return function Document() {}')());
27
+ this.Document.prototype = document;
28
+ }
27
29
  }
28
- }
29
30
 
30
31
 
31
- })
32
- .call('object' === typeof window && window || 'object' === typeof self && self || 'object' === typeof global && global || {});
32
+ })
33
+ .call('object' === typeof window && window || 'object' === typeof self && self || 'object' === typeof global && global || {});
33
34
 
34
35
  })));
36
+ //# sourceMappingURL=Document.js.map