@asd20/ui-next 2.25.3 → 2.26.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/CHANGELOG.md CHANGED
@@ -1,5 +1,12 @@
1
1
  # Changelog
2
2
 
3
+ # [2.26.0](https://github.com/academydistrict20/asd20-ui-next/compare/ui-next-v2.25.3...ui-next-v2.26.0) (2026-09-30)
4
+
5
+
6
+ ### Features
7
+
8
+ * add school transfer record request form with email workflow ([d92d458](https://github.com/academydistrict20/asd20-ui-next/commit/d92d458838303e7ae5ae600d26d6a6ce88fd748d))
9
+
3
10
  ## [2.25.3](https://github.com/academydistrict20/asd20-ui-next/compare/ui-next-v2.25.2...ui-next-v2.25.3) (2026-09-25)
4
11
 
5
12
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asd20/ui-next",
3
- "version": "2.25.3",
3
+ "version": "2.26.0",
4
4
  "private": false,
5
5
  "description": "ASD20 UI component library for Vue 3.",
6
6
  "license": "MIT",
@@ -43,6 +43,9 @@
43
43
 
44
44
  <form
45
45
  v-else-if="formDefinition"
46
+ :class="{
47
+ 'asd20-public-form-modal__records-form': usesRecordsFormSpacing,
48
+ }"
46
49
  novalidate
47
50
  @submit.prevent="validateBeforeCaptcha"
48
51
  >
@@ -52,6 +55,11 @@
52
55
  >
53
56
  {{ formDefinition.introduction }}
54
57
  </p>
58
+ <p v-if="formDefinition.introductionLink">
59
+ <a :href="formDefinition.introductionLink.href">
60
+ {{ formDefinition.introductionLink.label }}
61
+ </a>
62
+ </p>
55
63
 
56
64
  <div
57
65
  v-if="errorEntries.length"
@@ -77,6 +85,11 @@
77
85
  <asd20-public-form-field
78
86
  v-for="field in formDefinition.fields"
79
87
  :key="field.name"
88
+ :class="{
89
+ 'asd20-public-form-modal__requester-choice':
90
+ formDefinition.id === 'student-records-request' &&
91
+ field.name === 'requesterType',
92
+ }"
80
93
  :field="field"
81
94
  :input-id="fieldId(field.name)"
82
95
  :model-value="values[field.name]"
@@ -239,6 +252,12 @@ export default {
239
252
  modalTitle() {
240
253
  return this.formDefinition?.title || 'Public Form'
241
254
  },
255
+ usesRecordsFormSpacing() {
256
+ return [
257
+ 'student-records-request',
258
+ 'school-transfer-transcript-request',
259
+ ].includes(this.formDefinition?.id)
260
+ },
242
261
  showPristineValidationErrors() {
243
262
  return false
244
263
  },
@@ -453,6 +472,20 @@ export default {
453
472
  font-size: 1rem;
454
473
  }
455
474
 
475
+ &__records-form :deep(.asd20-text-input),
476
+ &__records-form :deep(.asd20-text-area-input) {
477
+ margin-bottom: 0.25rem;
478
+ }
479
+
480
+ &__records-form :deep(.asd20-public-form-field) {
481
+ margin-bottom: 1rem;
482
+ }
483
+
484
+ &__requester-choice.asd20-public-form-field
485
+ :deep(fieldset.asd20-public-form-field__choices label) {
486
+ align-items: flex-start;
487
+ }
488
+
456
489
  &__state,
457
490
  &__submit {
458
491
  align-items: center;
@@ -171,6 +171,25 @@ export function normalizePublicFormDefinition(definition) {
171
171
  const id = boundedText(definition.id, 'Form ID', 100, true)
172
172
  if (!FORM_ID_PATTERN.test(id)) throw new Error('The public form ID is invalid.')
173
173
 
174
+ let introductionLink
175
+ if (definition.introductionLink != null) {
176
+ const label = boundedText(
177
+ definition.introductionLink.label,
178
+ 'Introduction link label',
179
+ 200,
180
+ true
181
+ )
182
+ const href = boundedText(
183
+ definition.introductionLink.href,
184
+ 'Introduction link URL',
185
+ 500,
186
+ true
187
+ )
188
+ if (!/^\/[a-z0-9/-]+\/?$/.test(href) || href.startsWith('//'))
189
+ throw new Error('The introduction link must be a local page path.')
190
+ introductionLink = { label, href }
191
+ }
192
+
174
193
  return {
175
194
  id,
176
195
  version,
@@ -180,6 +199,7 @@ export function normalizePublicFormDefinition(definition) {
180
199
  'Form introduction',
181
200
  2000
182
201
  ),
202
+ introductionLink,
183
203
  submitLabel: boundedText(definition.submitLabel, 'Submit label', 100, true),
184
204
  successMessage: boundedText(
185
205
  definition.successMessage,