patternfly-sass 3.0.0 → 3.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +7 -0
  3. data/README.md +1 -0
  4. data/assets/javascripts/patternfly.js +378 -0
  5. data/assets/javascripts/patternfly.min.js +1 -1
  6. data/assets/stylesheets/_patternfly.scss +2 -0
  7. data/assets/stylesheets/patternfly/_footer.scss +5 -5
  8. data/assets/stylesheets/patternfly/_layouts.scss +68 -3
  9. data/assets/stylesheets/patternfly/_navbar-vertical.scss +136 -0
  10. data/assets/stylesheets/patternfly/_tables.scss +20 -0
  11. data/assets/stylesheets/patternfly/_variables.scss +94 -31
  12. data/assets/stylesheets/patternfly/_vertical-nav.scss +428 -0
  13. data/assets/stylesheets/patternfly/lib/bootstrap-select.scss +7 -7
  14. data/bower.json +2 -2
  15. data/lib/patternfly-sass/version.rb +2 -2
  16. data/spec/html/basic.html +7 -0
  17. data/spec/html/bootstrap-treeview-2.html +7 -0
  18. data/spec/html/cards.html +7 -0
  19. data/spec/html/dashboard.html +7 -0
  20. data/spec/html/dist/css/patternfly-additions.css +562 -2
  21. data/spec/html/dist/css/patternfly-additions.css.map +1 -1
  22. data/spec/html/dist/css/patternfly-additions.min.css +1 -1
  23. data/spec/html/dist/css/patternfly-additions.min.css.map +1 -1
  24. data/spec/html/dist/css/patternfly.css +18 -0
  25. data/spec/html/dist/css/patternfly.css.map +1 -1
  26. data/spec/html/dist/css/patternfly.min.css +3 -3
  27. data/spec/html/dist/css/patternfly.min.css.map +1 -1
  28. data/spec/html/form.html +7 -0
  29. data/spec/html/index.html +6 -0
  30. data/spec/html/layout-alt-fixed-inner-scroll.html +7 -0
  31. data/spec/html/layout-alt-fixed-with-footer-inner-scroll.html +7 -0
  32. data/spec/html/layout-alt-fixed-with-footer.html +7 -0
  33. data/spec/html/layout-alt-fixed.html +7 -0
  34. data/spec/html/list-view.html +2 -2
  35. data/spec/html/login.html +8 -0
  36. data/spec/html/tab.html +7 -0
  37. data/spec/html/tables.html +127 -0
  38. data/spec/html/typography-2.html +8 -0
  39. data/spec/html/vertical-navigation-without-icons.html +960 -0
  40. data/spec/html/vertical-navigation.html +960 -0
  41. metadata +8 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 58c6d102392b6e513098148fcc73bd4f03a4c3f6
4
- data.tar.gz: 86383ba8678b30649d3502f5a4b150317d2ea98c
3
+ metadata.gz: d6304c067481013f946c6396e99076af23ddaa74
4
+ data.tar.gz: a6a17ea1b028bf92483cc9b37bdc355adb2bf803
5
5
  SHA512:
6
- metadata.gz: c5c233e2b80c73bb1eeb8805557ef40a5990bdb67271f8838e2c23fe3dddaa3950c137a41dac22a05728f68c006ac3096f7cd4342daf047e0ecb1958521a9dac
7
- data.tar.gz: 88309304d5f98b827cb18b255cd2ff2ec986e23b0e1900c9df84690a465d8a25fa0f5a402fbfa1f70b7cff3aecb731c19846eb6c452bf5387ad6289af903dc00
6
+ metadata.gz: 6c1b5b6f88c644c6fecb826490ce428d1bda9cf3cb7b522168c8bb627e6f5bd216a94ba01b9864a8a3925aa4b7f6aa337b47369c2d7f10de9f580d86eab343f5
7
+ data.tar.gz: c178211cd8acd0d4e8831834878f417e7473e7fa1de7000cb88cd1266e22398ab6fe39973f26b3798b75857a3ff1b7f15847ae2021067bfd9f4a14abb1e22878
@@ -29,3 +29,10 @@ matrix:
29
29
  fast_finish: true
30
30
  allow_failures:
31
31
  - env: TOLERANCE=0.00
32
+ notifications:
33
+ webhooks:
34
+ urls:
35
+ - https://webhooks.gitter.im/e/1184f6f283ba9823f662
36
+ on_success: change
37
+ on_failure: always
38
+ on_start: never
data/README.md CHANGED
@@ -3,6 +3,7 @@
3
3
  [![Gem Version](https://badge.fury.io/rb/patternfly-sass.svg)](http://badge.fury.io/rb/patternfly-sass)
4
4
  [![Dependency Status](https://gemnasium.com/patternfly/patternfly-sass.svg)](https://gemnasium.com/patternfly/patternfly-sass)
5
5
  [![Build Status](https://travis-ci.org/patternfly/patternfly-sass.svg)](https://travis-ci.org/patternfly/patternfly-sass)
6
+ [![Chat](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/patternfly/patternfly-sass?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
6
7
 
7
8
  `patternfly-sass` is a Sass-powered version of [PatternFly](http://github.com/patternfly/patternfly), ready to drop right into your Sass powered applications.
8
9
 
@@ -600,3 +600,381 @@
600
600
  };
601
601
  }(jQuery));
602
602
 
603
+ // Util: PatternFly TreeGrid Tables
604
+ (function ($) {
605
+ 'use strict';
606
+
607
+ function getParent(rows, node) {
608
+ var parent = node.attr('data-parent');
609
+
610
+ if (typeof parent === "string") {
611
+ if (isNaN(parent)) {
612
+ parent = rows.closest(parent);
613
+ } else {
614
+ parent = $(rows[parseInt(parent, 10)]);
615
+ }
616
+ return parent;
617
+ }
618
+ }
619
+
620
+ function renderItem(item, parent) {
621
+ if (parent) {
622
+ parent.find('.treegrid-node > span.expand-icon')
623
+ .toggleClass('fa-angle-right', parent.hasClass('collapsed'))
624
+ .toggleClass('fa-angle-down', !parent.hasClass('collapsed'));
625
+ item.toggleClass('hidden', parent.hasClass('collapsed'));
626
+ if (parent.hasClass('collapsed')) {
627
+ item.addClass('collapsed');
628
+ }
629
+ }
630
+ }
631
+
632
+ function reStripe(tree) {
633
+ tree.find('tbody > tr').removeClass('odd');
634
+ tree.find('tbody > tr:not(.hidden):odd').addClass('odd');
635
+ }
636
+
637
+ $.fn.treegrid = function (options) {
638
+ var i, rows, _this;
639
+ rows = this.find('tbody > tr');
640
+ _this = this;
641
+ $.each(rows, function () {
642
+ var node, parent;
643
+ node = $(this);
644
+ parent = getParent(rows, node);
645
+ // Append expand icon dummies
646
+ node.children('.treegrid-node').prepend('<span class="icon expand-icon fa"/>');
647
+
648
+ // Set up an event listener for the node
649
+ node.children('.treegrid-node').on('click', function (e) {
650
+ var icon = node.find('span.expand-icon');
651
+ if (icon.hasClass('fa-angle-right')) {
652
+ node.removeClass('collapsed');
653
+ }
654
+ if (icon.hasClass('fa-angle-down')) {
655
+ node.addClass('collapsed');
656
+ }
657
+ $.each(rows.slice(rows.index(node) + 1), function () {
658
+ renderItem($(this), getParent(rows, $(this)));
659
+ });
660
+ reStripe(_this);
661
+ });
662
+
663
+ if (parent) {
664
+ // Calculate indentation depth
665
+ i = parent.find('.treegrid-node > span.indent').length + 1;
666
+ for (i; i > 0; i -= 1) {
667
+ node.children('.treegrid-node').prepend('<span class="indent"/>');
668
+ }
669
+ // Render expand/collapse icons
670
+ renderItem(node, parent);
671
+ }
672
+ });
673
+ reStripe(_this);
674
+ };
675
+ }(jQuery));
676
+
677
+ // Util: PatternFly Collapsible Vertical Navigation
678
+ // Must have navbar-toggle in navbar-pf-vertical for expand/collapse
679
+ (function ($) {
680
+ 'use strict';
681
+
682
+ $.fn.setupVerticalNavigation = function (handleItemSelections) {
683
+
684
+ var navElement = $('.nav-pf-vertical'),
685
+ bodyContentElement = $('.container-pf-nav-pf-vertical'),
686
+ toggleNavBarButton = $('.navbar-toggle'),
687
+ explicitCollapse = false,
688
+ subDesktop = false,
689
+ breakpoints = {
690
+ 'tablet': 768,
691
+ 'desktop': 1200
692
+ },
693
+
694
+ inMobileState = function () {
695
+ return bodyContentElement.hasClass('hidden-nav');
696
+ },
697
+
698
+ forceResize = function () {
699
+ setTimeout(function () {
700
+ if (window.dispatchEvent) {
701
+ window.dispatchEvent(new Event('resize'));
702
+ }
703
+ // Special case for IE
704
+ if ($(document).fireEvent) {
705
+ $(document).fireEvent('onresize');
706
+ }
707
+ }, 100);
708
+ },
709
+
710
+ showSecondaryMenu = function () {
711
+ if (inMobileState() || !subDesktop) {
712
+ navElement.addClass('secondary-visible-pf');
713
+ bodyContentElement.addClass('secondary-visible-pf');
714
+ }
715
+
716
+ // Dispatch a resize event when showing the secondary menu in non-subdesktop state to
717
+ // allow content to adjust to the secondary menu sizing
718
+ if (!subDesktop) {
719
+ forceResize();
720
+ }
721
+ },
722
+
723
+ hideSecondaryMenu = function () {
724
+ navElement.removeClass('secondary-visible-pf');
725
+ bodyContentElement.removeClass('secondary-visible-pf');
726
+ navElement.find('.mobile-nav-item-pf').each(function (index, item) {
727
+ $(item).removeClass('mobile-nav-item-pf');
728
+ });
729
+ },
730
+
731
+ showSecondaryMenuForItem = function (item) {
732
+ if (item.find('.nav-pf-persistent-secondary').length > 0) {
733
+ showSecondaryMenu();
734
+ } else {
735
+ hideSecondaryMenu();
736
+ navElement.removeClass('show-mobile-nav');
737
+ }
738
+ },
739
+
740
+ setActiveItem = function (item) {
741
+ // Make the clicked on item active
742
+ $(document).find('.nav-pf-vertical > .list-group > .list-group-item').each(function (index, element) {
743
+ if ($(element).hasClass('active')) {
744
+ $(element).removeClass('active');
745
+ }
746
+ });
747
+ if (!item.hasClass('active')) {
748
+ item.addClass('active');
749
+ }
750
+ },
751
+
752
+ setSecondaryActiveItem = function ($parent, item) {
753
+ var parentItem = $(document).find('[data-target="#' + $parent.attr('id') + '"]');
754
+
755
+ $parent.find('.list-group > .list-group-item').each(function (index, element) {
756
+ $(element).removeClass('active');
757
+ });
758
+ item.addClass('active');
759
+
760
+ setActiveItem($(parentItem));
761
+ },
762
+
763
+ updateSecondaryMenuDisplayAfterSelection = function () {
764
+ if (inMobileState()) {
765
+ navElement.removeClass('show-mobile-nav');
766
+ hideSecondaryMenu();
767
+ navElement.find('.mobile-nav-item-pf').each(function (index, item) {
768
+ $(item).removeClass('mobile-nav-item-pf');
769
+ });
770
+ }
771
+ },
772
+
773
+ checkNavState = function () {
774
+ var width = $(window).width(), makeSecondaryVisible;
775
+
776
+ // Check to see if we need to enter/exit the mobile state
777
+ if (width < breakpoints.tablet) {
778
+ if (!navElement.hasClass('hidden')) {
779
+ //Set the nav to being hidden
780
+ navElement.addClass('hidden');
781
+ navElement.removeClass('collapsed');
782
+
783
+ //Set the body class to the correct state
784
+ bodyContentElement.removeClass('collapsed-nav');
785
+ bodyContentElement.addClass('hidden-nav');
786
+
787
+ explicitCollapse = false;
788
+ }
789
+ } else if (navElement.hasClass('hidden')) {
790
+ // Always remove the hidden & peek class
791
+ navElement.removeClass('hidden show-mobile-nav');
792
+
793
+ // Set the body class back to the default
794
+ bodyContentElement.removeClass('hidden-nav');
795
+ }
796
+
797
+ // Check to see if we need to enter/exit the sub desktop state
798
+ if (width < breakpoints.desktop) {
799
+ if (!subDesktop) {
800
+ // Collapse the navigation bars when entering sub desktop mode
801
+ navElement.addClass('collapsed');
802
+ bodyContentElement.addClass('collapsed-nav');
803
+ }
804
+ if (width >= breakpoints.tablet) {
805
+ hideSecondaryMenu();
806
+ }
807
+ subDesktop = true;
808
+ } else {
809
+ makeSecondaryVisible = subDesktop && (navElement.find('.persistent-secondary.active').length > 0);
810
+ subDesktop = false;
811
+ if (makeSecondaryVisible) {
812
+ showSecondaryMenu();
813
+ }
814
+ }
815
+
816
+ if (explicitCollapse) {
817
+ navElement.addClass('collapsed');
818
+ bodyContentElement.addClass('collapsed-nav');
819
+ } else {
820
+ navElement.removeClass('collapsed');
821
+ bodyContentElement.removeClass('collapsed-nav');
822
+ }
823
+ },
824
+
825
+ collapseMenu = function () {
826
+ //Make sure this is expanded
827
+ navElement.addClass('collapsed');
828
+ //Set the body class to the correct state
829
+ bodyContentElement.addClass('collapsed-nav');
830
+
831
+ if (subDesktop) {
832
+ hideSecondaryMenu();
833
+ }
834
+
835
+ explicitCollapse = true;
836
+ },
837
+
838
+ enableTransitions = function () {
839
+ // enable transitions only when toggleNavBarButton is clicked or window is resized
840
+ $('html').addClass('transitions');
841
+ },
842
+
843
+ expandMenu = function () {
844
+ //Make sure this is expanded
845
+ navElement.removeClass('collapsed');
846
+ //Set the body class to the correct state
847
+ bodyContentElement.removeClass('collapsed-nav');
848
+
849
+ explicitCollapse = false;
850
+
851
+ // Dispatch a resize event when showing the expanding then menu to
852
+ // allow content to adjust to the menu sizing
853
+ if (!subDesktop) {
854
+ forceResize();
855
+ }
856
+ },
857
+
858
+ bindMenuBehavior = function () {
859
+ toggleNavBarButton.on('click', function (e) {
860
+ enableTransitions();
861
+
862
+ if (inMobileState()) {
863
+ // Toggle the mobile nav
864
+ if (navElement.hasClass('show-mobile-nav')) {
865
+ navElement.removeClass('show-mobile-nav');
866
+ } else {
867
+ // Always start at the primary menu
868
+ hideSecondaryMenu();
869
+ navElement.addClass('show-mobile-nav');
870
+ }
871
+ } else if (navElement.hasClass('collapsed')) {
872
+ expandMenu();
873
+ } else {
874
+ collapseMenu();
875
+ }
876
+ });
877
+ },
878
+
879
+ bindMenuItemsBehavior = function (handleSelection) {
880
+ // Set main nav active item on click, and show secondary nav if it has a secondary nav bar
881
+ $(document).on('click.pf.secondarynav.data-api', '.nav-pf-vertical > .list-group > .list-group-item', function (element) {
882
+ var $this = $(this);
883
+
884
+ showSecondaryMenuForItem($this);
885
+
886
+ if (inMobileState()) {
887
+ if ($this.find('.nav-pf-persistent-secondary').length > 0) {
888
+ $this.addClass('mobile-nav-item-pf');
889
+ } else if (handleSelection) {
890
+ setActiveItem($this);
891
+ }
892
+ } else if (handleSelection) {
893
+ setActiveItem($this);
894
+ }
895
+ });
896
+
897
+ // Set secondary menu click handlers
898
+ $(document).find('.nav-pf-persistent-secondary').each(function (index, element) {
899
+ var $e = $(element);
900
+
901
+ // Ignore clicks that are not handled
902
+ if (handleSelection) {
903
+ $e.on('click.pf.secondarynav.data-api', function (event) {
904
+ // Don't process the click on the parent item
905
+ event.stopImmediatePropagation();
906
+ });
907
+ }
908
+
909
+ // Set the active items on an item click
910
+ $e.on('click.pf.secondarynav.data-api', '.list-group > .list-group-item', function (event) {
911
+ var $this = $(this);
912
+ updateSecondaryMenuDisplayAfterSelection($this);
913
+
914
+ if (handleSelection) {
915
+ setSecondaryActiveItem($e, $(this));
916
+ // Don't process the click on the parent item
917
+ event.stopImmediatePropagation();
918
+ }
919
+ });
920
+
921
+ // Collapse the secondary nav bar when the toggle is clicked
922
+ $e.on('click.pf.secondarynav.data-api', '[data-toggle="collapse-secondary-nav"]', function (e) {
923
+ hideSecondaryMenu();
924
+ navElement.removeClass('hover-secondary-nav-pf');
925
+ navElement.addClass('force-hide-secondary-nav-pf');
926
+ setTimeout(function () {
927
+ navElement.removeClass('force-hide-secondary-nav-pf');
928
+ }, 500);
929
+ if (handleSelection) {
930
+ // Don't process the click on the parent item
931
+ e.stopImmediatePropagation();
932
+ }
933
+ });
934
+ });
935
+
936
+ // Show secondary nav bar on hover of nav items
937
+ $(document).on('mouseover.pf.secondarynav.data-api', '.persistent-secondary', function (e) {
938
+ if (!inMobileState()) {
939
+ navElement.addClass('hover-secondary-nav-pf');
940
+ }
941
+ });
942
+ $(document).on('mouseout.pf.secondarynav.data-api', '.persistent-secondary', function (e) {
943
+ navElement.removeClass('hover-secondary-nav-pf');
944
+ });
945
+ },
946
+
947
+ setTooltips = function () {
948
+ $('.nav-pf-vertical [data-toggle="tooltip"]').tooltip({'container': 'body', 'delay': { 'show': '500', 'hide': '200' }});
949
+
950
+ $(".nav-pf-vertical").on("show.bs.tooltip", function (e) {
951
+ if (!$(this).hasClass("collapsed")) {
952
+ return false;
953
+ }
954
+ });
955
+ },
956
+
957
+ init = function (handleItemSelections) {
958
+ //Set correct state on load
959
+ checkNavState();
960
+
961
+ // Bind Top level hamburger menu with menu behavior;
962
+ bindMenuBehavior();
963
+
964
+ // Bind menu items
965
+ bindMenuItemsBehavior(handleItemSelections);
966
+
967
+ //Set tooltips
968
+ setTooltips();
969
+ };
970
+
971
+ //Listen for the window resize event and collapse/hide as needed
972
+ $(window).on('resize', function () {
973
+ checkNavState();
974
+ enableTransitions();
975
+ });
976
+
977
+ init(handleItemSelections);
978
+ };
979
+ }(jQuery));
980
+
@@ -1 +1 @@
1
- !function($){"use strict";$.fn.sidebar=function(){var documentHeight=0,navbarpfHeight=0,colHeight=0;$(".navbar-pf .navbar-toggle").is(":hidden")&&(documentHeight=$(document).height(),navbarpfHeight=$(".navbar-pf").outerHeight(),colHeight=documentHeight-navbarpfHeight),$(".sidebar-pf").parent(".row").children('[class*="col-"]').css({"min-height":colHeight})},$(document).ready(function(){$(".sidebar-pf").length>0&&0===$(".datatable").length&&$.fn.sidebar()}),$(window).resize(function(){$(".sidebar-pf").length>0&&$.fn.sidebar()})}(jQuery),function($){"use strict";$.fn.popovers=function(){return this.popover(),this.filter("[data-close=true]").each(function(index,element){var $this=$(element),title=$this.attr("data-original-title")+'<button type="button" class="close" aria-hidden="true"><span class="pficon pficon-close"></span></button>';$this.attr("data-original-title",title)}),this.on("click",function(e){var $this=$(this),$title=$this.next(".popover").find(".popover-title");$title.find(".close").parent(".popover-title").addClass("closable"),$title.find(".close").on("click",function(){$this.popover("hide")}),e.preventDefault()}),this}}(jQuery),function($){"use strict";$.fn.dataTableExt&&($.extend(!0,$.fn.dataTable.defaults,{bDestroy:!0,bAutoWidth:!1,iDisplayLength:20,sDom:"<'dataTables_header' f i r ><'table-responsive' t ><'dataTables_footer' p >",oLanguage:{sInfo:"Showing <b>_START_</b> to <b>_END_</b> of <b>_TOTAL_</b> Items",sInfoFiltered:"(of <b>_MAX_</b>)",sInfoEmpty:"Showing <b>0</b> Results",sZeroRecords:"<p>Suggestions</p><ul><li>Check the syntax of the search term.</li><li>Check that the correct menu option is chosen (token ID vs. user ID).</li><li>Use wildcards (* to match zero or more characters or ? to match a single character).</li><li>Clear the search field, then click Search to return to the 20 most recent records.</li></ul>",sSearch:""},sPaginationType:"bootstrap_input"}),$.extend($.fn.dataTableExt.oStdClasses,{sWrapper:"dataTables_wrapper"}),$.fn.dataTableExt.oApi.fnPagingInfo=function(oSettings){return{iStart:oSettings._iDisplayStart,iEnd:oSettings.fnDisplayEnd(),iLength:oSettings._iDisplayLength,iTotal:oSettings.fnRecordsTotal(),iFilteredTotal:oSettings.fnRecordsDisplay(),iPage:-1===oSettings._iDisplayLength?0:Math.ceil(oSettings._iDisplayStart/oSettings._iDisplayLength),iTotalPages:-1===oSettings._iDisplayLength?0:Math.ceil(oSettings.fnRecordsDisplay()/oSettings._iDisplayLength)}},$.extend($.fn.dataTableExt.oPagination,{bootstrap_input:{fnInit:function(oSettings,nPaging,fnDraw){var els,nInput,fnClickHandler=function(e){e.preventDefault(),oSettings.oApi._fnPageChange(oSettings,e.data.action)&&fnDraw(oSettings)};$(nPaging).append('<ul class="pagination"> <li class="first disabled"><span class="i fa fa-angle-double-left"></span></li> <li class="prev disabled"><span class="i fa fa-angle-left"></span></li></ul><div class="pagination-input"> <input type="text" class="paginate_input"> <span class="paginate_of">of <b>3</b></span></div><ul class="pagination"> <li class="next disabled"><span class="i fa fa-angle-right"></span></li> <li class="last disabled"><span class="i fa fa-angle-double-right"></span></li></ul>'),els=$("li",nPaging),$(els[0]).bind("click.DT",{action:"first"},fnClickHandler),$(els[1]).bind("click.DT",{action:"previous"},fnClickHandler),$(els[2]).bind("click.DT",{action:"next"},fnClickHandler),$(els[3]).bind("click.DT",{action:"last"},fnClickHandler),nInput=$("input",nPaging),$(nInput).keyup(function(e){if(38===e.which||39===e.which?this.value+=1:(37===e.which||40===e.which)&&this.value>1&&(this.value-=1),""!==this.value&&this.value.match(/[0-9]/)){var iNewStart=oSettings._iDisplayLength*(this.value-1);if(iNewStart>oSettings.fnRecordsDisplay())return oSettings._iDisplayStart=(Math.ceil((oSettings.fnRecordsDisplay()-1)/oSettings._iDisplayLength)-1)*oSettings._iDisplayLength,void fnDraw(oSettings);oSettings._iDisplayStart=iNewStart,fnDraw(oSettings)}})},fnUpdate:function(oSettings){var i,oPaging=oSettings.oInstance.fnPagingInfo(),an=oSettings.aanFeatures.p,ien=an.length,iPages=Math.ceil(oSettings.fnRecordsDisplay()/oSettings._iDisplayLength),iCurrentPage=Math.ceil(oSettings._iDisplayStart/oSettings._iDisplayLength)+1;for(i=0;ien>i;i+=1)$(".paginate_input").val(iCurrentPage),$(".paginate_of b").html(iPages),0===oPaging.iPage?($("li.first",an[i]).addClass("disabled"),$("li.prev",an[i]).addClass("disabled")):($("li.first",an[i]).removeClass("disabled"),$("li.prev",an[i]).removeClass("disabled")),oPaging.iPage===oPaging.iTotalPages-1||0===oPaging.iTotalPages?($("li.next",an[i]).addClass("disabled"),$("li.last",an[i]).addClass("disabled")):($("li.next",an[i]).removeClass("disabled"),$("li.last",an[i]).removeClass("disabled"))}}}))}(jQuery),function($){"use strict";$.fn.navigation=function(){var navElement=$(".layout-pf-alt-fixed .nav-pf-vertical-alt"),bodyContentElement=$(".container-pf-alt-nav-pf-vertical-alt"),toggleNavBarButton=$(".navbar-toggle"),explicitCollapse=!1,breakpoints={tablet:768,desktop:1024},checkNavState=function(){var width=$(window).width();navElement.removeClass("hidden show-mobile-nav collapsed"),bodyContentElement.removeClass("collapsed-nav hidden-nav"),(width<breakpoints.desktop||explicitCollapse)&&(navElement.addClass("collapsed"),bodyContentElement.addClass("collapsed-nav")),width<breakpoints.tablet&&(navElement.addClass("hidden"),navElement.removeClass("collapsed"),bodyContentElement.removeClass("collapsed-nav"),bodyContentElement.addClass("hidden-nav"))},collapseMenu=function(){navElement.addClass("collapsed"),bodyContentElement.addClass("collapsed-nav"),explicitCollapse=!0},enableTransitions=function(){$("html").addClass("transitions")},expandMenu=function(){navElement.removeClass("collapsed"),bodyContentElement.removeClass("collapsed-nav"),explicitCollapse=!1},bindMenuBehavior=function(){toggleNavBarButton.on("click",function(){enableTransitions();var inMobileState=bodyContentElement.hasClass("hidden-nav");inMobileState&&navElement.hasClass("show-mobile-nav")?navElement.removeClass("show-mobile-nav"):inMobileState?navElement.addClass("show-mobile-nav"):navElement.hasClass("collapsed")?expandMenu():collapseMenu()})},setTooltips=function(){$('.nav-pf-vertical-alt [data-toggle="tooltip"]').tooltip({container:"body",delay:{show:"500",hide:"200"}}),$(".nav-pf-vertical-alt").on("show.bs.tooltip",function(){return $(this).hasClass("collapsed")?void 0:!1})},init=function(){checkNavState(),bindMenuBehavior(),setTooltips()};$(window).on("resize",function(){checkNavState(),enableTransitions()}),init()},$(document).ready(function(){$(".nav-pf-vertical-alt").length>0&&$.fn.navigation()})}(jQuery),function($){"use strict";$.fn.countRemainingChars=function(options){var settings=$.extend({charsMaxLimit:100,charsWarnRemaining:5,blockInputAtMaxLimit:!1},options),$taFld=this,$countFld=$("#"+settings.countFld).text(settings.charsMaxLimit),charsRemainingFn=function(charsLength){var charsRemaining=settings.charsMaxLimit-charsLength;$countFld.text(charsRemaining),$countFld.toggleClass("chars-warn-remaining-pf",charsRemaining<=settings.charsWarnRemaining),0>charsRemaining?$taFld.trigger("overCharsMaxLimitEvent",$taFld.attr("id")):$taFld.trigger("underCharsMaxLimitEvent",$taFld.attr("id"))};return this.on("paste",function(){setTimeout(function(){var maxTxt,charsLength=$taFld.val().length;settings.blockInputAtMaxLimit&&charsLength>settings.charsMaxLimit&&(maxTxt=$taFld.val(),maxTxt=maxTxt.substring(0,settings.charsMaxLimit),$taFld.val(maxTxt),charsLength=$taFld.val().length),charsRemainingFn(charsLength)},100)}),this.keyup(function(){charsRemainingFn($taFld.val().length)}),this.keydown(function(event){var charsLength=$taFld.val().length;settings.blockInputAtMaxLimit&&charsLength>=settings.charsMaxLimit&&8!==event.keyCode&&event.preventDefault()}),this}}(jQuery),function($){"use strict";$.fn.c3ChartDefaults=function(){var getDefaultColors,getDefaultDonut,getDefaultDonutSize,getDefaultDonutColors,getDefaultDonutTooltip,getDefaultDonutLegend,getDefaultDonutConfig,getDefaultSparklineArea,getDefaultSparklineSize,getDefaultSparklineAxis,getDefaultSparklineLegend,getDefaultSparklinePoint,getDefaultSparklineTooltip,getDefaultSparklineConfig;return getDefaultColors=function(){return{pattern:["#0088ce","#00659c","#3f9c35","#ec7a08","#cc0000"]}},getDefaultDonut=function(title){return{title:title,label:{show:!1},width:11}},getDefaultDonutSize=function(){return{height:171}},getDefaultDonutColors=function(){return{pattern:["#0088CE","#D1D1D1"]}},getDefaultDonutTooltip=function(){return{show:!1}},getDefaultDonutLegend=function(){return{show:!1}},getDefaultDonutConfig=function(title){return{donut:this.getDefaultDonut(title),size:this.getDefaultDonutSize(),legend:this.getDefaultDonutLegend(),color:this.getDefaultDonutColors(),tooltip:this.getDefaultDonutTooltip()}},getDefaultSparklineArea=function(){return{zerobased:!0}},getDefaultSparklineSize=function(){return{height:60}},getDefaultSparklineAxis=function(){return{x:{show:!1},y:{show:!1}}},getDefaultSparklineLegend=function(){return{show:!1}},getDefaultSparklinePoint=function(){return{r:1,focus:{expand:{r:4}}}},getDefaultSparklineTooltip=function(){return{contents:function(d){return'<span class="c3-tooltip-sparkline">'+d[0].value+" "+d[0].name+"</span>"}}},getDefaultSparklineConfig=function(){return{area:getDefaultSparklineArea(),size:getDefaultSparklineSize(),axis:getDefaultSparklineAxis(),color:getDefaultColors(),legend:getDefaultSparklineLegend(),point:getDefaultSparklinePoint(),tooltip:getDefaultSparklineTooltip()}},{getDefaultColors:getDefaultColors,getDefaultDonut:getDefaultDonut,getDefaultDonutSize:getDefaultDonutSize,getDefaultDonutColors:getDefaultDonutColors,getDefaultDonutTooltip:getDefaultDonutTooltip,getDefaultDonutLegend:getDefaultDonutLegend,getDefaultDonutConfig:getDefaultDonutConfig,getDefaultSparklineArea:getDefaultSparklineArea,getDefaultSparklineSize:getDefaultSparklineSize,getDefaultSparklineAxis:getDefaultSparklineAxis,getDefaultSparklineLegend:getDefaultSparklineLegend,getDefaultSparklinePoint:getDefaultSparklinePoint,getDefaultSparklineTooltip:getDefaultSparklineTooltip,getDefaultSparklineConfig:getDefaultSparklineConfig}}}(jQuery),function($){"use strict";$.fn.initCollapseHeights=function(){var setCollapseHeights,parentElement=this;setCollapseHeights=function(){var height,openPanel,contentHeight,bodyHeight,overflowY="hidden";height=parentElement.height(),openPanel=parentElement.find(".collapse.in"),openPanel&&openPanel.length>0&&openPanel.removeClass("in"),contentHeight=0,parentElement.children().each($.proxy(function(i,element){var $element=$(element);contentHeight+=$element.outerHeight(!0)},parentElement)).end(),bodyHeight=height-contentHeight,25>bodyHeight&&(bodyHeight=25,overflowY="auto"),parentElement.find('[data-toggle="collapse"]').each($.proxy(function(i,element){var $element,selector,$target;$element=$(element),selector=$element.attr("data-target"),selector||(selector=$element.attr("href")),$target=$(selector),$target.css({"max-height":bodyHeight+"px","overflow-y":"auto"})},parentElement)).end(),openPanel&&openPanel.length>0&&openPanel.addClass("in"),parentElement.css({"overflow-y":overflowY})},setCollapseHeights(),$(window).resize(setCollapseHeights)}}(jQuery);
1
+ !function($){"use strict";$.fn.sidebar=function(){var documentHeight=0,navbarpfHeight=0,colHeight=0;$(".navbar-pf .navbar-toggle").is(":hidden")&&(documentHeight=$(document).height(),navbarpfHeight=$(".navbar-pf").outerHeight(),colHeight=documentHeight-navbarpfHeight),$(".sidebar-pf").parent(".row").children('[class*="col-"]').css({"min-height":colHeight})},$(document).ready(function(){$(".sidebar-pf").length>0&&0===$(".datatable").length&&$.fn.sidebar()}),$(window).resize(function(){$(".sidebar-pf").length>0&&$.fn.sidebar()})}(jQuery),function($){"use strict";$.fn.popovers=function(){return this.popover(),this.filter("[data-close=true]").each(function(index,element){var $this=$(element),title=$this.attr("data-original-title")+'<button type="button" class="close" aria-hidden="true"><span class="pficon pficon-close"></span></button>';$this.attr("data-original-title",title)}),this.on("click",function(e){var $this=$(this),$title=$this.next(".popover").find(".popover-title");$title.find(".close").parent(".popover-title").addClass("closable"),$title.find(".close").on("click",function(){$this.popover("hide")}),e.preventDefault()}),this}}(jQuery),function($){"use strict";$.fn.dataTableExt&&($.extend(!0,$.fn.dataTable.defaults,{bDestroy:!0,bAutoWidth:!1,iDisplayLength:20,sDom:"<'dataTables_header' f i r ><'table-responsive' t ><'dataTables_footer' p >",oLanguage:{sInfo:"Showing <b>_START_</b> to <b>_END_</b> of <b>_TOTAL_</b> Items",sInfoFiltered:"(of <b>_MAX_</b>)",sInfoEmpty:"Showing <b>0</b> Results",sZeroRecords:"<p>Suggestions</p><ul><li>Check the syntax of the search term.</li><li>Check that the correct menu option is chosen (token ID vs. user ID).</li><li>Use wildcards (* to match zero or more characters or ? to match a single character).</li><li>Clear the search field, then click Search to return to the 20 most recent records.</li></ul>",sSearch:""},sPaginationType:"bootstrap_input"}),$.extend($.fn.dataTableExt.oStdClasses,{sWrapper:"dataTables_wrapper"}),$.fn.dataTableExt.oApi.fnPagingInfo=function(oSettings){return{iStart:oSettings._iDisplayStart,iEnd:oSettings.fnDisplayEnd(),iLength:oSettings._iDisplayLength,iTotal:oSettings.fnRecordsTotal(),iFilteredTotal:oSettings.fnRecordsDisplay(),iPage:-1===oSettings._iDisplayLength?0:Math.ceil(oSettings._iDisplayStart/oSettings._iDisplayLength),iTotalPages:-1===oSettings._iDisplayLength?0:Math.ceil(oSettings.fnRecordsDisplay()/oSettings._iDisplayLength)}},$.extend($.fn.dataTableExt.oPagination,{bootstrap_input:{fnInit:function(oSettings,nPaging,fnDraw){var els,nInput,fnClickHandler=function(e){e.preventDefault(),oSettings.oApi._fnPageChange(oSettings,e.data.action)&&fnDraw(oSettings)};$(nPaging).append('<ul class="pagination"> <li class="first disabled"><span class="i fa fa-angle-double-left"></span></li> <li class="prev disabled"><span class="i fa fa-angle-left"></span></li></ul><div class="pagination-input"> <input type="text" class="paginate_input"> <span class="paginate_of">of <b>3</b></span></div><ul class="pagination"> <li class="next disabled"><span class="i fa fa-angle-right"></span></li> <li class="last disabled"><span class="i fa fa-angle-double-right"></span></li></ul>'),els=$("li",nPaging),$(els[0]).bind("click.DT",{action:"first"},fnClickHandler),$(els[1]).bind("click.DT",{action:"previous"},fnClickHandler),$(els[2]).bind("click.DT",{action:"next"},fnClickHandler),$(els[3]).bind("click.DT",{action:"last"},fnClickHandler),nInput=$("input",nPaging),$(nInput).keyup(function(e){if(38===e.which||39===e.which?this.value+=1:(37===e.which||40===e.which)&&this.value>1&&(this.value-=1),""!==this.value&&this.value.match(/[0-9]/)){var iNewStart=oSettings._iDisplayLength*(this.value-1);if(iNewStart>oSettings.fnRecordsDisplay())return oSettings._iDisplayStart=(Math.ceil((oSettings.fnRecordsDisplay()-1)/oSettings._iDisplayLength)-1)*oSettings._iDisplayLength,void fnDraw(oSettings);oSettings._iDisplayStart=iNewStart,fnDraw(oSettings)}})},fnUpdate:function(oSettings){var i,oPaging=oSettings.oInstance.fnPagingInfo(),an=oSettings.aanFeatures.p,ien=an.length,iPages=Math.ceil(oSettings.fnRecordsDisplay()/oSettings._iDisplayLength),iCurrentPage=Math.ceil(oSettings._iDisplayStart/oSettings._iDisplayLength)+1;for(i=0;ien>i;i+=1)$(".paginate_input").val(iCurrentPage),$(".paginate_of b").html(iPages),0===oPaging.iPage?($("li.first",an[i]).addClass("disabled"),$("li.prev",an[i]).addClass("disabled")):($("li.first",an[i]).removeClass("disabled"),$("li.prev",an[i]).removeClass("disabled")),oPaging.iPage===oPaging.iTotalPages-1||0===oPaging.iTotalPages?($("li.next",an[i]).addClass("disabled"),$("li.last",an[i]).addClass("disabled")):($("li.next",an[i]).removeClass("disabled"),$("li.last",an[i]).removeClass("disabled"))}}}))}(jQuery),function($){"use strict";$.fn.navigation=function(){var navElement=$(".layout-pf-alt-fixed .nav-pf-vertical-alt"),bodyContentElement=$(".container-pf-alt-nav-pf-vertical-alt"),toggleNavBarButton=$(".navbar-toggle"),explicitCollapse=!1,breakpoints={tablet:768,desktop:1024},checkNavState=function(){var width=$(window).width();navElement.removeClass("hidden show-mobile-nav collapsed"),bodyContentElement.removeClass("collapsed-nav hidden-nav"),(width<breakpoints.desktop||explicitCollapse)&&(navElement.addClass("collapsed"),bodyContentElement.addClass("collapsed-nav")),width<breakpoints.tablet&&(navElement.addClass("hidden"),navElement.removeClass("collapsed"),bodyContentElement.removeClass("collapsed-nav"),bodyContentElement.addClass("hidden-nav"))},collapseMenu=function(){navElement.addClass("collapsed"),bodyContentElement.addClass("collapsed-nav"),explicitCollapse=!0},enableTransitions=function(){$("html").addClass("transitions")},expandMenu=function(){navElement.removeClass("collapsed"),bodyContentElement.removeClass("collapsed-nav"),explicitCollapse=!1},bindMenuBehavior=function(){toggleNavBarButton.on("click",function(){enableTransitions();var inMobileState=bodyContentElement.hasClass("hidden-nav");inMobileState&&navElement.hasClass("show-mobile-nav")?navElement.removeClass("show-mobile-nav"):inMobileState?navElement.addClass("show-mobile-nav"):navElement.hasClass("collapsed")?expandMenu():collapseMenu()})},setTooltips=function(){$('.nav-pf-vertical-alt [data-toggle="tooltip"]').tooltip({container:"body",delay:{show:"500",hide:"200"}}),$(".nav-pf-vertical-alt").on("show.bs.tooltip",function(){return $(this).hasClass("collapsed")?void 0:!1})},init=function(){checkNavState(),bindMenuBehavior(),setTooltips()};$(window).on("resize",function(){checkNavState(),enableTransitions()}),init()},$(document).ready(function(){$(".nav-pf-vertical-alt").length>0&&$.fn.navigation()})}(jQuery),function($){"use strict";$.fn.countRemainingChars=function(options){var settings=$.extend({charsMaxLimit:100,charsWarnRemaining:5,blockInputAtMaxLimit:!1},options),$taFld=this,$countFld=$("#"+settings.countFld).text(settings.charsMaxLimit),charsRemainingFn=function(charsLength){var charsRemaining=settings.charsMaxLimit-charsLength;$countFld.text(charsRemaining),$countFld.toggleClass("chars-warn-remaining-pf",charsRemaining<=settings.charsWarnRemaining),0>charsRemaining?$taFld.trigger("overCharsMaxLimitEvent",$taFld.attr("id")):$taFld.trigger("underCharsMaxLimitEvent",$taFld.attr("id"))};return this.on("paste",function(){setTimeout(function(){var maxTxt,charsLength=$taFld.val().length;settings.blockInputAtMaxLimit&&charsLength>settings.charsMaxLimit&&(maxTxt=$taFld.val(),maxTxt=maxTxt.substring(0,settings.charsMaxLimit),$taFld.val(maxTxt),charsLength=$taFld.val().length),charsRemainingFn(charsLength)},100)}),this.keyup(function(){charsRemainingFn($taFld.val().length)}),this.keydown(function(event){var charsLength=$taFld.val().length;settings.blockInputAtMaxLimit&&charsLength>=settings.charsMaxLimit&&8!==event.keyCode&&event.preventDefault()}),this}}(jQuery),function($){"use strict";$.fn.c3ChartDefaults=function(){var getDefaultColors,getDefaultDonut,getDefaultDonutSize,getDefaultDonutColors,getDefaultDonutTooltip,getDefaultDonutLegend,getDefaultDonutConfig,getDefaultSparklineArea,getDefaultSparklineSize,getDefaultSparklineAxis,getDefaultSparklineLegend,getDefaultSparklinePoint,getDefaultSparklineTooltip,getDefaultSparklineConfig;return getDefaultColors=function(){return{pattern:["#0088ce","#00659c","#3f9c35","#ec7a08","#cc0000"]}},getDefaultDonut=function(title){return{title:title,label:{show:!1},width:11}},getDefaultDonutSize=function(){return{height:171}},getDefaultDonutColors=function(){return{pattern:["#0088CE","#D1D1D1"]}},getDefaultDonutTooltip=function(){return{show:!1}},getDefaultDonutLegend=function(){return{show:!1}},getDefaultDonutConfig=function(title){return{donut:this.getDefaultDonut(title),size:this.getDefaultDonutSize(),legend:this.getDefaultDonutLegend(),color:this.getDefaultDonutColors(),tooltip:this.getDefaultDonutTooltip()}},getDefaultSparklineArea=function(){return{zerobased:!0}},getDefaultSparklineSize=function(){return{height:60}},getDefaultSparklineAxis=function(){return{x:{show:!1},y:{show:!1}}},getDefaultSparklineLegend=function(){return{show:!1}},getDefaultSparklinePoint=function(){return{r:1,focus:{expand:{r:4}}}},getDefaultSparklineTooltip=function(){return{contents:function(d){return'<span class="c3-tooltip-sparkline">'+d[0].value+" "+d[0].name+"</span>"}}},getDefaultSparklineConfig=function(){return{area:getDefaultSparklineArea(),size:getDefaultSparklineSize(),axis:getDefaultSparklineAxis(),color:getDefaultColors(),legend:getDefaultSparklineLegend(),point:getDefaultSparklinePoint(),tooltip:getDefaultSparklineTooltip()}},{getDefaultColors:getDefaultColors,getDefaultDonut:getDefaultDonut,getDefaultDonutSize:getDefaultDonutSize,getDefaultDonutColors:getDefaultDonutColors,getDefaultDonutTooltip:getDefaultDonutTooltip,getDefaultDonutLegend:getDefaultDonutLegend,getDefaultDonutConfig:getDefaultDonutConfig,getDefaultSparklineArea:getDefaultSparklineArea,getDefaultSparklineSize:getDefaultSparklineSize,getDefaultSparklineAxis:getDefaultSparklineAxis,getDefaultSparklineLegend:getDefaultSparklineLegend,getDefaultSparklinePoint:getDefaultSparklinePoint,getDefaultSparklineTooltip:getDefaultSparklineTooltip,getDefaultSparklineConfig:getDefaultSparklineConfig}}}(jQuery),function($){"use strict";$.fn.initCollapseHeights=function(){var setCollapseHeights,parentElement=this;setCollapseHeights=function(){var height,openPanel,contentHeight,bodyHeight,overflowY="hidden";height=parentElement.height(),openPanel=parentElement.find(".collapse.in"),openPanel&&openPanel.length>0&&openPanel.removeClass("in"),contentHeight=0,parentElement.children().each($.proxy(function(i,element){var $element=$(element);contentHeight+=$element.outerHeight(!0)},parentElement)).end(),bodyHeight=height-contentHeight,25>bodyHeight&&(bodyHeight=25,overflowY="auto"),parentElement.find('[data-toggle="collapse"]').each($.proxy(function(i,element){var $element,selector,$target;$element=$(element),selector=$element.attr("data-target"),selector||(selector=$element.attr("href")),$target=$(selector),$target.css({"max-height":bodyHeight+"px","overflow-y":"auto"})},parentElement)).end(),openPanel&&openPanel.length>0&&openPanel.addClass("in"),parentElement.css({"overflow-y":overflowY})},setCollapseHeights(),$(window).resize(setCollapseHeights)}}(jQuery),function($){"use strict";function getParent(rows,node){var parent=node.attr("data-parent");return"string"==typeof parent?parent=isNaN(parent)?rows.closest(parent):$(rows[parseInt(parent,10)]):void 0}function renderItem(item,parent){parent&&(parent.find(".treegrid-node > span.expand-icon").toggleClass("fa-angle-right",parent.hasClass("collapsed")).toggleClass("fa-angle-down",!parent.hasClass("collapsed")),item.toggleClass("hidden",parent.hasClass("collapsed")),parent.hasClass("collapsed")&&item.addClass("collapsed"))}function reStripe(tree){tree.find("tbody > tr").removeClass("odd"),tree.find("tbody > tr:not(.hidden):odd").addClass("odd")}$.fn.treegrid=function(){var i,rows,_this;rows=this.find("tbody > tr"),_this=this,$.each(rows,function(){var node,parent;if(node=$(this),parent=getParent(rows,node),node.children(".treegrid-node").prepend('<span class="icon expand-icon fa"/>'),node.children(".treegrid-node").on("click",function(){var icon=node.find("span.expand-icon");icon.hasClass("fa-angle-right")&&node.removeClass("collapsed"),icon.hasClass("fa-angle-down")&&node.addClass("collapsed"),$.each(rows.slice(rows.index(node)+1),function(){renderItem($(this),getParent(rows,$(this)))}),reStripe(_this)}),parent){for(i=parent.find(".treegrid-node > span.indent").length+1;i>0;i-=1)node.children(".treegrid-node").prepend('<span class="indent"/>');renderItem(node,parent)}}),reStripe(_this)}}(jQuery),function($){"use strict";$.fn.setupVerticalNavigation=function(handleItemSelections){var navElement=$(".nav-pf-vertical"),bodyContentElement=$(".container-pf-nav-pf-vertical"),toggleNavBarButton=$(".navbar-toggle"),explicitCollapse=!1,subDesktop=!1,breakpoints={tablet:768,desktop:1200},inMobileState=function(){return bodyContentElement.hasClass("hidden-nav")},forceResize=function(){setTimeout(function(){window.dispatchEvent&&window.dispatchEvent(new Event("resize")),$(document).fireEvent&&$(document).fireEvent("onresize")},100)},showSecondaryMenu=function(){(inMobileState()||!subDesktop)&&(navElement.addClass("secondary-visible-pf"),bodyContentElement.addClass("secondary-visible-pf")),subDesktop||forceResize()},hideSecondaryMenu=function(){navElement.removeClass("secondary-visible-pf"),bodyContentElement.removeClass("secondary-visible-pf"),navElement.find(".mobile-nav-item-pf").each(function(index,item){$(item).removeClass("mobile-nav-item-pf")})},showSecondaryMenuForItem=function(item){item.find(".nav-pf-persistent-secondary").length>0?showSecondaryMenu():(hideSecondaryMenu(),navElement.removeClass("show-mobile-nav"))},setActiveItem=function(item){$(document).find(".nav-pf-vertical > .list-group > .list-group-item").each(function(index,element){$(element).hasClass("active")&&$(element).removeClass("active")}),item.hasClass("active")||item.addClass("active")},setSecondaryActiveItem=function($parent,item){var parentItem=$(document).find('[data-target="#'+$parent.attr("id")+'"]');$parent.find(".list-group > .list-group-item").each(function(index,element){$(element).removeClass("active")}),item.addClass("active"),setActiveItem($(parentItem))},updateSecondaryMenuDisplayAfterSelection=function(){inMobileState()&&(navElement.removeClass("show-mobile-nav"),hideSecondaryMenu(),navElement.find(".mobile-nav-item-pf").each(function(index,item){$(item).removeClass("mobile-nav-item-pf")}))},checkNavState=function(){var makeSecondaryVisible,width=$(window).width();width<breakpoints.tablet?navElement.hasClass("hidden")||(navElement.addClass("hidden"),navElement.removeClass("collapsed"),bodyContentElement.removeClass("collapsed-nav"),bodyContentElement.addClass("hidden-nav"),explicitCollapse=!1):navElement.hasClass("hidden")&&(navElement.removeClass("hidden show-mobile-nav"),bodyContentElement.removeClass("hidden-nav")),width<breakpoints.desktop?(subDesktop||(navElement.addClass("collapsed"),bodyContentElement.addClass("collapsed-nav")),width>=breakpoints.tablet&&hideSecondaryMenu(),subDesktop=!0):(makeSecondaryVisible=subDesktop&&navElement.find(".persistent-secondary.active").length>0,subDesktop=!1,makeSecondaryVisible&&showSecondaryMenu()),explicitCollapse?(navElement.addClass("collapsed"),bodyContentElement.addClass("collapsed-nav")):(navElement.removeClass("collapsed"),bodyContentElement.removeClass("collapsed-nav"))},collapseMenu=function(){navElement.addClass("collapsed"),bodyContentElement.addClass("collapsed-nav"),subDesktop&&hideSecondaryMenu(),explicitCollapse=!0},enableTransitions=function(){$("html").addClass("transitions")},expandMenu=function(){navElement.removeClass("collapsed"),bodyContentElement.removeClass("collapsed-nav"),explicitCollapse=!1,subDesktop||forceResize()},bindMenuBehavior=function(){toggleNavBarButton.on("click",function(){enableTransitions(),inMobileState()?navElement.hasClass("show-mobile-nav")?navElement.removeClass("show-mobile-nav"):(hideSecondaryMenu(),navElement.addClass("show-mobile-nav")):navElement.hasClass("collapsed")?expandMenu():collapseMenu()})},bindMenuItemsBehavior=function(handleSelection){$(document).on("click.pf.secondarynav.data-api",".nav-pf-vertical > .list-group > .list-group-item",function(){var $this=$(this);showSecondaryMenuForItem($this),inMobileState()&&$this.find(".nav-pf-persistent-secondary").length>0?$this.addClass("mobile-nav-item-pf"):handleSelection&&setActiveItem($this)}),$(document).find(".nav-pf-persistent-secondary").each(function(index,element){var $e=$(element);handleSelection&&$e.on("click.pf.secondarynav.data-api",function(event){event.stopImmediatePropagation()}),$e.on("click.pf.secondarynav.data-api",".list-group > .list-group-item",function(event){var $this=$(this);updateSecondaryMenuDisplayAfterSelection($this),handleSelection&&(setSecondaryActiveItem($e,$(this)),event.stopImmediatePropagation())}),$e.on("click.pf.secondarynav.data-api",'[data-toggle="collapse-secondary-nav"]',function(e){hideSecondaryMenu(),navElement.removeClass("hover-secondary-nav-pf"),navElement.addClass("force-hide-secondary-nav-pf"),setTimeout(function(){navElement.removeClass("force-hide-secondary-nav-pf")},500),handleSelection&&e.stopImmediatePropagation()})}),$(document).on("mouseover.pf.secondarynav.data-api",".persistent-secondary",function(){inMobileState()||navElement.addClass("hover-secondary-nav-pf")}),$(document).on("mouseout.pf.secondarynav.data-api",".persistent-secondary",function(){navElement.removeClass("hover-secondary-nav-pf")})},setTooltips=function(){$('.nav-pf-vertical [data-toggle="tooltip"]').tooltip({container:"body",delay:{show:"500",hide:"200"}}),$(".nav-pf-vertical").on("show.bs.tooltip",function(){return $(this).hasClass("collapsed")?void 0:!1})},init=function(handleItemSelections){checkNavState(),bindMenuBehavior(),bindMenuItemsBehavior(handleItemSelections),setTooltips()};$(window).on("resize",function(){checkNavState(),enableTransitions()}),init(handleItemSelections)}}(jQuery);
@@ -87,6 +87,7 @@
87
87
  @import "patternfly/login";
88
88
  @import "patternfly/navbar";
89
89
  @import "patternfly/navbar-alt";
90
+ @import "patternfly/navbar-vertical";
90
91
  @import "patternfly/nav-vertical-alt";
91
92
  @import "patternfly/search";
92
93
  @import "patternfly/sidebar";
@@ -94,3 +95,4 @@
94
95
  @import "patternfly/syntax-highlighting";
95
96
  @import "patternfly/toast";
96
97
  @import "patternfly/toolbar";
98
+ @import "patternfly/vertical-nav";
@@ -2,14 +2,14 @@
2
2
  // Footer
3
3
  // --------------------------------------------------
4
4
 
5
- .footer-pf-alt {
6
- background-color: $footer-pf-alt-bg-color;
5
+ .footer-pf-alt, .footer-pf {
6
+ background-color: $footer-pf-bg-color;
7
7
  color: $gray-light;
8
8
  font-size: $font-size-small;
9
9
  line-height: 17px; // whole px unit to avoid height differences among browsers
10
- padding-left: $footer-pf-alt-padding-left;
11
- padding-top: $footer-pf-alt-padding-top;
12
- .layout-pf-alt-fixed-with-footer & {
10
+ padding-left: $footer-pf-padding-left;
11
+ padding-top: $footer-pf-padding-top;
12
+ .layout-pf-alt-fixed-with-footer &, .layout-pf-fixed-with-footer &{
13
13
  bottom: 0;
14
14
  left: 0;
15
15
  position: fixed;