@7365admin1/layer-common 4.110.0 → 4.110.1
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/CHANGELOG.md +6 -0
- package/components/SiteProviderChange.vue +8 -6
- package/package.json +1 -1
- package/utils/breadcrumb.ts +9 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @iservice365/layer-common
|
|
2
2
|
|
|
3
|
+
## 4.110.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 7876496: Top bar shows the renamed modules ("Occupancy Mgmt", "Task Calendar") instead of the old route names; the Provider changes / Change provider windows wrap long titles and keep the close button inside the window on phones.
|
|
8
|
+
|
|
3
9
|
## 4.110.0
|
|
4
10
|
|
|
5
11
|
### Minor Changes
|
|
@@ -9,9 +9,8 @@
|
|
|
9
9
|
-->
|
|
10
10
|
<v-dialog v-model="changeOpen" max-width="620" persistent>
|
|
11
11
|
<v-card class="screen-modal" data-test="spc-dialog">
|
|
12
|
-
<v-card-title class="
|
|
13
|
-
{{ kind === "owner" ? "Change site owner" : `Change or end ${shownFrom}` }}
|
|
14
|
-
<v-spacer />
|
|
12
|
+
<v-card-title class="spc-head">
|
|
13
|
+
<span class="spc-head__text">{{ kind === "owner" ? "Change site owner" : `Change or end ${shownFrom}` }}</span>
|
|
15
14
|
<v-btn variant="text" icon="mdi-close" class="screen-modal__close" aria-label="Close" :disabled="saving" @click="changeOpen = false" />
|
|
16
15
|
</v-card-title>
|
|
17
16
|
<v-card-text class="screen-modal__body">
|
|
@@ -92,9 +91,8 @@
|
|
|
92
91
|
|
|
93
92
|
<v-dialog v-model="historyOpen" max-width="720">
|
|
94
93
|
<v-card class="screen-modal" data-test="spc-history">
|
|
95
|
-
<v-card-title class="
|
|
96
|
-
Provider changes at {{ siteName || "this site" }}
|
|
97
|
-
<v-spacer />
|
|
94
|
+
<v-card-title class="spc-head">
|
|
95
|
+
<span class="spc-head__text">Provider changes at {{ siteName || "this site" }}</span>
|
|
98
96
|
<v-btn
|
|
99
97
|
v-if="ownerOrgId && isStaff"
|
|
100
98
|
variant="outlined"
|
|
@@ -394,4 +392,8 @@ defineExpose({ openChange, openOwnerChange, openHistory });
|
|
|
394
392
|
.spc-item__title { font-weight: 600; }
|
|
395
393
|
.spc-chip { font-size: 12px; padding: 2px 10px; border-radius: 999px; border: 1px solid currentColor; }
|
|
396
394
|
.spc-chip--failed { color: var(--err, #b00020); }
|
|
395
|
+
|
|
396
|
+
/* Long site / company names wrap; the close button always stays inside the window (phones). */
|
|
397
|
+
.spc-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; white-space: normal; }
|
|
398
|
+
.spc-head__text { flex: 1 1 0; min-width: 0; overflow-wrap: anywhere; }
|
|
397
399
|
</style>
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@7365admin1/layer-common",
|
|
3
3
|
"license": "MIT",
|
|
4
4
|
"type": "module",
|
|
5
|
-
"version": "4.110.
|
|
5
|
+
"version": "4.110.1",
|
|
6
6
|
"author": "7365admin1",
|
|
7
7
|
"main": "./nuxt.config.ts",
|
|
8
8
|
"//files": "What a consumer extending this layer actually loads. Without this npm ships the whole working tree - the changesets, the CI workflows, the render harness in tools/ and any scratch directory that happened to exist at publish time. Nuxt resolves a layer by directory, so every runtime directory below has to stay listed; adding a new top-level runtime directory means adding it here too.",
|
package/utils/breadcrumb.ts
CHANGED
|
@@ -22,6 +22,11 @@ const ACRONYMS: Record<string, string> = {
|
|
|
22
22
|
id: "ID",
|
|
23
23
|
};
|
|
24
24
|
|
|
25
|
+
const RENAMED: [string, string][] = [
|
|
26
|
+
["Building Mgmt", "Occupancy Mgmt"],
|
|
27
|
+
["Event Mgmt", "Task Calendar"],
|
|
28
|
+
];
|
|
29
|
+
|
|
25
30
|
export function moduleNameFromRoute(route: {
|
|
26
31
|
name?: unknown;
|
|
27
32
|
path?: unknown;
|
|
@@ -76,7 +81,10 @@ export function moduleNameFromRoute(route: {
|
|
|
76
81
|
const words: string[] = [];
|
|
77
82
|
while (i < segments.length && !params.has(segments[i])) words.push(segments[i++]);
|
|
78
83
|
|
|
79
|
-
|
|
84
|
+
const name = words
|
|
80
85
|
.map((w) => ACRONYMS[w] ?? w.charAt(0).toUpperCase() + w.slice(1))
|
|
81
86
|
.join(" ");
|
|
87
|
+
// Modules renamed on screen (owner 2026-10-07, 1PAM) keep their old route folder.
|
|
88
|
+
for (const [from, to] of RENAMED) if (name === from || name.startsWith(`${from} `)) return to + name.slice(from.length);
|
|
89
|
+
return name;
|
|
82
90
|
}
|