@icij/murmur-next 4.0.5 → 4.0.7

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 (64) hide show
  1. package/dist/lib/components/AccordionStep.vue.d.ts +79 -0
  2. package/dist/lib/components/AccordionWrapper.vue.d.ts +33 -0
  3. package/dist/lib/components/ActiveTextTruncate.vue.d.ts +101 -0
  4. package/dist/lib/components/AdvancedLinkForm.vue.d.ts +168 -0
  5. package/dist/lib/components/Brand.vue.d.ts +55 -0
  6. package/dist/lib/components/BrandExpansion.vue.d.ts +105 -0
  7. package/dist/lib/components/ConfirmButton.vue.d.ts +158 -0
  8. package/dist/lib/components/ContentPlaceholder.vue.d.ts +44 -0
  9. package/dist/lib/components/CustomPagination.vue.d.ts +130 -0
  10. package/dist/lib/components/DigitsInput.vue.d.ts +66 -0
  11. package/dist/lib/components/DonateForm.vue.d.ts +46 -0
  12. package/dist/lib/components/EmbedForm.vue.d.ts +121 -0
  13. package/dist/lib/components/EmbeddableFooter.vue.d.ts +103 -0
  14. package/dist/lib/components/FollowUsPopover.vue.d.ts +16 -0
  15. package/dist/lib/components/GenericFooter.vue.d.ts +47 -0
  16. package/dist/lib/components/GenericHeader.vue.d.ts +928 -0
  17. package/dist/lib/components/HapticCopy.vue.d.ts +156 -0
  18. package/dist/lib/components/ImddbHeader.vue.d.ts +960 -0
  19. package/dist/lib/components/OrdinalLegend.vue.d.ts +87 -0
  20. package/dist/lib/components/RangePicker.vue.d.ts +193 -0
  21. package/dist/lib/components/ResponsiveIframe.vue.d.ts +46 -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 +210 -0
  25. package/dist/lib/components/SharingOptions.vue.d.ts +153 -0
  26. package/dist/lib/components/SharingOptionsLink.vue.d.ts +200 -0
  27. package/dist/lib/components/SignUpForm.vue.d.ts +141 -0
  28. package/dist/lib/components/SlideUpDown.vue.d.ts +74 -0
  29. package/dist/lib/components/TexturedDeck.vue.d.ts +89 -0
  30. package/dist/lib/components/TinyPagination.vue.d.ts +188 -0
  31. package/dist/lib/composables/chart.d.ts +48 -0
  32. package/dist/lib/composables/resizeObserver.d.ts +22 -0
  33. package/dist/lib/composables/sendEmail.d.ts +6 -0
  34. package/dist/lib/config.d.ts +19 -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 +408 -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 +61 -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 +277 -0
  48. package/dist/lib/murmur.css +1 -0
  49. package/dist/lib/murmur.js +44934 -0
  50. package/dist/lib/murmur.js.map +1 -0
  51. package/dist/lib/murmur.umd.cjs +837 -0
  52. package/dist/lib/murmur.umd.cjs.map +1 -0
  53. package/dist/lib/types.d.ts +44 -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 +12 -0
  59. package/dist/lib/utils/placeholderTypes.d.ts +18 -0
  60. package/dist/lib/utils/strings.d.ts +1 -0
  61. package/lib/components/RangePicker.vue +3 -4
  62. package/lib/i18n.ts +5 -4
  63. package/lib/main.ts +22 -6
  64. package/package.json +6 -4
@@ -0,0 +1,208 @@
1
+ /// <reference types="@/shims-vue" />
2
+ /// <reference types="vue-i18n" />
3
+ import * as d3 from 'd3';
4
+ import { ComponentPublicInstance } from '../../node_modules/vue';
5
+ declare const _default: import('../../node_modules/vue').DefineComponent<{
6
+ chartHeightRatio: {
7
+ type: NumberConstructor;
8
+ };
9
+ data: {
10
+ default: () => string | any[]; /**
11
+ * Enforce a width for each column's label
12
+ */
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
+ * Name of the series (to get the value from in the data collection objects)
27
+ */
28
+ type: NumberConstructor;
29
+ };
30
+ /**
31
+ * Color of the line (uses the CSS variable --line-color by default)
32
+ */
33
+ lineColor: {
34
+ type: StringConstructor;
35
+ default: null;
36
+ };
37
+ /**
38
+ * Enforce a width for each column's label
39
+ */
40
+ fixedLabelWidth: {
41
+ type: NumberConstructor;
42
+ default: null;
43
+ };
44
+ /**
45
+ * Enforce the height of the chart (regardless of the width or the social mode)
46
+ */
47
+ fixedHeight: {
48
+ type: NumberConstructor;
49
+ default: null;
50
+ };
51
+ /**
52
+ * Name of the series (to get the value from in the data collection objects)
53
+ */
54
+ seriesName: {
55
+ type: StringConstructor;
56
+ default: string;
57
+ };
58
+ /**
59
+ * Argument for x-axis ticks
60
+ * @see https://github.com/d3/d3-axis#axis_ticks
61
+ */
62
+ xAxisTicks: {
63
+ type: (NumberConstructor | ObjectConstructor | FunctionConstructor)[];
64
+ default: null;
65
+ };
66
+ /**
67
+ * Function to apply to format y axis ticks (line value). It can be a
68
+ * function returning the formatted value or a d3's formatter string.
69
+ */
70
+ yAxisTickFormat: {
71
+ type: (StringConstructor | FunctionConstructor)[];
72
+ default: () => {
73
+ <T>(value: T): T;
74
+ (): undefined;
75
+ };
76
+ };
77
+ /**
78
+ * Argument for y-axis ticks
79
+ * @see https://github.com/d3/d3-axis#axis_ticks
80
+ */
81
+ yAxisTicks: {
82
+ type: (NumberConstructor | ObjectConstructor | FunctionConstructor)[];
83
+ default: number;
84
+ };
85
+ /**
86
+ * Key to use for timeseries
87
+ */
88
+ timeseriesKey: {
89
+ type: StringConstructor;
90
+ default: string;
91
+ };
92
+ }, {
93
+ el: import('../../node_modules/vue').Ref<ComponentPublicInstance<HTMLElement> | null>;
94
+ width: import('../../node_modules/vue').Ref<number>;
95
+ height: import('../../node_modules/vue').Ref<number>;
96
+ margin: import('../../node_modules/vue').ComputedRef<{
97
+ left: any;
98
+ right: number;
99
+ top: any;
100
+ bottom: any;
101
+ }>;
102
+ padded: import('../../node_modules/vue').ComputedRef<{
103
+ width: number;
104
+ height: number;
105
+ }>;
106
+ line: import('../../node_modules/vue').Ref<d3.Line<[number, number]> | null>;
107
+ }, unknown, {}, {}, import('../../node_modules/vue').ComponentOptionsMixin, import('../../node_modules/vue').ComponentOptionsMixin, {}, string, import('../../node_modules/vue').PublicProps, Readonly<import('../../node_modules/vue').ExtractPropTypes<{
108
+ chartHeightRatio: {
109
+ type: NumberConstructor;
110
+ };
111
+ data: {
112
+ default: () => string | any[]; /**
113
+ * Enforce a width for each column's label
114
+ */
115
+ validator(value: string): boolean;
116
+ type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
117
+ };
118
+ dataUrlType: {
119
+ default: string;
120
+ validator(value: string): boolean;
121
+ type: StringConstructor;
122
+ };
123
+ socialMode: {
124
+ type: BooleanConstructor;
125
+ };
126
+ socialModeRatio: {
127
+ default: number; /**
128
+ * Name of the series (to get the value from in the data collection objects)
129
+ */
130
+ type: NumberConstructor;
131
+ };
132
+ /**
133
+ * Color of the line (uses the CSS variable --line-color by default)
134
+ */
135
+ lineColor: {
136
+ type: StringConstructor;
137
+ default: null;
138
+ };
139
+ /**
140
+ * Enforce a width for each column's label
141
+ */
142
+ fixedLabelWidth: {
143
+ type: NumberConstructor;
144
+ default: null;
145
+ };
146
+ /**
147
+ * Enforce the height of the chart (regardless of the width or the social mode)
148
+ */
149
+ fixedHeight: {
150
+ type: NumberConstructor;
151
+ default: null;
152
+ };
153
+ /**
154
+ * Name of the series (to get the value from in the data collection objects)
155
+ */
156
+ seriesName: {
157
+ type: StringConstructor;
158
+ default: string;
159
+ };
160
+ /**
161
+ * Argument for x-axis ticks
162
+ * @see https://github.com/d3/d3-axis#axis_ticks
163
+ */
164
+ xAxisTicks: {
165
+ type: (NumberConstructor | ObjectConstructor | FunctionConstructor)[];
166
+ default: null;
167
+ };
168
+ /**
169
+ * Function to apply to format y axis ticks (line value). It can be a
170
+ * function returning the formatted value or a d3's formatter string.
171
+ */
172
+ yAxisTickFormat: {
173
+ type: (StringConstructor | FunctionConstructor)[];
174
+ default: () => {
175
+ <T>(value: T): T;
176
+ (): undefined;
177
+ };
178
+ };
179
+ /**
180
+ * Argument for y-axis ticks
181
+ * @see https://github.com/d3/d3-axis#axis_ticks
182
+ */
183
+ yAxisTicks: {
184
+ type: (NumberConstructor | ObjectConstructor | FunctionConstructor)[];
185
+ default: number;
186
+ };
187
+ /**
188
+ * Key to use for timeseries
189
+ */
190
+ timeseriesKey: {
191
+ type: StringConstructor;
192
+ default: string;
193
+ };
194
+ }>>, {
195
+ data: string | Record<string, any> | unknown[];
196
+ fixedLabelWidth: number;
197
+ dataUrlType: string;
198
+ socialMode: boolean;
199
+ socialModeRatio: number;
200
+ fixedHeight: number;
201
+ seriesName: string;
202
+ xAxisTicks: number | Function | Record<string, any>;
203
+ yAxisTickFormat: string | Function;
204
+ yAxisTicks: number | Function | Record<string, any>;
205
+ timeseriesKey: string;
206
+ lineColor: string;
207
+ }, {}>;
208
+ export default _default;
@@ -0,0 +1,338 @@
1
+ /// <reference types="@/shims-vue" />
2
+ /// <reference types="vue-i18n" />
3
+ import * as d3 from 'd3';
4
+ import { ComponentPublicInstance, PropType } from '../../node_modules/vue';
5
+ declare const _default: import('../../node_modules/vue').DefineComponent<{
6
+ chartHeightRatio: {
7
+ type: NumberConstructor;
8
+ };
9
+ data: {
10
+ default: () => string | any[];
11
+ validator(value: string): boolean;
12
+ type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
13
+ };
14
+ dataUrlType: {
15
+ default: string;
16
+ validator(value: string): boolean;
17
+ type: StringConstructor;
18
+ };
19
+ socialMode: {
20
+ type: BooleanConstructor;
21
+ };
22
+ socialModeRatio: {
23
+ default: number;
24
+ type: NumberConstructor;
25
+ };
26
+ /**
27
+ * Colors of each bar group
28
+ */
29
+ barColors: {
30
+ type: ArrayConstructor;
31
+ default: () => never[];
32
+ };
33
+ /**
34
+ * Enforce the height of the chart (regardless of the width or number of row)
35
+ */
36
+ fixedHeight: {
37
+ type: PropType<number | null>;
38
+ default: null;
39
+ };
40
+ /**
41
+ * Group name to display in the legend
42
+ */
43
+ groups: {
44
+ type: ArrayConstructor;
45
+ default: () => never[];
46
+ };
47
+ /**
48
+ * Hide bars that have no values.
49
+ */
50
+ hideEmptyValues: {
51
+ type: BooleanConstructor;
52
+ };
53
+ /**
54
+ * Hide the legend.
55
+ */
56
+ hideLegend: {
57
+ type: BooleanConstructor;
58
+ };
59
+ /**
60
+ * A list of highlighted groups
61
+ */
62
+ highlights: {
63
+ type: ArrayConstructor;
64
+ default: () => never[];
65
+ };
66
+ /**
67
+ * Delay to apply when set the first highlight
68
+ */
69
+ highlightDelay: {
70
+ type: NumberConstructor;
71
+ default: number;
72
+ };
73
+ /**
74
+ * Field of each object containing data (for each group)
75
+ */
76
+ keys: {
77
+ type: ArrayConstructor;
78
+ default: () => never[];
79
+ };
80
+ /**
81
+ * Switch labels above bars
82
+ */
83
+ labelAbove: {
84
+ type: BooleanConstructor;
85
+ default: boolean;
86
+ };
87
+ /**
88
+ * Field containing the label for each row
89
+ */
90
+ labelField: {
91
+ type: StringConstructor;
92
+ default: string;
93
+ };
94
+ /**
95
+ * Set a minimal height for the bars
96
+ */
97
+ minBarHeight: {
98
+ type: NumberConstructor;
99
+ default: number;
100
+ };
101
+ /**
102
+ * Set a maximal height for the bars
103
+ */
104
+ maxBarHeight: {
105
+ type: NumberConstructor;
106
+ default: number;
107
+ };
108
+ /**
109
+ * Bar width is relative to each group's total
110
+ */
111
+ relative: {
112
+ type: BooleanConstructor;
113
+ default: boolean;
114
+ };
115
+ /**
116
+ * Delay to apply when restoring hightlights to initial state
117
+ */
118
+ restoreHighlightDelay: {
119
+ type: NumberConstructor;
120
+ default: number;
121
+ };
122
+ /**
123
+ * A list of entire row to highlight
124
+ */
125
+ rowHighlights: {
126
+ type: ArrayConstructor;
127
+ default: () => never[];
128
+ };
129
+ /**
130
+ * Sort groups by one or several keys.
131
+ */
132
+ sortBy: {
133
+ type: (StringConstructor | ArrayConstructor)[];
134
+ default: null;
135
+ };
136
+ /**
137
+ * Function to apply to format x axis ticks (bar value). It can be a
138
+ * function returning the formatted value or a d3's formatter string.
139
+ */
140
+ xAxisTickFormat: {
141
+ type: PropType<string | Function>;
142
+ default: () => {
143
+ <T>(value: T): T;
144
+ (): undefined;
145
+ };
146
+ };
147
+ }, {
148
+ colorScale: import('../../node_modules/vue').ComputedRef<d3.ScaleOrdinal<string, unknown, never>>;
149
+ dataHasHighlights: any;
150
+ discoveredKeys: import('../../node_modules/vue').ComputedRef<any[]>;
151
+ el: import('../../node_modules/vue').Ref<ComponentPublicInstance<HTMLElement> | null>;
152
+ hasConstraintHeight: import('../../node_modules/vue').ComputedRef<boolean>;
153
+ hasHighlights: import('../../node_modules/vue').ComputedRef<boolean>;
154
+ hasRowHighlights: import('../../node_modules/vue').ComputedRef<boolean>;
155
+ height: import('../../node_modules/vue').ComputedRef<string>;
156
+ sortedData: import('../../node_modules/vue').ComputedRef<any>;
157
+ barStyle: (i: number | string, key: string) => {
158
+ width: string;
159
+ backgroundColor: unknown;
160
+ };
161
+ delayHighlight: (key: string) => void;
162
+ formatXDatum: (d: string) => any;
163
+ groupName: (key: string) => {};
164
+ hasValueHidden: (i: number | string, key: string) => Promise<false | undefined>;
165
+ hasValueOverflow: (i: number | string, key: string) => Promise<undefined>;
166
+ hasValuePushed: (i: number | string, key: string) => Promise<undefined>;
167
+ isHidden: (i: number | string, key: string) => boolean;
168
+ isHighlighted: (key: string) => boolean;
169
+ isRowHighlighted: (i: number | string) => boolean;
170
+ loadedData: any;
171
+ normalizeKey: (key: string) => string;
172
+ restoreHighlights: () => void;
173
+ }, unknown, {}, {}, import('../../node_modules/vue').ComponentOptionsMixin, import('../../node_modules/vue').ComponentOptionsMixin, {}, string, import('../../node_modules/vue').PublicProps, Readonly<import('../../node_modules/vue').ExtractPropTypes<{
174
+ chartHeightRatio: {
175
+ type: NumberConstructor;
176
+ };
177
+ data: {
178
+ default: () => string | any[];
179
+ validator(value: string): boolean;
180
+ type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
181
+ };
182
+ dataUrlType: {
183
+ default: string;
184
+ validator(value: string): boolean;
185
+ type: StringConstructor;
186
+ };
187
+ socialMode: {
188
+ type: BooleanConstructor;
189
+ };
190
+ socialModeRatio: {
191
+ default: number;
192
+ type: NumberConstructor;
193
+ };
194
+ /**
195
+ * Colors of each bar group
196
+ */
197
+ barColors: {
198
+ type: ArrayConstructor;
199
+ default: () => never[];
200
+ };
201
+ /**
202
+ * Enforce the height of the chart (regardless of the width or number of row)
203
+ */
204
+ fixedHeight: {
205
+ type: PropType<number | null>;
206
+ default: null;
207
+ };
208
+ /**
209
+ * Group name to display in the legend
210
+ */
211
+ groups: {
212
+ type: ArrayConstructor;
213
+ default: () => never[];
214
+ };
215
+ /**
216
+ * Hide bars that have no values.
217
+ */
218
+ hideEmptyValues: {
219
+ type: BooleanConstructor;
220
+ };
221
+ /**
222
+ * Hide the legend.
223
+ */
224
+ hideLegend: {
225
+ type: BooleanConstructor;
226
+ };
227
+ /**
228
+ * A list of highlighted groups
229
+ */
230
+ highlights: {
231
+ type: ArrayConstructor;
232
+ default: () => never[];
233
+ };
234
+ /**
235
+ * Delay to apply when set the first highlight
236
+ */
237
+ highlightDelay: {
238
+ type: NumberConstructor;
239
+ default: number;
240
+ };
241
+ /**
242
+ * Field of each object containing data (for each group)
243
+ */
244
+ keys: {
245
+ type: ArrayConstructor;
246
+ default: () => never[];
247
+ };
248
+ /**
249
+ * Switch labels above bars
250
+ */
251
+ labelAbove: {
252
+ type: BooleanConstructor;
253
+ default: boolean;
254
+ };
255
+ /**
256
+ * Field containing the label for each row
257
+ */
258
+ labelField: {
259
+ type: StringConstructor;
260
+ default: string;
261
+ };
262
+ /**
263
+ * Set a minimal height for the bars
264
+ */
265
+ minBarHeight: {
266
+ type: NumberConstructor;
267
+ default: number;
268
+ };
269
+ /**
270
+ * Set a maximal height for the bars
271
+ */
272
+ maxBarHeight: {
273
+ type: NumberConstructor;
274
+ default: number;
275
+ };
276
+ /**
277
+ * Bar width is relative to each group's total
278
+ */
279
+ relative: {
280
+ type: BooleanConstructor;
281
+ default: boolean;
282
+ };
283
+ /**
284
+ * Delay to apply when restoring hightlights to initial state
285
+ */
286
+ restoreHighlightDelay: {
287
+ type: NumberConstructor;
288
+ default: number;
289
+ };
290
+ /**
291
+ * A list of entire row to highlight
292
+ */
293
+ rowHighlights: {
294
+ type: ArrayConstructor;
295
+ default: () => never[];
296
+ };
297
+ /**
298
+ * Sort groups by one or several keys.
299
+ */
300
+ sortBy: {
301
+ type: (StringConstructor | ArrayConstructor)[];
302
+ default: null;
303
+ };
304
+ /**
305
+ * Function to apply to format x axis ticks (bar value). It can be a
306
+ * function returning the formatted value or a d3's formatter string.
307
+ */
308
+ xAxisTickFormat: {
309
+ type: PropType<string | Function>;
310
+ default: () => {
311
+ <T>(value: T): T;
312
+ (): undefined;
313
+ };
314
+ };
315
+ }>>, {
316
+ data: string | Record<string, any> | unknown[];
317
+ keys: unknown[];
318
+ relative: boolean;
319
+ sortBy: string | unknown[];
320
+ xAxisTickFormat: string | Function;
321
+ dataUrlType: string;
322
+ socialMode: boolean;
323
+ socialModeRatio: number;
324
+ fixedHeight: number | null;
325
+ highlights: unknown[];
326
+ barColors: unknown[];
327
+ groups: unknown[];
328
+ hideEmptyValues: boolean;
329
+ hideLegend: boolean;
330
+ highlightDelay: number;
331
+ labelAbove: boolean;
332
+ labelField: string;
333
+ minBarHeight: number;
334
+ maxBarHeight: number;
335
+ restoreHighlightDelay: number;
336
+ rowHighlights: unknown[];
337
+ }, {}>;
338
+ export default _default;