@modelform/react-native 0.12.0 → 0.14.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.
@@ -0,0 +1,89 @@
1
+ import { type InputChoice, type InputPanel, type InputValue } from './inputs';
2
+ import type { Dashboard } from './schema';
3
+ /**
4
+ * Filling a whole form from one thing said ("weight seventy two point five, slept seven hours,
5
+ * mood four"). A filler (an on-device model, or the rule-based one here) gets the form's fields
6
+ * as a small schema, and whatever it returns goes through readFill, which turns it into input
7
+ * values the same way dictation does, so a filler can't put anything in a form that typing couldn't.
8
+ * The user always reviews the result before saving.
9
+ *
10
+ * Groups' fields aren't filled yet; counters record on tap, so they're left out too.
11
+ */
12
+ export type FillFieldType = 'number' | 'text' | 'choice' | 'choices' | 'boolean' | 'duration';
13
+ /** One field as a filler sees it. `key` is the input's metric. */
14
+ export interface FillField {
15
+ key: string;
16
+ label: string;
17
+ type: FillFieldType;
18
+ unit?: string;
19
+ min?: number;
20
+ max?: number;
21
+ /** Choice labels, for choice and choices fields; a slider's labels for a number field. */
22
+ choices?: string[];
23
+ }
24
+ /** A form's fields for filling, with the panels they came from. */
25
+ export interface FillForm {
26
+ fields: FillField[];
27
+ panels: Record<string, InputPanel>;
28
+ /** Runtime choices, for selects that use choicesFrom. */
29
+ choices: Record<string, InputChoice[]>;
30
+ }
31
+ /** The fields a filler can fill: the form's inputs outside groups, except counters. */
32
+ export declare function fillForm(dashboard: Dashboard, choices?: Record<string, InputChoice[]>): FillForm;
33
+ /**
34
+ * JSON Schema for a filler's answer: an object with one optional property per field. Fillers
35
+ * with guided generation (Apple's DynamicGenerationSchema) can constrain output with it; others
36
+ * get it in the prompt. Either way readFill checks the answer.
37
+ */
38
+ export declare function fillSchema(form: FillForm): Record<string, unknown>;
39
+ /** Instructions and prompt for a model filling the form from what was said. */
40
+ export declare function fillPrompt(form: FillForm, said: string): {
41
+ instructions: string;
42
+ prompt: string;
43
+ };
44
+ /** The JSON object in a model's reply: the whole reply, or the first {...} in it (models like code fences). */
45
+ export declare function parseFillAnswer(answer: unknown): Record<string, unknown> | null;
46
+ export interface FillResult {
47
+ /** Values for the inputs that were filled, keyed by metric. */
48
+ values: Record<string, InputValue>;
49
+ /** Fields the answer gave something for that couldn't be used, with why. */
50
+ problems: {
51
+ key: string;
52
+ problem: string;
53
+ }[];
54
+ }
55
+ /**
56
+ * A filler's answer as input values. Each value goes through spokenValue, so "72.5 kg",
57
+ * "seven and a half", a choice's label (or value) and true/"yes" all work, and anything that
58
+ * doesn't fit the input is reported instead of filled. Keys that aren't fields are ignored.
59
+ */
60
+ export declare function readFill(form: FillForm, answer: unknown): FillResult;
61
+ /**
62
+ * Fills a form without a model: each field's value is what follows its name ("weight 72.5,
63
+ * sleep seven hours, notes felt good"), and fields not named are found by what they take: a
64
+ * number with the field's unit ("72.5 kilos"), or a choice only that field has ("went for a swim").
65
+ * Works offline on every device, but people have to say the field names.
66
+ */
67
+ export declare function ruleFill(form: FillForm, said: string): FillResult;
68
+ /**
69
+ * Fills a form from what was said. The rule-based filler is the default; an on-device model can
70
+ * be dropped in later (see modelFiller) without changing the form. Whatever a filler returns
71
+ * should come from readFill, so it can only hold values typing could have entered.
72
+ */
73
+ export type FormFiller = (form: FillForm, said: string) => Promise<FillResult>;
74
+ /** The filler that needs no model: ruleFill. Works offline on every device. */
75
+ export declare const ruleFiller: FormFiller;
76
+ /**
77
+ * Generates a reply for a model filler: `schema` is fillSchema(form), for models with guided
78
+ * generation; others can ignore it (the prompt describes the fields too). Resolve with the
79
+ * reply as text, or as an object already parsed.
80
+ */
81
+ export type FillGenerate = (instructions: string, prompt: string, schema: Record<string, unknown>) => Promise<unknown>;
82
+ /**
83
+ * A filler backed by a model: asks it with fillPrompt and reads the reply with readFill. With
84
+ * `fallback`, fields the model left out are filled by that filler (ruleFiller, say), and a
85
+ * model that fails or gives no usable answer falls back entirely.
86
+ */
87
+ export declare function modelFiller(generate: FillGenerate, fallback?: FormFiller): FormFiller;
88
+ /** Words a recognizer should expect for the whole form: field names, units and choice labels. */
89
+ export declare function fillHints(form: FillForm): string[];
@@ -11,6 +11,8 @@ export * from './datasource';
11
11
  export * from './transform';
12
12
  export * from './grafana';
13
13
  export * from './inputs';
14
+ export * from './speech';
15
+ export * from './formFill';
14
16
  export * from './local';
15
17
  export * from './gazetteer';
16
18
  export * from './links';
@@ -234,7 +234,6 @@
234
234
 
235
235
 
236
236
 
237
- var _chunkG67L7TFKjs = require('../chunk-G67L7TFK.js');
238
237
 
239
238
 
240
239
 
@@ -252,6 +251,7 @@ var _chunkG67L7TFKjs = require('../chunk-G67L7TFK.js');
252
251
 
253
252
 
254
253
 
254
+ var _chunkXWSPLZNCjs = require('../chunk-XWSPLZNC.js');
255
255
 
256
256
 
257
257
 
@@ -471,4 +471,38 @@ var _chunkG67L7TFKjs = require('../chunk-G67L7TFK.js');
471
471
 
472
472
 
473
473
 
474
- exports.ALL = _chunkG67L7TFKjs.ALL; exports.AUTHORING_GUIDE = _chunkG67L7TFKjs.AUTHORING_GUIDE; exports.BUNDLE_ACCEPT = _chunkG67L7TFKjs.BUNDLE_ACCEPT; exports.BUNDLE_TYPE = _chunkG67L7TFKjs.BUNDLE_TYPE; exports.CANVAS_GAP = _chunkG67L7TFKjs.CANVAS_GAP; exports.CANVAS_ROW_HEADER = _chunkG67L7TFKjs.CANVAS_ROW_HEADER; exports.ConfigLoader = _chunkG67L7TFKjs.ConfigLoader; exports.DASHBOARD_DS = _chunkG67L7TFKjs.DASHBOARD_DS; exports.DEFAULT_GAZETTEER = _chunkG67L7TFKjs.DEFAULT_GAZETTEER; exports.DOCUMENT_GUIDE = _chunkG67L7TFKjs.DOCUMENT_GUIDE; exports.EDITABLE_VARIABLE_TYPES = _chunkG67L7TFKjs.EDITABLE_VARIABLE_TYPES; exports.EXAMPLE_TEMPLATE = _chunkG67L7TFKjs.EXAMPLE_TEMPLATE; exports.GRID_COLUMNS = _chunkG67L7TFKjs.GRID_COLUMNS; exports.GROUP_FIELD_TYPES = _chunkG67L7TFKjs.GROUP_FIELD_TYPES; exports.GrafanaClient = _chunkG67L7TFKjs.GrafanaClient; exports.GrafanaDataSource = _chunkG67L7TFKjs.GrafanaDataSource; exports.GrafanaError = _chunkG67L7TFKjs.GrafanaError; exports.HttpConfigFiles = _chunkG67L7TFKjs.HttpConfigFiles; exports.INPUT_GROUP = _chunkG67L7TFKjs.INPUT_GROUP; exports.INPUT_OPTION_KEYS = _chunkG67L7TFKjs.INPUT_OPTION_KEYS; exports.INPUT_TYPES = _chunkG67L7TFKjs.INPUT_TYPES; exports.LOCAL_DATASOURCE_TYPE = _chunkG67L7TFKjs.LOCAL_DATASOURCE_TYPE; exports.LocalDataSource = _chunkG67L7TFKjs.LocalDataSource; exports.MANIFEST_VERSION = _chunkG67L7TFKjs.MANIFEST_VERSION; exports.MAPPING_TYPES = _chunkG67L7TFKjs.MAPPING_TYPES; exports.MemoryEntryStore = _chunkG67L7TFKjs.MemoryEntryStore; exports.NAMED_COLORS = _chunkG67L7TFKjs.NAMED_COLORS; exports.OPTION_CATEGORIES = _chunkG67L7TFKjs.OPTION_CATEGORIES; exports.OVERRIDE_MATCHERS = _chunkG67L7TFKjs.OVERRIDE_MATCHERS; exports.PANEL_TYPES = _chunkG67L7TFKjs.PANEL_TYPES; exports.REDUCER_LABELS = _chunkG67L7TFKjs.REDUCER_LABELS; exports.REFRESH_CHOICES = _chunkG67L7TFKjs.REFRESH_CHOICES; exports.RELATIVE_RANGES = _chunkG67L7TFKjs.RELATIVE_RANGES; exports.SERIES_PALETTE = _chunkG67L7TFKjs.SERIES_PALETTE; exports.SNIPPET_VERSION = _chunkG67L7TFKjs.SNIPPET_VERSION; exports.SPECIAL_MATCHES = _chunkG67L7TFKjs.SPECIAL_MATCHES; exports.SaveConflictError = _chunkG67L7TFKjs.SaveConflictError; exports.TEMPLATE_VERSION = _chunkG67L7TFKjs.TEMPLATE_VERSION; exports.TIME_PRESETS = _chunkG67L7TFKjs.TIME_PRESETS; exports.UNIT_CHOICES = _chunkG67L7TFKjs.UNIT_CHOICES; exports.addTime = _chunkG67L7TFKjs.addTime; exports.appSchema = _chunkG67L7TFKjs.appSchema; exports.applyDashboardLink = _chunkG67L7TFKjs.applyDashboardLink; exports.applyJsonEdits = _chunkG67L7TFKjs.applyJsonEdits; exports.applyTemplate = _chunkG67L7TFKjs.applyTemplate; exports.applyTransformations = _chunkG67L7TFKjs.applyTransformations; exports.assembleBundle = _chunkG67L7TFKjs.assembleBundle; exports.assembleFromResponse = _chunkG67L7TFKjs.assembleFromResponse; exports.buildFrames = _chunkG67L7TFKjs.buildFrames; exports.bundleFromFiles = _chunkG67L7TFKjs.bundleFromFiles; exports.bundleRoot = _chunkG67L7TFKjs.bundleRoot; exports.calculateInterval = _chunkG67L7TFKjs.calculateInterval; exports.checkFiles = _chunkG67L7TFKjs.checkFiles; exports.cleanDashboard = _chunkG67L7TFKjs.cleanDashboard; exports.cleanPanelOptions = _chunkG67L7TFKjs.cleanPanelOptions; exports.collapseRow = _chunkG67L7TFKjs.collapseRow; exports.compactGrid = _chunkG67L7TFKjs.compactGrid; exports.copyPanels = _chunkG67L7TFKjs.copyPanels; exports.dashboardSchema = _chunkG67L7TFKjs.dashboardSchema; exports.dashboardSchemaIssues = _chunkG67L7TFKjs.dashboardSchemaIssues; exports.dashboardSourceIds = _chunkG67L7TFKjs.dashboardSourceIds; exports.defaultFetchJson = _chunkG67L7TFKjs.defaultFetchJson; exports.describeRange = _chunkG67L7TFKjs.describeRange; exports.diffJson = _chunkG67L7TFKjs.diffJson; exports.documentChanges = _chunkG67L7TFKjs.documentChanges; exports.documentIdFor = _chunkG67L7TFKjs.documentIdFor; exports.documentKind = _chunkG67L7TFKjs.documentKind; exports.documentPrompt = _chunkG67L7TFKjs.documentPrompt; exports.documentUses = _chunkG67L7TFKjs.documentUses; exports.dropTarget = _chunkG67L7TFKjs.dropTarget; exports.duplicatePanel = _chunkG67L7TFKjs.duplicatePanel; exports.entriesSavedWith = _chunkG67L7TFKjs.entriesSavedWith; exports.entriesToItems = _chunkG67L7TFKjs.entriesToItems; exports.entryToInputValue = _chunkG67L7TFKjs.entryToInputValue; exports.expandRow = _chunkG67L7TFKjs.expandRow; exports.fetchBundle = _chunkG67L7TFKjs.fetchBundle; exports.fetchJsonWithToken = _chunkG67L7TFKjs.fetchJsonWithToken; exports.fieldDisplayName = _chunkG67L7TFKjs.fieldDisplayName; exports.fieldMatches = _chunkG67L7TFKjs.fieldMatches; exports.fixDocumentPrompt = _chunkG67L7TFKjs.fixDocumentPrompt; exports.fixTemplatePrompt = _chunkG67L7TFKjs.fixTemplatePrompt; exports.formatClock = _chunkG67L7TFKjs.formatClock; exports.formatDisplay = _chunkG67L7TFKjs.formatDisplay; exports.formatDuration = _chunkG67L7TFKjs.formatDuration; exports.formatJsonText = _chunkG67L7TFKjs.formatJsonText; exports.formatLocalDateTime = _chunkG67L7TFKjs.formatLocalDateTime; exports.formatValue = _chunkG67L7TFKjs.formatValue; exports.frameLength = _chunkG67L7TFKjs.frameLength; exports.framesToOptions = _chunkG67L7TFKjs.framesToOptions; exports.fromWire = _chunkG67L7TFKjs.fromWire; exports.getPath = _chunkG67L7TFKjs.getPath; exports.gridOffsetPx = _chunkG67L7TFKjs.gridOffsetPx; exports.gridUnitsToPx = _chunkG67L7TFKjs.gridUnitsToPx; exports.groupField = _chunkG67L7TFKjs.groupField; exports.groupFields = _chunkG67L7TFKjs.groupFields; exports.groupProblems = _chunkG67L7TFKjs.groupProblems; exports.groupToEntries = _chunkG67L7TFKjs.groupToEntries; exports.httpFetchJson = _chunkG67L7TFKjs.httpFetchJson; exports.initialVariableValues = _chunkG67L7TFKjs.initialVariableValues; exports.inputGroups = _chunkG67L7TFKjs.inputGroups; exports.inputPanels = _chunkG67L7TFKjs.inputPanels; exports.inputProblem = _chunkG67L7TFKjs.inputProblem; exports.insertPanel = _chunkG67L7TFKjs.insertPanel; exports.interpolate = _chunkG67L7TFKjs.interpolate; exports.interpolateDeep = _chunkG67L7TFKjs.interpolateDeep; exports.isBundleResponse = _chunkG67L7TFKjs.isBundleResponse; exports.isEditableVariableType = _chunkG67L7TFKjs.isEditableVariableType; exports.isEmptyItem = _chunkG67L7TFKjs.isEmptyItem; exports.isFormPanelType = _chunkG67L7TFKjs.isFormPanelType; exports.isInputGroup = _chunkG67L7TFKjs.isInputGroup; exports.isInputPanel = _chunkG67L7TFKjs.isInputPanel; exports.isInputType = _chunkG67L7TFKjs.isInputType; exports.isLocalDatasource = _chunkG67L7TFKjs.isLocalDatasource; exports.isReducer = _chunkG67L7TFKjs.isReducer; exports.isRow = _chunkG67L7TFKjs.isRow; exports.isSqlDatasource = _chunkG67L7TFKjs.isSqlDatasource; exports.jsonFromAnswer = _chunkG67L7TFKjs.jsonFromAnswer; exports.layoutCanvas = _chunkG67L7TFKjs.layoutCanvas; exports.layoutDashboard = _chunkG67L7TFKjs.layoutDashboard; exports.lineColumn = _chunkG67L7TFKjs.lineColumn; exports.loadGazetteer = _chunkG67L7TFKjs.loadGazetteer; exports.locate = _chunkG67L7TFKjs.locate; exports.makeTemplate = _chunkG67L7TFKjs.makeTemplate; exports.manifestSchemaIssues = _chunkG67L7TFKjs.manifestSchemaIssues; exports.mappedResult = _chunkG67L7TFKjs.mappedResult; exports.mappingProblem = _chunkG67L7TFKjs.mappingProblem; exports.mappingRow = _chunkG67L7TFKjs.mappingRow; exports.mappingRows = _chunkG67L7TFKjs.mappingRows; exports.metricChanges = _chunkG67L7TFKjs.metricChanges; exports.movePanel = _chunkG67L7TFKjs.movePanel; exports.newDocument = _chunkG67L7TFKjs.newDocument; exports.newPanel = _chunkG67L7TFKjs.newPanel; exports.newSaveId = _chunkG67L7TFKjs.newSaveId; exports.newVariable = _chunkG67L7TFKjs.newVariable; exports.nextPanelId = _chunkG67L7TFKjs.nextPanelId; exports.normalizeRef = _chunkG67L7TFKjs.normalizeRef; exports.numberFields = _chunkG67L7TFKjs.numberFields; exports.optionValue = _chunkG67L7TFKjs.optionValue; exports.overrideProperties = _chunkG67L7TFKjs.overrideProperties; exports.panelEdits = _chunkG67L7TFKjs.panelEdits; exports.panelHasQueries = _chunkG67L7TFKjs.panelHasQueries; exports.panelKey = _chunkG67L7TFKjs.panelKey; exports.panelMetrics = _chunkG67L7TFKjs.panelMetrics; exports.panelOptions = _chunkG67L7TFKjs.panelOptions; exports.panelOverrides = _chunkG67L7TFKjs.panelOverrides; exports.panelSize = _chunkG67L7TFKjs.panelSize; exports.panelSpan = _chunkG67L7TFKjs.panelSpan; exports.parseClockDigits = _chunkG67L7TFKjs.parseClockDigits; exports.parseDashboardLink = _chunkG67L7TFKjs.parseDashboardLink; exports.parseDuration = _chunkG67L7TFKjs.parseDuration; exports.parseGazetteer = _chunkG67L7TFKjs.parseGazetteer; exports.parseJsonText = _chunkG67L7TFKjs.parseJsonText; exports.parseLocalDateTime = _chunkG67L7TFKjs.parseLocalDateTime; exports.parseRange = _chunkG67L7TFKjs.parseRange; exports.parseSnippet = _chunkG67L7TFKjs.parseSnippet; exports.parseTemplate = _chunkG67L7TFKjs.parseTemplate; exports.parseTime = _chunkG67L7TFKjs.parseTime; exports.pasteSnippet = _chunkG67L7TFKjs.pasteSnippet; exports.placePanel = _chunkG67L7TFKjs.placePanel; exports.plainInputPanels = _chunkG67L7TFKjs.plainInputPanels; exports.pointerToPath = _chunkG67L7TFKjs.pointerToPath; exports.prepareDashboard = _chunkG67L7TFKjs.prepareDashboard; exports.previewPaste = _chunkG67L7TFKjs.previewPaste; exports.queryPanel = _chunkG67L7TFKjs.queryPanel; exports.queryParam = _chunkG67L7TFKjs.queryParam; exports.readConfigFiles = _chunkG67L7TFKjs.readConfigFiles; exports.readDocumentAnswer = _chunkG67L7TFKjs.readDocumentAnswer; exports.readTemplateAnswer = _chunkG67L7TFKjs.readTemplateAnswer; exports.readingOrder = _chunkG67L7TFKjs.readingOrder; exports.reduce = _chunkG67L7TFKjs.reduce; exports.refineOptions = _chunkG67L7TFKjs.refineOptions; exports.refreshedVariables = _chunkG67L7TFKjs.refreshedVariables; exports.removeDocumentFromManifest = _chunkG67L7TFKjs.removeDocumentFromManifest; exports.removePanel = _chunkG67L7TFKjs.removePanel; exports.renameDocumentInManifest = _chunkG67L7TFKjs.renameDocumentInManifest; exports.renameMetrics = _chunkG67L7TFKjs.renameMetrics; exports.renameVariableInPanels = _chunkG67L7TFKjs.renameVariableInPanels; exports.repack = _chunkG67L7TFKjs.repack; exports.repeatOptions = _chunkG67L7TFKjs.repeatOptions; exports.requiredManifestVersion = _chunkG67L7TFKjs.requiredManifestVersion; exports.resizePanel = _chunkG67L7TFKjs.resizePanel; exports.resolveColor = _chunkG67L7TFKjs.resolveColor; exports.resolveFieldConfig = _chunkG67L7TFKjs.resolveFieldConfig; exports.resolveLinks = _chunkG67L7TFKjs.resolveLinks; exports.resolveTimezone = _chunkG67L7TFKjs.resolveTimezone; exports.resolveUrl = _chunkG67L7TFKjs.resolveUrl; exports.resolveVariables = _chunkG67L7TFKjs.resolveVariables; exports.revalidateBundle = _chunkG67L7TFKjs.revalidateBundle; exports.rowsToMappings = _chunkG67L7TFKjs.rowsToMappings; exports.sameSave = _chunkG67L7TFKjs.sameSave; exports.sampleEntries = _chunkG67L7TFKjs.sampleEntries; exports.screenDocuments = _chunkG67L7TFKjs.screenDocuments; exports.screenOfType = _chunkG67L7TFKjs.screenOfType; exports.selectValue = _chunkG67L7TFKjs.selectValue; exports.seriesColor = _chunkG67L7TFKjs.seriesColor; exports.setHiddenOnPhones = _chunkG67L7TFKjs.setHiddenOnPhones; exports.setJsonValue = _chunkG67L7TFKjs.setJsonValue; exports.setOption = _chunkG67L7TFKjs.setOption; exports.setOptionValue = _chunkG67L7TFKjs.setOptionValue; exports.setOverrides = _chunkG67L7TFKjs.setOverrides; exports.settleLayout = _chunkG67L7TFKjs.settleLayout; exports.snapToGrid = _chunkG67L7TFKjs.snapToGrid; exports.splitPath = _chunkG67L7TFKjs.splitPath; exports.startOf = _chunkG67L7TFKjs.startOf; exports.stringifyCompact = _chunkG67L7TFKjs.stringifyCompact; exports.tabIdFor = _chunkG67L7TFKjs.tabIdFor; exports.templateNeeds = _chunkG67L7TFKjs.templateNeeds; exports.templatePrompt = _chunkG67L7TFKjs.templatePrompt; exports.textSuggestions = _chunkG67L7TFKjs.textSuggestions; exports.thresholdStep = _chunkG67L7TFKjs.thresholdStep; exports.timeExprError = _chunkG67L7TFKjs.timeExprError; exports.timeField = _chunkG67L7TFKjs.timeField; exports.toEntries = _chunkG67L7TFKjs.toEntries; exports.toMillis = _chunkG67L7TFKjs.toMillis; exports.toSeries = _chunkG67L7TFKjs.toSeries; exports.toXYSeries = _chunkG67L7TFKjs.toXYSeries; exports.uniqueNames = _chunkG67L7TFKjs.uniqueNames; exports.validateBundle = _chunkG67L7TFKjs.validateBundle; exports.validateDashboard = _chunkG67L7TFKjs.validateDashboard; exports.validateManifest = _chunkG67L7TFKjs.validateManifest; exports.valueColor = _chunkG67L7TFKjs.valueColor; exports.valueText = _chunkG67L7TFKjs.valueText; exports.variableDependents = _chunkG67L7TFKjs.variableDependents; exports.variableInfo = _chunkG67L7TFKjs.variableInfo; exports.variableNameError = _chunkG67L7TFKjs.variableNameError; exports.variableOptions = _chunkG67L7TFKjs.variableOptions; exports.variableOrder = _chunkG67L7TFKjs.variableOrder; exports.variableReferences = _chunkG67L7TFKjs.variableReferences; exports.variableUses = _chunkG67L7TFKjs.variableUses; exports.variableWithCurrent = _chunkG67L7TFKjs.variableWithCurrent; exports.variableWithFlags = _chunkG67L7TFKjs.variableWithFlags; exports.variableWithQuery = _chunkG67L7TFKjs.variableWithQuery; exports.variableWithType = _chunkG67L7TFKjs.variableWithType; exports.visibleVariables = _chunkG67L7TFKjs.visibleVariables; exports.zoomRange = _chunkG67L7TFKjs.zoomRange;
474
+
475
+
476
+
477
+
478
+
479
+
480
+
481
+
482
+
483
+
484
+
485
+
486
+
487
+
488
+
489
+
490
+
491
+
492
+
493
+
494
+
495
+
496
+
497
+
498
+
499
+
500
+
501
+
502
+
503
+
504
+
505
+
506
+
507
+
508
+ exports.ALL = _chunkXWSPLZNCjs.ALL; exports.AUTHORING_GUIDE = _chunkXWSPLZNCjs.AUTHORING_GUIDE; exports.BUNDLE_ACCEPT = _chunkXWSPLZNCjs.BUNDLE_ACCEPT; exports.BUNDLE_TYPE = _chunkXWSPLZNCjs.BUNDLE_TYPE; exports.CANVAS_GAP = _chunkXWSPLZNCjs.CANVAS_GAP; exports.CANVAS_ROW_HEADER = _chunkXWSPLZNCjs.CANVAS_ROW_HEADER; exports.ConfigLoader = _chunkXWSPLZNCjs.ConfigLoader; exports.DASHBOARD_DS = _chunkXWSPLZNCjs.DASHBOARD_DS; exports.DEFAULT_GAZETTEER = _chunkXWSPLZNCjs.DEFAULT_GAZETTEER; exports.DICTATION_TYPES = _chunkXWSPLZNCjs.DICTATION_TYPES; exports.DOCUMENT_GUIDE = _chunkXWSPLZNCjs.DOCUMENT_GUIDE; exports.EDITABLE_VARIABLE_TYPES = _chunkXWSPLZNCjs.EDITABLE_VARIABLE_TYPES; exports.EXAMPLE_TEMPLATE = _chunkXWSPLZNCjs.EXAMPLE_TEMPLATE; exports.GRID_COLUMNS = _chunkXWSPLZNCjs.GRID_COLUMNS; exports.GROUP_FIELD_TYPES = _chunkXWSPLZNCjs.GROUP_FIELD_TYPES; exports.GrafanaClient = _chunkXWSPLZNCjs.GrafanaClient; exports.GrafanaDataSource = _chunkXWSPLZNCjs.GrafanaDataSource; exports.GrafanaError = _chunkXWSPLZNCjs.GrafanaError; exports.HttpConfigFiles = _chunkXWSPLZNCjs.HttpConfigFiles; exports.INPUT_GROUP = _chunkXWSPLZNCjs.INPUT_GROUP; exports.INPUT_OPTION_KEYS = _chunkXWSPLZNCjs.INPUT_OPTION_KEYS; exports.INPUT_TYPES = _chunkXWSPLZNCjs.INPUT_TYPES; exports.LOCAL_DATASOURCE_TYPE = _chunkXWSPLZNCjs.LOCAL_DATASOURCE_TYPE; exports.LocalDataSource = _chunkXWSPLZNCjs.LocalDataSource; exports.MANIFEST_VERSION = _chunkXWSPLZNCjs.MANIFEST_VERSION; exports.MAPPING_TYPES = _chunkXWSPLZNCjs.MAPPING_TYPES; exports.MemoryEntryStore = _chunkXWSPLZNCjs.MemoryEntryStore; exports.NAMED_COLORS = _chunkXWSPLZNCjs.NAMED_COLORS; exports.OPTION_CATEGORIES = _chunkXWSPLZNCjs.OPTION_CATEGORIES; exports.OVERRIDE_MATCHERS = _chunkXWSPLZNCjs.OVERRIDE_MATCHERS; exports.PANEL_TYPES = _chunkXWSPLZNCjs.PANEL_TYPES; exports.REDUCER_LABELS = _chunkXWSPLZNCjs.REDUCER_LABELS; exports.REFRESH_CHOICES = _chunkXWSPLZNCjs.REFRESH_CHOICES; exports.RELATIVE_RANGES = _chunkXWSPLZNCjs.RELATIVE_RANGES; exports.SERIES_PALETTE = _chunkXWSPLZNCjs.SERIES_PALETTE; exports.SNIPPET_VERSION = _chunkXWSPLZNCjs.SNIPPET_VERSION; exports.SPECIAL_MATCHES = _chunkXWSPLZNCjs.SPECIAL_MATCHES; exports.SaveConflictError = _chunkXWSPLZNCjs.SaveConflictError; exports.TEMPLATE_VERSION = _chunkXWSPLZNCjs.TEMPLATE_VERSION; exports.TIME_PRESETS = _chunkXWSPLZNCjs.TIME_PRESETS; exports.UNIT_CHOICES = _chunkXWSPLZNCjs.UNIT_CHOICES; exports.addTime = _chunkXWSPLZNCjs.addTime; exports.appSchema = _chunkXWSPLZNCjs.appSchema; exports.applyDashboardLink = _chunkXWSPLZNCjs.applyDashboardLink; exports.applyJsonEdits = _chunkXWSPLZNCjs.applyJsonEdits; exports.applyTemplate = _chunkXWSPLZNCjs.applyTemplate; exports.applyTransformations = _chunkXWSPLZNCjs.applyTransformations; exports.assembleBundle = _chunkXWSPLZNCjs.assembleBundle; exports.assembleFromResponse = _chunkXWSPLZNCjs.assembleFromResponse; exports.buildFrames = _chunkXWSPLZNCjs.buildFrames; exports.bundleFromFiles = _chunkXWSPLZNCjs.bundleFromFiles; exports.bundleRoot = _chunkXWSPLZNCjs.bundleRoot; exports.calculateInterval = _chunkXWSPLZNCjs.calculateInterval; exports.checkFiles = _chunkXWSPLZNCjs.checkFiles; exports.cleanDashboard = _chunkXWSPLZNCjs.cleanDashboard; exports.cleanPanelOptions = _chunkXWSPLZNCjs.cleanPanelOptions; exports.collapseRow = _chunkXWSPLZNCjs.collapseRow; exports.compactGrid = _chunkXWSPLZNCjs.compactGrid; exports.copyPanels = _chunkXWSPLZNCjs.copyPanels; exports.dashboardSchema = _chunkXWSPLZNCjs.dashboardSchema; exports.dashboardSchemaIssues = _chunkXWSPLZNCjs.dashboardSchemaIssues; exports.dashboardSourceIds = _chunkXWSPLZNCjs.dashboardSourceIds; exports.defaultFetchJson = _chunkXWSPLZNCjs.defaultFetchJson; exports.describeRange = _chunkXWSPLZNCjs.describeRange; exports.dictationHints = _chunkXWSPLZNCjs.dictationHints; exports.diffJson = _chunkXWSPLZNCjs.diffJson; exports.documentChanges = _chunkXWSPLZNCjs.documentChanges; exports.documentIdFor = _chunkXWSPLZNCjs.documentIdFor; exports.documentKind = _chunkXWSPLZNCjs.documentKind; exports.documentPrompt = _chunkXWSPLZNCjs.documentPrompt; exports.documentUses = _chunkXWSPLZNCjs.documentUses; exports.dropTarget = _chunkXWSPLZNCjs.dropTarget; exports.duplicatePanel = _chunkXWSPLZNCjs.duplicatePanel; exports.entriesSavedWith = _chunkXWSPLZNCjs.entriesSavedWith; exports.entriesToItems = _chunkXWSPLZNCjs.entriesToItems; exports.entryToInputValue = _chunkXWSPLZNCjs.entryToInputValue; exports.expandRow = _chunkXWSPLZNCjs.expandRow; exports.fetchBundle = _chunkXWSPLZNCjs.fetchBundle; exports.fetchJsonWithToken = _chunkXWSPLZNCjs.fetchJsonWithToken; exports.fieldDisplayName = _chunkXWSPLZNCjs.fieldDisplayName; exports.fieldMatches = _chunkXWSPLZNCjs.fieldMatches; exports.fillForm = _chunkXWSPLZNCjs.fillForm; exports.fillHints = _chunkXWSPLZNCjs.fillHints; exports.fillPrompt = _chunkXWSPLZNCjs.fillPrompt; exports.fillSchema = _chunkXWSPLZNCjs.fillSchema; exports.fixDocumentPrompt = _chunkXWSPLZNCjs.fixDocumentPrompt; exports.fixTemplatePrompt = _chunkXWSPLZNCjs.fixTemplatePrompt; exports.formatClock = _chunkXWSPLZNCjs.formatClock; exports.formatDisplay = _chunkXWSPLZNCjs.formatDisplay; exports.formatDuration = _chunkXWSPLZNCjs.formatDuration; exports.formatJsonText = _chunkXWSPLZNCjs.formatJsonText; exports.formatLocalDateTime = _chunkXWSPLZNCjs.formatLocalDateTime; exports.formatValue = _chunkXWSPLZNCjs.formatValue; exports.frameLength = _chunkXWSPLZNCjs.frameLength; exports.framesToOptions = _chunkXWSPLZNCjs.framesToOptions; exports.fromWire = _chunkXWSPLZNCjs.fromWire; exports.getPath = _chunkXWSPLZNCjs.getPath; exports.gridOffsetPx = _chunkXWSPLZNCjs.gridOffsetPx; exports.gridUnitsToPx = _chunkXWSPLZNCjs.gridUnitsToPx; exports.groupField = _chunkXWSPLZNCjs.groupField; exports.groupFields = _chunkXWSPLZNCjs.groupFields; exports.groupProblems = _chunkXWSPLZNCjs.groupProblems; exports.groupToEntries = _chunkXWSPLZNCjs.groupToEntries; exports.httpFetchJson = _chunkXWSPLZNCjs.httpFetchJson; exports.initialVariableValues = _chunkXWSPLZNCjs.initialVariableValues; exports.inputGroups = _chunkXWSPLZNCjs.inputGroups; exports.inputPanels = _chunkXWSPLZNCjs.inputPanels; exports.inputProblem = _chunkXWSPLZNCjs.inputProblem; exports.insertPanel = _chunkXWSPLZNCjs.insertPanel; exports.interpolate = _chunkXWSPLZNCjs.interpolate; exports.interpolateDeep = _chunkXWSPLZNCjs.interpolateDeep; exports.isBundleResponse = _chunkXWSPLZNCjs.isBundleResponse; exports.isEditableVariableType = _chunkXWSPLZNCjs.isEditableVariableType; exports.isEmptyItem = _chunkXWSPLZNCjs.isEmptyItem; exports.isFormPanelType = _chunkXWSPLZNCjs.isFormPanelType; exports.isInputGroup = _chunkXWSPLZNCjs.isInputGroup; exports.isInputPanel = _chunkXWSPLZNCjs.isInputPanel; exports.isInputType = _chunkXWSPLZNCjs.isInputType; exports.isLocalDatasource = _chunkXWSPLZNCjs.isLocalDatasource; exports.isReducer = _chunkXWSPLZNCjs.isReducer; exports.isRow = _chunkXWSPLZNCjs.isRow; exports.isSqlDatasource = _chunkXWSPLZNCjs.isSqlDatasource; exports.jsonFromAnswer = _chunkXWSPLZNCjs.jsonFromAnswer; exports.layoutCanvas = _chunkXWSPLZNCjs.layoutCanvas; exports.layoutDashboard = _chunkXWSPLZNCjs.layoutDashboard; exports.lineColumn = _chunkXWSPLZNCjs.lineColumn; exports.loadGazetteer = _chunkXWSPLZNCjs.loadGazetteer; exports.locate = _chunkXWSPLZNCjs.locate; exports.makeTemplate = _chunkXWSPLZNCjs.makeTemplate; exports.manifestSchemaIssues = _chunkXWSPLZNCjs.manifestSchemaIssues; exports.mappedResult = _chunkXWSPLZNCjs.mappedResult; exports.mappingProblem = _chunkXWSPLZNCjs.mappingProblem; exports.mappingRow = _chunkXWSPLZNCjs.mappingRow; exports.mappingRows = _chunkXWSPLZNCjs.mappingRows; exports.matchChoices = _chunkXWSPLZNCjs.matchChoices; exports.metricChanges = _chunkXWSPLZNCjs.metricChanges; exports.modelFiller = _chunkXWSPLZNCjs.modelFiller; exports.movePanel = _chunkXWSPLZNCjs.movePanel; exports.newDocument = _chunkXWSPLZNCjs.newDocument; exports.newPanel = _chunkXWSPLZNCjs.newPanel; exports.newSaveId = _chunkXWSPLZNCjs.newSaveId; exports.newVariable = _chunkXWSPLZNCjs.newVariable; exports.nextPanelId = _chunkXWSPLZNCjs.nextPanelId; exports.normalizeRef = _chunkXWSPLZNCjs.normalizeRef; exports.numberFields = _chunkXWSPLZNCjs.numberFields; exports.optionValue = _chunkXWSPLZNCjs.optionValue; exports.overrideProperties = _chunkXWSPLZNCjs.overrideProperties; exports.panelEdits = _chunkXWSPLZNCjs.panelEdits; exports.panelHasQueries = _chunkXWSPLZNCjs.panelHasQueries; exports.panelKey = _chunkXWSPLZNCjs.panelKey; exports.panelMetrics = _chunkXWSPLZNCjs.panelMetrics; exports.panelOptions = _chunkXWSPLZNCjs.panelOptions; exports.panelOverrides = _chunkXWSPLZNCjs.panelOverrides; exports.panelSize = _chunkXWSPLZNCjs.panelSize; exports.panelSpan = _chunkXWSPLZNCjs.panelSpan; exports.parseClockDigits = _chunkXWSPLZNCjs.parseClockDigits; exports.parseDashboardLink = _chunkXWSPLZNCjs.parseDashboardLink; exports.parseDuration = _chunkXWSPLZNCjs.parseDuration; exports.parseFillAnswer = _chunkXWSPLZNCjs.parseFillAnswer; exports.parseGazetteer = _chunkXWSPLZNCjs.parseGazetteer; exports.parseJsonText = _chunkXWSPLZNCjs.parseJsonText; exports.parseLocalDateTime = _chunkXWSPLZNCjs.parseLocalDateTime; exports.parseRange = _chunkXWSPLZNCjs.parseRange; exports.parseSnippet = _chunkXWSPLZNCjs.parseSnippet; exports.parseSpokenDuration = _chunkXWSPLZNCjs.parseSpokenDuration; exports.parseSpokenNumber = _chunkXWSPLZNCjs.parseSpokenNumber; exports.parseSpokenYesNo = _chunkXWSPLZNCjs.parseSpokenYesNo; exports.parseTemplate = _chunkXWSPLZNCjs.parseTemplate; exports.parseTime = _chunkXWSPLZNCjs.parseTime; exports.pasteSnippet = _chunkXWSPLZNCjs.pasteSnippet; exports.placePanel = _chunkXWSPLZNCjs.placePanel; exports.plainInputPanels = _chunkXWSPLZNCjs.plainInputPanels; exports.pointerToPath = _chunkXWSPLZNCjs.pointerToPath; exports.prepareDashboard = _chunkXWSPLZNCjs.prepareDashboard; exports.previewPaste = _chunkXWSPLZNCjs.previewPaste; exports.queryPanel = _chunkXWSPLZNCjs.queryPanel; exports.queryParam = _chunkXWSPLZNCjs.queryParam; exports.readConfigFiles = _chunkXWSPLZNCjs.readConfigFiles; exports.readDocumentAnswer = _chunkXWSPLZNCjs.readDocumentAnswer; exports.readFill = _chunkXWSPLZNCjs.readFill; exports.readTemplateAnswer = _chunkXWSPLZNCjs.readTemplateAnswer; exports.readingOrder = _chunkXWSPLZNCjs.readingOrder; exports.reduce = _chunkXWSPLZNCjs.reduce; exports.refineOptions = _chunkXWSPLZNCjs.refineOptions; exports.refreshedVariables = _chunkXWSPLZNCjs.refreshedVariables; exports.removeDocumentFromManifest = _chunkXWSPLZNCjs.removeDocumentFromManifest; exports.removePanel = _chunkXWSPLZNCjs.removePanel; exports.renameDocumentInManifest = _chunkXWSPLZNCjs.renameDocumentInManifest; exports.renameMetrics = _chunkXWSPLZNCjs.renameMetrics; exports.renameVariableInPanels = _chunkXWSPLZNCjs.renameVariableInPanels; exports.repack = _chunkXWSPLZNCjs.repack; exports.repeatOptions = _chunkXWSPLZNCjs.repeatOptions; exports.requiredManifestVersion = _chunkXWSPLZNCjs.requiredManifestVersion; exports.resizePanel = _chunkXWSPLZNCjs.resizePanel; exports.resolveColor = _chunkXWSPLZNCjs.resolveColor; exports.resolveFieldConfig = _chunkXWSPLZNCjs.resolveFieldConfig; exports.resolveLinks = _chunkXWSPLZNCjs.resolveLinks; exports.resolveTimezone = _chunkXWSPLZNCjs.resolveTimezone; exports.resolveUrl = _chunkXWSPLZNCjs.resolveUrl; exports.resolveVariables = _chunkXWSPLZNCjs.resolveVariables; exports.revalidateBundle = _chunkXWSPLZNCjs.revalidateBundle; exports.rowsToMappings = _chunkXWSPLZNCjs.rowsToMappings; exports.ruleFill = _chunkXWSPLZNCjs.ruleFill; exports.ruleFiller = _chunkXWSPLZNCjs.ruleFiller; exports.sameSave = _chunkXWSPLZNCjs.sameSave; exports.sampleEntries = _chunkXWSPLZNCjs.sampleEntries; exports.screenDocuments = _chunkXWSPLZNCjs.screenDocuments; exports.screenOfType = _chunkXWSPLZNCjs.screenOfType; exports.selectValue = _chunkXWSPLZNCjs.selectValue; exports.seriesColor = _chunkXWSPLZNCjs.seriesColor; exports.setHiddenOnPhones = _chunkXWSPLZNCjs.setHiddenOnPhones; exports.setJsonValue = _chunkXWSPLZNCjs.setJsonValue; exports.setOption = _chunkXWSPLZNCjs.setOption; exports.setOptionValue = _chunkXWSPLZNCjs.setOptionValue; exports.setOverrides = _chunkXWSPLZNCjs.setOverrides; exports.settleLayout = _chunkXWSPLZNCjs.settleLayout; exports.snapToGrid = _chunkXWSPLZNCjs.snapToGrid; exports.splitPath = _chunkXWSPLZNCjs.splitPath; exports.spokenValue = _chunkXWSPLZNCjs.spokenValue; exports.startOf = _chunkXWSPLZNCjs.startOf; exports.stringifyCompact = _chunkXWSPLZNCjs.stringifyCompact; exports.tabIdFor = _chunkXWSPLZNCjs.tabIdFor; exports.takesDictation = _chunkXWSPLZNCjs.takesDictation; exports.templateNeeds = _chunkXWSPLZNCjs.templateNeeds; exports.templatePrompt = _chunkXWSPLZNCjs.templatePrompt; exports.textSuggestions = _chunkXWSPLZNCjs.textSuggestions; exports.thresholdStep = _chunkXWSPLZNCjs.thresholdStep; exports.timeExprError = _chunkXWSPLZNCjs.timeExprError; exports.timeField = _chunkXWSPLZNCjs.timeField; exports.toEntries = _chunkXWSPLZNCjs.toEntries; exports.toMillis = _chunkXWSPLZNCjs.toMillis; exports.toSeries = _chunkXWSPLZNCjs.toSeries; exports.toXYSeries = _chunkXWSPLZNCjs.toXYSeries; exports.uniqueNames = _chunkXWSPLZNCjs.uniqueNames; exports.validateBundle = _chunkXWSPLZNCjs.validateBundle; exports.validateDashboard = _chunkXWSPLZNCjs.validateDashboard; exports.validateManifest = _chunkXWSPLZNCjs.validateManifest; exports.valueColor = _chunkXWSPLZNCjs.valueColor; exports.valueText = _chunkXWSPLZNCjs.valueText; exports.variableDependents = _chunkXWSPLZNCjs.variableDependents; exports.variableInfo = _chunkXWSPLZNCjs.variableInfo; exports.variableNameError = _chunkXWSPLZNCjs.variableNameError; exports.variableOptions = _chunkXWSPLZNCjs.variableOptions; exports.variableOrder = _chunkXWSPLZNCjs.variableOrder; exports.variableReferences = _chunkXWSPLZNCjs.variableReferences; exports.variableUses = _chunkXWSPLZNCjs.variableUses; exports.variableWithCurrent = _chunkXWSPLZNCjs.variableWithCurrent; exports.variableWithFlags = _chunkXWSPLZNCjs.variableWithFlags; exports.variableWithQuery = _chunkXWSPLZNCjs.variableWithQuery; exports.variableWithType = _chunkXWSPLZNCjs.variableWithType; exports.visibleVariables = _chunkXWSPLZNCjs.visibleVariables; exports.zoomRange = _chunkXWSPLZNCjs.zoomRange;
@@ -8,6 +8,7 @@ import {
8
8
  ConfigLoader,
9
9
  DASHBOARD_DS,
10
10
  DEFAULT_GAZETTEER,
11
+ DICTATION_TYPES,
11
12
  DOCUMENT_GUIDE,
12
13
  EDITABLE_VARIABLE_TYPES,
13
14
  EXAMPLE_TEMPLATE,
@@ -62,6 +63,7 @@ import {
62
63
  dashboardSourceIds,
63
64
  defaultFetchJson,
64
65
  describeRange,
66
+ dictationHints,
65
67
  diffJson,
66
68
  documentChanges,
67
69
  documentIdFor,
@@ -78,6 +80,10 @@ import {
78
80
  fetchJsonWithToken,
79
81
  fieldDisplayName,
80
82
  fieldMatches,
83
+ fillForm,
84
+ fillHints,
85
+ fillPrompt,
86
+ fillSchema,
81
87
  fixDocumentPrompt,
82
88
  fixTemplatePrompt,
83
89
  formatClock,
@@ -127,7 +133,9 @@ import {
127
133
  mappingProblem,
128
134
  mappingRow,
129
135
  mappingRows,
136
+ matchChoices,
130
137
  metricChanges,
138
+ modelFiller,
131
139
  movePanel,
132
140
  newDocument,
133
141
  newPanel,
@@ -149,11 +157,15 @@ import {
149
157
  parseClockDigits,
150
158
  parseDashboardLink,
151
159
  parseDuration,
160
+ parseFillAnswer,
152
161
  parseGazetteer,
153
162
  parseJsonText,
154
163
  parseLocalDateTime,
155
164
  parseRange,
156
165
  parseSnippet,
166
+ parseSpokenDuration,
167
+ parseSpokenNumber,
168
+ parseSpokenYesNo,
157
169
  parseTemplate,
158
170
  parseTime,
159
171
  pasteSnippet,
@@ -166,6 +178,7 @@ import {
166
178
  queryParam,
167
179
  readConfigFiles,
168
180
  readDocumentAnswer,
181
+ readFill,
169
182
  readTemplateAnswer,
170
183
  readingOrder,
171
184
  reduce,
@@ -188,6 +201,8 @@ import {
188
201
  resolveVariables,
189
202
  revalidateBundle,
190
203
  rowsToMappings,
204
+ ruleFill,
205
+ ruleFiller,
191
206
  sameSave,
192
207
  sampleEntries,
193
208
  screenDocuments,
@@ -202,9 +217,11 @@ import {
202
217
  settleLayout,
203
218
  snapToGrid,
204
219
  splitPath,
220
+ spokenValue,
205
221
  startOf,
206
222
  stringifyCompact,
207
223
  tabIdFor,
224
+ takesDictation,
208
225
  templateNeeds,
209
226
  templatePrompt,
210
227
  textSuggestions,
@@ -234,7 +251,7 @@ import {
234
251
  variableWithType,
235
252
  visibleVariables,
236
253
  zoomRange
237
- } from "../chunk-YUSXYDXG.mjs";
254
+ } from "../chunk-72OFPTDE.mjs";
238
255
  export {
239
256
  ALL,
240
257
  AUTHORING_GUIDE,
@@ -245,6 +262,7 @@ export {
245
262
  ConfigLoader,
246
263
  DASHBOARD_DS,
247
264
  DEFAULT_GAZETTEER,
265
+ DICTATION_TYPES,
248
266
  DOCUMENT_GUIDE,
249
267
  EDITABLE_VARIABLE_TYPES,
250
268
  EXAMPLE_TEMPLATE,
@@ -299,6 +317,7 @@ export {
299
317
  dashboardSourceIds,
300
318
  defaultFetchJson,
301
319
  describeRange,
320
+ dictationHints,
302
321
  diffJson,
303
322
  documentChanges,
304
323
  documentIdFor,
@@ -315,6 +334,10 @@ export {
315
334
  fetchJsonWithToken,
316
335
  fieldDisplayName,
317
336
  fieldMatches,
337
+ fillForm,
338
+ fillHints,
339
+ fillPrompt,
340
+ fillSchema,
318
341
  fixDocumentPrompt,
319
342
  fixTemplatePrompt,
320
343
  formatClock,
@@ -364,7 +387,9 @@ export {
364
387
  mappingProblem,
365
388
  mappingRow,
366
389
  mappingRows,
390
+ matchChoices,
367
391
  metricChanges,
392
+ modelFiller,
368
393
  movePanel,
369
394
  newDocument,
370
395
  newPanel,
@@ -386,11 +411,15 @@ export {
386
411
  parseClockDigits,
387
412
  parseDashboardLink,
388
413
  parseDuration,
414
+ parseFillAnswer,
389
415
  parseGazetteer,
390
416
  parseJsonText,
391
417
  parseLocalDateTime,
392
418
  parseRange,
393
419
  parseSnippet,
420
+ parseSpokenDuration,
421
+ parseSpokenNumber,
422
+ parseSpokenYesNo,
394
423
  parseTemplate,
395
424
  parseTime,
396
425
  pasteSnippet,
@@ -403,6 +432,7 @@ export {
403
432
  queryParam,
404
433
  readConfigFiles,
405
434
  readDocumentAnswer,
435
+ readFill,
406
436
  readTemplateAnswer,
407
437
  readingOrder,
408
438
  reduce,
@@ -425,6 +455,8 @@ export {
425
455
  resolveVariables,
426
456
  revalidateBundle,
427
457
  rowsToMappings,
458
+ ruleFill,
459
+ ruleFiller,
428
460
  sameSave,
429
461
  sampleEntries,
430
462
  screenDocuments,
@@ -439,9 +471,11 @@ export {
439
471
  settleLayout,
440
472
  snapToGrid,
441
473
  splitPath,
474
+ spokenValue,
442
475
  startOf,
443
476
  stringifyCompact,
444
477
  tabIdFor,
478
+ takesDictation,
445
479
  templateNeeds,
446
480
  templatePrompt,
447
481
  textSuggestions,
@@ -0,0 +1,36 @@
1
+ import { type InputChoice, type InputPanel, type InputValue } from './inputs';
2
+ /**
3
+ * The first number in what was said: "72.5", "seventy two point five", "minus three",
4
+ * "one twenty-five" (125), "two and a half", "a hundred and ten". Words around it
5
+ * ("about 80 kilos") are ignored. Null when there's no number.
6
+ */
7
+ export declare function parseSpokenNumber(text: string): number | null;
8
+ /** A duration in seconds: "1:32.45", "one minute thirty two point four five", "92 seconds", "an hour and ten minutes". */
9
+ export declare function parseSpokenDuration(text: string): number | null;
10
+ /**
11
+ * The choices mentioned in what was said, in the order they were said. Labels are matched
12
+ * as whole words, ignoring case, accents and plurals; the longest label wins where two
13
+ * overlap ("Very good" over "Good"). A spoken number also matches a choice whose label or
14
+ * value is that number.
15
+ */
16
+ export declare function matchChoices(text: string, choices: InputChoice[]): (string | number)[];
17
+ /** Yes or no from what was said, or null when it's neither. "No" wins when both are there ("not done"). */
18
+ export declare function parseSpokenYesNo(text: string): boolean | null;
19
+ /** What dictation into an input made of what was said: the new value, or why there isn't one. */
20
+ export type SpokenResult = {
21
+ value: InputValue;
22
+ } | {
23
+ problem: string;
24
+ };
25
+ /**
26
+ * The value an input takes from what was said. Text inputs take the words (added after
27
+ * what's there, for multi-line text); numbers, durations, choices and yes/no are read out
28
+ * of them. The value isn't checked against min, max or required: the form does that.
29
+ */
30
+ export declare function spokenValue(panel: InputPanel, said: string, current?: InputValue, choices?: InputChoice[]): SpokenResult;
31
+ /** Input types that show a dictation button. Sliders, ratings and toggles are a single tap already; counters record on tap. */
32
+ export declare const DICTATION_TYPES: InputPanel['type'][];
33
+ /** Whether an input offers dictation. */
34
+ export declare const takesDictation: (panel: InputPanel) => boolean;
35
+ /** Words a recognizer should expect for an input (its choice labels and unit), for recognizers that take hints. */
36
+ export declare function dictationHints(panel: InputPanel, choices?: InputChoice[]): string[];
package/dist/index.d.ts CHANGED
@@ -5,6 +5,7 @@ export { DashboardView, PanelCard, type DashboardViewProps } from './ui/Dashboar
5
5
  export { RenderBoundary } from './ui/RenderBoundary';
6
6
  export { DashboardToolbar, Chip } from './ui/Toolbar';
7
7
  export { InputForm, type InputFormProps } from './ui/inputs/InputForm';
8
+ export { webSpeechRecognizer, type DictationOptions, type DictationSession, type SpeechRecognizer } from './ui/speech';
8
9
  export { Calendar } from './ui/TimeRangeSheet';
9
10
  export { groupKey, InputFormContext, useInputForm, type FormGroup, type InputFormState } from './ui/inputs/formContext';
10
11
  export { registerPanel } from './ui/panels/registry';