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:202


VueFeature

Ƭ VueFeature: Object

Type declaration

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

Defined in

profectus/src/util/vue.tsx:50

Functions

coerceComponent

coerceComponent(component, defaultWrapper?): DefineComponent

Parameters

NameTypeDefault value
componentCoercableComponentundefined
defaultWrapperstring"span"

Returns

DefineComponent

Defined in

profectus/src/util/vue.tsx:29


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:164


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:174


getFirstFeature

getFirstFeature<T>(features, filter): Object

Type parameters

NameType
Textends Object

Parameters

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

Returns

Object

NameType
firstFeatureRef<T | undefined>
hiddenFeaturesRef<T[]>

Defined in

profectus/src/util/vue.tsx:149


isCoercableComponent

isCoercableComponent(component): component is CoercableComponent

Parameters

NameType
componentunknown

Returns

component is CoercableComponent

Defined in

profectus/src/util/vue.tsx:98


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:211


render

render(object): JSX.Element | DefineComponent

Parameters

NameType
objectCoercableComponent | VueFeature

Returns

JSX.Element | DefineComponent

Defined in

profectus/src/util/vue.tsx:55


renderCol

renderCol(...objects): JSX.Element

Parameters

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

Returns

JSX.Element

Defined in

profectus/src/util/vue.tsx:70


renderColJSX

renderColJSX(...objects): JSX.Element

Parameters

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

Returns

JSX.Element

Defined in

profectus/src/util/vue.tsx:94


renderJSX

renderJSX(object): JSX.Element

Parameters

NameType
objectCoercableComponent | VueFeature

Returns

JSX.Element

Defined in

profectus/src/util/vue.tsx:74


renderRow

renderRow(...objects): JSX.Element

Parameters

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

Returns

JSX.Element

Defined in

profectus/src/util/vue.tsx:66


renderRowJSX

renderRowJSX(...objects): JSX.Element

Parameters

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

Returns

JSX.Element

Defined in

profectus/src/util/vue.tsx:90


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:194


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:113


unwrapRef

unwrapRef<T>(ref): T

Type parameters

Name
T

Parameters

NameType
refRef<ProcessedComputable<T>>

Returns

T

Defined in

profectus/src/util/vue.tsx:190


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:186