diff --git a/client/ios/Configurations/Version.xcconfig b/client/ios/Configurations/Version.xcconfig index ae5a296da..4011aaf86 100644 --- a/client/ios/Configurations/Version.xcconfig +++ b/client/ios/Configurations/Version.xcconfig @@ -1,2 +1,2 @@ -MARKETING_VERSION = 31.8.0 +MARKETING_VERSION = 31.9.0 CURRENT_PROJECT_VERSION = 31 diff --git a/client/ios/DivKit/DivKitInfo.swift b/client/ios/DivKit/DivKitInfo.swift index 189ec22e5..bb9a176d6 100644 --- a/client/ios/DivKit/DivKitInfo.swift +++ b/client/ios/DivKit/DivKitInfo.swift @@ -1,3 +1,3 @@ public enum DivKitInfo { - public static let version = "31.8.0" + public static let version = "31.9.0" } diff --git a/client/web/divkit/package.json b/client/web/divkit/package.json index f78dc3d28..f8374f049 100644 --- a/client/web/divkit/package.json +++ b/client/web/divkit/package.json @@ -1,6 +1,6 @@ { "name": "@divkitframework/divkit", - "version": "31.8.0", + "version": "31.9.0", "description": "DivKit for the web", "keywords": [ "server-driven-ui", diff --git a/json-builder/kotlin/src/generated/kotlin/divkit/dsl/ActionSubmit.kt b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/ActionSubmit.kt index 7c6ca34a7..442a7c849 100644 --- a/json-builder/kotlin/src/generated/kotlin/divkit/dsl/ActionSubmit.kt +++ b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/ActionSubmit.kt @@ -97,7 +97,7 @@ data class ActionSubmit internal constructor( data class Properties internal constructor( /** - * HTTP request headers. Please note that DivKit does not clean duplicate headers, which can lead to errors in request processing. Keep this in mind when assembling actions with complex json-builders. + * HTTP request headers. Please note that DivKit does not clean duplicate headers, which can lead to errors in request processing. Keep this in mind when assembling actions with complex JSON-builders. */ val headers: Property>?, /** @@ -292,7 +292,7 @@ fun ActionSubmit.evaluate( fun ActionSubmit.asList() = listOf(this) /** - * @param headers HTTP request headers. Please note that DivKit does not clean duplicate headers, which can lead to errors in request processing. Keep this in mind when assembling actions with complex json-builders. + * @param headers HTTP request headers. Please note that DivKit does not clean duplicate headers, which can lead to errors in request processing. Keep this in mind when assembling actions with complex JSON-builders. * @param method HTTP request method. * @param url Link for sending data from the container. */ @@ -311,7 +311,7 @@ fun DivScope.actionSubmitRequest( ) /** - * @param headers HTTP request headers. Please note that DivKit does not clean duplicate headers, which can lead to errors in request processing. Keep this in mind when assembling actions with complex json-builders. + * @param headers HTTP request headers. Please note that DivKit does not clean duplicate headers, which can lead to errors in request processing. Keep this in mind when assembling actions with complex JSON-builders. * @param method HTTP request method. * @param url Link for sending data from the container. */ @@ -328,7 +328,7 @@ fun DivScope.actionSubmitRequestProps( ) /** - * @param headers HTTP request headers. Please note that DivKit does not clean duplicate headers, which can lead to errors in request processing. Keep this in mind when assembling actions with complex json-builders. + * @param headers HTTP request headers. Please note that DivKit does not clean duplicate headers, which can lead to errors in request processing. Keep this in mind when assembling actions with complex JSON-builders. * @param method HTTP request method. * @param url Link for sending data from the container. */ @@ -345,7 +345,7 @@ fun TemplateScope.actionSubmitRequestRefs( ) /** - * @param headers HTTP request headers. Please note that DivKit does not clean duplicate headers, which can lead to errors in request processing. Keep this in mind when assembling actions with complex json-builders. + * @param headers HTTP request headers. Please note that DivKit does not clean duplicate headers, which can lead to errors in request processing. Keep this in mind when assembling actions with complex JSON-builders. * @param method HTTP request method. * @param url Link for sending data from the container. */ @@ -364,7 +364,7 @@ fun ActionSubmit.Request.override( ) /** - * @param headers HTTP request headers. Please note that DivKit does not clean duplicate headers, which can lead to errors in request processing. Keep this in mind when assembling actions with complex json-builders. + * @param headers HTTP request headers. Please note that DivKit does not clean duplicate headers, which can lead to errors in request processing. Keep this in mind when assembling actions with complex JSON-builders. * @param method HTTP request method. * @param url Link for sending data from the container. */ 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 b08911b48..914701b93 100644 --- a/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Container.kt +++ b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Container.kt @@ -48,6 +48,7 @@ data class Container internal constructor( aspect = additive.aspect ?: properties.aspect, background = additive.background ?: properties.background, border = additive.border ?: properties.border, + captureFocusOnAction = additive.captureFocusOnAction ?: properties.captureFocusOnAction, clipToBounds = additive.clipToBounds ?: properties.clipToBounds, columnSpan = additive.columnSpan ?: properties.columnSpan, contentAlignmentHorizontal = additive.contentAlignmentHorizontal ?: properties.contentAlignmentHorizontal, @@ -143,6 +144,11 @@ data class Container internal constructor( * Element stroke. */ val border: Property?, + /** + * If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • + * Default value: `true`. + */ + val captureFocusOnAction: Property?, /** * Enables the bounding of child elements by the parent's borders. * Default value: `true`. @@ -322,6 +328,7 @@ data class Container internal constructor( result.tryPutProperty("aspect", aspect) result.tryPutProperty("background", background) result.tryPutProperty("border", border) + result.tryPutProperty("capture_focus_on_action", captureFocusOnAction) result.tryPutProperty("clip_to_bounds", clipToBounds) result.tryPutProperty("column_span", columnSpan) result.tryPutProperty("content_alignment_horizontal", contentAlignmentHorizontal) @@ -457,6 +464,7 @@ data class Container internal constructor( 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. * @param border Element stroke. + * @param captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @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. @@ -512,6 +520,7 @@ fun DivScope.row( aspect: Aspect? = null, background: List? = null, border: Border? = null, + captureFocusOnAction: Boolean? = null, clipToBounds: Boolean? = null, columnSpan: Int? = null, contentAlignmentHorizontal: ContentAlignmentHorizontal? = null, @@ -563,6 +572,7 @@ fun DivScope.row( aspect = aspect, background = background, border = border, + captureFocusOnAction = captureFocusOnAction, clipToBounds = clipToBounds, columnSpan = columnSpan, contentAlignmentHorizontal = contentAlignmentHorizontal, @@ -617,6 +627,7 @@ fun DivScope.row( 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. * @param border Element stroke. + * @param captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @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. @@ -672,6 +683,7 @@ fun DivScope.row( aspect: Aspect? = null, background: List? = null, border: Border? = null, + captureFocusOnAction: Boolean? = null, clipToBounds: Boolean? = null, columnSpan: Int? = null, contentAlignmentHorizontal: ContentAlignmentHorizontal? = null, @@ -723,6 +735,7 @@ fun DivScope.row( aspect = aspect, background = background, border = border, + captureFocusOnAction = captureFocusOnAction, clipToBounds = clipToBounds, columnSpan = columnSpan, contentAlignmentHorizontal = contentAlignmentHorizontal, @@ -777,6 +790,7 @@ fun DivScope.row( 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. * @param border Element stroke. + * @param captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @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. @@ -832,6 +846,7 @@ fun DivScope.column( aspect: Aspect? = null, background: List? = null, border: Border? = null, + captureFocusOnAction: Boolean? = null, clipToBounds: Boolean? = null, columnSpan: Int? = null, contentAlignmentHorizontal: ContentAlignmentHorizontal? = null, @@ -883,6 +898,7 @@ fun DivScope.column( aspect = aspect, background = background, border = border, + captureFocusOnAction = captureFocusOnAction, clipToBounds = clipToBounds, columnSpan = columnSpan, contentAlignmentHorizontal = contentAlignmentHorizontal, @@ -937,6 +953,7 @@ fun DivScope.column( 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. * @param border Element stroke. + * @param captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @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. @@ -992,6 +1009,7 @@ fun DivScope.column( aspect: Aspect? = null, background: List? = null, border: Border? = null, + captureFocusOnAction: Boolean? = null, clipToBounds: Boolean? = null, columnSpan: Int? = null, contentAlignmentHorizontal: ContentAlignmentHorizontal? = null, @@ -1043,6 +1061,7 @@ fun DivScope.column( aspect = aspect, background = background, border = border, + captureFocusOnAction = captureFocusOnAction, clipToBounds = clipToBounds, columnSpan = columnSpan, contentAlignmentHorizontal = contentAlignmentHorizontal, @@ -1097,6 +1116,7 @@ fun DivScope.column( 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. * @param border Element stroke. + * @param captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @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. @@ -1152,6 +1172,7 @@ fun DivScope.stack( aspect: Aspect? = null, background: List? = null, border: Border? = null, + captureFocusOnAction: Boolean? = null, clipToBounds: Boolean? = null, columnSpan: Int? = null, contentAlignmentHorizontal: ContentAlignmentHorizontal? = null, @@ -1203,6 +1224,7 @@ fun DivScope.stack( aspect = aspect, background = background, border = border, + captureFocusOnAction = captureFocusOnAction, clipToBounds = clipToBounds, columnSpan = columnSpan, contentAlignmentHorizontal = contentAlignmentHorizontal, @@ -1257,6 +1279,7 @@ fun DivScope.stack( 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. * @param border Element stroke. + * @param captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @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. @@ -1312,6 +1335,7 @@ fun DivScope.stack( aspect: Aspect? = null, background: List? = null, border: Border? = null, + captureFocusOnAction: Boolean? = null, clipToBounds: Boolean? = null, columnSpan: Int? = null, contentAlignmentHorizontal: ContentAlignmentHorizontal? = null, @@ -1363,6 +1387,7 @@ fun DivScope.stack( aspect = aspect, background = background, border = border, + captureFocusOnAction = captureFocusOnAction, clipToBounds = clipToBounds, columnSpan = columnSpan, contentAlignmentHorizontal = contentAlignmentHorizontal, @@ -1418,6 +1443,7 @@ fun DivScope.stack( 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. * @param border Element stroke. + * @param captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @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. @@ -1473,6 +1499,7 @@ fun DivScope.container( aspect: Aspect? = null, background: List? = null, border: Border? = null, + captureFocusOnAction: Boolean? = null, clipToBounds: Boolean? = null, columnSpan: Int? = null, contentAlignmentHorizontal: ContentAlignmentHorizontal? = null, @@ -1526,6 +1553,7 @@ fun DivScope.container( aspect = valueOrNull(aspect), background = valueOrNull(background), border = valueOrNull(border), + captureFocusOnAction = valueOrNull(captureFocusOnAction), clipToBounds = valueOrNull(clipToBounds), columnSpan = valueOrNull(columnSpan), contentAlignmentHorizontal = valueOrNull(contentAlignmentHorizontal), @@ -1582,6 +1610,7 @@ fun DivScope.container( 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. * @param border Element stroke. + * @param captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @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. @@ -1637,6 +1666,7 @@ fun DivScope.containerProps( aspect: Aspect? = null, background: List? = null, border: Border? = null, + captureFocusOnAction: Boolean? = null, clipToBounds: Boolean? = null, columnSpan: Int? = null, contentAlignmentHorizontal: ContentAlignmentHorizontal? = null, @@ -1689,6 +1719,7 @@ fun DivScope.containerProps( aspect = valueOrNull(aspect), background = valueOrNull(background), border = valueOrNull(border), + captureFocusOnAction = valueOrNull(captureFocusOnAction), clipToBounds = valueOrNull(clipToBounds), columnSpan = valueOrNull(columnSpan), contentAlignmentHorizontal = valueOrNull(contentAlignmentHorizontal), @@ -1744,6 +1775,7 @@ fun DivScope.containerProps( 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. * @param border Element stroke. + * @param captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @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. @@ -1799,6 +1831,7 @@ fun TemplateScope.containerRefs( aspect: ReferenceProperty? = null, background: ReferenceProperty>? = null, border: ReferenceProperty? = null, + captureFocusOnAction: ReferenceProperty? = null, clipToBounds: ReferenceProperty? = null, columnSpan: ReferenceProperty? = null, contentAlignmentHorizontal: ReferenceProperty? = null, @@ -1851,6 +1884,7 @@ fun TemplateScope.containerRefs( aspect = aspect, background = background, border = border, + captureFocusOnAction = captureFocusOnAction, clipToBounds = clipToBounds, columnSpan = columnSpan, contentAlignmentHorizontal = contentAlignmentHorizontal, @@ -1906,6 +1940,7 @@ fun TemplateScope.containerRefs( 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. * @param border Element stroke. + * @param captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @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. @@ -1961,6 +1996,7 @@ fun Container.override( aspect: Aspect? = null, background: List? = null, border: Border? = null, + captureFocusOnAction: Boolean? = null, clipToBounds: Boolean? = null, columnSpan: Int? = null, contentAlignmentHorizontal: ContentAlignmentHorizontal? = null, @@ -2014,6 +2050,7 @@ fun Container.override( aspect = valueOrNull(aspect) ?: properties.aspect, background = valueOrNull(background) ?: properties.background, border = valueOrNull(border) ?: properties.border, + captureFocusOnAction = valueOrNull(captureFocusOnAction) ?: properties.captureFocusOnAction, clipToBounds = valueOrNull(clipToBounds) ?: properties.clipToBounds, columnSpan = valueOrNull(columnSpan) ?: properties.columnSpan, contentAlignmentHorizontal = valueOrNull(contentAlignmentHorizontal) ?: properties.contentAlignmentHorizontal, @@ -2070,6 +2107,7 @@ fun Container.override( 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. * @param border Element stroke. + * @param captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @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. @@ -2125,6 +2163,7 @@ fun Container.defer( aspect: ReferenceProperty? = null, background: ReferenceProperty>? = null, border: ReferenceProperty? = null, + captureFocusOnAction: ReferenceProperty? = null, clipToBounds: ReferenceProperty? = null, columnSpan: ReferenceProperty? = null, contentAlignmentHorizontal: ReferenceProperty? = null, @@ -2178,6 +2217,7 @@ fun Container.defer( aspect = aspect ?: properties.aspect, background = background ?: properties.background, border = border ?: properties.border, + captureFocusOnAction = captureFocusOnAction ?: properties.captureFocusOnAction, clipToBounds = clipToBounds ?: properties.clipToBounds, columnSpan = columnSpan ?: properties.columnSpan, contentAlignmentHorizontal = contentAlignmentHorizontal ?: properties.contentAlignmentHorizontal, @@ -2225,6 +2265,7 @@ fun Container.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 captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @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. @@ -2241,6 +2282,7 @@ fun Container.evaluate( alignmentHorizontal: ExpressionProperty? = null, alignmentVertical: ExpressionProperty? = null, alpha: ExpressionProperty? = null, + captureFocusOnAction: ExpressionProperty? = null, clipToBounds: ExpressionProperty? = null, columnSpan: ExpressionProperty? = null, contentAlignmentHorizontal: ExpressionProperty? = null, @@ -2263,6 +2305,7 @@ fun Container.evaluate( aspect = properties.aspect, background = properties.background, border = properties.border, + captureFocusOnAction = captureFocusOnAction ?: properties.captureFocusOnAction, clipToBounds = clipToBounds ?: properties.clipToBounds, columnSpan = columnSpan ?: properties.columnSpan, contentAlignmentHorizontal = contentAlignmentHorizontal ?: properties.contentAlignmentHorizontal, @@ -2319,6 +2362,7 @@ fun Container.evaluate( 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. * @param border Element stroke. + * @param captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @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. @@ -2374,6 +2418,7 @@ fun Component.override( aspect: Aspect? = null, background: List? = null, border: Border? = null, + captureFocusOnAction: Boolean? = null, clipToBounds: Boolean? = null, columnSpan: Int? = null, contentAlignmentHorizontal: ContentAlignmentHorizontal? = null, @@ -2428,6 +2473,7 @@ fun Component.override( aspect = valueOrNull(aspect), background = valueOrNull(background), border = valueOrNull(border), + captureFocusOnAction = valueOrNull(captureFocusOnAction), clipToBounds = valueOrNull(clipToBounds), columnSpan = valueOrNull(columnSpan), contentAlignmentHorizontal = valueOrNull(contentAlignmentHorizontal), @@ -2484,6 +2530,7 @@ fun Component.override( 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. * @param border Element stroke. + * @param captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @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. @@ -2539,6 +2586,7 @@ fun Component.defer( aspect: ReferenceProperty? = null, background: ReferenceProperty>? = null, border: ReferenceProperty? = null, + captureFocusOnAction: ReferenceProperty? = null, clipToBounds: ReferenceProperty? = null, columnSpan: ReferenceProperty? = null, contentAlignmentHorizontal: ReferenceProperty? = null, @@ -2593,6 +2641,7 @@ fun Component.defer( aspect = aspect, background = background, border = border, + captureFocusOnAction = captureFocusOnAction, clipToBounds = clipToBounds, columnSpan = columnSpan, contentAlignmentHorizontal = contentAlignmentHorizontal, @@ -2640,6 +2689,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 captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @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. @@ -2656,6 +2706,7 @@ fun Component.evaluate( alignmentHorizontal: ExpressionProperty? = null, alignmentVertical: ExpressionProperty? = null, alpha: ExpressionProperty? = null, + captureFocusOnAction: ExpressionProperty? = null, clipToBounds: ExpressionProperty? = null, columnSpan: ExpressionProperty? = null, contentAlignmentHorizontal: ExpressionProperty? = null, @@ -2679,6 +2730,7 @@ fun Component.evaluate( aspect = null, background = null, border = null, + captureFocusOnAction = captureFocusOnAction, clipToBounds = clipToBounds, columnSpan = columnSpan, contentAlignmentHorizontal = contentAlignmentHorizontal, 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 7ed5fb80f..5a3bc91af 100644 --- a/json-builder/kotlin/src/generated/kotlin/divkit/dsl/GifImage.kt +++ b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/GifImage.kt @@ -47,6 +47,7 @@ data class GifImage internal constructor( aspect = additive.aspect ?: properties.aspect, background = additive.background ?: properties.background, border = additive.border ?: properties.border, + captureFocusOnAction = additive.captureFocusOnAction ?: properties.captureFocusOnAction, columnSpan = additive.columnSpan ?: properties.columnSpan, contentAlignmentHorizontal = additive.contentAlignmentHorizontal ?: properties.contentAlignmentHorizontal, contentAlignmentVertical = additive.contentAlignmentVertical ?: properties.contentAlignmentVertical, @@ -135,6 +136,11 @@ data class GifImage internal constructor( * Element stroke. */ val border: Property?, + /** + * If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • + * Default value: `true`. + */ + val captureFocusOnAction: Property?, /** * Merges cells in a column of the [grid](div-grid.md) element. */ @@ -310,6 +316,7 @@ data class GifImage internal constructor( result.tryPutProperty("aspect", aspect) result.tryPutProperty("background", background) result.tryPutProperty("border", border) + result.tryPutProperty("capture_focus_on_action", captureFocusOnAction) result.tryPutProperty("column_span", columnSpan) result.tryPutProperty("content_alignment_horizontal", contentAlignmentHorizontal) result.tryPutProperty("content_alignment_vertical", contentAlignmentVertical) @@ -365,6 +372,7 @@ data class GifImage internal constructor( * @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. + * @param captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. * @param contentAlignmentHorizontal Horizontal image alignment. * @param contentAlignmentVertical Vertical image alignment. @@ -418,6 +426,7 @@ fun DivScope.gifImage( aspect: Aspect? = null, background: List? = null, border: Border? = null, + captureFocusOnAction: Boolean? = null, columnSpan: Int? = null, contentAlignmentHorizontal: AlignmentHorizontal? = null, contentAlignmentVertical: AlignmentVertical? = null, @@ -469,6 +478,7 @@ fun DivScope.gifImage( aspect = valueOrNull(aspect), background = valueOrNull(background), border = valueOrNull(border), + captureFocusOnAction = valueOrNull(captureFocusOnAction), columnSpan = valueOrNull(columnSpan), contentAlignmentHorizontal = valueOrNull(contentAlignmentHorizontal), contentAlignmentVertical = valueOrNull(contentAlignmentVertical), @@ -522,6 +532,7 @@ fun DivScope.gifImage( * @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. + * @param captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. * @param contentAlignmentHorizontal Horizontal image alignment. * @param contentAlignmentVertical Vertical image alignment. @@ -575,6 +586,7 @@ fun DivScope.gifImageProps( aspect: Aspect? = null, background: List? = null, border: Border? = null, + captureFocusOnAction: Boolean? = null, columnSpan: Int? = null, contentAlignmentHorizontal: AlignmentHorizontal? = null, contentAlignmentVertical: AlignmentVertical? = null, @@ -625,6 +637,7 @@ fun DivScope.gifImageProps( aspect = valueOrNull(aspect), background = valueOrNull(background), border = valueOrNull(border), + captureFocusOnAction = valueOrNull(captureFocusOnAction), columnSpan = valueOrNull(columnSpan), contentAlignmentHorizontal = valueOrNull(contentAlignmentHorizontal), contentAlignmentVertical = valueOrNull(contentAlignmentVertical), @@ -677,6 +690,7 @@ fun DivScope.gifImageProps( * @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. + * @param captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. * @param contentAlignmentHorizontal Horizontal image alignment. * @param contentAlignmentVertical Vertical image alignment. @@ -730,6 +744,7 @@ fun TemplateScope.gifImageRefs( aspect: ReferenceProperty? = null, background: ReferenceProperty>? = null, border: ReferenceProperty? = null, + captureFocusOnAction: ReferenceProperty? = null, columnSpan: ReferenceProperty? = null, contentAlignmentHorizontal: ReferenceProperty? = null, contentAlignmentVertical: ReferenceProperty? = null, @@ -780,6 +795,7 @@ fun TemplateScope.gifImageRefs( aspect = aspect, background = background, border = border, + captureFocusOnAction = captureFocusOnAction, columnSpan = columnSpan, contentAlignmentHorizontal = contentAlignmentHorizontal, contentAlignmentVertical = contentAlignmentVertical, @@ -832,6 +848,7 @@ fun TemplateScope.gifImageRefs( * @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. + * @param captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. * @param contentAlignmentHorizontal Horizontal image alignment. * @param contentAlignmentVertical Vertical image alignment. @@ -885,6 +902,7 @@ fun GifImage.override( aspect: Aspect? = null, background: List? = null, border: Border? = null, + captureFocusOnAction: Boolean? = null, columnSpan: Int? = null, contentAlignmentHorizontal: AlignmentHorizontal? = null, contentAlignmentVertical: AlignmentVertical? = null, @@ -936,6 +954,7 @@ fun GifImage.override( aspect = valueOrNull(aspect) ?: properties.aspect, background = valueOrNull(background) ?: properties.background, border = valueOrNull(border) ?: properties.border, + captureFocusOnAction = valueOrNull(captureFocusOnAction) ?: properties.captureFocusOnAction, columnSpan = valueOrNull(columnSpan) ?: properties.columnSpan, contentAlignmentHorizontal = valueOrNull(contentAlignmentHorizontal) ?: properties.contentAlignmentHorizontal, contentAlignmentVertical = valueOrNull(contentAlignmentVertical) ?: properties.contentAlignmentVertical, @@ -989,6 +1008,7 @@ fun GifImage.override( * @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. + * @param captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. * @param contentAlignmentHorizontal Horizontal image alignment. * @param contentAlignmentVertical Vertical image alignment. @@ -1042,6 +1062,7 @@ fun GifImage.defer( aspect: ReferenceProperty? = null, background: ReferenceProperty>? = null, border: ReferenceProperty? = null, + captureFocusOnAction: ReferenceProperty? = null, columnSpan: ReferenceProperty? = null, contentAlignmentHorizontal: ReferenceProperty? = null, contentAlignmentVertical: ReferenceProperty? = null, @@ -1093,6 +1114,7 @@ fun GifImage.defer( aspect = aspect ?: properties.aspect, background = background ?: properties.background, border = border ?: properties.border, + captureFocusOnAction = captureFocusOnAction ?: properties.captureFocusOnAction, columnSpan = columnSpan ?: properties.columnSpan, contentAlignmentHorizontal = contentAlignmentHorizontal ?: properties.contentAlignmentHorizontal, contentAlignmentVertical = contentAlignmentVertical ?: properties.contentAlignmentVertical, @@ -1138,6 +1160,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 captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. * @param contentAlignmentHorizontal Horizontal image alignment. * @param contentAlignmentVertical Vertical image alignment. @@ -1156,6 +1179,7 @@ fun GifImage.evaluate( alignmentHorizontal: ExpressionProperty? = null, alignmentVertical: ExpressionProperty? = null, alpha: ExpressionProperty? = null, + captureFocusOnAction: ExpressionProperty? = null, columnSpan: ExpressionProperty? = null, contentAlignmentHorizontal: ExpressionProperty? = null, contentAlignmentVertical: ExpressionProperty? = null, @@ -1180,6 +1204,7 @@ fun GifImage.evaluate( aspect = properties.aspect, background = properties.background, border = properties.border, + captureFocusOnAction = captureFocusOnAction ?: properties.captureFocusOnAction, columnSpan = columnSpan ?: properties.columnSpan, contentAlignmentHorizontal = contentAlignmentHorizontal ?: properties.contentAlignmentHorizontal, contentAlignmentVertical = contentAlignmentVertical ?: properties.contentAlignmentVertical, @@ -1233,6 +1258,7 @@ fun GifImage.evaluate( * @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. + * @param captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. * @param contentAlignmentHorizontal Horizontal image alignment. * @param contentAlignmentVertical Vertical image alignment. @@ -1286,6 +1312,7 @@ fun Component.override( aspect: Aspect? = null, background: List? = null, border: Border? = null, + captureFocusOnAction: Boolean? = null, columnSpan: Int? = null, contentAlignmentHorizontal: AlignmentHorizontal? = null, contentAlignmentVertical: AlignmentVertical? = null, @@ -1338,6 +1365,7 @@ fun Component.override( aspect = valueOrNull(aspect), background = valueOrNull(background), border = valueOrNull(border), + captureFocusOnAction = valueOrNull(captureFocusOnAction), columnSpan = valueOrNull(columnSpan), contentAlignmentHorizontal = valueOrNull(contentAlignmentHorizontal), contentAlignmentVertical = valueOrNull(contentAlignmentVertical), @@ -1391,6 +1419,7 @@ fun Component.override( * @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. + * @param captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. * @param contentAlignmentHorizontal Horizontal image alignment. * @param contentAlignmentVertical Vertical image alignment. @@ -1444,6 +1473,7 @@ fun Component.defer( aspect: ReferenceProperty? = null, background: ReferenceProperty>? = null, border: ReferenceProperty? = null, + captureFocusOnAction: ReferenceProperty? = null, columnSpan: ReferenceProperty? = null, contentAlignmentHorizontal: ReferenceProperty? = null, contentAlignmentVertical: ReferenceProperty? = null, @@ -1496,6 +1526,7 @@ fun Component.defer( aspect = aspect, background = background, border = border, + captureFocusOnAction = captureFocusOnAction, columnSpan = columnSpan, contentAlignmentHorizontal = contentAlignmentHorizontal, contentAlignmentVertical = contentAlignmentVertical, @@ -1541,6 +1572,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 captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. * @param contentAlignmentHorizontal Horizontal image alignment. * @param contentAlignmentVertical Vertical image alignment. @@ -1559,6 +1591,7 @@ fun Component.evaluate( alignmentHorizontal: ExpressionProperty? = null, alignmentVertical: ExpressionProperty? = null, alpha: ExpressionProperty? = null, + captureFocusOnAction: ExpressionProperty? = null, columnSpan: ExpressionProperty? = null, contentAlignmentHorizontal: ExpressionProperty? = null, contentAlignmentVertical: ExpressionProperty? = null, @@ -1584,6 +1617,7 @@ fun Component.evaluate( aspect = null, background = null, border = null, + captureFocusOnAction = captureFocusOnAction, columnSpan = columnSpan, contentAlignmentHorizontal = contentAlignmentHorizontal, contentAlignmentVertical = contentAlignmentVertical, 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 17bfb0181..040f85b81 100644 --- a/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Grid.kt +++ b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Grid.kt @@ -46,6 +46,7 @@ data class Grid internal constructor( animators = additive.animators ?: properties.animators, background = additive.background ?: properties.background, border = additive.border ?: properties.border, + captureFocusOnAction = additive.captureFocusOnAction ?: properties.captureFocusOnAction, columnCount = additive.columnCount ?: properties.columnCount, columnSpan = additive.columnSpan ?: properties.columnSpan, contentAlignmentHorizontal = additive.contentAlignmentHorizontal ?: properties.contentAlignmentHorizontal, @@ -127,6 +128,11 @@ data class Grid internal constructor( * Element stroke. */ val border: Property?, + /** + * If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • + * Default value: `true`. + */ + val captureFocusOnAction: Property?, /** * Number of columns. */ @@ -286,6 +292,7 @@ data class Grid internal constructor( result.tryPutProperty("animators", animators) result.tryPutProperty("background", background) result.tryPutProperty("border", border) + result.tryPutProperty("capture_focus_on_action", captureFocusOnAction) result.tryPutProperty("column_count", columnCount) result.tryPutProperty("column_span", columnSpan) result.tryPutProperty("content_alignment_horizontal", contentAlignmentHorizontal) @@ -337,6 +344,7 @@ data class Grid internal constructor( * @param animators Declaration of animators that change variable values over time. * @param background Element background. It can contain multiple layers. * @param border Element stroke. + * @param captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @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. @@ -386,6 +394,7 @@ fun DivScope.grid( animators: List? = null, background: List? = null, border: Border? = null, + captureFocusOnAction: Boolean? = null, columnCount: Int? = null, columnSpan: Int? = null, contentAlignmentHorizontal: AlignmentHorizontal? = null, @@ -433,6 +442,7 @@ fun DivScope.grid( animators = valueOrNull(animators), background = valueOrNull(background), border = valueOrNull(border), + captureFocusOnAction = valueOrNull(captureFocusOnAction), columnCount = valueOrNull(columnCount), columnSpan = valueOrNull(columnSpan), contentAlignmentHorizontal = valueOrNull(contentAlignmentHorizontal), @@ -482,6 +492,7 @@ fun DivScope.grid( * @param animators Declaration of animators that change variable values over time. * @param background Element background. It can contain multiple layers. * @param border Element stroke. + * @param captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @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. @@ -531,6 +542,7 @@ fun DivScope.gridProps( animators: List? = null, background: List? = null, border: Border? = null, + captureFocusOnAction: Boolean? = null, columnCount: Int? = null, columnSpan: Int? = null, contentAlignmentHorizontal: AlignmentHorizontal? = null, @@ -577,6 +589,7 @@ fun DivScope.gridProps( animators = valueOrNull(animators), background = valueOrNull(background), border = valueOrNull(border), + captureFocusOnAction = valueOrNull(captureFocusOnAction), columnCount = valueOrNull(columnCount), columnSpan = valueOrNull(columnSpan), contentAlignmentHorizontal = valueOrNull(contentAlignmentHorizontal), @@ -625,6 +638,7 @@ fun DivScope.gridProps( * @param animators Declaration of animators that change variable values over time. * @param background Element background. It can contain multiple layers. * @param border Element stroke. + * @param captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @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. @@ -674,6 +688,7 @@ fun TemplateScope.gridRefs( animators: ReferenceProperty>? = null, background: ReferenceProperty>? = null, border: ReferenceProperty? = null, + captureFocusOnAction: ReferenceProperty? = null, columnCount: ReferenceProperty? = null, columnSpan: ReferenceProperty? = null, contentAlignmentHorizontal: ReferenceProperty? = null, @@ -720,6 +735,7 @@ fun TemplateScope.gridRefs( animators = animators, background = background, border = border, + captureFocusOnAction = captureFocusOnAction, columnCount = columnCount, columnSpan = columnSpan, contentAlignmentHorizontal = contentAlignmentHorizontal, @@ -768,6 +784,7 @@ fun TemplateScope.gridRefs( * @param animators Declaration of animators that change variable values over time. * @param background Element background. It can contain multiple layers. * @param border Element stroke. + * @param captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @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. @@ -817,6 +834,7 @@ fun Grid.override( animators: List? = null, background: List? = null, border: Border? = null, + captureFocusOnAction: Boolean? = null, columnCount: Int? = null, columnSpan: Int? = null, contentAlignmentHorizontal: AlignmentHorizontal? = null, @@ -864,6 +882,7 @@ fun Grid.override( animators = valueOrNull(animators) ?: properties.animators, background = valueOrNull(background) ?: properties.background, border = valueOrNull(border) ?: properties.border, + captureFocusOnAction = valueOrNull(captureFocusOnAction) ?: properties.captureFocusOnAction, columnCount = valueOrNull(columnCount) ?: properties.columnCount, columnSpan = valueOrNull(columnSpan) ?: properties.columnSpan, contentAlignmentHorizontal = valueOrNull(contentAlignmentHorizontal) ?: properties.contentAlignmentHorizontal, @@ -913,6 +932,7 @@ fun Grid.override( * @param animators Declaration of animators that change variable values over time. * @param background Element background. It can contain multiple layers. * @param border Element stroke. + * @param captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @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. @@ -962,6 +982,7 @@ fun Grid.defer( animators: ReferenceProperty>? = null, background: ReferenceProperty>? = null, border: ReferenceProperty? = null, + captureFocusOnAction: ReferenceProperty? = null, columnCount: ReferenceProperty? = null, columnSpan: ReferenceProperty? = null, contentAlignmentHorizontal: ReferenceProperty? = null, @@ -1009,6 +1030,7 @@ fun Grid.defer( animators = animators ?: properties.animators, background = background ?: properties.background, border = border ?: properties.border, + captureFocusOnAction = captureFocusOnAction ?: properties.captureFocusOnAction, columnCount = columnCount ?: properties.columnCount, columnSpan = columnSpan ?: properties.columnSpan, contentAlignmentHorizontal = contentAlignmentHorizontal ?: properties.contentAlignmentHorizontal, @@ -1051,6 +1073,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 captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @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. @@ -1065,6 +1088,7 @@ fun Grid.evaluate( alignmentHorizontal: ExpressionProperty? = null, alignmentVertical: ExpressionProperty? = null, alpha: ExpressionProperty? = null, + captureFocusOnAction: ExpressionProperty? = null, columnCount: ExpressionProperty? = null, columnSpan: ExpressionProperty? = null, contentAlignmentHorizontal: ExpressionProperty? = null, @@ -1084,6 +1108,7 @@ fun Grid.evaluate( animators = properties.animators, background = properties.background, border = properties.border, + captureFocusOnAction = captureFocusOnAction ?: properties.captureFocusOnAction, columnCount = columnCount ?: properties.columnCount, columnSpan = columnSpan ?: properties.columnSpan, contentAlignmentHorizontal = contentAlignmentHorizontal ?: properties.contentAlignmentHorizontal, @@ -1133,6 +1158,7 @@ fun Grid.evaluate( * @param animators Declaration of animators that change variable values over time. * @param background Element background. It can contain multiple layers. * @param border Element stroke. + * @param captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @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. @@ -1182,6 +1208,7 @@ fun Component.override( animators: List? = null, background: List? = null, border: Border? = null, + captureFocusOnAction: Boolean? = null, columnCount: Int? = null, columnSpan: Int? = null, contentAlignmentHorizontal: AlignmentHorizontal? = null, @@ -1230,6 +1257,7 @@ fun Component.override( animators = valueOrNull(animators), background = valueOrNull(background), border = valueOrNull(border), + captureFocusOnAction = valueOrNull(captureFocusOnAction), columnCount = valueOrNull(columnCount), columnSpan = valueOrNull(columnSpan), contentAlignmentHorizontal = valueOrNull(contentAlignmentHorizontal), @@ -1279,6 +1307,7 @@ fun Component.override( * @param animators Declaration of animators that change variable values over time. * @param background Element background. It can contain multiple layers. * @param border Element stroke. + * @param captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @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. @@ -1328,6 +1357,7 @@ fun Component.defer( animators: ReferenceProperty>? = null, background: ReferenceProperty>? = null, border: ReferenceProperty? = null, + captureFocusOnAction: ReferenceProperty? = null, columnCount: ReferenceProperty? = null, columnSpan: ReferenceProperty? = null, contentAlignmentHorizontal: ReferenceProperty? = null, @@ -1376,6 +1406,7 @@ fun Component.defer( animators = animators, background = background, border = border, + captureFocusOnAction = captureFocusOnAction, columnCount = columnCount, columnSpan = columnSpan, contentAlignmentHorizontal = contentAlignmentHorizontal, @@ -1418,6 +1449,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 captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @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. @@ -1432,6 +1464,7 @@ fun Component.evaluate( alignmentHorizontal: ExpressionProperty? = null, alignmentVertical: ExpressionProperty? = null, alpha: ExpressionProperty? = null, + captureFocusOnAction: ExpressionProperty? = null, columnCount: ExpressionProperty? = null, columnSpan: ExpressionProperty? = null, contentAlignmentHorizontal: ExpressionProperty? = null, @@ -1452,6 +1485,7 @@ fun Component.evaluate( animators = null, background = null, border = null, + captureFocusOnAction = captureFocusOnAction, columnCount = columnCount, columnSpan = columnSpan, contentAlignmentHorizontal = contentAlignmentHorizontal, 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 8036007fb..8e7e464c1 100644 --- a/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Image.kt +++ b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Image.kt @@ -49,6 +49,7 @@ data class Image internal constructor( aspect = additive.aspect ?: properties.aspect, background = additive.background ?: properties.background, border = additive.border ?: properties.border, + captureFocusOnAction = additive.captureFocusOnAction ?: properties.captureFocusOnAction, columnSpan = additive.columnSpan ?: properties.columnSpan, contentAlignmentHorizontal = additive.contentAlignmentHorizontal ?: properties.contentAlignmentHorizontal, contentAlignmentVertical = additive.contentAlignmentVertical ?: properties.contentAlignmentVertical, @@ -148,6 +149,11 @@ data class Image internal constructor( * Element stroke. */ val border: Property?, + /** + * If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • + * Default value: `true`. + */ + val captureFocusOnAction: Property?, /** * Merges cells in a column of the [grid](div-grid.md) element. */ @@ -339,6 +345,7 @@ data class Image internal constructor( result.tryPutProperty("aspect", aspect) result.tryPutProperty("background", background) result.tryPutProperty("border", border) + result.tryPutProperty("capture_focus_on_action", captureFocusOnAction) result.tryPutProperty("column_span", columnSpan) result.tryPutProperty("content_alignment_horizontal", contentAlignmentHorizontal) result.tryPutProperty("content_alignment_vertical", contentAlignmentVertical) @@ -399,6 +406,7 @@ data class Image internal constructor( * @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. + * @param captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. * @param contentAlignmentHorizontal Horizontal image alignment. * @param contentAlignmentVertical Vertical image alignment. @@ -457,6 +465,7 @@ fun DivScope.image( aspect: Aspect? = null, background: List? = null, border: Border? = null, + captureFocusOnAction: Boolean? = null, columnSpan: Int? = null, contentAlignmentHorizontal: AlignmentHorizontal? = null, contentAlignmentVertical: AlignmentVertical? = null, @@ -513,6 +522,7 @@ fun DivScope.image( aspect = valueOrNull(aspect), background = valueOrNull(background), border = valueOrNull(border), + captureFocusOnAction = valueOrNull(captureFocusOnAction), columnSpan = valueOrNull(columnSpan), contentAlignmentHorizontal = valueOrNull(contentAlignmentHorizontal), contentAlignmentVertical = valueOrNull(contentAlignmentVertical), @@ -571,6 +581,7 @@ fun DivScope.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. * @param border Element stroke. + * @param captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. * @param contentAlignmentHorizontal Horizontal image alignment. * @param contentAlignmentVertical Vertical image alignment. @@ -629,6 +640,7 @@ fun DivScope.imageProps( aspect: Aspect? = null, background: List? = null, border: Border? = null, + captureFocusOnAction: Boolean? = null, columnSpan: Int? = null, contentAlignmentHorizontal: AlignmentHorizontal? = null, contentAlignmentVertical: AlignmentVertical? = null, @@ -684,6 +696,7 @@ fun DivScope.imageProps( aspect = valueOrNull(aspect), background = valueOrNull(background), border = valueOrNull(border), + captureFocusOnAction = valueOrNull(captureFocusOnAction), columnSpan = valueOrNull(columnSpan), contentAlignmentHorizontal = valueOrNull(contentAlignmentHorizontal), contentAlignmentVertical = valueOrNull(contentAlignmentVertical), @@ -741,6 +754,7 @@ fun DivScope.imageProps( * @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. + * @param captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. * @param contentAlignmentHorizontal Horizontal image alignment. * @param contentAlignmentVertical Vertical image alignment. @@ -799,6 +813,7 @@ fun TemplateScope.imageRefs( aspect: ReferenceProperty? = null, background: ReferenceProperty>? = null, border: ReferenceProperty? = null, + captureFocusOnAction: ReferenceProperty? = null, columnSpan: ReferenceProperty? = null, contentAlignmentHorizontal: ReferenceProperty? = null, contentAlignmentVertical: ReferenceProperty? = null, @@ -854,6 +869,7 @@ fun TemplateScope.imageRefs( aspect = aspect, background = background, border = border, + captureFocusOnAction = captureFocusOnAction, columnSpan = columnSpan, contentAlignmentHorizontal = contentAlignmentHorizontal, contentAlignmentVertical = contentAlignmentVertical, @@ -911,6 +927,7 @@ fun TemplateScope.imageRefs( * @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. + * @param captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. * @param contentAlignmentHorizontal Horizontal image alignment. * @param contentAlignmentVertical Vertical image alignment. @@ -969,6 +986,7 @@ fun Image.override( aspect: Aspect? = null, background: List? = null, border: Border? = null, + captureFocusOnAction: Boolean? = null, columnSpan: Int? = null, contentAlignmentHorizontal: AlignmentHorizontal? = null, contentAlignmentVertical: AlignmentVertical? = null, @@ -1025,6 +1043,7 @@ fun Image.override( aspect = valueOrNull(aspect) ?: properties.aspect, background = valueOrNull(background) ?: properties.background, border = valueOrNull(border) ?: properties.border, + captureFocusOnAction = valueOrNull(captureFocusOnAction) ?: properties.captureFocusOnAction, columnSpan = valueOrNull(columnSpan) ?: properties.columnSpan, contentAlignmentHorizontal = valueOrNull(contentAlignmentHorizontal) ?: properties.contentAlignmentHorizontal, contentAlignmentVertical = valueOrNull(contentAlignmentVertical) ?: properties.contentAlignmentVertical, @@ -1083,6 +1102,7 @@ fun Image.override( * @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. + * @param captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. * @param contentAlignmentHorizontal Horizontal image alignment. * @param contentAlignmentVertical Vertical image alignment. @@ -1141,6 +1161,7 @@ fun Image.defer( aspect: ReferenceProperty? = null, background: ReferenceProperty>? = null, border: ReferenceProperty? = null, + captureFocusOnAction: ReferenceProperty? = null, columnSpan: ReferenceProperty? = null, contentAlignmentHorizontal: ReferenceProperty? = null, contentAlignmentVertical: ReferenceProperty? = null, @@ -1197,6 +1218,7 @@ fun Image.defer( aspect = aspect ?: properties.aspect, background = background ?: properties.background, border = border ?: properties.border, + captureFocusOnAction = captureFocusOnAction ?: properties.captureFocusOnAction, columnSpan = columnSpan ?: properties.columnSpan, contentAlignmentHorizontal = contentAlignmentHorizontal ?: properties.contentAlignmentHorizontal, contentAlignmentVertical = contentAlignmentVertical ?: properties.contentAlignmentVertical, @@ -1246,6 +1268,7 @@ fun Image.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 captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. * @param contentAlignmentHorizontal Horizontal image alignment. * @param contentAlignmentVertical Vertical image alignment. @@ -1267,6 +1290,7 @@ fun Image.evaluate( alignmentHorizontal: ExpressionProperty? = null, alignmentVertical: ExpressionProperty? = null, alpha: ExpressionProperty? = null, + captureFocusOnAction: ExpressionProperty? = null, columnSpan: ExpressionProperty? = null, contentAlignmentHorizontal: ExpressionProperty? = null, contentAlignmentVertical: ExpressionProperty? = null, @@ -1295,6 +1319,7 @@ fun Image.evaluate( aspect = properties.aspect, background = properties.background, border = properties.border, + captureFocusOnAction = captureFocusOnAction ?: properties.captureFocusOnAction, columnSpan = columnSpan ?: properties.columnSpan, contentAlignmentHorizontal = contentAlignmentHorizontal ?: properties.contentAlignmentHorizontal, contentAlignmentVertical = contentAlignmentVertical ?: properties.contentAlignmentVertical, @@ -1353,6 +1378,7 @@ fun Image.evaluate( * @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. + * @param captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. * @param contentAlignmentHorizontal Horizontal image alignment. * @param contentAlignmentVertical Vertical image alignment. @@ -1411,6 +1437,7 @@ fun Component.override( aspect: Aspect? = null, background: List? = null, border: Border? = null, + captureFocusOnAction: Boolean? = null, columnSpan: Int? = null, contentAlignmentHorizontal: AlignmentHorizontal? = null, contentAlignmentVertical: AlignmentVertical? = null, @@ -1468,6 +1495,7 @@ fun Component.override( aspect = valueOrNull(aspect), background = valueOrNull(background), border = valueOrNull(border), + captureFocusOnAction = valueOrNull(captureFocusOnAction), columnSpan = valueOrNull(columnSpan), contentAlignmentHorizontal = valueOrNull(contentAlignmentHorizontal), contentAlignmentVertical = valueOrNull(contentAlignmentVertical), @@ -1526,6 +1554,7 @@ fun Component.override( * @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. + * @param captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. * @param contentAlignmentHorizontal Horizontal image alignment. * @param contentAlignmentVertical Vertical image alignment. @@ -1584,6 +1613,7 @@ fun Component.defer( aspect: ReferenceProperty? = null, background: ReferenceProperty>? = null, border: ReferenceProperty? = null, + captureFocusOnAction: ReferenceProperty? = null, columnSpan: ReferenceProperty? = null, contentAlignmentHorizontal: ReferenceProperty? = null, contentAlignmentVertical: ReferenceProperty? = null, @@ -1641,6 +1671,7 @@ fun Component.defer( aspect = aspect, background = background, border = border, + captureFocusOnAction = captureFocusOnAction, columnSpan = columnSpan, contentAlignmentHorizontal = contentAlignmentHorizontal, contentAlignmentVertical = contentAlignmentVertical, @@ -1690,6 +1721,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 captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. * @param contentAlignmentHorizontal Horizontal image alignment. * @param contentAlignmentVertical Vertical image alignment. @@ -1711,6 +1743,7 @@ fun Component.evaluate( alignmentHorizontal: ExpressionProperty? = null, alignmentVertical: ExpressionProperty? = null, alpha: ExpressionProperty? = null, + captureFocusOnAction: ExpressionProperty? = null, columnSpan: ExpressionProperty? = null, contentAlignmentHorizontal: ExpressionProperty? = null, contentAlignmentVertical: ExpressionProperty? = null, @@ -1740,6 +1773,7 @@ fun Component.evaluate( aspect = null, background = null, border = null, + captureFocusOnAction = captureFocusOnAction, columnSpan = columnSpan, contentAlignmentHorizontal = contentAlignmentHorizontal, contentAlignmentVertical = contentAlignmentVertical, diff --git a/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Separator.kt b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Separator.kt index 24613417f..1b4955f83 100644 --- a/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Separator.kt +++ b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Separator.kt @@ -46,6 +46,7 @@ data class Separator internal constructor( animators = additive.animators ?: properties.animators, background = additive.background ?: properties.background, border = additive.border ?: properties.border, + captureFocusOnAction = additive.captureFocusOnAction ?: properties.captureFocusOnAction, columnSpan = additive.columnSpan ?: properties.columnSpan, delimiterStyle = additive.delimiterStyle ?: properties.delimiterStyle, disappearActions = additive.disappearActions ?: properties.disappearActions, @@ -124,6 +125,11 @@ data class Separator internal constructor( * Element stroke. */ val border: Property?, + /** + * If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • + * Default value: `true`. + */ + val captureFocusOnAction: Property?, /** * Merges cells in a column of the [grid](div-grid.md) element. */ @@ -269,6 +275,7 @@ data class Separator internal constructor( result.tryPutProperty("animators", animators) result.tryPutProperty("background", background) result.tryPutProperty("border", border) + result.tryPutProperty("capture_focus_on_action", captureFocusOnAction) result.tryPutProperty("column_span", columnSpan) result.tryPutProperty("delimiter_style", delimiterStyle) result.tryPutProperty("disappear_actions", disappearActions) @@ -368,6 +375,7 @@ data class Separator internal constructor( * @param animators Declaration of animators that change variable values over time. * @param background Element background. It can contain multiple layers. * @param border Element stroke. + * @param captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. * @param delimiterStyle Separator display settings. * @param disappearActions Actions when an element disappears from the screen. @@ -414,6 +422,7 @@ fun DivScope.separator( animators: List? = null, background: List? = null, border: Border? = null, + captureFocusOnAction: Boolean? = null, columnSpan: Int? = null, delimiterStyle: Separator.DelimiterStyle? = null, disappearActions: List? = null, @@ -458,6 +467,7 @@ fun DivScope.separator( animators = valueOrNull(animators), background = valueOrNull(background), border = valueOrNull(border), + captureFocusOnAction = valueOrNull(captureFocusOnAction), columnSpan = valueOrNull(columnSpan), delimiterStyle = valueOrNull(delimiterStyle), disappearActions = valueOrNull(disappearActions), @@ -504,6 +514,7 @@ fun DivScope.separator( * @param animators Declaration of animators that change variable values over time. * @param background Element background. It can contain multiple layers. * @param border Element stroke. + * @param captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. * @param delimiterStyle Separator display settings. * @param disappearActions Actions when an element disappears from the screen. @@ -550,6 +561,7 @@ fun DivScope.separatorProps( animators: List? = null, background: List? = null, border: Border? = null, + captureFocusOnAction: Boolean? = null, columnSpan: Int? = null, delimiterStyle: Separator.DelimiterStyle? = null, disappearActions: List? = null, @@ -593,6 +605,7 @@ fun DivScope.separatorProps( animators = valueOrNull(animators), background = valueOrNull(background), border = valueOrNull(border), + captureFocusOnAction = valueOrNull(captureFocusOnAction), columnSpan = valueOrNull(columnSpan), delimiterStyle = valueOrNull(delimiterStyle), disappearActions = valueOrNull(disappearActions), @@ -638,6 +651,7 @@ fun DivScope.separatorProps( * @param animators Declaration of animators that change variable values over time. * @param background Element background. It can contain multiple layers. * @param border Element stroke. + * @param captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. * @param delimiterStyle Separator display settings. * @param disappearActions Actions when an element disappears from the screen. @@ -684,6 +698,7 @@ fun TemplateScope.separatorRefs( animators: ReferenceProperty>? = null, background: ReferenceProperty>? = null, border: ReferenceProperty? = null, + captureFocusOnAction: ReferenceProperty? = null, columnSpan: ReferenceProperty? = null, delimiterStyle: ReferenceProperty? = null, disappearActions: ReferenceProperty>? = null, @@ -727,6 +742,7 @@ fun TemplateScope.separatorRefs( animators = animators, background = background, border = border, + captureFocusOnAction = captureFocusOnAction, columnSpan = columnSpan, delimiterStyle = delimiterStyle, disappearActions = disappearActions, @@ -772,6 +788,7 @@ fun TemplateScope.separatorRefs( * @param animators Declaration of animators that change variable values over time. * @param background Element background. It can contain multiple layers. * @param border Element stroke. + * @param captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. * @param delimiterStyle Separator display settings. * @param disappearActions Actions when an element disappears from the screen. @@ -818,6 +835,7 @@ fun Separator.override( animators: List? = null, background: List? = null, border: Border? = null, + captureFocusOnAction: Boolean? = null, columnSpan: Int? = null, delimiterStyle: Separator.DelimiterStyle? = null, disappearActions: List? = null, @@ -862,6 +880,7 @@ fun Separator.override( animators = valueOrNull(animators) ?: properties.animators, background = valueOrNull(background) ?: properties.background, border = valueOrNull(border) ?: properties.border, + captureFocusOnAction = valueOrNull(captureFocusOnAction) ?: properties.captureFocusOnAction, columnSpan = valueOrNull(columnSpan) ?: properties.columnSpan, delimiterStyle = valueOrNull(delimiterStyle) ?: properties.delimiterStyle, disappearActions = valueOrNull(disappearActions) ?: properties.disappearActions, @@ -908,6 +927,7 @@ fun Separator.override( * @param animators Declaration of animators that change variable values over time. * @param background Element background. It can contain multiple layers. * @param border Element stroke. + * @param captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. * @param delimiterStyle Separator display settings. * @param disappearActions Actions when an element disappears from the screen. @@ -954,6 +974,7 @@ fun Separator.defer( animators: ReferenceProperty>? = null, background: ReferenceProperty>? = null, border: ReferenceProperty? = null, + captureFocusOnAction: ReferenceProperty? = null, columnSpan: ReferenceProperty? = null, delimiterStyle: ReferenceProperty? = null, disappearActions: ReferenceProperty>? = null, @@ -998,6 +1019,7 @@ fun Separator.defer( animators = animators ?: properties.animators, background = background ?: properties.background, border = border ?: properties.border, + captureFocusOnAction = captureFocusOnAction ?: properties.captureFocusOnAction, columnSpan = columnSpan ?: properties.columnSpan, delimiterStyle = delimiterStyle ?: properties.delimiterStyle, disappearActions = disappearActions ?: properties.disappearActions, @@ -1037,6 +1059,7 @@ fun Separator.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 captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. * @param reuseId ID for the div object structure. Used to optimize block reuse. See [block reuse](../../reuse/reuse.md). * @param rowSpan Merges cells in a string of the [grid](div-grid.md) element. @@ -1048,6 +1071,7 @@ fun Separator.evaluate( alignmentHorizontal: ExpressionProperty? = null, alignmentVertical: ExpressionProperty? = null, alpha: ExpressionProperty? = null, + captureFocusOnAction: ExpressionProperty? = null, columnSpan: ExpressionProperty? = null, reuseId: ExpressionProperty? = null, rowSpan: ExpressionProperty? = null, @@ -1064,6 +1088,7 @@ fun Separator.evaluate( animators = properties.animators, background = properties.background, border = properties.border, + captureFocusOnAction = captureFocusOnAction ?: properties.captureFocusOnAction, columnSpan = columnSpan ?: properties.columnSpan, delimiterStyle = properties.delimiterStyle, disappearActions = properties.disappearActions, @@ -1110,6 +1135,7 @@ fun Separator.evaluate( * @param animators Declaration of animators that change variable values over time. * @param background Element background. It can contain multiple layers. * @param border Element stroke. + * @param captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. * @param delimiterStyle Separator display settings. * @param disappearActions Actions when an element disappears from the screen. @@ -1156,6 +1182,7 @@ fun Component.override( animators: List? = null, background: List? = null, border: Border? = null, + captureFocusOnAction: Boolean? = null, columnSpan: Int? = null, delimiterStyle: Separator.DelimiterStyle? = null, disappearActions: List? = null, @@ -1201,6 +1228,7 @@ fun Component.override( animators = valueOrNull(animators), background = valueOrNull(background), border = valueOrNull(border), + captureFocusOnAction = valueOrNull(captureFocusOnAction), columnSpan = valueOrNull(columnSpan), delimiterStyle = valueOrNull(delimiterStyle), disappearActions = valueOrNull(disappearActions), @@ -1247,6 +1275,7 @@ fun Component.override( * @param animators Declaration of animators that change variable values over time. * @param background Element background. It can contain multiple layers. * @param border Element stroke. + * @param captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. * @param delimiterStyle Separator display settings. * @param disappearActions Actions when an element disappears from the screen. @@ -1293,6 +1322,7 @@ fun Component.defer( animators: ReferenceProperty>? = null, background: ReferenceProperty>? = null, border: ReferenceProperty? = null, + captureFocusOnAction: ReferenceProperty? = null, columnSpan: ReferenceProperty? = null, delimiterStyle: ReferenceProperty? = null, disappearActions: ReferenceProperty>? = null, @@ -1338,6 +1368,7 @@ fun Component.defer( animators = animators, background = background, border = border, + captureFocusOnAction = captureFocusOnAction, columnSpan = columnSpan, delimiterStyle = delimiterStyle, disappearActions = disappearActions, @@ -1377,6 +1408,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 captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. * @param reuseId ID for the div object structure. Used to optimize block reuse. See [block reuse](../../reuse/reuse.md). * @param rowSpan Merges cells in a string of the [grid](div-grid.md) element. @@ -1388,6 +1420,7 @@ fun Component.evaluate( alignmentHorizontal: ExpressionProperty? = null, alignmentVertical: ExpressionProperty? = null, alpha: ExpressionProperty? = null, + captureFocusOnAction: ExpressionProperty? = null, columnSpan: ExpressionProperty? = null, reuseId: ExpressionProperty? = null, rowSpan: ExpressionProperty? = null, @@ -1405,6 +1438,7 @@ fun Component.evaluate( animators = null, background = null, border = null, + captureFocusOnAction = captureFocusOnAction, columnSpan = columnSpan, delimiterStyle = null, disappearActions = null, diff --git a/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Text.kt b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Text.kt index 191be6e62..1c16b60c9 100644 --- a/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Text.kt +++ b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Text.kt @@ -48,6 +48,7 @@ data class Text internal constructor( autoEllipsize = additive.autoEllipsize ?: properties.autoEllipsize, background = additive.background ?: properties.background, border = additive.border ?: properties.border, + captureFocusOnAction = additive.captureFocusOnAction ?: properties.captureFocusOnAction, columnSpan = additive.columnSpan ?: properties.columnSpan, disappearActions = additive.disappearActions ?: properties.disappearActions, doubletapActions = additive.doubletapActions ?: properties.doubletapActions, @@ -157,6 +158,11 @@ data class Text internal constructor( * Element stroke. */ val border: Property?, + /** + * If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • + * Default value: `true`. + */ + val captureFocusOnAction: Property?, /** * Merges cells in a column of the [grid](div-grid.md) element. */ @@ -356,10 +362,9 @@ data class Text internal constructor( */ val transitionTriggers: Property>>?, /** - * Text cropping method. Use `ellipsis` instead. + * Location of text cropping marker. * Default value: `end`. */ - @Deprecated("Marked as deprecated in the JSON schema ") val truncate: Property?, /** * Underline. @@ -408,6 +413,7 @@ data class Text internal constructor( result.tryPutProperty("auto_ellipsize", autoEllipsize) result.tryPutProperty("background", background) result.tryPutProperty("border", border) + result.tryPutProperty("capture_focus_on_action", captureFocusOnAction) result.tryPutProperty("column_span", columnSpan) result.tryPutProperty("disappear_actions", disappearActions) result.tryPutProperty("doubletap_actions", doubletapActions) @@ -468,7 +474,7 @@ data class Text internal constructor( } /** - * Text cropping method. Use `ellipsis` instead. + * Location of text cropping marker. * * Possible values: [none], [start], [end], [middle]. */ @@ -856,6 +862,7 @@ data class Text internal constructor( * @param autoEllipsize Automatic text cropping to fit the container size. * @param background Element background. It can contain multiple layers. * @param border Element stroke. + * @param captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. * @param disappearActions Actions when an element disappears from the screen. * @param doubletapActions Action when double-clicking on an element. @@ -902,7 +909,7 @@ data class Text internal constructor( * @param transitionIn Appearance animation. It is played when an element with a new ID appears. To learn more about the concept of transitions, see [Animated transitions](../../interaction#animation/transition-animation). * @param transitionOut Disappearance animation. It is played when an element disappears in the new layout. * @param transitionTriggers Animation starting triggers. Default value: `[state_change, visibility_change]`. - * @param truncate Text cropping method. Use `ellipsis` instead. + * @param truncate Location of text cropping marker. * @param underline Underline. * @param variableTriggers Triggers for changing variables within an element. * @param variables Declaration of variables that can be used within an element. Variables declared in this array can only be used within the element and its child elements. @@ -926,6 +933,7 @@ fun DivScope.text( autoEllipsize: Boolean? = null, background: List? = null, border: Border? = null, + captureFocusOnAction: Boolean? = null, columnSpan: Int? = null, disappearActions: List? = null, doubletapActions: List? = null, @@ -995,6 +1003,7 @@ fun DivScope.text( autoEllipsize = valueOrNull(autoEllipsize), background = valueOrNull(background), border = valueOrNull(border), + captureFocusOnAction = valueOrNull(captureFocusOnAction), columnSpan = valueOrNull(columnSpan), disappearActions = valueOrNull(disappearActions), doubletapActions = valueOrNull(doubletapActions), @@ -1066,6 +1075,7 @@ fun DivScope.text( * @param autoEllipsize Automatic text cropping to fit the container size. * @param background Element background. It can contain multiple layers. * @param border Element stroke. + * @param captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. * @param disappearActions Actions when an element disappears from the screen. * @param doubletapActions Action when double-clicking on an element. @@ -1112,7 +1122,7 @@ fun DivScope.text( * @param transitionIn Appearance animation. It is played when an element with a new ID appears. To learn more about the concept of transitions, see [Animated transitions](../../interaction#animation/transition-animation). * @param transitionOut Disappearance animation. It is played when an element disappears in the new layout. * @param transitionTriggers Animation starting triggers. Default value: `[state_change, visibility_change]`. - * @param truncate Text cropping method. Use `ellipsis` instead. + * @param truncate Location of text cropping marker. * @param underline Underline. * @param variableTriggers Triggers for changing variables within an element. * @param variables Declaration of variables that can be used within an element. Variables declared in this array can only be used within the element and its child elements. @@ -1136,6 +1146,7 @@ fun DivScope.textProps( autoEllipsize: Boolean? = null, background: List? = null, border: Border? = null, + captureFocusOnAction: Boolean? = null, columnSpan: Int? = null, disappearActions: List? = null, doubletapActions: List? = null, @@ -1204,6 +1215,7 @@ fun DivScope.textProps( autoEllipsize = valueOrNull(autoEllipsize), background = valueOrNull(background), border = valueOrNull(border), + captureFocusOnAction = valueOrNull(captureFocusOnAction), columnSpan = valueOrNull(columnSpan), disappearActions = valueOrNull(disappearActions), doubletapActions = valueOrNull(doubletapActions), @@ -1274,6 +1286,7 @@ fun DivScope.textProps( * @param autoEllipsize Automatic text cropping to fit the container size. * @param background Element background. It can contain multiple layers. * @param border Element stroke. + * @param captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. * @param disappearActions Actions when an element disappears from the screen. * @param doubletapActions Action when double-clicking on an element. @@ -1320,7 +1333,7 @@ fun DivScope.textProps( * @param transitionIn Appearance animation. It is played when an element with a new ID appears. To learn more about the concept of transitions, see [Animated transitions](../../interaction#animation/transition-animation). * @param transitionOut Disappearance animation. It is played when an element disappears in the new layout. * @param transitionTriggers Animation starting triggers. Default value: `[state_change, visibility_change]`. - * @param truncate Text cropping method. Use `ellipsis` instead. + * @param truncate Location of text cropping marker. * @param underline Underline. * @param variableTriggers Triggers for changing variables within an element. * @param variables Declaration of variables that can be used within an element. Variables declared in this array can only be used within the element and its child elements. @@ -1344,6 +1357,7 @@ fun TemplateScope.textRefs( autoEllipsize: ReferenceProperty? = null, background: ReferenceProperty>? = null, border: ReferenceProperty? = null, + captureFocusOnAction: ReferenceProperty? = null, columnSpan: ReferenceProperty? = null, disappearActions: ReferenceProperty>? = null, doubletapActions: ReferenceProperty>? = null, @@ -1412,6 +1426,7 @@ fun TemplateScope.textRefs( autoEllipsize = autoEllipsize, background = background, border = border, + captureFocusOnAction = captureFocusOnAction, columnSpan = columnSpan, disappearActions = disappearActions, doubletapActions = doubletapActions, @@ -1482,6 +1497,7 @@ fun TemplateScope.textRefs( * @param autoEllipsize Automatic text cropping to fit the container size. * @param background Element background. It can contain multiple layers. * @param border Element stroke. + * @param captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. * @param disappearActions Actions when an element disappears from the screen. * @param doubletapActions Action when double-clicking on an element. @@ -1528,7 +1544,7 @@ fun TemplateScope.textRefs( * @param transitionIn Appearance animation. It is played when an element with a new ID appears. To learn more about the concept of transitions, see [Animated transitions](../../interaction#animation/transition-animation). * @param transitionOut Disappearance animation. It is played when an element disappears in the new layout. * @param transitionTriggers Animation starting triggers. Default value: `[state_change, visibility_change]`. - * @param truncate Text cropping method. Use `ellipsis` instead. + * @param truncate Location of text cropping marker. * @param underline Underline. * @param variableTriggers Triggers for changing variables within an element. * @param variables Declaration of variables that can be used within an element. Variables declared in this array can only be used within the element and its child elements. @@ -1552,6 +1568,7 @@ fun Text.override( autoEllipsize: Boolean? = null, background: List? = null, border: Border? = null, + captureFocusOnAction: Boolean? = null, columnSpan: Int? = null, disappearActions: List? = null, doubletapActions: List? = null, @@ -1621,6 +1638,7 @@ fun Text.override( autoEllipsize = valueOrNull(autoEllipsize) ?: properties.autoEllipsize, background = valueOrNull(background) ?: properties.background, border = valueOrNull(border) ?: properties.border, + captureFocusOnAction = valueOrNull(captureFocusOnAction) ?: properties.captureFocusOnAction, columnSpan = valueOrNull(columnSpan) ?: properties.columnSpan, disappearActions = valueOrNull(disappearActions) ?: properties.disappearActions, doubletapActions = valueOrNull(doubletapActions) ?: properties.doubletapActions, @@ -1692,6 +1710,7 @@ fun Text.override( * @param autoEllipsize Automatic text cropping to fit the container size. * @param background Element background. It can contain multiple layers. * @param border Element stroke. + * @param captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. * @param disappearActions Actions when an element disappears from the screen. * @param doubletapActions Action when double-clicking on an element. @@ -1738,7 +1757,7 @@ fun Text.override( * @param transitionIn Appearance animation. It is played when an element with a new ID appears. To learn more about the concept of transitions, see [Animated transitions](../../interaction#animation/transition-animation). * @param transitionOut Disappearance animation. It is played when an element disappears in the new layout. * @param transitionTriggers Animation starting triggers. Default value: `[state_change, visibility_change]`. - * @param truncate Text cropping method. Use `ellipsis` instead. + * @param truncate Location of text cropping marker. * @param underline Underline. * @param variableTriggers Triggers for changing variables within an element. * @param variables Declaration of variables that can be used within an element. Variables declared in this array can only be used within the element and its child elements. @@ -1762,6 +1781,7 @@ fun Text.defer( autoEllipsize: ReferenceProperty? = null, background: ReferenceProperty>? = null, border: ReferenceProperty? = null, + captureFocusOnAction: ReferenceProperty? = null, columnSpan: ReferenceProperty? = null, disappearActions: ReferenceProperty>? = null, doubletapActions: ReferenceProperty>? = null, @@ -1831,6 +1851,7 @@ fun Text.defer( autoEllipsize = autoEllipsize ?: properties.autoEllipsize, background = background ?: properties.background, border = border ?: properties.border, + captureFocusOnAction = captureFocusOnAction ?: properties.captureFocusOnAction, columnSpan = columnSpan ?: properties.columnSpan, disappearActions = disappearActions ?: properties.disappearActions, doubletapActions = doubletapActions ?: properties.doubletapActions, @@ -1895,6 +1916,7 @@ fun Text.defer( * @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 autoEllipsize Automatic text cropping to fit the container size. + * @param captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. * @param focusedTextColor Text color when focusing on the element. * @param fontFamily Font family:
  • `text` — a standard text font;
  • `display` — a family of fonts with a large font size.
  • @@ -1914,7 +1936,7 @@ fun Text.defer( * @param textAlignmentVertical Vertical text alignment. * @param textColor Text color. Not used if the `text_gradient` parameter is set. * @param tightenWidth Limit the text width to the maximum line width. Applies only when the width is set to `wrap_content`, `constrained=true`, and `max_size` is specified. - * @param truncate Text cropping method. Use `ellipsis` instead. + * @param truncate Location of text cropping marker. * @param underline Underline. * @param visibility Element visibility. */ @@ -1926,6 +1948,7 @@ fun Text.evaluate( alignmentVertical: ExpressionProperty? = null, alpha: ExpressionProperty? = null, autoEllipsize: ExpressionProperty? = null, + captureFocusOnAction: ExpressionProperty? = null, columnSpan: ExpressionProperty? = null, focusedTextColor: ExpressionProperty? = null, fontFamily: ExpressionProperty? = null, @@ -1963,6 +1986,7 @@ fun Text.evaluate( autoEllipsize = autoEllipsize ?: properties.autoEllipsize, background = properties.background, border = properties.border, + captureFocusOnAction = captureFocusOnAction ?: properties.captureFocusOnAction, columnSpan = columnSpan ?: properties.columnSpan, disappearActions = properties.disappearActions, doubletapActions = properties.doubletapActions, @@ -2034,6 +2058,7 @@ fun Text.evaluate( * @param autoEllipsize Automatic text cropping to fit the container size. * @param background Element background. It can contain multiple layers. * @param border Element stroke. + * @param captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. * @param disappearActions Actions when an element disappears from the screen. * @param doubletapActions Action when double-clicking on an element. @@ -2080,7 +2105,7 @@ fun Text.evaluate( * @param transitionIn Appearance animation. It is played when an element with a new ID appears. To learn more about the concept of transitions, see [Animated transitions](../../interaction#animation/transition-animation). * @param transitionOut Disappearance animation. It is played when an element disappears in the new layout. * @param transitionTriggers Animation starting triggers. Default value: `[state_change, visibility_change]`. - * @param truncate Text cropping method. Use `ellipsis` instead. + * @param truncate Location of text cropping marker. * @param underline Underline. * @param variableTriggers Triggers for changing variables within an element. * @param variables Declaration of variables that can be used within an element. Variables declared in this array can only be used within the element and its child elements. @@ -2104,6 +2129,7 @@ fun Component.override( autoEllipsize: Boolean? = null, background: List? = null, border: Border? = null, + captureFocusOnAction: Boolean? = null, columnSpan: Int? = null, disappearActions: List? = null, doubletapActions: List? = null, @@ -2174,6 +2200,7 @@ fun Component.override( autoEllipsize = valueOrNull(autoEllipsize), background = valueOrNull(background), border = valueOrNull(border), + captureFocusOnAction = valueOrNull(captureFocusOnAction), columnSpan = valueOrNull(columnSpan), disappearActions = valueOrNull(disappearActions), doubletapActions = valueOrNull(doubletapActions), @@ -2245,6 +2272,7 @@ fun Component.override( * @param autoEllipsize Automatic text cropping to fit the container size. * @param background Element background. It can contain multiple layers. * @param border Element stroke. + * @param captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. * @param disappearActions Actions when an element disappears from the screen. * @param doubletapActions Action when double-clicking on an element. @@ -2291,7 +2319,7 @@ fun Component.override( * @param transitionIn Appearance animation. It is played when an element with a new ID appears. To learn more about the concept of transitions, see [Animated transitions](../../interaction#animation/transition-animation). * @param transitionOut Disappearance animation. It is played when an element disappears in the new layout. * @param transitionTriggers Animation starting triggers. Default value: `[state_change, visibility_change]`. - * @param truncate Text cropping method. Use `ellipsis` instead. + * @param truncate Location of text cropping marker. * @param underline Underline. * @param variableTriggers Triggers for changing variables within an element. * @param variables Declaration of variables that can be used within an element. Variables declared in this array can only be used within the element and its child elements. @@ -2315,6 +2343,7 @@ fun Component.defer( autoEllipsize: ReferenceProperty? = null, background: ReferenceProperty>? = null, border: ReferenceProperty? = null, + captureFocusOnAction: ReferenceProperty? = null, columnSpan: ReferenceProperty? = null, disappearActions: ReferenceProperty>? = null, doubletapActions: ReferenceProperty>? = null, @@ -2385,6 +2414,7 @@ fun Component.defer( autoEllipsize = autoEllipsize, background = background, border = border, + captureFocusOnAction = captureFocusOnAction, columnSpan = columnSpan, disappearActions = disappearActions, doubletapActions = doubletapActions, @@ -2449,6 +2479,7 @@ fun Component.defer( * @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 autoEllipsize Automatic text cropping to fit the container size. + * @param captureFocusOnAction If the value is:
  • `true` - when the element action is activated, the focus will be moved to that element. That means that the accessibility focus will be moved and the virtual keyboard will be hidden, unless the target element implies its presence (e.g. `input`).
  • `false` - when you click on an element, the focus will remain on the currently focused element.
  • * @param columnSpan Merges cells in a column of the [grid](div-grid.md) element. * @param focusedTextColor Text color when focusing on the element. * @param fontFamily Font family:
  • `text` — a standard text font;
  • `display` — a family of fonts with a large font size.
  • @@ -2468,7 +2499,7 @@ fun Component.defer( * @param textAlignmentVertical Vertical text alignment. * @param textColor Text color. Not used if the `text_gradient` parameter is set. * @param tightenWidth Limit the text width to the maximum line width. Applies only when the width is set to `wrap_content`, `constrained=true`, and `max_size` is specified. - * @param truncate Text cropping method. Use `ellipsis` instead. + * @param truncate Location of text cropping marker. * @param underline Underline. * @param visibility Element visibility. */ @@ -2480,6 +2511,7 @@ fun Component.evaluate( alignmentVertical: ExpressionProperty? = null, alpha: ExpressionProperty? = null, autoEllipsize: ExpressionProperty? = null, + captureFocusOnAction: ExpressionProperty? = null, columnSpan: ExpressionProperty? = null, focusedTextColor: ExpressionProperty? = null, fontFamily: ExpressionProperty? = null, @@ -2518,6 +2550,7 @@ fun Component.evaluate( autoEllipsize = autoEllipsize, background = null, border = null, + captureFocusOnAction = captureFocusOnAction, columnSpan = columnSpan, disappearActions = null, doubletapActions = null, diff --git a/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Tooltip.kt b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Tooltip.kt index 63faa783f..41bca2dd5 100644 --- a/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Tooltip.kt +++ b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Tooltip.kt @@ -58,7 +58,7 @@ data class Tooltip internal constructor( */ val animationOut: Property?, /** - * Description for accessibility of the background tap action for tooltip. + * Description for accessibility of the tap action on the background of the tooltip. */ val backgroundAccessibilityDescription: Property?, /** @@ -127,7 +127,7 @@ data class Tooltip internal constructor( /** * @param animationIn Tooltip appearance animation. By default, the tooltip will be appearing gradually with an offset from the anchor point by 10 dp. * @param animationOut Tooltip disappearance animation. By default, the tooltip will disappear gradually with an offset from the anchor point by 10 dp. - * @param backgroundAccessibilityDescription Description for accessibility of the background tap action for tooltip. + * @param backgroundAccessibilityDescription Description for accessibility of the tap action on the background of the tooltip. * @param closeByTapOutside Allows dismissing tooltip by tapping outside of it. * @param div An element that will be shown in a tooltip. If there are tooltips inside an element, they won't be shown. * @param duration Duration of the tooltip visibility in milliseconds. When the value is set to `0`, the tooltip will be visible until the user hides it. @@ -170,7 +170,7 @@ fun DivScope.tooltip( /** * @param animationIn Tooltip appearance animation. By default, the tooltip will be appearing gradually with an offset from the anchor point by 10 dp. * @param animationOut Tooltip disappearance animation. By default, the tooltip will disappear gradually with an offset from the anchor point by 10 dp. - * @param backgroundAccessibilityDescription Description for accessibility of the background tap action for tooltip. + * @param backgroundAccessibilityDescription Description for accessibility of the tap action on the background of the tooltip. * @param closeByTapOutside Allows dismissing tooltip by tapping outside of it. * @param div An element that will be shown in a tooltip. If there are tooltips inside an element, they won't be shown. * @param duration Duration of the tooltip visibility in milliseconds. When the value is set to `0`, the tooltip will be visible until the user hides it. @@ -211,7 +211,7 @@ fun DivScope.tooltipProps( /** * @param animationIn Tooltip appearance animation. By default, the tooltip will be appearing gradually with an offset from the anchor point by 10 dp. * @param animationOut Tooltip disappearance animation. By default, the tooltip will disappear gradually with an offset from the anchor point by 10 dp. - * @param backgroundAccessibilityDescription Description for accessibility of the background tap action for tooltip. + * @param backgroundAccessibilityDescription Description for accessibility of the tap action on the background of the tooltip. * @param closeByTapOutside Allows dismissing tooltip by tapping outside of it. * @param div An element that will be shown in a tooltip. If there are tooltips inside an element, they won't be shown. * @param duration Duration of the tooltip visibility in milliseconds. When the value is set to `0`, the tooltip will be visible until the user hides it. @@ -252,7 +252,7 @@ fun TemplateScope.tooltipRefs( /** * @param animationIn Tooltip appearance animation. By default, the tooltip will be appearing gradually with an offset from the anchor point by 10 dp. * @param animationOut Tooltip disappearance animation. By default, the tooltip will disappear gradually with an offset from the anchor point by 10 dp. - * @param backgroundAccessibilityDescription Description for accessibility of the background tap action for tooltip. + * @param backgroundAccessibilityDescription Description for accessibility of the tap action on the background of the tooltip. * @param closeByTapOutside Allows dismissing tooltip by tapping outside of it. * @param div An element that will be shown in a tooltip. If there are tooltips inside an element, they won't be shown. * @param duration Duration of the tooltip visibility in milliseconds. When the value is set to `0`, the tooltip will be visible until the user hides it. @@ -295,7 +295,7 @@ fun Tooltip.override( /** * @param animationIn Tooltip appearance animation. By default, the tooltip will be appearing gradually with an offset from the anchor point by 10 dp. * @param animationOut Tooltip disappearance animation. By default, the tooltip will disappear gradually with an offset from the anchor point by 10 dp. - * @param backgroundAccessibilityDescription Description for accessibility of the background tap action for tooltip. + * @param backgroundAccessibilityDescription Description for accessibility of the tap action on the background of the tooltip. * @param closeByTapOutside Allows dismissing tooltip by tapping outside of it. * @param div An element that will be shown in a tooltip. If there are tooltips inside an element, they won't be shown. * @param duration Duration of the tooltip visibility in milliseconds. When the value is set to `0`, the tooltip will be visible until the user hides it. @@ -336,7 +336,7 @@ fun Tooltip.defer( ) /** - * @param backgroundAccessibilityDescription Description for accessibility of the background tap action for tooltip. + * @param backgroundAccessibilityDescription Description for accessibility of the tap action on the background of the tooltip. * @param closeByTapOutside Allows dismissing tooltip by tapping outside of it. * @param duration Duration of the tooltip visibility in milliseconds. When the value is set to `0`, the tooltip will be visible until the user hides it. * @param position The position of a tooltip relative to an element it belongs to. diff --git a/json-builder/python/pyproject.toml b/json-builder/python/pyproject.toml index 7a4a82654..70e00eba2 100644 --- a/json-builder/python/pyproject.toml +++ b/json-builder/python/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "pydivkit" -version = "31.8.0" +version = "31.9.0" description = "DivKit python library" readme = "README.md" repository = "https://github.com/divkit/divkit/tree/main/json-builder/python" diff --git a/json-builder/typescript/package.json b/json-builder/typescript/package.json index 718fc956e..f7ed01aec 100644 --- a/json-builder/typescript/package.json +++ b/json-builder/typescript/package.json @@ -1,6 +1,6 @@ { "name": "@divkitframework/jsonbuilder", - "version": "31.8.0", + "version": "31.9.0", "description": "DivKit TypeScript JSON Builder", "main": "./dist/jsonbuilder.js", "module": "./dist/es/jsonbuilder.js", diff --git a/version b/version index 6cc161e2a..00085cfb7 100644 --- a/version +++ b/version @@ -1 +1 @@ -31.8.0 +31.9.0