@7365admin1/layer-common 4.118.3 → 4.118.5

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.118.5
4
+
5
+ ### Patch Changes
6
+
7
+ - d86b42b: Incident report PDF: every field cell has a top and bottom edge, so a cell that starts a new page is not open at the top.
8
+
9
+ ## 4.118.4
10
+
11
+ ### Patch Changes
12
+
13
+ - bbd74e4: Incident report PDF: no outer border around the Incident Information table; each field cell draws its own edges so a page break leaves clean, closed boxes.
14
+
3
15
  ## 4.118.3
4
16
 
5
17
  ### Patch Changes
@@ -3145,11 +3157,11 @@ Monthly report: a month that had patrols opens the list of that month's patrol r
3145
3157
  `utils/console-tier.ts` + `composables/useConsoleTier.ts` mirror the server's
3146
3158
  own rule from two endpoints the console already calls, unprojected:
3147
3159
 
3148
- GET /api/members/user/:user/app/admin the Seven365 staff membership
3149
- GET /api/roles/id/:role that membership's role document
3160
+ GET /api/members/user/:user/app/admin the Seven365 staff membership
3161
+ GET /api/roles/id/:role that membership's role document
3150
3162
 
3151
- owner = member.type === "admin" && role.type === "admin" && role.default === true
3152
- staff = member.type === "admin" && role.type === "admin"
3163
+ owner = member.type === "admin" && role.type === "admin" && role.default === true
3164
+ staff = member.type === "admin" && role.type === "admin"
3153
3165
 
3154
3166
  `role.default` is the marker because it is the only property of a platform
3155
3167
  staff role no API caller can set - `role.controller.ts` validates create and
@@ -270,20 +270,19 @@ const maskNRIC = (value: any) => {
270
270
  }
271
271
  .ir-status--approved { color: #2e7d32; }
272
272
  .ir-status--rejected { color: #c62828; }
273
- .ir-box {
274
- border: 1px solid #8a8a8a;
275
- }
273
+ /* No outer wrapper border: every field cell draws its own left/bottom edge (and
274
+ right edge when it ends a row), so a page break leaves each box closed. */
276
275
  .ir-cell {
276
+ /* Top AND bottom, so a cell that starts a page is closed above as well. */
277
+ border-left: 1px solid #8a8a8a;
278
+ border-top: 1px solid #8a8a8a;
277
279
  border-bottom: 1px solid #8a8a8a;
278
280
  break-inside: avoid;
279
281
  page-break-inside: avoid;
280
282
  }
281
- .ir-e {
283
+ .ir-cell:not(.ir-e) {
282
284
  border-right: 1px solid #8a8a8a;
283
285
  }
284
- .ir-last {
285
- border-bottom: 0;
286
- }
287
286
  /* A label always travels with its value. */
288
287
  .ir-cell p:first-child {
289
288
  break-after: avoid;
@@ -291,6 +290,7 @@ const maskNRIC = (value: any) => {
291
290
  }
292
291
  .ir-section {
293
292
  break-after: avoid;
294
- border-bottom: 1px solid #8a8a8a;
293
+ border: 1px solid #8a8a8a;
294
+ border-bottom: 0;
295
295
  }
296
296
  </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.118.3",
5
+ "version": "4.118.5",
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.",