MCPcopy Create free account
hub / github.com/microsoft/SandDance / createInputSearch

Function createInputSearch

packages/sanddance-explorer/src/explorer.tsx:139–155  ·  view source on GitHub ↗
(search: SandDance.searchExpression.Search)

Source from the content-addressed store, hash-verified

137dataBrowserNullMessages[DataScopeId.SelectedData] = strings.labelDataNullSelection;
138
139function createInputSearch(search: SandDance.searchExpression.Search) {
140 const groups = SandDance.searchExpression.ensureSearchExpressionGroupArray(search);
141 const dialogSearch: InputSearchExpressionGroup[] = groups.map((group, groupIndex) => {
142 return {
143 key: groupIndex,
144 ...group,
145 expressions: group.expressions.map((ex, i) => {
146 const ex2: InputSearchExpression = {
147 key: i,
148 ...ex,
149 };
150 return ex2;
151 }),
152 };
153 });
154 return dialogSearch;
155}
156
157function _Explorer(props: Props) {
158 class __Explorer extends base.react.Component<Props, State> {

Callers 3

updateViewerOptionsMethod · 0.70
setInsightMethod · 0.70
toggleableSearchMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected