@tonguetoquill/collection 0.6.0 → 0.6.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tonguetoquill/collection",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/nibsbin/tonguetoquill-collection.git"
@@ -17,6 +17,7 @@ main:
17
17
  required: true
18
18
  description: "Matches the check box."
19
19
 
20
+
20
21
  departure_date:
21
22
  title: Departure Date
22
23
  type: date
@@ -33,6 +34,20 @@ main:
33
34
  compact: true
34
35
  description: "Final travel destination."
35
36
 
37
+ dept_flight_num:
38
+ title: Departure Flight Number
39
+ type: string
40
+ ui:
41
+ compact: true
42
+ description: "Departure flight number."
43
+
44
+ arrival_flight_num:
45
+ title: Arrival Flight Number
46
+ type: string
47
+ ui:
48
+ compact: true
49
+ description: "Arrival flight number."
50
+
36
51
  notes:
37
52
  title: Notes
38
53
  type: string
@@ -44,7 +59,7 @@ main:
44
59
  required: true
45
60
  ui:
46
61
  compact: true
47
- description: "Unit / Organization conducting the brief."
62
+ description: "Unit / Organization."
48
63
 
49
64
  briefed_date:
50
65
  title: Date Briefed
@@ -52,7 +67,7 @@ main:
52
67
  required: true
53
68
  ui:
54
69
  compact: true
55
- description: "Date the brief took place."
70
+ description: "Put in today's date."
56
71
 
57
72
  briefee_name:
58
73
  title: Individual Receiving Brief (Name)
@@ -60,29 +75,29 @@ main:
60
75
  required: true
61
76
  ui:
62
77
  compact: true
63
- description: "Name (Last, First) of the individual receiving the brief."
78
+ description: "Put in your Name (Last, First)."
64
79
 
65
80
  briefee_grade:
66
81
  title: Individual Receiving Brief (Grade)
67
82
  type: string
68
83
  ui:
69
84
  compact: true
70
- description: "Grade of the individual receiving the brief."
85
+ description: "Put in your Grade."
71
86
 
72
87
  emergency_contact_name:
73
88
  title: Emergency Contact Name
74
89
  type: string
75
- description: "Name of the emergency contact person at the bottom of the form."
90
+ description: "Put in your Emergency Contact Name."
76
91
 
77
92
  emergency_contact_phone:
78
93
  title: Emergency Contact Phone
79
94
  type: string
80
- description: "Phone number of the emergency contact person at the bottom of the form."
95
+ description: "Put in your Emergency Contact's Phone Number."
81
96
 
82
97
  cards:
83
98
  itinerary:
84
99
  title: Proposed Travel Itinerary
85
- description: "Each card represents one row in the travel itinerary table. Up to 5 rows are supported."
100
+ description: "Each card represents one row in the travel itinerary table. Up to 10 rows are supported."
86
101
  ui:
87
102
  hide_body: true
88
103
  fields:
@@ -113,11 +128,11 @@ cards:
113
128
  ui:
114
129
  group: Itinerary Entry
115
130
  compact: true
116
- description: "Duration of rest period."
131
+ description: "Duration of stay at arrival point"
117
132
  mileage:
118
133
  title: Approximate Mileage
119
134
  type: string
120
135
  ui:
121
136
  group: Itinerary Entry
122
137
  compact: true
123
- description: "Approximate mileage for this leg."
138
+ description: "Approximate mileage for this leg. No need to put in if not applicable such as flights."
@@ -20,7 +20,7 @@
20
20
 
21
21
  // Fields
22
22
  #tf(40pt, 100pt)[#data.at("departure_date", default: "")]
23
- #tf(120pt, 100pt)[#data.at("final_destination", default: "")]
23
+ #tf(123pt, 100pt)[#data.at("final_destination", default: "")]
24
24
 
25
25
  // Itinerary Rows (via CARDS)
26
26
  #{
@@ -29,11 +29,11 @@
29
29
  let dy-step = 40pt
30
30
  if "CARDS" in data {
31
31
  for card in data.CARDS {
32
- if card.CARD == "itinerary" and row < 5 {
32
+ if card.CARD == "itinerary" and row < 10 {
33
33
  let dy = dy-start + (row * dy-step)
34
34
  tf(80pt, dy)[#card.at("date", default: "")]
35
35
  tf(135pt, dy)[#card.at("departure_point", default: "")]
36
- tf(300pt, dy)[#card.at("arrival_point", default: "")]
36
+ tf(295pt, dy)[#card.at("arrival_point", default: "")]
37
37
  tf(450pt, dy)[#card.at("rest_length", default: "")]
38
38
  tf(515pt, dy)[#card.at("mileage", default: "")]
39
39
  row = row + 1
@@ -42,19 +42,27 @@
42
42
  }
43
43
  }
44
44
 
45
+ // Flight Info
46
+ #{
47
+ let d-flight = str(data.at("dept_flight_num", default: ""))
48
+ if d-flight != "" { tf(350pt, 545pt)[#text(weight: "bold")[Dept Flight:] #d-flight] }
49
+
50
+ let a-flight = str(data.at("arrival_flight_num", default: ""))
51
+ if a-flight != "" { tf(450pt, 545pt)[#text(weight: "bold")[Arr Flight:] #a-flight] }
52
+ }
53
+
45
54
  // Notes
46
- #tf(40pt, 360pt)[#block(width: 530pt)[#data.at("notes", default: "")]]
55
+ #tf(40pt, 565pt)[#block(width: 530pt)[#data.at("notes", default: "")]]
47
56
 
48
57
  // Acknowledgements
49
- #tf(40pt, 420pt)[#data.at("organization", default: "")]
50
- #tf(500pt, 420pt)[#data.at("briefed_date", default: "")]
58
+ #tf(40pt, 620pt)[#data.at("organization", default: "")]
59
+ #tf(500pt, 620pt)[#data.at("briefed_date", default: "")]
51
60
 
52
- #tf(40pt, 450pt)[#data.at("briefee_name", default: "")]
53
- #tf(270pt, 450pt)[#data.at("briefee_grade", default: "")]
61
+ #tf(40pt, 650pt)[#data.at("briefee_name", default: "")]
62
+ #tf(270pt, 650pt)[#data.at("briefee_grade", default: "")]
54
63
 
55
- #tf(40pt, 480pt)[#data.at("briefer_name", default: "")]
56
- #tf(270pt, 480pt)[#data.at("briefer_grade", default: "")]
64
+ #tf(40pt, 680pt)[#data.at("briefer_name", default: "")]
65
+ #tf(270pt, 680pt)[#data.at("briefer_grade", default: "")]
57
66
 
58
67
  // Emergency Contact
59
- #tf(40pt, 500pt)[#text(size: 16pt, weight: "bold")[EMERGENCY CONTACT]]
60
- #tf(40pt, 520pt)[#text(size: 12pt)[#data.at("emergency_contact_name", default: ""): #data.at("emergency_contact_phone", default: "")]]
68
+ #tf(40pt, 700pt)[#text(size: 10pt, weight: "bold")[EMERGENCY CONTACT:] #text(size: 10pt)[#data.at("emergency_contact_name", default: ""): #data.at("emergency_contact_phone", default: "")]]
@@ -1,4 +0,0 @@
1
- // debug.typ (generated � renders form with debug overlays)
2
- #import "../form.typ": form
3
-
4
- #form(debug: true)
@@ -1,4 +0,0 @@
1
- // example.typ (edit this file to fill the form)
2
- #import "../form.typ": form
3
-
4
- #form()