@modelform/react-native 0.13.0 → 0.15.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/README.md +28 -0
- package/dist/{chunk-OFXIKI2L.mjs → chunk-GWGDDKJE.mjs} +544 -4
- package/dist/{chunk-CU4TMSZE.js → chunk-P4NMZ77W.js} +646 -106
- package/dist/core/formFill.d.ts +81 -0
- package/dist/core/index.d.ts +2 -0
- package/dist/core/index.js +22 -2
- package/dist/core/index.mjs +21 -1
- package/dist/core/ruleFill.d.ts +12 -0
- package/dist/index.js +340 -175
- package/dist/index.mjs +189 -24
- package/dist/ui/inputs/Dictation.d.ts +8 -2
- package/dist/ui/inputs/InputForm.d.ts +8 -1
- package/dist/ui/inputs/VoiceFill.d.ts +28 -0
- package/dist/ui/inputs/formContext.d.ts +2 -0
- package/dist/ui/speech.d.ts +5 -0
- package/package.json +1 -1
|
@@ -0,0 +1,81 @@
|
|
|
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
|
+
export declare const choicesOf: (p: InputPanel, runtime: Record<string, InputChoice[]>) => InputChoice[];
|
|
32
|
+
/** The fields a filler can fill: the form's inputs outside groups, except counters. */
|
|
33
|
+
export declare function fillForm(dashboard: Dashboard, choices?: Record<string, InputChoice[]>): FillForm;
|
|
34
|
+
/**
|
|
35
|
+
* JSON Schema for a filler's answer: an object with one optional property per field. Fillers
|
|
36
|
+
* with guided generation (Apple's DynamicGenerationSchema) can constrain output with it; others
|
|
37
|
+
* get it in the prompt. Either way readFill checks the answer.
|
|
38
|
+
*/
|
|
39
|
+
export declare function fillSchema(form: FillForm): Record<string, unknown>;
|
|
40
|
+
/** Instructions and prompt for a model filling the form from what was said. */
|
|
41
|
+
export declare function fillPrompt(form: FillForm, said: string): {
|
|
42
|
+
instructions: string;
|
|
43
|
+
prompt: string;
|
|
44
|
+
};
|
|
45
|
+
/** The JSON object in a model's reply: the whole reply, or the first {...} in it (models like code fences). */
|
|
46
|
+
export declare function parseFillAnswer(answer: unknown): Record<string, unknown> | null;
|
|
47
|
+
export interface FillResult {
|
|
48
|
+
/** Values for the inputs that were filled, keyed by metric. */
|
|
49
|
+
values: Record<string, InputValue>;
|
|
50
|
+
/** Fields the answer gave something for that couldn't be used, with why. */
|
|
51
|
+
problems: {
|
|
52
|
+
key: string;
|
|
53
|
+
problem: string;
|
|
54
|
+
}[];
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* A filler's answer as input values. Each value goes through spokenValue, so "72.5 kg",
|
|
58
|
+
* "seven and a half", a choice's label (or value) and true/"yes" all work, and anything that
|
|
59
|
+
* doesn't fit the input is reported instead of filled. Keys that aren't fields are ignored.
|
|
60
|
+
*/
|
|
61
|
+
export declare function readFill(form: FillForm, answer: unknown): FillResult;
|
|
62
|
+
/**
|
|
63
|
+
* Fills a form from what was said. The rule-based filler is the default; an on-device model can
|
|
64
|
+
* be dropped in later (see modelFiller) without changing the form. Whatever a filler returns
|
|
65
|
+
* should come from readFill, so it can only hold values typing could have entered.
|
|
66
|
+
*/
|
|
67
|
+
export type FormFiller = (form: FillForm, said: string) => Promise<FillResult>;
|
|
68
|
+
/**
|
|
69
|
+
* Generates a reply for a model filler: `schema` is fillSchema(form), for models with guided
|
|
70
|
+
* generation; others can ignore it (the prompt describes the fields too). Resolve with the
|
|
71
|
+
* reply as text, or as an object already parsed.
|
|
72
|
+
*/
|
|
73
|
+
export type FillGenerate = (instructions: string, prompt: string, schema: Record<string, unknown>) => Promise<unknown>;
|
|
74
|
+
/**
|
|
75
|
+
* A filler backed by a model: asks it with fillPrompt and reads the reply with readFill. With
|
|
76
|
+
* `fallback`, fields the model left out are filled by that filler (ruleFiller, say), and a
|
|
77
|
+
* model that fails or gives no usable answer falls back entirely.
|
|
78
|
+
*/
|
|
79
|
+
export declare function modelFiller(generate: FillGenerate, fallback?: FormFiller): FormFiller;
|
|
80
|
+
/** Words a recognizer should expect for the whole form: field names, units and choice labels. */
|
|
81
|
+
export declare function fillHints(form: FillForm): string[];
|
package/dist/core/index.d.ts
CHANGED
|
@@ -12,6 +12,8 @@ export * from './transform';
|
|
|
12
12
|
export * from './grafana';
|
|
13
13
|
export * from './inputs';
|
|
14
14
|
export * from './speech';
|
|
15
|
+
export * from './formFill';
|
|
16
|
+
export * from './ruleFill';
|
|
15
17
|
export * from './local';
|
|
16
18
|
export * from './gazetteer';
|
|
17
19
|
export * from './links';
|
package/dist/core/index.js
CHANGED
|
@@ -242,7 +242,6 @@
|
|
|
242
242
|
|
|
243
243
|
|
|
244
244
|
|
|
245
|
-
var _chunkCU4TMSZEjs = require('../chunk-CU4TMSZE.js');
|
|
246
245
|
|
|
247
246
|
|
|
248
247
|
|
|
@@ -253,6 +252,7 @@ var _chunkCU4TMSZEjs = require('../chunk-CU4TMSZE.js');
|
|
|
253
252
|
|
|
254
253
|
|
|
255
254
|
|
|
255
|
+
var _chunkP4NMZ77Wjs = require('../chunk-P4NMZ77W.js');
|
|
256
256
|
|
|
257
257
|
|
|
258
258
|
|
|
@@ -487,4 +487,24 @@ var _chunkCU4TMSZEjs = require('../chunk-CU4TMSZE.js');
|
|
|
487
487
|
|
|
488
488
|
|
|
489
489
|
|
|
490
|
-
exports.ALL = _chunkCU4TMSZEjs.ALL; exports.AUTHORING_GUIDE = _chunkCU4TMSZEjs.AUTHORING_GUIDE; exports.BUNDLE_ACCEPT = _chunkCU4TMSZEjs.BUNDLE_ACCEPT; exports.BUNDLE_TYPE = _chunkCU4TMSZEjs.BUNDLE_TYPE; exports.CANVAS_GAP = _chunkCU4TMSZEjs.CANVAS_GAP; exports.CANVAS_ROW_HEADER = _chunkCU4TMSZEjs.CANVAS_ROW_HEADER; exports.ConfigLoader = _chunkCU4TMSZEjs.ConfigLoader; exports.DASHBOARD_DS = _chunkCU4TMSZEjs.DASHBOARD_DS; exports.DEFAULT_GAZETTEER = _chunkCU4TMSZEjs.DEFAULT_GAZETTEER; exports.DICTATION_TYPES = _chunkCU4TMSZEjs.DICTATION_TYPES; exports.DOCUMENT_GUIDE = _chunkCU4TMSZEjs.DOCUMENT_GUIDE; exports.EDITABLE_VARIABLE_TYPES = _chunkCU4TMSZEjs.EDITABLE_VARIABLE_TYPES; exports.EXAMPLE_TEMPLATE = _chunkCU4TMSZEjs.EXAMPLE_TEMPLATE; exports.GRID_COLUMNS = _chunkCU4TMSZEjs.GRID_COLUMNS; exports.GROUP_FIELD_TYPES = _chunkCU4TMSZEjs.GROUP_FIELD_TYPES; exports.GrafanaClient = _chunkCU4TMSZEjs.GrafanaClient; exports.GrafanaDataSource = _chunkCU4TMSZEjs.GrafanaDataSource; exports.GrafanaError = _chunkCU4TMSZEjs.GrafanaError; exports.HttpConfigFiles = _chunkCU4TMSZEjs.HttpConfigFiles; exports.INPUT_GROUP = _chunkCU4TMSZEjs.INPUT_GROUP; exports.INPUT_OPTION_KEYS = _chunkCU4TMSZEjs.INPUT_OPTION_KEYS; exports.INPUT_TYPES = _chunkCU4TMSZEjs.INPUT_TYPES; exports.LOCAL_DATASOURCE_TYPE = _chunkCU4TMSZEjs.LOCAL_DATASOURCE_TYPE; exports.LocalDataSource = _chunkCU4TMSZEjs.LocalDataSource; exports.MANIFEST_VERSION = _chunkCU4TMSZEjs.MANIFEST_VERSION; exports.MAPPING_TYPES = _chunkCU4TMSZEjs.MAPPING_TYPES; exports.MemoryEntryStore = _chunkCU4TMSZEjs.MemoryEntryStore; exports.NAMED_COLORS = _chunkCU4TMSZEjs.NAMED_COLORS; exports.OPTION_CATEGORIES = _chunkCU4TMSZEjs.OPTION_CATEGORIES; exports.OVERRIDE_MATCHERS = _chunkCU4TMSZEjs.OVERRIDE_MATCHERS; exports.PANEL_TYPES = _chunkCU4TMSZEjs.PANEL_TYPES; exports.REDUCER_LABELS = _chunkCU4TMSZEjs.REDUCER_LABELS; exports.REFRESH_CHOICES = _chunkCU4TMSZEjs.REFRESH_CHOICES; exports.RELATIVE_RANGES = _chunkCU4TMSZEjs.RELATIVE_RANGES; exports.SERIES_PALETTE = _chunkCU4TMSZEjs.SERIES_PALETTE; exports.SNIPPET_VERSION = _chunkCU4TMSZEjs.SNIPPET_VERSION; exports.SPECIAL_MATCHES = _chunkCU4TMSZEjs.SPECIAL_MATCHES; exports.SaveConflictError = _chunkCU4TMSZEjs.SaveConflictError; exports.TEMPLATE_VERSION = _chunkCU4TMSZEjs.TEMPLATE_VERSION; exports.TIME_PRESETS = _chunkCU4TMSZEjs.TIME_PRESETS; exports.UNIT_CHOICES = _chunkCU4TMSZEjs.UNIT_CHOICES; exports.addTime = _chunkCU4TMSZEjs.addTime; exports.appSchema = _chunkCU4TMSZEjs.appSchema; exports.applyDashboardLink = _chunkCU4TMSZEjs.applyDashboardLink; exports.applyJsonEdits = _chunkCU4TMSZEjs.applyJsonEdits; exports.applyTemplate = _chunkCU4TMSZEjs.applyTemplate; exports.applyTransformations = _chunkCU4TMSZEjs.applyTransformations; exports.assembleBundle = _chunkCU4TMSZEjs.assembleBundle; exports.assembleFromResponse = _chunkCU4TMSZEjs.assembleFromResponse; exports.buildFrames = _chunkCU4TMSZEjs.buildFrames; exports.bundleFromFiles = _chunkCU4TMSZEjs.bundleFromFiles; exports.bundleRoot = _chunkCU4TMSZEjs.bundleRoot; exports.calculateInterval = _chunkCU4TMSZEjs.calculateInterval; exports.checkFiles = _chunkCU4TMSZEjs.checkFiles; exports.cleanDashboard = _chunkCU4TMSZEjs.cleanDashboard; exports.cleanPanelOptions = _chunkCU4TMSZEjs.cleanPanelOptions; exports.collapseRow = _chunkCU4TMSZEjs.collapseRow; exports.compactGrid = _chunkCU4TMSZEjs.compactGrid; exports.copyPanels = _chunkCU4TMSZEjs.copyPanels; exports.dashboardSchema = _chunkCU4TMSZEjs.dashboardSchema; exports.dashboardSchemaIssues = _chunkCU4TMSZEjs.dashboardSchemaIssues; exports.dashboardSourceIds = _chunkCU4TMSZEjs.dashboardSourceIds; exports.defaultFetchJson = _chunkCU4TMSZEjs.defaultFetchJson; exports.describeRange = _chunkCU4TMSZEjs.describeRange; exports.dictationHints = _chunkCU4TMSZEjs.dictationHints; exports.diffJson = _chunkCU4TMSZEjs.diffJson; exports.documentChanges = _chunkCU4TMSZEjs.documentChanges; exports.documentIdFor = _chunkCU4TMSZEjs.documentIdFor; exports.documentKind = _chunkCU4TMSZEjs.documentKind; exports.documentPrompt = _chunkCU4TMSZEjs.documentPrompt; exports.documentUses = _chunkCU4TMSZEjs.documentUses; exports.dropTarget = _chunkCU4TMSZEjs.dropTarget; exports.duplicatePanel = _chunkCU4TMSZEjs.duplicatePanel; exports.entriesSavedWith = _chunkCU4TMSZEjs.entriesSavedWith; exports.entriesToItems = _chunkCU4TMSZEjs.entriesToItems; exports.entryToInputValue = _chunkCU4TMSZEjs.entryToInputValue; exports.expandRow = _chunkCU4TMSZEjs.expandRow; exports.fetchBundle = _chunkCU4TMSZEjs.fetchBundle; exports.fetchJsonWithToken = _chunkCU4TMSZEjs.fetchJsonWithToken; exports.fieldDisplayName = _chunkCU4TMSZEjs.fieldDisplayName; exports.fieldMatches = _chunkCU4TMSZEjs.fieldMatches; exports.fixDocumentPrompt = _chunkCU4TMSZEjs.fixDocumentPrompt; exports.fixTemplatePrompt = _chunkCU4TMSZEjs.fixTemplatePrompt; exports.formatClock = _chunkCU4TMSZEjs.formatClock; exports.formatDisplay = _chunkCU4TMSZEjs.formatDisplay; exports.formatDuration = _chunkCU4TMSZEjs.formatDuration; exports.formatJsonText = _chunkCU4TMSZEjs.formatJsonText; exports.formatLocalDateTime = _chunkCU4TMSZEjs.formatLocalDateTime; exports.formatValue = _chunkCU4TMSZEjs.formatValue; exports.frameLength = _chunkCU4TMSZEjs.frameLength; exports.framesToOptions = _chunkCU4TMSZEjs.framesToOptions; exports.fromWire = _chunkCU4TMSZEjs.fromWire; exports.getPath = _chunkCU4TMSZEjs.getPath; exports.gridOffsetPx = _chunkCU4TMSZEjs.gridOffsetPx; exports.gridUnitsToPx = _chunkCU4TMSZEjs.gridUnitsToPx; exports.groupField = _chunkCU4TMSZEjs.groupField; exports.groupFields = _chunkCU4TMSZEjs.groupFields; exports.groupProblems = _chunkCU4TMSZEjs.groupProblems; exports.groupToEntries = _chunkCU4TMSZEjs.groupToEntries; exports.httpFetchJson = _chunkCU4TMSZEjs.httpFetchJson; exports.initialVariableValues = _chunkCU4TMSZEjs.initialVariableValues; exports.inputGroups = _chunkCU4TMSZEjs.inputGroups; exports.inputPanels = _chunkCU4TMSZEjs.inputPanels; exports.inputProblem = _chunkCU4TMSZEjs.inputProblem; exports.insertPanel = _chunkCU4TMSZEjs.insertPanel; exports.interpolate = _chunkCU4TMSZEjs.interpolate; exports.interpolateDeep = _chunkCU4TMSZEjs.interpolateDeep; exports.isBundleResponse = _chunkCU4TMSZEjs.isBundleResponse; exports.isEditableVariableType = _chunkCU4TMSZEjs.isEditableVariableType; exports.isEmptyItem = _chunkCU4TMSZEjs.isEmptyItem; exports.isFormPanelType = _chunkCU4TMSZEjs.isFormPanelType; exports.isInputGroup = _chunkCU4TMSZEjs.isInputGroup; exports.isInputPanel = _chunkCU4TMSZEjs.isInputPanel; exports.isInputType = _chunkCU4TMSZEjs.isInputType; exports.isLocalDatasource = _chunkCU4TMSZEjs.isLocalDatasource; exports.isReducer = _chunkCU4TMSZEjs.isReducer; exports.isRow = _chunkCU4TMSZEjs.isRow; exports.isSqlDatasource = _chunkCU4TMSZEjs.isSqlDatasource; exports.jsonFromAnswer = _chunkCU4TMSZEjs.jsonFromAnswer; exports.layoutCanvas = _chunkCU4TMSZEjs.layoutCanvas; exports.layoutDashboard = _chunkCU4TMSZEjs.layoutDashboard; exports.lineColumn = _chunkCU4TMSZEjs.lineColumn; exports.loadGazetteer = _chunkCU4TMSZEjs.loadGazetteer; exports.locate = _chunkCU4TMSZEjs.locate; exports.makeTemplate = _chunkCU4TMSZEjs.makeTemplate; exports.manifestSchemaIssues = _chunkCU4TMSZEjs.manifestSchemaIssues; exports.mappedResult = _chunkCU4TMSZEjs.mappedResult; exports.mappingProblem = _chunkCU4TMSZEjs.mappingProblem; exports.mappingRow = _chunkCU4TMSZEjs.mappingRow; exports.mappingRows = _chunkCU4TMSZEjs.mappingRows; exports.matchChoices = _chunkCU4TMSZEjs.matchChoices; exports.metricChanges = _chunkCU4TMSZEjs.metricChanges; exports.movePanel = _chunkCU4TMSZEjs.movePanel; exports.newDocument = _chunkCU4TMSZEjs.newDocument; exports.newPanel = _chunkCU4TMSZEjs.newPanel; exports.newSaveId = _chunkCU4TMSZEjs.newSaveId; exports.newVariable = _chunkCU4TMSZEjs.newVariable; exports.nextPanelId = _chunkCU4TMSZEjs.nextPanelId; exports.normalizeRef = _chunkCU4TMSZEjs.normalizeRef; exports.numberFields = _chunkCU4TMSZEjs.numberFields; exports.optionValue = _chunkCU4TMSZEjs.optionValue; exports.overrideProperties = _chunkCU4TMSZEjs.overrideProperties; exports.panelEdits = _chunkCU4TMSZEjs.panelEdits; exports.panelHasQueries = _chunkCU4TMSZEjs.panelHasQueries; exports.panelKey = _chunkCU4TMSZEjs.panelKey; exports.panelMetrics = _chunkCU4TMSZEjs.panelMetrics; exports.panelOptions = _chunkCU4TMSZEjs.panelOptions; exports.panelOverrides = _chunkCU4TMSZEjs.panelOverrides; exports.panelSize = _chunkCU4TMSZEjs.panelSize; exports.panelSpan = _chunkCU4TMSZEjs.panelSpan; exports.parseClockDigits = _chunkCU4TMSZEjs.parseClockDigits; exports.parseDashboardLink = _chunkCU4TMSZEjs.parseDashboardLink; exports.parseDuration = _chunkCU4TMSZEjs.parseDuration; exports.parseGazetteer = _chunkCU4TMSZEjs.parseGazetteer; exports.parseJsonText = _chunkCU4TMSZEjs.parseJsonText; exports.parseLocalDateTime = _chunkCU4TMSZEjs.parseLocalDateTime; exports.parseRange = _chunkCU4TMSZEjs.parseRange; exports.parseSnippet = _chunkCU4TMSZEjs.parseSnippet; exports.parseSpokenDuration = _chunkCU4TMSZEjs.parseSpokenDuration; exports.parseSpokenNumber = _chunkCU4TMSZEjs.parseSpokenNumber; exports.parseSpokenYesNo = _chunkCU4TMSZEjs.parseSpokenYesNo; exports.parseTemplate = _chunkCU4TMSZEjs.parseTemplate; exports.parseTime = _chunkCU4TMSZEjs.parseTime; exports.pasteSnippet = _chunkCU4TMSZEjs.pasteSnippet; exports.placePanel = _chunkCU4TMSZEjs.placePanel; exports.plainInputPanels = _chunkCU4TMSZEjs.plainInputPanels; exports.pointerToPath = _chunkCU4TMSZEjs.pointerToPath; exports.prepareDashboard = _chunkCU4TMSZEjs.prepareDashboard; exports.previewPaste = _chunkCU4TMSZEjs.previewPaste; exports.queryPanel = _chunkCU4TMSZEjs.queryPanel; exports.queryParam = _chunkCU4TMSZEjs.queryParam; exports.readConfigFiles = _chunkCU4TMSZEjs.readConfigFiles; exports.readDocumentAnswer = _chunkCU4TMSZEjs.readDocumentAnswer; exports.readTemplateAnswer = _chunkCU4TMSZEjs.readTemplateAnswer; exports.readingOrder = _chunkCU4TMSZEjs.readingOrder; exports.reduce = _chunkCU4TMSZEjs.reduce; exports.refineOptions = _chunkCU4TMSZEjs.refineOptions; exports.refreshedVariables = _chunkCU4TMSZEjs.refreshedVariables; exports.removeDocumentFromManifest = _chunkCU4TMSZEjs.removeDocumentFromManifest; exports.removePanel = _chunkCU4TMSZEjs.removePanel; exports.renameDocumentInManifest = _chunkCU4TMSZEjs.renameDocumentInManifest; exports.renameMetrics = _chunkCU4TMSZEjs.renameMetrics; exports.renameVariableInPanels = _chunkCU4TMSZEjs.renameVariableInPanels; exports.repack = _chunkCU4TMSZEjs.repack; exports.repeatOptions = _chunkCU4TMSZEjs.repeatOptions; exports.requiredManifestVersion = _chunkCU4TMSZEjs.requiredManifestVersion; exports.resizePanel = _chunkCU4TMSZEjs.resizePanel; exports.resolveColor = _chunkCU4TMSZEjs.resolveColor; exports.resolveFieldConfig = _chunkCU4TMSZEjs.resolveFieldConfig; exports.resolveLinks = _chunkCU4TMSZEjs.resolveLinks; exports.resolveTimezone = _chunkCU4TMSZEjs.resolveTimezone; exports.resolveUrl = _chunkCU4TMSZEjs.resolveUrl; exports.resolveVariables = _chunkCU4TMSZEjs.resolveVariables; exports.revalidateBundle = _chunkCU4TMSZEjs.revalidateBundle; exports.rowsToMappings = _chunkCU4TMSZEjs.rowsToMappings; exports.sameSave = _chunkCU4TMSZEjs.sameSave; exports.sampleEntries = _chunkCU4TMSZEjs.sampleEntries; exports.screenDocuments = _chunkCU4TMSZEjs.screenDocuments; exports.screenOfType = _chunkCU4TMSZEjs.screenOfType; exports.selectValue = _chunkCU4TMSZEjs.selectValue; exports.seriesColor = _chunkCU4TMSZEjs.seriesColor; exports.setHiddenOnPhones = _chunkCU4TMSZEjs.setHiddenOnPhones; exports.setJsonValue = _chunkCU4TMSZEjs.setJsonValue; exports.setOption = _chunkCU4TMSZEjs.setOption; exports.setOptionValue = _chunkCU4TMSZEjs.setOptionValue; exports.setOverrides = _chunkCU4TMSZEjs.setOverrides; exports.settleLayout = _chunkCU4TMSZEjs.settleLayout; exports.snapToGrid = _chunkCU4TMSZEjs.snapToGrid; exports.splitPath = _chunkCU4TMSZEjs.splitPath; exports.spokenValue = _chunkCU4TMSZEjs.spokenValue; exports.startOf = _chunkCU4TMSZEjs.startOf; exports.stringifyCompact = _chunkCU4TMSZEjs.stringifyCompact; exports.tabIdFor = _chunkCU4TMSZEjs.tabIdFor; exports.takesDictation = _chunkCU4TMSZEjs.takesDictation; exports.templateNeeds = _chunkCU4TMSZEjs.templateNeeds; exports.templatePrompt = _chunkCU4TMSZEjs.templatePrompt; exports.textSuggestions = _chunkCU4TMSZEjs.textSuggestions; exports.thresholdStep = _chunkCU4TMSZEjs.thresholdStep; exports.timeExprError = _chunkCU4TMSZEjs.timeExprError; exports.timeField = _chunkCU4TMSZEjs.timeField; exports.toEntries = _chunkCU4TMSZEjs.toEntries; exports.toMillis = _chunkCU4TMSZEjs.toMillis; exports.toSeries = _chunkCU4TMSZEjs.toSeries; exports.toXYSeries = _chunkCU4TMSZEjs.toXYSeries; exports.uniqueNames = _chunkCU4TMSZEjs.uniqueNames; exports.validateBundle = _chunkCU4TMSZEjs.validateBundle; exports.validateDashboard = _chunkCU4TMSZEjs.validateDashboard; exports.validateManifest = _chunkCU4TMSZEjs.validateManifest; exports.valueColor = _chunkCU4TMSZEjs.valueColor; exports.valueText = _chunkCU4TMSZEjs.valueText; exports.variableDependents = _chunkCU4TMSZEjs.variableDependents; exports.variableInfo = _chunkCU4TMSZEjs.variableInfo; exports.variableNameError = _chunkCU4TMSZEjs.variableNameError; exports.variableOptions = _chunkCU4TMSZEjs.variableOptions; exports.variableOrder = _chunkCU4TMSZEjs.variableOrder; exports.variableReferences = _chunkCU4TMSZEjs.variableReferences; exports.variableUses = _chunkCU4TMSZEjs.variableUses; exports.variableWithCurrent = _chunkCU4TMSZEjs.variableWithCurrent; exports.variableWithFlags = _chunkCU4TMSZEjs.variableWithFlags; exports.variableWithQuery = _chunkCU4TMSZEjs.variableWithQuery; exports.variableWithType = _chunkCU4TMSZEjs.variableWithType; exports.visibleVariables = _chunkCU4TMSZEjs.visibleVariables; exports.zoomRange = _chunkCU4TMSZEjs.zoomRange;
|
|
490
|
+
|
|
491
|
+
|
|
492
|
+
|
|
493
|
+
|
|
494
|
+
|
|
495
|
+
|
|
496
|
+
|
|
497
|
+
|
|
498
|
+
|
|
499
|
+
|
|
500
|
+
|
|
501
|
+
|
|
502
|
+
|
|
503
|
+
|
|
504
|
+
|
|
505
|
+
|
|
506
|
+
|
|
507
|
+
|
|
508
|
+
|
|
509
|
+
|
|
510
|
+
exports.ALL = _chunkP4NMZ77Wjs.ALL; exports.AUTHORING_GUIDE = _chunkP4NMZ77Wjs.AUTHORING_GUIDE; exports.BUNDLE_ACCEPT = _chunkP4NMZ77Wjs.BUNDLE_ACCEPT; exports.BUNDLE_TYPE = _chunkP4NMZ77Wjs.BUNDLE_TYPE; exports.CANVAS_GAP = _chunkP4NMZ77Wjs.CANVAS_GAP; exports.CANVAS_ROW_HEADER = _chunkP4NMZ77Wjs.CANVAS_ROW_HEADER; exports.ConfigLoader = _chunkP4NMZ77Wjs.ConfigLoader; exports.DASHBOARD_DS = _chunkP4NMZ77Wjs.DASHBOARD_DS; exports.DEFAULT_GAZETTEER = _chunkP4NMZ77Wjs.DEFAULT_GAZETTEER; exports.DICTATION_TYPES = _chunkP4NMZ77Wjs.DICTATION_TYPES; exports.DOCUMENT_GUIDE = _chunkP4NMZ77Wjs.DOCUMENT_GUIDE; exports.EDITABLE_VARIABLE_TYPES = _chunkP4NMZ77Wjs.EDITABLE_VARIABLE_TYPES; exports.EXAMPLE_TEMPLATE = _chunkP4NMZ77Wjs.EXAMPLE_TEMPLATE; exports.GRID_COLUMNS = _chunkP4NMZ77Wjs.GRID_COLUMNS; exports.GROUP_FIELD_TYPES = _chunkP4NMZ77Wjs.GROUP_FIELD_TYPES; exports.GrafanaClient = _chunkP4NMZ77Wjs.GrafanaClient; exports.GrafanaDataSource = _chunkP4NMZ77Wjs.GrafanaDataSource; exports.GrafanaError = _chunkP4NMZ77Wjs.GrafanaError; exports.HttpConfigFiles = _chunkP4NMZ77Wjs.HttpConfigFiles; exports.INPUT_GROUP = _chunkP4NMZ77Wjs.INPUT_GROUP; exports.INPUT_OPTION_KEYS = _chunkP4NMZ77Wjs.INPUT_OPTION_KEYS; exports.INPUT_TYPES = _chunkP4NMZ77Wjs.INPUT_TYPES; exports.LOCAL_DATASOURCE_TYPE = _chunkP4NMZ77Wjs.LOCAL_DATASOURCE_TYPE; exports.LocalDataSource = _chunkP4NMZ77Wjs.LocalDataSource; exports.MANIFEST_VERSION = _chunkP4NMZ77Wjs.MANIFEST_VERSION; exports.MAPPING_TYPES = _chunkP4NMZ77Wjs.MAPPING_TYPES; exports.MemoryEntryStore = _chunkP4NMZ77Wjs.MemoryEntryStore; exports.NAMED_COLORS = _chunkP4NMZ77Wjs.NAMED_COLORS; exports.OPTION_CATEGORIES = _chunkP4NMZ77Wjs.OPTION_CATEGORIES; exports.OVERRIDE_MATCHERS = _chunkP4NMZ77Wjs.OVERRIDE_MATCHERS; exports.PANEL_TYPES = _chunkP4NMZ77Wjs.PANEL_TYPES; exports.REDUCER_LABELS = _chunkP4NMZ77Wjs.REDUCER_LABELS; exports.REFRESH_CHOICES = _chunkP4NMZ77Wjs.REFRESH_CHOICES; exports.RELATIVE_RANGES = _chunkP4NMZ77Wjs.RELATIVE_RANGES; exports.SERIES_PALETTE = _chunkP4NMZ77Wjs.SERIES_PALETTE; exports.SNIPPET_VERSION = _chunkP4NMZ77Wjs.SNIPPET_VERSION; exports.SPECIAL_MATCHES = _chunkP4NMZ77Wjs.SPECIAL_MATCHES; exports.SaveConflictError = _chunkP4NMZ77Wjs.SaveConflictError; exports.TEMPLATE_VERSION = _chunkP4NMZ77Wjs.TEMPLATE_VERSION; exports.TIME_PRESETS = _chunkP4NMZ77Wjs.TIME_PRESETS; exports.UNIT_CHOICES = _chunkP4NMZ77Wjs.UNIT_CHOICES; exports.addTime = _chunkP4NMZ77Wjs.addTime; exports.appSchema = _chunkP4NMZ77Wjs.appSchema; exports.applyDashboardLink = _chunkP4NMZ77Wjs.applyDashboardLink; exports.applyJsonEdits = _chunkP4NMZ77Wjs.applyJsonEdits; exports.applyTemplate = _chunkP4NMZ77Wjs.applyTemplate; exports.applyTransformations = _chunkP4NMZ77Wjs.applyTransformations; exports.assembleBundle = _chunkP4NMZ77Wjs.assembleBundle; exports.assembleFromResponse = _chunkP4NMZ77Wjs.assembleFromResponse; exports.buildFrames = _chunkP4NMZ77Wjs.buildFrames; exports.bundleFromFiles = _chunkP4NMZ77Wjs.bundleFromFiles; exports.bundleRoot = _chunkP4NMZ77Wjs.bundleRoot; exports.calculateInterval = _chunkP4NMZ77Wjs.calculateInterval; exports.checkFiles = _chunkP4NMZ77Wjs.checkFiles; exports.choicesOf = _chunkP4NMZ77Wjs.choicesOf; exports.cleanDashboard = _chunkP4NMZ77Wjs.cleanDashboard; exports.cleanPanelOptions = _chunkP4NMZ77Wjs.cleanPanelOptions; exports.collapseRow = _chunkP4NMZ77Wjs.collapseRow; exports.compactGrid = _chunkP4NMZ77Wjs.compactGrid; exports.copyPanels = _chunkP4NMZ77Wjs.copyPanels; exports.dashboardSchema = _chunkP4NMZ77Wjs.dashboardSchema; exports.dashboardSchemaIssues = _chunkP4NMZ77Wjs.dashboardSchemaIssues; exports.dashboardSourceIds = _chunkP4NMZ77Wjs.dashboardSourceIds; exports.defaultFetchJson = _chunkP4NMZ77Wjs.defaultFetchJson; exports.describeRange = _chunkP4NMZ77Wjs.describeRange; exports.dictationHints = _chunkP4NMZ77Wjs.dictationHints; exports.diffJson = _chunkP4NMZ77Wjs.diffJson; exports.documentChanges = _chunkP4NMZ77Wjs.documentChanges; exports.documentIdFor = _chunkP4NMZ77Wjs.documentIdFor; exports.documentKind = _chunkP4NMZ77Wjs.documentKind; exports.documentPrompt = _chunkP4NMZ77Wjs.documentPrompt; exports.documentUses = _chunkP4NMZ77Wjs.documentUses; exports.dropTarget = _chunkP4NMZ77Wjs.dropTarget; exports.duplicatePanel = _chunkP4NMZ77Wjs.duplicatePanel; exports.entriesSavedWith = _chunkP4NMZ77Wjs.entriesSavedWith; exports.entriesToItems = _chunkP4NMZ77Wjs.entriesToItems; exports.entryToInputValue = _chunkP4NMZ77Wjs.entryToInputValue; exports.expandRow = _chunkP4NMZ77Wjs.expandRow; exports.fetchBundle = _chunkP4NMZ77Wjs.fetchBundle; exports.fetchJsonWithToken = _chunkP4NMZ77Wjs.fetchJsonWithToken; exports.fieldDisplayName = _chunkP4NMZ77Wjs.fieldDisplayName; exports.fieldMatches = _chunkP4NMZ77Wjs.fieldMatches; exports.fillForm = _chunkP4NMZ77Wjs.fillForm; exports.fillHints = _chunkP4NMZ77Wjs.fillHints; exports.fillPrompt = _chunkP4NMZ77Wjs.fillPrompt; exports.fillSchema = _chunkP4NMZ77Wjs.fillSchema; exports.fixDocumentPrompt = _chunkP4NMZ77Wjs.fixDocumentPrompt; exports.fixTemplatePrompt = _chunkP4NMZ77Wjs.fixTemplatePrompt; exports.formatClock = _chunkP4NMZ77Wjs.formatClock; exports.formatDisplay = _chunkP4NMZ77Wjs.formatDisplay; exports.formatDuration = _chunkP4NMZ77Wjs.formatDuration; exports.formatJsonText = _chunkP4NMZ77Wjs.formatJsonText; exports.formatLocalDateTime = _chunkP4NMZ77Wjs.formatLocalDateTime; exports.formatValue = _chunkP4NMZ77Wjs.formatValue; exports.frameLength = _chunkP4NMZ77Wjs.frameLength; exports.framesToOptions = _chunkP4NMZ77Wjs.framesToOptions; exports.fromWire = _chunkP4NMZ77Wjs.fromWire; exports.getPath = _chunkP4NMZ77Wjs.getPath; exports.gridOffsetPx = _chunkP4NMZ77Wjs.gridOffsetPx; exports.gridUnitsToPx = _chunkP4NMZ77Wjs.gridUnitsToPx; exports.groupField = _chunkP4NMZ77Wjs.groupField; exports.groupFields = _chunkP4NMZ77Wjs.groupFields; exports.groupProblems = _chunkP4NMZ77Wjs.groupProblems; exports.groupToEntries = _chunkP4NMZ77Wjs.groupToEntries; exports.httpFetchJson = _chunkP4NMZ77Wjs.httpFetchJson; exports.initialVariableValues = _chunkP4NMZ77Wjs.initialVariableValues; exports.inputGroups = _chunkP4NMZ77Wjs.inputGroups; exports.inputPanels = _chunkP4NMZ77Wjs.inputPanels; exports.inputProblem = _chunkP4NMZ77Wjs.inputProblem; exports.insertPanel = _chunkP4NMZ77Wjs.insertPanel; exports.interpolate = _chunkP4NMZ77Wjs.interpolate; exports.interpolateDeep = _chunkP4NMZ77Wjs.interpolateDeep; exports.isBundleResponse = _chunkP4NMZ77Wjs.isBundleResponse; exports.isEditableVariableType = _chunkP4NMZ77Wjs.isEditableVariableType; exports.isEmptyItem = _chunkP4NMZ77Wjs.isEmptyItem; exports.isFormPanelType = _chunkP4NMZ77Wjs.isFormPanelType; exports.isInputGroup = _chunkP4NMZ77Wjs.isInputGroup; exports.isInputPanel = _chunkP4NMZ77Wjs.isInputPanel; exports.isInputType = _chunkP4NMZ77Wjs.isInputType; exports.isLocalDatasource = _chunkP4NMZ77Wjs.isLocalDatasource; exports.isReducer = _chunkP4NMZ77Wjs.isReducer; exports.isRow = _chunkP4NMZ77Wjs.isRow; exports.isSqlDatasource = _chunkP4NMZ77Wjs.isSqlDatasource; exports.jsonFromAnswer = _chunkP4NMZ77Wjs.jsonFromAnswer; exports.layoutCanvas = _chunkP4NMZ77Wjs.layoutCanvas; exports.layoutDashboard = _chunkP4NMZ77Wjs.layoutDashboard; exports.lineColumn = _chunkP4NMZ77Wjs.lineColumn; exports.loadGazetteer = _chunkP4NMZ77Wjs.loadGazetteer; exports.locate = _chunkP4NMZ77Wjs.locate; exports.makeTemplate = _chunkP4NMZ77Wjs.makeTemplate; exports.manifestSchemaIssues = _chunkP4NMZ77Wjs.manifestSchemaIssues; exports.mappedResult = _chunkP4NMZ77Wjs.mappedResult; exports.mappingProblem = _chunkP4NMZ77Wjs.mappingProblem; exports.mappingRow = _chunkP4NMZ77Wjs.mappingRow; exports.mappingRows = _chunkP4NMZ77Wjs.mappingRows; exports.matchChoices = _chunkP4NMZ77Wjs.matchChoices; exports.metricChanges = _chunkP4NMZ77Wjs.metricChanges; exports.modelFiller = _chunkP4NMZ77Wjs.modelFiller; exports.movePanel = _chunkP4NMZ77Wjs.movePanel; exports.newDocument = _chunkP4NMZ77Wjs.newDocument; exports.newPanel = _chunkP4NMZ77Wjs.newPanel; exports.newSaveId = _chunkP4NMZ77Wjs.newSaveId; exports.newVariable = _chunkP4NMZ77Wjs.newVariable; exports.nextPanelId = _chunkP4NMZ77Wjs.nextPanelId; exports.normalizeRef = _chunkP4NMZ77Wjs.normalizeRef; exports.numberFields = _chunkP4NMZ77Wjs.numberFields; exports.optionValue = _chunkP4NMZ77Wjs.optionValue; exports.overrideProperties = _chunkP4NMZ77Wjs.overrideProperties; exports.panelEdits = _chunkP4NMZ77Wjs.panelEdits; exports.panelHasQueries = _chunkP4NMZ77Wjs.panelHasQueries; exports.panelKey = _chunkP4NMZ77Wjs.panelKey; exports.panelMetrics = _chunkP4NMZ77Wjs.panelMetrics; exports.panelOptions = _chunkP4NMZ77Wjs.panelOptions; exports.panelOverrides = _chunkP4NMZ77Wjs.panelOverrides; exports.panelSize = _chunkP4NMZ77Wjs.panelSize; exports.panelSpan = _chunkP4NMZ77Wjs.panelSpan; exports.parseClockDigits = _chunkP4NMZ77Wjs.parseClockDigits; exports.parseDashboardLink = _chunkP4NMZ77Wjs.parseDashboardLink; exports.parseDuration = _chunkP4NMZ77Wjs.parseDuration; exports.parseFillAnswer = _chunkP4NMZ77Wjs.parseFillAnswer; exports.parseGazetteer = _chunkP4NMZ77Wjs.parseGazetteer; exports.parseJsonText = _chunkP4NMZ77Wjs.parseJsonText; exports.parseLocalDateTime = _chunkP4NMZ77Wjs.parseLocalDateTime; exports.parseRange = _chunkP4NMZ77Wjs.parseRange; exports.parseSnippet = _chunkP4NMZ77Wjs.parseSnippet; exports.parseSpokenDuration = _chunkP4NMZ77Wjs.parseSpokenDuration; exports.parseSpokenNumber = _chunkP4NMZ77Wjs.parseSpokenNumber; exports.parseSpokenYesNo = _chunkP4NMZ77Wjs.parseSpokenYesNo; exports.parseTemplate = _chunkP4NMZ77Wjs.parseTemplate; exports.parseTime = _chunkP4NMZ77Wjs.parseTime; exports.pasteSnippet = _chunkP4NMZ77Wjs.pasteSnippet; exports.placePanel = _chunkP4NMZ77Wjs.placePanel; exports.plainInputPanels = _chunkP4NMZ77Wjs.plainInputPanels; exports.pointerToPath = _chunkP4NMZ77Wjs.pointerToPath; exports.prepareDashboard = _chunkP4NMZ77Wjs.prepareDashboard; exports.previewPaste = _chunkP4NMZ77Wjs.previewPaste; exports.queryPanel = _chunkP4NMZ77Wjs.queryPanel; exports.queryParam = _chunkP4NMZ77Wjs.queryParam; exports.readConfigFiles = _chunkP4NMZ77Wjs.readConfigFiles; exports.readDocumentAnswer = _chunkP4NMZ77Wjs.readDocumentAnswer; exports.readFill = _chunkP4NMZ77Wjs.readFill; exports.readTemplateAnswer = _chunkP4NMZ77Wjs.readTemplateAnswer; exports.readingOrder = _chunkP4NMZ77Wjs.readingOrder; exports.reduce = _chunkP4NMZ77Wjs.reduce; exports.refineOptions = _chunkP4NMZ77Wjs.refineOptions; exports.refreshedVariables = _chunkP4NMZ77Wjs.refreshedVariables; exports.removeDocumentFromManifest = _chunkP4NMZ77Wjs.removeDocumentFromManifest; exports.removePanel = _chunkP4NMZ77Wjs.removePanel; exports.renameDocumentInManifest = _chunkP4NMZ77Wjs.renameDocumentInManifest; exports.renameMetrics = _chunkP4NMZ77Wjs.renameMetrics; exports.renameVariableInPanels = _chunkP4NMZ77Wjs.renameVariableInPanels; exports.repack = _chunkP4NMZ77Wjs.repack; exports.repeatOptions = _chunkP4NMZ77Wjs.repeatOptions; exports.requiredManifestVersion = _chunkP4NMZ77Wjs.requiredManifestVersion; exports.resizePanel = _chunkP4NMZ77Wjs.resizePanel; exports.resolveColor = _chunkP4NMZ77Wjs.resolveColor; exports.resolveFieldConfig = _chunkP4NMZ77Wjs.resolveFieldConfig; exports.resolveLinks = _chunkP4NMZ77Wjs.resolveLinks; exports.resolveTimezone = _chunkP4NMZ77Wjs.resolveTimezone; exports.resolveUrl = _chunkP4NMZ77Wjs.resolveUrl; exports.resolveVariables = _chunkP4NMZ77Wjs.resolveVariables; exports.revalidateBundle = _chunkP4NMZ77Wjs.revalidateBundle; exports.rowsToMappings = _chunkP4NMZ77Wjs.rowsToMappings; exports.ruleFill = _chunkP4NMZ77Wjs.ruleFill; exports.ruleFiller = _chunkP4NMZ77Wjs.ruleFiller; exports.sameSave = _chunkP4NMZ77Wjs.sameSave; exports.sampleEntries = _chunkP4NMZ77Wjs.sampleEntries; exports.screenDocuments = _chunkP4NMZ77Wjs.screenDocuments; exports.screenOfType = _chunkP4NMZ77Wjs.screenOfType; exports.selectValue = _chunkP4NMZ77Wjs.selectValue; exports.seriesColor = _chunkP4NMZ77Wjs.seriesColor; exports.setHiddenOnPhones = _chunkP4NMZ77Wjs.setHiddenOnPhones; exports.setJsonValue = _chunkP4NMZ77Wjs.setJsonValue; exports.setOption = _chunkP4NMZ77Wjs.setOption; exports.setOptionValue = _chunkP4NMZ77Wjs.setOptionValue; exports.setOverrides = _chunkP4NMZ77Wjs.setOverrides; exports.settleLayout = _chunkP4NMZ77Wjs.settleLayout; exports.snapToGrid = _chunkP4NMZ77Wjs.snapToGrid; exports.splitPath = _chunkP4NMZ77Wjs.splitPath; exports.spokenValue = _chunkP4NMZ77Wjs.spokenValue; exports.startOf = _chunkP4NMZ77Wjs.startOf; exports.stringifyCompact = _chunkP4NMZ77Wjs.stringifyCompact; exports.tabIdFor = _chunkP4NMZ77Wjs.tabIdFor; exports.takesDictation = _chunkP4NMZ77Wjs.takesDictation; exports.templateNeeds = _chunkP4NMZ77Wjs.templateNeeds; exports.templatePrompt = _chunkP4NMZ77Wjs.templatePrompt; exports.textSuggestions = _chunkP4NMZ77Wjs.textSuggestions; exports.thresholdStep = _chunkP4NMZ77Wjs.thresholdStep; exports.timeExprError = _chunkP4NMZ77Wjs.timeExprError; exports.timeField = _chunkP4NMZ77Wjs.timeField; exports.toEntries = _chunkP4NMZ77Wjs.toEntries; exports.toMillis = _chunkP4NMZ77Wjs.toMillis; exports.toSeries = _chunkP4NMZ77Wjs.toSeries; exports.toXYSeries = _chunkP4NMZ77Wjs.toXYSeries; exports.uniqueNames = _chunkP4NMZ77Wjs.uniqueNames; exports.validateBundle = _chunkP4NMZ77Wjs.validateBundle; exports.validateDashboard = _chunkP4NMZ77Wjs.validateDashboard; exports.validateManifest = _chunkP4NMZ77Wjs.validateManifest; exports.valueColor = _chunkP4NMZ77Wjs.valueColor; exports.valueText = _chunkP4NMZ77Wjs.valueText; exports.variableDependents = _chunkP4NMZ77Wjs.variableDependents; exports.variableInfo = _chunkP4NMZ77Wjs.variableInfo; exports.variableNameError = _chunkP4NMZ77Wjs.variableNameError; exports.variableOptions = _chunkP4NMZ77Wjs.variableOptions; exports.variableOrder = _chunkP4NMZ77Wjs.variableOrder; exports.variableReferences = _chunkP4NMZ77Wjs.variableReferences; exports.variableUses = _chunkP4NMZ77Wjs.variableUses; exports.variableWithCurrent = _chunkP4NMZ77Wjs.variableWithCurrent; exports.variableWithFlags = _chunkP4NMZ77Wjs.variableWithFlags; exports.variableWithQuery = _chunkP4NMZ77Wjs.variableWithQuery; exports.variableWithType = _chunkP4NMZ77Wjs.variableWithType; exports.visibleVariables = _chunkP4NMZ77Wjs.visibleVariables; exports.zoomRange = _chunkP4NMZ77Wjs.zoomRange;
|
package/dist/core/index.mjs
CHANGED
|
@@ -53,6 +53,7 @@ import {
|
|
|
53
53
|
bundleRoot,
|
|
54
54
|
calculateInterval,
|
|
55
55
|
checkFiles,
|
|
56
|
+
choicesOf,
|
|
56
57
|
cleanDashboard,
|
|
57
58
|
cleanPanelOptions,
|
|
58
59
|
collapseRow,
|
|
@@ -80,6 +81,10 @@ import {
|
|
|
80
81
|
fetchJsonWithToken,
|
|
81
82
|
fieldDisplayName,
|
|
82
83
|
fieldMatches,
|
|
84
|
+
fillForm,
|
|
85
|
+
fillHints,
|
|
86
|
+
fillPrompt,
|
|
87
|
+
fillSchema,
|
|
83
88
|
fixDocumentPrompt,
|
|
84
89
|
fixTemplatePrompt,
|
|
85
90
|
formatClock,
|
|
@@ -131,6 +136,7 @@ import {
|
|
|
131
136
|
mappingRows,
|
|
132
137
|
matchChoices,
|
|
133
138
|
metricChanges,
|
|
139
|
+
modelFiller,
|
|
134
140
|
movePanel,
|
|
135
141
|
newDocument,
|
|
136
142
|
newPanel,
|
|
@@ -152,6 +158,7 @@ import {
|
|
|
152
158
|
parseClockDigits,
|
|
153
159
|
parseDashboardLink,
|
|
154
160
|
parseDuration,
|
|
161
|
+
parseFillAnswer,
|
|
155
162
|
parseGazetteer,
|
|
156
163
|
parseJsonText,
|
|
157
164
|
parseLocalDateTime,
|
|
@@ -172,6 +179,7 @@ import {
|
|
|
172
179
|
queryParam,
|
|
173
180
|
readConfigFiles,
|
|
174
181
|
readDocumentAnswer,
|
|
182
|
+
readFill,
|
|
175
183
|
readTemplateAnswer,
|
|
176
184
|
readingOrder,
|
|
177
185
|
reduce,
|
|
@@ -194,6 +202,8 @@ import {
|
|
|
194
202
|
resolveVariables,
|
|
195
203
|
revalidateBundle,
|
|
196
204
|
rowsToMappings,
|
|
205
|
+
ruleFill,
|
|
206
|
+
ruleFiller,
|
|
197
207
|
sameSave,
|
|
198
208
|
sampleEntries,
|
|
199
209
|
screenDocuments,
|
|
@@ -242,7 +252,7 @@ import {
|
|
|
242
252
|
variableWithType,
|
|
243
253
|
visibleVariables,
|
|
244
254
|
zoomRange
|
|
245
|
-
} from "../chunk-
|
|
255
|
+
} from "../chunk-GWGDDKJE.mjs";
|
|
246
256
|
export {
|
|
247
257
|
ALL,
|
|
248
258
|
AUTHORING_GUIDE,
|
|
@@ -298,6 +308,7 @@ export {
|
|
|
298
308
|
bundleRoot,
|
|
299
309
|
calculateInterval,
|
|
300
310
|
checkFiles,
|
|
311
|
+
choicesOf,
|
|
301
312
|
cleanDashboard,
|
|
302
313
|
cleanPanelOptions,
|
|
303
314
|
collapseRow,
|
|
@@ -325,6 +336,10 @@ export {
|
|
|
325
336
|
fetchJsonWithToken,
|
|
326
337
|
fieldDisplayName,
|
|
327
338
|
fieldMatches,
|
|
339
|
+
fillForm,
|
|
340
|
+
fillHints,
|
|
341
|
+
fillPrompt,
|
|
342
|
+
fillSchema,
|
|
328
343
|
fixDocumentPrompt,
|
|
329
344
|
fixTemplatePrompt,
|
|
330
345
|
formatClock,
|
|
@@ -376,6 +391,7 @@ export {
|
|
|
376
391
|
mappingRows,
|
|
377
392
|
matchChoices,
|
|
378
393
|
metricChanges,
|
|
394
|
+
modelFiller,
|
|
379
395
|
movePanel,
|
|
380
396
|
newDocument,
|
|
381
397
|
newPanel,
|
|
@@ -397,6 +413,7 @@ export {
|
|
|
397
413
|
parseClockDigits,
|
|
398
414
|
parseDashboardLink,
|
|
399
415
|
parseDuration,
|
|
416
|
+
parseFillAnswer,
|
|
400
417
|
parseGazetteer,
|
|
401
418
|
parseJsonText,
|
|
402
419
|
parseLocalDateTime,
|
|
@@ -417,6 +434,7 @@ export {
|
|
|
417
434
|
queryParam,
|
|
418
435
|
readConfigFiles,
|
|
419
436
|
readDocumentAnswer,
|
|
437
|
+
readFill,
|
|
420
438
|
readTemplateAnswer,
|
|
421
439
|
readingOrder,
|
|
422
440
|
reduce,
|
|
@@ -439,6 +457,8 @@ export {
|
|
|
439
457
|
resolveVariables,
|
|
440
458
|
revalidateBundle,
|
|
441
459
|
rowsToMappings,
|
|
460
|
+
ruleFill,
|
|
461
|
+
ruleFiller,
|
|
442
462
|
sameSave,
|
|
443
463
|
sampleEntries,
|
|
444
464
|
screenDocuments,
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type FillForm, type FillResult, type FormFiller } from './formFill';
|
|
2
|
+
/**
|
|
3
|
+
* Fills a form without a model. A named field takes the value said next to it ("weight 72.5",
|
|
4
|
+
* "slept badly, maybe five hours", "didn't drink", "mood pretty low"), the last time it was named
|
|
5
|
+
* if it was named twice ("mood 3, no wait, mood 4"). Then fields not named are found in the rest
|
|
6
|
+
* of what was said by what only they could take: a number with the field's unit ("72.5 kilos",
|
|
7
|
+
* "5k"), a time when one field takes times ("for an hour and a half"), or a choice only that
|
|
8
|
+
* field has ("went for a jog"). Works offline on every device.
|
|
9
|
+
*/
|
|
10
|
+
export declare function ruleFill(form: FillForm, said: string): FillResult;
|
|
11
|
+
/** The filler that needs no model: ruleFill. Works offline on every device. */
|
|
12
|
+
export declare const ruleFiller: FormFiller;
|