@7365admin1/layer-common 4.67.0 → 4.67.2
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
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @iservice365/layer-common
|
|
2
2
|
|
|
3
|
+
## 4.67.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 8137357: Members > Service Providers: a provider entry with no company name and nobody at the site no longer shows as an empty chip.
|
|
8
|
+
|
|
9
|
+
## 4.67.1
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 2d0caa0: Inventory supplier picker: show "Add ... as a new supplier" also when the supplier list is empty.
|
|
14
|
+
|
|
3
15
|
## 4.67.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
|
@@ -1805,11 +1817,11 @@
|
|
|
1805
1817
|
`utils/console-tier.ts` + `composables/useConsoleTier.ts` mirror the server's
|
|
1806
1818
|
own rule from two endpoints the console already calls, unprojected:
|
|
1807
1819
|
|
|
1808
|
-
|
|
1809
|
-
|
|
1820
|
+
GET /api/members/user/:user/app/admin the Seven365 staff membership
|
|
1821
|
+
GET /api/roles/id/:role that membership's role document
|
|
1810
1822
|
|
|
1811
|
-
|
|
1812
|
-
|
|
1823
|
+
owner = member.type === "admin" && role.type === "admin" && role.default === true
|
|
1824
|
+
staff = member.type === "admin" && role.type === "admin"
|
|
1813
1825
|
|
|
1814
1826
|
`role.default` is the marker because it is the only property of a platform
|
|
1815
1827
|
staff role no API caller can set - `role.controller.ts` validates create and
|
|
@@ -241,7 +241,11 @@ async function load() {
|
|
|
241
241
|
try {
|
|
242
242
|
const data = await getSiteMembers(props.siteId);
|
|
243
243
|
items.value = Array.isArray(data?.items) ? data.items : [];
|
|
244
|
-
|
|
244
|
+
// A provider row with no company name and nobody at the site says nothing
|
|
245
|
+
// to the property manager; it is left out of the chips (seen on live data).
|
|
246
|
+
companies.value = (Array.isArray(data?.companies) ? data.companies : []).filter(
|
|
247
|
+
(c) => Boolean(String(c.name ?? "").trim()) || c.people > 0,
|
|
248
|
+
);
|
|
245
249
|
} catch (error: any) {
|
|
246
250
|
items.value = [];
|
|
247
251
|
companies.value = [];
|
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.67.
|
|
5
|
+
"version": "4.67.2",
|
|
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.",
|