@tekkare/romulus 0.1.245 → 0.1.246
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
|
@@ -566,6 +566,7 @@ const tekkareLogo = tekkareLogoRaw.replaceAll('fill="#2100AD"', 'fill="currentCo
|
|
|
566
566
|
:app-key="appKey"
|
|
567
567
|
:super-admin="superAdmin"
|
|
568
568
|
v-bind="panelProps[openKey as OipRailTileKey] ?? {}"
|
|
569
|
+
@close="tool = null"
|
|
569
570
|
/>
|
|
570
571
|
<slot v-else name="tool" :active="openKey" />
|
|
571
572
|
<!-- Complement de l'app sous le panneau ouvert, sans le remplacer. -->
|
|
@@ -26,6 +26,9 @@ import { sameViewPage } from "../../../utils/viewPages";
|
|
|
26
26
|
|
|
27
27
|
const { locale } = useI18n();
|
|
28
28
|
const route = useRoute();
|
|
29
|
+
// Une vue activee referme le panneau : l'ecran filtre redevient visible.
|
|
30
|
+
const emit = defineEmits<{ close: [] }>();
|
|
31
|
+
|
|
29
32
|
const views = useViews();
|
|
30
33
|
const brandSync = useAlertBrandSync();
|
|
31
34
|
const alerts = useAlerts();
|
|
@@ -376,6 +379,11 @@ function apply(id: string) {
|
|
|
376
379
|
}
|
|
377
380
|
|
|
378
381
|
|
|
382
|
+
function activate(id: string) {
|
|
383
|
+
apply(id);
|
|
384
|
+
emit("close");
|
|
385
|
+
}
|
|
386
|
+
|
|
379
387
|
/**
|
|
380
388
|
* « Nouvelle vue » : meme geste que celui de la pastille. L'ecran repart
|
|
381
389
|
* vierge (cf. `resetAll`), puis la page ouvre son tiroir de selection quand
|
|
@@ -681,7 +689,7 @@ async function confirmEdit() {
|
|
|
681
689
|
:lang="locale === 'en' ? 'en' : 'fr'"
|
|
682
690
|
@save-current="openSave()"
|
|
683
691
|
@reset="startNew"
|
|
684
|
-
@activate="onTemplates ? start($event) :
|
|
692
|
+
@activate="onTemplates ? start($event) : activate($event)"
|
|
685
693
|
@star="star"
|
|
686
694
|
@rename="rename"
|
|
687
695
|
@action="onAction"
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
:creating="creating"
|
|
23
23
|
:all-to="allTo"
|
|
24
24
|
:lang="locale === 'en' ? 'en' : 'fr'"
|
|
25
|
-
@activate="
|
|
25
|
+
@activate="activate"
|
|
26
26
|
@open="emit('open', $event)"
|
|
27
27
|
@pin="emit('pin', $event)"
|
|
28
28
|
@create="onCreate"
|
|
@@ -75,6 +75,8 @@ const emit = defineEmits<{
|
|
|
75
75
|
pin: [projectId: string];
|
|
76
76
|
/** Au montage : l'app restaure le projet actif et charge la liste. */
|
|
77
77
|
mounted: [];
|
|
78
|
+
/** Projet active : le cadre referme le panneau, l'ecran redevient visible. */
|
|
79
|
+
close: [];
|
|
78
80
|
}>();
|
|
79
81
|
|
|
80
82
|
const { locale } = useI18n();
|
|
@@ -90,5 +92,10 @@ async function onCreate(title: string) {
|
|
|
90
92
|
}
|
|
91
93
|
}
|
|
92
94
|
|
|
95
|
+
function activate(id: string) {
|
|
96
|
+
emit("activate", id);
|
|
97
|
+
emit("close");
|
|
98
|
+
}
|
|
99
|
+
|
|
93
100
|
onMounted(() => emit("mounted"));
|
|
94
101
|
</script>
|