blacklight 8.3.0 → 8.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ruby.yml +10 -6
- data/.rubocop.yml +3 -0
- data/.rubocop_todo.yml +22 -55
- data/Gemfile +2 -10
- data/README.md +2 -2
- data/VERSION +1 -1
- data/app/assets/javascripts/blacklight/blacklight.esm.js +13 -7
- data/app/assets/javascripts/blacklight/blacklight.esm.js.map +1 -1
- data/app/assets/javascripts/blacklight/blacklight.js +13 -7
- data/app/assets/javascripts/blacklight/blacklight.js.map +1 -1
- data/app/assets/stylesheets/blacklight/_balanced_list.scss +1 -1
- data/app/assets/stylesheets/blacklight/_bookmark.scss +30 -0
- data/app/assets/stylesheets/blacklight/_bootstrap_overrides.scss +0 -4
- data/app/assets/stylesheets/blacklight/_constraints.scss +15 -9
- data/app/assets/stylesheets/blacklight/_controls.scss +0 -1
- data/app/assets/stylesheets/blacklight/_facets.scss +33 -37
- data/app/assets/stylesheets/blacklight/_header.scss +2 -35
- data/app/assets/stylesheets/blacklight/_icons.scss +3 -2
- data/app/assets/stylesheets/blacklight/_layout.scss +3 -0
- data/app/assets/stylesheets/blacklight/_mixins.scss +4 -4
- data/app/assets/stylesheets/blacklight/_search_form.scss +3 -8
- data/app/assets/stylesheets/blacklight/_search_history.scss +5 -5
- data/app/assets/stylesheets/blacklight/_search_results.scss +5 -2
- data/app/assets/stylesheets/blacklight/blacklight_defaults.scss +16 -10
- data/app/components/blacklight/advanced_search_form_component.html.erb +1 -1
- data/app/components/blacklight/advanced_search_form_component.rb +6 -0
- data/app/components/blacklight/constraint_layout_component.html.erb +2 -9
- data/app/components/blacklight/constraint_layout_component.rb +8 -0
- data/app/components/blacklight/constraints_component.rb +3 -3
- data/app/components/blacklight/document/action_component.rb +2 -1
- data/app/components/blacklight/document/bookmark_component.html.erb +2 -1
- data/app/components/blacklight/document/bookmark_component.rb +6 -0
- data/app/components/blacklight/document/page_header_component.html.erb +7 -0
- data/app/components/blacklight/document/page_header_component.rb +85 -0
- data/app/components/blacklight/document_component.rb +1 -1
- data/app/components/blacklight/facet_component.rb +1 -1
- data/app/components/blacklight/facet_field_checkboxes_component.html.erb +1 -1
- data/app/components/blacklight/facet_field_checkboxes_component.rb +1 -1
- data/app/components/blacklight/facet_field_inclusive_constraint_component.html.erb +1 -1
- data/app/components/blacklight/facet_field_list_component.html.erb +1 -1
- data/app/components/blacklight/facet_item_component.rb +1 -1
- data/app/components/blacklight/icons/bookmark_icon_component.rb +17 -0
- data/app/components/blacklight/icons/icon_component.rb +9 -4
- data/app/components/blacklight/icons/remove_component.rb +16 -0
- data/app/components/blacklight/metadata_field_component.html.erb +1 -1
- data/app/components/blacklight/metadata_field_component.rb +5 -0
- data/app/components/blacklight/response/facet_group_component.rb +1 -1
- data/app/components/blacklight/response/pagination_component.html.erb +1 -1
- data/app/components/blacklight/response/sort_component.html.erb +1 -6
- data/app/components/blacklight/response/sort_component.rb +15 -0
- data/app/components/blacklight/search/per_page_component.html.erb +2 -0
- data/app/components/blacklight/search/per_page_component.rb +50 -0
- data/app/components/blacklight/search_bar_component.html.erb +1 -1
- data/app/components/blacklight/search_context/server_item_pagination_component.html.erb +5 -4
- data/app/components/blacklight/search_context/server_item_pagination_component.rb +1 -1
- data/app/components/blacklight/skip_link_component.html.erb +7 -0
- data/app/components/blacklight/skip_link_component.rb +17 -0
- data/app/components/blacklight/system/dropdown_button_component.rb +18 -0
- data/app/components/blacklight/system/dropdown_component.rb +3 -6
- data/app/components/blacklight/system/flash_message_component.html.erb +1 -1
- data/app/components/blacklight/top_navbar_component.html.erb +2 -2
- data/app/components/blacklight/top_navbar_component.rb +4 -0
- data/app/helpers/blacklight/catalog_helper_behavior.rb +2 -0
- data/app/helpers/blacklight/component_helper_behavior.rb +4 -4
- data/app/helpers/blacklight/configuration_helper_behavior.rb +2 -0
- data/app/helpers/blacklight/document_helper_behavior.rb +14 -0
- data/app/javascript/blacklight/checkbox_submit.js +7 -1
- data/app/javascript/blacklight/core.js +5 -5
- data/app/models/concerns/blacklight/document/semantic_fields.rb +1 -1
- data/app/presenters/blacklight/facet_checkbox_item_presenter.rb +11 -0
- data/app/presenters/blacklight/facet_field_presenter.rb +9 -1
- data/app/services/blacklight/search_service.rb +9 -1
- data/app/views/catalog/_per_page_widget.html.erb +1 -10
- data/app/views/catalog/_search_results.html.erb +1 -1
- data/app/views/catalog/_show_main_content.html.erb +1 -1
- data/app/views/catalog/_show_sidebar.html.erb +1 -0
- data/app/views/catalog/show.html.erb +3 -3
- data/app/views/catalog/suggest.html.erb +1 -1
- data/app/views/kaminari/blacklight/_page.html.erb +14 -8
- data/app/views/kaminari/blacklight/_paginator.html.erb +2 -1
- data/app/views/layouts/blacklight/base.html.erb +3 -5
- data/blacklight.gemspec +6 -2
- data/{docker-compose.yml → compose.yaml} +1 -1
- data/config/locales/blacklight.ar.yml +3 -0
- data/config/locales/blacklight.de.yml +3 -0
- data/config/locales/blacklight.en.yml +216 -229
- data/config/locales/blacklight.es.yml +3 -0
- data/config/locales/blacklight.fr.yml +3 -0
- data/config/locales/blacklight.hu.yml +3 -0
- data/config/locales/blacklight.it.yml +3 -0
- data/config/locales/blacklight.nl.yml +3 -0
- data/config/locales/blacklight.pt-BR.yml +3 -0
- data/config/locales/blacklight.sq.yml +3 -0
- data/config/locales/blacklight.zh.yml +3 -0
- data/lib/blacklight/abstract_repository.rb +6 -0
- data/lib/blacklight/component.rb +10 -47
- data/lib/blacklight/configuration.rb +32 -19
- data/lib/blacklight/engine.rb +6 -0
- data/lib/blacklight/parameters.rb +1 -1
- data/lib/blacklight/solr/repository.rb +11 -4
- data/lib/blacklight/solr/response/params.rb +1 -1
- data/lib/blacklight/solr/response.rb +0 -12
- data/lib/blacklight/solr/search_builder_behavior.rb +1 -1
- data/lib/blacklight/solr.rb +0 -6
- data/lib/blacklight.rb +4 -14
- data/lib/generators/blacklight/assets/propshaft_generator.rb +2 -2
- data/lib/generators/blacklight/models_generator.rb +1 -1
- data/lib/generators/blacklight/user_generator.rb +2 -0
- data/package.json +3 -2
- data/rollup.config.js +6 -12
- data/spec/components/blacklight/document/action_component_spec.rb +1 -1
- data/spec/components/blacklight/document/page_header_component_spec.rb +92 -0
- data/spec/components/blacklight/document_component_spec.rb +20 -0
- data/spec/components/blacklight/icons/icon_component_spec.rb +42 -0
- data/spec/components/blacklight/search_context/server_item_pagination_component_spec.rb +13 -2
- data/spec/controllers/blacklight/catalog_spec.rb +1 -1
- data/spec/controllers/catalog_controller_spec.rb +5 -5
- data/spec/features/advanced_search_spec.rb +16 -2
- data/spec/features/bookmarks_spec.rb +15 -0
- data/spec/features/search_context_spec.rb +2 -1
- data/spec/helpers/blacklight/facets_helper_behavior_spec.rb +2 -2
- data/spec/lib/blacklight/component_spec.rb +32 -27
- data/spec/lib/blacklight/nested_open_struct_with_hash_access_spec.rb +1 -1
- data/spec/lib/blacklight/open_struct_with_hash_access_spec.rb +1 -1
- data/spec/models/blacklight/configuration_spec.rb +12 -12
- data/spec/models/blacklight/solr/document_spec.rb +2 -2
- data/spec/models/blacklight/solr/repository_spec.rb +31 -13
- data/spec/models/blacklight/solr/response/facets_spec.rb +2 -2
- data/spec/models/blacklight/solr/response/group_spec.rb +1 -1
- data/spec/models/blacklight/solr/response_spec.rb +2 -2
- data/spec/models/blacklight/solr/search_builder_behavior_spec.rb +1 -1
- data/spec/models/bookmark_spec.rb +1 -1
- data/spec/presenters/blacklight/document_presenter_spec.rb +2 -2
- data/spec/presenters/blacklight/facet_checkbox_item_presenter_spec.rb +42 -0
- data/spec/presenters/blacklight/facet_field_presenter_spec.rb +14 -0
- data/spec/requests/load_suggestions_spec.rb +5 -5
- data/spec/services/blacklight/search_service_spec.rb +2 -2
- data/spec/spec_helper.rb +5 -2
- data/spec/test_app_templates/lib/generators/test_app_generator.rb +1 -1
- data/tasks/blacklight.rake +6 -6
- metadata +86 -8
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"blacklight.js","sources":["../../../javascript/blacklight/checkbox_submit.js","../../../javascript/blacklight/bookmark_toggle.js","../../../javascript/blacklight/button_focus.js","../../../javascript/blacklight/modal.js","../../../javascript/blacklight/search_context.js","../../../javascript/blacklight/core.js","../../../javascript/blacklight/index.js"],"sourcesContent":["/* Converts a \"toggle\" form, with single submit button to add/remove\n something, like used for Bookmarks, into an AJAXy checkbox instead.\n Apply to a form. Does require certain assumption about the form:\n 1) The same form 'action' href must be used for both ADD and REMOVE\n actions, with the different being the hidden input name=\"_method\"\n being set to \"put\" or \"delete\" -- that's the Rails method to pretend\n to be doing a certain HTTP verb. So same URL, PUT to add, DELETE\n to remove. This plugin assumes that.\n Plus, the form this is applied to should provide a data-doc-id\n attribute (HTML5-style doc-*) that contains the id/primary key\n of the object in question -- used by plugin for a unique value for\n DOM id's.\n Uses HTML for a checkbox compatible with Bootstrap 4.\n new CheckboxSubmit(document.querySelector('form.something')).render()\n*/\nexport default class CheckboxSubmit {\n constructor(form) {\n this.form = form\n }\n\n clicked(evt) {\n this.spanTarget.innerHTML = this.form.getAttribute('data-inprogress')\n this.labelTarget.setAttribute('disabled', 'disabled');\n this.checkboxTarget.setAttribute('disabled', 'disabled');\n fetch(this.formTarget.getAttribute('action'), {\n body: new FormData(this.formTarget),\n method: this.formTarget.getAttribute('method').toUpperCase(),\n headers: {\n 'Accept': 'application/json',\n 'X-Requested-With': 'XMLHttpRequest',\n 'X-CSRF-Token': document.querySelector('meta[name=csrf-token]')?.content\n }\n }).then((response) => {\n if (response.ok) return response.json();\n return Promise.reject('response was not ok')\n }).then((json) => {\n this.labelTarget.removeAttribute('disabled')\n this.checkboxTarget.removeAttribute('disabled')\n this.updateStateFor(!this.checked)\n document.querySelector('[data-role=bookmark-counter]').innerHTML = json.bookmarks.count\n }).catch((error) => {\n this.handleError(error)\n })\n }\n\n get checked() {\n return (this.form.querySelectorAll('input[name=_method][value=delete]').length != 0)\n }\n\n get formTarget() {\n return this.form\n }\n\n get labelTarget() {\n return this.form.querySelector('[data-checkboxsubmit-target=\"label\"]')\n }\n\n get checkboxTarget() {\n return this.form.querySelector('[data-checkboxsubmit-target=\"checkbox\"]')\n }\n\n get spanTarget() {\n return this.form.querySelector('[data-checkboxsubmit-target=\"span\"]')\n }\n\n handleError() {\n alert(\"Unable to save the bookmark at this time.\")\n }\n\n updateStateFor(state) {\n this.checkboxTarget.checked = state\n\n if (state) {\n this.labelTarget.classList.add('checked')\n //Set the Rails hidden field that fakes an HTTP verb\n //properly for current state action.\n this.formTarget.querySelector('input[name=_method]').value = 'delete'\n this.spanTarget.innerHTML = this.form.getAttribute('data-present')\n } else {\n this.labelTarget.classList.remove('checked')\n this.formTarget.querySelector('input[name=_method]').value = 'put'\n this.spanTarget.innerHTML = this.form.getAttribute('data-absent')\n }\n }\n}\n","import CheckboxSubmit from 'blacklight/checkbox_submit'\n\nconst BookmarkToggle = (e) => {\n if (e.target.matches('[data-checkboxsubmit-target=\"checkbox\"]')) {\n const form = e.target.closest('form')\n if (form) new CheckboxSubmit(form).clicked(e);\n }\n};\n\ndocument.addEventListener('click', BookmarkToggle);\n\nexport default BookmarkToggle\n","const ButtonFocus = (e) => {\n // Button clicks should change focus. As of 10/3/19, Firefox for Mac and\n // Safari both do not set focus to a button on button click.\n // See https://zellwk.com/blog/inconsistent-button-behavior/ for background information\n if (e.target.matches('[data-toggle=\"collapse\"]') || e.target.matches('[data-bs-toggle=\"collapse\"]')) {\n e.target.focus()\n }\n}\n\ndocument.addEventListener('click', ButtonFocus)\n\nexport default ButtonFocus\n","/*\n The blacklight modal plugin can display some interactions inside a Bootstrap\n modal window, including some multi-page interactions.\n\n It supports unobtrusive Javascript, where a link or form that would have caused\n a new page load is changed to display it's results inside a modal dialog,\n by this plugin. The plugin assumes there is a Bootstrap modal div\n on the page with id #blacklight-modal to use as the modal -- the standard Blacklight\n layout provides this.\n\n To make a link or form have their results display inside a modal, add\n `data-blacklight-modal=\"trigger\"` to the link or form. (Note, form itself not submit input)\n With Rails link_to helper, you'd do that like:\n\n link_to something, link, data: { blacklight_modal: \"trigger\" }\n\n The results of the link href or form submit will be displayed inside\n a modal -- they should include the proper HTML markup for a bootstrap modal's\n contents. Also, you ordinarily won't want the Rails template with wrapping\n navigational elements to be used. The Rails controller could suppress\n the layout when a JS AJAX request is detected, OR the response\n can include a `<div data-blacklight-modal=\"container\">` -- only the contents\n of the container will be placed inside the modal, the rest of the\n page will be ignored.\n\n Link or forms inside the modal will ordinarily cause page loads\n when they are triggered. However, if you'd like their results\n to stay within the modal, just add `data-blacklight-modal=\"preserve\"`\n to the link or form.\n\n Here's an example of what might be returned, demonstrating most of the devices available:\n\n <div data-blacklight-modal=\"container\">\n <div class=\"modal-header\">\n <button type=\"button\" class=\"close\" data-bl-dismiss=\"modal\" aria-hidden=\"true\">×</button>\n <h3 class=\"modal-title\">Request Placed</h3>\n </div>\n\n <div class=\"modal-body\">\n <p>Some message</p>\n <%= link_to \"This result will still be within modal\", some_link, data: { blacklight_modal: \"preserve\" } %>\n </div>\n\n\n <div class=\"modal-footer\">\n <button type=\"button\" class=\"btn btn-secondary\" data-bl-dismiss=\"modal\">Close</button>\n </div>\n </div>\n\n\n One additional feature. If the content returned from the AJAX form submission\n can be a turbo-stream that defines some HTML fragementsand where on the page to put them:\n https://turbo.hotwired.dev/handbook/streams\n*/\nimport ModalForm from 'blacklight/modalForm'\n\nconst Modal = (() => {\n const modal = {}\n\n // a Bootstrap modal div that should be already on the page hidden\n modal.modalSelector = '#blacklight-modal';\n\n // Trigger selectors identify forms or hyperlinks that should open\n // inside a modal dialog.\n modal.triggerLinkSelector = 'a[data-blacklight-modal~=trigger]';\n\n // preserve selectors identify forms or hyperlinks that, if activated already\n // inside a modal dialog, should have destinations remain inside the modal -- but\n // won't trigger a modal if not already in one.\n //\n // No need to repeat selectors from trigger selectors, those will already\n // be preserved. MUST be manually prefixed with the modal selector,\n // so they only apply to things inside a modal.\n modal.preserveLinkSelector = modal.modalSelector + ' a[data-blacklight-modal~=preserve]';\n\n modal.containerSelector = '[data-blacklight-modal~=container]';\n\n // Called on fatal failure of ajax load, function returns content\n // to show to user in modal. Right now called only for network errors.\n modal.onFailure = function (error) {\n console.error('Server error:', this.url, error);\n\n const contents = `<div class=\"modal-header\">\n <div class=\"modal-title\">There was a problem with your request.</div>\n <button type=\"button\" class=\"blacklight-modal-close btn-close close\" data-bl-dismiss=\"modal\" aria-label=\"Close\">\n <span aria-hidden=\"true\" class=\"visually-hidden\">×</span>\n </button>\n </div>\n <div class=\"modal-body\">\n <p>Expected a successful response from the server, but got an error</p>\n <pre>${this.url}\\n${error}</pre>\n </div>`\n\n document.querySelector(`${modal.modalSelector} .modal-content`).innerHTML = contents\n\n modal.show();\n }\n\n // Add the passed in contents to the modal and display it.\n // We have specific handling so that scripts returned from the ajax call are executed.\n // This enables adding a script like recaptcha to prevent bots from sending emails.\n modal.receiveAjax = function (contents) {\n const domparser = new DOMParser();\n const dom = domparser.parseFromString(contents, \"text/html\")\n // If there is a containerSelector on the document, use its children.\n let elements = dom.querySelectorAll(`${modal.containerSelector} > *`)\n const frag = document.createDocumentFragment()\n if (elements.length == 0) {\n // If the containerSelector wasn't found, use the whole document\n elements = dom.body.childNodes\n }\n elements.forEach((el) => frag.appendChild(el))\n modal.activateScripts(frag)\n \n document.querySelector(`${modal.modalSelector} .modal-content`).replaceChildren(frag)\n\n modal.show();\n };\n\n // DOMParser doesn't allow scripts to be executed. This fixes that.\n modal.activateScripts = function (frag) {\n frag.querySelectorAll('script').forEach((script) => {\n const fixedScript = document.createElement('script')\n fixedScript.src = script.src\n fixedScript.async = false\n script.parentNode.replaceChild(fixedScript, script)\n })\n }\n\n modal.modalAjaxLinkClick = function(e) {\n e.preventDefault();\n const href = e.target.getAttribute('href')\n fetch(href)\n .then(response => {\n if (!response.ok) {\n throw new TypeError(\"Request failed\");\n }\n return response.text();\n })\n .then(data => modal.receiveAjax(data))\n .catch(error => modal.onFailure(error))\n };\n\n modal.setupModal = function() {\n // Register both trigger and preserve selectors in ONE event handler, combining\n // into one selector with a comma, so if something matches BOTH selectors, it\n // still only gets the event handler called once.\n document.addEventListener('click', (e) => {\n if (e.target.closest(`${modal.triggerLinkSelector}, ${modal.preserveLinkSelector}`))\n modal.modalAjaxLinkClick(e)\n else if (e.target.closest('[data-bl-dismiss=\"modal\"]'))\n modal.hide()\n })\n };\n\n modal.hide = function (el) {\n const dom = document.querySelector(modal.modalSelector)\n\n if (!dom.open) return\n dom.close()\n }\n\n modal.show = function(el) {\n const dom = document.querySelector(modal.modalSelector)\n\n if (dom.open) return\n dom.showModal()\n }\n\n modal.setupModal()\n\n return modal;\n})()\n\nexport default Modal\n","const SearchContext = (e) => {\n if (e.target.matches('[data-context-href]')) {\n SearchContext.handleSearchContextMethod.call(e.target, e)\n }\n}\n\nSearchContext.csrfToken = () => document.querySelector('meta[name=csrf-token]')?.content\nSearchContext.csrfParam = () => document.querySelector('meta[name=csrf-param]')?.content\n\n// this is the Rails.handleMethod with a couple adjustments, described inline:\n// first, we're attaching this directly to the event handler, so we can check for meta-keys\nSearchContext.handleSearchContextMethod = function(event) {\n const link = this\n\n // instead of using the normal href, we need to use the context href instead\n let href = link.getAttribute('data-context-href')\n let target = link.getAttribute('target')\n let csrfToken = SearchContext.csrfToken()\n let csrfParam = SearchContext.csrfParam()\n let form = document.createElement('form')\n form.method = 'post'\n form.action = href\n\n\n let formContent = `<input name=\"_method\" value=\"post\" type=\"hidden\" />\n <input name=\"redirect\" value=\"${link.getAttribute('href')}\" type=\"hidden\" />`\n\n // check for meta keys.. if set, we should open in a new tab\n if(event.metaKey || event.ctrlKey) {\n form.dataset.turbo = \"false\";\n target = '_blank';\n }\n\n if (csrfParam !== undefined && csrfToken !== undefined) {\n formContent += `<input name=\"${csrfParam}\" value=\"${csrfToken}\" type=\"hidden\" />`\n }\n\n // Must trigger submit by click on a button, else \"submit\" event handler won't work!\n // https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/submit\n formContent += '<input type=\"submit\" />'\n\n if (target) { form.setAttribute('target', target); }\n\n form.style.display = 'none'\n form.innerHTML = formContent\n document.body.appendChild(form)\n form.querySelector('[type=\"submit\"]').click()\n\n event.preventDefault()\n};\n\ndocument.addEventListener('click', SearchContext)\n\nexport default SearchContext\n","const Blacklight = function() {\n const buffer = new Array;\n return {\n onLoad: function(func) {\n buffer.push(func);\n },\n\n activate: function() {\n for(let i = 0; i < buffer.length; i++) {\n buffer[i].call();\n }\n },\n\n listeners: function () {\n const listeners = [];\n if (typeof Turbo !== 'undefined') {\n listeners.push('turbo:load', 'turbo:frame-load');\n } else if (typeof Turbolinks !== 'undefined' && Turbolinks.supported) {\n // Turbolinks 5\n if (Turbolinks.BrowserAdapter) {\n listeners.push('turbolinks:load');\n } else {\n // Turbolinks < 5\n listeners.push('page:load', 'DOMContentLoaded');\n }\n } else {\n listeners.push('DOMContentLoaded');\n }\n\n return listeners;\n }\n };\n}();\n\n// turbolinks triggers page:load events on page transition\n// If app isn't using turbolinks, this event will never be triggered, no prob.\nBlacklight.listeners().forEach(function(listener) {\n document.addEventListener(listener, function() {\n Blacklight.activate()\n })\n})\n\nBlacklight.onLoad(function () {\n const elem = document.querySelector('.no-js');\n\n // The \"no-js\" class may already have been removed because this function is\n // run on every turbo:load event, in that case, it won't find an element.\n if (!elem) return;\n\n elem.classList.remove('no-js')\n elem.classList.add('js')\n})\n\n\nexport default Blacklight\n","import BookmarkToggle from 'blacklight/bookmark_toggle'\nimport ButtonFocus from 'blacklight/button_focus'\nimport Modal from 'blacklight/modal'\nimport SearchContext from 'blacklight/search_context'\nimport Core from 'blacklight/core'\n\nexport default {\n BookmarkToggle,\n ButtonFocus,\n Modal,\n SearchContext,\n Core,\n onLoad: Core.onLoad\n}\n"],"names":["Core"],"mappings":";;;;;;EAAA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACA;EACe,MAAM,cAAc,CAAC;EACpC,EAAE,WAAW,CAAC,IAAI,EAAE;EACpB,IAAI,IAAI,CAAC,IAAI,GAAG,KAAI;EACpB,GAAG;AACH;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AAK;EACP,EAAE,aAAa;EACf,QAAEA,UAAI;EACN,EAAE,MAAM,EAAEA,UAAI,CAAC,MAAM;EACrB;;;;;;;;"}
|
1
|
+
{"version":3,"file":"blacklight.js","sources":["../../../javascript/blacklight/checkbox_submit.js","../../../javascript/blacklight/bookmark_toggle.js","../../../javascript/blacklight/button_focus.js","../../../javascript/blacklight/modal.js","../../../javascript/blacklight/search_context.js","../../../javascript/blacklight/core.js","../../../javascript/blacklight/index.js"],"sourcesContent":["/* Converts a \"toggle\" form, with single submit button to add/remove\n something, like used for Bookmarks, into an AJAXy checkbox instead.\n Apply to a form. Does require certain assumption about the form:\n 1) The same form 'action' href must be used for both ADD and REMOVE\n actions, with the different being the hidden input name=\"_method\"\n being set to \"put\" or \"delete\" -- that's the Rails method to pretend\n to be doing a certain HTTP verb. So same URL, PUT to add, DELETE\n to remove. This plugin assumes that.\n Plus, the form this is applied to should provide a data-doc-id\n attribute (HTML5-style doc-*) that contains the id/primary key\n of the object in question -- used by plugin for a unique value for\n DOM id's.\n Uses HTML for a checkbox compatible with Bootstrap 4.\n new CheckboxSubmit(document.querySelector('form.something')).render()\n*/\nexport default class CheckboxSubmit {\n constructor(form) {\n this.form = form\n }\n\n clicked(evt) {\n this.spanTarget.innerHTML = this.form.getAttribute('data-inprogress')\n this.labelTarget.setAttribute('disabled', 'disabled');\n this.checkboxTarget.setAttribute('disabled', 'disabled');\n fetch(this.formTarget.getAttribute('action'), {\n body: new FormData(this.formTarget),\n method: this.formTarget.getAttribute('method').toUpperCase(),\n headers: {\n 'Accept': 'application/json',\n 'X-Requested-With': 'XMLHttpRequest',\n 'X-CSRF-Token': document.querySelector('meta[name=csrf-token]')?.content\n }\n }).then((response) => {\n if (response.ok) return response.json();\n return Promise.reject('response was not ok')\n }).then((json) => {\n this.labelTarget.removeAttribute('disabled')\n this.checkboxTarget.removeAttribute('disabled')\n this.updateStateFor(!this.checked)\n this.bookmarksCounter().forEach(counter => {\n counter.innerHTML = json.bookmarks.count;\n });\n }).catch((error) => {\n this.handleError(error)\n })\n }\n\n get checked() {\n return (this.form.querySelectorAll('input[name=_method][value=delete]').length != 0)\n }\n\n get formTarget() {\n return this.form\n }\n\n get labelTarget() {\n return this.form.querySelector('[data-checkboxsubmit-target=\"label\"]')\n }\n\n get checkboxTarget() {\n return this.form.querySelector('[data-checkboxsubmit-target=\"checkbox\"]')\n }\n\n get spanTarget() {\n return this.form.querySelector('[data-checkboxsubmit-target=\"span\"]')\n }\n\n bookmarksCounter() {\n return document.querySelectorAll('[data-role=\"bookmark-counter\"]')\n }\n\n handleError() {\n alert(\"Unable to save the bookmark at this time.\")\n }\n\n updateStateFor(state) {\n this.checkboxTarget.checked = state\n\n if (state) {\n this.labelTarget.classList.add('checked')\n //Set the Rails hidden field that fakes an HTTP verb\n //properly for current state action.\n this.formTarget.querySelector('input[name=_method]').value = 'delete'\n this.spanTarget.innerHTML = this.form.getAttribute('data-present')\n } else {\n this.labelTarget.classList.remove('checked')\n this.formTarget.querySelector('input[name=_method]').value = 'put'\n this.spanTarget.innerHTML = this.form.getAttribute('data-absent')\n }\n }\n}\n","import CheckboxSubmit from 'blacklight/checkbox_submit'\n\nconst BookmarkToggle = (e) => {\n if (e.target.matches('[data-checkboxsubmit-target=\"checkbox\"]')) {\n const form = e.target.closest('form')\n if (form) new CheckboxSubmit(form).clicked(e);\n }\n};\n\ndocument.addEventListener('click', BookmarkToggle);\n\nexport default BookmarkToggle\n","const ButtonFocus = (e) => {\n // Button clicks should change focus. As of 10/3/19, Firefox for Mac and\n // Safari both do not set focus to a button on button click.\n // See https://zellwk.com/blog/inconsistent-button-behavior/ for background information\n if (e.target.matches('[data-toggle=\"collapse\"]') || e.target.matches('[data-bs-toggle=\"collapse\"]')) {\n e.target.focus()\n }\n}\n\ndocument.addEventListener('click', ButtonFocus)\n\nexport default ButtonFocus\n","/*\n The blacklight modal plugin can display some interactions inside a Bootstrap\n modal window, including some multi-page interactions.\n\n It supports unobtrusive Javascript, where a link or form that would have caused\n a new page load is changed to display it's results inside a modal dialog,\n by this plugin. The plugin assumes there is a Bootstrap modal div\n on the page with id #blacklight-modal to use as the modal -- the standard Blacklight\n layout provides this.\n\n To make a link or form have their results display inside a modal, add\n `data-blacklight-modal=\"trigger\"` to the link or form. (Note, form itself not submit input)\n With Rails link_to helper, you'd do that like:\n\n link_to something, link, data: { blacklight_modal: \"trigger\" }\n\n The results of the link href or form submit will be displayed inside\n a modal -- they should include the proper HTML markup for a bootstrap modal's\n contents. Also, you ordinarily won't want the Rails template with wrapping\n navigational elements to be used. The Rails controller could suppress\n the layout when a JS AJAX request is detected, OR the response\n can include a `<div data-blacklight-modal=\"container\">` -- only the contents\n of the container will be placed inside the modal, the rest of the\n page will be ignored.\n\n Link or forms inside the modal will ordinarily cause page loads\n when they are triggered. However, if you'd like their results\n to stay within the modal, just add `data-blacklight-modal=\"preserve\"`\n to the link or form.\n\n Here's an example of what might be returned, demonstrating most of the devices available:\n\n <div data-blacklight-modal=\"container\">\n <div class=\"modal-header\">\n <button type=\"button\" class=\"close\" data-bl-dismiss=\"modal\" aria-hidden=\"true\">×</button>\n <h3 class=\"modal-title\">Request Placed</h3>\n </div>\n\n <div class=\"modal-body\">\n <p>Some message</p>\n <%= link_to \"This result will still be within modal\", some_link, data: { blacklight_modal: \"preserve\" } %>\n </div>\n\n\n <div class=\"modal-footer\">\n <button type=\"button\" class=\"btn btn-secondary\" data-bl-dismiss=\"modal\">Close</button>\n </div>\n </div>\n\n\n One additional feature. If the content returned from the AJAX form submission\n can be a turbo-stream that defines some HTML fragementsand where on the page to put them:\n https://turbo.hotwired.dev/handbook/streams\n*/\nimport ModalForm from 'blacklight/modalForm'\n\nconst Modal = (() => {\n const modal = {}\n\n // a Bootstrap modal div that should be already on the page hidden\n modal.modalSelector = '#blacklight-modal';\n\n // Trigger selectors identify forms or hyperlinks that should open\n // inside a modal dialog.\n modal.triggerLinkSelector = 'a[data-blacklight-modal~=trigger]';\n\n // preserve selectors identify forms or hyperlinks that, if activated already\n // inside a modal dialog, should have destinations remain inside the modal -- but\n // won't trigger a modal if not already in one.\n //\n // No need to repeat selectors from trigger selectors, those will already\n // be preserved. MUST be manually prefixed with the modal selector,\n // so they only apply to things inside a modal.\n modal.preserveLinkSelector = modal.modalSelector + ' a[data-blacklight-modal~=preserve]';\n\n modal.containerSelector = '[data-blacklight-modal~=container]';\n\n // Called on fatal failure of ajax load, function returns content\n // to show to user in modal. Right now called only for network errors.\n modal.onFailure = function (error) {\n console.error('Server error:', this.url, error);\n\n const contents = `<div class=\"modal-header\">\n <div class=\"modal-title\">There was a problem with your request.</div>\n <button type=\"button\" class=\"blacklight-modal-close btn-close close\" data-bl-dismiss=\"modal\" aria-label=\"Close\">\n <span aria-hidden=\"true\" class=\"visually-hidden\">×</span>\n </button>\n </div>\n <div class=\"modal-body\">\n <p>Expected a successful response from the server, but got an error</p>\n <pre>${this.url}\\n${error}</pre>\n </div>`\n\n document.querySelector(`${modal.modalSelector} .modal-content`).innerHTML = contents\n\n modal.show();\n }\n\n // Add the passed in contents to the modal and display it.\n // We have specific handling so that scripts returned from the ajax call are executed.\n // This enables adding a script like recaptcha to prevent bots from sending emails.\n modal.receiveAjax = function (contents) {\n const domparser = new DOMParser();\n const dom = domparser.parseFromString(contents, \"text/html\")\n // If there is a containerSelector on the document, use its children.\n let elements = dom.querySelectorAll(`${modal.containerSelector} > *`)\n const frag = document.createDocumentFragment()\n if (elements.length == 0) {\n // If the containerSelector wasn't found, use the whole document\n elements = dom.body.childNodes\n }\n elements.forEach((el) => frag.appendChild(el))\n modal.activateScripts(frag)\n \n document.querySelector(`${modal.modalSelector} .modal-content`).replaceChildren(frag)\n\n modal.show();\n };\n\n // DOMParser doesn't allow scripts to be executed. This fixes that.\n modal.activateScripts = function (frag) {\n frag.querySelectorAll('script').forEach((script) => {\n const fixedScript = document.createElement('script')\n fixedScript.src = script.src\n fixedScript.async = false\n script.parentNode.replaceChild(fixedScript, script)\n })\n }\n\n modal.modalAjaxLinkClick = function(e) {\n e.preventDefault();\n const href = e.target.getAttribute('href')\n fetch(href)\n .then(response => {\n if (!response.ok) {\n throw new TypeError(\"Request failed\");\n }\n return response.text();\n })\n .then(data => modal.receiveAjax(data))\n .catch(error => modal.onFailure(error))\n };\n\n modal.setupModal = function() {\n // Register both trigger and preserve selectors in ONE event handler, combining\n // into one selector with a comma, so if something matches BOTH selectors, it\n // still only gets the event handler called once.\n document.addEventListener('click', (e) => {\n if (e.target.closest(`${modal.triggerLinkSelector}, ${modal.preserveLinkSelector}`))\n modal.modalAjaxLinkClick(e)\n else if (e.target.closest('[data-bl-dismiss=\"modal\"]'))\n modal.hide()\n })\n };\n\n modal.hide = function (el) {\n const dom = document.querySelector(modal.modalSelector)\n\n if (!dom.open) return\n dom.close()\n }\n\n modal.show = function(el) {\n const dom = document.querySelector(modal.modalSelector)\n\n if (dom.open) return\n dom.showModal()\n }\n\n modal.setupModal()\n\n return modal;\n})()\n\nexport default Modal\n","const SearchContext = (e) => {\n if (e.target.matches('[data-context-href]')) {\n SearchContext.handleSearchContextMethod.call(e.target, e)\n }\n}\n\nSearchContext.csrfToken = () => document.querySelector('meta[name=csrf-token]')?.content\nSearchContext.csrfParam = () => document.querySelector('meta[name=csrf-param]')?.content\n\n// this is the Rails.handleMethod with a couple adjustments, described inline:\n// first, we're attaching this directly to the event handler, so we can check for meta-keys\nSearchContext.handleSearchContextMethod = function(event) {\n const link = this\n\n // instead of using the normal href, we need to use the context href instead\n let href = link.getAttribute('data-context-href')\n let target = link.getAttribute('target')\n let csrfToken = SearchContext.csrfToken()\n let csrfParam = SearchContext.csrfParam()\n let form = document.createElement('form')\n form.method = 'post'\n form.action = href\n\n\n let formContent = `<input name=\"_method\" value=\"post\" type=\"hidden\" />\n <input name=\"redirect\" value=\"${link.getAttribute('href')}\" type=\"hidden\" />`\n\n // check for meta keys.. if set, we should open in a new tab\n if(event.metaKey || event.ctrlKey) {\n form.dataset.turbo = \"false\";\n target = '_blank';\n }\n\n if (csrfParam !== undefined && csrfToken !== undefined) {\n formContent += `<input name=\"${csrfParam}\" value=\"${csrfToken}\" type=\"hidden\" />`\n }\n\n // Must trigger submit by click on a button, else \"submit\" event handler won't work!\n // https://developer.mozilla.org/en-US/docs/Web/API/HTMLFormElement/submit\n formContent += '<input type=\"submit\" />'\n\n if (target) { form.setAttribute('target', target); }\n\n form.style.display = 'none'\n form.innerHTML = formContent\n document.body.appendChild(form)\n form.querySelector('[type=\"submit\"]').click()\n\n event.preventDefault()\n};\n\ndocument.addEventListener('click', SearchContext)\n\nexport default SearchContext\n","const Core = function() {\n const buffer = new Array;\n return {\n onLoad: function(func) {\n buffer.push(func);\n },\n\n activate: function() {\n for(let i = 0; i < buffer.length; i++) {\n buffer[i].call();\n }\n },\n\n listeners: function () {\n const listeners = [];\n if (typeof Turbo !== 'undefined') {\n listeners.push('turbo:load', 'turbo:frame-load');\n } else if (typeof Turbolinks !== 'undefined' && Turbolinks.supported) {\n // Turbolinks 5\n if (Turbolinks.BrowserAdapter) {\n listeners.push('turbolinks:load');\n } else {\n // Turbolinks < 5\n listeners.push('page:load', 'DOMContentLoaded');\n }\n } else {\n listeners.push('DOMContentLoaded');\n }\n\n return listeners;\n }\n };\n}();\n\n// turbolinks triggers page:load events on page transition\n// If app isn't using turbolinks, this event will never be triggered, no prob.\nCore.listeners().forEach(function(listener) {\n document.addEventListener(listener, function() {\n Core.activate()\n })\n})\n\nCore.onLoad(function () {\n const elem = document.querySelector('.no-js');\n\n // The \"no-js\" class may already have been removed because this function is\n // run on every turbo:load event, in that case, it won't find an element.\n if (!elem) return;\n\n elem.classList.remove('no-js')\n elem.classList.add('js')\n})\n\n\nexport default Core\n","import BookmarkToggle from 'blacklight/bookmark_toggle'\nimport ButtonFocus from 'blacklight/button_focus'\nimport Modal from 'blacklight/modal'\nimport SearchContext from 'blacklight/search_context'\nimport Core from 'blacklight/core'\n\nexport default {\n BookmarkToggle,\n ButtonFocus,\n Modal,\n SearchContext,\n Core,\n onLoad: Core.onLoad\n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AAC,EAAC;AACF;EACA,IAAI,CAAC,MAAM,CAAC,YAAY;EACxB,EAAE,MAAM,IAAI,GAAG,QAAQ,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;AAChD;EACA;EACA;EACA,EAAE,IAAI,CAAC,IAAI,EAAE,OAAO;AACpB;EACA,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,OAAO,EAAC;EAChC,EAAE,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,IAAI,EAAC;EAC1B,CAAC;;AC7CD,gBAAe;EACf,EAAE,cAAc;EAChB,EAAE,WAAW;EACb,EAAE,KAAK;EACP,EAAE,aAAa;EACf,EAAE,IAAI;EACN,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM;EACrB;;;;;;;;"}
|
@@ -3,6 +3,16 @@ label.toggle-bookmark {
|
|
3
3
|
min-width: 8.5em;
|
4
4
|
}
|
5
5
|
|
6
|
+
div.toggle-bookmark {
|
7
|
+
cursor: pointer;
|
8
|
+
}
|
9
|
+
|
10
|
+
/* override for line 3.
|
11
|
+
Creates weird spacing in toolbar when min-width is set to 8rem */
|
12
|
+
.header-tools label.toggle-bookmark {
|
13
|
+
min-width: 2rem;
|
14
|
+
}
|
15
|
+
|
6
16
|
.bookmark-toggle {
|
7
17
|
.no-js & {
|
8
18
|
input[type="submit"] {
|
@@ -18,3 +28,23 @@ label.toggle-bookmark {
|
|
18
28
|
display: none;
|
19
29
|
}
|
20
30
|
}
|
31
|
+
.toggle-bookmark .blacklight-icons svg {
|
32
|
+
height: 1.25rem;
|
33
|
+
width: 1.25rem;
|
34
|
+
overflow: visible;
|
35
|
+
fill: var(--bs-primary);
|
36
|
+
|
37
|
+
&.bookmark-checked {
|
38
|
+
display: none;
|
39
|
+
}
|
40
|
+
}
|
41
|
+
|
42
|
+
.toggle-bookmark[type="checkbox"]:checked+span svg {
|
43
|
+
&.bookmark-checked {
|
44
|
+
display: inherit;
|
45
|
+
}
|
46
|
+
|
47
|
+
&.bookmark-unchecked {
|
48
|
+
display: none;
|
49
|
+
}
|
50
|
+
}
|
@@ -15,24 +15,25 @@
|
|
15
15
|
white-space: nowrap;
|
16
16
|
|
17
17
|
@media (max-width: breakpoint-min(sm)) {
|
18
|
-
max-width: breakpoint-min(sm) * .5;
|
18
|
+
max-width: breakpoint-min(sm) * 0.5;
|
19
19
|
}
|
20
20
|
|
21
21
|
@media (min-width: breakpoint-min(sm)) and (max-width: breakpoint-max(sm)) {
|
22
|
-
max-width: breakpoint-min(sm) * .5;
|
22
|
+
max-width: breakpoint-min(sm) * 0.5;
|
23
23
|
}
|
24
24
|
|
25
25
|
@media (min-width: breakpoint-min(md)) and (max-width: breakpoint-max(md)) {
|
26
|
-
max-width: breakpoint-min(md) * .5;
|
26
|
+
max-width: breakpoint-min(md) * 0.5;
|
27
27
|
}
|
28
28
|
|
29
29
|
@media (min-width: breakpoint-min(lg)) {
|
30
|
-
max-width: breakpoint-min(lg) * .5;
|
30
|
+
max-width: breakpoint-min(lg) * 0.5;
|
31
31
|
}
|
32
32
|
|
33
|
-
&:hover,
|
34
|
-
|
35
|
-
|
33
|
+
&:hover,
|
34
|
+
&:active {
|
35
|
+
background-color: $secondary;
|
36
|
+
border-color: $secondary;
|
36
37
|
box-shadow: none;
|
37
38
|
}
|
38
39
|
}
|
@@ -44,7 +45,12 @@
|
|
44
45
|
padding-left: $caret-width;
|
45
46
|
}
|
46
47
|
|
47
|
-
.remove
|
48
|
-
|
48
|
+
.remove {
|
49
|
+
--bs-btn-hover-bg: var(--bl-constraint-remove-hover-bg);
|
50
|
+
--bs-btn-hover-border-color: var(--bl-constraint-remove-hover-border-color);
|
51
|
+
--bs-btn-active-bg: var(--bl-constraint-remove-hover-bg);
|
52
|
+
--bs-btn-active-border-color: var(
|
53
|
+
--bl-constraint-remove-hover-border-color
|
54
|
+
);
|
49
55
|
}
|
50
56
|
}
|
@@ -1,6 +1,14 @@
|
|
1
1
|
.sidenav {
|
2
|
-
--bl-
|
3
|
-
--bl-
|
2
|
+
--bl-facet-active-bg: #{$facet-active-bg};
|
3
|
+
--bl-facet-active-item-color: #{$facet-active-item-color};
|
4
|
+
--bl-facet-margin-bottom: #{$spacer};
|
5
|
+
--bl-facet-remove-color: var(--bs-secondary-color);
|
6
|
+
|
7
|
+
--bl-facet-limit-body-padding: #{$spacer};
|
8
|
+
|
9
|
+
--bl-facets-smallish-padding: 0.25rem;
|
10
|
+
--bl-facets-smallish-border: var(--bs-border-width) solid
|
11
|
+
var(--bs-border-color);
|
4
12
|
--bl-facets-smallish-margin-bottom: #{$spacer};
|
5
13
|
--bl-facets-smallish-border-radius: #{$border-radius};
|
6
14
|
|
@@ -39,14 +47,12 @@
|
|
39
47
|
$next: breakpoint-next($breakpoint, $grid-breakpoints);
|
40
48
|
$infix: breakpoint-infix($breakpoint, $grid-breakpoints);
|
41
49
|
|
42
|
-
|
43
50
|
&#{$infix} {
|
44
51
|
@include media-breakpoint-down($next) {
|
45
52
|
border: var(--bl-facets-smallish-border);
|
46
53
|
padding: var(--bl-facets-smallish-padding);
|
47
54
|
margin-bottom: var(--bl-facets-smallish-margin-bottom);
|
48
55
|
border-radius: var(--bl-facets-smallish-border-radius);
|
49
|
-
|
50
56
|
}
|
51
57
|
@include media-breakpoint-up($next) {
|
52
58
|
// scss-lint:disable ImportantRule
|
@@ -101,18 +107,18 @@
|
|
101
107
|
}
|
102
108
|
|
103
109
|
.facet-limit {
|
104
|
-
margin-bottom:
|
110
|
+
margin-bottom: var(--bl-facet-margin-bottom);
|
105
111
|
|
106
112
|
.card-body {
|
107
|
-
padding:
|
113
|
+
padding: var(--bl-facet-limit-body-padding);
|
108
114
|
}
|
109
115
|
}
|
110
116
|
|
111
117
|
.facet-limit-active {
|
112
|
-
border-color: $facet-active-border
|
118
|
+
border-color: $facet-active-border;
|
113
119
|
|
114
120
|
.card-header {
|
115
|
-
background-color:
|
121
|
+
background-color: var(--bl-facet-active-bg);
|
116
122
|
|
117
123
|
.btn {
|
118
124
|
@if function-exists(color-contrast) {
|
@@ -143,38 +149,32 @@
|
|
143
149
|
}
|
144
150
|
|
145
151
|
.selected {
|
146
|
-
color:
|
152
|
+
color: var(--bl-facet-active-item-color);
|
147
153
|
}
|
148
154
|
}
|
149
155
|
|
150
156
|
.remove {
|
151
|
-
color:
|
157
|
+
color: var(--bl-facet-remove-color);
|
152
158
|
font-weight: bold;
|
153
|
-
padding-left: $spacer * .5;
|
159
|
+
padding-left: $spacer * 0.5;
|
154
160
|
text-decoration: none;
|
155
161
|
|
156
162
|
&:hover {
|
157
|
-
color:
|
163
|
+
color: $danger;
|
158
164
|
text-decoration: none;
|
159
165
|
}
|
160
166
|
}
|
161
167
|
|
162
|
-
@mixin hyphens-auto {
|
163
|
-
overflow-wrap: break-word;
|
164
|
-
-webkit-hyphens: auto;
|
165
|
-
-o-hyphens: auto;
|
166
|
-
hyphens: auto;
|
167
|
-
}
|
168
|
-
|
169
168
|
.facet-label {
|
169
|
+
hyphens: auto;
|
170
|
+
overflow-wrap: break-word;
|
171
|
+
padding-left: 15px;
|
170
172
|
padding-right: 1em;
|
171
173
|
text-indent: -15px;
|
172
|
-
padding-left: 15px;
|
173
|
-
@include hyphens-auto;
|
174
174
|
}
|
175
175
|
|
176
176
|
.facet-count {
|
177
|
-
margin-left: auto
|
177
|
+
margin-left: auto;
|
178
178
|
}
|
179
179
|
|
180
180
|
.facet-checkbox {
|
@@ -200,7 +200,7 @@
|
|
200
200
|
}
|
201
201
|
|
202
202
|
/* This prevents the contained stretch link from covering the panel body */
|
203
|
-
position: relative
|
203
|
+
position: relative;
|
204
204
|
}
|
205
205
|
|
206
206
|
/* Sidenav
|
@@ -212,15 +212,9 @@
|
|
212
212
|
}
|
213
213
|
}
|
214
214
|
|
215
|
-
/* style for pivot facet's nested list */
|
216
|
-
|
217
|
-
.facet-values {
|
218
|
-
@extend .list-unstyled;
|
219
|
-
}
|
220
|
-
|
221
215
|
.pivot-facet {
|
222
216
|
&.show {
|
223
|
-
|
217
|
+
display: flex;
|
224
218
|
}
|
225
219
|
}
|
226
220
|
|
@@ -230,16 +224,16 @@ $facet-toggle-width: 1em !default;
|
|
230
224
|
$facet-toggle-height: $facet-toggle-width !default;
|
231
225
|
|
232
226
|
.facet-toggle-handle {
|
233
|
-
|
234
|
-
|
235
|
-
|
227
|
+
margin-block: 0;
|
228
|
+
padding-block: 0;
|
229
|
+
padding-inline: 0.5rem;
|
236
230
|
|
237
231
|
// keep the icon span centered in the button, but shift to the left for equal spacing inside row
|
238
|
-
margin-
|
232
|
+
margin-inline-start: -1 * $btn-padding-x;
|
239
233
|
|
240
234
|
.pivot-facet & {
|
241
235
|
// shift pivot values a little more aggressively for better compact display
|
242
|
-
margin-
|
236
|
+
margin-inline-start: -2 * $btn-padding-x;
|
243
237
|
}
|
244
238
|
|
245
239
|
&.collapsed {
|
@@ -268,10 +262,12 @@ $facet-toggle-height: $facet-toggle-width !default;
|
|
268
262
|
}
|
269
263
|
|
270
264
|
.show .icon {
|
271
|
-
background: transparent escape-svg($facet-toggle-show-icon) center /
|
265
|
+
background: transparent escape-svg($facet-toggle-show-icon) center /
|
266
|
+
$facet-toggle-width auto no-repeat;
|
272
267
|
}
|
273
268
|
|
274
269
|
.hide .icon {
|
275
|
-
background: transparent escape-svg($facet-toggle-hide-icon) center /
|
270
|
+
background: transparent escape-svg($facet-toggle-hide-icon) center /
|
271
|
+
$facet-toggle-width auto no-repeat;
|
276
272
|
}
|
277
273
|
}
|
@@ -2,14 +2,8 @@
|
|
2
2
|
Header bar at top (Bootstrap nav-bar)
|
3
3
|
*/
|
4
4
|
|
5
|
-
.
|
6
|
-
|
7
|
-
margin-left: 0;
|
8
|
-
margin-right: 0;
|
9
|
-
}
|
10
|
-
}
|
11
|
-
|
12
|
-
.navbar-logo { /* The main logo image for the Blacklight instance */
|
5
|
+
.navbar-logo {
|
6
|
+
/* The main logo image for the Blacklight instance */
|
13
7
|
@if $logo-image {
|
14
8
|
background: transparent $logo-image no-repeat top left;
|
15
9
|
background-size: $logo-width $logo-height;
|
@@ -36,32 +30,5 @@
|
|
36
30
|
.search-query-form {
|
37
31
|
@extend .col-md-12;
|
38
32
|
@extend .col-lg-8;
|
39
|
-
padding-left: 0;
|
40
|
-
}
|
41
|
-
}
|
42
|
-
|
43
|
-
#skip-link {
|
44
|
-
position: absolute;
|
45
|
-
top: 5px;
|
46
|
-
left: 10px;
|
47
|
-
z-index: 1;
|
48
|
-
|
49
|
-
.element-invisible {
|
50
|
-
position: absolute !important;
|
51
|
-
clip: rect(1px, 1px, 1px, 1px);
|
52
|
-
overflow: hidden;
|
53
|
-
height: 1px;
|
54
|
-
}
|
55
|
-
|
56
|
-
.element-invisible.element-focusable:active,
|
57
|
-
.element-invisible.element-focusable:focus {
|
58
|
-
position: static !important;
|
59
|
-
clip: auto;
|
60
|
-
overflow: visible;
|
61
|
-
height: auto;
|
62
|
-
}
|
63
|
-
|
64
|
-
a:focus {
|
65
|
-
background-color: $white;
|
66
33
|
}
|
67
34
|
}
|
@@ -1,8 +1,8 @@
|
|
1
1
|
// define a visually-hidden class that applies to a given breakpoint and below
|
2
2
|
// https://getbootstrap.com/docs/5.3/helpers/visually-hidden/
|
3
3
|
@if mixin-exists(visually-hidden) {
|
4
|
-
@each $
|
5
|
-
.visually-hidden-#{$
|
4
|
+
@each $breakpoint in map-keys($grid-breakpoints) {
|
5
|
+
.visually-hidden-#{$breakpoint} {
|
6
6
|
@include media-breakpoint-down($breakpoint) {
|
7
7
|
@include visually-hidden;
|
8
8
|
}
|
@@ -10,8 +10,8 @@
|
|
10
10
|
}
|
11
11
|
} @else if mixin-exists(sr-only) {
|
12
12
|
// Bootstrap 4 version
|
13
|
-
@each $
|
14
|
-
.visually-hidden-#{$
|
13
|
+
@each $breakpoint in map-keys($grid-breakpoints) {
|
14
|
+
.visually-hidden-#{$breakpoint} {
|
15
15
|
@include media-breakpoint-down($breakpoint) {
|
16
16
|
@include sr-only;
|
17
17
|
}
|
@@ -1,6 +1,6 @@
|
|
1
1
|
// bootstrap does flex-grow: 1 by default which makes the
|
2
2
|
// text input roughly the same size as the select in many cases
|
3
|
-
.input-group
|
3
|
+
.input-group > .search-q {
|
4
4
|
flex-grow: 4;
|
5
5
|
}
|
6
6
|
|
@@ -10,20 +10,15 @@
|
|
10
10
|
flex-grow: 4;
|
11
11
|
padding: 0;
|
12
12
|
position: relative;
|
13
|
-
|
13
|
+
|
14
14
|
.search-q {
|
15
15
|
border: 0;
|
16
16
|
height: 100%;
|
17
17
|
width: 100%;
|
18
18
|
}
|
19
|
-
|
19
|
+
|
20
20
|
ul {
|
21
|
-
@extend .dropdown-menu;
|
22
21
|
display: block;
|
23
|
-
|
24
|
-
li {
|
25
|
-
@extend .dropdown-item;
|
26
|
-
}
|
27
22
|
}
|
28
23
|
}
|
29
24
|
|
@@ -1,8 +1,9 @@
|
|
1
1
|
/* Search History */
|
2
2
|
.search-history {
|
3
|
+
--bl-history-filter-name-color: var(--bs-secondary-color);
|
3
4
|
|
4
5
|
td {
|
5
|
-
padding: $spacer
|
6
|
+
padding: $spacer;
|
6
7
|
}
|
7
8
|
|
8
9
|
.constraints-container {
|
@@ -10,12 +11,11 @@
|
|
10
11
|
}
|
11
12
|
|
12
13
|
.constraint {
|
13
|
-
|
14
|
+
padding-inline-end: $spacer;
|
14
15
|
display: block;
|
15
|
-
text-indent: -1 * map-get($spacers, 3);
|
16
16
|
}
|
17
17
|
|
18
|
-
.filter-name
|
19
|
-
|
18
|
+
.filter-name {
|
19
|
+
color: var(--bl-history-filter-name-color);
|
20
20
|
}
|
21
21
|
}
|
@@ -1,10 +1,13 @@
|
|
1
1
|
// the search results on the index view of the catalog
|
2
2
|
.documents-list {
|
3
|
+
--bl-results-document-margin-top: #{$spacer};
|
4
|
+
--bl-results-document-padding-top: #{$spacer};
|
5
|
+
|
3
6
|
.document {
|
4
7
|
display: flex;
|
5
8
|
border-bottom: 1px dotted $table-border-color;
|
6
|
-
margin-top:
|
7
|
-
padding-top:
|
9
|
+
margin-top: var(--bl-results-document-margin-top);
|
10
|
+
padding-top: var(--bl-results-document-padding-top);
|
8
11
|
|
9
12
|
.document-title-heading {
|
10
13
|
@extend h5;
|
@@ -1,17 +1,23 @@
|
|
1
1
|
/* Warning! If you want to change these, just copy them into your own theme css. But you want to remove the !default, which only will set them if not already set. */
|
2
2
|
|
3
|
-
$logo-image: image_url(
|
3
|
+
$logo-image: image_url("blacklight/logo.png") !default;
|
4
4
|
$logo-width: 150px !default;
|
5
5
|
$logo-height: 50px !default;
|
6
6
|
|
7
|
-
/* label (field names) */
|
8
|
-
$field_name_color: $text-muted !default;
|
9
|
-
|
10
|
-
// the default bootstrap font-family list includes "Segoe UI Emoji", which, on windows
|
11
|
-
// renders our remove icon as an emoji-sized x instead of what we see on all other platforms...
|
12
|
-
// so, for now (until we replace it with an SVG icon or something), we get to override bootstrap:
|
13
|
-
$remove-icon-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif !default;
|
14
|
-
|
15
7
|
$facet-active-border: $success !default;
|
16
8
|
$facet-active-bg: $success !default;
|
17
|
-
$facet-active-item-color: $success !default;
|
9
|
+
$facet-active-item-color: $success !default;
|
10
|
+
|
11
|
+
/* for compatability with BS < 5.3 */
|
12
|
+
$body-secondary-color: rgba($body-color, 0.75) !default;
|
13
|
+
|
14
|
+
:root {
|
15
|
+
--bs-secondary-color: #{$body-secondary-color}; /* for compatability with BS < 5.3 */
|
16
|
+
|
17
|
+
--bl-main-padding-y: 0.5rem;
|
18
|
+
|
19
|
+
--bl-constraint-remove-hover-bg: #bb2d3b;
|
20
|
+
--bl-constraint-remove-hover-border-color: #bb2d3b;
|
21
|
+
|
22
|
+
--bl-field-name-color: var(--bs-secondary-color);
|
23
|
+
}
|
@@ -8,7 +8,7 @@
|
|
8
8
|
<% end %>
|
9
9
|
|
10
10
|
<%= form_tag @url, method: @method, class: @classes.join(' '), role: 'search', 'aria-label' => t('blacklight.search.form.submit') do %>
|
11
|
-
<%= render Blacklight::HiddenSearchStateComponent.new(params:
|
11
|
+
<%= render Blacklight::HiddenSearchStateComponent.new(params: hidden_search_state_params) %>
|
12
12
|
|
13
13
|
<div class="input-criteria">
|
14
14
|
<div class="query-criteria mb-4">
|
@@ -34,6 +34,12 @@ module Blacklight
|
|
34
34
|
select_tag(:sort, options_for_select(options, params[:sort]), class: "form-select custom-select sort-select w-auto", aria: { labelledby: 'advanced-search-sort-label' })
|
35
35
|
end
|
36
36
|
|
37
|
+
# Filtered params to pass to hidden search fields
|
38
|
+
# @return [ActiveSupport::HashWithIndifferentAccess]
|
39
|
+
def hidden_search_state_params
|
40
|
+
@params.except(:clause, :f_inclusive, :op, :sort)
|
41
|
+
end
|
42
|
+
|
37
43
|
private
|
38
44
|
|
39
45
|
def initialize_search_field_controls
|
@@ -9,15 +9,8 @@
|
|
9
9
|
</span>
|
10
10
|
<% if @remove_path.present? %>
|
11
11
|
<%= link_to(@remove_path, class: 'btn btn-outline-secondary remove') do %>
|
12
|
-
|
13
|
-
<span class="sr-only visually-hidden">
|
14
|
-
<%= if @label.blank?
|
15
|
-
t('blacklight.search.filters.remove.value', value: @value)
|
16
|
-
else
|
17
|
-
t('blacklight.search.filters.remove.label_value', label: @label, value: @value)
|
18
|
-
end
|
19
|
-
%>
|
20
|
-
</span>
|
12
|
+
<%= render Blacklight::Icons::RemoveComponent.new %>
|
13
|
+
<span class="sr-only visually-hidden"><%= remove_aria_label %></span>
|
21
14
|
<% end %>
|
22
15
|
<% end %>
|
23
16
|
</span>
|