@fugood/bricks-project 2.21.0-beta.14.test8 → 2.21.0-beta.16
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/api/instance.ts +1 -1
- package/compile/index.ts +64 -10
- package/index.ts +1 -1
- package/package.json +2 -2
- package/tools/preview-main.mjs +3 -0
- package/tools/preview.ts +2 -1
- package/types/bricks.ts +114 -89
- package/types/canvas.ts +1 -0
- package/types/common.ts +2 -2
- package/types/data.ts +19 -8
- package/types/generators.ts +142 -142
- package/types/subspace.ts +9 -1
- package/types/system.ts +54 -54
- package/utils/data.ts +27 -1
package/types/bricks.ts
CHANGED
|
@@ -56,6 +56,12 @@ interface BrickBasicProperty {
|
|
|
56
56
|
pressable?: 'enabled' | 'disabled' | 'bypass' | DataLink
|
|
57
57
|
}
|
|
58
58
|
|
|
59
|
+
interface BrickBasicEvents {
|
|
60
|
+
showStart?: Array<EventAction>
|
|
61
|
+
switchUpdate?: Array<EventAction>
|
|
62
|
+
standby?: Array<EventAction>
|
|
63
|
+
}
|
|
64
|
+
|
|
59
65
|
interface BrickRectDef {
|
|
60
66
|
/*
|
|
61
67
|
Default property:
|
|
@@ -101,7 +107,7 @@ Default property:
|
|
|
101
107
|
/* An optional array of numbers defining the location of each gradient color stop */
|
|
102
108
|
linearGradientLocations?: Array<number | DataLink> | DataLink
|
|
103
109
|
}
|
|
104
|
-
events?: {
|
|
110
|
+
events?: BrickBasicEvents & {
|
|
105
111
|
/* Event of the brick press */
|
|
106
112
|
onPress?: Array<EventAction>
|
|
107
113
|
/* Event of the brick press in */
|
|
@@ -222,7 +228,7 @@ Default property:
|
|
|
222
228
|
/* Enable vertical rendering */
|
|
223
229
|
verticalRendering?: boolean | DataLink
|
|
224
230
|
}
|
|
225
|
-
events?: {
|
|
231
|
+
events?: BrickBasicEvents & {
|
|
226
232
|
/* Event of the brick press */
|
|
227
233
|
onPress?: Array<EventAction>
|
|
228
234
|
/* Event of the brick press in */
|
|
@@ -304,17 +310,17 @@ export type BrickTextInputActionSelectText = ActionWithParams & {
|
|
|
304
310
|
| {
|
|
305
311
|
input: 'regex'
|
|
306
312
|
value?: string | DataLink
|
|
307
|
-
mapping?:
|
|
313
|
+
mapping?: string
|
|
308
314
|
}
|
|
309
315
|
| {
|
|
310
316
|
input: 'start'
|
|
311
317
|
value?: number | DataLink
|
|
312
|
-
mapping?:
|
|
318
|
+
mapping?: string
|
|
313
319
|
}
|
|
314
320
|
| {
|
|
315
321
|
input: 'end'
|
|
316
322
|
value?: number | DataLink
|
|
317
|
-
mapping?:
|
|
323
|
+
mapping?: string
|
|
318
324
|
}
|
|
319
325
|
>
|
|
320
326
|
}
|
|
@@ -325,7 +331,7 @@ export type BrickTextInputActionSetText = ActionWithParams & {
|
|
|
325
331
|
params?: Array<{
|
|
326
332
|
input: 'text'
|
|
327
333
|
value?: string | DataLink
|
|
328
|
-
mapping?:
|
|
334
|
+
mapping?: string
|
|
329
335
|
}>
|
|
330
336
|
}
|
|
331
337
|
|
|
@@ -335,7 +341,7 @@ export type BrickTextInputActionAppendText = ActionWithParams & {
|
|
|
335
341
|
params?: Array<{
|
|
336
342
|
input: 'text'
|
|
337
343
|
value?: string | DataLink
|
|
338
|
-
mapping?:
|
|
344
|
+
mapping?: string
|
|
339
345
|
}>
|
|
340
346
|
}
|
|
341
347
|
|
|
@@ -428,7 +434,7 @@ Default property:
|
|
|
428
434
|
/* Blur TextInput on submit */
|
|
429
435
|
blurOnSubmit?: boolean | DataLink
|
|
430
436
|
}
|
|
431
|
-
events?: {
|
|
437
|
+
events?: BrickBasicEvents & {
|
|
432
438
|
/* Event of the TextInput is focused */
|
|
433
439
|
onFocus?: Array<EventAction>
|
|
434
440
|
/* Event of the input field is blurred */
|
|
@@ -602,7 +608,7 @@ Default property:
|
|
|
602
608
|
h6?: number | DataLink // BRICKS Grid unit
|
|
603
609
|
}
|
|
604
610
|
}
|
|
605
|
-
events?: {
|
|
611
|
+
events?: BrickBasicEvents & {
|
|
606
612
|
/* Event of the brick press */
|
|
607
613
|
onPress?: Array<EventAction>
|
|
608
614
|
/* Event of the brick press in */
|
|
@@ -684,7 +690,7 @@ Default property:
|
|
|
684
690
|
/* [Android] The use priority of image loading system (Auto: glide, fallback to fresco if failed) */
|
|
685
691
|
loadSystemAndroid?: 'auto' | 'glide' | 'fresco' | DataLink
|
|
686
692
|
}
|
|
687
|
-
events?: {
|
|
693
|
+
events?: BrickBasicEvents & {
|
|
688
694
|
/* Event of the brick press */
|
|
689
695
|
onPress?: Array<EventAction>
|
|
690
696
|
/* Event of the brick press in */
|
|
@@ -774,7 +780,7 @@ Default property:
|
|
|
774
780
|
>
|
|
775
781
|
| DataLink
|
|
776
782
|
}
|
|
777
|
-
events?: {
|
|
783
|
+
events?: BrickBasicEvents & {
|
|
778
784
|
/* Event of the brick press */
|
|
779
785
|
onPress?: Array<EventAction>
|
|
780
786
|
/* Event of the brick press in */
|
|
@@ -851,7 +857,7 @@ Default property:
|
|
|
851
857
|
/* Icon secondary color (For Duotone type) */
|
|
852
858
|
secondaryColor?: string | DataLink
|
|
853
859
|
}
|
|
854
|
-
events?: {
|
|
860
|
+
events?: BrickBasicEvents & {
|
|
855
861
|
/* Event of the brick press */
|
|
856
862
|
onPress?: Array<EventAction>
|
|
857
863
|
/* Event of the brick press in */
|
|
@@ -953,7 +959,7 @@ Default property:
|
|
|
953
959
|
/* Use what view type for render video (Auto / Texture or Surface). Notice: Although using surface has better performance, it also affects the Animation & Standby Transition used by itself */
|
|
954
960
|
renderMode?: 'auto' | 'texture' | 'surface' | DataLink
|
|
955
961
|
}
|
|
956
|
-
events?: {
|
|
962
|
+
events?: BrickBasicEvents & {
|
|
957
963
|
/* Event of the brick press */
|
|
958
964
|
onPress?: Array<EventAction>
|
|
959
965
|
/* Event of the brick press in */
|
|
@@ -1072,7 +1078,7 @@ Default property:
|
|
|
1072
1078
|
/* Timeout to replay if repeat or replayOnError is true and video is end or error */
|
|
1073
1079
|
replayTimeout?: number | DataLink
|
|
1074
1080
|
}
|
|
1075
|
-
events?: {
|
|
1081
|
+
events?: BrickBasicEvents & {
|
|
1076
1082
|
/* Event of the brick press */
|
|
1077
1083
|
onPress?: Array<EventAction>
|
|
1078
1084
|
/* Event of the brick press in */
|
|
@@ -1177,7 +1183,7 @@ Default property:
|
|
|
1177
1183
|
/* The logo gets a filled quadratic background with this color. */
|
|
1178
1184
|
logoBackgroundColor?: string | DataLink
|
|
1179
1185
|
}
|
|
1180
|
-
events?: {
|
|
1186
|
+
events?: BrickBasicEvents & {
|
|
1181
1187
|
/* Event of the brick press */
|
|
1182
1188
|
onPress?: Array<EventAction>
|
|
1183
1189
|
/* Event of the brick press in */
|
|
@@ -1233,17 +1239,17 @@ export type BrickSlideshowActionJumpToIndex = ActionWithParams & {
|
|
|
1233
1239
|
| {
|
|
1234
1240
|
input: 'index'
|
|
1235
1241
|
value?: number | DataLink
|
|
1236
|
-
mapping?:
|
|
1242
|
+
mapping?: string
|
|
1237
1243
|
}
|
|
1238
1244
|
| {
|
|
1239
1245
|
input: 'reset'
|
|
1240
1246
|
value?: boolean | DataLink
|
|
1241
|
-
mapping?:
|
|
1247
|
+
mapping?: string
|
|
1242
1248
|
}
|
|
1243
1249
|
| {
|
|
1244
1250
|
input: 'shuffle'
|
|
1245
1251
|
value?: boolean | DataLink
|
|
1246
|
-
mapping?:
|
|
1252
|
+
mapping?: string
|
|
1247
1253
|
}
|
|
1248
1254
|
>
|
|
1249
1255
|
}
|
|
@@ -1323,7 +1329,7 @@ Default property:
|
|
|
1323
1329
|
/* The blur radius of the blur filter added to the image background */
|
|
1324
1330
|
blurBackgroundRadius?: number | DataLink
|
|
1325
1331
|
}
|
|
1326
|
-
events?: {
|
|
1332
|
+
events?: BrickBasicEvents & {
|
|
1327
1333
|
/* Event of the next slideshow on change start */
|
|
1328
1334
|
changeStart?: Array<
|
|
1329
1335
|
EventAction & {
|
|
@@ -1425,27 +1431,27 @@ export type BrickChartActionDataHighlight = ActionWithParams & {
|
|
|
1425
1431
|
| {
|
|
1426
1432
|
input: 'seriesName'
|
|
1427
1433
|
value?: string | DataLink
|
|
1428
|
-
mapping?:
|
|
1434
|
+
mapping?: string
|
|
1429
1435
|
}
|
|
1430
1436
|
| {
|
|
1431
1437
|
input: 'seriesId'
|
|
1432
1438
|
value?: string | DataLink
|
|
1433
|
-
mapping?:
|
|
1439
|
+
mapping?: string
|
|
1434
1440
|
}
|
|
1435
1441
|
| {
|
|
1436
1442
|
input: 'seriesIndex'
|
|
1437
1443
|
value?: number | DataLink
|
|
1438
|
-
mapping?:
|
|
1444
|
+
mapping?: string
|
|
1439
1445
|
}
|
|
1440
1446
|
| {
|
|
1441
1447
|
input: 'dataIndex'
|
|
1442
1448
|
value?: number | DataLink
|
|
1443
|
-
mapping?:
|
|
1449
|
+
mapping?: string
|
|
1444
1450
|
}
|
|
1445
1451
|
| {
|
|
1446
1452
|
input: 'name'
|
|
1447
1453
|
value?: string | DataLink
|
|
1448
|
-
mapping?:
|
|
1454
|
+
mapping?: string
|
|
1449
1455
|
}
|
|
1450
1456
|
>
|
|
1451
1457
|
}
|
|
@@ -1457,27 +1463,27 @@ export type BrickChartActionDataDownplay = ActionWithParams & {
|
|
|
1457
1463
|
| {
|
|
1458
1464
|
input: 'seriesName'
|
|
1459
1465
|
value?: string | DataLink
|
|
1460
|
-
mapping?:
|
|
1466
|
+
mapping?: string
|
|
1461
1467
|
}
|
|
1462
1468
|
| {
|
|
1463
1469
|
input: 'seriesId'
|
|
1464
1470
|
value?: string | DataLink
|
|
1465
|
-
mapping?:
|
|
1471
|
+
mapping?: string
|
|
1466
1472
|
}
|
|
1467
1473
|
| {
|
|
1468
1474
|
input: 'seriesIndex'
|
|
1469
1475
|
value?: number | DataLink
|
|
1470
|
-
mapping?:
|
|
1476
|
+
mapping?: string
|
|
1471
1477
|
}
|
|
1472
1478
|
| {
|
|
1473
1479
|
input: 'dataIndex'
|
|
1474
1480
|
value?: number | DataLink
|
|
1475
|
-
mapping?:
|
|
1481
|
+
mapping?: string
|
|
1476
1482
|
}
|
|
1477
1483
|
| {
|
|
1478
1484
|
input: 'name'
|
|
1479
1485
|
value?: string | DataLink
|
|
1480
|
-
mapping?:
|
|
1486
|
+
mapping?: string
|
|
1481
1487
|
}
|
|
1482
1488
|
>
|
|
1483
1489
|
}
|
|
@@ -1489,27 +1495,27 @@ export type BrickChartActionDataSelect = ActionWithParams & {
|
|
|
1489
1495
|
| {
|
|
1490
1496
|
input: 'seriesName'
|
|
1491
1497
|
value?: string | DataLink
|
|
1492
|
-
mapping?:
|
|
1498
|
+
mapping?: string
|
|
1493
1499
|
}
|
|
1494
1500
|
| {
|
|
1495
1501
|
input: 'seriesId'
|
|
1496
1502
|
value?: string | DataLink
|
|
1497
|
-
mapping?:
|
|
1503
|
+
mapping?: string
|
|
1498
1504
|
}
|
|
1499
1505
|
| {
|
|
1500
1506
|
input: 'seriesIndex'
|
|
1501
1507
|
value?: number | DataLink
|
|
1502
|
-
mapping?:
|
|
1508
|
+
mapping?: string
|
|
1503
1509
|
}
|
|
1504
1510
|
| {
|
|
1505
1511
|
input: 'dataIndex'
|
|
1506
1512
|
value?: number | DataLink
|
|
1507
|
-
mapping?:
|
|
1513
|
+
mapping?: string
|
|
1508
1514
|
}
|
|
1509
1515
|
| {
|
|
1510
1516
|
input: 'name'
|
|
1511
1517
|
value?: string | DataLink
|
|
1512
|
-
mapping?:
|
|
1518
|
+
mapping?: string
|
|
1513
1519
|
}
|
|
1514
1520
|
>
|
|
1515
1521
|
}
|
|
@@ -1521,27 +1527,27 @@ export type BrickChartActionDataUnselect = ActionWithParams & {
|
|
|
1521
1527
|
| {
|
|
1522
1528
|
input: 'seriesName'
|
|
1523
1529
|
value?: string | DataLink
|
|
1524
|
-
mapping?:
|
|
1530
|
+
mapping?: string
|
|
1525
1531
|
}
|
|
1526
1532
|
| {
|
|
1527
1533
|
input: 'seriesId'
|
|
1528
1534
|
value?: string | DataLink
|
|
1529
|
-
mapping?:
|
|
1535
|
+
mapping?: string
|
|
1530
1536
|
}
|
|
1531
1537
|
| {
|
|
1532
1538
|
input: 'seriesIndex'
|
|
1533
1539
|
value?: number | DataLink
|
|
1534
|
-
mapping?:
|
|
1540
|
+
mapping?: string
|
|
1535
1541
|
}
|
|
1536
1542
|
| {
|
|
1537
1543
|
input: 'dataIndex'
|
|
1538
1544
|
value?: number | DataLink
|
|
1539
|
-
mapping?:
|
|
1545
|
+
mapping?: string
|
|
1540
1546
|
}
|
|
1541
1547
|
| {
|
|
1542
1548
|
input: 'name'
|
|
1543
1549
|
value?: string | DataLink
|
|
1544
|
-
mapping?:
|
|
1550
|
+
mapping?: string
|
|
1545
1551
|
}
|
|
1546
1552
|
>
|
|
1547
1553
|
}
|
|
@@ -1553,27 +1559,27 @@ export type BrickChartActionDataToggleSelect = ActionWithParams & {
|
|
|
1553
1559
|
| {
|
|
1554
1560
|
input: 'seriesName'
|
|
1555
1561
|
value?: string | DataLink
|
|
1556
|
-
mapping?:
|
|
1562
|
+
mapping?: string
|
|
1557
1563
|
}
|
|
1558
1564
|
| {
|
|
1559
1565
|
input: 'seriesId'
|
|
1560
1566
|
value?: string | DataLink
|
|
1561
|
-
mapping?:
|
|
1567
|
+
mapping?: string
|
|
1562
1568
|
}
|
|
1563
1569
|
| {
|
|
1564
1570
|
input: 'seriesIndex'
|
|
1565
1571
|
value?: number | DataLink
|
|
1566
|
-
mapping?:
|
|
1572
|
+
mapping?: string
|
|
1567
1573
|
}
|
|
1568
1574
|
| {
|
|
1569
1575
|
input: 'dataIndex'
|
|
1570
1576
|
value?: number | DataLink
|
|
1571
|
-
mapping?:
|
|
1577
|
+
mapping?: string
|
|
1572
1578
|
}
|
|
1573
1579
|
| {
|
|
1574
1580
|
input: 'name'
|
|
1575
1581
|
value?: string | DataLink
|
|
1576
|
-
mapping?:
|
|
1582
|
+
mapping?: string
|
|
1577
1583
|
}
|
|
1578
1584
|
>
|
|
1579
1585
|
}
|
|
@@ -1584,7 +1590,7 @@ export type BrickChartActionLegendSelect = ActionWithParams & {
|
|
|
1584
1590
|
params?: Array<{
|
|
1585
1591
|
input: 'name'
|
|
1586
1592
|
value?: string | DataLink
|
|
1587
|
-
mapping?:
|
|
1593
|
+
mapping?: string
|
|
1588
1594
|
}>
|
|
1589
1595
|
}
|
|
1590
1596
|
|
|
@@ -1594,7 +1600,7 @@ export type BrickChartActionLegendUnselect = ActionWithParams & {
|
|
|
1594
1600
|
params?: Array<{
|
|
1595
1601
|
input: 'name'
|
|
1596
1602
|
value?: string | DataLink
|
|
1597
|
-
mapping?:
|
|
1603
|
+
mapping?: string
|
|
1598
1604
|
}>
|
|
1599
1605
|
}
|
|
1600
1606
|
|
|
@@ -1620,17 +1626,17 @@ export type BrickChartActionTooltipShow = ActionWithParams & {
|
|
|
1620
1626
|
| {
|
|
1621
1627
|
input: 'seriesIndex'
|
|
1622
1628
|
value?: number | DataLink
|
|
1623
|
-
mapping?:
|
|
1629
|
+
mapping?: string
|
|
1624
1630
|
}
|
|
1625
1631
|
| {
|
|
1626
1632
|
input: 'dataIndex'
|
|
1627
1633
|
value?: number | DataLink
|
|
1628
|
-
mapping?:
|
|
1634
|
+
mapping?: string
|
|
1629
1635
|
}
|
|
1630
1636
|
| {
|
|
1631
1637
|
input: 'name'
|
|
1632
1638
|
value?: string | DataLink
|
|
1633
|
-
mapping?:
|
|
1639
|
+
mapping?: string
|
|
1634
1640
|
}
|
|
1635
1641
|
>
|
|
1636
1642
|
}
|
|
@@ -1642,17 +1648,17 @@ export type BrickChartActionTooltipHide = ActionWithParams & {
|
|
|
1642
1648
|
| {
|
|
1643
1649
|
input: 'seriesIndex'
|
|
1644
1650
|
value?: number | DataLink
|
|
1645
|
-
mapping?:
|
|
1651
|
+
mapping?: string
|
|
1646
1652
|
}
|
|
1647
1653
|
| {
|
|
1648
1654
|
input: 'dataIndex'
|
|
1649
1655
|
value?: number | DataLink
|
|
1650
|
-
mapping?:
|
|
1656
|
+
mapping?: string
|
|
1651
1657
|
}
|
|
1652
1658
|
| {
|
|
1653
1659
|
input: 'name'
|
|
1654
1660
|
value?: string | DataLink
|
|
1655
|
-
mapping?:
|
|
1661
|
+
mapping?: string
|
|
1656
1662
|
}
|
|
1657
1663
|
>
|
|
1658
1664
|
}
|
|
@@ -1730,7 +1736,7 @@ Default property:
|
|
|
1730
1736
|
/* Full configuration of options, see https://echarts.apache.org/en/option.html */
|
|
1731
1737
|
options?: {} | DataLink
|
|
1732
1738
|
}
|
|
1733
|
-
events?: {
|
|
1739
|
+
events?: BrickBasicEvents & {
|
|
1734
1740
|
/* Event of chart render */
|
|
1735
1741
|
onRender?: Array<EventAction>
|
|
1736
1742
|
/* Event of data point on press */
|
|
@@ -1833,7 +1839,7 @@ export type BrickItemsActionJumpPage = ActionWithParams & {
|
|
|
1833
1839
|
params?: Array<{
|
|
1834
1840
|
input: 'pageIndex'
|
|
1835
1841
|
value?: number | DataLink
|
|
1836
|
-
mapping?:
|
|
1842
|
+
mapping?: string
|
|
1837
1843
|
}>
|
|
1838
1844
|
}
|
|
1839
1845
|
|
|
@@ -1843,7 +1849,7 @@ export type BrickItemsActionOpenDetail = ActionWithParams & {
|
|
|
1843
1849
|
params?: Array<{
|
|
1844
1850
|
input: 'detailIndex'
|
|
1845
1851
|
value?: number | DataLink
|
|
1846
|
-
mapping?:
|
|
1852
|
+
mapping?: string
|
|
1847
1853
|
}>
|
|
1848
1854
|
}
|
|
1849
1855
|
|
|
@@ -1859,37 +1865,37 @@ export type BrickItemsActionDynamicAnimation = ActionWithParams & {
|
|
|
1859
1865
|
| {
|
|
1860
1866
|
input: 'mode'
|
|
1861
1867
|
value?: 'list' | 'detail' | DataLink
|
|
1862
|
-
mapping?:
|
|
1868
|
+
mapping?: string
|
|
1863
1869
|
}
|
|
1864
1870
|
| {
|
|
1865
1871
|
input: 'brickId'
|
|
1866
1872
|
value?: string | DataLink
|
|
1867
|
-
mapping?:
|
|
1873
|
+
mapping?: string
|
|
1868
1874
|
}
|
|
1869
1875
|
| {
|
|
1870
1876
|
input: 'dataId'
|
|
1871
1877
|
value?: string | DataLink
|
|
1872
|
-
mapping?:
|
|
1878
|
+
mapping?: string
|
|
1873
1879
|
}
|
|
1874
1880
|
| {
|
|
1875
1881
|
input: 'index'
|
|
1876
1882
|
value?: number | DataLink
|
|
1877
|
-
mapping?:
|
|
1883
|
+
mapping?: string
|
|
1878
1884
|
}
|
|
1879
1885
|
| {
|
|
1880
1886
|
input: 'animationId'
|
|
1881
1887
|
value?: string | DataLink | (() => Animation)
|
|
1882
|
-
mapping?:
|
|
1888
|
+
mapping?: string
|
|
1883
1889
|
}
|
|
1884
1890
|
| {
|
|
1885
1891
|
input: 'animationType'
|
|
1886
1892
|
value?: 'once' | 'loop' | DataLink
|
|
1887
|
-
mapping?:
|
|
1893
|
+
mapping?: string
|
|
1888
1894
|
}
|
|
1889
1895
|
| {
|
|
1890
1896
|
input: 'animationResetInitialValue'
|
|
1891
1897
|
value?: boolean | DataLink
|
|
1892
|
-
mapping?:
|
|
1898
|
+
mapping?: string
|
|
1893
1899
|
}
|
|
1894
1900
|
>
|
|
1895
1901
|
}
|
|
@@ -1901,22 +1907,22 @@ export type BrickItemsActionDynamicAnimationReset = ActionWithParams & {
|
|
|
1901
1907
|
| {
|
|
1902
1908
|
input: 'mode'
|
|
1903
1909
|
value?: 'list' | 'detail' | DataLink
|
|
1904
|
-
mapping?:
|
|
1910
|
+
mapping?: string
|
|
1905
1911
|
}
|
|
1906
1912
|
| {
|
|
1907
1913
|
input: 'brickId'
|
|
1908
1914
|
value?: string | DataLink
|
|
1909
|
-
mapping?:
|
|
1915
|
+
mapping?: string
|
|
1910
1916
|
}
|
|
1911
1917
|
| {
|
|
1912
1918
|
input: 'dataId'
|
|
1913
1919
|
value?: string | DataLink
|
|
1914
|
-
mapping?:
|
|
1920
|
+
mapping?: string
|
|
1915
1921
|
}
|
|
1916
1922
|
| {
|
|
1917
1923
|
input: 'index'
|
|
1918
1924
|
value?: number | DataLink
|
|
1919
|
-
mapping?:
|
|
1925
|
+
mapping?: string
|
|
1920
1926
|
}
|
|
1921
1927
|
>
|
|
1922
1928
|
}
|
|
@@ -1928,22 +1934,22 @@ export type BrickItemsActionDynamicAnimationStop = ActionWithParams & {
|
|
|
1928
1934
|
| {
|
|
1929
1935
|
input: 'mode'
|
|
1930
1936
|
value?: 'list' | 'detail' | DataLink
|
|
1931
|
-
mapping?:
|
|
1937
|
+
mapping?: string
|
|
1932
1938
|
}
|
|
1933
1939
|
| {
|
|
1934
1940
|
input: 'brickId'
|
|
1935
1941
|
value?: string | DataLink
|
|
1936
|
-
mapping?:
|
|
1942
|
+
mapping?: string
|
|
1937
1943
|
}
|
|
1938
1944
|
| {
|
|
1939
1945
|
input: 'dataId'
|
|
1940
1946
|
value?: string | DataLink
|
|
1941
|
-
mapping?:
|
|
1947
|
+
mapping?: string
|
|
1942
1948
|
}
|
|
1943
1949
|
| {
|
|
1944
1950
|
input: 'index'
|
|
1945
1951
|
value?: number | DataLink
|
|
1946
|
-
mapping?:
|
|
1952
|
+
mapping?: string
|
|
1947
1953
|
}
|
|
1948
1954
|
>
|
|
1949
1955
|
}
|
|
@@ -2052,6 +2058,7 @@ Default property:
|
|
|
2052
2058
|
| {
|
|
2053
2059
|
title?: string | DataLink
|
|
2054
2060
|
description?: string | DataLink
|
|
2061
|
+
hidden?: boolean | DataLink
|
|
2055
2062
|
brickId?: string | DataLink
|
|
2056
2063
|
brickIdPrefix?: string | DataLink
|
|
2057
2064
|
templateKey?: string | DataLink
|
|
@@ -2068,6 +2075,14 @@ Default property:
|
|
|
2068
2075
|
y?: number | DataLink
|
|
2069
2076
|
width?: number | DataLink
|
|
2070
2077
|
height?: number | DataLink
|
|
2078
|
+
standbyMode?: 'custom' | 'top' | 'bottom' | 'left' | 'right' | DataLink
|
|
2079
|
+
standbyFrame?: DataLink | {}
|
|
2080
|
+
standbyOpacity?: number | DataLink
|
|
2081
|
+
standbyDelay?: number | DataLink
|
|
2082
|
+
standbyDelayRandom?: number | DataLink
|
|
2083
|
+
standbyEasing?: string | DataLink
|
|
2084
|
+
showingDelay?: number | DataLink
|
|
2085
|
+
renderOutOfViewport?: boolean | DataLink
|
|
2071
2086
|
}
|
|
2072
2087
|
show?: string | DataLink
|
|
2073
2088
|
pressToOpenDetail?: boolean | DataLink
|
|
@@ -2080,6 +2095,8 @@ Default property:
|
|
|
2080
2095
|
| DataLink
|
|
2081
2096
|
| {
|
|
2082
2097
|
title?: string | DataLink
|
|
2098
|
+
description?: string | DataLink
|
|
2099
|
+
hidden?: boolean | DataLink
|
|
2083
2100
|
brickId?: string | DataLink
|
|
2084
2101
|
brickIdPrefix?: string | DataLink
|
|
2085
2102
|
templateKey?: string | DataLink
|
|
@@ -2096,13 +2113,21 @@ Default property:
|
|
|
2096
2113
|
y?: number | DataLink
|
|
2097
2114
|
width?: number | DataLink
|
|
2098
2115
|
height?: number | DataLink
|
|
2116
|
+
standbyMode?: 'custom' | 'top' | 'bottom' | 'left' | 'right' | DataLink
|
|
2117
|
+
standbyFrame?: DataLink | {}
|
|
2118
|
+
standbyOpacity?: number | DataLink
|
|
2119
|
+
standbyDelay?: number | DataLink
|
|
2120
|
+
standbyDelayRandom?: number | DataLink
|
|
2121
|
+
standbyEasing?: string | DataLink
|
|
2122
|
+
showingDelay?: number | DataLink
|
|
2123
|
+
renderOutOfViewport?: boolean | DataLink
|
|
2099
2124
|
}
|
|
2100
2125
|
show?: string | DataLink
|
|
2101
2126
|
pressToBackList?: boolean | DataLink
|
|
2102
2127
|
}
|
|
2103
2128
|
>
|
|
2104
2129
|
| DataLink
|
|
2105
|
-
events?: {
|
|
2130
|
+
events?: BrickBasicEvents & {
|
|
2106
2131
|
/* Event on page render finished */
|
|
2107
2132
|
onPageRender?: Array<
|
|
2108
2133
|
EventAction & {
|
|
@@ -2294,7 +2319,7 @@ Default property:
|
|
|
2294
2319
|
>
|
|
2295
2320
|
| DataLink
|
|
2296
2321
|
}
|
|
2297
|
-
events?: {
|
|
2322
|
+
events?: BrickBasicEvents & {
|
|
2298
2323
|
/* Event of the brick press */
|
|
2299
2324
|
onPress?: Array<EventAction>
|
|
2300
2325
|
/* Event of the brick press in */
|
|
@@ -2376,7 +2401,7 @@ export type BrickWebViewActionInjectJavascript = ActionWithParams & {
|
|
|
2376
2401
|
params?: Array<{
|
|
2377
2402
|
input: 'javascriptCode'
|
|
2378
2403
|
value?: string | DataLink
|
|
2379
|
-
mapping?:
|
|
2404
|
+
mapping?: string
|
|
2380
2405
|
}>
|
|
2381
2406
|
}
|
|
2382
2407
|
|
|
@@ -2454,7 +2479,7 @@ Default property:
|
|
|
2454
2479
|
/* Inject JavaScript code before content loaded for main frame only (only `YES` supported for Android) */
|
|
2455
2480
|
beforeContentLoadedForMainFrameOnly?: boolean | DataLink
|
|
2456
2481
|
}
|
|
2457
|
-
events?: {
|
|
2482
|
+
events?: BrickBasicEvents & {
|
|
2458
2483
|
/* Event of the WebView on load */
|
|
2459
2484
|
onLoad?: Array<
|
|
2460
2485
|
EventAction & {
|
|
@@ -2525,22 +2550,22 @@ export type BrickCameraActionTakePicture = ActionWithParams & {
|
|
|
2525
2550
|
| {
|
|
2526
2551
|
input: 'width'
|
|
2527
2552
|
value?: number | DataLink
|
|
2528
|
-
mapping?:
|
|
2553
|
+
mapping?: string
|
|
2529
2554
|
}
|
|
2530
2555
|
| {
|
|
2531
2556
|
input: 'quality'
|
|
2532
2557
|
value?: string | DataLink
|
|
2533
|
-
mapping?:
|
|
2558
|
+
mapping?: string
|
|
2534
2559
|
}
|
|
2535
2560
|
| {
|
|
2536
2561
|
input: 'base64'
|
|
2537
2562
|
value?: boolean | DataLink
|
|
2538
|
-
mapping?:
|
|
2563
|
+
mapping?: string
|
|
2539
2564
|
}
|
|
2540
2565
|
| {
|
|
2541
2566
|
input: 'mirrorImage'
|
|
2542
2567
|
value?: boolean | DataLink
|
|
2543
|
-
mapping?:
|
|
2568
|
+
mapping?: string
|
|
2544
2569
|
}
|
|
2545
2570
|
>
|
|
2546
2571
|
}
|
|
@@ -2552,27 +2577,27 @@ export type BrickCameraActionRecord = ActionWithParams & {
|
|
|
2552
2577
|
| {
|
|
2553
2578
|
input: 'quality'
|
|
2554
2579
|
value?: '4:3' | '288p' | '480p' | '720p' | '1080p' | '2160p' | DataLink
|
|
2555
|
-
mapping?:
|
|
2580
|
+
mapping?: string
|
|
2556
2581
|
}
|
|
2557
2582
|
| {
|
|
2558
2583
|
input: 'mirrorVideo'
|
|
2559
2584
|
value?: boolean | DataLink
|
|
2560
|
-
mapping?:
|
|
2585
|
+
mapping?: string
|
|
2561
2586
|
}
|
|
2562
2587
|
| {
|
|
2563
2588
|
input: 'videoBitrate'
|
|
2564
2589
|
value?: string | DataLink
|
|
2565
|
-
mapping?:
|
|
2590
|
+
mapping?: string
|
|
2566
2591
|
}
|
|
2567
2592
|
| {
|
|
2568
2593
|
input: 'maxDuration'
|
|
2569
2594
|
value?: number | DataLink
|
|
2570
|
-
mapping?:
|
|
2595
|
+
mapping?: string
|
|
2571
2596
|
}
|
|
2572
2597
|
| {
|
|
2573
2598
|
input: 'maxFileSize'
|
|
2574
2599
|
value?: string | DataLink
|
|
2575
|
-
mapping?:
|
|
2600
|
+
mapping?: string
|
|
2576
2601
|
}
|
|
2577
2602
|
>
|
|
2578
2603
|
}
|
|
@@ -2641,7 +2666,7 @@ Default property:
|
|
|
2641
2666
|
/* Max file size of record video (bytes) */
|
|
2642
2667
|
recordMaxFileSize?: number | DataLink
|
|
2643
2668
|
}
|
|
2644
|
-
events?: {
|
|
2669
|
+
events?: BrickBasicEvents & {
|
|
2645
2670
|
/* Event of the Camera state change */
|
|
2646
2671
|
stateChange?: Array<
|
|
2647
2672
|
EventAction & {
|
|
@@ -2822,7 +2847,7 @@ export type Brick3DViewerActionAnimationPlay = ActionWithParams & {
|
|
|
2822
2847
|
params?: Array<{
|
|
2823
2848
|
input: 'objectIndex'
|
|
2824
2849
|
value?: number | DataLink
|
|
2825
|
-
mapping?:
|
|
2850
|
+
mapping?: string
|
|
2826
2851
|
}>
|
|
2827
2852
|
}
|
|
2828
2853
|
|
|
@@ -2832,7 +2857,7 @@ export type Brick3DViewerActionAnimationPause = ActionWithParams & {
|
|
|
2832
2857
|
params?: Array<{
|
|
2833
2858
|
input: 'objectIndex'
|
|
2834
2859
|
value?: number | DataLink
|
|
2835
|
-
mapping?:
|
|
2860
|
+
mapping?: string
|
|
2836
2861
|
}>
|
|
2837
2862
|
}
|
|
2838
2863
|
|
|
@@ -2843,12 +2868,12 @@ export type Brick3DViewerActionAnimationGoto = ActionWithParams & {
|
|
|
2843
2868
|
| {
|
|
2844
2869
|
input: 'objectIndex'
|
|
2845
2870
|
value?: number | DataLink
|
|
2846
|
-
mapping?:
|
|
2871
|
+
mapping?: string
|
|
2847
2872
|
}
|
|
2848
2873
|
| {
|
|
2849
2874
|
input: 'animationProgress'
|
|
2850
2875
|
value?: number | DataLink
|
|
2851
|
-
mapping?:
|
|
2876
|
+
mapping?: string
|
|
2852
2877
|
}
|
|
2853
2878
|
>
|
|
2854
2879
|
}
|
|
@@ -2963,7 +2988,7 @@ Default property:
|
|
|
2963
2988
|
showBoundingBox?: boolean | DataLink
|
|
2964
2989
|
}
|
|
2965
2990
|
}
|
|
2966
|
-
events?: {
|
|
2991
|
+
events?: BrickBasicEvents & {
|
|
2967
2992
|
/* Event of error occurred */
|
|
2968
2993
|
onError?: Array<
|
|
2969
2994
|
EventAction & {
|