@icij/murmur-next 4.0.0 → 4.0.1
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/README.md +15 -19
- package/dist/lib/components/AccordionStep.vue.d.ts +79 -0
- package/dist/lib/components/AccordionWrapper.vue.d.ts +33 -0
- package/dist/lib/components/ActiveTextTruncate.vue.d.ts +101 -0
- package/dist/lib/components/AdvancedLinkForm.vue.d.ts +168 -0
- package/dist/lib/components/Brand.vue.d.ts +55 -0
- package/dist/lib/components/BrandExpansion.vue.d.ts +105 -0
- package/dist/lib/components/ConfirmButton.vue.d.ts +158 -0
- package/dist/lib/components/ContentPlaceholder.vue.d.ts +44 -0
- package/dist/lib/components/CustomPagination.vue.d.ts +130 -0
- package/dist/lib/components/DigitsInput.vue.d.ts +66 -0
- package/dist/lib/components/DonateForm.vue.d.ts +46 -0
- package/dist/lib/components/EmbedForm.vue.d.ts +121 -0
- package/dist/lib/components/EmbeddableFooter.vue.d.ts +103 -0
- package/dist/lib/components/FollowUsPopover.vue.d.ts +16 -0
- package/dist/lib/components/GenericFooter.vue.d.ts +47 -0
- package/dist/lib/components/GenericHeader.vue.d.ts +928 -0
- package/dist/lib/components/HapticCopy.vue.d.ts +156 -0
- package/dist/lib/components/ImddbHeader.vue.d.ts +960 -0
- package/dist/lib/components/OrdinalLegend.vue.d.ts +87 -0
- package/dist/lib/components/RangePicker.vue.d.ts +196 -0
- package/dist/lib/components/ResponsiveIframe.vue.d.ts +45 -0
- package/dist/lib/components/ScaleLegend.vue.d.ts +101 -0
- package/dist/lib/components/SecretInput.vue.d.ts +99 -0
- package/dist/lib/components/SelectableDropdown.vue.d.ts +210 -0
- package/dist/lib/components/SharingOptions.vue.d.ts +153 -0
- package/dist/lib/components/SharingOptionsLink.vue.d.ts +200 -0
- package/dist/lib/components/SignUpForm.vue.d.ts +141 -0
- package/dist/lib/components/SlideUpDown.vue.d.ts +74 -0
- package/dist/lib/components/TexturedDeck.vue.d.ts +89 -0
- package/dist/lib/components/TinyPagination.vue.d.ts +188 -0
- package/dist/lib/composables/chart.d.ts +48 -0
- package/dist/lib/composables/resizeObserver.d.ts +22 -0
- package/dist/lib/composables/sendEmail.d.ts +6 -0
- package/dist/lib/config.d.ts +19 -0
- package/dist/lib/config.default.d.ts +34 -0
- package/dist/lib/datavisualisations/BarChart.vue.d.ts +234 -0
- package/dist/lib/datavisualisations/ColumnChart.vue.d.ts +404 -0
- package/dist/lib/datavisualisations/LineChart.vue.d.ts +200 -0
- package/dist/lib/datavisualisations/StackedBarChart.vue.d.ts +342 -0
- package/dist/lib/datavisualisations/StackedColumnChart.vue.d.ts +412 -0
- package/dist/lib/enums.d.ts +32 -0
- package/dist/lib/i18n.d.ts +4 -0
- package/dist/lib/keys.d.ts +2 -0
- package/dist/lib/main.d.ts +52 -0
- package/dist/lib/maps/ChoroplethMap.vue.d.ts +460 -0
- package/dist/lib/maps/ChoroplethMapAnnotation.vue.d.ts +188 -0
- package/dist/lib/maps/SymbolMap.vue.d.ts +276 -0
- package/dist/lib/murmur.css +1 -0
- package/dist/lib/murmur.js +44661 -0
- package/dist/lib/murmur.js.map +1 -0
- package/dist/lib/murmur.umd.cjs +837 -0
- package/dist/lib/murmur.umd.cjs.map +1 -0
- package/dist/lib/types.d.ts +44 -0
- package/dist/lib/utils/animation.d.ts +8 -0
- package/dist/lib/utils/assets.d.ts +2 -0
- package/dist/lib/utils/clipboard.d.ts +2 -0
- package/dist/lib/utils/iframe-resizer.d.ts +10 -0
- package/dist/lib/utils/placeholder.d.ts +12 -0
- package/dist/lib/utils/placeholderTypes.d.ts +18 -0
- package/dist/lib/utils/strings.d.ts +1 -0
- package/package.json +15 -1
- package/.github/workflows/deploy-github-pages.yaml +0 -50
- package/.storybook/app.scss +0 -14
- package/.storybook/doc_variables.scss +0 -20
- package/.storybook/main.ts +0 -35
- package/.storybook/preview-head.html +0 -2
- package/.storybook/preview.ts +0 -32
- package/deploy.js +0 -15
- package/docs/components/ApiTable.vue +0 -171
- package/docs/components/App.vue +0 -146
- package/docs/components/CollapsibleBlock.vue +0 -122
- package/docs/components/DocsHeader.vue +0 -68
- package/docs/components/DocsMenu.vue +0 -201
- package/docs/components/DocsMenuSection.vue +0 -109
- package/docs/components/EditLink.vue +0 -49
- package/docs/components/OutboundLink.vue +0 -13
- package/docs/components/PalettePresenter.vue +0 -96
- package/docs/components/RepositoryLink.vue +0 -28
- package/docs/components/SampleCard.vue +0 -119
- package/docs/main.js +0 -42
- package/docs/pages/components/accordion/doc.md +0 -96
- package/docs/pages/components/active-text-truncate/doc.md +0 -44
- package/docs/pages/components/advanced-link-form/doc.md +0 -105
- package/docs/pages/components/brand/doc.md +0 -30
- package/docs/pages/components/brand-expansion/doc.md +0 -70
- package/docs/pages/components/confirm-button/doc.md +0 -91
- package/docs/pages/components/content-placeholder/doc.md +0 -16
- package/docs/pages/components/custom-pagination/doc.md +0 -61
- package/docs/pages/components/digits-input/doc.md +0 -28
- package/docs/pages/components/donate-form/doc.md +0 -20
- package/docs/pages/components/embed-form/doc.md +0 -22
- package/docs/pages/components/embeddable-footer/doc.md +0 -60
- package/docs/pages/components/follow-us-popover/doc.md +0 -5
- package/docs/pages/components/generic-footer/doc.md +0 -21
- package/docs/pages/components/generic-header/doc.md +0 -24
- package/docs/pages/components/haptic-copy/doc.md +0 -27
- package/docs/pages/components/imddb-header/doc.md +0 -23
- package/docs/pages/components/ordinal-legend/doc.md +0 -44
- package/docs/pages/components/range-picker/doc.md +0 -86
- package/docs/pages/components/responsive-iframe/doc.md +0 -13
- package/docs/pages/components/scale-legend/doc.md +0 -65
- package/docs/pages/components/secret-input/doc.md +0 -12
- package/docs/pages/components/selectable-dropdown/doc.md +0 -156
- package/docs/pages/components/sharing-options/doc.md +0 -13
- package/docs/pages/components/sharing-options-link/doc.md +0 -36
- package/docs/pages/components/sign-up-form/doc.md +0 -13
- package/docs/pages/components/slide-up-down/doc.md +0 -28
- package/docs/pages/components/textured-deck/doc.md +0 -78
- package/docs/pages/components/tiny-pagination/doc.md +0 -92
- package/docs/pages/datavisualisation/bars/doc.md +0 -110
- package/docs/pages/datavisualisation/columns/doc.md +0 -165
- package/docs/pages/datavisualisation/lines/doc.md +0 -139
- package/docs/pages/datavisualisation/stacked-bar/doc.md +0 -160
- package/docs/pages/datavisualisation/stacked-column/doc.md +0 -191
- package/docs/pages/getting-started/about-icij/doc.md +0 -13
- package/docs/pages/getting-started/custom-bootstrap/doc.md +0 -36
- package/docs/pages/getting-started/installation-guide/doc.md +0 -59
- package/docs/pages/getting-started/internationalization/doc.md +0 -74
- package/docs/pages/maps/choropleth-map/doc.md +0 -420
- package/docs/pages/maps/choropleth-map-annotation/doc.md +0 -373
- package/docs/pages/maps/symbol-map/doc.md +0 -203
- package/docs/pages/structure/breakpoints/doc.md +0 -3
- package/docs/pages/structure/grid/doc.md +0 -3
- package/docs/pages/utilities/assets/doc.md +0 -138
- package/docs/pages/utilities/config/doc.md +0 -52
- package/docs/pages/utilities/iframes/doc.md +0 -3
- package/docs/pages/visual/colors/doc.md +0 -31
- package/docs/pages/visual/iconography/doc.md +0 -56
- package/docs/pages/visual/states/doc.md +0 -77
- package/docs/pages/visual/themes/doc.md +0 -3
- package/docs/pages/visual/typography/doc.md +0 -71
- package/docs/routes.js +0 -25
- package/docs/store/index.js +0 -21
- package/docs/styles/app.scss +0 -36
- package/docs/styles/variables.scss +0 -20
- package/loaders/highlight-loader.js +0 -13
- package/loaders/markdown-loader.js +0 -91
- package/loaders/metadata-loader.js +0 -18
- package/loaders/sass-extract-loader.js +0 -14
- package/loaders/vue-docgen-loader.js +0 -14
- package/plugins/MdPluginTypes.ts +0 -10
- package/plugins/docs.ts +0 -50
- package/plugins/front-matter.ts +0 -36
- package/plugins/highlight.ts +0 -27
- package/plugins/markdown-it/api-table.ts +0 -25
- package/plugins/markdown-it/sample-card.ts +0 -31
- package/plugins/plugin-delete.ts +0 -47
- package/plugins/plugin-docgen.ts +0 -23
- package/plugins/sass-vars.ts +0 -25
- package/plugins/vue-docgen.ts +0 -29
- package/public/android-chrome-192x192.png +0 -0
- package/public/android-chrome-512x512.png +0 -0
- package/public/apple-touch-icon.png +0 -0
- package/public/assets/img/arrow-bottom.svg +0 -3
- package/public/assets/img/texture-brick-black.jpg +0 -0
- package/public/assets/img/texture-brick.jpg +0 -0
- package/public/assets/img/texture-carbon-black.jpg +0 -0
- package/public/assets/img/texture-carbon.jpg +0 -0
- package/public/assets/img/texture-crack-black.jpg +0 -0
- package/public/assets/img/texture-crack.jpg +0 -0
- package/public/assets/img/texture-rock-black.jpg +0 -0
- package/public/assets/img/texture-rock.jpg +0 -0
- package/public/assets/img/texture-sand-black.jpg +0 -0
- package/public/assets/img/texture-sand.jpg +0 -0
- package/public/assets/img/texture-silk-black.jpg +0 -0
- package/public/assets/img/texture-silk.jpg +0 -0
- package/public/assets/topojson/france-departments.json +0 -1
- package/public/assets/topojson/paris-arrondissements.json +0 -1
- package/public/assets/topojson/world-countries-sans-antarctica.json +0 -1
- package/public/favicon-16x16.png +0 -0
- package/public/favicon-32x32.png +0 -0
- package/public/favicon.ico +0 -0
- package/public/site.webmanifest +0 -1
- package/stories/assets/code-brackets.svg +0 -1
- package/stories/assets/colors.svg +0 -1
- package/stories/assets/comments.svg +0 -1
- package/stories/assets/direction.svg +0 -1
- package/stories/assets/flow.svg +0 -1
- package/stories/assets/plugin.svg +0 -1
- package/stories/assets/repo.svg +0 -1
- package/stories/assets/stackalt.svg +0 -1
- package/stories/getting-started/about-icij.mdx +0 -14
- package/stories/getting-started/custom-bootstrap.mdx +0 -23
- package/stories/getting-started/installation-guide.mdx +0 -62
- package/stories/getting-started/internationalization.mdx +0 -63
- package/stories/murmur/components/AccordionStep.stories.ts +0 -33
- package/stories/murmur/components/AccordionWrapper.stories.ts +0 -69
- package/stories/murmur/components/ActiveTextTruncate.stories.ts +0 -32
- package/stories/murmur/components/AdvancedLinkForm.stories.ts +0 -77
- package/stories/murmur/components/Brand.stories.ts +0 -30
- package/stories/murmur/components/BrandExpansion.stories.ts +0 -41
- package/stories/murmur/components/ConfirmButton.stories.ts +0 -40
- package/stories/murmur/components/ContentPlaceholder.stories.ts +0 -41
- package/stories/murmur/components/CustomPagination.stories.ts +0 -42
- package/stories/murmur/components/DigitsInput.stories.ts +0 -29
- package/stories/murmur/components/DonateForm.stories.ts +0 -29
- package/stories/murmur/components/EmbedForm.stories.ts +0 -35
- package/stories/murmur/components/EmbeddableFooter.stories.ts +0 -59
- package/stories/murmur/components/FollowUsPopover.stories.ts +0 -24
- package/stories/murmur/components/GenericFooter.stories.ts +0 -27
- package/stories/murmur/components/GenericHeader.stories.ts +0 -27
- package/stories/murmur/components/HapticCopy.stories.ts +0 -40
- package/stories/murmur/components/ImddbHeader.stories.ts +0 -27
- package/stories/murmur/components/OrdinalLegend.stories.ts +0 -49
- package/stories/murmur/components/RangePicker.stories.ts +0 -98
- package/stories/murmur/components/ResponsiveIframe.stories.ts +0 -24
- package/stories/murmur/components/ScaleLegend.stories.ts +0 -65
- package/stories/murmur/components/SecretInput.stories.ts +0 -60
- package/stories/murmur/components/SelectableDropdown.stories.ts +0 -143
- package/stories/murmur/components/SharingOptions.stories.ts +0 -32
- package/stories/murmur/components/SharingOptionsLink.stories.ts +0 -53
- package/stories/murmur/components/SignUpForm.stories.ts +0 -51
- package/stories/murmur/components/SlideUpDown.stories.ts +0 -32
- package/stories/murmur/components/TexturedDeck.stories.ts +0 -83
- package/stories/murmur/components/TinyPagination.stories.ts +0 -65
- package/stories/murmur/datavisualisations/BarChart.stories.ts +0 -54
- package/stories/murmur/datavisualisations/ColumnChart.stories.ts +0 -88
- package/stories/murmur/datavisualisations/LineChart.stories.ts +0 -139
- package/stories/murmur/datavisualisations/StackedBarChart.stories.ts +0 -199
- package/stories/murmur/datavisualisations/StackedColumnChart.stories.ts +0 -136
- package/stories/murmur/decorators.ts +0 -108
- package/stories/murmur/maps/ChoroplethMap.stories.ts +0 -440
- package/stories/murmur/maps/ChoroplethMapAnnotation.stories.ts +0 -26
- package/stories/murmur/maps/SymbolMap.stories.ts +0 -24
- package/stories/murmur/utils.ts +0 -7
- package/tests/unit/components/AccordionStep.spec.ts +0 -157
- package/tests/unit/components/AccordionWrapper.spec.ts +0 -57
- package/tests/unit/components/ActiveTextTruncate.spec.js +0 -30
- package/tests/unit/components/AdvancedLinkForm.spec.js +0 -124
- package/tests/unit/components/Brand.spec.js +0 -50
- package/tests/unit/components/ContentPlaceholder.spec.js +0 -29
- package/tests/unit/components/CustomPagination.spec.js +0 -72
- package/tests/unit/components/DigitsInput.spec.ts +0 -157
- package/tests/unit/components/DonateForm.spec.js +0 -149
- package/tests/unit/components/EmbedForm.spec.js +0 -108
- package/tests/unit/components/EmbeddableFooter.spec.js +0 -11
- package/tests/unit/components/Fa.spec.js +0 -18
- package/tests/unit/components/FollowUsPopover.spec.js +0 -29
- package/tests/unit/components/GenericFooter.spec.js +0 -29
- package/tests/unit/components/GenericHeader.spec.js +0 -104
- package/tests/unit/components/HapticCopy.spec.js +0 -123
- package/tests/unit/components/ImddbHeader.spec.js +0 -96
- package/tests/unit/components/OrdinalLegend.spec.js +0 -120
- package/tests/unit/components/RangePicker.spec.ts +0 -87
- package/tests/unit/components/ResponsiveIframe.spec.js +0 -20
- package/tests/unit/components/ScaleLegend.spec.js +0 -139
- package/tests/unit/components/SecretInput.spec.js +0 -81
- package/tests/unit/components/SelectableDropdown.spec.js +0 -160
- package/tests/unit/components/SharingOptions.spec.js +0 -125
- package/tests/unit/components/SharingOptionsLink.spec.js +0 -184
- package/tests/unit/components/SignUpForm.spec.js +0 -145
- package/tests/unit/components/SlideUpDown.spec.js +0 -59
- package/tests/unit/components/TinyPagination.spec.js +0 -46
- package/tests/unit/config.spec.js +0 -136
- package/tests/unit/datavisualisations/BarChart.spec.js +0 -63
- package/tests/unit/datavisualisations/ColumnChart.spec.js +0 -344
- package/tests/unit/datavisualisations/LineChart.spec.js +0 -155
- package/tests/unit/datavisualisations/StackedBarChart.spec.js +0 -294
- package/tests/unit/datavisualisations/StackedColumnChart.spec.js +0 -443
- package/tests/unit/i18n.spec.ts +0 -19
- package/tests/unit/main.spec.js +0 -82
- package/tests/unit/maps/ChoroplethMap.spec.js +0 -214
- package/tests/unit/maps/ChoroplethMapAnnotation.spec.ts +0 -186
- package/tests/unit/maps/SymbolMap.spec.js +0 -92
- package/tests/unit/require.spec.js +0 -22
- package/tests/unit/setup.js +0 -13
- package/tests/unit/utils/assets.spec.js +0 -61
- package/tests/unit/utils/clipboard.spec.js +0 -18
- package/tests/unit/utils/iframe-resizer.spec.js +0 -71
- package/tsconfig.json +0 -35
- package/vite.config.ts +0 -79
- package/vitest.config.ts +0 -19
|
@@ -0,0 +1,234 @@
|
|
|
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
|
+
* Color of each highlighted bar (uses the CSS variable --bar-highlight-color by default)
|
|
7
|
+
*/
|
|
8
|
+
}; /**
|
|
9
|
+
* Color of each highlighted bar (uses the CSS variable --bar-highlight-color by default)
|
|
10
|
+
*/
|
|
11
|
+
data: {
|
|
12
|
+
default: () => string | any[];
|
|
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
|
+
type: NumberConstructor;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Height of each bar
|
|
30
|
+
*/
|
|
31
|
+
barHeight: {
|
|
32
|
+
type: NumberConstructor;
|
|
33
|
+
default: number;
|
|
34
|
+
};
|
|
35
|
+
/**
|
|
36
|
+
* Distance between each bar
|
|
37
|
+
*/
|
|
38
|
+
barGap: {
|
|
39
|
+
type: NumberConstructor;
|
|
40
|
+
default: number;
|
|
41
|
+
};
|
|
42
|
+
/**
|
|
43
|
+
* Color of each bar (uses the CSS variable --bar-color by default)
|
|
44
|
+
*/
|
|
45
|
+
barColor: {
|
|
46
|
+
type: StringConstructor;
|
|
47
|
+
default: null;
|
|
48
|
+
};
|
|
49
|
+
/**
|
|
50
|
+
* Color of each highlighted bar (uses the CSS variable --bar-highlight-color by default)
|
|
51
|
+
*/
|
|
52
|
+
barHighlightColor: {
|
|
53
|
+
type: StringConstructor;
|
|
54
|
+
default: null;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* Enforce a width for each bar's label
|
|
58
|
+
*/
|
|
59
|
+
fixedLabelWidth: {
|
|
60
|
+
type: NumberConstructor;
|
|
61
|
+
default: null;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Enforce a width for each bar's value
|
|
65
|
+
*/
|
|
66
|
+
fixedValueWidth: {
|
|
67
|
+
type: NumberConstructor;
|
|
68
|
+
default: null;
|
|
69
|
+
};
|
|
70
|
+
/**
|
|
71
|
+
* Distance between a bar and its label
|
|
72
|
+
*/
|
|
73
|
+
labelGap: {
|
|
74
|
+
type: NumberConstructor;
|
|
75
|
+
default: number;
|
|
76
|
+
};
|
|
77
|
+
/**
|
|
78
|
+
* Distande between a bar and its value
|
|
79
|
+
*/
|
|
80
|
+
valueGap: {
|
|
81
|
+
type: NumberConstructor;
|
|
82
|
+
default: number;
|
|
83
|
+
};
|
|
84
|
+
/**
|
|
85
|
+
* Sort bars by one or several keys.
|
|
86
|
+
*/
|
|
87
|
+
sortBy: {
|
|
88
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
89
|
+
default: null;
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* Function to apply to format x axis ticks (bar value). It can be a
|
|
93
|
+
* function returning the formatted value or a d3's formatter string.
|
|
94
|
+
*/
|
|
95
|
+
xAxisTickFormat: {
|
|
96
|
+
type: (StringConstructor | FunctionConstructor)[];
|
|
97
|
+
default: () => {
|
|
98
|
+
<T>(value: T): T;
|
|
99
|
+
(): undefined;
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
}, {
|
|
103
|
+
el: import('../../node_modules/vue').Ref<null>;
|
|
104
|
+
dataHasHighlights: any;
|
|
105
|
+
width: import('../../node_modules/vue').Ref<number>;
|
|
106
|
+
height: import('../../node_modules/vue').ComputedRef<number>;
|
|
107
|
+
margin: import('../../node_modules/vue').ComputedRef<{
|
|
108
|
+
left: any;
|
|
109
|
+
right: number;
|
|
110
|
+
top: number;
|
|
111
|
+
bottom: number;
|
|
112
|
+
}>;
|
|
113
|
+
labels: import('../../node_modules/vue').ComputedRef<any>;
|
|
114
|
+
bars: import('../../node_modules/vue').ComputedRef<any>;
|
|
115
|
+
formatXDatum: (d: any) => any;
|
|
116
|
+
}, 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<{
|
|
117
|
+
chartHeightRatio: {
|
|
118
|
+
type: NumberConstructor; /**
|
|
119
|
+
* Color of each highlighted bar (uses the CSS variable --bar-highlight-color by default)
|
|
120
|
+
*/
|
|
121
|
+
}; /**
|
|
122
|
+
* Color of each highlighted bar (uses the CSS variable --bar-highlight-color by default)
|
|
123
|
+
*/
|
|
124
|
+
data: {
|
|
125
|
+
default: () => string | any[];
|
|
126
|
+
validator(value: string): boolean;
|
|
127
|
+
type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
|
|
128
|
+
};
|
|
129
|
+
dataUrlType: {
|
|
130
|
+
default: string;
|
|
131
|
+
validator(value: string): boolean;
|
|
132
|
+
type: StringConstructor;
|
|
133
|
+
};
|
|
134
|
+
socialMode: {
|
|
135
|
+
type: BooleanConstructor;
|
|
136
|
+
};
|
|
137
|
+
socialModeRatio: {
|
|
138
|
+
default: number;
|
|
139
|
+
type: NumberConstructor;
|
|
140
|
+
};
|
|
141
|
+
/**
|
|
142
|
+
* Height of each bar
|
|
143
|
+
*/
|
|
144
|
+
barHeight: {
|
|
145
|
+
type: NumberConstructor;
|
|
146
|
+
default: number;
|
|
147
|
+
};
|
|
148
|
+
/**
|
|
149
|
+
* Distance between each bar
|
|
150
|
+
*/
|
|
151
|
+
barGap: {
|
|
152
|
+
type: NumberConstructor;
|
|
153
|
+
default: number;
|
|
154
|
+
};
|
|
155
|
+
/**
|
|
156
|
+
* Color of each bar (uses the CSS variable --bar-color by default)
|
|
157
|
+
*/
|
|
158
|
+
barColor: {
|
|
159
|
+
type: StringConstructor;
|
|
160
|
+
default: null;
|
|
161
|
+
};
|
|
162
|
+
/**
|
|
163
|
+
* Color of each highlighted bar (uses the CSS variable --bar-highlight-color by default)
|
|
164
|
+
*/
|
|
165
|
+
barHighlightColor: {
|
|
166
|
+
type: StringConstructor;
|
|
167
|
+
default: null;
|
|
168
|
+
};
|
|
169
|
+
/**
|
|
170
|
+
* Enforce a width for each bar's label
|
|
171
|
+
*/
|
|
172
|
+
fixedLabelWidth: {
|
|
173
|
+
type: NumberConstructor;
|
|
174
|
+
default: null;
|
|
175
|
+
};
|
|
176
|
+
/**
|
|
177
|
+
* Enforce a width for each bar's value
|
|
178
|
+
*/
|
|
179
|
+
fixedValueWidth: {
|
|
180
|
+
type: NumberConstructor;
|
|
181
|
+
default: null;
|
|
182
|
+
};
|
|
183
|
+
/**
|
|
184
|
+
* Distance between a bar and its label
|
|
185
|
+
*/
|
|
186
|
+
labelGap: {
|
|
187
|
+
type: NumberConstructor;
|
|
188
|
+
default: number;
|
|
189
|
+
};
|
|
190
|
+
/**
|
|
191
|
+
* Distande between a bar and its value
|
|
192
|
+
*/
|
|
193
|
+
valueGap: {
|
|
194
|
+
type: NumberConstructor;
|
|
195
|
+
default: number;
|
|
196
|
+
};
|
|
197
|
+
/**
|
|
198
|
+
* Sort bars by one or several keys.
|
|
199
|
+
*/
|
|
200
|
+
sortBy: {
|
|
201
|
+
type: (StringConstructor | ArrayConstructor)[];
|
|
202
|
+
default: null;
|
|
203
|
+
};
|
|
204
|
+
/**
|
|
205
|
+
* Function to apply to format x axis ticks (bar value). It can be a
|
|
206
|
+
* function returning the formatted value or a d3's formatter string.
|
|
207
|
+
*/
|
|
208
|
+
xAxisTickFormat: {
|
|
209
|
+
type: (StringConstructor | FunctionConstructor)[];
|
|
210
|
+
default: () => {
|
|
211
|
+
<T>(value: T): T;
|
|
212
|
+
(): undefined;
|
|
213
|
+
};
|
|
214
|
+
};
|
|
215
|
+
}>> & {
|
|
216
|
+
onResized?: ((...args: any[]) => any) | undefined;
|
|
217
|
+
onLoaded?: ((...args: any[]) => any) | undefined;
|
|
218
|
+
}, {
|
|
219
|
+
data: string | Record<string, any> | unknown[];
|
|
220
|
+
barHeight: number;
|
|
221
|
+
barGap: number;
|
|
222
|
+
barColor: string;
|
|
223
|
+
barHighlightColor: string;
|
|
224
|
+
fixedLabelWidth: number;
|
|
225
|
+
fixedValueWidth: number;
|
|
226
|
+
labelGap: number;
|
|
227
|
+
valueGap: number;
|
|
228
|
+
sortBy: string | unknown[];
|
|
229
|
+
xAxisTickFormat: string | Function;
|
|
230
|
+
dataUrlType: string;
|
|
231
|
+
socialMode: boolean;
|
|
232
|
+
socialModeRatio: number;
|
|
233
|
+
}, {}>;
|
|
234
|
+
export default _default;
|
|
@@ -0,0 +1,404 @@
|
|
|
1
|
+
/// <reference types="@/shims-vue" />
|
|
2
|
+
/// <reference types="vue-i18n" />
|
|
3
|
+
import { ComponentPublicInstance, PropType } from '../../node_modules/vue';
|
|
4
|
+
type ColumnBar = {
|
|
5
|
+
datum: {
|
|
6
|
+
[timeSerie: string]: any;
|
|
7
|
+
};
|
|
8
|
+
width: number;
|
|
9
|
+
height: number;
|
|
10
|
+
x: number;
|
|
11
|
+
y: number;
|
|
12
|
+
};
|
|
13
|
+
declare const _default: import('../../node_modules/vue').DefineComponent<{
|
|
14
|
+
chartHeightRatio: {
|
|
15
|
+
type: NumberConstructor;
|
|
16
|
+
};
|
|
17
|
+
data: {
|
|
18
|
+
default: () => string | any[];
|
|
19
|
+
validator(value: string): boolean;
|
|
20
|
+
type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
|
|
21
|
+
};
|
|
22
|
+
dataUrlType: {
|
|
23
|
+
default: string;
|
|
24
|
+
validator(value: string): boolean;
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
};
|
|
27
|
+
socialMode: {
|
|
28
|
+
type: BooleanConstructor;
|
|
29
|
+
};
|
|
30
|
+
socialModeRatio: {
|
|
31
|
+
default: number;
|
|
32
|
+
type: NumberConstructor;
|
|
33
|
+
};
|
|
34
|
+
/**
|
|
35
|
+
* Color of each column (uses the CSS variable --column-color by default)
|
|
36
|
+
*/
|
|
37
|
+
columnColor: {
|
|
38
|
+
type: PropType<string>;
|
|
39
|
+
default: null;
|
|
40
|
+
};
|
|
41
|
+
/**
|
|
42
|
+
* Color of each highlighted column (uses the CSS variable --column-color by default)
|
|
43
|
+
*/
|
|
44
|
+
columnHighlightColor: {
|
|
45
|
+
type: PropType<string>;
|
|
46
|
+
default: null;
|
|
47
|
+
};
|
|
48
|
+
/**
|
|
49
|
+
* Enforce the height of the chart (regardless of the width or the social mode)
|
|
50
|
+
*/
|
|
51
|
+
fixedHeight: {
|
|
52
|
+
type: PropType<number>;
|
|
53
|
+
default: null;
|
|
54
|
+
};
|
|
55
|
+
/**
|
|
56
|
+
* Enforce a width for each column's label
|
|
57
|
+
*/
|
|
58
|
+
fixedLabelWidth: {
|
|
59
|
+
type: PropType<number>;
|
|
60
|
+
default: null;
|
|
61
|
+
};
|
|
62
|
+
/**
|
|
63
|
+
* Name of the series (to get the value from in the data collection objects)
|
|
64
|
+
*/
|
|
65
|
+
seriesName: {
|
|
66
|
+
type: PropType<string>;
|
|
67
|
+
default: string;
|
|
68
|
+
};
|
|
69
|
+
/**
|
|
70
|
+
* Hide x axis ticks when no enough space
|
|
71
|
+
*/
|
|
72
|
+
xAxisTickCollapse: {
|
|
73
|
+
type: PropType<boolean>;
|
|
74
|
+
default: boolean;
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* Function to apply to format x axis ticks
|
|
78
|
+
*/
|
|
79
|
+
xAxisTickFormat: {
|
|
80
|
+
type: PropType<string | Function>;
|
|
81
|
+
default: () => {
|
|
82
|
+
<T>(value: T): T;
|
|
83
|
+
(): undefined;
|
|
84
|
+
};
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* Definition of x axis ticks
|
|
88
|
+
*/
|
|
89
|
+
xAxisTicks: {
|
|
90
|
+
type: PropType<string[] | null>;
|
|
91
|
+
default: null;
|
|
92
|
+
};
|
|
93
|
+
/**
|
|
94
|
+
* Function to apply to format y axis ticks
|
|
95
|
+
*/
|
|
96
|
+
yAxisTickFormat: {
|
|
97
|
+
type: PropType<string | Function>;
|
|
98
|
+
default: () => {
|
|
99
|
+
<T>(value: T): T;
|
|
100
|
+
(): undefined;
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
/**
|
|
104
|
+
* Definition of y axis ticks
|
|
105
|
+
*/
|
|
106
|
+
yAxisTicks: {
|
|
107
|
+
type: PropType<number | object>;
|
|
108
|
+
default: number;
|
|
109
|
+
};
|
|
110
|
+
/**
|
|
111
|
+
* Sort columns by one or several keys.
|
|
112
|
+
*/
|
|
113
|
+
sortBy: {
|
|
114
|
+
type: PropType<string | string[]>;
|
|
115
|
+
default: null;
|
|
116
|
+
};
|
|
117
|
+
/**
|
|
118
|
+
* Key to use for timeseries
|
|
119
|
+
*/
|
|
120
|
+
timeseriesKey: {
|
|
121
|
+
type: PropType<string>;
|
|
122
|
+
default: string;
|
|
123
|
+
};
|
|
124
|
+
/**
|
|
125
|
+
* Set max value instead of extracting it from the data.
|
|
126
|
+
*/
|
|
127
|
+
maxValue: {
|
|
128
|
+
type: PropType<number>;
|
|
129
|
+
default: null;
|
|
130
|
+
};
|
|
131
|
+
/**
|
|
132
|
+
* Hide bar tooltips
|
|
133
|
+
*/
|
|
134
|
+
noTooltips: {
|
|
135
|
+
type: PropType<boolean>;
|
|
136
|
+
};
|
|
137
|
+
/**
|
|
138
|
+
* Hide x axis
|
|
139
|
+
*/
|
|
140
|
+
noXAxis: {
|
|
141
|
+
type: PropType<boolean>;
|
|
142
|
+
};
|
|
143
|
+
/**
|
|
144
|
+
* Hide y axis
|
|
145
|
+
*/
|
|
146
|
+
noYAxis: {
|
|
147
|
+
type: PropType<boolean>;
|
|
148
|
+
};
|
|
149
|
+
/**
|
|
150
|
+
* Bar padding as a portion of each bar width
|
|
151
|
+
*/
|
|
152
|
+
barPadding: {
|
|
153
|
+
type: PropType<number>;
|
|
154
|
+
default: number;
|
|
155
|
+
};
|
|
156
|
+
/**
|
|
157
|
+
* Bar margin in pixel
|
|
158
|
+
*/
|
|
159
|
+
barMargin: {
|
|
160
|
+
type: PropType<number>;
|
|
161
|
+
default: number;
|
|
162
|
+
};
|
|
163
|
+
/**
|
|
164
|
+
* A list of highlighted key
|
|
165
|
+
*/
|
|
166
|
+
highlights: {
|
|
167
|
+
type: PropType<string[]>;
|
|
168
|
+
default: () => never[];
|
|
169
|
+
};
|
|
170
|
+
/**
|
|
171
|
+
* Show a "placeholder" behind every bar
|
|
172
|
+
*/
|
|
173
|
+
stripped: {
|
|
174
|
+
type: PropType<boolean>;
|
|
175
|
+
};
|
|
176
|
+
/**
|
|
177
|
+
* Show a "placeholder" behind every bar on hover
|
|
178
|
+
*/
|
|
179
|
+
hover: {
|
|
180
|
+
type: PropType<boolean>;
|
|
181
|
+
};
|
|
182
|
+
}, {
|
|
183
|
+
el: import('../../node_modules/vue').Ref<ComponentPublicInstance<HTMLElement> | null>;
|
|
184
|
+
dataHasHighlights: any;
|
|
185
|
+
width: import('../../node_modules/vue').Ref<number>;
|
|
186
|
+
height: import('../../node_modules/vue').Ref<number>;
|
|
187
|
+
margin: import('../../node_modules/vue').ComputedRef<{
|
|
188
|
+
left: number;
|
|
189
|
+
right: number;
|
|
190
|
+
top: number;
|
|
191
|
+
bottom: number;
|
|
192
|
+
}>;
|
|
193
|
+
padded: import('../../node_modules/vue').ComputedRef<{
|
|
194
|
+
width: number;
|
|
195
|
+
height: number;
|
|
196
|
+
}>;
|
|
197
|
+
shownTooltip: import('../../node_modules/vue').Ref<number>;
|
|
198
|
+
bars: import('../../node_modules/vue').ComputedRef<ColumnBar[]>;
|
|
199
|
+
select: ({ datum }: {
|
|
200
|
+
datum: any;
|
|
201
|
+
}) => void;
|
|
202
|
+
highlighted: (datum: any) => boolean;
|
|
203
|
+
barTooltipStyle: (bar: {
|
|
204
|
+
x: number;
|
|
205
|
+
y: number;
|
|
206
|
+
width: number;
|
|
207
|
+
}) => {
|
|
208
|
+
top: string;
|
|
209
|
+
left: string;
|
|
210
|
+
};
|
|
211
|
+
formatYDatum: (d: any) => any;
|
|
212
|
+
formatXDatum: (d: any) => any;
|
|
213
|
+
}, unknown, {}, {}, import('../../node_modules/vue').ComponentOptionsMixin, import('../../node_modules/vue').ComponentOptionsMixin, {}, string, import('../../node_modules/vue').PublicProps, Readonly<import('../../node_modules/vue').ExtractPropTypes<{
|
|
214
|
+
chartHeightRatio: {
|
|
215
|
+
type: NumberConstructor;
|
|
216
|
+
};
|
|
217
|
+
data: {
|
|
218
|
+
default: () => string | any[];
|
|
219
|
+
validator(value: string): boolean;
|
|
220
|
+
type: (StringConstructor | ObjectConstructor | ArrayConstructor)[];
|
|
221
|
+
};
|
|
222
|
+
dataUrlType: {
|
|
223
|
+
default: string;
|
|
224
|
+
validator(value: string): boolean;
|
|
225
|
+
type: StringConstructor;
|
|
226
|
+
};
|
|
227
|
+
socialMode: {
|
|
228
|
+
type: BooleanConstructor;
|
|
229
|
+
};
|
|
230
|
+
socialModeRatio: {
|
|
231
|
+
default: number;
|
|
232
|
+
type: NumberConstructor;
|
|
233
|
+
};
|
|
234
|
+
/**
|
|
235
|
+
* Color of each column (uses the CSS variable --column-color by default)
|
|
236
|
+
*/
|
|
237
|
+
columnColor: {
|
|
238
|
+
type: PropType<string>;
|
|
239
|
+
default: null;
|
|
240
|
+
};
|
|
241
|
+
/**
|
|
242
|
+
* Color of each highlighted column (uses the CSS variable --column-color by default)
|
|
243
|
+
*/
|
|
244
|
+
columnHighlightColor: {
|
|
245
|
+
type: PropType<string>;
|
|
246
|
+
default: null;
|
|
247
|
+
};
|
|
248
|
+
/**
|
|
249
|
+
* Enforce the height of the chart (regardless of the width or the social mode)
|
|
250
|
+
*/
|
|
251
|
+
fixedHeight: {
|
|
252
|
+
type: PropType<number>;
|
|
253
|
+
default: null;
|
|
254
|
+
};
|
|
255
|
+
/**
|
|
256
|
+
* Enforce a width for each column's label
|
|
257
|
+
*/
|
|
258
|
+
fixedLabelWidth: {
|
|
259
|
+
type: PropType<number>;
|
|
260
|
+
default: null;
|
|
261
|
+
};
|
|
262
|
+
/**
|
|
263
|
+
* Name of the series (to get the value from in the data collection objects)
|
|
264
|
+
*/
|
|
265
|
+
seriesName: {
|
|
266
|
+
type: PropType<string>;
|
|
267
|
+
default: string;
|
|
268
|
+
};
|
|
269
|
+
/**
|
|
270
|
+
* Hide x axis ticks when no enough space
|
|
271
|
+
*/
|
|
272
|
+
xAxisTickCollapse: {
|
|
273
|
+
type: PropType<boolean>;
|
|
274
|
+
default: boolean;
|
|
275
|
+
};
|
|
276
|
+
/**
|
|
277
|
+
* Function to apply to format x axis ticks
|
|
278
|
+
*/
|
|
279
|
+
xAxisTickFormat: {
|
|
280
|
+
type: PropType<string | Function>;
|
|
281
|
+
default: () => {
|
|
282
|
+
<T>(value: T): T;
|
|
283
|
+
(): undefined;
|
|
284
|
+
};
|
|
285
|
+
};
|
|
286
|
+
/**
|
|
287
|
+
* Definition of x axis ticks
|
|
288
|
+
*/
|
|
289
|
+
xAxisTicks: {
|
|
290
|
+
type: PropType<string[] | null>;
|
|
291
|
+
default: null;
|
|
292
|
+
};
|
|
293
|
+
/**
|
|
294
|
+
* Function to apply to format y axis ticks
|
|
295
|
+
*/
|
|
296
|
+
yAxisTickFormat: {
|
|
297
|
+
type: PropType<string | Function>;
|
|
298
|
+
default: () => {
|
|
299
|
+
<T>(value: T): T;
|
|
300
|
+
(): undefined;
|
|
301
|
+
};
|
|
302
|
+
};
|
|
303
|
+
/**
|
|
304
|
+
* Definition of y axis ticks
|
|
305
|
+
*/
|
|
306
|
+
yAxisTicks: {
|
|
307
|
+
type: PropType<number | object>;
|
|
308
|
+
default: number;
|
|
309
|
+
};
|
|
310
|
+
/**
|
|
311
|
+
* Sort columns by one or several keys.
|
|
312
|
+
*/
|
|
313
|
+
sortBy: {
|
|
314
|
+
type: PropType<string | string[]>;
|
|
315
|
+
default: null;
|
|
316
|
+
};
|
|
317
|
+
/**
|
|
318
|
+
* Key to use for timeseries
|
|
319
|
+
*/
|
|
320
|
+
timeseriesKey: {
|
|
321
|
+
type: PropType<string>;
|
|
322
|
+
default: string;
|
|
323
|
+
};
|
|
324
|
+
/**
|
|
325
|
+
* Set max value instead of extracting it from the data.
|
|
326
|
+
*/
|
|
327
|
+
maxValue: {
|
|
328
|
+
type: PropType<number>;
|
|
329
|
+
default: null;
|
|
330
|
+
};
|
|
331
|
+
/**
|
|
332
|
+
* Hide bar tooltips
|
|
333
|
+
*/
|
|
334
|
+
noTooltips: {
|
|
335
|
+
type: PropType<boolean>;
|
|
336
|
+
};
|
|
337
|
+
/**
|
|
338
|
+
* Hide x axis
|
|
339
|
+
*/
|
|
340
|
+
noXAxis: {
|
|
341
|
+
type: PropType<boolean>;
|
|
342
|
+
};
|
|
343
|
+
/**
|
|
344
|
+
* Hide y axis
|
|
345
|
+
*/
|
|
346
|
+
noYAxis: {
|
|
347
|
+
type: PropType<boolean>;
|
|
348
|
+
};
|
|
349
|
+
/**
|
|
350
|
+
* Bar padding as a portion of each bar width
|
|
351
|
+
*/
|
|
352
|
+
barPadding: {
|
|
353
|
+
type: PropType<number>;
|
|
354
|
+
default: number;
|
|
355
|
+
};
|
|
356
|
+
/**
|
|
357
|
+
* Bar margin in pixel
|
|
358
|
+
*/
|
|
359
|
+
barMargin: {
|
|
360
|
+
type: PropType<number>;
|
|
361
|
+
default: number;
|
|
362
|
+
};
|
|
363
|
+
/**
|
|
364
|
+
* A list of highlighted key
|
|
365
|
+
*/
|
|
366
|
+
highlights: {
|
|
367
|
+
type: PropType<string[]>;
|
|
368
|
+
default: () => never[];
|
|
369
|
+
};
|
|
370
|
+
/**
|
|
371
|
+
* Show a "placeholder" behind every bar
|
|
372
|
+
*/
|
|
373
|
+
stripped: {
|
|
374
|
+
type: PropType<boolean>;
|
|
375
|
+
};
|
|
376
|
+
/**
|
|
377
|
+
* Show a "placeholder" behind every bar on hover
|
|
378
|
+
*/
|
|
379
|
+
hover: {
|
|
380
|
+
type: PropType<boolean>;
|
|
381
|
+
};
|
|
382
|
+
}>>, {
|
|
383
|
+
data: string | Record<string, any> | unknown[];
|
|
384
|
+
fixedLabelWidth: number;
|
|
385
|
+
sortBy: string | string[];
|
|
386
|
+
xAxisTickFormat: string | Function;
|
|
387
|
+
dataUrlType: string;
|
|
388
|
+
socialMode: boolean;
|
|
389
|
+
socialModeRatio: number;
|
|
390
|
+
columnColor: string;
|
|
391
|
+
columnHighlightColor: string;
|
|
392
|
+
fixedHeight: number;
|
|
393
|
+
seriesName: string;
|
|
394
|
+
xAxisTickCollapse: boolean;
|
|
395
|
+
xAxisTicks: string[] | null;
|
|
396
|
+
yAxisTickFormat: string | Function;
|
|
397
|
+
yAxisTicks: number | object;
|
|
398
|
+
timeseriesKey: string;
|
|
399
|
+
maxValue: number;
|
|
400
|
+
barPadding: number;
|
|
401
|
+
barMargin: number;
|
|
402
|
+
highlights: string[];
|
|
403
|
+
}, {}>;
|
|
404
|
+
export default _default;
|