Skip to content

Commit

Permalink
Add TreeColumn
Browse files Browse the repository at this point in the history
  • Loading branch information
ota-meshi committed Sep 6, 2024
1 parent ea1f3aa commit 3d8d08c
Show file tree
Hide file tree
Showing 57 changed files with 2,003 additions and 170 deletions.
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,
}
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
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
4 changes: 3 additions & 1 deletion packages/cheetah-grid-icon-svg-loader/tests/test-utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ function resolve(...names) {

module.exports = {
loadExpect(name) {
return require(path.join(FIXTURES_ROOT, `./expect/${name}`));
const file = path.join(FIXTURES_ROOT, `./expect/${name}`);
if (!fs.existsSync(file)) { return {}; }
return require(file);
},
saveExpect(name, obj) {
const text = `var obj=${JSON.stringify(sortProps(obj), null, ' ')}
Expand Down
Loading

0 comments on commit 3d8d08c

Please sign in to comment.