@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,86 @@
1
+ import { PropType } from '../../node_modules/vue';
2
+
3
+ type Datum = {
4
+ id?: string;
5
+ color: string;
6
+ path?: string;
7
+ label: string;
8
+ };
9
+ type Category = 'id' | 'color' | 'path' | 'label';
10
+ declare const _default: import('../../node_modules/vue').DefineComponent<{
11
+ data: {
12
+ type: PropType<Datum[]>;
13
+ default: () => never[];
14
+ };
15
+ horizontal: {
16
+ type: BooleanConstructor;
17
+ };
18
+ markerPath: {
19
+ type: (StringConstructor | FunctionConstructor)[];
20
+ default: string;
21
+ };
22
+ categoryObjectsPath: {
23
+ type: PropType<Category>;
24
+ default: string;
25
+ };
26
+ highlight: {
27
+ type: (NumberConstructor | StringConstructor)[];
28
+ default: null;
29
+ };
30
+ value: {
31
+ type: (NumberConstructor | StringConstructor)[];
32
+ default: null;
33
+ };
34
+ }, {
35
+ classList: import('../../node_modules/vue').ComputedRef<{
36
+ 'ordinal-legend--horizontal': boolean;
37
+ 'ordinal-legend--has-highlight': boolean;
38
+ 'ordinal-legend--has-value': boolean;
39
+ }>;
40
+ markerViewbox: import('../../node_modules/vue').ComputedRef<string>;
41
+ updateHighlight: (d?: {}) => void;
42
+ itemClassList: (d: {
43
+ [key: string]: string;
44
+ }) => {
45
+ [x: string]: boolean;
46
+ 'ordinal-legend__item--highlighted': boolean;
47
+ 'ordinal-legend__item--selected': boolean;
48
+ };
49
+ markerPathFunction: (d?: Datum) => string;
50
+ update: (d: Datum) => void;
51
+ }, unknown, {}, {}, import('../../node_modules/vue').ComponentOptionsMixin, import('../../node_modules/vue').ComponentOptionsMixin, ("update" | "update:highlight")[], "update" | "update:highlight", import('../../node_modules/vue').PublicProps, Readonly<import('../../node_modules/vue').ExtractPropTypes<{
52
+ data: {
53
+ type: PropType<Datum[]>;
54
+ default: () => never[];
55
+ };
56
+ horizontal: {
57
+ type: BooleanConstructor;
58
+ };
59
+ markerPath: {
60
+ type: (StringConstructor | FunctionConstructor)[];
61
+ default: string;
62
+ };
63
+ categoryObjectsPath: {
64
+ type: PropType<Category>;
65
+ default: string;
66
+ };
67
+ highlight: {
68
+ type: (NumberConstructor | StringConstructor)[];
69
+ default: null;
70
+ };
71
+ value: {
72
+ type: (NumberConstructor | StringConstructor)[];
73
+ default: null;
74
+ };
75
+ }>> & {
76
+ onUpdate?: ((...args: any[]) => any) | undefined;
77
+ "onUpdate:highlight"?: ((...args: any[]) => any) | undefined;
78
+ }, {
79
+ data: Datum[];
80
+ value: string | number;
81
+ horizontal: boolean;
82
+ markerPath: string | Function;
83
+ categoryObjectsPath: Category;
84
+ highlight: string | number;
85
+ }, {}>;
86
+ export default _default;
@@ -0,0 +1,192 @@
1
+ import { PropType } from '../../node_modules/vue';
2
+ import { Variant } from '../types';
3
+
4
+ type DragDropValue = {
5
+ detail: number;
6
+ };
7
+ /**
8
+ * A component to wrap an HTML element with a range picker overlay.
9
+ */
10
+ declare const _default: import('../../node_modules/vue').DefineComponent<{
11
+ /**
12
+ * Initial values of the range bounds. Should contain two numbers.
13
+ * indicating the start and end of the range.
14
+ */
15
+ range: {
16
+ type: PropType<[number, number]>;
17
+ required: true;
18
+ };
19
+ /**
20
+ * Enables hover styling on rows.
21
+ */
22
+ hover: {
23
+ type: PropType<boolean>;
24
+ default: boolean;
25
+ };
26
+ /**
27
+ * Offset from the left side of the component
28
+ * where the dragging for the start value begins.
29
+ */
30
+ startOffset: {
31
+ type: PropType<string | number>;
32
+ default: number;
33
+ };
34
+ /**
35
+ * Offset from the right side of the component where
36
+ * the dragging for the end value ends.
37
+ */
38
+ endOffset: {
39
+ type: PropType<string | number>;
40
+ default: number;
41
+ };
42
+ /**
43
+ * Number of decimal places to which values should be rounded.
44
+ */
45
+ precision: {
46
+ type: PropType<number>;
47
+ default: number;
48
+ };
49
+ /**
50
+ * Snap increment value. For instance,
51
+ * if snap is 0.1, values will snap to 0, 0.1, 0.2, and so on.
52
+ */
53
+ snap: {
54
+ type: PropType<number>;
55
+ default: number;
56
+ };
57
+ /**
58
+ * Minimum distance between the two range bounds to ensure they
59
+ * don't get too close to each other.
60
+ */
61
+ minDistance: {
62
+ type: PropType<number>;
63
+ default: number;
64
+ };
65
+ /**
66
+ * Variant style of the component. Expected to be one
67
+ * of the predefined Bootstrap theme (e.g., 'primary', 'secondary', etc).
68
+ */
69
+ variant: {
70
+ type: PropType<Variant>;
71
+ default: string;
72
+ };
73
+ /**
74
+ * Rounds corner edges of the range boundaries. If
75
+ * true, the component will have rounded corners.
76
+ */
77
+ rounded: {
78
+ type: PropType<boolean>;
79
+ default: boolean;
80
+ };
81
+ }, {
82
+ rangePickerBounds: import('../../node_modules/vue').Ref<HTMLElement | null>;
83
+ start: import('../../node_modules/vue').Ref<number>;
84
+ end: import('../../node_modules/vue').Ref<number>;
85
+ classList: import('../../node_modules/vue').ComputedRef<{
86
+ [key: string]: boolean;
87
+ }>;
88
+ disabled: import('../../node_modules/vue').ComputedRef<boolean>;
89
+ overlayStyle: import('../../node_modules/vue').ComputedRef<{
90
+ left: string;
91
+ right: string;
92
+ }>;
93
+ boundsStyle: import('../../node_modules/vue').ComputedRef<{
94
+ left: string;
95
+ right: string;
96
+ }>;
97
+ rangeWidth: () => number;
98
+ startBoundStyle: import('../../node_modules/vue').ComputedRef<{
99
+ left: string;
100
+ }>;
101
+ endBoundStyle: import('../../node_modules/vue').ComputedRef<{
102
+ left: string;
103
+ }>;
104
+ dragStartBound: ({ detail: dx }: DragDropValue) => void;
105
+ dragEndBound: ({ detail: dx }: DragDropValue) => void;
106
+ dragBounds: ({ detail: dx }: DragDropValue) => void;
107
+ toggleMoving: (value: boolean) => void;
108
+ toggleResizing: (value: boolean) => void;
109
+ }, unknown, {}, {}, import('../../node_modules/vue').ComponentOptionsMixin, import('../../node_modules/vue').ComponentOptionsMixin, "update:range"[], "update:range", import('../../node_modules/vue').PublicProps, Readonly<import('../../node_modules/vue').ExtractPropTypes<{
110
+ /**
111
+ * Initial values of the range bounds. Should contain two numbers.
112
+ * indicating the start and end of the range.
113
+ */
114
+ range: {
115
+ type: PropType<[number, number]>;
116
+ required: true;
117
+ };
118
+ /**
119
+ * Enables hover styling on rows.
120
+ */
121
+ hover: {
122
+ type: PropType<boolean>;
123
+ default: boolean;
124
+ };
125
+ /**
126
+ * Offset from the left side of the component
127
+ * where the dragging for the start value begins.
128
+ */
129
+ startOffset: {
130
+ type: PropType<string | number>;
131
+ default: number;
132
+ };
133
+ /**
134
+ * Offset from the right side of the component where
135
+ * the dragging for the end value ends.
136
+ */
137
+ endOffset: {
138
+ type: PropType<string | number>;
139
+ default: number;
140
+ };
141
+ /**
142
+ * Number of decimal places to which values should be rounded.
143
+ */
144
+ precision: {
145
+ type: PropType<number>;
146
+ default: number;
147
+ };
148
+ /**
149
+ * Snap increment value. For instance,
150
+ * if snap is 0.1, values will snap to 0, 0.1, 0.2, and so on.
151
+ */
152
+ snap: {
153
+ type: PropType<number>;
154
+ default: number;
155
+ };
156
+ /**
157
+ * Minimum distance between the two range bounds to ensure they
158
+ * don't get too close to each other.
159
+ */
160
+ minDistance: {
161
+ type: PropType<number>;
162
+ default: number;
163
+ };
164
+ /**
165
+ * Variant style of the component. Expected to be one
166
+ * of the predefined Bootstrap theme (e.g., 'primary', 'secondary', etc).
167
+ */
168
+ variant: {
169
+ type: PropType<Variant>;
170
+ default: string;
171
+ };
172
+ /**
173
+ * Rounds corner edges of the range boundaries. If
174
+ * true, the component will have rounded corners.
175
+ */
176
+ rounded: {
177
+ type: PropType<boolean>;
178
+ default: boolean;
179
+ };
180
+ }>> & {
181
+ "onUpdate:range"?: ((...args: any[]) => any) | undefined;
182
+ }, {
183
+ variant: Variant;
184
+ hover: boolean;
185
+ startOffset: string | number;
186
+ endOffset: string | number;
187
+ precision: number;
188
+ snap: number;
189
+ minDistance: number;
190
+ rounded: boolean;
191
+ }, {}>;
192
+ export default _default;
@@ -0,0 +1,44 @@
1
+ import { Parent } from 'pym.js';
2
+
3
+ type StartsWithIcijIframe = `icij-iframe-${string}`;
4
+ type ResponsiveIframeData = {
5
+ iframeId: StartsWithIcijIframe;
6
+ pymParent: null | Parent;
7
+ };
8
+ /**
9
+ * ResponsiveIframe
10
+ */
11
+ declare const _default: import('../../node_modules/vue').DefineComponent<{
12
+ /**
13
+ * URL of the generated iframe code.
14
+ */
15
+ url: {
16
+ type: StringConstructor;
17
+ required: true;
18
+ };
19
+ /**
20
+ * Option to pass to the constructor of the pymParent instance
21
+ */
22
+ options: {
23
+ type: ObjectConstructor;
24
+ default: () => {};
25
+ };
26
+ }, unknown, ResponsiveIframeData, {}, {}, import('../../node_modules/vue').ComponentOptionsMixin, import('../../node_modules/vue').ComponentOptionsMixin, {}, string, import('../../node_modules/vue').PublicProps, Readonly<import('../../node_modules/vue').ExtractPropTypes<{
27
+ /**
28
+ * URL of the generated iframe code.
29
+ */
30
+ url: {
31
+ type: StringConstructor;
32
+ required: true;
33
+ };
34
+ /**
35
+ * Option to pass to the constructor of the pymParent instance
36
+ */
37
+ options: {
38
+ type: ObjectConstructor;
39
+ default: () => {};
40
+ };
41
+ }>>, {
42
+ options: Record<string, any>;
43
+ }, {}>;
44
+ export default _default;
@@ -0,0 +1,101 @@
1
+ import { PropType } from '../../node_modules/vue';
2
+ /// <reference types="@/shims-vue" />
3
+ /// <reference types="vue-i18n" />
4
+ import * as d3 from 'd3';
5
+ type ClassListLegend = {
6
+ 'scale-legend--has-cursor': boolean;
7
+ };
8
+ type ColorScaleFn = (v?: number) => string;
9
+ type ColorScale = ColorScaleFn | string;
10
+ type WidthScaleFn = (x: number) => string;
11
+ declare const _default: import('../../node_modules/vue').DefineComponent<{
12
+ width: {
13
+ type: NumberConstructor;
14
+ default: number;
15
+ };
16
+ height: {
17
+ type: NumberConstructor;
18
+ default: number;
19
+ };
20
+ cursorValue: {
21
+ type: NumberConstructor;
22
+ default: null;
23
+ };
24
+ max: {
25
+ type: NumberConstructor;
26
+ default: number;
27
+ };
28
+ min: {
29
+ type: NumberConstructor;
30
+ default: number;
31
+ };
32
+ colorScale: {
33
+ type: PropType<string | ColorScaleFn>;
34
+ default: string;
35
+ validator(colorScale: ColorScale): boolean;
36
+ };
37
+ colorScaleEnd: {
38
+ type: StringConstructor;
39
+ default(): string;
40
+ };
41
+ colorScaleStart: {
42
+ type: StringConstructor;
43
+ default: string;
44
+ };
45
+ }, {
46
+ classList: import('../../node_modules/vue').ComputedRef<ClassListLegend>;
47
+ colorScaleBase64: import('../../node_modules/vue').ComputedRef<string | undefined>;
48
+ cursorLeft: import('../../node_modules/vue').ComputedRef<string>;
49
+ cursorWrapperOffset: import('../../node_modules/vue').Ref<number>;
50
+ formatNumber: (n: number | {
51
+ valueOf(): number;
52
+ }) => string;
53
+ hasCursor: import('../../node_modules/vue').ComputedRef<boolean>;
54
+ widthScale: import('../../node_modules/vue').ComputedRef<d3.ScaleLinear<number, number, never>>;
55
+ colorScaleFunction: import('../../node_modules/vue').ComputedRef<ColorScaleFn>;
56
+ widthScaleColor: import('../../node_modules/vue').ComputedRef<WidthScaleFn>;
57
+ }, unknown, {}, {}, import('../../node_modules/vue').ComponentOptionsMixin, import('../../node_modules/vue').ComponentOptionsMixin, {}, string, import('../../node_modules/vue').PublicProps, Readonly<import('../../node_modules/vue').ExtractPropTypes<{
58
+ width: {
59
+ type: NumberConstructor;
60
+ default: number;
61
+ };
62
+ height: {
63
+ type: NumberConstructor;
64
+ default: number;
65
+ };
66
+ cursorValue: {
67
+ type: NumberConstructor;
68
+ default: null;
69
+ };
70
+ max: {
71
+ type: NumberConstructor;
72
+ default: number;
73
+ };
74
+ min: {
75
+ type: NumberConstructor;
76
+ default: number;
77
+ };
78
+ colorScale: {
79
+ type: PropType<string | ColorScaleFn>;
80
+ default: string;
81
+ validator(colorScale: ColorScale): boolean;
82
+ };
83
+ colorScaleEnd: {
84
+ type: StringConstructor;
85
+ default(): string;
86
+ };
87
+ colorScaleStart: {
88
+ type: StringConstructor;
89
+ default: string;
90
+ };
91
+ }>>, {
92
+ height: number;
93
+ width: number;
94
+ max: number;
95
+ min: number;
96
+ cursorValue: number;
97
+ colorScale: string | ColorScaleFn;
98
+ colorScaleEnd: string;
99
+ colorScaleStart: string;
100
+ }, {}>;
101
+ export default _default;
@@ -0,0 +1,99 @@
1
+ /// <reference types="@/shims-vue" />
2
+ /// <reference types="vue-i18n" />
3
+ declare const _default: import('../../node_modules/vue').DefineComponent<{
4
+ /**
5
+ * If true the value is visible by default
6
+ */
7
+ visible: {
8
+ type: BooleanConstructor;
9
+ };
10
+ /**
11
+ * Value of the input
12
+ */
13
+ value: {
14
+ type: (NumberConstructor | StringConstructor)[];
15
+ default: string;
16
+ };
17
+ /**
18
+ * Size of the input form
19
+ */
20
+ size: {
21
+ type: StringConstructor;
22
+ default: string;
23
+ };
24
+ /**
25
+ * Bootstrap variant of the haptic copy button
26
+ */
27
+ hapticCopyVariant: {
28
+ type: StringConstructor;
29
+ default: string;
30
+ };
31
+ /**
32
+ * Hide toggler button
33
+ */
34
+ noToggler: {
35
+ type: BooleanConstructor;
36
+ };
37
+ /**
38
+ * Hide haptic copy button
39
+ */
40
+ noHapticCopy: {
41
+ type: BooleanConstructor;
42
+ };
43
+ }, {
44
+ selectInput: () => void;
45
+ toggle: () => void;
46
+ togglerIcon: import('../../node_modules/vue').ComputedRef<string[]>;
47
+ inputType: import('../../node_modules/vue').ComputedRef<"text" | "password">;
48
+ hapticCopyClassList: import('../../node_modules/vue').ComputedRef<string>;
49
+ }, unknown, {}, {}, import('../../node_modules/vue').ComponentOptionsMixin, import('../../node_modules/vue').ComponentOptionsMixin, "update:visible"[], "update:visible", import('../../node_modules/vue').PublicProps, Readonly<import('../../node_modules/vue').ExtractPropTypes<{
50
+ /**
51
+ * If true the value is visible by default
52
+ */
53
+ visible: {
54
+ type: BooleanConstructor;
55
+ };
56
+ /**
57
+ * Value of the input
58
+ */
59
+ value: {
60
+ type: (NumberConstructor | StringConstructor)[];
61
+ default: string;
62
+ };
63
+ /**
64
+ * Size of the input form
65
+ */
66
+ size: {
67
+ type: StringConstructor;
68
+ default: string;
69
+ };
70
+ /**
71
+ * Bootstrap variant of the haptic copy button
72
+ */
73
+ hapticCopyVariant: {
74
+ type: StringConstructor;
75
+ default: string;
76
+ };
77
+ /**
78
+ * Hide toggler button
79
+ */
80
+ noToggler: {
81
+ type: BooleanConstructor;
82
+ };
83
+ /**
84
+ * Hide haptic copy button
85
+ */
86
+ noHapticCopy: {
87
+ type: BooleanConstructor;
88
+ };
89
+ }>> & {
90
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
91
+ }, {
92
+ size: string;
93
+ value: string | number;
94
+ visible: boolean;
95
+ hapticCopyVariant: string;
96
+ noToggler: boolean;
97
+ noHapticCopy: boolean;
98
+ }, {}>;
99
+ export default _default;