( input: I, appliedOptions: ReturnType<typeof useControlAppliedOptions>, )
| 79 | }; |
| 80 | |
| 81 | export const useComputedLabel = < |
| 82 | T extends { label: string; required: boolean }, |
| 83 | I extends { control: ComputedRef<T> }, |
| 84 | >( |
| 85 | input: I, |
| 86 | appliedOptions: ReturnType<typeof useControlAppliedOptions>, |
| 87 | ) => { |
| 88 | return computed((): string => { |
| 89 | return computeLabel( |
| 90 | input.control.value.label, |
| 91 | input.control.value.required, |
| 92 | !!appliedOptions.value?.hideRequiredAsterisk, |
| 93 | ); |
| 94 | }); |
| 95 | }; |
| 96 | |
| 97 | export const isControlEditable = (control: { |
| 98 | enabled: boolean; |
no test coverage detected
searching dependent graphs…