@ilo-org/twig 1.1.5 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (408) hide show
  1. package/LICENSE +183 -183
  2. package/dist/components/accordion/accordion.behavior.js +10 -1
  3. package/dist/components/breadcrumb/breadcrumb.behavior.js +10 -1
  4. package/dist/components/breadcrumb/breadcrumb.twig +2 -3
  5. package/dist/components/button/button.behavior.js +6 -0
  6. package/dist/components/button/button.twig +13 -8
  7. package/dist/components/callout/callout.behavior.js +10 -1
  8. package/{src/patterns/components/callout/callout.wingsuit.yml → dist/components/callout/callout.component.yml} +6 -7
  9. package/dist/components/callout/callout.twig +8 -8
  10. package/dist/components/callout/callout.wingsuit.yml +6 -7
  11. package/{src/patterns/components/checkbox/checkbox.wingsuit.yml → dist/components/checkbox/checkbox.component.yml} +6 -6
  12. package/dist/components/checkbox/checkbox.wingsuit.yml +6 -6
  13. package/{src/patterns/components/datepicker/datepicker.wingsuit.yml → dist/components/datepicker/datepicker.component.yml} +5 -5
  14. package/dist/components/datepicker/datepicker.wingsuit.yml +5 -5
  15. package/{src/patterns/components/dropdown/dropdown.wingsuit.yml → dist/components/dropdown/dropdown.component.yml} +7 -7
  16. package/dist/components/dropdown/dropdown.wingsuit.yml +7 -7
  17. package/dist/components/fileupload/fileupload.behavior.js +10 -1
  18. package/{src/patterns/components/fileupload/fileupload.wingsuit.yml → dist/components/fileupload/fileupload.component.yml} +7 -7
  19. package/dist/components/fileupload/fileupload.wingsuit.yml +7 -7
  20. package/{src/patterns/components/footer/footer.wingsuit.yml → dist/components/footer/footer.component.yml} +1 -1
  21. package/dist/components/footer/footer.wingsuit.yml +1 -1
  22. package/dist/components/icon/icon.behavior.js +687 -1
  23. package/dist/components/icon/icon.twig +0 -3
  24. package/dist/components/linklist/linklist.behavior.js +8 -1
  25. package/{src/patterns/components/list/list-item.wingsuit.yml → dist/components/list/list-item.component.yml} +2 -4
  26. package/dist/components/{list-item → list}/list-item.wingsuit.yml +2 -4
  27. package/{src/patterns/components/list/list.wingsuit.yml → dist/components/list/list.component.yml} +1 -1
  28. package/dist/components/list/list.wingsuit.yml +1 -1
  29. package/dist/components/loading/loading.behavior.js +10 -1
  30. package/{src/patterns/components/loading/loading.wingsuit.yml → dist/components/loading/loading.component.yml} +1 -1
  31. package/dist/components/loading/loading.wingsuit.yml +1 -1
  32. package/{src/patterns/components/localnav/localnav.wingsuit.yml → dist/components/localnav/localnav.component.yml} +1 -1
  33. package/dist/components/localnav/localnav.wingsuit.yml +1 -1
  34. package/dist/components/modal/modal.behavior.js +10 -1
  35. package/{src/patterns/components/modal/modal.wingsuit.yml → dist/components/modal/modal.component.yml} +1 -1
  36. package/dist/components/modal/modal.wingsuit.yml +1 -1
  37. package/dist/components/navigation/navigation.behavior.js +10 -1
  38. package/{src/patterns/components/navigation/navigation.wingsuit.yml → dist/components/navigation/navigation.component.yml} +2 -2
  39. package/dist/components/navigation/navigation.wingsuit.yml +2 -2
  40. package/dist/components/notification/notification.behavior.js +10 -1
  41. package/{src/patterns/components/numberpicker/numberpicker.wingsuit.yml → dist/components/numberpicker/numberpicker.component.yml} +6 -6
  42. package/dist/components/numberpicker/numberpicker.wingsuit.yml +6 -6
  43. package/{src/patterns/components/pagination/pagination.wingsuit.yml → dist/components/pagination/pagination.component.yml} +6 -6
  44. package/dist/components/pagination/pagination.wingsuit.yml +6 -6
  45. package/{src/patterns/components/radio/radio.wingsuit.yml → dist/components/radio/radio.component.yml} +6 -6
  46. package/dist/components/radio/radio.wingsuit.yml +6 -6
  47. package/dist/components/readmore/readmore.behavior.js +10 -1
  48. package/{src/patterns/components/readmore/readmore.wingsuit.yml → dist/components/readmore/readmore.component.yml} +1 -1
  49. package/dist/components/readmore/readmore.wingsuit.yml +1 -1
  50. package/dist/components/search/search.behavior.js +10 -1
  51. package/{src/patterns/components/search/search.wingsuit.yml → dist/components/search/search.component.yml} +8 -8
  52. package/dist/components/search/search.wingsuit.yml +8 -8
  53. package/dist/components/table/table.behavior.js +10 -1
  54. package/dist/components/tableofcontents/tableofcontents.behavior.js +10 -1
  55. package/dist/components/tabs/tabs.behavior.js +120 -1
  56. package/dist/components/tags/tag.behavior.js +10 -0
  57. package/{src/patterns/components/tags/tag.wingsuit.yml → dist/components/tags/tag.component.yml} +3 -6
  58. package/dist/components/{tag → tags}/tag.wingsuit.yml +3 -6
  59. package/{src/patterns/components/textarea/textarea.wingsuit.yml → dist/components/textarea/textarea.component.yml} +9 -9
  60. package/dist/components/textarea/textarea.wingsuit.yml +9 -9
  61. package/{src/patterns/components/textinput/textinput.wingsuit.yml → dist/components/textinput/textinput.component.yml} +7 -7
  62. package/dist/components/textinput/textinput.wingsuit.yml +7 -7
  63. package/{src/patterns/components/toggle/toggle.wingsuit.yml → dist/components/toggle/toggle.component.yml} +5 -5
  64. package/dist/components/toggle/toggle.wingsuit.yml +5 -5
  65. package/dist/components/tooltip/tooltip.behavior.js +116 -1
  66. package/dist/components/video/video.behavior.js +192 -16
  67. package/dist/styles/components/accordion.css +1 -0
  68. package/dist/styles/components/breadcrumb.css +1 -0
  69. package/dist/styles/components/button.css +1 -0
  70. package/dist/styles/components/callout.css +1 -0
  71. package/dist/styles/components/card.css +1 -0
  72. package/dist/styles/components/checkbox.css +1 -0
  73. package/dist/styles/components/contextmenu.css +1 -0
  74. package/dist/styles/components/datacard.css +1 -0
  75. package/dist/styles/components/dropdown.css +1 -0
  76. package/dist/styles/components/featurecard.css +1 -0
  77. package/dist/styles/components/fieldset.css +1 -0
  78. package/dist/styles/components/file-upload.css +1 -0
  79. package/dist/styles/components/footer.css +1 -0
  80. package/dist/styles/components/formcontrol.css +1 -0
  81. package/dist/styles/components/heading.css +1 -0
  82. package/dist/styles/components/herocard.css +1 -0
  83. package/dist/styles/components/input.css +1 -0
  84. package/dist/styles/components/linklist.css +1 -0
  85. package/dist/styles/components/list.css +1 -0
  86. package/dist/styles/components/loading.css +1 -0
  87. package/dist/styles/components/logo.css +1 -0
  88. package/dist/styles/components/navigation.css +1 -0
  89. package/dist/styles/components/pagination.css +1 -0
  90. package/dist/styles/components/profile.css +1 -0
  91. package/dist/styles/components/readmore.css +1 -0
  92. package/dist/styles/components/richtext.css +1 -0
  93. package/dist/{components/searchfield → styles/components}/searchfield.css +1 -1
  94. package/dist/styles/components/socialmedia.css +1 -0
  95. package/dist/styles/components/statcard.css +1 -0
  96. package/dist/styles/components/table.css +1 -0
  97. package/dist/styles/components/tableofcontents.css +1 -0
  98. package/dist/styles/components/tabs.css +1 -0
  99. package/dist/styles/components/tag.css +1 -0
  100. package/dist/styles/components/textarea.css +1 -0
  101. package/dist/styles/components/textinput.css +1 -0
  102. package/dist/styles/components/tooltip.css +1 -0
  103. package/dist/styles/global.css +2 -0
  104. package/dist/styles/global.css.map +1 -0
  105. package/dist/styles/index.css +9 -0
  106. package/dist/styles/index.css.map +1 -0
  107. package/dist/styles/monorepo.css +9 -0
  108. package/dist/styles/monorepo.css.map +1 -0
  109. package/package.json +45 -77
  110. package/README.md +0 -218
  111. package/dist/components/accordion/accordion.css +0 -1
  112. package/dist/components/breadcrumb/breadcrumb.css +0 -1
  113. package/dist/components/button/button.css +0 -1
  114. package/dist/components/callout/callout.css +0 -1
  115. package/dist/components/card/card.css +0 -1
  116. package/dist/components/checkbox/checkbox.css +0 -1
  117. package/dist/components/contextmenu/contextmenu.css +0 -1
  118. package/dist/components/datacard/datacard.css +0 -1
  119. package/dist/components/dropdown/dropdown.css +0 -1
  120. package/dist/components/featurecard/featurecard.css +0 -1
  121. package/dist/components/fieldset/fieldset.css +0 -1
  122. package/dist/components/file-upload/file-upload.css +0 -1
  123. package/dist/components/footer/footer.css +0 -1
  124. package/dist/components/formcontrol/formcontrol.css +0 -1
  125. package/dist/components/heading/heading.css +0 -1
  126. package/dist/components/herocard/herocard.css +0 -1
  127. package/dist/components/icon/icon.css +0 -1
  128. package/dist/components/input/input.css +0 -1
  129. package/dist/components/linklist/linklist.css +0 -1
  130. package/dist/components/list/list.css +0 -1
  131. package/dist/components/loading/loading.css +0 -1
  132. package/dist/components/logo/logo.css +0 -1
  133. package/dist/components/navigation/navigation.css +0 -1
  134. package/dist/components/pagination/pagination.css +0 -1
  135. package/dist/components/polyfill/polyfill.twig +0 -10
  136. package/dist/components/profile/profile.css +0 -1
  137. package/dist/components/readmore/readmore.css +0 -1
  138. package/dist/components/richtext/richtext.css +0 -1
  139. package/dist/components/socialmedia/socialmedia.css +0 -1
  140. package/dist/components/statcard/statcard.css +0 -1
  141. package/dist/components/table/table.css +0 -1
  142. package/dist/components/tableofcontents/tableofcontents.css +0 -1
  143. package/dist/components/tabs/tabs.css +0 -1
  144. package/dist/components/tag/tag.behavior.js +0 -1
  145. package/dist/components/tag/tag.css +0 -1
  146. package/dist/components/textarea/textarea.css +0 -1
  147. package/dist/components/textinput/textinput.css +0 -1
  148. package/dist/components/tooltip/tooltip.css +0 -1
  149. package/dist/global/styles.css +0 -9
  150. package/src/namespaces.js +0 -14
  151. package/src/patterns/components/accordion/accordion-item.twig +0 -22
  152. package/src/patterns/components/accordion/accordion.behavior.js +0 -16
  153. package/src/patterns/components/accordion/accordion.js +0 -200
  154. package/src/patterns/components/accordion/accordion.stories.jsx +0 -9
  155. package/src/patterns/components/accordion/accordion.twig +0 -16
  156. package/src/patterns/components/accordion/index.js +0 -7
  157. package/src/patterns/components/breadcrumb/breadcrumb.behavior.js +0 -16
  158. package/src/patterns/components/breadcrumb/breadcrumb.js +0 -280
  159. package/src/patterns/components/breadcrumb/breadcrumb.stories.jsx +0 -9
  160. package/src/patterns/components/breadcrumb/breadcrumb.twig +0 -55
  161. package/src/patterns/components/breadcrumb/index.js +0 -7
  162. package/src/patterns/components/button/button.stories.jsx +0 -9
  163. package/src/patterns/components/button/button.twig +0 -23
  164. package/src/patterns/components/button/index.js +0 -6
  165. package/src/patterns/components/callout/callout.behavior.js +0 -16
  166. package/src/patterns/components/callout/callout.js +0 -149
  167. package/src/patterns/components/callout/callout.stories.jsx +0 -9
  168. package/src/patterns/components/callout/callout.twig +0 -41
  169. package/src/patterns/components/callout/index.js +0 -7
  170. package/src/patterns/components/card/card.stories.jsx +0 -9
  171. package/src/patterns/components/card/card.twig +0 -24
  172. package/src/patterns/components/card/index.js +0 -6
  173. package/src/patterns/components/card_data/card_data.stories.jsx +0 -9
  174. package/src/patterns/components/card_data/card_data.twig +0 -101
  175. package/src/patterns/components/card_data/index.js +0 -9
  176. package/src/patterns/components/card_detail/card_detail.stories.jsx +0 -9
  177. package/src/patterns/components/card_detail/card_detail.twig +0 -37
  178. package/src/patterns/components/card_detail/index.js +0 -9
  179. package/src/patterns/components/card_factlist/card_factlist.stories.jsx +0 -9
  180. package/src/patterns/components/card_factlist/card_factlist.twig +0 -21
  181. package/src/patterns/components/card_factlist/index.js +0 -9
  182. package/src/patterns/components/card_feature/card_feature.stories.jsx +0 -9
  183. package/src/patterns/components/card_feature/card_feature.twig +0 -39
  184. package/src/patterns/components/card_feature/index.js +0 -9
  185. package/src/patterns/components/card_multilink/card_multilink.stories.jsx +0 -9
  186. package/src/patterns/components/card_multilink/card_multilink.twig +0 -45
  187. package/src/patterns/components/card_multilink/index.js +0 -9
  188. package/src/patterns/components/card_promo/card_promo.stories.jsx +0 -9
  189. package/src/patterns/components/card_promo/card_promo.twig +0 -35
  190. package/src/patterns/components/card_promo/index.js +0 -9
  191. package/src/patterns/components/card_stat/card_stat.stories.jsx +0 -9
  192. package/src/patterns/components/card_stat/card_stat.twig +0 -24
  193. package/src/patterns/components/card_stat/index.js +0 -9
  194. package/src/patterns/components/card_text/card_text.stories.jsx +0 -9
  195. package/src/patterns/components/card_text/card_text.twig +0 -35
  196. package/src/patterns/components/card_text/index.js +0 -9
  197. package/src/patterns/components/cardgroup/cardgroup.stories.jsx +0 -9
  198. package/src/patterns/components/cardgroup/cardgroup.twig +0 -44
  199. package/src/patterns/components/cardgroup/index.js +0 -6
  200. package/src/patterns/components/checkbox/checkbox.stories.jsx +0 -10
  201. package/src/patterns/components/checkbox/checkbox.twig +0 -17
  202. package/src/patterns/components/checkbox/index.js +0 -7
  203. package/src/patterns/components/contextmenu/contextmenu.stories.jsx +0 -9
  204. package/src/patterns/components/contextmenu/contextmenu.twig +0 -12
  205. package/src/patterns/components/contextmenu/index.js +0 -6
  206. package/src/patterns/components/datepicker/datepicker.stories.jsx +0 -9
  207. package/src/patterns/components/datepicker/datepicker.twig +0 -20
  208. package/src/patterns/components/datepicker/index.js +0 -7
  209. package/src/patterns/components/dropdown/dropdown.stories.jsx +0 -9
  210. package/src/patterns/components/dropdown/dropdown.twig +0 -22
  211. package/src/patterns/components/dropdown/index.js +0 -6
  212. package/src/patterns/components/fileupload/fileupload.behavior.js +0 -12
  213. package/src/patterns/components/fileupload/fileupload.js +0 -147
  214. package/src/patterns/components/fileupload/fileupload.stories.jsx +0 -9
  215. package/src/patterns/components/fileupload/fileupload.twig +0 -20
  216. package/src/patterns/components/fileupload/index.js +0 -8
  217. package/src/patterns/components/footer/footer.stories.jsx +0 -9
  218. package/src/patterns/components/footer/footer.twig +0 -63
  219. package/src/patterns/components/footer/index.js +0 -6
  220. package/src/patterns/components/form/fieldset.twig +0 -70
  221. package/src/patterns/components/form/form.stories.jsx +0 -9
  222. package/src/patterns/components/form/form.twig +0 -19
  223. package/src/patterns/components/form/formcontrol.twig +0 -89
  224. package/src/patterns/components/form/index.js +0 -6
  225. package/src/patterns/components/form/input.twig +0 -10
  226. package/src/patterns/components/hero/hero.stories.jsx +0 -9
  227. package/src/patterns/components/hero/hero.twig +0 -65
  228. package/src/patterns/components/hero/index.js +0 -7
  229. package/src/patterns/components/herocard/herocard.stories.jsx +0 -9
  230. package/src/patterns/components/herocard/herocard.twig +0 -30
  231. package/src/patterns/components/herocard/index.js +0 -6
  232. package/src/patterns/components/icon/icon.behavior.js +0 -16
  233. package/src/patterns/components/icon/icon.js +0 -128
  234. package/src/patterns/components/icon/icon.stories.jsx +0 -10
  235. package/src/patterns/components/icon/icon.twig +0 -4
  236. package/src/patterns/components/icon/index.js +0 -6
  237. package/src/patterns/components/image/image.stories.jsx +0 -9
  238. package/src/patterns/components/image/image.twig +0 -29
  239. package/src/patterns/components/image/index.js +0 -6
  240. package/src/patterns/components/link/index.js +0 -6
  241. package/src/patterns/components/link/link.stories.jsx +0 -9
  242. package/src/patterns/components/link/link.twig +0 -8
  243. package/src/patterns/components/linklist/index.js +0 -7
  244. package/src/patterns/components/linklist/linklist.behavior.js +0 -15
  245. package/src/patterns/components/linklist/linklist.js +0 -55
  246. package/src/patterns/components/linklist/linklist.stories.jsx +0 -14
  247. package/src/patterns/components/linklist/linklist.twig +0 -26
  248. package/src/patterns/components/list/index.js +0 -6
  249. package/src/patterns/components/list/list-item.twig +0 -6
  250. package/src/patterns/components/list/list.stories.jsx +0 -9
  251. package/src/patterns/components/list/list.twig +0 -35
  252. package/src/patterns/components/loading/index.js +0 -7
  253. package/src/patterns/components/loading/loading.behavior.js +0 -16
  254. package/src/patterns/components/loading/loading.js +0 -102
  255. package/src/patterns/components/loading/loading.stories.jsx +0 -9
  256. package/src/patterns/components/loading/loading.twig +0 -8
  257. package/src/patterns/components/localnav/index.js +0 -7
  258. package/src/patterns/components/localnav/localnav.stories.jsx +0 -9
  259. package/src/patterns/components/localnav/localnav.twig +0 -86
  260. package/src/patterns/components/logogrid/index.js +0 -6
  261. package/src/patterns/components/logogrid/logogrid.stories.jsx +0 -9
  262. package/src/patterns/components/logogrid/logogrid.twig +0 -17
  263. package/src/patterns/components/modal/index.js +0 -7
  264. package/src/patterns/components/modal/modal.behavior.js +0 -16
  265. package/src/patterns/components/modal/modal.js +0 -134
  266. package/src/patterns/components/modal/modal.stories.jsx +0 -10
  267. package/src/patterns/components/modal/modal.twig +0 -20
  268. package/src/patterns/components/navigation/index.js +0 -7
  269. package/src/patterns/components/navigation/navigation.behavior.js +0 -16
  270. package/src/patterns/components/navigation/navigation.js +0 -552
  271. package/src/patterns/components/navigation/navigation.stories.jsx +0 -10
  272. package/src/patterns/components/navigation/navigation.twig +0 -171
  273. package/src/patterns/components/notification/index.js +0 -7
  274. package/src/patterns/components/notification/notification.behavior.js +0 -16
  275. package/src/patterns/components/notification/notification.js +0 -97
  276. package/src/patterns/components/notification/notification.stories.jsx +0 -10
  277. package/src/patterns/components/notification/notification.twig +0 -18
  278. package/src/patterns/components/numberpicker/index.js +0 -7
  279. package/src/patterns/components/numberpicker/numberpicker.stories.jsx +0 -9
  280. package/src/patterns/components/numberpicker/numberpicker.twig +0 -16
  281. package/src/patterns/components/pagination/Pagination.stories.jsx +0 -9
  282. package/src/patterns/components/pagination/index.js +0 -6
  283. package/src/patterns/components/pagination/pagination.twig +0 -49
  284. package/src/patterns/components/picture/index.js +0 -6
  285. package/src/patterns/components/picture/picture.twig +0 -21
  286. package/src/patterns/components/polyfill/index.js +0 -6
  287. package/src/patterns/components/polyfill/polyfill.twig +0 -10
  288. package/src/patterns/components/profile/index.js +0 -6
  289. package/src/patterns/components/profile/profile.stories.jsx +0 -10
  290. package/src/patterns/components/profile/profile.twig +0 -26
  291. package/src/patterns/components/radio/index.js +0 -7
  292. package/src/patterns/components/radio/radio.stories.jsx +0 -10
  293. package/src/patterns/components/radio/radio.twig +0 -23
  294. package/src/patterns/components/readmore/index.js +0 -7
  295. package/src/patterns/components/readmore/readmore.behavior.js +0 -16
  296. package/src/patterns/components/readmore/readmore.js +0 -121
  297. package/src/patterns/components/readmore/readmore.stories.jsx +0 -10
  298. package/src/patterns/components/readmore/readmore.twig +0 -16
  299. package/src/patterns/components/richtext/index.js +0 -6
  300. package/src/patterns/components/richtext/richtext.stories.jsx +0 -10
  301. package/src/patterns/components/richtext/richtext.twig +0 -6
  302. package/src/patterns/components/search/index.js +0 -7
  303. package/src/patterns/components/search/search.behavior.js +0 -15
  304. package/src/patterns/components/search/search.js +0 -103
  305. package/src/patterns/components/search/search.stories.jsx +0 -10
  306. package/src/patterns/components/search/search.twig +0 -31
  307. package/src/patterns/components/socialmedia/index.js +0 -6
  308. package/src/patterns/components/socialmedia/socialmedia.mdx +0 -48
  309. package/src/patterns/components/socialmedia/socialmedia.stories.jsx +0 -15
  310. package/src/patterns/components/socialmedia/socialmedia.twig +0 -17
  311. package/src/patterns/components/table/index.js +0 -7
  312. package/src/patterns/components/table/table.behavior.js +0 -16
  313. package/src/patterns/components/table/table.js +0 -305
  314. package/src/patterns/components/table/table.stories.jsx +0 -10
  315. package/src/patterns/components/table/table.twig +0 -39
  316. package/src/patterns/components/tableofcontents/index.js +0 -7
  317. package/src/patterns/components/tableofcontents/tableofcontents.behavior.js +0 -16
  318. package/src/patterns/components/tableofcontents/tableofcontents.js +0 -172
  319. package/src/patterns/components/tableofcontents/tableofcontents.stories.jsx +0 -10
  320. package/src/patterns/components/tableofcontents/tableofcontents.twig +0 -47
  321. package/src/patterns/components/tabs/index.js +0 -7
  322. package/src/patterns/components/tabs/tabs.behavior.js +0 -27
  323. package/src/patterns/components/tabs/tabs.js +0 -212
  324. package/src/patterns/components/tabs/tabs.stories.jsx +0 -10
  325. package/src/patterns/components/tabs/tabs.twig +0 -29
  326. package/src/patterns/components/tags/index.js +0 -7
  327. package/src/patterns/components/tags/tag.behavior.js +0 -16
  328. package/src/patterns/components/tags/tag.js +0 -159
  329. package/src/patterns/components/tags/tag.stories.jsx +0 -10
  330. package/src/patterns/components/tags/tag.twig +0 -30
  331. package/src/patterns/components/tags/tags.twig +0 -15
  332. package/src/patterns/components/textarea/index.js +0 -7
  333. package/src/patterns/components/textarea/textarea.stories.jsx +0 -9
  334. package/src/patterns/components/textarea/textarea.twig +0 -14
  335. package/src/patterns/components/textinput/index.js +0 -7
  336. package/src/patterns/components/textinput/textinput.stories.jsx +0 -10
  337. package/src/patterns/components/textinput/textinput.twig +0 -14
  338. package/src/patterns/components/toggle/index.js +0 -7
  339. package/src/patterns/components/toggle/toggle.stories.jsx +0 -10
  340. package/src/patterns/components/toggle/toggle.twig +0 -36
  341. package/src/patterns/components/tooltip/index.js +0 -7
  342. package/src/patterns/components/tooltip/tooltip.behavior.js +0 -16
  343. package/src/patterns/components/tooltip/tooltip.js +0 -156
  344. package/src/patterns/components/tooltip/tooltip.stories.jsx +0 -10
  345. package/src/patterns/components/tooltip/tooltip.twig +0 -14
  346. package/src/patterns/components/video/index.js +0 -7
  347. package/src/patterns/components/video/video.behavior.js +0 -16
  348. package/src/patterns/components/video/video.js +0 -120
  349. package/src/patterns/components/video/video.stories.jsx +0 -10
  350. package/src/patterns/components/video/video.twig +0 -18
  351. package/src/patterns/components/video/videoplayer.twig +0 -8
  352. package/src/tokens/exports/_colors.scss +0 -7
  353. package/src/tokens/exports/_font-families.scss +0 -6
  354. package/src/tokens/exports/_font-sizes-heading.scss +0 -10
  355. package/src/tokens/index.scss +0 -7
  356. package/src/vendorjs/lib.vendor.js +0 -1
  357. /package/{src/patterns/components/accordion/accordion.wingsuit.yml → dist/components/accordion/accordion.component.yml} +0 -0
  358. /package/{src/patterns/components/breadcrumb/breadcrumb.wingsuit.yml → dist/components/breadcrumb/breadcrumb.component.yml} +0 -0
  359. /package/{src/patterns/components/button/button.wingsuit.yml → dist/components/button/button.component.yml} +0 -0
  360. /package/{src/patterns/components/card/card.wingsuit.yml → dist/components/card/card.component.yml} +0 -0
  361. /package/{src/patterns/components/card_data/card_data.wingsuit.yml → dist/components/card_data/card_data.component.yml} +0 -0
  362. /package/{src/patterns/components/card_detail/card_detail.wingsuit.yml → dist/components/card_detail/card_detail.component.yml} +0 -0
  363. /package/{src/patterns/components/card_factlist/card_factlist.wingsuit.yml → dist/components/card_factlist/card_factlist.component.yml} +0 -0
  364. /package/{src/patterns/components/card_feature/card_feature.wingsuit.yml → dist/components/card_feature/card_feature.component.yml} +0 -0
  365. /package/{src/patterns/components/card_multilink/card_multilink.wingsuit.yml → dist/components/card_multilink/card_multilink.component.yml} +0 -0
  366. /package/{src/patterns/components/card_promo/card_promo.wingsuit.yml → dist/components/card_promo/card_promo.component.yml} +0 -0
  367. /package/{src/patterns/components/card_stat/card_stat.wingsuit.yml → dist/components/card_stat/card_stat.component.yml} +0 -0
  368. /package/{src/patterns/components/card_text/card_text.wingsuit.yml → dist/components/card_text/card_text.component.yml} +0 -0
  369. /package/{src/patterns/components/cardgroup/cardgroup.wingsuit.yml → dist/components/cardgroup/cardgroup.component.yml} +0 -0
  370. /package/{src/patterns/components/contextmenu/contextmenu.wingsuit.yml → dist/components/contextmenu/contextmenu.component.yml} +0 -0
  371. /package/{src/patterns/components/form/form.wingsuit.yml → dist/components/form/form.component.yml} +0 -0
  372. /package/{src/patterns/components/hero/hero.wingsuit.yml → dist/components/hero/hero.component.yml} +0 -0
  373. /package/{src/patterns/components/herocard/herocard.wingsuit.yml → dist/components/herocard/herocard.component.yml} +0 -0
  374. /package/{src/patterns/components/icon/icon.wingsuit.yml → dist/components/icon/icon.component.yml} +0 -0
  375. /package/{src/patterns/components/image/image.wingsuit.yml → dist/components/image/image.component.yml} +0 -0
  376. /package/{src/patterns/components/link/link.wingsuit.yml → dist/components/link/link.component.yml} +0 -0
  377. /package/{src/patterns/components/linklist/linklist.wingsuit.yml → dist/components/linklist/linklist.component.yml} +0 -0
  378. /package/{src/patterns/components/logogrid/logogrid.wingsuit.yml → dist/components/logogrid/logogrid.component.yml} +0 -0
  379. /package/{src/patterns/components/notification/notification.wingsuit.yml → dist/components/notification/notification.component.yml} +0 -0
  380. /package/{src/patterns/components/profile/profile.wingsuit.yml → dist/components/profile/profile.component.yml} +0 -0
  381. /package/{src/patterns/components/richtext/richtext.wingsuit.yml → dist/components/richtext/richtext.component.yml} +0 -0
  382. /package/{src/patterns/components/socialmedia/socialmedia.wingsuit.yml → dist/components/socialmedia/socialmedia.component.yml} +0 -0
  383. /package/{src/patterns/components/table/table.wingsuit.yml → dist/components/table/table.component.yml} +0 -0
  384. /package/{src/patterns/components/tableofcontents/tableofcontents.wingsuit.yml → dist/components/tableofcontents/tableofcontents.component.yml} +0 -0
  385. /package/{src/patterns/components/tabs/tabs.wingsuit.yml → dist/components/tabs/tabs.component.yml} +0 -0
  386. /package/{src/patterns/components/tags/tags.wingsuit.yml → dist/components/tags/tags.component.yml} +0 -0
  387. /package/{src/patterns/components/tooltip/tooltip.wingsuit.yml → dist/components/tooltip/tooltip.component.yml} +0 -0
  388. /package/{src/patterns/components/video/video.wingsuit.yml → dist/components/video/video.component.yml} +0 -0
  389. /package/dist/{components/cardgroup → styles/components}/cardgroup.css +0 -0
  390. /package/dist/{components/container → styles/components}/container.css +0 -0
  391. /package/dist/{components/credit → styles/components}/credit.css +0 -0
  392. /package/dist/{components/datepicker → styles/components}/datepicker.css +0 -0
  393. /package/dist/{components/detailcard → styles/components}/detailcard.css +0 -0
  394. /package/dist/{components/empty → styles/components}/empty.css +0 -0
  395. /package/dist/{components/factlistcard → styles/components}/factlistcard.css +0 -0
  396. /package/dist/{components/form → styles/components}/form.css +0 -0
  397. /package/dist/{components/hero → styles/components}/hero.css +0 -0
  398. /package/dist/{components/image → styles/components}/image.css +0 -0
  399. /package/dist/{components/link → styles/components}/link.css +0 -0
  400. /package/dist/{components/logogrid → styles/components}/logogrid.css +0 -0
  401. /package/dist/{components/modal → styles/components}/modal.css +0 -0
  402. /package/dist/{components/multilinkcard → styles/components}/multilinkcard.css +0 -0
  403. /package/dist/{components/notification → styles/components}/notification.css +0 -0
  404. /package/dist/{components/promocard → styles/components}/promocard.css +0 -0
  405. /package/dist/{components/radio → styles/components}/radio.css +0 -0
  406. /package/dist/{components/textcard → styles/components}/textcard.css +0 -0
  407. /package/dist/{components/toggle → styles/components}/toggle.css +0 -0
  408. /package/dist/{components/video → styles/components}/video.css +0 -0
@@ -1,4 +1 @@
1
- {#
2
- ICON COMPONENT
3
- #}
4
1
  <svg class="ilo--icon" data-name="{{name}}" data-size="{{size}}" data-color="{{color}}" data-loadcomponent="Icon"></svg>
@@ -1 +1,8 @@
1
- !function(t){"function"==typeof define&&define.amd?define(t):t()}((function(){"use strict";function t(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var r=n.call(t,e||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}function e(e,n){for(var r=0;r<n.length;r++){var i=n[r];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,t(i.key),i)}}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}function r(t,e){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=function(t,e){if(t){if("string"==typeof t)return n(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);return"Object"===r&&t.constructor&&(r=t.constructor.name),"Map"===r||"Set"===r?Array.from(t):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?n(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){r&&(t=r);var i=0,o=function(){};return{s:o,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,u=!0,l=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return u=t.done,t},e:function(t){l=!0,a=t},f:function(){try{u||null==r.return||r.return()}finally{if(l)throw a}}}}var i=function(){return t=function t(e){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.element=e,this.prefix="".concat(this.element.dataset.prefix,"--link-list"),this.init()},(n=[{key:"init",value:function(){return this.append(),this}},{key:"append",value:function(){var t,e="a:not([target=_blank]).".concat(this.prefix,"--link"),n=this.element.querySelectorAll(e),i=window.location.origin,o=r(n);try{for(o.s();!(t=o.n()).done;){var a=t.value;new URL(a.href).origin!==i&&a.setAttribute("target","_blank")}}catch(t){o.e(t)}finally{o.f()}return this}}])&&e(t.prototype,n),i&&e(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,n,i}();Drupal.behaviors.link={attach:function(){Array.prototype.forEach.call(document.querySelectorAll('[data-loadcomponent="LinkList"]'),(function(t){t.dataset.jsProcessed||(new i(t),t.dataset.jsProcessed=!0)}))}}}));
1
+ (function () {
2
+ 'use strict';
3
+
4
+ class LinkList{constructor(element){this.element=element;this.prefix=`${this.element.dataset.prefix}--link-list`;this.init();}init(){this.append();return this}append(){const selector=`a:not([target=_blank]).${this.prefix}--link`;const links=this.element.querySelectorAll(selector);const origin=window.location.origin;for(const link of links){if(new URL(link.href).origin!==origin){link.setAttribute("target","_blank");}}return this}}
5
+
6
+ Drupal.behaviors.link={attach(){Array.prototype.forEach.call(document.querySelectorAll(`[data-loadcomponent="LinkList"]`),element=>{if(!element.dataset.jsProcessed){new LinkList(element);element.dataset.jsProcessed=true;}});}};
7
+
8
+ })();
@@ -8,12 +8,10 @@ list:
8
8
  type: text
9
9
  label: Content
10
10
  description: The list item's collapsed content.
11
- preview:
12
- faker: lorem.word
11
+ preview: content
13
12
  elementId:
14
13
  type: text
15
14
  label: ID
16
15
  description: The list item's id.
17
- preview:
18
- faker: lorem.word
16
+ preview: contentId
19
17
  visibility: storybook
@@ -8,12 +8,10 @@ list:
8
8
  type: text
9
9
  label: Content
10
10
  description: The list item's collapsed content.
11
- preview:
12
- faker: lorem.word
11
+ preview: content
13
12
  elementId:
14
13
  type: text
15
14
  label: ID
16
15
  description: The list item's id.
17
- preview:
18
- faker: lorem.word
16
+ preview: contentId
19
17
  visibility: storybook
@@ -5,7 +5,7 @@ list:
5
5
  description: The List component renders a styled list of text items. In addition to the List styles made available in the RichText component, the List component also includes unstyled and horizontally aligned lists.
6
6
  fields:
7
7
  title:
8
- type: text
8
+ type: string
9
9
  label: Label
10
10
  description: The list item's heading.
11
11
  preview: Facts about the ILO
@@ -5,7 +5,7 @@ list:
5
5
  description: The List component renders a styled list of text items. In addition to the List styles made available in the RichText component, the List component also includes unstyled and horizontally aligned lists.
6
6
  fields:
7
7
  title:
8
- type: text
8
+ type: string
9
9
  label: Label
10
10
  description: The list item's heading.
11
11
  preview: Facts about the ILO
@@ -1 +1,10 @@
1
- !function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";function e(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function t(t,n){for(var i=0;i<n.length;i++){var r=n[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,e(r.key),r)}}var n="itemsloading",i="itemsloaded",r=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.element=t,this.prefix="".concat(this.element.dataset.prefix,"--loading"),this.status="idle",this.init()},(r=[{key:"init",value:function(){return this.setupHandlers().enable(),this}},{key:"setupHandlers",value:function(){return this.LoadingHandler=this.loading.bind(this),this.LoadedHandler=this.loaded.bind(this),this}},{key:"enable",value:function(){var e=this;return document.addEventListener(n,(function(){return e.LoadingHandler})),document.addEventListener(i,(function(){return e.LoadedHandler})),this}},{key:"loading",value:function(){return this.element.classList.remove("".concat(this.prefix,"--idle")),this.element.classList.add("".concat(this.prefix,"--loading")),this}},{key:"loaded",value:function(){return this.element.classList.remove("".concat(this.prefix,"--loading")),this.element.classList.add("".concat(this.prefix,"--loaded")),this.element.querySelector(".".concat(this.prefix,"--copy")).innerHTML=this.element.dataset.loadedmessage,this}}])&&t(e.prototype,r),a&&t(e,a),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,a}();Drupal.behaviors.loading={attach:function(){Array.prototype.forEach.call(document.querySelectorAll('[data-loadcomponent="Loading"]'),(function(e){e.dataset.jsProcessed||(new r(e),e.dataset.jsProcessed=!0)}))}}}));
1
+ (function () {
2
+ 'use strict';
3
+
4
+ const d={ANIMATIONEND:"animationend",BEFOREUNLOAD:"beforeunload",BLUR:"blur",CHANGE:"change",CLEAR_FILTERS:"clearfilters",CLICK:"click",CUSTOM_EVENT:"customevent",DISPLAY_SUBHEADING:"displaysubheading",DROPDOWN_CHANGED:"dropdownchanged",FORM_ERROR:"formerror",FORM_SUCCESS:"formsuccess",FOCUS:"focus",HEADER_HIDING:"header-hiding",INDEX_CHANGED:"indexChanged",INPUT:"input",ITEMSLOADING:"itemsloading",ITEMSLOADED:"itemsloaded",KEY_DOWN:"keydown",MOUSEMOVE:"mousemove",MOUSEOUT:"mouseout",MOUSEOVER:"mouseover",PAGESHOW:"pageshow",PAUSE_VIDEO:"pausevideo",RENDERED:"rendered",REQUEST_MADE:"requestmade",RESIZE:"resize",RESULTS_RETURNED:"resultsreturnd",SCROLL:"scroll",SIMULATED_CLICK:"simulated-click",SHOW_HIDE:"showhide",SUBMIT:"submit",TOUCH_END:"touchend",TOUCH_START:"touchstart",TRANSITIONEND:"transitionend",TWEET_LOADED:"tweetLoaded",UPDATE_POST_COUNT:"updatepostcount",UPDATE_IN_VIEWPORT_MODULES:"updateinviewportmodules",UPDATE_SEARCH_WITH_NEW_ITEMS:"updatesearchwithnewitems",UPDATE_SETTINGS:"updatesettings",WHEEL:"wheel"};
5
+
6
+ class Loading{constructor(element){this.element=element;this.prefix=`${this.element.dataset.prefix}--loading`;this.status="idle";this.init();}init(){this.setupHandlers().enable();return this}setupHandlers(){this.LoadingHandler=this.loading.bind(this);this.LoadedHandler=this.loaded.bind(this);return this}enable(){document.addEventListener(d.ITEMSLOADING,()=>this.LoadingHandler);document.addEventListener(d.ITEMSLOADED,()=>this.LoadedHandler);return this}loading(){this.element.classList.remove(`${this.prefix}--idle`);this.element.classList.add(`${this.prefix}--loading`);return this}loaded(){this.element.classList.remove(`${this.prefix}--loading`);this.element.classList.add(`${this.prefix}--loaded`);this.element.querySelector(`.${this.prefix}--copy`).innerHTML=this.element.dataset.loadedmessage;return this}}
7
+
8
+ Drupal.behaviors.loading={attach(){Array.prototype.forEach.call(document.querySelectorAll(`[data-loadcomponent="Loading"]`),element=>{if(!element.dataset.jsProcessed){new Loading(element);element.dataset.jsProcessed=true;}});}};
9
+
10
+ })();
@@ -2,7 +2,7 @@ loading:
2
2
  namespace: Components/Transitions
3
3
  use: "@components/loading/loading.twig"
4
4
  label: Loading
5
- description: The Loading component displays a loading state. (See Javascript comments in loading.js for how to use this with vanilla JS).
5
+ description: The Loading component displays a loading state.
6
6
  fields:
7
7
  message:
8
8
  type: string
@@ -2,7 +2,7 @@ loading:
2
2
  namespace: Components/Transitions
3
3
  use: "@components/loading/loading.twig"
4
4
  label: Loading
5
- description: The Loading component displays a loading state. (See Javascript comments in loading.js for how to use this with vanilla JS).
5
+ description: The Loading component displays a loading state.
6
6
  fields:
7
7
  message:
8
8
  type: string
@@ -15,7 +15,7 @@ localnav:
15
15
  description: Logo for the nav
16
16
  required: true
17
17
  preview:
18
- image: "/brand-assets/logo_en_horizontal_white.svg"
18
+ image: "images/logo_en_horizontal_white.svg"
19
19
  alt: Logo
20
20
  siteurl:
21
21
  type: string
@@ -15,7 +15,7 @@ localnav:
15
15
  description: Logo for the nav
16
16
  required: true
17
17
  preview:
18
- image: "/brand-assets/logo_en_horizontal_white.svg"
18
+ image: "images/logo_en_horizontal_white.svg"
19
19
  alt: Logo
20
20
  siteurl:
21
21
  type: string
@@ -1 +1,10 @@
1
- !function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";function e(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function t(t,n){for(var i=0;i<n.length;i++){var r=n[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,e(r.key),r)}}var n="click",i="keydown",r=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.element=t,this.init()},(r=[{key:"init",value:function(){return this.cacheDomReferences().setupHandlers().enable(),this}},{key:"cacheDomReferences",value:function(){return this.OpenButton=this.element.querySelector(".modal--open"),this.CloseButton=this.element.querySelector(".modal--close"),this}},{key:"setupHandlers",value:function(){return this.OpenButtonHandler=this.openButtonClick.bind(this),this.CloseHandler=this.closeButtonClick.bind(this),this.KeyPressHandler=this.keyPress.bind(this),this}},{key:"enable",value:function(){var e=this;return this.OpenButton&&this.CloseButton?(this.OpenButton.addEventListener(n,(function(){return e.OpenButtonHandler()})),this.CloseButton.addEventListener(n,(function(){return e.CloseHandler()})),this):this}},{key:"openButtonClick",value:function(){var e=this;return this.element.classList.add("show"),setTimeout((function(){e.element.classList.add("fadein")}),125),window.addEventListener(i,(function(t){return e.KeyPressHandler(t)})),this}},{key:"closeButtonClick",value:function(){var e=this;return this.element.classList.remove("fadein"),setTimeout((function(){e.element.classList.remove("show")}),125),window.removeEventListener(i,(function(t){return e.KeyPressHandler(t)})),this}},{key:"keyPress",value:function(e){return"Escape"===e.key&&this.closeButtonClick(),this}}])&&t(e.prototype,r),o&&t(e,o),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,r,o}();Drupal.behaviors.modal={attach:function(){Array.prototype.forEach.call(document.querySelectorAll('[data-loadcomponent="Modal"]'),(function(e){e.dataset.jsProcessed||(new r(e),e.dataset.jsProcessed=!0)}))}}}));
1
+ (function () {
2
+ 'use strict';
3
+
4
+ const d={ANIMATIONEND:"animationend",BEFOREUNLOAD:"beforeunload",BLUR:"blur",CHANGE:"change",CLEAR_FILTERS:"clearfilters",CLICK:"click",CUSTOM_EVENT:"customevent",DISPLAY_SUBHEADING:"displaysubheading",DROPDOWN_CHANGED:"dropdownchanged",FORM_ERROR:"formerror",FORM_SUCCESS:"formsuccess",FOCUS:"focus",HEADER_HIDING:"header-hiding",INDEX_CHANGED:"indexChanged",INPUT:"input",ITEMSLOADING:"itemsloading",ITEMSLOADED:"itemsloaded",KEY_DOWN:"keydown",MOUSEMOVE:"mousemove",MOUSEOUT:"mouseout",MOUSEOVER:"mouseover",PAGESHOW:"pageshow",PAUSE_VIDEO:"pausevideo",RENDERED:"rendered",REQUEST_MADE:"requestmade",RESIZE:"resize",RESULTS_RETURNED:"resultsreturnd",SCROLL:"scroll",SIMULATED_CLICK:"simulated-click",SHOW_HIDE:"showhide",SUBMIT:"submit",TOUCH_END:"touchend",TOUCH_START:"touchstart",TRANSITIONEND:"transitionend",TWEET_LOADED:"tweetLoaded",UPDATE_POST_COUNT:"updatepostcount",UPDATE_IN_VIEWPORT_MODULES:"updateinviewportmodules",UPDATE_SEARCH_WITH_NEW_ITEMS:"updatesearchwithnewitems",UPDATE_SETTINGS:"updatesettings",WHEEL:"wheel"};
5
+
6
+ class Modal{constructor(element){this.element=element;this.init();}init(){this.cacheDomReferences().setupHandlers().enable();return this}cacheDomReferences(){this.OpenButton=this.element.querySelector(`.modal--open`);this.CloseButton=this.element.querySelector(`.modal--close`);return this}setupHandlers(){this.OpenButtonHandler=this.openButtonClick.bind(this);this.CloseHandler=this.closeButtonClick.bind(this);this.KeyPressHandler=this.keyPress.bind(this);return this}enable(){if(!this.OpenButton||!this.CloseButton)return this;this.OpenButton.addEventListener(d.CLICK,()=>this.OpenButtonHandler());this.CloseButton.addEventListener(d.CLICK,()=>this.CloseHandler());return this}openButtonClick(){this.element.classList.add("show");setTimeout(()=>{this.element.classList.add("fadein");},125);window.addEventListener(d.KEY_DOWN,e=>this.KeyPressHandler(e));return this}closeButtonClick(){this.element.classList.remove("fadein");setTimeout(()=>{this.element.classList.remove("show");},125);window.removeEventListener(d.KEY_DOWN,e=>this.KeyPressHandler(e));return this}keyPress(e){if(e.key==="Escape"){this.closeButtonClick();}return this}}
7
+
8
+ Drupal.behaviors.modal={attach(){Array.prototype.forEach.call(document.querySelectorAll(`[data-loadcomponent="Modal"]`),element=>{if(!element.dataset.jsProcessed){new Modal(element);element.dataset.jsProcessed=true;}});}};
9
+
10
+ })();
@@ -55,7 +55,7 @@ modal:
55
55
  modalLabel:
56
56
  type: string
57
57
  label: Modal Label
58
- description: A modal label added to aria-label attribute to improve accessibility
58
+ description: A modal label added to aria-label attribute to improve accessibility
59
59
  preview: "modal"
60
60
  required: false
61
61
  visibility: storybook
@@ -55,7 +55,7 @@ modal:
55
55
  modalLabel:
56
56
  type: string
57
57
  label: Modal Label
58
- description: A modal label added to aria-label attribute to improve accessibility
58
+ description: A modal label added to aria-label attribute to improve accessibility
59
59
  preview: "modal"
60
60
  required: false
61
61
  visibility: storybook
@@ -1 +1,10 @@
1
- !function(t){"function"==typeof define&&define.amd?define(t):t()}((function(){"use strict";function t(t){var e=function(t,e){if("object"!=typeof t||!t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:e+""}function e(e,n){for(var i=0;i<n.length;i++){var s=n[i];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,t(s.key),s)}}var n="click",i="keydown",s="resize",o="touchstart",a=function(){return t=function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.element=e,this.prefix=this.element.dataset.prefix,this.callback=n,this.init()},(a=[{key:"init",value:function(){return this.cacheDomReferences().setupHandlers().enable(),this}},{key:"cacheDomReferences",value:function(){return this.subNav=this.element.querySelector(".".concat(this.prefix,"--subnav")),this.subnavButton=this.element.querySelector(".".concat(this.prefix,"--nav--trigger")),this.menuCloseSet=this.element.querySelectorAll(".".concat(this.prefix,"--header--menu--close")),this.subnavBack=this.element.querySelectorAll(".".concat(this.prefix,"--mobile--subnav--back")),this.menuOpen=this.element.querySelector(".".concat(this.prefix,"--header--menu")),this.searchButton=this.element.querySelector(".".concat(this.prefix,"--search--button")),this.searchBox=this.element.querySelector(".".concat(this.prefix,"--search-box")),this.contextButton=this.element.querySelector(".".concat(this.prefix,"--language-switcher--button")),this.languageButton=this.element.querySelector(".".concat(this.prefix,"--mobile--nav--language--switcher--button")),this.contextLinks=this.element.querySelectorAll(".".concat(this.prefix,"--context-menu--link")),this.languageLinks=this.element.querySelectorAll(".".concat(this.prefix,"--nav--language")),this.body=document.body,this}},{key:"setupHandlers",value:function(){return this.subnavClick=this.handleSubnavClick.bind(this),this.subnavClickOff=this.handleSubnavClickOff.bind(this),this.subnavClickOn=this.handleSubnavClickOn.bind(this),this.subnavBackClick=this.handleSubnavBackClick.bind(this),this.menuCloseClick=this.handleMenuCloseClick.bind(this),this.menuOpenClick=this.handleMenuOpenClick.bind(this),this.languageButtonClick=this.handleLanguageButtonClick.bind(this),this.contextLinkClick=this.handleContextLinkClick.bind(this),this.onResize=this.handleResize.bind(this),this.keyPress=this.handleKeyPress.bind(this),this.contextButtonClick=this.handleContextButtonClick.bind(this),this.contextButtonClickOff=this.handleContextButtonClickOff.bind(this),this.contextButtonClickOn=this.handleContextButtonClickOn.bind(this),this.searchButtonClick=this.handleSearchButtonClick.bind(this),this.searchButtonClickOff=this.handleSearchButtonClickOff.bind(this),this.searchButtonClickOn=this.handleSearchButtonClickOn.bind(this),this}},{key:"enable",value:function(){var t=this;return this.subnavButton&&(this.subnavButton.addEventListener(n,(function(e){return t.subnavClick(e)})),this.subnavButton.addEventListener(o,(function(e){return t.subnavClick(e)}))),this.subnavBack.length>0&&this.subnavBack.forEach((function(e){e.addEventListener(n,(function(e){return t.subnavBackClick(e)})),e.addEventListener(o,(function(e){return t.subnavBackClick(e)}))})),this.searchButton&&(this.searchButton.addEventListener(n,(function(e){return t.searchButtonClick(e)})),this.searchButton.addEventListener(o,(function(e){return t.searchButtonClick(e)}))),this.menuCloseSet.length>0&&this.menuCloseSet.forEach((function(e,i){e.addEventListener(n,(function(e){return t.menuCloseClick(i,e)})),e.addEventListener(o,(function(e){return t.menuCloseClick(i,e)}))})),this.menuOpen&&(this.menuOpen.addEventListener(n,(function(e){return t.menuOpenClick(e)})),this.menuOpen.addEventListener(o,(function(e){return t.menuOpenClick(e)}))),this.contextButton&&(this.contextButton.addEventListener(n,(function(e){return t.contextButtonClick(e)})),this.contextButton.addEventListener(o,(function(e){return t.contextButtonClick(e)}))),this.languageButton&&(this.languageButton.addEventListener(n,(function(e){return t.languageButtonClick(e)})),this.languageButton.addEventListener(o,(function(e){return t.languageButtonClick(e)}))),this.contextLinks.length>0&&this.callback&&this.contextLinks.forEach((function(e){e.addEventListener(n,(function(e){return t.contextLinkClick(e)})),e.addEventListener(o,(function(e){return t.contextLinkClick(e)}))})),this.languageLinks.length>0&&this.callback&&this.languageLinks.forEach((function(e){e.addEventListener(n,(function(e){return t.contextLinkClick(e)})),e.addEventListener(o,(function(e){return t.contextLinkClick(e)}))})),this.searchBox&&this.searchBox.addEventListener(n,(function(t){t.stopPropagation()}),!1),this.subNav&&this.subNav.addEventListener(n,(function(t){t.stopPropagation()}),!1),window.addEventListener(s,(function(e){window.innerWidth>=1024&&t.onResize(e)})),this}},{key:"handleContextLinkClick",value:function(t){return t.preventDefault(),this.callback(t),this}},{key:"handleKeyPress",value:function(t,e){return"Escape"===t.key&&e(t),this}},{key:"handleLanguageButtonClick",value:function(t){return t.preventDefault(),t.stopImmediatePropagation(),this.element.classList.toggle("".concat(this.prefix,"--select--open")),this}},{key:"handleContextButtonClickOn",value:function(t){var e=this;return t.stopImmediatePropagation(),this.element.classList.add("".concat(this.prefix,"--context--open")),window.addEventListener(i,(function(t){return e.keyPress(t,e.contextButtonClickOff)}),!1),window.addEventListener(n,this.contextButtonClickOff),this}},{key:"handleContextButtonClickOff",value:function(t){var e=this;return t.stopImmediatePropagation(),this.element.classList.remove("".concat(this.prefix,"--context--open")),window.removeEventListener(i,(function(t){return e.keyPress(t,e.contextButtonClickOff)}),!1),window.removeEventListener(n,this.contextButtonClickOff),this}},{key:"handleContextButtonClick",value:function(t){return this.element.classList.contains("".concat(this.prefix,"--context--open"))?this.contextButtonClickOff(t):this.contextButtonClickOn(t),this}},{key:"handleSearchButtonClickOn",value:function(t){var e=this;return t.stopImmediatePropagation(),this.searchBox.style.display="block",window.setTimeout((function(){e.element.classList.add("".concat(e.prefix,"--search--open"))}),10),window.addEventListener(i,(function(t){return e.keyPress(t,e.searchButtonClickOff)}),!1),window.innerWidth>=1024&&window.addEventListener(n,this.searchButtonClickOff,!1),this}},{key:"handleSearchButtonClickOff",value:function(t){var e=this;return t.stopImmediatePropagation(),this.element.classList.remove("".concat(this.prefix,"--search--open")),window.setTimeout((function(){e.searchBox.style.display="none"}),225),window.removeEventListener(i,(function(t){return e.keyPress(t,e.searchButtonClickOff)}),!1),window.removeEventListener(n,this.searchButtonClickOff,!1),this}},{key:"handleSearchButtonClick",value:function(t){return this.element.classList.remove("".concat(this.prefix,"--subnav--open")),this.element.classList.contains("".concat(this.prefix,"--search--open"))?this.searchButtonClickOff(t):this.searchButtonClickOn(t),this}},{key:"handleMenuOpenClick",value:function(t){return t.preventDefault(),t.stopImmediatePropagation(),this.element.classList.add("".concat(this.prefix,"--mobile--open")),this.body.classList.add("".concat(this.prefix,"--menu--open")),this}},{key:"handleSubnavClickOn",value:function(t){var e=this;return t.stopImmediatePropagation(),this.subNav.style.display="block",window.setTimeout((function(){e.element.classList.add("".concat(e.prefix,"--subnav--open"))}),10),window.addEventListener(i,(function(t){return e.keyPress(t,e.subnavClickOff)}),!1),window.innerWidth>=1024&&window.addEventListener(n,this.subnavClickOff),this}},{key:"handleSubnavClickOff",value:function(t){var e=this;return t.stopImmediatePropagation(),this.element.classList.remove("".concat(this.prefix,"--subnav--open")),window.setTimeout((function(){e.subNav.style.display="none"}),150),window.removeEventListener(i,(function(t){return e.keyPress(t,e.subnavClickOff)}),!1),window.removeEventListener(n,this.subnavClickOff),this}},{key:"handleSubnavClick",value:function(t){return t.preventDefault(),t.stopImmediatePropagation(),this.element.classList.remove("".concat(this.prefix,"--search--open")),this.element.classList.contains("".concat(this.prefix,"--subnav--open"))?this.subnavClickOff(t):this.subnavClickOn(t),this}},{key:"handleSubnavBackClick",value:function(t){return t.stopImmediatePropagation(),t.preventDefault(),this.subnavClickOff(t),this.element.classList.remove("".concat(this.prefix,"--select--open")),this}},{key:"handleMenuCloseClick",value:function(t,e){return e.preventDefault(),e.stopImmediatePropagation(),this.element.classList.remove("".concat(this.prefix,"--mobile--open")),this.element.classList.remove("".concat(this.prefix,"--subnav--open")),this.body.classList.remove("".concat(this.prefix,"--menu--open")),this}},{key:"handleResize",value:function(){return this.element.classList.remove("".concat(this.prefix,"--context--open")),this.element.classList.remove("".concat(this.prefix,"--mobile--open")),this.element.classList.remove("".concat(this.prefix,"--subnav--open")),this.element.classList.remove("".concat(this.prefix,"--search--open")),this}}])&&e(t.prototype,a),c&&e(t,c),Object.defineProperty(t,"prototype",{writable:!1}),t;var t,a,c}();Drupal.behaviors.navigation={attach:function(){Array.prototype.forEach.call(document.querySelectorAll('[data-loadcomponent="Navigation"]'),(function(t){t.dataset.jsProcessed||(new a(t),t.dataset.jsProcessed=!0)}))}}}));
1
+ (function () {
2
+ 'use strict';
3
+
4
+ const d={ANIMATIONEND:"animationend",BEFOREUNLOAD:"beforeunload",BLUR:"blur",CHANGE:"change",CLEAR_FILTERS:"clearfilters",CLICK:"click",CUSTOM_EVENT:"customevent",DISPLAY_SUBHEADING:"displaysubheading",DROPDOWN_CHANGED:"dropdownchanged",FORM_ERROR:"formerror",FORM_SUCCESS:"formsuccess",FOCUS:"focus",HEADER_HIDING:"header-hiding",INDEX_CHANGED:"indexChanged",INPUT:"input",ITEMSLOADING:"itemsloading",ITEMSLOADED:"itemsloaded",KEY_DOWN:"keydown",MOUSEMOVE:"mousemove",MOUSEOUT:"mouseout",MOUSEOVER:"mouseover",PAGESHOW:"pageshow",PAUSE_VIDEO:"pausevideo",RENDERED:"rendered",REQUEST_MADE:"requestmade",RESIZE:"resize",RESULTS_RETURNED:"resultsreturnd",SCROLL:"scroll",SIMULATED_CLICK:"simulated-click",SHOW_HIDE:"showhide",SUBMIT:"submit",TOUCH_END:"touchend",TOUCH_START:"touchstart",TRANSITIONEND:"transitionend",TWEET_LOADED:"tweetLoaded",UPDATE_POST_COUNT:"updatepostcount",UPDATE_IN_VIEWPORT_MODULES:"updateinviewportmodules",UPDATE_SEARCH_WITH_NEW_ITEMS:"updatesearchwithnewitems",UPDATE_SETTINGS:"updatesettings",WHEEL:"wheel"};
5
+
6
+ class Navigation{constructor(element,callback=null){this.element=element;this.prefix=this.element.dataset.prefix;this.callback=callback;this.init();}init(){this.cacheDomReferences().setupHandlers().enable();return this}cacheDomReferences(){this.subNav=this.element.querySelector(`.${this.prefix}--subnav`);this.subnavButton=this.element.querySelector(`.${this.prefix}--nav--trigger`);this.menuCloseSet=this.element.querySelectorAll(`.${this.prefix}--header--menu--close`);this.subnavBack=this.element.querySelectorAll(`.${this.prefix}--mobile--subnav--back`);this.menuOpen=this.element.querySelector(`.${this.prefix}--header--menu`);this.searchButton=this.element.querySelector(`.${this.prefix}--search--button`);this.searchBox=this.element.querySelector(`.${this.prefix}--search-box`);this.contextButton=this.element.querySelector(`.${this.prefix}--language-switcher--button`);this.languageButton=this.element.querySelector(`.${this.prefix}--mobile--nav--language--switcher--button`);this.contextLinks=this.element.querySelectorAll(`.${this.prefix}--context-menu--link`);this.languageLinks=this.element.querySelectorAll(`.${this.prefix}--nav--language`);this.body=document.body;return this}setupHandlers(){this.subnavClick=this.handleSubnavClick.bind(this);this.subnavClickOff=this.handleSubnavClickOff.bind(this);this.subnavClickOn=this.handleSubnavClickOn.bind(this);this.subnavBackClick=this.handleSubnavBackClick.bind(this);this.menuCloseClick=this.handleMenuCloseClick.bind(this);this.menuOpenClick=this.handleMenuOpenClick.bind(this);this.languageButtonClick=this.handleLanguageButtonClick.bind(this);this.contextLinkClick=this.handleContextLinkClick.bind(this);this.onResize=this.handleResize.bind(this);this.keyPress=this.handleKeyPress.bind(this);this.contextButtonClick=this.handleContextButtonClick.bind(this);this.contextButtonClickOff=this.handleContextButtonClickOff.bind(this);this.contextButtonClickOn=this.handleContextButtonClickOn.bind(this);this.searchButtonClick=this.handleSearchButtonClick.bind(this);this.searchButtonClickOff=this.handleSearchButtonClickOff.bind(this);this.searchButtonClickOn=this.handleSearchButtonClickOn.bind(this);return this}enable(){if(this.subnavButton){this.subnavButton.addEventListener(d.CLICK,e=>this.subnavClick(e));this.subnavButton.addEventListener(d.TOUCH_START,e=>this.subnavClick(e));}if(this.subnavBack.length>0){this.subnavBack.forEach(button=>{button.addEventListener(d.CLICK,e=>this.subnavBackClick(e));button.addEventListener(d.TOUCH_START,e=>this.subnavBackClick(e));});}if(this.searchButton){this.searchButton.addEventListener(d.CLICK,e=>this.searchButtonClick(e));this.searchButton.addEventListener(d.TOUCH_START,e=>this.searchButtonClick(e));}if(this.menuCloseSet.length>0){this.menuCloseSet.forEach((closeButton,i)=>{closeButton.addEventListener(d.CLICK,e=>this.menuCloseClick(i,e));closeButton.addEventListener(d.TOUCH_START,e=>this.menuCloseClick(i,e));});}if(this.menuOpen){this.menuOpen.addEventListener(d.CLICK,e=>this.menuOpenClick(e));this.menuOpen.addEventListener(d.TOUCH_START,e=>this.menuOpenClick(e));}if(this.contextButton){this.contextButton.addEventListener(d.CLICK,e=>this.contextButtonClick(e));this.contextButton.addEventListener(d.TOUCH_START,e=>this.contextButtonClick(e));}if(this.languageButton){this.languageButton.addEventListener(d.CLICK,e=>this.languageButtonClick(e));this.languageButton.addEventListener(d.TOUCH_START,e=>this.languageButtonClick(e));}if(this.contextLinks.length>0&&this.callback){this.contextLinks.forEach(contextLink=>{contextLink.addEventListener(d.CLICK,e=>this.contextLinkClick(e));contextLink.addEventListener(d.TOUCH_START,e=>this.contextLinkClick(e));});}if(this.languageLinks.length>0&&this.callback){this.languageLinks.forEach(languageLink=>{languageLink.addEventListener(d.CLICK,e=>this.contextLinkClick(e));languageLink.addEventListener(d.TOUCH_START,e=>this.contextLinkClick(e));});}if(this.searchBox){this.searchBox.addEventListener(d.CLICK,ev=>{ev.stopPropagation();},false);}if(this.subNav){this.subNav.addEventListener(d.CLICK,ev=>{ev.stopPropagation();},false);}window.addEventListener(d.RESIZE,e=>{if(window.innerWidth>=1024){this.onResize(e);}});return this}handleContextLinkClick(event){event.preventDefault();this.callback(event);return this}handleKeyPress(e,callback){if(e.key==="Escape"){callback(e);}return this}handleLanguageButtonClick(e){e.preventDefault();e.stopImmediatePropagation();this.element.classList.toggle(`${this.prefix}--select--open`);return this}handleContextButtonClickOn(e){e.stopImmediatePropagation();this.element.classList.add(`${this.prefix}--context--open`);window.addEventListener(d.KEY_DOWN,ev=>this.keyPress(ev,this.contextButtonClickOff),false);window.addEventListener(d.CLICK,this.contextButtonClickOff);return this}handleContextButtonClickOff(e){e.stopImmediatePropagation();this.element.classList.remove(`${this.prefix}--context--open`);window.removeEventListener(d.KEY_DOWN,ev=>this.keyPress(ev,this.contextButtonClickOff),false);window.removeEventListener(d.CLICK,this.contextButtonClickOff);return this}handleContextButtonClick(e){if(this.element.classList.contains(`${this.prefix}--context--open`)){this.contextButtonClickOff(e);}else {this.contextButtonClickOn(e);}return this}handleSearchButtonClickOn(e){e.stopImmediatePropagation();this.searchBox.style.display="block";window.setTimeout(()=>{this.element.classList.add(`${this.prefix}--search--open`);},10);window.addEventListener(d.KEY_DOWN,ev=>this.keyPress(ev,this.searchButtonClickOff),false);if(window.innerWidth>=1024){window.addEventListener(d.CLICK,this.searchButtonClickOff,false);}return this}handleSearchButtonClickOff(e){e.stopImmediatePropagation();this.element.classList.remove(`${this.prefix}--search--open`);window.setTimeout(()=>{this.searchBox.style.display="none";},225);window.removeEventListener(d.KEY_DOWN,ev=>this.keyPress(ev,this.searchButtonClickOff),false);window.removeEventListener(d.CLICK,this.searchButtonClickOff,false);return this}handleSearchButtonClick(e){this.element.classList.remove(`${this.prefix}--subnav--open`);if(this.element.classList.contains(`${this.prefix}--search--open`)){this.searchButtonClickOff(e);}else {this.searchButtonClickOn(e);}return this}handleMenuOpenClick(e){e.preventDefault();e.stopImmediatePropagation();this.element.classList.add(`${this.prefix}--mobile--open`);this.body.classList.add(`${this.prefix}--menu--open`);return this}handleSubnavClickOn(e){e.stopImmediatePropagation();this.subNav.style.display="block";window.setTimeout(()=>{this.element.classList.add(`${this.prefix}--subnav--open`);},10);window.addEventListener(d.KEY_DOWN,ev=>this.keyPress(ev,this.subnavClickOff),false);if(window.innerWidth>=1024){window.addEventListener(d.CLICK,this.subnavClickOff);}return this}handleSubnavClickOff(e){e.stopImmediatePropagation();this.element.classList.remove(`${this.prefix}--subnav--open`);window.setTimeout(()=>{this.subNav.style.display="none";},150);window.removeEventListener(d.KEY_DOWN,ev=>this.keyPress(ev,this.subnavClickOff),false);window.removeEventListener(d.CLICK,this.subnavClickOff);return this}handleSubnavClick(e){e.preventDefault();e.stopImmediatePropagation();this.element.classList.remove(`${this.prefix}--search--open`);if(this.element.classList.contains(`${this.prefix}--subnav--open`)){this.subnavClickOff(e);}else {this.subnavClickOn(e);}return this}handleSubnavBackClick(e){e.stopImmediatePropagation();e.preventDefault();this.subnavClickOff(e);this.element.classList.remove(`${this.prefix}--select--open`);return this}handleMenuCloseClick(i,e){e.preventDefault();e.stopImmediatePropagation();this.element.classList.remove(`${this.prefix}--mobile--open`);this.element.classList.remove(`${this.prefix}--subnav--open`);this.body.classList.remove(`${this.prefix}--menu--open`);return this}handleResize(){this.element.classList.remove(`${this.prefix}--context--open`);this.element.classList.remove(`${this.prefix}--mobile--open`);this.element.classList.remove(`${this.prefix}--subnav--open`);this.element.classList.remove(`${this.prefix}--search--open`);return this}}
7
+
8
+ Drupal.behaviors.navigation={attach(){Array.prototype.forEach.call(document.querySelectorAll(`[data-loadcomponent="Navigation"]`),element=>{if(!element.dataset.jsProcessed){new Navigation(element);element.dataset.jsProcessed=true;}});}};
9
+
10
+ })();
@@ -10,7 +10,7 @@ navigation:
10
10
  description: Logo for the nav
11
11
  required: true
12
12
  preview:
13
- image: "/brand-assets/logo_en_horizontal_white.svg"
13
+ image: "images/logo_en_horizontal_white.svg"
14
14
  alt: Logo
15
15
  mobilelogo:
16
16
  type: object
@@ -18,7 +18,7 @@ navigation:
18
18
  description: Logo for the nav
19
19
  required: true
20
20
  preview:
21
- image: "/brand-assets/logo_en_horizontal_blue.svg"
21
+ image: "images/logo_en_horizontal_blue.svg"
22
22
  alt: Logo
23
23
  siteurl:
24
24
  type: string
@@ -10,7 +10,7 @@ navigation:
10
10
  description: Logo for the nav
11
11
  required: true
12
12
  preview:
13
- image: "/brand-assets/logo_en_horizontal_white.svg"
13
+ image: "images/logo_en_horizontal_white.svg"
14
14
  alt: Logo
15
15
  mobilelogo:
16
16
  type: object
@@ -18,7 +18,7 @@ navigation:
18
18
  description: Logo for the nav
19
19
  required: true
20
20
  preview:
21
- image: "/brand-assets/logo_en_horizontal_blue.svg"
21
+ image: "images/logo_en_horizontal_blue.svg"
22
22
  alt: Logo
23
23
  siteurl:
24
24
  type: string
@@ -1 +1,10 @@
1
- !function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";function e(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function t(t,n){for(var i=0;i<n.length;i++){var r=n[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,e(r.key),r)}}var n="click",i=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.element=t,this.parent=this.element.parentElement,this.prefix=this.element.dataset.prefix,this.init()},(i=[{key:"init",value:function(){return this.cacheDomReferences().setupHandlers().enable(),this}},{key:"cacheDomReferences",value:function(){return this.CloseButton=this.element.querySelector(".".concat(this.prefix,"--notification--close")),this}},{key:"setupHandlers",value:function(){return this.onClick=this.onClick.bind(this),this}},{key:"enable",value:function(){var e=this;return this.CloseButton.addEventListener(n,(function(){return e.onClick()})),this}},{key:"onClick",value:function(){return this.parent.removeChild(this.element),this}}])&&t(e.prototype,i),r&&t(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,i,r}();Drupal.behaviors.notification={attach:function(){Array.prototype.forEach.call(document.querySelectorAll('[data-loadcomponent="Notification"]'),(function(e){e.dataset.jsProcessed||(new i(e),e.dataset.jsProcessed=!0)}))}}}));
1
+ (function () {
2
+ 'use strict';
3
+
4
+ const d={ANIMATIONEND:"animationend",BEFOREUNLOAD:"beforeunload",BLUR:"blur",CHANGE:"change",CLEAR_FILTERS:"clearfilters",CLICK:"click",CUSTOM_EVENT:"customevent",DISPLAY_SUBHEADING:"displaysubheading",DROPDOWN_CHANGED:"dropdownchanged",FORM_ERROR:"formerror",FORM_SUCCESS:"formsuccess",FOCUS:"focus",HEADER_HIDING:"header-hiding",INDEX_CHANGED:"indexChanged",INPUT:"input",ITEMSLOADING:"itemsloading",ITEMSLOADED:"itemsloaded",KEY_DOWN:"keydown",MOUSEMOVE:"mousemove",MOUSEOUT:"mouseout",MOUSEOVER:"mouseover",PAGESHOW:"pageshow",PAUSE_VIDEO:"pausevideo",RENDERED:"rendered",REQUEST_MADE:"requestmade",RESIZE:"resize",RESULTS_RETURNED:"resultsreturnd",SCROLL:"scroll",SIMULATED_CLICK:"simulated-click",SHOW_HIDE:"showhide",SUBMIT:"submit",TOUCH_END:"touchend",TOUCH_START:"touchstart",TRANSITIONEND:"transitionend",TWEET_LOADED:"tweetLoaded",UPDATE_POST_COUNT:"updatepostcount",UPDATE_IN_VIEWPORT_MODULES:"updateinviewportmodules",UPDATE_SEARCH_WITH_NEW_ITEMS:"updatesearchwithnewitems",UPDATE_SETTINGS:"updatesettings",WHEEL:"wheel"};
5
+
6
+ class Notification{constructor(element){this.element=element;this.parent=this.element.parentElement;this.prefix=this.element.dataset.prefix;this.init();}init(){this.cacheDomReferences().setupHandlers().enable();return this}cacheDomReferences(){this.CloseButton=this.element.querySelector(`.${this.prefix}--notification--close`);return this}setupHandlers(){this.onClick=this.onClick.bind(this);return this}enable(){this.CloseButton.addEventListener(d.CLICK,()=>this.onClick());return this}onClick(){this.parent.removeChild(this.element);return this}}
7
+
8
+ Drupal.behaviors.notification={attach(){Array.prototype.forEach.call(document.querySelectorAll(`[data-loadcomponent="Notification"]`),element=>{if(!element.dataset.jsProcessed){new Notification(element);element.dataset.jsProcessed=true;}});}};
9
+
10
+ })();
@@ -6,7 +6,7 @@ numberpicker:
6
6
  visibility: storybook
7
7
  fields:
8
8
  label:
9
- type: text
9
+ type: string
10
10
  label: Label
11
11
  description: The label for the form element.
12
12
  preview: "Pick a number"
@@ -15,25 +15,25 @@ numberpicker:
15
15
  label: Tooltip
16
16
  description: The tooltip for the form element.
17
17
  helper:
18
- type: text
18
+ type: string
19
19
  label: Helper Text
20
20
  description: The helper text for the form element.
21
21
  id:
22
- type: text
22
+ type: string
23
23
  label: ID
24
24
  description: The ID of the input.
25
25
  name:
26
- type: text
26
+ type: string
27
27
  label: Name
28
28
  description: The name of the input.
29
29
  class:
30
- type: text
30
+ type: string
31
31
  label: Class
32
32
  description: The class of the form field.
33
33
  preview: checkbox
34
34
  default: ""
35
35
  placeholder:
36
- type: text
36
+ type: string
37
37
  label: Placeholder
38
38
  description: The placeholder of the form field.
39
39
  preview: "0 - 100"
@@ -6,7 +6,7 @@ numberpicker:
6
6
  visibility: storybook
7
7
  fields:
8
8
  label:
9
- type: text
9
+ type: string
10
10
  label: Label
11
11
  description: The label for the form element.
12
12
  preview: "Pick a number"
@@ -15,25 +15,25 @@ numberpicker:
15
15
  label: Tooltip
16
16
  description: The tooltip for the form element.
17
17
  helper:
18
- type: text
18
+ type: string
19
19
  label: Helper Text
20
20
  description: The helper text for the form element.
21
21
  id:
22
- type: text
22
+ type: string
23
23
  label: ID
24
24
  description: The ID of the input.
25
25
  name:
26
- type: text
26
+ type: string
27
27
  label: Name
28
28
  description: The name of the input.
29
29
  class:
30
- type: text
30
+ type: string
31
31
  label: Class
32
32
  description: The class of the form field.
33
33
  preview: checkbox
34
34
  default: ""
35
35
  placeholder:
36
- type: text
36
+ type: string
37
37
  label: Placeholder
38
38
  description: The placeholder of the form field.
39
39
  preview: "0 - 100"
@@ -5,7 +5,7 @@ pagination:
5
5
  description: The Pagination component breaks content into pages for easier navigation with intuitive controls like 'Previous' and 'Next' buttons.
6
6
  fields:
7
7
  currentPage:
8
- type: numeric
8
+ type: number
9
9
  label: Current page
10
10
  description: current page number that the user is on, zero-indexed
11
11
  required: true
@@ -16,7 +16,7 @@ pagination:
16
16
  label: First Page link
17
17
  description: Link to the first page
18
18
  required: true
19
- preview: "http://www.google.com?s=first"
19
+ preview: "https://www.ilo.org"
20
20
  firstPageTitle:
21
21
  type: string
22
22
  label: First Page Title
@@ -28,7 +28,7 @@ pagination:
28
28
  label: Last Page link
29
29
  description: Link to the last page
30
30
  required: true
31
- preview: "http://www.google.com?s=last"
31
+ preview: "https://www.ilo.org"
32
32
  lastPageTitle:
33
33
  type: string
34
34
  label: Last Page Title
@@ -40,7 +40,7 @@ pagination:
40
40
  label: Next Page link
41
41
  description: Link to the next page
42
42
  required: true
43
- preview: "http://www.google.com?s=next"
43
+ preview: "https://www.ilo.org"
44
44
  nextPageTitle:
45
45
  type: string
46
46
  label: Next Page Title
@@ -52,7 +52,7 @@ pagination:
52
52
  label: Prev Page link
53
53
  description: Link to the prev page
54
54
  required: true
55
- preview: "http://www.google.com?s=prev"
55
+ preview: "https://www.ilo.org"
56
56
  prevPageTitle:
57
57
  type: string
58
58
  label: Prev Page Title
@@ -66,7 +66,7 @@ pagination:
66
66
  required: true
67
67
  preview: "of"
68
68
  totalPages:
69
- type: numeric
69
+ type: number
70
70
  label: Total Pages
71
71
  description: The number of total pages
72
72
  required: true
@@ -5,7 +5,7 @@ pagination:
5
5
  description: The Pagination component breaks content into pages for easier navigation with intuitive controls like 'Previous' and 'Next' buttons.
6
6
  fields:
7
7
  currentPage:
8
- type: numeric
8
+ type: number
9
9
  label: Current page
10
10
  description: current page number that the user is on, zero-indexed
11
11
  required: true
@@ -16,7 +16,7 @@ pagination:
16
16
  label: First Page link
17
17
  description: Link to the first page
18
18
  required: true
19
- preview: "http://www.google.com?s=first"
19
+ preview: "https://www.ilo.org"
20
20
  firstPageTitle:
21
21
  type: string
22
22
  label: First Page Title
@@ -28,7 +28,7 @@ pagination:
28
28
  label: Last Page link
29
29
  description: Link to the last page
30
30
  required: true
31
- preview: "http://www.google.com?s=last"
31
+ preview: "https://www.ilo.org"
32
32
  lastPageTitle:
33
33
  type: string
34
34
  label: Last Page Title
@@ -40,7 +40,7 @@ pagination:
40
40
  label: Next Page link
41
41
  description: Link to the next page
42
42
  required: true
43
- preview: "http://www.google.com?s=next"
43
+ preview: "https://www.ilo.org"
44
44
  nextPageTitle:
45
45
  type: string
46
46
  label: Next Page Title
@@ -52,7 +52,7 @@ pagination:
52
52
  label: Prev Page link
53
53
  description: Link to the prev page
54
54
  required: true
55
- preview: "http://www.google.com?s=prev"
55
+ preview: "https://www.ilo.org"
56
56
  prevPageTitle:
57
57
  type: string
58
58
  label: Prev Page Title
@@ -66,7 +66,7 @@ pagination:
66
66
  required: true
67
67
  preview: "of"
68
68
  totalPages:
69
- type: numeric
69
+ type: number
70
70
  label: Total Pages
71
71
  description: The number of total pages
72
72
  required: true
@@ -8,7 +8,7 @@ radio:
8
8
  visibility: storybook
9
9
  fields:
10
10
  label:
11
- type: text
11
+ type: string
12
12
  label: Label
13
13
  description: The label for the form element.
14
14
  preview: "Do you agree to these terms?"
@@ -17,25 +17,25 @@ radio:
17
17
  label: Tooltip
18
18
  description: The tooltip for the form element.
19
19
  helper:
20
- type: text
20
+ type: string
21
21
  label: Helper Text
22
22
  description: The helper text for the form element.
23
23
  id:
24
- type: text
24
+ type: string
25
25
  label: ID
26
26
  description: The ID of the input.
27
27
  name:
28
- type: text
28
+ type: string
29
29
  label: Name
30
30
  description: The name of the input.
31
31
  class:
32
- type: text
32
+ type: string
33
33
  label: Class
34
34
  description: The class of the form field.
35
35
  preview: radio
36
36
  default: ""
37
37
  value:
38
- type: text
38
+ type: string
39
39
  label: Value
40
40
  description: The value of the input.
41
41
  preview: "1"
@@ -8,7 +8,7 @@ radio:
8
8
  visibility: storybook
9
9
  fields:
10
10
  label:
11
- type: text
11
+ type: string
12
12
  label: Label
13
13
  description: The label for the form element.
14
14
  preview: "Do you agree to these terms?"
@@ -17,25 +17,25 @@ radio:
17
17
  label: Tooltip
18
18
  description: The tooltip for the form element.
19
19
  helper:
20
- type: text
20
+ type: string
21
21
  label: Helper Text
22
22
  description: The helper text for the form element.
23
23
  id:
24
- type: text
24
+ type: string
25
25
  label: ID
26
26
  description: The ID of the input.
27
27
  name:
28
- type: text
28
+ type: string
29
29
  label: Name
30
30
  description: The name of the input.
31
31
  class:
32
- type: text
32
+ type: string
33
33
  label: Class
34
34
  description: The class of the form field.
35
35
  preview: radio
36
36
  default: ""
37
37
  value:
38
- type: text
38
+ type: string
39
39
  label: Value
40
40
  description: The value of the input.
41
41
  preview: "1"
@@ -1 +1,10 @@
1
- !function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";function e(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}function t(t,n){for(var i=0;i<n.length;i++){var r=n[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,e(r.key),r)}}var n="click",i=function(){return e=function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.element=t,this.prefix=this.element.dataset.prefix,this.openclass="".concat(this.prefix,"--read-more--open"),this.buttonopenclass="".concat(this.prefix,"--read-more--button--open"),this.fulltext=this.element.dataset.fulltext,this.excerpt=this.element.dataset.excerpt,this.buttonlabel={closed:this.element.dataset.closed,opened:this.element.dataset.opened},this.init()},(i=[{key:"init",value:function(){return this.cacheDomReferences().setupHandlers().enable(),this}},{key:"cacheDomReferences",value:function(){return this.ReadMoreButton=this.element.querySelector(".".concat(this.prefix,"--read-more--button")),this.RichText=this.element.querySelector(".".concat(this.prefix,"--richtext")),this}},{key:"setupHandlers",value:function(){return this.onClick=this.onClick.bind(this),this}},{key:"enable",value:function(){var e=this;return this.ReadMoreButton.addEventListener(n,(function(){return e.onClick()})),this}},{key:"onClick",value:function(){return this.element.classList.contains(this.openclass)?(this.RichText.innerHTML=this.excerpt,this.ReadMoreButton.innerHTML=this.buttonlabel.closed):(this.RichText.innerHTML=this.fulltext,this.ReadMoreButton.innerHTML=this.buttonlabel.opened),this.element.classList.toggle(this.openclass),this.ReadMoreButton.classList.toggle(this.buttonopenclass),this}}])&&t(e.prototype,i),r&&t(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e;var e,i,r}();Drupal.behaviors.readmore={attach:function(){Array.prototype.forEach.call(document.querySelectorAll('[data-loadcomponent="ReadMore"]'),(function(e){e.dataset.jsProcessed||(new i(e),e.dataset.jsProcessed=!0)}))}}}));
1
+ (function () {
2
+ 'use strict';
3
+
4
+ const d={ANIMATIONEND:"animationend",BEFOREUNLOAD:"beforeunload",BLUR:"blur",CHANGE:"change",CLEAR_FILTERS:"clearfilters",CLICK:"click",CUSTOM_EVENT:"customevent",DISPLAY_SUBHEADING:"displaysubheading",DROPDOWN_CHANGED:"dropdownchanged",FORM_ERROR:"formerror",FORM_SUCCESS:"formsuccess",FOCUS:"focus",HEADER_HIDING:"header-hiding",INDEX_CHANGED:"indexChanged",INPUT:"input",ITEMSLOADING:"itemsloading",ITEMSLOADED:"itemsloaded",KEY_DOWN:"keydown",MOUSEMOVE:"mousemove",MOUSEOUT:"mouseout",MOUSEOVER:"mouseover",PAGESHOW:"pageshow",PAUSE_VIDEO:"pausevideo",RENDERED:"rendered",REQUEST_MADE:"requestmade",RESIZE:"resize",RESULTS_RETURNED:"resultsreturnd",SCROLL:"scroll",SIMULATED_CLICK:"simulated-click",SHOW_HIDE:"showhide",SUBMIT:"submit",TOUCH_END:"touchend",TOUCH_START:"touchstart",TRANSITIONEND:"transitionend",TWEET_LOADED:"tweetLoaded",UPDATE_POST_COUNT:"updatepostcount",UPDATE_IN_VIEWPORT_MODULES:"updateinviewportmodules",UPDATE_SEARCH_WITH_NEW_ITEMS:"updatesearchwithnewitems",UPDATE_SETTINGS:"updatesettings",WHEEL:"wheel"};
5
+
6
+ class ReadMore{constructor(element){this.element=element;this.prefix=this.element.dataset.prefix;this.openclass=`${this.prefix}--read-more--open`;this.buttonopenclass=`${this.prefix}--read-more--button--open`;this.fulltext=this.element.dataset.fulltext;this.excerpt=this.element.dataset.excerpt;this.buttonlabel={closed:this.element.dataset.closed,opened:this.element.dataset.opened};this.init();}init(){this.cacheDomReferences().setupHandlers().enable();return this}cacheDomReferences(){this.ReadMoreButton=this.element.querySelector(`.${this.prefix}--read-more--button`);this.RichText=this.element.querySelector(`.${this.prefix}--richtext`);return this}setupHandlers(){this.onClick=this.onClick.bind(this);return this}enable(){this.ReadMoreButton.addEventListener(d.CLICK,()=>this.onClick());return this}onClick(){if(this.element.classList.contains(this.openclass)){this.RichText.innerHTML=this.excerpt;this.ReadMoreButton.innerHTML=this.buttonlabel.closed;}else {this.RichText.innerHTML=this.fulltext;this.ReadMoreButton.innerHTML=this.buttonlabel.opened;}this.element.classList.toggle(this.openclass);this.ReadMoreButton.classList.toggle(this.buttonopenclass);return this}}
7
+
8
+ Drupal.behaviors.readmore={attach(){Array.prototype.forEach.call(document.querySelectorAll(`[data-loadcomponent="ReadMore"]`),element=>{if(!element.dataset.jsProcessed){new ReadMore(element);element.dataset.jsProcessed=true;}});}};
9
+
10
+ })();
@@ -22,7 +22,7 @@ readmore:
22
22
  type: string
23
23
  label: Full Text
24
24
  description: HTML content
25
- preview: "<p>Underlying the ILO’s work is the importance of cooperation between governments and employers’ and workers’ organizations in fostering social and economic progress. The ILO aims to ensure that it serves the needs of working women and men by bringing together governments, employers and workers to set labour standards, develop policies and devise programmes.</p> <p>The very structure of the ILO, where workers and employers together have an equal voice with governments in its deliberations, shows social dialogue in action. It ensures that the views of the social partners are closely reflected in ILO labour standards, policies and programmes.</p> <p>The ILO encourages this tripartism within its constituents - employers , workers and member States , by promoting a social dialogue between trade unions and employers in formulating, and where appropriate, implementing national policy on social, economic, and many other issues.</p>."
25
+ preview: "<p>Underlying the ILO’s work is the importance of cooperation between governments and employers’ and workers’ organizations in fostering social and economic progress. The ILO aims to ensure that it serves the needs of working women and men by bringing together governments, employers and workers to set labour standards, develop policies and devise programmes.</p> <p>The very structure of the ILO, where workers and employers together have an equal voice with governments in its deliberations, shows social dialogue in action. It ensures that the views of the social partners are closely reflected in ILO labour standards, policies and programmes.</p> <p>The ILO encourages this tripartism within its constituents - employers , workers and member States , by promoting a social dialogue between trade unions and employers in formulating, and where appropriate, implementing national policy on social, economic, and many other issues.</p>"
26
26
  required: true
27
27
  settings:
28
28
  openatstart:
@@ -22,7 +22,7 @@ readmore:
22
22
  type: string
23
23
  label: Full Text
24
24
  description: HTML content
25
- preview: "<p>Underlying the ILO’s work is the importance of cooperation between governments and employers’ and workers’ organizations in fostering social and economic progress. The ILO aims to ensure that it serves the needs of working women and men by bringing together governments, employers and workers to set labour standards, develop policies and devise programmes.</p> <p>The very structure of the ILO, where workers and employers together have an equal voice with governments in its deliberations, shows social dialogue in action. It ensures that the views of the social partners are closely reflected in ILO labour standards, policies and programmes.</p> <p>The ILO encourages this tripartism within its constituents - employers , workers and member States , by promoting a social dialogue between trade unions and employers in formulating, and where appropriate, implementing national policy on social, economic, and many other issues.</p>."
25
+ preview: "<p>Underlying the ILO’s work is the importance of cooperation between governments and employers’ and workers’ organizations in fostering social and economic progress. The ILO aims to ensure that it serves the needs of working women and men by bringing together governments, employers and workers to set labour standards, develop policies and devise programmes.</p> <p>The very structure of the ILO, where workers and employers together have an equal voice with governments in its deliberations, shows social dialogue in action. It ensures that the views of the social partners are closely reflected in ILO labour standards, policies and programmes.</p> <p>The ILO encourages this tripartism within its constituents - employers , workers and member States , by promoting a social dialogue between trade unions and employers in formulating, and where appropriate, implementing national policy on social, economic, and many other issues.</p>"
26
26
  required: true
27
27
  settings:
28
28
  openatstart: