Skip to content

Commit

Permalink
Add TreeColumn (#426)
Browse files Browse the repository at this point in the history
* Add TreeColumn

* update

* update

* fix
  • Loading branch information
ota-meshi authored Sep 6, 2024
1 parent ea1f3aa commit 8559236
Show file tree
Hide file tree
Showing 78 changed files with 2,444 additions and 225 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ The fastest open-source data table for web.
[![npm](https://img.shields.io/npm/v/cheetah-grid.svg)](https://www.npmjs.com/package/cheetah-grid)

```html
<script src="https://unpkg.com/cheetah-grid@1.14"></script>
<script src="https://unpkg.com/cheetah-grid@1.15"></script>
```

### Downloading Cheetah Grid using npm
Expand All @@ -46,10 +46,10 @@ const cheetahGrid = require("cheetah-grid");

[![npm](https://img.shields.io/npm/v/cheetah-grid.svg)](https://www.npmjs.com/package/cheetah-grid)

[cheetahGrid.es5.min.js](https://unpkg.com/cheetah-grid@1.14/dist/cheetahGrid.es5.min.js)
[cheetahGrid.es5.min.js](https://unpkg.com/cheetah-grid@1.15/dist/cheetahGrid.es5.min.js)

SourceMap
[cheetahGrid.es5.min.js.map](https://unpkg.com/cheetah-grid@1.14/dist/cheetahGrid.es5.min.js.map)
[cheetahGrid.es5.min.js.map](https://unpkg.com/cheetah-grid@1.15/dist/cheetahGrid.es5.min.js.map)

### Downloading Cheetah Grid using GitHub

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "cheetah-grid-manager",
"private": true,
"version": "1.14.0",
"version": "1.15.0",
"description": "Cheetah Grid is a high performance grid engine that works on canvas",
"keywords": [
"spreadsheet",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
},
"editor.codeActionsOnSaveTimeout": 10000,
}
4 changes: 2 additions & 2 deletions packages/cheetah-grid-icon-svg-loader/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/cheetah-grid-icon-svg-loader/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cheetah-grid-icon-svg-loader",
"version": "1.14.0",
"version": "1.15.0",
"description": "Webpack loader that loads the icon module for Cheetah Grid from SVG.",
"main": "lib/index.js",
"files": [
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
var obj={
"ic_add_48px": {
"d": "M38 26H26v12h-4V26H10v-4h12V10h4v12h12v4z",
"width": 48,
"height": 48
}
}
if (typeof window !== 'undefined') {
window['material-design-icons__content_svg_production_ic_add_48px_svg']=obj
} else {
module.exports=obj
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
var obj={
"ic_keyboard_arrow_down_48px": {
"d": "M14.83 16.42L24 25.59l9.17-9.17L36 19.25l-12 12-12-12z",
"width": 48,
"height": 48
}
}
if (typeof window !== 'undefined') {
window['material-design-icons__hardware_svg_production_ic_keyboard_arrow_down_48px_svg']=obj
} else {
module.exports=obj
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
var obj={
"ic_keyboard_arrow_left_48px": {
"d": "M30.83 32.67l-9.17-9.17 9.17-9.17L28 11.5l-12 12 12 12z",
"width": 48,
"height": 48
}
}
if (typeof window !== 'undefined') {
window['material-design-icons__hardware_svg_production_ic_keyboard_arrow_left_48px_svg']=obj
} else {
module.exports=obj
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
var obj={
"ic_keyboard_arrow_right_48px": {
"d": "M17.17 32.92l9.17-9.17-9.17-9.17L20 11.75l12 12-12 12z",
"width": 48,
"height": 48
}
}
if (typeof window !== 'undefined') {
window['material-design-icons__hardware_svg_production_ic_keyboard_arrow_right_48px_svg']=obj
} else {
module.exports=obj
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
var obj={
"ic_keyboard_arrow_up_48px": {
"d": "M14.83 30.83L24 21.66l9.17 9.17L36 28 24 16 12 28z",
"width": 48,
"height": 48
}
}
if (typeof window !== 'undefined') {
window['material-design-icons__hardware_svg_production_ic_keyboard_arrow_up_48px_svg']=obj
} else {
module.exports=obj
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
var obj={
"ic_edit_48px": {
"d": "M6 34.5V42h7.5l22.13-22.13-7.5-7.5L6 34.5zm35.41-20.41c.78-.78.78-2.05 0-2.83l-4.67-4.67c-.78-.78-2.05-.78-2.83 0l-3.66 3.66 7.5 7.5 3.66-3.66z",
"width": 48,
"height": 48
}
}
if (typeof window !== 'undefined') {
window['material-design-icons__image_svg_production_ic_edit_48px_svg']=obj
} else {
module.exports=obj
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
var obj={
"ic_arrow_downward_48px": {
"d": "M40 24l-2.82-2.82L26 32.34V8h-4v24.34L10.84 21.16 8 24l16 16 16-16z",
"width": 48,
"height": 48
}
}
if (typeof window !== 'undefined') {
window['material-design-icons__navigation_svg_production_ic_arrow_downward_48px_svg']=obj
} else {
module.exports=obj
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
var obj={
"ic_arrow_upward_48px": {
"d": "M8 24l2.83 2.83L22 15.66V40h4V15.66l11.17 11.17L40 24 24 8 8 24z",
"width": 48,
"height": 48
}
}
if (typeof window !== 'undefined') {
window['material-design-icons__navigation_svg_production_ic_arrow_upward_48px_svg']=obj
} else {
module.exports=obj
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
var obj={
"ic_chevron_left_48px": {
"d": "M30.83 14.83L28 12 16 24l12 12 2.83-2.83L21.66 24z",
"width": 48,
"height": 48
}
}
if (typeof window !== 'undefined') {
window['material-design-icons__navigation_svg_production_ic_chevron_left_48px_svg']=obj
} else {
module.exports=obj
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
var obj={
"ic_chevron_right_48px": {
"d": "M20 12l-2.83 2.83L26.34 24l-9.17 9.17L20 36l12-12z",
"width": 48,
"height": 48
}
}
if (typeof window !== 'undefined') {
window['material-design-icons__navigation_svg_production_ic_chevron_right_48px_svg']=obj
} else {
module.exports=obj
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
var obj={
"ic_expand_less_48px": {
"d": "M24 16L12 28l2.83 2.83L24 21.66l9.17 9.17L36 28z",
"width": 48,
"height": 48
}
}
if (typeof window !== 'undefined') {
window['material-design-icons__navigation_svg_production_ic_expand_less_48px_svg']=obj
} else {
module.exports=obj
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
var obj={
"ic_expand_more_48px": {
"d": "M33.17 17.17L24 26.34l-9.17-9.17L12 20l12 12 12-12z",
"width": 48,
"height": 48
}
}
if (typeof window !== 'undefined') {
window['material-design-icons__navigation_svg_production_ic_expand_more_48px_svg']=obj
} else {
module.exports=obj
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
var obj={
"ic_star_24px": {
"d": "M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z",
"width": 24,
"height": 24
}
}
if (typeof window !== 'undefined') {
window['material-design-icons__toggle_svg_production_ic_star_24px_svg']=obj
} else {
module.exports=obj
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
var obj={
"ic_star_border_24px": {
"d": "M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z",
"width": 24,
"height": 24
}
}
if (typeof window !== 'undefined') {
window['material-design-icons__toggle_svg_production_ic_star_border_24px_svg']=obj
} else {
module.exports=obj
}

Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
var obj={
"ic_star_half_24px": {
"d": "M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4V6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z",
"width": 24,
"height": 24
}
}
if (typeof window !== 'undefined') {
window['material-design-icons__toggle_svg_production_ic_star_half_24px_svg']=obj
} else {
module.exports=obj
}

Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ <h1>ICONS</h1>
headerRowHeight: 24,
});
const records = [];
const {icons} = cheetahGrid;
const icons = cheetahGrid.getIcons();
Object.keys(icons).forEach((k, i) => {
records.push({
no: i + 1,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ <h1>ICONS</h1>
headerRowHeight: 24,
});
const records = [];
const {icons} = cheetahGrid;
const icons = cheetahGrid.getIcons();
Object.keys(icons).forEach((k, i) => {
records.push({
no: i + 1,
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,8 @@ describe('font svg load', () => {

const result = eval(resultModule);//eslint-disable-line no-eval
const expect = loadExpect(name);
assert.deepStrictEqual(result, expect);

saveExpect(name, result);
assert.deepStrictEqual(result, expect);
});

it('should succeed loading module for fontawesome-webfont.svg', () => {
Expand All @@ -34,8 +33,7 @@ describe('font svg load', () => {

const result = eval(resultModule);//eslint-disable-line no-eval
const expect = loadExpect(name);
assert.deepStrictEqual(result, expect);

saveExpect(name, result);
assert.deepStrictEqual(result, expect);
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,21 @@ const MDI_ROOT = path.join(__dirname, '../../test-fixtures/inputs/node_modules/m
const TEST_TARGETS = [
'./action/svg/production',
'./av/svg/design/ic_playlist_play_48px.svg',
'./toggle/svg/production/ic_star_24px.svg',
'./toggle/svg/production/ic_star_border_24px.svg',
'./toggle/svg/production/ic_star_half_24px.svg',
'./content/svg/production/ic_add_48px.svg',
'./image/svg/production/ic_edit_48px.svg',
'./navigation/svg/production/ic_arrow_downward_48px.svg',
'./navigation/svg/production/ic_arrow_upward_48px.svg',
'./navigation/svg/production/ic_chevron_left_48px.svg',
'./navigation/svg/production/ic_chevron_right_48px.svg',
'./navigation/svg/production/ic_expand_less_48px.svg',
'./navigation/svg/production/ic_expand_more_48px.svg',
'./hardware/svg/production/ic_keyboard_arrow_up_48px.svg',
'./hardware/svg/production/ic_keyboard_arrow_down_48px.svg',
'./hardware/svg/production/ic_keyboard_arrow_left_48px.svg',
'./hardware/svg/production/ic_keyboard_arrow_right_48px.svg',
];

const walkTree = (rootDir, callback) => new Promise((resolve) => {
Expand Down Expand Up @@ -81,11 +96,10 @@ describe('svg load', () => {
return getAllSvgPaths(dirRoot).then((svgs) => {
const result = getAllModule(svgs);
const name = `material-design-icons${target.replace(/\\|\/|\./g, '_')}`;
// saveExpect(name, result);
const expect = loadExpect(name);
assert.deepStrictEqual(result, expect);

const expect = loadExpect(name);
saveExpect(name, result);
assert.deepStrictEqual(result, expect);
});
});
}
Expand Down
Loading

0 comments on commit 8559236

Please sign in to comment.