@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.
- package/dist/es/jsonbuilder.js +148 -1
- package/dist/es/jsonbuilder.js.map +1 -1
- package/dist/jsonbuilder.d.ts +634 -2
- package/dist/jsonbuilder.js +156 -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,11 +829,14 @@ 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;
|
|
833
|
+
this.autocapitalization = props.autocapitalization;
|
|
739
834
|
this.background = props.background;
|
|
740
835
|
this.border = props.border;
|
|
741
836
|
this.column_span = props.column_span;
|
|
742
837
|
this.disappear_actions = props.disappear_actions;
|
|
743
838
|
this.extensions = props.extensions;
|
|
839
|
+
this.filters = props.filters;
|
|
744
840
|
this.focus = props.focus;
|
|
745
841
|
this.font_family = props.font_family;
|
|
746
842
|
this.font_size = props.font_size;
|
|
@@ -787,6 +883,28 @@ class DivInput {
|
|
|
787
883
|
}
|
|
788
884
|
}
|
|
789
885
|
|
|
886
|
+
// Generated code. Do not modify.
|
|
887
|
+
/**
|
|
888
|
+
* [Calculated expression](../../expressions) filter.
|
|
889
|
+
*/
|
|
890
|
+
class DivInputFilterExpression {
|
|
891
|
+
constructor(props) {
|
|
892
|
+
this.type = 'expression';
|
|
893
|
+
this.condition = props.condition;
|
|
894
|
+
}
|
|
895
|
+
}
|
|
896
|
+
|
|
897
|
+
// Generated code. Do not modify.
|
|
898
|
+
/**
|
|
899
|
+
* Regex filter.
|
|
900
|
+
*/
|
|
901
|
+
class DivInputFilterRegex {
|
|
902
|
+
constructor(props) {
|
|
903
|
+
this.type = 'regex';
|
|
904
|
+
this.pattern = props.pattern;
|
|
905
|
+
}
|
|
906
|
+
}
|
|
907
|
+
|
|
790
908
|
// Generated code. Do not modify.
|
|
791
909
|
/**
|
|
792
910
|
* [Calculated expression](../../expressions) validator.
|
|
@@ -861,6 +979,27 @@ class DivNinePatchBackground {
|
|
|
861
979
|
}
|
|
862
980
|
}
|
|
863
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
|
+
|
|
864
1003
|
// Generated code. Do not modify.
|
|
865
1004
|
/**
|
|
866
1005
|
* Page width (%).
|
|
@@ -915,6 +1054,7 @@ class DivPager {
|
|
|
915
1054
|
this.alignment_horizontal = props.alignment_horizontal;
|
|
916
1055
|
this.alignment_vertical = props.alignment_vertical;
|
|
917
1056
|
this.alpha = props.alpha;
|
|
1057
|
+
this.animators = props.animators;
|
|
918
1058
|
this.background = props.background;
|
|
919
1059
|
this.border = props.border;
|
|
920
1060
|
this.column_span = props.column_span;
|
|
@@ -1088,6 +1228,7 @@ class DivSelect {
|
|
|
1088
1228
|
this.alignment_horizontal = props.alignment_horizontal;
|
|
1089
1229
|
this.alignment_vertical = props.alignment_vertical;
|
|
1090
1230
|
this.alpha = props.alpha;
|
|
1231
|
+
this.animators = props.animators;
|
|
1091
1232
|
this.background = props.background;
|
|
1092
1233
|
this.border = props.border;
|
|
1093
1234
|
this.column_span = props.column_span;
|
|
@@ -1143,6 +1284,7 @@ class DivSeparator {
|
|
|
1143
1284
|
this.alignment_horizontal = props === null || props === void 0 ? void 0 : props.alignment_horizontal;
|
|
1144
1285
|
this.alignment_vertical = props === null || props === void 0 ? void 0 : props.alignment_vertical;
|
|
1145
1286
|
this.alpha = props === null || props === void 0 ? void 0 : props.alpha;
|
|
1287
|
+
this.animators = props === null || props === void 0 ? void 0 : props.animators;
|
|
1146
1288
|
this.background = props === null || props === void 0 ? void 0 : props.background;
|
|
1147
1289
|
this.border = props === null || props === void 0 ? void 0 : props.border;
|
|
1148
1290
|
this.column_span = props === null || props === void 0 ? void 0 : props.column_span;
|
|
@@ -1214,6 +1356,7 @@ class DivSlider {
|
|
|
1214
1356
|
this.alignment_horizontal = props.alignment_horizontal;
|
|
1215
1357
|
this.alignment_vertical = props.alignment_vertical;
|
|
1216
1358
|
this.alpha = props.alpha;
|
|
1359
|
+
this.animators = props.animators;
|
|
1217
1360
|
this.background = props.background;
|
|
1218
1361
|
this.border = props.border;
|
|
1219
1362
|
this.column_span = props.column_span;
|
|
@@ -1279,6 +1422,7 @@ class DivState {
|
|
|
1279
1422
|
this.alignment_horizontal = props.alignment_horizontal;
|
|
1280
1423
|
this.alignment_vertical = props.alignment_vertical;
|
|
1281
1424
|
this.alpha = props.alpha;
|
|
1425
|
+
this.animators = props.animators;
|
|
1282
1426
|
this.background = props.background;
|
|
1283
1427
|
this.border = props.border;
|
|
1284
1428
|
this.column_span = props.column_span;
|
|
@@ -1337,6 +1481,7 @@ class DivTabs {
|
|
|
1337
1481
|
this.alignment_horizontal = props.alignment_horizontal;
|
|
1338
1482
|
this.alignment_vertical = props.alignment_vertical;
|
|
1339
1483
|
this.alpha = props.alpha;
|
|
1484
|
+
this.animators = props.animators;
|
|
1340
1485
|
this.background = props.background;
|
|
1341
1486
|
this.border = props.border;
|
|
1342
1487
|
this.column_span = props.column_span;
|
|
@@ -1391,6 +1536,7 @@ class DivText {
|
|
|
1391
1536
|
this.alignment_horizontal = props.alignment_horizontal;
|
|
1392
1537
|
this.alignment_vertical = props.alignment_vertical;
|
|
1393
1538
|
this.alpha = props.alpha;
|
|
1539
|
+
this.animators = props.animators;
|
|
1394
1540
|
this.auto_ellipsize = props.auto_ellipsize;
|
|
1395
1541
|
this.background = props.background;
|
|
1396
1542
|
this.border = props.border;
|
|
@@ -1458,6 +1604,7 @@ class DivVideo {
|
|
|
1458
1604
|
this.alignment_horizontal = props.alignment_horizontal;
|
|
1459
1605
|
this.alignment_vertical = props.alignment_vertical;
|
|
1460
1606
|
this.alpha = props.alpha;
|
|
1607
|
+
this.animators = props.animators;
|
|
1461
1608
|
this.aspect = props.aspect;
|
|
1462
1609
|
this.autostart = props.autostart;
|
|
1463
1610
|
this.background = props.background;
|
|
@@ -1992,5 +2139,5 @@ function rewriteTemplateVersions(templates, resolvedNames) {
|
|
|
1992
2139
|
return rewriteNames(templates, rename, resolvedNames);
|
|
1993
2140
|
}
|
|
1994
2141
|
|
|
1995
|
-
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, 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 };
|
|
1996
2143
|
//# sourceMappingURL=jsonbuilder.js.map
|