@7365admin1/layer-common 3.2.2-staging.124 → 3.2.2-staging.126

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@7365admin1/layer-common",
3
3
  "license": "MIT",
4
4
  "type": "module",
5
- "version": "3.2.2-staging.124",
5
+ "version": "3.2.2-staging.126",
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.",
@@ -49,11 +49,11 @@ test("the product's own status words keep the tone the screens already gave them
49
49
  assert.equal(statusTone(s), "err", s);
50
50
  }
51
51
 
52
- for (const s of ["In Progress", "In-Progress", "To-Do", "Awaiting Approval"]) {
52
+ for (const s of ["In Progress", "In-Progress", "To-Do", "Awaiting Approval", "Replaced", "Returned"]) {
53
53
  assert.equal(statusTone(s), "warn", s);
54
54
  }
55
55
 
56
- for (const s of ["Ongoing", "For Review"]) {
56
+ for (const s of ["Ongoing", "For Review", "Assigned"]) {
57
57
  assert.equal(statusTone(s), "info", s);
58
58
  }
59
59
 
package/utils/status.ts CHANGED
@@ -58,6 +58,10 @@ const TONES: Record<string, TStatusTone> = {
58
58
  resolved: "ok", // was #4CAF50, green
59
59
  active: "ok", // was `success`
60
60
 
61
+ assigned: "info", // was `primary`, on the access-card details dialog
62
+ replaced: "warn", // was `orange`, same screen
63
+ returned: "warn", // was `orange`, same screen - the card came back
64
+
61
65
  rejected: "err", // was `error`
62
66
  deleted: "err", // was `error`
63
67
  suspended: "err", // was `error`