@divkitframework/jsonbuilder 30.15.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,11 +833,14 @@ 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;
837
+ this.autocapitalization = props.autocapitalization;
743
838
  this.background = props.background;
744
839
  this.border = props.border;
745
840
  this.column_span = props.column_span;
746
841
  this.disappear_actions = props.disappear_actions;
747
842
  this.extensions = props.extensions;
843
+ this.filters = props.filters;
748
844
  this.focus = props.focus;
749
845
  this.font_family = props.font_family;
750
846
  this.font_size = props.font_size;
@@ -791,6 +887,28 @@ class DivInput {
791
887
  }
792
888
  }
793
889
 
890
+ // Generated code. Do not modify.
891
+ /**
892
+ * [Calculated expression](../../expressions) filter.
893
+ */
894
+ class DivInputFilterExpression {
895
+ constructor(props) {
896
+ this.type = 'expression';
897
+ this.condition = props.condition;
898
+ }
899
+ }
900
+
901
+ // Generated code. Do not modify.
902
+ /**
903
+ * Regex filter.
904
+ */
905
+ class DivInputFilterRegex {
906
+ constructor(props) {
907
+ this.type = 'regex';
908
+ this.pattern = props.pattern;
909
+ }
910
+ }
911
+
794
912
  // Generated code. Do not modify.
795
913
  /**
796
914
  * [Calculated expression](../../expressions) validator.
@@ -865,6 +983,27 @@ class DivNinePatchBackground {
865
983
  }
866
984
  }
867
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
+
868
1007
  // Generated code. Do not modify.
869
1008
  /**
870
1009
  * Page width (%).
@@ -919,6 +1058,7 @@ class DivPager {
919
1058
  this.alignment_horizontal = props.alignment_horizontal;
920
1059
  this.alignment_vertical = props.alignment_vertical;
921
1060
  this.alpha = props.alpha;
1061
+ this.animators = props.animators;
922
1062
  this.background = props.background;
923
1063
  this.border = props.border;
924
1064
  this.column_span = props.column_span;
@@ -1092,6 +1232,7 @@ class DivSelect {
1092
1232
  this.alignment_horizontal = props.alignment_horizontal;
1093
1233
  this.alignment_vertical = props.alignment_vertical;
1094
1234
  this.alpha = props.alpha;
1235
+ this.animators = props.animators;
1095
1236
  this.background = props.background;
1096
1237
  this.border = props.border;
1097
1238
  this.column_span = props.column_span;
@@ -1147,6 +1288,7 @@ class DivSeparator {
1147
1288
  this.alignment_horizontal = props === null || props === void 0 ? void 0 : props.alignment_horizontal;
1148
1289
  this.alignment_vertical = props === null || props === void 0 ? void 0 : props.alignment_vertical;
1149
1290
  this.alpha = props === null || props === void 0 ? void 0 : props.alpha;
1291
+ this.animators = props === null || props === void 0 ? void 0 : props.animators;
1150
1292
  this.background = props === null || props === void 0 ? void 0 : props.background;
1151
1293
  this.border = props === null || props === void 0 ? void 0 : props.border;
1152
1294
  this.column_span = props === null || props === void 0 ? void 0 : props.column_span;
@@ -1218,6 +1360,7 @@ class DivSlider {
1218
1360
  this.alignment_horizontal = props.alignment_horizontal;
1219
1361
  this.alignment_vertical = props.alignment_vertical;
1220
1362
  this.alpha = props.alpha;
1363
+ this.animators = props.animators;
1221
1364
  this.background = props.background;
1222
1365
  this.border = props.border;
1223
1366
  this.column_span = props.column_span;
@@ -1283,6 +1426,7 @@ class DivState {
1283
1426
  this.alignment_horizontal = props.alignment_horizontal;
1284
1427
  this.alignment_vertical = props.alignment_vertical;
1285
1428
  this.alpha = props.alpha;
1429
+ this.animators = props.animators;
1286
1430
  this.background = props.background;
1287
1431
  this.border = props.border;
1288
1432
  this.column_span = props.column_span;
@@ -1341,6 +1485,7 @@ class DivTabs {
1341
1485
  this.alignment_horizontal = props.alignment_horizontal;
1342
1486
  this.alignment_vertical = props.alignment_vertical;
1343
1487
  this.alpha = props.alpha;
1488
+ this.animators = props.animators;
1344
1489
  this.background = props.background;
1345
1490
  this.border = props.border;
1346
1491
  this.column_span = props.column_span;
@@ -1395,6 +1540,7 @@ class DivText {
1395
1540
  this.alignment_horizontal = props.alignment_horizontal;
1396
1541
  this.alignment_vertical = props.alignment_vertical;
1397
1542
  this.alpha = props.alpha;
1543
+ this.animators = props.animators;
1398
1544
  this.auto_ellipsize = props.auto_ellipsize;
1399
1545
  this.background = props.background;
1400
1546
  this.border = props.border;
@@ -1462,6 +1608,7 @@ class DivVideo {
1462
1608
  this.alignment_horizontal = props.alignment_horizontal;
1463
1609
  this.alignment_vertical = props.alignment_vertical;
1464
1610
  this.alpha = props.alpha;
1611
+ this.animators = props.animators;
1465
1612
  this.aspect = props.aspect;
1466
1613
  this.autostart = props.autostart;
1467
1614
  this.background = props.background;
@@ -2006,6 +2153,8 @@ exports.ContentText = ContentText;
2006
2153
  exports.ContentUrl = ContentUrl;
2007
2154
  exports.DictValue = DictValue;
2008
2155
  exports.DictVariable = DictVariable;
2156
+ exports.DivActionAnimatorStart = DivActionAnimatorStart;
2157
+ exports.DivActionAnimatorStop = DivActionAnimatorStop;
2009
2158
  exports.DivActionArrayInsertValue = DivActionArrayInsertValue;
2010
2159
  exports.DivActionArrayRemoveValue = DivActionArrayRemoveValue;
2011
2160
  exports.DivActionArraySetValue = DivActionArraySetValue;
@@ -2014,11 +2163,15 @@ exports.DivActionCopyToClipboard = DivActionCopyToClipboard;
2014
2163
  exports.DivActionDictSetValue = DivActionDictSetValue;
2015
2164
  exports.DivActionFocusElement = DivActionFocusElement;
2016
2165
  exports.DivActionSetVariable = DivActionSetVariable;
2166
+ exports.DivActionShowTooltip = DivActionShowTooltip;
2167
+ exports.DivActionTimer = DivActionTimer;
2168
+ exports.DivActionVideo = DivActionVideo;
2017
2169
  exports.DivAppearanceSetTransition = DivAppearanceSetTransition;
2018
2170
  exports.DivBlur = DivBlur;
2019
2171
  exports.DivChangeBoundsTransition = DivChangeBoundsTransition;
2020
2172
  exports.DivChangeSetTransition = DivChangeSetTransition;
2021
2173
  exports.DivCircleShape = DivCircleShape;
2174
+ exports.DivColorAnimator = DivColorAnimator;
2022
2175
  exports.DivContainer = DivContainer;
2023
2176
  exports.DivCurrencyInputMask = DivCurrencyInputMask;
2024
2177
  exports.DivCustom = DivCustom;
@@ -2037,12 +2190,15 @@ exports.DivImageBackground = DivImageBackground;
2037
2190
  exports.DivIndicator = DivIndicator;
2038
2191
  exports.DivInfinityCount = DivInfinityCount;
2039
2192
  exports.DivInput = DivInput;
2193
+ exports.DivInputFilterExpression = DivInputFilterExpression;
2194
+ exports.DivInputFilterRegex = DivInputFilterRegex;
2040
2195
  exports.DivInputValidatorExpression = DivInputValidatorExpression;
2041
2196
  exports.DivInputValidatorRegex = DivInputValidatorRegex;
2042
2197
  exports.DivLinearGradient = DivLinearGradient;
2043
2198
  exports.DivMatchParentSize = DivMatchParentSize;
2044
2199
  exports.DivNeighbourPageSize = DivNeighbourPageSize;
2045
2200
  exports.DivNinePatchBackground = DivNinePatchBackground;
2201
+ exports.DivNumberAnimator = DivNumberAnimator;
2046
2202
  exports.DivPageSize = DivPageSize;
2047
2203
  exports.DivPageTransformationOverlap = DivPageTransformationOverlap;
2048
2204
  exports.DivPageTransformationSlide = DivPageTransformationSlide;