-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
727 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,3 +27,4 @@ Gemfile.lock | |
/pkg | ||
/tmp | ||
/.bundle | ||
/node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// Master manifest file for engine, so local app can require | ||
// this one file, but get all our files -- and local app | ||
// require does not need to change if we change file list. | ||
// | ||
// Note JQuery is required to be loaded for flot and blacklight_range_limit | ||
// JS to work, expect host app to load it. | ||
|
||
|
||
//= require 'flot/jquery.canvaswrapper.js' | ||
//= require 'flot/jquery.colorhelpers.js' | ||
//= require 'flot/jquery.flot.js' | ||
//= require 'flot/jquery.flot.browser.js' | ||
//= require 'flot/jquery.flot.saturated.js' | ||
//= require 'flot/jquery.flot.drawSeries.js' | ||
//= require 'flot/jquery.event.drag.js' | ||
//= require 'flot/jquery.flot.hover.js' | ||
//= require 'flot/jquery.flot.uiConstants.js' | ||
//= require 'flot/jquery.flot.selection.js' | ||
//= require 'bootstrap-slider' | ||
|
||
// Ensure that range_limit_shared is loaded first | ||
//= require 'blacklight_range_limit/range_limit_shared' | ||
//= require 'blacklight_range_limit/range_limit_plotting' | ||
//= require 'blacklight_range_limit/range_limit_slider' | ||
//= require 'blacklight_range_limit/range_limit_distro_facets' | ||
|
||
BlacklightRangeLimit.initialize = function() { | ||
// Support for Blacklight 7 and 8: | ||
const modalSelector = Blacklight.modal?.modalSelector || Blacklight.Modal.modalSelector | ||
|
||
RangeLimitDistroFacet.initialize(modalSelector) | ||
RangeLimitSlider.initialize(modalSelector) | ||
} | ||
|
||
// Blacklight will only be defined if you aren't using this in a module context | ||
if (Blacklight) | ||
Blacklight.onLoad(() => BlacklightRangeLimit.initialize()) | ||
|
||
// In a module context you can do: | ||
// import BlacklightRangeLimit from 'blacklight_range_limit' | ||
// Blacklight.onLoad(() => BlacklightRangeLimit.initialize()) | ||
export default BlacklightRangeLimit |
178 changes: 178 additions & 0 deletions
178
app/assets/javascripts/blacklight_range_limit/blacklight_range_limit.esm.js
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.