| 635 | extended?: boolean |
| 636 | label?: string |
| 637 | }> = props => { |
| 638 | return ( |
| 639 | <s.Show |
| 640 | when={ |
| 641 | props.data.value && |
| 642 | props.data.length && |
| 643 | props.extended |
| 644 | } |
| 645 | children={ |
| 646 | <CollapsableObjectPreview value={props.data.value!} /> |
| 647 | } |
| 648 | fallback={ |
| 649 | <s.Show |
| 650 | when={props.data.length} |
| 651 | children={ |
| 652 | <span class={value_base} aria-label={props.label}> |
| 653 | {getObjectValueName(props.type)} [{props.data.length}] |
| 654 | </span> |
| 655 | } |
| 656 | fallback={ |
| 657 | <span class={value_nullable} aria-label={props.label}> |
| 658 | Empty {getObjectValueName(props.type)} |
| 659 | </span> |
| 660 | } |
| 661 | /> |
| 662 | } |
| 663 | /> |
| 664 | ) |
| 665 | } |
| 666 | |
| 667 | const string_value_class = 'string_value' |
| 668 | const string_value = clsx( |
nothing calls this directly
no test coverage detected
searching dependent graphs…