Commit Graph

2341 Commits

Author SHA1 Message Date
Krist Wongsuphasawat
b22f9b941a update change log and dependency (#97) 2021-11-26 11:44:42 +08:00
Krist Wongsuphasawat
74365f4271 v0.9.4 2021-11-26 11:44:42 +08:00
Krist Wongsuphasawat
d7da5ff0cb Merge branch 'kristw--template' 2021-11-26 11:44:41 +08:00
Krist Wongsuphasawat
6c3a410a0e make id optional (#96) 2021-11-26 11:44:41 +08:00
Krist Wongsuphasawat
48c881f5c3 update generator and bump build config version 2021-11-26 11:44:41 +08:00
Krist Wongsuphasawat
9863d8779f update @data-ui/config to fix build (#95)
* update @data-ui/config

* update to 39
2021-11-26 11:44:41 +08:00
Krist Wongsuphasawat
87a78ded84 Add storybooks for number-format and time-format (#93)
* add number format storybook

* Add explanation

* add time-format storybook
2021-11-26 11:44:41 +08:00
Krist Wongsuphasawat
447537f5d7 v0.9.3 2021-11-26 11:44:41 +08:00
Krist Wongsuphasawat
7a922f0527 make lerna use yarn workspaces 2021-11-26 11:44:41 +08:00
Krist Wongsuphasawat
dc363854e9 specify npm client for lerna 2021-11-26 11:44:41 +08:00
Krist Wongsuphasawat
55248c10c5 remove unnecessary dependencies 2021-11-26 11:44:41 +08:00
Krist Wongsuphasawat
34f09f40c8 update change log 2021-11-26 11:44:41 +08:00
Krist Wongsuphasawat
d16fa5d8b3 make svg ignore pointer events in getTextDimension (#92) 2021-11-26 11:44:40 +08:00
Krist Wongsuphasawat
bd3e7020a1 add scripts to copy assets to dist folders (#90) 2021-11-26 11:44:40 +08:00
Krist Wongsuphasawat
1e1cf146ca Add WordCloud plugin (#50)
* scaffold

* resolve dependency issues

* use d3 v4

* - Update peer dependencies
- Getting src to build

* Type word cloud

* Add tests for transformProps

* Update and simplify d3-cloud typing as the fix we've been waiting was merged.

* resolve all tests

* update unit tests

* fix unit test

* update readme
2021-11-26 11:44:40 +08:00
Krist Wongsuphasawat
92f7794a44 Add @superset-ui/dimension (#88)
* add code for computing text dimension

* update readme

* Add unit tests

* remove dependency

* refactor util function

* add description
2021-11-26 11:44:40 +08:00
Krist Wongsuphasawat
f389bd2fb5 Add unit test for generator to keep 100% coverage (#89) 2021-11-26 11:44:40 +08:00
Krist Wongsuphasawat
df7a49cfac Minor updates for generators (#87)
* update version in package template

* change only first letter to uppercase

* update template

* add language choice
2021-11-26 11:44:40 +08:00
Krist Wongsuphasawat
fcbd7222cd update change log 2021-11-26 11:44:40 +08:00
Krist Wongsuphasawat
0e79c602eb v0.9.2 2021-11-26 11:44:40 +08:00
Maxime Beauchemin
b12bb31bd0 [SupersetClient] Implement put and delete HTTP methods (#85)
* feat: Allow any http METHOD

* Add method to RequestConfig

* linting

* fix tests
2021-11-26 11:44:40 +08:00
Krist Wongsuphasawat
6e8fe718b1 Add more subgenerators to create package and demo in superset-ui-legacy (#86)
* feat: add new subgenerators for legacy package and demo
* feat: make the default generator provide choices to choose subgenerators
2021-11-26 11:44:40 +08:00
Krist Wongsuphasawat
2ae8d7a74d v0.9.1 2021-11-26 11:44:39 +08:00
Krist Wongsuphasawat
f4b7e0dffc update change log 2021-11-26 11:44:39 +08:00
Krist Wongsuphasawat
d9252d75d4 fix jed type export (#83) 2021-11-26 11:44:39 +08:00
Krist Wongsuphasawat
59402bbce6 v0.9.0 2021-11-26 11:44:39 +08:00
Krist Wongsuphasawat
68b97db5d7 Convert time-format to TypeScript (#78)
* convert source to TS

* fix lint

* convert unit test to TS

* fix rebasing issue

* fix typings

* use ts-ignore
2021-11-26 11:44:39 +08:00
Krist Wongsuphasawat
18746a9789 make jed work (#82) 2021-11-26 11:44:39 +08:00
Krist Wongsuphasawat
26f12af273 add legacy flag (#80) 2021-11-26 11:44:39 +08:00
Krist Wongsuphasawat
597d9b362d Convert translation to typescript (#74)
* Convert translation to typescript

* update input types

* update travis

* update node version
2021-11-26 11:44:39 +08:00
Chris Williams
458d9b9987 [deps] build-config@0.0.37 (#79)
* [deps] build-config@0.0.37

* [chart] lint SuperChart
2021-11-26 11:44:39 +08:00
Krist Wongsuphasawat
9a7e3dc7b2 Convert number-format to TypeScript (#75)
* Convert number-format to TypeScript

* return string

* unit test 100%

* Allow developer to specify return type for loader

* add doc
2021-11-26 11:44:39 +08:00
Christopher Council
56f8af889f Combined two similarly-named test files, updated release notes (#76)
* internal: Combined two similarly-named test files
* internal: Update CHANGELOG
2021-11-26 11:44:38 +08:00
Christopher Council
28a1124719 v0.8.0 (#72) 2021-11-26 11:44:38 +08:00
Christopher Council
99568b6bc8 Handle BigNumber conversions in JSON properly (without loss of precision) (#71)
* Handle BigNumber conversions in JSON properly (without loss of precision)
* Rewrap "errors" from JSONbig.parse in proper error object.
* Use DefinitelyTyped's fetch-mock type def
* Improved type def for json-bigint
* Added type casts to some tests due to addition of fetchMock type def
2021-11-26 11:44:38 +08:00
Krist Wongsuphasawat
fded8f1a1c Migrate @superset-ui/color to TypeScript (#69)
* Refactor: Convert color to TS
2021-11-26 11:44:38 +08:00
Krist Wongsuphasawat
1d62f764e2 Add SuperChart (#68)
* Add superchart and convert to ts

* fix compilation error

* fix build issue

* unit test working

* Add default width and height to ChartProps

* export SuperChart

* Add null check and update unit tests

* update unit tests

* complete test coverage

* Add generic

* reduce timeout
2021-11-26 11:44:38 +08:00
Krist Wongsuphasawat
fb6cde64d8 Convert core to TS (#62)
feat: convert core models to ts
2021-11-26 11:44:38 +08:00
Chris Williams
6c8e40c710 [build] fix typescript builds (#56)
* [build] fix typescript builds

* [typescript] ensure types pass in build

* [typescript][connection] declare modules in tests

* [typescript][connection] fix ts errors in tests

* [typescript][connection] test/types.ts => types/external.d.ts

* [chart][typescript] add @types/react-loadable

* [chart][components] convert to ts

* [charts][tests][broken] convert to ts

* [chart][typescript] re-write component generics

* [chart][typescript] fix reactify generic, add react-dom types

* [chart][typescript] more iteration

* - Tweaking reactify types (using Readonly types).
- Uncovered an issue in which ReactifyProps and Props can collide on id and className.
- Move @types/react-loadable to dev dependency
- Fixing a lint error

* [chart][deps] add @types/fetch-mock

* [client][typescript] add and export SupersetClientInterface

* [chart][clients] fix ts

* [charts][components] more ts iterations

* [chart][client] assert FormData type

* [chart][deps] try adding newest @types/react

* [chart][components][ts] fix reactify prop TS

* [chart] lint

* [chart][ts] lint #2, move @types to deps not dev-deps

* [chart][jest] fix tests

* [chart][tests] up branch coverage

* [chart][ts][test] null => undefined

* [chart][tests] hundo

* [chart][tests] update name

* [chart][ts] ChartClient type fixes
2021-11-26 11:44:38 +08:00
Conglei
908f9693f0 Revert "[Chart]Unify Metric format (#63)" (#65)
This reverts commit a97f66689ae51ad2e02101230ca959fa3e429218.
2021-11-26 11:44:38 +08:00
Conglei
9c8c0a9692 [Chart]Unify Metric format (#63)
* unify the metric format

* fix test

* fix lint

* fix lint

* change per comments in pr
2021-11-26 11:44:38 +08:00
Krist Wongsuphasawat
fcb7ded22a Add ChartClient (v2) (#57)
feat: Add ChartClient
2021-11-26 11:44:38 +08:00
Christine Chambers
07ad06f595 Allow metrics arrays in form data (#61)
Metrics can take shape of an array of metrics in form data for a given metrics key. For example, `{ metrics: ['sum__num'] }`. This PR changes Metrics class to handle the array case.
2021-11-26 11:44:38 +08:00
Christine Chambers
466084706d Make connection and color packages peer dependencies (#59)
* Make connection and color packages peer dependencies

- Also updating the version of the color package in the demo package to be the latest

* Addressing PR comments. Only updating the version of the color package in the demo package
2021-11-26 11:44:37 +08:00
Krist Wongsuphasawat
19bb506ca1 Convert chart models to TS and export additional modules (#55)
internal: Convert Chart models to ts
2021-11-26 11:44:37 +08:00
Krist Wongsuphasawat
d9163364f9 Separate SupersetClient and SupersetClientClass (#53)
feat: Export `SupersetClientClass`
internal: Increase test coverage.
2021-11-26 11:44:37 +08:00
Chris Williams
3cf863fb58 [bugfix][connection] fix client promise (#52) 2021-11-26 11:44:37 +08:00
Krist Wongsuphasawat
3b54039428 Add reactify (#51)
feat: Add `reactify` function from `incubator-superset`
2021-11-26 11:44:37 +08:00
Krist Wongsuphasawat
a4c3e7da3a Add createLoadableRenderer (#49)
feat: Add `createLoadableRenderer`
2021-11-26 11:44:37 +08:00
Christine Chambers
0f3bd0cd9c Moving query module into superset-ui from incubator-superset (#48)
* migrate query code from incubator-superset

* Getting tests to pass

- Up build-config version to pick up a fix to eslint-typescript-parser
- Remove usage of default exports in favor of named exports unless the export is the only thing being exported out of a module
- Fixing up a few linting errors

* - Remove DatasourceKey interface in favor of readonly id and type properties on the DatasourceKey class directly.
- Adding tests for DatasourceKey.
2021-11-26 11:44:37 +08:00