@fugood/bricks-project 2.21.0 → 2.21.2
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 +64 -0
- package/compile/index.ts +14 -2
- package/index.ts +1 -0
- package/package.json +3 -3
- package/tools/mcp-server.ts +86 -0
- package/tools/postinstall.ts +54 -2
- package/tools/preview-main.mjs +40 -2
- package/tools/preview.ts +44 -23
- package/types/bricks.ts +136 -746
- package/types/common.ts +5 -6
- package/types/generators.ts +1067 -1684
- package/types/system.ts +169 -70
- package/utils/event-props.ts +823 -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
|
>
|
|
@@ -1306,6 +1227,8 @@ Default property:
|
|
|
1306
1227
|
}
|
|
1307
1228
|
>
|
|
1308
1229
|
| DataLink
|
|
1230
|
+
/* Multiple slideshow media path lists to combine (Array of path arrays) */
|
|
1231
|
+
pathsList?: Array<Array<any> | DataLink | DataLink> | DataLink
|
|
1309
1232
|
/* Loop the slideshow */
|
|
1310
1233
|
loop?: boolean | DataLink
|
|
1311
1234
|
/* Shuffle the slideshow */
|
|
@@ -1347,65 +1270,13 @@ Default property:
|
|
|
1347
1270
|
}
|
|
1348
1271
|
events?: BrickBasicEvents & {
|
|
1349
1272
|
/* 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
|
-
>
|
|
1273
|
+
changeStart?: Array<EventAction>
|
|
1364
1274
|
/* 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
|
-
>
|
|
1275
|
+
changeEnd?: Array<EventAction>
|
|
1379
1276
|
/* 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
|
-
>
|
|
1277
|
+
contentChange?: Array<EventAction>
|
|
1394
1278
|
/* 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
|
-
>
|
|
1279
|
+
roundEnd?: Array<EventAction>
|
|
1409
1280
|
/* Event of the slideshow on load */
|
|
1410
1281
|
mediaOnLoad?: Array<EventAction>
|
|
1411
1282
|
}
|
|
@@ -1446,27 +1317,27 @@ export type BrickChartActionDataHighlight = ActionWithParams & {
|
|
|
1446
1317
|
params?: Array<
|
|
1447
1318
|
| {
|
|
1448
1319
|
input: 'seriesName'
|
|
1449
|
-
value?: string | DataLink
|
|
1320
|
+
value?: string | DataLink | EventProperty
|
|
1450
1321
|
mapping?: string
|
|
1451
1322
|
}
|
|
1452
1323
|
| {
|
|
1453
1324
|
input: 'seriesId'
|
|
1454
|
-
value?: string | DataLink
|
|
1325
|
+
value?: string | DataLink | EventProperty
|
|
1455
1326
|
mapping?: string
|
|
1456
1327
|
}
|
|
1457
1328
|
| {
|
|
1458
1329
|
input: 'seriesIndex'
|
|
1459
|
-
value?: number | DataLink
|
|
1330
|
+
value?: number | DataLink | EventProperty
|
|
1460
1331
|
mapping?: string
|
|
1461
1332
|
}
|
|
1462
1333
|
| {
|
|
1463
1334
|
input: 'dataIndex'
|
|
1464
|
-
value?: number | DataLink
|
|
1335
|
+
value?: number | DataLink | EventProperty
|
|
1465
1336
|
mapping?: string
|
|
1466
1337
|
}
|
|
1467
1338
|
| {
|
|
1468
1339
|
input: 'name'
|
|
1469
|
-
value?: string | DataLink
|
|
1340
|
+
value?: string | DataLink | EventProperty
|
|
1470
1341
|
mapping?: string
|
|
1471
1342
|
}
|
|
1472
1343
|
>
|
|
@@ -1478,27 +1349,27 @@ export type BrickChartActionDataDownplay = ActionWithParams & {
|
|
|
1478
1349
|
params?: Array<
|
|
1479
1350
|
| {
|
|
1480
1351
|
input: 'seriesName'
|
|
1481
|
-
value?: string | DataLink
|
|
1352
|
+
value?: string | DataLink | EventProperty
|
|
1482
1353
|
mapping?: string
|
|
1483
1354
|
}
|
|
1484
1355
|
| {
|
|
1485
1356
|
input: 'seriesId'
|
|
1486
|
-
value?: string | DataLink
|
|
1357
|
+
value?: string | DataLink | EventProperty
|
|
1487
1358
|
mapping?: string
|
|
1488
1359
|
}
|
|
1489
1360
|
| {
|
|
1490
1361
|
input: 'seriesIndex'
|
|
1491
|
-
value?: number | DataLink
|
|
1362
|
+
value?: number | DataLink | EventProperty
|
|
1492
1363
|
mapping?: string
|
|
1493
1364
|
}
|
|
1494
1365
|
| {
|
|
1495
1366
|
input: 'dataIndex'
|
|
1496
|
-
value?: number | DataLink
|
|
1367
|
+
value?: number | DataLink | EventProperty
|
|
1497
1368
|
mapping?: string
|
|
1498
1369
|
}
|
|
1499
1370
|
| {
|
|
1500
1371
|
input: 'name'
|
|
1501
|
-
value?: string | DataLink
|
|
1372
|
+
value?: string | DataLink | EventProperty
|
|
1502
1373
|
mapping?: string
|
|
1503
1374
|
}
|
|
1504
1375
|
>
|
|
@@ -1510,27 +1381,27 @@ export type BrickChartActionDataSelect = ActionWithParams & {
|
|
|
1510
1381
|
params?: Array<
|
|
1511
1382
|
| {
|
|
1512
1383
|
input: 'seriesName'
|
|
1513
|
-
value?: string | DataLink
|
|
1384
|
+
value?: string | DataLink | EventProperty
|
|
1514
1385
|
mapping?: string
|
|
1515
1386
|
}
|
|
1516
1387
|
| {
|
|
1517
1388
|
input: 'seriesId'
|
|
1518
|
-
value?: string | DataLink
|
|
1389
|
+
value?: string | DataLink | EventProperty
|
|
1519
1390
|
mapping?: string
|
|
1520
1391
|
}
|
|
1521
1392
|
| {
|
|
1522
1393
|
input: 'seriesIndex'
|
|
1523
|
-
value?: number | DataLink
|
|
1394
|
+
value?: number | DataLink | EventProperty
|
|
1524
1395
|
mapping?: string
|
|
1525
1396
|
}
|
|
1526
1397
|
| {
|
|
1527
1398
|
input: 'dataIndex'
|
|
1528
|
-
value?: number | DataLink
|
|
1399
|
+
value?: number | DataLink | EventProperty
|
|
1529
1400
|
mapping?: string
|
|
1530
1401
|
}
|
|
1531
1402
|
| {
|
|
1532
1403
|
input: 'name'
|
|
1533
|
-
value?: string | DataLink
|
|
1404
|
+
value?: string | DataLink | EventProperty
|
|
1534
1405
|
mapping?: string
|
|
1535
1406
|
}
|
|
1536
1407
|
>
|
|
@@ -1542,27 +1413,27 @@ export type BrickChartActionDataUnselect = ActionWithParams & {
|
|
|
1542
1413
|
params?: Array<
|
|
1543
1414
|
| {
|
|
1544
1415
|
input: 'seriesName'
|
|
1545
|
-
value?: string | DataLink
|
|
1416
|
+
value?: string | DataLink | EventProperty
|
|
1546
1417
|
mapping?: string
|
|
1547
1418
|
}
|
|
1548
1419
|
| {
|
|
1549
1420
|
input: 'seriesId'
|
|
1550
|
-
value?: string | DataLink
|
|
1421
|
+
value?: string | DataLink | EventProperty
|
|
1551
1422
|
mapping?: string
|
|
1552
1423
|
}
|
|
1553
1424
|
| {
|
|
1554
1425
|
input: 'seriesIndex'
|
|
1555
|
-
value?: number | DataLink
|
|
1426
|
+
value?: number | DataLink | EventProperty
|
|
1556
1427
|
mapping?: string
|
|
1557
1428
|
}
|
|
1558
1429
|
| {
|
|
1559
1430
|
input: 'dataIndex'
|
|
1560
|
-
value?: number | DataLink
|
|
1431
|
+
value?: number | DataLink | EventProperty
|
|
1561
1432
|
mapping?: string
|
|
1562
1433
|
}
|
|
1563
1434
|
| {
|
|
1564
1435
|
input: 'name'
|
|
1565
|
-
value?: string | DataLink
|
|
1436
|
+
value?: string | DataLink | EventProperty
|
|
1566
1437
|
mapping?: string
|
|
1567
1438
|
}
|
|
1568
1439
|
>
|
|
@@ -1574,27 +1445,27 @@ export type BrickChartActionDataToggleSelect = ActionWithParams & {
|
|
|
1574
1445
|
params?: Array<
|
|
1575
1446
|
| {
|
|
1576
1447
|
input: 'seriesName'
|
|
1577
|
-
value?: string | DataLink
|
|
1448
|
+
value?: string | DataLink | EventProperty
|
|
1578
1449
|
mapping?: string
|
|
1579
1450
|
}
|
|
1580
1451
|
| {
|
|
1581
1452
|
input: 'seriesId'
|
|
1582
|
-
value?: string | DataLink
|
|
1453
|
+
value?: string | DataLink | EventProperty
|
|
1583
1454
|
mapping?: string
|
|
1584
1455
|
}
|
|
1585
1456
|
| {
|
|
1586
1457
|
input: 'seriesIndex'
|
|
1587
|
-
value?: number | DataLink
|
|
1458
|
+
value?: number | DataLink | EventProperty
|
|
1588
1459
|
mapping?: string
|
|
1589
1460
|
}
|
|
1590
1461
|
| {
|
|
1591
1462
|
input: 'dataIndex'
|
|
1592
|
-
value?: number | DataLink
|
|
1463
|
+
value?: number | DataLink | EventProperty
|
|
1593
1464
|
mapping?: string
|
|
1594
1465
|
}
|
|
1595
1466
|
| {
|
|
1596
1467
|
input: 'name'
|
|
1597
|
-
value?: string | DataLink
|
|
1468
|
+
value?: string | DataLink | EventProperty
|
|
1598
1469
|
mapping?: string
|
|
1599
1470
|
}
|
|
1600
1471
|
>
|
|
@@ -1605,7 +1476,7 @@ export type BrickChartActionLegendSelect = ActionWithParams & {
|
|
|
1605
1476
|
__actionName: 'BRICK_CHART_LEGEND_SELECT'
|
|
1606
1477
|
params?: Array<{
|
|
1607
1478
|
input: 'name'
|
|
1608
|
-
value?: string | DataLink
|
|
1479
|
+
value?: string | DataLink | EventProperty
|
|
1609
1480
|
mapping?: string
|
|
1610
1481
|
}>
|
|
1611
1482
|
}
|
|
@@ -1615,7 +1486,7 @@ export type BrickChartActionLegendUnselect = ActionWithParams & {
|
|
|
1615
1486
|
__actionName: 'BRICK_CHART_LEGEND_UNSELECT'
|
|
1616
1487
|
params?: Array<{
|
|
1617
1488
|
input: 'name'
|
|
1618
|
-
value?: string | DataLink
|
|
1489
|
+
value?: string | DataLink | EventProperty
|
|
1619
1490
|
mapping?: string
|
|
1620
1491
|
}>
|
|
1621
1492
|
}
|
|
@@ -1641,17 +1512,17 @@ export type BrickChartActionTooltipShow = ActionWithParams & {
|
|
|
1641
1512
|
params?: Array<
|
|
1642
1513
|
| {
|
|
1643
1514
|
input: 'seriesIndex'
|
|
1644
|
-
value?: number | DataLink
|
|
1515
|
+
value?: number | DataLink | EventProperty
|
|
1645
1516
|
mapping?: string
|
|
1646
1517
|
}
|
|
1647
1518
|
| {
|
|
1648
1519
|
input: 'dataIndex'
|
|
1649
|
-
value?: number | DataLink
|
|
1520
|
+
value?: number | DataLink | EventProperty
|
|
1650
1521
|
mapping?: string
|
|
1651
1522
|
}
|
|
1652
1523
|
| {
|
|
1653
1524
|
input: 'name'
|
|
1654
|
-
value?: string | DataLink
|
|
1525
|
+
value?: string | DataLink | EventProperty
|
|
1655
1526
|
mapping?: string
|
|
1656
1527
|
}
|
|
1657
1528
|
>
|
|
@@ -1663,17 +1534,17 @@ export type BrickChartActionTooltipHide = ActionWithParams & {
|
|
|
1663
1534
|
params?: Array<
|
|
1664
1535
|
| {
|
|
1665
1536
|
input: 'seriesIndex'
|
|
1666
|
-
value?: number | DataLink
|
|
1537
|
+
value?: number | DataLink | EventProperty
|
|
1667
1538
|
mapping?: string
|
|
1668
1539
|
}
|
|
1669
1540
|
| {
|
|
1670
1541
|
input: 'dataIndex'
|
|
1671
|
-
value?: number | DataLink
|
|
1542
|
+
value?: number | DataLink | EventProperty
|
|
1672
1543
|
mapping?: string
|
|
1673
1544
|
}
|
|
1674
1545
|
| {
|
|
1675
1546
|
input: 'name'
|
|
1676
|
-
value?: string | DataLink
|
|
1547
|
+
value?: string | DataLink | EventProperty
|
|
1677
1548
|
mapping?: string
|
|
1678
1549
|
}
|
|
1679
1550
|
>
|
|
@@ -1756,59 +1627,9 @@ Default property:
|
|
|
1756
1627
|
/* Event of chart render */
|
|
1757
1628
|
onRender?: Array<EventAction>
|
|
1758
1629
|
/* 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
|
-
>
|
|
1630
|
+
onPress?: Array<EventAction>
|
|
1797
1631
|
/* 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
|
-
>
|
|
1632
|
+
onLegendSelectChanged?: Array<EventAction>
|
|
1812
1633
|
}
|
|
1813
1634
|
animation?: AnimationBasicEvents & {
|
|
1814
1635
|
onRender?: Animation
|
|
@@ -1854,7 +1675,7 @@ export type BrickItemsActionJumpPage = ActionWithParams & {
|
|
|
1854
1675
|
__actionName: 'BRICK_ITEMS_JUMP_PAGE'
|
|
1855
1676
|
params?: Array<{
|
|
1856
1677
|
input: 'pageIndex'
|
|
1857
|
-
value?: number | DataLink
|
|
1678
|
+
value?: number | DataLink | EventProperty
|
|
1858
1679
|
mapping?: string
|
|
1859
1680
|
}>
|
|
1860
1681
|
}
|
|
@@ -1864,7 +1685,7 @@ export type BrickItemsActionOpenDetail = ActionWithParams & {
|
|
|
1864
1685
|
__actionName: 'BRICK_ITEMS_OPEN_DETAIL'
|
|
1865
1686
|
params?: Array<{
|
|
1866
1687
|
input: 'detailIndex'
|
|
1867
|
-
value?: number | DataLink
|
|
1688
|
+
value?: number | DataLink | EventProperty
|
|
1868
1689
|
mapping?: string
|
|
1869
1690
|
}>
|
|
1870
1691
|
}
|
|
@@ -1880,37 +1701,37 @@ export type BrickItemsActionDynamicAnimation = ActionWithParams & {
|
|
|
1880
1701
|
params?: Array<
|
|
1881
1702
|
| {
|
|
1882
1703
|
input: 'mode'
|
|
1883
|
-
value?: 'list' | 'detail' | DataLink
|
|
1704
|
+
value?: 'list' | 'detail' | DataLink | EventProperty
|
|
1884
1705
|
mapping?: string
|
|
1885
1706
|
}
|
|
1886
1707
|
| {
|
|
1887
1708
|
input: 'brickId'
|
|
1888
|
-
value?: string | DataLink
|
|
1709
|
+
value?: string | DataLink | EventProperty
|
|
1889
1710
|
mapping?: string
|
|
1890
1711
|
}
|
|
1891
1712
|
| {
|
|
1892
1713
|
input: 'dataId'
|
|
1893
|
-
value?: string | DataLink
|
|
1714
|
+
value?: string | DataLink | EventProperty
|
|
1894
1715
|
mapping?: string
|
|
1895
1716
|
}
|
|
1896
1717
|
| {
|
|
1897
1718
|
input: 'index'
|
|
1898
|
-
value?: number | DataLink
|
|
1719
|
+
value?: number | DataLink | EventProperty
|
|
1899
1720
|
mapping?: string
|
|
1900
1721
|
}
|
|
1901
1722
|
| {
|
|
1902
1723
|
input: 'animationId'
|
|
1903
|
-
value?: string | DataLink | (() => Animation)
|
|
1724
|
+
value?: string | DataLink | (() => Animation) | EventProperty
|
|
1904
1725
|
mapping?: string
|
|
1905
1726
|
}
|
|
1906
1727
|
| {
|
|
1907
1728
|
input: 'animationType'
|
|
1908
|
-
value?: 'once' | 'loop' | DataLink
|
|
1729
|
+
value?: 'once' | 'loop' | DataLink | EventProperty
|
|
1909
1730
|
mapping?: string
|
|
1910
1731
|
}
|
|
1911
1732
|
| {
|
|
1912
1733
|
input: 'animationResetInitialValue'
|
|
1913
|
-
value?: boolean | DataLink
|
|
1734
|
+
value?: boolean | DataLink | EventProperty
|
|
1914
1735
|
mapping?: string
|
|
1915
1736
|
}
|
|
1916
1737
|
>
|
|
@@ -1922,22 +1743,22 @@ export type BrickItemsActionDynamicAnimationReset = ActionWithParams & {
|
|
|
1922
1743
|
params?: Array<
|
|
1923
1744
|
| {
|
|
1924
1745
|
input: 'mode'
|
|
1925
|
-
value?: 'list' | 'detail' | DataLink
|
|
1746
|
+
value?: 'list' | 'detail' | DataLink | EventProperty
|
|
1926
1747
|
mapping?: string
|
|
1927
1748
|
}
|
|
1928
1749
|
| {
|
|
1929
1750
|
input: 'brickId'
|
|
1930
|
-
value?: string | DataLink
|
|
1751
|
+
value?: string | DataLink | EventProperty
|
|
1931
1752
|
mapping?: string
|
|
1932
1753
|
}
|
|
1933
1754
|
| {
|
|
1934
1755
|
input: 'dataId'
|
|
1935
|
-
value?: string | DataLink
|
|
1756
|
+
value?: string | DataLink | EventProperty
|
|
1936
1757
|
mapping?: string
|
|
1937
1758
|
}
|
|
1938
1759
|
| {
|
|
1939
1760
|
input: 'index'
|
|
1940
|
-
value?: number | DataLink
|
|
1761
|
+
value?: number | DataLink | EventProperty
|
|
1941
1762
|
mapping?: string
|
|
1942
1763
|
}
|
|
1943
1764
|
>
|
|
@@ -1949,22 +1770,22 @@ export type BrickItemsActionDynamicAnimationStop = ActionWithParams & {
|
|
|
1949
1770
|
params?: Array<
|
|
1950
1771
|
| {
|
|
1951
1772
|
input: 'mode'
|
|
1952
|
-
value?: 'list' | 'detail' | DataLink
|
|
1773
|
+
value?: 'list' | 'detail' | DataLink | EventProperty
|
|
1953
1774
|
mapping?: string
|
|
1954
1775
|
}
|
|
1955
1776
|
| {
|
|
1956
1777
|
input: 'brickId'
|
|
1957
|
-
value?: string | DataLink
|
|
1778
|
+
value?: string | DataLink | EventProperty
|
|
1958
1779
|
mapping?: string
|
|
1959
1780
|
}
|
|
1960
1781
|
| {
|
|
1961
1782
|
input: 'dataId'
|
|
1962
|
-
value?: string | DataLink
|
|
1783
|
+
value?: string | DataLink | EventProperty
|
|
1963
1784
|
mapping?: string
|
|
1964
1785
|
}
|
|
1965
1786
|
| {
|
|
1966
1787
|
input: 'index'
|
|
1967
|
-
value?: number | DataLink
|
|
1788
|
+
value?: number | DataLink | EventProperty
|
|
1968
1789
|
mapping?: string
|
|
1969
1790
|
}
|
|
1970
1791
|
>
|
|
@@ -2223,95 +2044,17 @@ Default property:
|
|
|
2223
2044
|
| DataLink
|
|
2224
2045
|
events?: BrickBasicEventsForItem & {
|
|
2225
2046
|
/* 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
|
-
>
|
|
2047
|
+
onPageRender?: Array<EventActionForItem>
|
|
2240
2048
|
/* 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
|
-
>
|
|
2049
|
+
onPageChange?: Array<EventActionForItem>
|
|
2255
2050
|
/* 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
|
-
>
|
|
2051
|
+
onPageOutOfBound?: Array<EventActionForItem>
|
|
2270
2052
|
/* 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
|
-
>
|
|
2053
|
+
onIntoDetailMode?: Array<EventActionForItem>
|
|
2289
2054
|
/* 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
|
-
>
|
|
2055
|
+
onIntoListMode?: Array<EventActionForItem>
|
|
2304
2056
|
/* Event on render error */
|
|
2305
|
-
onError?: Array<
|
|
2306
|
-
EventActionForItem & {
|
|
2307
|
-
eventPropertyMapping?: {
|
|
2308
|
-
errorMessage: {
|
|
2309
|
-
type: 'string'
|
|
2310
|
-
path: string
|
|
2311
|
-
}
|
|
2312
|
-
}
|
|
2313
|
-
}
|
|
2314
|
-
>
|
|
2057
|
+
onError?: Array<EventActionForItem>
|
|
2315
2058
|
}
|
|
2316
2059
|
outlets?: {
|
|
2317
2060
|
/* Catched error message */
|
|
@@ -2425,27 +2168,9 @@ Default property:
|
|
|
2425
2168
|
/* Event of the brick blur (Use TV Device with controller) */
|
|
2426
2169
|
onBlur?: Array<EventAction>
|
|
2427
2170
|
/* Event of the animation finished */
|
|
2428
|
-
onAnimationFinish?: Array<
|
|
2429
|
-
EventAction & {
|
|
2430
|
-
eventPropertyMapping?: {
|
|
2431
|
-
isCancelled: {
|
|
2432
|
-
type: 'boolean'
|
|
2433
|
-
path: string
|
|
2434
|
-
}
|
|
2435
|
-
}
|
|
2436
|
-
}
|
|
2437
|
-
>
|
|
2171
|
+
onAnimationFinish?: Array<EventAction>
|
|
2438
2172
|
/* 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
|
-
>
|
|
2173
|
+
onAnimationFailure?: Array<EventAction>
|
|
2449
2174
|
/* Event of the animation on loop */
|
|
2450
2175
|
onAnimationLoop?: Array<EventAction>
|
|
2451
2176
|
}
|
|
@@ -2495,22 +2220,22 @@ export type BrickRiveActionPlay = ActionWithParams & {
|
|
|
2495
2220
|
params?: Array<
|
|
2496
2221
|
| {
|
|
2497
2222
|
input: 'animationName'
|
|
2498
|
-
value?: string | DataLink
|
|
2223
|
+
value?: string | DataLink | EventProperty
|
|
2499
2224
|
mapping?: string
|
|
2500
2225
|
}
|
|
2501
2226
|
| {
|
|
2502
2227
|
input: 'loop'
|
|
2503
|
-
value?: 'auto' | 'oneShot' | 'loop' | 'pingPong' | DataLink
|
|
2228
|
+
value?: 'auto' | 'oneShot' | 'loop' | 'pingPong' | DataLink | EventProperty
|
|
2504
2229
|
mapping?: string
|
|
2505
2230
|
}
|
|
2506
2231
|
| {
|
|
2507
2232
|
input: 'direction'
|
|
2508
|
-
value?: 'auto' | 'backwards' | 'forwards' | DataLink
|
|
2233
|
+
value?: 'auto' | 'backwards' | 'forwards' | DataLink | EventProperty
|
|
2509
2234
|
mapping?: string
|
|
2510
2235
|
}
|
|
2511
2236
|
| {
|
|
2512
2237
|
input: 'isStateMachine'
|
|
2513
|
-
value?: boolean | DataLink
|
|
2238
|
+
value?: boolean | DataLink | EventProperty
|
|
2514
2239
|
mapping?: string
|
|
2515
2240
|
}
|
|
2516
2241
|
>
|
|
@@ -2537,12 +2262,12 @@ export type BrickRiveActionFireState = ActionWithParams & {
|
|
|
2537
2262
|
params?: Array<
|
|
2538
2263
|
| {
|
|
2539
2264
|
input: 'stateMachineName'
|
|
2540
|
-
value?: string | DataLink
|
|
2265
|
+
value?: string | DataLink | EventProperty
|
|
2541
2266
|
mapping?: string
|
|
2542
2267
|
}
|
|
2543
2268
|
| {
|
|
2544
2269
|
input: 'inputName'
|
|
2545
|
-
value?: string | DataLink
|
|
2270
|
+
value?: string | DataLink | EventProperty
|
|
2546
2271
|
mapping?: string
|
|
2547
2272
|
}
|
|
2548
2273
|
>
|
|
@@ -2554,17 +2279,17 @@ export type BrickRiveActionSetInputState = ActionWithParams & {
|
|
|
2554
2279
|
params?: Array<
|
|
2555
2280
|
| {
|
|
2556
2281
|
input: 'stateMachineName'
|
|
2557
|
-
value?: string | DataLink
|
|
2282
|
+
value?: string | DataLink | EventProperty
|
|
2558
2283
|
mapping?: string
|
|
2559
2284
|
}
|
|
2560
2285
|
| {
|
|
2561
2286
|
input: 'inputName'
|
|
2562
|
-
value?: string | DataLink
|
|
2287
|
+
value?: string | DataLink | EventProperty
|
|
2563
2288
|
mapping?: string
|
|
2564
2289
|
}
|
|
2565
2290
|
| {
|
|
2566
2291
|
input: 'value'
|
|
2567
|
-
value?: any
|
|
2292
|
+
value?: any | EventProperty
|
|
2568
2293
|
mapping?: string
|
|
2569
2294
|
}
|
|
2570
2295
|
>
|
|
@@ -2576,12 +2301,12 @@ export type BrickRiveActionSetTextRunValue = ActionWithParams & {
|
|
|
2576
2301
|
params?: Array<
|
|
2577
2302
|
| {
|
|
2578
2303
|
input: 'textRunName'
|
|
2579
|
-
value?: string | DataLink
|
|
2304
|
+
value?: string | DataLink | EventProperty
|
|
2580
2305
|
mapping?: string
|
|
2581
2306
|
}
|
|
2582
2307
|
| {
|
|
2583
2308
|
input: 'value'
|
|
2584
|
-
value?: any
|
|
2309
|
+
value?: any | EventProperty
|
|
2585
2310
|
mapping?: string
|
|
2586
2311
|
}
|
|
2587
2312
|
>
|
|
@@ -2635,133 +2360,21 @@ Default property:
|
|
|
2635
2360
|
}
|
|
2636
2361
|
events?: BrickBasicEvents & {
|
|
2637
2362
|
/* 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
|
-
>
|
|
2363
|
+
onPlay?: Array<EventAction>
|
|
2652
2364
|
/* 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
|
-
>
|
|
2365
|
+
onPause?: Array<EventAction>
|
|
2667
2366
|
/* 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
|
-
>
|
|
2367
|
+
onStop?: Array<EventAction>
|
|
2682
2368
|
/* 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
|
-
>
|
|
2369
|
+
onLoopEnd?: Array<EventAction>
|
|
2697
2370
|
/* 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
|
-
>
|
|
2371
|
+
onStateChanged?: Array<EventAction>
|
|
2712
2372
|
/* Event of error */
|
|
2713
|
-
onError?: Array<
|
|
2714
|
-
EventAction & {
|
|
2715
|
-
eventPropertyMapping?: {
|
|
2716
|
-
error: {
|
|
2717
|
-
type: 'string'
|
|
2718
|
-
path: string
|
|
2719
|
-
}
|
|
2720
|
-
}
|
|
2721
|
-
}
|
|
2722
|
-
>
|
|
2373
|
+
onError?: Array<EventAction>
|
|
2723
2374
|
/* 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
|
-
>
|
|
2375
|
+
onRiveGeneralEvent?: Array<EventAction>
|
|
2742
2376
|
/* 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
|
-
>
|
|
2377
|
+
onRiveOpenUrlEvent?: Array<EventAction>
|
|
2765
2378
|
}
|
|
2766
2379
|
animation?: AnimationBasicEvents & {
|
|
2767
2380
|
onPlay?: Animation
|
|
@@ -2802,7 +2415,7 @@ export type BrickWebViewActionInjectJavascript = ActionWithParams & {
|
|
|
2802
2415
|
__actionName: 'BRICK_WEBVIEW_INJECT_JAVASCRIPT'
|
|
2803
2416
|
params?: Array<{
|
|
2804
2417
|
input: 'javascriptCode'
|
|
2805
|
-
value?: string | DataLink
|
|
2418
|
+
value?: string | DataLink | EventProperty
|
|
2806
2419
|
mapping?: string
|
|
2807
2420
|
}>
|
|
2808
2421
|
}
|
|
@@ -2883,38 +2496,11 @@ Default property:
|
|
|
2883
2496
|
}
|
|
2884
2497
|
events?: BrickBasicEvents & {
|
|
2885
2498
|
/* 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
|
-
>
|
|
2499
|
+
onLoad?: Array<EventAction>
|
|
2896
2500
|
/* 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
|
-
>
|
|
2501
|
+
onError?: Array<EventAction>
|
|
2907
2502
|
/* 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
|
-
>
|
|
2503
|
+
onMessage?: Array<EventAction>
|
|
2918
2504
|
}
|
|
2919
2505
|
animation?: AnimationBasicEvents & {
|
|
2920
2506
|
onLoad?: Animation
|
|
@@ -2951,22 +2537,22 @@ export type BrickCameraActionTakePicture = ActionWithParams & {
|
|
|
2951
2537
|
params?: Array<
|
|
2952
2538
|
| {
|
|
2953
2539
|
input: 'width'
|
|
2954
|
-
value?: number | DataLink
|
|
2540
|
+
value?: number | DataLink | EventProperty
|
|
2955
2541
|
mapping?: string
|
|
2956
2542
|
}
|
|
2957
2543
|
| {
|
|
2958
2544
|
input: 'quality'
|
|
2959
|
-
value?: string | DataLink
|
|
2545
|
+
value?: string | DataLink | EventProperty
|
|
2960
2546
|
mapping?: string
|
|
2961
2547
|
}
|
|
2962
2548
|
| {
|
|
2963
2549
|
input: 'base64'
|
|
2964
|
-
value?: boolean | DataLink
|
|
2550
|
+
value?: boolean | DataLink | EventProperty
|
|
2965
2551
|
mapping?: string
|
|
2966
2552
|
}
|
|
2967
2553
|
| {
|
|
2968
2554
|
input: 'mirrorImage'
|
|
2969
|
-
value?: boolean | DataLink
|
|
2555
|
+
value?: boolean | DataLink | EventProperty
|
|
2970
2556
|
mapping?: string
|
|
2971
2557
|
}
|
|
2972
2558
|
>
|
|
@@ -2978,27 +2564,27 @@ export type BrickCameraActionRecord = ActionWithParams & {
|
|
|
2978
2564
|
params?: Array<
|
|
2979
2565
|
| {
|
|
2980
2566
|
input: 'quality'
|
|
2981
|
-
value?: '4:3' | '288p' | '480p' | '720p' | '1080p' | '2160p' | DataLink
|
|
2567
|
+
value?: '4:3' | '288p' | '480p' | '720p' | '1080p' | '2160p' | DataLink | EventProperty
|
|
2982
2568
|
mapping?: string
|
|
2983
2569
|
}
|
|
2984
2570
|
| {
|
|
2985
2571
|
input: 'mirrorVideo'
|
|
2986
|
-
value?: boolean | DataLink
|
|
2572
|
+
value?: boolean | DataLink | EventProperty
|
|
2987
2573
|
mapping?: string
|
|
2988
2574
|
}
|
|
2989
2575
|
| {
|
|
2990
2576
|
input: 'videoBitrate'
|
|
2991
|
-
value?: string | DataLink
|
|
2577
|
+
value?: string | DataLink | EventProperty
|
|
2992
2578
|
mapping?: string
|
|
2993
2579
|
}
|
|
2994
2580
|
| {
|
|
2995
2581
|
input: 'maxDuration'
|
|
2996
|
-
value?: number | DataLink
|
|
2582
|
+
value?: number | DataLink | EventProperty
|
|
2997
2583
|
mapping?: string
|
|
2998
2584
|
}
|
|
2999
2585
|
| {
|
|
3000
2586
|
input: 'maxFileSize'
|
|
3001
|
-
value?: string | DataLink
|
|
2587
|
+
value?: string | DataLink | EventProperty
|
|
3002
2588
|
mapping?: string
|
|
3003
2589
|
}
|
|
3004
2590
|
>
|
|
@@ -3070,100 +2656,19 @@ Default property:
|
|
|
3070
2656
|
}
|
|
3071
2657
|
events?: BrickBasicEvents & {
|
|
3072
2658
|
/* 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
|
-
>
|
|
2659
|
+
stateChange?: Array<EventAction>
|
|
3087
2660
|
/* Event of the Camera record start */
|
|
3088
2661
|
recordStart?: Array<EventAction>
|
|
3089
2662
|
/* Event of the Camera record end */
|
|
3090
2663
|
recordEnd?: Array<EventAction>
|
|
3091
2664
|
/* 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
|
-
>
|
|
2665
|
+
barcodeRead?: Array<EventAction>
|
|
3126
2666
|
/* 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
|
-
>
|
|
2667
|
+
pictureTaken?: Array<EventAction>
|
|
3145
2668
|
/* 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
|
-
>
|
|
2669
|
+
recordFinish?: Array<EventAction>
|
|
3156
2670
|
/* 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
|
-
>
|
|
2671
|
+
mountError?: Array<EventAction>
|
|
3167
2672
|
}
|
|
3168
2673
|
outlets?: {
|
|
3169
2674
|
/* Picture taken result */
|
|
@@ -3260,7 +2765,7 @@ export type Brick3DViewerActionAnimationPlay = ActionWithParams & {
|
|
|
3260
2765
|
__actionName: 'BRICK_3D_VIEWER_ANIMATION_PLAY'
|
|
3261
2766
|
params?: Array<{
|
|
3262
2767
|
input: 'objectIndex'
|
|
3263
|
-
value?: number | DataLink
|
|
2768
|
+
value?: number | DataLink | EventProperty
|
|
3264
2769
|
mapping?: string
|
|
3265
2770
|
}>
|
|
3266
2771
|
}
|
|
@@ -3270,7 +2775,7 @@ export type Brick3DViewerActionAnimationPause = ActionWithParams & {
|
|
|
3270
2775
|
__actionName: 'BRICK_3D_VIEWER_ANIMATION_PAUSE'
|
|
3271
2776
|
params?: Array<{
|
|
3272
2777
|
input: 'objectIndex'
|
|
3273
|
-
value?: number | DataLink
|
|
2778
|
+
value?: number | DataLink | EventProperty
|
|
3274
2779
|
mapping?: string
|
|
3275
2780
|
}>
|
|
3276
2781
|
}
|
|
@@ -3281,12 +2786,12 @@ export type Brick3DViewerActionAnimationGoto = ActionWithParams & {
|
|
|
3281
2786
|
params?: Array<
|
|
3282
2787
|
| {
|
|
3283
2788
|
input: 'objectIndex'
|
|
3284
|
-
value?: number | DataLink
|
|
2789
|
+
value?: number | DataLink | EventProperty
|
|
3285
2790
|
mapping?: string
|
|
3286
2791
|
}
|
|
3287
2792
|
| {
|
|
3288
2793
|
input: 'animationProgress'
|
|
3289
|
-
value?: number | DataLink
|
|
2794
|
+
value?: number | DataLink | EventProperty
|
|
3290
2795
|
mapping?: string
|
|
3291
2796
|
}
|
|
3292
2797
|
>
|
|
@@ -3404,61 +2909,13 @@ Default property:
|
|
|
3404
2909
|
}
|
|
3405
2910
|
events?: BrickBasicEvents & {
|
|
3406
2911
|
/* Event of error occurred */
|
|
3407
|
-
onError?: Array<
|
|
3408
|
-
EventAction & {
|
|
3409
|
-
eventPropertyMapping?: {
|
|
3410
|
-
errorMessage: {
|
|
3411
|
-
type: 'string'
|
|
3412
|
-
path: string
|
|
3413
|
-
}
|
|
3414
|
-
}
|
|
3415
|
-
}
|
|
3416
|
-
>
|
|
2912
|
+
onError?: Array<EventAction>
|
|
3417
2913
|
/* 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
|
-
>
|
|
2914
|
+
onChange?: Array<EventAction>
|
|
3436
2915
|
/* Event of object selected */
|
|
3437
|
-
onSelectChange?: Array<
|
|
3438
|
-
EventAction & {
|
|
3439
|
-
eventPropertyMapping?: {
|
|
3440
|
-
objectIndex: {
|
|
3441
|
-
type: 'number'
|
|
3442
|
-
path: string
|
|
3443
|
-
}
|
|
3444
|
-
}
|
|
3445
|
-
}
|
|
3446
|
-
>
|
|
2916
|
+
onSelectChange?: Array<EventAction>
|
|
3447
2917
|
/* 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
|
-
>
|
|
2918
|
+
onCollision?: Array<EventAction>
|
|
3462
2919
|
}
|
|
3463
2920
|
animation?: AnimationBasicEvents & {
|
|
3464
2921
|
onError?: Animation
|
|
@@ -3645,88 +3102,21 @@ Default property:
|
|
|
3645
3102
|
/* Event of the brick blur (Use TV Device with controller) */
|
|
3646
3103
|
generativeMediaOnBlur?: Array<EventAction>
|
|
3647
3104
|
/* Event when media generation succeeds */
|
|
3648
|
-
onSuccess?: Array<
|
|
3649
|
-
EventAction & {
|
|
3650
|
-
eventPropertyMapping?: {
|
|
3651
|
-
url: {
|
|
3652
|
-
type: 'string'
|
|
3653
|
-
path: string
|
|
3654
|
-
}
|
|
3655
|
-
}
|
|
3656
|
-
}
|
|
3657
|
-
>
|
|
3105
|
+
onSuccess?: Array<EventAction>
|
|
3658
3106
|
/* Event when media generation fails */
|
|
3659
|
-
onError?: Array<
|
|
3660
|
-
EventAction & {
|
|
3661
|
-
eventPropertyMapping?: {
|
|
3662
|
-
error: {
|
|
3663
|
-
type: 'string'
|
|
3664
|
-
path: string
|
|
3665
|
-
}
|
|
3666
|
-
}
|
|
3667
|
-
}
|
|
3668
|
-
>
|
|
3107
|
+
onError?: Array<EventAction>
|
|
3669
3108
|
/* 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
|
-
>
|
|
3109
|
+
promptStart?: Array<EventAction>
|
|
3680
3110
|
/* 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
|
-
>
|
|
3111
|
+
promptSuccess?: Array<EventAction>
|
|
3691
3112
|
/* 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
|
-
>
|
|
3113
|
+
promptError?: Array<EventAction>
|
|
3702
3114
|
/* Event when media loading starts */
|
|
3703
|
-
loadStart?: Array<
|
|
3704
|
-
EventAction & {
|
|
3705
|
-
eventPropertyMapping?: {}
|
|
3706
|
-
}
|
|
3707
|
-
>
|
|
3115
|
+
loadStart?: Array<EventAction>
|
|
3708
3116
|
/* Event when media loading succeeds */
|
|
3709
|
-
loadSuccess?: Array<
|
|
3710
|
-
EventAction & {
|
|
3711
|
-
eventPropertyMapping?: {
|
|
3712
|
-
url: {
|
|
3713
|
-
type: 'string'
|
|
3714
|
-
path: string
|
|
3715
|
-
}
|
|
3716
|
-
}
|
|
3717
|
-
}
|
|
3718
|
-
>
|
|
3117
|
+
loadSuccess?: Array<EventAction>
|
|
3719
3118
|
/* Event when media loading fails */
|
|
3720
|
-
loadError?: Array<
|
|
3721
|
-
EventAction & {
|
|
3722
|
-
eventPropertyMapping?: {
|
|
3723
|
-
error: {
|
|
3724
|
-
type: 'string'
|
|
3725
|
-
path: string
|
|
3726
|
-
}
|
|
3727
|
-
}
|
|
3728
|
-
}
|
|
3729
|
-
>
|
|
3119
|
+
loadError?: Array<EventAction>
|
|
3730
3120
|
}
|
|
3731
3121
|
outlets?: {
|
|
3732
3122
|
/* Brick is pressing */
|