com.yandex.div.dsl.model.DivGallery.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 DivGallery 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 val columnCount: Property?,
@JsonIgnore override val columnSpan: Property?,
@JsonIgnore val crossContentAlignment: Property?,
@JsonIgnore val crossSpacing: Property?,
@JsonIgnore val defaultItem: Property?,
@JsonIgnore override val extensions: Property>?,
@JsonIgnore override val focus: Property?,
@JsonIgnore override val height: Property?,
@JsonIgnore override val id: Property?,
@JsonIgnore val itemSpacing: Property?,
@JsonIgnore val items: Property>?,
@JsonIgnore override val margins: Property?,
@JsonIgnore val orientation: Property?,
@JsonIgnore override val paddings: Property?,
@JsonIgnore val restrictParentScroll: Property?,
@JsonIgnore override val rowSpan: Property?,
@JsonIgnore val scrollMode: Property?,
@JsonIgnore override val selectedActions: 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 = "gallery"
@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_count" to columnCount,
"column_span" to columnSpan,
"cross_content_alignment" to crossContentAlignment,
"cross_spacing" to crossSpacing,
"default_item" to defaultItem,
"extensions" to extensions,
"focus" to focus,
"height" to height,
"id" to id,
"item_spacing" to itemSpacing,
"items" to items,
"margins" to margins,
"orientation" to orientation,
"paddings" to paddings,
"restrict_parent_scroll" to restrictParentScroll,
"row_span" to rowSpan,
"scroll_mode" to scrollMode,
"selected_actions" to selectedActions,
"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 CrossContentAlignment(@JsonValue val value: String) {
START("start"),
CENTER("center"),
END("end"),
}
enum class Orientation(@JsonValue val value: String) {
HORIZONTAL("horizontal"),
VERTICAL("vertical"),
}
enum class ScrollMode(@JsonValue val value: String) {
PAGING("paging"),
DEFAULT("default"),
}
}
fun TemplateContext.divGallery(): LiteralProperty {
return value(DivGallery(
accessibility = null,
alignmentHorizontal = null,
alignmentVertical = null,
alpha = null,
background = null,
border = null,
columnCount = null,
columnSpan = null,
crossContentAlignment = null,
crossSpacing = null,
defaultItem = null,
extensions = null,
focus = null,
height = null,
id = null,
itemSpacing = null,
items = null,
margins = null,
orientation = null,
paddings = null,
restrictParentScroll = null,
rowSpan = null,
scrollMode = null,
selectedActions = null,
tooltips = null,
transform = null,
transitionChange = null,
transitionIn = null,
transitionOut = null,
transitionTriggers = null,
visibility = null,
visibilityAction = null,
visibilityActions = null,
width = null,
))
}
fun TemplateContext.divGallery(
items: Property>? = null,
accessibility: Property? = null,
alignmentHorizontal: Property? = null,
alignmentVertical: Property? = null,
alpha: Property? = null,
background: Property>? = null,
border: Property? = null,
columnCount: Property? = null,
columnSpan: Property? = null,
crossContentAlignment: Property? = null,
crossSpacing: Property? = null,
defaultItem: Property? = null,
extensions: Property>? = null,
focus: Property? = null,
height: Property? = null,
id: Property? = null,
itemSpacing: Property? = null,
margins: Property? = null,
orientation: Property? = null,
paddings: Property? = null,
restrictParentScroll: Property? = null,
rowSpan: Property? = null,
scrollMode: Property? = null,
selectedActions: 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(DivGallery(
accessibility = accessibility,
alignmentHorizontal = alignmentHorizontal,
alignmentVertical = alignmentVertical,
alpha = alpha,
background = background,
border = border,
columnCount = columnCount,
columnSpan = columnSpan,
crossContentAlignment = crossContentAlignment,
crossSpacing = crossSpacing,
defaultItem = defaultItem,
extensions = extensions,
focus = focus,
height = height,
id = id,
itemSpacing = itemSpacing,
items = items,
margins = margins,
orientation = orientation,
paddings = paddings,
restrictParentScroll = restrictParentScroll,
rowSpan = rowSpan,
scrollMode = scrollMode,
selectedActions = selectedActions,
tooltips = tooltips,
transform = transform,
transitionChange = transitionChange,
transitionIn = transitionIn,
transitionOut = transitionOut,
transitionTriggers = transitionTriggers,
visibility = visibility,
visibilityAction = visibilityAction,
visibilityActions = visibilityActions,
width = width,
))
}
fun TemplateContext.divGallery(
items: List? = null,
accessibility: DivAccessibility? = null,
alignmentHorizontal: DivAlignmentHorizontal? = null,
alignmentVertical: DivAlignmentVertical? = null,
alpha: Double? = null,
background: List? = null,
border: DivBorder? = null,
columnCount: Int? = null,
columnSpan: Int? = null,
crossContentAlignment: DivGallery.CrossContentAlignment? = null,
crossSpacing: Int? = null,
defaultItem: Int? = null,
extensions: List? = null,
focus: DivFocus? = null,
height: DivSize? = null,
id: String? = null,
itemSpacing: Int? = null,
margins: DivEdgeInsets? = null,
orientation: DivGallery.Orientation? = null,
paddings: DivEdgeInsets? = null,
restrictParentScroll: BoolInt? = null,
rowSpan: Int? = null,
scrollMode: DivGallery.ScrollMode? = null,
selectedActions: List? = 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(DivGallery(
accessibility = optionalValue(accessibility),
alignmentHorizontal = optionalValue(alignmentHorizontal),
alignmentVertical = optionalValue(alignmentVertical),
alpha = optionalValue(alpha),
background = optionalValue(background),
border = optionalValue(border),
columnCount = optionalValue(columnCount),
columnSpan = optionalValue(columnSpan),
crossContentAlignment = optionalValue(crossContentAlignment),
crossSpacing = optionalValue(crossSpacing),
defaultItem = optionalValue(defaultItem),
extensions = optionalValue(extensions),
focus = optionalValue(focus),
height = optionalValue(height),
id = optionalValue(id),
itemSpacing = optionalValue(itemSpacing),
items = optionalValue(items),
margins = optionalValue(margins),
orientation = optionalValue(orientation),
paddings = optionalValue(paddings),
restrictParentScroll = optionalValue(restrictParentScroll),
rowSpan = optionalValue(rowSpan),
scrollMode = optionalValue(scrollMode),
selectedActions = optionalValue(selectedActions),
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.divGallery(
items: ValueProperty>,
accessibility: ValueProperty? = null,
alignmentHorizontal: ValueProperty? = null,
alignmentVertical: ValueProperty? = null,
alpha: ValueProperty? = null,
background: ValueProperty>? = null,
border: ValueProperty? = null,
columnCount: ValueProperty? = null,
columnSpan: ValueProperty? = null,
crossContentAlignment: ValueProperty? = null,
crossSpacing: ValueProperty? = null,
defaultItem: ValueProperty? = null,
extensions: ValueProperty>? = null,
focus: ValueProperty? = null,
height: ValueProperty? = null,
id: ValueProperty? = null,
itemSpacing: ValueProperty? = null,
margins: ValueProperty? = null,
orientation: ValueProperty? = null,
paddings: ValueProperty? = null,
restrictParentScroll: ValueProperty? = null,
rowSpan: ValueProperty? = null,
scrollMode: ValueProperty? = null,
selectedActions: 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,
): DivGallery {
return DivGallery(
accessibility = accessibility,
alignmentHorizontal = alignmentHorizontal,
alignmentVertical = alignmentVertical,
alpha = alpha,
background = background,
border = border,
columnCount = columnCount,
columnSpan = columnSpan,
crossContentAlignment = crossContentAlignment,
crossSpacing = crossSpacing,
defaultItem = defaultItem,
extensions = extensions,
focus = focus,
height = height,
id = id,
itemSpacing = itemSpacing,
items = items,
margins = margins,
orientation = orientation,
paddings = paddings,
restrictParentScroll = restrictParentScroll,
rowSpan = rowSpan,
scrollMode = scrollMode,
selectedActions = selectedActions,
tooltips = tooltips,
transform = transform,
transitionChange = transitionChange,
transitionIn = transitionIn,
transitionOut = transitionOut,
transitionTriggers = transitionTriggers,
visibility = visibility,
visibilityAction = visibilityAction,
visibilityActions = visibilityActions,
width = width,
)
}
fun CardContext.divGallery(
items: List,
accessibility: DivAccessibility? = null,
alignmentHorizontal: DivAlignmentHorizontal? = null,
alignmentVertical: DivAlignmentVertical? = null,
alpha: Double? = null,
background: List? = null,
border: DivBorder? = null,
columnCount: Int? = null,
columnSpan: Int? = null,
crossContentAlignment: DivGallery.CrossContentAlignment? = null,
crossSpacing: Int? = null,
defaultItem: Int? = null,
extensions: List? = null,
focus: DivFocus? = null,
height: DivSize? = null,
id: String? = null,
itemSpacing: Int? = null,
margins: DivEdgeInsets? = null,
orientation: DivGallery.Orientation? = null,
paddings: DivEdgeInsets? = null,
restrictParentScroll: BoolInt? = null,
rowSpan: Int? = null,
scrollMode: DivGallery.ScrollMode? = null,
selectedActions: List? = 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,
): DivGallery {
return DivGallery(
accessibility = optionalValue(accessibility),
alignmentHorizontal = optionalValue(alignmentHorizontal),
alignmentVertical = optionalValue(alignmentVertical),
alpha = optionalValue(alpha),
background = optionalValue(background),
border = optionalValue(border),
columnCount = optionalValue(columnCount),
columnSpan = optionalValue(columnSpan),
crossContentAlignment = optionalValue(crossContentAlignment),
crossSpacing = optionalValue(crossSpacing),
defaultItem = optionalValue(defaultItem),
extensions = optionalValue(extensions),
focus = optionalValue(focus),
height = optionalValue(height),
id = optionalValue(id),
itemSpacing = optionalValue(itemSpacing),
items = value(items),
margins = optionalValue(margins),
orientation = optionalValue(orientation),
paddings = optionalValue(paddings),
restrictParentScroll = optionalValue(restrictParentScroll),
rowSpan = optionalValue(rowSpan),
scrollMode = optionalValue(scrollMode),
selectedActions = optionalValue(selectedActions),
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),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy