@divkitframework/jsonbuilder 24.1.0 → 24.3.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 +149 -3
- package/dist/es/jsonbuilder.js.map +1 -1
- package/dist/jsonbuilder.d.ts +1777 -983
- package/dist/jsonbuilder.js +155 -2
- package/dist/jsonbuilder.js.map +1 -1
- package/package.json +1 -1
package/dist/jsonbuilder.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare type Div = DivImage | DivGifImage | DivText | DivSeparator | DivContainer | DivGrid | DivGallery | DivPager | DivTabs | DivState | DivCustom | DivIndicator | DivSlider | DivInput | TemplateBlock;
|
|
1
|
+
declare type Div = DivImage | DivGifImage | DivText | DivSeparator | DivContainer | DivGrid | DivGallery | DivPager | DivTabs | DivState | DivCustom | DivIndicator | DivSlider | DivInput | DivSelect | DivVideo | TemplateBlock;
|
|
2
2
|
|
|
3
3
|
declare const expr: unique symbol;
|
|
4
4
|
interface DivExpression {
|
|
@@ -631,8 +631,10 @@ declare class DivContainer<T extends DivContainerProps = DivContainerProps> {
|
|
|
631
631
|
*/
|
|
632
632
|
alpha?: Type<number | DivExpression>;
|
|
633
633
|
/**
|
|
634
|
-
*
|
|
635
|
-
*
|
|
634
|
+
* Fixed aspect ratio of the container. The element's height is calculated based on the width,
|
|
635
|
+
* ignoring the `height` parameter's value.
|
|
636
|
+
On the web, support for the `aspect-ratio` CSS
|
|
637
|
+
* property is required to use this parameter.
|
|
636
638
|
*/
|
|
637
639
|
aspect?: Type<IDivAspect>;
|
|
638
640
|
/**
|
|
@@ -812,8 +814,10 @@ interface DivContainerProps {
|
|
|
812
814
|
*/
|
|
813
815
|
alpha?: Type<number | DivExpression>;
|
|
814
816
|
/**
|
|
815
|
-
*
|
|
816
|
-
*
|
|
817
|
+
* Fixed aspect ratio of the container. The element's height is calculated based on the width,
|
|
818
|
+
* ignoring the `height` parameter's value.
|
|
819
|
+
On the web, support for the `aspect-ratio` CSS
|
|
820
|
+
* property is required to use this parameter.
|
|
817
821
|
*/
|
|
818
822
|
aspect?: Type<IDivAspect>;
|
|
819
823
|
/**
|
|
@@ -1006,6 +1010,37 @@ interface IDivCornersRadius {
|
|
|
1006
1010
|
|
|
1007
1011
|
declare type DivCount = DivInfinityCount | DivFixedCount;
|
|
1008
1012
|
|
|
1013
|
+
/**
|
|
1014
|
+
* Mask for currency with language format.
|
|
1015
|
+
*/
|
|
1016
|
+
declare class DivCurrencyInputMask<T extends DivCurrencyInputMaskProps = DivCurrencyInputMaskProps> {
|
|
1017
|
+
readonly _props?: Exact<DivCurrencyInputMaskProps, T>;
|
|
1018
|
+
readonly type = "currency";
|
|
1019
|
+
/**
|
|
1020
|
+
* IETF BCP 47 language tag for currency mask. Look
|
|
1021
|
+
* https://en.wikipedia.org/wiki/IETF_language_tag for more. If not specified, it will be
|
|
1022
|
+
* determined automatically.
|
|
1023
|
+
*/
|
|
1024
|
+
locale?: Type<string | DivExpression>;
|
|
1025
|
+
/**
|
|
1026
|
+
* Name of raw value storage variable.
|
|
1027
|
+
*/
|
|
1028
|
+
raw_text_variable: Type<string>;
|
|
1029
|
+
constructor(props: Exact<DivCurrencyInputMaskProps, T>);
|
|
1030
|
+
}
|
|
1031
|
+
interface DivCurrencyInputMaskProps {
|
|
1032
|
+
/**
|
|
1033
|
+
* IETF BCP 47 language tag for currency mask. Look
|
|
1034
|
+
* https://en.wikipedia.org/wiki/IETF_language_tag for more. If not specified, it will be
|
|
1035
|
+
* determined automatically.
|
|
1036
|
+
*/
|
|
1037
|
+
locale?: Type<string | DivExpression>;
|
|
1038
|
+
/**
|
|
1039
|
+
* Name of raw value storage variable.
|
|
1040
|
+
*/
|
|
1041
|
+
raw_text_variable: Type<string>;
|
|
1042
|
+
}
|
|
1043
|
+
|
|
1009
1044
|
/**
|
|
1010
1045
|
* Custom element. It is delegated to a host application to create native elements depending on
|
|
1011
1046
|
* the platform.
|
|
@@ -1414,54 +1449,64 @@ interface DivFixedCountProps {
|
|
|
1414
1449
|
}
|
|
1415
1450
|
|
|
1416
1451
|
/**
|
|
1417
|
-
*
|
|
1452
|
+
* Mask for entering text with a fixed number of characters.
|
|
1418
1453
|
*/
|
|
1419
1454
|
declare class DivFixedLengthInputMask<T extends DivFixedLengthInputMaskProps = DivFixedLengthInputMaskProps> {
|
|
1420
1455
|
readonly _props?: Exact<DivFixedLengthInputMaskProps, T>;
|
|
1421
1456
|
readonly type = "fixed_length";
|
|
1422
1457
|
/**
|
|
1423
|
-
*
|
|
1458
|
+
* If this option is enabled, the text field contains the mask before being filled in.
|
|
1424
1459
|
*/
|
|
1425
1460
|
always_visible?: Type<IntBoolean | DivExpression>;
|
|
1426
1461
|
/**
|
|
1427
|
-
*
|
|
1462
|
+
* String that sets the text input template. For example, the `+7 (###) ###-##-## ` template for
|
|
1463
|
+
* a phone number.
|
|
1428
1464
|
*/
|
|
1429
1465
|
pattern: Type<string | DivExpression>;
|
|
1430
1466
|
/**
|
|
1431
|
-
*
|
|
1467
|
+
* Template decoding is a description of the characters that will be replaced with user input.
|
|
1432
1468
|
*/
|
|
1433
1469
|
pattern_elements: Type<NonEmptyArray<IDivFixedLengthInputMaskPatternElement>>;
|
|
1470
|
+
/**
|
|
1471
|
+
* Name of raw value storage variable.
|
|
1472
|
+
*/
|
|
1473
|
+
raw_text_variable: Type<string>;
|
|
1434
1474
|
constructor(props: Exact<DivFixedLengthInputMaskProps, T>);
|
|
1435
1475
|
}
|
|
1436
1476
|
interface DivFixedLengthInputMaskProps {
|
|
1437
1477
|
/**
|
|
1438
|
-
*
|
|
1478
|
+
* If this option is enabled, the text field contains the mask before being filled in.
|
|
1439
1479
|
*/
|
|
1440
1480
|
always_visible?: Type<IntBoolean | DivExpression>;
|
|
1441
1481
|
/**
|
|
1442
|
-
*
|
|
1482
|
+
* String that sets the text input template. For example, the `+7 (###) ###-##-## ` template for
|
|
1483
|
+
* a phone number.
|
|
1443
1484
|
*/
|
|
1444
1485
|
pattern: Type<string | DivExpression>;
|
|
1445
1486
|
/**
|
|
1446
|
-
*
|
|
1487
|
+
* Template decoding is a description of the characters that will be replaced with user input.
|
|
1447
1488
|
*/
|
|
1448
1489
|
pattern_elements: Type<NonEmptyArray<IDivFixedLengthInputMaskPatternElement>>;
|
|
1490
|
+
/**
|
|
1491
|
+
* Name of raw value storage variable.
|
|
1492
|
+
*/
|
|
1493
|
+
raw_text_variable: Type<string>;
|
|
1449
1494
|
}
|
|
1450
1495
|
/**
|
|
1451
|
-
*
|
|
1496
|
+
* Template decoding is a description of the characters that will be replaced with user input.
|
|
1452
1497
|
*/
|
|
1453
1498
|
interface IDivFixedLengthInputMaskPatternElement {
|
|
1454
1499
|
/**
|
|
1455
|
-
*
|
|
1500
|
+
* A character in the template that will be replaced with a user-defined character.
|
|
1456
1501
|
*/
|
|
1457
1502
|
key: Type<string | DivExpression>;
|
|
1458
1503
|
/**
|
|
1459
|
-
*
|
|
1460
|
-
*
|
|
1504
|
+
* The character that's displayed in the input field where the user is expected to enter text.
|
|
1505
|
+
* This is used if mask display is enabled.
|
|
1461
1506
|
*/
|
|
1462
1507
|
placeholder?: Type<string | DivExpression>;
|
|
1463
1508
|
/**
|
|
1464
|
-
* Regular expression
|
|
1509
|
+
* Regular expression for validating character inputs. For example, when a mask is digit-only.
|
|
1465
1510
|
*/
|
|
1466
1511
|
regex?: Type<string | DivExpression>;
|
|
1467
1512
|
}
|
|
@@ -2989,7 +3034,7 @@ interface DivImageBackgroundProps {
|
|
|
2989
3034
|
scale?: Type<DivImageScale | DivExpression>;
|
|
2990
3035
|
}
|
|
2991
3036
|
|
|
2992
|
-
declare type DivImageScale = 'fill' | 'no_scale' | 'fit';
|
|
3037
|
+
declare type DivImageScale = 'fill' | 'no_scale' | 'fit' | 'stretch';
|
|
2993
3038
|
|
|
2994
3039
|
/**
|
|
2995
3040
|
* Progress indicator for [pager](div-pager.md).
|
|
@@ -3465,7 +3510,7 @@ declare class DivInput<T extends DivInputProps = DivInputProps> {
|
|
|
3465
3510
|
*/
|
|
3466
3511
|
margins?: Type<IDivEdgeInsets>;
|
|
3467
3512
|
/**
|
|
3468
|
-
*
|
|
3513
|
+
* Mask for entering text based on the specified template.
|
|
3469
3514
|
*/
|
|
3470
3515
|
mask?: Type<DivInputMask>;
|
|
3471
3516
|
/**
|
|
@@ -3480,10 +3525,6 @@ declare class DivInput<T extends DivInputProps = DivInputProps> {
|
|
|
3480
3525
|
* Internal margins from the element stroke.
|
|
3481
3526
|
*/
|
|
3482
3527
|
paddings?: Type<IDivEdgeInsets>;
|
|
3483
|
-
/**
|
|
3484
|
-
* Name of raw value storage variable.
|
|
3485
|
-
*/
|
|
3486
|
-
raw_text_variable?: Type<string>;
|
|
3487
3528
|
/**
|
|
3488
3529
|
* Merges cells in a string of the [grid](div-grid.md) element.
|
|
3489
3530
|
*/
|
|
@@ -3651,7 +3692,7 @@ interface DivInputProps {
|
|
|
3651
3692
|
*/
|
|
3652
3693
|
margins?: Type<IDivEdgeInsets>;
|
|
3653
3694
|
/**
|
|
3654
|
-
*
|
|
3695
|
+
* Mask for entering text based on the specified template.
|
|
3655
3696
|
*/
|
|
3656
3697
|
mask?: Type<DivInputMask>;
|
|
3657
3698
|
/**
|
|
@@ -3666,10 +3707,6 @@ interface DivInputProps {
|
|
|
3666
3707
|
* Internal margins from the element stroke.
|
|
3667
3708
|
*/
|
|
3668
3709
|
paddings?: Type<IDivEdgeInsets>;
|
|
3669
|
-
/**
|
|
3670
|
-
* Name of raw value storage variable.
|
|
3671
|
-
*/
|
|
3672
|
-
raw_text_variable?: Type<string>;
|
|
3673
3710
|
/**
|
|
3674
3711
|
* Merges cells in a string of the [grid](div-grid.md) element.
|
|
3675
3712
|
*/
|
|
@@ -3749,7 +3786,14 @@ interface IDivInputNativeInterface {
|
|
|
3749
3786
|
color: Type<string | DivExpression>;
|
|
3750
3787
|
}
|
|
3751
3788
|
|
|
3752
|
-
declare type DivInputMask = DivFixedLengthInputMask;
|
|
3789
|
+
declare type DivInputMask = DivFixedLengthInputMask | DivCurrencyInputMask;
|
|
3790
|
+
|
|
3791
|
+
interface IDivInputMaskBase {
|
|
3792
|
+
/**
|
|
3793
|
+
* Name of raw value storage variable.
|
|
3794
|
+
*/
|
|
3795
|
+
raw_text_variable?: Type<string>;
|
|
3796
|
+
}
|
|
3753
3797
|
|
|
3754
3798
|
declare type DivLineStyle = 'none' | 'single';
|
|
3755
3799
|
|
|
@@ -4511,28 +4555,15 @@ interface DivScaleTransitionProps {
|
|
|
4511
4555
|
}
|
|
4512
4556
|
|
|
4513
4557
|
/**
|
|
4514
|
-
*
|
|
4558
|
+
* Option list selection element.
|
|
4515
4559
|
*/
|
|
4516
|
-
declare class
|
|
4517
|
-
readonly _props?: Exact<
|
|
4518
|
-
readonly type = "
|
|
4560
|
+
declare class DivSelect<T extends DivSelectProps = DivSelectProps> {
|
|
4561
|
+
readonly _props?: Exact<DivSelectProps, T>;
|
|
4562
|
+
readonly type = "select";
|
|
4519
4563
|
/**
|
|
4520
4564
|
* Accessibility settings.
|
|
4521
4565
|
*/
|
|
4522
4566
|
accessibility?: Type<IDivAccessibility>;
|
|
4523
|
-
/**
|
|
4524
|
-
* One action when clicking on an element. Not used if the `actions` parameter is set.
|
|
4525
|
-
*/
|
|
4526
|
-
action?: Type<IDivAction>;
|
|
4527
|
-
/**
|
|
4528
|
-
* Click animation. The web only supports the following values: `fade`, `scale`, `native`,
|
|
4529
|
-
* `no_animation` and `set`.
|
|
4530
|
-
*/
|
|
4531
|
-
action_animation?: Type<IDivAnimation>;
|
|
4532
|
-
/**
|
|
4533
|
-
* Multiple actions when clicking on an element.
|
|
4534
|
-
*/
|
|
4535
|
-
actions?: Type<NonEmptyArray<IDivAction>>;
|
|
4536
4567
|
/**
|
|
4537
4568
|
* Horizontal alignment of an element inside the parent element.
|
|
4538
4569
|
*/
|
|
@@ -4557,14 +4588,6 @@ declare class DivSeparator<T extends DivSeparatorProps = DivSeparatorProps> {
|
|
|
4557
4588
|
* Merges cells in a column of the [grid](div-grid.md) element.
|
|
4558
4589
|
*/
|
|
4559
4590
|
column_span?: Type<number | DivExpression>;
|
|
4560
|
-
/**
|
|
4561
|
-
* Separator display settings.
|
|
4562
|
-
*/
|
|
4563
|
-
delimiter_style?: Type<IDivSeparatorDelimiterStyle>;
|
|
4564
|
-
/**
|
|
4565
|
-
* Action when double-clicking on an element.
|
|
4566
|
-
*/
|
|
4567
|
-
doubletap_actions?: Type<NonEmptyArray<IDivAction>>;
|
|
4568
4591
|
/**
|
|
4569
4592
|
* Extensions for additional processing of an element. The list of extensions is given in
|
|
4570
4593
|
* [DivExtension](../../extensions.dita).
|
|
@@ -4574,26 +4597,57 @@ declare class DivSeparator<T extends DivSeparatorProps = DivSeparatorProps> {
|
|
|
4574
4597
|
* Parameters when focusing on an element or losing focus.
|
|
4575
4598
|
*/
|
|
4576
4599
|
focus?: Type<IDivFocus>;
|
|
4600
|
+
/**
|
|
4601
|
+
* Font family:`text` — a standard text font;`display` — a family of fonts with a large font
|
|
4602
|
+
* size.
|
|
4603
|
+
*/
|
|
4604
|
+
font_family?: Type<DivFontFamily | DivExpression>;
|
|
4605
|
+
/**
|
|
4606
|
+
* Font size.
|
|
4607
|
+
*/
|
|
4608
|
+
font_size?: Type<number | DivExpression>;
|
|
4609
|
+
/**
|
|
4610
|
+
* Unit of measurement:`px` — a physical pixel.`dp` — a logical pixel that doesn't depend on
|
|
4611
|
+
* screen density.`sp` — a logical pixel that depends on the font size on a device. Specify
|
|
4612
|
+
* height in `sp`. Only available on Android.
|
|
4613
|
+
*/
|
|
4614
|
+
font_size_unit?: Type<DivSizeUnit | DivExpression>;
|
|
4615
|
+
/**
|
|
4616
|
+
* Style.
|
|
4617
|
+
*/
|
|
4618
|
+
font_weight?: Type<DivFontWeight | DivExpression>;
|
|
4577
4619
|
/**
|
|
4578
4620
|
* Element height. For Android: if there is text in this or in a child element, specify height in
|
|
4579
4621
|
* `sp` to scale the element together with the text. To learn more about units of size
|
|
4580
4622
|
* measurement, see [Layout inside the card](../../layout.dita).
|
|
4581
4623
|
*/
|
|
4582
4624
|
height?: Type<DivSize>;
|
|
4625
|
+
/**
|
|
4626
|
+
* Hint color.
|
|
4627
|
+
*/
|
|
4628
|
+
hint_color?: Type<string | DivExpression>;
|
|
4629
|
+
/**
|
|
4630
|
+
* Hint text.
|
|
4631
|
+
*/
|
|
4632
|
+
hint_text?: Type<string | DivExpression>;
|
|
4583
4633
|
/**
|
|
4584
4634
|
* Element ID. It must be unique within the root element. It is used as `accessibilityIdentifier`
|
|
4585
4635
|
* on iOS.
|
|
4586
4636
|
*/
|
|
4587
4637
|
id?: Type<string>;
|
|
4588
4638
|
/**
|
|
4589
|
-
*
|
|
4590
|
-
* gestures.
|
|
4639
|
+
* Spacing between characters.
|
|
4591
4640
|
*/
|
|
4592
|
-
|
|
4641
|
+
letter_spacing?: Type<number | DivExpression>;
|
|
4642
|
+
/**
|
|
4643
|
+
* Line spacing of the text. Units specified in `font_size_unit`.
|
|
4644
|
+
*/
|
|
4645
|
+
line_height?: Type<number | DivExpression>;
|
|
4593
4646
|
/**
|
|
4594
4647
|
* External margins from the element stroke.
|
|
4595
4648
|
*/
|
|
4596
4649
|
margins?: Type<IDivEdgeInsets>;
|
|
4650
|
+
options: Type<NonEmptyArray<IDivSelectOption>>;
|
|
4597
4651
|
/**
|
|
4598
4652
|
* Internal margins from the element stroke.
|
|
4599
4653
|
*/
|
|
@@ -4607,6 +4661,10 @@ declare class DivSeparator<T extends DivSeparatorProps = DivSeparatorProps> {
|
|
|
4607
4661
|
* [pager](div-pager.md).
|
|
4608
4662
|
*/
|
|
4609
4663
|
selected_actions?: Type<NonEmptyArray<IDivAction>>;
|
|
4664
|
+
/**
|
|
4665
|
+
* Text color.
|
|
4666
|
+
*/
|
|
4667
|
+
text_color?: Type<string | DivExpression>;
|
|
4610
4668
|
/**
|
|
4611
4669
|
* Tooltips linked to an element. A tooltip can be shown by `div-action://show_tooltip?id=`,
|
|
4612
4670
|
* hidden by `div-action://hide_tooltip?id=` where `id` — tooltip id.
|
|
@@ -4636,6 +4694,10 @@ declare class DivSeparator<T extends DivSeparatorProps = DivSeparatorProps> {
|
|
|
4636
4694
|
* Animation starting triggers. Default value: `[state_change, visibility_change]`.
|
|
4637
4695
|
*/
|
|
4638
4696
|
transition_triggers?: Type<NonEmptyArray<DivTransitionTrigger>>;
|
|
4697
|
+
/**
|
|
4698
|
+
* Variable name to store selected from list option `value`.
|
|
4699
|
+
*/
|
|
4700
|
+
value_variable: Type<string>;
|
|
4639
4701
|
/**
|
|
4640
4702
|
* Element visibility.
|
|
4641
4703
|
*/
|
|
@@ -4653,26 +4715,13 @@ declare class DivSeparator<T extends DivSeparatorProps = DivSeparatorProps> {
|
|
|
4653
4715
|
* Element width.
|
|
4654
4716
|
*/
|
|
4655
4717
|
width?: Type<DivSize>;
|
|
4656
|
-
constructor(props
|
|
4718
|
+
constructor(props: Exact<DivSelectProps, T>);
|
|
4657
4719
|
}
|
|
4658
|
-
interface
|
|
4720
|
+
interface DivSelectProps {
|
|
4659
4721
|
/**
|
|
4660
4722
|
* Accessibility settings.
|
|
4661
4723
|
*/
|
|
4662
4724
|
accessibility?: Type<IDivAccessibility>;
|
|
4663
|
-
/**
|
|
4664
|
-
* One action when clicking on an element. Not used if the `actions` parameter is set.
|
|
4665
|
-
*/
|
|
4666
|
-
action?: Type<IDivAction>;
|
|
4667
|
-
/**
|
|
4668
|
-
* Click animation. The web only supports the following values: `fade`, `scale`, `native`,
|
|
4669
|
-
* `no_animation` and `set`.
|
|
4670
|
-
*/
|
|
4671
|
-
action_animation?: Type<IDivAnimation>;
|
|
4672
|
-
/**
|
|
4673
|
-
* Multiple actions when clicking on an element.
|
|
4674
|
-
*/
|
|
4675
|
-
actions?: Type<NonEmptyArray<IDivAction>>;
|
|
4676
4725
|
/**
|
|
4677
4726
|
* Horizontal alignment of an element inside the parent element.
|
|
4678
4727
|
*/
|
|
@@ -4697,14 +4746,6 @@ interface DivSeparatorProps {
|
|
|
4697
4746
|
* Merges cells in a column of the [grid](div-grid.md) element.
|
|
4698
4747
|
*/
|
|
4699
4748
|
column_span?: Type<number | DivExpression>;
|
|
4700
|
-
/**
|
|
4701
|
-
* Separator display settings.
|
|
4702
|
-
*/
|
|
4703
|
-
delimiter_style?: Type<IDivSeparatorDelimiterStyle>;
|
|
4704
|
-
/**
|
|
4705
|
-
* Action when double-clicking on an element.
|
|
4706
|
-
*/
|
|
4707
|
-
doubletap_actions?: Type<NonEmptyArray<IDivAction>>;
|
|
4708
4749
|
/**
|
|
4709
4750
|
* Extensions for additional processing of an element. The list of extensions is given in
|
|
4710
4751
|
* [DivExtension](../../extensions.dita).
|
|
@@ -4714,26 +4755,57 @@ interface DivSeparatorProps {
|
|
|
4714
4755
|
* Parameters when focusing on an element or losing focus.
|
|
4715
4756
|
*/
|
|
4716
4757
|
focus?: Type<IDivFocus>;
|
|
4758
|
+
/**
|
|
4759
|
+
* Font family:`text` — a standard text font;`display` — a family of fonts with a large font
|
|
4760
|
+
* size.
|
|
4761
|
+
*/
|
|
4762
|
+
font_family?: Type<DivFontFamily | DivExpression>;
|
|
4763
|
+
/**
|
|
4764
|
+
* Font size.
|
|
4765
|
+
*/
|
|
4766
|
+
font_size?: Type<number | DivExpression>;
|
|
4767
|
+
/**
|
|
4768
|
+
* Unit of measurement:`px` — a physical pixel.`dp` — a logical pixel that doesn't depend on
|
|
4769
|
+
* screen density.`sp` — a logical pixel that depends on the font size on a device. Specify
|
|
4770
|
+
* height in `sp`. Only available on Android.
|
|
4771
|
+
*/
|
|
4772
|
+
font_size_unit?: Type<DivSizeUnit | DivExpression>;
|
|
4773
|
+
/**
|
|
4774
|
+
* Style.
|
|
4775
|
+
*/
|
|
4776
|
+
font_weight?: Type<DivFontWeight | DivExpression>;
|
|
4717
4777
|
/**
|
|
4718
4778
|
* Element height. For Android: if there is text in this or in a child element, specify height in
|
|
4719
4779
|
* `sp` to scale the element together with the text. To learn more about units of size
|
|
4720
4780
|
* measurement, see [Layout inside the card](../../layout.dita).
|
|
4721
4781
|
*/
|
|
4722
4782
|
height?: Type<DivSize>;
|
|
4783
|
+
/**
|
|
4784
|
+
* Hint color.
|
|
4785
|
+
*/
|
|
4786
|
+
hint_color?: Type<string | DivExpression>;
|
|
4787
|
+
/**
|
|
4788
|
+
* Hint text.
|
|
4789
|
+
*/
|
|
4790
|
+
hint_text?: Type<string | DivExpression>;
|
|
4723
4791
|
/**
|
|
4724
4792
|
* Element ID. It must be unique within the root element. It is used as `accessibilityIdentifier`
|
|
4725
4793
|
* on iOS.
|
|
4726
4794
|
*/
|
|
4727
4795
|
id?: Type<string>;
|
|
4728
4796
|
/**
|
|
4729
|
-
*
|
|
4730
|
-
* gestures.
|
|
4797
|
+
* Spacing between characters.
|
|
4731
4798
|
*/
|
|
4732
|
-
|
|
4799
|
+
letter_spacing?: Type<number | DivExpression>;
|
|
4800
|
+
/**
|
|
4801
|
+
* Line spacing of the text. Units specified in `font_size_unit`.
|
|
4802
|
+
*/
|
|
4803
|
+
line_height?: Type<number | DivExpression>;
|
|
4733
4804
|
/**
|
|
4734
4805
|
* External margins from the element stroke.
|
|
4735
4806
|
*/
|
|
4736
4807
|
margins?: Type<IDivEdgeInsets>;
|
|
4808
|
+
options: Type<NonEmptyArray<IDivSelectOption>>;
|
|
4737
4809
|
/**
|
|
4738
4810
|
* Internal margins from the element stroke.
|
|
4739
4811
|
*/
|
|
@@ -4747,6 +4819,10 @@ interface DivSeparatorProps {
|
|
|
4747
4819
|
* [pager](div-pager.md).
|
|
4748
4820
|
*/
|
|
4749
4821
|
selected_actions?: Type<NonEmptyArray<IDivAction>>;
|
|
4822
|
+
/**
|
|
4823
|
+
* Text color.
|
|
4824
|
+
*/
|
|
4825
|
+
text_color?: Type<string | DivExpression>;
|
|
4750
4826
|
/**
|
|
4751
4827
|
* Tooltips linked to an element. A tooltip can be shown by `div-action://show_tooltip?id=`,
|
|
4752
4828
|
* hidden by `div-action://hide_tooltip?id=` where `id` — tooltip id.
|
|
@@ -4776,6 +4852,10 @@ interface DivSeparatorProps {
|
|
|
4776
4852
|
* Animation starting triggers. Default value: `[state_change, visibility_change]`.
|
|
4777
4853
|
*/
|
|
4778
4854
|
transition_triggers?: Type<NonEmptyArray<DivTransitionTrigger>>;
|
|
4855
|
+
/**
|
|
4856
|
+
* Variable name to store selected from list option `value`.
|
|
4857
|
+
*/
|
|
4858
|
+
value_variable: Type<string>;
|
|
4779
4859
|
/**
|
|
4780
4860
|
* Element visibility.
|
|
4781
4861
|
*/
|
|
@@ -4795,184 +4875,75 @@ interface DivSeparatorProps {
|
|
|
4795
4875
|
width?: Type<DivSize>;
|
|
4796
4876
|
}
|
|
4797
4877
|
/**
|
|
4798
|
-
*
|
|
4878
|
+
* Option to choose from list.
|
|
4799
4879
|
*/
|
|
4800
|
-
interface
|
|
4880
|
+
interface IDivSelectOption {
|
|
4801
4881
|
/**
|
|
4802
|
-
*
|
|
4803
|
-
*
|
|
4882
|
+
* Option text from list to be shown in UI. If not specified, option `value` will be used
|
|
4883
|
+
* instead.
|
|
4804
4884
|
*/
|
|
4805
|
-
|
|
4885
|
+
text?: Type<string | DivExpression>;
|
|
4806
4886
|
/**
|
|
4807
|
-
*
|
|
4887
|
+
* Option value from list.
|
|
4808
4888
|
*/
|
|
4809
|
-
|
|
4889
|
+
value: Type<string | DivExpression>;
|
|
4810
4890
|
}
|
|
4811
|
-
declare type DelimiterStyleOrientation = 'vertical' | 'horizontal';
|
|
4812
4891
|
|
|
4813
4892
|
/**
|
|
4814
|
-
*
|
|
4893
|
+
* A separating line between elements.
|
|
4815
4894
|
*/
|
|
4816
|
-
|
|
4895
|
+
declare class DivSeparator<T extends DivSeparatorProps = DivSeparatorProps> {
|
|
4896
|
+
readonly _props?: Exact<DivSeparatorProps, T>;
|
|
4897
|
+
readonly type = "separator";
|
|
4817
4898
|
/**
|
|
4818
|
-
*
|
|
4899
|
+
* Accessibility settings.
|
|
4819
4900
|
*/
|
|
4820
|
-
|
|
4901
|
+
accessibility?: Type<IDivAccessibility>;
|
|
4821
4902
|
/**
|
|
4822
|
-
*
|
|
4903
|
+
* One action when clicking on an element. Not used if the `actions` parameter is set.
|
|
4823
4904
|
*/
|
|
4824
|
-
|
|
4905
|
+
action?: Type<IDivAction>;
|
|
4825
4906
|
/**
|
|
4826
|
-
*
|
|
4907
|
+
* Click animation. The web only supports the following values: `fade`, `scale`, `native`,
|
|
4908
|
+
* `no_animation` and `set`.
|
|
4827
4909
|
*/
|
|
4828
|
-
|
|
4910
|
+
action_animation?: Type<IDivAnimation>;
|
|
4829
4911
|
/**
|
|
4830
|
-
*
|
|
4912
|
+
* Multiple actions when clicking on an element.
|
|
4831
4913
|
*/
|
|
4832
|
-
|
|
4833
|
-
}
|
|
4834
|
-
|
|
4835
|
-
declare type DivShape = DivRoundedRectangleShape | DivCircleShape;
|
|
4836
|
-
|
|
4837
|
-
/**
|
|
4838
|
-
* Drawable of a simple geometric shape.
|
|
4839
|
-
*/
|
|
4840
|
-
declare class DivShapeDrawable<T extends DivShapeDrawableProps = DivShapeDrawableProps> {
|
|
4841
|
-
readonly _props?: Exact<DivShapeDrawableProps, T>;
|
|
4842
|
-
readonly type = "shape_drawable";
|
|
4914
|
+
actions?: Type<NonEmptyArray<IDivAction>>;
|
|
4843
4915
|
/**
|
|
4844
|
-
*
|
|
4845
|
-
*
|
|
4846
|
-
* @deprecated
|
|
4916
|
+
* Horizontal alignment of an element inside the parent element.
|
|
4847
4917
|
*/
|
|
4848
|
-
|
|
4918
|
+
alignment_horizontal?: Type<DivAlignmentHorizontal | DivExpression>;
|
|
4849
4919
|
/**
|
|
4850
|
-
*
|
|
4920
|
+
* Vertical alignment of an element inside the parent element.
|
|
4851
4921
|
*/
|
|
4852
|
-
|
|
4922
|
+
alignment_vertical?: Type<DivAlignmentVertical | DivExpression>;
|
|
4853
4923
|
/**
|
|
4854
|
-
*
|
|
4855
|
-
*
|
|
4856
|
-
* @deprecated
|
|
4924
|
+
* Sets transparency of the entire element: `0` — completely transparent, `1` — opaque.
|
|
4857
4925
|
*/
|
|
4858
|
-
|
|
4859
|
-
constructor(props: Exact<DivShapeDrawableProps, T>);
|
|
4860
|
-
}
|
|
4861
|
-
interface DivShapeDrawableProps {
|
|
4926
|
+
alpha?: Type<number | DivExpression>;
|
|
4862
4927
|
/**
|
|
4863
|
-
*
|
|
4864
|
-
*
|
|
4865
|
-
* @deprecated
|
|
4928
|
+
* Element background. It can contain multiple layers.
|
|
4866
4929
|
*/
|
|
4867
|
-
|
|
4930
|
+
background?: Type<NonEmptyArray<DivBackground>>;
|
|
4868
4931
|
/**
|
|
4869
|
-
*
|
|
4932
|
+
* Element stroke.
|
|
4870
4933
|
*/
|
|
4871
|
-
|
|
4934
|
+
border?: Type<IDivBorder>;
|
|
4872
4935
|
/**
|
|
4873
|
-
*
|
|
4874
|
-
*
|
|
4875
|
-
* @deprecated
|
|
4936
|
+
* Merges cells in a column of the [grid](div-grid.md) element.
|
|
4876
4937
|
*/
|
|
4877
|
-
|
|
4878
|
-
}
|
|
4879
|
-
|
|
4880
|
-
declare type DivSize = DivFixedSize | DivMatchParentSize | DivWrapContentSize;
|
|
4881
|
-
|
|
4882
|
-
declare type DivSizeUnit = 'dp' | 'sp' | 'px';
|
|
4883
|
-
|
|
4884
|
-
/**
|
|
4885
|
-
* Slide animation.
|
|
4886
|
-
*/
|
|
4887
|
-
declare class DivSlideTransition<T extends DivSlideTransitionProps = DivSlideTransitionProps> {
|
|
4888
|
-
readonly _props?: Exact<DivSlideTransitionProps, T>;
|
|
4889
|
-
readonly type = "slide";
|
|
4938
|
+
column_span?: Type<number | DivExpression>;
|
|
4890
4939
|
/**
|
|
4891
|
-
*
|
|
4892
|
-
* disappearing. If no value is specified, the distance to the selected edge of a parent element
|
|
4893
|
-
* is used.
|
|
4940
|
+
* Separator display settings.
|
|
4894
4941
|
*/
|
|
4895
|
-
|
|
4896
|
-
/**
|
|
4897
|
-
* Animation duration in milliseconds.
|
|
4898
|
-
*/
|
|
4899
|
-
duration?: Type<number | DivExpression>;
|
|
4900
|
-
/**
|
|
4901
|
-
* Edge of a parent element for one of the action types:where the element will move from when
|
|
4902
|
-
* appearing;where the element will move to when disappearing.
|
|
4903
|
-
*/
|
|
4904
|
-
edge?: Type<DivSlideTransitionEdge | DivExpression>;
|
|
4905
|
-
/**
|
|
4906
|
-
* Transition speed nature.
|
|
4907
|
-
*/
|
|
4908
|
-
interpolator?: Type<DivAnimationInterpolator | DivExpression>;
|
|
4909
|
-
/**
|
|
4910
|
-
* Delay in milliseconds before animation starts.
|
|
4911
|
-
*/
|
|
4912
|
-
start_delay?: Type<number | DivExpression>;
|
|
4913
|
-
constructor(props?: Exact<DivSlideTransitionProps, T>);
|
|
4914
|
-
}
|
|
4915
|
-
interface DivSlideTransitionProps {
|
|
4916
|
-
/**
|
|
4917
|
-
* A fixed value of an offset which the element starts appearing from or at which it finishes
|
|
4918
|
-
* disappearing. If no value is specified, the distance to the selected edge of a parent element
|
|
4919
|
-
* is used.
|
|
4920
|
-
*/
|
|
4921
|
-
distance?: Type<IDivDimension>;
|
|
4922
|
-
/**
|
|
4923
|
-
* Animation duration in milliseconds.
|
|
4924
|
-
*/
|
|
4925
|
-
duration?: Type<number | DivExpression>;
|
|
4926
|
-
/**
|
|
4927
|
-
* Edge of a parent element for one of the action types:where the element will move from when
|
|
4928
|
-
* appearing;where the element will move to when disappearing.
|
|
4929
|
-
*/
|
|
4930
|
-
edge?: Type<DivSlideTransitionEdge | DivExpression>;
|
|
4931
|
-
/**
|
|
4932
|
-
* Transition speed nature.
|
|
4933
|
-
*/
|
|
4934
|
-
interpolator?: Type<DivAnimationInterpolator | DivExpression>;
|
|
4935
|
-
/**
|
|
4936
|
-
* Delay in milliseconds before animation starts.
|
|
4937
|
-
*/
|
|
4938
|
-
start_delay?: Type<number | DivExpression>;
|
|
4939
|
-
}
|
|
4940
|
-
declare type DivSlideTransitionEdge = 'left' | 'top' | 'right' | 'bottom';
|
|
4941
|
-
|
|
4942
|
-
/**
|
|
4943
|
-
* Slider for selecting a value in the range.
|
|
4944
|
-
*/
|
|
4945
|
-
declare class DivSlider<T extends DivSliderProps = DivSliderProps> {
|
|
4946
|
-
readonly _props?: Exact<DivSliderProps, T>;
|
|
4947
|
-
readonly type = "slider";
|
|
4948
|
-
/**
|
|
4949
|
-
* Accessibility settings.
|
|
4950
|
-
*/
|
|
4951
|
-
accessibility?: Type<IDivAccessibility>;
|
|
4952
|
-
/**
|
|
4953
|
-
* Horizontal alignment of an element inside the parent element.
|
|
4954
|
-
*/
|
|
4955
|
-
alignment_horizontal?: Type<DivAlignmentHorizontal | DivExpression>;
|
|
4956
|
-
/**
|
|
4957
|
-
* Vertical alignment of an element inside the parent element.
|
|
4958
|
-
*/
|
|
4959
|
-
alignment_vertical?: Type<DivAlignmentVertical | DivExpression>;
|
|
4960
|
-
/**
|
|
4961
|
-
* Sets transparency of the entire element: `0` — completely transparent, `1` — opaque.
|
|
4962
|
-
*/
|
|
4963
|
-
alpha?: Type<number | DivExpression>;
|
|
4964
|
-
/**
|
|
4965
|
-
* Element background. It can contain multiple layers.
|
|
4966
|
-
*/
|
|
4967
|
-
background?: Type<NonEmptyArray<DivBackground>>;
|
|
4968
|
-
/**
|
|
4969
|
-
* Element stroke.
|
|
4970
|
-
*/
|
|
4971
|
-
border?: Type<IDivBorder>;
|
|
4942
|
+
delimiter_style?: Type<IDivSeparatorDelimiterStyle>;
|
|
4972
4943
|
/**
|
|
4973
|
-
*
|
|
4944
|
+
* Action when double-clicking on an element.
|
|
4974
4945
|
*/
|
|
4975
|
-
|
|
4946
|
+
doubletap_actions?: Type<NonEmptyArray<IDivAction>>;
|
|
4976
4947
|
/**
|
|
4977
4948
|
* Extensions for additional processing of an element. The list of extensions is given in
|
|
4978
4949
|
* [DivExtension](../../extensions.dita).
|
|
@@ -4994,17 +4965,14 @@ declare class DivSlider<T extends DivSliderProps = DivSliderProps> {
|
|
|
4994
4965
|
*/
|
|
4995
4966
|
id?: Type<string>;
|
|
4996
4967
|
/**
|
|
4997
|
-
*
|
|
4998
|
-
|
|
4999
|
-
margins?: Type<IDivEdgeInsets>;
|
|
5000
|
-
/**
|
|
5001
|
-
* Maximum value. It must be greater than the minimum value.
|
|
4968
|
+
* Action when long-clicking an element. Doesn't work on devices that don't support touch
|
|
4969
|
+
* gestures.
|
|
5002
4970
|
*/
|
|
5003
|
-
|
|
4971
|
+
longtap_actions?: Type<NonEmptyArray<IDivAction>>;
|
|
5004
4972
|
/**
|
|
5005
|
-
*
|
|
4973
|
+
* External margins from the element stroke.
|
|
5006
4974
|
*/
|
|
5007
|
-
|
|
4975
|
+
margins?: Type<IDivEdgeInsets>;
|
|
5008
4976
|
/**
|
|
5009
4977
|
* Internal margins from the element stroke.
|
|
5010
4978
|
*/
|
|
@@ -5013,60 +4981,16 @@ declare class DivSlider<T extends DivSliderProps = DivSliderProps> {
|
|
|
5013
4981
|
* Merges cells in a string of the [grid](div-grid.md) element.
|
|
5014
4982
|
*/
|
|
5015
4983
|
row_span?: Type<number | DivExpression>;
|
|
5016
|
-
/**
|
|
5017
|
-
* Accessibility settings for the second pointer.
|
|
5018
|
-
*/
|
|
5019
|
-
secondary_value_accessibility?: Type<IDivAccessibility>;
|
|
5020
4984
|
/**
|
|
5021
4985
|
* List of [actions](div-action.md) to be executed when selecting an element in
|
|
5022
4986
|
* [pager](div-pager.md).
|
|
5023
4987
|
*/
|
|
5024
4988
|
selected_actions?: Type<NonEmptyArray<IDivAction>>;
|
|
5025
|
-
/**
|
|
5026
|
-
* Style of the second pointer.
|
|
5027
|
-
*/
|
|
5028
|
-
thumb_secondary_style?: Type<DivDrawable>;
|
|
5029
|
-
/**
|
|
5030
|
-
* Text style in the second pointer.
|
|
5031
|
-
*/
|
|
5032
|
-
thumb_secondary_text_style?: Type<IDivSliderTextStyle>;
|
|
5033
|
-
/**
|
|
5034
|
-
* Name of the variable to store the second pointer's current value.
|
|
5035
|
-
*/
|
|
5036
|
-
thumb_secondary_value_variable?: Type<string>;
|
|
5037
|
-
/**
|
|
5038
|
-
* Style of the first pointer.
|
|
5039
|
-
*/
|
|
5040
|
-
thumb_style: Type<DivDrawable>;
|
|
5041
|
-
/**
|
|
5042
|
-
* Text style in the first pointer.
|
|
5043
|
-
*/
|
|
5044
|
-
thumb_text_style?: Type<IDivSliderTextStyle>;
|
|
5045
|
-
/**
|
|
5046
|
-
* Name of the variable to store the pointer's current value.
|
|
5047
|
-
*/
|
|
5048
|
-
thumb_value_variable?: Type<string>;
|
|
5049
|
-
/**
|
|
5050
|
-
* Style of active serifs.
|
|
5051
|
-
*/
|
|
5052
|
-
tick_mark_active_style?: Type<DivDrawable>;
|
|
5053
|
-
/**
|
|
5054
|
-
* Style of inactive serifs.
|
|
5055
|
-
*/
|
|
5056
|
-
tick_mark_inactive_style?: Type<DivDrawable>;
|
|
5057
4989
|
/**
|
|
5058
4990
|
* Tooltips linked to an element. A tooltip can be shown by `div-action://show_tooltip?id=`,
|
|
5059
4991
|
* hidden by `div-action://hide_tooltip?id=` where `id` — tooltip id.
|
|
5060
4992
|
*/
|
|
5061
4993
|
tooltips?: Type<NonEmptyArray<IDivTooltip>>;
|
|
5062
|
-
/**
|
|
5063
|
-
* Style of the active part of a scale.
|
|
5064
|
-
*/
|
|
5065
|
-
track_active_style: Type<DivDrawable>;
|
|
5066
|
-
/**
|
|
5067
|
-
* Style of the inactive part of a scale.
|
|
5068
|
-
*/
|
|
5069
|
-
track_inactive_style: Type<DivDrawable>;
|
|
5070
4994
|
/**
|
|
5071
4995
|
* Applies the passed transformation to the element. Content that doesn't fit into the original
|
|
5072
4996
|
* view area is cut off.
|
|
@@ -5108,13 +5032,26 @@ declare class DivSlider<T extends DivSliderProps = DivSliderProps> {
|
|
|
5108
5032
|
* Element width.
|
|
5109
5033
|
*/
|
|
5110
5034
|
width?: Type<DivSize>;
|
|
5111
|
-
constructor(props
|
|
5035
|
+
constructor(props?: Exact<DivSeparatorProps, T>);
|
|
5112
5036
|
}
|
|
5113
|
-
interface
|
|
5037
|
+
interface DivSeparatorProps {
|
|
5114
5038
|
/**
|
|
5115
5039
|
* Accessibility settings.
|
|
5116
5040
|
*/
|
|
5117
5041
|
accessibility?: Type<IDivAccessibility>;
|
|
5042
|
+
/**
|
|
5043
|
+
* One action when clicking on an element. Not used if the `actions` parameter is set.
|
|
5044
|
+
*/
|
|
5045
|
+
action?: Type<IDivAction>;
|
|
5046
|
+
/**
|
|
5047
|
+
* Click animation. The web only supports the following values: `fade`, `scale`, `native`,
|
|
5048
|
+
* `no_animation` and `set`.
|
|
5049
|
+
*/
|
|
5050
|
+
action_animation?: Type<IDivAnimation>;
|
|
5051
|
+
/**
|
|
5052
|
+
* Multiple actions when clicking on an element.
|
|
5053
|
+
*/
|
|
5054
|
+
actions?: Type<NonEmptyArray<IDivAction>>;
|
|
5118
5055
|
/**
|
|
5119
5056
|
* Horizontal alignment of an element inside the parent element.
|
|
5120
5057
|
*/
|
|
@@ -5139,6 +5076,14 @@ interface DivSliderProps {
|
|
|
5139
5076
|
* Merges cells in a column of the [grid](div-grid.md) element.
|
|
5140
5077
|
*/
|
|
5141
5078
|
column_span?: Type<number | DivExpression>;
|
|
5079
|
+
/**
|
|
5080
|
+
* Separator display settings.
|
|
5081
|
+
*/
|
|
5082
|
+
delimiter_style?: Type<IDivSeparatorDelimiterStyle>;
|
|
5083
|
+
/**
|
|
5084
|
+
* Action when double-clicking on an element.
|
|
5085
|
+
*/
|
|
5086
|
+
doubletap_actions?: Type<NonEmptyArray<IDivAction>>;
|
|
5142
5087
|
/**
|
|
5143
5088
|
* Extensions for additional processing of an element. The list of extensions is given in
|
|
5144
5089
|
* [DivExtension](../../extensions.dita).
|
|
@@ -5160,17 +5105,14 @@ interface DivSliderProps {
|
|
|
5160
5105
|
*/
|
|
5161
5106
|
id?: Type<string>;
|
|
5162
5107
|
/**
|
|
5163
|
-
*
|
|
5164
|
-
|
|
5165
|
-
margins?: Type<IDivEdgeInsets>;
|
|
5166
|
-
/**
|
|
5167
|
-
* Maximum value. It must be greater than the minimum value.
|
|
5108
|
+
* Action when long-clicking an element. Doesn't work on devices that don't support touch
|
|
5109
|
+
* gestures.
|
|
5168
5110
|
*/
|
|
5169
|
-
|
|
5111
|
+
longtap_actions?: Type<NonEmptyArray<IDivAction>>;
|
|
5170
5112
|
/**
|
|
5171
|
-
*
|
|
5113
|
+
* External margins from the element stroke.
|
|
5172
5114
|
*/
|
|
5173
|
-
|
|
5115
|
+
margins?: Type<IDivEdgeInsets>;
|
|
5174
5116
|
/**
|
|
5175
5117
|
* Internal margins from the element stroke.
|
|
5176
5118
|
*/
|
|
@@ -5179,60 +5121,16 @@ interface DivSliderProps {
|
|
|
5179
5121
|
* Merges cells in a string of the [grid](div-grid.md) element.
|
|
5180
5122
|
*/
|
|
5181
5123
|
row_span?: Type<number | DivExpression>;
|
|
5182
|
-
/**
|
|
5183
|
-
* Accessibility settings for the second pointer.
|
|
5184
|
-
*/
|
|
5185
|
-
secondary_value_accessibility?: Type<IDivAccessibility>;
|
|
5186
5124
|
/**
|
|
5187
5125
|
* List of [actions](div-action.md) to be executed when selecting an element in
|
|
5188
5126
|
* [pager](div-pager.md).
|
|
5189
5127
|
*/
|
|
5190
5128
|
selected_actions?: Type<NonEmptyArray<IDivAction>>;
|
|
5191
|
-
/**
|
|
5192
|
-
* Style of the second pointer.
|
|
5193
|
-
*/
|
|
5194
|
-
thumb_secondary_style?: Type<DivDrawable>;
|
|
5195
|
-
/**
|
|
5196
|
-
* Text style in the second pointer.
|
|
5197
|
-
*/
|
|
5198
|
-
thumb_secondary_text_style?: Type<IDivSliderTextStyle>;
|
|
5199
|
-
/**
|
|
5200
|
-
* Name of the variable to store the second pointer's current value.
|
|
5201
|
-
*/
|
|
5202
|
-
thumb_secondary_value_variable?: Type<string>;
|
|
5203
|
-
/**
|
|
5204
|
-
* Style of the first pointer.
|
|
5205
|
-
*/
|
|
5206
|
-
thumb_style: Type<DivDrawable>;
|
|
5207
|
-
/**
|
|
5208
|
-
* Text style in the first pointer.
|
|
5209
|
-
*/
|
|
5210
|
-
thumb_text_style?: Type<IDivSliderTextStyle>;
|
|
5211
|
-
/**
|
|
5212
|
-
* Name of the variable to store the pointer's current value.
|
|
5213
|
-
*/
|
|
5214
|
-
thumb_value_variable?: Type<string>;
|
|
5215
|
-
/**
|
|
5216
|
-
* Style of active serifs.
|
|
5217
|
-
*/
|
|
5218
|
-
tick_mark_active_style?: Type<DivDrawable>;
|
|
5219
|
-
/**
|
|
5220
|
-
* Style of inactive serifs.
|
|
5221
|
-
*/
|
|
5222
|
-
tick_mark_inactive_style?: Type<DivDrawable>;
|
|
5223
5129
|
/**
|
|
5224
5130
|
* Tooltips linked to an element. A tooltip can be shown by `div-action://show_tooltip?id=`,
|
|
5225
5131
|
* hidden by `div-action://hide_tooltip?id=` where `id` — tooltip id.
|
|
5226
5132
|
*/
|
|
5227
5133
|
tooltips?: Type<NonEmptyArray<IDivTooltip>>;
|
|
5228
|
-
/**
|
|
5229
|
-
* Style of the active part of a scale.
|
|
5230
|
-
*/
|
|
5231
|
-
track_active_style: Type<DivDrawable>;
|
|
5232
|
-
/**
|
|
5233
|
-
* Style of the inactive part of a scale.
|
|
5234
|
-
*/
|
|
5235
|
-
track_inactive_style: Type<DivDrawable>;
|
|
5236
5134
|
/**
|
|
5237
5135
|
* Applies the passed transformation to the element. Content that doesn't fit into the original
|
|
5238
5136
|
* view area is cut off.
|
|
@@ -5275,51 +5173,157 @@ interface DivSliderProps {
|
|
|
5275
5173
|
*/
|
|
5276
5174
|
width?: Type<DivSize>;
|
|
5277
5175
|
}
|
|
5278
|
-
|
|
5279
|
-
|
|
5280
|
-
|
|
5281
|
-
|
|
5282
|
-
font_size: Type<number | DivExpression>;
|
|
5283
|
-
font_size_unit?: Type<DivSizeUnit | DivExpression>;
|
|
5284
|
-
/**
|
|
5285
|
-
* Style.
|
|
5286
|
-
*/
|
|
5287
|
-
font_weight?: Type<DivFontWeight | DivExpression>;
|
|
5176
|
+
/**
|
|
5177
|
+
* Separator display settings.
|
|
5178
|
+
*/
|
|
5179
|
+
interface IDivSeparatorDelimiterStyle {
|
|
5288
5180
|
/**
|
|
5289
|
-
*
|
|
5181
|
+
* Separator color. To prevent the separator from being displayed, set transparency in the alpha
|
|
5182
|
+
* channel. For example, `#00FFFFFF`.
|
|
5290
5183
|
*/
|
|
5291
|
-
|
|
5184
|
+
color?: Type<string | DivExpression>;
|
|
5292
5185
|
/**
|
|
5293
|
-
*
|
|
5186
|
+
* Separator orientation:`vertical` — vertical;`horizontal` — horizontal.<
|
|
5294
5187
|
*/
|
|
5295
|
-
|
|
5188
|
+
orientation?: Type<DelimiterStyleOrientation | DivExpression>;
|
|
5296
5189
|
}
|
|
5190
|
+
declare type DelimiterStyleOrientation = 'vertical' | 'horizontal';
|
|
5297
5191
|
|
|
5298
5192
|
/**
|
|
5299
|
-
*
|
|
5193
|
+
* Element shadow.
|
|
5300
5194
|
*/
|
|
5301
|
-
|
|
5302
|
-
readonly _props?: Exact<DivSolidBackgroundProps, T>;
|
|
5303
|
-
readonly type = "solid";
|
|
5195
|
+
interface IDivShadow {
|
|
5304
5196
|
/**
|
|
5305
|
-
*
|
|
5197
|
+
* Shadow transparency.
|
|
5306
5198
|
*/
|
|
5307
|
-
|
|
5308
|
-
constructor(props: Exact<DivSolidBackgroundProps, T>);
|
|
5309
|
-
}
|
|
5310
|
-
interface DivSolidBackgroundProps {
|
|
5199
|
+
alpha?: Type<number | DivExpression>;
|
|
5311
5200
|
/**
|
|
5312
|
-
*
|
|
5201
|
+
* Blur intensity.
|
|
5202
|
+
*/
|
|
5203
|
+
blur?: Type<number | DivExpression>;
|
|
5204
|
+
/**
|
|
5205
|
+
* Shadow color.
|
|
5206
|
+
*/
|
|
5207
|
+
color?: Type<string | DivExpression>;
|
|
5208
|
+
/**
|
|
5209
|
+
* Shadow offset.
|
|
5210
|
+
*/
|
|
5211
|
+
offset: Type<IDivPoint>;
|
|
5212
|
+
}
|
|
5213
|
+
|
|
5214
|
+
declare type DivShape = DivRoundedRectangleShape | DivCircleShape;
|
|
5215
|
+
|
|
5216
|
+
/**
|
|
5217
|
+
* Drawable of a simple geometric shape.
|
|
5218
|
+
*/
|
|
5219
|
+
declare class DivShapeDrawable<T extends DivShapeDrawableProps = DivShapeDrawableProps> {
|
|
5220
|
+
readonly _props?: Exact<DivShapeDrawableProps, T>;
|
|
5221
|
+
readonly type = "shape_drawable";
|
|
5222
|
+
/**
|
|
5223
|
+
* Fill color.
|
|
5224
|
+
*
|
|
5225
|
+
* @deprecated
|
|
5226
|
+
*/
|
|
5227
|
+
color: Type<string | DivExpression>;
|
|
5228
|
+
/**
|
|
5229
|
+
* Shape.
|
|
5230
|
+
*/
|
|
5231
|
+
shape: Type<DivShape>;
|
|
5232
|
+
/**
|
|
5233
|
+
* Stroke style.
|
|
5234
|
+
*
|
|
5235
|
+
* @deprecated
|
|
5236
|
+
*/
|
|
5237
|
+
stroke?: Type<IDivStroke>;
|
|
5238
|
+
constructor(props: Exact<DivShapeDrawableProps, T>);
|
|
5239
|
+
}
|
|
5240
|
+
interface DivShapeDrawableProps {
|
|
5241
|
+
/**
|
|
5242
|
+
* Fill color.
|
|
5243
|
+
*
|
|
5244
|
+
* @deprecated
|
|
5313
5245
|
*/
|
|
5314
5246
|
color: Type<string | DivExpression>;
|
|
5247
|
+
/**
|
|
5248
|
+
* Shape.
|
|
5249
|
+
*/
|
|
5250
|
+
shape: Type<DivShape>;
|
|
5251
|
+
/**
|
|
5252
|
+
* Stroke style.
|
|
5253
|
+
*
|
|
5254
|
+
* @deprecated
|
|
5255
|
+
*/
|
|
5256
|
+
stroke?: Type<IDivStroke>;
|
|
5315
5257
|
}
|
|
5316
5258
|
|
|
5259
|
+
declare type DivSize = DivFixedSize | DivMatchParentSize | DivWrapContentSize;
|
|
5260
|
+
|
|
5261
|
+
declare type DivSizeUnit = 'dp' | 'sp' | 'px';
|
|
5262
|
+
|
|
5317
5263
|
/**
|
|
5318
|
-
*
|
|
5264
|
+
* Slide animation.
|
|
5319
5265
|
*/
|
|
5320
|
-
declare class
|
|
5321
|
-
readonly _props?: Exact<
|
|
5322
|
-
readonly type = "
|
|
5266
|
+
declare class DivSlideTransition<T extends DivSlideTransitionProps = DivSlideTransitionProps> {
|
|
5267
|
+
readonly _props?: Exact<DivSlideTransitionProps, T>;
|
|
5268
|
+
readonly type = "slide";
|
|
5269
|
+
/**
|
|
5270
|
+
* A fixed value of an offset which the element starts appearing from or at which it finishes
|
|
5271
|
+
* disappearing. If no value is specified, the distance to the selected edge of a parent element
|
|
5272
|
+
* is used.
|
|
5273
|
+
*/
|
|
5274
|
+
distance?: Type<IDivDimension>;
|
|
5275
|
+
/**
|
|
5276
|
+
* Animation duration in milliseconds.
|
|
5277
|
+
*/
|
|
5278
|
+
duration?: Type<number | DivExpression>;
|
|
5279
|
+
/**
|
|
5280
|
+
* Edge of a parent element for one of the action types:where the element will move from when
|
|
5281
|
+
* appearing;where the element will move to when disappearing.
|
|
5282
|
+
*/
|
|
5283
|
+
edge?: Type<DivSlideTransitionEdge | DivExpression>;
|
|
5284
|
+
/**
|
|
5285
|
+
* Transition speed nature.
|
|
5286
|
+
*/
|
|
5287
|
+
interpolator?: Type<DivAnimationInterpolator | DivExpression>;
|
|
5288
|
+
/**
|
|
5289
|
+
* Delay in milliseconds before animation starts.
|
|
5290
|
+
*/
|
|
5291
|
+
start_delay?: Type<number | DivExpression>;
|
|
5292
|
+
constructor(props?: Exact<DivSlideTransitionProps, T>);
|
|
5293
|
+
}
|
|
5294
|
+
interface DivSlideTransitionProps {
|
|
5295
|
+
/**
|
|
5296
|
+
* A fixed value of an offset which the element starts appearing from or at which it finishes
|
|
5297
|
+
* disappearing. If no value is specified, the distance to the selected edge of a parent element
|
|
5298
|
+
* is used.
|
|
5299
|
+
*/
|
|
5300
|
+
distance?: Type<IDivDimension>;
|
|
5301
|
+
/**
|
|
5302
|
+
* Animation duration in milliseconds.
|
|
5303
|
+
*/
|
|
5304
|
+
duration?: Type<number | DivExpression>;
|
|
5305
|
+
/**
|
|
5306
|
+
* Edge of a parent element for one of the action types:where the element will move from when
|
|
5307
|
+
* appearing;where the element will move to when disappearing.
|
|
5308
|
+
*/
|
|
5309
|
+
edge?: Type<DivSlideTransitionEdge | DivExpression>;
|
|
5310
|
+
/**
|
|
5311
|
+
* Transition speed nature.
|
|
5312
|
+
*/
|
|
5313
|
+
interpolator?: Type<DivAnimationInterpolator | DivExpression>;
|
|
5314
|
+
/**
|
|
5315
|
+
* Delay in milliseconds before animation starts.
|
|
5316
|
+
*/
|
|
5317
|
+
start_delay?: Type<number | DivExpression>;
|
|
5318
|
+
}
|
|
5319
|
+
declare type DivSlideTransitionEdge = 'left' | 'top' | 'right' | 'bottom';
|
|
5320
|
+
|
|
5321
|
+
/**
|
|
5322
|
+
* Slider for selecting a value in the range.
|
|
5323
|
+
*/
|
|
5324
|
+
declare class DivSlider<T extends DivSliderProps = DivSliderProps> {
|
|
5325
|
+
readonly _props?: Exact<DivSliderProps, T>;
|
|
5326
|
+
readonly type = "slider";
|
|
5323
5327
|
/**
|
|
5324
5328
|
* Accessibility settings.
|
|
5325
5329
|
*/
|
|
@@ -5348,17 +5352,6 @@ declare class DivState<T extends DivStateProps = DivStateProps> {
|
|
|
5348
5352
|
* Merges cells in a column of the [grid](div-grid.md) element.
|
|
5349
5353
|
*/
|
|
5350
5354
|
column_span?: Type<number | DivExpression>;
|
|
5351
|
-
/**
|
|
5352
|
-
* ID of the status that will be set by default. If the parameter isnt set, the first state of
|
|
5353
|
-
* the `states` will be set.
|
|
5354
|
-
*/
|
|
5355
|
-
default_state_id?: Type<string | DivExpression>;
|
|
5356
|
-
/**
|
|
5357
|
-
* ID of an element to search in the hierarchy. The ID must be unique at one hierarchy level.
|
|
5358
|
-
*
|
|
5359
|
-
* @deprecated
|
|
5360
|
-
*/
|
|
5361
|
-
div_id?: Type<string>;
|
|
5362
5355
|
/**
|
|
5363
5356
|
* Extensions for additional processing of an element. The list of extensions is given in
|
|
5364
5357
|
* [DivExtension](../../extensions.dita).
|
|
@@ -5383,6 +5376,14 @@ declare class DivState<T extends DivStateProps = DivStateProps> {
|
|
|
5383
5376
|
* External margins from the element stroke.
|
|
5384
5377
|
*/
|
|
5385
5378
|
margins?: Type<IDivEdgeInsets>;
|
|
5379
|
+
/**
|
|
5380
|
+
* Maximum value. It must be greater than the minimum value.
|
|
5381
|
+
*/
|
|
5382
|
+
max_value?: Type<number | DivExpression>;
|
|
5383
|
+
/**
|
|
5384
|
+
* Minimum value.
|
|
5385
|
+
*/
|
|
5386
|
+
min_value?: Type<number | DivExpression>;
|
|
5386
5387
|
/**
|
|
5387
5388
|
* Internal margins from the element stroke.
|
|
5388
5389
|
*/
|
|
@@ -5391,33 +5392,65 @@ declare class DivState<T extends DivStateProps = DivStateProps> {
|
|
|
5391
5392
|
* Merges cells in a string of the [grid](div-grid.md) element.
|
|
5392
5393
|
*/
|
|
5393
5394
|
row_span?: Type<number | DivExpression>;
|
|
5395
|
+
/**
|
|
5396
|
+
* Accessibility settings for the second pointer.
|
|
5397
|
+
*/
|
|
5398
|
+
secondary_value_accessibility?: Type<IDivAccessibility>;
|
|
5394
5399
|
/**
|
|
5395
5400
|
* List of [actions](div-action.md) to be executed when selecting an element in
|
|
5396
5401
|
* [pager](div-pager.md).
|
|
5397
5402
|
*/
|
|
5398
5403
|
selected_actions?: Type<NonEmptyArray<IDivAction>>;
|
|
5399
5404
|
/**
|
|
5400
|
-
*
|
|
5401
|
-
* is performed using [special scheme](../../interaction.dita) of the [action](div-action.md)
|
|
5402
|
-
* element.
|
|
5405
|
+
* Style of the second pointer.
|
|
5403
5406
|
*/
|
|
5404
|
-
|
|
5407
|
+
thumb_secondary_style?: Type<DivDrawable>;
|
|
5408
|
+
/**
|
|
5409
|
+
* Text style in the second pointer.
|
|
5410
|
+
*/
|
|
5411
|
+
thumb_secondary_text_style?: Type<IDivSliderTextStyle>;
|
|
5412
|
+
/**
|
|
5413
|
+
* Name of the variable to store the second pointer's current value.
|
|
5414
|
+
*/
|
|
5415
|
+
thumb_secondary_value_variable?: Type<string>;
|
|
5416
|
+
/**
|
|
5417
|
+
* Style of the first pointer.
|
|
5418
|
+
*/
|
|
5419
|
+
thumb_style: Type<DivDrawable>;
|
|
5420
|
+
/**
|
|
5421
|
+
* Text style in the first pointer.
|
|
5422
|
+
*/
|
|
5423
|
+
thumb_text_style?: Type<IDivSliderTextStyle>;
|
|
5424
|
+
/**
|
|
5425
|
+
* Name of the variable to store the pointer's current value.
|
|
5426
|
+
*/
|
|
5427
|
+
thumb_value_variable?: Type<string>;
|
|
5428
|
+
/**
|
|
5429
|
+
* Style of active serifs.
|
|
5430
|
+
*/
|
|
5431
|
+
tick_mark_active_style?: Type<DivDrawable>;
|
|
5432
|
+
/**
|
|
5433
|
+
* Style of inactive serifs.
|
|
5434
|
+
*/
|
|
5435
|
+
tick_mark_inactive_style?: Type<DivDrawable>;
|
|
5405
5436
|
/**
|
|
5406
5437
|
* Tooltips linked to an element. A tooltip can be shown by `div-action://show_tooltip?id=`,
|
|
5407
5438
|
* hidden by `div-action://hide_tooltip?id=` where `id` — tooltip id.
|
|
5408
5439
|
*/
|
|
5409
5440
|
tooltips?: Type<NonEmptyArray<IDivTooltip>>;
|
|
5441
|
+
/**
|
|
5442
|
+
* Style of the active part of a scale.
|
|
5443
|
+
*/
|
|
5444
|
+
track_active_style: Type<DivDrawable>;
|
|
5445
|
+
/**
|
|
5446
|
+
* Style of the inactive part of a scale.
|
|
5447
|
+
*/
|
|
5448
|
+
track_inactive_style: Type<DivDrawable>;
|
|
5410
5449
|
/**
|
|
5411
5450
|
* Applies the passed transformation to the element. Content that doesn't fit into the original
|
|
5412
5451
|
* view area is cut off.
|
|
5413
5452
|
*/
|
|
5414
5453
|
transform?: Type<IDivTransform>;
|
|
5415
|
-
/**
|
|
5416
|
-
* It determines which events trigger transition animations.
|
|
5417
|
-
*
|
|
5418
|
-
* @deprecated
|
|
5419
|
-
*/
|
|
5420
|
-
transition_animation_selector?: Type<DivTransitionSelector | DivExpression>;
|
|
5421
5454
|
/**
|
|
5422
5455
|
* Change animation. It is played when the position or size of an element changes in the new
|
|
5423
5456
|
* layout.
|
|
@@ -5454,9 +5487,9 @@ declare class DivState<T extends DivStateProps = DivStateProps> {
|
|
|
5454
5487
|
* Element width.
|
|
5455
5488
|
*/
|
|
5456
5489
|
width?: Type<DivSize>;
|
|
5457
|
-
constructor(props: Exact<
|
|
5490
|
+
constructor(props: Exact<DivSliderProps, T>);
|
|
5458
5491
|
}
|
|
5459
|
-
interface
|
|
5492
|
+
interface DivSliderProps {
|
|
5460
5493
|
/**
|
|
5461
5494
|
* Accessibility settings.
|
|
5462
5495
|
*/
|
|
@@ -5485,17 +5518,6 @@ interface DivStateProps {
|
|
|
5485
5518
|
* Merges cells in a column of the [grid](div-grid.md) element.
|
|
5486
5519
|
*/
|
|
5487
5520
|
column_span?: Type<number | DivExpression>;
|
|
5488
|
-
/**
|
|
5489
|
-
* ID of the status that will be set by default. If the parameter isnt set, the first state of
|
|
5490
|
-
* the `states` will be set.
|
|
5491
|
-
*/
|
|
5492
|
-
default_state_id?: Type<string | DivExpression>;
|
|
5493
|
-
/**
|
|
5494
|
-
* ID of an element to search in the hierarchy. The ID must be unique at one hierarchy level.
|
|
5495
|
-
*
|
|
5496
|
-
* @deprecated
|
|
5497
|
-
*/
|
|
5498
|
-
div_id?: Type<string>;
|
|
5499
5521
|
/**
|
|
5500
5522
|
* Extensions for additional processing of an element. The list of extensions is given in
|
|
5501
5523
|
* [DivExtension](../../extensions.dita).
|
|
@@ -5520,6 +5542,14 @@ interface DivStateProps {
|
|
|
5520
5542
|
* External margins from the element stroke.
|
|
5521
5543
|
*/
|
|
5522
5544
|
margins?: Type<IDivEdgeInsets>;
|
|
5545
|
+
/**
|
|
5546
|
+
* Maximum value. It must be greater than the minimum value.
|
|
5547
|
+
*/
|
|
5548
|
+
max_value?: Type<number | DivExpression>;
|
|
5549
|
+
/**
|
|
5550
|
+
* Minimum value.
|
|
5551
|
+
*/
|
|
5552
|
+
min_value?: Type<number | DivExpression>;
|
|
5523
5553
|
/**
|
|
5524
5554
|
* Internal margins from the element stroke.
|
|
5525
5555
|
*/
|
|
@@ -5528,42 +5558,74 @@ interface DivStateProps {
|
|
|
5528
5558
|
* Merges cells in a string of the [grid](div-grid.md) element.
|
|
5529
5559
|
*/
|
|
5530
5560
|
row_span?: Type<number | DivExpression>;
|
|
5561
|
+
/**
|
|
5562
|
+
* Accessibility settings for the second pointer.
|
|
5563
|
+
*/
|
|
5564
|
+
secondary_value_accessibility?: Type<IDivAccessibility>;
|
|
5531
5565
|
/**
|
|
5532
5566
|
* List of [actions](div-action.md) to be executed when selecting an element in
|
|
5533
5567
|
* [pager](div-pager.md).
|
|
5534
5568
|
*/
|
|
5535
5569
|
selected_actions?: Type<NonEmptyArray<IDivAction>>;
|
|
5536
5570
|
/**
|
|
5537
|
-
*
|
|
5538
|
-
* is performed using [special scheme](../../interaction.dita) of the [action](div-action.md)
|
|
5539
|
-
* element.
|
|
5571
|
+
* Style of the second pointer.
|
|
5540
5572
|
*/
|
|
5541
|
-
|
|
5573
|
+
thumb_secondary_style?: Type<DivDrawable>;
|
|
5542
5574
|
/**
|
|
5543
|
-
*
|
|
5544
|
-
* hidden by `div-action://hide_tooltip?id=` where `id` — tooltip id.
|
|
5575
|
+
* Text style in the second pointer.
|
|
5545
5576
|
*/
|
|
5546
|
-
|
|
5577
|
+
thumb_secondary_text_style?: Type<IDivSliderTextStyle>;
|
|
5547
5578
|
/**
|
|
5548
|
-
*
|
|
5549
|
-
* view area is cut off.
|
|
5579
|
+
* Name of the variable to store the second pointer's current value.
|
|
5550
5580
|
*/
|
|
5551
|
-
|
|
5581
|
+
thumb_secondary_value_variable?: Type<string>;
|
|
5552
5582
|
/**
|
|
5553
|
-
*
|
|
5554
|
-
*
|
|
5555
|
-
* @deprecated
|
|
5583
|
+
* Style of the first pointer.
|
|
5556
5584
|
*/
|
|
5557
|
-
|
|
5585
|
+
thumb_style: Type<DivDrawable>;
|
|
5558
5586
|
/**
|
|
5559
|
-
*
|
|
5560
|
-
* layout.
|
|
5587
|
+
* Text style in the first pointer.
|
|
5561
5588
|
*/
|
|
5562
|
-
|
|
5589
|
+
thumb_text_style?: Type<IDivSliderTextStyle>;
|
|
5563
5590
|
/**
|
|
5564
|
-
*
|
|
5565
|
-
|
|
5566
|
-
|
|
5591
|
+
* Name of the variable to store the pointer's current value.
|
|
5592
|
+
*/
|
|
5593
|
+
thumb_value_variable?: Type<string>;
|
|
5594
|
+
/**
|
|
5595
|
+
* Style of active serifs.
|
|
5596
|
+
*/
|
|
5597
|
+
tick_mark_active_style?: Type<DivDrawable>;
|
|
5598
|
+
/**
|
|
5599
|
+
* Style of inactive serifs.
|
|
5600
|
+
*/
|
|
5601
|
+
tick_mark_inactive_style?: Type<DivDrawable>;
|
|
5602
|
+
/**
|
|
5603
|
+
* Tooltips linked to an element. A tooltip can be shown by `div-action://show_tooltip?id=`,
|
|
5604
|
+
* hidden by `div-action://hide_tooltip?id=` where `id` — tooltip id.
|
|
5605
|
+
*/
|
|
5606
|
+
tooltips?: Type<NonEmptyArray<IDivTooltip>>;
|
|
5607
|
+
/**
|
|
5608
|
+
* Style of the active part of a scale.
|
|
5609
|
+
*/
|
|
5610
|
+
track_active_style: Type<DivDrawable>;
|
|
5611
|
+
/**
|
|
5612
|
+
* Style of the inactive part of a scale.
|
|
5613
|
+
*/
|
|
5614
|
+
track_inactive_style: Type<DivDrawable>;
|
|
5615
|
+
/**
|
|
5616
|
+
* Applies the passed transformation to the element. Content that doesn't fit into the original
|
|
5617
|
+
* view area is cut off.
|
|
5618
|
+
*/
|
|
5619
|
+
transform?: Type<IDivTransform>;
|
|
5620
|
+
/**
|
|
5621
|
+
* Change animation. It is played when the position or size of an element changes in the new
|
|
5622
|
+
* layout.
|
|
5623
|
+
*/
|
|
5624
|
+
transition_change?: Type<DivChangeTransition>;
|
|
5625
|
+
/**
|
|
5626
|
+
* Appearance animation. It is played when an element with a new ID appears. To learn more about
|
|
5627
|
+
* the concept of transitions, see [Animated
|
|
5628
|
+
* transitions](../../interaction.dita#animation/transition-animation).
|
|
5567
5629
|
*/
|
|
5568
5630
|
transition_in?: Type<DivAppearanceTransition>;
|
|
5569
5631
|
/**
|
|
@@ -5592,84 +5654,51 @@ interface DivStateProps {
|
|
|
5592
5654
|
*/
|
|
5593
5655
|
width?: Type<DivSize>;
|
|
5594
5656
|
}
|
|
5595
|
-
interface
|
|
5596
|
-
/**
|
|
5597
|
-
* State appearance animation. Use `transition_in` instead.
|
|
5598
|
-
*
|
|
5599
|
-
* @deprecated
|
|
5600
|
-
*/
|
|
5601
|
-
animation_in?: Type<IDivAnimation>;
|
|
5657
|
+
interface IDivSliderTextStyle {
|
|
5602
5658
|
/**
|
|
5603
|
-
*
|
|
5604
|
-
*
|
|
5605
|
-
* @deprecated
|
|
5659
|
+
* Font size.
|
|
5606
5660
|
*/
|
|
5607
|
-
|
|
5661
|
+
font_size: Type<number | DivExpression>;
|
|
5662
|
+
font_size_unit?: Type<DivSizeUnit | DivExpression>;
|
|
5608
5663
|
/**
|
|
5609
|
-
*
|
|
5664
|
+
* Style.
|
|
5610
5665
|
*/
|
|
5611
|
-
|
|
5666
|
+
font_weight?: Type<DivFontWeight | DivExpression>;
|
|
5612
5667
|
/**
|
|
5613
|
-
*
|
|
5668
|
+
* Shift relative to the center.
|
|
5614
5669
|
*/
|
|
5615
|
-
|
|
5670
|
+
offset?: Type<IDivPoint>;
|
|
5616
5671
|
/**
|
|
5617
|
-
*
|
|
5618
|
-
*
|
|
5619
|
-
* @deprecated
|
|
5672
|
+
* Text color.
|
|
5620
5673
|
*/
|
|
5621
|
-
|
|
5674
|
+
text_color?: Type<string | DivExpression>;
|
|
5622
5675
|
}
|
|
5623
5676
|
|
|
5624
5677
|
/**
|
|
5625
|
-
*
|
|
5678
|
+
* Solid background color.
|
|
5626
5679
|
*/
|
|
5627
|
-
declare class
|
|
5628
|
-
readonly _props?: Exact<
|
|
5629
|
-
readonly type = "
|
|
5630
|
-
/**
|
|
5631
|
-
* Spacing between indicator centers.
|
|
5632
|
-
*/
|
|
5633
|
-
item_spacing?: Type<DivFixedSize>;
|
|
5634
|
-
/**
|
|
5635
|
-
* Maximum number of visible indicators.
|
|
5636
|
-
*/
|
|
5637
|
-
max_visible_items?: Type<number | DivExpression>;
|
|
5638
|
-
constructor(props?: Exact<DivStretchIndicatorItemPlacementProps, T>);
|
|
5639
|
-
}
|
|
5640
|
-
interface DivStretchIndicatorItemPlacementProps {
|
|
5641
|
-
/**
|
|
5642
|
-
* Spacing between indicator centers.
|
|
5643
|
-
*/
|
|
5644
|
-
item_spacing?: Type<DivFixedSize>;
|
|
5680
|
+
declare class DivSolidBackground<T extends DivSolidBackgroundProps = DivSolidBackgroundProps> {
|
|
5681
|
+
readonly _props?: Exact<DivSolidBackgroundProps, T>;
|
|
5682
|
+
readonly type = "solid";
|
|
5645
5683
|
/**
|
|
5646
|
-
*
|
|
5684
|
+
* Color.
|
|
5647
5685
|
*/
|
|
5648
|
-
|
|
5686
|
+
color: Type<string | DivExpression>;
|
|
5687
|
+
constructor(props: Exact<DivSolidBackgroundProps, T>);
|
|
5649
5688
|
}
|
|
5650
|
-
|
|
5651
|
-
/**
|
|
5652
|
-
* Stroke.
|
|
5653
|
-
*/
|
|
5654
|
-
interface IDivStroke {
|
|
5689
|
+
interface DivSolidBackgroundProps {
|
|
5655
5690
|
/**
|
|
5656
|
-
*
|
|
5691
|
+
* Color.
|
|
5657
5692
|
*/
|
|
5658
5693
|
color: Type<string | DivExpression>;
|
|
5659
|
-
unit?: Type<DivSizeUnit | DivExpression>;
|
|
5660
|
-
/**
|
|
5661
|
-
* Stroke width.
|
|
5662
|
-
*/
|
|
5663
|
-
width?: Type<number | DivExpression>;
|
|
5664
5694
|
}
|
|
5665
5695
|
|
|
5666
5696
|
/**
|
|
5667
|
-
*
|
|
5668
|
-
* [depends on the platform](../../location.dita#tabs).
|
|
5697
|
+
* It contains sets of states for visual elements and switches between them.
|
|
5669
5698
|
*/
|
|
5670
|
-
declare class
|
|
5671
|
-
readonly _props?: Exact<
|
|
5672
|
-
readonly type = "
|
|
5699
|
+
declare class DivState<T extends DivStateProps = DivStateProps> {
|
|
5700
|
+
readonly _props?: Exact<DivStateProps, T>;
|
|
5701
|
+
readonly type = "state";
|
|
5673
5702
|
/**
|
|
5674
5703
|
* Accessibility settings.
|
|
5675
5704
|
*/
|
|
@@ -5699,9 +5728,16 @@ declare class DivTabs<T extends DivTabsProps = DivTabsProps> {
|
|
|
5699
5728
|
*/
|
|
5700
5729
|
column_span?: Type<number | DivExpression>;
|
|
5701
5730
|
/**
|
|
5702
|
-
*
|
|
5731
|
+
* ID of the status that will be set by default. If the parameter isnt set, the first state of
|
|
5732
|
+
* the `states` will be set.
|
|
5703
5733
|
*/
|
|
5704
|
-
|
|
5734
|
+
default_state_id?: Type<string | DivExpression>;
|
|
5735
|
+
/**
|
|
5736
|
+
* ID of an element to search in the hierarchy. The ID must be unique at one hierarchy level.
|
|
5737
|
+
*
|
|
5738
|
+
* @deprecated
|
|
5739
|
+
*/
|
|
5740
|
+
div_id?: Type<string>;
|
|
5705
5741
|
/**
|
|
5706
5742
|
* Extensions for additional processing of an element. The list of extensions is given in
|
|
5707
5743
|
* [DivExtension](../../extensions.dita).
|
|
@@ -5711,10 +5747,6 @@ declare class DivTabs<T extends DivTabsProps = DivTabsProps> {
|
|
|
5711
5747
|
* Parameters when focusing on an element or losing focus.
|
|
5712
5748
|
*/
|
|
5713
5749
|
focus?: Type<IDivFocus>;
|
|
5714
|
-
/**
|
|
5715
|
-
* A separating line between tabs and contents.
|
|
5716
|
-
*/
|
|
5717
|
-
has_separator?: Type<IntBoolean | DivExpression>;
|
|
5718
5750
|
/**
|
|
5719
5751
|
* Element height. For Android: if there is text in this or in a child element, specify height in
|
|
5720
5752
|
* `sp` to scale the element together with the text. To learn more about units of size
|
|
@@ -5726,18 +5758,6 @@ declare class DivTabs<T extends DivTabsProps = DivTabsProps> {
|
|
|
5726
5758
|
* on iOS.
|
|
5727
5759
|
*/
|
|
5728
5760
|
id?: Type<string>;
|
|
5729
|
-
/**
|
|
5730
|
-
* Tabs. Transition between tabs can be implemented
|
|
5731
|
-
* using:`div-action://set_current_item?id=&item=` — set the current tab with an ordinal number
|
|
5732
|
-
* `item` inside an element, with the specified
|
|
5733
|
-
* `id`;`div-action://set_next_item?id=[&overflow={clamp|ring}]` — go to the next tab inside an
|
|
5734
|
-
* element, with the specified `id`;`div-action://set_previous_item?id=[&overflow={clamp|ring}]`
|
|
5735
|
-
* — go to the previous tab inside an element, with the specified `id`.</p><p>The optional
|
|
5736
|
-
* `overflow` parameter is used to set navigation when the first or last element is
|
|
5737
|
-
* reached:`clamp` — transition will stop at the border element;`ring` — go to the beginning or
|
|
5738
|
-
* end, depending on the current element.</p><p>By default, `clamp`.
|
|
5739
|
-
*/
|
|
5740
|
-
items: Type<NonEmptyArray<IDivTabsItem>>;
|
|
5741
5761
|
/**
|
|
5742
5762
|
* External margins from the element stroke.
|
|
5743
5763
|
*/
|
|
@@ -5746,10 +5766,6 @@ declare class DivTabs<T extends DivTabsProps = DivTabsProps> {
|
|
|
5746
5766
|
* Internal margins from the element stroke.
|
|
5747
5767
|
*/
|
|
5748
5768
|
paddings?: Type<IDivEdgeInsets>;
|
|
5749
|
-
/**
|
|
5750
|
-
* If the parameter is enabled, tabs won't transmit the scroll gesture to the parent element.
|
|
5751
|
-
*/
|
|
5752
|
-
restrict_parent_scroll?: Type<IntBoolean | DivExpression>;
|
|
5753
5769
|
/**
|
|
5754
5770
|
* Merges cells in a string of the [grid](div-grid.md) element.
|
|
5755
5771
|
*/
|
|
@@ -5760,29 +5776,11 @@ declare class DivTabs<T extends DivTabsProps = DivTabsProps> {
|
|
|
5760
5776
|
*/
|
|
5761
5777
|
selected_actions?: Type<NonEmptyArray<IDivAction>>;
|
|
5762
5778
|
/**
|
|
5763
|
-
*
|
|
5764
|
-
|
|
5765
|
-
|
|
5766
|
-
/**
|
|
5767
|
-
* Separator color.
|
|
5768
|
-
*/
|
|
5769
|
-
separator_color?: Type<string | DivExpression>;
|
|
5770
|
-
/**
|
|
5771
|
-
* Indents from the separating line. Not used if `has_separator = false`.
|
|
5772
|
-
*/
|
|
5773
|
-
separator_paddings?: Type<IDivEdgeInsets>;
|
|
5774
|
-
/**
|
|
5775
|
-
* Switching tabs by scrolling through the contents.
|
|
5776
|
-
*/
|
|
5777
|
-
switch_tabs_by_content_swipe_enabled?: Type<IntBoolean | DivExpression>;
|
|
5778
|
-
/**
|
|
5779
|
-
* Design style of tab titles.
|
|
5780
|
-
*/
|
|
5781
|
-
tab_title_style?: Type<IDivTabsTabTitleStyle>;
|
|
5782
|
-
/**
|
|
5783
|
-
* Indents in the tab name.
|
|
5779
|
+
* States. Each element can have a few states with a different layout. Transition between states
|
|
5780
|
+
* is performed using [special scheme](../../interaction.dita) of the [action](div-action.md)
|
|
5781
|
+
* element.
|
|
5784
5782
|
*/
|
|
5785
|
-
|
|
5783
|
+
states: Type<NonEmptyArray<IDivStateState>>;
|
|
5786
5784
|
/**
|
|
5787
5785
|
* Tooltips linked to an element. A tooltip can be shown by `div-action://show_tooltip?id=`,
|
|
5788
5786
|
* hidden by `div-action://hide_tooltip?id=` where `id` — tooltip id.
|
|
@@ -5793,6 +5791,12 @@ declare class DivTabs<T extends DivTabsProps = DivTabsProps> {
|
|
|
5793
5791
|
* view area is cut off.
|
|
5794
5792
|
*/
|
|
5795
5793
|
transform?: Type<IDivTransform>;
|
|
5794
|
+
/**
|
|
5795
|
+
* It determines which events trigger transition animations.
|
|
5796
|
+
*
|
|
5797
|
+
* @deprecated
|
|
5798
|
+
*/
|
|
5799
|
+
transition_animation_selector?: Type<DivTransitionSelector | DivExpression>;
|
|
5796
5800
|
/**
|
|
5797
5801
|
* Change animation. It is played when the position or size of an element changes in the new
|
|
5798
5802
|
* layout.
|
|
@@ -5829,9 +5833,9 @@ declare class DivTabs<T extends DivTabsProps = DivTabsProps> {
|
|
|
5829
5833
|
* Element width.
|
|
5830
5834
|
*/
|
|
5831
5835
|
width?: Type<DivSize>;
|
|
5832
|
-
constructor(props: Exact<
|
|
5836
|
+
constructor(props: Exact<DivStateProps, T>);
|
|
5833
5837
|
}
|
|
5834
|
-
interface
|
|
5838
|
+
interface DivStateProps {
|
|
5835
5839
|
/**
|
|
5836
5840
|
* Accessibility settings.
|
|
5837
5841
|
*/
|
|
@@ -5861,9 +5865,16 @@ interface DivTabsProps {
|
|
|
5861
5865
|
*/
|
|
5862
5866
|
column_span?: Type<number | DivExpression>;
|
|
5863
5867
|
/**
|
|
5864
|
-
*
|
|
5868
|
+
* ID of the status that will be set by default. If the parameter isnt set, the first state of
|
|
5869
|
+
* the `states` will be set.
|
|
5865
5870
|
*/
|
|
5866
|
-
|
|
5871
|
+
default_state_id?: Type<string | DivExpression>;
|
|
5872
|
+
/**
|
|
5873
|
+
* ID of an element to search in the hierarchy. The ID must be unique at one hierarchy level.
|
|
5874
|
+
*
|
|
5875
|
+
* @deprecated
|
|
5876
|
+
*/
|
|
5877
|
+
div_id?: Type<string>;
|
|
5867
5878
|
/**
|
|
5868
5879
|
* Extensions for additional processing of an element. The list of extensions is given in
|
|
5869
5880
|
* [DivExtension](../../extensions.dita).
|
|
@@ -5873,10 +5884,6 @@ interface DivTabsProps {
|
|
|
5873
5884
|
* Parameters when focusing on an element or losing focus.
|
|
5874
5885
|
*/
|
|
5875
5886
|
focus?: Type<IDivFocus>;
|
|
5876
|
-
/**
|
|
5877
|
-
* A separating line between tabs and contents.
|
|
5878
|
-
*/
|
|
5879
|
-
has_separator?: Type<IntBoolean | DivExpression>;
|
|
5880
5887
|
/**
|
|
5881
5888
|
* Element height. For Android: if there is text in this or in a child element, specify height in
|
|
5882
5889
|
* `sp` to scale the element together with the text. To learn more about units of size
|
|
@@ -5888,18 +5895,6 @@ interface DivTabsProps {
|
|
|
5888
5895
|
* on iOS.
|
|
5889
5896
|
*/
|
|
5890
5897
|
id?: Type<string>;
|
|
5891
|
-
/**
|
|
5892
|
-
* Tabs. Transition between tabs can be implemented
|
|
5893
|
-
* using:`div-action://set_current_item?id=&item=` — set the current tab with an ordinal number
|
|
5894
|
-
* `item` inside an element, with the specified
|
|
5895
|
-
* `id`;`div-action://set_next_item?id=[&overflow={clamp|ring}]` — go to the next tab inside an
|
|
5896
|
-
* element, with the specified `id`;`div-action://set_previous_item?id=[&overflow={clamp|ring}]`
|
|
5897
|
-
* — go to the previous tab inside an element, with the specified `id`.</p><p>The optional
|
|
5898
|
-
* `overflow` parameter is used to set navigation when the first or last element is
|
|
5899
|
-
* reached:`clamp` — transition will stop at the border element;`ring` — go to the beginning or
|
|
5900
|
-
* end, depending on the current element.</p><p>By default, `clamp`.
|
|
5901
|
-
*/
|
|
5902
|
-
items: Type<NonEmptyArray<IDivTabsItem>>;
|
|
5903
5898
|
/**
|
|
5904
5899
|
* External margins from the element stroke.
|
|
5905
5900
|
*/
|
|
@@ -5908,10 +5903,6 @@ interface DivTabsProps {
|
|
|
5908
5903
|
* Internal margins from the element stroke.
|
|
5909
5904
|
*/
|
|
5910
5905
|
paddings?: Type<IDivEdgeInsets>;
|
|
5911
|
-
/**
|
|
5912
|
-
* If the parameter is enabled, tabs won't transmit the scroll gesture to the parent element.
|
|
5913
|
-
*/
|
|
5914
|
-
restrict_parent_scroll?: Type<IntBoolean | DivExpression>;
|
|
5915
5906
|
/**
|
|
5916
5907
|
* Merges cells in a string of the [grid](div-grid.md) element.
|
|
5917
5908
|
*/
|
|
@@ -5922,29 +5913,11 @@ interface DivTabsProps {
|
|
|
5922
5913
|
*/
|
|
5923
5914
|
selected_actions?: Type<NonEmptyArray<IDivAction>>;
|
|
5924
5915
|
/**
|
|
5925
|
-
*
|
|
5926
|
-
|
|
5927
|
-
|
|
5928
|
-
/**
|
|
5929
|
-
* Separator color.
|
|
5930
|
-
*/
|
|
5931
|
-
separator_color?: Type<string | DivExpression>;
|
|
5932
|
-
/**
|
|
5933
|
-
* Indents from the separating line. Not used if `has_separator = false`.
|
|
5934
|
-
*/
|
|
5935
|
-
separator_paddings?: Type<IDivEdgeInsets>;
|
|
5936
|
-
/**
|
|
5937
|
-
* Switching tabs by scrolling through the contents.
|
|
5938
|
-
*/
|
|
5939
|
-
switch_tabs_by_content_swipe_enabled?: Type<IntBoolean | DivExpression>;
|
|
5940
|
-
/**
|
|
5941
|
-
* Design style of tab titles.
|
|
5942
|
-
*/
|
|
5943
|
-
tab_title_style?: Type<IDivTabsTabTitleStyle>;
|
|
5944
|
-
/**
|
|
5945
|
-
* Indents in the tab name.
|
|
5916
|
+
* States. Each element can have a few states with a different layout. Transition between states
|
|
5917
|
+
* is performed using [special scheme](../../interaction.dita) of the [action](div-action.md)
|
|
5918
|
+
* element.
|
|
5946
5919
|
*/
|
|
5947
|
-
|
|
5920
|
+
states: Type<NonEmptyArray<IDivStateState>>;
|
|
5948
5921
|
/**
|
|
5949
5922
|
* Tooltips linked to an element. A tooltip can be shown by `div-action://show_tooltip?id=`,
|
|
5950
5923
|
* hidden by `div-action://hide_tooltip?id=` where `id` — tooltip id.
|
|
@@ -5955,6 +5928,12 @@ interface DivTabsProps {
|
|
|
5955
5928
|
* view area is cut off.
|
|
5956
5929
|
*/
|
|
5957
5930
|
transform?: Type<IDivTransform>;
|
|
5931
|
+
/**
|
|
5932
|
+
* It determines which events trigger transition animations.
|
|
5933
|
+
*
|
|
5934
|
+
* @deprecated
|
|
5935
|
+
*/
|
|
5936
|
+
transition_animation_selector?: Type<DivTransitionSelector | DivExpression>;
|
|
5958
5937
|
/**
|
|
5959
5938
|
* Change animation. It is played when the position or size of an element changes in the new
|
|
5960
5939
|
* layout.
|
|
@@ -5992,129 +5971,88 @@ interface DivTabsProps {
|
|
|
5992
5971
|
*/
|
|
5993
5972
|
width?: Type<DivSize>;
|
|
5994
5973
|
}
|
|
5995
|
-
|
|
5996
|
-
* Tab.
|
|
5997
|
-
*/
|
|
5998
|
-
interface IDivTabsItem {
|
|
5974
|
+
interface IDivStateState {
|
|
5999
5975
|
/**
|
|
6000
|
-
*
|
|
5976
|
+
* State appearance animation. Use `transition_in` instead.
|
|
5977
|
+
*
|
|
5978
|
+
* @deprecated
|
|
6001
5979
|
*/
|
|
6002
|
-
|
|
6003
|
-
/**
|
|
6004
|
-
* Tab title.
|
|
6005
|
-
*/
|
|
6006
|
-
title: Type<string | DivExpression>;
|
|
6007
|
-
/**
|
|
6008
|
-
* Action when clicking on the active tab title.
|
|
6009
|
-
*/
|
|
6010
|
-
title_click_action?: Type<IDivAction>;
|
|
6011
|
-
}
|
|
6012
|
-
/**
|
|
6013
|
-
* Design style of tab titles.
|
|
6014
|
-
*/
|
|
6015
|
-
interface IDivTabsTabTitleStyle {
|
|
6016
|
-
/**
|
|
6017
|
-
* Background color of the active tab title.
|
|
6018
|
-
*/
|
|
6019
|
-
active_background_color?: Type<string | DivExpression>;
|
|
6020
|
-
/**
|
|
6021
|
-
* Active tab title style.
|
|
6022
|
-
*/
|
|
6023
|
-
active_font_weight?: Type<DivFontWeight | DivExpression>;
|
|
6024
|
-
/**
|
|
6025
|
-
* Color of the active tab title text.
|
|
6026
|
-
*/
|
|
6027
|
-
active_text_color?: Type<string | DivExpression>;
|
|
6028
|
-
/**
|
|
6029
|
-
* Duration of active title change animation.
|
|
6030
|
-
*/
|
|
6031
|
-
animation_duration?: Type<number | DivExpression>;
|
|
6032
|
-
/**
|
|
6033
|
-
* Active title change animation.
|
|
6034
|
-
*/
|
|
6035
|
-
animation_type?: Type<TabTitleStyleAnimationType | DivExpression>;
|
|
6036
|
-
/**
|
|
6037
|
-
* Title corner rounding radius. If the parameter isn't specified, the rounding is maximum (half
|
|
6038
|
-
* of the smallest size). Not used if the `corners_radius` parameter is set.
|
|
6039
|
-
*/
|
|
6040
|
-
corner_radius?: Type<number | DivExpression>;
|
|
6041
|
-
/**
|
|
6042
|
-
* Rounding radii of corners of multiple titles. Empty values are replaced by `corner_radius`.
|
|
6043
|
-
*/
|
|
6044
|
-
corners_radius?: Type<IDivCornersRadius>;
|
|
5980
|
+
animation_in?: Type<IDivAnimation>;
|
|
6045
5981
|
/**
|
|
6046
|
-
*
|
|
6047
|
-
*
|
|
5982
|
+
* State disappearance animation. Use `transition_out` instead.
|
|
5983
|
+
*
|
|
5984
|
+
* @deprecated
|
|
6048
5985
|
*/
|
|
6049
|
-
|
|
5986
|
+
animation_out?: Type<IDivAnimation>;
|
|
6050
5987
|
/**
|
|
6051
|
-
*
|
|
5988
|
+
* Contents. If the parameter is missing, the state won't be displayed.
|
|
6052
5989
|
*/
|
|
6053
|
-
|
|
5990
|
+
div?: Type<Div>;
|
|
6054
5991
|
/**
|
|
6055
|
-
*
|
|
5992
|
+
* State ID. It must be unique at one hierarchy level.
|
|
6056
5993
|
*/
|
|
6057
|
-
|
|
5994
|
+
state_id: Type<string>;
|
|
6058
5995
|
/**
|
|
6059
|
-
*
|
|
5996
|
+
* Actions when swiping the state horizontally.
|
|
6060
5997
|
*
|
|
6061
5998
|
* @deprecated
|
|
6062
5999
|
*/
|
|
6063
|
-
|
|
6064
|
-
|
|
6065
|
-
|
|
6066
|
-
|
|
6067
|
-
|
|
6000
|
+
swipe_out_actions?: Type<NonEmptyArray<IDivAction>>;
|
|
6001
|
+
}
|
|
6002
|
+
|
|
6003
|
+
/**
|
|
6004
|
+
* Element size adjusts to a parent element.
|
|
6005
|
+
*/
|
|
6006
|
+
declare class DivStretchIndicatorItemPlacement<T extends DivStretchIndicatorItemPlacementProps = DivStretchIndicatorItemPlacementProps> {
|
|
6007
|
+
readonly _props?: Exact<DivStretchIndicatorItemPlacementProps, T>;
|
|
6008
|
+
readonly type = "stretch";
|
|
6068
6009
|
/**
|
|
6069
|
-
*
|
|
6010
|
+
* Spacing between indicator centers.
|
|
6070
6011
|
*/
|
|
6071
|
-
|
|
6012
|
+
item_spacing?: Type<DivFixedSize>;
|
|
6072
6013
|
/**
|
|
6073
|
-
*
|
|
6014
|
+
* Maximum number of visible indicators.
|
|
6074
6015
|
*/
|
|
6075
|
-
|
|
6016
|
+
max_visible_items?: Type<number | DivExpression>;
|
|
6017
|
+
constructor(props?: Exact<DivStretchIndicatorItemPlacementProps, T>);
|
|
6018
|
+
}
|
|
6019
|
+
interface DivStretchIndicatorItemPlacementProps {
|
|
6076
6020
|
/**
|
|
6077
|
-
* Spacing between
|
|
6021
|
+
* Spacing between indicator centers.
|
|
6078
6022
|
*/
|
|
6079
|
-
item_spacing?: Type<
|
|
6023
|
+
item_spacing?: Type<DivFixedSize>;
|
|
6080
6024
|
/**
|
|
6081
|
-
*
|
|
6025
|
+
* Maximum number of visible indicators.
|
|
6082
6026
|
*/
|
|
6083
|
-
|
|
6027
|
+
max_visible_items?: Type<number | DivExpression>;
|
|
6028
|
+
}
|
|
6029
|
+
|
|
6030
|
+
/**
|
|
6031
|
+
* Stroke.
|
|
6032
|
+
*/
|
|
6033
|
+
interface IDivStroke {
|
|
6084
6034
|
/**
|
|
6085
|
-
*
|
|
6035
|
+
* Stroke color.
|
|
6086
6036
|
*/
|
|
6087
|
-
|
|
6037
|
+
color: Type<string | DivExpression>;
|
|
6038
|
+
unit?: Type<DivSizeUnit | DivExpression>;
|
|
6088
6039
|
/**
|
|
6089
|
-
*
|
|
6040
|
+
* Stroke width.
|
|
6090
6041
|
*/
|
|
6091
|
-
|
|
6042
|
+
width?: Type<number | DivExpression>;
|
|
6092
6043
|
}
|
|
6093
|
-
declare type TabTitleStyleAnimationType = 'slide' | 'fade' | 'none';
|
|
6094
6044
|
|
|
6095
6045
|
/**
|
|
6096
|
-
*
|
|
6046
|
+
* Tabs. Height of the first tab is determined by its contents, and height of the remaining
|
|
6047
|
+
* [depends on the platform](../../location.dita#tabs).
|
|
6097
6048
|
*/
|
|
6098
|
-
declare class
|
|
6099
|
-
readonly _props?: Exact<
|
|
6100
|
-
readonly type = "
|
|
6049
|
+
declare class DivTabs<T extends DivTabsProps = DivTabsProps> {
|
|
6050
|
+
readonly _props?: Exact<DivTabsProps, T>;
|
|
6051
|
+
readonly type = "tabs";
|
|
6101
6052
|
/**
|
|
6102
6053
|
* Accessibility settings.
|
|
6103
6054
|
*/
|
|
6104
6055
|
accessibility?: Type<IDivAccessibility>;
|
|
6105
|
-
/**
|
|
6106
|
-
* One action when clicking on an element. Not used if the `actions` parameter is set.
|
|
6107
|
-
*/
|
|
6108
|
-
action?: Type<IDivAction>;
|
|
6109
|
-
/**
|
|
6110
|
-
* Click animation. The web only supports the following values: `fade`, `scale`, `native`,
|
|
6111
|
-
* `no_animation` and `set`.
|
|
6112
|
-
*/
|
|
6113
|
-
action_animation?: Type<IDivAnimation>;
|
|
6114
|
-
/**
|
|
6115
|
-
* Multiple actions when clicking on an element.
|
|
6116
|
-
*/
|
|
6117
|
-
actions?: Type<NonEmptyArray<IDivAction>>;
|
|
6118
6056
|
/**
|
|
6119
6057
|
* Horizontal alignment of an element inside the parent element.
|
|
6120
6058
|
*/
|
|
@@ -6127,10 +6065,6 @@ declare class DivText<T extends DivTextProps = DivTextProps> {
|
|
|
6127
6065
|
* Sets transparency of the entire element: `0` — completely transparent, `1` — opaque.
|
|
6128
6066
|
*/
|
|
6129
6067
|
alpha?: Type<number | DivExpression>;
|
|
6130
|
-
/**
|
|
6131
|
-
* Automatic text cropping to fit the container size.
|
|
6132
|
-
*/
|
|
6133
|
-
auto_ellipsize?: Type<IntBoolean | DivExpression>;
|
|
6134
6068
|
/**
|
|
6135
6069
|
* Element background. It can contain multiple layers.
|
|
6136
6070
|
*/
|
|
@@ -6144,13 +6078,9 @@ declare class DivText<T extends DivTextProps = DivTextProps> {
|
|
|
6144
6078
|
*/
|
|
6145
6079
|
column_span?: Type<number | DivExpression>;
|
|
6146
6080
|
/**
|
|
6147
|
-
*
|
|
6148
|
-
*/
|
|
6149
|
-
doubletap_actions?: Type<NonEmptyArray<IDivAction>>;
|
|
6150
|
-
/**
|
|
6151
|
-
* Text cropping marker. It is displayed when text size exceeds the limit on the number of lines.
|
|
6081
|
+
* Updating height when changing the active element. In the browser, the value is always `true`.
|
|
6152
6082
|
*/
|
|
6153
|
-
|
|
6083
|
+
dynamic_height?: Type<IntBoolean | DivExpression>;
|
|
6154
6084
|
/**
|
|
6155
6085
|
* Extensions for additional processing of an element. The list of extensions is given in
|
|
6156
6086
|
* [DivExtension](../../extensions.dita).
|
|
@@ -6161,23 +6091,9 @@ declare class DivText<T extends DivTextProps = DivTextProps> {
|
|
|
6161
6091
|
*/
|
|
6162
6092
|
focus?: Type<IDivFocus>;
|
|
6163
6093
|
/**
|
|
6164
|
-
*
|
|
6165
|
-
*/
|
|
6166
|
-
focused_text_color?: Type<string | DivExpression>;
|
|
6167
|
-
/**
|
|
6168
|
-
* Font family:`text` — a standard text font;`display` — a family of fonts with a large font
|
|
6169
|
-
* size.
|
|
6170
|
-
*/
|
|
6171
|
-
font_family?: Type<DivFontFamily | DivExpression>;
|
|
6172
|
-
/**
|
|
6173
|
-
* Font size.
|
|
6174
|
-
*/
|
|
6175
|
-
font_size?: Type<number | DivExpression>;
|
|
6176
|
-
font_size_unit?: Type<DivSizeUnit | DivExpression>;
|
|
6177
|
-
/**
|
|
6178
|
-
* Style.
|
|
6094
|
+
* A separating line between tabs and contents.
|
|
6179
6095
|
*/
|
|
6180
|
-
|
|
6096
|
+
has_separator?: Type<IntBoolean | DivExpression>;
|
|
6181
6097
|
/**
|
|
6182
6098
|
* Element height. For Android: if there is text in this or in a child element, specify height in
|
|
6183
6099
|
* `sp` to scale the element together with the text. To learn more about units of size
|
|
@@ -6190,80 +6106,62 @@ declare class DivText<T extends DivTextProps = DivTextProps> {
|
|
|
6190
6106
|
*/
|
|
6191
6107
|
id?: Type<string>;
|
|
6192
6108
|
/**
|
|
6193
|
-
*
|
|
6194
|
-
|
|
6195
|
-
|
|
6196
|
-
|
|
6197
|
-
*
|
|
6198
|
-
|
|
6199
|
-
|
|
6200
|
-
|
|
6201
|
-
*
|
|
6202
|
-
*/
|
|
6203
|
-
line_height?: Type<number | DivExpression>;
|
|
6204
|
-
/**
|
|
6205
|
-
* Action when long-clicking an element. Doesn't work on devices that don't support touch
|
|
6206
|
-
* gestures.
|
|
6109
|
+
* Tabs. Transition between tabs can be implemented
|
|
6110
|
+
* using:`div-action://set_current_item?id=&item=` — set the current tab with an ordinal number
|
|
6111
|
+
* `item` inside an element, with the specified
|
|
6112
|
+
* `id`;`div-action://set_next_item?id=[&overflow={clamp|ring}]` — go to the next tab inside an
|
|
6113
|
+
* element, with the specified `id`;`div-action://set_previous_item?id=[&overflow={clamp|ring}]`
|
|
6114
|
+
* — go to the previous tab inside an element, with the specified `id`.</p><p>The optional
|
|
6115
|
+
* `overflow` parameter is used to set navigation when the first or last element is
|
|
6116
|
+
* reached:`clamp` — transition will stop at the border element;`ring` — go to the beginning or
|
|
6117
|
+
* end, depending on the current element.</p><p>By default, `clamp`.
|
|
6207
6118
|
*/
|
|
6208
|
-
|
|
6119
|
+
items: Type<NonEmptyArray<IDivTabsItem>>;
|
|
6209
6120
|
/**
|
|
6210
6121
|
* External margins from the element stroke.
|
|
6211
6122
|
*/
|
|
6212
6123
|
margins?: Type<IDivEdgeInsets>;
|
|
6213
|
-
/**
|
|
6214
|
-
* Maximum number of lines not to be cropped when breaking the limits.
|
|
6215
|
-
*/
|
|
6216
|
-
max_lines?: Type<number | DivExpression>;
|
|
6217
|
-
/**
|
|
6218
|
-
* Minimum number of cropped lines when breaking the limits.
|
|
6219
|
-
*/
|
|
6220
|
-
min_hidden_lines?: Type<number | DivExpression>;
|
|
6221
6124
|
/**
|
|
6222
6125
|
* Internal margins from the element stroke.
|
|
6223
6126
|
*/
|
|
6224
6127
|
paddings?: Type<IDivEdgeInsets>;
|
|
6225
6128
|
/**
|
|
6226
|
-
*
|
|
6227
|
-
* `start` and `end` fields.
|
|
6129
|
+
* If the parameter is enabled, tabs won't transmit the scroll gesture to the parent element.
|
|
6228
6130
|
*/
|
|
6229
|
-
|
|
6131
|
+
restrict_parent_scroll?: Type<IntBoolean | DivExpression>;
|
|
6230
6132
|
/**
|
|
6231
6133
|
* Merges cells in a string of the [grid](div-grid.md) element.
|
|
6232
6134
|
*/
|
|
6233
6135
|
row_span?: Type<number | DivExpression>;
|
|
6234
|
-
/**
|
|
6235
|
-
* Ability to select and copy text.
|
|
6236
|
-
*/
|
|
6237
|
-
selectable?: Type<IntBoolean | DivExpression>;
|
|
6238
6136
|
/**
|
|
6239
6137
|
* List of [actions](div-action.md) to be executed when selecting an element in
|
|
6240
6138
|
* [pager](div-pager.md).
|
|
6241
6139
|
*/
|
|
6242
6140
|
selected_actions?: Type<NonEmptyArray<IDivAction>>;
|
|
6243
6141
|
/**
|
|
6244
|
-
*
|
|
6142
|
+
* Ordinal number of the tab that will be opened by default.
|
|
6245
6143
|
*/
|
|
6246
|
-
|
|
6144
|
+
selected_tab?: Type<number | DivExpression>;
|
|
6247
6145
|
/**
|
|
6248
|
-
*
|
|
6146
|
+
* Separator color.
|
|
6249
6147
|
*/
|
|
6250
|
-
|
|
6148
|
+
separator_color?: Type<string | DivExpression>;
|
|
6251
6149
|
/**
|
|
6252
|
-
*
|
|
6150
|
+
* Indents from the separating line. Not used if `has_separator = false`.
|
|
6253
6151
|
*/
|
|
6254
|
-
|
|
6152
|
+
separator_paddings?: Type<IDivEdgeInsets>;
|
|
6255
6153
|
/**
|
|
6256
|
-
*
|
|
6154
|
+
* Switching tabs by scrolling through the contents.
|
|
6257
6155
|
*/
|
|
6258
|
-
|
|
6156
|
+
switch_tabs_by_content_swipe_enabled?: Type<IntBoolean | DivExpression>;
|
|
6259
6157
|
/**
|
|
6260
|
-
*
|
|
6158
|
+
* Design style of tab titles.
|
|
6261
6159
|
*/
|
|
6262
|
-
|
|
6160
|
+
tab_title_style?: Type<IDivTabsTabTitleStyle>;
|
|
6263
6161
|
/**
|
|
6264
|
-
*
|
|
6162
|
+
* Indents in the tab name.
|
|
6265
6163
|
*/
|
|
6266
|
-
|
|
6164
|
+
title_paddings?: Type<IDivEdgeInsets>;
|
|
6267
6165
|
/**
|
|
6268
6166
|
* Tooltips linked to an element. A tooltip can be shown by `div-action://show_tooltip?id=`,
|
|
6269
6167
|
* hidden by `div-action://hide_tooltip?id=` where `id` — tooltip id.
|
|
@@ -6293,16 +6191,6 @@ declare class DivText<T extends DivTextProps = DivTextProps> {
|
|
|
6293
6191
|
* Animation starting triggers. Default value: `[state_change, visibility_change]`.
|
|
6294
6192
|
*/
|
|
6295
6193
|
transition_triggers?: Type<NonEmptyArray<DivTransitionTrigger>>;
|
|
6296
|
-
/**
|
|
6297
|
-
* Text cropping method. Use `ellipsis` instead.
|
|
6298
|
-
*
|
|
6299
|
-
* @deprecated
|
|
6300
|
-
*/
|
|
6301
|
-
truncate?: Type<DivTextTruncate | DivExpression>;
|
|
6302
|
-
/**
|
|
6303
|
-
* Underline.
|
|
6304
|
-
*/
|
|
6305
|
-
underline?: Type<DivLineStyle | DivExpression>;
|
|
6306
6194
|
/**
|
|
6307
6195
|
* Element visibility.
|
|
6308
6196
|
*/
|
|
@@ -6320,26 +6208,13 @@ declare class DivText<T extends DivTextProps = DivTextProps> {
|
|
|
6320
6208
|
* Element width.
|
|
6321
6209
|
*/
|
|
6322
6210
|
width?: Type<DivSize>;
|
|
6323
|
-
constructor(props: Exact<
|
|
6211
|
+
constructor(props: Exact<DivTabsProps, T>);
|
|
6324
6212
|
}
|
|
6325
|
-
interface
|
|
6213
|
+
interface DivTabsProps {
|
|
6326
6214
|
/**
|
|
6327
6215
|
* Accessibility settings.
|
|
6328
6216
|
*/
|
|
6329
6217
|
accessibility?: Type<IDivAccessibility>;
|
|
6330
|
-
/**
|
|
6331
|
-
* One action when clicking on an element. Not used if the `actions` parameter is set.
|
|
6332
|
-
*/
|
|
6333
|
-
action?: Type<IDivAction>;
|
|
6334
|
-
/**
|
|
6335
|
-
* Click animation. The web only supports the following values: `fade`, `scale`, `native`,
|
|
6336
|
-
* `no_animation` and `set`.
|
|
6337
|
-
*/
|
|
6338
|
-
action_animation?: Type<IDivAnimation>;
|
|
6339
|
-
/**
|
|
6340
|
-
* Multiple actions when clicking on an element.
|
|
6341
|
-
*/
|
|
6342
|
-
actions?: Type<NonEmptyArray<IDivAction>>;
|
|
6343
6218
|
/**
|
|
6344
6219
|
* Horizontal alignment of an element inside the parent element.
|
|
6345
6220
|
*/
|
|
@@ -6353,11 +6228,7 @@ interface DivTextProps {
|
|
|
6353
6228
|
*/
|
|
6354
6229
|
alpha?: Type<number | DivExpression>;
|
|
6355
6230
|
/**
|
|
6356
|
-
*
|
|
6357
|
-
*/
|
|
6358
|
-
auto_ellipsize?: Type<IntBoolean | DivExpression>;
|
|
6359
|
-
/**
|
|
6360
|
-
* Element background. It can contain multiple layers.
|
|
6231
|
+
* Element background. It can contain multiple layers.
|
|
6361
6232
|
*/
|
|
6362
6233
|
background?: Type<NonEmptyArray<DivBackground>>;
|
|
6363
6234
|
/**
|
|
@@ -6369,13 +6240,9 @@ interface DivTextProps {
|
|
|
6369
6240
|
*/
|
|
6370
6241
|
column_span?: Type<number | DivExpression>;
|
|
6371
6242
|
/**
|
|
6372
|
-
*
|
|
6373
|
-
*/
|
|
6374
|
-
doubletap_actions?: Type<NonEmptyArray<IDivAction>>;
|
|
6375
|
-
/**
|
|
6376
|
-
* Text cropping marker. It is displayed when text size exceeds the limit on the number of lines.
|
|
6243
|
+
* Updating height when changing the active element. In the browser, the value is always `true`.
|
|
6377
6244
|
*/
|
|
6378
|
-
|
|
6245
|
+
dynamic_height?: Type<IntBoolean | DivExpression>;
|
|
6379
6246
|
/**
|
|
6380
6247
|
* Extensions for additional processing of an element. The list of extensions is given in
|
|
6381
6248
|
* [DivExtension](../../extensions.dita).
|
|
@@ -6386,23 +6253,9 @@ interface DivTextProps {
|
|
|
6386
6253
|
*/
|
|
6387
6254
|
focus?: Type<IDivFocus>;
|
|
6388
6255
|
/**
|
|
6389
|
-
*
|
|
6390
|
-
*/
|
|
6391
|
-
focused_text_color?: Type<string | DivExpression>;
|
|
6392
|
-
/**
|
|
6393
|
-
* Font family:`text` — a standard text font;`display` — a family of fonts with a large font
|
|
6394
|
-
* size.
|
|
6395
|
-
*/
|
|
6396
|
-
font_family?: Type<DivFontFamily | DivExpression>;
|
|
6397
|
-
/**
|
|
6398
|
-
* Font size.
|
|
6399
|
-
*/
|
|
6400
|
-
font_size?: Type<number | DivExpression>;
|
|
6401
|
-
font_size_unit?: Type<DivSizeUnit | DivExpression>;
|
|
6402
|
-
/**
|
|
6403
|
-
* Style.
|
|
6256
|
+
* A separating line between tabs and contents.
|
|
6404
6257
|
*/
|
|
6405
|
-
|
|
6258
|
+
has_separator?: Type<IntBoolean | DivExpression>;
|
|
6406
6259
|
/**
|
|
6407
6260
|
* Element height. For Android: if there is text in this or in a child element, specify height in
|
|
6408
6261
|
* `sp` to scale the element together with the text. To learn more about units of size
|
|
@@ -6415,80 +6268,62 @@ interface DivTextProps {
|
|
|
6415
6268
|
*/
|
|
6416
6269
|
id?: Type<string>;
|
|
6417
6270
|
/**
|
|
6418
|
-
*
|
|
6419
|
-
|
|
6420
|
-
|
|
6421
|
-
|
|
6422
|
-
*
|
|
6423
|
-
|
|
6424
|
-
|
|
6425
|
-
|
|
6426
|
-
*
|
|
6427
|
-
*/
|
|
6428
|
-
line_height?: Type<number | DivExpression>;
|
|
6429
|
-
/**
|
|
6430
|
-
* Action when long-clicking an element. Doesn't work on devices that don't support touch
|
|
6431
|
-
* gestures.
|
|
6271
|
+
* Tabs. Transition between tabs can be implemented
|
|
6272
|
+
* using:`div-action://set_current_item?id=&item=` — set the current tab with an ordinal number
|
|
6273
|
+
* `item` inside an element, with the specified
|
|
6274
|
+
* `id`;`div-action://set_next_item?id=[&overflow={clamp|ring}]` — go to the next tab inside an
|
|
6275
|
+
* element, with the specified `id`;`div-action://set_previous_item?id=[&overflow={clamp|ring}]`
|
|
6276
|
+
* — go to the previous tab inside an element, with the specified `id`.</p><p>The optional
|
|
6277
|
+
* `overflow` parameter is used to set navigation when the first or last element is
|
|
6278
|
+
* reached:`clamp` — transition will stop at the border element;`ring` — go to the beginning or
|
|
6279
|
+
* end, depending on the current element.</p><p>By default, `clamp`.
|
|
6432
6280
|
*/
|
|
6433
|
-
|
|
6281
|
+
items: Type<NonEmptyArray<IDivTabsItem>>;
|
|
6434
6282
|
/**
|
|
6435
6283
|
* External margins from the element stroke.
|
|
6436
6284
|
*/
|
|
6437
6285
|
margins?: Type<IDivEdgeInsets>;
|
|
6438
|
-
/**
|
|
6439
|
-
* Maximum number of lines not to be cropped when breaking the limits.
|
|
6440
|
-
*/
|
|
6441
|
-
max_lines?: Type<number | DivExpression>;
|
|
6442
|
-
/**
|
|
6443
|
-
* Minimum number of cropped lines when breaking the limits.
|
|
6444
|
-
*/
|
|
6445
|
-
min_hidden_lines?: Type<number | DivExpression>;
|
|
6446
6286
|
/**
|
|
6447
6287
|
* Internal margins from the element stroke.
|
|
6448
6288
|
*/
|
|
6449
6289
|
paddings?: Type<IDivEdgeInsets>;
|
|
6450
6290
|
/**
|
|
6451
|
-
*
|
|
6452
|
-
* `start` and `end` fields.
|
|
6291
|
+
* If the parameter is enabled, tabs won't transmit the scroll gesture to the parent element.
|
|
6453
6292
|
*/
|
|
6454
|
-
|
|
6293
|
+
restrict_parent_scroll?: Type<IntBoolean | DivExpression>;
|
|
6455
6294
|
/**
|
|
6456
6295
|
* Merges cells in a string of the [grid](div-grid.md) element.
|
|
6457
6296
|
*/
|
|
6458
6297
|
row_span?: Type<number | DivExpression>;
|
|
6459
|
-
/**
|
|
6460
|
-
* Ability to select and copy text.
|
|
6461
|
-
*/
|
|
6462
|
-
selectable?: Type<IntBoolean | DivExpression>;
|
|
6463
6298
|
/**
|
|
6464
6299
|
* List of [actions](div-action.md) to be executed when selecting an element in
|
|
6465
6300
|
* [pager](div-pager.md).
|
|
6466
6301
|
*/
|
|
6467
6302
|
selected_actions?: Type<NonEmptyArray<IDivAction>>;
|
|
6468
6303
|
/**
|
|
6469
|
-
*
|
|
6304
|
+
* Ordinal number of the tab that will be opened by default.
|
|
6470
6305
|
*/
|
|
6471
|
-
|
|
6306
|
+
selected_tab?: Type<number | DivExpression>;
|
|
6472
6307
|
/**
|
|
6473
|
-
*
|
|
6308
|
+
* Separator color.
|
|
6474
6309
|
*/
|
|
6475
|
-
|
|
6310
|
+
separator_color?: Type<string | DivExpression>;
|
|
6476
6311
|
/**
|
|
6477
|
-
*
|
|
6312
|
+
* Indents from the separating line. Not used if `has_separator = false`.
|
|
6478
6313
|
*/
|
|
6479
|
-
|
|
6314
|
+
separator_paddings?: Type<IDivEdgeInsets>;
|
|
6480
6315
|
/**
|
|
6481
|
-
*
|
|
6316
|
+
* Switching tabs by scrolling through the contents.
|
|
6482
6317
|
*/
|
|
6483
|
-
|
|
6318
|
+
switch_tabs_by_content_swipe_enabled?: Type<IntBoolean | DivExpression>;
|
|
6484
6319
|
/**
|
|
6485
|
-
*
|
|
6320
|
+
* Design style of tab titles.
|
|
6486
6321
|
*/
|
|
6487
|
-
|
|
6322
|
+
tab_title_style?: Type<IDivTabsTabTitleStyle>;
|
|
6488
6323
|
/**
|
|
6489
|
-
*
|
|
6324
|
+
* Indents in the tab name.
|
|
6490
6325
|
*/
|
|
6491
|
-
|
|
6326
|
+
title_paddings?: Type<IDivEdgeInsets>;
|
|
6492
6327
|
/**
|
|
6493
6328
|
* Tooltips linked to an element. A tooltip can be shown by `div-action://show_tooltip?id=`,
|
|
6494
6329
|
* hidden by `div-action://hide_tooltip?id=` where `id` — tooltip id.
|
|
@@ -6518,16 +6353,6 @@ interface DivTextProps {
|
|
|
6518
6353
|
* Animation starting triggers. Default value: `[state_change, visibility_change]`.
|
|
6519
6354
|
*/
|
|
6520
6355
|
transition_triggers?: Type<NonEmptyArray<DivTransitionTrigger>>;
|
|
6521
|
-
/**
|
|
6522
|
-
* Text cropping method. Use `ellipsis` instead.
|
|
6523
|
-
*
|
|
6524
|
-
* @deprecated
|
|
6525
|
-
*/
|
|
6526
|
-
truncate?: Type<DivTextTruncate | DivExpression>;
|
|
6527
|
-
/**
|
|
6528
|
-
* Underline.
|
|
6529
|
-
*/
|
|
6530
|
-
underline?: Type<DivLineStyle | DivExpression>;
|
|
6531
6356
|
/**
|
|
6532
6357
|
* Element visibility.
|
|
6533
6358
|
*/
|
|
@@ -6546,279 +6371,1248 @@ interface DivTextProps {
|
|
|
6546
6371
|
*/
|
|
6547
6372
|
width?: Type<DivSize>;
|
|
6548
6373
|
}
|
|
6549
|
-
declare type DivTextTruncate = 'none' | 'start' | 'end' | 'middle';
|
|
6550
6374
|
/**
|
|
6551
|
-
*
|
|
6375
|
+
* Tab.
|
|
6552
6376
|
*/
|
|
6553
|
-
interface
|
|
6554
|
-
/**
|
|
6555
|
-
* Actions when clicking on a crop marker.
|
|
6556
|
-
*/
|
|
6557
|
-
actions?: Type<NonEmptyArray<IDivAction>>;
|
|
6377
|
+
interface IDivTabsItem {
|
|
6558
6378
|
/**
|
|
6559
|
-
*
|
|
6379
|
+
* Tab contents.
|
|
6560
6380
|
*/
|
|
6561
|
-
|
|
6381
|
+
div: Type<Div>;
|
|
6562
6382
|
/**
|
|
6563
|
-
*
|
|
6383
|
+
* Tab title.
|
|
6564
6384
|
*/
|
|
6565
|
-
|
|
6385
|
+
title: Type<string | DivExpression>;
|
|
6566
6386
|
/**
|
|
6567
|
-
*
|
|
6387
|
+
* Action when clicking on the active tab title.
|
|
6568
6388
|
*/
|
|
6569
|
-
|
|
6389
|
+
title_click_action?: Type<IDivAction>;
|
|
6570
6390
|
}
|
|
6571
6391
|
/**
|
|
6572
|
-
*
|
|
6392
|
+
* Design style of tab titles.
|
|
6573
6393
|
*/
|
|
6574
|
-
interface
|
|
6575
|
-
/**
|
|
6576
|
-
* Image height.
|
|
6577
|
-
*/
|
|
6578
|
-
height?: Type<DivFixedSize>;
|
|
6579
|
-
/**
|
|
6580
|
-
* A symbol to insert prior to an image. To insert an image at the end of the text, specify the
|
|
6581
|
-
* number of the last character plus one.
|
|
6582
|
-
*/
|
|
6583
|
-
start: Type<number | DivExpression>;
|
|
6584
|
-
/**
|
|
6585
|
-
* New color of a contour image.
|
|
6586
|
-
*/
|
|
6587
|
-
tint_color?: Type<string | DivExpression>;
|
|
6394
|
+
interface IDivTabsTabTitleStyle {
|
|
6588
6395
|
/**
|
|
6589
|
-
*
|
|
6396
|
+
* Background color of the active tab title.
|
|
6590
6397
|
*/
|
|
6591
|
-
|
|
6398
|
+
active_background_color?: Type<string | DivExpression>;
|
|
6592
6399
|
/**
|
|
6593
|
-
*
|
|
6400
|
+
* Active tab title style.
|
|
6594
6401
|
*/
|
|
6595
|
-
|
|
6402
|
+
active_font_weight?: Type<DivFontWeight | DivExpression>;
|
|
6596
6403
|
/**
|
|
6597
|
-
*
|
|
6404
|
+
* Color of the active tab title text.
|
|
6598
6405
|
*/
|
|
6599
|
-
|
|
6600
|
-
}
|
|
6601
|
-
/**
|
|
6602
|
-
* Additional parameters of the character range.
|
|
6603
|
-
*/
|
|
6604
|
-
interface IDivTextRange {
|
|
6406
|
+
active_text_color?: Type<string | DivExpression>;
|
|
6605
6407
|
/**
|
|
6606
|
-
*
|
|
6408
|
+
* Duration of active title change animation.
|
|
6607
6409
|
*/
|
|
6608
|
-
|
|
6410
|
+
animation_duration?: Type<number | DivExpression>;
|
|
6609
6411
|
/**
|
|
6610
|
-
*
|
|
6412
|
+
* Active title change animation.
|
|
6611
6413
|
*/
|
|
6612
|
-
|
|
6414
|
+
animation_type?: Type<TabTitleStyleAnimationType | DivExpression>;
|
|
6613
6415
|
/**
|
|
6614
|
-
*
|
|
6416
|
+
* Title corner rounding radius. If the parameter isn't specified, the rounding is maximum (half
|
|
6417
|
+
* of the smallest size). Not used if the `corners_radius` parameter is set.
|
|
6615
6418
|
*/
|
|
6616
|
-
|
|
6419
|
+
corner_radius?: Type<number | DivExpression>;
|
|
6617
6420
|
/**
|
|
6618
|
-
*
|
|
6421
|
+
* Rounding radii of corners of multiple titles. Empty values are replaced by `corner_radius`.
|
|
6619
6422
|
*/
|
|
6620
|
-
|
|
6423
|
+
corners_radius?: Type<IDivCornersRadius>;
|
|
6621
6424
|
/**
|
|
6622
6425
|
* Font family:`text` — a standard text font;`display` — a family of fonts with a large font
|
|
6623
6426
|
* size.
|
|
6624
6427
|
*/
|
|
6625
6428
|
font_family?: Type<DivFontFamily | DivExpression>;
|
|
6626
6429
|
/**
|
|
6627
|
-
*
|
|
6430
|
+
* Title font size.
|
|
6628
6431
|
*/
|
|
6629
6432
|
font_size?: Type<number | DivExpression>;
|
|
6630
6433
|
/**
|
|
6631
|
-
*
|
|
6632
|
-
* screen density.`sp` — a logical pixel that depends on the font size on a device. Specify
|
|
6633
|
-
* height in `sp`. Only available on Android.
|
|
6434
|
+
* Units of title font size measurement.
|
|
6634
6435
|
*/
|
|
6635
6436
|
font_size_unit?: Type<DivSizeUnit | DivExpression>;
|
|
6636
6437
|
/**
|
|
6637
|
-
* Style.
|
|
6438
|
+
* Style. Use `active_font_weight` and `inactive_font_weight` instead.
|
|
6439
|
+
*
|
|
6440
|
+
* @deprecated
|
|
6638
6441
|
*/
|
|
6639
6442
|
font_weight?: Type<DivFontWeight | DivExpression>;
|
|
6640
6443
|
/**
|
|
6641
|
-
*
|
|
6444
|
+
* Background color of the inactive tab title.
|
|
6642
6445
|
*/
|
|
6643
|
-
|
|
6446
|
+
inactive_background_color?: Type<string | DivExpression>;
|
|
6644
6447
|
/**
|
|
6645
|
-
*
|
|
6448
|
+
* Inactive tab title style.
|
|
6646
6449
|
*/
|
|
6647
|
-
|
|
6450
|
+
inactive_font_weight?: Type<DivFontWeight | DivExpression>;
|
|
6648
6451
|
/**
|
|
6649
|
-
*
|
|
6650
|
-
* `0`.
|
|
6452
|
+
* Color of the inactive tab title text.
|
|
6651
6453
|
*/
|
|
6652
|
-
|
|
6454
|
+
inactive_text_color?: Type<string | DivExpression>;
|
|
6653
6455
|
/**
|
|
6654
|
-
*
|
|
6456
|
+
* Spacing between neighbouring tab titles.
|
|
6655
6457
|
*/
|
|
6656
|
-
|
|
6458
|
+
item_spacing?: Type<number | DivExpression>;
|
|
6657
6459
|
/**
|
|
6658
|
-
*
|
|
6460
|
+
* Spacing between title characters.
|
|
6659
6461
|
*/
|
|
6660
|
-
|
|
6462
|
+
letter_spacing?: Type<number | DivExpression>;
|
|
6661
6463
|
/**
|
|
6662
|
-
*
|
|
6464
|
+
* Line spacing of the text.
|
|
6663
6465
|
*/
|
|
6664
|
-
|
|
6466
|
+
line_height?: Type<number | DivExpression>;
|
|
6665
6467
|
/**
|
|
6666
|
-
*
|
|
6468
|
+
* Indents around the tab title.
|
|
6667
6469
|
*/
|
|
6668
|
-
|
|
6470
|
+
paddings?: Type<IDivEdgeInsets>;
|
|
6669
6471
|
}
|
|
6670
|
-
|
|
6671
|
-
declare type DivTextGradient = DivLinearGradient | DivRadialGradient;
|
|
6672
|
-
|
|
6673
|
-
declare type DivTextRangeBackground = DivSolidBackground;
|
|
6472
|
+
declare type TabTitleStyleAnimationType = 'slide' | 'fade' | 'none';
|
|
6674
6473
|
|
|
6675
6474
|
/**
|
|
6676
|
-
*
|
|
6475
|
+
* Text.
|
|
6677
6476
|
*/
|
|
6678
|
-
|
|
6477
|
+
declare class DivText<T extends DivTextProps = DivTextProps> {
|
|
6478
|
+
readonly _props?: Exact<DivTextProps, T>;
|
|
6479
|
+
readonly type = "text";
|
|
6679
6480
|
/**
|
|
6680
|
-
*
|
|
6481
|
+
* Accessibility settings.
|
|
6681
6482
|
*/
|
|
6682
|
-
|
|
6483
|
+
accessibility?: Type<IDivAccessibility>;
|
|
6683
6484
|
/**
|
|
6684
|
-
*
|
|
6485
|
+
* One action when clicking on an element. Not used if the `actions` parameter is set.
|
|
6685
6486
|
*/
|
|
6686
|
-
|
|
6687
|
-
}
|
|
6688
|
-
|
|
6689
|
-
/**
|
|
6690
|
-
* Timer.
|
|
6691
|
-
*/
|
|
6692
|
-
interface IDivTimer {
|
|
6487
|
+
action?: Type<IDivAction>;
|
|
6693
6488
|
/**
|
|
6694
|
-
*
|
|
6695
|
-
*
|
|
6489
|
+
* Click animation. The web only supports the following values: `fade`, `scale`, `native`,
|
|
6490
|
+
* `no_animation` and `set`.
|
|
6696
6491
|
*/
|
|
6697
|
-
|
|
6492
|
+
action_animation?: Type<IDivAnimation>;
|
|
6698
6493
|
/**
|
|
6699
|
-
*
|
|
6700
|
-
* the `div-action://timer?action=stop&id=<id>` command has been received.
|
|
6494
|
+
* Multiple actions when clicking on an element.
|
|
6701
6495
|
*/
|
|
6702
|
-
|
|
6496
|
+
actions?: Type<NonEmptyArray<IDivAction>>;
|
|
6703
6497
|
/**
|
|
6704
|
-
*
|
|
6705
|
-
|
|
6498
|
+
* Horizontal alignment of an element inside the parent element.
|
|
6499
|
+
*/
|
|
6500
|
+
alignment_horizontal?: Type<DivAlignmentHorizontal | DivExpression>;
|
|
6501
|
+
/**
|
|
6502
|
+
* Vertical alignment of an element inside the parent element.
|
|
6503
|
+
*/
|
|
6504
|
+
alignment_vertical?: Type<DivAlignmentVertical | DivExpression>;
|
|
6505
|
+
/**
|
|
6506
|
+
* Sets transparency of the entire element: `0` — completely transparent, `1` — opaque.
|
|
6507
|
+
*/
|
|
6508
|
+
alpha?: Type<number | DivExpression>;
|
|
6509
|
+
/**
|
|
6510
|
+
* Automatic text cropping to fit the container size.
|
|
6511
|
+
*/
|
|
6512
|
+
auto_ellipsize?: Type<IntBoolean | DivExpression>;
|
|
6513
|
+
/**
|
|
6514
|
+
* Element background. It can contain multiple layers.
|
|
6515
|
+
*/
|
|
6516
|
+
background?: Type<NonEmptyArray<DivBackground>>;
|
|
6517
|
+
/**
|
|
6518
|
+
* Element stroke.
|
|
6519
|
+
*/
|
|
6520
|
+
border?: Type<IDivBorder>;
|
|
6521
|
+
/**
|
|
6522
|
+
* Merges cells in a column of the [grid](div-grid.md) element.
|
|
6523
|
+
*/
|
|
6524
|
+
column_span?: Type<number | DivExpression>;
|
|
6525
|
+
/**
|
|
6526
|
+
* Action when double-clicking on an element.
|
|
6527
|
+
*/
|
|
6528
|
+
doubletap_actions?: Type<NonEmptyArray<IDivAction>>;
|
|
6529
|
+
/**
|
|
6530
|
+
* Text cropping marker. It is displayed when text size exceeds the limit on the number of lines.
|
|
6531
|
+
*/
|
|
6532
|
+
ellipsis?: Type<IDivTextEllipsis>;
|
|
6533
|
+
/**
|
|
6534
|
+
* Extensions for additional processing of an element. The list of extensions is given in
|
|
6535
|
+
* [DivExtension](../../extensions.dita).
|
|
6536
|
+
*/
|
|
6537
|
+
extensions?: Type<NonEmptyArray<IDivExtension>>;
|
|
6538
|
+
/**
|
|
6539
|
+
* Parameters when focusing on an element or losing focus.
|
|
6540
|
+
*/
|
|
6541
|
+
focus?: Type<IDivFocus>;
|
|
6542
|
+
/**
|
|
6543
|
+
* Text color when focusing on the element.
|
|
6544
|
+
*/
|
|
6545
|
+
focused_text_color?: Type<string | DivExpression>;
|
|
6546
|
+
/**
|
|
6547
|
+
* Font family:`text` — a standard text font;`display` — a family of fonts with a large font
|
|
6548
|
+
* size.
|
|
6549
|
+
*/
|
|
6550
|
+
font_family?: Type<DivFontFamily | DivExpression>;
|
|
6551
|
+
/**
|
|
6552
|
+
* Font size.
|
|
6553
|
+
*/
|
|
6554
|
+
font_size?: Type<number | DivExpression>;
|
|
6555
|
+
font_size_unit?: Type<DivSizeUnit | DivExpression>;
|
|
6556
|
+
/**
|
|
6557
|
+
* Style.
|
|
6558
|
+
*/
|
|
6559
|
+
font_weight?: Type<DivFontWeight | DivExpression>;
|
|
6560
|
+
/**
|
|
6561
|
+
* Element height. For Android: if there is text in this or in a child element, specify height in
|
|
6562
|
+
* `sp` to scale the element together with the text. To learn more about units of size
|
|
6563
|
+
* measurement, see [Layout inside the card](../../layout.dita).
|
|
6564
|
+
*/
|
|
6565
|
+
height?: Type<DivSize>;
|
|
6566
|
+
/**
|
|
6567
|
+
* Element ID. It must be unique within the root element. It is used as `accessibilityIdentifier`
|
|
6568
|
+
* on iOS.
|
|
6569
|
+
*/
|
|
6570
|
+
id?: Type<string>;
|
|
6571
|
+
/**
|
|
6572
|
+
* Images embedded in text.
|
|
6573
|
+
*/
|
|
6574
|
+
images?: Type<NonEmptyArray<IDivTextImage>>;
|
|
6575
|
+
/**
|
|
6576
|
+
* Spacing between characters.
|
|
6577
|
+
*/
|
|
6578
|
+
letter_spacing?: Type<number | DivExpression>;
|
|
6579
|
+
/**
|
|
6580
|
+
* Line spacing of the text.
|
|
6581
|
+
*/
|
|
6582
|
+
line_height?: Type<number | DivExpression>;
|
|
6583
|
+
/**
|
|
6584
|
+
* Action when long-clicking an element. Doesn't work on devices that don't support touch
|
|
6585
|
+
* gestures.
|
|
6586
|
+
*/
|
|
6587
|
+
longtap_actions?: Type<NonEmptyArray<IDivAction>>;
|
|
6588
|
+
/**
|
|
6589
|
+
* External margins from the element stroke.
|
|
6590
|
+
*/
|
|
6591
|
+
margins?: Type<IDivEdgeInsets>;
|
|
6592
|
+
/**
|
|
6593
|
+
* Maximum number of lines not to be cropped when breaking the limits.
|
|
6594
|
+
*/
|
|
6595
|
+
max_lines?: Type<number | DivExpression>;
|
|
6596
|
+
/**
|
|
6597
|
+
* Minimum number of cropped lines when breaking the limits.
|
|
6598
|
+
*/
|
|
6599
|
+
min_hidden_lines?: Type<number | DivExpression>;
|
|
6600
|
+
/**
|
|
6601
|
+
* Internal margins from the element stroke.
|
|
6602
|
+
*/
|
|
6603
|
+
paddings?: Type<IDivEdgeInsets>;
|
|
6604
|
+
/**
|
|
6605
|
+
* A character range in which additional style parameters can be set. Defined by mandatory
|
|
6606
|
+
* `start` and `end` fields.
|
|
6607
|
+
*/
|
|
6608
|
+
ranges?: Type<NonEmptyArray<IDivTextRange>>;
|
|
6609
|
+
/**
|
|
6610
|
+
* Merges cells in a string of the [grid](div-grid.md) element.
|
|
6611
|
+
*/
|
|
6612
|
+
row_span?: Type<number | DivExpression>;
|
|
6613
|
+
/**
|
|
6614
|
+
* Ability to select and copy text.
|
|
6615
|
+
*/
|
|
6616
|
+
selectable?: Type<IntBoolean | DivExpression>;
|
|
6617
|
+
/**
|
|
6618
|
+
* List of [actions](div-action.md) to be executed when selecting an element in
|
|
6619
|
+
* [pager](div-pager.md).
|
|
6620
|
+
*/
|
|
6621
|
+
selected_actions?: Type<NonEmptyArray<IDivAction>>;
|
|
6622
|
+
/**
|
|
6623
|
+
* Strikethrough.
|
|
6624
|
+
*/
|
|
6625
|
+
strike?: Type<DivLineStyle | DivExpression>;
|
|
6626
|
+
/**
|
|
6627
|
+
* Text.
|
|
6628
|
+
*/
|
|
6629
|
+
text: Type<string | DivExpression>;
|
|
6630
|
+
/**
|
|
6631
|
+
* Horizontal text alignment.
|
|
6632
|
+
*/
|
|
6633
|
+
text_alignment_horizontal?: Type<DivAlignmentHorizontal | DivExpression>;
|
|
6634
|
+
/**
|
|
6635
|
+
* Vertical text alignment.
|
|
6636
|
+
*/
|
|
6637
|
+
text_alignment_vertical?: Type<DivAlignmentVertical | DivExpression>;
|
|
6638
|
+
/**
|
|
6639
|
+
* Text color. Not used if the `text_gradient` parameter is set.
|
|
6640
|
+
*/
|
|
6641
|
+
text_color?: Type<string | DivExpression>;
|
|
6642
|
+
/**
|
|
6643
|
+
* Gradient text color.
|
|
6644
|
+
*/
|
|
6645
|
+
text_gradient?: Type<DivTextGradient>;
|
|
6646
|
+
/**
|
|
6647
|
+
* Tooltips linked to an element. A tooltip can be shown by `div-action://show_tooltip?id=`,
|
|
6648
|
+
* hidden by `div-action://hide_tooltip?id=` where `id` — tooltip id.
|
|
6649
|
+
*/
|
|
6650
|
+
tooltips?: Type<NonEmptyArray<IDivTooltip>>;
|
|
6651
|
+
/**
|
|
6652
|
+
* Applies the passed transformation to the element. Content that doesn't fit into the original
|
|
6653
|
+
* view area is cut off.
|
|
6654
|
+
*/
|
|
6655
|
+
transform?: Type<IDivTransform>;
|
|
6656
|
+
/**
|
|
6657
|
+
* Change animation. It is played when the position or size of an element changes in the new
|
|
6658
|
+
* layout.
|
|
6659
|
+
*/
|
|
6660
|
+
transition_change?: Type<DivChangeTransition>;
|
|
6661
|
+
/**
|
|
6662
|
+
* Appearance animation. It is played when an element with a new ID appears. To learn more about
|
|
6663
|
+
* the concept of transitions, see [Animated
|
|
6664
|
+
* transitions](../../interaction.dita#animation/transition-animation).
|
|
6665
|
+
*/
|
|
6666
|
+
transition_in?: Type<DivAppearanceTransition>;
|
|
6667
|
+
/**
|
|
6668
|
+
* Disappearance animation. It is played when an element disappears in the new layout.
|
|
6669
|
+
*/
|
|
6670
|
+
transition_out?: Type<DivAppearanceTransition>;
|
|
6671
|
+
/**
|
|
6672
|
+
* Animation starting triggers. Default value: `[state_change, visibility_change]`.
|
|
6673
|
+
*/
|
|
6674
|
+
transition_triggers?: Type<NonEmptyArray<DivTransitionTrigger>>;
|
|
6675
|
+
/**
|
|
6676
|
+
* Text cropping method. Use `ellipsis` instead.
|
|
6677
|
+
*
|
|
6678
|
+
* @deprecated
|
|
6679
|
+
*/
|
|
6680
|
+
truncate?: Type<DivTextTruncate | DivExpression>;
|
|
6681
|
+
/**
|
|
6682
|
+
* Underline.
|
|
6683
|
+
*/
|
|
6684
|
+
underline?: Type<DivLineStyle | DivExpression>;
|
|
6685
|
+
/**
|
|
6686
|
+
* Element visibility.
|
|
6687
|
+
*/
|
|
6688
|
+
visibility?: Type<DivVisibility | DivExpression>;
|
|
6689
|
+
/**
|
|
6690
|
+
* Tracking visibility of a single element. Not used if the `visibility_actions` parameter is
|
|
6691
|
+
* set.
|
|
6692
|
+
*/
|
|
6693
|
+
visibility_action?: Type<IDivVisibilityAction>;
|
|
6694
|
+
/**
|
|
6695
|
+
* Actions when an element appears on the screen.
|
|
6696
|
+
*/
|
|
6697
|
+
visibility_actions?: Type<NonEmptyArray<IDivVisibilityAction>>;
|
|
6698
|
+
/**
|
|
6699
|
+
* Element width.
|
|
6700
|
+
*/
|
|
6701
|
+
width?: Type<DivSize>;
|
|
6702
|
+
constructor(props: Exact<DivTextProps, T>);
|
|
6703
|
+
}
|
|
6704
|
+
interface DivTextProps {
|
|
6705
|
+
/**
|
|
6706
|
+
* Accessibility settings.
|
|
6707
|
+
*/
|
|
6708
|
+
accessibility?: Type<IDivAccessibility>;
|
|
6709
|
+
/**
|
|
6710
|
+
* One action when clicking on an element. Not used if the `actions` parameter is set.
|
|
6711
|
+
*/
|
|
6712
|
+
action?: Type<IDivAction>;
|
|
6713
|
+
/**
|
|
6714
|
+
* Click animation. The web only supports the following values: `fade`, `scale`, `native`,
|
|
6715
|
+
* `no_animation` and `set`.
|
|
6716
|
+
*/
|
|
6717
|
+
action_animation?: Type<IDivAnimation>;
|
|
6718
|
+
/**
|
|
6719
|
+
* Multiple actions when clicking on an element.
|
|
6720
|
+
*/
|
|
6721
|
+
actions?: Type<NonEmptyArray<IDivAction>>;
|
|
6722
|
+
/**
|
|
6723
|
+
* Horizontal alignment of an element inside the parent element.
|
|
6724
|
+
*/
|
|
6725
|
+
alignment_horizontal?: Type<DivAlignmentHorizontal | DivExpression>;
|
|
6726
|
+
/**
|
|
6727
|
+
* Vertical alignment of an element inside the parent element.
|
|
6728
|
+
*/
|
|
6729
|
+
alignment_vertical?: Type<DivAlignmentVertical | DivExpression>;
|
|
6730
|
+
/**
|
|
6731
|
+
* Sets transparency of the entire element: `0` — completely transparent, `1` — opaque.
|
|
6732
|
+
*/
|
|
6733
|
+
alpha?: Type<number | DivExpression>;
|
|
6734
|
+
/**
|
|
6735
|
+
* Automatic text cropping to fit the container size.
|
|
6736
|
+
*/
|
|
6737
|
+
auto_ellipsize?: Type<IntBoolean | DivExpression>;
|
|
6738
|
+
/**
|
|
6739
|
+
* Element background. It can contain multiple layers.
|
|
6740
|
+
*/
|
|
6741
|
+
background?: Type<NonEmptyArray<DivBackground>>;
|
|
6742
|
+
/**
|
|
6743
|
+
* Element stroke.
|
|
6744
|
+
*/
|
|
6745
|
+
border?: Type<IDivBorder>;
|
|
6746
|
+
/**
|
|
6747
|
+
* Merges cells in a column of the [grid](div-grid.md) element.
|
|
6748
|
+
*/
|
|
6749
|
+
column_span?: Type<number | DivExpression>;
|
|
6750
|
+
/**
|
|
6751
|
+
* Action when double-clicking on an element.
|
|
6752
|
+
*/
|
|
6753
|
+
doubletap_actions?: Type<NonEmptyArray<IDivAction>>;
|
|
6754
|
+
/**
|
|
6755
|
+
* Text cropping marker. It is displayed when text size exceeds the limit on the number of lines.
|
|
6756
|
+
*/
|
|
6757
|
+
ellipsis?: Type<IDivTextEllipsis>;
|
|
6758
|
+
/**
|
|
6759
|
+
* Extensions for additional processing of an element. The list of extensions is given in
|
|
6760
|
+
* [DivExtension](../../extensions.dita).
|
|
6761
|
+
*/
|
|
6762
|
+
extensions?: Type<NonEmptyArray<IDivExtension>>;
|
|
6763
|
+
/**
|
|
6764
|
+
* Parameters when focusing on an element or losing focus.
|
|
6765
|
+
*/
|
|
6766
|
+
focus?: Type<IDivFocus>;
|
|
6767
|
+
/**
|
|
6768
|
+
* Text color when focusing on the element.
|
|
6769
|
+
*/
|
|
6770
|
+
focused_text_color?: Type<string | DivExpression>;
|
|
6771
|
+
/**
|
|
6772
|
+
* Font family:`text` — a standard text font;`display` — a family of fonts with a large font
|
|
6773
|
+
* size.
|
|
6774
|
+
*/
|
|
6775
|
+
font_family?: Type<DivFontFamily | DivExpression>;
|
|
6776
|
+
/**
|
|
6777
|
+
* Font size.
|
|
6778
|
+
*/
|
|
6779
|
+
font_size?: Type<number | DivExpression>;
|
|
6780
|
+
font_size_unit?: Type<DivSizeUnit | DivExpression>;
|
|
6781
|
+
/**
|
|
6782
|
+
* Style.
|
|
6783
|
+
*/
|
|
6784
|
+
font_weight?: Type<DivFontWeight | DivExpression>;
|
|
6785
|
+
/**
|
|
6786
|
+
* Element height. For Android: if there is text in this or in a child element, specify height in
|
|
6787
|
+
* `sp` to scale the element together with the text. To learn more about units of size
|
|
6788
|
+
* measurement, see [Layout inside the card](../../layout.dita).
|
|
6789
|
+
*/
|
|
6790
|
+
height?: Type<DivSize>;
|
|
6791
|
+
/**
|
|
6792
|
+
* Element ID. It must be unique within the root element. It is used as `accessibilityIdentifier`
|
|
6793
|
+
* on iOS.
|
|
6794
|
+
*/
|
|
6795
|
+
id?: Type<string>;
|
|
6796
|
+
/**
|
|
6797
|
+
* Images embedded in text.
|
|
6798
|
+
*/
|
|
6799
|
+
images?: Type<NonEmptyArray<IDivTextImage>>;
|
|
6800
|
+
/**
|
|
6801
|
+
* Spacing between characters.
|
|
6802
|
+
*/
|
|
6803
|
+
letter_spacing?: Type<number | DivExpression>;
|
|
6804
|
+
/**
|
|
6805
|
+
* Line spacing of the text.
|
|
6806
|
+
*/
|
|
6807
|
+
line_height?: Type<number | DivExpression>;
|
|
6808
|
+
/**
|
|
6809
|
+
* Action when long-clicking an element. Doesn't work on devices that don't support touch
|
|
6810
|
+
* gestures.
|
|
6811
|
+
*/
|
|
6812
|
+
longtap_actions?: Type<NonEmptyArray<IDivAction>>;
|
|
6813
|
+
/**
|
|
6814
|
+
* External margins from the element stroke.
|
|
6815
|
+
*/
|
|
6816
|
+
margins?: Type<IDivEdgeInsets>;
|
|
6817
|
+
/**
|
|
6818
|
+
* Maximum number of lines not to be cropped when breaking the limits.
|
|
6819
|
+
*/
|
|
6820
|
+
max_lines?: Type<number | DivExpression>;
|
|
6821
|
+
/**
|
|
6822
|
+
* Minimum number of cropped lines when breaking the limits.
|
|
6823
|
+
*/
|
|
6824
|
+
min_hidden_lines?: Type<number | DivExpression>;
|
|
6825
|
+
/**
|
|
6826
|
+
* Internal margins from the element stroke.
|
|
6827
|
+
*/
|
|
6828
|
+
paddings?: Type<IDivEdgeInsets>;
|
|
6829
|
+
/**
|
|
6830
|
+
* A character range in which additional style parameters can be set. Defined by mandatory
|
|
6831
|
+
* `start` and `end` fields.
|
|
6832
|
+
*/
|
|
6833
|
+
ranges?: Type<NonEmptyArray<IDivTextRange>>;
|
|
6834
|
+
/**
|
|
6835
|
+
* Merges cells in a string of the [grid](div-grid.md) element.
|
|
6836
|
+
*/
|
|
6837
|
+
row_span?: Type<number | DivExpression>;
|
|
6838
|
+
/**
|
|
6839
|
+
* Ability to select and copy text.
|
|
6840
|
+
*/
|
|
6841
|
+
selectable?: Type<IntBoolean | DivExpression>;
|
|
6842
|
+
/**
|
|
6843
|
+
* List of [actions](div-action.md) to be executed when selecting an element in
|
|
6844
|
+
* [pager](div-pager.md).
|
|
6845
|
+
*/
|
|
6846
|
+
selected_actions?: Type<NonEmptyArray<IDivAction>>;
|
|
6847
|
+
/**
|
|
6848
|
+
* Strikethrough.
|
|
6849
|
+
*/
|
|
6850
|
+
strike?: Type<DivLineStyle | DivExpression>;
|
|
6851
|
+
/**
|
|
6852
|
+
* Text.
|
|
6853
|
+
*/
|
|
6854
|
+
text: Type<string | DivExpression>;
|
|
6855
|
+
/**
|
|
6856
|
+
* Horizontal text alignment.
|
|
6857
|
+
*/
|
|
6858
|
+
text_alignment_horizontal?: Type<DivAlignmentHorizontal | DivExpression>;
|
|
6859
|
+
/**
|
|
6860
|
+
* Vertical text alignment.
|
|
6861
|
+
*/
|
|
6862
|
+
text_alignment_vertical?: Type<DivAlignmentVertical | DivExpression>;
|
|
6863
|
+
/**
|
|
6864
|
+
* Text color. Not used if the `text_gradient` parameter is set.
|
|
6865
|
+
*/
|
|
6866
|
+
text_color?: Type<string | DivExpression>;
|
|
6867
|
+
/**
|
|
6868
|
+
* Gradient text color.
|
|
6869
|
+
*/
|
|
6870
|
+
text_gradient?: Type<DivTextGradient>;
|
|
6871
|
+
/**
|
|
6872
|
+
* Tooltips linked to an element. A tooltip can be shown by `div-action://show_tooltip?id=`,
|
|
6873
|
+
* hidden by `div-action://hide_tooltip?id=` where `id` — tooltip id.
|
|
6874
|
+
*/
|
|
6875
|
+
tooltips?: Type<NonEmptyArray<IDivTooltip>>;
|
|
6876
|
+
/**
|
|
6877
|
+
* Applies the passed transformation to the element. Content that doesn't fit into the original
|
|
6878
|
+
* view area is cut off.
|
|
6879
|
+
*/
|
|
6880
|
+
transform?: Type<IDivTransform>;
|
|
6881
|
+
/**
|
|
6882
|
+
* Change animation. It is played when the position or size of an element changes in the new
|
|
6883
|
+
* layout.
|
|
6884
|
+
*/
|
|
6885
|
+
transition_change?: Type<DivChangeTransition>;
|
|
6886
|
+
/**
|
|
6887
|
+
* Appearance animation. It is played when an element with a new ID appears. To learn more about
|
|
6888
|
+
* the concept of transitions, see [Animated
|
|
6889
|
+
* transitions](../../interaction.dita#animation/transition-animation).
|
|
6890
|
+
*/
|
|
6891
|
+
transition_in?: Type<DivAppearanceTransition>;
|
|
6892
|
+
/**
|
|
6893
|
+
* Disappearance animation. It is played when an element disappears in the new layout.
|
|
6894
|
+
*/
|
|
6895
|
+
transition_out?: Type<DivAppearanceTransition>;
|
|
6896
|
+
/**
|
|
6897
|
+
* Animation starting triggers. Default value: `[state_change, visibility_change]`.
|
|
6898
|
+
*/
|
|
6899
|
+
transition_triggers?: Type<NonEmptyArray<DivTransitionTrigger>>;
|
|
6900
|
+
/**
|
|
6901
|
+
* Text cropping method. Use `ellipsis` instead.
|
|
6902
|
+
*
|
|
6903
|
+
* @deprecated
|
|
6904
|
+
*/
|
|
6905
|
+
truncate?: Type<DivTextTruncate | DivExpression>;
|
|
6906
|
+
/**
|
|
6907
|
+
* Underline.
|
|
6908
|
+
*/
|
|
6909
|
+
underline?: Type<DivLineStyle | DivExpression>;
|
|
6910
|
+
/**
|
|
6911
|
+
* Element visibility.
|
|
6912
|
+
*/
|
|
6913
|
+
visibility?: Type<DivVisibility | DivExpression>;
|
|
6914
|
+
/**
|
|
6915
|
+
* Tracking visibility of a single element. Not used if the `visibility_actions` parameter is
|
|
6916
|
+
* set.
|
|
6917
|
+
*/
|
|
6918
|
+
visibility_action?: Type<IDivVisibilityAction>;
|
|
6919
|
+
/**
|
|
6920
|
+
* Actions when an element appears on the screen.
|
|
6921
|
+
*/
|
|
6922
|
+
visibility_actions?: Type<NonEmptyArray<IDivVisibilityAction>>;
|
|
6923
|
+
/**
|
|
6924
|
+
* Element width.
|
|
6925
|
+
*/
|
|
6926
|
+
width?: Type<DivSize>;
|
|
6927
|
+
}
|
|
6928
|
+
declare type DivTextTruncate = 'none' | 'start' | 'end' | 'middle';
|
|
6929
|
+
/**
|
|
6930
|
+
* Text cropping marker. It is displayed when text size exceeds the limit on the number of lines.
|
|
6931
|
+
*/
|
|
6932
|
+
interface IDivTextEllipsis {
|
|
6933
|
+
/**
|
|
6934
|
+
* Actions when clicking on a crop marker.
|
|
6935
|
+
*/
|
|
6936
|
+
actions?: Type<NonEmptyArray<IDivAction>>;
|
|
6937
|
+
/**
|
|
6938
|
+
* Images embedded in a crop marker.
|
|
6939
|
+
*/
|
|
6940
|
+
images?: Type<NonEmptyArray<IDivTextImage>>;
|
|
6941
|
+
/**
|
|
6942
|
+
* Character ranges inside a crop marker with different text styles.
|
|
6943
|
+
*/
|
|
6944
|
+
ranges?: Type<NonEmptyArray<IDivTextRange>>;
|
|
6945
|
+
/**
|
|
6946
|
+
* Marker text.
|
|
6947
|
+
*/
|
|
6948
|
+
text: Type<string | DivExpression>;
|
|
6949
|
+
}
|
|
6950
|
+
/**
|
|
6951
|
+
* Image.
|
|
6952
|
+
*/
|
|
6953
|
+
interface IDivTextImage {
|
|
6954
|
+
/**
|
|
6955
|
+
* Image height.
|
|
6956
|
+
*/
|
|
6957
|
+
height?: Type<DivFixedSize>;
|
|
6958
|
+
/**
|
|
6959
|
+
* A symbol to insert prior to an image. To insert an image at the end of the text, specify the
|
|
6960
|
+
* number of the last character plus one.
|
|
6961
|
+
*/
|
|
6962
|
+
start: Type<number | DivExpression>;
|
|
6963
|
+
/**
|
|
6964
|
+
* New color of a contour image.
|
|
6965
|
+
*/
|
|
6966
|
+
tint_color?: Type<string | DivExpression>;
|
|
6967
|
+
/**
|
|
6968
|
+
* Blend mode of the color specified in `tint_color`.
|
|
6969
|
+
*/
|
|
6970
|
+
tint_mode?: Type<DivBlendMode | DivExpression>;
|
|
6971
|
+
/**
|
|
6972
|
+
* Image URL.
|
|
6973
|
+
*/
|
|
6974
|
+
url: Type<string | DivExpression>;
|
|
6975
|
+
/**
|
|
6976
|
+
* Image width.
|
|
6977
|
+
*/
|
|
6978
|
+
width?: Type<DivFixedSize>;
|
|
6979
|
+
}
|
|
6980
|
+
/**
|
|
6981
|
+
* Additional parameters of the character range.
|
|
6982
|
+
*/
|
|
6983
|
+
interface IDivTextRange {
|
|
6984
|
+
/**
|
|
6985
|
+
* Action when clicking on text.
|
|
6986
|
+
*/
|
|
6987
|
+
actions?: Type<NonEmptyArray<IDivAction>>;
|
|
6988
|
+
/**
|
|
6989
|
+
* Character range background.
|
|
6990
|
+
*/
|
|
6991
|
+
background?: Type<DivTextRangeBackground>;
|
|
6992
|
+
/**
|
|
6993
|
+
* Character range border.
|
|
6994
|
+
*/
|
|
6995
|
+
border?: Type<IDivTextRangeBorder>;
|
|
6996
|
+
/**
|
|
6997
|
+
* Ordinal number of the last character to be included in the range.
|
|
6998
|
+
*/
|
|
6999
|
+
end: Type<number | DivExpression>;
|
|
7000
|
+
/**
|
|
7001
|
+
* Font family:`text` — a standard text font;`display` — a family of fonts with a large font
|
|
7002
|
+
* size.
|
|
7003
|
+
*/
|
|
7004
|
+
font_family?: Type<DivFontFamily | DivExpression>;
|
|
7005
|
+
/**
|
|
7006
|
+
* Font size.
|
|
7007
|
+
*/
|
|
7008
|
+
font_size?: Type<number | DivExpression>;
|
|
7009
|
+
/**
|
|
7010
|
+
* Unit of measurement:`px` — a physical pixel.`dp` — a logical pixel that doesn't depend on
|
|
7011
|
+
* screen density.`sp` — a logical pixel that depends on the font size on a device. Specify
|
|
7012
|
+
* height in `sp`. Only available on Android.
|
|
7013
|
+
*/
|
|
7014
|
+
font_size_unit?: Type<DivSizeUnit | DivExpression>;
|
|
7015
|
+
/**
|
|
7016
|
+
* Style.
|
|
7017
|
+
*/
|
|
7018
|
+
font_weight?: Type<DivFontWeight | DivExpression>;
|
|
7019
|
+
/**
|
|
7020
|
+
* Spacing between characters.
|
|
7021
|
+
*/
|
|
7022
|
+
letter_spacing?: Type<number | DivExpression>;
|
|
7023
|
+
/**
|
|
7024
|
+
* Line spacing of the text. Units specified in `font_size_unit`.
|
|
7025
|
+
*/
|
|
7026
|
+
line_height?: Type<number | DivExpression>;
|
|
7027
|
+
/**
|
|
7028
|
+
* Ordinal number of a character which the range begins from. The first character has a number
|
|
7029
|
+
* `0`.
|
|
7030
|
+
*/
|
|
7031
|
+
start: Type<number | DivExpression>;
|
|
7032
|
+
/**
|
|
7033
|
+
* Strikethrough.
|
|
7034
|
+
*/
|
|
7035
|
+
strike?: Type<DivLineStyle | DivExpression>;
|
|
7036
|
+
/**
|
|
7037
|
+
* Text color.
|
|
7038
|
+
*/
|
|
7039
|
+
text_color?: Type<string | DivExpression>;
|
|
7040
|
+
/**
|
|
7041
|
+
* Top margin of the character range. Units specified in `font_size_unit`.
|
|
7042
|
+
*/
|
|
7043
|
+
top_offset?: Type<number | DivExpression>;
|
|
7044
|
+
/**
|
|
7045
|
+
* Underline.
|
|
7046
|
+
*/
|
|
7047
|
+
underline?: Type<DivLineStyle | DivExpression>;
|
|
7048
|
+
}
|
|
7049
|
+
|
|
7050
|
+
declare type DivTextGradient = DivLinearGradient | DivRadialGradient;
|
|
7051
|
+
|
|
7052
|
+
declare type DivTextRangeBackground = DivSolidBackground;
|
|
7053
|
+
|
|
7054
|
+
/**
|
|
7055
|
+
* Character range border.
|
|
7056
|
+
*/
|
|
7057
|
+
interface IDivTextRangeBorder {
|
|
7058
|
+
/**
|
|
7059
|
+
* One radius of element and stroke corner rounding. Has a lower priority than `corners_radius`.
|
|
7060
|
+
*/
|
|
7061
|
+
corner_radius?: Type<number | DivExpression>;
|
|
7062
|
+
/**
|
|
7063
|
+
* Stroke style.
|
|
7064
|
+
*/
|
|
7065
|
+
stroke?: Type<IDivStroke>;
|
|
7066
|
+
}
|
|
7067
|
+
|
|
7068
|
+
/**
|
|
7069
|
+
* Timer.
|
|
7070
|
+
*/
|
|
7071
|
+
interface IDivTimer {
|
|
7072
|
+
/**
|
|
7073
|
+
* Timer duration in milliseconds. If the parameter is `0` or not specified, the timer runs
|
|
7074
|
+
* indefinitely (until the timer stop event occurs).
|
|
7075
|
+
*/
|
|
7076
|
+
duration?: Type<number | DivExpression>;
|
|
7077
|
+
/**
|
|
7078
|
+
* Actions performed when the timer ends: when the timer has counted to the `duration` value or
|
|
7079
|
+
* the `div-action://timer?action=stop&id=<id>` command has been received.
|
|
7080
|
+
*/
|
|
7081
|
+
end_actions?: Type<NonEmptyArray<IDivAction>>;
|
|
7082
|
+
/**
|
|
7083
|
+
* Timer ID. Must be unique. Used when calling actions for the selected timer, for example:
|
|
7084
|
+
* start, stop.
|
|
7085
|
+
*/
|
|
7086
|
+
id: Type<string>;
|
|
7087
|
+
/**
|
|
7088
|
+
* Actions that are performed on each count of the timer.
|
|
7089
|
+
*/
|
|
7090
|
+
tick_actions?: Type<NonEmptyArray<IDivAction>>;
|
|
7091
|
+
/**
|
|
7092
|
+
* Duration of time intervals in milliseconds between counts. If the parameter is not specified,
|
|
7093
|
+
* the timer counts down from `0` to `duration` without calling `tick_actions`.
|
|
7094
|
+
*/
|
|
7095
|
+
tick_interval?: Type<number | DivExpression>;
|
|
7096
|
+
/**
|
|
7097
|
+
* Name of the variable where the current timer value is stored. Updated on each count or when
|
|
7098
|
+
* the timer commands are called (start, stop, and so on), except the cancel command.
|
|
7099
|
+
*/
|
|
7100
|
+
value_variable?: Type<string>;
|
|
7101
|
+
}
|
|
7102
|
+
|
|
7103
|
+
/**
|
|
7104
|
+
* Tooltip.
|
|
7105
|
+
*/
|
|
7106
|
+
interface IDivTooltip {
|
|
7107
|
+
/**
|
|
7108
|
+
* Tooltip appearance animation. By default, the tooltip will be appearing gradually with an
|
|
7109
|
+
* offset from the anchor point by 10 dp.
|
|
7110
|
+
*/
|
|
7111
|
+
animation_in?: Type<IDivAnimation>;
|
|
7112
|
+
/**
|
|
7113
|
+
* Tooltip disappearance animation. By default, the tooltip will disappear gradually with an
|
|
7114
|
+
* offset from the anchor point by 10 dp.
|
|
7115
|
+
*/
|
|
7116
|
+
animation_out?: Type<IDivAnimation>;
|
|
7117
|
+
/**
|
|
7118
|
+
* An element that will be shown in a tooltip. If there are tooltips inside an element, they
|
|
7119
|
+
* won't be shown.
|
|
7120
|
+
*/
|
|
7121
|
+
div: Type<Div>;
|
|
7122
|
+
/**
|
|
7123
|
+
* Duration of the tooltip visibility in milliseconds. When the value is set to `0`, the tooltip
|
|
7124
|
+
* will be visible until the user hides it.
|
|
7125
|
+
*/
|
|
7126
|
+
duration?: Type<number | DivExpression>;
|
|
7127
|
+
/**
|
|
7128
|
+
* Tooltip ID. It is used to avoid re-showing. It must be unique for all element tooltips.
|
|
6706
7129
|
*/
|
|
6707
7130
|
id: Type<string>;
|
|
6708
7131
|
/**
|
|
6709
|
-
*
|
|
7132
|
+
* Shift relative to an anchor point.
|
|
7133
|
+
*/
|
|
7134
|
+
offset?: Type<IDivPoint>;
|
|
7135
|
+
/**
|
|
7136
|
+
* The position of a tooltip relative to an element it belongs to.
|
|
7137
|
+
*/
|
|
7138
|
+
position: Type<DivTooltipPosition | DivExpression>;
|
|
7139
|
+
}
|
|
7140
|
+
declare type DivTooltipPosition = 'left' | 'top-left' | 'top' | 'top-right' | 'right' | 'bottom-right' | 'bottom' | 'bottom-left';
|
|
7141
|
+
|
|
7142
|
+
/**
|
|
7143
|
+
* Transformation of the element.
|
|
7144
|
+
*/
|
|
7145
|
+
interface IDivTransform {
|
|
7146
|
+
/**
|
|
7147
|
+
* X coordinate of the rotation axis.
|
|
7148
|
+
*/
|
|
7149
|
+
pivot_x?: Type<DivPivot>;
|
|
7150
|
+
/**
|
|
7151
|
+
* Y coordinate of the rotation axis.
|
|
7152
|
+
*/
|
|
7153
|
+
pivot_y?: Type<DivPivot>;
|
|
7154
|
+
/**
|
|
7155
|
+
* Degrees of the element rotation. Positive values used for clockwise rotation.
|
|
7156
|
+
*/
|
|
7157
|
+
rotation?: Type<number | DivExpression>;
|
|
7158
|
+
}
|
|
7159
|
+
|
|
7160
|
+
interface IDivTransitionBase {
|
|
7161
|
+
/**
|
|
7162
|
+
* Animation duration in milliseconds.
|
|
7163
|
+
*/
|
|
7164
|
+
duration?: Type<number | DivExpression>;
|
|
7165
|
+
/**
|
|
7166
|
+
* Transition speed nature.
|
|
7167
|
+
*/
|
|
7168
|
+
interpolator?: Type<DivAnimationInterpolator | DivExpression>;
|
|
7169
|
+
/**
|
|
7170
|
+
* Delay in milliseconds before animation starts.
|
|
7171
|
+
*/
|
|
7172
|
+
start_delay?: Type<number | DivExpression>;
|
|
7173
|
+
}
|
|
7174
|
+
|
|
7175
|
+
declare type DivTransitionSelector = 'none' | 'data_change' | 'state_change' | 'any_change';
|
|
7176
|
+
|
|
7177
|
+
declare type DivTransitionTrigger = 'data_change' | 'state_change' | 'visibility_change';
|
|
7178
|
+
|
|
7179
|
+
/**
|
|
7180
|
+
* A trigger that causes an action when activated.
|
|
7181
|
+
*/
|
|
7182
|
+
interface IDivTrigger {
|
|
7183
|
+
/**
|
|
7184
|
+
* Action when a trigger is activated.
|
|
7185
|
+
*/
|
|
7186
|
+
actions: Type<NonEmptyArray<IDivAction>>;
|
|
7187
|
+
/**
|
|
7188
|
+
* Condition for activating a trigger. For example, `liked && subscribed`.
|
|
7189
|
+
*/
|
|
7190
|
+
condition: Type<IntBoolean | DivExpression>;
|
|
7191
|
+
/**
|
|
7192
|
+
* Trigger activation mode:`on_condition` — a trigger is activated when the condition changes
|
|
7193
|
+
* from `false` to `true`;`on_variable` — a trigger is activated when the condition is met and
|
|
7194
|
+
* the variable value changes.
|
|
7195
|
+
*/
|
|
7196
|
+
mode?: Type<DivTriggerMode | DivExpression>;
|
|
7197
|
+
}
|
|
7198
|
+
declare type DivTriggerMode = 'on_condition' | 'on_variable';
|
|
7199
|
+
|
|
7200
|
+
declare type DivVariable = StringVariable | NumberVariable | IntegerVariable | BooleanVariable | ColorVariable | UrlVariable;
|
|
7201
|
+
|
|
7202
|
+
/**
|
|
7203
|
+
* Video playback element.
|
|
7204
|
+
*/
|
|
7205
|
+
declare class DivVideo<T extends DivVideoProps = DivVideoProps> {
|
|
7206
|
+
readonly _props?: Exact<DivVideoProps, T>;
|
|
7207
|
+
readonly type = "video";
|
|
7208
|
+
/**
|
|
7209
|
+
* Accessibility settings.
|
|
7210
|
+
*/
|
|
7211
|
+
accessibility?: Type<IDivAccessibility>;
|
|
7212
|
+
/**
|
|
7213
|
+
* Horizontal alignment of an element inside the parent element.
|
|
7214
|
+
*/
|
|
7215
|
+
alignment_horizontal?: Type<DivAlignmentHorizontal | DivExpression>;
|
|
7216
|
+
/**
|
|
7217
|
+
* Vertical alignment of an element inside the parent element.
|
|
7218
|
+
*/
|
|
7219
|
+
alignment_vertical?: Type<DivAlignmentVertical | DivExpression>;
|
|
7220
|
+
/**
|
|
7221
|
+
* Sets transparency of the entire element: `0` — completely transparent, `1` — opaque.
|
|
7222
|
+
*/
|
|
7223
|
+
alpha?: Type<number | DivExpression>;
|
|
7224
|
+
/**
|
|
7225
|
+
* When set to true, the video will automatically start playing. It will work on the web if the
|
|
7226
|
+
* video is played without sound.
|
|
7227
|
+
*/
|
|
7228
|
+
autostart?: Type<IntBoolean | DivExpression>;
|
|
7229
|
+
/**
|
|
7230
|
+
* Element background. It can contain multiple layers.
|
|
7231
|
+
*/
|
|
7232
|
+
background?: Type<NonEmptyArray<DivBackground>>;
|
|
7233
|
+
/**
|
|
7234
|
+
* Element stroke.
|
|
7235
|
+
*/
|
|
7236
|
+
border?: Type<IDivBorder>;
|
|
7237
|
+
/**
|
|
7238
|
+
* Actions that are performed when a video is paused for loading.
|
|
7239
|
+
*/
|
|
7240
|
+
buffering_actions?: Type<NonEmptyArray<IDivAction>>;
|
|
7241
|
+
/**
|
|
7242
|
+
* Merges cells in a column of the [grid](div-grid.md) element.
|
|
7243
|
+
*/
|
|
7244
|
+
column_span?: Type<number | DivExpression>;
|
|
7245
|
+
/**
|
|
7246
|
+
* The variable stores how many seconds have passed since the beginning of the video.
|
|
7247
|
+
*/
|
|
7248
|
+
elapsed_time_variable?: Type<string>;
|
|
7249
|
+
/**
|
|
7250
|
+
* Actions that are performed when the video ends.
|
|
7251
|
+
*/
|
|
7252
|
+
end_actions?: Type<NonEmptyArray<IDivAction>>;
|
|
7253
|
+
/**
|
|
7254
|
+
* Extensions for additional processing of an element. The list of extensions is given in
|
|
7255
|
+
* [DivExtension](../../extensions.dita).
|
|
7256
|
+
*/
|
|
7257
|
+
extensions?: Type<NonEmptyArray<IDivExtension>>;
|
|
7258
|
+
/**
|
|
7259
|
+
* Parameters when focusing on an element or losing focus.
|
|
7260
|
+
*/
|
|
7261
|
+
focus?: Type<IDivFocus>;
|
|
7262
|
+
/**
|
|
7263
|
+
* Element height. For Android: if there is text in this or in a child element, specify height in
|
|
7264
|
+
* `sp` to scale the element together with the text. To learn more about units of size
|
|
7265
|
+
* measurement, see [Layout inside the card](../../layout.dita).
|
|
7266
|
+
*/
|
|
7267
|
+
height?: Type<DivSize>;
|
|
7268
|
+
/**
|
|
7269
|
+
* Element ID. It must be unique within the root element. It is used as `accessibilityIdentifier`
|
|
7270
|
+
* on iOS.
|
|
7271
|
+
*/
|
|
7272
|
+
id?: Type<string>;
|
|
7273
|
+
/**
|
|
7274
|
+
* External margins from the element stroke.
|
|
7275
|
+
*/
|
|
7276
|
+
margins?: Type<IDivEdgeInsets>;
|
|
7277
|
+
/**
|
|
7278
|
+
* When set to true, the video will be played without sound.
|
|
7279
|
+
*/
|
|
7280
|
+
muted?: Type<IntBoolean | DivExpression>;
|
|
7281
|
+
/**
|
|
7282
|
+
* Internal margins from the element stroke.
|
|
7283
|
+
*/
|
|
7284
|
+
paddings?: Type<IDivEdgeInsets>;
|
|
7285
|
+
/**
|
|
7286
|
+
* It is intended for storing additional information that can be used inside the player.
|
|
7287
|
+
*/
|
|
7288
|
+
player_settings_payload?: Type<{}>;
|
|
7289
|
+
/**
|
|
7290
|
+
* Preview of the video encoded in `base64'. It will be shown until the video is ready for
|
|
7291
|
+
* playback. `data url` format: `data:[;base64],<data>`
|
|
7292
|
+
*/
|
|
7293
|
+
preview?: Type<string | DivExpression>;
|
|
7294
|
+
/**
|
|
7295
|
+
* When set to true, the video will repeat.
|
|
7296
|
+
*/
|
|
7297
|
+
repeatable?: Type<IntBoolean | DivExpression>;
|
|
7298
|
+
/**
|
|
7299
|
+
* Actions that are performed when playback resumes.
|
|
7300
|
+
*/
|
|
7301
|
+
resume_actions?: Type<NonEmptyArray<IDivAction>>;
|
|
7302
|
+
/**
|
|
7303
|
+
* Merges cells in a string of the [grid](div-grid.md) element.
|
|
6710
7304
|
*/
|
|
6711
|
-
|
|
7305
|
+
row_span?: Type<number | DivExpression>;
|
|
6712
7306
|
/**
|
|
6713
|
-
*
|
|
6714
|
-
*
|
|
7307
|
+
* List of [actions](div-action.md) to be executed when selecting an element in
|
|
7308
|
+
* [pager](div-pager.md).
|
|
6715
7309
|
*/
|
|
6716
|
-
|
|
7310
|
+
selected_actions?: Type<NonEmptyArray<IDivAction>>;
|
|
6717
7311
|
/**
|
|
6718
|
-
*
|
|
6719
|
-
*
|
|
7312
|
+
* Tooltips linked to an element. A tooltip can be shown by `div-action://show_tooltip?id=`,
|
|
7313
|
+
* hidden by `div-action://hide_tooltip?id=` where `id` — tooltip id.
|
|
6720
7314
|
*/
|
|
6721
|
-
|
|
7315
|
+
tooltips?: Type<NonEmptyArray<IDivTooltip>>;
|
|
7316
|
+
/**
|
|
7317
|
+
* Applies the passed transformation to the element. Content that doesn't fit into the original
|
|
7318
|
+
* view area is cut off.
|
|
7319
|
+
*/
|
|
7320
|
+
transform?: Type<IDivTransform>;
|
|
7321
|
+
/**
|
|
7322
|
+
* Change animation. It is played when the position or size of an element changes in the new
|
|
7323
|
+
* layout.
|
|
7324
|
+
*/
|
|
7325
|
+
transition_change?: Type<DivChangeTransition>;
|
|
7326
|
+
/**
|
|
7327
|
+
* Appearance animation. It is played when an element with a new ID appears. To learn more about
|
|
7328
|
+
* the concept of transitions, see [Animated
|
|
7329
|
+
* transitions](../../interaction.dita#animation/transition-animation).
|
|
7330
|
+
*/
|
|
7331
|
+
transition_in?: Type<DivAppearanceTransition>;
|
|
7332
|
+
/**
|
|
7333
|
+
* Disappearance animation. It is played when an element disappears in the new layout.
|
|
7334
|
+
*/
|
|
7335
|
+
transition_out?: Type<DivAppearanceTransition>;
|
|
7336
|
+
/**
|
|
7337
|
+
* Animation starting triggers. Default value: `[state_change, visibility_change]`.
|
|
7338
|
+
*/
|
|
7339
|
+
transition_triggers?: Type<NonEmptyArray<DivTransitionTrigger>>;
|
|
7340
|
+
video_data: Type<DivVideoData>;
|
|
7341
|
+
/**
|
|
7342
|
+
* Element visibility.
|
|
7343
|
+
*/
|
|
7344
|
+
visibility?: Type<DivVisibility | DivExpression>;
|
|
7345
|
+
/**
|
|
7346
|
+
* Tracking visibility of a single element. Not used if the `visibility_actions` parameter is
|
|
7347
|
+
* set.
|
|
7348
|
+
*/
|
|
7349
|
+
visibility_action?: Type<IDivVisibilityAction>;
|
|
7350
|
+
/**
|
|
7351
|
+
* Actions when an element appears on the screen.
|
|
7352
|
+
*/
|
|
7353
|
+
visibility_actions?: Type<NonEmptyArray<IDivVisibilityAction>>;
|
|
7354
|
+
/**
|
|
7355
|
+
* Element width.
|
|
7356
|
+
*/
|
|
7357
|
+
width?: Type<DivSize>;
|
|
7358
|
+
constructor(props: Exact<DivVideoProps, T>);
|
|
6722
7359
|
}
|
|
6723
|
-
|
|
6724
|
-
/**
|
|
6725
|
-
* Tooltip.
|
|
6726
|
-
*/
|
|
6727
|
-
interface IDivTooltip {
|
|
7360
|
+
interface DivVideoProps {
|
|
6728
7361
|
/**
|
|
6729
|
-
*
|
|
6730
|
-
* offset from the anchor point by 10 dp.
|
|
7362
|
+
* Accessibility settings.
|
|
6731
7363
|
*/
|
|
6732
|
-
|
|
7364
|
+
accessibility?: Type<IDivAccessibility>;
|
|
6733
7365
|
/**
|
|
6734
|
-
*
|
|
6735
|
-
* offset from the anchor point by 10 dp.
|
|
7366
|
+
* Horizontal alignment of an element inside the parent element.
|
|
6736
7367
|
*/
|
|
6737
|
-
|
|
7368
|
+
alignment_horizontal?: Type<DivAlignmentHorizontal | DivExpression>;
|
|
6738
7369
|
/**
|
|
6739
|
-
*
|
|
6740
|
-
* won't be shown.
|
|
7370
|
+
* Vertical alignment of an element inside the parent element.
|
|
6741
7371
|
*/
|
|
6742
|
-
|
|
7372
|
+
alignment_vertical?: Type<DivAlignmentVertical | DivExpression>;
|
|
6743
7373
|
/**
|
|
6744
|
-
*
|
|
6745
|
-
* will be visible until the user hides it.
|
|
7374
|
+
* Sets transparency of the entire element: `0` — completely transparent, `1` — opaque.
|
|
6746
7375
|
*/
|
|
6747
|
-
|
|
7376
|
+
alpha?: Type<number | DivExpression>;
|
|
6748
7377
|
/**
|
|
6749
|
-
*
|
|
7378
|
+
* When set to true, the video will automatically start playing. It will work on the web if the
|
|
7379
|
+
* video is played without sound.
|
|
6750
7380
|
*/
|
|
6751
|
-
|
|
7381
|
+
autostart?: Type<IntBoolean | DivExpression>;
|
|
6752
7382
|
/**
|
|
6753
|
-
*
|
|
7383
|
+
* Element background. It can contain multiple layers.
|
|
6754
7384
|
*/
|
|
6755
|
-
|
|
7385
|
+
background?: Type<NonEmptyArray<DivBackground>>;
|
|
6756
7386
|
/**
|
|
6757
|
-
*
|
|
7387
|
+
* Element stroke.
|
|
6758
7388
|
*/
|
|
6759
|
-
|
|
7389
|
+
border?: Type<IDivBorder>;
|
|
7390
|
+
/**
|
|
7391
|
+
* Actions that are performed when a video is paused for loading.
|
|
7392
|
+
*/
|
|
7393
|
+
buffering_actions?: Type<NonEmptyArray<IDivAction>>;
|
|
7394
|
+
/**
|
|
7395
|
+
* Merges cells in a column of the [grid](div-grid.md) element.
|
|
7396
|
+
*/
|
|
7397
|
+
column_span?: Type<number | DivExpression>;
|
|
7398
|
+
/**
|
|
7399
|
+
* The variable stores how many seconds have passed since the beginning of the video.
|
|
7400
|
+
*/
|
|
7401
|
+
elapsed_time_variable?: Type<string>;
|
|
7402
|
+
/**
|
|
7403
|
+
* Actions that are performed when the video ends.
|
|
7404
|
+
*/
|
|
7405
|
+
end_actions?: Type<NonEmptyArray<IDivAction>>;
|
|
7406
|
+
/**
|
|
7407
|
+
* Extensions for additional processing of an element. The list of extensions is given in
|
|
7408
|
+
* [DivExtension](../../extensions.dita).
|
|
7409
|
+
*/
|
|
7410
|
+
extensions?: Type<NonEmptyArray<IDivExtension>>;
|
|
7411
|
+
/**
|
|
7412
|
+
* Parameters when focusing on an element or losing focus.
|
|
7413
|
+
*/
|
|
7414
|
+
focus?: Type<IDivFocus>;
|
|
7415
|
+
/**
|
|
7416
|
+
* Element height. For Android: if there is text in this or in a child element, specify height in
|
|
7417
|
+
* `sp` to scale the element together with the text. To learn more about units of size
|
|
7418
|
+
* measurement, see [Layout inside the card](../../layout.dita).
|
|
7419
|
+
*/
|
|
7420
|
+
height?: Type<DivSize>;
|
|
7421
|
+
/**
|
|
7422
|
+
* Element ID. It must be unique within the root element. It is used as `accessibilityIdentifier`
|
|
7423
|
+
* on iOS.
|
|
7424
|
+
*/
|
|
7425
|
+
id?: Type<string>;
|
|
7426
|
+
/**
|
|
7427
|
+
* External margins from the element stroke.
|
|
7428
|
+
*/
|
|
7429
|
+
margins?: Type<IDivEdgeInsets>;
|
|
7430
|
+
/**
|
|
7431
|
+
* When set to true, the video will be played without sound.
|
|
7432
|
+
*/
|
|
7433
|
+
muted?: Type<IntBoolean | DivExpression>;
|
|
7434
|
+
/**
|
|
7435
|
+
* Internal margins from the element stroke.
|
|
7436
|
+
*/
|
|
7437
|
+
paddings?: Type<IDivEdgeInsets>;
|
|
7438
|
+
/**
|
|
7439
|
+
* It is intended for storing additional information that can be used inside the player.
|
|
7440
|
+
*/
|
|
7441
|
+
player_settings_payload?: Type<{}>;
|
|
7442
|
+
/**
|
|
7443
|
+
* Preview of the video encoded in `base64'. It will be shown until the video is ready for
|
|
7444
|
+
* playback. `data url` format: `data:[;base64],<data>`
|
|
7445
|
+
*/
|
|
7446
|
+
preview?: Type<string | DivExpression>;
|
|
7447
|
+
/**
|
|
7448
|
+
* When set to true, the video will repeat.
|
|
7449
|
+
*/
|
|
7450
|
+
repeatable?: Type<IntBoolean | DivExpression>;
|
|
7451
|
+
/**
|
|
7452
|
+
* Actions that are performed when playback resumes.
|
|
7453
|
+
*/
|
|
7454
|
+
resume_actions?: Type<NonEmptyArray<IDivAction>>;
|
|
7455
|
+
/**
|
|
7456
|
+
* Merges cells in a string of the [grid](div-grid.md) element.
|
|
7457
|
+
*/
|
|
7458
|
+
row_span?: Type<number | DivExpression>;
|
|
7459
|
+
/**
|
|
7460
|
+
* List of [actions](div-action.md) to be executed when selecting an element in
|
|
7461
|
+
* [pager](div-pager.md).
|
|
7462
|
+
*/
|
|
7463
|
+
selected_actions?: Type<NonEmptyArray<IDivAction>>;
|
|
7464
|
+
/**
|
|
7465
|
+
* Tooltips linked to an element. A tooltip can be shown by `div-action://show_tooltip?id=`,
|
|
7466
|
+
* hidden by `div-action://hide_tooltip?id=` where `id` — tooltip id.
|
|
7467
|
+
*/
|
|
7468
|
+
tooltips?: Type<NonEmptyArray<IDivTooltip>>;
|
|
7469
|
+
/**
|
|
7470
|
+
* Applies the passed transformation to the element. Content that doesn't fit into the original
|
|
7471
|
+
* view area is cut off.
|
|
7472
|
+
*/
|
|
7473
|
+
transform?: Type<IDivTransform>;
|
|
7474
|
+
/**
|
|
7475
|
+
* Change animation. It is played when the position or size of an element changes in the new
|
|
7476
|
+
* layout.
|
|
7477
|
+
*/
|
|
7478
|
+
transition_change?: Type<DivChangeTransition>;
|
|
7479
|
+
/**
|
|
7480
|
+
* Appearance animation. It is played when an element with a new ID appears. To learn more about
|
|
7481
|
+
* the concept of transitions, see [Animated
|
|
7482
|
+
* transitions](../../interaction.dita#animation/transition-animation).
|
|
7483
|
+
*/
|
|
7484
|
+
transition_in?: Type<DivAppearanceTransition>;
|
|
7485
|
+
/**
|
|
7486
|
+
* Disappearance animation. It is played when an element disappears in the new layout.
|
|
7487
|
+
*/
|
|
7488
|
+
transition_out?: Type<DivAppearanceTransition>;
|
|
7489
|
+
/**
|
|
7490
|
+
* Animation starting triggers. Default value: `[state_change, visibility_change]`.
|
|
7491
|
+
*/
|
|
7492
|
+
transition_triggers?: Type<NonEmptyArray<DivTransitionTrigger>>;
|
|
7493
|
+
video_data: Type<DivVideoData>;
|
|
7494
|
+
/**
|
|
7495
|
+
* Element visibility.
|
|
7496
|
+
*/
|
|
7497
|
+
visibility?: Type<DivVisibility | DivExpression>;
|
|
7498
|
+
/**
|
|
7499
|
+
* Tracking visibility of a single element. Not used if the `visibility_actions` parameter is
|
|
7500
|
+
* set.
|
|
7501
|
+
*/
|
|
7502
|
+
visibility_action?: Type<IDivVisibilityAction>;
|
|
7503
|
+
/**
|
|
7504
|
+
* Actions when an element appears on the screen.
|
|
7505
|
+
*/
|
|
7506
|
+
visibility_actions?: Type<NonEmptyArray<IDivVisibilityAction>>;
|
|
7507
|
+
/**
|
|
7508
|
+
* Element width.
|
|
7509
|
+
*/
|
|
7510
|
+
width?: Type<DivSize>;
|
|
6760
7511
|
}
|
|
6761
|
-
|
|
7512
|
+
|
|
7513
|
+
declare type DivVideoData = DivVideoDataVideo | DivVideoDataStream;
|
|
6762
7514
|
|
|
6763
7515
|
/**
|
|
6764
|
-
*
|
|
7516
|
+
* Data for stream display.
|
|
6765
7517
|
*/
|
|
6766
|
-
|
|
7518
|
+
declare class DivVideoDataStream<T extends DivVideoDataStreamProps = DivVideoDataStreamProps> {
|
|
7519
|
+
readonly _props?: Exact<DivVideoDataStreamProps, T>;
|
|
7520
|
+
readonly type = "stream";
|
|
6767
7521
|
/**
|
|
6768
|
-
*
|
|
7522
|
+
* Contains a link to the stream.
|
|
6769
7523
|
*/
|
|
6770
|
-
|
|
7524
|
+
url: Type<string | DivExpression>;
|
|
7525
|
+
constructor(props: Exact<DivVideoDataStreamProps, T>);
|
|
7526
|
+
}
|
|
7527
|
+
interface DivVideoDataStreamProps {
|
|
6771
7528
|
/**
|
|
6772
|
-
*
|
|
7529
|
+
* Contains a link to the stream.
|
|
6773
7530
|
*/
|
|
6774
|
-
|
|
7531
|
+
url: Type<string | DivExpression>;
|
|
7532
|
+
}
|
|
7533
|
+
|
|
7534
|
+
/**
|
|
7535
|
+
* Data for video display.
|
|
7536
|
+
*/
|
|
7537
|
+
declare class DivVideoDataVideo<T extends DivVideoDataVideoProps = DivVideoDataVideoProps> {
|
|
7538
|
+
readonly _props?: Exact<DivVideoDataVideoProps, T>;
|
|
7539
|
+
readonly type = "video";
|
|
7540
|
+
video_sources: Type<NonEmptyArray<DivVideoDataVideoSource>>;
|
|
7541
|
+
constructor(props: Exact<DivVideoDataVideoProps, T>);
|
|
7542
|
+
}
|
|
7543
|
+
interface DivVideoDataVideoProps {
|
|
7544
|
+
video_sources: Type<NonEmptyArray<DivVideoDataVideoSource>>;
|
|
7545
|
+
}
|
|
7546
|
+
|
|
7547
|
+
declare class DivVideoDataVideoSource<T extends DivVideoDataVideoSourceProps = DivVideoDataVideoSourceProps> {
|
|
7548
|
+
readonly _props?: Exact<DivVideoDataVideoSourceProps, T>;
|
|
7549
|
+
readonly type = "video_source";
|
|
6775
7550
|
/**
|
|
6776
|
-
*
|
|
7551
|
+
* Specifies the codec (encoder/decoder) used for the video file.
|
|
6777
7552
|
*/
|
|
6778
|
-
|
|
7553
|
+
codec?: Type<string | DivExpression>;
|
|
7554
|
+
/**
|
|
7555
|
+
* The property defines the MIME type (Multipurpose Internet Mail Extensions) for the video file.
|
|
7556
|
+
* A MIME type is a string that indicates the type of file content and is used to determine the
|
|
7557
|
+
* type of file and its correct processing.
|
|
7558
|
+
*/
|
|
7559
|
+
mime_type?: Type<string | DivExpression>;
|
|
7560
|
+
/**
|
|
7561
|
+
* Video resolution.
|
|
7562
|
+
*/
|
|
7563
|
+
resolution?: Type<DivVideoDataVideoSourceResolution>;
|
|
7564
|
+
/**
|
|
7565
|
+
* The property contains a link to a video file available for playback or download.
|
|
7566
|
+
*/
|
|
7567
|
+
url: Type<string | DivExpression>;
|
|
7568
|
+
constructor(props: Exact<DivVideoDataVideoSourceProps, T>);
|
|
6779
7569
|
}
|
|
6780
|
-
|
|
6781
|
-
interface IDivTransitionBase {
|
|
7570
|
+
interface DivVideoDataVideoSourceProps {
|
|
6782
7571
|
/**
|
|
6783
|
-
*
|
|
7572
|
+
* Specifies the codec (encoder/decoder) used for the video file.
|
|
6784
7573
|
*/
|
|
6785
|
-
|
|
7574
|
+
codec?: Type<string | DivExpression>;
|
|
6786
7575
|
/**
|
|
6787
|
-
*
|
|
7576
|
+
* The property defines the MIME type (Multipurpose Internet Mail Extensions) for the video file.
|
|
7577
|
+
* A MIME type is a string that indicates the type of file content and is used to determine the
|
|
7578
|
+
* type of file and its correct processing.
|
|
6788
7579
|
*/
|
|
6789
|
-
|
|
7580
|
+
mime_type?: Type<string | DivExpression>;
|
|
6790
7581
|
/**
|
|
6791
|
-
*
|
|
7582
|
+
* Video resolution.
|
|
6792
7583
|
*/
|
|
6793
|
-
|
|
7584
|
+
resolution?: Type<DivVideoDataVideoSourceResolution>;
|
|
7585
|
+
/**
|
|
7586
|
+
* The property contains a link to a video file available for playback or download.
|
|
7587
|
+
*/
|
|
7588
|
+
url: Type<string | DivExpression>;
|
|
6794
7589
|
}
|
|
6795
|
-
|
|
6796
|
-
declare type DivTransitionSelector = 'none' | 'data_change' | 'state_change' | 'any_change';
|
|
6797
|
-
|
|
6798
|
-
declare type DivTransitionTrigger = 'data_change' | 'state_change' | 'visibility_change';
|
|
6799
|
-
|
|
6800
7590
|
/**
|
|
6801
|
-
*
|
|
7591
|
+
* Video resolution.
|
|
6802
7592
|
*/
|
|
6803
|
-
|
|
7593
|
+
declare class DivVideoDataVideoSourceResolution<T extends DivVideoDataVideoSourceResolutionProps = DivVideoDataVideoSourceResolutionProps> {
|
|
7594
|
+
readonly _props?: Exact<DivVideoDataVideoSourceResolutionProps, T>;
|
|
7595
|
+
readonly type = "resolution";
|
|
6804
7596
|
/**
|
|
6805
|
-
*
|
|
7597
|
+
* Contains information about the resolution height of the video file.
|
|
6806
7598
|
*/
|
|
6807
|
-
|
|
7599
|
+
height: Type<number | DivExpression>;
|
|
6808
7600
|
/**
|
|
6809
|
-
*
|
|
7601
|
+
* Contains information about the resolution width of the video file.
|
|
6810
7602
|
*/
|
|
6811
|
-
|
|
7603
|
+
width: Type<number | DivExpression>;
|
|
7604
|
+
constructor(props: Exact<DivVideoDataVideoSourceResolutionProps, T>);
|
|
7605
|
+
}
|
|
7606
|
+
interface DivVideoDataVideoSourceResolutionProps {
|
|
6812
7607
|
/**
|
|
6813
|
-
*
|
|
6814
|
-
* from `false` to `true`;`on_variable` — a trigger is activated when the condition is met and
|
|
6815
|
-
* the variable value changes.
|
|
7608
|
+
* Contains information about the resolution height of the video file.
|
|
6816
7609
|
*/
|
|
6817
|
-
|
|
7610
|
+
height: Type<number | DivExpression>;
|
|
7611
|
+
/**
|
|
7612
|
+
* Contains information about the resolution width of the video file.
|
|
7613
|
+
*/
|
|
7614
|
+
width: Type<number | DivExpression>;
|
|
6818
7615
|
}
|
|
6819
|
-
declare type DivTriggerMode = 'on_condition' | 'on_variable';
|
|
6820
|
-
|
|
6821
|
-
declare type DivVariable = StringVariable | NumberVariable | IntegerVariable | BooleanVariable | ColorVariable | UrlVariable;
|
|
6822
7616
|
|
|
6823
7617
|
declare type DivVisibility = 'visible' | 'invisible' | 'gone';
|
|
6824
7618
|
|
|
@@ -7170,4 +7964,4 @@ declare function rewriteTemplateVersions<T extends ITemplates>(templates: T, res
|
|
|
7170
7964
|
};
|
|
7171
7965
|
};
|
|
7172
7966
|
|
|
7173
|
-
export { BooleanVariable, BooleanVariableProps, ColorVariable, ColorVariableProps, DelimiterStyleOrientation, Div, DivAccessibilityMode, DivAccessibilityType, DivActionTarget, DivAlignmentHorizontal, DivAlignmentVertical, DivAnimationInterpolator, DivAnimationName, DivAppearanceSetTransition, DivAppearanceSetTransitionProps, DivAppearanceTransition, DivBackground, DivBlendMode, DivBlur, DivBlurProps, DivChangeBoundsTransition, DivChangeBoundsTransitionProps, DivChangeSetTransition, DivChangeSetTransitionProps, DivChangeTransition, DivCircleShape, DivCircleShapeProps, DivContainer, DivContainerLayoutMode, DivContainerOrientation, DivContainerProps, DivCount, DivCustom, DivCustomProps, DivDefaultIndicatorItemPlacement, DivDefaultIndicatorItemPlacementProps, DivDrawable, DivExpression, DivFadeTransition, DivFadeTransitionProps, DivFilter, DivFixedCount, DivFixedCountProps, DivFixedLengthInputMask, DivFixedLengthInputMaskProps, DivFixedSize, DivFixedSizeProps, DivFontFamily, DivFontWeight, DivGallery, DivGalleryCrossContentAlignment, DivGalleryOrientation, DivGalleryProps, DivGalleryScrollMode, DivGifImage, DivGifImageProps, DivGradientBackground, DivGrid, DivGridProps, DivImage, DivImageBackground, DivImageBackgroundProps, DivImageProps, DivImageScale, DivIndicator, DivIndicatorAnimation, DivIndicatorItemPlacement, DivIndicatorProps, DivInfinityCount, DivInfinityCountProps, DivInput, DivInputKeyboardType, DivInputMask, DivInputProps, DivLineStyle, DivLinearGradient, DivLinearGradientProps, DivMatchParentSize, DivMatchParentSizeProps, DivNeighbourPageSize, DivNeighbourPageSizeProps, DivNinePatchBackground, DivNinePatchBackgroundProps, DivPageSize, DivPageSizeProps, DivPager, DivPagerLayoutMode, DivPagerOrientation, DivPagerProps, DivPatchMode, DivPercentageSize, DivPercentageSizeProps, DivPivot, DivPivotFixed, DivPivotFixedProps, DivPivotPercentage, DivPivotPercentageProps, DivRadialGradient, DivRadialGradientCenter, DivRadialGradientFixedCenter, DivRadialGradientFixedCenterProps, DivRadialGradientProps, DivRadialGradientRadius, DivRadialGradientRelativeCenter, DivRadialGradientRelativeCenterProps, DivRadialGradientRelativeRadius, DivRadialGradientRelativeRadiusProps, DivRadialGradientRelativeRadiusValue, DivRoundedRectangleShape, DivRoundedRectangleShapeProps, DivScaleTransition, DivScaleTransitionProps, DivSeparator, DivSeparatorProps, DivShape, DivShapeDrawable, DivShapeDrawableProps, DivSize, DivSizeUnit, DivSlideTransition, DivSlideTransitionEdge, DivSlideTransitionProps, DivSlider, DivSliderProps, DivSolidBackground, DivSolidBackgroundProps, DivState, DivStateProps, DivStretchIndicatorItemPlacement, DivStretchIndicatorItemPlacementProps, DivTabs, DivTabsProps, DivText, DivTextGradient, DivTextProps, DivTextRangeBackground, DivTextTruncate, DivTooltipPosition, DivTransitionSelector, DivTransitionTrigger, DivTriggerMode, DivVariable, DivVisibility, DivWrapContentSize, DivWrapContentSizeProps, Exact, IDivAbsoluteEdgeInsets, IDivAccessibility, IDivAction, IDivActionMenuItem, IDivAnimation, IDivAspect, IDivBase, IDivBorder, IDivContainerSeparator, IDivCornersRadius, IDivData, IDivDataState, IDivDimension, IDivDownloadCallbacks, IDivEdgeInsets, IDivExtension, IDivFixedLengthInputMaskPatternElement, IDivFocus, IDivFocusNextFocusIds, IDivInputNativeInterface, IDivPatch, IDivPatchChange, IDivPoint, IDivSeparatorDelimiterStyle, IDivShadow, IDivSliderTextStyle, IDivStateState, IDivStroke, IDivTabsItem, IDivTabsTabTitleStyle, IDivTextEllipsis, IDivTextImage, IDivTextRange, IDivTextRangeBorder, IDivTimer, IDivTooltip, IDivTransform, IDivTransitionBase, IDivTrigger, IDivVisibilityAction, IDivWrapContentSizeConstraintSize, ITemplates, IntBoolean, IntegerVariable, IntegerVariableProps, NonEmptyArray, NumberVariable, NumberVariableProps, SafeDivExpression, StringVariable, StringVariableProps, TabTitleStyleAnimationType, TemplateBlock, TemplateHelper, TemplatePropertyReference, TemplateResolvedAction, ThelperWithMemo, Type, UrlVariable, UrlVariableProps, copyTemplates, divCard, escapeCard, escapeExpression, expression, fixed, getTemplateHash, matchParent, reference, rewriteNames, rewriteRefs, rewriteTemplateVersions, runResolveDeps, template, templateHelper, templatesDepsMap, thelperVersion, thelperWithMemo, treeWalkDFS, weighted, wrapContent };
|
|
7967
|
+
export { BooleanVariable, BooleanVariableProps, ColorVariable, ColorVariableProps, DelimiterStyleOrientation, Div, DivAccessibilityMode, DivAccessibilityType, DivActionTarget, DivAlignmentHorizontal, DivAlignmentVertical, DivAnimationInterpolator, DivAnimationName, DivAppearanceSetTransition, DivAppearanceSetTransitionProps, DivAppearanceTransition, DivBackground, DivBlendMode, DivBlur, DivBlurProps, DivChangeBoundsTransition, DivChangeBoundsTransitionProps, DivChangeSetTransition, DivChangeSetTransitionProps, DivChangeTransition, DivCircleShape, DivCircleShapeProps, DivContainer, DivContainerLayoutMode, DivContainerOrientation, DivContainerProps, DivCount, DivCurrencyInputMask, DivCurrencyInputMaskProps, DivCustom, DivCustomProps, DivDefaultIndicatorItemPlacement, DivDefaultIndicatorItemPlacementProps, DivDrawable, DivExpression, DivFadeTransition, DivFadeTransitionProps, DivFilter, DivFixedCount, DivFixedCountProps, DivFixedLengthInputMask, DivFixedLengthInputMaskProps, DivFixedSize, DivFixedSizeProps, DivFontFamily, DivFontWeight, DivGallery, DivGalleryCrossContentAlignment, DivGalleryOrientation, DivGalleryProps, DivGalleryScrollMode, DivGifImage, DivGifImageProps, DivGradientBackground, DivGrid, DivGridProps, DivImage, DivImageBackground, DivImageBackgroundProps, DivImageProps, DivImageScale, DivIndicator, DivIndicatorAnimation, DivIndicatorItemPlacement, DivIndicatorProps, DivInfinityCount, DivInfinityCountProps, DivInput, DivInputKeyboardType, DivInputMask, DivInputProps, DivLineStyle, DivLinearGradient, DivLinearGradientProps, DivMatchParentSize, DivMatchParentSizeProps, DivNeighbourPageSize, DivNeighbourPageSizeProps, DivNinePatchBackground, DivNinePatchBackgroundProps, DivPageSize, DivPageSizeProps, DivPager, DivPagerLayoutMode, DivPagerOrientation, DivPagerProps, DivPatchMode, DivPercentageSize, DivPercentageSizeProps, DivPivot, DivPivotFixed, DivPivotFixedProps, DivPivotPercentage, DivPivotPercentageProps, DivRadialGradient, DivRadialGradientCenter, DivRadialGradientFixedCenter, DivRadialGradientFixedCenterProps, DivRadialGradientProps, DivRadialGradientRadius, DivRadialGradientRelativeCenter, DivRadialGradientRelativeCenterProps, DivRadialGradientRelativeRadius, DivRadialGradientRelativeRadiusProps, DivRadialGradientRelativeRadiusValue, DivRoundedRectangleShape, DivRoundedRectangleShapeProps, DivScaleTransition, DivScaleTransitionProps, DivSelect, DivSelectProps, DivSeparator, DivSeparatorProps, DivShape, DivShapeDrawable, DivShapeDrawableProps, DivSize, DivSizeUnit, DivSlideTransition, DivSlideTransitionEdge, DivSlideTransitionProps, DivSlider, DivSliderProps, DivSolidBackground, DivSolidBackgroundProps, DivState, DivStateProps, DivStretchIndicatorItemPlacement, DivStretchIndicatorItemPlacementProps, DivTabs, DivTabsProps, DivText, DivTextGradient, DivTextProps, DivTextRangeBackground, DivTextTruncate, DivTooltipPosition, DivTransitionSelector, DivTransitionTrigger, DivTriggerMode, DivVariable, DivVideo, DivVideoData, DivVideoDataStream, DivVideoDataStreamProps, DivVideoDataVideo, DivVideoDataVideoProps, DivVideoDataVideoSource, DivVideoDataVideoSourceProps, DivVideoDataVideoSourceResolution, DivVideoDataVideoSourceResolutionProps, DivVideoProps, DivVisibility, DivWrapContentSize, DivWrapContentSizeProps, Exact, IDivAbsoluteEdgeInsets, IDivAccessibility, IDivAction, IDivActionMenuItem, IDivAnimation, IDivAspect, IDivBase, IDivBorder, IDivContainerSeparator, IDivCornersRadius, IDivData, IDivDataState, IDivDimension, IDivDownloadCallbacks, IDivEdgeInsets, IDivExtension, IDivFixedLengthInputMaskPatternElement, IDivFocus, IDivFocusNextFocusIds, IDivInputMaskBase, IDivInputNativeInterface, IDivPatch, IDivPatchChange, IDivPoint, IDivSelectOption, IDivSeparatorDelimiterStyle, IDivShadow, IDivSliderTextStyle, IDivStateState, IDivStroke, IDivTabsItem, IDivTabsTabTitleStyle, IDivTextEllipsis, IDivTextImage, IDivTextRange, IDivTextRangeBorder, IDivTimer, IDivTooltip, IDivTransform, IDivTransitionBase, IDivTrigger, IDivVisibilityAction, IDivWrapContentSizeConstraintSize, ITemplates, IntBoolean, IntegerVariable, IntegerVariableProps, NonEmptyArray, NumberVariable, NumberVariableProps, SafeDivExpression, StringVariable, StringVariableProps, TabTitleStyleAnimationType, TemplateBlock, TemplateHelper, TemplatePropertyReference, TemplateResolvedAction, ThelperWithMemo, Type, UrlVariable, UrlVariableProps, copyTemplates, divCard, escapeCard, escapeExpression, expression, fixed, getTemplateHash, matchParent, reference, rewriteNames, rewriteRefs, rewriteTemplateVersions, runResolveDeps, template, templateHelper, templatesDepsMap, thelperVersion, thelperWithMemo, treeWalkDFS, weighted, wrapContent };
|