@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.
- package/dist/es/jsonbuilder.js +124 -1
- package/dist/es/jsonbuilder.js.map +1 -1
- package/dist/jsonbuilder.d.ts +577 -2
- package/dist/jsonbuilder.js +130 -0
- package/dist/jsonbuilder.js.map +1 -1
- package/package.json +1 -1
package/dist/es/jsonbuilder.js
CHANGED
|
@@ -96,6 +96,35 @@ class DictVariable {
|
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
98
|
|
|
99
|
+
// Generated code. Do not modify.
|
|
100
|
+
/**
|
|
101
|
+
* Starts specified animator
|
|
102
|
+
*/
|
|
103
|
+
class DivActionAnimatorStart {
|
|
104
|
+
constructor(props) {
|
|
105
|
+
this.type = 'animator_start';
|
|
106
|
+
this.animator_id = props.animator_id;
|
|
107
|
+
this.direction = props.direction;
|
|
108
|
+
this.duration = props.duration;
|
|
109
|
+
this.end_value = props.end_value;
|
|
110
|
+
this.interpolator = props.interpolator;
|
|
111
|
+
this.repeat_count = props.repeat_count;
|
|
112
|
+
this.start_delay = props.start_delay;
|
|
113
|
+
this.start_value = props.start_value;
|
|
114
|
+
}
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
// Generated code. Do not modify.
|
|
118
|
+
/**
|
|
119
|
+
* Stops specified animator
|
|
120
|
+
*/
|
|
121
|
+
class DivActionAnimatorStop {
|
|
122
|
+
constructor(props) {
|
|
123
|
+
this.type = 'animator_stop';
|
|
124
|
+
this.animator_id = props.animator_id;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
|
|
99
128
|
// Generated code. Do not modify.
|
|
100
129
|
/**
|
|
101
130
|
* Adds a value to the array
|
|
@@ -191,6 +220,42 @@ class DivActionSetVariable {
|
|
|
191
220
|
}
|
|
192
221
|
}
|
|
193
222
|
|
|
223
|
+
// Generated code. Do not modify.
|
|
224
|
+
/**
|
|
225
|
+
* Shows tooltip.
|
|
226
|
+
*/
|
|
227
|
+
class DivActionShowTooltip {
|
|
228
|
+
constructor(props) {
|
|
229
|
+
this.type = 'show_tooltip';
|
|
230
|
+
this.id = props.id;
|
|
231
|
+
this.multiple = props.multiple;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
// Generated code. Do not modify.
|
|
236
|
+
/**
|
|
237
|
+
* Controls the timer.
|
|
238
|
+
*/
|
|
239
|
+
class DivActionTimer {
|
|
240
|
+
constructor(props) {
|
|
241
|
+
this.type = 'timer';
|
|
242
|
+
this.action = props.action;
|
|
243
|
+
this.id = props.id;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
// Generated code. Do not modify.
|
|
248
|
+
/**
|
|
249
|
+
* Controls given video.
|
|
250
|
+
*/
|
|
251
|
+
class DivActionVideo {
|
|
252
|
+
constructor(props) {
|
|
253
|
+
this.type = 'video';
|
|
254
|
+
this.action = props.action;
|
|
255
|
+
this.id = props.id;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
|
|
194
259
|
// Generated code. Do not modify.
|
|
195
260
|
/**
|
|
196
261
|
* A set of animations to be applied simultaneously.
|
|
@@ -250,6 +315,27 @@ class DivCircleShape {
|
|
|
250
315
|
}
|
|
251
316
|
}
|
|
252
317
|
|
|
318
|
+
// Generated code. Do not modify.
|
|
319
|
+
/**
|
|
320
|
+
* Color animator.
|
|
321
|
+
*/
|
|
322
|
+
class DivColorAnimator {
|
|
323
|
+
constructor(props) {
|
|
324
|
+
this.type = 'color_animator';
|
|
325
|
+
this.cancel_actions = props.cancel_actions;
|
|
326
|
+
this.direction = props.direction;
|
|
327
|
+
this.duration = props.duration;
|
|
328
|
+
this.end_actions = props.end_actions;
|
|
329
|
+
this.end_value = props.end_value;
|
|
330
|
+
this.id = props.id;
|
|
331
|
+
this.interpolator = props.interpolator;
|
|
332
|
+
this.repeat_count = props.repeat_count;
|
|
333
|
+
this.start_delay = props.start_delay;
|
|
334
|
+
this.start_value = props.start_value;
|
|
335
|
+
this.variable_name = props.variable_name;
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
|
|
253
339
|
// Generated code. Do not modify.
|
|
254
340
|
/**
|
|
255
341
|
* Container. It contains other elements and is responsible for their location. It is used to
|
|
@@ -266,6 +352,7 @@ class DivContainer {
|
|
|
266
352
|
this.alignment_horizontal = props === null || props === void 0 ? void 0 : props.alignment_horizontal;
|
|
267
353
|
this.alignment_vertical = props === null || props === void 0 ? void 0 : props.alignment_vertical;
|
|
268
354
|
this.alpha = props === null || props === void 0 ? void 0 : props.alpha;
|
|
355
|
+
this.animators = props === null || props === void 0 ? void 0 : props.animators;
|
|
269
356
|
this.aspect = props === null || props === void 0 ? void 0 : props.aspect;
|
|
270
357
|
this.background = props === null || props === void 0 ? void 0 : props.background;
|
|
271
358
|
this.border = props === null || props === void 0 ? void 0 : props.border;
|
|
@@ -331,6 +418,7 @@ class DivCustom {
|
|
|
331
418
|
this.alignment_horizontal = props.alignment_horizontal;
|
|
332
419
|
this.alignment_vertical = props.alignment_vertical;
|
|
333
420
|
this.alpha = props.alpha;
|
|
421
|
+
this.animators = props.animators;
|
|
334
422
|
this.background = props.background;
|
|
335
423
|
this.border = props.border;
|
|
336
424
|
this.column_span = props.column_span;
|
|
@@ -446,6 +534,7 @@ class DivGallery {
|
|
|
446
534
|
this.alignment_horizontal = props === null || props === void 0 ? void 0 : props.alignment_horizontal;
|
|
447
535
|
this.alignment_vertical = props === null || props === void 0 ? void 0 : props.alignment_vertical;
|
|
448
536
|
this.alpha = props === null || props === void 0 ? void 0 : props.alpha;
|
|
537
|
+
this.animators = props === null || props === void 0 ? void 0 : props.animators;
|
|
449
538
|
this.background = props === null || props === void 0 ? void 0 : props.background;
|
|
450
539
|
this.border = props === null || props === void 0 ? void 0 : props.border;
|
|
451
540
|
this.column_count = props === null || props === void 0 ? void 0 : props.column_count;
|
|
@@ -500,6 +589,7 @@ class DivGifImage {
|
|
|
500
589
|
this.alignment_horizontal = props.alignment_horizontal;
|
|
501
590
|
this.alignment_vertical = props.alignment_vertical;
|
|
502
591
|
this.alpha = props.alpha;
|
|
592
|
+
this.animators = props.animators;
|
|
503
593
|
this.aspect = props.aspect;
|
|
504
594
|
this.background = props.background;
|
|
505
595
|
this.border = props.border;
|
|
@@ -553,6 +643,7 @@ class DivGrid {
|
|
|
553
643
|
this.alignment_horizontal = props.alignment_horizontal;
|
|
554
644
|
this.alignment_vertical = props.alignment_vertical;
|
|
555
645
|
this.alpha = props.alpha;
|
|
646
|
+
this.animators = props.animators;
|
|
556
647
|
this.background = props.background;
|
|
557
648
|
this.border = props.border;
|
|
558
649
|
this.column_count = props.column_count;
|
|
@@ -602,6 +693,7 @@ class DivImage {
|
|
|
602
693
|
this.alignment_horizontal = props.alignment_horizontal;
|
|
603
694
|
this.alignment_vertical = props.alignment_vertical;
|
|
604
695
|
this.alpha = props.alpha;
|
|
696
|
+
this.animators = props.animators;
|
|
605
697
|
this.appearance_animation = props.appearance_animation;
|
|
606
698
|
this.aspect = props.aspect;
|
|
607
699
|
this.background = props.background;
|
|
@@ -678,6 +770,7 @@ class DivIndicator {
|
|
|
678
770
|
this.alignment_vertical = props === null || props === void 0 ? void 0 : props.alignment_vertical;
|
|
679
771
|
this.alpha = props === null || props === void 0 ? void 0 : props.alpha;
|
|
680
772
|
this.animation = props === null || props === void 0 ? void 0 : props.animation;
|
|
773
|
+
this.animators = props === null || props === void 0 ? void 0 : props.animators;
|
|
681
774
|
this.background = props === null || props === void 0 ? void 0 : props.background;
|
|
682
775
|
this.border = props === null || props === void 0 ? void 0 : props.border;
|
|
683
776
|
this.column_span = props === null || props === void 0 ? void 0 : props.column_span;
|
|
@@ -736,6 +829,7 @@ class DivInput {
|
|
|
736
829
|
this.alignment_horizontal = props.alignment_horizontal;
|
|
737
830
|
this.alignment_vertical = props.alignment_vertical;
|
|
738
831
|
this.alpha = props.alpha;
|
|
832
|
+
this.animators = props.animators;
|
|
739
833
|
this.autocapitalization = props.autocapitalization;
|
|
740
834
|
this.background = props.background;
|
|
741
835
|
this.border = props.border;
|
|
@@ -885,6 +979,27 @@ class DivNinePatchBackground {
|
|
|
885
979
|
}
|
|
886
980
|
}
|
|
887
981
|
|
|
982
|
+
// Generated code. Do not modify.
|
|
983
|
+
/**
|
|
984
|
+
* Number animator.
|
|
985
|
+
*/
|
|
986
|
+
class DivNumberAnimator {
|
|
987
|
+
constructor(props) {
|
|
988
|
+
this.type = 'number_animator';
|
|
989
|
+
this.cancel_actions = props.cancel_actions;
|
|
990
|
+
this.direction = props.direction;
|
|
991
|
+
this.duration = props.duration;
|
|
992
|
+
this.end_actions = props.end_actions;
|
|
993
|
+
this.end_value = props.end_value;
|
|
994
|
+
this.id = props.id;
|
|
995
|
+
this.interpolator = props.interpolator;
|
|
996
|
+
this.repeat_count = props.repeat_count;
|
|
997
|
+
this.start_delay = props.start_delay;
|
|
998
|
+
this.start_value = props.start_value;
|
|
999
|
+
this.variable_name = props.variable_name;
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
|
|
888
1003
|
// Generated code. Do not modify.
|
|
889
1004
|
/**
|
|
890
1005
|
* Page width (%).
|
|
@@ -939,6 +1054,7 @@ class DivPager {
|
|
|
939
1054
|
this.alignment_horizontal = props.alignment_horizontal;
|
|
940
1055
|
this.alignment_vertical = props.alignment_vertical;
|
|
941
1056
|
this.alpha = props.alpha;
|
|
1057
|
+
this.animators = props.animators;
|
|
942
1058
|
this.background = props.background;
|
|
943
1059
|
this.border = props.border;
|
|
944
1060
|
this.column_span = props.column_span;
|
|
@@ -1112,6 +1228,7 @@ class DivSelect {
|
|
|
1112
1228
|
this.alignment_horizontal = props.alignment_horizontal;
|
|
1113
1229
|
this.alignment_vertical = props.alignment_vertical;
|
|
1114
1230
|
this.alpha = props.alpha;
|
|
1231
|
+
this.animators = props.animators;
|
|
1115
1232
|
this.background = props.background;
|
|
1116
1233
|
this.border = props.border;
|
|
1117
1234
|
this.column_span = props.column_span;
|
|
@@ -1167,6 +1284,7 @@ class DivSeparator {
|
|
|
1167
1284
|
this.alignment_horizontal = props === null || props === void 0 ? void 0 : props.alignment_horizontal;
|
|
1168
1285
|
this.alignment_vertical = props === null || props === void 0 ? void 0 : props.alignment_vertical;
|
|
1169
1286
|
this.alpha = props === null || props === void 0 ? void 0 : props.alpha;
|
|
1287
|
+
this.animators = props === null || props === void 0 ? void 0 : props.animators;
|
|
1170
1288
|
this.background = props === null || props === void 0 ? void 0 : props.background;
|
|
1171
1289
|
this.border = props === null || props === void 0 ? void 0 : props.border;
|
|
1172
1290
|
this.column_span = props === null || props === void 0 ? void 0 : props.column_span;
|
|
@@ -1238,6 +1356,7 @@ class DivSlider {
|
|
|
1238
1356
|
this.alignment_horizontal = props.alignment_horizontal;
|
|
1239
1357
|
this.alignment_vertical = props.alignment_vertical;
|
|
1240
1358
|
this.alpha = props.alpha;
|
|
1359
|
+
this.animators = props.animators;
|
|
1241
1360
|
this.background = props.background;
|
|
1242
1361
|
this.border = props.border;
|
|
1243
1362
|
this.column_span = props.column_span;
|
|
@@ -1303,6 +1422,7 @@ class DivState {
|
|
|
1303
1422
|
this.alignment_horizontal = props.alignment_horizontal;
|
|
1304
1423
|
this.alignment_vertical = props.alignment_vertical;
|
|
1305
1424
|
this.alpha = props.alpha;
|
|
1425
|
+
this.animators = props.animators;
|
|
1306
1426
|
this.background = props.background;
|
|
1307
1427
|
this.border = props.border;
|
|
1308
1428
|
this.column_span = props.column_span;
|
|
@@ -1361,6 +1481,7 @@ class DivTabs {
|
|
|
1361
1481
|
this.alignment_horizontal = props.alignment_horizontal;
|
|
1362
1482
|
this.alignment_vertical = props.alignment_vertical;
|
|
1363
1483
|
this.alpha = props.alpha;
|
|
1484
|
+
this.animators = props.animators;
|
|
1364
1485
|
this.background = props.background;
|
|
1365
1486
|
this.border = props.border;
|
|
1366
1487
|
this.column_span = props.column_span;
|
|
@@ -1415,6 +1536,7 @@ class DivText {
|
|
|
1415
1536
|
this.alignment_horizontal = props.alignment_horizontal;
|
|
1416
1537
|
this.alignment_vertical = props.alignment_vertical;
|
|
1417
1538
|
this.alpha = props.alpha;
|
|
1539
|
+
this.animators = props.animators;
|
|
1418
1540
|
this.auto_ellipsize = props.auto_ellipsize;
|
|
1419
1541
|
this.background = props.background;
|
|
1420
1542
|
this.border = props.border;
|
|
@@ -1482,6 +1604,7 @@ class DivVideo {
|
|
|
1482
1604
|
this.alignment_horizontal = props.alignment_horizontal;
|
|
1483
1605
|
this.alignment_vertical = props.alignment_vertical;
|
|
1484
1606
|
this.alpha = props.alpha;
|
|
1607
|
+
this.animators = props.animators;
|
|
1485
1608
|
this.aspect = props.aspect;
|
|
1486
1609
|
this.autostart = props.autostart;
|
|
1487
1610
|
this.background = props.background;
|
|
@@ -2016,5 +2139,5 @@ function rewriteTemplateVersions(templates, resolvedNames) {
|
|
|
2016
2139
|
return rewriteNames(templates, rename, resolvedNames);
|
|
2017
2140
|
}
|
|
2018
2141
|
|
|
2019
|
-
export { ArrayValue, ArrayVariable, BooleanValue, BooleanVariable, ColorValue, ColorVariable, ContentText, ContentUrl, DictValue, DictVariable, DivActionArrayInsertValue, DivActionArrayRemoveValue, DivActionArraySetValue, DivActionClearFocus, DivActionCopyToClipboard, DivActionDictSetValue, DivActionFocusElement, DivActionSetVariable, DivAppearanceSetTransition, DivBlur, DivChangeBoundsTransition, DivChangeSetTransition, DivCircleShape, 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, 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 };
|
|
2142
|
+
export { ArrayValue, ArrayVariable, BooleanValue, BooleanVariable, ColorValue, ColorVariable, ContentText, ContentUrl, DictValue, DictVariable, DivActionAnimatorStart, DivActionAnimatorStop, DivActionArrayInsertValue, DivActionArrayRemoveValue, DivActionArraySetValue, DivActionClearFocus, DivActionCopyToClipboard, DivActionDictSetValue, DivActionFocusElement, 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 };
|
|
2020
2143
|
//# sourceMappingURL=jsonbuilder.js.map
|