@modelform/react-native 0.12.0 → 0.13.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.
@@ -1567,6 +1567,246 @@ function queryErrors(results) {
1567
1567
  return Object.entries(results ?? {}).filter(([, r]) => r.error).map(([refId, r]) => `${refId}: ${r.error}`).join("\n");
1568
1568
  }
1569
1569
 
1570
+ // src/core/speech.ts
1571
+ var UNITS = {
1572
+ zero: 0,
1573
+ oh: 0,
1574
+ nought: 0,
1575
+ one: 1,
1576
+ two: 2,
1577
+ three: 3,
1578
+ four: 4,
1579
+ five: 5,
1580
+ six: 6,
1581
+ seven: 7,
1582
+ eight: 8,
1583
+ nine: 9,
1584
+ ten: 10,
1585
+ eleven: 11,
1586
+ twelve: 12,
1587
+ thirteen: 13,
1588
+ fourteen: 14,
1589
+ fifteen: 15,
1590
+ sixteen: 16,
1591
+ seventeen: 17,
1592
+ eighteen: 18,
1593
+ nineteen: 19
1594
+ };
1595
+ var TENS = { twenty: 20, thirty: 30, forty: 40, fifty: 50, sixty: 60, seventy: 70, eighty: 80, ninety: 90 };
1596
+ var SCALES = { hundred: 100, thousand: 1e3, million: 1e6 };
1597
+ var NEGATIVE = /* @__PURE__ */ new Set(["minus", "negative"]);
1598
+ var isNumberWord = (w) => w in UNITS || w in TENS || w in SCALES;
1599
+ function words(text) {
1600
+ return text.toLowerCase().normalize("NFKD").replace(/[̀-ͯ]/g, "").replace(/(\d),(\d{3})\b/g, "$1$2").replace(/(\d),(\d)/g, "$1.$2").replace(/[^a-z0-9.:\s-]/g, " ").replace(/(?<![\d])-(?=\d)/g, " minus ").replace(/-/g, " ").replace(/\.(?!\d)/g, " ").split(/\s+/).filter(Boolean);
1601
+ }
1602
+ function wordsToInteger(ws) {
1603
+ if (!ws.length) return null;
1604
+ if (ws.some((w) => w in SCALES)) {
1605
+ let total = 0;
1606
+ let current = 0;
1607
+ for (const w of ws) {
1608
+ if (w in UNITS) current += UNITS[w];
1609
+ else if (w in TENS) current += TENS[w];
1610
+ else if (w === "hundred") current = (current || 1) * 100;
1611
+ else if (w in SCALES) {
1612
+ total += (current || 1) * SCALES[w];
1613
+ current = 0;
1614
+ } else return null;
1615
+ }
1616
+ return total + current;
1617
+ }
1618
+ const groups = [];
1619
+ for (let i = 0; i < ws.length; i++) {
1620
+ const w = ws[i];
1621
+ const next = ws[i + 1];
1622
+ const nextUnit = next != null && next in UNITS && UNITS[next] > 0 && UNITS[next] < 10;
1623
+ if (w in TENS) {
1624
+ groups.push(String(TENS[w] + (nextUnit ? UNITS[next] : 0)));
1625
+ if (nextUnit) i++;
1626
+ } else if (w === "oh" && nextUnit) {
1627
+ groups.push(`0${UNITS[next]}`);
1628
+ i++;
1629
+ } else if (w in UNITS) groups.push(String(UNITS[w]));
1630
+ else return null;
1631
+ }
1632
+ return Number(groups.map((g, i) => i === 0 ? g : g.padStart(2, "0")).join(""));
1633
+ }
1634
+ function parseSpokenNumber(text) {
1635
+ const ws = words(text);
1636
+ let i = 0;
1637
+ let sign = 1;
1638
+ for (; i < ws.length; i++) {
1639
+ const w = ws[i];
1640
+ if (NEGATIVE.has(w)) sign = -1;
1641
+ else if (/^\d/.test(w) || isNumberWord(w) || w === "a" && ws[i + 1] in SCALES || w === "point" && ws[i + 1] && (/^\d/.test(ws[i + 1]) || ws[i + 1] in UNITS)) break;
1642
+ else if (w !== "and") sign = 1;
1643
+ }
1644
+ if (i >= ws.length) return null;
1645
+ const digits = /^(\d+(?:\.\d+)?)$/.exec(ws[i]);
1646
+ if (digits) {
1647
+ let n = Number(digits[1]);
1648
+ const rest = ws.slice(i + 1);
1649
+ if (!digits[1].includes(".") && rest[0] === "point") n = Number(`${digits[1]}.${fractionDigits(rest.slice(1)) ?? 0}`);
1650
+ else if (rest[0] === "and" && rest[1] === "a" && rest[2] === "half") n += 0.5;
1651
+ return sign * n;
1652
+ }
1653
+ const whole = [];
1654
+ for (; i < ws.length; i++) {
1655
+ const w = ws[i];
1656
+ if (isNumberWord(w)) whole.push(w);
1657
+ else if (w === "a" && ws[i + 1] in SCALES) whole.push("one");
1658
+ else if (w === "and" && ws[i + 1] && isNumberWord(ws[i + 1]) && whole.some((x) => x in SCALES)) continue;
1659
+ else break;
1660
+ }
1661
+ const intPart = whole.length ? wordsToInteger(whole) : 0;
1662
+ if (intPart == null) return null;
1663
+ if (ws[i] === "point") {
1664
+ const frac = fractionDigits(ws.slice(i + 1));
1665
+ return frac == null ? sign * intPart : sign * Number(`${intPart}.${frac}`);
1666
+ }
1667
+ if (ws[i] === "and" && ws[i + 1] === "a" && ws[i + 2] === "half") return sign * (intPart + 0.5);
1668
+ if (ws[i] === "and" && ws[i + 1] === "a" && ws[i + 2] === "quarter") return sign * (intPart + 0.25);
1669
+ if (!whole.length) return null;
1670
+ return sign * intPart;
1671
+ }
1672
+ function fractionDigits(ws) {
1673
+ if (ws[0] && /^\d+$/.test(ws[0])) return ws[0];
1674
+ let out = "";
1675
+ for (let i = 0; i < ws.length; i++) {
1676
+ const w = ws[i];
1677
+ if (w in UNITS && UNITS[w] < 10) out += UNITS[w];
1678
+ else if (w in TENS) {
1679
+ const next = ws[i + 1];
1680
+ if (next in UNITS && UNITS[next] > 0 && UNITS[next] < 10) {
1681
+ out += TENS[w] + UNITS[next];
1682
+ i++;
1683
+ } else out += TENS[w];
1684
+ } else if (w in UNITS) out += UNITS[w];
1685
+ else break;
1686
+ }
1687
+ return out || null;
1688
+ }
1689
+ function parseSpokenDuration(text) {
1690
+ const clock = /(?:(\d+):)?(\d+):(\d{1,2})(?:\.(\d+))?|(\d+):(\d{1,2})(?:\.(\d+))?/.exec(text);
1691
+ if (clock) {
1692
+ if (clock[3] != null) {
1693
+ const [h, m, s, f] = [Number(clock[1] ?? 0), Number(clock[2]), Number(clock[3]), clock[4] ?? "0"];
1694
+ return clock[1] != null ? h * 3600 + m * 60 + s + Number(`0.${f}`) : m * 60 + s + Number(`0.${f}`);
1695
+ }
1696
+ }
1697
+ const lower = text.toLowerCase().replace(/\ban hour\b/g, "one hour").replace(/\ba minute\b/g, "one minute").replace(/(\S+) (hours?|minutes?) and a half/g, "$1 and a half $2");
1698
+ const parts = lower.split(/\b(hours?|hrs?|minutes?|mins?|seconds?|secs?)\b/);
1699
+ const scale = (unit) => unit.startsWith("h") ? 3600 : unit.startsWith("m") ? 60 : 1;
1700
+ let total = 0;
1701
+ let found = false;
1702
+ let last = 0;
1703
+ for (let i = 0; i < parts.length; i += 2) {
1704
+ const n = parseSpokenNumber(parts[i]);
1705
+ const unit = parts[i + 1];
1706
+ const s = unit != null ? scale(unit) : last === 3600 ? 60 : last === 60 ? 1 : 0;
1707
+ if (unit != null) last = s;
1708
+ if (n == null || !s) continue;
1709
+ total += n * s;
1710
+ found = true;
1711
+ }
1712
+ if (found) return Math.round(total * 100) / 100;
1713
+ return null;
1714
+ }
1715
+ var normalize = (s) => words(s).join(" ");
1716
+ var singular = (w) => w.length > 3 && w.endsWith("s") && !w.endsWith("ss") ? w.slice(0, -1) : w;
1717
+ var loose = (s) => normalize(s).split(" ").map(singular).join(" ");
1718
+ function matchChoices(text, choices2) {
1719
+ const said = ` ${loose(text)} `;
1720
+ const hits = [];
1721
+ const byLength = [...choices2].sort((a, b) => b.label.length - a.label.length);
1722
+ for (const c of byLength) {
1723
+ const label = loose(c.label);
1724
+ if (!label) continue;
1725
+ let from = 0;
1726
+ for (; ; ) {
1727
+ const at = said.indexOf(` ${label} `, from);
1728
+ if (at < 0) break;
1729
+ const end = at + label.length + 1;
1730
+ if (!hits.some((h) => at < h.end && end > h.at)) hits.push({ at, end, value: c.value });
1731
+ from = at + 1;
1732
+ }
1733
+ }
1734
+ if (!hits.length) {
1735
+ const n = parseSpokenNumber(text);
1736
+ const c = n == null ? void 0 : choices2.find((x) => x.value === n || Number(x.label) === n || x.value === String(n));
1737
+ return c ? [c.value] : [];
1738
+ }
1739
+ const seen = /* @__PURE__ */ new Set();
1740
+ return hits.sort((a, b) => a.at - b.at).map((h) => h.value).filter((v) => !seen.has(v) && seen.add(v));
1741
+ }
1742
+ var YES = /* @__PURE__ */ new Set(["yes", "yeah", "yep", "yup", "true", "on", "done", "did", "checked", "correct", "affirmative"]);
1743
+ var NO = /* @__PURE__ */ new Set(["no", "nope", "nah", "false", "off", "not", "didnt", "didn", "unchecked", "negative"]);
1744
+ function parseSpokenYesNo(text) {
1745
+ const ws = words(text.replace(/['’]/g, ""));
1746
+ if (ws.some((w) => NO.has(w))) return false;
1747
+ if (ws.some((w) => YES.has(w))) return true;
1748
+ return null;
1749
+ }
1750
+ function spokenValue(panel, said, current = null, choices2) {
1751
+ const text = said.trim();
1752
+ if (!text) return { problem: "Didn\u2019t hear anything" };
1753
+ const o = panel.options;
1754
+ const quoted = `\u201C${text}\u201D`;
1755
+ switch (panel.type) {
1756
+ case "input-text": {
1757
+ if (o.suggest || typeof current !== "string" || !current.trim()) return { value: text };
1758
+ return { value: `${current.trimEnd()} ${text}` };
1759
+ }
1760
+ case "input-number":
1761
+ case "input-rating": {
1762
+ const n = parseSpokenNumber(text);
1763
+ if (n == null) return { problem: `Heard ${quoted}, not a number` };
1764
+ const step = panel.type === "input-rating" ? 1 : o.step ?? 1;
1765
+ return { value: Number.isInteger(step) ? Math.round(n) : n };
1766
+ }
1767
+ case "input-slider": {
1768
+ const min = o.min ?? 0;
1769
+ const max = o.max ?? 10;
1770
+ const step = o.step ?? 1;
1771
+ if (o.labels?.length) {
1772
+ const [hit] = matchChoices(text, o.labels.map((label, i) => ({ label, value: i })));
1773
+ if (typeof hit === "number") {
1774
+ const raw = o.labels.length === 1 ? min : min + hit / (o.labels.length - 1) * (max - min);
1775
+ return { value: Number((Math.round((raw - min) / step) * step + min).toFixed((String(step).split(".")[1] ?? "").length)) };
1776
+ }
1777
+ }
1778
+ const n = parseSpokenNumber(text);
1779
+ if (n == null) return { problem: `Heard ${quoted}, not a number` };
1780
+ return { value: Number.isInteger(step) ? Math.round(n) : n };
1781
+ }
1782
+ case "input-duration": {
1783
+ const s = parseSpokenDuration(text) ?? parseSpokenNumber(text);
1784
+ return s == null ? { problem: `Heard ${quoted}, not a time` } : { value: s };
1785
+ }
1786
+ case "input-select": {
1787
+ const options = choices2 ?? o.choices ?? [];
1788
+ const hits = matchChoices(text, options);
1789
+ if (!hits.length) return { problem: `Heard ${quoted}, not one of the choices` };
1790
+ if (!o.multi) return { value: hits[0] };
1791
+ const had = Array.isArray(current) ? current : current == null ? [] : [current];
1792
+ return { value: [...had, ...hits.filter((h) => !had.includes(h))] };
1793
+ }
1794
+ case "input-toggle": {
1795
+ const yes = parseSpokenYesNo(text);
1796
+ return yes == null ? { problem: `Heard ${quoted}, not yes or no` } : { value: yes };
1797
+ }
1798
+ default:
1799
+ return { problem: "This input doesn\u2019t take dictation" };
1800
+ }
1801
+ }
1802
+ var DICTATION_TYPES = ["input-number", "input-text", "input-select", "input-duration"];
1803
+ var takesDictation = (panel) => DICTATION_TYPES.includes(panel.type);
1804
+ function dictationHints(panel, choices2) {
1805
+ const out = (choices2 ?? panel.options.choices ?? []).map((c) => c.label);
1806
+ if (panel.options.unit) out.push(panel.options.unit);
1807
+ return out;
1808
+ }
1809
+
1570
1810
  // src/core/local.ts
1571
1811
  var LOCAL_DATASOURCE_TYPE = "modelform-local";
1572
1812
  var LEGACY_LOCAL_DATASOURCE_TYPE = "dashkit-local";
@@ -11996,6 +12236,14 @@ export {
11996
12236
  GrafanaClient,
11997
12237
  GrafanaDataSource,
11998
12238
  fromWire,
12239
+ parseSpokenNumber,
12240
+ parseSpokenDuration,
12241
+ matchChoices,
12242
+ parseSpokenYesNo,
12243
+ spokenValue,
12244
+ DICTATION_TYPES,
12245
+ takesDictation,
12246
+ dictationHints,
11999
12247
  LOCAL_DATASOURCE_TYPE,
12000
12248
  isLocalDatasource,
12001
12249
  LocalDataSource,
@@ -11,6 +11,7 @@ export * from './datasource';
11
11
  export * from './transform';
12
12
  export * from './grafana';
13
13
  export * from './inputs';
14
+ export * from './speech';
14
15
  export * from './local';
15
16
  export * from './gazetteer';
16
17
  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
 
@@ -243,6 +242,7 @@ var _chunkG67L7TFKjs = require('../chunk-G67L7TFK.js');
243
242
 
244
243
 
245
244
 
245
+ var _chunkCU4TMSZEjs = require('../chunk-CU4TMSZE.js');
246
246
 
247
247
 
248
248
 
@@ -471,4 +471,20 @@ 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
+ 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;
@@ -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,
@@ -127,6 +129,7 @@ import {
127
129
  mappingProblem,
128
130
  mappingRow,
129
131
  mappingRows,
132
+ matchChoices,
130
133
  metricChanges,
131
134
  movePanel,
132
135
  newDocument,
@@ -154,6 +157,9 @@ import {
154
157
  parseLocalDateTime,
155
158
  parseRange,
156
159
  parseSnippet,
160
+ parseSpokenDuration,
161
+ parseSpokenNumber,
162
+ parseSpokenYesNo,
157
163
  parseTemplate,
158
164
  parseTime,
159
165
  pasteSnippet,
@@ -202,9 +208,11 @@ import {
202
208
  settleLayout,
203
209
  snapToGrid,
204
210
  splitPath,
211
+ spokenValue,
205
212
  startOf,
206
213
  stringifyCompact,
207
214
  tabIdFor,
215
+ takesDictation,
208
216
  templateNeeds,
209
217
  templatePrompt,
210
218
  textSuggestions,
@@ -234,7 +242,7 @@ import {
234
242
  variableWithType,
235
243
  visibleVariables,
236
244
  zoomRange
237
- } from "../chunk-YUSXYDXG.mjs";
245
+ } from "../chunk-OFXIKI2L.mjs";
238
246
  export {
239
247
  ALL,
240
248
  AUTHORING_GUIDE,
@@ -245,6 +253,7 @@ export {
245
253
  ConfigLoader,
246
254
  DASHBOARD_DS,
247
255
  DEFAULT_GAZETTEER,
256
+ DICTATION_TYPES,
248
257
  DOCUMENT_GUIDE,
249
258
  EDITABLE_VARIABLE_TYPES,
250
259
  EXAMPLE_TEMPLATE,
@@ -299,6 +308,7 @@ export {
299
308
  dashboardSourceIds,
300
309
  defaultFetchJson,
301
310
  describeRange,
311
+ dictationHints,
302
312
  diffJson,
303
313
  documentChanges,
304
314
  documentIdFor,
@@ -364,6 +374,7 @@ export {
364
374
  mappingProblem,
365
375
  mappingRow,
366
376
  mappingRows,
377
+ matchChoices,
367
378
  metricChanges,
368
379
  movePanel,
369
380
  newDocument,
@@ -391,6 +402,9 @@ export {
391
402
  parseLocalDateTime,
392
403
  parseRange,
393
404
  parseSnippet,
405
+ parseSpokenDuration,
406
+ parseSpokenNumber,
407
+ parseSpokenYesNo,
394
408
  parseTemplate,
395
409
  parseTime,
396
410
  pasteSnippet,
@@ -439,9 +453,11 @@ export {
439
453
  settleLayout,
440
454
  snapToGrid,
441
455
  splitPath,
456
+ spokenValue,
442
457
  startOf,
443
458
  stringifyCompact,
444
459
  tabIdFor,
460
+ takesDictation,
445
461
  templateNeeds,
446
462
  templatePrompt,
447
463
  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';