@marktiderman/genesis-forms-studio 0.3.0 → 0.5.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.
@@ -1,494 +0,0 @@
1
- import { FieldBlock, Json, FormDefinition } from '@marktiderman/genesis-forms';
2
- import * as react from 'react';
3
- import { ReactNode } from 'react';
4
- import { SubNavItem } from '@marktiderman/genesis-ui/layout';
5
-
6
- type Cell = string | number | boolean;
7
-
8
- /** One answer as a cell: option labels for choices, Yes/No, lists joined with commas. */
9
- declare function answerCell(field: FieldBlock, value: Json | undefined): Cell;
10
- /** A label with recall tokens replaced by their fallback. */
11
- declare const plainLabel: (label: string) => string;
12
- interface AnswerColumn {
13
- /** The field's key: stable across versions, so one column covers every version's answers. */
14
- key: string;
15
- label: string;
16
- }
17
- /**
18
- * One column per field key across the given definitions, in the order the newest
19
- * definition asks them, then keys only older versions had (in their order). Labels come
20
- * from the newest definition that has the key.
21
- */
22
- declare function answerColumns(definitions: readonly FormDefinition[], skip?: ReadonlySet<string>): AnswerColumn[];
23
- /** A response's answers by field key, as cells (answers are stored by field id). */
24
- declare function answersByKey(definition: FormDefinition, answers: Record<string, Json>): Record<string, Cell>;
25
- /** A response's raw answers by field key, with the field each was given to (answers are stored by field id). */
26
- declare function valuesByKey(definition: FormDefinition, answers: Record<string, Json>): Map<string, {
27
- field: FieldBlock;
28
- value: Json;
29
- }>;
30
- /**
31
- * CSV text (RFC 4180, CRLF) with a header row; every cell is quoted when it needs to be.
32
- * Text that a spreadsheet would run as a formula (starting with = + - @, tab or CR) gets a
33
- * leading apostrophe, so a respondent's answer can't run in Excel when staff open the
34
- * download. Numbers stay as they are. (Sheets delivery writes RAW values and needs none.)
35
- */
36
- declare function toCsv(header: readonly string[], rows: readonly (readonly Cell[])[]): string;
37
-
38
- /**
39
- * Where a response is, on a form that saves answers as they go (`settings.saveProgress`):
40
- * `in_progress` while someone is answering, `partial` once they stopped without sending
41
- * (kept, and counted like a sent one), `completed` once sent.
42
- */
43
- type ResponseStatus = "in_progress" | "partial" | "completed";
44
- /** One answered form (a feedback response, a worksheet entry). */
45
- interface SummaryItem {
46
- id: string;
47
- /** The day it was answered, YYYY-MM-DD. */
48
- date: string;
49
- definition: FormDefinition;
50
- answers: Record<string, Json>;
51
- /** Extra plain values a filter can match, such as the class or coach. */
52
- extra?: Record<string, Cell>;
53
- /** Default `completed`. */
54
- status?: ResponseStatus | undefined;
55
- /**
56
- * The furthest question reached (a field id of `definition`), for an unfinished
57
- * response: genesis-forms `formProgress`'s `fieldId`. Drop-off by question reads it.
58
- */
59
- furthest?: string | null | undefined;
60
- }
61
- /**
62
- * Which responses to show by status. `counted` (the default): sent and partial ones,
63
- * which summaries count; `in_progress` ones are still being answered.
64
- */
65
- type StatusFilter = "counted" | "completed" | "partial" | "in_progress";
66
- /** The status filter's words, in the menu's order. */
67
- declare const STATUS_FILTER_LABEL: Record<StatusFilter, string>;
68
- /** A response status's word, as a table or a detail panel shows it. */
69
- declare const RESPONSE_STATUS_LABEL: Record<ResponseStatus, string>;
70
- /** Whether `item` passes a status filter (no status is `completed`). */
71
- declare function matchesStatus(item: Pick<SummaryItem, "status">, filter?: StatusFilter): boolean;
72
- interface ScaleSummary {
73
- kind: "scale";
74
- key: string;
75
- label: string;
76
- type: "rating" | "nps";
77
- /** The field type, as for every summary. */
78
- fieldType: "rating" | "nps";
79
- /** How many responses answered it. */
80
- count: number;
81
- min: number;
82
- max: number;
83
- /** Null when no one answered. */
84
- average: number | null;
85
- /** One per value from min to max, in order, zeros included. */
86
- buckets: {
87
- value: number;
88
- count: number;
89
- }[];
90
- /**
91
- * Answers given on an older version's different scale (a 1–10 rating now 1–5), moved
92
- * onto this one in proportion: they count, at their nearest point on this scale.
93
- */
94
- rescaled: number;
95
- /** Answers left out: outside their own question's scale, or not a whole number. */
96
- excluded: number;
97
- /** NPS only: promoters 9–10, passives 7–8, detractors 0–6, score = % promoters − % detractors. */
98
- nps: {
99
- promoters: number;
100
- passives: number;
101
- detractors: number;
102
- score: number;
103
- } | null;
104
- }
105
- interface ChoiceSummary {
106
- kind: "choice";
107
- key: string;
108
- label: string;
109
- /** single-choice, multi-choice, dropdown, yes-no or consent. */
110
- fieldType: string;
111
- /** How many responses answered it. */
112
- count: number;
113
- /** Several options per response, so the percentages can add up to more than 100. */
114
- multiple: boolean;
115
- /** The newest version's options in order, then any only older versions had. */
116
- options: {
117
- value: string;
118
- label: string;
119
- count: number;
120
- percent: number;
121
- }[];
122
- }
123
- interface TextSummary {
124
- kind: "text";
125
- key: string;
126
- label: string;
127
- /** The field type: short-text, long-text, email… */
128
- fieldType: string;
129
- count: number;
130
- /** Every answer, newest day first. */
131
- answers: {
132
- id: string;
133
- date: string;
134
- text: string;
135
- }[];
136
- }
137
- type QuestionSummary = ScaleSummary | ChoiceSummary | TextSummary;
138
- /**
139
- * One summary per question across `definitions` (newest first: it sets the order, labels,
140
- * type and options), counting each item's answers by field key. Keys in `skip` are left out.
141
- */
142
- declare function summarizeResponses(items: readonly SummaryItem[], definitions: readonly FormDefinition[], skip?: ReadonlySet<string>): QuestionSummary[];
143
- /** The highest score any rating question in `definitions` asks for (NPS left out); null when none. */
144
- declare function highestRating(definitions: readonly FormDefinition[]): number | null;
145
- /** The lowest rating-question answer in an item (NPS left out), or null when it has none. */
146
- declare function lowestRating(item: SummaryItem): number | null;
147
- /**
148
- * The highest answer that counts as low on a rating or NPS question: the bottom 40% of a
149
- * rating's scale (at least 1), or 0–6 (detractors) on NPS. Null for other questions.
150
- */
151
- declare function lowRatingAtMost(field: FieldBlock): number | null;
152
- /** lowRatingAtMost for a scale known only by its type and top score (a ScaleSummary's). */
153
- declare function lowScaleAtMost(type: "rating" | "nps", max: number): number;
154
- /** Whether any rating or NPS answer in an item is low on its own question's scale. */
155
- declare function hasLowRating(item: SummaryItem): boolean;
156
- /** hasLowRating, leaving out the answers to keys in `skip` (as summaries and needsFollowUp do). */
157
- declare function hasLowRatingExcept(item: SummaryItem, skip: ReadonlySet<string>): boolean;
158
- /**
159
- * What "low" means across `definitions`, in words: "2 or below" for one 1–5 scale, "2 or
160
- * below out of 5, 4 or below out of 10" for two, "0–6 on NPS" beside them ("0–6" alone).
161
- * Null when no question has a rating or NPS answer.
162
- */
163
- declare function lowRatingLabel(definitions: readonly FormDefinition[]): string | null;
164
- interface ResponseFilter {
165
- /** First and last day, YYYY-MM-DD, both included; open-ended when absent. */
166
- from?: string | null;
167
- to?: string | null;
168
- /** Extra values that must match exactly, such as { class: "6am WOD" }. */
169
- match?: Record<string, string | null | undefined>;
170
- /** Only items with a rating at or below this (any rating question). */
171
- ratingAtMost?: number | null;
172
- /** Only items with a low answer on its question's own scale (hasLowRating). */
173
- low?: boolean;
174
- /** By status (matchesStatus); default `counted`: sent and partial, not in progress. */
175
- status?: StatusFilter | undefined;
176
- }
177
- /** Whether a filter leaves anything out beyond the default (in-progress responses). */
178
- declare function isFiltered(filter: ResponseFilter): boolean;
179
- /** The items a filter keeps, in their order. */
180
- declare function filterResponses<T extends SummaryItem>(items: readonly T[], filter: ResponseFilter): T[];
181
- type DatePreset = "all" | "today" | "week" | "7d" | "30d" | "month";
182
- /**
183
- * A preset's first and last day, given today (YYYY-MM-DD, on the clock the items' days
184
- * use). "week" starts on Monday; "7d" and "30d" include today.
185
- */
186
- declare function presetRange(preset: DatePreset, today: string): {
187
- from: string | null;
188
- to: string | null;
189
- };
190
- /** What the filter bar holds; `toResponseFilter` turns it into a filter. */
191
- interface FiltersValue {
192
- when: DatePreset | "custom";
193
- /** Custom range, YYYY-MM-DD; empty for open-ended. */
194
- from: string;
195
- to: string;
196
- /** By choice filter key, e.g. { class: "6am WOD" }; missing or empty for any. */
197
- match: Record<string, string>;
198
- ratingAtMost: number | null;
199
- /** Low ratings, each on its own question's scale (lowRatingAtMost). */
200
- low: boolean;
201
- /** By status, on a form that saves answers as they go; missing is `counted`. */
202
- status?: StatusFilter | undefined;
203
- }
204
- declare const NO_FILTERS: FiltersValue;
205
- /** The filter for `value`, given today's date on the clock the responses' days use. */
206
- declare function toResponseFilter(value: FiltersValue, today: string): ResponseFilter;
207
- /**
208
- * The one-click "Low ratings this week": this week, and low on each question's own scale
209
- * (lowRatingAtMost: the bottom 40% of a rating, NPS detractors), other filters kept.
210
- */
211
- declare const lowThisWeek: (value: FiltersValue) => FiltersValue;
212
-
213
- /** One headline number: a label, the number, and a short line under it. */
214
- interface HeadlineNumber {
215
- key: string;
216
- label: string;
217
- value: ReactNode;
218
- detail?: ReactNode;
219
- /** The detail's colour: good news, bad news, a warning, or plain. Default plain. */
220
- tone?: "positive" | "negative" | "warning" | "muted" | undefined;
221
- }
222
- /** A row of headline numbers (KPI cards): two across on a phone, up to four on a wide screen. */
223
- declare function HeadlineNumbers({ numbers, isLoading, className, }: {
224
- numbers: readonly HeadlineNumber[];
225
- isLoading?: boolean | undefined;
226
- className?: string | undefined;
227
- }): react.JSX.Element | null;
228
-
229
- interface Headline {
230
- responses: {
231
- count: number;
232
- /** Responses in the period before, under the same other filters; null with no period. */
233
- previous: number | null;
234
- /** count − previous; null with no period. */
235
- change: number | null;
236
- /** How many of `count` are partial (never sent); left out when there are none. */
237
- partial?: number;
238
- };
239
- /** The first rating question (newest definition order); null when the form has none. */
240
- rating: {
241
- key: string;
242
- label: string;
243
- max: number;
244
- /** Null when nobody answered it. */
245
- average: number | null;
246
- /** The same question's average in the period before; null without one or without answers. */
247
- previousAverage: number | null;
248
- /** average − previousAverage, when both are known. */
249
- change: number | null;
250
- } | null;
251
- /** Responses with a low answer on any rating or NPS question; null when there is none. */
252
- low: {
253
- count: number;
254
- } | null;
255
- /** The first consent question, else the first yes/no one; null when there is none. */
256
- rate: {
257
- key: string;
258
- label: string;
259
- type: "consent" | "yes-no";
260
- /** Agreed or Yes. */
261
- yes: number;
262
- /** How many answered it. */
263
- count: number;
264
- /** 0–100; null when nobody answered. */
265
- percent: number | null;
266
- } | null;
267
- }
268
- /**
269
- * The headline numbers for `items` (already filtered), with `previous` (the same filters
270
- * over the period before, from `comparisonFilter`) for the changes. `definitions` are
271
- * newest first, as `summarizeResponses` takes them; `skip` leaves keys out.
272
- */
273
- declare function headlineNumbers(items: readonly SummaryItem[], definitions: readonly FormDefinition[], options?: {
274
- previous?: readonly SummaryItem[] | null;
275
- skip?: ReadonlySet<string>;
276
- }): Headline;
277
- /**
278
- * The period before the one the filter bar picks, with the bar's other filters kept, and
279
- * what to call it ("last week"). "This week" compares with the same weekdays last week,
280
- * "This month" with last month up to the same day, any other range with as many days
281
- * just before it. Null for "All time", or a
282
- * custom range with an open end.
283
- */
284
- declare function comparisonFilter(value: FiltersValue, today: string): {
285
- filter: ResponseFilter;
286
- label: string;
287
- } | null;
288
- /**
289
- * The cards for `headlineNumbers`' answer: Responses (with the change against `period`,
290
- * e.g. "last week"), Average rating, Low ratings, and the consent or yes/no rate. A card
291
- * the form has no question for is left out.
292
- */
293
- declare function headlineCards(headline: Headline, options?: {
294
- period?: string | null | undefined;
295
- /** How many low-rated responses still need a follow-up (not handled); the card says so. */
296
- lowOpen?: number | undefined;
297
- }): HeadlineNumber[];
298
-
299
- interface QuestionDropOff {
300
- key: string;
301
- label: string;
302
- /** How many responses reached this question (it was on screen, or answered). */
303
- views: number;
304
- /** How many stopped here: their furthest question, never sent. */
305
- stopped: number;
306
- /** stopped ÷ views as a whole percentage; null when nobody reached it. */
307
- dropOff: number | null;
308
- }
309
- /**
310
- * Each question's views and drop-off, in the newest definition's order (`definitions`
311
- * newest first, as `summarizeResponses` takes them), matched across versions by field key.
312
- *
313
- * - A sent response (`completed`, or no status) reached every question of its version
314
- * and stopped at none. With logic that skips questions this counts the skipped ones as
315
- * reached too: a response keeps its furthest question, not its path.
316
- * - A `partial` response reached every question of its version up to and including its
317
- * `furthest`, and stopped there. One without `furthest` (saved before it was kept) is
318
- * left out.
319
- * - An `in_progress` response is left out: they may still be answering.
320
- *
321
- * Someone who opened the form and left before moving on from the first question was
322
- * never saved, so they aren't counted.
323
- */
324
- declare function dropOffByQuestion(items: readonly SummaryItem[], definitions: readonly FormDefinition[], skip?: ReadonlySet<string>): QuestionDropOff[];
325
-
326
- interface FollowUp<T extends SummaryItem = SummaryItem> {
327
- item: T;
328
- /** The lowest low answer, on its own question's scale. */
329
- rating: {
330
- value: number;
331
- max: number;
332
- type: "rating" | "nps";
333
- };
334
- /** The first written answer (short or long text), trimmed; null when there is none. */
335
- comment: string | null;
336
- }
337
- /** One item's follow-up, or null when none of its answers is low. */
338
- declare function followUpOf<T extends SummaryItem>(item: T, skip?: ReadonlySet<string>): FollowUp<T> | null;
339
- /**
340
- * The items that need a follow-up, newest day first: a low answer on a rating or NPS
341
- * question (lowRatingAtMost), and not handled yet. `skip` leaves keys out (contact details).
342
- */
343
- declare function needsFollowUp<T extends SummaryItem>(items: readonly T[], options?: {
344
- isHandled?: (item: T) => boolean;
345
- skip?: ReadonlySet<string>;
346
- }): FollowUp<T>[];
347
-
348
- /** A day (YYYY-MM-DD) in words, given today on the same clock: "Today", "Yesterday", "Oct 21", "Oct 21, 2025". */
349
- declare function dayLabel(day: string, today?: string): string;
350
-
351
- /** One search param a prefilled link may set, and the values staff pick from. */
352
- interface PrefillChoice {
353
- key: string;
354
- /** The picker's accessible name, e.g. "Class". */
355
- label: string;
356
- /** The picker's "leave it out" choice, e.g. "Any class". */
357
- anyLabel: string;
358
- options: readonly {
359
- value: string;
360
- label: string;
361
- }[];
362
- }
363
- /**
364
- * `url` with `values` set as search params (empty values left out), keeping what it has.
365
- * An absolute link stays absolute; a relative one (`/f/a?x=1`) stays relative, so it never
366
- * throws while a page is still working out its origin.
367
- */
368
- declare function prefilledUrl(url: string, values: Record<string, string | undefined>): string;
369
- /** An `<iframe>` that shows the form on another website, full width. */
370
- declare function embedSnippet(url: string, title: string): string;
371
-
372
- type FormAvailability = "draft" | "archived" | "paused" | "scheduled" | "closed" | "full" | "live";
373
- interface AvailabilityInput {
374
- status: "draft" | "active" | "archived";
375
- /** False when the form has never been published (it has no version to serve). */
376
- published?: boolean;
377
- /**
378
- * ISO times it takes responses from and until; open-ended when absent. Each needs `Z` or
379
- * an offset (`+02:00`): a time without one would be read on whatever clock the code runs
380
- * on. One that doesn't parse, or has no offset, keeps the form closed (fail closed).
381
- * Normalise times where they are written (`new Date(…).toISOString()`).
382
- */
383
- opensAt?: string | null | undefined;
384
- closesAt?: string | null | undefined;
385
- paused?: boolean | undefined;
386
- /** At most this many completed responses; null or absent for no cap. */
387
- responseCap?: number | null | undefined;
388
- /** Completed, non-deleted responses so far, when the caller knows the count. */
389
- completedResponses?: number | null | undefined;
390
- /** Whether the cap is reached, when only that is known (the public page never sees the count). */
391
- full?: boolean | undefined;
392
- }
393
- /** Whether the form has its response cap: from `full` when given, else from the cap and count. */
394
- declare function isFull(form: Pick<AvailabilityInput, "responseCap" | "completedResponses" | "full">): boolean;
395
- /** An ISO time with `Z` or an offset, as epoch milliseconds; NaN for anything else. */
396
- declare function parseInstant(value: string): number;
397
- /**
398
- * Where a form stands at `at`. Archived and draft first, then paused (staff chose it,
399
- * whatever the clock says), then the opening window (a time that can't be read, or has no
400
- * offset, counts as closed), then the cap. Only "live" takes
401
- * responses.
402
- */
403
- declare function formAvailability(form: AvailabilityInput, at?: Date): FormAvailability;
404
- /** Whether the form takes responses at `at`. */
405
- declare function takesResponses(form: AvailabilityInput, at?: Date): boolean;
406
-
407
- /** Where the host's draft saving stands. */
408
- type SaveState = "saved" | "saving" | "unsaved" | "failed" | "stopped" | "conflict";
409
- declare const SAVE_STATE_LABEL: Record<SaveState, string>;
410
- type ChipTone = "success" | "warning" | "danger" | "info" | "muted";
411
- /** Whether something can be published, from an editor's checks. */
412
- interface Readiness {
413
- state: "ready" | "problems" | "warnings" | "empty" | "pending";
414
- /** Problems or warnings to look at (0 when ready, empty or pending). */
415
- count: number;
416
- }
417
- /**
418
- * Readiness from an editor's findings (genesis-forms-builder's `Analysis.findings`, or any
419
- * list shaped like it): errors block publishing; `no-questions` (nothing to answer yet)
420
- * is "empty", not broken. `pending` says errors are held back while a new question is being written.
421
- */
422
- declare function readinessOf(findings: readonly {
423
- level: "error" | "warning" | "info";
424
- code?: string;
425
- }[], options?: {
426
- pending?: boolean;
427
- }): Readiness;
428
- declare function readinessChip(readiness: Readiness): {
429
- label: string;
430
- tone: ChipTone;
431
- };
432
-
433
- /**
434
- * A form's status chip: "Live · version 3", "Draft", "Paused · version 3"… `availability`
435
- * is formAvailability's answer; `version` the live version, when there is one.
436
- */
437
- declare function formStatusChip(availability: FormAvailability, version?: number | null): {
438
- label: string;
439
- tone: ChipTone;
440
- };
441
- /** The form page's four places, in order. */
442
- type FormTab = "questions" | "logic" | "responses" | "settings";
443
- /** One of a form page's child navigation items: genesis-ui's `SubNavItem`, plus its place. */
444
- type FormNavItem = SubNavItem & {
445
- id: FormTab;
446
- badge?: number;
447
- };
448
- /** How many questions a definition asks, and how many rules plus endings it has. */
449
- declare function formCounts(definition: FormDefinition | null | undefined): {
450
- questions: number;
451
- logic: number;
452
- };
453
- /**
454
- * The form page's child navigation items (Questions, Logic and endings, Responses,
455
- * Settings) with their counts as badges, for the app shell's sub-navigation:
456
- * `useAppShellSubNav(formNavItems("/forms/f1", counts))`. `at` is the form page's path
457
- * (each place is `?tab=<id>` on it, Questions the path itself, which the shell's most
458
- * specific match keeps from lighting up on the others) or a function giving each place's
459
- * address. A count left out (or null) shows no badge.
460
- */
461
- declare function formNavItems(at: string | ((tab: FormTab) => string), counts?: {
462
- questions?: number | null;
463
- logic?: number | null;
464
- responses?: number | null;
465
- },
466
- /** Each place's icon, for the rail and the phone's bottom bar (`FORM_NAV_ICONS`). */
467
- icons?: Partial<Record<FormTab, SubNavItem["icon"]>>): FormNavItem[];
468
-
469
- /**
470
- * "How was class?" → "how-was-class": the public link's last part (lowercase words and
471
- * hyphens, at most 60). `fallback` is used when the title has no letters or numbers.
472
- */
473
- declare function slugFromTitle(title: string, fallback?: string): string;
474
- /** A form link: lowercase letters and numbers, in words joined by single hyphens. */
475
- declare const SLUG_PATTERN: RegExp;
476
- /** Why a form link can't be used, or nothing when it fits SLUG_PATTERN. */
477
- declare function validateSlug(slug: string): string | undefined;
478
- /** A duplicate's name: "Copy of …", within the 120 characters a form name may have. */
479
- declare function copyTitle(title: string): string;
480
- /** The first of `slug`, `slug-2`, `slug-3`… that isn't in `taken`, within 60 characters. */
481
- declare function freeSlug(slug: string, taken: ReadonlySet<string>): string;
482
-
483
- /**
484
- * Whether the thank-you page offers "Send another response" (on unless `submitAnother`
485
- * is false). Never on a form that takes one response per person: a second response
486
- * would be refused. Anonymous forms don't know who answered, so one per person doesn't apply.
487
- */
488
- declare function offersSubmitAnother(form: {
489
- submitAnother?: boolean | null | undefined;
490
- onePerPerson?: boolean | null | undefined;
491
- anonymous?: boolean | null | undefined;
492
- }): boolean;
493
-
494
- export { lowRatingLabel as $, type AnswerColumn as A, embedSnippet as B, type ChipTone as C, type DatePreset as D, filterResponses as E, type FiltersValue as F, followUpOf as G, type Headline as H, formAvailability as I, formCounts as J, formNavItems as K, formStatusChip as L, freeSlug as M, NO_FILTERS as N, hasLowRating as O, type PrefillChoice as P, type QuestionSummary as Q, type Readiness as R, type SaveState as S, type TextSummary as T, hasLowRatingExcept as U, headlineCards as V, headlineNumbers as W, highestRating as X, isFiltered as Y, isFull as Z, lowRatingAtMost as _, type QuestionDropOff as a, lowScaleAtMost as a0, lowThisWeek as a1, lowestRating as a2, matchesStatus as a3, needsFollowUp as a4, offersSubmitAnother as a5, parseInstant as a6, plainLabel as a7, prefilledUrl as a8, presetRange as a9, readinessChip as aa, readinessOf as ab, slugFromTitle as ac, summarizeResponses as ad, takesResponses as ae, toCsv as af, toResponseFilter as ag, validateSlug as ah, valuesByKey as ai, type AvailabilityInput as b, type Cell as c, type ChoiceSummary as d, type FollowUp as e, type FormAvailability as f, type FormNavItem as g, type FormTab as h, type HeadlineNumber as i, HeadlineNumbers as j, RESPONSE_STATUS_LABEL as k, type ResponseFilter as l, type ResponseStatus as m, SAVE_STATE_LABEL as n, SLUG_PATTERN as o, STATUS_FILTER_LABEL as p, type ScaleSummary as q, type StatusFilter as r, type SummaryItem as s, answerCell as t, answerColumns as u, answersByKey as v, comparisonFilter as w, copyTitle as x, dayLabel as y, dropOffByQuestion as z };