@divkitframework/jsonbuilder 31.8.0 → 31.9.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 +6 -0
- package/dist/es/jsonbuilder.js.map +1 -1
- package/dist/jsonbuilder.d.ts +116 -12
- package/dist/jsonbuilder.js +6 -0
- package/dist/jsonbuilder.js.map +1 -1
- package/package.json +1 -1
package/dist/jsonbuilder.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ interface IDivData {
|
|
|
18
18
|
/**
|
|
19
19
|
* User functions.
|
|
20
20
|
*
|
|
21
|
-
* Platforms: ios
|
|
21
|
+
* Platforms: ios, web
|
|
22
22
|
*/
|
|
23
23
|
functions?: NonEmptyArray<IDivFunction>;
|
|
24
24
|
/**
|
|
@@ -1711,6 +1711,15 @@ declare class DivContainer<T extends DivContainerProps = DivContainerProps> {
|
|
|
1711
1711
|
* Element stroke.
|
|
1712
1712
|
*/
|
|
1713
1713
|
border?: Type<IDivBorder>;
|
|
1714
|
+
/**
|
|
1715
|
+
* If the value is:`true` - when the element action is activated, the focus will be moved to that
|
|
1716
|
+
* element. That means that the accessibility focus will be moved and the virtual keyboard will
|
|
1717
|
+
* be hidden, unless the target element implies its presence (e.g. `input`).`false` - when you
|
|
1718
|
+
* click on an element, the focus will remain on the currently focused element.
|
|
1719
|
+
*
|
|
1720
|
+
* Platforms: not supported
|
|
1721
|
+
*/
|
|
1722
|
+
capture_focus_on_action?: Type<boolean | DivExpression>;
|
|
1714
1723
|
/**
|
|
1715
1724
|
* Enables the bounding of child elements by the parent's borders.
|
|
1716
1725
|
*
|
|
@@ -2008,6 +2017,15 @@ interface DivContainerPropsBase {
|
|
|
2008
2017
|
* Element stroke.
|
|
2009
2018
|
*/
|
|
2010
2019
|
border?: Type<IDivBorder>;
|
|
2020
|
+
/**
|
|
2021
|
+
* If the value is:`true` - when the element action is activated, the focus will be moved to that
|
|
2022
|
+
* element. That means that the accessibility focus will be moved and the virtual keyboard will
|
|
2023
|
+
* be hidden, unless the target element implies its presence (e.g. `input`).`false` - when you
|
|
2024
|
+
* click on an element, the focus will remain on the currently focused element.
|
|
2025
|
+
*
|
|
2026
|
+
* Platforms: not supported
|
|
2027
|
+
*/
|
|
2028
|
+
capture_focus_on_action?: Type<boolean | DivExpression>;
|
|
2011
2029
|
/**
|
|
2012
2030
|
* Enables the bounding of child elements by the parent's borders.
|
|
2013
2031
|
*
|
|
@@ -3730,6 +3748,15 @@ declare class DivGifImage<T extends DivGifImageProps = DivGifImageProps> {
|
|
|
3730
3748
|
* Element stroke.
|
|
3731
3749
|
*/
|
|
3732
3750
|
border?: Type<IDivBorder>;
|
|
3751
|
+
/**
|
|
3752
|
+
* If the value is:`true` - when the element action is activated, the focus will be moved to that
|
|
3753
|
+
* element. That means that the accessibility focus will be moved and the virtual keyboard will
|
|
3754
|
+
* be hidden, unless the target element implies its presence (e.g. `input`).`false` - when you
|
|
3755
|
+
* click on an element, the focus will remain on the currently focused element.
|
|
3756
|
+
*
|
|
3757
|
+
* Platforms: not supported
|
|
3758
|
+
*/
|
|
3759
|
+
capture_focus_on_action?: Type<boolean | DivExpression>;
|
|
3733
3760
|
/**
|
|
3734
3761
|
* Merges cells in a column of the [grid](div-grid.md) element.
|
|
3735
3762
|
*
|
|
@@ -4005,6 +4032,15 @@ interface DivGifImageProps {
|
|
|
4005
4032
|
* Element stroke.
|
|
4006
4033
|
*/
|
|
4007
4034
|
border?: Type<IDivBorder>;
|
|
4035
|
+
/**
|
|
4036
|
+
* If the value is:`true` - when the element action is activated, the focus will be moved to that
|
|
4037
|
+
* element. That means that the accessibility focus will be moved and the virtual keyboard will
|
|
4038
|
+
* be hidden, unless the target element implies its presence (e.g. `input`).`false` - when you
|
|
4039
|
+
* click on an element, the focus will remain on the currently focused element.
|
|
4040
|
+
*
|
|
4041
|
+
* Platforms: not supported
|
|
4042
|
+
*/
|
|
4043
|
+
capture_focus_on_action?: Type<boolean | DivExpression>;
|
|
4008
4044
|
/**
|
|
4009
4045
|
* Merges cells in a column of the [grid](div-grid.md) element.
|
|
4010
4046
|
*
|
|
@@ -4280,6 +4316,15 @@ declare class DivGrid<T extends DivGridProps = DivGridProps> {
|
|
|
4280
4316
|
* Element stroke.
|
|
4281
4317
|
*/
|
|
4282
4318
|
border?: Type<IDivBorder>;
|
|
4319
|
+
/**
|
|
4320
|
+
* If the value is:`true` - when the element action is activated, the focus will be moved to that
|
|
4321
|
+
* element. That means that the accessibility focus will be moved and the virtual keyboard will
|
|
4322
|
+
* be hidden, unless the target element implies its presence (e.g. `input`).`false` - when you
|
|
4323
|
+
* click on an element, the focus will remain on the currently focused element.
|
|
4324
|
+
*
|
|
4325
|
+
* Platforms: not supported
|
|
4326
|
+
*/
|
|
4327
|
+
capture_focus_on_action?: Type<boolean | DivExpression>;
|
|
4283
4328
|
/**
|
|
4284
4329
|
* Number of columns.
|
|
4285
4330
|
*/
|
|
@@ -4530,6 +4575,15 @@ interface DivGridProps {
|
|
|
4530
4575
|
* Element stroke.
|
|
4531
4576
|
*/
|
|
4532
4577
|
border?: Type<IDivBorder>;
|
|
4578
|
+
/**
|
|
4579
|
+
* If the value is:`true` - when the element action is activated, the focus will be moved to that
|
|
4580
|
+
* element. That means that the accessibility focus will be moved and the virtual keyboard will
|
|
4581
|
+
* be hidden, unless the target element implies its presence (e.g. `input`).`false` - when you
|
|
4582
|
+
* click on an element, the focus will remain on the currently focused element.
|
|
4583
|
+
*
|
|
4584
|
+
* Platforms: not supported
|
|
4585
|
+
*/
|
|
4586
|
+
capture_focus_on_action?: Type<boolean | DivExpression>;
|
|
4533
4587
|
/**
|
|
4534
4588
|
* Number of columns.
|
|
4535
4589
|
*/
|
|
@@ -4796,6 +4850,15 @@ declare class DivImage<T extends DivImageProps = DivImageProps> {
|
|
|
4796
4850
|
* Element stroke.
|
|
4797
4851
|
*/
|
|
4798
4852
|
border?: Type<IDivBorder>;
|
|
4853
|
+
/**
|
|
4854
|
+
* If the value is:`true` - when the element action is activated, the focus will be moved to that
|
|
4855
|
+
* element. That means that the accessibility focus will be moved and the virtual keyboard will
|
|
4856
|
+
* be hidden, unless the target element implies its presence (e.g. `input`).`false` - when you
|
|
4857
|
+
* click on an element, the focus will remain on the currently focused element.
|
|
4858
|
+
*
|
|
4859
|
+
* Platforms: not supported
|
|
4860
|
+
*/
|
|
4861
|
+
capture_focus_on_action?: Type<boolean | DivExpression>;
|
|
4799
4862
|
/**
|
|
4800
4863
|
* Merges cells in a column of the [grid](div-grid.md) element.
|
|
4801
4864
|
*
|
|
@@ -5097,6 +5160,15 @@ interface DivImageProps {
|
|
|
5097
5160
|
* Element stroke.
|
|
5098
5161
|
*/
|
|
5099
5162
|
border?: Type<IDivBorder>;
|
|
5163
|
+
/**
|
|
5164
|
+
* If the value is:`true` - when the element action is activated, the focus will be moved to that
|
|
5165
|
+
* element. That means that the accessibility focus will be moved and the virtual keyboard will
|
|
5166
|
+
* be hidden, unless the target element implies its presence (e.g. `input`).`false` - when you
|
|
5167
|
+
* click on an element, the focus will remain on the currently focused element.
|
|
5168
|
+
*
|
|
5169
|
+
* Platforms: not supported
|
|
5170
|
+
*/
|
|
5171
|
+
capture_focus_on_action?: Type<boolean | DivExpression>;
|
|
5100
5172
|
/**
|
|
5101
5173
|
* Merges cells in a column of the [grid](div-grid.md) element.
|
|
5102
5174
|
*
|
|
@@ -7697,7 +7769,7 @@ interface IDivPatch {
|
|
|
7697
7769
|
* least one element, the changes aren't applied.`partial` — all possible changes are applied. If
|
|
7698
7770
|
* there are errors, they are reported.
|
|
7699
7771
|
*
|
|
7700
|
-
* Platforms: android, web
|
|
7772
|
+
* Platforms: android, ios, web
|
|
7701
7773
|
*/
|
|
7702
7774
|
mode?: DivPatchMode | DivExpression;
|
|
7703
7775
|
/**
|
|
@@ -7709,7 +7781,7 @@ interface IDivPatch {
|
|
|
7709
7781
|
/**
|
|
7710
7782
|
* Actions to perform if there’s an error when applying changes in transaction mode.
|
|
7711
7783
|
*
|
|
7712
|
-
* Platforms: android, web
|
|
7784
|
+
* Platforms: android, ios, web
|
|
7713
7785
|
*/
|
|
7714
7786
|
on_failed_actions?: NonEmptyArray<IDivAction>;
|
|
7715
7787
|
}
|
|
@@ -8589,6 +8661,15 @@ declare class DivSeparator<T extends DivSeparatorProps = DivSeparatorProps> {
|
|
|
8589
8661
|
* Element stroke.
|
|
8590
8662
|
*/
|
|
8591
8663
|
border?: Type<IDivBorder>;
|
|
8664
|
+
/**
|
|
8665
|
+
* If the value is:`true` - when the element action is activated, the focus will be moved to that
|
|
8666
|
+
* element. That means that the accessibility focus will be moved and the virtual keyboard will
|
|
8667
|
+
* be hidden, unless the target element implies its presence (e.g. `input`).`false` - when you
|
|
8668
|
+
* click on an element, the focus will remain on the currently focused element.
|
|
8669
|
+
*
|
|
8670
|
+
* Platforms: not supported
|
|
8671
|
+
*/
|
|
8672
|
+
capture_focus_on_action?: Type<boolean | DivExpression>;
|
|
8592
8673
|
/**
|
|
8593
8674
|
* Merges cells in a column of the [grid](div-grid.md) element.
|
|
8594
8675
|
*
|
|
@@ -8827,6 +8908,15 @@ interface DivSeparatorProps {
|
|
|
8827
8908
|
* Element stroke.
|
|
8828
8909
|
*/
|
|
8829
8910
|
border?: Type<IDivBorder>;
|
|
8911
|
+
/**
|
|
8912
|
+
* If the value is:`true` - when the element action is activated, the focus will be moved to that
|
|
8913
|
+
* element. That means that the accessibility focus will be moved and the virtual keyboard will
|
|
8914
|
+
* be hidden, unless the target element implies its presence (e.g. `input`).`false` - when you
|
|
8915
|
+
* click on an element, the focus will remain on the currently focused element.
|
|
8916
|
+
*
|
|
8917
|
+
* Platforms: not supported
|
|
8918
|
+
*/
|
|
8919
|
+
capture_focus_on_action?: Type<boolean | DivExpression>;
|
|
8830
8920
|
/**
|
|
8831
8921
|
* Merges cells in a column of the [grid](div-grid.md) element.
|
|
8832
8922
|
*
|
|
@@ -11244,7 +11334,7 @@ interface IDivTabsTabTitleStyle {
|
|
|
11244
11334
|
/**
|
|
11245
11335
|
* Active title change animation.
|
|
11246
11336
|
*
|
|
11247
|
-
* Platforms: android, ios
|
|
11337
|
+
* Platforms: android, ios, web
|
|
11248
11338
|
*/
|
|
11249
11339
|
animation_type?: Type<TabTitleStyleAnimationType | DivExpression>;
|
|
11250
11340
|
/**
|
|
@@ -11367,6 +11457,15 @@ declare class DivText<T extends DivTextProps = DivTextProps> {
|
|
|
11367
11457
|
* Element stroke.
|
|
11368
11458
|
*/
|
|
11369
11459
|
border?: Type<IDivBorder>;
|
|
11460
|
+
/**
|
|
11461
|
+
* If the value is:`true` - when the element action is activated, the focus will be moved to that
|
|
11462
|
+
* element. That means that the accessibility focus will be moved and the virtual keyboard will
|
|
11463
|
+
* be hidden, unless the target element implies its presence (e.g. `input`).`false` - when you
|
|
11464
|
+
* click on an element, the focus will remain on the currently focused element.
|
|
11465
|
+
*
|
|
11466
|
+
* Platforms: not supported
|
|
11467
|
+
*/
|
|
11468
|
+
capture_focus_on_action?: Type<boolean | DivExpression>;
|
|
11370
11469
|
/**
|
|
11371
11470
|
* Merges cells in a column of the [grid](div-grid.md) element.
|
|
11372
11471
|
*
|
|
@@ -11644,11 +11743,9 @@ declare class DivText<T extends DivTextProps = DivTextProps> {
|
|
|
11644
11743
|
*/
|
|
11645
11744
|
transition_triggers?: Type<NonEmptyArray<DivTransitionTrigger>>;
|
|
11646
11745
|
/**
|
|
11647
|
-
*
|
|
11746
|
+
* Location of text cropping marker.
|
|
11648
11747
|
*
|
|
11649
|
-
*
|
|
11650
|
-
*
|
|
11651
|
-
* Platforms: android, ios
|
|
11748
|
+
* Platforms: not supported
|
|
11652
11749
|
*/
|
|
11653
11750
|
truncate?: Type<DivTextTruncate | DivExpression>;
|
|
11654
11751
|
/**
|
|
@@ -11741,6 +11838,15 @@ interface DivTextProps {
|
|
|
11741
11838
|
* Element stroke.
|
|
11742
11839
|
*/
|
|
11743
11840
|
border?: Type<IDivBorder>;
|
|
11841
|
+
/**
|
|
11842
|
+
* If the value is:`true` - when the element action is activated, the focus will be moved to that
|
|
11843
|
+
* element. That means that the accessibility focus will be moved and the virtual keyboard will
|
|
11844
|
+
* be hidden, unless the target element implies its presence (e.g. `input`).`false` - when you
|
|
11845
|
+
* click on an element, the focus will remain on the currently focused element.
|
|
11846
|
+
*
|
|
11847
|
+
* Platforms: not supported
|
|
11848
|
+
*/
|
|
11849
|
+
capture_focus_on_action?: Type<boolean | DivExpression>;
|
|
11744
11850
|
/**
|
|
11745
11851
|
* Merges cells in a column of the [grid](div-grid.md) element.
|
|
11746
11852
|
*
|
|
@@ -12018,11 +12124,9 @@ interface DivTextProps {
|
|
|
12018
12124
|
*/
|
|
12019
12125
|
transition_triggers?: Type<NonEmptyArray<DivTransitionTrigger>>;
|
|
12020
12126
|
/**
|
|
12021
|
-
*
|
|
12127
|
+
* Location of text cropping marker.
|
|
12022
12128
|
*
|
|
12023
|
-
*
|
|
12024
|
-
*
|
|
12025
|
-
* Platforms: android, ios
|
|
12129
|
+
* Platforms: not supported
|
|
12026
12130
|
*/
|
|
12027
12131
|
truncate?: Type<DivTextTruncate | DivExpression>;
|
|
12028
12132
|
/**
|
package/dist/jsonbuilder.js
CHANGED
|
@@ -469,6 +469,7 @@ class DivContainer {
|
|
|
469
469
|
this.aspect = props === null || props === void 0 ? void 0 : props.aspect;
|
|
470
470
|
this.background = props === null || props === void 0 ? void 0 : props.background;
|
|
471
471
|
this.border = props === null || props === void 0 ? void 0 : props.border;
|
|
472
|
+
this.capture_focus_on_action = props === null || props === void 0 ? void 0 : props.capture_focus_on_action;
|
|
472
473
|
this.clip_to_bounds = props === null || props === void 0 ? void 0 : props.clip_to_bounds;
|
|
473
474
|
this.column_span = props === null || props === void 0 ? void 0 : props.column_span;
|
|
474
475
|
this.content_alignment_horizontal = props === null || props === void 0 ? void 0 : props.content_alignment_horizontal;
|
|
@@ -713,6 +714,7 @@ class DivGifImage {
|
|
|
713
714
|
this.aspect = props.aspect;
|
|
714
715
|
this.background = props.background;
|
|
715
716
|
this.border = props.border;
|
|
717
|
+
this.capture_focus_on_action = props.capture_focus_on_action;
|
|
716
718
|
this.column_span = props.column_span;
|
|
717
719
|
this.content_alignment_horizontal = props.content_alignment_horizontal;
|
|
718
720
|
this.content_alignment_vertical = props.content_alignment_vertical;
|
|
@@ -771,6 +773,7 @@ class DivGrid {
|
|
|
771
773
|
this.animators = props.animators;
|
|
772
774
|
this.background = props.background;
|
|
773
775
|
this.border = props.border;
|
|
776
|
+
this.capture_focus_on_action = props.capture_focus_on_action;
|
|
774
777
|
this.column_count = props.column_count;
|
|
775
778
|
this.column_span = props.column_span;
|
|
776
779
|
this.content_alignment_horizontal = props.content_alignment_horizontal;
|
|
@@ -828,6 +831,7 @@ class DivImage {
|
|
|
828
831
|
this.aspect = props.aspect;
|
|
829
832
|
this.background = props.background;
|
|
830
833
|
this.border = props.border;
|
|
834
|
+
this.capture_focus_on_action = props.capture_focus_on_action;
|
|
831
835
|
this.column_span = props.column_span;
|
|
832
836
|
this.content_alignment_horizontal = props.content_alignment_horizontal;
|
|
833
837
|
this.content_alignment_vertical = props.content_alignment_vertical;
|
|
@@ -1441,6 +1445,7 @@ class DivSeparator {
|
|
|
1441
1445
|
this.animators = props === null || props === void 0 ? void 0 : props.animators;
|
|
1442
1446
|
this.background = props === null || props === void 0 ? void 0 : props.background;
|
|
1443
1447
|
this.border = props === null || props === void 0 ? void 0 : props.border;
|
|
1448
|
+
this.capture_focus_on_action = props === null || props === void 0 ? void 0 : props.capture_focus_on_action;
|
|
1444
1449
|
this.column_span = props === null || props === void 0 ? void 0 : props.column_span;
|
|
1445
1450
|
this.delimiter_style = props === null || props === void 0 ? void 0 : props.delimiter_style;
|
|
1446
1451
|
this.disappear_actions = props === null || props === void 0 ? void 0 : props.disappear_actions;
|
|
@@ -1770,6 +1775,7 @@ class DivText {
|
|
|
1770
1775
|
this.auto_ellipsize = props.auto_ellipsize;
|
|
1771
1776
|
this.background = props.background;
|
|
1772
1777
|
this.border = props.border;
|
|
1778
|
+
this.capture_focus_on_action = props.capture_focus_on_action;
|
|
1773
1779
|
this.column_span = props.column_span;
|
|
1774
1780
|
this.disappear_actions = props.disappear_actions;
|
|
1775
1781
|
this.doubletap_actions = props.doubletap_actions;
|