patternfly-sass 0.0.0.pre.semantically.pre.released
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CODE_OF_CONDUCT.md +4 -0
- data/LICENSE.txt +205 -0
- data/OPEN_SOURCE_LICENCES.txt +1366 -0
- data/QUICKSTART.md +210 -0
- data/README.md +438 -0
- data/dist/fonts/FontAwesome.otf +0 -0
- data/dist/fonts/OpenSans-Bold-webfont.eot +0 -0
- data/dist/fonts/OpenSans-Bold-webfont.svg +19028 -0
- data/dist/fonts/OpenSans-Bold-webfont.ttf +0 -0
- data/dist/fonts/OpenSans-Bold-webfont.woff +0 -0
- data/dist/fonts/OpenSans-Bold-webfont.woff2 +0 -0
- data/dist/fonts/OpenSans-BoldItalic-webfont.eot +0 -0
- data/dist/fonts/OpenSans-BoldItalic-webfont.svg +19036 -0
- data/dist/fonts/OpenSans-BoldItalic-webfont.ttf +0 -0
- data/dist/fonts/OpenSans-BoldItalic-webfont.woff +0 -0
- data/dist/fonts/OpenSans-BoldItalic-webfont.woff2 +0 -0
- data/dist/fonts/OpenSans-ExtraBold-webfont.eot +0 -0
- data/dist/fonts/OpenSans-ExtraBold-webfont.svg +19030 -0
- data/dist/fonts/OpenSans-ExtraBold-webfont.ttf +0 -0
- data/dist/fonts/OpenSans-ExtraBold-webfont.woff +0 -0
- data/dist/fonts/OpenSans-ExtraBold-webfont.woff2 +0 -0
- data/dist/fonts/OpenSans-ExtraBoldItalic-webfont.eot +0 -0
- data/dist/fonts/OpenSans-ExtraBoldItalic-webfont.svg +19036 -0
- data/dist/fonts/OpenSans-ExtraBoldItalic-webfont.ttf +0 -0
- data/dist/fonts/OpenSans-ExtraBoldItalic-webfont.woff +0 -0
- data/dist/fonts/OpenSans-ExtraBoldItalic-webfont.woff2 +0 -0
- data/dist/fonts/OpenSans-Italic-webfont.eot +0 -0
- data/dist/fonts/OpenSans-Italic-webfont.svg +19043 -0
- data/dist/fonts/OpenSans-Italic-webfont.ttf +0 -0
- data/dist/fonts/OpenSans-Italic-webfont.woff +0 -0
- data/dist/fonts/OpenSans-Italic-webfont.woff2 +0 -0
- data/dist/fonts/OpenSans-Light-webfont.eot +0 -0
- data/dist/fonts/OpenSans-Light-webfont.svg +19026 -0
- data/dist/fonts/OpenSans-Light-webfont.ttf +0 -0
- data/dist/fonts/OpenSans-Light-webfont.woff +0 -0
- data/dist/fonts/OpenSans-Light-webfont.woff2 +0 -0
- data/dist/fonts/OpenSans-LightItalic-webfont.eot +0 -0
- data/dist/fonts/OpenSans-LightItalic-webfont.svg +19039 -0
- data/dist/fonts/OpenSans-LightItalic-webfont.ttf +0 -0
- data/dist/fonts/OpenSans-LightItalic-webfont.woff +0 -0
- data/dist/fonts/OpenSans-LightItalic-webfont.woff2 +0 -0
- data/dist/fonts/OpenSans-Regular-webfont.eot +0 -0
- data/dist/fonts/OpenSans-Regular-webfont.svg +19030 -0
- data/dist/fonts/OpenSans-Regular-webfont.ttf +0 -0
- data/dist/fonts/OpenSans-Regular-webfont.woff +0 -0
- data/dist/fonts/OpenSans-Regular-webfont.woff2 +0 -0
- data/dist/fonts/OpenSans-Semibold-webfont.eot +0 -0
- data/dist/fonts/OpenSans-Semibold-webfont.svg +19030 -0
- data/dist/fonts/OpenSans-Semibold-webfont.ttf +0 -0
- data/dist/fonts/OpenSans-Semibold-webfont.woff +0 -0
- data/dist/fonts/OpenSans-Semibold-webfont.woff2 +0 -0
- data/dist/fonts/OpenSans-SemiboldItalic-webfont.eot +0 -0
- data/dist/fonts/OpenSans-SemiboldItalic-webfont.svg +19043 -0
- data/dist/fonts/OpenSans-SemiboldItalic-webfont.ttf +0 -0
- data/dist/fonts/OpenSans-SemiboldItalic-webfont.woff +0 -0
- data/dist/fonts/OpenSans-SemiboldItalic-webfont.woff2 +0 -0
- data/dist/fonts/PatternFlyIcons-webfont.eot +0 -0
- data/dist/fonts/PatternFlyIcons-webfont.svg +140 -0
- data/dist/fonts/PatternFlyIcons-webfont.ttf +0 -0
- data/dist/fonts/PatternFlyIcons-webfont.woff +0 -0
- data/dist/fonts/fontawesome-webfont.eot +0 -0
- data/dist/fonts/fontawesome-webfont.svg +2671 -0
- data/dist/fonts/fontawesome-webfont.ttf +0 -0
- data/dist/fonts/fontawesome-webfont.woff +0 -0
- data/dist/fonts/fontawesome-webfont.woff2 +0 -0
- data/dist/fonts/glyphicons-halflings-regular.eot +0 -0
- data/dist/fonts/glyphicons-halflings-regular.svg +288 -0
- data/dist/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/dist/fonts/glyphicons-halflings-regular.woff +0 -0
- data/dist/fonts/glyphicons-halflings-regular.woff2 +0 -0
- data/dist/img/Logo_Horizontal_Reversed.svg +49 -0
- data/dist/img/OpenShift-Logo-NoText.svg +51 -0
- data/dist/img/OpenShift-Logo-Text.svg +95 -0
- data/dist/img/OpenShift-logo.svg +69 -0
- data/dist/img/RH_Atomic-Logo-NoText.svg +53 -0
- data/dist/img/RH_Atomic-Logo-Text.svg +91 -0
- data/dist/img/RH_atomic.svg +88 -0
- data/dist/img/apple-touch-icon-precomposed-114.png +0 -0
- data/dist/img/apple-touch-icon-precomposed-144.png +0 -0
- data/dist/img/apple-touch-icon-precomposed-152.png +0 -0
- data/dist/img/apple-touch-icon-precomposed-180.png +0 -0
- data/dist/img/apple-touch-icon-precomposed-57.png +0 -0
- data/dist/img/apple-touch-icon-precomposed-72.png +0 -0
- data/dist/img/apple-touch-icon-precomposed-76.png +0 -0
- data/dist/img/bg-login-2.png +0 -0
- data/dist/img/bg-login.jpg +0 -0
- data/dist/img/bg-login.png +0 -0
- data/dist/img/bg-modal-about-pf.png +0 -0
- data/dist/img/bg-navbar-pf-alt.svg +9 -0
- data/dist/img/brand-alt.svg +88 -0
- data/dist/img/brand.svg +87 -0
- data/dist/img/dropbox-logo.svg +15 -0
- data/dist/img/facebook-logo.svg +12 -0
- data/dist/img/favicon.ico +0 -0
- data/dist/img/fedora-logo.png +0 -0
- data/dist/img/git-logo.svg +21 -0
- data/dist/img/github-logo.svg +17 -0
- data/dist/img/gmail.svg +23 -0
- data/dist/img/google-calendar.svg +26 -0
- data/dist/img/google-drive.svg +17 -0
- data/dist/img/google-logo.svg +19 -0
- data/dist/img/instagram-logo.png +0 -0
- data/dist/img/kubernetes-Logo.svg +60 -0
- data/dist/img/kubernetes.svg +8 -0
- data/dist/img/linkedin-logo.svg +13 -0
- data/dist/img/logo-alt.svg +18 -0
- data/dist/img/logo.svg +22 -0
- data/dist/img/open-id-logo.svg +19 -0
- data/dist/img/rcue-full.svg +221 -0
- data/dist/img/rcue.svg +92 -0
- data/dist/img/redhat_reverse.png +0 -0
- data/dist/img/skype-logo.svg +23 -0
- data/dist/img/spinner-inverse-lg.gif +0 -0
- data/dist/img/spinner-inverse-sm.gif +0 -0
- data/dist/img/spinner-inverse-xs.gif +0 -0
- data/dist/img/spinner-inverse.gif +0 -0
- data/dist/img/spinner-lg.gif +0 -0
- data/dist/img/spinner-sm.gif +0 -0
- data/dist/img/spinner-xs.gif +0 -0
- data/dist/img/spinner.gif +0 -0
- data/dist/img/stack-exchange-logo.svg +21 -0
- data/dist/img/twitter-logo.svg +19 -0
- data/dist/js/patternfly-functions-base.js +7 -0
- data/dist/js/patternfly-functions-charts.js +13 -0
- data/dist/js/patternfly-functions-colors.js +8 -0
- data/dist/js/patternfly-functions-count-chars.js +59 -0
- data/dist/js/patternfly-functions-data-tables.js +149 -0
- data/dist/js/patternfly-functions-fixed-heights.js +109 -0
- data/dist/js/patternfly-functions-list.js +79 -0
- data/dist/js/patternfly-functions-navigation.js +113 -0
- data/dist/js/patternfly-functions-popovers.js +37 -0
- data/dist/js/patternfly-functions-sidebar.js +31 -0
- data/dist/js/patternfly-functions-tree-grid.js +82 -0
- data/dist/js/patternfly-functions-vertical-nav.js +610 -0
- data/dist/js/patternfly-functions.js +1307 -0
- data/dist/js/patternfly-functions.min.js +1 -0
- data/dist/js/patternfly-settings-base.d.ts +9 -0
- data/dist/js/patternfly-settings-base.js +16 -0
- data/dist/js/patternfly-settings-charts.d.ts +92 -0
- data/dist/js/patternfly-settings-charts.js +449 -0
- data/dist/js/patternfly-settings-colors.d.ts +88 -0
- data/dist/js/patternfly-settings-colors.js +91 -0
- data/dist/js/patternfly-settings.d.ts +3 -0
- data/dist/js/patternfly-settings.js +558 -0
- data/dist/js/patternfly-settings.min.js +1 -0
- data/dist/js/patternfly.dataTables.pfColVis.js +151 -0
- data/dist/js/patternfly.dataTables.pfEmpty.js +253 -0
- data/dist/js/patternfly.dataTables.pfEmpty.min.js +1 -0
- data/dist/js/patternfly.dataTables.pfFilter.js +429 -0
- data/dist/js/patternfly.dataTables.pfFilter.min.js +1 -0
- data/dist/js/patternfly.dataTables.pfPagination.js +401 -0
- data/dist/js/patternfly.dataTables.pfPagination.min.js +1 -0
- data/dist/js/patternfly.dataTables.pfResize.js +214 -0
- data/dist/js/patternfly.dataTables.pfResize.min.js +1 -0
- data/dist/js/patternfly.dataTables.pfSelect.js +281 -0
- data/dist/js/patternfly.dataTables.pfSelect.min.js +1 -0
- data/dist/js/patternfly.js +1866 -0
- data/dist/js/patternfly.min.js +2 -0
- data/dist/sass/_patternfly-compass.scss +3 -0
- data/dist/sass/_patternfly-sprockets.scss +3 -0
- data/dist/sass/_patternfly.scss +147 -0
- data/dist/sass/patternfly/_about-modal.scss +44 -0
- data/dist/sass/patternfly/_accordion.scss +18 -0
- data/dist/sass/patternfly/_alerts.scss +44 -0
- data/dist/sass/patternfly/_application-launcher.scss +213 -0
- data/dist/sass/patternfly/_badges.scss +11 -0
- data/dist/sass/patternfly/_blank-slate.scss +52 -0
- data/dist/sass/patternfly/_bootstrap-combobox.scss +35 -0
- data/dist/sass/patternfly/_bootstrap-datepicker.scss +132 -0
- data/dist/sass/patternfly/_bootstrap-mixin-overrides.scss +33 -0
- data/dist/sass/patternfly/_bootstrap-select.scss +108 -0
- data/dist/sass/patternfly/_bootstrap-slider.scss +66 -0
- data/dist/sass/patternfly/_bootstrap-switch.scss +19 -0
- data/dist/sass/patternfly/_bootstrap-touchspin.scss +31 -0
- data/dist/sass/patternfly/_bootstrap-treeview.scss +89 -0
- data/dist/sass/patternfly/_breadcrumbs.scss +20 -0
- data/dist/sass/patternfly/_buttons.scss +50 -0
- data/dist/sass/patternfly/_card-view.scss +105 -0
- data/dist/sass/patternfly/_cards.scss +238 -0
- data/dist/sass/patternfly/_charts.scss +388 -0
- data/dist/sass/patternfly/_close.scss +16 -0
- data/dist/sass/patternfly/_color-variables.scss +85 -0
- data/dist/sass/patternfly/_context-selector.scss +125 -0
- data/dist/sass/patternfly/_datatables.scss +186 -0
- data/dist/sass/patternfly/_date-and-time.scss +35 -0
- data/dist/sass/patternfly/_dropdowns.scss +235 -0
- data/dist/sass/patternfly/_experimental-features.scss +48 -0
- data/dist/sass/patternfly/_filter.scss +42 -0
- data/dist/sass/patternfly/_fonts.scss +124 -0
- data/dist/sass/patternfly/_footer.scss +19 -0
- data/dist/sass/patternfly/_forms.scss +192 -0
- data/dist/sass/patternfly/_icons.scss +371 -0
- data/dist/sass/patternfly/_infotip.scss +145 -0
- data/dist/sass/patternfly/_labels.scss +17 -0
- data/dist/sass/patternfly/_layouts.scss +140 -0
- data/dist/sass/patternfly/_links.scss +5 -0
- data/dist/sass/patternfly/_list-group.scss +23 -0
- data/dist/sass/patternfly/_list-pf.scss +178 -0
- data/dist/sass/patternfly/_list-view-dnd.scss +53 -0
- data/dist/sass/patternfly/_list-view.scss +390 -0
- data/dist/sass/patternfly/_login.scss +341 -0
- data/dist/sass/patternfly/_mixins.scss +81 -0
- data/dist/sass/patternfly/_modals.scss +49 -0
- data/dist/sass/patternfly/_nav-vertical-alt.scss +168 -0
- data/dist/sass/patternfly/_navbar-alt.scss +141 -0
- data/dist/sass/patternfly/_navbar-vertical.scss +168 -0
- data/dist/sass/patternfly/_navbar.scss +579 -0
- data/dist/sass/patternfly/_notifications-drawer.scss +250 -0
- data/dist/sass/patternfly/_pager.scss +68 -0
- data/dist/sass/patternfly/_pagination.scss +121 -0
- data/dist/sass/patternfly/_panels.scss +134 -0
- data/dist/sass/patternfly/_popovers.scss +52 -0
- data/dist/sass/patternfly/_progress-bars.scss +121 -0
- data/dist/sass/patternfly/_rcue-about-modal.scss +45 -0
- data/dist/sass/patternfly/_rcue-additions.scss +11 -0
- data/dist/sass/patternfly/_rcue-login.scss +75 -0
- data/dist/sass/patternfly/_rcue-variables.scss +57 -0
- data/dist/sass/patternfly/_rcue.scss +6 -0
- data/dist/sass/patternfly/_search.scss +64 -0
- data/dist/sass/patternfly/_sidebar.scss +176 -0
- data/dist/sass/patternfly/_skip-to-content.scss +12 -0
- data/dist/sass/patternfly/_spinner.scss +72 -0
- data/dist/sass/patternfly/_syntax-highlighting.scss +36 -0
- data/dist/sass/patternfly/_table-view.scss +188 -0
- data/dist/sass/patternfly/_tables.scss +90 -0
- data/dist/sass/patternfly/_tabs.scss +118 -0
- data/dist/sass/patternfly/_time-picker.scss +98 -0
- data/dist/sass/patternfly/_toast.scss +75 -0
- data/dist/sass/patternfly/_toolbar.scss +190 -0
- data/dist/sass/patternfly/_tooltip.scss +15 -0
- data/dist/sass/patternfly/_tree-list-view.scss +83 -0
- data/dist/sass/patternfly/_type.scss +29 -0
- data/dist/sass/patternfly/_variables.scss +595 -0
- data/dist/sass/patternfly/_vertical-nav.scss +944 -0
- data/dist/sass/patternfly/_wizard.scss +665 -0
- data/dist/sass/patternfly/dependencies/bootstrap-combobox/combobox.scss +57 -0
- data/dist/sass/patternfly/dependencies/bootstrap-datepicker/datepicker.scss +242 -0
- data/dist/sass/patternfly/dependencies/bootstrap-datepicker/datepicker3.scss +257 -0
- data/dist/sass/patternfly/dependencies/bootstrap-select/bootstrap-select.scss +389 -0
- data/dist/sass/patternfly/dependencies/bootstrap-select/variables.scss +9 -0
- data/dist/sass/patternfly/dependencies/bootstrap-slider/_mixins.scss +25 -0
- data/dist/sass/patternfly/dependencies/bootstrap-slider/_rules.scss +246 -0
- data/dist/sass/patternfly/dependencies/bootstrap-slider/_variables.scss +28 -0
- data/dist/sass/patternfly/dependencies/bootstrap-slider/bootstrap-slider.scss +42 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/bootstrap-switch.scss +195 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/build.scss +3 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/alerts.scss +14 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/background-variant.scss +9 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/border-radius.scss +18 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/buttons.scss +68 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/center-block.scss +7 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/clearfix.scss +22 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/forms.scss +85 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/gradients.scss +59 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/grid-framework.scss +98 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/grid.scss +122 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/hide-text.scss +21 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/image.scss +33 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/labels.scss +12 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/list-group.scss +29 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/nav-divider.scss +10 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/nav-vertical-align.scss +9 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/opacity.scss +8 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/pagination.scss +23 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/panels.scss +24 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/progress-bar.scss +10 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/reset-filter.scss +8 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/reset-text.scss +18 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/resize.scss +6 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/responsive-visibility.scss +15 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/size.scss +10 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/tab-focus.scss +9 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/table-row.scss +28 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/text-emphasis.scss +9 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/text-overflow.scss +8 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins/vendor-prefixes.scss +227 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/mixins.scss +40 -0
- data/dist/sass/patternfly/dependencies/bootstrap-switch/variables.scss +862 -0
- data/dist/sass/patternfly/dependencies/bootstrap-touchspin/_jquery.bootstrap-touchspin.scss +45 -0
- data/dist/sass/patternfly/dependencies/c3/_c3.scss +178 -0
- data/dist/sass/patternfly/dependencies/eonasdan-bootstrap-datetimepicker/_bootstrap-datetimepicker.scss +344 -0
- data/dist/sass/patternfly/dependencies/eonasdan-bootstrap-datetimepicker/bootstrap-datetimepicker-build.scss +16 -0
- data/dist/sass/rcue/_about-modal.scss +44 -0
- data/dist/sass/rcue/_accordion.scss +18 -0
- data/dist/sass/rcue/_alerts.scss +44 -0
- data/dist/sass/rcue/_badges.scss +11 -0
- data/dist/sass/rcue/_blank-slate.scss +52 -0
- data/dist/sass/rcue/_bootstrap-combobox.scss +35 -0
- data/dist/sass/rcue/_bootstrap-datepicker.scss +132 -0
- data/dist/sass/rcue/_bootstrap-mixin-overrides.scss +33 -0
- data/dist/sass/rcue/_bootstrap-select.scss +108 -0
- data/dist/sass/rcue/_bootstrap-slider.scss +66 -0
- data/dist/sass/rcue/_bootstrap-switch.scss +19 -0
- data/dist/sass/rcue/_bootstrap-touchspin.scss +31 -0
- data/dist/sass/rcue/_bootstrap-treeview.scss +89 -0
- data/dist/sass/rcue/_breadcrumbs.scss +20 -0
- data/dist/sass/rcue/_buttons.scss +50 -0
- data/dist/sass/rcue/_card-view.scss +105 -0
- data/dist/sass/rcue/_cards.scss +238 -0
- data/dist/sass/rcue/_charts.scss +388 -0
- data/dist/sass/rcue/_close.scss +16 -0
- data/dist/sass/rcue/_color-variables.scss +85 -0
- data/dist/sass/rcue/_context-selector.scss +125 -0
- data/dist/sass/rcue/_datatables.scss +186 -0
- data/dist/sass/rcue/_date-and-time.scss +35 -0
- data/dist/sass/rcue/_dropdowns.scss +235 -0
- data/dist/sass/rcue/_experimental-features.scss +48 -0
- data/dist/sass/rcue/_filter.scss +42 -0
- data/dist/sass/rcue/_fonts.scss +124 -0
- data/dist/sass/rcue/_footer.scss +19 -0
- data/dist/sass/rcue/_forms.scss +192 -0
- data/dist/sass/rcue/_icons.scss +371 -0
- data/dist/sass/rcue/_infotip.scss +145 -0
- data/dist/sass/rcue/_labels.scss +17 -0
- data/dist/sass/rcue/_layouts.scss +140 -0
- data/dist/sass/rcue/_links.scss +5 -0
- data/dist/sass/rcue/_list-group.scss +23 -0
- data/dist/sass/rcue/_list-pf.scss +178 -0
- data/dist/sass/rcue/_list-view-dnd.scss +53 -0
- data/dist/sass/rcue/_list-view.scss +390 -0
- data/dist/sass/rcue/_login.scss +341 -0
- data/dist/sass/rcue/_mixins.scss +81 -0
- data/dist/sass/rcue/_modals.scss +49 -0
- data/dist/sass/rcue/_nav-vertical-alt.scss +168 -0
- data/dist/sass/rcue/_navbar-alt.scss +141 -0
- data/dist/sass/rcue/_navbar-vertical.scss +168 -0
- data/dist/sass/rcue/_navbar.scss +579 -0
- data/dist/sass/rcue/_notifications-drawer.scss +250 -0
- data/dist/sass/rcue/_pager.scss +68 -0
- data/dist/sass/rcue/_pagination.scss +121 -0
- data/dist/sass/rcue/_panels.scss +134 -0
- data/dist/sass/rcue/_patternfly-additions.scss +76 -0
- data/dist/sass/rcue/_patternfly.scss +31 -0
- data/dist/sass/rcue/_popovers.scss +52 -0
- data/dist/sass/rcue/_progress-bars.scss +121 -0
- data/dist/sass/rcue/_rcue-about-modal.scss +45 -0
- data/dist/sass/rcue/_rcue-login.scss +75 -0
- data/dist/sass/rcue/_rcue-variables.scss +57 -0
- data/dist/sass/rcue/_search.scss +64 -0
- data/dist/sass/rcue/_sidebar.scss +176 -0
- data/dist/sass/rcue/_skip-to-content.scss +12 -0
- data/dist/sass/rcue/_spinner.scss +72 -0
- data/dist/sass/rcue/_syntax-highlighting.scss +36 -0
- data/dist/sass/rcue/_table-view.scss +188 -0
- data/dist/sass/rcue/_tables.scss +90 -0
- data/dist/sass/rcue/_tabs.scss +118 -0
- data/dist/sass/rcue/_time-picker.scss +98 -0
- data/dist/sass/rcue/_toast.scss +75 -0
- data/dist/sass/rcue/_toolbar.scss +190 -0
- data/dist/sass/rcue/_tooltip.scss +15 -0
- data/dist/sass/rcue/_tree-list-view.scss +83 -0
- data/dist/sass/rcue/_type.scss +29 -0
- data/dist/sass/rcue/_variables.scss +595 -0
- data/dist/sass/rcue/_vertical-nav.scss +944 -0
- data/dist/sass/rcue/_wizard.scss +665 -0
- data/lib/patternfly-sass/engine.rb +11 -0
- data/lib/patternfly-sass/version.rb +3 -0
- data/lib/patternfly-sass.rb +92 -0
- data/patternfly-sass.gemspec +31 -0
- metadata +445 -0
@@ -0,0 +1,151 @@
|
|
1
|
+
/**
|
2
|
+
* @summary pfColVis for DataTables
|
3
|
+
* @description An extension providing columns visibility control functionality for DataTables. This ensures
|
4
|
+
* DataTables meets the Patternfly design pattern with a toolbar.
|
5
|
+
*
|
6
|
+
* To enable a colvis, the user just need to specify a region for placing colvis menu. By default, the colvis
|
7
|
+
* menu includes the items derived from all columns of Datatables. And of course user can also limit the
|
8
|
+
* generation of the column's visibility checkbox through picking out column index.
|
9
|
+
*
|
10
|
+
* The toolbar is expected to contain the classes as shown in the example below.
|
11
|
+
*
|
12
|
+
* Example:
|
13
|
+
*
|
14
|
+
* <!-- NOTE: Some configuration may be omitted for clarity -->
|
15
|
+
* <div class="row toolbar-pf table-view-pf-toolbar" id="toolbar1">
|
16
|
+
* <div class="col-sm-12">
|
17
|
+
* <form class="toolbar-pf-actions">
|
18
|
+
* <div class="form-group toolbar-pf-filter">
|
19
|
+
* </div>
|
20
|
+
* <div class="form-group toolbar-pf-sort">
|
21
|
+
* <div class="dropdown btn-group">
|
22
|
+
* </div>
|
23
|
+
* <button class="btn btn-link" type="button">
|
24
|
+
* <span class="fa fa-sort-alpha-asc"></span>
|
25
|
+
* </button>
|
26
|
+
* <div class="dropdown btn-group">
|
27
|
+
* <button class="btn btn-link dropdown-toggle" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
28
|
+
* <span class="fa fa-columns"></span>
|
29
|
+
* </button>
|
30
|
+
* <ul class="dropdown-menu table-view-pf-colvis-menu">
|
31
|
+
* <li><input type="checkbox" value="1" checked><label>Rendering Engine</label></li>
|
32
|
+
* <li><input type="checkbox" value="2" checked><label>Browser</label></li>
|
33
|
+
* <li><input type="checkbox" value="3" checked><label>Platform(s)</label></li>
|
34
|
+
* <li><input type="checkbox" value="4" checked><label>Engine Version</label></li>
|
35
|
+
* <li><input type="checkbox" value="5" checked><label>CSS Grade</label></li>
|
36
|
+
* </ul>
|
37
|
+
* </div>
|
38
|
+
* </div>
|
39
|
+
* ...
|
40
|
+
* </form>
|
41
|
+
* </div>
|
42
|
+
* </div>
|
43
|
+
* <table class="table table-striped table-bordered table-hover" id="table1">
|
44
|
+
* <thead>
|
45
|
+
* <tr>
|
46
|
+
* <th><input type="checkbox" name="selectAll"></th>
|
47
|
+
* <th>Rendering Engine</th>
|
48
|
+
* <th>Browser</th>
|
49
|
+
* </tr>
|
50
|
+
* </thead>
|
51
|
+
* </table>
|
52
|
+
* ...
|
53
|
+
* <script>
|
54
|
+
* // NOTE: Some properties may be omitted for clarity
|
55
|
+
* $(document).ready(function() {
|
56
|
+
* var dt = $("#table1").DataTable({
|
57
|
+
* columns: [
|
58
|
+
* { data: null, ... },
|
59
|
+
* { data: "engine" },
|
60
|
+
* { data: "browser" }
|
61
|
+
* ],
|
62
|
+
* data: [
|
63
|
+
* { engine: "Gecko", browser: "Firefox" }
|
64
|
+
* { engine: "Trident", browser: "Mozilla" }
|
65
|
+
* ],
|
66
|
+
* dom: "t",
|
67
|
+
* pfConfig: {
|
68
|
+
* ...
|
69
|
+
* colvisMenuSelector: '.table-view-pf-colvis-menu'
|
70
|
+
* }
|
71
|
+
* });
|
72
|
+
*
|
73
|
+
* });
|
74
|
+
* </script>
|
75
|
+
*/
|
76
|
+
(function (factory) {
|
77
|
+
"use strict";
|
78
|
+
if (typeof define === "function" && define.amd ) {
|
79
|
+
// AMD
|
80
|
+
define (["jquery", "datatables.net"], function ($) {
|
81
|
+
return factory ($, window, document);
|
82
|
+
});
|
83
|
+
} else if (typeof exports === "object") {
|
84
|
+
// CommonJS
|
85
|
+
module.exports = function (root, $) {
|
86
|
+
if (!root) {
|
87
|
+
root = window;
|
88
|
+
}
|
89
|
+
if (!$ || !$.fn.dataTable) {
|
90
|
+
$ = require("datatables.net")(root, $).$;
|
91
|
+
}
|
92
|
+
return factory($, root, root.document);
|
93
|
+
};
|
94
|
+
} else {
|
95
|
+
// Browser
|
96
|
+
factory(jQuery, window, document);
|
97
|
+
}
|
98
|
+
}(function ($, window, document, undefined) {
|
99
|
+
"use strict";
|
100
|
+
var DataTable = $.fn.dataTable;
|
101
|
+
|
102
|
+
DataTable.pfColVis = {};
|
103
|
+
|
104
|
+
/**
|
105
|
+
* Initialize
|
106
|
+
*
|
107
|
+
* @param {DataTable.Api} dt DataTable
|
108
|
+
* @private
|
109
|
+
*/
|
110
|
+
DataTable.pfColVis.init = function (dt) {
|
111
|
+
var i;
|
112
|
+
var ctx = dt.settings()[0];
|
113
|
+
var opts = (ctx.oInit.pfConfig) ? ctx.oInit.pfConfig : {};
|
114
|
+
|
115
|
+
if (opts.colvisMenuSelector === undefined) {
|
116
|
+
return;
|
117
|
+
}
|
118
|
+
|
119
|
+
ctx._pfColVis = {};
|
120
|
+
ctx._pfColVis.colvisMenu = $(opts.colvisMenuSelector, opts.toolbarSelector);
|
121
|
+
|
122
|
+
// Attach event handler for checkbox of ColVis menu
|
123
|
+
ctx._pfColVis.colvisMenu.on('click', 'li', { 'dt': dt }, colvisMenuHandler);
|
124
|
+
};
|
125
|
+
|
126
|
+
// Local functions
|
127
|
+
|
128
|
+
/**
|
129
|
+
* Handle actions when ColVis menu items are toggled
|
130
|
+
*
|
131
|
+
* @param {object} jquery eventObject - click event of ColVis menu items
|
132
|
+
* @private
|
133
|
+
*/
|
134
|
+
function colvisMenuHandler (event) {
|
135
|
+
var $check = $(this).children(':checkbox');
|
136
|
+
if (event.target.nodeName !== 'INPUT') {
|
137
|
+
event.stopPropagation();
|
138
|
+
$check.prop('checked', !$check.prop('checked'));
|
139
|
+
}
|
140
|
+
event.data.dt.column($check.val()).visible($check.prop('checked'));
|
141
|
+
}
|
142
|
+
|
143
|
+
// DataTables creation
|
144
|
+
$(document).on("init.dt", function (e, ctx, json) {
|
145
|
+
if (e.namespace !== "dt") {
|
146
|
+
return;
|
147
|
+
}
|
148
|
+
DataTable.pfColVis.init(new DataTable.Api(ctx));
|
149
|
+
});
|
150
|
+
return DataTable.pfColVis;
|
151
|
+
}));
|
@@ -0,0 +1,253 @@
|
|
1
|
+
/**
|
2
|
+
* @summary pfEmpty for DataTables
|
3
|
+
* @description A collection of API methods providing functionality to hide and show elements when DataTables is empty.
|
4
|
+
* This ensures DataTables meets the Patternfly design pattern with a toolbar and empty state.
|
5
|
+
*
|
6
|
+
* When DataTable is redrawn and data length is zero, controls under the toolbar-pf-actions and toolbar-pf-results
|
7
|
+
* classes are disabled; including the filter drop down, filter input, action buttons, kebab, find, etc. (You may
|
8
|
+
* re-enable specific controls via the DataTables "draw.dt" event.) In addition, the DataTables empty table header and
|
9
|
+
* row are hidden while the empty state (i.e., blank slate) layout is shown.
|
10
|
+
*
|
11
|
+
* The toolbar and empty state layouts are expected to contain the classes as shown in the example below.
|
12
|
+
*
|
13
|
+
* Example:
|
14
|
+
*
|
15
|
+
* <!-- NOTE: Some configuration may be omitted for clarity -->
|
16
|
+
* <div class="row toolbar-pf table-view-pf-toolbar" id="toolbar1">
|
17
|
+
* <div class="col-sm-12">
|
18
|
+
* <form class="toolbar-pf-actions">
|
19
|
+
* ...
|
20
|
+
* </form>
|
21
|
+
* <div class="row toolbar-pf-results">
|
22
|
+
* ...
|
23
|
+
* </div>
|
24
|
+
* </div>
|
25
|
+
* </div>
|
26
|
+
* <table class="table table-striped table-bordered table-hover" id="table1">
|
27
|
+
* <thead>
|
28
|
+
* <tr>
|
29
|
+
* <th><input type="checkbox" name="selectAll"></th>
|
30
|
+
* <th>Rendering Engine</th>
|
31
|
+
* <th>Browser</th>
|
32
|
+
* </tr>
|
33
|
+
* </thead>
|
34
|
+
* </table>
|
35
|
+
* <div class="blank-slate-pf table-view-pf-empty hidden" id="emptyState1">
|
36
|
+
* <div class="blank-slate-pf-icon">
|
37
|
+
* <span class="pficon pficon pficon-add-circle-o"></span>
|
38
|
+
* </div>
|
39
|
+
* <h1>Empty State Title</h1>
|
40
|
+
* ...
|
41
|
+
* </div>
|
42
|
+
* <script>
|
43
|
+
* // NOTE: Some properties may be omitted for clarity
|
44
|
+
* $(document).ready(function() {
|
45
|
+
* var dt = $("#table1").DataTable({
|
46
|
+
* columns: [
|
47
|
+
* { data: null, ... },
|
48
|
+
* { data: "engine" },
|
49
|
+
* { data: "browser" }
|
50
|
+
* ],
|
51
|
+
* data: null,
|
52
|
+
* dom: "t",
|
53
|
+
* pfConfig: {
|
54
|
+
* emptyStateSelector: "#emptyState1",
|
55
|
+
* ...
|
56
|
+
* toolbarSelector: "#toolbar1"
|
57
|
+
* }
|
58
|
+
* });
|
59
|
+
* dt.table().pfEmpty.updateState(); // Optional API to force update
|
60
|
+
* });
|
61
|
+
* </script>
|
62
|
+
*
|
63
|
+
* Note: This functionality requires the following Javascript library files to be loaded:
|
64
|
+
*
|
65
|
+
* https://cdn.datatables.net/select/1.2.0/js/dataTables.select.min.js
|
66
|
+
*/
|
67
|
+
(function (factory) {
|
68
|
+
"use strict";
|
69
|
+
if (typeof define === "function" && define.amd ) {
|
70
|
+
// AMD
|
71
|
+
define (["jquery", "datatables.net"], function ($) {
|
72
|
+
return factory ($, window, document);
|
73
|
+
});
|
74
|
+
} else if (typeof exports === "object") {
|
75
|
+
// CommonJS
|
76
|
+
module.exports = function (root, $) {
|
77
|
+
if (!root) {
|
78
|
+
root = window;
|
79
|
+
}
|
80
|
+
if (!$ || !$.fn.dataTable) {
|
81
|
+
$ = require("datatables.net")(root, $).$;
|
82
|
+
}
|
83
|
+
return factory($, root, root.document);
|
84
|
+
};
|
85
|
+
} else {
|
86
|
+
// Browser
|
87
|
+
factory(jQuery, window, document);
|
88
|
+
}
|
89
|
+
}(function ($, window, document, undefined) {
|
90
|
+
"use strict";
|
91
|
+
var DataTable = $.fn.dataTable;
|
92
|
+
var ACTIONS_SELECTOR = ".toolbar-pf-actions"; // Toolbar actions
|
93
|
+
var RESULTS_SELECTOR = ".toolbar-pf-results"; // Toolbar results row
|
94
|
+
|
95
|
+
DataTable.pfEmpty = {};
|
96
|
+
|
97
|
+
/**
|
98
|
+
* Initialize
|
99
|
+
*
|
100
|
+
* @param {DataTable.Api} dt DataTable
|
101
|
+
* @private
|
102
|
+
*/
|
103
|
+
DataTable.pfEmpty.init = function (dt) {
|
104
|
+
var ctx = dt.settings()[0];
|
105
|
+
var opts = (ctx.oInit.pfConfig) ? ctx.oInit.pfConfig : {};
|
106
|
+
|
107
|
+
ctx._pfEmpty = {};
|
108
|
+
ctx._pfEmpty.emptyState = $(opts.emptyStateSelector); // Empty state (Blank slate)
|
109
|
+
ctx._pfEmpty.isEmptyState = false; // Flag indicating DatTable entered an empty state
|
110
|
+
ctx._pfEmpty.pagination = $(opts.paginationSelector); // Pagination
|
111
|
+
ctx._pfEmpty.tbody = $("tbody", dt.table().container()); // Table body
|
112
|
+
ctx._pfEmpty.thead = $("thead", dt.table().container()); // Table head
|
113
|
+
ctx._pfEmpty.toolbarActions = $(ACTIONS_SELECTOR, opts.toolbarSelector); // Toolbar actions
|
114
|
+
ctx._pfEmpty.toolbarResults = $(RESULTS_SELECTOR, opts.toolbarSelector); // Toolbar results row
|
115
|
+
|
116
|
+
// Update table on DataTables draw event
|
117
|
+
dt.on("draw.dt", function () {
|
118
|
+
updateState(dt);
|
119
|
+
});
|
120
|
+
|
121
|
+
// Initialize
|
122
|
+
updateState(dt);
|
123
|
+
};
|
124
|
+
|
125
|
+
// Local functions
|
126
|
+
|
127
|
+
/**
|
128
|
+
* Disable and hide elements when DataTables has no data
|
129
|
+
*
|
130
|
+
* @param {DataTable.Api} dt DataTable
|
131
|
+
* @private
|
132
|
+
*/
|
133
|
+
function updateEmptyState (dt) {
|
134
|
+
var ctx = dt.settings()[0];
|
135
|
+
|
136
|
+
// Show blank slate
|
137
|
+
if (ctx._pfEmpty.emptyState !== undefined && ctx._pfEmpty.emptyState.length !== 0) {
|
138
|
+
ctx._pfEmpty.emptyState.removeClass("hidden");
|
139
|
+
}
|
140
|
+
// Hide zero records message
|
141
|
+
if (ctx._pfEmpty.tbody !== undefined && ctx._pfEmpty.tbody.length !== 0) {
|
142
|
+
ctx._pfEmpty.tbody.addClass("hidden");
|
143
|
+
}
|
144
|
+
// Hide column headers
|
145
|
+
if (ctx._pfEmpty.thead !== undefined && ctx._pfEmpty.thead.length !== 0) {
|
146
|
+
ctx._pfEmpty.thead.addClass("hidden");
|
147
|
+
}
|
148
|
+
// Disable all buttons
|
149
|
+
if (ctx._pfEmpty.toolbarActions !== undefined && ctx._pfEmpty.toolbarActions.length !== 0) {
|
150
|
+
$("button", ctx._pfEmpty.toolbarActions).prop("disabled", true);
|
151
|
+
}
|
152
|
+
// Disable all inputs
|
153
|
+
if (ctx._pfEmpty.toolbarActions !== undefined && ctx._pfEmpty.toolbarActions.length !== 0) {
|
154
|
+
$("input", ctx._pfEmpty.toolbarActions).prop("disabled", true);
|
155
|
+
}
|
156
|
+
// Hide results container
|
157
|
+
if (ctx._pfEmpty.toolbarResults !== undefined && ctx._pfEmpty.toolbarResults.length !== 0) {
|
158
|
+
ctx._pfEmpty.toolbarResults.children().addClass("hidden");
|
159
|
+
}
|
160
|
+
// Hide pagination
|
161
|
+
if (ctx._pfEmpty.pagination !== undefined && ctx._pfEmpty.pagination.length !== 0) {
|
162
|
+
ctx._pfEmpty.pagination.addClass("hidden");
|
163
|
+
}
|
164
|
+
// Enable on empty
|
165
|
+
if (ctx._pfEmpty.enableOnEmpty !== undefined) {
|
166
|
+
$(ctx._pfEmpty.enableOnEmpty).prop("disabled", false);
|
167
|
+
}
|
168
|
+
// Enable on empty
|
169
|
+
if (ctx._pfEmpty.enableOnEmpty !== undefined) {
|
170
|
+
$(ctx._pfEmpty.enableOnEmpty).prop("disabled", false);
|
171
|
+
}
|
172
|
+
}
|
173
|
+
|
174
|
+
/**
|
175
|
+
* Enable and show elements when DataTables has data
|
176
|
+
*
|
177
|
+
* @param {DataTable.Api} dt DataTable
|
178
|
+
* @private
|
179
|
+
*/
|
180
|
+
function updateNonEmptyState (dt) {
|
181
|
+
var ctx = dt.settings()[0];
|
182
|
+
|
183
|
+
// Hide blank slate
|
184
|
+
if (ctx._pfEmpty.emptyState !== undefined && ctx._pfEmpty.emptyState.length !== 0) {
|
185
|
+
ctx._pfEmpty.emptyState.addClass("hidden");
|
186
|
+
}
|
187
|
+
// Show table body
|
188
|
+
if (ctx._pfEmpty.tbody !== undefined && ctx._pfEmpty.tbody.length !== 0) {
|
189
|
+
ctx._pfEmpty.tbody.removeClass("hidden");
|
190
|
+
}
|
191
|
+
// Show column headers
|
192
|
+
if (ctx._pfEmpty.thead !== undefined && ctx._pfEmpty.thead.length !== 0) {
|
193
|
+
ctx._pfEmpty.thead.removeClass("hidden");
|
194
|
+
}
|
195
|
+
// Enable all buttons
|
196
|
+
if (ctx._pfEmpty.toolbarActions !== undefined && ctx._pfEmpty.toolbarActions.length !== 0) {
|
197
|
+
$("button", ctx._pfEmpty.toolbarActions).prop("disabled", false);
|
198
|
+
}
|
199
|
+
// Enable all inputs
|
200
|
+
if (ctx._pfEmpty.toolbarActions !== undefined && ctx._pfEmpty.toolbarActions.length !== 0) {
|
201
|
+
$("input", ctx._pfEmpty.toolbarActions).prop("disabled", false);
|
202
|
+
}
|
203
|
+
// Show results container
|
204
|
+
if (ctx._pfEmpty.toolbarResults !== undefined && ctx._pfEmpty.toolbarResults.length !== 0) {
|
205
|
+
ctx._pfEmpty.toolbarResults.children().removeClass("hidden");
|
206
|
+
}
|
207
|
+
// Show pagination
|
208
|
+
if (ctx._pfEmpty.pagination !== undefined && ctx._pfEmpty.pagination.length !== 0) {
|
209
|
+
ctx._pfEmpty.pagination.removeClass("hidden");
|
210
|
+
}
|
211
|
+
}
|
212
|
+
|
213
|
+
/**
|
214
|
+
* Update elements upon empty DataTable state
|
215
|
+
*
|
216
|
+
* @param {DataTable.Api} dt DataTable
|
217
|
+
* @private
|
218
|
+
*/
|
219
|
+
function updateState (dt) {
|
220
|
+
var ctx = dt.settings()[0];
|
221
|
+
|
222
|
+
// Don't enable or show elements unless DataTable was empty
|
223
|
+
if (dt.data().length === 0) {
|
224
|
+
ctx._pfEmpty.isEmptyState = true;
|
225
|
+
updateEmptyState(dt);
|
226
|
+
} else if (ctx._pfEmpty.isEmptyState === true) {
|
227
|
+
ctx._pfEmpty.isEmptyState = false;
|
228
|
+
updateNonEmptyState(dt);
|
229
|
+
}
|
230
|
+
}
|
231
|
+
|
232
|
+
// DataTables API
|
233
|
+
|
234
|
+
/**
|
235
|
+
* Update state upon empty or non-empty DataTable
|
236
|
+
*
|
237
|
+
* Example: dt.table().pfEmpty.updateState();
|
238
|
+
*/
|
239
|
+
DataTable.Api.register("pfEmpty.updateState()", function () {
|
240
|
+
return this.iterator("table", function (ctx) {
|
241
|
+
updateState(new DataTable.Api(ctx));
|
242
|
+
});
|
243
|
+
});
|
244
|
+
|
245
|
+
// DataTables creation
|
246
|
+
$(document).on("init.dt", function (e, ctx, json) {
|
247
|
+
if (e.namespace !== "dt") {
|
248
|
+
return;
|
249
|
+
}
|
250
|
+
DataTable.pfEmpty.init(new DataTable.Api(ctx));
|
251
|
+
});
|
252
|
+
return DataTable.pfEmpty;
|
253
|
+
}));
|
@@ -0,0 +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.pagination!==undefined&&0!==ctx._pfEmpty.pagination.length&&ctx._pfEmpty.pagination.addClass("hidden"),ctx._pfEmpty.enableOnEmpty!==undefined&&$(ctx._pfEmpty.enableOnEmpty).prop("disabled",!1),ctx._pfEmpty.enableOnEmpty!==undefined&&$(ctx._pfEmpty.enableOnEmpty).prop("disabled",!1)}function updateNonEmptyState(dt){var ctx=dt.settings()[0];ctx._pfEmpty.emptyState!==undefined&&0!==ctx._pfEmpty.emptyState.length&&ctx._pfEmpty.emptyState.addClass("hidden"),ctx._pfEmpty.tbody!==undefined&&0!==ctx._pfEmpty.tbody.length&&ctx._pfEmpty.tbody.removeClass("hidden"),ctx._pfEmpty.thead!==undefined&&0!==ctx._pfEmpty.thead.length&&ctx._pfEmpty.thead.removeClass("hidden"),ctx._pfEmpty.toolbarActions!==undefined&&0!==ctx._pfEmpty.toolbarActions.length&&$("button",ctx._pfEmpty.toolbarActions).prop("disabled",!1),ctx._pfEmpty.toolbarActions!==undefined&&0!==ctx._pfEmpty.toolbarActions.length&&$("input",ctx._pfEmpty.toolbarActions).prop("disabled",!1),ctx._pfEmpty.toolbarResults!==undefined&&0!==ctx._pfEmpty.toolbarResults.length&&ctx._pfEmpty.toolbarResults.children().removeClass("hidden"),ctx._pfEmpty.pagination!==undefined&&0!==ctx._pfEmpty.pagination.length&&ctx._pfEmpty.pagination.removeClass("hidden")}function updateState(dt){var ctx=dt.settings()[0];0===dt.data().length?(ctx._pfEmpty.isEmptyState=!0,updateEmptyState(dt)):!0===ctx._pfEmpty.isEmptyState&&(ctx._pfEmpty.isEmptyState=!1,updateNonEmptyState(dt))}var DataTable=$.fn.dataTable;return DataTable.pfEmpty={},DataTable.pfEmpty.init=function(dt){var ctx=dt.settings()[0],opts=ctx.oInit.pfConfig?ctx.oInit.pfConfig:{};ctx._pfEmpty={},ctx._pfEmpty.emptyState=$(opts.emptyStateSelector),ctx._pfEmpty.isEmptyState=!1,ctx._pfEmpty.pagination=$(opts.paginationSelector),ctx._pfEmpty.tbody=$("tbody",dt.table().container()),ctx._pfEmpty.thead=$("thead",dt.table().container()),ctx._pfEmpty.toolbarActions=$(".toolbar-pf-actions",opts.toolbarSelector),ctx._pfEmpty.toolbarResults=$(".toolbar-pf-results",opts.toolbarSelector),dt.on("draw.dt",function(){updateState(dt)}),updateState(dt)},DataTable.Api.register("pfEmpty.updateState()",function(){return this.iterator("table",function(ctx){updateState(new DataTable.Api(ctx))})}),$(document).on("init.dt",function(e,ctx,json){"dt"===e.namespace&&DataTable.pfEmpty.init(new DataTable.Api(ctx))}),DataTable.pfEmpty});
|