@divkitframework/jsonbuilder 30.20.0 → 30.22.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -98,7 +98,7 @@ class DictVariable {
98
98
 
99
99
  // Generated code. Do not modify.
100
100
  /**
101
- * Starts specified animator
101
+ * Launches the specified animator.
102
102
  */
103
103
  class DivActionAnimatorStart {
104
104
  constructor(props) {
@@ -116,7 +116,7 @@ class DivActionAnimatorStart {
116
116
 
117
117
  // Generated code. Do not modify.
118
118
  /**
119
- * Stops specified animator
119
+ * Stops the specified animator.
120
120
  */
121
121
  class DivActionAnimatorStop {
122
122
  constructor(props) {
@@ -152,7 +152,7 @@ class DivActionArrayRemoveValue {
152
152
 
153
153
  // Generated code. Do not modify.
154
154
  /**
155
- * Sets value in the array
155
+ * Sets the value in the array by index.
156
156
  */
157
157
  class DivActionArraySetValue {
158
158
  constructor(props) {
@@ -186,7 +186,8 @@ class DivActionCopyToClipboard {
186
186
 
187
187
  // Generated code. Do not modify.
188
188
  /**
189
- * Sets value in dictionary for the given key. Removes key if the value is not defined.
189
+ * Sets the value in the dictionary by the specified key. Deletes the key if the value is not
190
+ * set.
190
191
  */
191
192
  class DivActionDictSetValue {
192
193
  constructor(props) {
@@ -199,7 +200,7 @@ class DivActionDictSetValue {
199
200
 
200
201
  // Generated code. Do not modify.
201
202
  /**
202
- * Loads more data in the form of a `div-patch` and updates current element,
203
+ * Loads additional data in `div-patch` format and updates the current element.
203
204
  */
204
205
  class DivActionDownload {
205
206
  constructor(props) {
@@ -223,7 +224,7 @@ class DivActionFocusElement {
223
224
 
224
225
  // Generated code. Do not modify.
225
226
  /**
226
- * Hides tooltip.
227
+ * Hides the tooltip.
227
228
  */
228
229
  class DivActionHideTooltip {
229
230
  constructor(props) {
@@ -234,7 +235,36 @@ class DivActionHideTooltip {
234
235
 
235
236
  // Generated code. Do not modify.
236
237
  /**
237
- * Switches the appearance of content in `div-state`.
238
+ * Scrolls scrollable container from current position by `item_count` or by `offset`, if both
239
+ * provided scroll action will be combined, negative numbers associated with backward scroll.
240
+ */
241
+ class DivActionScrollBy {
242
+ constructor(props) {
243
+ this.type = 'scroll_by';
244
+ this.animated = props.animated;
245
+ this.id = props.id;
246
+ this.item_count = props.item_count;
247
+ this.offset = props.offset;
248
+ this.overflow = props.overflow;
249
+ }
250
+ }
251
+
252
+ // Generated code. Do not modify.
253
+ /**
254
+ * Scrolls or switches container to given destination provided by `destination`.
255
+ */
256
+ class DivActionScrollTo {
257
+ constructor(props) {
258
+ this.type = 'scroll_to';
259
+ this.animated = props.animated;
260
+ this.destination = props.destination;
261
+ this.id = props.id;
262
+ }
263
+ }
264
+
265
+ // Generated code. Do not modify.
266
+ /**
267
+ * Applies a new appearance to the content in `div-state'.
238
268
  */
239
269
  class DivActionSetState {
240
270
  constructor(props) {
@@ -244,6 +274,19 @@ class DivActionSetState {
244
274
  }
245
275
  }
246
276
 
277
+ // Generated code. Do not modify.
278
+ /**
279
+ * Temporarily saves variable to the persistent storage.
280
+ */
281
+ class DivActionSetStoredValue {
282
+ constructor(props) {
283
+ this.type = 'set_stored_value';
284
+ this.lifetime = props.lifetime;
285
+ this.name = props.name;
286
+ this.value = props.value;
287
+ }
288
+ }
289
+
247
290
  // Generated code. Do not modify.
248
291
  /**
249
292
  * Assigns a value to the variable
@@ -258,7 +301,7 @@ class DivActionSetVariable {
258
301
 
259
302
  // Generated code. Do not modify.
260
303
  /**
261
- * Shows tooltip.
304
+ * Shows the tooltip.
262
305
  */
263
306
  class DivActionShowTooltip {
264
307
  constructor(props) {
@@ -268,6 +311,22 @@ class DivActionShowTooltip {
268
311
  }
269
312
  }
270
313
 
314
+ // Generated code. Do not modify.
315
+ /**
316
+ * Sends variables from the container via a url. The data sending configuration can be determined
317
+ * by the host application. By default, variables are passed in body in json format, the request
318
+ * method is POST.
319
+ */
320
+ class DivActionSubmit {
321
+ constructor(props) {
322
+ this.type = 'submit';
323
+ this.container_id = props.container_id;
324
+ this.on_fail_actions = props.on_fail_actions;
325
+ this.on_success_actions = props.on_success_actions;
326
+ this.request = props.request;
327
+ }
328
+ }
329
+
271
330
  // Generated code. Do not modify.
272
331
  /**
273
332
  * Controls the timer.
@@ -282,7 +341,7 @@ class DivActionTimer {
282
341
 
283
342
  // Generated code. Do not modify.
284
343
  /**
285
- * Controls given video.
344
+ * Manages video playback.
286
345
  */
287
346
  class DivActionVideo {
288
347
  constructor(props) {
@@ -351,6 +410,20 @@ class DivCircleShape {
351
410
  }
352
411
  }
353
412
 
413
+ // Generated code. Do not modify.
414
+ /**
415
+ * Cloud text background. Lines draws a rectangular background with the specified color and
416
+ * rounded corners.
417
+ */
418
+ class DivCloudBackground {
419
+ constructor(props) {
420
+ this.type = 'cloud';
421
+ this.color = props.color;
422
+ this.corner_radius = props.corner_radius;
423
+ this.paddings = props.paddings;
424
+ }
425
+ }
426
+
354
427
  // Generated code. Do not modify.
355
428
  /**
356
429
  * Color animator.
@@ -929,7 +1002,7 @@ class DivInput {
929
1002
 
930
1003
  // Generated code. Do not modify.
931
1004
  /**
932
- * [Calculated expression](../../expressions) filter.
1005
+ * Filter based on [calculated expressions](../../expressions).
933
1006
  */
934
1007
  class DivInputFilterExpression {
935
1008
  constructor(props) {
@@ -940,7 +1013,7 @@ class DivInputFilterExpression {
940
1013
 
941
1014
  // Generated code. Do not modify.
942
1015
  /**
943
- * Regex filter.
1016
+ * Filter based on regular expressions.
944
1017
  */
945
1018
  class DivInputFilterRegex {
946
1019
  constructor(props) {
@@ -1025,7 +1098,7 @@ class DivNinePatchBackground {
1025
1098
 
1026
1099
  // Generated code. Do not modify.
1027
1100
  /**
1028
- * Number animator.
1101
+ * Numeric value animator.
1029
1102
  */
1030
1103
  class DivNumberAnimator {
1031
1104
  constructor(props) {
@@ -1057,7 +1130,7 @@ class DivPageSize {
1057
1130
 
1058
1131
  // Generated code. Do not modify.
1059
1132
  /**
1060
- * The pages are stacked when the pager is scrolled overlapping each other.
1133
+ * Pages are stacked during animation overlapping one another.
1061
1134
  */
1062
1135
  class DivPageTransformationOverlap {
1063
1136
  constructor(props) {
@@ -1073,7 +1146,7 @@ class DivPageTransformationOverlap {
1073
1146
 
1074
1147
  // Generated code. Do not modify.
1075
1148
  /**
1076
- * The pages are moving when the pager is flipping without overlaping each other.
1149
+ * Pages move without overlapping during pager scrolling.
1077
1150
  */
1078
1151
  class DivPageTransformationSlide {
1079
1152
  constructor(props) {
@@ -1736,6 +1809,27 @@ class DivWrapContentSize {
1736
1809
  }
1737
1810
  }
1738
1811
 
1812
+ // Generated code. Do not modify.
1813
+ /**
1814
+ * Specifies container's end as scroll destination.
1815
+ */
1816
+ class EndDestination {
1817
+ constructor(props) {
1818
+ this.type = 'end';
1819
+ }
1820
+ }
1821
+
1822
+ // Generated code. Do not modify.
1823
+ /**
1824
+ * Specifies element with provided index as scroll destination.
1825
+ */
1826
+ class IndexDestination {
1827
+ constructor(props) {
1828
+ this.type = 'index';
1829
+ this.value = props.value;
1830
+ }
1831
+ }
1832
+
1739
1833
  // Generated code. Do not modify.
1740
1834
  class IntegerValue {
1741
1835
  constructor(props) {
@@ -1776,6 +1870,28 @@ class NumberVariable {
1776
1870
  }
1777
1871
  }
1778
1872
 
1873
+ // Generated code. Do not modify.
1874
+ /**
1875
+ * Specifies position measured in `dp` from container's start as scroll destination. Applicable
1876
+ * only in `gallery`.
1877
+ */
1878
+ class OffsetDestination {
1879
+ constructor(props) {
1880
+ this.type = 'offset';
1881
+ this.value = props.value;
1882
+ }
1883
+ }
1884
+
1885
+ // Generated code. Do not modify.
1886
+ /**
1887
+ * Specifies container's start as scroll destination.
1888
+ */
1889
+ class StartDestination {
1890
+ constructor(props) {
1891
+ this.type = 'start';
1892
+ }
1893
+ }
1894
+
1779
1895
  // Generated code. Do not modify.
1780
1896
  class StringValue {
1781
1897
  constructor(props) {
@@ -2192,5 +2308,5 @@ function rewriteTemplateVersions(templates, resolvedNames) {
2192
2308
  return rewriteNames(templates, rename, resolvedNames);
2193
2309
  }
2194
2310
 
2195
- export { ArrayValue, ArrayVariable, BooleanValue, BooleanVariable, ColorValue, ColorVariable, ContentText, ContentUrl, DictValue, DictVariable, DivActionAnimatorStart, DivActionAnimatorStop, DivActionArrayInsertValue, DivActionArrayRemoveValue, DivActionArraySetValue, DivActionClearFocus, DivActionCopyToClipboard, DivActionDictSetValue, DivActionDownload, DivActionFocusElement, DivActionHideTooltip, DivActionSetState, DivActionSetVariable, DivActionShowTooltip, DivActionTimer, DivActionVideo, DivAppearanceSetTransition, DivBlur, DivChangeBoundsTransition, DivChangeSetTransition, DivCircleShape, DivColorAnimator, DivContainer, DivCurrencyInputMask, DivCustom, DivDefaultIndicatorItemPlacement, DivFadeTransition, DivFilterRtlMirror, DivFixedCount, DivFixedLengthInputMask, DivFixedSize, DivGallery, DivGifImage, DivGradientBackground, DivGrid, DivImage, DivImageBackground, DivIndicator, DivInfinityCount, DivInput, DivInputFilterExpression, DivInputFilterRegex, DivInputValidatorExpression, DivInputValidatorRegex, DivLinearGradient, DivMatchParentSize, DivNeighbourPageSize, DivNinePatchBackground, DivNumberAnimator, DivPageSize, DivPageTransformationOverlap, DivPageTransformationSlide, DivPager, DivPercentageSize, DivPhoneInputMask, DivPivotFixed, DivPivotPercentage, DivRadialGradient, DivRadialGradientFixedCenter, DivRadialGradientRelativeCenter, DivRadialGradientRelativeRadius, DivRoundedRectangleShape, DivScaleTransition, DivSelect, DivSeparator, DivShapeDrawable, DivSlideTransition, DivSlider, DivSolidBackground, DivState, DivStretchIndicatorItemPlacement, DivTabs, DivText, DivVideo, DivVideoSource, DivVideoSourceResolution, DivWrapContentSize, IntegerValue, IntegerVariable, NumberValue, NumberVariable, SafeDivExpression, StringValue, StringVariable, TemplateBlock, TemplatePropertyReference, UrlValue, UrlVariable, copyTemplates, divCard, escapeCard, escapeExpression, expression, fixed, getTemplateHash, matchParent, reference, rewriteNames, rewriteRefs, rewriteTemplateVersions, runResolveDeps, template, templateHelper, templatesDepsMap, thelperVersion, thelperWithMemo, treeWalkDFS, weighted, wrapContent };
2311
+ export { ArrayValue, ArrayVariable, BooleanValue, BooleanVariable, ColorValue, ColorVariable, ContentText, ContentUrl, DictValue, DictVariable, DivActionAnimatorStart, DivActionAnimatorStop, DivActionArrayInsertValue, DivActionArrayRemoveValue, DivActionArraySetValue, DivActionClearFocus, DivActionCopyToClipboard, DivActionDictSetValue, DivActionDownload, DivActionFocusElement, DivActionHideTooltip, DivActionScrollBy, DivActionScrollTo, DivActionSetState, DivActionSetStoredValue, DivActionSetVariable, DivActionShowTooltip, DivActionSubmit, DivActionTimer, DivActionVideo, DivAppearanceSetTransition, DivBlur, DivChangeBoundsTransition, DivChangeSetTransition, DivCircleShape, DivCloudBackground, DivColorAnimator, DivContainer, DivCurrencyInputMask, DivCustom, DivDefaultIndicatorItemPlacement, DivFadeTransition, DivFilterRtlMirror, DivFixedCount, DivFixedLengthInputMask, DivFixedSize, DivGallery, DivGifImage, DivGradientBackground, DivGrid, DivImage, DivImageBackground, DivIndicator, DivInfinityCount, DivInput, DivInputFilterExpression, DivInputFilterRegex, DivInputValidatorExpression, DivInputValidatorRegex, DivLinearGradient, DivMatchParentSize, DivNeighbourPageSize, DivNinePatchBackground, DivNumberAnimator, DivPageSize, DivPageTransformationOverlap, DivPageTransformationSlide, DivPager, DivPercentageSize, DivPhoneInputMask, DivPivotFixed, DivPivotPercentage, DivRadialGradient, DivRadialGradientFixedCenter, DivRadialGradientRelativeCenter, DivRadialGradientRelativeRadius, DivRoundedRectangleShape, DivScaleTransition, DivSelect, DivSeparator, DivShapeDrawable, DivSlideTransition, DivSlider, DivSolidBackground, DivState, DivStretchIndicatorItemPlacement, DivTabs, DivText, DivVideo, DivVideoSource, DivVideoSourceResolution, DivWrapContentSize, EndDestination, IndexDestination, IntegerValue, IntegerVariable, NumberValue, NumberVariable, OffsetDestination, SafeDivExpression, StartDestination, StringValue, StringVariable, TemplateBlock, TemplatePropertyReference, UrlValue, UrlVariable, copyTemplates, divCard, escapeCard, escapeExpression, expression, fixed, getTemplateHash, matchParent, reference, rewriteNames, rewriteRefs, rewriteTemplateVersions, runResolveDeps, template, templateHelper, templatesDepsMap, thelperVersion, thelperWithMemo, treeWalkDFS, weighted, wrapContent };
2196
2312
  //# sourceMappingURL=jsonbuilder.js.map