Skip to content

Commit

Permalink
refactor: rename control-utils to chart-controls (apache#620)
Browse files Browse the repository at this point in the history
  • Loading branch information
ktmud authored and zhaoyongjie committed Nov 26, 2021
1 parent 94579fc commit 261738c
Show file tree
Hide file tree
Showing 74 changed files with 81 additions and 77 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
## @superset-ui/chart-controls

[![Version](https://img.shields.io/npm/v/@superset-ui/chart-controls.svg?style=flat)](https://img.shields.io/npm/v/@superset-ui/chart-controls.svg?style=flat)
[![David (path)](https://img.shields.io/david/apache-superset/superset-ui.svg?path=packages%2Fsuperset-ui-chart-controls&style=flat-square)](https://david-dm.org/apache-superset/superset-ui?path=packages/superset-ui-chart-controls)

Description

#### Example usage

```js
import { xxx } from '@superset-ui/chart-controls';
```

#### API

`fn(args)`

- Do something

### Development

`@data-ui/build-config` is used to manage the build configuration for this package including babel
builds, jest testing, eslint, and prettier.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@superset-ui/control-utils",
"name": "@superset-ui/chart-controls",
"version": "0.13.31",
"description": "Superset UI control-utils",
"sideEffects": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/
import { sections } from '../src';

describe('@superset-ui/control-utils', () => {
describe('@superset-ui/chart-controls', () => {
it('exports sections', () => {
expect(sections).toBeDefined();
expect(sections.datasourceAndVizType).toBeDefined();
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
"@superset-ui/chart-composition": "0.13.31",
"@superset-ui/color": "0.13.29",
"@superset-ui/connection": "0.13.27",
"@superset-ui/control-utils": "0.13.31",
"@superset-ui/chart-controls": "0.13.31",
"@superset-ui/core": "0.13.27",
"@superset-ui/dimension": "0.13.27",
"@superset-ui/number-format": "0.13.27",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ export * from '@superset-ui/chart';
export * from '@superset-ui/chart-composition';
export * from '@superset-ui/color';
export * from '@superset-ui/connection';
export * from '@superset-ui/control-utils';
export * from '@superset-ui/chart-controls';
export * from '@superset-ui/core';
export * from '@superset-ui/dimension';
export * from '@superset-ui/number-format';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ describe('@superset-ui/superset-ui', () => {
it('should export @superset-ui/connection', () => {
expect(SupersetClient).toBeDefined();
});
it('should export @superset-ui/control-utils', () => {
it('should export @superset-ui/chart-controls', () => {
expect(D3_FORMAT_DOCS).toBeDefined();
});
it('should export @superset-ui/core', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"peerDependencies": {
"@superset-ui/chart": "^0.13.0",
"@superset-ui/color": "^0.13.0",
"@superset-ui/control-utils": "^0.13.3",
"@superset-ui/chart-controls": "^0.13.3",
"@superset-ui/number-format": "^0.13.0",
"@superset-ui/style": "^0.13.21",
"@superset-ui/time-format": "^0.13.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {
formatSelectOptions,
D3_TIME_FORMAT_OPTIONS,
D3_FORMAT_DOCS,
} from '@superset-ui/control-utils';
} from '@superset-ui/chart-controls';

export default {
requiresTime: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
"access": "public"
},
"dependencies": {
"@superset-ui/control-utils": "0.13.31",
"@superset-ui/chart-controls": "0.13.31",
"d3": "^3.5.17",
"d3-array": "^2.0.3",
"prop-types": "^15.6.2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/
import { t } from '@superset-ui/translation';
import { D3_FORMAT_OPTIONS, D3_FORMAT_DOCS } from '@superset-ui/control-utils';
import { D3_FORMAT_OPTIONS, D3_FORMAT_DOCS } from '@superset-ui/chart-controls';

export default {
controlPanelSections: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
"peerDependencies": {
"@superset-ui/chart": "^0.13.0",
"@superset-ui/control-utils": "^0.13.12",
"@superset-ui/chart-controls": "^0.13.12",
"@superset-ui/translation": "^0.13.0",
"@superset-ui/validator": "^0.13.3",
"react": "^15 || ^16"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {
ColumnOption,
internalSharedControls,
formatSelectOptionsForRange,
} from '@superset-ui/control-utils';
} from '@superset-ui/chart-controls';

const { columnChoices } = internalSharedControls;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
},
"peerDependencies": {
"@superset-ui/chart": "^0.13.0",
"@superset-ui/control-utils": "^0.13.12",
"@superset-ui/chart-controls": "^0.13.12",
"@superset-ui/translation": "^0.13.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/
import { t } from '@superset-ui/translation';
import { formatSelectOptions } from '@superset-ui/control-utils';
import { formatSelectOptions } from '@superset-ui/chart-controls';

export default {
controlPanelSections: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"peerDependencies": {
"@superset-ui/chart": "^0.13.0",
"@superset-ui/color": "^0.13.0",
"@superset-ui/control-utils": "^0.13.12",
"@superset-ui/chart-controls": "^0.13.12",
"@superset-ui/number-format": "^0.13.0",
"@superset-ui/translation": "^0.13.0",
"@superset-ui/validator": "^0.13.3"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ import {
internalSharedControls,
formatSelectOptionsForRange,
formatSelectOptions,
} from '@superset-ui/control-utils';
} from '@superset-ui/chart-controls';

const { columnChoices } = internalSharedControls;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"peerDependencies": {
"@superset-ui/chart": "^0.13.0",
"@superset-ui/color": "^0.13.0",
"@superset-ui/control-utils": "^0.13.12",
"@superset-ui/chart-controls": "^0.13.12",
"@superset-ui/style": "^0.13.26",
"@superset-ui/translation": "^0.13.0",
"@superset-ui/validator": "^0.13.3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/
import { t } from '@superset-ui/translation';
import { validateNonEmpty } from '@superset-ui/validator';
import { formatSelectOptions, internalSharedControls } from '@superset-ui/control-utils';
import { formatSelectOptions, internalSharedControls } from '@superset-ui/chart-controls';

const { columnChoices } = internalSharedControls;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
},
"peerDependencies": {
"@superset-ui/chart": "^0.13.0",
"@superset-ui/control-utils": "^0.13.12",
"@superset-ui/chart-controls": "^0.13.12",
"@superset-ui/translation": "^0.13.0",
"react": "^15 || ^16"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/
import { t } from '@superset-ui/translation';
import { formatSelectOptions } from '@superset-ui/control-utils';
import { formatSelectOptions } from '@superset-ui/chart-controls';

export default {
controlPanelSections: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
},
"peerDependencies": {
"@superset-ui/chart": "^0.13.0",
"@superset-ui/control-utils": "^0.13.12",
"@superset-ui/chart-controls": "^0.13.12",
"@superset-ui/translation": "^0.13.0",
"react": "^15 || ^16"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/
import { t } from '@superset-ui/translation';
import { formatSelectOptions, internalSharedControls } from '@superset-ui/control-utils';
import { formatSelectOptions, internalSharedControls } from '@superset-ui/chart-controls';

const { columnChoices } = internalSharedControls;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
},
"peerDependencies": {
"@superset-ui/chart": "^0.13.0",
"@superset-ui/control-utils": "^0.13.9",
"@superset-ui/chart-controls": "^0.13.9",
"@superset-ui/style": "^0.13.26",
"@superset-ui/translation": "^0.13.0",
"@superset-ui/validator": "^0.13.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/
import { t } from '@superset-ui/translation';
import { validateNonEmpty } from '@superset-ui/validator';
import { formatSelectOptions } from '@superset-ui/control-utils';
import { formatSelectOptions } from '@superset-ui/chart-controls';

export default {
controlPanelSections: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"peerDependencies": {
"@superset-ui/chart": "0.13.3",
"@superset-ui/color": "^0.13.3",
"@superset-ui/control-utils": "^0.13.9",
"@superset-ui/chart-controls": "^0.13.9",
"@superset-ui/number-format": "^0.13.3",
"@superset-ui/time-format": "^0.13.3",
"@superset-ui/translation": "^0.13.3",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
import React from 'react';
import PropTypes from 'prop-types';

import { InfoTooltipWithTrigger } from '@superset-ui/control-utils';
import { InfoTooltipWithTrigger } from '@superset-ui/chart-controls';

const propTypes = {
option: PropTypes.object.isRequired,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {
D3_TIME_FORMAT_OPTIONS,
D3_FORMAT_DOCS,
D3_FORMAT_OPTIONS,
} from '@superset-ui/control-utils';
} from '@superset-ui/chart-controls';
import OptionDescription from './OptionDescription';

export default {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import React from 'react';
import { shallow } from 'enzyme';

import { InfoTooltipWithTrigger } from '@superset-ui/control-utils';
import { InfoTooltipWithTrigger } from '@superset-ui/chart-controls';
import OptionDescription from '../src/OptionDescription';

const defaultProps = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
},
"peerDependencies": {
"@superset-ui/chart": "^0.13.0",
"@superset-ui/control-utils": "^0.13.9",
"@superset-ui/chart-controls": "^0.13.9",
"@superset-ui/number-format": "^0.13.0",
"@superset-ui/translation": "^0.13.0"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,11 @@
* under the License.
*/
import { t } from '@superset-ui/translation';
import { D3_FORMAT_OPTIONS, D3_FORMAT_DOCS, formatSelectOptions } from '@superset-ui/control-utils';
import {
D3_FORMAT_OPTIONS,
D3_FORMAT_DOCS,
formatSelectOptions,
} from '@superset-ui/chart-controls';

export default {
controlPanelSections: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"peerDependencies": {
"@superset-ui/chart": "^0.13.0",
"@superset-ui/color": "^0.13.0",
"@superset-ui/control-utils": "^0.13.9",
"@superset-ui/chart-controls": "^0.13.9",
"@superset-ui/number-format": "^0.13.0",
"@superset-ui/time-format": "^0.13.0",
"@superset-ui/translation": "^0.13.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import {
D3_FORMAT_OPTIONS,
D3_FORMAT_DOCS,
formatSelectOptions,
} from '@superset-ui/control-utils';
} from '@superset-ui/chart-controls';

export default {
requiresTime: true,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
"peerDependencies": {
"@superset-ui/chart": "^0.13.0",
"@superset-ui/color": "^0.13.0",
"@superset-ui/control-utils": "^0.13.0",
"@superset-ui/chart-controls": "^0.13.0",
"@superset-ui/number-format": "^0.13.0",
"@superset-ui/translation": "^0.13.0"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
},
"peerDependencies": {
"@superset-ui/chart": "^0.13.0",
"@superset-ui/control-utils": "^0.13.12",
"@superset-ui/chart-controls": "^0.13.12",
"@superset-ui/number-format": "^0.13.0",
"@superset-ui/query": "^0.13.0",
"@superset-ui/time-format": "^0.13.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ import {
D3_TIME_FORMAT_OPTIONS,
ColumnOption,
ControlPanelConfig,
} from '@superset-ui/control-utils';
} from '@superset-ui/chart-controls';
import { validateNonEmpty } from '@superset-ui/validator';

const config: ControlPanelConfig = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"peerDependencies": {
"@superset-ui/chart": "^0.13.0",
"@superset-ui/color": "^0.13.0",
"@superset-ui/control-utils": "^0.13.9",
"@superset-ui/chart-controls": "^0.13.9",
"@superset-ui/number-format": "^0.13.0",
"@superset-ui/translation": "^0.13.0"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/
import { t } from '@superset-ui/translation';
import { D3_FORMAT_OPTIONS, D3_FORMAT_DOCS } from '@superset-ui/control-utils';
import { D3_FORMAT_OPTIONS, D3_FORMAT_DOCS } from '@superset-ui/chart-controls';

export default {
controlPanelSections: [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
},
"peerDependencies": {
"@superset-ui/chart": "^0.13.0",
"@superset-ui/control-utils": "^0.13.9",
"@superset-ui/chart-controls": "^0.13.9",
"@superset-ui/number-format": "^0.13.0",
"@superset-ui/translation": "^0.13.0"
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
* under the License.
*/
import { t } from '@superset-ui/translation';
import { formatSelectOptions } from '@superset-ui/control-utils';
import { formatSelectOptions } from '@superset-ui/chart-controls';

export default {
controlPanelSections: [
Expand Down
Loading

0 comments on commit 261738c

Please sign in to comment.