From d1ae6518f8c6c80fa7de0eb02aa57d78b1a7ca1c Mon Sep 17 00:00:00 2001 From: robot-divkit Date: Thu, 5 Sep 2024 08:20:49 +0300 Subject: [PATCH] Updated version to 30.17.0 245e6bb2ea9e78b39ce4141c377db7fdbbe43296 --- .mapping.json | 10 + client/ios/Configurations/Version.xcconfig | 2 +- client/ios/DivKit/DivKitInfo.swift | 2 +- client/web/divkit/package.json | 2 +- .../kotlin/divkit/dsl/ActionAnimatorStart.kt | 297 ++++++++++++++ .../kotlin/divkit/dsl/ActionAnimatorStop.kt | 112 ++++++ .../kotlin/divkit/dsl/ActionShowTooltip.kt | 157 ++++++++ .../kotlin/divkit/dsl/ActionTimer.kt | 168 ++++++++ .../kotlin/divkit/dsl/ActionTyped.kt | 2 +- .../kotlin/divkit/dsl/ActionVideo.kt | 168 ++++++++ .../kotlin/divkit/dsl/AnimationDirection.kt | 27 ++ .../generated/kotlin/divkit/dsl/Animator.kt | 27 ++ .../kotlin/divkit/dsl/AnimatorBase.kt | 317 +++++++++++++++ .../kotlin/divkit/dsl/ColorAnimator.kt | 369 ++++++++++++++++++ .../generated/kotlin/divkit/dsl/Container.kt | 79 +++- .../src/generated/kotlin/divkit/dsl/Custom.kt | 49 ++- .../generated/kotlin/divkit/dsl/EnumValues.kt | 97 ++++- .../generated/kotlin/divkit/dsl/Gallery.kt | 49 ++- .../generated/kotlin/divkit/dsl/GifImage.kt | 49 ++- .../src/generated/kotlin/divkit/dsl/Grid.kt | 49 ++- .../src/generated/kotlin/divkit/dsl/Image.kt | 49 ++- .../generated/kotlin/divkit/dsl/Indicator.kt | 49 ++- .../src/generated/kotlin/divkit/dsl/Input.kt | 49 ++- .../kotlin/divkit/dsl/NumberAnimator.kt | 369 ++++++++++++++++++ .../src/generated/kotlin/divkit/dsl/Pager.kt | 49 ++- .../src/generated/kotlin/divkit/dsl/Select.kt | 49 ++- .../generated/kotlin/divkit/dsl/Separator.kt | 49 ++- .../src/generated/kotlin/divkit/dsl/Slider.kt | 49 ++- .../src/generated/kotlin/divkit/dsl/State.kt | 49 ++- .../src/generated/kotlin/divkit/dsl/Tabs.kt | 49 ++- .../src/generated/kotlin/divkit/dsl/Text.kt | 52 ++- .../src/generated/kotlin/divkit/dsl/Video.kt | 49 ++- json-builder/python/pyproject.toml | 2 +- json-builder/typescript/package.json | 2 +- version | 2 +- 35 files changed, 2763 insertions(+), 186 deletions(-) create mode 100644 json-builder/kotlin/src/generated/kotlin/divkit/dsl/ActionAnimatorStart.kt create mode 100644 json-builder/kotlin/src/generated/kotlin/divkit/dsl/ActionAnimatorStop.kt create mode 100644 json-builder/kotlin/src/generated/kotlin/divkit/dsl/ActionShowTooltip.kt create mode 100644 json-builder/kotlin/src/generated/kotlin/divkit/dsl/ActionTimer.kt create mode 100644 json-builder/kotlin/src/generated/kotlin/divkit/dsl/ActionVideo.kt create mode 100644 json-builder/kotlin/src/generated/kotlin/divkit/dsl/AnimationDirection.kt create mode 100644 json-builder/kotlin/src/generated/kotlin/divkit/dsl/Animator.kt create mode 100644 json-builder/kotlin/src/generated/kotlin/divkit/dsl/AnimatorBase.kt create mode 100644 json-builder/kotlin/src/generated/kotlin/divkit/dsl/ColorAnimator.kt create mode 100644 json-builder/kotlin/src/generated/kotlin/divkit/dsl/NumberAnimator.kt diff --git a/.mapping.json b/.mapping.json index ea808dc4d..52e7cd90a 100644 --- a/.mapping.json +++ b/.mapping.json @@ -16109,6 +16109,8 @@ "json-builder/kotlin/src/generated/kotlin/divkit/dsl/AbsoluteEdgeInsets.kt":"divkit/public/json-builder/kotlin/src/generated/kotlin/divkit/dsl/AbsoluteEdgeInsets.kt", "json-builder/kotlin/src/generated/kotlin/divkit/dsl/Accessibility.kt":"divkit/public/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Accessibility.kt", "json-builder/kotlin/src/generated/kotlin/divkit/dsl/Action.kt":"divkit/public/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Action.kt", + "json-builder/kotlin/src/generated/kotlin/divkit/dsl/ActionAnimatorStart.kt":"divkit/public/json-builder/kotlin/src/generated/kotlin/divkit/dsl/ActionAnimatorStart.kt", + "json-builder/kotlin/src/generated/kotlin/divkit/dsl/ActionAnimatorStop.kt":"divkit/public/json-builder/kotlin/src/generated/kotlin/divkit/dsl/ActionAnimatorStop.kt", "json-builder/kotlin/src/generated/kotlin/divkit/dsl/ActionArrayInsertValue.kt":"divkit/public/json-builder/kotlin/src/generated/kotlin/divkit/dsl/ActionArrayInsertValue.kt", "json-builder/kotlin/src/generated/kotlin/divkit/dsl/ActionArrayRemoveValue.kt":"divkit/public/json-builder/kotlin/src/generated/kotlin/divkit/dsl/ActionArrayRemoveValue.kt", "json-builder/kotlin/src/generated/kotlin/divkit/dsl/ActionArraySetValue.kt":"divkit/public/json-builder/kotlin/src/generated/kotlin/divkit/dsl/ActionArraySetValue.kt", @@ -16118,11 +16120,17 @@ "json-builder/kotlin/src/generated/kotlin/divkit/dsl/ActionDictSetValue.kt":"divkit/public/json-builder/kotlin/src/generated/kotlin/divkit/dsl/ActionDictSetValue.kt", "json-builder/kotlin/src/generated/kotlin/divkit/dsl/ActionFocusElement.kt":"divkit/public/json-builder/kotlin/src/generated/kotlin/divkit/dsl/ActionFocusElement.kt", "json-builder/kotlin/src/generated/kotlin/divkit/dsl/ActionSetVariable.kt":"divkit/public/json-builder/kotlin/src/generated/kotlin/divkit/dsl/ActionSetVariable.kt", + "json-builder/kotlin/src/generated/kotlin/divkit/dsl/ActionShowTooltip.kt":"divkit/public/json-builder/kotlin/src/generated/kotlin/divkit/dsl/ActionShowTooltip.kt", + "json-builder/kotlin/src/generated/kotlin/divkit/dsl/ActionTimer.kt":"divkit/public/json-builder/kotlin/src/generated/kotlin/divkit/dsl/ActionTimer.kt", "json-builder/kotlin/src/generated/kotlin/divkit/dsl/ActionTyped.kt":"divkit/public/json-builder/kotlin/src/generated/kotlin/divkit/dsl/ActionTyped.kt", + "json-builder/kotlin/src/generated/kotlin/divkit/dsl/ActionVideo.kt":"divkit/public/json-builder/kotlin/src/generated/kotlin/divkit/dsl/ActionVideo.kt", "json-builder/kotlin/src/generated/kotlin/divkit/dsl/AlignmentHorizontal.kt":"divkit/public/json-builder/kotlin/src/generated/kotlin/divkit/dsl/AlignmentHorizontal.kt", "json-builder/kotlin/src/generated/kotlin/divkit/dsl/AlignmentVertical.kt":"divkit/public/json-builder/kotlin/src/generated/kotlin/divkit/dsl/AlignmentVertical.kt", "json-builder/kotlin/src/generated/kotlin/divkit/dsl/Animation.kt":"divkit/public/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Animation.kt", + "json-builder/kotlin/src/generated/kotlin/divkit/dsl/AnimationDirection.kt":"divkit/public/json-builder/kotlin/src/generated/kotlin/divkit/dsl/AnimationDirection.kt", "json-builder/kotlin/src/generated/kotlin/divkit/dsl/AnimationInterpolator.kt":"divkit/public/json-builder/kotlin/src/generated/kotlin/divkit/dsl/AnimationInterpolator.kt", + "json-builder/kotlin/src/generated/kotlin/divkit/dsl/Animator.kt":"divkit/public/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Animator.kt", + "json-builder/kotlin/src/generated/kotlin/divkit/dsl/AnimatorBase.kt":"divkit/public/json-builder/kotlin/src/generated/kotlin/divkit/dsl/AnimatorBase.kt", "json-builder/kotlin/src/generated/kotlin/divkit/dsl/AppearanceSetTransition.kt":"divkit/public/json-builder/kotlin/src/generated/kotlin/divkit/dsl/AppearanceSetTransition.kt", "json-builder/kotlin/src/generated/kotlin/divkit/dsl/AppearanceTransition.kt":"divkit/public/json-builder/kotlin/src/generated/kotlin/divkit/dsl/AppearanceTransition.kt", "json-builder/kotlin/src/generated/kotlin/divkit/dsl/ArrayValue.kt":"divkit/public/json-builder/kotlin/src/generated/kotlin/divkit/dsl/ArrayValue.kt", @@ -16139,6 +16147,7 @@ "json-builder/kotlin/src/generated/kotlin/divkit/dsl/ChangeTransition.kt":"divkit/public/json-builder/kotlin/src/generated/kotlin/divkit/dsl/ChangeTransition.kt", "json-builder/kotlin/src/generated/kotlin/divkit/dsl/CircleShape.kt":"divkit/public/json-builder/kotlin/src/generated/kotlin/divkit/dsl/CircleShape.kt", "json-builder/kotlin/src/generated/kotlin/divkit/dsl/CollectionItemBuilder.kt":"divkit/public/json-builder/kotlin/src/generated/kotlin/divkit/dsl/CollectionItemBuilder.kt", + "json-builder/kotlin/src/generated/kotlin/divkit/dsl/ColorAnimator.kt":"divkit/public/json-builder/kotlin/src/generated/kotlin/divkit/dsl/ColorAnimator.kt", "json-builder/kotlin/src/generated/kotlin/divkit/dsl/ColorValue.kt":"divkit/public/json-builder/kotlin/src/generated/kotlin/divkit/dsl/ColorValue.kt", "json-builder/kotlin/src/generated/kotlin/divkit/dsl/ColorVariable.kt":"divkit/public/json-builder/kotlin/src/generated/kotlin/divkit/dsl/ColorVariable.kt", "json-builder/kotlin/src/generated/kotlin/divkit/dsl/Container.kt":"divkit/public/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Container.kt", @@ -16196,6 +16205,7 @@ "json-builder/kotlin/src/generated/kotlin/divkit/dsl/MatchParentSize.kt":"divkit/public/json-builder/kotlin/src/generated/kotlin/divkit/dsl/MatchParentSize.kt", "json-builder/kotlin/src/generated/kotlin/divkit/dsl/NeighbourPageSize.kt":"divkit/public/json-builder/kotlin/src/generated/kotlin/divkit/dsl/NeighbourPageSize.kt", "json-builder/kotlin/src/generated/kotlin/divkit/dsl/NinePatchBackground.kt":"divkit/public/json-builder/kotlin/src/generated/kotlin/divkit/dsl/NinePatchBackground.kt", + "json-builder/kotlin/src/generated/kotlin/divkit/dsl/NumberAnimator.kt":"divkit/public/json-builder/kotlin/src/generated/kotlin/divkit/dsl/NumberAnimator.kt", "json-builder/kotlin/src/generated/kotlin/divkit/dsl/NumberValue.kt":"divkit/public/json-builder/kotlin/src/generated/kotlin/divkit/dsl/NumberValue.kt", "json-builder/kotlin/src/generated/kotlin/divkit/dsl/NumberVariable.kt":"divkit/public/json-builder/kotlin/src/generated/kotlin/divkit/dsl/NumberVariable.kt", "json-builder/kotlin/src/generated/kotlin/divkit/dsl/PageSize.kt":"divkit/public/json-builder/kotlin/src/generated/kotlin/divkit/dsl/PageSize.kt", diff --git a/client/ios/Configurations/Version.xcconfig b/client/ios/Configurations/Version.xcconfig index e77b72218..b50742daf 100644 --- a/client/ios/Configurations/Version.xcconfig +++ b/client/ios/Configurations/Version.xcconfig @@ -1,2 +1,2 @@ -MARKETING_VERSION = 30.16.0 +MARKETING_VERSION = 30.17.0 CURRENT_PROJECT_VERSION = 30 diff --git a/client/ios/DivKit/DivKitInfo.swift b/client/ios/DivKit/DivKitInfo.swift index 8dc29eaa8..8dd5713ff 100644 --- a/client/ios/DivKit/DivKitInfo.swift +++ b/client/ios/DivKit/DivKitInfo.swift @@ -1,3 +1,3 @@ public enum DivKitInfo { - public static let version = "30.16.0" + public static let version = "30.17.0" } diff --git a/client/web/divkit/package.json b/client/web/divkit/package.json index cb28fad38..ceee04f31 100644 --- a/client/web/divkit/package.json +++ b/client/web/divkit/package.json @@ -1,6 +1,6 @@ { "name": "@divkitframework/divkit", - "version": "30.16.0", + "version": "30.17.0", "description": "DivKit for the web", "keywords": [ "server-driven-ui", diff --git a/json-builder/kotlin/src/generated/kotlin/divkit/dsl/ActionAnimatorStart.kt b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/ActionAnimatorStart.kt new file mode 100644 index 000000000..883358199 --- /dev/null +++ b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/ActionAnimatorStart.kt @@ -0,0 +1,297 @@ +@file:Suppress( + "unused", + "UNUSED_PARAMETER", +) + +package divkit.dsl + +import com.fasterxml.jackson.annotation.JsonAnyGetter +import com.fasterxml.jackson.annotation.JsonIgnore +import com.fasterxml.jackson.annotation.JsonValue +import divkit.dsl.annotation.* +import divkit.dsl.core.* +import divkit.dsl.scope.* +import kotlin.Any +import kotlin.String +import kotlin.Suppress +import kotlin.collections.List +import kotlin.collections.Map + +/** + * Starts specified animator + * + * Can be created using the method [actionAnimatorStart]. + * + * Required parameters: `type, animator_id`. + */ +@Generated +class ActionAnimatorStart internal constructor( + @JsonIgnore + val properties: Properties, +) : ActionTyped { + @JsonAnyGetter + internal fun getJsonProperties(): Map = properties.mergeWith( + mapOf("type" to "animator_start") + ) + + operator fun plus(additive: Properties): ActionAnimatorStart = ActionAnimatorStart( + Properties( + animatorId = additive.animatorId ?: properties.animatorId, + direction = additive.direction ?: properties.direction, + duration = additive.duration ?: properties.duration, + endValue = additive.endValue ?: properties.endValue, + interpolator = additive.interpolator ?: properties.interpolator, + repeatCount = additive.repeatCount ?: properties.repeatCount, + startDelay = additive.startDelay ?: properties.startDelay, + startValue = additive.startValue ?: properties.startValue, + ) + ) + + class Properties internal constructor( + /** + * The identifier of the animator being started. + */ + val animatorId: Property?, + /** + * Animation direction. This property sets whether an animation should play forward, backward, or alternate back and forth between playing the sequence forward and backward. + */ + val direction: Property?, + /** + * Animation duration in milliseconds. + */ + val duration: Property?, + /** + * Overrides value that will be set at the end of animation. + */ + val endValue: Property?, + /** + * Interpolation function. + */ + val interpolator: Property?, + /** + * The number of times the animation will repeat before it finishes. `0` enables infinite repeats. + */ + val repeatCount: Property?, + /** + * Animation start delay in milliseconds. + */ + val startDelay: Property?, + /** + * Overrides value that will be set at the start of animation. + */ + val startValue: Property?, + ) { + internal fun mergeWith(properties: Map): Map { + val result = mutableMapOf() + result.putAll(properties) + result.tryPutProperty("animator_id", animatorId) + result.tryPutProperty("direction", direction) + result.tryPutProperty("duration", duration) + result.tryPutProperty("end_value", endValue) + result.tryPutProperty("interpolator", interpolator) + result.tryPutProperty("repeat_count", repeatCount) + result.tryPutProperty("start_delay", startDelay) + result.tryPutProperty("start_value", startValue) + return result + } + } +} + +/** + * @param animatorId The identifier of the animator being started. + * @param direction Animation direction. This property sets whether an animation should play forward, backward, or alternate back and forth between playing the sequence forward and backward. + * @param duration Animation duration in milliseconds. + * @param endValue Overrides value that will be set at the end of animation. + * @param interpolator Interpolation function. + * @param repeatCount The number of times the animation will repeat before it finishes. `0` enables infinite repeats. + * @param startDelay Animation start delay in milliseconds. + * @param startValue Overrides value that will be set at the start of animation. + */ +@Generated +fun DivScope.actionAnimatorStart( + `use named arguments`: Guard = Guard.instance, + animatorId: String? = null, + direction: AnimationDirection? = null, + duration: Long? = null, + endValue: TypedValue? = null, + interpolator: AnimationInterpolator? = null, + repeatCount: Int? = null, + startDelay: Int? = null, + startValue: TypedValue? = null, +): ActionAnimatorStart = ActionAnimatorStart( + ActionAnimatorStart.Properties( + animatorId = valueOrNull(animatorId), + direction = valueOrNull(direction), + duration = valueOrNull(duration), + endValue = valueOrNull(endValue), + interpolator = valueOrNull(interpolator), + repeatCount = valueOrNull(repeatCount), + startDelay = valueOrNull(startDelay), + startValue = valueOrNull(startValue), + ) +) + +/** + * @param animatorId The identifier of the animator being started. + * @param direction Animation direction. This property sets whether an animation should play forward, backward, or alternate back and forth between playing the sequence forward and backward. + * @param duration Animation duration in milliseconds. + * @param endValue Overrides value that will be set at the end of animation. + * @param interpolator Interpolation function. + * @param repeatCount The number of times the animation will repeat before it finishes. `0` enables infinite repeats. + * @param startDelay Animation start delay in milliseconds. + * @param startValue Overrides value that will be set at the start of animation. + */ +@Generated +fun DivScope.actionAnimatorStartProps( + `use named arguments`: Guard = Guard.instance, + animatorId: String? = null, + direction: AnimationDirection? = null, + duration: Long? = null, + endValue: TypedValue? = null, + interpolator: AnimationInterpolator? = null, + repeatCount: Int? = null, + startDelay: Int? = null, + startValue: TypedValue? = null, +) = ActionAnimatorStart.Properties( + animatorId = valueOrNull(animatorId), + direction = valueOrNull(direction), + duration = valueOrNull(duration), + endValue = valueOrNull(endValue), + interpolator = valueOrNull(interpolator), + repeatCount = valueOrNull(repeatCount), + startDelay = valueOrNull(startDelay), + startValue = valueOrNull(startValue), +) + +/** + * @param animatorId The identifier of the animator being started. + * @param direction Animation direction. This property sets whether an animation should play forward, backward, or alternate back and forth between playing the sequence forward and backward. + * @param duration Animation duration in milliseconds. + * @param endValue Overrides value that will be set at the end of animation. + * @param interpolator Interpolation function. + * @param repeatCount The number of times the animation will repeat before it finishes. `0` enables infinite repeats. + * @param startDelay Animation start delay in milliseconds. + * @param startValue Overrides value that will be set at the start of animation. + */ +@Generated +fun TemplateScope.actionAnimatorStartRefs( + `use named arguments`: Guard = Guard.instance, + animatorId: ReferenceProperty? = null, + direction: ReferenceProperty? = null, + duration: ReferenceProperty? = null, + endValue: ReferenceProperty? = null, + interpolator: ReferenceProperty? = null, + repeatCount: ReferenceProperty? = null, + startDelay: ReferenceProperty? = null, + startValue: ReferenceProperty? = null, +) = ActionAnimatorStart.Properties( + animatorId = animatorId, + direction = direction, + duration = duration, + endValue = endValue, + interpolator = interpolator, + repeatCount = repeatCount, + startDelay = startDelay, + startValue = startValue, +) + +/** + * @param animatorId The identifier of the animator being started. + * @param direction Animation direction. This property sets whether an animation should play forward, backward, or alternate back and forth between playing the sequence forward and backward. + * @param duration Animation duration in milliseconds. + * @param endValue Overrides value that will be set at the end of animation. + * @param interpolator Interpolation function. + * @param repeatCount The number of times the animation will repeat before it finishes. `0` enables infinite repeats. + * @param startDelay Animation start delay in milliseconds. + * @param startValue Overrides value that will be set at the start of animation. + */ +@Generated +fun ActionAnimatorStart.override( + `use named arguments`: Guard = Guard.instance, + animatorId: String? = null, + direction: AnimationDirection? = null, + duration: Long? = null, + endValue: TypedValue? = null, + interpolator: AnimationInterpolator? = null, + repeatCount: Int? = null, + startDelay: Int? = null, + startValue: TypedValue? = null, +): ActionAnimatorStart = ActionAnimatorStart( + ActionAnimatorStart.Properties( + animatorId = valueOrNull(animatorId) ?: properties.animatorId, + direction = valueOrNull(direction) ?: properties.direction, + duration = valueOrNull(duration) ?: properties.duration, + endValue = valueOrNull(endValue) ?: properties.endValue, + interpolator = valueOrNull(interpolator) ?: properties.interpolator, + repeatCount = valueOrNull(repeatCount) ?: properties.repeatCount, + startDelay = valueOrNull(startDelay) ?: properties.startDelay, + startValue = valueOrNull(startValue) ?: properties.startValue, + ) +) + +/** + * @param animatorId The identifier of the animator being started. + * @param direction Animation direction. This property sets whether an animation should play forward, backward, or alternate back and forth between playing the sequence forward and backward. + * @param duration Animation duration in milliseconds. + * @param endValue Overrides value that will be set at the end of animation. + * @param interpolator Interpolation function. + * @param repeatCount The number of times the animation will repeat before it finishes. `0` enables infinite repeats. + * @param startDelay Animation start delay in milliseconds. + * @param startValue Overrides value that will be set at the start of animation. + */ +@Generated +fun ActionAnimatorStart.defer( + `use named arguments`: Guard = Guard.instance, + animatorId: ReferenceProperty? = null, + direction: ReferenceProperty? = null, + duration: ReferenceProperty? = null, + endValue: ReferenceProperty? = null, + interpolator: ReferenceProperty? = null, + repeatCount: ReferenceProperty? = null, + startDelay: ReferenceProperty? = null, + startValue: ReferenceProperty? = null, +): ActionAnimatorStart = ActionAnimatorStart( + ActionAnimatorStart.Properties( + animatorId = animatorId ?: properties.animatorId, + direction = direction ?: properties.direction, + duration = duration ?: properties.duration, + endValue = endValue ?: properties.endValue, + interpolator = interpolator ?: properties.interpolator, + repeatCount = repeatCount ?: properties.repeatCount, + startDelay = startDelay ?: properties.startDelay, + startValue = startValue ?: properties.startValue, + ) +) + +/** + * @param animatorId The identifier of the animator being started. + * @param direction Animation direction. This property sets whether an animation should play forward, backward, or alternate back and forth between playing the sequence forward and backward. + * @param duration Animation duration in milliseconds. + * @param interpolator Interpolation function. + * @param repeatCount The number of times the animation will repeat before it finishes. `0` enables infinite repeats. + * @param startDelay Animation start delay in milliseconds. + */ +@Generated +fun ActionAnimatorStart.evaluate( + `use named arguments`: Guard = Guard.instance, + animatorId: ExpressionProperty? = null, + direction: ExpressionProperty? = null, + duration: ExpressionProperty? = null, + interpolator: ExpressionProperty? = null, + repeatCount: ExpressionProperty? = null, + startDelay: ExpressionProperty? = null, +): ActionAnimatorStart = ActionAnimatorStart( + ActionAnimatorStart.Properties( + animatorId = animatorId ?: properties.animatorId, + direction = direction ?: properties.direction, + duration = duration ?: properties.duration, + endValue = properties.endValue, + interpolator = interpolator ?: properties.interpolator, + repeatCount = repeatCount ?: properties.repeatCount, + startDelay = startDelay ?: properties.startDelay, + startValue = properties.startValue, + ) +) + +@Generated +fun ActionAnimatorStart.asList() = listOf(this) diff --git a/json-builder/kotlin/src/generated/kotlin/divkit/dsl/ActionAnimatorStop.kt b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/ActionAnimatorStop.kt new file mode 100644 index 000000000..bbd04d0c4 --- /dev/null +++ b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/ActionAnimatorStop.kt @@ -0,0 +1,112 @@ +@file:Suppress( + "unused", + "UNUSED_PARAMETER", +) + +package divkit.dsl + +import com.fasterxml.jackson.annotation.JsonAnyGetter +import com.fasterxml.jackson.annotation.JsonIgnore +import com.fasterxml.jackson.annotation.JsonValue +import divkit.dsl.annotation.* +import divkit.dsl.core.* +import divkit.dsl.scope.* +import kotlin.Any +import kotlin.String +import kotlin.Suppress +import kotlin.collections.List +import kotlin.collections.Map + +/** + * Stops specified animator + * + * Can be created using the method [actionAnimatorStop]. + * + * Required parameters: `type, animator_id`. + */ +@Generated +class ActionAnimatorStop internal constructor( + @JsonIgnore + val properties: Properties, +) : ActionTyped { + @JsonAnyGetter + internal fun getJsonProperties(): Map = properties.mergeWith( + mapOf("type" to "animator_stop") + ) + + operator fun plus(additive: Properties): ActionAnimatorStop = ActionAnimatorStop( + Properties( + animatorId = additive.animatorId ?: properties.animatorId, + ) + ) + + class Properties internal constructor( + val animatorId: Property?, + ) { + internal fun mergeWith(properties: Map): Map { + val result = mutableMapOf() + result.putAll(properties) + result.tryPutProperty("animator_id", animatorId) + return result + } + } +} + +@Generated +fun DivScope.actionAnimatorStop( + `use named arguments`: Guard = Guard.instance, + animatorId: String? = null, +): ActionAnimatorStop = ActionAnimatorStop( + ActionAnimatorStop.Properties( + animatorId = valueOrNull(animatorId), + ) +) + +@Generated +fun DivScope.actionAnimatorStopProps( + `use named arguments`: Guard = Guard.instance, + animatorId: String? = null, +) = ActionAnimatorStop.Properties( + animatorId = valueOrNull(animatorId), +) + +@Generated +fun TemplateScope.actionAnimatorStopRefs( + `use named arguments`: Guard = Guard.instance, + animatorId: ReferenceProperty? = null, +) = ActionAnimatorStop.Properties( + animatorId = animatorId, +) + +@Generated +fun ActionAnimatorStop.override( + `use named arguments`: Guard = Guard.instance, + animatorId: String? = null, +): ActionAnimatorStop = ActionAnimatorStop( + ActionAnimatorStop.Properties( + animatorId = valueOrNull(animatorId) ?: properties.animatorId, + ) +) + +@Generated +fun ActionAnimatorStop.defer( + `use named arguments`: Guard = Guard.instance, + animatorId: ReferenceProperty? = null, +): ActionAnimatorStop = ActionAnimatorStop( + ActionAnimatorStop.Properties( + animatorId = animatorId ?: properties.animatorId, + ) +) + +@Generated +fun ActionAnimatorStop.evaluate( + `use named arguments`: Guard = Guard.instance, + animatorId: ExpressionProperty? = null, +): ActionAnimatorStop = ActionAnimatorStop( + ActionAnimatorStop.Properties( + animatorId = animatorId ?: properties.animatorId, + ) +) + +@Generated +fun ActionAnimatorStop.asList() = listOf(this) diff --git a/json-builder/kotlin/src/generated/kotlin/divkit/dsl/ActionShowTooltip.kt b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/ActionShowTooltip.kt new file mode 100644 index 000000000..509d6fb26 --- /dev/null +++ b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/ActionShowTooltip.kt @@ -0,0 +1,157 @@ +@file:Suppress( + "unused", + "UNUSED_PARAMETER", +) + +package divkit.dsl + +import com.fasterxml.jackson.annotation.JsonAnyGetter +import com.fasterxml.jackson.annotation.JsonIgnore +import com.fasterxml.jackson.annotation.JsonValue +import divkit.dsl.annotation.* +import divkit.dsl.core.* +import divkit.dsl.scope.* +import kotlin.Any +import kotlin.String +import kotlin.Suppress +import kotlin.collections.List +import kotlin.collections.Map + +/** + * Shows tooltip. + * + * Can be created using the method [actionShowTooltip]. + * + * Required parameters: `type, id`. + */ +@Generated +class ActionShowTooltip internal constructor( + @JsonIgnore + val properties: Properties, +) : ActionTyped { + @JsonAnyGetter + internal fun getJsonProperties(): Map = properties.mergeWith( + mapOf("type" to "show_tooltip") + ) + + operator fun plus(additive: Properties): ActionShowTooltip = ActionShowTooltip( + Properties( + id = additive.id ?: properties.id, + multiple = additive.multiple ?: properties.multiple, + ) + ) + + class Properties internal constructor( + /** + * Tooltip identifier. + */ + val id: Property?, + /** + * Defines whether tooltip can be shown again after being closed. + */ + val multiple: Property?, + ) { + internal fun mergeWith(properties: Map): Map { + val result = mutableMapOf() + result.putAll(properties) + result.tryPutProperty("id", id) + result.tryPutProperty("multiple", multiple) + return result + } + } +} + +/** + * @param id Tooltip identifier. + * @param multiple Defines whether tooltip can be shown again after being closed. + */ +@Generated +fun DivScope.actionShowTooltip( + `use named arguments`: Guard = Guard.instance, + id: String? = null, + multiple: Boolean? = null, +): ActionShowTooltip = ActionShowTooltip( + ActionShowTooltip.Properties( + id = valueOrNull(id), + multiple = valueOrNull(multiple), + ) +) + +/** + * @param id Tooltip identifier. + * @param multiple Defines whether tooltip can be shown again after being closed. + */ +@Generated +fun DivScope.actionShowTooltipProps( + `use named arguments`: Guard = Guard.instance, + id: String? = null, + multiple: Boolean? = null, +) = ActionShowTooltip.Properties( + id = valueOrNull(id), + multiple = valueOrNull(multiple), +) + +/** + * @param id Tooltip identifier. + * @param multiple Defines whether tooltip can be shown again after being closed. + */ +@Generated +fun TemplateScope.actionShowTooltipRefs( + `use named arguments`: Guard = Guard.instance, + id: ReferenceProperty? = null, + multiple: ReferenceProperty? = null, +) = ActionShowTooltip.Properties( + id = id, + multiple = multiple, +) + +/** + * @param id Tooltip identifier. + * @param multiple Defines whether tooltip can be shown again after being closed. + */ +@Generated +fun ActionShowTooltip.override( + `use named arguments`: Guard = Guard.instance, + id: String? = null, + multiple: Boolean? = null, +): ActionShowTooltip = ActionShowTooltip( + ActionShowTooltip.Properties( + id = valueOrNull(id) ?: properties.id, + multiple = valueOrNull(multiple) ?: properties.multiple, + ) +) + +/** + * @param id Tooltip identifier. + * @param multiple Defines whether tooltip can be shown again after being closed. + */ +@Generated +fun ActionShowTooltip.defer( + `use named arguments`: Guard = Guard.instance, + id: ReferenceProperty? = null, + multiple: ReferenceProperty? = null, +): ActionShowTooltip = ActionShowTooltip( + ActionShowTooltip.Properties( + id = id ?: properties.id, + multiple = multiple ?: properties.multiple, + ) +) + +/** + * @param id Tooltip identifier. + * @param multiple Defines whether tooltip can be shown again after being closed. + */ +@Generated +fun ActionShowTooltip.evaluate( + `use named arguments`: Guard = Guard.instance, + id: ExpressionProperty? = null, + multiple: ExpressionProperty? = null, +): ActionShowTooltip = ActionShowTooltip( + ActionShowTooltip.Properties( + id = id ?: properties.id, + multiple = multiple ?: properties.multiple, + ) +) + +@Generated +fun ActionShowTooltip.asList() = listOf(this) diff --git a/json-builder/kotlin/src/generated/kotlin/divkit/dsl/ActionTimer.kt b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/ActionTimer.kt new file mode 100644 index 000000000..1fc4488fe --- /dev/null +++ b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/ActionTimer.kt @@ -0,0 +1,168 @@ +@file:Suppress( + "unused", + "UNUSED_PARAMETER", +) + +package divkit.dsl + +import com.fasterxml.jackson.annotation.JsonAnyGetter +import com.fasterxml.jackson.annotation.JsonIgnore +import com.fasterxml.jackson.annotation.JsonValue +import divkit.dsl.annotation.* +import divkit.dsl.core.* +import divkit.dsl.scope.* +import kotlin.Any +import kotlin.String +import kotlin.Suppress +import kotlin.collections.List +import kotlin.collections.Map + +/** + * Controls the timer. + * + * Can be created using the method [actionTimer]. + * + * Required parameters: `type, id, action`. + */ +@Generated +class ActionTimer internal constructor( + @JsonIgnore + val properties: Properties, +) : ActionTyped { + @JsonAnyGetter + internal fun getJsonProperties(): Map = properties.mergeWith( + mapOf("type" to "timer") + ) + + operator fun plus(additive: Properties): ActionTimer = ActionTimer( + Properties( + action = additive.action ?: properties.action, + id = additive.id ?: properties.id, + ) + ) + + class Properties internal constructor( + /** + * Defines timer action:
  • `start`- starts the timer when stopped, does onStart action;
  • `stop`- stops timer, resets the time, does onEnd action;
  • `pause`- pause timer, preserves current time;
  • `resume`- starts timer from paused state, restores saved time;
  • `cancel`- stops timer, resets its state, does onInterrupt action;
  • `reset`- cancels timer and starts it again.
  • + */ + val action: Property?, + /** + * Timer identifier. + */ + val id: Property?, + ) { + internal fun mergeWith(properties: Map): Map { + val result = mutableMapOf() + result.putAll(properties) + result.tryPutProperty("action", action) + result.tryPutProperty("id", id) + return result + } + } + + /** + * Defines timer action:
  • `start`- starts the timer when stopped, does onStart action;
  • `stop`- stops timer, resets the time, does onEnd action;
  • `pause`- pause timer, preserves current time;
  • `resume`- starts timer from paused state, restores saved time;
  • `cancel`- stops timer, resets its state, does onInterrupt action;
  • `reset`- cancels timer and starts it again.
  • + * + * Possible values: [start], [stop], [pause], [resume], [cancel], [reset]. + */ + @Generated + sealed interface Action +} + +/** + * @param action Defines timer action:
  • `start`- starts the timer when stopped, does onStart action;
  • `stop`- stops timer, resets the time, does onEnd action;
  • `pause`- pause timer, preserves current time;
  • `resume`- starts timer from paused state, restores saved time;
  • `cancel`- stops timer, resets its state, does onInterrupt action;
  • `reset`- cancels timer and starts it again.
  • + * @param id Timer identifier. + */ +@Generated +fun DivScope.actionTimer( + `use named arguments`: Guard = Guard.instance, + action: ActionTimer.Action? = null, + id: String? = null, +): ActionTimer = ActionTimer( + ActionTimer.Properties( + action = valueOrNull(action), + id = valueOrNull(id), + ) +) + +/** + * @param action Defines timer action:
  • `start`- starts the timer when stopped, does onStart action;
  • `stop`- stops timer, resets the time, does onEnd action;
  • `pause`- pause timer, preserves current time;
  • `resume`- starts timer from paused state, restores saved time;
  • `cancel`- stops timer, resets its state, does onInterrupt action;
  • `reset`- cancels timer and starts it again.
  • + * @param id Timer identifier. + */ +@Generated +fun DivScope.actionTimerProps( + `use named arguments`: Guard = Guard.instance, + action: ActionTimer.Action? = null, + id: String? = null, +) = ActionTimer.Properties( + action = valueOrNull(action), + id = valueOrNull(id), +) + +/** + * @param action Defines timer action:
  • `start`- starts the timer when stopped, does onStart action;
  • `stop`- stops timer, resets the time, does onEnd action;
  • `pause`- pause timer, preserves current time;
  • `resume`- starts timer from paused state, restores saved time;
  • `cancel`- stops timer, resets its state, does onInterrupt action;
  • `reset`- cancels timer and starts it again.
  • + * @param id Timer identifier. + */ +@Generated +fun TemplateScope.actionTimerRefs( + `use named arguments`: Guard = Guard.instance, + action: ReferenceProperty? = null, + id: ReferenceProperty? = null, +) = ActionTimer.Properties( + action = action, + id = id, +) + +/** + * @param action Defines timer action:
  • `start`- starts the timer when stopped, does onStart action;
  • `stop`- stops timer, resets the time, does onEnd action;
  • `pause`- pause timer, preserves current time;
  • `resume`- starts timer from paused state, restores saved time;
  • `cancel`- stops timer, resets its state, does onInterrupt action;
  • `reset`- cancels timer and starts it again.
  • + * @param id Timer identifier. + */ +@Generated +fun ActionTimer.override( + `use named arguments`: Guard = Guard.instance, + action: ActionTimer.Action? = null, + id: String? = null, +): ActionTimer = ActionTimer( + ActionTimer.Properties( + action = valueOrNull(action) ?: properties.action, + id = valueOrNull(id) ?: properties.id, + ) +) + +/** + * @param action Defines timer action:
  • `start`- starts the timer when stopped, does onStart action;
  • `stop`- stops timer, resets the time, does onEnd action;
  • `pause`- pause timer, preserves current time;
  • `resume`- starts timer from paused state, restores saved time;
  • `cancel`- stops timer, resets its state, does onInterrupt action;
  • `reset`- cancels timer and starts it again.
  • + * @param id Timer identifier. + */ +@Generated +fun ActionTimer.defer( + `use named arguments`: Guard = Guard.instance, + action: ReferenceProperty? = null, + id: ReferenceProperty? = null, +): ActionTimer = ActionTimer( + ActionTimer.Properties( + action = action ?: properties.action, + id = id ?: properties.id, + ) +) + +/** + * @param action Defines timer action:
  • `start`- starts the timer when stopped, does onStart action;
  • `stop`- stops timer, resets the time, does onEnd action;
  • `pause`- pause timer, preserves current time;
  • `resume`- starts timer from paused state, restores saved time;
  • `cancel`- stops timer, resets its state, does onInterrupt action;
  • `reset`- cancels timer and starts it again.
  • + * @param id Timer identifier. + */ +@Generated +fun ActionTimer.evaluate( + `use named arguments`: Guard = Guard.instance, + action: ExpressionProperty? = null, + id: ExpressionProperty? = null, +): ActionTimer = ActionTimer( + ActionTimer.Properties( + action = action ?: properties.action, + id = id ?: properties.id, + ) +) + +@Generated +fun ActionTimer.asList() = listOf(this) + +@Generated +fun ActionTimer.Action.asList() = listOf(this) diff --git a/json-builder/kotlin/src/generated/kotlin/divkit/dsl/ActionTyped.kt b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/ActionTyped.kt index 220395fe2..f8b5eac0c 100644 --- a/json-builder/kotlin/src/generated/kotlin/divkit/dsl/ActionTyped.kt +++ b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/ActionTyped.kt @@ -18,7 +18,7 @@ import kotlin.collections.List import kotlin.collections.Map /** - * Possible values: [ActionArrayInsertValue], [ActionArrayRemoveValue], [ActionArraySetValue], [ActionClearFocus], [ActionCopyToClipboard], [ActionDictSetValue], [ActionFocusElement], [ActionSetVariable]. + * Possible values: [ActionAnimatorStart], [ActionAnimatorStop], [ActionArrayInsertValue], [ActionArrayRemoveValue], [ActionArraySetValue], [ActionClearFocus], [ActionCopyToClipboard], [ActionDictSetValue], [ActionFocusElement], [ActionSetVariable], [ActionShowTooltip], [ActionTimer], [ActionVideo]. */ @Generated sealed interface ActionTyped diff --git a/json-builder/kotlin/src/generated/kotlin/divkit/dsl/ActionVideo.kt b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/ActionVideo.kt new file mode 100644 index 000000000..61dfbb0d4 --- /dev/null +++ b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/ActionVideo.kt @@ -0,0 +1,168 @@ +@file:Suppress( + "unused", + "UNUSED_PARAMETER", +) + +package divkit.dsl + +import com.fasterxml.jackson.annotation.JsonAnyGetter +import com.fasterxml.jackson.annotation.JsonIgnore +import com.fasterxml.jackson.annotation.JsonValue +import divkit.dsl.annotation.* +import divkit.dsl.core.* +import divkit.dsl.scope.* +import kotlin.Any +import kotlin.String +import kotlin.Suppress +import kotlin.collections.List +import kotlin.collections.Map + +/** + * Controls given video. + * + * Can be created using the method [actionVideo]. + * + * Required parameters: `type, id, action`. + */ +@Generated +class ActionVideo internal constructor( + @JsonIgnore + val properties: Properties, +) : ActionTyped { + @JsonAnyGetter + internal fun getJsonProperties(): Map = properties.mergeWith( + mapOf("type" to "video") + ) + + operator fun plus(additive: Properties): ActionVideo = ActionVideo( + Properties( + action = additive.action ?: properties.action, + id = additive.id ?: properties.id, + ) + ) + + class Properties internal constructor( + /** + * Defines video action:
  • `start` - play if it is ready or plans to play when video becomes ready;
  • `pause` - pauses video playback.
  • + */ + val action: Property?, + /** + * Video identifier. + */ + val id: Property?, + ) { + internal fun mergeWith(properties: Map): Map { + val result = mutableMapOf() + result.putAll(properties) + result.tryPutProperty("action", action) + result.tryPutProperty("id", id) + return result + } + } + + /** + * Defines video action:
  • `start` - play if it is ready or plans to play when video becomes ready;
  • `pause` - pauses video playback.
  • + * + * Possible values: [start], [pause]. + */ + @Generated + sealed interface Action +} + +/** + * @param action Defines video action:
  • `start` - play if it is ready or plans to play when video becomes ready;
  • `pause` - pauses video playback.
  • + * @param id Video identifier. + */ +@Generated +fun DivScope.actionVideo( + `use named arguments`: Guard = Guard.instance, + action: ActionVideo.Action? = null, + id: String? = null, +): ActionVideo = ActionVideo( + ActionVideo.Properties( + action = valueOrNull(action), + id = valueOrNull(id), + ) +) + +/** + * @param action Defines video action:
  • `start` - play if it is ready or plans to play when video becomes ready;
  • `pause` - pauses video playback.
  • + * @param id Video identifier. + */ +@Generated +fun DivScope.actionVideoProps( + `use named arguments`: Guard = Guard.instance, + action: ActionVideo.Action? = null, + id: String? = null, +) = ActionVideo.Properties( + action = valueOrNull(action), + id = valueOrNull(id), +) + +/** + * @param action Defines video action:
  • `start` - play if it is ready or plans to play when video becomes ready;
  • `pause` - pauses video playback.
  • + * @param id Video identifier. + */ +@Generated +fun TemplateScope.actionVideoRefs( + `use named arguments`: Guard = Guard.instance, + action: ReferenceProperty? = null, + id: ReferenceProperty? = null, +) = ActionVideo.Properties( + action = action, + id = id, +) + +/** + * @param action Defines video action:
  • `start` - play if it is ready or plans to play when video becomes ready;
  • `pause` - pauses video playback.
  • + * @param id Video identifier. + */ +@Generated +fun ActionVideo.override( + `use named arguments`: Guard = Guard.instance, + action: ActionVideo.Action? = null, + id: String? = null, +): ActionVideo = ActionVideo( + ActionVideo.Properties( + action = valueOrNull(action) ?: properties.action, + id = valueOrNull(id) ?: properties.id, + ) +) + +/** + * @param action Defines video action:
  • `start` - play if it is ready or plans to play when video becomes ready;
  • `pause` - pauses video playback.
  • + * @param id Video identifier. + */ +@Generated +fun ActionVideo.defer( + `use named arguments`: Guard = Guard.instance, + action: ReferenceProperty? = null, + id: ReferenceProperty? = null, +): ActionVideo = ActionVideo( + ActionVideo.Properties( + action = action ?: properties.action, + id = id ?: properties.id, + ) +) + +/** + * @param action Defines video action:
  • `start` - play if it is ready or plans to play when video becomes ready;
  • `pause` - pauses video playback.
  • + * @param id Video identifier. + */ +@Generated +fun ActionVideo.evaluate( + `use named arguments`: Guard = Guard.instance, + action: ExpressionProperty? = null, + id: ExpressionProperty? = null, +): ActionVideo = ActionVideo( + ActionVideo.Properties( + action = action ?: properties.action, + id = id ?: properties.id, + ) +) + +@Generated +fun ActionVideo.asList() = listOf(this) + +@Generated +fun ActionVideo.Action.asList() = listOf(this) diff --git a/json-builder/kotlin/src/generated/kotlin/divkit/dsl/AnimationDirection.kt b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/AnimationDirection.kt new file mode 100644 index 000000000..6a624c413 --- /dev/null +++ b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/AnimationDirection.kt @@ -0,0 +1,27 @@ +@file:Suppress( + "unused", + "UNUSED_PARAMETER", +) + +package divkit.dsl + +import com.fasterxml.jackson.annotation.JsonAnyGetter +import com.fasterxml.jackson.annotation.JsonIgnore +import com.fasterxml.jackson.annotation.JsonValue +import divkit.dsl.annotation.* +import divkit.dsl.core.* +import divkit.dsl.scope.* +import kotlin.Any +import kotlin.String +import kotlin.Suppress +import kotlin.collections.List +import kotlin.collections.Map + +/** + * Possible values: [normal], [reverse], [alternate], [alternate_reverse]. + */ +@Generated +sealed interface AnimationDirection + +@Generated +fun AnimationDirection.asList() = listOf(this) diff --git a/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Animator.kt b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Animator.kt new file mode 100644 index 000000000..95f59c7d7 --- /dev/null +++ b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Animator.kt @@ -0,0 +1,27 @@ +@file:Suppress( + "unused", + "UNUSED_PARAMETER", +) + +package divkit.dsl + +import com.fasterxml.jackson.annotation.JsonAnyGetter +import com.fasterxml.jackson.annotation.JsonIgnore +import com.fasterxml.jackson.annotation.JsonValue +import divkit.dsl.annotation.* +import divkit.dsl.core.* +import divkit.dsl.scope.* +import kotlin.Any +import kotlin.String +import kotlin.Suppress +import kotlin.collections.List +import kotlin.collections.Map + +/** + * Possible values: [ColorAnimator], [NumberAnimator]. + */ +@Generated +sealed interface Animator + +@Generated +fun Animator.asList() = listOf(this) diff --git a/json-builder/kotlin/src/generated/kotlin/divkit/dsl/AnimatorBase.kt b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/AnimatorBase.kt new file mode 100644 index 000000000..d96f3c04a --- /dev/null +++ b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/AnimatorBase.kt @@ -0,0 +1,317 @@ +@file:Suppress( + "unused", + "UNUSED_PARAMETER", +) + +package divkit.dsl + +import com.fasterxml.jackson.annotation.JsonAnyGetter +import com.fasterxml.jackson.annotation.JsonIgnore +import com.fasterxml.jackson.annotation.JsonValue +import divkit.dsl.annotation.* +import divkit.dsl.core.* +import divkit.dsl.scope.* +import kotlin.Any +import kotlin.String +import kotlin.Suppress +import kotlin.collections.List +import kotlin.collections.Map + +/** + * Can be created using the method [animatorBase]. + * + * Required parameters: `variable_name, id, duration`. + */ +@Generated +class AnimatorBase internal constructor( + @JsonIgnore + val properties: Properties, +) { + @JsonAnyGetter + internal fun getJsonProperties(): Map = properties.mergeWith(emptyMap()) + + operator fun plus(additive: Properties): AnimatorBase = AnimatorBase( + Properties( + cancelActions = additive.cancelActions ?: properties.cancelActions, + direction = additive.direction ?: properties.direction, + duration = additive.duration ?: properties.duration, + endActions = additive.endActions ?: properties.endActions, + id = additive.id ?: properties.id, + interpolator = additive.interpolator ?: properties.interpolator, + repeatCount = additive.repeatCount ?: properties.repeatCount, + startDelay = additive.startDelay ?: properties.startDelay, + variableName = additive.variableName ?: properties.variableName, + ) + ) + + class Properties internal constructor( + /** + * Actions performed when the animator is cancelled. For example, when an action with `animator_stop` type is received + */ + val cancelActions: Property>?, + /** + * Animation direction. This property sets whether an animation should play forward, backward, or alternate back and forth between playing the sequence forward and backward. + * Default value: `normal`. + */ + val direction: Property?, + /** + * Animation duration in milliseconds. + */ + val duration: Property?, + /** + * Actions performed when the animator completes animation. + */ + val endActions: Property>?, + /** + * Animator identificator + */ + val id: Property?, + /** + * Interpolation function. + * Default value: `linear`. + */ + val interpolator: Property?, + /** + * The number of times the animation will repeat before it finishes. `0` enables infinite repeats. + * Default value: `1`. + */ + val repeatCount: Property?, + /** + * Animation start delay in milliseconds. + * Default value: `0`. + */ + val startDelay: Property?, + /** + * Name of the variable being animated. + */ + val variableName: Property?, + ) { + internal fun mergeWith(properties: Map): Map { + val result = mutableMapOf() + result.putAll(properties) + result.tryPutProperty("cancel_actions", cancelActions) + result.tryPutProperty("direction", direction) + result.tryPutProperty("duration", duration) + result.tryPutProperty("end_actions", endActions) + result.tryPutProperty("id", id) + result.tryPutProperty("interpolator", interpolator) + result.tryPutProperty("repeat_count", repeatCount) + result.tryPutProperty("start_delay", startDelay) + result.tryPutProperty("variable_name", variableName) + return result + } + } +} + +/** + * @param cancelActions Actions performed when the animator is cancelled. For example, when an action with `animator_stop` type is received + * @param direction Animation direction. This property sets whether an animation should play forward, backward, or alternate back and forth between playing the sequence forward and backward. + * @param duration Animation duration in milliseconds. + * @param endActions Actions performed when the animator completes animation. + * @param id Animator identificator + * @param interpolator Interpolation function. + * @param repeatCount The number of times the animation will repeat before it finishes. `0` enables infinite repeats. + * @param startDelay Animation start delay in milliseconds. + * @param variableName Name of the variable being animated. + */ +@Generated +fun DivScope.animatorBase( + `use named arguments`: Guard = Guard.instance, + cancelActions: List? = null, + direction: AnimationDirection? = null, + duration: Long? = null, + endActions: List? = null, + id: String? = null, + interpolator: AnimationInterpolator? = null, + repeatCount: Int? = null, + startDelay: Int? = null, + variableName: String? = null, +): AnimatorBase = AnimatorBase( + AnimatorBase.Properties( + cancelActions = valueOrNull(cancelActions), + direction = valueOrNull(direction), + duration = valueOrNull(duration), + endActions = valueOrNull(endActions), + id = valueOrNull(id), + interpolator = valueOrNull(interpolator), + repeatCount = valueOrNull(repeatCount), + startDelay = valueOrNull(startDelay), + variableName = valueOrNull(variableName), + ) +) + +/** + * @param cancelActions Actions performed when the animator is cancelled. For example, when an action with `animator_stop` type is received + * @param direction Animation direction. This property sets whether an animation should play forward, backward, or alternate back and forth between playing the sequence forward and backward. + * @param duration Animation duration in milliseconds. + * @param endActions Actions performed when the animator completes animation. + * @param id Animator identificator + * @param interpolator Interpolation function. + * @param repeatCount The number of times the animation will repeat before it finishes. `0` enables infinite repeats. + * @param startDelay Animation start delay in milliseconds. + * @param variableName Name of the variable being animated. + */ +@Generated +fun DivScope.animatorBaseProps( + `use named arguments`: Guard = Guard.instance, + cancelActions: List? = null, + direction: AnimationDirection? = null, + duration: Long? = null, + endActions: List? = null, + id: String? = null, + interpolator: AnimationInterpolator? = null, + repeatCount: Int? = null, + startDelay: Int? = null, + variableName: String? = null, +) = AnimatorBase.Properties( + cancelActions = valueOrNull(cancelActions), + direction = valueOrNull(direction), + duration = valueOrNull(duration), + endActions = valueOrNull(endActions), + id = valueOrNull(id), + interpolator = valueOrNull(interpolator), + repeatCount = valueOrNull(repeatCount), + startDelay = valueOrNull(startDelay), + variableName = valueOrNull(variableName), +) + +/** + * @param cancelActions Actions performed when the animator is cancelled. For example, when an action with `animator_stop` type is received + * @param direction Animation direction. This property sets whether an animation should play forward, backward, or alternate back and forth between playing the sequence forward and backward. + * @param duration Animation duration in milliseconds. + * @param endActions Actions performed when the animator completes animation. + * @param id Animator identificator + * @param interpolator Interpolation function. + * @param repeatCount The number of times the animation will repeat before it finishes. `0` enables infinite repeats. + * @param startDelay Animation start delay in milliseconds. + * @param variableName Name of the variable being animated. + */ +@Generated +fun TemplateScope.animatorBaseRefs( + `use named arguments`: Guard = Guard.instance, + cancelActions: ReferenceProperty>? = null, + direction: ReferenceProperty? = null, + duration: ReferenceProperty? = null, + endActions: ReferenceProperty>? = null, + id: ReferenceProperty? = null, + interpolator: ReferenceProperty? = null, + repeatCount: ReferenceProperty? = null, + startDelay: ReferenceProperty? = null, + variableName: ReferenceProperty? = null, +) = AnimatorBase.Properties( + cancelActions = cancelActions, + direction = direction, + duration = duration, + endActions = endActions, + id = id, + interpolator = interpolator, + repeatCount = repeatCount, + startDelay = startDelay, + variableName = variableName, +) + +/** + * @param cancelActions Actions performed when the animator is cancelled. For example, when an action with `animator_stop` type is received + * @param direction Animation direction. This property sets whether an animation should play forward, backward, or alternate back and forth between playing the sequence forward and backward. + * @param duration Animation duration in milliseconds. + * @param endActions Actions performed when the animator completes animation. + * @param id Animator identificator + * @param interpolator Interpolation function. + * @param repeatCount The number of times the animation will repeat before it finishes. `0` enables infinite repeats. + * @param startDelay Animation start delay in milliseconds. + * @param variableName Name of the variable being animated. + */ +@Generated +fun AnimatorBase.override( + `use named arguments`: Guard = Guard.instance, + cancelActions: List? = null, + direction: AnimationDirection? = null, + duration: Long? = null, + endActions: List? = null, + id: String? = null, + interpolator: AnimationInterpolator? = null, + repeatCount: Int? = null, + startDelay: Int? = null, + variableName: String? = null, +): AnimatorBase = AnimatorBase( + AnimatorBase.Properties( + cancelActions = valueOrNull(cancelActions) ?: properties.cancelActions, + direction = valueOrNull(direction) ?: properties.direction, + duration = valueOrNull(duration) ?: properties.duration, + endActions = valueOrNull(endActions) ?: properties.endActions, + id = valueOrNull(id) ?: properties.id, + interpolator = valueOrNull(interpolator) ?: properties.interpolator, + repeatCount = valueOrNull(repeatCount) ?: properties.repeatCount, + startDelay = valueOrNull(startDelay) ?: properties.startDelay, + variableName = valueOrNull(variableName) ?: properties.variableName, + ) +) + +/** + * @param cancelActions Actions performed when the animator is cancelled. For example, when an action with `animator_stop` type is received + * @param direction Animation direction. This property sets whether an animation should play forward, backward, or alternate back and forth between playing the sequence forward and backward. + * @param duration Animation duration in milliseconds. + * @param endActions Actions performed when the animator completes animation. + * @param id Animator identificator + * @param interpolator Interpolation function. + * @param repeatCount The number of times the animation will repeat before it finishes. `0` enables infinite repeats. + * @param startDelay Animation start delay in milliseconds. + * @param variableName Name of the variable being animated. + */ +@Generated +fun AnimatorBase.defer( + `use named arguments`: Guard = Guard.instance, + cancelActions: ReferenceProperty>? = null, + direction: ReferenceProperty? = null, + duration: ReferenceProperty? = null, + endActions: ReferenceProperty>? = null, + id: ReferenceProperty? = null, + interpolator: ReferenceProperty? = null, + repeatCount: ReferenceProperty? = null, + startDelay: ReferenceProperty? = null, + variableName: ReferenceProperty? = null, +): AnimatorBase = AnimatorBase( + AnimatorBase.Properties( + cancelActions = cancelActions ?: properties.cancelActions, + direction = direction ?: properties.direction, + duration = duration ?: properties.duration, + endActions = endActions ?: properties.endActions, + id = id ?: properties.id, + interpolator = interpolator ?: properties.interpolator, + repeatCount = repeatCount ?: properties.repeatCount, + startDelay = startDelay ?: properties.startDelay, + variableName = variableName ?: properties.variableName, + ) +) + +/** + * @param direction Animation direction. This property sets whether an animation should play forward, backward, or alternate back and forth between playing the sequence forward and backward. + * @param duration Animation duration in milliseconds. + * @param interpolator Interpolation function. + * @param repeatCount The number of times the animation will repeat before it finishes. `0` enables infinite repeats. + * @param startDelay Animation start delay in milliseconds. + */ +@Generated +fun AnimatorBase.evaluate( + `use named arguments`: Guard = Guard.instance, + direction: ExpressionProperty? = null, + duration: ExpressionProperty? = null, + interpolator: ExpressionProperty? = null, + repeatCount: ExpressionProperty? = null, + startDelay: ExpressionProperty? = null, +): AnimatorBase = AnimatorBase( + AnimatorBase.Properties( + cancelActions = properties.cancelActions, + direction = direction ?: properties.direction, + duration = duration ?: properties.duration, + endActions = properties.endActions, + id = properties.id, + interpolator = interpolator ?: properties.interpolator, + repeatCount = repeatCount ?: properties.repeatCount, + startDelay = startDelay ?: properties.startDelay, + variableName = properties.variableName, + ) +) + +@Generated +fun AnimatorBase.asList() = listOf(this) diff --git a/json-builder/kotlin/src/generated/kotlin/divkit/dsl/ColorAnimator.kt b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/ColorAnimator.kt new file mode 100644 index 000000000..1466eba1e --- /dev/null +++ b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/ColorAnimator.kt @@ -0,0 +1,369 @@ +@file:Suppress( + "unused", + "UNUSED_PARAMETER", +) + +package divkit.dsl + +import com.fasterxml.jackson.annotation.JsonAnyGetter +import com.fasterxml.jackson.annotation.JsonIgnore +import com.fasterxml.jackson.annotation.JsonValue +import divkit.dsl.annotation.* +import divkit.dsl.core.* +import divkit.dsl.scope.* +import kotlin.Any +import kotlin.String +import kotlin.Suppress +import kotlin.collections.List +import kotlin.collections.Map + +/** + * Color animator. + * + * Can be created using the method [colorAnimator]. + * + * Required parameters: `variable_name, type, id, end_value, duration`. + */ +@Generated +class ColorAnimator internal constructor( + @JsonIgnore + val properties: Properties, +) : Animator { + @JsonAnyGetter + internal fun getJsonProperties(): Map = properties.mergeWith( + mapOf("type" to "color_animator") + ) + + operator fun plus(additive: Properties): ColorAnimator = ColorAnimator( + Properties( + cancelActions = additive.cancelActions ?: properties.cancelActions, + direction = additive.direction ?: properties.direction, + duration = additive.duration ?: properties.duration, + endActions = additive.endActions ?: properties.endActions, + endValue = additive.endValue ?: properties.endValue, + id = additive.id ?: properties.id, + interpolator = additive.interpolator ?: properties.interpolator, + repeatCount = additive.repeatCount ?: properties.repeatCount, + startDelay = additive.startDelay ?: properties.startDelay, + startValue = additive.startValue ?: properties.startValue, + variableName = additive.variableName ?: properties.variableName, + ) + ) + + class Properties internal constructor( + /** + * Actions performed when the animator is cancelled. For example, when an action with `animator_stop` type is received + */ + val cancelActions: Property>?, + /** + * Animation direction. This property sets whether an animation should play forward, backward, or alternate back and forth between playing the sequence forward and backward. + * Default value: `normal`. + */ + val direction: Property?, + /** + * Animation duration in milliseconds. + */ + val duration: Property?, + /** + * Actions performed when the animator completes animation. + */ + val endActions: Property>?, + /** + * Value that will be set at the end of animation. + */ + val endValue: Property?, + /** + * Animator identificator + */ + val id: Property?, + /** + * Interpolation function. + * Default value: `linear`. + */ + val interpolator: Property?, + /** + * The number of times the animation will repeat before it finishes. `0` enables infinite repeats. + * Default value: `1`. + */ + val repeatCount: Property?, + /** + * Animation start delay in milliseconds. + * Default value: `0`. + */ + val startDelay: Property?, + /** + * Value that will be set at the start of animation. Can be omitted, in which case current value of the variable will be used. + */ + val startValue: Property?, + /** + * Name of the variable being animated. + */ + val variableName: Property?, + ) { + internal fun mergeWith(properties: Map): Map { + val result = mutableMapOf() + result.putAll(properties) + result.tryPutProperty("cancel_actions", cancelActions) + result.tryPutProperty("direction", direction) + result.tryPutProperty("duration", duration) + result.tryPutProperty("end_actions", endActions) + result.tryPutProperty("end_value", endValue) + result.tryPutProperty("id", id) + result.tryPutProperty("interpolator", interpolator) + result.tryPutProperty("repeat_count", repeatCount) + result.tryPutProperty("start_delay", startDelay) + result.tryPutProperty("start_value", startValue) + result.tryPutProperty("variable_name", variableName) + return result + } + } +} + +/** + * @param cancelActions Actions performed when the animator is cancelled. For example, when an action with `animator_stop` type is received + * @param direction Animation direction. This property sets whether an animation should play forward, backward, or alternate back and forth between playing the sequence forward and backward. + * @param duration Animation duration in milliseconds. + * @param endActions Actions performed when the animator completes animation. + * @param endValue Value that will be set at the end of animation. + * @param id Animator identificator + * @param interpolator Interpolation function. + * @param repeatCount The number of times the animation will repeat before it finishes. `0` enables infinite repeats. + * @param startDelay Animation start delay in milliseconds. + * @param startValue Value that will be set at the start of animation. Can be omitted, in which case current value of the variable will be used. + * @param variableName Name of the variable being animated. + */ +@Generated +fun DivScope.colorAnimator( + `use named arguments`: Guard = Guard.instance, + cancelActions: List? = null, + direction: AnimationDirection? = null, + duration: Long? = null, + endActions: List? = null, + endValue: Color? = null, + id: String? = null, + interpolator: AnimationInterpolator? = null, + repeatCount: Int? = null, + startDelay: Int? = null, + startValue: Color? = null, + variableName: String? = null, +): ColorAnimator = ColorAnimator( + ColorAnimator.Properties( + cancelActions = valueOrNull(cancelActions), + direction = valueOrNull(direction), + duration = valueOrNull(duration), + endActions = valueOrNull(endActions), + endValue = valueOrNull(endValue), + id = valueOrNull(id), + interpolator = valueOrNull(interpolator), + repeatCount = valueOrNull(repeatCount), + startDelay = valueOrNull(startDelay), + startValue = valueOrNull(startValue), + variableName = valueOrNull(variableName), + ) +) + +/** + * @param cancelActions Actions performed when the animator is cancelled. For example, when an action with `animator_stop` type is received + * @param direction Animation direction. This property sets whether an animation should play forward, backward, or alternate back and forth between playing the sequence forward and backward. + * @param duration Animation duration in milliseconds. + * @param endActions Actions performed when the animator completes animation. + * @param endValue Value that will be set at the end of animation. + * @param id Animator identificator + * @param interpolator Interpolation function. + * @param repeatCount The number of times the animation will repeat before it finishes. `0` enables infinite repeats. + * @param startDelay Animation start delay in milliseconds. + * @param startValue Value that will be set at the start of animation. Can be omitted, in which case current value of the variable will be used. + * @param variableName Name of the variable being animated. + */ +@Generated +fun DivScope.colorAnimatorProps( + `use named arguments`: Guard = Guard.instance, + cancelActions: List? = null, + direction: AnimationDirection? = null, + duration: Long? = null, + endActions: List? = null, + endValue: Color? = null, + id: String? = null, + interpolator: AnimationInterpolator? = null, + repeatCount: Int? = null, + startDelay: Int? = null, + startValue: Color? = null, + variableName: String? = null, +) = ColorAnimator.Properties( + cancelActions = valueOrNull(cancelActions), + direction = valueOrNull(direction), + duration = valueOrNull(duration), + endActions = valueOrNull(endActions), + endValue = valueOrNull(endValue), + id = valueOrNull(id), + interpolator = valueOrNull(interpolator), + repeatCount = valueOrNull(repeatCount), + startDelay = valueOrNull(startDelay), + startValue = valueOrNull(startValue), + variableName = valueOrNull(variableName), +) + +/** + * @param cancelActions Actions performed when the animator is cancelled. For example, when an action with `animator_stop` type is received + * @param direction Animation direction. This property sets whether an animation should play forward, backward, or alternate back and forth between playing the sequence forward and backward. + * @param duration Animation duration in milliseconds. + * @param endActions Actions performed when the animator completes animation. + * @param endValue Value that will be set at the end of animation. + * @param id Animator identificator + * @param interpolator Interpolation function. + * @param repeatCount The number of times the animation will repeat before it finishes. `0` enables infinite repeats. + * @param startDelay Animation start delay in milliseconds. + * @param startValue Value that will be set at the start of animation. Can be omitted, in which case current value of the variable will be used. + * @param variableName Name of the variable being animated. + */ +@Generated +fun TemplateScope.colorAnimatorRefs( + `use named arguments`: Guard = Guard.instance, + cancelActions: ReferenceProperty>? = null, + direction: ReferenceProperty? = null, + duration: ReferenceProperty? = null, + endActions: ReferenceProperty>? = null, + endValue: ReferenceProperty? = null, + id: ReferenceProperty? = null, + interpolator: ReferenceProperty? = null, + repeatCount: ReferenceProperty? = null, + startDelay: ReferenceProperty? = null, + startValue: ReferenceProperty? = null, + variableName: ReferenceProperty? = null, +) = ColorAnimator.Properties( + cancelActions = cancelActions, + direction = direction, + duration = duration, + endActions = endActions, + endValue = endValue, + id = id, + interpolator = interpolator, + repeatCount = repeatCount, + startDelay = startDelay, + startValue = startValue, + variableName = variableName, +) + +/** + * @param cancelActions Actions performed when the animator is cancelled. For example, when an action with `animator_stop` type is received + * @param direction Animation direction. This property sets whether an animation should play forward, backward, or alternate back and forth between playing the sequence forward and backward. + * @param duration Animation duration in milliseconds. + * @param endActions Actions performed when the animator completes animation. + * @param endValue Value that will be set at the end of animation. + * @param id Animator identificator + * @param interpolator Interpolation function. + * @param repeatCount The number of times the animation will repeat before it finishes. `0` enables infinite repeats. + * @param startDelay Animation start delay in milliseconds. + * @param startValue Value that will be set at the start of animation. Can be omitted, in which case current value of the variable will be used. + * @param variableName Name of the variable being animated. + */ +@Generated +fun ColorAnimator.override( + `use named arguments`: Guard = Guard.instance, + cancelActions: List? = null, + direction: AnimationDirection? = null, + duration: Long? = null, + endActions: List? = null, + endValue: Color? = null, + id: String? = null, + interpolator: AnimationInterpolator? = null, + repeatCount: Int? = null, + startDelay: Int? = null, + startValue: Color? = null, + variableName: String? = null, +): ColorAnimator = ColorAnimator( + ColorAnimator.Properties( + cancelActions = valueOrNull(cancelActions) ?: properties.cancelActions, + direction = valueOrNull(direction) ?: properties.direction, + duration = valueOrNull(duration) ?: properties.duration, + endActions = valueOrNull(endActions) ?: properties.endActions, + endValue = valueOrNull(endValue) ?: properties.endValue, + id = valueOrNull(id) ?: properties.id, + interpolator = valueOrNull(interpolator) ?: properties.interpolator, + repeatCount = valueOrNull(repeatCount) ?: properties.repeatCount, + startDelay = valueOrNull(startDelay) ?: properties.startDelay, + startValue = valueOrNull(startValue) ?: properties.startValue, + variableName = valueOrNull(variableName) ?: properties.variableName, + ) +) + +/** + * @param cancelActions Actions performed when the animator is cancelled. For example, when an action with `animator_stop` type is received + * @param direction Animation direction. This property sets whether an animation should play forward, backward, or alternate back and forth between playing the sequence forward and backward. + * @param duration Animation duration in milliseconds. + * @param endActions Actions performed when the animator completes animation. + * @param endValue Value that will be set at the end of animation. + * @param id Animator identificator + * @param interpolator Interpolation function. + * @param repeatCount The number of times the animation will repeat before it finishes. `0` enables infinite repeats. + * @param startDelay Animation start delay in milliseconds. + * @param startValue Value that will be set at the start of animation. Can be omitted, in which case current value of the variable will be used. + * @param variableName Name of the variable being animated. + */ +@Generated +fun ColorAnimator.defer( + `use named arguments`: Guard = Guard.instance, + cancelActions: ReferenceProperty>? = null, + direction: ReferenceProperty? = null, + duration: ReferenceProperty? = null, + endActions: ReferenceProperty>? = null, + endValue: ReferenceProperty? = null, + id: ReferenceProperty? = null, + interpolator: ReferenceProperty? = null, + repeatCount: ReferenceProperty? = null, + startDelay: ReferenceProperty? = null, + startValue: ReferenceProperty? = null, + variableName: ReferenceProperty? = null, +): ColorAnimator = ColorAnimator( + ColorAnimator.Properties( + cancelActions = cancelActions ?: properties.cancelActions, + direction = direction ?: properties.direction, + duration = duration ?: properties.duration, + endActions = endActions ?: properties.endActions, + endValue = endValue ?: properties.endValue, + id = id ?: properties.id, + interpolator = interpolator ?: properties.interpolator, + repeatCount = repeatCount ?: properties.repeatCount, + startDelay = startDelay ?: properties.startDelay, + startValue = startValue ?: properties.startValue, + variableName = variableName ?: properties.variableName, + ) +) + +/** + * @param direction Animation direction. This property sets whether an animation should play forward, backward, or alternate back and forth between playing the sequence forward and backward. + * @param duration Animation duration in milliseconds. + * @param endValue Value that will be set at the end of animation. + * @param interpolator Interpolation function. + * @param repeatCount The number of times the animation will repeat before it finishes. `0` enables infinite repeats. + * @param startDelay Animation start delay in milliseconds. + * @param startValue Value that will be set at the start of animation. Can be omitted, in which case current value of the variable will be used. + */ +@Generated +fun ColorAnimator.evaluate( + `use named arguments`: Guard = Guard.instance, + direction: ExpressionProperty? = null, + duration: ExpressionProperty? = null, + endValue: ExpressionProperty? = null, + interpolator: ExpressionProperty? = null, + repeatCount: ExpressionProperty? = null, + startDelay: ExpressionProperty? = null, + startValue: ExpressionProperty? = null, +): ColorAnimator = ColorAnimator( + ColorAnimator.Properties( + cancelActions = properties.cancelActions, + direction = direction ?: properties.direction, + duration = duration ?: properties.duration, + endActions = properties.endActions, + endValue = endValue ?: properties.endValue, + id = properties.id, + interpolator = interpolator ?: properties.interpolator, + repeatCount = repeatCount ?: properties.repeatCount, + startDelay = startDelay ?: properties.startDelay, + startValue = startValue ?: properties.startValue, + variableName = properties.variableName, + ) +) + +@Generated +fun ColorAnimator.asList() = listOf(this) diff --git a/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Container.kt b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Container.kt index 59bd2eb70..843528160 100644 --- a/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Container.kt +++ b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Container.kt @@ -44,6 +44,7 @@ class Container internal constructor( alignmentHorizontal = additive.alignmentHorizontal ?: properties.alignmentHorizontal, alignmentVertical = additive.alignmentVertical ?: properties.alignmentVertical, alpha = additive.alpha ?: properties.alpha, + animators = additive.animators ?: properties.animators, aspect = additive.aspect ?: properties.aspect, background = additive.background ?: properties.background, border = additive.border ?: properties.border, @@ -116,10 +117,14 @@ class Container internal constructor( */ val alignmentVertical: Property?, /** - * Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * Transparency of whole element: `0` — completely transparent, `1` — opaque. * Default value: `1.0`. */ val alpha: Property?, + /** + * Declaration of animators that can be used to change the value of variables over time. + */ + val animators: Property>?, /** * Fixed aspect ratio of the container. The element's height is calculated based on the width, ignoring the `height` parameter's value. On the web, support for the `aspect-ratio` CSS property is required to use this parameter. @@ -288,6 +293,7 @@ class Container internal constructor( result.tryPutProperty("alignment_horizontal", alignmentHorizontal) result.tryPutProperty("alignment_vertical", alignmentVertical) result.tryPutProperty("alpha", alpha) + result.tryPutProperty("animators", animators) result.tryPutProperty("aspect", aspect) result.tryPutProperty("background", background) result.tryPutProperty("border", border) @@ -415,7 +421,8 @@ class Container internal constructor( * @param actions Multiple actions when clicking on an element. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param aspect Fixed aspect ratio of the container. The element's height is calculated based on the width, ignoring the `height` parameter's value. On the web, support for the `aspect-ratio` CSS property is required to use this parameter. * @param background Element background. It can contain multiple layers. @@ -466,6 +473,7 @@ fun DivScope.row( alignmentHorizontal: AlignmentHorizontal? = null, alignmentVertical: AlignmentVertical? = null, alpha: Double? = null, + animators: List? = null, aspect: Aspect? = null, background: List? = null, border: Border? = null, @@ -511,6 +519,7 @@ fun DivScope.row( alignmentHorizontal = alignmentHorizontal, alignmentVertical = alignmentVertical, alpha = alpha, + animators = animators, aspect = aspect, background = background, border = border, @@ -557,7 +566,8 @@ fun DivScope.row( * @param actions Multiple actions when clicking on an element. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param aspect Fixed aspect ratio of the container. The element's height is calculated based on the width, ignoring the `height` parameter's value. On the web, support for the `aspect-ratio` CSS property is required to use this parameter. * @param background Element background. It can contain multiple layers. @@ -608,6 +618,7 @@ fun DivScope.row( alignmentHorizontal: AlignmentHorizontal? = null, alignmentVertical: AlignmentVertical? = null, alpha: Double? = null, + animators: List? = null, aspect: Aspect? = null, background: List? = null, border: Border? = null, @@ -653,6 +664,7 @@ fun DivScope.row( alignmentHorizontal = alignmentHorizontal, alignmentVertical = alignmentVertical, alpha = alpha, + animators = animators, aspect = aspect, background = background, border = border, @@ -699,7 +711,8 @@ fun DivScope.row( * @param actions Multiple actions when clicking on an element. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param aspect Fixed aspect ratio of the container. The element's height is calculated based on the width, ignoring the `height` parameter's value. On the web, support for the `aspect-ratio` CSS property is required to use this parameter. * @param background Element background. It can contain multiple layers. @@ -750,6 +763,7 @@ fun DivScope.column( alignmentHorizontal: AlignmentHorizontal? = null, alignmentVertical: AlignmentVertical? = null, alpha: Double? = null, + animators: List? = null, aspect: Aspect? = null, background: List? = null, border: Border? = null, @@ -795,6 +809,7 @@ fun DivScope.column( alignmentHorizontal = alignmentHorizontal, alignmentVertical = alignmentVertical, alpha = alpha, + animators = animators, aspect = aspect, background = background, border = border, @@ -841,7 +856,8 @@ fun DivScope.column( * @param actions Multiple actions when clicking on an element. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param aspect Fixed aspect ratio of the container. The element's height is calculated based on the width, ignoring the `height` parameter's value. On the web, support for the `aspect-ratio` CSS property is required to use this parameter. * @param background Element background. It can contain multiple layers. @@ -892,6 +908,7 @@ fun DivScope.column( alignmentHorizontal: AlignmentHorizontal? = null, alignmentVertical: AlignmentVertical? = null, alpha: Double? = null, + animators: List? = null, aspect: Aspect? = null, background: List? = null, border: Border? = null, @@ -937,6 +954,7 @@ fun DivScope.column( alignmentHorizontal = alignmentHorizontal, alignmentVertical = alignmentVertical, alpha = alpha, + animators = animators, aspect = aspect, background = background, border = border, @@ -983,7 +1001,8 @@ fun DivScope.column( * @param actions Multiple actions when clicking on an element. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param aspect Fixed aspect ratio of the container. The element's height is calculated based on the width, ignoring the `height` parameter's value. On the web, support for the `aspect-ratio` CSS property is required to use this parameter. * @param background Element background. It can contain multiple layers. @@ -1034,6 +1053,7 @@ fun DivScope.stack( alignmentHorizontal: AlignmentHorizontal? = null, alignmentVertical: AlignmentVertical? = null, alpha: Double? = null, + animators: List? = null, aspect: Aspect? = null, background: List? = null, border: Border? = null, @@ -1079,6 +1099,7 @@ fun DivScope.stack( alignmentHorizontal = alignmentHorizontal, alignmentVertical = alignmentVertical, alpha = alpha, + animators = animators, aspect = aspect, background = background, border = border, @@ -1125,7 +1146,8 @@ fun DivScope.stack( * @param actions Multiple actions when clicking on an element. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param aspect Fixed aspect ratio of the container. The element's height is calculated based on the width, ignoring the `height` parameter's value. On the web, support for the `aspect-ratio` CSS property is required to use this parameter. * @param background Element background. It can contain multiple layers. @@ -1176,6 +1198,7 @@ fun DivScope.stack( alignmentHorizontal: AlignmentHorizontal? = null, alignmentVertical: AlignmentVertical? = null, alpha: Double? = null, + animators: List? = null, aspect: Aspect? = null, background: List? = null, border: Border? = null, @@ -1221,6 +1244,7 @@ fun DivScope.stack( alignmentHorizontal = alignmentHorizontal, alignmentVertical = alignmentVertical, alpha = alpha, + animators = animators, aspect = aspect, background = background, border = border, @@ -1268,7 +1292,8 @@ fun DivScope.stack( * @param actions Multiple actions when clicking on an element. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param aspect Fixed aspect ratio of the container. The element's height is calculated based on the width, ignoring the `height` parameter's value. On the web, support for the `aspect-ratio` CSS property is required to use this parameter. * @param background Element background. It can contain multiple layers. @@ -1319,6 +1344,7 @@ fun DivScope.container( alignmentHorizontal: AlignmentHorizontal? = null, alignmentVertical: AlignmentVertical? = null, alpha: Double? = null, + animators: List? = null, aspect: Aspect? = null, background: List? = null, border: Border? = null, @@ -1366,6 +1392,7 @@ fun DivScope.container( alignmentHorizontal = valueOrNull(alignmentHorizontal), alignmentVertical = valueOrNull(alignmentVertical), alpha = valueOrNull(alpha), + animators = valueOrNull(animators), aspect = valueOrNull(aspect), background = valueOrNull(background), border = valueOrNull(border), @@ -1414,7 +1441,8 @@ fun DivScope.container( * @param actions Multiple actions when clicking on an element. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param aspect Fixed aspect ratio of the container. The element's height is calculated based on the width, ignoring the `height` parameter's value. On the web, support for the `aspect-ratio` CSS property is required to use this parameter. * @param background Element background. It can contain multiple layers. @@ -1465,6 +1493,7 @@ fun DivScope.containerProps( alignmentHorizontal: AlignmentHorizontal? = null, alignmentVertical: AlignmentVertical? = null, alpha: Double? = null, + animators: List? = null, aspect: Aspect? = null, background: List? = null, border: Border? = null, @@ -1511,6 +1540,7 @@ fun DivScope.containerProps( alignmentHorizontal = valueOrNull(alignmentHorizontal), alignmentVertical = valueOrNull(alignmentVertical), alpha = valueOrNull(alpha), + animators = valueOrNull(animators), aspect = valueOrNull(aspect), background = valueOrNull(background), border = valueOrNull(border), @@ -1558,7 +1588,8 @@ fun DivScope.containerProps( * @param actions Multiple actions when clicking on an element. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param aspect Fixed aspect ratio of the container. The element's height is calculated based on the width, ignoring the `height` parameter's value. On the web, support for the `aspect-ratio` CSS property is required to use this parameter. * @param background Element background. It can contain multiple layers. @@ -1609,6 +1640,7 @@ fun TemplateScope.containerRefs( alignmentHorizontal: ReferenceProperty? = null, alignmentVertical: ReferenceProperty? = null, alpha: ReferenceProperty? = null, + animators: ReferenceProperty>? = null, aspect: ReferenceProperty? = null, background: ReferenceProperty>? = null, border: ReferenceProperty? = null, @@ -1655,6 +1687,7 @@ fun TemplateScope.containerRefs( alignmentHorizontal = alignmentHorizontal, alignmentVertical = alignmentVertical, alpha = alpha, + animators = animators, aspect = aspect, background = background, border = border, @@ -1702,7 +1735,8 @@ fun TemplateScope.containerRefs( * @param actions Multiple actions when clicking on an element. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param aspect Fixed aspect ratio of the container. The element's height is calculated based on the width, ignoring the `height` parameter's value. On the web, support for the `aspect-ratio` CSS property is required to use this parameter. * @param background Element background. It can contain multiple layers. @@ -1753,6 +1787,7 @@ fun Container.override( alignmentHorizontal: AlignmentHorizontal? = null, alignmentVertical: AlignmentVertical? = null, alpha: Double? = null, + animators: List? = null, aspect: Aspect? = null, background: List? = null, border: Border? = null, @@ -1800,6 +1835,7 @@ fun Container.override( alignmentHorizontal = valueOrNull(alignmentHorizontal) ?: properties.alignmentHorizontal, alignmentVertical = valueOrNull(alignmentVertical) ?: properties.alignmentVertical, alpha = valueOrNull(alpha) ?: properties.alpha, + animators = valueOrNull(animators) ?: properties.animators, aspect = valueOrNull(aspect) ?: properties.aspect, background = valueOrNull(background) ?: properties.background, border = valueOrNull(border) ?: properties.border, @@ -1848,7 +1884,8 @@ fun Container.override( * @param actions Multiple actions when clicking on an element. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param aspect Fixed aspect ratio of the container. The element's height is calculated based on the width, ignoring the `height` parameter's value. On the web, support for the `aspect-ratio` CSS property is required to use this parameter. * @param background Element background. It can contain multiple layers. @@ -1899,6 +1936,7 @@ fun Container.defer( alignmentHorizontal: ReferenceProperty? = null, alignmentVertical: ReferenceProperty? = null, alpha: ReferenceProperty? = null, + animators: ReferenceProperty>? = null, aspect: ReferenceProperty? = null, background: ReferenceProperty>? = null, border: ReferenceProperty? = null, @@ -1946,6 +1984,7 @@ fun Container.defer( alignmentHorizontal = alignmentHorizontal ?: properties.alignmentHorizontal, alignmentVertical = alignmentVertical ?: properties.alignmentVertical, alpha = alpha ?: properties.alpha, + animators = animators ?: properties.animators, aspect = aspect ?: properties.aspect, background = background ?: properties.background, border = border ?: properties.border, @@ -1990,7 +2029,7 @@ fun Container.defer( * @param orientation Location of elements. `overlap` value overlays elements on top of each other in the order of enumeration. The lowest is the zero element of an array. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. * @param clipToBounds Enables the bounding of child elements by the parent's borders. * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. * @param contentAlignmentHorizontal Horizontal element alignment. For child elements, it can be redefined using the `alignment_horizontal` property. @@ -2025,6 +2064,7 @@ fun Container.evaluate( alignmentHorizontal = alignmentHorizontal ?: properties.alignmentHorizontal, alignmentVertical = alignmentVertical ?: properties.alignmentVertical, alpha = alpha ?: properties.alpha, + animators = properties.animators, aspect = properties.aspect, background = properties.background, border = properties.border, @@ -2073,7 +2113,8 @@ fun Container.evaluate( * @param actions Multiple actions when clicking on an element. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param aspect Fixed aspect ratio of the container. The element's height is calculated based on the width, ignoring the `height` parameter's value. On the web, support for the `aspect-ratio` CSS property is required to use this parameter. * @param background Element background. It can contain multiple layers. @@ -2124,6 +2165,7 @@ fun Component.override( alignmentHorizontal: AlignmentHorizontal? = null, alignmentVertical: AlignmentVertical? = null, alpha: Double? = null, + animators: List? = null, aspect: Aspect? = null, background: List? = null, border: Border? = null, @@ -2172,6 +2214,7 @@ fun Component.override( alignmentHorizontal = valueOrNull(alignmentHorizontal), alignmentVertical = valueOrNull(alignmentVertical), alpha = valueOrNull(alpha), + animators = valueOrNull(animators), aspect = valueOrNull(aspect), background = valueOrNull(background), border = valueOrNull(border), @@ -2220,7 +2263,8 @@ fun Component.override( * @param actions Multiple actions when clicking on an element. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param aspect Fixed aspect ratio of the container. The element's height is calculated based on the width, ignoring the `height` parameter's value. On the web, support for the `aspect-ratio` CSS property is required to use this parameter. * @param background Element background. It can contain multiple layers. @@ -2271,6 +2315,7 @@ fun Component.defer( alignmentHorizontal: ReferenceProperty? = null, alignmentVertical: ReferenceProperty? = null, alpha: ReferenceProperty? = null, + animators: ReferenceProperty>? = null, aspect: ReferenceProperty? = null, background: ReferenceProperty>? = null, border: ReferenceProperty? = null, @@ -2319,6 +2364,7 @@ fun Component.defer( alignmentHorizontal = alignmentHorizontal, alignmentVertical = alignmentVertical, alpha = alpha, + animators = animators, aspect = aspect, background = background, border = border, @@ -2363,7 +2409,7 @@ fun Component.defer( * @param orientation Location of elements. `overlap` value overlays elements on top of each other in the order of enumeration. The lowest is the zero element of an array. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. * @param clipToBounds Enables the bounding of child elements by the parent's borders. * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. * @param contentAlignmentHorizontal Horizontal element alignment. For child elements, it can be redefined using the `alignment_horizontal` property. @@ -2399,6 +2445,7 @@ fun Component.evaluate( alignmentHorizontal = alignmentHorizontal, alignmentVertical = alignmentVertical, alpha = alpha, + animators = null, aspect = null, background = null, border = null, diff --git a/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Custom.kt b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Custom.kt index 683e8033a..1b34f1004 100644 --- a/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Custom.kt +++ b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Custom.kt @@ -40,6 +40,7 @@ class Custom internal constructor( alignmentHorizontal = additive.alignmentHorizontal ?: properties.alignmentHorizontal, alignmentVertical = additive.alignmentVertical ?: properties.alignmentVertical, alpha = additive.alpha ?: properties.alpha, + animators = additive.animators ?: properties.animators, background = additive.background ?: properties.background, border = additive.border ?: properties.border, columnSpan = additive.columnSpan ?: properties.columnSpan, @@ -86,10 +87,14 @@ class Custom internal constructor( */ val alignmentVertical: Property?, /** - * Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * Transparency of whole element: `0` — completely transparent, `1` — opaque. * Default value: `1.0`. */ val alpha: Property?, + /** + * Declaration of animators that can be used to change the value of variables over time. + */ + val animators: Property>?, /** * Element background. It can contain multiple layers. */ @@ -217,6 +222,7 @@ class Custom internal constructor( result.tryPutProperty("alignment_horizontal", alignmentHorizontal) result.tryPutProperty("alignment_vertical", alignmentVertical) result.tryPutProperty("alpha", alpha) + result.tryPutProperty("animators", animators) result.tryPutProperty("background", background) result.tryPutProperty("border", border) result.tryPutProperty("column_span", columnSpan) @@ -255,7 +261,8 @@ class Custom internal constructor( * @param accessibility Accessibility settings. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param background Element background. It can contain multiple layers. * @param border Element stroke. * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. @@ -293,6 +300,7 @@ fun DivScope.custom( alignmentHorizontal: AlignmentHorizontal? = null, alignmentVertical: AlignmentVertical? = null, alpha: Double? = null, + animators: List? = null, background: List? = null, border: Border? = null, columnSpan: Int? = null, @@ -328,6 +336,7 @@ fun DivScope.custom( alignmentHorizontal = valueOrNull(alignmentHorizontal), alignmentVertical = valueOrNull(alignmentVertical), alpha = valueOrNull(alpha), + animators = valueOrNull(animators), background = valueOrNull(background), border = valueOrNull(border), columnSpan = valueOrNull(columnSpan), @@ -364,7 +373,8 @@ fun DivScope.custom( * @param accessibility Accessibility settings. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param background Element background. It can contain multiple layers. * @param border Element stroke. * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. @@ -402,6 +412,7 @@ fun DivScope.customProps( alignmentHorizontal: AlignmentHorizontal? = null, alignmentVertical: AlignmentVertical? = null, alpha: Double? = null, + animators: List? = null, background: List? = null, border: Border? = null, columnSpan: Int? = null, @@ -436,6 +447,7 @@ fun DivScope.customProps( alignmentHorizontal = valueOrNull(alignmentHorizontal), alignmentVertical = valueOrNull(alignmentVertical), alpha = valueOrNull(alpha), + animators = valueOrNull(animators), background = valueOrNull(background), border = valueOrNull(border), columnSpan = valueOrNull(columnSpan), @@ -471,7 +483,8 @@ fun DivScope.customProps( * @param accessibility Accessibility settings. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param background Element background. It can contain multiple layers. * @param border Element stroke. * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. @@ -509,6 +522,7 @@ fun TemplateScope.customRefs( alignmentHorizontal: ReferenceProperty? = null, alignmentVertical: ReferenceProperty? = null, alpha: ReferenceProperty? = null, + animators: ReferenceProperty>? = null, background: ReferenceProperty>? = null, border: ReferenceProperty? = null, columnSpan: ReferenceProperty? = null, @@ -543,6 +557,7 @@ fun TemplateScope.customRefs( alignmentHorizontal = alignmentHorizontal, alignmentVertical = alignmentVertical, alpha = alpha, + animators = animators, background = background, border = border, columnSpan = columnSpan, @@ -578,7 +593,8 @@ fun TemplateScope.customRefs( * @param accessibility Accessibility settings. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param background Element background. It can contain multiple layers. * @param border Element stroke. * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. @@ -616,6 +632,7 @@ fun Custom.override( alignmentHorizontal: AlignmentHorizontal? = null, alignmentVertical: AlignmentVertical? = null, alpha: Double? = null, + animators: List? = null, background: List? = null, border: Border? = null, columnSpan: Int? = null, @@ -651,6 +668,7 @@ fun Custom.override( alignmentHorizontal = valueOrNull(alignmentHorizontal) ?: properties.alignmentHorizontal, alignmentVertical = valueOrNull(alignmentVertical) ?: properties.alignmentVertical, alpha = valueOrNull(alpha) ?: properties.alpha, + animators = valueOrNull(animators) ?: properties.animators, background = valueOrNull(background) ?: properties.background, border = valueOrNull(border) ?: properties.border, columnSpan = valueOrNull(columnSpan) ?: properties.columnSpan, @@ -687,7 +705,8 @@ fun Custom.override( * @param accessibility Accessibility settings. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param background Element background. It can contain multiple layers. * @param border Element stroke. * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. @@ -725,6 +744,7 @@ fun Custom.defer( alignmentHorizontal: ReferenceProperty? = null, alignmentVertical: ReferenceProperty? = null, alpha: ReferenceProperty? = null, + animators: ReferenceProperty>? = null, background: ReferenceProperty>? = null, border: ReferenceProperty? = null, columnSpan: ReferenceProperty? = null, @@ -760,6 +780,7 @@ fun Custom.defer( alignmentHorizontal = alignmentHorizontal ?: properties.alignmentHorizontal, alignmentVertical = alignmentVertical ?: properties.alignmentVertical, alpha = alpha ?: properties.alpha, + animators = animators ?: properties.animators, background = background ?: properties.background, border = border ?: properties.border, columnSpan = columnSpan ?: properties.columnSpan, @@ -795,7 +816,7 @@ fun Custom.defer( /** * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. * @param reuseId Id for the div structure. Used for more optimal reuse of blocks. See [reusing blocks](../../reuse/reuse.md) * @param rowSpan Merges cells in a string of the [grid](div-grid.md) element. @@ -817,6 +838,7 @@ fun Custom.evaluate( alignmentHorizontal = alignmentHorizontal ?: properties.alignmentHorizontal, alignmentVertical = alignmentVertical ?: properties.alignmentVertical, alpha = alpha ?: properties.alpha, + animators = properties.animators, background = properties.background, border = properties.border, columnSpan = columnSpan ?: properties.columnSpan, @@ -853,7 +875,8 @@ fun Custom.evaluate( * @param accessibility Accessibility settings. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param background Element background. It can contain multiple layers. * @param border Element stroke. * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. @@ -891,6 +914,7 @@ fun Component.override( alignmentHorizontal: AlignmentHorizontal? = null, alignmentVertical: AlignmentVertical? = null, alpha: Double? = null, + animators: List? = null, background: List? = null, border: Border? = null, columnSpan: Int? = null, @@ -927,6 +951,7 @@ fun Component.override( alignmentHorizontal = valueOrNull(alignmentHorizontal), alignmentVertical = valueOrNull(alignmentVertical), alpha = valueOrNull(alpha), + animators = valueOrNull(animators), background = valueOrNull(background), border = valueOrNull(border), columnSpan = valueOrNull(columnSpan), @@ -963,7 +988,8 @@ fun Component.override( * @param accessibility Accessibility settings. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param background Element background. It can contain multiple layers. * @param border Element stroke. * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. @@ -1001,6 +1027,7 @@ fun Component.defer( alignmentHorizontal: ReferenceProperty? = null, alignmentVertical: ReferenceProperty? = null, alpha: ReferenceProperty? = null, + animators: ReferenceProperty>? = null, background: ReferenceProperty>? = null, border: ReferenceProperty? = null, columnSpan: ReferenceProperty? = null, @@ -1037,6 +1064,7 @@ fun Component.defer( alignmentHorizontal = alignmentHorizontal, alignmentVertical = alignmentVertical, alpha = alpha, + animators = animators, background = background, border = border, columnSpan = columnSpan, @@ -1072,7 +1100,7 @@ fun Component.defer( /** * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. * @param reuseId Id for the div structure. Used for more optimal reuse of blocks. See [reusing blocks](../../reuse/reuse.md) * @param rowSpan Merges cells in a string of the [grid](div-grid.md) element. @@ -1095,6 +1123,7 @@ fun Component.evaluate( alignmentHorizontal = alignmentHorizontal, alignmentVertical = alignmentVertical, alpha = alpha, + animators = null, background = null, border = null, columnSpan = columnSpan, diff --git a/json-builder/kotlin/src/generated/kotlin/divkit/dsl/EnumValues.kt b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/EnumValues.kt index 870f8d512..c7fa7b266 100644 --- a/json-builder/kotlin/src/generated/kotlin/divkit/dsl/EnumValues.kt +++ b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/EnumValues.kt @@ -97,6 +97,36 @@ object SelfEnumValue : EnumValue("_self"), object BlankEnumValue : EnumValue("_blank"), Action.Target +@Generated +object StartEnumValue : EnumValue("start"), + ActionTimer.Action, + ActionVideo.Action, + AlignmentHorizontal, + ContentAlignmentHorizontal, + Gallery.CrossContentAlignment, + Text.Truncate + +@Generated +object StopEnumValue : EnumValue("stop"), + ActionTimer.Action + +@Generated +object PauseEnumValue : EnumValue("pause"), + ActionTimer.Action, + ActionVideo.Action + +@Generated +object ResumeEnumValue : EnumValue("resume"), + ActionTimer.Action + +@Generated +object CancelEnumValue : EnumValue("cancel"), + ActionTimer.Action + +@Generated +object ResetEnumValue : EnumValue("reset"), + ActionTimer.Action + @Generated object LeftEnumValue : EnumValue("left"), AlignmentHorizontal, @@ -121,13 +151,6 @@ object RightEnumValue : EnumValue("right"), SlideTransition.Edge, Tooltip.Position -@Generated -object StartEnumValue : EnumValue("start"), - AlignmentHorizontal, - ContentAlignmentHorizontal, - Gallery.CrossContentAlignment, - Text.Truncate - @Generated object EndEnumValue : EnumValue("end"), AlignmentHorizontal, @@ -183,6 +206,22 @@ object SetEnumValue : EnumValue("set"), object NoAnimationEnumValue : EnumValue("no_animation"), Animation.Name +@Generated +object NormalEnumValue : EnumValue("normal"), + AnimationDirection + +@Generated +object ReverseEnumValue : EnumValue("reverse"), + AnimationDirection + +@Generated +object AlternateEnumValue : EnumValue("alternate"), + AnimationDirection + +@Generated +object AlternateReverseEnumValue : EnumValue("alternate_reverse"), + AnimationDirection + @Generated object LinearEnumValue : EnumValue("linear"), AnimationInterpolator @@ -521,6 +560,30 @@ val DivScope.self: SelfEnumValue val DivScope.blank: BlankEnumValue get() = BlankEnumValue +@Generated +val DivScope.start: StartEnumValue + get() = StartEnumValue + +@Generated +val DivScope.stop: StopEnumValue + get() = StopEnumValue + +@Generated +val DivScope.pause: PauseEnumValue + get() = PauseEnumValue + +@Generated +val DivScope.resume: ResumeEnumValue + get() = ResumeEnumValue + +@Generated +val DivScope.cancel: CancelEnumValue + get() = CancelEnumValue + +@Generated +val DivScope.reset: ResetEnumValue + get() = ResetEnumValue + @Generated val DivScope.left: LeftEnumValue get() = LeftEnumValue @@ -533,10 +596,6 @@ val DivScope.center: CenterEnumValue val DivScope.right: RightEnumValue get() = RightEnumValue -@Generated -val DivScope.start: StartEnumValue - get() = StartEnumValue - @Generated val DivScope.end: EndEnumValue get() = EndEnumValue @@ -577,6 +636,22 @@ val DivScope.set: SetEnumValue val DivScope.no_animation: NoAnimationEnumValue get() = NoAnimationEnumValue +@Generated +val DivScope.normal: NormalEnumValue + get() = NormalEnumValue + +@Generated +val DivScope.reverse: ReverseEnumValue + get() = ReverseEnumValue + +@Generated +val DivScope.alternate: AlternateEnumValue + get() = AlternateEnumValue + +@Generated +val DivScope.alternate_reverse: AlternateReverseEnumValue + get() = AlternateReverseEnumValue + @Generated val DivScope.linear: LinearEnumValue get() = LinearEnumValue diff --git a/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Gallery.kt b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Gallery.kt index 77860c8b2..3a53a0eeb 100644 --- a/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Gallery.kt +++ b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Gallery.kt @@ -40,6 +40,7 @@ class Gallery internal constructor( alignmentHorizontal = additive.alignmentHorizontal ?: properties.alignmentHorizontal, alignmentVertical = additive.alignmentVertical ?: properties.alignmentVertical, alpha = additive.alpha ?: properties.alpha, + animators = additive.animators ?: properties.animators, background = additive.background ?: properties.background, border = additive.border ?: properties.border, columnCount = additive.columnCount ?: properties.columnCount, @@ -94,10 +95,14 @@ class Gallery internal constructor( */ val alignmentVertical: Property?, /** - * Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * Transparency of whole element: `0` — completely transparent, `1` — opaque. * Default value: `1.0`. */ val alpha: Property?, + /** + * Declaration of animators that can be used to change the value of variables over time. + */ + val animators: Property>?, /** * Element background. It can contain multiple layers. */ @@ -264,6 +269,7 @@ class Gallery internal constructor( result.tryPutProperty("alignment_horizontal", alignmentHorizontal) result.tryPutProperty("alignment_vertical", alignmentVertical) result.tryPutProperty("alpha", alpha) + result.tryPutProperty("animators", animators) result.tryPutProperty("background", background) result.tryPutProperty("border", border) result.tryPutProperty("column_count", columnCount) @@ -342,7 +348,8 @@ class Gallery internal constructor( * @param accessibility Accessibility settings. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param background Element background. It can contain multiple layers. * @param border Element stroke. * @param columnCount Number of columns for block layout. @@ -388,6 +395,7 @@ fun DivScope.gallery( alignmentHorizontal: AlignmentHorizontal? = null, alignmentVertical: AlignmentVertical? = null, alpha: Double? = null, + animators: List? = null, background: List? = null, border: Border? = null, columnCount: Int? = null, @@ -431,6 +439,7 @@ fun DivScope.gallery( alignmentHorizontal = valueOrNull(alignmentHorizontal), alignmentVertical = valueOrNull(alignmentVertical), alpha = valueOrNull(alpha), + animators = valueOrNull(animators), background = valueOrNull(background), border = valueOrNull(border), columnCount = valueOrNull(columnCount), @@ -475,7 +484,8 @@ fun DivScope.gallery( * @param accessibility Accessibility settings. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param background Element background. It can contain multiple layers. * @param border Element stroke. * @param columnCount Number of columns for block layout. @@ -521,6 +531,7 @@ fun DivScope.galleryProps( alignmentHorizontal: AlignmentHorizontal? = null, alignmentVertical: AlignmentVertical? = null, alpha: Double? = null, + animators: List? = null, background: List? = null, border: Border? = null, columnCount: Int? = null, @@ -563,6 +574,7 @@ fun DivScope.galleryProps( alignmentHorizontal = valueOrNull(alignmentHorizontal), alignmentVertical = valueOrNull(alignmentVertical), alpha = valueOrNull(alpha), + animators = valueOrNull(animators), background = valueOrNull(background), border = valueOrNull(border), columnCount = valueOrNull(columnCount), @@ -606,7 +618,8 @@ fun DivScope.galleryProps( * @param accessibility Accessibility settings. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param background Element background. It can contain multiple layers. * @param border Element stroke. * @param columnCount Number of columns for block layout. @@ -652,6 +665,7 @@ fun TemplateScope.galleryRefs( alignmentHorizontal: ReferenceProperty? = null, alignmentVertical: ReferenceProperty? = null, alpha: ReferenceProperty? = null, + animators: ReferenceProperty>? = null, background: ReferenceProperty>? = null, border: ReferenceProperty? = null, columnCount: ReferenceProperty? = null, @@ -694,6 +708,7 @@ fun TemplateScope.galleryRefs( alignmentHorizontal = alignmentHorizontal, alignmentVertical = alignmentVertical, alpha = alpha, + animators = animators, background = background, border = border, columnCount = columnCount, @@ -737,7 +752,8 @@ fun TemplateScope.galleryRefs( * @param accessibility Accessibility settings. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param background Element background. It can contain multiple layers. * @param border Element stroke. * @param columnCount Number of columns for block layout. @@ -783,6 +799,7 @@ fun Gallery.override( alignmentHorizontal: AlignmentHorizontal? = null, alignmentVertical: AlignmentVertical? = null, alpha: Double? = null, + animators: List? = null, background: List? = null, border: Border? = null, columnCount: Int? = null, @@ -826,6 +843,7 @@ fun Gallery.override( alignmentHorizontal = valueOrNull(alignmentHorizontal) ?: properties.alignmentHorizontal, alignmentVertical = valueOrNull(alignmentVertical) ?: properties.alignmentVertical, alpha = valueOrNull(alpha) ?: properties.alpha, + animators = valueOrNull(animators) ?: properties.animators, background = valueOrNull(background) ?: properties.background, border = valueOrNull(border) ?: properties.border, columnCount = valueOrNull(columnCount) ?: properties.columnCount, @@ -870,7 +888,8 @@ fun Gallery.override( * @param accessibility Accessibility settings. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param background Element background. It can contain multiple layers. * @param border Element stroke. * @param columnCount Number of columns for block layout. @@ -916,6 +935,7 @@ fun Gallery.defer( alignmentHorizontal: ReferenceProperty? = null, alignmentVertical: ReferenceProperty? = null, alpha: ReferenceProperty? = null, + animators: ReferenceProperty>? = null, background: ReferenceProperty>? = null, border: ReferenceProperty? = null, columnCount: ReferenceProperty? = null, @@ -959,6 +979,7 @@ fun Gallery.defer( alignmentHorizontal = alignmentHorizontal ?: properties.alignmentHorizontal, alignmentVertical = alignmentVertical ?: properties.alignmentVertical, alpha = alpha ?: properties.alpha, + animators = animators ?: properties.animators, background = background ?: properties.background, border = border ?: properties.border, columnCount = columnCount ?: properties.columnCount, @@ -1002,7 +1023,7 @@ fun Gallery.defer( /** * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. * @param columnCount Number of columns for block layout. * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. * @param crossContentAlignment Aligning elements in the direction perpendicular to the scroll direction. In horizontal galleries:
  • `start` — alignment to the top of the card;
  • `center` — to the center;
  • `end` — to the bottom.
  • In vertical galleries:

  • `start` — alignment to the left of the card;
  • `center` — to the center;
  • `end` — to the right.
  • @@ -1042,6 +1063,7 @@ fun Gallery.evaluate( alignmentHorizontal = alignmentHorizontal ?: properties.alignmentHorizontal, alignmentVertical = alignmentVertical ?: properties.alignmentVertical, alpha = alpha ?: properties.alpha, + animators = properties.animators, background = properties.background, border = properties.border, columnCount = columnCount ?: properties.columnCount, @@ -1086,7 +1108,8 @@ fun Gallery.evaluate( * @param accessibility Accessibility settings. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param background Element background. It can contain multiple layers. * @param border Element stroke. * @param columnCount Number of columns for block layout. @@ -1132,6 +1155,7 @@ fun Component.override( alignmentHorizontal: AlignmentHorizontal? = null, alignmentVertical: AlignmentVertical? = null, alpha: Double? = null, + animators: List? = null, background: List? = null, border: Border? = null, columnCount: Int? = null, @@ -1176,6 +1200,7 @@ fun Component.override( alignmentHorizontal = valueOrNull(alignmentHorizontal), alignmentVertical = valueOrNull(alignmentVertical), alpha = valueOrNull(alpha), + animators = valueOrNull(animators), background = valueOrNull(background), border = valueOrNull(border), columnCount = valueOrNull(columnCount), @@ -1220,7 +1245,8 @@ fun Component.override( * @param accessibility Accessibility settings. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param background Element background. It can contain multiple layers. * @param border Element stroke. * @param columnCount Number of columns for block layout. @@ -1266,6 +1292,7 @@ fun Component.defer( alignmentHorizontal: ReferenceProperty? = null, alignmentVertical: ReferenceProperty? = null, alpha: ReferenceProperty? = null, + animators: ReferenceProperty>? = null, background: ReferenceProperty>? = null, border: ReferenceProperty? = null, columnCount: ReferenceProperty? = null, @@ -1310,6 +1337,7 @@ fun Component.defer( alignmentHorizontal = alignmentHorizontal, alignmentVertical = alignmentVertical, alpha = alpha, + animators = animators, background = background, border = border, columnCount = columnCount, @@ -1353,7 +1381,7 @@ fun Component.defer( /** * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. * @param columnCount Number of columns for block layout. * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. * @param crossContentAlignment Aligning elements in the direction perpendicular to the scroll direction. In horizontal galleries:
  • `start` — alignment to the top of the card;
  • `center` — to the center;
  • `end` — to the bottom.
  • In vertical galleries:

  • `start` — alignment to the left of the card;
  • `center` — to the center;
  • `end` — to the right.
  • @@ -1394,6 +1422,7 @@ fun Component.evaluate( alignmentHorizontal = alignmentHorizontal, alignmentVertical = alignmentVertical, alpha = alpha, + animators = null, background = null, border = null, columnCount = columnCount, diff --git a/json-builder/kotlin/src/generated/kotlin/divkit/dsl/GifImage.kt b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/GifImage.kt index 695bb30c5..d65ba90da 100644 --- a/json-builder/kotlin/src/generated/kotlin/divkit/dsl/GifImage.kt +++ b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/GifImage.kt @@ -43,6 +43,7 @@ class GifImage internal constructor( alignmentHorizontal = additive.alignmentHorizontal ?: properties.alignmentHorizontal, alignmentVertical = additive.alignmentVertical ?: properties.alignmentVertical, alpha = additive.alpha ?: properties.alpha, + animators = additive.animators ?: properties.animators, aspect = additive.aspect ?: properties.aspect, background = additive.background ?: properties.background, border = additive.border ?: properties.border, @@ -109,10 +110,14 @@ class GifImage internal constructor( */ val alignmentVertical: Property?, /** - * Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * Transparency of whole element: `0` — completely transparent, `1` — opaque. * Default value: `1.0`. */ val alpha: Property?, + /** + * Declaration of animators that can be used to change the value of variables over time. + */ + val animators: Property>?, /** * Fixed aspect ratio. The element's height is calculated based on the width, ignoring the `height` value. */ @@ -276,6 +281,7 @@ class GifImage internal constructor( result.tryPutProperty("alignment_horizontal", alignmentHorizontal) result.tryPutProperty("alignment_vertical", alignmentVertical) result.tryPutProperty("alpha", alpha) + result.tryPutProperty("animators", animators) result.tryPutProperty("aspect", aspect) result.tryPutProperty("background", background) result.tryPutProperty("border", border) @@ -324,7 +330,8 @@ class GifImage internal constructor( * @param actions Multiple actions when clicking on an element. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param aspect Fixed aspect ratio. The element's height is calculated based on the width, ignoring the `height` value. * @param background Element background. It can contain multiple layers. * @param border Element stroke. @@ -372,6 +379,7 @@ fun DivScope.gifImage( alignmentHorizontal: AlignmentHorizontal? = null, alignmentVertical: AlignmentVertical? = null, alpha: Double? = null, + animators: List? = null, aspect: Aspect? = null, background: List? = null, border: Border? = null, @@ -417,6 +425,7 @@ fun DivScope.gifImage( alignmentHorizontal = valueOrNull(alignmentHorizontal), alignmentVertical = valueOrNull(alignmentVertical), alpha = valueOrNull(alpha), + animators = valueOrNull(animators), aspect = valueOrNull(aspect), background = valueOrNull(background), border = valueOrNull(border), @@ -463,7 +472,8 @@ fun DivScope.gifImage( * @param actions Multiple actions when clicking on an element. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param aspect Fixed aspect ratio. The element's height is calculated based on the width, ignoring the `height` value. * @param background Element background. It can contain multiple layers. * @param border Element stroke. @@ -511,6 +521,7 @@ fun DivScope.gifImageProps( alignmentHorizontal: AlignmentHorizontal? = null, alignmentVertical: AlignmentVertical? = null, alpha: Double? = null, + animators: List? = null, aspect: Aspect? = null, background: List? = null, border: Border? = null, @@ -555,6 +566,7 @@ fun DivScope.gifImageProps( alignmentHorizontal = valueOrNull(alignmentHorizontal), alignmentVertical = valueOrNull(alignmentVertical), alpha = valueOrNull(alpha), + animators = valueOrNull(animators), aspect = valueOrNull(aspect), background = valueOrNull(background), border = valueOrNull(border), @@ -600,7 +612,8 @@ fun DivScope.gifImageProps( * @param actions Multiple actions when clicking on an element. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param aspect Fixed aspect ratio. The element's height is calculated based on the width, ignoring the `height` value. * @param background Element background. It can contain multiple layers. * @param border Element stroke. @@ -648,6 +661,7 @@ fun TemplateScope.gifImageRefs( alignmentHorizontal: ReferenceProperty? = null, alignmentVertical: ReferenceProperty? = null, alpha: ReferenceProperty? = null, + animators: ReferenceProperty>? = null, aspect: ReferenceProperty? = null, background: ReferenceProperty>? = null, border: ReferenceProperty? = null, @@ -692,6 +706,7 @@ fun TemplateScope.gifImageRefs( alignmentHorizontal = alignmentHorizontal, alignmentVertical = alignmentVertical, alpha = alpha, + animators = animators, aspect = aspect, background = background, border = border, @@ -737,7 +752,8 @@ fun TemplateScope.gifImageRefs( * @param actions Multiple actions when clicking on an element. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param aspect Fixed aspect ratio. The element's height is calculated based on the width, ignoring the `height` value. * @param background Element background. It can contain multiple layers. * @param border Element stroke. @@ -785,6 +801,7 @@ fun GifImage.override( alignmentHorizontal: AlignmentHorizontal? = null, alignmentVertical: AlignmentVertical? = null, alpha: Double? = null, + animators: List? = null, aspect: Aspect? = null, background: List? = null, border: Border? = null, @@ -830,6 +847,7 @@ fun GifImage.override( alignmentHorizontal = valueOrNull(alignmentHorizontal) ?: properties.alignmentHorizontal, alignmentVertical = valueOrNull(alignmentVertical) ?: properties.alignmentVertical, alpha = valueOrNull(alpha) ?: properties.alpha, + animators = valueOrNull(animators) ?: properties.animators, aspect = valueOrNull(aspect) ?: properties.aspect, background = valueOrNull(background) ?: properties.background, border = valueOrNull(border) ?: properties.border, @@ -876,7 +894,8 @@ fun GifImage.override( * @param actions Multiple actions when clicking on an element. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param aspect Fixed aspect ratio. The element's height is calculated based on the width, ignoring the `height` value. * @param background Element background. It can contain multiple layers. * @param border Element stroke. @@ -924,6 +943,7 @@ fun GifImage.defer( alignmentHorizontal: ReferenceProperty? = null, alignmentVertical: ReferenceProperty? = null, alpha: ReferenceProperty? = null, + animators: ReferenceProperty>? = null, aspect: ReferenceProperty? = null, background: ReferenceProperty>? = null, border: ReferenceProperty? = null, @@ -969,6 +989,7 @@ fun GifImage.defer( alignmentHorizontal = alignmentHorizontal ?: properties.alignmentHorizontal, alignmentVertical = alignmentVertical ?: properties.alignmentVertical, alpha = alpha ?: properties.alpha, + animators = animators ?: properties.animators, aspect = aspect ?: properties.aspect, background = background ?: properties.background, border = border ?: properties.border, @@ -1011,7 +1032,7 @@ fun GifImage.defer( /** * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. * @param contentAlignmentHorizontal Horizontal image alignment. * @param contentAlignmentVertical Vertical image alignment. @@ -1050,6 +1071,7 @@ fun GifImage.evaluate( alignmentHorizontal = alignmentHorizontal ?: properties.alignmentHorizontal, alignmentVertical = alignmentVertical ?: properties.alignmentVertical, alpha = alpha ?: properties.alpha, + animators = properties.animators, aspect = properties.aspect, background = properties.background, border = properties.border, @@ -1096,7 +1118,8 @@ fun GifImage.evaluate( * @param actions Multiple actions when clicking on an element. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param aspect Fixed aspect ratio. The element's height is calculated based on the width, ignoring the `height` value. * @param background Element background. It can contain multiple layers. * @param border Element stroke. @@ -1144,6 +1167,7 @@ fun Component.override( alignmentHorizontal: AlignmentHorizontal? = null, alignmentVertical: AlignmentVertical? = null, alpha: Double? = null, + animators: List? = null, aspect: Aspect? = null, background: List? = null, border: Border? = null, @@ -1190,6 +1214,7 @@ fun Component.override( alignmentHorizontal = valueOrNull(alignmentHorizontal), alignmentVertical = valueOrNull(alignmentVertical), alpha = valueOrNull(alpha), + animators = valueOrNull(animators), aspect = valueOrNull(aspect), background = valueOrNull(background), border = valueOrNull(border), @@ -1236,7 +1261,8 @@ fun Component.override( * @param actions Multiple actions when clicking on an element. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param aspect Fixed aspect ratio. The element's height is calculated based on the width, ignoring the `height` value. * @param background Element background. It can contain multiple layers. * @param border Element stroke. @@ -1284,6 +1310,7 @@ fun Component.defer( alignmentHorizontal: ReferenceProperty? = null, alignmentVertical: ReferenceProperty? = null, alpha: ReferenceProperty? = null, + animators: ReferenceProperty>? = null, aspect: ReferenceProperty? = null, background: ReferenceProperty>? = null, border: ReferenceProperty? = null, @@ -1330,6 +1357,7 @@ fun Component.defer( alignmentHorizontal = alignmentHorizontal, alignmentVertical = alignmentVertical, alpha = alpha, + animators = animators, aspect = aspect, background = background, border = border, @@ -1372,7 +1400,7 @@ fun Component.defer( /** * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. * @param contentAlignmentHorizontal Horizontal image alignment. * @param contentAlignmentVertical Vertical image alignment. @@ -1412,6 +1440,7 @@ fun Component.evaluate( alignmentHorizontal = alignmentHorizontal, alignmentVertical = alignmentVertical, alpha = alpha, + animators = null, aspect = null, background = null, border = null, diff --git a/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Grid.kt b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Grid.kt index 45bb53731..f0e05a518 100644 --- a/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Grid.kt +++ b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Grid.kt @@ -43,6 +43,7 @@ class Grid internal constructor( alignmentHorizontal = additive.alignmentHorizontal ?: properties.alignmentHorizontal, alignmentVertical = additive.alignmentVertical ?: properties.alignmentVertical, alpha = additive.alpha ?: properties.alpha, + animators = additive.animators ?: properties.animators, background = additive.background ?: properties.background, border = additive.border ?: properties.border, columnCount = additive.columnCount ?: properties.columnCount, @@ -105,10 +106,14 @@ class Grid internal constructor( */ val alignmentVertical: Property?, /** - * Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * Transparency of whole element: `0` — completely transparent, `1` — opaque. * Default value: `1.0`. */ val alpha: Property?, + /** + * Declaration of animators that can be used to change the value of variables over time. + */ + val animators: Property>?, /** * Element background. It can contain multiple layers. */ @@ -253,6 +258,7 @@ class Grid internal constructor( result.tryPutProperty("alignment_horizontal", alignmentHorizontal) result.tryPutProperty("alignment_vertical", alignmentVertical) result.tryPutProperty("alpha", alpha) + result.tryPutProperty("animators", animators) result.tryPutProperty("background", background) result.tryPutProperty("border", border) result.tryPutProperty("column_count", columnCount) @@ -297,7 +303,8 @@ class Grid internal constructor( * @param actions Multiple actions when clicking on an element. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param background Element background. It can contain multiple layers. * @param border Element stroke. * @param columnCount Number of columns. @@ -341,6 +348,7 @@ fun DivScope.grid( alignmentHorizontal: AlignmentHorizontal? = null, alignmentVertical: AlignmentVertical? = null, alpha: Double? = null, + animators: List? = null, background: List? = null, border: Border? = null, columnCount: Int? = null, @@ -382,6 +390,7 @@ fun DivScope.grid( alignmentHorizontal = valueOrNull(alignmentHorizontal), alignmentVertical = valueOrNull(alignmentVertical), alpha = valueOrNull(alpha), + animators = valueOrNull(animators), background = valueOrNull(background), border = valueOrNull(border), columnCount = valueOrNull(columnCount), @@ -424,7 +433,8 @@ fun DivScope.grid( * @param actions Multiple actions when clicking on an element. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param background Element background. It can contain multiple layers. * @param border Element stroke. * @param columnCount Number of columns. @@ -468,6 +478,7 @@ fun DivScope.gridProps( alignmentHorizontal: AlignmentHorizontal? = null, alignmentVertical: AlignmentVertical? = null, alpha: Double? = null, + animators: List? = null, background: List? = null, border: Border? = null, columnCount: Int? = null, @@ -508,6 +519,7 @@ fun DivScope.gridProps( alignmentHorizontal = valueOrNull(alignmentHorizontal), alignmentVertical = valueOrNull(alignmentVertical), alpha = valueOrNull(alpha), + animators = valueOrNull(animators), background = valueOrNull(background), border = valueOrNull(border), columnCount = valueOrNull(columnCount), @@ -549,7 +561,8 @@ fun DivScope.gridProps( * @param actions Multiple actions when clicking on an element. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param background Element background. It can contain multiple layers. * @param border Element stroke. * @param columnCount Number of columns. @@ -593,6 +606,7 @@ fun TemplateScope.gridRefs( alignmentHorizontal: ReferenceProperty? = null, alignmentVertical: ReferenceProperty? = null, alpha: ReferenceProperty? = null, + animators: ReferenceProperty>? = null, background: ReferenceProperty>? = null, border: ReferenceProperty? = null, columnCount: ReferenceProperty? = null, @@ -633,6 +647,7 @@ fun TemplateScope.gridRefs( alignmentHorizontal = alignmentHorizontal, alignmentVertical = alignmentVertical, alpha = alpha, + animators = animators, background = background, border = border, columnCount = columnCount, @@ -674,7 +689,8 @@ fun TemplateScope.gridRefs( * @param actions Multiple actions when clicking on an element. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param background Element background. It can contain multiple layers. * @param border Element stroke. * @param columnCount Number of columns. @@ -718,6 +734,7 @@ fun Grid.override( alignmentHorizontal: AlignmentHorizontal? = null, alignmentVertical: AlignmentVertical? = null, alpha: Double? = null, + animators: List? = null, background: List? = null, border: Border? = null, columnCount: Int? = null, @@ -759,6 +776,7 @@ fun Grid.override( alignmentHorizontal = valueOrNull(alignmentHorizontal) ?: properties.alignmentHorizontal, alignmentVertical = valueOrNull(alignmentVertical) ?: properties.alignmentVertical, alpha = valueOrNull(alpha) ?: properties.alpha, + animators = valueOrNull(animators) ?: properties.animators, background = valueOrNull(background) ?: properties.background, border = valueOrNull(border) ?: properties.border, columnCount = valueOrNull(columnCount) ?: properties.columnCount, @@ -801,7 +819,8 @@ fun Grid.override( * @param actions Multiple actions when clicking on an element. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param background Element background. It can contain multiple layers. * @param border Element stroke. * @param columnCount Number of columns. @@ -845,6 +864,7 @@ fun Grid.defer( alignmentHorizontal: ReferenceProperty? = null, alignmentVertical: ReferenceProperty? = null, alpha: ReferenceProperty? = null, + animators: ReferenceProperty>? = null, background: ReferenceProperty>? = null, border: ReferenceProperty? = null, columnCount: ReferenceProperty? = null, @@ -886,6 +906,7 @@ fun Grid.defer( alignmentHorizontal = alignmentHorizontal ?: properties.alignmentHorizontal, alignmentVertical = alignmentVertical ?: properties.alignmentVertical, alpha = alpha ?: properties.alpha, + animators = animators ?: properties.animators, background = background ?: properties.background, border = border ?: properties.border, columnCount = columnCount ?: properties.columnCount, @@ -924,7 +945,7 @@ fun Grid.defer( /** * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. * @param columnCount Number of columns. * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. * @param contentAlignmentHorizontal Horizontal alignment of grid contents. @@ -955,6 +976,7 @@ fun Grid.evaluate( alignmentHorizontal = alignmentHorizontal ?: properties.alignmentHorizontal, alignmentVertical = alignmentVertical ?: properties.alignmentVertical, alpha = alpha ?: properties.alpha, + animators = properties.animators, background = properties.background, border = properties.border, columnCount = columnCount ?: properties.columnCount, @@ -997,7 +1019,8 @@ fun Grid.evaluate( * @param actions Multiple actions when clicking on an element. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param background Element background. It can contain multiple layers. * @param border Element stroke. * @param columnCount Number of columns. @@ -1041,6 +1064,7 @@ fun Component.override( alignmentHorizontal: AlignmentHorizontal? = null, alignmentVertical: AlignmentVertical? = null, alpha: Double? = null, + animators: List? = null, background: List? = null, border: Border? = null, columnCount: Int? = null, @@ -1083,6 +1107,7 @@ fun Component.override( alignmentHorizontal = valueOrNull(alignmentHorizontal), alignmentVertical = valueOrNull(alignmentVertical), alpha = valueOrNull(alpha), + animators = valueOrNull(animators), background = valueOrNull(background), border = valueOrNull(border), columnCount = valueOrNull(columnCount), @@ -1125,7 +1150,8 @@ fun Component.override( * @param actions Multiple actions when clicking on an element. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param background Element background. It can contain multiple layers. * @param border Element stroke. * @param columnCount Number of columns. @@ -1169,6 +1195,7 @@ fun Component.defer( alignmentHorizontal: ReferenceProperty? = null, alignmentVertical: ReferenceProperty? = null, alpha: ReferenceProperty? = null, + animators: ReferenceProperty>? = null, background: ReferenceProperty>? = null, border: ReferenceProperty? = null, columnCount: ReferenceProperty? = null, @@ -1211,6 +1238,7 @@ fun Component.defer( alignmentHorizontal = alignmentHorizontal, alignmentVertical = alignmentVertical, alpha = alpha, + animators = animators, background = background, border = border, columnCount = columnCount, @@ -1249,7 +1277,7 @@ fun Component.defer( /** * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. * @param columnCount Number of columns. * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. * @param contentAlignmentHorizontal Horizontal alignment of grid contents. @@ -1281,6 +1309,7 @@ fun Component.evaluate( alignmentHorizontal = alignmentHorizontal, alignmentVertical = alignmentVertical, alpha = alpha, + animators = null, background = null, border = null, columnCount = columnCount, diff --git a/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Image.kt b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Image.kt index 3f7889e17..2ab1c2881 100644 --- a/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Image.kt +++ b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Image.kt @@ -44,6 +44,7 @@ class Image internal constructor( alignmentHorizontal = additive.alignmentHorizontal ?: properties.alignmentHorizontal, alignmentVertical = additive.alignmentVertical ?: properties.alignmentVertical, alpha = additive.alpha ?: properties.alpha, + animators = additive.animators ?: properties.animators, appearanceAnimation = additive.appearanceAnimation ?: properties.appearanceAnimation, aspect = additive.aspect ?: properties.aspect, background = additive.background ?: properties.background, @@ -118,10 +119,14 @@ class Image internal constructor( */ val alignmentVertical: Property?, /** - * Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * Transparency of whole element: `0` — completely transparent, `1` — opaque. * Default value: `1.0`. */ val alpha: Property?, + /** + * Declaration of animators that can be used to change the value of variables over time. + */ + val animators: Property>?, /** * Transparency animation when loading an image. */ @@ -304,6 +309,7 @@ class Image internal constructor( result.tryPutProperty("alignment_horizontal", alignmentHorizontal) result.tryPutProperty("alignment_vertical", alignmentVertical) result.tryPutProperty("alpha", alpha) + result.tryPutProperty("animators", animators) result.tryPutProperty("appearance_animation", appearanceAnimation) result.tryPutProperty("aspect", aspect) result.tryPutProperty("background", background) @@ -357,7 +363,8 @@ class Image internal constructor( * @param actions Multiple actions when clicking on an element. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param appearanceAnimation Transparency animation when loading an image. * @param aspect Fixed aspect ratio. The element's height is calculated based on the width, ignoring the `height` value. * @param background Element background. It can contain multiple layers. @@ -410,6 +417,7 @@ fun DivScope.image( alignmentHorizontal: AlignmentHorizontal? = null, alignmentVertical: AlignmentVertical? = null, alpha: Double? = null, + animators: List? = null, appearanceAnimation: FadeTransition? = null, aspect: Aspect? = null, background: List? = null, @@ -460,6 +468,7 @@ fun DivScope.image( alignmentHorizontal = valueOrNull(alignmentHorizontal), alignmentVertical = valueOrNull(alignmentVertical), alpha = valueOrNull(alpha), + animators = valueOrNull(animators), appearanceAnimation = valueOrNull(appearanceAnimation), aspect = valueOrNull(aspect), background = valueOrNull(background), @@ -511,7 +520,8 @@ fun DivScope.image( * @param actions Multiple actions when clicking on an element. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param appearanceAnimation Transparency animation when loading an image. * @param aspect Fixed aspect ratio. The element's height is calculated based on the width, ignoring the `height` value. * @param background Element background. It can contain multiple layers. @@ -564,6 +574,7 @@ fun DivScope.imageProps( alignmentHorizontal: AlignmentHorizontal? = null, alignmentVertical: AlignmentVertical? = null, alpha: Double? = null, + animators: List? = null, appearanceAnimation: FadeTransition? = null, aspect: Aspect? = null, background: List? = null, @@ -613,6 +624,7 @@ fun DivScope.imageProps( alignmentHorizontal = valueOrNull(alignmentHorizontal), alignmentVertical = valueOrNull(alignmentVertical), alpha = valueOrNull(alpha), + animators = valueOrNull(animators), appearanceAnimation = valueOrNull(appearanceAnimation), aspect = valueOrNull(aspect), background = valueOrNull(background), @@ -663,7 +675,8 @@ fun DivScope.imageProps( * @param actions Multiple actions when clicking on an element. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param appearanceAnimation Transparency animation when loading an image. * @param aspect Fixed aspect ratio. The element's height is calculated based on the width, ignoring the `height` value. * @param background Element background. It can contain multiple layers. @@ -716,6 +729,7 @@ fun TemplateScope.imageRefs( alignmentHorizontal: ReferenceProperty? = null, alignmentVertical: ReferenceProperty? = null, alpha: ReferenceProperty? = null, + animators: ReferenceProperty>? = null, appearanceAnimation: ReferenceProperty? = null, aspect: ReferenceProperty? = null, background: ReferenceProperty>? = null, @@ -765,6 +779,7 @@ fun TemplateScope.imageRefs( alignmentHorizontal = alignmentHorizontal, alignmentVertical = alignmentVertical, alpha = alpha, + animators = animators, appearanceAnimation = appearanceAnimation, aspect = aspect, background = background, @@ -815,7 +830,8 @@ fun TemplateScope.imageRefs( * @param actions Multiple actions when clicking on an element. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param appearanceAnimation Transparency animation when loading an image. * @param aspect Fixed aspect ratio. The element's height is calculated based on the width, ignoring the `height` value. * @param background Element background. It can contain multiple layers. @@ -868,6 +884,7 @@ fun Image.override( alignmentHorizontal: AlignmentHorizontal? = null, alignmentVertical: AlignmentVertical? = null, alpha: Double? = null, + animators: List? = null, appearanceAnimation: FadeTransition? = null, aspect: Aspect? = null, background: List? = null, @@ -918,6 +935,7 @@ fun Image.override( alignmentHorizontal = valueOrNull(alignmentHorizontal) ?: properties.alignmentHorizontal, alignmentVertical = valueOrNull(alignmentVertical) ?: properties.alignmentVertical, alpha = valueOrNull(alpha) ?: properties.alpha, + animators = valueOrNull(animators) ?: properties.animators, appearanceAnimation = valueOrNull(appearanceAnimation) ?: properties.appearanceAnimation, aspect = valueOrNull(aspect) ?: properties.aspect, background = valueOrNull(background) ?: properties.background, @@ -969,7 +987,8 @@ fun Image.override( * @param actions Multiple actions when clicking on an element. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param appearanceAnimation Transparency animation when loading an image. * @param aspect Fixed aspect ratio. The element's height is calculated based on the width, ignoring the `height` value. * @param background Element background. It can contain multiple layers. @@ -1022,6 +1041,7 @@ fun Image.defer( alignmentHorizontal: ReferenceProperty? = null, alignmentVertical: ReferenceProperty? = null, alpha: ReferenceProperty? = null, + animators: ReferenceProperty>? = null, appearanceAnimation: ReferenceProperty? = null, aspect: ReferenceProperty? = null, background: ReferenceProperty>? = null, @@ -1072,6 +1092,7 @@ fun Image.defer( alignmentHorizontal = alignmentHorizontal ?: properties.alignmentHorizontal, alignmentVertical = alignmentVertical ?: properties.alignmentVertical, alpha = alpha ?: properties.alpha, + animators = animators ?: properties.animators, appearanceAnimation = appearanceAnimation ?: properties.appearanceAnimation, aspect = aspect ?: properties.aspect, background = background ?: properties.background, @@ -1119,7 +1140,7 @@ fun Image.defer( * @param imageUrl Direct URL to an image. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. * @param contentAlignmentHorizontal Horizontal image alignment. * @param contentAlignmentVertical Vertical image alignment. @@ -1164,6 +1185,7 @@ fun Image.evaluate( alignmentHorizontal = alignmentHorizontal ?: properties.alignmentHorizontal, alignmentVertical = alignmentVertical ?: properties.alignmentVertical, alpha = alpha ?: properties.alpha, + animators = properties.animators, appearanceAnimation = properties.appearanceAnimation, aspect = properties.aspect, background = properties.background, @@ -1215,7 +1237,8 @@ fun Image.evaluate( * @param actions Multiple actions when clicking on an element. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param appearanceAnimation Transparency animation when loading an image. * @param aspect Fixed aspect ratio. The element's height is calculated based on the width, ignoring the `height` value. * @param background Element background. It can contain multiple layers. @@ -1268,6 +1291,7 @@ fun Component.override( alignmentHorizontal: AlignmentHorizontal? = null, alignmentVertical: AlignmentVertical? = null, alpha: Double? = null, + animators: List? = null, appearanceAnimation: FadeTransition? = null, aspect: Aspect? = null, background: List? = null, @@ -1319,6 +1343,7 @@ fun Component.override( alignmentHorizontal = valueOrNull(alignmentHorizontal), alignmentVertical = valueOrNull(alignmentVertical), alpha = valueOrNull(alpha), + animators = valueOrNull(animators), appearanceAnimation = valueOrNull(appearanceAnimation), aspect = valueOrNull(aspect), background = valueOrNull(background), @@ -1370,7 +1395,8 @@ fun Component.override( * @param actions Multiple actions when clicking on an element. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param appearanceAnimation Transparency animation when loading an image. * @param aspect Fixed aspect ratio. The element's height is calculated based on the width, ignoring the `height` value. * @param background Element background. It can contain multiple layers. @@ -1423,6 +1449,7 @@ fun Component.defer( alignmentHorizontal: ReferenceProperty? = null, alignmentVertical: ReferenceProperty? = null, alpha: ReferenceProperty? = null, + animators: ReferenceProperty>? = null, appearanceAnimation: ReferenceProperty? = null, aspect: ReferenceProperty? = null, background: ReferenceProperty>? = null, @@ -1474,6 +1501,7 @@ fun Component.defer( alignmentHorizontal = alignmentHorizontal, alignmentVertical = alignmentVertical, alpha = alpha, + animators = animators, appearanceAnimation = appearanceAnimation, aspect = aspect, background = background, @@ -1521,7 +1549,7 @@ fun Component.defer( * @param imageUrl Direct URL to an image. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. * @param contentAlignmentHorizontal Horizontal image alignment. * @param contentAlignmentVertical Vertical image alignment. @@ -1567,6 +1595,7 @@ fun Component.evaluate( alignmentHorizontal = alignmentHorizontal, alignmentVertical = alignmentVertical, alpha = alpha, + animators = null, appearanceAnimation = null, aspect = null, background = null, diff --git a/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Indicator.kt b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Indicator.kt index 401777b29..cec94f3a2 100644 --- a/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Indicator.kt +++ b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Indicator.kt @@ -44,6 +44,7 @@ class Indicator internal constructor( alignmentVertical = additive.alignmentVertical ?: properties.alignmentVertical, alpha = additive.alpha ?: properties.alpha, animation = additive.animation ?: properties.animation, + animators = additive.animators ?: properties.animators, background = additive.background ?: properties.background, border = additive.border ?: properties.border, columnSpan = additive.columnSpan ?: properties.columnSpan, @@ -111,7 +112,7 @@ class Indicator internal constructor( */ val alignmentVertical: Property?, /** - * Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * Transparency of whole element: `0` — completely transparent, `1` — opaque. * Default value: `1.0`. */ val alpha: Property?, @@ -120,6 +121,10 @@ class Indicator internal constructor( * Default value: `scale`. */ val animation: Property?, + /** + * Declaration of animators that can be used to change the value of variables over time. + */ + val animators: Property>?, /** * Element background. It can contain multiple layers. */ @@ -279,6 +284,7 @@ class Indicator internal constructor( result.tryPutProperty("alignment_vertical", alignmentVertical) result.tryPutProperty("alpha", alpha) result.tryPutProperty("animation", animation) + result.tryPutProperty("animators", animators) result.tryPutProperty("background", background) result.tryPutProperty("border", border) result.tryPutProperty("column_span", columnSpan) @@ -333,8 +339,9 @@ class Indicator internal constructor( * @param activeShape Active indicator shape. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. * @param animation Animation of switching between indicators. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param background Element background. It can contain multiple layers. * @param border Element stroke. * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. @@ -381,6 +388,7 @@ fun DivScope.indicator( alignmentVertical: AlignmentVertical? = null, alpha: Double? = null, animation: Indicator.Animation? = null, + animators: List? = null, background: List? = null, border: Border? = null, columnSpan: Int? = null, @@ -425,6 +433,7 @@ fun DivScope.indicator( alignmentVertical = valueOrNull(alignmentVertical), alpha = valueOrNull(alpha), animation = valueOrNull(animation), + animators = valueOrNull(animators), background = valueOrNull(background), border = valueOrNull(border), columnSpan = valueOrNull(columnSpan), @@ -469,8 +478,9 @@ fun DivScope.indicator( * @param activeShape Active indicator shape. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. * @param animation Animation of switching between indicators. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param background Element background. It can contain multiple layers. * @param border Element stroke. * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. @@ -517,6 +527,7 @@ fun DivScope.indicatorProps( alignmentVertical: AlignmentVertical? = null, alpha: Double? = null, animation: Indicator.Animation? = null, + animators: List? = null, background: List? = null, border: Border? = null, columnSpan: Int? = null, @@ -560,6 +571,7 @@ fun DivScope.indicatorProps( alignmentVertical = valueOrNull(alignmentVertical), alpha = valueOrNull(alpha), animation = valueOrNull(animation), + animators = valueOrNull(animators), background = valueOrNull(background), border = valueOrNull(border), columnSpan = valueOrNull(columnSpan), @@ -603,8 +615,9 @@ fun DivScope.indicatorProps( * @param activeShape Active indicator shape. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. * @param animation Animation of switching between indicators. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param background Element background. It can contain multiple layers. * @param border Element stroke. * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. @@ -651,6 +664,7 @@ fun TemplateScope.indicatorRefs( alignmentVertical: ReferenceProperty? = null, alpha: ReferenceProperty? = null, animation: ReferenceProperty? = null, + animators: ReferenceProperty>? = null, background: ReferenceProperty>? = null, border: ReferenceProperty? = null, columnSpan: ReferenceProperty? = null, @@ -694,6 +708,7 @@ fun TemplateScope.indicatorRefs( alignmentVertical = alignmentVertical, alpha = alpha, animation = animation, + animators = animators, background = background, border = border, columnSpan = columnSpan, @@ -737,8 +752,9 @@ fun TemplateScope.indicatorRefs( * @param activeShape Active indicator shape. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. * @param animation Animation of switching between indicators. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param background Element background. It can contain multiple layers. * @param border Element stroke. * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. @@ -785,6 +801,7 @@ fun Indicator.override( alignmentVertical: AlignmentVertical? = null, alpha: Double? = null, animation: Indicator.Animation? = null, + animators: List? = null, background: List? = null, border: Border? = null, columnSpan: Int? = null, @@ -829,6 +846,7 @@ fun Indicator.override( alignmentVertical = valueOrNull(alignmentVertical) ?: properties.alignmentVertical, alpha = valueOrNull(alpha) ?: properties.alpha, animation = valueOrNull(animation) ?: properties.animation, + animators = valueOrNull(animators) ?: properties.animators, background = valueOrNull(background) ?: properties.background, border = valueOrNull(border) ?: properties.border, columnSpan = valueOrNull(columnSpan) ?: properties.columnSpan, @@ -873,8 +891,9 @@ fun Indicator.override( * @param activeShape Active indicator shape. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. * @param animation Animation of switching between indicators. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param background Element background. It can contain multiple layers. * @param border Element stroke. * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. @@ -921,6 +940,7 @@ fun Indicator.defer( alignmentVertical: ReferenceProperty? = null, alpha: ReferenceProperty? = null, animation: ReferenceProperty? = null, + animators: ReferenceProperty>? = null, background: ReferenceProperty>? = null, border: ReferenceProperty? = null, columnSpan: ReferenceProperty? = null, @@ -965,6 +985,7 @@ fun Indicator.defer( alignmentVertical = alignmentVertical ?: properties.alignmentVertical, alpha = alpha ?: properties.alpha, animation = animation ?: properties.animation, + animators = animators ?: properties.animators, background = background ?: properties.background, border = border ?: properties.border, columnSpan = columnSpan ?: properties.columnSpan, @@ -1007,7 +1028,7 @@ fun Indicator.defer( * @param activeItemSize A size multiplier for an active indicator. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. * @param animation Animation of switching between indicators. * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. * @param inactiveItemColor Indicator color. @@ -1041,6 +1062,7 @@ fun Indicator.evaluate( alignmentVertical = alignmentVertical ?: properties.alignmentVertical, alpha = alpha ?: properties.alpha, animation = animation ?: properties.animation, + animators = properties.animators, background = properties.background, border = properties.border, columnSpan = columnSpan ?: properties.columnSpan, @@ -1085,8 +1107,9 @@ fun Indicator.evaluate( * @param activeShape Active indicator shape. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. * @param animation Animation of switching between indicators. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param background Element background. It can contain multiple layers. * @param border Element stroke. * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. @@ -1133,6 +1156,7 @@ fun Component.override( alignmentVertical: AlignmentVertical? = null, alpha: Double? = null, animation: Indicator.Animation? = null, + animators: List? = null, background: List? = null, border: Border? = null, columnSpan: Int? = null, @@ -1178,6 +1202,7 @@ fun Component.override( alignmentVertical = valueOrNull(alignmentVertical), alpha = valueOrNull(alpha), animation = valueOrNull(animation), + animators = valueOrNull(animators), background = valueOrNull(background), border = valueOrNull(border), columnSpan = valueOrNull(columnSpan), @@ -1222,8 +1247,9 @@ fun Component.override( * @param activeShape Active indicator shape. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. * @param animation Animation of switching between indicators. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param background Element background. It can contain multiple layers. * @param border Element stroke. * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. @@ -1270,6 +1296,7 @@ fun Component.defer( alignmentVertical: ReferenceProperty? = null, alpha: ReferenceProperty? = null, animation: ReferenceProperty? = null, + animators: ReferenceProperty>? = null, background: ReferenceProperty>? = null, border: ReferenceProperty? = null, columnSpan: ReferenceProperty? = null, @@ -1315,6 +1342,7 @@ fun Component.defer( alignmentVertical = alignmentVertical, alpha = alpha, animation = animation, + animators = animators, background = background, border = border, columnSpan = columnSpan, @@ -1357,7 +1385,7 @@ fun Component.defer( * @param activeItemSize A size multiplier for an active indicator. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. * @param animation Animation of switching between indicators. * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. * @param inactiveItemColor Indicator color. @@ -1392,6 +1420,7 @@ fun Component.evaluate( alignmentVertical = alignmentVertical, alpha = alpha, animation = animation, + animators = null, background = null, border = null, columnSpan = columnSpan, diff --git a/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Input.kt b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Input.kt index c26b962cb..73a8def3d 100644 --- a/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Input.kt +++ b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Input.kt @@ -40,6 +40,7 @@ class Input internal constructor( alignmentHorizontal = additive.alignmentHorizontal ?: properties.alignmentHorizontal, alignmentVertical = additive.alignmentVertical ?: properties.alignmentVertical, alpha = additive.alpha ?: properties.alpha, + animators = additive.animators ?: properties.animators, autocapitalization = additive.autocapitalization ?: properties.autocapitalization, background = additive.background ?: properties.background, border = additive.border ?: properties.border, @@ -107,10 +108,14 @@ class Input internal constructor( */ val alignmentVertical: Property?, /** - * Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * Transparency of whole element: `0` — completely transparent, `1` — opaque. * Default value: `1.0`. */ val alpha: Property?, + /** + * Declaration of animators that can be used to change the value of variables over time. + */ + val animators: Property>?, /** * Automatic text capitalization type. * Default value: `auto`. @@ -334,6 +339,7 @@ class Input internal constructor( result.tryPutProperty("alignment_horizontal", alignmentHorizontal) result.tryPutProperty("alignment_vertical", alignmentVertical) result.tryPutProperty("alpha", alpha) + result.tryPutProperty("animators", animators) result.tryPutProperty("autocapitalization", autocapitalization) result.tryPutProperty("background", background) result.tryPutProperty("border", border) @@ -446,7 +452,8 @@ class Input internal constructor( * @param accessibility Accessibility settings. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param autocapitalization Automatic text capitalization type. * @param background Element background. It can contain multiple layers. * @param border Element stroke. @@ -505,6 +512,7 @@ fun DivScope.input( alignmentHorizontal: AlignmentHorizontal? = null, alignmentVertical: AlignmentVertical? = null, alpha: Double? = null, + animators: List? = null, autocapitalization: Input.Autocapitalization? = null, background: List? = null, border: Border? = null, @@ -561,6 +569,7 @@ fun DivScope.input( alignmentHorizontal = valueOrNull(alignmentHorizontal), alignmentVertical = valueOrNull(alignmentVertical), alpha = valueOrNull(alpha), + animators = valueOrNull(animators), autocapitalization = valueOrNull(autocapitalization), background = valueOrNull(background), border = valueOrNull(border), @@ -618,7 +627,8 @@ fun DivScope.input( * @param accessibility Accessibility settings. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param autocapitalization Automatic text capitalization type. * @param background Element background. It can contain multiple layers. * @param border Element stroke. @@ -677,6 +687,7 @@ fun DivScope.inputProps( alignmentHorizontal: AlignmentHorizontal? = null, alignmentVertical: AlignmentVertical? = null, alpha: Double? = null, + animators: List? = null, autocapitalization: Input.Autocapitalization? = null, background: List? = null, border: Border? = null, @@ -732,6 +743,7 @@ fun DivScope.inputProps( alignmentHorizontal = valueOrNull(alignmentHorizontal), alignmentVertical = valueOrNull(alignmentVertical), alpha = valueOrNull(alpha), + animators = valueOrNull(animators), autocapitalization = valueOrNull(autocapitalization), background = valueOrNull(background), border = valueOrNull(border), @@ -788,7 +800,8 @@ fun DivScope.inputProps( * @param accessibility Accessibility settings. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param autocapitalization Automatic text capitalization type. * @param background Element background. It can contain multiple layers. * @param border Element stroke. @@ -847,6 +860,7 @@ fun TemplateScope.inputRefs( alignmentHorizontal: ReferenceProperty? = null, alignmentVertical: ReferenceProperty? = null, alpha: ReferenceProperty? = null, + animators: ReferenceProperty>? = null, autocapitalization: ReferenceProperty? = null, background: ReferenceProperty>? = null, border: ReferenceProperty? = null, @@ -902,6 +916,7 @@ fun TemplateScope.inputRefs( alignmentHorizontal = alignmentHorizontal, alignmentVertical = alignmentVertical, alpha = alpha, + animators = animators, autocapitalization = autocapitalization, background = background, border = border, @@ -958,7 +973,8 @@ fun TemplateScope.inputRefs( * @param accessibility Accessibility settings. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param autocapitalization Automatic text capitalization type. * @param background Element background. It can contain multiple layers. * @param border Element stroke. @@ -1017,6 +1033,7 @@ fun Input.override( alignmentHorizontal: AlignmentHorizontal? = null, alignmentVertical: AlignmentVertical? = null, alpha: Double? = null, + animators: List? = null, autocapitalization: Input.Autocapitalization? = null, background: List? = null, border: Border? = null, @@ -1073,6 +1090,7 @@ fun Input.override( alignmentHorizontal = valueOrNull(alignmentHorizontal) ?: properties.alignmentHorizontal, alignmentVertical = valueOrNull(alignmentVertical) ?: properties.alignmentVertical, alpha = valueOrNull(alpha) ?: properties.alpha, + animators = valueOrNull(animators) ?: properties.animators, autocapitalization = valueOrNull(autocapitalization) ?: properties.autocapitalization, background = valueOrNull(background) ?: properties.background, border = valueOrNull(border) ?: properties.border, @@ -1130,7 +1148,8 @@ fun Input.override( * @param accessibility Accessibility settings. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param autocapitalization Automatic text capitalization type. * @param background Element background. It can contain multiple layers. * @param border Element stroke. @@ -1189,6 +1208,7 @@ fun Input.defer( alignmentHorizontal: ReferenceProperty? = null, alignmentVertical: ReferenceProperty? = null, alpha: ReferenceProperty? = null, + animators: ReferenceProperty>? = null, autocapitalization: ReferenceProperty? = null, background: ReferenceProperty>? = null, border: ReferenceProperty? = null, @@ -1245,6 +1265,7 @@ fun Input.defer( alignmentHorizontal = alignmentHorizontal ?: properties.alignmentHorizontal, alignmentVertical = alignmentVertical ?: properties.alignmentVertical, alpha = alpha ?: properties.alpha, + animators = animators ?: properties.animators, autocapitalization = autocapitalization ?: properties.autocapitalization, background = background ?: properties.background, border = border ?: properties.border, @@ -1301,7 +1322,7 @@ fun Input.defer( /** * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. * @param autocapitalization Automatic text capitalization type. * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. * @param fontFamily Font family:
  • `text` — a standard text font;
  • `display` — a family of fonts with a large font size.
  • @@ -1361,6 +1382,7 @@ fun Input.evaluate( alignmentHorizontal = alignmentHorizontal ?: properties.alignmentHorizontal, alignmentVertical = alignmentVertical ?: properties.alignmentVertical, alpha = alpha ?: properties.alpha, + animators = properties.animators, autocapitalization = autocapitalization ?: properties.autocapitalization, background = properties.background, border = properties.border, @@ -1418,7 +1440,8 @@ fun Input.evaluate( * @param accessibility Accessibility settings. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param autocapitalization Automatic text capitalization type. * @param background Element background. It can contain multiple layers. * @param border Element stroke. @@ -1477,6 +1500,7 @@ fun Component.override( alignmentHorizontal: AlignmentHorizontal? = null, alignmentVertical: AlignmentVertical? = null, alpha: Double? = null, + animators: List? = null, autocapitalization: Input.Autocapitalization? = null, background: List? = null, border: Border? = null, @@ -1534,6 +1558,7 @@ fun Component.override( alignmentHorizontal = valueOrNull(alignmentHorizontal), alignmentVertical = valueOrNull(alignmentVertical), alpha = valueOrNull(alpha), + animators = valueOrNull(animators), autocapitalization = valueOrNull(autocapitalization), background = valueOrNull(background), border = valueOrNull(border), @@ -1591,7 +1616,8 @@ fun Component.override( * @param accessibility Accessibility settings. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param autocapitalization Automatic text capitalization type. * @param background Element background. It can contain multiple layers. * @param border Element stroke. @@ -1650,6 +1676,7 @@ fun Component.defer( alignmentHorizontal: ReferenceProperty? = null, alignmentVertical: ReferenceProperty? = null, alpha: ReferenceProperty? = null, + animators: ReferenceProperty>? = null, autocapitalization: ReferenceProperty? = null, background: ReferenceProperty>? = null, border: ReferenceProperty? = null, @@ -1707,6 +1734,7 @@ fun Component.defer( alignmentHorizontal = alignmentHorizontal, alignmentVertical = alignmentVertical, alpha = alpha, + animators = animators, autocapitalization = autocapitalization, background = background, border = border, @@ -1763,7 +1791,7 @@ fun Component.defer( /** * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. * @param autocapitalization Automatic text capitalization type. * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. * @param fontFamily Font family:
  • `text` — a standard text font;
  • `display` — a family of fonts with a large font size.
  • @@ -1824,6 +1852,7 @@ fun Component.evaluate( alignmentHorizontal = alignmentHorizontal, alignmentVertical = alignmentVertical, alpha = alpha, + animators = null, autocapitalization = autocapitalization, background = null, border = null, diff --git a/json-builder/kotlin/src/generated/kotlin/divkit/dsl/NumberAnimator.kt b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/NumberAnimator.kt new file mode 100644 index 000000000..7d1663c46 --- /dev/null +++ b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/NumberAnimator.kt @@ -0,0 +1,369 @@ +@file:Suppress( + "unused", + "UNUSED_PARAMETER", +) + +package divkit.dsl + +import com.fasterxml.jackson.annotation.JsonAnyGetter +import com.fasterxml.jackson.annotation.JsonIgnore +import com.fasterxml.jackson.annotation.JsonValue +import divkit.dsl.annotation.* +import divkit.dsl.core.* +import divkit.dsl.scope.* +import kotlin.Any +import kotlin.String +import kotlin.Suppress +import kotlin.collections.List +import kotlin.collections.Map + +/** + * Number animator. + * + * Can be created using the method [numberAnimator]. + * + * Required parameters: `variable_name, type, id, end_value, duration`. + */ +@Generated +class NumberAnimator internal constructor( + @JsonIgnore + val properties: Properties, +) : Animator { + @JsonAnyGetter + internal fun getJsonProperties(): Map = properties.mergeWith( + mapOf("type" to "number_animator") + ) + + operator fun plus(additive: Properties): NumberAnimator = NumberAnimator( + Properties( + cancelActions = additive.cancelActions ?: properties.cancelActions, + direction = additive.direction ?: properties.direction, + duration = additive.duration ?: properties.duration, + endActions = additive.endActions ?: properties.endActions, + endValue = additive.endValue ?: properties.endValue, + id = additive.id ?: properties.id, + interpolator = additive.interpolator ?: properties.interpolator, + repeatCount = additive.repeatCount ?: properties.repeatCount, + startDelay = additive.startDelay ?: properties.startDelay, + startValue = additive.startValue ?: properties.startValue, + variableName = additive.variableName ?: properties.variableName, + ) + ) + + class Properties internal constructor( + /** + * Actions performed when the animator is cancelled. For example, when an action with `animator_stop` type is received + */ + val cancelActions: Property>?, + /** + * Animation direction. This property sets whether an animation should play forward, backward, or alternate back and forth between playing the sequence forward and backward. + * Default value: `normal`. + */ + val direction: Property?, + /** + * Animation duration in milliseconds. + */ + val duration: Property?, + /** + * Actions performed when the animator completes animation. + */ + val endActions: Property>?, + /** + * Value that will be set at the end of animation. + */ + val endValue: Property?, + /** + * Animator identificator + */ + val id: Property?, + /** + * Interpolation function. + * Default value: `linear`. + */ + val interpolator: Property?, + /** + * The number of times the animation will repeat before it finishes. `0` enables infinite repeats. + * Default value: `1`. + */ + val repeatCount: Property?, + /** + * Animation start delay in milliseconds. + * Default value: `0`. + */ + val startDelay: Property?, + /** + * Value that will be set at the start of animation. Can be omitted, in which case current value of the variable will be used. + */ + val startValue: Property?, + /** + * Name of the variable being animated. + */ + val variableName: Property?, + ) { + internal fun mergeWith(properties: Map): Map { + val result = mutableMapOf() + result.putAll(properties) + result.tryPutProperty("cancel_actions", cancelActions) + result.tryPutProperty("direction", direction) + result.tryPutProperty("duration", duration) + result.tryPutProperty("end_actions", endActions) + result.tryPutProperty("end_value", endValue) + result.tryPutProperty("id", id) + result.tryPutProperty("interpolator", interpolator) + result.tryPutProperty("repeat_count", repeatCount) + result.tryPutProperty("start_delay", startDelay) + result.tryPutProperty("start_value", startValue) + result.tryPutProperty("variable_name", variableName) + return result + } + } +} + +/** + * @param cancelActions Actions performed when the animator is cancelled. For example, when an action with `animator_stop` type is received + * @param direction Animation direction. This property sets whether an animation should play forward, backward, or alternate back and forth between playing the sequence forward and backward. + * @param duration Animation duration in milliseconds. + * @param endActions Actions performed when the animator completes animation. + * @param endValue Value that will be set at the end of animation. + * @param id Animator identificator + * @param interpolator Interpolation function. + * @param repeatCount The number of times the animation will repeat before it finishes. `0` enables infinite repeats. + * @param startDelay Animation start delay in milliseconds. + * @param startValue Value that will be set at the start of animation. Can be omitted, in which case current value of the variable will be used. + * @param variableName Name of the variable being animated. + */ +@Generated +fun DivScope.numberAnimator( + `use named arguments`: Guard = Guard.instance, + cancelActions: List? = null, + direction: AnimationDirection? = null, + duration: Long? = null, + endActions: List? = null, + endValue: Double? = null, + id: String? = null, + interpolator: AnimationInterpolator? = null, + repeatCount: Int? = null, + startDelay: Int? = null, + startValue: Double? = null, + variableName: String? = null, +): NumberAnimator = NumberAnimator( + NumberAnimator.Properties( + cancelActions = valueOrNull(cancelActions), + direction = valueOrNull(direction), + duration = valueOrNull(duration), + endActions = valueOrNull(endActions), + endValue = valueOrNull(endValue), + id = valueOrNull(id), + interpolator = valueOrNull(interpolator), + repeatCount = valueOrNull(repeatCount), + startDelay = valueOrNull(startDelay), + startValue = valueOrNull(startValue), + variableName = valueOrNull(variableName), + ) +) + +/** + * @param cancelActions Actions performed when the animator is cancelled. For example, when an action with `animator_stop` type is received + * @param direction Animation direction. This property sets whether an animation should play forward, backward, or alternate back and forth between playing the sequence forward and backward. + * @param duration Animation duration in milliseconds. + * @param endActions Actions performed when the animator completes animation. + * @param endValue Value that will be set at the end of animation. + * @param id Animator identificator + * @param interpolator Interpolation function. + * @param repeatCount The number of times the animation will repeat before it finishes. `0` enables infinite repeats. + * @param startDelay Animation start delay in milliseconds. + * @param startValue Value that will be set at the start of animation. Can be omitted, in which case current value of the variable will be used. + * @param variableName Name of the variable being animated. + */ +@Generated +fun DivScope.numberAnimatorProps( + `use named arguments`: Guard = Guard.instance, + cancelActions: List? = null, + direction: AnimationDirection? = null, + duration: Long? = null, + endActions: List? = null, + endValue: Double? = null, + id: String? = null, + interpolator: AnimationInterpolator? = null, + repeatCount: Int? = null, + startDelay: Int? = null, + startValue: Double? = null, + variableName: String? = null, +) = NumberAnimator.Properties( + cancelActions = valueOrNull(cancelActions), + direction = valueOrNull(direction), + duration = valueOrNull(duration), + endActions = valueOrNull(endActions), + endValue = valueOrNull(endValue), + id = valueOrNull(id), + interpolator = valueOrNull(interpolator), + repeatCount = valueOrNull(repeatCount), + startDelay = valueOrNull(startDelay), + startValue = valueOrNull(startValue), + variableName = valueOrNull(variableName), +) + +/** + * @param cancelActions Actions performed when the animator is cancelled. For example, when an action with `animator_stop` type is received + * @param direction Animation direction. This property sets whether an animation should play forward, backward, or alternate back and forth between playing the sequence forward and backward. + * @param duration Animation duration in milliseconds. + * @param endActions Actions performed when the animator completes animation. + * @param endValue Value that will be set at the end of animation. + * @param id Animator identificator + * @param interpolator Interpolation function. + * @param repeatCount The number of times the animation will repeat before it finishes. `0` enables infinite repeats. + * @param startDelay Animation start delay in milliseconds. + * @param startValue Value that will be set at the start of animation. Can be omitted, in which case current value of the variable will be used. + * @param variableName Name of the variable being animated. + */ +@Generated +fun TemplateScope.numberAnimatorRefs( + `use named arguments`: Guard = Guard.instance, + cancelActions: ReferenceProperty>? = null, + direction: ReferenceProperty? = null, + duration: ReferenceProperty? = null, + endActions: ReferenceProperty>? = null, + endValue: ReferenceProperty? = null, + id: ReferenceProperty? = null, + interpolator: ReferenceProperty? = null, + repeatCount: ReferenceProperty? = null, + startDelay: ReferenceProperty? = null, + startValue: ReferenceProperty? = null, + variableName: ReferenceProperty? = null, +) = NumberAnimator.Properties( + cancelActions = cancelActions, + direction = direction, + duration = duration, + endActions = endActions, + endValue = endValue, + id = id, + interpolator = interpolator, + repeatCount = repeatCount, + startDelay = startDelay, + startValue = startValue, + variableName = variableName, +) + +/** + * @param cancelActions Actions performed when the animator is cancelled. For example, when an action with `animator_stop` type is received + * @param direction Animation direction. This property sets whether an animation should play forward, backward, or alternate back and forth between playing the sequence forward and backward. + * @param duration Animation duration in milliseconds. + * @param endActions Actions performed when the animator completes animation. + * @param endValue Value that will be set at the end of animation. + * @param id Animator identificator + * @param interpolator Interpolation function. + * @param repeatCount The number of times the animation will repeat before it finishes. `0` enables infinite repeats. + * @param startDelay Animation start delay in milliseconds. + * @param startValue Value that will be set at the start of animation. Can be omitted, in which case current value of the variable will be used. + * @param variableName Name of the variable being animated. + */ +@Generated +fun NumberAnimator.override( + `use named arguments`: Guard = Guard.instance, + cancelActions: List? = null, + direction: AnimationDirection? = null, + duration: Long? = null, + endActions: List? = null, + endValue: Double? = null, + id: String? = null, + interpolator: AnimationInterpolator? = null, + repeatCount: Int? = null, + startDelay: Int? = null, + startValue: Double? = null, + variableName: String? = null, +): NumberAnimator = NumberAnimator( + NumberAnimator.Properties( + cancelActions = valueOrNull(cancelActions) ?: properties.cancelActions, + direction = valueOrNull(direction) ?: properties.direction, + duration = valueOrNull(duration) ?: properties.duration, + endActions = valueOrNull(endActions) ?: properties.endActions, + endValue = valueOrNull(endValue) ?: properties.endValue, + id = valueOrNull(id) ?: properties.id, + interpolator = valueOrNull(interpolator) ?: properties.interpolator, + repeatCount = valueOrNull(repeatCount) ?: properties.repeatCount, + startDelay = valueOrNull(startDelay) ?: properties.startDelay, + startValue = valueOrNull(startValue) ?: properties.startValue, + variableName = valueOrNull(variableName) ?: properties.variableName, + ) +) + +/** + * @param cancelActions Actions performed when the animator is cancelled. For example, when an action with `animator_stop` type is received + * @param direction Animation direction. This property sets whether an animation should play forward, backward, or alternate back and forth between playing the sequence forward and backward. + * @param duration Animation duration in milliseconds. + * @param endActions Actions performed when the animator completes animation. + * @param endValue Value that will be set at the end of animation. + * @param id Animator identificator + * @param interpolator Interpolation function. + * @param repeatCount The number of times the animation will repeat before it finishes. `0` enables infinite repeats. + * @param startDelay Animation start delay in milliseconds. + * @param startValue Value that will be set at the start of animation. Can be omitted, in which case current value of the variable will be used. + * @param variableName Name of the variable being animated. + */ +@Generated +fun NumberAnimator.defer( + `use named arguments`: Guard = Guard.instance, + cancelActions: ReferenceProperty>? = null, + direction: ReferenceProperty? = null, + duration: ReferenceProperty? = null, + endActions: ReferenceProperty>? = null, + endValue: ReferenceProperty? = null, + id: ReferenceProperty? = null, + interpolator: ReferenceProperty? = null, + repeatCount: ReferenceProperty? = null, + startDelay: ReferenceProperty? = null, + startValue: ReferenceProperty? = null, + variableName: ReferenceProperty? = null, +): NumberAnimator = NumberAnimator( + NumberAnimator.Properties( + cancelActions = cancelActions ?: properties.cancelActions, + direction = direction ?: properties.direction, + duration = duration ?: properties.duration, + endActions = endActions ?: properties.endActions, + endValue = endValue ?: properties.endValue, + id = id ?: properties.id, + interpolator = interpolator ?: properties.interpolator, + repeatCount = repeatCount ?: properties.repeatCount, + startDelay = startDelay ?: properties.startDelay, + startValue = startValue ?: properties.startValue, + variableName = variableName ?: properties.variableName, + ) +) + +/** + * @param direction Animation direction. This property sets whether an animation should play forward, backward, or alternate back and forth between playing the sequence forward and backward. + * @param duration Animation duration in milliseconds. + * @param endValue Value that will be set at the end of animation. + * @param interpolator Interpolation function. + * @param repeatCount The number of times the animation will repeat before it finishes. `0` enables infinite repeats. + * @param startDelay Animation start delay in milliseconds. + * @param startValue Value that will be set at the start of animation. Can be omitted, in which case current value of the variable will be used. + */ +@Generated +fun NumberAnimator.evaluate( + `use named arguments`: Guard = Guard.instance, + direction: ExpressionProperty? = null, + duration: ExpressionProperty? = null, + endValue: ExpressionProperty? = null, + interpolator: ExpressionProperty? = null, + repeatCount: ExpressionProperty? = null, + startDelay: ExpressionProperty? = null, + startValue: ExpressionProperty? = null, +): NumberAnimator = NumberAnimator( + NumberAnimator.Properties( + cancelActions = properties.cancelActions, + direction = direction ?: properties.direction, + duration = duration ?: properties.duration, + endActions = properties.endActions, + endValue = endValue ?: properties.endValue, + id = properties.id, + interpolator = interpolator ?: properties.interpolator, + repeatCount = repeatCount ?: properties.repeatCount, + startDelay = startDelay ?: properties.startDelay, + startValue = startValue ?: properties.startValue, + variableName = properties.variableName, + ) +) + +@Generated +fun NumberAnimator.asList() = listOf(this) diff --git a/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Pager.kt b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Pager.kt index b1db8618d..01fb43a77 100644 --- a/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Pager.kt +++ b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Pager.kt @@ -40,6 +40,7 @@ class Pager internal constructor( alignmentHorizontal = additive.alignmentHorizontal ?: properties.alignmentHorizontal, alignmentVertical = additive.alignmentVertical ?: properties.alignmentVertical, alpha = additive.alpha ?: properties.alpha, + animators = additive.animators ?: properties.animators, background = additive.background ?: properties.background, border = additive.border ?: properties.border, columnSpan = additive.columnSpan ?: properties.columnSpan, @@ -92,10 +93,14 @@ class Pager internal constructor( */ val alignmentVertical: Property?, /** - * Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * Transparency of whole element: `0` — completely transparent, `1` — opaque. * Default value: `1.0`. */ val alpha: Property?, + /** + * Declaration of animators that can be used to change the value of variables over time. + */ + val animators: Property>?, /** * Element background. It can contain multiple layers. */ @@ -252,6 +257,7 @@ class Pager internal constructor( result.tryPutProperty("alignment_horizontal", alignmentHorizontal) result.tryPutProperty("alignment_vertical", alignmentVertical) result.tryPutProperty("alpha", alpha) + result.tryPutProperty("animators", animators) result.tryPutProperty("background", background) result.tryPutProperty("border", border) result.tryPutProperty("column_span", columnSpan) @@ -304,7 +310,8 @@ class Pager internal constructor( * @param accessibility Accessibility settings. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param background Element background. It can contain multiple layers. * @param border Element stroke. * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. @@ -348,6 +355,7 @@ fun DivScope.pager( alignmentHorizontal: AlignmentHorizontal? = null, alignmentVertical: AlignmentVertical? = null, alpha: Double? = null, + animators: List? = null, background: List? = null, border: Border? = null, columnSpan: Int? = null, @@ -389,6 +397,7 @@ fun DivScope.pager( alignmentHorizontal = valueOrNull(alignmentHorizontal), alignmentVertical = valueOrNull(alignmentVertical), alpha = valueOrNull(alpha), + animators = valueOrNull(animators), background = valueOrNull(background), border = valueOrNull(border), columnSpan = valueOrNull(columnSpan), @@ -431,7 +440,8 @@ fun DivScope.pager( * @param accessibility Accessibility settings. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param background Element background. It can contain multiple layers. * @param border Element stroke. * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. @@ -475,6 +485,7 @@ fun DivScope.pagerProps( alignmentHorizontal: AlignmentHorizontal? = null, alignmentVertical: AlignmentVertical? = null, alpha: Double? = null, + animators: List? = null, background: List? = null, border: Border? = null, columnSpan: Int? = null, @@ -515,6 +526,7 @@ fun DivScope.pagerProps( alignmentHorizontal = valueOrNull(alignmentHorizontal), alignmentVertical = valueOrNull(alignmentVertical), alpha = valueOrNull(alpha), + animators = valueOrNull(animators), background = valueOrNull(background), border = valueOrNull(border), columnSpan = valueOrNull(columnSpan), @@ -556,7 +568,8 @@ fun DivScope.pagerProps( * @param accessibility Accessibility settings. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param background Element background. It can contain multiple layers. * @param border Element stroke. * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. @@ -600,6 +613,7 @@ fun TemplateScope.pagerRefs( alignmentHorizontal: ReferenceProperty? = null, alignmentVertical: ReferenceProperty? = null, alpha: ReferenceProperty? = null, + animators: ReferenceProperty>? = null, background: ReferenceProperty>? = null, border: ReferenceProperty? = null, columnSpan: ReferenceProperty? = null, @@ -640,6 +654,7 @@ fun TemplateScope.pagerRefs( alignmentHorizontal = alignmentHorizontal, alignmentVertical = alignmentVertical, alpha = alpha, + animators = animators, background = background, border = border, columnSpan = columnSpan, @@ -681,7 +696,8 @@ fun TemplateScope.pagerRefs( * @param accessibility Accessibility settings. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param background Element background. It can contain multiple layers. * @param border Element stroke. * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. @@ -725,6 +741,7 @@ fun Pager.override( alignmentHorizontal: AlignmentHorizontal? = null, alignmentVertical: AlignmentVertical? = null, alpha: Double? = null, + animators: List? = null, background: List? = null, border: Border? = null, columnSpan: Int? = null, @@ -766,6 +783,7 @@ fun Pager.override( alignmentHorizontal = valueOrNull(alignmentHorizontal) ?: properties.alignmentHorizontal, alignmentVertical = valueOrNull(alignmentVertical) ?: properties.alignmentVertical, alpha = valueOrNull(alpha) ?: properties.alpha, + animators = valueOrNull(animators) ?: properties.animators, background = valueOrNull(background) ?: properties.background, border = valueOrNull(border) ?: properties.border, columnSpan = valueOrNull(columnSpan) ?: properties.columnSpan, @@ -808,7 +826,8 @@ fun Pager.override( * @param accessibility Accessibility settings. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param background Element background. It can contain multiple layers. * @param border Element stroke. * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. @@ -852,6 +871,7 @@ fun Pager.defer( alignmentHorizontal: ReferenceProperty? = null, alignmentVertical: ReferenceProperty? = null, alpha: ReferenceProperty? = null, + animators: ReferenceProperty>? = null, background: ReferenceProperty>? = null, border: ReferenceProperty? = null, columnSpan: ReferenceProperty? = null, @@ -893,6 +913,7 @@ fun Pager.defer( alignmentHorizontal = alignmentHorizontal ?: properties.alignmentHorizontal, alignmentVertical = alignmentVertical ?: properties.alignmentVertical, alpha = alpha ?: properties.alpha, + animators = animators ?: properties.animators, background = background ?: properties.background, border = border ?: properties.border, columnSpan = columnSpan ?: properties.columnSpan, @@ -934,7 +955,7 @@ fun Pager.defer( /** * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. * @param defaultItem Ordinal number of the pager element that will be opened by default. * @param infiniteScroll Enables infinite scrolling of cards. Scrolling is looped: after the last card is displayed, it starts over again. @@ -964,6 +985,7 @@ fun Pager.evaluate( alignmentHorizontal = alignmentHorizontal ?: properties.alignmentHorizontal, alignmentVertical = alignmentVertical ?: properties.alignmentVertical, alpha = alpha ?: properties.alpha, + animators = properties.animators, background = properties.background, border = properties.border, columnSpan = columnSpan ?: properties.columnSpan, @@ -1006,7 +1028,8 @@ fun Pager.evaluate( * @param accessibility Accessibility settings. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param background Element background. It can contain multiple layers. * @param border Element stroke. * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. @@ -1050,6 +1073,7 @@ fun Component.override( alignmentHorizontal: AlignmentHorizontal? = null, alignmentVertical: AlignmentVertical? = null, alpha: Double? = null, + animators: List? = null, background: List? = null, border: Border? = null, columnSpan: Int? = null, @@ -1092,6 +1116,7 @@ fun Component.override( alignmentHorizontal = valueOrNull(alignmentHorizontal), alignmentVertical = valueOrNull(alignmentVertical), alpha = valueOrNull(alpha), + animators = valueOrNull(animators), background = valueOrNull(background), border = valueOrNull(border), columnSpan = valueOrNull(columnSpan), @@ -1134,7 +1159,8 @@ fun Component.override( * @param accessibility Accessibility settings. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param background Element background. It can contain multiple layers. * @param border Element stroke. * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. @@ -1178,6 +1204,7 @@ fun Component.defer( alignmentHorizontal: ReferenceProperty? = null, alignmentVertical: ReferenceProperty? = null, alpha: ReferenceProperty? = null, + animators: ReferenceProperty>? = null, background: ReferenceProperty>? = null, border: ReferenceProperty? = null, columnSpan: ReferenceProperty? = null, @@ -1220,6 +1247,7 @@ fun Component.defer( alignmentHorizontal = alignmentHorizontal, alignmentVertical = alignmentVertical, alpha = alpha, + animators = animators, background = background, border = border, columnSpan = columnSpan, @@ -1261,7 +1289,7 @@ fun Component.defer( /** * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. * @param defaultItem Ordinal number of the pager element that will be opened by default. * @param infiniteScroll Enables infinite scrolling of cards. Scrolling is looped: after the last card is displayed, it starts over again. @@ -1292,6 +1320,7 @@ fun Component.evaluate( alignmentHorizontal = alignmentHorizontal, alignmentVertical = alignmentVertical, alpha = alpha, + animators = null, background = null, border = null, columnSpan = columnSpan, diff --git a/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Select.kt b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Select.kt index 6838337bc..df82c5368 100644 --- a/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Select.kt +++ b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Select.kt @@ -40,6 +40,7 @@ class Select internal constructor( alignmentHorizontal = additive.alignmentHorizontal ?: properties.alignmentHorizontal, alignmentVertical = additive.alignmentVertical ?: properties.alignmentVertical, alpha = additive.alpha ?: properties.alpha, + animators = additive.animators ?: properties.animators, background = additive.background ?: properties.background, border = additive.border ?: properties.border, columnSpan = additive.columnSpan ?: properties.columnSpan, @@ -95,10 +96,14 @@ class Select internal constructor( */ val alignmentVertical: Property?, /** - * Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * Transparency of whole element: `0` — completely transparent, `1` — opaque. * Default value: `1.0`. */ val alpha: Property?, + /** + * Declaration of animators that can be used to change the value of variables over time. + */ + val animators: Property>?, /** * Element background. It can contain multiple layers. */ @@ -265,6 +270,7 @@ class Select internal constructor( result.tryPutProperty("alignment_horizontal", alignmentHorizontal) result.tryPutProperty("alignment_vertical", alignmentVertical) result.tryPutProperty("alpha", alpha) + result.tryPutProperty("animators", animators) result.tryPutProperty("background", background) result.tryPutProperty("border", border) result.tryPutProperty("column_span", columnSpan) @@ -355,7 +361,8 @@ class Select internal constructor( * @param accessibility Accessibility settings. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param background Element background. It can contain multiple layers. * @param border Element stroke. * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. @@ -401,6 +408,7 @@ fun DivScope.select( alignmentHorizontal: AlignmentHorizontal? = null, alignmentVertical: AlignmentVertical? = null, alpha: Double? = null, + animators: List? = null, background: List? = null, border: Border? = null, columnSpan: Int? = null, @@ -445,6 +453,7 @@ fun DivScope.select( alignmentHorizontal = valueOrNull(alignmentHorizontal), alignmentVertical = valueOrNull(alignmentVertical), alpha = valueOrNull(alpha), + animators = valueOrNull(animators), background = valueOrNull(background), border = valueOrNull(border), columnSpan = valueOrNull(columnSpan), @@ -490,7 +499,8 @@ fun DivScope.select( * @param accessibility Accessibility settings. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param background Element background. It can contain multiple layers. * @param border Element stroke. * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. @@ -536,6 +546,7 @@ fun DivScope.selectProps( alignmentHorizontal: AlignmentHorizontal? = null, alignmentVertical: AlignmentVertical? = null, alpha: Double? = null, + animators: List? = null, background: List? = null, border: Border? = null, columnSpan: Int? = null, @@ -579,6 +590,7 @@ fun DivScope.selectProps( alignmentHorizontal = valueOrNull(alignmentHorizontal), alignmentVertical = valueOrNull(alignmentVertical), alpha = valueOrNull(alpha), + animators = valueOrNull(animators), background = valueOrNull(background), border = valueOrNull(border), columnSpan = valueOrNull(columnSpan), @@ -623,7 +635,8 @@ fun DivScope.selectProps( * @param accessibility Accessibility settings. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param background Element background. It can contain multiple layers. * @param border Element stroke. * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. @@ -669,6 +682,7 @@ fun TemplateScope.selectRefs( alignmentHorizontal: ReferenceProperty? = null, alignmentVertical: ReferenceProperty? = null, alpha: ReferenceProperty? = null, + animators: ReferenceProperty>? = null, background: ReferenceProperty>? = null, border: ReferenceProperty? = null, columnSpan: ReferenceProperty? = null, @@ -712,6 +726,7 @@ fun TemplateScope.selectRefs( alignmentHorizontal = alignmentHorizontal, alignmentVertical = alignmentVertical, alpha = alpha, + animators = animators, background = background, border = border, columnSpan = columnSpan, @@ -756,7 +771,8 @@ fun TemplateScope.selectRefs( * @param accessibility Accessibility settings. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param background Element background. It can contain multiple layers. * @param border Element stroke. * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. @@ -802,6 +818,7 @@ fun Select.override( alignmentHorizontal: AlignmentHorizontal? = null, alignmentVertical: AlignmentVertical? = null, alpha: Double? = null, + animators: List? = null, background: List? = null, border: Border? = null, columnSpan: Int? = null, @@ -846,6 +863,7 @@ fun Select.override( alignmentHorizontal = valueOrNull(alignmentHorizontal) ?: properties.alignmentHorizontal, alignmentVertical = valueOrNull(alignmentVertical) ?: properties.alignmentVertical, alpha = valueOrNull(alpha) ?: properties.alpha, + animators = valueOrNull(animators) ?: properties.animators, background = valueOrNull(background) ?: properties.background, border = valueOrNull(border) ?: properties.border, columnSpan = valueOrNull(columnSpan) ?: properties.columnSpan, @@ -891,7 +909,8 @@ fun Select.override( * @param accessibility Accessibility settings. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param background Element background. It can contain multiple layers. * @param border Element stroke. * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. @@ -937,6 +956,7 @@ fun Select.defer( alignmentHorizontal: ReferenceProperty? = null, alignmentVertical: ReferenceProperty? = null, alpha: ReferenceProperty? = null, + animators: ReferenceProperty>? = null, background: ReferenceProperty>? = null, border: ReferenceProperty? = null, columnSpan: ReferenceProperty? = null, @@ -981,6 +1001,7 @@ fun Select.defer( alignmentHorizontal = alignmentHorizontal ?: properties.alignmentHorizontal, alignmentVertical = alignmentVertical ?: properties.alignmentVertical, alpha = alpha ?: properties.alpha, + animators = animators ?: properties.animators, background = background ?: properties.background, border = border ?: properties.border, columnSpan = columnSpan ?: properties.columnSpan, @@ -1025,7 +1046,7 @@ fun Select.defer( /** * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. * @param fontFamily Font family:
  • `text` — a standard text font;
  • `display` — a family of fonts with a large font size.
  • * @param fontSize Font size. @@ -1067,6 +1088,7 @@ fun Select.evaluate( alignmentHorizontal = alignmentHorizontal ?: properties.alignmentHorizontal, alignmentVertical = alignmentVertical ?: properties.alignmentVertical, alpha = alpha ?: properties.alpha, + animators = properties.animators, background = properties.background, border = properties.border, columnSpan = columnSpan ?: properties.columnSpan, @@ -1112,7 +1134,8 @@ fun Select.evaluate( * @param accessibility Accessibility settings. * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. + * @param animators Declaration of animators that can be used to change the value of variables over time. * @param background Element background. It can contain multiple layers. * @param border Element stroke. * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. @@ -1158,6 +1181,7 @@ fun Component.override( alignmentHorizontal = valueOrNull(alignmentHorizontal), alignmentVertical = valueOrNull(alignmentVertical), alpha = valueOrNull(alpha), + animators = valueOrNull(animators), background = valueOrNull(background), border = valueOrNull(border), columnSpan = valueOrNull(columnSpan), @@ -1248,7 +1273,8 @@ fun Component.defer( alignmentHorizontal: ReferenceProperty? = null, alignmentVertical: ReferenceProperty? = null, alpha: ReferenceProperty? = null, + animators: ReferenceProperty>? = null, background: ReferenceProperty>? = null, border: ReferenceProperty? = null, columnSpan: ReferenceProperty? = null, @@ -1339,6 +1366,7 @@ fun Component.defer( /** * @param alignmentHorizontal Horizontal alignment of an element inside the parent element. * @param alignmentVertical Vertical alignment of an element inside the parent element. - * @param alpha Sets transparency of the entire element: `0` — completely transparent, `1` — opaque. + * @param alpha Transparency of whole element: `0` — completely transparent, `1` — opaque. * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. * @param fontFamily Font family:
  • `text` — a standard text font;
  • `display` — a family of fonts with a large font size.
  • * @param fontSize Font size. @@ -1426,6 +1454,7 @@ fun Component