-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] pivot: allow to open side panel in readonly mode
In read-only mode, you can't open the pivots/lists/charts side panels. It's useful to know what you're looking at (range, domain, sorting, etc.), even if you can't edit anything. Task: 4187705
- Loading branch information
1 parent
c73c343
commit e4926b6
Showing
9 changed files
with
188 additions
and
6 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
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
5 changes: 3 additions & 2 deletions
5
src/components/side_panel/pivot/pivot_title_section/pivot_title_section.xml
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
159 changes: 159 additions & 0 deletions
159
tests/pivots/__snapshots__/pivot_side_panel.test.ts.snap
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,159 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`Pivot side panel readonly panel snapshot 1`] = ` | ||
<div | ||
class="o-sidePanel" | ||
> | ||
<div | ||
class="o-sidePanelHeader" | ||
> | ||
<div | ||
class="o-sidePanelTitle o-heading-3" | ||
> | ||
Pivot #2 | ||
</div> | ||
<div | ||
class="o-sidePanelClose" | ||
> | ||
✕ | ||
</div> | ||
</div> | ||
<div | ||
class="o-sidePanelBody-container d-flex flex-grow-1 " | ||
> | ||
<div | ||
class="o-sidePanel-handle-container" | ||
> | ||
<div | ||
class="o-sidePanel-handle" | ||
> | ||
<svg | ||
class="o-icon" | ||
fill="currentColor" | ||
viewBox="0 0 4 16" | ||
xmlns="http://www.w3.org/2000/svg" | ||
> | ||
<circle | ||
cx="2" | ||
cy="3.5" | ||
r="1" | ||
/> | ||
<circle | ||
cx="2" | ||
cy="6.5" | ||
r="1" | ||
/> | ||
<circle | ||
cx="2" | ||
cy="9.5" | ||
r="1" | ||
/> | ||
<circle | ||
cx="2" | ||
cy="12.5" | ||
r="1" | ||
/> | ||
</svg> | ||
</div> | ||
</div> | ||
<div | ||
class="o-sidePanelBody" | ||
> | ||
<div | ||
class="d-flex flex-column h-100 justify-content-between overflow-hidden" | ||
> | ||
<div | ||
class="h-100 position-relative overflow-x-hidden overflow-y-auto" | ||
> | ||
<div | ||
class="o-section pe-none" | ||
> | ||
<div | ||
class="o-section-title" | ||
> | ||
<div | ||
class="d-flex flex-row justify-content-between align-items-center" | ||
> | ||
Name | ||
</div> | ||
</div> | ||
<div | ||
class="w-100" | ||
> | ||
<input | ||
class="os-input w-100 os-pivot-title" | ||
type="text" | ||
/> | ||
</div> | ||
</div> | ||
<div | ||
class="o-section pe-none" | ||
> | ||
<div | ||
class="o-section-title" | ||
> | ||
Range | ||
</div> | ||
<div | ||
class="o-selection" | ||
> | ||
<div | ||
class="o-selection-input d-flex flex-row" | ||
> | ||
<div | ||
class="position-relative w-100" | ||
> | ||
<input | ||
class="o-input mb-2 o-invalid border-danger position-relative" | ||
placeholder="e.g. A1:A2" | ||
spellcheck="false" | ||
style="" | ||
type="text" | ||
/> | ||
<span | ||
class="error-icon text-danger position-absolute d-flex align-items-center" | ||
title="This range is invalid" | ||
> | ||
<div | ||
class="o-icon" | ||
> | ||
<i | ||
class="fa fa-exclamation-circle" | ||
/> | ||
</div> | ||
</span> | ||
</div> | ||
</div> | ||
<div | ||
class="d-flex flex-row w-100 o-selection-input" | ||
> | ||
</div> | ||
</div> | ||
<span | ||
class="text-danger sp_range_error_message" | ||
> | ||
The pivot cannot be created because cell A1 is empty | ||
</span> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
`; |
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