@tekkare/romulus 0.1.200 → 0.1.201
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
|
@@ -53,6 +53,7 @@ const emit = defineEmits<{
|
|
|
53
53
|
const FR = {
|
|
54
54
|
view: 'Vue',
|
|
55
55
|
brands: 'Marques',
|
|
56
|
+
project: 'Projet',
|
|
56
57
|
channel: 'Canaux',
|
|
57
58
|
cadence: 'Cadence',
|
|
58
59
|
tracked: 'éléments suivis',
|
|
@@ -112,6 +113,7 @@ const FR = {
|
|
|
112
113
|
const EN = {
|
|
113
114
|
view: 'View',
|
|
114
115
|
brands: 'Brands',
|
|
116
|
+
project: 'Project',
|
|
115
117
|
channel: 'Channels',
|
|
116
118
|
cadence: 'Cadence',
|
|
117
119
|
tracked: 'items tracked',
|
|
@@ -166,6 +168,13 @@ const EN = {
|
|
|
166
168
|
|
|
167
169
|
const T = computed(() => (props.lang === 'en' ? EN : FR))
|
|
168
170
|
|
|
171
|
+
/** Ce que la carte annonce sous le titre, selon le genre de l'alerte. */
|
|
172
|
+
const scope = computed(() => {
|
|
173
|
+
if (props.alert.kind === 'product') return { icon: 'Tag', label: T.value.brands }
|
|
174
|
+
if (props.alert.kind === 'project') return { icon: 'FolderSimple', label: T.value.project }
|
|
175
|
+
return { icon: 'BookmarkSimple', label: T.value.view }
|
|
176
|
+
})
|
|
177
|
+
|
|
169
178
|
/** Nombres ecrits comme on les lit : 19 751, pas 19751. */
|
|
170
179
|
const number = (value: number) =>
|
|
171
180
|
new Intl.NumberFormat(props.lang === 'en' ? 'en-GB' : 'fr-FR').format(value)
|
|
@@ -298,10 +307,10 @@ function pick(item: RmAlertMenuItem) {
|
|
|
298
307
|
</div>
|
|
299
308
|
|
|
300
309
|
<p v-if="alert.viewTitle" class="rm-alert__view">
|
|
301
|
-
<!-- Une alerte de produit ne surveille pas une vue :
|
|
302
|
-
telle ferait chercher une vue qui n'existe pas. -->
|
|
303
|
-
<RmIcon :name="
|
|
304
|
-
{{
|
|
310
|
+
<!-- Une alerte de produit ou de projet ne surveille pas une vue :
|
|
311
|
+
l'annoncer comme telle ferait chercher une vue qui n'existe pas. -->
|
|
312
|
+
<RmIcon :name="scope.icon" :size="13" />
|
|
313
|
+
{{ scope.label }} : {{ alert.viewTitle }}
|
|
305
314
|
<span v-if="alert.shared" class="rm-alert__shared">{{ T.shared }}</span>
|
|
306
315
|
</p>
|
|
307
316
|
|
|
@@ -30,9 +30,16 @@ export interface RmAlertMenuItem {
|
|
|
30
30
|
export interface RmAlert {
|
|
31
31
|
id: string;
|
|
32
32
|
title: string;
|
|
33
|
-
/**
|
|
34
|
-
|
|
35
|
-
|
|
33
|
+
/**
|
|
34
|
+
* Ce que l'alerte surveille : une vue, des marques, ou les documents
|
|
35
|
+
* ranges dans un projet. Le projet ne se cree pas depuis le formulaire
|
|
36
|
+
* (il s'active depuis la page du projet), d'ou un genre a part.
|
|
37
|
+
*/
|
|
38
|
+
kind?: RmAlertKind | 'project';
|
|
39
|
+
/**
|
|
40
|
+
* Nom de la vue surveillee, les marques d'une alerte de produit, ou le
|
|
41
|
+
* titre du projet.
|
|
42
|
+
*/
|
|
36
43
|
viewTitle?: string | null;
|
|
37
44
|
status: RmAlertStatus;
|
|
38
45
|
triggers: RmAlertTrigger[];
|