@politicalwatch/tipi-uikit 1.0.0-dev

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 (238) hide show
  1. package/.browserslistrc +2 -0
  2. package/.editorconfig +7 -0
  3. package/.eslintrc.js +11 -0
  4. package/.postcssrc.json +5 -0
  5. package/.prettierrc.js +7 -0
  6. package/.storybook/main.js +19 -0
  7. package/.storybook/preview.js +17 -0
  8. package/.stylelintrc +24 -0
  9. package/README.md +21 -0
  10. package/dist/bng-890acecf.mjs +29 -0
  11. package/dist/coalicioncanaria-6f4c1db4.mjs +18 -0
  12. package/dist/compromis-5ea8e904.mjs +23 -0
  13. package/dist/cs-de2f22f8.mjs +21 -0
  14. package/dist/cup-83f9d201.mjs +25 -0
  15. package/dist/ehbildu-23275d48.mjs +25 -0
  16. package/dist/encomu-90f0f0ee.mjs +23 -0
  17. package/dist/erc-83cebd9f.mjs +33 -0
  18. package/dist/foroasturias-c86ed9f1.mjs +27 -0
  19. package/dist/iu-0d57eb1a.mjs +23 -0
  20. package/dist/jxcat-69202004.mjs +23 -0
  21. package/dist/maspais-a61a53ef.mjs +21 -0
  22. package/dist/nuevacanaria-559edad7.mjs +21 -0
  23. package/dist/pdecat-0ec3db5a.mjs +21 -0
  24. package/dist/pnv-7f6f4b34.mjs +29 -0
  25. package/dist/podemos-de793077.mjs +21 -0
  26. package/dist/pp-13bed712.mjs +25 -0
  27. package/dist/prc-8a3d42c1.mjs +29 -0
  28. package/dist/psoe-97af3ccf.mjs +21 -0
  29. package/dist/style.css +1 -0
  30. package/dist/sumar-7dfecef0.mjs +29 -0
  31. package/dist/teruelexiste-7d4a17ab.mjs +21 -0
  32. package/dist/tipi-uikit.es.js +26196 -0
  33. package/dist/tipi-uikit.umd.js +134 -0
  34. package/dist/unidaspodemos-43ae78cc.mjs +18 -0
  35. package/dist/upn-e7eb332f.mjs +35 -0
  36. package/dist/vox-64380b40.mjs +25 -0
  37. package/package.json +57 -0
  38. package/src/assets/.gitkeep +0 -0
  39. package/src/assets/birthday_bg.png +0 -0
  40. package/src/assets/index.js +64 -0
  41. package/src/assets/party_logos/bildu.png +0 -0
  42. package/src/assets/party_logos/bng.png +0 -0
  43. package/src/assets/party_logos/ca.jpeg +0 -0
  44. package/src/assets/party_logos/ciudadanos.png +0 -0
  45. package/src/assets/party_logos/compromis.jpg +0 -0
  46. package/src/assets/party_logos/cup.png +0 -0
  47. package/src/assets/party_logos/eajpnv.png +0 -0
  48. package/src/assets/party_logos/encomupodem.jpg +0 -0
  49. package/src/assets/party_logos/erc.png +0 -0
  50. package/src/assets/party_logos/fac.png +0 -0
  51. package/src/assets/party_logos/icon/bng.svg +4 -0
  52. package/src/assets/party_logos/icon/coalicioncanaria.svg +7 -0
  53. package/src/assets/party_logos/icon/compromis.svg +3 -0
  54. package/src/assets/party_logos/icon/cs.svg +3 -0
  55. package/src/assets/party_logos/icon/cup.svg +4 -0
  56. package/src/assets/party_logos/icon/ehbildu.svg +4 -0
  57. package/src/assets/party_logos/icon/encomu.svg +3 -0
  58. package/src/assets/party_logos/icon/erc.svg +5 -0
  59. package/src/assets/party_logos/icon/foroasturias.svg +4 -0
  60. package/src/assets/party_logos/icon/iu.svg +3 -0
  61. package/src/assets/party_logos/icon/jxcat.svg +3 -0
  62. package/src/assets/party_logos/icon/maspais.svg +3 -0
  63. package/src/assets/party_logos/icon/nuevacanaria.svg +3 -0
  64. package/src/assets/party_logos/icon/party-error.svg +3 -0
  65. package/src/assets/party_logos/icon/pdecat.svg +3 -0
  66. package/src/assets/party_logos/icon/pnv.svg +4 -0
  67. package/src/assets/party_logos/icon/podemos.svg +3 -0
  68. package/src/assets/party_logos/icon/pp.svg +4 -0
  69. package/src/assets/party_logos/icon/prc.svg +5 -0
  70. package/src/assets/party_logos/icon/psoe.svg +3 -0
  71. package/src/assets/party_logos/icon/sumar.svg +73 -0
  72. package/src/assets/party_logos/icon/teruelexiste.svg +3 -0
  73. package/src/assets/party_logos/icon/unidaspodemos.svg +27 -0
  74. package/src/assets/party_logos/icon/upn.svg +5 -0
  75. package/src/assets/party_logos/icon/vox.svg +4 -0
  76. package/src/assets/party_logos/iu.png +0 -0
  77. package/src/assets/party_logos/jxcat.png +0 -0
  78. package/src/assets/party_logos/mas-pais.jpg +0 -0
  79. package/src/assets/party_logos/nueva_canarias.png +0 -0
  80. package/src/assets/party_logos/pdecat.png +0 -0
  81. package/src/assets/party_logos/podemos.jpg +0 -0
  82. package/src/assets/party_logos/pp.png +0 -0
  83. package/src/assets/party_logos/prc.png +0 -0
  84. package/src/assets/party_logos/psc.png +0 -0
  85. package/src/assets/party_logos/pse-ee.png +0 -0
  86. package/src/assets/party_logos/psoe.png +0 -0
  87. package/src/assets/party_logos/teruelexiste.svg +4 -0
  88. package/src/assets/party_logos/unidaspodemos.png +0 -0
  89. package/src/assets/party_logos/upn.jpg +0 -0
  90. package/src/assets/party_logos/vox.png +0 -0
  91. package/src/assets/svg/icon-advanced.svg +3 -0
  92. package/src/assets/svg/icon-bell.svg +3 -0
  93. package/src/assets/svg/icon-birthday.svg +18 -0
  94. package/src/assets/svg/icon-building.svg +3 -0
  95. package/src/assets/svg/icon-calendar.svg +4 -0
  96. package/src/assets/svg/icon-chevron-down.svg +3 -0
  97. package/src/assets/svg/icon-chevron-left.svg +3 -0
  98. package/src/assets/svg/icon-chevron-right.svg +3 -0
  99. package/src/assets/svg/icon-chevron-up.svg +3 -0
  100. package/src/assets/svg/icon-clock.svg +4 -0
  101. package/src/assets/svg/icon-close-menu.svg +3 -0
  102. package/src/assets/svg/icon-close.svg +3 -0
  103. package/src/assets/svg/icon-conversation.svg +3 -0
  104. package/src/assets/svg/icon-denied.svg +3 -0
  105. package/src/assets/svg/icon-document.svg +4 -0
  106. package/src/assets/svg/icon-download.svg +3 -0
  107. package/src/assets/svg/icon-error.svg +3 -0
  108. package/src/assets/svg/icon-footprint.svg +3 -0
  109. package/src/assets/svg/icon-github.svg +9 -0
  110. package/src/assets/svg/icon-hamburger.svg +1 -0
  111. package/src/assets/svg/icon-info.svg +3 -0
  112. package/src/assets/svg/icon-less.svg +3 -0
  113. package/src/assets/svg/icon-location.svg +3 -0
  114. package/src/assets/svg/icon-logout.svg +13 -0
  115. package/src/assets/svg/icon-mail.svg +4 -0
  116. package/src/assets/svg/icon-more.svg +5 -0
  117. package/src/assets/svg/icon-open-blank.svg +3 -0
  118. package/src/assets/svg/icon-plus.svg +3 -0
  119. package/src/assets/svg/icon-search.svg +4 -0
  120. package/src/assets/svg/icon-success.svg +3 -0
  121. package/src/assets/svg/icon-twitter.svg +3 -0
  122. package/src/assets/svg/icon-upload.svg +3 -0
  123. package/src/assets/svg/icons.js +67 -0
  124. package/src/components/CSVDownload/CSVDownload.vue +146 -0
  125. package/src/components/Charts/Barchart/d3.barchart.js +484 -0
  126. package/src/components/Charts/Barchart/d3.barchart.vue +16 -0
  127. package/src/components/Charts/Sliceschart/d3.sliceschart.js +372 -0
  128. package/src/components/Charts/Sliceschart/d3.sliceschart.vue +20 -0
  129. package/src/components/Charts/Sunburst/d3.sunburst.js +412 -0
  130. package/src/components/Charts/Sunburst/d3.sunburst.vue +23 -0
  131. package/src/components/Charts/WordsCloud/d3.wordscloud.js +332 -0
  132. package/src/components/Charts/WordsCloud/d3.wordscloud.vue +16 -0
  133. package/src/components/Charts/d3.chart.js +242 -0
  134. package/src/components/Charts/d3.chart.vue +81 -0
  135. package/src/components/Charts/styles.scss +92 -0
  136. package/src/components/CongressLink/CongressLink.vue +19 -0
  137. package/src/components/Deputy/Deputy.vue +106 -0
  138. package/src/components/Header/Header.vue +19 -0
  139. package/src/components/Icon/Icon.vue +30 -0
  140. package/src/components/InitiativeCard/InitiativeCard.vue +94 -0
  141. package/src/components/InitiativeMeta/InitiativeMeta.vue +79 -0
  142. package/src/components/Loader/Loader.vue +23 -0
  143. package/src/components/Message/Message.vue +27 -0
  144. package/src/components/Navbar/Navbar.vue +117 -0
  145. package/src/components/Neuron/Neuron.vue +211 -0
  146. package/src/components/PartyLogo/PartyLogo.vue +58 -0
  147. package/src/components/PartyLogo/PartyLogoIcon.vue +239 -0
  148. package/src/components/Results/Results.vue +114 -0
  149. package/src/components/Splash/Splash.vue +43 -0
  150. package/src/components/Text/Text.vue +69 -0
  151. package/src/components/TipiCharts/TipiBarchart.vue +204 -0
  152. package/src/components/TopicCard/TopicCard.vue +52 -0
  153. package/src/components/TopicLink/TopicLink.vue +37 -0
  154. package/src/components/TopicPill/TopicPill.vue +67 -0
  155. package/src/components/Topics/Topics.vue +79 -0
  156. package/src/components/TwoCircles/TwoCircles.vue +134 -0
  157. package/src/components/index.js +57 -0
  158. package/src/main.js +11 -0
  159. package/src/stories/CSVDownload.stories.js +245 -0
  160. package/src/stories/CongressLink.stories.js +21 -0
  161. package/src/stories/D3BarChart.stories.js +40 -0
  162. package/src/stories/D3SlicesChart.stories.js +64 -0
  163. package/src/stories/D3Sunburst.stories.js +293 -0
  164. package/src/stories/D3WordsCloud.stories.js +64 -0
  165. package/src/stories/Deputy.stories.js +168 -0
  166. package/src/stories/Header.stories.js +26 -0
  167. package/src/stories/Icon.stories.js +25 -0
  168. package/src/stories/InitiativeCard.stories.js +58 -0
  169. package/src/stories/InitiativeMeta.stories.js +37 -0
  170. package/src/stories/Loader.stories.js +25 -0
  171. package/src/stories/Message.stories.js +49 -0
  172. package/src/stories/Navbar.stories.js +85 -0
  173. package/src/stories/Neuron.stories.js +210 -0
  174. package/src/stories/PartyLogo.stories.js +21 -0
  175. package/src/stories/PartyLogoIcon.stories.js +21 -0
  176. package/src/stories/Results.stories.js +350 -0
  177. package/src/stories/Splash.stories.js +25 -0
  178. package/src/stories/Text.stories.js +46 -0
  179. package/src/stories/TopicCard.stories.js +775 -0
  180. package/src/stories/TopicLink.stories.js +778 -0
  181. package/src/stories/TopicPill.stories.js +46 -0
  182. package/src/stories/Topics.stories.js +80 -0
  183. package/src/stories/TwoCircles.stories.js +144 -0
  184. package/src/stories/mocks.js +153 -0
  185. package/src/styles/01_settings/_settings__breakpoints.scss +28 -0
  186. package/src/styles/01_settings/_settings__colors.scss +30 -0
  187. package/src/styles/01_settings/_settings__fonts.scss +3 -0
  188. package/src/styles/01_settings/_settings__icons.scss +0 -0
  189. package/src/styles/01_settings/_settings__variables.scss +45 -0
  190. package/src/styles/02_tools/_tools__functions.scss +19 -0
  191. package/src/styles/02_tools/_tools__mixins.scss +321 -0
  192. package/src/styles/03_generic/_generic__box-sizing.scss +12 -0
  193. package/src/styles/03_generic/_generic__global.scss +20 -0
  194. package/src/styles/03_generic/_generic__normalize.scss +371 -0
  195. package/src/styles/04_base/_base__anchors.scss +8 -0
  196. package/src/styles/04_base/_base__blockquotes.scss +10 -0
  197. package/src/styles/04_base/_base__forms.scss +32 -0
  198. package/src/styles/04_base/_base__headings.scss +23 -0
  199. package/src/styles/04_base/_base__images.scss +4 -0
  200. package/src/styles/04_base/_base__lists.scss +66 -0
  201. package/src/styles/04_base/_base__paragraphs.scss +11 -0
  202. package/src/styles/04_base/_base__tables.scss +95 -0
  203. package/src/styles/05_objects/_objects__columns.scss +29 -0
  204. package/src/styles/05_objects/_objects__container.scss +19 -0
  205. package/src/styles/05_objects/_objects__grid.scss +57 -0
  206. package/src/styles/05_objects/_objects__masonry.scss +11 -0
  207. package/src/styles/05_objects/_objects__media.scss +24 -0
  208. package/src/styles/05_objects/_objects__section.scss +21 -0
  209. package/src/styles/06_components/_components__button.scss +178 -0
  210. package/src/styles/06_components/_components__congress-link.scss +12 -0
  211. package/src/styles/06_components/_components__decorator.scss +10 -0
  212. package/src/styles/06_components/_components__deputy.scss +177 -0
  213. package/src/styles/06_components/_components__disclaimer.scss +24 -0
  214. package/src/styles/06_components/_components__forms.scss +454 -0
  215. package/src/styles/06_components/_components__header.scss +37 -0
  216. package/src/styles/06_components/_components__icon.scss +27 -0
  217. package/src/styles/06_components/_components__initiative-card.scss +49 -0
  218. package/src/styles/06_components/_components__initiative-meta.scss +91 -0
  219. package/src/styles/06_components/_components__loader.scss +125 -0
  220. package/src/styles/06_components/_components__menu.scss +110 -0
  221. package/src/styles/06_components/_components__message.scss +66 -0
  222. package/src/styles/06_components/_components__navbar.scss +114 -0
  223. package/src/styles/06_components/_components__party-logo.scss +21 -0
  224. package/src/styles/06_components/_components__splash.scss +29 -0
  225. package/src/styles/06_components/_components__text.scss +69 -0
  226. package/src/styles/06_components/_components__topic-card.scss +40 -0
  227. package/src/styles/06_components/_components__topic-link.scss +37 -0
  228. package/src/styles/06_components/_components__topics.scss +107 -0
  229. package/src/styles/07_trumps/_trumps__borders.scss +1 -0
  230. package/src/styles/07_trumps/_trumps__colors.scss +3 -0
  231. package/src/styles/07_trumps/_trumps__grid.scss +1 -0
  232. package/src/styles/07_trumps/_trumps__helpers.scss +17 -0
  233. package/src/styles/07_trumps/_trumps__texts.scss +39 -0
  234. package/src/styles/07_trumps/_trumps__visibility.scss +56 -0
  235. package/src/styles/main.scss +54 -0
  236. package/src/utils/index.js +26 -0
  237. package/svgo.config.js +16 -0
  238. package/vite.config.js +54 -0
@@ -0,0 +1,64 @@
1
+ import D3WordsCloud from '@/components/Charts/WordsCloud/d3.wordscloud.vue';
2
+
3
+ // More on how to set up stories at: https://storybook.js.org/docs/vue/writing-stories/introduction
4
+ export default {
5
+ title: 'Example/D3WordsCloud',
6
+ component: D3WordsCloud,
7
+ tags: ['autodocs'],
8
+
9
+ argTypes: {
10
+ config: {
11
+ type: 'object',
12
+ },
13
+ datum: {
14
+ type: 'array',
15
+ },
16
+ title: {
17
+ type: 'text',
18
+ },
19
+ source: {
20
+ type: 'text',
21
+ },
22
+ height: {
23
+ type: 'number',
24
+ },
25
+ download: {
26
+ type: 'text',
27
+ },
28
+ },
29
+ };
30
+
31
+ // More on writing stories with args: https://storybook.js.org/docs/vue/writing-stories/args
32
+ export const Primary = {
33
+ args: {
34
+ datum: [
35
+ { tag: 'Atención a personas dependientes', size: 25, value: 1, color: '#dd1367' },
36
+ { tag: 'Atención a la dependencia', size: 25, value: 1, color: '#4c9f38' },
37
+ { tag: 'Financiación de la sanidad', size: 25, value: 1, color: '#4c9f38' },
38
+ { tag: 'Financiación de la sanidad', size: 25, value: 1, color: '#4c9f38' },
39
+ { tag: 'Financiación de la sanidad', size: 25, value: 1, color: '#4c9f38' },
40
+ { tag: 'Financiación de la sanidad', size: 25, value: 1, color: '#4c9f38' },
41
+ { tag: 'Financiación de la sanidad', size: 25, value: 1, color: '#4c9f38' },
42
+ { tag: 'Financiación de la sanidad', size: 25, value: 1, color: '#4c9f38' },
43
+ { tag: 'Financiación de la sanidad', size: 25, value: 1, color: '#4c9f38' },
44
+ { tag: 'Financiación de la sanidad', size: 25, value: 1, color: '#4c9f38' },
45
+ { tag: 'Financiación de la sanidad', size: 25, value: 1, color: '#4c9f38' },
46
+ { tag: 'Financiación de la sanidad', size: 25, value: 1, color: '#4c9f38' },
47
+ { tag: 'Financiación de la sanidad', size: 25, value: 1, color: '#4c9f38' },
48
+ { tag: 'Financiación de la sanidad', size: 25, value: 1, color: '#4c9f38' },
49
+ { tag: 'Financiación de la sanidad', size: 25, value: 1, color: '#4c9f38' },
50
+ { tag: 'Financiación de la sanidad', size: 25, value: 1, color: '#4c9f38' },
51
+ { tag: 'Financiación de la sanidad', size: 25, value: 1, color: '#4c9f38' },
52
+ ],
53
+ config: {
54
+ key: 'tag',
55
+ size: 'size',
56
+ value: 'value',
57
+ angle: [0],
58
+ color: { key: 'color' },
59
+ fontFamily: 'Rubik',
60
+ tooltip: { suffix: 'aparición', suffixPlural: 'apariciones' },
61
+ },
62
+ height: 400,
63
+ },
64
+ };
@@ -0,0 +1,168 @@
1
+ import TipiDeputy from '@/components/Deputy/Deputy.vue';
2
+ import Deputy from '../components/Deputy/Deputy.vue';
3
+
4
+ // More on how to set up stories at: https://storybook.js.org/docs/vue/writing-stories/introduction
5
+ export default {
6
+ title: 'Example/TipiDeputy',
7
+ component: TipiDeputy,
8
+ tags: ['autodocs'],
9
+
10
+ argTypes: {
11
+ deputy: {
12
+ type: 'object',
13
+ },
14
+ parliamentaryGroup: {
15
+ type: 'object',
16
+ },
17
+ },
18
+ };
19
+
20
+ // More on writing stories with args: https://storybook.js.org/docs/vue/writing-stories/args
21
+ export const Primary = {
22
+ args: {
23
+ deputy: {
24
+ name: 'Sánchez Pérez-Castejón, Pedro',
25
+ url: 'https://www.congreso.es/es/busqueda-de-diputados?p_p_id=diputadomodule&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&_diputadomodule_mostrarFicha=true&codParlamentario=189&idLegislatura=XV&mostrarAgenda=false',
26
+ party_logo:
27
+ 'data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEAYABgAAD/4QB4RXhpZgAATU0AKgAAAAgABgExAAIAAAARAAAAVgMBAAUAAAABAAAAaAMDAAEAAAABAAAAAFEQAAEAAAABAQAAAFERAAQAAAABAAAOw1ESAAQAAAABAAAOwwAAAABBZG9iZSBJbWFnZVJlYWR5AAAAAYagAACxj//bAEMAAgEBAgEBAgICAgICAgIDBQMDAwMDBgQEAwUHBgcHBwYHBwgJCwkICAoIBwcKDQoKCwwMDAwHCQ4PDQwOCwwMDP/bAEMBAgICAwMDBgMDBgwIBwgMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDP/AABEIACcAagMBIgACEQEDEQH/xAAfAAABBQEBAQEBAQAAAAAAAAAAAQIDBAUGBwgJCgv/xAC1EAACAQMDAgQDBQUEBAAAAX0BAgMABBEFEiExQQYTUWEHInEUMoGRoQgjQrHBFVLR8CQzYnKCCQoWFxgZGiUmJygpKjQ1Njc4OTpDREVGR0hJSlNUVVZXWFlaY2RlZmdoaWpzdHV2d3h5eoOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4eLj5OXm5+jp6vHy8/T19vf4+fr/xAAfAQADAQEBAQEBAQEBAAAAAAAAAQIDBAUGBwgJCgv/xAC1EQACAQIEBAMEBwUEBAABAncAAQIDEQQ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o9Vb/h/I8bg7xCXC8M09jDmxFWVN0m4qUIypVefmkm1qt4NJ+8lex+dX7X/7Kdj+yX8WLHxV8EvjzonhH4z/AA5+HNpFrmhanMsZ8SabptjHCJCG3xCSSG1g/wBGkUqxSOTKbd58m+KP7V2oftL/ABe/YX+KPi2w03wv4fj1v+z5oocW+l2lzZatbJPPEGOI4fL+yscnC7GXJCZr9PP2lv8AgmR8D/2u/HEPiXx74FtdW16KNIXvoL25sZrmNfurKYJE8zAwAWywAABAGK1viF/wT++DvxR/Z/0f4Xax4F0qTwN4eZX0zTrd5bX7BIN37yOWNlkDsXcu24mQuxcsWOeGrlNZymqbUYvVK7s2mndrptrbfc+8yjxiyKjhcFLMoVa+JgpQqVXClGcKc6VSnKNOcZJ1EpTUoKoouKTipWlp+TfxVu4PGP7Qn7fWveG5Yrnwovhx7eee2Ia3lu21KywwYfKSWhuiD3+Y19a/8EK9e8ReH/g34Yt/Evxr8G69oGsaKIPDngmKW1i1LRpRNI7hgMSyHYrnBJOD7V9ReAv+CcHwW+GXwD8Q/DLRfBFtZ+DvFpB1m1W9ujPqRG0jzLkyefgFRgBwFy2ANxzgfBf/AIJH/s9fs9fE7SfGXg/4ff2P4k0ORpbG8/tzUrjyGZGjJ2S3DI2Vdh8ynr608PleIpV41rp731a3k3pprp36mfEnixw3m2Q4nJHCrHWn7KTpUZuSpUIUoublUvSlKUbylT5moOybu0fR9FFFfRH81BRRRQAUUUUAFee/tb6fNq37KfxNtbdPMnufCeqxRrkDczWcoAyeBye9FFZ1VeDXkejk83DH0JrpOP8A6Ujf+DtpJYfCPwrBKuyWHR7SN1yDtYQoCOPeujooqoK0UjnxknKvOT6t/mFFFFUcwUUUUAFFFFAH/9k=',
28
+ public_position: [],
29
+ image: 'https://www.congreso.es/docu/imgweb/diputados/189_15.jpg',
30
+ bio: [
31
+ 'Casado y padre Doctor en Economía por la Universidad Camilo José Cela',
32
+ 'Máster en Economía de la UE por la Universidad Libre de Bruselas',
33
+ 'Diplomado en Estudios Avanzados en Integración Económica y Monetaria Europea por el Instituto Universitario Ortega y Gasset',
34
+ 'Profesor de Economía en la Universidad Camilo José Cela',
35
+ 'Asesor en el Parlamento Europeo y miembro del Gabinete del Alto Representante de Naciones Unidas en Bosnia Herzegovina',
36
+ 'Presidente del Gobierno desde junio de 2018',
37
+ 'Concejal del Ayuntamiento de Madrid entre 2004 y 2009',
38
+ 'Afiliado al PSOE desde 1993',
39
+ 'Secretario General del PSOE entre 2014 y 2016 y desde 2017',
40
+ ],
41
+ email: 'pedro.sanchez@congreso.es',
42
+ party_name: 'PSOE',
43
+ footprint_by_topics: [
44
+ { score: 0, name: 'Autismo' },
45
+ { score: 0, name: 'ODS 1 Fin de la pobreza' },
46
+ { score: 0, name: 'ODS 10 Reducción de las desigualdades' },
47
+ { score: 0, name: 'ODS 11 Ciudades y comunidades sostenibles' },
48
+ { score: 0, name: 'ODS 12 Producción y consumo responsables' },
49
+ { score: 0, name: 'ODS 13 Acción por el clima' },
50
+ { score: 0, name: 'ODS 14 Vida submarina' },
51
+ { score: 0, name: 'ODS 15 Vida de ecosistemas terrestres' },
52
+ { score: 0, name: 'ODS 16 Paz, justicia e instituciones sólidas' },
53
+ { score: 0, name: 'ODS 17 Alianzas para lograr los objetivos' },
54
+ { score: 0, name: 'ODS 2 Hambre cero' },
55
+ { score: 0, name: 'ODS 3 Salud y bienestar' },
56
+ { score: 0, name: 'ODS 4 Educación de calidad' },
57
+ { score: 0, name: 'ODS 5 Igualdad de género' },
58
+ { score: 0, name: 'ODS 6 Agua limpia y saneamiento' },
59
+ { score: 0, name: 'ODS 7 Energía asequible y no contaminante' },
60
+ { score: 0, name: 'ODS 8 Trabajo decente y crecimiento económico' },
61
+ { score: 0, name: 'ODS 9 Industria, innovación e infraestructura' },
62
+ { score: 0, name: 'Calidad democrática' },
63
+ { score: 0, name: 'Cambio climático y política energética' },
64
+ { score: 0, name: 'Colectivo LGTBI' },
65
+ { score: 0, name: 'Comercio internacional' },
66
+ { score: 0, name: 'Conductas adictivas' },
67
+ { score: 0, name: 'Conflictos internacionales y construcción de paz' },
68
+ { score: 0, name: 'Cooperación al desarrollo' },
69
+ { score: 0, name: 'Democracia y derechos en la era digital' },
70
+ { score: 0, name: 'Dependencia' },
71
+ { score: 0, name: 'Educación' },
72
+ { score: 0, name: 'Empleo' },
73
+ { score: 0, name: 'España vaciada' },
74
+ { score: 0, name: 'Fiscalidad' },
75
+ { score: 0, name: 'Igualdad de género' },
76
+ { score: 0, name: 'Infancia' },
77
+ { score: 0, name: 'Migraciones' },
78
+ { score: 0, name: 'Personas con discapacidad' },
79
+ { score: 0, name: 'Personas mayores' },
80
+ { score: 0, name: 'Personas sin hogar' },
81
+ { score: 0, name: 'Población gitana' },
82
+ { score: 0, name: 'Población reclusa' },
83
+ { score: 0, name: 'Protección social' },
84
+ { score: 0, name: 'Sanidad' },
85
+ { score: 0, name: 'Vivienda' },
86
+ ],
87
+ legislatures: ['IX', 'X', 'XI', 'XII', 'XIII', 'XIV', 'XV'],
88
+ twitter: 'https://twitter.com/sanchezcastejon',
89
+ footprint: 0,
90
+ constituency: 'Madrid',
91
+ parliamentarygroup: 'GS',
92
+ birthdate: '1972-02-29T00:00:00+00:00',
93
+ facebook: 'https://www.facebook.com/pedro.sanchezperezcastejon/',
94
+ web: 'https://sanchezcastejon.es',
95
+ id: 'sanchez-perez-castejon-pedro',
96
+ age: 52,
97
+ gender: 'Hombre',
98
+ active: true,
99
+ extra: {
100
+ declarations: {
101
+ 'Declaración de Actividades':
102
+ 'https://www.congreso.es/docinte/registro_intereses_diputado_189.pdf',
103
+ 'Declaración de Bienes y Rentas (09/08/2023)':
104
+ 'https://www.congreso.es/docbienes/leg15/000177/000177_000_e_0000756_20230809.pdf',
105
+ 'Declaración de Intereses Económicos (09/08/2023)':
106
+ 'https://www.congreso.es/docacteco/leg15/000178/000178_001_e_0000757_20230809.pdf',
107
+ },
108
+ },
109
+ },
110
+ parliamentaryGroup: {
111
+ id: 'gs',
112
+ name: 'Grupo Parlamentario Socialista',
113
+ footprint: 6786,
114
+ composition: {
115
+ gender: { female: 61, male: 59 },
116
+ ages: { between35and49: 50, under35: 9, between50and65: 55, over65: 6 },
117
+ deputies: 120,
118
+ },
119
+ parties: ['PSOE'],
120
+ shortname: 'GS',
121
+ footprint_by_topics: [
122
+ { score: 1660, name: 'Infancia' },
123
+ { score: 1570, name: 'ODS 8 Trabajo decente y crecimiento económico' },
124
+ { score: 1560, name: 'ODS 10 Reducción de las desigualdades' },
125
+ { score: 1360, name: 'Igualdad de género' },
126
+ { score: 1200, name: 'ODS 16 Paz, justicia e instituciones sólidas' },
127
+ { score: 1120, name: 'Empleo' },
128
+ { score: 1060, name: 'ODS 5 Igualdad de género' },
129
+ { score: 1060, name: 'Educación' },
130
+ { score: 1050, name: 'ODS 3 Salud y bienestar' },
131
+ { score: 1000, name: 'Sanidad' },
132
+ { score: 980, name: 'ODS 13 Acción por el clima' },
133
+ { score: 950, name: 'ODS 11 Ciudades y comunidades sostenibles' },
134
+ { score: 880, name: 'ODS 4 Educación de calidad' },
135
+ { score: 860, name: 'Cambio climático y política energética' },
136
+ { score: 820, name: 'ODS 9 Industria, innovación e infraestructura' },
137
+ { score: 820, name: 'España vaciada' },
138
+ { score: 660, name: 'ODS 1 Fin de la pobreza' },
139
+ { score: 640, name: 'Personas con discapacidad' },
140
+ { score: 580, name: 'Protección social' },
141
+ { score: 560, name: 'Personas mayores' },
142
+ { score: 500, name: 'Conflictos internacionales y construcción de paz' },
143
+ { score: 490, name: 'Vivienda' },
144
+ { score: 460, name: 'Calidad democrática' },
145
+ { score: 440, name: 'Migraciones' },
146
+ { score: 410, name: 'Cooperación al desarrollo' },
147
+ { score: 400, name: 'ODS 7 Energía asequible y no contaminante' },
148
+ { score: 360, name: 'Democracia y derechos en la era digital' },
149
+ { score: 280, name: 'ODS 14 Vida submarina' },
150
+ { score: 280, name: 'ODS 2 Hambre cero' },
151
+ { score: 280, name: 'Colectivo LGTBI' },
152
+ { score: 280, name: 'Conductas adictivas' },
153
+ { score: 270, name: 'Personas sin hogar' },
154
+ { score: 260, name: 'Población reclusa' },
155
+ { score: 240, name: 'Dependencia' },
156
+ { score: 220, name: 'Población gitana' },
157
+ { score: 200, name: 'ODS 17 Alianzas para lograr los objetivos' },
158
+ { score: 180, name: 'ODS 12 Producción y consumo responsables' },
159
+ { score: 140, name: 'ODS 6 Agua limpia y saneamiento' },
160
+ { score: 120, name: 'Comercio internacional' },
161
+ { score: 100, name: 'ODS 15 Vida de ecosistemas terrestres' },
162
+ { score: 0, name: 'Autismo' },
163
+ { score: 0, name: 'Fiscalidad' },
164
+ ],
165
+ color: '#e30613',
166
+ },
167
+ },
168
+ };
@@ -0,0 +1,26 @@
1
+ import TipiHeader from '@/components/Header/Header.vue';
2
+
3
+ // More on how to set up stories at: https://storybook.js.org/docs/vue/writing-stories/introduction
4
+ export default {
5
+ title: 'Example/TipiHeader',
6
+ component: TipiHeader,
7
+ tags: ['autodocs'],
8
+
9
+ argTypes: {
10
+ title: {
11
+ type: 'text',
12
+ },
13
+ subtitle: {
14
+ type: 'text',
15
+ },
16
+ },
17
+ };
18
+
19
+ // More on writing stories with args: https://storybook.js.org/docs/vue/writing-stories/args
20
+ export const Primary = {
21
+ args: {
22
+ title: 'Buscar',
23
+ subtitle:
24
+ 'Bucea en la actividad parlamentaria relacionada con los ODS con las múltiples opciones que te ofrece el buscador de Parlamento 2030',
25
+ },
26
+ };
@@ -0,0 +1,25 @@
1
+ import TipiIcon from '@/components/Icon/Icon.vue';
2
+
3
+ // More on how to set up stories at: https://storybook.js.org/docs/vue/writing-stories/introduction
4
+ export default {
5
+ title: 'Example/TipiIcon',
6
+ component: TipiIcon,
7
+ tags: ['autodocs'],
8
+
9
+ argTypes: {
10
+ icon: {
11
+ type: 'text',
12
+ },
13
+ icon: {
14
+ type: 'text',
15
+ },
16
+ },
17
+ };
18
+
19
+ // More on writing stories with args: https://storybook.js.org/docs/vue/writing-stories/args
20
+ export const Primary = {
21
+ args: {
22
+ icon: 'close',
23
+ color: '#dbdbdb',
24
+ },
25
+ };
@@ -0,0 +1,58 @@
1
+ import { vueRouter } from 'storybook-vue3-router';
2
+ import TipiInitiativeCard from '@/components/InitiativeCard/InitiativeCard.vue';
3
+ import { initiative, topicsStyles } from './mocks';
4
+
5
+ const customRoutes = [
6
+ {
7
+ path: '/',
8
+ name: 'home',
9
+ component: TipiInitiativeCard,
10
+ },
11
+ {
12
+ path: '/initiative/:id',
13
+ name: 'initiative',
14
+ params: { id: '161-000792' },
15
+ component: TipiInitiativeCard,
16
+ },
17
+ ];
18
+
19
+ // More on how to set up stories at: https://storybook.js.org/docs/vue/writing-stories/introduction
20
+ export default {
21
+ title: 'Example/TipiInitiativeCard',
22
+ component: TipiInitiativeCard,
23
+ decorators: [vueRouter(customRoutes)],
24
+ tags: ['autodocs'],
25
+
26
+ argTypes: {
27
+ initiative: {
28
+ type: 'object',
29
+ },
30
+ topicsStyles: {
31
+ type: 'object',
32
+ },
33
+ extendedLayout: {
34
+ type: 'boolean',
35
+ },
36
+ metaDeputies: {
37
+ type: 'string',
38
+ },
39
+ metaGroupOthers: {
40
+ type: 'string',
41
+ },
42
+ metaColors: {
43
+ type: 'object',
44
+ },
45
+ },
46
+ };
47
+
48
+ // More on writing stories with args: https://storybook.js.org/docs/vue/writing-stories/args
49
+ export const Primary = {
50
+ args: {
51
+ initiative,
52
+ topicsStyles,
53
+ extendedLayout: true,
54
+ metaDeputies: 'Diputada/o',
55
+ metaGroupOthers: 'Autor',
56
+ metaColors: undefined,
57
+ },
58
+ };
@@ -0,0 +1,37 @@
1
+ import TipiInitiativeMeta from '@/components/InitiativeMeta/InitiativeMeta.vue';
2
+
3
+ // More on how to set up stories at: https://storybook.js.org/docs/vue/writing-stories/introduction
4
+ export default {
5
+ title: 'Example/TipiInitiativeMeta',
6
+ component: TipiInitiativeMeta,
7
+ tags: ['autodocs'],
8
+
9
+ argTypes: {
10
+ initiative: {
11
+ type: 'object',
12
+ },
13
+ },
14
+ };
15
+
16
+ // More on writing stories with args: https://storybook.js.org/docs/vue/writing-stories/args
17
+ export const Primary = {
18
+ args: {
19
+ initiative: {
20
+ id: '130-000096',
21
+ created: '2023-05-12T00:00:00+00:00',
22
+ authors: ['Gobierno'],
23
+ reference: '130/000096',
24
+ updated: '2023-07-06T00:00:00+00:00',
25
+ oldid: 'bae7d6e4a95882e8b862ab8c689a3d7298438210',
26
+ url: 'https://www.congreso.es/es/busqueda-de-iniciativas?p_p_id=iniciativas&p_p_lifecycle=0&p_p_state=normal&p_p_mode=view&_iniciativas_mode=mostrarDetalle&_iniciativas_legislatura=XIV&_iniciativas_id=130%2F000096',
27
+ tagged: [],
28
+ initiative_type_alt: 'Real Decreto-Ley',
29
+ deputies: [],
30
+ title:
31
+ 'Real Decreto-ley 4/2023, de 11 de mayo, por el que se adoptan medidas urgentes en materia agraria y de aguas en respuesta a la sequía y al agravamiento de las condiciones del sector primario derivado del conflicto bélico en Ucrania y de las condiciones climatológicas, así como de promoción del uso del transporte público colectivo terrestre por parte de los jóvenes y prevención de riesgos laborales en episodios de elevadas temperaturas.',
32
+ place: '',
33
+ initiative_type: '130',
34
+ status: 'Convalidada',
35
+ },
36
+ },
37
+ };
@@ -0,0 +1,25 @@
1
+ import TipiLoader from '@/components/Loader/Loader.vue';
2
+
3
+ // More on how to set up stories at: https://storybook.js.org/docs/vue/writing-stories/introduction
4
+ export default {
5
+ title: 'Example/TipiLoader',
6
+ component: TipiLoader,
7
+ tags: ['autodocs'],
8
+
9
+ argTypes: {
10
+ title: {
11
+ type: 'text',
12
+ },
13
+ subtitle: {
14
+ type: 'text',
15
+ },
16
+ },
17
+ };
18
+
19
+ // More on writing stories with args: https://storybook.js.org/docs/vue/writing-stories/args
20
+ export const Primary = {
21
+ args: {
22
+ title: 'Cargando datos',
23
+ subtitle: 'Puede llevar unos segundos',
24
+ },
25
+ };
@@ -0,0 +1,49 @@
1
+ import TipiMessage from '@/components/Message/Message.vue';
2
+
3
+ // More on how to set up stories at: https://storybook.js.org/docs/vue/writing-stories/introduction
4
+ export default {
5
+ title: 'Example/TipiMessage',
6
+ component: TipiMessage,
7
+ tags: ['autodocs'],
8
+ render: (args) => ({
9
+ // Components used in your story `template` are defined in the `components` object
10
+ components: {
11
+ TipiMessage,
12
+ },
13
+ // The story's `args` need to be mapped into the template through the `setup()` method
14
+ setup() {
15
+ // Story args can be spread into the returned object
16
+ return {
17
+ ...args,
18
+ };
19
+ },
20
+ // Then, the spread values can be accessed directly in the template
21
+ template: `
22
+ <TipiMessage :type="type" :icon="icon">
23
+ <template #default>
24
+ <p>This is the default slot content</p>
25
+ </template>
26
+ </TipiMessage>
27
+ `,
28
+ }),
29
+
30
+ argTypes: {
31
+ type: {
32
+ control: {
33
+ type: 'select',
34
+ },
35
+ options: ['success', 'error', 'info'],
36
+ },
37
+ icon: {
38
+ control: 'boolean',
39
+ },
40
+ },
41
+ };
42
+
43
+ // More on writing stories with args: https://storybook.js.org/docs/vue/writing-stories/args
44
+ export const Primary = {
45
+ args: {
46
+ type: 'success',
47
+ icon: true,
48
+ },
49
+ };
@@ -0,0 +1,85 @@
1
+ import { vueRouter } from 'storybook-vue3-router';
2
+ import TipiNavbar from '@/components/Navbar/Navbar.vue';
3
+
4
+ const customRoutes = [
5
+ {
6
+ path: '/',
7
+ name: 'home',
8
+ component: TipiNavbar,
9
+ },
10
+ {
11
+ path: '/alerts',
12
+ name: 'alerts',
13
+ component: TipiNavbar,
14
+ },
15
+ {
16
+ path: '/about',
17
+ name: 'about',
18
+ component: TipiNavbar,
19
+ },
20
+ {
21
+ path: '/dashboard',
22
+ name: 'dashboard',
23
+ component: TipiNavbar,
24
+ },
25
+ {
26
+ path: '/deputies',
27
+ name: 'deputies',
28
+ component: TipiNavbar,
29
+ },
30
+ {
31
+ path: '/ods',
32
+ name: 'ods',
33
+ component: TipiNavbar,
34
+ },
35
+ {
36
+ path: '/search',
37
+ name: 'search',
38
+ component: TipiNavbar,
39
+ },
40
+ ];
41
+
42
+ // More on how to set up stories at: https://storybook.js.org/docs/vue/writing-stories/introduction
43
+ export default {
44
+ title: 'Example/TipiNavbar',
45
+ component: TipiNavbar,
46
+ decorators: [vueRouter(customRoutes)],
47
+ tags: ['autodocs'],
48
+
49
+ argTypes: {
50
+ links: {
51
+ type: 'array',
52
+ },
53
+ disclaimerLink: {
54
+ type: 'object',
55
+ },
56
+ preImage: {
57
+ type: 'string',
58
+ },
59
+ logo: {
60
+ type: 'string',
61
+ },
62
+ },
63
+ };
64
+
65
+ // More on writing stories with args: https://storybook.js.org/docs/vue/writing-stories/args
66
+ export const Primary = {
67
+ args: {
68
+ links: [
69
+ { route: 'search', name: 'Buscar', condition: true },
70
+ { route: 'ods', name: 'ODS', condition: true },
71
+ { route: 'deputies', name: 'Diputados', condition: true },
72
+ { route: 'dashboard', name: 'Métricas', condition: true },
73
+ { route: 'scanner', name: 'Escáner', condition: true, icon: 'open-blank', external: true },
74
+ { route: 'alerts', name: 'Alertas', condition: false },
75
+ { route: 'about', name: 'Acerca', condition: true },
76
+ ],
77
+ disclaimerLink: {
78
+ route: 'about-en',
79
+ name: '<img src="https://www.parlamento2030.es/img/uk.svg"> Learn more about this project in English',
80
+ external: true,
81
+ },
82
+ preImage: 'https://www.parlamento2030.es/img/multicolor.jpg',
83
+ logo: 'https://www.parlamento2030.es/img/logo.png',
84
+ },
85
+ };