patternfly-sass 0.0.0.pre.semantically.pre.released → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.bowerrc +3 -0
- data/.gitignore +43 -0
- data/.rspec +3 -0
- data/.rubocop.yml +54 -0
- data/.travis.yml +17 -0
- data/Gemfile +3 -0
- data/README.md +29 -438
- data/Rakefile +128 -0
- data/TODO.md +13 -0
- data/assets/fonts/patternfly/OpenSans-Bold-webfont.eot +0 -0
- data/assets/fonts/patternfly/OpenSans-Bold-webfont.svg +1830 -0
- data/assets/fonts/patternfly/OpenSans-Bold-webfont.ttf +0 -0
- data/assets/fonts/patternfly/OpenSans-Bold-webfont.woff +0 -0
- data/assets/fonts/patternfly/OpenSans-BoldItalic-webfont.eot +0 -0
- data/assets/fonts/patternfly/OpenSans-BoldItalic-webfont.svg +1830 -0
- data/assets/fonts/patternfly/OpenSans-BoldItalic-webfont.ttf +0 -0
- data/assets/fonts/patternfly/OpenSans-BoldItalic-webfont.woff +0 -0
- data/assets/fonts/patternfly/OpenSans-ExtraBold-webfont.eot +0 -0
- data/assets/fonts/patternfly/OpenSans-ExtraBold-webfont.svg +1830 -0
- data/assets/fonts/patternfly/OpenSans-ExtraBold-webfont.ttf +0 -0
- data/assets/fonts/patternfly/OpenSans-ExtraBold-webfont.woff +0 -0
- data/assets/fonts/patternfly/OpenSans-ExtraBoldItalic-webfont.eot +0 -0
- data/assets/fonts/patternfly/OpenSans-ExtraBoldItalic-webfont.svg +1830 -0
- data/assets/fonts/patternfly/OpenSans-ExtraBoldItalic-webfont.ttf +0 -0
- data/assets/fonts/patternfly/OpenSans-ExtraBoldItalic-webfont.woff +0 -0
- data/assets/fonts/patternfly/OpenSans-Italic-webfont.eot +0 -0
- data/assets/fonts/patternfly/OpenSans-Italic-webfont.svg +1830 -0
- data/assets/fonts/patternfly/OpenSans-Italic-webfont.ttf +0 -0
- data/assets/fonts/patternfly/OpenSans-Italic-webfont.woff +0 -0
- data/assets/fonts/patternfly/OpenSans-Light-webfont.eot +0 -0
- data/assets/fonts/patternfly/OpenSans-Light-webfont.svg +1831 -0
- data/assets/fonts/patternfly/OpenSans-Light-webfont.ttf +0 -0
- data/assets/fonts/patternfly/OpenSans-Light-webfont.woff +0 -0
- data/assets/fonts/patternfly/OpenSans-LightItalic-webfont.eot +0 -0
- data/assets/fonts/patternfly/OpenSans-LightItalic-webfont.svg +1835 -0
- data/assets/fonts/patternfly/OpenSans-LightItalic-webfont.ttf +0 -0
- data/assets/fonts/patternfly/OpenSans-LightItalic-webfont.woff +0 -0
- data/assets/fonts/patternfly/OpenSans-Regular-webfont.eot +0 -0
- data/assets/fonts/patternfly/OpenSans-Regular-webfont.svg +1831 -0
- data/assets/fonts/patternfly/OpenSans-Regular-webfont.ttf +0 -0
- data/assets/fonts/patternfly/OpenSans-Regular-webfont.woff +0 -0
- data/assets/fonts/patternfly/OpenSans-Semibold-webfont.eot +0 -0
- data/assets/fonts/patternfly/OpenSans-Semibold-webfont.svg +1830 -0
- data/assets/fonts/patternfly/OpenSans-Semibold-webfont.ttf +0 -0
- data/assets/fonts/patternfly/OpenSans-Semibold-webfont.woff +0 -0
- data/assets/fonts/patternfly/OpenSans-SemiboldItalic-webfont.eot +0 -0
- data/assets/fonts/patternfly/OpenSans-SemiboldItalic-webfont.svg +1830 -0
- data/assets/fonts/patternfly/OpenSans-SemiboldItalic-webfont.ttf +0 -0
- data/assets/fonts/patternfly/OpenSans-SemiboldItalic-webfont.woff +0 -0
- data/assets/fonts/patternfly/PatternFlyIcons-webfont.eot +0 -0
- data/assets/fonts/patternfly/PatternFlyIcons-webfont.svg +63 -0
- data/assets/fonts/patternfly/PatternFlyIcons-webfont.ttf +0 -0
- data/assets/fonts/patternfly/PatternFlyIcons-webfont.woff +0 -0
- data/assets/images/patternfly/apple-touch-icon-114-precomposed.png +0 -0
- data/assets/images/patternfly/apple-touch-icon-144-precomposed.png +0 -0
- data/assets/images/patternfly/apple-touch-icon-57-precomposed.png +0 -0
- data/assets/images/patternfly/apple-touch-icon-72-precomposed.png +0 -0
- data/{dist/img → assets/images/patternfly}/bg-login.jpg +0 -0
- data/assets/images/patternfly/brand-lg.png +0 -0
- data/assets/images/patternfly/brand.png +0 -0
- data/{dist/img → assets/images/patternfly}/brand.svg +87 -87
- data/assets/images/patternfly/logo.png +0 -0
- data/{dist/img → assets/images/patternfly}/logo.svg +22 -22
- data/{dist/img → assets/images/patternfly}/spinner-lg.gif +0 -0
- data/{dist/img → assets/images/patternfly}/spinner-sm.gif +0 -0
- data/{dist/img → assets/images/patternfly}/spinner-xs.gif +0 -0
- data/{dist/img → assets/images/patternfly}/spinner.gif +0 -0
- data/assets/javascripts/patternfly/patternfly.js +212 -0
- data/assets/javascripts/patternfly/patternfly.min.js +1 -0
- data/{dist/sass → assets/stylesheets}/_patternfly-compass.scss +1 -1
- data/{dist/sass → assets/stylesheets}/_patternfly-sprockets.scss +1 -1
- data/assets/stylesheets/_patternfly.scss +105 -0
- data/assets/stylesheets/patternfly/_alerts.scss +29 -0
- data/{dist/sass → assets/stylesheets}/patternfly/_badges.scss +0 -0
- data/assets/stylesheets/patternfly/_blank-slate.scss +29 -0
- data/assets/stylesheets/patternfly/_bootstrap-combobox-css.scss +42 -0
- data/{dist/sass/rcue → assets/stylesheets/patternfly}/_bootstrap-combobox.scss +2 -2
- data/assets/stylesheets/patternfly/_bootstrap-select-css.scss +309 -0
- data/{dist/sass → assets/stylesheets}/patternfly/_bootstrap-select.scss +15 -24
- data/assets/stylesheets/patternfly/_bootstrap-treeview.scss +37 -0
- data/{dist/sass/rcue → assets/stylesheets/patternfly}/_breadcrumbs.scss +2 -2
- data/{dist/sass/rcue → assets/stylesheets/patternfly}/_buttons.scss +8 -10
- data/assets/stylesheets/patternfly/_close.scss +13 -0
- data/{dist/sass/rcue → assets/stylesheets/patternfly}/_datatables.scss +69 -33
- data/{dist/sass/rcue → assets/stylesheets/patternfly}/_dropdowns.scss +6 -96
- data/assets/stylesheets/patternfly/_fonts.scss +54 -0
- data/assets/stylesheets/patternfly/_forms.scss +31 -0
- data/assets/stylesheets/patternfly/_icons.scss +155 -0
- data/{dist/sass → assets/stylesheets}/patternfly/_infotip.scss +8 -4
- data/{dist/sass → assets/stylesheets}/patternfly/_labels.scss +2 -7
- data/{dist/sass → assets/stylesheets}/patternfly/_list-group.scss +2 -7
- data/assets/stylesheets/patternfly/_login.scss +121 -0
- data/assets/stylesheets/patternfly/_mixin_overrides.scss +55 -0
- data/assets/stylesheets/patternfly/_mixins.scss +96 -0
- data/{dist/sass/rcue → assets/stylesheets/patternfly}/_modals.scss +2 -13
- data/{dist/sass → assets/stylesheets}/patternfly/_navbar.scss +98 -176
- data/{dist/sass → assets/stylesheets}/patternfly/_pager.scss +6 -2
- data/assets/stylesheets/patternfly/_pagination.scss +64 -0
- data/assets/stylesheets/patternfly/_panels.scss +57 -0
- data/assets/stylesheets/patternfly/_popovers.scss +32 -0
- data/{dist/sass → assets/stylesheets}/patternfly/_progress-bars.scss +19 -49
- data/{dist/sass/rcue → assets/stylesheets/patternfly}/_search.scss +10 -9
- data/{dist/sass → assets/stylesheets}/patternfly/_sidebar.scss +32 -34
- data/assets/stylesheets/patternfly/_spinner.scss +62 -0
- data/{dist/sass → assets/stylesheets}/patternfly/_syntax-highlighting.scss +5 -16
- data/{dist/sass/rcue → assets/stylesheets/patternfly}/_tables.scss +4 -24
- data/{dist/sass/rcue → assets/stylesheets/patternfly}/_tabs.scss +3 -3
- data/{dist/sass/rcue → assets/stylesheets/patternfly}/_tooltip.scss +3 -2
- data/{dist/sass → assets/stylesheets}/patternfly/_type.scss +5 -10
- data/assets/stylesheets/patternfly/_variables.scss +225 -0
- data/bower.json +29 -0
- data/lib/patternfly-sass.rb +5 -8
- data/lib/patternfly-sass/engine.rb +6 -3
- data/lib/patternfly-sass/version.rb +2 -1
- data/package.json +28 -0
- data/patternfly-sass.gemspec +18 -20
- data/spec/compare_spec.rb +43 -0
- data/spec/spec_helper.rb +9 -0
- data/tasks/converter.rb +455 -0
- data/tests/capture.js +43 -0
- data/tests/components/bootstrap-combobox/.bower.json +14 -0
- data/tests/components/bootstrap-combobox/.gitignore +1 -0
- data/tests/components/bootstrap-combobox/README.md +59 -0
- data/tests/components/bootstrap-combobox/css/bootstrap-combobox.css +42 -0
- data/tests/components/bootstrap-combobox/js/bootstrap-combobox.js +438 -0
- data/tests/components/bootstrap-combobox/js/tests/index.html +29 -0
- data/tests/components/bootstrap-combobox/js/tests/unit/bootstrap-combobox.js +323 -0
- data/tests/components/bootstrap-combobox/js/tests/vendor/jquery.js +9597 -0
- data/tests/components/bootstrap-combobox/js/tests/vendor/qunit.css +244 -0
- data/tests/components/bootstrap-combobox/js/tests/vendor/qunit.js +2152 -0
- data/{dist/sass/patternfly/dependencies/bootstrap-combobox/combobox.scss → tests/components/bootstrap-combobox/less/combobox.less} +8 -10
- data/tests/components/bootstrap-select/.bower.json +38 -0
- data/tests/components/bootstrap-select/CONTRIBUTING.md +87 -0
- data/tests/components/bootstrap-select/README.md +61 -0
- data/tests/components/bootstrap-select/bootstrap-select.css +309 -0
- data/tests/components/bootstrap-select/bootstrap-select.jquery.json +29 -0
- data/tests/components/bootstrap-select/bootstrap-select.js +972 -0
- data/tests/components/bootstrap-select/bootstrap-select.min.css +7 -0
- data/tests/components/bootstrap-select/bootstrap-select.min.js +8 -0
- data/tests/components/bootstrap-select/bower.json +29 -0
- data/tests/components/bootstrap-select/composer.json +17 -0
- data/tests/components/bootstrap-select/i18n/defaults-cs-CZ.js +29 -0
- data/tests/components/bootstrap-select/i18n/defaults-cz-CZ.min.js +6 -0
- data/tests/components/bootstrap-select/i18n/defaults-de_DE.js +29 -0
- data/tests/components/bootstrap-select/i18n/defaults-de_DE.min.js +6 -0
- data/tests/components/bootstrap-select/i18n/defaults-es-CL.js +29 -0
- data/tests/components/bootstrap-select/i18n/defaults-es-CL.min.js +6 -0
- data/tests/components/bootstrap-select/i18n/defaults-eu.js +30 -0
- data/tests/components/bootstrap-select/i18n/defaults-eu.min.js +6 -0
- data/tests/components/bootstrap-select/i18n/defaults-it_IT.js +32 -0
- data/tests/components/bootstrap-select/i18n/defaults-it_IT.min.js +1 -0
- data/tests/components/bootstrap-select/i18n/defaults-nl_NL.js +32 -0
- data/tests/components/bootstrap-select/i18n/defaults-nl_NL.min.js +7 -0
- data/tests/components/bootstrap-select/i18n/defaults-pl_PL.js +29 -0
- data/tests/components/bootstrap-select/i18n/defaults-pl_PL.min.js +6 -0
- data/tests/components/bootstrap-select/i18n/defaults-pt_BR.js +33 -0
- data/tests/components/bootstrap-select/i18n/defaults-pt_BR.min.js +7 -0
- data/tests/components/bootstrap-select/i18n/defaults-ru-RU.js +31 -0
- data/tests/components/bootstrap-select/i18n/defaults-ru_RU.min.js +6 -0
- data/tests/components/bootstrap-select/i18n/defaults-zh_CN.js +30 -0
- data/tests/components/bootstrap-select/i18n/defaults-zh_CN.min.js +6 -0
- data/tests/components/bootstrap-select/package.json +31 -0
- data/tests/components/bootstrap-select/test.html +62 -0
- data/tests/components/bootstrap-treeview/.bower.json +38 -0
- data/tests/components/bootstrap-treeview/Gruntfile.js +62 -0
- data/tests/components/bootstrap-treeview/LICENSE +202 -0
- data/tests/components/bootstrap-treeview/README.md +289 -0
- data/tests/components/bootstrap-treeview/app.js +29 -0
- data/tests/components/bootstrap-treeview/bower.json +29 -0
- data/tests/components/bootstrap-treeview/dist/bootstrap-treeview.min.css +1 -0
- data/tests/components/bootstrap-treeview/dist/bootstrap-treeview.min.js +1 -0
- data/tests/components/bootstrap-treeview/package.json +18 -0
- data/tests/components/bootstrap-treeview/public/css/bootstrap-treeview.css +37 -0
- data/tests/components/bootstrap-treeview/public/example-dom.html +59 -0
- data/tests/components/bootstrap-treeview/public/index.html +333 -0
- data/tests/components/bootstrap-treeview/public/js/bootstrap-treeview.js +455 -0
- data/tests/components/bootstrap-treeview/screenshot/default.PNG +0 -0
- data/tests/components/bootstrap-treeview/src/css/bootstrap-treeview.css +37 -0
- data/tests/components/bootstrap-treeview/src/js/bootstrap-treeview.js +455 -0
- data/tests/components/datatables-colreorder/.bower.json +22 -0
- data/tests/components/datatables-colreorder/License.txt +20 -0
- data/tests/components/datatables-colreorder/Readme.md +39 -0
- data/tests/components/datatables-colreorder/bower.json +12 -0
- data/tests/components/datatables-colreorder/css/dataTables.colReorder.css +14 -0
- data/tests/components/datatables-colreorder/examples/alt_insert.xml +30 -0
- data/tests/components/datatables-colreorder/examples/col_filter.xml +38 -0
- data/tests/components/datatables-colreorder/examples/colvis.xml +26 -0
- data/tests/components/datatables-colreorder/examples/fixedcolumns.xml +43 -0
- data/tests/components/datatables-colreorder/examples/fixedheader.xml +27 -0
- data/tests/components/datatables-colreorder/examples/index.xml +19 -0
- data/tests/components/datatables-colreorder/examples/jqueryui.xml +27 -0
- data/tests/components/datatables-colreorder/examples/new_init.xml +23 -0
- data/tests/components/datatables-colreorder/examples/predefined.xml +30 -0
- data/tests/components/datatables-colreorder/examples/realtime.xml +30 -0
- data/tests/components/datatables-colreorder/examples/reset.xml +41 -0
- data/tests/components/datatables-colreorder/examples/scrolling.xml +27 -0
- data/tests/components/datatables-colreorder/examples/server_side.xml +38 -0
- data/tests/components/datatables-colreorder/examples/simple.xml +25 -0
- data/tests/components/datatables-colreorder/examples/state_save.xml +26 -0
- data/tests/components/datatables-colreorder/images/.DS_Store +0 -0
- data/tests/components/datatables-colreorder/images/insert.png +0 -0
- data/tests/components/datatables-colreorder/js/dataTables.colReorder.js +1372 -0
- data/tests/components/datatables-colreorder/make.sh +31 -0
- data/tests/components/datatables-colvis/.bower.json +22 -0
- data/tests/components/datatables-colvis/License.txt +20 -0
- data/tests/components/datatables-colvis/README.md +38 -0
- data/tests/components/datatables-colvis/bower.json +12 -0
- data/tests/components/datatables-colvis/css/dataTables.colVis.css +185 -0
- data/tests/components/datatables-colvis/css/dataTables.colvis.jqueryui.css +41 -0
- data/tests/components/datatables-colvis/examples/.DS_Store +0 -0
- data/tests/components/datatables-colvis/examples/button_order.xml +26 -0
- data/tests/components/datatables-colvis/examples/exclude_columns.xml +28 -0
- data/tests/components/datatables-colvis/examples/group_columns.xml +40 -0
- data/tests/components/datatables-colvis/examples/index.xml +18 -0
- data/tests/components/datatables-colvis/examples/jqueryui.xml +28 -0
- data/tests/components/datatables-colvis/examples/mouseover.xml +28 -0
- data/tests/components/datatables-colvis/examples/new_init.xml +26 -0
- data/tests/components/datatables-colvis/examples/restore.xml +33 -0
- data/tests/components/datatables-colvis/examples/simple.xml +25 -0
- data/tests/components/datatables-colvis/examples/text.xml +29 -0
- data/tests/components/datatables-colvis/examples/title_callback.xml +30 -0
- data/tests/components/datatables-colvis/examples/two_tables.xml +24 -0
- data/tests/components/datatables-colvis/examples/two_tables_identical.xml +35 -0
- data/tests/components/datatables-colvis/js/dataTables.colVis.js +1123 -0
- data/tests/components/datatables-colvis/make.sh +28 -0
- data/tests/components/datatables/.bower.json +42 -0
- data/tests/components/datatables/Contributing.md +18 -0
- data/tests/components/datatables/Readme.md +53 -0
- data/tests/components/datatables/bower.json +32 -0
- data/tests/components/datatables/license.txt +20 -0
- data/tests/components/datatables/media/css/jquery.dataTables.css +455 -0
- data/tests/components/datatables/media/css/jquery.dataTables.min.css +1 -0
- data/tests/components/datatables/media/css/jquery.dataTables_themeroller.css +416 -0
- data/tests/components/datatables/media/images/Sorting icons.psd +0 -0
- data/tests/components/datatables/media/images/favicon.ico +0 -0
- data/tests/components/datatables/media/images/sort_asc.png +0 -0
- data/tests/components/datatables/media/images/sort_asc_disabled.png +0 -0
- data/tests/components/datatables/media/images/sort_both.png +0 -0
- data/tests/components/datatables/media/images/sort_desc.png +0 -0
- data/tests/components/datatables/media/images/sort_desc_disabled.png +0 -0
- data/tests/components/datatables/media/js/jquery.dataTables.js +14951 -0
- data/tests/components/datatables/media/js/jquery.dataTables.min.js +160 -0
- data/tests/components/datatables/media/js/jquery.js +5 -0
- data/tests/components/google-code-prettify/.bower.json +26 -0
- data/tests/components/google-code-prettify/CHANGES.html +172 -0
- data/tests/components/google-code-prettify/COPYING +191 -0
- data/tests/components/google-code-prettify/README-zh-Hans.html +143 -0
- data/tests/components/google-code-prettify/README.html +233 -0
- data/tests/components/google-code-prettify/README.md +54 -0
- data/tests/components/google-code-prettify/bin/prettify.min.css +1 -0
- data/tests/components/google-code-prettify/bin/prettify.min.js +30 -0
- data/tests/components/google-code-prettify/bin/run_prettify.min.js +34 -0
- data/tests/components/google-code-prettify/bower.json +16 -0
- data/tests/components/google-code-prettify/examples/quine.html +55 -0
- data/tests/components/google-code-prettify/src/lang-apollo.js +51 -0
- data/tests/components/google-code-prettify/src/lang-basic.js +32 -0
- data/tests/components/google-code-prettify/src/lang-clj.js +64 -0
- data/tests/components/google-code-prettify/src/lang-css.js +159 -0
- data/tests/components/google-code-prettify/src/lang-dart.js +88 -0
- data/tests/components/google-code-prettify/src/lang-erlang.js +92 -0
- data/tests/components/google-code-prettify/src/lang-go.js +58 -0
- data/tests/components/google-code-prettify/src/lang-hs.js +101 -0
- data/tests/components/google-code-prettify/src/lang-lisp.js +94 -0
- data/tests/components/google-code-prettify/src/lang-llvm.js +61 -0
- data/tests/components/google-code-prettify/src/lang-lua.js +59 -0
- data/tests/components/google-code-prettify/src/lang-matlab.js +180 -0
- data/tests/components/google-code-prettify/src/lang-ml.js +56 -0
- data/tests/components/google-code-prettify/src/lang-mumps.js +139 -0
- data/tests/components/google-code-prettify/src/lang-n.js +65 -0
- data/tests/components/google-code-prettify/src/lang-pascal.js +32 -0
- data/tests/components/google-code-prettify/src/lang-proto.js +35 -0
- data/tests/components/google-code-prettify/src/lang-r.js +57 -0
- data/tests/components/google-code-prettify/src/lang-rd.js +47 -0
- data/tests/components/google-code-prettify/src/lang-scala.js +54 -0
- data/tests/components/google-code-prettify/src/lang-sql.js +58 -0
- data/tests/components/google-code-prettify/src/lang-tcl.js +62 -0
- data/tests/components/google-code-prettify/src/lang-tex.js +46 -0
- data/tests/components/google-code-prettify/src/lang-vb.js +66 -0
- data/tests/components/google-code-prettify/src/lang-vhdl.js +34 -0
- data/tests/components/google-code-prettify/src/lang-wiki.js +53 -0
- data/tests/components/google-code-prettify/src/lang-xq.js +67 -0
- data/tests/components/google-code-prettify/src/lang-yaml.js +27 -0
- data/tests/components/google-code-prettify/src/prettify.css +52 -0
- data/tests/components/google-code-prettify/src/prettify.js +1655 -0
- data/tests/components/google-code-prettify/src/run_prettify.js +1905 -0
- data/tests/components/google-code-prettify/styles/demo.html +61 -0
- data/tests/components/google-code-prettify/styles/desert.css +34 -0
- data/tests/components/google-code-prettify/styles/doxy.css +64 -0
- data/tests/components/google-code-prettify/styles/index.html +89 -0
- data/tests/components/google-code-prettify/styles/sons-of-obsidian.css +118 -0
- data/tests/components/google-code-prettify/styles/sunburst.css +51 -0
- data/tests/components/jquery/.bower.json +38 -0
- data/tests/components/jquery/MIT-LICENSE.txt +21 -0
- data/tests/components/jquery/bower.json +28 -0
- data/tests/components/jquery/dist/jquery.js +9210 -0
- data/tests/components/jquery/dist/jquery.min.js +5 -0
- data/tests/components/jquery/dist/jquery.min.map +1 -0
- data/tests/components/jquery/src/ajax.js +786 -0
- data/tests/components/jquery/src/ajax/jsonp.js +89 -0
- data/tests/components/jquery/src/ajax/load.js +75 -0
- data/tests/components/jquery/src/ajax/parseJSON.js +13 -0
- data/tests/components/jquery/src/ajax/parseXML.js +28 -0
- data/tests/components/jquery/src/ajax/script.js +64 -0
- data/tests/components/jquery/src/ajax/var/nonce.js +5 -0
- data/tests/components/jquery/src/ajax/var/rquery.js +3 -0
- data/tests/components/jquery/src/ajax/xhr.js +136 -0
- data/tests/components/jquery/src/attributes.js +11 -0
- data/tests/components/jquery/src/attributes/attr.js +141 -0
- data/tests/components/jquery/src/attributes/classes.js +158 -0
- data/tests/components/jquery/src/attributes/prop.js +94 -0
- data/tests/components/jquery/src/attributes/support.js +35 -0
- data/tests/components/jquery/src/attributes/val.js +161 -0
- data/tests/components/jquery/src/callbacks.js +205 -0
- data/tests/components/jquery/src/core.js +502 -0
- data/tests/components/jquery/src/core/access.js +60 -0
- data/tests/components/jquery/src/core/init.js +123 -0
- data/tests/components/jquery/src/core/parseHTML.js +39 -0
- data/tests/components/jquery/src/core/ready.js +97 -0
- data/tests/components/jquery/src/core/var/rsingleTag.js +4 -0
- data/tests/components/jquery/src/css.js +450 -0
- data/tests/components/jquery/src/css/addGetHookIf.js +22 -0
- data/tests/components/jquery/src/css/curCSS.js +57 -0
- data/tests/components/jquery/src/css/defaultDisplay.js +70 -0
- data/tests/components/jquery/src/css/hiddenVisibleSelectors.js +15 -0
- data/tests/components/jquery/src/css/support.js +96 -0
- data/tests/components/jquery/src/css/swap.js +28 -0
- data/tests/components/jquery/src/css/var/cssExpand.js +3 -0
- data/tests/components/jquery/src/css/var/getStyles.js +12 -0
- data/tests/components/jquery/src/css/var/isHidden.js +13 -0
- data/tests/components/jquery/src/css/var/rmargin.js +3 -0
- data/tests/components/jquery/src/css/var/rnumnonpx.js +5 -0
- data/tests/components/jquery/src/data.js +178 -0
- data/tests/components/jquery/src/data/Data.js +181 -0
- data/tests/components/jquery/src/data/accepts.js +20 -0
- data/tests/components/jquery/src/data/var/data_priv.js +5 -0
- data/tests/components/jquery/src/data/var/data_user.js +5 -0
- data/tests/components/jquery/src/deferred.js +149 -0
- data/tests/components/jquery/src/deprecated.js +13 -0
- data/tests/components/jquery/src/dimensions.js +50 -0
- data/tests/components/jquery/src/effects.js +648 -0
- data/tests/components/jquery/src/effects/Tween.js +114 -0
- data/tests/components/jquery/src/effects/animatedSelector.js +13 -0
- data/tests/components/jquery/src/event.js +868 -0
- data/tests/components/jquery/src/event/ajax.js +13 -0
- data/tests/components/jquery/src/event/alias.js +39 -0
- data/tests/components/jquery/src/event/support.js +9 -0
- data/tests/components/jquery/src/exports/amd.js +24 -0
- data/tests/components/jquery/src/exports/global.js +32 -0
- data/tests/components/jquery/src/intro.js +44 -0
- data/tests/components/jquery/src/jquery.js +37 -0
- data/tests/components/jquery/src/manipulation.js +580 -0
- data/tests/components/jquery/src/manipulation/_evalUrl.js +18 -0
- data/tests/components/jquery/src/manipulation/support.js +32 -0
- data/tests/components/jquery/src/manipulation/var/rcheckableType.js +3 -0
- data/tests/components/jquery/src/offset.js +207 -0
- data/tests/components/jquery/src/outro.js +1 -0
- data/tests/components/jquery/src/queue.js +142 -0
- data/tests/components/jquery/src/queue/delay.js +22 -0
- data/tests/components/jquery/src/selector-native.js +172 -0
- data/tests/components/jquery/src/selector-sizzle.js +14 -0
- data/tests/components/jquery/src/selector.js +1 -0
- data/tests/components/jquery/src/serialize.js +111 -0
- data/tests/components/jquery/src/sizzle/dist/sizzle.js +2067 -0
- data/tests/components/jquery/src/sizzle/dist/sizzle.min.js +3 -0
- data/tests/components/jquery/src/sizzle/dist/sizzle.min.map +1 -0
- data/tests/components/jquery/src/traversing.js +199 -0
- data/tests/components/jquery/src/traversing/findFilter.js +100 -0
- data/tests/components/jquery/src/traversing/var/rneedsContext.js +6 -0
- data/tests/components/jquery/src/var/arr.js +3 -0
- data/tests/components/jquery/src/var/class2type.js +4 -0
- data/tests/components/jquery/src/var/concat.js +5 -0
- data/tests/components/jquery/src/var/hasOwn.js +5 -0
- data/tests/components/jquery/src/var/indexOf.js +5 -0
- data/tests/components/jquery/src/var/pnum.js +3 -0
- data/tests/components/jquery/src/var/push.js +5 -0
- data/tests/components/jquery/src/var/rnotwhite.js +3 -0
- data/tests/components/jquery/src/var/slice.js +5 -0
- data/tests/components/jquery/src/var/strundefined.js +3 -0
- data/tests/components/jquery/src/var/support.js +4 -0
- data/tests/components/jquery/src/var/toString.js +5 -0
- data/tests/components/jquery/src/wrap.js +79 -0
- data/tests/index.html +16 -0
- data/tests/patternfly/accordions.html +84 -0
- data/tests/patternfly/alerts.html +85 -0
- data/tests/patternfly/badges.html +67 -0
- data/tests/patternfly/basic.html +552 -0
- data/tests/patternfly/blank-slate.html +77 -0
- data/tests/patternfly/bootstrap-combobox.html +338 -0
- data/tests/patternfly/bootstrap-select.html +210 -0
- data/tests/patternfly/bootstrap-treeview-2.html +271 -0
- data/tests/patternfly/bootstrap-treeview.html +234 -0
- data/tests/patternfly/breadcrumbs.html +46 -0
- data/tests/patternfly/buttons.html +521 -0
- data/tests/patternfly/code.html +77 -0
- data/tests/patternfly/dashboard.html +217 -0
- data/tests/patternfly/datatables-columns.html +487 -0
- data/tests/patternfly/datatables.html +466 -0
- data/tests/patternfly/dist/css/patternfly.css +11483 -0
- data/tests/patternfly/dist/css/patternfly.min.css +10 -0
- data/tests/patternfly/dist/css/styles.css +1 -0
- data/tests/patternfly/dist/css/styles.min.css +1 -0
- data/tests/patternfly/dropdowns.html +48 -0
- data/tests/patternfly/form.html +257 -0
- data/tests/patternfly/forms.html +425 -0
- data/tests/patternfly/icons.html +276 -0
- data/tests/patternfly/img/dashboard-1.png +0 -0
- data/tests/patternfly/img/dashboard-2.png +0 -0
- data/tests/patternfly/img/dashboard-3.png +0 -0
- data/tests/patternfly/img/dashboard-4.png +0 -0
- data/tests/patternfly/index.html +163 -0
- data/tests/patternfly/infotip.html +82 -0
- data/tests/patternfly/labels.html +102 -0
- data/tests/patternfly/list-group.html +105 -0
- data/tests/patternfly/login.html +74 -0
- data/tests/patternfly/modals.html +77 -0
- data/tests/patternfly/navbar.html +5424 -0
- data/tests/patternfly/pagination.html +277 -0
- data/tests/patternfly/panels.html +107 -0
- data/tests/patternfly/popovers.html +98 -0
- data/tests/patternfly/progress-bars.html +271 -0
- data/tests/patternfly/search.html +165 -0
- data/tests/patternfly/spinner.html +66 -0
- data/tests/patternfly/tab.html +595 -0
- data/tests/patternfly/tables.html +203 -0
- data/tests/patternfly/tabs.html +273 -0
- data/tests/patternfly/tests.css +16 -0
- data/tests/patternfly/tooltip.html +64 -0
- data/tests/patternfly/typography-2.css +10 -0
- data/tests/patternfly/typography-2.html +284 -0
- data/tests/patternfly/typography.html +189 -0
- metadata +843 -374
- data/CODE_OF_CONDUCT.md +0 -4
- data/OPEN_SOURCE_LICENCES.txt +0 -1366
- data/QUICKSTART.md +0 -210
- data/dist/fonts/FontAwesome.otf +0 -0
- data/dist/fonts/OpenSans-Bold-webfont.eot +0 -0
- data/dist/fonts/OpenSans-Bold-webfont.svg +0 -19028
- data/dist/fonts/OpenSans-Bold-webfont.ttf +0 -0
- data/dist/fonts/OpenSans-Bold-webfont.woff +0 -0
- data/dist/fonts/OpenSans-Bold-webfont.woff2 +0 -0
- data/dist/fonts/OpenSans-BoldItalic-webfont.eot +0 -0
- data/dist/fonts/OpenSans-BoldItalic-webfont.svg +0 -19036
- data/dist/fonts/OpenSans-BoldItalic-webfont.ttf +0 -0
- data/dist/fonts/OpenSans-BoldItalic-webfont.woff +0 -0
- data/dist/fonts/OpenSans-BoldItalic-webfont.woff2 +0 -0
- data/dist/fonts/OpenSans-ExtraBold-webfont.eot +0 -0
- data/dist/fonts/OpenSans-ExtraBold-webfont.svg +0 -19030
- data/dist/fonts/OpenSans-ExtraBold-webfont.ttf +0 -0
- data/dist/fonts/OpenSans-ExtraBold-webfont.woff +0 -0
- data/dist/fonts/OpenSans-ExtraBold-webfont.woff2 +0 -0
- data/dist/fonts/OpenSans-ExtraBoldItalic-webfont.eot +0 -0
- data/dist/fonts/OpenSans-ExtraBoldItalic-webfont.svg +0 -19036
- data/dist/fonts/OpenSans-ExtraBoldItalic-webfont.ttf +0 -0
- data/dist/fonts/OpenSans-ExtraBoldItalic-webfont.woff +0 -0
- data/dist/fonts/OpenSans-ExtraBoldItalic-webfont.woff2 +0 -0
- data/dist/fonts/OpenSans-Italic-webfont.eot +0 -0
- data/dist/fonts/OpenSans-Italic-webfont.svg +0 -19043
- data/dist/fonts/OpenSans-Italic-webfont.ttf +0 -0
- data/dist/fonts/OpenSans-Italic-webfont.woff +0 -0
- data/dist/fonts/OpenSans-Italic-webfont.woff2 +0 -0
- data/dist/fonts/OpenSans-Light-webfont.eot +0 -0
- data/dist/fonts/OpenSans-Light-webfont.svg +0 -19026
- data/dist/fonts/OpenSans-Light-webfont.ttf +0 -0
- data/dist/fonts/OpenSans-Light-webfont.woff +0 -0
- data/dist/fonts/OpenSans-Light-webfont.woff2 +0 -0
- data/dist/fonts/OpenSans-LightItalic-webfont.eot +0 -0
- data/dist/fonts/OpenSans-LightItalic-webfont.svg +0 -19039
- data/dist/fonts/OpenSans-LightItalic-webfont.ttf +0 -0
- data/dist/fonts/OpenSans-LightItalic-webfont.woff +0 -0
- data/dist/fonts/OpenSans-LightItalic-webfont.woff2 +0 -0
- data/dist/fonts/OpenSans-Regular-webfont.eot +0 -0
- data/dist/fonts/OpenSans-Regular-webfont.svg +0 -19030
- data/dist/fonts/OpenSans-Regular-webfont.ttf +0 -0
- data/dist/fonts/OpenSans-Regular-webfont.woff +0 -0
- data/dist/fonts/OpenSans-Regular-webfont.woff2 +0 -0
- data/dist/fonts/OpenSans-Semibold-webfont.eot +0 -0
- data/dist/fonts/OpenSans-Semibold-webfont.svg +0 -19030
- data/dist/fonts/OpenSans-Semibold-webfont.ttf +0 -0
- data/dist/fonts/OpenSans-Semibold-webfont.woff +0 -0
- data/dist/fonts/OpenSans-Semibold-webfont.woff2 +0 -0
- data/dist/fonts/OpenSans-SemiboldItalic-webfont.eot +0 -0
- data/dist/fonts/OpenSans-SemiboldItalic-webfont.svg +0 -19043
- data/dist/fonts/OpenSans-SemiboldItalic-webfont.ttf +0 -0
- data/dist/fonts/OpenSans-SemiboldItalic-webfont.woff +0 -0
- data/dist/fonts/OpenSans-SemiboldItalic-webfont.woff2 +0 -0
- data/dist/fonts/PatternFlyIcons-webfont.eot +0 -0
- data/dist/fonts/PatternFlyIcons-webfont.svg +0 -140
- data/dist/fonts/PatternFlyIcons-webfont.ttf +0 -0
- data/dist/fonts/PatternFlyIcons-webfont.woff +0 -0
- data/dist/fonts/fontawesome-webfont.eot +0 -0
- data/dist/fonts/fontawesome-webfont.svg +0 -2671
- data/dist/fonts/fontawesome-webfont.ttf +0 -0
- data/dist/fonts/fontawesome-webfont.woff +0 -0
- data/dist/fonts/fontawesome-webfont.woff2 +0 -0
- data/dist/fonts/glyphicons-halflings-regular.eot +0 -0
- data/dist/fonts/glyphicons-halflings-regular.svg +0 -288
- data/dist/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/dist/fonts/glyphicons-halflings-regular.woff +0 -0
- data/dist/fonts/glyphicons-halflings-regular.woff2 +0 -0
- data/dist/img/Logo_Horizontal_Reversed.svg +0 -49
- data/dist/img/OpenShift-Logo-NoText.svg +0 -51
- data/dist/img/OpenShift-Logo-Text.svg +0 -95
- data/dist/img/OpenShift-logo.svg +0 -69
- data/dist/img/RH_Atomic-Logo-NoText.svg +0 -53
- data/dist/img/RH_Atomic-Logo-Text.svg +0 -91
- data/dist/img/RH_atomic.svg +0 -88
- data/dist/img/apple-touch-icon-precomposed-114.png +0 -0
- data/dist/img/apple-touch-icon-precomposed-144.png +0 -0
- data/dist/img/apple-touch-icon-precomposed-152.png +0 -0
- data/dist/img/apple-touch-icon-precomposed-180.png +0 -0
- data/dist/img/apple-touch-icon-precomposed-57.png +0 -0
- data/dist/img/apple-touch-icon-precomposed-72.png +0 -0
- data/dist/img/apple-touch-icon-precomposed-76.png +0 -0
- data/dist/img/bg-login-2.png +0 -0
- data/dist/img/bg-login.png +0 -0
- data/dist/img/bg-modal-about-pf.png +0 -0
- data/dist/img/bg-navbar-pf-alt.svg +0 -9
- data/dist/img/brand-alt.svg +0 -88
- data/dist/img/dropbox-logo.svg +0 -15
- data/dist/img/facebook-logo.svg +0 -12
- data/dist/img/favicon.ico +0 -0
- data/dist/img/fedora-logo.png +0 -0
- data/dist/img/git-logo.svg +0 -21
- data/dist/img/github-logo.svg +0 -17
- data/dist/img/gmail.svg +0 -23
- data/dist/img/google-calendar.svg +0 -26
- data/dist/img/google-drive.svg +0 -17
- data/dist/img/google-logo.svg +0 -19
- data/dist/img/instagram-logo.png +0 -0
- data/dist/img/kubernetes-Logo.svg +0 -60
- data/dist/img/kubernetes.svg +0 -8
- data/dist/img/linkedin-logo.svg +0 -13
- data/dist/img/logo-alt.svg +0 -18
- data/dist/img/open-id-logo.svg +0 -19
- data/dist/img/rcue-full.svg +0 -221
- data/dist/img/rcue.svg +0 -92
- data/dist/img/redhat_reverse.png +0 -0
- data/dist/img/skype-logo.svg +0 -23
- data/dist/img/spinner-inverse-lg.gif +0 -0
- data/dist/img/spinner-inverse-sm.gif +0 -0
- data/dist/img/spinner-inverse-xs.gif +0 -0
- data/dist/img/spinner-inverse.gif +0 -0
- data/dist/img/stack-exchange-logo.svg +0 -21
- data/dist/img/twitter-logo.svg +0 -19
- data/dist/js/patternfly-functions-base.js +0 -7
- data/dist/js/patternfly-functions-charts.js +0 -13
- data/dist/js/patternfly-functions-colors.js +0 -8
- data/dist/js/patternfly-functions-count-chars.js +0 -59
- data/dist/js/patternfly-functions-data-tables.js +0 -149
- data/dist/js/patternfly-functions-fixed-heights.js +0 -109
- data/dist/js/patternfly-functions-list.js +0 -79
- data/dist/js/patternfly-functions-navigation.js +0 -113
- data/dist/js/patternfly-functions-popovers.js +0 -37
- data/dist/js/patternfly-functions-sidebar.js +0 -31
- data/dist/js/patternfly-functions-tree-grid.js +0 -82
- data/dist/js/patternfly-functions-vertical-nav.js +0 -610
- data/dist/js/patternfly-functions.js +0 -1307
- data/dist/js/patternfly-functions.min.js +0 -1
- data/dist/js/patternfly-settings-base.d.ts +0 -9
- data/dist/js/patternfly-settings-base.js +0 -16
- data/dist/js/patternfly-settings-charts.d.ts +0 -92
- data/dist/js/patternfly-settings-charts.js +0 -449
- data/dist/js/patternfly-settings-colors.d.ts +0 -88
- data/dist/js/patternfly-settings-colors.js +0 -91
- data/dist/js/patternfly-settings.d.ts +0 -3
- data/dist/js/patternfly-settings.js +0 -558
- data/dist/js/patternfly-settings.min.js +0 -1
- data/dist/js/patternfly.dataTables.pfColVis.js +0 -151
- data/dist/js/patternfly.dataTables.pfEmpty.js +0 -253
- data/dist/js/patternfly.dataTables.pfEmpty.min.js +0 -1
- data/dist/js/patternfly.dataTables.pfFilter.js +0 -429
- data/dist/js/patternfly.dataTables.pfFilter.min.js +0 -1
- data/dist/js/patternfly.dataTables.pfPagination.js +0 -401
- data/dist/js/patternfly.dataTables.pfPagination.min.js +0 -1
- data/dist/js/patternfly.dataTables.pfResize.js +0 -214
- data/dist/js/patternfly.dataTables.pfResize.min.js +0 -1
- data/dist/js/patternfly.dataTables.pfSelect.js +0 -281
- data/dist/js/patternfly.dataTables.pfSelect.min.js +0 -1
- data/dist/js/patternfly.js +0 -1866
- data/dist/js/patternfly.min.js +0 -2
- data/dist/sass/_patternfly.scss +0 -147
- data/dist/sass/patternfly/_about-modal.scss +0 -44
- data/dist/sass/patternfly/_accordion.scss +0 -18
- data/dist/sass/patternfly/_alerts.scss +0 -44
- data/dist/sass/patternfly/_application-launcher.scss +0 -213
- data/dist/sass/patternfly/_blank-slate.scss +0 -52
- data/dist/sass/patternfly/_bootstrap-combobox.scss +0 -35
- data/dist/sass/patternfly/_bootstrap-datepicker.scss +0 -132
- data/dist/sass/patternfly/_bootstrap-mixin-overrides.scss +0 -33
- data/dist/sass/patternfly/_bootstrap-slider.scss +0 -66
- data/dist/sass/patternfly/_bootstrap-switch.scss +0 -19
- data/dist/sass/patternfly/_bootstrap-touchspin.scss +0 -31
- data/dist/sass/patternfly/_bootstrap-treeview.scss +0 -89
- data/dist/sass/patternfly/_breadcrumbs.scss +0 -20
- data/dist/sass/patternfly/_buttons.scss +0 -50
- data/dist/sass/patternfly/_card-view.scss +0 -105
- data/dist/sass/patternfly/_cards.scss +0 -238
- data/dist/sass/patternfly/_charts.scss +0 -388
- data/dist/sass/patternfly/_close.scss +0 -16
- data/dist/sass/patternfly/_color-variables.scss +0 -85
- data/dist/sass/patternfly/_context-selector.scss +0 -125
- data/dist/sass/patternfly/_datatables.scss +0 -186
- data/dist/sass/patternfly/_date-and-time.scss +0 -35
- data/dist/sass/patternfly/_dropdowns.scss +0 -235
- data/dist/sass/patternfly/_experimental-features.scss +0 -48
- data/dist/sass/patternfly/_filter.scss +0 -42
- data/dist/sass/patternfly/_fonts.scss +0 -124
- data/dist/sass/patternfly/_footer.scss +0 -19
- data/dist/sass/patternfly/_forms.scss +0 -192
- data/dist/sass/patternfly/_icons.scss +0 -371
- data/dist/sass/patternfly/_layouts.scss +0 -140
- data/dist/sass/patternfly/_links.scss +0 -5
- data/dist/sass/patternfly/_list-pf.scss +0 -178
- data/dist/sass/patternfly/_list-view-dnd.scss +0 -53
- data/dist/sass/patternfly/_list-view.scss +0 -390
- data/dist/sass/patternfly/_login.scss +0 -341
- data/dist/sass/patternfly/_mixins.scss +0 -81
- data/dist/sass/patternfly/_modals.scss +0 -49
- data/dist/sass/patternfly/_nav-vertical-alt.scss +0 -168
- data/dist/sass/patternfly/_navbar-alt.scss +0 -141
- data/dist/sass/patternfly/_navbar-vertical.scss +0 -168
- data/dist/sass/patternfly/_notifications-drawer.scss +0 -250
- data/dist/sass/patternfly/_pagination.scss +0 -121
- data/dist/sass/patternfly/_panels.scss +0 -134
- data/dist/sass/patternfly/_popovers.scss +0 -52
- data/dist/sass/patternfly/_rcue-about-modal.scss +0 -45
- data/dist/sass/patternfly/_rcue-additions.scss +0 -11
- data/dist/sass/patternfly/_rcue-login.scss +0 -75
- data/dist/sass/patternfly/_rcue-variables.scss +0 -57
- data/dist/sass/patternfly/_rcue.scss +0 -6
- data/dist/sass/patternfly/_search.scss +0 -64
- data/dist/sass/patternfly/_skip-to-content.scss +0 -12
- data/dist/sass/patternfly/_spinner.scss +0 -72
- data/dist/sass/patternfly/_table-view.scss +0 -188
- data/dist/sass/patternfly/_tables.scss +0 -90
- data/dist/sass/patternfly/_tabs.scss +0 -118
- data/dist/sass/patternfly/_time-picker.scss +0 -98
- data/dist/sass/patternfly/_toast.scss +0 -75
- data/dist/sass/patternfly/_toolbar.scss +0 -190
- data/dist/sass/patternfly/_tooltip.scss +0 -15
- data/dist/sass/patternfly/_tree-list-view.scss +0 -83
- data/dist/sass/patternfly/_variables.scss +0 -595
- data/dist/sass/patternfly/_vertical-nav.scss +0 -944
- data/dist/sass/patternfly/_wizard.scss +0 -665
- data/dist/sass/patternfly/dependencies/bootstrap-datepicker/datepicker.scss +0 -242
- data/dist/sass/patternfly/dependencies/bootstrap-datepicker/datepicker3.scss +0 -257
- data/dist/sass/patternfly/dependencies/bootstrap-select/bootstrap-select.scss +0 -389
- data/dist/sass/patternfly/dependencies/bootstrap-select/variables.scss +0 -9
- data/dist/sass/patternfly/dependencies/bootstrap-slider/_mixins.scss +0 -25
- data/dist/sass/patternfly/dependencies/bootstrap-slider/_rules.scss +0 -246
- data/dist/sass/patternfly/dependencies/bootstrap-slider/_variables.scss +0 -28
- data/dist/sass/patternfly/dependencies/bootstrap-slider/bootstrap-slider.scss +0 -42
- data/dist/sass/patternfly/dependencies/bootstrap-switch/bootstrap-switch.scss +0 -195
- data/dist/sass/patternfly/dependencies/bootstrap-switch/build.scss +0 -3
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins.scss +0 -40
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/alerts.scss +0 -14
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/background-variant.scss +0 -9
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/border-radius.scss +0 -18
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/buttons.scss +0 -68
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/center-block.scss +0 -7
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/clearfix.scss +0 -22
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/forms.scss +0 -85
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/gradients.scss +0 -59
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/grid-framework.scss +0 -98
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/grid.scss +0 -122
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/hide-text.scss +0 -21
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/image.scss +0 -33
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/labels.scss +0 -12
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/list-group.scss +0 -29
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/nav-divider.scss +0 -10
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/nav-vertical-align.scss +0 -9
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/opacity.scss +0 -8
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/pagination.scss +0 -23
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/panels.scss +0 -24
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/progress-bar.scss +0 -10
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/reset-filter.scss +0 -8
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/reset-text.scss +0 -18
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/resize.scss +0 -6
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/responsive-visibility.scss +0 -15
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/size.scss +0 -10
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/tab-focus.scss +0 -9
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/table-row.scss +0 -28
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/text-emphasis.scss +0 -9
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/text-overflow.scss +0 -8
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/vendor-prefixes.scss +0 -227
- data/dist/sass/patternfly/dependencies/bootstrap-switch/variables.scss +0 -862
- data/dist/sass/patternfly/dependencies/bootstrap-touchspin/_jquery.bootstrap-touchspin.scss +0 -45
- data/dist/sass/patternfly/dependencies/c3/_c3.scss +0 -178
- data/dist/sass/patternfly/dependencies/eonasdan-bootstrap-datetimepicker/_bootstrap-datetimepicker.scss +0 -344
- data/dist/sass/patternfly/dependencies/eonasdan-bootstrap-datetimepicker/bootstrap-datetimepicker-build.scss +0 -16
- data/dist/sass/rcue/_about-modal.scss +0 -44
- data/dist/sass/rcue/_accordion.scss +0 -18
- data/dist/sass/rcue/_alerts.scss +0 -44
- data/dist/sass/rcue/_badges.scss +0 -11
- data/dist/sass/rcue/_blank-slate.scss +0 -52
- data/dist/sass/rcue/_bootstrap-datepicker.scss +0 -132
- data/dist/sass/rcue/_bootstrap-mixin-overrides.scss +0 -33
- data/dist/sass/rcue/_bootstrap-select.scss +0 -108
- data/dist/sass/rcue/_bootstrap-slider.scss +0 -66
- data/dist/sass/rcue/_bootstrap-switch.scss +0 -19
- data/dist/sass/rcue/_bootstrap-touchspin.scss +0 -31
- data/dist/sass/rcue/_bootstrap-treeview.scss +0 -89
- data/dist/sass/rcue/_card-view.scss +0 -105
- data/dist/sass/rcue/_cards.scss +0 -238
- data/dist/sass/rcue/_charts.scss +0 -388
- data/dist/sass/rcue/_close.scss +0 -16
- data/dist/sass/rcue/_color-variables.scss +0 -85
- data/dist/sass/rcue/_context-selector.scss +0 -125
- data/dist/sass/rcue/_date-and-time.scss +0 -35
- data/dist/sass/rcue/_experimental-features.scss +0 -48
- data/dist/sass/rcue/_filter.scss +0 -42
- data/dist/sass/rcue/_fonts.scss +0 -124
- data/dist/sass/rcue/_footer.scss +0 -19
- data/dist/sass/rcue/_forms.scss +0 -192
- data/dist/sass/rcue/_icons.scss +0 -371
- data/dist/sass/rcue/_infotip.scss +0 -145
- data/dist/sass/rcue/_labels.scss +0 -17
- data/dist/sass/rcue/_layouts.scss +0 -140
- data/dist/sass/rcue/_links.scss +0 -5
- data/dist/sass/rcue/_list-group.scss +0 -23
- data/dist/sass/rcue/_list-pf.scss +0 -178
- data/dist/sass/rcue/_list-view-dnd.scss +0 -53
- data/dist/sass/rcue/_list-view.scss +0 -390
- data/dist/sass/rcue/_login.scss +0 -341
- data/dist/sass/rcue/_mixins.scss +0 -81
- data/dist/sass/rcue/_nav-vertical-alt.scss +0 -168
- data/dist/sass/rcue/_navbar-alt.scss +0 -141
- data/dist/sass/rcue/_navbar-vertical.scss +0 -168
- data/dist/sass/rcue/_navbar.scss +0 -579
- data/dist/sass/rcue/_notifications-drawer.scss +0 -250
- data/dist/sass/rcue/_pager.scss +0 -68
- data/dist/sass/rcue/_pagination.scss +0 -121
- data/dist/sass/rcue/_panels.scss +0 -134
- data/dist/sass/rcue/_patternfly-additions.scss +0 -76
- data/dist/sass/rcue/_patternfly.scss +0 -31
- data/dist/sass/rcue/_popovers.scss +0 -52
- data/dist/sass/rcue/_progress-bars.scss +0 -121
- data/dist/sass/rcue/_rcue-about-modal.scss +0 -45
- data/dist/sass/rcue/_rcue-login.scss +0 -75
- data/dist/sass/rcue/_rcue-variables.scss +0 -57
- data/dist/sass/rcue/_sidebar.scss +0 -176
- data/dist/sass/rcue/_skip-to-content.scss +0 -12
- data/dist/sass/rcue/_spinner.scss +0 -72
- data/dist/sass/rcue/_syntax-highlighting.scss +0 -36
- data/dist/sass/rcue/_table-view.scss +0 -188
- data/dist/sass/rcue/_time-picker.scss +0 -98
- data/dist/sass/rcue/_toast.scss +0 -75
- data/dist/sass/rcue/_toolbar.scss +0 -190
- data/dist/sass/rcue/_tree-list-view.scss +0 -83
- data/dist/sass/rcue/_type.scss +0 -29
- data/dist/sass/rcue/_variables.scss +0 -595
- data/dist/sass/rcue/_vertical-nav.scss +0 -944
- data/dist/sass/rcue/_wizard.scss +0 -665
@@ -1 +0,0 @@
|
|
1
|
-
!function(window){"use strict";var patternfly={version:"3.54.7"};patternfly.pfBreakpoints={tablet:768,desktop:1200},window.patternfly=patternfly}("undefined"!=typeof window?window:global),function(window){"use strict";window.patternfly.pfPaletteColors={black:"#030303",black100:"#fafafa",black200:"#ededed",black300:"#d1d1d1",black400:"#bbbbbb",black500:"#8b8d8f",black600:"#72767b",black700:"#4d5258",black800:"#393f44",black900:"#292e34",blue:"#0088ce",blue100:"#bee1f4",blue200:"#7dc3e8",blue300:"#39a5dc",blue400:"#0088ce",blue500:"#00659c",blue600:"#004368",blue700:"#002235",gold:"#f0ab00",gold100:"#fbeabc",gold200:"#f9d67a",gold300:"#f5c12e",gold400:"#f0ab00",gold500:"#b58100",gold600:"#795600",gold700:"#3d2c00",orange:"#ec7a08",orange100:"#fbdebf",orange200:"#f7bd7f",orange300:"#f39d3c",orange400:"#ec7a08",orange500:"#b35c00",orange600:"#773d00",orange700:"#3b1f00",lightBlue:"#00b9e4",lightBlue100:"#beedf9",lightBlue200:"#7cdbf3",lightBlue300:"#35caed",lightBlue400:"#00b9e4",lightBlue500:"#008bad",lightBlue600:"#005c73",lightBlue700:"#002d39",green:"#3f9c35",green100:"#cfe7cd",green200:"#9ecf99",green300:"#6ec664",green400:"#3f9c35",green500:"#2d7623",green600:"#1e4f18",green700:"#0f280d",lightGreen:"#92d400",lightGreen100:"#e4f5bc",lightGreen200:"#c8eb79",lightGreen300:"#ace12e",lightGreen400:"#92d400",lightGreen500:"#6ca100",lightGreen600:"#486b00",lightGreen700:"#253600",cyan:"#007a87",cyan100:"#bedee1",cyan200:"#7dbdc3",cyan300:"#3a9ca6",cyan400:"#007a87",cyan500:"#005c66",cyan600:"#003d44",cyan700:"#001f22",purple:"#703fec",purple100:"#c7bfff",purple200:"#a18fff",purple300:"#8461f7",purple400:"#703fec",purple500:"#582fc0",purple600:"#40199a",purple700:"#1f0066",red:"#cc0000",red100:"#cc0000",red200:"#a30000",red300:"#8b0000",red400:"#470000",red500:"#2c0000"}}("undefined"!=typeof window?window:global),function(window){"use strict";var patternfly=window.patternfly;patternfly.pfSetDonutChartTitle=function(selector,primary,secondary){var donutChartRightTitle=window.d3.select(selector).select("text.c3-chart-arcs-title");donutChartRightTitle.text(""),donutChartRightTitle.insert("tspan").text(primary).classed("donut-title-big-pf",!0).attr("dy",0).attr("x",0),donutChartRightTitle.insert("tspan").text(secondary).classed("donut-title-small-pf",!0).attr("dy",20).attr("x",0)},patternfly.pfDonutTooltipContents=function(d,defaultTitleFormat,defaultValueFormat,color){return'<table class="c3-tooltip"> <tr> <td><span style="background-color:'+color(d[0].id)+'"></span><strong>'+d[0].value+"</strong> "+d[0].name+"</td> <td>"+Math.round(1e3*d[0].ratio)/10+"%</td> </tr></table>"},patternfly.pfGetUtilizationDonutTooltipContentsFn=function(units){return function(d){return'<span class="donut-tooltip-pf" style="white-space: nowrap;">'+Math.round(1e3*d[0].ratio)/10+"% "+units+" "+d[0].name+"</span>"}},patternfly.pfGetBarChartTooltipContentsFn=function(categories){return function(d){return'<table class="c3-tooltip"> <tr> <td><strong>'+(categories?categories[d[0].index]:d[0].index)+":</td> <td>"+d[0].value+"</td> </tr></table>"}},patternfly.pfSingleLineChartTooltipContentsFn=function(categories){return function(d){return'<table class="c3-tooltip"> <tr> <td><strong>'+(categories?categories[d[0].index]:d[0].index)+":</td> <td>"+d[0].value+"</td> </tr></table>"}},patternfly.pfPieTooltipContents=function(d,defaultTitleFormat,defaultValueFormat,color){return patternfly.pfDonutTooltipContents(d,defaultTitleFormat,defaultValueFormat,color)},patternfly.c3ChartDefaults=function(){var getDefaultColors=function(){return{pattern:[patternfly.pfPaletteColors.blue,patternfly.pfPaletteColors.blue300,patternfly.pfPaletteColors.green,patternfly.pfPaletteColors.orange,patternfly.pfPaletteColors.red]}},getDefaultBarGrid=function(){return{y:{show:!0}}},getDefaultBarTooltip=function(categories){return{contents:patternfly.pfGetBarChartTooltipContentsFn(categories)}},getDefaultBarLegend=function(){return{show:!1}},getDefaultBarConfig=function(categories){return{color:this.getDefaultColors(),grid:this.getDefaultBarGrid(),tooltip:this.getDefaultBarTooltip(categories),legend:this.getDefaultBarLegend()}},getDefaultGroupedBarGrid=function(){return{y:{show:!0}}},getDefaultGroupedBarLegend=function(){return{show:!0,position:"bottom"}},getDefaultGroupedBarConfig=function(){return{color:this.getDefaultColors(),grid:this.getDefaultGroupedBarGrid(),legend:this.getDefaultGroupedBarLegend()}},getDefaultStackedBarGrid=function(){return{y:{show:!0}}},getDefaultStackedBarLegend=function(){return{show:!0,position:"bottom"}},getDefaultStackedBarConfig=function(){return{color:this.getDefaultColors(),grid:this.getDefaultStackedBarGrid(),legend:this.getDefaultStackedBarLegend()}},getDefaultDonut=function(title){return{title:title,label:{show:!1},width:11}},getDefaultDonutSize=function(){return{height:171}},getDefaultDonutColors=function(){return{pattern:[patternfly.pfPaletteColors.blue,patternfly.pfPaletteColors.black300]}},getDefaultRelationshipDonutColors=function(){return{pattern:[patternfly.pfPaletteColors.blue,patternfly.pfPaletteColors.red100,patternfly.pfPaletteColors.orange400,patternfly.pfPaletteColors.green400,patternfly.pfPaletteColors.cyan500,patternfly.pfPaletteColors.gold200]}},getDefaultDonutTooltip=function(){return{show:!1}},getDefaultDonutLegend=function(){return{show:!1}},getDefaultDonutConfig=function(title){return{donut:this.getDefaultDonut(title),size:this.getDefaultDonutSize(),legend:this.getDefaultDonutLegend(),color:this.getDefaultDonutColors(),tooltip:this.getDefaultDonutTooltip()}},getDefaultRelationshipDonutConfig=function(title){return{donut:this.getDefaultDonut(title),size:this.getDefaultDonutSize(),legend:this.getDefaultDonutLegend(),color:this.getDefaultRelationshipDonutColors(),tooltip:this.getDefaultDonutTooltip()}},getDefaultPie=function(){return{expand:!0,label:{show:!1}}},getDefaultPieSize=function(){return{height:171}},getDefaultPieColors=function(){return{pattern:[patternfly.pfPaletteColors.blue,patternfly.pfPaletteColors.black300]}},getDefaultPieTooltip=function(){return{contents:patternfly.pfPieTooltipContents}},getDefaultPieLegend=function(){return{show:!1}},getDefaultPieConfig=function(){return{pie:this.getDefaultPie(),size:this.getDefaultPieSize(),legend:this.getDefaultPieLegend(),color:this.getDefaultPieColors(),tooltip:this.getDefaultPieTooltip()}},getDefaultSparklineArea=function(){return{zerobased:!0}},getDefaultSparklineSize=function(){return{height:60}},getDefaultSparklineAxis=function(){return{x:{show:!1},y:{show:!1}}},getDefaultSparklineLegend=function(){return{show:!1}},getDefaultSparklinePoint=function(){return{r:1,focus:{expand:{r:4}}}},getDefaultSparklineTooltip=function(){return{contents:function(d){return'<span class="c3-tooltip-sparkline">'+d[0].value+" "+d[0].name+"</span>"}}},getDefaultSparklineConfig=function(){return{area:getDefaultSparklineArea(),size:getDefaultSparklineSize(),axis:getDefaultSparklineAxis(),color:getDefaultColors(),legend:getDefaultSparklineLegend(),point:getDefaultSparklinePoint(),tooltip:getDefaultSparklineTooltip()}},getDefaultLineAxis=function(){return{x:{show:!0},y:{show:!0}}},getDefaultLineGrid=function(){return{x:{show:!1},y:{show:!0}}},getDefaultLineLegend=function(){return{show:!0}},getDefaultLinePoint=function(){return{r:3,focus:{expand:{r:5}}}},getDefaultLineConfig=function(){return{axis:getDefaultLineAxis(),grid:getDefaultLineGrid(),color:getDefaultColors(),legend:getDefaultLineLegend(),point:getDefaultLinePoint()}},getDefaultSingleLineTooltip=function(){return{contents:patternfly.pfGetBarChartTooltipContentsFn()}},getDefaultSingleLineLegend=function(){return{show:!1}},getDefaultSingleLineConfig=function(){return{axis:getDefaultLineAxis(),grid:getDefaultLineGrid(),color:getDefaultColors(),legend:getDefaultSingleLineLegend(),point:getDefaultLinePoint(),tooltip:getDefaultSingleLineTooltip()}},getDefaultAreaAxis=function(){return getDefaultLineAxis()},getDefaultAreaGrid=function(){return getDefaultLineGrid()},getDefaultAreaLegend=function(){return getDefaultLineLegend()},getDefaultAreaPoint=function(){return getDefaultLinePoint()},getDefaultAreaConfig=function(){return{axis:getDefaultAreaAxis(),grid:getDefaultAreaGrid(),color:getDefaultColors(),legend:getDefaultAreaLegend(),point:getDefaultAreaPoint()}},getDefaultSingleAreaTooltip=function(){return{contents:patternfly.pfGetBarChartTooltipContentsFn()}},getDefaultSingleAreaLegend=function(){return getDefaultSingleLineLegend()};return{getDefaultColors:getDefaultColors,getDefaultBarGrid:getDefaultBarGrid,getDefaultBarTooltip:getDefaultBarTooltip,getDefaultBarLegend:getDefaultBarLegend,getDefaultBarConfig:getDefaultBarConfig,getDefaultGroupedBarGrid:getDefaultGroupedBarGrid,getDefaultGroupedBarLegend:getDefaultGroupedBarLegend,getDefaultGroupedBarConfig:getDefaultGroupedBarConfig,getDefaultStackedBarGrid:getDefaultStackedBarGrid,getDefaultStackedBarLegend:getDefaultStackedBarLegend,getDefaultStackedBarConfig:getDefaultStackedBarConfig,getDefaultDonut:getDefaultDonut,getDefaultDonutSize:getDefaultDonutSize,getDefaultDonutColors:getDefaultDonutColors,getDefaultDonutTooltip:getDefaultDonutTooltip,getDefaultDonutLegend:getDefaultDonutLegend,getDefaultDonutConfig:getDefaultDonutConfig,getDefaultRelationshipDonutConfig:getDefaultRelationshipDonutConfig,getDefaultPie:getDefaultPie,getDefaultPieSize:getDefaultPieSize,getDefaultPieColors:getDefaultPieColors,getDefaultRelationshipDonutColors:getDefaultRelationshipDonutColors,getDefaultPieTooltip:getDefaultPieTooltip,getDefaultPieLegend:getDefaultPieLegend,getDefaultPieConfig:getDefaultPieConfig,getDefaultSparklineArea:getDefaultSparklineArea,getDefaultSparklineSize:getDefaultSparklineSize,getDefaultSparklineAxis:getDefaultSparklineAxis,getDefaultSparklineLegend:getDefaultSparklineLegend,getDefaultSparklinePoint:getDefaultSparklinePoint,getDefaultSparklineTooltip:getDefaultSparklineTooltip,getDefaultSparklineConfig:getDefaultSparklineConfig,getDefaultLineAxis:getDefaultLineAxis,getDefaultLineGrid:getDefaultLineGrid,getDefaultLineLegend:getDefaultLineLegend,getDefaultLinePoint:getDefaultLinePoint,getDefaultLineConfig:getDefaultLineConfig,getDefaultSingleLineTooltip:getDefaultSingleLineTooltip,getDefaultSingleLineConfig:getDefaultSingleLineConfig,getDefaultAreaAxis:getDefaultAreaAxis,getDefaultAreaGrid:getDefaultAreaGrid,getDefaultAreaLegend:getDefaultAreaLegend,getDefaultAreaPoint:getDefaultAreaPoint,getDefaultAreaConfig:getDefaultAreaConfig,getDefaultSingleAreaTooltip:getDefaultSingleAreaTooltip,getDefaultSingleAreaConfig:function(){return{axis:getDefaultAreaAxis(),grid:getDefaultAreaGrid(),color:getDefaultColors(),legend:getDefaultSingleAreaLegend(),point:getDefaultAreaPoint(),tooltip:getDefaultSingleAreaTooltip()}}}}}("undefined"!=typeof window?window:global);
|
@@ -1,151 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @summary pfColVis for DataTables
|
3
|
-
* @description An extension providing columns visibility control functionality for DataTables. This ensures
|
4
|
-
* DataTables meets the Patternfly design pattern with a toolbar.
|
5
|
-
*
|
6
|
-
* To enable a colvis, the user just need to specify a region for placing colvis menu. By default, the colvis
|
7
|
-
* menu includes the items derived from all columns of Datatables. And of course user can also limit the
|
8
|
-
* generation of the column's visibility checkbox through picking out column index.
|
9
|
-
*
|
10
|
-
* The toolbar is expected to contain the classes as shown in the example below.
|
11
|
-
*
|
12
|
-
* Example:
|
13
|
-
*
|
14
|
-
* <!-- NOTE: Some configuration may be omitted for clarity -->
|
15
|
-
* <div class="row toolbar-pf table-view-pf-toolbar" id="toolbar1">
|
16
|
-
* <div class="col-sm-12">
|
17
|
-
* <form class="toolbar-pf-actions">
|
18
|
-
* <div class="form-group toolbar-pf-filter">
|
19
|
-
* </div>
|
20
|
-
* <div class="form-group toolbar-pf-sort">
|
21
|
-
* <div class="dropdown btn-group">
|
22
|
-
* </div>
|
23
|
-
* <button class="btn btn-link" type="button">
|
24
|
-
* <span class="fa fa-sort-alpha-asc"></span>
|
25
|
-
* </button>
|
26
|
-
* <div class="dropdown btn-group">
|
27
|
-
* <button class="btn btn-link dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
28
|
-
* <span class="fa fa-columns"></span>
|
29
|
-
* </button>
|
30
|
-
* <ul class="dropdown-menu table-view-pf-colvis-menu">
|
31
|
-
* <li><input type="checkbox" value="1" checked><label>Rendering Engine</label></li>
|
32
|
-
* <li><input type="checkbox" value="2" checked><label>Browser</label></li>
|
33
|
-
* <li><input type="checkbox" value="3" checked><label>Platform(s)</label></li>
|
34
|
-
* <li><input type="checkbox" value="4" checked><label>Engine Version</label></li>
|
35
|
-
* <li><input type="checkbox" value="5" checked><label>CSS Grade</label></li>
|
36
|
-
* </ul>
|
37
|
-
* </div>
|
38
|
-
* </div>
|
39
|
-
* ...
|
40
|
-
* </form>
|
41
|
-
* </div>
|
42
|
-
* </div>
|
43
|
-
* <table class="table table-striped table-bordered table-hover" id="table1">
|
44
|
-
* <thead>
|
45
|
-
* <tr>
|
46
|
-
* <th><input type="checkbox" name="selectAll"></th>
|
47
|
-
* <th>Rendering Engine</th>
|
48
|
-
* <th>Browser</th>
|
49
|
-
* </tr>
|
50
|
-
* </thead>
|
51
|
-
* </table>
|
52
|
-
* ...
|
53
|
-
* <script>
|
54
|
-
* // NOTE: Some properties may be omitted for clarity
|
55
|
-
* $(document).ready(function() {
|
56
|
-
* var dt = $("#table1").DataTable({
|
57
|
-
* columns: [
|
58
|
-
* { data: null, ... },
|
59
|
-
* { data: "engine" },
|
60
|
-
* { data: "browser" }
|
61
|
-
* ],
|
62
|
-
* data: [
|
63
|
-
* { engine: "Gecko", browser: "Firefox" }
|
64
|
-
* { engine: "Trident", browser: "Mozilla" }
|
65
|
-
* ],
|
66
|
-
* dom: "t",
|
67
|
-
* pfConfig: {
|
68
|
-
* ...
|
69
|
-
* colvisMenuSelector: '.table-view-pf-colvis-menu'
|
70
|
-
* }
|
71
|
-
* });
|
72
|
-
*
|
73
|
-
* });
|
74
|
-
* </script>
|
75
|
-
*/
|
76
|
-
(function (factory) {
|
77
|
-
"use strict";
|
78
|
-
if (typeof define === "function" && define.amd ) {
|
79
|
-
// AMD
|
80
|
-
define (["jquery", "datatables.net"], function ($) {
|
81
|
-
return factory ($, window, document);
|
82
|
-
});
|
83
|
-
} else if (typeof exports === "object") {
|
84
|
-
// CommonJS
|
85
|
-
module.exports = function (root, $) {
|
86
|
-
if (!root) {
|
87
|
-
root = window;
|
88
|
-
}
|
89
|
-
if (!$ || !$.fn.dataTable) {
|
90
|
-
$ = require("datatables.net")(root, $).$;
|
91
|
-
}
|
92
|
-
return factory($, root, root.document);
|
93
|
-
};
|
94
|
-
} else {
|
95
|
-
// Browser
|
96
|
-
factory(jQuery, window, document);
|
97
|
-
}
|
98
|
-
}(function ($, window, document, undefined) {
|
99
|
-
"use strict";
|
100
|
-
var DataTable = $.fn.dataTable;
|
101
|
-
|
102
|
-
DataTable.pfColVis = {};
|
103
|
-
|
104
|
-
/**
|
105
|
-
* Initialize
|
106
|
-
*
|
107
|
-
* @param {DataTable.Api} dt DataTable
|
108
|
-
* @private
|
109
|
-
*/
|
110
|
-
DataTable.pfColVis.init = function (dt) {
|
111
|
-
var i;
|
112
|
-
var ctx = dt.settings()[0];
|
113
|
-
var opts = (ctx.oInit.pfConfig) ? ctx.oInit.pfConfig : {};
|
114
|
-
|
115
|
-
if (opts.colvisMenuSelector === undefined) {
|
116
|
-
return;
|
117
|
-
}
|
118
|
-
|
119
|
-
ctx._pfColVis = {};
|
120
|
-
ctx._pfColVis.colvisMenu = $(opts.colvisMenuSelector, opts.toolbarSelector);
|
121
|
-
|
122
|
-
// Attach event handler for checkbox of ColVis menu
|
123
|
-
ctx._pfColVis.colvisMenu.on('click', 'li', { 'dt': dt }, colvisMenuHandler);
|
124
|
-
};
|
125
|
-
|
126
|
-
// Local functions
|
127
|
-
|
128
|
-
/**
|
129
|
-
* Handle actions when ColVis menu items are toggled
|
130
|
-
*
|
131
|
-
* @param {object} jquery eventObject - click event of ColVis menu items
|
132
|
-
* @private
|
133
|
-
*/
|
134
|
-
function colvisMenuHandler (event) {
|
135
|
-
var $check = $(this).children(':checkbox');
|
136
|
-
if (event.target.nodeName !== 'INPUT') {
|
137
|
-
event.stopPropagation();
|
138
|
-
$check.prop('checked', !$check.prop('checked'));
|
139
|
-
}
|
140
|
-
event.data.dt.column($check.val()).visible($check.prop('checked'));
|
141
|
-
}
|
142
|
-
|
143
|
-
// DataTables creation
|
144
|
-
$(document).on("init.dt", function (e, ctx, json) {
|
145
|
-
if (e.namespace !== "dt") {
|
146
|
-
return;
|
147
|
-
}
|
148
|
-
DataTable.pfColVis.init(new DataTable.Api(ctx));
|
149
|
-
});
|
150
|
-
return DataTable.pfColVis;
|
151
|
-
}));
|
@@ -1,253 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @summary pfEmpty for DataTables
|
3
|
-
* @description A collection of API methods providing functionality to hide and show elements when DataTables is empty.
|
4
|
-
* This ensures DataTables meets the Patternfly design pattern with a toolbar and empty state.
|
5
|
-
*
|
6
|
-
* When DataTable is redrawn and data length is zero, controls under the toolbar-pf-actions and toolbar-pf-results
|
7
|
-
* classes are disabled; including the filter drop down, filter input, action buttons, kebab, find, etc. (You may
|
8
|
-
* re-enable specific controls via the DataTables "draw.dt" event.) In addition, the DataTables empty table header and
|
9
|
-
* row are hidden while the empty state (i.e., blank slate) layout is shown.
|
10
|
-
*
|
11
|
-
* The toolbar and empty state layouts are expected to contain the classes as shown in the example below.
|
12
|
-
*
|
13
|
-
* Example:
|
14
|
-
*
|
15
|
-
* <!-- NOTE: Some configuration may be omitted for clarity -->
|
16
|
-
* <div class="row toolbar-pf table-view-pf-toolbar" id="toolbar1">
|
17
|
-
* <div class="col-sm-12">
|
18
|
-
* <form class="toolbar-pf-actions">
|
19
|
-
* ...
|
20
|
-
* </form>
|
21
|
-
* <div class="row toolbar-pf-results">
|
22
|
-
* ...
|
23
|
-
* </div>
|
24
|
-
* </div>
|
25
|
-
* </div>
|
26
|
-
* <table class="table table-striped table-bordered table-hover" id="table1">
|
27
|
-
* <thead>
|
28
|
-
* <tr>
|
29
|
-
* <th><input type="checkbox" name="selectAll"></th>
|
30
|
-
* <th>Rendering Engine</th>
|
31
|
-
* <th>Browser</th>
|
32
|
-
* </tr>
|
33
|
-
* </thead>
|
34
|
-
* </table>
|
35
|
-
* <div class="blank-slate-pf table-view-pf-empty hidden" id="emptyState1">
|
36
|
-
* <div class="blank-slate-pf-icon">
|
37
|
-
* <span class="pficon pficon pficon-add-circle-o"></span>
|
38
|
-
* </div>
|
39
|
-
* <h1>Empty State Title</h1>
|
40
|
-
* ...
|
41
|
-
* </div>
|
42
|
-
* <script>
|
43
|
-
* // NOTE: Some properties may be omitted for clarity
|
44
|
-
* $(document).ready(function() {
|
45
|
-
* var dt = $("#table1").DataTable({
|
46
|
-
* columns: [
|
47
|
-
* { data: null, ... },
|
48
|
-
* { data: "engine" },
|
49
|
-
* { data: "browser" }
|
50
|
-
* ],
|
51
|
-
* data: null,
|
52
|
-
* dom: "t",
|
53
|
-
* pfConfig: {
|
54
|
-
* emptyStateSelector: "#emptyState1",
|
55
|
-
* ...
|
56
|
-
* toolbarSelector: "#toolbar1"
|
57
|
-
* }
|
58
|
-
* });
|
59
|
-
* dt.table().pfEmpty.updateState(); // Optional API to force update
|
60
|
-
* });
|
61
|
-
* </script>
|
62
|
-
*
|
63
|
-
* Note: This functionality requires the following Javascript library files to be loaded:
|
64
|
-
*
|
65
|
-
* https://cdn.datatables.net/select/1.2.0/js/dataTables.select.min.js
|
66
|
-
*/
|
67
|
-
(function (factory) {
|
68
|
-
"use strict";
|
69
|
-
if (typeof define === "function" && define.amd ) {
|
70
|
-
// AMD
|
71
|
-
define (["jquery", "datatables.net"], function ($) {
|
72
|
-
return factory ($, window, document);
|
73
|
-
});
|
74
|
-
} else if (typeof exports === "object") {
|
75
|
-
// CommonJS
|
76
|
-
module.exports = function (root, $) {
|
77
|
-
if (!root) {
|
78
|
-
root = window;
|
79
|
-
}
|
80
|
-
if (!$ || !$.fn.dataTable) {
|
81
|
-
$ = require("datatables.net")(root, $).$;
|
82
|
-
}
|
83
|
-
return factory($, root, root.document);
|
84
|
-
};
|
85
|
-
} else {
|
86
|
-
// Browser
|
87
|
-
factory(jQuery, window, document);
|
88
|
-
}
|
89
|
-
}(function ($, window, document, undefined) {
|
90
|
-
"use strict";
|
91
|
-
var DataTable = $.fn.dataTable;
|
92
|
-
var ACTIONS_SELECTOR = ".toolbar-pf-actions"; // Toolbar actions
|
93
|
-
var RESULTS_SELECTOR = ".toolbar-pf-results"; // Toolbar results row
|
94
|
-
|
95
|
-
DataTable.pfEmpty = {};
|
96
|
-
|
97
|
-
/**
|
98
|
-
* Initialize
|
99
|
-
*
|
100
|
-
* @param {DataTable.Api} dt DataTable
|
101
|
-
* @private
|
102
|
-
*/
|
103
|
-
DataTable.pfEmpty.init = function (dt) {
|
104
|
-
var ctx = dt.settings()[0];
|
105
|
-
var opts = (ctx.oInit.pfConfig) ? ctx.oInit.pfConfig : {};
|
106
|
-
|
107
|
-
ctx._pfEmpty = {};
|
108
|
-
ctx._pfEmpty.emptyState = $(opts.emptyStateSelector); // Empty state (Blank slate)
|
109
|
-
ctx._pfEmpty.isEmptyState = false; // Flag indicating DatTable entered an empty state
|
110
|
-
ctx._pfEmpty.pagination = $(opts.paginationSelector); // Pagination
|
111
|
-
ctx._pfEmpty.tbody = $("tbody", dt.table().container()); // Table body
|
112
|
-
ctx._pfEmpty.thead = $("thead", dt.table().container()); // Table head
|
113
|
-
ctx._pfEmpty.toolbarActions = $(ACTIONS_SELECTOR, opts.toolbarSelector); // Toolbar actions
|
114
|
-
ctx._pfEmpty.toolbarResults = $(RESULTS_SELECTOR, opts.toolbarSelector); // Toolbar results row
|
115
|
-
|
116
|
-
// Update table on DataTables draw event
|
117
|
-
dt.on("draw.dt", function () {
|
118
|
-
updateState(dt);
|
119
|
-
});
|
120
|
-
|
121
|
-
// Initialize
|
122
|
-
updateState(dt);
|
123
|
-
};
|
124
|
-
|
125
|
-
// Local functions
|
126
|
-
|
127
|
-
/**
|
128
|
-
* Disable and hide elements when DataTables has no data
|
129
|
-
*
|
130
|
-
* @param {DataTable.Api} dt DataTable
|
131
|
-
* @private
|
132
|
-
*/
|
133
|
-
function updateEmptyState (dt) {
|
134
|
-
var ctx = dt.settings()[0];
|
135
|
-
|
136
|
-
// Show blank slate
|
137
|
-
if (ctx._pfEmpty.emptyState !== undefined && ctx._pfEmpty.emptyState.length !== 0) {
|
138
|
-
ctx._pfEmpty.emptyState.removeClass("hidden");
|
139
|
-
}
|
140
|
-
// Hide zero records message
|
141
|
-
if (ctx._pfEmpty.tbody !== undefined && ctx._pfEmpty.tbody.length !== 0) {
|
142
|
-
ctx._pfEmpty.tbody.addClass("hidden");
|
143
|
-
}
|
144
|
-
// Hide column headers
|
145
|
-
if (ctx._pfEmpty.thead !== undefined && ctx._pfEmpty.thead.length !== 0) {
|
146
|
-
ctx._pfEmpty.thead.addClass("hidden");
|
147
|
-
}
|
148
|
-
// Disable all buttons
|
149
|
-
if (ctx._pfEmpty.toolbarActions !== undefined && ctx._pfEmpty.toolbarActions.length !== 0) {
|
150
|
-
$("button", ctx._pfEmpty.toolbarActions).prop("disabled", true);
|
151
|
-
}
|
152
|
-
// Disable all inputs
|
153
|
-
if (ctx._pfEmpty.toolbarActions !== undefined && ctx._pfEmpty.toolbarActions.length !== 0) {
|
154
|
-
$("input", ctx._pfEmpty.toolbarActions).prop("disabled", true);
|
155
|
-
}
|
156
|
-
// Hide results container
|
157
|
-
if (ctx._pfEmpty.toolbarResults !== undefined && ctx._pfEmpty.toolbarResults.length !== 0) {
|
158
|
-
ctx._pfEmpty.toolbarResults.children().addClass("hidden");
|
159
|
-
}
|
160
|
-
// Hide pagination
|
161
|
-
if (ctx._pfEmpty.pagination !== undefined && ctx._pfEmpty.pagination.length !== 0) {
|
162
|
-
ctx._pfEmpty.pagination.addClass("hidden");
|
163
|
-
}
|
164
|
-
// Enable on empty
|
165
|
-
if (ctx._pfEmpty.enableOnEmpty !== undefined) {
|
166
|
-
$(ctx._pfEmpty.enableOnEmpty).prop("disabled", false);
|
167
|
-
}
|
168
|
-
// Enable on empty
|
169
|
-
if (ctx._pfEmpty.enableOnEmpty !== undefined) {
|
170
|
-
$(ctx._pfEmpty.enableOnEmpty).prop("disabled", false);
|
171
|
-
}
|
172
|
-
}
|
173
|
-
|
174
|
-
/**
|
175
|
-
* Enable and show elements when DataTables has data
|
176
|
-
*
|
177
|
-
* @param {DataTable.Api} dt DataTable
|
178
|
-
* @private
|
179
|
-
*/
|
180
|
-
function updateNonEmptyState (dt) {
|
181
|
-
var ctx = dt.settings()[0];
|
182
|
-
|
183
|
-
// Hide blank slate
|
184
|
-
if (ctx._pfEmpty.emptyState !== undefined && ctx._pfEmpty.emptyState.length !== 0) {
|
185
|
-
ctx._pfEmpty.emptyState.addClass("hidden");
|
186
|
-
}
|
187
|
-
// Show table body
|
188
|
-
if (ctx._pfEmpty.tbody !== undefined && ctx._pfEmpty.tbody.length !== 0) {
|
189
|
-
ctx._pfEmpty.tbody.removeClass("hidden");
|
190
|
-
}
|
191
|
-
// Show column headers
|
192
|
-
if (ctx._pfEmpty.thead !== undefined && ctx._pfEmpty.thead.length !== 0) {
|
193
|
-
ctx._pfEmpty.thead.removeClass("hidden");
|
194
|
-
}
|
195
|
-
// Enable all buttons
|
196
|
-
if (ctx._pfEmpty.toolbarActions !== undefined && ctx._pfEmpty.toolbarActions.length !== 0) {
|
197
|
-
$("button", ctx._pfEmpty.toolbarActions).prop("disabled", false);
|
198
|
-
}
|
199
|
-
// Enable all inputs
|
200
|
-
if (ctx._pfEmpty.toolbarActions !== undefined && ctx._pfEmpty.toolbarActions.length !== 0) {
|
201
|
-
$("input", ctx._pfEmpty.toolbarActions).prop("disabled", false);
|
202
|
-
}
|
203
|
-
// Show results container
|
204
|
-
if (ctx._pfEmpty.toolbarResults !== undefined && ctx._pfEmpty.toolbarResults.length !== 0) {
|
205
|
-
ctx._pfEmpty.toolbarResults.children().removeClass("hidden");
|
206
|
-
}
|
207
|
-
// Show pagination
|
208
|
-
if (ctx._pfEmpty.pagination !== undefined && ctx._pfEmpty.pagination.length !== 0) {
|
209
|
-
ctx._pfEmpty.pagination.removeClass("hidden");
|
210
|
-
}
|
211
|
-
}
|
212
|
-
|
213
|
-
/**
|
214
|
-
* Update elements upon empty DataTable state
|
215
|
-
*
|
216
|
-
* @param {DataTable.Api} dt DataTable
|
217
|
-
* @private
|
218
|
-
*/
|
219
|
-
function updateState (dt) {
|
220
|
-
var ctx = dt.settings()[0];
|
221
|
-
|
222
|
-
// Don't enable or show elements unless DataTable was empty
|
223
|
-
if (dt.data().length === 0) {
|
224
|
-
ctx._pfEmpty.isEmptyState = true;
|
225
|
-
updateEmptyState(dt);
|
226
|
-
} else if (ctx._pfEmpty.isEmptyState === true) {
|
227
|
-
ctx._pfEmpty.isEmptyState = false;
|
228
|
-
updateNonEmptyState(dt);
|
229
|
-
}
|
230
|
-
}
|
231
|
-
|
232
|
-
// DataTables API
|
233
|
-
|
234
|
-
/**
|
235
|
-
* Update state upon empty or non-empty DataTable
|
236
|
-
*
|
237
|
-
* Example: dt.table().pfEmpty.updateState();
|
238
|
-
*/
|
239
|
-
DataTable.Api.register("pfEmpty.updateState()", function () {
|
240
|
-
return this.iterator("table", function (ctx) {
|
241
|
-
updateState(new DataTable.Api(ctx));
|
242
|
-
});
|
243
|
-
});
|
244
|
-
|
245
|
-
// DataTables creation
|
246
|
-
$(document).on("init.dt", function (e, ctx, json) {
|
247
|
-
if (e.namespace !== "dt") {
|
248
|
-
return;
|
249
|
-
}
|
250
|
-
DataTable.pfEmpty.init(new DataTable.Api(ctx));
|
251
|
-
});
|
252
|
-
return DataTable.pfEmpty;
|
253
|
-
}));
|
@@ -1 +0,0 @@
|
|
1
|
-
!function(factory){"use strict";"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function($){return factory($,window,document)}):"object"==typeof exports?module.exports=function(root,$){return root||(root=window),$&&$.fn.dataTable||($=require("datatables.net")(root,$).$),factory($,root,root.document)}:factory(jQuery,window,document)}(function($,window,document,undefined){"use strict";function updateEmptyState(dt){var ctx=dt.settings()[0];ctx._pfEmpty.emptyState!==undefined&&0!==ctx._pfEmpty.emptyState.length&&ctx._pfEmpty.emptyState.removeClass("hidden"),ctx._pfEmpty.tbody!==undefined&&0!==ctx._pfEmpty.tbody.length&&ctx._pfEmpty.tbody.addClass("hidden"),ctx._pfEmpty.thead!==undefined&&0!==ctx._pfEmpty.thead.length&&ctx._pfEmpty.thead.addClass("hidden"),ctx._pfEmpty.toolbarActions!==undefined&&0!==ctx._pfEmpty.toolbarActions.length&&$("button",ctx._pfEmpty.toolbarActions).prop("disabled",!0),ctx._pfEmpty.toolbarActions!==undefined&&0!==ctx._pfEmpty.toolbarActions.length&&$("input",ctx._pfEmpty.toolbarActions).prop("disabled",!0),ctx._pfEmpty.toolbarResults!==undefined&&0!==ctx._pfEmpty.toolbarResults.length&&ctx._pfEmpty.toolbarResults.children().addClass("hidden"),ctx._pfEmpty.pagination!==undefined&&0!==ctx._pfEmpty.pagination.length&&ctx._pfEmpty.pagination.addClass("hidden"),ctx._pfEmpty.enableOnEmpty!==undefined&&$(ctx._pfEmpty.enableOnEmpty).prop("disabled",!1),ctx._pfEmpty.enableOnEmpty!==undefined&&$(ctx._pfEmpty.enableOnEmpty).prop("disabled",!1)}function updateNonEmptyState(dt){var ctx=dt.settings()[0];ctx._pfEmpty.emptyState!==undefined&&0!==ctx._pfEmpty.emptyState.length&&ctx._pfEmpty.emptyState.addClass("hidden"),ctx._pfEmpty.tbody!==undefined&&0!==ctx._pfEmpty.tbody.length&&ctx._pfEmpty.tbody.removeClass("hidden"),ctx._pfEmpty.thead!==undefined&&0!==ctx._pfEmpty.thead.length&&ctx._pfEmpty.thead.removeClass("hidden"),ctx._pfEmpty.toolbarActions!==undefined&&0!==ctx._pfEmpty.toolbarActions.length&&$("button",ctx._pfEmpty.toolbarActions).prop("disabled",!1),ctx._pfEmpty.toolbarActions!==undefined&&0!==ctx._pfEmpty.toolbarActions.length&&$("input",ctx._pfEmpty.toolbarActions).prop("disabled",!1),ctx._pfEmpty.toolbarResults!==undefined&&0!==ctx._pfEmpty.toolbarResults.length&&ctx._pfEmpty.toolbarResults.children().removeClass("hidden"),ctx._pfEmpty.pagination!==undefined&&0!==ctx._pfEmpty.pagination.length&&ctx._pfEmpty.pagination.removeClass("hidden")}function updateState(dt){var ctx=dt.settings()[0];0===dt.data().length?(ctx._pfEmpty.isEmptyState=!0,updateEmptyState(dt)):!0===ctx._pfEmpty.isEmptyState&&(ctx._pfEmpty.isEmptyState=!1,updateNonEmptyState(dt))}var DataTable=$.fn.dataTable;return DataTable.pfEmpty={},DataTable.pfEmpty.init=function(dt){var ctx=dt.settings()[0],opts=ctx.oInit.pfConfig?ctx.oInit.pfConfig:{};ctx._pfEmpty={},ctx._pfEmpty.emptyState=$(opts.emptyStateSelector),ctx._pfEmpty.isEmptyState=!1,ctx._pfEmpty.pagination=$(opts.paginationSelector),ctx._pfEmpty.tbody=$("tbody",dt.table().container()),ctx._pfEmpty.thead=$("thead",dt.table().container()),ctx._pfEmpty.toolbarActions=$(".toolbar-pf-actions",opts.toolbarSelector),ctx._pfEmpty.toolbarResults=$(".toolbar-pf-results",opts.toolbarSelector),dt.on("draw.dt",function(){updateState(dt)}),updateState(dt)},DataTable.Api.register("pfEmpty.updateState()",function(){return this.iterator("table",function(ctx){updateState(new DataTable.Api(ctx))})}),$(document).on("init.dt",function(e,ctx,json){"dt"===e.namespace&&DataTable.pfEmpty.init(new DataTable.Api(ctx))}),DataTable.pfEmpty});
|
@@ -1,429 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @summary pfFilter for DataTables
|
3
|
-
* @description A collection of API methods providing simple filter functionality for DataTables. This ensures
|
4
|
-
* DataTables meets the Patternfly design pattern with a toolbar.
|
5
|
-
*
|
6
|
-
* To apply a filter, the user must press enter in the given filter input. The user may apply a filter to a different
|
7
|
-
* column via the given filter drop down. After a filter has been applied, the filter results text, active filter
|
8
|
-
* controls, and a clear all control are shown.
|
9
|
-
*
|
10
|
-
* The toolbar and empty state layouts are expected to contain the classes as shown in the example below.
|
11
|
-
*
|
12
|
-
* Example:
|
13
|
-
*
|
14
|
-
* <!-- NOTE: Some configuration may be omitted for clarity -->
|
15
|
-
* <div class="row toolbar-pf table-view-pf-toolbar" id="toolbar1">
|
16
|
-
* <div class="col-sm-12">
|
17
|
-
* <form class="toolbar-pf-actions">
|
18
|
-
* <div class="form-group toolbar-pf-filter">
|
19
|
-
* <label class="sr-only" for="filter">Rendering Engine</label>
|
20
|
-
* <div class="input-group">
|
21
|
-
* <div class="input-group-btn">
|
22
|
-
* <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>
|
23
|
-
* <ul class="dropdown-menu">
|
24
|
-
* <li><a href="#" id="filter1">Rendering Engine</a></li>
|
25
|
-
* <li><a href="#" id="filter2">Browser</a></li>
|
26
|
-
* </ul>
|
27
|
-
* </div>
|
28
|
-
* <input type="text" class="form-control" placeholder="Filter By Rendering Engine..." autocomplete="off" id="filterInput">
|
29
|
-
* </div>
|
30
|
-
* </div>
|
31
|
-
* ...
|
32
|
-
* </form>
|
33
|
-
* <div class="row toolbar-pf-results">
|
34
|
-
* <div class="col-sm-9">
|
35
|
-
* <div class="hidden">
|
36
|
-
* <h5>0 Results</h5>
|
37
|
-
* <p>Active filters:</p>
|
38
|
-
* <ul class="list-inline"></ul>
|
39
|
-
* <p><a href="#">Clear All Filters</a></p>
|
40
|
-
* </div>
|
41
|
-
* </div>
|
42
|
-
* <div class="col-sm-3 table-view-pf-select-results">
|
43
|
-
* <strong>0</strong> of <strong>0</strong> selected
|
44
|
-
* </div>
|
45
|
-
* </div>
|
46
|
-
* </div>
|
47
|
-
* </div>
|
48
|
-
* <table class="table table-striped table-bordered table-hover" id="table1">
|
49
|
-
* <thead>
|
50
|
-
* <tr>
|
51
|
-
* <th><input type="checkbox" name="selectAll"></th>
|
52
|
-
* <th>Rendering Engine</th>
|
53
|
-
* <th>Browser</th>
|
54
|
-
* </tr>
|
55
|
-
* </thead>
|
56
|
-
* </table>
|
57
|
-
* ...
|
58
|
-
* <script>
|
59
|
-
* // NOTE: Some properties may be omitted for clarity
|
60
|
-
* $(document).ready(function() {
|
61
|
-
* var dt = $("#table1").DataTable({
|
62
|
-
* columns: [
|
63
|
-
* { data: null, ... },
|
64
|
-
* { data: "engine" },
|
65
|
-
* { data: "browser" }
|
66
|
-
* ],
|
67
|
-
* data: [
|
68
|
-
* { engine: "Gecko", browser: "Firefox" }
|
69
|
-
* { engine: "Trident", browser: "Mozilla" }
|
70
|
-
* ],
|
71
|
-
* dom: "t",
|
72
|
-
* pfConfig: {
|
73
|
-
* ...
|
74
|
-
* filterCaseInsensitive: true,
|
75
|
-
* filterCols: [
|
76
|
-
* null,
|
77
|
-
* {
|
78
|
-
* default: true,
|
79
|
-
* optionSelector: "#filter1",
|
80
|
-
* placeholder: "Filter By Rendering Engine..."
|
81
|
-
* }, {
|
82
|
-
* optionSelector: "#filter2",
|
83
|
-
* placeholder: "Filter By Browser..."
|
84
|
-
* }
|
85
|
-
* ],
|
86
|
-
* toolbarSelector: "#toolbar1"
|
87
|
-
* }
|
88
|
-
* });
|
89
|
-
* // Optional API to clear filters
|
90
|
-
* dt.table().pfFilter.clearFilters();
|
91
|
-
*
|
92
|
-
* // Optional API to add filter
|
93
|
-
* dt.table().pfFilter.addFilter({
|
94
|
-
* column: 2,
|
95
|
-
* name: "Browser",
|
96
|
-
* value: "Firefox"
|
97
|
-
* });
|
98
|
-
* });
|
99
|
-
* </script>
|
100
|
-
*
|
101
|
-
* Note: This functionality requires the following Javascript library files to be loaded:
|
102
|
-
*
|
103
|
-
* https://cdn.datatables.net/select/1.2.0/js/dataTables.select.min.js
|
104
|
-
*/
|
105
|
-
(function (factory) {
|
106
|
-
"use strict";
|
107
|
-
if (typeof define === "function" && define.amd ) {
|
108
|
-
// AMD
|
109
|
-
define (["jquery", "datatables.net"], function ($) {
|
110
|
-
return factory ($, window, document);
|
111
|
-
});
|
112
|
-
} else if (typeof exports === "object") {
|
113
|
-
// CommonJS
|
114
|
-
module.exports = function (root, $) {
|
115
|
-
if (!root) {
|
116
|
-
root = window;
|
117
|
-
}
|
118
|
-
if (!$ || !$.fn.dataTable) {
|
119
|
-
$ = require("datatables.net")(root, $).$;
|
120
|
-
}
|
121
|
-
return factory($, root, root.document);
|
122
|
-
};
|
123
|
-
} else {
|
124
|
-
// Browser
|
125
|
-
factory(jQuery, window, document);
|
126
|
-
}
|
127
|
-
}(function ($, window, document, undefined) {
|
128
|
-
"use strict";
|
129
|
-
var DataTable = $.fn.dataTable;
|
130
|
-
var ACTIVE_FILTER_CONTROLS_SELECTOR = ".list-inline"; // Active filter controls
|
131
|
-
var CLEAR_FILTERS_SELECTOR = ".toolbar-pf-results a"; // Clear filters control
|
132
|
-
var FILTER_SELECTOR = ".toolbar-pf-filter"; // Filter input
|
133
|
-
var FILTER_BUTTON_SELECTOR = FILTER_SELECTOR + " button"; // Filter button
|
134
|
-
var FILTER_INPUT_SELECTOR = FILTER_SELECTOR + " input"; // Filter input
|
135
|
-
var FILTER_LABEL_SELECTOR = FILTER_SELECTOR + " label"; // Filter label
|
136
|
-
var RESULTS_SELECTOR = ".toolbar-pf-results"; // Toolbar results row
|
137
|
-
var FILTER_RESULTS_SELECTOR = RESULTS_SELECTOR + " h5"; // Toolbar filter results
|
138
|
-
|
139
|
-
DataTable.pfFilter = {};
|
140
|
-
|
141
|
-
/**
|
142
|
-
* Initialize
|
143
|
-
*
|
144
|
-
* @param {DataTable.Api} dt DataTable
|
145
|
-
* @private
|
146
|
-
*/
|
147
|
-
DataTable.pfFilter.init = function (dt) {
|
148
|
-
var i;
|
149
|
-
var ctx = dt.settings()[0];
|
150
|
-
var opts = (ctx.oInit.pfConfig) ? ctx.oInit.pfConfig : {};
|
151
|
-
|
152
|
-
ctx._pfFilter = {};
|
153
|
-
ctx._pfFilter.filterButton = $(FILTER_BUTTON_SELECTOR, opts.toolbarSelector); // Filter button
|
154
|
-
ctx._pfFilter.filterCols = opts.filterCols; // Filter colums config
|
155
|
-
ctx._pfFilter.filterLabel = $(FILTER_LABEL_SELECTOR, opts.toolbarSelector); // Filter label
|
156
|
-
ctx._pfFilter.filterInput = $(FILTER_INPUT_SELECTOR, opts.toolbarSelector); // Filter input
|
157
|
-
ctx._pfFilter.filters = []; // Applied filters array
|
158
|
-
ctx._pfFilter.activeFilterControls = $(ACTIVE_FILTER_CONTROLS_SELECTOR, opts.toolbarSelector); // Active filter controls
|
159
|
-
ctx._pfFilter.activeFilters = ctx._pfFilter.activeFilterControls.closest("div"); // Active filters container
|
160
|
-
ctx._pfFilter.clearFilters = $(CLEAR_FILTERS_SELECTOR, opts.toolbarSelector); // Clear filters control
|
161
|
-
ctx._pfFilter.results = $(RESULTS_SELECTOR, opts.toolbarSelector); // Toolbar results row
|
162
|
-
ctx._pfFilter.filterCaseInsensitive = opts.filterCaseInsensitive; // Filter filter case insensitive
|
163
|
-
ctx._pfFilter.filterResults = $(FILTER_RESULTS_SELECTOR, opts.toolbarSelector); // Toolbar filter results
|
164
|
-
|
165
|
-
if (ctx._pfFilter.filterCols === undefined) {
|
166
|
-
return;
|
167
|
-
}
|
168
|
-
|
169
|
-
// Set default filter properties
|
170
|
-
for (i = 0; i < ctx._pfFilter.filterCols.length; i++) {
|
171
|
-
if (ctx._pfFilter.filterCols[i] === null) {
|
172
|
-
continue;
|
173
|
-
}
|
174
|
-
ctx._pfFilter.filterColumn = i; // Current filter column
|
175
|
-
ctx._pfFilter.filterName = $(ctx._pfFilter.filterCols[i].optionSelector).text(); // Name of current filter
|
176
|
-
if (ctx._pfFilter.filterCols[i].default === true) {
|
177
|
-
break;
|
178
|
-
}
|
179
|
-
}
|
180
|
-
|
181
|
-
// Handle click on filter menu to set current filter column and name
|
182
|
-
for (i = 0; i < ctx._pfFilter.filterCols.length; i++) {
|
183
|
-
handleFilterOption(dt, i); // Need to pass value of i as a function
|
184
|
-
}
|
185
|
-
|
186
|
-
// Handle actions when enter is pressed within filter input
|
187
|
-
handleFilterInput(dt);
|
188
|
-
|
189
|
-
// Handle actions when clear filters control is selected
|
190
|
-
handleClearFilters(dt);
|
191
|
-
|
192
|
-
// Simple filter
|
193
|
-
$.fn.dataTable.ext.search.push(function (ctx, data, dataIndex) {
|
194
|
-
var showThisRow = true;
|
195
|
-
// Must match all filters
|
196
|
-
if (ctx._pfFilter) {
|
197
|
-
$.each(ctx._pfFilter.filters, function (index, filter) {
|
198
|
-
if (ctx._pfFilter.filterCaseInsensitive !== undefined && ctx._pfFilter.filterCaseInsensitive === true) {
|
199
|
-
if (data[filter.column].toLowerCase().indexOf(filter.value.toLowerCase()) === -1) {
|
200
|
-
showThisRow = false;
|
201
|
-
}
|
202
|
-
} else {
|
203
|
-
if (data[filter.column].indexOf(filter.value) === -1) {
|
204
|
-
showThisRow = false;
|
205
|
-
}
|
206
|
-
}
|
207
|
-
});
|
208
|
-
}
|
209
|
-
return showThisRow;
|
210
|
-
});
|
211
|
-
};
|
212
|
-
|
213
|
-
// Local functions
|
214
|
-
|
215
|
-
/**
|
216
|
-
* Add active filter control
|
217
|
-
*
|
218
|
-
* @param {DataTable.Api} dt DataTable
|
219
|
-
* @param {object} filter Properties associated with a new filter
|
220
|
-
* @param {string} filter.column - Column associated with DataTable
|
221
|
-
* @param {string} filter.name - Name of the filter
|
222
|
-
* @param {string} filter.value - Value of the filter
|
223
|
-
* @private
|
224
|
-
*/
|
225
|
-
function addActiveFilterControl (dt, filter) {
|
226
|
-
var ctx = dt.settings()[0];
|
227
|
-
var i;
|
228
|
-
|
229
|
-
// Append active filter control
|
230
|
-
ctx._pfFilter.activeFilterControls.append('<li><span class="label label-info">' + filter.name + ': ' +
|
231
|
-
filter.value + '<a href="#"><span class="pficon pficon-close"/></a></span></li>');
|
232
|
-
|
233
|
-
// Handle click to clear active filter
|
234
|
-
$("a", ctx._pfFilter.activeFilterControls).last().on("click", function (e) {
|
235
|
-
// Find existing filter and remove
|
236
|
-
for (i = 0; i < ctx._pfFilter.filters.length; i++) {
|
237
|
-
if (ctx._pfFilter.filters[i].column === filter.column && ctx._pfFilter.filters[i].value === filter.value) {
|
238
|
-
ctx._pfFilter.filters.splice(i, 1);
|
239
|
-
$(this).parents("li").remove();
|
240
|
-
break;
|
241
|
-
}
|
242
|
-
}
|
243
|
-
if (ctx._pfFilter.filters.length === 0) {
|
244
|
-
ctx._pfFilter.activeFilters.addClass("hidden"); // Hide
|
245
|
-
}
|
246
|
-
dt.draw();
|
247
|
-
updateFilterResults(dt);
|
248
|
-
});
|
249
|
-
// Show active filters
|
250
|
-
ctx._pfFilter.activeFilters.removeClass("hidden");
|
251
|
-
}
|
252
|
-
|
253
|
-
/**
|
254
|
-
* Add filter
|
255
|
-
*
|
256
|
-
* @param {DataTable.Api} dt DataTable
|
257
|
-
* @param {object} filter Properties associated with a new filter
|
258
|
-
* @param {string} filter.column - Column associated with DataTable
|
259
|
-
* @param {string} filter.name - Name of the filter
|
260
|
-
* @param {string} filter.value - Value of the filter
|
261
|
-
* @private
|
262
|
-
*/
|
263
|
-
function addFilter (dt, filter) {
|
264
|
-
var ctx = dt.settings()[0];
|
265
|
-
var found = false;
|
266
|
-
|
267
|
-
// Find existing entry
|
268
|
-
$.grep(ctx._pfFilter.filters, function (f) {
|
269
|
-
if (f.column === filter.column && f.value === filter.value) {
|
270
|
-
found = true;
|
271
|
-
}
|
272
|
-
});
|
273
|
-
|
274
|
-
// Add new filter
|
275
|
-
if (!found) {
|
276
|
-
ctx._pfFilter.filters.push(filter);
|
277
|
-
dt.draw();
|
278
|
-
addActiveFilterControl(dt, filter);
|
279
|
-
updateFilterResults(dt);
|
280
|
-
}
|
281
|
-
ctx._pfFilter.filterInput.val(""); // Clear input
|
282
|
-
}
|
283
|
-
|
284
|
-
/**
|
285
|
-
* Clear filters
|
286
|
-
*
|
287
|
-
* @param {DataTable.Api} dt DataTable
|
288
|
-
* @private
|
289
|
-
*/
|
290
|
-
function clearFilters (dt) {
|
291
|
-
var ctx = dt.settings()[0];
|
292
|
-
ctx._pfFilter.filters.length = 0; // Reset filters
|
293
|
-
ctx._pfFilter.activeFilterControls.html(""); // Remove active filter controls
|
294
|
-
ctx._pfFilter.activeFilters.addClass("hidden"); // Hide active filters area
|
295
|
-
dt.draw();
|
296
|
-
}
|
297
|
-
|
298
|
-
/**
|
299
|
-
* Handle actions when clear filters control is selected
|
300
|
-
*
|
301
|
-
* @param {DataTable.Api} dt DataTable
|
302
|
-
* @private
|
303
|
-
*/
|
304
|
-
function handleClearFilters (dt) {
|
305
|
-
var ctx = dt.settings()[0];
|
306
|
-
if (ctx._pfFilter.clearFilters === undefined || ctx._pfFilter.clearFilters.length === 0) {
|
307
|
-
return;
|
308
|
-
}
|
309
|
-
ctx._pfFilter.clearFilters.on("click", function (e) {
|
310
|
-
clearFilters(dt);
|
311
|
-
});
|
312
|
-
}
|
313
|
-
|
314
|
-
/**
|
315
|
-
* Handle actions when enter is pressed within filter input
|
316
|
-
*
|
317
|
-
* @param {DataTable.Api} dt DataTable
|
318
|
-
* @private
|
319
|
-
*/
|
320
|
-
function handleFilterInput (dt) {
|
321
|
-
var ctx = dt.settings()[0];
|
322
|
-
if (ctx._pfFilter.filterInput === undefined || ctx._pfFilter.filterInput.length === 0) {
|
323
|
-
return;
|
324
|
-
}
|
325
|
-
ctx._pfFilter.filterInput.on("keypress", function (e) {
|
326
|
-
var keycode = (e.keyCode ? e.keyCode : e.which);
|
327
|
-
if (keycode === 13) {
|
328
|
-
e.preventDefault();
|
329
|
-
if (this.value.trim().length > 0) {
|
330
|
-
addFilter(dt, {
|
331
|
-
column: ctx._pfFilter.filterColumn,
|
332
|
-
name: ctx._pfFilter.filterName,
|
333
|
-
value: this.value
|
334
|
-
});
|
335
|
-
}
|
336
|
-
return false;
|
337
|
-
}
|
338
|
-
return true;
|
339
|
-
});
|
340
|
-
}
|
341
|
-
|
342
|
-
/**
|
343
|
-
* Handle actions when filter options are selected
|
344
|
-
*
|
345
|
-
* @param {DataTable.Api} dt DataTable
|
346
|
-
* @param {number} i The column associated with this handler
|
347
|
-
* @private
|
348
|
-
*/
|
349
|
-
function handleFilterOption (dt, i) {
|
350
|
-
var ctx = dt.settings()[0];
|
351
|
-
if (ctx._pfFilter.filterCols[i] === null || ctx._pfFilter.filterCols[i].optionSelector === undefined) {
|
352
|
-
return;
|
353
|
-
}
|
354
|
-
$(ctx._pfFilter.filterCols[i].optionSelector).on("click", function (e) {
|
355
|
-
// Set input placeholder
|
356
|
-
if (ctx._pfFilter.filterInput !== undefined && ctx._pfFilter.filterInput.length !== 0) {
|
357
|
-
ctx._pfFilter.filterInput.get(0).placeholder = ctx._pfFilter.filterCols[i].placeholder;
|
358
|
-
}
|
359
|
-
// Set filter label
|
360
|
-
if (ctx._pfFilter.filterLabel !== undefined && ctx._pfFilter.filterLabel.length !== 0) {
|
361
|
-
ctx._pfFilter.filterLabel.html($(this).text());
|
362
|
-
}
|
363
|
-
// Set filter button
|
364
|
-
if (ctx._pfFilter.filterButton !== undefined && ctx._pfFilter.filterButton.length !== 0) {
|
365
|
-
ctx._pfFilter.filterButton.html($(this).text() + ' <span class="caret"></span>');
|
366
|
-
}
|
367
|
-
ctx._pfFilter.filterColumn = i; // Save filter column when applying filter
|
368
|
-
ctx._pfFilter.filterName = $(this).text(); // Save filter name for active filter control
|
369
|
-
});
|
370
|
-
}
|
371
|
-
|
372
|
-
/**
|
373
|
-
* Update active filter results
|
374
|
-
*
|
375
|
-
* @param {DataTable.Api} dt DataTable
|
376
|
-
* @private
|
377
|
-
*/
|
378
|
-
function updateFilterResults (dt) {
|
379
|
-
var ctx = dt.settings()[0];
|
380
|
-
var filteredRows = dt.rows({"page": "current", "search": "applied"}).flatten().length;
|
381
|
-
if (ctx._pfFilter.filterResults === undefined || ctx._pfFilter.filterResults.length === 0) {
|
382
|
-
return;
|
383
|
-
}
|
384
|
-
ctx._pfFilter.filterResults.html(filteredRows + " Results");
|
385
|
-
}
|
386
|
-
|
387
|
-
// DataTables API
|
388
|
-
|
389
|
-
/**
|
390
|
-
* Add filter
|
391
|
-
*
|
392
|
-
* Example: dt.table().pfFilter.addFilter({
|
393
|
-
* column: 2,
|
394
|
-
* name: "Browser",
|
395
|
-
* value: "Firefox"
|
396
|
-
* });
|
397
|
-
*
|
398
|
-
* @param {object} filter Properties associated with a new filter
|
399
|
-
* @param {string} filter.column - Column associated with DataTable
|
400
|
-
* @param {string} filter.name - Name of the filter
|
401
|
-
* @param {string} filter.value - Value of the filter
|
402
|
-
*/
|
403
|
-
DataTable.Api.register("pfFilter.addFilter()", function (filter) {
|
404
|
-
return this.iterator("table", function (ctx) {
|
405
|
-
addFilter(new DataTable.Api(ctx), filter);
|
406
|
-
});
|
407
|
-
});
|
408
|
-
|
409
|
-
/**
|
410
|
-
* Clear filters
|
411
|
-
*
|
412
|
-
* Example: dt.table().pfFilter.clearFilters();
|
413
|
-
*
|
414
|
-
*/
|
415
|
-
DataTable.Api.register("pfFilter.clearFilters()", function () {
|
416
|
-
return this.iterator("table", function (ctx) {
|
417
|
-
clearFilters(new DataTable.Api(ctx));
|
418
|
-
});
|
419
|
-
});
|
420
|
-
|
421
|
-
// DataTables creation
|
422
|
-
$(document).on("init.dt", function (e, ctx, json) {
|
423
|
-
if (e.namespace !== "dt") {
|
424
|
-
return;
|
425
|
-
}
|
426
|
-
DataTable.pfFilter.init(new DataTable.Api(ctx));
|
427
|
-
});
|
428
|
-
return DataTable.pfFilter;
|
429
|
-
}));
|