-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
GDB-8810 introduces iri autocomplete select and integrates it in the …
…acl view (#1055) * GDB-8810 introduce iri autocomplete select and integrate in acl view ## What IRI autocomplete component is implemented and integrated it in the ACL management view. ## Why This improves the user experience allowing easier completion of triples when editing acl rules. ## How Implemented the autocomplete component based on the rdf-resource-search component. Integrated the component in the ACL management view. Integrated the autocomplete in the acl view Make autocomplete to wrap uris in `<...>` because it's expected by the acl service that triples will be encoded as n-triples Fix text and index column size which needs to fit properly the rule indexes at least to four digits Cleanup the code Removed hardcoded test uris Fix uri wrapping for prefixes Reset state of the ACL on repo change Fix selection from suggested uris by mouse click. Make the autosuggest menu visible when there are no rules in the ACL. This was broken by the table-responsive css class which used to make the table `overflow-x: auto` and this clip the menu. Removed the responsive class because the table doesn't scoll anyway. Handle blur event in a timeout in order to allow if it was triggered by a click on the dropdown menu itself. Hiding the menu immediately otherwise would cause the selection to fail because the blur event happens before the click. * flaky test: wait for query to be visible in the editor
- Loading branch information
1 parent
114855c
commit f83cd34
Showing
16 changed files
with
627 additions
and
137 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
.autocomplete-select-wrapper { | ||
position: relative; | ||
} | ||
|
||
.autocomplete-select-wrapper .autocomplete-results-wrapper { | ||
position: absolute; | ||
top: 100%; | ||
left: 0; | ||
max-height: 204px; | ||
margin-bottom: 0; | ||
overflow: auto; | ||
background-color: #fff; | ||
} | ||
|
||
.autocomplete-select-wrapper .autocomplete-results-wrapper div:hover { | ||
background-color: var(--autocomplete-background); | ||
cursor: pointer; | ||
} | ||
|
||
.autocomplete-select-wrapper .autocomplete-results-wrapper div.active { | ||
background-color: var(--autocomplete-background); | ||
cursor: pointer; | ||
} | ||
|
||
.autocomplete-select-wrapper .autocomplete-results-wrapper div.selected { | ||
background-color: var(--autocomplete-background-selected); | ||
cursor: pointer; | ||
} | ||
|
||
.autocomplete-select-wrapper .autocomplete-results-wrapper div p b, | ||
.autocomplete-select-wrapper .autocomplete-results-wrapper div.active p b { | ||
color: var(--autocomplete-match); | ||
} | ||
|
||
.autocomplete-select-wrapper .autocomplete-results-wrapper div p { | ||
margin-bottom: 0; | ||
padding: 5px 25px; | ||
white-space: nowrap; | ||
} | ||
|
||
.autocomplete-select-wrapper .autocomplete-select { | ||
color: red; | ||
} | ||
|
||
.templates .tag { | ||
cursor: pointer; | ||
font-size: 100%; | ||
} | ||
|
||
.autocomplete-loader { | ||
position: relative; | ||
z-index: 100000; | ||
} | ||
|
||
.autocomplete-loader .ot-loader-new-content { | ||
position: absolute; | ||
z-index: 100000; | ||
width: 100%; | ||
height: calc(100vh - 120px); | ||
padding-top: calc((100vh - 300px) / 2); | ||
background-color: rgba(255,255,255,0.66); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.