@cdc/editor 4.22.10-alpha.1 → 4.22.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -7
- package/dist/cdceditor.js +42 -42
- package/example/data-horizontal-filters.json +5 -6
- package/example/data-horizontal-multiseries-filters.json +13 -15
- package/example/data-horizontal-multiseries.json +4 -5
- package/example/data-horizontal.json +2 -3
- package/example/data-vertical-filters.json +7 -8
- package/example/data-vertical-multiseries-filters.json +13 -15
- package/example/data-vertical-multiseries-multirow-filters.json +49 -52
- package/example/data-vertical-multiseries-multirow.json +11 -11
- package/example/data-vertical-multiseries.json +4 -5
- package/example/data-vertical.json +4 -5
- package/example/private/city-state.json +434 -0
- package/example/private/example-city-state.json +86 -0
- package/example/private/map-issue.csv +11 -0
- package/example/private/test.html +26 -1
- package/example/region-map.json +32 -32
- package/example/valid-county-data.json +3047 -3047
- package/package.json +8 -8
- package/src/CdcEditor.js +72 -72
- package/src/components/ChooseTab.js +67 -88
- package/src/components/ConfigureTab.js +51 -51
- package/src/components/DataImport.js +248 -246
- package/src/components/PreviewDataTable.js +130 -149
- package/src/components/TabPane.js +3 -3
- package/src/components/Tabs.js +20 -27
- package/src/components/modal/Confirmation.js +16 -13
- package/src/components/modal/Modal.js +23 -35
- package/src/components/modal/UseModal.js +8 -8
- package/src/context.js +4 -4
- package/src/index.html +1 -4
- package/src/index.js +6 -7
- package/src/scss/_data-table.scss +1 -1
- package/src/scss/_variables.scss +1 -1
- package/src/scss/choose-vis-tab.scss +63 -63
- package/src/scss/configure-tab.scss +17 -17
- package/src/scss/data-import.scss +177 -177
- package/src/scss/main.scss +31 -32
package/README.md
CHANGED
|
@@ -5,10 +5,11 @@
|
|
|
5
5
|
React component for creating configurations for the [dashboard](https://github.com/CDCgov/cdc-open-viz/tree/integration/main/dashboard), [map](https://github.com/CDCgov/cdc-open-viz/tree/main/packages/map), [chart](https://github.com/CDCgov/cdc-open-viz/tree/main/packages/chart) and [data-bite](https://github.com/CDCgov/cdc-open-viz/tree/main/packages/data-bite) packages. This package is part of the larger [CDC Open Visualization](https://github.com/CDCgov/cdc-open-viz) project.
|
|
6
6
|
|
|
7
7
|
**Examples**
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
8
|
+
|
|
9
|
+
- [Numeric Maps](https://www.cdc.gov/wcms/4.0/cdc-wp/data-presentation/examples/example-numeric-maps.html)
|
|
10
|
+
- [World Map](https://www.cdc.gov/wcms/4.0/cdc-wp/data-presentation/examples/example-world-data-map.html)
|
|
11
|
+
- [Categorical Map](https://www.cdc.gov/wcms/4.0/cdc-wp/data-presentation/examples/example-categorical-maps.html)
|
|
12
|
+
- [Filterable Map](https://www.cdc.gov/wcms/4.0/cdc-wp/data-presentation/examples/example-numeric-maps-filterable.html)
|
|
12
13
|
|
|
13
14
|
### Installation and Usage
|
|
14
15
|
|
|
@@ -42,6 +43,6 @@ For more information and example data files, see the [CDC's official guidance](h
|
|
|
42
43
|
|
|
43
44
|
### Properties
|
|
44
45
|
|
|
45
|
-
| Property
|
|
46
|
-
|
|
47
|
-
| config
|
|
46
|
+
| Property | Type | Description |
|
|
47
|
+
| -------- | ------ | ------------------------------------------------------------------------------------------------------------------------------------- | --- |
|
|
48
|
+
| config | Object | You can pass an existing config object to make changes to it with the editor. If no config is passed, it lets you start from scratch. | |
|