foundation-rails 5.5.3.2 → 6.6.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (369) hide show
  1. checksums.yaml +5 -5
  2. data/.gitignore +2 -2
  3. data/.ruby-version +1 -1
  4. data/.travis.yml +17 -4
  5. data/Appraisals +19 -0
  6. data/Gemfile +5 -2
  7. data/Gemfile.lock +210 -0
  8. data/LICENSE.txt +1 -1
  9. data/README.md +64 -28
  10. data/Rakefile +30 -0
  11. data/app/views/foundation/rails/styleguide/show.html.erb +10 -13
  12. data/bower.json +3 -2
  13. data/foundation-rails.gemspec +12 -7
  14. data/gemfiles/rails_4.1.gemfile +10 -0
  15. data/gemfiles/rails_4.1.gemfile.lock +181 -0
  16. data/gemfiles/rails_4.2.gemfile +10 -0
  17. data/gemfiles/rails_4.2.gemfile.lock +181 -0
  18. data/gemfiles/rails_5.0.gemfile +10 -0
  19. data/gemfiles/rails_5.0.gemfile.lock +196 -0
  20. data/gemfiles/rails_5.1.gemfile +10 -0
  21. data/gemfiles/rails_5.1.gemfile.lock +196 -0
  22. data/gemfiles/rails_5.2.gemfile +10 -0
  23. data/gemfiles/rails_5.2.gemfile.lock +196 -0
  24. data/lib/foundation/rails/engine.rb +2 -3
  25. data/lib/foundation/rails/version.rb +1 -1
  26. data/lib/foundation-rails.rb +1 -0
  27. data/lib/generators/foundation/install_generator.rb +39 -27
  28. data/lib/generators/foundation/templates/_settings.scss +895 -0
  29. data/lib/generators/foundation/templates/application.html.erb +1 -2
  30. data/lib/generators/foundation/templates/application.html.haml +2 -4
  31. data/lib/generators/foundation/templates/application.html.slim +1 -3
  32. data/lib/generators/foundation/templates/browserslist +4 -0
  33. data/lib/generators/foundation/templates/foundation_and_overrides.scss +56 -0
  34. data/spec/features/generator_spec.rb +1 -1
  35. data/spec/support/helpers.rb +8 -2
  36. data/vendor/assets/_vendor/sassy-lists/stylesheets/functions/_contain.scss +31 -0
  37. data/vendor/assets/_vendor/sassy-lists/stylesheets/functions/_purge.scss +38 -0
  38. data/vendor/assets/_vendor/sassy-lists/stylesheets/functions/_remove.scss +31 -0
  39. data/vendor/assets/_vendor/sassy-lists/stylesheets/functions/_replace.scss +46 -0
  40. data/vendor/assets/_vendor/sassy-lists/stylesheets/functions/_to-list.scss +27 -0
  41. data/vendor/assets/_vendor/sassy-lists/stylesheets/helpers/_missing-dependencies.scss +25 -0
  42. data/vendor/assets/_vendor/sassy-lists/stylesheets/helpers/_true.scss +13 -0
  43. data/vendor/assets/js/foundation.cjs.js +12529 -0
  44. data/vendor/assets/js/foundation.cjs.js.map +1 -0
  45. data/vendor/assets/js/foundation.es6.js +11006 -0
  46. data/vendor/assets/js/foundation.es6.js.map +1 -0
  47. data/vendor/assets/js/foundation.esm.js +12490 -0
  48. data/vendor/assets/js/foundation.esm.js.map +1 -0
  49. data/vendor/assets/js/foundation.js +13897 -0
  50. data/vendor/assets/js/foundation.js.map +1 -0
  51. data/vendor/assets/js/foundation.min.js +2 -0
  52. data/vendor/assets/js/foundation.min.js.map +1 -0
  53. data/vendor/assets/js/plugins/foundation.abide.js +1142 -0
  54. data/vendor/assets/js/plugins/foundation.abide.js.map +1 -0
  55. data/vendor/assets/js/plugins/foundation.abide.min.js +2 -0
  56. data/vendor/assets/js/plugins/foundation.abide.min.js.map +1 -0
  57. data/vendor/assets/js/plugins/foundation.accordion.js +661 -0
  58. data/vendor/assets/js/plugins/foundation.accordion.js.map +1 -0
  59. data/vendor/assets/js/plugins/foundation.accordion.min.js +2 -0
  60. data/vendor/assets/js/plugins/foundation.accordion.min.js.map +1 -0
  61. data/vendor/assets/js/plugins/foundation.accordionMenu.js +616 -0
  62. data/vendor/assets/js/plugins/foundation.accordionMenu.js.map +1 -0
  63. data/vendor/assets/js/plugins/foundation.accordionMenu.min.js +2 -0
  64. data/vendor/assets/js/plugins/foundation.accordionMenu.min.js.map +1 -0
  65. data/vendor/assets/js/plugins/foundation.core.js +1180 -0
  66. data/vendor/assets/js/plugins/foundation.core.js.map +1 -0
  67. data/vendor/assets/js/plugins/foundation.core.min.js +2 -0
  68. data/vendor/assets/js/plugins/foundation.core.min.js.map +1 -0
  69. data/vendor/assets/js/plugins/foundation.drilldown.js +968 -0
  70. data/vendor/assets/js/plugins/foundation.drilldown.js.map +1 -0
  71. data/vendor/assets/js/plugins/foundation.drilldown.min.js +2 -0
  72. data/vendor/assets/js/plugins/foundation.drilldown.min.js.map +1 -0
  73. data/vendor/assets/js/plugins/foundation.dropdown.js +1328 -0
  74. data/vendor/assets/js/plugins/foundation.dropdown.js.map +1 -0
  75. data/vendor/assets/js/plugins/foundation.dropdown.min.js +2 -0
  76. data/vendor/assets/js/plugins/foundation.dropdown.min.js.map +1 -0
  77. data/vendor/assets/js/plugins/foundation.dropdownMenu.js +799 -0
  78. data/vendor/assets/js/plugins/foundation.dropdownMenu.js.map +1 -0
  79. data/vendor/assets/js/plugins/foundation.dropdownMenu.min.js +2 -0
  80. data/vendor/assets/js/plugins/foundation.dropdownMenu.min.js.map +1 -0
  81. data/vendor/assets/js/plugins/foundation.equalizer.js +614 -0
  82. data/vendor/assets/js/plugins/foundation.equalizer.js.map +1 -0
  83. data/vendor/assets/js/plugins/foundation.equalizer.min.js +2 -0
  84. data/vendor/assets/js/plugins/foundation.equalizer.min.js.map +1 -0
  85. data/vendor/assets/js/plugins/foundation.interchange.js +796 -0
  86. data/vendor/assets/js/plugins/foundation.interchange.js.map +1 -0
  87. data/vendor/assets/js/plugins/foundation.interchange.min.js +2 -0
  88. data/vendor/assets/js/plugins/foundation.interchange.min.js.map +1 -0
  89. data/vendor/assets/js/plugins/foundation.magellan.js +850 -0
  90. data/vendor/assets/js/plugins/foundation.magellan.js.map +1 -0
  91. data/vendor/assets/js/plugins/foundation.magellan.min.js +2 -0
  92. data/vendor/assets/js/plugins/foundation.magellan.min.js.map +1 -0
  93. data/vendor/assets/js/plugins/foundation.offcanvas.js +1318 -0
  94. data/vendor/assets/js/plugins/foundation.offcanvas.js.map +1 -0
  95. data/vendor/assets/js/plugins/foundation.offcanvas.min.js +2 -0
  96. data/vendor/assets/js/plugins/foundation.offcanvas.min.js.map +1 -0
  97. data/vendor/assets/js/plugins/foundation.orbit.js +886 -0
  98. data/vendor/assets/js/plugins/foundation.orbit.js.map +1 -0
  99. data/vendor/assets/js/plugins/foundation.orbit.min.js +2 -0
  100. data/vendor/assets/js/plugins/foundation.orbit.min.js.map +1 -0
  101. data/vendor/assets/js/plugins/foundation.responsiveAccordionTabs.js +585 -0
  102. data/vendor/assets/js/plugins/foundation.responsiveAccordionTabs.js.map +1 -0
  103. data/vendor/assets/js/plugins/foundation.responsiveAccordionTabs.min.js +2 -0
  104. data/vendor/assets/js/plugins/foundation.responsiveAccordionTabs.min.js.map +1 -0
  105. data/vendor/assets/js/plugins/foundation.responsiveMenu.js +413 -0
  106. data/vendor/assets/js/plugins/foundation.responsiveMenu.js.map +1 -0
  107. data/vendor/assets/js/plugins/foundation.responsiveMenu.min.js +2 -0
  108. data/vendor/assets/js/plugins/foundation.responsiveMenu.min.js.map +1 -0
  109. data/vendor/assets/js/plugins/foundation.responsiveToggle.js +394 -0
  110. data/vendor/assets/js/plugins/foundation.responsiveToggle.js.map +1 -0
  111. data/vendor/assets/js/plugins/foundation.responsiveToggle.min.js +2 -0
  112. data/vendor/assets/js/plugins/foundation.responsiveToggle.min.js.map +1 -0
  113. data/vendor/assets/js/plugins/foundation.reveal.js +1275 -0
  114. data/vendor/assets/js/plugins/foundation.reveal.js.map +1 -0
  115. data/vendor/assets/js/plugins/foundation.reveal.min.js +2 -0
  116. data/vendor/assets/js/plugins/foundation.reveal.min.js.map +1 -0
  117. data/vendor/assets/js/plugins/foundation.slider.js +1346 -0
  118. data/vendor/assets/js/plugins/foundation.slider.js.map +1 -0
  119. data/vendor/assets/js/plugins/foundation.slider.min.js +2 -0
  120. data/vendor/assets/js/plugins/foundation.slider.min.js.map +1 -0
  121. data/vendor/assets/js/plugins/foundation.smoothScroll.js +359 -0
  122. data/vendor/assets/js/plugins/foundation.smoothScroll.js.map +1 -0
  123. data/vendor/assets/js/plugins/foundation.smoothScroll.min.js +2 -0
  124. data/vendor/assets/js/plugins/foundation.smoothScroll.min.js.map +1 -0
  125. data/vendor/assets/js/plugins/foundation.sticky.js +1105 -0
  126. data/vendor/assets/js/plugins/foundation.sticky.js.map +1 -0
  127. data/vendor/assets/js/plugins/foundation.sticky.min.js +2 -0
  128. data/vendor/assets/js/plugins/foundation.sticky.min.js.map +1 -0
  129. data/vendor/assets/js/plugins/foundation.tabs.js +792 -0
  130. data/vendor/assets/js/plugins/foundation.tabs.js.map +1 -0
  131. data/vendor/assets/js/plugins/foundation.tabs.min.js +2 -0
  132. data/vendor/assets/js/plugins/foundation.tabs.min.js.map +1 -0
  133. data/vendor/assets/js/plugins/foundation.toggler.js +704 -0
  134. data/vendor/assets/js/plugins/foundation.toggler.js.map +1 -0
  135. data/vendor/assets/js/plugins/foundation.toggler.min.js +2 -0
  136. data/vendor/assets/js/plugins/foundation.toggler.min.js.map +1 -0
  137. data/vendor/assets/js/plugins/foundation.tooltip.js +1333 -0
  138. data/vendor/assets/js/plugins/foundation.tooltip.js.map +1 -0
  139. data/vendor/assets/js/plugins/foundation.tooltip.min.js +2 -0
  140. data/vendor/assets/js/plugins/foundation.tooltip.min.js.map +1 -0
  141. data/vendor/assets/js/plugins/foundation.util.box.js +354 -0
  142. data/vendor/assets/js/plugins/foundation.util.box.js.map +1 -0
  143. data/vendor/assets/js/plugins/foundation.util.box.min.js +2 -0
  144. data/vendor/assets/js/plugins/foundation.util.box.min.js.map +1 -0
  145. data/vendor/assets/js/plugins/foundation.util.imageLoader.js +218 -0
  146. data/vendor/assets/js/plugins/foundation.util.imageLoader.js.map +1 -0
  147. data/vendor/assets/js/plugins/foundation.util.imageLoader.min.js +2 -0
  148. data/vendor/assets/js/plugins/foundation.util.imageLoader.min.js.map +1 -0
  149. data/vendor/assets/js/plugins/foundation.util.keyboard.js +341 -0
  150. data/vendor/assets/js/plugins/foundation.util.keyboard.js.map +1 -0
  151. data/vendor/assets/js/plugins/foundation.util.keyboard.min.js +2 -0
  152. data/vendor/assets/js/plugins/foundation.util.keyboard.min.js.map +1 -0
  153. data/vendor/assets/js/plugins/foundation.util.mediaQuery.js +509 -0
  154. data/vendor/assets/js/plugins/foundation.util.mediaQuery.js.map +1 -0
  155. data/vendor/assets/js/plugins/foundation.util.mediaQuery.min.js +2 -0
  156. data/vendor/assets/js/plugins/foundation.util.mediaQuery.min.js.map +1 -0
  157. data/vendor/assets/js/plugins/foundation.util.motion.js +274 -0
  158. data/vendor/assets/js/plugins/foundation.util.motion.js.map +1 -0
  159. data/vendor/assets/js/plugins/foundation.util.motion.min.js +2 -0
  160. data/vendor/assets/js/plugins/foundation.util.motion.min.js.map +1 -0
  161. data/vendor/assets/js/plugins/foundation.util.nest.js +240 -0
  162. data/vendor/assets/js/plugins/foundation.util.nest.js.map +1 -0
  163. data/vendor/assets/js/plugins/foundation.util.nest.min.js +2 -0
  164. data/vendor/assets/js/plugins/foundation.util.nest.min.js.map +1 -0
  165. data/vendor/assets/js/plugins/foundation.util.timer.js +226 -0
  166. data/vendor/assets/js/plugins/foundation.util.timer.js.map +1 -0
  167. data/vendor/assets/js/plugins/foundation.util.timer.min.js +2 -0
  168. data/vendor/assets/js/plugins/foundation.util.timer.min.js.map +1 -0
  169. data/vendor/assets/js/plugins/foundation.util.touch.js +365 -0
  170. data/vendor/assets/js/plugins/foundation.util.touch.js.map +1 -0
  171. data/vendor/assets/js/plugins/foundation.util.touch.min.js +2 -0
  172. data/vendor/assets/js/plugins/foundation.util.touch.min.js.map +1 -0
  173. data/vendor/assets/js/plugins/foundation.util.triggers.js +470 -0
  174. data/vendor/assets/js/plugins/foundation.util.triggers.js.map +1 -0
  175. data/vendor/assets/js/plugins/foundation.util.triggers.min.js +2 -0
  176. data/vendor/assets/js/plugins/foundation.util.triggers.min.js.map +1 -0
  177. data/vendor/assets/scss/_global.scss +244 -0
  178. data/vendor/assets/scss/components/_accordion-menu.scss +174 -0
  179. data/vendor/assets/scss/components/_accordion.scss +164 -0
  180. data/vendor/assets/scss/components/_badge.scss +63 -0
  181. data/vendor/assets/scss/components/_breadcrumbs.scss +119 -0
  182. data/vendor/assets/scss/components/_button-group.scss +304 -0
  183. data/vendor/assets/scss/components/_button.scss +428 -0
  184. data/vendor/assets/scss/components/_callout.scss +108 -0
  185. data/vendor/assets/scss/components/_card.scss +129 -0
  186. data/vendor/assets/scss/components/_close-button.scss +127 -0
  187. data/vendor/assets/scss/components/_drilldown.scss +140 -0
  188. data/vendor/assets/scss/components/_dropdown-menu.scss +279 -0
  189. data/vendor/assets/scss/components/_dropdown.scss +82 -0
  190. data/vendor/assets/scss/components/_flex-video.scss +1 -0
  191. data/vendor/assets/scss/components/_flex.scss +119 -0
  192. data/vendor/assets/scss/components/_float.scss +27 -0
  193. data/vendor/assets/scss/components/_label.scss +64 -0
  194. data/vendor/assets/scss/components/_media-object.scss +114 -0
  195. data/vendor/assets/scss/components/_menu-icon.scss +9 -0
  196. data/vendor/assets/scss/components/_menu.scss +495 -0
  197. data/vendor/assets/scss/components/_off-canvas.scss +511 -0
  198. data/vendor/assets/scss/components/_orbit.scss +197 -0
  199. data/vendor/assets/scss/components/_pagination.scss +201 -0
  200. data/vendor/assets/scss/components/_progress-bar.scss +63 -0
  201. data/vendor/assets/scss/components/_responsive-embed.scss +57 -0
  202. data/vendor/assets/scss/components/_reveal.scss +185 -0
  203. data/vendor/assets/scss/components/_slider.scss +137 -0
  204. data/vendor/assets/scss/components/_sticky.scss +39 -0
  205. data/vendor/assets/scss/components/_switch.scss +261 -0
  206. data/vendor/assets/scss/components/_table.scss +328 -0
  207. data/vendor/assets/scss/components/_tabs.scss +193 -0
  208. data/vendor/assets/scss/components/_thumbnail.scss +67 -0
  209. data/vendor/assets/scss/components/_title-bar.scss +84 -0
  210. data/vendor/assets/scss/components/_tooltip.scss +160 -0
  211. data/vendor/assets/scss/components/_top-bar.scss +175 -0
  212. data/vendor/assets/scss/components/_visibility.scss +135 -0
  213. data/vendor/assets/scss/forms/_checkbox.scss +41 -0
  214. data/vendor/assets/scss/forms/_error.scss +89 -0
  215. data/vendor/assets/scss/forms/_fieldset.scss +53 -0
  216. data/vendor/assets/scss/forms/_forms.scss +34 -0
  217. data/vendor/assets/scss/forms/_help-text.scss +30 -0
  218. data/vendor/assets/scss/forms/_input-group.scss +142 -0
  219. data/vendor/assets/scss/forms/_label.scss +50 -0
  220. data/vendor/assets/scss/forms/_meter.scss +116 -0
  221. data/vendor/assets/scss/forms/_progress.scss +94 -0
  222. data/vendor/assets/scss/forms/_range.scss +149 -0
  223. data/vendor/assets/scss/forms/_select.scss +90 -0
  224. data/vendor/assets/scss/forms/_text.scss +179 -0
  225. data/vendor/assets/scss/foundation.scss +155 -0
  226. data/vendor/assets/scss/grid/_classes.scss +189 -0
  227. data/vendor/assets/scss/grid/_column.scss +78 -0
  228. data/vendor/assets/scss/grid/_flex-grid.scss +260 -0
  229. data/vendor/assets/scss/grid/_grid.scss +48 -0
  230. data/vendor/assets/scss/grid/_gutter.scss +67 -0
  231. data/vendor/assets/scss/grid/_layout.scss +76 -0
  232. data/vendor/assets/scss/grid/_position.scss +100 -0
  233. data/vendor/assets/scss/grid/_row.scss +99 -0
  234. data/vendor/assets/scss/grid/_size.scss +24 -0
  235. data/vendor/assets/scss/motion-ui/_classes.scss +109 -0
  236. data/vendor/assets/scss/motion-ui/_settings.scss +62 -0
  237. data/vendor/assets/scss/motion-ui/effects/_fade.scss +29 -0
  238. data/vendor/assets/scss/motion-ui/effects/_hinge.scss +66 -0
  239. data/vendor/assets/scss/motion-ui/effects/_shake.scss +15 -0
  240. data/vendor/assets/scss/motion-ui/effects/_slide.scss +42 -0
  241. data/vendor/assets/scss/motion-ui/effects/_spin.scss +29 -0
  242. data/vendor/assets/scss/motion-ui/effects/_wiggle.scss +13 -0
  243. data/vendor/assets/scss/motion-ui/effects/_zoom.scss +15 -0
  244. data/vendor/assets/scss/motion-ui/motion-ui.scss +31 -0
  245. data/vendor/assets/scss/motion-ui/transitions/_fade.scss +30 -0
  246. data/vendor/assets/scss/motion-ui/transitions/_hinge.scss +44 -0
  247. data/vendor/assets/scss/motion-ui/transitions/_slide.scss +43 -0
  248. data/vendor/assets/scss/motion-ui/transitions/_spin.scss +40 -0
  249. data/vendor/assets/scss/motion-ui/transitions/_zoom.scss +41 -0
  250. data/vendor/assets/scss/motion-ui/util/_animation.scss +7 -0
  251. data/vendor/assets/scss/motion-ui/util/_args.scss +15 -0
  252. data/vendor/assets/scss/motion-ui/util/_function.scss +94 -0
  253. data/vendor/assets/scss/motion-ui/util/_keyframe.scss +136 -0
  254. data/vendor/assets/scss/motion-ui/util/_selector.scss +23 -0
  255. data/vendor/assets/scss/motion-ui/util/_series.scss +57 -0
  256. data/vendor/assets/scss/motion-ui/util/_string.scss +36 -0
  257. data/vendor/assets/scss/motion-ui/util/_transition.scss +45 -0
  258. data/vendor/assets/scss/motion-ui/util/_unit.scss +7 -0
  259. data/vendor/assets/scss/prototype/_arrow.scss +36 -0
  260. data/vendor/assets/scss/prototype/_border-box.scss +35 -0
  261. data/vendor/assets/scss/prototype/_border-none.scss +35 -0
  262. data/vendor/assets/scss/prototype/_bordered.scss +54 -0
  263. data/vendor/assets/scss/prototype/_box.scss +23 -0
  264. data/vendor/assets/scss/prototype/_display.scss +50 -0
  265. data/vendor/assets/scss/prototype/_font-styling.scss +95 -0
  266. data/vendor/assets/scss/prototype/_list-style-type.scss +95 -0
  267. data/vendor/assets/scss/prototype/_overflow.scss +72 -0
  268. data/vendor/assets/scss/prototype/_position.scss +114 -0
  269. data/vendor/assets/scss/prototype/_prototype.scss +87 -0
  270. data/vendor/assets/scss/prototype/_relation.scss +157 -0
  271. data/vendor/assets/scss/prototype/_rotate.scss +31 -0
  272. data/vendor/assets/scss/prototype/_rounded.scss +61 -0
  273. data/vendor/assets/scss/prototype/_separator.scss +96 -0
  274. data/vendor/assets/scss/prototype/_shadow.scss +43 -0
  275. data/vendor/assets/scss/prototype/_sizing.scss +73 -0
  276. data/vendor/assets/scss/prototype/_spacing.scss +179 -0
  277. data/vendor/assets/scss/prototype/_text-decoration.scss +48 -0
  278. data/vendor/assets/scss/prototype/_text-transformation.scss +48 -0
  279. data/vendor/assets/scss/prototype/_text-utilities.scss +88 -0
  280. data/vendor/assets/scss/settings/_settings.scss +895 -0
  281. data/vendor/assets/scss/typography/_alignment.scss +22 -0
  282. data/vendor/assets/scss/typography/_base.scss +474 -0
  283. data/vendor/assets/scss/typography/_helpers.scss +180 -0
  284. data/vendor/assets/scss/typography/_print.scss +96 -0
  285. data/vendor/assets/scss/typography/_typography.scss +26 -0
  286. data/vendor/assets/scss/util/_breakpoint.scss +435 -0
  287. data/vendor/assets/scss/util/_color.scss +139 -0
  288. data/vendor/assets/scss/util/_direction.scss +31 -0
  289. data/vendor/assets/scss/util/_flex.scss +90 -0
  290. data/vendor/assets/scss/util/_math.scss +147 -0
  291. data/vendor/assets/scss/util/_mixins.scss +373 -0
  292. data/vendor/assets/scss/util/_selector.scss +41 -0
  293. data/vendor/assets/scss/util/_typography.scss +26 -0
  294. data/vendor/assets/scss/util/_unit.scss +152 -0
  295. data/vendor/assets/scss/util/_util.scss +14 -0
  296. data/vendor/assets/scss/util/_value.scss +200 -0
  297. data/vendor/assets/scss/vendor/normalize.scss +281 -0
  298. data/vendor/assets/scss/xy-grid/_cell.scss +272 -0
  299. data/vendor/assets/scss/xy-grid/_classes.scss +493 -0
  300. data/vendor/assets/scss/xy-grid/_collapse.scss +75 -0
  301. data/vendor/assets/scss/xy-grid/_frame.scss +86 -0
  302. data/vendor/assets/scss/xy-grid/_grid.scss +37 -0
  303. data/vendor/assets/scss/xy-grid/_gutters.scss +45 -0
  304. data/vendor/assets/scss/xy-grid/_layout.scss +36 -0
  305. data/vendor/assets/scss/xy-grid/_position.scss +55 -0
  306. data/vendor/assets/scss/xy-grid/_xy-grid.scss +51 -0
  307. metadata +342 -83
  308. data/update-gem.sh +0 -20
  309. data/vendor/assets/javascripts/foundation/foundation.abide.js +0 -426
  310. data/vendor/assets/javascripts/foundation/foundation.accordion.js +0 -125
  311. data/vendor/assets/javascripts/foundation/foundation.alert.js +0 -43
  312. data/vendor/assets/javascripts/foundation/foundation.clearing.js +0 -586
  313. data/vendor/assets/javascripts/foundation/foundation.dropdown.js +0 -468
  314. data/vendor/assets/javascripts/foundation/foundation.equalizer.js +0 -104
  315. data/vendor/assets/javascripts/foundation/foundation.interchange.js +0 -360
  316. data/vendor/assets/javascripts/foundation/foundation.joyride.js +0 -935
  317. data/vendor/assets/javascripts/foundation/foundation.js +0 -732
  318. data/vendor/assets/javascripts/foundation/foundation.magellan.js +0 -214
  319. data/vendor/assets/javascripts/foundation/foundation.offcanvas.js +0 -225
  320. data/vendor/assets/javascripts/foundation/foundation.orbit.js +0 -476
  321. data/vendor/assets/javascripts/foundation/foundation.reveal.js +0 -522
  322. data/vendor/assets/javascripts/foundation/foundation.slider.js +0 -296
  323. data/vendor/assets/javascripts/foundation/foundation.tab.js +0 -247
  324. data/vendor/assets/javascripts/foundation/foundation.tooltip.js +0 -348
  325. data/vendor/assets/javascripts/foundation/foundation.topbar.js +0 -458
  326. data/vendor/assets/javascripts/foundation.js +0 -17
  327. data/vendor/assets/javascripts/vendor/modernizr.js +0 -1406
  328. data/vendor/assets/stylesheets/foundation/_functions.scss +0 -156
  329. data/vendor/assets/stylesheets/foundation/_settings.scss +0 -1489
  330. data/vendor/assets/stylesheets/foundation/components/_accordion.scss +0 -161
  331. data/vendor/assets/stylesheets/foundation/components/_alert-boxes.scss +0 -128
  332. data/vendor/assets/stylesheets/foundation/components/_block-grid.scss +0 -133
  333. data/vendor/assets/stylesheets/foundation/components/_breadcrumbs.scss +0 -132
  334. data/vendor/assets/stylesheets/foundation/components/_button-groups.scss +0 -208
  335. data/vendor/assets/stylesheets/foundation/components/_buttons.scss +0 -261
  336. data/vendor/assets/stylesheets/foundation/components/_clearing.scss +0 -260
  337. data/vendor/assets/stylesheets/foundation/components/_dropdown-buttons.scss +0 -130
  338. data/vendor/assets/stylesheets/foundation/components/_dropdown.scss +0 -269
  339. data/vendor/assets/stylesheets/foundation/components/_flex-video.scss +0 -51
  340. data/vendor/assets/stylesheets/foundation/components/_forms.scss +0 -607
  341. data/vendor/assets/stylesheets/foundation/components/_global.scss +0 -566
  342. data/vendor/assets/stylesheets/foundation/components/_grid.scss +0 -292
  343. data/vendor/assets/stylesheets/foundation/components/_icon-bar.scss +0 -460
  344. data/vendor/assets/stylesheets/foundation/components/_inline-lists.scss +0 -58
  345. data/vendor/assets/stylesheets/foundation/components/_joyride.scss +0 -220
  346. data/vendor/assets/stylesheets/foundation/components/_keystrokes.scss +0 -60
  347. data/vendor/assets/stylesheets/foundation/components/_labels.scss +0 -106
  348. data/vendor/assets/stylesheets/foundation/components/_magellan.scss +0 -34
  349. data/vendor/assets/stylesheets/foundation/components/_offcanvas.scss +0 -606
  350. data/vendor/assets/stylesheets/foundation/components/_orbit.scss +0 -388
  351. data/vendor/assets/stylesheets/foundation/components/_pagination.scss +0 -163
  352. data/vendor/assets/stylesheets/foundation/components/_panels.scss +0 -107
  353. data/vendor/assets/stylesheets/foundation/components/_pricing-tables.scss +0 -150
  354. data/vendor/assets/stylesheets/foundation/components/_progress-bars.scss +0 -85
  355. data/vendor/assets/stylesheets/foundation/components/_range-slider.scss +0 -177
  356. data/vendor/assets/stylesheets/foundation/components/_reveal.scss +0 -212
  357. data/vendor/assets/stylesheets/foundation/components/_side-nav.scss +0 -120
  358. data/vendor/assets/stylesheets/foundation/components/_split-buttons.scss +0 -203
  359. data/vendor/assets/stylesheets/foundation/components/_sub-nav.scss +0 -125
  360. data/vendor/assets/stylesheets/foundation/components/_switches.scss +0 -241
  361. data/vendor/assets/stylesheets/foundation/components/_tables.scss +0 -135
  362. data/vendor/assets/stylesheets/foundation/components/_tabs.scss +0 -142
  363. data/vendor/assets/stylesheets/foundation/components/_thumbs.scss +0 -66
  364. data/vendor/assets/stylesheets/foundation/components/_tooltips.scss +0 -142
  365. data/vendor/assets/stylesheets/foundation/components/_top-bar.scss +0 -745
  366. data/vendor/assets/stylesheets/foundation/components/_type.scss +0 -525
  367. data/vendor/assets/stylesheets/foundation/components/_visibility.scss +0 -425
  368. data/vendor/assets/stylesheets/foundation.scss +0 -42
  369. data/vendor/assets/stylesheets/normalize.scss +0 -424
@@ -0,0 +1,1142 @@
1
+ (function webpackUniversalModuleDefinition(root, factory) {
2
+ if(typeof exports === 'object' && typeof module === 'object')
3
+ module.exports = factory(require("./foundation.core"), require("jquery"));
4
+ else if(typeof define === 'function' && define.amd)
5
+ define(["./foundation.core", "jquery"], factory);
6
+ else if(typeof exports === 'object')
7
+ exports["foundation.abide"] = factory(require("./foundation.core"), require("jquery"));
8
+ else
9
+ root["__FOUNDATION_EXTERNAL__"] = root["__FOUNDATION_EXTERNAL__"] || {}, root["__FOUNDATION_EXTERNAL__"]["foundation.abide"] = factory(root["__FOUNDATION_EXTERNAL__"]["foundation.core"], root["jQuery"]);
10
+ })(window, function(__WEBPACK_EXTERNAL_MODULE__foundation_core__, __WEBPACK_EXTERNAL_MODULE_jquery__) {
11
+ return /******/ (function(modules) { // webpackBootstrap
12
+ /******/ // The module cache
13
+ /******/ var installedModules = {};
14
+ /******/
15
+ /******/ // The require function
16
+ /******/ function __webpack_require__(moduleId) {
17
+ /******/
18
+ /******/ // Check if module is in cache
19
+ /******/ if(installedModules[moduleId]) {
20
+ /******/ return installedModules[moduleId].exports;
21
+ /******/ }
22
+ /******/ // Create a new module (and put it into the cache)
23
+ /******/ var module = installedModules[moduleId] = {
24
+ /******/ i: moduleId,
25
+ /******/ l: false,
26
+ /******/ exports: {}
27
+ /******/ };
28
+ /******/
29
+ /******/ // Execute the module function
30
+ /******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__);
31
+ /******/
32
+ /******/ // Flag the module as loaded
33
+ /******/ module.l = true;
34
+ /******/
35
+ /******/ // Return the exports of the module
36
+ /******/ return module.exports;
37
+ /******/ }
38
+ /******/
39
+ /******/
40
+ /******/ // expose the modules object (__webpack_modules__)
41
+ /******/ __webpack_require__.m = modules;
42
+ /******/
43
+ /******/ // expose the module cache
44
+ /******/ __webpack_require__.c = installedModules;
45
+ /******/
46
+ /******/ // define getter function for harmony exports
47
+ /******/ __webpack_require__.d = function(exports, name, getter) {
48
+ /******/ if(!__webpack_require__.o(exports, name)) {
49
+ /******/ Object.defineProperty(exports, name, { enumerable: true, get: getter });
50
+ /******/ }
51
+ /******/ };
52
+ /******/
53
+ /******/ // define __esModule on exports
54
+ /******/ __webpack_require__.r = function(exports) {
55
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
56
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
57
+ /******/ }
58
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
59
+ /******/ };
60
+ /******/
61
+ /******/ // create a fake namespace object
62
+ /******/ // mode & 1: value is a module id, require it
63
+ /******/ // mode & 2: merge all properties of value into the ns
64
+ /******/ // mode & 4: return value when already ns object
65
+ /******/ // mode & 8|1: behave like require
66
+ /******/ __webpack_require__.t = function(value, mode) {
67
+ /******/ if(mode & 1) value = __webpack_require__(value);
68
+ /******/ if(mode & 8) return value;
69
+ /******/ if((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;
70
+ /******/ var ns = Object.create(null);
71
+ /******/ __webpack_require__.r(ns);
72
+ /******/ Object.defineProperty(ns, 'default', { enumerable: true, value: value });
73
+ /******/ if(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));
74
+ /******/ return ns;
75
+ /******/ };
76
+ /******/
77
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
78
+ /******/ __webpack_require__.n = function(module) {
79
+ /******/ var getter = module && module.__esModule ?
80
+ /******/ function getDefault() { return module['default']; } :
81
+ /******/ function getModuleExports() { return module; };
82
+ /******/ __webpack_require__.d(getter, 'a', getter);
83
+ /******/ return getter;
84
+ /******/ };
85
+ /******/
86
+ /******/ // Object.prototype.hasOwnProperty.call
87
+ /******/ __webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };
88
+ /******/
89
+ /******/ // __webpack_public_path__
90
+ /******/ __webpack_require__.p = "";
91
+ /******/
92
+ /******/
93
+ /******/ // Load entry module and return exports
94
+ /******/ return __webpack_require__(__webpack_require__.s = 0);
95
+ /******/ })
96
+ /************************************************************************/
97
+ /******/ ({
98
+
99
+ /***/ "./foundation.core":
100
+ /*!****************************************************************************************************************************************************************!*\
101
+ !*** external {"root":["__FOUNDATION_EXTERNAL__","foundation.core"],"amd":"./foundation.core","commonjs":"./foundation.core","commonjs2":"./foundation.core"} ***!
102
+ \****************************************************************************************************************************************************************/
103
+ /*! no static exports found */
104
+ /***/ (function(module, exports) {
105
+
106
+ module.exports = __WEBPACK_EXTERNAL_MODULE__foundation_core__;
107
+
108
+ /***/ }),
109
+
110
+ /***/ "./js/entries/plugins/foundation.abide.js":
111
+ /*!************************************************!*\
112
+ !*** ./js/entries/plugins/foundation.abide.js ***!
113
+ \************************************************/
114
+ /*! exports provided: Foundation, Abide */
115
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
116
+
117
+ "use strict";
118
+ __webpack_require__.r(__webpack_exports__);
119
+ /* harmony import */ var _foundation_core__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ./foundation.core */ "./foundation.core");
120
+ /* harmony import */ var _foundation_core__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_foundation_core__WEBPACK_IMPORTED_MODULE_0__);
121
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Foundation", function() { return _foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"]; });
122
+
123
+ /* harmony import */ var _foundation_abide__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../../foundation.abide */ "./js/foundation.abide.js");
124
+ /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "Abide", function() { return _foundation_abide__WEBPACK_IMPORTED_MODULE_1__["Abide"]; });
125
+
126
+
127
+
128
+ _foundation_core__WEBPACK_IMPORTED_MODULE_0__["Foundation"].plugin(_foundation_abide__WEBPACK_IMPORTED_MODULE_1__["Abide"], 'Abide');
129
+
130
+
131
+ /***/ }),
132
+
133
+ /***/ "./js/foundation.abide.js":
134
+ /*!********************************!*\
135
+ !*** ./js/foundation.abide.js ***!
136
+ \********************************/
137
+ /*! exports provided: Abide */
138
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
139
+
140
+ "use strict";
141
+ __webpack_require__.r(__webpack_exports__);
142
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "Abide", function() { return Abide; });
143
+ /* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! jquery */ "jquery");
144
+ /* harmony import */ var jquery__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(jquery__WEBPACK_IMPORTED_MODULE_0__);
145
+ /* harmony import */ var _foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./foundation.core.plugin */ "./foundation.core");
146
+ /* harmony import */ var _foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__);
147
+
148
+
149
+ function _typeof(obj) { if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
150
+
151
+ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
152
+
153
+ function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
154
+
155
+ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
156
+
157
+ function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } return _assertThisInitialized(self); }
158
+
159
+ function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
160
+
161
+ function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
162
+
163
+ function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); if (superClass) _setPrototypeOf(subClass, superClass); }
164
+
165
+ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
166
+
167
+
168
+
169
+
170
+ /**
171
+ * Abide module.
172
+ * @module foundation.abide
173
+ */
174
+
175
+ var Abide =
176
+ /*#__PURE__*/
177
+ function (_Plugin) {
178
+ _inherits(Abide, _Plugin);
179
+
180
+ function Abide() {
181
+ _classCallCheck(this, Abide);
182
+
183
+ return _possibleConstructorReturn(this, _getPrototypeOf(Abide).apply(this, arguments));
184
+ }
185
+
186
+ _createClass(Abide, [{
187
+ key: "_setup",
188
+
189
+ /**
190
+ * Creates a new instance of Abide.
191
+ * @class
192
+ * @name Abide
193
+ * @fires Abide#init
194
+ * @param {Object} element - jQuery object to add the trigger to.
195
+ * @param {Object} options - Overrides to the default plugin settings.
196
+ */
197
+ value: function _setup(element) {
198
+ var options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
199
+ this.$element = element;
200
+ this.options = jquery__WEBPACK_IMPORTED_MODULE_0___default.a.extend(true, {}, Abide.defaults, this.$element.data(), options);
201
+ this.isEnabled = true;
202
+ this.formnovalidate = null;
203
+ this.className = 'Abide'; // ie9 back compat
204
+
205
+ this._init();
206
+ }
207
+ /**
208
+ * Initializes the Abide plugin and calls functions to get Abide functioning on load.
209
+ * @private
210
+ */
211
+
212
+ }, {
213
+ key: "_init",
214
+ value: function _init() {
215
+ var _this2 = this;
216
+
217
+ this.$inputs = jquery__WEBPACK_IMPORTED_MODULE_0___default.a.merge( // Consider as input to validate:
218
+ this.$element.find('input').not('[type="submit"]'), // * all input fields expect submit
219
+ this.$element.find('textarea, select') // * all textareas and select fields
220
+ );
221
+ this.$submits = this.$element.find('[type="submit"]');
222
+ var $globalErrors = this.$element.find('[data-abide-error]'); // Add a11y attributes to all fields
223
+
224
+ if (this.options.a11yAttributes) {
225
+ this.$inputs.each(function (i, input) {
226
+ return _this2.addA11yAttributes(jquery__WEBPACK_IMPORTED_MODULE_0___default()(input));
227
+ });
228
+ $globalErrors.each(function (i, error) {
229
+ return _this2.addGlobalErrorA11yAttributes(jquery__WEBPACK_IMPORTED_MODULE_0___default()(error));
230
+ });
231
+ }
232
+
233
+ this._events();
234
+ }
235
+ /**
236
+ * Initializes events for Abide.
237
+ * @private
238
+ */
239
+
240
+ }, {
241
+ key: "_events",
242
+ value: function _events() {
243
+ var _this3 = this;
244
+
245
+ this.$element.off('.abide').on('reset.zf.abide', function () {
246
+ _this3.resetForm();
247
+ }).on('submit.zf.abide', function () {
248
+ return _this3.validateForm();
249
+ });
250
+ this.$submits.off('click.zf.abide keydown.zf.abide').on('click.zf.abide keydown.zf.abide', function (e) {
251
+ if (!e.key || e.key === ' ' || e.key === 'Enter') {
252
+ e.preventDefault();
253
+ _this3.formnovalidate = e.target.getAttribute('formnovalidate') !== null;
254
+
255
+ _this3.$element.submit();
256
+ }
257
+ });
258
+
259
+ if (this.options.validateOn === 'fieldChange') {
260
+ this.$inputs.off('change.zf.abide').on('change.zf.abide', function (e) {
261
+ _this3.validateInput(jquery__WEBPACK_IMPORTED_MODULE_0___default()(e.target));
262
+ });
263
+ }
264
+
265
+ if (this.options.liveValidate) {
266
+ this.$inputs.off('input.zf.abide').on('input.zf.abide', function (e) {
267
+ _this3.validateInput(jquery__WEBPACK_IMPORTED_MODULE_0___default()(e.target));
268
+ });
269
+ }
270
+
271
+ if (this.options.validateOnBlur) {
272
+ this.$inputs.off('blur.zf.abide').on('blur.zf.abide', function (e) {
273
+ _this3.validateInput(jquery__WEBPACK_IMPORTED_MODULE_0___default()(e.target));
274
+ });
275
+ }
276
+ }
277
+ /**
278
+ * Calls necessary functions to update Abide upon DOM change
279
+ * @private
280
+ */
281
+
282
+ }, {
283
+ key: "_reflow",
284
+ value: function _reflow() {
285
+ this._init();
286
+ }
287
+ /**
288
+ * Checks whether the submitted form should be validated or not, consodering formnovalidate and isEnabled
289
+ * @returns {Boolean}
290
+ * @private
291
+ */
292
+
293
+ }, {
294
+ key: "_validationIsDisabled",
295
+ value: function _validationIsDisabled() {
296
+ if (this.isEnabled === false) {
297
+ // whole validation disabled
298
+ return true;
299
+ } else if (typeof this.formnovalidate === 'boolean') {
300
+ // triggered by $submit
301
+ return this.formnovalidate;
302
+ } // triggered by Enter in non-submit input
303
+
304
+
305
+ return this.$submits.length ? this.$submits[0].getAttribute('formnovalidate') !== null : false;
306
+ }
307
+ /**
308
+ * Enables the whole validation
309
+ */
310
+
311
+ }, {
312
+ key: "enableValidation",
313
+ value: function enableValidation() {
314
+ this.isEnabled = true;
315
+ }
316
+ /**
317
+ * Disables the whole validation
318
+ */
319
+
320
+ }, {
321
+ key: "disableValidation",
322
+ value: function disableValidation() {
323
+ this.isEnabled = false;
324
+ }
325
+ /**
326
+ * Checks whether or not a form element has the required attribute and if it's checked or not
327
+ * @param {Object} element - jQuery object to check for required attribute
328
+ * @returns {Boolean} Boolean value depends on whether or not attribute is checked or empty
329
+ */
330
+
331
+ }, {
332
+ key: "requiredCheck",
333
+ value: function requiredCheck($el) {
334
+ if (!$el.attr('required')) return true;
335
+ var isGood = true;
336
+
337
+ switch ($el[0].type) {
338
+ case 'checkbox':
339
+ isGood = $el[0].checked;
340
+ break;
341
+
342
+ case 'select':
343
+ case 'select-one':
344
+ case 'select-multiple':
345
+ var opt = $el.find('option:selected');
346
+ if (!opt.length || !opt.val()) isGood = false;
347
+ break;
348
+
349
+ default:
350
+ if (!$el.val() || !$el.val().length) isGood = false;
351
+ }
352
+
353
+ return isGood;
354
+ }
355
+ /**
356
+ * Get:
357
+ * - Based on $el, the first element(s) corresponding to `formErrorSelector` in this order:
358
+ * 1. The element's direct sibling('s).
359
+ * 2. The element's parent's children.
360
+ * - Element(s) with the attribute `[data-form-error-for]` set with the element's id.
361
+ *
362
+ * This allows for multiple form errors per input, though if none are found, no form errors will be shown.
363
+ *
364
+ * @param {Object} $el - jQuery object to use as reference to find the form error selector.
365
+ * @param {String[]} [failedValidators] - List of failed validators.
366
+ * @returns {Object} jQuery object with the selector.
367
+ */
368
+
369
+ }, {
370
+ key: "findFormError",
371
+ value: function findFormError($el, failedValidators) {
372
+ var _this4 = this;
373
+
374
+ var id = $el.length ? $el[0].id : '';
375
+ var $error = $el.siblings(this.options.formErrorSelector);
376
+
377
+ if (!$error.length) {
378
+ $error = $el.parent().find(this.options.formErrorSelector);
379
+ }
380
+
381
+ if (id) {
382
+ $error = $error.add(this.$element.find("[data-form-error-for=\"".concat(id, "\"]")));
383
+ }
384
+
385
+ if (!!failedValidators) {
386
+ $error = $error.not('[data-form-error-on]');
387
+ failedValidators.forEach(function (v) {
388
+ $error = $error.add($el.siblings("[data-form-error-on=\"".concat(v, "\"]")));
389
+ $error = $error.add(_this4.$element.find("[data-form-error-for=\"".concat(id, "\"][data-form-error-on=\"").concat(v, "\"]")));
390
+ });
391
+ }
392
+
393
+ return $error;
394
+ }
395
+ /**
396
+ * Get the first element in this order:
397
+ * 2. The <label> with the attribute `[for="someInputId"]`
398
+ * 3. The `.closest()` <label>
399
+ *
400
+ * @param {Object} $el - jQuery object to check for required attribute
401
+ * @returns {Boolean} Boolean value depends on whether or not attribute is checked or empty
402
+ */
403
+
404
+ }, {
405
+ key: "findLabel",
406
+ value: function findLabel($el) {
407
+ var id = $el[0].id;
408
+ var $label = this.$element.find("label[for=\"".concat(id, "\"]"));
409
+
410
+ if (!$label.length) {
411
+ return $el.closest('label');
412
+ }
413
+
414
+ return $label;
415
+ }
416
+ /**
417
+ * Get the set of labels associated with a set of radio els in this order
418
+ * 2. The <label> with the attribute `[for="someInputId"]`
419
+ * 3. The `.closest()` <label>
420
+ *
421
+ * @param {Object} $el - jQuery object to check for required attribute
422
+ * @returns {Boolean} Boolean value depends on whether or not attribute is checked or empty
423
+ */
424
+
425
+ }, {
426
+ key: "findRadioLabels",
427
+ value: function findRadioLabels($els) {
428
+ var _this5 = this;
429
+
430
+ var labels = $els.map(function (i, el) {
431
+ var id = el.id;
432
+
433
+ var $label = _this5.$element.find("label[for=\"".concat(id, "\"]"));
434
+
435
+ if (!$label.length) {
436
+ $label = jquery__WEBPACK_IMPORTED_MODULE_0___default()(el).closest('label');
437
+ }
438
+
439
+ return $label[0];
440
+ });
441
+ return jquery__WEBPACK_IMPORTED_MODULE_0___default()(labels);
442
+ }
443
+ /**
444
+ * Get the set of labels associated with a set of checkbox els in this order
445
+ * 2. The <label> with the attribute `[for="someInputId"]`
446
+ * 3. The `.closest()` <label>
447
+ *
448
+ * @param {Object} $el - jQuery object to check for required attribute
449
+ * @returns {Boolean} Boolean value depends on whether or not attribute is checked or empty
450
+ */
451
+
452
+ }, {
453
+ key: "findCheckboxLabels",
454
+ value: function findCheckboxLabels($els) {
455
+ var _this6 = this;
456
+
457
+ var labels = $els.map(function (i, el) {
458
+ var id = el.id;
459
+
460
+ var $label = _this6.$element.find("label[for=\"".concat(id, "\"]"));
461
+
462
+ if (!$label.length) {
463
+ $label = jquery__WEBPACK_IMPORTED_MODULE_0___default()(el).closest('label');
464
+ }
465
+
466
+ return $label[0];
467
+ });
468
+ return jquery__WEBPACK_IMPORTED_MODULE_0___default()(labels);
469
+ }
470
+ /**
471
+ * Adds the CSS error class as specified by the Abide settings to the label, input, and the form
472
+ * @param {Object} $el - jQuery object to add the class to
473
+ * @param {String[]} [failedValidators] - List of failed validators.
474
+ */
475
+
476
+ }, {
477
+ key: "addErrorClasses",
478
+ value: function addErrorClasses($el, failedValidators) {
479
+ var $label = this.findLabel($el);
480
+ var $formError = this.findFormError($el, failedValidators);
481
+
482
+ if ($label.length) {
483
+ $label.addClass(this.options.labelErrorClass);
484
+ }
485
+
486
+ if ($formError.length) {
487
+ $formError.addClass(this.options.formErrorClass);
488
+ }
489
+
490
+ $el.addClass(this.options.inputErrorClass).attr({
491
+ 'data-invalid': '',
492
+ 'aria-invalid': true
493
+ });
494
+ }
495
+ /**
496
+ * Adds [for] and [role=alert] attributes to all form error targetting $el,
497
+ * and [aria-describedby] attribute to $el toward the first form error.
498
+ * @param {Object} $el - jQuery object
499
+ */
500
+
501
+ }, {
502
+ key: "addA11yAttributes",
503
+ value: function addA11yAttributes($el) {
504
+ var $errors = this.findFormError($el);
505
+ var $labels = $errors.filter('label');
506
+ var $error = $errors.first();
507
+ if (!$errors.length) return; // Set [aria-describedby] on the input toward the first form error if it is not set
508
+
509
+ if (typeof $el.attr('aria-describedby') === 'undefined') {
510
+ // Get the first error ID or create one
511
+ var errorId = $error.attr('id');
512
+
513
+ if (typeof errorId === 'undefined') {
514
+ errorId = Object(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__["GetYoDigits"])(6, 'abide-error');
515
+ $error.attr('id', errorId);
516
+ }
517
+
518
+ $el.attr('aria-describedby', errorId);
519
+ }
520
+
521
+ if ($labels.filter('[for]').length < $labels.length) {
522
+ // Get the input ID or create one
523
+ var elemId = $el.attr('id');
524
+
525
+ if (typeof elemId === 'undefined') {
526
+ elemId = Object(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__["GetYoDigits"])(6, 'abide-input');
527
+ $el.attr('id', elemId);
528
+ } // For each label targeting $el, set [for] if it is not set.
529
+
530
+
531
+ $labels.each(function (i, label) {
532
+ var $label = jquery__WEBPACK_IMPORTED_MODULE_0___default()(label);
533
+ if (typeof $label.attr('for') === 'undefined') $label.attr('for', elemId);
534
+ });
535
+ } // For each error targeting $el, set [role=alert] if it is not set.
536
+
537
+
538
+ $errors.each(function (i, label) {
539
+ var $label = jquery__WEBPACK_IMPORTED_MODULE_0___default()(label);
540
+ if (typeof $label.attr('role') === 'undefined') $label.attr('role', 'alert');
541
+ }).end();
542
+ }
543
+ /**
544
+ * Adds [aria-live] attribute to the given global form error $el.
545
+ * @param {Object} $el - jQuery object to add the attribute to
546
+ */
547
+
548
+ }, {
549
+ key: "addGlobalErrorA11yAttributes",
550
+ value: function addGlobalErrorA11yAttributes($el) {
551
+ if (typeof $el.attr('aria-live') === 'undefined') $el.attr('aria-live', this.options.a11yErrorLevel);
552
+ }
553
+ /**
554
+ * Remove CSS error classes etc from an entire radio button group
555
+ * @param {String} groupName - A string that specifies the name of a radio button group
556
+ *
557
+ */
558
+
559
+ }, {
560
+ key: "removeRadioErrorClasses",
561
+ value: function removeRadioErrorClasses(groupName) {
562
+ var $els = this.$element.find(":radio[name=\"".concat(groupName, "\"]"));
563
+ var $labels = this.findRadioLabels($els);
564
+ var $formErrors = this.findFormError($els);
565
+
566
+ if ($labels.length) {
567
+ $labels.removeClass(this.options.labelErrorClass);
568
+ }
569
+
570
+ if ($formErrors.length) {
571
+ $formErrors.removeClass(this.options.formErrorClass);
572
+ }
573
+
574
+ $els.removeClass(this.options.inputErrorClass).attr({
575
+ 'data-invalid': null,
576
+ 'aria-invalid': null
577
+ });
578
+ }
579
+ /**
580
+ * Remove CSS error classes etc from an entire checkbox group
581
+ * @param {String} groupName - A string that specifies the name of a checkbox group
582
+ *
583
+ */
584
+
585
+ }, {
586
+ key: "removeCheckboxErrorClasses",
587
+ value: function removeCheckboxErrorClasses(groupName) {
588
+ var $els = this.$element.find(":checkbox[name=\"".concat(groupName, "\"]"));
589
+ var $labels = this.findCheckboxLabels($els);
590
+ var $formErrors = this.findFormError($els);
591
+
592
+ if ($labels.length) {
593
+ $labels.removeClass(this.options.labelErrorClass);
594
+ }
595
+
596
+ if ($formErrors.length) {
597
+ $formErrors.removeClass(this.options.formErrorClass);
598
+ }
599
+
600
+ $els.removeClass(this.options.inputErrorClass).attr({
601
+ 'data-invalid': null,
602
+ 'aria-invalid': null
603
+ });
604
+ }
605
+ /**
606
+ * Removes CSS error class as specified by the Abide settings from the label, input, and the form
607
+ * @param {Object} $el - jQuery object to remove the class from
608
+ */
609
+
610
+ }, {
611
+ key: "removeErrorClasses",
612
+ value: function removeErrorClasses($el) {
613
+ // radios need to clear all of the els
614
+ if ($el[0].type == 'radio') {
615
+ return this.removeRadioErrorClasses($el.attr('name'));
616
+ } // checkboxes need to clear all of the els
617
+ else if ($el[0].type == 'checkbox') {
618
+ return this.removeCheckboxErrorClasses($el.attr('name'));
619
+ }
620
+
621
+ var $label = this.findLabel($el);
622
+ var $formError = this.findFormError($el);
623
+
624
+ if ($label.length) {
625
+ $label.removeClass(this.options.labelErrorClass);
626
+ }
627
+
628
+ if ($formError.length) {
629
+ $formError.removeClass(this.options.formErrorClass);
630
+ }
631
+
632
+ $el.removeClass(this.options.inputErrorClass).attr({
633
+ 'data-invalid': null,
634
+ 'aria-invalid': null
635
+ });
636
+ }
637
+ /**
638
+ * Goes through a form to find inputs and proceeds to validate them in ways specific to their type.
639
+ * Ignores inputs with data-abide-ignore, type="hidden" or disabled attributes set
640
+ * @fires Abide#invalid
641
+ * @fires Abide#valid
642
+ * @param {Object} element - jQuery object to validate, should be an HTML input
643
+ * @returns {Boolean} goodToGo - If the input is valid or not.
644
+ */
645
+
646
+ }, {
647
+ key: "validateInput",
648
+ value: function validateInput($el) {
649
+ var _this7 = this;
650
+
651
+ var clearRequire = this.requiredCheck($el),
652
+ validator = $el.attr('data-validator'),
653
+ failedValidators = [],
654
+ manageErrorClasses = true; // skip validation if disabled
655
+
656
+ if (this._validationIsDisabled()) {
657
+ return true;
658
+ } // don't validate ignored inputs or hidden inputs or disabled inputs
659
+
660
+
661
+ if ($el.is('[data-abide-ignore]') || $el.is('[type="hidden"]') || $el.is('[disabled]')) {
662
+ return true;
663
+ }
664
+
665
+ switch ($el[0].type) {
666
+ case 'radio':
667
+ this.validateRadio($el.attr('name')) || failedValidators.push('required');
668
+ break;
669
+
670
+ case 'checkbox':
671
+ this.validateCheckbox($el.attr('name')) || failedValidators.push('required'); // validateCheckbox() adds/removes error classes
672
+
673
+ manageErrorClasses = false;
674
+ break;
675
+
676
+ case 'select':
677
+ case 'select-one':
678
+ case 'select-multiple':
679
+ clearRequire || failedValidators.push('required');
680
+ break;
681
+
682
+ default:
683
+ clearRequire || failedValidators.push('required');
684
+ this.validateText($el) || failedValidators.push('pattern');
685
+ }
686
+
687
+ if (validator) {
688
+ var required = $el.attr('required') ? true : false;
689
+ validator.split(' ').forEach(function (v) {
690
+ _this7.options.validators[v]($el, required, $el.parent()) || failedValidators.push(v);
691
+ });
692
+ }
693
+
694
+ if ($el.attr('data-equalto')) {
695
+ this.options.validators.equalTo($el) || failedValidators.push('equalTo');
696
+ }
697
+
698
+ var goodToGo = failedValidators.length === 0;
699
+ var message = (goodToGo ? 'valid' : 'invalid') + '.zf.abide';
700
+
701
+ if (goodToGo) {
702
+ // Re-validate inputs that depend on this one with equalto
703
+ var dependentElements = this.$element.find("[data-equalto=\"".concat($el.attr('id'), "\"]"));
704
+
705
+ if (dependentElements.length) {
706
+ var _this = this;
707
+
708
+ dependentElements.each(function () {
709
+ if (jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).val()) {
710
+ _this.validateInput(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this));
711
+ }
712
+ });
713
+ }
714
+ }
715
+
716
+ if (manageErrorClasses) {
717
+ this.removeErrorClasses($el);
718
+
719
+ if (!goodToGo) {
720
+ this.addErrorClasses($el, failedValidators);
721
+ }
722
+ }
723
+ /**
724
+ * Fires when the input is done checking for validation. Event trigger is either `valid.zf.abide` or `invalid.zf.abide`
725
+ * Trigger includes the DOM element of the input.
726
+ * @event Abide#valid
727
+ * @event Abide#invalid
728
+ */
729
+
730
+
731
+ $el.trigger(message, [$el]);
732
+ return goodToGo;
733
+ }
734
+ /**
735
+ * Goes through a form and if there are any invalid inputs, it will display the form error element
736
+ * @returns {Boolean} noError - true if no errors were detected...
737
+ * @fires Abide#formvalid
738
+ * @fires Abide#forminvalid
739
+ */
740
+
741
+ }, {
742
+ key: "validateForm",
743
+ value: function validateForm() {
744
+ var _this8 = this;
745
+
746
+ var acc = [];
747
+
748
+ var _this = this;
749
+
750
+ var checkboxGroupName; // Remember first form submission to prevent specific checkbox validation (more than one required) until form got initially submitted
751
+
752
+ if (!this.initialized) {
753
+ this.initialized = true;
754
+ } // skip validation if disabled
755
+
756
+
757
+ if (this._validationIsDisabled()) {
758
+ this.formnovalidate = null;
759
+ return true;
760
+ }
761
+
762
+ this.$inputs.each(function () {
763
+ // Only use one checkbox per group since validateCheckbox() iterates over all associated checkboxes
764
+ if (jquery__WEBPACK_IMPORTED_MODULE_0___default()(this)[0].type === 'checkbox') {
765
+ if (jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).attr('name') === checkboxGroupName) return true;
766
+ checkboxGroupName = jquery__WEBPACK_IMPORTED_MODULE_0___default()(this).attr('name');
767
+ }
768
+
769
+ acc.push(_this.validateInput(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this)));
770
+ });
771
+ var noError = acc.indexOf(false) === -1;
772
+ this.$element.find('[data-abide-error]').each(function (i, elem) {
773
+ var $elem = jquery__WEBPACK_IMPORTED_MODULE_0___default()(elem); // Ensure a11y attributes are set
774
+
775
+ if (_this8.options.a11yAttributes) _this8.addGlobalErrorA11yAttributes($elem); // Show or hide the error
776
+
777
+ $elem.css('display', noError ? 'none' : 'block');
778
+ });
779
+ /**
780
+ * Fires when the form is finished validating. Event trigger is either `formvalid.zf.abide` or `forminvalid.zf.abide`.
781
+ * Trigger includes the element of the form.
782
+ * @event Abide#formvalid
783
+ * @event Abide#forminvalid
784
+ */
785
+
786
+ this.$element.trigger((noError ? 'formvalid' : 'forminvalid') + '.zf.abide', [this.$element]);
787
+ return noError;
788
+ }
789
+ /**
790
+ * Determines whether or a not a text input is valid based on the pattern specified in the attribute. If no matching pattern is found, returns true.
791
+ * @param {Object} $el - jQuery object to validate, should be a text input HTML element
792
+ * @param {String} pattern - string value of one of the RegEx patterns in Abide.options.patterns
793
+ * @returns {Boolean} Boolean value depends on whether or not the input value matches the pattern specified
794
+ */
795
+
796
+ }, {
797
+ key: "validateText",
798
+ value: function validateText($el, pattern) {
799
+ // A pattern can be passed to this function, or it will be infered from the input's "pattern" attribute, or it's "type" attribute
800
+ pattern = pattern || $el.attr('data-pattern') || $el.attr('pattern') || $el.attr('type');
801
+ var inputText = $el.val();
802
+ var valid = true;
803
+
804
+ if (inputText.length) {
805
+ // If the pattern attribute on the element is in Abide's list of patterns, then test that regexp
806
+ if (this.options.patterns.hasOwnProperty(pattern)) {
807
+ valid = this.options.patterns[pattern].test(inputText);
808
+ } // If the pattern name isn't also the type attribute of the field, then test it as a regexp
809
+ else if (pattern !== $el.attr('type')) {
810
+ valid = new RegExp(pattern).test(inputText);
811
+ }
812
+ }
813
+
814
+ return valid;
815
+ }
816
+ /**
817
+ * Determines whether or a not a radio input is valid based on whether or not it is required and selected. Although the function targets a single `<input>`, it validates by checking the `required` and `checked` properties of all radio buttons in its group.
818
+ * @param {String} groupName - A string that specifies the name of a radio button group
819
+ * @returns {Boolean} Boolean value depends on whether or not at least one radio input has been selected (if it's required)
820
+ */
821
+
822
+ }, {
823
+ key: "validateRadio",
824
+ value: function validateRadio(groupName) {
825
+ // If at least one radio in the group has the `required` attribute, the group is considered required
826
+ // Per W3C spec, all radio buttons in a group should have `required`, but we're being nice
827
+ var $group = this.$element.find(":radio[name=\"".concat(groupName, "\"]"));
828
+ var valid = false,
829
+ required = false; // For the group to be required, at least one radio needs to be required
830
+
831
+ $group.each(function (i, e) {
832
+ if (jquery__WEBPACK_IMPORTED_MODULE_0___default()(e).attr('required')) {
833
+ required = true;
834
+ }
835
+ });
836
+ if (!required) valid = true;
837
+
838
+ if (!valid) {
839
+ // For the group to be valid, at least one radio needs to be checked
840
+ $group.each(function (i, e) {
841
+ if (jquery__WEBPACK_IMPORTED_MODULE_0___default()(e).prop('checked')) {
842
+ valid = true;
843
+ }
844
+ });
845
+ }
846
+
847
+ return valid;
848
+ }
849
+ /**
850
+ * Determines whether or a not a checkbox input is valid based on whether or not it is required and checked. Although the function targets a single `<input>`, it validates by checking the `required` and `checked` properties of all checkboxes in its group.
851
+ * @param {String} groupName - A string that specifies the name of a checkbox group
852
+ * @returns {Boolean} Boolean value depends on whether or not at least one checkbox input has been checked (if it's required)
853
+ */
854
+
855
+ }, {
856
+ key: "validateCheckbox",
857
+ value: function validateCheckbox(groupName) {
858
+ var _this9 = this;
859
+
860
+ // If at least one checkbox in the group has the `required` attribute, the group is considered required
861
+ // Per W3C spec, all checkboxes in a group should have `required`, but we're being nice
862
+ var $group = this.$element.find(":checkbox[name=\"".concat(groupName, "\"]"));
863
+ var valid = false,
864
+ required = false,
865
+ minRequired = 1,
866
+ checked = 0; // For the group to be required, at least one checkbox needs to be required
867
+
868
+ $group.each(function (i, e) {
869
+ if (jquery__WEBPACK_IMPORTED_MODULE_0___default()(e).attr('required')) {
870
+ required = true;
871
+ }
872
+ });
873
+ if (!required) valid = true;
874
+
875
+ if (!valid) {
876
+ // Count checked checkboxes within the group
877
+ // Use data-min-required if available (default: 1)
878
+ $group.each(function (i, e) {
879
+ if (jquery__WEBPACK_IMPORTED_MODULE_0___default()(e).prop('checked')) {
880
+ checked++;
881
+ }
882
+
883
+ if (typeof jquery__WEBPACK_IMPORTED_MODULE_0___default()(e).attr('data-min-required') !== 'undefined') {
884
+ minRequired = parseInt(jquery__WEBPACK_IMPORTED_MODULE_0___default()(e).attr('data-min-required'));
885
+ }
886
+ }); // For the group to be valid, the minRequired amount of checkboxes have to be checked
887
+
888
+ if (checked >= minRequired) {
889
+ valid = true;
890
+ }
891
+ } // Skip validation if more than 1 checkbox have to be checked AND if the form hasn't got submitted yet (otherwise it will already show an error during the first fill in)
892
+
893
+
894
+ if (this.initialized !== true && minRequired > 1) {
895
+ return true;
896
+ } // Refresh error class for all input
897
+
898
+
899
+ $group.each(function (i, e) {
900
+ if (!valid) {
901
+ _this9.addErrorClasses(jquery__WEBPACK_IMPORTED_MODULE_0___default()(e), ['required']);
902
+ } else {
903
+ _this9.removeErrorClasses(jquery__WEBPACK_IMPORTED_MODULE_0___default()(e));
904
+ }
905
+ });
906
+ return valid;
907
+ }
908
+ /**
909
+ * Determines if a selected input passes a custom validation function. Multiple validations can be used, if passed to the element with `data-validator="foo bar baz"` in a space separated listed.
910
+ * @param {Object} $el - jQuery input element.
911
+ * @param {String} validators - a string of function names matching functions in the Abide.options.validators object.
912
+ * @param {Boolean} required - self explanatory?
913
+ * @returns {Boolean} - true if validations passed.
914
+ */
915
+
916
+ }, {
917
+ key: "matchValidation",
918
+ value: function matchValidation($el, validators, required) {
919
+ var _this10 = this;
920
+
921
+ required = required ? true : false;
922
+ var clear = validators.split(' ').map(function (v) {
923
+ return _this10.options.validators[v]($el, required, $el.parent());
924
+ });
925
+ return clear.indexOf(false) === -1;
926
+ }
927
+ /**
928
+ * Resets form inputs and styles
929
+ * @fires Abide#formreset
930
+ */
931
+
932
+ }, {
933
+ key: "resetForm",
934
+ value: function resetForm() {
935
+ var $form = this.$element,
936
+ opts = this.options;
937
+ jquery__WEBPACK_IMPORTED_MODULE_0___default()(".".concat(opts.labelErrorClass), $form).not('small').removeClass(opts.labelErrorClass);
938
+ jquery__WEBPACK_IMPORTED_MODULE_0___default()(".".concat(opts.inputErrorClass), $form).not('small').removeClass(opts.inputErrorClass);
939
+ jquery__WEBPACK_IMPORTED_MODULE_0___default()("".concat(opts.formErrorSelector, ".").concat(opts.formErrorClass)).removeClass(opts.formErrorClass);
940
+ $form.find('[data-abide-error]').css('display', 'none');
941
+ jquery__WEBPACK_IMPORTED_MODULE_0___default()(':input', $form).not(':button, :submit, :reset, :hidden, :radio, :checkbox, [data-abide-ignore]').val('').attr({
942
+ 'data-invalid': null,
943
+ 'aria-invalid': null
944
+ });
945
+ jquery__WEBPACK_IMPORTED_MODULE_0___default()(':input:radio', $form).not('[data-abide-ignore]').prop('checked', false).attr({
946
+ 'data-invalid': null,
947
+ 'aria-invalid': null
948
+ });
949
+ jquery__WEBPACK_IMPORTED_MODULE_0___default()(':input:checkbox', $form).not('[data-abide-ignore]').prop('checked', false).attr({
950
+ 'data-invalid': null,
951
+ 'aria-invalid': null
952
+ });
953
+ /**
954
+ * Fires when the form has been reset.
955
+ * @event Abide#formreset
956
+ */
957
+
958
+ $form.trigger('formreset.zf.abide', [$form]);
959
+ }
960
+ /**
961
+ * Destroys an instance of Abide.
962
+ * Removes error styles and classes from elements, without resetting their values.
963
+ */
964
+
965
+ }, {
966
+ key: "_destroy",
967
+ value: function _destroy() {
968
+ var _this = this;
969
+
970
+ this.$element.off('.abide').find('[data-abide-error]').css('display', 'none');
971
+ this.$inputs.off('.abide').each(function () {
972
+ _this.removeErrorClasses(jquery__WEBPACK_IMPORTED_MODULE_0___default()(this));
973
+ });
974
+ this.$submits.off('.abide');
975
+ }
976
+ }]);
977
+
978
+ return Abide;
979
+ }(_foundation_core_plugin__WEBPACK_IMPORTED_MODULE_1__["Plugin"]);
980
+ /**
981
+ * Default settings for plugin
982
+ */
983
+
984
+
985
+ Abide.defaults = {
986
+ /**
987
+ * The default event to validate inputs. Checkboxes and radios validate immediately.
988
+ * Remove or change this value for manual validation.
989
+ * @option
990
+ * @type {?string}
991
+ * @default 'fieldChange'
992
+ */
993
+ validateOn: 'fieldChange',
994
+
995
+ /**
996
+ * Class to be applied to input labels on failed validation.
997
+ * @option
998
+ * @type {string}
999
+ * @default 'is-invalid-label'
1000
+ */
1001
+ labelErrorClass: 'is-invalid-label',
1002
+
1003
+ /**
1004
+ * Class to be applied to inputs on failed validation.
1005
+ * @option
1006
+ * @type {string}
1007
+ * @default 'is-invalid-input'
1008
+ */
1009
+ inputErrorClass: 'is-invalid-input',
1010
+
1011
+ /**
1012
+ * Class selector to use to target Form Errors for show/hide.
1013
+ * @option
1014
+ * @type {string}
1015
+ * @default '.form-error'
1016
+ */
1017
+ formErrorSelector: '.form-error',
1018
+
1019
+ /**
1020
+ * Class added to Form Errors on failed validation.
1021
+ * @option
1022
+ * @type {string}
1023
+ * @default 'is-visible'
1024
+ */
1025
+ formErrorClass: 'is-visible',
1026
+
1027
+ /**
1028
+ * If true, automatically insert when possible:
1029
+ * - `[aria-describedby]` on fields
1030
+ * - `[role=alert]` on form errors and `[for]` on form error labels
1031
+ * - `[aria-live]` on global errors `[data-abide-error]` (see option `a11yErrorLevel`).
1032
+ * @option
1033
+ * @type {boolean}
1034
+ * @default true
1035
+ */
1036
+ a11yAttributes: true,
1037
+
1038
+ /**
1039
+ * [aria-live] attribute value to be applied on global errors `[data-abide-error]`.
1040
+ * Options are: 'assertive', 'polite' and 'off'/null
1041
+ * @option
1042
+ * @see https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Live_Regions
1043
+ * @type {string}
1044
+ * @default 'assertive'
1045
+ */
1046
+ a11yErrorLevel: 'assertive',
1047
+
1048
+ /**
1049
+ * Set to true to validate text inputs on any value change.
1050
+ * @option
1051
+ * @type {boolean}
1052
+ * @default false
1053
+ */
1054
+ liveValidate: false,
1055
+
1056
+ /**
1057
+ * Set to true to validate inputs on blur.
1058
+ * @option
1059
+ * @type {boolean}
1060
+ * @default false
1061
+ */
1062
+ validateOnBlur: false,
1063
+ patterns: {
1064
+ alpha: /^[a-zA-Z]+$/,
1065
+ alpha_numeric: /^[a-zA-Z0-9]+$/,
1066
+ integer: /^[-+]?\d+$/,
1067
+ number: /^[-+]?\d*(?:[\.\,]\d+)?$/,
1068
+ // amex, visa, diners
1069
+ card: /^(?:4[0-9]{12}(?:[0-9]{3})?|5[1-5][0-9]{14}|(?:222[1-9]|2[3-6][0-9]{2}|27[0-1][0-9]|2720)[0-9]{12}|6(?:011|5[0-9][0-9])[0-9]{12}|3[47][0-9]{13}|3(?:0[0-5]|[68][0-9])[0-9]{11}|(?:2131|1800|35\d{3})\d{11})$/,
1070
+ cvv: /^([0-9]){3,4}$/,
1071
+ // http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html#valid-e-mail-address
1072
+ email: /^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+$/,
1073
+ // From CommonRegexJS (@talyssonoc)
1074
+ // https://github.com/talyssonoc/CommonRegexJS/blob/e2901b9f57222bc14069dc8f0598d5f412555411/lib/commonregex.js#L76
1075
+ // For more restrictive URL Regexs, see https://mathiasbynens.be/demo/url-regex.
1076
+ url: /^((?:(https?|ftps?|file|ssh|sftp):\/\/|www\d{0,3}[.]|[a-z0-9.\-]+[.][a-z]{2,4}\/)(?:[^\s()<>]+|\((?:[^\s()<>]+|(?:\([^\s()<>]+\)))*\))+(?:\((?:[^\s()<>]+|(?:\([^\s()<>]+\)))*\)|[^\s`!()\[\]{};:\'".,<>?\xab\xbb\u201c\u201d\u2018\u2019]))$/,
1077
+ // abc.de
1078
+ domain: /^([a-zA-Z0-9]([a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,8}$/,
1079
+ datetime: /^([0-2][0-9]{3})\-([0-1][0-9])\-([0-3][0-9])T([0-5][0-9])\:([0-5][0-9])\:([0-5][0-9])(Z|([\-\+]([0-1][0-9])\:00))$/,
1080
+ // YYYY-MM-DD
1081
+ date: /(?:19|20)[0-9]{2}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-9])|(?:(?!02)(?:0[1-9]|1[0-2])-(?:30))|(?:(?:0[13578]|1[02])-31))$/,
1082
+ // HH:MM:SS
1083
+ time: /^(0[0-9]|1[0-9]|2[0-3])(:[0-5][0-9]){2}$/,
1084
+ dateISO: /^\d{4}[\/\-]\d{1,2}[\/\-]\d{1,2}$/,
1085
+ // MM/DD/YYYY
1086
+ month_day_year: /^(0[1-9]|1[012])[- \/.](0[1-9]|[12][0-9]|3[01])[- \/.]\d{4}$/,
1087
+ // DD/MM/YYYY
1088
+ day_month_year: /^(0[1-9]|[12][0-9]|3[01])[- \/.](0[1-9]|1[012])[- \/.]\d{4}$/,
1089
+ // #FFF or #FFFFFF
1090
+ color: /^#?([a-fA-F0-9]{6}|[a-fA-F0-9]{3})$/,
1091
+ // Domain || URL
1092
+ website: {
1093
+ test: function test(text) {
1094
+ return Abide.defaults.patterns['domain'].test(text) || Abide.defaults.patterns['url'].test(text);
1095
+ }
1096
+ }
1097
+ },
1098
+
1099
+ /**
1100
+ * Optional validation functions to be used. `equalTo` being the only default included function.
1101
+ * Functions should return only a boolean if the input is valid or not. Functions are given the following arguments:
1102
+ * el : The jQuery element to validate.
1103
+ * required : Boolean value of the required attribute be present or not.
1104
+ * parent : The direct parent of the input.
1105
+ * @option
1106
+ */
1107
+ validators: {
1108
+ equalTo: function equalTo(el, required, parent) {
1109
+ return jquery__WEBPACK_IMPORTED_MODULE_0___default()("#".concat(el.attr('data-equalto'))).val() === el.val();
1110
+ }
1111
+ }
1112
+ };
1113
+
1114
+
1115
+ /***/ }),
1116
+
1117
+ /***/ 0:
1118
+ /*!******************************************************!*\
1119
+ !*** multi ./js/entries/plugins/foundation.abide.js ***!
1120
+ \******************************************************/
1121
+ /*! no static exports found */
1122
+ /***/ (function(module, exports, __webpack_require__) {
1123
+
1124
+ module.exports = __webpack_require__(/*! /Users/joeworkman/Development/foundation-sites/js/entries/plugins/foundation.abide.js */"./js/entries/plugins/foundation.abide.js");
1125
+
1126
+
1127
+ /***/ }),
1128
+
1129
+ /***/ "jquery":
1130
+ /*!********************************************************************************************!*\
1131
+ !*** external {"root":["jQuery"],"amd":"jquery","commonjs":"jquery","commonjs2":"jquery"} ***!
1132
+ \********************************************************************************************/
1133
+ /*! no static exports found */
1134
+ /***/ (function(module, exports) {
1135
+
1136
+ module.exports = __WEBPACK_EXTERNAL_MODULE_jquery__;
1137
+
1138
+ /***/ })
1139
+
1140
+ /******/ });
1141
+ });
1142
+ //# sourceMappingURL=foundation.abide.js.map