govuk_publishing_components 43.4.1 → 44.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/config/govuk_publishing_components_manifest.js +0 -1
  3. data/app/assets/javascripts/govuk_publishing_components/components/option-select.js +1 -1
  4. data/app/assets/javascripts/govuk_publishing_components/vendor/lux/lux-reporter.js +20 -19
  5. data/app/assets/stylesheets/govuk_publishing_components/components/_action-link.scss +1 -8
  6. data/app/assets/stylesheets/govuk_publishing_components/components/_cards.scss +0 -12
  7. data/app/assets/stylesheets/govuk_publishing_components/components/_contents-list.scss +0 -6
  8. data/app/assets/stylesheets/govuk_publishing_components/components/_devolved-nations.scss +1 -9
  9. data/app/assets/stylesheets/govuk_publishing_components/components/_document-list.scss +12 -10
  10. data/app/assets/stylesheets/govuk_publishing_components/components/_image-card.scss +0 -5
  11. data/app/assets/stylesheets/govuk_publishing_components/components/_inset-text.scss +0 -17
  12. data/app/assets/stylesheets/govuk_publishing_components/components/_intervention.scss +0 -17
  13. data/app/assets/stylesheets/govuk_publishing_components/components/_option-select.scss +12 -7
  14. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-header.scss +0 -12
  15. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-related.scss +0 -17
  16. data/app/assets/stylesheets/govuk_publishing_components/lib/_print_support.scss +45 -0
  17. data/app/models/govuk_publishing_components/component_wrapper_helper_options.rb +1 -0
  18. data/app/views/govuk_publishing_components/components/_action_link.html.erb +4 -4
  19. data/app/views/govuk_publishing_components/components/_cards.html.erb +1 -1
  20. data/app/views/govuk_publishing_components/components/_contents_list.html.erb +1 -1
  21. data/app/views/govuk_publishing_components/components/_contextual_guidance.html.erb +7 -3
  22. data/app/views/govuk_publishing_components/components/_cookie_banner.html.erb +12 -4
  23. data/app/views/govuk_publishing_components/components/_devolved_nations.html.erb +16 -12
  24. data/app/views/govuk_publishing_components/components/_document_list.html.erb +3 -2
  25. data/app/views/govuk_publishing_components/components/_image_card.html.erb +2 -0
  26. data/app/views/govuk_publishing_components/components/_inset_text.html.erb +1 -1
  27. data/app/views/govuk_publishing_components/components/_intervention.html.erb +1 -1
  28. data/app/views/govuk_publishing_components/components/_layout_for_admin.html.erb +0 -1
  29. data/app/views/govuk_publishing_components/components/_option_select.html.erb +5 -3
  30. data/app/views/govuk_publishing_components/components/_radio.html.erb +2 -0
  31. data/app/views/govuk_publishing_components/components/_step_by_step_nav_header.html.erb +1 -1
  32. data/app/views/govuk_publishing_components/components/_step_by_step_nav_related.html.erb +2 -2
  33. data/app/views/govuk_publishing_components/components/docs/action_link.yml +5 -5
  34. data/app/views/govuk_publishing_components/components/docs/attachment_link.yml +6 -0
  35. data/app/views/govuk_publishing_components/components/docs/big_number.yml +17 -2
  36. data/app/views/govuk_publishing_components/components/docs/breadcrumbs.yml +3 -1
  37. data/app/views/govuk_publishing_components/components/docs/contextual_guidance.yml +1 -0
  38. data/app/views/govuk_publishing_components/components/docs/devolved_nations.yml +2 -1
  39. data/app/views/govuk_publishing_components/components/docs/document_list.yml +22 -0
  40. data/app/views/govuk_publishing_components/components/docs/inverse_header.yml +2 -30
  41. data/app/views/govuk_publishing_components/components/docs/radio.yml +15 -0
  42. data/app/views/govuk_publishing_components/components/docs/search.yml +1 -3
  43. data/app/views/govuk_publishing_components/components/docs/step_by_step_nav_header.yml +2 -0
  44. data/app/views/govuk_publishing_components/components/docs/tabs.yml +1 -1
  45. data/app/views/govuk_publishing_components/components/layout_for_public/_account-layout.html.erb +0 -1
  46. data/app/views/layouts/govuk_publishing_components/application.html.erb +0 -2
  47. data/lib/govuk_publishing_components/presenters/component_wrapper_helper.rb +16 -0
  48. data/lib/govuk_publishing_components/presenters/page_with_step_by_step_navigation.rb +3 -3
  49. data/lib/govuk_publishing_components/version.rb +1 -1
  50. data/node_modules/accessible-autocomplete/CHANGELOG.md +8 -0
  51. data/node_modules/accessible-autocomplete/accessibility-criteria.md +2 -1
  52. data/node_modules/accessible-autocomplete/dist/accessible-autocomplete.min.js +1 -1
  53. data/node_modules/accessible-autocomplete/dist/accessible-autocomplete.min.js.map +1 -1
  54. data/node_modules/accessible-autocomplete/dist/lib/accessible-autocomplete.preact.min.js +1 -1
  55. data/node_modules/accessible-autocomplete/dist/lib/accessible-autocomplete.preact.min.js.map +1 -1
  56. data/node_modules/accessible-autocomplete/dist/lib/accessible-autocomplete.react.min.js +1 -1
  57. data/node_modules/accessible-autocomplete/dist/lib/accessible-autocomplete.react.min.js.map +1 -1
  58. data/node_modules/accessible-autocomplete/examples/ajax-source.html +300 -0
  59. data/node_modules/accessible-autocomplete/examples/form-single.html +4 -2
  60. data/node_modules/accessible-autocomplete/examples/index.html +7 -52
  61. data/node_modules/accessible-autocomplete/examples/suggestions.json +258 -0
  62. data/node_modules/accessible-autocomplete/package.json +15 -15
  63. data/node_modules/accessible-autocomplete/src/autocomplete.js +4 -2
  64. data/node_modules/accessible-autocomplete/test/functional/index.js +21 -5
  65. metadata +19 -4
  66. data/app/assets/javascripts/govuk_publishing_components/vendor/modernizr.js +0 -3
@@ -0,0 +1,258 @@
1
+ [
2
+ "Afghanistan",
3
+ "Akrotiri",
4
+ "Albania",
5
+ "Algeria",
6
+ "American Samoa",
7
+ "Andorra",
8
+ "Angola",
9
+ "Anguilla",
10
+ "Antarctica",
11
+ "Antigua and Barbuda",
12
+ "Argentina",
13
+ "Armenia",
14
+ "Aruba",
15
+ "Ashmore and Cartier Islands",
16
+ "Australia",
17
+ "Austria",
18
+ "Azerbaijan",
19
+ "Bahamas, The",
20
+ "Bahrain",
21
+ "Bangladesh",
22
+ "Barbados",
23
+ "Bassas da India",
24
+ "Belarus",
25
+ "Belgium",
26
+ "Belize",
27
+ "Benin",
28
+ "Bermuda",
29
+ "Bhutan",
30
+ "Bolivia",
31
+ "Bosnia and Herzegovina",
32
+ "Botswana",
33
+ "Bouvet Island",
34
+ "Brazil",
35
+ "British Indian Ocean Territory",
36
+ "British Virgin Islands",
37
+ "Brunei",
38
+ "Bulgaria",
39
+ "Burkina Faso",
40
+ "Burma",
41
+ "Burundi",
42
+ "Cambodia",
43
+ "Cameroon",
44
+ "Canada",
45
+ "Cape Verde",
46
+ "Cayman Islands",
47
+ "Central African Republic",
48
+ "Chad",
49
+ "Chile",
50
+ "China",
51
+ "Christmas Island",
52
+ "Clipperton Island",
53
+ "Cocos (Keeling) Islands",
54
+ "Colombia",
55
+ "Comoros",
56
+ "Congo",
57
+ "Cook Islands",
58
+ "Coral Sea Islands",
59
+ "Costa Rica",
60
+ "Cote d\"Ivoire",
61
+ "Croatia",
62
+ "Cuba",
63
+ "Cyprus",
64
+ "Czech Republic",
65
+ "Denmark",
66
+ "Dhekelia",
67
+ "Djibouti",
68
+ "Dominica",
69
+ "Dominican Republic",
70
+ "Ecuador",
71
+ "Egypt",
72
+ "El Salvador",
73
+ "Equatorial Guinea",
74
+ "Eritrea",
75
+ "Estonia",
76
+ "Ethiopia",
77
+ "Europa Island",
78
+ "Falkland Islands",
79
+ "Faroe Islands",
80
+ "Fiji",
81
+ "Finland",
82
+ "France",
83
+ "French Guiana",
84
+ "French Polynesia",
85
+ "French Southern and Antarctic Lands",
86
+ "Gabon",
87
+ "Gambia,",
88
+ "Gaza Strip",
89
+ "Georgia",
90
+ "Germany",
91
+ "Ghana",
92
+ "Gibraltar",
93
+ "Glorioso Islands",
94
+ "Greece",
95
+ "Greenland",
96
+ "Grenada",
97
+ "Guadeloupe",
98
+ "Guam",
99
+ "Guatemala",
100
+ "Guernsey",
101
+ "Guinea",
102
+ "Guinea-Bissau",
103
+ "Guyana",
104
+ "Haiti",
105
+ "Heard Island and McDonald Islands",
106
+ "Holy See (Vatican City)",
107
+ "Honduras",
108
+ "Hong Kong",
109
+ "Hungary",
110
+ "Iceland",
111
+ "India",
112
+ "Indonesia",
113
+ "Iran",
114
+ "Iraq",
115
+ "Ireland",
116
+ "Isle of Man",
117
+ "Israel",
118
+ "Italy",
119
+ "Jamaica",
120
+ "Jan Mayen",
121
+ "Japan",
122
+ "Jersey",
123
+ "Jordan",
124
+ "Juan de Nova Island",
125
+ "Kazakhstan",
126
+ "Kenya",
127
+ "Kiribati",
128
+ "Korea, North",
129
+ "Korea, South",
130
+ "Kuwait",
131
+ "Kyrgyzstan",
132
+ "Laos",
133
+ "Latvia",
134
+ "Lebanon",
135
+ "Lesotho",
136
+ "Liberia",
137
+ "Libya",
138
+ "Liechtenstein",
139
+ "Lithuania",
140
+ "Luxembourg",
141
+ "Macau",
142
+ "Macedonia",
143
+ "Madagascar",
144
+ "Malawi",
145
+ "Malaysia",
146
+ "Maldives",
147
+ "Mali",
148
+ "Malta",
149
+ "Marshall Islands",
150
+ "Martinique",
151
+ "Mauritania",
152
+ "Mauritius",
153
+ "Mayotte",
154
+ "Mexico",
155
+ "Micronesia, Federated States of",
156
+ "Moldova",
157
+ "Monaco",
158
+ "Mongolia",
159
+ "Montserrat",
160
+ "Morocco",
161
+ "Mozambique",
162
+ "Namibia",
163
+ "Nauru",
164
+ "Navassa Island",
165
+ "Nepal",
166
+ "Netherlands",
167
+ "Netherlands Antilles",
168
+ "New Caledonia",
169
+ "New Zealand",
170
+ "Nicaragua",
171
+ "Niger",
172
+ "Nigeria",
173
+ "Niue",
174
+ "Norfolk Island",
175
+ "Northern Mariana Islands",
176
+ "Norway",
177
+ "Oman",
178
+ "Pakistan",
179
+ "Palau",
180
+ "Panama",
181
+ "Papua New Guinea",
182
+ "Paracel Islands",
183
+ "Paraguay",
184
+ "Peru",
185
+ "Philippines",
186
+ "Pitcairn Islands",
187
+ "Poland",
188
+ "Portugal",
189
+ "Puerto Rico",
190
+ "Qatar",
191
+ "Reunion",
192
+ "Romania",
193
+ "Russia",
194
+ "Rwanda",
195
+ "Saint Helena",
196
+ "Saint Kitts and Nevis",
197
+ "Saint Lucia",
198
+ "Saint Pierre and Miquelon",
199
+ "Saint Vincent and the Grenadines",
200
+ "Samoa",
201
+ "San Marino",
202
+ "Sao Tome and Principe",
203
+ "Saudi Arabia",
204
+ "Senegal",
205
+ "Serbia and Montenegro",
206
+ "Seychelles",
207
+ "Sierra Leone",
208
+ "Singapore",
209
+ "Slovakia",
210
+ "Slovenia",
211
+ "Solomon Islands",
212
+ "Somalia",
213
+ "South Africa",
214
+ "South Georgia and the South Sandwich Islands",
215
+ "Spain",
216
+ "Spratly Islands",
217
+ "Sri Lanka",
218
+ "Sudan",
219
+ "Suriname",
220
+ "Svalbard",
221
+ "Swaziland",
222
+ "Sweden",
223
+ "Switzerland",
224
+ "Syria",
225
+ "Taiwan",
226
+ "Tajikistan",
227
+ "Tanzania",
228
+ "Thailand",
229
+ "Timor-Leste",
230
+ "Togo",
231
+ "Tokelau",
232
+ "Tonga",
233
+ "Trinidad and Tobago",
234
+ "Tromelin Island",
235
+ "Tunisia",
236
+ "Turkey",
237
+ "Turkmenistan",
238
+ "Turks and Caicos Islands",
239
+ "Tuvalu",
240
+ "Uganda",
241
+ "Ukraine",
242
+ "United Arab Emirates",
243
+ "United Kingdom",
244
+ "United States",
245
+ "Uruguay",
246
+ "Uzbekistan",
247
+ "Vanuatu",
248
+ "Venezuela",
249
+ "Vietnam",
250
+ "Virgin Islands",
251
+ "Wake Island",
252
+ "Wallis and Futuna",
253
+ "West Bank",
254
+ "Western Sahara",
255
+ "Yemen",
256
+ "Zambia",
257
+ "Zimbabwe"
258
+ ]
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "accessible-autocomplete",
3
- "version": "3.0.0",
3
+ "version": "3.0.1",
4
4
  "main": "dist/accessible-autocomplete.min.js",
5
5
  "style": "dist/accessible-autocomplete.min.css",
6
6
  "description": "An autocomplete component, built to be accessible.",
@@ -35,39 +35,39 @@
35
35
  "@babel/plugin-transform-react-jsx": "^7.23.4",
36
36
  "@babel/preset-env": "^7.23.9",
37
37
  "@babel/register": "^7.23.7",
38
- "@wdio/cli": "^8.32.3",
39
- "@wdio/globals": "^8.32.3",
40
- "@wdio/local-runner": "^8.32.3",
41
- "@wdio/mocha-framework": "^8.32.3",
42
- "@wdio/sauce-service": "^8.32.3",
43
- "@wdio/spec-reporter": "^8.32.2",
44
- "@wdio/static-server-service": "^8.32.2",
38
+ "@wdio/cli": "^8.39.1",
39
+ "@wdio/globals": "^8.39.1",
40
+ "@wdio/local-runner": "^8.39.1",
41
+ "@wdio/mocha-framework": "^8.39.0",
42
+ "@wdio/sauce-service": "^8.39.1",
43
+ "@wdio/spec-reporter": "^8.39.0",
44
+ "@wdio/static-server-service": "^8.39.0",
45
45
  "autoprefixer": "^10.4.17",
46
46
  "babel-loader": "^9.1.3",
47
47
  "babel-plugin-istanbul": "^6.1.1",
48
- "chai": "^5.1.0",
48
+ "chai": "^5.1.1",
49
49
  "chalk": "^5.3.0",
50
50
  "core-js": "^3.36.0",
51
51
  "cross-env": "^7.0.3",
52
52
  "css-loader": "^6.10.0",
53
53
  "cssnano": "^6.0.3",
54
54
  "cssnano-preset-default": "^6.0.3",
55
- "devtools": "^8.32.3",
56
- "dotenv": "^16.4.4",
57
- "husky": "^9.0.11",
58
- "karma": "^6.4.2",
55
+ "devtools": "^8.39.1",
56
+ "dotenv": "^16.4.5",
57
+ "husky": "^9.1.5",
58
+ "karma": "^6.4.4",
59
59
  "karma-chrome-launcher": "^3.2.0",
60
60
  "karma-mocha": "^2.0.1",
61
61
  "karma-mocha-reporter": "^2.2.5",
62
62
  "karma-sourcemap-loader": "^0.4.0",
63
63
  "karma-webpack": "^5.0.1",
64
64
  "mini-css-extract-plugin": "^2.8.0",
65
- "mocha": "^10.3.0",
65
+ "mocha": "^10.7.0",
66
66
  "npm-run-all": "^4.1.5",
67
67
  "postcss": "^8.4.35",
68
68
  "postcss-loader": "^8.1.0",
69
69
  "preact": "^8.5.3",
70
- "puppeteer": "^22.2.0",
70
+ "puppeteer": "^22.15.0",
71
71
  "source-map-loader": "^5.0.0",
72
72
  "standard": "^17.1.0",
73
73
  "terser-webpack-plugin": "^5.3.9",
@@ -457,7 +457,7 @@ export default class Autocomplete extends Component {
457
457
  'aria-describedby': ariaHint ? assistiveHintID : null,
458
458
  'aria-expanded': menuOpen ? 'true' : 'false',
459
459
  'aria-activedescendant': optionFocused ? `${id}__option--${focused}` : null,
460
- 'aria-owns': `${id}__listbox`,
460
+ 'aria-controls': `${id}__listbox`,
461
461
  'aria-autocomplete': (this.hasAutoselect()) ? 'both' : 'list'
462
462
  }
463
463
 
@@ -508,6 +508,8 @@ export default class Autocomplete extends Component {
508
508
  }
509
509
 
510
510
  const computedMenuAttributes = {
511
+ // set aria-labelledby first so that users can override it with menuAttributes
512
+ 'aria-labelledby': id,
511
513
  // Copy the attributes passed as props
512
514
  ...menuAttributes,
513
515
  // And add the values computed for the autocomplete
@@ -596,7 +598,7 @@ export default class Autocomplete extends Component {
596
598
  })}
597
599
 
598
600
  {showNoOptionsFound && (
599
- <li className={`${optionClassName} ${optionClassName}--no-results`}>{tNoResults()}</li>
601
+ <li className={`${optionClassName} ${optionClassName}--no-results`} role='option' aria-disabled='true'>{tNoResults()}</li>
600
602
  )}
601
603
  </ul>
602
604
 
@@ -111,15 +111,13 @@ describe('Autocomplete', () => {
111
111
  })
112
112
 
113
113
  describe('menuAttributes', () => {
114
- it('renders with the extra attribute on the menu', () => {
115
- render(<Autocomplete menuAttributes={{ 'aria-labelledby': 'autocomplete-default' }} id='autocomplete-default' />, scratch)
114
+ it('renders with extra attributes on the menu', () => {
115
+ render(<Autocomplete menuAttributes={{ 'data-test': 'test' }} id='autocomplete-default' />, scratch)
116
116
 
117
117
  const wrapperElement = scratch.getElementsByClassName('autocomplete__wrapper')[0]
118
118
  const dropdownElement = wrapperElement.getElementsByTagName('ul')[0]
119
- const inputElement = wrapperElement.getElementsByTagName('input')[0]
120
119
 
121
- expect(dropdownElement.getAttribute('aria-labelledby')).to.equal('autocomplete-default')
122
- expect(inputElement.getAttribute('id')).to.equal('autocomplete-default')
120
+ expect(dropdownElement.getAttribute('data-test')).to.equal('test')
123
121
  })
124
122
 
125
123
  describe('attributes computed by the component', () => {
@@ -174,6 +172,24 @@ describe('Autocomplete', () => {
174
172
  expect(menuAttributes.className).to.equal('custom-className')
175
173
  expect(menuAttributes.class).to.equal('custom-class')
176
174
  })
175
+
176
+ it('adds `aria-labelledby` by default, based on the ID', () => {
177
+ render(<Autocomplete id='autocomplete-default' />, scratch)
178
+
179
+ const wrapperElement = scratch.getElementsByClassName('autocomplete__wrapper')[0]
180
+ const dropdownElement = wrapperElement.getElementsByTagName('ul')[0]
181
+
182
+ expect(dropdownElement.getAttribute('aria-labelledby')).to.equal('autocomplete-default')
183
+ })
184
+
185
+ it('overrides `aria-labelledby` if passed in menuAttributes', () => {
186
+ render(<Autocomplete menuAttributes={{ 'aria-labelledby': 'test' }} id='autocomplete-default' />, scratch)
187
+
188
+ const wrapperElement = scratch.getElementsByClassName('autocomplete__wrapper')[0]
189
+ const dropdownElement = wrapperElement.getElementsByTagName('ul')[0]
190
+
191
+ expect(dropdownElement.getAttribute('aria-labelledby')).to.equal('test')
192
+ })
177
193
  })
178
194
 
179
195
  it('renders with extra class on the input', () => {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: govuk_publishing_components
3
3
  version: !ruby/object:Gem::Version
4
- version: 43.4.1
4
+ version: 44.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-20 00:00:00.000000000 Z
11
+ date: 2024-10-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: govuk_app_config
@@ -52,6 +52,20 @@ dependencies:
52
52
  - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: ostruct
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
55
69
  - !ruby/object:Gem::Dependency
56
70
  name: plek
57
71
  requirement: !ruby/object:Gem::Requirement
@@ -480,7 +494,6 @@ files:
480
494
  - app/assets/javascripts/govuk_publishing_components/single-consent-functions.js
481
495
  - app/assets/javascripts/govuk_publishing_components/vendor/lux/lux-measurer.js
482
496
  - app/assets/javascripts/govuk_publishing_components/vendor/lux/lux-reporter.js
483
- - app/assets/javascripts/govuk_publishing_components/vendor/modernizr.js
484
497
  - app/assets/stylesheets/component_guide/application.scss
485
498
  - app/assets/stylesheets/govuk_publishing_components/_all_components.scss
486
499
  - app/assets/stylesheets/govuk_publishing_components/_individual_component_support.scss
@@ -965,11 +978,13 @@ files:
965
978
  - node_modules/accessible-autocomplete/dist/lib/accessible-autocomplete.preact.min.js.map
966
979
  - node_modules/accessible-autocomplete/dist/lib/accessible-autocomplete.react.min.js
967
980
  - node_modules/accessible-autocomplete/dist/lib/accessible-autocomplete.react.min.js.map
981
+ - node_modules/accessible-autocomplete/examples/ajax-source.html
968
982
  - node_modules/accessible-autocomplete/examples/form-single.html
969
983
  - node_modules/accessible-autocomplete/examples/form.html
970
984
  - node_modules/accessible-autocomplete/examples/index.html
971
985
  - node_modules/accessible-autocomplete/examples/preact/index.html
972
986
  - node_modules/accessible-autocomplete/examples/react/index.html
987
+ - node_modules/accessible-autocomplete/examples/suggestions.json
973
988
  - node_modules/accessible-autocomplete/package.json
974
989
  - node_modules/accessible-autocomplete/postcss.config.js
975
990
  - node_modules/accessible-autocomplete/preact.js
@@ -1936,7 +1951,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
1936
1951
  - !ruby/object:Gem::Version
1937
1952
  version: '0'
1938
1953
  requirements: []
1939
- rubygems_version: 3.5.19
1954
+ rubygems_version: 3.5.21
1940
1955
  signing_key:
1941
1956
  specification_version: 4
1942
1957
  summary: A gem to document components in GOV.UK frontend applications
@@ -1,3 +0,0 @@
1
- /*! modernizr 3.6.0 (Custom Build) | MIT *
2
- * https://modernizr.com/download/?-flexbox-flexboxtweener-history-printshiv-setclasses !*/
3
- !function(e,t,n){function r(e,t){return typeof e===t}function o(){var e,t,n,o,i,a,s;for(var l in E)if(E.hasOwnProperty(l)){if(e=[],t=E[l],t.name&&(e.push(t.name.toLowerCase()),t.options&&t.options.aliases&&t.options.aliases.length))for(n=0;n<t.options.aliases.length;n++)e.push(t.options.aliases[n].toLowerCase());for(o=r(t.fn,"function")?t.fn():t.fn,i=0;i<e.length;i++)a=e[i],s=a.split("."),1===s.length?Modernizr[s[0]]=o:(!Modernizr[s[0]]||Modernizr[s[0]]instanceof Boolean||(Modernizr[s[0]]=new Boolean(Modernizr[s[0]])),Modernizr[s[0]][s[1]]=o),x.push((o?"":"no-")+s.join("-"))}}function i(e){var t=C.className,n=Modernizr._config.classPrefix||"";if(b&&(t=t.baseVal),Modernizr._config.enableJSClass){var r=new RegExp("(^|\\s)"+n+"no-js(\\s|$)");t=t.replace(r,"$1"+n+"js$2")}Modernizr._config.enableClasses&&(t+=" "+n+e.join(" "+n),b?C.className.baseVal=t:C.className=t)}function a(e,t){return!!~(""+e).indexOf(t)}function s(){return"function"!=typeof t.createElement?t.createElement(arguments[0]):b?t.createElementNS.call(t,"http://www.w3.org/2000/svg",arguments[0]):t.createElement.apply(t,arguments)}function l(){var e=t.body;return e||(e=s(b?"svg":"body"),e.fake=!0),e}function u(e,n,r,o){var i,a,u,f,c="modernizr",d=s("div"),p=l();if(parseInt(r,10))for(;r--;)u=s("div"),u.id=o?o[r]:c+(r+1),d.appendChild(u);return i=s("style"),i.type="text/css",i.id="s"+c,(p.fake?p:d).appendChild(i),p.appendChild(d),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(t.createTextNode(e)),d.id=c,p.fake&&(p.style.background="",p.style.overflow="hidden",f=C.style.overflow,C.style.overflow="hidden",C.appendChild(p)),a=n(d,e),p.fake?(p.parentNode.removeChild(p),C.style.overflow=f,C.offsetHeight):d.parentNode.removeChild(d),!!a}function f(e){return e.replace(/([A-Z])/g,function(e,t){return"-"+t.toLowerCase()}).replace(/^ms-/,"-ms-")}function c(t,n,r){var o;if("getComputedStyle"in e){o=getComputedStyle.call(e,t,n);var i=e.console;if(null!==o)r&&(o=o.getPropertyValue(r));else if(i){var a=i.error?"error":"log";i[a].call(i,"getComputedStyle returning null, its possible modernizr test results are inaccurate")}}else o=!n&&t.currentStyle&&t.currentStyle[r];return o}function d(t,r){var o=t.length;if("CSS"in e&&"supports"in e.CSS){for(;o--;)if(e.CSS.supports(f(t[o]),r))return!0;return!1}if("CSSSupportsRule"in e){for(var i=[];o--;)i.push("("+f(t[o])+":"+r+")");return i=i.join(" or "),u("@supports ("+i+") { #modernizr { position: absolute; } }",function(e){return"absolute"==c(e,null,"position")})}return n}function p(e){return e.replace(/([a-z])-([a-z])/g,function(e,t,n){return t+n.toUpperCase()}).replace(/^-/,"")}function m(e,t,o,i){function l(){f&&(delete _.style,delete _.modElem)}if(i=r(i,"undefined")?!1:i,!r(o,"undefined")){var u=d(e,o);if(!r(u,"undefined"))return u}for(var f,c,m,h,v,g=["modernizr","tspan","samp"];!_.style&&g.length;)f=!0,_.modElem=s(g.shift()),_.style=_.modElem.style;for(m=e.length,c=0;m>c;c++)if(h=e[c],v=_.style[h],a(h,"-")&&(h=p(h)),_.style[h]!==n){if(i||r(o,"undefined"))return l(),"pfx"==t?h:!0;try{_.style[h]=o}catch(y){}if(_.style[h]!=v)return l(),"pfx"==t?h:!0}return l(),!1}function h(e,t){return function(){return e.apply(t,arguments)}}function v(e,t,n){var o;for(var i in e)if(e[i]in t)return n===!1?e[i]:(o=t[e[i]],r(o,"function")?h(o,n||t):o);return!1}function g(e,t,n,o,i){var a=e.charAt(0).toUpperCase()+e.slice(1),s=(e+" "+N.join(a+" ")+a).split(" ");return r(t,"string")||r(t,"undefined")?m(s,t,o,i):(s=(e+" "+j.join(a+" ")+a).split(" "),v(s,t,n))}function y(e,t,r){return g(e,n,n,t,r)}var E=[],S={_version:"3.6.0",_config:{classPrefix:"",enableClasses:!0,enableJSClass:!0,usePrefixes:!0},_q:[],on:function(e,t){var n=this;setTimeout(function(){t(n[e])},0)},addTest:function(e,t,n){E.push({name:e,fn:t,options:n})},addAsyncTest:function(e){E.push({name:null,fn:e})}},Modernizr=function(){};Modernizr.prototype=S,Modernizr=new Modernizr;var x=[],C=t.documentElement,b="svg"===C.nodeName.toLowerCase();b||!function(e,t){function n(e,t){var n=e.createElement("p"),r=e.getElementsByTagName("head")[0]||e.documentElement;return n.innerHTML="x<style>"+t+"</style>",r.insertBefore(n.lastChild,r.firstChild)}function r(){var e=w.elements;return"string"==typeof e?e.split(" "):e}function o(e,t){var n=w.elements;"string"!=typeof n&&(n=n.join(" ")),"string"!=typeof e&&(e=e.join(" ")),w.elements=n+" "+e,u(t)}function i(e){var t=b[e[x]];return t||(t={},C++,e[x]=C,b[C]=t),t}function a(e,n,r){if(n||(n=t),v)return n.createElement(e);r||(r=i(n));var o;return o=r.cache[e]?r.cache[e].cloneNode():S.test(e)?(r.cache[e]=r.createElem(e)).cloneNode():r.createElem(e),!o.canHaveChildren||E.test(e)||o.tagUrn?o:r.frag.appendChild(o)}function s(e,n){if(e||(e=t),v)return e.createDocumentFragment();n=n||i(e);for(var o=n.frag.cloneNode(),a=0,s=r(),l=s.length;l>a;a++)o.createElement(s[a]);return o}function l(e,t){t.cache||(t.cache={},t.createElem=e.createElement,t.createFrag=e.createDocumentFragment,t.frag=t.createFrag()),e.createElement=function(n){return w.shivMethods?a(n,e,t):t.createElem(n)},e.createDocumentFragment=Function("h,f","return function(){var n=f.cloneNode(),c=n.createElement;h.shivMethods&&("+r().join().replace(/[\w\-:]+/g,function(e){return t.createElem(e),t.frag.createElement(e),'c("'+e+'")'})+");return n}")(w,t.frag)}function u(e){e||(e=t);var r=i(e);return!w.shivCSS||h||r.hasCSS||(r.hasCSS=!!n(e,"article,aside,dialog,figcaption,figure,footer,header,hgroup,main,nav,section{display:block}mark{background:#FF0;color:#000}template{display:none}")),v||l(e,r),e}function f(e){for(var t,n=e.getElementsByTagName("*"),o=n.length,i=RegExp("^(?:"+r().join("|")+")$","i"),a=[];o--;)t=n[o],i.test(t.nodeName)&&a.push(t.applyElement(c(t)));return a}function c(e){for(var t,n=e.attributes,r=n.length,o=e.ownerDocument.createElement(T+":"+e.nodeName);r--;)t=n[r],t.specified&&o.setAttribute(t.nodeName,t.nodeValue);return o.style.cssText=e.style.cssText,o}function d(e){for(var t,n=e.split("{"),o=n.length,i=RegExp("(^|[\\s,>+~])("+r().join("|")+")(?=[[\\s,>+~#.:]|$)","gi"),a="$1"+T+"\\:$2";o--;)t=n[o]=n[o].split("}"),t[t.length-1]=t[t.length-1].replace(i,a),n[o]=t.join("}");return n.join("{")}function p(e){for(var t=e.length;t--;)e[t].removeNode()}function m(e){function t(){clearTimeout(a._removeSheetTimer),r&&r.removeNode(!0),r=null}var r,o,a=i(e),s=e.namespaces,l=e.parentWindow;return!_||e.printShived?e:("undefined"==typeof s[T]&&s.add(T),l.attachEvent("onbeforeprint",function(){t();for(var i,a,s,l=e.styleSheets,u=[],c=l.length,p=Array(c);c--;)p[c]=l[c];for(;s=p.pop();)if(!s.disabled&&N.test(s.media)){try{i=s.imports,a=i.length}catch(m){a=0}for(c=0;a>c;c++)p.push(i[c]);try{u.push(s.cssText)}catch(m){}}u=d(u.reverse().join("")),o=f(e),r=n(e,u)}),l.attachEvent("onafterprint",function(){p(o),clearTimeout(a._removeSheetTimer),a._removeSheetTimer=setTimeout(t,500)}),e.printShived=!0,e)}var h,v,g="3.7.3",y=e.html5||{},E=/^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i,S=/^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i,x="_html5shiv",C=0,b={};!function(){try{var e=t.createElement("a");e.innerHTML="<xyz></xyz>",h="hidden"in e,v=1==e.childNodes.length||function(){t.createElement("a");var e=t.createDocumentFragment();return"undefined"==typeof e.cloneNode||"undefined"==typeof e.createDocumentFragment||"undefined"==typeof e.createElement}()}catch(n){h=!0,v=!0}}();var w={elements:y.elements||"abbr article aside audio bdi canvas data datalist details dialog figcaption figure footer header hgroup main mark meter nav output picture progress section summary template time video",version:g,shivCSS:y.shivCSS!==!1,supportsUnknownElements:v,shivMethods:y.shivMethods!==!1,type:"default",shivDocument:u,createElement:a,createDocumentFragment:s,addElements:o};e.html5=w,u(t);var N=/^$|\b(?:all|print)\b/,T="html5shiv",_=!v&&function(){var n=t.documentElement;return!("undefined"==typeof t.namespaces||"undefined"==typeof t.parentWindow||"undefined"==typeof n.applyElement||"undefined"==typeof n.removeNode||"undefined"==typeof e.attachEvent)}();w.type+=" print",w.shivPrint=m,m(t),"object"==typeof module&&module.exports&&(module.exports=w)}("undefined"!=typeof e?e:this,t),Modernizr.addTest("history",function(){var t=navigator.userAgent;return-1===t.indexOf("Android 2.")&&-1===t.indexOf("Android 4.0")||-1===t.indexOf("Mobile Safari")||-1!==t.indexOf("Chrome")||-1!==t.indexOf("Windows Phone")||"file:"===location.protocol?e.history&&"pushState"in e.history:!1});var w="Moz O ms Webkit",N=S._config.usePrefixes?w.split(" "):[];S._cssomPrefixes=N;var T={elem:s("modernizr")};Modernizr._q.push(function(){delete T.elem});var _={style:T.elem.style};Modernizr._q.unshift(function(){delete _.style});var j=S._config.usePrefixes?w.toLowerCase().split(" "):[];S._domPrefixes=j,S.testAllProps=g,S.testAllProps=y,Modernizr.addTest("flexbox",y("flexBasis","1px",!0)),Modernizr.addTest("flexboxtweener",y("flexAlign","end",!0)),o(),i(x),delete S.addTest,delete S.addAsyncTest;for(var P=0;P<Modernizr._q.length;P++)Modernizr._q[P]();e.Modernizr=Modernizr}(window,document);