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(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 isIE(){return/(MSIE|Trident\/|Edge\/)/i.test(window.navigator.userAgent)}function resetTableCells(dt,actions){actions!==undefined&&0!==actions.length&&$(actions).each(function(index,el){$(el).css({height:"auto"})})}function resize(dt){var actions=$(BUTTON_ACTIONS_SELECTOR+", "+KEBAB_ACTIONS_SELECTOR,dt.table().container());resetTableCells(dt,actions),resizeInlineActions(dt,actions)}function resizeInlineActions(dt,actions){actions!==undefined&&0!==actions.length&&$(actions).each(function(index,el){var parent=$(el).parent("td");parent!==undefined&&0!==parent.length&&$(el).css({height:parent[0].clientHeight})})}var DataTable=$.fn.dataTable,BUTTON_ACTIONS_SELECTOR="td.table-view-pf-actions .table-view-pf-btn",KEBAB_ACTIONS_SELECTOR="td.table-view-pf-actions .dropdown";return DataTable.pfResize={},DataTable.pfResize.init=function(dt){dt.settings()[0]._pfResize={},isIE()&&($(window).on("resize",function(){resize(dt)}),resize(dt))},DataTable.Api.register("pfResize.resize()",function(){return this.iterator("table",function(ctx){resize(new DataTable.Api(ctx))})}),$(document).on("init.dt",function(e,ctx,json){"dt"===e.namespace&&DataTable.pfResize.init(new DataTable.Api(ctx))}),DataTable.pfResize});
|
@@ -1,281 +0,0 @@
|
|
1
|
-
/**
|
2
|
-
* @summary pfSelect for DataTables
|
3
|
-
* @description A collection of API methods providing individual row selection and select all functionality in
|
4
|
-
* DataTables using traditional HTML checkboxes. This ensures DataTables meets the Patternfly design pattern while
|
5
|
-
* maintaining accessibility.
|
6
|
-
*
|
7
|
-
* The following selection styles are supported for user interaction with DataTables:
|
8
|
-
*
|
9
|
-
* api - Selection can only be performed via the API
|
10
|
-
* multi - Multiple items can be selected
|
11
|
-
* multi+shift - a hybrid between the os style and multi
|
12
|
-
* os - Operating system style selection with complex behaviors such as ctrl/cmd, shift and an unmodified click
|
13
|
-
* single - Only a single item can be selected
|
14
|
-
*
|
15
|
-
* For details see: https://datatables.net/reference/option/select.style
|
16
|
-
*
|
17
|
-
* Note that when a selection is made, the selection results text is also updated in the toolbar. The toolbar layouts is
|
18
|
-
* expected to contain the classes as shown in the example below. Selection checkboxes are also expected to be located
|
19
|
-
* in the first column.
|
20
|
-
*
|
21
|
-
* Example:
|
22
|
-
*
|
23
|
-
* <!-- NOTE: Some configuration may be omitted for clarity -->
|
24
|
-
* <div class="row toolbar-pf table-view-pf-toolbar" id="toolbar1">
|
25
|
-
* <div class="col-sm-12">
|
26
|
-
* ...
|
27
|
-
* <div class="row toolbar-pf-results">
|
28
|
-
* <div class="col-sm-9">
|
29
|
-
* ...
|
30
|
-
* </div>
|
31
|
-
* <div class="col-sm-3 table-view-pf-select-results">
|
32
|
-
* <strong>0</strong> of <strong>0</strong> selected
|
33
|
-
* </div>
|
34
|
-
* </div>
|
35
|
-
* </div>
|
36
|
-
* </div>
|
37
|
-
* <table class="table table-striped table-bordered table-hover" id="table1">
|
38
|
-
* <thead>
|
39
|
-
* <tr>
|
40
|
-
* <th><input type="checkbox" name="selectAll"></th>
|
41
|
-
* <th>Rendering Engine</th>
|
42
|
-
* <th>Browser</th>
|
43
|
-
* </tr>
|
44
|
-
* </thead>
|
45
|
-
* </table>
|
46
|
-
* ...
|
47
|
-
* <script>
|
48
|
-
* // NOTE: Some properties may be omitted for clarity
|
49
|
-
* $(document).ready(function() {
|
50
|
-
* var dt = $("#table1").DataTable({
|
51
|
-
* columns: [
|
52
|
-
* { data: null,
|
53
|
-
* className: "table-view-pf-select",
|
54
|
-
* render: function (data, type, full, meta) {
|
55
|
-
* return '<input type="checkbox" name="select">';
|
56
|
-
* },
|
57
|
-
* sortable: false
|
58
|
-
* },
|
59
|
-
* { data: "engine" },
|
60
|
-
* { data: "browser" }
|
61
|
-
* ],
|
62
|
-
* data: [
|
63
|
-
* { engine: "Gecko", browser: "Firefox" }
|
64
|
-
* { engine: "Trident", browser: "Mozilla" }
|
65
|
-
* ],
|
66
|
-
* dom: "t",
|
67
|
-
* order: [[ 1, "asc" ]],
|
68
|
-
* pfConfig: {
|
69
|
-
* ...
|
70
|
-
* toolbarSelector: "#toolbar1",
|
71
|
-
* selectAllSelector: 'th:first-child input[type="checkbox"]'
|
72
|
-
* }
|
73
|
-
* select: {
|
74
|
-
* selector: 'td:first-child input[type="checkbox"]',
|
75
|
-
* style: "multi"
|
76
|
-
* }
|
77
|
-
* });
|
78
|
-
* dt.table().pfSelect.selectAllRows(true); // Optional API to select all rows
|
79
|
-
* });
|
80
|
-
* </script>
|
81
|
-
*
|
82
|
-
* Note: This functionality requires the following Javascript library files to be loaded:
|
83
|
-
*
|
84
|
-
* https://cdn.datatables.net/select/1.2.0/js/dataTables.select.min.js
|
85
|
-
*/
|
86
|
-
(function (factory) {
|
87
|
-
"use strict";
|
88
|
-
if (typeof define === "function" && define.amd ) {
|
89
|
-
// AMD
|
90
|
-
define (["jquery", "datatables.net"], function ($) {
|
91
|
-
return factory ($, window, document);
|
92
|
-
});
|
93
|
-
} else if (typeof exports === "object") {
|
94
|
-
// CommonJS
|
95
|
-
module.exports = function (root, $) {
|
96
|
-
if (!root) {
|
97
|
-
root = window;
|
98
|
-
}
|
99
|
-
if (!$ || !$.fn.dataTable) {
|
100
|
-
$ = require("datatables.net")(root, $).$;
|
101
|
-
}
|
102
|
-
return factory($, root, root.document);
|
103
|
-
};
|
104
|
-
} else {
|
105
|
-
// Browser
|
106
|
-
factory(jQuery, window, document);
|
107
|
-
}
|
108
|
-
}(function ($, window, document, undefined) {
|
109
|
-
"use strict";
|
110
|
-
var DataTable = $.fn.dataTable;
|
111
|
-
var RESULTS_SELECTOR = ".table-view-pf-select-results"; // Toolbar selection results
|
112
|
-
var SELECT_ALL_SELECTOR = 'th:first-child input[type="checkbox"]'; // Default checkbox for selecting all rows
|
113
|
-
var SELECT_SELECTOR = 'td:first-child input[type="checkbox"]'; // Default checkboxes for row selection
|
114
|
-
|
115
|
-
DataTable.pfSelect = {};
|
116
|
-
|
117
|
-
/**
|
118
|
-
* Initialize
|
119
|
-
*
|
120
|
-
* @param {DataTable.Api} dt DataTable
|
121
|
-
* @private
|
122
|
-
*/
|
123
|
-
DataTable.pfSelect.init = function (dt) {
|
124
|
-
var ctx = dt.settings()[0];
|
125
|
-
var opts = (ctx.oInit.pfConfig) ? ctx.oInit.pfConfig : {};
|
126
|
-
var select = (ctx.oInit.select) ? ctx.oInit.select : {};
|
127
|
-
var style = dt.select.style();
|
128
|
-
|
129
|
-
ctx._pfSelect = {};
|
130
|
-
ctx._pfSelect.selectAllSelector = (opts.selectAllSelector !== undefined)
|
131
|
-
? opts.selectAllSelector : SELECT_ALL_SELECTOR; // Select all checkbox
|
132
|
-
ctx._pfSelect.selector = (select.selector !== undefined)
|
133
|
-
? select.selector : SELECT_SELECTOR; // Select checkbox
|
134
|
-
ctx._pfSelect.results = $(RESULTS_SELECTOR, opts.toolbarSelector); // Toolbar selection results
|
135
|
-
|
136
|
-
if (style === "api") {
|
137
|
-
// Select all checkbox
|
138
|
-
$(dt.table().container()).on("click", ctx._pfSelect.selectAllSelector, function (evt) {
|
139
|
-
evt.preventDefault();
|
140
|
-
});
|
141
|
-
|
142
|
-
// Select checkboxes
|
143
|
-
$(dt.table().container()).on("click", ctx._pfSelect.selector, function (evt) {
|
144
|
-
evt.preventDefault();
|
145
|
-
});
|
146
|
-
|
147
|
-
dt.table().on("select.dt", function () {
|
148
|
-
syncSelectCheckboxes(dt);
|
149
|
-
});
|
150
|
-
} else {
|
151
|
-
// Select all checkbox
|
152
|
-
$(dt.table().container()).on("click", ctx._pfSelect.selectAllSelector, function (evt) {
|
153
|
-
selectAllRows(dt, evt.target.checked);
|
154
|
-
});
|
155
|
-
|
156
|
-
// Select checkboxes
|
157
|
-
$(dt.table().container()).on("click", ctx._pfSelect.selector, function (evt) {
|
158
|
-
if (style !== "multi" || style !== "multi+shift") {
|
159
|
-
syncSelectCheckboxes(dt); // No need to sync checkbox selections when "multi" is used
|
160
|
-
} else {
|
161
|
-
syncSelectAllCheckbox(dt); // Still need to sync select all checkbox
|
162
|
-
}
|
163
|
-
});
|
164
|
-
}
|
165
|
-
|
166
|
-
// Sync checkbox selections when paging and filtering is applied
|
167
|
-
dt.table().on("draw.dt", function () {
|
168
|
-
syncSelectCheckboxes(dt);
|
169
|
-
});
|
170
|
-
|
171
|
-
// Initialize selected rows text
|
172
|
-
updateSelectedRowsText(dt);
|
173
|
-
};
|
174
|
-
|
175
|
-
// Local functions
|
176
|
-
|
177
|
-
/**
|
178
|
-
* Select all rows on current page
|
179
|
-
*
|
180
|
-
* @param {DataTable.Api} dt DataTable
|
181
|
-
* @param {boolean} select True to select all rows on current page, defaults to false
|
182
|
-
* @private
|
183
|
-
*/
|
184
|
-
function selectAllRows (dt, select) {
|
185
|
-
var ctx = dt.settings()[0];
|
186
|
-
|
187
|
-
// Retrieve all rows taking into account currently applied filter
|
188
|
-
var filteredRows = dt.rows({"page": "current", "search": "applied"});
|
189
|
-
|
190
|
-
// Check if style is single
|
191
|
-
if (dt.select.style() === "single") {
|
192
|
-
throw new Error("Cannot select all rows with selection style 'single'");
|
193
|
-
}
|
194
|
-
|
195
|
-
// Select rows
|
196
|
-
if (select) {
|
197
|
-
filteredRows.select();
|
198
|
-
} else {
|
199
|
-
filteredRows.deselect();
|
200
|
-
}
|
201
|
-
$(ctx._pfSelect.selector, dt.table().container()).prop("checked", select); // De/select checkboxes in view
|
202
|
-
syncSelectAllCheckbox(dt);
|
203
|
-
}
|
204
|
-
|
205
|
-
/**
|
206
|
-
* Sync select all checkbox with row selections on current page
|
207
|
-
*
|
208
|
-
* @param {DataTable.Api} dt DataTable
|
209
|
-
* @private
|
210
|
-
*/
|
211
|
-
function syncSelectAllCheckbox (dt) {
|
212
|
-
var ctx = dt.settings()[0];
|
213
|
-
|
214
|
-
// Retrieve all rows taking into account currently applied filter
|
215
|
-
var filteredRows = dt.rows({"page": "current", "search": "applied"}).flatten().length;
|
216
|
-
var selectedFilteredRows = dt.rows({"page": "current", "search": "applied", "selected": true}).flatten().length;
|
217
|
-
|
218
|
-
// De/select the select all checkbox
|
219
|
-
var selectAll = $(ctx._pfSelect.selectAllSelector, dt.table().container())[0];
|
220
|
-
if (selectAll) {
|
221
|
-
selectAll.checked = (filteredRows !== 0 && filteredRows === selectedFilteredRows);
|
222
|
-
}
|
223
|
-
updateSelectedRowsText(dt);
|
224
|
-
}
|
225
|
-
|
226
|
-
/**
|
227
|
-
* Sync select checkboxes with row selections on current page
|
228
|
-
*
|
229
|
-
* @param {DataTable.Api} dt DataTable
|
230
|
-
* @private
|
231
|
-
*/
|
232
|
-
function syncSelectCheckboxes (dt) {
|
233
|
-
var ctx = dt.settings()[0];
|
234
|
-
|
235
|
-
$(ctx._pfSelect.selector, dt.table().container()).prop("checked", false); // Deselect all checkboxes
|
236
|
-
dt.rows({"page": "current", "search": "applied", "selected": true}).every(function (index) {
|
237
|
-
$(ctx._pfSelect.selector, dt.table().row(index).node()).prop("checked", true); // Select checkbox for selected row
|
238
|
-
});
|
239
|
-
syncSelectAllCheckbox(dt);
|
240
|
-
}
|
241
|
-
|
242
|
-
/**
|
243
|
-
* Update selection results text
|
244
|
-
*
|
245
|
-
* @param {DataTable.Api} dt DataTable
|
246
|
-
* @private
|
247
|
-
*/
|
248
|
-
function updateSelectedRowsText (dt) {
|
249
|
-
var ctx = dt.settings()[0];
|
250
|
-
var selectedRows = dt.rows({"selected": true}).flatten().length;
|
251
|
-
var totalRows = dt.rows().flatten().length;
|
252
|
-
if (ctx._pfSelect.results !== undefined && ctx._pfSelect.results.length !== 0) {
|
253
|
-
$(ctx._pfSelect.results).html("<strong>" + selectedRows + "</strong> of <strong>" +
|
254
|
-
totalRows + "</strong> selected");
|
255
|
-
}
|
256
|
-
}
|
257
|
-
|
258
|
-
// DataTables API
|
259
|
-
|
260
|
-
/**
|
261
|
-
* Select all rows on current page
|
262
|
-
*
|
263
|
-
* Example: dt.table().pfSelect.selectAllRows(true);
|
264
|
-
*
|
265
|
-
* @param {boolean} select True to select all rows on current page, defaults to false
|
266
|
-
*/
|
267
|
-
DataTable.Api.register("pfSelect.selectAllRows()", function (select) {
|
268
|
-
return this.iterator("table", function (ctx) {
|
269
|
-
selectAllRows(new DataTable.Api(ctx), select);
|
270
|
-
});
|
271
|
-
});
|
272
|
-
|
273
|
-
// DataTables creation
|
274
|
-
$(document).on("preInit.dt.dtSelect", function (e, ctx) {
|
275
|
-
if (e.namespace !== "dt") {
|
276
|
-
return;
|
277
|
-
}
|
278
|
-
DataTable.pfSelect.init(new DataTable.Api(ctx));
|
279
|
-
});
|
280
|
-
return DataTable.pfSelect;
|
281
|
-
}));
|
@@ -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 selectAllRows(dt,select){var ctx=dt.settings()[0],filteredRows=dt.rows({page:"current",search:"applied"});if("single"===dt.select.style())throw new Error("Cannot select all rows with selection style 'single'");select?filteredRows.select():filteredRows.deselect(),$(ctx._pfSelect.selector,dt.table().container()).prop("checked",select),syncSelectAllCheckbox(dt)}function syncSelectAllCheckbox(dt){var ctx=dt.settings()[0],filteredRows=dt.rows({page:"current",search:"applied"}).flatten().length,selectedFilteredRows=dt.rows({page:"current",search:"applied",selected:!0}).flatten().length,selectAll=$(ctx._pfSelect.selectAllSelector,dt.table().container())[0];selectAll&&(selectAll.checked=0!==filteredRows&&filteredRows===selectedFilteredRows),updateSelectedRowsText(dt)}function syncSelectCheckboxes(dt){var ctx=dt.settings()[0];$(ctx._pfSelect.selector,dt.table().container()).prop("checked",!1),dt.rows({page:"current",search:"applied",selected:!0}).every(function(index){$(ctx._pfSelect.selector,dt.table().row(index).node()).prop("checked",!0)}),syncSelectAllCheckbox(dt)}function updateSelectedRowsText(dt){var ctx=dt.settings()[0],selectedRows=dt.rows({selected:!0}).flatten().length,totalRows=dt.rows().flatten().length;ctx._pfSelect.results!==undefined&&0!==ctx._pfSelect.results.length&&$(ctx._pfSelect.results).html("<strong>"+selectedRows+"</strong> of <strong>"+totalRows+"</strong> selected")}var DataTable=$.fn.dataTable;return DataTable.pfSelect={},DataTable.pfSelect.init=function(dt){var ctx=dt.settings()[0],opts=ctx.oInit.pfConfig?ctx.oInit.pfConfig:{},select=ctx.oInit.select?ctx.oInit.select:{},style=dt.select.style();ctx._pfSelect={},ctx._pfSelect.selectAllSelector=opts.selectAllSelector!==undefined?opts.selectAllSelector:'th:first-child input[type="checkbox"]',ctx._pfSelect.selector=select.selector!==undefined?select.selector:'td:first-child input[type="checkbox"]',ctx._pfSelect.results=$(".table-view-pf-select-results",opts.toolbarSelector),"api"===style?($(dt.table().container()).on("click",ctx._pfSelect.selectAllSelector,function(evt){evt.preventDefault()}),$(dt.table().container()).on("click",ctx._pfSelect.selector,function(evt){evt.preventDefault()}),dt.table().on("select.dt",function(){syncSelectCheckboxes(dt)})):($(dt.table().container()).on("click",ctx._pfSelect.selectAllSelector,function(evt){selectAllRows(dt,evt.target.checked)}),$(dt.table().container()).on("click",ctx._pfSelect.selector,function(evt){"multi"!==style||"multi+shift"!==style?syncSelectCheckboxes(dt):syncSelectAllCheckbox(dt)})),dt.table().on("draw.dt",function(){syncSelectCheckboxes(dt)}),updateSelectedRowsText(dt)},DataTable.Api.register("pfSelect.selectAllRows()",function(select){return this.iterator("table",function(ctx){selectAllRows(new DataTable.Api(ctx),select)})}),$(document).on("preInit.dt.dtSelect",function(e,ctx){"dt"===e.namespace&&DataTable.pfSelect.init(new DataTable.Api(ctx))}),DataTable.pfSelect});
|
data/dist/js/patternfly.js
DELETED
@@ -1,1866 +0,0 @@
|
|
1
|
-
(function (window) {
|
2
|
-
'use strict';
|
3
|
-
|
4
|
-
var patternfly = {
|
5
|
-
version: "3.54.7"
|
6
|
-
};
|
7
|
-
|
8
|
-
// definition of breakpoint sizes for tablet and desktop modes
|
9
|
-
patternfly.pfBreakpoints = {
|
10
|
-
'tablet': 768,
|
11
|
-
'desktop': 1200
|
12
|
-
};
|
13
|
-
|
14
|
-
window.patternfly = patternfly;
|
15
|
-
|
16
|
-
})(typeof window !== 'undefined' ? window : global);
|
17
|
-
|
18
|
-
(function (window) {
|
19
|
-
'use strict';
|
20
|
-
|
21
|
-
// Ensure we are assigning these to the patternfly property of the window argument, and not the implicit global patternfly
|
22
|
-
var patternfly = window.patternfly;
|
23
|
-
|
24
|
-
// Util: PatternFly Palette colors
|
25
|
-
patternfly.pfPaletteColors = {
|
26
|
-
black: '#030303',
|
27
|
-
black100: '#fafafa',
|
28
|
-
black200: '#ededed',
|
29
|
-
black300: '#d1d1d1',
|
30
|
-
black400: '#bbbbbb',
|
31
|
-
black500: '#8b8d8f',
|
32
|
-
black600: '#72767b',
|
33
|
-
black700: '#4d5258',
|
34
|
-
black800: '#393f44',
|
35
|
-
black900: '#292e34',
|
36
|
-
blue: '#0088ce',
|
37
|
-
blue100: '#bee1f4',
|
38
|
-
blue200: '#7dc3e8',
|
39
|
-
blue300: '#39a5dc',
|
40
|
-
blue400: '#0088ce',
|
41
|
-
blue500: '#00659c',
|
42
|
-
blue600: '#004368',
|
43
|
-
blue700: '#002235',
|
44
|
-
gold: '#f0ab00',
|
45
|
-
gold100: '#fbeabc',
|
46
|
-
gold200: '#f9d67a',
|
47
|
-
gold300: '#f5c12e',
|
48
|
-
gold400: '#f0ab00',
|
49
|
-
gold500: '#b58100',
|
50
|
-
gold600: '#795600',
|
51
|
-
gold700: '#3d2c00',
|
52
|
-
orange: '#ec7a08',
|
53
|
-
orange100: '#fbdebf',
|
54
|
-
orange200: '#f7bd7f',
|
55
|
-
orange300: '#f39d3c',
|
56
|
-
orange400: '#ec7a08',
|
57
|
-
orange500: '#b35c00',
|
58
|
-
orange600: '#773d00',
|
59
|
-
orange700: '#3b1f00',
|
60
|
-
lightBlue: '#00b9e4',
|
61
|
-
lightBlue100: '#beedf9',
|
62
|
-
lightBlue200: '#7cdbf3',
|
63
|
-
lightBlue300: '#35caed',
|
64
|
-
lightBlue400: '#00b9e4',
|
65
|
-
lightBlue500: '#008bad',
|
66
|
-
lightBlue600: '#005c73',
|
67
|
-
lightBlue700: '#002d39',
|
68
|
-
green: '#3f9c35',
|
69
|
-
green100: '#cfe7cd',
|
70
|
-
green200: '#9ecf99',
|
71
|
-
green300: '#6ec664',
|
72
|
-
green400: '#3f9c35',
|
73
|
-
green500: '#2d7623',
|
74
|
-
green600: '#1e4f18',
|
75
|
-
green700: '#0f280d',
|
76
|
-
lightGreen: '#92d400',
|
77
|
-
lightGreen100: '#e4f5bc',
|
78
|
-
lightGreen200: '#c8eb79',
|
79
|
-
lightGreen300: '#ace12e',
|
80
|
-
lightGreen400: '#92d400',
|
81
|
-
lightGreen500: '#6ca100',
|
82
|
-
lightGreen600: '#486b00',
|
83
|
-
lightGreen700: '#253600',
|
84
|
-
cyan: '#007a87',
|
85
|
-
cyan100: '#bedee1',
|
86
|
-
cyan200: '#7dbdc3',
|
87
|
-
cyan300: '#3a9ca6',
|
88
|
-
cyan400: '#007a87',
|
89
|
-
cyan500: '#005c66',
|
90
|
-
cyan600: '#003d44',
|
91
|
-
cyan700: '#001f22',
|
92
|
-
purple: '#703fec',
|
93
|
-
purple100: '#c7bfff',
|
94
|
-
purple200: '#a18fff',
|
95
|
-
purple300: '#8461f7',
|
96
|
-
purple400: '#703fec',
|
97
|
-
purple500: '#582fc0',
|
98
|
-
purple600: '#40199a',
|
99
|
-
purple700: '#1f0066',
|
100
|
-
red: '#cc0000',
|
101
|
-
red100: '#cc0000',
|
102
|
-
red200: '#a30000',
|
103
|
-
red300: '#8b0000',
|
104
|
-
red400: '#470000',
|
105
|
-
red500: '#2c0000'
|
106
|
-
};
|
107
|
-
})(typeof window !== 'undefined' ? window : global);
|
108
|
-
|
109
|
-
|
110
|
-
(function (window) {
|
111
|
-
'use strict';
|
112
|
-
|
113
|
-
// Ensure we are assigning these to the patternfly property of the window argument, and not the implicit global patternfly
|
114
|
-
var patternfly = window.patternfly;
|
115
|
-
|
116
|
-
// Util: PatternFly C3 Chart Defaults
|
117
|
-
patternfly.pfSetDonutChartTitle = function (selector, primary, secondary) {
|
118
|
-
var donutChartRightTitle = window.d3.select(selector).select('text.c3-chart-arcs-title');
|
119
|
-
donutChartRightTitle.text("");
|
120
|
-
donutChartRightTitle.insert('tspan').text(primary).classed('donut-title-big-pf', true).attr('dy', 0).attr('x', 0);
|
121
|
-
donutChartRightTitle.insert('tspan').text(secondary).classed('donut-title-small-pf', true).attr('dy', 20).attr('x', 0);
|
122
|
-
};
|
123
|
-
|
124
|
-
patternfly.pfDonutTooltipContents = function (d, defaultTitleFormat, defaultValueFormat, color) {
|
125
|
-
return '<table class="c3-tooltip">' +
|
126
|
-
' <tr>' +
|
127
|
-
' <td><span style="background-color:' + color(d[0].id) + '"></span>' + '<strong>' + d[0].value + '</strong> ' + d[0].name + '</td>' +
|
128
|
-
' <td>' + (Math.round(d[0].ratio * 1000) / 10) + '%</td>' +
|
129
|
-
' </tr>' +
|
130
|
-
'</table>';
|
131
|
-
};
|
132
|
-
|
133
|
-
patternfly.pfGetUtilizationDonutTooltipContentsFn = function (units) {
|
134
|
-
return function (d) {
|
135
|
-
return '<span class="donut-tooltip-pf" style="white-space: nowrap;">' +
|
136
|
-
(Math.round(d[0].ratio * 1000) / 10) + '%' + ' ' + units + ' ' + d[0].name +
|
137
|
-
'</span>';
|
138
|
-
};
|
139
|
-
};
|
140
|
-
|
141
|
-
patternfly.pfGetBarChartTooltipContentsFn = function (categories) {
|
142
|
-
return function (d) {
|
143
|
-
var name = categories ? categories[d[0].index] : d[0].index;
|
144
|
-
return '<table class="c3-tooltip">' +
|
145
|
-
' <tr>' +
|
146
|
-
' <td><strong>' + name + ':</td>' +
|
147
|
-
' <td>' + d[0].value + '</td>' +
|
148
|
-
' </tr>' +
|
149
|
-
'</table>';
|
150
|
-
};
|
151
|
-
};
|
152
|
-
|
153
|
-
patternfly.pfSingleLineChartTooltipContentsFn = function (categories) {
|
154
|
-
return function (d) {
|
155
|
-
var name = categories ? categories[d[0].index] : d[0].index;
|
156
|
-
return '<table class="c3-tooltip">' +
|
157
|
-
' <tr>' +
|
158
|
-
' <td><strong>' + name + ':</td>' +
|
159
|
-
' <td>' + d[0].value + '</td>' +
|
160
|
-
' </tr>' +
|
161
|
-
'</table>';
|
162
|
-
};
|
163
|
-
};
|
164
|
-
|
165
|
-
patternfly.pfPieTooltipContents = function (d, defaultTitleFormat, defaultValueFormat, color) {
|
166
|
-
return patternfly.pfDonutTooltipContents(d, defaultTitleFormat, defaultValueFormat, color);
|
167
|
-
};
|
168
|
-
|
169
|
-
patternfly.c3ChartDefaults = function () {
|
170
|
-
var
|
171
|
-
getDefaultColors = function () {
|
172
|
-
return {
|
173
|
-
pattern: [
|
174
|
-
patternfly.pfPaletteColors.blue,
|
175
|
-
patternfly.pfPaletteColors.blue300,
|
176
|
-
patternfly.pfPaletteColors.green,
|
177
|
-
patternfly.pfPaletteColors.orange,
|
178
|
-
patternfly.pfPaletteColors.red
|
179
|
-
]
|
180
|
-
};
|
181
|
-
},
|
182
|
-
getDefaultBarGrid = function () {
|
183
|
-
return {
|
184
|
-
y: {
|
185
|
-
show: true
|
186
|
-
}
|
187
|
-
};
|
188
|
-
},
|
189
|
-
getDefaultBarTooltip = function (categories) {
|
190
|
-
return {
|
191
|
-
contents: patternfly.pfGetBarChartTooltipContentsFn(categories)
|
192
|
-
};
|
193
|
-
},
|
194
|
-
getDefaultBarLegend = function () {
|
195
|
-
return {
|
196
|
-
show: false
|
197
|
-
};
|
198
|
-
},
|
199
|
-
getDefaultBarConfig = function (categories) {
|
200
|
-
return {
|
201
|
-
color: this.getDefaultColors(),
|
202
|
-
grid: this.getDefaultBarGrid(),
|
203
|
-
tooltip: this.getDefaultBarTooltip(categories),
|
204
|
-
legend: this.getDefaultBarLegend()
|
205
|
-
};
|
206
|
-
},
|
207
|
-
getDefaultGroupedBarGrid = function () {
|
208
|
-
return {
|
209
|
-
y: {
|
210
|
-
show: true
|
211
|
-
}
|
212
|
-
};
|
213
|
-
},
|
214
|
-
getDefaultGroupedBarLegend = function () {
|
215
|
-
return {
|
216
|
-
show: true,
|
217
|
-
position: 'bottom'
|
218
|
-
};
|
219
|
-
},
|
220
|
-
getDefaultGroupedBarConfig = function () {
|
221
|
-
return {
|
222
|
-
color: this.getDefaultColors(),
|
223
|
-
grid: this.getDefaultGroupedBarGrid(),
|
224
|
-
legend: this.getDefaultGroupedBarLegend()
|
225
|
-
};
|
226
|
-
},
|
227
|
-
getDefaultStackedBarGrid = function () {
|
228
|
-
return {
|
229
|
-
y: {
|
230
|
-
show: true
|
231
|
-
}
|
232
|
-
};
|
233
|
-
},
|
234
|
-
getDefaultStackedBarLegend = function () {
|
235
|
-
return {
|
236
|
-
show: true,
|
237
|
-
position: 'bottom'
|
238
|
-
};
|
239
|
-
},
|
240
|
-
getDefaultStackedBarConfig = function () {
|
241
|
-
return {
|
242
|
-
color: this.getDefaultColors(),
|
243
|
-
grid: this.getDefaultStackedBarGrid(),
|
244
|
-
legend: this.getDefaultStackedBarLegend()
|
245
|
-
};
|
246
|
-
},
|
247
|
-
getDefaultDonut = function (title) {
|
248
|
-
return {
|
249
|
-
title: title,
|
250
|
-
label: {
|
251
|
-
show: false
|
252
|
-
},
|
253
|
-
width: 11
|
254
|
-
};
|
255
|
-
},
|
256
|
-
getDefaultDonutSize = function () {
|
257
|
-
return {
|
258
|
-
height: 171 // produces a diameter of 150 and a centered chart when there is no legend
|
259
|
-
// Don't set a width here, the default is to center horizontally in the parent container
|
260
|
-
};
|
261
|
-
},
|
262
|
-
getDefaultDonutColors = function () {
|
263
|
-
return {
|
264
|
-
pattern: [
|
265
|
-
patternfly.pfPaletteColors.blue,
|
266
|
-
patternfly.pfPaletteColors.black300
|
267
|
-
]
|
268
|
-
};
|
269
|
-
},
|
270
|
-
getDefaultRelationshipDonutColors = function () {
|
271
|
-
return {
|
272
|
-
pattern: [
|
273
|
-
patternfly.pfPaletteColors.blue,
|
274
|
-
patternfly.pfPaletteColors.red100,
|
275
|
-
patternfly.pfPaletteColors.orange400,
|
276
|
-
patternfly.pfPaletteColors.green400,
|
277
|
-
patternfly.pfPaletteColors.cyan500,
|
278
|
-
patternfly.pfPaletteColors.gold200,
|
279
|
-
]
|
280
|
-
};
|
281
|
-
},
|
282
|
-
getDefaultDonutTooltip = function () {
|
283
|
-
return {
|
284
|
-
show: false
|
285
|
-
};
|
286
|
-
},
|
287
|
-
getDefaultDonutLegend = function () {
|
288
|
-
return {
|
289
|
-
show: false
|
290
|
-
};
|
291
|
-
},
|
292
|
-
getDefaultDonutConfig = function (title) {
|
293
|
-
return {
|
294
|
-
donut: this.getDefaultDonut(title),
|
295
|
-
size: this.getDefaultDonutSize(),
|
296
|
-
legend: this.getDefaultDonutLegend(),
|
297
|
-
color: this.getDefaultDonutColors(),
|
298
|
-
tooltip: this.getDefaultDonutTooltip()
|
299
|
-
};
|
300
|
-
},
|
301
|
-
getDefaultRelationshipDonutConfig = function (title) {
|
302
|
-
return {
|
303
|
-
donut: this.getDefaultDonut(title),
|
304
|
-
size: this.getDefaultDonutSize(),
|
305
|
-
legend: this.getDefaultDonutLegend(),
|
306
|
-
color: this.getDefaultRelationshipDonutColors(),
|
307
|
-
tooltip: this.getDefaultDonutTooltip()
|
308
|
-
};
|
309
|
-
},
|
310
|
-
getDefaultPie = function () {
|
311
|
-
return {
|
312
|
-
expand: true,
|
313
|
-
label: {
|
314
|
-
show: false
|
315
|
-
}
|
316
|
-
};
|
317
|
-
},
|
318
|
-
getDefaultPieSize = function () {
|
319
|
-
return {
|
320
|
-
height: 171 // produces a diameter of 150 and a centered chart when there is no legend
|
321
|
-
// Don't set a width here, default is to center horizontally in the parent container
|
322
|
-
};
|
323
|
-
},
|
324
|
-
getDefaultPieColors = function () {
|
325
|
-
return {
|
326
|
-
pattern: [
|
327
|
-
patternfly.pfPaletteColors.blue,
|
328
|
-
patternfly.pfPaletteColors.black300
|
329
|
-
]
|
330
|
-
};
|
331
|
-
},
|
332
|
-
getDefaultPieTooltip = function () {
|
333
|
-
return {
|
334
|
-
contents: patternfly.pfPieTooltipContents
|
335
|
-
};
|
336
|
-
},
|
337
|
-
getDefaultPieLegend = function () {
|
338
|
-
return {
|
339
|
-
show: false
|
340
|
-
};
|
341
|
-
},
|
342
|
-
getDefaultPieConfig = function () {
|
343
|
-
return {
|
344
|
-
pie: this.getDefaultPie(),
|
345
|
-
size: this.getDefaultPieSize(),
|
346
|
-
legend: this.getDefaultPieLegend(),
|
347
|
-
color: this.getDefaultPieColors(),
|
348
|
-
tooltip: this.getDefaultPieTooltip()
|
349
|
-
};
|
350
|
-
},
|
351
|
-
getDefaultSparklineArea = function () {
|
352
|
-
return {
|
353
|
-
zerobased: true
|
354
|
-
};
|
355
|
-
},
|
356
|
-
getDefaultSparklineSize = function () {
|
357
|
-
return {
|
358
|
-
height: 60
|
359
|
-
};
|
360
|
-
},
|
361
|
-
getDefaultSparklineAxis = function () {
|
362
|
-
return {
|
363
|
-
x: {
|
364
|
-
show: false
|
365
|
-
},
|
366
|
-
y: {
|
367
|
-
show: false
|
368
|
-
}
|
369
|
-
};
|
370
|
-
},
|
371
|
-
getDefaultSparklineLegend = function () {
|
372
|
-
return {
|
373
|
-
show: false
|
374
|
-
};
|
375
|
-
},
|
376
|
-
getDefaultSparklinePoint = function () {
|
377
|
-
return {
|
378
|
-
r: 1,
|
379
|
-
focus: {
|
380
|
-
expand: {
|
381
|
-
r: 4
|
382
|
-
}
|
383
|
-
}
|
384
|
-
};
|
385
|
-
},
|
386
|
-
getDefaultSparklineTooltip = function () {
|
387
|
-
return {
|
388
|
-
// because a sparkline should only contain a single data column,
|
389
|
-
// the tooltip will only work for a single data column
|
390
|
-
contents: function (d) {
|
391
|
-
return '<span class="c3-tooltip-sparkline">' + d[0].value + ' ' + d[0].name + '</span>';
|
392
|
-
}
|
393
|
-
};
|
394
|
-
},
|
395
|
-
getDefaultSparklineConfig = function () {
|
396
|
-
return {
|
397
|
-
area: getDefaultSparklineArea(),
|
398
|
-
size: getDefaultSparklineSize(),
|
399
|
-
axis: getDefaultSparklineAxis(),
|
400
|
-
color: getDefaultColors(),
|
401
|
-
legend: getDefaultSparklineLegend(),
|
402
|
-
point: getDefaultSparklinePoint(),
|
403
|
-
tooltip: getDefaultSparklineTooltip()
|
404
|
-
};
|
405
|
-
},
|
406
|
-
getDefaultLineAxis = function () {
|
407
|
-
return {
|
408
|
-
x: {
|
409
|
-
show: true
|
410
|
-
},
|
411
|
-
y: {
|
412
|
-
show: true
|
413
|
-
}
|
414
|
-
};
|
415
|
-
},
|
416
|
-
getDefaultLineGrid = function () {
|
417
|
-
return {
|
418
|
-
x: {
|
419
|
-
show: false
|
420
|
-
},
|
421
|
-
y: {
|
422
|
-
show: true
|
423
|
-
}
|
424
|
-
};
|
425
|
-
},
|
426
|
-
getDefaultLineLegend = function () {
|
427
|
-
return {
|
428
|
-
show: true
|
429
|
-
};
|
430
|
-
},
|
431
|
-
getDefaultLinePoint = function () {
|
432
|
-
return {
|
433
|
-
r: 3,
|
434
|
-
focus: {
|
435
|
-
expand: {
|
436
|
-
r: 5
|
437
|
-
}
|
438
|
-
}
|
439
|
-
};
|
440
|
-
},
|
441
|
-
getDefaultLineConfig = function () {
|
442
|
-
return {
|
443
|
-
axis: getDefaultLineAxis(),
|
444
|
-
grid: getDefaultLineGrid(),
|
445
|
-
color: getDefaultColors(),
|
446
|
-
legend: getDefaultLineLegend(),
|
447
|
-
point: getDefaultLinePoint()
|
448
|
-
};
|
449
|
-
},
|
450
|
-
getDefaultSingleLineTooltip = function () {
|
451
|
-
return {
|
452
|
-
contents: patternfly.pfGetBarChartTooltipContentsFn()
|
453
|
-
};
|
454
|
-
},
|
455
|
-
getDefaultSingleLineLegend = function () {
|
456
|
-
return {
|
457
|
-
show: false
|
458
|
-
};
|
459
|
-
},
|
460
|
-
getDefaultSingleLineConfig = function () {
|
461
|
-
return {
|
462
|
-
axis: getDefaultLineAxis(),
|
463
|
-
grid: getDefaultLineGrid(),
|
464
|
-
color: getDefaultColors(),
|
465
|
-
legend: getDefaultSingleLineLegend(),
|
466
|
-
point: getDefaultLinePoint(),
|
467
|
-
tooltip: getDefaultSingleLineTooltip()
|
468
|
-
};
|
469
|
-
},
|
470
|
-
getDefaultAreaAxis = function () {
|
471
|
-
return getDefaultLineAxis();
|
472
|
-
},
|
473
|
-
getDefaultAreaGrid = function () {
|
474
|
-
return getDefaultLineGrid();
|
475
|
-
},
|
476
|
-
getDefaultAreaLegend = function () {
|
477
|
-
return getDefaultLineLegend();
|
478
|
-
},
|
479
|
-
getDefaultAreaPoint = function () {
|
480
|
-
return getDefaultLinePoint();
|
481
|
-
},
|
482
|
-
getDefaultAreaConfig = function () {
|
483
|
-
return {
|
484
|
-
axis: getDefaultAreaAxis(),
|
485
|
-
grid: getDefaultAreaGrid(),
|
486
|
-
color: getDefaultColors(),
|
487
|
-
legend: getDefaultAreaLegend(),
|
488
|
-
point: getDefaultAreaPoint()
|
489
|
-
};
|
490
|
-
},
|
491
|
-
getDefaultSingleAreaTooltip = function () {
|
492
|
-
return {
|
493
|
-
contents: patternfly.pfGetBarChartTooltipContentsFn()
|
494
|
-
};
|
495
|
-
},
|
496
|
-
getDefaultSingleAreaLegend = function () {
|
497
|
-
return getDefaultSingleLineLegend();
|
498
|
-
},
|
499
|
-
getDefaultSingleAreaConfig = function () {
|
500
|
-
return {
|
501
|
-
axis: getDefaultAreaAxis(),
|
502
|
-
grid: getDefaultAreaGrid(),
|
503
|
-
color: getDefaultColors(),
|
504
|
-
legend: getDefaultSingleAreaLegend(),
|
505
|
-
point: getDefaultAreaPoint(),
|
506
|
-
tooltip: getDefaultSingleAreaTooltip()
|
507
|
-
};
|
508
|
-
};
|
509
|
-
return {
|
510
|
-
getDefaultColors: getDefaultColors,
|
511
|
-
getDefaultBarGrid: getDefaultBarGrid,
|
512
|
-
getDefaultBarTooltip: getDefaultBarTooltip,
|
513
|
-
getDefaultBarLegend: getDefaultBarLegend,
|
514
|
-
getDefaultBarConfig: getDefaultBarConfig,
|
515
|
-
getDefaultGroupedBarGrid: getDefaultGroupedBarGrid,
|
516
|
-
getDefaultGroupedBarLegend: getDefaultGroupedBarLegend,
|
517
|
-
getDefaultGroupedBarConfig: getDefaultGroupedBarConfig,
|
518
|
-
getDefaultStackedBarGrid: getDefaultStackedBarGrid,
|
519
|
-
getDefaultStackedBarLegend: getDefaultStackedBarLegend,
|
520
|
-
getDefaultStackedBarConfig: getDefaultStackedBarConfig,
|
521
|
-
getDefaultDonut: getDefaultDonut,
|
522
|
-
getDefaultDonutSize: getDefaultDonutSize,
|
523
|
-
getDefaultDonutColors: getDefaultDonutColors,
|
524
|
-
getDefaultDonutTooltip: getDefaultDonutTooltip,
|
525
|
-
getDefaultDonutLegend: getDefaultDonutLegend,
|
526
|
-
getDefaultDonutConfig: getDefaultDonutConfig,
|
527
|
-
getDefaultRelationshipDonutConfig: getDefaultRelationshipDonutConfig,
|
528
|
-
getDefaultPie: getDefaultPie,
|
529
|
-
getDefaultPieSize: getDefaultPieSize,
|
530
|
-
getDefaultPieColors: getDefaultPieColors,
|
531
|
-
getDefaultRelationshipDonutColors: getDefaultRelationshipDonutColors,
|
532
|
-
getDefaultPieTooltip: getDefaultPieTooltip,
|
533
|
-
getDefaultPieLegend: getDefaultPieLegend,
|
534
|
-
getDefaultPieConfig: getDefaultPieConfig,
|
535
|
-
getDefaultSparklineArea: getDefaultSparklineArea,
|
536
|
-
getDefaultSparklineSize: getDefaultSparklineSize,
|
537
|
-
getDefaultSparklineAxis: getDefaultSparklineAxis,
|
538
|
-
getDefaultSparklineLegend: getDefaultSparklineLegend,
|
539
|
-
getDefaultSparklinePoint: getDefaultSparklinePoint,
|
540
|
-
getDefaultSparklineTooltip: getDefaultSparklineTooltip,
|
541
|
-
getDefaultSparklineConfig: getDefaultSparklineConfig,
|
542
|
-
getDefaultLineAxis: getDefaultLineAxis,
|
543
|
-
getDefaultLineGrid: getDefaultLineGrid,
|
544
|
-
getDefaultLineLegend: getDefaultLineLegend,
|
545
|
-
getDefaultLinePoint: getDefaultLinePoint,
|
546
|
-
getDefaultLineConfig: getDefaultLineConfig,
|
547
|
-
getDefaultSingleLineTooltip: getDefaultSingleLineTooltip,
|
548
|
-
getDefaultSingleLineConfig: getDefaultSingleLineConfig,
|
549
|
-
getDefaultAreaAxis: getDefaultAreaAxis,
|
550
|
-
getDefaultAreaGrid: getDefaultAreaGrid,
|
551
|
-
getDefaultAreaLegend: getDefaultAreaLegend,
|
552
|
-
getDefaultAreaPoint: getDefaultAreaPoint,
|
553
|
-
getDefaultAreaConfig: getDefaultAreaConfig,
|
554
|
-
getDefaultSingleAreaTooltip: getDefaultSingleAreaTooltip,
|
555
|
-
getDefaultSingleAreaConfig: getDefaultSingleAreaConfig
|
556
|
-
};
|
557
|
-
};
|
558
|
-
})(typeof window !== 'undefined' ? window : global);
|
559
|
-
|
560
|
-
// Util: definition of breakpoint sizes for tablet and desktop modes
|
561
|
-
(function ($) {
|
562
|
-
'use strict';
|
563
|
-
if (patternfly !== undefined) {
|
564
|
-
$.pfBreakpoints = patternfly.pfBreakpoints;
|
565
|
-
}
|
566
|
-
}(jQuery));
|
567
|
-
// PatternFly pf-list
|
568
|
-
(function ($) {
|
569
|
-
'use strict';
|
570
|
-
|
571
|
-
$.fn.pfList = function () {
|
572
|
-
function init (list) {
|
573
|
-
// Ensure the state of the expansion elements is consistent
|
574
|
-
list.find('[data-list=expansion], .list-pf-item, .list-pf-expansion').each(function (index, element) {
|
575
|
-
var $expansion = $(element),
|
576
|
-
$collapse = $expansion.find('.collapse').first(),
|
577
|
-
expanded = $collapse.hasClass('in');
|
578
|
-
updateChevron($expansion, expanded);
|
579
|
-
if ($expansion.hasClass('list-pf-item')) {
|
580
|
-
updateActive($expansion, expanded);
|
581
|
-
}
|
582
|
-
});
|
583
|
-
list.find('.list-pf-container').each(function (index, element) {
|
584
|
-
var $element = $(element);
|
585
|
-
// The toggle element is the element with the data-list=toggle attribute
|
586
|
-
// or the entire .list-pf-container as a fallback
|
587
|
-
var $toggles = $element.find('[data-list=toggle]');
|
588
|
-
$toggles.length || ($toggles = $element);
|
589
|
-
$toggles.on('keydown', function (event) {
|
590
|
-
if (event.keyCode === 13 || event.keyCode === 32) {
|
591
|
-
toggleCollapse(this);
|
592
|
-
event.stopPropagation();
|
593
|
-
event.preventDefault();
|
594
|
-
}
|
595
|
-
});
|
596
|
-
$toggles.on('click', function (event) {
|
597
|
-
toggleCollapse(this);
|
598
|
-
event.stopPropagation();
|
599
|
-
event.preventDefault();
|
600
|
-
});
|
601
|
-
});
|
602
|
-
}
|
603
|
-
|
604
|
-
function toggleCollapse (toggle) {
|
605
|
-
var $toggle, $expansion, $collapse, expanded, $listItem;
|
606
|
-
$toggle = $(toggle);
|
607
|
-
// Find the parent expansion of the toggle
|
608
|
-
$expansion = $toggle.parentsUntil('.list-pf', '[data-list=expansion]').first();
|
609
|
-
$expansion.length || ($expansion = $toggle.closest('.list-pf-item, .list-pf-expansion'));
|
610
|
-
|
611
|
-
// toggle the "in" class of its first .collapse child
|
612
|
-
$collapse = $expansion.find('.collapse').first();
|
613
|
-
$collapse.toggleClass('in');
|
614
|
-
|
615
|
-
// update the state of the expansion element
|
616
|
-
updateChevron($expansion, $collapse.hasClass('in'));
|
617
|
-
$listItem = $expansion.closest('.list-pf-item');
|
618
|
-
updateActive($listItem, $listItem.find('.collapse').first().hasClass('in'));
|
619
|
-
}
|
620
|
-
|
621
|
-
function updateActive ($listItem, expanded) {
|
622
|
-
// Find the closest .list-pf-item of the expansion, and set its "active" class
|
623
|
-
if (expanded) {
|
624
|
-
$listItem.addClass('active');
|
625
|
-
} else {
|
626
|
-
$listItem.removeClass('active');
|
627
|
-
}
|
628
|
-
}
|
629
|
-
|
630
|
-
function updateChevron ($expansion, expanded) {
|
631
|
-
var $chevron = $expansion.find('.list-pf-chevron .fa').first();
|
632
|
-
if (expanded) {
|
633
|
-
$chevron.removeClass('fa-angle-right');
|
634
|
-
$chevron.addClass('fa-angle-down');
|
635
|
-
} else {
|
636
|
-
$chevron.addClass('fa-angle-right');
|
637
|
-
$chevron.removeClass('fa-angle-down');
|
638
|
-
}
|
639
|
-
}
|
640
|
-
|
641
|
-
init(this);
|
642
|
-
|
643
|
-
return this;
|
644
|
-
};
|
645
|
-
}(jQuery));
|
646
|
-
|
647
|
-
// Util: PatternFly Sidebar
|
648
|
-
// Set height of sidebar-pf to height of document minus height of navbar-pf if not mobile
|
649
|
-
(function ($) {
|
650
|
-
'use strict';
|
651
|
-
$.fn.sidebar = function () {
|
652
|
-
var documentHeight = 0,
|
653
|
-
navbarpfHeight = 0,
|
654
|
-
colHeight = 0;
|
655
|
-
|
656
|
-
if ($('.navbar-pf .navbar-toggle').is(':hidden')) {
|
657
|
-
documentHeight = $(document).height();
|
658
|
-
navbarpfHeight = $('.navbar-pf').outerHeight();
|
659
|
-
colHeight = documentHeight - navbarpfHeight;
|
660
|
-
}
|
661
|
-
$('.sidebar-pf').parent('.row').children('[class*="col-"]').css({"min-height" : colHeight});
|
662
|
-
};
|
663
|
-
|
664
|
-
$(document).ready(function () {
|
665
|
-
// Call sidebar() on ready if .sidebar-pf exists and .datatable does not exist
|
666
|
-
if ($('.sidebar-pf').length > 0 && $('.datatable').length === 0) {
|
667
|
-
$.fn.sidebar();
|
668
|
-
}
|
669
|
-
});
|
670
|
-
|
671
|
-
$(window).on('resize', function () {
|
672
|
-
// Call sidebar() on resize if .sidebar-pf exists
|
673
|
-
if ($('.sidebar-pf').length > 0) {
|
674
|
-
$.fn.sidebar();
|
675
|
-
}
|
676
|
-
});
|
677
|
-
}(jQuery));
|
678
|
-
|
679
|
-
// Util: PatternFly Popovers
|
680
|
-
// Add data-close="true" to insert close X icon
|
681
|
-
(function ($) {
|
682
|
-
'use strict';
|
683
|
-
|
684
|
-
$.fn.popovers = function () {
|
685
|
-
// Initialize
|
686
|
-
this.popover();
|
687
|
-
|
688
|
-
// Add close icons
|
689
|
-
this.filter('[data-close=true]').each(function (index, element) {
|
690
|
-
var $this = $(element),
|
691
|
-
title = $this.attr('data-original-title') + '<button type="button" class="close" aria-hidden="true"><span class="pficon pficon-close"></span></button>';
|
692
|
-
|
693
|
-
$this.attr('data-original-title', title);
|
694
|
-
});
|
695
|
-
|
696
|
-
// Bind Close Icon to Toggle Display
|
697
|
-
this.on('click', function (e) {
|
698
|
-
var $this = $(this),
|
699
|
-
$title = $this.next('.popover').find('.popover-title');
|
700
|
-
|
701
|
-
// Only if data-close is true add class "x" to title for right padding
|
702
|
-
$title.find('.close').parent('.popover-title').addClass('closable');
|
703
|
-
|
704
|
-
// Bind x icon to close popover
|
705
|
-
$title.find('.close').on('click', function () {
|
706
|
-
$this.popover('hide');
|
707
|
-
});
|
708
|
-
|
709
|
-
// Prevent href="#" page scroll to top
|
710
|
-
e.preventDefault();
|
711
|
-
});
|
712
|
-
|
713
|
-
return this;
|
714
|
-
};
|
715
|
-
}(jQuery));
|
716
|
-
|
717
|
-
// Util: DataTables Settings
|
718
|
-
(function ($) {
|
719
|
-
'use strict';
|
720
|
-
if ($.fn.dataTableExt) {
|
721
|
-
/* Set the defaults for DataTables initialisation */
|
722
|
-
$.extend(true, $.fn.dataTable.defaults, {
|
723
|
-
"bDestroy": true,
|
724
|
-
"bAutoWidth": false,
|
725
|
-
"iDisplayLength": 20,
|
726
|
-
"sDom":
|
727
|
-
"<'dataTables_header' f i r >" +
|
728
|
-
"<'table-responsive' t >" +
|
729
|
-
"<'dataTables_footer' p >",
|
730
|
-
"oLanguage": {
|
731
|
-
"sInfo": "Showing <b>_START_</b> to <b>_END_</b> of <b>_TOTAL_</b> Items",
|
732
|
-
"sInfoFiltered" : "(of <b>_MAX_</b>)",
|
733
|
-
"sInfoEmpty" : "Showing <b>0</b> Results",
|
734
|
-
"sZeroRecords":
|
735
|
-
"<p>Suggestions</p>" +
|
736
|
-
"<ul>" +
|
737
|
-
"<li>Check the javascript regular expression syntax of the search term.</li>" +
|
738
|
-
"<li>Check that the correct menu option is chosen (token ID vs. user ID).</li>" +
|
739
|
-
"<li>Use wildcards (* to match 0 or more characters, + to match 1 or more characters, ? to match 0 or 1 character).</li>" +
|
740
|
-
"<li>Clear the search field, then click Search to return to the 20 most recent records.</li>" +
|
741
|
-
"</ul>",
|
742
|
-
"sSearch": ""
|
743
|
-
},
|
744
|
-
"sPaginationType": "bootstrap_input",
|
745
|
-
"oSearch": {
|
746
|
-
"sSearch": "",
|
747
|
-
"bRegex": true,
|
748
|
-
"bSmart": false
|
749
|
-
}
|
750
|
-
});
|
751
|
-
|
752
|
-
/* Default class modification */
|
753
|
-
$.extend($.fn.dataTableExt.oStdClasses, {
|
754
|
-
"sWrapper": "dataTables_wrapper"
|
755
|
-
});
|
756
|
-
|
757
|
-
/* API method to get paging information */
|
758
|
-
$.fn.dataTableExt.oApi.fnPagingInfo = function (oSettings) {
|
759
|
-
return {
|
760
|
-
"iStart": oSettings._iDisplayStart,
|
761
|
-
"iEnd": oSettings.fnDisplayEnd(),
|
762
|
-
"iLength": oSettings._iDisplayLength,
|
763
|
-
"iTotal": oSettings.fnRecordsTotal(),
|
764
|
-
"iFilteredTotal": oSettings.fnRecordsDisplay(),
|
765
|
-
"iPage": oSettings._iDisplayLength === -1 ? 0 : Math.ceil(oSettings._iDisplayStart / oSettings._iDisplayLength),
|
766
|
-
"iTotalPages": oSettings._iDisplayLength === -1 ? 0 : Math.ceil(oSettings.fnRecordsDisplay() / oSettings._iDisplayLength)
|
767
|
-
};
|
768
|
-
};
|
769
|
-
|
770
|
-
/* Combination of Bootstrap + Input Text style pagination control */
|
771
|
-
$.extend($.fn.dataTableExt.oPagination, {
|
772
|
-
"bootstrap_input": {
|
773
|
-
"fnInit": function (oSettings, nPaging, fnDraw) {
|
774
|
-
var fnClickHandler = function (e) {
|
775
|
-
e.preventDefault();
|
776
|
-
if (oSettings.oApi._fnPageChange(oSettings, e.data.action)) {
|
777
|
-
fnDraw(oSettings);
|
778
|
-
}
|
779
|
-
},
|
780
|
-
els,
|
781
|
-
nInput;
|
782
|
-
|
783
|
-
$(nPaging).append(
|
784
|
-
'<ul class="pagination">' +
|
785
|
-
' <li class="first disabled"><span class="i fa fa-angle-double-left"></span></li>' +
|
786
|
-
' <li class="prev disabled"><span class="i fa fa-angle-left"></span></li>' +
|
787
|
-
'</ul>' +
|
788
|
-
'<div class="pagination-input">' +
|
789
|
-
' <input type="text" class="paginate_input">' +
|
790
|
-
' <span class="paginate_of">of <b>3</b></span>' +
|
791
|
-
'</div>' +
|
792
|
-
'<ul class="pagination">' +
|
793
|
-
' <li class="next disabled"><span class="i fa fa-angle-right"></span></li>' +
|
794
|
-
' <li class="last disabled"><span class="i fa fa-angle-double-right"></span></li>' +
|
795
|
-
'</ul>'
|
796
|
-
);
|
797
|
-
|
798
|
-
els = $('li', nPaging);
|
799
|
-
$(els[0]).bind('click.DT', { action: "first" }, fnClickHandler);
|
800
|
-
$(els[1]).bind('click.DT', { action: "previous" }, fnClickHandler);
|
801
|
-
$(els[2]).bind('click.DT', { action: "next" }, fnClickHandler);
|
802
|
-
$(els[3]).bind('click.DT', { action: "last" }, fnClickHandler);
|
803
|
-
|
804
|
-
nInput = $('input', nPaging);
|
805
|
-
$(nInput).keyup(function (e) {
|
806
|
-
var iNewStart;
|
807
|
-
if (e.which === 38 || e.which === 39) {
|
808
|
-
this.value += 1;
|
809
|
-
} else if ((e.which === 37 || e.which === 40) && this.value > 1) {
|
810
|
-
this.value -= 1;
|
811
|
-
}
|
812
|
-
|
813
|
-
if (this.value === "" || !this.value.match(/[0-9]/)) {
|
814
|
-
/* Nothing entered or non-numeric character */
|
815
|
-
return;
|
816
|
-
}
|
817
|
-
|
818
|
-
iNewStart = oSettings._iDisplayLength * (this.value - 1);
|
819
|
-
if (iNewStart >= oSettings.fnRecordsDisplay()) {
|
820
|
-
/* Display overrun */
|
821
|
-
oSettings._iDisplayStart = (Math.ceil((oSettings.fnRecordsDisplay() - 1) /
|
822
|
-
oSettings._iDisplayLength) - 1) * oSettings._iDisplayLength;
|
823
|
-
fnDraw(oSettings);
|
824
|
-
return;
|
825
|
-
}
|
826
|
-
|
827
|
-
oSettings._iDisplayStart = iNewStart;
|
828
|
-
fnDraw(oSettings);
|
829
|
-
});
|
830
|
-
},
|
831
|
-
|
832
|
-
"fnUpdate": function (oSettings, fnDraw) {
|
833
|
-
var oPaging = oSettings.oInstance.fnPagingInfo(),
|
834
|
-
an = oSettings.aanFeatures.p,
|
835
|
-
ien = an.length,
|
836
|
-
iPages = Math.ceil((oSettings.fnRecordsDisplay()) / oSettings._iDisplayLength),
|
837
|
-
iCurrentPage = Math.ceil(oSettings._iDisplayStart / oSettings._iDisplayLength) + 1,
|
838
|
-
i;
|
839
|
-
|
840
|
-
for (i = 0; i < ien; i += 1) {
|
841
|
-
$('.paginate_input', an[i]).val(iCurrentPage)
|
842
|
-
.siblings('.paginate_of').find('b').html(iPages);
|
843
|
-
|
844
|
-
// Add / remove disabled classes from the static elements
|
845
|
-
if (oPaging.iPage === 0) {
|
846
|
-
$('li.first', an[i]).addClass('disabled');
|
847
|
-
$('li.prev', an[i]).addClass('disabled');
|
848
|
-
} else {
|
849
|
-
$('li.first', an[i]).removeClass('disabled');
|
850
|
-
$('li.prev', an[i]).removeClass('disabled');
|
851
|
-
}
|
852
|
-
|
853
|
-
if (oPaging.iPage === oPaging.iTotalPages - 1 || oPaging.iTotalPages === 0) {
|
854
|
-
$('li.next', an[i]).addClass('disabled');
|
855
|
-
$('li.last', an[i]).addClass('disabled');
|
856
|
-
} else {
|
857
|
-
$('li.next', an[i]).removeClass('disabled');
|
858
|
-
$('li.last', an[i]).removeClass('disabled');
|
859
|
-
}
|
860
|
-
}
|
861
|
-
}
|
862
|
-
}
|
863
|
-
});
|
864
|
-
}
|
865
|
-
}(jQuery));
|
866
|
-
|
867
|
-
// Util: PatternFly Collapsible Left Hand Navigation
|
868
|
-
// Must have navbar-toggle in navbar-pf-alt for expand/collapse
|
869
|
-
(function ($) {
|
870
|
-
|
871
|
-
'use strict';
|
872
|
-
|
873
|
-
$.fn.navigation = function () {
|
874
|
-
|
875
|
-
var navElement = $('.layout-pf-alt-fixed .nav-pf-vertical-alt'),
|
876
|
-
bodyContentElement = $('.container-pf-alt-nav-pf-vertical-alt'),
|
877
|
-
toggleNavBarButton = $('.navbar-toggle'),
|
878
|
-
explicitCollapse = false,
|
879
|
-
checkNavState = function () {
|
880
|
-
var width = $(window).width();
|
881
|
-
|
882
|
-
//Always remove the hidden & peek class
|
883
|
-
navElement.removeClass('hidden show-mobile-nav collapsed');
|
884
|
-
|
885
|
-
//Set the body class back to the default
|
886
|
-
bodyContentElement.removeClass('collapsed-nav hidden-nav');
|
887
|
-
|
888
|
-
// Check to see if the nav needs to collapse
|
889
|
-
if (width < $.pfBreakpoints.desktop || explicitCollapse) {
|
890
|
-
navElement.addClass('collapsed');
|
891
|
-
bodyContentElement.addClass('collapsed-nav');
|
892
|
-
}
|
893
|
-
|
894
|
-
// Check to see if we need to move down to the mobile state
|
895
|
-
if (width < $.pfBreakpoints.tablet) {
|
896
|
-
//Set the nav to being hidden
|
897
|
-
navElement.addClass('hidden');
|
898
|
-
|
899
|
-
//Make sure this is expanded
|
900
|
-
navElement.removeClass('collapsed');
|
901
|
-
|
902
|
-
//Set the body class to the correct state
|
903
|
-
bodyContentElement.removeClass('collapsed-nav');
|
904
|
-
bodyContentElement.addClass('hidden-nav');
|
905
|
-
}
|
906
|
-
},
|
907
|
-
collapseMenu = function () {
|
908
|
-
//Make sure this is expanded
|
909
|
-
navElement.addClass('collapsed');
|
910
|
-
//Set the body class to the correct state
|
911
|
-
bodyContentElement.addClass('collapsed-nav');
|
912
|
-
|
913
|
-
explicitCollapse = true;
|
914
|
-
},
|
915
|
-
enableTransitions = function () {
|
916
|
-
// enable transitions only when toggleNavBarButton is clicked or window is resized
|
917
|
-
$('html').addClass('transitions');
|
918
|
-
},
|
919
|
-
expandMenu = function () {
|
920
|
-
//Make sure this is expanded
|
921
|
-
navElement.removeClass('collapsed');
|
922
|
-
//Set the body class to the correct state
|
923
|
-
bodyContentElement.removeClass('collapsed-nav');
|
924
|
-
|
925
|
-
explicitCollapse = false;
|
926
|
-
},
|
927
|
-
bindMenuBehavior = function () {
|
928
|
-
toggleNavBarButton.on('click', function (e) {
|
929
|
-
var inMobileState = bodyContentElement.hasClass('hidden-nav');
|
930
|
-
enableTransitions();
|
931
|
-
|
932
|
-
if (inMobileState && navElement.hasClass('show-mobile-nav')) {
|
933
|
-
//In mobile state just need to hide the nav
|
934
|
-
navElement.removeClass('show-mobile-nav');
|
935
|
-
} else if (inMobileState) {
|
936
|
-
navElement.addClass('show-mobile-nav');
|
937
|
-
} else if (navElement.hasClass('collapsed')) {
|
938
|
-
expandMenu();
|
939
|
-
} else {
|
940
|
-
collapseMenu();
|
941
|
-
}
|
942
|
-
});
|
943
|
-
},
|
944
|
-
setTooltips = function () {
|
945
|
-
$('.nav-pf-vertical-alt [data-toggle="tooltip"]').tooltip({'container': 'body', 'delay': { 'show': '500', 'hide': '200' }});
|
946
|
-
|
947
|
-
$(".nav-pf-vertical-alt").on("show.bs.tooltip", function (e) {
|
948
|
-
return $(this).hasClass("collapsed");
|
949
|
-
});
|
950
|
-
|
951
|
-
},
|
952
|
-
init = function () {
|
953
|
-
//Set correct state on load
|
954
|
-
checkNavState();
|
955
|
-
|
956
|
-
// Bind Top level hamburger menu with menu behavior;
|
957
|
-
bindMenuBehavior();
|
958
|
-
|
959
|
-
//Set tooltips
|
960
|
-
setTooltips();
|
961
|
-
};
|
962
|
-
|
963
|
-
//Listen for the window resize event and collapse/hide as needed
|
964
|
-
$(window).on('resize', function () {
|
965
|
-
checkNavState();
|
966
|
-
enableTransitions();
|
967
|
-
});
|
968
|
-
|
969
|
-
init();
|
970
|
-
|
971
|
-
};
|
972
|
-
|
973
|
-
$(document).ready(function () {
|
974
|
-
if ($('.nav-pf-vertical-alt').length > 0) {
|
975
|
-
$.fn.navigation();
|
976
|
-
}
|
977
|
-
});
|
978
|
-
|
979
|
-
}(jQuery));
|
980
|
-
|
981
|
-
// Count and Display Remaining Characters
|
982
|
-
(function ($) {
|
983
|
-
|
984
|
-
'use strict';
|
985
|
-
|
986
|
-
$.fn.countRemainingChars = function (options) {
|
987
|
-
|
988
|
-
var settings = $.extend({
|
989
|
-
// These are the defaults.
|
990
|
-
charsMaxLimit: 100,
|
991
|
-
charsWarnRemaining: 5,
|
992
|
-
blockInputAtMaxLimit: false
|
993
|
-
}, options),
|
994
|
-
$taFld = this,
|
995
|
-
$countFld = $('#' + settings.countFld).text(settings.charsMaxLimit),
|
996
|
-
charsRemainingFn = function (charsLength) {
|
997
|
-
var charsRemaining = settings.charsMaxLimit - charsLength;
|
998
|
-
$countFld.text(charsRemaining);
|
999
|
-
$countFld.toggleClass('chars-warn-remaining-pf', charsRemaining <= settings.charsWarnRemaining);
|
1000
|
-
if (charsRemaining < 0) {
|
1001
|
-
$taFld.trigger("overCharsMaxLimitEvent", $taFld.attr('id'));
|
1002
|
-
} else {
|
1003
|
-
$taFld.trigger("underCharsMaxLimitEvent", $taFld.attr('id'));
|
1004
|
-
}
|
1005
|
-
};
|
1006
|
-
|
1007
|
-
this.on('paste', function (event) {
|
1008
|
-
setTimeout(function () {
|
1009
|
-
var charsLength = $taFld.val().length, maxTxt;
|
1010
|
-
|
1011
|
-
if (settings.blockInputAtMaxLimit && charsLength > settings.charsMaxLimit) {
|
1012
|
-
maxTxt = $taFld.val();
|
1013
|
-
maxTxt = maxTxt.substring(0, settings.charsMaxLimit);
|
1014
|
-
$taFld.val(maxTxt);
|
1015
|
-
charsLength = $taFld.val().length;
|
1016
|
-
}
|
1017
|
-
|
1018
|
-
charsRemainingFn(charsLength);
|
1019
|
-
}, 100);
|
1020
|
-
});
|
1021
|
-
|
1022
|
-
this.keyup(function (event) {
|
1023
|
-
charsRemainingFn($taFld.val().length);
|
1024
|
-
});
|
1025
|
-
|
1026
|
-
this.keydown(function (event) {
|
1027
|
-
var charsLength = $taFld.val().length;
|
1028
|
-
|
1029
|
-
if (settings.blockInputAtMaxLimit && charsLength >= settings.charsMaxLimit) {
|
1030
|
-
// Except backspace
|
1031
|
-
if (event.keyCode !== 8) {
|
1032
|
-
event.preventDefault();
|
1033
|
-
}
|
1034
|
-
}
|
1035
|
-
});
|
1036
|
-
|
1037
|
-
return this;
|
1038
|
-
};
|
1039
|
-
}(jQuery));
|
1040
|
-
|
1041
|
-
// Util: PatternFly Palette colors
|
1042
|
-
(function ($) {
|
1043
|
-
'use strict';
|
1044
|
-
|
1045
|
-
if (patternfly !== undefined) {
|
1046
|
-
$.pfPaletteColors = patternfly.pfPaletteColors;
|
1047
|
-
}
|
1048
|
-
}(jQuery));
|
1049
|
-
|
1050
|
-
// Util: PatternFly C3 Chart Defaults
|
1051
|
-
(function ($) {
|
1052
|
-
'use strict';
|
1053
|
-
if (patternfly !== undefined) {
|
1054
|
-
$.fn.pfSetDonutChartTitle = patternfly.pfSetDonutChartTitle;
|
1055
|
-
$.fn.pfDonutTooltipContents = patternfly.pfDonutTooltipContents;
|
1056
|
-
$.fn.pfGetUtilizationDonutTooltipContentsFn = patternfly.pfGetUtilizationDonutTooltipContentsFn;
|
1057
|
-
$.fn.pfGetBarChartTooltipContentsFn = patternfly.pfGetBarChartTooltipContentsFn;
|
1058
|
-
$.fn.pfSingleLineChartTooltipContentsFn = patternfly.pfSingleLineChartTooltipContentsFn;
|
1059
|
-
$.fn.pfPieTooltipContents = patternfly.pfPieTooltipContents;
|
1060
|
-
$.fn.c3ChartDefaults = patternfly.c3ChartDefaults;
|
1061
|
-
}
|
1062
|
-
}(jQuery));
|
1063
|
-
|
1064
|
-
// Util: PatternFly Collapse with fixed heights
|
1065
|
-
// Update the max-height of collapse elements based on the parent container's height.
|
1066
|
-
(function ($) {
|
1067
|
-
'use strict';
|
1068
|
-
|
1069
|
-
$.fn.initCollapseHeights = function (scrollSelector) {
|
1070
|
-
var parentElement = this, setCollapseHeights, targetScrollSelector = scrollSelector;
|
1071
|
-
|
1072
|
-
setCollapseHeights = function () {
|
1073
|
-
var height, openPanel, contentHeight, bodyHeight, overflowY = 'hidden';
|
1074
|
-
|
1075
|
-
height = parentElement.height();
|
1076
|
-
|
1077
|
-
// Close any open panel
|
1078
|
-
openPanel = parentElement.find('.collapse.in');
|
1079
|
-
if (openPanel && openPanel.length > 0) {
|
1080
|
-
openPanel.removeClass('in');
|
1081
|
-
}
|
1082
|
-
|
1083
|
-
// Determine the necessary height for the closed content
|
1084
|
-
contentHeight = 0;
|
1085
|
-
parentElement.children().each($.proxy(function (i, element) {
|
1086
|
-
var $element = $(element);
|
1087
|
-
contentHeight += $element.outerHeight(true);
|
1088
|
-
}, parentElement)).end();
|
1089
|
-
|
1090
|
-
// Determine the height remaining for opened collapse panels
|
1091
|
-
bodyHeight = height - contentHeight;
|
1092
|
-
|
1093
|
-
// Make sure we have enough height to be able to scroll the contents if necessary
|
1094
|
-
if (bodyHeight < 25) {
|
1095
|
-
bodyHeight = 25;
|
1096
|
-
|
1097
|
-
// Allow the parent to scroll so the child elements are accessible
|
1098
|
-
overflowY = 'auto';
|
1099
|
-
}
|
1100
|
-
|
1101
|
-
// Reopen the initially opened panel
|
1102
|
-
if (openPanel && openPanel.length > 0) {
|
1103
|
-
openPanel.addClass("in");
|
1104
|
-
}
|
1105
|
-
|
1106
|
-
setTimeout(function () {
|
1107
|
-
// Set the max-height for the collapse panels
|
1108
|
-
parentElement.find('[data-toggle="collapse"]').each($.proxy(function (i, element) {
|
1109
|
-
var $element, selector, $target, scrollElement, innerHeight = 0;
|
1110
|
-
$element = $(element);
|
1111
|
-
|
1112
|
-
// Determine the selector to find the target
|
1113
|
-
selector = $element.attr('data-target');
|
1114
|
-
if (!selector) {
|
1115
|
-
selector = $element.attr('href');
|
1116
|
-
}
|
1117
|
-
|
1118
|
-
// Determine the scroll element (either the target or the child of the target based on the given selector)
|
1119
|
-
$target = $(selector);
|
1120
|
-
scrollElement = $target;
|
1121
|
-
if (targetScrollSelector) {
|
1122
|
-
scrollElement = $target.find(targetScrollSelector);
|
1123
|
-
if (scrollElement.length === 1) {
|
1124
|
-
innerHeight = 0;
|
1125
|
-
$target.children().each($.proxy(function (j, sibling) {
|
1126
|
-
var $sibling = $(sibling);
|
1127
|
-
if (sibling !== scrollElement[0]) {
|
1128
|
-
innerHeight += $sibling.outerHeight(true);
|
1129
|
-
}
|
1130
|
-
}, $target)).end();
|
1131
|
-
bodyHeight -= innerHeight;
|
1132
|
-
} else {
|
1133
|
-
scrollElement = $target;
|
1134
|
-
}
|
1135
|
-
}
|
1136
|
-
// Set the max-height and vertical scroll of the scroll element
|
1137
|
-
scrollElement.css({'max-height': (bodyHeight - innerHeight) + 'px', 'overflow-y': 'auto'});
|
1138
|
-
}, parentElement)).end();
|
1139
|
-
|
1140
|
-
parentElement.css({'overflow-y': overflowY});
|
1141
|
-
}, 100);
|
1142
|
-
};
|
1143
|
-
|
1144
|
-
setCollapseHeights();
|
1145
|
-
|
1146
|
-
// Update on window resizing
|
1147
|
-
$(window).on('resize', setCollapseHeights);
|
1148
|
-
|
1149
|
-
};
|
1150
|
-
|
1151
|
-
$.fn.initFixedAccordion = function () {
|
1152
|
-
var fixedAccordion = this, initOpen;
|
1153
|
-
|
1154
|
-
fixedAccordion.on('show.bs.collapse','.collapse', function (event) {
|
1155
|
-
$(event.target.parentNode).addClass('panel-open');
|
1156
|
-
});
|
1157
|
-
|
1158
|
-
fixedAccordion.on('hide.bs.collapse','.collapse', function (event) {
|
1159
|
-
$(event.target.parentNode).removeClass('panel-open');
|
1160
|
-
});
|
1161
|
-
|
1162
|
-
fixedAccordion.find('.panel').each(function (index, item) {
|
1163
|
-
$(item).removeClass('panel-open');
|
1164
|
-
});
|
1165
|
-
|
1166
|
-
initOpen = $(fixedAccordion.find('.collapse.in'))[0];
|
1167
|
-
if (initOpen) {
|
1168
|
-
$(initOpen.parentNode).addClass('panel-open');
|
1169
|
-
}
|
1170
|
-
};
|
1171
|
-
|
1172
|
-
}(jQuery));
|
1173
|
-
|
1174
|
-
// Util: PatternFly TreeGrid Tables
|
1175
|
-
(function ($) {
|
1176
|
-
'use strict';
|
1177
|
-
|
1178
|
-
function getParent (rows, node) {
|
1179
|
-
var parent = node.attr('data-parent');
|
1180
|
-
|
1181
|
-
if (typeof parent === "string") {
|
1182
|
-
if (isNaN(parent)) {
|
1183
|
-
parent = $(parent);
|
1184
|
-
if (parent.length > 1) {
|
1185
|
-
parent = rows.closest(parent);
|
1186
|
-
}
|
1187
|
-
} else {
|
1188
|
-
parent = $(rows[parseInt(parent, 10)]);
|
1189
|
-
}
|
1190
|
-
return parent;
|
1191
|
-
}
|
1192
|
-
return undefined;
|
1193
|
-
}
|
1194
|
-
|
1195
|
-
function renderItem (item, parent) {
|
1196
|
-
if (parent) {
|
1197
|
-
parent.find('.treegrid-node > span.expand-icon')
|
1198
|
-
.toggleClass('fa-angle-right', parent.hasClass('collapsed'))
|
1199
|
-
.toggleClass('fa-angle-down', !parent.hasClass('collapsed'));
|
1200
|
-
item.toggleClass('hidden', parent.hasClass('collapsed'));
|
1201
|
-
if (parent.hasClass('collapsed')) {
|
1202
|
-
item.addClass('collapsed');
|
1203
|
-
}
|
1204
|
-
}
|
1205
|
-
}
|
1206
|
-
|
1207
|
-
function reStripe (tree) {
|
1208
|
-
tree.find('tbody > tr').removeClass('odd');
|
1209
|
-
tree.find('tbody > tr:not(.hidden):odd').addClass('odd');
|
1210
|
-
}
|
1211
|
-
|
1212
|
-
$.fn.treegrid = function (options) {
|
1213
|
-
var i, rows, _this;
|
1214
|
-
rows = this.find('tbody > tr');
|
1215
|
-
_this = this;
|
1216
|
-
$.each(rows, function () {
|
1217
|
-
var node, parent;
|
1218
|
-
node = $(this);
|
1219
|
-
parent = getParent(rows, node);
|
1220
|
-
// Append expand icon dummies
|
1221
|
-
node.children('.treegrid-node').prepend('<span class="icon expand-icon fa"/>');
|
1222
|
-
|
1223
|
-
// Set up an event listener for the node
|
1224
|
-
node.children('.treegrid-node').on('click', function (e) {
|
1225
|
-
var icon = node.find('span.expand-icon');
|
1226
|
-
|
1227
|
-
if (options && typeof options.callback === 'function') {
|
1228
|
-
options.callback(e);
|
1229
|
-
}
|
1230
|
-
|
1231
|
-
if (icon.hasClass('fa-angle-right')) {
|
1232
|
-
node.removeClass('collapsed');
|
1233
|
-
}
|
1234
|
-
if (icon.hasClass('fa-angle-down')) {
|
1235
|
-
node.addClass('collapsed');
|
1236
|
-
}
|
1237
|
-
$.each(rows.slice(rows.index(node) + 1), function () {
|
1238
|
-
renderItem($(this), getParent(rows, $(this)));
|
1239
|
-
});
|
1240
|
-
reStripe(_this);
|
1241
|
-
});
|
1242
|
-
|
1243
|
-
if (parent) {
|
1244
|
-
// Calculate indentation depth
|
1245
|
-
i = parent.find('.treegrid-node > span.indent').length + 1;
|
1246
|
-
for (; i > 0; i -= 1) {
|
1247
|
-
node.children('.treegrid-node').prepend('<span class="indent"/>');
|
1248
|
-
}
|
1249
|
-
// Render expand/collapse icons
|
1250
|
-
renderItem(node, parent);
|
1251
|
-
}
|
1252
|
-
});
|
1253
|
-
reStripe(_this);
|
1254
|
-
};
|
1255
|
-
}(jQuery));
|
1256
|
-
|
1257
|
-
// Util: PatternFly Vertical Navigation
|
1258
|
-
// Must have navbar-toggle in navbar-pf-vertical for expand/collapse
|
1259
|
-
(function ($) {
|
1260
|
-
'use strict';
|
1261
|
-
|
1262
|
-
$.fn.setupVerticalNavigation = function (handleItemSelections, ignoreDrawer, userOptions) {
|
1263
|
-
|
1264
|
-
var options = $.extend({
|
1265
|
-
hoverDelay: 500,
|
1266
|
-
hideDelay: 700,
|
1267
|
-
rememberOpenState: true,
|
1268
|
-
storage: 'localStorage',
|
1269
|
-
}, userOptions || {}),
|
1270
|
-
|
1271
|
-
navElement = $('.nav-pf-vertical'),
|
1272
|
-
bodyContentElement = $('.container-pf-nav-pf-vertical'),
|
1273
|
-
toggleNavBarButton = $('.navbar-toggle'),
|
1274
|
-
handleResize = true,
|
1275
|
-
explicitCollapse = false,
|
1276
|
-
subDesktop = false,
|
1277
|
-
storageLocation = options.storage === 'sessionStorage' ? 'sessionStorage' : 'localStorage',
|
1278
|
-
|
1279
|
-
inMobileState = function () {
|
1280
|
-
return bodyContentElement.hasClass('hidden-nav');
|
1281
|
-
},
|
1282
|
-
|
1283
|
-
forceResize = function (delay) {
|
1284
|
-
setTimeout(function () {
|
1285
|
-
$(window).trigger('resize');
|
1286
|
-
}, delay);
|
1287
|
-
},
|
1288
|
-
|
1289
|
-
showSecondaryMenu = function () {
|
1290
|
-
if (inMobileState() || !subDesktop) {
|
1291
|
-
navElement.addClass('secondary-visible-pf');
|
1292
|
-
bodyContentElement.addClass('secondary-visible-pf');
|
1293
|
-
}
|
1294
|
-
|
1295
|
-
// Dispatch a resize event when showing the secondary menu in non-subdesktop state to
|
1296
|
-
// allow content to adjust to the secondary menu sizing
|
1297
|
-
if (!subDesktop) {
|
1298
|
-
forceResize(100);
|
1299
|
-
}
|
1300
|
-
},
|
1301
|
-
|
1302
|
-
hideSecondaryMenu = function () {
|
1303
|
-
navElement.removeClass('secondary-visible-pf');
|
1304
|
-
bodyContentElement.removeClass('secondary-visible-pf');
|
1305
|
-
|
1306
|
-
if (navElement.find('.secondary-nav-item-pf.is-hover').length <= 1) {
|
1307
|
-
navElement.removeClass('hover-secondary-nav-pf');
|
1308
|
-
}
|
1309
|
-
|
1310
|
-
navElement.find('.mobile-nav-item-pf').each(function (index, item) {
|
1311
|
-
$(item).removeClass('mobile-nav-item-pf');
|
1312
|
-
});
|
1313
|
-
|
1314
|
-
navElement.find('.is-hover').each(function (index, item) {
|
1315
|
-
$(item).removeClass('is-hover');
|
1316
|
-
});
|
1317
|
-
},
|
1318
|
-
|
1319
|
-
hideTertiaryMenu = function () {
|
1320
|
-
navElement.removeClass('tertiary-visible-pf');
|
1321
|
-
bodyContentElement.removeClass('tertiary-visible-pf');
|
1322
|
-
|
1323
|
-
if (navElement.find('.tertiary-nav-item-pf.is-hover').length <= 1) {
|
1324
|
-
navElement.removeClass('hover-tertiary-nav-pf');
|
1325
|
-
}
|
1326
|
-
|
1327
|
-
navElement.find('.mobile-nav-item-pf').each(function (index, item) {
|
1328
|
-
$(item).removeClass('mobile-nav-item-pf');
|
1329
|
-
});
|
1330
|
-
|
1331
|
-
navElement.find('.is-hover').each(function (index, item) {
|
1332
|
-
$(item).removeClass('is-hover');
|
1333
|
-
});
|
1334
|
-
},
|
1335
|
-
|
1336
|
-
setActiveItem = function (item) {
|
1337
|
-
// remove all .active
|
1338
|
-
$('.nav-pf-vertical .list-group-item.active').removeClass('active');
|
1339
|
-
|
1340
|
-
// add .active to item and its parents
|
1341
|
-
item.addClass('active').parents('.list-group-item').addClass('active');
|
1342
|
-
},
|
1343
|
-
|
1344
|
-
updateSecondaryMenuDisplayAfterSelection = function () {
|
1345
|
-
if (inMobileState()) {
|
1346
|
-
navElement.removeClass('show-mobile-nav');
|
1347
|
-
hideSecondaryMenu();
|
1348
|
-
navElement.find('.mobile-nav-item-pf').each(function (index, item) {
|
1349
|
-
$(item).removeClass('mobile-nav-item-pf');
|
1350
|
-
});
|
1351
|
-
} else {
|
1352
|
-
showSecondaryMenu();
|
1353
|
-
}
|
1354
|
-
},
|
1355
|
-
|
1356
|
-
updateSecondaryCollapsedState = function (setCollapsed, collapsedItem) {
|
1357
|
-
if (setCollapsed) {
|
1358
|
-
collapsedItem.addClass('collapsed');
|
1359
|
-
navElement.addClass('collapsed-secondary-nav-pf');
|
1360
|
-
bodyContentElement.addClass('collapsed-secondary-nav-pf');
|
1361
|
-
} else {
|
1362
|
-
if (collapsedItem) {
|
1363
|
-
collapsedItem.removeClass('collapsed');
|
1364
|
-
} else {
|
1365
|
-
// Remove any collapsed secondary menus
|
1366
|
-
navElement.find('[data-toggle="collapse-secondary-nav"]').each(function (index, element) {
|
1367
|
-
var $e = $(element);
|
1368
|
-
$e.removeClass('collapsed');
|
1369
|
-
});
|
1370
|
-
}
|
1371
|
-
navElement.removeClass('collapsed-secondary-nav-pf');
|
1372
|
-
bodyContentElement.removeClass('collapsed-secondary-nav-pf');
|
1373
|
-
}
|
1374
|
-
},
|
1375
|
-
|
1376
|
-
updateTertiaryCollapsedState = function (setCollapsed, collapsedItem) {
|
1377
|
-
if (setCollapsed) {
|
1378
|
-
collapsedItem.addClass('collapsed');
|
1379
|
-
navElement.addClass('collapsed-tertiary-nav-pf');
|
1380
|
-
bodyContentElement.addClass('collapsed-tertiary-nav-pf');
|
1381
|
-
updateSecondaryCollapsedState(false);
|
1382
|
-
} else {
|
1383
|
-
if (collapsedItem) {
|
1384
|
-
collapsedItem.removeClass('collapsed');
|
1385
|
-
} else {
|
1386
|
-
// Remove any collapsed tertiary menus
|
1387
|
-
navElement.find('[data-toggle="collapse-tertiary-nav"]').each(function (index, element) {
|
1388
|
-
var $e = $(element);
|
1389
|
-
$e.removeClass('collapsed');
|
1390
|
-
});
|
1391
|
-
}
|
1392
|
-
navElement.removeClass('collapsed-tertiary-nav-pf');
|
1393
|
-
bodyContentElement.removeClass('collapsed-tertiary-nav-pf');
|
1394
|
-
}
|
1395
|
-
},
|
1396
|
-
|
1397
|
-
updateMobileMenu = function (selected, secondaryItem) {
|
1398
|
-
$(document).find('.list-group-item.mobile-nav-item-pf').each(function (index, item) {
|
1399
|
-
$(item).removeClass('mobile-nav-item-pf');
|
1400
|
-
});
|
1401
|
-
$(document).find('.list-group-item.mobile-secondary-item-pf').each(function (index, item) {
|
1402
|
-
$(item).removeClass('mobile-secondary-item-pf');
|
1403
|
-
});
|
1404
|
-
if (selected) {
|
1405
|
-
selected.addClass('mobile-nav-item-pf');
|
1406
|
-
if (secondaryItem) {
|
1407
|
-
secondaryItem.addClass('mobile-secondary-item-pf');
|
1408
|
-
navElement.removeClass('show-mobile-secondary');
|
1409
|
-
navElement.addClass('show-mobile-tertiary');
|
1410
|
-
} else {
|
1411
|
-
navElement.addClass('show-mobile-secondary');
|
1412
|
-
navElement.removeClass('show-mobile-tertiary');
|
1413
|
-
}
|
1414
|
-
} else {
|
1415
|
-
navElement.removeClass('show-mobile-secondary');
|
1416
|
-
navElement.removeClass('show-mobile-tertiary');
|
1417
|
-
}
|
1418
|
-
},
|
1419
|
-
|
1420
|
-
enterMobileState = function () {
|
1421
|
-
if (!navElement.hasClass('hidden')) {
|
1422
|
-
//Set the nav to being hidden
|
1423
|
-
navElement.addClass('hidden');
|
1424
|
-
navElement.removeClass('collapsed');
|
1425
|
-
|
1426
|
-
//Set the body class to the correct state
|
1427
|
-
bodyContentElement.removeClass('collapsed-nav');
|
1428
|
-
bodyContentElement.addClass('hidden-nav');
|
1429
|
-
|
1430
|
-
// Reset the collapsed states
|
1431
|
-
updateSecondaryCollapsedState(false);
|
1432
|
-
updateTertiaryCollapsedState(false);
|
1433
|
-
|
1434
|
-
explicitCollapse = false;
|
1435
|
-
}
|
1436
|
-
},
|
1437
|
-
|
1438
|
-
exitMobileState = function () {
|
1439
|
-
// Always remove the hidden & peek class
|
1440
|
-
navElement.removeClass('hidden show-mobile-nav');
|
1441
|
-
|
1442
|
-
// Set the body class back to the default
|
1443
|
-
bodyContentElement.removeClass('hidden-nav');
|
1444
|
-
},
|
1445
|
-
|
1446
|
-
checkNavState = function () {
|
1447
|
-
var width = $(window).width(), makeSecondaryVisible;
|
1448
|
-
if (!handleResize) {
|
1449
|
-
return;
|
1450
|
-
}
|
1451
|
-
// Check to see if we need to enter/exit the mobile state
|
1452
|
-
if (width < $.pfBreakpoints.tablet && !explicitCollapse) {
|
1453
|
-
enterMobileState();
|
1454
|
-
} else if (navElement.hasClass('hidden')) {
|
1455
|
-
exitMobileState();
|
1456
|
-
}
|
1457
|
-
|
1458
|
-
// Check to see if we need to enter/exit the sub desktop state
|
1459
|
-
if (width < $.pfBreakpoints.desktop) {
|
1460
|
-
if (!subDesktop) {
|
1461
|
-
// Collapse the navigation bars when entering sub desktop mode
|
1462
|
-
navElement.addClass('collapsed');
|
1463
|
-
bodyContentElement.addClass('collapsed-nav');
|
1464
|
-
}
|
1465
|
-
if (width >= $.pfBreakpoints.tablet) {
|
1466
|
-
hideSecondaryMenu();
|
1467
|
-
}
|
1468
|
-
subDesktop = true;
|
1469
|
-
} else {
|
1470
|
-
makeSecondaryVisible = subDesktop && (navElement.find('.secondary-nav-item-pf.active').length > 0);
|
1471
|
-
subDesktop = false;
|
1472
|
-
if (makeSecondaryVisible) {
|
1473
|
-
|
1474
|
-
showSecondaryMenu();
|
1475
|
-
}
|
1476
|
-
}
|
1477
|
-
|
1478
|
-
if (explicitCollapse) {
|
1479
|
-
navElement.addClass('collapsed');
|
1480
|
-
bodyContentElement.addClass('collapsed-nav');
|
1481
|
-
} else {
|
1482
|
-
navElement.removeClass('collapsed');
|
1483
|
-
bodyContentElement.removeClass('collapsed-nav');
|
1484
|
-
}
|
1485
|
-
},
|
1486
|
-
|
1487
|
-
collapseMenu = function () {
|
1488
|
-
//Make sure this is expanded
|
1489
|
-
navElement.addClass('collapsed');
|
1490
|
-
//Set the body class to the correct state
|
1491
|
-
bodyContentElement.addClass('collapsed-nav');
|
1492
|
-
|
1493
|
-
if (subDesktop) {
|
1494
|
-
hideSecondaryMenu();
|
1495
|
-
}
|
1496
|
-
|
1497
|
-
explicitCollapse = true;
|
1498
|
-
},
|
1499
|
-
|
1500
|
-
enableTransitions = function () {
|
1501
|
-
// enable transitions only when toggleNavBarButton is clicked or window is resized
|
1502
|
-
$('html').addClass('transitions');
|
1503
|
-
},
|
1504
|
-
|
1505
|
-
expandMenu = function () {
|
1506
|
-
//Make sure this is expanded
|
1507
|
-
navElement.removeClass('collapsed');
|
1508
|
-
//Set the body class to the correct state
|
1509
|
-
bodyContentElement.removeClass('collapsed-nav');
|
1510
|
-
|
1511
|
-
explicitCollapse = false;
|
1512
|
-
|
1513
|
-
// Dispatch a resize event when showing the expanding then menu to
|
1514
|
-
// allow content to adjust to the menu sizing
|
1515
|
-
if (!subDesktop) {
|
1516
|
-
forceResize(100);
|
1517
|
-
}
|
1518
|
-
},
|
1519
|
-
|
1520
|
-
bindMenuBehavior = function () {
|
1521
|
-
toggleNavBarButton.on('click', function (e) {
|
1522
|
-
var $drawer;
|
1523
|
-
|
1524
|
-
enableTransitions();
|
1525
|
-
|
1526
|
-
if (inMobileState()) {
|
1527
|
-
// Toggle the mobile nav
|
1528
|
-
if (navElement.hasClass('show-mobile-nav')) {
|
1529
|
-
navElement.removeClass('show-mobile-nav');
|
1530
|
-
} else {
|
1531
|
-
// Always start at the primary menu
|
1532
|
-
updateMobileMenu();
|
1533
|
-
navElement.addClass('show-mobile-nav');
|
1534
|
-
|
1535
|
-
// If the notification drawer is shown, hide it
|
1536
|
-
if (!ignoreDrawer) {
|
1537
|
-
$drawer = $('.drawer-pf');
|
1538
|
-
if ($drawer.length) {
|
1539
|
-
$('.drawer-pf-trigger').removeClass('open');
|
1540
|
-
$drawer.addClass('hide');
|
1541
|
-
}
|
1542
|
-
}
|
1543
|
-
}
|
1544
|
-
} else if (navElement.hasClass('collapsed')) {
|
1545
|
-
if (options.rememberOpenState) {
|
1546
|
-
window[storageLocation].setItem('patternfly-navigation-primary', 'expanded');
|
1547
|
-
}
|
1548
|
-
expandMenu();
|
1549
|
-
} else {
|
1550
|
-
if (options.rememberOpenState) {
|
1551
|
-
window[storageLocation].setItem('patternfly-navigation-primary', 'collapsed');
|
1552
|
-
}
|
1553
|
-
collapseMenu();
|
1554
|
-
}
|
1555
|
-
});
|
1556
|
-
},
|
1557
|
-
|
1558
|
-
forceHideSecondaryMenu = function () {
|
1559
|
-
navElement.addClass('force-hide-secondary-nav-pf');
|
1560
|
-
setTimeout(function () {
|
1561
|
-
navElement.removeClass('force-hide-secondary-nav-pf');
|
1562
|
-
}, 500);
|
1563
|
-
},
|
1564
|
-
|
1565
|
-
bindMenuItemsBehavior = function (handleSelection) {
|
1566
|
-
$(document).find('.nav-pf-vertical .list-group-item').each(function (index, item) {
|
1567
|
-
var onClickFn,
|
1568
|
-
$item = $(item),
|
1569
|
-
$nav = $item.closest('[class*="nav-pf-"]');
|
1570
|
-
|
1571
|
-
if ($nav.hasClass('nav-pf-vertical')) {
|
1572
|
-
// Set main nav active item on click or show secondary nav if it has a secondary nav bar and we are in the mobile state
|
1573
|
-
onClickFn = function (event) {
|
1574
|
-
var $this = $(this), $secondaryItem, $tertiaryItem, $activeItem;
|
1575
|
-
|
1576
|
-
if (!$this.hasClass('secondary-nav-item-pf')) {
|
1577
|
-
hideSecondaryMenu();
|
1578
|
-
if (inMobileState()) {
|
1579
|
-
updateMobileMenu();
|
1580
|
-
navElement.removeClass('show-mobile-nav');
|
1581
|
-
}
|
1582
|
-
if (handleSelection) {
|
1583
|
-
setActiveItem($this);
|
1584
|
-
// Don't process the click on the item
|
1585
|
-
event.stopImmediatePropagation();
|
1586
|
-
}
|
1587
|
-
} else if (inMobileState()) {
|
1588
|
-
updateMobileMenu($this);
|
1589
|
-
} else if (handleSelection) {
|
1590
|
-
$activeItem = $secondaryItem = $item.find('.nav-pf-secondary-nav > .list-group > .list-group-item').eq(0);
|
1591
|
-
|
1592
|
-
if ($secondaryItem.hasClass('tertiary-nav-item-pf')) {
|
1593
|
-
$activeItem = $secondaryItem.find('.nav-pf-tertiary-nav > .list-group > .list-group-item').eq(0);
|
1594
|
-
}
|
1595
|
-
|
1596
|
-
setActiveItem($activeItem);
|
1597
|
-
event.stopImmediatePropagation();
|
1598
|
-
}
|
1599
|
-
};
|
1600
|
-
|
1601
|
-
} else if ($nav.hasClass('nav-pf-secondary-nav')) {
|
1602
|
-
// Set secondary nav active item on click or show tertiary nav if it has a tertiary nav bar and we are in the mobile state
|
1603
|
-
onClickFn = function (event) {
|
1604
|
-
var $this = $(this), $tertiaryItem, $primaryItem;
|
1605
|
-
if (!$this.hasClass('tertiary-nav-item-pf')) {
|
1606
|
-
if (inMobileState()) {
|
1607
|
-
updateMobileMenu();
|
1608
|
-
navElement.removeClass('show-mobile-nav');
|
1609
|
-
}
|
1610
|
-
updateSecondaryMenuDisplayAfterSelection();
|
1611
|
-
if (handleSelection) {
|
1612
|
-
setActiveItem($item);
|
1613
|
-
hideSecondaryMenu();
|
1614
|
-
event.stopImmediatePropagation();
|
1615
|
-
}
|
1616
|
-
} else if (inMobileState()) {
|
1617
|
-
$primaryItem = $item.parents('.list-group-item');
|
1618
|
-
updateMobileMenu($this, $primaryItem);
|
1619
|
-
event.stopImmediatePropagation();
|
1620
|
-
} else if (handleSelection) {
|
1621
|
-
$tertiaryItem = $item.find('.nav-pf-tertiary-nav > .list-group > .list-group-item').eq(0);
|
1622
|
-
setActiveItem($tertiaryItem);
|
1623
|
-
event.stopImmediatePropagation();
|
1624
|
-
}
|
1625
|
-
};
|
1626
|
-
|
1627
|
-
} else if ($nav.hasClass('nav-pf-tertiary-nav')) {
|
1628
|
-
// Set tertiary nav active item on click
|
1629
|
-
onClickFn = function (event) {
|
1630
|
-
if (inMobileState()) {
|
1631
|
-
updateMobileMenu();
|
1632
|
-
navElement.removeClass('show-mobile-nav');
|
1633
|
-
}
|
1634
|
-
updateSecondaryMenuDisplayAfterSelection();
|
1635
|
-
if (handleSelection) {
|
1636
|
-
setActiveItem($item);
|
1637
|
-
hideTertiaryMenu();
|
1638
|
-
hideSecondaryMenu();
|
1639
|
-
event.stopImmediatePropagation();
|
1640
|
-
}
|
1641
|
-
};
|
1642
|
-
}
|
1643
|
-
|
1644
|
-
// register event handler
|
1645
|
-
$item.on('click.pf.secondarynav.data-api', onClickFn);
|
1646
|
-
});
|
1647
|
-
|
1648
|
-
$(document).find('.secondary-nav-item-pf').each(function (index, secondaryItem) {
|
1649
|
-
var $secondaryItem = $(secondaryItem);
|
1650
|
-
|
1651
|
-
// Collapse the secondary nav bar when the toggle is clicked
|
1652
|
-
$secondaryItem.on('click.pf.secondarynav.data-api', '[data-toggle="collapse-secondary-nav"]', function (e) {
|
1653
|
-
var $this = $(this);
|
1654
|
-
if (inMobileState()) {
|
1655
|
-
updateMobileMenu();
|
1656
|
-
e.stopImmediatePropagation();
|
1657
|
-
} else {
|
1658
|
-
if ($this.hasClass('collapsed')) {
|
1659
|
-
if (options.rememberOpenState) {
|
1660
|
-
window[storageLocation].setItem('patternfly-navigation-secondary', 'expanded');
|
1661
|
-
window[storageLocation].setItem('patternfly-navigation-tertiary', 'expanded');
|
1662
|
-
}
|
1663
|
-
updateSecondaryCollapsedState(false, $this);
|
1664
|
-
forceHideSecondaryMenu();
|
1665
|
-
} else {
|
1666
|
-
if (options.rememberOpenState) {
|
1667
|
-
window[storageLocation].setItem('patternfly-navigation-secondary', 'collapsed');
|
1668
|
-
}
|
1669
|
-
updateSecondaryCollapsedState(true, $this);
|
1670
|
-
}
|
1671
|
-
}
|
1672
|
-
navElement.removeClass('hover-secondary-nav-pf');
|
1673
|
-
if (handleSelection) {
|
1674
|
-
// Don't process the click on the parent item
|
1675
|
-
e.stopImmediatePropagation();
|
1676
|
-
}
|
1677
|
-
});
|
1678
|
-
|
1679
|
-
$secondaryItem.find('.tertiary-nav-item-pf').each(function (index, primaryItem) {
|
1680
|
-
var $primaryItem = $(primaryItem);
|
1681
|
-
// Collapse the tertiary nav bar when the toggle is clicked
|
1682
|
-
$primaryItem.on('click.pf.tertiarynav.data-api', '[data-toggle="collapse-tertiary-nav"]', function (e) {
|
1683
|
-
var $this = $(this);
|
1684
|
-
if (inMobileState()) {
|
1685
|
-
updateMobileMenu($secondaryItem);
|
1686
|
-
e.stopImmediatePropagation();
|
1687
|
-
} else {
|
1688
|
-
if ($this.hasClass('collapsed')) {
|
1689
|
-
if (options.rememberOpenState) {
|
1690
|
-
window[storageLocation].setItem('patternfly-navigation-secondary', 'expanded');
|
1691
|
-
window[storageLocation].setItem('patternfly-navigation-tertiary', 'expanded');
|
1692
|
-
}
|
1693
|
-
updateTertiaryCollapsedState(false, $this);
|
1694
|
-
forceHideSecondaryMenu();
|
1695
|
-
} else {
|
1696
|
-
if (options.rememberOpenState) {
|
1697
|
-
window[storageLocation].setItem('patternfly-navigation-tertiary', 'collapsed');
|
1698
|
-
}
|
1699
|
-
updateTertiaryCollapsedState(true, $this);
|
1700
|
-
}
|
1701
|
-
}
|
1702
|
-
navElement.removeClass('hover-secondary-nav-pf');
|
1703
|
-
navElement.removeClass('hover-tertiary-nav-pf');
|
1704
|
-
if (handleSelection) {
|
1705
|
-
// Don't process the click on the parent item
|
1706
|
-
e.stopImmediatePropagation();
|
1707
|
-
}
|
1708
|
-
});
|
1709
|
-
});
|
1710
|
-
});
|
1711
|
-
|
1712
|
-
// Show secondary nav bar on hover of secondary nav items
|
1713
|
-
$(document).on('mouseenter.pf.tertiarynav.data-api', '.secondary-nav-item-pf', function (e) {
|
1714
|
-
var $this = $(this);
|
1715
|
-
if (!inMobileState()) {
|
1716
|
-
if ($this[0].navUnHoverTimeout !== undefined) {
|
1717
|
-
clearTimeout($this[0].navUnHoverTimeout);
|
1718
|
-
$this[0].navUnHoverTimeout = undefined;
|
1719
|
-
} else if ($this[0].navHoverTimeout === undefined) {
|
1720
|
-
$this[0].navHoverTimeout = setTimeout(function () {
|
1721
|
-
navElement.addClass('hover-secondary-nav-pf');
|
1722
|
-
$this.addClass('is-hover');
|
1723
|
-
$this[0].navHoverTimeout = undefined;
|
1724
|
-
}, options.hoverDelay);
|
1725
|
-
}
|
1726
|
-
}
|
1727
|
-
});
|
1728
|
-
|
1729
|
-
$(document).on('mouseleave.pf.tertiarynav.data-api', '.secondary-nav-item-pf', function (e) {
|
1730
|
-
var $this = $(this);
|
1731
|
-
if ($this[0].navHoverTimeout !== undefined) {
|
1732
|
-
clearTimeout($this[0].navHoverTimeout);
|
1733
|
-
$this[0].navHoverTimeout = undefined;
|
1734
|
-
} else if ($this[0].navUnHoverTimeout === undefined &&
|
1735
|
-
navElement.find('.secondary-nav-item-pf.is-hover').length > 0) {
|
1736
|
-
$this[0].navUnHoverTimeout = setTimeout(function () {
|
1737
|
-
if (navElement.find('.secondary-nav-item-pf.is-hover').length <= 1) {
|
1738
|
-
navElement.removeClass('hover-secondary-nav-pf');
|
1739
|
-
}
|
1740
|
-
$this.removeClass('is-hover');
|
1741
|
-
$this[0].navUnHoverTimeout = undefined;
|
1742
|
-
}, options.hideDelay);
|
1743
|
-
}
|
1744
|
-
});
|
1745
|
-
|
1746
|
-
// Show tertiary nav bar on hover of secondary nav items
|
1747
|
-
$(document).on('mouseover.pf.tertiarynav.data-api', '.tertiary-nav-item-pf', function (e) {
|
1748
|
-
var $this = $(this);
|
1749
|
-
if (!inMobileState()) {
|
1750
|
-
if ($this[0].navUnHoverTimeout !== undefined) {
|
1751
|
-
clearTimeout($this[0].navUnHoverTimeout);
|
1752
|
-
$this[0].navUnHoverTimeout = undefined;
|
1753
|
-
} else if ($this[0].navHoverTimeout === undefined) {
|
1754
|
-
$this[0].navHoverTimeout = setTimeout(function () {
|
1755
|
-
navElement.addClass('hover-tertiary-nav-pf');
|
1756
|
-
$this.addClass('is-hover');
|
1757
|
-
$this[0].navHoverTimeout = undefined;
|
1758
|
-
}, options.hoverDelay);
|
1759
|
-
}
|
1760
|
-
}
|
1761
|
-
});
|
1762
|
-
$(document).on('mouseout.pf.tertiarynav.data-api', '.tertiary-nav-item-pf', function (e) {
|
1763
|
-
var $this = $(this);
|
1764
|
-
if ($this[0].navHoverTimeout !== undefined) {
|
1765
|
-
clearTimeout($this[0].navHoverTimeout);
|
1766
|
-
$this[0].navHoverTimeout = undefined;
|
1767
|
-
} else if ($this[0].navUnHoverTimeout === undefined) {
|
1768
|
-
$this[0].navUnHoverTimeout = setTimeout(function () {
|
1769
|
-
if (navElement.find('.tertiary-nav-item-pf.is-hover').length <= 1) {
|
1770
|
-
navElement.removeClass('hover-tertiary-nav-pf');
|
1771
|
-
}
|
1772
|
-
$this.removeClass('is-hover');
|
1773
|
-
$this[0].navUnHoverTimeout = undefined;
|
1774
|
-
}, options.hideDelay);
|
1775
|
-
}
|
1776
|
-
});
|
1777
|
-
},
|
1778
|
-
|
1779
|
-
loadFromLocalStorage = function () {
|
1780
|
-
if (inMobileState()) {
|
1781
|
-
return;
|
1782
|
-
}
|
1783
|
-
|
1784
|
-
if (window[storageLocation].getItem('patternfly-navigation-primary') === 'collapsed') {
|
1785
|
-
collapseMenu();
|
1786
|
-
}
|
1787
|
-
|
1788
|
-
if ($('.nav-pf-vertical.nav-pf-vertical-collapsible-menus').length > 0) {
|
1789
|
-
if (window[storageLocation].getItem('patternfly-navigation-secondary') === 'collapsed') {
|
1790
|
-
updateSecondaryCollapsedState(true, $('.secondary-nav-item-pf.active [data-toggle=collapse-secondary-nav]'));
|
1791
|
-
}
|
1792
|
-
|
1793
|
-
if (window[storageLocation].getItem('patternfly-navigation-tertiary') === 'collapsed') {
|
1794
|
-
updateTertiaryCollapsedState(true, $('.tertiary-nav-item-pf.active [data-toggle=collapse-tertiary-nav]'));
|
1795
|
-
}
|
1796
|
-
}
|
1797
|
-
},
|
1798
|
-
|
1799
|
-
setTooltips = function () {
|
1800
|
-
var tooltipOptions = {
|
1801
|
-
container: 'body',
|
1802
|
-
placement: 'bottom',
|
1803
|
-
delay: { 'show': '500', 'hide': '200' },
|
1804
|
-
template: '<div class="nav-pf-vertical-tooltip tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>'
|
1805
|
-
};
|
1806
|
-
$('.nav-pf-vertical [data-toggle="tooltip"]').tooltip(tooltipOptions);
|
1807
|
-
|
1808
|
-
$('.nav-pf-vertical').on("show.bs.tooltip", function (e) {
|
1809
|
-
return $(this).hasClass("collapsed");
|
1810
|
-
});
|
1811
|
-
},
|
1812
|
-
|
1813
|
-
init = function (handleItemSelections) {
|
1814
|
-
// Hide the nav menus during initialization
|
1815
|
-
navElement.addClass('hide-nav-pf');
|
1816
|
-
bodyContentElement.addClass('hide-nav-pf');
|
1817
|
-
|
1818
|
-
//Set correct state on load
|
1819
|
-
checkNavState();
|
1820
|
-
|
1821
|
-
// Bind Top level hamburger menu with menu behavior;
|
1822
|
-
bindMenuBehavior();
|
1823
|
-
|
1824
|
-
// Bind menu items
|
1825
|
-
bindMenuItemsBehavior(handleItemSelections);
|
1826
|
-
|
1827
|
-
//Set tooltips
|
1828
|
-
setTooltips();
|
1829
|
-
|
1830
|
-
if (options.rememberOpenState) {
|
1831
|
-
loadFromLocalStorage();
|
1832
|
-
}
|
1833
|
-
|
1834
|
-
// Show the nav menus
|
1835
|
-
navElement.removeClass('hide-nav-pf');
|
1836
|
-
bodyContentElement.removeClass('hide-nav-pf');
|
1837
|
-
forceResize(250);
|
1838
|
-
},
|
1839
|
-
|
1840
|
-
self = {
|
1841
|
-
hideMenu: function () {
|
1842
|
-
handleResize = false;
|
1843
|
-
enterMobileState();
|
1844
|
-
},
|
1845
|
-
showMenu: function () {
|
1846
|
-
handleResize = true;
|
1847
|
-
exitMobileState();
|
1848
|
-
},
|
1849
|
-
isVisible: function () {
|
1850
|
-
return handleResize;
|
1851
|
-
}
|
1852
|
-
};
|
1853
|
-
|
1854
|
-
if (!$.fn.setupVerticalNavigation.self) {
|
1855
|
-
$.fn.setupVerticalNavigation.self = self;
|
1856
|
-
//Listen for the window resize event and collapse/hide as needed
|
1857
|
-
$(window).on('resize', function () {
|
1858
|
-
checkNavState();
|
1859
|
-
enableTransitions();
|
1860
|
-
});
|
1861
|
-
|
1862
|
-
init(handleItemSelections);
|
1863
|
-
}
|
1864
|
-
return $.fn.setupVerticalNavigation.self;
|
1865
|
-
};
|
1866
|
-
}(jQuery));
|