patternfly-sass 3.23.2 → 3.31.1

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 +4 -4
  2. data/CODE_OF_CONDUCT.md +4 -0
  3. data/QUICKSTART.md +165 -0
  4. data/README.md +354 -112
  5. data/dist/fonts/FontAwesome.otf +0 -0
  6. data/{assets/fonts/patternfly → dist/fonts}/OpenSans-Bold-webfont.eot +0 -0
  7. data/{assets/fonts/patternfly → dist/fonts}/OpenSans-Bold-webfont.svg +0 -0
  8. data/{assets/fonts/patternfly → dist/fonts}/OpenSans-Bold-webfont.ttf +0 -0
  9. data/{assets/fonts/patternfly → dist/fonts}/OpenSans-Bold-webfont.woff +0 -0
  10. data/{assets/fonts/patternfly → dist/fonts}/OpenSans-Bold-webfont.woff2 +0 -0
  11. data/{assets/fonts/patternfly → dist/fonts}/OpenSans-BoldItalic-webfont.eot +0 -0
  12. data/{assets/fonts/patternfly → dist/fonts}/OpenSans-BoldItalic-webfont.svg +0 -0
  13. data/{assets/fonts/patternfly → dist/fonts}/OpenSans-BoldItalic-webfont.ttf +0 -0
  14. data/{assets/fonts/patternfly → dist/fonts}/OpenSans-BoldItalic-webfont.woff +0 -0
  15. data/{assets/fonts/patternfly → dist/fonts}/OpenSans-BoldItalic-webfont.woff2 +0 -0
  16. data/{assets/fonts/patternfly → dist/fonts}/OpenSans-ExtraBold-webfont.eot +0 -0
  17. data/{assets/fonts/patternfly → dist/fonts}/OpenSans-ExtraBold-webfont.svg +0 -0
  18. data/{assets/fonts/patternfly → dist/fonts}/OpenSans-ExtraBold-webfont.ttf +0 -0
  19. data/{assets/fonts/patternfly → dist/fonts}/OpenSans-ExtraBold-webfont.woff +0 -0
  20. data/{assets/fonts/patternfly → dist/fonts}/OpenSans-ExtraBold-webfont.woff2 +0 -0
  21. data/{assets/fonts/patternfly → dist/fonts}/OpenSans-ExtraBoldItalic-webfont.eot +0 -0
  22. data/{assets/fonts/patternfly → dist/fonts}/OpenSans-ExtraBoldItalic-webfont.svg +0 -0
  23. data/{assets/fonts/patternfly → dist/fonts}/OpenSans-ExtraBoldItalic-webfont.ttf +0 -0
  24. data/{assets/fonts/patternfly → dist/fonts}/OpenSans-ExtraBoldItalic-webfont.woff +0 -0
  25. data/{assets/fonts/patternfly → dist/fonts}/OpenSans-ExtraBoldItalic-webfont.woff2 +0 -0
  26. data/{assets/fonts/patternfly → dist/fonts}/OpenSans-Italic-webfont.eot +0 -0
  27. data/{assets/fonts/patternfly → dist/fonts}/OpenSans-Italic-webfont.svg +0 -0
  28. data/{assets/fonts/patternfly → dist/fonts}/OpenSans-Italic-webfont.ttf +0 -0
  29. data/{assets/fonts/patternfly → dist/fonts}/OpenSans-Italic-webfont.woff +0 -0
  30. data/{assets/fonts/patternfly → dist/fonts}/OpenSans-Italic-webfont.woff2 +0 -0
  31. data/{assets/fonts/patternfly → dist/fonts}/OpenSans-Light-webfont.eot +0 -0
  32. data/{assets/fonts/patternfly → dist/fonts}/OpenSans-Light-webfont.svg +0 -0
  33. data/{assets/fonts/patternfly → dist/fonts}/OpenSans-Light-webfont.ttf +0 -0
  34. data/{assets/fonts/patternfly → dist/fonts}/OpenSans-Light-webfont.woff +0 -0
  35. data/{assets/fonts/patternfly → dist/fonts}/OpenSans-Light-webfont.woff2 +0 -0
  36. data/{assets/fonts/patternfly → dist/fonts}/OpenSans-LightItalic-webfont.eot +0 -0
  37. data/{assets/fonts/patternfly → dist/fonts}/OpenSans-LightItalic-webfont.svg +0 -0
  38. data/{assets/fonts/patternfly → dist/fonts}/OpenSans-LightItalic-webfont.ttf +0 -0
  39. data/{assets/fonts/patternfly → dist/fonts}/OpenSans-LightItalic-webfont.woff +0 -0
  40. data/{assets/fonts/patternfly → dist/fonts}/OpenSans-LightItalic-webfont.woff2 +0 -0
  41. data/{assets/fonts/patternfly → dist/fonts}/OpenSans-Regular-webfont.eot +0 -0
  42. data/{assets/fonts/patternfly → dist/fonts}/OpenSans-Regular-webfont.svg +0 -0
  43. data/{assets/fonts/patternfly → dist/fonts}/OpenSans-Regular-webfont.ttf +0 -0
  44. data/{assets/fonts/patternfly → dist/fonts}/OpenSans-Regular-webfont.woff +0 -0
  45. data/{assets/fonts/patternfly → dist/fonts}/OpenSans-Regular-webfont.woff2 +0 -0
  46. data/{assets/fonts/patternfly → dist/fonts}/OpenSans-Semibold-webfont.eot +0 -0
  47. data/{assets/fonts/patternfly → dist/fonts}/OpenSans-Semibold-webfont.svg +0 -0
  48. data/{assets/fonts/patternfly → dist/fonts}/OpenSans-Semibold-webfont.ttf +0 -0
  49. data/{assets/fonts/patternfly → dist/fonts}/OpenSans-Semibold-webfont.woff +0 -0
  50. data/{assets/fonts/patternfly → dist/fonts}/OpenSans-Semibold-webfont.woff2 +0 -0
  51. data/{assets/fonts/patternfly → dist/fonts}/OpenSans-SemiboldItalic-webfont.eot +0 -0
  52. data/{assets/fonts/patternfly → dist/fonts}/OpenSans-SemiboldItalic-webfont.svg +0 -0
  53. data/{assets/fonts/patternfly → dist/fonts}/OpenSans-SemiboldItalic-webfont.ttf +0 -0
  54. data/{assets/fonts/patternfly → dist/fonts}/OpenSans-SemiboldItalic-webfont.woff +0 -0
  55. data/{assets/fonts/patternfly → dist/fonts}/OpenSans-SemiboldItalic-webfont.woff2 +0 -0
  56. data/dist/fonts/PatternFlyIcons-webfont.eot +0 -0
  57. data/{assets/fonts/patternfly → dist/fonts}/PatternFlyIcons-webfont.svg +28 -0
  58. data/dist/fonts/PatternFlyIcons-webfont.ttf +0 -0
  59. data/dist/fonts/PatternFlyIcons-webfont.woff +0 -0
  60. data/dist/fonts/fontawesome-webfont.eot +0 -0
  61. data/dist/fonts/fontawesome-webfont.svg +2671 -0
  62. data/{assets/fonts/patternfly → dist/fonts}/fontawesome-webfont.ttf +0 -0
  63. data/dist/fonts/fontawesome-webfont.woff +0 -0
  64. data/dist/fonts/fontawesome-webfont.woff2 +0 -0
  65. data/{assets/fonts/patternfly → dist/fonts}/glyphicons-halflings-regular.eot +0 -0
  66. data/{assets/fonts/patternfly → dist/fonts}/glyphicons-halflings-regular.svg +0 -0
  67. data/{assets/fonts/patternfly → dist/fonts}/glyphicons-halflings-regular.ttf +0 -0
  68. data/{assets/fonts/patternfly → dist/fonts}/glyphicons-halflings-regular.woff +0 -0
  69. data/{assets/fonts/patternfly → dist/fonts}/glyphicons-halflings-regular.woff2 +0 -0
  70. data/{assets/images/patternfly → dist/img}/OpenShift-Logo-NoText.svg +0 -0
  71. data/{assets/images/patternfly → dist/img}/OpenShift-Logo-Text.svg +0 -0
  72. data/{assets/images/patternfly → dist/img}/OpenShift-logo.svg +0 -0
  73. data/{assets/images/patternfly → dist/img}/RH_Atomic-Logo-NoText.svg +0 -0
  74. data/{assets/images/patternfly → dist/img}/RH_Atomic-Logo-Text.svg +0 -0
  75. data/{assets/images/patternfly → dist/img}/RH_atomic.svg +0 -0
  76. data/{assets/images/patternfly → dist/img}/apple-touch-icon-precomposed-114.png +0 -0
  77. data/{assets/images/patternfly → dist/img}/apple-touch-icon-precomposed-144.png +0 -0
  78. data/{assets/images/patternfly → dist/img}/apple-touch-icon-precomposed-152.png +0 -0
  79. data/{assets/images/patternfly → dist/img}/apple-touch-icon-precomposed-180.png +0 -0
  80. data/{assets/images/patternfly → dist/img}/apple-touch-icon-precomposed-57.png +0 -0
  81. data/{assets/images/patternfly → dist/img}/apple-touch-icon-precomposed-72.png +0 -0
  82. data/{assets/images/patternfly → dist/img}/apple-touch-icon-precomposed-76.png +0 -0
  83. data/{assets/images/patternfly → dist/img}/bg-login.jpg +0 -0
  84. data/{assets/images/patternfly → dist/img}/bg-modal-about-pf.png +0 -0
  85. data/{assets/images/patternfly → dist/img}/bg-navbar-pf-alt.svg +0 -0
  86. data/{assets/images/patternfly → dist/img}/brand-alt.svg +0 -0
  87. data/{assets/images/patternfly → dist/img}/brand.svg +0 -0
  88. data/{assets/images/patternfly → dist/img}/favicon.ico +0 -0
  89. data/{assets/images/patternfly → dist/img}/kubernetes-Logo.svg +0 -0
  90. data/{assets/images/patternfly → dist/img}/kubernetes.svg +0 -0
  91. data/{assets/images/patternfly → dist/img}/logo-alt.svg +0 -0
  92. data/{assets/images/patternfly → dist/img}/logo.svg +0 -0
  93. data/{assets/images/patternfly → dist/img}/spinner-inverse-lg.gif +0 -0
  94. data/{assets/images/patternfly → dist/img}/spinner-inverse-sm.gif +0 -0
  95. data/{assets/images/patternfly → dist/img}/spinner-inverse-xs.gif +0 -0
  96. data/{assets/images/patternfly → dist/img}/spinner-inverse.gif +0 -0
  97. data/{assets/images/patternfly → dist/img}/spinner-lg.gif +0 -0
  98. data/{assets/images/patternfly → dist/img}/spinner-sm.gif +0 -0
  99. data/{assets/images/patternfly → dist/img}/spinner-xs.gif +0 -0
  100. data/{assets/images/patternfly → dist/img}/spinner.gif +0 -0
  101. data/dist/js/patternfly-functions-base.js +7 -0
  102. data/dist/js/patternfly-functions-charts.js +13 -0
  103. data/dist/js/patternfly-functions-colors.js +8 -0
  104. data/dist/js/patternfly-functions-count-chars.js +59 -0
  105. data/dist/js/patternfly-functions-data-tables.js +149 -0
  106. data/dist/js/patternfly-functions-fixed-heights.js +87 -0
  107. data/dist/js/patternfly-functions-list.js +79 -0
  108. data/dist/js/patternfly-functions-navigation.js +113 -0
  109. data/dist/js/patternfly-functions-popovers.js +37 -0
  110. data/dist/js/patternfly-functions-sidebar.js +31 -0
  111. data/dist/js/patternfly-functions-tree-grid.js +79 -0
  112. data/dist/js/patternfly-functions-vertical-nav.js +590 -0
  113. data/{assets/javascripts → dist/js}/patternfly-functions.js +133 -95
  114. data/dist/js/patternfly-functions.min.js +1 -0
  115. data/dist/js/patternfly-settings-base.js +16 -0
  116. data/dist/js/patternfly-settings-charts.js +423 -0
  117. data/dist/js/patternfly-settings-colors.js +88 -0
  118. data/{assets/javascripts → dist/js}/patternfly-settings.js +22 -13
  119. data/dist/js/patternfly-settings.min.js +1 -0
  120. data/{assets/javascripts → dist/js}/patternfly.dataTables.pfColVis.js +0 -0
  121. data/{assets/javascripts → dist/js}/patternfly.dataTables.pfEmpty.js +1 -1
  122. data/{assets/javascripts → dist/js}/patternfly.dataTables.pfEmpty.min.js +1 -1
  123. data/{assets/javascripts → dist/js}/patternfly.dataTables.pfFilter.js +0 -0
  124. data/dist/js/patternfly.dataTables.pfFilter.min.js +1 -0
  125. data/{assets/javascripts → dist/js}/patternfly.dataTables.pfPagination.js +1 -1
  126. data/dist/js/patternfly.dataTables.pfPagination.min.js +1 -0
  127. data/{assets/javascripts → dist/js}/patternfly.dataTables.pfResize.js +0 -0
  128. data/{assets/javascripts → dist/js}/patternfly.dataTables.pfResize.min.js +1 -1
  129. data/{assets/javascripts → dist/js}/patternfly.dataTables.pfSelect.js +0 -0
  130. data/{assets/javascripts → dist/js}/patternfly.dataTables.pfSelect.min.js +1 -1
  131. data/{assets/javascripts → dist/js}/patternfly.js +153 -106
  132. data/dist/js/patternfly.min.js +2 -0
  133. data/{assets/stylesheets → dist/sass}/_patternfly-compass.scss +1 -1
  134. data/{assets/stylesheets → dist/sass}/_patternfly-sprockets.scss +1 -1
  135. data/dist/sass/_patternfly.scss +145 -0
  136. data/{assets/stylesheets → dist/sass}/patternfly/_about-modal.scss +2 -2
  137. data/{assets/stylesheets → dist/sass}/patternfly/_alerts.scss +0 -0
  138. data/dist/sass/patternfly/_application-launcher.scss +213 -0
  139. data/{assets/stylesheets → dist/sass}/patternfly/_badges.scss +0 -0
  140. data/{assets/stylesheets → dist/sass}/patternfly/_blank-slate.scss +0 -0
  141. data/{assets/stylesheets → dist/sass}/patternfly/_bootstrap-combobox.scss +1 -1
  142. data/{assets/stylesheets → dist/sass}/patternfly/_bootstrap-datepicker.scss +13 -5
  143. data/dist/sass/patternfly/_bootstrap-mixin-overrides.scss +33 -0
  144. data/{assets/stylesheets → dist/sass}/patternfly/_bootstrap-select.scss +15 -7
  145. data/dist/sass/patternfly/_bootstrap-slider.scss +66 -0
  146. data/{assets/stylesheets → dist/sass}/patternfly/_bootstrap-switch.scss +1 -1
  147. data/{assets/stylesheets → dist/sass}/patternfly/_bootstrap-touchspin.scss +0 -0
  148. data/{assets/stylesheets → dist/sass}/patternfly/_bootstrap-treeview.scss +0 -0
  149. data/{assets/stylesheets → dist/sass}/patternfly/_breadcrumbs.scss +0 -0
  150. data/{assets/stylesheets → dist/sass}/patternfly/_buttons.scss +2 -2
  151. data/{assets/stylesheets → dist/sass}/patternfly/_card-view.scss +1 -1
  152. data/{assets/stylesheets → dist/sass}/patternfly/_cards.scss +2 -2
  153. data/{assets/stylesheets → dist/sass}/patternfly/_charts.scss +28 -0
  154. data/{assets/stylesheets → dist/sass}/patternfly/_close.scss +1 -0
  155. data/dist/sass/patternfly/_color-variables.scss +85 -0
  156. data/{assets/stylesheets → dist/sass}/patternfly/_datatables.scss +5 -5
  157. data/{assets/stylesheets → dist/sass}/patternfly/_dropdowns.scss +9 -4
  158. data/dist/sass/patternfly/_experimental-features.scss +48 -0
  159. data/dist/sass/patternfly/_fonts.scss +124 -0
  160. data/{assets/stylesheets → dist/sass}/patternfly/_footer.scss +0 -0
  161. data/{assets/stylesheets → dist/sass}/patternfly/_forms.scss +0 -0
  162. data/{assets/stylesheets → dist/sass}/patternfly/_icons.scss +91 -7
  163. data/{assets/stylesheets → dist/sass}/patternfly/_infotip.scss +0 -0
  164. data/{assets/stylesheets → dist/sass}/patternfly/_labels.scss +0 -0
  165. data/{assets/stylesheets → dist/sass}/patternfly/_layouts.scss +0 -0
  166. data/{assets/stylesheets → dist/sass}/patternfly/_links.scss +0 -0
  167. data/{assets/stylesheets → dist/sass}/patternfly/_list-group.scss +0 -0
  168. data/{assets/stylesheets → dist/sass}/patternfly/_list-pf.scss +6 -3
  169. data/{assets/stylesheets → dist/sass}/patternfly/_list-view-dnd.scss +0 -0
  170. data/{assets/stylesheets → dist/sass}/patternfly/_list-view.scss +12 -12
  171. data/{assets/stylesheets → dist/sass}/patternfly/_login.scss +3 -7
  172. data/dist/sass/patternfly/_mixins.scss +81 -0
  173. data/{assets/stylesheets → dist/sass}/patternfly/_modals.scss +0 -0
  174. data/{assets/stylesheets → dist/sass}/patternfly/_nav-vertical-alt.scss +1 -1
  175. data/{assets/stylesheets → dist/sass}/patternfly/_navbar-alt.scss +0 -0
  176. data/{assets/stylesheets → dist/sass}/patternfly/_navbar-vertical.scss +9 -2
  177. data/{assets/stylesheets → dist/sass}/patternfly/_navbar.scss +26 -2
  178. data/{assets/stylesheets → dist/sass}/patternfly/_notifications-drawer.scss +102 -15
  179. data/{assets/stylesheets → dist/sass}/patternfly/_pager.scss +1 -1
  180. data/{assets/stylesheets → dist/sass}/patternfly/_pagination.scss +2 -2
  181. data/{assets/stylesheets → dist/sass}/patternfly/_panels.scss +21 -0
  182. data/{assets/stylesheets → dist/sass}/patternfly/_popovers.scss +1 -1
  183. data/{assets/stylesheets → dist/sass}/patternfly/_progress-bars.scss +1 -1
  184. data/{assets/stylesheets → dist/sass}/patternfly/_search.scss +1 -1
  185. data/{assets/stylesheets → dist/sass}/patternfly/_sidebar.scss +0 -0
  186. data/dist/sass/patternfly/_skip-to-content.scss +12 -0
  187. data/{assets/stylesheets → dist/sass}/patternfly/_spinner.scss +16 -16
  188. data/{assets/stylesheets → dist/sass}/patternfly/_syntax-highlighting.scss +0 -0
  189. data/{assets/stylesheets → dist/sass}/patternfly/_table-view.scss +0 -0
  190. data/{assets/stylesheets → dist/sass}/patternfly/_tables.scss +0 -0
  191. data/{assets/stylesheets → dist/sass}/patternfly/_tabs.scss +1 -1
  192. data/{assets/stylesheets → dist/sass}/patternfly/_time-picker.scss +1 -3
  193. data/{assets/stylesheets → dist/sass}/patternfly/_toast.scss +7 -6
  194. data/{assets/stylesheets → dist/sass}/patternfly/_toolbar.scss +1 -1
  195. data/{assets/stylesheets → dist/sass}/patternfly/_tooltip.scss +0 -0
  196. data/{assets/stylesheets → dist/sass}/patternfly/_type.scss +0 -0
  197. data/{assets/stylesheets → dist/sass}/patternfly/_variables.scss +75 -9
  198. data/{assets/stylesheets → dist/sass}/patternfly/_vertical-nav.scss +41 -42
  199. data/{assets/stylesheets → dist/sass}/patternfly/_wizard.scss +175 -123
  200. data/dist/sass/patternfly/dependencies/bootstrap-combobox/combobox.scss +57 -0
  201. data/dist/sass/patternfly/dependencies/bootstrap-datepicker/datepicker.scss +235 -0
  202. data/dist/sass/patternfly/dependencies/bootstrap-datepicker/datepicker3.scss +251 -0
  203. data/dist/sass/patternfly/dependencies/bootstrap-select/bootstrap-select.scss +389 -0
  204. data/dist/sass/patternfly/dependencies/bootstrap-select/variables.scss +9 -0
  205. data/dist/sass/patternfly/dependencies/bootstrap-slider/_mixins.scss +25 -0
  206. data/dist/sass/patternfly/dependencies/bootstrap-slider/_rules.scss +246 -0
  207. data/dist/sass/patternfly/dependencies/bootstrap-slider/_variables.scss +28 -0
  208. data/dist/sass/patternfly/dependencies/bootstrap-slider/bootstrap-slider.scss +42 -0
  209. data/{assets/stylesheets/patternfly/lib → dist/sass/patternfly/dependencies/bootstrap-switch}/bootstrap-switch.scss +12 -10
  210. data/dist/sass/patternfly/dependencies/bootstrap-switch/build.scss +3 -0
  211. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins.scss +40 -0
  212. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/alerts.scss +14 -0
  213. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/background-variant.scss +9 -0
  214. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/border-radius.scss +18 -0
  215. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/buttons.scss +68 -0
  216. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/center-block.scss +7 -0
  217. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/clearfix.scss +22 -0
  218. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/forms.scss +85 -0
  219. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/gradients.scss +59 -0
  220. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/grid-framework.scss +98 -0
  221. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/grid.scss +122 -0
  222. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/hide-text.scss +21 -0
  223. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/image.scss +33 -0
  224. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/labels.scss +12 -0
  225. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/list-group.scss +29 -0
  226. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/nav-divider.scss +10 -0
  227. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/nav-vertical-align.scss +9 -0
  228. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/opacity.scss +8 -0
  229. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/pagination.scss +23 -0
  230. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/panels.scss +24 -0
  231. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/progress-bar.scss +10 -0
  232. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/reset-filter.scss +8 -0
  233. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/reset-text.scss +18 -0
  234. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/resize.scss +6 -0
  235. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/responsive-visibility.scss +15 -0
  236. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/size.scss +10 -0
  237. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/tab-focus.scss +9 -0
  238. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/table-row.scss +28 -0
  239. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/text-emphasis.scss +9 -0
  240. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/text-overflow.scss +8 -0
  241. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/vendor-prefixes.scss +227 -0
  242. data/dist/sass/patternfly/dependencies/bootstrap-switch/variables.scss +862 -0
  243. data/{assets/stylesheets/patternfly/lib/bootstrap-touchspin.scss → dist/sass/patternfly/dependencies/bootstrap-touchspin/_jquery.bootstrap-touchspin.scss} +1 -1
  244. data/{assets/stylesheets/patternfly/lib/c3.scss → dist/sass/patternfly/dependencies/c3/_c3.scss} +7 -0
  245. data/dist/sass/patternfly/dependencies/eonasdan-bootstrap-datetimepicker/_bootstrap-datetimepicker.scss +344 -0
  246. data/dist/sass/patternfly/dependencies/eonasdan-bootstrap-datetimepicker/bootstrap-datetimepicker-build.scss +16 -0
  247. data/lib/patternfly-sass.rb +4 -4
  248. data/lib/patternfly-sass/engine.rb +2 -2
  249. data/lib/patternfly-sass/version.rb +1 -2
  250. data/patternfly-sass.gemspec +16 -17
  251. metadata +249 -498
  252. data/.gitignore +0 -41
  253. data/.rspec +0 -3
  254. data/.rubocop.yml +0 -56
  255. data/.travis.yml +0 -51
  256. data/Gemfile +0 -3
  257. data/Rakefile +0 -130
  258. data/assets/fonts/patternfly/PatternFlyIcons-webfont.eot +0 -0
  259. data/assets/fonts/patternfly/PatternFlyIcons-webfont.ttf +0 -0
  260. data/assets/fonts/patternfly/PatternFlyIcons-webfont.woff +0 -0
  261. data/assets/fonts/patternfly/fontawesome-webfont.eot +0 -0
  262. data/assets/fonts/patternfly/fontawesome-webfont.svg +0 -685
  263. data/assets/fonts/patternfly/fontawesome-webfont.woff +0 -0
  264. data/assets/fonts/patternfly/fontawesome-webfont.woff2 +0 -0
  265. data/assets/javascripts/patternfly-functions.min.js +0 -1
  266. data/assets/javascripts/patternfly-settings.min.js +0 -1
  267. data/assets/javascripts/patternfly.dataTables.pfFilter.min.js +0 -1
  268. data/assets/javascripts/patternfly.dataTables.pfPagination.min.js +0 -1
  269. data/assets/javascripts/patternfly.min.js +0 -2
  270. data/assets/stylesheets/_patternfly.scss +0 -108
  271. data/assets/stylesheets/patternfly/_color-variables.scss +0 -84
  272. data/assets/stylesheets/patternfly/_fonts.scss +0 -124
  273. data/assets/stylesheets/patternfly/_mixin_overrides.scss +0 -65
  274. data/assets/stylesheets/patternfly/_mixins.scss +0 -120
  275. data/assets/stylesheets/patternfly/lib/bootstrap-datepicker.scss +0 -678
  276. data/assets/stylesheets/patternfly/lib/bootstrap-datetimepicker.scss +0 -374
  277. data/assets/stylesheets/patternfly/lib/bootstrap-select.scss +0 -282
  278. data/assets/stylesheets/patternfly/lib/patternfly-bootstrap-combobox.scss +0 -44
  279. data/bower.json +0 -53
  280. data/package.json +0 -70
  281. data/spec/compare_spec.rb +0 -60
  282. data/spec/html/about-modal.html +0 -77
  283. data/spec/html/accordions.html +0 -336
  284. data/spec/html/alerts.html +0 -106
  285. data/spec/html/area-charts.html +0 -103
  286. data/spec/html/badges.html +0 -73
  287. data/spec/html/bar-charts.html +0 -350
  288. data/spec/html/basic.html +0 -796
  289. data/spec/html/blank-slate.html +0 -81
  290. data/spec/html/bootstrap-combobox.html +0 -344
  291. data/spec/html/bootstrap-datepicker.html +0 -148
  292. data/spec/html/bootstrap-select.html +0 -213
  293. data/spec/html/bootstrap-switch.html +0 -267
  294. data/spec/html/bootstrap-switch.js +0 -61
  295. data/spec/html/bootstrap-touchspin.html +0 -210
  296. data/spec/html/bootstrap-treeview-2.html +0 -296
  297. data/spec/html/bootstrap-treeview.html +0 -383
  298. data/spec/html/breadcrumbs.html +0 -52
  299. data/spec/html/buttons.html +0 -556
  300. data/spec/html/card-view-card-variations.html +0 -201
  301. data/spec/html/card-view-multi-select.html +0 -698
  302. data/spec/html/card-view-single-select.html +0 -432
  303. data/spec/html/cards.html +0 -899
  304. data/spec/html/code.html +0 -83
  305. data/spec/html/dashboard.html +0 -353
  306. data/spec/html/dist/css/patternfly-additions.css +0 -7202
  307. data/spec/html/dist/css/patternfly-additions.css.map +0 -1
  308. data/spec/html/dist/css/patternfly-additions.min.css +0 -5
  309. data/spec/html/dist/css/patternfly-additions.min.css.map +0 -1
  310. data/spec/html/dist/css/patternfly.css +0 -10355
  311. data/spec/html/dist/css/patternfly.css.map +0 -1
  312. data/spec/html/dist/css/patternfly.min.css +0 -8
  313. data/spec/html/dist/css/patternfly.min.css.map +0 -1
  314. data/spec/html/donut-charts.html +0 -235
  315. data/spec/html/dropdowns.html +0 -138
  316. data/spec/html/form.html +0 -281
  317. data/spec/html/forms.html +0 -875
  318. data/spec/html/horizontal-navigation.html +0 -765
  319. data/spec/html/icons.html +0 -447
  320. data/spec/html/img/dashboard-3.png +0 -0
  321. data/spec/html/index.html +0 -284
  322. data/spec/html/infotip.html +0 -89
  323. data/spec/html/labels.html +0 -108
  324. data/spec/html/line-charts.html +0 -178
  325. data/spec/html/list-group.html +0 -111
  326. data/spec/html/list-pf.html +0 -529
  327. data/spec/html/list-view-compound-expansion.html +0 -1720
  328. data/spec/html/list-view-rows.html +0 -597
  329. data/spec/html/list-view-simple-expansion.html +0 -1003
  330. data/spec/html/list-view.html +0 -614
  331. data/spec/html/login.html +0 -92
  332. data/spec/html/modals.html +0 -83
  333. data/spec/html/navbar.html +0 -4680
  334. data/spec/html/notification-drawer-horizontal-nav.html +0 -1503
  335. data/spec/html/notification-drawer-vertical-nav.html +0 -1631
  336. data/spec/html/pagination-card-view.html +0 -560
  337. data/spec/html/pagination-list-view.html +0 -1204
  338. data/spec/html/pagination-table-view.html +0 -813
  339. data/spec/html/pagination.html +0 -320
  340. data/spec/html/panels.html +0 -113
  341. data/spec/html/pie-charts.html +0 -180
  342. data/spec/html/popovers.html +0 -115
  343. data/spec/html/progress-bars.html +0 -335
  344. data/spec/html/search.html +0 -171
  345. data/spec/html/spinner.html +0 -77
  346. data/spec/html/tab.html +0 -842
  347. data/spec/html/table-view-columns.html +0 -495
  348. data/spec/html/table-view-navbar.html +0 -814
  349. data/spec/html/table-view.html +0 -688
  350. data/spec/html/tables.html +0 -540
  351. data/spec/html/tabs.html +0 -279
  352. data/spec/html/tests.css +0 -16
  353. data/spec/html/time-picker.html +0 -75
  354. data/spec/html/toast.html +0 -87
  355. data/spec/html/toolbar.html +0 -268
  356. data/spec/html/tooltip.html +0 -71
  357. data/spec/html/typography-2.css +0 -10
  358. data/spec/html/typography-2.html +0 -313
  359. data/spec/html/typography.html +0 -212
  360. data/spec/html/utilization-bar-charts.html +0 -69
  361. data/spec/html/vertical-navigation-primary-only.html +0 -844
  362. data/spec/html/vertical-navigation-with-badges.html +0 -1184
  363. data/spec/html/vertical-navigation-with-secondary.html +0 -911
  364. data/spec/html/vertical-navigation-with-tertiary-no-icons.html +0 -1085
  365. data/spec/html/vertical-navigation-with-tertiary-pins.html +0 -1085
  366. data/spec/html/wizard.html +0 -756
  367. data/spec/main.html +0 -16
  368. data/spec/spec_helper.rb +0 -9
  369. data/tasks/converter.rb +0 -353
@@ -1,756 +0,0 @@
1
- <!DOCTYPE html>
2
- <!--[if IE 9]><html lang="en-us" class="ie9"><![endif]-->
3
- <!--[if gt IE 9]><!-->
4
- <html lang="en-us">
5
- <!--<![endif]-->
6
- <head>
7
- <title>Wizard - PatternFly</title>
8
- <meta charset="UTF-8">
9
- <meta http-equiv="X-UA-Compatible" content="IE=Edge">
10
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
11
- <link rel="shortcut icon" href="../../dist/img/favicon.ico">
12
- <!-- iPad retina icon -->
13
- <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../../dist/img/apple-touch-icon-precomposed-152.png">
14
- <!-- iPad retina icon (iOS < 7) -->
15
- <link rel="apple-touch-icon-precomposed" sizes="144x144" href="../../dist/img/apple-touch-icon-precomposed-144.png">
16
- <!-- iPad non-retina icon -->
17
- <link rel="apple-touch-icon-precomposed" sizes="76x76" href="../../dist/img/apple-touch-icon-precomposed-76.png">
18
- <!-- iPad non-retina icon (iOS < 7) -->
19
- <link rel="apple-touch-icon-precomposed" sizes="72x72" href="../../dist/img/apple-touch-icon-precomposed-72.png">
20
- <!-- iPhone 6 Plus icon -->
21
- <link rel="apple-touch-icon-precomposed" sizes="120x120" href="../../dist/img/apple-touch-icon-precomposed-180.png">
22
- <!-- iPhone retina icon (iOS < 7) -->
23
- <link rel="apple-touch-icon-precomposed" sizes="114x114" href="../../dist/img/apple-touch-icon-precomposed-114.png">
24
- <!-- iPhone non-retina icon (iOS < 7) -->
25
- <link rel="apple-touch-icon-precomposed" sizes="57x57" href="../../dist/img/apple-touch-icon-precomposed-57.png">
26
- <link rel="stylesheet" href="../../dist/css/patternfly.min.css" >
27
- <link rel="stylesheet" href="../../dist/css/patternfly-additions.min.css" >
28
- <link href="tests.css" rel="stylesheet" media="screen, print">
29
- <script src="//code.jquery.com/jquery-2.1.4.min.js"></script>
30
- <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
31
- <script src="./../../dist/js/patternfly.min.js"></script>
32
- </head>
33
-
34
- <body>
35
- <div class="container">
36
- <div class="page-header">
37
- <h1>Wizard</h1>
38
- </div>
39
- <div class="alert alert-warning">
40
- <span class="pficon pficon-warning-triangle-o"></span>
41
- These examples are included for development testing purposes. For official documentation, see <a href="https://www.patternfly.org" class="alert-link">https://www.patternfly.org</a> and <a href="http://getbootstrap.com" class="alert-link">http://getbootstrap.com</a>.
42
- </div>
43
- <hr>
44
- <h2>Complete Wizard</h2>
45
- <button class="btn btn-default wizard-pf-open wizard-pf-complete" data-target="#complete">Launch wizard</button>
46
- <div class="modal" id="complete" tabindex="-1" role="dialog">
47
- <div class="modal-dialog modal-lg wizard-pf">
48
- <div class="modal-content">
49
- <div class="modal-header">
50
- <button type="button" class="close wizard-pf-dismiss" aria-label="Close"><span
51
- aria-hidden="true">&times;</span></button>
52
- <dt class="modal-title">Wizard Title</dt>
53
- </div>
54
- <div class="modal-body wizard-pf-body clearfix">
55
- <div class="wizard-pf-steps hidden">
56
- <ul class="wizard-pf-steps-indicator">
57
- <li class="wizard-pf-step active" data-tabgroup="1">
58
- <a><span class="wizard-pf-step-number">1</span><span class="wizard-pf-step-title">First Step</span></a>
59
- </li>
60
- <li class="wizard-pf-step" data-tabgroup="2">
61
- <a><span class="wizard-pf-step-number">2</span><span class="wizard-pf-step-title">Second Step</span></a>
62
- </li>
63
- <li class="wizard-pf-step" data-tabgroup="3">
64
- <a><span class="wizard-pf-step-number">3</span><span class="wizard-pf-step-title">Review</span></a>
65
- </li>
66
- </ul>
67
- </div>
68
-
69
- <div class="wizard-pf-row">
70
- <div class="wizard-pf-sidebar hidden">
71
- <ul class="list-group">
72
- <li class="list-group-item active">
73
- <a href="#">
74
- <span class="wizard-pf-substep-number">1A.</span>
75
- <span class="wizard-pf-substep-title">Details</span>
76
- </a>
77
- </li>
78
- <li class="list-group-item">
79
- <a href="#">
80
- <span class="wizard-pf-substep-number">1B.</span>
81
- <span class="wizard-pf-substep-title">Settings</span>
82
- </a>
83
- </li>
84
- </ul>
85
- <ul class="list-group hidden">
86
- <li class="list-group-item">
87
- <a href="#">
88
- <span class="wizard-pf-substep-number">2A.</span>
89
- <span class="wizard-pf-substep-title">Details</span>
90
- </a>
91
- </li>
92
- <li class="list-group-item">
93
- <a href="#">
94
- <span class="wizard-pf-substep-number">2B.</span>
95
- <span class="wizard-pf-substep-title">Settings</span>
96
- </a>
97
- </li>
98
- </ul>
99
- <ul class="list-group hidden">
100
- <li class="list-group-item">
101
- <a>
102
- <span class="wizard-pf-substep-number">3A.</span>
103
- <span class="wizard-pf-substep-title">Summary</span>
104
- </a>
105
- </li>
106
- <li class="list-group-item">
107
- <a>
108
- <span class="wizard-pf-substep-number">3B.</span>
109
- <span class="wizard-pf-substep-title">Progress</span>
110
- </a>
111
- </li>
112
- </ul>
113
- </div> <!-- /.wizard-pf-sidebar -->
114
- <div class="wizard-pf-main">
115
- <div class="wizard-pf-loading blank-slate-pf">
116
- <div class="spinner spinner-lg blank-slate-pf-icon"></div>
117
- <h3 class="blank-slate-pf-main-action">Loading Wizard</h3>
118
- <p class="blank-slate-pf-secondary-action">Lorem ipsum dolor sit amet, porta at suspendisse ac, ut wisi
119
- vivamus, lorem sociosqu eget nunc amet. </p>
120
- </div>
121
- <div class="wizard-pf-contents hidden">
122
- <form class="form-horizontal">
123
- <!-- replacing id with data-id to pass build errors -->
124
- <div class="form-group required">
125
- <label class="col-sm-2 control-label" for="textInput-markup">Name</label>
126
- <div class="col-sm-10">
127
- <input type="text" data-id="textInput-markup" class="form-control">
128
- </div>
129
- </div>
130
- <div class="form-group">
131
- <label class="col-sm-2 control-label" for="descriptionInput-markup">Description (Optional)</label>
132
- <div class="col-sm-10">
133
- <textarea data-id="descriptionInput-markup" class="form-control" rows="2"></textarea>
134
- </div>
135
- </div>
136
- </form>
137
- </div>
138
- <div class="wizard-pf-contents hidden">
139
- <form class="form-horizontal">
140
- <div class="form-group required">
141
- <label class="col-sm-2 control-label" for="lorem">Lorem ipsum</label>
142
- <div class="col-sm-10">
143
- <input type="text" id="lorem" class="form-control">
144
- </div>
145
- </div>
146
- <div class="form-group">
147
- <label class="col-sm-2 control-label" for="dolor">Dolor (Optional)</label>
148
- <div class="col-sm-10">
149
- <textarea id="dolor" class="form-control" rows="2"></textarea>
150
- </div>
151
- </div>
152
- </form>
153
- </div>
154
- <div class="wizard-pf-contents hidden">
155
- <form class="form-horizontal">
156
- <div class="form-group required">
157
- <label class="col-sm-2 control-label" for="aliquam">Aliquam</label>
158
- <div class="col-sm-10">
159
- <input type="text" id="aliquam" class="form-control">
160
- </div>
161
- </div>
162
- <div class="form-group">
163
- <label class="col-sm-2 control-label" for="fermentum">Fermentum</label>
164
- <div class="col-sm-10">
165
- <textarea id="fermentum" class="form-control" rows="2"></textarea>
166
- </div>
167
- </div>
168
- </form>
169
- </div>
170
- <div class="wizard-pf-contents hidden">
171
- <form class="form-horizontal">
172
- <div class="form-group required">
173
- <label class="col-sm-2 control-label" for="consectetur">Consectetur</label>
174
- <div class="col-sm-10">
175
- <input type="text" id="consectetur" class="form-control">
176
- </div>
177
- </div>
178
- <div class="form-group">
179
- <label class="col-sm-2 control-label" for="adipiscing">Adipiscing</label>
180
- <div class="col-sm-10">
181
- <textarea id="adipiscing" class="form-control" rows="2"></textarea>
182
- </div>
183
- </div>
184
- </form>
185
- </div>
186
- <div class="wizard-pf-contents hidden">
187
- <div class="wizard-pf-review-steps">
188
- <ul class="list-group">
189
- <li class="list-group-item">
190
- <a onclick="$(this).toggleClass('collapsed'); $('#reviewStep1').toggleClass('collapse');">First Step</a>
191
- <div id="reviewStep1" class="wizard-pf-review-substeps">
192
- <ul class="list-group">
193
- <li class="list-group-item">
194
- <a onclick="$(this).toggleClass('collapsed'); $('#reviewStep1Substep1').toggleClass('collapse');">
195
- <span class="wizard-pf-substep-number">1A.</span>
196
- <span class="wizard-pf-substep-title">Details</span>
197
- </a>
198
- <div id="reviewStep1Substep1" class="wizard-pf-review-content">
199
- <form class="form">
200
- <div class="wizard-pf-review-item">
201
- <span class="wizard-pf-review-item-label">Name:</span>
202
- <span class="wizard-pf-review-item-value">First Last</span>
203
- </div>
204
- <div class="wizard-pf-review-item">
205
- <span class="wizard-pf-review-item-label">Description:</span>
206
- <span class="wizard-pf-review-item-value">This is the description</span>
207
- </div>
208
- </form>
209
- </div>
210
- </li>
211
- <li class="list-group-item">
212
- <a onclick="$(this).toggleClass('collapsed'); $('#reviewStep1Substep2').toggleClass('collapse');">
213
- <span class="wizard-pf-substep-number">1B.</span>
214
- <span class="wizard-pf-substep-title">Settings</span>
215
- </a>
216
- <div id="reviewStep1Substep2" class="wizard-pf-review-content">
217
- <form class="form">
218
- <div class="wizard-pf-review-item">
219
- <div class="wizard-pf-review-item-field">Setting A</div>
220
- <div class="wizard-pf-review-item-field">Setting B</div>
221
- </div>
222
- </form>
223
- </div>
224
- </li>
225
- </ul>
226
- </div>
227
- </li>
228
- <li class="list-group-item">
229
- <a onclick="$(this).toggleClass('collapsed'); $('#reviewStep2').toggleClass('collapse');">Second Step</a>
230
- <div id="reviewStep2" class="wizard-pf-review-substeps">
231
- <ul class="list-group">
232
- <li class="list-group-item">
233
- <a onclick="$(this).toggleClass('collapsed'); $('#reviewStep2Substep1').toggleClass('collapse');">
234
- <span class="wizard-pf-substep-number">2A.</span>
235
- <span class="wizard-pf-substep-title">Details</span>
236
- </a>
237
- <div id="reviewStep2Substep1" class="wizard-pf-review-content">
238
- <form class="form">
239
- <div class="wizard-pf-review-item">
240
- <span class="wizard-pf-review-item-label">Name:</span>
241
- <span class="wizard-pf-review-item-value">First Last</span>
242
- </div>
243
- <div class="wizard-pf-review-item">
244
- <span class="wizard-pf-review-item-label">Description:</span>
245
- <span class="wizard-pf-review-item-value">This is the description</span>
246
- </div>
247
- </form>
248
- </div>
249
- </li>
250
- <li class="list-group-item">
251
- <a onclick="$(this).toggleClass('collapsed'); $('#reviewStep2Substep2').toggleClass('collapse');">
252
- <span class="wizard-pf-substep-number">2B.</span>
253
- <span class="wizard-pf-substep-title">Settings</span>
254
- </a>
255
- <div id="reviewStep2Substep2" class="wizard-pf-review-content">
256
- <form class="form">
257
- <div class="wizard-pf-review-item">
258
- <div class="wizard-pf-review-item-field">Setting A</div>
259
- <div class="wizard-pf-review-item-field">Setting B</div>
260
- </div>
261
- </form>
262
- </div>
263
- </li>
264
- </ul>
265
- </div>
266
- </li>
267
- </ul>
268
- </div>
269
- </div>
270
- <div class="wizard-pf-contents hidden">
271
- <div class="wizard-pf-process blank-slate-pf">
272
- <div class="spinner spinner-lg blank-slate-pf-icon"></div>
273
- <h3 class="blank-slate-pf-main-action">Deployment in progress</h3>
274
- <p class="blank-slate-pf-secondary-action">Lorem ipsum dolor sit amet, porta at suspendisse ac, ut wisi
275
- vivamus, lorem sociosqu eget nunc amet. </p>
276
- </div>
277
- <div class="wizard-pf-complete blank-slate-pf hidden">
278
- <div class="wizard-pf-success-icon"><span class="glyphicon glyphicon-ok-circle"></span></div>
279
- <h3 class="blank-slate-pf-main-action">Deployment was successful</h3>
280
- <p class="blank-slate-pf-secondary-action">Lorem ipsum dolor sit amet, porta at suspendisse ac, ut wisi
281
- vivamus, lorem sociosqu eget nunc amet. </p>
282
- <button type="button" class="btn btn-lg btn-primary">
283
- View Deployment
284
- </button>
285
-
286
- </div>
287
- </div>
288
- </div><!-- /.wizard-pf-main -->
289
- </div>
290
-
291
- </div><!-- /.wizard-pf-body -->
292
-
293
- <div class="modal-footer wizard-pf-footer">
294
- <button type="button" class="btn btn-default btn-cancel wizard-pf-cancel wizard-pf-dismiss">Cancel</button>
295
- <button type="button" class="btn btn-default wizard-pf-back disabled">
296
- <span class="i fa fa-angle-left"></span>
297
- Back
298
- </button>
299
- <button type="button" class="btn btn-primary wizard-pf-next disabled">
300
- Next
301
- <span class="i fa fa-angle-right"></span>
302
- </button>
303
- <button type="button" class="btn btn-primary hidden wizard-pf-finish">
304
- Deploy
305
- <span class="i fa fa-angle-right"></span>
306
- </button>
307
- <button type="button" class="btn btn-primary hidden wizard-pf-close wizard-pf-dismiss">Close</button>
308
-
309
- </div><!-- /.wizard-pf-footer -->
310
-
311
- </div><!-- /.modal-content -->
312
- </div><!-- /.modal-dialog -->
313
- </div><!-- /.modal -->
314
-
315
- <script>
316
-
317
- $(document).ready(function() {
318
- //initialize wizard
319
- var completeWizard = new wizard(".btn.wizard-pf-complete");
320
- });
321
-
322
- var wizard = function(id) {
323
- var self = this, modal, tabs, tabCount, tabLast, currentGroup, currentTab, contents;
324
- self.id = id;
325
-
326
- $(self.id).click(function() {
327
- self.init(this)
328
- });
329
-
330
- this.init = function(button){
331
- // get id of open modal
332
- self.modal = $(button).data("target");
333
-
334
- // open modal
335
- $(self.modal).modal('show');
336
- // adjust height of contents row (while steps and sidebar are hidden and loading message displays)
337
- self.updateWizardLayout();
338
-
339
- // assign data attribute to all tabs
340
- $(self.modal + " .wizard-pf-sidebar .list-group-item").each(function() {
341
- // set the first digit (i.e. n.0) equal to the index of the parent tab group
342
- // set the second digit (i.e. 0.n) equal to the index of the tab within the tab group
343
- $(this).attr("data-tab", ($(this).parent().index() +1 + ($(this).index()/10 + .1)));
344
- });
345
- // assign data attribute to all tabgroups
346
- $(self.modal + " .wizard-pf-sidebar .list-group").each(function() {
347
- // set the value equal to the index of the tab group
348
- $(this).attr("data-tabgroup", ($(this).index() +1));
349
- });
350
-
351
- // create array of all tabs, using the data attribute, and determine the last tab
352
- self.tabs = $(self.modal + " .wizard-pf-sidebar .list-group-item" ).map(function()
353
- {
354
- return $(this).data("tab");
355
- }
356
- );
357
- self.tabCount = self.tabs.length;
358
- self.tabSummary = self.tabs[self.tabCount - 2]; // second to last tab displays summary
359
- self.tabLast = self.tabs[self.tabCount - 1]; // last tab displays progress
360
- // set first tab group and tab as current tab
361
- // if someone wants to target a specific tab, that could be handled here
362
- self.currentGroup = 1;
363
- self.currentTab = 1.1;
364
- self.updateTabGroup();
365
- // hide loading message
366
- $(self.modal + " .wizard-pf-loading").addClass("hidden");
367
- // show tabs and tab groups
368
- $(self.modal + " .wizard-pf-steps").removeClass("hidden");
369
- $(self.modal + " .wizard-pf-sidebar").removeClass("hidden");
370
- // remove active class from all tabs
371
- $(self.modal + " .wizard-pf-sidebar .list-group-item.active").removeClass("active");
372
- // apply active class to new current tab and associated contents
373
- self.updateActiveTab();
374
- // adjust height of contents row (while steps and sidebar and tab contents are visible)
375
- self.updateWizardLayout();
376
- self.updateWizardFooterDisplay();
377
-
378
- //initialize click listeners
379
- self.tabGroupSelect();
380
- self.tabSelect();
381
- self.backBtnClicked();
382
- self.nextBtnClicked();
383
- self.finishBtnClick();
384
- self.cancelBtnClick();
385
-
386
- $( window ).resize(function() {
387
- self.updateWizardLayout();
388
- });
389
- };
390
-
391
- // update which tab group is active
392
- this.updateTabGroup = function() {
393
- $(self.modal + " .wizard-pf-step.active").removeClass("active");
394
- $(self.modal + " .wizard-pf-step[data-tabgroup='" + self.currentGroup + "']").addClass("active");
395
- $(self.modal + " .wizard-pf-sidebar .list-group").addClass("hidden");
396
- $(self.modal + " .list-group[data-tabgroup='" + self.currentGroup + "']").removeClass("hidden");
397
- };
398
-
399
- // update which tab is active
400
- this.updateActiveTab = function() {
401
- $(self.modal + " .list-group-item[data-tab='" + self.currentTab + "']").addClass("active");
402
- self.updateVisibleContents();
403
- };
404
-
405
- // update which contents are visible
406
- this.updateVisibleContents = function() {
407
- var tabIndex = ($.inArray(self.currentTab, self.tabs));
408
- // displaying contents associated with currentTab
409
- $(self.modal + " .wizard-pf-contents").addClass("hidden");
410
- $(self.modal + " .wizard-pf-contents:eq(" + tabIndex + ")").removeClass("hidden");
411
- // setting focus to first form field in active contents
412
- setTimeout (function() {
413
- $(".wizard-pf-contents:not(.hidden) form input, .wizard-pf-contents:not(.hidden) form textarea, .wizard-pf-contents:not(.hidden) form select").first().focus(); // this does not account for disabled or read-only inputs
414
- }, 100);
415
- };
416
-
417
- // update display state of Back button
418
- this.updateBackBtnDisplay = function() {
419
- if (self.currentTab == self.tabs[0]) {
420
- $(self.modal + " .wizard-pf-back").addClass("disabled");
421
- }
422
- };
423
-
424
- // update display state of next/finish button
425
- this.updateNextBtnDisplay = function() {
426
- if (self.currentTab == self.tabSummary) {
427
- $(self.modal + " .wizard-pf-next").addClass("hidden");
428
- $(self.modal + " .wizard-pf-finish").removeClass("hidden");
429
- } else {
430
- $(self.modal + " .wizard-pf-finish").addClass("hidden");
431
- $(self.modal + " .wizard-pf-next").removeClass("hidden");
432
- }
433
- };
434
-
435
- // update display state of buttons in the footer
436
- this.updateWizardFooterDisplay = function() {
437
- $(self.modal + " .wizard-pf-footer .disabled").removeClass("disabled")
438
- self.updateBackBtnDisplay();
439
- self.updateNextBtnDisplay();
440
- };
441
-
442
- // adjust layout of panels in wizard
443
- this.updateWizardLayout = function() {
444
- var top = ($(self.modal + " .modal-header").outerHeight() + $(self.modal + " .wizard-pf-steps").outerHeight()) + "px",
445
- bottom = $(self.modal + " .modal-footer").outerHeight() + "px",
446
- sidebarwidth = $(self.modal + " .wizard-pf-sidebar").outerWidth() + "px";
447
- $(self.modal + " .wizard-pf-row").css("top", top);
448
- $(self.modal + " .wizard-pf-row").css("bottom", bottom);
449
- $(self.modal + " .wizard-pf-main").css("margin-left", sidebarwidth);
450
- };
451
-
452
- // when the user clicks a step, then the tab group for that step is displayed
453
- this.tabGroupSelect = function() {
454
- $(self.modal + " .wizard-pf-step>a").click(function() {
455
- // remove active class active tabgroup and add active class to the
456
- // clicked tab group (but don't remove the active class from current tab)
457
- self.currentGroup = $(this).parent().data("tabgroup");
458
- self.updateTabGroup();
459
- // update value for currentTab -- if a tab is already marked as active
460
- // for the new tab group, use that, otherwise set it to the first tab
461
- // in the tab group
462
- self.currentTab = $(self.modal + " .list-group[data-tabgroup='" + self.currentGroup + "'] .list-group-item.active").data("tab");
463
- if (self.currentTab == undefined) {
464
- self.currentTab = $(self.modal + " .list-group[data-tabgroup='" + self.currentGroup + "'] .list-group-item:first-child").data("tab");
465
- // apply active class to new current tab and associated contents
466
- self.updateActiveTab();
467
- } else {
468
- // use already active tab and just update contents
469
- self.updateVisibleContents();
470
- }
471
- // show/hide/disable/enable buttons if needed
472
- self.updateWizardFooterDisplay();
473
- });
474
- };
475
-
476
- // when the user clicks a tab, then the tab contents are displayed
477
- this.tabSelect = function() {
478
- $(self.modal + " .wizard-pf-sidebar .list-group-item>a").click(function() {
479
- // update value of currentTab to new active tab
480
- self.currentTab = $(this).parent().data("tab");
481
- // remove active class from active tab in current active tab group (i.e.
482
- // don't remove the class from tabs in other groups)
483
- $(self.modal + " .list-group[data-tabgroup='" + self.currentGroup + "'] .list-group-item.active").removeClass("active");
484
- // add active class to the clicked tab and the associated contents
485
- $(this).parent().addClass("active");
486
- self.updateVisibleContents();
487
- if (self.currentTab == self.tabLast) {
488
- $(self.modal + " .wizard-pf-next").addClass("hidden");
489
- $(self.modal + " .wizard-pf-finish").removeClass("hidden");
490
- self.finish();
491
- } else {
492
- // show/hide/disable/enable buttons if needed
493
- self.updateWizardFooterDisplay();
494
- }
495
- });
496
- };
497
-
498
- // Back button clicked
499
- this.backBtnClicked = function() {
500
- $(self.modal + " .wizard-pf-back").click(function() {
501
- // if not the first page
502
- if (self.currentTab != self.tabs[0]) {
503
- // go back a page (i.e. -1)
504
- self.wizardPaging(-1);
505
- // show/hide/disable/enable buttons if needed
506
- self.updateWizardFooterDisplay();
507
- }
508
- });
509
- };
510
-
511
- // Next button clicked
512
- this.nextBtnClicked = function() {
513
- $(self.modal + " .wizard-pf-next").click(function() {
514
- // go forward a page (i.e. +1)
515
- self.wizardPaging(1);
516
- // show/hide/disable/enable buttons if needed
517
- self.updateWizardFooterDisplay();
518
- });
519
- };
520
-
521
- // Finish button clicked
522
- // Deploy/Finish button would only display during the second to last step.
523
- this.finishBtnClick = function() {
524
- $(self.modal + " .wizard-pf-finish").click(function() {
525
- self.wizardPaging(1);
526
- self.finish();
527
- });
528
- };
529
-
530
- // Cancel/Close button clicked
531
- this.cancelBtnClick = function() {
532
- $(self.modal + " .wizard-pf-dismiss").click(function() {
533
- // close the modal
534
- $(self.modal).modal('hide');
535
- // drop click event listeners
536
- $(self.modal + " .wizard-pf-step>a").off("click");
537
- $(self.modal + " .wizard-pf-sidebar .list-group-item>a").off("click");
538
- $(self.modal + " .wizard-pf-back").off("click");
539
- $(self.modal + " .wizard-pf-next").off("click");
540
- $(self.modal + " .wizard-pf-finish").off("click");
541
- $(self.modal + " .wizard-pf-dismiss").off("click");
542
- // reset final step
543
- $(self.modal + " .wizard-pf-process").removeClass("hidden");
544
- $(self.modal + " .wizard-pf-complete").addClass("hidden");
545
- // reset loading message
546
- $(self.modal + " .wizard-pf-contents").addClass("hidden");
547
- $(self.modal + " .wizard-pf-loading").removeClass("hidden");
548
- // remove tabs and tab groups
549
- $(self.modal + " .wizard-pf-steps").addClass("hidden");
550
- $(self.modal + " .wizard-pf-sidebar").addClass("hidden");
551
- // reset buttons in final step
552
- $(self.modal + " .wizard-pf-close").addClass("hidden");
553
- $(self.modal + " .wizard-pf-cancel").removeClass("hidden");
554
- });
555
- };
556
-
557
- // when the user clicks Next/Back, then the next/previous tab and contents display
558
- this.wizardPaging = function(direction) {
559
- // get n.n value of next tab using the index of next tab in tabs array
560
- var tabIndex = ($.inArray(self.currentTab, self.tabs)) + direction;
561
- var newTab = self.tabs[tabIndex];
562
- // add/remove active class from current tab group
563
- // included math.round to trim off extra .000000000002 that was getting added
564
- if (newTab != Math.round(10*(direction*.1 + self.currentTab))/10) {
565
- // this statement is true when the next tab is in the next tab group
566
- // if next tab is in next tab group (e.g. next tab data-tab value is
567
- // not equal to current tab +.1) then apply active class to next
568
- // tab group and step, and update the value for var currentGroup +/-1
569
- self.currentGroup = self.currentGroup + direction;
570
- self.updateTabGroup();
571
- }
572
- self.currentTab = newTab;
573
- // remove active class from active tab in current tab group
574
- $(self.modal + " .list-group[data-tabgroup='" + self.currentGroup + "'] .list-group-item.active").removeClass("active");
575
- // apply active class to new current tab and associated contents
576
- self.updateActiveTab();
577
- };
578
-
579
- // This code keeps the same contents div active, but switches out what
580
- // contents display in that div (i.e. replaces process message with
581
- // success message).
582
- this.finish = function() {
583
- $(self.modal + " .wizard-pf-back").addClass("disabled"); // if Back remains enabled during this step, then the Close button needs to be removed when the user clicks Back
584
- $(self.modal + " .wizard-pf-finish").addClass("disabled");
585
- // code for kicking off process goes here
586
- // the next code is just to simulate the expected experience, in that
587
- // when the process is complete, the success message etc. would display
588
- setTimeout (function() {
589
- $(self.modal + " .wizard-pf-cancel").addClass("hidden");
590
- $(self.modal + " .wizard-pf-finish").addClass("hidden");
591
- $(self.modal + " .wizard-pf-close").removeClass("hidden");
592
- $(self.modal + " .wizard-pf-process").addClass("hidden");
593
- $(self.modal + " .wizard-pf-complete").removeClass("hidden");
594
- }, 3000);
595
- };
596
-
597
- };
598
-
599
- </script>
600
-
601
- <h2>Initializing</h2>
602
- <button class="btn btn-default" data-toggle="modal" data-target="#initializing">Launch wizard showing initialization
603
- state
604
- </button>
605
- <div class="modal" id="initializing" tabindex="-1" role="dialog">
606
- <div class="modal-dialog modal-lg wizard-pf">
607
- <div class="modal-content">
608
- <div class="modal-header">
609
- <button type="button" class="close" data-dismiss="modal" aria-label="Close">
610
- <span aria-hidden="true">&times;</span>
611
- </button>
612
- <dt class="modal-title">Wizard Title</dt>
613
- </div>
614
- <div class="modal-body wizard-pf-body clearfix">
615
- <div class="wizard-pf-steps hidden">
616
- <ul class="wizard-pf-steps-indicator">
617
- <li>
618
- <a><span class="wizard-pf-step-number">1</span><span class="wizard-pf-step-title">First Step</span></a>
619
- </li>
620
- <li>
621
- <a><span class="wizard-pf-step-number">2</span><span class="wizard-pf-step-title">Second Step</span></a>
622
- </li>
623
- <li>
624
- <a><span class="wizard-pf-step-number">3</span><span class="wizard-pf-step-title">Review</span></a>
625
- </li>
626
- </ul>
627
- </div>
628
-
629
- <div class="wizard-pf-sidebar hidden">
630
- <ul class="list-group">
631
- <li class="list-group-item active">
632
- <a>
633
- <span class="wizard-pf-substep-number">1A.</span>
634
- <span class="wizard-pf-substep-title">General</span>
635
- </a>
636
- </li>
637
- <li class="list-group-item">
638
- <a>
639
- <span class="wizard-pf-substep-number">1B.</span>
640
- <span class="wizard-pf-substep-title">Masters &amp; Nodes</span>
641
- </a>
642
- </li>
643
- <li class="list-group-item">
644
- <a>
645
- <span class="wizard-pf-substep-number">1C.</span>
646
- <span class="wizard-pf-substep-title">CDN Channel</span>
647
- </a>
648
- </li>
649
- </ul>
650
- </div><!-- /.wizard-pf-sidebar -->
651
-
652
- <div class="wizard-pf-main" style="margin-left: 0px">
653
- <div class="blank-slate-pf">
654
- <div class="spinner spinner-lg blank-slate-pf-icon"></div>
655
- <h3 class="blank-slate-pf-main-action">Loading Wizard</h3>
656
- <p class="blank-slate-pf-secondary-action">Lorem ipsum dolor sit amet, porta at suspendisse ac, ut wisi
657
- vivamus, lorem sociosqu eget nunc amet. </p>
658
- </div>
659
-
660
- </div>
661
-
662
- </div><!-- /.wizard-pf-body -->
663
-
664
- <!-- TODO: disable buttons -->
665
- <div class="modal-footer wizard-pf-footer">
666
- <button type="button" class="btn btn-default btn-cancel" data-dismiss="modal">Cancel</button>
667
- <button type="button" class="btn btn-default disabled" data-dismiss="modal">
668
- <span class="i fa fa-angle-left"></span>
669
- Back
670
- </button>
671
- <button type="button" class="btn btn-primary disabled" data-dismiss="modal">
672
- Next
673
- <span class="i fa fa-angle-right"></span>
674
- </button>
675
- </div><!-- /.wizard-pf-footer -->
676
-
677
- </div><!-- /.modal-content -->
678
- </div><!-- /.modal-dialog -->
679
- </div><!-- /.modal -->
680
-
681
- <h2>Last Step</h2>
682
- <button class="btn btn-default" data-toggle="modal" data-target="#done">Launch wizard showing finalizing
683
- state
684
- </button>
685
- <div class="modal" id="done" tabindex="-1" role="dialog">
686
- <div class="modal-dialog modal-lg wizard-pf">
687
- <div class="modal-content">
688
- <div class="modal-header">
689
- <button type="button" class="close" data-dismiss="modal" aria-label="Close">
690
- <span aria-hidden="true">&times;</span>
691
- </button>
692
- <dt class="modal-title">Wizard Title</dt>
693
- </div>
694
- <div class="modal-body wizard-pf-body clearfix">
695
- <div class="wizard-pf-steps">
696
- <ul class="wizard-pf-steps-indicator">
697
- <li class="viewed-pf">
698
- <a><span class="wizard-pf-step-number">1</span><span class="wizard-pf-step-title">First Step</span></a>
699
- </li>
700
- <li class="viewed-pf">
701
- <a><span class="wizard-pf-step-number">2</span><span class="wizard-pf-step-title">Second Step</span></a>
702
- </li>
703
- <li class="active">
704
- <a><span class="wizard-pf-step-number">3</span><span class="wizard-pf-step-title">Review</span></a>
705
- </li>
706
- </ul>
707
- </div>
708
- <div class="wizard-pf-row">
709
- <div class="wizard-pf-sidebar">
710
- <ul class="list-group">
711
- <li class="list-group-item">
712
- <a>
713
- <span class="wizard-pf-substep-number">3A.</span>
714
- <span class="wizard-pf-substep-title">Summary</span>
715
- </a>
716
- </li>
717
- <li class="list-group-item active">
718
- <a>
719
- <span class="wizard-pf-substep-number">3B.</span>
720
- <span class="wizard-pf-substep-title">Progress</span>
721
- </a>
722
- </li>
723
- </ul>
724
- </div><!-- /.wizard-pf-sidebar -->
725
-
726
- <div class="wizard-pf-main">
727
- <div class="blank-slate-pf">
728
- <div class="spinner spinner-lg blank-slate-pf-icon"></div>
729
- <h3 class="blank-slate-pf-main-action">Deployment in progress</h3>
730
- <p class="blank-slate-pf-secondary-action">Lorem ipsum dolor sit amet, porta at suspendisse ac, ut wisi
731
- vivamus, lorem sociosqu eget nunc amet. </p>
732
- </div>
733
-
734
- </div>
735
- </div>
736
- </div><!-- /.wizard-pf-body -->
737
-
738
- <!-- TODO: disable buttons -->
739
- <div class="modal-footer wizard-pf-footer">
740
- <button type="button" class="btn btn-default btn-cancel" data-dismiss="modal">Cancel</button>
741
- <button type="button" class="btn btn-default disabled" data-dismiss="modal">
742
- <span class="i fa fa-angle-left"></span>
743
- Back
744
- </button>
745
- <button type="button" class="btn btn-primary disabled" data-dismiss="modal">
746
- Deploy
747
- <span class="i fa fa-angle-right"></span>
748
- </button>
749
- </div><!-- /.wizard-pf-footer -->
750
-
751
- </div><!-- /.modal-content -->
752
- </div><!-- /.modal-dialog -->
753
- </div><!-- /.modal -->
754
- </div><!-- /container -->
755
- </body>
756
- </html>