@icij/murmur-next 4.0.3 → 4.0.5

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.
Files changed (82) hide show
  1. package/lib/components/Brand.vue +9 -9
  2. package/lib/components/OrdinalLegend.vue +1 -1
  3. package/lib/components/RangePicker.vue +15 -8
  4. package/lib/components/SelectableDropdown.vue +2 -1
  5. package/lib/composables/chart.ts +10 -7
  6. package/lib/composables/resizeObserver.ts +1 -1
  7. package/lib/composables/sendEmail.ts +0 -1
  8. package/lib/config.ts +2 -2
  9. package/lib/locales/en.json +1 -1
  10. package/lib/locales/fr.json +1 -1
  11. package/lib/main.ts +18 -12
  12. package/lib/maps/ChoroplethMap.vue +1 -1
  13. package/lib/maps/ChoroplethMapAnnotation.vue +2 -2
  14. package/lib/maps/SymbolMap.vue +5 -4
  15. package/lib/shims-pym.d.ts +7 -0
  16. package/lib/shims-vue.d.ts +1 -1
  17. package/lib/types.ts +5 -5
  18. package/lib/utils/iframe-resizer.ts +1 -1
  19. package/lib/utils/placeholder.ts +0 -1
  20. package/package.json +44 -40
  21. package/dist/lib/components/AccordionStep.vue.d.ts +0 -79
  22. package/dist/lib/components/AccordionWrapper.vue.d.ts +0 -33
  23. package/dist/lib/components/ActiveTextTruncate.vue.d.ts +0 -101
  24. package/dist/lib/components/AdvancedLinkForm.vue.d.ts +0 -168
  25. package/dist/lib/components/Brand.vue.d.ts +0 -55
  26. package/dist/lib/components/BrandExpansion.vue.d.ts +0 -105
  27. package/dist/lib/components/ConfirmButton.vue.d.ts +0 -158
  28. package/dist/lib/components/ContentPlaceholder.vue.d.ts +0 -44
  29. package/dist/lib/components/CustomPagination.vue.d.ts +0 -130
  30. package/dist/lib/components/DigitsInput.vue.d.ts +0 -66
  31. package/dist/lib/components/DonateForm.vue.d.ts +0 -46
  32. package/dist/lib/components/EmbedForm.vue.d.ts +0 -121
  33. package/dist/lib/components/EmbeddableFooter.vue.d.ts +0 -103
  34. package/dist/lib/components/FollowUsPopover.vue.d.ts +0 -16
  35. package/dist/lib/components/GenericFooter.vue.d.ts +0 -47
  36. package/dist/lib/components/GenericHeader.vue.d.ts +0 -928
  37. package/dist/lib/components/HapticCopy.vue.d.ts +0 -156
  38. package/dist/lib/components/ImddbHeader.vue.d.ts +0 -960
  39. package/dist/lib/components/OrdinalLegend.vue.d.ts +0 -87
  40. package/dist/lib/components/RangePicker.vue.d.ts +0 -196
  41. package/dist/lib/components/ResponsiveIframe.vue.d.ts +0 -45
  42. package/dist/lib/components/ScaleLegend.vue.d.ts +0 -101
  43. package/dist/lib/components/SecretInput.vue.d.ts +0 -99
  44. package/dist/lib/components/SelectableDropdown.vue.d.ts +0 -210
  45. package/dist/lib/components/SharingOptions.vue.d.ts +0 -153
  46. package/dist/lib/components/SharingOptionsLink.vue.d.ts +0 -200
  47. package/dist/lib/components/SignUpForm.vue.d.ts +0 -141
  48. package/dist/lib/components/SlideUpDown.vue.d.ts +0 -74
  49. package/dist/lib/components/TexturedDeck.vue.d.ts +0 -89
  50. package/dist/lib/components/TinyPagination.vue.d.ts +0 -188
  51. package/dist/lib/composables/chart.d.ts +0 -48
  52. package/dist/lib/composables/resizeObserver.d.ts +0 -22
  53. package/dist/lib/composables/sendEmail.d.ts +0 -6
  54. package/dist/lib/config.d.ts +0 -19
  55. package/dist/lib/config.default.d.ts +0 -34
  56. package/dist/lib/datavisualisations/BarChart.vue.d.ts +0 -234
  57. package/dist/lib/datavisualisations/ColumnChart.vue.d.ts +0 -404
  58. package/dist/lib/datavisualisations/LineChart.vue.d.ts +0 -200
  59. package/dist/lib/datavisualisations/StackedBarChart.vue.d.ts +0 -342
  60. package/dist/lib/datavisualisations/StackedColumnChart.vue.d.ts +0 -412
  61. package/dist/lib/enums.d.ts +0 -32
  62. package/dist/lib/i18n.d.ts +0 -4
  63. package/dist/lib/keys.d.ts +0 -2
  64. package/dist/lib/main.d.ts +0 -52
  65. package/dist/lib/maps/ChoroplethMap.vue.d.ts +0 -460
  66. package/dist/lib/maps/ChoroplethMapAnnotation.vue.d.ts +0 -188
  67. package/dist/lib/maps/SymbolMap.vue.d.ts +0 -276
  68. package/dist/lib/murmur.css +0 -1
  69. package/dist/lib/murmur.js +0 -44661
  70. package/dist/lib/murmur.js.map +0 -1
  71. package/dist/lib/murmur.umd.cjs +0 -837
  72. package/dist/lib/murmur.umd.cjs.map +0 -1
  73. package/dist/lib/types.d.ts +0 -44
  74. package/dist/lib/utils/animation.d.ts +0 -8
  75. package/dist/lib/utils/assets.d.ts +0 -2
  76. package/dist/lib/utils/clipboard.d.ts +0 -2
  77. package/dist/lib/utils/iframe-resizer.d.ts +0 -10
  78. package/dist/lib/utils/placeholder.d.ts +0 -12
  79. package/dist/lib/utils/placeholderTypes.d.ts +0 -18
  80. package/dist/lib/utils/strings.d.ts +0 -1
  81. package/lib/locales/locales/en.json +0 -140
  82. package/lib/locales/locales/fr.json +0 -117
@@ -1,234 +0,0 @@
1
- /// <reference types="@/shims-vue" />
2
- /// <reference types="vue-i18n" />
3
- declare const _default: import('../../node_modules/vue').DefineComponent<{
4
- chartHeightRatio: {
5
- type: NumberConstructor; /**
6
- * Color of each highlighted bar (uses the CSS variable --bar-highlight-color by default)
7
- */
8
- }; /**
9
- * Color of each highlighted bar (uses the CSS variable --bar-highlight-color by default)
10
- */
11
- data: {
12
- default: () => string | any[];
13
- validator(value: string): boolean;
14
- type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
15
- };
16
- dataUrlType: {
17
- default: string;
18
- validator(value: string): boolean;
19
- type: StringConstructor;
20
- };
21
- socialMode: {
22
- type: BooleanConstructor;
23
- };
24
- socialModeRatio: {
25
- default: number;
26
- type: NumberConstructor;
27
- };
28
- /**
29
- * Height of each bar
30
- */
31
- barHeight: {
32
- type: NumberConstructor;
33
- default: number;
34
- };
35
- /**
36
- * Distance between each bar
37
- */
38
- barGap: {
39
- type: NumberConstructor;
40
- default: number;
41
- };
42
- /**
43
- * Color of each bar (uses the CSS variable --bar-color by default)
44
- */
45
- barColor: {
46
- type: StringConstructor;
47
- default: null;
48
- };
49
- /**
50
- * Color of each highlighted bar (uses the CSS variable --bar-highlight-color by default)
51
- */
52
- barHighlightColor: {
53
- type: StringConstructor;
54
- default: null;
55
- };
56
- /**
57
- * Enforce a width for each bar's label
58
- */
59
- fixedLabelWidth: {
60
- type: NumberConstructor;
61
- default: null;
62
- };
63
- /**
64
- * Enforce a width for each bar's value
65
- */
66
- fixedValueWidth: {
67
- type: NumberConstructor;
68
- default: null;
69
- };
70
- /**
71
- * Distance between a bar and its label
72
- */
73
- labelGap: {
74
- type: NumberConstructor;
75
- default: number;
76
- };
77
- /**
78
- * Distande between a bar and its value
79
- */
80
- valueGap: {
81
- type: NumberConstructor;
82
- default: number;
83
- };
84
- /**
85
- * Sort bars by one or several keys.
86
- */
87
- sortBy: {
88
- type: (StringConstructor | ArrayConstructor)[];
89
- default: null;
90
- };
91
- /**
92
- * Function to apply to format x axis ticks (bar value). It can be a
93
- * function returning the formatted value or a d3's formatter string.
94
- */
95
- xAxisTickFormat: {
96
- type: (StringConstructor | FunctionConstructor)[];
97
- default: () => {
98
- <T>(value: T): T;
99
- (): undefined;
100
- };
101
- };
102
- }, {
103
- el: import('../../node_modules/vue').Ref<null>;
104
- dataHasHighlights: any;
105
- width: import('../../node_modules/vue').Ref<number>;
106
- height: import('../../node_modules/vue').ComputedRef<number>;
107
- margin: import('../../node_modules/vue').ComputedRef<{
108
- left: any;
109
- right: number;
110
- top: number;
111
- bottom: number;
112
- }>;
113
- labels: import('../../node_modules/vue').ComputedRef<any>;
114
- bars: import('../../node_modules/vue').ComputedRef<any>;
115
- formatXDatum: (d: any) => any;
116
- }, unknown, {}, {}, import('../../node_modules/vue').ComponentOptionsMixin, import('../../node_modules/vue').ComponentOptionsMixin, ("resized" | "loaded")[], "resized" | "loaded", import('../../node_modules/vue').PublicProps, Readonly<import('../../node_modules/vue').ExtractPropTypes<{
117
- chartHeightRatio: {
118
- type: NumberConstructor; /**
119
- * Color of each highlighted bar (uses the CSS variable --bar-highlight-color by default)
120
- */
121
- }; /**
122
- * Color of each highlighted bar (uses the CSS variable --bar-highlight-color by default)
123
- */
124
- data: {
125
- default: () => string | any[];
126
- validator(value: string): boolean;
127
- type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
128
- };
129
- dataUrlType: {
130
- default: string;
131
- validator(value: string): boolean;
132
- type: StringConstructor;
133
- };
134
- socialMode: {
135
- type: BooleanConstructor;
136
- };
137
- socialModeRatio: {
138
- default: number;
139
- type: NumberConstructor;
140
- };
141
- /**
142
- * Height of each bar
143
- */
144
- barHeight: {
145
- type: NumberConstructor;
146
- default: number;
147
- };
148
- /**
149
- * Distance between each bar
150
- */
151
- barGap: {
152
- type: NumberConstructor;
153
- default: number;
154
- };
155
- /**
156
- * Color of each bar (uses the CSS variable --bar-color by default)
157
- */
158
- barColor: {
159
- type: StringConstructor;
160
- default: null;
161
- };
162
- /**
163
- * Color of each highlighted bar (uses the CSS variable --bar-highlight-color by default)
164
- */
165
- barHighlightColor: {
166
- type: StringConstructor;
167
- default: null;
168
- };
169
- /**
170
- * Enforce a width for each bar's label
171
- */
172
- fixedLabelWidth: {
173
- type: NumberConstructor;
174
- default: null;
175
- };
176
- /**
177
- * Enforce a width for each bar's value
178
- */
179
- fixedValueWidth: {
180
- type: NumberConstructor;
181
- default: null;
182
- };
183
- /**
184
- * Distance between a bar and its label
185
- */
186
- labelGap: {
187
- type: NumberConstructor;
188
- default: number;
189
- };
190
- /**
191
- * Distande between a bar and its value
192
- */
193
- valueGap: {
194
- type: NumberConstructor;
195
- default: number;
196
- };
197
- /**
198
- * Sort bars by one or several keys.
199
- */
200
- sortBy: {
201
- type: (StringConstructor | ArrayConstructor)[];
202
- default: null;
203
- };
204
- /**
205
- * Function to apply to format x axis ticks (bar value). It can be a
206
- * function returning the formatted value or a d3's formatter string.
207
- */
208
- xAxisTickFormat: {
209
- type: (StringConstructor | FunctionConstructor)[];
210
- default: () => {
211
- <T>(value: T): T;
212
- (): undefined;
213
- };
214
- };
215
- }>> & {
216
- onResized?: ((...args: any[]) => any) | undefined;
217
- onLoaded?: ((...args: any[]) => any) | undefined;
218
- }, {
219
- data: string | Record<string, any> | unknown[];
220
- barHeight: number;
221
- barGap: number;
222
- barColor: string;
223
- barHighlightColor: string;
224
- fixedLabelWidth: number;
225
- fixedValueWidth: number;
226
- labelGap: number;
227
- valueGap: number;
228
- sortBy: string | unknown[];
229
- xAxisTickFormat: string | Function;
230
- dataUrlType: string;
231
- socialMode: boolean;
232
- socialModeRatio: number;
233
- }, {}>;
234
- export default _default;
@@ -1,404 +0,0 @@
1
- /// <reference types="@/shims-vue" />
2
- /// <reference types="vue-i18n" />
3
- import { ComponentPublicInstance, PropType } from '../../node_modules/vue';
4
- type ColumnBar = {
5
- datum: {
6
- [timeSerie: string]: any;
7
- };
8
- width: number;
9
- height: number;
10
- x: number;
11
- y: number;
12
- };
13
- declare const _default: import('../../node_modules/vue').DefineComponent<{
14
- chartHeightRatio: {
15
- type: NumberConstructor;
16
- };
17
- data: {
18
- default: () => string | any[];
19
- validator(value: string): boolean;
20
- type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
21
- };
22
- dataUrlType: {
23
- default: string;
24
- validator(value: string): boolean;
25
- type: StringConstructor;
26
- };
27
- socialMode: {
28
- type: BooleanConstructor;
29
- };
30
- socialModeRatio: {
31
- default: number;
32
- type: NumberConstructor;
33
- };
34
- /**
35
- * Color of each column (uses the CSS variable --column-color by default)
36
- */
37
- columnColor: {
38
- type: PropType<string>;
39
- default: null;
40
- };
41
- /**
42
- * Color of each highlighted column (uses the CSS variable --column-color by default)
43
- */
44
- columnHighlightColor: {
45
- type: PropType<string>;
46
- default: null;
47
- };
48
- /**
49
- * Enforce the height of the chart (regardless of the width or the social mode)
50
- */
51
- fixedHeight: {
52
- type: PropType<number>;
53
- default: null;
54
- };
55
- /**
56
- * Enforce a width for each column's label
57
- */
58
- fixedLabelWidth: {
59
- type: PropType<number>;
60
- default: null;
61
- };
62
- /**
63
- * Name of the series (to get the value from in the data collection objects)
64
- */
65
- seriesName: {
66
- type: PropType<string>;
67
- default: string;
68
- };
69
- /**
70
- * Hide x axis ticks when no enough space
71
- */
72
- xAxisTickCollapse: {
73
- type: PropType<boolean>;
74
- default: boolean;
75
- };
76
- /**
77
- * Function to apply to format x axis ticks
78
- */
79
- xAxisTickFormat: {
80
- type: PropType<string | Function>;
81
- default: () => {
82
- <T>(value: T): T;
83
- (): undefined;
84
- };
85
- };
86
- /**
87
- * Definition of x axis ticks
88
- */
89
- xAxisTicks: {
90
- type: PropType<string[] | null>;
91
- default: null;
92
- };
93
- /**
94
- * Function to apply to format y axis ticks
95
- */
96
- yAxisTickFormat: {
97
- type: PropType<string | Function>;
98
- default: () => {
99
- <T>(value: T): T;
100
- (): undefined;
101
- };
102
- };
103
- /**
104
- * Definition of y axis ticks
105
- */
106
- yAxisTicks: {
107
- type: PropType<number | object>;
108
- default: number;
109
- };
110
- /**
111
- * Sort columns by one or several keys.
112
- */
113
- sortBy: {
114
- type: PropType<string | string[]>;
115
- default: null;
116
- };
117
- /**
118
- * Key to use for timeseries
119
- */
120
- timeseriesKey: {
121
- type: PropType<string>;
122
- default: string;
123
- };
124
- /**
125
- * Set max value instead of extracting it from the data.
126
- */
127
- maxValue: {
128
- type: PropType<number>;
129
- default: null;
130
- };
131
- /**
132
- * Hide bar tooltips
133
- */
134
- noTooltips: {
135
- type: PropType<boolean>;
136
- };
137
- /**
138
- * Hide x axis
139
- */
140
- noXAxis: {
141
- type: PropType<boolean>;
142
- };
143
- /**
144
- * Hide y axis
145
- */
146
- noYAxis: {
147
- type: PropType<boolean>;
148
- };
149
- /**
150
- * Bar padding as a portion of each bar width
151
- */
152
- barPadding: {
153
- type: PropType<number>;
154
- default: number;
155
- };
156
- /**
157
- * Bar margin in pixel
158
- */
159
- barMargin: {
160
- type: PropType<number>;
161
- default: number;
162
- };
163
- /**
164
- * A list of highlighted key
165
- */
166
- highlights: {
167
- type: PropType<string[]>;
168
- default: () => never[];
169
- };
170
- /**
171
- * Show a "placeholder" behind every bar
172
- */
173
- stripped: {
174
- type: PropType<boolean>;
175
- };
176
- /**
177
- * Show a "placeholder" behind every bar on hover
178
- */
179
- hover: {
180
- type: PropType<boolean>;
181
- };
182
- }, {
183
- el: import('../../node_modules/vue').Ref<ComponentPublicInstance<HTMLElement> | null>;
184
- dataHasHighlights: any;
185
- width: import('../../node_modules/vue').Ref<number>;
186
- height: import('../../node_modules/vue').Ref<number>;
187
- margin: import('../../node_modules/vue').ComputedRef<{
188
- left: number;
189
- right: number;
190
- top: number;
191
- bottom: number;
192
- }>;
193
- padded: import('../../node_modules/vue').ComputedRef<{
194
- width: number;
195
- height: number;
196
- }>;
197
- shownTooltip: import('../../node_modules/vue').Ref<number>;
198
- bars: import('../../node_modules/vue').ComputedRef<ColumnBar[]>;
199
- select: ({ datum }: {
200
- datum: any;
201
- }) => void;
202
- highlighted: (datum: any) => boolean;
203
- barTooltipStyle: (bar: {
204
- x: number;
205
- y: number;
206
- width: number;
207
- }) => {
208
- top: string;
209
- left: string;
210
- };
211
- formatYDatum: (d: any) => any;
212
- formatXDatum: (d: any) => any;
213
- }, unknown, {}, {}, import('../../node_modules/vue').ComponentOptionsMixin, import('../../node_modules/vue').ComponentOptionsMixin, {}, string, import('../../node_modules/vue').PublicProps, Readonly<import('../../node_modules/vue').ExtractPropTypes<{
214
- chartHeightRatio: {
215
- type: NumberConstructor;
216
- };
217
- data: {
218
- default: () => string | any[];
219
- validator(value: string): boolean;
220
- type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
221
- };
222
- dataUrlType: {
223
- default: string;
224
- validator(value: string): boolean;
225
- type: StringConstructor;
226
- };
227
- socialMode: {
228
- type: BooleanConstructor;
229
- };
230
- socialModeRatio: {
231
- default: number;
232
- type: NumberConstructor;
233
- };
234
- /**
235
- * Color of each column (uses the CSS variable --column-color by default)
236
- */
237
- columnColor: {
238
- type: PropType<string>;
239
- default: null;
240
- };
241
- /**
242
- * Color of each highlighted column (uses the CSS variable --column-color by default)
243
- */
244
- columnHighlightColor: {
245
- type: PropType<string>;
246
- default: null;
247
- };
248
- /**
249
- * Enforce the height of the chart (regardless of the width or the social mode)
250
- */
251
- fixedHeight: {
252
- type: PropType<number>;
253
- default: null;
254
- };
255
- /**
256
- * Enforce a width for each column's label
257
- */
258
- fixedLabelWidth: {
259
- type: PropType<number>;
260
- default: null;
261
- };
262
- /**
263
- * Name of the series (to get the value from in the data collection objects)
264
- */
265
- seriesName: {
266
- type: PropType<string>;
267
- default: string;
268
- };
269
- /**
270
- * Hide x axis ticks when no enough space
271
- */
272
- xAxisTickCollapse: {
273
- type: PropType<boolean>;
274
- default: boolean;
275
- };
276
- /**
277
- * Function to apply to format x axis ticks
278
- */
279
- xAxisTickFormat: {
280
- type: PropType<string | Function>;
281
- default: () => {
282
- <T>(value: T): T;
283
- (): undefined;
284
- };
285
- };
286
- /**
287
- * Definition of x axis ticks
288
- */
289
- xAxisTicks: {
290
- type: PropType<string[] | null>;
291
- default: null;
292
- };
293
- /**
294
- * Function to apply to format y axis ticks
295
- */
296
- yAxisTickFormat: {
297
- type: PropType<string | Function>;
298
- default: () => {
299
- <T>(value: T): T;
300
- (): undefined;
301
- };
302
- };
303
- /**
304
- * Definition of y axis ticks
305
- */
306
- yAxisTicks: {
307
- type: PropType<number | object>;
308
- default: number;
309
- };
310
- /**
311
- * Sort columns by one or several keys.
312
- */
313
- sortBy: {
314
- type: PropType<string | string[]>;
315
- default: null;
316
- };
317
- /**
318
- * Key to use for timeseries
319
- */
320
- timeseriesKey: {
321
- type: PropType<string>;
322
- default: string;
323
- };
324
- /**
325
- * Set max value instead of extracting it from the data.
326
- */
327
- maxValue: {
328
- type: PropType<number>;
329
- default: null;
330
- };
331
- /**
332
- * Hide bar tooltips
333
- */
334
- noTooltips: {
335
- type: PropType<boolean>;
336
- };
337
- /**
338
- * Hide x axis
339
- */
340
- noXAxis: {
341
- type: PropType<boolean>;
342
- };
343
- /**
344
- * Hide y axis
345
- */
346
- noYAxis: {
347
- type: PropType<boolean>;
348
- };
349
- /**
350
- * Bar padding as a portion of each bar width
351
- */
352
- barPadding: {
353
- type: PropType<number>;
354
- default: number;
355
- };
356
- /**
357
- * Bar margin in pixel
358
- */
359
- barMargin: {
360
- type: PropType<number>;
361
- default: number;
362
- };
363
- /**
364
- * A list of highlighted key
365
- */
366
- highlights: {
367
- type: PropType<string[]>;
368
- default: () => never[];
369
- };
370
- /**
371
- * Show a "placeholder" behind every bar
372
- */
373
- stripped: {
374
- type: PropType<boolean>;
375
- };
376
- /**
377
- * Show a "placeholder" behind every bar on hover
378
- */
379
- hover: {
380
- type: PropType<boolean>;
381
- };
382
- }>>, {
383
- data: string | Record<string, any> | unknown[];
384
- fixedLabelWidth: number;
385
- sortBy: string | string[];
386
- xAxisTickFormat: string | Function;
387
- dataUrlType: string;
388
- socialMode: boolean;
389
- socialModeRatio: number;
390
- columnColor: string;
391
- columnHighlightColor: string;
392
- fixedHeight: number;
393
- seriesName: string;
394
- xAxisTickCollapse: boolean;
395
- xAxisTicks: string[] | null;
396
- yAxisTickFormat: string | Function;
397
- yAxisTicks: number | object;
398
- timeseriesKey: string;
399
- maxValue: number;
400
- barPadding: number;
401
- barMargin: number;
402
- highlights: string[];
403
- }, {}>;
404
- export default _default;