govuk_publishing_components 43.0.1 → 43.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (113) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/component_guide/application.js +1 -0
  3. data/app/assets/javascripts/govuk_publishing_components/components/password-input.js +5 -0
  4. data/app/assets/javascripts/govuk_publishing_components/lib/govspeak/youtube-link-enhancement.js +10 -17
  5. data/app/assets/javascripts/govuk_publishing_components/vendor/lux/lux-reporter.js +39 -17
  6. data/app/assets/stylesheets/component_guide/application.scss +1 -1
  7. data/app/assets/stylesheets/govuk_publishing_components/_all_components.scss +2 -0
  8. data/app/assets/stylesheets/govuk_publishing_components/components/_cross-service-header.scss +3 -1
  9. data/app/assets/stylesheets/govuk_publishing_components/components/_intervention.scss +1 -1
  10. data/app/assets/stylesheets/govuk_publishing_components/components/_inverse-header.scss +3 -1
  11. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-footer.scss +32 -3
  12. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-header.scss +1 -3
  13. data/app/assets/stylesheets/govuk_publishing_components/components/_layout-super-navigation-header.scss +1 -1
  14. data/app/assets/stylesheets/govuk_publishing_components/components/_metadata.scss +1 -1
  15. data/app/assets/stylesheets/govuk_publishing_components/components/_password-input.scss +2 -0
  16. data/app/assets/stylesheets/govuk_publishing_components/components/_phase-banner.scss +1 -1
  17. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-header.scss +1 -1
  18. data/app/assets/stylesheets/govuk_publishing_components/components/_step-by-step-nav-related.scss +1 -1
  19. data/app/assets/stylesheets/govuk_publishing_components/components/_success-alert.scss +1 -1
  20. data/app/assets/stylesheets/govuk_publishing_components/components/_summary-card.scss +16 -0
  21. data/app/assets/stylesheets/govuk_publishing_components/components/_table.scss +1 -1
  22. data/app/assets/stylesheets/govuk_publishing_components/components/_warning-text.scss +1 -1
  23. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_button.scss +1 -1
  24. data/app/assets/stylesheets/govuk_publishing_components/components/govspeak/_highlight-answer.scss +2 -4
  25. data/app/assets/stylesheets/govuk_publishing_components/govuk_frontend_support.scss +4 -0
  26. data/app/views/govuk_publishing_components/components/_chat_entry.html.erb +13 -1
  27. data/app/views/govuk_publishing_components/components/_layout_footer.html.erb +1 -1
  28. data/app/views/govuk_publishing_components/components/_password_input.html.erb +78 -0
  29. data/app/views/govuk_publishing_components/components/_summary_card.html.erb +62 -0
  30. data/app/views/govuk_publishing_components/components/docs/chat_entry.yml +5 -0
  31. data/app/views/govuk_publishing_components/components/docs/password_input.yml +45 -0
  32. data/app/views/govuk_publishing_components/components/docs/summary_card.yml +93 -0
  33. data/app/views/govuk_publishing_components/components/layout_header/_navigation_items.html.erb +6 -3
  34. data/app/views/govuk_publishing_components/components/layout_header/_search.html.erb +7 -2
  35. data/config/locales/ar.yml +5 -0
  36. data/config/locales/az.yml +5 -0
  37. data/config/locales/be.yml +5 -0
  38. data/config/locales/bg.yml +5 -0
  39. data/config/locales/bn.yml +5 -0
  40. data/config/locales/cs.yml +5 -0
  41. data/config/locales/cy.yml +5 -0
  42. data/config/locales/da.yml +5 -0
  43. data/config/locales/de.yml +5 -0
  44. data/config/locales/dr.yml +5 -0
  45. data/config/locales/el.yml +5 -0
  46. data/config/locales/en.yml +5 -0
  47. data/config/locales/es-419.yml +5 -0
  48. data/config/locales/es.yml +5 -0
  49. data/config/locales/et.yml +5 -0
  50. data/config/locales/fa.yml +5 -0
  51. data/config/locales/fi.yml +5 -0
  52. data/config/locales/fr.yml +5 -0
  53. data/config/locales/gd.yml +5 -0
  54. data/config/locales/gu.yml +5 -0
  55. data/config/locales/he.yml +5 -0
  56. data/config/locales/hi.yml +5 -0
  57. data/config/locales/hr.yml +5 -0
  58. data/config/locales/hu.yml +5 -0
  59. data/config/locales/hy.yml +5 -0
  60. data/config/locales/id.yml +5 -0
  61. data/config/locales/is.yml +5 -0
  62. data/config/locales/it.yml +5 -0
  63. data/config/locales/ja.yml +5 -0
  64. data/config/locales/ka.yml +5 -0
  65. data/config/locales/kk.yml +5 -0
  66. data/config/locales/ko.yml +5 -0
  67. data/config/locales/lt.yml +5 -0
  68. data/config/locales/lv.yml +5 -0
  69. data/config/locales/ms.yml +5 -0
  70. data/config/locales/mt.yml +5 -0
  71. data/config/locales/nl.yml +5 -0
  72. data/config/locales/no.yml +5 -0
  73. data/config/locales/pa-pk.yml +5 -0
  74. data/config/locales/pa.yml +5 -0
  75. data/config/locales/pl.yml +5 -0
  76. data/config/locales/ps.yml +5 -0
  77. data/config/locales/pt.yml +5 -0
  78. data/config/locales/ro.yml +5 -0
  79. data/config/locales/ru.yml +5 -0
  80. data/config/locales/si.yml +5 -0
  81. data/config/locales/sk.yml +5 -0
  82. data/config/locales/sl.yml +5 -0
  83. data/config/locales/so.yml +5 -0
  84. data/config/locales/sq.yml +5 -0
  85. data/config/locales/sr.yml +5 -0
  86. data/config/locales/sv.yml +5 -0
  87. data/config/locales/sw.yml +5 -0
  88. data/config/locales/ta.yml +5 -0
  89. data/config/locales/th.yml +5 -0
  90. data/config/locales/tk.yml +5 -0
  91. data/config/locales/tr.yml +5 -0
  92. data/config/locales/uk.yml +5 -0
  93. data/config/locales/ur.yml +5 -0
  94. data/config/locales/uz.yml +5 -0
  95. data/config/locales/vi.yml +5 -0
  96. data/config/locales/zh-hk.yml +5 -0
  97. data/config/locales/zh-tw.yml +5 -0
  98. data/config/locales/zh.yml +5 -0
  99. data/lib/govuk_publishing_components/version.rb +1 -1
  100. data/node_modules/sortablejs/README.md +3 -2
  101. data/node_modules/sortablejs/Sortable.js +5 -4
  102. data/node_modules/sortablejs/Sortable.min.js +2 -2
  103. data/node_modules/sortablejs/modular/sortable.complete.esm.js +5 -4
  104. data/node_modules/sortablejs/modular/sortable.core.esm.js +5 -4
  105. data/node_modules/sortablejs/modular/sortable.esm.js +5 -4
  106. data/node_modules/sortablejs/package.json +3 -2
  107. data/node_modules/sortablejs/src/Animation.js +175 -0
  108. data/node_modules/sortablejs/src/BrowserInfo.js +12 -0
  109. data/node_modules/sortablejs/src/EventDispatcher.js +57 -0
  110. data/node_modules/sortablejs/src/PluginManager.js +94 -0
  111. data/node_modules/sortablejs/src/Sortable.js +2011 -0
  112. data/node_modules/sortablejs/src/utils.js +595 -0
  113. metadata +15 -2
@@ -145,6 +145,11 @@
145
145
  selected:
146
146
  organisation_schema:
147
147
  all_content_search_description: Finn alt innhold fra %{organization}
148
+ password_input:
149
+ button:
150
+ button_aria_label:
151
+ error_text_prefix:
152
+ label:
148
153
  previous_and_next_navigation:
149
154
  next:
150
155
  pagination: Paginering
@@ -141,6 +141,11 @@ pa-pk:
141
141
  selected:
142
142
  organisation_schema:
143
143
  all_content_search_description: "%{organisation} توں سارا مواد تلاش کرو"
144
+ password_input:
145
+ button:
146
+ button_aria_label:
147
+ error_text_prefix:
148
+ label:
144
149
  previous_and_next_navigation:
145
150
  next:
146
151
  pagination: ورقہ بندی
@@ -145,6 +145,11 @@ pa:
145
145
  selected:
146
146
  organisation_schema:
147
147
  all_content_search_description: "%{organisation} ਤੋਂ ਸਾਰੀ ਸਮਗਰੀ ਲੱਭੋ"
148
+ password_input:
149
+ button:
150
+ button_aria_label:
151
+ error_text_prefix:
152
+ label:
148
153
  previous_and_next_navigation:
149
154
  next:
150
155
  pagination: ਪੰਨਾ
@@ -149,6 +149,11 @@ pl:
149
149
  selected:
150
150
  organisation_schema:
151
151
  all_content_search_description: Znajdź całą zawartość od %{organizacja}
152
+ password_input:
153
+ button:
154
+ button_aria_label:
155
+ error_text_prefix:
156
+ label:
152
157
  previous_and_next_navigation:
153
158
  next:
154
159
  pagination: Numeracja stron
@@ -142,6 +142,11 @@ ps:
142
142
  selected:
143
143
  organisation_schema:
144
144
  all_content_search_description: له%{organization} څخه ټوله مینځپانګه ومومئ
145
+ password_input:
146
+ button:
147
+ button_aria_label:
148
+ error_text_prefix:
149
+ label:
145
150
  previous_and_next_navigation:
146
151
  next:
147
152
  pagination: مخینه
@@ -145,6 +145,11 @@ pt:
145
145
  selected:
146
146
  organisation_schema:
147
147
  all_content_search_description: Encontrar todo o conteúdo de %{organisation}
148
+ password_input:
149
+ button:
150
+ button_aria_label:
151
+ error_text_prefix:
152
+ label:
148
153
  previous_and_next_navigation:
149
154
  next:
150
155
  pagination: Paginação
@@ -146,6 +146,11 @@ ro:
146
146
  selected:
147
147
  organisation_schema:
148
148
  all_content_search_description: Găsiți tot conținutul de la %{organisation}
149
+ password_input:
150
+ button:
151
+ button_aria_label:
152
+ error_text_prefix:
153
+ label:
149
154
  previous_and_next_navigation:
150
155
  next:
151
156
  pagination: Paginație
@@ -149,6 +149,11 @@ ru:
149
149
  selected:
150
150
  organisation_schema:
151
151
  all_content_search_description: Найти весь контент от %{organization}
152
+ password_input:
153
+ button:
154
+ button_aria_label:
155
+ error_text_prefix:
156
+ label:
152
157
  previous_and_next_navigation:
153
158
  next:
154
159
  pagination: Разбивка
@@ -145,6 +145,11 @@ si:
145
145
  selected:
146
146
  organisation_schema:
147
147
  all_content_search_description: "%{organisation} වෙතින් සියලුම අන්තර්ගතය සෝයන්න"
148
+ password_input:
149
+ button:
150
+ button_aria_label:
151
+ error_text_prefix:
152
+ label:
148
153
  previous_and_next_navigation:
149
154
  next:
150
155
  pagination: පිටු අංකය
@@ -150,6 +150,11 @@ sk:
150
150
  selected:
151
151
  organisation_schema:
152
152
  all_content_search_description: Nájsť všetok obsah z %{organisation}
153
+ password_input:
154
+ button:
155
+ button_aria_label:
156
+ error_text_prefix:
157
+ label:
153
158
  previous_and_next_navigation:
154
159
  next:
155
160
  pagination: Stránkovanie
@@ -152,6 +152,11 @@ sl:
152
152
  selected:
153
153
  organisation_schema:
154
154
  all_content_search_description: Oglejte si vse gradivo %{organisation}
155
+ password_input:
156
+ button:
157
+ button_aria_label:
158
+ error_text_prefix:
159
+ label:
155
160
  previous_and_next_navigation:
156
161
  next:
157
162
  pagination: Oštevilčenje
@@ -145,6 +145,11 @@ so:
145
145
  selected:
146
146
  organisation_schema:
147
147
  all_content_search_description: Raadi dhamaan waxyaabaha uu ka koobanyahay %{organisation}
148
+ password_input:
149
+ button:
150
+ button_aria_label:
151
+ error_text_prefix:
152
+ label:
148
153
  previous_and_next_navigation:
149
154
  next:
150
155
  pagination: Lambar siinta boga
@@ -145,6 +145,11 @@ sq:
145
145
  selected:
146
146
  organisation_schema:
147
147
  all_content_search_description: Gjeni të gjithë përmbajtjen nga %{organisation}
148
+ password_input:
149
+ button:
150
+ button_aria_label:
151
+ error_text_prefix:
152
+ label:
148
153
  previous_and_next_navigation:
149
154
  next:
150
155
  pagination: Numërtimi
@@ -146,6 +146,11 @@ sr:
146
146
  selected:
147
147
  organisation_schema:
148
148
  all_content_search_description: Pronađite sav sadržaj organizacije %{organisation}
149
+ password_input:
150
+ button:
151
+ button_aria_label:
152
+ error_text_prefix:
153
+ label:
149
154
  previous_and_next_navigation:
150
155
  next:
151
156
  pagination: Broj stranice
@@ -145,6 +145,11 @@ sv:
145
145
  selected:
146
146
  organisation_schema:
147
147
  all_content_search_description: Hitta allt innehåll från %{organisation}
148
+ password_input:
149
+ button:
150
+ button_aria_label:
151
+ error_text_prefix:
152
+ label:
148
153
  previous_and_next_navigation:
149
154
  next:
150
155
  pagination: Paginering
@@ -145,6 +145,11 @@ sw:
145
145
  selected:
146
146
  organisation_schema:
147
147
  all_content_search_description: Tafuta maudhui yote kutoka %{organisation}
148
+ password_input:
149
+ button:
150
+ button_aria_label:
151
+ error_text_prefix:
152
+ label:
148
153
  previous_and_next_navigation:
149
154
  next:
150
155
  pagination: Nambari za kurasa
@@ -146,6 +146,11 @@ ta:
146
146
  selected:
147
147
  organisation_schema:
148
148
  all_content_search_description: "%{organisation}-லிருந்து அனைத்து உள்ளடக்கத்தையும் கண்டறி"
149
+ password_input:
150
+ button:
151
+ button_aria_label:
152
+ error_text_prefix:
153
+ label:
149
154
  previous_and_next_navigation:
150
155
  next:
151
156
  pagination: பக்கமிடுதல்
@@ -143,6 +143,11 @@ th:
143
143
  selected:
144
144
  organisation_schema:
145
145
  all_content_search_description: ค้นหาเนื้อหาทั้งหมดจาก %{organisation}
146
+ password_input:
147
+ button:
148
+ button_aria_label:
149
+ error_text_prefix:
150
+ label:
146
151
  previous_and_next_navigation:
147
152
  next:
148
153
  pagination: การแบ่งหน้า
@@ -146,6 +146,11 @@ tk:
146
146
  selected:
147
147
  organisation_schema:
148
148
  all_content_search_description: Ähli mazmunyny %{organisation}-dan tapyň
149
+ password_input:
150
+ button:
151
+ button_aria_label:
152
+ error_text_prefix:
153
+ label:
149
154
  previous_and_next_navigation:
150
155
  next:
151
156
  pagination: Sahypa
@@ -146,6 +146,11 @@ tr:
146
146
  selected:
147
147
  organisation_schema:
148
148
  all_content_search_description: "%{organisation} kaynaklı tüm içeriği bul"
149
+ password_input:
150
+ button:
151
+ button_aria_label:
152
+ error_text_prefix:
153
+ label:
149
154
  previous_and_next_navigation:
150
155
  next:
151
156
  pagination: Sayfa
@@ -152,6 +152,11 @@ uk:
152
152
  selected:
153
153
  organisation_schema:
154
154
  all_content_search_description: Знайти весь вміст від %{organization}
155
+ password_input:
156
+ button:
157
+ button_aria_label:
158
+ error_text_prefix:
159
+ label:
155
160
  previous_and_next_navigation:
156
161
  next:
157
162
  pagination: Поділ на сторінки
@@ -142,6 +142,11 @@ ur:
142
142
  selected:
143
143
  organisation_schema:
144
144
  all_content_search_description: "%{organisation} کا تمام مواد تلاش کریں"
145
+ password_input:
146
+ button:
147
+ button_aria_label:
148
+ error_text_prefix:
149
+ label:
145
150
  previous_and_next_navigation:
146
151
  next:
147
152
  pagination: صفحہ بندی
@@ -147,6 +147,11 @@ uz:
147
147
  selected:
148
148
  organisation_schema:
149
149
  all_content_search_description: "%{organization} дан бутун контентни топиш"
150
+ password_input:
151
+ button:
152
+ button_aria_label:
153
+ error_text_prefix:
154
+ label:
150
155
  previous_and_next_navigation:
151
156
  next:
152
157
  pagination: Саҳифаларнинг рақамланиши
@@ -144,6 +144,11 @@ vi:
144
144
  selected:
145
145
  organisation_schema:
146
146
  all_content_search_description: Tìm tất cả nội dung từ %{organisation}
147
+ password_input:
148
+ button:
149
+ button_aria_label:
150
+ error_text_prefix:
151
+ label:
147
152
  previous_and_next_navigation:
148
153
  next:
149
154
  pagination: Phân trang
@@ -143,6 +143,11 @@ zh-hk:
143
143
  selected:
144
144
  organisation_schema:
145
145
  all_content_search_description: 從 %{organisation} 獲得更多內容
146
+ password_input:
147
+ button:
148
+ button_aria_label:
149
+ error_text_prefix:
150
+ label:
146
151
  previous_and_next_navigation:
147
152
  next:
148
153
  pagination: 分頁
@@ -143,6 +143,11 @@ zh-tw:
143
143
  selected:
144
144
  organisation_schema:
145
145
  all_content_search_description: 從 %{organisation} 找到所有內容
146
+ password_input:
147
+ button:
148
+ button_aria_label:
149
+ error_text_prefix:
150
+ label:
146
151
  previous_and_next_navigation:
147
152
  next:
148
153
  pagination: 分頁
@@ -143,6 +143,11 @@ zh:
143
143
  selected:
144
144
  organisation_schema:
145
145
  all_content_search_description: 查找 %{organisation} 的全部内容
146
+ password_input:
147
+ button:
148
+ button_aria_label:
149
+ error_text_prefix:
150
+ label:
146
151
  previous_and_next_navigation:
147
152
  next:
148
153
  pagination: 分页
@@ -1,3 +1,3 @@
1
1
  module GovukPublishingComponents
2
- VERSION = "43.0.1".freeze
2
+ VERSION = "43.1.0".freeze
3
3
  end
@@ -739,8 +739,9 @@ Mounts a plugin to Sortable.
739
739
  * clone(el`:HTMLElement`)`:HTMLElement` — create a deep copy of the set of matched elements
740
740
  * toggleClass(el`:HTMLElement`, name`:String`, state`:Boolean`) — add or remove one classes from each element
741
741
  * detectDirection(el`:HTMLElement`)`:String` — automatically detect the [direction](https://github.com/SortableJS/Sortable/wiki/Swap-Thresholds-and-Direction#direction) of the element as either `'vertical'` or `'horizontal'`
742
-
743
-
742
+ * index(el`:HTMLElement`, selector`:String`)`:Number` — index of the element within its parent for a selected set of elements
743
+ * getChild(el`:HTMLElement`, childNum`:Number`, options`:Object`, includeDragEl`:Boolean`):`HTMLElement` — get the draggable element at a given index of draggable elements within a Sortable instance
744
+ * expando`:String` — expando property name for internal use, sortableListElement[expando] returns the Sortable instance of that elemenet
744
745
  ---
745
746
 
746
747
 
@@ -1,5 +1,5 @@
1
1
  /**!
2
- * Sortable 1.15.2
2
+ * Sortable 1.15.3
3
3
  * @author RubaXa <trash@rubaxa.org>
4
4
  * @author owenm <owen23355@gmail.com>
5
5
  * @license MIT
@@ -134,7 +134,7 @@
134
134
  throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
135
135
  }
136
136
 
137
- var version = "1.15.2";
137
+ var version = "1.15.3";
138
138
 
139
139
  function userAgent(pattern) {
140
140
  if (typeof window !== 'undefined' && window.navigator) {
@@ -1467,7 +1467,7 @@
1467
1467
  }
1468
1468
  target = parent; // store last element
1469
1469
  }
1470
- /* jshint boss:true */ while (parent = parent.parentNode);
1470
+ /* jshint boss:true */ while (parent = getParentOrHost(parent));
1471
1471
  }
1472
1472
  _unhideGhostForTarget();
1473
1473
  }
@@ -2373,7 +2373,8 @@
2373
2373
  nextTick: _nextTick,
2374
2374
  cancelNextTick: _cancelNextTick,
2375
2375
  detectDirection: _detectDirection,
2376
- getChild: getChild
2376
+ getChild: getChild,
2377
+ expando: expando
2377
2378
  };
2378
2379
 
2379
2380
  /**