-
- {
- trackUiEvent('indexpattern_filters_cleared');
- clearLocalState();
- },
+
+ {
+ trackUiEvent('indexpattern_filters_cleared');
+ clearLocalState();
+ },
+ }}
+ >
+ {
+ setLocalState({ ...localState, nameFilter: e.target.value });
}}
- >
- {
- setLocalState({ ...localState, nameFilter: e.target.value });
- }}
- aria-label={i18n.translate('xpack.lens.indexPatterns.filterByNameAriaLabel', {
- defaultMessage: 'Search fields',
- })}
- />
-
-
-
+ aria-label={i18n.translate('xpack.lens.indexPatterns.filterByNameAriaLabel', {
+ defaultMessage: 'Search fields',
+ })}
+ />
+
+
+
+
+
setLocalState(() => ({ ...localState, isTypeFilterOpen: false }))}
button={
- }
- isSelected={localState.typeFilter.length ? true : false}
onClick={() => {
setLocalState((s) => ({
...s,
@@ -386,11 +463,10 @@ export const InnerIndexPatternDataPanel = function InnerIndexPatternDataPanel({
}));
}}
>
- {filterByTypeLabel}
-
+ {fieldFiltersLabel}
+
}
>
- {filterByTypeLabel}
))}
/>
-
- {
- trackUiEvent('indexpattern_existence_toggled');
- onToggleEmptyFields();
- }}
- label={i18n.translate('xpack.lens.indexPatterns.toggleEmptyFieldsSwitch', {
- defaultMessage: 'Only show fields with data',
- })}
- data-test-subj="lnsEmptyFilter"
- />
-
-
+
+
+