From ffcce18d99b668bf8bd13b21ca01cca80ccbee72 Mon Sep 17 00:00:00 2001 From: robot-divkit Date: Wed, 11 Dec 2024 14:16:07 +0300 Subject: [PATCH] Updated version to 30.31.0 commit_hash:c63bc1febe84450cf3c28152a8761926d578e06c --- client/ios/Configurations/Version.xcconfig | 2 +- client/ios/DivKit/DivKitInfo.swift | 2 +- client/web/divkit/package.json | 2 +- .../src/generated/kotlin/divkit/dsl/Slider.kt | 34 +++++++++++++++++++ json-builder/python/pyproject.toml | 2 +- json-builder/typescript/package.json | 2 +- version | 2 +- 7 files changed, 40 insertions(+), 6 deletions(-) diff --git a/client/ios/Configurations/Version.xcconfig b/client/ios/Configurations/Version.xcconfig index f87d60748..aa17c4afd 100644 --- a/client/ios/Configurations/Version.xcconfig +++ b/client/ios/Configurations/Version.xcconfig @@ -1,2 +1,2 @@ -MARKETING_VERSION = 30.30.0 +MARKETING_VERSION = 30.31.0 CURRENT_PROJECT_VERSION = 30 diff --git a/client/ios/DivKit/DivKitInfo.swift b/client/ios/DivKit/DivKitInfo.swift index 79e1fb65c..88820ed20 100644 --- a/client/ios/DivKit/DivKitInfo.swift +++ b/client/ios/DivKit/DivKitInfo.swift @@ -1,3 +1,3 @@ public enum DivKitInfo { - public static let version = "30.30.0" + public static let version = "30.31.0" } diff --git a/client/web/divkit/package.json b/client/web/divkit/package.json index a3a610451..a6a3cd483 100644 --- a/client/web/divkit/package.json +++ b/client/web/divkit/package.json @@ -1,6 +1,6 @@ { "name": "@divkitframework/divkit", - "version": "30.30.0", + "version": "30.31.0", "description": "DivKit for the web", "keywords": [ "server-driven-ui", diff --git a/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Slider.kt b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Slider.kt index 528deb9f5..bfca54cc8 100644 --- a/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Slider.kt +++ b/json-builder/kotlin/src/generated/kotlin/divkit/dsl/Slider.kt @@ -50,6 +50,7 @@ data class Slider internal constructor( functions = additive.functions ?: properties.functions, height = additive.height ?: properties.height, id = additive.id ?: properties.id, + isEnabled = additive.isEnabled ?: properties.isEnabled, layoutProvider = additive.layoutProvider ?: properties.layoutProvider, margins = additive.margins ?: properties.margins, maxValue = additive.maxValue ?: properties.maxValue, @@ -144,6 +145,11 @@ data class Slider internal constructor( * Element ID. It must be unique within the root element. It is used as `accessibilityIdentifier` on iOS. */ val id: Property?, + /** + * Enables or disables value selecting by click/tap or swipe. + * Default value: `true`. + */ + val isEnabled: Property?, /** * Provides data on the actual size of the element. */ @@ -294,6 +300,7 @@ data class Slider internal constructor( result.tryPutProperty("functions", functions) result.tryPutProperty("height", height) result.tryPutProperty("id", id) + result.tryPutProperty("is_enabled", isEnabled) result.tryPutProperty("layout_provider", layoutProvider) result.tryPutProperty("margins", margins) result.tryPutProperty("max_value", maxValue) @@ -470,6 +477,7 @@ data class Slider internal constructor( * @param functions User functions. * @param height Element height. For Android: if there is text in this or in a child element, specify height in `sp` to scale the element together with the text. To learn more about units of size measurement, see [Layout inside the card](../../layout). * @param id Element ID. It must be unique within the root element. It is used as `accessibilityIdentifier` on iOS. + * @param isEnabled Enables or disables value selecting by click/tap or swipe. * @param layoutProvider Provides data on the actual size of the element. * @param margins External margins from the element stroke. * @param maxValue Maximum value. It must be greater than the minimum value. @@ -520,6 +528,7 @@ fun DivScope.slider( functions: List? = null, height: Size? = null, id: String? = null, + isEnabled: Boolean? = null, layoutProvider: LayoutProvider? = null, margins: EdgeInsets? = null, maxValue: Int? = null, @@ -568,6 +577,7 @@ fun DivScope.slider( functions = valueOrNull(functions), height = valueOrNull(height), id = valueOrNull(id), + isEnabled = valueOrNull(isEnabled), layoutProvider = valueOrNull(layoutProvider), margins = valueOrNull(margins), maxValue = valueOrNull(maxValue), @@ -618,6 +628,7 @@ fun DivScope.slider( * @param functions User functions. * @param height Element height. For Android: if there is text in this or in a child element, specify height in `sp` to scale the element together with the text. To learn more about units of size measurement, see [Layout inside the card](../../layout). * @param id Element ID. It must be unique within the root element. It is used as `accessibilityIdentifier` on iOS. + * @param isEnabled Enables or disables value selecting by click/tap or swipe. * @param layoutProvider Provides data on the actual size of the element. * @param margins External margins from the element stroke. * @param maxValue Maximum value. It must be greater than the minimum value. @@ -668,6 +679,7 @@ fun DivScope.sliderProps( functions: List? = null, height: Size? = null, id: String? = null, + isEnabled: Boolean? = null, layoutProvider: LayoutProvider? = null, margins: EdgeInsets? = null, maxValue: Int? = null, @@ -715,6 +727,7 @@ fun DivScope.sliderProps( functions = valueOrNull(functions), height = valueOrNull(height), id = valueOrNull(id), + isEnabled = valueOrNull(isEnabled), layoutProvider = valueOrNull(layoutProvider), margins = valueOrNull(margins), maxValue = valueOrNull(maxValue), @@ -764,6 +777,7 @@ fun DivScope.sliderProps( * @param functions User functions. * @param height Element height. For Android: if there is text in this or in a child element, specify height in `sp` to scale the element together with the text. To learn more about units of size measurement, see [Layout inside the card](../../layout). * @param id Element ID. It must be unique within the root element. It is used as `accessibilityIdentifier` on iOS. + * @param isEnabled Enables or disables value selecting by click/tap or swipe. * @param layoutProvider Provides data on the actual size of the element. * @param margins External margins from the element stroke. * @param maxValue Maximum value. It must be greater than the minimum value. @@ -814,6 +828,7 @@ fun TemplateScope.sliderRefs( functions: ReferenceProperty>? = null, height: ReferenceProperty? = null, id: ReferenceProperty? = null, + isEnabled: ReferenceProperty? = null, layoutProvider: ReferenceProperty? = null, margins: ReferenceProperty? = null, maxValue: ReferenceProperty? = null, @@ -861,6 +876,7 @@ fun TemplateScope.sliderRefs( functions = functions, height = height, id = id, + isEnabled = isEnabled, layoutProvider = layoutProvider, margins = margins, maxValue = maxValue, @@ -910,6 +926,7 @@ fun TemplateScope.sliderRefs( * @param functions User functions. * @param height Element height. For Android: if there is text in this or in a child element, specify height in `sp` to scale the element together with the text. To learn more about units of size measurement, see [Layout inside the card](../../layout). * @param id Element ID. It must be unique within the root element. It is used as `accessibilityIdentifier` on iOS. + * @param isEnabled Enables or disables value selecting by click/tap or swipe. * @param layoutProvider Provides data on the actual size of the element. * @param margins External margins from the element stroke. * @param maxValue Maximum value. It must be greater than the minimum value. @@ -960,6 +977,7 @@ fun Slider.override( functions: List? = null, height: Size? = null, id: String? = null, + isEnabled: Boolean? = null, layoutProvider: LayoutProvider? = null, margins: EdgeInsets? = null, maxValue: Int? = null, @@ -1008,6 +1026,7 @@ fun Slider.override( functions = valueOrNull(functions) ?: properties.functions, height = valueOrNull(height) ?: properties.height, id = valueOrNull(id) ?: properties.id, + isEnabled = valueOrNull(isEnabled) ?: properties.isEnabled, layoutProvider = valueOrNull(layoutProvider) ?: properties.layoutProvider, margins = valueOrNull(margins) ?: properties.margins, maxValue = valueOrNull(maxValue) ?: properties.maxValue, @@ -1058,6 +1077,7 @@ fun Slider.override( * @param functions User functions. * @param height Element height. For Android: if there is text in this or in a child element, specify height in `sp` to scale the element together with the text. To learn more about units of size measurement, see [Layout inside the card](../../layout). * @param id Element ID. It must be unique within the root element. It is used as `accessibilityIdentifier` on iOS. + * @param isEnabled Enables or disables value selecting by click/tap or swipe. * @param layoutProvider Provides data on the actual size of the element. * @param margins External margins from the element stroke. * @param maxValue Maximum value. It must be greater than the minimum value. @@ -1108,6 +1128,7 @@ fun Slider.defer( functions: ReferenceProperty>? = null, height: ReferenceProperty? = null, id: ReferenceProperty? = null, + isEnabled: ReferenceProperty? = null, layoutProvider: ReferenceProperty? = null, margins: ReferenceProperty? = null, maxValue: ReferenceProperty? = null, @@ -1156,6 +1177,7 @@ fun Slider.defer( functions = functions ?: properties.functions, height = height ?: properties.height, id = id ?: properties.id, + isEnabled = isEnabled ?: properties.isEnabled, layoutProvider = layoutProvider ?: properties.layoutProvider, margins = margins ?: properties.margins, maxValue = maxValue ?: properties.maxValue, @@ -1196,6 +1218,7 @@ fun Slider.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 columnSpan Merges cells in a column of the [grid](div-grid.md) element. + * @param isEnabled Enables or disables value selecting by click/tap or swipe. * @param maxValue Maximum value. It must be greater than the minimum value. * @param minValue Minimum value. * @param reuseId ID for the div object structure. Used to optimize block reuse. See [block reuse](../../reuse/reuse.md). @@ -1209,6 +1232,7 @@ fun Slider.evaluate( alignmentVertical: ExpressionProperty? = null, alpha: ExpressionProperty? = null, columnSpan: ExpressionProperty? = null, + isEnabled: ExpressionProperty? = null, maxValue: ExpressionProperty? = null, minValue: ExpressionProperty? = null, reuseId: ExpressionProperty? = null, @@ -1230,6 +1254,7 @@ fun Slider.evaluate( functions = properties.functions, height = properties.height, id = properties.id, + isEnabled = isEnabled ?: properties.isEnabled, layoutProvider = properties.layoutProvider, margins = properties.margins, maxValue = maxValue ?: properties.maxValue, @@ -1280,6 +1305,7 @@ fun Slider.evaluate( * @param functions User functions. * @param height Element height. For Android: if there is text in this or in a child element, specify height in `sp` to scale the element together with the text. To learn more about units of size measurement, see [Layout inside the card](../../layout). * @param id Element ID. It must be unique within the root element. It is used as `accessibilityIdentifier` on iOS. + * @param isEnabled Enables or disables value selecting by click/tap or swipe. * @param layoutProvider Provides data on the actual size of the element. * @param margins External margins from the element stroke. * @param maxValue Maximum value. It must be greater than the minimum value. @@ -1330,6 +1356,7 @@ fun Component.override( functions: List? = null, height: Size? = null, id: String? = null, + isEnabled: Boolean? = null, layoutProvider: LayoutProvider? = null, margins: EdgeInsets? = null, maxValue: Int? = null, @@ -1379,6 +1406,7 @@ fun Component.override( functions = valueOrNull(functions), height = valueOrNull(height), id = valueOrNull(id), + isEnabled = valueOrNull(isEnabled), layoutProvider = valueOrNull(layoutProvider), margins = valueOrNull(margins), maxValue = valueOrNull(maxValue), @@ -1429,6 +1457,7 @@ fun Component.override( * @param functions User functions. * @param height Element height. For Android: if there is text in this or in a child element, specify height in `sp` to scale the element together with the text. To learn more about units of size measurement, see [Layout inside the card](../../layout). * @param id Element ID. It must be unique within the root element. It is used as `accessibilityIdentifier` on iOS. + * @param isEnabled Enables or disables value selecting by click/tap or swipe. * @param layoutProvider Provides data on the actual size of the element. * @param margins External margins from the element stroke. * @param maxValue Maximum value. It must be greater than the minimum value. @@ -1479,6 +1508,7 @@ fun Component.defer( functions: ReferenceProperty>? = null, height: ReferenceProperty? = null, id: ReferenceProperty? = null, + isEnabled: ReferenceProperty? = null, layoutProvider: ReferenceProperty? = null, margins: ReferenceProperty? = null, maxValue: ReferenceProperty? = null, @@ -1528,6 +1558,7 @@ fun Component.defer( functions = functions, height = height, id = id, + isEnabled = isEnabled, layoutProvider = layoutProvider, margins = margins, maxValue = maxValue, @@ -1568,6 +1599,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 columnSpan Merges cells in a column of the [grid](div-grid.md) element. + * @param isEnabled Enables or disables value selecting by click/tap or swipe. * @param maxValue Maximum value. It must be greater than the minimum value. * @param minValue Minimum value. * @param reuseId ID for the div object structure. Used to optimize block reuse. See [block reuse](../../reuse/reuse.md). @@ -1581,6 +1613,7 @@ fun Component.evaluate( alignmentVertical: ExpressionProperty? = null, alpha: ExpressionProperty? = null, columnSpan: ExpressionProperty? = null, + isEnabled: ExpressionProperty? = null, maxValue: ExpressionProperty? = null, minValue: ExpressionProperty? = null, reuseId: ExpressionProperty? = null, @@ -1603,6 +1636,7 @@ fun Component.evaluate( functions = null, height = null, id = null, + isEnabled = isEnabled, layoutProvider = null, margins = null, maxValue = maxValue, diff --git a/json-builder/python/pyproject.toml b/json-builder/python/pyproject.toml index b7303bce8..c888f4ba0 100644 --- a/json-builder/python/pyproject.toml +++ b/json-builder/python/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "pydivkit" -version = "30.30.0" +version = "30.31.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 158f9a0d3..835a2c988 100644 --- a/json-builder/typescript/package.json +++ b/json-builder/typescript/package.json @@ -1,6 +1,6 @@ { "name": "@divkitframework/jsonbuilder", - "version": "30.30.0", + "version": "30.31.0", "description": "DivKit TypeScript JSON Builder", "main": "./dist/jsonbuilder.js", "module": "./dist/es/jsonbuilder.js", diff --git a/version b/version index 54a98b25e..7db184041 100644 --- a/version +++ b/version @@ -1 +1 @@ -30.30.0 +30.31.0