@divkitframework/jsonbuilder 30.16.0 → 30.17.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.
@@ -100,6 +100,35 @@ class DictVariable {
100
100
  }
101
101
  }
102
102
 
103
+ // Generated code. Do not modify.
104
+ /**
105
+ * Starts specified animator
106
+ */
107
+ class DivActionAnimatorStart {
108
+ constructor(props) {
109
+ this.type = 'animator_start';
110
+ this.animator_id = props.animator_id;
111
+ this.direction = props.direction;
112
+ this.duration = props.duration;
113
+ this.end_value = props.end_value;
114
+ this.interpolator = props.interpolator;
115
+ this.repeat_count = props.repeat_count;
116
+ this.start_delay = props.start_delay;
117
+ this.start_value = props.start_value;
118
+ }
119
+ }
120
+
121
+ // Generated code. Do not modify.
122
+ /**
123
+ * Stops specified animator
124
+ */
125
+ class DivActionAnimatorStop {
126
+ constructor(props) {
127
+ this.type = 'animator_stop';
128
+ this.animator_id = props.animator_id;
129
+ }
130
+ }
131
+
103
132
  // Generated code. Do not modify.
104
133
  /**
105
134
  * Adds a value to the array
@@ -195,6 +224,42 @@ class DivActionSetVariable {
195
224
  }
196
225
  }
197
226
 
227
+ // Generated code. Do not modify.
228
+ /**
229
+ * Shows tooltip.
230
+ */
231
+ class DivActionShowTooltip {
232
+ constructor(props) {
233
+ this.type = 'show_tooltip';
234
+ this.id = props.id;
235
+ this.multiple = props.multiple;
236
+ }
237
+ }
238
+
239
+ // Generated code. Do not modify.
240
+ /**
241
+ * Controls the timer.
242
+ */
243
+ class DivActionTimer {
244
+ constructor(props) {
245
+ this.type = 'timer';
246
+ this.action = props.action;
247
+ this.id = props.id;
248
+ }
249
+ }
250
+
251
+ // Generated code. Do not modify.
252
+ /**
253
+ * Controls given video.
254
+ */
255
+ class DivActionVideo {
256
+ constructor(props) {
257
+ this.type = 'video';
258
+ this.action = props.action;
259
+ this.id = props.id;
260
+ }
261
+ }
262
+
198
263
  // Generated code. Do not modify.
199
264
  /**
200
265
  * A set of animations to be applied simultaneously.
@@ -254,6 +319,27 @@ class DivCircleShape {
254
319
  }
255
320
  }
256
321
 
322
+ // Generated code. Do not modify.
323
+ /**
324
+ * Color animator.
325
+ */
326
+ class DivColorAnimator {
327
+ constructor(props) {
328
+ this.type = 'color_animator';
329
+ this.cancel_actions = props.cancel_actions;
330
+ this.direction = props.direction;
331
+ this.duration = props.duration;
332
+ this.end_actions = props.end_actions;
333
+ this.end_value = props.end_value;
334
+ this.id = props.id;
335
+ this.interpolator = props.interpolator;
336
+ this.repeat_count = props.repeat_count;
337
+ this.start_delay = props.start_delay;
338
+ this.start_value = props.start_value;
339
+ this.variable_name = props.variable_name;
340
+ }
341
+ }
342
+
257
343
  // Generated code. Do not modify.
258
344
  /**
259
345
  * Container. It contains other elements and is responsible for their location. It is used to
@@ -270,6 +356,7 @@ class DivContainer {
270
356
  this.alignment_horizontal = props === null || props === void 0 ? void 0 : props.alignment_horizontal;
271
357
  this.alignment_vertical = props === null || props === void 0 ? void 0 : props.alignment_vertical;
272
358
  this.alpha = props === null || props === void 0 ? void 0 : props.alpha;
359
+ this.animators = props === null || props === void 0 ? void 0 : props.animators;
273
360
  this.aspect = props === null || props === void 0 ? void 0 : props.aspect;
274
361
  this.background = props === null || props === void 0 ? void 0 : props.background;
275
362
  this.border = props === null || props === void 0 ? void 0 : props.border;
@@ -335,6 +422,7 @@ class DivCustom {
335
422
  this.alignment_horizontal = props.alignment_horizontal;
336
423
  this.alignment_vertical = props.alignment_vertical;
337
424
  this.alpha = props.alpha;
425
+ this.animators = props.animators;
338
426
  this.background = props.background;
339
427
  this.border = props.border;
340
428
  this.column_span = props.column_span;
@@ -450,6 +538,7 @@ class DivGallery {
450
538
  this.alignment_horizontal = props === null || props === void 0 ? void 0 : props.alignment_horizontal;
451
539
  this.alignment_vertical = props === null || props === void 0 ? void 0 : props.alignment_vertical;
452
540
  this.alpha = props === null || props === void 0 ? void 0 : props.alpha;
541
+ this.animators = props === null || props === void 0 ? void 0 : props.animators;
453
542
  this.background = props === null || props === void 0 ? void 0 : props.background;
454
543
  this.border = props === null || props === void 0 ? void 0 : props.border;
455
544
  this.column_count = props === null || props === void 0 ? void 0 : props.column_count;
@@ -504,6 +593,7 @@ class DivGifImage {
504
593
  this.alignment_horizontal = props.alignment_horizontal;
505
594
  this.alignment_vertical = props.alignment_vertical;
506
595
  this.alpha = props.alpha;
596
+ this.animators = props.animators;
507
597
  this.aspect = props.aspect;
508
598
  this.background = props.background;
509
599
  this.border = props.border;
@@ -557,6 +647,7 @@ class DivGrid {
557
647
  this.alignment_horizontal = props.alignment_horizontal;
558
648
  this.alignment_vertical = props.alignment_vertical;
559
649
  this.alpha = props.alpha;
650
+ this.animators = props.animators;
560
651
  this.background = props.background;
561
652
  this.border = props.border;
562
653
  this.column_count = props.column_count;
@@ -606,6 +697,7 @@ class DivImage {
606
697
  this.alignment_horizontal = props.alignment_horizontal;
607
698
  this.alignment_vertical = props.alignment_vertical;
608
699
  this.alpha = props.alpha;
700
+ this.animators = props.animators;
609
701
  this.appearance_animation = props.appearance_animation;
610
702
  this.aspect = props.aspect;
611
703
  this.background = props.background;
@@ -682,6 +774,7 @@ class DivIndicator {
682
774
  this.alignment_vertical = props === null || props === void 0 ? void 0 : props.alignment_vertical;
683
775
  this.alpha = props === null || props === void 0 ? void 0 : props.alpha;
684
776
  this.animation = props === null || props === void 0 ? void 0 : props.animation;
777
+ this.animators = props === null || props === void 0 ? void 0 : props.animators;
685
778
  this.background = props === null || props === void 0 ? void 0 : props.background;
686
779
  this.border = props === null || props === void 0 ? void 0 : props.border;
687
780
  this.column_span = props === null || props === void 0 ? void 0 : props.column_span;
@@ -740,6 +833,7 @@ class DivInput {
740
833
  this.alignment_horizontal = props.alignment_horizontal;
741
834
  this.alignment_vertical = props.alignment_vertical;
742
835
  this.alpha = props.alpha;
836
+ this.animators = props.animators;
743
837
  this.autocapitalization = props.autocapitalization;
744
838
  this.background = props.background;
745
839
  this.border = props.border;
@@ -889,6 +983,27 @@ class DivNinePatchBackground {
889
983
  }
890
984
  }
891
985
 
986
+ // Generated code. Do not modify.
987
+ /**
988
+ * Number animator.
989
+ */
990
+ class DivNumberAnimator {
991
+ constructor(props) {
992
+ this.type = 'number_animator';
993
+ this.cancel_actions = props.cancel_actions;
994
+ this.direction = props.direction;
995
+ this.duration = props.duration;
996
+ this.end_actions = props.end_actions;
997
+ this.end_value = props.end_value;
998
+ this.id = props.id;
999
+ this.interpolator = props.interpolator;
1000
+ this.repeat_count = props.repeat_count;
1001
+ this.start_delay = props.start_delay;
1002
+ this.start_value = props.start_value;
1003
+ this.variable_name = props.variable_name;
1004
+ }
1005
+ }
1006
+
892
1007
  // Generated code. Do not modify.
893
1008
  /**
894
1009
  * Page width (%).
@@ -943,6 +1058,7 @@ class DivPager {
943
1058
  this.alignment_horizontal = props.alignment_horizontal;
944
1059
  this.alignment_vertical = props.alignment_vertical;
945
1060
  this.alpha = props.alpha;
1061
+ this.animators = props.animators;
946
1062
  this.background = props.background;
947
1063
  this.border = props.border;
948
1064
  this.column_span = props.column_span;
@@ -1116,6 +1232,7 @@ class DivSelect {
1116
1232
  this.alignment_horizontal = props.alignment_horizontal;
1117
1233
  this.alignment_vertical = props.alignment_vertical;
1118
1234
  this.alpha = props.alpha;
1235
+ this.animators = props.animators;
1119
1236
  this.background = props.background;
1120
1237
  this.border = props.border;
1121
1238
  this.column_span = props.column_span;
@@ -1171,6 +1288,7 @@ class DivSeparator {
1171
1288
  this.alignment_horizontal = props === null || props === void 0 ? void 0 : props.alignment_horizontal;
1172
1289
  this.alignment_vertical = props === null || props === void 0 ? void 0 : props.alignment_vertical;
1173
1290
  this.alpha = props === null || props === void 0 ? void 0 : props.alpha;
1291
+ this.animators = props === null || props === void 0 ? void 0 : props.animators;
1174
1292
  this.background = props === null || props === void 0 ? void 0 : props.background;
1175
1293
  this.border = props === null || props === void 0 ? void 0 : props.border;
1176
1294
  this.column_span = props === null || props === void 0 ? void 0 : props.column_span;
@@ -1242,6 +1360,7 @@ class DivSlider {
1242
1360
  this.alignment_horizontal = props.alignment_horizontal;
1243
1361
  this.alignment_vertical = props.alignment_vertical;
1244
1362
  this.alpha = props.alpha;
1363
+ this.animators = props.animators;
1245
1364
  this.background = props.background;
1246
1365
  this.border = props.border;
1247
1366
  this.column_span = props.column_span;
@@ -1307,6 +1426,7 @@ class DivState {
1307
1426
  this.alignment_horizontal = props.alignment_horizontal;
1308
1427
  this.alignment_vertical = props.alignment_vertical;
1309
1428
  this.alpha = props.alpha;
1429
+ this.animators = props.animators;
1310
1430
  this.background = props.background;
1311
1431
  this.border = props.border;
1312
1432
  this.column_span = props.column_span;
@@ -1365,6 +1485,7 @@ class DivTabs {
1365
1485
  this.alignment_horizontal = props.alignment_horizontal;
1366
1486
  this.alignment_vertical = props.alignment_vertical;
1367
1487
  this.alpha = props.alpha;
1488
+ this.animators = props.animators;
1368
1489
  this.background = props.background;
1369
1490
  this.border = props.border;
1370
1491
  this.column_span = props.column_span;
@@ -1419,6 +1540,7 @@ class DivText {
1419
1540
  this.alignment_horizontal = props.alignment_horizontal;
1420
1541
  this.alignment_vertical = props.alignment_vertical;
1421
1542
  this.alpha = props.alpha;
1543
+ this.animators = props.animators;
1422
1544
  this.auto_ellipsize = props.auto_ellipsize;
1423
1545
  this.background = props.background;
1424
1546
  this.border = props.border;
@@ -1486,6 +1608,7 @@ class DivVideo {
1486
1608
  this.alignment_horizontal = props.alignment_horizontal;
1487
1609
  this.alignment_vertical = props.alignment_vertical;
1488
1610
  this.alpha = props.alpha;
1611
+ this.animators = props.animators;
1489
1612
  this.aspect = props.aspect;
1490
1613
  this.autostart = props.autostart;
1491
1614
  this.background = props.background;
@@ -2030,6 +2153,8 @@ exports.ContentText = ContentText;
2030
2153
  exports.ContentUrl = ContentUrl;
2031
2154
  exports.DictValue = DictValue;
2032
2155
  exports.DictVariable = DictVariable;
2156
+ exports.DivActionAnimatorStart = DivActionAnimatorStart;
2157
+ exports.DivActionAnimatorStop = DivActionAnimatorStop;
2033
2158
  exports.DivActionArrayInsertValue = DivActionArrayInsertValue;
2034
2159
  exports.DivActionArrayRemoveValue = DivActionArrayRemoveValue;
2035
2160
  exports.DivActionArraySetValue = DivActionArraySetValue;
@@ -2038,11 +2163,15 @@ exports.DivActionCopyToClipboard = DivActionCopyToClipboard;
2038
2163
  exports.DivActionDictSetValue = DivActionDictSetValue;
2039
2164
  exports.DivActionFocusElement = DivActionFocusElement;
2040
2165
  exports.DivActionSetVariable = DivActionSetVariable;
2166
+ exports.DivActionShowTooltip = DivActionShowTooltip;
2167
+ exports.DivActionTimer = DivActionTimer;
2168
+ exports.DivActionVideo = DivActionVideo;
2041
2169
  exports.DivAppearanceSetTransition = DivAppearanceSetTransition;
2042
2170
  exports.DivBlur = DivBlur;
2043
2171
  exports.DivChangeBoundsTransition = DivChangeBoundsTransition;
2044
2172
  exports.DivChangeSetTransition = DivChangeSetTransition;
2045
2173
  exports.DivCircleShape = DivCircleShape;
2174
+ exports.DivColorAnimator = DivColorAnimator;
2046
2175
  exports.DivContainer = DivContainer;
2047
2176
  exports.DivCurrencyInputMask = DivCurrencyInputMask;
2048
2177
  exports.DivCustom = DivCustom;
@@ -2069,6 +2198,7 @@ exports.DivLinearGradient = DivLinearGradient;
2069
2198
  exports.DivMatchParentSize = DivMatchParentSize;
2070
2199
  exports.DivNeighbourPageSize = DivNeighbourPageSize;
2071
2200
  exports.DivNinePatchBackground = DivNinePatchBackground;
2201
+ exports.DivNumberAnimator = DivNumberAnimator;
2072
2202
  exports.DivPageSize = DivPageSize;
2073
2203
  exports.DivPageTransformationOverlap = DivPageTransformationOverlap;
2074
2204
  exports.DivPageTransformationSlide = DivPageTransformationSlide;