govuk_publishing_components 24.4.0 → 24.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (39) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/govuk_publishing_components/components/accordion.js +7 -5
  3. data/app/assets/javascripts/govuk_publishing_components/components/details.js +3 -2
  4. data/app/assets/javascripts/govuk_publishing_components/components/reorderable-list.js +108 -0
  5. data/app/assets/javascripts/govuk_publishing_components/lib/header-navigation.js +6 -2
  6. data/app/assets/javascripts/govuk_publishing_components/modules.js +3 -1
  7. data/app/assets/stylesheets/component_guide/application.scss +1 -1
  8. data/app/assets/stylesheets/govuk_publishing_components/_all_components.scss +1 -0
  9. data/app/assets/stylesheets/govuk_publishing_components/_all_components_print.scss +1 -1
  10. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-for-public.scss +10 -1
  11. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-header.scss +8 -7
  12. data/app/assets/stylesheets/govuk_publishing_components/components/_reorderable-list.scss +117 -0
  13. data/app/assets/stylesheets/govuk_publishing_components/components/_search.scss +15 -1
  14. data/app/assets/stylesheets/govuk_publishing_components/components/_summary-list.scss +12 -0
  15. data/app/views/govuk_publishing_components/components/_layout_for_public.html.erb +48 -7
  16. data/app/views/govuk_publishing_components/components/_layout_header.html.erb +15 -12
  17. data/app/views/govuk_publishing_components/components/_list.html.erb +5 -5
  18. data/app/views/govuk_publishing_components/components/_reorderable_list.html.erb +45 -0
  19. data/app/views/govuk_publishing_components/components/_search.html.erb +27 -16
  20. data/app/views/govuk_publishing_components/components/_summary_list.html.erb +73 -31
  21. data/app/views/govuk_publishing_components/components/docs/contextual_sidebar.yml +3 -0
  22. data/app/views/govuk_publishing_components/components/docs/layout_for_public.yml +26 -0
  23. data/app/views/govuk_publishing_components/components/docs/reorderable_list.yml +85 -0
  24. data/app/views/govuk_publishing_components/components/docs/search.yml +10 -0
  25. data/app/views/govuk_publishing_components/components/docs/summary_list.yml +50 -19
  26. data/app/views/govuk_publishing_components/components/layout_header/_navigation_items.html.erb +8 -1
  27. data/app/views/govuk_publishing_components/components/layout_header/_search.html.erb +17 -3
  28. data/config/locales/en.yml +24 -16
  29. data/lib/govuk_publishing_components/presenters/contextual_navigation.rb +5 -0
  30. data/lib/govuk_publishing_components/version.rb +1 -1
  31. data/node_modules/sortablejs/LICENSE +21 -0
  32. data/node_modules/sortablejs/README.md +815 -0
  33. data/node_modules/sortablejs/Sortable.js +3721 -0
  34. data/node_modules/sortablejs/Sortable.min.js +2 -0
  35. data/node_modules/sortablejs/modular/sortable.complete.esm.js +3713 -0
  36. data/node_modules/sortablejs/modular/sortable.core.esm.js +3710 -0
  37. data/node_modules/sortablejs/modular/sortable.esm.js +3711 -0
  38. data/node_modules/sortablejs/package.json +56 -0
  39. metadata +18 -6
@@ -0,0 +1,56 @@
1
+ {
2
+ "name": "sortablejs",
3
+ "exportName": "Sortable",
4
+ "version": "1.13.0",
5
+ "devDependencies": {
6
+ "@babel/core": "^7.4.4",
7
+ "@babel/plugin-transform-object-assign": "^7.2.0",
8
+ "@babel/preset-env": "^7.4.4",
9
+ "rollup": "^1.11.3",
10
+ "rollup-plugin-babel": "^4.3.2",
11
+ "rollup-plugin-json": "^4.0.0",
12
+ "rollup-plugin-node-resolve": "^5.0.0",
13
+ "testcafe": "^1.3.1",
14
+ "testcafe-browser-provider-saucelabs": "^1.7.0",
15
+ "testcafe-reporter-xunit": "^2.1.0",
16
+ "uglify-js": "^3.5.12"
17
+ },
18
+ "description": "JavaScript library for reorderable drag-and-drop lists on modern browsers and touch devices. No jQuery required. Supports Meteor, AngularJS, React, Polymer, Vue, Knockout and any CSS library, e.g. Bootstrap.",
19
+ "main": "./Sortable.js",
20
+ "module": "modular/sortable.esm.js",
21
+ "scripts": {
22
+ "build:umd": "NODE_ENV=umd rollup -c ./scripts/umd-build.js",
23
+ "build:umd:watch": "set NODE_ENV=umd&& rollup -w -c ./scripts/umd-build.js",
24
+ "build:es": "set NODE_ENV=es&& rollup -c ./scripts/esm-build.js",
25
+ "build:es:watch": "set NODE_ENV=es&& rollup -w -c ./scripts/esm-build.js",
26
+ "minify": "node ./scripts/minify.js",
27
+ "build": "npm run build:es && npm run build:umd && npm run minify",
28
+ "test:compat": "node ./scripts/test-compat.js",
29
+ "test": "node ./scripts/test.js"
30
+ },
31
+ "maintainers": [
32
+ "Konstantin Lebedev <ibnRubaXa@gmail.com>",
33
+ "Owen Mills <owen23355@gmail.com>"
34
+ ],
35
+ "repository": {
36
+ "type": "git",
37
+ "url": "git://github.com/SortableJS/Sortable.git"
38
+ },
39
+ "files": [
40
+ "Sortable.js",
41
+ "Sortable.min.js",
42
+ "modular/"
43
+ ],
44
+ "keywords": [
45
+ "sortable",
46
+ "reorder",
47
+ "drag",
48
+ "meteor",
49
+ "angular",
50
+ "ng-sortable",
51
+ "react",
52
+ "vue",
53
+ "mixin"
54
+ ],
55
+ "license": "MIT"
56
+ }
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: 24.4.0
4
+ version: 24.7.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: 2021-03-02 00:00:00.000000000 Z
11
+ date: 2021-03-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: govuk_app_config
@@ -170,14 +170,14 @@ dependencies:
170
170
  requirements:
171
171
  - - "~>"
172
172
  - !ruby/object:Gem::Version
173
- version: 3.6.0
173
+ version: 3.7.0
174
174
  type: :development
175
175
  prerelease: false
176
176
  version_requirements: !ruby/object:Gem::Requirement
177
177
  requirements:
178
178
  - - "~>"
179
179
  - !ruby/object:Gem::Version
180
- version: 3.6.0
180
+ version: 3.7.0
181
181
  - !ruby/object:Gem::Dependency
182
182
  name: jasmine_selenium_runner
183
183
  requirement: !ruby/object:Gem::Requirement
@@ -226,14 +226,14 @@ dependencies:
226
226
  requirements:
227
227
  - - "~>"
228
228
  - !ruby/object:Gem::Version
229
- version: '4.0'
229
+ version: '5.0'
230
230
  type: :development
231
231
  prerelease: false
232
232
  version_requirements: !ruby/object:Gem::Requirement
233
233
  requirements:
234
234
  - - "~>"
235
235
  - !ruby/object:Gem::Version
236
- version: '4.0'
236
+ version: '5.0'
237
237
  - !ruby/object:Gem::Dependency
238
238
  name: rubocop-govuk
239
239
  requirement: !ruby/object:Gem::Requirement
@@ -430,6 +430,7 @@ files:
430
430
  - app/assets/javascripts/govuk_publishing_components/components/modal-dialogue.js
431
431
  - app/assets/javascripts/govuk_publishing_components/components/print-link.js
432
432
  - app/assets/javascripts/govuk_publishing_components/components/radio.js
433
+ - app/assets/javascripts/govuk_publishing_components/components/reorderable-list.js
433
434
  - app/assets/javascripts/govuk_publishing_components/components/show-password.js
434
435
  - app/assets/javascripts/govuk_publishing_components/components/step-by-step-nav.js
435
436
  - app/assets/javascripts/govuk_publishing_components/components/tabs.js
@@ -508,6 +509,7 @@ files:
508
509
  - app/assets/stylesheets/govuk_publishing_components/components/_print-link.scss
509
510
  - app/assets/stylesheets/govuk_publishing_components/components/_radio.scss
510
511
  - app/assets/stylesheets/govuk_publishing_components/components/_related-navigation.scss
512
+ - app/assets/stylesheets/govuk_publishing_components/components/_reorderable-list.scss
511
513
  - app/assets/stylesheets/govuk_publishing_components/components/_search.scss
512
514
  - app/assets/stylesheets/govuk_publishing_components/components/_select.scss
513
515
  - app/assets/stylesheets/govuk_publishing_components/components/_share-links.scss
@@ -656,6 +658,7 @@ files:
656
658
  - app/views/govuk_publishing_components/components/_print_link.html.erb
657
659
  - app/views/govuk_publishing_components/components/_radio.html.erb
658
660
  - app/views/govuk_publishing_components/components/_related_navigation.html.erb
661
+ - app/views/govuk_publishing_components/components/_reorderable_list.html.erb
659
662
  - app/views/govuk_publishing_components/components/_search.html.erb
660
663
  - app/views/govuk_publishing_components/components/_select.html.erb
661
664
  - app/views/govuk_publishing_components/components/_share_links.html.erb
@@ -734,6 +737,7 @@ files:
734
737
  - app/views/govuk_publishing_components/components/docs/print_link.yml
735
738
  - app/views/govuk_publishing_components/components/docs/radio.yml
736
739
  - app/views/govuk_publishing_components/components/docs/related_navigation.yml
740
+ - app/views/govuk_publishing_components/components/docs/reorderable_list.yml
737
741
  - app/views/govuk_publishing_components/components/docs/search.yml
738
742
  - app/views/govuk_publishing_components/components/docs/select.yml
739
743
  - app/views/govuk_publishing_components/components/docs/share_links.yml
@@ -1848,6 +1852,14 @@ files:
1848
1852
  - node_modules/jquery/src/var/support.js
1849
1853
  - node_modules/jquery/src/var/toString.js
1850
1854
  - node_modules/jquery/src/wrap.js
1855
+ - node_modules/sortablejs/LICENSE
1856
+ - node_modules/sortablejs/README.md
1857
+ - node_modules/sortablejs/Sortable.js
1858
+ - node_modules/sortablejs/Sortable.min.js
1859
+ - node_modules/sortablejs/modular/sortable.complete.esm.js
1860
+ - node_modules/sortablejs/modular/sortable.core.esm.js
1861
+ - node_modules/sortablejs/modular/sortable.esm.js
1862
+ - node_modules/sortablejs/package.json
1851
1863
  homepage: https://github.com/alphagov/govuk_publishing_components
1852
1864
  licenses:
1853
1865
  - MIT