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,171 +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>Search - 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>Search</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
- <form role="form" class="search-pf has-button">
45
- <div class="form-group has-clear">
46
- <div class="search-pf-input-group">
47
- <label for="search1" class="sr-only">Search</label>
48
- <input id="search1" type="search" class="form-control" placeholder="Search">
49
- <button type="button" class="clear" aria-hidden="true"><span class="pficon pficon-close"></span></button>
50
- </div>
51
- </div>
52
- <div class="form-group">
53
- <button class="btn btn-default" type="submit"><span class="fa fa-search"></span></button>
54
- </div>
55
- </form>
56
- <h2>Pre-populated</h2>
57
- <form role="form" class="search-pf has-button">
58
- <div class="form-group has-clear">
59
- <div class="search-pf-input-group">
60
- <label for="search2" class="sr-only">Search</label>
61
- <input id="search2" type="search" class="form-control" placeholder="Search" value="Search term">
62
- <button type="button" class="clear" aria-hidden="true"><span class="pficon pficon-close"></span></button>
63
- </div>
64
- </div>
65
- <div class="form-group">
66
- <button class="btn btn-default" type="submit"><span class="fa fa-search"></span></button>
67
- </div>
68
- </form>
69
- <h2>Without Button</h2>
70
- <form role="form" class="search-pf">
71
- <div class="form-group has-clear">
72
- <div class="search-pf-input-group">
73
- <label for="search3" class="sr-only">Search</label>
74
- <input id="search3" type="search" class="form-control" placeholder="Search">
75
- <button type="button" class="clear" aria-hidden="true"><span class="pficon pficon-close"></span></button>
76
- </div>
77
- </div>
78
- </form>
79
- <h2>Without Clear</h2>
80
- <form role="form" class="search-pf has-button">
81
- <div class="form-group">
82
- <div class="search-pf-input-group">
83
- <label for="search4" class="sr-only">Search</label>
84
- <input id="search4" type="search" class="form-control" placeholder="Search">
85
- </div>
86
- </div>
87
- <div class="form-group">
88
- <button class="btn btn-default" type="submit"><span class="fa fa-search"></span></button>
89
- </div>
90
- </form>
91
- <h2>Sizes</h2>
92
- <form role="form" class="search-pf has-button">
93
- <div class="form-group has-clear">
94
- <div class="search-pf-input-group">
95
- <label for="search-lg" class="sr-only">Search</label>
96
- <input id="search-lg" type="search" class="form-control input-lg" placeholder="Search">
97
- <button type="button" class="clear" aria-hidden="true"><span class="pficon pficon-close"></span></button>
98
- </div>
99
- </div>
100
- <div class="form-group">
101
- <button class="btn btn-default btn-lg" type="submit"><span class="fa fa-search"></span></button>
102
- </div>
103
- </form>
104
- <br />
105
- <form role="form" class="search-pf has-button">
106
- <div class="form-group has-clear">
107
- <div class="search-pf-input-group">
108
- <label for="search5" class="sr-only">Search</label>
109
- <input id="search5" type="search" class="form-control" placeholder="Search">
110
- <button type="button" class="clear" aria-hidden="true"><span class="pficon pficon-close"></span></button>
111
- </div>
112
- </div>
113
- <div class="form-group">
114
- <button class="btn btn-default" type="submit"><span class="fa fa-search"></span></button>
115
- </div>
116
- </form>
117
- <br />
118
- <form role="form" class="search-pf has-button">
119
- <div class="form-group has-clear">
120
- <div class="search-pf-input-group">
121
- <label for="search-sm" class="sr-only">Search</label>
122
- <input id="search-sm" type="search" class="form-control input-sm" placeholder="Search">
123
- <button type="button" class="clear" aria-hidden="true"><span class="pficon pficon-close"></span></button>
124
- </div>
125
- </div>
126
- <div class="form-group">
127
- <button class="btn btn-default btn-sm" type="submit"><span class="fa fa-search"></span></button>
128
- </div>
129
- </form>
130
- <h2>Within the grid</h2>
131
- <div class="row">
132
- <div class="col-md-6">
133
- <form role="form" class="search-pf has-button">
134
- <div class="form-group has-clear">
135
- <div class="search-pf-input-group">
136
- <label for="search6" class="sr-only">Search</label>
137
- <input id="search6" type="search" class="form-control" placeholder="Search">
138
- <button type="button" class="clear" aria-hidden="true"><span class="pficon pficon-close"></span></button>
139
- </div>
140
- </div>
141
- <div class="form-group">
142
- <button class="btn btn-default" type="submit"><span class="fa fa-search"></span></button>
143
- </div>
144
- </form>
145
- </div>
146
- </div>
147
- <script>
148
- (function($) {
149
- $(document).ready(function() {
150
- // Hide the clear button if the search input is empty
151
- $(".search-pf .has-clear .clear").each(function() {
152
- if (!$(this).prev('.form-control').val()) {
153
- $(this).hide();
154
- }
155
- });
156
- // Show the clear button upon entering text in the search input
157
- $(".search-pf .has-clear .form-control").keyup(function () {
158
- var t = $(this);
159
- t.next('button').toggle(Boolean(t.val()));
160
- });
161
- // Upon clicking the clear button, empty the entered text and hide the clear button
162
- $(".search-pf .has-clear .clear").click(function () {
163
- $(this).prev('.form-control').val('').focus();
164
- $(this).hide();
165
- });
166
- });
167
- })(jQuery);
168
- </script>
169
- </div><!-- /container -->
170
- </body>
171
- </html>
@@ -1,77 +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>Spinner - 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>Spinner</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
- <div class="spinner"></div>
45
- <h2>Sizes</h2>
46
- <div class="spinner spinner-lg"></div>
47
- <div class="spinner"></div>
48
- <div class="spinner spinner-sm"></div>
49
- <div class="spinner spinner-xs"></div>
50
- <h2>Inline</h2>
51
- <h1>
52
- <div class="spinner spinner-lg spinner-inline"></div>
53
- Inside an &lt;h1&gt;
54
- </h1>
55
- <h2>
56
- <div class="spinner spinner-inline"></div>
57
- Inside an &lt;h2&gt;
58
- </h2>
59
- <h3>
60
- <div class="spinner spinner-sm spinner-inline"></div>
61
- Inside an &lt;h3&gt;
62
- </h3>
63
- <p>
64
- <div class="spinner spinner-xs spinner-inline"></div>
65
- Inside a &lt;p&gt;
66
- </p>
67
- <h2>On black</h2>
68
- <div style="background-color: black; padding: 15px; width: 100px; margin-bottom: 10px;">
69
- <div class="spinner spinner-inverse"></div>
70
- </div>
71
- <p class="text-info">
72
- <strong>Note:</strong> IE9 requires a conditional class on &lt;html&gt; in order to display an animated gif fallback as it doesn't support CSS animation. View source on this page and see lines 2-5.
73
- </p>
74
-
75
- </div><!-- /container -->
76
- </body>
77
- </html>
data/spec/html/tab.html DELETED
@@ -1,842 +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>Tab - 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="//cdn.datatables.net/1.10.12/js/jquery.dataTables.min.js"></script>
32
- <script src="//cdn.datatables.net/select/1.2.0/js/dataTables.select.min.js"></script>
33
- <script src="//cdnjs.cloudflare.com/ajax/libs/bootstrap-select/1.10.0/js/bootstrap-select.min.js"></script>
34
- <script src="../../dist/js/patternfly.dataTables.pfEmpty.js"></script>
35
- <script src="../../dist/js/patternfly.dataTables.pfFilter.js"></script>
36
- <script src="../../dist/js/patternfly.dataTables.pfResize.js"></script>
37
- <script src="../../dist/js/patternfly.dataTables.pfSelect.js"></script>
38
- <script src="./../../dist/js/patternfly.min.js"></script>
39
- </head>
40
- <div class="toast-notifications-list-pf">
41
- <div class="toast-pf alert alert-warning alert-dismissable">
42
- <button type="button" class="close" data-dismiss="alert" aria-hidden="true">
43
- <span class="pficon pficon-close"></span>
44
- </button>
45
- <span class="pficon pficon-warning-triangle-o"></span>
46
- 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>.
47
- </div>
48
- </div>
49
-
50
- <body>
51
- <nav class="navbar navbar-default navbar-pf" role="navigation">
52
- <div class="navbar-header">
53
- <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse-1">
54
- <span class="sr-only">Toggle navigation</span>
55
- <span class="icon-bar"></span>
56
- <span class="icon-bar"></span>
57
- <span class="icon-bar"></span>
58
- </button>
59
- <a class="navbar-brand" href="/">
60
- <img src="./../../dist/img/brand.svg" alt="PatternFly Enterprise Application" />
61
- </a>
62
- </div>
63
- <div class="collapse navbar-collapse navbar-collapse-1">
64
- <ul class="nav navbar-nav navbar-utility">
65
- <li>
66
- <a href="#">Status</a>
67
- </li>
68
- <li class="dropdown">
69
- <a href="#" class="dropdown-toggle" data-toggle="dropdown">
70
- <span class="pficon pficon-user"></span>
71
- Brian Johnson <b class="caret"></b>
72
- </a>
73
- <ul class="dropdown-menu">
74
- <li>
75
- <a href="#">Link</a>
76
- </li>
77
- <li>
78
- <a href="#">Another link</a>
79
- </li>
80
- <li>
81
- <a href="#">Something else here</a>
82
- </li>
83
- <li class="divider"></li>
84
- <li class="dropdown-submenu">
85
- <a tabindex="-1" href="#">More options</a>
86
- <ul class="dropdown-menu">
87
- <li>
88
- <a href="#">Link</a>
89
- </li>
90
- <li>
91
- <a href="#">Another link</a>
92
- </li>
93
- <li>
94
- <a href="#">Something else here</a>
95
- </li>
96
- <li class="divider"></li>
97
- <li class="dropdown-header">Nav header</li>
98
- <li>
99
- <a href="#">Separated link</a>
100
- </li>
101
- <li class="divider"></li>
102
- <li>
103
- <a href="#">One more separated link</a>
104
- </li>
105
- </ul>
106
- </li>
107
- <li class="divider"></li>
108
- <li>
109
- <a href="#">One more separated link</a>
110
- </li>
111
- </ul>
112
- </li>
113
- </ul>
114
- <ul class="nav navbar-nav navbar-primary">
115
- <li>
116
- <a href="basic.html">Basic</a>
117
- </li>
118
- <li>
119
- <a href="bootstrap-treeview-2.html">Tree View</a>
120
- </li>
121
- <li>
122
- <a href="dashboard.html">Dashboard</a>
123
- </li>
124
- <li>
125
- <a href="form.html">Form</a>
126
- </li>
127
- <li class="active">
128
- <a href="tab.html" class="active">Tab</a>
129
- </li>
130
- <li>
131
- <a href="typography-2.html">Typography</a>
132
- </li>
133
- <li>
134
- <a href="card-view-multi-select.html">Card View - Multi Select</a>
135
- </li>
136
- <li>
137
- <a href="card-view-single-select.html">Card View - Single Select</a>
138
- </li>
139
- <li>
140
- <a href="cards.html">Cards</a>
141
- </li>
142
- <li>
143
- <a href="pagination-card-view.html">Pagination - Card View</a>
144
- </li>
145
- </ul>
146
- </div>
147
- </nav>
148
-
149
- <div class="container-fluid">
150
- <div class="row">
151
- <div class="col-sm-9 col-md-10 col-sm-push-3 col-md-push-2">
152
- <ol class="breadcrumb">
153
- <li><a href="#">Home</a></li>
154
- <li>Tab</li>
155
- </ol>
156
- <h1>Tab</h1>
157
- <!--Note: the markup semantics used to create "nested" tabs are sub-optimal in order to easily achieve a responsive layout.-->
158
- <ul class="nav nav-tabs">
159
- <li class="active"><a href="#">Tab One</a></li>
160
- <li><a href="#">Tab Two</a></li>
161
- <li><a href="#">Tab Three</a></li>
162
- <li><a href="#">Tab Four</a></li>
163
- <li><a href="#">Tab Five</a></li>
164
- <li><a href="#">Tab Six</a></li>
165
- <li><a href="#">Tab Seven</a></li>
166
- </ul>
167
- <ul class="nav nav-tabs nav-tabs-pf">
168
- <li class="active"><a href="#">Secondary Tab One</a></li>
169
- <li><a href="#">Secondary Tab Two</a></li>
170
- <li><a href="#">Secondary Tab Three</a></li>
171
- <li><a href="#">Secondary Tab Four</a></li>
172
- <li><a href="#">Secondary Tab Five</a></li>
173
- </ul>
174
- <!-- Toolbar -->
175
- <div class="row toolbar-pf table-view-pf-toolbar" id="toolbar1">
176
- <div class="col-sm-12">
177
- <form class="toolbar-pf-actions">
178
- <div class="form-group toolbar-pf-filter">
179
- <label class="sr-only" for="filter">Rendering Engine</label>
180
- <div class="input-group">
181
- <div class="input-group-btn">
182
- <button type="button" class="btn btn-default dropdown-toggle" id="filter" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">Rendering Engine <span class="caret"></span></button>
183
- <ul class="dropdown-menu">
184
- <li><a href="#" id="filter1">Rendering Engine</a></li>
185
- <li><a href="#" id="filter2">Browser</a></li>
186
- <li><a href="#" id="filter3">Platform(s)</a></li>
187
- <li><a href="#" id="filter4">Engine Version</a></li>
188
- <li><a href="#" id="filter5">CSS Grade</a></li>
189
- </ul>
190
- </div>
191
- <input type="text" class="form-control" placeholder="Filter By Rendering Engine..." autocomplete="off" id="filterInput">
192
- </div>
193
- </div>
194
- <div class="form-group">
195
- <button class="btn btn-default" type="button" id="deleteRows1">Delete Rows</button>
196
- <button class="btn btn-default" type="button" id="restoreRows1" disabled>Restore Rows</button>
197
- <div class="dropdown btn-group dropdown-kebab-pf">
198
- <button class="btn btn-link dropdown-toggle" type="button" id="dropdownKebab" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">
199
- <span class="fa fa-ellipsis-v"></span>
200
- </button>
201
- <ul class="dropdown-menu " aria-labelledby="dropdownKebab">
202
- <li><a href="#">Action</a></li>
203
- <li><a href="#">Another action</a></li>
204
- <li><a href="#">Something else here</a></li>
205
- <li role="separator" class="divider"></li>
206
- <li><a href="#">Separated link</a></li>
207
- </ul>
208
- </div>
209
-
210
- </div>
211
- <div class="toolbar-pf-action-right">
212
- <div class="form-group toolbar-pf-find">
213
- <button class="btn btn-link btn-find" type="button">
214
- <span class="fa fa-search"></span>
215
- </button>
216
- <div class="find-pf-dropdown-container">
217
- <input type="text" class="form-control" id="find" placeholder="Find By Keyword...">
218
- <div class="find-pf-buttons">
219
- <span class="find-pf-nums">1 of 3</span>
220
- <button class="btn btn-link" type="button">
221
- <span class="fa fa-angle-up"></span>
222
- </button>
223
- <button class="btn btn-link" type="button">
224
- <span class="fa fa-angle-down"></span>
225
- </button>
226
- <button class="btn btn-link btn-find-close" type="button">
227
- <span class="pficon pficon-close"></span>
228
- </button>
229
- </div>
230
- </div>
231
- </div>
232
- </div>
233
- </form>
234
- <div class="row toolbar-pf-results">
235
- <div class="col-sm-9">
236
- <div class="hidden">
237
- <h5>0 Results</h5>
238
- <p>Active filters:</p>
239
- <ul class="list-inline"></ul>
240
- <p><a href="#">Clear All Filters</a></p>
241
- </div>
242
- </div>
243
- <div class="col-sm-3 table-view-pf-select-results">
244
- <strong>0</strong> of <strong>0</strong> selected
245
- </div>
246
- </div>
247
- </div>
248
- </div>
249
-
250
- <!-- Table HTML -->
251
- <table class="table table-striped table-bordered table-hover" id="table1">
252
- <thead>
253
- <tr>
254
- <th><label class="sr-only" for="selectAll">Select all rows</label><input type="checkbox" id="selectAll" name="selectAll"></th>
255
- <th>Rendering Engine</th>
256
- <th>Browser</th>
257
- <th>Platform(s)</th>
258
- <th>Engine Version</th>
259
- <th>CSS Grade</th>
260
- <th colspan="2">Actions</th>
261
- </tr>
262
- </thead>
263
- </table>
264
-
265
- <form class="content-view-pf-pagination table-view-pf-pagination clearfix" id="pagination1">
266
- <div class="form-group">
267
- <select class="selectpicker pagination-pf-pagesize">
268
- <option value="6">6</option>
269
- <option value="10" >10</option>
270
- <option value="15" selected="selected">15</option>
271
- <option value="25">25</option>
272
- <option value="50">50</option>
273
- </select>
274
- <span>per page</span>
275
- </div>
276
- <div class="form-group">
277
- <span><span class="pagination-pf-items-current">1-15</span> of <span class="pagination-pf-items-total">75</span></span>
278
- <ul class="pagination pagination-pf-back">
279
- <li class="disabled"><a href="#" title="First Page"><span class="i fa fa-angle-double-left"></span></a></li>
280
- <li class="disabled"><a href="#" title="Previous Page"><span class="i fa fa-angle-left"></span></a></li>
281
- </ul>
282
- <label for="pagination1-page" class="sr-only">Current Page</label>
283
- <input class="pagination-pf-page" type="text" value="1" id="pagination1-page"/>
284
- <span>of <span class="pagination-pf-pages">5</span></span>
285
- <ul class="pagination pagination-pf-forward">
286
- <li><a href="#" title="Next Page"><span class="i fa fa-angle-right"></span></a></li>
287
- <li><a href="#" title="Last Page"><span class="i fa fa-angle-double-right"></span></a></li>
288
- </ul>
289
- </div>
290
- </form>
291
-
292
- <!-- Blank Slate HTML -->
293
- <div class="blank-slate-pf table-view-pf-empty hidden" id="emptyState1">
294
- <div class="blank-slate-pf-icon">
295
- <span class="pficon pficon pficon-add-circle-o"></span>
296
- </div>
297
- <h1>
298
- Empty State Title
299
- </h1>
300
- <p>
301
- Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
302
- </p>
303
- <p>
304
- Learn more about this <a href="#">on the documentation</a>.
305
- </p>
306
- <div class="blank-slate-pf-main-action">
307
- <button class="btn btn-primary btn-lg"> Main Action </button>
308
- </div>
309
- <div class="blank-slate-pf-secondary-action">
310
- <button class="btn btn-default"> Secondary Action </button> <button class="btn btn-default"> Secondary Action </button> <button class="btn btn-default"> Secondary Action </button>
311
- </div>
312
- </div>
313
-
314
- <script>
315
- $(document).ready(function() {
316
-
317
- // JSON data for Table View
318
- var dataSet = [{
319
- engine: "Trident",
320
- browser: "Internet Explorer 4.0",
321
- platforms: "Win 95+",
322
- version: "4",
323
- grade: "X"
324
- },{
325
- engine: "Trident",
326
- browser: "Internet Explorer 5.0",
327
- platforms: "Win 95+",
328
- version: "5",
329
- grade: "C"
330
- }, {
331
- engine: "Trident",
332
- browser: "Internet Explorer 5.5",
333
- platforms: "Win 95+",
334
- version: "5.5",
335
- grade: "A"
336
- }, {
337
- engine: "Trident",
338
- browser: "Internet Explorer 6",
339
- platforms: "Win 98+",
340
- version: "6",
341
- grade: "A"
342
- }, {
343
- engine: "Trident",
344
- browser: "Internet Explorer 7",
345
- platforms: "Win XP SP2+",
346
- version: "7",
347
- grade: "A"
348
- }, {
349
- engine: "Trident",
350
- browser: "AOL browser (AOL desktop)",
351
- platforms: "Win XP",
352
- version: "6",
353
- grade: "A"
354
- }, {
355
- engine: "Gecko",
356
- browser: "Firefox 1.0",
357
- platforms: "Win 98+ / OSX.2+",
358
- version: "1.7",
359
- grade: "A"
360
- }, {
361
- engine: "Gecko",
362
- browser: "Firefox 1.5",
363
- platforms: "Win 98+ / OSX.2+",
364
- version: "1.8",
365
- grade: "A"
366
- }, {
367
- engine: "Gecko",
368
- browser: "Firefox 2.0",
369
- platforms: "Win 98+ / OSX.2+",
370
- version: "1.8",
371
- grade: "A"
372
- }, {
373
- engine: "Gecko",
374
- browser: "Firefox 3.0",
375
- platforms: "Win 2k+ / OSX.3+",
376
- version: "1.9",
377
- grade: "A"
378
- }, {
379
- engine: "Gecko",
380
- browser: "Camino 1.0",
381
- platforms: "OSX.2+",
382
- version: "1.8",
383
- grade: "A"
384
- }, {
385
- engine: "Gecko",
386
- browser: "Camino 1.5",
387
- platforms: "OSX.3+",
388
- version: "1.8",
389
- grade: "A"
390
- }, {
391
- engine: "Gecko",
392
- browser: "Netscape 7.2",
393
- platforms: "Win 95+ / Mac OS 8.6-9.2",
394
- version: "1.7",
395
- grade: "A"
396
- }, {
397
- engine: "Gecko",
398
- browser: "Netscape Browser 8",
399
- platforms: "Win 98SE+",
400
- version: "1.7",
401
- grade: "A"
402
- }, {
403
- engine: "Gecko",
404
- browser: "Netscape Navigator 9",
405
- platforms: "Win 98+ / OSX.2+",
406
- version: "1.8",
407
- grade: "A"
408
- }, {
409
- engine: "Gecko",
410
- browser: "Mozilla 1.0",
411
- platforms: "Win 95+ / OSX.1+",
412
- version: "1",
413
- grade: "A"
414
- }, {
415
- engine: "Gecko",
416
- browser: "Mozilla 1.1",
417
- platforms: "Win 95+ / OSX.1+",
418
- version: "1.1",
419
- grade: "A"
420
- }, {
421
- engine: "Gecko",
422
- browser: "Mozilla 1.2",
423
- platforms: "Win 95+ / OSX.1+",
424
- version: "1.2",
425
- grade: "A"
426
- }, {
427
- engine: "Gecko",
428
- browser: "Mozilla 1.3",
429
- platforms: "Win 95+ / OSX.1+",
430
- version: "1.3",
431
- grade: "A"
432
- }, {
433
- engine: "Gecko",
434
- browser: "Mozilla 1.4",
435
- platforms: "Win 95+ / OSX.1+",
436
- version: "1.4",
437
- grade: "A"
438
- }, {
439
- engine: "Gecko",
440
- browser: "Mozilla 1.5",
441
- platforms: "Win 95+ / OSX.1+",
442
- version: "1.5",
443
- grade: "A"
444
- }, {
445
- engine: "Gecko",
446
- browser: "Mozilla 1.6",
447
- platforms: "Win 95+ / OSX.1+",
448
- version: "1.6",
449
- grade: "A"
450
- }, {
451
- engine: "Gecko",
452
- browser: "Mozilla 1.7",
453
- platforms: "Win 98+ / OSX.1+",
454
- version: "1.7",
455
- grade: "A"
456
- }, {
457
- engine: "Gecko",
458
- browser: "Mozilla 1.8",
459
- platforms: "Win 98+ / OSX.1+",
460
- version: "1.8",
461
- grade: "A"
462
- }, {
463
- engine: "Gecko",
464
- browser: "Seamonkey 1.1",
465
- platforms: "Win 98+ / OSX.2+",
466
- version: "1.8",
467
- grade: "A"
468
- }, {
469
- engine: "Gecko",
470
- browser: "Epiphany 2.20",
471
- platforms: "Gnome",
472
- version: "1.8",
473
- grade: "A"
474
- }, {
475
- engine: "Webkit",
476
- browser: "Safari 1.2",
477
- platforms: "OSX.3",
478
- version: "125.5",
479
- grade: "A"
480
- }, {
481
- engine: "Webkit",
482
- browser: "Safari 1.3",
483
- platforms: "OSX.3",
484
- version: "312.8",
485
- grade: "A"
486
- }, {
487
- engine: "Webkit",
488
- browser: "Safari 2.0",
489
- platforms: "OSX.4+",
490
- version: "419.3",
491
- grade: "A"
492
- }, {
493
- engine: "Webkit",
494
- browser: "Safari 3.0",
495
- platforms: "OSX.4+",
496
- version: "522.1",
497
- grade: "A"
498
- }, {
499
- engine: "Webkit",
500
- browser: "OmniWeb 5.5",
501
- platforms: "OSX.4+",
502
- version: "420",
503
- grade: "A"
504
- }, {
505
- engine: "Webkit",
506
- browser: "iPod Touch / iPhone",
507
- platforms: "iPod",
508
- version: "420.1",
509
- grade: "A"
510
- }, {
511
- engine: "Webkit",
512
- browser: "S60",
513
- platforms: "S60",
514
- version: "413",
515
- grade: "A"
516
- }, {
517
- engine: "Presto",
518
- browser: "Opera 7.0",
519
- platforms: "Win 95+ / OSX.1+",
520
- version: "-",
521
- grade: "A"
522
- }, {
523
- engine: "Presto",
524
- browser: "Opera 7.5",
525
- platforms: "Win 95+ / OSX.2+",
526
- version: "-",
527
- grade: "A"
528
- }, {
529
- engine: "Presto",
530
- browser: "Opera 8.0",
531
- platforms: "Win 95+ / OSX.2+",
532
- version: "-",
533
- grade: "A"
534
- }, {
535
- engine: "Presto",
536
- browser: "Opera 8.5",
537
- platforms: "Win 95+ / OSX.2+",
538
- version: "-",
539
- grade: "A"
540
- }, {
541
- engine: "Presto",
542
- browser: "Opera 9.0",
543
- platforms: "Win 95+ / OSX.3+",
544
- version: "-",
545
- grade: "A"
546
- }, {
547
- engine: "Presto",
548
- browser: "Opera 9.2",
549
- platforms: "Win 88+ / OSX.3+",
550
- version: "-",
551
- grade: "A"
552
- }, {
553
- engine: "Presto",
554
- browser: "Opera 9.5",
555
- platforms: "Win 88+ / OSX.3+",
556
- version: "-",
557
- grade: "A"
558
- }, {
559
- engine: "Presto",
560
- browser: "Opera for Wii",
561
- platforms: "Wii",
562
- version: "-",
563
- grade: "A"
564
- }, {
565
- engine: "Presto",
566
- browser: "Nokia N800",
567
- platforms: "N800",
568
- version: "-",
569
- grade: "A"
570
- }, {
571
- engine: "Presto",
572
- browser: "Nintendo DS browser",
573
- platforms: "Nintendo DS",
574
- version: "8.5",
575
- grade: "C/A<sup>1</sup>"
576
- }, {
577
- engine: "KHTML",
578
- browser: "Konqureror 3.1",
579
- platforms: "KDE 3.1",
580
- version: "3.1",
581
- grade: "C"
582
- }, {
583
- engine: "KHTML",
584
- browser: "Konqureror 3.3",
585
- platforms: "KDE 3.3",
586
- version: "3.3",
587
- grade: "A"
588
- }, {
589
- engine: "KHTML",
590
- browser: "Konqureror 3.5",
591
- platforms: "KDE 3.5",
592
- version: "3.5",
593
- grade: "A"
594
- }, {
595
- engine: "Tasman",
596
- browser: "Internet Explorer 4.5",
597
- platforms: "Mac OS 8-9",
598
- version: "-",
599
- grade: "X"
600
- }, {
601
- engine: "Tasman",
602
- browser: "Internet Explorer 5.1",
603
- platforms: "Mac OS 7.6-9",
604
- version: "1",
605
- grade: "C"
606
- }, {
607
- engine: "Tasman",
608
- browser: "Internet Explorer 5.2",
609
- platforms: "Mac OS 8-X",
610
- version: "1",
611
- grade: "C"
612
- }, {
613
- engine: "Misc",
614
- browser: "NetFront 3.1",
615
- platforms: "Embedded devices",
616
- version: "-",
617
- grade: "C"
618
- }, {
619
- engine: "Misc",
620
- browser: "NetFront 3.4",
621
- platforms: "Embedded devices",
622
- version: "-",
623
- grade: "A"
624
- }, {
625
- engine: "Misc",
626
- browser: "Dillo 0.8",
627
- platforms: "Embedded devices",
628
- version: "-",
629
- grade: "X"
630
- }, {
631
- engine: "Misc",
632
- browser: "Links",
633
- platforms: "Text only",
634
- version: "-",
635
- grade: "X"
636
- }, {
637
- engine: "Misc",
638
- browser: "Lynx",
639
- platforms: "Text only",
640
- version: "-",
641
- grade: "X"
642
- }, {
643
- engine: "Misc",
644
- browser: "IE Mobile",
645
- platforms: "Windows Mobile 6",
646
- version: "-",
647
- grade: "C"
648
- }, {
649
- engine: "Misc",
650
- browser: "PSP browser",
651
- platforms: "PSP",
652
- version: "-",
653
- grade: "C"
654
- }, {
655
- engine: "Other browsers",
656
- browser: "All others",
657
- platforms: "-",
658
- version: "-",
659
- grade: "U"
660
- }];
661
-
662
- // DataTable Config
663
- $("#table1").DataTable({
664
- columns: [
665
- { data: null,
666
- className: "table-view-pf-select",
667
- render: function (data, type, full, meta) {
668
- // Select row checkbox renderer
669
- var id = "select" + meta.row;
670
- return '<label class="sr-only" for="' + id + '">Select row ' + meta.row +
671
- '</label><input type="checkbox" id="' + id + '" name="' + id + '">';
672
- },
673
- sortable: false
674
- },
675
- { data: "engine" },
676
- { data: "browser" },
677
- { data: "platforms" },
678
- { data: "version" },
679
- { data: "grade"},
680
- { data: null,
681
- className: "table-view-pf-actions",
682
- render: function (data, type, full, meta) {
683
- // Inline action button renderer
684
- return '<div class="table-view-pf-btn"><button class="btn btn-default" type="button">Actions</button></div>';
685
- }
686
- }, {
687
- data: null,
688
- className: "table-view-pf-actions",
689
- render: function (data, type, full, meta) {
690
- // Inline action kebab renderer
691
- return '<div class="dropdown dropdown-kebab-pf">' +
692
- '<button class="btn btn-default dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true">' +
693
- '<span class="fa fa-ellipsis-v"></span></button>' +
694
- '<ul class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownKebabRight">' +
695
- '<li><a href="#">Action</a></li>' +
696
- '<li><a href="#">Another action</a></li>' +
697
- '<li><a href="#">Something else here</a></li>' +
698
- '<li role="separator" class="divider"></li>' +
699
- '<li><a href="#">Separated link</a></li></ul></div>';
700
- }
701
- }
702
- ],
703
- data: dataSet,
704
- dom: "t",
705
- language: {
706
- zeroRecords: "No records found"
707
- },
708
- order: [[ 1, 'asc' ]],
709
- pfConfig: {
710
- emptyStateSelector: "#emptyState1",
711
- filterCaseInsensitive: true,
712
- filterCols: [
713
- null,
714
- {
715
- default: true,
716
- optionSelector: "#filter1",
717
- placeholder: "Filter By Rendering Engine..."
718
- }, {
719
- optionSelector: "#filter2",
720
- placeholder: "Filter By Browser..."
721
- }, {
722
- optionSelector: "#filter3",
723
- placeholder: "Filter By Platform(s)..."
724
- }, {
725
- optionSelector: "#filter4",
726
- placeholder: "Filter By Engine Version..."
727
- }, {
728
- optionSelector: "#filter5",
729
- placeholder: "Filter By CSS Grade..."
730
- }
731
- ],
732
- paginationSelector: "#pagination1",
733
- toolbarSelector: "#toolbar1",
734
- selectAllSelector: 'th:first-child input[type="checkbox"]',
735
- colvisMenuSelector: '.table-view-pf-colvis-menu'
736
- },
737
- select: {
738
- selector: 'td:first-child input[type="checkbox"]',
739
- style: 'multi'
740
- },
741
- });
742
-
743
- /**
744
- * Utility to show empty Table View
745
- *
746
- * @param {object} config - Config properties associated with a Table View
747
- * @param {object} config.data - Data set for DataTable
748
- * @param {string} config.deleteRowsSelector - Selector for delete rows control
749
- * @param {string} config.restoreRowsSelector - Selector for restore rows control
750
- * @param {string} config.tableSelector - Selector for the HTML table
751
- */
752
- var emptyTableViewUtil = function (config) {
753
- var self = this;
754
-
755
- this.dt = $(config.tableSelector).DataTable(); // DataTable
756
- this.deleteRows = $(config.deleteRowsSelector); // Delete rows control
757
- this.restoreRows = $(config.restoreRowsSelector); // Restore rows control
758
-
759
- // Handle click on delete rows control
760
- this.deleteRows.on('click', function() {
761
- self.dt.clear().draw();
762
- $(self.restoreRows).prop("disabled", false);
763
- });
764
-
765
- // Handle click on restore rows control
766
- this.restoreRows.on('click', function() {
767
- self.dt.rows.add(config.data).draw();
768
- $(this).prop("disabled", true);
769
- });
770
-
771
- // Initialize restore rows
772
- if (this.dt.data().length === 0) {
773
- $(this.restoreRows).prop("disabled", false);
774
- }
775
- };
776
-
777
- // Initialize empty Table View util
778
- new emptyTableViewUtil({
779
- data: dataSet,
780
- deleteRowsSelector: "#deleteRows1",
781
- restoreRowsSelector: "#restoreRows1",
782
- tableSelector: "#table1"
783
- });
784
-
785
- /**
786
- * Utility to find items in Table View
787
- */
788
- var findTableViewUtil = function (config) {
789
- // Upon clicking the find button, show the find dropdown content
790
- $(".btn-find").click(function () {
791
- $(this).parent().find(".find-pf-dropdown-container").toggle();
792
- });
793
-
794
- // Upon clicking the find close button, hide the find dropdown content
795
- $(".btn-find-close").click(function () {
796
- $(".find-pf-dropdown-container").hide();
797
- });
798
- };
799
-
800
- // Initialize find util
801
- new findTableViewUtil();
802
-
803
- });
804
- </script>
805
-
806
-
807
- <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vestibulum eget eros tincidunt, semper ante nec, dapibus ante.</p>
808
- </div><!-- /col -->
809
- <div class="col-sm-3 col-md-2 col-sm-pull-9 col-md-pull-10 sidebar-pf sidebar-pf-left">
810
- <div class="nav-category">
811
- <h2>First Category</h2>
812
- <ul class="nav nav-pills nav-stacked">
813
- <li class="active"><a href="#"><i class="fa fa-desktop"></i>System Information</a></li>
814
- <li><a href="#"><i class="fa fa-cog"></i>System Services</a></li>
815
- <li><a href="#"><i class="fa fa-file-text-o"></i>Journal</a></li>
816
- <li><a href="#"><i class="fa fa-cloud"></i>Storage</a></li>
817
- </ul>
818
- </div>
819
- <div class="nav-category">
820
- <h2>Second Category</h2>
821
- <ul class="nav nav-pills nav-stacked">
822
- <li><a href="#">User Accounts</a></li>
823
- <li><a href="#">Containers</a></li>
824
- <li><a href="#">Shutdown and Reboot</a></li>
825
- </ul>
826
- </div>
827
- </div><!-- /col -->
828
- </div><!-- /row -->
829
- </div><!-- /container -->
830
- <script>
831
- $(document).ready(function () {
832
- $("#table1").DataTable().on("draw.dt", function () {
833
- // if .sidebar-pf exists, call sidebar() after the data table is drawn
834
- if ($('.sidebar-pf').length > 0) {
835
- $(document).sidebar();
836
- }
837
- });
838
- });
839
- </script>
840
-
841
- </body>
842
- </html>