patternfly-sass 0.0.0.pre.semantically.pre.released

Sign up to get free protection for your applications and to get access to all the features.
Files changed (361) hide show
  1. checksums.yaml +7 -0
  2. data/CODE_OF_CONDUCT.md +4 -0
  3. data/LICENSE.txt +205 -0
  4. data/OPEN_SOURCE_LICENCES.txt +1366 -0
  5. data/QUICKSTART.md +210 -0
  6. data/README.md +438 -0
  7. data/dist/fonts/FontAwesome.otf +0 -0
  8. data/dist/fonts/OpenSans-Bold-webfont.eot +0 -0
  9. data/dist/fonts/OpenSans-Bold-webfont.svg +19028 -0
  10. data/dist/fonts/OpenSans-Bold-webfont.ttf +0 -0
  11. data/dist/fonts/OpenSans-Bold-webfont.woff +0 -0
  12. data/dist/fonts/OpenSans-Bold-webfont.woff2 +0 -0
  13. data/dist/fonts/OpenSans-BoldItalic-webfont.eot +0 -0
  14. data/dist/fonts/OpenSans-BoldItalic-webfont.svg +19036 -0
  15. data/dist/fonts/OpenSans-BoldItalic-webfont.ttf +0 -0
  16. data/dist/fonts/OpenSans-BoldItalic-webfont.woff +0 -0
  17. data/dist/fonts/OpenSans-BoldItalic-webfont.woff2 +0 -0
  18. data/dist/fonts/OpenSans-ExtraBold-webfont.eot +0 -0
  19. data/dist/fonts/OpenSans-ExtraBold-webfont.svg +19030 -0
  20. data/dist/fonts/OpenSans-ExtraBold-webfont.ttf +0 -0
  21. data/dist/fonts/OpenSans-ExtraBold-webfont.woff +0 -0
  22. data/dist/fonts/OpenSans-ExtraBold-webfont.woff2 +0 -0
  23. data/dist/fonts/OpenSans-ExtraBoldItalic-webfont.eot +0 -0
  24. data/dist/fonts/OpenSans-ExtraBoldItalic-webfont.svg +19036 -0
  25. data/dist/fonts/OpenSans-ExtraBoldItalic-webfont.ttf +0 -0
  26. data/dist/fonts/OpenSans-ExtraBoldItalic-webfont.woff +0 -0
  27. data/dist/fonts/OpenSans-ExtraBoldItalic-webfont.woff2 +0 -0
  28. data/dist/fonts/OpenSans-Italic-webfont.eot +0 -0
  29. data/dist/fonts/OpenSans-Italic-webfont.svg +19043 -0
  30. data/dist/fonts/OpenSans-Italic-webfont.ttf +0 -0
  31. data/dist/fonts/OpenSans-Italic-webfont.woff +0 -0
  32. data/dist/fonts/OpenSans-Italic-webfont.woff2 +0 -0
  33. data/dist/fonts/OpenSans-Light-webfont.eot +0 -0
  34. data/dist/fonts/OpenSans-Light-webfont.svg +19026 -0
  35. data/dist/fonts/OpenSans-Light-webfont.ttf +0 -0
  36. data/dist/fonts/OpenSans-Light-webfont.woff +0 -0
  37. data/dist/fonts/OpenSans-Light-webfont.woff2 +0 -0
  38. data/dist/fonts/OpenSans-LightItalic-webfont.eot +0 -0
  39. data/dist/fonts/OpenSans-LightItalic-webfont.svg +19039 -0
  40. data/dist/fonts/OpenSans-LightItalic-webfont.ttf +0 -0
  41. data/dist/fonts/OpenSans-LightItalic-webfont.woff +0 -0
  42. data/dist/fonts/OpenSans-LightItalic-webfont.woff2 +0 -0
  43. data/dist/fonts/OpenSans-Regular-webfont.eot +0 -0
  44. data/dist/fonts/OpenSans-Regular-webfont.svg +19030 -0
  45. data/dist/fonts/OpenSans-Regular-webfont.ttf +0 -0
  46. data/dist/fonts/OpenSans-Regular-webfont.woff +0 -0
  47. data/dist/fonts/OpenSans-Regular-webfont.woff2 +0 -0
  48. data/dist/fonts/OpenSans-Semibold-webfont.eot +0 -0
  49. data/dist/fonts/OpenSans-Semibold-webfont.svg +19030 -0
  50. data/dist/fonts/OpenSans-Semibold-webfont.ttf +0 -0
  51. data/dist/fonts/OpenSans-Semibold-webfont.woff +0 -0
  52. data/dist/fonts/OpenSans-Semibold-webfont.woff2 +0 -0
  53. data/dist/fonts/OpenSans-SemiboldItalic-webfont.eot +0 -0
  54. data/dist/fonts/OpenSans-SemiboldItalic-webfont.svg +19043 -0
  55. data/dist/fonts/OpenSans-SemiboldItalic-webfont.ttf +0 -0
  56. data/dist/fonts/OpenSans-SemiboldItalic-webfont.woff +0 -0
  57. data/dist/fonts/OpenSans-SemiboldItalic-webfont.woff2 +0 -0
  58. data/dist/fonts/PatternFlyIcons-webfont.eot +0 -0
  59. data/dist/fonts/PatternFlyIcons-webfont.svg +140 -0
  60. data/dist/fonts/PatternFlyIcons-webfont.ttf +0 -0
  61. data/dist/fonts/PatternFlyIcons-webfont.woff +0 -0
  62. data/dist/fonts/fontawesome-webfont.eot +0 -0
  63. data/dist/fonts/fontawesome-webfont.svg +2671 -0
  64. data/dist/fonts/fontawesome-webfont.ttf +0 -0
  65. data/dist/fonts/fontawesome-webfont.woff +0 -0
  66. data/dist/fonts/fontawesome-webfont.woff2 +0 -0
  67. data/dist/fonts/glyphicons-halflings-regular.eot +0 -0
  68. data/dist/fonts/glyphicons-halflings-regular.svg +288 -0
  69. data/dist/fonts/glyphicons-halflings-regular.ttf +0 -0
  70. data/dist/fonts/glyphicons-halflings-regular.woff +0 -0
  71. data/dist/fonts/glyphicons-halflings-regular.woff2 +0 -0
  72. data/dist/img/Logo_Horizontal_Reversed.svg +49 -0
  73. data/dist/img/OpenShift-Logo-NoText.svg +51 -0
  74. data/dist/img/OpenShift-Logo-Text.svg +95 -0
  75. data/dist/img/OpenShift-logo.svg +69 -0
  76. data/dist/img/RH_Atomic-Logo-NoText.svg +53 -0
  77. data/dist/img/RH_Atomic-Logo-Text.svg +91 -0
  78. data/dist/img/RH_atomic.svg +88 -0
  79. data/dist/img/apple-touch-icon-precomposed-114.png +0 -0
  80. data/dist/img/apple-touch-icon-precomposed-144.png +0 -0
  81. data/dist/img/apple-touch-icon-precomposed-152.png +0 -0
  82. data/dist/img/apple-touch-icon-precomposed-180.png +0 -0
  83. data/dist/img/apple-touch-icon-precomposed-57.png +0 -0
  84. data/dist/img/apple-touch-icon-precomposed-72.png +0 -0
  85. data/dist/img/apple-touch-icon-precomposed-76.png +0 -0
  86. data/dist/img/bg-login-2.png +0 -0
  87. data/dist/img/bg-login.jpg +0 -0
  88. data/dist/img/bg-login.png +0 -0
  89. data/dist/img/bg-modal-about-pf.png +0 -0
  90. data/dist/img/bg-navbar-pf-alt.svg +9 -0
  91. data/dist/img/brand-alt.svg +88 -0
  92. data/dist/img/brand.svg +87 -0
  93. data/dist/img/dropbox-logo.svg +15 -0
  94. data/dist/img/facebook-logo.svg +12 -0
  95. data/dist/img/favicon.ico +0 -0
  96. data/dist/img/fedora-logo.png +0 -0
  97. data/dist/img/git-logo.svg +21 -0
  98. data/dist/img/github-logo.svg +17 -0
  99. data/dist/img/gmail.svg +23 -0
  100. data/dist/img/google-calendar.svg +26 -0
  101. data/dist/img/google-drive.svg +17 -0
  102. data/dist/img/google-logo.svg +19 -0
  103. data/dist/img/instagram-logo.png +0 -0
  104. data/dist/img/kubernetes-Logo.svg +60 -0
  105. data/dist/img/kubernetes.svg +8 -0
  106. data/dist/img/linkedin-logo.svg +13 -0
  107. data/dist/img/logo-alt.svg +18 -0
  108. data/dist/img/logo.svg +22 -0
  109. data/dist/img/open-id-logo.svg +19 -0
  110. data/dist/img/rcue-full.svg +221 -0
  111. data/dist/img/rcue.svg +92 -0
  112. data/dist/img/redhat_reverse.png +0 -0
  113. data/dist/img/skype-logo.svg +23 -0
  114. data/dist/img/spinner-inverse-lg.gif +0 -0
  115. data/dist/img/spinner-inverse-sm.gif +0 -0
  116. data/dist/img/spinner-inverse-xs.gif +0 -0
  117. data/dist/img/spinner-inverse.gif +0 -0
  118. data/dist/img/spinner-lg.gif +0 -0
  119. data/dist/img/spinner-sm.gif +0 -0
  120. data/dist/img/spinner-xs.gif +0 -0
  121. data/dist/img/spinner.gif +0 -0
  122. data/dist/img/stack-exchange-logo.svg +21 -0
  123. data/dist/img/twitter-logo.svg +19 -0
  124. data/dist/js/patternfly-functions-base.js +7 -0
  125. data/dist/js/patternfly-functions-charts.js +13 -0
  126. data/dist/js/patternfly-functions-colors.js +8 -0
  127. data/dist/js/patternfly-functions-count-chars.js +59 -0
  128. data/dist/js/patternfly-functions-data-tables.js +149 -0
  129. data/dist/js/patternfly-functions-fixed-heights.js +109 -0
  130. data/dist/js/patternfly-functions-list.js +79 -0
  131. data/dist/js/patternfly-functions-navigation.js +113 -0
  132. data/dist/js/patternfly-functions-popovers.js +37 -0
  133. data/dist/js/patternfly-functions-sidebar.js +31 -0
  134. data/dist/js/patternfly-functions-tree-grid.js +82 -0
  135. data/dist/js/patternfly-functions-vertical-nav.js +610 -0
  136. data/dist/js/patternfly-functions.js +1307 -0
  137. data/dist/js/patternfly-functions.min.js +1 -0
  138. data/dist/js/patternfly-settings-base.d.ts +9 -0
  139. data/dist/js/patternfly-settings-base.js +16 -0
  140. data/dist/js/patternfly-settings-charts.d.ts +92 -0
  141. data/dist/js/patternfly-settings-charts.js +449 -0
  142. data/dist/js/patternfly-settings-colors.d.ts +88 -0
  143. data/dist/js/patternfly-settings-colors.js +91 -0
  144. data/dist/js/patternfly-settings.d.ts +3 -0
  145. data/dist/js/patternfly-settings.js +558 -0
  146. data/dist/js/patternfly-settings.min.js +1 -0
  147. data/dist/js/patternfly.dataTables.pfColVis.js +151 -0
  148. data/dist/js/patternfly.dataTables.pfEmpty.js +253 -0
  149. data/dist/js/patternfly.dataTables.pfEmpty.min.js +1 -0
  150. data/dist/js/patternfly.dataTables.pfFilter.js +429 -0
  151. data/dist/js/patternfly.dataTables.pfFilter.min.js +1 -0
  152. data/dist/js/patternfly.dataTables.pfPagination.js +401 -0
  153. data/dist/js/patternfly.dataTables.pfPagination.min.js +1 -0
  154. data/dist/js/patternfly.dataTables.pfResize.js +214 -0
  155. data/dist/js/patternfly.dataTables.pfResize.min.js +1 -0
  156. data/dist/js/patternfly.dataTables.pfSelect.js +281 -0
  157. data/dist/js/patternfly.dataTables.pfSelect.min.js +1 -0
  158. data/dist/js/patternfly.js +1866 -0
  159. data/dist/js/patternfly.min.js +2 -0
  160. data/dist/sass/_patternfly-compass.scss +3 -0
  161. data/dist/sass/_patternfly-sprockets.scss +3 -0
  162. data/dist/sass/_patternfly.scss +147 -0
  163. data/dist/sass/patternfly/_about-modal.scss +44 -0
  164. data/dist/sass/patternfly/_accordion.scss +18 -0
  165. data/dist/sass/patternfly/_alerts.scss +44 -0
  166. data/dist/sass/patternfly/_application-launcher.scss +213 -0
  167. data/dist/sass/patternfly/_badges.scss +11 -0
  168. data/dist/sass/patternfly/_blank-slate.scss +52 -0
  169. data/dist/sass/patternfly/_bootstrap-combobox.scss +35 -0
  170. data/dist/sass/patternfly/_bootstrap-datepicker.scss +132 -0
  171. data/dist/sass/patternfly/_bootstrap-mixin-overrides.scss +33 -0
  172. data/dist/sass/patternfly/_bootstrap-select.scss +108 -0
  173. data/dist/sass/patternfly/_bootstrap-slider.scss +66 -0
  174. data/dist/sass/patternfly/_bootstrap-switch.scss +19 -0
  175. data/dist/sass/patternfly/_bootstrap-touchspin.scss +31 -0
  176. data/dist/sass/patternfly/_bootstrap-treeview.scss +89 -0
  177. data/dist/sass/patternfly/_breadcrumbs.scss +20 -0
  178. data/dist/sass/patternfly/_buttons.scss +50 -0
  179. data/dist/sass/patternfly/_card-view.scss +105 -0
  180. data/dist/sass/patternfly/_cards.scss +238 -0
  181. data/dist/sass/patternfly/_charts.scss +388 -0
  182. data/dist/sass/patternfly/_close.scss +16 -0
  183. data/dist/sass/patternfly/_color-variables.scss +85 -0
  184. data/dist/sass/patternfly/_context-selector.scss +125 -0
  185. data/dist/sass/patternfly/_datatables.scss +186 -0
  186. data/dist/sass/patternfly/_date-and-time.scss +35 -0
  187. data/dist/sass/patternfly/_dropdowns.scss +235 -0
  188. data/dist/sass/patternfly/_experimental-features.scss +48 -0
  189. data/dist/sass/patternfly/_filter.scss +42 -0
  190. data/dist/sass/patternfly/_fonts.scss +124 -0
  191. data/dist/sass/patternfly/_footer.scss +19 -0
  192. data/dist/sass/patternfly/_forms.scss +192 -0
  193. data/dist/sass/patternfly/_icons.scss +371 -0
  194. data/dist/sass/patternfly/_infotip.scss +145 -0
  195. data/dist/sass/patternfly/_labels.scss +17 -0
  196. data/dist/sass/patternfly/_layouts.scss +140 -0
  197. data/dist/sass/patternfly/_links.scss +5 -0
  198. data/dist/sass/patternfly/_list-group.scss +23 -0
  199. data/dist/sass/patternfly/_list-pf.scss +178 -0
  200. data/dist/sass/patternfly/_list-view-dnd.scss +53 -0
  201. data/dist/sass/patternfly/_list-view.scss +390 -0
  202. data/dist/sass/patternfly/_login.scss +341 -0
  203. data/dist/sass/patternfly/_mixins.scss +81 -0
  204. data/dist/sass/patternfly/_modals.scss +49 -0
  205. data/dist/sass/patternfly/_nav-vertical-alt.scss +168 -0
  206. data/dist/sass/patternfly/_navbar-alt.scss +141 -0
  207. data/dist/sass/patternfly/_navbar-vertical.scss +168 -0
  208. data/dist/sass/patternfly/_navbar.scss +579 -0
  209. data/dist/sass/patternfly/_notifications-drawer.scss +250 -0
  210. data/dist/sass/patternfly/_pager.scss +68 -0
  211. data/dist/sass/patternfly/_pagination.scss +121 -0
  212. data/dist/sass/patternfly/_panels.scss +134 -0
  213. data/dist/sass/patternfly/_popovers.scss +52 -0
  214. data/dist/sass/patternfly/_progress-bars.scss +121 -0
  215. data/dist/sass/patternfly/_rcue-about-modal.scss +45 -0
  216. data/dist/sass/patternfly/_rcue-additions.scss +11 -0
  217. data/dist/sass/patternfly/_rcue-login.scss +75 -0
  218. data/dist/sass/patternfly/_rcue-variables.scss +57 -0
  219. data/dist/sass/patternfly/_rcue.scss +6 -0
  220. data/dist/sass/patternfly/_search.scss +64 -0
  221. data/dist/sass/patternfly/_sidebar.scss +176 -0
  222. data/dist/sass/patternfly/_skip-to-content.scss +12 -0
  223. data/dist/sass/patternfly/_spinner.scss +72 -0
  224. data/dist/sass/patternfly/_syntax-highlighting.scss +36 -0
  225. data/dist/sass/patternfly/_table-view.scss +188 -0
  226. data/dist/sass/patternfly/_tables.scss +90 -0
  227. data/dist/sass/patternfly/_tabs.scss +118 -0
  228. data/dist/sass/patternfly/_time-picker.scss +98 -0
  229. data/dist/sass/patternfly/_toast.scss +75 -0
  230. data/dist/sass/patternfly/_toolbar.scss +190 -0
  231. data/dist/sass/patternfly/_tooltip.scss +15 -0
  232. data/dist/sass/patternfly/_tree-list-view.scss +83 -0
  233. data/dist/sass/patternfly/_type.scss +29 -0
  234. data/dist/sass/patternfly/_variables.scss +595 -0
  235. data/dist/sass/patternfly/_vertical-nav.scss +944 -0
  236. data/dist/sass/patternfly/_wizard.scss +665 -0
  237. data/dist/sass/patternfly/dependencies/bootstrap-combobox/combobox.scss +57 -0
  238. data/dist/sass/patternfly/dependencies/bootstrap-datepicker/datepicker.scss +242 -0
  239. data/dist/sass/patternfly/dependencies/bootstrap-datepicker/datepicker3.scss +257 -0
  240. data/dist/sass/patternfly/dependencies/bootstrap-select/bootstrap-select.scss +389 -0
  241. data/dist/sass/patternfly/dependencies/bootstrap-select/variables.scss +9 -0
  242. data/dist/sass/patternfly/dependencies/bootstrap-slider/_mixins.scss +25 -0
  243. data/dist/sass/patternfly/dependencies/bootstrap-slider/_rules.scss +246 -0
  244. data/dist/sass/patternfly/dependencies/bootstrap-slider/_variables.scss +28 -0
  245. data/dist/sass/patternfly/dependencies/bootstrap-slider/bootstrap-slider.scss +42 -0
  246. data/dist/sass/patternfly/dependencies/bootstrap-switch/bootstrap-switch.scss +195 -0
  247. data/dist/sass/patternfly/dependencies/bootstrap-switch/build.scss +3 -0
  248. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/alerts.scss +14 -0
  249. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/background-variant.scss +9 -0
  250. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/border-radius.scss +18 -0
  251. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/buttons.scss +68 -0
  252. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/center-block.scss +7 -0
  253. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/clearfix.scss +22 -0
  254. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/forms.scss +85 -0
  255. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/gradients.scss +59 -0
  256. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/grid-framework.scss +98 -0
  257. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/grid.scss +122 -0
  258. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/hide-text.scss +21 -0
  259. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/image.scss +33 -0
  260. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/labels.scss +12 -0
  261. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/list-group.scss +29 -0
  262. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/nav-divider.scss +10 -0
  263. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/nav-vertical-align.scss +9 -0
  264. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/opacity.scss +8 -0
  265. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/pagination.scss +23 -0
  266. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/panels.scss +24 -0
  267. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/progress-bar.scss +10 -0
  268. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/reset-filter.scss +8 -0
  269. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/reset-text.scss +18 -0
  270. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/resize.scss +6 -0
  271. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/responsive-visibility.scss +15 -0
  272. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/size.scss +10 -0
  273. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/tab-focus.scss +9 -0
  274. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/table-row.scss +28 -0
  275. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/text-emphasis.scss +9 -0
  276. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/text-overflow.scss +8 -0
  277. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/vendor-prefixes.scss +227 -0
  278. data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins.scss +40 -0
  279. data/dist/sass/patternfly/dependencies/bootstrap-switch/variables.scss +862 -0
  280. data/dist/sass/patternfly/dependencies/bootstrap-touchspin/_jquery.bootstrap-touchspin.scss +45 -0
  281. data/dist/sass/patternfly/dependencies/c3/_c3.scss +178 -0
  282. data/dist/sass/patternfly/dependencies/eonasdan-bootstrap-datetimepicker/_bootstrap-datetimepicker.scss +344 -0
  283. data/dist/sass/patternfly/dependencies/eonasdan-bootstrap-datetimepicker/bootstrap-datetimepicker-build.scss +16 -0
  284. data/dist/sass/rcue/_about-modal.scss +44 -0
  285. data/dist/sass/rcue/_accordion.scss +18 -0
  286. data/dist/sass/rcue/_alerts.scss +44 -0
  287. data/dist/sass/rcue/_badges.scss +11 -0
  288. data/dist/sass/rcue/_blank-slate.scss +52 -0
  289. data/dist/sass/rcue/_bootstrap-combobox.scss +35 -0
  290. data/dist/sass/rcue/_bootstrap-datepicker.scss +132 -0
  291. data/dist/sass/rcue/_bootstrap-mixin-overrides.scss +33 -0
  292. data/dist/sass/rcue/_bootstrap-select.scss +108 -0
  293. data/dist/sass/rcue/_bootstrap-slider.scss +66 -0
  294. data/dist/sass/rcue/_bootstrap-switch.scss +19 -0
  295. data/dist/sass/rcue/_bootstrap-touchspin.scss +31 -0
  296. data/dist/sass/rcue/_bootstrap-treeview.scss +89 -0
  297. data/dist/sass/rcue/_breadcrumbs.scss +20 -0
  298. data/dist/sass/rcue/_buttons.scss +50 -0
  299. data/dist/sass/rcue/_card-view.scss +105 -0
  300. data/dist/sass/rcue/_cards.scss +238 -0
  301. data/dist/sass/rcue/_charts.scss +388 -0
  302. data/dist/sass/rcue/_close.scss +16 -0
  303. data/dist/sass/rcue/_color-variables.scss +85 -0
  304. data/dist/sass/rcue/_context-selector.scss +125 -0
  305. data/dist/sass/rcue/_datatables.scss +186 -0
  306. data/dist/sass/rcue/_date-and-time.scss +35 -0
  307. data/dist/sass/rcue/_dropdowns.scss +235 -0
  308. data/dist/sass/rcue/_experimental-features.scss +48 -0
  309. data/dist/sass/rcue/_filter.scss +42 -0
  310. data/dist/sass/rcue/_fonts.scss +124 -0
  311. data/dist/sass/rcue/_footer.scss +19 -0
  312. data/dist/sass/rcue/_forms.scss +192 -0
  313. data/dist/sass/rcue/_icons.scss +371 -0
  314. data/dist/sass/rcue/_infotip.scss +145 -0
  315. data/dist/sass/rcue/_labels.scss +17 -0
  316. data/dist/sass/rcue/_layouts.scss +140 -0
  317. data/dist/sass/rcue/_links.scss +5 -0
  318. data/dist/sass/rcue/_list-group.scss +23 -0
  319. data/dist/sass/rcue/_list-pf.scss +178 -0
  320. data/dist/sass/rcue/_list-view-dnd.scss +53 -0
  321. data/dist/sass/rcue/_list-view.scss +390 -0
  322. data/dist/sass/rcue/_login.scss +341 -0
  323. data/dist/sass/rcue/_mixins.scss +81 -0
  324. data/dist/sass/rcue/_modals.scss +49 -0
  325. data/dist/sass/rcue/_nav-vertical-alt.scss +168 -0
  326. data/dist/sass/rcue/_navbar-alt.scss +141 -0
  327. data/dist/sass/rcue/_navbar-vertical.scss +168 -0
  328. data/dist/sass/rcue/_navbar.scss +579 -0
  329. data/dist/sass/rcue/_notifications-drawer.scss +250 -0
  330. data/dist/sass/rcue/_pager.scss +68 -0
  331. data/dist/sass/rcue/_pagination.scss +121 -0
  332. data/dist/sass/rcue/_panels.scss +134 -0
  333. data/dist/sass/rcue/_patternfly-additions.scss +76 -0
  334. data/dist/sass/rcue/_patternfly.scss +31 -0
  335. data/dist/sass/rcue/_popovers.scss +52 -0
  336. data/dist/sass/rcue/_progress-bars.scss +121 -0
  337. data/dist/sass/rcue/_rcue-about-modal.scss +45 -0
  338. data/dist/sass/rcue/_rcue-login.scss +75 -0
  339. data/dist/sass/rcue/_rcue-variables.scss +57 -0
  340. data/dist/sass/rcue/_search.scss +64 -0
  341. data/dist/sass/rcue/_sidebar.scss +176 -0
  342. data/dist/sass/rcue/_skip-to-content.scss +12 -0
  343. data/dist/sass/rcue/_spinner.scss +72 -0
  344. data/dist/sass/rcue/_syntax-highlighting.scss +36 -0
  345. data/dist/sass/rcue/_table-view.scss +188 -0
  346. data/dist/sass/rcue/_tables.scss +90 -0
  347. data/dist/sass/rcue/_tabs.scss +118 -0
  348. data/dist/sass/rcue/_time-picker.scss +98 -0
  349. data/dist/sass/rcue/_toast.scss +75 -0
  350. data/dist/sass/rcue/_toolbar.scss +190 -0
  351. data/dist/sass/rcue/_tooltip.scss +15 -0
  352. data/dist/sass/rcue/_tree-list-view.scss +83 -0
  353. data/dist/sass/rcue/_type.scss +29 -0
  354. data/dist/sass/rcue/_variables.scss +595 -0
  355. data/dist/sass/rcue/_vertical-nav.scss +944 -0
  356. data/dist/sass/rcue/_wizard.scss +665 -0
  357. data/lib/patternfly-sass/engine.rb +11 -0
  358. data/lib/patternfly-sass/version.rb +3 -0
  359. data/lib/patternfly-sass.rb +92 -0
  360. data/patternfly-sass.gemspec +31 -0
  361. metadata +445 -0
@@ -0,0 +1 @@
1
+ !function($){"use strict";void 0!==patternfly&&($.pfBreakpoints=patternfly.pfBreakpoints)}(jQuery),function($){"use strict";$.fn.pfList=function(){function toggleCollapse(toggle){var $toggle,$expansion,$collapse,$listItem;$toggle=$(toggle),$expansion=$toggle.parentsUntil(".list-pf","[data-list=expansion]").first(),$expansion.length||($expansion=$toggle.closest(".list-pf-item, .list-pf-expansion")),$collapse=$expansion.find(".collapse").first(),$collapse.toggleClass("in"),updateChevron($expansion,$collapse.hasClass("in")),$listItem=$expansion.closest(".list-pf-item"),updateActive($listItem,$listItem.find(".collapse").first().hasClass("in"))}function updateActive($listItem,expanded){expanded?$listItem.addClass("active"):$listItem.removeClass("active")}function updateChevron($expansion,expanded){var $chevron=$expansion.find(".list-pf-chevron .fa").first();expanded?($chevron.removeClass("fa-angle-right"),$chevron.addClass("fa-angle-down")):($chevron.addClass("fa-angle-right"),$chevron.removeClass("fa-angle-down"))}return function(list){list.find("[data-list=expansion], .list-pf-item, .list-pf-expansion").each(function(index,element){var $expansion=$(element),$collapse=$expansion.find(".collapse").first(),expanded=$collapse.hasClass("in");updateChevron($expansion,expanded),$expansion.hasClass("list-pf-item")&&updateActive($expansion,expanded)}),list.find(".list-pf-container").each(function(index,element){var $element=$(element),$toggles=$element.find("[data-list=toggle]");$toggles.length||($toggles=$element),$toggles.on("keydown",function(event){13!==event.keyCode&&32!==event.keyCode||(toggleCollapse(this),event.stopPropagation(),event.preventDefault())}),$toggles.on("click",function(event){toggleCollapse(this),event.stopPropagation(),event.preventDefault()})})}(this),this}}(jQuery),function($){"use strict";$.fn.sidebar=function(){var documentHeight=0,navbarpfHeight=0,colHeight=0;$(".navbar-pf .navbar-toggle").is(":hidden")&&(documentHeight=$(document).height(),navbarpfHeight=$(".navbar-pf").outerHeight(),colHeight=documentHeight-navbarpfHeight),$(".sidebar-pf").parent(".row").children('[class*="col-"]').css({"min-height":colHeight})},$(document).ready(function(){$(".sidebar-pf").length>0&&0===$(".datatable").length&&$.fn.sidebar()}),$(window).on("resize",function(){$(".sidebar-pf").length>0&&$.fn.sidebar()})}(jQuery),function($){"use strict";$.fn.popovers=function(){return this.popover(),this.filter("[data-close=true]").each(function(index,element){var $this=$(element),title=$this.attr("data-original-title")+'<button type="button" class="close" aria-hidden="true"><span class="pficon pficon-close"></span></button>';$this.attr("data-original-title",title)}),this.on("click",function(e){var $this=$(this),$title=$this.next(".popover").find(".popover-title");$title.find(".close").parent(".popover-title").addClass("closable"),$title.find(".close").on("click",function(){$this.popover("hide")}),e.preventDefault()}),this}}(jQuery),function($){"use strict";$.fn.dataTableExt&&($.extend(!0,$.fn.dataTable.defaults,{bDestroy:!0,bAutoWidth:!1,iDisplayLength:20,sDom:"<'dataTables_header' f i r ><'table-responsive' t ><'dataTables_footer' p >",oLanguage:{sInfo:"Showing <b>_START_</b> to <b>_END_</b> of <b>_TOTAL_</b> Items",sInfoFiltered:"(of <b>_MAX_</b>)",sInfoEmpty:"Showing <b>0</b> Results",sZeroRecords:"<p>Suggestions</p><ul><li>Check the javascript regular expression syntax of the search term.</li><li>Check that the correct menu option is chosen (token ID vs. user ID).</li><li>Use wildcards (* to match 0 or more characters, + to match 1 or more characters, ? to match 0 or 1 character).</li><li>Clear the search field, then click Search to return to the 20 most recent records.</li></ul>",sSearch:""},sPaginationType:"bootstrap_input",oSearch:{sSearch:"",bRegex:!0,bSmart:!1}}),$.extend($.fn.dataTableExt.oStdClasses,{sWrapper:"dataTables_wrapper"}),$.fn.dataTableExt.oApi.fnPagingInfo=function(oSettings){return{iStart:oSettings._iDisplayStart,iEnd:oSettings.fnDisplayEnd(),iLength:oSettings._iDisplayLength,iTotal:oSettings.fnRecordsTotal(),iFilteredTotal:oSettings.fnRecordsDisplay(),iPage:-1===oSettings._iDisplayLength?0:Math.ceil(oSettings._iDisplayStart/oSettings._iDisplayLength),iTotalPages:-1===oSettings._iDisplayLength?0:Math.ceil(oSettings.fnRecordsDisplay()/oSettings._iDisplayLength)}},$.extend($.fn.dataTableExt.oPagination,{bootstrap_input:{fnInit:function(oSettings,nPaging,fnDraw){var els,nInput,fnClickHandler=function(e){e.preventDefault(),oSettings.oApi._fnPageChange(oSettings,e.data.action)&&fnDraw(oSettings)};$(nPaging).append('<ul class="pagination"> <li class="first disabled"><span class="i fa fa-angle-double-left"></span></li> <li class="prev disabled"><span class="i fa fa-angle-left"></span></li></ul><div class="pagination-input"> <input type="text" class="paginate_input"> <span class="paginate_of">of <b>3</b></span></div><ul class="pagination"> <li class="next disabled"><span class="i fa fa-angle-right"></span></li> <li class="last disabled"><span class="i fa fa-angle-double-right"></span></li></ul>'),els=$("li",nPaging),$(els[0]).bind("click.DT",{action:"first"},fnClickHandler),$(els[1]).bind("click.DT",{action:"previous"},fnClickHandler),$(els[2]).bind("click.DT",{action:"next"},fnClickHandler),$(els[3]).bind("click.DT",{action:"last"},fnClickHandler),nInput=$("input",nPaging),$(nInput).keyup(function(e){var iNewStart;if(38===e.which||39===e.which?this.value+=1:(37===e.which||40===e.which)&&this.value>1&&(this.value-=1),""!==this.value&&this.value.match(/[0-9]/)){if((iNewStart=oSettings._iDisplayLength*(this.value-1))>=oSettings.fnRecordsDisplay())return oSettings._iDisplayStart=(Math.ceil((oSettings.fnRecordsDisplay()-1)/oSettings._iDisplayLength)-1)*oSettings._iDisplayLength,void fnDraw(oSettings);oSettings._iDisplayStart=iNewStart,fnDraw(oSettings)}})},fnUpdate:function(oSettings,fnDraw){var i,oPaging=oSettings.oInstance.fnPagingInfo(),an=oSettings.aanFeatures.p,ien=an.length,iPages=Math.ceil(oSettings.fnRecordsDisplay()/oSettings._iDisplayLength),iCurrentPage=Math.ceil(oSettings._iDisplayStart/oSettings._iDisplayLength)+1;for(i=0;i<ien;i+=1)$(".paginate_input",an[i]).val(iCurrentPage).siblings(".paginate_of").find("b").html(iPages),0===oPaging.iPage?($("li.first",an[i]).addClass("disabled"),$("li.prev",an[i]).addClass("disabled")):($("li.first",an[i]).removeClass("disabled"),$("li.prev",an[i]).removeClass("disabled")),oPaging.iPage===oPaging.iTotalPages-1||0===oPaging.iTotalPages?($("li.next",an[i]).addClass("disabled"),$("li.last",an[i]).addClass("disabled")):($("li.next",an[i]).removeClass("disabled"),$("li.last",an[i]).removeClass("disabled"))}}}))}(jQuery),function($){"use strict";$.fn.navigation=function(){var navElement=$(".layout-pf-alt-fixed .nav-pf-vertical-alt"),bodyContentElement=$(".container-pf-alt-nav-pf-vertical-alt"),toggleNavBarButton=$(".navbar-toggle"),explicitCollapse=!1,checkNavState=function(){var width=$(window).width();navElement.removeClass("hidden show-mobile-nav collapsed"),bodyContentElement.removeClass("collapsed-nav hidden-nav"),(width<$.pfBreakpoints.desktop||explicitCollapse)&&(navElement.addClass("collapsed"),bodyContentElement.addClass("collapsed-nav")),width<$.pfBreakpoints.tablet&&(navElement.addClass("hidden"),navElement.removeClass("collapsed"),bodyContentElement.removeClass("collapsed-nav"),bodyContentElement.addClass("hidden-nav"))},collapseMenu=function(){navElement.addClass("collapsed"),bodyContentElement.addClass("collapsed-nav"),explicitCollapse=!0},enableTransitions=function(){$("html").addClass("transitions")},expandMenu=function(){navElement.removeClass("collapsed"),bodyContentElement.removeClass("collapsed-nav"),explicitCollapse=!1},bindMenuBehavior=function(){toggleNavBarButton.on("click",function(e){var inMobileState=bodyContentElement.hasClass("hidden-nav");enableTransitions(),inMobileState&&navElement.hasClass("show-mobile-nav")?navElement.removeClass("show-mobile-nav"):inMobileState?navElement.addClass("show-mobile-nav"):navElement.hasClass("collapsed")?expandMenu():collapseMenu()})},setTooltips=function(){$('.nav-pf-vertical-alt [data-toggle="tooltip"]').tooltip({container:"body",delay:{show:"500",hide:"200"}}),$(".nav-pf-vertical-alt").on("show.bs.tooltip",function(e){return $(this).hasClass("collapsed")})};$(window).on("resize",function(){checkNavState(),enableTransitions()}),function(){checkNavState(),bindMenuBehavior(),setTooltips()}()},$(document).ready(function(){$(".nav-pf-vertical-alt").length>0&&$.fn.navigation()})}(jQuery),function($){"use strict";$.fn.countRemainingChars=function(options){var settings=$.extend({charsMaxLimit:100,charsWarnRemaining:5,blockInputAtMaxLimit:!1},options),$taFld=this,$countFld=$("#"+settings.countFld).text(settings.charsMaxLimit),charsRemainingFn=function(charsLength){var charsRemaining=settings.charsMaxLimit-charsLength;$countFld.text(charsRemaining),$countFld.toggleClass("chars-warn-remaining-pf",charsRemaining<=settings.charsWarnRemaining),charsRemaining<0?$taFld.trigger("overCharsMaxLimitEvent",$taFld.attr("id")):$taFld.trigger("underCharsMaxLimitEvent",$taFld.attr("id"))};return this.on("paste",function(event){setTimeout(function(){var maxTxt,charsLength=$taFld.val().length;settings.blockInputAtMaxLimit&&charsLength>settings.charsMaxLimit&&(maxTxt=$taFld.val(),maxTxt=maxTxt.substring(0,settings.charsMaxLimit),$taFld.val(maxTxt),charsLength=$taFld.val().length),charsRemainingFn(charsLength)},100)}),this.keyup(function(event){charsRemainingFn($taFld.val().length)}),this.keydown(function(event){var charsLength=$taFld.val().length;settings.blockInputAtMaxLimit&&charsLength>=settings.charsMaxLimit&&8!==event.keyCode&&event.preventDefault()}),this}}(jQuery),function($){"use strict";void 0!==patternfly&&($.pfPaletteColors=patternfly.pfPaletteColors)}(jQuery),function($){"use strict";void 0!==patternfly&&($.fn.pfSetDonutChartTitle=patternfly.pfSetDonutChartTitle,$.fn.pfDonutTooltipContents=patternfly.pfDonutTooltipContents,$.fn.pfGetUtilizationDonutTooltipContentsFn=patternfly.pfGetUtilizationDonutTooltipContentsFn,$.fn.pfGetBarChartTooltipContentsFn=patternfly.pfGetBarChartTooltipContentsFn,$.fn.pfSingleLineChartTooltipContentsFn=patternfly.pfSingleLineChartTooltipContentsFn,$.fn.pfPieTooltipContents=patternfly.pfPieTooltipContents,$.fn.c3ChartDefaults=patternfly.c3ChartDefaults)}(jQuery),function($){"use strict";$.fn.initCollapseHeights=function(scrollSelector){var setCollapseHeights,parentElement=this,targetScrollSelector=scrollSelector;setCollapseHeights=function(){var height,openPanel,contentHeight,bodyHeight,overflowY="hidden";height=parentElement.height(),openPanel=parentElement.find(".collapse.in"),openPanel&&openPanel.length>0&&openPanel.removeClass("in"),contentHeight=0,parentElement.children().each($.proxy(function(i,element){var $element=$(element);contentHeight+=$element.outerHeight(!0)},parentElement)).end(),bodyHeight=height-contentHeight,bodyHeight<25&&(bodyHeight=25,overflowY="auto"),openPanel&&openPanel.length>0&&openPanel.addClass("in"),setTimeout(function(){parentElement.find('[data-toggle="collapse"]').each($.proxy(function(i,element){var $element,selector,$target,scrollElement,innerHeight=0;$element=$(element),selector=$element.attr("data-target"),selector||(selector=$element.attr("href")),$target=$(selector),scrollElement=$target,targetScrollSelector&&(scrollElement=$target.find(targetScrollSelector),1===scrollElement.length?(innerHeight=0,$target.children().each($.proxy(function(j,sibling){var $sibling=$(sibling);sibling!==scrollElement[0]&&(innerHeight+=$sibling.outerHeight(!0))},$target)).end(),bodyHeight-=innerHeight):scrollElement=$target),scrollElement.css({"max-height":bodyHeight-innerHeight+"px","overflow-y":"auto"})},parentElement)).end(),parentElement.css({"overflow-y":overflowY})},100)},setCollapseHeights(),$(window).on("resize",setCollapseHeights)},$.fn.initFixedAccordion=function(){var initOpen,fixedAccordion=this;fixedAccordion.on("show.bs.collapse",".collapse",function(event){$(event.target.parentNode).addClass("panel-open")}),fixedAccordion.on("hide.bs.collapse",".collapse",function(event){$(event.target.parentNode).removeClass("panel-open")}),fixedAccordion.find(".panel").each(function(index,item){$(item).removeClass("panel-open")}),(initOpen=$(fixedAccordion.find(".collapse.in"))[0])&&$(initOpen.parentNode).addClass("panel-open")}}(jQuery),function($){"use strict";function getParent(rows,node){var parent=node.attr("data-parent");if("string"==typeof parent)return isNaN(parent)?(parent=$(parent),parent.length>1&&(parent=rows.closest(parent))):parent=$(rows[parseInt(parent,10)]),parent}function renderItem(item,parent){parent&&(parent.find(".treegrid-node > span.expand-icon").toggleClass("fa-angle-right",parent.hasClass("collapsed")).toggleClass("fa-angle-down",!parent.hasClass("collapsed")),item.toggleClass("hidden",parent.hasClass("collapsed")),parent.hasClass("collapsed")&&item.addClass("collapsed"))}function reStripe(tree){tree.find("tbody > tr").removeClass("odd"),tree.find("tbody > tr:not(.hidden):odd").addClass("odd")}$.fn.treegrid=function(options){var i,rows,_this;rows=this.find("tbody > tr"),_this=this,$.each(rows,function(){var node,parent;if(node=$(this),parent=getParent(rows,node),node.children(".treegrid-node").prepend('<span class="icon expand-icon fa"/>'),node.children(".treegrid-node").on("click",function(e){var icon=node.find("span.expand-icon");options&&"function"==typeof options.callback&&options.callback(e),icon.hasClass("fa-angle-right")&&node.removeClass("collapsed"),icon.hasClass("fa-angle-down")&&node.addClass("collapsed"),$.each(rows.slice(rows.index(node)+1),function(){renderItem($(this),getParent(rows,$(this)))}),reStripe(_this)}),parent){for(i=parent.find(".treegrid-node > span.indent").length+1;i>0;i-=1)node.children(".treegrid-node").prepend('<span class="indent"/>');renderItem(node,parent)}}),reStripe(_this)}}(jQuery),function($){"use strict";$.fn.setupVerticalNavigation=function(handleItemSelections,ignoreDrawer,userOptions){var options=$.extend({hoverDelay:500,hideDelay:700,rememberOpenState:!0,storage:"localStorage"},userOptions||{}),navElement=$(".nav-pf-vertical"),bodyContentElement=$(".container-pf-nav-pf-vertical"),toggleNavBarButton=$(".navbar-toggle"),handleResize=!0,explicitCollapse=!1,subDesktop=!1,storageLocation="sessionStorage"===options.storage?"sessionStorage":"localStorage",inMobileState=function(){return bodyContentElement.hasClass("hidden-nav")},forceResize=function(delay){setTimeout(function(){$(window).trigger("resize")},delay)},showSecondaryMenu=function(){!inMobileState()&&subDesktop||(navElement.addClass("secondary-visible-pf"),bodyContentElement.addClass("secondary-visible-pf")),subDesktop||forceResize(100)},hideSecondaryMenu=function(){navElement.removeClass("secondary-visible-pf"),bodyContentElement.removeClass("secondary-visible-pf"),navElement.find(".secondary-nav-item-pf.is-hover").length<=1&&navElement.removeClass("hover-secondary-nav-pf"),navElement.find(".mobile-nav-item-pf").each(function(index,item){$(item).removeClass("mobile-nav-item-pf")}),navElement.find(".is-hover").each(function(index,item){$(item).removeClass("is-hover")})},hideTertiaryMenu=function(){navElement.removeClass("tertiary-visible-pf"),bodyContentElement.removeClass("tertiary-visible-pf"),navElement.find(".tertiary-nav-item-pf.is-hover").length<=1&&navElement.removeClass("hover-tertiary-nav-pf"),navElement.find(".mobile-nav-item-pf").each(function(index,item){$(item).removeClass("mobile-nav-item-pf")}),navElement.find(".is-hover").each(function(index,item){$(item).removeClass("is-hover")})},setActiveItem=function(item){$(".nav-pf-vertical .list-group-item.active").removeClass("active"),item.addClass("active").parents(".list-group-item").addClass("active")},updateSecondaryMenuDisplayAfterSelection=function(){inMobileState()?(navElement.removeClass("show-mobile-nav"),hideSecondaryMenu(),navElement.find(".mobile-nav-item-pf").each(function(index,item){$(item).removeClass("mobile-nav-item-pf")})):showSecondaryMenu()},updateSecondaryCollapsedState=function(setCollapsed,collapsedItem){setCollapsed?(collapsedItem.addClass("collapsed"),navElement.addClass("collapsed-secondary-nav-pf"),bodyContentElement.addClass("collapsed-secondary-nav-pf")):(collapsedItem?collapsedItem.removeClass("collapsed"):navElement.find('[data-toggle="collapse-secondary-nav"]').each(function(index,element){$(element).removeClass("collapsed")}),navElement.removeClass("collapsed-secondary-nav-pf"),bodyContentElement.removeClass("collapsed-secondary-nav-pf"))},updateTertiaryCollapsedState=function(setCollapsed,collapsedItem){setCollapsed?(collapsedItem.addClass("collapsed"),navElement.addClass("collapsed-tertiary-nav-pf"),bodyContentElement.addClass("collapsed-tertiary-nav-pf"),updateSecondaryCollapsedState(!1)):(collapsedItem?collapsedItem.removeClass("collapsed"):navElement.find('[data-toggle="collapse-tertiary-nav"]').each(function(index,element){$(element).removeClass("collapsed")}),navElement.removeClass("collapsed-tertiary-nav-pf"),bodyContentElement.removeClass("collapsed-tertiary-nav-pf"))},updateMobileMenu=function(selected,secondaryItem){$(document).find(".list-group-item.mobile-nav-item-pf").each(function(index,item){$(item).removeClass("mobile-nav-item-pf")}),$(document).find(".list-group-item.mobile-secondary-item-pf").each(function(index,item){$(item).removeClass("mobile-secondary-item-pf")}),selected?(selected.addClass("mobile-nav-item-pf"),secondaryItem?(secondaryItem.addClass("mobile-secondary-item-pf"),navElement.removeClass("show-mobile-secondary"),navElement.addClass("show-mobile-tertiary")):(navElement.addClass("show-mobile-secondary"),navElement.removeClass("show-mobile-tertiary"))):(navElement.removeClass("show-mobile-secondary"),navElement.removeClass("show-mobile-tertiary"))},enterMobileState=function(){navElement.hasClass("hidden")||(navElement.addClass("hidden"),navElement.removeClass("collapsed"),bodyContentElement.removeClass("collapsed-nav"),bodyContentElement.addClass("hidden-nav"),updateSecondaryCollapsedState(!1),updateTertiaryCollapsedState(!1),explicitCollapse=!1)},exitMobileState=function(){navElement.removeClass("hidden show-mobile-nav"),bodyContentElement.removeClass("hidden-nav")},checkNavState=function(){var makeSecondaryVisible,width=$(window).width();handleResize&&(width<$.pfBreakpoints.tablet&&!explicitCollapse?enterMobileState():navElement.hasClass("hidden")&&exitMobileState(),width<$.pfBreakpoints.desktop?(subDesktop||(navElement.addClass("collapsed"),bodyContentElement.addClass("collapsed-nav")),width>=$.pfBreakpoints.tablet&&hideSecondaryMenu(),subDesktop=!0):(makeSecondaryVisible=subDesktop&&navElement.find(".secondary-nav-item-pf.active").length>0,subDesktop=!1,makeSecondaryVisible&&showSecondaryMenu()),explicitCollapse?(navElement.addClass("collapsed"),bodyContentElement.addClass("collapsed-nav")):(navElement.removeClass("collapsed"),bodyContentElement.removeClass("collapsed-nav")))},collapseMenu=function(){navElement.addClass("collapsed"),bodyContentElement.addClass("collapsed-nav"),subDesktop&&hideSecondaryMenu(),explicitCollapse=!0},enableTransitions=function(){$("html").addClass("transitions")},expandMenu=function(){navElement.removeClass("collapsed"),bodyContentElement.removeClass("collapsed-nav"),explicitCollapse=!1,subDesktop||forceResize(100)},bindMenuBehavior=function(){toggleNavBarButton.on("click",function(e){var $drawer;enableTransitions(),inMobileState()?navElement.hasClass("show-mobile-nav")?navElement.removeClass("show-mobile-nav"):(updateMobileMenu(),navElement.addClass("show-mobile-nav"),ignoreDrawer||($drawer=$(".drawer-pf"),$drawer.length&&($(".drawer-pf-trigger").removeClass("open"),$drawer.addClass("hide")))):navElement.hasClass("collapsed")?(options.rememberOpenState&&window[storageLocation].setItem("patternfly-navigation-primary","expanded"),expandMenu()):(options.rememberOpenState&&window[storageLocation].setItem("patternfly-navigation-primary","collapsed"),collapseMenu())})},forceHideSecondaryMenu=function(){navElement.addClass("force-hide-secondary-nav-pf"),setTimeout(function(){navElement.removeClass("force-hide-secondary-nav-pf")},500)},bindMenuItemsBehavior=function(handleSelection){$(document).find(".nav-pf-vertical .list-group-item").each(function(index,item){var onClickFn,$item=$(item),$nav=$item.closest('[class*="nav-pf-"]');$nav.hasClass("nav-pf-vertical")?onClickFn=function(event){var $secondaryItem,$activeItem,$this=$(this);$this.hasClass("secondary-nav-item-pf")?inMobileState()?updateMobileMenu($this):handleSelection&&($activeItem=$secondaryItem=$item.find(".nav-pf-secondary-nav > .list-group > .list-group-item").eq(0),$secondaryItem.hasClass("tertiary-nav-item-pf")&&($activeItem=$secondaryItem.find(".nav-pf-tertiary-nav > .list-group > .list-group-item").eq(0)),setActiveItem($activeItem),event.stopImmediatePropagation()):(hideSecondaryMenu(),inMobileState()&&(updateMobileMenu(),navElement.removeClass("show-mobile-nav")),handleSelection&&(setActiveItem($this),event.stopImmediatePropagation()))}:$nav.hasClass("nav-pf-secondary-nav")?onClickFn=function(event){var $tertiaryItem,$primaryItem,$this=$(this);$this.hasClass("tertiary-nav-item-pf")?inMobileState()?($primaryItem=$item.parents(".list-group-item"),updateMobileMenu($this,$primaryItem),event.stopImmediatePropagation()):handleSelection&&($tertiaryItem=$item.find(".nav-pf-tertiary-nav > .list-group > .list-group-item").eq(0),setActiveItem($tertiaryItem),event.stopImmediatePropagation()):(inMobileState()&&(updateMobileMenu(),navElement.removeClass("show-mobile-nav")),updateSecondaryMenuDisplayAfterSelection(),handleSelection&&(setActiveItem($item),hideSecondaryMenu(),event.stopImmediatePropagation()))}:$nav.hasClass("nav-pf-tertiary-nav")&&(onClickFn=function(event){inMobileState()&&(updateMobileMenu(),navElement.removeClass("show-mobile-nav")),updateSecondaryMenuDisplayAfterSelection(),handleSelection&&(setActiveItem($item),hideTertiaryMenu(),hideSecondaryMenu(),event.stopImmediatePropagation())}),$item.on("click.pf.secondarynav.data-api",onClickFn)}),$(document).find(".secondary-nav-item-pf").each(function(index,secondaryItem){var $secondaryItem=$(secondaryItem);$secondaryItem.on("click.pf.secondarynav.data-api",'[data-toggle="collapse-secondary-nav"]',function(e){var $this=$(this);inMobileState()?(updateMobileMenu(),e.stopImmediatePropagation()):$this.hasClass("collapsed")?(options.rememberOpenState&&(window[storageLocation].setItem("patternfly-navigation-secondary","expanded"),window[storageLocation].setItem("patternfly-navigation-tertiary","expanded")),updateSecondaryCollapsedState(!1,$this),forceHideSecondaryMenu()):(options.rememberOpenState&&window[storageLocation].setItem("patternfly-navigation-secondary","collapsed"),updateSecondaryCollapsedState(!0,$this)),navElement.removeClass("hover-secondary-nav-pf"),handleSelection&&e.stopImmediatePropagation()}),$secondaryItem.find(".tertiary-nav-item-pf").each(function(index,primaryItem){$(primaryItem).on("click.pf.tertiarynav.data-api",'[data-toggle="collapse-tertiary-nav"]',function(e){var $this=$(this);inMobileState()?(updateMobileMenu($secondaryItem),e.stopImmediatePropagation()):$this.hasClass("collapsed")?(options.rememberOpenState&&(window[storageLocation].setItem("patternfly-navigation-secondary","expanded"),window[storageLocation].setItem("patternfly-navigation-tertiary","expanded")),updateTertiaryCollapsedState(!1,$this),forceHideSecondaryMenu()):(options.rememberOpenState&&window[storageLocation].setItem("patternfly-navigation-tertiary","collapsed"),updateTertiaryCollapsedState(!0,$this)),navElement.removeClass("hover-secondary-nav-pf"),navElement.removeClass("hover-tertiary-nav-pf"),handleSelection&&e.stopImmediatePropagation()})})}),$(document).on("mouseenter.pf.tertiarynav.data-api",".secondary-nav-item-pf",function(e){var $this=$(this);inMobileState()||(void 0!==$this[0].navUnHoverTimeout?(clearTimeout($this[0].navUnHoverTimeout),$this[0].navUnHoverTimeout=void 0):void 0===$this[0].navHoverTimeout&&($this[0].navHoverTimeout=setTimeout(function(){navElement.addClass("hover-secondary-nav-pf"),$this.addClass("is-hover"),$this[0].navHoverTimeout=void 0},options.hoverDelay)))}),$(document).on("mouseleave.pf.tertiarynav.data-api",".secondary-nav-item-pf",function(e){var $this=$(this);void 0!==$this[0].navHoverTimeout?(clearTimeout($this[0].navHoverTimeout),$this[0].navHoverTimeout=void 0):void 0===$this[0].navUnHoverTimeout&&navElement.find(".secondary-nav-item-pf.is-hover").length>0&&($this[0].navUnHoverTimeout=setTimeout(function(){navElement.find(".secondary-nav-item-pf.is-hover").length<=1&&navElement.removeClass("hover-secondary-nav-pf"),$this.removeClass("is-hover"),$this[0].navUnHoverTimeout=void 0},options.hideDelay))}),$(document).on("mouseover.pf.tertiarynav.data-api",".tertiary-nav-item-pf",function(e){var $this=$(this);inMobileState()||(void 0!==$this[0].navUnHoverTimeout?(clearTimeout($this[0].navUnHoverTimeout),$this[0].navUnHoverTimeout=void 0):void 0===$this[0].navHoverTimeout&&($this[0].navHoverTimeout=setTimeout(function(){navElement.addClass("hover-tertiary-nav-pf"),$this.addClass("is-hover"),$this[0].navHoverTimeout=void 0},options.hoverDelay)))}),$(document).on("mouseout.pf.tertiarynav.data-api",".tertiary-nav-item-pf",function(e){var $this=$(this);void 0!==$this[0].navHoverTimeout?(clearTimeout($this[0].navHoverTimeout),$this[0].navHoverTimeout=void 0):void 0===$this[0].navUnHoverTimeout&&($this[0].navUnHoverTimeout=setTimeout(function(){navElement.find(".tertiary-nav-item-pf.is-hover").length<=1&&navElement.removeClass("hover-tertiary-nav-pf"),$this.removeClass("is-hover"),$this[0].navUnHoverTimeout=void 0},options.hideDelay))})},loadFromLocalStorage=function(){inMobileState()||("collapsed"===window[storageLocation].getItem("patternfly-navigation-primary")&&collapseMenu(),$(".nav-pf-vertical.nav-pf-vertical-collapsible-menus").length>0&&("collapsed"===window[storageLocation].getItem("patternfly-navigation-secondary")&&updateSecondaryCollapsedState(!0,$(".secondary-nav-item-pf.active [data-toggle=collapse-secondary-nav]")),"collapsed"===window[storageLocation].getItem("patternfly-navigation-tertiary")&&updateTertiaryCollapsedState(!0,$(".tertiary-nav-item-pf.active [data-toggle=collapse-tertiary-nav]"))))},setTooltips=function(){var tooltipOptions={container:"body",placement:"bottom",delay:{show:"500",hide:"200"},template:'<div class="nav-pf-vertical-tooltip tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>'};$('.nav-pf-vertical [data-toggle="tooltip"]').tooltip(tooltipOptions),$(".nav-pf-vertical").on("show.bs.tooltip",function(e){return $(this).hasClass("collapsed")})},self={hideMenu:function(){handleResize=!1,enterMobileState()},showMenu:function(){handleResize=!0,exitMobileState()},isVisible:function(){return handleResize}};return $.fn.setupVerticalNavigation.self||($.fn.setupVerticalNavigation.self=self,$(window).on("resize",function(){checkNavState(),enableTransitions()}),function(handleItemSelections){navElement.addClass("hide-nav-pf"),bodyContentElement.addClass("hide-nav-pf"),checkNavState(),bindMenuBehavior(),bindMenuItemsBehavior(handleItemSelections),setTooltips(),options.rememberOpenState&&loadFromLocalStorage(),navElement.removeClass("hide-nav-pf"),bodyContentElement.removeClass("hide-nav-pf"),forceResize(250)}(handleItemSelections)),$.fn.setupVerticalNavigation.self}}(jQuery);
@@ -0,0 +1,9 @@
1
+ interface Patternfly {
2
+ pfBreakpoints: {
3
+ tablet: number;
4
+ desktop: number;
5
+ };
6
+ }
7
+ interface Window {
8
+ patternfly: Patternfly;
9
+ }
@@ -0,0 +1,16 @@
1
+ (function (window) {
2
+ 'use strict';
3
+
4
+ var patternfly = {
5
+ version: "3.54.7"
6
+ };
7
+
8
+ // definition of breakpoint sizes for tablet and desktop modes
9
+ patternfly.pfBreakpoints = {
10
+ 'tablet': 768,
11
+ 'desktop': 1200
12
+ };
13
+
14
+ window.patternfly = patternfly;
15
+
16
+ })(typeof window !== 'undefined' ? window : global);
@@ -0,0 +1,92 @@
1
+ /// <reference types="c3" />
2
+
3
+ interface Window {
4
+ patternfly: Patternfly;
5
+ }
6
+
7
+ interface PFChartDataItem {
8
+ id: string;
9
+ index: number;
10
+ value: string;
11
+ name: string;
12
+ ratio: number;
13
+ }
14
+
15
+ type PFChartData = PFChartDataItem[];
16
+
17
+ interface Patternfly {
18
+ pfSetDonutChartTitle(
19
+ selector: Node,
20
+ primary: string,
21
+ secondary: string
22
+ ): void;
23
+
24
+ pfDonutTooltipContents(
25
+ data: PFChartData,
26
+ defaultTitleFormat: string,
27
+ defaultValueFormat: string,
28
+ color: (id: number | string) => string
29
+ ): string;
30
+
31
+ pfGetUtilizationDonutTooltipContentsFn(
32
+ units: string | number
33
+ ): (data: PFChartData) => string;
34
+
35
+ pfGetBarChartTooltipContentsFn(
36
+ categories?: string[]
37
+ ): (data: PFChartData) => string;
38
+
39
+ pfSingleLineChartTooltipContentsFn(
40
+ categories?: string[]
41
+ ): (data: PFChartData) => string;
42
+
43
+ pfPieTooltipContents: Patternfly['pfDonutTooltipContents'];
44
+
45
+ c3ChartDefaults(): {
46
+ getDefaultAreaAxis(): c3.Axis
47
+ getDefaultAreaConfig(): c3.ChartConfiguration;
48
+ getDefaultAreaLegend(): c3.LegendOptions;
49
+ getDefaultAreaPoint(): c3.PointOptions;
50
+ getDefaultBarConfig(categories: string[]): c3.ChartConfiguration;
51
+ getDefaultBarGrid(): c3.Grid;
52
+ getDefaultBarLegend(): c3.LegendOptions;
53
+ getDefaultBarTooltip(categories: string[]): c3.TooltipOptions;
54
+ getDefaultColors(): c3.ChartConfiguration['color'];
55
+ getDefaultDonut(title: string): c3.ChartConfiguration['donut'];
56
+ getDefaultDonutColors(): c3.ChartConfiguration['color'];
57
+ getDefaultDonutConfig(title: string): c3.ChartConfiguration;
58
+ getDefaultDonutLegend(): c3.LegendOptions;
59
+ getDefaultDonutSize(): c3.ChartConfiguration['size'];
60
+ getDefaultDonutTooltip(): c3.TooltipOptions;
61
+ getDefaultGroupedBarConfig(): c3.ChartConfiguration;
62
+ getDefaultGroupedBarGrid(): c3.Grid;
63
+ getDefaultGroupedBarLegend(): c3.LegendOptions;
64
+ getDefaultLineAxis(): c3.Axis;
65
+ getDefaultLineConfig(): c3.ChartConfiguration;
66
+ getDefaultLineGrid(): c3.Grid;
67
+ getDefaultLineLegend(): c3.LegendOptions;
68
+ getDefaultLinePoint(): c3.PointOptions;
69
+ getDefaultPie(): c3.ChartConfiguration['pie'];
70
+ getDefaultPieColors(): c3.ChartConfiguration['color'];
71
+ getDefaultPieConfig(): c3.ChartConfiguration;
72
+ getDefaultPieLegend(): c3.LegendOptions;
73
+ getDefaultPieSize(): c3.ChartConfiguration['size'];
74
+ getDefaultPieTooltip(): c3.TooltipOptions;
75
+ getDefaultRelationshipDonutColors(): c3.ChartConfiguration['color'];
76
+ getDefaultRelationshipDonutConfig(): c3.ChartConfiguration;
77
+ getDefaultSingleAreaConfig(): c3.ChartConfiguration;
78
+ getDefaultSingleAreaTooltip(): c3.TooltipOptions;
79
+ getDefaultSingleLineConfig(): c3.ChartConfiguration;
80
+ getDefaultSingleLineTooltip(): c3.TooltipOptions;
81
+ getDefaultSparklineArea(): c3.ChartConfiguration['area'];
82
+ getDefaultSparklineAxis(): c3.Axis;
83
+ getDefaultSparklineConfig(): c3.ChartConfiguration;
84
+ getDefaultSparklineLegend(): c3.LegendOptions;
85
+ getDefaultSparklinePoint(): c3.PointOptions;
86
+ getDefaultSparklineSize(): c3.ChartConfiguration['size'];
87
+ getDefaultSparklineTooltip(): c3.TooltipOptions;
88
+ getDefaultStackedBarConfig(): c3.ChartConfiguration;
89
+ getDefaultStackedBarGrid(): c3.Grid;
90
+ getDefaultStackedBarLegend(): c3.LegendOptions;
91
+ };
92
+ }
@@ -0,0 +1,449 @@
1
+ (function (window) {
2
+ 'use strict';
3
+
4
+ // Ensure we are assigning these to the patternfly property of the window argument, and not the implicit global patternfly
5
+ var patternfly = window.patternfly;
6
+
7
+ // Util: PatternFly C3 Chart Defaults
8
+ patternfly.pfSetDonutChartTitle = function (selector, primary, secondary) {
9
+ var donutChartRightTitle = window.d3.select(selector).select('text.c3-chart-arcs-title');
10
+ donutChartRightTitle.text("");
11
+ donutChartRightTitle.insert('tspan').text(primary).classed('donut-title-big-pf', true).attr('dy', 0).attr('x', 0);
12
+ donutChartRightTitle.insert('tspan').text(secondary).classed('donut-title-small-pf', true).attr('dy', 20).attr('x', 0);
13
+ };
14
+
15
+ patternfly.pfDonutTooltipContents = function (d, defaultTitleFormat, defaultValueFormat, color) {
16
+ return '<table class="c3-tooltip">' +
17
+ ' <tr>' +
18
+ ' <td><span style="background-color:' + color(d[0].id) + '"></span>' + '<strong>' + d[0].value + '</strong> ' + d[0].name + '</td>' +
19
+ ' <td>' + (Math.round(d[0].ratio * 1000) / 10) + '%</td>' +
20
+ ' </tr>' +
21
+ '</table>';
22
+ };
23
+
24
+ patternfly.pfGetUtilizationDonutTooltipContentsFn = function (units) {
25
+ return function (d) {
26
+ return '<span class="donut-tooltip-pf" style="white-space: nowrap;">' +
27
+ (Math.round(d[0].ratio * 1000) / 10) + '%' + ' ' + units + ' ' + d[0].name +
28
+ '</span>';
29
+ };
30
+ };
31
+
32
+ patternfly.pfGetBarChartTooltipContentsFn = function (categories) {
33
+ return function (d) {
34
+ var name = categories ? categories[d[0].index] : d[0].index;
35
+ return '<table class="c3-tooltip">' +
36
+ ' <tr>' +
37
+ ' <td><strong>' + name + ':</td>' +
38
+ ' <td>' + d[0].value + '</td>' +
39
+ ' </tr>' +
40
+ '</table>';
41
+ };
42
+ };
43
+
44
+ patternfly.pfSingleLineChartTooltipContentsFn = function (categories) {
45
+ return function (d) {
46
+ var name = categories ? categories[d[0].index] : d[0].index;
47
+ return '<table class="c3-tooltip">' +
48
+ ' <tr>' +
49
+ ' <td><strong>' + name + ':</td>' +
50
+ ' <td>' + d[0].value + '</td>' +
51
+ ' </tr>' +
52
+ '</table>';
53
+ };
54
+ };
55
+
56
+ patternfly.pfPieTooltipContents = function (d, defaultTitleFormat, defaultValueFormat, color) {
57
+ return patternfly.pfDonutTooltipContents(d, defaultTitleFormat, defaultValueFormat, color);
58
+ };
59
+
60
+ patternfly.c3ChartDefaults = function () {
61
+ var
62
+ getDefaultColors = function () {
63
+ return {
64
+ pattern: [
65
+ patternfly.pfPaletteColors.blue,
66
+ patternfly.pfPaletteColors.blue300,
67
+ patternfly.pfPaletteColors.green,
68
+ patternfly.pfPaletteColors.orange,
69
+ patternfly.pfPaletteColors.red
70
+ ]
71
+ };
72
+ },
73
+ getDefaultBarGrid = function () {
74
+ return {
75
+ y: {
76
+ show: true
77
+ }
78
+ };
79
+ },
80
+ getDefaultBarTooltip = function (categories) {
81
+ return {
82
+ contents: patternfly.pfGetBarChartTooltipContentsFn(categories)
83
+ };
84
+ },
85
+ getDefaultBarLegend = function () {
86
+ return {
87
+ show: false
88
+ };
89
+ },
90
+ getDefaultBarConfig = function (categories) {
91
+ return {
92
+ color: this.getDefaultColors(),
93
+ grid: this.getDefaultBarGrid(),
94
+ tooltip: this.getDefaultBarTooltip(categories),
95
+ legend: this.getDefaultBarLegend()
96
+ };
97
+ },
98
+ getDefaultGroupedBarGrid = function () {
99
+ return {
100
+ y: {
101
+ show: true
102
+ }
103
+ };
104
+ },
105
+ getDefaultGroupedBarLegend = function () {
106
+ return {
107
+ show: true,
108
+ position: 'bottom'
109
+ };
110
+ },
111
+ getDefaultGroupedBarConfig = function () {
112
+ return {
113
+ color: this.getDefaultColors(),
114
+ grid: this.getDefaultGroupedBarGrid(),
115
+ legend: this.getDefaultGroupedBarLegend()
116
+ };
117
+ },
118
+ getDefaultStackedBarGrid = function () {
119
+ return {
120
+ y: {
121
+ show: true
122
+ }
123
+ };
124
+ },
125
+ getDefaultStackedBarLegend = function () {
126
+ return {
127
+ show: true,
128
+ position: 'bottom'
129
+ };
130
+ },
131
+ getDefaultStackedBarConfig = function () {
132
+ return {
133
+ color: this.getDefaultColors(),
134
+ grid: this.getDefaultStackedBarGrid(),
135
+ legend: this.getDefaultStackedBarLegend()
136
+ };
137
+ },
138
+ getDefaultDonut = function (title) {
139
+ return {
140
+ title: title,
141
+ label: {
142
+ show: false
143
+ },
144
+ width: 11
145
+ };
146
+ },
147
+ getDefaultDonutSize = function () {
148
+ return {
149
+ height: 171 // produces a diameter of 150 and a centered chart when there is no legend
150
+ // Don't set a width here, the default is to center horizontally in the parent container
151
+ };
152
+ },
153
+ getDefaultDonutColors = function () {
154
+ return {
155
+ pattern: [
156
+ patternfly.pfPaletteColors.blue,
157
+ patternfly.pfPaletteColors.black300
158
+ ]
159
+ };
160
+ },
161
+ getDefaultRelationshipDonutColors = function () {
162
+ return {
163
+ pattern: [
164
+ patternfly.pfPaletteColors.blue,
165
+ patternfly.pfPaletteColors.red100,
166
+ patternfly.pfPaletteColors.orange400,
167
+ patternfly.pfPaletteColors.green400,
168
+ patternfly.pfPaletteColors.cyan500,
169
+ patternfly.pfPaletteColors.gold200,
170
+ ]
171
+ };
172
+ },
173
+ getDefaultDonutTooltip = function () {
174
+ return {
175
+ show: false
176
+ };
177
+ },
178
+ getDefaultDonutLegend = function () {
179
+ return {
180
+ show: false
181
+ };
182
+ },
183
+ getDefaultDonutConfig = function (title) {
184
+ return {
185
+ donut: this.getDefaultDonut(title),
186
+ size: this.getDefaultDonutSize(),
187
+ legend: this.getDefaultDonutLegend(),
188
+ color: this.getDefaultDonutColors(),
189
+ tooltip: this.getDefaultDonutTooltip()
190
+ };
191
+ },
192
+ getDefaultRelationshipDonutConfig = function (title) {
193
+ return {
194
+ donut: this.getDefaultDonut(title),
195
+ size: this.getDefaultDonutSize(),
196
+ legend: this.getDefaultDonutLegend(),
197
+ color: this.getDefaultRelationshipDonutColors(),
198
+ tooltip: this.getDefaultDonutTooltip()
199
+ };
200
+ },
201
+ getDefaultPie = function () {
202
+ return {
203
+ expand: true,
204
+ label: {
205
+ show: false
206
+ }
207
+ };
208
+ },
209
+ getDefaultPieSize = function () {
210
+ return {
211
+ height: 171 // produces a diameter of 150 and a centered chart when there is no legend
212
+ // Don't set a width here, default is to center horizontally in the parent container
213
+ };
214
+ },
215
+ getDefaultPieColors = function () {
216
+ return {
217
+ pattern: [
218
+ patternfly.pfPaletteColors.blue,
219
+ patternfly.pfPaletteColors.black300
220
+ ]
221
+ };
222
+ },
223
+ getDefaultPieTooltip = function () {
224
+ return {
225
+ contents: patternfly.pfPieTooltipContents
226
+ };
227
+ },
228
+ getDefaultPieLegend = function () {
229
+ return {
230
+ show: false
231
+ };
232
+ },
233
+ getDefaultPieConfig = function () {
234
+ return {
235
+ pie: this.getDefaultPie(),
236
+ size: this.getDefaultPieSize(),
237
+ legend: this.getDefaultPieLegend(),
238
+ color: this.getDefaultPieColors(),
239
+ tooltip: this.getDefaultPieTooltip()
240
+ };
241
+ },
242
+ getDefaultSparklineArea = function () {
243
+ return {
244
+ zerobased: true
245
+ };
246
+ },
247
+ getDefaultSparklineSize = function () {
248
+ return {
249
+ height: 60
250
+ };
251
+ },
252
+ getDefaultSparklineAxis = function () {
253
+ return {
254
+ x: {
255
+ show: false
256
+ },
257
+ y: {
258
+ show: false
259
+ }
260
+ };
261
+ },
262
+ getDefaultSparklineLegend = function () {
263
+ return {
264
+ show: false
265
+ };
266
+ },
267
+ getDefaultSparklinePoint = function () {
268
+ return {
269
+ r: 1,
270
+ focus: {
271
+ expand: {
272
+ r: 4
273
+ }
274
+ }
275
+ };
276
+ },
277
+ getDefaultSparklineTooltip = function () {
278
+ return {
279
+ // because a sparkline should only contain a single data column,
280
+ // the tooltip will only work for a single data column
281
+ contents: function (d) {
282
+ return '<span class="c3-tooltip-sparkline">' + d[0].value + ' ' + d[0].name + '</span>';
283
+ }
284
+ };
285
+ },
286
+ getDefaultSparklineConfig = function () {
287
+ return {
288
+ area: getDefaultSparklineArea(),
289
+ size: getDefaultSparklineSize(),
290
+ axis: getDefaultSparklineAxis(),
291
+ color: getDefaultColors(),
292
+ legend: getDefaultSparklineLegend(),
293
+ point: getDefaultSparklinePoint(),
294
+ tooltip: getDefaultSparklineTooltip()
295
+ };
296
+ },
297
+ getDefaultLineAxis = function () {
298
+ return {
299
+ x: {
300
+ show: true
301
+ },
302
+ y: {
303
+ show: true
304
+ }
305
+ };
306
+ },
307
+ getDefaultLineGrid = function () {
308
+ return {
309
+ x: {
310
+ show: false
311
+ },
312
+ y: {
313
+ show: true
314
+ }
315
+ };
316
+ },
317
+ getDefaultLineLegend = function () {
318
+ return {
319
+ show: true
320
+ };
321
+ },
322
+ getDefaultLinePoint = function () {
323
+ return {
324
+ r: 3,
325
+ focus: {
326
+ expand: {
327
+ r: 5
328
+ }
329
+ }
330
+ };
331
+ },
332
+ getDefaultLineConfig = function () {
333
+ return {
334
+ axis: getDefaultLineAxis(),
335
+ grid: getDefaultLineGrid(),
336
+ color: getDefaultColors(),
337
+ legend: getDefaultLineLegend(),
338
+ point: getDefaultLinePoint()
339
+ };
340
+ },
341
+ getDefaultSingleLineTooltip = function () {
342
+ return {
343
+ contents: patternfly.pfGetBarChartTooltipContentsFn()
344
+ };
345
+ },
346
+ getDefaultSingleLineLegend = function () {
347
+ return {
348
+ show: false
349
+ };
350
+ },
351
+ getDefaultSingleLineConfig = function () {
352
+ return {
353
+ axis: getDefaultLineAxis(),
354
+ grid: getDefaultLineGrid(),
355
+ color: getDefaultColors(),
356
+ legend: getDefaultSingleLineLegend(),
357
+ point: getDefaultLinePoint(),
358
+ tooltip: getDefaultSingleLineTooltip()
359
+ };
360
+ },
361
+ getDefaultAreaAxis = function () {
362
+ return getDefaultLineAxis();
363
+ },
364
+ getDefaultAreaGrid = function () {
365
+ return getDefaultLineGrid();
366
+ },
367
+ getDefaultAreaLegend = function () {
368
+ return getDefaultLineLegend();
369
+ },
370
+ getDefaultAreaPoint = function () {
371
+ return getDefaultLinePoint();
372
+ },
373
+ getDefaultAreaConfig = function () {
374
+ return {
375
+ axis: getDefaultAreaAxis(),
376
+ grid: getDefaultAreaGrid(),
377
+ color: getDefaultColors(),
378
+ legend: getDefaultAreaLegend(),
379
+ point: getDefaultAreaPoint()
380
+ };
381
+ },
382
+ getDefaultSingleAreaTooltip = function () {
383
+ return {
384
+ contents: patternfly.pfGetBarChartTooltipContentsFn()
385
+ };
386
+ },
387
+ getDefaultSingleAreaLegend = function () {
388
+ return getDefaultSingleLineLegend();
389
+ },
390
+ getDefaultSingleAreaConfig = function () {
391
+ return {
392
+ axis: getDefaultAreaAxis(),
393
+ grid: getDefaultAreaGrid(),
394
+ color: getDefaultColors(),
395
+ legend: getDefaultSingleAreaLegend(),
396
+ point: getDefaultAreaPoint(),
397
+ tooltip: getDefaultSingleAreaTooltip()
398
+ };
399
+ };
400
+ return {
401
+ getDefaultColors: getDefaultColors,
402
+ getDefaultBarGrid: getDefaultBarGrid,
403
+ getDefaultBarTooltip: getDefaultBarTooltip,
404
+ getDefaultBarLegend: getDefaultBarLegend,
405
+ getDefaultBarConfig: getDefaultBarConfig,
406
+ getDefaultGroupedBarGrid: getDefaultGroupedBarGrid,
407
+ getDefaultGroupedBarLegend: getDefaultGroupedBarLegend,
408
+ getDefaultGroupedBarConfig: getDefaultGroupedBarConfig,
409
+ getDefaultStackedBarGrid: getDefaultStackedBarGrid,
410
+ getDefaultStackedBarLegend: getDefaultStackedBarLegend,
411
+ getDefaultStackedBarConfig: getDefaultStackedBarConfig,
412
+ getDefaultDonut: getDefaultDonut,
413
+ getDefaultDonutSize: getDefaultDonutSize,
414
+ getDefaultDonutColors: getDefaultDonutColors,
415
+ getDefaultDonutTooltip: getDefaultDonutTooltip,
416
+ getDefaultDonutLegend: getDefaultDonutLegend,
417
+ getDefaultDonutConfig: getDefaultDonutConfig,
418
+ getDefaultRelationshipDonutConfig: getDefaultRelationshipDonutConfig,
419
+ getDefaultPie: getDefaultPie,
420
+ getDefaultPieSize: getDefaultPieSize,
421
+ getDefaultPieColors: getDefaultPieColors,
422
+ getDefaultRelationshipDonutColors: getDefaultRelationshipDonutColors,
423
+ getDefaultPieTooltip: getDefaultPieTooltip,
424
+ getDefaultPieLegend: getDefaultPieLegend,
425
+ getDefaultPieConfig: getDefaultPieConfig,
426
+ getDefaultSparklineArea: getDefaultSparklineArea,
427
+ getDefaultSparklineSize: getDefaultSparklineSize,
428
+ getDefaultSparklineAxis: getDefaultSparklineAxis,
429
+ getDefaultSparklineLegend: getDefaultSparklineLegend,
430
+ getDefaultSparklinePoint: getDefaultSparklinePoint,
431
+ getDefaultSparklineTooltip: getDefaultSparklineTooltip,
432
+ getDefaultSparklineConfig: getDefaultSparklineConfig,
433
+ getDefaultLineAxis: getDefaultLineAxis,
434
+ getDefaultLineGrid: getDefaultLineGrid,
435
+ getDefaultLineLegend: getDefaultLineLegend,
436
+ getDefaultLinePoint: getDefaultLinePoint,
437
+ getDefaultLineConfig: getDefaultLineConfig,
438
+ getDefaultSingleLineTooltip: getDefaultSingleLineTooltip,
439
+ getDefaultSingleLineConfig: getDefaultSingleLineConfig,
440
+ getDefaultAreaAxis: getDefaultAreaAxis,
441
+ getDefaultAreaGrid: getDefaultAreaGrid,
442
+ getDefaultAreaLegend: getDefaultAreaLegend,
443
+ getDefaultAreaPoint: getDefaultAreaPoint,
444
+ getDefaultAreaConfig: getDefaultAreaConfig,
445
+ getDefaultSingleAreaTooltip: getDefaultSingleAreaTooltip,
446
+ getDefaultSingleAreaConfig: getDefaultSingleAreaConfig
447
+ };
448
+ };
449
+ })(typeof window !== 'undefined' ? window : global);