@icij/murmur-next 4.7.0 → 4.7.2
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/dist/lib/.storybook/main.d.ts +3 -0
- package/dist/lib/.storybook/manager.d.ts +1 -0
- package/dist/lib/.storybook/preview.d.ts +57 -0
- package/dist/lib/.storybook/utils.d.ts +21 -0
- package/dist/lib/lib/components/Button/ButtonIcon.vue.d.ts +182 -0
- package/dist/lib/lib/components/FollowUsPopover/FollowUsPopover.vue.d.ts +2 -0
- package/dist/lib/{main.d.ts → lib/main.d.ts} +1 -1
- package/dist/lib/lib/types/components.d.ts +30 -0
- package/dist/lib/{types → lib/types}/index.d.ts +0 -1
- package/dist/lib/lib/types/maps.d.ts +18 -0
- package/dist/lib/murmur.css +1 -1
- package/dist/lib/murmur.js +45 -44
- package/dist/lib/murmur.js.map +1 -1
- package/dist/lib/murmur.umd.cjs +4 -4
- package/dist/lib/murmur.umd.cjs.map +1 -1
- package/dist/lib/stories/murmur/decorators.d.ts +64 -0
- package/dist/lib/stories/murmur/maps/fixtures/index.d.ts +2 -0
- package/dist/lib/stories/murmur/maps/fixtures/motorVehiclesData.d.ts +1 -0
- package/dist/lib/stories/murmur/maps/fixtures/wineStockData.d.ts +1 -0
- package/dist/lib/stories/murmur/utils.d.ts +1 -0
- package/lib/components/App/AppIcon.vue +5 -0
- package/lib/components/Button/ButtonIcon.vue +156 -1
- package/lib/main.ts +2 -12
- package/lib/types/components.ts +2 -47
- package/lib/types/index.ts +0 -1
- package/lib/types/maps.ts +0 -294
- package/package.json +1 -1
- package/dist/lib/components/Button/ButtonIcon.vue.d.ts +0 -23
- package/dist/lib/types/components.d.ts +0 -77
- package/dist/lib/types/datavisualisations.d.ts +0 -374
- package/dist/lib/types/maps.d.ts +0 -309
- package/lib/types/datavisualisations.ts +0 -375
- /package/dist/lib/{components/Brand/Brand.vue.d.ts → .storybook/theme.d.ts} +0 -0
- /package/dist/lib/{components → lib/components}/Accordion/AccordionStep.vue.d.ts +0 -0
- /package/dist/lib/{components → lib/components}/Accordion/AccordionWrapper.vue.d.ts +0 -0
- /package/dist/lib/{components → lib/components}/ActiveTextTruncate/ActiveTextTruncate.vue.d.ts +0 -0
- /package/dist/lib/{components → lib/components}/App/AppFooter.vue.d.ts +0 -0
- /package/dist/lib/{components → lib/components}/App/AppHeader.vue.d.ts +0 -0
- /package/dist/lib/{components → lib/components}/App/AppIcon.vue.d.ts +0 -0
- /package/dist/lib/{components → lib/components}/App/AppIconLayers.vue.d.ts +0 -0
- /package/dist/lib/{components/FollowUsPopover/FollowUsPopover.vue.d.ts → lib/components/Brand/Brand.vue.d.ts} +0 -0
- /package/dist/lib/{components → lib/components}/Brand/BrandExpansion.vue.d.ts +0 -0
- /package/dist/lib/{components → lib/components}/Button/ButtonConfirm.vue.d.ts +0 -0
- /package/dist/lib/{components → lib/components}/Button/ButtonIconCounter.vue.d.ts +0 -0
- /package/dist/lib/{components → lib/components}/ContentPlaceholder/ContentPlaceholder.vue.d.ts +0 -0
- /package/dist/lib/{components → lib/components}/EmbeddableFooter/EmbeddableFooter.vue.d.ts +0 -0
- /package/dist/lib/{components → lib/components}/Form/FormAdvancedLink/FormAdvancedLink.vue.d.ts +0 -0
- /package/dist/lib/{components → lib/components}/Form/FormAdvancedLink/FormAdvancedLinkTab.vue.d.ts +0 -0
- /package/dist/lib/{components → lib/components}/Form/FormControl/FormControlDigits.vue.d.ts +0 -0
- /package/dist/lib/{components → lib/components}/Form/FormControl/FormControlRange.vue.d.ts +0 -0
- /package/dist/lib/{components → lib/components}/Form/FormControl/FormControlSecret.vue.d.ts +0 -0
- /package/dist/lib/{components → lib/components}/Form/FormControl/FormControlSelectableDropdown.vue.d.ts +0 -0
- /package/dist/lib/{components → lib/components}/Form/FormDonate.vue.d.ts +0 -0
- /package/dist/lib/{components → lib/components}/Form/FormEmbed.vue.d.ts +0 -0
- /package/dist/lib/{components → lib/components}/Form/FormSignUp.vue.d.ts +0 -0
- /package/dist/lib/{components → lib/components}/HapticCopy/HapticCopy.vue.d.ts +0 -0
- /package/dist/lib/{components → lib/components}/ImageMode/ImageMode.vue.d.ts +0 -0
- /package/dist/lib/{components → lib/components}/ImageMode/ImageModeSource.vue.d.ts +0 -0
- /package/dist/lib/{components → lib/components}/Legend/LegendOrdinal.vue.d.ts +0 -0
- /package/dist/lib/{components → lib/components}/Legend/LegendScale.vue.d.ts +0 -0
- /package/dist/lib/{components → lib/components}/Pagination/Pagination.vue.d.ts +0 -0
- /package/dist/lib/{components → lib/components}/Pagination/PaginationTiny.vue.d.ts +0 -0
- /package/dist/lib/{components → lib/components}/ResponsiveIframe/ResponsiveIframe.vue.d.ts +0 -0
- /package/dist/lib/{components → lib/components}/SharingOptions/SharingOptions.vue.d.ts +0 -0
- /package/dist/lib/{components → lib/components}/SharingOptions/SharingOptionsLink.vue.d.ts +0 -0
- /package/dist/lib/{components → lib/components}/SlideUpDown/SlideUpDown.vue.d.ts +0 -0
- /package/dist/lib/{components → lib/components}/TexturedDeck/TexturedDeck.vue.d.ts +0 -0
- /package/dist/lib/{components → lib/components}/index.d.ts +0 -0
- /package/dist/lib/{composables → lib/composables}/useChart.d.ts +0 -0
- /package/dist/lib/{composables → lib/composables}/useColorMode.d.ts +0 -0
- /package/dist/lib/{composables → lib/composables}/useQueryObserver.d.ts +0 -0
- /package/dist/lib/{composables → lib/composables}/useResizeObserver.d.ts +0 -0
- /package/dist/lib/{composables → lib/composables}/useSendEmail.d.ts +0 -0
- /package/dist/lib/{config.d.ts → lib/config.d.ts} +0 -0
- /package/dist/lib/{config.default.d.ts → lib/config.default.d.ts} +0 -0
- /package/dist/lib/{datavisualisations → lib/datavisualisations}/BarChart/BarChart.vue.d.ts +0 -0
- /package/dist/lib/{datavisualisations → lib/datavisualisations}/ColumnChart/ColumnChart.vue.d.ts +0 -0
- /package/dist/lib/{datavisualisations → lib/datavisualisations}/LineChart/LineChart.vue.d.ts +0 -0
- /package/dist/lib/{datavisualisations → lib/datavisualisations}/StackedBarChart/StackedBarChart.vue.d.ts +0 -0
- /package/dist/lib/{datavisualisations → lib/datavisualisations}/StackedColumnChart/StackedColumnChart.vue.d.ts +0 -0
- /package/dist/lib/{datavisualisations → lib/datavisualisations}/index.d.ts +0 -0
- /package/dist/lib/{directives → lib/directives}/EllipsisTooltip.d.ts +0 -0
- /package/dist/lib/{enums.d.ts → lib/enums.d.ts} +0 -0
- /package/dist/lib/{i18n.d.ts → lib/i18n.d.ts} +0 -0
- /package/dist/lib/{keys.d.ts → lib/keys.d.ts} +0 -0
- /package/dist/lib/{maps → lib/maps}/ChoroplethMap/ChoroplethMap.vue.d.ts +0 -0
- /package/dist/lib/{maps → lib/maps}/ChoroplethMap/ChoroplethMapAnnotation.vue.d.ts +0 -0
- /package/dist/lib/{maps → lib/maps}/SymbolMap/SymbolMap.vue.d.ts +0 -0
- /package/dist/lib/{types → lib/types}/icons.d.ts +0 -0
- /package/dist/lib/{types → lib/types}/utils.d.ts +0 -0
- /package/dist/lib/{utils → lib/utils}/animation.d.ts +0 -0
- /package/dist/lib/{utils → lib/utils}/assets.d.ts +0 -0
- /package/dist/lib/{utils → lib/utils}/clipboard.d.ts +0 -0
- /package/dist/lib/{utils → lib/utils}/floatingUi.d.ts +0 -0
- /package/dist/lib/{utils → lib/utils}/iframe-resizer.d.ts +0 -0
- /package/dist/lib/{utils → lib/utils}/placeholder.d.ts +0 -0
- /package/dist/lib/{utils → lib/utils}/strings.d.ts +0 -0
package/dist/lib/types/maps.d.ts
DELETED
|
@@ -1,309 +0,0 @@
|
|
|
1
|
-
import { ComputedRef, Ref } from '../../node_modules/vue';
|
|
2
|
-
import { GeoProjection } from 'd3-geo';
|
|
3
|
-
import { PopoverPlacement } from 'bootstrap-vue-next';
|
|
4
|
-
import { ParentKey } from '../keys';
|
|
5
|
-
import { PLACEMENTS } from '../enums';
|
|
6
|
-
export interface MapTransform {
|
|
7
|
-
k: number;
|
|
8
|
-
x: number;
|
|
9
|
-
y: number;
|
|
10
|
-
rotateX: number;
|
|
11
|
-
rotateY: number;
|
|
12
|
-
}
|
|
13
|
-
export interface ParentMap {
|
|
14
|
-
mapRect: Ref<DOMRect>;
|
|
15
|
-
mapTransform: Ref<MapTransform>;
|
|
16
|
-
rotatingMapProjection: ComputedRef<GeoProjection | (() => number[])>;
|
|
17
|
-
}
|
|
18
|
-
export interface ParentMapProvide {
|
|
19
|
-
[ParentKey]: ParentMap;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* ChoroplethMap component props
|
|
23
|
-
*/
|
|
24
|
-
export interface ChoroplethMapProps {
|
|
25
|
-
/**
|
|
26
|
-
* Covers the empty values with a hatched pattern.
|
|
27
|
-
*/
|
|
28
|
-
hatchEmpty?: boolean;
|
|
29
|
-
/**
|
|
30
|
-
* Hide the legend of the map.
|
|
31
|
-
*/
|
|
32
|
-
hideLegend?: boolean;
|
|
33
|
-
/**
|
|
34
|
-
* Change the scale function used to get calculate a feature color.
|
|
35
|
-
*/
|
|
36
|
-
featureColorScale?: ((v: any) => string) | null;
|
|
37
|
-
/**
|
|
38
|
-
* Change the color of the outline.
|
|
39
|
-
*/
|
|
40
|
-
outlineColor?: string;
|
|
41
|
-
/**
|
|
42
|
-
* Change the color of the graticule.
|
|
43
|
-
*/
|
|
44
|
-
graticuleColor?: string;
|
|
45
|
-
/**
|
|
46
|
-
* Maximum value to use in the color scale.
|
|
47
|
-
*/
|
|
48
|
-
max?: number | null;
|
|
49
|
-
/**
|
|
50
|
-
* Minimum value to use in the color scale.
|
|
51
|
-
*/
|
|
52
|
-
min?: number | null;
|
|
53
|
-
/**
|
|
54
|
-
* If true the map should be clickable (and zoom on a given feature).
|
|
55
|
-
*/
|
|
56
|
-
clickable?: boolean;
|
|
57
|
-
/**
|
|
58
|
-
* Field in the topojson containing all the feature objects.
|
|
59
|
-
*/
|
|
60
|
-
topojsonObjects?: string;
|
|
61
|
-
/**
|
|
62
|
-
* Field in the topojson objects containing the id of a feature. This field supports dot notation for nested values.
|
|
63
|
-
*/
|
|
64
|
-
topojsonObjectsPath?: string | string[];
|
|
65
|
-
/**
|
|
66
|
-
* URL of the topojson.
|
|
67
|
-
*/
|
|
68
|
-
topojsonUrl?: string;
|
|
69
|
-
/**
|
|
70
|
-
* Duration of the transitions.
|
|
71
|
-
*/
|
|
72
|
-
transitionDuration?: number;
|
|
73
|
-
/**
|
|
74
|
-
* If true the user will be able to navigate in the map with drag and mouse wheel.
|
|
75
|
-
*/
|
|
76
|
-
zoomable?: boolean;
|
|
77
|
-
/**
|
|
78
|
-
* Set to true if your projection is spherical.
|
|
79
|
-
*/
|
|
80
|
-
spherical?: boolean;
|
|
81
|
-
/**
|
|
82
|
-
* Minimum zoom value.
|
|
83
|
-
*/
|
|
84
|
-
zoomMin?: number;
|
|
85
|
-
/**
|
|
86
|
-
* Maximum zoom value.
|
|
87
|
-
*/
|
|
88
|
-
zoomMax?: number;
|
|
89
|
-
/**
|
|
90
|
-
* Initial zoom value.
|
|
91
|
-
*/
|
|
92
|
-
zoom?: number | null;
|
|
93
|
-
/**
|
|
94
|
-
* Initial center of the map.
|
|
95
|
-
*/
|
|
96
|
-
center?: number[] | null;
|
|
97
|
-
/**
|
|
98
|
-
* Projection object from d3 to draw the features.
|
|
99
|
-
* @see https://d3js.org/d3-geo/projection
|
|
100
|
-
*/
|
|
101
|
-
projection?: () => GeoProjection;
|
|
102
|
-
/**
|
|
103
|
-
* If true the map will display a sphere outline around the world.
|
|
104
|
-
*/
|
|
105
|
-
outline?: boolean;
|
|
106
|
-
/**
|
|
107
|
-
* If true the map will display a graticule grid (representing parallels and meridians).
|
|
108
|
-
*/
|
|
109
|
-
graticule?: boolean;
|
|
110
|
-
/**
|
|
111
|
-
* Maximum height used by the map.
|
|
112
|
-
*/
|
|
113
|
-
height?: string;
|
|
114
|
-
/**
|
|
115
|
-
* Neutral color of the map's features.
|
|
116
|
-
*/
|
|
117
|
-
color?: string;
|
|
118
|
-
/**
|
|
119
|
-
* Neutral color of the map s features in social mode.
|
|
120
|
-
*/
|
|
121
|
-
socialColor?: string;
|
|
122
|
-
/**
|
|
123
|
-
* Data to display, either as a URL string to fetch or an object.
|
|
124
|
-
*/
|
|
125
|
-
data?: string | object[] | Record<string, number> | null;
|
|
126
|
-
/**
|
|
127
|
-
* Type of data file when fetching from URL.
|
|
128
|
-
*/
|
|
129
|
-
dataUrlType?: 'json' | 'csv' | 'tsv';
|
|
130
|
-
/**
|
|
131
|
-
* Aspect ratio (height/width) for the chart.
|
|
132
|
-
*/
|
|
133
|
-
chartHeightRatio?: number;
|
|
134
|
-
/**
|
|
135
|
-
* Enable social mode for optimal display when sharing on social media.
|
|
136
|
-
*/
|
|
137
|
-
socialMode?: boolean;
|
|
138
|
-
/**
|
|
139
|
-
* Aspect ratio to use in social mode.
|
|
140
|
-
*/
|
|
141
|
-
socialModeRatio?: number;
|
|
142
|
-
}
|
|
143
|
-
/**
|
|
144
|
-
* ChoroplethMapAnnotation component props
|
|
145
|
-
*/
|
|
146
|
-
export interface ChoroplethMapAnnotationProps {
|
|
147
|
-
/**
|
|
148
|
-
* Latitude of the annotation.
|
|
149
|
-
*/
|
|
150
|
-
latitude: number;
|
|
151
|
-
/**
|
|
152
|
-
* Longitude of the annotation.
|
|
153
|
-
*/
|
|
154
|
-
longitude: number;
|
|
155
|
-
/**
|
|
156
|
-
* Maximum height of the annotation container.
|
|
157
|
-
*/
|
|
158
|
-
height?: number;
|
|
159
|
-
/**
|
|
160
|
-
* Maximum width of the annotation container.
|
|
161
|
-
*/
|
|
162
|
-
width?: number;
|
|
163
|
-
/**
|
|
164
|
-
* If true, the annotation will scale with the map zoom.
|
|
165
|
-
*/
|
|
166
|
-
scale?: boolean;
|
|
167
|
-
/**
|
|
168
|
-
* Text color of the annotation.
|
|
169
|
-
*/
|
|
170
|
-
color?: string;
|
|
171
|
-
/**
|
|
172
|
-
* Override the default drop-shadow filter applied to the annotation.
|
|
173
|
-
*/
|
|
174
|
-
dropShadow?: string;
|
|
175
|
-
/**
|
|
176
|
-
* Radian distance from the center of the Earth after which the annotation is hidden.
|
|
177
|
-
* The Earth's circumference can be divided into 360 degrees, or 2π radians.
|
|
178
|
-
* Therefore, 1.57 radians is approximately a quarter of π (since π≈3.14), which corresponds to
|
|
179
|
-
* a quarter of the Earth's circumference.
|
|
180
|
-
*/
|
|
181
|
-
geoDistanceThreshold?: number;
|
|
182
|
-
/**
|
|
183
|
-
* Placement of the annotation. Can be: top, topleft, topright, right,
|
|
184
|
-
* righttop, rightbottom, bottom, bottomleft, bottomright, left, lefttop,
|
|
185
|
-
* and leftbottom. If `null`, the annotation will be centered.
|
|
186
|
-
*/
|
|
187
|
-
placement?: PLACEMENTS | null;
|
|
188
|
-
}
|
|
189
|
-
/**
|
|
190
|
-
* SymbolMap component props
|
|
191
|
-
*/
|
|
192
|
-
export interface SymbolMapProps {
|
|
193
|
-
/**
|
|
194
|
-
* Path in data objects to the category value for grouping markers.
|
|
195
|
-
*/
|
|
196
|
-
categoryObjectsPath?: string | string[];
|
|
197
|
-
/**
|
|
198
|
-
* Enable click-to-zoom on map features.
|
|
199
|
-
*/
|
|
200
|
-
clickable?: boolean;
|
|
201
|
-
/**
|
|
202
|
-
* Hide the legend.
|
|
203
|
-
*/
|
|
204
|
-
hideLegend?: boolean;
|
|
205
|
-
/**
|
|
206
|
-
* Hide tooltips on marker hover.
|
|
207
|
-
*/
|
|
208
|
-
hideTooltip?: boolean;
|
|
209
|
-
/**
|
|
210
|
-
* Display legend items horizontally instead of vertically.
|
|
211
|
-
*/
|
|
212
|
-
horizontalLegend?: boolean;
|
|
213
|
-
/**
|
|
214
|
-
* Color for map features, or function returning color based on feature data.
|
|
215
|
-
*/
|
|
216
|
-
featureColor?: string | ((d: any) => string);
|
|
217
|
-
/**
|
|
218
|
-
* Fit map projection to marker bounds instead of feature bounds.
|
|
219
|
-
*/
|
|
220
|
-
fitToMarkers?: boolean;
|
|
221
|
-
/**
|
|
222
|
-
* Path in data objects to the label value for tooltips.
|
|
223
|
-
*/
|
|
224
|
-
labelObjectsPath?: string | string[];
|
|
225
|
-
/**
|
|
226
|
-
* Padding around the map in pixels.
|
|
227
|
-
*/
|
|
228
|
-
mapPadding?: number;
|
|
229
|
-
/**
|
|
230
|
-
* Path in data objects to the unique identifier for each marker.
|
|
231
|
-
*/
|
|
232
|
-
markerObjectsPath?: string | string[];
|
|
233
|
-
/**
|
|
234
|
-
* SVG path data for marker shape, or function returning path based on marker data.
|
|
235
|
-
*/
|
|
236
|
-
markerPath?: string | ((d: any) => string);
|
|
237
|
-
/**
|
|
238
|
-
* Color for markers. Falls back to category colors if not set.
|
|
239
|
-
*/
|
|
240
|
-
markerColor?: string | null;
|
|
241
|
-
/**
|
|
242
|
-
* Width of markers in pixels, or function returning width based on marker data.
|
|
243
|
-
*/
|
|
244
|
-
markerWidth?: number | ((d: any) => number);
|
|
245
|
-
/**
|
|
246
|
-
* Disable marker scaling when zooming the map.
|
|
247
|
-
*/
|
|
248
|
-
noMarkersScale?: boolean;
|
|
249
|
-
/**
|
|
250
|
-
* Custom CSS class to apply to tooltips.
|
|
251
|
-
*/
|
|
252
|
-
tooltipCustomClass?: string | null;
|
|
253
|
-
/**
|
|
254
|
-
* Placement of tooltips relative to markers.
|
|
255
|
-
*/
|
|
256
|
-
tooltipPlacement?: PopoverPlacement;
|
|
257
|
-
/**
|
|
258
|
-
* Fallback placement(s) for tooltips when preferred placement is not available.
|
|
259
|
-
*/
|
|
260
|
-
tooltipFallbackPlacement?: string[] | string;
|
|
261
|
-
/**
|
|
262
|
-
* Name of the TopoJSON objects collection to render as map features.
|
|
263
|
-
*/
|
|
264
|
-
topojsonObjects?: string;
|
|
265
|
-
/**
|
|
266
|
-
* Path in TopoJSON feature properties to the identifier.
|
|
267
|
-
*/
|
|
268
|
-
topojsonObjectsPath?: string | string[];
|
|
269
|
-
/**
|
|
270
|
-
* URL to fetch TopoJSON data from.
|
|
271
|
-
*/
|
|
272
|
-
topojsonUrl?: string;
|
|
273
|
-
/**
|
|
274
|
-
* Duration of zoom transitions in milliseconds.
|
|
275
|
-
*/
|
|
276
|
-
transitionDuration?: number;
|
|
277
|
-
/**
|
|
278
|
-
* Enable zoom and pan interactions on the map.
|
|
279
|
-
*/
|
|
280
|
-
zoomable?: boolean;
|
|
281
|
-
/**
|
|
282
|
-
* Minimum zoom level.
|
|
283
|
-
*/
|
|
284
|
-
zoomMin?: number;
|
|
285
|
-
/**
|
|
286
|
-
* Maximum zoom level.
|
|
287
|
-
*/
|
|
288
|
-
zoomMax?: number;
|
|
289
|
-
/**
|
|
290
|
-
* Data to display, either as a URL string to fetch or an array of objects.
|
|
291
|
-
*/
|
|
292
|
-
data?: string | object[] | null;
|
|
293
|
-
/**
|
|
294
|
-
* Type of data file when fetching from URL.
|
|
295
|
-
*/
|
|
296
|
-
dataUrlType?: 'json' | 'csv' | 'tsv';
|
|
297
|
-
/**
|
|
298
|
-
* Aspect ratio (height/width) for the chart.
|
|
299
|
-
*/
|
|
300
|
-
chartHeightRatio?: number;
|
|
301
|
-
/**
|
|
302
|
-
* Enable social mode for optimal display when sharing on social media.
|
|
303
|
-
*/
|
|
304
|
-
socialMode?: boolean;
|
|
305
|
-
/**
|
|
306
|
-
* Aspect ratio to use in social mode.
|
|
307
|
-
*/
|
|
308
|
-
socialModeRatio?: number;
|
|
309
|
-
}
|
|
@@ -1,375 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Datavisualisation component prop types
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Common chart props shared by all chart components
|
|
7
|
-
*/
|
|
8
|
-
export interface BaseChartProps {
|
|
9
|
-
/**
|
|
10
|
-
* Data to display, either as a URL string to fetch or an array of objects.
|
|
11
|
-
*/
|
|
12
|
-
data?: string | object[] | null
|
|
13
|
-
/**
|
|
14
|
-
* Type of data file when fetching from URL.
|
|
15
|
-
*/
|
|
16
|
-
dataUrlType?: 'json' | 'csv' | 'tsv'
|
|
17
|
-
/**
|
|
18
|
-
* Aspect ratio (height/width) for the chart.
|
|
19
|
-
*/
|
|
20
|
-
chartHeightRatio?: number
|
|
21
|
-
/**
|
|
22
|
-
* Enable social mode for optimal display when sharing on social media.
|
|
23
|
-
*/
|
|
24
|
-
socialMode?: boolean
|
|
25
|
-
/**
|
|
26
|
-
* Aspect ratio to use in social mode.
|
|
27
|
-
*/
|
|
28
|
-
socialModeRatio?: number
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* BarChart component props
|
|
33
|
-
*/
|
|
34
|
-
export interface BarChartProps extends BaseChartProps {
|
|
35
|
-
/**
|
|
36
|
-
* Height of each bar in pixels.
|
|
37
|
-
*/
|
|
38
|
-
barHeight?: number
|
|
39
|
-
/**
|
|
40
|
-
* Vertical gap between bars in pixels.
|
|
41
|
-
*/
|
|
42
|
-
barGap?: number
|
|
43
|
-
/**
|
|
44
|
-
* Color of the bars. Falls back to theme's dark color.
|
|
45
|
-
*/
|
|
46
|
-
barColor?: string | null
|
|
47
|
-
/**
|
|
48
|
-
* Color of highlighted bars. Falls back to theme's primary color.
|
|
49
|
-
*/
|
|
50
|
-
barHighlightColor?: string | null
|
|
51
|
-
/**
|
|
52
|
-
* Fixed width for labels in pixels. If not set, width is calculated automatically.
|
|
53
|
-
*/
|
|
54
|
-
fixedLabelWidth?: number | null
|
|
55
|
-
/**
|
|
56
|
-
* Fixed width for values in pixels. If not set, width is calculated automatically.
|
|
57
|
-
*/
|
|
58
|
-
fixedValueWidth?: number | null
|
|
59
|
-
/**
|
|
60
|
-
* Horizontal gap between labels and bars in pixels.
|
|
61
|
-
*/
|
|
62
|
-
labelGap?: number
|
|
63
|
-
/**
|
|
64
|
-
* Horizontal gap between bars and their values in pixels.
|
|
65
|
-
*/
|
|
66
|
-
valueGap?: number
|
|
67
|
-
/**
|
|
68
|
-
* Field name(s) to sort the data by.
|
|
69
|
-
*/
|
|
70
|
-
sortBy?: string | string[] | null
|
|
71
|
-
/**
|
|
72
|
-
* Formatter function or d3 format string for x-axis tick values.
|
|
73
|
-
*/
|
|
74
|
-
xAxisTickFormat?: ((v: number | string) => string) | string
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* ColumnChart component props
|
|
79
|
-
*/
|
|
80
|
-
export interface ColumnChartProps extends BaseChartProps {
|
|
81
|
-
/**
|
|
82
|
-
* Color of the columns. Falls back to theme's dark color.
|
|
83
|
-
*/
|
|
84
|
-
columnColor?: string | null
|
|
85
|
-
/**
|
|
86
|
-
* Color of highlighted columns. Falls back to theme's primary color.
|
|
87
|
-
*/
|
|
88
|
-
columnHighlightColor?: string | null
|
|
89
|
-
/**
|
|
90
|
-
* Fixed height for the chart in pixels. If not set, height is calculated from width.
|
|
91
|
-
*/
|
|
92
|
-
fixedHeight?: number | null
|
|
93
|
-
/**
|
|
94
|
-
* Fixed width for y-axis labels in pixels. If not set, width is calculated automatically.
|
|
95
|
-
*/
|
|
96
|
-
fixedLabelWidth?: number | null
|
|
97
|
-
/**
|
|
98
|
-
* Field name in data objects containing the value to display.
|
|
99
|
-
*/
|
|
100
|
-
seriesName?: string
|
|
101
|
-
/**
|
|
102
|
-
* Collapse x-axis ticks to prevent overlapping when there are many data points.
|
|
103
|
-
*/
|
|
104
|
-
xAxisTickCollapse?: boolean
|
|
105
|
-
/**
|
|
106
|
-
* Formatter function or d3 format string for x-axis tick labels.
|
|
107
|
-
*/
|
|
108
|
-
xAxisTickFormat?: ((v: number | string) => string) | string
|
|
109
|
-
/**
|
|
110
|
-
* Explicit list of x-axis tick values to display.
|
|
111
|
-
*/
|
|
112
|
-
xAxisTicks?: string[] | null
|
|
113
|
-
/**
|
|
114
|
-
* Formatter function or d3 format string for y-axis tick labels.
|
|
115
|
-
*/
|
|
116
|
-
yAxisTickFormat?: ((v: number | string) => string) | string
|
|
117
|
-
/**
|
|
118
|
-
* Number of y-axis ticks or d3 tick configuration object.
|
|
119
|
-
*/
|
|
120
|
-
yAxisTicks?: number | object
|
|
121
|
-
/**
|
|
122
|
-
* Field name(s) to sort the data by.
|
|
123
|
-
*/
|
|
124
|
-
sortBy?: string | string[] | null
|
|
125
|
-
/**
|
|
126
|
-
* Field name in data objects containing the x-axis category/time value.
|
|
127
|
-
*/
|
|
128
|
-
timeseriesKey?: string
|
|
129
|
-
/**
|
|
130
|
-
* Maximum value for the y-axis scale. If not set, derived from data.
|
|
131
|
-
*/
|
|
132
|
-
maxValue?: number | null
|
|
133
|
-
/**
|
|
134
|
-
* Disable tooltips on column hover.
|
|
135
|
-
*/
|
|
136
|
-
noTooltips?: boolean
|
|
137
|
-
/**
|
|
138
|
-
* Hide the x-axis.
|
|
139
|
-
*/
|
|
140
|
-
noXAxis?: boolean
|
|
141
|
-
/**
|
|
142
|
-
* Hide the y-axis.
|
|
143
|
-
*/
|
|
144
|
-
noYAxis?: boolean
|
|
145
|
-
/**
|
|
146
|
-
* Padding between columns as a ratio (0-1) of the column width.
|
|
147
|
-
*/
|
|
148
|
-
barPadding?: number
|
|
149
|
-
/**
|
|
150
|
-
* Margin between columns in pixels.
|
|
151
|
-
*/
|
|
152
|
-
barMargin?: number
|
|
153
|
-
/**
|
|
154
|
-
* List of timeseriesKey values to highlight.
|
|
155
|
-
*/
|
|
156
|
-
highlights?: string[]
|
|
157
|
-
/**
|
|
158
|
-
* Show placeholder bars for visual pattern.
|
|
159
|
-
*/
|
|
160
|
-
stripped?: boolean
|
|
161
|
-
/**
|
|
162
|
-
* Enable hover effects on columns.
|
|
163
|
-
*/
|
|
164
|
-
hover?: boolean
|
|
165
|
-
/**
|
|
166
|
-
* Icon component to display on column hover.
|
|
167
|
-
*/
|
|
168
|
-
hoverIcon?: string | object | object[] | null
|
|
169
|
-
/**
|
|
170
|
-
* Size of the hover icon.
|
|
171
|
-
*/
|
|
172
|
-
hoverIconSize?: string
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
/**
|
|
176
|
-
* LineChart component props
|
|
177
|
-
*/
|
|
178
|
-
export interface LineChartProps extends BaseChartProps {
|
|
179
|
-
/**
|
|
180
|
-
* Color of the line. Falls back to theme's dark color.
|
|
181
|
-
*/
|
|
182
|
-
lineColor?: string | null
|
|
183
|
-
/**
|
|
184
|
-
* Fixed width for y-axis labels in pixels. If not set, width is calculated automatically.
|
|
185
|
-
*/
|
|
186
|
-
fixedLabelWidth?: number | null
|
|
187
|
-
/**
|
|
188
|
-
* Fixed height for the chart in pixels. If not set, height is calculated from width.
|
|
189
|
-
*/
|
|
190
|
-
fixedHeight?: number | null
|
|
191
|
-
/**
|
|
192
|
-
* Field name in data objects containing the y-axis value.
|
|
193
|
-
*/
|
|
194
|
-
seriesName?: string
|
|
195
|
-
/**
|
|
196
|
-
* Number of x-axis ticks or d3 tick configuration.
|
|
197
|
-
*/
|
|
198
|
-
xAxisTicks?: object | number | ((d: Date) => string) | null
|
|
199
|
-
/**
|
|
200
|
-
* Formatter function or d3 format string for y-axis tick labels.
|
|
201
|
-
*/
|
|
202
|
-
yAxisTickFormat?: ((v: number | string) => string) | string
|
|
203
|
-
/**
|
|
204
|
-
* Number of y-axis ticks or d3 tick configuration.
|
|
205
|
-
*/
|
|
206
|
-
yAxisTicks?: object | number
|
|
207
|
-
/**
|
|
208
|
-
* Field name in data objects containing the x-axis time/date value (parsed as year).
|
|
209
|
-
*/
|
|
210
|
-
timeseriesKey?: string
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
/**
|
|
214
|
-
* StackedBarChart component props
|
|
215
|
-
*/
|
|
216
|
-
export interface StackedBarChartProps extends BaseChartProps {
|
|
217
|
-
/**
|
|
218
|
-
* Colors for each bar segment/key.
|
|
219
|
-
*/
|
|
220
|
-
barColors?: string[]
|
|
221
|
-
/**
|
|
222
|
-
* Fixed height for the chart in pixels. If not set, height is calculated automatically.
|
|
223
|
-
*/
|
|
224
|
-
fixedHeight?: number | null
|
|
225
|
-
/**
|
|
226
|
-
* Display names for each key in the legend.
|
|
227
|
-
*/
|
|
228
|
-
groups?: string[]
|
|
229
|
-
/**
|
|
230
|
-
* Hide bar segments that have no values.
|
|
231
|
-
*/
|
|
232
|
-
hideEmptyValues?: boolean
|
|
233
|
-
/**
|
|
234
|
-
* Hide the legend.
|
|
235
|
-
*/
|
|
236
|
-
hideLegend?: boolean
|
|
237
|
-
/**
|
|
238
|
-
* List of keys to highlight initially.
|
|
239
|
-
*/
|
|
240
|
-
highlights?: string[]
|
|
241
|
-
/**
|
|
242
|
-
* Delay in milliseconds before highlighting a key on hover.
|
|
243
|
-
*/
|
|
244
|
-
highlightDelay?: number
|
|
245
|
-
/**
|
|
246
|
-
* Field names in data objects containing values for each stacked segment.
|
|
247
|
-
*/
|
|
248
|
-
keys?: string[]
|
|
249
|
-
/**
|
|
250
|
-
* Position labels above the bars instead of to the left.
|
|
251
|
-
*/
|
|
252
|
-
labelAbove?: boolean
|
|
253
|
-
/**
|
|
254
|
-
* Field name in data objects containing the row label.
|
|
255
|
-
*/
|
|
256
|
-
labelField?: string
|
|
257
|
-
/**
|
|
258
|
-
* Minimum height for each bar row in pixels.
|
|
259
|
-
*/
|
|
260
|
-
minBarHeight?: number
|
|
261
|
-
/**
|
|
262
|
-
* Maximum height for each bar row in pixels.
|
|
263
|
-
*/
|
|
264
|
-
maxBarHeight?: number
|
|
265
|
-
/**
|
|
266
|
-
* Calculate bar widths relative to each row's total instead of the global maximum.
|
|
267
|
-
*/
|
|
268
|
-
relative?: boolean
|
|
269
|
-
/**
|
|
270
|
-
* Delay in milliseconds before restoring highlights to initial state.
|
|
271
|
-
*/
|
|
272
|
-
restoreHighlightDelay?: number
|
|
273
|
-
/**
|
|
274
|
-
* List of row labels to highlight.
|
|
275
|
-
*/
|
|
276
|
-
rowHighlights?: string[]
|
|
277
|
-
/**
|
|
278
|
-
* Field name(s) to sort the data by.
|
|
279
|
-
*/
|
|
280
|
-
sortBy?: string | string[] | null
|
|
281
|
-
/**
|
|
282
|
-
* Formatter function or d3 format string for bar values.
|
|
283
|
-
*/
|
|
284
|
-
xAxisTickFormat?: ((v: number | string) => string) | string
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
/**
|
|
288
|
-
* StackedColumnChart component props
|
|
289
|
-
*/
|
|
290
|
-
export interface StackedColumnChartProps extends BaseChartProps {
|
|
291
|
-
/**
|
|
292
|
-
* Field of each object containing data (for each group)
|
|
293
|
-
*/
|
|
294
|
-
keys?: string[]
|
|
295
|
-
/**
|
|
296
|
-
* Group name to display in the legend
|
|
297
|
-
*/
|
|
298
|
-
groups?: string[]
|
|
299
|
-
/**
|
|
300
|
-
* Colors of each bar group
|
|
301
|
-
*/
|
|
302
|
-
barColors?: string[]
|
|
303
|
-
/**
|
|
304
|
-
* Max with of each bar.
|
|
305
|
-
*/
|
|
306
|
-
barMaxWidth?: string
|
|
307
|
-
/**
|
|
308
|
-
* Hide bars that have no values.
|
|
309
|
-
*/
|
|
310
|
-
hideEmptyValues?: boolean
|
|
311
|
-
/**
|
|
312
|
-
* Hide the legend.
|
|
313
|
-
*/
|
|
314
|
-
hideLegend?: boolean
|
|
315
|
-
/**
|
|
316
|
-
* Enforce the height of the chart (regardless of the width or number of row)
|
|
317
|
-
*/
|
|
318
|
-
fixedHeight?: number | null
|
|
319
|
-
/**
|
|
320
|
-
* Function to apply to format x-axis ticks
|
|
321
|
-
*/
|
|
322
|
-
xAxisTickFormat?: ((v: number | string) => string) | string
|
|
323
|
-
/**
|
|
324
|
-
* Function to apply to format y-axis ticks (bars value).
|
|
325
|
-
*/
|
|
326
|
-
yAxisTickFormat?: ((v: number | string) => string) | string
|
|
327
|
-
/**
|
|
328
|
-
* Padding on y-axis ticks
|
|
329
|
-
*/
|
|
330
|
-
yAxisTickPadding?: number
|
|
331
|
-
/**
|
|
332
|
-
* Field containing the label for each column
|
|
333
|
-
*/
|
|
334
|
-
labelField?: string
|
|
335
|
-
/**
|
|
336
|
-
* Sort groups by one or several keys.
|
|
337
|
-
*/
|
|
338
|
-
sortBy?: string | string[] | null
|
|
339
|
-
/**
|
|
340
|
-
* Column height is relative to each group's total
|
|
341
|
-
*/
|
|
342
|
-
relative?: boolean
|
|
343
|
-
/**
|
|
344
|
-
* A list of highlighted groups
|
|
345
|
-
*/
|
|
346
|
-
highlights?: string[]
|
|
347
|
-
/**
|
|
348
|
-
* Delay to apply when set the first highlight
|
|
349
|
-
*/
|
|
350
|
-
highlightDelay?: number
|
|
351
|
-
/**
|
|
352
|
-
* A list of entire column to highlight
|
|
353
|
-
*/
|
|
354
|
-
columnHighlights?: string[]
|
|
355
|
-
/**
|
|
356
|
-
* Delay to apply when restoring highlights to initial state
|
|
357
|
-
*/
|
|
358
|
-
restoreHighlightDelay?: number
|
|
359
|
-
/**
|
|
360
|
-
* Deactivate direct labeling on bars
|
|
361
|
-
*/
|
|
362
|
-
noDirectLabeling?: boolean
|
|
363
|
-
/**
|
|
364
|
-
* Set max value instead of extracting it from the data.
|
|
365
|
-
*/
|
|
366
|
-
maxValue?: number | null
|
|
367
|
-
/**
|
|
368
|
-
* Function to define tooltip content.
|
|
369
|
-
*/
|
|
370
|
-
tooltipDisplay?: (params: { value?: number, formattedKey: string, formattedValue: string, key?: string }) => string
|
|
371
|
-
/**
|
|
372
|
-
* Hide bar tooltips
|
|
373
|
-
*/
|
|
374
|
-
noTooltips?: boolean
|
|
375
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/lib/{components → lib/components}/ActiveTextTruncate/ActiveTextTruncate.vue.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/lib/{components → lib/components}/ContentPlaceholder/ContentPlaceholder.vue.d.ts
RENAMED
|
File without changes
|
|
File without changes
|