@tekkare/romulus 0.1.287 → 0.1.288
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 +1 -1
- package/layer/app/components/oip-drugs/heart/associations/NationalAssemblyAmendmentCard.vue +9 -0
- package/layer/app/components/oip-drugs/heart/associations/NationalAssemblyCard.vue +9 -0
- package/layer/app/oip-drugs/utils/latestDate.ts +4 -2
- package/layer/app/oip-drugs/utils/sourceUuids.ts +1 -0
- package/package.json +1 -1
package/dist/module.json
CHANGED
|
@@ -118,6 +118,14 @@
|
|
|
118
118
|
{{ t("oipDrugs.heart.associations.nationalAssembly.amendments.card.seeOnAn") }}
|
|
119
119
|
</RmButton>
|
|
120
120
|
</div>
|
|
121
|
+
|
|
122
|
+
<template #footer>
|
|
123
|
+
<OipDrugsHeartElasticSourceContainerElastic
|
|
124
|
+
:uuid="HEART_SOURCE_UUIDS.NATIONAL_ASSEMBLY"
|
|
125
|
+
:last-label="t('oipDrugs.heart.sources.lastAmendment')"
|
|
126
|
+
:last-date="amendment[AMENDMENT_FIELDS.filingDate]"
|
|
127
|
+
/>
|
|
128
|
+
</template>
|
|
121
129
|
</RmResultCard>
|
|
122
130
|
</template>
|
|
123
131
|
|
|
@@ -125,6 +133,7 @@
|
|
|
125
133
|
import { nextTick, onBeforeUnmount, useId, watch } from "vue";
|
|
126
134
|
import { AMENDMENT_FIELDS, amendmentDiscussed } from "../../../../oip-drugs/utils/associationFields";
|
|
127
135
|
import { highlightSegments } from "../../../../oip-drugs/utils/esHighlight";
|
|
136
|
+
import { HEART_SOURCE_UUIDS } from "../../../../oip-drugs/utils/sourceUuids";
|
|
128
137
|
import { drugsAssociationPath } from "../../../../oip-drugs/kinds";
|
|
129
138
|
|
|
130
139
|
const props = withDefaults(
|
|
@@ -147,11 +147,20 @@
|
|
|
147
147
|
/>
|
|
148
148
|
</div>
|
|
149
149
|
</RmDrawer>
|
|
150
|
+
|
|
151
|
+
<template #footer>
|
|
152
|
+
<OipDrugsHeartElasticSourceContainerElastic
|
|
153
|
+
:uuid="HEART_SOURCE_UUIDS.NATIONAL_ASSEMBLY"
|
|
154
|
+
:last-label="t('oipDrugs.heart.sources.lastSession')"
|
|
155
|
+
:last-date="report[NATIONAL_ASSEMBLY_FIELDS.sessionDate]"
|
|
156
|
+
/>
|
|
157
|
+
</template>
|
|
150
158
|
</RmResultCard>
|
|
151
159
|
</template>
|
|
152
160
|
|
|
153
161
|
<script lang="ts" setup>
|
|
154
162
|
import { NATIONAL_ASSEMBLY_FIELDS } from "../../../../oip-drugs/utils/associationFields";
|
|
163
|
+
import { HEART_SOURCE_UUIDS } from "../../../../oip-drugs/utils/sourceUuids";
|
|
155
164
|
import { highlightSegments } from "../../../../oip-drugs/utils/esHighlight";
|
|
156
165
|
import { drugsAssociationPath } from "../../../../oip-drugs/kinds";
|
|
157
166
|
|
|
@@ -21,9 +21,11 @@ export function heartLatestDate(values: unknown): string | null {
|
|
|
21
21
|
if (typeof value !== "string" && typeof value !== "number") continue;
|
|
22
22
|
const raw = String(value).trim();
|
|
23
23
|
if (!raw || raw === "-" || raw === "/" || raw.toUpperCase() === "NA") continue;
|
|
24
|
-
|
|
24
|
+
// Un `date` Elasticsearch revient parfois en millisecondes : lu comme
|
|
25
|
+
// chaine (« 1764374400000 »), il donnerait une date invalide.
|
|
26
|
+
const time = typeof value === "number" ? value : new Date(raw).getTime();
|
|
25
27
|
if (Number.isNaN(time) || time <= bestTime) continue;
|
|
26
|
-
best = raw;
|
|
28
|
+
best = typeof value === "number" ? new Date(value).toISOString() : raw;
|
|
27
29
|
bestTime = time;
|
|
28
30
|
}
|
|
29
31
|
|
|
@@ -15,6 +15,7 @@ export const HEART_SOURCE_UUIDS = {
|
|
|
15
15
|
PNDS: 'cb14de5b-d7fb-454d-9e07-bcda8ccd6a6b',
|
|
16
16
|
ASSOCIATIONS: '7c192cff-c2c9-49c5-a02a-241c3f86dbe5',
|
|
17
17
|
ASSOCIATIONS_ANSM: '85eab016-9010-4882-b2f2-2f807ad3bc60',
|
|
18
|
+
NATIONAL_ASSEMBLY: '8a753a4e-b63e-42ec-812e-ae8108879994',
|
|
18
19
|
PUT: '0fa6d577-3fa9-48d5-9715-8ed0726496d1',
|
|
19
20
|
ACTUALITE_JO: '1018988c-4ed2-4aee-84a9-17be83f663de',
|
|
20
21
|
PRICE_TRACKER: '2625b233-7a1f-487b-a316-5962cd38c390',
|