@divkitframework/jsonbuilder 30.16.0 → 30.18.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
@@ -183,6 +212,29 @@ class DivActionFocusElement {
183
212
  }
184
213
  }
185
214
 
215
+ // Generated code. Do not modify.
216
+ /**
217
+ * Hides tooltip.
218
+ */
219
+ class DivActionHideTooltip {
220
+ constructor(props) {
221
+ this.type = 'hide_tooltip';
222
+ this.id = props.id;
223
+ }
224
+ }
225
+
226
+ // Generated code. Do not modify.
227
+ /**
228
+ * Switches the appearance of content in `div-state`.
229
+ */
230
+ class DivActionSetState {
231
+ constructor(props) {
232
+ this.type = 'set_state';
233
+ this.state_id = props.state_id;
234
+ this.temporary = props.temporary;
235
+ }
236
+ }
237
+
186
238
  // Generated code. Do not modify.
187
239
  /**
188
240
  * Assigns a value to the variable
@@ -195,6 +247,42 @@ class DivActionSetVariable {
195
247
  }
196
248
  }
197
249
 
250
+ // Generated code. Do not modify.
251
+ /**
252
+ * Shows tooltip.
253
+ */
254
+ class DivActionShowTooltip {
255
+ constructor(props) {
256
+ this.type = 'show_tooltip';
257
+ this.id = props.id;
258
+ this.multiple = props.multiple;
259
+ }
260
+ }
261
+
262
+ // Generated code. Do not modify.
263
+ /**
264
+ * Controls the timer.
265
+ */
266
+ class DivActionTimer {
267
+ constructor(props) {
268
+ this.type = 'timer';
269
+ this.action = props.action;
270
+ this.id = props.id;
271
+ }
272
+ }
273
+
274
+ // Generated code. Do not modify.
275
+ /**
276
+ * Controls given video.
277
+ */
278
+ class DivActionVideo {
279
+ constructor(props) {
280
+ this.type = 'video';
281
+ this.action = props.action;
282
+ this.id = props.id;
283
+ }
284
+ }
285
+
198
286
  // Generated code. Do not modify.
199
287
  /**
200
288
  * A set of animations to be applied simultaneously.
@@ -254,6 +342,27 @@ class DivCircleShape {
254
342
  }
255
343
  }
256
344
 
345
+ // Generated code. Do not modify.
346
+ /**
347
+ * Color animator.
348
+ */
349
+ class DivColorAnimator {
350
+ constructor(props) {
351
+ this.type = 'color_animator';
352
+ this.cancel_actions = props.cancel_actions;
353
+ this.direction = props.direction;
354
+ this.duration = props.duration;
355
+ this.end_actions = props.end_actions;
356
+ this.end_value = props.end_value;
357
+ this.id = props.id;
358
+ this.interpolator = props.interpolator;
359
+ this.repeat_count = props.repeat_count;
360
+ this.start_delay = props.start_delay;
361
+ this.start_value = props.start_value;
362
+ this.variable_name = props.variable_name;
363
+ }
364
+ }
365
+
257
366
  // Generated code. Do not modify.
258
367
  /**
259
368
  * Container. It contains other elements and is responsible for their location. It is used to
@@ -270,6 +379,7 @@ class DivContainer {
270
379
  this.alignment_horizontal = props === null || props === void 0 ? void 0 : props.alignment_horizontal;
271
380
  this.alignment_vertical = props === null || props === void 0 ? void 0 : props.alignment_vertical;
272
381
  this.alpha = props === null || props === void 0 ? void 0 : props.alpha;
382
+ this.animators = props === null || props === void 0 ? void 0 : props.animators;
273
383
  this.aspect = props === null || props === void 0 ? void 0 : props.aspect;
274
384
  this.background = props === null || props === void 0 ? void 0 : props.background;
275
385
  this.border = props === null || props === void 0 ? void 0 : props.border;
@@ -281,6 +391,7 @@ class DivContainer {
281
391
  this.doubletap_actions = props === null || props === void 0 ? void 0 : props.doubletap_actions;
282
392
  this.extensions = props === null || props === void 0 ? void 0 : props.extensions;
283
393
  this.focus = props === null || props === void 0 ? void 0 : props.focus;
394
+ this.functions = props === null || props === void 0 ? void 0 : props.functions;
284
395
  this.height = props === null || props === void 0 ? void 0 : props.height;
285
396
  this.id = props === null || props === void 0 ? void 0 : props.id;
286
397
  this.item_builder = props === null || props === void 0 ? void 0 : props.item_builder;
@@ -335,6 +446,7 @@ class DivCustom {
335
446
  this.alignment_horizontal = props.alignment_horizontal;
336
447
  this.alignment_vertical = props.alignment_vertical;
337
448
  this.alpha = props.alpha;
449
+ this.animators = props.animators;
338
450
  this.background = props.background;
339
451
  this.border = props.border;
340
452
  this.column_span = props.column_span;
@@ -343,6 +455,7 @@ class DivCustom {
343
455
  this.disappear_actions = props.disappear_actions;
344
456
  this.extensions = props.extensions;
345
457
  this.focus = props.focus;
458
+ this.functions = props.functions;
346
459
  this.height = props.height;
347
460
  this.id = props.id;
348
461
  this.items = props.items;
@@ -450,6 +563,7 @@ class DivGallery {
450
563
  this.alignment_horizontal = props === null || props === void 0 ? void 0 : props.alignment_horizontal;
451
564
  this.alignment_vertical = props === null || props === void 0 ? void 0 : props.alignment_vertical;
452
565
  this.alpha = props === null || props === void 0 ? void 0 : props.alpha;
566
+ this.animators = props === null || props === void 0 ? void 0 : props.animators;
453
567
  this.background = props === null || props === void 0 ? void 0 : props.background;
454
568
  this.border = props === null || props === void 0 ? void 0 : props.border;
455
569
  this.column_count = props === null || props === void 0 ? void 0 : props.column_count;
@@ -460,6 +574,7 @@ class DivGallery {
460
574
  this.disappear_actions = props === null || props === void 0 ? void 0 : props.disappear_actions;
461
575
  this.extensions = props === null || props === void 0 ? void 0 : props.extensions;
462
576
  this.focus = props === null || props === void 0 ? void 0 : props.focus;
577
+ this.functions = props === null || props === void 0 ? void 0 : props.functions;
463
578
  this.height = props === null || props === void 0 ? void 0 : props.height;
464
579
  this.id = props === null || props === void 0 ? void 0 : props.id;
465
580
  this.item_builder = props === null || props === void 0 ? void 0 : props.item_builder;
@@ -504,6 +619,7 @@ class DivGifImage {
504
619
  this.alignment_horizontal = props.alignment_horizontal;
505
620
  this.alignment_vertical = props.alignment_vertical;
506
621
  this.alpha = props.alpha;
622
+ this.animators = props.animators;
507
623
  this.aspect = props.aspect;
508
624
  this.background = props.background;
509
625
  this.border = props.border;
@@ -514,6 +630,7 @@ class DivGifImage {
514
630
  this.doubletap_actions = props.doubletap_actions;
515
631
  this.extensions = props.extensions;
516
632
  this.focus = props.focus;
633
+ this.functions = props.functions;
517
634
  this.gif_url = props.gif_url;
518
635
  this.height = props.height;
519
636
  this.id = props.id;
@@ -557,6 +674,7 @@ class DivGrid {
557
674
  this.alignment_horizontal = props.alignment_horizontal;
558
675
  this.alignment_vertical = props.alignment_vertical;
559
676
  this.alpha = props.alpha;
677
+ this.animators = props.animators;
560
678
  this.background = props.background;
561
679
  this.border = props.border;
562
680
  this.column_count = props.column_count;
@@ -567,6 +685,7 @@ class DivGrid {
567
685
  this.doubletap_actions = props.doubletap_actions;
568
686
  this.extensions = props.extensions;
569
687
  this.focus = props.focus;
688
+ this.functions = props.functions;
570
689
  this.height = props.height;
571
690
  this.id = props.id;
572
691
  this.items = props.items;
@@ -606,6 +725,7 @@ class DivImage {
606
725
  this.alignment_horizontal = props.alignment_horizontal;
607
726
  this.alignment_vertical = props.alignment_vertical;
608
727
  this.alpha = props.alpha;
728
+ this.animators = props.animators;
609
729
  this.appearance_animation = props.appearance_animation;
610
730
  this.aspect = props.aspect;
611
731
  this.background = props.background;
@@ -618,6 +738,7 @@ class DivImage {
618
738
  this.extensions = props.extensions;
619
739
  this.filters = props.filters;
620
740
  this.focus = props.focus;
741
+ this.functions = props.functions;
621
742
  this.height = props.height;
622
743
  this.high_priority_preview_show = props.high_priority_preview_show;
623
744
  this.id = props.id;
@@ -682,12 +803,14 @@ class DivIndicator {
682
803
  this.alignment_vertical = props === null || props === void 0 ? void 0 : props.alignment_vertical;
683
804
  this.alpha = props === null || props === void 0 ? void 0 : props.alpha;
684
805
  this.animation = props === null || props === void 0 ? void 0 : props.animation;
806
+ this.animators = props === null || props === void 0 ? void 0 : props.animators;
685
807
  this.background = props === null || props === void 0 ? void 0 : props.background;
686
808
  this.border = props === null || props === void 0 ? void 0 : props.border;
687
809
  this.column_span = props === null || props === void 0 ? void 0 : props.column_span;
688
810
  this.disappear_actions = props === null || props === void 0 ? void 0 : props.disappear_actions;
689
811
  this.extensions = props === null || props === void 0 ? void 0 : props.extensions;
690
812
  this.focus = props === null || props === void 0 ? void 0 : props.focus;
813
+ this.functions = props === null || props === void 0 ? void 0 : props.functions;
691
814
  this.height = props === null || props === void 0 ? void 0 : props.height;
692
815
  this.id = props === null || props === void 0 ? void 0 : props.id;
693
816
  this.inactive_item_color = props === null || props === void 0 ? void 0 : props.inactive_item_color;
@@ -740,6 +863,7 @@ class DivInput {
740
863
  this.alignment_horizontal = props.alignment_horizontal;
741
864
  this.alignment_vertical = props.alignment_vertical;
742
865
  this.alpha = props.alpha;
866
+ this.animators = props.animators;
743
867
  this.autocapitalization = props.autocapitalization;
744
868
  this.background = props.background;
745
869
  this.border = props.border;
@@ -753,6 +877,7 @@ class DivInput {
753
877
  this.font_size_unit = props.font_size_unit;
754
878
  this.font_weight = props.font_weight;
755
879
  this.font_weight_value = props.font_weight_value;
880
+ this.functions = props.functions;
756
881
  this.height = props.height;
757
882
  this.highlight_color = props.highlight_color;
758
883
  this.hint_color = props.hint_color;
@@ -889,6 +1014,27 @@ class DivNinePatchBackground {
889
1014
  }
890
1015
  }
891
1016
 
1017
+ // Generated code. Do not modify.
1018
+ /**
1019
+ * Number animator.
1020
+ */
1021
+ class DivNumberAnimator {
1022
+ constructor(props) {
1023
+ this.type = 'number_animator';
1024
+ this.cancel_actions = props.cancel_actions;
1025
+ this.direction = props.direction;
1026
+ this.duration = props.duration;
1027
+ this.end_actions = props.end_actions;
1028
+ this.end_value = props.end_value;
1029
+ this.id = props.id;
1030
+ this.interpolator = props.interpolator;
1031
+ this.repeat_count = props.repeat_count;
1032
+ this.start_delay = props.start_delay;
1033
+ this.start_value = props.start_value;
1034
+ this.variable_name = props.variable_name;
1035
+ }
1036
+ }
1037
+
892
1038
  // Generated code. Do not modify.
893
1039
  /**
894
1040
  * Page width (%).
@@ -943,6 +1089,7 @@ class DivPager {
943
1089
  this.alignment_horizontal = props.alignment_horizontal;
944
1090
  this.alignment_vertical = props.alignment_vertical;
945
1091
  this.alpha = props.alpha;
1092
+ this.animators = props.animators;
946
1093
  this.background = props.background;
947
1094
  this.border = props.border;
948
1095
  this.column_span = props.column_span;
@@ -950,6 +1097,7 @@ class DivPager {
950
1097
  this.disappear_actions = props.disappear_actions;
951
1098
  this.extensions = props.extensions;
952
1099
  this.focus = props.focus;
1100
+ this.functions = props.functions;
953
1101
  this.height = props.height;
954
1102
  this.id = props.id;
955
1103
  this.infinite_scroll = props.infinite_scroll;
@@ -1116,6 +1264,7 @@ class DivSelect {
1116
1264
  this.alignment_horizontal = props.alignment_horizontal;
1117
1265
  this.alignment_vertical = props.alignment_vertical;
1118
1266
  this.alpha = props.alpha;
1267
+ this.animators = props.animators;
1119
1268
  this.background = props.background;
1120
1269
  this.border = props.border;
1121
1270
  this.column_span = props.column_span;
@@ -1127,6 +1276,7 @@ class DivSelect {
1127
1276
  this.font_size_unit = props.font_size_unit;
1128
1277
  this.font_weight = props.font_weight;
1129
1278
  this.font_weight_value = props.font_weight_value;
1279
+ this.functions = props.functions;
1130
1280
  this.height = props.height;
1131
1281
  this.hint_color = props.hint_color;
1132
1282
  this.hint_text = props.hint_text;
@@ -1171,6 +1321,7 @@ class DivSeparator {
1171
1321
  this.alignment_horizontal = props === null || props === void 0 ? void 0 : props.alignment_horizontal;
1172
1322
  this.alignment_vertical = props === null || props === void 0 ? void 0 : props.alignment_vertical;
1173
1323
  this.alpha = props === null || props === void 0 ? void 0 : props.alpha;
1324
+ this.animators = props === null || props === void 0 ? void 0 : props.animators;
1174
1325
  this.background = props === null || props === void 0 ? void 0 : props.background;
1175
1326
  this.border = props === null || props === void 0 ? void 0 : props.border;
1176
1327
  this.column_span = props === null || props === void 0 ? void 0 : props.column_span;
@@ -1179,6 +1330,7 @@ class DivSeparator {
1179
1330
  this.doubletap_actions = props === null || props === void 0 ? void 0 : props.doubletap_actions;
1180
1331
  this.extensions = props === null || props === void 0 ? void 0 : props.extensions;
1181
1332
  this.focus = props === null || props === void 0 ? void 0 : props.focus;
1333
+ this.functions = props === null || props === void 0 ? void 0 : props.functions;
1182
1334
  this.height = props === null || props === void 0 ? void 0 : props.height;
1183
1335
  this.id = props === null || props === void 0 ? void 0 : props.id;
1184
1336
  this.layout_provider = props === null || props === void 0 ? void 0 : props.layout_provider;
@@ -1242,12 +1394,14 @@ class DivSlider {
1242
1394
  this.alignment_horizontal = props.alignment_horizontal;
1243
1395
  this.alignment_vertical = props.alignment_vertical;
1244
1396
  this.alpha = props.alpha;
1397
+ this.animators = props.animators;
1245
1398
  this.background = props.background;
1246
1399
  this.border = props.border;
1247
1400
  this.column_span = props.column_span;
1248
1401
  this.disappear_actions = props.disappear_actions;
1249
1402
  this.extensions = props.extensions;
1250
1403
  this.focus = props.focus;
1404
+ this.functions = props.functions;
1251
1405
  this.height = props.height;
1252
1406
  this.id = props.id;
1253
1407
  this.layout_provider = props.layout_provider;
@@ -1307,6 +1461,7 @@ class DivState {
1307
1461
  this.alignment_horizontal = props.alignment_horizontal;
1308
1462
  this.alignment_vertical = props.alignment_vertical;
1309
1463
  this.alpha = props.alpha;
1464
+ this.animators = props.animators;
1310
1465
  this.background = props.background;
1311
1466
  this.border = props.border;
1312
1467
  this.column_span = props.column_span;
@@ -1315,6 +1470,7 @@ class DivState {
1315
1470
  this.div_id = props.div_id;
1316
1471
  this.extensions = props.extensions;
1317
1472
  this.focus = props.focus;
1473
+ this.functions = props.functions;
1318
1474
  this.height = props.height;
1319
1475
  this.id = props.id;
1320
1476
  this.layout_provider = props.layout_provider;
@@ -1365,6 +1521,7 @@ class DivTabs {
1365
1521
  this.alignment_horizontal = props.alignment_horizontal;
1366
1522
  this.alignment_vertical = props.alignment_vertical;
1367
1523
  this.alpha = props.alpha;
1524
+ this.animators = props.animators;
1368
1525
  this.background = props.background;
1369
1526
  this.border = props.border;
1370
1527
  this.column_span = props.column_span;
@@ -1372,6 +1529,7 @@ class DivTabs {
1372
1529
  this.dynamic_height = props.dynamic_height;
1373
1530
  this.extensions = props.extensions;
1374
1531
  this.focus = props.focus;
1532
+ this.functions = props.functions;
1375
1533
  this.has_separator = props.has_separator;
1376
1534
  this.height = props.height;
1377
1535
  this.id = props.id;
@@ -1419,6 +1577,7 @@ class DivText {
1419
1577
  this.alignment_horizontal = props.alignment_horizontal;
1420
1578
  this.alignment_vertical = props.alignment_vertical;
1421
1579
  this.alpha = props.alpha;
1580
+ this.animators = props.animators;
1422
1581
  this.auto_ellipsize = props.auto_ellipsize;
1423
1582
  this.background = props.background;
1424
1583
  this.border = props.border;
@@ -1435,6 +1594,7 @@ class DivText {
1435
1594
  this.font_size_unit = props.font_size_unit;
1436
1595
  this.font_weight = props.font_weight;
1437
1596
  this.font_weight_value = props.font_weight_value;
1597
+ this.functions = props.functions;
1438
1598
  this.height = props.height;
1439
1599
  this.id = props.id;
1440
1600
  this.images = props.images;
@@ -1486,6 +1646,7 @@ class DivVideo {
1486
1646
  this.alignment_horizontal = props.alignment_horizontal;
1487
1647
  this.alignment_vertical = props.alignment_vertical;
1488
1648
  this.alpha = props.alpha;
1649
+ this.animators = props.animators;
1489
1650
  this.aspect = props.aspect;
1490
1651
  this.autostart = props.autostart;
1491
1652
  this.background = props.background;
@@ -1498,6 +1659,7 @@ class DivVideo {
1498
1659
  this.extensions = props.extensions;
1499
1660
  this.fatal_actions = props.fatal_actions;
1500
1661
  this.focus = props.focus;
1662
+ this.functions = props.functions;
1501
1663
  this.height = props.height;
1502
1664
  this.id = props.id;
1503
1665
  this.layout_provider = props.layout_provider;
@@ -2030,6 +2192,8 @@ exports.ContentText = ContentText;
2030
2192
  exports.ContentUrl = ContentUrl;
2031
2193
  exports.DictValue = DictValue;
2032
2194
  exports.DictVariable = DictVariable;
2195
+ exports.DivActionAnimatorStart = DivActionAnimatorStart;
2196
+ exports.DivActionAnimatorStop = DivActionAnimatorStop;
2033
2197
  exports.DivActionArrayInsertValue = DivActionArrayInsertValue;
2034
2198
  exports.DivActionArrayRemoveValue = DivActionArrayRemoveValue;
2035
2199
  exports.DivActionArraySetValue = DivActionArraySetValue;
@@ -2037,12 +2201,18 @@ exports.DivActionClearFocus = DivActionClearFocus;
2037
2201
  exports.DivActionCopyToClipboard = DivActionCopyToClipboard;
2038
2202
  exports.DivActionDictSetValue = DivActionDictSetValue;
2039
2203
  exports.DivActionFocusElement = DivActionFocusElement;
2204
+ exports.DivActionHideTooltip = DivActionHideTooltip;
2205
+ exports.DivActionSetState = DivActionSetState;
2040
2206
  exports.DivActionSetVariable = DivActionSetVariable;
2207
+ exports.DivActionShowTooltip = DivActionShowTooltip;
2208
+ exports.DivActionTimer = DivActionTimer;
2209
+ exports.DivActionVideo = DivActionVideo;
2041
2210
  exports.DivAppearanceSetTransition = DivAppearanceSetTransition;
2042
2211
  exports.DivBlur = DivBlur;
2043
2212
  exports.DivChangeBoundsTransition = DivChangeBoundsTransition;
2044
2213
  exports.DivChangeSetTransition = DivChangeSetTransition;
2045
2214
  exports.DivCircleShape = DivCircleShape;
2215
+ exports.DivColorAnimator = DivColorAnimator;
2046
2216
  exports.DivContainer = DivContainer;
2047
2217
  exports.DivCurrencyInputMask = DivCurrencyInputMask;
2048
2218
  exports.DivCustom = DivCustom;
@@ -2069,6 +2239,7 @@ exports.DivLinearGradient = DivLinearGradient;
2069
2239
  exports.DivMatchParentSize = DivMatchParentSize;
2070
2240
  exports.DivNeighbourPageSize = DivNeighbourPageSize;
2071
2241
  exports.DivNinePatchBackground = DivNinePatchBackground;
2242
+ exports.DivNumberAnimator = DivNumberAnimator;
2072
2243
  exports.DivPageSize = DivPageSize;
2073
2244
  exports.DivPageTransformationOverlap = DivPageTransformationOverlap;
2074
2245
  exports.DivPageTransformationSlide = DivPageTransformationSlide;