@7365admin1/layer-common 4.188.0 → 4.188.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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # @iservice365/layer-common
2
2
 
3
+ ## 4.188.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 5da2c4f: HID Personal QR settings (DV-2032): "New codes per person per hour" could not be typed into, because its long name sat inside the box and left the input no width. Both field names now sit above their boxes.
8
+
3
9
  ## 4.188.0
4
10
 
5
11
  ### Minor Changes
@@ -4100,11 +4106,11 @@ Monthly report: a month that had patrols opens the list of that month's patrol r
4100
4106
  `utils/console-tier.ts` + `composables/useConsoleTier.ts` mirror the server's
4101
4107
  own rule from two endpoints the console already calls, unprojected:
4102
4108
 
4103
- GET /api/members/user/:user/app/admin the Seven365 staff membership
4104
- GET /api/roles/id/:role that membership's role document
4109
+ GET /api/members/user/:user/app/admin the Seven365 staff membership
4110
+ GET /api/roles/id/:role that membership's role document
4105
4111
 
4106
- owner = member.type === "admin" && role.type === "admin" && role.default === true
4107
- staff = member.type === "admin" && role.type === "admin"
4112
+ owner = member.type === "admin" && role.type === "admin" && role.default === true
4113
+ staff = member.type === "admin" && role.type === "admin"
4108
4114
 
4109
4115
  `role.default` is the marker because it is the only property of a platform
4110
4116
  staff role no API caller can set - `role.controller.ts` validates create and
@@ -36,9 +36,12 @@
36
36
 
37
37
  <div v-if="enabled" class="hid-personal-qr__fields">
38
38
  <div class="hid-personal-qr__field">
39
+ <!-- The name sits ABOVE the box: AppField's in-box label never
40
+ shrinks (nowrap), so a long one leaves no room to type. -->
41
+ <label class="hid-personal-qr__name" for="hid-personal-qr-validity">Valid for</label>
39
42
  <AppField
43
+ id="hid-personal-qr-validity"
40
44
  v-model="validityInput"
41
- label="Valid for"
42
45
  type="number"
43
46
  min="5"
44
47
  max="240"
@@ -54,9 +57,10 @@
54
57
  </p>
55
58
  </div>
56
59
  <div class="hid-personal-qr__field">
60
+ <label class="hid-personal-qr__name" for="hid-personal-qr-max">New codes per person per hour</label>
57
61
  <AppField
62
+ id="hid-personal-qr-max"
58
63
  v-model="maxInput"
59
- label="New codes per person per hour"
60
64
  type="number"
61
65
  min="1"
62
66
  max="20"
@@ -216,6 +220,13 @@ async function save() {
216
220
  min-width: 0;
217
221
  }
218
222
 
223
+ .hid-personal-qr__name {
224
+ color: var(--text);
225
+ font-family: var(--font-sans);
226
+ font-size: 13px;
227
+ font-weight: 600;
228
+ }
229
+
219
230
  .hid-personal-qr__unit {
220
231
  padding-right: 10px;
221
232
  color: var(--muted);
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.0",
5
+ "version": "4.188.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.",