com.yandex.div.dsl.model.DivSlider.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 DivSlider internal constructor(
@JsonIgnore override val accessibility: Property?,
@JsonIgnore override val alignmentHorizontal: Property?,
@JsonIgnore override val alignmentVertical: Property?,
@JsonIgnore override val alpha: 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 override val margins: Property?,
@JsonIgnore val maxValue: Property?,
@JsonIgnore val minValue: Property?,
@JsonIgnore override val paddings: Property?,
@JsonIgnore override val rowSpan: Property?,
@JsonIgnore val secondaryValueAccessibility: Property?,
@JsonIgnore override val selectedActions: Property>?,
@JsonIgnore val thumbSecondaryStyle: Property?,
@JsonIgnore val thumbSecondaryTextStyle: Property?,
@JsonIgnore val thumbSecondaryValueVariable: Property?,
@JsonIgnore val thumbStyle: Property?,
@JsonIgnore val thumbTextStyle: Property?,
@JsonIgnore val thumbValueVariable: Property?,
@JsonIgnore val tickMarkActiveStyle: Property?,
@JsonIgnore val tickMarkInactiveStyle: Property?,
@JsonIgnore override val tooltips: Property>?,
@JsonIgnore val trackActiveStyle: Property?,
@JsonIgnore val trackInactiveStyle: 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 = "slider"
@JsonAnyGetter
internal fun properties(): Map {
return propertyMapOf(
"accessibility" to accessibility,
"alignment_horizontal" to alignmentHorizontal,
"alignment_vertical" to alignmentVertical,
"alpha" to alpha,
"background" to background,
"border" to border,
"column_span" to columnSpan,
"extensions" to extensions,
"focus" to focus,
"height" to height,
"id" to id,
"margins" to margins,
"max_value" to maxValue,
"min_value" to minValue,
"paddings" to paddings,
"row_span" to rowSpan,
"secondary_value_accessibility" to secondaryValueAccessibility,
"selected_actions" to selectedActions,
"thumb_secondary_style" to thumbSecondaryStyle,
"thumb_secondary_text_style" to thumbSecondaryTextStyle,
"thumb_secondary_value_variable" to thumbSecondaryValueVariable,
"thumb_style" to thumbStyle,
"thumb_text_style" to thumbTextStyle,
"thumb_value_variable" to thumbValueVariable,
"tick_mark_active_style" to tickMarkActiveStyle,
"tick_mark_inactive_style" to tickMarkInactiveStyle,
"tooltips" to tooltips,
"track_active_style" to trackActiveStyle,
"track_inactive_style" to trackInactiveStyle,
"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,
)
}
class TextStyle internal constructor(
@JsonIgnore val fontSize: Property?,
@JsonIgnore val fontSizeUnit: Property?,
@JsonIgnore val fontWeight: Property?,
@JsonIgnore val offset: Property?,
@JsonIgnore val textColor: Property?,
) {
@JsonAnyGetter
internal fun properties(): Map {
return propertyMapOf(
"font_size" to fontSize,
"font_size_unit" to fontSizeUnit,
"font_weight" to fontWeight,
"offset" to offset,
"text_color" to textColor,
)
}
}
}
fun TemplateContext.divSlider(): LiteralProperty {
return value(DivSlider(
accessibility = null,
alignmentHorizontal = null,
alignmentVertical = null,
alpha = null,
background = null,
border = null,
columnSpan = null,
extensions = null,
focus = null,
height = null,
id = null,
margins = null,
maxValue = null,
minValue = null,
paddings = null,
rowSpan = null,
secondaryValueAccessibility = null,
selectedActions = null,
thumbSecondaryStyle = null,
thumbSecondaryTextStyle = null,
thumbSecondaryValueVariable = null,
thumbStyle = null,
thumbTextStyle = null,
thumbValueVariable = null,
tickMarkActiveStyle = null,
tickMarkInactiveStyle = null,
tooltips = null,
trackActiveStyle = null,
trackInactiveStyle = null,
transform = null,
transitionChange = null,
transitionIn = null,
transitionOut = null,
transitionTriggers = null,
visibility = null,
visibilityAction = null,
visibilityActions = null,
width = null,
))
}
fun TemplateContext.divSlider(
thumbStyle: Property? = null,
trackActiveStyle: Property? = null,
trackInactiveStyle: Property? = null,
accessibility: Property? = null,
alignmentHorizontal: Property? = null,
alignmentVertical: Property? = null,
alpha: Property? = null,
background: Property>? = null,
border: Property? = null,
columnSpan: Property? = null,
extensions: Property>? = null,
focus: Property? = null,
height: Property? = null,
id: Property? = null,
margins: Property? = null,
maxValue: Property? = null,
minValue: Property? = null,
paddings: Property? = null,
rowSpan: Property? = null,
secondaryValueAccessibility: Property? = null,
selectedActions: Property>? = null,
thumbSecondaryStyle: Property? = null,
thumbSecondaryTextStyle: Property? = null,
thumbSecondaryValueVariable: Property? = null,
thumbTextStyle: Property? = null,
thumbValueVariable: Property? = null,
tickMarkActiveStyle: Property? = null,
tickMarkInactiveStyle: 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(DivSlider(
accessibility = accessibility,
alignmentHorizontal = alignmentHorizontal,
alignmentVertical = alignmentVertical,
alpha = alpha,
background = background,
border = border,
columnSpan = columnSpan,
extensions = extensions,
focus = focus,
height = height,
id = id,
margins = margins,
maxValue = maxValue,
minValue = minValue,
paddings = paddings,
rowSpan = rowSpan,
secondaryValueAccessibility = secondaryValueAccessibility,
selectedActions = selectedActions,
thumbSecondaryStyle = thumbSecondaryStyle,
thumbSecondaryTextStyle = thumbSecondaryTextStyle,
thumbSecondaryValueVariable = thumbSecondaryValueVariable,
thumbStyle = thumbStyle,
thumbTextStyle = thumbTextStyle,
thumbValueVariable = thumbValueVariable,
tickMarkActiveStyle = tickMarkActiveStyle,
tickMarkInactiveStyle = tickMarkInactiveStyle,
tooltips = tooltips,
trackActiveStyle = trackActiveStyle,
trackInactiveStyle = trackInactiveStyle,
transform = transform,
transitionChange = transitionChange,
transitionIn = transitionIn,
transitionOut = transitionOut,
transitionTriggers = transitionTriggers,
visibility = visibility,
visibilityAction = visibilityAction,
visibilityActions = visibilityActions,
width = width,
))
}
fun TemplateContext.divSlider(
thumbStyle: DivDrawable? = null,
trackActiveStyle: DivDrawable? = null,
trackInactiveStyle: DivDrawable? = null,
accessibility: DivAccessibility? = null,
alignmentHorizontal: DivAlignmentHorizontal? = null,
alignmentVertical: DivAlignmentVertical? = null,
alpha: Double? = null,
background: List? = null,
border: DivBorder? = null,
columnSpan: Int? = null,
extensions: List? = null,
focus: DivFocus? = null,
height: DivSize? = null,
id: String? = null,
margins: DivEdgeInsets? = null,
maxValue: Int? = null,
minValue: Int? = null,
paddings: DivEdgeInsets? = null,
rowSpan: Int? = null,
secondaryValueAccessibility: DivAccessibility? = null,
selectedActions: List? = null,
thumbSecondaryStyle: DivDrawable? = null,
thumbSecondaryTextStyle: DivSlider.TextStyle? = null,
thumbSecondaryValueVariable: String? = null,
thumbTextStyle: DivSlider.TextStyle? = null,
thumbValueVariable: String? = null,
tickMarkActiveStyle: DivDrawable? = null,
tickMarkInactiveStyle: DivDrawable? = 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(DivSlider(
accessibility = optionalValue(accessibility),
alignmentHorizontal = optionalValue(alignmentHorizontal),
alignmentVertical = optionalValue(alignmentVertical),
alpha = optionalValue(alpha),
background = optionalValue(background),
border = optionalValue(border),
columnSpan = optionalValue(columnSpan),
extensions = optionalValue(extensions),
focus = optionalValue(focus),
height = optionalValue(height),
id = optionalValue(id),
margins = optionalValue(margins),
maxValue = optionalValue(maxValue),
minValue = optionalValue(minValue),
paddings = optionalValue(paddings),
rowSpan = optionalValue(rowSpan),
secondaryValueAccessibility = optionalValue(secondaryValueAccessibility),
selectedActions = optionalValue(selectedActions),
thumbSecondaryStyle = optionalValue(thumbSecondaryStyle),
thumbSecondaryTextStyle = optionalValue(thumbSecondaryTextStyle),
thumbSecondaryValueVariable = optionalValue(thumbSecondaryValueVariable),
thumbStyle = optionalValue(thumbStyle),
thumbTextStyle = optionalValue(thumbTextStyle),
thumbValueVariable = optionalValue(thumbValueVariable),
tickMarkActiveStyle = optionalValue(tickMarkActiveStyle),
tickMarkInactiveStyle = optionalValue(tickMarkInactiveStyle),
tooltips = optionalValue(tooltips),
trackActiveStyle = optionalValue(trackActiveStyle),
trackInactiveStyle = optionalValue(trackInactiveStyle),
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 TemplateContext.textStyle(): LiteralProperty {
return value(DivSlider.TextStyle(
fontSize = null,
fontSizeUnit = null,
fontWeight = null,
offset = null,
textColor = null,
))
}
fun TemplateContext.textStyle(
fontSize: Property? = null,
fontSizeUnit: Property? = null,
fontWeight: Property? = null,
offset: Property? = null,
textColor: Property? = null,
): LiteralProperty {
return value(DivSlider.TextStyle(
fontSize = fontSize,
fontSizeUnit = fontSizeUnit,
fontWeight = fontWeight,
offset = offset,
textColor = textColor,
))
}
fun TemplateContext.textStyle(
fontSize: Int? = null,
fontSizeUnit: DivSizeUnit? = null,
fontWeight: DivFontWeight? = null,
offset: DivPoint? = null,
textColor: Color? = null,
): LiteralProperty {
return value(DivSlider.TextStyle(
fontSize = optionalValue(fontSize),
fontSizeUnit = optionalValue(fontSizeUnit),
fontWeight = optionalValue(fontWeight),
offset = optionalValue(offset),
textColor = optionalValue(textColor),
))
}
fun CardContext.divSlider(
thumbStyle: ValueProperty,
trackActiveStyle: ValueProperty,
trackInactiveStyle: ValueProperty,
accessibility: ValueProperty? = null,
alignmentHorizontal: ValueProperty? = null,
alignmentVertical: ValueProperty? = null,
alpha: ValueProperty? = null,
background: ValueProperty>? = null,
border: ValueProperty? = null,
columnSpan: ValueProperty? = null,
extensions: ValueProperty>? = null,
focus: ValueProperty? = null,
height: ValueProperty? = null,
id: ValueProperty? = null,
margins: ValueProperty? = null,
maxValue: ValueProperty? = null,
minValue: ValueProperty? = null,
paddings: ValueProperty? = null,
rowSpan: ValueProperty? = null,
secondaryValueAccessibility: ValueProperty? = null,
selectedActions: ValueProperty>? = null,
thumbSecondaryStyle: ValueProperty? = null,
thumbSecondaryTextStyle: ValueProperty? = null,
thumbSecondaryValueVariable: ValueProperty? = null,
thumbTextStyle: ValueProperty? = null,
thumbValueVariable: ValueProperty? = null,
tickMarkActiveStyle: ValueProperty? = null,
tickMarkInactiveStyle: 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,
): DivSlider {
return DivSlider(
accessibility = accessibility,
alignmentHorizontal = alignmentHorizontal,
alignmentVertical = alignmentVertical,
alpha = alpha,
background = background,
border = border,
columnSpan = columnSpan,
extensions = extensions,
focus = focus,
height = height,
id = id,
margins = margins,
maxValue = maxValue,
minValue = minValue,
paddings = paddings,
rowSpan = rowSpan,
secondaryValueAccessibility = secondaryValueAccessibility,
selectedActions = selectedActions,
thumbSecondaryStyle = thumbSecondaryStyle,
thumbSecondaryTextStyle = thumbSecondaryTextStyle,
thumbSecondaryValueVariable = thumbSecondaryValueVariable,
thumbStyle = thumbStyle,
thumbTextStyle = thumbTextStyle,
thumbValueVariable = thumbValueVariable,
tickMarkActiveStyle = tickMarkActiveStyle,
tickMarkInactiveStyle = tickMarkInactiveStyle,
tooltips = tooltips,
trackActiveStyle = trackActiveStyle,
trackInactiveStyle = trackInactiveStyle,
transform = transform,
transitionChange = transitionChange,
transitionIn = transitionIn,
transitionOut = transitionOut,
transitionTriggers = transitionTriggers,
visibility = visibility,
visibilityAction = visibilityAction,
visibilityActions = visibilityActions,
width = width,
)
}
fun CardContext.divSlider(
thumbStyle: DivDrawable,
trackActiveStyle: DivDrawable,
trackInactiveStyle: DivDrawable,
accessibility: DivAccessibility? = null,
alignmentHorizontal: DivAlignmentHorizontal? = null,
alignmentVertical: DivAlignmentVertical? = null,
alpha: Double? = null,
background: List? = null,
border: DivBorder? = null,
columnSpan: Int? = null,
extensions: List? = null,
focus: DivFocus? = null,
height: DivSize? = null,
id: String? = null,
margins: DivEdgeInsets? = null,
maxValue: Int? = null,
minValue: Int? = null,
paddings: DivEdgeInsets? = null,
rowSpan: Int? = null,
secondaryValueAccessibility: DivAccessibility? = null,
selectedActions: List? = null,
thumbSecondaryStyle: DivDrawable? = null,
thumbSecondaryTextStyle: DivSlider.TextStyle? = null,
thumbSecondaryValueVariable: String? = null,
thumbTextStyle: DivSlider.TextStyle? = null,
thumbValueVariable: String? = null,
tickMarkActiveStyle: DivDrawable? = null,
tickMarkInactiveStyle: DivDrawable? = 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,
): DivSlider {
return DivSlider(
accessibility = optionalValue(accessibility),
alignmentHorizontal = optionalValue(alignmentHorizontal),
alignmentVertical = optionalValue(alignmentVertical),
alpha = optionalValue(alpha),
background = optionalValue(background),
border = optionalValue(border),
columnSpan = optionalValue(columnSpan),
extensions = optionalValue(extensions),
focus = optionalValue(focus),
height = optionalValue(height),
id = optionalValue(id),
margins = optionalValue(margins),
maxValue = optionalValue(maxValue),
minValue = optionalValue(minValue),
paddings = optionalValue(paddings),
rowSpan = optionalValue(rowSpan),
secondaryValueAccessibility = optionalValue(secondaryValueAccessibility),
selectedActions = optionalValue(selectedActions),
thumbSecondaryStyle = optionalValue(thumbSecondaryStyle),
thumbSecondaryTextStyle = optionalValue(thumbSecondaryTextStyle),
thumbSecondaryValueVariable = optionalValue(thumbSecondaryValueVariable),
thumbStyle = value(thumbStyle),
thumbTextStyle = optionalValue(thumbTextStyle),
thumbValueVariable = optionalValue(thumbValueVariable),
tickMarkActiveStyle = optionalValue(tickMarkActiveStyle),
tickMarkInactiveStyle = optionalValue(tickMarkInactiveStyle),
tooltips = optionalValue(tooltips),
trackActiveStyle = value(trackActiveStyle),
trackInactiveStyle = value(trackInactiveStyle),
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.textStyle(
fontSize: ValueProperty,
fontSizeUnit: ValueProperty? = null,
fontWeight: ValueProperty? = null,
offset: ValueProperty? = null,
textColor: ValueProperty? = null,
): DivSlider.TextStyle {
return DivSlider.TextStyle(
fontSize = fontSize,
fontSizeUnit = fontSizeUnit,
fontWeight = fontWeight,
offset = offset,
textColor = textColor,
)
}
fun CardContext.textStyle(
fontSize: Int,
fontSizeUnit: DivSizeUnit? = null,
fontWeight: DivFontWeight? = null,
offset: DivPoint? = null,
textColor: Color? = null,
): DivSlider.TextStyle {
return DivSlider.TextStyle(
fontSize = value(fontSize),
fontSizeUnit = optionalValue(fontSizeUnit),
fontWeight = optionalValue(fontWeight),
offset = optionalValue(offset),
textColor = optionalValue(textColor),
)
}