|
56 | 56 | :display-rule-type.sync="displayRuleType" |
57 | 57 | @saveRule="handleRuleSave"> |
58 | 58 | <ColumnSelector :target.sync="addSortingTarget" :col-headers="activeRuleColHeaders" /> |
59 | | - <label v-b-tooltip.hover :title="titleNumericSort"> |
| 59 | + <label v-b-tooltip.hover.noninteractive :title="titleNumericSort"> |
60 | 60 | <input v-model="addSortingNumeric" type="checkbox" /> |
61 | 61 | {{ l("Numeric sorting.") }} |
62 | 62 | </label> |
|
141 | 141 | {{ l("Replacement Expression") }} |
142 | 142 | <input v-model="addColumnRegexReplacement" type="text" class="rule-replacement" /> |
143 | 143 | </label> |
144 | | - <label v-b-tooltip.hover> |
| 144 | + <label v-b-tooltip.hover.noninteractive> |
145 | 145 | <input v-model="addColumnRegexAllowUnmatched" type="checkbox" /> |
146 | 146 | {{ l("Allow regular expression unmatched.") }} |
147 | 147 | </label> |
|
401 | 401 | <div class="rules-buttons btn-group"> |
402 | 402 | <div class="dropup"> |
403 | 403 | <button |
404 | | - v-b-tooltip.hover.bottom |
| 404 | + v-b-tooltip.hover.bottom.noninteractive |
405 | 405 | type="button" |
406 | 406 | :title="titleRulesMenu" |
407 | 407 | class="rule-menu-rules-button primary-button dropdown-toggle" |
|
425 | 425 | </div> |
426 | 426 | <div class="dropup"> |
427 | 427 | <button |
428 | | - v-b-tooltip.hover.bottom |
| 428 | + v-b-tooltip.hover.bottom.noninteractive |
429 | 429 | type="button" |
430 | 430 | :title="titleFilterMenu" |
431 | 431 | class="rule-menu-filter-button primary-button dropdown-toggle" |
|
444 | 444 | </div> |
445 | 445 | <div class="dropup"> |
446 | 446 | <button |
447 | | - v-b-tooltip.hover.bottom |
| 447 | + v-b-tooltip.hover.bottom.noninteractive |
448 | 448 | type="button" |
449 | 449 | :title="titleColumMenu" |
450 | 450 | class="rule-menu-column-button primary-button dropdown-toggle" |
|
520 | 520 | <input v-if="elementsType == 'datasets'" v-model="hideSourceItems" type="checkbox" /> |
521 | 521 | <div v-if="extension && showFileTypeSelector" class="rule-footer-extension-group"> |
522 | 522 | <label>{{ l("Type") }}:</label> |
523 | | - <Select2 v-model="extension" name="extension" class="extension-select"> |
524 | | - <option v-for="col in extensions" :key="col.id" :value="col['id']"> |
525 | | - {{ col["text"] }} |
526 | | - </option> |
527 | | - </Select2> |
| 523 | + <SelectBasic |
| 524 | + v-model="extension" |
| 525 | + name="extension" |
| 526 | + class="extension-select" |
| 527 | + :options="extensions" /> |
528 | 528 | </div> |
529 | 529 | <div v-if="genome && showGenomeSelector" class="rule-footer-genome-group"> |
530 | 530 | <label>{{ l("Genome") }}:</label> |
531 | | - <Select2 v-model="genome" class="genome-select"> |
532 | | - <option v-for="col in genomes" :key="col.id" :value="col['id']">{{ col["text"] }}</option> |
533 | | - </Select2> |
| 531 | + <SelectBasic v-model="genome" class="genome-select" :options="genomes" /> |
534 | 532 | </div> |
535 | 533 | <label v-if="showAddNameTag">{{ l("Add nametag for name") }}:</label> |
536 | 534 | <input v-if="showAddNameTag" v-model="addNameTag" type="checkbox" /> |
@@ -625,10 +623,9 @@ import RuleModalMiddle from "components/RuleBuilder/RuleModalMiddle"; |
625 | 623 | import RuleTargetComponent from "components/RuleBuilder/RuleTargetComponent"; |
626 | 624 | import SavedRulesSelector from "components/RuleBuilder/SavedRulesSelector"; |
627 | 625 | import SaveRules from "components/RuleBuilder/SaveRules"; |
| 626 | +import SelectBasic from "components/RuleBuilder/SelectBasic"; |
628 | 627 | import StateDiv from "components/RuleBuilder/StateDiv"; |
629 | | -import Select2 from "components/Select2"; |
630 | 628 | import UploadUtils from "components/Upload/utils"; |
631 | | -import $ from "jquery"; |
632 | 629 | import { getAppRoot } from "onload/loadConfig"; |
633 | 630 | import { useHistoryStore } from "stores/historyStore"; |
634 | 631 | import _ from "underscore"; |
@@ -662,7 +659,7 @@ export default { |
662 | 659 | RuleModalHeader, |
663 | 660 | RuleModalMiddle, |
664 | 661 | RuleModalFooter, |
665 | | - Select2, |
| 662 | + SelectBasic, |
666 | 663 | GButton, |
667 | 664 | }, |
668 | 665 | mixins: [SaveRules], |
@@ -1496,25 +1493,6 @@ export default { |
1496 | 1493 | this.errorMessage = "Unknown error encountered: " + error; |
1497 | 1494 | } |
1498 | 1495 | }, |
1499 | | - swapOrientation() { |
1500 | | - this.orientation = this.orientation == "horizontal" ? "vertical" : "horizontal"; |
1501 | | - const hotTable = this.$refs.hotTable.table; |
1502 | | - if (this.orientation == "horizontal") { |
1503 | | - this.$nextTick(function () { |
1504 | | - const fullWidth = $(".rule-builder-body").width(); |
1505 | | - hotTable.updateSettings({ |
1506 | | - width: fullWidth, |
1507 | | - }); |
1508 | | - }); |
1509 | | - } else { |
1510 | | - this.$nextTick(function () { |
1511 | | - const fullWidth = $(".rule-builder-body").width(); |
1512 | | - hotTable.updateSettings({ |
1513 | | - width: fullWidth - 270, |
1514 | | - }); |
1515 | | - }); |
1516 | | - } |
1517 | | - }, |
1518 | 1496 | attemptCreate() { |
1519 | 1497 | this.createCollection(); |
1520 | 1498 | }, |
@@ -1856,16 +1834,16 @@ export default { |
1856 | 1834 | return { data, sources }; |
1857 | 1835 | }, |
1858 | 1836 | highlightColumn(n) { |
1859 | | - const headerSelection = $(`.htCore > thead > tr > th:nth-child(${n + 1})`); |
1860 | | - headerSelection.addClass("ht__highlight"); |
1861 | | - const bodySelection = $(`.htCore > tbody > tr > td:nth-child(${n + 1})`); |
1862 | | - bodySelection.addClass("rule-highlight"); |
| 1837 | + const headerSelection = document.querySelectorAll(`.htCore > thead > tr > th:nth-child(${n + 1})`); |
| 1838 | + headerSelection.forEach((el) => el.classList.add("ht__highlight")); |
| 1839 | + const bodySelection = document.querySelectorAll(`.htCore > tbody > tr > td:nth-child(${n + 1})`); |
| 1840 | + bodySelection.forEach((el) => el.classList.add("rule-highlight")); |
1863 | 1841 | }, |
1864 | 1842 | unhighlightColumn(n) { |
1865 | | - const headerSelection = $(`.htCore > thead > tr > th:nth-child(${n + 1})`); |
1866 | | - headerSelection.removeClass("ht__highlight"); |
1867 | | - const bodySelection = $(`.htCore > tbody > tr > td:nth-child(${n + 1})`); |
1868 | | - bodySelection.removeClass("rule-highlight"); |
| 1843 | + const headerSelection = document.querySelectorAll(`.htCore > thead > tr > th:nth-child(${n + 1})`); |
| 1844 | + headerSelection.forEach((el) => el.classList.remove("ht__highlight")); |
| 1845 | + const bodySelection = document.querySelectorAll(`.htCore > tbody > tr > td:nth-child(${n + 1})`); |
| 1846 | + bodySelection.forEach((el) => el.classList.remove("rule-highlight")); |
1869 | 1847 | }, |
1870 | 1848 | _datasetFor(dataIndex, data, mappingAsDict) { |
1871 | 1849 | const res = {}; |
@@ -1976,7 +1954,7 @@ export default { |
1976 | 1954 | width: 100%; |
1977 | 1955 | overflow: hidden; |
1978 | 1956 | } |
1979 | | - .select2-container { |
| 1957 | + .select-basic { |
1980 | 1958 | min-width: 60px; |
1981 | 1959 | } |
1982 | 1960 | .vertical #hot-table { |
@@ -2066,33 +2044,33 @@ export default { |
2066 | 2044 | font-style: italic; |
2067 | 2045 | font-weight: bold; |
2068 | 2046 | } |
2069 | | - .rules-buttons { |
2070 | | - } |
2071 | 2047 | .rule-footer-inputs label { |
2072 | | - padding-left: 20px; |
| 2048 | + margin-left: 1rem; |
| 2049 | + margin-right: 1rem; |
2073 | 2050 | align-self: baseline; |
2074 | 2051 | } |
2075 | | - .rule-footer-inputs .select2-container { |
| 2052 | + .rule-footer-inputs .select-basic { |
2076 | 2053 | align-self: baseline; |
2077 | 2054 | } |
2078 | 2055 | .rule-footer-inputs { |
2079 | 2056 | display: flex; |
2080 | 2057 | justify-content: space-between; |
2081 | 2058 | flex-wrap: wrap; |
2082 | 2059 | align-items: baseline; |
| 2060 | + margin-top: 1rem; |
2083 | 2061 | } |
2084 | 2062 | .rule-footer-inputs input { |
2085 | 2063 | align-self: baseline; |
2086 | 2064 | } |
2087 | 2065 | .extension-select { |
2088 | 2066 | flex: 1; |
2089 | | - max-width: 120px; |
2090 | | - min-width: 60px; |
| 2067 | + max-width: 200px; |
| 2068 | + min-width: 200px; |
2091 | 2069 | } |
2092 | 2070 | .genome-select { |
2093 | 2071 | flex: 1; |
2094 | 2072 | max-width: 300px; |
2095 | | - min-width: 120px; |
| 2073 | + min-width: 300px; |
2096 | 2074 | } |
2097 | 2075 | .collection-name { |
2098 | 2076 | flex: 1; |
|
0 commit comments