@icij/murmur-next 4.0.10 → 4.0.13
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/components/AccordionStep.vue.d.ts +1 -2
- package/dist/lib/components/AccordionWrapper.vue.d.ts +1 -2
- package/dist/lib/components/AdvancedLinkForm.vue.d.ts +4 -5
- package/dist/lib/components/BrandExpansion.vue.d.ts +2 -3
- package/dist/lib/components/ConfirmButton.vue.d.ts +1 -2
- package/dist/lib/components/ContentPlaceholder.vue.d.ts +2 -3
- package/dist/lib/components/CustomPagination.vue.d.ts +5 -6
- package/dist/lib/components/DonateForm.vue.d.ts +4 -5
- package/dist/lib/components/EmbedForm.vue.d.ts +4 -5
- package/dist/lib/components/FollowUsPopover.vue.d.ts +4 -5
- package/dist/lib/components/GenericFooter.vue.d.ts +1 -2
- package/dist/lib/components/GenericHeader.vue.d.ts +231 -232
- package/dist/lib/components/HapticCopy.vue.d.ts +8 -10
- package/dist/lib/components/ImddbHeader.vue.d.ts +230 -231
- package/dist/lib/components/OrdinalLegend.vue.d.ts +1 -2
- package/dist/lib/components/RangePicker.vue.d.ts +2 -3
- package/dist/lib/components/ResponsiveIframe.vue.d.ts +2 -4
- package/dist/lib/components/ScaleLegend.vue.d.ts +1 -1
- package/dist/lib/components/SelectableDropdown.vue.d.ts +3 -3
- package/dist/lib/components/SharingOptions.vue.d.ts +1 -2
- package/dist/lib/components/SharingOptionsLink.vue.d.ts +1 -2
- package/dist/lib/components/SignUpForm.vue.d.ts +5 -6
- package/dist/lib/components/SlideUpDown.vue.d.ts +2 -3
- package/dist/lib/components/TexturedDeck.vue.d.ts +1 -2
- package/dist/lib/components/TinyPagination.vue.d.ts +8 -9
- package/dist/lib/composables/chart.d.ts +1 -2
- package/dist/lib/composables/resizeObserver.d.ts +1 -2
- package/dist/lib/composables/sendEmail.d.ts +1 -2
- package/dist/lib/config.d.ts +1 -0
- package/dist/lib/datavisualisations/BarChart.vue.d.ts +35 -21
- package/dist/lib/datavisualisations/ColumnChart.vue.d.ts +1 -2
- package/dist/lib/datavisualisations/LineChart.vue.d.ts +1 -1
- package/dist/lib/datavisualisations/StackedBarChart.vue.d.ts +1 -1
- package/dist/lib/datavisualisations/StackedColumnChart.vue.d.ts +1 -1
- package/dist/lib/i18n.d.ts +1 -0
- package/dist/lib/main.d.ts +3 -4
- package/dist/lib/maps/ChoroplethMap.vue.d.ts +2 -2
- package/dist/lib/maps/SymbolMap.vue.d.ts +1 -2
- package/dist/lib/murmur.css +1 -1
- package/dist/lib/murmur.js +16466 -13059
- package/dist/lib/murmur.js.map +1 -1
- package/dist/lib/murmur.umd.cjs +60 -34
- package/dist/lib/murmur.umd.cjs.map +1 -1
- package/dist/lib/types.d.ts +3 -6
- package/dist/lib/utils/assets.d.ts +1 -1
- package/dist/lib/utils/iframe-resizer.d.ts +1 -1
- package/dist/lib/utils/placeholder.d.ts +1 -0
- package/dist/lib/utils/placeholderTypes.d.ts +2 -3
- package/lib/components/HapticCopy.vue +1 -1
- package/lib/components/SelectableDropdown.vue +24 -18
- package/lib/datavisualisations/BarChart.vue +15 -10
- package/package.json +1 -1
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
/// <reference types="vue-i18n" />
|
|
4
|
-
import type { Parent } from 'pym.js';
|
|
1
|
+
import { Parent } from 'pym.js';
|
|
2
|
+
|
|
5
3
|
type StartsWithIcijIframe = `icij-iframe-${string}`;
|
|
6
4
|
type ResponsiveIframeData = {
|
|
7
5
|
iframeId: StartsWithIcijIframe;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { PropType } from '../../node_modules/vue';
|
|
1
2
|
/// <reference types="@/shims-vue" />
|
|
2
3
|
/// <reference types="vue-i18n" />
|
|
3
4
|
import * as d3 from 'd3';
|
|
4
|
-
import { PropType } from '../../node_modules/vue';
|
|
5
5
|
type ClassListLegend = {
|
|
6
6
|
'scale-legend--has-cursor': boolean;
|
|
7
7
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="@/shims-vue" />
|
|
2
|
-
/// <reference types="vue-i18n" />
|
|
3
1
|
import { PropType } from '../../node_modules/vue';
|
|
2
|
+
|
|
4
3
|
type Item = any;
|
|
5
4
|
declare const _default: import('../../node_modules/vue').DefineComponent<{
|
|
6
5
|
/**
|
|
@@ -99,7 +98,8 @@ declare const _default: import('../../node_modules/vue').DefineComponent<{
|
|
|
99
98
|
clickToSelectItem: (item: Item) => void;
|
|
100
99
|
clickToAddItem: (item: Item) => void;
|
|
101
100
|
clickToSelectRangeToItem: (item: Item) => void;
|
|
102
|
-
indexIcon: (item: Item) => import(
|
|
101
|
+
indexIcon: (item: Item) => import('@fortawesome/fontawesome-common-types').IconDefinition;
|
|
102
|
+
serialize: (item: Item) => any;
|
|
103
103
|
scroller: import('../../node_modules/vue').Ref<null>;
|
|
104
104
|
activeItems: import('../../node_modules/vue').Ref<any[]>;
|
|
105
105
|
itemId: (item: Item) => string;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="@/shims-vue" />
|
|
2
|
-
/// <reference types="vue-i18n" />
|
|
3
1
|
import { PropType, VNode } from '../../node_modules/vue';
|
|
4
2
|
import { IconDefinition } from '@fortawesome/fontawesome-svg-core';
|
|
3
|
+
|
|
5
4
|
type Popup = {
|
|
6
5
|
instance: Window | null | undefined;
|
|
7
6
|
interval: undefined | ReturnType<typeof setTimeout>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="@/shims-vue" />
|
|
2
|
-
/// <reference types="vue-i18n" />
|
|
3
1
|
import { PropType } from '../../node_modules/vue';
|
|
2
|
+
|
|
4
3
|
/**
|
|
5
4
|
* SignUpForm
|
|
6
5
|
*/
|
|
@@ -60,10 +59,10 @@ declare const _default: import('../../node_modules/vue').DefineComponent<{
|
|
|
60
59
|
default: string;
|
|
61
60
|
};
|
|
62
61
|
}, {
|
|
63
|
-
t: import(
|
|
64
|
-
[x: string]: import(
|
|
65
|
-
}, string, import(
|
|
66
|
-
[x: string]: import(
|
|
62
|
+
t: import('vue-i18n').ComposerTranslation<{
|
|
63
|
+
[x: string]: import('@intlify/core-base').LocaleMessage<import('vue-i18n').VueMessageType>;
|
|
64
|
+
}, string, import('@intlify/core-base').RemoveIndexSignature<{
|
|
65
|
+
[x: string]: import('vue-i18n').LocaleMessageValue<import('vue-i18n').VueMessageType>;
|
|
67
66
|
}>, never, string, string>;
|
|
68
67
|
email: import('../../node_modules/vue').Ref<string>;
|
|
69
68
|
frozen: import('../../node_modules/vue').Ref<boolean>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import type { CSSProperties } from '../../node_modules/vue';
|
|
1
|
+
import { CSSProperties } from '../../node_modules/vue';
|
|
2
|
+
|
|
4
3
|
type StyleTransition = Pick<CSSProperties, 'overflow' | 'transition-property' | 'transition-duration' | 'height'>;
|
|
5
4
|
interface SlideUpDownData {
|
|
6
5
|
state: string;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="@/shims-vue" />
|
|
2
|
-
/// <reference types="vue-i18n" />
|
|
3
1
|
import { PropType } from '../../node_modules/vue';
|
|
4
2
|
import { DeckTexture } from '../enums';
|
|
3
|
+
|
|
5
4
|
type TexturedDeckValue = DeckTexture | number;
|
|
6
5
|
declare const _default: import('../../node_modules/vue').DefineComponent<{
|
|
7
6
|
/**
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="@/shims-vue" />
|
|
2
|
-
/// <reference types="vue-i18n" />
|
|
3
1
|
import { PropType } from '../../node_modules/vue';
|
|
4
2
|
import { Size } from '../enums';
|
|
3
|
+
|
|
5
4
|
declare const _default: import('../../node_modules/vue').DefineComponent<{
|
|
6
5
|
/**
|
|
7
6
|
* Total items to be stored in pages
|
|
@@ -64,7 +63,7 @@ declare const _default: import('../../node_modules/vue').DefineComponent<{
|
|
|
64
63
|
* Navigation button variants
|
|
65
64
|
*/
|
|
66
65
|
navVariant: {
|
|
67
|
-
type: PropType<keyof import(
|
|
66
|
+
type: PropType<keyof import('bootstrap-vue-next').BaseButtonVariant>;
|
|
68
67
|
default: string;
|
|
69
68
|
};
|
|
70
69
|
/**
|
|
@@ -80,10 +79,10 @@ declare const _default: import('../../node_modules/vue').DefineComponent<{
|
|
|
80
79
|
type: BooleanConstructor;
|
|
81
80
|
};
|
|
82
81
|
}, {
|
|
83
|
-
t: import(
|
|
84
|
-
[x: string]: import(
|
|
85
|
-
}, string, import(
|
|
86
|
-
[x: string]: import(
|
|
82
|
+
t: import('vue-i18n').ComposerTranslation<{
|
|
83
|
+
[x: string]: import('@intlify/core-base').LocaleMessage<import('vue-i18n').VueMessageType>;
|
|
84
|
+
}, string, import('@intlify/core-base').RemoveIndexSignature<{
|
|
85
|
+
[x: string]: import('vue-i18n').LocaleMessageValue<import('vue-i18n').VueMessageType>;
|
|
87
86
|
}>, never, string, string>;
|
|
88
87
|
currentPageInput: import('../../node_modules/vue').Ref<string | number>;
|
|
89
88
|
paginationClassList: import('../../node_modules/vue').ComputedRef<object>;
|
|
@@ -155,7 +154,7 @@ declare const _default: import('../../node_modules/vue').DefineComponent<{
|
|
|
155
154
|
* Navigation button variants
|
|
156
155
|
*/
|
|
157
156
|
navVariant: {
|
|
158
|
-
type: PropType<keyof import(
|
|
157
|
+
type: PropType<keyof import('bootstrap-vue-next').BaseButtonVariant>;
|
|
159
158
|
default: string;
|
|
160
159
|
};
|
|
161
160
|
/**
|
|
@@ -183,6 +182,6 @@ declare const _default: import('../../node_modules/vue').DefineComponent<{
|
|
|
183
182
|
noNav: boolean;
|
|
184
183
|
previousPageIcon: string | Record<string, any> | unknown[];
|
|
185
184
|
nextPageIcon: string | Record<string, any> | unknown[];
|
|
186
|
-
navVariant: keyof import(
|
|
185
|
+
navVariant: keyof import('bootstrap-vue-next').BaseButtonVariant;
|
|
187
186
|
}, {}>;
|
|
188
187
|
export default _default;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="@/shims-vue" />
|
|
2
|
-
/// <reference types="vue-i18n" />
|
|
3
1
|
import { ComponentPublicInstance } from '../../node_modules/vue';
|
|
4
2
|
import { Ref, SetupContext } from '@vue/runtime-core';
|
|
3
|
+
|
|
5
4
|
type ChartContext<T extends string[]> = SetupContext<[...T, ...string[]]>;
|
|
6
5
|
type ChartEmit = Pick<ChartContext<['resized', 'loaded']>, 'emit'>;
|
|
7
6
|
type ChartProps = {
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="@/shims-vue" />
|
|
2
|
-
/// <reference types="vue-i18n" />
|
|
3
1
|
import { MaybeRefOrGetter } from '../../node_modules/vue';
|
|
2
|
+
|
|
4
3
|
export declare function useSendEmail(email: MaybeRefOrGetter<string>, action?: string, emailField?: string, tracker?: string, referrer?: string | null, defaultGroups?: string[] | string): {
|
|
5
4
|
send: () => Promise<unknown>;
|
|
6
5
|
};
|
package/dist/lib/config.d.ts
CHANGED
|
@@ -1,12 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { ComponentPublicInstance } from '../../node_modules/vue';
|
|
2
|
+
|
|
3
|
+
type Datum = {
|
|
4
|
+
value: number | number[];
|
|
5
|
+
highlight?: boolean;
|
|
6
|
+
label?: string;
|
|
7
|
+
};
|
|
8
|
+
type Bar = {
|
|
9
|
+
width: number;
|
|
10
|
+
height: number;
|
|
11
|
+
x: number;
|
|
12
|
+
y: number;
|
|
13
|
+
} & Datum;
|
|
3
14
|
declare const _default: import('../../node_modules/vue').DefineComponent<{
|
|
4
15
|
chartHeightRatio: {
|
|
5
16
|
type: NumberConstructor;
|
|
6
17
|
};
|
|
7
|
-
/**
|
|
8
|
-
* Color of each highlighted bar (uses the CSS variable --bar-highlight-color by default)
|
|
9
|
-
*/
|
|
10
18
|
data: {
|
|
11
19
|
default: () => string | any[];
|
|
12
20
|
validator(value: string): boolean;
|
|
@@ -22,8 +30,12 @@ declare const _default: import('../../node_modules/vue').DefineComponent<{
|
|
|
22
30
|
};
|
|
23
31
|
socialModeRatio: {
|
|
24
32
|
default: number;
|
|
25
|
-
type: NumberConstructor;
|
|
26
|
-
|
|
33
|
+
type: NumberConstructor; /**
|
|
34
|
+
* Enforce a width for each bar's label
|
|
35
|
+
*/
|
|
36
|
+
}; /**
|
|
37
|
+
* Enforce a width for each bar's label
|
|
38
|
+
*/
|
|
27
39
|
/**
|
|
28
40
|
* Height of each bar
|
|
29
41
|
*/
|
|
@@ -99,7 +111,7 @@ declare const _default: import('../../node_modules/vue').DefineComponent<{
|
|
|
99
111
|
};
|
|
100
112
|
};
|
|
101
113
|
}, {
|
|
102
|
-
el: import('../../node_modules/vue').Ref<null>;
|
|
114
|
+
el: import('../../node_modules/vue').Ref<ComponentPublicInstance<HTMLElement> | null>;
|
|
103
115
|
dataHasHighlights: any;
|
|
104
116
|
width: import('../../node_modules/vue').Ref<number>;
|
|
105
117
|
height: import('../../node_modules/vue').ComputedRef<number>;
|
|
@@ -109,16 +121,17 @@ declare const _default: import('../../node_modules/vue').DefineComponent<{
|
|
|
109
121
|
top: number;
|
|
110
122
|
bottom: number;
|
|
111
123
|
}>;
|
|
112
|
-
labels: import('../../node_modules/vue').ComputedRef<
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
124
|
+
labels: import('../../node_modules/vue').ComputedRef<{
|
|
125
|
+
label: string | undefined;
|
|
126
|
+
x: any;
|
|
127
|
+
y: number;
|
|
128
|
+
}[]>;
|
|
129
|
+
bars: import('../../node_modules/vue').ComputedRef<Bar[]>;
|
|
130
|
+
formatXDatum: (d: number | number[]) => any;
|
|
131
|
+
}, unknown, {}, {}, import('../../node_modules/vue').ComponentOptionsMixin, import('../../node_modules/vue').ComponentOptionsMixin, {}, string, import('../../node_modules/vue').PublicProps, Readonly<import('../../node_modules/vue').ExtractPropTypes<{
|
|
116
132
|
chartHeightRatio: {
|
|
117
133
|
type: NumberConstructor;
|
|
118
134
|
};
|
|
119
|
-
/**
|
|
120
|
-
* Color of each highlighted bar (uses the CSS variable --bar-highlight-color by default)
|
|
121
|
-
*/
|
|
122
135
|
data: {
|
|
123
136
|
default: () => string | any[];
|
|
124
137
|
validator(value: string): boolean;
|
|
@@ -134,8 +147,12 @@ declare const _default: import('../../node_modules/vue').DefineComponent<{
|
|
|
134
147
|
};
|
|
135
148
|
socialModeRatio: {
|
|
136
149
|
default: number;
|
|
137
|
-
type: NumberConstructor;
|
|
138
|
-
|
|
150
|
+
type: NumberConstructor; /**
|
|
151
|
+
* Enforce a width for each bar's label
|
|
152
|
+
*/
|
|
153
|
+
}; /**
|
|
154
|
+
* Enforce a width for each bar's label
|
|
155
|
+
*/
|
|
139
156
|
/**
|
|
140
157
|
* Height of each bar
|
|
141
158
|
*/
|
|
@@ -210,10 +227,7 @@ declare const _default: import('../../node_modules/vue').DefineComponent<{
|
|
|
210
227
|
(): undefined;
|
|
211
228
|
};
|
|
212
229
|
};
|
|
213
|
-
}
|
|
214
|
-
onResized?: ((...args: any[]) => any) | undefined;
|
|
215
|
-
onLoaded?: ((...args: any[]) => any) | undefined;
|
|
216
|
-
}, {
|
|
230
|
+
}>>, {
|
|
217
231
|
data: string | Record<string, any> | unknown[];
|
|
218
232
|
barHeight: number;
|
|
219
233
|
barGap: number;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { ComponentPublicInstance } from '../../node_modules/vue';
|
|
1
2
|
/// <reference types="@/shims-vue" />
|
|
2
3
|
/// <reference types="vue-i18n" />
|
|
3
4
|
import * as d3 from 'd3';
|
|
4
|
-
import { ComponentPublicInstance } from '../../node_modules/vue';
|
|
5
5
|
declare const _default: import('../../node_modules/vue').DefineComponent<{
|
|
6
6
|
chartHeightRatio: {
|
|
7
7
|
type: NumberConstructor;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { ComponentPublicInstance, PropType } from '../../node_modules/vue';
|
|
1
2
|
/// <reference types="@/shims-vue" />
|
|
2
3
|
/// <reference types="vue-i18n" />
|
|
3
4
|
import * as d3 from 'd3';
|
|
4
|
-
import { ComponentPublicInstance, PropType } from '../../node_modules/vue';
|
|
5
5
|
declare const _default: import('../../node_modules/vue').DefineComponent<{
|
|
6
6
|
chartHeightRatio: {
|
|
7
7
|
type: NumberConstructor;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { ComponentPublicInstance } from '../../node_modules/vue';
|
|
1
2
|
/// <reference types="@/shims-vue" />
|
|
2
3
|
/// <reference types="vue-i18n" />
|
|
3
4
|
import * as d3 from 'd3';
|
|
4
|
-
import { ComponentPublicInstance } from '../../node_modules/vue';
|
|
5
5
|
declare const _default: import('../../node_modules/vue').DefineComponent<{
|
|
6
6
|
chartHeightRatio: {
|
|
7
7
|
type: NumberConstructor;
|
package/dist/lib/i18n.d.ts
CHANGED
package/dist/lib/main.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
/// <reference types="@/shims-vue" />
|
|
2
|
-
/// <reference types="node_modules/vue-i18n/dist/vue-i18n" />
|
|
3
1
|
import { App, Component, DefineComponent } from '../node_modules/vue';
|
|
2
|
+
|
|
4
3
|
export { default as AccordionWrapper } from './components/AccordionWrapper.vue';
|
|
5
4
|
export { default as AccordionStep } from './components/AccordionStep.vue';
|
|
6
5
|
export { default as ActiveTextTruncate } from './components/ActiveTextTruncate.vue';
|
|
@@ -48,8 +47,8 @@ type PluginOptions = {
|
|
|
48
47
|
registerComponents?: boolean;
|
|
49
48
|
};
|
|
50
49
|
declare const Murmur: {
|
|
51
|
-
readonly i18n: import(
|
|
52
|
-
readonly config: import(
|
|
50
|
+
readonly i18n: import('vue-i18n').I18n<{}, {}, {}, string, boolean>;
|
|
51
|
+
readonly config: import('./config').Config;
|
|
53
52
|
readonly components: ComponentMap;
|
|
54
53
|
readonly datavisualisations: ComponentMap;
|
|
55
54
|
readonly maps: ComponentMap;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
+
import { ComponentPublicInstance, PropType } from '../../node_modules/vue';
|
|
1
2
|
/// <reference types="@/shims-vue" />
|
|
2
3
|
/// <reference types="vue-i18n" />
|
|
3
4
|
import * as d3 from 'd3';
|
|
4
|
-
import { ComponentPublicInstance, PropType } from '../../node_modules/vue';
|
|
5
5
|
declare const _default: import('../../node_modules/vue').DefineComponent<{
|
|
6
6
|
chartHeightRatio: {
|
|
7
7
|
type: NumberConstructor;
|
|
@@ -190,7 +190,7 @@ declare const _default: import('../../node_modules/vue').DefineComponent<{
|
|
|
190
190
|
};
|
|
191
191
|
}, {
|
|
192
192
|
cursorValue: import('../../node_modules/vue').ComputedRef<string | null>;
|
|
193
|
-
debouncedDraw: import(
|
|
193
|
+
debouncedDraw: import('lodash').DebouncedFunc<() => void>;
|
|
194
194
|
draw: () => void;
|
|
195
195
|
featureColorScaleEnd: import('../../node_modules/vue').ComputedRef<string>;
|
|
196
196
|
featureColorScaleFunction: import('../../node_modules/vue').ComputedRef<Function>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
/// <reference types="@/shims-vue" />
|
|
2
|
-
/// <reference types="vue-i18n" />
|
|
3
1
|
import { ComponentPublicInstance, PropType } from '../../node_modules/vue';
|
|
4
2
|
import { PopoverPlacement } from 'bootstrap-vue-next';
|
|
3
|
+
|
|
5
4
|
declare const _default: import('../../node_modules/vue').DefineComponent<{
|
|
6
5
|
chartHeightRatio: {
|
|
7
6
|
type: NumberConstructor;
|