Skip to content

Commit

Permalink
Merge branch 'main' into update-echart-colors
Browse files Browse the repository at this point in the history
  • Loading branch information
nuke-ellington authored Dec 16, 2024
2 parents 62190bc + e6bbb44 commit d07097e
Show file tree
Hide file tree
Showing 20 changed files with 984 additions and 191 deletions.
5 changes: 5 additions & 0 deletions .changeset/quick-bugs-thank.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@siemens/ix-aggrid": patch
---

Hide border sticky bottom in **ag-grid**.
5 changes: 5 additions & 0 deletions .changeset/real-timers-relate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@siemens/ix': patch
---

Remove _hyperlist_ from the dependencies
4 changes: 4 additions & 0 deletions packages/aggrid/scss/ix-aggrid.scss
Original file line number Diff line number Diff line change
Expand Up @@ -169,4 +169,8 @@
}
}
}

.ag-sticky-bottom {
display: none;
}
}
2 changes: 1 addition & 1 deletion packages/aggrid/tests/basic.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
-->
<html>
<head>
<script src="https://cdn.jsdelivr.net/npm/ag-grid-community/dist/ag-grid-community.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/ag-grid-community@32.1/dist/ag-grid-community.min.js"></script>
<link rel="stylesheet" href="https://unpkg.com/ag-grid-community/styles/ag-grid.css" />
<link rel="stylesheet" href="https://unpkg.com/ag-grid-community/styles/ag-theme-alpine.css" />

Expand Down
2 changes: 1 addition & 1 deletion packages/aggrid/tests/pagination.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
-->
<html>
<head>
<script src="https://cdn.jsdelivr.net/npm/ag-grid-community/dist/ag-grid-community.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/ag-grid-community@32.1/dist/ag-grid-community.min.js"></script>
<link rel="stylesheet" href="https://unpkg.com/ag-grid-community/styles/ag-grid.css" />
<link rel="stylesheet" href="https://unpkg.com/ag-grid-community/styles/ag-theme-alpine.css" />

Expand Down
1 change: 0 additions & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@
"@stencil/core": "~4.17.0",
"@types/luxon": "^3.3.7",
"animejs": "~3.2.1",
"hyperlist": "^1.0.0",
"luxon": "^3.4.4"
},
"devDependencies": {
Expand Down
3 changes: 2 additions & 1 deletion packages/core/src/components/tree-item/tree-item.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@

import { Component, Event, EventEmitter, h, Host, Prop } from '@stencil/core';
import { TreeItemContext } from '../tree/tree-model';
import { iconChevronRight } from '@siemens/ix-icons/icons';

@Component({
tag: 'ix-tree-item',
Expand Down Expand Up @@ -57,7 +58,7 @@ export class TreeItem {
>
{this.hasChildren ? (
<ix-icon
name={'chevron-right'}
name={iconChevronRight}
size="16"
class={{
['icon-toggle-down']: !!this.context?.isExpanded,
Expand Down
11 changes: 7 additions & 4 deletions packages/core/src/components/tree/tree.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import {
Prop,
Watch,
} from '@stencil/core';
import Hyperlist from 'hyperlist';
import { VirtualList, VirtualListConfig } from './../utils/lazy-list';
import { renderDefaultItem } from '../tree-item/default-tree-item';
import {
TreeContext,
Expand Down Expand Up @@ -85,7 +85,7 @@ export class Tree {
*/
@Event() nodeRemoved!: EventEmitter<any>;

private hyperlist: Hyperlist;
private hyperlist: VirtualList;

private toggleListener = new Map<HTMLElement, Function>();
private itemClickListener = new Map<HTMLElement, Function>();
Expand All @@ -97,7 +97,7 @@ export class Tree {
element.style.paddingLeft = item.level + 'rem';
}

private getVirtualizerOptions() {
private getVirtualizerOptions(): VirtualListConfig {
const list = this.buildTreeList(this.model[this.root]);

let setToggleListener = (
Expand All @@ -120,6 +120,8 @@ export class Tree {
};

return {
width: '100%',
height: '100%',
itemHeight: 32,
total: list.length,
generate: (index: number) => {
Expand Down Expand Up @@ -302,6 +304,7 @@ export class Tree {
}

private isListInitialized() {
//@ts-ignore
const itemPositions = this.hyperlist?._itemPositions;

return (
Expand All @@ -326,7 +329,7 @@ export class Tree {

this.hyperlist?.destroy();
const config = this.getVirtualizerOptions();
this.hyperlist = new Hyperlist(this.hostElement, config);
this.hyperlist = new VirtualList(this.hostElement, config);
}

render() {
Expand Down
10 changes: 10 additions & 0 deletions packages/core/src/components/utils/lazy-list/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
/*
* SPDX-FileCopyrightText: 2024 Siemens AG
*
* SPDX-License-Identifier: MIT
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
export type { VirtualListConfig } from './lazy';
export { VirtualList } from './lazy';
Loading

0 comments on commit d07097e

Please sign in to comment.