@fugood/bricks-project 2.21.0-beta.43 → 2.22.0-beta.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/compile/action-name-map.ts +20 -0
- package/compile/index.ts +14 -2
- package/index.ts +1 -0
- package/package.json +2 -2
- package/types/bricks.ts +134 -746
- package/types/common.ts +5 -6
- package/types/data-calc.ts +19 -18
- package/types/generators.ts +340 -1683
- package/types/system.ts +169 -70
- package/utils/event-props.ts +733 -0
package/types/bricks.ts
CHANGED
|
@@ -8,6 +8,7 @@ import type {
|
|
|
8
8
|
ActionWithDataParams,
|
|
9
9
|
ActionWithParams,
|
|
10
10
|
Action,
|
|
11
|
+
EventProperty,
|
|
11
12
|
} from './common'
|
|
12
13
|
|
|
13
14
|
interface BrickBasicProperty {
|
|
@@ -322,17 +323,17 @@ export type BrickTextInputActionSelectText = ActionWithParams & {
|
|
|
322
323
|
params?: Array<
|
|
323
324
|
| {
|
|
324
325
|
input: 'regex'
|
|
325
|
-
value?: string | DataLink
|
|
326
|
+
value?: string | DataLink | EventProperty
|
|
326
327
|
mapping?: string
|
|
327
328
|
}
|
|
328
329
|
| {
|
|
329
330
|
input: 'start'
|
|
330
|
-
value?: number | DataLink
|
|
331
|
+
value?: number | DataLink | EventProperty
|
|
331
332
|
mapping?: string
|
|
332
333
|
}
|
|
333
334
|
| {
|
|
334
335
|
input: 'end'
|
|
335
|
-
value?: number | DataLink
|
|
336
|
+
value?: number | DataLink | EventProperty
|
|
336
337
|
mapping?: string
|
|
337
338
|
}
|
|
338
339
|
>
|
|
@@ -343,7 +344,7 @@ export type BrickTextInputActionSetText = ActionWithParams & {
|
|
|
343
344
|
__actionName: 'BRICK_TEXT_INPUT_SET_TEXT'
|
|
344
345
|
params?: Array<{
|
|
345
346
|
input: 'text'
|
|
346
|
-
value?: string | DataLink
|
|
347
|
+
value?: string | DataLink | EventProperty
|
|
347
348
|
mapping?: string
|
|
348
349
|
}>
|
|
349
350
|
}
|
|
@@ -353,7 +354,7 @@ export type BrickTextInputActionAppendText = ActionWithParams & {
|
|
|
353
354
|
__actionName: 'BRICK_TEXT_INPUT_APPEND_TEXT'
|
|
354
355
|
params?: Array<{
|
|
355
356
|
input: 'text'
|
|
356
|
-
value?: string | DataLink
|
|
357
|
+
value?: string | DataLink | EventProperty
|
|
357
358
|
mapping?: string
|
|
358
359
|
}>
|
|
359
360
|
}
|
|
@@ -455,64 +456,15 @@ Default property:
|
|
|
455
456
|
/* Event of the TextInput is empty */
|
|
456
457
|
onEmpty?: Array<EventAction>
|
|
457
458
|
/* Event of the TextInput value change */
|
|
458
|
-
onChange?: Array<
|
|
459
|
-
EventAction & {
|
|
460
|
-
eventPropertyMapping?: {
|
|
461
|
-
text: {
|
|
462
|
-
type: 'string'
|
|
463
|
-
path: string
|
|
464
|
-
}
|
|
465
|
-
type: {
|
|
466
|
-
type: 'string'
|
|
467
|
-
path: string
|
|
468
|
-
}
|
|
469
|
-
}
|
|
470
|
-
}
|
|
471
|
-
>
|
|
459
|
+
onChange?: Array<EventAction>
|
|
472
460
|
/* Event of the TextInput submit */
|
|
473
|
-
onSubmit?: Array<
|
|
474
|
-
EventAction & {
|
|
475
|
-
eventPropertyMapping?: {
|
|
476
|
-
text: {
|
|
477
|
-
type: 'string'
|
|
478
|
-
path: string
|
|
479
|
-
}
|
|
480
|
-
}
|
|
481
|
-
}
|
|
482
|
-
>
|
|
461
|
+
onSubmit?: Array<EventAction>
|
|
483
462
|
/* Event of the TextInput match regex (check every value change) */
|
|
484
|
-
onMatch?: Array<
|
|
485
|
-
EventAction & {
|
|
486
|
-
eventPropertyMapping?: {
|
|
487
|
-
text: {
|
|
488
|
-
type: 'string'
|
|
489
|
-
path: string
|
|
490
|
-
}
|
|
491
|
-
}
|
|
492
|
-
}
|
|
493
|
-
>
|
|
463
|
+
onMatch?: Array<EventAction>
|
|
494
464
|
/* Event of the TextInput not match regex (check every value change) */
|
|
495
|
-
onNotMatch?: Array<
|
|
496
|
-
EventAction & {
|
|
497
|
-
eventPropertyMapping?: {
|
|
498
|
-
text: {
|
|
499
|
-
type: 'string'
|
|
500
|
-
path: string
|
|
501
|
-
}
|
|
502
|
-
}
|
|
503
|
-
}
|
|
504
|
-
>
|
|
465
|
+
onNotMatch?: Array<EventAction>
|
|
505
466
|
/* Event of the TextInput not match regex (check every submit) */
|
|
506
|
-
onResultNotMatch?: Array<
|
|
507
|
-
EventAction & {
|
|
508
|
-
eventPropertyMapping?: {
|
|
509
|
-
text: {
|
|
510
|
-
type: 'string'
|
|
511
|
-
path: string
|
|
512
|
-
}
|
|
513
|
-
}
|
|
514
|
-
}
|
|
515
|
-
>
|
|
467
|
+
onResultNotMatch?: Array<EventAction>
|
|
516
468
|
/* Event of the TextInput reach max length or match regex */
|
|
517
469
|
onFullFill?: Array<EventAction>
|
|
518
470
|
}
|
|
@@ -717,16 +669,7 @@ Default property:
|
|
|
717
669
|
/* Event of the image on load */
|
|
718
670
|
onLoad?: Array<EventAction>
|
|
719
671
|
/* Event of the image on error */
|
|
720
|
-
onError?: Array<
|
|
721
|
-
EventAction & {
|
|
722
|
-
eventPropertyMapping?: {
|
|
723
|
-
errorMessage: {
|
|
724
|
-
type: 'string'
|
|
725
|
-
path: string
|
|
726
|
-
}
|
|
727
|
-
}
|
|
728
|
-
}
|
|
729
|
-
>
|
|
672
|
+
onError?: Array<EventAction>
|
|
730
673
|
}
|
|
731
674
|
outlets?: {
|
|
732
675
|
/* Brick is pressing */
|
|
@@ -987,16 +930,7 @@ Default property:
|
|
|
987
930
|
/* Event of the brick blur (Use TV Device with controller) */
|
|
988
931
|
onBlur?: Array<EventAction>
|
|
989
932
|
/* Event of the next video on change start */
|
|
990
|
-
nextVideo?: Array<
|
|
991
|
-
EventAction & {
|
|
992
|
-
eventPropertyMapping?: {
|
|
993
|
-
nextIndex: {
|
|
994
|
-
type: 'number'
|
|
995
|
-
path: string
|
|
996
|
-
}
|
|
997
|
-
}
|
|
998
|
-
}
|
|
999
|
-
>
|
|
933
|
+
nextVideo?: Array<EventAction>
|
|
1000
934
|
/* Event on plays of path are totally end */
|
|
1001
935
|
roundEnd?: Array<EventAction>
|
|
1002
936
|
/* Event on video load */
|
|
@@ -1004,20 +938,7 @@ Default property:
|
|
|
1004
938
|
/* Event of the video playing error */
|
|
1005
939
|
onError?: Array<EventAction>
|
|
1006
940
|
/* Event of the video progress interval */
|
|
1007
|
-
onProgress?: Array<
|
|
1008
|
-
EventAction & {
|
|
1009
|
-
eventPropertyMapping?: {
|
|
1010
|
-
currentTime: {
|
|
1011
|
-
type: 'number'
|
|
1012
|
-
path: string
|
|
1013
|
-
}
|
|
1014
|
-
playableDuration: {
|
|
1015
|
-
type: 'number'
|
|
1016
|
-
path: string
|
|
1017
|
-
}
|
|
1018
|
-
}
|
|
1019
|
-
}
|
|
1020
|
-
>
|
|
941
|
+
onProgress?: Array<EventAction>
|
|
1021
942
|
}
|
|
1022
943
|
outlets?: {
|
|
1023
944
|
/* Brick is pressing */
|
|
@@ -1254,17 +1175,17 @@ export type BrickSlideshowActionJumpToIndex = ActionWithParams & {
|
|
|
1254
1175
|
params?: Array<
|
|
1255
1176
|
| {
|
|
1256
1177
|
input: 'index'
|
|
1257
|
-
value?: number | DataLink
|
|
1178
|
+
value?: number | DataLink | EventProperty
|
|
1258
1179
|
mapping?: string
|
|
1259
1180
|
}
|
|
1260
1181
|
| {
|
|
1261
1182
|
input: 'reset'
|
|
1262
|
-
value?: boolean | DataLink
|
|
1183
|
+
value?: boolean | DataLink | EventProperty
|
|
1263
1184
|
mapping?: string
|
|
1264
1185
|
}
|
|
1265
1186
|
| {
|
|
1266
1187
|
input: 'shuffle'
|
|
1267
|
-
value?: boolean | DataLink
|
|
1188
|
+
value?: boolean | DataLink | EventProperty
|
|
1268
1189
|
mapping?: string
|
|
1269
1190
|
}
|
|
1270
1191
|
>
|
|
@@ -1347,65 +1268,13 @@ Default property:
|
|
|
1347
1268
|
}
|
|
1348
1269
|
events?: BrickBasicEvents & {
|
|
1349
1270
|
/* Event of the next slideshow on change start */
|
|
1350
|
-
changeStart?: Array<
|
|
1351
|
-
EventAction & {
|
|
1352
|
-
eventPropertyMapping?: {
|
|
1353
|
-
payloadValue: {
|
|
1354
|
-
type: 'number'
|
|
1355
|
-
path: string
|
|
1356
|
-
}
|
|
1357
|
-
originalIndex: {
|
|
1358
|
-
type: 'number'
|
|
1359
|
-
path: string
|
|
1360
|
-
}
|
|
1361
|
-
}
|
|
1362
|
-
}
|
|
1363
|
-
>
|
|
1271
|
+
changeStart?: Array<EventAction>
|
|
1364
1272
|
/* Event of the next slideshow on change end */
|
|
1365
|
-
changeEnd?: Array<
|
|
1366
|
-
EventAction & {
|
|
1367
|
-
eventPropertyMapping?: {
|
|
1368
|
-
payloadValue: {
|
|
1369
|
-
type: 'number'
|
|
1370
|
-
path: string
|
|
1371
|
-
}
|
|
1372
|
-
originalIndex: {
|
|
1373
|
-
type: 'number'
|
|
1374
|
-
path: string
|
|
1375
|
-
}
|
|
1376
|
-
}
|
|
1377
|
-
}
|
|
1378
|
-
>
|
|
1273
|
+
changeEnd?: Array<EventAction>
|
|
1379
1274
|
/* Event on paths change */
|
|
1380
|
-
contentChange?: Array<
|
|
1381
|
-
EventAction & {
|
|
1382
|
-
eventPropertyMapping?: {
|
|
1383
|
-
payloadValue: {
|
|
1384
|
-
type: 'number'
|
|
1385
|
-
path: string
|
|
1386
|
-
}
|
|
1387
|
-
originalIndex: {
|
|
1388
|
-
type: 'number'
|
|
1389
|
-
path: string
|
|
1390
|
-
}
|
|
1391
|
-
}
|
|
1392
|
-
}
|
|
1393
|
-
>
|
|
1275
|
+
contentChange?: Array<EventAction>
|
|
1394
1276
|
/* Event on plays of paths are end */
|
|
1395
|
-
roundEnd?: Array<
|
|
1396
|
-
EventAction & {
|
|
1397
|
-
eventPropertyMapping?: {
|
|
1398
|
-
payloadValue: {
|
|
1399
|
-
type: 'number'
|
|
1400
|
-
path: string
|
|
1401
|
-
}
|
|
1402
|
-
originalIndex: {
|
|
1403
|
-
type: 'number'
|
|
1404
|
-
path: string
|
|
1405
|
-
}
|
|
1406
|
-
}
|
|
1407
|
-
}
|
|
1408
|
-
>
|
|
1277
|
+
roundEnd?: Array<EventAction>
|
|
1409
1278
|
/* Event of the slideshow on load */
|
|
1410
1279
|
mediaOnLoad?: Array<EventAction>
|
|
1411
1280
|
}
|
|
@@ -1446,27 +1315,27 @@ export type BrickChartActionDataHighlight = ActionWithParams & {
|
|
|
1446
1315
|
params?: Array<
|
|
1447
1316
|
| {
|
|
1448
1317
|
input: 'seriesName'
|
|
1449
|
-
value?: string | DataLink
|
|
1318
|
+
value?: string | DataLink | EventProperty
|
|
1450
1319
|
mapping?: string
|
|
1451
1320
|
}
|
|
1452
1321
|
| {
|
|
1453
1322
|
input: 'seriesId'
|
|
1454
|
-
value?: string | DataLink
|
|
1323
|
+
value?: string | DataLink | EventProperty
|
|
1455
1324
|
mapping?: string
|
|
1456
1325
|
}
|
|
1457
1326
|
| {
|
|
1458
1327
|
input: 'seriesIndex'
|
|
1459
|
-
value?: number | DataLink
|
|
1328
|
+
value?: number | DataLink | EventProperty
|
|
1460
1329
|
mapping?: string
|
|
1461
1330
|
}
|
|
1462
1331
|
| {
|
|
1463
1332
|
input: 'dataIndex'
|
|
1464
|
-
value?: number | DataLink
|
|
1333
|
+
value?: number | DataLink | EventProperty
|
|
1465
1334
|
mapping?: string
|
|
1466
1335
|
}
|
|
1467
1336
|
| {
|
|
1468
1337
|
input: 'name'
|
|
1469
|
-
value?: string | DataLink
|
|
1338
|
+
value?: string | DataLink | EventProperty
|
|
1470
1339
|
mapping?: string
|
|
1471
1340
|
}
|
|
1472
1341
|
>
|
|
@@ -1478,27 +1347,27 @@ export type BrickChartActionDataDownplay = ActionWithParams & {
|
|
|
1478
1347
|
params?: Array<
|
|
1479
1348
|
| {
|
|
1480
1349
|
input: 'seriesName'
|
|
1481
|
-
value?: string | DataLink
|
|
1350
|
+
value?: string | DataLink | EventProperty
|
|
1482
1351
|
mapping?: string
|
|
1483
1352
|
}
|
|
1484
1353
|
| {
|
|
1485
1354
|
input: 'seriesId'
|
|
1486
|
-
value?: string | DataLink
|
|
1355
|
+
value?: string | DataLink | EventProperty
|
|
1487
1356
|
mapping?: string
|
|
1488
1357
|
}
|
|
1489
1358
|
| {
|
|
1490
1359
|
input: 'seriesIndex'
|
|
1491
|
-
value?: number | DataLink
|
|
1360
|
+
value?: number | DataLink | EventProperty
|
|
1492
1361
|
mapping?: string
|
|
1493
1362
|
}
|
|
1494
1363
|
| {
|
|
1495
1364
|
input: 'dataIndex'
|
|
1496
|
-
value?: number | DataLink
|
|
1365
|
+
value?: number | DataLink | EventProperty
|
|
1497
1366
|
mapping?: string
|
|
1498
1367
|
}
|
|
1499
1368
|
| {
|
|
1500
1369
|
input: 'name'
|
|
1501
|
-
value?: string | DataLink
|
|
1370
|
+
value?: string | DataLink | EventProperty
|
|
1502
1371
|
mapping?: string
|
|
1503
1372
|
}
|
|
1504
1373
|
>
|
|
@@ -1510,27 +1379,27 @@ export type BrickChartActionDataSelect = ActionWithParams & {
|
|
|
1510
1379
|
params?: Array<
|
|
1511
1380
|
| {
|
|
1512
1381
|
input: 'seriesName'
|
|
1513
|
-
value?: string | DataLink
|
|
1382
|
+
value?: string | DataLink | EventProperty
|
|
1514
1383
|
mapping?: string
|
|
1515
1384
|
}
|
|
1516
1385
|
| {
|
|
1517
1386
|
input: 'seriesId'
|
|
1518
|
-
value?: string | DataLink
|
|
1387
|
+
value?: string | DataLink | EventProperty
|
|
1519
1388
|
mapping?: string
|
|
1520
1389
|
}
|
|
1521
1390
|
| {
|
|
1522
1391
|
input: 'seriesIndex'
|
|
1523
|
-
value?: number | DataLink
|
|
1392
|
+
value?: number | DataLink | EventProperty
|
|
1524
1393
|
mapping?: string
|
|
1525
1394
|
}
|
|
1526
1395
|
| {
|
|
1527
1396
|
input: 'dataIndex'
|
|
1528
|
-
value?: number | DataLink
|
|
1397
|
+
value?: number | DataLink | EventProperty
|
|
1529
1398
|
mapping?: string
|
|
1530
1399
|
}
|
|
1531
1400
|
| {
|
|
1532
1401
|
input: 'name'
|
|
1533
|
-
value?: string | DataLink
|
|
1402
|
+
value?: string | DataLink | EventProperty
|
|
1534
1403
|
mapping?: string
|
|
1535
1404
|
}
|
|
1536
1405
|
>
|
|
@@ -1542,27 +1411,27 @@ export type BrickChartActionDataUnselect = ActionWithParams & {
|
|
|
1542
1411
|
params?: Array<
|
|
1543
1412
|
| {
|
|
1544
1413
|
input: 'seriesName'
|
|
1545
|
-
value?: string | DataLink
|
|
1414
|
+
value?: string | DataLink | EventProperty
|
|
1546
1415
|
mapping?: string
|
|
1547
1416
|
}
|
|
1548
1417
|
| {
|
|
1549
1418
|
input: 'seriesId'
|
|
1550
|
-
value?: string | DataLink
|
|
1419
|
+
value?: string | DataLink | EventProperty
|
|
1551
1420
|
mapping?: string
|
|
1552
1421
|
}
|
|
1553
1422
|
| {
|
|
1554
1423
|
input: 'seriesIndex'
|
|
1555
|
-
value?: number | DataLink
|
|
1424
|
+
value?: number | DataLink | EventProperty
|
|
1556
1425
|
mapping?: string
|
|
1557
1426
|
}
|
|
1558
1427
|
| {
|
|
1559
1428
|
input: 'dataIndex'
|
|
1560
|
-
value?: number | DataLink
|
|
1429
|
+
value?: number | DataLink | EventProperty
|
|
1561
1430
|
mapping?: string
|
|
1562
1431
|
}
|
|
1563
1432
|
| {
|
|
1564
1433
|
input: 'name'
|
|
1565
|
-
value?: string | DataLink
|
|
1434
|
+
value?: string | DataLink | EventProperty
|
|
1566
1435
|
mapping?: string
|
|
1567
1436
|
}
|
|
1568
1437
|
>
|
|
@@ -1574,27 +1443,27 @@ export type BrickChartActionDataToggleSelect = ActionWithParams & {
|
|
|
1574
1443
|
params?: Array<
|
|
1575
1444
|
| {
|
|
1576
1445
|
input: 'seriesName'
|
|
1577
|
-
value?: string | DataLink
|
|
1446
|
+
value?: string | DataLink | EventProperty
|
|
1578
1447
|
mapping?: string
|
|
1579
1448
|
}
|
|
1580
1449
|
| {
|
|
1581
1450
|
input: 'seriesId'
|
|
1582
|
-
value?: string | DataLink
|
|
1451
|
+
value?: string | DataLink | EventProperty
|
|
1583
1452
|
mapping?: string
|
|
1584
1453
|
}
|
|
1585
1454
|
| {
|
|
1586
1455
|
input: 'seriesIndex'
|
|
1587
|
-
value?: number | DataLink
|
|
1456
|
+
value?: number | DataLink | EventProperty
|
|
1588
1457
|
mapping?: string
|
|
1589
1458
|
}
|
|
1590
1459
|
| {
|
|
1591
1460
|
input: 'dataIndex'
|
|
1592
|
-
value?: number | DataLink
|
|
1461
|
+
value?: number | DataLink | EventProperty
|
|
1593
1462
|
mapping?: string
|
|
1594
1463
|
}
|
|
1595
1464
|
| {
|
|
1596
1465
|
input: 'name'
|
|
1597
|
-
value?: string | DataLink
|
|
1466
|
+
value?: string | DataLink | EventProperty
|
|
1598
1467
|
mapping?: string
|
|
1599
1468
|
}
|
|
1600
1469
|
>
|
|
@@ -1605,7 +1474,7 @@ export type BrickChartActionLegendSelect = ActionWithParams & {
|
|
|
1605
1474
|
__actionName: 'BRICK_CHART_LEGEND_SELECT'
|
|
1606
1475
|
params?: Array<{
|
|
1607
1476
|
input: 'name'
|
|
1608
|
-
value?: string | DataLink
|
|
1477
|
+
value?: string | DataLink | EventProperty
|
|
1609
1478
|
mapping?: string
|
|
1610
1479
|
}>
|
|
1611
1480
|
}
|
|
@@ -1615,7 +1484,7 @@ export type BrickChartActionLegendUnselect = ActionWithParams & {
|
|
|
1615
1484
|
__actionName: 'BRICK_CHART_LEGEND_UNSELECT'
|
|
1616
1485
|
params?: Array<{
|
|
1617
1486
|
input: 'name'
|
|
1618
|
-
value?: string | DataLink
|
|
1487
|
+
value?: string | DataLink | EventProperty
|
|
1619
1488
|
mapping?: string
|
|
1620
1489
|
}>
|
|
1621
1490
|
}
|
|
@@ -1641,17 +1510,17 @@ export type BrickChartActionTooltipShow = ActionWithParams & {
|
|
|
1641
1510
|
params?: Array<
|
|
1642
1511
|
| {
|
|
1643
1512
|
input: 'seriesIndex'
|
|
1644
|
-
value?: number | DataLink
|
|
1513
|
+
value?: number | DataLink | EventProperty
|
|
1645
1514
|
mapping?: string
|
|
1646
1515
|
}
|
|
1647
1516
|
| {
|
|
1648
1517
|
input: 'dataIndex'
|
|
1649
|
-
value?: number | DataLink
|
|
1518
|
+
value?: number | DataLink | EventProperty
|
|
1650
1519
|
mapping?: string
|
|
1651
1520
|
}
|
|
1652
1521
|
| {
|
|
1653
1522
|
input: 'name'
|
|
1654
|
-
value?: string | DataLink
|
|
1523
|
+
value?: string | DataLink | EventProperty
|
|
1655
1524
|
mapping?: string
|
|
1656
1525
|
}
|
|
1657
1526
|
>
|
|
@@ -1663,17 +1532,17 @@ export type BrickChartActionTooltipHide = ActionWithParams & {
|
|
|
1663
1532
|
params?: Array<
|
|
1664
1533
|
| {
|
|
1665
1534
|
input: 'seriesIndex'
|
|
1666
|
-
value?: number | DataLink
|
|
1535
|
+
value?: number | DataLink | EventProperty
|
|
1667
1536
|
mapping?: string
|
|
1668
1537
|
}
|
|
1669
1538
|
| {
|
|
1670
1539
|
input: 'dataIndex'
|
|
1671
|
-
value?: number | DataLink
|
|
1540
|
+
value?: number | DataLink | EventProperty
|
|
1672
1541
|
mapping?: string
|
|
1673
1542
|
}
|
|
1674
1543
|
| {
|
|
1675
1544
|
input: 'name'
|
|
1676
|
-
value?: string | DataLink
|
|
1545
|
+
value?: string | DataLink | EventProperty
|
|
1677
1546
|
mapping?: string
|
|
1678
1547
|
}
|
|
1679
1548
|
>
|
|
@@ -1756,59 +1625,9 @@ Default property:
|
|
|
1756
1625
|
/* Event of chart render */
|
|
1757
1626
|
onRender?: Array<EventAction>
|
|
1758
1627
|
/* Event of data point on press */
|
|
1759
|
-
onPress?: Array<
|
|
1760
|
-
EventAction & {
|
|
1761
|
-
eventPropertyMapping?: {
|
|
1762
|
-
dataType: {
|
|
1763
|
-
type: 'string'
|
|
1764
|
-
path: string
|
|
1765
|
-
}
|
|
1766
|
-
dataIndex: {
|
|
1767
|
-
type: 'number'
|
|
1768
|
-
path: string
|
|
1769
|
-
}
|
|
1770
|
-
data: {
|
|
1771
|
-
type: 'any'
|
|
1772
|
-
path: string
|
|
1773
|
-
}
|
|
1774
|
-
seriesType: {
|
|
1775
|
-
type: 'string'
|
|
1776
|
-
path: string
|
|
1777
|
-
}
|
|
1778
|
-
seriesName: {
|
|
1779
|
-
type: 'string'
|
|
1780
|
-
path: string
|
|
1781
|
-
}
|
|
1782
|
-
seriesIndex: {
|
|
1783
|
-
type: 'number'
|
|
1784
|
-
path: string
|
|
1785
|
-
}
|
|
1786
|
-
name: {
|
|
1787
|
-
type: 'string'
|
|
1788
|
-
path: string
|
|
1789
|
-
}
|
|
1790
|
-
value: {
|
|
1791
|
-
type: 'any'
|
|
1792
|
-
path: string
|
|
1793
|
-
}
|
|
1794
|
-
}
|
|
1795
|
-
}
|
|
1796
|
-
>
|
|
1628
|
+
onPress?: Array<EventAction>
|
|
1797
1629
|
/* Event of legend select changed */
|
|
1798
|
-
onLegendSelectChanged?: Array<
|
|
1799
|
-
EventAction & {
|
|
1800
|
-
eventPropertyMapping?: {
|
|
1801
|
-
legendName: {
|
|
1802
|
-
type: 'string'
|
|
1803
|
-
path: string
|
|
1804
|
-
}
|
|
1805
|
-
legendSelected: {
|
|
1806
|
-
type: 'object'
|
|
1807
|
-
path: string
|
|
1808
|
-
}
|
|
1809
|
-
}
|
|
1810
|
-
}
|
|
1811
|
-
>
|
|
1630
|
+
onLegendSelectChanged?: Array<EventAction>
|
|
1812
1631
|
}
|
|
1813
1632
|
animation?: AnimationBasicEvents & {
|
|
1814
1633
|
onRender?: Animation
|
|
@@ -1854,7 +1673,7 @@ export type BrickItemsActionJumpPage = ActionWithParams & {
|
|
|
1854
1673
|
__actionName: 'BRICK_ITEMS_JUMP_PAGE'
|
|
1855
1674
|
params?: Array<{
|
|
1856
1675
|
input: 'pageIndex'
|
|
1857
|
-
value?: number | DataLink
|
|
1676
|
+
value?: number | DataLink | EventProperty
|
|
1858
1677
|
mapping?: string
|
|
1859
1678
|
}>
|
|
1860
1679
|
}
|
|
@@ -1864,7 +1683,7 @@ export type BrickItemsActionOpenDetail = ActionWithParams & {
|
|
|
1864
1683
|
__actionName: 'BRICK_ITEMS_OPEN_DETAIL'
|
|
1865
1684
|
params?: Array<{
|
|
1866
1685
|
input: 'detailIndex'
|
|
1867
|
-
value?: number | DataLink
|
|
1686
|
+
value?: number | DataLink | EventProperty
|
|
1868
1687
|
mapping?: string
|
|
1869
1688
|
}>
|
|
1870
1689
|
}
|
|
@@ -1880,37 +1699,37 @@ export type BrickItemsActionDynamicAnimation = ActionWithParams & {
|
|
|
1880
1699
|
params?: Array<
|
|
1881
1700
|
| {
|
|
1882
1701
|
input: 'mode'
|
|
1883
|
-
value?: 'list' | 'detail' | DataLink
|
|
1702
|
+
value?: 'list' | 'detail' | DataLink | EventProperty
|
|
1884
1703
|
mapping?: string
|
|
1885
1704
|
}
|
|
1886
1705
|
| {
|
|
1887
1706
|
input: 'brickId'
|
|
1888
|
-
value?: string | DataLink
|
|
1707
|
+
value?: string | DataLink | EventProperty
|
|
1889
1708
|
mapping?: string
|
|
1890
1709
|
}
|
|
1891
1710
|
| {
|
|
1892
1711
|
input: 'dataId'
|
|
1893
|
-
value?: string | DataLink
|
|
1712
|
+
value?: string | DataLink | EventProperty
|
|
1894
1713
|
mapping?: string
|
|
1895
1714
|
}
|
|
1896
1715
|
| {
|
|
1897
1716
|
input: 'index'
|
|
1898
|
-
value?: number | DataLink
|
|
1717
|
+
value?: number | DataLink | EventProperty
|
|
1899
1718
|
mapping?: string
|
|
1900
1719
|
}
|
|
1901
1720
|
| {
|
|
1902
1721
|
input: 'animationId'
|
|
1903
|
-
value?: string | DataLink | (() => Animation)
|
|
1722
|
+
value?: string | DataLink | (() => Animation) | EventProperty
|
|
1904
1723
|
mapping?: string
|
|
1905
1724
|
}
|
|
1906
1725
|
| {
|
|
1907
1726
|
input: 'animationType'
|
|
1908
|
-
value?: 'once' | 'loop' | DataLink
|
|
1727
|
+
value?: 'once' | 'loop' | DataLink | EventProperty
|
|
1909
1728
|
mapping?: string
|
|
1910
1729
|
}
|
|
1911
1730
|
| {
|
|
1912
1731
|
input: 'animationResetInitialValue'
|
|
1913
|
-
value?: boolean | DataLink
|
|
1732
|
+
value?: boolean | DataLink | EventProperty
|
|
1914
1733
|
mapping?: string
|
|
1915
1734
|
}
|
|
1916
1735
|
>
|
|
@@ -1922,22 +1741,22 @@ export type BrickItemsActionDynamicAnimationReset = ActionWithParams & {
|
|
|
1922
1741
|
params?: Array<
|
|
1923
1742
|
| {
|
|
1924
1743
|
input: 'mode'
|
|
1925
|
-
value?: 'list' | 'detail' | DataLink
|
|
1744
|
+
value?: 'list' | 'detail' | DataLink | EventProperty
|
|
1926
1745
|
mapping?: string
|
|
1927
1746
|
}
|
|
1928
1747
|
| {
|
|
1929
1748
|
input: 'brickId'
|
|
1930
|
-
value?: string | DataLink
|
|
1749
|
+
value?: string | DataLink | EventProperty
|
|
1931
1750
|
mapping?: string
|
|
1932
1751
|
}
|
|
1933
1752
|
| {
|
|
1934
1753
|
input: 'dataId'
|
|
1935
|
-
value?: string | DataLink
|
|
1754
|
+
value?: string | DataLink | EventProperty
|
|
1936
1755
|
mapping?: string
|
|
1937
1756
|
}
|
|
1938
1757
|
| {
|
|
1939
1758
|
input: 'index'
|
|
1940
|
-
value?: number | DataLink
|
|
1759
|
+
value?: number | DataLink | EventProperty
|
|
1941
1760
|
mapping?: string
|
|
1942
1761
|
}
|
|
1943
1762
|
>
|
|
@@ -1949,22 +1768,22 @@ export type BrickItemsActionDynamicAnimationStop = ActionWithParams & {
|
|
|
1949
1768
|
params?: Array<
|
|
1950
1769
|
| {
|
|
1951
1770
|
input: 'mode'
|
|
1952
|
-
value?: 'list' | 'detail' | DataLink
|
|
1771
|
+
value?: 'list' | 'detail' | DataLink | EventProperty
|
|
1953
1772
|
mapping?: string
|
|
1954
1773
|
}
|
|
1955
1774
|
| {
|
|
1956
1775
|
input: 'brickId'
|
|
1957
|
-
value?: string | DataLink
|
|
1776
|
+
value?: string | DataLink | EventProperty
|
|
1958
1777
|
mapping?: string
|
|
1959
1778
|
}
|
|
1960
1779
|
| {
|
|
1961
1780
|
input: 'dataId'
|
|
1962
|
-
value?: string | DataLink
|
|
1781
|
+
value?: string | DataLink | EventProperty
|
|
1963
1782
|
mapping?: string
|
|
1964
1783
|
}
|
|
1965
1784
|
| {
|
|
1966
1785
|
input: 'index'
|
|
1967
|
-
value?: number | DataLink
|
|
1786
|
+
value?: number | DataLink | EventProperty
|
|
1968
1787
|
mapping?: string
|
|
1969
1788
|
}
|
|
1970
1789
|
>
|
|
@@ -2223,95 +2042,17 @@ Default property:
|
|
|
2223
2042
|
| DataLink
|
|
2224
2043
|
events?: BrickBasicEventsForItem & {
|
|
2225
2044
|
/* Event on page render finished */
|
|
2226
|
-
onPageRender?: Array<
|
|
2227
|
-
EventActionForItem & {
|
|
2228
|
-
eventPropertyMapping?: {
|
|
2229
|
-
pageIndex: {
|
|
2230
|
-
type: 'number'
|
|
2231
|
-
path: string
|
|
2232
|
-
}
|
|
2233
|
-
pageSize: {
|
|
2234
|
-
type: 'number'
|
|
2235
|
-
path: string
|
|
2236
|
-
}
|
|
2237
|
-
}
|
|
2238
|
-
}
|
|
2239
|
-
>
|
|
2045
|
+
onPageRender?: Array<EventActionForItem>
|
|
2240
2046
|
/* Event on page change. */
|
|
2241
|
-
onPageChange?: Array<
|
|
2242
|
-
EventActionForItem & {
|
|
2243
|
-
eventPropertyMapping?: {
|
|
2244
|
-
pageIndex: {
|
|
2245
|
-
type: 'number'
|
|
2246
|
-
path: string
|
|
2247
|
-
}
|
|
2248
|
-
pageSize: {
|
|
2249
|
-
type: 'number'
|
|
2250
|
-
path: string
|
|
2251
|
-
}
|
|
2252
|
-
}
|
|
2253
|
-
}
|
|
2254
|
-
>
|
|
2047
|
+
onPageChange?: Array<EventActionForItem>
|
|
2255
2048
|
/* Event on page index out of bound. */
|
|
2256
|
-
onPageOutOfBound?: Array<
|
|
2257
|
-
EventActionForItem & {
|
|
2258
|
-
eventPropertyMapping?: {
|
|
2259
|
-
pageIndex: {
|
|
2260
|
-
type: 'number'
|
|
2261
|
-
path: string
|
|
2262
|
-
}
|
|
2263
|
-
pageSize: {
|
|
2264
|
-
type: 'number'
|
|
2265
|
-
path: string
|
|
2266
|
-
}
|
|
2267
|
-
}
|
|
2268
|
-
}
|
|
2269
|
-
>
|
|
2049
|
+
onPageOutOfBound?: Array<EventActionForItem>
|
|
2270
2050
|
/* Event on into `detail` mode */
|
|
2271
|
-
onIntoDetailMode?: Array<
|
|
2272
|
-
EventActionForItem & {
|
|
2273
|
-
eventPropertyMapping?: {
|
|
2274
|
-
pageIndex: {
|
|
2275
|
-
type: 'number'
|
|
2276
|
-
path: string
|
|
2277
|
-
}
|
|
2278
|
-
selectedItemIndex: {
|
|
2279
|
-
type: 'number'
|
|
2280
|
-
path: string
|
|
2281
|
-
}
|
|
2282
|
-
pageSize: {
|
|
2283
|
-
type: 'number'
|
|
2284
|
-
path: string
|
|
2285
|
-
}
|
|
2286
|
-
}
|
|
2287
|
-
}
|
|
2288
|
-
>
|
|
2051
|
+
onIntoDetailMode?: Array<EventActionForItem>
|
|
2289
2052
|
/* Event on into `list` mode. */
|
|
2290
|
-
onIntoListMode?: Array<
|
|
2291
|
-
EventActionForItem & {
|
|
2292
|
-
eventPropertyMapping?: {
|
|
2293
|
-
pageIndex: {
|
|
2294
|
-
type: 'number'
|
|
2295
|
-
path: string
|
|
2296
|
-
}
|
|
2297
|
-
pageSize: {
|
|
2298
|
-
type: 'number'
|
|
2299
|
-
path: string
|
|
2300
|
-
}
|
|
2301
|
-
}
|
|
2302
|
-
}
|
|
2303
|
-
>
|
|
2053
|
+
onIntoListMode?: Array<EventActionForItem>
|
|
2304
2054
|
/* Event on render error */
|
|
2305
|
-
onError?: Array<
|
|
2306
|
-
EventActionForItem & {
|
|
2307
|
-
eventPropertyMapping?: {
|
|
2308
|
-
errorMessage: {
|
|
2309
|
-
type: 'string'
|
|
2310
|
-
path: string
|
|
2311
|
-
}
|
|
2312
|
-
}
|
|
2313
|
-
}
|
|
2314
|
-
>
|
|
2055
|
+
onError?: Array<EventActionForItem>
|
|
2315
2056
|
}
|
|
2316
2057
|
outlets?: {
|
|
2317
2058
|
/* Catched error message */
|
|
@@ -2425,27 +2166,9 @@ Default property:
|
|
|
2425
2166
|
/* Event of the brick blur (Use TV Device with controller) */
|
|
2426
2167
|
onBlur?: Array<EventAction>
|
|
2427
2168
|
/* Event of the animation finished */
|
|
2428
|
-
onAnimationFinish?: Array<
|
|
2429
|
-
EventAction & {
|
|
2430
|
-
eventPropertyMapping?: {
|
|
2431
|
-
isCancelled: {
|
|
2432
|
-
type: 'boolean'
|
|
2433
|
-
path: string
|
|
2434
|
-
}
|
|
2435
|
-
}
|
|
2436
|
-
}
|
|
2437
|
-
>
|
|
2169
|
+
onAnimationFinish?: Array<EventAction>
|
|
2438
2170
|
/* Event of the uri on load failed */
|
|
2439
|
-
onAnimationFailure?: Array<
|
|
2440
|
-
EventAction & {
|
|
2441
|
-
eventPropertyMapping?: {
|
|
2442
|
-
errorMessage: {
|
|
2443
|
-
type: 'string'
|
|
2444
|
-
path: string
|
|
2445
|
-
}
|
|
2446
|
-
}
|
|
2447
|
-
}
|
|
2448
|
-
>
|
|
2171
|
+
onAnimationFailure?: Array<EventAction>
|
|
2449
2172
|
/* Event of the animation on loop */
|
|
2450
2173
|
onAnimationLoop?: Array<EventAction>
|
|
2451
2174
|
}
|
|
@@ -2495,22 +2218,22 @@ export type BrickRiveActionPlay = ActionWithParams & {
|
|
|
2495
2218
|
params?: Array<
|
|
2496
2219
|
| {
|
|
2497
2220
|
input: 'animationName'
|
|
2498
|
-
value?: string | DataLink
|
|
2221
|
+
value?: string | DataLink | EventProperty
|
|
2499
2222
|
mapping?: string
|
|
2500
2223
|
}
|
|
2501
2224
|
| {
|
|
2502
2225
|
input: 'loop'
|
|
2503
|
-
value?: 'auto' | 'oneShot' | 'loop' | 'pingPong' | DataLink
|
|
2226
|
+
value?: 'auto' | 'oneShot' | 'loop' | 'pingPong' | DataLink | EventProperty
|
|
2504
2227
|
mapping?: string
|
|
2505
2228
|
}
|
|
2506
2229
|
| {
|
|
2507
2230
|
input: 'direction'
|
|
2508
|
-
value?: 'auto' | 'backwards' | 'forwards' | DataLink
|
|
2231
|
+
value?: 'auto' | 'backwards' | 'forwards' | DataLink | EventProperty
|
|
2509
2232
|
mapping?: string
|
|
2510
2233
|
}
|
|
2511
2234
|
| {
|
|
2512
2235
|
input: 'isStateMachine'
|
|
2513
|
-
value?: boolean | DataLink
|
|
2236
|
+
value?: boolean | DataLink | EventProperty
|
|
2514
2237
|
mapping?: string
|
|
2515
2238
|
}
|
|
2516
2239
|
>
|
|
@@ -2537,12 +2260,12 @@ export type BrickRiveActionFireState = ActionWithParams & {
|
|
|
2537
2260
|
params?: Array<
|
|
2538
2261
|
| {
|
|
2539
2262
|
input: 'stateMachineName'
|
|
2540
|
-
value?: string | DataLink
|
|
2263
|
+
value?: string | DataLink | EventProperty
|
|
2541
2264
|
mapping?: string
|
|
2542
2265
|
}
|
|
2543
2266
|
| {
|
|
2544
2267
|
input: 'inputName'
|
|
2545
|
-
value?: string | DataLink
|
|
2268
|
+
value?: string | DataLink | EventProperty
|
|
2546
2269
|
mapping?: string
|
|
2547
2270
|
}
|
|
2548
2271
|
>
|
|
@@ -2554,17 +2277,17 @@ export type BrickRiveActionSetInputState = ActionWithParams & {
|
|
|
2554
2277
|
params?: Array<
|
|
2555
2278
|
| {
|
|
2556
2279
|
input: 'stateMachineName'
|
|
2557
|
-
value?: string | DataLink
|
|
2280
|
+
value?: string | DataLink | EventProperty
|
|
2558
2281
|
mapping?: string
|
|
2559
2282
|
}
|
|
2560
2283
|
| {
|
|
2561
2284
|
input: 'inputName'
|
|
2562
|
-
value?: string | DataLink
|
|
2285
|
+
value?: string | DataLink | EventProperty
|
|
2563
2286
|
mapping?: string
|
|
2564
2287
|
}
|
|
2565
2288
|
| {
|
|
2566
2289
|
input: 'value'
|
|
2567
|
-
value?: any
|
|
2290
|
+
value?: any | EventProperty
|
|
2568
2291
|
mapping?: string
|
|
2569
2292
|
}
|
|
2570
2293
|
>
|
|
@@ -2576,12 +2299,12 @@ export type BrickRiveActionSetTextRunValue = ActionWithParams & {
|
|
|
2576
2299
|
params?: Array<
|
|
2577
2300
|
| {
|
|
2578
2301
|
input: 'textRunName'
|
|
2579
|
-
value?: string | DataLink
|
|
2302
|
+
value?: string | DataLink | EventProperty
|
|
2580
2303
|
mapping?: string
|
|
2581
2304
|
}
|
|
2582
2305
|
| {
|
|
2583
2306
|
input: 'value'
|
|
2584
|
-
value?: any
|
|
2307
|
+
value?: any | EventProperty
|
|
2585
2308
|
mapping?: string
|
|
2586
2309
|
}
|
|
2587
2310
|
>
|
|
@@ -2635,133 +2358,21 @@ Default property:
|
|
|
2635
2358
|
}
|
|
2636
2359
|
events?: BrickBasicEvents & {
|
|
2637
2360
|
/* Event of animation play */
|
|
2638
|
-
onPlay?: Array<
|
|
2639
|
-
EventAction & {
|
|
2640
|
-
eventPropertyMapping?: {
|
|
2641
|
-
animationName: {
|
|
2642
|
-
type: 'string'
|
|
2643
|
-
path: string
|
|
2644
|
-
}
|
|
2645
|
-
isStateMachine: {
|
|
2646
|
-
type: 'bool'
|
|
2647
|
-
path: string
|
|
2648
|
-
}
|
|
2649
|
-
}
|
|
2650
|
-
}
|
|
2651
|
-
>
|
|
2361
|
+
onPlay?: Array<EventAction>
|
|
2652
2362
|
/* Event of animation pause */
|
|
2653
|
-
onPause?: Array<
|
|
2654
|
-
EventAction & {
|
|
2655
|
-
eventPropertyMapping?: {
|
|
2656
|
-
animationName: {
|
|
2657
|
-
type: 'string'
|
|
2658
|
-
path: string
|
|
2659
|
-
}
|
|
2660
|
-
isStateMachine: {
|
|
2661
|
-
type: 'bool'
|
|
2662
|
-
path: string
|
|
2663
|
-
}
|
|
2664
|
-
}
|
|
2665
|
-
}
|
|
2666
|
-
>
|
|
2363
|
+
onPause?: Array<EventAction>
|
|
2667
2364
|
/* Event of animation stop */
|
|
2668
|
-
onStop?: Array<
|
|
2669
|
-
EventAction & {
|
|
2670
|
-
eventPropertyMapping?: {
|
|
2671
|
-
animationName: {
|
|
2672
|
-
type: 'string'
|
|
2673
|
-
path: string
|
|
2674
|
-
}
|
|
2675
|
-
isStateMachine: {
|
|
2676
|
-
type: 'bool'
|
|
2677
|
-
path: string
|
|
2678
|
-
}
|
|
2679
|
-
}
|
|
2680
|
-
}
|
|
2681
|
-
>
|
|
2365
|
+
onStop?: Array<EventAction>
|
|
2682
2366
|
/* Event of animation loop end */
|
|
2683
|
-
onLoopEnd?: Array<
|
|
2684
|
-
EventAction & {
|
|
2685
|
-
eventPropertyMapping?: {
|
|
2686
|
-
animationName: {
|
|
2687
|
-
type: 'string'
|
|
2688
|
-
path: string
|
|
2689
|
-
}
|
|
2690
|
-
isStateMachine: {
|
|
2691
|
-
type: 'bool'
|
|
2692
|
-
path: string
|
|
2693
|
-
}
|
|
2694
|
-
}
|
|
2695
|
-
}
|
|
2696
|
-
>
|
|
2367
|
+
onLoopEnd?: Array<EventAction>
|
|
2697
2368
|
/* Event of state changed */
|
|
2698
|
-
onStateChanged?: Array<
|
|
2699
|
-
EventAction & {
|
|
2700
|
-
eventPropertyMapping?: {
|
|
2701
|
-
stateMachineName: {
|
|
2702
|
-
type: 'string'
|
|
2703
|
-
path: string
|
|
2704
|
-
}
|
|
2705
|
-
stateName: {
|
|
2706
|
-
type: 'string'
|
|
2707
|
-
path: string
|
|
2708
|
-
}
|
|
2709
|
-
}
|
|
2710
|
-
}
|
|
2711
|
-
>
|
|
2369
|
+
onStateChanged?: Array<EventAction>
|
|
2712
2370
|
/* Event of error */
|
|
2713
|
-
onError?: Array<
|
|
2714
|
-
EventAction & {
|
|
2715
|
-
eventPropertyMapping?: {
|
|
2716
|
-
error: {
|
|
2717
|
-
type: 'string'
|
|
2718
|
-
path: string
|
|
2719
|
-
}
|
|
2720
|
-
}
|
|
2721
|
-
}
|
|
2722
|
-
>
|
|
2371
|
+
onError?: Array<EventAction>
|
|
2723
2372
|
/* Event of Rive general event received */
|
|
2724
|
-
onRiveGeneralEvent?: Array<
|
|
2725
|
-
EventAction & {
|
|
2726
|
-
eventPropertyMapping?: {
|
|
2727
|
-
eventName: {
|
|
2728
|
-
type: 'string'
|
|
2729
|
-
path: string
|
|
2730
|
-
}
|
|
2731
|
-
eventDelay: {
|
|
2732
|
-
type: 'number'
|
|
2733
|
-
path: string
|
|
2734
|
-
}
|
|
2735
|
-
eventProperties: {
|
|
2736
|
-
type: 'object'
|
|
2737
|
-
path: string
|
|
2738
|
-
}
|
|
2739
|
-
}
|
|
2740
|
-
}
|
|
2741
|
-
>
|
|
2373
|
+
onRiveGeneralEvent?: Array<EventAction>
|
|
2742
2374
|
/* Event of Rive open-url event received */
|
|
2743
|
-
onRiveOpenUrlEvent?: Array<
|
|
2744
|
-
EventAction & {
|
|
2745
|
-
eventPropertyMapping?: {
|
|
2746
|
-
eventName: {
|
|
2747
|
-
type: 'string'
|
|
2748
|
-
path: string
|
|
2749
|
-
}
|
|
2750
|
-
eventDelay: {
|
|
2751
|
-
type: 'number'
|
|
2752
|
-
path: string
|
|
2753
|
-
}
|
|
2754
|
-
eventUrl: {
|
|
2755
|
-
type: 'string'
|
|
2756
|
-
path: string
|
|
2757
|
-
}
|
|
2758
|
-
eventTarget: {
|
|
2759
|
-
type: 'string'
|
|
2760
|
-
path: string
|
|
2761
|
-
}
|
|
2762
|
-
}
|
|
2763
|
-
}
|
|
2764
|
-
>
|
|
2375
|
+
onRiveOpenUrlEvent?: Array<EventAction>
|
|
2765
2376
|
}
|
|
2766
2377
|
animation?: AnimationBasicEvents & {
|
|
2767
2378
|
onPlay?: Animation
|
|
@@ -2802,7 +2413,7 @@ export type BrickWebViewActionInjectJavascript = ActionWithParams & {
|
|
|
2802
2413
|
__actionName: 'BRICK_WEBVIEW_INJECT_JAVASCRIPT'
|
|
2803
2414
|
params?: Array<{
|
|
2804
2415
|
input: 'javascriptCode'
|
|
2805
|
-
value?: string | DataLink
|
|
2416
|
+
value?: string | DataLink | EventProperty
|
|
2806
2417
|
mapping?: string
|
|
2807
2418
|
}>
|
|
2808
2419
|
}
|
|
@@ -2883,38 +2494,11 @@ Default property:
|
|
|
2883
2494
|
}
|
|
2884
2495
|
events?: BrickBasicEvents & {
|
|
2885
2496
|
/* Event of the WebView on load */
|
|
2886
|
-
onLoad?: Array<
|
|
2887
|
-
EventAction & {
|
|
2888
|
-
eventPropertyMapping?: {
|
|
2889
|
-
loadedUrl: {
|
|
2890
|
-
type: 'string'
|
|
2891
|
-
path: string
|
|
2892
|
-
}
|
|
2893
|
-
}
|
|
2894
|
-
}
|
|
2895
|
-
>
|
|
2497
|
+
onLoad?: Array<EventAction>
|
|
2896
2498
|
/* Event when the WebView load fails */
|
|
2897
|
-
onError?: Array<
|
|
2898
|
-
EventAction & {
|
|
2899
|
-
eventPropertyMapping?: {
|
|
2900
|
-
error: {
|
|
2901
|
-
type: 'string'
|
|
2902
|
-
path: string
|
|
2903
|
-
}
|
|
2904
|
-
}
|
|
2905
|
-
}
|
|
2906
|
-
>
|
|
2499
|
+
onError?: Array<EventAction>
|
|
2907
2500
|
/* Event of the webview on message by `window.ReactNativeWebView.postMessage` on you're injected javascript code */
|
|
2908
|
-
onMessage?: Array<
|
|
2909
|
-
EventAction & {
|
|
2910
|
-
eventPropertyMapping?: {
|
|
2911
|
-
message: {
|
|
2912
|
-
type: 'string'
|
|
2913
|
-
path: string
|
|
2914
|
-
}
|
|
2915
|
-
}
|
|
2916
|
-
}
|
|
2917
|
-
>
|
|
2501
|
+
onMessage?: Array<EventAction>
|
|
2918
2502
|
}
|
|
2919
2503
|
animation?: AnimationBasicEvents & {
|
|
2920
2504
|
onLoad?: Animation
|
|
@@ -2951,22 +2535,22 @@ export type BrickCameraActionTakePicture = ActionWithParams & {
|
|
|
2951
2535
|
params?: Array<
|
|
2952
2536
|
| {
|
|
2953
2537
|
input: 'width'
|
|
2954
|
-
value?: number | DataLink
|
|
2538
|
+
value?: number | DataLink | EventProperty
|
|
2955
2539
|
mapping?: string
|
|
2956
2540
|
}
|
|
2957
2541
|
| {
|
|
2958
2542
|
input: 'quality'
|
|
2959
|
-
value?: string | DataLink
|
|
2543
|
+
value?: string | DataLink | EventProperty
|
|
2960
2544
|
mapping?: string
|
|
2961
2545
|
}
|
|
2962
2546
|
| {
|
|
2963
2547
|
input: 'base64'
|
|
2964
|
-
value?: boolean | DataLink
|
|
2548
|
+
value?: boolean | DataLink | EventProperty
|
|
2965
2549
|
mapping?: string
|
|
2966
2550
|
}
|
|
2967
2551
|
| {
|
|
2968
2552
|
input: 'mirrorImage'
|
|
2969
|
-
value?: boolean | DataLink
|
|
2553
|
+
value?: boolean | DataLink | EventProperty
|
|
2970
2554
|
mapping?: string
|
|
2971
2555
|
}
|
|
2972
2556
|
>
|
|
@@ -2978,27 +2562,27 @@ export type BrickCameraActionRecord = ActionWithParams & {
|
|
|
2978
2562
|
params?: Array<
|
|
2979
2563
|
| {
|
|
2980
2564
|
input: 'quality'
|
|
2981
|
-
value?: '4:3' | '288p' | '480p' | '720p' | '1080p' | '2160p' | DataLink
|
|
2565
|
+
value?: '4:3' | '288p' | '480p' | '720p' | '1080p' | '2160p' | DataLink | EventProperty
|
|
2982
2566
|
mapping?: string
|
|
2983
2567
|
}
|
|
2984
2568
|
| {
|
|
2985
2569
|
input: 'mirrorVideo'
|
|
2986
|
-
value?: boolean | DataLink
|
|
2570
|
+
value?: boolean | DataLink | EventProperty
|
|
2987
2571
|
mapping?: string
|
|
2988
2572
|
}
|
|
2989
2573
|
| {
|
|
2990
2574
|
input: 'videoBitrate'
|
|
2991
|
-
value?: string | DataLink
|
|
2575
|
+
value?: string | DataLink | EventProperty
|
|
2992
2576
|
mapping?: string
|
|
2993
2577
|
}
|
|
2994
2578
|
| {
|
|
2995
2579
|
input: 'maxDuration'
|
|
2996
|
-
value?: number | DataLink
|
|
2580
|
+
value?: number | DataLink | EventProperty
|
|
2997
2581
|
mapping?: string
|
|
2998
2582
|
}
|
|
2999
2583
|
| {
|
|
3000
2584
|
input: 'maxFileSize'
|
|
3001
|
-
value?: string | DataLink
|
|
2585
|
+
value?: string | DataLink | EventProperty
|
|
3002
2586
|
mapping?: string
|
|
3003
2587
|
}
|
|
3004
2588
|
>
|
|
@@ -3070,100 +2654,19 @@ Default property:
|
|
|
3070
2654
|
}
|
|
3071
2655
|
events?: BrickBasicEvents & {
|
|
3072
2656
|
/* Event of the Camera state change */
|
|
3073
|
-
stateChange?: Array<
|
|
3074
|
-
EventAction & {
|
|
3075
|
-
eventPropertyMapping?: {
|
|
3076
|
-
status: {
|
|
3077
|
-
type: 'string'
|
|
3078
|
-
path: string
|
|
3079
|
-
}
|
|
3080
|
-
recordAudioPermStatus: {
|
|
3081
|
-
type: 'string'
|
|
3082
|
-
path: string
|
|
3083
|
-
}
|
|
3084
|
-
}
|
|
3085
|
-
}
|
|
3086
|
-
>
|
|
2657
|
+
stateChange?: Array<EventAction>
|
|
3087
2658
|
/* Event of the Camera record start */
|
|
3088
2659
|
recordStart?: Array<EventAction>
|
|
3089
2660
|
/* Event of the Camera record end */
|
|
3090
2661
|
recordEnd?: Array<EventAction>
|
|
3091
2662
|
/* Event of the Camera barcode read */
|
|
3092
|
-
barcodeRead?: Array<
|
|
3093
|
-
EventAction & {
|
|
3094
|
-
eventPropertyMapping?: {
|
|
3095
|
-
barcodeType: {
|
|
3096
|
-
type: 'string'
|
|
3097
|
-
path: string
|
|
3098
|
-
}
|
|
3099
|
-
barcodeData: {
|
|
3100
|
-
type: 'string'
|
|
3101
|
-
path: string
|
|
3102
|
-
}
|
|
3103
|
-
barcodeRawData: {
|
|
3104
|
-
type: 'string'
|
|
3105
|
-
path: string
|
|
3106
|
-
}
|
|
3107
|
-
barcodeX: {
|
|
3108
|
-
type: 'number'
|
|
3109
|
-
path: string
|
|
3110
|
-
}
|
|
3111
|
-
barcodeY: {
|
|
3112
|
-
type: 'number'
|
|
3113
|
-
path: string
|
|
3114
|
-
}
|
|
3115
|
-
barcodeWidth: {
|
|
3116
|
-
type: 'number'
|
|
3117
|
-
path: string
|
|
3118
|
-
}
|
|
3119
|
-
barcodeHeight: {
|
|
3120
|
-
type: 'number'
|
|
3121
|
-
path: string
|
|
3122
|
-
}
|
|
3123
|
-
}
|
|
3124
|
-
}
|
|
3125
|
-
>
|
|
2663
|
+
barcodeRead?: Array<EventAction>
|
|
3126
2664
|
/* Event of the Camera picture taken */
|
|
3127
|
-
pictureTaken?: Array<
|
|
3128
|
-
EventAction & {
|
|
3129
|
-
eventPropertyMapping?: {
|
|
3130
|
-
width: {
|
|
3131
|
-
type: 'number'
|
|
3132
|
-
path: string
|
|
3133
|
-
}
|
|
3134
|
-
height: {
|
|
3135
|
-
type: 'number'
|
|
3136
|
-
path: string
|
|
3137
|
-
}
|
|
3138
|
-
uri: {
|
|
3139
|
-
type: 'string'
|
|
3140
|
-
path: string
|
|
3141
|
-
}
|
|
3142
|
-
}
|
|
3143
|
-
}
|
|
3144
|
-
>
|
|
2665
|
+
pictureTaken?: Array<EventAction>
|
|
3145
2666
|
/* Event of the Camera record finished */
|
|
3146
|
-
recordFinish?: Array<
|
|
3147
|
-
EventAction & {
|
|
3148
|
-
eventPropertyMapping?: {
|
|
3149
|
-
uri: {
|
|
3150
|
-
type: 'string'
|
|
3151
|
-
path: string
|
|
3152
|
-
}
|
|
3153
|
-
}
|
|
3154
|
-
}
|
|
3155
|
-
>
|
|
2667
|
+
recordFinish?: Array<EventAction>
|
|
3156
2668
|
/* Event of the Camera mount error */
|
|
3157
|
-
mountError?: Array<
|
|
3158
|
-
EventAction & {
|
|
3159
|
-
eventPropertyMapping?: {
|
|
3160
|
-
mountError: {
|
|
3161
|
-
type: 'string'
|
|
3162
|
-
path: string
|
|
3163
|
-
}
|
|
3164
|
-
}
|
|
3165
|
-
}
|
|
3166
|
-
>
|
|
2669
|
+
mountError?: Array<EventAction>
|
|
3167
2670
|
}
|
|
3168
2671
|
outlets?: {
|
|
3169
2672
|
/* Picture taken result */
|
|
@@ -3260,7 +2763,7 @@ export type Brick3DViewerActionAnimationPlay = ActionWithParams & {
|
|
|
3260
2763
|
__actionName: 'BRICK_3D_VIEWER_ANIMATION_PLAY'
|
|
3261
2764
|
params?: Array<{
|
|
3262
2765
|
input: 'objectIndex'
|
|
3263
|
-
value?: number | DataLink
|
|
2766
|
+
value?: number | DataLink | EventProperty
|
|
3264
2767
|
mapping?: string
|
|
3265
2768
|
}>
|
|
3266
2769
|
}
|
|
@@ -3270,7 +2773,7 @@ export type Brick3DViewerActionAnimationPause = ActionWithParams & {
|
|
|
3270
2773
|
__actionName: 'BRICK_3D_VIEWER_ANIMATION_PAUSE'
|
|
3271
2774
|
params?: Array<{
|
|
3272
2775
|
input: 'objectIndex'
|
|
3273
|
-
value?: number | DataLink
|
|
2776
|
+
value?: number | DataLink | EventProperty
|
|
3274
2777
|
mapping?: string
|
|
3275
2778
|
}>
|
|
3276
2779
|
}
|
|
@@ -3281,12 +2784,12 @@ export type Brick3DViewerActionAnimationGoto = ActionWithParams & {
|
|
|
3281
2784
|
params?: Array<
|
|
3282
2785
|
| {
|
|
3283
2786
|
input: 'objectIndex'
|
|
3284
|
-
value?: number | DataLink
|
|
2787
|
+
value?: number | DataLink | EventProperty
|
|
3285
2788
|
mapping?: string
|
|
3286
2789
|
}
|
|
3287
2790
|
| {
|
|
3288
2791
|
input: 'animationProgress'
|
|
3289
|
-
value?: number | DataLink
|
|
2792
|
+
value?: number | DataLink | EventProperty
|
|
3290
2793
|
mapping?: string
|
|
3291
2794
|
}
|
|
3292
2795
|
>
|
|
@@ -3404,61 +2907,13 @@ Default property:
|
|
|
3404
2907
|
}
|
|
3405
2908
|
events?: BrickBasicEvents & {
|
|
3406
2909
|
/* Event of error occurred */
|
|
3407
|
-
onError?: Array<
|
|
3408
|
-
EventAction & {
|
|
3409
|
-
eventPropertyMapping?: {
|
|
3410
|
-
errorMessage: {
|
|
3411
|
-
type: 'string'
|
|
3412
|
-
path: string
|
|
3413
|
-
}
|
|
3414
|
-
}
|
|
3415
|
-
}
|
|
3416
|
-
>
|
|
2910
|
+
onError?: Array<EventAction>
|
|
3417
2911
|
/* Event of object changed position or rotation */
|
|
3418
|
-
onChange?: Array<
|
|
3419
|
-
EventAction & {
|
|
3420
|
-
eventPropertyMapping?: {
|
|
3421
|
-
objectIndex: {
|
|
3422
|
-
type: 'number'
|
|
3423
|
-
path: string
|
|
3424
|
-
}
|
|
3425
|
-
objectPosition: {
|
|
3426
|
-
type: 'object'
|
|
3427
|
-
path: string
|
|
3428
|
-
}
|
|
3429
|
-
objectRotation: {
|
|
3430
|
-
type: 'object'
|
|
3431
|
-
path: string
|
|
3432
|
-
}
|
|
3433
|
-
}
|
|
3434
|
-
}
|
|
3435
|
-
>
|
|
2912
|
+
onChange?: Array<EventAction>
|
|
3436
2913
|
/* Event of object selected */
|
|
3437
|
-
onSelectChange?: Array<
|
|
3438
|
-
EventAction & {
|
|
3439
|
-
eventPropertyMapping?: {
|
|
3440
|
-
objectIndex: {
|
|
3441
|
-
type: 'number'
|
|
3442
|
-
path: string
|
|
3443
|
-
}
|
|
3444
|
-
}
|
|
3445
|
-
}
|
|
3446
|
-
>
|
|
2914
|
+
onSelectChange?: Array<EventAction>
|
|
3447
2915
|
/* Event of object collision occurred */
|
|
3448
|
-
onCollision?: Array<
|
|
3449
|
-
EventAction & {
|
|
3450
|
-
eventPropertyMapping?: {
|
|
3451
|
-
objectIndex: {
|
|
3452
|
-
type: 'number'
|
|
3453
|
-
path: string
|
|
3454
|
-
}
|
|
3455
|
-
collisionType: {
|
|
3456
|
-
type: 'string'
|
|
3457
|
-
path: string
|
|
3458
|
-
}
|
|
3459
|
-
}
|
|
3460
|
-
}
|
|
3461
|
-
>
|
|
2916
|
+
onCollision?: Array<EventAction>
|
|
3462
2917
|
}
|
|
3463
2918
|
animation?: AnimationBasicEvents & {
|
|
3464
2919
|
onError?: Animation
|
|
@@ -3645,88 +3100,21 @@ Default property:
|
|
|
3645
3100
|
/* Event of the brick blur (Use TV Device with controller) */
|
|
3646
3101
|
generativeMediaOnBlur?: Array<EventAction>
|
|
3647
3102
|
/* Event when media generation succeeds */
|
|
3648
|
-
onSuccess?: Array<
|
|
3649
|
-
EventAction & {
|
|
3650
|
-
eventPropertyMapping?: {
|
|
3651
|
-
url: {
|
|
3652
|
-
type: 'string'
|
|
3653
|
-
path: string
|
|
3654
|
-
}
|
|
3655
|
-
}
|
|
3656
|
-
}
|
|
3657
|
-
>
|
|
3103
|
+
onSuccess?: Array<EventAction>
|
|
3658
3104
|
/* Event when media generation fails */
|
|
3659
|
-
onError?: Array<
|
|
3660
|
-
EventAction & {
|
|
3661
|
-
eventPropertyMapping?: {
|
|
3662
|
-
error: {
|
|
3663
|
-
type: 'string'
|
|
3664
|
-
path: string
|
|
3665
|
-
}
|
|
3666
|
-
}
|
|
3667
|
-
}
|
|
3668
|
-
>
|
|
3105
|
+
onError?: Array<EventAction>
|
|
3669
3106
|
/* Event when media prompt request starts */
|
|
3670
|
-
promptStart?: Array<
|
|
3671
|
-
EventAction & {
|
|
3672
|
-
eventPropertyMapping?: {
|
|
3673
|
-
prompt: {
|
|
3674
|
-
type: 'string'
|
|
3675
|
-
path: string
|
|
3676
|
-
}
|
|
3677
|
-
}
|
|
3678
|
-
}
|
|
3679
|
-
>
|
|
3107
|
+
promptStart?: Array<EventAction>
|
|
3680
3108
|
/* Event when media prompt request succeeds */
|
|
3681
|
-
promptSuccess?: Array<
|
|
3682
|
-
EventAction & {
|
|
3683
|
-
eventPropertyMapping?: {
|
|
3684
|
-
url: {
|
|
3685
|
-
type: 'string'
|
|
3686
|
-
path: string
|
|
3687
|
-
}
|
|
3688
|
-
}
|
|
3689
|
-
}
|
|
3690
|
-
>
|
|
3109
|
+
promptSuccess?: Array<EventAction>
|
|
3691
3110
|
/* Event when media prompt request fails */
|
|
3692
|
-
promptError?: Array<
|
|
3693
|
-
EventAction & {
|
|
3694
|
-
eventPropertyMapping?: {
|
|
3695
|
-
error: {
|
|
3696
|
-
type: 'string'
|
|
3697
|
-
path: string
|
|
3698
|
-
}
|
|
3699
|
-
}
|
|
3700
|
-
}
|
|
3701
|
-
>
|
|
3111
|
+
promptError?: Array<EventAction>
|
|
3702
3112
|
/* Event when media loading starts */
|
|
3703
|
-
loadStart?: Array<
|
|
3704
|
-
EventAction & {
|
|
3705
|
-
eventPropertyMapping?: {}
|
|
3706
|
-
}
|
|
3707
|
-
>
|
|
3113
|
+
loadStart?: Array<EventAction>
|
|
3708
3114
|
/* Event when media loading succeeds */
|
|
3709
|
-
loadSuccess?: Array<
|
|
3710
|
-
EventAction & {
|
|
3711
|
-
eventPropertyMapping?: {
|
|
3712
|
-
url: {
|
|
3713
|
-
type: 'string'
|
|
3714
|
-
path: string
|
|
3715
|
-
}
|
|
3716
|
-
}
|
|
3717
|
-
}
|
|
3718
|
-
>
|
|
3115
|
+
loadSuccess?: Array<EventAction>
|
|
3719
3116
|
/* Event when media loading fails */
|
|
3720
|
-
loadError?: Array<
|
|
3721
|
-
EventAction & {
|
|
3722
|
-
eventPropertyMapping?: {
|
|
3723
|
-
error: {
|
|
3724
|
-
type: 'string'
|
|
3725
|
-
path: string
|
|
3726
|
-
}
|
|
3727
|
-
}
|
|
3728
|
-
}
|
|
3729
|
-
>
|
|
3117
|
+
loadError?: Array<EventAction>
|
|
3730
3118
|
}
|
|
3731
3119
|
outlets?: {
|
|
3732
3120
|
/* Brick is pressing */
|