@icij/murmur-next 4.0.0

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 (296) hide show
  1. package/.github/workflows/deploy-github-pages.yaml +50 -0
  2. package/.storybook/app.scss +14 -0
  3. package/.storybook/doc_variables.scss +20 -0
  4. package/.storybook/main.ts +35 -0
  5. package/.storybook/preview-head.html +2 -0
  6. package/.storybook/preview.ts +32 -0
  7. package/README.md +71 -0
  8. package/deploy.js +15 -0
  9. package/docs/components/ApiTable.vue +171 -0
  10. package/docs/components/App.vue +146 -0
  11. package/docs/components/CollapsibleBlock.vue +122 -0
  12. package/docs/components/DocsHeader.vue +68 -0
  13. package/docs/components/DocsMenu.vue +201 -0
  14. package/docs/components/DocsMenuSection.vue +109 -0
  15. package/docs/components/EditLink.vue +49 -0
  16. package/docs/components/OutboundLink.vue +13 -0
  17. package/docs/components/PalettePresenter.vue +96 -0
  18. package/docs/components/RepositoryLink.vue +28 -0
  19. package/docs/components/SampleCard.vue +119 -0
  20. package/docs/main.js +42 -0
  21. package/docs/pages/components/accordion/doc.md +96 -0
  22. package/docs/pages/components/active-text-truncate/doc.md +44 -0
  23. package/docs/pages/components/advanced-link-form/doc.md +105 -0
  24. package/docs/pages/components/brand/doc.md +30 -0
  25. package/docs/pages/components/brand-expansion/doc.md +70 -0
  26. package/docs/pages/components/confirm-button/doc.md +91 -0
  27. package/docs/pages/components/content-placeholder/doc.md +16 -0
  28. package/docs/pages/components/custom-pagination/doc.md +61 -0
  29. package/docs/pages/components/digits-input/doc.md +28 -0
  30. package/docs/pages/components/donate-form/doc.md +20 -0
  31. package/docs/pages/components/embed-form/doc.md +22 -0
  32. package/docs/pages/components/embeddable-footer/doc.md +60 -0
  33. package/docs/pages/components/follow-us-popover/doc.md +5 -0
  34. package/docs/pages/components/generic-footer/doc.md +21 -0
  35. package/docs/pages/components/generic-header/doc.md +24 -0
  36. package/docs/pages/components/haptic-copy/doc.md +27 -0
  37. package/docs/pages/components/imddb-header/doc.md +23 -0
  38. package/docs/pages/components/ordinal-legend/doc.md +44 -0
  39. package/docs/pages/components/range-picker/doc.md +86 -0
  40. package/docs/pages/components/responsive-iframe/doc.md +13 -0
  41. package/docs/pages/components/scale-legend/doc.md +65 -0
  42. package/docs/pages/components/secret-input/doc.md +12 -0
  43. package/docs/pages/components/selectable-dropdown/doc.md +156 -0
  44. package/docs/pages/components/sharing-options/doc.md +13 -0
  45. package/docs/pages/components/sharing-options-link/doc.md +36 -0
  46. package/docs/pages/components/sign-up-form/doc.md +13 -0
  47. package/docs/pages/components/slide-up-down/doc.md +28 -0
  48. package/docs/pages/components/textured-deck/doc.md +78 -0
  49. package/docs/pages/components/tiny-pagination/doc.md +92 -0
  50. package/docs/pages/datavisualisation/bars/doc.md +110 -0
  51. package/docs/pages/datavisualisation/columns/doc.md +165 -0
  52. package/docs/pages/datavisualisation/lines/doc.md +139 -0
  53. package/docs/pages/datavisualisation/stacked-bar/doc.md +160 -0
  54. package/docs/pages/datavisualisation/stacked-column/doc.md +191 -0
  55. package/docs/pages/getting-started/about-icij/doc.md +13 -0
  56. package/docs/pages/getting-started/custom-bootstrap/doc.md +36 -0
  57. package/docs/pages/getting-started/installation-guide/doc.md +59 -0
  58. package/docs/pages/getting-started/internationalization/doc.md +74 -0
  59. package/docs/pages/maps/choropleth-map/doc.md +420 -0
  60. package/docs/pages/maps/choropleth-map-annotation/doc.md +373 -0
  61. package/docs/pages/maps/symbol-map/doc.md +203 -0
  62. package/docs/pages/structure/breakpoints/doc.md +3 -0
  63. package/docs/pages/structure/grid/doc.md +3 -0
  64. package/docs/pages/utilities/assets/doc.md +138 -0
  65. package/docs/pages/utilities/config/doc.md +52 -0
  66. package/docs/pages/utilities/iframes/doc.md +3 -0
  67. package/docs/pages/visual/colors/doc.md +31 -0
  68. package/docs/pages/visual/iconography/doc.md +56 -0
  69. package/docs/pages/visual/states/doc.md +77 -0
  70. package/docs/pages/visual/themes/doc.md +3 -0
  71. package/docs/pages/visual/typography/doc.md +71 -0
  72. package/docs/routes.js +25 -0
  73. package/docs/store/index.js +21 -0
  74. package/docs/styles/app.scss +36 -0
  75. package/docs/styles/variables.scss +20 -0
  76. package/lib/assets/images/icij-full-white.svg +6 -0
  77. package/lib/assets/images/icij-full.svg +6 -0
  78. package/lib/assets/images/icij.png +0 -0
  79. package/lib/assets/images/icij.svg +46 -0
  80. package/lib/assets/images/icij@2x.png +0 -0
  81. package/lib/assets/images/murmur-dark.png +0 -0
  82. package/lib/assets/images/murmur-dark.svg +79 -0
  83. package/lib/assets/images/murmur-white.png +0 -0
  84. package/lib/assets/images/murmur-white.svg +68 -0
  85. package/lib/components/AccordionStep.vue +128 -0
  86. package/lib/components/AccordionWrapper.vue +138 -0
  87. package/lib/components/ActiveTextTruncate.vue +258 -0
  88. package/lib/components/AdvancedLinkForm.vue +273 -0
  89. package/lib/components/Brand.vue +150 -0
  90. package/lib/components/BrandExpansion.vue +237 -0
  91. package/lib/components/ConfirmButton.vue +204 -0
  92. package/lib/components/ContentPlaceholder.vue +100 -0
  93. package/lib/components/CustomPagination.vue +225 -0
  94. package/lib/components/DigitsInput.vue +180 -0
  95. package/lib/components/DonateForm.vue +367 -0
  96. package/lib/components/EmbedForm.vue +173 -0
  97. package/lib/components/EmbeddableFooter.vue +201 -0
  98. package/lib/components/Fa.js +3 -0
  99. package/lib/components/FollowUsPopover.vue +117 -0
  100. package/lib/components/GenericFooter.vue +218 -0
  101. package/lib/components/GenericHeader.vue +259 -0
  102. package/lib/components/HapticCopy.vue +256 -0
  103. package/lib/components/ImddbHeader.vue +336 -0
  104. package/lib/components/OrdinalLegend.vue +164 -0
  105. package/lib/components/RangePicker.vue +430 -0
  106. package/lib/components/ResponsiveIframe.vue +48 -0
  107. package/lib/components/ScaleLegend.vue +230 -0
  108. package/lib/components/SecretInput.vue +132 -0
  109. package/lib/components/SelectableDropdown.vue +368 -0
  110. package/lib/components/SharingOptions.vue +230 -0
  111. package/lib/components/SharingOptionsLink.vue +259 -0
  112. package/lib/components/SignUpForm.vue +181 -0
  113. package/lib/components/SlideUpDown.vue +131 -0
  114. package/lib/components/TexturedDeck.vue +101 -0
  115. package/lib/components/TinyPagination.vue +268 -0
  116. package/lib/components/index.js +31 -0
  117. package/lib/composables/chart.ts +182 -0
  118. package/lib/composables/resizeObserver.ts +37 -0
  119. package/lib/composables/sendEmail.ts +50 -0
  120. package/lib/config.default.ts +33 -0
  121. package/lib/config.ts +70 -0
  122. package/lib/d3-geo-projection.d.ts +1 -0
  123. package/lib/datavisualisations/BarChart.vue +275 -0
  124. package/lib/datavisualisations/ColumnChart.vue +527 -0
  125. package/lib/datavisualisations/LineChart.vue +274 -0
  126. package/lib/datavisualisations/StackedBarChart.vue +614 -0
  127. package/lib/datavisualisations/StackedColumnChart.vue +640 -0
  128. package/lib/datavisualisations/index.js +5 -0
  129. package/lib/enums.ts +25 -0
  130. package/lib/i18n.ts +16 -0
  131. package/lib/keys.ts +2 -0
  132. package/lib/locales/en.json +140 -0
  133. package/lib/locales/fr.json +117 -0
  134. package/lib/locales/locales/en.json +140 -0
  135. package/lib/locales/locales/fr.json +117 -0
  136. package/lib/main.ts +87 -0
  137. package/lib/maps/ChoroplethMap.vue +825 -0
  138. package/lib/maps/ChoroplethMapAnnotation.vue +336 -0
  139. package/lib/maps/SymbolMap.vue +628 -0
  140. package/lib/maps/index.js +3 -0
  141. package/lib/querystring-es3.d.ts +1 -0
  142. package/lib/shims-bootstrap-vue.d.ts +5 -0
  143. package/lib/shims-tsx.d.ts +11 -0
  144. package/lib/shims-vue.d.ts +14 -0
  145. package/lib/styles/functions.scss +20 -0
  146. package/lib/styles/lib.scss +19 -0
  147. package/lib/styles/mixins.scss +37 -0
  148. package/lib/styles/utilities.scss +18 -0
  149. package/lib/styles/variables.scss +94 -0
  150. package/lib/styles/variables_dark.scss +1 -0
  151. package/lib/types.ts +46 -0
  152. package/lib/utils/animation.ts +24 -0
  153. package/lib/utils/assets.ts +46 -0
  154. package/lib/utils/clipboard.ts +41 -0
  155. package/lib/utils/iframe-resizer.ts +49 -0
  156. package/lib/utils/placeholder.ts +66 -0
  157. package/lib/utils/placeholderTypes.ts +21 -0
  158. package/lib/utils/strings.ts +8 -0
  159. package/loaders/highlight-loader.js +13 -0
  160. package/loaders/markdown-loader.js +91 -0
  161. package/loaders/metadata-loader.js +18 -0
  162. package/loaders/sass-extract-loader.js +14 -0
  163. package/loaders/vue-docgen-loader.js +14 -0
  164. package/package.json +96 -0
  165. package/plugins/MdPluginTypes.ts +10 -0
  166. package/plugins/docs.ts +50 -0
  167. package/plugins/front-matter.ts +36 -0
  168. package/plugins/highlight.ts +27 -0
  169. package/plugins/markdown-it/api-table.ts +25 -0
  170. package/plugins/markdown-it/sample-card.ts +31 -0
  171. package/plugins/plugin-delete.ts +47 -0
  172. package/plugins/plugin-docgen.ts +23 -0
  173. package/plugins/sass-vars.ts +25 -0
  174. package/plugins/vue-docgen.ts +29 -0
  175. package/public/android-chrome-192x192.png +0 -0
  176. package/public/android-chrome-512x512.png +0 -0
  177. package/public/apple-touch-icon.png +0 -0
  178. package/public/assets/img/arrow-bottom.svg +3 -0
  179. package/public/assets/img/texture-brick-black.jpg +0 -0
  180. package/public/assets/img/texture-brick.jpg +0 -0
  181. package/public/assets/img/texture-carbon-black.jpg +0 -0
  182. package/public/assets/img/texture-carbon.jpg +0 -0
  183. package/public/assets/img/texture-crack-black.jpg +0 -0
  184. package/public/assets/img/texture-crack.jpg +0 -0
  185. package/public/assets/img/texture-rock-black.jpg +0 -0
  186. package/public/assets/img/texture-rock.jpg +0 -0
  187. package/public/assets/img/texture-sand-black.jpg +0 -0
  188. package/public/assets/img/texture-sand.jpg +0 -0
  189. package/public/assets/img/texture-silk-black.jpg +0 -0
  190. package/public/assets/img/texture-silk.jpg +0 -0
  191. package/public/assets/topojson/france-departments.json +1 -0
  192. package/public/assets/topojson/paris-arrondissements.json +1 -0
  193. package/public/assets/topojson/world-countries-sans-antarctica.json +1 -0
  194. package/public/favicon-16x16.png +0 -0
  195. package/public/favicon-32x32.png +0 -0
  196. package/public/favicon.ico +0 -0
  197. package/public/site.webmanifest +1 -0
  198. package/stories/assets/code-brackets.svg +1 -0
  199. package/stories/assets/colors.svg +1 -0
  200. package/stories/assets/comments.svg +1 -0
  201. package/stories/assets/direction.svg +1 -0
  202. package/stories/assets/flow.svg +1 -0
  203. package/stories/assets/plugin.svg +1 -0
  204. package/stories/assets/repo.svg +1 -0
  205. package/stories/assets/stackalt.svg +1 -0
  206. package/stories/getting-started/about-icij.mdx +14 -0
  207. package/stories/getting-started/custom-bootstrap.mdx +23 -0
  208. package/stories/getting-started/installation-guide.mdx +62 -0
  209. package/stories/getting-started/internationalization.mdx +63 -0
  210. package/stories/murmur/components/AccordionStep.stories.ts +33 -0
  211. package/stories/murmur/components/AccordionWrapper.stories.ts +69 -0
  212. package/stories/murmur/components/ActiveTextTruncate.stories.ts +32 -0
  213. package/stories/murmur/components/AdvancedLinkForm.stories.ts +77 -0
  214. package/stories/murmur/components/Brand.stories.ts +30 -0
  215. package/stories/murmur/components/BrandExpansion.stories.ts +41 -0
  216. package/stories/murmur/components/ConfirmButton.stories.ts +40 -0
  217. package/stories/murmur/components/ContentPlaceholder.stories.ts +41 -0
  218. package/stories/murmur/components/CustomPagination.stories.ts +42 -0
  219. package/stories/murmur/components/DigitsInput.stories.ts +29 -0
  220. package/stories/murmur/components/DonateForm.stories.ts +29 -0
  221. package/stories/murmur/components/EmbedForm.stories.ts +35 -0
  222. package/stories/murmur/components/EmbeddableFooter.stories.ts +59 -0
  223. package/stories/murmur/components/FollowUsPopover.stories.ts +24 -0
  224. package/stories/murmur/components/GenericFooter.stories.ts +27 -0
  225. package/stories/murmur/components/GenericHeader.stories.ts +27 -0
  226. package/stories/murmur/components/HapticCopy.stories.ts +40 -0
  227. package/stories/murmur/components/ImddbHeader.stories.ts +27 -0
  228. package/stories/murmur/components/OrdinalLegend.stories.ts +49 -0
  229. package/stories/murmur/components/RangePicker.stories.ts +98 -0
  230. package/stories/murmur/components/ResponsiveIframe.stories.ts +24 -0
  231. package/stories/murmur/components/ScaleLegend.stories.ts +65 -0
  232. package/stories/murmur/components/SecretInput.stories.ts +60 -0
  233. package/stories/murmur/components/SelectableDropdown.stories.ts +143 -0
  234. package/stories/murmur/components/SharingOptions.stories.ts +32 -0
  235. package/stories/murmur/components/SharingOptionsLink.stories.ts +53 -0
  236. package/stories/murmur/components/SignUpForm.stories.ts +51 -0
  237. package/stories/murmur/components/SlideUpDown.stories.ts +32 -0
  238. package/stories/murmur/components/TexturedDeck.stories.ts +83 -0
  239. package/stories/murmur/components/TinyPagination.stories.ts +65 -0
  240. package/stories/murmur/datavisualisations/BarChart.stories.ts +54 -0
  241. package/stories/murmur/datavisualisations/ColumnChart.stories.ts +88 -0
  242. package/stories/murmur/datavisualisations/LineChart.stories.ts +139 -0
  243. package/stories/murmur/datavisualisations/StackedBarChart.stories.ts +199 -0
  244. package/stories/murmur/datavisualisations/StackedColumnChart.stories.ts +136 -0
  245. package/stories/murmur/decorators.ts +108 -0
  246. package/stories/murmur/maps/ChoroplethMap.stories.ts +440 -0
  247. package/stories/murmur/maps/ChoroplethMapAnnotation.stories.ts +26 -0
  248. package/stories/murmur/maps/SymbolMap.stories.ts +24 -0
  249. package/stories/murmur/utils.ts +7 -0
  250. package/tests/unit/components/AccordionStep.spec.ts +157 -0
  251. package/tests/unit/components/AccordionWrapper.spec.ts +57 -0
  252. package/tests/unit/components/ActiveTextTruncate.spec.js +30 -0
  253. package/tests/unit/components/AdvancedLinkForm.spec.js +124 -0
  254. package/tests/unit/components/Brand.spec.js +50 -0
  255. package/tests/unit/components/ContentPlaceholder.spec.js +29 -0
  256. package/tests/unit/components/CustomPagination.spec.js +72 -0
  257. package/tests/unit/components/DigitsInput.spec.ts +157 -0
  258. package/tests/unit/components/DonateForm.spec.js +149 -0
  259. package/tests/unit/components/EmbedForm.spec.js +108 -0
  260. package/tests/unit/components/EmbeddableFooter.spec.js +11 -0
  261. package/tests/unit/components/Fa.spec.js +18 -0
  262. package/tests/unit/components/FollowUsPopover.spec.js +29 -0
  263. package/tests/unit/components/GenericFooter.spec.js +29 -0
  264. package/tests/unit/components/GenericHeader.spec.js +104 -0
  265. package/tests/unit/components/HapticCopy.spec.js +123 -0
  266. package/tests/unit/components/ImddbHeader.spec.js +96 -0
  267. package/tests/unit/components/OrdinalLegend.spec.js +120 -0
  268. package/tests/unit/components/RangePicker.spec.ts +87 -0
  269. package/tests/unit/components/ResponsiveIframe.spec.js +20 -0
  270. package/tests/unit/components/ScaleLegend.spec.js +139 -0
  271. package/tests/unit/components/SecretInput.spec.js +81 -0
  272. package/tests/unit/components/SelectableDropdown.spec.js +160 -0
  273. package/tests/unit/components/SharingOptions.spec.js +125 -0
  274. package/tests/unit/components/SharingOptionsLink.spec.js +184 -0
  275. package/tests/unit/components/SignUpForm.spec.js +145 -0
  276. package/tests/unit/components/SlideUpDown.spec.js +59 -0
  277. package/tests/unit/components/TinyPagination.spec.js +46 -0
  278. package/tests/unit/config.spec.js +136 -0
  279. package/tests/unit/datavisualisations/BarChart.spec.js +63 -0
  280. package/tests/unit/datavisualisations/ColumnChart.spec.js +344 -0
  281. package/tests/unit/datavisualisations/LineChart.spec.js +155 -0
  282. package/tests/unit/datavisualisations/StackedBarChart.spec.js +294 -0
  283. package/tests/unit/datavisualisations/StackedColumnChart.spec.js +443 -0
  284. package/tests/unit/i18n.spec.ts +19 -0
  285. package/tests/unit/main.spec.js +82 -0
  286. package/tests/unit/maps/ChoroplethMap.spec.js +214 -0
  287. package/tests/unit/maps/ChoroplethMapAnnotation.spec.ts +186 -0
  288. package/tests/unit/maps/SymbolMap.spec.js +92 -0
  289. package/tests/unit/require.spec.js +22 -0
  290. package/tests/unit/setup.js +13 -0
  291. package/tests/unit/utils/assets.spec.js +61 -0
  292. package/tests/unit/utils/clipboard.spec.js +18 -0
  293. package/tests/unit/utils/iframe-resizer.spec.js +71 -0
  294. package/tsconfig.json +35 -0
  295. package/vite.config.ts +79 -0
  296. package/vitest.config.ts +19 -0
@@ -0,0 +1,46 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <svg
3
+ viewBox="0 0 200 200"
4
+ version="1.1"
5
+ id="svg8"
6
+ sodipodi:docname="icij.svg"
7
+ inkscape:version="1.1.2 (0a00cf5339, 2022-02-04)"
8
+ width="200"
9
+ height="200"
10
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
11
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
12
+ xmlns="http://www.w3.org/2000/svg"
13
+ xmlns:svg="http://www.w3.org/2000/svg">
14
+ <defs
15
+ id="defs12" />
16
+ <sodipodi:namedview
17
+ id="namedview10"
18
+ pagecolor="#ffffff"
19
+ bordercolor="#666666"
20
+ borderopacity="1.0"
21
+ inkscape:pageshadow="2"
22
+ inkscape:pageopacity="0.0"
23
+ inkscape:pagecheckerboard="0"
24
+ showgrid="false"
25
+ inkscape:zoom="2.5420489"
26
+ inkscape:cx="78.676693"
27
+ inkscape:cy="100.11609"
28
+ inkscape:window-width="1920"
29
+ inkscape:window-height="1016"
30
+ inkscape:window-x="0"
31
+ inkscape:window-y="0"
32
+ inkscape:window-maximized="1"
33
+ inkscape:current-layer="svg8" />
34
+ <path
35
+ d="M 128.421,200 H 71.579 l 28.42,-46.427 z"
36
+ fill="#ff0000"
37
+ id="path2" />
38
+ <path
39
+ d="M 146.195,19.138 C 133.856,6.793 117.452,0 100,0 82.548,0 66.143,6.793 53.804,19.138 41.459,31.477 34.666,47.882 34.666,65.334 c 0,17.451 6.793,33.856 19.138,46.195 12.339,12.339 28.744,19.138 46.196,19.138 17.452,0 33.856,-6.793 46.195,-19.138 12.339,-12.339 19.139,-28.744 19.139,-46.195 0,-17.452 -6.793,-33.857 -19.138,-46.196 z m 3.397,23.028 a 54.35,54.35 0 0 1 4.863,17.86 h -19.241 c -0.262,-6.173 -0.968,-12.175 -2.094,-17.86 h 16.478 z M 138.69,26.65 a 54.792,54.792 0 0 1 4.346,4.894 H 130.404 C 129.15,27.605 127.671,23.91 125.973,20.52 a 61.475,61.475 0 0 0 -2.6,-4.681 c 5.619,2.654 10.793,6.288 15.316,10.81 z m -14.11,33.376 h -19.266 v -17.86 h 16.965 c 1.241,5.6 2.02,11.614 2.3,17.86 z m -8.109,-34.758 a 63.605,63.605 0 0 1 2.71,6.276 h -13.867 v -19.48 c 4.03,2.174 7.92,6.721 11.157,13.204 z m -32.943,0 c 3.238,-6.477 7.134,-11.03 11.158,-13.203 V 31.538 H 80.819 a 62.794,62.794 0 0 1 2.709,-6.276 z m 11.158,16.898 v 17.86 H 75.42 c 0.286,-6.246 1.065,-12.26 2.3,-17.86 z M 61.31,26.65 a 54.905,54.905 0 0 1 15.314,-10.817 59.443,59.443 0 0 0 -2.6,4.68 c -1.698,3.391 -3.177,7.086 -4.43,11.025 H 56.962 a 55.764,55.764 0 0 1 4.347,-4.894 z m 5.57,15.516 c -1.127,5.685 -1.833,11.687 -2.095,17.86 H 45.544 a 54.201,54.201 0 0 1 4.863,-17.86 H 66.885 Z M 50.4,88.507 a 54.35,54.35 0 0 1 -4.863,-17.86 h 19.241 c 0.262,6.173 0.968,12.181 2.094,17.86 H 50.395 Z m 10.902,15.517 A 54.793,54.793 0 0 1 56.956,99.13 h 12.631 c 1.254,3.938 2.733,7.633 4.432,11.023 a 61.476,61.476 0 0 0 2.599,4.681 54.569,54.569 0 0 1 -15.316,-10.816 z m 14.11,-33.376 h 19.266 v 17.86 H 77.714 c -1.241,-5.6 -2.02,-11.615 -2.3,-17.86 z m 8.109,34.757 a 63.605,63.605 0 0 1 -2.71,-6.275 h 13.867 v 19.472 c -4.03,-2.173 -7.919,-6.72 -11.157,-13.203 z m 32.943,0 c -3.238,6.477 -7.134,11.03 -11.157,13.203 V 99.136 h 13.867 a 62.793,62.793 0 0 1 -2.709,6.275 z M 105.308,88.507 v -17.86 h 19.265 c -0.286,6.246 -1.065,12.26 -2.3,17.86 z m 33.376,15.517 a 54.759,54.759 0 0 1 -15.316,10.81 59.444,59.444 0 0 0 2.6,-4.68 c 1.698,-3.391 3.177,-7.086 4.43,-11.024 h 12.632 a 55.763,55.763 0 0 1 -4.346,4.894 z m -5.57,-15.517 c 1.126,-5.685 1.832,-11.687 2.094,-17.86 h 19.241 a 54.201,54.201 0 0 1 -4.863,17.86 h -16.478 z"
40
+ fill="#ff0000"
41
+ id="path4" />
42
+ <path
43
+ d="m 173.5755,136.809 v 10.622 H 26.4245 v -10.622 z"
44
+ fill="#999999"
45
+ id="path6" />
46
+ </svg>
Binary file
@@ -0,0 +1,79 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <!-- Created with Inkscape (http://www.inkscape.org/) -->
3
+
4
+ <svg
5
+ width="6.5cm"
6
+ height="6.5cm"
7
+ viewBox="0 0 230.31496 230.31496"
8
+ id="svg2"
9
+ version="1.1"
10
+ inkscape:version="1.1.2 (0a00cf5339, 2022-02-04)"
11
+ sodipodi:docname="murmur-dark.svg"
12
+ inkscape:export-filename="/home/pirhoo/Repositories/murmur/lib/assets/images/murmur-dark.png"
13
+ inkscape:export-xdpi="61.740002"
14
+ inkscape:export-ydpi="61.740002"
15
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
16
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
17
+ xmlns="http://www.w3.org/2000/svg"
18
+ xmlns:svg="http://www.w3.org/2000/svg"
19
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
20
+ xmlns:cc="http://creativecommons.org/ns#"
21
+ xmlns:dc="http://purl.org/dc/elements/1.1/">
22
+ <defs
23
+ id="defs4" />
24
+ <sodipodi:namedview
25
+ id="base"
26
+ pagecolor="#000000"
27
+ bordercolor="#666666"
28
+ borderopacity="1.0"
29
+ inkscape:pageopacity="0"
30
+ inkscape:pageshadow="2"
31
+ inkscape:zoom="1.28"
32
+ inkscape:cx="-44.140625"
33
+ inkscape:cy="38.671875"
34
+ inkscape:document-units="px"
35
+ inkscape:current-layer="layer1"
36
+ showgrid="false"
37
+ fit-margin-top="0"
38
+ fit-margin-left="0"
39
+ fit-margin-right="0"
40
+ fit-margin-bottom="0"
41
+ inkscape:window-width="1920"
42
+ inkscape:window-height="1016"
43
+ inkscape:window-x="0"
44
+ inkscape:window-y="0"
45
+ inkscape:window-maximized="1"
46
+ showguides="false"
47
+ units="cm"
48
+ inkscape:pagecheckerboard="0" />
49
+ <metadata
50
+ id="metadata7">
51
+ <rdf:RDF>
52
+ <cc:Work
53
+ rdf:about="">
54
+ <dc:format>image/svg+xml</dc:format>
55
+ <dc:type
56
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
57
+ </cc:Work>
58
+ </rdf:RDF>
59
+ </metadata>
60
+ <g
61
+ inkscape:label="Calque 1"
62
+ inkscape:groupmode="layer"
63
+ id="layer1"
64
+ transform="translate(-191.429,-339.19011)">
65
+ <rect
66
+ style="fill:#000000;fill-opacity:1;stroke:#ff0000;stroke-width:9.58388;stroke-miterlimit:4;stroke-dasharray:none;stroke-opacity:1"
67
+ id="rect4134"
68
+ width="220.73062"
69
+ height="220.73108"
70
+ x="196.22095"
71
+ y="343.98206" />
72
+ <path
73
+ style="fill:#ffffff;fill-opacity:1;stroke:none;stroke-opacity:1"
74
+ d="m 237.92577,454.34732 0,-76.35162 8.52678,0.07 c 9.10353,0.0747 9.26344,0.0899 10.51115,0.99988 0.49114,0.35818 7.2236,9.66209 23.01564,31.8064 12.27678,17.21506 22.86665,32.1941 23.53305,33.28675 0.66639,1.09265 1.69404,2.93083 2.28367,4.08485 0.58963,1.15402 1.10315,2.09821 1.14115,2.09821 0.038,0 0.66585,-1.15415 1.39522,-2.56477 0.72937,-1.41063 1.93557,-3.47983 2.68044,-4.59822 0.74488,-1.11839 11.10848,-15.93522 23.03024,-32.92629 24.05311,-34.28088 22.07776,-31.69793 24.50765,-32.04601 0.6875,-0.0985 4.72545,-0.18065 8.97322,-0.1826 l 7.72321,-0.003 0,76.33929 0,76.33929 -8.2139,0 -8.21389,0 -0.045,-40.1863 -0.045,-40.18629 -18.21213,26.12379 c -10.01668,14.36809 -20.04581,28.74886 -22.28696,31.95727 -4.45969,6.38445 -4.76669,6.71091 -7.00091,7.44457 -1.40613,0.46174 -4.20262,0.63824 -6.42399,0.40546 -2.17036,-0.22744 -3.92961,-1.00335 -5.02396,-2.2158 -0.38226,-0.42348 -10.73961,-14.95799 -23.0164,-32.29896 l -22.32143,-31.52903 -0.045,40.24262 -0.045,40.24263 -8.21389,0 -8.2139,0 z m 70.20014,43.98714 c 0.60267,-1.20224 1.51427,-2.86965 2.02579,-3.70535 1.13637,-1.85658 45.22599,-64.16589 45.60469,-65.06219 3.34347,-7.91315 3.02854,-8.03454 3.08181,-14.49782 0.0599,-7.2652 0.17013,-13.69159 0.24501,-14.28088 0.12125,-0.95416 0.1067,-1.04211 -0.13288,-0.80357 -0.14796,0.14732 -10.17437,14.49107 -22.28091,31.875 -12.10653,17.38393 -22.26091,31.87344 -22.56527,32.19891 -0.69245,0.74048 -2.74661,1.7625 -4.01526,1.99773 -0.52903,0.0981 -1.97546,0.17717 -3.21429,0.17572 -3.56338,-0.004 -5.42965,-0.60642 -7.0016,-2.25942 -0.45134,-0.47462 -10.49161,-14.52365 -22.3117,-31.22008 -11.82009,-16.69643 -21.96537,-31.02562 -22.54506,-31.84265 -0.5797,-0.81702 -1.08846,-1.45104 -1.13057,-1.40892 -0.0421,0.0421 0.0201,0.79094 0.13827,1.66407 0.14101,1.04198 0.25003,5.9733 0.31726,14.35051 0.36485,7.96234 -0.51696,8.44823 3.16512,14.14139 9.64754,14.91684 21.23483,29.61884 31.73611,44.3456 7.07365,9.91964 13.30733,18.7264 13.85262,19.57058 0.54528,0.84418 1.63428,2.75016 2.42,4.2355 0.78571,1.48535 1.44804,2.70314 1.47184,2.7062 0.0238,0.003 0.53636,-0.97808 1.13902,-2.18033 z"
75
+ id="path4144"
76
+ inkscape:connector-curvature="0"
77
+ sodipodi:nodetypes="ccssssssssssscccccccsssscsccccccssscscssccssscscscsscs" />
78
+ </g>
79
+ </svg>
@@ -0,0 +1,68 @@
1
+ <?xml version="1.0" encoding="UTF-8" standalone="no"?>
2
+ <!-- Created with Inkscape (http://www.inkscape.org/) -->
3
+
4
+ <svg
5
+ xmlns:dc="http://purl.org/dc/elements/1.1/"
6
+ xmlns:cc="http://creativecommons.org/ns#"
7
+ xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
8
+ xmlns:svg="http://www.w3.org/2000/svg"
9
+ xmlns="http://www.w3.org/2000/svg"
10
+ xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
11
+ xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
12
+ width="65mm"
13
+ height="65mm"
14
+ viewBox="0 0 230.31496 230.31496"
15
+ id="svg2"
16
+ version="1.1"
17
+ inkscape:version="0.91 r13725"
18
+ sodipodi:docname="murmur-white.svg">
19
+ <defs
20
+ id="defs4" />
21
+ <sodipodi:namedview
22
+ id="base"
23
+ pagecolor="#001226"
24
+ bordercolor="#666666"
25
+ borderopacity="1.0"
26
+ inkscape:pageopacity="0"
27
+ inkscape:pageshadow="2"
28
+ inkscape:zoom="1.4142136"
29
+ inkscape:cx="349.43683"
30
+ inkscape:cy="-5.0091574"
31
+ inkscape:document-units="px"
32
+ inkscape:current-layer="layer1"
33
+ showgrid="false"
34
+ fit-margin-top="0"
35
+ fit-margin-left="0"
36
+ fit-margin-right="0"
37
+ fit-margin-bottom="0"
38
+ inkscape:window-width="1920"
39
+ inkscape:window-height="1056"
40
+ inkscape:window-x="0"
41
+ inkscape:window-y="24"
42
+ inkscape:window-maximized="1"
43
+ showguides="false" />
44
+ <metadata
45
+ id="metadata7">
46
+ <rdf:RDF>
47
+ <cc:Work
48
+ rdf:about="">
49
+ <dc:format>image/svg+xml</dc:format>
50
+ <dc:type
51
+ rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
52
+ <dc:title></dc:title>
53
+ </cc:Work>
54
+ </rdf:RDF>
55
+ </metadata>
56
+ <g
57
+ inkscape:label="Calque 1"
58
+ inkscape:groupmode="layer"
59
+ id="layer1"
60
+ transform="translate(-191.429,-339.19011)">
61
+ <path
62
+ style="fill:#ffffff;fill-opacity:1;stroke:none;stroke-opacity:1"
63
+ d="m 237.92577,454.34732 0,-76.35162 8.52678,0.07 c 9.10353,0.0747 9.26344,0.0899 10.51115,0.99988 0.49114,0.35818 7.2236,9.66209 23.01564,31.8064 12.27678,17.21506 22.86665,32.1941 23.53305,33.28675 0.66639,1.09265 1.69404,2.93083 2.28367,4.08485 0.58963,1.15402 1.10315,2.09821 1.14115,2.09821 0.038,0 0.66585,-1.15415 1.39522,-2.56477 0.72937,-1.41063 1.93557,-3.47983 2.68044,-4.59822 0.74488,-1.11839 11.10848,-15.93522 23.03024,-32.92629 24.05311,-34.28088 22.07776,-31.69793 24.50765,-32.04601 0.6875,-0.0985 4.72545,-0.18065 8.97322,-0.1826 l 7.72321,-0.003 0,76.33929 0,76.33929 -8.2139,0 -8.21389,0 -0.045,-40.1863 -0.045,-40.18629 -18.21213,26.12379 c -10.01668,14.36809 -20.04581,28.74886 -22.28696,31.95727 -4.45969,6.38445 -4.76669,6.71091 -7.00091,7.44457 -1.40613,0.46174 -4.20262,0.63824 -6.42399,0.40546 -2.17036,-0.22744 -3.92961,-1.00335 -5.02396,-2.2158 -0.38226,-0.42348 -10.73961,-14.95799 -23.0164,-32.29896 l -22.32143,-31.52903 -0.045,40.24262 -0.045,40.24263 -8.21389,0 -8.2139,0 z m 70.20014,43.98714 c 0.60267,-1.20224 1.51427,-2.86965 2.02579,-3.70535 1.13637,-1.85658 45.22599,-64.16589 45.60469,-65.06219 3.34347,-7.91315 3.02854,-8.03454 3.08181,-14.49782 0.0599,-7.2652 0.17013,-13.69159 0.24501,-14.28088 0.12125,-0.95416 0.1067,-1.04211 -0.13288,-0.80357 -0.14796,0.14732 -10.17437,14.49107 -22.28091,31.875 -12.10653,17.38393 -22.26091,31.87344 -22.56527,32.19891 -0.69245,0.74048 -2.74661,1.7625 -4.01526,1.99773 -0.52903,0.0981 -1.97546,0.17717 -3.21429,0.17572 -3.56338,-0.004 -5.42965,-0.60642 -7.0016,-2.25942 -0.45134,-0.47462 -10.49161,-14.52365 -22.3117,-31.22008 -11.82009,-16.69643 -21.96537,-31.02562 -22.54506,-31.84265 -0.5797,-0.81702 -1.08846,-1.45104 -1.13057,-1.40892 -0.0421,0.0421 0.0201,0.79094 0.13827,1.66407 0.14101,1.04198 0.25003,5.9733 0.31726,14.35051 0.36485,7.96234 -0.51696,8.44823 3.16512,14.14139 9.64754,14.91684 21.23483,29.61884 31.73611,44.3456 7.07365,9.91964 13.30733,18.7264 13.85262,19.57058 0.54528,0.84418 1.63428,2.75016 2.42,4.2355 0.78571,1.48535 1.44804,2.70314 1.47184,2.7062 0.0238,0.003 0.53636,-0.97808 1.13902,-2.18033 z"
64
+ id="path4144"
65
+ inkscape:connector-curvature="0"
66
+ sodipodi:nodetypes="ccssssssssssscccccccsssscsccccccssscscssccssscscscsscs" />
67
+ </g>
68
+ </svg>
@@ -0,0 +1,128 @@
1
+ <template>
2
+ <b-card
3
+ :class="{
4
+ 'accordion-wrapper__content__step--active': isActive,
5
+ 'accordion-wrapper__content__step--previous': isPrevious
6
+ }"
7
+ class="accordion-wrapper__content__step"
8
+ no-body
9
+ >
10
+ <h4 class="card-body accordion-wrapper__content__step__heading m-0">
11
+ <!-- @slot Title of the step -->
12
+ <slot name="title">
13
+ {{ title }}
14
+ </slot>
15
+ </h4>
16
+ <b-collapse :visible="isActive">
17
+ <div class="accordion-wrapper__content__step__main card-body row g-0">
18
+ <!-- @slot Content of the step with props {isFirst:boolean, isLast:boolean, step:Step, nextStep:Function}-->
19
+ <slot name="content" v-bind="{ isFirst, isLast, step, previousStep, nextStep }">
20
+ {{ content }}
21
+ </slot>
22
+ </div>
23
+ <div class="card-footer">
24
+ <!-- @slot Previous step button with props {isFirst:boolean, isLast:boolean, step:Step, nextStep:Function} -->
25
+ <slot name="previousStepButton" v-bind="{ isFirst, isLast, step, previousStep }">
26
+ <b-button
27
+ v-if="!isFirst"
28
+ class="accordion-wrapper__content__step__back-button"
29
+ type="button"
30
+ variant="link"
31
+ @click="previousStep"
32
+ >
33
+ Back
34
+ </b-button>
35
+ </slot>
36
+ <!-- @slot Next step button with props {isFirst:boolean, isLast:boolean, step:Step, nextStep:Function} }-->
37
+ <slot name="nextStepButton" v-bind="{ isFirst, isLast, step, nextStep }">
38
+ <b-button
39
+ v-if="!isLast"
40
+ class="accordion-wrapper__content__step__continue-button"
41
+ type="button"
42
+ variant="primary"
43
+ @click="nextStep"
44
+ >
45
+ Continue
46
+ </b-button>
47
+ </slot>
48
+ </div>
49
+ </b-collapse>
50
+ </b-card>
51
+ </template>
52
+
53
+ <script lang="ts">
54
+ import {computed, defineComponent, inject, PropType} from 'vue';
55
+ import {AccordionKey} from '@/keys'
56
+ import {Accordion, Step} from '@/types'
57
+
58
+ export default defineComponent({
59
+ props: {
60
+ /**
61
+ * Step name
62
+ */
63
+ step: {type: [String, Object as () => Step, Symbol], required: true},
64
+ /**
65
+ * Title of the step card
66
+ */
67
+ title: {type: String, default: "Step"},
68
+
69
+ /**
70
+ * Content of the step card
71
+ */
72
+ content: {type: String, default: "Step"},
73
+ /**
74
+ * Force card expansion/collapse
75
+ */
76
+ active: {type: Boolean as PropType<boolean|undefined>, default: false},
77
+ },
78
+ emits: ['next-step', 'previous-step'],
79
+ setup(props: { step: Step, active: boolean|undefined }, {emit}: any) {
80
+
81
+ const accordion = inject<Accordion>(AccordionKey)
82
+ const isActive = computed(() => {
83
+ const fromAccordion = !!accordion?.isActiveStep(props.step);
84
+ const fromSelf = props.active !== undefined ? props.active : false;
85
+ return fromSelf || fromAccordion;
86
+ });
87
+
88
+ const isPrevious = computed(() => !!accordion?.isPreviousStep(props.step));
89
+ const isFirst = computed(() => !!accordion?.isFirstStep(props.step));
90
+ const isLast = computed(() => !!accordion?.isLastStep(props.step));
91
+
92
+
93
+ const nextStep = () => {
94
+ accordion?.emitAccordionNextStepEvent();
95
+ /**
96
+ * Fired when the nextStep function is called
97
+ * either by clicking on the next button or in the next step slot
98
+ * with the new value as parameter
99
+ * @event next-step
100
+ * @param Mixed New step value.
101
+ */
102
+ emit('next-step');
103
+ };
104
+
105
+ const previousStep = () => {
106
+ accordion?.emitAccordionPreviousStepEvent();
107
+ /**
108
+ * Fired when the previousStep function is called
109
+ * either by clicking on the previous button or in the previous step slot
110
+ * with the new value as parameter
111
+ * @event previous-step
112
+ * @param Mixed New step value.
113
+ */
114
+ emit('previous-step');
115
+ };
116
+ return {
117
+ isFirst,
118
+ isLast,
119
+ isActive,
120
+ isPrevious,
121
+ nextStep,
122
+ previousStep,
123
+ accordion
124
+ }
125
+ }
126
+ })
127
+
128
+ </script>
@@ -0,0 +1,138 @@
1
+ <template>
2
+ <div class="accordion-wrapper">
3
+ <div class="accordion-wrapper__content ms-5">
4
+ <!-- @slot Content with all the steps declarations -->
5
+ <slot />
6
+ </div>
7
+ </div>
8
+ </template>
9
+
10
+ <script lang="ts">
11
+ import {computed, PropType, provide, defineComponent} from 'vue';
12
+ import { AccordionKey } from '@/keys';
13
+ import {Accordion, Step} from '@/types';
14
+
15
+ const STEP_CHANGE_EVENT: string = 'step-change';
16
+ export default defineComponent({
17
+ props:{
18
+ step: {
19
+ type: [String, Symbol, Object as () => Step],
20
+ required: true,
21
+ },
22
+ steps: {
23
+ type: Array as PropType<Step[]>,
24
+ required: true,
25
+ },
26
+ },
27
+ emits:['step-change'],
28
+ setup(props,{emit}){
29
+
30
+ const emitAccordionNextStepEvent = () => {
31
+ emit('step-change', props.steps[activeStepIndex.value + 1] || props.step);
32
+ };
33
+
34
+ const emitAccordionPreviousStepEvent = () => {
35
+ emit('step-change', props.steps[activeStepIndex.value - 1] || props.step);
36
+ };
37
+
38
+ const activeStepIndex = computed(() => props.steps?.indexOf(props.step));
39
+
40
+ const isFirstStep = (step: Step): boolean => props.steps?.indexOf(step) === 0;
41
+ const isLastStep = (step: Step): boolean => props.steps?.indexOf(step) === props.steps?.length - 1;
42
+ const isActiveStep = (step: Step): boolean => props.step === step;
43
+ const isPreviousStep = (step: Step): boolean => props.steps?.indexOf(step) < activeStepIndex.value;
44
+
45
+
46
+ provide<Accordion>(AccordionKey, {
47
+ emitAccordionNextStepEvent,
48
+ emitAccordionPreviousStepEvent,
49
+ isActiveStep,
50
+ isPreviousStep,
51
+ isFirstStep,
52
+ isLastStep,
53
+ step: props.step,
54
+ steps: props.steps,
55
+ })
56
+ return {
57
+ emitAccordionNextStepEvent,
58
+ emitAccordionPreviousStepEvent,
59
+ isActiveStep,
60
+ isPreviousStep,
61
+ isFirstStep,
62
+ isLastStep
63
+ }
64
+ }
65
+ })
66
+ </script>
67
+
68
+
69
+ <style lang="scss" scoped>
70
+ @use 'sass:math';
71
+ @import '../styles/variables.scss';
72
+
73
+ .accordion-wrapper {
74
+ $step-bullet-size: 2rem;
75
+ $step-bullet-font-size: math.div($step-bullet-size, 2);
76
+
77
+ &__content {
78
+ counter-reset: step 0;
79
+ max-width: 550px;
80
+ &__step {
81
+ margin-bottom: $spacer;
82
+ position: relative;
83
+ opacity: $btn-disabled-opacity;
84
+ transition: $transition-base;
85
+
86
+ &--active,&--previous {
87
+ opacity: 1;
88
+ }
89
+
90
+ &__heading + .collapse > .card-body {
91
+ padding-top: 0;
92
+ }
93
+
94
+ &:before {
95
+ counter-increment: step;
96
+ content: counter(step);
97
+ z-index: 10;
98
+ line-height: $step-bullet-size;
99
+ height: $step-bullet-size;
100
+ width: $step-bullet-size;
101
+ text-align: center;
102
+ font-size: $step-bullet-font-size;
103
+ border-radius: 50%;
104
+ display: block;
105
+ color: white;
106
+ font-weight: bolder;
107
+ position: absolute;
108
+ right: calc(100% + #{$spacer});
109
+ top: $spacer * 1.25;
110
+ background: $text-muted;
111
+ transition: background $transition-base;
112
+ }
113
+
114
+ &--active:before,
115
+ &--previous:before {
116
+ background: $info;
117
+ }
118
+
119
+ &:not(:last-of-type):after {
120
+ content: '';
121
+ z-index: 0;
122
+ position: absolute;
123
+ top: $spacer * 1.25;
124
+ right: calc(100% + #{$spacer} + #{math.div($step-bullet-size, 2)});
125
+ transform: translateX(50%);
126
+ bottom: -4rem;
127
+ width: 3px;
128
+ background: transparent;
129
+ transition: background 400ms;
130
+ }
131
+
132
+ &--previous:not(:last-of-type):after {
133
+ background: $info;
134
+ }
135
+ }
136
+ }
137
+ }
138
+ </style>