@modelform/react-native 0.17.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-24ABPZKO.js → chunk-IHOP6IEA.js} +223 -139
- package/dist/{chunk-IMXL2SZA.mjs → chunk-WABOXGET.mjs} +85 -1
- package/dist/core/authoring.d.ts +2 -2
- package/dist/core/index.js +2 -2
- package/dist/core/index.mjs +1 -1
- package/dist/index.js +162 -162
- package/dist/index.mjs +1 -1
- package/package.json +1 -1
package/dist/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
|
// src/ui/theme.tsx
|
|
258
258
|
var _react = require('react');
|
|
@@ -442,7 +442,7 @@ function DashboardProvider({ dashboard, resolve, refreshKey: externalKey = 0, on
|
|
|
442
442
|
if (!dashboard.refresh) return;
|
|
443
443
|
let ms;
|
|
444
444
|
try {
|
|
445
|
-
ms =
|
|
445
|
+
ms = _chunkIHOP6IEAjs.parseDuration.call(void 0, dashboard.refresh);
|
|
446
446
|
} catch (e2) {
|
|
447
447
|
return;
|
|
448
448
|
}
|
|
@@ -450,7 +450,7 @@ function DashboardProvider({ dashboard, resolve, refreshKey: externalKey = 0, on
|
|
|
450
450
|
return () => clearInterval(id);
|
|
451
451
|
}, [dashboard.refresh, refresh]);
|
|
452
452
|
const refreshKey = tick + externalKey;
|
|
453
|
-
const range3 = _react.useMemo.call(void 0, () =>
|
|
453
|
+
const range3 = _react.useMemo.call(void 0, () => _chunkIHOP6IEAjs.parseRange.call(void 0, rawRange), [rawRange, refreshKey]);
|
|
454
454
|
const shared = _react.useMemo.call(void 0, () => /* @__PURE__ */ new Map(), [range3, vars.variables, vars.variableInfo]);
|
|
455
455
|
const value = _react.useMemo.call(void 0,
|
|
456
456
|
() => ({
|
|
@@ -487,8 +487,8 @@ function DashboardProvider({ dashboard, resolve, refreshKey: externalKey = 0, on
|
|
|
487
487
|
] });
|
|
488
488
|
}
|
|
489
489
|
function useDashboardVariables(dashboard, resolve, rawRange) {
|
|
490
|
-
const [state, setState] = _react.useState.call(void 0, () => ({ values:
|
|
491
|
-
const [resolving, setResolving] = _react.useState.call(void 0, () => !!resolve &&
|
|
490
|
+
const [state, setState] = _react.useState.call(void 0, () => ({ values: _chunkIHOP6IEAjs.initialVariableValues.call(void 0, dashboard), options: {}, errors: {} }));
|
|
491
|
+
const [resolving, setResolving] = _react.useState.call(void 0, () => !!resolve && _chunkIHOP6IEAjs.refreshedVariables.call(void 0, dashboard, "load").length > 0);
|
|
492
492
|
const [runKey, setRunKey] = _react.useState.call(void 0, 0);
|
|
493
493
|
const pending = _react.useRef.call(void 0, /* @__PURE__ */ new Set());
|
|
494
494
|
const stateRef = _react.useRef.call(void 0, state);
|
|
@@ -521,7 +521,7 @@ function useDashboardVariables(dashboard, resolve, rawRange) {
|
|
|
521
521
|
setState(update);
|
|
522
522
|
setResolving(false);
|
|
523
523
|
};
|
|
524
|
-
|
|
524
|
+
_chunkIHOP6IEAjs.resolveVariables.call(void 0, dashboard, { values, options, names, resolve: resolve2, range: _chunkIHOP6IEAjs.parseRange.call(void 0, rawRange), signal: controller.signal }).then(
|
|
525
525
|
(res) => finish((s) => ({
|
|
526
526
|
// Only the re-run variables change, so a pick made while this ran isn't overwritten.
|
|
527
527
|
values: { ...s.values, ...Object.fromEntries([...names].filter((n) => n in res.values).map((n) => [n, res.values[n]])) },
|
|
@@ -535,11 +535,11 @@ function useDashboardVariables(dashboard, resolve, rawRange) {
|
|
|
535
535
|
const [loadedDashboard, setLoadedDashboard] = _react.useState.call(void 0, dashboard);
|
|
536
536
|
if (dashboard !== loadedDashboard) {
|
|
537
537
|
setLoadedDashboard(dashboard);
|
|
538
|
-
setState((s) => ({ ...s, values: { ...
|
|
538
|
+
setState((s) => ({ ...s, values: { ..._chunkIHOP6IEAjs.initialVariableValues.call(void 0, dashboard), ...s.values } }));
|
|
539
539
|
}
|
|
540
540
|
_react.useEffect.call(void 0, () => {
|
|
541
|
-
const roots =
|
|
542
|
-
schedule([...roots, ...
|
|
541
|
+
const roots = _chunkIHOP6IEAjs.refreshedVariables.call(void 0, dashboard, "load");
|
|
542
|
+
schedule([...roots, ..._chunkIHOP6IEAjs.variableDependents.call(void 0, dashboard, roots)]);
|
|
543
543
|
}, [dashboard, schedule]);
|
|
544
544
|
const mounted = _react.useRef.call(void 0, false);
|
|
545
545
|
_react.useEffect.call(void 0, () => {
|
|
@@ -547,17 +547,17 @@ function useDashboardVariables(dashboard, resolve, rawRange) {
|
|
|
547
547
|
mounted.current = true;
|
|
548
548
|
return;
|
|
549
549
|
}
|
|
550
|
-
const roots =
|
|
551
|
-
schedule([...roots, ...
|
|
550
|
+
const roots = _chunkIHOP6IEAjs.refreshedVariables.call(void 0, dashboard, "range");
|
|
551
|
+
schedule([...roots, ..._chunkIHOP6IEAjs.variableDependents.call(void 0, dashboard, roots)]);
|
|
552
552
|
}, [rawRange]);
|
|
553
553
|
const setVariable = _react.useCallback.call(void 0,
|
|
554
554
|
(name, value) => {
|
|
555
555
|
setState((s) => ({ ...s, values: { ...s.values, [name]: value } }));
|
|
556
|
-
schedule(
|
|
556
|
+
schedule(_chunkIHOP6IEAjs.variableDependents.call(void 0, dashboard, [name]));
|
|
557
557
|
},
|
|
558
558
|
[dashboard, schedule]
|
|
559
559
|
);
|
|
560
|
-
const info = _react.useMemo.call(void 0, () =>
|
|
560
|
+
const info = _react.useMemo.call(void 0, () => _chunkIHOP6IEAjs.variableInfo.call(void 0, dashboard, state.options), [dashboard, state.options]);
|
|
561
561
|
return _react.useMemo.call(void 0,
|
|
562
562
|
() => ({
|
|
563
563
|
variables: state.values,
|
|
@@ -587,7 +587,7 @@ function usePanelData(panel, widthPx, enabled = true) {
|
|
|
587
587
|
_react.useEffect.call(void 0, () => {
|
|
588
588
|
if (!enabled || !request || !variablesReady) return;
|
|
589
589
|
const controller = new AbortController();
|
|
590
|
-
|
|
590
|
+
_chunkIHOP6IEAjs.queryPanel.call(void 0, request.panel, request.options, controller.signal).then((frames) => !controller.signal.aborted && setResult({ request, frames })).catch((e) => !controller.signal.aborted && setResult({ request, frames: [], error: String(_nullishCoalesce(_optionalChain([e, 'optionalAccess', _5 => _5.message]), () => ( e))) }));
|
|
591
591
|
return () => controller.abort();
|
|
592
592
|
}, [enabled, request, variablesReady]);
|
|
593
593
|
if (!enabled) return IDLE;
|
|
@@ -597,7 +597,7 @@ function usePanelData(panel, widthPx, enabled = true) {
|
|
|
597
597
|
function usePanelLinks(panel) {
|
|
598
598
|
const { dashboard, variables, variableInfo: variableInfo2, range: range3, openLinks } = useDashboard();
|
|
599
599
|
const resolve = _react.useCallback.call(void 0,
|
|
600
|
-
(links, data) =>
|
|
600
|
+
(links, data) => _chunkIHOP6IEAjs.resolveLinks.call(void 0, links, { dashboard, values: variables, info: variableInfo2, scoped: panel.scopedVars, range: range3, timezone: dashboard.timezone, data }),
|
|
601
601
|
[dashboard, variables, variableInfo2, panel.scopedVars, range3]
|
|
602
602
|
);
|
|
603
603
|
return { resolve, openLinks };
|
|
@@ -638,7 +638,7 @@ var RenderBoundary = (_class = class extends _react.Component {constructor(...ar
|
|
|
638
638
|
|
|
639
639
|
// src/ui/inputs/formContext.ts
|
|
640
640
|
|
|
641
|
-
var groupKey = (g) => g.id != null ? `#${g.id}` :
|
|
641
|
+
var groupKey = (g) => g.id != null ? `#${g.id}` : _chunkIHOP6IEAjs.groupFields.call(void 0, g).map((f) => f.options.metric).join("|");
|
|
642
642
|
var InputFormContext = _react.createContext.call(void 0, null);
|
|
643
643
|
function useInputForm() {
|
|
644
644
|
const v = _react.useContext.call(void 0, InputFormContext);
|
|
@@ -699,14 +699,14 @@ var ArrowIcon = ({ color, dir }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
|
699
699
|
function displayExpr(expr) {
|
|
700
700
|
if (expr.trim().startsWith("now")) return expr;
|
|
701
701
|
try {
|
|
702
|
-
return
|
|
702
|
+
return _chunkIHOP6IEAjs.formatLocalDateTime.call(void 0, _chunkIHOP6IEAjs.parseTime.call(void 0, expr));
|
|
703
703
|
} catch (e3) {
|
|
704
704
|
return expr;
|
|
705
705
|
}
|
|
706
706
|
}
|
|
707
707
|
function tryParse(expr, roundUp, now = Date.now()) {
|
|
708
708
|
try {
|
|
709
|
-
return
|
|
709
|
+
return _chunkIHOP6IEAjs.parseTime.call(void 0, expr, now, roundUp);
|
|
710
710
|
} catch (e4) {
|
|
711
711
|
return null;
|
|
712
712
|
}
|
|
@@ -720,7 +720,7 @@ function endOfDay(ms) {
|
|
|
720
720
|
return new Date(d.getFullYear(), d.getMonth(), d.getDate() + 1).getTime() - 1e3;
|
|
721
721
|
}
|
|
722
722
|
function resolveTo(expr) {
|
|
723
|
-
return /^\s*\d{4}-\d{1,2}-\d{1,2}\s*$/.test(expr) ?
|
|
723
|
+
return /^\s*\d{4}-\d{1,2}-\d{1,2}\s*$/.test(expr) ? _chunkIHOP6IEAjs.formatLocalDateTime.call(void 0, endOfDay(_chunkIHOP6IEAjs.parseTime.call(void 0, expr))) : expr;
|
|
724
724
|
}
|
|
725
725
|
function TimeRangeSheet({ visible, value, onApply, onClose }) {
|
|
726
726
|
const theme = useDashTheme();
|
|
@@ -731,12 +731,12 @@ function TimeRangeSheet({ visible, value, onApply, onClose }) {
|
|
|
731
731
|
const [now] = _react.useState.call(void 0, () => Date.now());
|
|
732
732
|
const [month, setMonth] = _react.useState.call(void 0, () => new Date(_nullishCoalesce(tryParse(value.from, false), () => ( now))));
|
|
733
733
|
const fromMs = tryParse(from, false, now);
|
|
734
|
-
const toMs = tryParse(
|
|
735
|
-
const fromError =
|
|
736
|
-
const toError =
|
|
734
|
+
const toMs = tryParse(_chunkIHOP6IEAjs.timeExprError.call(void 0, to) ? to : resolveTo(to), true, now);
|
|
735
|
+
const fromError = _chunkIHOP6IEAjs.timeExprError.call(void 0, from);
|
|
736
|
+
const toError = _chunkIHOP6IEAjs.timeExprError.call(void 0, to);
|
|
737
737
|
const orderError = fromMs != null && toMs != null && fromMs >= toMs ? "\u201CTo\u201D must be after \u201CFrom\u201D" : null;
|
|
738
738
|
const valid = !fromError && !toError && !orderError;
|
|
739
|
-
const normalize = (expr) => expr.trim().startsWith("now") ? expr.trim() :
|
|
739
|
+
const normalize = (expr) => expr.trim().startsWith("now") ? expr.trim() : _chunkIHOP6IEAjs.formatLocalDateTime.call(void 0, _chunkIHOP6IEAjs.parseTime.call(void 0, expr));
|
|
740
740
|
const apply = () => {
|
|
741
741
|
if (!valid) return;
|
|
742
742
|
onApply({ from: normalize(from), to: normalize(resolveTo(to)) });
|
|
@@ -745,14 +745,14 @@ function TimeRangeSheet({ visible, value, onApply, onClose }) {
|
|
|
745
745
|
const pickDay = (day) => {
|
|
746
746
|
const end = endOfDay(day);
|
|
747
747
|
if (active === "from") {
|
|
748
|
-
setFrom(
|
|
749
|
-
if (toMs == null || toMs <= day) setTo(
|
|
748
|
+
setFrom(_chunkIHOP6IEAjs.formatLocalDateTime.call(void 0, day));
|
|
749
|
+
if (toMs == null || toMs <= day) setTo(_chunkIHOP6IEAjs.formatLocalDateTime.call(void 0, end));
|
|
750
750
|
setActive("to");
|
|
751
751
|
} else if (fromMs != null && day < startOfDay(fromMs)) {
|
|
752
|
-
setFrom(
|
|
753
|
-
setTo(
|
|
752
|
+
setFrom(_chunkIHOP6IEAjs.formatLocalDateTime.call(void 0, day));
|
|
753
|
+
setTo(_chunkIHOP6IEAjs.formatLocalDateTime.call(void 0, end));
|
|
754
754
|
} else {
|
|
755
|
-
setTo(
|
|
755
|
+
setTo(_chunkIHOP6IEAjs.formatLocalDateTime.call(void 0, end));
|
|
756
756
|
}
|
|
757
757
|
};
|
|
758
758
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
@@ -788,7 +788,7 @@ function TimeRangeSheet({ visible, value, onApply, onClose }) {
|
|
|
788
788
|
}
|
|
789
789
|
),
|
|
790
790
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles3.sectionTitle, { color: theme.textSecondary }], children: "Relative ranges" }),
|
|
791
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: styles3.chips, children:
|
|
791
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: styles3.chips, children: _chunkIHOP6IEAjs.RELATIVE_RANGES.map((r) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
792
792
|
Chip,
|
|
793
793
|
{
|
|
794
794
|
label: r.label,
|
|
@@ -932,17 +932,17 @@ var FilterIcon = ({ color }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _re
|
|
|
932
932
|
var CalendarIcon = ({ color }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg2.default, { width: 18, height: 18, viewBox: "0 0 24 24", fill: "none", stroke: color, strokeWidth: 2, strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg.Path, { d: "M5 5h14a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1zM4 10h16M8 3v4M16 3v4" }) });
|
|
933
933
|
var ChevronIcon = ({ color, open }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg2.default, { width: 16, height: 16, viewBox: "0 0 24 24", fill: "none", stroke: color, strokeWidth: 2.2, strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg.Path, { d: open ? "M6 15l6-6 6 6" : "M6 9l6 6 6-6" }) });
|
|
934
934
|
var CheckIcon = ({ color }) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg2.default, { width: 18, height: 18, viewBox: "0 0 24 24", fill: "none", stroke: color, strokeWidth: 2.4, strokeLinecap: "round", strokeLinejoin: "round", children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg.Path, { d: "M5 12.5l4.5 4.5L19 7" }) });
|
|
935
|
-
function DashboardToolbar({ presets =
|
|
935
|
+
function DashboardToolbar({ presets = _chunkIHOP6IEAjs.TIME_PRESETS }) {
|
|
936
936
|
const theme = useDashTheme();
|
|
937
937
|
const { dashboard, rawRange, setRawRange, variables, variableErrors } = useDashboard();
|
|
938
938
|
const [filtersOpen, setFiltersOpen] = _react.useState.call(void 0, false);
|
|
939
939
|
const [rangeOpen, setRangeOpen] = _react.useState.call(void 0, false);
|
|
940
940
|
const [rangeKey, setRangeKey] = _react.useState.call(void 0, 0);
|
|
941
941
|
const custom = !presets.some((p) => rawRange.from === p.from && rawRange.to === p.to);
|
|
942
|
-
const vars =
|
|
942
|
+
const vars = _chunkIHOP6IEAjs.visibleVariables.call(void 0, dashboard);
|
|
943
943
|
const active = vars.filter((v) => {
|
|
944
944
|
const cur = variables[v.name];
|
|
945
|
-
return v.includeAll && cur != null && !(Array.isArray(cur) ? cur.includes(
|
|
945
|
+
return v.includeAll && cur != null && !(Array.isArray(cur) ? cur.includes(_chunkIHOP6IEAjs.ALL) : cur === _chunkIHOP6IEAjs.ALL);
|
|
946
946
|
}).length;
|
|
947
947
|
const hasError = vars.some((v) => variableErrors[v.name]);
|
|
948
948
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnative.View, { style: styles4.toolbar, children: [
|
|
@@ -968,7 +968,7 @@ function DashboardToolbar({ presets = _chunk24ABPZKOjs.TIME_PRESETS }) {
|
|
|
968
968
|
setRangeOpen(true);
|
|
969
969
|
},
|
|
970
970
|
accessibilityRole: "button",
|
|
971
|
-
accessibilityLabel: custom ? `Time range, ${
|
|
971
|
+
accessibilityLabel: custom ? `Time range, ${_chunkIHOP6IEAjs.describeRange.call(void 0, rawRange)}` : "Custom time range",
|
|
972
972
|
style: ({ pressed }) => [
|
|
973
973
|
custom ? styles4.rangeButton : styles4.iconButton,
|
|
974
974
|
{ borderColor: custom ? theme.accent : theme.border, backgroundColor: theme.surface },
|
|
@@ -976,7 +976,7 @@ function DashboardToolbar({ presets = _chunk24ABPZKOjs.TIME_PRESETS }) {
|
|
|
976
976
|
],
|
|
977
977
|
children: [
|
|
978
978
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, CalendarIcon, { color: custom ? theme.accent : theme.textSecondary }),
|
|
979
|
-
custom && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles4.rangeLabel, { color: theme.accent }], numberOfLines: 1, children:
|
|
979
|
+
custom && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles4.rangeLabel, { color: theme.accent }], numberOfLines: 1, children: _chunkIHOP6IEAjs.describeRange.call(void 0, rawRange) })
|
|
980
980
|
]
|
|
981
981
|
}
|
|
982
982
|
),
|
|
@@ -1032,14 +1032,14 @@ function FilterSection({ variable: v, open, onToggle }) {
|
|
|
1032
1032
|
const theme = useDashTheme();
|
|
1033
1033
|
const { variables, variableInfo: variableInfo2, variableErrors, variablesReady, setVariable } = useDashboard();
|
|
1034
1034
|
const current = variables[v.name];
|
|
1035
|
-
const summary =
|
|
1036
|
-
const options = [...v.includeAll ? [{ text: "All", value:
|
|
1035
|
+
const summary = _chunkIHOP6IEAjs.valueText.call(void 0, current, variableInfo2[v.name]) || (variablesReady ? "None" : "\u2026");
|
|
1036
|
+
const options = [...v.includeAll ? [{ text: "All", value: _chunkIHOP6IEAjs.ALL }] : [], ..._nullishCoalesce(_optionalChain([variableInfo2, 'access', _9 => _9[v.name], 'optionalAccess', _10 => _10.options]), () => ( []))];
|
|
1037
1037
|
const error = variableErrors[v.name];
|
|
1038
1038
|
const choose = (value, selected) => {
|
|
1039
|
-
if (v.multi && value !==
|
|
1040
|
-
const cur = (Array.isArray(current) ? current : [current]).filter((c) => c && c !==
|
|
1039
|
+
if (v.multi && value !== _chunkIHOP6IEAjs.ALL) {
|
|
1040
|
+
const cur = (Array.isArray(current) ? current : [current]).filter((c) => c && c !== _chunkIHOP6IEAjs.ALL);
|
|
1041
1041
|
const next = selected ? cur.filter((c) => c !== value) : [...cur, value];
|
|
1042
|
-
setVariable(v.name, next.length ? next : [
|
|
1042
|
+
setVariable(v.name, next.length ? next : [_chunkIHOP6IEAjs.ALL]);
|
|
1043
1043
|
} else {
|
|
1044
1044
|
setVariable(v.name, v.multi ? [value] : value);
|
|
1045
1045
|
if (!v.multi) onToggle();
|
|
@@ -1179,7 +1179,7 @@ function barCategory(panel, frame) {
|
|
|
1179
1179
|
}
|
|
1180
1180
|
function categoryLabels(field) {
|
|
1181
1181
|
if (field.type !== "time") return field.values.map((v) => v == null ? "" : String(v));
|
|
1182
|
-
const times = field.values.map((v) => v == null ? null :
|
|
1182
|
+
const times = field.values.map((v) => v == null ? null : _chunkIHOP6IEAjs.toMillis.call(void 0, v));
|
|
1183
1183
|
let step = Infinity;
|
|
1184
1184
|
times.forEach((t, i) => {
|
|
1185
1185
|
const prev = times[i - 1];
|
|
@@ -1225,19 +1225,19 @@ function formatTooltipTime(t) {
|
|
|
1225
1225
|
return new Date(t).toLocaleString(void 0, { month: "short", day: "numeric", hour: "2-digit", minute: "2-digit" });
|
|
1226
1226
|
}
|
|
1227
1227
|
function styledSeries(panel, frames, scheme) {
|
|
1228
|
-
return styleSeries(panel,
|
|
1228
|
+
return styleSeries(panel, _chunkIHOP6IEAjs.toSeries.call(void 0, frames), frames, scheme);
|
|
1229
1229
|
}
|
|
1230
1230
|
function styledXYSeries(panel, frames, scheme) {
|
|
1231
|
-
const { series, x } =
|
|
1232
|
-
const xConfig = x ?
|
|
1231
|
+
const { series, x } = _chunkIHOP6IEAjs.toXYSeries.call(void 0, frames, _optionalChain([panel, 'access', _18 => _18.options, 'optionalAccess', _19 => _19.xField]) || void 0);
|
|
1232
|
+
const xConfig = x ? _chunkIHOP6IEAjs.resolveFieldConfig.call(void 0, panel, x.field, x.frame, x.field.name) : {};
|
|
1233
1233
|
return { series: styleSeries(panel, series, frames, scheme), xConfig };
|
|
1234
1234
|
}
|
|
1235
1235
|
function styleSeries(panel, series, frames, scheme) {
|
|
1236
1236
|
const frameOf = /* @__PURE__ */ new Map();
|
|
1237
1237
|
frames.forEach((f) => f.fields.forEach((field) => frameOf.set(field, f)));
|
|
1238
1238
|
return series.map((s, i) => {
|
|
1239
|
-
const config =
|
|
1240
|
-
return { ...s, name: _nullishCoalesce(config.displayName, () => ( s.name)), config, color:
|
|
1239
|
+
const config = _chunkIHOP6IEAjs.resolveFieldConfig.call(void 0, panel, s.field, frameOf.get(s.field), s.name);
|
|
1240
|
+
return { ...s, name: _nullishCoalesce(config.displayName, () => ( s.name)), config, color: _chunkIHOP6IEAjs.seriesColor.call(void 0, i, scheme, config) };
|
|
1241
1241
|
});
|
|
1242
1242
|
}
|
|
1243
1243
|
function reducedValues(panel, frames, scheme) {
|
|
@@ -1245,30 +1245,30 @@ function reducedValues(panel, frames, scheme) {
|
|
|
1245
1245
|
const out = [];
|
|
1246
1246
|
const multiple = frames.length > 1;
|
|
1247
1247
|
frames.forEach(
|
|
1248
|
-
(frame, fi) =>
|
|
1249
|
-
const raw =
|
|
1250
|
-
const config =
|
|
1248
|
+
(frame, fi) => _chunkIHOP6IEAjs.numberFields.call(void 0, frame).forEach((field) => {
|
|
1249
|
+
const raw = _chunkIHOP6IEAjs.fieldDisplayName.call(void 0, field, frame, multiple);
|
|
1250
|
+
const config = _chunkIHOP6IEAjs.resolveFieldConfig.call(void 0, panel, field, frame, raw);
|
|
1251
1251
|
const values = field.values.map((v) => v == null ? null : Number(v));
|
|
1252
|
-
const value =
|
|
1253
|
-
const color =
|
|
1254
|
-
const step =
|
|
1255
|
-
const mapped =
|
|
1252
|
+
const value = _chunkIHOP6IEAjs.reduce.call(void 0, values, calc);
|
|
1253
|
+
const color = _chunkIHOP6IEAjs.seriesColor.call(void 0, out.length, scheme, config);
|
|
1254
|
+
const step = _chunkIHOP6IEAjs.thresholdStep.call(void 0, value, config);
|
|
1255
|
+
const mapped = _chunkIHOP6IEAjs.mappedResult.call(void 0, value, config);
|
|
1256
1256
|
out.push({
|
|
1257
1257
|
key: `${fi}/${field.name}/${JSON.stringify(_nullishCoalesce(field.labels, () => ( {})))}`,
|
|
1258
1258
|
name: _nullishCoalesce(config.displayName, () => ( raw)),
|
|
1259
1259
|
value,
|
|
1260
|
-
text: _optionalChain([mapped, 'optionalAccess', _24 => _24.text]) ||
|
|
1260
|
+
text: _optionalChain([mapped, 'optionalAccess', _24 => _24.text]) || _chunkIHOP6IEAjs.formatValue.call(void 0, value, config),
|
|
1261
1261
|
mapped,
|
|
1262
1262
|
config,
|
|
1263
1263
|
color,
|
|
1264
|
-
stateColor: _optionalChain([mapped, 'optionalAccess', _25 => _25.color]) ?
|
|
1264
|
+
stateColor: _optionalChain([mapped, 'optionalAccess', _25 => _25.color]) ? _chunkIHOP6IEAjs.resolveColor.call(void 0, mapped.color, color) : step ? _chunkIHOP6IEAjs.resolveColor.call(void 0, step.color, color) : color,
|
|
1265
1265
|
sparkline: values,
|
|
1266
1266
|
field,
|
|
1267
1267
|
frame
|
|
1268
1268
|
});
|
|
1269
1269
|
})
|
|
1270
1270
|
);
|
|
1271
|
-
return
|
|
1271
|
+
return _chunkIHOP6IEAjs.uniqueNames.call(void 0, out, (v) => v.field, frames);
|
|
1272
1272
|
}
|
|
1273
1273
|
function yDomain(series, includeZero) {
|
|
1274
1274
|
let min = Infinity;
|
|
@@ -1329,22 +1329,22 @@ function NoData({ message = "No data" }) {
|
|
|
1329
1329
|
}
|
|
1330
1330
|
function rowTooltipItems(panel, frame, row, multiple) {
|
|
1331
1331
|
return frame.fields.flatMap((f) => {
|
|
1332
|
-
const name =
|
|
1333
|
-
const config =
|
|
1332
|
+
const name = _chunkIHOP6IEAjs.fieldDisplayName.call(void 0, f, frame, multiple);
|
|
1333
|
+
const config = _chunkIHOP6IEAjs.resolveFieldConfig.call(void 0, panel, f, frame, name);
|
|
1334
1334
|
if (_optionalChain([config, 'access', _36 => _36.custom, 'optionalAccess', _37 => _37.hideFrom, 'optionalAccess', _38 => _38.tooltip])) return [];
|
|
1335
1335
|
const v = f.values[row];
|
|
1336
|
-
const value = v == null ? "\u2014" : f.type === "number" ?
|
|
1336
|
+
const value = v == null ? "\u2014" : f.type === "number" ? _chunkIHOP6IEAjs.formatDisplay.call(void 0, Number(v), config) : f.type === "time" ? formatTooltipTime(_chunkIHOP6IEAjs.toMillis.call(void 0, v)) : String(v);
|
|
1337
1337
|
return [{ name: _nullishCoalesce(config.displayName, () => ( name)), value }];
|
|
1338
1338
|
});
|
|
1339
1339
|
}
|
|
1340
1340
|
function rowLinks(panel, frame, row, multiple, resolve) {
|
|
1341
1341
|
return mergeLinks(
|
|
1342
1342
|
frame.fields.flatMap((f) => {
|
|
1343
|
-
const name =
|
|
1344
|
-
const config =
|
|
1343
|
+
const name = _chunkIHOP6IEAjs.fieldDisplayName.call(void 0, f, frame, multiple);
|
|
1344
|
+
const config = _chunkIHOP6IEAjs.resolveFieldConfig.call(void 0, panel, f, frame, name);
|
|
1345
1345
|
if (!_optionalChain([config, 'access', _39 => _39.links, 'optionalAccess', _40 => _40.length])) return [];
|
|
1346
1346
|
const v = f.values[row];
|
|
1347
|
-
const text = v == null ? void 0 : f.type === "number" ?
|
|
1347
|
+
const text = v == null ? void 0 : f.type === "number" ? _chunkIHOP6IEAjs.formatDisplay.call(void 0, Number(v), config) : String(v);
|
|
1348
1348
|
return [{ name: _nullishCoalesce(config.displayName, () => ( name)), links: resolve(config.links, { frame, row, field: f, fieldName: _nullishCoalesce(config.displayName, () => ( name)), value: v, text }) }];
|
|
1349
1349
|
})
|
|
1350
1350
|
);
|
|
@@ -1357,7 +1357,7 @@ function valueLinks(panel, v, resolve) {
|
|
|
1357
1357
|
fieldName: v.name,
|
|
1358
1358
|
seriesName: v.name,
|
|
1359
1359
|
value: v.value,
|
|
1360
|
-
text:
|
|
1360
|
+
text: _chunkIHOP6IEAjs.formatValue.call(void 0, v.value, v.config),
|
|
1361
1361
|
calc: _nullishCoalesce(_optionalChain([panel, 'access', _44 => _44.options, 'optionalAccess', _45 => _45.reduceOptions, 'optionalAccess', _46 => _46.calcs, 'optionalAccess', _47 => _47[0]]), () => ( "lastNotNull"))
|
|
1362
1362
|
});
|
|
1363
1363
|
}
|
|
@@ -1482,10 +1482,10 @@ function useDictation(panel, value, onChange, choices) {
|
|
|
1482
1482
|
try {
|
|
1483
1483
|
mine = speech.start({
|
|
1484
1484
|
lang: form.speechLang,
|
|
1485
|
-
hints:
|
|
1485
|
+
hints: _chunkIHOP6IEAjs.dictationHints.call(void 0, panel, choices),
|
|
1486
1486
|
onText(text, final) {
|
|
1487
1487
|
if (!final) return setHint(text ? `\u201C${text}\u201D` : null);
|
|
1488
|
-
const result =
|
|
1488
|
+
const result = _chunkIHOP6IEAjs.spokenValue.call(void 0, panel, text, latest.current.value, latest.current.choices);
|
|
1489
1489
|
if ("value" in result) {
|
|
1490
1490
|
latest.current.onChange(result.value);
|
|
1491
1491
|
setHint(null);
|
|
@@ -1504,7 +1504,7 @@ function useDictation(panel, value, onChange, choices) {
|
|
|
1504
1504
|
setOn(true);
|
|
1505
1505
|
}
|
|
1506
1506
|
};
|
|
1507
|
-
return { available: !!speech &&
|
|
1507
|
+
return { available: !!speech && _chunkIHOP6IEAjs.takesDictation.call(void 0, panel), listening: on, hint, toggle };
|
|
1508
1508
|
}
|
|
1509
1509
|
function MicButton({ dictation, title, label, size = 32 }) {
|
|
1510
1510
|
const theme = useDashTheme();
|
|
@@ -1621,15 +1621,15 @@ function NumberInput({ panel, value, onChange }) {
|
|
|
1621
1621
|
}
|
|
1622
1622
|
function DurationInput({ panel, value, onChange }) {
|
|
1623
1623
|
const theme = useDashTheme();
|
|
1624
|
-
const toDigits = (v) => typeof v === "number" ?
|
|
1624
|
+
const toDigits = (v) => typeof v === "number" ? _chunkIHOP6IEAjs.formatClock.call(void 0, v).replace(/\D/g, "").replace(/^0+/, "") : "";
|
|
1625
1625
|
const [digits, setDigits] = _react.useState.call(void 0, toDigits(value));
|
|
1626
1626
|
const [syncedValue, setSyncedValue] = _react.useState.call(void 0, value);
|
|
1627
1627
|
if (value !== syncedValue) {
|
|
1628
1628
|
setSyncedValue(value);
|
|
1629
|
-
setDigits((d) => value == null ?
|
|
1629
|
+
setDigits((d) => value == null ? _chunkIHOP6IEAjs.parseClockDigits.call(void 0, d) == null ? d : "" : _chunkIHOP6IEAjs.parseClockDigits.call(void 0, d) === value ? d : toDigits(value));
|
|
1630
1630
|
}
|
|
1631
1631
|
const masked = digits ? maskClock(digits) : "";
|
|
1632
|
-
const invalid = !!digits &&
|
|
1632
|
+
const invalid = !!digits && _chunkIHOP6IEAjs.parseClockDigits.call(void 0, digits) == null;
|
|
1633
1633
|
const dictation = useDictation(panel, value, onChange);
|
|
1634
1634
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnative.View, { style: styles7.dictated, children: [
|
|
1635
1635
|
/* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnative.View, { style: [styles7.numberField, { borderColor: invalid ? theme.danger : theme.border }], children: [
|
|
@@ -1640,7 +1640,7 @@ function DurationInput({ panel, value, onChange }) {
|
|
|
1640
1640
|
onChangeText: (t) => {
|
|
1641
1641
|
const d = t.replace(/\D/g, "").replace(/^0+/, "").slice(0, 6);
|
|
1642
1642
|
setDigits(d);
|
|
1643
|
-
onChange(
|
|
1643
|
+
onChange(_chunkIHOP6IEAjs.parseClockDigits.call(void 0, d));
|
|
1644
1644
|
},
|
|
1645
1645
|
keyboardType: "number-pad",
|
|
1646
1646
|
placeholder: _nullishCoalesce(panel.options.placeholder, () => ( "00:00.00")),
|
|
@@ -1845,10 +1845,10 @@ function SuggestTextInput({ panel, value, onChange }) {
|
|
|
1845
1845
|
}, [store, metric, suggestWith]);
|
|
1846
1846
|
const withText = suggestWith ? form.value(suggestWith) : null;
|
|
1847
1847
|
const own = entries.filter((e) => e.metric === metric);
|
|
1848
|
-
const scoped = suggestWith && typeof withText === "string" && withText.trim() ?
|
|
1848
|
+
const scoped = suggestWith && typeof withText === "string" && withText.trim() ? _chunkIHOP6IEAjs.entriesSavedWith.call(void 0, entries, metric, suggestWith, withText) : [];
|
|
1849
1849
|
const query = typed ? text : "";
|
|
1850
|
-
const fromScoped =
|
|
1851
|
-
const suggestions = (fromScoped.length ? fromScoped :
|
|
1850
|
+
const fromScoped = _chunkIHOP6IEAjs.textSuggestions.call(void 0, scoped, query);
|
|
1851
|
+
const suggestions = (fromScoped.length ? fromScoped : _chunkIHOP6IEAjs.textSuggestions.call(void 0, own, query)).filter((s) => s.toLowerCase() !== text.trim().toLowerCase());
|
|
1852
1852
|
const dictation = useDictation(panel, value, (v) => {
|
|
1853
1853
|
setTyped(false);
|
|
1854
1854
|
onChange(v);
|
|
@@ -1895,7 +1895,7 @@ function CounterInput({ panel }) {
|
|
|
1895
1895
|
const { metric, increment = 1, unit } = panel.options;
|
|
1896
1896
|
const [today, setToday] = _react.useState.call(void 0, 0);
|
|
1897
1897
|
_react.useEffect.call(void 0, () => {
|
|
1898
|
-
const load = () => store.list({ metrics: [metric], from:
|
|
1898
|
+
const load = () => store.list({ metrics: [metric], from: _chunkIHOP6IEAjs.startOf.call(void 0, /* @__PURE__ */ new Date(), "d").getTime() }).then((rows) => setToday(rows.reduce((a, e) => a + (_nullishCoalesce(e.value, () => ( 0))), 0)));
|
|
1899
1899
|
load();
|
|
1900
1900
|
return store.subscribe(load);
|
|
1901
1901
|
}, [store, metric]);
|
|
@@ -1977,7 +1977,7 @@ function titleText(v) {
|
|
|
1977
1977
|
function summaryText(f, v) {
|
|
1978
1978
|
if (v == null || v === "" || Array.isArray(v) && !v.length) return void 0;
|
|
1979
1979
|
if (f.type === "input-toggle") return v ? f.title || "Yes" : void 0;
|
|
1980
|
-
if (f.type === "input-duration" && typeof v === "number") return
|
|
1980
|
+
if (f.type === "input-duration" && typeof v === "number") return _chunkIHOP6IEAjs.formatClock.call(void 0, v);
|
|
1981
1981
|
if (f.type === "input-select" && f.options.choices) {
|
|
1982
1982
|
const label = (x) => _nullishCoalesce(_optionalChain([f, 'access', _65 => _65.options, 'access', _66 => _66.choices, 'access', _67 => _67.find, 'call', _68 => _68((c) => c.value === x), 'optionalAccess', _69 => _69.label]), () => ( String(x)));
|
|
1983
1983
|
return Array.isArray(v) ? v.map(label).join(", ") : label(v);
|
|
@@ -2008,7 +2008,7 @@ function InputGroupBody({ panel }) {
|
|
|
2008
2008
|
}
|
|
2009
2009
|
if (!group) return null;
|
|
2010
2010
|
const label = panel.options.itemTitle || "Item";
|
|
2011
|
-
const collapseFilled = (except) => setCollapsed(new Set(group.items.filter((i) => i.key !== except && !
|
|
2011
|
+
const collapseFilled = (except) => setCollapsed(new Set(group.items.filter((i) => i.key !== except && !_chunkIHOP6IEAjs.isEmptyItem.call(void 0, panel, i.values)).map((i) => i.key)));
|
|
2012
2012
|
const toggle = (key) => setCollapsed((c) => {
|
|
2013
2013
|
const next = new Set(c);
|
|
2014
2014
|
if (!next.delete(key)) next.add(key);
|
|
@@ -2046,7 +2046,7 @@ function InputGroupBody({ panel }) {
|
|
|
2046
2046
|
group.items.map((item, i) => {
|
|
2047
2047
|
const named = panel.options.titleFrom ? titleText(item.values[panel.options.titleFrom]) : void 0;
|
|
2048
2048
|
const title = _nullishCoalesce(named, () => ( `${label} ${i + 1}`));
|
|
2049
|
-
const troubled =
|
|
2049
|
+
const troubled = _chunkIHOP6IEAjs.groupFields.call(void 0, panel).some((f) => group.fieldProblem(i, f.options.metric));
|
|
2050
2050
|
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
2051
2051
|
ItemCard,
|
|
2052
2052
|
{
|
|
@@ -2097,7 +2097,7 @@ function InputGroupBody({ panel }) {
|
|
|
2097
2097
|
}
|
|
2098
2098
|
function ItemCard({ panel, group, form, index, title, last, collapsed, onToggle, onDuplicate, dragOffset, lifted, onLayout, handle }) {
|
|
2099
2099
|
const theme = useDashTheme();
|
|
2100
|
-
const fields = _react.useMemo.call(void 0, () =>
|
|
2100
|
+
const fields = _react.useMemo.call(void 0, () => _chunkIHOP6IEAjs.groupFields.call(void 0, panel), [panel]);
|
|
2101
2101
|
const item = group.items[index];
|
|
2102
2102
|
const scoped = _react.useMemo.call(void 0,
|
|
2103
2103
|
() => ({
|
|
@@ -2317,7 +2317,7 @@ function BarGaugePanel({ panel, frames }) {
|
|
|
2317
2317
|
const min = _nullishCoalesce(v.config.min, () => ( 0));
|
|
2318
2318
|
const max = _nullishCoalesce(v.config.max, () => ( Math.max(...values.map((o) => _nullishCoalesce(o.value, () => ( 0))), 1)));
|
|
2319
2319
|
const frac = v.value == null ? 0 : Math.min(1, Math.max(0, (v.value - min) / (max - min || 1)));
|
|
2320
|
-
const color = v.config.thresholds || _optionalChain([v, 'access', _88 => _88.mapped, 'optionalAccess', _89 => _89.color]) ? v.stateColor :
|
|
2320
|
+
const color = v.config.thresholds || _optionalChain([v, 'access', _88 => _88.mapped, 'optionalAccess', _89 => _89.color]) ? v.stateColor : _chunkIHOP6IEAjs.resolveColor.call(void 0, _optionalChain([v, 'access', _90 => _90.config, 'access', _91 => _91.color, 'optionalAccess', _92 => _92.fixedColor]), v.color);
|
|
2321
2321
|
const hasLinks = !!_optionalChain([v, 'access', _93 => _93.config, 'access', _94 => _94.links, 'optionalAccess', _95 => _95.length]);
|
|
2322
2322
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
2323
2323
|
_reactnative.Pressable,
|
|
@@ -2498,7 +2498,7 @@ function geomapLayers(panel, frames, scheme, retina = false, gazetteers = {}) {
|
|
|
2498
2498
|
const color = _nullishCoalesce(style.color, () => ( {}));
|
|
2499
2499
|
const size = _nullishCoalesce(style.size, () => ( {}));
|
|
2500
2500
|
const text = style.text;
|
|
2501
|
-
const fixedColor =
|
|
2501
|
+
const fixedColor = _chunkIHOP6IEAjs.resolveColor.call(void 0, _nullishCoalesce(color.fixed, () => ( "dark-green")), "#37872D");
|
|
2502
2502
|
const heat = layer.type === "heatmap";
|
|
2503
2503
|
const weight = _nullishCoalesce(config.weight, () => ( {}));
|
|
2504
2504
|
const legend = [];
|
|
@@ -2510,14 +2510,14 @@ function geomapLayers(panel, frames, scheme, retina = false, gazetteers = {}) {
|
|
|
2510
2510
|
let { xs, ys } = located;
|
|
2511
2511
|
if (layer.type === "lastPointTracker" && rows.length) [rows, xs, ys] = [rows.slice(-1), xs.slice(-1), ys.slice(-1)];
|
|
2512
2512
|
const find = (field) => field ? fieldByName(frame, field, multiple) : void 0;
|
|
2513
|
-
const configOf = (f) =>
|
|
2513
|
+
const configOf = (f) => _chunkIHOP6IEAjs.resolveFieldConfig.call(void 0, panel, f, frame, _chunkIHOP6IEAjs.fieldDisplayName.call(void 0, f, frame, multiple));
|
|
2514
2514
|
let colors = rows.map(() => fixedColor);
|
|
2515
2515
|
const colorField = !heat ? find(color.field) : void 0;
|
|
2516
2516
|
if (colorField) {
|
|
2517
2517
|
const cConfig = configOf(colorField);
|
|
2518
2518
|
const values = rows.map((i) => num(colorField.values[i]));
|
|
2519
2519
|
const extent = range(values);
|
|
2520
|
-
colors = values.map((v) =>
|
|
2520
|
+
colors = values.map((v) => _chunkIHOP6IEAjs.valueColor.call(void 0, v, cConfig, fixedColor, extent));
|
|
2521
2521
|
if (showsLegend(layer) && legend.length === 0) legend.push(...thresholdLegend(`${key}/${frames.indexOf(frame)}`, cConfig, fixedColor));
|
|
2522
2522
|
}
|
|
2523
2523
|
const dim = heat ? weight : size;
|
|
@@ -2575,8 +2575,8 @@ function thresholdLegend(key, config, fallback) {
|
|
|
2575
2575
|
if (steps.length < 2) return [];
|
|
2576
2576
|
return steps.map((s, i) => ({
|
|
2577
2577
|
key: `${key}/${i}`,
|
|
2578
|
-
name: s.value == null ? `< ${
|
|
2579
|
-
color:
|
|
2578
|
+
name: s.value == null ? `< ${_chunkIHOP6IEAjs.formatValue.call(void 0, steps[i + 1].value, config)}` : `${_chunkIHOP6IEAjs.formatValue.call(void 0, s.value, config)}+`,
|
|
2579
|
+
color: _chunkIHOP6IEAjs.resolveColor.call(void 0, s.color, fallback)
|
|
2580
2580
|
}));
|
|
2581
2581
|
}
|
|
2582
2582
|
var isDataLayer = (type) => type === "markers" || type === "heatmap" || type === "route" || type === "lastPointTracker";
|
|
@@ -2586,15 +2586,15 @@ function gazetteerPaths(panel, frames) {
|
|
|
2586
2586
|
for (const layer of _nullishCoalesce(_optionalChain([panel, 'access', _113 => _113.options, 'optionalAccess', _114 => _114.layers]), () => ( DEFAULT_LAYERS))) {
|
|
2587
2587
|
if (!isDataLayer(layer.type)) continue;
|
|
2588
2588
|
const mode = _nullishCoalesce(_optionalChain([layer, 'access', _115 => _115.location, 'optionalAccess', _116 => _116.mode]), () => ( "auto"));
|
|
2589
|
-
if (mode === "lookup") paths.add(_optionalChain([layer, 'access', _117 => _117.location, 'optionalAccess', _118 => _118.gazetteer]) ||
|
|
2590
|
-
else if (mode === "auto" && frames.some(lookupField)) paths.add(
|
|
2589
|
+
if (mode === "lookup") paths.add(_optionalChain([layer, 'access', _117 => _117.location, 'optionalAccess', _118 => _118.gazetteer]) || _chunkIHOP6IEAjs.DEFAULT_GAZETTEER);
|
|
2590
|
+
else if (mode === "auto" && frames.some(lookupField)) paths.add(_chunkIHOP6IEAjs.DEFAULT_GAZETTEER);
|
|
2591
2591
|
}
|
|
2592
2592
|
return [...paths];
|
|
2593
2593
|
}
|
|
2594
2594
|
var LAT_NAMES = ["lat", "latitude"];
|
|
2595
2595
|
var LON_NAMES = ["lon", "lng", "long", "longitude"];
|
|
2596
2596
|
function fieldByName(frame, name, multiple) {
|
|
2597
|
-
return _nullishCoalesce(frame.fields.find((f) => f.name === name), () => ( frame.fields.find((f) =>
|
|
2597
|
+
return _nullishCoalesce(frame.fields.find((f) => f.name === name), () => ( frame.fields.find((f) => _chunkIHOP6IEAjs.fieldDisplayName.call(void 0, f, frame, multiple) === name)));
|
|
2598
2598
|
}
|
|
2599
2599
|
function locate2(frame, location = {}, gazetteers = {}) {
|
|
2600
2600
|
const mode = _nullishCoalesce(location.mode, () => ( "auto"));
|
|
@@ -2613,10 +2613,10 @@ function locate2(frame, location = {}, gazetteers = {}) {
|
|
|
2613
2613
|
lat = named(LAT_NAMES);
|
|
2614
2614
|
lon = named(LON_NAMES);
|
|
2615
2615
|
if (!lat || !lon) hash = named(["geohash"]);
|
|
2616
|
-
if ((!lat || !lon) && !hash) [lookup, gazetteer] = [lookupField(frame), gazetteers[
|
|
2616
|
+
if ((!lat || !lon) && !hash) [lookup, gazetteer] = [lookupField(frame), gazetteers[_chunkIHOP6IEAjs.DEFAULT_GAZETTEER]];
|
|
2617
2617
|
} else if (mode === "lookup") {
|
|
2618
2618
|
lookup = location.lookup ? fieldByName(frame, location.lookup, false) : lookupField(frame);
|
|
2619
|
-
gazetteer = gazetteers[location.gazetteer ||
|
|
2619
|
+
gazetteer = gazetteers[location.gazetteer || _chunkIHOP6IEAjs.DEFAULT_GAZETTEER];
|
|
2620
2620
|
}
|
|
2621
2621
|
const rows = [];
|
|
2622
2622
|
const xs = [];
|
|
@@ -2665,8 +2665,8 @@ function decodeGeohash(hash) {
|
|
|
2665
2665
|
}
|
|
2666
2666
|
function cellText(field, v, config) {
|
|
2667
2667
|
if (v == null) return "";
|
|
2668
|
-
if (field.type === "number") return
|
|
2669
|
-
if (field.type === "time") return new Date(
|
|
2668
|
+
if (field.type === "number") return _chunkIHOP6IEAjs.formatDisplay.call(void 0, Number(v), config);
|
|
2669
|
+
if (field.type === "time") return new Date(_chunkIHOP6IEAjs.toMillis.call(void 0, v)).toLocaleString();
|
|
2670
2670
|
return String(v);
|
|
2671
2671
|
}
|
|
2672
2672
|
function num(v) {
|
|
@@ -2916,11 +2916,11 @@ function useGazetteers(panel, frames) {
|
|
|
2916
2916
|
let live = true;
|
|
2917
2917
|
let ds;
|
|
2918
2918
|
try {
|
|
2919
|
-
ds = _optionalChain([resolve, 'optionalCall', _128 => _128(
|
|
2919
|
+
ds = _optionalChain([resolve, 'optionalCall', _128 => _128(_chunkIHOP6IEAjs.normalizeRef.call(void 0, panel.datasource))]);
|
|
2920
2920
|
} catch (e6) {
|
|
2921
2921
|
}
|
|
2922
2922
|
const paths = key.split("\n");
|
|
2923
|
-
Promise.allSettled(paths.map((p) =>
|
|
2923
|
+
Promise.allSettled(paths.map((p) => _chunkIHOP6IEAjs.loadGazetteer.call(void 0, p, ds))).then((results) => {
|
|
2924
2924
|
if (!live) return;
|
|
2925
2925
|
const gazetteers = {};
|
|
2926
2926
|
const errors = [];
|
|
@@ -3063,8 +3063,8 @@ function cellType(config) {
|
|
|
3063
3063
|
}
|
|
3064
3064
|
function tableColumns(panel, frame, multipleFrames = false) {
|
|
3065
3065
|
return frame.fields.flatMap((field, i) => {
|
|
3066
|
-
const raw =
|
|
3067
|
-
const config =
|
|
3066
|
+
const raw = _chunkIHOP6IEAjs.fieldDisplayName.call(void 0, field, frame, multipleFrames);
|
|
3067
|
+
const config = _chunkIHOP6IEAjs.resolveFieldConfig.call(void 0, panel, field, frame, raw);
|
|
3068
3068
|
const custom = _nullishCoalesce(config.custom, () => ( {}));
|
|
3069
3069
|
if (custom.hidden || _optionalChain([custom, 'access', _138 => _138.hideFrom, 'optionalAccess', _139 => _139.viz])) return [];
|
|
3070
3070
|
const numeric = field.type === "number";
|
|
@@ -3107,16 +3107,16 @@ function tableFooter(columns) {
|
|
|
3107
3107
|
counted = true;
|
|
3108
3108
|
return [{ label: "Count", text: String(c.field.values.length) }];
|
|
3109
3109
|
}
|
|
3110
|
-
if (!
|
|
3111
|
-
const label =
|
|
3110
|
+
if (!_chunkIHOP6IEAjs.isReducer.call(void 0, r)) return [];
|
|
3111
|
+
const label = _chunkIHOP6IEAjs.REDUCER_LABELS[r];
|
|
3112
3112
|
if (r === "count") return [{ label, text: String(c.field.values.length) }];
|
|
3113
3113
|
if (c.field.type !== "number") {
|
|
3114
3114
|
if (r === "distinctCount") return [{ label, text: String(new Set(c.field.values.filter((v) => v != null)).size) }];
|
|
3115
3115
|
return [];
|
|
3116
3116
|
}
|
|
3117
|
-
const value =
|
|
3117
|
+
const value = _chunkIHOP6IEAjs.reduce.call(void 0, c.field.values.map((v) => v == null ? null : Number(v)), r);
|
|
3118
3118
|
const counts = r === "distinctCount" || r === "changeCount";
|
|
3119
|
-
return [{ label, text: counts ? String(_nullishCoalesce(value, () => ( 0))) :
|
|
3119
|
+
return [{ label, text: counts ? String(_nullishCoalesce(value, () => ( 0))) : _chunkIHOP6IEAjs.formatValue.call(void 0, value, c.config) }];
|
|
3120
3120
|
});
|
|
3121
3121
|
return lines.length === 1 && lines[0].label !== "Count" ? [{ text: lines[0].text }] : lines;
|
|
3122
3122
|
});
|
|
@@ -3135,13 +3135,13 @@ function extentOf(values) {
|
|
|
3135
3135
|
}
|
|
3136
3136
|
function cellDisplay(col, raw, fallbackColor) {
|
|
3137
3137
|
const { config, field } = col;
|
|
3138
|
-
const mapped =
|
|
3138
|
+
const mapped = _chunkIHOP6IEAjs.mappedResult.call(void 0, raw, config);
|
|
3139
3139
|
const num4 = field.type === "number" && raw != null && Number.isFinite(Number(raw)) ? Number(raw) : null;
|
|
3140
|
-
const text = _nullishCoalesce(_optionalChain([mapped, 'optionalAccess', _153 => _153.text]), () => ( (raw == null ? _nullishCoalesce(config.noValue, () => ( "")) : field.type === "number" ?
|
|
3140
|
+
const text = _nullishCoalesce(_optionalChain([mapped, 'optionalAccess', _153 => _153.text]), () => ( (raw == null ? _nullishCoalesce(config.noValue, () => ( "")) : field.type === "number" ? _chunkIHOP6IEAjs.formatValue.call(void 0, num4, config) : field.type === "time" ? new Date(_chunkIHOP6IEAjs.toMillis.call(void 0, raw)).toLocaleString() : String(raw))));
|
|
3141
3141
|
if (col.cellType === "auto") return { text };
|
|
3142
3142
|
const mode = _optionalChain([config, 'access', _154 => _154.color, 'optionalAccess', _155 => _155.mode]);
|
|
3143
|
-
const named = _nullishCoalesce(_optionalChain([mapped, 'optionalAccess', _156 => _156.color]), () => ( (mode === "fixed" ? _optionalChain([config, 'access', _157 => _157.color, 'optionalAccess', _158 => _158.fixedColor]) : (!mode || mode === "thresholds") && num4 != null ? _optionalChain([
|
|
3144
|
-
const color = named === "text" ? void 0 : _optionalChain([mapped, 'optionalAccess', _160 => _160.color]) ?
|
|
3143
|
+
const named = _nullishCoalesce(_optionalChain([mapped, 'optionalAccess', _156 => _156.color]), () => ( (mode === "fixed" ? _optionalChain([config, 'access', _157 => _157.color, 'optionalAccess', _158 => _158.fixedColor]) : (!mode || mode === "thresholds") && num4 != null ? _optionalChain([_chunkIHOP6IEAjs.thresholdStep.call(void 0, num4, config), 'optionalAccess', _159 => _159.color]) : void 0)));
|
|
3144
|
+
const color = named === "text" ? void 0 : _optionalChain([mapped, 'optionalAccess', _160 => _160.color]) ? _chunkIHOP6IEAjs.resolveColor.call(void 0, mapped.color, fallbackColor) : num4 == null ? void 0 : _chunkIHOP6IEAjs.valueColor.call(void 0, num4, config, fallbackColor, col.extent);
|
|
3145
3145
|
if (col.cellType === "color-text") return { text, color };
|
|
3146
3146
|
if (col.cellType === "color-background") return { text, background: color };
|
|
3147
3147
|
const min = _nullishCoalesce(config.min, () => ( Math.min(0, _nullishCoalesce(_optionalChain([col, 'access', _161 => _161.extent, 'optionalAccess', _162 => _162[0]]), () => ( 0)))));
|
|
@@ -3172,7 +3172,7 @@ function sortedRows(columns, length, sort) {
|
|
|
3172
3172
|
if (!col) return rows;
|
|
3173
3173
|
const { field } = col;
|
|
3174
3174
|
const dir = sort.desc ? -1 : 1;
|
|
3175
|
-
const key = (v) => field.type === "time" ?
|
|
3175
|
+
const key = (v) => field.type === "time" ? _chunkIHOP6IEAjs.toMillis.call(void 0, v) : field.type === "number" || field.type === "boolean" ? Number(v) : v;
|
|
3176
3176
|
const empty = (v) => v == null || v === "" || typeof v === "number" && Number.isNaN(v);
|
|
3177
3177
|
return rows.sort((a, b) => {
|
|
3178
3178
|
const va = field.values[a];
|
|
@@ -3238,8 +3238,8 @@ function TablePanel({ panel, frames }) {
|
|
|
3238
3238
|
const columns = _react.useMemo.call(void 0, () => frame ? tableColumns(panel, frame, frames.length > 1) : [], [panel, frame, frames.length]);
|
|
3239
3239
|
const [tapped, setSort] = _react.useState.call(void 0, );
|
|
3240
3240
|
const sort = tapped === void 0 ? initialSort(panel, columns) : tapped;
|
|
3241
|
-
const order = _react.useMemo.call(void 0, () => sortedRows(columns, frame ?
|
|
3242
|
-
if (!frame || !
|
|
3241
|
+
const order = _react.useMemo.call(void 0, () => sortedRows(columns, frame ? _chunkIHOP6IEAjs.frameLength.call(void 0, frame) : 0, sort), [columns, frame, sort]);
|
|
3242
|
+
if (!frame || !_chunkIHOP6IEAjs.frameLength.call(void 0, frame)) return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, NoData, {});
|
|
3243
3243
|
const shown = order.slice(0, 500);
|
|
3244
3244
|
const rowColumn = columns.find((c) => c.applyToRow);
|
|
3245
3245
|
const footer = tableFooter(columns);
|
|
@@ -3339,7 +3339,7 @@ function BarChartPanel({ panel, frames, width }) {
|
|
|
3339
3339
|
{
|
|
3340
3340
|
style: [styles12.tick, { color: theme.textMuted, top: plot.height * (1 - barFraction(axis, t)) - 7 }, axis.side === "left" ? styles12.tickLeft : styles12.tickRight],
|
|
3341
3341
|
numberOfLines: 1,
|
|
3342
|
-
children:
|
|
3342
|
+
children: _chunkIHOP6IEAjs.formatValue.call(void 0, t, { ...axis.config, decimals: tickDecimals(axis.ticks) })
|
|
3343
3343
|
},
|
|
3344
3344
|
t
|
|
3345
3345
|
)) });
|
|
@@ -3465,7 +3465,7 @@ function TimeSeriesPanel({ panel, frames }) {
|
|
|
3465
3465
|
const y = linearScale(yMin, yMax, PAD.top + plotH, PAD.top);
|
|
3466
3466
|
const span = xTo - xFrom;
|
|
3467
3467
|
const xTicks = numericX ? numberTicks(xFrom, xTo, plotW) : timeTicks(xFrom, xTo, plotW);
|
|
3468
|
-
const xLabel = (t) => numericX ?
|
|
3468
|
+
const xLabel = (t) => numericX ? _chunkIHOP6IEAjs.formatValue.call(void 0, t, { ...xConfig, decimals: tickDecimals(xTicks) }) : formatTimeTick(t, span);
|
|
3469
3469
|
const unitConfig = series[0].config;
|
|
3470
3470
|
const barSeries = series.filter((s) => style(s) === "bars");
|
|
3471
3471
|
const pointsCount = Math.max(...series.map((s) => s.times.length));
|
|
@@ -3483,11 +3483,11 @@ function TimeSeriesPanel({ panel, frames }) {
|
|
|
3483
3483
|
if (!pinch.current) pinch.current = { start: { from: xFrom, to: xTo }, dist, frac };
|
|
3484
3484
|
const p = pinch.current;
|
|
3485
3485
|
const limits = extent ? { minSpan: (extent[1] - extent[0]) / 1e3, maxSpan: extent[1] - extent[0], minFrom: extent[0], maxTo: extent[1] } : { maxTo: Math.max(Date.now(), p.start.to) };
|
|
3486
|
-
setPreview(
|
|
3486
|
+
setPreview(_chunkIHOP6IEAjs.zoomRange.call(void 0, p.start, dist / p.dist, p.frac, frac, limits));
|
|
3487
3487
|
};
|
|
3488
3488
|
const onPinchEnd = (commit) => {
|
|
3489
3489
|
if (commit && pinch.current && preview) {
|
|
3490
|
-
if (!extent) setRawRange({ from:
|
|
3490
|
+
if (!extent) setRawRange({ from: _chunkIHOP6IEAjs.formatLocalDateTime.call(void 0, preview.from), to: _chunkIHOP6IEAjs.formatLocalDateTime.call(void 0, preview.to) });
|
|
3491
3491
|
else setXZoom(preview.to - preview.from >= extent[1] - extent[0] ? null : preview);
|
|
3492
3492
|
}
|
|
3493
3493
|
pinch.current = null;
|
|
@@ -3542,7 +3542,7 @@ function TimeSeriesPanel({ panel, frames }) {
|
|
|
3542
3542
|
size.width > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnativesvg2.default, { width: size.width, height: size.height, children: [
|
|
3543
3543
|
ticks.map((t) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnativesvg.G, { children: [
|
|
3544
3544
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg.Line, { x1: PAD.left, x2: PAD.left + plotW, y1: y(t), y2: y(t), stroke: theme.grid, strokeWidth: 1 }),
|
|
3545
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg.Text, { x: PAD.left - 6, y: y(t) + 3, fontSize: 10, fill: theme.textMuted, textAnchor: "end", children:
|
|
3545
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg.Text, { x: PAD.left - 6, y: y(t) + 3, fontSize: 10, fill: theme.textMuted, textAnchor: "end", children: _chunkIHOP6IEAjs.formatValue.call(void 0, t, { ...unitConfig, decimals: tickDecimals(ticks) }) })
|
|
3546
3546
|
] }, t)),
|
|
3547
3547
|
xTicks.map((t) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0,
|
|
3548
3548
|
_reactnativesvg.Text,
|
|
@@ -3608,11 +3608,11 @@ function TimeSeriesPanel({ panel, frames }) {
|
|
|
3608
3608
|
x(hover.time) > size.width / 2 ? { right: size.width - x(hover.time) + 8 } : { left: x(hover.time) + 8 }
|
|
3609
3609
|
],
|
|
3610
3610
|
children: [
|
|
3611
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles13.tooltipTime, { color: theme.textMuted }], children: numericX ?
|
|
3611
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles13.tooltipTime, { color: theme.textMuted }], children: numericX ? _chunkIHOP6IEAjs.formatValue.call(void 0, hover.time, xConfig) : formatTooltipTime(hover.time) }),
|
|
3612
3612
|
hover.rows.map((r) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnative.View, { style: styles13.tooltipRow, children: [
|
|
3613
3613
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: [styles13.swatch, { backgroundColor: r.color }] }),
|
|
3614
3614
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles13.tooltipName, { color: theme.textSecondary }], numberOfLines: 1, children: r.name }),
|
|
3615
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles13.tooltipValue, { color: theme.text }], children:
|
|
3615
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles13.tooltipValue, { color: theme.text }], children: _chunkIHOP6IEAjs.formatValue.call(void 0, r.value, r.config) })
|
|
3616
3616
|
] }, r.key)),
|
|
3617
3617
|
isPinned && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, TooltipLinks, { links: hoverLinks, onOpen: (l) => openLinks([l]) })
|
|
3618
3618
|
]
|
|
@@ -3697,7 +3697,7 @@ function linkData(r, frames, xField) {
|
|
|
3697
3697
|
if (frame && xField === void 0) {
|
|
3698
3698
|
row = r.index;
|
|
3699
3699
|
} else if (frame) {
|
|
3700
|
-
const xf = _nullishCoalesce(frame.fields.find((f) => f.name === xField), () => (
|
|
3700
|
+
const xf = _nullishCoalesce(frame.fields.find((f) => f.name === xField), () => ( _chunkIHOP6IEAjs.numberFields.call(void 0, frame)[0]));
|
|
3701
3701
|
const at = _optionalChain([xf, 'optionalAccess', _222 => _222.values, 'access', _223 => _223.findIndex, 'call', _224 => _224((v, k) => Number(v) === r.time && Number(r.series.field.values[k]) === r.value)]);
|
|
3702
3702
|
row = at != null && at >= 0 ? at : void 0;
|
|
3703
3703
|
}
|
|
@@ -3708,7 +3708,7 @@ function linkData(r, frames, xField) {
|
|
|
3708
3708
|
fieldName: r.name,
|
|
3709
3709
|
seriesName: r.name,
|
|
3710
3710
|
value: r.value,
|
|
3711
|
-
text:
|
|
3711
|
+
text: _chunkIHOP6IEAjs.formatValue.call(void 0, r.value, r.config),
|
|
3712
3712
|
time: xField === void 0 ? r.time : void 0
|
|
3713
3713
|
};
|
|
3714
3714
|
}
|
|
@@ -3769,8 +3769,8 @@ function xySeries(panel, frames, scheme) {
|
|
|
3769
3769
|
const { manual, series: maps, exclude } = mappings(panel);
|
|
3770
3770
|
const multiple = frames.length > 1;
|
|
3771
3771
|
const out = [];
|
|
3772
|
-
const config = (field, frame) =>
|
|
3773
|
-
const find = (pick, frame, fields = frame.fields) => pick ? fields.filter((f) =>
|
|
3772
|
+
const config = (field, frame) => _chunkIHOP6IEAjs.resolveFieldConfig.call(void 0, panel, field, frame, _chunkIHOP6IEAjs.fieldDisplayName.call(void 0, field, frame, multiple));
|
|
3773
|
+
const find = (pick, frame, fields = frame.fields) => pick ? fields.filter((f) => _chunkIHOP6IEAjs.fieldMatches.call(void 0, pick.matcher, f, frame, _chunkIHOP6IEAjs.fieldDisplayName.call(void 0, f, frame, multiple))) : [];
|
|
3774
3774
|
for (const [mi, m] of (maps.length ? maps : [{}]).entries()) {
|
|
3775
3775
|
const matcher = _optionalChain([m, 'access', _235 => _235.frame, 'optionalAccess', _236 => _236.matcher]);
|
|
3776
3776
|
const chosen = _optionalChain([matcher, 'optionalAccess', _237 => _237.id]) === "byIndex" ? frames.filter((_, i) => i === matcher.options) : frames;
|
|
@@ -3786,16 +3786,16 @@ function xySeries(panel, frames, scheme) {
|
|
|
3786
3786
|
const yConfig = config(yField, frame);
|
|
3787
3787
|
if (_optionalChain([yConfig, 'access', _238 => _238.custom, 'optionalAccess', _239 => _239.hideFrom, 'optionalAccess', _240 => _240.viz]) && !manual) continue;
|
|
3788
3788
|
const xConfig = config(xField, frame);
|
|
3789
|
-
const color =
|
|
3790
|
-
const base = _optionalChain([yConfig, 'access', _241 => _241.color, 'optionalAccess', _242 => _242.mode]) === "thresholds" ?
|
|
3789
|
+
const color = _chunkIHOP6IEAjs.seriesColor.call(void 0, out.length, scheme, yConfig);
|
|
3790
|
+
const base = _optionalChain([yConfig, 'access', _241 => _241.color, 'optionalAccess', _242 => _242.mode]) === "thresholds" ? _chunkIHOP6IEAjs.valueColor.call(void 0, null, yConfig, color) : color;
|
|
3791
3791
|
const rows = [];
|
|
3792
3792
|
const xs = [];
|
|
3793
3793
|
const ys = [];
|
|
3794
3794
|
yField.values.forEach((yv, i) => {
|
|
3795
3795
|
const xv = xField.values[i];
|
|
3796
3796
|
if (xv == null || yv == null) return;
|
|
3797
|
-
const xn = xField.type === "time" ?
|
|
3798
|
-
const yn = yField.type === "time" ?
|
|
3797
|
+
const xn = xField.type === "time" ? _chunkIHOP6IEAjs.toMillis.call(void 0, xv) : Number(xv);
|
|
3798
|
+
const yn = yField.type === "time" ? _chunkIHOP6IEAjs.toMillis.call(void 0, yv) : Number(yv);
|
|
3799
3799
|
if (!Number.isFinite(xn) || !Number.isFinite(yn)) return;
|
|
3800
3800
|
rows.push(i);
|
|
3801
3801
|
xs.push(xn);
|
|
@@ -3808,7 +3808,7 @@ function xySeries(panel, frames, scheme) {
|
|
|
3808
3808
|
const cConfig = config(colorField, frame);
|
|
3809
3809
|
const values = rows.map((i) => num3(colorField.values[i]));
|
|
3810
3810
|
const extent = range2(values);
|
|
3811
|
-
colors = values.map((v) =>
|
|
3811
|
+
colors = values.map((v) => _chunkIHOP6IEAjs.valueColor.call(void 0, v, cConfig, base, extent));
|
|
3812
3812
|
}
|
|
3813
3813
|
let sizes = rows.map(() => fixedSize);
|
|
3814
3814
|
if (sizeField) {
|
|
@@ -3818,7 +3818,7 @@ function xySeries(panel, frames, scheme) {
|
|
|
3818
3818
|
sizes = values.map((v) => v == null ? min : min + (v - lo) / (hi - lo || 1) * (max - min));
|
|
3819
3819
|
}
|
|
3820
3820
|
const fixedName = _optionalChain([m, 'access', _254 => _254.name, 'optionalAccess', _255 => _255.fixed]);
|
|
3821
|
-
const yName = _nullishCoalesce(yConfig.displayName, () => (
|
|
3821
|
+
const yName = _nullishCoalesce(yConfig.displayName, () => ( _chunkIHOP6IEAjs.fieldDisplayName.call(void 0, yField, frame, multiple)));
|
|
3822
3822
|
out.push({
|
|
3823
3823
|
key: `${mi}/${frames.indexOf(frame)}/${yField.name}`,
|
|
3824
3824
|
name: fixedName ? yFields.length > 1 ? `${fixedName} ${yName}` : fixedName : yName,
|
|
@@ -3941,7 +3941,7 @@ function XYChartPanel({ panel, frames }) {
|
|
|
3941
3941
|
size.width > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnativesvg2.default, { width: size.width, height: size.height, children: [
|
|
3942
3942
|
yTicks.map((t) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnativesvg.G, { children: [
|
|
3943
3943
|
gridY && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg.Line, { x1: pad.left, x2: pad.left + plotW, y1: layout.y(t), y2: layout.y(t), stroke: theme.grid, strokeWidth: 1 }),
|
|
3944
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg.Text, { x: pad.left - 6, y: layout.y(t) + 3, fontSize: 10, fill: theme.textMuted, textAnchor: "end", children:
|
|
3944
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg.Text, { x: pad.left - 6, y: layout.y(t) + 3, fontSize: 10, fill: theme.textMuted, textAnchor: "end", children: _chunkIHOP6IEAjs.formatValue.call(void 0, t, { ...first.yConfig, decimals: _nullishCoalesce(first.yConfig.decimals, () => ( tickDecimals(yTicks))) }) })
|
|
3945
3945
|
] }, `y${t}`)),
|
|
3946
3946
|
xTicks.map((t) => /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnativesvg.G, { children: [
|
|
3947
3947
|
gridX && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnativesvg.Line, { x1: layout.x(t), x2: layout.x(t), y1: pad.top, y2: pad.top + plotH, stroke: theme.grid, strokeWidth: 1 }),
|
|
@@ -3953,7 +3953,7 @@ function XYChartPanel({ panel, frames }) {
|
|
|
3953
3953
|
fontSize: 10,
|
|
3954
3954
|
fill: theme.textMuted,
|
|
3955
3955
|
textAnchor: layout.x(t) - pad.left < 20 ? "start" : pad.left + plotW - layout.x(t) < 20 ? "end" : "middle",
|
|
3956
|
-
children:
|
|
3956
|
+
children: _chunkIHOP6IEAjs.formatValue.call(void 0, t, { ...first.xConfig, decimals: _nullishCoalesce(first.xConfig.decimals, () => ( tickDecimals(xTicks))) })
|
|
3957
3957
|
}
|
|
3958
3958
|
)
|
|
3959
3959
|
] }, `x${t}`)),
|
|
@@ -4066,14 +4066,14 @@ function DashboardView({ mode = "auto", header, footer, refreshable }) {
|
|
|
4066
4066
|
const width = (measured.width || window.width) - insets.left - insets.right;
|
|
4067
4067
|
const layoutMode = mode === "auto" ? width >= TABLET_WIDTH ? "grid" : "phone" : mode;
|
|
4068
4068
|
const sections = _react.useMemo.call(void 0,
|
|
4069
|
-
() =>
|
|
4069
|
+
() => _chunkIHOP6IEAjs.layoutDashboard.call(void 0, dashboard, layoutMode, { values: variables, info: variableInfo2 }),
|
|
4070
4070
|
[dashboard, layoutMode, variables, variableInfo2]
|
|
4071
4071
|
);
|
|
4072
4072
|
const [toggled, setToggled] = _react.useState.call(void 0, {});
|
|
4073
4073
|
const { seen, viewportH, onScroll, onViewportLayout, onSectionLayout } = useSeenSections(window.height);
|
|
4074
4074
|
const maxPanelH = Math.max(MIN_PANEL_H, viewportH - SIDE * 2);
|
|
4075
4075
|
const contentW = width - SIDE * 2;
|
|
4076
|
-
const canRefresh = _nullishCoalesce(refreshable, () => ( dashboard.panels.some((p) =>
|
|
4076
|
+
const canRefresh = _nullishCoalesce(refreshable, () => ( dashboard.panels.some((p) => _chunkIHOP6IEAjs.panelHasQueries.call(void 0, p) || _optionalChain([p, 'access', _278 => _278.panels, 'optionalAccess', _279 => _279.some, 'call', _280 => _280(_chunkIHOP6IEAjs.panelHasQueries)]))));
|
|
4077
4077
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnative.View, { style: [styles15.fill, { backgroundColor: theme.background }], onLayout, children: [
|
|
4078
4078
|
width > 0 && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0,
|
|
4079
4079
|
_reactnative.ScrollView,
|
|
@@ -4099,14 +4099,14 @@ function DashboardView({ mode = "auto", header, footer, refreshable }) {
|
|
|
4099
4099
|
accessibilityState: { expanded: !collapsed },
|
|
4100
4100
|
children: [
|
|
4101
4101
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles15.chevron, { color: theme.textMuted }], children: collapsed ? "\u25B8" : "\u25BE" }),
|
|
4102
|
-
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles15.rowTitle, { color: theme.text }], numberOfLines: 2, children:
|
|
4102
|
+
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles15.rowTitle, { color: theme.text }], numberOfLines: 2, children: _chunkIHOP6IEAjs.interpolate.call(void 0, _nullishCoalesce(section.row.title, () => ( "")), { values: variables, info: variableInfo2, scoped: section.row.scopedVars, timezone: dashboard.timezone }) })
|
|
4103
4103
|
]
|
|
4104
4104
|
}
|
|
4105
4105
|
),
|
|
4106
4106
|
!collapsed && layoutMode === "grid" && /* @__PURE__ */ _jsxruntime.jsx.call(void 0, GridSection, { grid: section.grid, width: contentW, maxPanelH, deferred: !seen.has(section.key) }),
|
|
4107
4107
|
!collapsed && layoutMode === "phone" && section.rows.map((row, ri) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: styles15.row, children: row.cells.map((cell) => {
|
|
4108
|
-
const w = (contentW + GAP2) * (cell.span /
|
|
4109
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PanelCard, { panel: cell.panel, width: w, height: Math.min(
|
|
4108
|
+
const w = (contentW + GAP2) * (cell.span / _chunkIHOP6IEAjs.GRID_COLUMNS) - GAP2;
|
|
4109
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PanelCard, { panel: cell.panel, width: w, height: Math.min(_chunkIHOP6IEAjs.gridUnitsToPx.call(void 0, row.h), maxPanelH), deferred: !seen.has(section.key) }, cell.key);
|
|
4110
4110
|
}) }, ri))
|
|
4111
4111
|
] }, section.key);
|
|
4112
4112
|
})
|
|
@@ -4117,10 +4117,10 @@ function DashboardView({ mode = "auto", header, footer, refreshable }) {
|
|
|
4117
4117
|
] });
|
|
4118
4118
|
}
|
|
4119
4119
|
function GridSection({ grid, width, maxPanelH, deferred }) {
|
|
4120
|
-
const colW = (width + GAP2) /
|
|
4121
|
-
const tallest = Math.max(0, ...grid.cells.map((c) =>
|
|
4120
|
+
const colW = (width + GAP2) / _chunkIHOP6IEAjs.GRID_COLUMNS;
|
|
4121
|
+
const tallest = Math.max(0, ...grid.cells.map((c) => _chunkIHOP6IEAjs.gridUnitsToPx.call(void 0, c.h)));
|
|
4122
4122
|
const scale = tallest > maxPanelH ? maxPanelH / tallest : 1;
|
|
4123
|
-
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: { height:
|
|
4123
|
+
return /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: { height: _chunkIHOP6IEAjs.gridUnitsToPx.call(void 0, grid.h) * scale }, children: grid.cells.map((cell) => /* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.View, { style: [styles15.gridCell, { left: cell.x * colW, top: _chunkIHOP6IEAjs.gridOffsetPx.call(void 0, cell.y) * scale }], children: /* @__PURE__ */ _jsxruntime.jsx.call(void 0, PanelCard, { panel: cell.panel, width: cell.w * colW - GAP2, height: _chunkIHOP6IEAjs.gridUnitsToPx.call(void 0, cell.h) * scale, deferred }) }, cell.key)) });
|
|
4124
4124
|
}
|
|
4125
4125
|
function useSeenSections(viewportHeight) {
|
|
4126
4126
|
const [seen, setSeen] = _react.useState.call(void 0, /* @__PURE__ */ new Set());
|
|
@@ -4179,14 +4179,14 @@ function PanelCardContent({ panel, width, height, deferred }) {
|
|
|
4179
4179
|
const theme = useDashTheme();
|
|
4180
4180
|
const { dashboard, variables, variableInfo: variableInfo2 } = useDashboard();
|
|
4181
4181
|
const { resolve, openLinks } = usePanelLinks(panel);
|
|
4182
|
-
const group =
|
|
4183
|
-
const input =
|
|
4182
|
+
const group = _chunkIHOP6IEAjs.isInputGroup.call(void 0, panel);
|
|
4183
|
+
const input = _chunkIHOP6IEAjs.isInputPanel.call(void 0, panel) || group;
|
|
4184
4184
|
const form = _react.useContext.call(void 0, InputFormContext);
|
|
4185
|
-
const problem = group ? _optionalChain([form, 'optionalAccess', _281 => _281.group, 'optionalCall', _282 => _282(panel), 'optionalAccess', _283 => _283.problem]) :
|
|
4185
|
+
const problem = group ? _optionalChain([form, 'optionalAccess', _281 => _281.group, 'optionalCall', _282 => _282(panel), 'optionalAccess', _283 => _283.problem]) : _chunkIHOP6IEAjs.isInputPanel.call(void 0, panel) ? _optionalChain([form, 'optionalAccess', _284 => _284.problem, 'optionalCall', _285 => _285(panel.options.metric)]) : void 0;
|
|
4186
4186
|
const hasLinks = !!_optionalChain([panel, 'access', _286 => _286.links, 'optionalAccess', _287 => _287.length]);
|
|
4187
|
-
const filled = !group &&
|
|
4187
|
+
const filled = !group && _chunkIHOP6IEAjs.isInputPanel.call(void 0, panel) && !!_optionalChain([form, 'optionalAccess', _288 => _288.filled, 'optionalCall', _289 => _289(panel.options.metric)]);
|
|
4188
4188
|
const hasTitle = !!panel.title || hasLinks || !!problem || filled;
|
|
4189
|
-
const title = panel.title ?
|
|
4189
|
+
const title = panel.title ? _chunkIHOP6IEAjs.interpolate.call(void 0, panel.title, { values: variables, info: variableInfo2, scoped: panel.scopedVars, timezone: dashboard.timezone }) : "";
|
|
4190
4190
|
return /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnative.View, { style: [styles15.card, { width, height, backgroundColor: theme.surface, borderColor: filled ? theme.accent : theme.border }, filled && { borderWidth: 2 }], children: [
|
|
4191
4191
|
hasTitle && /* @__PURE__ */ _jsxruntime.jsxs.call(void 0, _reactnative.View, { style: styles15.titleRow, children: [
|
|
4192
4192
|
/* @__PURE__ */ _jsxruntime.jsx.call(void 0, _reactnative.Text, { style: [styles15.title, { color: theme.text }], numberOfLines: 1, children: title }),
|
|
@@ -4209,7 +4209,7 @@ function PanelCardContent({ panel, width, height, deferred }) {
|
|
|
4209
4209
|
}
|
|
4210
4210
|
function DataPanelBody({ panel, width, height }) {
|
|
4211
4211
|
const theme = useDashTheme();
|
|
4212
|
-
const needsData =
|
|
4212
|
+
const needsData = _chunkIHOP6IEAjs.panelHasQueries.call(void 0, panel);
|
|
4213
4213
|
const data = usePanelData(panel, width, needsData);
|
|
4214
4214
|
const Component2 = panelComponent(panel.type);
|
|
4215
4215
|
if (needsData && data.error) {
|
|
@@ -4362,7 +4362,7 @@ function useVoiceFill({ speech, lang, filler, form, onFilled, onError }) {
|
|
|
4362
4362
|
try {
|
|
4363
4363
|
mine = speech.start({
|
|
4364
4364
|
lang,
|
|
4365
|
-
hints:
|
|
4365
|
+
hints: _chunkIHOP6IEAjs.fillHints.call(void 0, form),
|
|
4366
4366
|
continuous: true,
|
|
4367
4367
|
onText(text, final) {
|
|
4368
4368
|
if (!final) return setHeard(text || null);
|
|
@@ -4394,19 +4394,19 @@ function savedValues(panels, entries) {
|
|
|
4394
4394
|
const values = {};
|
|
4395
4395
|
for (const p of panels) {
|
|
4396
4396
|
const mine = entries.filter((e) => e.metric === p.options.metric);
|
|
4397
|
-
values[p.options.metric] = p.options.multi ? mine.length ? mine.map((e) => _nullishCoalesce(e.text, () => ( e.value))) : null :
|
|
4397
|
+
values[p.options.metric] = p.options.multi ? mine.length ? mine.map((e) => _nullishCoalesce(e.text, () => ( e.value))) : null : _chunkIHOP6IEAjs.entryToInputValue.call(void 0, p, mine[0]);
|
|
4398
4398
|
}
|
|
4399
4399
|
return values;
|
|
4400
4400
|
}
|
|
4401
4401
|
async function lastItems(store, group) {
|
|
4402
|
-
const metrics =
|
|
4402
|
+
const metrics = _chunkIHOP6IEAjs.groupFields.call(void 0, group).map((f) => f.options.metric);
|
|
4403
4403
|
const latest = (await Promise.all(metrics.map((m) => store.latest(m)))).filter((e) => !!e).sort((a, b) => b.ts - a.ts)[0];
|
|
4404
4404
|
if (!latest) return [];
|
|
4405
|
-
return
|
|
4405
|
+
return _chunkIHOP6IEAjs.entriesToItems.call(void 0, group, _chunkIHOP6IEAjs.sameSave.call(void 0, latest, await store.list({ metrics, from: latest.ts, to: latest.ts })));
|
|
4406
4406
|
}
|
|
4407
4407
|
function freshItem(group, position, last) {
|
|
4408
4408
|
const item = {};
|
|
4409
|
-
for (const f of
|
|
4409
|
+
for (const f of _chunkIHOP6IEAjs.groupFields.call(void 0, group)) {
|
|
4410
4410
|
const d = f.options.default;
|
|
4411
4411
|
const v = d === "last" ? _optionalChain([last, 'optionalAccess', _293 => _293[position], 'optionalAccess', _294 => _294[f.options.metric]]) : d;
|
|
4412
4412
|
if (v !== void 0 && v !== null) item[f.options.metric] = v;
|
|
@@ -4415,15 +4415,15 @@ function freshItem(group, position, last) {
|
|
|
4415
4415
|
}
|
|
4416
4416
|
function baseItems(group, editing, last) {
|
|
4417
4417
|
const start = group.options.start;
|
|
4418
|
-
const values = editing ?
|
|
4418
|
+
const values = editing ? _chunkIHOP6IEAjs.entriesToItems.call(void 0, group, editing) : start === "last" && _optionalChain([last, 'optionalAccess', _295 => _295.length]) ? last : Array.from({ length: typeof start === "number" ? Math.max(0, start) : 1 }, (_, i) => freshItem(group, i, last));
|
|
4419
4419
|
return values.map((v, i) => ({ key: `b${i}`, values: v, edited: [] }));
|
|
4420
4420
|
}
|
|
4421
4421
|
var nextItemKey = 1;
|
|
4422
|
-
function InputForm({ dashboard, store, onSaved, choices = NO_CHOICES, header, timestamp, defaults: given = NO_DEFAULTS, beforeSave, editing, speech: givenSpeech, speechLang, filler =
|
|
4422
|
+
function InputForm({ dashboard, store, onSaved, choices = NO_CHOICES, header, timestamp, defaults: given = NO_DEFAULTS, beforeSave, editing, speech: givenSpeech, speechLang, filler = _chunkIHOP6IEAjs.ruleFiller }) {
|
|
4423
4423
|
const speech = givenSpeech === void 0 ? defaultSpeech() : givenSpeech;
|
|
4424
4424
|
const theme = useDashTheme();
|
|
4425
|
-
const panels = _react.useMemo.call(void 0, () =>
|
|
4426
|
-
const groups = _react.useMemo.call(void 0, () =>
|
|
4425
|
+
const panels = _react.useMemo.call(void 0, () => _chunkIHOP6IEAjs.plainInputPanels.call(void 0, dashboard), [dashboard]);
|
|
4426
|
+
const groups = _react.useMemo.call(void 0, () => _chunkIHOP6IEAjs.inputGroups.call(void 0, dashboard), [dashboard]);
|
|
4427
4427
|
const saved = _react.useMemo.call(void 0, () => editing ? savedValues(panels, editing) : NO_DEFAULTS, [panels, editing]);
|
|
4428
4428
|
const [defaults, setDefaults] = _react.useState.call(void 0, {});
|
|
4429
4429
|
const [edits, setEdits] = _react.useState.call(void 0, {});
|
|
@@ -4434,7 +4434,7 @@ function InputForm({ dashboard, store, onSaved, choices = NO_CHOICES, header, ti
|
|
|
4434
4434
|
const [checked, setChecked] = _react.useState.call(void 0, false);
|
|
4435
4435
|
const [filled, setFilled] = _react.useState.call(void 0, {});
|
|
4436
4436
|
const [beforeFill, setBeforeFill] = _react.useState.call(void 0, null);
|
|
4437
|
-
const fillable = _react.useMemo.call(void 0, () =>
|
|
4437
|
+
const fillable = _react.useMemo.call(void 0, () => _chunkIHOP6IEAjs.fillForm.call(void 0, dashboard, choices), [dashboard, choices]);
|
|
4438
4438
|
_react.useEffect.call(void 0, () => {
|
|
4439
4439
|
let run = 0;
|
|
4440
4440
|
const load = async () => {
|
|
@@ -4442,12 +4442,12 @@ function InputForm({ dashboard, store, onSaved, choices = NO_CHOICES, header, ti
|
|
|
4442
4442
|
const next = {};
|
|
4443
4443
|
for (const p of panels) {
|
|
4444
4444
|
const d = p.options.default;
|
|
4445
|
-
if (d === "last") next[p.options.metric] =
|
|
4445
|
+
if (d === "last") next[p.options.metric] = _chunkIHOP6IEAjs.entryToInputValue.call(void 0, p, await store.latest(p.options.metric));
|
|
4446
4446
|
else if (d !== void 0) next[p.options.metric] = d;
|
|
4447
4447
|
}
|
|
4448
4448
|
const lastNext = {};
|
|
4449
4449
|
for (const g of groups) {
|
|
4450
|
-
const wanted = g.options.start === "last" ||
|
|
4450
|
+
const wanted = g.options.start === "last" || _chunkIHOP6IEAjs.groupFields.call(void 0, g).some((f) => f.options.default === "last");
|
|
4451
4451
|
if (wanted) lastNext[groupKey(g)] = await lastItems(store, g);
|
|
4452
4452
|
}
|
|
4453
4453
|
if (mine === run) {
|
|
@@ -4486,7 +4486,7 @@ function InputForm({ dashboard, store, onSaved, choices = NO_CHOICES, header, ti
|
|
|
4486
4486
|
speechLang,
|
|
4487
4487
|
problem: (m) => {
|
|
4488
4488
|
const p = panels.find((x) => x.options.metric === m);
|
|
4489
|
-
return p && (checked || m in edits) ?
|
|
4489
|
+
return p && (checked || m in edits) ? _chunkIHOP6IEAjs.inputProblem.call(void 0, p, value(m)) : void 0;
|
|
4490
4490
|
},
|
|
4491
4491
|
group: (g) => groupState(g, itemsOf(g), last[groupKey(g)], groupKey(g) in groupEdits, checked, (update) => {
|
|
4492
4492
|
setStatus(null);
|
|
@@ -4519,25 +4519,25 @@ function InputForm({ dashboard, store, onSaved, choices = NO_CHOICES, header, ti
|
|
|
4519
4519
|
const voice = useVoiceFill({ speech, lang: speechLang, filler, form: fillable, onFilled, onError: setStatus });
|
|
4520
4520
|
const dirty = Object.keys(edits).length + groups.reduce((n, g) => n + groupChanges(_nullishCoalesce(base[groupKey(g)], () => ( [])), groupEdits[groupKey(g)]), 0);
|
|
4521
4521
|
const recordedGroups = _react.useCallback.call(void 0,
|
|
4522
|
-
() => groups.filter((g) => editing || groupKey(g) in groupEdits ||
|
|
4522
|
+
() => groups.filter((g) => editing || groupKey(g) in groupEdits || _chunkIHOP6IEAjs.groupFields.call(void 0, g).some((f) => f.options.record === "always")),
|
|
4523
4523
|
[groups, editing, groupEdits]
|
|
4524
4524
|
);
|
|
4525
4525
|
const save = _react.useCallback.call(void 0, async () => {
|
|
4526
4526
|
const problems = panels.flatMap((p) => {
|
|
4527
|
-
const problem =
|
|
4527
|
+
const problem = _chunkIHOP6IEAjs.inputProblem.call(void 0, p, state.value(p.options.metric));
|
|
4528
4528
|
return problem ? [`${p.title || p.options.metric}: ${problem.toLowerCase()}`] : [];
|
|
4529
4529
|
});
|
|
4530
|
-
for (const g of recordedGroups()) problems.push(...
|
|
4530
|
+
for (const g of recordedGroups()) problems.push(..._chunkIHOP6IEAjs.groupProblems.call(void 0, g, itemsOf(g).map((i) => i.values)));
|
|
4531
4531
|
if (problems.length) {
|
|
4532
4532
|
setChecked(true);
|
|
4533
4533
|
setStatus(problems.length === 1 ? `Can\u2019t save. ${problems[0]}` : `Can\u2019t save: ${problems.length} fields need fixing`);
|
|
4534
4534
|
return;
|
|
4535
4535
|
}
|
|
4536
4536
|
const ts = _nullishCoalesce(_optionalChain([editing, 'optionalAccess', _300 => _300[0], 'optionalAccess', _301 => _301.ts]), () => ( (header !== void 0 ? _nullishCoalesce(_optionalChain([timestamp, 'optionalCall', _302 => _302()]), () => ( Date.now())) : Date.now() + offsetMs)));
|
|
4537
|
-
const saveId = _nullishCoalesce(_optionalChain([editing, 'optionalAccess', _303 => _303.find, 'call', _304 => _304((e) => e.save), 'optionalAccess', _305 => _305.save]), () => (
|
|
4537
|
+
const saveId = _nullishCoalesce(_optionalChain([editing, 'optionalAccess', _303 => _303.find, 'call', _304 => _304((e) => e.save), 'optionalAccess', _305 => _305.save]), () => ( _chunkIHOP6IEAjs.newSaveId.call(void 0, )));
|
|
4538
4538
|
const entries = [
|
|
4539
|
-
...panels.filter((p) => editing || p.options.metric in edits || p.options.record === "always").flatMap((p) =>
|
|
4540
|
-
...recordedGroups().flatMap((g) =>
|
|
4539
|
+
...panels.filter((p) => editing || p.options.metric in edits || p.options.record === "always").flatMap((p) => _chunkIHOP6IEAjs.toEntries.call(void 0, p, state.value(p.options.metric), ts, { save: saveId })),
|
|
4540
|
+
...recordedGroups().flatMap((g) => _chunkIHOP6IEAjs.groupToEntries.call(void 0, g, itemsOf(g).map((i) => i.values), ts, saveId))
|
|
4541
4541
|
];
|
|
4542
4542
|
if (!entries.length) return;
|
|
4543
4543
|
const extra = beforeSave ? await beforeSave(ts) : [];
|
|
@@ -4618,10 +4618,10 @@ function groupChanges(base, items) {
|
|
|
4618
4618
|
return edited + added + removed + moved;
|
|
4619
4619
|
}
|
|
4620
4620
|
function groupState(group, items, last, edited, showProblems, update) {
|
|
4621
|
-
const fields =
|
|
4621
|
+
const fields = _chunkIHOP6IEAjs.groupFields.call(void 0, group);
|
|
4622
4622
|
const { max } = group.options;
|
|
4623
4623
|
const fresh = (position) => ({ key: `n${nextItemKey++}`, values: freshItem(group, position, last), edited: [] });
|
|
4624
|
-
const filled = items.filter((i) => !
|
|
4624
|
+
const filled = items.filter((i) => !_chunkIHOP6IEAjs.isEmptyItem.call(void 0, group, i.values)).length;
|
|
4625
4625
|
const { min } = group.options;
|
|
4626
4626
|
return {
|
|
4627
4627
|
items: items.map((i) => ({ key: i.key, values: i.values, edited: i.edited })),
|
|
@@ -4646,8 +4646,8 @@ function groupState(group, items, last, edited, showProblems, update) {
|
|
|
4646
4646
|
fieldProblem: (index, metric) => {
|
|
4647
4647
|
const item = items[index];
|
|
4648
4648
|
const field = fields.find((f) => f.options.metric === metric);
|
|
4649
|
-
if (!item || !field ||
|
|
4650
|
-
return showProblems || item.edited.includes(metric) ?
|
|
4649
|
+
if (!item || !field || _chunkIHOP6IEAjs.isEmptyItem.call(void 0, group, item.values)) return void 0;
|
|
4650
|
+
return showProblems || item.edited.includes(metric) ? _chunkIHOP6IEAjs.inputProblem.call(void 0, field, _nullishCoalesce(item.values[metric], () => ( null))) : void 0;
|
|
4651
4651
|
}
|
|
4652
4652
|
};
|
|
4653
4653
|
}
|
|
@@ -4965,4 +4965,4 @@ var styles16 = _reactnative.StyleSheet.create({
|
|
|
4965
4965
|
|
|
4966
4966
|
|
|
4967
4967
|
|
|
4968
|
-
exports.ALL = _chunk24ABPZKOjs.ALL; exports.AUTHORING_GUIDE = _chunk24ABPZKOjs.AUTHORING_GUIDE; exports.BUNDLE_ACCEPT = _chunk24ABPZKOjs.BUNDLE_ACCEPT; exports.BUNDLE_TYPE = _chunk24ABPZKOjs.BUNDLE_TYPE; exports.CANVAS_GAP = _chunk24ABPZKOjs.CANVAS_GAP; exports.CANVAS_ROW_HEADER = _chunk24ABPZKOjs.CANVAS_ROW_HEADER; exports.Calendar = Calendar; exports.Chip = Chip; exports.ConfigLoader = _chunk24ABPZKOjs.ConfigLoader; exports.DASHBOARD_DS = _chunk24ABPZKOjs.DASHBOARD_DS; exports.DEFAULT_GAZETTEER = _chunk24ABPZKOjs.DEFAULT_GAZETTEER; exports.DICTATION_TYPES = _chunk24ABPZKOjs.DICTATION_TYPES; exports.DOCUMENT_GUIDE = _chunk24ABPZKOjs.DOCUMENT_GUIDE; exports.DashThemeProvider = DashThemeProvider; exports.DashboardProvider = DashboardProvider; exports.DashboardToolbar = DashboardToolbar; exports.DashboardView = DashboardView; exports.EDITABLE_VARIABLE_TYPES = _chunk24ABPZKOjs.EDITABLE_VARIABLE_TYPES; exports.EXAMPLE_TEMPLATE = _chunk24ABPZKOjs.EXAMPLE_TEMPLATE; exports.GRID_COLUMNS = _chunk24ABPZKOjs.GRID_COLUMNS; exports.GROUP_FIELD_TYPES = _chunk24ABPZKOjs.GROUP_FIELD_TYPES; exports.GrafanaClient = _chunk24ABPZKOjs.GrafanaClient; exports.GrafanaDataSource = _chunk24ABPZKOjs.GrafanaDataSource; exports.GrafanaError = _chunk24ABPZKOjs.GrafanaError; exports.HttpConfigFiles = _chunk24ABPZKOjs.HttpConfigFiles; exports.INPUT_GROUP = _chunk24ABPZKOjs.INPUT_GROUP; exports.INPUT_OPTION_KEYS = _chunk24ABPZKOjs.INPUT_OPTION_KEYS; exports.INPUT_TYPES = _chunk24ABPZKOjs.INPUT_TYPES; exports.InputForm = InputForm; exports.InputFormContext = InputFormContext; exports.LOCAL_DATASOURCE_TYPE = _chunk24ABPZKOjs.LOCAL_DATASOURCE_TYPE; exports.Legend = Legend; exports.LocalDataSource = _chunk24ABPZKOjs.LocalDataSource; exports.MANIFEST_VERSION = _chunk24ABPZKOjs.MANIFEST_VERSION; exports.MAPPING_TYPES = _chunk24ABPZKOjs.MAPPING_TYPES; exports.MemoryEntryStore = _chunk24ABPZKOjs.MemoryEntryStore; exports.NAMED_COLORS = _chunk24ABPZKOjs.NAMED_COLORS; exports.NoData = NoData; exports.OPTION_CATEGORIES = _chunk24ABPZKOjs.OPTION_CATEGORIES; exports.OVERRIDE_MATCHERS = _chunk24ABPZKOjs.OVERRIDE_MATCHERS; exports.PANEL_TYPES = _chunk24ABPZKOjs.PANEL_TYPES; exports.PanelCard = PanelCard; exports.REDUCER_LABELS = _chunk24ABPZKOjs.REDUCER_LABELS; exports.REFRESH_CHOICES = _chunk24ABPZKOjs.REFRESH_CHOICES; exports.RELATIVE_RANGES = _chunk24ABPZKOjs.RELATIVE_RANGES; exports.RenderBoundary = RenderBoundary; exports.SERIES_PALETTE = _chunk24ABPZKOjs.SERIES_PALETTE; exports.SNIPPET_VERSION = _chunk24ABPZKOjs.SNIPPET_VERSION; exports.SPECIAL_MATCHES = _chunk24ABPZKOjs.SPECIAL_MATCHES; exports.SaveConflictError = _chunk24ABPZKOjs.SaveConflictError; exports.TEMPLATE_VERSION = _chunk24ABPZKOjs.TEMPLATE_VERSION; exports.TIME_PRESETS = _chunk24ABPZKOjs.TIME_PRESETS; exports.UNIT_CHOICES = _chunk24ABPZKOjs.UNIT_CHOICES; exports.addTime = _chunk24ABPZKOjs.addTime; exports.appSchema = _chunk24ABPZKOjs.appSchema; exports.applyDashboardLink = _chunk24ABPZKOjs.applyDashboardLink; exports.applyJsonEdits = _chunk24ABPZKOjs.applyJsonEdits; exports.applyTemplate = _chunk24ABPZKOjs.applyTemplate; exports.applyTransformations = _chunk24ABPZKOjs.applyTransformations; exports.assembleBundle = _chunk24ABPZKOjs.assembleBundle; exports.assembleFromResponse = _chunk24ABPZKOjs.assembleFromResponse; exports.buildFrames = _chunk24ABPZKOjs.buildFrames; exports.bundleFromFiles = _chunk24ABPZKOjs.bundleFromFiles; exports.bundleRoot = _chunk24ABPZKOjs.bundleRoot; exports.calculateInterval = _chunk24ABPZKOjs.calculateInterval; exports.checkFiles = _chunk24ABPZKOjs.checkFiles; exports.choicesOf = _chunk24ABPZKOjs.choicesOf; exports.cleanDashboard = _chunk24ABPZKOjs.cleanDashboard; exports.cleanPanelOptions = _chunk24ABPZKOjs.cleanPanelOptions; exports.collapseRow = _chunk24ABPZKOjs.collapseRow; exports.compactGrid = _chunk24ABPZKOjs.compactGrid; exports.copyPanels = _chunk24ABPZKOjs.copyPanels; exports.darkTheme = darkTheme; exports.dashboardSchema = _chunk24ABPZKOjs.dashboardSchema; exports.dashboardSchemaIssues = _chunk24ABPZKOjs.dashboardSchemaIssues; exports.dashboardSourceIds = _chunk24ABPZKOjs.dashboardSourceIds; exports.defaultFetchJson = _chunk24ABPZKOjs.defaultFetchJson; exports.describeRange = _chunk24ABPZKOjs.describeRange; exports.dictationHints = _chunk24ABPZKOjs.dictationHints; exports.diffJson = _chunk24ABPZKOjs.diffJson; exports.documentChanges = _chunk24ABPZKOjs.documentChanges; exports.documentIdFor = _chunk24ABPZKOjs.documentIdFor; exports.documentKind = _chunk24ABPZKOjs.documentKind; exports.documentPrompt = _chunk24ABPZKOjs.documentPrompt; exports.documentUses = _chunk24ABPZKOjs.documentUses; exports.dropTarget = _chunk24ABPZKOjs.dropTarget; exports.duplicatePanel = _chunk24ABPZKOjs.duplicatePanel; exports.entriesSavedWith = _chunk24ABPZKOjs.entriesSavedWith; exports.entriesToItems = _chunk24ABPZKOjs.entriesToItems; exports.entryToInputValue = _chunk24ABPZKOjs.entryToInputValue; exports.expandRow = _chunk24ABPZKOjs.expandRow; exports.fetchBundle = _chunk24ABPZKOjs.fetchBundle; exports.fetchJsonWithToken = _chunk24ABPZKOjs.fetchJsonWithToken; exports.fieldDisplayName = _chunk24ABPZKOjs.fieldDisplayName; exports.fieldMatches = _chunk24ABPZKOjs.fieldMatches; exports.fillForm = _chunk24ABPZKOjs.fillForm; exports.fillHints = _chunk24ABPZKOjs.fillHints; exports.fillPrompt = _chunk24ABPZKOjs.fillPrompt; exports.fillSchema = _chunk24ABPZKOjs.fillSchema; exports.fixDocumentPrompt = _chunk24ABPZKOjs.fixDocumentPrompt; exports.fixTemplatePrompt = _chunk24ABPZKOjs.fixTemplatePrompt; exports.formatClock = _chunk24ABPZKOjs.formatClock; exports.formatDisplay = _chunk24ABPZKOjs.formatDisplay; exports.formatDuration = _chunk24ABPZKOjs.formatDuration; exports.formatJsonText = _chunk24ABPZKOjs.formatJsonText; exports.formatLocalDateTime = _chunk24ABPZKOjs.formatLocalDateTime; exports.formatValue = _chunk24ABPZKOjs.formatValue; exports.frameLength = _chunk24ABPZKOjs.frameLength; exports.framesToOptions = _chunk24ABPZKOjs.framesToOptions; exports.fromWire = _chunk24ABPZKOjs.fromWire; exports.getPath = _chunk24ABPZKOjs.getPath; exports.gridOffsetPx = _chunk24ABPZKOjs.gridOffsetPx; exports.gridUnitsToPx = _chunk24ABPZKOjs.gridUnitsToPx; exports.groupField = _chunk24ABPZKOjs.groupField; exports.groupFields = _chunk24ABPZKOjs.groupFields; exports.groupKey = groupKey; exports.groupProblems = _chunk24ABPZKOjs.groupProblems; exports.groupToEntries = _chunk24ABPZKOjs.groupToEntries; exports.httpFetchJson = _chunk24ABPZKOjs.httpFetchJson; exports.initialVariableValues = _chunk24ABPZKOjs.initialVariableValues; exports.inputGroups = _chunk24ABPZKOjs.inputGroups; exports.inputPanels = _chunk24ABPZKOjs.inputPanels; exports.inputProblem = _chunk24ABPZKOjs.inputProblem; exports.insertPanel = _chunk24ABPZKOjs.insertPanel; exports.interpolate = _chunk24ABPZKOjs.interpolate; exports.interpolateDeep = _chunk24ABPZKOjs.interpolateDeep; exports.isBundleResponse = _chunk24ABPZKOjs.isBundleResponse; exports.isEditableVariableType = _chunk24ABPZKOjs.isEditableVariableType; exports.isEmptyItem = _chunk24ABPZKOjs.isEmptyItem; exports.isFormPanelType = _chunk24ABPZKOjs.isFormPanelType; exports.isInputGroup = _chunk24ABPZKOjs.isInputGroup; exports.isInputPanel = _chunk24ABPZKOjs.isInputPanel; exports.isInputType = _chunk24ABPZKOjs.isInputType; exports.isLocalDatasource = _chunk24ABPZKOjs.isLocalDatasource; exports.isReducer = _chunk24ABPZKOjs.isReducer; exports.isRow = _chunk24ABPZKOjs.isRow; exports.isSqlDatasource = _chunk24ABPZKOjs.isSqlDatasource; exports.jsonFromAnswer = _chunk24ABPZKOjs.jsonFromAnswer; exports.layoutCanvas = _chunk24ABPZKOjs.layoutCanvas; exports.layoutDashboard = _chunk24ABPZKOjs.layoutDashboard; exports.lightTheme = lightTheme; exports.lineColumn = _chunk24ABPZKOjs.lineColumn; exports.loadGazetteer = _chunk24ABPZKOjs.loadGazetteer; exports.locate = _chunk24ABPZKOjs.locate; exports.makeTemplate = _chunk24ABPZKOjs.makeTemplate; exports.manifestSchemaIssues = _chunk24ABPZKOjs.manifestSchemaIssues; exports.mappedResult = _chunk24ABPZKOjs.mappedResult; exports.mappingProblem = _chunk24ABPZKOjs.mappingProblem; exports.mappingRow = _chunk24ABPZKOjs.mappingRow; exports.mappingRows = _chunk24ABPZKOjs.mappingRows; exports.matchChoices = _chunk24ABPZKOjs.matchChoices; exports.metricChanges = _chunk24ABPZKOjs.metricChanges; exports.modelFiller = _chunk24ABPZKOjs.modelFiller; exports.movePanel = _chunk24ABPZKOjs.movePanel; exports.newDocument = _chunk24ABPZKOjs.newDocument; exports.newPanel = _chunk24ABPZKOjs.newPanel; exports.newSaveId = _chunk24ABPZKOjs.newSaveId; exports.newVariable = _chunk24ABPZKOjs.newVariable; exports.nextPanelId = _chunk24ABPZKOjs.nextPanelId; exports.normalizeRef = _chunk24ABPZKOjs.normalizeRef; exports.numberFields = _chunk24ABPZKOjs.numberFields; exports.optionValue = _chunk24ABPZKOjs.optionValue; exports.overrideProperties = _chunk24ABPZKOjs.overrideProperties; exports.panelEdits = _chunk24ABPZKOjs.panelEdits; exports.panelHasQueries = _chunk24ABPZKOjs.panelHasQueries; exports.panelKey = _chunk24ABPZKOjs.panelKey; exports.panelMetrics = _chunk24ABPZKOjs.panelMetrics; exports.panelOptions = _chunk24ABPZKOjs.panelOptions; exports.panelOverrides = _chunk24ABPZKOjs.panelOverrides; exports.panelSize = _chunk24ABPZKOjs.panelSize; exports.panelSpan = _chunk24ABPZKOjs.panelSpan; exports.parseClockDigits = _chunk24ABPZKOjs.parseClockDigits; exports.parseDashboardLink = _chunk24ABPZKOjs.parseDashboardLink; exports.parseDuration = _chunk24ABPZKOjs.parseDuration; exports.parseFillAnswer = _chunk24ABPZKOjs.parseFillAnswer; exports.parseGazetteer = _chunk24ABPZKOjs.parseGazetteer; exports.parseJsonText = _chunk24ABPZKOjs.parseJsonText; exports.parseLocalDateTime = _chunk24ABPZKOjs.parseLocalDateTime; exports.parseRange = _chunk24ABPZKOjs.parseRange; exports.parseSnippet = _chunk24ABPZKOjs.parseSnippet; exports.parseSpokenDuration = _chunk24ABPZKOjs.parseSpokenDuration; exports.parseSpokenNumber = _chunk24ABPZKOjs.parseSpokenNumber; exports.parseSpokenYesNo = _chunk24ABPZKOjs.parseSpokenYesNo; exports.parseTemplate = _chunk24ABPZKOjs.parseTemplate; exports.parseTime = _chunk24ABPZKOjs.parseTime; exports.pasteSnippet = _chunk24ABPZKOjs.pasteSnippet; exports.placePanel = _chunk24ABPZKOjs.placePanel; exports.plainInputPanels = _chunk24ABPZKOjs.plainInputPanels; exports.pointerToPath = _chunk24ABPZKOjs.pointerToPath; exports.prepareDashboard = _chunk24ABPZKOjs.prepareDashboard; exports.previewPaste = _chunk24ABPZKOjs.previewPaste; exports.queryPanel = _chunk24ABPZKOjs.queryPanel; exports.queryParam = _chunk24ABPZKOjs.queryParam; exports.readConfigFiles = _chunk24ABPZKOjs.readConfigFiles; exports.readDocumentAnswer = _chunk24ABPZKOjs.readDocumentAnswer; exports.readFill = _chunk24ABPZKOjs.readFill; exports.readTemplateAnswer = _chunk24ABPZKOjs.readTemplateAnswer; exports.readingOrder = _chunk24ABPZKOjs.readingOrder; exports.reduce = _chunk24ABPZKOjs.reduce; exports.refineOptions = _chunk24ABPZKOjs.refineOptions; exports.refreshedVariables = _chunk24ABPZKOjs.refreshedVariables; exports.registerPanel = registerPanel; exports.removeDocumentFromManifest = _chunk24ABPZKOjs.removeDocumentFromManifest; exports.removePanel = _chunk24ABPZKOjs.removePanel; exports.renameDocumentInManifest = _chunk24ABPZKOjs.renameDocumentInManifest; exports.renameMetrics = _chunk24ABPZKOjs.renameMetrics; exports.renameVariableInPanels = _chunk24ABPZKOjs.renameVariableInPanels; exports.repack = _chunk24ABPZKOjs.repack; exports.repeatOptions = _chunk24ABPZKOjs.repeatOptions; exports.requiredManifestVersion = _chunk24ABPZKOjs.requiredManifestVersion; exports.resizePanel = _chunk24ABPZKOjs.resizePanel; exports.resolveColor = _chunk24ABPZKOjs.resolveColor; exports.resolveFieldConfig = _chunk24ABPZKOjs.resolveFieldConfig; exports.resolveLinks = _chunk24ABPZKOjs.resolveLinks; exports.resolveTimezone = _chunk24ABPZKOjs.resolveTimezone; exports.resolveUrl = _chunk24ABPZKOjs.resolveUrl; exports.resolveVariables = _chunk24ABPZKOjs.resolveVariables; exports.revalidateBundle = _chunk24ABPZKOjs.revalidateBundle; exports.rowsToMappings = _chunk24ABPZKOjs.rowsToMappings; exports.ruleFill = _chunk24ABPZKOjs.ruleFill; exports.ruleFiller = _chunk24ABPZKOjs.ruleFiller; exports.sameSave = _chunk24ABPZKOjs.sameSave; exports.sampleEntries = _chunk24ABPZKOjs.sampleEntries; exports.screenDocuments = _chunk24ABPZKOjs.screenDocuments; exports.screenOfType = _chunk24ABPZKOjs.screenOfType; exports.selectValue = _chunk24ABPZKOjs.selectValue; exports.seriesColor = _chunk24ABPZKOjs.seriesColor; exports.setHiddenOnPhones = _chunk24ABPZKOjs.setHiddenOnPhones; exports.setJsonValue = _chunk24ABPZKOjs.setJsonValue; exports.setOption = _chunk24ABPZKOjs.setOption; exports.setOptionValue = _chunk24ABPZKOjs.setOptionValue; exports.setOverrides = _chunk24ABPZKOjs.setOverrides; exports.settleLayout = _chunk24ABPZKOjs.settleLayout; exports.snapToGrid = _chunk24ABPZKOjs.snapToGrid; exports.splitPath = _chunk24ABPZKOjs.splitPath; exports.spokenValue = _chunk24ABPZKOjs.spokenValue; exports.startOf = _chunk24ABPZKOjs.startOf; exports.stringifyCompact = _chunk24ABPZKOjs.stringifyCompact; exports.tabIdFor = _chunk24ABPZKOjs.tabIdFor; exports.takesDictation = _chunk24ABPZKOjs.takesDictation; exports.templateNeeds = _chunk24ABPZKOjs.templateNeeds; exports.templatePrompt = _chunk24ABPZKOjs.templatePrompt; exports.textSuggestions = _chunk24ABPZKOjs.textSuggestions; exports.thresholdStep = _chunk24ABPZKOjs.thresholdStep; exports.timeExprError = _chunk24ABPZKOjs.timeExprError; exports.timeField = _chunk24ABPZKOjs.timeField; exports.toEntries = _chunk24ABPZKOjs.toEntries; exports.toMillis = _chunk24ABPZKOjs.toMillis; exports.toSeries = _chunk24ABPZKOjs.toSeries; exports.toXYSeries = _chunk24ABPZKOjs.toXYSeries; exports.uniqueNames = _chunk24ABPZKOjs.uniqueNames; exports.useDashTheme = useDashTheme; exports.useDashboard = useDashboard; exports.useInputForm = useInputForm; exports.usePanelData = usePanelData; exports.validateBundle = _chunk24ABPZKOjs.validateBundle; exports.validateDashboard = _chunk24ABPZKOjs.validateDashboard; exports.validateManifest = _chunk24ABPZKOjs.validateManifest; exports.valueColor = _chunk24ABPZKOjs.valueColor; exports.valueText = _chunk24ABPZKOjs.valueText; exports.variableDependents = _chunk24ABPZKOjs.variableDependents; exports.variableInfo = _chunk24ABPZKOjs.variableInfo; exports.variableNameError = _chunk24ABPZKOjs.variableNameError; exports.variableOptions = _chunk24ABPZKOjs.variableOptions; exports.variableOrder = _chunk24ABPZKOjs.variableOrder; exports.variableReferences = _chunk24ABPZKOjs.variableReferences; exports.variableUses = _chunk24ABPZKOjs.variableUses; exports.variableWithCurrent = _chunk24ABPZKOjs.variableWithCurrent; exports.variableWithFlags = _chunk24ABPZKOjs.variableWithFlags; exports.variableWithQuery = _chunk24ABPZKOjs.variableWithQuery; exports.variableWithType = _chunk24ABPZKOjs.variableWithType; exports.visibleVariables = _chunk24ABPZKOjs.visibleVariables; exports.webSpeechRecognizer = webSpeechRecognizer; exports.zoomRange = _chunk24ABPZKOjs.zoomRange;
|
|
4968
|
+
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.Calendar = Calendar; exports.Chip = Chip; 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.DashThemeProvider = DashThemeProvider; exports.DashboardProvider = DashboardProvider; exports.DashboardToolbar = DashboardToolbar; exports.DashboardView = DashboardView; 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.InputForm = InputForm; exports.InputFormContext = InputFormContext; exports.LOCAL_DATASOURCE_TYPE = _chunkIHOP6IEAjs.LOCAL_DATASOURCE_TYPE; exports.Legend = Legend; 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.NoData = NoData; exports.OPTION_CATEGORIES = _chunkIHOP6IEAjs.OPTION_CATEGORIES; exports.OVERRIDE_MATCHERS = _chunkIHOP6IEAjs.OVERRIDE_MATCHERS; exports.PANEL_TYPES = _chunkIHOP6IEAjs.PANEL_TYPES; exports.PanelCard = PanelCard; exports.REDUCER_LABELS = _chunkIHOP6IEAjs.REDUCER_LABELS; exports.REFRESH_CHOICES = _chunkIHOP6IEAjs.REFRESH_CHOICES; exports.RELATIVE_RANGES = _chunkIHOP6IEAjs.RELATIVE_RANGES; exports.RenderBoundary = RenderBoundary; 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.darkTheme = darkTheme; 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.groupKey = groupKey; 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.lightTheme = lightTheme; 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.registerPanel = registerPanel; 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.useDashTheme = useDashTheme; exports.useDashboard = useDashboard; exports.useInputForm = useInputForm; exports.usePanelData = usePanelData; 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.webSpeechRecognizer = webSpeechRecognizer; exports.zoomRange = _chunkIHOP6IEAjs.zoomRange;
|