@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.
Files changed (62) hide show
  1. package/lib/components/AccordionStep.vue +53 -42
  2. package/lib/components/AccordionWrapper.vue +25 -24
  3. package/lib/components/ActiveTextTruncate.vue +44 -22
  4. package/lib/components/AdvancedLinkForm.vue +96 -46
  5. package/lib/components/Brand.vue +30 -23
  6. package/lib/components/BrandExpansion.vue +12 -3
  7. package/lib/components/ConfirmButton.vue +30 -26
  8. package/lib/components/ContentPlaceholder.vue +11 -7
  9. package/lib/components/CustomPagination.vue +50 -32
  10. package/lib/components/DigitsInput.vue +64 -60
  11. package/lib/components/DonateForm.vue +112 -83
  12. package/lib/components/EmbedForm.vue +37 -21
  13. package/lib/components/EmbeddableFooter.vue +14 -10
  14. package/lib/components/FollowUsPopover.vue +42 -40
  15. package/lib/components/GenericFooter.vue +98 -23
  16. package/lib/components/GenericHeader.vue +66 -29
  17. package/lib/components/HapticCopy.vue +41 -29
  18. package/lib/components/ImddbHeader.vue +113 -92
  19. package/lib/components/OrdinalLegend.vue +43 -20
  20. package/lib/components/RangePicker.vue +63 -42
  21. package/lib/components/ResponsiveIframe.vue +9 -2
  22. package/lib/components/ScaleLegend.vue +56 -18
  23. package/lib/components/SecretInput.vue +7 -8
  24. package/lib/components/SelectableDropdown.vue +119 -74
  25. package/lib/components/SharingOptions.vue +93 -36
  26. package/lib/components/SharingOptionsLink.vue +11 -5
  27. package/lib/components/SignUpForm.vue +44 -23
  28. package/lib/components/SlideUpDown.vue +7 -2
  29. package/lib/components/TexturedDeck.vue +24 -14
  30. package/lib/components/TinyPagination.vue +35 -22
  31. package/lib/composables/chart.ts +174 -157
  32. package/lib/composables/resizeObserver.ts +29 -29
  33. package/lib/composables/sendEmail.ts +53 -42
  34. package/lib/config.default.ts +17 -10
  35. package/lib/config.ts +34 -27
  36. package/lib/datavisualisations/BarChart.vue +48 -42
  37. package/lib/datavisualisations/ColumnChart.vue +133 -89
  38. package/lib/datavisualisations/LineChart.vue +79 -57
  39. package/lib/datavisualisations/StackedBarChart.vue +116 -68
  40. package/lib/datavisualisations/StackedColumnChart.vue +196 -115
  41. package/lib/enums.ts +25 -15
  42. package/lib/i18n.ts +3 -3
  43. package/lib/keys.ts +2 -2
  44. package/lib/main.ts +14 -10
  45. package/lib/maps/ChoroplethMap.vue +299 -160
  46. package/lib/maps/ChoroplethMapAnnotation.vue +29 -18
  47. package/lib/maps/SymbolMap.vue +194 -123
  48. package/lib/shims-bootstrap-vue.d.ts +1 -1
  49. package/lib/shims-vue.d.ts +3 -3
  50. package/lib/styles/functions.scss +10 -6
  51. package/lib/styles/lib.scss +2 -4
  52. package/lib/styles/mixins.scss +8 -8
  53. package/lib/styles/utilities.scss +1 -1
  54. package/lib/styles/variables.scss +24 -18
  55. package/lib/types.ts +26 -10
  56. package/lib/utils/animation.ts +4 -4
  57. package/lib/utils/assets.ts +31 -28
  58. package/lib/utils/clipboard.ts +16 -10
  59. package/lib/utils/iframe-resizer.ts +18 -13
  60. package/lib/utils/placeholder.ts +54 -23
  61. package/lib/utils/placeholderTypes.ts +3 -3
  62. package/package.json +7 -2
package/lib/main.ts CHANGED
@@ -1,10 +1,10 @@
1
- import {createBootstrap} from "bootstrap-vue-next";
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 "vue";
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:"fr" | "en") {
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 = Murmur.config
77
+ app.config.globalProperties.$config = Murmur.config
78
78
  // @ts-ignore
79
- Object.keys(components).forEach((key) => app.component(key, components[key]))
79
+ Object.keys(components).forEach((key) =>
80
+ app.component(key, components[key])
81
+ )
80
82
  // @ts-ignore
81
- Object.keys(datavisualisations).forEach((key) => app.component(key, datavisualisations[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