@grexx/grexxlinter 0.2.549 → 0.2.595

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.
@@ -263,6 +263,20 @@
263
263
  "valueIsField": false,
264
264
  "isEmpty": false
265
265
  }
266
+ ],
267
+ "messageWhen": [
268
+ {
269
+ "when": {
270
+ "op": "cmp",
271
+ "field": "widgetType",
272
+ "fieldName": "Type",
273
+ "operator": "==",
274
+ "value": "activityWidget",
275
+ "valueIsField": false,
276
+ "isEmpty": false
277
+ },
278
+ "message": "If the activity widget should display mandatory tasks instead of optional activities you need to supply a dataset that returns the task to show"
279
+ }
266
280
  ]
267
281
  },
268
282
  "form": {
@@ -449,6 +463,130 @@
449
463
  "valueIsField": false,
450
464
  "isEmpty": false
451
465
  }
466
+ ],
467
+ "optionsWhen": [
468
+ {
469
+ "when": {
470
+ "op": "and",
471
+ "items": [
472
+ {
473
+ "op": "or",
474
+ "items": [
475
+ {
476
+ "op": "cmp",
477
+ "field": "subWidgetParentWidget",
478
+ "fieldName": "Parent widget (for sub-widgets)",
479
+ "operator": "!=",
480
+ "value": "",
481
+ "valueIsField": false,
482
+ "isEmpty": true
483
+ },
484
+ {
485
+ "op": "cmp",
486
+ "field": "masterWidget",
487
+ "fieldName": "Settings - Master Widget ID",
488
+ "operator": "===",
489
+ "value": "",
490
+ "valueIsField": false,
491
+ "isEmpty": true
492
+ },
493
+ {
494
+ "op": "and",
495
+ "items": [
496
+ {
497
+ "op": "cmp",
498
+ "field": "widgetType",
499
+ "fieldName": "Type",
500
+ "operator": "!=",
501
+ "value": "caseData",
502
+ "valueIsField": false,
503
+ "isEmpty": false
504
+ },
505
+ {
506
+ "op": "cmp",
507
+ "field": "widgetType",
508
+ "fieldName": "Type",
509
+ "operator": "!=",
510
+ "value": "caseDataClean",
511
+ "valueIsField": false,
512
+ "isEmpty": false
513
+ }
514
+ ]
515
+ }
516
+ ]
517
+ },
518
+ {
519
+ "op": "cmp",
520
+ "field": "subWidgetParentWidget",
521
+ "fieldName": "Parent widget (for sub-widgets)",
522
+ "operator": "==",
523
+ "value": "",
524
+ "valueIsField": false,
525
+ "isEmpty": true
526
+ }
527
+ ]
528
+ },
529
+ "source": {
530
+ "kind": "objects",
531
+ "type": [
532
+ "form"
533
+ ]
534
+ }
535
+ },
536
+ {
537
+ "when": {
538
+ "op": "and",
539
+ "items": [
540
+ {
541
+ "op": "or",
542
+ "items": [
543
+ {
544
+ "op": "cmp",
545
+ "field": "widgetType",
546
+ "fieldName": "Type",
547
+ "operator": "==",
548
+ "value": "caseData",
549
+ "valueIsField": false,
550
+ "isEmpty": false
551
+ },
552
+ {
553
+ "op": "cmp",
554
+ "field": "widgetType",
555
+ "fieldName": "Type",
556
+ "operator": "==",
557
+ "value": "caseDataClean",
558
+ "valueIsField": false,
559
+ "isEmpty": false
560
+ }
561
+ ]
562
+ },
563
+ {
564
+ "op": "cmp",
565
+ "field": "subWidgetParentWidget",
566
+ "fieldName": "Parent widget (for sub-widgets)",
567
+ "operator": "==",
568
+ "value": "",
569
+ "valueIsField": false,
570
+ "isEmpty": true
571
+ },
572
+ {
573
+ "op": "cmp",
574
+ "field": "masterWidget",
575
+ "fieldName": "Settings - Master Widget ID",
576
+ "operator": "!==",
577
+ "value": "",
578
+ "valueIsField": false,
579
+ "isEmpty": true
580
+ }
581
+ ]
582
+ },
583
+ "source": {
584
+ "kind": "objects",
585
+ "type": [
586
+ "form"
587
+ ]
588
+ }
589
+ }
452
590
  ]
453
591
  },
454
592
  "itemsPerPage": {
@@ -1233,6 +1371,239 @@
1233
1371
  }
1234
1372
  ]
1235
1373
  }
1374
+ ],
1375
+ "messageWhen": [
1376
+ {
1377
+ "when": {
1378
+ "op": "and",
1379
+ "items": [
1380
+ {
1381
+ "op": "cmp",
1382
+ "field": "subWidgetParentWidget",
1383
+ "fieldName": "Parent widget (for sub-widgets)",
1384
+ "operator": "!==",
1385
+ "value": "",
1386
+ "valueIsField": false,
1387
+ "isEmpty": true
1388
+ },
1389
+ {
1390
+ "op": "cmp",
1391
+ "field": "widgetType",
1392
+ "fieldName": "Type",
1393
+ "operator": "!=",
1394
+ "value": "",
1395
+ "valueIsField": false,
1396
+ "isEmpty": true
1397
+ }
1398
+ ]
1399
+ },
1400
+ "message": "This can be set once, please remove and re-add the subwidget to change its type."
1401
+ }
1402
+ ],
1403
+ "optionsWhen": [
1404
+ {
1405
+ "when": {
1406
+ "op": "or",
1407
+ "items": [
1408
+ {
1409
+ "op": "cmp",
1410
+ "field": "widgetType",
1411
+ "fieldName": "Type",
1412
+ "operator": "==",
1413
+ "value": "caseData",
1414
+ "valueIsField": false,
1415
+ "isEmpty": false
1416
+ },
1417
+ {
1418
+ "op": "cmp",
1419
+ "field": "widgetType",
1420
+ "fieldName": "Type",
1421
+ "operator": "==",
1422
+ "value": "caseDataClean",
1423
+ "valueIsField": false,
1424
+ "isEmpty": false
1425
+ },
1426
+ {
1427
+ "op": "cmp",
1428
+ "field": "widgetType",
1429
+ "fieldName": "Type",
1430
+ "operator": "==",
1431
+ "value": "formWidget",
1432
+ "valueIsField": false,
1433
+ "isEmpty": false
1434
+ }
1435
+ ]
1436
+ },
1437
+ "source": {
1438
+ "kind": "static",
1439
+ "options": [
1440
+ {
1441
+ "id": "formWidget",
1442
+ "label": "Form style"
1443
+ },
1444
+ {
1445
+ "id": "caseDataClean",
1446
+ "label": "Bootstrap style"
1447
+ },
1448
+ {
1449
+ "id": "caseData",
1450
+ "label": "Grid style (legacy)"
1451
+ }
1452
+ ]
1453
+ }
1454
+ },
1455
+ {
1456
+ "when": {
1457
+ "op": "or",
1458
+ "items": [
1459
+ {
1460
+ "op": "cmp",
1461
+ "field": "widgetType",
1462
+ "fieldName": "Type",
1463
+ "operator": "==",
1464
+ "value": "formSearch",
1465
+ "valueIsField": false,
1466
+ "isEmpty": false
1467
+ },
1468
+ {
1469
+ "op": "cmp",
1470
+ "field": "widgetType",
1471
+ "fieldName": "Type",
1472
+ "operator": "==",
1473
+ "value": "simpleSearch",
1474
+ "valueIsField": false,
1475
+ "isEmpty": false
1476
+ }
1477
+ ]
1478
+ },
1479
+ "source": {
1480
+ "kind": "static",
1481
+ "options": [
1482
+ {
1483
+ "id": "formSearch",
1484
+ "label": "Form style"
1485
+ },
1486
+ {
1487
+ "id": "simpleSearch",
1488
+ "label": "Simple style"
1489
+ }
1490
+ ]
1491
+ }
1492
+ },
1493
+ {
1494
+ "when": {
1495
+ "op": "and",
1496
+ "items": [
1497
+ {
1498
+ "op": "or",
1499
+ "items": [
1500
+ {
1501
+ "op": "cmp",
1502
+ "field": "widgetType",
1503
+ "fieldName": "Type",
1504
+ "operator": "==",
1505
+ "value": "grid",
1506
+ "valueIsField": false,
1507
+ "isEmpty": false
1508
+ },
1509
+ {
1510
+ "op": "cmp",
1511
+ "field": null,
1512
+ "fieldName": "Use legacy grids",
1513
+ "operator": "==",
1514
+ "value": "true",
1515
+ "valueIsField": false,
1516
+ "isEmpty": false
1517
+ }
1518
+ ]
1519
+ },
1520
+ {
1521
+ "op": "cmp",
1522
+ "field": "widgetType",
1523
+ "fieldName": "Type",
1524
+ "operator": "contains",
1525
+ "value": "grid",
1526
+ "valueIsField": false,
1527
+ "isEmpty": false
1528
+ }
1529
+ ]
1530
+ },
1531
+ "source": {
1532
+ "kind": "static",
1533
+ "options": [
1534
+ {
1535
+ "id": "grid",
1536
+ "label": "Grid (legacy)"
1537
+ },
1538
+ {
1539
+ "id": "grid-v2",
1540
+ "label": "Grid "
1541
+ }
1542
+ ]
1543
+ }
1544
+ },
1545
+ {
1546
+ "when": {
1547
+ "op": "and",
1548
+ "items": [
1549
+ {
1550
+ "op": "cmp",
1551
+ "field": "subWidgetParentWidget",
1552
+ "fieldName": "Parent widget (for sub-widgets)",
1553
+ "operator": "!==",
1554
+ "value": "",
1555
+ "valueIsField": false,
1556
+ "isEmpty": true
1557
+ },
1558
+ {
1559
+ "op": "cmp",
1560
+ "field": "widgetType",
1561
+ "fieldName": "Type",
1562
+ "operator": "==",
1563
+ "value": "",
1564
+ "valueIsField": false,
1565
+ "isEmpty": true
1566
+ }
1567
+ ]
1568
+ },
1569
+ "source": {
1570
+ "kind": "static",
1571
+ "options": [
1572
+ {
1573
+ "id": "grid-v2",
1574
+ "label": "Grid"
1575
+ },
1576
+ {
1577
+ "id": "caseDataClean",
1578
+ "label": "Form widget (bootstrap-style)"
1579
+ },
1580
+ {
1581
+ "id": "inlineEdit",
1582
+ "label": "Inline edit form"
1583
+ },
1584
+ {
1585
+ "id": "viewWidget",
1586
+ "label": "View widget"
1587
+ },
1588
+ {
1589
+ "id": "tileWidget",
1590
+ "label": "Tile widget"
1591
+ },
1592
+ {
1593
+ "id": "templateWidget",
1594
+ "label": "Template widget"
1595
+ },
1596
+ {
1597
+ "id": "pluginWidget",
1598
+ "label": "Plugin Widget"
1599
+ },
1600
+ {
1601
+ "id": "activityWidget",
1602
+ "label": "Activity widget"
1603
+ }
1604
+ ]
1605
+ }
1606
+ }
1236
1607
  ]
1237
1608
  }
1238
1609
  }