@icij/murmur-next 4.0.0 → 4.0.3
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/lib/components/AccordionStep.vue +53 -42
- package/lib/components/AccordionWrapper.vue +25 -24
- package/lib/components/ActiveTextTruncate.vue +44 -22
- package/lib/components/AdvancedLinkForm.vue +96 -46
- package/lib/components/Brand.vue +30 -23
- package/lib/components/BrandExpansion.vue +12 -3
- package/lib/components/ConfirmButton.vue +30 -26
- package/lib/components/ContentPlaceholder.vue +11 -7
- package/lib/components/CustomPagination.vue +50 -32
- package/lib/components/DigitsInput.vue +64 -60
- package/lib/components/DonateForm.vue +112 -83
- package/lib/components/EmbedForm.vue +37 -21
- package/lib/components/EmbeddableFooter.vue +14 -10
- package/lib/components/FollowUsPopover.vue +42 -40
- package/lib/components/GenericFooter.vue +98 -23
- package/lib/components/GenericHeader.vue +66 -29
- package/lib/components/HapticCopy.vue +41 -29
- package/lib/components/ImddbHeader.vue +113 -92
- package/lib/components/OrdinalLegend.vue +43 -20
- package/lib/components/RangePicker.vue +63 -42
- package/lib/components/ResponsiveIframe.vue +9 -2
- package/lib/components/ScaleLegend.vue +56 -18
- package/lib/components/SecretInput.vue +7 -8
- package/lib/components/SelectableDropdown.vue +119 -74
- package/lib/components/SharingOptions.vue +93 -36
- package/lib/components/SharingOptionsLink.vue +11 -5
- package/lib/components/SignUpForm.vue +44 -23
- package/lib/components/SlideUpDown.vue +7 -2
- package/lib/components/TexturedDeck.vue +24 -14
- package/lib/components/TinyPagination.vue +35 -22
- package/lib/composables/chart.ts +174 -157
- package/lib/composables/resizeObserver.ts +29 -29
- package/lib/composables/sendEmail.ts +53 -42
- package/lib/config.default.ts +17 -10
- package/lib/config.ts +34 -27
- package/lib/datavisualisations/BarChart.vue +48 -42
- package/lib/datavisualisations/ColumnChart.vue +133 -89
- package/lib/datavisualisations/LineChart.vue +79 -57
- package/lib/datavisualisations/StackedBarChart.vue +116 -68
- package/lib/datavisualisations/StackedColumnChart.vue +196 -115
- package/lib/enums.ts +25 -15
- package/lib/i18n.ts +3 -3
- package/lib/keys.ts +2 -2
- package/lib/main.ts +14 -10
- package/lib/maps/ChoroplethMap.vue +299 -160
- package/lib/maps/ChoroplethMapAnnotation.vue +29 -18
- package/lib/maps/SymbolMap.vue +194 -123
- package/lib/shims-bootstrap-vue.d.ts +1 -1
- package/lib/shims-vue.d.ts +3 -3
- package/lib/styles/functions.scss +10 -6
- package/lib/styles/lib.scss +2 -4
- package/lib/styles/mixins.scss +8 -8
- package/lib/styles/utilities.scss +1 -1
- package/lib/styles/variables.scss +24 -18
- package/lib/types.ts +26 -10
- package/lib/utils/animation.ts +4 -4
- package/lib/utils/assets.ts +31 -28
- package/lib/utils/clipboard.ts +16 -10
- package/lib/utils/iframe-resizer.ts +18 -13
- package/lib/utils/placeholder.ts +54 -23
- package/lib/utils/placeholderTypes.ts +3 -3
- package/package.json +21 -2
- 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
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
Component do draw dead simple stacked column charts.
|
|
2
|
-
|
|
3
|
-
:::sample-card
|
|
4
|
-
<div class="m-4">
|
|
5
|
-
<h4>
|
|
6
|
-
Breast implant companies buried evidence of injuries for years
|
|
7
|
-
</h4>
|
|
8
|
-
<p class="text-muted">
|
|
9
|
-
Incidents were reported as routine events that did not require public disclosure. After the FDA tightened enforcement of its reporting rules in 2017, reports of injuries soared.
|
|
10
|
-
</p>
|
|
11
|
-
<stacked-column-chart
|
|
12
|
-
:data="incidentReportsUrl"
|
|
13
|
-
:groups="incidentReportsGroups"
|
|
14
|
-
class="my-4"
|
|
15
|
-
y-axis-tick-format=",.0f" />
|
|
16
|
-
<p class="text-muted small">
|
|
17
|
-
Source: U.S. Food and Drug Administration, ICIJ analysis
|
|
18
|
-
</p>
|
|
19
|
-
</div>
|
|
20
|
-
:::
|
|
21
|
-
|
|
22
|
-
Or without direct-labeling:
|
|
23
|
-
|
|
24
|
-
:::sample-card
|
|
25
|
-
<div class="m-4">
|
|
26
|
-
<div class="d-flex align-items-baseline">
|
|
27
|
-
<h4>
|
|
28
|
-
Breast implant companies buried evidence of injuries for years
|
|
29
|
-
</h4>
|
|
30
|
-
<b-form-checkbox class="text-nowrap ml-4" switch v-model="socialMode">
|
|
31
|
-
Social mode
|
|
32
|
-
</b-form-checkbox>
|
|
33
|
-
</div>
|
|
34
|
-
<p class="text-muted">
|
|
35
|
-
Incidents were reported as routine events that did not require public disclosure. After the FDA tightened enforcement of its reporting rules in 2017, reports of injuries soared.
|
|
36
|
-
</p>
|
|
37
|
-
<stacked-column-chart :social-mode="socialMode" no-direct-labeling :data="incidentReportsUrl" y-axis-tick-format=",.0f" class="my-4" />
|
|
38
|
-
<p class="text-muted small">
|
|
39
|
-
Source: U.S. Food and Drug Administration, ICIJ analysis
|
|
40
|
-
</p>
|
|
41
|
-
</div>
|
|
42
|
-
:::
|
|
43
|
-
|
|
44
|
-
<collapsible-block label="Show the data structure">
|
|
45
|
-
|
|
46
|
-
```json
|
|
47
|
-
[
|
|
48
|
-
{
|
|
49
|
-
"date":2008,
|
|
50
|
-
"death":0,
|
|
51
|
-
"injury":300,
|
|
52
|
-
"malfunction":49
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"date":2009,
|
|
56
|
-
"death":2,
|
|
57
|
-
"injury":138,
|
|
58
|
-
"malfunction":37
|
|
59
|
-
},
|
|
60
|
-
{
|
|
61
|
-
"date":2010,
|
|
62
|
-
"death":3,
|
|
63
|
-
"injury":109,
|
|
64
|
-
"malfunction":44
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
"date":2011,
|
|
68
|
-
"death":1,
|
|
69
|
-
"injury":141,
|
|
70
|
-
"malfunction":29
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
"date":2012,
|
|
74
|
-
"death":0,
|
|
75
|
-
"injury":175,
|
|
76
|
-
"malfunction":32
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
"date":2013,
|
|
80
|
-
"death":4,
|
|
81
|
-
"injury":130,
|
|
82
|
-
"malfunction":40
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
"date":2014,
|
|
86
|
-
"death":6,
|
|
87
|
-
"injury":122,
|
|
88
|
-
"malfunction":33
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
"date":2015,
|
|
92
|
-
"death":1,
|
|
93
|
-
"injury":163,
|
|
94
|
-
"malfunction":29
|
|
95
|
-
},
|
|
96
|
-
{
|
|
97
|
-
"date":2016,
|
|
98
|
-
"death":5,
|
|
99
|
-
"injury":304,
|
|
100
|
-
"malfunction":28
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
"date":2017,
|
|
104
|
-
"death":8,
|
|
105
|
-
"injury":2082,
|
|
106
|
-
"malfunction":48
|
|
107
|
-
},
|
|
108
|
-
{
|
|
109
|
-
"date":2018,
|
|
110
|
-
"death":7,
|
|
111
|
-
"injury":5185,
|
|
112
|
-
"malfunction":86
|
|
113
|
-
}
|
|
114
|
-
]
|
|
115
|
-
```
|
|
116
|
-
|
|
117
|
-
</collapsible-block>
|
|
118
|
-
|
|
119
|
-
You can also set the maximum value and use a different field for column's label:
|
|
120
|
-
|
|
121
|
-
:::sample-card
|
|
122
|
-
<div class="m-4">
|
|
123
|
-
<h4>
|
|
124
|
-
ICIJ Staff by office
|
|
125
|
-
</h4>
|
|
126
|
-
<p class="text-muted">As of April 2021. This list is more or less accurate.</p>
|
|
127
|
-
<stacked-column-chart :data="icijStaff" :max-value="10" no-tooltips labelField="city" hide-empty-values class="my-4" />
|
|
128
|
-
</div>
|
|
129
|
-
:::
|
|
130
|
-
|
|
131
|
-
<collapsible-block label="Show the data structure" :json="icijStaff" />
|
|
132
|
-
|
|
133
|
-
It also work with single-value groups:
|
|
134
|
-
|
|
135
|
-
:::sample-card
|
|
136
|
-
<div class="m-4">
|
|
137
|
-
<h4>Leaks size</h4>
|
|
138
|
-
<p class="text-muted">
|
|
139
|
-
Size of ICIJ's leak.
|
|
140
|
-
</p>
|
|
141
|
-
<stacked-column-chart
|
|
142
|
-
:data="leaksSize"
|
|
143
|
-
:y-axis-tick-format="humanReadableGb"
|
|
144
|
-
:max-value="3000"
|
|
145
|
-
label-field="leak"
|
|
146
|
-
class="my-4"
|
|
147
|
-
bar-max-width="50%"
|
|
148
|
-
hide-legend
|
|
149
|
-
no-tooltips />
|
|
150
|
-
<p class="text-muted small">
|
|
151
|
-
Source: ICIJ
|
|
152
|
-
</p>
|
|
153
|
-
</div>
|
|
154
|
-
:::
|
|
155
|
-
|
|
156
|
-
<collapsible-block label="Show the data structure" :json="leaksSize" />
|
|
157
|
-
|
|
158
|
-
::: api-table datavisualisations/StackedColumnChart.vue :::
|
|
159
|
-
|
|
160
|
-
<script>
|
|
161
|
-
export default {
|
|
162
|
-
data () {
|
|
163
|
-
return {
|
|
164
|
-
socialMode: false,
|
|
165
|
-
incidentReportsUrl: 'https://gist.githubusercontent.com/pirhoo/4055e8d1ee3016805eaf1d2feabdd895/raw/a3d2ba8e9d19fcd9fc659dab50ec075248178238/stacked-colums-incidents.json',
|
|
166
|
-
incidentReportsGroups: ['Deaths', 'Injuries', 'Malfunctions'],
|
|
167
|
-
icijStaff: [
|
|
168
|
-
{ "city": "Washington DC", "developers": 1, "journalists": 6, "devops": 1, "finance": 1 },
|
|
169
|
-
{ "city": "Paris ", "developers": 5, "journalists": 1, "devops": 0, "finance": 0 },
|
|
170
|
-
{ "city": "Madrid ", "developers": 1, "journalists": 0, "devops": 4, "finance": 0 },
|
|
171
|
-
{ "city": "New York City", "developers": 0, "journalists": 3, "devops": 0, "finance": 1 },
|
|
172
|
-
{ "city": "Syndey", "developers": 0, "journalists": 2, "devops": 0, "finance": 1 },
|
|
173
|
-
],
|
|
174
|
-
leaksSize: [
|
|
175
|
-
{ leak: 'Offshore Leaks (2013)', size: 260 },
|
|
176
|
-
{ leak: 'Panama Papers (2016)', size: 2.6 * 1e3 },
|
|
177
|
-
{ leak: 'Paradise Papers (2017)', size: 1.4 * 1e3 }
|
|
178
|
-
]
|
|
179
|
-
}
|
|
180
|
-
},
|
|
181
|
-
methods: {
|
|
182
|
-
humanReadableGb (size) {
|
|
183
|
-
if (size >= 1e3) {
|
|
184
|
-
return `${size/1e3}TB`
|
|
185
|
-
} else {
|
|
186
|
-
return `${size}GB`
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
</script>
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: About ICIJ
|
|
3
|
-
order: 30
|
|
4
|
-
---
|
|
5
|
-
|
|
6
|
-
ICIJ is a [unique organization](https://www.icij.org/about/icijs-story/).
|
|
7
|
-
A U.S.-based nonprofit, we are both **a small, resourceful newsroom** with our
|
|
8
|
-
own reporting team, as well as a **global network of reporters and media
|
|
9
|
-
organizations** who work together to investigate the most important stories in the world.
|
|
10
|
-
|
|
11
|
-
<a class="btn btn-primary text-white text-uppercase fw-bold" target="_blank" href="https://www.icij.org/about/">
|
|
12
|
-
Read more about ICIJ
|
|
13
|
-
</a>
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Customize Boostrap
|
|
3
|
-
description: Use pre-configured variables to build Boostrap.
|
|
4
|
-
order: 20
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
This guide comes with a set of pre-configured SCSS variables that can be used in
|
|
8
|
-
conjunction with Boostrap. It is **not mandatory** to uses a custom build of Boostrap
|
|
9
|
-
with these variables. Yet some components might have a better display with this configuration.
|
|
10
|
-
|
|
11
|
-
```scss
|
|
12
|
-
// You can easily override every variables
|
|
13
|
-
$link-color: #c10448;
|
|
14
|
-
|
|
15
|
-
// Then, simply import the variables before you import Bootstrap sources
|
|
16
|
-
@import '@icij/murmur/lib/styles/variables.scss';
|
|
17
|
-
@import 'node_modules/bootstrap/scss/bootstrap';
|
|
18
|
-
// Optional but recommended: Bootstrap Vue CSS additions
|
|
19
|
-
@import 'node_modules/bootstrap-vue/dist/bootstrap-vue.css';
|
|
20
|
-
```
|
|
21
|
-
|
|
22
|
-
Here are all the variables defined in <repository-link path="lib/styles/variables.scss">lib/styles/variables.scss</repository-link>:
|
|
23
|
-
|
|
24
|
-
<pre class="bg-dark p-3"><code v-html="rawVariables"></code></pre>
|
|
25
|
-
|
|
26
|
-
<script>
|
|
27
|
-
import rawVariables from '@/styles/variables.scss?highlight=scss'
|
|
28
|
-
|
|
29
|
-
export default {
|
|
30
|
-
data () {
|
|
31
|
-
return {
|
|
32
|
-
rawVariables
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
}
|
|
36
|
-
</script>
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Installation Guide
|
|
3
|
-
description: Murmur is ICIJ's Design System for Bootstrap 4 and Vue.js
|
|
4
|
-
order: 10
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
The <a href="https://icij.org">International Consortium of Investigative Journalists</a>
|
|
8
|
-
aims to build efficient and innovative tools for the biggest cross-border investigations in the world.
|
|
9
|
-
In order to build stable, consistent and user-friendly webapps, our team
|
|
10
|
-
started to define common components between projects, as well as best practices and
|
|
11
|
-
guidelines.
|
|
12
|
-
|
|
13
|
-
### Install the package
|
|
14
|
-
|
|
15
|
-
If you are using module bundlers such as Webpack or Rollup, you might need to include the package into your project.
|
|
16
|
-
To get started, use NPM or Yarn to get latest version of **@icij/murmur**.
|
|
17
|
-
|
|
18
|
-
```bash
|
|
19
|
-
# with NPM:
|
|
20
|
-
npm i @icij/murmur
|
|
21
|
-
|
|
22
|
-
# or with Yarn:
|
|
23
|
-
yarn add @icij/murmur
|
|
24
|
-
```
|
|
25
|
-
Then, register Murmur as a pluggin in your app entry point:
|
|
26
|
-
|
|
27
|
-
```js
|
|
28
|
-
import Vue from 'vue'
|
|
29
|
-
import Murmur from '@icij/murmur'
|
|
30
|
-
|
|
31
|
-
Vue.use(Murmur)
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
And import the Murmur's stylesheet:
|
|
35
|
-
|
|
36
|
-
```scss
|
|
37
|
-
@import "@icij/murmur";
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
Now all components will be globally available in your app. Murmur also exposes a
|
|
41
|
-
configuration object to handle common configuration option. To customize the
|
|
42
|
-
default options please refer to the [dedicated page](#/utilities/config).
|
|
43
|
-
|
|
44
|
-
If you need to usage component with images, please make sure to [configure assets](#/utilities/assets) properly so images are available in your final app bundle.
|
|
45
|
-
|
|
46
|
-
### Individual components
|
|
47
|
-
|
|
48
|
-
An alternative to installing all components with a pluggin is to import only
|
|
49
|
-
a specific component.
|
|
50
|
-
|
|
51
|
-
```js
|
|
52
|
-
import { EmbedForm } from '@icij/murmur'
|
|
53
|
-
|
|
54
|
-
Vue.component('component-name', {
|
|
55
|
-
components: {
|
|
56
|
-
EmbedForm
|
|
57
|
-
}
|
|
58
|
-
})
|
|
59
|
-
```
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
title: Internationalization
|
|
3
|
-
description: Translate your components
|
|
4
|
-
order: 30
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
### How it work
|
|
8
|
-
|
|
9
|
-
Murmur can be translated using [vue-i18n](https://github.com/kazupon/vue-i18n).
|
|
10
|
-
By default, we provide a series of locales in English for our components. The
|
|
11
|
-
translation library is installed at a component level. So each component using
|
|
12
|
-
translation received a `i18n` attribute.
|
|
13
|
-
|
|
14
|
-
### Adding more locales
|
|
15
|
-
|
|
16
|
-
Murmur exposes a static method to add new locales:
|
|
17
|
-
|
|
18
|
-
```js
|
|
19
|
-
import Murmur from '@icij/murmur'
|
|
20
|
-
|
|
21
|
-
Murmur.setLocaleMessage('fr', {
|
|
22
|
-
"imddb-header": {
|
|
23
|
-
"navbar": {
|
|
24
|
-
"leak": "Contact confidentiel",
|
|
25
|
-
"support": "Soutenez nous",
|
|
26
|
-
"follow": "Suivez l'ICIJ"
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
})
|
|
30
|
-
```
|
|
31
|
-
|
|
32
|
-
Then you can switch to a new language easily:
|
|
33
|
-
|
|
34
|
-
```js
|
|
35
|
-
Murmur.setLocale('fr')
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
### Overiding locales
|
|
39
|
-
|
|
40
|
-
In the very same fashion, you can modify existing locales:
|
|
41
|
-
|
|
42
|
-
```js
|
|
43
|
-
import Murmur from '@icij/murmur'
|
|
44
|
-
|
|
45
|
-
Murmur.mergeLocaleMessage('en', {
|
|
46
|
-
"imddb-header": {
|
|
47
|
-
"navbar": {
|
|
48
|
-
"leak": "SecureDrop",
|
|
49
|
-
"support": "Buy us a beer 🍺",
|
|
50
|
-
"follow": "Follow ICIJ"
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
})
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
### Default locales
|
|
57
|
-
|
|
58
|
-
Here are English locales defined in <repository-link path="lib/locales/en.json">lib/locales/en.json</repository-link>:
|
|
59
|
-
|
|
60
|
-
<collapsible-block label="All English locales">
|
|
61
|
-
<pre class="bg-dark p-3 m-0"><code>{{ JSON.stringify(en, null, 2) }}</code></pre>
|
|
62
|
-
</collapsible-block>
|
|
63
|
-
|
|
64
|
-
<script>
|
|
65
|
-
import en from '@/locales/en.json'
|
|
66
|
-
|
|
67
|
-
export default {
|
|
68
|
-
data () {
|
|
69
|
-
return {
|
|
70
|
-
en
|
|
71
|
-
}
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
</script>
|