import { MetricType } from '../../../types/metrics';
import { Dict } from '../../../types/types';
import { FacetItemsList } from '../../issues/sidebar/FacetItemsList';
+import { MultipleSelectionHint } from '../../issues/sidebar/MultipleSelectionHint';
import { FacetKey } from '../query';
export interface BasicProps {
(key) => renderTextName(key).toLowerCase(),
));
const headerId = `facet_${property}`;
+ const nbSelectableItems =
+ items?.filter((item) => (stats ? stats[item] : undefined)).length ?? 0;
+ const nbSelectedItems = values.length;
return (
<FacetBox
)}
{open && this.props.renderFooter !== undefined && this.props.renderFooter()}
+
+ <MultipleSelectionHint
+ nbSelectableItems={nbSelectableItems}
+ nbSelectedItems={nbSelectedItems}
+ />
</FacetBox>
);
}
ButtonSecondary,
DangerButtonSecondary,
HelperHintIcon,
+ Spinner,
SubHeadingHighlight,
themeBorder,
themeColor,
import ConfirmButton from '../../../components/controls/ConfirmButton';
import HelpTooltip from '../../../components/controls/HelpTooltip';
import DateFormatter from '../../../components/intl/DateFormatter';
-import Spinner from '../../../components/ui/Spinner';
import { translate, translateWithParameters } from '../../../helpers/l10n';
import { Dict, RuleActivation, RuleDetails as TypeRuleDetails } from '../../../types/types';
import { Activation } from '../query';