From 34df11a61c79e8bbd1892825866714345f88748a Mon Sep 17 00:00:00 2001 From: David Aaron Suddjian <1858430+suddjian@users.noreply.github.com> Date: Thu, 14 May 2020 17:06:49 -0700 Subject: [PATCH] upgrade migrated plugins, remove controlPanel configs (#9774) * remove migrated plugins * remove chord stuff * upgrade plugin packages * update package lock --- superset-frontend/package-lock.json | 258 +++++++-------- superset-frontend/package.json | 16 +- .../src/explore/controlPanels/Area.js | 101 ------ .../src/explore/controlPanels/Bar.js | 87 ----- .../src/explore/controlPanels/BoxPlot.js | 74 ----- .../src/explore/controlPanels/Bubble.js | 124 ------- .../src/explore/controlPanels/Bullet.js | 96 ------ .../src/explore/controlPanels/Chord.js | 62 ---- .../src/explore/controlPanels/Compare.js | 73 ----- .../src/explore/controlPanels/DistBar.js | 99 ------ .../src/explore/controlPanels/DualLine.js | 66 ---- .../src/explore/controlPanels/Line.js | 101 ------ .../src/explore/controlPanels/LineMulti.js | 158 --------- .../src/explore/controlPanels/Pie.js | 122 ------- .../src/explore/controlPanels/PivotTable.js | 124 ------- .../src/explore/controlPanels/Rose.js | 93 ------ .../src/explore/controlPanels/Sankey.js | 45 --- .../src/explore/controlPanels/Shared_NVD3.js | 309 ------------------ .../src/explore/controlPanels/TimePivot.js | 125 ------- .../src/explore/controlPanels/Treemap.js | 74 ----- .../src/explore/controlPanels/WorldMap.js | 107 ------ superset-frontend/src/setup/setupPlugins.ts | 36 -- 22 files changed, 137 insertions(+), 2213 deletions(-) delete mode 100644 superset-frontend/src/explore/controlPanels/Area.js delete mode 100644 superset-frontend/src/explore/controlPanels/Bar.js delete mode 100644 superset-frontend/src/explore/controlPanels/BoxPlot.js delete mode 100644 superset-frontend/src/explore/controlPanels/Bubble.js delete mode 100644 superset-frontend/src/explore/controlPanels/Bullet.js delete mode 100644 superset-frontend/src/explore/controlPanels/Chord.js delete mode 100644 superset-frontend/src/explore/controlPanels/Compare.js delete mode 100644 superset-frontend/src/explore/controlPanels/DistBar.js delete mode 100644 superset-frontend/src/explore/controlPanels/DualLine.js delete mode 100644 superset-frontend/src/explore/controlPanels/Line.js delete mode 100644 superset-frontend/src/explore/controlPanels/LineMulti.js delete mode 100644 superset-frontend/src/explore/controlPanels/Pie.js delete mode 100644 superset-frontend/src/explore/controlPanels/PivotTable.js delete mode 100644 superset-frontend/src/explore/controlPanels/Rose.js delete mode 100644 superset-frontend/src/explore/controlPanels/Sankey.js delete mode 100644 superset-frontend/src/explore/controlPanels/Shared_NVD3.js delete mode 100644 superset-frontend/src/explore/controlPanels/TimePivot.js delete mode 100644 superset-frontend/src/explore/controlPanels/Treemap.js delete mode 100644 superset-frontend/src/explore/controlPanels/WorldMap.js diff --git a/superset-frontend/package-lock.json b/superset-frontend/package-lock.json index 610c802710..84999ca432 100644 --- a/superset-frontend/package-lock.json +++ b/superset-frontend/package-lock.json @@ -6612,9 +6612,9 @@ } }, "@superset-ui/legacy-plugin-chart-chord": { - "version": "0.13.3", - "resolved": "https://registry.npmjs.org/@superset-ui/legacy-plugin-chart-chord/-/legacy-plugin-chart-chord-0.13.3.tgz", - "integrity": "sha512-mpnYLNZMp62t52ai1tH54MeTDcDLxEaiBcuTePcwJQ3Cf1FXgB8N017MjxdqZ9GdwIn9uAV8Vtz9jzSUPztFsQ==", + "version": "0.13.13", + "resolved": "https://registry.npmjs.org/@superset-ui/legacy-plugin-chart-chord/-/legacy-plugin-chart-chord-0.13.13.tgz", + "integrity": "sha512-ve+8/g7gS4jCwj8JkmVQYut+UuO1ksqTCkqHzA29i8WFYyKqKKIkrBWwzrYCl0fo1fQ/VeXtyacJNo5pdDIIUw==", "requires": { "d3": "^3.5.17", "prop-types": "^15.6.2" @@ -6830,9 +6830,9 @@ } }, "@superset-ui/legacy-plugin-chart-pivot-table": { - "version": "0.13.3", - "resolved": "https://registry.npmjs.org/@superset-ui/legacy-plugin-chart-pivot-table/-/legacy-plugin-chart-pivot-table-0.13.3.tgz", - "integrity": "sha512-cQPRK+YqKpxRlaDE8N/upWtzMwbYxZ43UKUVvKs5vHpfbS5UJO9hTQkdYGCMx+woz0kktpAemM1jBjsyUMurtg==", + "version": "0.13.10", + "resolved": "https://registry.npmjs.org/@superset-ui/legacy-plugin-chart-pivot-table/-/legacy-plugin-chart-pivot-table-0.13.10.tgz", + "integrity": "sha512-0cN1QZibOnD/xO+3jbJgkxhAGWsjttDhAUPJ6SwNE0sHSHqFBD+TaftBWHSwGQ3cLtCRT1aZKcXi67hW4dq+xA==", "requires": { "d3": "^3.5.17", "datatables.net-bs": "^1.10.15", @@ -6840,9 +6840,9 @@ } }, "@superset-ui/legacy-plugin-chart-rose": { - "version": "0.13.5", - "resolved": "https://registry.npmjs.org/@superset-ui/legacy-plugin-chart-rose/-/legacy-plugin-chart-rose-0.13.5.tgz", - "integrity": "sha512-fRxJnbZ60wYBVazlZMOP36ACS1eNxtGrAXM3VxQ458fMajTiLJ/HVBUB4dCDu2qWwBIa3Wgn4n1XYSD+D+byMQ==", + "version": "0.13.10", + "resolved": "https://registry.npmjs.org/@superset-ui/legacy-plugin-chart-rose/-/legacy-plugin-chart-rose-0.13.10.tgz", + "integrity": "sha512-Yb6Wjm/sUVP3yIu/3mjB6NyplvaBLvaXSuU96AsM5optiyjiTW0MPhH9XJWmaAE6SakdzfyqxBZN0YtG6ohb6g==", "requires": { "d3": "^3.5.17", "nvd3": "1.8.6", @@ -6850,9 +6850,9 @@ } }, "@superset-ui/legacy-plugin-chart-sankey": { - "version": "0.13.3", - "resolved": "https://registry.npmjs.org/@superset-ui/legacy-plugin-chart-sankey/-/legacy-plugin-chart-sankey-0.13.3.tgz", - "integrity": "sha512-II2GrYN3o9Ic5R2X3ajzsn3vbiw7e0ZHui6G5fGWudvgeh8afsJ7fWa4LyBnk4ogHT9K2JyrQbPRtvkze3aRAg==", + "version": "0.13.10", + "resolved": "https://registry.npmjs.org/@superset-ui/legacy-plugin-chart-sankey/-/legacy-plugin-chart-sankey-0.13.10.tgz", + "integrity": "sha512-SF58t2Cx3H/xYp0PPKsHaIa1HOVNAlINmVmrQ9umKQM1URDVDRfbyPY/wW6P/8KqNPFle88uYNdzMJaj1fePcA==", "requires": { "d3": "^3.5.17", "d3-sankey": "^0.4.2", @@ -6890,9 +6890,9 @@ } }, "@superset-ui/legacy-plugin-chart-treemap": { - "version": "0.13.3", - "resolved": "https://registry.npmjs.org/@superset-ui/legacy-plugin-chart-treemap/-/legacy-plugin-chart-treemap-0.13.3.tgz", - "integrity": "sha512-qE+QW7j7SuQARWM69eLlr2eblZsmpKfHvY+Ol8aHHRmX/dgMXzKV7wL7jNVVhSVlOb1t3cmDhZzssgs5zlo+Uw==", + "version": "0.13.10", + "resolved": "https://registry.npmjs.org/@superset-ui/legacy-plugin-chart-treemap/-/legacy-plugin-chart-treemap-0.13.10.tgz", + "integrity": "sha512-eqzuUJQvmSO6gi0pBbhop2yoEveEIv8oBXMvl4o+urTffitpQ6+c8qOgpAwdbWqVGNScnMtH042yVshTxREUMw==", "requires": { "d3-hierarchy": "^1.1.8", "d3-selection": "^1.4.0", @@ -6900,9 +6900,9 @@ } }, "@superset-ui/legacy-plugin-chart-world-map": { - "version": "0.13.6", - "resolved": "https://registry.npmjs.org/@superset-ui/legacy-plugin-chart-world-map/-/legacy-plugin-chart-world-map-0.13.6.tgz", - "integrity": "sha512-Ddpik0FC5Iqe4wkJfbyjFPZJ1RoVw3PPhL00h4kEP+lWcdqBhl571vCNPnPLZtqwv/9x0H/xQ8B6w8/1Mb4zPg==", + "version": "0.13.10", + "resolved": "https://registry.npmjs.org/@superset-ui/legacy-plugin-chart-world-map/-/legacy-plugin-chart-world-map-0.13.10.tgz", + "integrity": "sha512-xidQbvRnKP6vRFlZuIJ0OilAh9xZPTWz7WkyMDSjoMY4S+xsR+uARMOkRlRUuek5fGegjT5tg42mR37Vw6kKbg==", "requires": { "d3": "^3.5.17", "datamaps": "^0.5.8", @@ -6947,9 +6947,9 @@ } }, "@superset-ui/legacy-preset-chart-nvd3": { - "version": "0.13.9", - "resolved": "https://registry.npmjs.org/@superset-ui/legacy-preset-chart-nvd3/-/legacy-preset-chart-nvd3-0.13.9.tgz", - "integrity": "sha512-u116cQn+yYXRRcV+UpUEG7pItW2RNykpwhxNq7E/YYQwpCAqquytP70di135OEEx+8Sx6fR17abIQGnmaAS8Fw==", + "version": "0.13.13", + "resolved": "https://registry.npmjs.org/@superset-ui/legacy-preset-chart-nvd3/-/legacy-preset-chart-nvd3-0.13.13.tgz", + "integrity": "sha512-Pbn76bLmTtnHyFjyEeAlrq/mJMNTeGx72fJ7fWfCsW4vmftHhiIabbc/n3tA5QW3ERAGeHbgVvCwHVFGL26JWQ==", "requires": { "@data-ui/xy-chart": "^0.0.84", "d3": "^3.5.17", @@ -7002,15 +7002,15 @@ } }, "@superset-ui/preset-chart-xy": { - "version": "0.13.5", - "resolved": "https://registry.npmjs.org/@superset-ui/preset-chart-xy/-/preset-chart-xy-0.13.5.tgz", - "integrity": "sha512-4Zg+hRbBNhj2P8U2rotZPIxTOCi/ddjbqa53LrsclQXlFHcdgxuuu5ziVBXcmwMT90foxXU81hN4a9rpSLoDyQ==", + "version": "0.13.11", + "resolved": "https://registry.npmjs.org/@superset-ui/preset-chart-xy/-/preset-chart-xy-0.13.11.tgz", + "integrity": "sha512-VgRb1DRWhRFg67Y5I6y3oo/I2+QtzR8hAC0m2ZWqOLiMsoItDUr4jwTnxpiHywg3eYBviU4q5FpI5j1kCutu8w==", "requires": { "@data-ui/theme": "^0.0.84", "@data-ui/xy-chart": "^0.0.84", - "@vx/axis": "^0.0.195", - "@vx/legend": "^0.0.195", - "@vx/scale": "^0.0.195", + "@vx/axis": "^0.0.196", + "@vx/legend": "^0.0.196", + "@vx/scale": "^0.0.196", "csstype": "^2.6.3", "encodable": "^0.3.4", "lodash": "^4.17.11", @@ -7018,33 +7018,33 @@ }, "dependencies": { "@vx/axis": { - "version": "0.0.195", - "resolved": "https://registry.npmjs.org/@vx/axis/-/axis-0.0.195.tgz", - "integrity": "sha512-oGbZ83tOfefJRkxQW8WGMmvt48Y7O3VzrWPC0mG+2xcfGzg5m04H6w7GvcqfEkOtgvyAXEDhiKJ3i6hH6QixsA==", + "version": "0.0.196", + "resolved": "https://registry.npmjs.org/@vx/axis/-/axis-0.0.196.tgz", + "integrity": "sha512-AtVjoDXCmecKRp671ATV9Qky/MpQY1pV/O1VWULxhq5dujKXWPj0GtnuRR7I7VgB0XCoKpEh12gVTi7dUq2FhQ==", "requires": { "@types/classnames": "^2.2.9", "@types/react": "*", - "@vx/group": "0.0.195", - "@vx/point": "0.0.195", - "@vx/shape": "0.0.195", - "@vx/text": "0.0.195", + "@vx/group": "0.0.196", + "@vx/point": "0.0.196", + "@vx/shape": "0.0.196", + "@vx/text": "0.0.196", "classnames": "^2.2.5", "prop-types": "^15.6.0" } }, "@vx/curve": { - "version": "0.0.195", - "resolved": "https://registry.npmjs.org/@vx/curve/-/curve-0.0.195.tgz", - "integrity": "sha512-fQXvd1530ou/K5v6fzH/RWy8HjXCKKScmtk9DfSdp/wkhm5u+1jkoe6r53PLAdJhUnMI6U8OsiVlaLF8nADuMw==", + "version": "0.0.196", + "resolved": "https://registry.npmjs.org/@vx/curve/-/curve-0.0.196.tgz", + "integrity": "sha512-uGucJuuAOa0ezrSTqQE8BHkyNPAwGV1bNB8BP1V5Ln1GA7o0LBkqwHOdzShkFzsVoeDadRRGy2mNga6gHDGh8A==", "requires": { "@types/d3-shape": "^1.3.1", "d3-shape": "^1.0.6" } }, "@vx/group": { - "version": "0.0.195", - "resolved": "https://registry.npmjs.org/@vx/group/-/group-0.0.195.tgz", - "integrity": "sha512-XzbCIb2dVR3b51gbiG+gfc8J/H7IaepQ7mQEOKKXnb4gP66kYU/Rtr7WTZzLD3uwsBDXjJaa2y16arnMmhUlNQ==", + "version": "0.0.196", + "resolved": "https://registry.npmjs.org/@vx/group/-/group-0.0.196.tgz", + "integrity": "sha512-neWYucGoyrWloEali12yEn//5pRVwSBtKpuzKlQ43yYTav8OLa869DtCSVeRlDG8TIcPvg9YWfWKKhGWKXRCtg==", "requires": { "@types/classnames": "^2.2.9", "@types/react": "*", @@ -7053,43 +7053,43 @@ } }, "@vx/legend": { - "version": "0.0.195", - "resolved": "https://registry.npmjs.org/@vx/legend/-/legend-0.0.195.tgz", - "integrity": "sha512-EduXqrgU+JlJAQlA723nXsAvT81EAEscw3cl3/E4m4d8LCHnudLIX3AMG0AD9gxY/4pJclkYFU9MQP3TfoTVag==", + "version": "0.0.196", + "resolved": "https://registry.npmjs.org/@vx/legend/-/legend-0.0.196.tgz", + "integrity": "sha512-VTXluzTIFqZEFSM46OSV8DcOWLmGhfe9ILt6ghkMg7Z1yG34qE8S0KjGByqn6isQgHdlrg3VbF7NGd3NJA6HkA==", "requires": { "@types/classnames": "^2.2.9", "@types/d3-scale": "^2.1.1", "@types/react": "*", - "@vx/group": "0.0.195", + "@vx/group": "0.0.196", "classnames": "^2.2.5", "prop-types": "^15.5.10" } }, "@vx/point": { - "version": "0.0.195", - "resolved": "https://registry.npmjs.org/@vx/point/-/point-0.0.195.tgz", - "integrity": "sha512-2m16lfs4v8BwjWMhGNDC4lBBOwaimRL4BapFTS1UQWYSV12y0KlsJGD17fPdR6X9RzYWJTnOL/yaQuGCBa9AdQ==" + "version": "0.0.196", + "resolved": "https://registry.npmjs.org/@vx/point/-/point-0.0.196.tgz", + "integrity": "sha512-dya1cwMwqQtRP+oQwC5x0N2bCiKENGqDd6Y4IuAKwkWMvxpjOAPoOlglZ9QKLDPzftUqLFxrjrsT5RlHTxyKnw==" }, "@vx/scale": { - "version": "0.0.195", - "resolved": "https://registry.npmjs.org/@vx/scale/-/scale-0.0.195.tgz", - "integrity": "sha512-aZ2N+YVB6k9um7jzOQY9h/BaV/5vTA8DeuWjqMmeuJCTkX3NzJqu+/oWQRwOcMr/07rAPLf/0YUVEGE50OTEFQ==", + "version": "0.0.196", + "resolved": "https://registry.npmjs.org/@vx/scale/-/scale-0.0.196.tgz", + "integrity": "sha512-s3lVbwEni0F9AGACaJG3m071uXVryoOgogiU6+yXv1O1gUoZMMm6AjzCndcz9jq1sCFDNcIrxyf5LomOA2tQaQ==", "requires": { "@types/d3-scale": "^2.1.1", "d3-scale": "^2.2.2" } }, "@vx/shape": { - "version": "0.0.195", - "resolved": "https://registry.npmjs.org/@vx/shape/-/shape-0.0.195.tgz", - "integrity": "sha512-14I1E0t25hWx4/NCVj6cggm7ewD5a5UDMndXmcpUkV/wx/4SYkXhQ7uDdbAuYNcb/dh0wsFh8vmqmMJxm7DA/w==", + "version": "0.0.196", + "resolved": "https://registry.npmjs.org/@vx/shape/-/shape-0.0.196.tgz", + "integrity": "sha512-09s4yv0IKmUrB/z/bRLW936DzbhbsxExHv0ocowh2Zv3zgObAaeyf0MkkLyr1nDTqKDCZlfwOEM+1moOyBFQBA==", "requires": { "@types/classnames": "^2.2.9", "@types/d3-path": "^1.0.8", "@types/d3-shape": "^1.3.1", "@types/react": "*", - "@vx/curve": "0.0.195", - "@vx/group": "0.0.195", + "@vx/curve": "0.0.196", + "@vx/group": "0.0.196", "classnames": "^2.2.5", "d3-path": "^1.0.5", "d3-shape": "^1.2.0", @@ -7097,9 +7097,9 @@ } }, "@vx/text": { - "version": "0.0.195", - "resolved": "https://registry.npmjs.org/@vx/text/-/text-0.0.195.tgz", - "integrity": "sha512-yp/d9r3JKMD3sz+f5n/RZfZRPre2wOdiz45JiDQNM3v/thnEjeRZzQ2vDi5j0h2H5/TjTCARj7iCD9ON6vJ49Q==", + "version": "0.0.196", + "resolved": "https://registry.npmjs.org/@vx/text/-/text-0.0.196.tgz", + "integrity": "sha512-KhhOtQyzqcZvO/cgYdMrsLLf0LYFT0u1cqJ4j8RVD8JcmTrhHmzFvL9lE6OXADroZxTSOFY3mNIbAPlshIabpw==", "requires": { "@types/classnames": "^2.2.9", "@types/lodash": "^4.14.146", @@ -10406,7 +10406,7 @@ }, "debug": { "version": "4.1.1", - "resolved": "", + "resolved": false, "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", "dev": true, "optional": true, @@ -10461,7 +10461,7 @@ }, "glob": { "version": "7.1.3", - "resolved": "", + "resolved": false, "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==", "dev": true, "optional": true, @@ -10493,7 +10493,7 @@ }, "ignore-walk": { "version": "3.0.1", - "resolved": "", + "resolved": false, "integrity": "sha512-DTVlMx3IYPe0/JJcYP7Gxg7ttZZu3IInhuEhbchuqneY9wWe5Ojy2mXLBaQFUQmo0AW2r3qG7m1mg86js+gnlQ==", "dev": true, "optional": true, @@ -10514,7 +10514,7 @@ }, "inherits": { "version": "2.0.3", - "resolved": "", + "resolved": false, "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", "dev": true, "optional": true @@ -10562,14 +10562,14 @@ }, "ms": { "version": "2.1.1", - "resolved": "", + "resolved": false, "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==", "dev": true, "optional": true }, "needle": { "version": "2.3.0", - "resolved": "", + "resolved": false, "integrity": "sha512-QBZu7aAFR0522EyaXZM0FZ9GLpq6lvQ3uq8gteiDUp7wKdy0lSd2hPlgFwVuW1CBkfEs9PfDQsQzZghLs/psdg==", "dev": true, "optional": true, @@ -10581,7 +10581,7 @@ }, "node-pre-gyp": { "version": "0.12.0", - "resolved": "", + "resolved": false, "integrity": "sha512-4KghwV8vH5k+g2ylT+sLTjy5wmUOb9vPhnM8NHvRf9dHmnW/CndrFXy2aRPaPST6dugXSdHXfeaHQm77PIz/1A==", "dev": true, "optional": true, @@ -10600,7 +10600,7 @@ }, "nopt": { "version": "4.0.1", - "resolved": "", + "resolved": false, "integrity": "sha1-0NRoWv1UFRk8jHUFYC0NF81kR00=", "dev": true, "optional": true, @@ -10611,14 +10611,14 @@ }, "npm-bundled": { "version": "1.0.6", - "resolved": "", + "resolved": false, "integrity": "sha512-8/JCaftHwbd//k6y2rEWp6k1wxVfpFzB6t1p825+cUb7Ym2XQfhwIC5KwhrvzZRJu+LtDE585zVaS32+CGtf0g==", "dev": true, "optional": true }, "npm-packlist": { "version": "1.4.1", - "resolved": "", + "resolved": false, "integrity": "sha512-+TcdO7HJJ8peiiYhvPxsEDhF3PJFGUGRcFsGve3vxvxdcpO2Z4Z7rkosRM0kWj6LfbK/P0gu3dzk5RU1ffvFcw==", "dev": true, "optional": true, @@ -10698,7 +10698,7 @@ }, "process-nextick-args": { "version": "2.0.0", - "resolved": "", + "resolved": false, "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==", "dev": true, "optional": true @@ -10718,7 +10718,7 @@ }, "readable-stream": { "version": "2.3.6", - "resolved": "", + "resolved": false, "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", "dev": true, "optional": true, @@ -10734,7 +10734,7 @@ }, "rimraf": { "version": "2.6.3", - "resolved": "", + "resolved": false, "integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==", "dev": true, "optional": true, @@ -10765,7 +10765,7 @@ }, "semver": { "version": "5.7.0", - "resolved": "", + "resolved": false, "integrity": "sha512-Ya52jSX2u7QKghxeoFGpLwCtGlt7j0oY9DYb5apt9nPlJ42ID+ulTXESnt/qAQcoSERyZ5sl3LDIOw0nAn/5DA==", "dev": true, "optional": true @@ -14651,28 +14651,28 @@ "dependencies": { "abbrev": { "version": "1.1.1", - "resolved": "", + "resolved": false, "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", "dev": true, "optional": true }, "ansi-regex": { "version": "2.1.1", - "resolved": "", + "resolved": false, "integrity": "sha1-w7M6te42DYbg5ijwRorn7yfWVN8=", "dev": true, "optional": true }, "aproba": { "version": "1.2.0", - "resolved": "", + "resolved": false, "integrity": "sha512-Y9J6ZjXtoYh8RnXVCMOU/ttDmk1aBjunq9vO0ta5x85WDQiQfUF9sIPBITdbiiIVcBo03Hi3jMxigBtsddlXRw==", "dev": true, "optional": true }, "are-we-there-yet": { "version": "1.1.5", - "resolved": "", + "resolved": false, "integrity": "sha512-5hYdAkZlcG8tOLujVDTgCT+uPX0VnpAH28gWsLfzpXYm7wP6mp5Q/gYyR7YQ0cKVJcXJnl3j2kpBan13PtQf6w==", "dev": true, "optional": true, @@ -14683,14 +14683,14 @@ }, "balanced-match": { "version": "1.0.0", - "resolved": "", + "resolved": false, "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", "dev": true, "optional": true }, "brace-expansion": { "version": "1.1.11", - "resolved": "", + "resolved": false, "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", "dev": true, "optional": true, @@ -14701,35 +14701,35 @@ }, "code-point-at": { "version": "1.1.0", - "resolved": "", + "resolved": false, "integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=", "dev": true, "optional": true }, "concat-map": { "version": "0.0.1", - "resolved": "", + "resolved": false, "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", "dev": true, "optional": true }, "console-control-strings": { "version": "1.1.0", - "resolved": "", + "resolved": false, "integrity": "sha1-PXz0Rk22RG6mRL9LOVB/mFEAjo4=", "dev": true, "optional": true }, "core-util-is": { "version": "1.0.2", - "resolved": "", + "resolved": false, "integrity": "sha1-tf1UIgqivFq1eqtxQMlAdUUDwac=", "dev": true, "optional": true }, "debug": { "version": "4.1.1", - "resolved": "", + "resolved": false, "integrity": "sha512-pYAIzeRo8J6KPEaJ0VWOh5Pzkbw/RetuzehGM7QRRX5he4fPHx2rdKMB256ehJCkX+XRQm16eZLqLNS8RSZXZw==", "dev": true, "optional": true, @@ -14739,35 +14739,35 @@ }, "deep-extend": { "version": "0.6.0", - "resolved": "", + "resolved": false, "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", "dev": true, "optional": true }, "delegates": { "version": "1.0.0", - "resolved": "", + "resolved": false, "integrity": "sha1-hMbhWbgZBP3KWaDvRM2HDTElD5o=", "dev": true, "optional": true }, "detect-libc": { "version": "1.0.3", - "resolved": "", + "resolved": false, "integrity": "sha1-+hN8S9aY7fVc1c0CrFWfkaTEups=", "dev": true, "optional": true }, "fs.realpath": { "version": "1.0.0", - "resolved": "", + "resolved": false, "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", "dev": true, "optional": true }, "gauge": { "version": "2.7.4", - "resolved": "", + "resolved": false, "integrity": "sha1-LANAXHU4w51+s3sxcCLjJfsBi/c=", "dev": true, "optional": true, @@ -14784,7 +14784,7 @@ }, "glob": { "version": "7.1.3", - "resolved": "", + "resolved": false, "integrity": "sha512-vcfuiIxogLV4DlGBHIUOwI0IbrJ8HWPc4MU7HzviGeNho/UJDfi6B5p3sHeWIQ0KGIU0Jpxi5ZHxemQfLkkAwQ==", "dev": true, "optional": true, @@ -14799,14 +14799,14 @@ }, "has-unicode": { "version": "2.0.1", - "resolved": "", + "resolved": false, "integrity": "sha1-4Ob+aijPUROIVeCG0Wkedx3iqLk=", "dev": true, "optional": true }, "iconv-lite": { "version": "0.4.24", - "resolved": "", + "resolved": false, "integrity": "sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA==", "dev": true, "optional": true, @@ -14816,7 +14816,7 @@ }, "ignore-walk": { "version": "3.0.1", - "resolved": "", + "resolved": false, "integrity": "sha512-DTVlMx3IYPe0/JJcYP7Gxg7ttZZu3IInhuEhbchuqneY9wWe5Ojy2mXLBaQFUQmo0AW2r3qG7m1mg86js+gnlQ==", "dev": true, "optional": true, @@ -14826,7 +14826,7 @@ }, "inflight": { "version": "1.0.6", - "resolved": "", + "resolved": false, "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", "dev": true, "optional": true, @@ -14837,21 +14837,21 @@ }, "inherits": { "version": "2.0.3", - "resolved": "", + "resolved": false, "integrity": "sha1-Yzwsg+PaQqUC9SRmAiSA9CCCYd4=", "dev": true, "optional": true }, "ini": { "version": "1.3.5", - "resolved": "", + "resolved": false, "integrity": "sha512-RZY5huIKCMRWDUqZlEi72f/lmXKMvuszcMBduliQ3nnWbx9X/ZBQO7DijMEYS9EhHBb2qacRUMtC7svLwe0lcw==", "dev": true, "optional": true }, "is-fullwidth-code-point": { "version": "1.0.0", - "resolved": "", + "resolved": false, "integrity": "sha1-754xOG8DGn8NZDr4L95QxFfvAMs=", "dev": true, "optional": true, @@ -14861,14 +14861,14 @@ }, "isarray": { "version": "1.0.0", - "resolved": "", + "resolved": false, "integrity": "sha1-u5NdSFgsuhaMBoNJV6VKPgcSTxE=", "dev": true, "optional": true }, "minimatch": { "version": "3.0.4", - "resolved": "", + "resolved": false, "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", "dev": true, "optional": true, @@ -14878,14 +14878,14 @@ }, "ms": { "version": "2.1.1", - "resolved": "", + "resolved": false, "integrity": "sha512-tgp+dl5cGk28utYktBsrFqA7HKgrhgPsg6Z/EfhWI4gl1Hwq8B/GmY/0oXZ6nF8hDVesS/FpnYaD/kOWhYQvyg==", "dev": true, "optional": true }, "needle": { "version": "2.3.0", - "resolved": "", + "resolved": false, "integrity": "sha512-QBZu7aAFR0522EyaXZM0FZ9GLpq6lvQ3uq8gteiDUp7wKdy0lSd2hPlgFwVuW1CBkfEs9PfDQsQzZghLs/psdg==", "dev": true, "optional": true, @@ -14897,7 +14897,7 @@ }, "node-pre-gyp": { "version": "0.12.0", - "resolved": "", + "resolved": false, "integrity": "sha512-4KghwV8vH5k+g2ylT+sLTjy5wmUOb9vPhnM8NHvRf9dHmnW/CndrFXy2aRPaPST6dugXSdHXfeaHQm77PIz/1A==", "dev": true, "optional": true, @@ -14916,7 +14916,7 @@ }, "nopt": { "version": "4.0.1", - "resolved": "", + "resolved": false, "integrity": "sha1-0NRoWv1UFRk8jHUFYC0NF81kR00=", "dev": true, "optional": true, @@ -14927,14 +14927,14 @@ }, "npm-bundled": { "version": "1.0.6", - "resolved": "", + "resolved": false, "integrity": "sha512-8/JCaftHwbd//k6y2rEWp6k1wxVfpFzB6t1p825+cUb7Ym2XQfhwIC5KwhrvzZRJu+LtDE585zVaS32+CGtf0g==", "dev": true, "optional": true }, "npm-packlist": { "version": "1.4.1", - "resolved": "", + "resolved": false, "integrity": "sha512-+TcdO7HJJ8peiiYhvPxsEDhF3PJFGUGRcFsGve3vxvxdcpO2Z4Z7rkosRM0kWj6LfbK/P0gu3dzk5RU1ffvFcw==", "dev": true, "optional": true, @@ -14945,7 +14945,7 @@ }, "npmlog": { "version": "4.1.2", - "resolved": "", + "resolved": false, "integrity": "sha512-2uUqazuKlTaSI/dC8AzicUck7+IrEaOnN/e0jd3Xtt1KcGpwx30v50mL7oPyr/h9bL3E4aZccVwpwP+5W9Vjkg==", "dev": true, "optional": true, @@ -14958,21 +14958,21 @@ }, "number-is-nan": { "version": "1.0.1", - "resolved": "", + "resolved": false, "integrity": "sha1-CXtgK1NCKlIsGvuHkDGDNpQaAR0=", "dev": true, "optional": true }, "object-assign": { "version": "4.1.1", - "resolved": "", + "resolved": false, "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", "dev": true, "optional": true }, "once": { "version": "1.4.0", - "resolved": "", + "resolved": false, "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", "dev": true, "optional": true, @@ -14982,21 +14982,21 @@ }, "os-homedir": { "version": "1.0.2", - "resolved": "", + "resolved": false, "integrity": "sha1-/7xJiDNuDoM94MFox+8VISGqf7M=", "dev": true, "optional": true }, "os-tmpdir": { "version": "1.0.2", - "resolved": "", + "resolved": false, "integrity": "sha1-u+Z0BseaqFxc/sdm/lc0VV36EnQ=", "dev": true, "optional": true }, "osenv": { "version": "0.1.5", - "resolved": "", + "resolved": false, "integrity": "sha512-0CWcCECdMVc2Rw3U5w9ZjqX6ga6ubk1xDVKxtBQPK7wis/0F2r9T6k4ydGYhecl7YUBxBVxhL5oisPsNxAPe2g==", "dev": true, "optional": true, @@ -15007,21 +15007,21 @@ }, "path-is-absolute": { "version": "1.0.1", - "resolved": "", + "resolved": false, "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", "dev": true, "optional": true }, "process-nextick-args": { "version": "2.0.0", - "resolved": "", + "resolved": false, "integrity": "sha512-MtEC1TqN0EU5nephaJ4rAtThHtC86dNN9qCuEhtshvpVBkAW5ZO7BASN9REnF9eoXGcRub+pFuKEpOHE+HbEMw==", "dev": true, "optional": true }, "rc": { "version": "1.2.8", - "resolved": "", + "resolved": false, "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", "dev": true, "optional": true, @@ -15034,7 +15034,7 @@ }, "readable-stream": { "version": "2.3.6", - "resolved": "", + "resolved": false, "integrity": "sha512-tQtKA9WIAhBF3+VLAseyMqZeBjW0AHJoxOtYqSUZNJxauErmLbVm2FW1y+J/YA9dUrAC39ITejlZWhVIwawkKw==", "dev": true, "optional": true, @@ -15050,7 +15050,7 @@ }, "rimraf": { "version": "2.6.3", - "resolved": "", + "resolved": false, "integrity": "sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA==", "dev": true, "optional": true, @@ -15060,49 +15060,49 @@ }, "safe-buffer": { "version": "5.1.2", - "resolved": "", + "resolved": false, "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", "dev": true, "optional": true }, "safer-buffer": { "version": "2.1.2", - "resolved": "", + "resolved": false, "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==", "dev": true, "optional": true }, "sax": { "version": "1.2.4", - "resolved": "", + "resolved": false, "integrity": "sha512-NqVDv9TpANUjFm0N8uM5GxL36UgKi9/atZw+x7YFnQ8ckwFGKrl4xX4yWtrey3UJm5nP1kUbnYgLopqWNSRhWw==", "dev": true, "optional": true }, "semver": { "version": "5.7.0", - "resolved": "", + "resolved": false, "integrity": "sha512-Ya52jSX2u7QKghxeoFGpLwCtGlt7j0oY9DYb5apt9nPlJ42ID+ulTXESnt/qAQcoSERyZ5sl3LDIOw0nAn/5DA==", "dev": true, "optional": true }, "set-blocking": { "version": "2.0.0", - "resolved": "", + "resolved": false, "integrity": "sha1-BF+XgtARrppoA93TgrJDkrPYkPc=", "dev": true, "optional": true }, "signal-exit": { "version": "3.0.2", - "resolved": "", + "resolved": false, "integrity": "sha1-tf3AjxKH6hF4Yo5BXiUTK3NkbG0=", "dev": true, "optional": true }, "string-width": { "version": "1.0.2", - "resolved": "", + "resolved": false, "integrity": "sha1-EYvfW4zcUaKn5w0hHgfisLmxB9M=", "dev": true, "optional": true, @@ -15114,7 +15114,7 @@ }, "string_decoder": { "version": "1.1.1", - "resolved": "", + "resolved": false, "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", "dev": true, "optional": true, @@ -15124,7 +15124,7 @@ }, "strip-ansi": { "version": "3.0.1", - "resolved": "", + "resolved": false, "integrity": "sha1-ajhfuIU9lS1f8F0Oiq+UJ43GPc8=", "dev": true, "optional": true, @@ -15134,21 +15134,21 @@ }, "strip-json-comments": { "version": "2.0.1", - "resolved": "", + "resolved": false, "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", "dev": true, "optional": true }, "util-deprecate": { "version": "1.0.2", - "resolved": "", + "resolved": false, "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", "dev": true, "optional": true }, "wide-align": { "version": "1.1.3", - "resolved": "", + "resolved": false, "integrity": "sha512-QGkOQc8XL6Bt5PwnsExKBPuMKBxnGxWWW3fU55Xt4feHozMUhdUMaBCk290qpm/wG5u/RSKzwdAC4i51YigihA==", "dev": true, "optional": true, @@ -15158,7 +15158,7 @@ }, "wrappy": { "version": "1.0.2", - "resolved": "", + "resolved": false, "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", "dev": true, "optional": true diff --git a/superset-frontend/package.json b/superset-frontend/package.json index 328ed159cb..7fcbae1221 100644 --- a/superset-frontend/package.json +++ b/superset-frontend/package.json @@ -67,7 +67,7 @@ "@superset-ui/core": "^0.13.5", "@superset-ui/dimension": "^0.13.3", "@superset-ui/legacy-plugin-chart-calendar": "^0.13.6", - "@superset-ui/legacy-plugin-chart-chord": "^0.13.3", + "@superset-ui/legacy-plugin-chart-chord": "^0.13.13", "@superset-ui/legacy-plugin-chart-country-map": "^0.13.3", "@superset-ui/legacy-plugin-chart-event-flow": "^0.11.15", "@superset-ui/legacy-plugin-chart-force-directed": "^0.13.3", @@ -80,19 +80,19 @@ "@superset-ui/legacy-plugin-chart-paired-t-test": "^0.13.5", "@superset-ui/legacy-plugin-chart-parallel-coordinates": "^0.13.3", "@superset-ui/legacy-plugin-chart-partition": "^0.13.5", - "@superset-ui/legacy-plugin-chart-pivot-table": "^0.13.3", - "@superset-ui/legacy-plugin-chart-rose": "^0.13.5", - "@superset-ui/legacy-plugin-chart-sankey": "^0.13.3", + "@superset-ui/legacy-plugin-chart-pivot-table": "^0.13.10", + "@superset-ui/legacy-plugin-chart-rose": "^0.13.10", + "@superset-ui/legacy-plugin-chart-sankey": "^0.13.10", "@superset-ui/legacy-plugin-chart-sunburst": "^0.13.7", "@superset-ui/legacy-plugin-chart-table": "^0.13.5", - "@superset-ui/legacy-plugin-chart-treemap": "^0.13.3", - "@superset-ui/legacy-plugin-chart-world-map": "^0.13.6", + "@superset-ui/legacy-plugin-chart-treemap": "^0.13.10", + "@superset-ui/legacy-plugin-chart-world-map": "^0.13.10", "@superset-ui/legacy-preset-chart-big-number": "^0.13.5", "@superset-ui/legacy-preset-chart-deckgl": "^0.2.3", - "@superset-ui/legacy-preset-chart-nvd3": "^0.13.9", + "@superset-ui/legacy-preset-chart-nvd3": "^0.13.13", "@superset-ui/number-format": "^0.13.3", "@superset-ui/plugin-chart-word-cloud": "^0.13.9", - "@superset-ui/preset-chart-xy": "^0.13.5", + "@superset-ui/preset-chart-xy": "^0.13.11", "@superset-ui/query": "^0.13.6", "@superset-ui/style": "^0.13.3", "@superset-ui/time-format": "^0.13.3", diff --git a/superset-frontend/src/explore/controlPanels/Area.js b/superset-frontend/src/explore/controlPanels/Area.js deleted file mode 100644 index e471b1693e..0000000000 --- a/superset-frontend/src/explore/controlPanels/Area.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -import { t } from '@superset-ui/translation'; -import { NVD3TimeSeries, annotations } from './sections'; -import { D3_TIME_FORMAT_OPTIONS } from '../controls'; -import { - lineInterpolation, - showBrush, - showLegend, - showControls, - xAxisLabel, - bottomMargin, - xTicksLayout, - xAxisFormat, - yLogScale, - yAxisBounds, - xAxisShowMinmax, - richTooltip, -} from './Shared_NVD3'; - -export default { - requiresTime: true, - controlPanelSections: [ - NVD3TimeSeries[0], - { - label: t('Chart Options'), - expanded: true, - controlSetRows: [ - [showBrush, showLegend], - [ - lineInterpolation, - { - name: 'stacked_style', - config: { - type: 'SelectControl', - label: t('Stacked Style'), - renderTrigger: true, - choices: [ - ['stack', 'stack'], - ['stream', 'stream'], - ['expand', 'expand'], - ], - default: 'stack', - description: '', - }, - }, - ], - ['color_scheme', 'label_colors'], - [richTooltip, showControls], - ], - }, - { - label: t('X Axis'), - expanded: true, - controlSetRows: [ - [xAxisLabel, bottomMargin], - [xTicksLayout, xAxisFormat], - [xAxisShowMinmax, null], - ], - }, - { - label: t('Y Axis'), - expanded: true, - controlSetRows: [ - ['y_axis_format', yAxisBounds], - [yLogScale, null], - ], - }, - NVD3TimeSeries[1], - annotations, - ], - controlOverrides: { - color_scheme: { - renderTrigger: false, - }, - }, - sectionOverrides: { - druidTimeSeries: { - controlSetRows: [['granularity', 'druid_time_origin'], ['time_range']], - }, - sqlaTimeSeries: { - controlSetRows: [['granularity_sqla', 'time_grain_sqla'], ['time_range']], - }, - }, -}; diff --git a/superset-frontend/src/explore/controlPanels/Bar.js b/superset-frontend/src/explore/controlPanels/Bar.js deleted file mode 100644 index 6df2569ae7..0000000000 --- a/superset-frontend/src/explore/controlPanels/Bar.js +++ /dev/null @@ -1,87 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -import { t } from '@superset-ui/translation'; -import { NVD3TimeSeries, annotations } from './sections'; -import { D3_TIME_FORMAT_OPTIONS } from '../controls'; -import { - lineInterpolation, - showBrush, - showLegend, - showControls, - xAxisLabel, - yAxisLabel, - bottomMargin, - xTicksLayout, - xAxisFormat, - yLogScale, - yAxisBounds, - xAxisShowMinmax, - yAxisShowMinmax, - richTooltip, - showBarValue, - barStacked, - reduceXTicks, - leftMargin, -} from './Shared_NVD3'; - -export default { - requiresTime: true, - controlPanelSections: [ - NVD3TimeSeries[0], - { - label: t('Chart Options'), - expanded: true, - controlSetRows: [ - ['color_scheme', 'label_colors'], - [showBrush, showLegend, showBarValue], - [richTooltip, barStacked], - [lineInterpolation, showControls], - [bottomMargin], - ], - }, - { - label: t('X Axis'), - expanded: true, - controlSetRows: [ - [xAxisLabel, bottomMargin], - [xTicksLayout, xAxisFormat], - [xAxisShowMinmax, reduceXTicks], - ], - }, - { - label: t('Y Axis'), - expanded: true, - controlSetRows: [ - [yAxisLabel, leftMargin], - [yAxisShowMinmax, yLogScale], - ['y_axis_format', yAxisBounds], - ], - }, - NVD3TimeSeries[1], - annotations, - ], - sectionOverrides: { - druidTimeSeries: { - controlSetRows: [['granularity', 'druid_time_origin'], ['time_range']], - }, - sqlaTimeSeries: { - controlSetRows: [['granularity_sqla', 'time_grain_sqla'], ['time_range']], - }, - }, -}; diff --git a/superset-frontend/src/explore/controlPanels/BoxPlot.js b/superset-frontend/src/explore/controlPanels/BoxPlot.js deleted file mode 100644 index ecf58e2822..0000000000 --- a/superset-frontend/src/explore/controlPanels/BoxPlot.js +++ /dev/null @@ -1,74 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -import { t } from '@superset-ui/translation'; -import { formatSelectOptions } from '../../modules/utils'; - -export default { - controlPanelSections: [ - { - label: t('Query'), - expanded: true, - controlSetRows: [['metrics'], ['adhoc_filters'], ['groupby'], ['limit']], - }, - { - label: t('Chart Options'), - expanded: true, - controlSetRows: [ - ['color_scheme', 'label_colors'], - [ - { - name: 'whisker_options', - config: { - type: 'SelectControl', - freeForm: true, - label: t('Whisker/outlier options'), - default: 'Tukey', - description: t( - 'Determines how whiskers and outliers are calculated.', - ), - choices: formatSelectOptions([ - 'Tukey', - 'Min/max (no outliers)', - '2/98 percentiles', - '9/91 percentiles', - ]), - }, - }, - { - name: 'x_ticks_layout', - config: { - type: 'SelectControl', - label: t('X Tick Layout'), - choices: formatSelectOptions([ - 'auto', - 'flat', - '45°', - 'staggered', - ]), - default: 'auto', - clearable: false, - renderTrigger: true, - description: t('The way the ticks are laid out on the X-axis'), - }, - }, - ], - ], - }, - ], -}; diff --git a/superset-frontend/src/explore/controlPanels/Bubble.js b/superset-frontend/src/explore/controlPanels/Bubble.js deleted file mode 100644 index 169cb202fb..0000000000 --- a/superset-frontend/src/explore/controlPanels/Bubble.js +++ /dev/null @@ -1,124 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -import { t } from '@superset-ui/translation'; -import { D3_FORMAT_OPTIONS } from '../controls'; -import { formatSelectOptions } from '../../modules/utils'; -import { - showLegend, - xAxisLabel, - yAxisLabel, - bottomMargin, - xTicksLayout, - xAxisFormat, - yLogScale, - xAxisShowMinmax, - yAxisShowMinmax, - leftMargin, -} from './Shared_NVD3'; - -export default { - label: t('Bubble Chart'), - controlPanelSections: [ - { - label: t('Query'), - expanded: true, - controlSetRows: [ - ['series', 'entity'], - ['x'], - ['y'], - ['adhoc_filters'], - ['size'], - [ - { - name: 'max_bubble_size', - config: { - type: 'SelectControl', - freeForm: true, - label: t('Max Bubble Size'), - default: '25', - choices: formatSelectOptions([ - '5', - '10', - '15', - '25', - '50', - '75', - '100', - ]), - }, - }, - ], - ['limit', null], - ], - }, - { - label: t('Chart Options'), - expanded: true, - controlSetRows: [ - ['color_scheme', 'label_colors'], - [showLegend, null], - ], - }, - { - label: t('X Axis'), - expanded: true, - controlSetRows: [ - [xAxisLabel, leftMargin], - [ - { - name: xAxisFormat.name, - config: { - ...xAxisFormat.config, - default: 'SMART_NUMBER', - choices: D3_FORMAT_OPTIONS, - }, - }, - xTicksLayout, - ], - [ - { - name: 'x_log_scale', - config: { - type: 'CheckboxControl', - label: t('X Log Scale'), - default: false, - renderTrigger: true, - description: t('Use a log scale for the X-axis'), - }, - }, - xAxisShowMinmax, - ], - ], - }, - { - label: t('Y Axis'), - expanded: true, - controlSetRows: [ - [yAxisLabel, bottomMargin], - ['y_axis_format', null], - [yLogScale, yAxisShowMinmax], - ], - }, - ], - controlOverrides: { - color_scheme: { - renderTrigger: false, - }, - }, -}; diff --git a/superset-frontend/src/explore/controlPanels/Bullet.js b/superset-frontend/src/explore/controlPanels/Bullet.js deleted file mode 100644 index 33281d13b6..0000000000 --- a/superset-frontend/src/explore/controlPanels/Bullet.js +++ /dev/null @@ -1,96 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -import { t } from '@superset-ui/translation'; - -export default { - requiresTime: false, - controlPanelSections: [ - { - label: t('Query'), - expanded: true, - controlSetRows: [['metric'], ['adhoc_filters']], - }, - { - label: t('Chart Options'), - expanded: true, - controlSetRows: [ - [ - { - name: 'ranges', - config: { - type: 'TextControl', - label: t('Ranges'), - default: '', - description: t('Ranges to highlight with shading'), - }, - }, - { - name: 'range_labels', - config: { - type: 'TextControl', - label: t('Range labels'), - default: '', - description: t('Labels for the ranges'), - }, - }, - ], - [ - { - name: 'markers', - config: { - type: 'TextControl', - label: t('Markers'), - default: '', - description: t('List of values to mark with triangles'), - }, - }, - { - name: 'marker_labels', - config: { - type: 'TextControl', - label: t('Marker labels'), - default: '', - description: t('Labels for the markers'), - }, - }, - ], - [ - { - name: 'marker_lines', - config: { - type: 'TextControl', - label: t('Marker lines'), - default: '', - description: t('List of values to mark with lines'), - }, - }, - { - name: 'marker_line_labels', - config: { - type: 'TextControl', - label: t('Marker line labels'), - default: '', - description: t('Labels for the marker lines'), - }, - }, - ], - ], - }, - ], -}; diff --git a/superset-frontend/src/explore/controlPanels/Chord.js b/superset-frontend/src/explore/controlPanels/Chord.js deleted file mode 100644 index f32a03b438..0000000000 --- a/superset-frontend/src/explore/controlPanels/Chord.js +++ /dev/null @@ -1,62 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -import { t } from '@superset-ui/translation'; -import { validateNonEmpty } from '@superset-ui/validator'; - -export default { - controlPanelSections: [ - { - label: t('Query'), - expanded: true, - controlSetRows: [ - ['groupby'], - ['columns'], - ['metric'], - ['adhoc_filters'], - ['row_limit'], - ], - }, - { - label: t('Chart Options'), - expanded: true, - controlSetRows: [ - ['y_axis_format', null], - ['color_scheme', 'label_colors'], - ], - }, - ], - controlOverrides: { - y_axis_format: { - label: t('Number format'), - description: t('Choose a number format'), - }, - groupby: { - label: t('Source'), - multi: false, - validators: [validateNonEmpty], - description: t('Choose a source'), - }, - columns: { - label: t('Target'), - multi: false, - validators: [validateNonEmpty], - description: t('Choose a target'), - }, - }, -}; diff --git a/superset-frontend/src/explore/controlPanels/Compare.js b/superset-frontend/src/explore/controlPanels/Compare.js deleted file mode 100644 index 82f430813f..0000000000 --- a/superset-frontend/src/explore/controlPanels/Compare.js +++ /dev/null @@ -1,73 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -import { t } from '@superset-ui/translation'; -import { NVD3TimeSeries, annotations } from './sections'; -import { D3_TIME_FORMAT_OPTIONS } from '../controls'; -import { - xAxisLabel, - yAxisLabel, - bottomMargin, - xTicksLayout, - xAxisFormat, - yLogScale, - yAxisBounds, - xAxisShowMinmax, - yAxisShowMinmax, - leftMargin, -} from './Shared_NVD3'; - -export default { - requiresTime: true, - controlPanelSections: [ - NVD3TimeSeries[0], - { - label: t('Chart Options'), - expanded: true, - controlSetRows: [['color_scheme', 'label_colors']], - }, - { - label: t('X Axis'), - expanded: true, - controlSetRows: [ - [xAxisLabel, bottomMargin], - [xTicksLayout, xAxisFormat], - [xAxisShowMinmax, null], - ], - }, - { - label: t('Y Axis'), - expanded: true, - controlSetRows: [ - [yAxisLabel, leftMargin], - [yAxisShowMinmax, yLogScale], - ['y_axis_format', yAxisBounds], - ], - }, - NVD3TimeSeries[1], - annotations, - ], - sectionOverrides: { - druidTimeSeries: { - controlSetRows: [['granularity', 'druid_time_origin'], ['time_range']], - }, - sqlaTimeSeries: { - controlSetRows: [['granularity_sqla', 'time_grain_sqla'], ['time_range']], - }, - }, -}; diff --git a/superset-frontend/src/explore/controlPanels/DistBar.js b/superset-frontend/src/explore/controlPanels/DistBar.js deleted file mode 100644 index e69705f4ce..0000000000 --- a/superset-frontend/src/explore/controlPanels/DistBar.js +++ /dev/null @@ -1,99 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -import { t } from '@superset-ui/translation'; -import { validateNonEmpty } from '@superset-ui/validator'; -import { - showLegend, - showControls, - xAxisLabel, - bottomMargin, - xTicksLayout, - showBarValue, - barStacked, - reduceXTicks, - yAxisLabel, -} from './Shared_NVD3'; - -export default { - controlPanelSections: [ - { - label: t('Query'), - expanded: true, - controlSetRows: [ - ['metrics'], - ['adhoc_filters'], - ['groupby'], - ['columns'], - ['row_limit'], - [ - { - name: 'contribution', - config: { - type: 'CheckboxControl', - label: t('Contribution'), - default: false, - description: t('Compute the contribution to the total'), - }, - }, - ], - ], - }, - { - label: t('Chart Options'), - expanded: true, - controlSetRows: [ - ['color_scheme', 'label_colors'], - [showLegend, showBarValue], - [ - barStacked, - { - name: 'order_bars', - config: { - type: 'CheckboxControl', - label: t('Sort Bars'), - default: false, - renderTrigger: true, - description: t('Sort bars by x labels.'), - }, - }, - ], - ['y_axis_format', yAxisLabel], - [showControls, null], - ], - }, - { - label: t('X Axis'), - expanded: true, - controlSetRows: [ - [xAxisLabel, bottomMargin], - [xTicksLayout, reduceXTicks], - ], - }, - ], - controlOverrides: { - groupby: { - label: t('Series'), - validators: [validateNonEmpty], - }, - columns: { - label: t('Breakdowns'), - description: t('Defines how each series is broken down'), - }, - }, -}; diff --git a/superset-frontend/src/explore/controlPanels/DualLine.js b/superset-frontend/src/explore/controlPanels/DualLine.js deleted file mode 100644 index b3859707a4..0000000000 --- a/superset-frontend/src/explore/controlPanels/DualLine.js +++ /dev/null @@ -1,66 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -import { t } from '@superset-ui/translation'; -import { annotations } from './sections'; -import { D3_TIME_FORMAT_OPTIONS } from '../controls'; -import { xAxisFormat, yAxis2Format } from './Shared_NVD3'; - -export default { - requiresTime: true, - controlPanelSections: [ - { - label: t('Chart Options'), - expanded: true, - controlSetRows: [['color_scheme', 'label_colors'], [xAxisFormat]], - }, - { - label: t('Y Axis 1'), - expanded: true, - controlSetRows: [['metric', 'y_axis_format']], - }, - { - label: t('Y Axis 2'), - expanded: true, - controlSetRows: [['metric_2', yAxis2Format]], - }, - { - label: t('Query'), - expanded: true, - controlSetRows: [['adhoc_filters']], - }, - annotations, - ], - controlOverrides: { - metric: { - label: t('Left Axis Metric'), - description: t('Choose a metric for left axis'), - }, - y_axis_format: { - label: t('Left Axis Format'), - }, - }, - sectionOverrides: { - druidTimeSeries: { - controlSetRows: [['granularity', 'druid_time_origin'], ['time_range']], - }, - sqlaTimeSeries: { - controlSetRows: [['granularity_sqla', 'time_grain_sqla'], ['time_range']], - }, - }, -}; diff --git a/superset-frontend/src/explore/controlPanels/Line.js b/superset-frontend/src/explore/controlPanels/Line.js deleted file mode 100644 index 4da6e45395..0000000000 --- a/superset-frontend/src/explore/controlPanels/Line.js +++ /dev/null @@ -1,101 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -import { t } from '@superset-ui/translation'; -import { NVD3TimeSeries, annotations } from './sections'; -import { D3_TIME_FORMAT_OPTIONS } from '../controls'; -import { - lineInterpolation, - showBrush, - showLegend, - xAxisLabel, - bottomMargin, - xTicksLayout, - xAxisFormat, - yLogScale, - yAxisBounds, - yAxisLabel, - xAxisShowMinmax, - yAxisShowMinmax, - richTooltip, - leftMargin, - showMarkers, -} from './Shared_NVD3'; - -export default { - requiresTime: true, - controlPanelSections: [ - NVD3TimeSeries[0], - { - label: t('Chart Options'), - expanded: true, - controlSetRows: [ - ['color_scheme', 'label_colors'], - [ - showBrush, - { - name: 'send_time_range', - config: { - type: 'CheckboxControl', - label: t('Propagate'), - renderTrigger: true, - default: false, - description: t('Send range filter events to other charts'), - }, - }, - showLegend, - ], - [richTooltip, showMarkers], - [lineInterpolation], - ], - }, - { - label: t('X Axis'), - expanded: true, - controlSetRows: [ - [xAxisLabel, bottomMargin], - [xTicksLayout, xAxisFormat], - [xAxisShowMinmax, null], - ], - }, - { - label: t('Y Axis'), - expanded: true, - controlSetRows: [ - [yAxisLabel, leftMargin], - [yAxisShowMinmax, yLogScale], - ['y_axis_format', yAxisBounds], - ], - }, - NVD3TimeSeries[1], - annotations, - ], - controlOverrides: { - row_limit: { - default: 50000, - }, - }, - sectionOverrides: { - druidTimeSeries: { - controlSetRows: [['granularity', 'druid_time_origin'], ['time_range']], - }, - sqlaTimeSeries: { - controlSetRows: [['granularity_sqla', 'time_grain_sqla'], ['time_range']], - }, - }, -}; diff --git a/superset-frontend/src/explore/controlPanels/LineMulti.js b/superset-frontend/src/explore/controlPanels/LineMulti.js deleted file mode 100644 index b9b6fa3c80..0000000000 --- a/superset-frontend/src/explore/controlPanels/LineMulti.js +++ /dev/null @@ -1,158 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -import { t } from '@superset-ui/translation'; -import { validateNonEmpty } from '@superset-ui/validator'; -import { annotations } from './sections'; -import { D3_TIME_FORMAT_OPTIONS } from '../controls'; -import { - lineInterpolation, - showLegend, - xAxisLabel, - bottomMargin, - xTicksLayout, - xAxisFormat, - xAxisShowMinmax, - showMarkers, - yAxis2Format, -} from './Shared_NVD3'; - -export default { - requiresTime: true, - controlPanelSections: [ - { - label: t('Chart Options'), - expanded: true, - controlSetRows: [ - ['color_scheme', 'label_colors'], - [ - { - name: 'prefix_metric_with_slice_name', - config: { - type: 'CheckboxControl', - label: t('Prefix metric name with slice name'), - default: false, - renderTrigger: true, - }, - }, - null, - ], - [showLegend, showMarkers], - [lineInterpolation, null], - ], - }, - { - label: t('X Axis'), - expanded: true, - controlSetRows: [ - [xAxisLabel, bottomMargin], - [xTicksLayout, xAxisFormat], - [xAxisShowMinmax, null], - ], - }, - { - label: t('Y Axis 1'), - expanded: true, - controlSetRows: [ - [ - { - name: 'line_charts', - config: { - type: 'SelectAsyncControl', - multi: true, - label: t('Left Axis chart(s)'), - validators: [validateNonEmpty], - default: [], - description: t('Choose one or more charts for left axis'), - dataEndpoint: - '/sliceasync/api/read?_flt_0_viz_type=line&_flt_7_viz_type=line_multi', - placeholder: t('Select charts'), - onAsyncErrorMessage: t('Error while fetching charts'), - mutator: data => { - if (!data || !data.result) { - return []; - } - return data.result.map(o => ({ - value: o.id, - label: o.slice_name, - })); - }, - }, - }, - 'y_axis_format', - ], - ], - }, - { - label: t('Y Axis 2'), - expanded: false, - controlSetRows: [ - [ - { - name: 'line_charts_2', - config: { - type: 'SelectAsyncControl', - multi: true, - label: t('Right Axis chart(s)'), - validators: [], - default: [], - description: t('Choose one or more charts for right axis'), - dataEndpoint: - '/sliceasync/api/read?_flt_0_viz_type=line&_flt_7_viz_type=line_multi', - placeholder: t('Select charts'), - onAsyncErrorMessage: t('Error while fetching charts'), - mutator: data => { - if (!data || !data.result) { - return []; - } - return data.result.map(o => ({ - value: o.id, - label: o.slice_name, - })); - }, - }, - }, - yAxis2Format, - ], - ], - }, - { - label: t('Query'), - expanded: true, - controlSetRows: [['adhoc_filters']], - }, - annotations, - ], - controlOverrides: { - y_axis_format: { - label: t('Left Axis Format'), - }, - x_axis_format: { - choices: D3_TIME_FORMAT_OPTIONS, - default: 'smart_date', - }, - }, - sectionOverrides: { - sqlaTimeSeries: { - controlSetRows: [['time_range']], - }, - druidTimeSeries: { - controlSetRows: [['time_range']], - }, - }, -}; diff --git a/superset-frontend/src/explore/controlPanels/Pie.js b/superset-frontend/src/explore/controlPanels/Pie.js deleted file mode 100644 index 0e627b6b3d..0000000000 --- a/superset-frontend/src/explore/controlPanels/Pie.js +++ /dev/null @@ -1,122 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -import { t } from '@superset-ui/translation'; -import { showLegend } from './Shared_NVD3'; -import { D3_FORMAT_OPTIONS } from '../controls'; - -export default { - controlPanelSections: [ - { - label: t('Query'), - expanded: true, - controlSetRows: [ - ['metric'], - ['adhoc_filters'], - ['groupby'], - ['row_limit'], - ], - }, - { - label: t('Chart Options'), - expanded: true, - controlSetRows: [ - [ - { - name: 'pie_label_type', - config: { - type: 'SelectControl', - label: t('Label Type'), - default: 'key', - renderTrigger: true, - choices: [ - ['key', 'Category Name'], - ['value', 'Value'], - ['percent', 'Percentage'], - ['key_value', 'Category and Value'], - ['key_percent', 'Category and Percentage'], - ], - description: t('What should be shown on the label?'), - }, - }, - { - name: 'number_format', - config: { - type: 'SelectControl', - freeForm: true, - label: t('Number format'), - renderTrigger: true, - default: 'SMART_NUMBER', - choices: D3_FORMAT_OPTIONS, - description: - t('D3 format syntax: https://github.com/d3/d3-format') + - ' ' + - t( - 'Only applies when the "Label Type" is not set to a percentage.', - ), - }, - }, - ], - [ - { - name: 'donut', - config: { - type: 'CheckboxControl', - label: t('Donut'), - default: false, - renderTrigger: true, - description: t('Do you want a donut or a pie?'), - }, - }, - showLegend, - ], - [ - { - name: 'show_labels', - config: { - type: 'CheckboxControl', - label: t('Show Labels'), - renderTrigger: true, - default: true, - description: t( - 'Whether to display the labels. Note that the label only displays when the the 5% ' + - 'threshold.', - ), - }, - }, - { - name: 'labels_outside', - config: { - type: 'CheckboxControl', - label: t('Put labels outside'), - default: true, - renderTrigger: true, - description: t('Put the labels outside the pie?'), - }, - }, - ], - ['color_scheme', 'label_colors'], - ], - }, - ], - controlOverrides: { - row_limit: { - default: 25, - }, - }, -}; diff --git a/superset-frontend/src/explore/controlPanels/PivotTable.js b/superset-frontend/src/explore/controlPanels/PivotTable.js deleted file mode 100644 index 3100c793fe..0000000000 --- a/superset-frontend/src/explore/controlPanels/PivotTable.js +++ /dev/null @@ -1,124 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -import { t } from '@superset-ui/translation'; -import { formatSelectOptions } from '../../modules/utils'; -import { D3_FORMAT_OPTIONS, D3_FORMAT_DOCS } from '../controls'; - -export default { - controlPanelSections: [ - { - label: t('Query'), - expanded: true, - controlSetRows: [ - ['metrics'], - ['adhoc_filters'], - ['groupby'], - ['columns'], - ['row_limit', null], - ], - }, - { - label: t('Pivot Options'), - controlSetRows: [ - [ - { - name: 'pandas_aggfunc', - config: { - type: 'SelectControl', - label: t('Aggregation function'), - clearable: false, - choices: formatSelectOptions([ - 'sum', - 'mean', - 'min', - 'max', - 'std', - 'var', - ]), - default: 'sum', - description: t( - 'Aggregate function to apply when pivoting and ' + - 'computing the total rows and columns', - ), - }, - }, - { - name: 'pivot_margins', - config: { - type: 'CheckboxControl', - label: t('Show totals'), - renderTrigger: false, - default: true, - description: t('Display total row/column'), - }, - }, - ], - [ - { - name: 'number_format', - config: { - type: 'SelectControl', - freeForm: true, - label: t('Number format'), - renderTrigger: true, - default: 'SMART_NUMBER', - choices: D3_FORMAT_OPTIONS, - description: D3_FORMAT_DOCS, - }, - }, - { - name: 'combine_metric', - config: { - type: 'CheckboxControl', - label: t('Combine Metrics'), - default: false, - description: t( - 'Display metrics side by side within each column, as ' + - 'opposed to each column being displayed side by side for each metric.', - ), - }, - }, - ], - [ - { - name: 'transpose_pivot', - config: { - type: 'CheckboxControl', - label: t('Transpose Pivot'), - default: false, - description: t('Swap Groups and Columns'), - }, - }, - ], - ], - }, - ], - controlOverrides: { - groupby: { includeTime: true }, - columns: { includeTime: true }, - }, - sectionOverrides: { - druidTimeSeries: { - controlSetRows: [['granularity', 'druid_time_origin'], ['time_range']], - }, - sqlaTimeSeries: { - controlSetRows: [['granularity_sqla', 'time_grain_sqla'], ['time_range']], - }, - }, -}; diff --git a/superset-frontend/src/explore/controlPanels/Rose.js b/superset-frontend/src/explore/controlPanels/Rose.js deleted file mode 100644 index 9352f5f44f..0000000000 --- a/superset-frontend/src/explore/controlPanels/Rose.js +++ /dev/null @@ -1,93 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -import { t } from '@superset-ui/translation'; -import { NVD3TimeSeries } from './sections'; -import { - D3_TIME_FORMAT_OPTIONS, - D3_FORMAT_OPTIONS, - D3_FORMAT_DOCS, -} from '../controls'; - -export default { - requiresTime: true, - controlPanelSections: [ - NVD3TimeSeries[0], - { - label: t('Chart Options'), - expanded: true, - controlSetRows: [ - ['color_scheme', 'label_colors'], - [ - { - name: 'number_format', - config: { - type: 'SelectControl', - freeForm: true, - label: t('Number format'), - renderTrigger: true, - default: 'SMART_NUMBER', - choices: D3_FORMAT_OPTIONS, - description: D3_FORMAT_DOCS, - }, - }, - { - name: 'date_time_format', - config: { - type: 'SelectControl', - freeForm: true, - label: t('Date Time Format'), - renderTrigger: true, - default: 'smart_date', - choices: D3_TIME_FORMAT_OPTIONS, - description: D3_FORMAT_DOCS, - }, - }, - ], - [ - { - name: 'rich_tooltip', - config: { - type: 'CheckboxControl', - label: t('Rich Tooltip'), - renderTrigger: true, - default: true, - description: t( - 'The rich tooltip shows a list of all series for that point in time', - ), - }, - }, - { - name: 'rose_area_proportion', - config: { - type: 'CheckboxControl', - label: t('Use Area Proportions'), - description: t( - 'Check if the Rose Chart should use segment area instead of ' + - 'segment radius for proportioning', - ), - default: false, - renderTrigger: true, - }, - }, - ], - ], - }, - NVD3TimeSeries[1], - ], -}; diff --git a/superset-frontend/src/explore/controlPanels/Sankey.js b/superset-frontend/src/explore/controlPanels/Sankey.js deleted file mode 100644 index 9ea14b2fa6..0000000000 --- a/superset-frontend/src/explore/controlPanels/Sankey.js +++ /dev/null @@ -1,45 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -import { t } from '@superset-ui/translation'; - -export default { - controlPanelSections: [ - { - label: t('Query'), - expanded: true, - controlSetRows: [ - ['groupby'], - ['metric'], - ['adhoc_filters'], - ['row_limit'], - ], - }, - { - label: t('Chart Options'), - expanded: true, - controlSetRows: [['color_scheme', 'label_colors']], - }, - ], - controlOverrides: { - groupby: { - label: t('Source / Target'), - description: t('Choose a source and a target'), - }, - }, -}; diff --git a/superset-frontend/src/explore/controlPanels/Shared_NVD3.js b/superset-frontend/src/explore/controlPanels/Shared_NVD3.js deleted file mode 100644 index ea4398b5ce..0000000000 --- a/superset-frontend/src/explore/controlPanels/Shared_NVD3.js +++ /dev/null @@ -1,309 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ - -// These are control configurations that are shared ONLY within the DeckGL viz plugin repo. - -import React from 'react'; -import { t } from '@superset-ui/translation'; -import { formatSelectOptions } from '../../modules/utils'; -import { - D3_TIME_FORMAT_OPTIONS, - D3_FORMAT_DOCS, - D3_FORMAT_OPTIONS, -} from '../controls'; - -/* - Plugins in question: - - AreaChartPlugin, - BarChartPlugin, - BubbleChartPlugin, - BulletChartPlugin, - CompareChartPlugin, - DistBarChartPlugin, - DualLineChartPlugin, - LineChartPlugin, - LineMultiChartPlugin, - PieChartPlugin, - TimePivotChartPlugin, -*/ - -export const yAxis2Format = { - name: 'y_axis_2_format', - config: { - type: 'SelectControl', - freeForm: true, - label: t('Right Axis Format'), - default: 'SMART_NUMBER', - choices: D3_FORMAT_OPTIONS, - description: D3_FORMAT_DOCS, - }, -}; - -export const showMarkers = { - name: 'show_markers', - config: { - type: 'CheckboxControl', - label: t('Show Markers'), - renderTrigger: true, - default: false, - description: t('Show data points as circle markers on the lines'), - }, -}; - -export const leftMargin = { - name: 'left_margin', - config: { - type: 'SelectControl', - freeForm: true, - clearable: false, - label: t('Left Margin'), - choices: formatSelectOptions(['auto', 50, 75, 100, 125, 150, 200]), - default: 'auto', - renderTrigger: true, - description: t( - 'Left margin, in pixels, allowing for more room for axis labels', - ), - }, -}; - -export const yAxisShowMinmax = { - name: 'y_axis_showminmax', - config: { - type: 'CheckboxControl', - label: t('Y bounds'), - renderTrigger: true, - default: false, - description: t('Whether to display the min and max values of the Y-axis'), - }, -}; - -export const lineInterpolation = { - name: 'line_interpolation', - config: { - type: 'SelectControl', - label: t('Line Style'), - renderTrigger: true, - choices: formatSelectOptions([ - 'linear', - 'basis', - 'cardinal', - 'monotone', - 'step-before', - 'step-after', - ]), - default: 'linear', - description: t('Line interpolation as defined by d3.js'), - }, -}; - -export const showBrush = { - name: 'show_brush', - config: { - type: 'SelectControl', - label: t('Show Range Filter'), - renderTrigger: true, - clearable: false, - default: 'auto', - choices: [ - ['yes', 'Yes'], - ['no', 'No'], - ['auto', 'Auto'], - ], - description: t('Whether to display the time range interactive selector'), - }, -}; - -export const showLegend = { - name: 'show_legend', - config: { - type: 'CheckboxControl', - label: t('Legend'), - renderTrigger: true, - default: true, - description: t('Whether to display the legend (toggles)'), - }, -}; - -export const showControls = { - name: 'show_controls', - config: { - type: 'CheckboxControl', - label: t('Extra Controls'), - renderTrigger: true, - default: false, - description: t( - 'Whether to show extra controls or not. Extra controls ' + - 'include things like making mulitBar charts stacked ' + - 'or side by side.', - ), - }, -}; - -export const xAxisLabel = { - name: 'x_axis_label', - config: { - type: 'TextControl', - label: t('X Axis Label'), - renderTrigger: true, - default: '', - }, -}; - -export const bottomMargin = { - name: 'bottom_margin', - config: { - type: 'SelectControl', - clearable: false, - freeForm: true, - label: t('Bottom Margin'), - choices: formatSelectOptions(['auto', 50, 75, 100, 125, 150, 200]), - default: 'auto', - renderTrigger: true, - description: t( - 'Bottom margin, in pixels, allowing for more room for axis labels', - ), - }, -}; - -export const xTicksLayout = { - name: 'x_ticks_layout', - config: { - type: 'SelectControl', - label: t('X Tick Layout'), - choices: formatSelectOptions(['auto', 'flat', '45°', 'staggered']), - default: 'auto', - clearable: false, - renderTrigger: true, - description: t('The way the ticks are laid out on the X-axis'), - }, -}; - -export const xAxisFormat = { - name: 'x_axis_format', - config: { - type: 'SelectControl', - freeForm: true, - label: t('X Axis Format'), - renderTrigger: true, - choices: D3_TIME_FORMAT_OPTIONS, - default: 'smart_date', - description: D3_FORMAT_DOCS, - }, -}; - -export const yLogScale = { - name: 'y_log_scale', - config: { - type: 'CheckboxControl', - label: t('Y Log Scale'), - default: false, - renderTrigger: true, - description: t('Use a log scale for the Y-axis'), - }, -}; - -export const yAxisBounds = { - name: 'y_axis_bounds', - config: { - type: 'BoundsControl', - label: t('Y Axis Bounds'), - renderTrigger: true, - default: [null, null], - description: t( - 'Bounds for the Y-axis. When left empty, the bounds are ' + - 'dynamically defined based on the min/max of the data. Note that ' + - "this feature will only expand the axis range. It won't " + - "narrow the data's extent.", - ), - }, -}; - -export const xAxisShowMinmax = { - name: 'x_axis_showminmax', - config: { - type: 'CheckboxControl', - label: t('X bounds'), - renderTrigger: true, - default: false, - description: t('Whether to display the min and max values of the X-axis'), - }, -}; - -export const richTooltip = { - name: 'rich_tooltip', - config: { - type: 'CheckboxControl', - label: t('Rich Tooltip'), - renderTrigger: true, - default: true, - description: t( - 'The rich tooltip shows a list of all series for that point in time', - ), - }, -}; - -export const showBarValue = { - name: 'show_bar_value', - config: { - type: 'CheckboxControl', - label: t('Bar Values'), - default: false, - renderTrigger: true, - description: t('Show the value on top of the bar'), - }, -}; - -export const barStacked = { - name: 'bar_stacked', - config: { - type: 'CheckboxControl', - label: t('Stacked Bars'), - renderTrigger: true, - default: false, - description: null, - }, -}; - -export const reduceXTicks = { - name: 'reduce_x_ticks', - config: { - type: 'CheckboxControl', - label: t('Reduce X ticks'), - renderTrigger: true, - default: false, - description: t( - 'Reduces the number of X-axis ticks to be rendered. ' + - 'If true, the x-axis will not overflow and labels may be ' + - 'missing. If false, a minimum width will be applied ' + - 'to columns and the width may overflow into an ' + - 'horizontal scroll.', - ), - }, -}; - -export const yAxisLabel = { - name: 'y_axis_label', - config: { - type: 'TextControl', - label: t('Y Axis Label'), - renderTrigger: true, - default: '', - }, -}; diff --git a/superset-frontend/src/explore/controlPanels/TimePivot.js b/superset-frontend/src/explore/controlPanels/TimePivot.js deleted file mode 100644 index 3592910958..0000000000 --- a/superset-frontend/src/explore/controlPanels/TimePivot.js +++ /dev/null @@ -1,125 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -import { t } from '@superset-ui/translation'; -import { D3_FORMAT_OPTIONS } from '../controls'; -import { - lineInterpolation, - showLegend, - xAxisLabel, - bottomMargin, - xAxisFormat, - yLogScale, - yAxisBounds, - xAxisShowMinmax, - yAxisShowMinmax, - yAxisLabel, - leftMargin, -} from './Shared_NVD3'; - -export default { - requiresTime: true, - controlPanelSections: [ - { - label: t('Query'), - expanded: true, - controlSetRows: [ - ['metric'], - ['adhoc_filters'], - [ - { - name: 'freq', - config: { - type: 'SelectControl', - label: t('Frequency'), - default: 'W-MON', - freeForm: true, - clearable: false, - choices: [ - ['AS', 'Year (freq=AS)'], - ['52W-MON', '52 weeks starting Monday (freq=52W-MON)'], - ['W-SUN', '1 week starting Sunday (freq=W-SUN)'], - ['W-MON', '1 week starting Monday (freq=W-MON)'], - ['D', 'Day (freq=D)'], - ['4W-MON', '4 weeks (freq=4W-MON)'], - ], - description: t( - `The periodicity over which to pivot time. Users can provide - "Pandas" offset alias. - Click on the info bubble for more details on accepted "freq" expressions.`, - ), - tooltipOnClick: () => { - window.open( - 'https://pandas.pydata.org/pandas-docs/stable/timeseries.html#offset-aliases', - ); - }, - }, - }, - ], - ], - }, - { - label: t('Chart Options'), - expanded: true, - controlSetRows: [ - [showLegend, lineInterpolation], - ['color_picker', null], - ], - }, - { - label: t('X Axis'), - expanded: true, - controlSetRows: [ - [xAxisLabel, bottomMargin], - [ - xAxisShowMinmax, - { - name: xAxisFormat.name, - config: { - ...xAxisFormat.config, - default: 'SMART_NUMBER', - choices: D3_FORMAT_OPTIONS, - }, - }, - ], - ], - }, - { - label: t('Y Axis'), - expanded: true, - controlSetRows: [ - [yAxisLabel, leftMargin], - [yAxisShowMinmax, yLogScale], - ['y_axis_format', yAxisBounds], - ], - }, - ], - controlOverrides: { - metric: { - clearable: false, - }, - }, - sectionOverrides: { - druidTimeSeries: { - controlSetRows: [['granularity', 'druid_time_origin'], ['time_range']], - }, - sqlaTimeSeries: { - controlSetRows: [['granularity_sqla', 'time_grain_sqla'], ['time_range']], - }, - }, -}; diff --git a/superset-frontend/src/explore/controlPanels/Treemap.js b/superset-frontend/src/explore/controlPanels/Treemap.js deleted file mode 100644 index 10eafc798f..0000000000 --- a/superset-frontend/src/explore/controlPanels/Treemap.js +++ /dev/null @@ -1,74 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -import { t } from '@superset-ui/translation'; -import { D3_FORMAT_OPTIONS, D3_FORMAT_DOCS } from '../controls'; - -export default { - controlPanelSections: [ - { - label: t('Query'), - expanded: true, - controlSetRows: [ - ['metrics'], - ['adhoc_filters'], - ['groupby'], - ['row_limit'], - ], - }, - { - label: t('Chart Options'), - expanded: true, - controlSetRows: [ - ['color_scheme', 'label_colors'], - [ - { - name: 'treemap_ratio', - config: { - type: 'TextControl', - label: t('Ratio'), - renderTrigger: true, - isFloat: true, - default: 0.5 * (1 + Math.sqrt(5)), // d3 default, golden ratio - description: t('Target aspect ratio for treemap tiles.'), - }, - }, - ], - [ - { - name: 'number_format', - config: { - type: 'SelectControl', - freeForm: true, - label: t('Number format'), - renderTrigger: true, - default: 'SMART_NUMBER', - choices: D3_FORMAT_OPTIONS, - description: D3_FORMAT_DOCS, - }, - }, - ], - ], - }, - ], - controlOverrides: { - color_scheme: { - renderTrigger: false, - }, - }, -}; diff --git a/superset-frontend/src/explore/controlPanels/WorldMap.js b/superset-frontend/src/explore/controlPanels/WorldMap.js deleted file mode 100644 index d4c0dfbae8..0000000000 --- a/superset-frontend/src/explore/controlPanels/WorldMap.js +++ /dev/null @@ -1,107 +0,0 @@ -/** - * Licensed to the Apache Software Foundation (ASF) under one - * or more contributor license agreements. See the NOTICE file - * distributed with this work for additional information - * regarding copyright ownership. The ASF licenses this file - * to you under the Apache License, Version 2.0 (the - * "License"); you may not use this file except in compliance - * with the License. You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, - * software distributed under the License is distributed on an - * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY - * KIND, either express or implied. See the License for the - * specific language governing permissions and limitations - * under the License. - */ -import { t } from '@superset-ui/translation'; -import { formatSelectOptions } from '../../modules/utils'; - -export default { - controlPanelSections: [ - { - label: t('Query'), - expanded: true, - controlSetRows: [ - ['entity'], - [ - { - name: 'country_fieldtype', - config: { - type: 'SelectControl', - label: t('Country Field Type'), - default: 'cca2', - choices: [ - ['name', 'Full name'], - ['cioc', 'code International Olympic Committee (cioc)'], - ['cca2', 'code ISO 3166-1 alpha-2 (cca2)'], - ['cca3', 'code ISO 3166-1 alpha-3 (cca3)'], - ], - description: t( - 'The country code standard that Superset should expect ' + - 'to find in the [country] column', - ), - }, - }, - ], - ['metric'], - ['adhoc_filters'], - ['row_limit'], - ], - }, - { - label: t('Bubbles'), - controlSetRows: [ - [ - { - name: 'show_bubbles', - config: { - type: 'CheckboxControl', - label: t('Show Bubbles'), - default: false, - renderTrigger: true, - description: t('Whether to display bubbles on top of countries'), - }, - }, - ], - ['secondary_metric'], - [ - { - name: 'max_bubble_size', - config: { - type: 'SelectControl', - freeForm: true, - label: t('Max Bubble Size'), - default: '25', - choices: formatSelectOptions([ - '5', - '10', - '15', - '25', - '50', - '75', - '100', - ]), - }, - }, - ], - ], - }, - ], - controlOverrides: { - entity: { - label: t('Country Control'), - description: t('3 letter code of the country'), - }, - metric: { - label: t('Metric for color'), - description: t('Metric that defines the color of the country'), - }, - secondary_metric: { - label: t('Bubble size'), - description: t('Metric that defines the size of the bubble'), - }, - }, -}; diff --git a/superset-frontend/src/setup/setupPlugins.ts b/superset-frontend/src/setup/setupPlugins.ts index e6d85f9243..a94fc2e91b 100644 --- a/superset-frontend/src/setup/setupPlugins.ts +++ b/superset-frontend/src/setup/setupPlugins.ts @@ -20,13 +20,6 @@ import { getChartControlPanelRegistry } from '@superset-ui/chart'; import MainPreset from '../visualizations/presets/MainPreset'; import setupPluginsExtra from './setupPluginsExtra'; -import Area from '../explore/controlPanels/Area'; -import Bar from '../explore/controlPanels/Bar'; -import BoxPlot from '../explore/controlPanels/BoxPlot'; -import Bubble from '../explore/controlPanels/Bubble'; -import Bullet from '../explore/controlPanels/Bullet'; -import Chord from '../explore/controlPanels/Chord'; -import Compare from '../explore/controlPanels/Compare'; import CountryMap from '../explore/controlPanels/CountryMap'; import DeckArc from '../explore/controlPanels/DeckArc'; import DeckGeojson from '../explore/controlPanels/DeckGeojson'; @@ -38,71 +31,42 @@ import DeckPolygon from '../explore/controlPanels/DeckPolygon'; import DeckScatter from '../explore/controlPanels/DeckScatter'; import DeckScreengrid from '../explore/controlPanels/DeckScreengrid'; import DirectedForce from '../explore/controlPanels/DirectedForce'; -import DistBar from '../explore/controlPanels/DistBar'; -import DualLine from '../explore/controlPanels/DualLine'; import EventFlow from '../explore/controlPanels/EventFlow'; import FilterBox from '../explore/controlPanels/FilterBox'; import Heatmap from '../explore/controlPanels/Heatmap'; import Histogram from '../explore/controlPanels/Histogram'; import Horizon from '../explore/controlPanels/Horizon'; import Iframe from '../explore/controlPanels/Iframe'; -import Line from '../explore/controlPanels/Line'; -import LineMulti from '../explore/controlPanels/LineMulti'; import Mapbox from '../explore/controlPanels/Mapbox'; import Markup from '../explore/controlPanels/Markup'; import PairedTtest from '../explore/controlPanels/PairedTtest'; import Para from '../explore/controlPanels/Para'; import Partition from '../explore/controlPanels/Partition'; -import Pie from '../explore/controlPanels/Pie'; -import PivotTable from '../explore/controlPanels/PivotTable'; -import Rose from '../explore/controlPanels/Rose'; -import Sankey from '../explore/controlPanels/Sankey'; import Separator from '../explore/controlPanels/Separator'; import Table from '../explore/controlPanels/Table'; -import TimePivot from '../explore/controlPanels/TimePivot'; import TimeTable from '../explore/controlPanels/TimeTable'; -import Treemap from '../explore/controlPanels/Treemap'; -import WorldMap from '../explore/controlPanels/WorldMap'; export default function setupPlugins() { new MainPreset().register(); // TODO: Remove these shims once the control panel configs are moved into the plugin package. getChartControlPanelRegistry() - .registerValue('area', Area) - .registerValue('bar', Bar) - .registerValue('box_plot', BoxPlot) - .registerValue('bubble', Bubble) - .registerValue('bullet', Bullet) - .registerValue('chord', Chord) - .registerValue('compare', Compare) .registerValue('country_map', CountryMap) .registerValue('directed_force', DirectedForce) - .registerValue('dist_bar', DistBar) - .registerValue('dual_line', DualLine) .registerValue('event_flow', EventFlow) .registerValue('filter_box', FilterBox) .registerValue('heatmap', Heatmap) .registerValue('histogram', Histogram) .registerValue('horizon', Horizon) .registerValue('iframe', Iframe) - .registerValue('line', Line) - .registerValue('line_multi', LineMulti) .registerValue('mapbox', Mapbox) .registerValue('markup', Markup) .registerValue('paired_ttest', PairedTtest) .registerValue('para', Para) .registerValue('partition', Partition) - .registerValue('pie', Pie) - .registerValue('pivot_table', PivotTable) - .registerValue('rose', Rose) - .registerValue('sankey', Sankey) .registerValue('separator', Separator) .registerValue('table', Table) - .registerValue('time_pivot', TimePivot) .registerValue('time_table', TimeTable) - .registerValue('treemap', Treemap) - .registerValue('world_map', WorldMap) .registerValue('deck_arc', DeckArc) .registerValue('deck_geojson', DeckGeojson) .registerValue('deck_grid', DeckGrid)