@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.
Files changed (273) hide show
  1. package/README.md +15 -19
  2. package/dist/lib/components/AccordionStep.vue.d.ts +79 -0
  3. package/dist/lib/components/AccordionWrapper.vue.d.ts +33 -0
  4. package/dist/lib/components/ActiveTextTruncate.vue.d.ts +101 -0
  5. package/dist/lib/components/AdvancedLinkForm.vue.d.ts +168 -0
  6. package/dist/lib/components/Brand.vue.d.ts +55 -0
  7. package/dist/lib/components/BrandExpansion.vue.d.ts +105 -0
  8. package/dist/lib/components/ConfirmButton.vue.d.ts +158 -0
  9. package/dist/lib/components/ContentPlaceholder.vue.d.ts +44 -0
  10. package/dist/lib/components/CustomPagination.vue.d.ts +130 -0
  11. package/dist/lib/components/DigitsInput.vue.d.ts +66 -0
  12. package/dist/lib/components/DonateForm.vue.d.ts +46 -0
  13. package/dist/lib/components/EmbedForm.vue.d.ts +121 -0
  14. package/dist/lib/components/EmbeddableFooter.vue.d.ts +103 -0
  15. package/dist/lib/components/FollowUsPopover.vue.d.ts +16 -0
  16. package/dist/lib/components/GenericFooter.vue.d.ts +47 -0
  17. package/dist/lib/components/GenericHeader.vue.d.ts +928 -0
  18. package/dist/lib/components/HapticCopy.vue.d.ts +156 -0
  19. package/dist/lib/components/ImddbHeader.vue.d.ts +960 -0
  20. package/dist/lib/components/OrdinalLegend.vue.d.ts +87 -0
  21. package/dist/lib/components/RangePicker.vue.d.ts +196 -0
  22. package/dist/lib/components/ResponsiveIframe.vue.d.ts +45 -0
  23. package/dist/lib/components/ScaleLegend.vue.d.ts +101 -0
  24. package/dist/lib/components/SecretInput.vue.d.ts +99 -0
  25. package/dist/lib/components/SelectableDropdown.vue.d.ts +210 -0
  26. package/dist/lib/components/SharingOptions.vue.d.ts +153 -0
  27. package/dist/lib/components/SharingOptionsLink.vue.d.ts +200 -0
  28. package/dist/lib/components/SignUpForm.vue.d.ts +141 -0
  29. package/dist/lib/components/SlideUpDown.vue.d.ts +74 -0
  30. package/dist/lib/components/TexturedDeck.vue.d.ts +89 -0
  31. package/dist/lib/components/TinyPagination.vue.d.ts +188 -0
  32. package/dist/lib/composables/chart.d.ts +48 -0
  33. package/dist/lib/composables/resizeObserver.d.ts +22 -0
  34. package/dist/lib/composables/sendEmail.d.ts +6 -0
  35. package/dist/lib/config.d.ts +19 -0
  36. package/dist/lib/config.default.d.ts +34 -0
  37. package/dist/lib/datavisualisations/BarChart.vue.d.ts +234 -0
  38. package/dist/lib/datavisualisations/ColumnChart.vue.d.ts +404 -0
  39. package/dist/lib/datavisualisations/LineChart.vue.d.ts +200 -0
  40. package/dist/lib/datavisualisations/StackedBarChart.vue.d.ts +342 -0
  41. package/dist/lib/datavisualisations/StackedColumnChart.vue.d.ts +412 -0
  42. package/dist/lib/enums.d.ts +32 -0
  43. package/dist/lib/i18n.d.ts +4 -0
  44. package/dist/lib/keys.d.ts +2 -0
  45. package/dist/lib/main.d.ts +52 -0
  46. package/dist/lib/maps/ChoroplethMap.vue.d.ts +460 -0
  47. package/dist/lib/maps/ChoroplethMapAnnotation.vue.d.ts +188 -0
  48. package/dist/lib/maps/SymbolMap.vue.d.ts +276 -0
  49. package/dist/lib/murmur.css +1 -0
  50. package/dist/lib/murmur.js +44661 -0
  51. package/dist/lib/murmur.js.map +1 -0
  52. package/dist/lib/murmur.umd.cjs +837 -0
  53. package/dist/lib/murmur.umd.cjs.map +1 -0
  54. package/dist/lib/types.d.ts +44 -0
  55. package/dist/lib/utils/animation.d.ts +8 -0
  56. package/dist/lib/utils/assets.d.ts +2 -0
  57. package/dist/lib/utils/clipboard.d.ts +2 -0
  58. package/dist/lib/utils/iframe-resizer.d.ts +10 -0
  59. package/dist/lib/utils/placeholder.d.ts +12 -0
  60. package/dist/lib/utils/placeholderTypes.d.ts +18 -0
  61. package/dist/lib/utils/strings.d.ts +1 -0
  62. package/package.json +15 -1
  63. package/.github/workflows/deploy-github-pages.yaml +0 -50
  64. package/.storybook/app.scss +0 -14
  65. package/.storybook/doc_variables.scss +0 -20
  66. package/.storybook/main.ts +0 -35
  67. package/.storybook/preview-head.html +0 -2
  68. package/.storybook/preview.ts +0 -32
  69. package/deploy.js +0 -15
  70. package/docs/components/ApiTable.vue +0 -171
  71. package/docs/components/App.vue +0 -146
  72. package/docs/components/CollapsibleBlock.vue +0 -122
  73. package/docs/components/DocsHeader.vue +0 -68
  74. package/docs/components/DocsMenu.vue +0 -201
  75. package/docs/components/DocsMenuSection.vue +0 -109
  76. package/docs/components/EditLink.vue +0 -49
  77. package/docs/components/OutboundLink.vue +0 -13
  78. package/docs/components/PalettePresenter.vue +0 -96
  79. package/docs/components/RepositoryLink.vue +0 -28
  80. package/docs/components/SampleCard.vue +0 -119
  81. package/docs/main.js +0 -42
  82. package/docs/pages/components/accordion/doc.md +0 -96
  83. package/docs/pages/components/active-text-truncate/doc.md +0 -44
  84. package/docs/pages/components/advanced-link-form/doc.md +0 -105
  85. package/docs/pages/components/brand/doc.md +0 -30
  86. package/docs/pages/components/brand-expansion/doc.md +0 -70
  87. package/docs/pages/components/confirm-button/doc.md +0 -91
  88. package/docs/pages/components/content-placeholder/doc.md +0 -16
  89. package/docs/pages/components/custom-pagination/doc.md +0 -61
  90. package/docs/pages/components/digits-input/doc.md +0 -28
  91. package/docs/pages/components/donate-form/doc.md +0 -20
  92. package/docs/pages/components/embed-form/doc.md +0 -22
  93. package/docs/pages/components/embeddable-footer/doc.md +0 -60
  94. package/docs/pages/components/follow-us-popover/doc.md +0 -5
  95. package/docs/pages/components/generic-footer/doc.md +0 -21
  96. package/docs/pages/components/generic-header/doc.md +0 -24
  97. package/docs/pages/components/haptic-copy/doc.md +0 -27
  98. package/docs/pages/components/imddb-header/doc.md +0 -23
  99. package/docs/pages/components/ordinal-legend/doc.md +0 -44
  100. package/docs/pages/components/range-picker/doc.md +0 -86
  101. package/docs/pages/components/responsive-iframe/doc.md +0 -13
  102. package/docs/pages/components/scale-legend/doc.md +0 -65
  103. package/docs/pages/components/secret-input/doc.md +0 -12
  104. package/docs/pages/components/selectable-dropdown/doc.md +0 -156
  105. package/docs/pages/components/sharing-options/doc.md +0 -13
  106. package/docs/pages/components/sharing-options-link/doc.md +0 -36
  107. package/docs/pages/components/sign-up-form/doc.md +0 -13
  108. package/docs/pages/components/slide-up-down/doc.md +0 -28
  109. package/docs/pages/components/textured-deck/doc.md +0 -78
  110. package/docs/pages/components/tiny-pagination/doc.md +0 -92
  111. package/docs/pages/datavisualisation/bars/doc.md +0 -110
  112. package/docs/pages/datavisualisation/columns/doc.md +0 -165
  113. package/docs/pages/datavisualisation/lines/doc.md +0 -139
  114. package/docs/pages/datavisualisation/stacked-bar/doc.md +0 -160
  115. package/docs/pages/datavisualisation/stacked-column/doc.md +0 -191
  116. package/docs/pages/getting-started/about-icij/doc.md +0 -13
  117. package/docs/pages/getting-started/custom-bootstrap/doc.md +0 -36
  118. package/docs/pages/getting-started/installation-guide/doc.md +0 -59
  119. package/docs/pages/getting-started/internationalization/doc.md +0 -74
  120. package/docs/pages/maps/choropleth-map/doc.md +0 -420
  121. package/docs/pages/maps/choropleth-map-annotation/doc.md +0 -373
  122. package/docs/pages/maps/symbol-map/doc.md +0 -203
  123. package/docs/pages/structure/breakpoints/doc.md +0 -3
  124. package/docs/pages/structure/grid/doc.md +0 -3
  125. package/docs/pages/utilities/assets/doc.md +0 -138
  126. package/docs/pages/utilities/config/doc.md +0 -52
  127. package/docs/pages/utilities/iframes/doc.md +0 -3
  128. package/docs/pages/visual/colors/doc.md +0 -31
  129. package/docs/pages/visual/iconography/doc.md +0 -56
  130. package/docs/pages/visual/states/doc.md +0 -77
  131. package/docs/pages/visual/themes/doc.md +0 -3
  132. package/docs/pages/visual/typography/doc.md +0 -71
  133. package/docs/routes.js +0 -25
  134. package/docs/store/index.js +0 -21
  135. package/docs/styles/app.scss +0 -36
  136. package/docs/styles/variables.scss +0 -20
  137. package/loaders/highlight-loader.js +0 -13
  138. package/loaders/markdown-loader.js +0 -91
  139. package/loaders/metadata-loader.js +0 -18
  140. package/loaders/sass-extract-loader.js +0 -14
  141. package/loaders/vue-docgen-loader.js +0 -14
  142. package/plugins/MdPluginTypes.ts +0 -10
  143. package/plugins/docs.ts +0 -50
  144. package/plugins/front-matter.ts +0 -36
  145. package/plugins/highlight.ts +0 -27
  146. package/plugins/markdown-it/api-table.ts +0 -25
  147. package/plugins/markdown-it/sample-card.ts +0 -31
  148. package/plugins/plugin-delete.ts +0 -47
  149. package/plugins/plugin-docgen.ts +0 -23
  150. package/plugins/sass-vars.ts +0 -25
  151. package/plugins/vue-docgen.ts +0 -29
  152. package/public/android-chrome-192x192.png +0 -0
  153. package/public/android-chrome-512x512.png +0 -0
  154. package/public/apple-touch-icon.png +0 -0
  155. package/public/assets/img/arrow-bottom.svg +0 -3
  156. package/public/assets/img/texture-brick-black.jpg +0 -0
  157. package/public/assets/img/texture-brick.jpg +0 -0
  158. package/public/assets/img/texture-carbon-black.jpg +0 -0
  159. package/public/assets/img/texture-carbon.jpg +0 -0
  160. package/public/assets/img/texture-crack-black.jpg +0 -0
  161. package/public/assets/img/texture-crack.jpg +0 -0
  162. package/public/assets/img/texture-rock-black.jpg +0 -0
  163. package/public/assets/img/texture-rock.jpg +0 -0
  164. package/public/assets/img/texture-sand-black.jpg +0 -0
  165. package/public/assets/img/texture-sand.jpg +0 -0
  166. package/public/assets/img/texture-silk-black.jpg +0 -0
  167. package/public/assets/img/texture-silk.jpg +0 -0
  168. package/public/assets/topojson/france-departments.json +0 -1
  169. package/public/assets/topojson/paris-arrondissements.json +0 -1
  170. package/public/assets/topojson/world-countries-sans-antarctica.json +0 -1
  171. package/public/favicon-16x16.png +0 -0
  172. package/public/favicon-32x32.png +0 -0
  173. package/public/favicon.ico +0 -0
  174. package/public/site.webmanifest +0 -1
  175. package/stories/assets/code-brackets.svg +0 -1
  176. package/stories/assets/colors.svg +0 -1
  177. package/stories/assets/comments.svg +0 -1
  178. package/stories/assets/direction.svg +0 -1
  179. package/stories/assets/flow.svg +0 -1
  180. package/stories/assets/plugin.svg +0 -1
  181. package/stories/assets/repo.svg +0 -1
  182. package/stories/assets/stackalt.svg +0 -1
  183. package/stories/getting-started/about-icij.mdx +0 -14
  184. package/stories/getting-started/custom-bootstrap.mdx +0 -23
  185. package/stories/getting-started/installation-guide.mdx +0 -62
  186. package/stories/getting-started/internationalization.mdx +0 -63
  187. package/stories/murmur/components/AccordionStep.stories.ts +0 -33
  188. package/stories/murmur/components/AccordionWrapper.stories.ts +0 -69
  189. package/stories/murmur/components/ActiveTextTruncate.stories.ts +0 -32
  190. package/stories/murmur/components/AdvancedLinkForm.stories.ts +0 -77
  191. package/stories/murmur/components/Brand.stories.ts +0 -30
  192. package/stories/murmur/components/BrandExpansion.stories.ts +0 -41
  193. package/stories/murmur/components/ConfirmButton.stories.ts +0 -40
  194. package/stories/murmur/components/ContentPlaceholder.stories.ts +0 -41
  195. package/stories/murmur/components/CustomPagination.stories.ts +0 -42
  196. package/stories/murmur/components/DigitsInput.stories.ts +0 -29
  197. package/stories/murmur/components/DonateForm.stories.ts +0 -29
  198. package/stories/murmur/components/EmbedForm.stories.ts +0 -35
  199. package/stories/murmur/components/EmbeddableFooter.stories.ts +0 -59
  200. package/stories/murmur/components/FollowUsPopover.stories.ts +0 -24
  201. package/stories/murmur/components/GenericFooter.stories.ts +0 -27
  202. package/stories/murmur/components/GenericHeader.stories.ts +0 -27
  203. package/stories/murmur/components/HapticCopy.stories.ts +0 -40
  204. package/stories/murmur/components/ImddbHeader.stories.ts +0 -27
  205. package/stories/murmur/components/OrdinalLegend.stories.ts +0 -49
  206. package/stories/murmur/components/RangePicker.stories.ts +0 -98
  207. package/stories/murmur/components/ResponsiveIframe.stories.ts +0 -24
  208. package/stories/murmur/components/ScaleLegend.stories.ts +0 -65
  209. package/stories/murmur/components/SecretInput.stories.ts +0 -60
  210. package/stories/murmur/components/SelectableDropdown.stories.ts +0 -143
  211. package/stories/murmur/components/SharingOptions.stories.ts +0 -32
  212. package/stories/murmur/components/SharingOptionsLink.stories.ts +0 -53
  213. package/stories/murmur/components/SignUpForm.stories.ts +0 -51
  214. package/stories/murmur/components/SlideUpDown.stories.ts +0 -32
  215. package/stories/murmur/components/TexturedDeck.stories.ts +0 -83
  216. package/stories/murmur/components/TinyPagination.stories.ts +0 -65
  217. package/stories/murmur/datavisualisations/BarChart.stories.ts +0 -54
  218. package/stories/murmur/datavisualisations/ColumnChart.stories.ts +0 -88
  219. package/stories/murmur/datavisualisations/LineChart.stories.ts +0 -139
  220. package/stories/murmur/datavisualisations/StackedBarChart.stories.ts +0 -199
  221. package/stories/murmur/datavisualisations/StackedColumnChart.stories.ts +0 -136
  222. package/stories/murmur/decorators.ts +0 -108
  223. package/stories/murmur/maps/ChoroplethMap.stories.ts +0 -440
  224. package/stories/murmur/maps/ChoroplethMapAnnotation.stories.ts +0 -26
  225. package/stories/murmur/maps/SymbolMap.stories.ts +0 -24
  226. package/stories/murmur/utils.ts +0 -7
  227. package/tests/unit/components/AccordionStep.spec.ts +0 -157
  228. package/tests/unit/components/AccordionWrapper.spec.ts +0 -57
  229. package/tests/unit/components/ActiveTextTruncate.spec.js +0 -30
  230. package/tests/unit/components/AdvancedLinkForm.spec.js +0 -124
  231. package/tests/unit/components/Brand.spec.js +0 -50
  232. package/tests/unit/components/ContentPlaceholder.spec.js +0 -29
  233. package/tests/unit/components/CustomPagination.spec.js +0 -72
  234. package/tests/unit/components/DigitsInput.spec.ts +0 -157
  235. package/tests/unit/components/DonateForm.spec.js +0 -149
  236. package/tests/unit/components/EmbedForm.spec.js +0 -108
  237. package/tests/unit/components/EmbeddableFooter.spec.js +0 -11
  238. package/tests/unit/components/Fa.spec.js +0 -18
  239. package/tests/unit/components/FollowUsPopover.spec.js +0 -29
  240. package/tests/unit/components/GenericFooter.spec.js +0 -29
  241. package/tests/unit/components/GenericHeader.spec.js +0 -104
  242. package/tests/unit/components/HapticCopy.spec.js +0 -123
  243. package/tests/unit/components/ImddbHeader.spec.js +0 -96
  244. package/tests/unit/components/OrdinalLegend.spec.js +0 -120
  245. package/tests/unit/components/RangePicker.spec.ts +0 -87
  246. package/tests/unit/components/ResponsiveIframe.spec.js +0 -20
  247. package/tests/unit/components/ScaleLegend.spec.js +0 -139
  248. package/tests/unit/components/SecretInput.spec.js +0 -81
  249. package/tests/unit/components/SelectableDropdown.spec.js +0 -160
  250. package/tests/unit/components/SharingOptions.spec.js +0 -125
  251. package/tests/unit/components/SharingOptionsLink.spec.js +0 -184
  252. package/tests/unit/components/SignUpForm.spec.js +0 -145
  253. package/tests/unit/components/SlideUpDown.spec.js +0 -59
  254. package/tests/unit/components/TinyPagination.spec.js +0 -46
  255. package/tests/unit/config.spec.js +0 -136
  256. package/tests/unit/datavisualisations/BarChart.spec.js +0 -63
  257. package/tests/unit/datavisualisations/ColumnChart.spec.js +0 -344
  258. package/tests/unit/datavisualisations/LineChart.spec.js +0 -155
  259. package/tests/unit/datavisualisations/StackedBarChart.spec.js +0 -294
  260. package/tests/unit/datavisualisations/StackedColumnChart.spec.js +0 -443
  261. package/tests/unit/i18n.spec.ts +0 -19
  262. package/tests/unit/main.spec.js +0 -82
  263. package/tests/unit/maps/ChoroplethMap.spec.js +0 -214
  264. package/tests/unit/maps/ChoroplethMapAnnotation.spec.ts +0 -186
  265. package/tests/unit/maps/SymbolMap.spec.js +0 -92
  266. package/tests/unit/require.spec.js +0 -22
  267. package/tests/unit/setup.js +0 -13
  268. package/tests/unit/utils/assets.spec.js +0 -61
  269. package/tests/unit/utils/clipboard.spec.js +0 -18
  270. package/tests/unit/utils/iframe-resizer.spec.js +0 -71
  271. package/tsconfig.json +0 -35
  272. package/vite.config.ts +0 -79
  273. 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;