@7365admin1/layer-common 4.188.3 → 4.188.4
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,12 @@
|
|
|
1
1
|
# @iservice365/layer-common
|
|
2
2
|
|
|
3
|
+
## 4.188.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 1d2983a: Bulletin Board list shows Date Created, Start Date and End Date as DD/MM/YYYY, the same as the bulletin's details.
|
|
8
|
+
- ee09e41: Visitor Management: the HID QR Code option is hidden from the Pass Type picker for now.
|
|
9
|
+
|
|
3
10
|
## 4.188.3
|
|
4
11
|
|
|
5
12
|
### Patch Changes
|
|
@@ -4129,11 +4136,11 @@ Monthly report: a month that had patrols opens the list of that month's patrol r
|
|
|
4129
4136
|
`utils/console-tier.ts` + `composables/useConsoleTier.ts` mirror the server's
|
|
4130
4137
|
own rule from two endpoints the console already calls, unprojected:
|
|
4131
4138
|
|
|
4132
|
-
|
|
4133
|
-
|
|
4139
|
+
GET /api/members/user/:user/app/admin the Seven365 staff membership
|
|
4140
|
+
GET /api/roles/id/:role that membership's role document
|
|
4134
4141
|
|
|
4135
|
-
|
|
4136
|
-
|
|
4142
|
+
owner = member.type === "admin" && role.type === "admin" && role.default === true
|
|
4143
|
+
staff = member.type === "admin" && role.type === "admin"
|
|
4137
4144
|
|
|
4138
4145
|
`role.default` is the marker because it is the only property of a platform
|
|
4139
4146
|
staff role no API caller can set - `role.controller.ts` validates create and
|
|
@@ -230,7 +230,8 @@ function toRoute(status: any) {
|
|
|
230
230
|
|
|
231
231
|
function toLocalDate(utcString: string) {
|
|
232
232
|
if (!utcString) return ""
|
|
233
|
-
|
|
233
|
+
// DD/MM/YYYY, the same as the bulletin's details (BulletinBoardView).
|
|
234
|
+
return new Date(utcString).toLocaleDateString("en-GB", {
|
|
234
235
|
year: "numeric",
|
|
235
236
|
month: "2-digit",
|
|
236
237
|
day: "2-digit",
|
|
@@ -366,8 +366,10 @@ const { getAvailableContractorCards, generateQrVms } = useAccessManagement();
|
|
|
366
366
|
const { debounce } = useUtils();
|
|
367
367
|
|
|
368
368
|
const nfcEnabled = computed(() => props.settings?.data?.settings?.nfcPass ?? false);
|
|
369
|
+
// HID QR Code pass type is hidden for now. Set to true to show it again.
|
|
370
|
+
const SHOW_HID_QR_PASS_TYPE = false;
|
|
369
371
|
const hidQrCodeEnabled = computed(() => {
|
|
370
|
-
return props.hidQrCodeEnabled &&
|
|
372
|
+
return SHOW_HID_QR_PASS_TYPE && props.hidQrCodeEnabled &&["guest", "contractor", "walk-in"].includes(String(props.visitorType || ""));
|
|
371
373
|
});
|
|
372
374
|
const printer = computed(() => props.settings?.data?.settings?.printer ?? { vendorId: null, productId: null });
|
|
373
375
|
const hasPrinter = computed(() => !!printer.value.vendorId && !!printer.value.productId);
|
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.188.
|
|
5
|
+
"version": "4.188.4",
|
|
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.",
|