@tekkare/romulus 0.1.283 → 0.1.284

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/dist/module.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "compatibility": {
5
5
  "nuxt": ">=3.16.0"
6
6
  },
7
- "version": "0.1.282",
7
+ "version": "0.1.283",
8
8
  "builder": {
9
9
  "@nuxt/module-builder": "0.8.4",
10
10
  "unbuild": "2.0.0"
@@ -50,25 +50,28 @@
50
50
  </div>
51
51
  </div>
52
52
 
53
- <div v-for="block in textBlocks" :key="block.key" class="oip_list gap-4">
54
- <p class="oip_label">{{ block.label }}</p>
55
- <p :id="`${blockId}-${block.key}`" class="am_text" :class="{ 'am_text--clamped': !expanded[block.key] }">
56
- <template v-for="(seg, si) in block.segments" :key="si"><mark v-if="seg.hit">{{ seg.text }}</mark><template v-else>{{ seg.text }}</template></template>
57
- </p>
58
- <button
59
- v-if="block.long"
60
- type="button"
61
- class="am_toggle"
62
- :aria-expanded="!!expanded[block.key]"
63
- :aria-controls="`${blockId}-${block.key}`"
64
- @click="expanded[block.key] = !expanded[block.key]"
65
- >
66
- {{
67
- expanded[block.key]
68
- ? t("oipDrugs.heart.associations.nationalAssembly.amendments.card.showLess")
69
- : t("oipDrugs.heart.associations.nationalAssembly.amendments.card.showMore")
70
- }}
71
- </button>
53
+ <!-- Dispositif et expose : un bloc a part, aere, pour ne pas se lire d'un trait. -->
54
+ <div v-if="textBlocks.length > 0" class="am_texts">
55
+ <div v-for="block in textBlocks" :key="block.key" class="oip_list gap-4">
56
+ <p class="oip_label">{{ block.label }}</p>
57
+ <p :id="`${blockId}-${block.key}`" class="am_text" :class="{ 'am_text--clamped': !expanded[block.key] }">
58
+ <template v-for="(seg, si) in block.segments" :key="si"><mark v-if="seg.hit">{{ seg.text }}</mark><template v-else>{{ seg.text }}</template></template>
59
+ </p>
60
+ <button
61
+ v-if="block.long"
62
+ type="button"
63
+ class="am_toggle"
64
+ :aria-expanded="!!expanded[block.key]"
65
+ :aria-controls="`${blockId}-${block.key}`"
66
+ @click="expanded[block.key] = !expanded[block.key]"
67
+ >
68
+ {{
69
+ expanded[block.key]
70
+ ? t("oipDrugs.heart.associations.nationalAssembly.amendments.card.showLess")
71
+ : t("oipDrugs.heart.associations.nationalAssembly.amendments.card.showMore")
72
+ }}
73
+ </button>
74
+ </div>
72
75
  </div>
73
76
 
74
77
  <p v-if="amendment[AMENDMENT_FIELDS.irrecevability]" class="am_irrecevable">
@@ -76,6 +79,9 @@
76
79
  </p>
77
80
 
78
81
  <div v-if="amendment[AMENDMENT_FIELDS.url]" class="oip_row gap-8 wrap">
82
+ <RmButton variant="secondary" prefix-icon="FilePdf" @click="emit('read', amendment)">
83
+ {{ t("oipDrugs.heart.associations.nationalAssembly.amendments.card.pdf") }}
84
+ </RmButton>
79
85
  <RmButton
80
86
  v-if="amendmentDiscussed(amendment)"
81
87
  variant="secondary"
@@ -84,9 +90,6 @@
84
90
  >
85
91
  {{ t("oipDrugs.heart.associations.nationalAssembly.amendments.card.report") }}
86
92
  </RmButton>
87
- <RmButton variant="secondary" prefix-icon="FilePdf" @click="emit('read', amendment)">
88
- {{ t("oipDrugs.heart.associations.nationalAssembly.amendments.card.pdf") }}
89
- </RmButton>
90
93
  <RmButton
91
94
  variant="tertiary"
92
95
  ghost
@@ -260,6 +263,13 @@ function openLink(url: string) {
260
263
  outline-offset: 2px;
261
264
  }
262
265
 
266
+ .am_texts {
267
+ display: flex;
268
+ flex-direction: column;
269
+ gap: var(--space-24);
270
+ margin-block: var(--space-8);
271
+ }
272
+
263
273
  .am_text {
264
274
  margin: 0;
265
275
  color: var(--text-primary);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tekkare/romulus",
3
- "version": "0.1.283",
3
+ "version": "0.1.284",
4
4
  "description": "Romulus Design System - Nuxt module by Tekkare",
5
5
  "license": "MIT",
6
6
  "type": "module",