{rowVirtualizer.getVirtualItems().map((vItem) => {
const idx = vItem.index;
const item = data?.get(idx);
if (!item) {
return (
loadData(idx)}
effectId={`${field.fid}_${sortConfig.key}${sortConfig.ascending ? '' : '_dsc'}_${idx}`}
/>
);
}
const { value, count } = item;
const id = `rule_checkbox_${idx}`;
const checked =
(!!ruleSet && field.rule?.type === 'one of' && ruleSet.has(_unstable_encodeRuleValue(value))) ||
(!!ruleSet && field.rule?.type === 'not in' && !ruleSet.has(_unstable_encodeRuleValue(value)));
const displayValue =
field.semanticType === 'temporal' ? formatDate(parsedOffsetDate(displayOffset, field.offset)(value)) : `${value}`;
return (
handleSelect(value, !!checked, count)}
/>
);
})}
)}