@airmark/quiver 0.19.0 → 0.20.0

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@airmark/quiver",
3
- "version": "0.19.0",
3
+ "version": "0.20.0",
4
4
  "description": "Airmark Quiver — Air Force and DAF document Quills for Quillmark.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -24,7 +24,7 @@ main:
24
24
 
25
25
  memo_from:
26
26
  type: array
27
- required: true
27
+ default: []
28
28
  example:
29
29
  - ORG/SYMBOL
30
30
  - Organization Name
@@ -32,7 +32,7 @@ main:
32
32
  - City ST 12345-6789
33
33
  ui:
34
34
  group: Addressing
35
- description: If recipients are on the same installation, use only the office symbol. For recipients on other installations, include the full mailing address to enable return correspondence.
35
+ description: "If recipients are on the same installation, use only the office symbol. For recipients on other installations, include the full mailing address to enable return correspondence. Omit entirely to produce a Memorandum for Record (no MEMO FROM line)."
36
36
 
37
37
  subject:
38
38
  type: string
@@ -31,7 +31,6 @@
31
31
  ) = {
32
32
  assert(subject != none, message: "subject is required")
33
33
  assert(memo_for != none, message: "memo_for is required")
34
- assert(memo_from != none, message: "memo_from is required")
35
34
  assert(
36
35
  memo_style in ("usaf", "daf"),
37
36
  message: "memo_style must be \"usaf\" or \"daf\"",
@@ -147,7 +146,7 @@
147
146
 
148
147
  render-date-section(actual_date, memo-style: memo_style)
149
148
  render-for-section(memo_for, memo_for_cols)
150
- render-from-section(memo_from)
149
+ if not falsey(memo_from) { render-from-section(memo_from) }
151
150
  render-subject-section(subject)
152
151
  render-references-section(references)
153
152
 
@@ -98,9 +98,9 @@
98
98
  " ",
99
99
  align(left)[
100
100
  #if type(recipients) == array {
101
- create-auto-grid(recipients, column-gutter: spacing.tab, cols: cols)
101
+ create-auto-grid(recipients.map(upper), column-gutter: spacing.tab, cols: cols)
102
102
  } else {
103
- recipients
103
+ upper(recipients)
104
104
  }
105
105
  ],
106
106
  )
@@ -21,8 +21,8 @@
21
21
  // Receiver information
22
22
  memo_for: data.memo_for,
23
23
 
24
- // Sender information
25
- memo_from: data.memo_from,
24
+ // Sender information (omitted for Memorandum for Record)
25
+ ..if data.at("memo_from", default: ()).len() > 0 { (memo_from: data.memo_from) },
26
26
 
27
27
  // Subject line
28
28
  subject: data.subject,