@perses-dev/components 0.55.1 → 0.56.0-beta.1
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/AlignSelector/AlignSelector.js +115 -25
- package/dist/AlignSelector/AlignSelector.js.map +1 -1
- package/dist/CodeEditor/CodeEditor.d.ts +19 -0
- package/dist/CodeEditor/CodeEditor.d.ts.map +1 -0
- package/dist/CodeEditor/CodeEditor.js +122 -0
- package/dist/CodeEditor/CodeEditor.js.map +1 -0
- package/dist/ColorPicker/ColorPicker.js +153 -61
- package/dist/ColorPicker/ColorPicker.js.map +1 -1
- package/dist/ColorPicker/OptionsColorPicker.js +147 -52
- package/dist/ColorPicker/OptionsColorPicker.js.map +1 -1
- package/dist/ContentWithLegend/ContentWithLegend.js +144 -41
- package/dist/ContentWithLegend/ContentWithLegend.js.map +1 -1
- package/dist/DensitySelector/DensitySelector.js +53 -20
- package/dist/DensitySelector/DensitySelector.js.map +1 -1
- package/dist/Dialog/Dialog.d.ts +3 -2
- package/dist/Dialog/Dialog.d.ts.map +1 -1
- package/dist/Dialog/Dialog.js +202 -49
- package/dist/Dialog/Dialog.js.map +1 -1
- package/dist/Dialog/DiscardChangesConfirmationDialog.js +79 -27
- package/dist/Dialog/DiscardChangesConfirmationDialog.js.map +1 -1
- package/dist/DragAndDrop/DragAndDropList.js +184 -113
- package/dist/DragAndDrop/DragAndDropList.js.map +1 -1
- package/dist/DragAndDrop/DragButton.js +131 -52
- package/dist/DragAndDrop/DragButton.js.map +1 -1
- package/dist/DragAndDrop/DropIndicator.js +51 -26
- package/dist/DragAndDrop/DropIndicator.js.map +1 -1
- package/dist/Drawer/Drawer.js +75 -15
- package/dist/Drawer/Drawer.js.map +1 -1
- package/dist/EChart/EChart.js +179 -90
- package/dist/EChart/EChart.js.map +1 -1
- package/dist/ErrorAlert.js +14 -4
- package/dist/ErrorAlert.js.map +1 -1
- package/dist/ExemplarMetadata/ExemplarMetadataTooltip.js +463 -190
- package/dist/ExemplarMetadata/ExemplarMetadataTooltip.js.map +1 -1
- package/dist/FontSizeSelector/FontSizeSelector.js +82 -50
- package/dist/FontSizeSelector/FontSizeSelector.js.map +1 -1
- package/dist/FormEditor/FormActions.js +88 -14
- package/dist/FormEditor/FormActions.js.map +1 -1
- package/dist/FormatControls/FormatControls.js +246 -99
- package/dist/FormatControls/FormatControls.js.map +1 -1
- package/dist/FormatControls/UnitSelector.js +90 -25
- package/dist/FormatControls/UnitSelector.js.map +1 -1
- package/dist/InfoTooltip/InfoTooltip.js +105 -42
- package/dist/InfoTooltip/InfoTooltip.js.map +1 -1
- package/dist/JSONEditor.d.ts +2 -6
- package/dist/JSONEditor.d.ts.map +1 -1
- package/dist/JSONEditor.js +24 -37
- package/dist/JSONEditor.js.map +1 -1
- package/dist/Legend/CompactLegend.js +77 -27
- package/dist/Legend/CompactLegend.js.map +1 -1
- package/dist/Legend/Legend.js +184 -82
- package/dist/Legend/Legend.js.map +1 -1
- package/dist/Legend/LegendColorBadge.js +54 -9
- package/dist/Legend/LegendColorBadge.js.map +1 -1
- package/dist/Legend/ListLegend.js +46 -16
- package/dist/Legend/ListLegend.js.map +1 -1
- package/dist/Legend/ListLegendItem.js +184 -48
- package/dist/Legend/ListLegendItem.js.map +1 -1
- package/dist/Legend/TableLegend.d.ts.map +1 -1
- package/dist/Legend/TableLegend.js +90 -48
- package/dist/Legend/TableLegend.js.map +1 -1
- package/dist/Legend/legend-model.d.ts +2 -2
- package/dist/Legend/legend-model.d.ts.map +1 -1
- package/dist/Legend/legend-model.js.map +1 -1
- package/dist/LinksEditor/LinkEditorForm.js +148 -67
- package/dist/LinksEditor/LinkEditorForm.js.map +1 -1
- package/dist/ModeSelector/ModeSelector.js +61 -19
- package/dist/ModeSelector/ModeSelector.js.map +1 -1
- package/dist/OptionsEditorLayout/OptionsEditorColumn.js +20 -9
- package/dist/OptionsEditorLayout/OptionsEditorColumn.js.map +1 -1
- package/dist/OptionsEditorLayout/OptionsEditorControl.js +130 -54
- package/dist/OptionsEditorLayout/OptionsEditorControl.js.map +1 -1
- package/dist/OptionsEditorLayout/OptionsEditorGrid.js +17 -6
- package/dist/OptionsEditorLayout/OptionsEditorGrid.js.map +1 -1
- package/dist/OptionsEditorLayout/OptionsEditorGroup.js +76 -28
- package/dist/OptionsEditorLayout/OptionsEditorGroup.js.map +1 -1
- package/dist/Overlay/Overlay.js +71 -27
- package/dist/Overlay/Overlay.js.map +1 -1
- package/dist/RefreshIntervalPicker/RefreshIntervalPicker.js +96 -38
- package/dist/RefreshIntervalPicker/RefreshIntervalPicker.js.map +1 -1
- package/dist/RepeatGrid/RepeatGrid.js +117 -45
- package/dist/RepeatGrid/RepeatGrid.js.map +1 -1
- package/dist/SettingsAutocomplete/SettingsAutocomplete.js +99 -38
- package/dist/SettingsAutocomplete/SettingsAutocomplete.js.map +1 -1
- package/dist/SortSelector/SortSelector.js +51 -18
- package/dist/SortSelector/SortSelector.js.map +1 -1
- package/dist/SortSelector/SortSelectorButtons.js +109 -25
- package/dist/SortSelector/SortSelectorButtons.js.map +1 -1
- package/dist/Table/InnerTable.js +46 -15
- package/dist/Table/InnerTable.js.map +1 -1
- package/dist/Table/Table.d.ts +3 -1
- package/dist/Table/Table.d.ts.map +1 -1
- package/dist/Table/Table.js +410 -158
- package/dist/Table/Table.js.map +1 -1
- package/dist/Table/TableBody.js +15 -4
- package/dist/Table/TableBody.js.map +1 -1
- package/dist/Table/TableCell.js +294 -107
- package/dist/Table/TableCell.js.map +1 -1
- package/dist/Table/TableCheckbox.js +101 -32
- package/dist/Table/TableCheckbox.js.map +1 -1
- package/dist/Table/TableFoot.js +15 -4
- package/dist/Table/TableFoot.js.map +1 -1
- package/dist/Table/TableHead.js +15 -4
- package/dist/Table/TableHead.js.map +1 -1
- package/dist/Table/TableHeaderCell.js +119 -62
- package/dist/Table/TableHeaderCell.js.map +1 -1
- package/dist/Table/TableRow.js +33 -9
- package/dist/Table/TableRow.js.map +1 -1
- package/dist/Table/TableToolbar.d.ts +5 -4
- package/dist/Table/TableToolbar.d.ts.map +1 -1
- package/dist/Table/TableToolbar.js +172 -100
- package/dist/Table/TableToolbar.js.map +1 -1
- package/dist/Table/VirtualizedTable.d.ts +11 -11
- package/dist/Table/VirtualizedTable.d.ts.map +1 -1
- package/dist/Table/VirtualizedTable.js +442 -204
- package/dist/Table/VirtualizedTable.js.map +1 -1
- package/dist/Table/VirtualizedTableContainer.js +27 -7
- package/dist/Table/VirtualizedTableContainer.js.map +1 -1
- package/dist/Table/hooks/useFuzzySearch.d.ts +6 -5
- package/dist/Table/hooks/useFuzzySearch.d.ts.map +1 -1
- package/dist/Table/hooks/useFuzzySearch.js +57 -32
- package/dist/Table/hooks/useFuzzySearch.js.map +1 -1
- package/dist/Table/hooks/useTableKeyboardNav.js +115 -74
- package/dist/Table/hooks/useTableKeyboardNav.js.map +1 -1
- package/dist/Table/hooks/useVirtualizedTableKeyboardNav.d.ts +1 -1
- package/dist/Table/hooks/useVirtualizedTableKeyboardNav.d.ts.map +1 -1
- package/dist/Table/hooks/useVirtualizedTableKeyboardNav.js +86 -69
- package/dist/Table/hooks/useVirtualizedTableKeyboardNav.js.map +1 -1
- package/dist/Table/model/table-model.d.ts +44 -15
- package/dist/Table/model/table-model.d.ts.map +1 -1
- package/dist/Table/model/table-model.js +33 -1
- package/dist/Table/model/table-model.js.map +1 -1
- package/dist/ThresholdsEditor/ThresholdInput.js +137 -47
- package/dist/ThresholdsEditor/ThresholdInput.js.map +1 -1
- package/dist/ThresholdsEditor/ThresholdsEditor.js +341 -174
- package/dist/ThresholdsEditor/ThresholdsEditor.js.map +1 -1
- package/dist/TimeRangeSelector/DateTimeRangePicker.js +368 -162
- package/dist/TimeRangeSelector/DateTimeRangePicker.js.map +1 -1
- package/dist/TimeRangeSelector/TimeRangeSelector.js +580 -210
- package/dist/TimeRangeSelector/TimeRangeSelector.js.map +1 -1
- package/dist/TimeSeriesTooltip/SeriesInfo.js +189 -65
- package/dist/TimeSeriesTooltip/SeriesInfo.js.map +1 -1
- package/dist/TimeSeriesTooltip/SeriesLabelsStack.js +168 -78
- package/dist/TimeSeriesTooltip/SeriesLabelsStack.js.map +1 -1
- package/dist/TimeSeriesTooltip/SeriesMarker.js +38 -11
- package/dist/TimeSeriesTooltip/SeriesMarker.js.map +1 -1
- package/dist/TimeSeriesTooltip/TimeChartTooltip.js +229 -72
- package/dist/TimeSeriesTooltip/TimeChartTooltip.js.map +1 -1
- package/dist/TimeSeriesTooltip/TooltipContent.js +73 -27
- package/dist/TimeSeriesTooltip/TooltipContent.js.map +1 -1
- package/dist/TimeSeriesTooltip/TooltipHeader.js +221 -121
- package/dist/TimeSeriesTooltip/TooltipHeader.js.map +1 -1
- package/dist/TimeSeriesTooltip/tooltip-model.js +44 -38
- package/dist/TimeSeriesTooltip/tooltip-model.js.map +1 -1
- package/dist/TimeZoneSelector.js +131 -36
- package/dist/TimeZoneSelector.js.map +1 -1
- package/dist/ToolbarIconButton/ToolbarIconButton.js +18 -7
- package/dist/ToolbarIconButton/ToolbarIconButton.js.map +1 -1
- package/dist/TransformsEditor/TransformEditor.js +830 -334
- package/dist/TransformsEditor/TransformEditor.js.map +1 -1
- package/dist/TransformsEditor/TransformEditorContainer.js +252 -90
- package/dist/TransformsEditor/TransformEditorContainer.js.map +1 -1
- package/dist/TransformsEditor/TransformsEditor.js +170 -59
- package/dist/TransformsEditor/TransformsEditor.js.map +1 -1
- package/dist/ValueMappingEditor/ValueMappingEditor.js +800 -322
- package/dist/ValueMappingEditor/ValueMappingEditor.js.map +1 -1
- package/dist/ValueMappingEditor/ValueMappingsEditor.js +218 -91
- package/dist/ValueMappingEditor/ValueMappingsEditor.js.map +1 -1
- package/dist/YAMLEditor/YAMLEditor.d.ts +12 -0
- package/dist/YAMLEditor/YAMLEditor.d.ts.map +1 -0
- package/dist/YAMLEditor/YAMLEditor.js +41 -0
- package/dist/YAMLEditor/YAMLEditor.js.map +1 -0
- package/dist/YAMLEditor/index.d.ts +2 -0
- package/dist/YAMLEditor/index.d.ts.map +1 -0
- package/dist/YAMLEditor/index.js +15 -0
- package/dist/YAMLEditor/index.js.map +1 -0
- package/dist/YAMLEditor/yaml-utils.d.ts +11 -0
- package/dist/YAMLEditor/yaml-utils.d.ts.map +1 -0
- package/dist/YAMLEditor/yaml-utils.js +52 -0
- package/dist/YAMLEditor/yaml-utils.js.map +1 -0
- package/dist/YAxisLabel.js +64 -20
- package/dist/YAxisLabel.js.map +1 -1
- package/dist/context/ChartsProvider.js +32 -16
- package/dist/context/ChartsProvider.js.map +1 -1
- package/dist/context/ItemActionsProvider.js +110 -61
- package/dist/context/ItemActionsProvider.js.map +1 -1
- package/dist/context/SelectionProvider.js +170 -66
- package/dist/context/SelectionProvider.js.map +1 -1
- package/dist/context/SnackbarProvider.js +101 -44
- package/dist/context/SnackbarProvider.js.map +1 -1
- package/dist/context/TimeZoneProvider.js +35 -14
- package/dist/context/TimeZoneProvider.js.map +1 -1
- package/dist/controls/TextField.js +86 -25
- package/dist/controls/TextField.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/utils/browser-storage.js +64 -34
- package/dist/utils/browser-storage.js.map +1 -1
- package/package.json +15 -8
|
@@ -11,364 +11,842 @@
|
|
|
11
11
|
// See the License for the specific language governing permissions and
|
|
12
12
|
// limitations under the License.
|
|
13
13
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
|
+
import { c as _c } from "react-compiler-runtime";
|
|
14
15
|
import { IconButton, MenuItem, Stack, TextField, Tooltip, Typography, Grid2 as Grid } from "@mui/material";
|
|
15
16
|
import DeleteIcon from "mdi-material-ui/DeleteOutline";
|
|
16
17
|
import PlusIcon from "mdi-material-ui/Plus";
|
|
17
18
|
import { OptionsColorPicker } from "../ColorPicker/OptionsColorPicker.js";
|
|
18
|
-
const ConditionEditor = (
|
|
19
|
+
const ConditionEditor = (t0)=>{
|
|
20
|
+
const $ = _c(53);
|
|
21
|
+
let mapping;
|
|
22
|
+
let onChange;
|
|
23
|
+
let props;
|
|
24
|
+
if ($[0] !== t0) {
|
|
25
|
+
({ mapping, onChange, ...props } = t0);
|
|
26
|
+
$[0] = t0;
|
|
27
|
+
$[1] = mapping;
|
|
28
|
+
$[2] = onChange;
|
|
29
|
+
$[3] = props;
|
|
30
|
+
} else {
|
|
31
|
+
mapping = $[1];
|
|
32
|
+
onChange = $[2];
|
|
33
|
+
props = $[3];
|
|
34
|
+
}
|
|
19
35
|
switch(mapping.kind){
|
|
20
|
-
case
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
label: "Value",
|
|
27
|
-
placeholder: "Exact value",
|
|
28
|
-
value: mapping.spec?.value ?? '',
|
|
29
|
-
onChange: (e)=>onChange({
|
|
36
|
+
case "Value":
|
|
37
|
+
{
|
|
38
|
+
const t1 = mapping.spec?.value ?? "";
|
|
39
|
+
let t2;
|
|
40
|
+
if ($[4] !== mapping || $[5] !== onChange) {
|
|
41
|
+
t2 = (e_3)=>onChange({
|
|
30
42
|
...mapping,
|
|
31
43
|
spec: {
|
|
32
44
|
...mapping.spec,
|
|
33
|
-
value:
|
|
45
|
+
value: e_3.target.value
|
|
34
46
|
}
|
|
35
|
-
})
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
47
|
+
});
|
|
48
|
+
$[4] = mapping;
|
|
49
|
+
$[5] = onChange;
|
|
50
|
+
$[6] = t2;
|
|
51
|
+
} else {
|
|
52
|
+
t2 = $[6];
|
|
53
|
+
}
|
|
54
|
+
let t3;
|
|
55
|
+
if ($[7] !== t1 || $[8] !== t2) {
|
|
56
|
+
t3 = /*#__PURE__*/ _jsx(TextField, {
|
|
57
|
+
label: "Value",
|
|
58
|
+
placeholder: "Exact value",
|
|
59
|
+
value: t1,
|
|
60
|
+
onChange: t2,
|
|
61
|
+
fullWidth: true
|
|
62
|
+
});
|
|
63
|
+
$[7] = t1;
|
|
64
|
+
$[8] = t2;
|
|
65
|
+
$[9] = t3;
|
|
66
|
+
} else {
|
|
67
|
+
t3 = $[9];
|
|
68
|
+
}
|
|
69
|
+
let t4;
|
|
70
|
+
if ($[10] !== props || $[11] !== t3) {
|
|
71
|
+
t4 = /*#__PURE__*/ _jsx(Stack, {
|
|
72
|
+
gap: 1,
|
|
73
|
+
direction: "row",
|
|
74
|
+
...props,
|
|
75
|
+
children: t3
|
|
76
|
+
});
|
|
77
|
+
$[10] = props;
|
|
78
|
+
$[11] = t3;
|
|
79
|
+
$[12] = t4;
|
|
80
|
+
} else {
|
|
81
|
+
t4 = $[12];
|
|
82
|
+
}
|
|
83
|
+
return t4;
|
|
84
|
+
}
|
|
85
|
+
case "Range":
|
|
86
|
+
{
|
|
87
|
+
const t1 = mapping.spec?.from ?? "";
|
|
88
|
+
let t2;
|
|
89
|
+
if ($[13] !== mapping || $[14] !== onChange) {
|
|
90
|
+
t2 = (e_1)=>onChange({
|
|
91
|
+
...mapping,
|
|
92
|
+
spec: {
|
|
93
|
+
...mapping.spec,
|
|
94
|
+
from: e_1.target.value === "" ? undefined : +e_1.target.value
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
$[13] = mapping;
|
|
98
|
+
$[14] = onChange;
|
|
99
|
+
$[15] = t2;
|
|
100
|
+
} else {
|
|
101
|
+
t2 = $[15];
|
|
102
|
+
}
|
|
103
|
+
let t3;
|
|
104
|
+
if ($[16] !== t1 || $[17] !== t2) {
|
|
105
|
+
t3 = /*#__PURE__*/ _jsx(TextField, {
|
|
46
106
|
label: "From",
|
|
47
107
|
placeholder: "Start of range",
|
|
48
|
-
value:
|
|
49
|
-
onChange:
|
|
50
|
-
...mapping,
|
|
51
|
-
spec: {
|
|
52
|
-
...mapping.spec,
|
|
53
|
-
from: e.target.value === '' ? undefined : +e.target.value
|
|
54
|
-
}
|
|
55
|
-
}),
|
|
108
|
+
value: t1,
|
|
109
|
+
onChange: t2,
|
|
56
110
|
fullWidth: true
|
|
57
|
-
})
|
|
58
|
-
|
|
111
|
+
});
|
|
112
|
+
$[16] = t1;
|
|
113
|
+
$[17] = t2;
|
|
114
|
+
$[18] = t3;
|
|
115
|
+
} else {
|
|
116
|
+
t3 = $[18];
|
|
117
|
+
}
|
|
118
|
+
const t4 = mapping.spec?.to ?? "";
|
|
119
|
+
let t5;
|
|
120
|
+
if ($[19] !== mapping || $[20] !== onChange) {
|
|
121
|
+
t5 = (e_2)=>onChange({
|
|
122
|
+
...mapping,
|
|
123
|
+
spec: {
|
|
124
|
+
...mapping.spec,
|
|
125
|
+
to: e_2.target.value === "" ? undefined : +e_2.target.value
|
|
126
|
+
}
|
|
127
|
+
});
|
|
128
|
+
$[19] = mapping;
|
|
129
|
+
$[20] = onChange;
|
|
130
|
+
$[21] = t5;
|
|
131
|
+
} else {
|
|
132
|
+
t5 = $[21];
|
|
133
|
+
}
|
|
134
|
+
let t6;
|
|
135
|
+
if ($[22] !== t4 || $[23] !== t5) {
|
|
136
|
+
t6 = /*#__PURE__*/ _jsx(TextField, {
|
|
59
137
|
label: "To",
|
|
60
138
|
placeholder: "End of range (inclusive)",
|
|
61
|
-
value:
|
|
62
|
-
onChange:
|
|
63
|
-
...mapping,
|
|
64
|
-
spec: {
|
|
65
|
-
...mapping.spec,
|
|
66
|
-
to: e.target.value === '' ? undefined : +e.target.value
|
|
67
|
-
}
|
|
68
|
-
}),
|
|
139
|
+
value: t4,
|
|
140
|
+
onChange: t5,
|
|
69
141
|
fullWidth: true
|
|
70
|
-
})
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
142
|
+
});
|
|
143
|
+
$[22] = t4;
|
|
144
|
+
$[23] = t5;
|
|
145
|
+
$[24] = t6;
|
|
146
|
+
} else {
|
|
147
|
+
t6 = $[24];
|
|
148
|
+
}
|
|
149
|
+
let t7;
|
|
150
|
+
if ($[25] !== props || $[26] !== t3 || $[27] !== t6) {
|
|
151
|
+
t7 = /*#__PURE__*/ _jsxs(Stack, {
|
|
152
|
+
gap: 1,
|
|
153
|
+
direction: "row",
|
|
154
|
+
...props,
|
|
155
|
+
children: [
|
|
156
|
+
t3,
|
|
157
|
+
t6
|
|
158
|
+
]
|
|
159
|
+
});
|
|
160
|
+
$[25] = props;
|
|
161
|
+
$[26] = t3;
|
|
162
|
+
$[27] = t6;
|
|
163
|
+
$[28] = t7;
|
|
164
|
+
} else {
|
|
165
|
+
t7 = $[28];
|
|
166
|
+
}
|
|
167
|
+
return t7;
|
|
168
|
+
}
|
|
169
|
+
case "Regex":
|
|
170
|
+
{
|
|
171
|
+
const t1 = mapping.spec?.pattern ?? "";
|
|
172
|
+
let t2;
|
|
173
|
+
if ($[29] !== mapping || $[30] !== onChange) {
|
|
174
|
+
t2 = (e_0)=>onChange({
|
|
83
175
|
...mapping,
|
|
84
176
|
spec: {
|
|
85
177
|
...mapping.spec,
|
|
86
|
-
pattern:
|
|
178
|
+
pattern: e_0.target.value
|
|
87
179
|
}
|
|
88
|
-
})
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
180
|
+
});
|
|
181
|
+
$[29] = mapping;
|
|
182
|
+
$[30] = onChange;
|
|
183
|
+
$[31] = t2;
|
|
184
|
+
} else {
|
|
185
|
+
t2 = $[31];
|
|
186
|
+
}
|
|
187
|
+
let t3;
|
|
188
|
+
if ($[32] !== t1 || $[33] !== t2) {
|
|
189
|
+
t3 = /*#__PURE__*/ _jsx(TextField, {
|
|
190
|
+
label: "Regular Expression",
|
|
191
|
+
placeholder: "JavaScript regular expression",
|
|
192
|
+
value: t1,
|
|
193
|
+
onChange: t2,
|
|
194
|
+
fullWidth: true
|
|
195
|
+
});
|
|
196
|
+
$[32] = t1;
|
|
197
|
+
$[33] = t2;
|
|
198
|
+
$[34] = t3;
|
|
199
|
+
} else {
|
|
200
|
+
t3 = $[34];
|
|
201
|
+
}
|
|
202
|
+
let t4;
|
|
203
|
+
if ($[35] !== props || $[36] !== t3) {
|
|
204
|
+
t4 = /*#__PURE__*/ _jsx(Stack, {
|
|
205
|
+
gap: 1,
|
|
206
|
+
direction: "row",
|
|
207
|
+
...props,
|
|
208
|
+
children: t3
|
|
209
|
+
});
|
|
210
|
+
$[35] = props;
|
|
211
|
+
$[36] = t3;
|
|
212
|
+
$[37] = t4;
|
|
213
|
+
} else {
|
|
214
|
+
t4 = $[37];
|
|
215
|
+
}
|
|
216
|
+
return t4;
|
|
217
|
+
}
|
|
218
|
+
case "Misc":
|
|
219
|
+
{
|
|
220
|
+
const t1 = mapping.spec?.value ?? "";
|
|
221
|
+
let t2;
|
|
222
|
+
if ($[38] !== mapping || $[39] !== onChange) {
|
|
223
|
+
t2 = (e)=>onChange({
|
|
102
224
|
...mapping,
|
|
103
225
|
spec: {
|
|
104
226
|
value: e.target.value
|
|
105
227
|
}
|
|
106
|
-
})
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
case 'null':
|
|
113
|
-
return 'Null';
|
|
114
|
-
case 'NaN':
|
|
115
|
-
return 'NaN';
|
|
116
|
-
case 'true':
|
|
117
|
-
return 'True';
|
|
118
|
-
case 'false':
|
|
119
|
-
return 'False';
|
|
120
|
-
default:
|
|
121
|
-
return String(selected);
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
},
|
|
125
|
-
fullWidth: true,
|
|
126
|
-
children: [
|
|
127
|
-
/*#__PURE__*/ _jsx(MenuItem, {
|
|
128
|
-
value: "empty",
|
|
129
|
-
children: /*#__PURE__*/ _jsxs(Stack, {
|
|
130
|
-
children: [
|
|
131
|
-
/*#__PURE__*/ _jsx(Typography, {
|
|
132
|
-
children: "Empty"
|
|
133
|
-
}),
|
|
134
|
-
/*#__PURE__*/ _jsx(Typography, {
|
|
135
|
-
variant: "caption",
|
|
136
|
-
children: "Matches empty string"
|
|
137
|
-
})
|
|
138
|
-
]
|
|
139
|
-
})
|
|
140
|
-
}),
|
|
141
|
-
/*#__PURE__*/ _jsx(MenuItem, {
|
|
142
|
-
value: "null",
|
|
143
|
-
children: /*#__PURE__*/ _jsxs(Stack, {
|
|
144
|
-
children: [
|
|
145
|
-
/*#__PURE__*/ _jsx(Typography, {
|
|
146
|
-
children: "Null"
|
|
147
|
-
}),
|
|
148
|
-
/*#__PURE__*/ _jsx(Typography, {
|
|
149
|
-
variant: "caption",
|
|
150
|
-
children: "Matches null or undefined"
|
|
151
|
-
})
|
|
152
|
-
]
|
|
153
|
-
})
|
|
154
|
-
}),
|
|
155
|
-
/*#__PURE__*/ _jsx(MenuItem, {
|
|
156
|
-
value: "NaN",
|
|
157
|
-
children: /*#__PURE__*/ _jsxs(Stack, {
|
|
158
|
-
children: [
|
|
159
|
-
/*#__PURE__*/ _jsx(Typography, {
|
|
160
|
-
children: "NaN"
|
|
161
|
-
}),
|
|
162
|
-
/*#__PURE__*/ _jsx(Typography, {
|
|
163
|
-
variant: "caption",
|
|
164
|
-
children: "Matches Not a Number value"
|
|
165
|
-
})
|
|
166
|
-
]
|
|
167
|
-
})
|
|
168
|
-
}),
|
|
169
|
-
/*#__PURE__*/ _jsx(MenuItem, {
|
|
170
|
-
value: "true",
|
|
171
|
-
children: /*#__PURE__*/ _jsxs(Stack, {
|
|
172
|
-
children: [
|
|
173
|
-
/*#__PURE__*/ _jsx(Typography, {
|
|
174
|
-
children: "True"
|
|
175
|
-
}),
|
|
176
|
-
/*#__PURE__*/ _jsx(Typography, {
|
|
177
|
-
variant: "caption",
|
|
178
|
-
children: "Matches true boolean"
|
|
179
|
-
})
|
|
180
|
-
]
|
|
181
|
-
})
|
|
182
|
-
}),
|
|
183
|
-
/*#__PURE__*/ _jsx(MenuItem, {
|
|
184
|
-
value: "false",
|
|
185
|
-
children: /*#__PURE__*/ _jsxs(Stack, {
|
|
186
|
-
children: [
|
|
187
|
-
/*#__PURE__*/ _jsx(Typography, {
|
|
188
|
-
children: "False"
|
|
189
|
-
}),
|
|
190
|
-
/*#__PURE__*/ _jsx(Typography, {
|
|
191
|
-
variant: "caption",
|
|
192
|
-
children: "Matches false boolean"
|
|
193
|
-
})
|
|
194
|
-
]
|
|
195
|
-
})
|
|
196
|
-
})
|
|
197
|
-
]
|
|
198
|
-
})
|
|
199
|
-
});
|
|
200
|
-
default:
|
|
201
|
-
return null;
|
|
202
|
-
}
|
|
203
|
-
};
|
|
204
|
-
export const ValueMappingEditor = ({ mapping, onChange, onDelete, ...props })=>{
|
|
205
|
-
const handleColorChange = (color)=>{
|
|
206
|
-
onChange({
|
|
207
|
-
...mapping,
|
|
208
|
-
spec: {
|
|
209
|
-
...mapping.spec,
|
|
210
|
-
result: {
|
|
211
|
-
...mapping.spec.result,
|
|
212
|
-
color
|
|
228
|
+
});
|
|
229
|
+
$[38] = mapping;
|
|
230
|
+
$[39] = onChange;
|
|
231
|
+
$[40] = t2;
|
|
232
|
+
} else {
|
|
233
|
+
t2 = $[40];
|
|
213
234
|
}
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
/*#__PURE__*/ _jsxs(TextField, {
|
|
232
|
-
select: true,
|
|
233
|
-
label: "Type",
|
|
234
|
-
value: mapping.kind,
|
|
235
|
-
onChange: (e)=>onChange({
|
|
236
|
-
...mapping,
|
|
237
|
-
kind: e.target.value
|
|
235
|
+
let t3;
|
|
236
|
+
if ($[41] === Symbol.for("react.memo_cache_sentinel")) {
|
|
237
|
+
t3 = {
|
|
238
|
+
renderValue: _temp
|
|
239
|
+
};
|
|
240
|
+
$[41] = t3;
|
|
241
|
+
} else {
|
|
242
|
+
t3 = $[41];
|
|
243
|
+
}
|
|
244
|
+
let t4;
|
|
245
|
+
if ($[42] === Symbol.for("react.memo_cache_sentinel")) {
|
|
246
|
+
t4 = /*#__PURE__*/ _jsx(MenuItem, {
|
|
247
|
+
value: "empty",
|
|
248
|
+
children: /*#__PURE__*/ _jsxs(Stack, {
|
|
249
|
+
children: [
|
|
250
|
+
/*#__PURE__*/ _jsx(Typography, {
|
|
251
|
+
children: "Empty"
|
|
238
252
|
}),
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
253
|
+
/*#__PURE__*/ _jsx(Typography, {
|
|
254
|
+
variant: "caption",
|
|
255
|
+
children: "Matches empty string"
|
|
256
|
+
})
|
|
257
|
+
]
|
|
258
|
+
})
|
|
259
|
+
});
|
|
260
|
+
$[42] = t4;
|
|
261
|
+
} else {
|
|
262
|
+
t4 = $[42];
|
|
263
|
+
}
|
|
264
|
+
let t5;
|
|
265
|
+
if ($[43] === Symbol.for("react.memo_cache_sentinel")) {
|
|
266
|
+
t5 = /*#__PURE__*/ _jsx(MenuItem, {
|
|
267
|
+
value: "null",
|
|
268
|
+
children: /*#__PURE__*/ _jsxs(Stack, {
|
|
243
269
|
children: [
|
|
244
|
-
/*#__PURE__*/ _jsx(
|
|
245
|
-
|
|
246
|
-
children: /*#__PURE__*/ _jsxs(Stack, {
|
|
247
|
-
children: [
|
|
248
|
-
/*#__PURE__*/ _jsx(Typography, {
|
|
249
|
-
children: "Value"
|
|
250
|
-
}),
|
|
251
|
-
mapping.kind !== 'Value' && /*#__PURE__*/ _jsx(Typography, {
|
|
252
|
-
variant: "caption",
|
|
253
|
-
children: "Matches an exact text value"
|
|
254
|
-
})
|
|
255
|
-
]
|
|
256
|
-
})
|
|
270
|
+
/*#__PURE__*/ _jsx(Typography, {
|
|
271
|
+
children: "Null"
|
|
257
272
|
}),
|
|
258
|
-
/*#__PURE__*/ _jsx(
|
|
259
|
-
|
|
260
|
-
children:
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
273
|
+
/*#__PURE__*/ _jsx(Typography, {
|
|
274
|
+
variant: "caption",
|
|
275
|
+
children: "Matches null or undefined"
|
|
276
|
+
})
|
|
277
|
+
]
|
|
278
|
+
})
|
|
279
|
+
});
|
|
280
|
+
$[43] = t5;
|
|
281
|
+
} else {
|
|
282
|
+
t5 = $[43];
|
|
283
|
+
}
|
|
284
|
+
let t6;
|
|
285
|
+
if ($[44] === Symbol.for("react.memo_cache_sentinel")) {
|
|
286
|
+
t6 = /*#__PURE__*/ _jsx(MenuItem, {
|
|
287
|
+
value: "NaN",
|
|
288
|
+
children: /*#__PURE__*/ _jsxs(Stack, {
|
|
289
|
+
children: [
|
|
290
|
+
/*#__PURE__*/ _jsx(Typography, {
|
|
291
|
+
children: "NaN"
|
|
271
292
|
}),
|
|
272
|
-
/*#__PURE__*/ _jsx(
|
|
273
|
-
|
|
274
|
-
children:
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
293
|
+
/*#__PURE__*/ _jsx(Typography, {
|
|
294
|
+
variant: "caption",
|
|
295
|
+
children: "Matches Not a Number value"
|
|
296
|
+
})
|
|
297
|
+
]
|
|
298
|
+
})
|
|
299
|
+
});
|
|
300
|
+
$[44] = t6;
|
|
301
|
+
} else {
|
|
302
|
+
t6 = $[44];
|
|
303
|
+
}
|
|
304
|
+
let t7;
|
|
305
|
+
if ($[45] === Symbol.for("react.memo_cache_sentinel")) {
|
|
306
|
+
t7 = /*#__PURE__*/ _jsx(MenuItem, {
|
|
307
|
+
value: "true",
|
|
308
|
+
children: /*#__PURE__*/ _jsxs(Stack, {
|
|
309
|
+
children: [
|
|
310
|
+
/*#__PURE__*/ _jsx(Typography, {
|
|
311
|
+
children: "True"
|
|
285
312
|
}),
|
|
286
|
-
/*#__PURE__*/ _jsx(
|
|
287
|
-
|
|
288
|
-
children:
|
|
289
|
-
children: [
|
|
290
|
-
/*#__PURE__*/ _jsx(Typography, {
|
|
291
|
-
children: "Misc"
|
|
292
|
-
}),
|
|
293
|
-
mapping.kind !== 'Misc' && /*#__PURE__*/ _jsx(Typography, {
|
|
294
|
-
variant: "caption",
|
|
295
|
-
children: "Matches against empty, null and NaN values"
|
|
296
|
-
})
|
|
297
|
-
]
|
|
298
|
-
})
|
|
313
|
+
/*#__PURE__*/ _jsx(Typography, {
|
|
314
|
+
variant: "caption",
|
|
315
|
+
children: "Matches true boolean"
|
|
299
316
|
})
|
|
300
317
|
]
|
|
301
|
-
})
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
318
|
+
})
|
|
319
|
+
});
|
|
320
|
+
$[45] = t7;
|
|
321
|
+
} else {
|
|
322
|
+
t7 = $[45];
|
|
323
|
+
}
|
|
324
|
+
let t8;
|
|
325
|
+
if ($[46] === Symbol.for("react.memo_cache_sentinel")) {
|
|
326
|
+
t8 = /*#__PURE__*/ _jsx(MenuItem, {
|
|
327
|
+
value: "false",
|
|
328
|
+
children: /*#__PURE__*/ _jsxs(Stack, {
|
|
329
|
+
children: [
|
|
330
|
+
/*#__PURE__*/ _jsx(Typography, {
|
|
331
|
+
children: "False"
|
|
332
|
+
}),
|
|
333
|
+
/*#__PURE__*/ _jsx(Typography, {
|
|
334
|
+
variant: "caption",
|
|
335
|
+
children: "Matches false boolean"
|
|
308
336
|
})
|
|
337
|
+
]
|
|
309
338
|
})
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
339
|
+
});
|
|
340
|
+
$[46] = t8;
|
|
341
|
+
} else {
|
|
342
|
+
t8 = $[46];
|
|
343
|
+
}
|
|
344
|
+
let t9;
|
|
345
|
+
if ($[47] !== t1 || $[48] !== t2) {
|
|
346
|
+
t9 = /*#__PURE__*/ _jsxs(TextField, {
|
|
347
|
+
select: true,
|
|
348
|
+
label: "Value",
|
|
349
|
+
value: t1,
|
|
350
|
+
onChange: t2,
|
|
351
|
+
SelectProps: t3,
|
|
352
|
+
fullWidth: true,
|
|
353
|
+
children: [
|
|
354
|
+
t4,
|
|
355
|
+
t5,
|
|
356
|
+
t6,
|
|
357
|
+
t7,
|
|
358
|
+
t8
|
|
359
|
+
]
|
|
360
|
+
});
|
|
361
|
+
$[47] = t1;
|
|
362
|
+
$[48] = t2;
|
|
363
|
+
$[49] = t9;
|
|
364
|
+
} else {
|
|
365
|
+
t9 = $[49];
|
|
366
|
+
}
|
|
367
|
+
let t10;
|
|
368
|
+
if ($[50] !== props || $[51] !== t9) {
|
|
369
|
+
t10 = /*#__PURE__*/ _jsx(Stack, {
|
|
370
|
+
gap: 1,
|
|
371
|
+
direction: "row",
|
|
372
|
+
...props,
|
|
373
|
+
children: t9
|
|
374
|
+
});
|
|
375
|
+
$[50] = props;
|
|
376
|
+
$[51] = t9;
|
|
377
|
+
$[52] = t10;
|
|
378
|
+
} else {
|
|
379
|
+
t10 = $[52];
|
|
380
|
+
}
|
|
381
|
+
return t10;
|
|
382
|
+
}
|
|
383
|
+
default:
|
|
384
|
+
{
|
|
385
|
+
return null;
|
|
386
|
+
}
|
|
387
|
+
}
|
|
388
|
+
};
|
|
389
|
+
export const ValueMappingEditor = (t0)=>{
|
|
390
|
+
const $ = _c(71);
|
|
391
|
+
let mapping;
|
|
392
|
+
let onChange;
|
|
393
|
+
let onDelete;
|
|
394
|
+
let props;
|
|
395
|
+
if ($[0] !== t0) {
|
|
396
|
+
({ mapping, onChange, onDelete, ...props } = t0);
|
|
397
|
+
$[0] = t0;
|
|
398
|
+
$[1] = mapping;
|
|
399
|
+
$[2] = onChange;
|
|
400
|
+
$[3] = onDelete;
|
|
401
|
+
$[4] = props;
|
|
402
|
+
} else {
|
|
403
|
+
mapping = $[1];
|
|
404
|
+
onChange = $[2];
|
|
405
|
+
onDelete = $[3];
|
|
406
|
+
props = $[4];
|
|
407
|
+
}
|
|
408
|
+
let t1;
|
|
409
|
+
if ($[5] !== mapping || $[6] !== onChange) {
|
|
410
|
+
t1 = (color)=>{
|
|
411
|
+
onChange({
|
|
412
|
+
...mapping,
|
|
413
|
+
spec: {
|
|
414
|
+
...mapping.spec,
|
|
415
|
+
result: {
|
|
416
|
+
...mapping.spec.result,
|
|
417
|
+
color
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
});
|
|
421
|
+
};
|
|
422
|
+
$[5] = mapping;
|
|
423
|
+
$[6] = onChange;
|
|
424
|
+
$[7] = t1;
|
|
425
|
+
} else {
|
|
426
|
+
t1 = $[7];
|
|
427
|
+
}
|
|
428
|
+
const handleColorChange = t1;
|
|
429
|
+
let t2;
|
|
430
|
+
if ($[8] === Symbol.for("react.memo_cache_sentinel")) {
|
|
431
|
+
t2 = {
|
|
432
|
+
xs: 5
|
|
433
|
+
};
|
|
434
|
+
$[8] = t2;
|
|
435
|
+
} else {
|
|
436
|
+
t2 = $[8];
|
|
437
|
+
}
|
|
438
|
+
let t3;
|
|
439
|
+
if ($[9] !== mapping || $[10] !== onChange) {
|
|
440
|
+
t3 = (e)=>onChange({
|
|
441
|
+
...mapping,
|
|
442
|
+
kind: e.target.value
|
|
443
|
+
});
|
|
444
|
+
$[9] = mapping;
|
|
445
|
+
$[10] = onChange;
|
|
446
|
+
$[11] = t3;
|
|
447
|
+
} else {
|
|
448
|
+
t3 = $[11];
|
|
449
|
+
}
|
|
450
|
+
let t4;
|
|
451
|
+
if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
|
|
452
|
+
t4 = {
|
|
453
|
+
width: "120px"
|
|
454
|
+
};
|
|
455
|
+
$[12] = t4;
|
|
456
|
+
} else {
|
|
457
|
+
t4 = $[12];
|
|
458
|
+
}
|
|
459
|
+
let t5;
|
|
460
|
+
if ($[13] === Symbol.for("react.memo_cache_sentinel")) {
|
|
461
|
+
t5 = /*#__PURE__*/ _jsx(Typography, {
|
|
462
|
+
children: "Value"
|
|
463
|
+
});
|
|
464
|
+
$[13] = t5;
|
|
465
|
+
} else {
|
|
466
|
+
t5 = $[13];
|
|
467
|
+
}
|
|
468
|
+
let t6;
|
|
469
|
+
if ($[14] !== mapping.kind) {
|
|
470
|
+
t6 = mapping.kind !== "Value" && /*#__PURE__*/ _jsx(Typography, {
|
|
471
|
+
variant: "caption",
|
|
472
|
+
children: "Matches an exact text value"
|
|
473
|
+
});
|
|
474
|
+
$[14] = mapping.kind;
|
|
475
|
+
$[15] = t6;
|
|
476
|
+
} else {
|
|
477
|
+
t6 = $[15];
|
|
478
|
+
}
|
|
479
|
+
let t7;
|
|
480
|
+
if ($[16] !== t6) {
|
|
481
|
+
t7 = /*#__PURE__*/ _jsx(MenuItem, {
|
|
482
|
+
value: "Value",
|
|
483
|
+
children: /*#__PURE__*/ _jsxs(Stack, {
|
|
484
|
+
children: [
|
|
485
|
+
t5,
|
|
486
|
+
t6
|
|
487
|
+
]
|
|
488
|
+
})
|
|
489
|
+
});
|
|
490
|
+
$[16] = t6;
|
|
491
|
+
$[17] = t7;
|
|
492
|
+
} else {
|
|
493
|
+
t7 = $[17];
|
|
494
|
+
}
|
|
495
|
+
let t8;
|
|
496
|
+
if ($[18] === Symbol.for("react.memo_cache_sentinel")) {
|
|
497
|
+
t8 = /*#__PURE__*/ _jsx(Typography, {
|
|
498
|
+
children: "Range"
|
|
499
|
+
});
|
|
500
|
+
$[18] = t8;
|
|
501
|
+
} else {
|
|
502
|
+
t8 = $[18];
|
|
503
|
+
}
|
|
504
|
+
let t9;
|
|
505
|
+
if ($[19] !== mapping.kind) {
|
|
506
|
+
t9 = mapping.kind !== "Range" && /*#__PURE__*/ _jsx(Typography, {
|
|
507
|
+
variant: "caption",
|
|
508
|
+
children: "Matches against a numerical range"
|
|
509
|
+
});
|
|
510
|
+
$[19] = mapping.kind;
|
|
511
|
+
$[20] = t9;
|
|
512
|
+
} else {
|
|
513
|
+
t9 = $[20];
|
|
514
|
+
}
|
|
515
|
+
let t10;
|
|
516
|
+
if ($[21] !== t9) {
|
|
517
|
+
t10 = /*#__PURE__*/ _jsx(MenuItem, {
|
|
518
|
+
value: "Range",
|
|
519
|
+
children: /*#__PURE__*/ _jsxs(Stack, {
|
|
520
|
+
children: [
|
|
521
|
+
t8,
|
|
522
|
+
t9
|
|
523
|
+
]
|
|
524
|
+
})
|
|
525
|
+
});
|
|
526
|
+
$[21] = t9;
|
|
527
|
+
$[22] = t10;
|
|
528
|
+
} else {
|
|
529
|
+
t10 = $[22];
|
|
530
|
+
}
|
|
531
|
+
let t11;
|
|
532
|
+
if ($[23] === Symbol.for("react.memo_cache_sentinel")) {
|
|
533
|
+
t11 = /*#__PURE__*/ _jsx(Typography, {
|
|
534
|
+
children: "Regex"
|
|
535
|
+
});
|
|
536
|
+
$[23] = t11;
|
|
537
|
+
} else {
|
|
538
|
+
t11 = $[23];
|
|
539
|
+
}
|
|
540
|
+
let t12;
|
|
541
|
+
if ($[24] !== mapping.kind) {
|
|
542
|
+
t12 = mapping.kind !== "Regex" && /*#__PURE__*/ _jsx(Typography, {
|
|
543
|
+
variant: "caption",
|
|
544
|
+
children: "Matches against a regular expression"
|
|
545
|
+
});
|
|
546
|
+
$[24] = mapping.kind;
|
|
547
|
+
$[25] = t12;
|
|
548
|
+
} else {
|
|
549
|
+
t12 = $[25];
|
|
550
|
+
}
|
|
551
|
+
let t13;
|
|
552
|
+
if ($[26] !== t12) {
|
|
553
|
+
t13 = /*#__PURE__*/ _jsx(MenuItem, {
|
|
554
|
+
value: "Regex",
|
|
555
|
+
children: /*#__PURE__*/ _jsxs(Stack, {
|
|
556
|
+
children: [
|
|
557
|
+
t11,
|
|
558
|
+
t12
|
|
559
|
+
]
|
|
560
|
+
})
|
|
561
|
+
});
|
|
562
|
+
$[26] = t12;
|
|
563
|
+
$[27] = t13;
|
|
564
|
+
} else {
|
|
565
|
+
t13 = $[27];
|
|
566
|
+
}
|
|
567
|
+
let t14;
|
|
568
|
+
if ($[28] === Symbol.for("react.memo_cache_sentinel")) {
|
|
569
|
+
t14 = /*#__PURE__*/ _jsx(Typography, {
|
|
570
|
+
children: "Misc"
|
|
571
|
+
});
|
|
572
|
+
$[28] = t14;
|
|
573
|
+
} else {
|
|
574
|
+
t14 = $[28];
|
|
575
|
+
}
|
|
576
|
+
let t15;
|
|
577
|
+
if ($[29] !== mapping.kind) {
|
|
578
|
+
t15 = mapping.kind !== "Misc" && /*#__PURE__*/ _jsx(Typography, {
|
|
579
|
+
variant: "caption",
|
|
580
|
+
children: "Matches against empty, null and NaN values"
|
|
581
|
+
});
|
|
582
|
+
$[29] = mapping.kind;
|
|
583
|
+
$[30] = t15;
|
|
584
|
+
} else {
|
|
585
|
+
t15 = $[30];
|
|
586
|
+
}
|
|
587
|
+
let t16;
|
|
588
|
+
if ($[31] !== t15) {
|
|
589
|
+
t16 = /*#__PURE__*/ _jsx(MenuItem, {
|
|
590
|
+
value: "Misc",
|
|
591
|
+
children: /*#__PURE__*/ _jsxs(Stack, {
|
|
592
|
+
children: [
|
|
593
|
+
t14,
|
|
594
|
+
t15
|
|
595
|
+
]
|
|
596
|
+
})
|
|
597
|
+
});
|
|
598
|
+
$[31] = t15;
|
|
599
|
+
$[32] = t16;
|
|
600
|
+
} else {
|
|
601
|
+
t16 = $[32];
|
|
602
|
+
}
|
|
603
|
+
let t17;
|
|
604
|
+
if ($[33] !== mapping.kind || $[34] !== t10 || $[35] !== t13 || $[36] !== t16 || $[37] !== t3 || $[38] !== t7) {
|
|
605
|
+
t17 = /*#__PURE__*/ _jsxs(TextField, {
|
|
606
|
+
select: true,
|
|
607
|
+
label: "Type",
|
|
608
|
+
value: mapping.kind,
|
|
609
|
+
onChange: t3,
|
|
610
|
+
required: true,
|
|
611
|
+
sx: t4,
|
|
612
|
+
children: [
|
|
613
|
+
t7,
|
|
614
|
+
t10,
|
|
615
|
+
t13,
|
|
616
|
+
t16
|
|
617
|
+
]
|
|
618
|
+
});
|
|
619
|
+
$[33] = mapping.kind;
|
|
620
|
+
$[34] = t10;
|
|
621
|
+
$[35] = t13;
|
|
622
|
+
$[36] = t16;
|
|
623
|
+
$[37] = t3;
|
|
624
|
+
$[38] = t7;
|
|
625
|
+
$[39] = t17;
|
|
626
|
+
} else {
|
|
627
|
+
t17 = $[39];
|
|
628
|
+
}
|
|
629
|
+
let t18;
|
|
630
|
+
if ($[40] !== mapping || $[41] !== onChange) {
|
|
631
|
+
t18 = (updatedMapping)=>onChange({
|
|
632
|
+
...mapping,
|
|
633
|
+
...updatedMapping
|
|
634
|
+
});
|
|
635
|
+
$[40] = mapping;
|
|
636
|
+
$[41] = onChange;
|
|
637
|
+
$[42] = t18;
|
|
638
|
+
} else {
|
|
639
|
+
t18 = $[42];
|
|
640
|
+
}
|
|
641
|
+
let t19;
|
|
642
|
+
if ($[43] !== mapping || $[44] !== t18) {
|
|
643
|
+
t19 = /*#__PURE__*/ _jsx(ConditionEditor, {
|
|
644
|
+
width: "100%",
|
|
645
|
+
mapping: mapping,
|
|
646
|
+
onChange: t18
|
|
647
|
+
});
|
|
648
|
+
$[43] = mapping;
|
|
649
|
+
$[44] = t18;
|
|
650
|
+
$[45] = t19;
|
|
651
|
+
} else {
|
|
652
|
+
t19 = $[45];
|
|
653
|
+
}
|
|
654
|
+
let t20;
|
|
655
|
+
if ($[46] !== t17 || $[47] !== t19) {
|
|
656
|
+
t20 = /*#__PURE__*/ _jsx(Grid, {
|
|
657
|
+
size: t2,
|
|
658
|
+
children: /*#__PURE__*/ _jsxs(Stack, {
|
|
659
|
+
direction: "row",
|
|
660
|
+
gap: 1,
|
|
661
|
+
width: "100%",
|
|
662
|
+
children: [
|
|
663
|
+
t17,
|
|
664
|
+
t19
|
|
665
|
+
]
|
|
666
|
+
})
|
|
667
|
+
});
|
|
668
|
+
$[46] = t17;
|
|
669
|
+
$[47] = t19;
|
|
670
|
+
$[48] = t20;
|
|
671
|
+
} else {
|
|
672
|
+
t20 = $[48];
|
|
673
|
+
}
|
|
674
|
+
let t21;
|
|
675
|
+
if ($[49] === Symbol.for("react.memo_cache_sentinel")) {
|
|
676
|
+
t21 = {
|
|
677
|
+
xs: 4
|
|
678
|
+
};
|
|
679
|
+
$[49] = t21;
|
|
680
|
+
} else {
|
|
681
|
+
t21 = $[49];
|
|
682
|
+
}
|
|
683
|
+
const t22 = mapping.spec?.result?.value ?? "";
|
|
684
|
+
let t23;
|
|
685
|
+
if ($[50] !== mapping || $[51] !== onChange) {
|
|
686
|
+
t23 = (e_0)=>onChange({
|
|
687
|
+
...mapping,
|
|
688
|
+
spec: {
|
|
689
|
+
...mapping.spec,
|
|
690
|
+
result: {
|
|
691
|
+
...mapping.spec?.result,
|
|
692
|
+
value: e_0.target.value
|
|
693
|
+
}
|
|
694
|
+
}
|
|
695
|
+
});
|
|
696
|
+
$[50] = mapping;
|
|
697
|
+
$[51] = onChange;
|
|
698
|
+
$[52] = t23;
|
|
699
|
+
} else {
|
|
700
|
+
t23 = $[52];
|
|
701
|
+
}
|
|
702
|
+
let t24;
|
|
703
|
+
if ($[53] !== t22 || $[54] !== t23) {
|
|
704
|
+
t24 = /*#__PURE__*/ _jsx(Grid, {
|
|
705
|
+
size: t21,
|
|
706
|
+
children: /*#__PURE__*/ _jsx(TextField, {
|
|
707
|
+
label: "Display text",
|
|
708
|
+
value: t22,
|
|
709
|
+
onChange: t23,
|
|
710
|
+
fullWidth: true
|
|
711
|
+
})
|
|
712
|
+
});
|
|
713
|
+
$[53] = t22;
|
|
714
|
+
$[54] = t23;
|
|
715
|
+
$[55] = t24;
|
|
716
|
+
} else {
|
|
717
|
+
t24 = $[55];
|
|
718
|
+
}
|
|
719
|
+
let t25;
|
|
720
|
+
if ($[56] === Symbol.for("react.memo_cache_sentinel")) {
|
|
721
|
+
t25 = {
|
|
722
|
+
xs: 1
|
|
723
|
+
};
|
|
724
|
+
$[56] = t25;
|
|
725
|
+
} else {
|
|
726
|
+
t25 = $[56];
|
|
727
|
+
}
|
|
728
|
+
let t26;
|
|
729
|
+
if ($[57] !== handleColorChange || $[58] !== mapping.spec.result) {
|
|
730
|
+
t26 = /*#__PURE__*/ _jsx(Grid, {
|
|
731
|
+
size: t25,
|
|
732
|
+
children: /*#__PURE__*/ _jsx(Stack, {
|
|
733
|
+
direction: "row",
|
|
734
|
+
justifyContent: "center",
|
|
735
|
+
gap: 1,
|
|
736
|
+
children: mapping.spec?.result?.color ? /*#__PURE__*/ _jsx(OptionsColorPicker, {
|
|
737
|
+
label: "Color",
|
|
738
|
+
color: mapping.spec.result.color ?? "#000",
|
|
739
|
+
onColorChange: handleColorChange,
|
|
740
|
+
onClear: ()=>handleColorChange(undefined)
|
|
741
|
+
}) : /*#__PURE__*/ _jsx(IconButton, {
|
|
742
|
+
onClick: ()=>handleColorChange("#000"),
|
|
743
|
+
children: /*#__PURE__*/ _jsx(PlusIcon, {})
|
|
350
744
|
})
|
|
351
|
-
})
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
745
|
+
})
|
|
746
|
+
});
|
|
747
|
+
$[57] = handleColorChange;
|
|
748
|
+
$[58] = mapping.spec.result;
|
|
749
|
+
$[59] = t26;
|
|
750
|
+
} else {
|
|
751
|
+
t26 = $[59];
|
|
752
|
+
}
|
|
753
|
+
let t27;
|
|
754
|
+
if ($[60] === Symbol.for("react.memo_cache_sentinel")) {
|
|
755
|
+
t27 = {
|
|
756
|
+
xs: 1
|
|
757
|
+
};
|
|
758
|
+
$[60] = t27;
|
|
759
|
+
} else {
|
|
760
|
+
t27 = $[60];
|
|
761
|
+
}
|
|
762
|
+
let t28;
|
|
763
|
+
if ($[61] === Symbol.for("react.memo_cache_sentinel")) {
|
|
764
|
+
t28 = {
|
|
765
|
+
marginLeft: "auto"
|
|
766
|
+
};
|
|
767
|
+
$[61] = t28;
|
|
768
|
+
} else {
|
|
769
|
+
t28 = $[61];
|
|
770
|
+
}
|
|
771
|
+
let t29;
|
|
772
|
+
if ($[62] === Symbol.for("react.memo_cache_sentinel")) {
|
|
773
|
+
t29 = /*#__PURE__*/ _jsx(DeleteIcon, {});
|
|
774
|
+
$[62] = t29;
|
|
775
|
+
} else {
|
|
776
|
+
t29 = $[62];
|
|
777
|
+
}
|
|
778
|
+
let t30;
|
|
779
|
+
if ($[63] !== onDelete) {
|
|
780
|
+
t30 = /*#__PURE__*/ _jsx(Grid, {
|
|
781
|
+
size: t27,
|
|
782
|
+
textAlign: "end",
|
|
783
|
+
children: /*#__PURE__*/ _jsx(Tooltip, {
|
|
784
|
+
title: "Remove mapping settings",
|
|
785
|
+
placement: "top",
|
|
786
|
+
children: /*#__PURE__*/ _jsx(IconButton, {
|
|
787
|
+
size: "small",
|
|
788
|
+
sx: t28,
|
|
789
|
+
onClick: onDelete,
|
|
790
|
+
children: t29
|
|
368
791
|
})
|
|
369
792
|
})
|
|
370
|
-
|
|
371
|
-
|
|
793
|
+
});
|
|
794
|
+
$[63] = onDelete;
|
|
795
|
+
$[64] = t30;
|
|
796
|
+
} else {
|
|
797
|
+
t30 = $[64];
|
|
798
|
+
}
|
|
799
|
+
let t31;
|
|
800
|
+
if ($[65] !== props || $[66] !== t20 || $[67] !== t24 || $[68] !== t26 || $[69] !== t30) {
|
|
801
|
+
t31 = /*#__PURE__*/ _jsxs(Grid, {
|
|
802
|
+
container: true,
|
|
803
|
+
spacing: 2,
|
|
804
|
+
...props,
|
|
805
|
+
children: [
|
|
806
|
+
t20,
|
|
807
|
+
t24,
|
|
808
|
+
t26,
|
|
809
|
+
t30
|
|
810
|
+
]
|
|
811
|
+
});
|
|
812
|
+
$[65] = props;
|
|
813
|
+
$[66] = t20;
|
|
814
|
+
$[67] = t24;
|
|
815
|
+
$[68] = t26;
|
|
816
|
+
$[69] = t30;
|
|
817
|
+
$[70] = t31;
|
|
818
|
+
} else {
|
|
819
|
+
t31 = $[70];
|
|
820
|
+
}
|
|
821
|
+
return t31;
|
|
372
822
|
};
|
|
823
|
+
function _temp(selected) {
|
|
824
|
+
switch(selected){
|
|
825
|
+
case "empty":
|
|
826
|
+
{
|
|
827
|
+
return "Empty";
|
|
828
|
+
}
|
|
829
|
+
case "null":
|
|
830
|
+
{
|
|
831
|
+
return "Null";
|
|
832
|
+
}
|
|
833
|
+
case "NaN":
|
|
834
|
+
{
|
|
835
|
+
return "NaN";
|
|
836
|
+
}
|
|
837
|
+
case "true":
|
|
838
|
+
{
|
|
839
|
+
return "True";
|
|
840
|
+
}
|
|
841
|
+
case "false":
|
|
842
|
+
{
|
|
843
|
+
return "False";
|
|
844
|
+
}
|
|
845
|
+
default:
|
|
846
|
+
{
|
|
847
|
+
return String(selected);
|
|
848
|
+
}
|
|
849
|
+
}
|
|
850
|
+
}
|
|
373
851
|
|
|
374
852
|
//# sourceMappingURL=ValueMappingEditor.js.map
|