patternfly-sass 3.17.0 → 3.20.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (114) hide show
  1. checksums.yaml +4 -4
  2. data/assets/fonts/patternfly/OpenSans-Bold-webfont.eot +0 -0
  3. data/assets/fonts/patternfly/OpenSans-Bold-webfont.svg +19025 -1827
  4. data/assets/fonts/patternfly/OpenSans-Bold-webfont.ttf +0 -0
  5. data/assets/fonts/patternfly/OpenSans-Bold-webfont.woff +0 -0
  6. data/assets/fonts/patternfly/OpenSans-Bold-webfont.woff2 +0 -0
  7. data/assets/fonts/patternfly/OpenSans-BoldItalic-webfont.eot +0 -0
  8. data/assets/fonts/patternfly/OpenSans-BoldItalic-webfont.svg +19033 -1827
  9. data/assets/fonts/patternfly/OpenSans-BoldItalic-webfont.ttf +0 -0
  10. data/assets/fonts/patternfly/OpenSans-BoldItalic-webfont.woff +0 -0
  11. data/assets/fonts/patternfly/OpenSans-BoldItalic-webfont.woff2 +0 -0
  12. data/assets/fonts/patternfly/OpenSans-ExtraBold-webfont.eot +0 -0
  13. data/assets/fonts/patternfly/OpenSans-ExtraBold-webfont.svg +19027 -1827
  14. data/assets/fonts/patternfly/OpenSans-ExtraBold-webfont.ttf +0 -0
  15. data/assets/fonts/patternfly/OpenSans-ExtraBold-webfont.woff +0 -0
  16. data/assets/fonts/patternfly/OpenSans-ExtraBold-webfont.woff2 +0 -0
  17. data/assets/fonts/patternfly/OpenSans-ExtraBoldItalic-webfont.eot +0 -0
  18. data/assets/fonts/patternfly/OpenSans-ExtraBoldItalic-webfont.svg +19033 -1827
  19. data/assets/fonts/patternfly/OpenSans-ExtraBoldItalic-webfont.ttf +0 -0
  20. data/assets/fonts/patternfly/OpenSans-ExtraBoldItalic-webfont.woff +0 -0
  21. data/assets/fonts/patternfly/OpenSans-ExtraBoldItalic-webfont.woff2 +0 -0
  22. data/assets/fonts/patternfly/OpenSans-Italic-webfont.eot +0 -0
  23. data/assets/fonts/patternfly/OpenSans-Italic-webfont.svg +19040 -1827
  24. data/assets/fonts/patternfly/OpenSans-Italic-webfont.ttf +0 -0
  25. data/assets/fonts/patternfly/OpenSans-Italic-webfont.woff +0 -0
  26. data/assets/fonts/patternfly/OpenSans-Italic-webfont.woff2 +0 -0
  27. data/assets/fonts/patternfly/OpenSans-Light-webfont.eot +0 -0
  28. data/assets/fonts/patternfly/OpenSans-Light-webfont.svg +19023 -1828
  29. data/assets/fonts/patternfly/OpenSans-Light-webfont.ttf +0 -0
  30. data/assets/fonts/patternfly/OpenSans-Light-webfont.woff +0 -0
  31. data/assets/fonts/patternfly/OpenSans-Light-webfont.woff2 +0 -0
  32. data/assets/fonts/patternfly/OpenSans-LightItalic-webfont.eot +0 -0
  33. data/assets/fonts/patternfly/OpenSans-LightItalic-webfont.svg +19036 -1832
  34. data/assets/fonts/patternfly/OpenSans-LightItalic-webfont.ttf +0 -0
  35. data/assets/fonts/patternfly/OpenSans-LightItalic-webfont.woff +0 -0
  36. data/assets/fonts/patternfly/OpenSans-LightItalic-webfont.woff2 +0 -0
  37. data/assets/fonts/patternfly/OpenSans-Regular-webfont.eot +0 -0
  38. data/assets/fonts/patternfly/OpenSans-Regular-webfont.svg +19027 -1828
  39. data/assets/fonts/patternfly/OpenSans-Regular-webfont.ttf +0 -0
  40. data/assets/fonts/patternfly/OpenSans-Regular-webfont.woff +0 -0
  41. data/assets/fonts/patternfly/OpenSans-Regular-webfont.woff2 +0 -0
  42. data/assets/fonts/patternfly/OpenSans-Semibold-webfont.eot +0 -0
  43. data/assets/fonts/patternfly/OpenSans-Semibold-webfont.svg +19027 -1827
  44. data/assets/fonts/patternfly/OpenSans-Semibold-webfont.ttf +0 -0
  45. data/assets/fonts/patternfly/OpenSans-Semibold-webfont.woff +0 -0
  46. data/assets/fonts/patternfly/OpenSans-Semibold-webfont.woff2 +0 -0
  47. data/assets/fonts/patternfly/OpenSans-SemiboldItalic-webfont.eot +0 -0
  48. data/assets/fonts/patternfly/OpenSans-SemiboldItalic-webfont.svg +19040 -1827
  49. data/assets/fonts/patternfly/OpenSans-SemiboldItalic-webfont.ttf +0 -0
  50. data/assets/fonts/patternfly/OpenSans-SemiboldItalic-webfont.woff +0 -0
  51. data/assets/fonts/patternfly/OpenSans-SemiboldItalic-webfont.woff2 +0 -0
  52. data/assets/fonts/patternfly/PatternFlyIcons-webfont.eot +0 -0
  53. data/assets/fonts/patternfly/PatternFlyIcons-webfont.svg +2 -0
  54. data/assets/fonts/patternfly/PatternFlyIcons-webfont.ttf +0 -0
  55. data/assets/fonts/patternfly/PatternFlyIcons-webfont.woff +0 -0
  56. data/assets/javascripts/patternfly-functions.js +118 -105
  57. data/assets/javascripts/patternfly-functions.min.js +1 -1
  58. data/assets/javascripts/patternfly-settings.js +24 -1
  59. data/assets/javascripts/patternfly-settings.min.js +1 -1
  60. data/assets/javascripts/patternfly.dataTables.pfEmpty.js +11 -2
  61. data/assets/javascripts/patternfly.dataTables.pfEmpty.min.js +1 -1
  62. data/assets/javascripts/patternfly.dataTables.pfFilter.js +13 -5
  63. data/assets/javascripts/patternfly.dataTables.pfFilter.min.js +1 -1
  64. data/assets/javascripts/patternfly.dataTables.pfPagination.js +401 -0
  65. data/assets/javascripts/patternfly.dataTables.pfPagination.min.js +1 -0
  66. data/assets/javascripts/patternfly.dataTables.pfSelect.js +2 -2
  67. data/assets/javascripts/patternfly.dataTables.pfSelect.min.js +1 -1
  68. data/assets/javascripts/patternfly.js +142 -106
  69. data/assets/javascripts/patternfly.min.js +2 -2
  70. data/assets/stylesheets/_patternfly.scss +1 -0
  71. data/assets/stylesheets/patternfly/_close.scss +2 -0
  72. data/assets/stylesheets/patternfly/_fonts.scss +95 -25
  73. data/assets/stylesheets/patternfly/_icons.scss +6 -0
  74. data/assets/stylesheets/patternfly/_list-view-dnd.scss +53 -0
  75. data/assets/stylesheets/patternfly/_list-view.scss +1 -0
  76. data/assets/stylesheets/patternfly/_pagination.scss +50 -0
  77. data/assets/stylesheets/patternfly/_variables.scss +2 -0
  78. data/assets/stylesheets/patternfly/lib/bootstrap-switch.scss +2 -5
  79. data/bower.json +1 -1
  80. data/lib/patternfly-sass/version.rb +2 -2
  81. data/package.json +1 -1
  82. data/spec/html/bar-charts.html +109 -0
  83. data/spec/html/basic.html +267 -0
  84. data/spec/html/bootstrap-treeview-2.html +3 -0
  85. data/spec/html/card-view-multi-select.html +20 -1
  86. data/spec/html/card-view-single-select.html +3 -0
  87. data/spec/html/cards.html +3 -0
  88. data/spec/html/dashboard.html +3 -0
  89. data/spec/html/dist/css/patternfly-additions.css +46 -0
  90. data/spec/html/dist/css/patternfly-additions.css.map +1 -1
  91. data/spec/html/dist/css/patternfly-additions.min.css +1 -1
  92. data/spec/html/dist/css/patternfly-additions.min.css.map +1 -1
  93. data/spec/html/dist/css/patternfly.css +124 -5
  94. data/spec/html/dist/css/patternfly.css.map +1 -1
  95. data/spec/html/dist/css/patternfly.min.css +3 -3
  96. data/spec/html/dist/css/patternfly.min.css.map +1 -1
  97. data/spec/html/form.html +3 -0
  98. data/spec/html/icons.html +10 -0
  99. data/spec/html/index.html +9 -0
  100. data/spec/html/list-view-compound-expansion.html +3 -0
  101. data/spec/html/list-view-rows.html +1 -1
  102. data/spec/html/list-view-simple-expansion.html +3 -0
  103. data/spec/html/list-view.html +19 -0
  104. data/spec/html/pagination-card-view.html +560 -0
  105. data/spec/html/pagination-list-view.html +1204 -0
  106. data/spec/html/pagination-table-view.html +800 -0
  107. data/spec/html/pagination.html +37 -0
  108. data/spec/html/tab.html +267 -0
  109. data/spec/html/table-view-navbar.html +268 -0
  110. data/spec/html/table-view.html +265 -0
  111. data/spec/html/toolbar.html +3 -0
  112. data/spec/html/typography-2.html +3 -0
  113. data/spec/html/typography.html +17 -0
  114. metadata +21 -2
@@ -90,4 +90,6 @@
90
90
  <glyph unicode="&#xe918;" glyph-name="Bundle" data-tags="Bundle" d="M348.571 721.371l1.143-322.743 317.029-56.457 164.114 94.629 0.229 304.229-319.543 49.371zM658.514 874.743l-228.343 27.2-158.171-43.657 240.686-33.371zM1021.257 829.486v0.229l-0.686-0.229-299.886 36.571-145.143-50.286 313.6-44.343-0.457-299.2 125.486 80.229 7.086 276.343 0.457 0.229zM885.486 122.971l121.371 116.343 6.629 245.257-124.8-84.343zM349.714 318.171l-1.371-296.914 314.057-94.4 167.771 155.657 0.457 281.829-163.886-107.886zM450.971 802.514l-239.771 35.2-208.457-60.114 11.657-315.886 271.086-50.286-2.743 325.257zM25.6 117.714l259.886-80.229v293.943l-270.171 54.857z" />
91
91
  <glyph unicode="&#xe919;" glyph-name="domain" data-tags="domain" d="M866.971 522.743c7.086 7.086 10.743 15.771 10.743 25.829v365.486c0 9.829-3.657 18.286-10.971 26.057-7.086 7.086-15.771 10.743-25.829 10.743h-219.2c-9.829 0-18.286-3.657-25.829-10.971-7.086-7.086-10.743-15.771-10.743-25.829v-365.486c0-9.829 3.429-18.286 10.743-25.829 7.086-7.086 15.771-10.743 25.829-10.743h219.429c9.829 0 18.514 3.429 25.829 10.743zM804.571 658.286h-146.286v73.143h146.286v-73.143zM804.571 804.571h-73.143v73.143h73.143v-73.143zM548.343 438.857h-219.2c-9.829 0-18.286-3.657-25.829-10.971-7.086-7.086-10.743-15.771-10.743-25.6v-439.314c0-9.829 3.429-18.286 10.743-25.6 7.086-7.086 15.771-10.743 25.829-10.743h219.429c9.829 0 18.286 3.429 25.829 10.743 7.086 7.086 10.743 15.771 10.743 25.6v439.543c0 9.829-3.657 18.286-10.971 25.829-7.086 6.857-16 10.514-25.829 10.514zM512 146.286h-146.286v73.143h146.286v-73.143zM512 292.571h-73.143v73.143h73.143v-73.143zM512 0h-146.286v73.143h146.286v-73.143zM292.571 914.057c0 9.829-3.657 18.514-10.971 26.057-7.086 7.086-15.771 10.743-25.6 10.743h-219.886c-9.829 0-18.286-3.657-25.6-10.971-6.857-7.314-10.514-16-10.514-25.829v-292.343c0-9.829 3.429-18.514 10.743-25.829 7.086-7.086 15.771-10.743 25.6-10.743h220.114c9.829 0 18.286 3.429 25.6 10.743 7.086 7.086 10.743 15.771 10.743 25.829v292.343zM219.429 658.286h-146.286v73.143h146.286c0 0 0-73.143 0-73.143zM219.429 804.571h-73.143v73.143h73.143c0 0 0-73.143 0-73.143zM512 808v66.743c-0.457 0-1.143 0-1.6 0-50.743 0-99.429-8.686-144.686-24.457v-72c44.343 18.971 93.257 29.714 144.686 29.714 0.457 0 1.143 0 1.6 0zM150.857 512.228h-71.314c-4.114-24.229-6.4-49.371-6.4-74.971 0-129.829 56.457-246.4 146.286-326.4v107.429c-47.314 61.714-75.429 138.971-75.429 222.857 0 24.229 2.286 48 6.857 71.086zM804.571 222.628v-108.571c88 80 143.314 195.2 143.314 323.657 0 0.229 0 0.686 0 0.914h-70.857c-0.686-81.143-27.429-155.657-72.457-216zM950.857 878.857h73.143v-294.857h-73.143v294.857zM658.286 365.714h73.143v-365.714h-73.143v365.714z" />
92
92
  <glyph unicode="&#xe91a;" glyph-name="server-group" data-tags="server group" d="M841.143 731.428h182.857v-731.429h-182.857v731.429zM695.086 731.428h-658.514c-9.829 0-18.514-3.657-25.6-10.743-7.314-7.543-10.971-16-10.971-25.829v-731.657c0-9.829 3.657-18.514 10.743-25.6 7.314-7.314 15.771-10.743 25.6-10.743h658.743c9.829 0 18.514 3.657 25.6 10.743 7.314 7.314 10.743 15.771 10.743 25.6v731.657c0 9.829-3.657 18.514-10.743 25.6-7.314 7.314-15.771 10.971-25.6 10.971zM658.286 73.143h-438.857v109.714h438.857v-109.714zM658.286 292.571h-585.143v109.714h585.143v-109.714zM658.286 512h-219.429v109.714h219.429v-109.714zM22.4 768h686.629c11.429 0 18.743 2.971 21.257 8.686 2.743 5.714-0.229 12.8-8.686 21.257 0 0-142.4 130.514-152.914 142.857s-24 9.829-24 9.829h-361.143c0 0-11.886 1.371-22.629-10.286-10.514-11.886-151.314-142.4-151.314-142.4-8.457-8.457-11.429-15.314-8.686-21.257s9.829-8.686 21.486-8.686zM767.314 951.314h-121.143l194.743-182.171 183.086-1.6z" />
93
+ <glyph unicode="&#xe91b;" glyph-name="pficon-degraded" data-tags="pficon-degraded" d="M957.257 568.457c-25.6-10.057-54.857-18.514-87.543-25.143-21.714-4.8-43.886-8.686-66.514-11.886l0.457-302.857c13.029 1.829 26.057 4.114 38.629 6.4 27.657 5.714 52.8 12.343 74.971 19.657s42.057 15.771 58.514 24.457c16 9.371 28.343 19.429 36.343 29.714 8 10.514 11.886 21.029 11.886 32.229v262.4c-18.743-13.257-41.143-24.914-66.743-34.971zM364.343 729.828v0h0.686c35.429 0 69.943-1.6 102.629-4.571 34.971-3.2 66.286-7.771 95.314-13.714v0 0c31.543-6.629 58.514-13.486 82.514-21.029l0.914-0.457c27.429-9.143 50.743-19.2 71.314-30.857l0.914-0.457c24-14.171 43.2-30.171 56.914-47.771 5.029-6.4 9.371-13.029 13.029-19.886 18.286 2.286 35.886 5.257 53.029 8.686 27.657 5.029 52.8 11.429 74.971 18.743s42.057 16 58.514 25.371c16 9.371 28.343 19.2 36.343 29.029s11.886 20.571 11.886 31.543v124.343c0 10.514-3.886 21.029-11.886 31.314s-20.343 20.343-36.343 29.714c-16.457 9.371-35.886 17.6-58.286 25.143-22.171 7.086-47.314 13.486-74.971 19.2-27.886 5.714-57.143 9.6-87.543 12.571s-62.629 4.114-96 4.114c-32.914 0-64.457-1.371-95.086-4.343s-60.114-7.086-88.457-12.571c-27.657-5.486-52.8-11.886-74.971-19.2s-41.6-15.771-57.6-25.143c-16.229-9.371-28.571-19.429-36.8-29.714s-12.571-20.8-12.571-31.314v-101.257c23.086 1.829 47.314 2.514 71.543 2.514zM664.686 266.743c-23.543-9.143-50.057-17.143-79.543-23.314v62.4c13.943 3.429 26.971 7.086 39.086 11.2 22.171 7.314 42.057 16 58.514 25.371 16 9.371 28.343 19.2 36.343 29.029s11.886 20.571 11.886 31.543v133.257c0 10.514-3.886 21.029-11.886 31.314s-20.343 20.343-36.343 29.714c-16.457 9.371-35.886 17.6-58.286 25.143-22.171 7.086-47.314 13.486-74.971 19.2-27.886 5.714-57.143 9.6-87.543 12.571s-62.629 4.343-96 4.343c-32.914 0-64.457-1.371-95.086-4.343s-60.343-7.086-88.457-12.571c-27.657-5.486-52.8-11.886-74.971-19.2s-41.6-15.771-57.6-25.143c-16.229-9.371-28.571-19.429-36.8-29.714s-12.571-20.8-12.571-31.314v-133.257c0-11.2 4.343-21.714 12.571-31.543 8.457-10.057 20.571-19.657 36.8-29.029s35.429-18.057 57.6-25.371c11.886-4.114 24.914-7.771 38.857-11.2v-62.4c-29.486 6.4-55.771 14.171-79.086 23.314-25.6 10.057-48 21.714-66.743 34.971v-253.257c0-11.2 4.343-21.943 12.571-32.229 8.457-10.286 20.571-20.343 36.8-29.714 16.229-8.914 35.429-17.143 57.6-24.457 22.171-7.771 47.771-14.171 75.886-19.657 27.657-5.486 57.143-9.6 88-11.657 30.629-2.514 62.171-3.657 95.086-3.657 33.371 0 65.371 1.143 95.543 3.657 30.171 2.286 59.657 6.629 88 11.886 27.657 5.714 52.8 12.343 74.971 19.657s42.057 15.771 58.514 24.457c16 9.371 28.343 19.429 36.343 29.714 8 10.514 11.886 21.029 11.886 32.229v253.029c-18.971-13.257-41.371-24.914-66.971-34.971zM558.857 126.4c-0.686-1.6-1.829-3.2-3.2-4.571l-53.943-53.714c-1.6-1.6-2.971-2.514-4.571-3.2s-3.429-0.914-5.257-0.914c-1.6 0-2.971 0.229-4.571 0.914s-2.971 1.829-3.886 3.2l-117.714 116.571-117.486-117.029c-0.914-1.6-2.286-2.514-3.886-3.2s-3.2-0.914-4.571-0.914c-1.829 0-3.657 0.229-5.257 0.914s-3.2 1.829-4.571 3.2l-53.943 54.171c-1.6 1.6-2.514 2.971-3.2 4.571s-0.914 3.2-0.914 4.571c0 1.829 0.229 3.657 0.914 5.257s1.829 2.971 3.2 3.886l117.486 117.486-115.2 114.743c-1.6 1.6-2.514 2.971-3.2 4.571s-0.914 3.2-0.914 4.571c0 1.829 0.229 3.657 0.914 5.257s1.829 2.971 3.2 3.886l53.943 54.4c1.6 0.914 2.971 1.829 4.571 2.514s3.2 0.914 4.571 0.914c1.829 0 3.657-0.229 5.257-0.686s2.971-1.6 3.886-2.743l115.657-115.657 115.2 115.2c0.914 1.6 2.286 2.286 3.886 2.743s3.2 0.686 4.571 0.686c1.829 0 3.657-0.229 5.257-0.914s3.2-1.6 4.571-2.514l53.257-54.629c1.6-0.914 2.514-2.286 3.2-3.886s0.914-3.429 0.914-5.257c0-1.6-0.229-2.971-0.914-4.571s-1.829-3.2-3.2-4.571l-114.743-114.286 117.486-117.486c1.6-0.914 2.514-2.286 3.2-3.886s0.914-3.429 0.914-5.257c0-1.371-0.229-2.743-0.914-4.343z" />
94
+ <glyph unicode="&#xe91c;" glyph-name="pficon-rebalance" data-tags="pficon-rebalance" horiz-adv-x="1243" d="M1018.971-5.029c-3.657 3.2-8 5.029-13.257 5.029h-347.429v737.6c37.943 13.486 66.286 47.086 72 87.771v-0.457l275.429 53.943c5.257 0.914 9.371 3.429 11.886 7.543 2.743 4.114 3.429 8.686 2.514 13.943l-7.086 35.886c-0.914 5.257-3.429 9.371-7.543 11.886s-8.686 3.429-13.943 2.514l-275.2-53.714v-0.457c-18.971 32.457-54.171 54.4-94.629 54.4-55.314 0-101.029-40.914-108.571-93.943v0.457l-275.429-53.714c-5.257-0.914-9.371-3.429-11.886-7.543s-3.429-8.686-2.514-13.943l7.086-35.886c0.914-5.257 3.429-9.371 7.543-11.886 4.114-2.743 8.686-3.429 13.943-2.514l275.429 53.714c13.029-22.171 33.6-39.314 58.057-48v-737.6h-347.657c-5.486 0-10.057-1.371-13.257-5.029s-5.029-8-5.029-13.257v-36.571c0-5.257 1.371-10.057 5.029-13.257s8-5.029 13.257-5.029h768c5.486 0 10.057 1.371 13.257 5.029s5.029 8 5.029 13.257v36.571c0 5.486-1.371 10.057-5.029 13.257zM621.714 886.857c25.143 0 45.714-20.571 45.714-45.714s-20.571-45.714-45.714-45.714-45.714 20.571-45.714 45.714 20.571 45.714 45.714 45.714zM1223.314 430.171c-13.257 26.743-30.857 59.886-52.571 99.657s-42.057 77.029-61.257 111.771c-18.971 34.743-38.4 69.714-58.286 105.143s-30.4 54.4-32 57.143c-6.857 12.571-17.6 18.743-32 18.743s-25.143-6.4-32-18.743c-1.6-2.743-12.114-21.714-32-57.143s-39.314-70.4-58.286-105.143c-18.971-34.743-39.314-72-61.029-111.771s-39.314-73.143-52.571-99.657c-13.257-26.743-20.114-42.057-20.114-46.171 0-27.886 8.914-52.8 26.514-74.971 17.829-22.171 40-39.314 67.2-52.114 26.971-12.571 54.629-21.943 82.514-28.343s54.857-9.143 80-9.143 51.657 3.2 79.771 9.371 55.543 15.771 82.514 28.343c26.971 12.571 49.371 29.943 67.2 52.114s26.514 47.086 26.514 74.971c0 3.886-6.629 19.429-20.114 45.943zM768 384l219.429 402.286 219.429-402.286h-438.857zM439.543 383.771c-21.714 39.771-42.057 77.029-61.257 111.771-18.971 34.743-38.4 69.714-58.286 105.143s-30.4 54.4-32 57.143c-6.857 12.571-17.6 18.743-32 18.743s-25.143-6.4-32-18.743c-1.6-2.743-12.114-21.714-32-57.143s-39.314-70.4-58.286-105.143c-18.971-34.743-39.314-72-61.257-111.771-21.714-39.771-39.314-73.143-52.571-99.657-13.257-26.743-19.886-42.286-19.886-46.4 0-27.886 8.914-52.8 26.514-74.971 17.829-22.171 40-39.314 67.2-52.114 26.971-12.571 54.629-21.943 82.514-28.343s54.629-9.143 79.771-9.143 51.657 3.2 79.771 9.371 55.543 15.771 82.514 28.343c26.971 12.571 49.371 29.943 67.2 52.114s26.514 47.086 26.514 74.971c0 4.114-6.629 19.657-20.114 46.171-13.257 26.514-30.629 59.886-52.343 99.657zM256 640l149.714-274.286h-299.429l149.714 274.286z" />
93
95
  </font></defs></svg>
@@ -171,9 +171,9 @@
171
171
  }
172
172
 
173
173
  iNewStart = oSettings._iDisplayLength * (this.value - 1);
174
- if (iNewStart >= oSettings.fnRecordsDisplay()) {
174
+ if (iNewStart >= oSettings.fnRecordsDisplay() || iNewStart < 0) {
175
175
  /* Display overrun */
176
- oSettings._iDisplayStart = (Math.ceil((oSettings.fnRecordsDisplay() - 1) /
176
+ oSettings._iDisplayStart = (Math.ceil(oSettings.fnRecordsDisplay() /
177
177
  oSettings._iDisplayLength) - 1) * oSettings._iDisplayLength;
178
178
  fnDraw(oSettings);
179
179
  return;
@@ -602,6 +602,7 @@
602
602
  var navElement = $('.nav-pf-vertical'),
603
603
  bodyContentElement = $('.container-pf-nav-pf-vertical'),
604
604
  toggleNavBarButton = $('.navbar-toggle'),
605
+ handleResize = true,
605
606
  explicitCollapse = false,
606
607
  subDesktop = false,
607
608
  hoverDelay = 500,
@@ -638,30 +639,12 @@
638
639
  });
639
640
  },
640
641
 
641
- setPrimaryActiveItem = function (item) {
642
- // Make the clicked on item active
643
- $(document).find('.nav-pf-vertical > .list-group > .list-group-item.active').each(function (index, element) {
644
- $(element).removeClass('active');
645
- });
646
- item.addClass('active');
647
- },
648
-
649
- setSecondaryActiveItem = function (item, $primaryParent) {
650
- $(document).find('.nav-pf-secondary-nav > .list-group > .list-group-item.active').each(function (index, element) {
651
- $(element).removeClass('active');
652
- });
653
- item.addClass('active');
642
+ setActiveItem = function (item) {
643
+ // remove all .active
644
+ $('.nav-pf-vertical .list-group-item.active').removeClass('active');
654
645
 
655
- setPrimaryActiveItem($primaryParent);
656
- },
657
-
658
- setTertiaryActiveItem = function (item, $secondaryParent, $primaryParent) {
659
- $(document).find('.nav-pf-tertiary-nav > .list-group > .list-group-item.active').each(function (index, element) {
660
- $(element).removeClass('active');
661
- });
662
- item.addClass('active');
663
-
664
- setSecondaryActiveItem($secondaryParent, $primaryParent);
646
+ // add .active to item and its parents
647
+ item.addClass('active').parents('.list-group-item').addClass('active');
665
648
  },
666
649
 
667
650
  updateSecondaryMenuDisplayAfterSelection = function () {
@@ -740,32 +723,42 @@
740
723
  }
741
724
  },
742
725
 
743
- checkNavState = function () {
744
- var width = $(window).width(), makeSecondaryVisible;
726
+ enterMobileState = function () {
727
+ if (!navElement.hasClass('hidden')) {
728
+ //Set the nav to being hidden
729
+ navElement.addClass('hidden');
730
+ navElement.removeClass('collapsed');
745
731
 
746
- // Check to see if we need to enter/exit the mobile state
747
- if (width < $.pfBreakpoints.tablet) {
748
- if (!navElement.hasClass('hidden')) {
749
- //Set the nav to being hidden
750
- navElement.addClass('hidden');
751
- navElement.removeClass('collapsed');
732
+ //Set the body class to the correct state
733
+ bodyContentElement.removeClass('collapsed-nav');
734
+ bodyContentElement.addClass('hidden-nav');
752
735
 
753
- //Set the body class to the correct state
754
- bodyContentElement.removeClass('collapsed-nav');
755
- bodyContentElement.addClass('hidden-nav');
736
+ // Reset the collapsed states
737
+ updateSecondaryCollapsedState(false);
738
+ updateTertiaryCollapsedState(false);
756
739
 
757
- // Reset the collapsed states
758
- updateSecondaryCollapsedState(false);
759
- updateTertiaryCollapsedState(false);
740
+ explicitCollapse = false;
741
+ }
742
+ },
760
743
 
761
- explicitCollapse = false;
762
- }
763
- } else if (navElement.hasClass('hidden')) {
764
- // Always remove the hidden & peek class
765
- navElement.removeClass('hidden show-mobile-nav');
744
+ exitMobileState = function () {
745
+ // Always remove the hidden & peek class
746
+ navElement.removeClass('hidden show-mobile-nav');
747
+
748
+ // Set the body class back to the default
749
+ bodyContentElement.removeClass('hidden-nav');
750
+ },
766
751
 
767
- // Set the body class back to the default
768
- bodyContentElement.removeClass('hidden-nav');
752
+ checkNavState = function () {
753
+ var width = $(window).width(), makeSecondaryVisible;
754
+ if (!handleResize) {
755
+ return;
756
+ }
757
+ // Check to see if we need to enter/exit the mobile state
758
+ if (width < $.pfBreakpoints.tablet && !explicitCollapse) {
759
+ enterMobileState();
760
+ } else if (navElement.hasClass('hidden')) {
761
+ exitMobileState();
769
762
  }
770
763
 
771
764
  // Check to see if we need to enter/exit the sub desktop state
@@ -861,43 +854,45 @@
861
854
  },
862
855
 
863
856
  bindMenuItemsBehavior = function (handleSelection) {
864
- $(document).find('.nav-pf-vertical > .list-group > .list-group-item').each(function (index, primaryItem) {
865
- var $primaryItem = $(primaryItem);
857
+ $(document).find('.nav-pf-vertical .list-group-item').each(function (index, item) {
858
+ var onClickFn,
859
+ $item = $(item),
860
+ $nav = $item.closest('[class*="nav-pf-"]');
861
+
862
+ if ($nav.hasClass('nav-pf-vertical')) {
863
+ // 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
864
+ onClickFn = function (event) {
865
+ var $this = $(this), $secondaryItem, $tertiaryItem, $activeItem;
866
+
867
+ if (!$this.hasClass('secondary-nav-item-pf')) {
868
+ hideSecondaryMenu();
869
+ if (inMobileState()) {
870
+ updateMobileMenu();
871
+ navElement.removeClass('show-mobile-nav');
872
+ }
873
+ if (handleSelection) {
874
+ setActiveItem($this);
875
+ // Don't process the click on the item
876
+ event.stopImmediatePropagation();
877
+ }
878
+ } else if (inMobileState()) {
879
+ updateMobileMenu($this);
880
+ } else if (handleSelection) {
881
+ $activeItem = $secondaryItem = $item.find('.nav-pf-secondary-nav > .list-group > .list-group-item').eq(0);
866
882
 
867
- // 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
868
- $primaryItem.on('click.pf.secondarynav.data-api', function (event) {
869
- var $this = $(this), $secondaryItem, tertiaryItem;
883
+ if ($secondaryItem.hasClass('tertiary-nav-item-pf')) {
884
+ $activeItem = $secondaryItem.find('.nav-pf-tertiary-nav > .list-group > .list-group-item').eq(0);
885
+ }
870
886
 
871
- if (!$this.hasClass('secondary-nav-item-pf')) {
872
- hideSecondaryMenu();
873
- if (inMobileState()) {
874
- updateMobileMenu();
875
- navElement.removeClass('show-mobile-nav');
876
- }
877
- if (handleSelection) {
878
- setPrimaryActiveItem($this);
879
- // Don't process the click on the item
887
+ setActiveItem($activeItem);
880
888
  event.stopImmediatePropagation();
881
889
  }
882
- } else if (inMobileState()) {
883
- updateMobileMenu($this);
884
- } else if (handleSelection) {
885
- $secondaryItem = $($primaryItem.find('.nav-pf-secondary-nav > .list-group > .list-group-item')[0]);
886
- if ($secondaryItem.hasClass('tertiary-nav-item-pf')) {
887
- tertiaryItem = $secondaryItem.find('.nav-pf-tertiary-nav > .list-group > .list-group-item')[0];
888
- setTertiaryActiveItem($(tertiaryItem), $secondaryItem, $primaryItem);
889
- } else {
890
- setSecondaryActiveItem($secondaryItem, $this);
891
- }
892
- event.stopImmediatePropagation();
893
- }
894
- });
890
+ };
895
891
 
896
- $primaryItem.find('.nav-pf-secondary-nav > .list-group > .list-group-item').each(function (index, secondaryItem) {
897
- var $secondaryItem = $(secondaryItem);
892
+ } else if ($nav.hasClass('nav-pf-secondary-nav')) {
898
893
  // 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
899
- $secondaryItem.on('click.pf.secondarynav.data-api', function (event) {
900
- var $this = $(this), tertiaryItem;
894
+ onClickFn = function (event) {
895
+ var $this = $(this), $tertiaryItem, $primaryItem;
901
896
  if (!$this.hasClass('tertiary-nav-item-pf')) {
902
897
  if (inMobileState()) {
903
898
  updateMobileMenu();
@@ -905,37 +900,39 @@
905
900
  }
906
901
  updateSecondaryMenuDisplayAfterSelection();
907
902
  if (handleSelection) {
908
- setSecondaryActiveItem($secondaryItem, $primaryItem);
903
+ setActiveItem($item);
909
904
  // Don't process the click on the item
910
905
  event.stopImmediatePropagation();
911
906
  }
912
907
  } else if (inMobileState()) {
908
+ $primaryItem = $item.parents('.list-group-item');
913
909
  updateMobileMenu($this, $primaryItem);
914
910
  event.stopImmediatePropagation();
915
911
  } else if (handleSelection) {
916
- tertiaryItem = $secondaryItem.find('.nav-pf-tertiary-nav > .list-group > .list-group-item')[0];
917
- setTertiaryActiveItem($(tertiaryItem), $secondaryItem, $primaryItem);
912
+ $tertiaryItem = $item.find('.nav-pf-tertiary-nav > .list-group > .list-group-item').eq(0);
913
+ setActiveItem($tertiaryItem);
918
914
  event.stopImmediatePropagation();
919
915
  }
920
- });
916
+ };
921
917
 
922
- $secondaryItem.find('.nav-pf-tertiary-nav > .list-group > .list-group-item').each(function (index, tertiaryItem) {
923
- var $tertiaryItem = $(tertiaryItem);
924
- // Set tertiary nav active item on click
925
- $tertiaryItem.on('click.pf.secondarynav.data-api', function (event) {
926
- if (inMobileState()) {
927
- updateMobileMenu();
928
- navElement.removeClass('show-mobile-nav');
929
- }
930
- updateSecondaryMenuDisplayAfterSelection();
931
- if (handleSelection) {
932
- setTertiaryActiveItem($tertiaryItem, $secondaryItem, $primaryItem);
933
- // Don't process the click on the item
934
- event.stopImmediatePropagation();
935
- }
936
- });
937
- });
938
- });
918
+ } else if ($nav.hasClass('nav-pf-tertiary-nav')) {
919
+ // Set tertiary nav active item on click
920
+ onClickFn = function (event) {
921
+ if (inMobileState()) {
922
+ updateMobileMenu();
923
+ navElement.removeClass('show-mobile-nav');
924
+ }
925
+ updateSecondaryMenuDisplayAfterSelection();
926
+ if (handleSelection) {
927
+ setActiveItem($item);
928
+ // Don't process the click on the item
929
+ event.stopImmediatePropagation();
930
+ }
931
+ };
932
+ }
933
+
934
+ // register event handler
935
+ $item.on('click.pf.secondarynav.data-api', onClickFn);
939
936
  });
940
937
 
941
938
  $(document).find('.secondary-nav-item-pf').each(function (index, secondaryItem) {
@@ -1117,15 +1114,31 @@
1117
1114
  navElement.removeClass('hide-nav-pf');
1118
1115
  bodyContentElement.removeClass('hide-nav-pf');
1119
1116
  forceResize(250);
1117
+ },
1118
+ self = {
1119
+ hideMenu: function () {
1120
+ handleResize = false;
1121
+ enterMobileState();
1122
+ },
1123
+ showMenu: function () {
1124
+ handleResize = true;
1125
+ exitMobileState();
1126
+ },
1127
+ isVisible: function () {
1128
+ return handleResize;
1129
+ }
1120
1130
  };
1121
1131
 
1122
- //Listen for the window resize event and collapse/hide as needed
1123
- $(window).on('resize', function () {
1124
- checkNavState();
1125
- enableTransitions();
1126
- });
1132
+ if (!$.fn.setupVerticalNavigation.self) {
1133
+ $.fn.setupVerticalNavigation.self = self;
1134
+ //Listen for the window resize event and collapse/hide as needed
1135
+ $(window).on('resize', function () {
1136
+ checkNavState();
1137
+ enableTransitions();
1138
+ });
1127
1139
 
1128
- init(handleItemSelections);
1140
+ init(handleItemSelections);
1141
+ }
1142
+ return $.fn.setupVerticalNavigation.self;
1129
1143
  };
1130
1144
  }(jQuery));
1131
-
@@ -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 javascript regular expression syntax of the search term.</li><li>Check that the correct menu option is chosen (token ID vs. user ID).</li><li>Use wildcards (* to match 0 or more characters, + to match 1 or more characters, ? to match 0 or 1 character).</li><li>Clear the search field, then click Search to return to the 20 most recent records.</li></ul>",sSearch:""},sPaginationType:"bootstrap_input",oSearch:{sSearch:"",bRegex:!0,bSmart:!1}}),$.extend($.fn.dataTableExt.oStdClasses,{sWrapper:"dataTables_wrapper"}),$.fn.dataTableExt.oApi.fnPagingInfo=function(oSettings){return{iStart:oSettings._iDisplayStart,iEnd:oSettings.fnDisplayEnd(),iLength:oSettings._iDisplayLength,iTotal:oSettings.fnRecordsTotal(),iFilteredTotal:oSettings.fnRecordsDisplay(),iPage:oSettings._iDisplayLength===-1?0:Math.ceil(oSettings._iDisplayStart/oSettings._iDisplayLength),iTotalPages:oSettings._iDisplayLength===-1?0:Math.ceil(oSettings.fnRecordsDisplay()/oSettings._iDisplayLength)}},$.extend($.fn.dataTableExt.oPagination,{bootstrap_input:{fnInit:function(oSettings,nPaging,fnDraw){var els,nInput,fnClickHandler=function(e){e.preventDefault(),oSettings.oApi._fnPageChange(oSettings,e.data.action)&&fnDraw(oSettings)};$(nPaging).append('<ul class="pagination"> <li class="first disabled"><span class="i fa fa-angle-double-left"></span></li> <li class="prev disabled"><span class="i fa fa-angle-left"></span></li></ul><div class="pagination-input"> <input type="text" class="paginate_input"> <span class="paginate_of">of <b>3</b></span></div><ul class="pagination"> <li class="next disabled"><span class="i fa fa-angle-right"></span></li> <li class="last disabled"><span class="i fa fa-angle-double-right"></span></li></ul>'),els=$("li",nPaging),$(els[0]).bind("click.DT",{action:"first"},fnClickHandler),$(els[1]).bind("click.DT",{action:"previous"},fnClickHandler),$(els[2]).bind("click.DT",{action:"next"},fnClickHandler),$(els[3]).bind("click.DT",{action:"last"},fnClickHandler),nInput=$("input",nPaging),$(nInput).keyup(function(e){var iNewStart;if(38===e.which||39===e.which?this.value+=1:(37===e.which||40===e.which)&&this.value>1&&(this.value-=1),""!==this.value&&this.value.match(/[0-9]/)){if(iNewStart=oSettings._iDisplayLength*(this.value-1),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,fnDraw){var i,oPaging=oSettings.oInstance.fnPagingInfo(),an=oSettings.aanFeatures.p,ien=an.length,iPages=Math.ceil(oSettings.fnRecordsDisplay()/oSettings._iDisplayLength),iCurrentPage=Math.ceil(oSettings._iDisplayStart/oSettings._iDisplayLength)+1;for(i=0;i<ien;i+=1)$(".paginate_input",an[i]).val(iCurrentPage).siblings(".paginate_of").find("b").html(iPages),0===oPaging.iPage?($("li.first",an[i]).addClass("disabled"),$("li.prev",an[i]).addClass("disabled")):($("li.first",an[i]).removeClass("disabled"),$("li.prev",an[i]).removeClass("disabled")),oPaging.iPage===oPaging.iTotalPages-1||0===oPaging.iTotalPages?($("li.next",an[i]).addClass("disabled"),$("li.last",an[i]).addClass("disabled")):($("li.next",an[i]).removeClass("disabled"),$("li.last",an[i]).removeClass("disabled"))}}}))}(jQuery),function($){"use strict";void 0!==patternfly&&($.pfBreakpoints=patternfly.pfBreakpoints)}(jQuery),function($){"use strict";$.fn.navigation=function(){var navElement=$(".layout-pf-alt-fixed .nav-pf-vertical-alt"),bodyContentElement=$(".container-pf-alt-nav-pf-vertical-alt"),toggleNavBarButton=$(".navbar-toggle"),explicitCollapse=!1,checkNavState=function(){var width=$(window).width();navElement.removeClass("hidden show-mobile-nav collapsed"),bodyContentElement.removeClass("collapsed-nav hidden-nav"),(width<$.pfBreakpoints.desktop||explicitCollapse)&&(navElement.addClass("collapsed"),bodyContentElement.addClass("collapsed-nav")),width<$.pfBreakpoints.tablet&&(navElement.addClass("hidden"),navElement.removeClass("collapsed"),bodyContentElement.removeClass("collapsed-nav"),bodyContentElement.addClass("hidden-nav"))},collapseMenu=function(){navElement.addClass("collapsed"),bodyContentElement.addClass("collapsed-nav"),explicitCollapse=!0},enableTransitions=function(){$("html").addClass("transitions")},expandMenu=function(){navElement.removeClass("collapsed"),bodyContentElement.removeClass("collapsed-nav"),explicitCollapse=!1},bindMenuBehavior=function(){toggleNavBarButton.on("click",function(e){var inMobileState=bodyContentElement.hasClass("hidden-nav");enableTransitions(),inMobileState&&navElement.hasClass("show-mobile-nav")?navElement.removeClass("show-mobile-nav"):inMobileState?navElement.addClass("show-mobile-nav"):navElement.hasClass("collapsed")?expandMenu():collapseMenu()})},setTooltips=function(){$('.nav-pf-vertical-alt [data-toggle="tooltip"]').tooltip({container:"body",delay:{show:"500",hide:"200"}}),$(".nav-pf-vertical-alt").on("show.bs.tooltip",function(e){return $(this).hasClass("collapsed")})},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),charsRemaining<0?$taFld.trigger("overCharsMaxLimitEvent",$taFld.attr("id")):$taFld.trigger("underCharsMaxLimitEvent",$taFld.attr("id"))};return this.on("paste",function(event){setTimeout(function(){var maxTxt,charsLength=$taFld.val().length;settings.blockInputAtMaxLimit&&charsLength>settings.charsMaxLimit&&(maxTxt=$taFld.val(),maxTxt=maxTxt.substring(0,settings.charsMaxLimit),$taFld.val(maxTxt),charsLength=$taFld.val().length),charsRemainingFn(charsLength)},100)}),this.keyup(function(event){charsRemainingFn($taFld.val().length)}),this.keydown(function(event){var charsLength=$taFld.val().length;settings.blockInputAtMaxLimit&&charsLength>=settings.charsMaxLimit&&8!==event.keyCode&&event.preventDefault()}),this}}(jQuery),function($){"use strict";void 0!==patternfly&&($.pfPaletteColors=patternfly.pfPaletteColors)}(jQuery),function($){"use strict";void 0!==patternfly&&($.fn.pfSetDonutChartTitle=patternfly.pfSetDonutChartTitle,$.fn.pfDonutTooltipContents=patternfly.pfDonutTooltipContents,$.fn.pfGetUtilizationDonutTooltipContentsFn=patternfly.pfGetUtilizationDonutTooltipContentsFn,$.fn.pfGetBarChartTooltipContentsFn=patternfly.pfGetBarChartTooltipContentsFn,$.fn.pfSingleLineChartTooltipContentsFn=patternfly.pfSingleLineChartTooltipContentsFn,$.fn.pfPieTooltipContents=patternfly.pfPieTooltipContents,$.fn.c3ChartDefaults=patternfly.c3ChartDefaults)}(jQuery),function($){"use strict";$.fn.initCollapseHeights=function(scrollSelector){var setCollapseHeights,parentElement=this,targetScrollSelector=scrollSelector;setCollapseHeights=function(){var height,openPanel,contentHeight,bodyHeight,overflowY="hidden";height=parentElement.height(),openPanel=parentElement.find(".collapse.in"),openPanel&&openPanel.length>0&&openPanel.removeClass("in"),contentHeight=0,parentElement.children().each($.proxy(function(i,element){var $element=$(element);contentHeight+=$element.outerHeight(!0)},parentElement)).end(),bodyHeight=height-contentHeight,bodyHeight<25&&(bodyHeight=25,overflowY="auto"),openPanel&&openPanel.length>0&&openPanel.addClass("in"),setTimeout(function(){parentElement.find('[data-toggle="collapse"]').each($.proxy(function(i,element){var $element,selector,$target,scrollElement,innerHeight=0;$element=$(element),selector=$element.attr("data-target"),selector||(selector=$element.attr("href")),$target=$(selector),scrollElement=$target,targetScrollSelector&&(scrollElement=$target.find(targetScrollSelector),1===scrollElement.length?(innerHeight=0,$target.children().each($.proxy(function(j,sibling){var $sibling=$(sibling);sibling!==scrollElement[0]&&(innerHeight+=$sibling.outerHeight(!0))},$target)).end(),bodyHeight-=innerHeight):scrollElement=$target),scrollElement.css({"max-height":bodyHeight-innerHeight+"px","overflow-y":"auto"})},parentElement)).end(),parentElement.css({"overflow-y":overflowY})},100)},setCollapseHeights(),$(window).resize(setCollapseHeights)}}(jQuery),function($){"use strict";function getParent(rows,node){var parent=node.attr("data-parent");if("string"==typeof parent)return parent=isNaN(parent)?rows.closest(parent):$(rows[parseInt(parent,10)])}function renderItem(item,parent){parent&&(parent.find(".treegrid-node > span.expand-icon").toggleClass("fa-angle-right",parent.hasClass("collapsed")).toggleClass("fa-angle-down",!parent.hasClass("collapsed")),item.toggleClass("hidden",parent.hasClass("collapsed")),parent.hasClass("collapsed")&&item.addClass("collapsed"))}function reStripe(tree){tree.find("tbody > tr").removeClass("odd"),tree.find("tbody > tr:not(.hidden):odd").addClass("odd")}$.fn.treegrid=function(options){var i,rows,_this;rows=this.find("tbody > tr"),_this=this,$.each(rows,function(){var node,parent;if(node=$(this),parent=getParent(rows,node),node.children(".treegrid-node").prepend('<span class="icon expand-icon fa"/>'),node.children(".treegrid-node").on("click",function(e){var icon=node.find("span.expand-icon");options&&"function"==typeof options.callback&&options.callback(e),icon.hasClass("fa-angle-right")&&node.removeClass("collapsed"),icon.hasClass("fa-angle-down")&&node.addClass("collapsed"),$.each(rows.slice(rows.index(node)+1),function(){renderItem($(this),getParent(rows,$(this)))}),reStripe(_this)}),parent){for(i=parent.find(".treegrid-node > span.indent").length+1;i>0;i-=1)node.children(".treegrid-node").prepend('<span class="indent"/>');renderItem(node,parent)}}),reStripe(_this)}}(jQuery),function($){"use strict";$.fn.setupVerticalNavigation=function(handleItemSelections){var navElement=$(".nav-pf-vertical"),bodyContentElement=$(".container-pf-nav-pf-vertical"),toggleNavBarButton=$(".navbar-toggle"),explicitCollapse=!1,subDesktop=!1,hoverDelay=500,hideDelay=hoverDelay+200,inMobileState=function(){return bodyContentElement.hasClass("hidden-nav")},forceResize=function(delay){setTimeout(function(){$(window).trigger("resize")},delay)},showSecondaryMenu=function(){!inMobileState()&&subDesktop||(navElement.addClass("secondary-visible-pf"),bodyContentElement.addClass("secondary-visible-pf")),subDesktop||forceResize(100)},hideSecondaryMenu=function(){navElement.removeClass("secondary-visible-pf"),bodyContentElement.removeClass("secondary-visible-pf"),navElement.find(".mobile-nav-item-pf").each(function(index,item){$(item).removeClass("mobile-nav-item-pf")})},setPrimaryActiveItem=function(item){$(document).find(".nav-pf-vertical > .list-group > .list-group-item.active").each(function(index,element){$(element).removeClass("active")}),item.addClass("active")},setSecondaryActiveItem=function(item,$primaryParent){$(document).find(".nav-pf-secondary-nav > .list-group > .list-group-item.active").each(function(index,element){$(element).removeClass("active")}),item.addClass("active"),setPrimaryActiveItem($primaryParent)},setTertiaryActiveItem=function(item,$secondaryParent,$primaryParent){$(document).find(".nav-pf-tertiary-nav > .list-group > .list-group-item.active").each(function(index,element){$(element).removeClass("active")}),item.addClass("active"),setSecondaryActiveItem($secondaryParent,$primaryParent)},updateSecondaryMenuDisplayAfterSelection=function(){inMobileState()?(navElement.removeClass("show-mobile-nav"),hideSecondaryMenu(),navElement.find(".mobile-nav-item-pf").each(function(index,item){$(item).removeClass("mobile-nav-item-pf")})):showSecondaryMenu()},updateSecondaryCollapsedState=function(setCollapsed,collapsedItem){setCollapsed?(collapsedItem.addClass("collapsed"),navElement.addClass("collapsed-secondary-nav-pf"),bodyContentElement.addClass("collapsed-secondary-nav-pf")):(collapsedItem?collapsedItem.removeClass("collapsed"):navElement.find('[data-toggle="collapse-secondary-nav"]').each(function(index,element){var $e=$(element);$e.removeClass("collapsed")}),navElement.removeClass("collapsed-secondary-nav-pf"),bodyContentElement.removeClass("collapsed-secondary-nav-pf"))},updateTertiaryCollapsedState=function(setCollapsed,collapsedItem){setCollapsed?(collapsedItem.addClass("collapsed"),navElement.addClass("collapsed-tertiary-nav-pf"),bodyContentElement.addClass("collapsed-tertiary-nav-pf"),updateSecondaryCollapsedState(!1)):(collapsedItem?collapsedItem.removeClass("collapsed"):navElement.find('[data-toggle="collapse-tertiary-nav"]').each(function(index,element){var $e=$(element);$e.removeClass("collapsed")}),navElement.removeClass("collapsed-tertiary-nav-pf"),bodyContentElement.removeClass("collapsed-tertiary-nav-pf"))},updateMobileMenu=function(selected,secondaryItem){$(document).find(".list-group-item.mobile-nav-item-pf").each(function(index,item){$(item).removeClass("mobile-nav-item-pf")}),$(document).find(".list-group-item.mobile-secondary-item-pf").each(function(index,item){$(item).removeClass("mobile-secondary-item-pf")}),selected?(selected.addClass("mobile-nav-item-pf"),secondaryItem?(secondaryItem.addClass("mobile-secondary-item-pf"),navElement.removeClass("show-mobile-secondary"),navElement.addClass("show-mobile-tertiary")):(navElement.addClass("show-mobile-secondary"),navElement.removeClass("show-mobile-tertiary"))):(navElement.removeClass("show-mobile-secondary"),navElement.removeClass("show-mobile-tertiary"))},checkNavState=function(){var makeSecondaryVisible,width=$(window).width();width<$.pfBreakpoints.tablet?navElement.hasClass("hidden")||(navElement.addClass("hidden"),navElement.removeClass("collapsed"),bodyContentElement.removeClass("collapsed-nav"),bodyContentElement.addClass("hidden-nav"),updateSecondaryCollapsedState(!1),updateTertiaryCollapsedState(!1),explicitCollapse=!1):navElement.hasClass("hidden")&&(navElement.removeClass("hidden show-mobile-nav"),bodyContentElement.removeClass("hidden-nav")),width<$.pfBreakpoints.desktop?(subDesktop||(navElement.addClass("collapsed"),bodyContentElement.addClass("collapsed-nav")),width>=$.pfBreakpoints.tablet&&hideSecondaryMenu(),subDesktop=!0):(makeSecondaryVisible=subDesktop&&navElement.find(".secondary-nav-item-pf.active").length>0,subDesktop=!1,makeSecondaryVisible&&showSecondaryMenu()),explicitCollapse?(navElement.addClass("collapsed"),bodyContentElement.addClass("collapsed-nav")):(navElement.removeClass("collapsed"),bodyContentElement.removeClass("collapsed-nav"))},collapseMenu=function(){navElement.addClass("collapsed"),bodyContentElement.addClass("collapsed-nav"),subDesktop&&hideSecondaryMenu(),explicitCollapse=!0},enableTransitions=function(){$("html").addClass("transitions")},expandMenu=function(){navElement.removeClass("collapsed"),bodyContentElement.removeClass("collapsed-nav"),explicitCollapse=!1,subDesktop||forceResize(100)},bindMenuBehavior=function(){toggleNavBarButton.on("click",function(e){enableTransitions(),inMobileState()?navElement.hasClass("show-mobile-nav")?navElement.removeClass("show-mobile-nav"):(updateMobileMenu(),navElement.addClass("show-mobile-nav")):navElement.hasClass("collapsed")?(window.localStorage.setItem("patternfly-navigation-primary","expanded"),expandMenu()):(window.localStorage.setItem("patternfly-navigation-primary","collapsed"),collapseMenu())})},forceHideSecondaryMenu=function(){navElement.addClass("force-hide-secondary-nav-pf"),setTimeout(function(){navElement.removeClass("force-hide-secondary-nav-pf")},500)},bindMenuItemsBehavior=function(handleSelection){$(document).find(".nav-pf-vertical > .list-group > .list-group-item").each(function(index,primaryItem){var $primaryItem=$(primaryItem);$primaryItem.on("click.pf.secondarynav.data-api",function(event){var $secondaryItem,tertiaryItem,$this=$(this);$this.hasClass("secondary-nav-item-pf")?inMobileState()?updateMobileMenu($this):handleSelection&&($secondaryItem=$($primaryItem.find(".nav-pf-secondary-nav > .list-group > .list-group-item")[0]),$secondaryItem.hasClass("tertiary-nav-item-pf")?(tertiaryItem=$secondaryItem.find(".nav-pf-tertiary-nav > .list-group > .list-group-item")[0],setTertiaryActiveItem($(tertiaryItem),$secondaryItem,$primaryItem)):setSecondaryActiveItem($secondaryItem,$this),event.stopImmediatePropagation()):(hideSecondaryMenu(),inMobileState()&&(updateMobileMenu(),navElement.removeClass("show-mobile-nav")),handleSelection&&(setPrimaryActiveItem($this),event.stopImmediatePropagation()))}),$primaryItem.find(".nav-pf-secondary-nav > .list-group > .list-group-item").each(function(index,secondaryItem){var $secondaryItem=$(secondaryItem);$secondaryItem.on("click.pf.secondarynav.data-api",function(event){var tertiaryItem,$this=$(this);$this.hasClass("tertiary-nav-item-pf")?inMobileState()?(updateMobileMenu($this,$primaryItem),event.stopImmediatePropagation()):handleSelection&&(tertiaryItem=$secondaryItem.find(".nav-pf-tertiary-nav > .list-group > .list-group-item")[0],setTertiaryActiveItem($(tertiaryItem),$secondaryItem,$primaryItem),event.stopImmediatePropagation()):(inMobileState()&&(updateMobileMenu(),navElement.removeClass("show-mobile-nav")),updateSecondaryMenuDisplayAfterSelection(),handleSelection&&(setSecondaryActiveItem($secondaryItem,$primaryItem),event.stopImmediatePropagation()))}),$secondaryItem.find(".nav-pf-tertiary-nav > .list-group > .list-group-item").each(function(index,tertiaryItem){var $tertiaryItem=$(tertiaryItem);$tertiaryItem.on("click.pf.secondarynav.data-api",function(event){inMobileState()&&(updateMobileMenu(),navElement.removeClass("show-mobile-nav")),updateSecondaryMenuDisplayAfterSelection(),handleSelection&&(setTertiaryActiveItem($tertiaryItem,$secondaryItem,$primaryItem),event.stopImmediatePropagation())})})})}),$(document).find(".secondary-nav-item-pf").each(function(index,secondaryItem){var $secondaryItem=$(secondaryItem);$secondaryItem.on("click.pf.secondarynav.data-api",'[data-toggle="collapse-secondary-nav"]',function(e){var $this=$(this);inMobileState()?(updateMobileMenu(),e.stopImmediatePropagation()):$this.hasClass("collapsed")?(window.localStorage.setItem("patternfly-navigation-secondary","expanded"),window.localStorage.setItem("patternfly-navigation-tertiary","expanded"),updateSecondaryCollapsedState(!1,$this),forceHideSecondaryMenu()):(window.localStorage.setItem("patternfly-navigation-secondary","collapsed"),updateSecondaryCollapsedState(!0,$this)),navElement.removeClass("hover-secondary-nav-pf"),handleSelection&&e.stopImmediatePropagation()}),$secondaryItem.find(".tertiary-nav-item-pf").each(function(index,primaryItem){var $primaryItem=$(primaryItem);$primaryItem.on("click.pf.tertiarynav.data-api",'[data-toggle="collapse-tertiary-nav"]',function(e){var $this=$(this);inMobileState()?(updateMobileMenu($secondaryItem),e.stopImmediatePropagation()):$this.hasClass("collapsed")?(window.localStorage.setItem("patternfly-navigation-secondary","expanded"),window.localStorage.setItem("patternfly-navigation-tertiary","expanded"),updateTertiaryCollapsedState(!1,$this),forceHideSecondaryMenu()):(window.localStorage.setItem("patternfly-navigation-tertiary","collapsed"),updateTertiaryCollapsedState(!0,$this)),navElement.removeClass("hover-secondary-nav-pf"),navElement.removeClass("hover-tertiary-nav-pf"),handleSelection&&e.stopImmediatePropagation()})})}),$(document).on("mouseenter.pf.tertiarynav.data-api",".secondary-nav-item-pf",function(e){var $this=$(this);inMobileState()||(void 0!==$this[0].navUnHoverTimeout?(clearTimeout($this[0].navUnHoverTimeout),$this[0].navUnHoverTimeout=void 0):void 0===$this[0].navHoverTimeout&&($this[0].navHoverTimeout=setTimeout(function(){navElement.addClass("hover-secondary-nav-pf"),$this.addClass("is-hover"),$this[0].navHoverTimeout=void 0},hoverDelay)))}),$(document).on("mouseleave.pf.tertiarynav.data-api",".secondary-nav-item-pf",function(e){var $this=$(this);void 0!==$this[0].navHoverTimeout?(clearTimeout($this[0].navHoverTimeout),$this[0].navHoverTimeout=void 0):void 0===$this[0].navUnHoverTimeout&&($this[0].navUnHoverTimeout=setTimeout(function(){navElement.find(".secondary-nav-item-pf.is-hover").length<=1&&navElement.removeClass("hover-secondary-nav-pf"),$this.removeClass("is-hover"),$this[0].navUnHoverTimeout=void 0},hideDelay))}),$(document).on("mouseover.pf.tertiarynav.data-api",".tertiary-nav-item-pf",function(e){var $this=$(this);inMobileState()||(void 0!==$this[0].navUnHoverTimeout?(clearTimeout($this[0].navUnHoverTimeout),$this[0].navUnHoverTimeout=void 0):void 0===$this[0].navHoverTimeout&&($this[0].navHoverTimeout=setTimeout(function(){navElement.addClass("hover-tertiary-nav-pf"),$this.addClass("is-hover"),$this[0].navHoverTimeout=void 0},hoverDelay)))}),$(document).on("mouseout.pf.tertiarynav.data-api",".tertiary-nav-item-pf",function(e){var $this=$(this);void 0!==$this[0].navHoverTimeout?(clearTimeout($this[0].navHoverTimeout),$this[0].navHoverTimeout=void 0):void 0===$this[0].navUnHoverTimeout&&($this[0].navUnHoverTimeout=setTimeout(function(){navElement.find(".tertiary-nav-item-pf.is-hover").length<=1&&navElement.removeClass("hover-tertiary-nav-pf"),$this.removeClass("is-hover"),$this[0].navUnHoverTimeout=void 0},hideDelay))})},loadFromLocalStorage=function(){inMobileState()||("collapsed"===window.localStorage.getItem("patternfly-navigation-primary")&&collapseMenu(),$(".nav-pf-vertical.nav-pf-vertical-collapsible-menus").length>0&&("collapsed"===window.localStorage.getItem("patternfly-navigation-secondary")&&updateSecondaryCollapsedState(!0,$(".secondary-nav-item-pf.active [data-toggle=collapse-secondary-nav]")),"collapsed"===window.localStorage.getItem("patternfly-navigation-tertiary")&&updateTertiaryCollapsedState(!0,$(".tertiary-nav-item-pf.active [data-toggle=collapse-tertiary-nav]"))))},setTooltips=function(){var tooltipOptions={container:"body",placement:"bottom",delay:{show:"500",hide:"200"},template:'<div class="nav-pf-vertical-tooltip tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>'};$('.nav-pf-vertical [data-toggle="tooltip"]').tooltip(tooltipOptions),$(".nav-pf-vertical").on("show.bs.tooltip",function(e){return $(this).hasClass("collapsed")})},init=function(handleItemSelections){navElement.addClass("hide-nav-pf"),bodyContentElement.addClass("hide-nav-pf"),checkNavState(),bindMenuBehavior(),bindMenuItemsBehavior(handleItemSelections),setTooltips(),loadFromLocalStorage(),navElement.removeClass("hide-nav-pf"),bodyContentElement.removeClass("hide-nav-pf"),forceResize(250)};$(window).on("resize",function(){checkNavState(),enableTransitions()}),init(handleItemSelections)}}(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 javascript regular expression syntax of the search term.</li><li>Check that the correct menu option is chosen (token ID vs. user ID).</li><li>Use wildcards (* to match 0 or more characters, + to match 1 or more characters, ? to match 0 or 1 character).</li><li>Clear the search field, then click Search to return to the 20 most recent records.</li></ul>",sSearch:""},sPaginationType:"bootstrap_input",oSearch:{sSearch:"",bRegex:!0,bSmart:!1}}),$.extend($.fn.dataTableExt.oStdClasses,{sWrapper:"dataTables_wrapper"}),$.fn.dataTableExt.oApi.fnPagingInfo=function(oSettings){return{iStart:oSettings._iDisplayStart,iEnd:oSettings.fnDisplayEnd(),iLength:oSettings._iDisplayLength,iTotal:oSettings.fnRecordsTotal(),iFilteredTotal:oSettings.fnRecordsDisplay(),iPage:oSettings._iDisplayLength===-1?0:Math.ceil(oSettings._iDisplayStart/oSettings._iDisplayLength),iTotalPages:oSettings._iDisplayLength===-1?0:Math.ceil(oSettings.fnRecordsDisplay()/oSettings._iDisplayLength)}},$.extend($.fn.dataTableExt.oPagination,{bootstrap_input:{fnInit:function(oSettings,nPaging,fnDraw){var els,nInput,fnClickHandler=function(e){e.preventDefault(),oSettings.oApi._fnPageChange(oSettings,e.data.action)&&fnDraw(oSettings)};$(nPaging).append('<ul class="pagination"> <li class="first disabled"><span class="i fa fa-angle-double-left"></span></li> <li class="prev disabled"><span class="i fa fa-angle-left"></span></li></ul><div class="pagination-input"> <input type="text" class="paginate_input"> <span class="paginate_of">of <b>3</b></span></div><ul class="pagination"> <li class="next disabled"><span class="i fa fa-angle-right"></span></li> <li class="last disabled"><span class="i fa fa-angle-double-right"></span></li></ul>'),els=$("li",nPaging),$(els[0]).bind("click.DT",{action:"first"},fnClickHandler),$(els[1]).bind("click.DT",{action:"previous"},fnClickHandler),$(els[2]).bind("click.DT",{action:"next"},fnClickHandler),$(els[3]).bind("click.DT",{action:"last"},fnClickHandler),nInput=$("input",nPaging),$(nInput).keyup(function(e){var iNewStart;if(38===e.which||39===e.which?this.value+=1:(37===e.which||40===e.which)&&this.value>1&&(this.value-=1),""!==this.value&&this.value.match(/[0-9]/)){if(iNewStart=oSettings._iDisplayLength*(this.value-1),iNewStart>=oSettings.fnRecordsDisplay()||iNewStart<0)return oSettings._iDisplayStart=(Math.ceil(oSettings.fnRecordsDisplay()/oSettings._iDisplayLength)-1)*oSettings._iDisplayLength,void fnDraw(oSettings);oSettings._iDisplayStart=iNewStart,fnDraw(oSettings)}})},fnUpdate:function(oSettings,fnDraw){var i,oPaging=oSettings.oInstance.fnPagingInfo(),an=oSettings.aanFeatures.p,ien=an.length,iPages=Math.ceil(oSettings.fnRecordsDisplay()/oSettings._iDisplayLength),iCurrentPage=Math.ceil(oSettings._iDisplayStart/oSettings._iDisplayLength)+1;for(i=0;i<ien;i+=1)$(".paginate_input",an[i]).val(iCurrentPage).siblings(".paginate_of").find("b").html(iPages),0===oPaging.iPage?($("li.first",an[i]).addClass("disabled"),$("li.prev",an[i]).addClass("disabled")):($("li.first",an[i]).removeClass("disabled"),$("li.prev",an[i]).removeClass("disabled")),oPaging.iPage===oPaging.iTotalPages-1||0===oPaging.iTotalPages?($("li.next",an[i]).addClass("disabled"),$("li.last",an[i]).addClass("disabled")):($("li.next",an[i]).removeClass("disabled"),$("li.last",an[i]).removeClass("disabled"))}}}))}(jQuery),function($){"use strict";void 0!==patternfly&&($.pfBreakpoints=patternfly.pfBreakpoints)}(jQuery),function($){"use strict";$.fn.navigation=function(){var navElement=$(".layout-pf-alt-fixed .nav-pf-vertical-alt"),bodyContentElement=$(".container-pf-alt-nav-pf-vertical-alt"),toggleNavBarButton=$(".navbar-toggle"),explicitCollapse=!1,checkNavState=function(){var width=$(window).width();navElement.removeClass("hidden show-mobile-nav collapsed"),bodyContentElement.removeClass("collapsed-nav hidden-nav"),(width<$.pfBreakpoints.desktop||explicitCollapse)&&(navElement.addClass("collapsed"),bodyContentElement.addClass("collapsed-nav")),width<$.pfBreakpoints.tablet&&(navElement.addClass("hidden"),navElement.removeClass("collapsed"),bodyContentElement.removeClass("collapsed-nav"),bodyContentElement.addClass("hidden-nav"))},collapseMenu=function(){navElement.addClass("collapsed"),bodyContentElement.addClass("collapsed-nav"),explicitCollapse=!0},enableTransitions=function(){$("html").addClass("transitions")},expandMenu=function(){navElement.removeClass("collapsed"),bodyContentElement.removeClass("collapsed-nav"),explicitCollapse=!1},bindMenuBehavior=function(){toggleNavBarButton.on("click",function(e){var inMobileState=bodyContentElement.hasClass("hidden-nav");enableTransitions(),inMobileState&&navElement.hasClass("show-mobile-nav")?navElement.removeClass("show-mobile-nav"):inMobileState?navElement.addClass("show-mobile-nav"):navElement.hasClass("collapsed")?expandMenu():collapseMenu()})},setTooltips=function(){$('.nav-pf-vertical-alt [data-toggle="tooltip"]').tooltip({container:"body",delay:{show:"500",hide:"200"}}),$(".nav-pf-vertical-alt").on("show.bs.tooltip",function(e){return $(this).hasClass("collapsed")})},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),charsRemaining<0?$taFld.trigger("overCharsMaxLimitEvent",$taFld.attr("id")):$taFld.trigger("underCharsMaxLimitEvent",$taFld.attr("id"))};return this.on("paste",function(event){setTimeout(function(){var maxTxt,charsLength=$taFld.val().length;settings.blockInputAtMaxLimit&&charsLength>settings.charsMaxLimit&&(maxTxt=$taFld.val(),maxTxt=maxTxt.substring(0,settings.charsMaxLimit),$taFld.val(maxTxt),charsLength=$taFld.val().length),charsRemainingFn(charsLength)},100)}),this.keyup(function(event){charsRemainingFn($taFld.val().length)}),this.keydown(function(event){var charsLength=$taFld.val().length;settings.blockInputAtMaxLimit&&charsLength>=settings.charsMaxLimit&&8!==event.keyCode&&event.preventDefault()}),this}}(jQuery),function($){"use strict";void 0!==patternfly&&($.pfPaletteColors=patternfly.pfPaletteColors)}(jQuery),function($){"use strict";void 0!==patternfly&&($.fn.pfSetDonutChartTitle=patternfly.pfSetDonutChartTitle,$.fn.pfDonutTooltipContents=patternfly.pfDonutTooltipContents,$.fn.pfGetUtilizationDonutTooltipContentsFn=patternfly.pfGetUtilizationDonutTooltipContentsFn,$.fn.pfGetBarChartTooltipContentsFn=patternfly.pfGetBarChartTooltipContentsFn,$.fn.pfSingleLineChartTooltipContentsFn=patternfly.pfSingleLineChartTooltipContentsFn,$.fn.pfPieTooltipContents=patternfly.pfPieTooltipContents,$.fn.c3ChartDefaults=patternfly.c3ChartDefaults)}(jQuery),function($){"use strict";$.fn.initCollapseHeights=function(scrollSelector){var setCollapseHeights,parentElement=this,targetScrollSelector=scrollSelector;setCollapseHeights=function(){var height,openPanel,contentHeight,bodyHeight,overflowY="hidden";height=parentElement.height(),openPanel=parentElement.find(".collapse.in"),openPanel&&openPanel.length>0&&openPanel.removeClass("in"),contentHeight=0,parentElement.children().each($.proxy(function(i,element){var $element=$(element);contentHeight+=$element.outerHeight(!0)},parentElement)).end(),bodyHeight=height-contentHeight,bodyHeight<25&&(bodyHeight=25,overflowY="auto"),openPanel&&openPanel.length>0&&openPanel.addClass("in"),setTimeout(function(){parentElement.find('[data-toggle="collapse"]').each($.proxy(function(i,element){var $element,selector,$target,scrollElement,innerHeight=0;$element=$(element),selector=$element.attr("data-target"),selector||(selector=$element.attr("href")),$target=$(selector),scrollElement=$target,targetScrollSelector&&(scrollElement=$target.find(targetScrollSelector),1===scrollElement.length?(innerHeight=0,$target.children().each($.proxy(function(j,sibling){var $sibling=$(sibling);sibling!==scrollElement[0]&&(innerHeight+=$sibling.outerHeight(!0))},$target)).end(),bodyHeight-=innerHeight):scrollElement=$target),scrollElement.css({"max-height":bodyHeight-innerHeight+"px","overflow-y":"auto"})},parentElement)).end(),parentElement.css({"overflow-y":overflowY})},100)},setCollapseHeights(),$(window).resize(setCollapseHeights)}}(jQuery),function($){"use strict";function getParent(rows,node){var parent=node.attr("data-parent");if("string"==typeof parent)return parent=isNaN(parent)?rows.closest(parent):$(rows[parseInt(parent,10)])}function renderItem(item,parent){parent&&(parent.find(".treegrid-node > span.expand-icon").toggleClass("fa-angle-right",parent.hasClass("collapsed")).toggleClass("fa-angle-down",!parent.hasClass("collapsed")),item.toggleClass("hidden",parent.hasClass("collapsed")),parent.hasClass("collapsed")&&item.addClass("collapsed"))}function reStripe(tree){tree.find("tbody > tr").removeClass("odd"),tree.find("tbody > tr:not(.hidden):odd").addClass("odd")}$.fn.treegrid=function(options){var i,rows,_this;rows=this.find("tbody > tr"),_this=this,$.each(rows,function(){var node,parent;if(node=$(this),parent=getParent(rows,node),node.children(".treegrid-node").prepend('<span class="icon expand-icon fa"/>'),node.children(".treegrid-node").on("click",function(e){var icon=node.find("span.expand-icon");options&&"function"==typeof options.callback&&options.callback(e),icon.hasClass("fa-angle-right")&&node.removeClass("collapsed"),icon.hasClass("fa-angle-down")&&node.addClass("collapsed"),$.each(rows.slice(rows.index(node)+1),function(){renderItem($(this),getParent(rows,$(this)))}),reStripe(_this)}),parent){for(i=parent.find(".treegrid-node > span.indent").length+1;i>0;i-=1)node.children(".treegrid-node").prepend('<span class="indent"/>');renderItem(node,parent)}}),reStripe(_this)}}(jQuery),function($){"use strict";$.fn.setupVerticalNavigation=function(handleItemSelections){var navElement=$(".nav-pf-vertical"),bodyContentElement=$(".container-pf-nav-pf-vertical"),toggleNavBarButton=$(".navbar-toggle"),handleResize=!0,explicitCollapse=!1,subDesktop=!1,hoverDelay=500,hideDelay=hoverDelay+200,inMobileState=function(){return bodyContentElement.hasClass("hidden-nav")},forceResize=function(delay){setTimeout(function(){$(window).trigger("resize")},delay)},showSecondaryMenu=function(){!inMobileState()&&subDesktop||(navElement.addClass("secondary-visible-pf"),bodyContentElement.addClass("secondary-visible-pf")),subDesktop||forceResize(100)},hideSecondaryMenu=function(){navElement.removeClass("secondary-visible-pf"),bodyContentElement.removeClass("secondary-visible-pf"),navElement.find(".mobile-nav-item-pf").each(function(index,item){$(item).removeClass("mobile-nav-item-pf")})},setActiveItem=function(item){$(".nav-pf-vertical .list-group-item.active").removeClass("active"),item.addClass("active").parents(".list-group-item").addClass("active")},updateSecondaryMenuDisplayAfterSelection=function(){inMobileState()?(navElement.removeClass("show-mobile-nav"),hideSecondaryMenu(),navElement.find(".mobile-nav-item-pf").each(function(index,item){$(item).removeClass("mobile-nav-item-pf")})):showSecondaryMenu()},updateSecondaryCollapsedState=function(setCollapsed,collapsedItem){setCollapsed?(collapsedItem.addClass("collapsed"),navElement.addClass("collapsed-secondary-nav-pf"),bodyContentElement.addClass("collapsed-secondary-nav-pf")):(collapsedItem?collapsedItem.removeClass("collapsed"):navElement.find('[data-toggle="collapse-secondary-nav"]').each(function(index,element){var $e=$(element);$e.removeClass("collapsed")}),navElement.removeClass("collapsed-secondary-nav-pf"),bodyContentElement.removeClass("collapsed-secondary-nav-pf"))},updateTertiaryCollapsedState=function(setCollapsed,collapsedItem){setCollapsed?(collapsedItem.addClass("collapsed"),navElement.addClass("collapsed-tertiary-nav-pf"),bodyContentElement.addClass("collapsed-tertiary-nav-pf"),updateSecondaryCollapsedState(!1)):(collapsedItem?collapsedItem.removeClass("collapsed"):navElement.find('[data-toggle="collapse-tertiary-nav"]').each(function(index,element){var $e=$(element);$e.removeClass("collapsed")}),navElement.removeClass("collapsed-tertiary-nav-pf"),bodyContentElement.removeClass("collapsed-tertiary-nav-pf"))},updateMobileMenu=function(selected,secondaryItem){$(document).find(".list-group-item.mobile-nav-item-pf").each(function(index,item){$(item).removeClass("mobile-nav-item-pf")}),$(document).find(".list-group-item.mobile-secondary-item-pf").each(function(index,item){$(item).removeClass("mobile-secondary-item-pf")}),selected?(selected.addClass("mobile-nav-item-pf"),secondaryItem?(secondaryItem.addClass("mobile-secondary-item-pf"),navElement.removeClass("show-mobile-secondary"),navElement.addClass("show-mobile-tertiary")):(navElement.addClass("show-mobile-secondary"),navElement.removeClass("show-mobile-tertiary"))):(navElement.removeClass("show-mobile-secondary"),navElement.removeClass("show-mobile-tertiary"))},enterMobileState=function(){navElement.hasClass("hidden")||(navElement.addClass("hidden"),navElement.removeClass("collapsed"),bodyContentElement.removeClass("collapsed-nav"),bodyContentElement.addClass("hidden-nav"),updateSecondaryCollapsedState(!1),updateTertiaryCollapsedState(!1),explicitCollapse=!1)},exitMobileState=function(){navElement.removeClass("hidden show-mobile-nav"),bodyContentElement.removeClass("hidden-nav")},checkNavState=function(){var makeSecondaryVisible,width=$(window).width();handleResize&&(width<$.pfBreakpoints.tablet&&!explicitCollapse?enterMobileState():navElement.hasClass("hidden")&&exitMobileState(),width<$.pfBreakpoints.desktop?(subDesktop||(navElement.addClass("collapsed"),bodyContentElement.addClass("collapsed-nav")),width>=$.pfBreakpoints.tablet&&hideSecondaryMenu(),subDesktop=!0):(makeSecondaryVisible=subDesktop&&navElement.find(".secondary-nav-item-pf.active").length>0,subDesktop=!1,makeSecondaryVisible&&showSecondaryMenu()),explicitCollapse?(navElement.addClass("collapsed"),bodyContentElement.addClass("collapsed-nav")):(navElement.removeClass("collapsed"),bodyContentElement.removeClass("collapsed-nav")))},collapseMenu=function(){navElement.addClass("collapsed"),bodyContentElement.addClass("collapsed-nav"),subDesktop&&hideSecondaryMenu(),explicitCollapse=!0},enableTransitions=function(){$("html").addClass("transitions")},expandMenu=function(){navElement.removeClass("collapsed"),bodyContentElement.removeClass("collapsed-nav"),explicitCollapse=!1,subDesktop||forceResize(100)},bindMenuBehavior=function(){toggleNavBarButton.on("click",function(e){enableTransitions(),inMobileState()?navElement.hasClass("show-mobile-nav")?navElement.removeClass("show-mobile-nav"):(updateMobileMenu(),navElement.addClass("show-mobile-nav")):navElement.hasClass("collapsed")?(window.localStorage.setItem("patternfly-navigation-primary","expanded"),expandMenu()):(window.localStorage.setItem("patternfly-navigation-primary","collapsed"),collapseMenu())})},forceHideSecondaryMenu=function(){navElement.addClass("force-hide-secondary-nav-pf"),setTimeout(function(){navElement.removeClass("force-hide-secondary-nav-pf")},500)},bindMenuItemsBehavior=function(handleSelection){$(document).find(".nav-pf-vertical .list-group-item").each(function(index,item){var onClickFn,$item=$(item),$nav=$item.closest('[class*="nav-pf-"]');$nav.hasClass("nav-pf-vertical")?onClickFn=function(event){var $secondaryItem,$activeItem,$this=$(this);$this.hasClass("secondary-nav-item-pf")?inMobileState()?updateMobileMenu($this):handleSelection&&($activeItem=$secondaryItem=$item.find(".nav-pf-secondary-nav > .list-group > .list-group-item").eq(0),$secondaryItem.hasClass("tertiary-nav-item-pf")&&($activeItem=$secondaryItem.find(".nav-pf-tertiary-nav > .list-group > .list-group-item").eq(0)),setActiveItem($activeItem),event.stopImmediatePropagation()):(hideSecondaryMenu(),inMobileState()&&(updateMobileMenu(),navElement.removeClass("show-mobile-nav")),handleSelection&&(setActiveItem($this),event.stopImmediatePropagation()))}:$nav.hasClass("nav-pf-secondary-nav")?onClickFn=function(event){var $tertiaryItem,$primaryItem,$this=$(this);$this.hasClass("tertiary-nav-item-pf")?inMobileState()?($primaryItem=$item.parents(".list-group-item"),updateMobileMenu($this,$primaryItem),event.stopImmediatePropagation()):handleSelection&&($tertiaryItem=$item.find(".nav-pf-tertiary-nav > .list-group > .list-group-item").eq(0),setActiveItem($tertiaryItem),event.stopImmediatePropagation()):(inMobileState()&&(updateMobileMenu(),navElement.removeClass("show-mobile-nav")),updateSecondaryMenuDisplayAfterSelection(),handleSelection&&(setActiveItem($item),event.stopImmediatePropagation()))}:$nav.hasClass("nav-pf-tertiary-nav")&&(onClickFn=function(event){inMobileState()&&(updateMobileMenu(),navElement.removeClass("show-mobile-nav")),updateSecondaryMenuDisplayAfterSelection(),handleSelection&&(setActiveItem($item),event.stopImmediatePropagation())}),$item.on("click.pf.secondarynav.data-api",onClickFn)}),$(document).find(".secondary-nav-item-pf").each(function(index,secondaryItem){var $secondaryItem=$(secondaryItem);$secondaryItem.on("click.pf.secondarynav.data-api",'[data-toggle="collapse-secondary-nav"]',function(e){var $this=$(this);inMobileState()?(updateMobileMenu(),e.stopImmediatePropagation()):$this.hasClass("collapsed")?(window.localStorage.setItem("patternfly-navigation-secondary","expanded"),window.localStorage.setItem("patternfly-navigation-tertiary","expanded"),updateSecondaryCollapsedState(!1,$this),forceHideSecondaryMenu()):(window.localStorage.setItem("patternfly-navigation-secondary","collapsed"),updateSecondaryCollapsedState(!0,$this)),navElement.removeClass("hover-secondary-nav-pf"),handleSelection&&e.stopImmediatePropagation()}),$secondaryItem.find(".tertiary-nav-item-pf").each(function(index,primaryItem){var $primaryItem=$(primaryItem);$primaryItem.on("click.pf.tertiarynav.data-api",'[data-toggle="collapse-tertiary-nav"]',function(e){var $this=$(this);inMobileState()?(updateMobileMenu($secondaryItem),e.stopImmediatePropagation()):$this.hasClass("collapsed")?(window.localStorage.setItem("patternfly-navigation-secondary","expanded"),window.localStorage.setItem("patternfly-navigation-tertiary","expanded"),updateTertiaryCollapsedState(!1,$this),forceHideSecondaryMenu()):(window.localStorage.setItem("patternfly-navigation-tertiary","collapsed"),updateTertiaryCollapsedState(!0,$this)),navElement.removeClass("hover-secondary-nav-pf"),navElement.removeClass("hover-tertiary-nav-pf"),handleSelection&&e.stopImmediatePropagation()})})}),$(document).on("mouseenter.pf.tertiarynav.data-api",".secondary-nav-item-pf",function(e){var $this=$(this);inMobileState()||(void 0!==$this[0].navUnHoverTimeout?(clearTimeout($this[0].navUnHoverTimeout),$this[0].navUnHoverTimeout=void 0):void 0===$this[0].navHoverTimeout&&($this[0].navHoverTimeout=setTimeout(function(){navElement.addClass("hover-secondary-nav-pf"),$this.addClass("is-hover"),$this[0].navHoverTimeout=void 0},hoverDelay)))}),$(document).on("mouseleave.pf.tertiarynav.data-api",".secondary-nav-item-pf",function(e){var $this=$(this);void 0!==$this[0].navHoverTimeout?(clearTimeout($this[0].navHoverTimeout),$this[0].navHoverTimeout=void 0):void 0===$this[0].navUnHoverTimeout&&($this[0].navUnHoverTimeout=setTimeout(function(){navElement.find(".secondary-nav-item-pf.is-hover").length<=1&&navElement.removeClass("hover-secondary-nav-pf"),$this.removeClass("is-hover"),$this[0].navUnHoverTimeout=void 0},hideDelay))}),$(document).on("mouseover.pf.tertiarynav.data-api",".tertiary-nav-item-pf",function(e){var $this=$(this);inMobileState()||(void 0!==$this[0].navUnHoverTimeout?(clearTimeout($this[0].navUnHoverTimeout),$this[0].navUnHoverTimeout=void 0):void 0===$this[0].navHoverTimeout&&($this[0].navHoverTimeout=setTimeout(function(){navElement.addClass("hover-tertiary-nav-pf"),$this.addClass("is-hover"),$this[0].navHoverTimeout=void 0},hoverDelay)))}),$(document).on("mouseout.pf.tertiarynav.data-api",".tertiary-nav-item-pf",function(e){var $this=$(this);void 0!==$this[0].navHoverTimeout?(clearTimeout($this[0].navHoverTimeout),$this[0].navHoverTimeout=void 0):void 0===$this[0].navUnHoverTimeout&&($this[0].navUnHoverTimeout=setTimeout(function(){navElement.find(".tertiary-nav-item-pf.is-hover").length<=1&&navElement.removeClass("hover-tertiary-nav-pf"),$this.removeClass("is-hover"),$this[0].navUnHoverTimeout=void 0},hideDelay))})},loadFromLocalStorage=function(){inMobileState()||("collapsed"===window.localStorage.getItem("patternfly-navigation-primary")&&collapseMenu(),$(".nav-pf-vertical.nav-pf-vertical-collapsible-menus").length>0&&("collapsed"===window.localStorage.getItem("patternfly-navigation-secondary")&&updateSecondaryCollapsedState(!0,$(".secondary-nav-item-pf.active [data-toggle=collapse-secondary-nav]")),"collapsed"===window.localStorage.getItem("patternfly-navigation-tertiary")&&updateTertiaryCollapsedState(!0,$(".tertiary-nav-item-pf.active [data-toggle=collapse-tertiary-nav]"))))},setTooltips=function(){var tooltipOptions={container:"body",placement:"bottom",delay:{show:"500",hide:"200"},template:'<div class="nav-pf-vertical-tooltip tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>'};$('.nav-pf-vertical [data-toggle="tooltip"]').tooltip(tooltipOptions),$(".nav-pf-vertical").on("show.bs.tooltip",function(e){return $(this).hasClass("collapsed")})},init=function(handleItemSelections){navElement.addClass("hide-nav-pf"),bodyContentElement.addClass("hide-nav-pf"),checkNavState(),bindMenuBehavior(),bindMenuItemsBehavior(handleItemSelections),setTooltips(),loadFromLocalStorage(),navElement.removeClass("hide-nav-pf"),bodyContentElement.removeClass("hide-nav-pf"),forceResize(250)},self={hideMenu:function(){handleResize=!1,enterMobileState()},showMenu:function(){handleResize=!0,exitMobileState()},isVisible:function(){return handleResize}};return $.fn.setupVerticalNavigation.self||($.fn.setupVerticalNavigation.self=self,$(window).on("resize",function(){checkNavState(),enableTransitions()}),init(handleItemSelections)),$.fn.setupVerticalNavigation.self}}(jQuery);
@@ -2,7 +2,7 @@
2
2
  'use strict';
3
3
 
4
4
  var patternfly = {
5
- version: "3.13.0"
5
+ version: "3.20.0",
6
6
  };
7
7
 
8
8
  // Util: PatternFly Palette colors
@@ -200,6 +200,26 @@
200
200
  legend: this.getDefaultGroupedBarLegend()
201
201
  };
202
202
  },
203
+ getDefaultStackedBarGrid = function () {
204
+ return {
205
+ y: {
206
+ show: true
207
+ }
208
+ };
209
+ },
210
+ getDefaultStackedBarLegend = function () {
211
+ return {
212
+ show: true,
213
+ position: 'bottom'
214
+ };
215
+ },
216
+ getDefaultStackedBarConfig = function () {
217
+ return {
218
+ color: this.getDefaultColors(),
219
+ grid: this.getDefaultStackedBarGrid(),
220
+ legend: this.getDefaultStackedBarLegend()
221
+ };
222
+ },
203
223
  getDefaultDonut = function (title) {
204
224
  return {
205
225
  title: title,
@@ -450,6 +470,9 @@
450
470
  getDefaultGroupedBarGrid: getDefaultGroupedBarGrid,
451
471
  getDefaultGroupedBarLegend: getDefaultGroupedBarLegend,
452
472
  getDefaultGroupedBarConfig: getDefaultGroupedBarConfig,
473
+ getDefaultStackedBarGrid: getDefaultStackedBarGrid,
474
+ getDefaultStackedBarLegend: getDefaultStackedBarLegend,
475
+ getDefaultStackedBarConfig: getDefaultStackedBarConfig,
453
476
  getDefaultDonut: getDefaultDonut,
454
477
  getDefaultDonutSize: getDefaultDonutSize,
455
478
  getDefaultDonutColors: getDefaultDonutColors,
@@ -1 +1 @@
1
- !function(window){"use strict";var patternfly={version:"3.13.0"};patternfly.pfPaletteColors={black:"#030303",black100:"#fafafa",black200:"#ededed",black300:"#d1d1d1",black400:"#bbbbbb",black500:"#8b8d8f",black600:"#72767b",black700:"#4d5258",black800:"#393f44",black900:"#292e34",blue:"#0088ce",blue100:"#bee1f4",blue200:"#7dc3e8",blue300:"#39a5dc",blue400:"#0088ce",blue500:"#00659c",blue600:"#004368",blue700:"#002235",gold:"#f0ab00",gold100:"#fbeabc",gold200:"#f9d67a",gold300:"#f5c12e",gold400:"#f0ab00",gold500:"#b58100",gold600:"#795600",gold700:"#3d2c00",orange:"#ec7a08",orange100:"#fbdebf",orange200:"#f7bd7f",orange300:"#f39d3c",orange400:"#ec7a08",orange500:"#b35c00",orange600:"#773d00",orange700:"#3b1f00",lightBlue:"#00b9e4",lightBlue100:"#beedf9",lightBlue200:"#7cdbf3",lightBlue300:"#35caed",lightBlue400:"#00b9e4",lightBlue500:"#008bad",lightBlue600:"#005c73",lightBlue700:"#002d39",green:"#3f9c35",green100:"#cfe7cd",green200:"#9ecf99",green300:"#6ec664",green400:"#3f9c35",green500:"#2d7623",green600:"#1e4f18",green700:"#0f280d",lightGreen:"#92d400",lightGreen100:"#e4f5bc",lightGreen200:"#c8eb79",lightGreen300:"#ace12e",lightGreen400:"#92d400",lightGreen500:"#6ca100",lightGreen600:"#486b00",lightGreen700:"#253600",cyan:"#007a87",cyan100:"#bedee1",cyan200:"#7dbdc3",cyan300:"#3a9ca6",cyan400:"#007a87",cyan500:"#005c66",cyan600:"#003d44",cyan700:"#001f22",purple:"#703fec",purple100:"#c7bfff",purple200:"#a18fff",purple300:"#8461f7",purple400:"#703fec",purple500:"#582fc0",purple600:"#40199a",purple700:"#1f0066",red:"#cc0000",red100:"#cc0000",red200:"#a30000",red300:"#8b0000",red400:"#470000",red500:"#2c0000"},patternfly.pfSetDonutChartTitle=function(selector,primary,secondary){var donutChartRightTitle=window.d3.select(selector).select("text.c3-chart-arcs-title");donutChartRightTitle.text(""),donutChartRightTitle.insert("tspan").text(primary).classed("donut-title-big-pf",!0).attr("dy",0).attr("x",0),donutChartRightTitle.insert("tspan").text(secondary).classed("donut-title-small-pf",!0).attr("dy",20).attr("x",0)},patternfly.pfDonutTooltipContents=function(d,defaultTitleFormat,defaultValueFormat,color){return'<table class="c3-tooltip"> <tr> <td><span style="background-color:'+color(d[0].id)+'"></span><strong>'+d[0].value+"</strong> "+d[0].name+"</td> <td>"+Math.round(1e3*d[0].ratio)/10+"%</td> </tr></table>"},patternfly.pfGetUtilizationDonutTooltipContentsFn=function(units){return function(d){return'<span class="donut-tooltip-pf" style="white-space: nowrap;">'+Math.round(1e3*d[0].ratio)/10+"% "+units+" "+d[0].name+"</span>"}},patternfly.pfGetBarChartTooltipContentsFn=function(categories){return function(d){var name=categories?categories[d[0].index]:d[0].index;return'<table class="c3-tooltip"> <tr> <td><strong>'+name+":</td> <td>"+d[0].value+"</td> </tr></table>"}},patternfly.pfSingleLineChartTooltipContentsFn=function(categories){return function(d){var name=categories?categories[d[0].index]:d[0].index;return'<table class="c3-tooltip"> <tr> <td><strong>'+name+":</td> <td>"+d[0].value+"</td> </tr></table>"}},patternfly.pfPieTooltipContents=function(d,defaultTitleFormat,defaultValueFormat,color){return patternfly.pfDonutTooltipContents(d,defaultTitleFormat,defaultValueFormat,color)},patternfly.c3ChartDefaults=function(){var getDefaultColors=function(){return{pattern:[patternfly.pfPaletteColors.blue,patternfly.pfPaletteColors.blue300,patternfly.pfPaletteColors.green,patternfly.pfPaletteColors.orange,patternfly.pfPaletteColors.red]}},getDefaultBarGrid=function(){return{y:{show:!0}}},getDefaultBarTooltip=function(categories){return{contents:patternfly.pfGetBarChartTooltipContentsFn(categories)}},getDefaultBarLegend=function(){return{show:!1}},getDefaultBarConfig=function(categories){return{color:this.getDefaultColors(),grid:this.getDefaultBarGrid(),tooltip:this.getDefaultBarTooltip(categories),legend:this.getDefaultBarLegend()}},getDefaultGroupedBarGrid=function(){return{y:{show:!0}}},getDefaultGroupedBarLegend=function(){return{show:!0,position:"bottom"}},getDefaultGroupedBarConfig=function(){return{color:this.getDefaultColors(),grid:this.getDefaultGroupedBarGrid(),legend:this.getDefaultGroupedBarLegend()}},getDefaultDonut=function(title){return{title:title,label:{show:!1},width:11}},getDefaultDonutSize=function(){return{height:171}},getDefaultDonutColors=function(){return{pattern:[patternfly.pfPaletteColors.blue,patternfly.pfPaletteColors.black300]}},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()}},getDefaultPie=function(){return{expand:!0,label:{show:!1}}},getDefaultPieSize=function(){return{height:171}},getDefaultPieColors=function(){return{pattern:[patternfly.pfPaletteColors.blue,patternfly.pfPaletteColors.black300]}},getDefaultPieTooltip=function(){return{contents:$().pfPieTooltipContents}},getDefaultPieLegend=function(){return{show:!1}},getDefaultPieConfig=function(){return{pie:this.getDefaultPie(),size:this.getDefaultPieSize(),legend:this.getDefaultPieLegend(),color:this.getDefaultPieColors(),tooltip:this.getDefaultPieTooltip()}},getDefaultSparklineArea=function(){return{zerobased:!0}},getDefaultSparklineSize=function(){return{height:60}},getDefaultSparklineAxis=function(){return{x:{show:!1},y:{show:!1}}},getDefaultSparklineLegend=function(){return{show:!1}},getDefaultSparklinePoint=function(){return{r:1,focus:{expand:{r:4}}}},getDefaultSparklineTooltip=function(){return{contents:function(d){return'<span class="c3-tooltip-sparkline">'+d[0].value+" "+d[0].name+"</span>"}}},getDefaultSparklineConfig=function(){return{area:getDefaultSparklineArea(),size:getDefaultSparklineSize(),axis:getDefaultSparklineAxis(),color:getDefaultColors(),legend:getDefaultSparklineLegend(),point:getDefaultSparklinePoint(),tooltip:getDefaultSparklineTooltip()}},getDefaultLineAxis=function(){return{x:{show:!0},y:{show:!0}}},getDefaultLineGrid=function(){return{x:{show:!1},y:{show:!0}}},getDefaultLineLegend=function(){return{show:!0}},getDefaultLinePoint=function(){return{r:3,focus:{expand:{r:5}}}},getDefaultLineConfig=function(){return{axis:getDefaultLineAxis(),grid:getDefaultLineGrid(),color:getDefaultColors(),legend:getDefaultLineLegend(),point:getDefaultLinePoint()}},getDefaultSingleLineTooltip=function(){return{contents:$().pfGetBarChartTooltipContentsFn()}},getDefaultSingleLineLegend=function(){return{show:!1}},getDefaultSingleLineConfig=function(){return{axis:getDefaultLineAxis(),grid:getDefaultLineGrid(),color:getDefaultColors(),legend:getDefaultSingleLineLegend(),point:getDefaultLinePoint(),tooltip:getDefaultSingleLineTooltip()}},getDefaultAreaAxis=function(){return getDefaultLineAxis()},getDefaultAreaGrid=function(){return getDefaultLineGrid()},getDefaultAreaLegend=function(){return getDefaultLineLegend()},getDefaultAreaPoint=function(){return getDefaultLinePoint()},getDefaultAreaConfig=function(){return{axis:getDefaultAreaAxis(),grid:getDefaultAreaGrid(),color:getDefaultColors(),legend:getDefaultAreaLegend(),point:getDefaultAreaPoint()}},getDefaultSingleAreaTooltip=function(){return{contents:$().pfGetBarChartTooltipContentsFn()}},getDefaultSingleAreaLegend=function(){return getDefaultSingleLineLegend()},getDefaultSingleAreaConfig=function(){return{axis:getDefaultAreaAxis(),grid:getDefaultAreaGrid(),color:getDefaultColors(),legend:getDefaultSingleAreaLegend(),point:getDefaultAreaPoint(),tooltip:getDefaultSingleAreaTooltip()}};return{getDefaultColors:getDefaultColors,getDefaultBarGrid:getDefaultBarGrid,getDefaultBarTooltip:getDefaultBarTooltip,getDefaultBarLegend:getDefaultBarLegend,getDefaultBarConfig:getDefaultBarConfig,getDefaultGroupedBarGrid:getDefaultGroupedBarGrid,getDefaultGroupedBarLegend:getDefaultGroupedBarLegend,getDefaultGroupedBarConfig:getDefaultGroupedBarConfig,getDefaultDonut:getDefaultDonut,getDefaultDonutSize:getDefaultDonutSize,getDefaultDonutColors:getDefaultDonutColors,getDefaultDonutTooltip:getDefaultDonutTooltip,getDefaultDonutLegend:getDefaultDonutLegend,getDefaultDonutConfig:getDefaultDonutConfig,getDefaultPie:getDefaultPie,getDefaultPieSize:getDefaultPieSize,getDefaultPieColors:getDefaultPieColors,getDefaultPieTooltip:getDefaultPieTooltip,getDefaultPieLegend:getDefaultPieLegend,getDefaultPieConfig:getDefaultPieConfig,getDefaultSparklineArea:getDefaultSparklineArea,getDefaultSparklineSize:getDefaultSparklineSize,getDefaultSparklineAxis:getDefaultSparklineAxis,getDefaultSparklineLegend:getDefaultSparklineLegend,getDefaultSparklinePoint:getDefaultSparklinePoint,getDefaultSparklineTooltip:getDefaultSparklineTooltip,getDefaultSparklineConfig:getDefaultSparklineConfig,getDefaultLineAxis:getDefaultLineAxis,getDefaultLineGrid:getDefaultLineGrid,getDefaultLineLegend:getDefaultLineLegend,getDefaultLinePoint:getDefaultLinePoint,getDefaultLineConfig:getDefaultLineConfig,getDefaultSingleLineTooltip:getDefaultSingleLineTooltip,getDefaultSingleLineConfig:getDefaultSingleLineConfig,getDefaultAreaAxis:getDefaultAreaAxis,getDefaultAreaGrid:getDefaultAreaGrid,getDefaultAreaLegend:getDefaultAreaLegend,getDefaultAreaPoint:getDefaultAreaPoint,getDefaultAreaConfig:getDefaultAreaConfig,getDefaultSingleAreaTooltip:getDefaultSingleAreaTooltip,getDefaultSingleAreaConfig:getDefaultSingleAreaConfig}},patternfly.pfBreakpoints={tablet:768,desktop:1200},window.patternfly=patternfly}(window);
1
+ !function(window){"use strict";var patternfly={version:"3.20.0"};patternfly.pfPaletteColors={black:"#030303",black100:"#fafafa",black200:"#ededed",black300:"#d1d1d1",black400:"#bbbbbb",black500:"#8b8d8f",black600:"#72767b",black700:"#4d5258",black800:"#393f44",black900:"#292e34",blue:"#0088ce",blue100:"#bee1f4",blue200:"#7dc3e8",blue300:"#39a5dc",blue400:"#0088ce",blue500:"#00659c",blue600:"#004368",blue700:"#002235",gold:"#f0ab00",gold100:"#fbeabc",gold200:"#f9d67a",gold300:"#f5c12e",gold400:"#f0ab00",gold500:"#b58100",gold600:"#795600",gold700:"#3d2c00",orange:"#ec7a08",orange100:"#fbdebf",orange200:"#f7bd7f",orange300:"#f39d3c",orange400:"#ec7a08",orange500:"#b35c00",orange600:"#773d00",orange700:"#3b1f00",lightBlue:"#00b9e4",lightBlue100:"#beedf9",lightBlue200:"#7cdbf3",lightBlue300:"#35caed",lightBlue400:"#00b9e4",lightBlue500:"#008bad",lightBlue600:"#005c73",lightBlue700:"#002d39",green:"#3f9c35",green100:"#cfe7cd",green200:"#9ecf99",green300:"#6ec664",green400:"#3f9c35",green500:"#2d7623",green600:"#1e4f18",green700:"#0f280d",lightGreen:"#92d400",lightGreen100:"#e4f5bc",lightGreen200:"#c8eb79",lightGreen300:"#ace12e",lightGreen400:"#92d400",lightGreen500:"#6ca100",lightGreen600:"#486b00",lightGreen700:"#253600",cyan:"#007a87",cyan100:"#bedee1",cyan200:"#7dbdc3",cyan300:"#3a9ca6",cyan400:"#007a87",cyan500:"#005c66",cyan600:"#003d44",cyan700:"#001f22",purple:"#703fec",purple100:"#c7bfff",purple200:"#a18fff",purple300:"#8461f7",purple400:"#703fec",purple500:"#582fc0",purple600:"#40199a",purple700:"#1f0066",red:"#cc0000",red100:"#cc0000",red200:"#a30000",red300:"#8b0000",red400:"#470000",red500:"#2c0000"},patternfly.pfSetDonutChartTitle=function(selector,primary,secondary){var donutChartRightTitle=window.d3.select(selector).select("text.c3-chart-arcs-title");donutChartRightTitle.text(""),donutChartRightTitle.insert("tspan").text(primary).classed("donut-title-big-pf",!0).attr("dy",0).attr("x",0),donutChartRightTitle.insert("tspan").text(secondary).classed("donut-title-small-pf",!0).attr("dy",20).attr("x",0)},patternfly.pfDonutTooltipContents=function(d,defaultTitleFormat,defaultValueFormat,color){return'<table class="c3-tooltip"> <tr> <td><span style="background-color:'+color(d[0].id)+'"></span><strong>'+d[0].value+"</strong> "+d[0].name+"</td> <td>"+Math.round(1e3*d[0].ratio)/10+"%</td> </tr></table>"},patternfly.pfGetUtilizationDonutTooltipContentsFn=function(units){return function(d){return'<span class="donut-tooltip-pf" style="white-space: nowrap;">'+Math.round(1e3*d[0].ratio)/10+"% "+units+" "+d[0].name+"</span>"}},patternfly.pfGetBarChartTooltipContentsFn=function(categories){return function(d){var name=categories?categories[d[0].index]:d[0].index;return'<table class="c3-tooltip"> <tr> <td><strong>'+name+":</td> <td>"+d[0].value+"</td> </tr></table>"}},patternfly.pfSingleLineChartTooltipContentsFn=function(categories){return function(d){var name=categories?categories[d[0].index]:d[0].index;return'<table class="c3-tooltip"> <tr> <td><strong>'+name+":</td> <td>"+d[0].value+"</td> </tr></table>"}},patternfly.pfPieTooltipContents=function(d,defaultTitleFormat,defaultValueFormat,color){return patternfly.pfDonutTooltipContents(d,defaultTitleFormat,defaultValueFormat,color)},patternfly.c3ChartDefaults=function(){var getDefaultColors=function(){return{pattern:[patternfly.pfPaletteColors.blue,patternfly.pfPaletteColors.blue300,patternfly.pfPaletteColors.green,patternfly.pfPaletteColors.orange,patternfly.pfPaletteColors.red]}},getDefaultBarGrid=function(){return{y:{show:!0}}},getDefaultBarTooltip=function(categories){return{contents:patternfly.pfGetBarChartTooltipContentsFn(categories)}},getDefaultBarLegend=function(){return{show:!1}},getDefaultBarConfig=function(categories){return{color:this.getDefaultColors(),grid:this.getDefaultBarGrid(),tooltip:this.getDefaultBarTooltip(categories),legend:this.getDefaultBarLegend()}},getDefaultGroupedBarGrid=function(){return{y:{show:!0}}},getDefaultGroupedBarLegend=function(){return{show:!0,position:"bottom"}},getDefaultGroupedBarConfig=function(){return{color:this.getDefaultColors(),grid:this.getDefaultGroupedBarGrid(),legend:this.getDefaultGroupedBarLegend()}},getDefaultStackedBarGrid=function(){return{y:{show:!0}}},getDefaultStackedBarLegend=function(){return{show:!0,position:"bottom"}},getDefaultStackedBarConfig=function(){return{color:this.getDefaultColors(),grid:this.getDefaultStackedBarGrid(),legend:this.getDefaultStackedBarLegend()}},getDefaultDonut=function(title){return{title:title,label:{show:!1},width:11}},getDefaultDonutSize=function(){return{height:171}},getDefaultDonutColors=function(){return{pattern:[patternfly.pfPaletteColors.blue,patternfly.pfPaletteColors.black300]}},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()}},getDefaultPie=function(){return{expand:!0,label:{show:!1}}},getDefaultPieSize=function(){return{height:171}},getDefaultPieColors=function(){return{pattern:[patternfly.pfPaletteColors.blue,patternfly.pfPaletteColors.black300]}},getDefaultPieTooltip=function(){return{contents:$().pfPieTooltipContents}},getDefaultPieLegend=function(){return{show:!1}},getDefaultPieConfig=function(){return{pie:this.getDefaultPie(),size:this.getDefaultPieSize(),legend:this.getDefaultPieLegend(),color:this.getDefaultPieColors(),tooltip:this.getDefaultPieTooltip()}},getDefaultSparklineArea=function(){return{zerobased:!0}},getDefaultSparklineSize=function(){return{height:60}},getDefaultSparklineAxis=function(){return{x:{show:!1},y:{show:!1}}},getDefaultSparklineLegend=function(){return{show:!1}},getDefaultSparklinePoint=function(){return{r:1,focus:{expand:{r:4}}}},getDefaultSparklineTooltip=function(){return{contents:function(d){return'<span class="c3-tooltip-sparkline">'+d[0].value+" "+d[0].name+"</span>"}}},getDefaultSparklineConfig=function(){return{area:getDefaultSparklineArea(),size:getDefaultSparklineSize(),axis:getDefaultSparklineAxis(),color:getDefaultColors(),legend:getDefaultSparklineLegend(),point:getDefaultSparklinePoint(),tooltip:getDefaultSparklineTooltip()}},getDefaultLineAxis=function(){return{x:{show:!0},y:{show:!0}}},getDefaultLineGrid=function(){return{x:{show:!1},y:{show:!0}}},getDefaultLineLegend=function(){return{show:!0}},getDefaultLinePoint=function(){return{r:3,focus:{expand:{r:5}}}},getDefaultLineConfig=function(){return{axis:getDefaultLineAxis(),grid:getDefaultLineGrid(),color:getDefaultColors(),legend:getDefaultLineLegend(),point:getDefaultLinePoint()}},getDefaultSingleLineTooltip=function(){return{contents:$().pfGetBarChartTooltipContentsFn()}},getDefaultSingleLineLegend=function(){return{show:!1}},getDefaultSingleLineConfig=function(){return{axis:getDefaultLineAxis(),grid:getDefaultLineGrid(),color:getDefaultColors(),legend:getDefaultSingleLineLegend(),point:getDefaultLinePoint(),tooltip:getDefaultSingleLineTooltip()}},getDefaultAreaAxis=function(){return getDefaultLineAxis()},getDefaultAreaGrid=function(){return getDefaultLineGrid()},getDefaultAreaLegend=function(){return getDefaultLineLegend()},getDefaultAreaPoint=function(){return getDefaultLinePoint()},getDefaultAreaConfig=function(){return{axis:getDefaultAreaAxis(),grid:getDefaultAreaGrid(),color:getDefaultColors(),legend:getDefaultAreaLegend(),point:getDefaultAreaPoint()}},getDefaultSingleAreaTooltip=function(){return{contents:$().pfGetBarChartTooltipContentsFn()}},getDefaultSingleAreaLegend=function(){return getDefaultSingleLineLegend()},getDefaultSingleAreaConfig=function(){return{axis:getDefaultAreaAxis(),grid:getDefaultAreaGrid(),color:getDefaultColors(),legend:getDefaultSingleAreaLegend(),point:getDefaultAreaPoint(),tooltip:getDefaultSingleAreaTooltip()}};return{getDefaultColors:getDefaultColors,getDefaultBarGrid:getDefaultBarGrid,getDefaultBarTooltip:getDefaultBarTooltip,getDefaultBarLegend:getDefaultBarLegend,getDefaultBarConfig:getDefaultBarConfig,getDefaultGroupedBarGrid:getDefaultGroupedBarGrid,getDefaultGroupedBarLegend:getDefaultGroupedBarLegend,getDefaultGroupedBarConfig:getDefaultGroupedBarConfig,getDefaultStackedBarGrid:getDefaultStackedBarGrid,getDefaultStackedBarLegend:getDefaultStackedBarLegend,getDefaultStackedBarConfig:getDefaultStackedBarConfig,getDefaultDonut:getDefaultDonut,getDefaultDonutSize:getDefaultDonutSize,getDefaultDonutColors:getDefaultDonutColors,getDefaultDonutTooltip:getDefaultDonutTooltip,getDefaultDonutLegend:getDefaultDonutLegend,getDefaultDonutConfig:getDefaultDonutConfig,getDefaultPie:getDefaultPie,getDefaultPieSize:getDefaultPieSize,getDefaultPieColors:getDefaultPieColors,getDefaultPieTooltip:getDefaultPieTooltip,getDefaultPieLegend:getDefaultPieLegend,getDefaultPieConfig:getDefaultPieConfig,getDefaultSparklineArea:getDefaultSparklineArea,getDefaultSparklineSize:getDefaultSparklineSize,getDefaultSparklineAxis:getDefaultSparklineAxis,getDefaultSparklineLegend:getDefaultSparklineLegend,getDefaultSparklinePoint:getDefaultSparklinePoint,getDefaultSparklineTooltip:getDefaultSparklineTooltip,getDefaultSparklineConfig:getDefaultSparklineConfig,getDefaultLineAxis:getDefaultLineAxis,getDefaultLineGrid:getDefaultLineGrid,getDefaultLineLegend:getDefaultLineLegend,getDefaultLinePoint:getDefaultLinePoint,getDefaultLineConfig:getDefaultLineConfig,getDefaultSingleLineTooltip:getDefaultSingleLineTooltip,getDefaultSingleLineConfig:getDefaultSingleLineConfig,getDefaultAreaAxis:getDefaultAreaAxis,getDefaultAreaGrid:getDefaultAreaGrid,getDefaultAreaLegend:getDefaultAreaLegend,getDefaultAreaPoint:getDefaultAreaPoint,getDefaultAreaConfig:getDefaultAreaConfig,getDefaultSingleAreaTooltip:getDefaultSingleAreaTooltip,getDefaultSingleAreaConfig:getDefaultSingleAreaConfig}},patternfly.pfBreakpoints={tablet:768,desktop:1200},window.patternfly=patternfly}(window);
@@ -51,9 +51,9 @@
51
51
  * data: null,
52
52
  * dom: "t",
53
53
  * pfConfig: {
54
- * emptyStateSelector: "#{{include.emptyStateId}}",
54
+ * emptyStateSelector: "#emptyState1",
55
55
  * ...
56
- * toolbarSelector: "#{{include.toolbarId}}"
56
+ * toolbarSelector: "#toolbar1"
57
57
  * }
58
58
  * });
59
59
  * dt.table().pfEmpty.updateState(); // Optional API to force update
@@ -107,6 +107,7 @@
107
107
  ctx._pfEmpty = {};
108
108
  ctx._pfEmpty.emptyState = $(opts.emptyStateSelector); // Empty state (Blank slate)
109
109
  ctx._pfEmpty.isEmptyState = false; // Flag indicating DatTable entered an empty state
110
+ ctx._pfEmpty.pagination = $(opts.paginationSelector); // Pagination
110
111
  ctx._pfEmpty.tbody = $("tbody", dt.table().container()); // Table body
111
112
  ctx._pfEmpty.thead = $("thead", dt.table().container()); // Table head
112
113
  ctx._pfEmpty.toolbarActions = $(ACTIONS_SELECTOR, opts.toolbarSelector); // Toolbar actions
@@ -156,6 +157,10 @@
156
157
  if (ctx._pfEmpty.toolbarResults !== undefined && ctx._pfEmpty.toolbarResults.length !== 0) {
157
158
  ctx._pfEmpty.toolbarResults.children().addClass("hidden");
158
159
  }
160
+ // Hide pagination
161
+ if (ctx._pfEmpty.pagination !== undefined && ctx._pfEmpty.pagination.length !== 0) {
162
+ ctx._pfEmpty.pagination.addClass("hidden");
163
+ }
159
164
  // Enable on empty
160
165
  if (ctx._pfEmpty.enableOnEmpty !== undefined) {
161
166
  $(ctx._pfEmpty.enableOnEmpty).prop("disabled", false);
@@ -199,6 +204,10 @@
199
204
  if (ctx._pfEmpty.toolbarResults !== undefined && ctx._pfEmpty.toolbarResults.length !== 0) {
200
205
  ctx._pfEmpty.toolbarResults.children().removeClass("hidden");
201
206
  }
207
+ // Show pagination
208
+ if (ctx._pfEmpty.pagination !== undefined && ctx._pfEmpty.pagination.length !== 0) {
209
+ ctx._pfEmpty.pagination.removeClass("hidden");
210
+ }
202
211
  }
203
212
 
204
213
  /**
@@ -1 +1 @@
1
- !function(factory){"use strict";"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function($){return factory($,window,document)}):"object"==typeof exports?module.exports=function(root,$){return root||(root=window),$&&$.fn.dataTable||($=require("datatables.net")(root,$).$),factory($,root,root.document)}:factory(jQuery,window,document)}(function($,window,document,undefined){"use strict";function updateEmptyState(dt){var ctx=dt.settings()[0];ctx._pfEmpty.emptyState!==undefined&&0!==ctx._pfEmpty.emptyState.length&&ctx._pfEmpty.emptyState.removeClass("hidden"),ctx._pfEmpty.tbody!==undefined&&0!==ctx._pfEmpty.tbody.length&&ctx._pfEmpty.tbody.addClass("hidden"),ctx._pfEmpty.thead!==undefined&&0!==ctx._pfEmpty.thead.length&&ctx._pfEmpty.thead.addClass("hidden"),ctx._pfEmpty.toolbarActions!==undefined&&0!==ctx._pfEmpty.toolbarActions.length&&$("button",ctx._pfEmpty.toolbarActions).prop("disabled",!0),ctx._pfEmpty.toolbarActions!==undefined&&0!==ctx._pfEmpty.toolbarActions.length&&$("input",ctx._pfEmpty.toolbarActions).prop("disabled",!0),ctx._pfEmpty.toolbarResults!==undefined&&0!==ctx._pfEmpty.toolbarResults.length&&ctx._pfEmpty.toolbarResults.children().addClass("hidden"),ctx._pfEmpty.enableOnEmpty!==undefined&&$(ctx._pfEmpty.enableOnEmpty).prop("disabled",!1),ctx._pfEmpty.enableOnEmpty!==undefined&&$(ctx._pfEmpty.enableOnEmpty).prop("disabled",!1)}function updateNonEmptyState(dt){var ctx=dt.settings()[0];ctx._pfEmpty.emptyState!==undefined&&0!==ctx._pfEmpty.emptyState.length&&ctx._pfEmpty.emptyState.addClass("hidden"),ctx._pfEmpty.tbody!==undefined&&0!==ctx._pfEmpty.tbody.length&&ctx._pfEmpty.tbody.removeClass("hidden"),ctx._pfEmpty.thead!==undefined&&0!==ctx._pfEmpty.thead.length&&ctx._pfEmpty.thead.removeClass("hidden"),ctx._pfEmpty.toolbarActions!==undefined&&0!==ctx._pfEmpty.toolbarActions.length&&$("button",ctx._pfEmpty.toolbarActions).prop("disabled",!1),ctx._pfEmpty.toolbarActions!==undefined&&0!==ctx._pfEmpty.toolbarActions.length&&$("input",ctx._pfEmpty.toolbarActions).prop("disabled",!1),ctx._pfEmpty.toolbarResults!==undefined&&0!==ctx._pfEmpty.toolbarResults.length&&ctx._pfEmpty.toolbarResults.children().removeClass("hidden")}function updateState(dt){var ctx=dt.settings()[0];0===dt.data().length?(ctx._pfEmpty.isEmptyState=!0,updateEmptyState(dt)):ctx._pfEmpty.isEmptyState===!0&&(ctx._pfEmpty.isEmptyState=!1,updateNonEmptyState(dt))}var DataTable=$.fn.dataTable,ACTIONS_SELECTOR=".toolbar-pf-actions",RESULTS_SELECTOR=".toolbar-pf-results";return DataTable.pfEmpty={},DataTable.pfEmpty.init=function(dt){var ctx=dt.settings()[0],opts=ctx.oInit.pfConfig?ctx.oInit.pfConfig:{};ctx._pfEmpty={},ctx._pfEmpty.emptyState=$(opts.emptyStateSelector),ctx._pfEmpty.isEmptyState=!1,ctx._pfEmpty.tbody=$("tbody",dt.table().container()),ctx._pfEmpty.thead=$("thead",dt.table().container()),ctx._pfEmpty.toolbarActions=$(ACTIONS_SELECTOR,opts.toolbarSelector),ctx._pfEmpty.toolbarResults=$(RESULTS_SELECTOR,opts.toolbarSelector),dt.on("draw.dt",function(){updateState(dt)}),updateState(dt)},DataTable.Api.register("pfEmpty.updateState()",function(){return this.iterator("table",function(ctx){update(new DataTable.Api(ctx))})}),$(document).on("init.dt",function(e,ctx,json){"dt"===e.namespace&&DataTable.pfEmpty.init(new DataTable.Api(ctx))}),DataTable.pfEmpty});
1
+ !function(factory){"use strict";"function"==typeof define&&define.amd?define(["jquery","datatables.net"],function($){return factory($,window,document)}):"object"==typeof exports?module.exports=function(root,$){return root||(root=window),$&&$.fn.dataTable||($=require("datatables.net")(root,$).$),factory($,root,root.document)}:factory(jQuery,window,document)}(function($,window,document,undefined){"use strict";function updateEmptyState(dt){var ctx=dt.settings()[0];ctx._pfEmpty.emptyState!==undefined&&0!==ctx._pfEmpty.emptyState.length&&ctx._pfEmpty.emptyState.removeClass("hidden"),ctx._pfEmpty.tbody!==undefined&&0!==ctx._pfEmpty.tbody.length&&ctx._pfEmpty.tbody.addClass("hidden"),ctx._pfEmpty.thead!==undefined&&0!==ctx._pfEmpty.thead.length&&ctx._pfEmpty.thead.addClass("hidden"),ctx._pfEmpty.toolbarActions!==undefined&&0!==ctx._pfEmpty.toolbarActions.length&&$("button",ctx._pfEmpty.toolbarActions).prop("disabled",!0),ctx._pfEmpty.toolbarActions!==undefined&&0!==ctx._pfEmpty.toolbarActions.length&&$("input",ctx._pfEmpty.toolbarActions).prop("disabled",!0),ctx._pfEmpty.toolbarResults!==undefined&&0!==ctx._pfEmpty.toolbarResults.length&&ctx._pfEmpty.toolbarResults.children().addClass("hidden"),ctx._pfEmpty.pagination!==undefined&&0!==ctx._pfEmpty.pagination.length&&ctx._pfEmpty.pagination.addClass("hidden"),ctx._pfEmpty.enableOnEmpty!==undefined&&$(ctx._pfEmpty.enableOnEmpty).prop("disabled",!1),ctx._pfEmpty.enableOnEmpty!==undefined&&$(ctx._pfEmpty.enableOnEmpty).prop("disabled",!1)}function updateNonEmptyState(dt){var ctx=dt.settings()[0];ctx._pfEmpty.emptyState!==undefined&&0!==ctx._pfEmpty.emptyState.length&&ctx._pfEmpty.emptyState.addClass("hidden"),ctx._pfEmpty.tbody!==undefined&&0!==ctx._pfEmpty.tbody.length&&ctx._pfEmpty.tbody.removeClass("hidden"),ctx._pfEmpty.thead!==undefined&&0!==ctx._pfEmpty.thead.length&&ctx._pfEmpty.thead.removeClass("hidden"),ctx._pfEmpty.toolbarActions!==undefined&&0!==ctx._pfEmpty.toolbarActions.length&&$("button",ctx._pfEmpty.toolbarActions).prop("disabled",!1),ctx._pfEmpty.toolbarActions!==undefined&&0!==ctx._pfEmpty.toolbarActions.length&&$("input",ctx._pfEmpty.toolbarActions).prop("disabled",!1),ctx._pfEmpty.toolbarResults!==undefined&&0!==ctx._pfEmpty.toolbarResults.length&&ctx._pfEmpty.toolbarResults.children().removeClass("hidden"),ctx._pfEmpty.pagination!==undefined&&0!==ctx._pfEmpty.pagination.length&&ctx._pfEmpty.pagination.removeClass("hidden")}function updateState(dt){var ctx=dt.settings()[0];0===dt.data().length?(ctx._pfEmpty.isEmptyState=!0,updateEmptyState(dt)):ctx._pfEmpty.isEmptyState===!0&&(ctx._pfEmpty.isEmptyState=!1,updateNonEmptyState(dt))}var DataTable=$.fn.dataTable,ACTIONS_SELECTOR=".toolbar-pf-actions",RESULTS_SELECTOR=".toolbar-pf-results";return DataTable.pfEmpty={},DataTable.pfEmpty.init=function(dt){var ctx=dt.settings()[0],opts=ctx.oInit.pfConfig?ctx.oInit.pfConfig:{};ctx._pfEmpty={},ctx._pfEmpty.emptyState=$(opts.emptyStateSelector),ctx._pfEmpty.isEmptyState=!1,ctx._pfEmpty.pagination=$(opts.paginationSelector),ctx._pfEmpty.tbody=$("tbody",dt.table().container()),ctx._pfEmpty.thead=$("thead",dt.table().container()),ctx._pfEmpty.toolbarActions=$(ACTIONS_SELECTOR,opts.toolbarSelector),ctx._pfEmpty.toolbarResults=$(RESULTS_SELECTOR,opts.toolbarSelector),dt.on("draw.dt",function(){updateState(dt)}),updateState(dt)},DataTable.Api.register("pfEmpty.updateState()",function(){return this.iterator("table",function(ctx){update(new DataTable.Api(ctx))})}),$(document).on("init.dt",function(e,ctx,json){"dt"===e.namespace&&DataTable.pfEmpty.init(new DataTable.Api(ctx))}),DataTable.pfEmpty});
@@ -71,18 +71,19 @@
71
71
  * dom: "t",
72
72
  * pfConfig: {
73
73
  * ...
74
+ * filterCaseInsensitive: true,
74
75
  * filterCols: [
75
76
  * null,
76
77
  * {
77
78
  * default: true,
78
- * optionSelector: "#{{include.filterId1}}",
79
+ * optionSelector: "#filter1",
79
80
  * placeholder: "Filter By Rendering Engine..."
80
81
  * }, {
81
- * optionSelector: "#{{include.filterId2}}",
82
+ * optionSelector: "#filter2",
82
83
  * placeholder: "Filter By Browser..."
83
84
  * }
84
85
  * ],
85
- * toolbarSelector: "#{{include.toolbarId}}"
86
+ * toolbarSelector: "#toolbar1"
86
87
  * }
87
88
  * });
88
89
  * // Optional API to clear filters
@@ -158,6 +159,7 @@
158
159
  ctx._pfFilter.activeFilters = ctx._pfFilter.activeFilterControls.closest("div"); // Active filters container
159
160
  ctx._pfFilter.clearFilters = $(CLEAR_FILTERS_SELECTOR, opts.toolbarSelector); // Clear filters control
160
161
  ctx._pfFilter.results = $(RESULTS_SELECTOR, opts.toolbarSelector); // Toolbar results row
162
+ ctx._pfFilter.filterCaseInsensitive = opts.filterCaseInsensitive; // Filter filter case insensitive
161
163
  ctx._pfFilter.filterResults = $(FILTER_RESULTS_SELECTOR, opts.toolbarSelector); // Toolbar filter results
162
164
 
163
165
  if (ctx._pfFilter.filterCols === undefined) {
@@ -193,8 +195,14 @@
193
195
  // Must match all filters
194
196
  if (ctx._pfFilter) {
195
197
  $.each(ctx._pfFilter.filters, function (index, filter) {
196
- if (data[filter.column].indexOf(filter.value) === -1) {
197
- showThisRow = false;
198
+ if (ctx._pfFilter.filterCaseInsensitive !== undefined && ctx._pfFilter.filterCaseInsensitive === true) {
199
+ if (data[filter.column].toLowerCase().indexOf(filter.value.toLowerCase()) === -1) {
200
+ showThisRow = false;
201
+ }
202
+ } else {
203
+ if (data[filter.column].indexOf(filter.value) === -1) {
204
+ showThisRow = false;
205
+ }
198
206
  }
199
207
  });
200
208
  }