@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,73 @@
1
+ import { CSSProperties } from '../../node_modules/vue';
2
+
3
+ type StyleTransition = Pick<CSSProperties, 'overflow' | 'transition-property' | 'transition-duration' | 'height'>;
4
+ interface SlideUpDownData {
5
+ state: string;
6
+ mounted: boolean;
7
+ scrollHeight: number;
8
+ }
9
+ /**
10
+ * SlideUpDown
11
+ */
12
+ declare const _default: import('../../node_modules/vue').DefineComponent<{
13
+ /**
14
+ * Toggler property. Set to <em>false</em> to hide the component.
15
+ */
16
+ active: {
17
+ type: BooleanConstructor;
18
+ default: boolean;
19
+ };
20
+ /**
21
+ * Duration of the animation.
22
+ */
23
+ duration: {
24
+ type: NumberConstructor;
25
+ default: number;
26
+ };
27
+ /**
28
+ * HTML tag to render this component to.
29
+ */
30
+ tag: {
31
+ type: StringConstructor;
32
+ default: string;
33
+ };
34
+ }, unknown, SlideUpDownData, {
35
+ stylePreTransition(): StyleTransition;
36
+ styleActiveTransition(): StyleTransition;
37
+ stylePostTransition(): StyleTransition;
38
+ style(): StyleTransition;
39
+ activeHeight(): number;
40
+ containerScrollHeight(): number;
41
+ $container(): HTMLElement | undefined;
42
+ }, {
43
+ triggerSlide(): Promise<void>;
44
+ cleanLayout(e: Event | null): Promise<void> | undefined;
45
+ deferredNextTick(): Promise<void>;
46
+ }, import('../../node_modules/vue').ComponentOptionsMixin, import('../../node_modules/vue').ComponentOptionsMixin, {}, string, import('../../node_modules/vue').PublicProps, Readonly<import('../../node_modules/vue').ExtractPropTypes<{
47
+ /**
48
+ * Toggler property. Set to <em>false</em> to hide the component.
49
+ */
50
+ active: {
51
+ type: BooleanConstructor;
52
+ default: boolean;
53
+ };
54
+ /**
55
+ * Duration of the animation.
56
+ */
57
+ duration: {
58
+ type: NumberConstructor;
59
+ default: number;
60
+ };
61
+ /**
62
+ * HTML tag to render this component to.
63
+ */
64
+ tag: {
65
+ type: StringConstructor;
66
+ default: string;
67
+ };
68
+ }>>, {
69
+ active: boolean;
70
+ duration: number;
71
+ tag: string;
72
+ }, {}>;
73
+ export default _default;
@@ -0,0 +1,88 @@
1
+ import { PropType } from '../../node_modules/vue';
2
+ import { DeckTexture } from '../enums';
3
+
4
+ type TexturedDeckValue = DeckTexture | number;
5
+ declare const _default: import('../../node_modules/vue').DefineComponent<{
6
+ /**
7
+ * Name of the texture file ('silk', 'brick', 'rock', 'sand', 'crack', 'carbon')
8
+ */
9
+ modelValue: {
10
+ type: PropType<TexturedDeckValue>;
11
+ default: DeckTexture;
12
+ };
13
+ /**
14
+ * CSS background-size property (cover, contain, auto, 50%, 50% auto, ...)
15
+ */
16
+ size: {
17
+ type: StringConstructor;
18
+ default: string;
19
+ };
20
+ /**
21
+ * Tag/Component to use as root tag.
22
+ */
23
+ tag: {
24
+ type: (StringConstructor | ObjectConstructor)[];
25
+ default: string;
26
+ };
27
+ /**
28
+ * Either or note we should use the black version of the texture
29
+ */
30
+ black: {
31
+ type: BooleanConstructor;
32
+ default: boolean;
33
+ };
34
+ /**
35
+ * Host where to find the textures (without tailing slash)
36
+ */
37
+ backgroundBaseUrl: {
38
+ type: StringConstructor;
39
+ default: () => any;
40
+ };
41
+ }, {
42
+ backgroundSize: import('../../node_modules/vue').ComputedRef<string>;
43
+ backgroundImage: import('../../node_modules/vue').ComputedRef<string>;
44
+ inheritedProps: import('../../node_modules/vue').ComputedRef<object>;
45
+ }, unknown, {}, {}, import('../../node_modules/vue').ComponentOptionsMixin, import('../../node_modules/vue').ComponentOptionsMixin, {}, string, import('../../node_modules/vue').PublicProps, Readonly<import('../../node_modules/vue').ExtractPropTypes<{
46
+ /**
47
+ * Name of the texture file ('silk', 'brick', 'rock', 'sand', 'crack', 'carbon')
48
+ */
49
+ modelValue: {
50
+ type: PropType<TexturedDeckValue>;
51
+ default: DeckTexture;
52
+ };
53
+ /**
54
+ * CSS background-size property (cover, contain, auto, 50%, 50% auto, ...)
55
+ */
56
+ size: {
57
+ type: StringConstructor;
58
+ default: string;
59
+ };
60
+ /**
61
+ * Tag/Component to use as root tag.
62
+ */
63
+ tag: {
64
+ type: (StringConstructor | ObjectConstructor)[];
65
+ default: string;
66
+ };
67
+ /**
68
+ * Either or note we should use the black version of the texture
69
+ */
70
+ black: {
71
+ type: BooleanConstructor;
72
+ default: boolean;
73
+ };
74
+ /**
75
+ * Host where to find the textures (without tailing slash)
76
+ */
77
+ backgroundBaseUrl: {
78
+ type: StringConstructor;
79
+ default: () => any;
80
+ };
81
+ }>>, {
82
+ tag: string | Record<string, any>;
83
+ size: string;
84
+ black: boolean;
85
+ modelValue: TexturedDeckValue;
86
+ backgroundBaseUrl: string;
87
+ }, {}>;
88
+ export default _default;
@@ -0,0 +1,187 @@
1
+ import { PropType } from '../../node_modules/vue';
2
+ import { Size } from '../enums';
3
+
4
+ declare const _default: import('../../node_modules/vue').DefineComponent<{
5
+ /**
6
+ * Total items to be stored in pages
7
+ */
8
+ totalRows: {
9
+ type: NumberConstructor;
10
+ default: number;
11
+ };
12
+ /**
13
+ * Sets the quantity of items per page
14
+ */
15
+ perPage: {
16
+ type: NumberConstructor;
17
+ default: number;
18
+ };
19
+ /**
20
+ * Grabs and syncs the currentPage variable passed down from the parent in v-model
21
+ */
22
+ modelValue: {
23
+ type: (NumberConstructor | StringConstructor)[];
24
+ default: number;
25
+ };
26
+ /**
27
+ * Set the size of the input: 'sm', 'md' (default), or 'lg'.
28
+ */
29
+ size: {
30
+ type: PropType<Size>;
31
+ default: Size;
32
+ validator: (value: Size) => boolean;
33
+ };
34
+ /**
35
+ * (Optional) Number of page. Property `size` is required for this to work
36
+ * properly. If `pages` is empty, it will be calculated using the size.
37
+ */
38
+ pages: {
39
+ type: (NumberConstructor | StringConstructor)[];
40
+ default: null;
41
+ };
42
+ /**
43
+ * Hide navigation buttons (next and previous)
44
+ */
45
+ noNav: {
46
+ type: BooleanConstructor;
47
+ };
48
+ /**
49
+ * FontAwesome icon of the previous page button
50
+ */
51
+ previousPageIcon: {
52
+ type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
53
+ default: string;
54
+ };
55
+ /**
56
+ * FontAwesome icon of the next page button
57
+ */
58
+ nextPageIcon: {
59
+ type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
60
+ default: string;
61
+ };
62
+ /**
63
+ * Navigation button variants
64
+ */
65
+ navVariant: {
66
+ type: PropType<keyof import('bootstrap-vue-next').BaseButtonVariant>;
67
+ default: string;
68
+ };
69
+ /**
70
+ * Display pagination as a block (full width)
71
+ */
72
+ block: {
73
+ type: BooleanConstructor;
74
+ };
75
+ /**
76
+ * Compact mode with a grouped nav
77
+ */
78
+ compact: {
79
+ type: BooleanConstructor;
80
+ };
81
+ }, {
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>;
86
+ }>, never, string, string>;
87
+ currentPageInput: import('../../node_modules/vue').Ref<string | number>;
88
+ paginationClassList: import('../../node_modules/vue').ComputedRef<object>;
89
+ numberOfPages: import('../../node_modules/vue').ComputedRef<number>;
90
+ hasPrevious: import('../../node_modules/vue').ComputedRef<boolean>;
91
+ hasNext: import('../../node_modules/vue').ComputedRef<boolean>;
92
+ applyPreviousPage: () => void;
93
+ applyNextPage: () => void;
94
+ applyPageForm: () => void;
95
+ }, unknown, {}, {}, import('../../node_modules/vue').ComponentOptionsMixin, import('../../node_modules/vue').ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import('../../node_modules/vue').PublicProps, Readonly<import('../../node_modules/vue').ExtractPropTypes<{
96
+ /**
97
+ * Total items to be stored in pages
98
+ */
99
+ totalRows: {
100
+ type: NumberConstructor;
101
+ default: number;
102
+ };
103
+ /**
104
+ * Sets the quantity of items per page
105
+ */
106
+ perPage: {
107
+ type: NumberConstructor;
108
+ default: number;
109
+ };
110
+ /**
111
+ * Grabs and syncs the currentPage variable passed down from the parent in v-model
112
+ */
113
+ modelValue: {
114
+ type: (NumberConstructor | StringConstructor)[];
115
+ default: number;
116
+ };
117
+ /**
118
+ * Set the size of the input: 'sm', 'md' (default), or 'lg'.
119
+ */
120
+ size: {
121
+ type: PropType<Size>;
122
+ default: Size;
123
+ validator: (value: Size) => boolean;
124
+ };
125
+ /**
126
+ * (Optional) Number of page. Property `size` is required for this to work
127
+ * properly. If `pages` is empty, it will be calculated using the size.
128
+ */
129
+ pages: {
130
+ type: (NumberConstructor | StringConstructor)[];
131
+ default: null;
132
+ };
133
+ /**
134
+ * Hide navigation buttons (next and previous)
135
+ */
136
+ noNav: {
137
+ type: BooleanConstructor;
138
+ };
139
+ /**
140
+ * FontAwesome icon of the previous page button
141
+ */
142
+ previousPageIcon: {
143
+ type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
144
+ default: string;
145
+ };
146
+ /**
147
+ * FontAwesome icon of the next page button
148
+ */
149
+ nextPageIcon: {
150
+ type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
151
+ default: string;
152
+ };
153
+ /**
154
+ * Navigation button variants
155
+ */
156
+ navVariant: {
157
+ type: PropType<keyof import('bootstrap-vue-next').BaseButtonVariant>;
158
+ default: string;
159
+ };
160
+ /**
161
+ * Display pagination as a block (full width)
162
+ */
163
+ block: {
164
+ type: BooleanConstructor;
165
+ };
166
+ /**
167
+ * Compact mode with a grouped nav
168
+ */
169
+ compact: {
170
+ type: BooleanConstructor;
171
+ };
172
+ }>> & {
173
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
174
+ }, {
175
+ size: Size;
176
+ modelValue: string | number;
177
+ block: boolean;
178
+ compact: boolean;
179
+ perPage: number;
180
+ totalRows: number;
181
+ pages: string | number;
182
+ noNav: boolean;
183
+ previousPageIcon: string | Record<string, any> | unknown[];
184
+ nextPageIcon: string | Record<string, any> | unknown[];
185
+ navVariant: keyof import('bootstrap-vue-next').BaseButtonVariant;
186
+ }, {}>;
187
+ export default _default;
@@ -0,0 +1,47 @@
1
+ import { ComponentPublicInstance } from '../../node_modules/vue';
2
+ import { Ref, SetupContext } from '@vue/runtime-core';
3
+
4
+ type ChartContext<T extends string[]> = SetupContext<[...T, ...string[]]>;
5
+ type ChartEmit = Pick<ChartContext<['resized', 'loaded']>, 'emit'>;
6
+ type ChartProps = {
7
+ chartHeightRatio: {
8
+ type: NumberConstructor;
9
+ };
10
+ data: {
11
+ default: () => any[] | string;
12
+ validator(value: string): boolean;
13
+ type: (ArrayConstructor | StringConstructor | ObjectConstructor)[];
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
+ export declare function getChartProps(props: any): ChartProps;
29
+ export declare const chartProps: () => ChartProps;
30
+ export declare const chartEmits: string[];
31
+ type Chart = {
32
+ dataHasHighlights: any;
33
+ loadedData: any;
34
+ xAxisYearFormat: (year: number | string) => number | string;
35
+ elementsMaxBBox: ({ selector, defaultWidth, defaultHeight }?: {
36
+ selector?: any;
37
+ defaultWidth?: any;
38
+ defaultHeight?: any;
39
+ }) => {
40
+ width: any;
41
+ height: any;
42
+ };
43
+ d3Formatter: any;
44
+ baseHeightRatio: any;
45
+ };
46
+ export declare function useChart(resizableRef: Ref<ComponentPublicInstance<HTMLElement> | null>, props: ChartProps, { emit }: ChartEmit, isLoaded: Ref<boolean>, onResized?: () => void, afterLoaded?: () => Promise<any>): Chart;
47
+ export {};
@@ -0,0 +1,21 @@
1
+ import { Ref } from '../../node_modules/vue';
2
+
3
+ export declare const useResizeObserver: (resizableRef?: Ref) => {
4
+ resizeState: {
5
+ dimensions: {
6
+ height: number;
7
+ width: number;
8
+ x: number;
9
+ y: number;
10
+ readonly bottom: number;
11
+ readonly left: number;
12
+ readonly right: number;
13
+ readonly top: number;
14
+ toJSON: () => any;
15
+ };
16
+ offsetWidth: number;
17
+ narrowWidth: boolean;
18
+ };
19
+ resizeRef: Ref<HTMLElement>;
20
+ };
21
+ export default useResizeObserver;
@@ -0,0 +1,5 @@
1
+ import { MaybeRefOrGetter } from '../../node_modules/vue';
2
+
3
+ export declare function useSendEmail(email: MaybeRefOrGetter<string>, action?: string, emailField?: string, tracker?: string, referrer?: string | null, defaultGroups?: string[] | string): {
4
+ send: () => Promise<unknown>;
5
+ };
@@ -0,0 +1,20 @@
1
+ import { Ref } from '@vue/runtime-core';
2
+
3
+ type ConfigMap = {
4
+ [key: string]: any;
5
+ };
6
+ export declare class Config {
7
+ _VALUES: Ref<ConfigMap>;
8
+ _SCOPES: Ref<ConfigMap>;
9
+ constructor(values?: {});
10
+ merge(values?: {}): {};
11
+ set(key: string, value: any): any;
12
+ get(key: string, defaultValue?: NonNullable<unknown> | null): any;
13
+ is(key: string): boolean;
14
+ isnt(key: string): boolean;
15
+ scope(name: string): any;
16
+ get values(): ConfigMap;
17
+ get scopes(): ConfigMap;
18
+ }
19
+ declare const _default: Config;
20
+ export default _default;
@@ -0,0 +1,34 @@
1
+ declare const _default: {
2
+ 'imddb-header.dropdown.items': ({
3
+ label: string;
4
+ href: string;
5
+ active?: undefined;
6
+ } | {
7
+ label: string;
8
+ href: string;
9
+ active: boolean;
10
+ })[];
11
+ 'project.name': string;
12
+ 'app.name': string;
13
+ 'app.home': string;
14
+ 'app.donate-url': string;
15
+ 'contact-email': string;
16
+ 'content-placeholder.rows': {
17
+ height: string;
18
+ boxes: (string | number)[][];
19
+ }[];
20
+ 'donate-form.tracker': null;
21
+ 'sharing-options.url': null;
22
+ 'sharing-options.title': string;
23
+ 'sharing-options.description': string;
24
+ 'sharing-options.media': null;
25
+ 'sharing-options.twitter-user': string;
26
+ 'signup-form.tracker': string;
27
+ 'signup-form.action': string;
28
+ 'signup-form.email-field': string;
29
+ 'signup-form.default-groups': string[];
30
+ 'textured-deck.background-base-url': string;
31
+ 'map.topojson.world-countries-sans-antarctica': string;
32
+ 'map.topojson.france-departements': string;
33
+ };
34
+ export default _default;