@icij/murmur-next 4.0.1 → 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/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 +7 -2
package/lib/main.ts
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import {createBootstrap} from
|
|
1
|
+
import { createBootstrap } from 'bootstrap-vue-next'
|
|
2
2
|
import { i18n } from './i18n'
|
|
3
3
|
import * as components from './components'
|
|
4
4
|
import * as datavisualisations from './datavisualisations'
|
|
5
5
|
import * as maps from './maps'
|
|
6
6
|
import config from './config'
|
|
7
|
-
import { type App} from
|
|
7
|
+
import { type App } from 'vue'
|
|
8
8
|
|
|
9
9
|
export { default as AccordionWrapper } from './components/AccordionWrapper.vue'
|
|
10
10
|
export { default as AccordionStep } from './components/AccordionStep.vue'
|
|
@@ -56,13 +56,13 @@ const Murmur = {
|
|
|
56
56
|
get components() {
|
|
57
57
|
return components
|
|
58
58
|
},
|
|
59
|
-
setLocaleMessage(lang:string, message:any) {
|
|
59
|
+
setLocaleMessage(lang: string, message: any) {
|
|
60
60
|
return Murmur.i18n.global.setLocaleMessage(lang, message)
|
|
61
61
|
},
|
|
62
|
-
mergeLocaleMessage(lang:string, message:any) {
|
|
62
|
+
mergeLocaleMessage(lang: string, message: any) {
|
|
63
63
|
return Murmur.i18n.global.mergeLocaleMessage(lang, message)
|
|
64
64
|
},
|
|
65
|
-
setLocale(lang:
|
|
65
|
+
setLocale(lang: 'fr' | 'en') {
|
|
66
66
|
// @ts-ignore
|
|
67
67
|
return (Murmur.i18n.global.locale.value = lang)
|
|
68
68
|
},
|
|
@@ -70,17 +70,21 @@ const Murmur = {
|
|
|
70
70
|
// @ts-ignore
|
|
71
71
|
return Murmur.i18n.global.locale.value
|
|
72
72
|
},
|
|
73
|
-
install(app:App<Element>) {
|
|
73
|
+
install(app: App<Element>) {
|
|
74
74
|
app.use(createBootstrap())
|
|
75
75
|
app.use(i18n)
|
|
76
76
|
|
|
77
|
-
app.config.globalProperties.$config =
|
|
77
|
+
app.config.globalProperties.$config = Murmur.config
|
|
78
78
|
// @ts-ignore
|
|
79
|
-
Object.keys(components).forEach((key) =>
|
|
79
|
+
Object.keys(components).forEach((key) =>
|
|
80
|
+
app.component(key, components[key])
|
|
81
|
+
)
|
|
80
82
|
// @ts-ignore
|
|
81
|
-
Object.keys(datavisualisations).forEach((key) =>
|
|
83
|
+
Object.keys(datavisualisations).forEach((key) =>
|
|
84
|
+
app.component(key, datavisualisations[key])
|
|
85
|
+
)
|
|
82
86
|
// @ts-ignore
|
|
83
|
-
Object.keys(maps).forEach((key) => app.component(key, maps[key]
|
|
87
|
+
Object.keys(maps).forEach((key) => app.component(key, maps[key]))
|
|
84
88
|
}
|
|
85
89
|
}
|
|
86
90
|
|