-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: table refactoring design for full data on cell
- Loading branch information
1 parent
35a2f82
commit d237a00
Showing
18 changed files
with
303 additions
and
117 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
11 changes: 5 additions & 6 deletions
11
src/app/components/custom-ag-grid/cell-type-detector/cell-type-detector.component.html
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 |
---|---|---|
@@ -1,17 +1,16 @@ | ||
<div [style.text-align]="isNumber && 'right'"> | ||
<div class="cell" [style.text-align]="isNumber && 'right'" (click)="onClick()"> | ||
<span | ||
#cell | ||
[style.display]="isNULL && 'none'" | ||
[style.color]="isNumber && 'purple'" | ||
[style.height]="rowHeight+8+'px'" | ||
[style.whiteSpace]="isMultiLine ? 'pre-wrap' : ''" | ||
[style.overflow]="'auto'" | ||
[style.height]="30 + 'px'" | ||
[style.display]="'block'" | ||
[style.lineHeight]="defaultRowHeight+'px'" | ||
[style.lineHeight]="30 + 'px'" | ||
> | ||
{{ value }} | ||
</span> | ||
|
||
<span style="color: grey;" [style.display]="!isNULL && 'none'"> | ||
<span style="color: grey" [style.display]="!isNULL && 'none'"> | ||
<i>NULL</i> | ||
</span> | ||
</div> |
15 changes: 15 additions & 0 deletions
15
src/app/components/custom-ag-grid/cell-type-detector/cell-type-detector.component.scss
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,15 @@ | ||
.cell { | ||
|
||
// .full-text-popup { | ||
// position: absolute; | ||
// // display: none; | ||
// padding: 1rem; | ||
// background-color: #fff; | ||
// border: 1px solid #ccc; | ||
// box-shadow: 0 0 3px rgba(0, 0, 0, 0.2); | ||
// z-index: 99999999; | ||
// } | ||
// &:hover .full-text-popup { | ||
// display: block; | ||
// } | ||
} |
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
4 changes: 2 additions & 2 deletions
4
src/app/components/custom-ag-grid/custom-ag-grid.component.html
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 |
---|---|---|
|
@@ -6,4 +6,4 @@ | |
} | ||
.paginator[hidden] { | ||
display: none; | ||
} | ||
} |
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,7 @@ | ||
<div *ngIf="text"> | ||
<div class="back-place" (click)="onHide()"></div> | ||
<div class="full-text-popup" [style.top.px]="top" [style.left.px]="left" #textPopup> | ||
<span *ngIf="!isJson">{{ text }}</span> | ||
<ngx-json-viewer *ngIf="isJson" [json]="getJSON()"></ngx-json-viewer> | ||
</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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
.back-place { | ||
position: absolute; | ||
// display: none; | ||
top: 0; | ||
left: 0; | ||
bottom: 0; | ||
right: 0; | ||
width: 100%; | ||
height: 100%; | ||
background-color: rgba(255, 255, 255, 0.2); | ||
z-index: 99999999; | ||
} | ||
.full-text-popup { | ||
position: absolute; | ||
// display: none; | ||
top: 0; | ||
left: 0; | ||
padding: 6px 4px; | ||
background-color: #fff; | ||
border: 1px solid #ccc; | ||
box-shadow: 0 0 3px rgba(0, 0, 0, 0.2); | ||
white-space: pre; | ||
z-index: 99999999; | ||
max-width: 400px; | ||
max-height: 400px; | ||
overflow: auto; | ||
transition: top 0.3s, left 0.3s; | ||
} |
Oops, something went wrong.