Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: fixes in the finance portfolio application #2755

Merged
merged 1 commit into from
Dec 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions examples/kendo-react-finance-portfolio/src/app.module.scss
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.main {
min-height: 450px;
background-color: rgba(236, 238, 239, .5);
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
.stock-item {
padding-top: 1rem;
padding-bottom: 1rem;
cursor: pointer;
&:hover {
background-color: #e6e6e6;
}
}

.stock-item-symbol {
line-height: 1;
display: block;
font-size: 14px;
color: #007BFF;
}

.stock-item-name {
line-height: 1;
display: block;

font-size: 11px;
color: #55595C;
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
import React from 'react';
import { dataService } from '../services';
// eslint-disable-next-line @typescript-eslint/no-unused-vars
import $ from 'jquery';
import '@progress/kendo-ui';
import { Tooltip } from '@progress/kendo-react-tooltip';
declare const window: any;

type HeatMapItemType = {
name : string;
Expand All @@ -20,8 +22,8 @@ type TreeDataItem = {
name: string;
value: number;
items: TreeDataItem[];
isParentElement?: boolean;
}
isParentElement?: boolean;
}

export const HeatmapView = () => {
const fetchData = React.useCallback(async () => {
Expand Down Expand Up @@ -65,7 +67,7 @@ export const HeatmapView = () => {
return `<span title=${title}>${props.text}<br/>${props.dataItem.change}%</span>`;
}

$("#heatmap").kendoTreeMap({
window.$("#heatmap").kendoTreeMap({
template: renderItem,
dataSource: new kendo.data.HierarchicalDataSource({
transport: {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,35 @@
.list-item {
color: black;
&:hover {
text-decoration: none;
color: black;
}

&.list-item-selected {
font-weight: bold;
position: relative;
&::after {
content: "";
position: absolute;
width: 100%;
display: block;
height: 0.25rem;
background-color: #007bff;
}
}
}

.ddl-list-item {
svg path {
fill: #007bff;
}

&.k-selected {
svg path {
fill: white;
}
}
}

.stock {
z-index: 1040;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ export class VirtualizedPage extends React.Component<any, any> {
<GridColumn field="freight" filter="numeric" width="200px" />
<GridColumn field="shippedDate" filter="date" format="{0:D}" width="300px" />
<GridColumn field="employeeID" filter="numeric" width="200px" />
<GridColumn locked field="orderID" filterable={false} title="ID" width="90px" />
<GridColumn field="orderID" filterable={false} title="ID" width="90px" />
</Grid>
</ExcelExport>
<GridPDFExport
Expand All @@ -218,7 +218,7 @@ export class VirtualizedPage extends React.Component<any, any> {
<GridColumn field="freight" filter="numeric" width="200px" />
<GridColumn field="shippedDate" filter="date" format="{0:D}" width="300px" />
<GridColumn field="employeeID" filter="numeric" width="200px" />
<GridColumn locked field="orderID" filterable={false} title="ID" width="90px" />
<GridColumn field="orderID" filterable={false} title="ID" width="90px" />
</Grid>}
</GridPDFExport>
</div>
Expand Down
15 changes: 13 additions & 2 deletions examples/kendo-react-finance-portfolio/src/styles/_kendo.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
$kendo-colors: (
primary: #1c7cd5
),

$kendo-h1-font-family: "Ubuntu",
$kendo-h1-font-size: 2.5rem,
$kendo-h1-font-weight: bold,
Expand Down Expand Up @@ -36,6 +35,7 @@
$kendo-grid-padding-y: 0.4rem,
$kendo-grid-alt-bg: transparent,
$kendo-grid-header-bg: #eceeef,
$kendo-grid-footer-bg: #eceeef,
$kendo-grid-header-text: #55595c,
$kendo-grid-header-border: transparent,

Expand All @@ -45,6 +45,17 @@
$kendo-popup-padding-y: 0,
);

:root{
--kendo-font-family: "Roboto", Helvetica, Arial, sans-serif;
}

.k-splitbar {
box-shadow: 5px 5px 5px rgba(0, 0, 0, .2);
}
}

.k-grid-header .k-table-thead {
background-color: #eceeef;
td {
border-color: #eceeef;
}
}
Loading