@icij/murmur-next 4.0.5 → 4.0.6

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