@modelform/react-native 0.16.0 → 0.18.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/dist/{chunk-PVLALJT5.js → chunk-IHOP6IEA.js} +235 -147
- package/dist/{chunk-Q5GMOQT7.mjs → chunk-WABOXGET.mjs} +98 -10
- package/dist/core/authoring.d.ts +2 -2
- package/dist/core/formFill.d.ts +2 -0
- package/dist/core/index.js +2 -2
- package/dist/core/index.mjs +1 -1
- package/dist/core/inputs.d.ts +5 -0
- package/dist/index.js +162 -162
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
- package/schema/dashboard.schema.json +2 -1
|
@@ -664,7 +664,80 @@ function formatDate(ms, format3 = "YYYY-MM-DD HH:mm:ss") {
|
|
|
664
664
|
};
|
|
665
665
|
return format3.replace(/YYYY|YY|MM|DD|HH|mm|ss|SSS/g, (t) => tokens[t]);
|
|
666
666
|
}
|
|
667
|
+
var operandName = (o) => o == null ? void 0 : typeof o === "object" ? (o.matcher?.options ?? o.fixed)?.toString() : String(o);
|
|
668
|
+
var OPERATORS = {
|
|
669
|
+
"+": (a, b) => a + b,
|
|
670
|
+
"-": (a, b) => a - b,
|
|
671
|
+
"*": (a, b) => a * b,
|
|
672
|
+
"/": (a, b) => a / b,
|
|
673
|
+
"%": (a, b) => a % b,
|
|
674
|
+
"^": (a, b) => a ** b
|
|
675
|
+
};
|
|
676
|
+
var ROW_REDUCERS = {
|
|
677
|
+
sum: { label: "Total", fn: (vs) => vs.length ? vs.reduce((a, b) => a + b, 0) : null },
|
|
678
|
+
mean: { label: "Mean", fn: (vs) => vs.length ? vs.reduce((a, b) => a + b, 0) / vs.length : null },
|
|
679
|
+
min: { label: "Min", fn: (vs) => vs.length ? Math.min(...vs) : null },
|
|
680
|
+
max: { label: "Max", fn: (vs) => vs.length ? Math.max(...vs) : null },
|
|
681
|
+
first: { label: "First", fn: (vs) => vs[0] ?? null },
|
|
682
|
+
last: { label: "Last", fn: (vs) => vs.at(-1) ?? null },
|
|
683
|
+
count: { label: "Count", fn: (vs) => vs.length },
|
|
684
|
+
range: { label: "Range", fn: (vs) => vs.length ? Math.max(...vs) - Math.min(...vs) : null }
|
|
685
|
+
};
|
|
686
|
+
var asNumber = (v) => {
|
|
687
|
+
if (v == null || v === "" || typeof v === "boolean") return v === true ? 1 : v === false ? 0 : null;
|
|
688
|
+
const n = Number(v);
|
|
689
|
+
return Number.isFinite(n) ? n : null;
|
|
690
|
+
};
|
|
691
|
+
function calculate(frame, multiple, options) {
|
|
692
|
+
const rows = frame.fields[0]?.values.length ?? 0;
|
|
693
|
+
const find = (name) => frame.fields.find((f) => f.name === name || fieldDisplayName(f, frame, multiple) === name);
|
|
694
|
+
const mode = options.mode ?? "reduceRow";
|
|
695
|
+
if (mode === "binary") {
|
|
696
|
+
const { left, right, operator = "*" } = options.binary ?? {};
|
|
697
|
+
const op = OPERATORS[operator];
|
|
698
|
+
const [l, r] = [operandName(left), operandName(right)];
|
|
699
|
+
if (!op || l == null || r == null) return;
|
|
700
|
+
const side = (name) => {
|
|
701
|
+
const f = find(name);
|
|
702
|
+
if (f) return (i) => asNumber(f.values[i]);
|
|
703
|
+
const n = asNumber(name);
|
|
704
|
+
return n == null ? void 0 : () => n;
|
|
705
|
+
};
|
|
706
|
+
const [a, b] = [side(l), side(r)];
|
|
707
|
+
if (!a || !b) return;
|
|
708
|
+
const values = Array.from({ length: rows }, (_, i) => {
|
|
709
|
+
const [x, y] = [a(i), b(i)];
|
|
710
|
+
if (x == null || y == null) return null;
|
|
711
|
+
const v = op(x, y);
|
|
712
|
+
return Number.isFinite(v) ? v : null;
|
|
713
|
+
});
|
|
714
|
+
return { name: options.alias || `${l} ${operator} ${r}`, type: "number", values };
|
|
715
|
+
}
|
|
716
|
+
if (mode === "reduceRow") {
|
|
717
|
+
const { reducer = "sum", include } = options.reduce ?? {};
|
|
718
|
+
const red = ROW_REDUCERS[reducer];
|
|
719
|
+
if (!red) return;
|
|
720
|
+
const fields = include?.length ? include.map(find).filter((f) => !!f) : frame.fields.filter((f) => f.type === "number");
|
|
721
|
+
if (!fields.length) return;
|
|
722
|
+
const values = Array.from({ length: rows }, (_, i) => red.fn(fields.map((f) => asNumber(f.values[i])).filter((v) => v != null)));
|
|
723
|
+
return { name: options.alias || red.label, type: "number", values };
|
|
724
|
+
}
|
|
725
|
+
}
|
|
667
726
|
var TRANSFORMERS = {
|
|
727
|
+
// A field computed per row: from two fields, or a field and a number (binary), or across fields
|
|
728
|
+
// (reduceRow). Several frames are joined on time first, as Grafana does, so the entries of one
|
|
729
|
+
// Save (which share a time) meet in one row: yield ÷ dose per shot. A row missing a value, or a
|
|
730
|
+
// division by zero, gives null.
|
|
731
|
+
calculateField: (frames, options) => {
|
|
732
|
+
const joined = frames.length > 1 ? TRANSFORMERS.joinByField(frames, {}) : frames;
|
|
733
|
+
const multiple = joined.length > 1;
|
|
734
|
+
return joined.map((frame) => {
|
|
735
|
+
const field2 = calculate(frame, multiple, options);
|
|
736
|
+
if (!field2) return frame;
|
|
737
|
+
const time = frame.fields.find((f) => f.type === "time");
|
|
738
|
+
return { ...frame, fields: options.replaceFields ? [...time ? [time] : [], field2] : [...frame.fields, field2] };
|
|
739
|
+
});
|
|
740
|
+
},
|
|
668
741
|
convertFieldType: (frames, { conversions = [] }) => frames.map((frame) => ({
|
|
669
742
|
...frame,
|
|
670
743
|
fields: frame.fields.map((f) => {
|
|
@@ -1822,13 +1895,13 @@ function fillForm(dashboard, choices2 = {}) {
|
|
|
1822
1895
|
let field2;
|
|
1823
1896
|
switch (p.type) {
|
|
1824
1897
|
case "input-number":
|
|
1825
|
-
field2 = { ...base, type: "number", unit: o.unit, min: o.min, max: o.max };
|
|
1898
|
+
field2 = { ...base, type: "number", unit: o.unit, min: o.min, max: o.max, step: o.step ?? 1 };
|
|
1826
1899
|
break;
|
|
1827
1900
|
case "input-rating":
|
|
1828
|
-
field2 = { ...base, type: "number", min: Math.round(o.min ?? 1), max: Math.round(o.max ?? 5) };
|
|
1901
|
+
field2 = { ...base, type: "number", min: Math.round(o.min ?? 1), max: Math.round(o.max ?? 5), step: 1 };
|
|
1829
1902
|
break;
|
|
1830
1903
|
case "input-slider":
|
|
1831
|
-
field2 = { ...base, type: "number", unit: o.unit, min: o.min ?? 0, max: o.max ?? 10, choices: o.labels?.length ? o.labels : void 0 };
|
|
1904
|
+
field2 = { ...base, type: "number", unit: o.unit, min: o.min ?? 0, max: o.max ?? 10, step: o.step ?? 1, choices: o.labels?.length ? o.labels : void 0 };
|
|
1832
1905
|
break;
|
|
1833
1906
|
case "input-duration":
|
|
1834
1907
|
field2 = { ...base, type: "duration" };
|
|
@@ -1856,8 +1929,11 @@ function fillForm(dashboard, choices2 = {}) {
|
|
|
1856
1929
|
function describe(f) {
|
|
1857
1930
|
const range = f.min != null && f.max != null ? `, from ${f.min} to ${f.max}` : f.min != null ? `, ${f.min} or more` : f.max != null ? `, at most ${f.max}` : "";
|
|
1858
1931
|
switch (f.type) {
|
|
1859
|
-
case "number":
|
|
1860
|
-
|
|
1932
|
+
case "number": {
|
|
1933
|
+
const whole = f.step === void 0 || Number.isInteger(f.step);
|
|
1934
|
+
const precision = whole ? "" : ` (to ${f.step})`;
|
|
1935
|
+
return `a ${whole ? "whole number" : "number"}${f.unit ? ` in ${f.unit}` : ""}${precision}${range}${f.choices ? ` (${f.choices.join(" \u2026 ")} along the scale)` : ""}`;
|
|
1936
|
+
}
|
|
1861
1937
|
case "duration":
|
|
1862
1938
|
return "a duration in seconds";
|
|
1863
1939
|
case "choice":
|
|
@@ -1877,7 +1953,7 @@ function fillSchema(form) {
|
|
|
1877
1953
|
switch (f.type) {
|
|
1878
1954
|
case "number":
|
|
1879
1955
|
case "duration":
|
|
1880
|
-
properties[f.key] = { type: "number", description, ...f.min != null && { minimum: f.min }, ...f.max != null && { maximum: f.max } };
|
|
1956
|
+
properties[f.key] = { type: f.type === "number" && (f.step === void 0 || Number.isInteger(f.step)) ? "integer" : "number", description, ...f.min != null && { minimum: f.min }, ...f.max != null && { maximum: f.max } };
|
|
1881
1957
|
break;
|
|
1882
1958
|
case "choice":
|
|
1883
1959
|
properties[f.key] = { type: "string", enum: f.choices, description };
|
|
@@ -3812,7 +3888,8 @@ var dashboard_schema_default = {
|
|
|
3812
3888
|
type: "number"
|
|
3813
3889
|
},
|
|
3814
3890
|
step: {
|
|
3815
|
-
type: "number"
|
|
3891
|
+
type: "number",
|
|
3892
|
+
description: "input-number and input-slider: what + and \u2212 (or a slider notch) move by, which also sets the precision. 1, the default, takes whole numbers only; a step with decimals takes decimals, e.g. 0.1 for a weight like 72.5."
|
|
3816
3893
|
},
|
|
3817
3894
|
placeholder: {
|
|
3818
3895
|
type: "string"
|
|
@@ -4550,7 +4627,7 @@ function validate12(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
4550
4627
|
var schema18 = { "type": "string", "enum": ["form", "dashboard"], "description": "The subset of the Grafana dashboard JSON model that modelform understands. Unknown keys are tolerated and ignored, so dashboards exported from Grafana load as-is. See https://grafana.com/docs/grafana/latest/dashboards/build-dashboards/view-dashboard-json-model/\n\nmodelform adds four extensions, all of which Grafana ignores: - `kind` to say whether the document is a form or a dashboard - `localOnly` to keep a form's entries on the device that records them - `panel.mobile` to tune phone layout per panel - `input-*` panel types for data entry forms (see inputs.ts)" };
|
|
4551
4628
|
var schema19 = { "type": "object", "properties": { "id": { "type": "number" }, "type": { "type": "string", "examples": ["row", "timeseries", "trend", "xychart", "stat", "gauge", "bargauge", "piechart", "barchart", "table", "text", "geomap", "input-number", "input-slider", "input-select", "input-toggle", "input-rating", "input-text", "input-counter", "input-duration", "input-group"] }, "title": { "type": "string" }, "description": { "type": "string" }, "gridPos": { "$ref": "#/definitions/GridPos" }, "datasource": { "anyOf": [{ "$ref": "#/definitions/DataSourceRef" }, { "type": "string" }, { "type": "null" }] }, "targets": { "type": "array", "items": { "$ref": "#/definitions/Target" } }, "fieldConfig": { "type": "object", "properties": { "defaults": { "$ref": "#/definitions/FieldConfig" }, "overrides": { "type": "array", "items": { "$ref": "#/definitions/FieldOverride" } } } }, "options": { "type": "object" }, "transformations": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string" }, "options": { "type": "object" }, "disabled": { "type": "boolean" } }, "required": ["id"] }, "description": "Applied in order to the query results. See transform.ts for the ones modelform implements." }, "collapsed": { "type": "boolean", "description": "Rows only." }, "panels": { "type": "array", "items": { "$ref": "#/definitions/Panel" }, "description": "Rows only: children of a collapsed row live here instead of at the top level." }, "repeat": { "type": "string", "description": "Repeat this row (or panel) once per selected value of the named variable." }, "repeatDirection": { "type": "string", "enum": ["h", "v"], "description": "Panel repeats: side by side (`h`, wrapping at maxPerRow) or stacked (`v`)." }, "maxPerRow": { "type": "number" }, "scopedVars": { "type": "object", "additionalProperties": { "type": "object", "properties": { "text": { "type": "string" }, "value": { "type": "string" } }, "required": ["text", "value"] }, "description": "Set on each copy of a repeated row or panel: the single value it was repeated for." }, "mobile": { "$ref": "#/definitions/MobileOptions" }, "links": { "type": "array", "items": { "$ref": "#/definitions/DataLink" }, "description": "Panel links, from the panel header menu in Grafana." } }, "required": ["type", "gridPos"], "additionalProperties": {}, "allOf": [{ "if": { "properties": { "type": { "pattern": "^input-(?!group$)" } }, "required": ["type"] }, "then": { "required": ["options"], "properties": { "options": { "$ref": "#/definitions/InputOptions" } } } }, { "if": { "properties": { "type": { "const": "input-group" } }, "required": ["type"] }, "then": { "required": ["options"], "properties": { "options": { "$ref": "#/definitions/InputGroupOptions" } } } }] };
|
|
4552
4629
|
var pattern1 = new RegExp("^input-(?!group$)", "u");
|
|
4553
|
-
var schema20 = { "type": "object", "properties": { "metric": { "type": "string", "description": "The metric this input records to. Visualization queries select data by this name." }, "unit": { "type": "string" }, "min": { "type": "number" }, "max": { "type": "number" }, "step": { "type": "number" }, "placeholder": { "type": "string" }, "labels": { "type": "array", "items": { "type": "string" }, "description": 'input-slider only: text spaced evenly along the track, first at min and last at max, e.g. ["Understeer", "Neutral", "Oversteer"]. Replaces the numeric min/max labels.' }, "default": { "anyOf": [{ "type": "number" }, { "type": "string" }, { "type": "boolean" }, { "type": "string", "const": "last" }], "description": 'Initial value: a literal, or "last" to start from the most recent entry.' }, "record": { "type": "string", "enum": ["changed", "always"], "description": '"changed" (the default) records the value only when it was edited before Save; "always" records it on every Save, so a default like "last" is kept with each save.' }, "required": { "type": "boolean", "description": "Save waits until this has a value." }, "choices": { "type": "array", "items": { "$ref": "#/definitions/InputChoice" }, "description": "input-select only." }, "choicesFrom": { "type": "string", "description": "input-select only: take the choices from the app at runtime instead of `choices`, for lists that live in app data (e.g. wheel sets). Names a key of InputForm's `choices` prop." }, "multi": { "type": "boolean", "description": "input-select only: allow selecting several. Each selection is recorded as its own entry." }, "increment": { "type": "number", "description": "input-counter only: the amount each tap records (default 1)." }, "suggest": { "type": "boolean", "description": "input-text only: a single-line field that suggests values recorded earlier, matching what's typed." }, "suggestWith": { "type": "string", "description": "input-text with `suggest` only: another input's metric whose current value narrows the suggestions to values saved alongside it (e.g. configurations of the chosen track). Falls back to every earlier value when none were." } }, "required": ["metric"] };
|
|
4630
|
+
var schema20 = { "type": "object", "properties": { "metric": { "type": "string", "description": "The metric this input records to. Visualization queries select data by this name." }, "unit": { "type": "string" }, "min": { "type": "number" }, "max": { "type": "number" }, "step": { "type": "number", "description": "input-number and input-slider: what + and \u2212 (or a slider notch) move by, which also sets the precision. 1, the default, takes whole numbers only; a step with decimals takes decimals, e.g. 0.1 for a weight like 72.5." }, "placeholder": { "type": "string" }, "labels": { "type": "array", "items": { "type": "string" }, "description": 'input-slider only: text spaced evenly along the track, first at min and last at max, e.g. ["Understeer", "Neutral", "Oversteer"]. Replaces the numeric min/max labels.' }, "default": { "anyOf": [{ "type": "number" }, { "type": "string" }, { "type": "boolean" }, { "type": "string", "const": "last" }], "description": 'Initial value: a literal, or "last" to start from the most recent entry.' }, "record": { "type": "string", "enum": ["changed", "always"], "description": '"changed" (the default) records the value only when it was edited before Save; "always" records it on every Save, so a default like "last" is kept with each save.' }, "required": { "type": "boolean", "description": "Save waits until this has a value." }, "choices": { "type": "array", "items": { "$ref": "#/definitions/InputChoice" }, "description": "input-select only." }, "choicesFrom": { "type": "string", "description": "input-select only: take the choices from the app at runtime instead of `choices`, for lists that live in app data (e.g. wheel sets). Names a key of InputForm's `choices` prop." }, "multi": { "type": "boolean", "description": "input-select only: allow selecting several. Each selection is recorded as its own entry." }, "increment": { "type": "number", "description": "input-counter only: the amount each tap records (default 1)." }, "suggest": { "type": "boolean", "description": "input-text only: a single-line field that suggests values recorded earlier, matching what's typed." }, "suggestWith": { "type": "string", "description": "input-text with `suggest` only: another input's metric whose current value narrows the suggestions to values saved alongside it (e.g. configurations of the chosen track). Falls back to every earlier value when none were." } }, "required": ["metric"] };
|
|
4554
4631
|
var schema21 = { "type": "object", "properties": { "label": { "type": "string" }, "value": { "type": ["number", "string"] } }, "required": ["label", "value"] };
|
|
4555
4632
|
function validate19(data, { instancePath = "", parentData, parentDataProperty, rootData = data } = {}) {
|
|
4556
4633
|
let vErrors = null;
|
|
@@ -12398,7 +12475,7 @@ Forms hold input panels. Each records to a \`metric\` (lowercase words joined wi
|
|
|
12398
12475
|
|
|
12399
12476
|
| type | what | options besides metric |
|
|
12400
12477
|
|---|---|---|
|
|
12401
|
-
| input-number | a number typed or stepped with + and \u2212 | unit, step, min, max |
|
|
12478
|
+
| input-number | a number typed or stepped with + and \u2212 | unit, step (1 by default: whole numbers only; give 0.1 for decimals, e.g. a weight), min, max |
|
|
12402
12479
|
| input-slider | a value dragged along a range | min, max, step, unit, labels (text spread along the track) |
|
|
12403
12480
|
| input-select | one of a set of choices | choices: [{ "label", "value" }], multi (allow several) |
|
|
12404
12481
|
| input-toggle | yes or no (records 1 or 0) | |
|
|
@@ -12433,7 +12510,18 @@ Chart panels read the app's entries with \`"datasource": { "type": "modelform-lo
|
|
|
12433
12510
|
|
|
12434
12511
|
Units and ranges go in \`"fieldConfig": { "defaults": { "unit": "\u2026", "min", "max", "decimals" } }\`. Units are Grafana's, e.g. "percent", "masskg", "lengthkm", "s", or "suffix: <text>" for anything else (\`"suffix: glasses"\`). Don't use trend, xychart or geomap panels.
|
|
12435
12512
|
|
|
12436
|
-
|
|
12513
|
+
To chart a value worked out from inputs saved together on one form, e.g. a ratio, query each input as its own target and add a \`calculateField\` transformation. Series are joined on time first, so the values of one save meet in one row:
|
|
12514
|
+
|
|
12515
|
+
\`\`\`
|
|
12516
|
+
"targets": [ { "refId": "A", "metric": "yield" }, { "refId": "B", "metric": "dose" } ],
|
|
12517
|
+
"transformations": [ { "id": "calculateField", "options": { "mode": "binary", "alias": "Ratio", "replaceFields": true,
|
|
12518
|
+
"binary": { "left": "yield", "operator": "/", "right": "dose" } } } ]
|
|
12519
|
+
\`\`\`
|
|
12520
|
+
|
|
12521
|
+
- \`left\` and \`right\` are a target's metric (its \`alias\` if it has one) or a number; operators are + - * / % ^. \`"replaceFields": true\` keeps only the result; leave it out to chart the inputs beside it.
|
|
12522
|
+
- \`"mode": "reduceRow"\` with \`"reduce": { "reducer": "sum" | "mean" | "min" | "max", "include": ["<metric>", \u2026] }\` combines several inputs instead, e.g. a total of three scores.
|
|
12523
|
+
- Give both targets the same \`aggregate\` and \`bucket\`, or neither. A save missing either value has no result.
|
|
12524
|
+
- It doesn't work for fields inside an input-group (weight \xD7 reps per set): every item of a save shares one time. Chart what's recorded there instead, or add a field for the combined value, and say which you did in the sentence before the JSON.
|
|
12437
12525
|
|
|
12438
12526
|
`;
|
|
12439
12527
|
var AUTHORING_GUIDE = `# modelform templates
|
package/dist/core/authoring.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { Dashboard, DocumentKind } from './schema';
|
|
2
2
|
import { type AppTemplate } from './templates';
|
|
3
3
|
/** How to write forms and dashboards, for an assistant: the part of the guide that applies to one document. */
|
|
4
|
-
export declare const DOCUMENT_GUIDE = "## Documents\n\nA document is a subset of Grafana's dashboard JSON: `{ \"kind\": \"form\" | \"dashboard\", \"title\": \"\u2026\", \"panels\": [ \u2026 ] }`, and dashboards add `\"time\": { \"from\": \"now-30d\", \"to\": \"now\" }`.\n\nEvery panel has an `id` (a number, unique in its document), a `type`, a `title`, and a `gridPos` `{ \"x\", \"y\", \"w\", \"h\" }` on a 24-column grid: `w: 24` is full width, `w: 12` half. Stack panels top to bottom with no gaps or overlaps (each `y` is the previous `y + h` unless they sit side by side). On phones panels show full width in that order.\n\nA `\"row\"` panel (`h: 1`, no options) is a section heading for the panels under it, in forms and dashboards.\n\n## Forms\n\nForms hold input panels. Each records to a `metric` (lowercase words joined with dashes, e.g. `\"body-weight\"`), and charts read entries by that metric. Two inputs never share a metric. Use `h: 3` for inputs.\n\n| type | what | options besides metric |\n|---|---|---|\n| input-number | a number typed or stepped with + and \u2212 | unit, step, min, max |\n| input-slider | a value dragged along a range | min, max, step, unit, labels (text spread along the track) |\n| input-select | one of a set of choices | choices: [{ \"label\", \"value\" }], multi (allow several) |\n| input-toggle | yes or no (records 1 or 0) | |\n| input-rating | a score, e.g. 1 to 5 | min, max |\n| input-text | free text | placeholder, suggest (offer earlier values) |\n| input-counter | taps that add up, e.g. glasses of water | increment, unit |\n| input-duration | a length of time, recorded in seconds | placeholder |\n\nA form can set `\"localOnly\": true` (beside `\"kind\"`) to keep what it records on the device where it's recorded: it's never synced to an account, other devices or assistants. Use it only when asked, e.g. for a private journal.\n\nAny input (not counter) can also take `required: true`, `default` (a value, or `\"last\"` for the last one saved), and `record: \"always\"` to record its value on every save even when it wasn't changed.\n\n`input-group` repeats fields once per item, for things like the sets of a workout or the dishes of a meal. Give it `h: 12` and options `{ \"itemTitle\": \"Set\", \"titleFrom\": \"<a field's metric>\", \"start\": 1 | \"last\", \"min\", \"max\", \"fields\": [ { \"type\": \"input-\u2026\", \"title\", \"span\": 1\u201324, \"options\": { \"metric\", \u2026 } } ] }`. Fields can be any input but input-counter.\n\n## Dashboards\n\nChart panels read the app's entries with `\"datasource\": { \"type\": \"modelform-local\" }` and `\"targets\": [ { \"refId\": \"A\", \"metric\": \"\u2026\" } ]` (refIds A, B, C\u2026 for more series). A target can also have:\n\n- `aggregate`: \"sum\", \"avg\", \"min\", \"max\", \"count\" or \"last\", with `bucket`: \"1h\", \"1d\", \"1w\" or \"1M\". Without them each entry is a point.\n- `groupBy`: \"text\" for one series per text or choice value; `{ \"field\": \"<metric>\" }` for one series per value of another input saved at the same time (in an input-group, of the same item, e.g. weight per exercise).\n- `alias`: the series name. `fillZero: false` leaves empty buckets out.\n\n| type | use for | h |\n|---|---|---|\n| timeseries | values over time | 7\u20138 |\n| barchart | totals per day, week or category | 7\u20138 |\n| stat | one big number; `\"options\": { \"reduceOptions\": { \"calcs\": [\"lastNotNull\" or \"mean\" or \"sum\"] } }` | 4 |\n| gauge, bargauge | a value against a range (set min and max) | 5\u20136 |\n| piechart | how a total splits, e.g. by choice with groupBy \"text\" and aggregate \"count\" | 8 |\n| table | rows of values | 8 |\n| text | markdown notes: `\"options\": { \"content\": \"\u2026\" }`, no targets | 3\u20134 |\n\nUnits and ranges go in `\"fieldConfig\": { \"defaults\": { \"unit\": \"\u2026\", \"min\", \"max\", \"decimals\" } }`. Units are Grafana's, e.g. \"percent\", \"masskg\", \"lengthkm\", \"s\", or \"suffix: <text>\" for anything else (`\"suffix: glasses\"`). Don't use trend, xychart or geomap panels.\n\
|
|
4
|
+
export declare const DOCUMENT_GUIDE = "## Documents\n\nA document is a subset of Grafana's dashboard JSON: `{ \"kind\": \"form\" | \"dashboard\", \"title\": \"\u2026\", \"panels\": [ \u2026 ] }`, and dashboards add `\"time\": { \"from\": \"now-30d\", \"to\": \"now\" }`.\n\nEvery panel has an `id` (a number, unique in its document), a `type`, a `title`, and a `gridPos` `{ \"x\", \"y\", \"w\", \"h\" }` on a 24-column grid: `w: 24` is full width, `w: 12` half. Stack panels top to bottom with no gaps or overlaps (each `y` is the previous `y + h` unless they sit side by side). On phones panels show full width in that order.\n\nA `\"row\"` panel (`h: 1`, no options) is a section heading for the panels under it, in forms and dashboards.\n\n## Forms\n\nForms hold input panels. Each records to a `metric` (lowercase words joined with dashes, e.g. `\"body-weight\"`), and charts read entries by that metric. Two inputs never share a metric. Use `h: 3` for inputs.\n\n| type | what | options besides metric |\n|---|---|---|\n| input-number | a number typed or stepped with + and \u2212 | unit, step (1 by default: whole numbers only; give 0.1 for decimals, e.g. a weight), min, max |\n| input-slider | a value dragged along a range | min, max, step, unit, labels (text spread along the track) |\n| input-select | one of a set of choices | choices: [{ \"label\", \"value\" }], multi (allow several) |\n| input-toggle | yes or no (records 1 or 0) | |\n| input-rating | a score, e.g. 1 to 5 | min, max |\n| input-text | free text | placeholder, suggest (offer earlier values) |\n| input-counter | taps that add up, e.g. glasses of water | increment, unit |\n| input-duration | a length of time, recorded in seconds | placeholder |\n\nA form can set `\"localOnly\": true` (beside `\"kind\"`) to keep what it records on the device where it's recorded: it's never synced to an account, other devices or assistants. Use it only when asked, e.g. for a private journal.\n\nAny input (not counter) can also take `required: true`, `default` (a value, or `\"last\"` for the last one saved), and `record: \"always\"` to record its value on every save even when it wasn't changed.\n\n`input-group` repeats fields once per item, for things like the sets of a workout or the dishes of a meal. Give it `h: 12` and options `{ \"itemTitle\": \"Set\", \"titleFrom\": \"<a field's metric>\", \"start\": 1 | \"last\", \"min\", \"max\", \"fields\": [ { \"type\": \"input-\u2026\", \"title\", \"span\": 1\u201324, \"options\": { \"metric\", \u2026 } } ] }`. Fields can be any input but input-counter.\n\n## Dashboards\n\nChart panels read the app's entries with `\"datasource\": { \"type\": \"modelform-local\" }` and `\"targets\": [ { \"refId\": \"A\", \"metric\": \"\u2026\" } ]` (refIds A, B, C\u2026 for more series). A target can also have:\n\n- `aggregate`: \"sum\", \"avg\", \"min\", \"max\", \"count\" or \"last\", with `bucket`: \"1h\", \"1d\", \"1w\" or \"1M\". Without them each entry is a point.\n- `groupBy`: \"text\" for one series per text or choice value; `{ \"field\": \"<metric>\" }` for one series per value of another input saved at the same time (in an input-group, of the same item, e.g. weight per exercise).\n- `alias`: the series name. `fillZero: false` leaves empty buckets out.\n\n| type | use for | h |\n|---|---|---|\n| timeseries | values over time | 7\u20138 |\n| barchart | totals per day, week or category | 7\u20138 |\n| stat | one big number; `\"options\": { \"reduceOptions\": { \"calcs\": [\"lastNotNull\" or \"mean\" or \"sum\"] } }` | 4 |\n| gauge, bargauge | a value against a range (set min and max) | 5\u20136 |\n| piechart | how a total splits, e.g. by choice with groupBy \"text\" and aggregate \"count\" | 8 |\n| table | rows of values | 8 |\n| text | markdown notes: `\"options\": { \"content\": \"\u2026\" }`, no targets | 3\u20134 |\n\nUnits and ranges go in `\"fieldConfig\": { \"defaults\": { \"unit\": \"\u2026\", \"min\", \"max\", \"decimals\" } }`. Units are Grafana's, e.g. \"percent\", \"masskg\", \"lengthkm\", \"s\", or \"suffix: <text>\" for anything else (`\"suffix: glasses\"`). Don't use trend, xychart or geomap panels.\n\nTo chart a value worked out from inputs saved together on one form, e.g. a ratio, query each input as its own target and add a `calculateField` transformation. Series are joined on time first, so the values of one save meet in one row:\n\n```\n\"targets\": [ { \"refId\": \"A\", \"metric\": \"yield\" }, { \"refId\": \"B\", \"metric\": \"dose\" } ],\n\"transformations\": [ { \"id\": \"calculateField\", \"options\": { \"mode\": \"binary\", \"alias\": \"Ratio\", \"replaceFields\": true,\n \"binary\": { \"left\": \"yield\", \"operator\": \"/\", \"right\": \"dose\" } } } ]\n```\n\n- `left` and `right` are a target's metric (its `alias` if it has one) or a number; operators are + - * / % ^. `\"replaceFields\": true` keeps only the result; leave it out to chart the inputs beside it.\n- `\"mode\": \"reduceRow\"` with `\"reduce\": { \"reducer\": \"sum\" | \"mean\" | \"min\" | \"max\", \"include\": [\"<metric>\", \u2026] }` combines several inputs instead, e.g. a total of three scores.\n- Give both targets the same `aggregate` and `bucket`, or neither. A save missing either value has no result.\n- It doesn't work for fields inside an input-group (weight \u00D7 reps per set): every item of a save shares one time. Chart what's recorded there instead, or add a field for the combined value, and say which you did in the sentence before the JSON.\n\n";
|
|
5
5
|
/** How to write a modelform template, for an assistant. Kept next to the format so they change together. */
|
|
6
|
-
export declare const AUTHORING_GUIDE = "# modelform templates\n\nA template is JSON that adds forms (for recording entries) and dashboards (for charting them) to an app, plus tabs to show them.\n\n```\n{\n \"$modelform\": \"template\",\n \"version\": 1,\n \"title\": \"Short name\",\n \"description\": \"One sentence on what it's for.\",\n \"documents\": [ { \"kind\": \"form\" | \"dashboard\", \"id\": \"letters-digits-dashes\", \"dashboard\": { ...document } } ],\n \"tabs\": [ ...tabs ]\n}\n```\n\nEach document's `kind` matches its entry in `documents`.\n\n## Documents\n\nA document is a subset of Grafana's dashboard JSON: `{ \"kind\": \"form\" | \"dashboard\", \"title\": \"\u2026\", \"panels\": [ \u2026 ] }`, and dashboards add `\"time\": { \"from\": \"now-30d\", \"to\": \"now\" }`.\n\nEvery panel has an `id` (a number, unique in its document), a `type`, a `title`, and a `gridPos` `{ \"x\", \"y\", \"w\", \"h\" }` on a 24-column grid: `w: 24` is full width, `w: 12` half. Stack panels top to bottom with no gaps or overlaps (each `y` is the previous `y + h` unless they sit side by side). On phones panels show full width in that order.\n\nA `\"row\"` panel (`h: 1`, no options) is a section heading for the panels under it, in forms and dashboards.\n\n## Forms\n\nForms hold input panels. Each records to a `metric` (lowercase words joined with dashes, e.g. `\"body-weight\"`), and charts read entries by that metric. Two inputs never share a metric. Use `h: 3` for inputs.\n\n| type | what | options besides metric |\n|---|---|---|\n| input-number | a number typed or stepped with + and \u2212 | unit, step, min, max |\n| input-slider | a value dragged along a range | min, max, step, unit, labels (text spread along the track) |\n| input-select | one of a set of choices | choices: [{ \"label\", \"value\" }], multi (allow several) |\n| input-toggle | yes or no (records 1 or 0) | |\n| input-rating | a score, e.g. 1 to 5 | min, max |\n| input-text | free text | placeholder, suggest (offer earlier values) |\n| input-counter | taps that add up, e.g. glasses of water | increment, unit |\n| input-duration | a length of time, recorded in seconds | placeholder |\n\nA form can set `\"localOnly\": true` (beside `\"kind\"`) to keep what it records on the device where it's recorded: it's never synced to an account, other devices or assistants. Use it only when asked, e.g. for a private journal.\n\nAny input (not counter) can also take `required: true`, `default` (a value, or `\"last\"` for the last one saved), and `record: \"always\"` to record its value on every save even when it wasn't changed.\n\n`input-group` repeats fields once per item, for things like the sets of a workout or the dishes of a meal. Give it `h: 12` and options `{ \"itemTitle\": \"Set\", \"titleFrom\": \"<a field's metric>\", \"start\": 1 | \"last\", \"min\", \"max\", \"fields\": [ { \"type\": \"input-\u2026\", \"title\", \"span\": 1\u201324, \"options\": { \"metric\", \u2026 } } ] }`. Fields can be any input but input-counter.\n\n## Dashboards\n\nChart panels read the app's entries with `\"datasource\": { \"type\": \"modelform-local\" }` and `\"targets\": [ { \"refId\": \"A\", \"metric\": \"\u2026\" } ]` (refIds A, B, C\u2026 for more series). A target can also have:\n\n- `aggregate`: \"sum\", \"avg\", \"min\", \"max\", \"count\" or \"last\", with `bucket`: \"1h\", \"1d\", \"1w\" or \"1M\". Without them each entry is a point.\n- `groupBy`: \"text\" for one series per text or choice value; `{ \"field\": \"<metric>\" }` for one series per value of another input saved at the same time (in an input-group, of the same item, e.g. weight per exercise).\n- `alias`: the series name. `fillZero: false` leaves empty buckets out.\n\n| type | use for | h |\n|---|---|---|\n| timeseries | values over time | 7\u20138 |\n| barchart | totals per day, week or category | 7\u20138 |\n| stat | one big number; `\"options\": { \"reduceOptions\": { \"calcs\": [\"lastNotNull\" or \"mean\" or \"sum\"] } }` | 4 |\n| gauge, bargauge | a value against a range (set min and max) | 5\u20136 |\n| piechart | how a total splits, e.g. by choice with groupBy \"text\" and aggregate \"count\" | 8 |\n| table | rows of values | 8 |\n| text | markdown notes: `\"options\": { \"content\": \"\u2026\" }`, no targets | 3\u20134 |\n\nUnits and ranges go in `\"fieldConfig\": { \"defaults\": { \"unit\": \"\u2026\", \"min\", \"max\", \"decimals\" } }`. Units are Grafana's, e.g. \"percent\", \"masskg\", \"lengthkm\", \"s\", or \"suffix: <text>\" for anything else (`\"suffix: glasses\"`). Don't use trend, xychart or geomap panels.\n\
|
|
6
|
+
export declare const AUTHORING_GUIDE = "# modelform templates\n\nA template is JSON that adds forms (for recording entries) and dashboards (for charting them) to an app, plus tabs to show them.\n\n```\n{\n \"$modelform\": \"template\",\n \"version\": 1,\n \"title\": \"Short name\",\n \"description\": \"One sentence on what it's for.\",\n \"documents\": [ { \"kind\": \"form\" | \"dashboard\", \"id\": \"letters-digits-dashes\", \"dashboard\": { ...document } } ],\n \"tabs\": [ ...tabs ]\n}\n```\n\nEach document's `kind` matches its entry in `documents`.\n\n## Documents\n\nA document is a subset of Grafana's dashboard JSON: `{ \"kind\": \"form\" | \"dashboard\", \"title\": \"\u2026\", \"panels\": [ \u2026 ] }`, and dashboards add `\"time\": { \"from\": \"now-30d\", \"to\": \"now\" }`.\n\nEvery panel has an `id` (a number, unique in its document), a `type`, a `title`, and a `gridPos` `{ \"x\", \"y\", \"w\", \"h\" }` on a 24-column grid: `w: 24` is full width, `w: 12` half. Stack panels top to bottom with no gaps or overlaps (each `y` is the previous `y + h` unless they sit side by side). On phones panels show full width in that order.\n\nA `\"row\"` panel (`h: 1`, no options) is a section heading for the panels under it, in forms and dashboards.\n\n## Forms\n\nForms hold input panels. Each records to a `metric` (lowercase words joined with dashes, e.g. `\"body-weight\"`), and charts read entries by that metric. Two inputs never share a metric. Use `h: 3` for inputs.\n\n| type | what | options besides metric |\n|---|---|---|\n| input-number | a number typed or stepped with + and \u2212 | unit, step (1 by default: whole numbers only; give 0.1 for decimals, e.g. a weight), min, max |\n| input-slider | a value dragged along a range | min, max, step, unit, labels (text spread along the track) |\n| input-select | one of a set of choices | choices: [{ \"label\", \"value\" }], multi (allow several) |\n| input-toggle | yes or no (records 1 or 0) | |\n| input-rating | a score, e.g. 1 to 5 | min, max |\n| input-text | free text | placeholder, suggest (offer earlier values) |\n| input-counter | taps that add up, e.g. glasses of water | increment, unit |\n| input-duration | a length of time, recorded in seconds | placeholder |\n\nA form can set `\"localOnly\": true` (beside `\"kind\"`) to keep what it records on the device where it's recorded: it's never synced to an account, other devices or assistants. Use it only when asked, e.g. for a private journal.\n\nAny input (not counter) can also take `required: true`, `default` (a value, or `\"last\"` for the last one saved), and `record: \"always\"` to record its value on every save even when it wasn't changed.\n\n`input-group` repeats fields once per item, for things like the sets of a workout or the dishes of a meal. Give it `h: 12` and options `{ \"itemTitle\": \"Set\", \"titleFrom\": \"<a field's metric>\", \"start\": 1 | \"last\", \"min\", \"max\", \"fields\": [ { \"type\": \"input-\u2026\", \"title\", \"span\": 1\u201324, \"options\": { \"metric\", \u2026 } } ] }`. Fields can be any input but input-counter.\n\n## Dashboards\n\nChart panels read the app's entries with `\"datasource\": { \"type\": \"modelform-local\" }` and `\"targets\": [ { \"refId\": \"A\", \"metric\": \"\u2026\" } ]` (refIds A, B, C\u2026 for more series). A target can also have:\n\n- `aggregate`: \"sum\", \"avg\", \"min\", \"max\", \"count\" or \"last\", with `bucket`: \"1h\", \"1d\", \"1w\" or \"1M\". Without them each entry is a point.\n- `groupBy`: \"text\" for one series per text or choice value; `{ \"field\": \"<metric>\" }` for one series per value of another input saved at the same time (in an input-group, of the same item, e.g. weight per exercise).\n- `alias`: the series name. `fillZero: false` leaves empty buckets out.\n\n| type | use for | h |\n|---|---|---|\n| timeseries | values over time | 7\u20138 |\n| barchart | totals per day, week or category | 7\u20138 |\n| stat | one big number; `\"options\": { \"reduceOptions\": { \"calcs\": [\"lastNotNull\" or \"mean\" or \"sum\"] } }` | 4 |\n| gauge, bargauge | a value against a range (set min and max) | 5\u20136 |\n| piechart | how a total splits, e.g. by choice with groupBy \"text\" and aggregate \"count\" | 8 |\n| table | rows of values | 8 |\n| text | markdown notes: `\"options\": { \"content\": \"\u2026\" }`, no targets | 3\u20134 |\n\nUnits and ranges go in `\"fieldConfig\": { \"defaults\": { \"unit\": \"\u2026\", \"min\", \"max\", \"decimals\" } }`. Units are Grafana's, e.g. \"percent\", \"masskg\", \"lengthkm\", \"s\", or \"suffix: <text>\" for anything else (`\"suffix: glasses\"`). Don't use trend, xychart or geomap panels.\n\nTo chart a value worked out from inputs saved together on one form, e.g. a ratio, query each input as its own target and add a `calculateField` transformation. Series are joined on time first, so the values of one save meet in one row:\n\n```\n\"targets\": [ { \"refId\": \"A\", \"metric\": \"yield\" }, { \"refId\": \"B\", \"metric\": \"dose\" } ],\n\"transformations\": [ { \"id\": \"calculateField\", \"options\": { \"mode\": \"binary\", \"alias\": \"Ratio\", \"replaceFields\": true,\n \"binary\": { \"left\": \"yield\", \"operator\": \"/\", \"right\": \"dose\" } } } ]\n```\n\n- `left` and `right` are a target's metric (its `alias` if it has one) or a number; operators are + - * / % ^. `\"replaceFields\": true` keeps only the result; leave it out to chart the inputs beside it.\n- `\"mode\": \"reduceRow\"` with `\"reduce\": { \"reducer\": \"sum\" | \"mean\" | \"min\" | \"max\", \"include\": [\"<metric>\", \u2026] }` combines several inputs instead, e.g. a total of three scores.\n- Give both targets the same `aggregate` and `bucket`, or neither. A save missing either value has no result.\n- It doesn't work for fields inside an input-group (weight \u00D7 reps per set): every item of a save shares one time. Chart what's recorded there instead, or add a field for the combined value, and say which you did in the sentence before the JSON.\n\n## Tabs\n\n`{ \"id\": \"\u2026\", \"title\": \"\u2026\", \"icon\": \"\u2026\", \"screen\": \u2026 }`, where the screen is one of:\n\n- `{ \"type\": \"forms\", \"forms\": [\"<form id>\", \u2026] }`\n- `{ \"type\": \"dashboard\", \"dashboard\": \"<dashboard id>\" }`\n- `{ \"type\": \"menu\", \"items\": [ { \"form\": \"<id>\" } or { \"dashboard\": \"<id>\", \"description\": \"\u2026\" } ] }`\n\nUsually one tab for the forms and one per dashboard.\n";
|
|
7
7
|
/** The example the guide ends with, for tests and editors. */
|
|
8
8
|
export declare const EXAMPLE_TEMPLATE: AppTemplate;
|
|
9
9
|
export interface PromptContext {
|
package/dist/core/formFill.d.ts
CHANGED
|
@@ -18,6 +18,8 @@ export interface FillField {
|
|
|
18
18
|
unit?: string;
|
|
19
19
|
min?: number;
|
|
20
20
|
max?: number;
|
|
21
|
+
/** Number fields: the input's step. A whole number (1 by default) means whole numbers only. */
|
|
22
|
+
step?: number;
|
|
21
23
|
/** Choice labels, for choice and choices fields; a slider's labels for a number field. */
|
|
22
24
|
choices?: string[];
|
|
23
25
|
}
|
package/dist/core/index.js
CHANGED
|
@@ -252,7 +252,7 @@
|
|
|
252
252
|
|
|
253
253
|
|
|
254
254
|
|
|
255
|
-
var
|
|
255
|
+
var _chunkIHOP6IEAjs = require('../chunk-IHOP6IEA.js');
|
|
256
256
|
|
|
257
257
|
|
|
258
258
|
|
|
@@ -507,4 +507,4 @@ var _chunkPVLALJT5js = require('../chunk-PVLALJT5.js');
|
|
|
507
507
|
|
|
508
508
|
|
|
509
509
|
|
|
510
|
-
exports.ALL = _chunkPVLALJT5js.ALL; exports.AUTHORING_GUIDE = _chunkPVLALJT5js.AUTHORING_GUIDE; exports.BUNDLE_ACCEPT = _chunkPVLALJT5js.BUNDLE_ACCEPT; exports.BUNDLE_TYPE = _chunkPVLALJT5js.BUNDLE_TYPE; exports.CANVAS_GAP = _chunkPVLALJT5js.CANVAS_GAP; exports.CANVAS_ROW_HEADER = _chunkPVLALJT5js.CANVAS_ROW_HEADER; exports.ConfigLoader = _chunkPVLALJT5js.ConfigLoader; exports.DASHBOARD_DS = _chunkPVLALJT5js.DASHBOARD_DS; exports.DEFAULT_GAZETTEER = _chunkPVLALJT5js.DEFAULT_GAZETTEER; exports.DICTATION_TYPES = _chunkPVLALJT5js.DICTATION_TYPES; exports.DOCUMENT_GUIDE = _chunkPVLALJT5js.DOCUMENT_GUIDE; exports.EDITABLE_VARIABLE_TYPES = _chunkPVLALJT5js.EDITABLE_VARIABLE_TYPES; exports.EXAMPLE_TEMPLATE = _chunkPVLALJT5js.EXAMPLE_TEMPLATE; exports.GRID_COLUMNS = _chunkPVLALJT5js.GRID_COLUMNS; exports.GROUP_FIELD_TYPES = _chunkPVLALJT5js.GROUP_FIELD_TYPES; exports.GrafanaClient = _chunkPVLALJT5js.GrafanaClient; exports.GrafanaDataSource = _chunkPVLALJT5js.GrafanaDataSource; exports.GrafanaError = _chunkPVLALJT5js.GrafanaError; exports.HttpConfigFiles = _chunkPVLALJT5js.HttpConfigFiles; exports.INPUT_GROUP = _chunkPVLALJT5js.INPUT_GROUP; exports.INPUT_OPTION_KEYS = _chunkPVLALJT5js.INPUT_OPTION_KEYS; exports.INPUT_TYPES = _chunkPVLALJT5js.INPUT_TYPES; exports.LOCAL_DATASOURCE_TYPE = _chunkPVLALJT5js.LOCAL_DATASOURCE_TYPE; exports.LocalDataSource = _chunkPVLALJT5js.LocalDataSource; exports.MANIFEST_VERSION = _chunkPVLALJT5js.MANIFEST_VERSION; exports.MAPPING_TYPES = _chunkPVLALJT5js.MAPPING_TYPES; exports.MemoryEntryStore = _chunkPVLALJT5js.MemoryEntryStore; exports.NAMED_COLORS = _chunkPVLALJT5js.NAMED_COLORS; exports.OPTION_CATEGORIES = _chunkPVLALJT5js.OPTION_CATEGORIES; exports.OVERRIDE_MATCHERS = _chunkPVLALJT5js.OVERRIDE_MATCHERS; exports.PANEL_TYPES = _chunkPVLALJT5js.PANEL_TYPES; exports.REDUCER_LABELS = _chunkPVLALJT5js.REDUCER_LABELS; exports.REFRESH_CHOICES = _chunkPVLALJT5js.REFRESH_CHOICES; exports.RELATIVE_RANGES = _chunkPVLALJT5js.RELATIVE_RANGES; exports.SERIES_PALETTE = _chunkPVLALJT5js.SERIES_PALETTE; exports.SNIPPET_VERSION = _chunkPVLALJT5js.SNIPPET_VERSION; exports.SPECIAL_MATCHES = _chunkPVLALJT5js.SPECIAL_MATCHES; exports.SaveConflictError = _chunkPVLALJT5js.SaveConflictError; exports.TEMPLATE_VERSION = _chunkPVLALJT5js.TEMPLATE_VERSION; exports.TIME_PRESETS = _chunkPVLALJT5js.TIME_PRESETS; exports.UNIT_CHOICES = _chunkPVLALJT5js.UNIT_CHOICES; exports.addTime = _chunkPVLALJT5js.addTime; exports.appSchema = _chunkPVLALJT5js.appSchema; exports.applyDashboardLink = _chunkPVLALJT5js.applyDashboardLink; exports.applyJsonEdits = _chunkPVLALJT5js.applyJsonEdits; exports.applyTemplate = _chunkPVLALJT5js.applyTemplate; exports.applyTransformations = _chunkPVLALJT5js.applyTransformations; exports.assembleBundle = _chunkPVLALJT5js.assembleBundle; exports.assembleFromResponse = _chunkPVLALJT5js.assembleFromResponse; exports.buildFrames = _chunkPVLALJT5js.buildFrames; exports.bundleFromFiles = _chunkPVLALJT5js.bundleFromFiles; exports.bundleRoot = _chunkPVLALJT5js.bundleRoot; exports.calculateInterval = _chunkPVLALJT5js.calculateInterval; exports.checkFiles = _chunkPVLALJT5js.checkFiles; exports.choicesOf = _chunkPVLALJT5js.choicesOf; exports.cleanDashboard = _chunkPVLALJT5js.cleanDashboard; exports.cleanPanelOptions = _chunkPVLALJT5js.cleanPanelOptions; exports.collapseRow = _chunkPVLALJT5js.collapseRow; exports.compactGrid = _chunkPVLALJT5js.compactGrid; exports.copyPanels = _chunkPVLALJT5js.copyPanels; exports.dashboardSchema = _chunkPVLALJT5js.dashboardSchema; exports.dashboardSchemaIssues = _chunkPVLALJT5js.dashboardSchemaIssues; exports.dashboardSourceIds = _chunkPVLALJT5js.dashboardSourceIds; exports.defaultFetchJson = _chunkPVLALJT5js.defaultFetchJson; exports.describeRange = _chunkPVLALJT5js.describeRange; exports.dictationHints = _chunkPVLALJT5js.dictationHints; exports.diffJson = _chunkPVLALJT5js.diffJson; exports.documentChanges = _chunkPVLALJT5js.documentChanges; exports.documentIdFor = _chunkPVLALJT5js.documentIdFor; exports.documentKind = _chunkPVLALJT5js.documentKind; exports.documentPrompt = _chunkPVLALJT5js.documentPrompt; exports.documentUses = _chunkPVLALJT5js.documentUses; exports.dropTarget = _chunkPVLALJT5js.dropTarget; exports.duplicatePanel = _chunkPVLALJT5js.duplicatePanel; exports.entriesSavedWith = _chunkPVLALJT5js.entriesSavedWith; exports.entriesToItems = _chunkPVLALJT5js.entriesToItems; exports.entryToInputValue = _chunkPVLALJT5js.entryToInputValue; exports.expandRow = _chunkPVLALJT5js.expandRow; exports.fetchBundle = _chunkPVLALJT5js.fetchBundle; exports.fetchJsonWithToken = _chunkPVLALJT5js.fetchJsonWithToken; exports.fieldDisplayName = _chunkPVLALJT5js.fieldDisplayName; exports.fieldMatches = _chunkPVLALJT5js.fieldMatches; exports.fillForm = _chunkPVLALJT5js.fillForm; exports.fillHints = _chunkPVLALJT5js.fillHints; exports.fillPrompt = _chunkPVLALJT5js.fillPrompt; exports.fillSchema = _chunkPVLALJT5js.fillSchema; exports.fixDocumentPrompt = _chunkPVLALJT5js.fixDocumentPrompt; exports.fixTemplatePrompt = _chunkPVLALJT5js.fixTemplatePrompt; exports.formatClock = _chunkPVLALJT5js.formatClock; exports.formatDisplay = _chunkPVLALJT5js.formatDisplay; exports.formatDuration = _chunkPVLALJT5js.formatDuration; exports.formatJsonText = _chunkPVLALJT5js.formatJsonText; exports.formatLocalDateTime = _chunkPVLALJT5js.formatLocalDateTime; exports.formatValue = _chunkPVLALJT5js.formatValue; exports.frameLength = _chunkPVLALJT5js.frameLength; exports.framesToOptions = _chunkPVLALJT5js.framesToOptions; exports.fromWire = _chunkPVLALJT5js.fromWire; exports.getPath = _chunkPVLALJT5js.getPath; exports.gridOffsetPx = _chunkPVLALJT5js.gridOffsetPx; exports.gridUnitsToPx = _chunkPVLALJT5js.gridUnitsToPx; exports.groupField = _chunkPVLALJT5js.groupField; exports.groupFields = _chunkPVLALJT5js.groupFields; exports.groupProblems = _chunkPVLALJT5js.groupProblems; exports.groupToEntries = _chunkPVLALJT5js.groupToEntries; exports.httpFetchJson = _chunkPVLALJT5js.httpFetchJson; exports.initialVariableValues = _chunkPVLALJT5js.initialVariableValues; exports.inputGroups = _chunkPVLALJT5js.inputGroups; exports.inputPanels = _chunkPVLALJT5js.inputPanels; exports.inputProblem = _chunkPVLALJT5js.inputProblem; exports.insertPanel = _chunkPVLALJT5js.insertPanel; exports.interpolate = _chunkPVLALJT5js.interpolate; exports.interpolateDeep = _chunkPVLALJT5js.interpolateDeep; exports.isBundleResponse = _chunkPVLALJT5js.isBundleResponse; exports.isEditableVariableType = _chunkPVLALJT5js.isEditableVariableType; exports.isEmptyItem = _chunkPVLALJT5js.isEmptyItem; exports.isFormPanelType = _chunkPVLALJT5js.isFormPanelType; exports.isInputGroup = _chunkPVLALJT5js.isInputGroup; exports.isInputPanel = _chunkPVLALJT5js.isInputPanel; exports.isInputType = _chunkPVLALJT5js.isInputType; exports.isLocalDatasource = _chunkPVLALJT5js.isLocalDatasource; exports.isReducer = _chunkPVLALJT5js.isReducer; exports.isRow = _chunkPVLALJT5js.isRow; exports.isSqlDatasource = _chunkPVLALJT5js.isSqlDatasource; exports.jsonFromAnswer = _chunkPVLALJT5js.jsonFromAnswer; exports.layoutCanvas = _chunkPVLALJT5js.layoutCanvas; exports.layoutDashboard = _chunkPVLALJT5js.layoutDashboard; exports.lineColumn = _chunkPVLALJT5js.lineColumn; exports.loadGazetteer = _chunkPVLALJT5js.loadGazetteer; exports.locate = _chunkPVLALJT5js.locate; exports.makeTemplate = _chunkPVLALJT5js.makeTemplate; exports.manifestSchemaIssues = _chunkPVLALJT5js.manifestSchemaIssues; exports.mappedResult = _chunkPVLALJT5js.mappedResult; exports.mappingProblem = _chunkPVLALJT5js.mappingProblem; exports.mappingRow = _chunkPVLALJT5js.mappingRow; exports.mappingRows = _chunkPVLALJT5js.mappingRows; exports.matchChoices = _chunkPVLALJT5js.matchChoices; exports.metricChanges = _chunkPVLALJT5js.metricChanges; exports.modelFiller = _chunkPVLALJT5js.modelFiller; exports.movePanel = _chunkPVLALJT5js.movePanel; exports.newDocument = _chunkPVLALJT5js.newDocument; exports.newPanel = _chunkPVLALJT5js.newPanel; exports.newSaveId = _chunkPVLALJT5js.newSaveId; exports.newVariable = _chunkPVLALJT5js.newVariable; exports.nextPanelId = _chunkPVLALJT5js.nextPanelId; exports.normalizeRef = _chunkPVLALJT5js.normalizeRef; exports.numberFields = _chunkPVLALJT5js.numberFields; exports.optionValue = _chunkPVLALJT5js.optionValue; exports.overrideProperties = _chunkPVLALJT5js.overrideProperties; exports.panelEdits = _chunkPVLALJT5js.panelEdits; exports.panelHasQueries = _chunkPVLALJT5js.panelHasQueries; exports.panelKey = _chunkPVLALJT5js.panelKey; exports.panelMetrics = _chunkPVLALJT5js.panelMetrics; exports.panelOptions = _chunkPVLALJT5js.panelOptions; exports.panelOverrides = _chunkPVLALJT5js.panelOverrides; exports.panelSize = _chunkPVLALJT5js.panelSize; exports.panelSpan = _chunkPVLALJT5js.panelSpan; exports.parseClockDigits = _chunkPVLALJT5js.parseClockDigits; exports.parseDashboardLink = _chunkPVLALJT5js.parseDashboardLink; exports.parseDuration = _chunkPVLALJT5js.parseDuration; exports.parseFillAnswer = _chunkPVLALJT5js.parseFillAnswer; exports.parseGazetteer = _chunkPVLALJT5js.parseGazetteer; exports.parseJsonText = _chunkPVLALJT5js.parseJsonText; exports.parseLocalDateTime = _chunkPVLALJT5js.parseLocalDateTime; exports.parseRange = _chunkPVLALJT5js.parseRange; exports.parseSnippet = _chunkPVLALJT5js.parseSnippet; exports.parseSpokenDuration = _chunkPVLALJT5js.parseSpokenDuration; exports.parseSpokenNumber = _chunkPVLALJT5js.parseSpokenNumber; exports.parseSpokenYesNo = _chunkPVLALJT5js.parseSpokenYesNo; exports.parseTemplate = _chunkPVLALJT5js.parseTemplate; exports.parseTime = _chunkPVLALJT5js.parseTime; exports.pasteSnippet = _chunkPVLALJT5js.pasteSnippet; exports.placePanel = _chunkPVLALJT5js.placePanel; exports.plainInputPanels = _chunkPVLALJT5js.plainInputPanels; exports.pointerToPath = _chunkPVLALJT5js.pointerToPath; exports.prepareDashboard = _chunkPVLALJT5js.prepareDashboard; exports.previewPaste = _chunkPVLALJT5js.previewPaste; exports.queryPanel = _chunkPVLALJT5js.queryPanel; exports.queryParam = _chunkPVLALJT5js.queryParam; exports.readConfigFiles = _chunkPVLALJT5js.readConfigFiles; exports.readDocumentAnswer = _chunkPVLALJT5js.readDocumentAnswer; exports.readFill = _chunkPVLALJT5js.readFill; exports.readTemplateAnswer = _chunkPVLALJT5js.readTemplateAnswer; exports.readingOrder = _chunkPVLALJT5js.readingOrder; exports.reduce = _chunkPVLALJT5js.reduce; exports.refineOptions = _chunkPVLALJT5js.refineOptions; exports.refreshedVariables = _chunkPVLALJT5js.refreshedVariables; exports.removeDocumentFromManifest = _chunkPVLALJT5js.removeDocumentFromManifest; exports.removePanel = _chunkPVLALJT5js.removePanel; exports.renameDocumentInManifest = _chunkPVLALJT5js.renameDocumentInManifest; exports.renameMetrics = _chunkPVLALJT5js.renameMetrics; exports.renameVariableInPanels = _chunkPVLALJT5js.renameVariableInPanels; exports.repack = _chunkPVLALJT5js.repack; exports.repeatOptions = _chunkPVLALJT5js.repeatOptions; exports.requiredManifestVersion = _chunkPVLALJT5js.requiredManifestVersion; exports.resizePanel = _chunkPVLALJT5js.resizePanel; exports.resolveColor = _chunkPVLALJT5js.resolveColor; exports.resolveFieldConfig = _chunkPVLALJT5js.resolveFieldConfig; exports.resolveLinks = _chunkPVLALJT5js.resolveLinks; exports.resolveTimezone = _chunkPVLALJT5js.resolveTimezone; exports.resolveUrl = _chunkPVLALJT5js.resolveUrl; exports.resolveVariables = _chunkPVLALJT5js.resolveVariables; exports.revalidateBundle = _chunkPVLALJT5js.revalidateBundle; exports.rowsToMappings = _chunkPVLALJT5js.rowsToMappings; exports.ruleFill = _chunkPVLALJT5js.ruleFill; exports.ruleFiller = _chunkPVLALJT5js.ruleFiller; exports.sameSave = _chunkPVLALJT5js.sameSave; exports.sampleEntries = _chunkPVLALJT5js.sampleEntries; exports.screenDocuments = _chunkPVLALJT5js.screenDocuments; exports.screenOfType = _chunkPVLALJT5js.screenOfType; exports.selectValue = _chunkPVLALJT5js.selectValue; exports.seriesColor = _chunkPVLALJT5js.seriesColor; exports.setHiddenOnPhones = _chunkPVLALJT5js.setHiddenOnPhones; exports.setJsonValue = _chunkPVLALJT5js.setJsonValue; exports.setOption = _chunkPVLALJT5js.setOption; exports.setOptionValue = _chunkPVLALJT5js.setOptionValue; exports.setOverrides = _chunkPVLALJT5js.setOverrides; exports.settleLayout = _chunkPVLALJT5js.settleLayout; exports.snapToGrid = _chunkPVLALJT5js.snapToGrid; exports.splitPath = _chunkPVLALJT5js.splitPath; exports.spokenValue = _chunkPVLALJT5js.spokenValue; exports.startOf = _chunkPVLALJT5js.startOf; exports.stringifyCompact = _chunkPVLALJT5js.stringifyCompact; exports.tabIdFor = _chunkPVLALJT5js.tabIdFor; exports.takesDictation = _chunkPVLALJT5js.takesDictation; exports.templateNeeds = _chunkPVLALJT5js.templateNeeds; exports.templatePrompt = _chunkPVLALJT5js.templatePrompt; exports.textSuggestions = _chunkPVLALJT5js.textSuggestions; exports.thresholdStep = _chunkPVLALJT5js.thresholdStep; exports.timeExprError = _chunkPVLALJT5js.timeExprError; exports.timeField = _chunkPVLALJT5js.timeField; exports.toEntries = _chunkPVLALJT5js.toEntries; exports.toMillis = _chunkPVLALJT5js.toMillis; exports.toSeries = _chunkPVLALJT5js.toSeries; exports.toXYSeries = _chunkPVLALJT5js.toXYSeries; exports.uniqueNames = _chunkPVLALJT5js.uniqueNames; exports.validateBundle = _chunkPVLALJT5js.validateBundle; exports.validateDashboard = _chunkPVLALJT5js.validateDashboard; exports.validateManifest = _chunkPVLALJT5js.validateManifest; exports.valueColor = _chunkPVLALJT5js.valueColor; exports.valueText = _chunkPVLALJT5js.valueText; exports.variableDependents = _chunkPVLALJT5js.variableDependents; exports.variableInfo = _chunkPVLALJT5js.variableInfo; exports.variableNameError = _chunkPVLALJT5js.variableNameError; exports.variableOptions = _chunkPVLALJT5js.variableOptions; exports.variableOrder = _chunkPVLALJT5js.variableOrder; exports.variableReferences = _chunkPVLALJT5js.variableReferences; exports.variableUses = _chunkPVLALJT5js.variableUses; exports.variableWithCurrent = _chunkPVLALJT5js.variableWithCurrent; exports.variableWithFlags = _chunkPVLALJT5js.variableWithFlags; exports.variableWithQuery = _chunkPVLALJT5js.variableWithQuery; exports.variableWithType = _chunkPVLALJT5js.variableWithType; exports.visibleVariables = _chunkPVLALJT5js.visibleVariables; exports.zoomRange = _chunkPVLALJT5js.zoomRange;
|
|
510
|
+
exports.ALL = _chunkIHOP6IEAjs.ALL; exports.AUTHORING_GUIDE = _chunkIHOP6IEAjs.AUTHORING_GUIDE; exports.BUNDLE_ACCEPT = _chunkIHOP6IEAjs.BUNDLE_ACCEPT; exports.BUNDLE_TYPE = _chunkIHOP6IEAjs.BUNDLE_TYPE; exports.CANVAS_GAP = _chunkIHOP6IEAjs.CANVAS_GAP; exports.CANVAS_ROW_HEADER = _chunkIHOP6IEAjs.CANVAS_ROW_HEADER; exports.ConfigLoader = _chunkIHOP6IEAjs.ConfigLoader; exports.DASHBOARD_DS = _chunkIHOP6IEAjs.DASHBOARD_DS; exports.DEFAULT_GAZETTEER = _chunkIHOP6IEAjs.DEFAULT_GAZETTEER; exports.DICTATION_TYPES = _chunkIHOP6IEAjs.DICTATION_TYPES; exports.DOCUMENT_GUIDE = _chunkIHOP6IEAjs.DOCUMENT_GUIDE; exports.EDITABLE_VARIABLE_TYPES = _chunkIHOP6IEAjs.EDITABLE_VARIABLE_TYPES; exports.EXAMPLE_TEMPLATE = _chunkIHOP6IEAjs.EXAMPLE_TEMPLATE; exports.GRID_COLUMNS = _chunkIHOP6IEAjs.GRID_COLUMNS; exports.GROUP_FIELD_TYPES = _chunkIHOP6IEAjs.GROUP_FIELD_TYPES; exports.GrafanaClient = _chunkIHOP6IEAjs.GrafanaClient; exports.GrafanaDataSource = _chunkIHOP6IEAjs.GrafanaDataSource; exports.GrafanaError = _chunkIHOP6IEAjs.GrafanaError; exports.HttpConfigFiles = _chunkIHOP6IEAjs.HttpConfigFiles; exports.INPUT_GROUP = _chunkIHOP6IEAjs.INPUT_GROUP; exports.INPUT_OPTION_KEYS = _chunkIHOP6IEAjs.INPUT_OPTION_KEYS; exports.INPUT_TYPES = _chunkIHOP6IEAjs.INPUT_TYPES; exports.LOCAL_DATASOURCE_TYPE = _chunkIHOP6IEAjs.LOCAL_DATASOURCE_TYPE; exports.LocalDataSource = _chunkIHOP6IEAjs.LocalDataSource; exports.MANIFEST_VERSION = _chunkIHOP6IEAjs.MANIFEST_VERSION; exports.MAPPING_TYPES = _chunkIHOP6IEAjs.MAPPING_TYPES; exports.MemoryEntryStore = _chunkIHOP6IEAjs.MemoryEntryStore; exports.NAMED_COLORS = _chunkIHOP6IEAjs.NAMED_COLORS; exports.OPTION_CATEGORIES = _chunkIHOP6IEAjs.OPTION_CATEGORIES; exports.OVERRIDE_MATCHERS = _chunkIHOP6IEAjs.OVERRIDE_MATCHERS; exports.PANEL_TYPES = _chunkIHOP6IEAjs.PANEL_TYPES; exports.REDUCER_LABELS = _chunkIHOP6IEAjs.REDUCER_LABELS; exports.REFRESH_CHOICES = _chunkIHOP6IEAjs.REFRESH_CHOICES; exports.RELATIVE_RANGES = _chunkIHOP6IEAjs.RELATIVE_RANGES; exports.SERIES_PALETTE = _chunkIHOP6IEAjs.SERIES_PALETTE; exports.SNIPPET_VERSION = _chunkIHOP6IEAjs.SNIPPET_VERSION; exports.SPECIAL_MATCHES = _chunkIHOP6IEAjs.SPECIAL_MATCHES; exports.SaveConflictError = _chunkIHOP6IEAjs.SaveConflictError; exports.TEMPLATE_VERSION = _chunkIHOP6IEAjs.TEMPLATE_VERSION; exports.TIME_PRESETS = _chunkIHOP6IEAjs.TIME_PRESETS; exports.UNIT_CHOICES = _chunkIHOP6IEAjs.UNIT_CHOICES; exports.addTime = _chunkIHOP6IEAjs.addTime; exports.appSchema = _chunkIHOP6IEAjs.appSchema; exports.applyDashboardLink = _chunkIHOP6IEAjs.applyDashboardLink; exports.applyJsonEdits = _chunkIHOP6IEAjs.applyJsonEdits; exports.applyTemplate = _chunkIHOP6IEAjs.applyTemplate; exports.applyTransformations = _chunkIHOP6IEAjs.applyTransformations; exports.assembleBundle = _chunkIHOP6IEAjs.assembleBundle; exports.assembleFromResponse = _chunkIHOP6IEAjs.assembleFromResponse; exports.buildFrames = _chunkIHOP6IEAjs.buildFrames; exports.bundleFromFiles = _chunkIHOP6IEAjs.bundleFromFiles; exports.bundleRoot = _chunkIHOP6IEAjs.bundleRoot; exports.calculateInterval = _chunkIHOP6IEAjs.calculateInterval; exports.checkFiles = _chunkIHOP6IEAjs.checkFiles; exports.choicesOf = _chunkIHOP6IEAjs.choicesOf; exports.cleanDashboard = _chunkIHOP6IEAjs.cleanDashboard; exports.cleanPanelOptions = _chunkIHOP6IEAjs.cleanPanelOptions; exports.collapseRow = _chunkIHOP6IEAjs.collapseRow; exports.compactGrid = _chunkIHOP6IEAjs.compactGrid; exports.copyPanels = _chunkIHOP6IEAjs.copyPanels; exports.dashboardSchema = _chunkIHOP6IEAjs.dashboardSchema; exports.dashboardSchemaIssues = _chunkIHOP6IEAjs.dashboardSchemaIssues; exports.dashboardSourceIds = _chunkIHOP6IEAjs.dashboardSourceIds; exports.defaultFetchJson = _chunkIHOP6IEAjs.defaultFetchJson; exports.describeRange = _chunkIHOP6IEAjs.describeRange; exports.dictationHints = _chunkIHOP6IEAjs.dictationHints; exports.diffJson = _chunkIHOP6IEAjs.diffJson; exports.documentChanges = _chunkIHOP6IEAjs.documentChanges; exports.documentIdFor = _chunkIHOP6IEAjs.documentIdFor; exports.documentKind = _chunkIHOP6IEAjs.documentKind; exports.documentPrompt = _chunkIHOP6IEAjs.documentPrompt; exports.documentUses = _chunkIHOP6IEAjs.documentUses; exports.dropTarget = _chunkIHOP6IEAjs.dropTarget; exports.duplicatePanel = _chunkIHOP6IEAjs.duplicatePanel; exports.entriesSavedWith = _chunkIHOP6IEAjs.entriesSavedWith; exports.entriesToItems = _chunkIHOP6IEAjs.entriesToItems; exports.entryToInputValue = _chunkIHOP6IEAjs.entryToInputValue; exports.expandRow = _chunkIHOP6IEAjs.expandRow; exports.fetchBundle = _chunkIHOP6IEAjs.fetchBundle; exports.fetchJsonWithToken = _chunkIHOP6IEAjs.fetchJsonWithToken; exports.fieldDisplayName = _chunkIHOP6IEAjs.fieldDisplayName; exports.fieldMatches = _chunkIHOP6IEAjs.fieldMatches; exports.fillForm = _chunkIHOP6IEAjs.fillForm; exports.fillHints = _chunkIHOP6IEAjs.fillHints; exports.fillPrompt = _chunkIHOP6IEAjs.fillPrompt; exports.fillSchema = _chunkIHOP6IEAjs.fillSchema; exports.fixDocumentPrompt = _chunkIHOP6IEAjs.fixDocumentPrompt; exports.fixTemplatePrompt = _chunkIHOP6IEAjs.fixTemplatePrompt; exports.formatClock = _chunkIHOP6IEAjs.formatClock; exports.formatDisplay = _chunkIHOP6IEAjs.formatDisplay; exports.formatDuration = _chunkIHOP6IEAjs.formatDuration; exports.formatJsonText = _chunkIHOP6IEAjs.formatJsonText; exports.formatLocalDateTime = _chunkIHOP6IEAjs.formatLocalDateTime; exports.formatValue = _chunkIHOP6IEAjs.formatValue; exports.frameLength = _chunkIHOP6IEAjs.frameLength; exports.framesToOptions = _chunkIHOP6IEAjs.framesToOptions; exports.fromWire = _chunkIHOP6IEAjs.fromWire; exports.getPath = _chunkIHOP6IEAjs.getPath; exports.gridOffsetPx = _chunkIHOP6IEAjs.gridOffsetPx; exports.gridUnitsToPx = _chunkIHOP6IEAjs.gridUnitsToPx; exports.groupField = _chunkIHOP6IEAjs.groupField; exports.groupFields = _chunkIHOP6IEAjs.groupFields; exports.groupProblems = _chunkIHOP6IEAjs.groupProblems; exports.groupToEntries = _chunkIHOP6IEAjs.groupToEntries; exports.httpFetchJson = _chunkIHOP6IEAjs.httpFetchJson; exports.initialVariableValues = _chunkIHOP6IEAjs.initialVariableValues; exports.inputGroups = _chunkIHOP6IEAjs.inputGroups; exports.inputPanels = _chunkIHOP6IEAjs.inputPanels; exports.inputProblem = _chunkIHOP6IEAjs.inputProblem; exports.insertPanel = _chunkIHOP6IEAjs.insertPanel; exports.interpolate = _chunkIHOP6IEAjs.interpolate; exports.interpolateDeep = _chunkIHOP6IEAjs.interpolateDeep; exports.isBundleResponse = _chunkIHOP6IEAjs.isBundleResponse; exports.isEditableVariableType = _chunkIHOP6IEAjs.isEditableVariableType; exports.isEmptyItem = _chunkIHOP6IEAjs.isEmptyItem; exports.isFormPanelType = _chunkIHOP6IEAjs.isFormPanelType; exports.isInputGroup = _chunkIHOP6IEAjs.isInputGroup; exports.isInputPanel = _chunkIHOP6IEAjs.isInputPanel; exports.isInputType = _chunkIHOP6IEAjs.isInputType; exports.isLocalDatasource = _chunkIHOP6IEAjs.isLocalDatasource; exports.isReducer = _chunkIHOP6IEAjs.isReducer; exports.isRow = _chunkIHOP6IEAjs.isRow; exports.isSqlDatasource = _chunkIHOP6IEAjs.isSqlDatasource; exports.jsonFromAnswer = _chunkIHOP6IEAjs.jsonFromAnswer; exports.layoutCanvas = _chunkIHOP6IEAjs.layoutCanvas; exports.layoutDashboard = _chunkIHOP6IEAjs.layoutDashboard; exports.lineColumn = _chunkIHOP6IEAjs.lineColumn; exports.loadGazetteer = _chunkIHOP6IEAjs.loadGazetteer; exports.locate = _chunkIHOP6IEAjs.locate; exports.makeTemplate = _chunkIHOP6IEAjs.makeTemplate; exports.manifestSchemaIssues = _chunkIHOP6IEAjs.manifestSchemaIssues; exports.mappedResult = _chunkIHOP6IEAjs.mappedResult; exports.mappingProblem = _chunkIHOP6IEAjs.mappingProblem; exports.mappingRow = _chunkIHOP6IEAjs.mappingRow; exports.mappingRows = _chunkIHOP6IEAjs.mappingRows; exports.matchChoices = _chunkIHOP6IEAjs.matchChoices; exports.metricChanges = _chunkIHOP6IEAjs.metricChanges; exports.modelFiller = _chunkIHOP6IEAjs.modelFiller; exports.movePanel = _chunkIHOP6IEAjs.movePanel; exports.newDocument = _chunkIHOP6IEAjs.newDocument; exports.newPanel = _chunkIHOP6IEAjs.newPanel; exports.newSaveId = _chunkIHOP6IEAjs.newSaveId; exports.newVariable = _chunkIHOP6IEAjs.newVariable; exports.nextPanelId = _chunkIHOP6IEAjs.nextPanelId; exports.normalizeRef = _chunkIHOP6IEAjs.normalizeRef; exports.numberFields = _chunkIHOP6IEAjs.numberFields; exports.optionValue = _chunkIHOP6IEAjs.optionValue; exports.overrideProperties = _chunkIHOP6IEAjs.overrideProperties; exports.panelEdits = _chunkIHOP6IEAjs.panelEdits; exports.panelHasQueries = _chunkIHOP6IEAjs.panelHasQueries; exports.panelKey = _chunkIHOP6IEAjs.panelKey; exports.panelMetrics = _chunkIHOP6IEAjs.panelMetrics; exports.panelOptions = _chunkIHOP6IEAjs.panelOptions; exports.panelOverrides = _chunkIHOP6IEAjs.panelOverrides; exports.panelSize = _chunkIHOP6IEAjs.panelSize; exports.panelSpan = _chunkIHOP6IEAjs.panelSpan; exports.parseClockDigits = _chunkIHOP6IEAjs.parseClockDigits; exports.parseDashboardLink = _chunkIHOP6IEAjs.parseDashboardLink; exports.parseDuration = _chunkIHOP6IEAjs.parseDuration; exports.parseFillAnswer = _chunkIHOP6IEAjs.parseFillAnswer; exports.parseGazetteer = _chunkIHOP6IEAjs.parseGazetteer; exports.parseJsonText = _chunkIHOP6IEAjs.parseJsonText; exports.parseLocalDateTime = _chunkIHOP6IEAjs.parseLocalDateTime; exports.parseRange = _chunkIHOP6IEAjs.parseRange; exports.parseSnippet = _chunkIHOP6IEAjs.parseSnippet; exports.parseSpokenDuration = _chunkIHOP6IEAjs.parseSpokenDuration; exports.parseSpokenNumber = _chunkIHOP6IEAjs.parseSpokenNumber; exports.parseSpokenYesNo = _chunkIHOP6IEAjs.parseSpokenYesNo; exports.parseTemplate = _chunkIHOP6IEAjs.parseTemplate; exports.parseTime = _chunkIHOP6IEAjs.parseTime; exports.pasteSnippet = _chunkIHOP6IEAjs.pasteSnippet; exports.placePanel = _chunkIHOP6IEAjs.placePanel; exports.plainInputPanels = _chunkIHOP6IEAjs.plainInputPanels; exports.pointerToPath = _chunkIHOP6IEAjs.pointerToPath; exports.prepareDashboard = _chunkIHOP6IEAjs.prepareDashboard; exports.previewPaste = _chunkIHOP6IEAjs.previewPaste; exports.queryPanel = _chunkIHOP6IEAjs.queryPanel; exports.queryParam = _chunkIHOP6IEAjs.queryParam; exports.readConfigFiles = _chunkIHOP6IEAjs.readConfigFiles; exports.readDocumentAnswer = _chunkIHOP6IEAjs.readDocumentAnswer; exports.readFill = _chunkIHOP6IEAjs.readFill; exports.readTemplateAnswer = _chunkIHOP6IEAjs.readTemplateAnswer; exports.readingOrder = _chunkIHOP6IEAjs.readingOrder; exports.reduce = _chunkIHOP6IEAjs.reduce; exports.refineOptions = _chunkIHOP6IEAjs.refineOptions; exports.refreshedVariables = _chunkIHOP6IEAjs.refreshedVariables; exports.removeDocumentFromManifest = _chunkIHOP6IEAjs.removeDocumentFromManifest; exports.removePanel = _chunkIHOP6IEAjs.removePanel; exports.renameDocumentInManifest = _chunkIHOP6IEAjs.renameDocumentInManifest; exports.renameMetrics = _chunkIHOP6IEAjs.renameMetrics; exports.renameVariableInPanels = _chunkIHOP6IEAjs.renameVariableInPanels; exports.repack = _chunkIHOP6IEAjs.repack; exports.repeatOptions = _chunkIHOP6IEAjs.repeatOptions; exports.requiredManifestVersion = _chunkIHOP6IEAjs.requiredManifestVersion; exports.resizePanel = _chunkIHOP6IEAjs.resizePanel; exports.resolveColor = _chunkIHOP6IEAjs.resolveColor; exports.resolveFieldConfig = _chunkIHOP6IEAjs.resolveFieldConfig; exports.resolveLinks = _chunkIHOP6IEAjs.resolveLinks; exports.resolveTimezone = _chunkIHOP6IEAjs.resolveTimezone; exports.resolveUrl = _chunkIHOP6IEAjs.resolveUrl; exports.resolveVariables = _chunkIHOP6IEAjs.resolveVariables; exports.revalidateBundle = _chunkIHOP6IEAjs.revalidateBundle; exports.rowsToMappings = _chunkIHOP6IEAjs.rowsToMappings; exports.ruleFill = _chunkIHOP6IEAjs.ruleFill; exports.ruleFiller = _chunkIHOP6IEAjs.ruleFiller; exports.sameSave = _chunkIHOP6IEAjs.sameSave; exports.sampleEntries = _chunkIHOP6IEAjs.sampleEntries; exports.screenDocuments = _chunkIHOP6IEAjs.screenDocuments; exports.screenOfType = _chunkIHOP6IEAjs.screenOfType; exports.selectValue = _chunkIHOP6IEAjs.selectValue; exports.seriesColor = _chunkIHOP6IEAjs.seriesColor; exports.setHiddenOnPhones = _chunkIHOP6IEAjs.setHiddenOnPhones; exports.setJsonValue = _chunkIHOP6IEAjs.setJsonValue; exports.setOption = _chunkIHOP6IEAjs.setOption; exports.setOptionValue = _chunkIHOP6IEAjs.setOptionValue; exports.setOverrides = _chunkIHOP6IEAjs.setOverrides; exports.settleLayout = _chunkIHOP6IEAjs.settleLayout; exports.snapToGrid = _chunkIHOP6IEAjs.snapToGrid; exports.splitPath = _chunkIHOP6IEAjs.splitPath; exports.spokenValue = _chunkIHOP6IEAjs.spokenValue; exports.startOf = _chunkIHOP6IEAjs.startOf; exports.stringifyCompact = _chunkIHOP6IEAjs.stringifyCompact; exports.tabIdFor = _chunkIHOP6IEAjs.tabIdFor; exports.takesDictation = _chunkIHOP6IEAjs.takesDictation; exports.templateNeeds = _chunkIHOP6IEAjs.templateNeeds; exports.templatePrompt = _chunkIHOP6IEAjs.templatePrompt; exports.textSuggestions = _chunkIHOP6IEAjs.textSuggestions; exports.thresholdStep = _chunkIHOP6IEAjs.thresholdStep; exports.timeExprError = _chunkIHOP6IEAjs.timeExprError; exports.timeField = _chunkIHOP6IEAjs.timeField; exports.toEntries = _chunkIHOP6IEAjs.toEntries; exports.toMillis = _chunkIHOP6IEAjs.toMillis; exports.toSeries = _chunkIHOP6IEAjs.toSeries; exports.toXYSeries = _chunkIHOP6IEAjs.toXYSeries; exports.uniqueNames = _chunkIHOP6IEAjs.uniqueNames; exports.validateBundle = _chunkIHOP6IEAjs.validateBundle; exports.validateDashboard = _chunkIHOP6IEAjs.validateDashboard; exports.validateManifest = _chunkIHOP6IEAjs.validateManifest; exports.valueColor = _chunkIHOP6IEAjs.valueColor; exports.valueText = _chunkIHOP6IEAjs.valueText; exports.variableDependents = _chunkIHOP6IEAjs.variableDependents; exports.variableInfo = _chunkIHOP6IEAjs.variableInfo; exports.variableNameError = _chunkIHOP6IEAjs.variableNameError; exports.variableOptions = _chunkIHOP6IEAjs.variableOptions; exports.variableOrder = _chunkIHOP6IEAjs.variableOrder; exports.variableReferences = _chunkIHOP6IEAjs.variableReferences; exports.variableUses = _chunkIHOP6IEAjs.variableUses; exports.variableWithCurrent = _chunkIHOP6IEAjs.variableWithCurrent; exports.variableWithFlags = _chunkIHOP6IEAjs.variableWithFlags; exports.variableWithQuery = _chunkIHOP6IEAjs.variableWithQuery; exports.variableWithType = _chunkIHOP6IEAjs.variableWithType; exports.visibleVariables = _chunkIHOP6IEAjs.visibleVariables; exports.zoomRange = _chunkIHOP6IEAjs.zoomRange;
|
package/dist/core/index.mjs
CHANGED
package/dist/core/inputs.d.ts
CHANGED
|
@@ -18,6 +18,11 @@ export interface InputOptions {
|
|
|
18
18
|
unit?: string;
|
|
19
19
|
min?: number;
|
|
20
20
|
max?: number;
|
|
21
|
+
/**
|
|
22
|
+
* input-number and input-slider: what + and − (or a slider notch) move by, which also sets the
|
|
23
|
+
* precision. 1, the default, takes whole numbers only; a step with decimals takes decimals, e.g.
|
|
24
|
+
* 0.1 for a weight like 72.5.
|
|
25
|
+
*/
|
|
21
26
|
step?: number;
|
|
22
27
|
placeholder?: string;
|
|
23
28
|
/**
|