Module: util/vue

Type aliases

PropTypes

Ƭ PropTypes: typeof Boolean | typeof String | typeof Number | typeof Function | typeof Object | typeof Array

Defined in

profectus/src/util/vue.tsx:199


VueFeature

Ƭ VueFeature: Object

Type declaration

NameType
[Component]GenericComponent
[GatherProps]() => Record<string, unknown>

Defined in

profectus/src/util/vue.tsx:40

Functions

coerceComponent

coerceComponent(component, defaultWrapper?): DefineComponent

Parameters

NameTypeDefault value
componentCoercableComponentundefined
defaultWrapperstring"span"

Returns

DefineComponent

Defined in

profectus/src/util/vue.tsx:19


computeComponent

computeComponent(component, defaultWrapper?): ShallowRef<Component | "">

Parameters

NameTypeDefault value
componentRef<ProcessedComputable<CoercableComponent>>undefined
defaultWrapperstring"div"

Returns

ShallowRef<Component | "">

Defined in

profectus/src/util/vue.tsx:161


computeOptionalComponent

computeOptionalComponent(component, defaultWrapper?): ShallowRef<Component | "" | null>

Parameters

NameTypeDefault value
componentRef<ProcessedComputable<undefined | CoercableComponent>>undefined
defaultWrapperstring"div"

Returns

ShallowRef<Component | "" | null>

Defined in

profectus/src/util/vue.tsx:171


getFirstFeature

getFirstFeature<T>(features, filter): Object

Type parameters

NameType
Textends VueFeature & { visibility: ProcessedComputable<Visibility> }

Parameters

NameType
featuresT[]
filter(feature: T) => boolean

Returns

Object

NameType
collapsedContentJSXFunction
firstFeatureRef<T | undefined>
hasCollapsedContentRef<boolean>

Defined in

profectus/src/util/vue.tsx:139


isCoercableComponent

isCoercableComponent(component): component is CoercableComponent

Parameters

NameType
componentunknown

Returns

component is CoercableComponent

Defined in

profectus/src/util/vue.tsx:88


processedPropType

processedPropType<T>(...types): PropType<ProcessedComputable<T>>

Type parameters

Name
T

Parameters

NameType
...typesPropTypes[]

Returns

PropType<ProcessedComputable<T>>

Defined in

profectus/src/util/vue.tsx:208


render

render(object): JSX.Element | DefineComponent

Parameters

NameType
objectCoercableComponent | VueFeature

Returns

JSX.Element | DefineComponent

Defined in

profectus/src/util/vue.tsx:45


renderCol

renderCol(...objects): JSX.Element

Parameters

NameType
...objects(CoercableComponent | VueFeature)[]

Returns

JSX.Element

Defined in

profectus/src/util/vue.tsx:60


renderColJSX

renderColJSX(...objects): JSX.Element

Parameters

NameType
...objects(CoercableComponent | VueFeature)[]

Returns

JSX.Element

Defined in

profectus/src/util/vue.tsx:84


renderJSX

renderJSX(object): JSX.Element

Parameters

NameType
objectCoercableComponent | VueFeature

Returns

JSX.Element

Defined in

profectus/src/util/vue.tsx:64


renderRow

renderRow(...objects): JSX.Element

Parameters

NameType
...objects(CoercableComponent | VueFeature)[]

Returns

JSX.Element

Defined in

profectus/src/util/vue.tsx:56


renderRowJSX

renderRowJSX(...objects): JSX.Element

Parameters

NameType
...objects(CoercableComponent | VueFeature)[]

Returns

JSX.Element

Defined in

profectus/src/util/vue.tsx:80


setRefValue

setRefValue<T>(ref, value): void

Type parameters

Name
T

Parameters

NameType
refRef<T | Ref<T>>
valueT

Returns

void

Defined in

profectus/src/util/vue.tsx:191


setupHoldToClick

setupHoldToClick(onClick?, onHold?): Object

Parameters

NameType
onClick?Ref<undefined | (e?: MouseEvent | TouchEvent) => void>
onHold?Ref<undefined | VoidFunction>

Returns

Object

NameType
handleHoldingVoidFunction
stopVoidFunction
start(e: MouseEvent | TouchEvent) => void

Defined in

profectus/src/util/vue.tsx:103


unwrapRef

unwrapRef<T>(ref): T

Type parameters

Name
T

Parameters

NameType
refRef<ProcessedComputable<T>>

Returns

T

Defined in

profectus/src/util/vue.tsx:187


wrapRef

wrapRef<T>(ref): ComputedRef<T>

Type parameters

Name
T

Parameters

NameType
refRef<ProcessedComputable<T>>

Returns

ComputedRef<T>

Defined in

profectus/src/util/vue.tsx:183