@tekkare/romulus 0.1.215 → 0.1.216
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
|
@@ -109,6 +109,12 @@ export interface RmSavedViewMenuItem {
|
|
|
109
109
|
danger?: boolean
|
|
110
110
|
/** Demande confirmation dans la carte avant d'emettre l'action. */
|
|
111
111
|
confirm?: boolean
|
|
112
|
+
/**
|
|
113
|
+
* Question posee a la place de « Supprimer definitivement « titre » ? » :
|
|
114
|
+
* quand l'action a des consequences au-dela de la carte (une vue partagee,
|
|
115
|
+
* un template offert a des clients), c'est a l'appelant de les dire.
|
|
116
|
+
*/
|
|
117
|
+
confirmText?: string
|
|
112
118
|
}
|
|
113
119
|
|
|
114
120
|
const props = withDefaults(
|
|
@@ -405,7 +411,8 @@ function onCardClick() {
|
|
|
405
411
|
<div v-if="pending" class="rm-view__confirm" @click.stop>
|
|
406
412
|
<span>
|
|
407
413
|
<RmIcon name="WarningCircle" :size="16" />
|
|
408
|
-
|
|
414
|
+
<template v-if="pending.confirmText">{{ pending.confirmText }}</template>
|
|
415
|
+
<template v-else>{{ T.confirmPrefix }} « {{ view.title }} » ?</template>
|
|
409
416
|
</span>
|
|
410
417
|
<div class="rm-view__confirm-actions">
|
|
411
418
|
<RmButton variant="secondary" size="sm" @click="pending = null">
|
|
@@ -28,6 +28,8 @@ export interface RmShareMember {
|
|
|
28
28
|
/** Nom affiche. A defaut, l'appelant y met l'adresse. */
|
|
29
29
|
name: string
|
|
30
30
|
email?: string
|
|
31
|
+
/** Un mot apres l'adresse : d'ou vient la personne quand ce n'est pas l'espace. */
|
|
32
|
+
hint?: string
|
|
31
33
|
}
|
|
32
34
|
|
|
33
35
|
/** Un espace de travail a qui un modele peut etre offert. */
|
|
@@ -96,6 +98,13 @@ const props = withDefaults(
|
|
|
96
98
|
|
|
97
99
|
const emit = defineEmits<{
|
|
98
100
|
'update:modelValue': [value: boolean]
|
|
101
|
+
/**
|
|
102
|
+
* Ce que l'utilisateur tape dans « Chercher une personne ». Le dialogue
|
|
103
|
+
* filtre `members` lui-meme ; l'appelant qui sait chercher plus loin que
|
|
104
|
+
* la liste chargee (toute la plateforme, pour une administration) complete
|
|
105
|
+
* `members` en retour.
|
|
106
|
+
*/
|
|
107
|
+
search: [query: string]
|
|
99
108
|
save: [
|
|
100
109
|
value: {
|
|
101
110
|
visibility: 'private' | 'workspace'
|
|
@@ -177,6 +186,8 @@ watch(
|
|
|
177
186
|
{ immediate: true },
|
|
178
187
|
)
|
|
179
188
|
|
|
189
|
+
watch(search, value => emit('search', value.trim()))
|
|
190
|
+
|
|
180
191
|
const matches = computed(() => {
|
|
181
192
|
const q = search.value.trim().toLowerCase()
|
|
182
193
|
if (!q) return props.members
|
|
@@ -322,7 +333,7 @@ const scopes = computed<Array<{ key: RmShareScope; icon: string; label: string;
|
|
|
322
333
|
<RmCheckbox
|
|
323
334
|
:model-value="picked.includes(member.userId)"
|
|
324
335
|
:label="member.name"
|
|
325
|
-
:description="member.email"
|
|
336
|
+
:description="member.hint ? [member.email, member.hint].filter(Boolean).join(' · ') : member.email"
|
|
326
337
|
@update:model-value="toggle(member.userId)"
|
|
327
338
|
/>
|
|
328
339
|
</li>
|