govuk_publishing_components 12.8.0 → 12.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/views/govuk_publishing_components/components/_checkboxes.html.erb +1 -0
- data/app/views/govuk_publishing_components/components/docs/checkboxes.yml +13 -0
- data/lib/govuk_publishing_components/version.rb +1 -1
- data/node_modules/govuk-frontend/all.js +161 -1
- data/node_modules/govuk-frontend/components/back-link/README.md +3 -77
- data/node_modules/govuk-frontend/components/breadcrumbs/README.md +3 -101
- data/node_modules/govuk-frontend/components/button/README.md +3 -137
- data/node_modules/govuk-frontend/components/character-count/README.md +3 -149
- data/node_modules/govuk-frontend/components/character-count/character-count.js +1 -1
- data/node_modules/govuk-frontend/components/checkboxes/README.md +3 -257
- data/node_modules/govuk-frontend/components/checkboxes/checkboxes.js +1 -1
- data/node_modules/govuk-frontend/components/checkboxes/template.njk +5 -0
- data/node_modules/govuk-frontend/components/date-input/README.md +3 -173
- data/node_modules/govuk-frontend/components/date-input/macro-options.json +14 -0
- data/node_modules/govuk-frontend/components/date-input/template.njk +1 -1
- data/node_modules/govuk-frontend/components/details/README.md +3 -101
- data/node_modules/govuk-frontend/components/error-message/README.md +3 -77
- data/node_modules/govuk-frontend/components/error-summary/README.md +3 -125
- data/node_modules/govuk-frontend/components/error-summary/error-summary.js +405 -87
- data/node_modules/govuk-frontend/components/fieldset/README.md +3 -113
- data/node_modules/govuk-frontend/components/file-upload/README.md +3 -125
- data/node_modules/govuk-frontend/components/file-upload/macro-options.json +14 -0
- data/node_modules/govuk-frontend/components/file-upload/template.njk +1 -1
- data/node_modules/govuk-frontend/components/footer/README.md +3 -233
- data/node_modules/govuk-frontend/components/header/README.md +3 -197
- data/node_modules/govuk-frontend/components/hint/README.md +3 -77
- data/node_modules/govuk-frontend/components/input/README.md +3 -137
- data/node_modules/govuk-frontend/components/input/macro-options.json +14 -0
- data/node_modules/govuk-frontend/components/input/template.njk +1 -1
- data/node_modules/govuk-frontend/components/inset-text/README.md +7 -77
- data/node_modules/govuk-frontend/components/label/README.md +3 -89
- data/node_modules/govuk-frontend/components/panel/README.md +3 -89
- data/node_modules/govuk-frontend/components/phase-banner/README.md +3 -77
- data/node_modules/govuk-frontend/components/radios/README.md +3 -269
- data/node_modules/govuk-frontend/components/radios/radios.js +1 -1
- data/node_modules/govuk-frontend/components/select/README.md +3 -185
- data/node_modules/govuk-frontend/components/select/macro-options.json +14 -0
- data/node_modules/govuk-frontend/components/select/template.njk +1 -1
- data/node_modules/govuk-frontend/components/skip-link/README.md +3 -77
- data/node_modules/govuk-frontend/components/table/README.md +3 -233
- data/node_modules/govuk-frontend/components/tabs/README.md +3 -149
- data/node_modules/govuk-frontend/components/tabs/tabs.js +111 -111
- data/node_modules/govuk-frontend/components/tag/README.md +3 -65
- data/node_modules/govuk-frontend/components/textarea/README.md +3 -149
- data/node_modules/govuk-frontend/components/textarea/macro-options.json +14 -0
- data/node_modules/govuk-frontend/components/textarea/template.njk +1 -1
- data/node_modules/govuk-frontend/components/warning-text/README.md +3 -77
- data/node_modules/govuk-frontend/package.json +11 -11
- data/node_modules/govuk-frontend/vendor/polyfills/Element/prototype/classList.js +141 -1
- data/node_modules/govuk-frontend/vendor/polyfills/Element/prototype/closest.js +54 -0
- data/node_modules/govuk-frontend/vendor/polyfills/Element/prototype/matches.js +31 -0
- metadata +4 -2
@@ -0,0 +1,54 @@
|
|
1
|
+
(function (global, factory) {
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory() :
|
3
|
+
typeof define === 'function' && define.amd ? define('GOVUKFrontend', factory) :
|
4
|
+
(factory());
|
5
|
+
}(this, (function () { 'use strict';
|
6
|
+
|
7
|
+
(function(undefined) {
|
8
|
+
|
9
|
+
// Detection from https://raw.githubusercontent.com/Financial-Times/polyfill-service/1f3c09b402f65bf6e393f933a15ba63f1b86ef1f/packages/polyfill-library/polyfills/Element/prototype/matches/detect.js
|
10
|
+
var detect = (
|
11
|
+
'document' in this && "matches" in document.documentElement
|
12
|
+
);
|
13
|
+
|
14
|
+
if (detect) return
|
15
|
+
|
16
|
+
// Polyfill from https://raw.githubusercontent.com/Financial-Times/polyfill-service/1f3c09b402f65bf6e393f933a15ba63f1b86ef1f/packages/polyfill-library/polyfills/Element/prototype/matches/polyfill.js
|
17
|
+
Element.prototype.matches = Element.prototype.webkitMatchesSelector || Element.prototype.oMatchesSelector || Element.prototype.msMatchesSelector || Element.prototype.mozMatchesSelector || function matches(selector) {
|
18
|
+
var element = this;
|
19
|
+
var elements = (element.document || element.ownerDocument).querySelectorAll(selector);
|
20
|
+
var index = 0;
|
21
|
+
|
22
|
+
while (elements[index] && elements[index] !== element) {
|
23
|
+
++index;
|
24
|
+
}
|
25
|
+
|
26
|
+
return !!elements[index];
|
27
|
+
};
|
28
|
+
|
29
|
+
}).call('object' === typeof window && window || 'object' === typeof self && self || 'object' === typeof global && global || {});
|
30
|
+
|
31
|
+
(function(undefined) {
|
32
|
+
|
33
|
+
// Detection from https://raw.githubusercontent.com/Financial-Times/polyfill-service/1f3c09b402f65bf6e393f933a15ba63f1b86ef1f/packages/polyfill-library/polyfills/Element/prototype/closest/detect.js
|
34
|
+
var detect = (
|
35
|
+
'document' in this && "closest" in document.documentElement
|
36
|
+
);
|
37
|
+
|
38
|
+
if (detect) return
|
39
|
+
|
40
|
+
// Polyfill from https://raw.githubusercontent.com/Financial-Times/polyfill-service/1f3c09b402f65bf6e393f933a15ba63f1b86ef1f/packages/polyfill-library/polyfills/Element/prototype/closest/polyfill.js
|
41
|
+
Element.prototype.closest = function closest(selector) {
|
42
|
+
var node = this;
|
43
|
+
|
44
|
+
while (node) {
|
45
|
+
if (node.matches(selector)) return node;
|
46
|
+
else node = 'SVGElement' in window && node instanceof SVGElement ? node.parentNode : node.parentElement;
|
47
|
+
}
|
48
|
+
|
49
|
+
return null;
|
50
|
+
};
|
51
|
+
|
52
|
+
}).call('object' === typeof window && window || 'object' === typeof self && self || 'object' === typeof global && global || {});
|
53
|
+
|
54
|
+
})));
|
@@ -0,0 +1,31 @@
|
|
1
|
+
(function (global, factory) {
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory() :
|
3
|
+
typeof define === 'function' && define.amd ? define('GOVUKFrontend', factory) :
|
4
|
+
(factory());
|
5
|
+
}(this, (function () { 'use strict';
|
6
|
+
|
7
|
+
(function(undefined) {
|
8
|
+
|
9
|
+
// Detection from https://raw.githubusercontent.com/Financial-Times/polyfill-service/1f3c09b402f65bf6e393f933a15ba63f1b86ef1f/packages/polyfill-library/polyfills/Element/prototype/matches/detect.js
|
10
|
+
var detect = (
|
11
|
+
'document' in this && "matches" in document.documentElement
|
12
|
+
);
|
13
|
+
|
14
|
+
if (detect) return
|
15
|
+
|
16
|
+
// Polyfill from https://raw.githubusercontent.com/Financial-Times/polyfill-service/1f3c09b402f65bf6e393f933a15ba63f1b86ef1f/packages/polyfill-library/polyfills/Element/prototype/matches/polyfill.js
|
17
|
+
Element.prototype.matches = Element.prototype.webkitMatchesSelector || Element.prototype.oMatchesSelector || Element.prototype.msMatchesSelector || Element.prototype.mozMatchesSelector || function matches(selector) {
|
18
|
+
var element = this;
|
19
|
+
var elements = (element.document || element.ownerDocument).querySelectorAll(selector);
|
20
|
+
var index = 0;
|
21
|
+
|
22
|
+
while (elements[index] && elements[index] !== element) {
|
23
|
+
++index;
|
24
|
+
}
|
25
|
+
|
26
|
+
return !!elements[index];
|
27
|
+
};
|
28
|
+
|
29
|
+
}).call('object' === typeof window && window || 'object' === typeof self && self || 'object' === typeof global && global || {});
|
30
|
+
|
31
|
+
})));
|
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: 12.
|
4
|
+
version: 12.9.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: 2018-11-
|
11
|
+
date: 2018-11-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: govuk_app_config
|
@@ -845,6 +845,8 @@ files:
|
|
845
845
|
- node_modules/govuk-frontend/vendor/polyfills/Document.js
|
846
846
|
- node_modules/govuk-frontend/vendor/polyfills/Element.js
|
847
847
|
- node_modules/govuk-frontend/vendor/polyfills/Element/prototype/classList.js
|
848
|
+
- node_modules/govuk-frontend/vendor/polyfills/Element/prototype/closest.js
|
849
|
+
- node_modules/govuk-frontend/vendor/polyfills/Element/prototype/matches.js
|
848
850
|
- node_modules/govuk-frontend/vendor/polyfills/Event.js
|
849
851
|
- node_modules/govuk-frontend/vendor/polyfills/Function/prototype/bind.js
|
850
852
|
- node_modules/govuk-frontend/vendor/polyfills/Object/defineProperty.js
|