com.yandex.div.dsl.model.DivIndicator.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kotlin-json-builder Show documentation
Show all versions of kotlin-json-builder Show documentation
DivKit is an open source Server-Driven UI (SDUI) framework. SDUI is a an emerging technique that leverage the server to build the user interfaces of their mobile app.
// Generated code. Do not modify.
package com.yandex.div.dsl.model
import java.net.URI
import com.fasterxml.jackson.annotation.*
import com.yandex.div.dsl.*
import com.yandex.div.dsl.context.*
import com.yandex.div.dsl.type.*
import com.yandex.div.dsl.util.*
class DivIndicator internal constructor(
@JsonIgnore override val accessibility: Property?,
@JsonIgnore val activeItemColor: Property?,
@JsonIgnore val activeItemSize: Property?,
@JsonIgnore override val alignmentHorizontal: Property?,
@JsonIgnore override val alignmentVertical: Property?,
@JsonIgnore override val alpha: Property?,
@JsonIgnore val animation: Property?,
@JsonIgnore override val background: Property>?,
@JsonIgnore override val border: Property?,
@JsonIgnore override val columnSpan: Property?,
@JsonIgnore override val extensions: Property>?,
@JsonIgnore override val focus: Property?,
@JsonIgnore override val height: Property?,
@JsonIgnore override val id: Property?,
@JsonIgnore val inactiveItemColor: Property?,
@JsonIgnore override val margins: Property?,
@JsonIgnore val minimumItemSize: Property?,
@JsonIgnore override val paddings: Property?,
@JsonIgnore val pagerId: Property?,
@JsonIgnore override val rowSpan: Property?,
@JsonIgnore override val selectedActions: Property>?,
@JsonIgnore val shape: Property?,
@JsonIgnore val spaceBetweenCenters: Property?,
@JsonIgnore override val tooltips: Property>?,
@JsonIgnore override val transform: Property?,
@JsonIgnore override val transitionChange: Property?,
@JsonIgnore override val transitionIn: Property?,
@JsonIgnore override val transitionOut: Property?,
@JsonIgnore override val transitionTriggers: Property>?,
@JsonIgnore override val visibility: Property?,
@JsonIgnore override val visibilityAction: Property?,
@JsonIgnore override val visibilityActions: Property>?,
@JsonIgnore override val width: Property?,
) : Div, DivBase {
@JsonProperty("type") override val type = "indicator"
@JsonAnyGetter
internal fun properties(): Map {
return propertyMapOf(
"accessibility" to accessibility,
"active_item_color" to activeItemColor,
"active_item_size" to activeItemSize,
"alignment_horizontal" to alignmentHorizontal,
"alignment_vertical" to alignmentVertical,
"alpha" to alpha,
"animation" to animation,
"background" to background,
"border" to border,
"column_span" to columnSpan,
"extensions" to extensions,
"focus" to focus,
"height" to height,
"id" to id,
"inactive_item_color" to inactiveItemColor,
"margins" to margins,
"minimum_item_size" to minimumItemSize,
"paddings" to paddings,
"pager_id" to pagerId,
"row_span" to rowSpan,
"selected_actions" to selectedActions,
"shape" to shape,
"space_between_centers" to spaceBetweenCenters,
"tooltips" to tooltips,
"transform" to transform,
"transition_change" to transitionChange,
"transition_in" to transitionIn,
"transition_out" to transitionOut,
"transition_triggers" to transitionTriggers,
"visibility" to visibility,
"visibility_action" to visibilityAction,
"visibility_actions" to visibilityActions,
"width" to width,
)
}
enum class Animation(@JsonValue val value: String) {
SCALE("scale"),
WORM("worm"),
SLIDER("slider"),
}
}
fun TemplateContext.divIndicator(): LiteralProperty {
return value(DivIndicator(
accessibility = null,
activeItemColor = null,
activeItemSize = null,
alignmentHorizontal = null,
alignmentVertical = null,
alpha = null,
animation = null,
background = null,
border = null,
columnSpan = null,
extensions = null,
focus = null,
height = null,
id = null,
inactiveItemColor = null,
margins = null,
minimumItemSize = null,
paddings = null,
pagerId = null,
rowSpan = null,
selectedActions = null,
shape = null,
spaceBetweenCenters = null,
tooltips = null,
transform = null,
transitionChange = null,
transitionIn = null,
transitionOut = null,
transitionTriggers = null,
visibility = null,
visibilityAction = null,
visibilityActions = null,
width = null,
))
}
fun TemplateContext.divIndicator(
accessibility: Property? = null,
activeItemColor: Property? = null,
activeItemSize: Property? = null,
alignmentHorizontal: Property? = null,
alignmentVertical: Property? = null,
alpha: Property? = null,
animation: Property? = null,
background: Property>? = null,
border: Property? = null,
columnSpan: Property? = null,
extensions: Property>? = null,
focus: Property? = null,
height: Property? = null,
id: Property? = null,
inactiveItemColor: Property? = null,
margins: Property? = null,
minimumItemSize: Property? = null,
paddings: Property? = null,
pagerId: Property? = null,
rowSpan: Property? = null,
selectedActions: Property>? = null,
shape: Property? = null,
spaceBetweenCenters: Property? = null,
tooltips: Property>? = null,
transform: Property? = null,
transitionChange: Property? = null,
transitionIn: Property? = null,
transitionOut: Property? = null,
transitionTriggers: Property>? = null,
visibility: Property? = null,
visibilityAction: Property? = null,
visibilityActions: Property>? = null,
width: Property? = null,
): LiteralProperty {
return value(DivIndicator(
accessibility = accessibility,
activeItemColor = activeItemColor,
activeItemSize = activeItemSize,
alignmentHorizontal = alignmentHorizontal,
alignmentVertical = alignmentVertical,
alpha = alpha,
animation = animation,
background = background,
border = border,
columnSpan = columnSpan,
extensions = extensions,
focus = focus,
height = height,
id = id,
inactiveItemColor = inactiveItemColor,
margins = margins,
minimumItemSize = minimumItemSize,
paddings = paddings,
pagerId = pagerId,
rowSpan = rowSpan,
selectedActions = selectedActions,
shape = shape,
spaceBetweenCenters = spaceBetweenCenters,
tooltips = tooltips,
transform = transform,
transitionChange = transitionChange,
transitionIn = transitionIn,
transitionOut = transitionOut,
transitionTriggers = transitionTriggers,
visibility = visibility,
visibilityAction = visibilityAction,
visibilityActions = visibilityActions,
width = width,
))
}
fun TemplateContext.divIndicator(
accessibility: DivAccessibility? = null,
activeItemColor: Color? = null,
activeItemSize: Double? = null,
alignmentHorizontal: DivAlignmentHorizontal? = null,
alignmentVertical: DivAlignmentVertical? = null,
alpha: Double? = null,
animation: DivIndicator.Animation? = null,
background: List? = null,
border: DivBorder? = null,
columnSpan: Int? = null,
extensions: List? = null,
focus: DivFocus? = null,
height: DivSize? = null,
id: String? = null,
inactiveItemColor: Color? = null,
margins: DivEdgeInsets? = null,
minimumItemSize: Double? = null,
paddings: DivEdgeInsets? = null,
pagerId: String? = null,
rowSpan: Int? = null,
selectedActions: List? = null,
shape: DivShape? = null,
spaceBetweenCenters: DivFixedSize? = null,
tooltips: List? = null,
transform: DivTransform? = null,
transitionChange: DivChangeTransition? = null,
transitionIn: DivAppearanceTransition? = null,
transitionOut: DivAppearanceTransition? = null,
transitionTriggers: List? = null,
visibility: DivVisibility? = null,
visibilityAction: DivVisibilityAction? = null,
visibilityActions: List? = null,
width: DivSize? = null,
): LiteralProperty {
return value(DivIndicator(
accessibility = optionalValue(accessibility),
activeItemColor = optionalValue(activeItemColor),
activeItemSize = optionalValue(activeItemSize),
alignmentHorizontal = optionalValue(alignmentHorizontal),
alignmentVertical = optionalValue(alignmentVertical),
alpha = optionalValue(alpha),
animation = optionalValue(animation),
background = optionalValue(background),
border = optionalValue(border),
columnSpan = optionalValue(columnSpan),
extensions = optionalValue(extensions),
focus = optionalValue(focus),
height = optionalValue(height),
id = optionalValue(id),
inactiveItemColor = optionalValue(inactiveItemColor),
margins = optionalValue(margins),
minimumItemSize = optionalValue(minimumItemSize),
paddings = optionalValue(paddings),
pagerId = optionalValue(pagerId),
rowSpan = optionalValue(rowSpan),
selectedActions = optionalValue(selectedActions),
shape = optionalValue(shape),
spaceBetweenCenters = optionalValue(spaceBetweenCenters),
tooltips = optionalValue(tooltips),
transform = optionalValue(transform),
transitionChange = optionalValue(transitionChange),
transitionIn = optionalValue(transitionIn),
transitionOut = optionalValue(transitionOut),
transitionTriggers = optionalValue(transitionTriggers),
visibility = optionalValue(visibility),
visibilityAction = optionalValue(visibilityAction),
visibilityActions = optionalValue(visibilityActions),
width = optionalValue(width),
))
}
fun CardContext.divIndicator(): DivIndicator {
return DivIndicator(
accessibility = null,
activeItemColor = null,
activeItemSize = null,
alignmentHorizontal = null,
alignmentVertical = null,
alpha = null,
animation = null,
background = null,
border = null,
columnSpan = null,
extensions = null,
focus = null,
height = null,
id = null,
inactiveItemColor = null,
margins = null,
minimumItemSize = null,
paddings = null,
pagerId = null,
rowSpan = null,
selectedActions = null,
shape = null,
spaceBetweenCenters = null,
tooltips = null,
transform = null,
transitionChange = null,
transitionIn = null,
transitionOut = null,
transitionTriggers = null,
visibility = null,
visibilityAction = null,
visibilityActions = null,
width = null,
)
}
fun CardContext.divIndicator(
accessibility: ValueProperty? = null,
activeItemColor: ValueProperty? = null,
activeItemSize: ValueProperty? = null,
alignmentHorizontal: ValueProperty? = null,
alignmentVertical: ValueProperty? = null,
alpha: ValueProperty? = null,
animation: ValueProperty? = null,
background: ValueProperty>? = null,
border: ValueProperty? = null,
columnSpan: ValueProperty? = null,
extensions: ValueProperty>? = null,
focus: ValueProperty? = null,
height: ValueProperty? = null,
id: ValueProperty? = null,
inactiveItemColor: ValueProperty? = null,
margins: ValueProperty? = null,
minimumItemSize: ValueProperty? = null,
paddings: ValueProperty? = null,
pagerId: ValueProperty? = null,
rowSpan: ValueProperty? = null,
selectedActions: ValueProperty>? = null,
shape: ValueProperty? = null,
spaceBetweenCenters: ValueProperty? = null,
tooltips: ValueProperty>? = null,
transform: ValueProperty? = null,
transitionChange: ValueProperty? = null,
transitionIn: ValueProperty? = null,
transitionOut: ValueProperty? = null,
transitionTriggers: ValueProperty>? = null,
visibility: ValueProperty? = null,
visibilityAction: ValueProperty? = null,
visibilityActions: ValueProperty>? = null,
width: ValueProperty? = null,
): DivIndicator {
return DivIndicator(
accessibility = accessibility,
activeItemColor = activeItemColor,
activeItemSize = activeItemSize,
alignmentHorizontal = alignmentHorizontal,
alignmentVertical = alignmentVertical,
alpha = alpha,
animation = animation,
background = background,
border = border,
columnSpan = columnSpan,
extensions = extensions,
focus = focus,
height = height,
id = id,
inactiveItemColor = inactiveItemColor,
margins = margins,
minimumItemSize = minimumItemSize,
paddings = paddings,
pagerId = pagerId,
rowSpan = rowSpan,
selectedActions = selectedActions,
shape = shape,
spaceBetweenCenters = spaceBetweenCenters,
tooltips = tooltips,
transform = transform,
transitionChange = transitionChange,
transitionIn = transitionIn,
transitionOut = transitionOut,
transitionTriggers = transitionTriggers,
visibility = visibility,
visibilityAction = visibilityAction,
visibilityActions = visibilityActions,
width = width,
)
}
fun CardContext.divIndicator(
accessibility: DivAccessibility? = null,
activeItemColor: Color? = null,
activeItemSize: Double? = null,
alignmentHorizontal: DivAlignmentHorizontal? = null,
alignmentVertical: DivAlignmentVertical? = null,
alpha: Double? = null,
animation: DivIndicator.Animation? = null,
background: List? = null,
border: DivBorder? = null,
columnSpan: Int? = null,
extensions: List? = null,
focus: DivFocus? = null,
height: DivSize? = null,
id: String? = null,
inactiveItemColor: Color? = null,
margins: DivEdgeInsets? = null,
minimumItemSize: Double? = null,
paddings: DivEdgeInsets? = null,
pagerId: String? = null,
rowSpan: Int? = null,
selectedActions: List? = null,
shape: DivShape? = null,
spaceBetweenCenters: DivFixedSize? = null,
tooltips: List? = null,
transform: DivTransform? = null,
transitionChange: DivChangeTransition? = null,
transitionIn: DivAppearanceTransition? = null,
transitionOut: DivAppearanceTransition? = null,
transitionTriggers: List? = null,
visibility: DivVisibility? = null,
visibilityAction: DivVisibilityAction? = null,
visibilityActions: List? = null,
width: DivSize? = null,
): DivIndicator {
return DivIndicator(
accessibility = optionalValue(accessibility),
activeItemColor = optionalValue(activeItemColor),
activeItemSize = optionalValue(activeItemSize),
alignmentHorizontal = optionalValue(alignmentHorizontal),
alignmentVertical = optionalValue(alignmentVertical),
alpha = optionalValue(alpha),
animation = optionalValue(animation),
background = optionalValue(background),
border = optionalValue(border),
columnSpan = optionalValue(columnSpan),
extensions = optionalValue(extensions),
focus = optionalValue(focus),
height = optionalValue(height),
id = optionalValue(id),
inactiveItemColor = optionalValue(inactiveItemColor),
margins = optionalValue(margins),
minimumItemSize = optionalValue(minimumItemSize),
paddings = optionalValue(paddings),
pagerId = optionalValue(pagerId),
rowSpan = optionalValue(rowSpan),
selectedActions = optionalValue(selectedActions),
shape = optionalValue(shape),
spaceBetweenCenters = optionalValue(spaceBetweenCenters),
tooltips = optionalValue(tooltips),
transform = optionalValue(transform),
transitionChange = optionalValue(transitionChange),
transitionIn = optionalValue(transitionIn),
transitionOut = optionalValue(transitionOut),
transitionTriggers = optionalValue(transitionTriggers),
visibility = optionalValue(visibility),
visibilityAction = optionalValue(visibilityAction),
visibilityActions = optionalValue(visibilityActions),
width = optionalValue(width),
)
}