Modified: maven/website/components/shared-archives/maven-dependency-analyzer-LATEST/apidocs/org/apache/maven/shared/dependency/analyzer/package-summary.html ============================================================================== --- maven/website/components/shared-archives/maven-dependency-analyzer-LATEST/apidocs/org/apache/maven/shared/dependency/analyzer/package-summary.html (original) +++ maven/website/components/shared-archives/maven-dependency-analyzer-LATEST/apidocs/org/apache/maven/shared/dependency/analyzer/package-summary.html Sun Apr 30 22:24:03 2023 @@ -1,25 +1,20 @@ <!DOCTYPE HTML> <html lang="en"> <head> -<!-- Generated by javadoc (17) --> -<title>org.apache.maven.shared.dependency.analyzer (Apache Maven Dependency Analyzer 1.13.1 API)</title> +<!-- Generated by javadoc (20) --> +<title>org.apache.maven.shared.dependency.analyzer (Apache Maven Dependency Analyzer 1.13.2 API)</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="description" content="declaration: package: org.apache.maven.shared.dependency.analyzer"> <meta name="generator" content="javadoc/PackageWriterImpl"> <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../../script-dir/jquery-ui.min.css" title="Style"> -<link rel="stylesheet" type="text/css" href="../../../../../../jquery-ui.overrides.css" title="Style"> <script type="text/javascript" src="../../../../../../script.js"></script> -<script type="text/javascript" src="../../../../../../script-dir/jquery-3.6.0.min.js"></script> +<script type="text/javascript" src="../../../../../../script-dir/jquery-3.6.1.min.js"></script> <script type="text/javascript" src="../../../../../../script-dir/jquery-ui.min.js"></script> </head> <body class="package-declaration-page"> -<script type="text/javascript">var evenRowColor = "even-row-color"; -var oddRowColor = "odd-row-color"; -var tableTab = "table-tab"; -var activeTableTab = "active-table-tab"; -var pathtoroot = "../../../../../../"; +<script type="text/javascript">var pathtoroot = "../../../../../../"; loadScripts(document, 'script');</script> <noscript> <div>JavaScript is disabled on your browser.</div> @@ -28,7 +23,7 @@ loadScripts(document, 'script');</script <header role="banner" class="flex-header"> <nav role="navigation"> <!-- ========= START OF TOP NAVBAR ======= --> -<div class="top-nav" id="navbar-top"> +<div class="top-nav" id="navbar-top"><button id="navbar-toggle-button" aria-controls="navbar-top" aria-expanded="false" aria-label="Toggle navigation links"><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span></button> <div class="skip-nav"><a href="#skip-navbar-top" title="Skip navigation links">Skip navigation links</a></div> <ul id="navbar-top-firstrow" class="nav-list" title="Navigation"> <li><a href="../../../../../../index.html">Overview</a></li> @@ -39,9 +34,19 @@ loadScripts(document, 'script');</script <li><a href="../../../../../../index-all.html">Index</a></li> <li><a href="../../../../../../help-doc.html#package">Help</a></li> </ul> +<ul class="sub-nav-list-small"> +<li> +<p>Package:</p> +<ul> +<li>Description</li> +<li><a href="#related-package-summary">Related Packages</a></li> +<li><a href="#class-summary">Classes and Interfaces</a></li> +</ul> +</li> +</ul> </div> <div class="sub-nav"> -<div> +<div id="navbar-sub-list"> <ul class="sub-nav-list"> <li>Package: </li> <li>Description | </li> @@ -49,9 +54,9 @@ loadScripts(document, 'script');</script <li><a href="#class-summary">Classes and Interfaces</a></li> </ul> </div> -<div class="nav-list-search"><label for="search-input">SEARCH:</label> -<input type="text" id="search-input" value="search" disabled="disabled"> -<input type="reset" id="reset-button" value="reset" disabled="disabled"> +<div class="nav-list-search"><a href="../../../../../../search.html">SEARCH</a> +<input type="text" id="search-input" disabled placeholder="Search"> +<input type="reset" id="reset-button" disabled value="reset"> </div> </div> <!-- ========= END OF TOP NAVBAR ========= --> @@ -79,7 +84,7 @@ loadScripts(document, 'script');</script </li> <li> <div id="class-summary"> -<div class="table-tabs" role="tablist" aria-orientation="horizontal"><button id="class-summary-tab0" role="tab" aria-selected="true" aria-controls="class-summary.tabpanel" tabindex="0" onkeydown="switchTab(event)" onclick="show('class-summary', 'class-summary', 2)" class="active-table-tab">All Classes and Interfaces</button><button id="class-summary-tab1" role="tab" aria-selected="false" aria-controls="class-summary.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('class-summary', 'class-summary-tab1', 2)" class="table-tab">Interfaces</button><button id="class-summary-tab2" role="tab" aria-selected="false" aria-controls="class-summary.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('class-summary', 'class-summary-tab2', 2)" class="table-tab">Classes</button><button id="class-summary-tab5" role="tab" aria-selected="false" aria-controls="class-summary.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('class-summary', 'class-summary -tab5', 2)" class="table-tab">Exceptions</button></div> +<div class="table-tabs" role="tablist" aria-orientation="horizontal"><button id="class-summary-tab0" role="tab" aria-selected="true" aria-controls="class-summary.tabpanel" tabindex="0" onkeydown="switchTab(event)" onclick="show('class-summary', 'class-summary', 2)" class="active-table-tab">All Classes and Interfaces</button><button id="class-summary-tab1" role="tab" aria-selected="false" aria-controls="class-summary.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('class-summary', 'class-summary-tab1', 2)" class="table-tab">Interfaces</button><button id="class-summary-tab2" role="tab" aria-selected="false" aria-controls="class-summary.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('class-summary', 'class-summary-tab2', 2)" class="table-tab">Classes</button><button id="class-summary-tab5" role="tab" aria-selected="false" aria-controls="class-summary.tabpanel" tabindex="-1" onkeydown="switchTab(event)" onclick="show('class-summary', 'class-summary -tab5', 2)" class="table-tab">Exception Classes</button></div> <div id="class-summary.tabpanel" role="tabpanel"> <div class="summary-table two-column-summary" aria-labelledby="class-summary-tab0"> <div class="table-header col-first">Class</div>
Modified: maven/website/components/shared-archives/maven-dependency-analyzer-LATEST/apidocs/org/apache/maven/shared/dependency/analyzer/package-tree.html ============================================================================== --- maven/website/components/shared-archives/maven-dependency-analyzer-LATEST/apidocs/org/apache/maven/shared/dependency/analyzer/package-tree.html (original) +++ maven/website/components/shared-archives/maven-dependency-analyzer-LATEST/apidocs/org/apache/maven/shared/dependency/analyzer/package-tree.html Sun Apr 30 22:24:03 2023 @@ -1,17 +1,16 @@ <!DOCTYPE HTML> <html lang="en"> <head> -<!-- Generated by javadoc (17) --> -<title>org.apache.maven.shared.dependency.analyzer Class Hierarchy (Apache Maven Dependency Analyzer 1.13.1 API)</title> +<!-- Generated by javadoc (20) --> +<title>org.apache.maven.shared.dependency.analyzer Class Hierarchy (Apache Maven Dependency Analyzer 1.13.2 API)</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="description" content="tree: package: org.apache.maven.shared.dependency.analyzer"> <meta name="generator" content="javadoc/PackageTreeWriter"> <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../../script-dir/jquery-ui.min.css" title="Style"> -<link rel="stylesheet" type="text/css" href="../../../../../../jquery-ui.overrides.css" title="Style"> <script type="text/javascript" src="../../../../../../script.js"></script> -<script type="text/javascript" src="../../../../../../script-dir/jquery-3.6.0.min.js"></script> +<script type="text/javascript" src="../../../../../../script-dir/jquery-3.6.1.min.js"></script> <script type="text/javascript" src="../../../../../../script-dir/jquery-ui.min.js"></script> </head> <body class="package-tree-page"> @@ -24,7 +23,7 @@ loadScripts(document, 'script');</script <header role="banner" class="flex-header"> <nav role="navigation"> <!-- ========= START OF TOP NAVBAR ======= --> -<div class="top-nav" id="navbar-top"> +<div class="top-nav" id="navbar-top"><button id="navbar-toggle-button" aria-controls="navbar-top" aria-expanded="false" aria-label="Toggle navigation links"><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span></button> <div class="skip-nav"><a href="#skip-navbar-top" title="Skip navigation links">Skip navigation links</a></div> <ul id="navbar-top-firstrow" class="nav-list" title="Navigation"> <li><a href="../../../../../../index.html">Overview</a></li> @@ -37,9 +36,10 @@ loadScripts(document, 'script');</script </ul> </div> <div class="sub-nav"> -<div class="nav-list-search"><label for="search-input">SEARCH:</label> -<input type="text" id="search-input" value="search" disabled="disabled"> -<input type="reset" id="reset-button" value="reset" disabled="disabled"> +<div id="navbar-sub-list"></div> +<div class="nav-list-search"><a href="../../../../../../search.html">SEARCH</a> +<input type="text" id="search-input" disabled placeholder="Search"> +<input type="reset" id="reset-button" disabled value="reset"> </div> </div> <!-- ========= END OF TOP NAVBAR ========= --> @@ -49,11 +49,11 @@ loadScripts(document, 'script');</script <main role="main"> <div class="header"> <h1 class="title">Hierarchy For Package org.apache.maven.shared.dependency.analyzer</h1> +</div> <span class="package-hierarchy-label">Package Hierarchies:</span> -<ul class="horizontal"> +<ul class="horizontal contents-list"> <li><a href="../../../../../../overview-tree.html">All Packages</a></li> </ul> -</div> <section class="hierarchy"> <h2 title="Class Hierarchy">Class Hierarchy</h2> <ul> Modified: maven/website/components/shared-archives/maven-dependency-analyzer-LATEST/apidocs/org/apache/maven/shared/dependency/analyzer/package-use.html ============================================================================== --- maven/website/components/shared-archives/maven-dependency-analyzer-LATEST/apidocs/org/apache/maven/shared/dependency/analyzer/package-use.html (original) +++ maven/website/components/shared-archives/maven-dependency-analyzer-LATEST/apidocs/org/apache/maven/shared/dependency/analyzer/package-use.html Sun Apr 30 22:24:03 2023 @@ -1,17 +1,16 @@ <!DOCTYPE HTML> <html lang="en"> <head> -<!-- Generated by javadoc (17) --> -<title>Uses of Package org.apache.maven.shared.dependency.analyzer (Apache Maven Dependency Analyzer 1.13.1 API)</title> +<!-- Generated by javadoc (20) --> +<title>Uses of Package org.apache.maven.shared.dependency.analyzer (Apache Maven Dependency Analyzer 1.13.2 API)</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="description" content="use: package: org.apache.maven.shared.dependency.analyzer"> <meta name="generator" content="javadoc/PackageUseWriter"> <link rel="stylesheet" type="text/css" href="../../../../../../stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="../../../../../../script-dir/jquery-ui.min.css" title="Style"> -<link rel="stylesheet" type="text/css" href="../../../../../../jquery-ui.overrides.css" title="Style"> <script type="text/javascript" src="../../../../../../script.js"></script> -<script type="text/javascript" src="../../../../../../script-dir/jquery-3.6.0.min.js"></script> +<script type="text/javascript" src="../../../../../../script-dir/jquery-3.6.1.min.js"></script> <script type="text/javascript" src="../../../../../../script-dir/jquery-ui.min.js"></script> </head> <body class="package-use-page"> @@ -24,7 +23,7 @@ loadScripts(document, 'script');</script <header role="banner" class="flex-header"> <nav role="navigation"> <!-- ========= START OF TOP NAVBAR ======= --> -<div class="top-nav" id="navbar-top"> +<div class="top-nav" id="navbar-top"><button id="navbar-toggle-button" aria-controls="navbar-top" aria-expanded="false" aria-label="Toggle navigation links"><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span></button> <div class="skip-nav"><a href="#skip-navbar-top" title="Skip navigation links">Skip navigation links</a></div> <ul id="navbar-top-firstrow" class="nav-list" title="Navigation"> <li><a href="../../../../../../index.html">Overview</a></li> @@ -37,9 +36,10 @@ loadScripts(document, 'script');</script </ul> </div> <div class="sub-nav"> -<div class="nav-list-search"><label for="search-input">SEARCH:</label> -<input type="text" id="search-input" value="search" disabled="disabled"> -<input type="reset" id="reset-button" value="reset" disabled="disabled"> +<div id="navbar-sub-list"></div> +<div class="nav-list-search"><a href="../../../../../../search.html">SEARCH</a> +<input type="text" id="search-input" disabled placeholder="Search"> +<input type="reset" id="reset-button" disabled value="reset"> </div> </div> <!-- ========= END OF TOP NAVBAR ========= --> Modified: maven/website/components/shared-archives/maven-dependency-analyzer-LATEST/apidocs/overview-summary.html ============================================================================== --- maven/website/components/shared-archives/maven-dependency-analyzer-LATEST/apidocs/overview-summary.html (original) +++ maven/website/components/shared-archives/maven-dependency-analyzer-LATEST/apidocs/overview-summary.html Sun Apr 30 22:24:03 2023 @@ -1,8 +1,8 @@ <!DOCTYPE HTML> <html lang="en"> <head> -<!-- Generated by javadoc (17) --> -<title>Apache Maven Dependency Analyzer 1.13.1 API</title> +<!-- Generated by javadoc (20) --> +<title>Apache Maven Dependency Analyzer 1.13.2 API</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="description" content="index redirect"> Modified: maven/website/components/shared-archives/maven-dependency-analyzer-LATEST/apidocs/overview-tree.html ============================================================================== --- maven/website/components/shared-archives/maven-dependency-analyzer-LATEST/apidocs/overview-tree.html (original) +++ maven/website/components/shared-archives/maven-dependency-analyzer-LATEST/apidocs/overview-tree.html Sun Apr 30 22:24:03 2023 @@ -1,17 +1,16 @@ <!DOCTYPE HTML> <html lang="en"> <head> -<!-- Generated by javadoc (17) --> -<title>Class Hierarchy (Apache Maven Dependency Analyzer 1.13.1 API)</title> +<!-- Generated by javadoc (20) --> +<title>Class Hierarchy (Apache Maven Dependency Analyzer 1.13.2 API)</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="description" content="class tree"> <meta name="generator" content="javadoc/TreeWriter"> <link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="script-dir/jquery-ui.min.css" title="Style"> -<link rel="stylesheet" type="text/css" href="jquery-ui.overrides.css" title="Style"> <script type="text/javascript" src="script.js"></script> -<script type="text/javascript" src="script-dir/jquery-3.6.0.min.js"></script> +<script type="text/javascript" src="script-dir/jquery-3.6.1.min.js"></script> <script type="text/javascript" src="script-dir/jquery-ui.min.js"></script> </head> <body class="tree-page"> @@ -24,7 +23,7 @@ loadScripts(document, 'script');</script <header role="banner" class="flex-header"> <nav role="navigation"> <!-- ========= START OF TOP NAVBAR ======= --> -<div class="top-nav" id="navbar-top"> +<div class="top-nav" id="navbar-top"><button id="navbar-toggle-button" aria-controls="navbar-top" aria-expanded="false" aria-label="Toggle navigation links"><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span></button> <div class="skip-nav"><a href="#skip-navbar-top" title="Skip navigation links">Skip navigation links</a></div> <ul id="navbar-top-firstrow" class="nav-list" title="Navigation"> <li><a href="index.html">Overview</a></li> @@ -37,9 +36,10 @@ loadScripts(document, 'script');</script </ul> </div> <div class="sub-nav"> -<div class="nav-list-search"><label for="search-input">SEARCH:</label> -<input type="text" id="search-input" value="search" disabled="disabled"> -<input type="reset" id="reset-button" value="reset" disabled="disabled"> +<div id="navbar-sub-list"></div> +<div class="nav-list-search"><a href="search.html">SEARCH</a> +<input type="text" id="search-input" disabled placeholder="Search"> +<input type="reset" id="reset-button" disabled value="reset"> </div> </div> <!-- ========= END OF TOP NAVBAR ========= --> @@ -49,12 +49,12 @@ loadScripts(document, 'script');</script <main role="main"> <div class="header"> <h1 class="title">Hierarchy For All Packages</h1> +</div> <span class="package-hierarchy-label">Package Hierarchies:</span> -<ul class="horizontal"> +<ul class="horizontal contents-list"> <li><a href="org/apache/maven/shared/dependency/analyzer/package-tree.html">org.apache.maven.shared.dependency.analyzer</a>, </li> <li><a href="org/apache/maven/shared/dependency/analyzer/asm/package-tree.html">org.apache.maven.shared.dependency.analyzer.asm</a></li> </ul> -</div> <section class="hierarchy"> <h2 title="Class Hierarchy">Class Hierarchy</h2> <ul> Added: maven/website/components/shared-archives/maven-dependency-analyzer-LATEST/apidocs/script-dir/jquery-3.6.1.min.js ============================================================================== --- maven/website/components/shared-archives/maven-dependency-analyzer-LATEST/apidocs/script-dir/jquery-3.6.1.min.js (added) +++ maven/website/components/shared-archives/maven-dependency-analyzer-LATEST/apidocs/script-dir/jquery-3.6.1.min.js Sun Apr 30 22:24:03 2023 @@ -0,0 +1,2 @@ +/*! jQuery v3.6.1 | (c) OpenJS Foundation and other contributors | jquery.org/license */ [... 3 lines stripped ...] Propchange: maven/website/components/shared-archives/maven-dependency-analyzer-LATEST/apidocs/script-dir/jquery-3.6.1.min.js ------------------------------------------------------------------------------ svn:eol-style = native Modified: maven/website/components/shared-archives/maven-dependency-analyzer-LATEST/apidocs/script.js ============================================================================== --- maven/website/components/shared-archives/maven-dependency-analyzer-LATEST/apidocs/script.js (original) +++ maven/website/components/shared-archives/maven-dependency-analyzer-LATEST/apidocs/script.js Sun Apr 30 22:24:03 2023 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013, 2022, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -28,6 +28,14 @@ var packageSearchIndex; var typeSearchIndex; var memberSearchIndex; var tagSearchIndex; + +var oddRowColor = "odd-row-color"; +var evenRowColor = "even-row-color"; +var sortAsc = "sort-asc"; +var sortDesc = "sort-desc"; +var tableTab = "table-tab"; +var activeTableTab = "active-table-tab"; + function loadScripts(doc, tag) { createElem(doc, tag, 'search.js'); @@ -45,6 +53,93 @@ function createElem(doc, tag, path) { scriptElement.parentNode.insertBefore(script, scriptElement); } +// Helper for making content containing release names comparable lexicographically +function makeComparable(s) { + return s.toLowerCase().replace(/(\d+)/g, + function(n, m) { + return ("000" + m).slice(-4); + }); +} + +// Switches between two styles depending on a condition +function toggleStyle(classList, condition, trueStyle, falseStyle) { + if (condition) { + classList.remove(falseStyle); + classList.add(trueStyle); + } else { + classList.remove(trueStyle); + classList.add(falseStyle); + } +} + +// Sorts the rows in a table lexicographically by the content of a specific column +function sortTable(header, columnIndex, columns) { + var container = header.parentElement; + var descending = header.classList.contains(sortAsc); + container.querySelectorAll("div.table-header").forEach( + function(header) { + header.classList.remove(sortAsc); + header.classList.remove(sortDesc); + } + ) + var cells = container.children; + var rows = []; + for (var i = columns; i < cells.length; i += columns) { + rows.push(Array.prototype.slice.call(cells, i, i + columns)); + } + var comparator = function(a, b) { + var ka = makeComparable(a[columnIndex].textContent); + var kb = makeComparable(b[columnIndex].textContent); + if (ka < kb) + return descending ? 1 : -1; + if (ka > kb) + return descending ? -1 : 1; + return 0; + }; + var sorted = rows.sort(comparator); + var visible = 0; + sorted.forEach(function(row) { + if (row[0].style.display !== 'none') { + var isEvenRow = visible++ % 2 === 0; + } + row.forEach(function(cell) { + toggleStyle(cell.classList, isEvenRow, evenRowColor, oddRowColor); + container.appendChild(cell); + }) + }); + toggleStyle(header.classList, descending, sortDesc, sortAsc); +} + +// Toggles the visibility of a table category in all tables in a page +function toggleGlobal(checkbox, selected, columns) { + var display = checkbox.checked ? '' : 'none'; + document.querySelectorAll("div.table-tabs").forEach(function(t) { + var id = t.parentElement.getAttribute("id"); + var selectedClass = id + "-tab" + selected; + // if selected is empty string it selects all uncategorized entries + var selectUncategorized = !Boolean(selected); + var visible = 0; + document.querySelectorAll('div.' + id) + .forEach(function(elem) { + if (selectUncategorized) { + if (elem.className.indexOf(selectedClass) === -1) { + elem.style.display = display; + } + } else if (elem.classList.contains(selectedClass)) { + elem.style.display = display; + } + if (elem.style.display === '') { + var isEvenRow = visible++ % (columns * 2) < columns; + toggleStyle(elem.classList, isEvenRow, evenRowColor, oddRowColor); + } + }); + var displaySection = visible === 0 ? 'none' : ''; + t.parentElement.style.display = displaySection; + document.querySelector("li#contents-" + id).style.display = displaySection; + }) +} + +// Shows the elements of a table belonging to a specific category function show(tableId, selected, columns) { if (tableId !== selected) { document.querySelectorAll('div.' + tableId + ':not(.' + selected + ')') @@ -56,8 +151,7 @@ function show(tableId, selected, columns .forEach(function(elem, index) { elem.style.display = ''; var isEvenRow = index % (columns * 2) < columns; - elem.classList.remove(isEvenRow ? oddRowColor : evenRowColor); - elem.classList.add(isEvenRow ? evenRowColor : oddRowColor); + toggleStyle(elem.classList, isEvenRow, evenRowColor, oddRowColor); }); updateTabs(tableId, selected); } @@ -105,7 +199,49 @@ function indexFilesLoaded() { && memberSearchIndex && tagSearchIndex; } - +// Copy the contents of the local snippet to the clipboard +function copySnippet(button) { + copyToClipboard(button.nextElementSibling.innerText); + switchCopyLabel(button.firstElementChild, button.parentElement); +} +// Copy the link to the adjacent header to the clipboard +function copyUrl(button) { + var id; + var header = button.parentElement; + if (header.hasAttribute("id")) { + id = header.getAttribute("id"); + } else if (header.parentElement.tagName === 'SECTION' && header.parentElement.hasAttribute("id")) { + id = header.parentElement.getAttribute("id"); + } else if (header.firstElementChild && header.firstElementChild.tagName === "A" + && header.firstElementChild.hasAttribute("id")) { + id = header.firstElementChild.getAttribute("id"); + } + var url = document.location.href; + if (url.indexOf("#") > -1) { + url = url.substring(0, url.indexOf("#")); + } + copyToClipboard(url + "#" + id); + switchCopyLabel(button.lastElementChild, button.parentElement); +} +function copyToClipboard(content) { + var textarea = document.createElement("textarea"); + textarea.style.height = 0; + document.body.appendChild(textarea); + textarea.value = content; + textarea.select(); + document.execCommand("copy"); + document.body.removeChild(textarea); +} +function switchCopyLabel(span, parent) { + var copied = span.getAttribute("data-copied"); + if (span.innerHTML !== copied) { + var initialLabel = span.innerHTML; + span.innerHTML = copied; + parent.onmouseleave = parent.ontouchend = function() { + span.innerHTML = initialLabel; + }; + } +} // Workaround for scroll position not being included in browser history (8249133) document.addEventListener("DOMContentLoaded", function(e) { var contentDiv = document.querySelector("div.flex-content"); @@ -117,14 +253,14 @@ document.addEventListener("DOMContentLoa window.addEventListener("hashchange", function(e) { history.replaceState(contentDiv.scrollTop, document.title); }); + var timeoutId; contentDiv.addEventListener("scroll", function(e) { - var timeoutID; - if (!timeoutID) { - timeoutID = setTimeout(function() { - history.replaceState(contentDiv.scrollTop, document.title); - timeoutID = null; - }, 100); + if (timeoutId) { + clearTimeout(timeoutId); } + timeoutId = setTimeout(function() { + history.replaceState(contentDiv.scrollTop, document.title); + }, 100); }); if (!location.hash) { history.replaceState(contentDiv.scrollTop, document.title); Added: maven/website/components/shared-archives/maven-dependency-analyzer-LATEST/apidocs/search-page.js ============================================================================== --- maven/website/components/shared-archives/maven-dependency-analyzer-LATEST/apidocs/search-page.js (added) +++ maven/website/components/shared-archives/maven-dependency-analyzer-LATEST/apidocs/search-page.js Sun Apr 30 22:24:03 2023 @@ -0,0 +1,299 @@ +/* + * Copyright (c) 2022, Oracle and/or its affiliates. All rights reserved. + * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. + * + * This code is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License version 2 only, as + * published by the Free Software Foundation. Oracle designates this + * particular file as subject to the "Classpath" exception as provided + * by Oracle in the LICENSE file that accompanied this code. + * + * This code is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License + * version 2 for more details (a copy is included in the LICENSE file that + * accompanied this code). + * + * You should have received a copy of the GNU General Public License version + * 2 along with this work; if not, write to the Free Software Foundation, + * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. + * + * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA + * or visit www.oracle.com if you need additional information or have any + * questions. + */ + +"use strict"; +$(function() { + var copy = $("#page-search-copy"); + var expand = $("#page-search-expand"); + var searchLink = $("span#page-search-link"); + var redirect = $("input#search-redirect"); + function setSearchUrlTemplate() { + var href = document.location.href.split(/[#?]/)[0]; + href += "?q=" + "%s"; + if (redirect.is(":checked")) { + href += "&r=1"; + } + searchLink.html(href); + copy[0].onmouseenter(); + } + function copyLink(e) { + var textarea = document.createElement("textarea"); + textarea.style.height = 0; + document.body.appendChild(textarea); + textarea.value = this.previousSibling.innerText; + textarea.select(); + document.execCommand("copy"); + document.body.removeChild(textarea); + var span = this.lastElementChild; + var copied = span.getAttribute("data-copied"); + if (span.innerHTML !== copied) { + var initialLabel = span.innerHTML; + span.innerHTML = copied; + var parent = this.parentElement.parentElement; + parent.onmouseleave = parent.ontouchend = copy[0].onmouseenter = function() { + span.innerHTML = initialLabel; + }; + } + } + copy.click(copyLink); + copy[0].onmouseenter = function() {}; + redirect.click(setSearchUrlTemplate); + setSearchUrlTemplate(); + copy.prop("disabled", false); + redirect.prop("disabled", false); + expand.click(function (e) { + var searchInfo = $("div.page-search-info"); + if(this.parentElement.hasAttribute("open")) { + searchInfo.attr("style", "border-width: 0;"); + } else { + searchInfo.attr("style", "border-width: 1px;").height(searchInfo.prop("scrollHeight")); + } + }); +}); +$(window).on("load", function() { + var input = $("#page-search-input"); + var reset = $("#page-search-reset"); + var notify = $("#page-search-notify"); + var resultSection = $("div#result-section"); + var resultContainer = $("div#result-container"); + var searchTerm = ""; + var activeTab = ""; + var fixedTab = false; + var visibleTabs = []; + var feelingLucky = false; + function renderResults(result) { + if (!result.length) { + notify.html(messages.noResult); + } else if (result.length === 1) { + notify.html(messages.oneResult); + } else { + notify.html(messages.manyResults.replace("{0}", result.length)); + } + resultContainer.empty(); + var r = { + "types": [], + "members": [], + "packages": [], + "modules": [], + "searchTags": [] + }; + for (var i in result) { + var item = result[i]; + var arr = r[item.category]; + arr.push(item); + } + if (!activeTab || r[activeTab].length === 0 || !fixedTab) { + Object.keys(r).reduce(function(prev, curr) { + if (r[curr].length > 0 && r[curr][0].score > prev) { + activeTab = curr; + return r[curr][0].score; + } + return prev; + }, 0); + } + if (feelingLucky && activeTab) { + notify.html(messages.redirecting) + var firstItem = r[activeTab][0]; + window.location = getURL(firstItem.indexItem, firstItem.category); + return; + } + if (result.length > 20) { + if (searchTerm[searchTerm.length - 1] === ".") { + if (activeTab === "types" && r["members"].length > r["types"].length) { + activeTab = "members"; + } else if (activeTab === "packages" && r["types"].length > r["packages"].length) { + activeTab = "types"; + } + } + } + var categoryCount = Object.keys(r).reduce(function(prev, curr) { + return prev + (r[curr].length > 0 ? 1 : 0); + }, 0); + visibleTabs = []; + var tabContainer = $("<div class='table-tabs'></div>").appendTo(resultContainer); + for (var key in r) { + var id = "#result-tab-" + key.replace("searchTags", "search_tags"); + if (r[key].length) { + var count = r[key].length >= 1000 ? "999+" : r[key].length; + if (result.length > 20 && categoryCount > 1) { + var button = $("<button id='result-tab-" + key + + "' class='page-search-header'><span>" + categories[key] + "</span>" + + "<span style='font-weight: normal'> (" + count + ")</span></button>").appendTo(tabContainer); + button.click(key, function(e) { + fixedTab = true; + renderResult(e.data, $(this)); + }); + visibleTabs.push(key); + } else { + $("<span class='page-search-header active-table-tab'>" + categories[key] + + "<span style='font-weight: normal'> (" + count + ")</span></span>").appendTo(tabContainer); + renderTable(key, r[key]).appendTo(resultContainer); + tabContainer = $("<div class='table-tabs'></div>").appendTo(resultContainer); + + } + } + } + if (activeTab && result.length > 20 && categoryCount > 1) { + $("button#result-tab-" + activeTab).addClass("active-table-tab"); + renderTable(activeTab, r[activeTab]).appendTo(resultContainer); + } + resultSection.show(); + function renderResult(category, button) { + activeTab = category; + setSearchUrl(); + resultContainer.find("div.summary-table").remove(); + renderTable(activeTab, r[activeTab]).appendTo(resultContainer); + button.siblings().removeClass("active-table-tab"); + button.addClass("active-table-tab"); + } + } + function selectTab(category) { + $("button#result-tab-" + category).click(); + } + function renderTable(category, items) { + var table = $("<div class='summary-table'>") + .addClass(category === "modules" + ? "one-column-search-results" + : "two-column-search-results"); + var col1, col2; + if (category === "modules") { + col1 = "Module"; + } else if (category === "packages") { + col1 = "Module"; + col2 = "Package"; + } else if (category === "types") { + col1 = "Package"; + col2 = "Class" + } else if (category === "members") { + col1 = "Class"; + col2 = "Member"; + } else if (category === "searchTags") { + col1 = "Location"; + col2 = "Name"; + } + $("<div class='table-header col-plain'>" + col1 + "</div>").appendTo(table); + if (category !== "modules") { + $("<div class='table-header col-plain'>" + col2 + "</div>").appendTo(table); + } + $.each(items, function(index, item) { + var rowColor = index % 2 ? "odd-row-color" : "even-row-color"; + renderItem(item, table, rowColor); + }); + return table; + } + function renderItem(item, table, rowColor) { + var label = getHighlightedText(item.input, item.boundaries, item.prefix.length, item.input.length); + var link = $("<a/>") + .attr("href", getURL(item.indexItem, item.category)) + .attr("tabindex", "0") + .addClass("search-result-link") + .html(label); + var container = getHighlightedText(item.input, item.boundaries, 0, item.prefix.length - 1); + if (item.category === "searchTags") { + container = item.indexItem.h || ""; + } + if (item.category !== "modules") { + $("<div/>").html(container).addClass("col-plain").addClass(rowColor).appendTo(table); + } + $("<div/>").html(link).addClass("col-last").addClass(rowColor).appendTo(table); + } + var timeout; + function schedulePageSearch() { + if (timeout) { + clearTimeout(timeout); + } + timeout = setTimeout(function () { + doPageSearch() + }, 100); + } + function doPageSearch() { + setSearchUrl(); + var term = searchTerm = input.val().trim(); + if (term === "") { + notify.html(messages.enterTerm); + activeTab = ""; + fixedTab = false; + resultContainer.empty(); + resultSection.hide(); + } else { + notify.html(messages.searching); + doSearch({ term: term, maxResults: 1200 }, renderResults); + } + } + function setSearchUrl() { + var query = input.val().trim(); + var url = document.location.pathname; + if (query) { + url += "?q=" + encodeURI(query); + if (activeTab && fixedTab) { + url += "&c=" + activeTab; + } + } + history.replaceState({query: query}, "", url); + } + input.on("input", function(e) { + feelingLucky = false; + schedulePageSearch(); + }); + $(document).keydown(function(e) { + if ((e.ctrlKey || e.metaKey) && (e.key === "ArrowLeft" || e.key === "ArrowRight")) { + if (activeTab && visibleTabs.length > 1) { + var idx = visibleTabs.indexOf(activeTab); + idx += e.key === "ArrowLeft" ? visibleTabs.length - 1 : 1; + selectTab(visibleTabs[idx % visibleTabs.length]); + return false; + } + } + }); + reset.click(function() { + notify.html(messages.enterTerm); + resultSection.hide(); + activeTab = ""; + fixedTab = false; + resultContainer.empty(); + input.val('').focus(); + setSearchUrl(); + }); + input.prop("disabled", false); + reset.prop("disabled", false); + + var urlParams = new URLSearchParams(window.location.search); + if (urlParams.has("q")) { + input.val(urlParams.get("q")) + } + if (urlParams.has("c")) { + activeTab = urlParams.get("c"); + fixedTab = true; + } + if (urlParams.get("r")) { + feelingLucky = true; + } + if (input.val()) { + doPageSearch(); + } else { + notify.html(messages.enterTerm); + } + input.select().focus(); +}); \ No newline at end of file Propchange: maven/website/components/shared-archives/maven-dependency-analyzer-LATEST/apidocs/search-page.js ------------------------------------------------------------------------------ svn:eol-style = native Added: maven/website/components/shared-archives/maven-dependency-analyzer-LATEST/apidocs/search.html ============================================================================== --- maven/website/components/shared-archives/maven-dependency-analyzer-LATEST/apidocs/search.html (added) +++ maven/website/components/shared-archives/maven-dependency-analyzer-LATEST/apidocs/search.html Sun Apr 30 22:24:03 2023 @@ -0,0 +1,76 @@ +<!DOCTYPE HTML> +<html lang="en"> +<head> +<!-- Generated by javadoc (20) --> +<title>Search (Apache Maven Dependency Analyzer 1.13.2 API)</title> +<meta name="viewport" content="width=device-width, initial-scale=1"> +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> +<meta name="description" content="search"> +<meta name="generator" content="javadoc/SearchWriter"> +<link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style"> +<link rel="stylesheet" type="text/css" href="script-dir/jquery-ui.min.css" title="Style"> +<script type="text/javascript" src="script.js"></script> +<script type="text/javascript" src="script-dir/jquery-3.6.1.min.js"></script> +<script type="text/javascript" src="script-dir/jquery-ui.min.js"></script> +</head> +<body class="search-page"> +<script type="text/javascript">var pathtoroot = "./"; +loadScripts(document, 'script');</script> +<noscript> +<div>JavaScript is disabled on your browser.</div> +</noscript> +<div class="flex-box"> +<header role="banner" class="flex-header"> +<nav role="navigation"> +<!-- ========= START OF TOP NAVBAR ======= --> +<div class="top-nav" id="navbar-top"><button id="navbar-toggle-button" aria-controls="navbar-top" aria-expanded="false" aria-label="Toggle navigation links"><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span></button> +<div class="skip-nav"><a href="#skip-navbar-top" title="Skip navigation links">Skip navigation links</a></div> +<ul id="navbar-top-firstrow" class="nav-list" title="Navigation"> +<li><a href="index.html">Overview</a></li> +<li>Package</li> +<li>Class</li> +<li>Use</li> +<li><a href="overview-tree.html">Tree</a></li> +<li><a href="index-all.html">Index</a></li> +<li><a href="help-doc.html#search">Help</a></li> +</ul> +</div> +<div class="sub-nav"> +<div id="navbar-sub-list"></div> +</div> +<!-- ========= END OF TOP NAVBAR ========= --> +<span class="skip-nav" id="skip-navbar-top"></span></nav> +</header> +<div class="flex-content"> +<main role="main"> +<h1 class="title">Search</h1> +<div> +<input type="text" id="page-search-input" disabled placeholder="Search"> +<input type="reset" id="page-search-reset" disabled value="Reset" style="margin: 6px;"> +<details class="page-search-details"> +<summary id="page-search-expand">Additional resources</summary> +</details> +</div> +<div class="page-search-info"> +<p>The <a href="help-doc.html#search">help page</a> provides an introduction to the scope and syntax of JavaDoc search.</p> +<p>You can use the <ctrl> or <cmd> keys in combination with the left and right arrow keys to switch between result tabs in this page.</p> +<p>The URL template below may be used to configure this page as a search engine in browsers that support this feature. It has been tested to work in Google Chrome and Mozilla Firefox. Note that other browsers may not support this feature or require a different URL format.</p> +<span id="page-search-link">link</span><button class="copy" id="page-search-copy"><img src="copy.svg" alt="Copy URL"><span data-copied="Copied!">Copy URL</span></button> +<p> +<input type="checkbox" id="search-redirect" disabled> +<label for="search-redirect">Redirect to first result</label></p> +</div> +<p id="page-search-notify">Loading search index...</p> +<div id="result-section" style="display: none;"> +<div id="result-container"></div> +<script type="text/javascript" src="search-page.js"></script> +</div> +</main> +<footer role="contentinfo"> +<hr> +<p class="legal-copy"><small>Copyright © 2002–2023 <a href="https://www.apache.org/">The Apache Software Foundation</a>. All rights reserved.</small></p> +</footer> +</div> +</div> +</body> +</html> \ No newline at end of file Propchange: maven/website/components/shared-archives/maven-dependency-analyzer-LATEST/apidocs/search.html ------------------------------------------------------------------------------ svn:eol-style = native Modified: maven/website/components/shared-archives/maven-dependency-analyzer-LATEST/apidocs/search.js ============================================================================== --- maven/website/components/shared-archives/maven-dependency-analyzer-LATEST/apidocs/search.js (original) +++ maven/website/components/shared-archives/maven-dependency-analyzer-LATEST/apidocs/search.js Sun Apr 30 22:24:03 2023 @@ -1,5 +1,5 @@ /* - * Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -22,282 +22,413 @@ * or visit www.oracle.com if you need additional information or have any * questions. */ - -var noResult = {l: "No results found"}; -var loading = {l: "Loading search index..."}; -var catModules = "Modules"; -var catPackages = "Packages"; -var catTypes = "Types"; -var catMembers = "Members"; -var catSearchTags = "Search Tags"; -var highlight = "<span class=\"result-highlight\">$&</span>"; -var searchPattern = ""; -var fallbackPattern = ""; -var RANKING_THRESHOLD = 2; -var NO_MATCH = 0xffff; -var MIN_RESULTS = 3; -var MAX_RESULTS = 500; -var UNNAMED = "<Unnamed>"; +"use strict"; +const messages = { + enterTerm: "Enter a search term", + noResult: "No results found", + oneResult: "Found one result", + manyResults: "Found {0} results", + loading: "Loading search index...", + searching: "Searching...", + redirecting: "Redirecting to first result...", + copyUrl: "Copy URL", + urlCopied: "Copied!" +} +const categories = { + modules: "Modules", + packages: "Packages", + types: "Types", + members: "Members", + searchTags: "Search Tags" +}; +const highlight = "<span class='result-highlight'>$&</span>"; +const NO_MATCH = {}; +const MAX_RESULTS = 300; +function checkUnnamed(name, separator) { + return name === "<Unnamed>" || !name ? "" : name + separator; +} function escapeHtml(str) { return str.replace(/</g, "<").replace(/>/g, ">"); } -function getHighlightedText(item, matcher, fallbackMatcher) { - var escapedItem = escapeHtml(item); - var highlighted = escapedItem.replace(matcher, highlight); - if (highlighted === escapedItem) { - highlighted = escapedItem.replace(fallbackMatcher, highlight) +function getHighlightedText(str, boundaries, from, to) { + var start = from; + var text = ""; + for (var i = 0; i < boundaries.length; i += 2) { + var b0 = boundaries[i]; + var b1 = boundaries[i + 1]; + if (b0 >= to || b1 <= from) { + continue; + } + text += escapeHtml(str.slice(start, Math.max(start, b0))); + text += "<span class='result-highlight'>"; + text += escapeHtml(str.slice(Math.max(start, b0), Math.min(to, b1))); + text += "</span>"; + start = Math.min(to, b1); } - return highlighted; + text += escapeHtml(str.slice(start, to)); + return text; } -function getURLPrefix(ui) { - var urlPrefix=""; +function getURLPrefix(item, category) { + var urlPrefix = ""; var slash = "/"; - if (ui.item.category === catModules) { - return ui.item.l + slash; - } else if (ui.item.category === catPackages && ui.item.m) { - return ui.item.m + slash; - } else if (ui.item.category === catTypes || ui.item.category === catMembers) { - if (ui.item.m) { - urlPrefix = ui.item.m + slash; + if (category === "modules") { + return item.l + slash; + } else if (category === "packages" && item.m) { + return item.m + slash; + } else if (category === "types" || category === "members") { + if (item.m) { + urlPrefix = item.m + slash; } else { - $.each(packageSearchIndex, function(index, item) { - if (item.m && ui.item.p === item.l) { - urlPrefix = item.m + slash; + $.each(packageSearchIndex, function(index, it) { + if (it.m && item.p === it.l) { + urlPrefix = it.m + slash; } }); } } return urlPrefix; } -function createSearchPattern(term) { - var pattern = ""; - var isWordToken = false; - term.replace(/,\s*/g, ", ").trim().split(/\s+/).forEach(function(w, index) { - if (index > 0) { - // whitespace between identifiers is significant - pattern += (isWordToken && /^\w/.test(w)) ? "\\s+" : "\\s*"; +function getURL(item, category) { + if (item.url) { + return item.url; + } + var url = getURLPrefix(item, category); + if (category === "modules") { + url += "module-summary.html"; + } else if (category === "packages") { + if (item.u) { + url = item.u; + } else { + url += item.l.replace(/\./g, '/') + "/package-summary.html"; + } + } else if (category === "types") { + if (item.u) { + url = item.u; + } else { + url += checkUnnamed(item.p, "/").replace(/\./g, '/') + item.l + ".html"; } - var tokens = w.split(/(?=[A-Z,.()<>[\/])/); + } else if (category === "members") { + url += checkUnnamed(item.p, "/").replace(/\./g, '/') + item.c + ".html" + "#"; + if (item.u) { + url += item.u; + } else { + url += item.l; + } + } else if (category === "searchTags") { + url += item.u; + } + item.url = url; + return url; +} +function createMatcher(term, camelCase) { + if (camelCase && !isUpperCase(term)) { + return null; // no need for camel-case matcher for lower case query + } + var pattern = ""; + var upperCase = []; + term.trim().split(/\s+/).forEach(function(w, index, array) { + var tokens = w.split(/(?=[A-Z,.()<>?[\/])/); for (var i = 0; i < tokens.length; i++) { var s = tokens[i]; - if (s === "") { - continue; - } - pattern += $.ui.autocomplete.escapeRegex(s); - isWordToken = /\w$/.test(s); + // ',' and '?' are the only delimiters commonly followed by space in java signatures + pattern += "(" + $.ui.autocomplete.escapeRegex(s).replace(/[,?]/g, "$&\\s*?") + ")"; + upperCase.push(false); + var isWordToken = /\w$/.test(s); if (isWordToken) { - pattern += "([a-z0-9_$<>\\[\\]]*?)"; + if (i === tokens.length - 1 && index < array.length - 1) { + // space in query string matches all delimiters + pattern += "(.*?)"; + upperCase.push(isUpperCase(s[0])); + } else { + if (!camelCase && isUpperCase(s) && s.length === 1) { + pattern += "()"; + } else { + pattern += "([a-z0-9$<>?[\\]]*?)"; + } + upperCase.push(isUpperCase(s[0])); + } + } else { + pattern += "()"; + upperCase.push(false); } } }); - return pattern; + var re = new RegExp(pattern, "gi"); + re.upperCase = upperCase; + return re; } -function createMatcher(pattern, flags) { - var isCamelCase = /[A-Z]/.test(pattern); - return new RegExp(pattern, flags + (isCamelCase ? "" : "i")); +function findMatch(matcher, input, startOfName, endOfName) { + var from = startOfName; + matcher.lastIndex = from; + var match = matcher.exec(input); + // Expand search area until we get a valid result or reach the beginning of the string + while (!match || match.index + match[0].length < startOfName || endOfName < match.index) { + if (from === 0) { + return NO_MATCH; + } + from = input.lastIndexOf(".", from - 2) + 1; + matcher.lastIndex = from; + match = matcher.exec(input); + } + var boundaries = []; + var matchEnd = match.index + match[0].length; + var score = 5; + var start = match.index; + var prevEnd = -1; + for (var i = 1; i < match.length; i += 2) { + var isUpper = isUpperCase(input[start]); + var isMatcherUpper = matcher.upperCase[i]; + // capturing groups come in pairs, match and non-match + boundaries.push(start, start + match[i].length); + // make sure groups are anchored on a left word boundary + var prevChar = input[start - 1] || ""; + var nextChar = input[start + 1] || ""; + if (start !== 0 && !/[\W_]/.test(prevChar) && !/[\W_]/.test(input[start])) { + if (isUpper && (isLowerCase(prevChar) || isLowerCase(nextChar))) { + score -= 0.1; + } else if (isMatcherUpper && start === prevEnd) { + score -= isUpper ? 0.1 : 1.0; + } else { + return NO_MATCH; + } + } + prevEnd = start + match[i].length; + start += match[i].length + match[i + 1].length; + + // lower score for parts of the name that are missing + if (match[i + 1] && prevEnd < endOfName) { + score -= rateNoise(match[i + 1]); + } + } + // lower score if a type name contains unmatched camel-case parts + if (input[matchEnd - 1] !== "." && endOfName > matchEnd) + score -= rateNoise(input.slice(matchEnd, endOfName)); + score -= rateNoise(input.slice(0, Math.max(startOfName, match.index))); + + if (score <= 0) { + return NO_MATCH; + } + return { + input: input, + score: score, + boundaries: boundaries + }; } -var watermark = 'Search'; -$(function() { - var search = $("#search-input"); - var reset = $("#reset-button"); - search.val(''); - search.prop("disabled", false); - reset.prop("disabled", false); - search.val(watermark).addClass('watermark'); - search.blur(function() { - if ($(this).val().length === 0) { - $(this).val(watermark).addClass('watermark'); +function isUpperCase(s) { + return s !== s.toLowerCase(); +} +function isLowerCase(s) { + return s !== s.toUpperCase(); +} +function rateNoise(str) { + return (str.match(/([.(])/g) || []).length / 5 + + (str.match(/([A-Z]+)/g) || []).length / 10 + + str.length / 20; +} +function doSearch(request, response) { + var term = request.term.trim(); + var maxResults = request.maxResults || MAX_RESULTS; + if (term.length === 0) { + return this.close(); + } + var matcher = { + plainMatcher: createMatcher(term, false), + camelCaseMatcher: createMatcher(term, true) + } + var indexLoaded = indexFilesLoaded(); + + function getPrefix(item, category) { + switch (category) { + case "packages": + return checkUnnamed(item.m, "/"); + case "types": + return checkUnnamed(item.p, "."); + case "members": + return checkUnnamed(item.p, ".") + item.c + "."; + default: + return ""; + } + } + function useQualifiedName(category) { + switch (category) { + case "packages": + return /[\s/]/.test(term); + case "types": + case "members": + return /[\s.]/.test(term); + default: + return false; + } + } + function searchIndex(indexArray, category) { + var matches = []; + if (!indexArray) { + if (!indexLoaded) { + matches.push({ l: messages.loading, category: category }); + } + return matches; } - }); - search.on('click keydown paste', function() { - if ($(this).val() === watermark) { - $(this).val('').removeClass('watermark'); + $.each(indexArray, function (i, item) { + var prefix = getPrefix(item, category); + var simpleName = item.l; + var qualifiedName = prefix + simpleName; + var useQualified = useQualifiedName(category); + var input = useQualified ? qualifiedName : simpleName; + var startOfName = useQualified ? prefix.length : 0; + var endOfName = category === "members" && input.indexOf("(", startOfName) > -1 + ? input.indexOf("(", startOfName) : input.length; + var m = findMatch(matcher.plainMatcher, input, startOfName, endOfName); + if (m === NO_MATCH && matcher.camelCaseMatcher) { + m = findMatch(matcher.camelCaseMatcher, input, startOfName, endOfName); + } + if (m !== NO_MATCH) { + m.indexItem = item; + m.prefix = prefix; + m.category = category; + if (!useQualified) { + m.input = qualifiedName; + m.boundaries = m.boundaries.map(function(b) { + return b + prefix.length; + }); + } + matches.push(m); + } + return true; + }); + return matches.sort(function(e1, e2) { + return e2.score - e1.score; + }).slice(0, maxResults); + } + + var result = searchIndex(moduleSearchIndex, "modules") + .concat(searchIndex(packageSearchIndex, "packages")) + .concat(searchIndex(typeSearchIndex, "types")) + .concat(searchIndex(memberSearchIndex, "members")) + .concat(searchIndex(tagSearchIndex, "searchTags")); + + if (!indexLoaded) { + updateSearchResults = function() { + doSearch(request, response); } - }); - reset.click(function() { - search.val('').focus(); - }); - search.focus()[0].setSelectionRange(0, 0); -}); + } else { + updateSearchResults = function() {}; + } + response(result); +} +// JQuery search menu implementation $.widget("custom.catcomplete", $.ui.autocomplete, { _create: function() { this._super(); - this.widget().menu("option", "items", "> :not(.ui-autocomplete-category)"); + this.widget().menu("option", "items", "> .result-item"); + // workaround for search result scrolling + this.menu._scrollIntoView = function _scrollIntoView( item ) { + var borderTop, paddingTop, offset, scroll, elementHeight, itemHeight; + if ( this._hasScroll() ) { + borderTop = parseFloat( $.css( this.activeMenu[ 0 ], "borderTopWidth" ) ) || 0; + paddingTop = parseFloat( $.css( this.activeMenu[ 0 ], "paddingTop" ) ) || 0; + offset = item.offset().top - this.activeMenu.offset().top - borderTop - paddingTop; + scroll = this.activeMenu.scrollTop(); + elementHeight = this.activeMenu.height() - 26; + itemHeight = item.outerHeight(); + + if ( offset < 0 ) { + this.activeMenu.scrollTop( scroll + offset ); + } else if ( offset + itemHeight > elementHeight ) { + this.activeMenu.scrollTop( scroll + offset - elementHeight + itemHeight ); + } + } + }; }, _renderMenu: function(ul, items) { - var rMenu = this; var currentCategory = ""; - rMenu.menu.bindings = $(); + var widget = this; + widget.menu.bindings = $(); $.each(items, function(index, item) { - var li; if (item.category && item.category !== currentCategory) { - ul.append("<li class=\"ui-autocomplete-category\">" + item.category + "</li>"); + ul.append("<li class='ui-autocomplete-category'>" + categories[item.category] + "</li>"); currentCategory = item.category; } - li = rMenu._renderItemData(ul, item); + var li = widget._renderItemData(ul, item); if (item.category) { - li.attr("aria-label", item.category + " : " + item.l); - li.attr("class", "result-item"); + li.attr("aria-label", categories[item.category] + " : " + item.l); } else { li.attr("aria-label", item.l); - li.attr("class", "result-item"); } + li.attr("class", "result-item"); }); + ul.append("<li class='ui-static-link'><a href='" + pathtoroot + "search.html?q=" + + encodeURI(widget.term) + "'>Go to search page</a></li>"); }, _renderItem: function(ul, item) { - var label = ""; - var matcher = createMatcher(escapeHtml(searchPattern), "g"); - var fallbackMatcher = new RegExp(fallbackPattern, "gi") - if (item.category === catModules) { - label = getHighlightedText(item.l, matcher, fallbackMatcher); - } else if (item.category === catPackages) { - label = getHighlightedText(item.l, matcher, fallbackMatcher); - } else if (item.category === catTypes) { - label = (item.p && item.p !== UNNAMED) - ? getHighlightedText(item.p + "." + item.l, matcher, fallbackMatcher) - : getHighlightedText(item.l, matcher, fallbackMatcher); - } else if (item.category === catMembers) { - label = (item.p && item.p !== UNNAMED) - ? getHighlightedText(item.p + "." + item.c + "." + item.l, matcher, fallbackMatcher) - : getHighlightedText(item.c + "." + item.l, matcher, fallbackMatcher); - } else if (item.category === catSearchTags) { - label = getHighlightedText(item.l, matcher, fallbackMatcher); - } else { - label = item.l; - } var li = $("<li/>").appendTo(ul); var div = $("<div/>").appendTo(li); - if (item.category === catSearchTags && item.h) { - if (item.d) { - div.html(label + "<span class=\"search-tag-holder-result\"> (" + item.h + ")</span><br><span class=\"search-tag-desc-result\">" - + item.d + "</span><br>"); + var label = item.l + ? item.l + : getHighlightedText(item.input, item.boundaries, 0, item.input.length); + var idx = item.indexItem; + if (item.category === "searchTags" && idx.h) { + if (idx.d) { + div.html(label + "<span class='search-tag-holder-result'> (" + idx.h + ")</span><br><span class='search-tag-desc-result'>" + + idx.d + "</span><br>"); } else { - div.html(label + "<span class=\"search-tag-holder-result\"> (" + item.h + ")</span>"); + div.html(label + "<span class='search-tag-holder-result'> (" + idx.h + ")</span>"); } } else { - if (item.m) { - div.html(item.m + "/" + label); - } else { - div.html(label); - } + div.html(label); } return li; } }); -function rankMatch(match, category) { - if (!match) { - return NO_MATCH; - } - var index = match.index; - var input = match.input; - var leftBoundaryMatch = 2; - var periferalMatch = 0; - // make sure match is anchored on a left word boundary - if (index === 0 || /\W/.test(input[index - 1]) || "_" === input[index]) { - leftBoundaryMatch = 0; - } else if ("_" === input[index - 1] || (input[index] === input[index].toUpperCase() && !/^[A-Z0-9_$]+$/.test(input))) { - leftBoundaryMatch = 1; - } - var matchEnd = index + match[0].length; - var leftParen = input.indexOf("("); - var endOfName = leftParen > -1 ? leftParen : input.length; - // exclude peripheral matches - if (category !== catModules && category !== catSearchTags) { - var delim = category === catPackages ? "/" : "."; - if (leftParen > -1 && leftParen < index) { - periferalMatch += 2; - } else if (input.lastIndexOf(delim, endOfName) >= matchEnd) { - periferalMatch += 2; - } - } - var delta = match[0].length === endOfName ? 0 : 1; // rank full match higher than partial match - for (var i = 1; i < match.length; i++) { - // lower ranking if parts of the name are missing - if (match[i]) - delta += match[i].length; - } - if (category === catTypes) { - // lower ranking if a type name contains unmatched camel-case parts - if (/[A-Z]/.test(input.substring(matchEnd))) - delta += 5; - if (/[A-Z]/.test(input.substring(0, index))) - delta += 5; - } - return leftBoundaryMatch + periferalMatch + (delta / 200); - -} -function doSearch(request, response) { - var result = []; - searchPattern = createSearchPattern(request.term); - fallbackPattern = createSearchPattern(request.term.toLowerCase()); - if (searchPattern === "") { - return this.close(); - } - var camelCaseMatcher = createMatcher(searchPattern, ""); - var fallbackMatcher = new RegExp(fallbackPattern, "i"); - - function searchIndexWithMatcher(indexArray, matcher, category, nameFunc) { - if (indexArray) { - var newResults = []; - $.each(indexArray, function (i, item) { - item.category = category; - var ranking = rankMatch(matcher.exec(nameFunc(item)), category); - if (ranking < RANKING_THRESHOLD) { - newResults.push({ranking: ranking, item: item}); - } - return newResults.length <= MAX_RESULTS; - }); - return newResults.sort(function(e1, e2) { - return e1.ranking - e2.ranking; - }).map(function(e) { - return e.item; - }); +$(function() { + var expanded = false; + var windowWidth; + function collapse() { + if (expanded) { + $("div#navbar-top").removeAttr("style"); + $("button#navbar-toggle-button") + .removeClass("expanded") + .attr("aria-expanded", "false"); + expanded = false; } - return []; } - function searchIndex(indexArray, category, nameFunc) { - var primaryResults = searchIndexWithMatcher(indexArray, camelCaseMatcher, category, nameFunc); - result = result.concat(primaryResults); - if (primaryResults.length <= MIN_RESULTS && !camelCaseMatcher.ignoreCase) { - var secondaryResults = searchIndexWithMatcher(indexArray, fallbackMatcher, category, nameFunc); - result = result.concat(secondaryResults.filter(function (item) { - return primaryResults.indexOf(item) === -1; - })); + $("button#navbar-toggle-button").click(function (e) { + if (expanded) { + collapse(); + } else { + var navbar = $("div#navbar-top"); + navbar.height(navbar.prop("scrollHeight")); + $("button#navbar-toggle-button") + .addClass("expanded") + .attr("aria-expanded", "true"); + expanded = true; + windowWidth = window.innerWidth; } - } - - searchIndex(moduleSearchIndex, catModules, function(item) { return item.l; }); - searchIndex(packageSearchIndex, catPackages, function(item) { - return (item.m && request.term.indexOf("/") > -1) - ? (item.m + "/" + item.l) : item.l; }); - searchIndex(typeSearchIndex, catTypes, function(item) { - return request.term.indexOf(".") > -1 ? item.p + "." + item.l : item.l; - }); - searchIndex(memberSearchIndex, catMembers, function(item) { - return request.term.indexOf(".") > -1 - ? item.p + "." + item.c + "." + item.l : item.l; - }); - searchIndex(tagSearchIndex, catSearchTags, function(item) { return item.l; }); - - if (!indexFilesLoaded()) { - updateSearchResults = function() { - doSearch(request, response); + $("ul.sub-nav-list-small li a").click(collapse); + $("input#search-input").focus(collapse); + $("main").click(collapse); + $("section[id] > :header, :header[id], :header:has(a[id])").hover( + function () { + $(this).append($("<button class='copy copy-header' onclick='copyUrl(this)'> " + + "<img src='" + pathtoroot + "copy.svg' alt='" + messages.copyUrl + "'> " + + "<span data-copied='" + messages.urlCopied + "'></span></button>")); + }, + function () { + $(this).find("button:last").remove(); } - result.unshift(loading); - } else { - updateSearchResults = function() {}; - } - response(result); -} -$(function() { - $("#search-input").catcomplete({ + ); + $(window).on("orientationchange", collapse).on("resize", function(e) { + if (expanded && windowWidth !== window.innerWidth) collapse(); + }); + var search = $("#search-input"); + var reset = $("#reset-button"); + search.catcomplete({ minLength: 1, - delay: 300, + delay: 200, source: doSearch, response: function(event, ui) { if (!ui.content.length) { - ui.content.push(noResult); + ui.content.push({ l: messages.noResult }); } else { $("#search-input").empty(); } @@ -310,45 +441,18 @@ $(function() { collision: "flip" }, select: function(event, ui) { - if (ui.item.category) { - var url = getURLPrefix(ui); - if (ui.item.category === catModules) { - url += "module-summary.html"; - } else if (ui.item.category === catPackages) { - if (ui.item.u) { - url = ui.item.u; - } else { - url += ui.item.l.replace(/\./g, '/') + "/package-summary.html"; - } - } else if (ui.item.category === catTypes) { - if (ui.item.u) { - url = ui.item.u; - } else if (ui.item.p === UNNAMED) { - url += ui.item.l + ".html"; - } else { - url += ui.item.p.replace(/\./g, '/') + "/" + ui.item.l + ".html"; - } - } else if (ui.item.category === catMembers) { - if (ui.item.p === UNNAMED) { - url += ui.item.c + ".html" + "#"; - } else { - url += ui.item.p.replace(/\./g, '/') + "/" + ui.item.c + ".html" + "#"; - } - if (ui.item.u) { - url += ui.item.u; - } else { - url += ui.item.l; - } - } else if (ui.item.category === catSearchTags) { - url += ui.item.u; - } - if (top !== window) { - parent.classFrame.location = pathtoroot + url; - } else { - window.location.href = pathtoroot + url; - } + if (ui.item.indexItem) { + var url = getURL(ui.item.indexItem, ui.item.category); + window.location.href = pathtoroot + url; $("#search-input").focus(); } } }); + search.val(''); + search.prop("disabled", false); + reset.prop("disabled", false); + reset.click(function() { + search.val('').focus(); + }); + search.focus(); }); \ No newline at end of file Modified: maven/website/components/shared-archives/maven-dependency-analyzer-LATEST/apidocs/serialized-form.html ============================================================================== --- maven/website/components/shared-archives/maven-dependency-analyzer-LATEST/apidocs/serialized-form.html (original) +++ maven/website/components/shared-archives/maven-dependency-analyzer-LATEST/apidocs/serialized-form.html Sun Apr 30 22:24:03 2023 @@ -1,17 +1,16 @@ <!DOCTYPE HTML> <html lang="en"> <head> -<!-- Generated by javadoc (17) --> -<title>Serialized Form (Apache Maven Dependency Analyzer 1.13.1 API)</title> +<!-- Generated by javadoc (20) --> +<title>Serialized Form (Apache Maven Dependency Analyzer 1.13.2 API)</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <meta name="description" content="serialized forms"> <meta name="generator" content="javadoc/SerializedFormWriterImpl"> <link rel="stylesheet" type="text/css" href="stylesheet.css" title="Style"> <link rel="stylesheet" type="text/css" href="script-dir/jquery-ui.min.css" title="Style"> -<link rel="stylesheet" type="text/css" href="jquery-ui.overrides.css" title="Style"> <script type="text/javascript" src="script.js"></script> -<script type="text/javascript" src="script-dir/jquery-3.6.0.min.js"></script> +<script type="text/javascript" src="script-dir/jquery-3.6.1.min.js"></script> <script type="text/javascript" src="script-dir/jquery-ui.min.js"></script> </head> <body class="serialized-form-page"> @@ -24,7 +23,7 @@ loadScripts(document, 'script');</script <header role="banner" class="flex-header"> <nav role="navigation"> <!-- ========= START OF TOP NAVBAR ======= --> -<div class="top-nav" id="navbar-top"> +<div class="top-nav" id="navbar-top"><button id="navbar-toggle-button" aria-controls="navbar-top" aria-expanded="false" aria-label="Toggle navigation links"><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span><span class="nav-bar-toggle-icon"> </span></button> <div class="skip-nav"><a href="#skip-navbar-top" title="Skip navigation links">Skip navigation links</a></div> <ul id="navbar-top-firstrow" class="nav-list" title="Navigation"> <li><a href="index.html">Overview</a></li> @@ -37,9 +36,10 @@ loadScripts(document, 'script');</script </ul> </div> <div class="sub-nav"> -<div class="nav-list-search"><label for="search-input">SEARCH:</label> -<input type="text" id="search-input" value="search" disabled="disabled"> -<input type="reset" id="reset-button" value="reset" disabled="disabled"> +<div id="navbar-sub-list"></div> +<div class="nav-list-search"><a href="search.html">SEARCH</a> +<input type="text" id="search-input" disabled placeholder="Search"> +<input type="reset" id="reset-button" disabled value="reset"> </div> </div> <!-- ========= END OF TOP NAVBAR ========= --> @@ -57,7 +57,7 @@ loadScripts(document, 'script');</script <ul class="block-list"> <li> <section class="serialized-class-details" id="org.apache.maven.shared.dependency.analyzer.ProjectDependencyAnalyzerException"> -<h3>Exception <a href="org/apache/maven/shared/dependency/analyzer/ProjectDependencyAnalyzerException.html" title="class in org.apache.maven.shared.dependency.analyzer">org.apache.maven.shared.dependency.analyzer.ProjectDependencyAnalyzerException</a></h3> +<h3>Exception Class <a href="org/apache/maven/shared/dependency/analyzer/ProjectDependencyAnalyzerException.html" title="class in org.apache.maven.shared.dependency.analyzer">org.apache.maven.shared.dependency.analyzer.ProjectDependencyAnalyzerException</a></h3> <div class="type-signature">class ProjectDependencyAnalyzerException extends <a href="https://docs.oracle.com/javase/8/docs/api/java/lang/Exception.html" title="class or interface in java.lang" class="external-link">Exception</a> implements <a href="https://docs.oracle.com/javase/8/docs/api/java/io/Serializable.html" title="class or interface in java.io" class="external-link">Serializable</a></div> <dl class="name-value"> <dt>serialVersionUID:</dt>