@praxisui/table-rule-builder 10.0.0-rc.44 → 10.0.0-rc.45
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.
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": "1.0.0",
|
|
3
|
-
"generatedAt": "2026-11-
|
|
3
|
+
"generatedAt": "2026-11-14T23:14:13.846Z",
|
|
4
4
|
"packageName": "@praxisui/table-rule-builder",
|
|
5
|
-
"packageVersion": "10.0.0-rc.
|
|
5
|
+
"packageVersion": "10.0.0-rc.45",
|
|
6
6
|
"sourceRegistry": "praxis-component-registry-ingestion",
|
|
7
7
|
"sourceRegistryVersion": "1.0.0",
|
|
8
8
|
"componentCount": 1,
|
|
@@ -479,31 +479,134 @@
|
|
|
479
479
|
{
|
|
480
480
|
"kind": "rule",
|
|
481
481
|
"resolver": "table-rule-by-stable-id",
|
|
482
|
+
"resolutionSpec": {
|
|
483
|
+
"strategy": "array-match",
|
|
484
|
+
"paths": [
|
|
485
|
+
"ruleEffects.rules",
|
|
486
|
+
"rules",
|
|
487
|
+
"RuleEffectDefinition"
|
|
488
|
+
],
|
|
489
|
+
"matchFields": [
|
|
490
|
+
"id",
|
|
491
|
+
"ruleId"
|
|
492
|
+
],
|
|
493
|
+
"inputMatchFields": [
|
|
494
|
+
"ruleId",
|
|
495
|
+
"id"
|
|
496
|
+
],
|
|
497
|
+
"allowIndex": false
|
|
498
|
+
},
|
|
482
499
|
"description": "Table conditional rule entry keyed by stable rule id before it is passed to praxis-table."
|
|
483
500
|
},
|
|
484
501
|
{
|
|
485
502
|
"kind": "condition",
|
|
486
503
|
"resolver": "table-rule-condition-by-rule-id",
|
|
504
|
+
"resolutionSpec": {
|
|
505
|
+
"strategy": "array-match",
|
|
506
|
+
"paths": [
|
|
507
|
+
"ruleEffects.rules",
|
|
508
|
+
"rules",
|
|
509
|
+
"RuleEffectDefinition"
|
|
510
|
+
],
|
|
511
|
+
"matchFields": [
|
|
512
|
+
"id",
|
|
513
|
+
"ruleId"
|
|
514
|
+
],
|
|
515
|
+
"inputMatchFields": [
|
|
516
|
+
"ruleId",
|
|
517
|
+
"id"
|
|
518
|
+
],
|
|
519
|
+
"allowIndex": false
|
|
520
|
+
},
|
|
487
521
|
"description": "Structured condition payload evaluated against table row/column context."
|
|
488
522
|
},
|
|
489
523
|
{
|
|
490
524
|
"kind": "effect",
|
|
491
525
|
"resolver": "rule-effect-by-rule-and-effect-id",
|
|
526
|
+
"resolutionSpec": {
|
|
527
|
+
"strategy": "parent-child-array-match",
|
|
528
|
+
"paths": [
|
|
529
|
+
"ruleEffects.rules[]",
|
|
530
|
+
"rules[]",
|
|
531
|
+
"RuleEffectDefinition"
|
|
532
|
+
],
|
|
533
|
+
"parentInputMatchFields": [
|
|
534
|
+
"ruleId",
|
|
535
|
+
"id"
|
|
536
|
+
],
|
|
537
|
+
"matchFields": [
|
|
538
|
+
"effectId",
|
|
539
|
+
"id"
|
|
540
|
+
],
|
|
541
|
+
"childArrayField": "effects",
|
|
542
|
+
"inputMatchFields": [
|
|
543
|
+
"effectId",
|
|
544
|
+
"id"
|
|
545
|
+
],
|
|
546
|
+
"allowIndex": false
|
|
547
|
+
},
|
|
492
548
|
"description": "Visual effect payload inside a rule, mapped to RuleEffectDefinition."
|
|
493
549
|
},
|
|
494
550
|
{
|
|
495
551
|
"kind": "preset",
|
|
496
552
|
"resolver": "default-effect-preset-by-key",
|
|
553
|
+
"resolutionSpec": {
|
|
554
|
+
"strategy": "array-match",
|
|
555
|
+
"paths": [
|
|
556
|
+
"ruleEffects.rules",
|
|
557
|
+
"rules",
|
|
558
|
+
"RuleEffectDefinition"
|
|
559
|
+
],
|
|
560
|
+
"matchFields": [
|
|
561
|
+
"id",
|
|
562
|
+
"ruleId"
|
|
563
|
+
],
|
|
564
|
+
"inputMatchFields": [
|
|
565
|
+
"ruleId",
|
|
566
|
+
"id"
|
|
567
|
+
],
|
|
568
|
+
"allowIndex": false
|
|
569
|
+
},
|
|
497
570
|
"description": "Built-in semantic effect preset from DEFAULT_EFFECT_PRESETS."
|
|
498
571
|
},
|
|
499
572
|
{
|
|
500
573
|
"kind": "animation",
|
|
501
574
|
"resolver": "rule-animation-by-rule-and-effect-id",
|
|
575
|
+
"resolutionSpec": {
|
|
576
|
+
"strategy": "parent-child-array-match",
|
|
577
|
+
"paths": [
|
|
578
|
+
"ruleEffects.rules[]",
|
|
579
|
+
"rules[]",
|
|
580
|
+
"RuleEffectDefinition"
|
|
581
|
+
],
|
|
582
|
+
"parentInputMatchFields": [
|
|
583
|
+
"ruleId",
|
|
584
|
+
"id"
|
|
585
|
+
],
|
|
586
|
+
"matchFields": [
|
|
587
|
+
"effectId",
|
|
588
|
+
"id"
|
|
589
|
+
],
|
|
590
|
+
"childArrayField": "effects",
|
|
591
|
+
"inputMatchFields": [
|
|
592
|
+
"effectId",
|
|
593
|
+
"id"
|
|
594
|
+
],
|
|
595
|
+
"allowIndex": false
|
|
596
|
+
},
|
|
502
597
|
"description": "Animation preset, alias or override resolved through animation-presets."
|
|
503
598
|
},
|
|
504
599
|
{
|
|
505
600
|
"kind": "tableDelegation",
|
|
506
601
|
"resolver": "praxis-table-authoring-operation",
|
|
602
|
+
"resolutionSpec": {
|
|
603
|
+
"strategy": "root-path",
|
|
604
|
+
"paths": [
|
|
605
|
+
"delegatedAuthoringOperations",
|
|
606
|
+
""
|
|
607
|
+
],
|
|
608
|
+
"allowIndex": false
|
|
609
|
+
},
|
|
507
610
|
"description": "Explicit delegation boundary for table-owned configuration changes."
|
|
508
611
|
}
|
|
509
612
|
],
|
|
@@ -516,6 +619,23 @@
|
|
|
516
619
|
"target": {
|
|
517
620
|
"kind": "rule",
|
|
518
621
|
"resolver": "table-rule-by-stable-id",
|
|
622
|
+
"resolutionSpec": {
|
|
623
|
+
"strategy": "array-match",
|
|
624
|
+
"paths": [
|
|
625
|
+
"ruleEffects.rules",
|
|
626
|
+
"rules",
|
|
627
|
+
"RuleEffectDefinition"
|
|
628
|
+
],
|
|
629
|
+
"matchFields": [
|
|
630
|
+
"id",
|
|
631
|
+
"ruleId"
|
|
632
|
+
],
|
|
633
|
+
"inputMatchFields": [
|
|
634
|
+
"ruleId",
|
|
635
|
+
"id"
|
|
636
|
+
],
|
|
637
|
+
"allowIndex": false
|
|
638
|
+
},
|
|
519
639
|
"ambiguityPolicy": "fail",
|
|
520
640
|
"required": true
|
|
521
641
|
},
|
|
@@ -639,6 +759,23 @@
|
|
|
639
759
|
"target": {
|
|
640
760
|
"kind": "rule",
|
|
641
761
|
"resolver": "table-rule-by-stable-id",
|
|
762
|
+
"resolutionSpec": {
|
|
763
|
+
"strategy": "array-match",
|
|
764
|
+
"paths": [
|
|
765
|
+
"ruleEffects.rules",
|
|
766
|
+
"rules",
|
|
767
|
+
"RuleEffectDefinition"
|
|
768
|
+
],
|
|
769
|
+
"matchFields": [
|
|
770
|
+
"id",
|
|
771
|
+
"ruleId"
|
|
772
|
+
],
|
|
773
|
+
"inputMatchFields": [
|
|
774
|
+
"ruleId",
|
|
775
|
+
"id"
|
|
776
|
+
],
|
|
777
|
+
"allowIndex": false
|
|
778
|
+
},
|
|
642
779
|
"ambiguityPolicy": "fail",
|
|
643
780
|
"required": true
|
|
644
781
|
},
|
|
@@ -727,6 +864,23 @@
|
|
|
727
864
|
"target": {
|
|
728
865
|
"kind": "condition",
|
|
729
866
|
"resolver": "table-rule-condition-by-rule-id",
|
|
867
|
+
"resolutionSpec": {
|
|
868
|
+
"strategy": "array-match",
|
|
869
|
+
"paths": [
|
|
870
|
+
"ruleEffects.rules",
|
|
871
|
+
"rules",
|
|
872
|
+
"RuleEffectDefinition"
|
|
873
|
+
],
|
|
874
|
+
"matchFields": [
|
|
875
|
+
"id",
|
|
876
|
+
"ruleId"
|
|
877
|
+
],
|
|
878
|
+
"inputMatchFields": [
|
|
879
|
+
"ruleId",
|
|
880
|
+
"id"
|
|
881
|
+
],
|
|
882
|
+
"allowIndex": false
|
|
883
|
+
},
|
|
730
884
|
"ambiguityPolicy": "fail",
|
|
731
885
|
"required": true
|
|
732
886
|
},
|
|
@@ -845,6 +999,28 @@
|
|
|
845
999
|
"target": {
|
|
846
1000
|
"kind": "effect",
|
|
847
1001
|
"resolver": "rule-effect-by-rule-and-effect-id",
|
|
1002
|
+
"resolutionSpec": {
|
|
1003
|
+
"strategy": "parent-child-array-match",
|
|
1004
|
+
"paths": [
|
|
1005
|
+
"ruleEffects.rules[]",
|
|
1006
|
+
"rules[]",
|
|
1007
|
+
"RuleEffectDefinition"
|
|
1008
|
+
],
|
|
1009
|
+
"parentInputMatchFields": [
|
|
1010
|
+
"ruleId",
|
|
1011
|
+
"id"
|
|
1012
|
+
],
|
|
1013
|
+
"matchFields": [
|
|
1014
|
+
"effectId",
|
|
1015
|
+
"id"
|
|
1016
|
+
],
|
|
1017
|
+
"childArrayField": "effects",
|
|
1018
|
+
"inputMatchFields": [
|
|
1019
|
+
"effectId",
|
|
1020
|
+
"id"
|
|
1021
|
+
],
|
|
1022
|
+
"allowIndex": false
|
|
1023
|
+
},
|
|
848
1024
|
"ambiguityPolicy": "fail",
|
|
849
1025
|
"required": true
|
|
850
1026
|
},
|
|
@@ -959,6 +1135,28 @@
|
|
|
959
1135
|
"target": {
|
|
960
1136
|
"kind": "effect",
|
|
961
1137
|
"resolver": "rule-effect-by-rule-and-effect-id",
|
|
1138
|
+
"resolutionSpec": {
|
|
1139
|
+
"strategy": "parent-child-array-match",
|
|
1140
|
+
"paths": [
|
|
1141
|
+
"ruleEffects.rules[]",
|
|
1142
|
+
"rules[]",
|
|
1143
|
+
"RuleEffectDefinition"
|
|
1144
|
+
],
|
|
1145
|
+
"parentInputMatchFields": [
|
|
1146
|
+
"ruleId",
|
|
1147
|
+
"id"
|
|
1148
|
+
],
|
|
1149
|
+
"matchFields": [
|
|
1150
|
+
"effectId",
|
|
1151
|
+
"id"
|
|
1152
|
+
],
|
|
1153
|
+
"childArrayField": "effects",
|
|
1154
|
+
"inputMatchFields": [
|
|
1155
|
+
"effectId",
|
|
1156
|
+
"id"
|
|
1157
|
+
],
|
|
1158
|
+
"allowIndex": false
|
|
1159
|
+
},
|
|
962
1160
|
"ambiguityPolicy": "fail",
|
|
963
1161
|
"required": true
|
|
964
1162
|
},
|
|
@@ -1065,6 +1263,28 @@
|
|
|
1065
1263
|
"target": {
|
|
1066
1264
|
"kind": "effect",
|
|
1067
1265
|
"resolver": "rule-effect-by-rule-and-effect-id",
|
|
1266
|
+
"resolutionSpec": {
|
|
1267
|
+
"strategy": "parent-child-array-match",
|
|
1268
|
+
"paths": [
|
|
1269
|
+
"ruleEffects.rules[]",
|
|
1270
|
+
"rules[]",
|
|
1271
|
+
"RuleEffectDefinition"
|
|
1272
|
+
],
|
|
1273
|
+
"parentInputMatchFields": [
|
|
1274
|
+
"ruleId",
|
|
1275
|
+
"id"
|
|
1276
|
+
],
|
|
1277
|
+
"matchFields": [
|
|
1278
|
+
"effectId",
|
|
1279
|
+
"id"
|
|
1280
|
+
],
|
|
1281
|
+
"childArrayField": "effects",
|
|
1282
|
+
"inputMatchFields": [
|
|
1283
|
+
"effectId",
|
|
1284
|
+
"id"
|
|
1285
|
+
],
|
|
1286
|
+
"allowIndex": false
|
|
1287
|
+
},
|
|
1068
1288
|
"ambiguityPolicy": "fail",
|
|
1069
1289
|
"required": true
|
|
1070
1290
|
},
|
|
@@ -1157,6 +1377,23 @@
|
|
|
1157
1377
|
"target": {
|
|
1158
1378
|
"kind": "preset",
|
|
1159
1379
|
"resolver": "default-effect-preset-by-key",
|
|
1380
|
+
"resolutionSpec": {
|
|
1381
|
+
"strategy": "array-match",
|
|
1382
|
+
"paths": [
|
|
1383
|
+
"ruleEffects.rules",
|
|
1384
|
+
"rules",
|
|
1385
|
+
"RuleEffectDefinition"
|
|
1386
|
+
],
|
|
1387
|
+
"matchFields": [
|
|
1388
|
+
"id",
|
|
1389
|
+
"ruleId"
|
|
1390
|
+
],
|
|
1391
|
+
"inputMatchFields": [
|
|
1392
|
+
"ruleId",
|
|
1393
|
+
"id"
|
|
1394
|
+
],
|
|
1395
|
+
"allowIndex": false
|
|
1396
|
+
},
|
|
1160
1397
|
"ambiguityPolicy": "fail",
|
|
1161
1398
|
"required": true
|
|
1162
1399
|
},
|
|
@@ -1278,6 +1515,28 @@
|
|
|
1278
1515
|
"target": {
|
|
1279
1516
|
"kind": "animation",
|
|
1280
1517
|
"resolver": "rule-animation-by-rule-and-effect-id",
|
|
1518
|
+
"resolutionSpec": {
|
|
1519
|
+
"strategy": "parent-child-array-match",
|
|
1520
|
+
"paths": [
|
|
1521
|
+
"ruleEffects.rules[]",
|
|
1522
|
+
"rules[]",
|
|
1523
|
+
"RuleEffectDefinition"
|
|
1524
|
+
],
|
|
1525
|
+
"parentInputMatchFields": [
|
|
1526
|
+
"ruleId",
|
|
1527
|
+
"id"
|
|
1528
|
+
],
|
|
1529
|
+
"matchFields": [
|
|
1530
|
+
"effectId",
|
|
1531
|
+
"id"
|
|
1532
|
+
],
|
|
1533
|
+
"childArrayField": "effects",
|
|
1534
|
+
"inputMatchFields": [
|
|
1535
|
+
"effectId",
|
|
1536
|
+
"id"
|
|
1537
|
+
],
|
|
1538
|
+
"allowIndex": false
|
|
1539
|
+
},
|
|
1281
1540
|
"ambiguityPolicy": "fail",
|
|
1282
1541
|
"required": true
|
|
1283
1542
|
},
|
|
@@ -1466,6 +1725,14 @@
|
|
|
1466
1725
|
"target": {
|
|
1467
1726
|
"kind": "tableDelegation",
|
|
1468
1727
|
"resolver": "praxis-table-authoring-operation",
|
|
1728
|
+
"resolutionSpec": {
|
|
1729
|
+
"strategy": "root-path",
|
|
1730
|
+
"paths": [
|
|
1731
|
+
"delegatedAuthoringOperations",
|
|
1732
|
+
""
|
|
1733
|
+
],
|
|
1734
|
+
"allowIndex": false
|
|
1735
|
+
},
|
|
1469
1736
|
"ambiguityPolicy": "fail",
|
|
1470
1737
|
"required": false
|
|
1471
1738
|
},
|
|
@@ -2009,9 +2276,9 @@
|
|
|
2009
2276
|
{
|
|
2010
2277
|
"chunkIndex": 12,
|
|
2011
2278
|
"chunkKind": "authoring_manifest",
|
|
2012
|
-
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.0.0\",\"componentId\":\"praxis-table-rule-builder\",\"ownerPackage\":\"@praxisui/table-rule-builder\",\"configSchemaId\":\"RuleEffectDefinition\",\"chunkSection\":\"editableTargets\",\"editableTargets\":[{\"kind\":\"rule\",\"resolver\":\"table-rule-by-stable-id\",\"description\":\"Table conditional rule entry keyed by stable rule id before it is passed to praxis-table.\"},{\"kind\":\"condition\",\"resolver\":\"table-rule-condition-by-rule-id\",\"description\":\"Structured condition payload evaluated against table row/column context.\"},{\"kind\":\"effect\",\"resolver\":\"rule-effect-by-rule-and-effect-id\",\"description\":\"Visual effect payload inside a rule, mapped to RuleEffectDefinition.\"},{\"kind\":\"preset\",\"resolver\":\"default-effect-preset-by-key\",\"description\":\"Built-in semantic effect preset from DEFAULT_EFFECT_PRESETS.\"},{\"kind\":\"animation\",\"resolver\":\"rule-animation-by-rule-and-effect-id\",\"description\":\"Animation preset, alias or override resolved through animation-presets.\"},{\"kind\":\"tableDelegation\",\"resolver\":\"praxis-table-authoring-operation\",\"description\":\"Explicit delegation boundary for table-owned configuration changes.\"}]}",
|
|
2279
|
+
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.0.0\",\"componentId\":\"praxis-table-rule-builder\",\"ownerPackage\":\"@praxisui/table-rule-builder\",\"configSchemaId\":\"RuleEffectDefinition\",\"chunkSection\":\"editableTargets\",\"editableTargets\":[{\"kind\":\"rule\",\"resolver\":\"table-rule-by-stable-id\",\"resolutionSpec\":{\"strategy\":\"array-match\",\"paths\":[\"ruleEffects.rules\",\"rules\",\"RuleEffectDefinition\"],\"matchFields\":[\"id\",\"ruleId\"],\"inputMatchFields\":[\"ruleId\",\"id\"],\"allowIndex\":false},\"description\":\"Table conditional rule entry keyed by stable rule id before it is passed to praxis-table.\"},{\"kind\":\"condition\",\"resolver\":\"table-rule-condition-by-rule-id\",\"resolutionSpec\":{\"strategy\":\"array-match\",\"paths\":[\"ruleEffects.rules\",\"rules\",\"RuleEffectDefinition\"],\"matchFields\":[\"id\",\"ruleId\"],\"inputMatchFields\":[\"ruleId\",\"id\"],\"allowIndex\":false},\"description\":\"Structured condition payload evaluated against table row/column context.\"},{\"kind\":\"effect\",\"resolver\":\"rule-effect-by-rule-and-effect-id\",\"resolutionSpec\":{\"strategy\":\"parent-child-array-match\",\"paths\":[\"ruleEffects.rules[]\",\"rules[]\",\"RuleEffectDefinition\"],\"parentInputMatchFields\":[\"ruleId\",\"id\"],\"matchFields\":[\"effectId\",\"id\"],\"childArrayField\":\"effects\",\"inputMatchFields\":[\"effectId\",\"id\"],\"allowIndex\":false},\"description\":\"Visual effect payload inside a rule, mapped to RuleEffectDefinition.\"},{\"kind\":\"preset\",\"resolver\":\"default-effect-preset-by-key\",\"resolutionSpec\":{\"strategy\":\"array-match\",\"paths\":[\"ruleEffects.rules\",\"rules\",\"RuleEffectDefinition\"],\"matchFields\":[\"id\",\"ruleId\"],\"inputMatchFields\":[\"ruleId\",\"id\"],\"allowIndex\":false},\"description\":\"Built-in semantic effect preset from DEFAULT_EFFECT_PRESETS.\"},{\"kind\":\"animation\",\"resolver\":\"rule-animation-by-rule-and-effect-id\",\"resolutionSpec\":{\"strategy\":\"parent-child-array-match\",\"paths\":[\"ruleEffects.rules[]\",\"rules[]\",\"RuleEffectDefinition\"],\"parentInputMatchFields\":[\"ruleId\",\"id\"],\"matchFields\":[\"effectId\",\"id\"],\"childArrayField\":\"effects\",\"inputMatchFields\":[\"effectId\",\"id\"],\"allowIndex\":false},\"description\":\"Animation preset, alias or override resolved through animation-presets.\"},{\"kind\":\"tableDelegation\",\"resolver\":\"praxis-table-authoring-operation\",\"resolutionSpec\":{\"strategy\":\"root-path\",\"paths\":[\"delegatedAuthoringOperations\",\"\"],\"allowIndex\":false},\"description\":\"Explicit delegation boundary for table-owned configuration changes.\"}]}",
|
|
2013
2280
|
"sourcePointer": "projects/praxis-table-rule-builder/src/lib/ai/praxis-table-rule-builder-authoring-manifest.ts",
|
|
2014
|
-
"contentHash": "
|
|
2281
|
+
"contentHash": "9426348d78f411ce8492b99f4559e7674525e6d0180977ee174c01743fb5abc7",
|
|
2015
2282
|
"sourceKind": "component_definition",
|
|
2016
2283
|
"sourceId": "praxis-table-rule-builder",
|
|
2017
2284
|
"corpusVersion": "1.0.0"
|
|
@@ -2019,9 +2286,9 @@
|
|
|
2019
2286
|
{
|
|
2020
2287
|
"chunkIndex": 13,
|
|
2021
2288
|
"chunkKind": "authoring_manifest",
|
|
2022
|
-
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.0.0\",\"componentId\":\"praxis-table-rule-builder\",\"ownerPackage\":\"@praxisui/table-rule-builder\",\"configSchemaId\":\"RuleEffectDefinition\",\"chunkSection\":\"operations\",\"operations\":[{\"operationId\":\"rule.add\",\"title\":\"Add table visual rule\",\"scope\":\"rule\",\"targetKind\":\"rule\",\"target\":{\"kind\":\"rule\",\"resolver\":\"table-rule-by-stable-id\",\"ambiguityPolicy\":\"fail\",\"required\":true},\"inputSchema\":{\"type\":\"object\",\"required\":[\"ruleId\",\"scope\"],\"properties\":{\"ruleId\":{\"type\":\"string\"},\"scope\":{\"enum\":[\"cell\",\"row\",\"column\",\"table\"]},\"columnKey\":{\"type\":\"string\"},\"condition\":{\"type\":\"object\"},\"effect\":{\"type\":\"object\"},\"insertAfterRuleId\":{\"type\":\"string\"}}},\"effects\":[{\"kind\":\"compile-domain-patch\",\"handler\":\"table-rule-builder-rule-add\",\"handlerContract\":{\"reads\":[\"RuleEffectsPanelComponent.scope\",\"RuleEffectDefinition\",\"praxis-table rowConditionalRenderers\",\"praxis-table columns[].conditionalRenderers\"],\"writes\":[\"delegatedAuthoringOperations\",\"RuleEffectDefinition\"],\"identityKeys\":[\"ruleId\"],\"inputSchema\":{\"type\":\"object\",\"required\":[\"ruleId\",\"scope\"],\"properties\":{\"ruleId\":{\"type\":\"string\"},\"scope\":{\"enum\":[\"cell\",\"row\",\"column\",\"table\"]},\"columnKey\":{\"type\":\"string\"},\"condition\":{\"type\":\"object\"},\"effect\":{\"type\":\"object\"},\"insertAfterRuleId\":{\"type\":\"string\"}}},\"failureModes\":[\"duplicate-rule-id\",\"unsupported-scope\",\"column-not-found\",\"condition-invalid\",\"effect-registry-miss\"],\"description\":\"Creates a stable table visual rule and keeps table-owned renderer placement delegated to praxis-table.\"}}],\"validators\":[\"rule-id-unique\",\"scope-supported\",\"condition-table-context-valid\",\"effect-registry-supported\",\"table-owned-config-delegated\"],\"affectedPaths\":[\"delegatedAuthoringOperations\",\"RuleEffectDefinition\"],\"submissionImpact\":\"config-only\",\"preconditions\":[\"rule-effects-panel-loaded\",\"table-authoring-context-known\"],\"destructive\":false,\"requiresConfirmation\":false},{\"operationId\":\"rule.remove\",\"title\":\"Remove table visual rule\",\"scope\":\"rule\",\"targetKind\":\"rule\",\"target\":{\"kind\":\"rule\",\"resolver\":\"table-rule-by-stable-id\",\"ambiguityPolicy\":\"fail\",\"required\":true},\"inputSchema\":{\"type\":\"object\",\"required\":[\"ruleId\"],\"properties\":{\"ruleId\":{\"type\":\"string\"},\"removeEffects\":{\"type\":\"boolean\"},\"preserveCondition\":{\"type\":\"boolean\"}}},\"effects\":[{\"kind\":\"compile-domain-patch\",\"handler\":\"table-rule-builder-rule-remove\",\"handlerContract\":{\"reads\":[\"ruleEffects.rules\",\"ruleEffects.rules[].effect\",\"ruleEffects.rules[].condition\"],\"writes\":[\"delegatedAuthoringOperations\"],\"identityKeys\":[\"ruleId\"],\"inputSchema\":{\"type\":\"object\",\"required\":[\"ruleId\"],\"properties\":{\"ruleId\":{\"type\":\"string\"},\"removeEffects\":{\"type\":\"boolean\"},\"preserveCondition\":{\"type\":\"boolean\"}}},\"failureModes\":[\"rule-not-found\",\"destructive-removal-not-confirmed\",\"orphaned-table-renderer\",\"condition-preserve-not-supported\"],\"description\":\"Removes a governed visual rule by id with confirmation because conditions and effects can be lost.\"}}],\"destructive\":true,\"requiresConfirmation\":true,\"validators\":[\"rule-exists\",\"destructive-removal-confirmed\",\"table-renderer-references-clean\",\"table-owned-config-delegated\"],\"affectedPaths\":[\"delegatedAuthoringOperations\"],\"submissionImpact\":\"config-only\",\"preconditions\":[\"rule-effects-panel-loaded\",\"explicit-confirmation-provided\"]},{\"operationId\":\"condition.set\",\"title\":\"Set table rule condition\",\"scope\":\"rule\",\"targetKind\":\"condition\",\"target\":{\"kind\":\"condition\",\"resolver\":\"table-rule-condition-by-rule-id\",\"ambiguityPolicy\":\"fail\",\"required\":true},\"inputSchema\":{\"type\":\"object\",\"required\":[\"ruleId\",\"condition\"],\"properties\":{\"ruleId\":{\"type\":\"string\"},\"condition\":{\"type\":\"object\"},\"scope\":{\"enum\":[\"cell\",\"row\",\"column\",\"table\"]},\"columnKey\":{\"type\":\"string\"},\"mode\":{\"enum\":[\"replace\",\"merge\"]}}},\"effects\":[{\"kind\":\"compile-domain-patch\",\"handler\":\"table-rule-builder-condition-set\",\"handlerContract\":{\"reads\":[\"ruleEffects.rules\",\"praxis-table dataSource fields\",\"praxis-table columns\"],\"writes\":[\"delegatedAuthoringOperations\"],\"identityKeys\":[\"ruleId\"],\"inputSchema\":{\"type\":\"object\",\"required\":[\"ruleId\",\"condition\"],\"properties\":{\"ruleId\":{\"type\":\"string\"},\"condition\":{\"type\":\"object\"},\"scope\":{\"enum\":[\"cell\",\"row\",\"column\",\"table\"]},\"columnKey\":{\"type\":\"string\"},\"mode\":{\"enum\":[\"replace\",\"merge\"]}}},\"failureModes\":[\"rule-not-found\",\"condition-invalid\",\"field-not-in-table-context\",\"column-not-found\"],\"description\":\"Applies a structured table row/column condition without creating a parallel table DSL.\"}}],\"validators\":[\"rule-exists\",\"condition-table-context-valid\",\"condition-fields-known\",\"condition-operators-supported\"],\"affectedPaths\":[\"delegatedAuthoringOperations\"],\"submissionImpact\":\"config-only\",\"preconditions\":[\"rule-effects-panel-loaded\",\"table-authoring-context-known\"],\"destructive\":false,\"requiresConfirmation\":false},{\"operationId\":\"effect.add\",\"title\":\"Add visual effect to rule\",\"scope\":\"skin\",\"targetKind\":\"effect\",\"target\":{\"kind\":\"effect\",\"resolver\":\"rule-effect-by-rule-and-effect-id\",\"
|
|
2289
|
+
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.0.0\",\"componentId\":\"praxis-table-rule-builder\",\"ownerPackage\":\"@praxisui/table-rule-builder\",\"configSchemaId\":\"RuleEffectDefinition\",\"chunkSection\":\"operations\",\"operations\":[{\"operationId\":\"rule.add\",\"title\":\"Add table visual rule\",\"scope\":\"rule\",\"targetKind\":\"rule\",\"target\":{\"kind\":\"rule\",\"resolver\":\"table-rule-by-stable-id\",\"resolutionSpec\":{\"strategy\":\"array-match\",\"paths\":[\"ruleEffects.rules\",\"rules\",\"RuleEffectDefinition\"],\"matchFields\":[\"id\",\"ruleId\"],\"inputMatchFields\":[\"ruleId\",\"id\"],\"allowIndex\":false},\"ambiguityPolicy\":\"fail\",\"required\":true},\"inputSchema\":{\"type\":\"object\",\"required\":[\"ruleId\",\"scope\"],\"properties\":{\"ruleId\":{\"type\":\"string\"},\"scope\":{\"enum\":[\"cell\",\"row\",\"column\",\"table\"]},\"columnKey\":{\"type\":\"string\"},\"condition\":{\"type\":\"object\"},\"effect\":{\"type\":\"object\"},\"insertAfterRuleId\":{\"type\":\"string\"}}},\"effects\":[{\"kind\":\"compile-domain-patch\",\"handler\":\"table-rule-builder-rule-add\",\"handlerContract\":{\"reads\":[\"RuleEffectsPanelComponent.scope\",\"RuleEffectDefinition\",\"praxis-table rowConditionalRenderers\",\"praxis-table columns[].conditionalRenderers\"],\"writes\":[\"delegatedAuthoringOperations\",\"RuleEffectDefinition\"],\"identityKeys\":[\"ruleId\"],\"inputSchema\":{\"type\":\"object\",\"required\":[\"ruleId\",\"scope\"],\"properties\":{\"ruleId\":{\"type\":\"string\"},\"scope\":{\"enum\":[\"cell\",\"row\",\"column\",\"table\"]},\"columnKey\":{\"type\":\"string\"},\"condition\":{\"type\":\"object\"},\"effect\":{\"type\":\"object\"},\"insertAfterRuleId\":{\"type\":\"string\"}}},\"failureModes\":[\"duplicate-rule-id\",\"unsupported-scope\",\"column-not-found\",\"condition-invalid\",\"effect-registry-miss\"],\"description\":\"Creates a stable table visual rule and keeps table-owned renderer placement delegated to praxis-table.\"}}],\"validators\":[\"rule-id-unique\",\"scope-supported\",\"condition-table-context-valid\",\"effect-registry-supported\",\"table-owned-config-delegated\"],\"affectedPaths\":[\"delegatedAuthoringOperations\",\"RuleEffectDefinition\"],\"submissionImpact\":\"config-only\",\"preconditions\":[\"rule-effects-panel-loaded\",\"table-authoring-context-known\"],\"destructive\":false,\"requiresConfirmation\":false},{\"operationId\":\"rule.remove\",\"title\":\"Remove table visual rule\",\"scope\":\"rule\",\"targetKind\":\"rule\",\"target\":{\"kind\":\"rule\",\"resolver\":\"table-rule-by-stable-id\",\"resolutionSpec\":{\"strategy\":\"array-match\",\"paths\":[\"ruleEffects.rules\",\"rules\",\"RuleEffectDefinition\"],\"matchFields\":[\"id\",\"ruleId\"],\"inputMatchFields\":[\"ruleId\",\"id\"],\"allowIndex\":false},\"ambiguityPolicy\":\"fail\",\"required\":true},\"inputSchema\":{\"type\":\"object\",\"required\":[\"ruleId\"],\"properties\":{\"ruleId\":{\"type\":\"string\"},\"removeEffects\":{\"type\":\"boolean\"},\"preserveCondition\":{\"type\":\"boolean\"}}},\"effects\":[{\"kind\":\"compile-domain-patch\",\"handler\":\"table-rule-builder-rule-remove\",\"handlerContract\":{\"reads\":[\"ruleEffects.rules\",\"ruleEffects.rules[].effect\",\"ruleEffects.rules[].condition\"],\"writes\":[\"delegatedAuthoringOperations\"],\"identityKeys\":[\"ruleId\"],\"inputSchema\":{\"type\":\"object\",\"required\":[\"ruleId\"],\"properties\":{\"ruleId\":{\"type\":\"string\"},\"removeEffects\":{\"type\":\"boolean\"},\"preserveCondition\":{\"type\":\"boolean\"}}},\"failureModes\":[\"rule-not-found\",\"destructive-removal-not-confirmed\",\"orphaned-table-renderer\",\"condition-preserve-not-supported\"],\"description\":\"Removes a governed visual rule by id with confirmation because conditions and effects can be lost.\"}}],\"destructive\":true,\"requiresConfirmation\":true,\"validators\":[\"rule-exists\",\"destructive-removal-confirmed\",\"table-renderer-references-clean\",\"table-owned-config-delegated\"],\"affectedPaths\":[\"delegatedAuthoringOperations\"],\"submissionImpact\":\"config-only\",\"preconditions\":[\"rule-effects-panel-loaded\",\"explicit-confirmation-provided\"]},{\"operationId\":\"condition.set\",\"title\":\"Set table rule condition\",\"scope\":\"rule\",\"targetKind\":\"condition\",\"target\":{\"kind\":\"condition\",\"resolver\":\"table-rule-condition-by-rule-id\",\"resolutionSpec\":{\"strategy\":\"array-match\",\"paths\":[\"ruleEffects.rules\",\"rules\",\"RuleEffectDefinition\"],\"matchFields\":[\"id\",\"ruleId\"],\"inputMatchFields\":[\"ruleId\",\"id\"],\"allowIndex\":false},\"ambiguityPolicy\":\"fail\",\"required\":true},\"inputSchema\":{\"type\":\"object\",\"required\":[\"ruleId\",\"condition\"],\"properties\":{\"ruleId\":{\"type\":\"string\"},\"condition\":{\"type\":\"object\"},\"scope\":{\"enum\":[\"cell\",\"row\",\"column\",\"table\"]},\"columnKey\":{\"type\":\"string\"},\"mode\":{\"enum\":[\"replace\",\"merge\"]}}},\"effects\":[{\"kind\":\"compile-domain-patch\",\"handler\":\"table-rule-builder-condition-set\",\"handlerContract\":{\"reads\":[\"ruleEffects.rules\",\"praxis-table dataSource fields\",\"praxis-table columns\"],\"writes\":[\"delegatedAuthoringOperations\"],\"identityKeys\":[\"ruleId\"],\"inputSchema\":{\"type\":\"object\",\"required\":[\"ruleId\",\"condition\"],\"properties\":{\"ruleId\":{\"type\":\"string\"},\"condition\":{\"type\":\"object\"},\"scope\":{\"enum\":[\"cell\",\"row\",\"column\",\"table\"]},\"columnKey\":{\"type\":\"string\"},\"mode\":{\"enum\":[\"replace\",\"merge\"]}}},\"failureModes\":[\"rule-not-found\",\"condition-invalid\",\"field-not-in-table-context\",\"column-not-found\"],\"description\":\"Applies a structured table row/column condition without creating a parallel table DSL.\"}}],\"validators\":[\"rule-exists\",\"condition-table-context-valid\",\"condition-fields-known\",\"condition-operators-supported\"],\"affectedPaths\":[\"delegatedAuthoringOperations\"],\"submissionImpact\":\"config-only\",\"preconditions\":[\"rule-effects-panel-loaded\",\"table-authoring-context-known\"],\"destructive\":false,\"requiresConfirmation\":false},{\"operationId\":\"effect.add\",\"title\":\"Add visual effect to rule\",\"scope\":\"skin\",\"targetKind\":\"effect\",\"target\":{\"kind\":\"effect\",\"resolver\":\"rule-effect-by-rule-and-effect-id\",\"resolutionSpec\":{\"strategy\":\"parent-child-array-match\",\"paths\":[\"ruleEffects.rules[]\",\"rules[]\",\"RuleEffectDefinition\"],\"parentInputMatchFields\":[\"ruleId\",\"id\"],\"matchFields\":[\"effectId\",\"id\"],\"childArrayField\":\"effects\",\"inputMatchFields\":[\"effectId\",\"id\"],\"allowIndex\":false},\"ambiguityPolicy\":\"fail\",\"required\":true},\"inputSchema\":{\"type\":\"object\",\"required\":[\"ruleId\",\"effectId\",\"effectType\"],\"properties\":{\"ruleId\":{\"type\":\"string\"},\"effectId\":{\"type\":\"string\"},\"effectType\":{\"enum\":[\"estilo\",\"layout\",\"icone\",\"fundo\",\"animacao\",\"tooltip\"]},\"payload\":{\"type\":\"object\"}}},\"effects\":[{\"kind\":\"compile-domain-patch\",\"handler\":\"table-rule-builder-effect-add\",\"handlerContract\":{\"reads\":[\"EffectRegistryService.list\",\"RuleEffectDefinition\",\"toCellClassAndStyle\"],\"writes\":[\"RuleEffectDefinition\"],\"identityKeys\":[\"ruleId\",\"effectId\"],\"inputSchema\":{\"type\":\"object\",\"required\":[\"ruleId\",\"effectId\",\"effectType\"],\"properties\":{\"ruleId\":{\"type\":\"string\"},\"effectId\":{\"type\":\"string\"},\"effectType\":{\"enum\":[\"estilo\",\"layout\",\"icone\",\"fundo\",\"animacao\",\"tooltip\"]},\"payload\":{\"type\":\"object\"}}},\"failureModes\":[\"rule-not-found\",\"duplicate-effect-id\",\"unsupported-effect-type\",\"unsafe-style-value\"],\"description\":\"Adds a governed visual effect whose type is backed by the effect registry and RuleEffectDefinition.\"}}],\"validators\":[\"rule-exists\",\"effect-id-unique\",\"effect-registry-supported\",\"style-values-safe\",\"preview-class-not-persisted\"],\"affectedPaths\":[\"RuleEffectDefinition\"],\"submissionImpact\":\"visual-only\",\"preconditions\":[\"rule-effects-panel-loaded\",\"effect-registry-initialized\"],\"destructive\":false,\"requiresConfirmation\":false}]}",
|
|
2023
2290
|
"sourcePointer": "projects/praxis-table-rule-builder/src/lib/ai/praxis-table-rule-builder-authoring-manifest.ts",
|
|
2024
|
-
"contentHash": "
|
|
2291
|
+
"contentHash": "c8febc1f3834fc4d55eca0d8f3b8e692e176c012c9bf24bd2a1d7cb54907741a",
|
|
2025
2292
|
"sourceKind": "component_definition",
|
|
2026
2293
|
"sourceId": "praxis-table-rule-builder",
|
|
2027
2294
|
"corpusVersion": "1.0.0"
|
|
@@ -2029,9 +2296,9 @@
|
|
|
2029
2296
|
{
|
|
2030
2297
|
"chunkIndex": 14,
|
|
2031
2298
|
"chunkKind": "authoring_manifest",
|
|
2032
|
-
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.0.0\",\"componentId\":\"praxis-table-rule-builder\",\"ownerPackage\":\"@praxisui/table-rule-builder\",\"configSchemaId\":\"RuleEffectDefinition\",\"chunkSection\":\"operations\",\"operations\":[{\"operationId\":\"effect.
|
|
2299
|
+
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.0.0\",\"componentId\":\"praxis-table-rule-builder\",\"ownerPackage\":\"@praxisui/table-rule-builder\",\"configSchemaId\":\"RuleEffectDefinition\",\"chunkSection\":\"operations\",\"operations\":[{\"operationId\":\"effect.update\",\"title\":\"Update visual effect payload\",\"scope\":\"skin\",\"targetKind\":\"effect\",\"target\":{\"kind\":\"effect\",\"resolver\":\"rule-effect-by-rule-and-effect-id\",\"resolutionSpec\":{\"strategy\":\"parent-child-array-match\",\"paths\":[\"ruleEffects.rules[]\",\"rules[]\",\"RuleEffectDefinition\"],\"parentInputMatchFields\":[\"ruleId\",\"id\"],\"matchFields\":[\"effectId\",\"id\"],\"childArrayField\":\"effects\",\"inputMatchFields\":[\"effectId\",\"id\"],\"allowIndex\":false},\"ambiguityPolicy\":\"fail\",\"required\":true},\"inputSchema\":{\"type\":\"object\",\"required\":[\"ruleId\",\"effectId\",\"payload\"],\"properties\":{\"ruleId\":{\"type\":\"string\"},\"effectId\":{\"type\":\"string\"},\"payload\":{\"type\":\"object\"},\"mode\":{\"enum\":[\"replace\",\"merge\"]}}},\"effects\":[{\"kind\":\"compile-domain-patch\",\"handler\":\"table-rule-builder-effect-update\",\"handlerContract\":{\"reads\":[\"ruleEffects.rules[].effect\",\"EffectRegistryService.list\",\"toCellClassAndStyle\"],\"writes\":[\"RuleEffectDefinition\"],\"identityKeys\":[\"ruleId\",\"effectId\"],\"inputSchema\":{\"type\":\"object\",\"required\":[\"ruleId\",\"effectId\",\"payload\"],\"properties\":{\"ruleId\":{\"type\":\"string\"},\"effectId\":{\"type\":\"string\"},\"payload\":{\"type\":\"object\"},\"mode\":{\"enum\":[\"replace\",\"merge\"]}}},\"failureModes\":[\"rule-not-found\",\"effect-not-found\",\"unsupported-effect-type\",\"unsafe-style-value\"],\"description\":\"Updates a visual effect payload while preserving its stable effect id and registry-backed type.\"}}],\"validators\":[\"rule-exists\",\"effect-exists\",\"effect-registry-supported\",\"style-values-safe\",\"runtime-effect-compilable\"],\"affectedPaths\":[\"RuleEffectDefinition\"],\"submissionImpact\":\"visual-only\",\"preconditions\":[\"rule-effects-panel-loaded\",\"effect-registry-initialized\"],\"destructive\":false,\"requiresConfirmation\":false},{\"operationId\":\"effect.remove\",\"title\":\"Remove visual effect from rule\",\"scope\":\"skin\",\"targetKind\":\"effect\",\"target\":{\"kind\":\"effect\",\"resolver\":\"rule-effect-by-rule-and-effect-id\",\"resolutionSpec\":{\"strategy\":\"parent-child-array-match\",\"paths\":[\"ruleEffects.rules[]\",\"rules[]\",\"RuleEffectDefinition\"],\"parentInputMatchFields\":[\"ruleId\",\"id\"],\"matchFields\":[\"effectId\",\"id\"],\"childArrayField\":\"effects\",\"inputMatchFields\":[\"effectId\",\"id\"],\"allowIndex\":false},\"ambiguityPolicy\":\"fail\",\"required\":true},\"inputSchema\":{\"type\":\"object\",\"required\":[\"ruleId\",\"effectId\"],\"properties\":{\"ruleId\":{\"type\":\"string\"},\"effectId\":{\"type\":\"string\"},\"removeEmptyRule\":{\"type\":\"boolean\"}}},\"effects\":[{\"kind\":\"compile-domain-patch\",\"handler\":\"table-rule-builder-effect-remove\",\"handlerContract\":{\"reads\":[\"ruleEffects.rules\",\"ruleEffects.rules[].effect\"],\"writes\":[\"RuleEffectDefinition\",\"delegatedAuthoringOperations\"],\"identityKeys\":[\"ruleId\",\"effectId\"],\"inputSchema\":{\"type\":\"object\",\"required\":[\"ruleId\",\"effectId\"],\"properties\":{\"ruleId\":{\"type\":\"string\"},\"effectId\":{\"type\":\"string\"},\"removeEmptyRule\":{\"type\":\"boolean\"}}},\"failureModes\":[\"rule-not-found\",\"effect-not-found\",\"destructive-removal-not-confirmed\",\"empty-rule-created\"],\"description\":\"Removes one visual effect and optionally removes the empty rule, requiring confirmation for destructive cleanup.\"}}],\"destructive\":true,\"requiresConfirmation\":true,\"validators\":[\"rule-exists\",\"effect-exists\",\"destructive-removal-confirmed\",\"empty-rule-policy-valid\"],\"affectedPaths\":[\"RuleEffectDefinition\",\"delegatedAuthoringOperations\"],\"submissionImpact\":\"visual-only\",\"preconditions\":[\"rule-effects-panel-loaded\",\"explicit-confirmation-provided\"]},{\"operationId\":\"preset.apply\",\"title\":\"Apply semantic effect preset\",\"scope\":\"skin\",\"targetKind\":\"preset\",\"target\":{\"kind\":\"preset\",\"resolver\":\"default-effect-preset-by-key\",\"resolutionSpec\":{\"strategy\":\"array-match\",\"paths\":[\"ruleEffects.rules\",\"rules\",\"RuleEffectDefinition\"],\"matchFields\":[\"id\",\"ruleId\"],\"inputMatchFields\":[\"ruleId\",\"id\"],\"allowIndex\":false},\"ambiguityPolicy\":\"fail\",\"required\":true},\"inputSchema\":{\"type\":\"object\",\"required\":[\"ruleId\",\"presetKey\"],\"properties\":{\"ruleId\":{\"type\":\"string\"},\"presetKey\":{\"enum\":[\"aprovado\",\"alerta\",\"erro\",\"info\"]},\"scope\":{\"enum\":[\"cell\",\"row\",\"column\",\"table\"]},\"mergeWithExisting\":{\"type\":\"boolean\"}}},\"effects\":[{\"kind\":\"compile-domain-patch\",\"handler\":\"table-rule-builder-preset-apply\",\"handlerContract\":{\"reads\":[\"DEFAULT_EFFECT_PRESETS\",\"RuleEffectsPanelComponent.applyPreset\",\"RuleEffectDefinition\"],\"writes\":[\"RuleEffectDefinition\",\"RuleEffectsPanelComponent.effectsForm\",\"valueChange\"],\"identityKeys\":[\"ruleId\",\"presetKey\"],\"inputSchema\":{\"type\":\"object\",\"required\":[\"ruleId\",\"presetKey\"],\"properties\":{\"ruleId\":{\"type\":\"string\"},\"presetKey\":{\"enum\":[\"aprovado\",\"alerta\",\"erro\",\"info\"]},\"scope\":{\"enum\":[\"cell\",\"row\",\"column\",\"table\"]},\"mergeWithExisting\":{\"type\":\"boolean\"}}},\"failureModes\":[\"rule-not-found\",\"preset-not-found\",\"scope-override-invalid\",\"preset-effect-not-compilable\"],\"description\":\"Applies a built-in semantic preset and normalizes its scope through the rule effects panel.\"}}],\"validators\":[\"rule-exists\",\"preset-key-known\",\"preset-effect-compilable\",\"scope-supported\"],\"affectedPaths\":[\"RuleEffectDefinition\",\"RuleEffectsPanelComponent.effectsForm\",\"valueChange\"],\"submissionImpact\":\"visual-only\",\"preconditions\":[\"rule-effects-panel-loaded\",\"default-presets-loaded\"],\"destructive\":false,\"requiresConfirmation\":false}]}",
|
|
2033
2300
|
"sourcePointer": "projects/praxis-table-rule-builder/src/lib/ai/praxis-table-rule-builder-authoring-manifest.ts",
|
|
2034
|
-
"contentHash": "
|
|
2301
|
+
"contentHash": "b28ad54f36adfc16eabec56c4cb623a3629cda82ab5f701ab0f79075561ca2c5",
|
|
2035
2302
|
"sourceKind": "component_definition",
|
|
2036
2303
|
"sourceId": "praxis-table-rule-builder",
|
|
2037
2304
|
"corpusVersion": "1.0.0"
|
|
@@ -2039,6 +2306,16 @@
|
|
|
2039
2306
|
{
|
|
2040
2307
|
"chunkIndex": 15,
|
|
2041
2308
|
"chunkKind": "authoring_manifest",
|
|
2309
|
+
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.0.0\",\"componentId\":\"praxis-table-rule-builder\",\"ownerPackage\":\"@praxisui/table-rule-builder\",\"configSchemaId\":\"RuleEffectDefinition\",\"chunkSection\":\"operations\",\"operations\":[{\"operationId\":\"animation.set\",\"title\":\"Set rule animation\",\"scope\":\"skin\",\"targetKind\":\"animation\",\"target\":{\"kind\":\"animation\",\"resolver\":\"rule-animation-by-rule-and-effect-id\",\"resolutionSpec\":{\"strategy\":\"parent-child-array-match\",\"paths\":[\"ruleEffects.rules[]\",\"rules[]\",\"RuleEffectDefinition\"],\"parentInputMatchFields\":[\"ruleId\",\"id\"],\"matchFields\":[\"effectId\",\"id\"],\"childArrayField\":\"effects\",\"inputMatchFields\":[\"effectId\",\"id\"],\"allowIndex\":false},\"ambiguityPolicy\":\"fail\",\"required\":true},\"inputSchema\":{\"type\":\"object\",\"required\":[\"ruleId\",\"animation\"],\"properties\":{\"ruleId\":{\"type\":\"string\"},\"effectId\":{\"type\":\"string\"},\"animation\":{\"type\":\"object\",\"properties\":{\"enabled\":{\"type\":\"boolean\"},\"preset\":{\"enum\":[null,null]},\"type\":{\"enum\":[\"pulse\",\"blink\",\"grow\",\"fade\",\"slide-in\",\"border-pulse\"]},\"trigger\":{\"enum\":[\"onChange\",\"onAppear\",\"onHover\",\"onConditionEnter\",\"onConditionExit\",\"onDataRefresh\"]},\"repeat\":{},\"durationMs\":{\"type\":\"number\"},\"delayMs\":{\"type\":\"number\"},\"intensity\":{\"enum\":[\"subtle\",\"normal\",\"strong\"]}}}}},\"effects\":[{\"kind\":\"compile-domain-patch\",\"handler\":\"table-rule-builder-animation-set\",\"handlerContract\":{\"reads\":[\"RULE_ANIMATION_PRESETS\",\"RULE_ANIMATION_PRESET_ALIASES\",\"resolveRuleAnimationConfig\",\"RuleEffectDefinition.animation\"],\"writes\":[\"RuleEffectDefinition.animation\",\"RuleEffectsPanelComponent.effectsForm.animation\",\"valueChange\"],\"identityKeys\":[\"ruleId\",\"effectId\"],\"inputSchema\":{\"type\":\"object\",\"required\":[\"ruleId\",\"animation\"],\"properties\":{\"ruleId\":{\"type\":\"string\"},\"effectId\":{\"type\":\"string\"},\"animation\":{\"type\":\"object\",\"properties\":{\"enabled\":{\"type\":\"boolean\"},\"preset\":{\"enum\":[null,null]},\"type\":{\"enum\":[\"pulse\",\"blink\",\"grow\",\"fade\",\"slide-in\",\"border-pulse\"]},\"trigger\":{\"enum\":[\"onChange\",\"onAppear\",\"onHover\",\"onConditionEnter\",\"onConditionExit\",\"onDataRefresh\"]},\"repeat\":{},\"durationMs\":{\"type\":\"number\"},\"delayMs\":{\"type\":\"number\"},\"intensity\":{\"enum\":[\"subtle\",\"normal\",\"strong\"]}}}}},\"failureModes\":[\"rule-not-found\",\"effect-not-found\",\"animation-preset-unknown\",\"animation-override-invalid\",\"reduced-motion-policy-violated\"],\"description\":\"Sets a semantic animation preset or override that resolves fail-closed through the animation preset catalog.\"}}],\"validators\":[\"rule-exists\",\"animation-preset-known\",\"animation-alias-known\",\"animation-override-valid\",\"animation-runtime-supported\"],\"affectedPaths\":[\"RuleEffectDefinition.animation\",\"RuleEffectsPanelComponent.effectsForm.animation\",\"valueChange\"],\"submissionImpact\":\"visual-only\",\"preconditions\":[\"rule-effects-panel-loaded\",\"animation-presets-loaded\"],\"destructive\":false,\"requiresConfirmation\":false},{\"operationId\":\"tableIntegration.delegate\",\"title\":\"Delegate table-owned configuration\",\"scope\":\"global\",\"targetKind\":\"tableDelegation\",\"target\":{\"kind\":\"tableDelegation\",\"resolver\":\"praxis-table-authoring-operation\",\"resolutionSpec\":{\"strategy\":\"root-path\",\"paths\":[\"delegatedAuthoringOperations\",\"\"],\"allowIndex\":false},\"ambiguityPolicy\":\"fail\",\"required\":false},\"inputSchema\":{\"type\":\"object\",\"required\":[\"tableOperationId\",\"reason\"],\"properties\":{\"tableOperationId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"tableTarget\":{\"type\":\"object\"},\"tableParams\":{\"type\":\"object\"}}},\"effects\":[{\"kind\":\"compile-domain-patch\",\"handler\":\"table-rule-builder-table-delegate\",\"handlerContract\":{\"reads\":[\"PRAXIS_TABLE_AUTHORING_MANIFEST\",\"TableConfigV2\",\"tableOperationId\"],\"writes\":[\"delegatedAuthoringOperations\"],\"identityKeys\":[\"tableOperationId\"],\"inputSchema\":{\"type\":\"object\",\"required\":[\"tableOperationId\",\"reason\"],\"properties\":{\"tableOperationId\":{\"type\":\"string\"},\"reason\":{\"type\":\"string\"},\"tableTarget\":{\"type\":\"object\"},\"tableParams\":{\"type\":\"object\"}}},\"failureModes\":[\"table-operation-not-found\",\"table-target-invalid\",\"attempted-local-table-config-write\"],\"description\":\"Records that table-owned config such as renderer placement, columns, ordering or data binding must route through praxis-table.\"}}],\"validators\":[\"table-manifest-operation-known\",\"table-target-valid\",\"no-local-table-config-write\",\"table-owned-config-delegated\"],\"affectedPaths\":[\"delegatedAuthoringOperations\"],\"submissionImpact\":\"none\",\"preconditions\":[\"praxis-table-manifest-available\"],\"destructive\":false,\"requiresConfirmation\":false}]}",
|
|
2310
|
+
"sourcePointer": "projects/praxis-table-rule-builder/src/lib/ai/praxis-table-rule-builder-authoring-manifest.ts",
|
|
2311
|
+
"contentHash": "15d5af09f2f47049eae8e9a17a8e528af855099741a2f0d6194a9596f24487f3",
|
|
2312
|
+
"sourceKind": "component_definition",
|
|
2313
|
+
"sourceId": "praxis-table-rule-builder",
|
|
2314
|
+
"corpusVersion": "1.0.0"
|
|
2315
|
+
},
|
|
2316
|
+
{
|
|
2317
|
+
"chunkIndex": 16,
|
|
2318
|
+
"chunkKind": "authoring_manifest",
|
|
2042
2319
|
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.0.0\",\"componentId\":\"praxis-table-rule-builder\",\"ownerPackage\":\"@praxisui/table-rule-builder\",\"configSchemaId\":\"RuleEffectDefinition\",\"chunkSection\":\"validators\",\"validators\":[{\"validatorId\":\"rule-id-unique\",\"level\":\"error\",\"code\":\"TABLE_RULE_ID_UNIQUE\",\"description\":\"Rule ids must be unique and stable.\"},{\"validatorId\":\"scope-supported\",\"level\":\"error\",\"code\":\"TABLE_RULE_SCOPE_SUPPORTED\",\"description\":\"Rule scope must be one of cell, row, column or table.\"},{\"validatorId\":\"condition-table-context-valid\",\"level\":\"error\",\"code\":\"TABLE_RULE_CONDITION_CONTEXT_VALID\",\"description\":\"Conditions must reference valid table row or column context.\"},{\"validatorId\":\"effect-registry-supported\",\"level\":\"error\",\"code\":\"TABLE_RULE_EFFECT_REGISTRY_SUPPORTED\",\"description\":\"Effects must be backed by EffectRegistryService editor categories.\"},{\"validatorId\":\"table-owned-config-delegated\",\"level\":\"error\",\"code\":\"TABLE_RULE_TABLE_CONFIG_DELEGATED\",\"description\":\"Table-owned configuration changes must delegate to praxis-table.\"},{\"validatorId\":\"rule-exists\",\"level\":\"error\",\"code\":\"TABLE_RULE_EXISTS\",\"description\":\"The targeted rule must exist.\"},{\"validatorId\":\"destructive-removal-confirmed\",\"level\":\"error\",\"code\":\"TABLE_RULE_DESTRUCTIVE_CONFIRMED\",\"description\":\"Destructive rule or effect removal requires explicit confirmation.\"},{\"validatorId\":\"table-renderer-references-clean\",\"level\":\"error\",\"code\":\"TABLE_RULE_RENDERER_REFERENCES_CLEAN\",\"description\":\"Removing a rule must not leave stale table renderer references.\"},{\"validatorId\":\"condition-fields-known\",\"level\":\"error\",\"code\":\"TABLE_RULE_CONDITION_FIELDS_KNOWN\",\"description\":\"Condition fields must exist in table row data or column metadata.\"},{\"validatorId\":\"condition-operators-supported\",\"level\":\"error\",\"code\":\"TABLE_RULE_CONDITION_OPERATORS_SUPPORTED\",\"description\":\"Condition operators must be supported by table rule semantics.\"},{\"validatorId\":\"effect-id-unique\",\"level\":\"error\",\"code\":\"TABLE_RULE_EFFECT_ID_UNIQUE\",\"description\":\"Effect ids must be unique within a rule.\"},{\"validatorId\":\"style-values-safe\",\"level\":\"error\",\"code\":\"TABLE_RULE_STYLE_VALUES_SAFE\",\"description\":\"CSS class and style values must be safe for runtime rendering.\"},{\"validatorId\":\"preview-class-not-persisted\",\"level\":\"error\",\"code\":\"TABLE_RULE_PREVIEW_CLASS_NOT_PERSISTED\",\"description\":\"Preview-only animation classes must not leak into persisted payload mapping.\"},{\"validatorId\":\"effect-exists\",\"level\":\"error\",\"code\":\"TABLE_RULE_EFFECT_EXISTS\",\"description\":\"The targeted effect must exist.\"},{\"validatorId\":\"runtime-effect-compilable\",\"level\":\"error\",\"code\":\"TABLE_RULE_RUNTIME_EFFECT_COMPILABLE\",\"description\":\"Effect payload must compile through toCellClassAndStyle or table renderer semantics.\"},{\"validatorId\":\"empty-rule-policy-valid\",\"level\":\"warning\",\"code\":\"TABLE_RULE_EMPTY_RULE_POLICY_VALID\",\"description\":\"Removing the last effect must follow the requested empty-rule policy.\"},{\"validatorId\":\"preset-key-known\",\"level\":\"error\",\"code\":\"TABLE_RULE_PRESET_KEY_KNOWN\",\"description\":\"Preset key must exist in DEFAULT_EFFECT_PRESETS.\"},{\"validatorId\":\"preset-effect-compilable\",\"level\":\"error\",\"code\":\"TABLE_RULE_PRESET_EFFECT_COMPILABLE\",\"description\":\"Preset payload must compile to RuleEffectDefinition.\"},{\"validatorId\":\"animation-preset-known\",\"level\":\"error\",\"code\":\"TABLE_RULE_ANIMATION_PRESET_KNOWN\",\"description\":\"Animation preset must be canonical or explicitly aliased.\"},{\"validatorId\":\"animation-alias-known\",\"level\":\"error\",\"code\":\"TABLE_RULE_ANIMATION_ALIAS_KNOWN\",\"description\":\"Animation aliases must resolve to canonical presets.\"},{\"validatorId\":\"animation-override-valid\",\"level\":\"error\",\"code\":\"TABLE_RULE_ANIMATION_OVERRIDE_VALID\",\"description\":\"Animation overrides must normalize to supported type, trigger, repeat and intensity values.\"},{\"validatorId\":\"animation-runtime-supported\",\"level\":\"error\",\"code\":\"TABLE_RULE_ANIMATION_RUNTIME_SUPPORTED\",\"description\":\"Animation payload must be supported by row and column conditional renderers.\"},{\"validatorId\":\"table-manifest-operation-known\",\"level\":\"error\",\"code\":\"TABLE_RULE_TABLE_OPERATION_KNOWN\",\"description\":\"Delegated table operation must exist in the praxis-table authoring manifest.\"},{\"validatorId\":\"table-target-valid\",\"level\":\"error\",\"code\":\"TABLE_RULE_TABLE_TARGET_VALID\",\"description\":\"Delegated table target must be resolvable by praxis-table.\"},{\"validatorId\":\"no-local-table-config-write\",\"level\":\"error\",\"code\":\"TABLE_RULE_NO_LOCAL_TABLE_CONFIG_WRITE\",\"description\":\"Rule builder operations must not write TableConfig directly.\"}]}",
|
|
2043
2320
|
"sourcePointer": "projects/praxis-table-rule-builder/src/lib/ai/praxis-table-rule-builder-authoring-manifest.ts",
|
|
2044
2321
|
"contentHash": "9c10bd12733c93a105d6c71d55f807f4f794230c85e31fbc99924f28cd306feb",
|
|
@@ -2047,7 +2324,7 @@
|
|
|
2047
2324
|
"corpusVersion": "1.0.0"
|
|
2048
2325
|
},
|
|
2049
2326
|
{
|
|
2050
|
-
"chunkIndex":
|
|
2327
|
+
"chunkIndex": 17,
|
|
2051
2328
|
"chunkKind": "authoring_manifest",
|
|
2052
2329
|
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.0.0\",\"componentId\":\"praxis-table-rule-builder\",\"ownerPackage\":\"@praxisui/table-rule-builder\",\"configSchemaId\":\"RuleEffectDefinition\",\"chunkSection\":\"roundTripRequirements\",\"roundTripRequirements\":[\"RuleEffectDefinition is the local source of truth for the effects panel.\",\"Rules that affect rowConditionalRenderers or columns[].conditionalRenderers must delegate table-owned placement to praxis-table.\",\"Rule and effect identity must use stable ruleId/effectId keys; array indexes are not canonical identities.\",\"Animation presets and aliases must resolve through RULE_ANIMATION_PRESETS and RULE_ANIMATION_PRESET_ALIASES before persistence.\",\"Preview-only animation classes must be omitted from persisted table payload mapping by using includeAnimationPreview: false.\",\"Preset application must preserve the selected scope and emit a normalized RuleEffectDefinition through valueChange.\"]}",
|
|
2053
2330
|
"sourcePointer": "projects/praxis-table-rule-builder/src/lib/ai/praxis-table-rule-builder-authoring-manifest.ts",
|
|
@@ -2057,7 +2334,7 @@
|
|
|
2057
2334
|
"corpusVersion": "1.0.0"
|
|
2058
2335
|
},
|
|
2059
2336
|
{
|
|
2060
|
-
"chunkIndex":
|
|
2337
|
+
"chunkIndex": 18,
|
|
2061
2338
|
"chunkKind": "authoring_manifest",
|
|
2062
2339
|
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.0.0\",\"componentId\":\"praxis-table-rule-builder\",\"ownerPackage\":\"@praxisui/table-rule-builder\",\"configSchemaId\":\"RuleEffectDefinition\",\"chunkSection\":\"examples\",\"examples\":[{\"id\":\"table-rule-add-row-warning\",\"request\":\"Add a row warning rule for overdue invoices.\",\"operationId\":\"rule.add\",\"target\":\"rule:overdue-warning\",\"params\":{\"ruleId\":\"overdue-warning\",\"scope\":\"row\",\"condition\":{\"field\":\"dueDate\",\"operator\":\"beforeToday\"},\"effect\":{\"background\":{\"color\":\"rgba(255,193,7,0.12)\"}}},\"isPositive\":true},{\"id\":\"table-rule-remove-obsolete\",\"request\":\"Remove the obsolete archived row rule.\",\"operationId\":\"rule.remove\",\"target\":\"rule:archived-obsolete\",\"params\":{\"ruleId\":\"archived-obsolete\",\"removeEffects\":true},\"isPositive\":true},{\"id\":\"table-rule-condition-status-error\",\"request\":\"Make the rule apply when status is error.\",\"operationId\":\"condition.set\",\"target\":\"condition:status-error\",\"params\":{\"ruleId\":\"status-error\",\"condition\":{\"field\":\"status\",\"operator\":\"equals\",\"value\":\"error\"}},\"isPositive\":true},{\"id\":\"table-rule-add-badge-effect\",\"request\":\"Add a warning badge to the status rule.\",\"operationId\":\"effect.add\",\"target\":\"effect:status-warning/badge\",\"params\":{\"ruleId\":\"status-warning\",\"effectId\":\"badge\",\"effectType\":\"icone\",\"payload\":{\"icon\":\"warning\",\"badgeText\":\"Attention\"}},\"isPositive\":true},{\"id\":\"table-rule-update-background\",\"request\":\"Change the risk rule background color.\",\"operationId\":\"effect.update\",\"target\":\"effect:risk/background\",\"params\":{\"ruleId\":\"risk\",\"effectId\":\"background\",\"payload\":{\"background\":{\"color\":\"rgba(239,83,80,0.10)\"}},\"mode\":\"merge\"},\"isPositive\":true},{\"id\":\"table-rule-remove-tooltip\",\"request\":\"Remove the tooltip effect from the audit rule.\",\"operationId\":\"effect.remove\",\"target\":\"effect:audit/tooltip\",\"params\":{\"ruleId\":\"audit\",\"effectId\":\"tooltip\"},\"isPositive\":true},{\"id\":\"table-rule-apply-alerta\",\"request\":\"Use the alerta preset on the SLA rule.\",\"operationId\":\"preset.apply\",\"target\":\"preset:alerta\",\"params\":{\"ruleId\":\"sla\",\"presetKey\":\"alerta\",\"scope\":\"row\",\"mergeWithExisting\":true},\"isPositive\":true},{\"id\":\"table-rule-animation-critical\",\"request\":\"Make the SLA breach animation critical.\",\"operationId\":\"animation.set\",\"target\":\"animation:sla-breach\",\"params\":{\"ruleId\":\"sla-breach\",\"effectId\":\"animation\",\"animation\":{\"preset\":\"critical-alert\"}},\"isPositive\":true},{\"id\":\"table-rule-delegate-column-renderer\",\"request\":\"Move this effect to the status column renderer.\",\"operationId\":\"tableIntegration.delegate\",\"target\":\"praxis-table:column-renderer\",\"params\":{\"tableOperationId\":\"column.conditionalRenderer.set\",\"reason\":\"column renderer placement is owned by praxis-table\",\"tableTarget\":{\"columnKey\":\"status\"}},\"isPositive\":true},{\"id\":\"table-rule-reject-direct-table-column\",\"request\":\"Add a new table column from the rule builder.\",\"operationId\":\"tableIntegration.delegate\",\"target\":\"praxis-table:column.add\",\"params\":{\"tableOperationId\":\"column.add\",\"reason\":\"column authoring belongs to praxis-table\"},\"isPositive\":false},{\"id\":\"table-rule-reject-unknown-effect\",\"request\":\"Add a sparkle shader effect to rows.\",\"operationId\":\"effect.add\",\"target\":\"effect:sparkle\",\"params\":{\"ruleId\":\"risk\",\"effectId\":\"sparkle\",\"effectType\":\"shader\",\"payload\":{}},\"isPositive\":false},{\"id\":\"table-rule-reject-unknown-animation\",\"request\":\"Use the earthquake animation preset.\",\"operationId\":\"animation.set\",\"target\":\"animation:earthquake\",\"params\":{\"ruleId\":\"risk\",\"effectId\":\"animation\",\"animation\":{\"preset\":\"earthquake\"}},\"isPositive\":false}]}",
|
|
2063
2340
|
"sourcePointer": "projects/praxis-table-rule-builder/src/lib/ai/praxis-table-rule-builder-authoring-manifest.ts",
|
|
@@ -2067,7 +2344,7 @@
|
|
|
2067
2344
|
"corpusVersion": "1.0.0"
|
|
2068
2345
|
},
|
|
2069
2346
|
{
|
|
2070
|
-
"chunkIndex":
|
|
2347
|
+
"chunkIndex": 19,
|
|
2071
2348
|
"chunkKind": "context_pack",
|
|
2072
2349
|
"content": "{\"componentContext\":{\"version\":\"v1\",\"optionsByPath\":{\"scope\":{\"mode\":\"enum\",\"options\":[{\"value\":\"cell\",\"label\":\"Cell\"},{\"value\":\"row\",\"label\":\"Row\"},{\"value\":\"column\",\"label\":\"Column\"},{\"value\":\"table\",\"label\":\"Table\"}]},\"estilo.transform\":{\"mode\":\"enum\",\"options\":[{\"value\":\"uppercase\",\"label\":\"Uppercase\"},{\"value\":\"lowercase\",\"label\":\"Lowercase\"},{\"value\":\"capitalize\",\"label\":\"Capitalize\"}]},\"layout.border\":{\"mode\":\"enum\",\"options\":[{\"value\":\"none\",\"label\":\"None\"},{\"value\":\"left\",\"label\":\"Left\"},{\"value\":\"right\",\"label\":\"Right\"},{\"value\":\"top\",\"label\":\"Top\"},{\"value\":\"bottom\",\"label\":\"Bottom\"},{\"value\":\"all\",\"label\":\"All\"}]},\"layout.align\":{\"mode\":\"enum\",\"options\":[{\"value\":\"start\",\"label\":\"Start\"},{\"value\":\"center\",\"label\":\"Center\"},{\"value\":\"end\",\"label\":\"End\"}]},\"iconBadge.iconPos\":{\"mode\":\"enum\",\"options\":[{\"value\":\"before\",\"label\":\"Before\"},{\"value\":\"after\",\"label\":\"After\"},{\"value\":\"overlay\",\"label\":\"Overlay\"}]},\"iconBadge.badgeStyle\":{\"mode\":\"enum\",\"options\":[{\"value\":\"solid\",\"label\":\"Solid\"},{\"value\":\"soft\",\"label\":\"Soft\"},{\"value\":\"outline\",\"label\":\"Outline\"}]},\"animation.type\":{\"mode\":\"enum\",\"options\":[{\"value\":\"pulse\",\"label\":\"Pulse\"},{\"value\":\"blink\",\"label\":\"Blink\"},{\"value\":\"grow\",\"label\":\"Grow\"},{\"value\":\"fade\",\"label\":\"Fade\"},{\"value\":\"slide-in\",\"label\":\"Slide in\"},{\"value\":\"border-pulse\",\"label\":\"Border pulse\"}]},\"animation.preset\":{\"mode\":\"enum\",\"options\":[null,null]},\"animation.trigger\":{\"mode\":\"enum\",\"options\":[{\"value\":\"onChange\",\"label\":\"On change\"},{\"value\":\"onAppear\",\"label\":\"On appear\"},{\"value\":\"onHover\",\"label\":\"On hover\"},{\"value\":\"onConditionEnter\",\"label\":\"On condition enter\"},{\"value\":\"onConditionExit\",\"label\":\"On condition exit\"},{\"value\":\"onDataRefresh\",\"label\":\"On data refresh\"}]},\"animation.repeat\":{\"mode\":\"enum\",\"options\":[{\"value\":\"once\",\"label\":\"Once\"},{\"value\":\"loop\",\"label\":\"Loop\"},{\"value\":\"infinite\",\"label\":\"Infinite\"}]},\"animation.intensity\":{\"mode\":\"enum\",\"options\":[{\"value\":\"subtle\",\"label\":\"Subtle\"},{\"value\":\"normal\",\"label\":\"Normal\"},{\"value\":\"strong\",\"label\":\"Strong\"}]},\"tooltip.position\":{\"mode\":\"enum\",\"options\":[{\"value\":\"top\",\"label\":\"Top\"},{\"value\":\"right\",\"label\":\"Right\"},{\"value\":\"bottom\",\"label\":\"Bottom\"},{\"value\":\"left\",\"label\":\"Left\"}]}},\"actionCatalog\":[{\"id\":\"scope.set\",\"intentExamples\":[\"scope\",\"apply to row\",\"apply to column\"],\"patchTemplate\":{\"scope\":\"{{value}}\"}},{\"id\":\"description.set\",\"intentExamples\":[\"description\",\"effect description\"],\"patchTemplate\":{\"description\":\"{{value}}\"}},{\"id\":\"estilo.color.set\",\"intentExamples\":[\"text color\",\"font color\"],\"patchTemplate\":{\"estilo\":{\"color\":\"{{value}}\"}}},{\"id\":\"estilo.bgColor.set\",\"intentExamples\":[\"background color\",\"bg color\"],\"patchTemplate\":{\"estilo\":{\"bgColor\":\"{{value}}\"}}},{\"id\":\"estilo.bold.enable\",\"intentExamples\":[\"bold\",\"negrito\"],\"patchTemplate\":{\"estilo\":{\"bold\":true}}},{\"id\":\"estilo.bold.disable\",\"intentExamples\":[\"no bold\",\"remove bold\"],\"patchTemplate\":{\"estilo\":{\"bold\":false}}},{\"id\":\"iconBadge.icon.set\",\"intentExamples\":[\"icon\",\"badge icon\"],\"patchTemplate\":{\"iconBadge\":{\"icon\":\"{{value}}\"}}},{\"id\":\"iconBadge.badgeText.set\",\"intentExamples\":[\"badge text\",\"badge label\"],\"patchTemplate\":{\"iconBadge\":{\"badgeText\":\"{{value}}\"}}},{\"id\":\"tooltip.text.set\",\"intentExamples\":[\"tooltip\",\"hint\",\"hover text\"],\"patchTemplate\":{\"tooltip\":{\"text\":\"{{value}}\"}}},{\"id\":\"animation.type.set\",\"intentExamples\":[\"animation\",\"effect animation\"],\"patchTemplate\":{\"animation\":{\"type\":\"{{value}}\"}}}],\"fieldResolvers\":{},\"hints\":[\"Effects apply to the current scope (cell/row/column/table).\",\"Use only safe CSS values for colors and styles.\"]}}",
|
|
2073
2350
|
"sourcePointer": "projects/praxis-table-rule-builder/src/lib/praxis-table-rule-builder.metadata.ts",
|
|
@@ -2077,7 +2354,7 @@
|
|
|
2077
2354
|
"corpusVersion": "1.0.0"
|
|
2078
2355
|
},
|
|
2079
2356
|
{
|
|
2080
|
-
"chunkIndex":
|
|
2357
|
+
"chunkIndex": 20,
|
|
2081
2358
|
"chunkKind": "recipe",
|
|
2082
2359
|
"content": "{\"_comment\":\"Receita para o Construtor de Regras de Tabela (Table Rule Builder).\",\"templateMeta\":{\"registryKey\":\"praxis-table-rule-builder\",\"variantId\":\"base\",\"useWhen\":\"Base table rule builder configuration.\",\"examplePrompts\":[\"create table rule effects\",\"add conditional styling rules\"]},\"rules\":[{\"id\":\"rule-high-value\",\"name\":\"Destaque Valor Alto\",\"conditions\":[{\"field\":\"amount\",\"operator\":\"greaterThan\",\"value\":1000}],\"target\":\"row\",\"effects\":[{\"type\":\"style\",\"style\":{\"fontWeight\":\"bold\",\"backgroundColor\":\"#e3f2fd\"}},{\"type\":\"icon-badge\",\"icon\":\"star\",\"color\":\"primary\",\"tooltip\":\"Cliente VIP\"}],\"safety\":{\"sanitized\":true}},{\"id\":\"rule-overdue\",\"name\":\"Alerta Atraso\",\"conditions\":[{\"field\":\"daysOverdue\",\"operator\":\"greaterThan\",\"value\":0}],\"target\":\"cell\",\"targetField\":\"dueDate\",\"effects\":[{\"type\":\"style\",\"style\":{\"color\":\"red\"}},{\"type\":\"tooltip\",\"text\":\"Pagamento em atraso!\"},{\"type\":\"animation\",\"animation\":\"pulse\"}]}],\"preview\":{\"enabled\":true,\"context\":{\"amount\":1200,\"daysOverdue\":5}}}",
|
|
2083
2360
|
"sourcePointer": "examples/ai-recipes/table-rules-editor.json",
|
|
@@ -1892,6 +1892,27 @@ function toCellClassAndStyle(effect, options) {
|
|
|
1892
1892
|
return { classList, style };
|
|
1893
1893
|
}
|
|
1894
1894
|
|
|
1895
|
+
const tableRuleByIdResolutionSpec = {
|
|
1896
|
+
strategy: 'array-match',
|
|
1897
|
+
paths: ['ruleEffects.rules', 'rules', 'RuleEffectDefinition'],
|
|
1898
|
+
matchFields: ['id', 'ruleId'],
|
|
1899
|
+
inputMatchFields: ['ruleId', 'id'],
|
|
1900
|
+
allowIndex: false,
|
|
1901
|
+
};
|
|
1902
|
+
const tableRuleEffectByIdResolutionSpec = {
|
|
1903
|
+
strategy: 'parent-child-array-match',
|
|
1904
|
+
paths: ['ruleEffects.rules[]', 'rules[]', 'RuleEffectDefinition'],
|
|
1905
|
+
parentInputMatchFields: ['ruleId', 'id'],
|
|
1906
|
+
matchFields: ['effectId', 'id'],
|
|
1907
|
+
childArrayField: 'effects',
|
|
1908
|
+
inputMatchFields: ['effectId', 'id'],
|
|
1909
|
+
allowIndex: false,
|
|
1910
|
+
};
|
|
1911
|
+
const tableDelegationResolutionSpec = {
|
|
1912
|
+
strategy: 'root-path',
|
|
1913
|
+
paths: ['delegatedAuthoringOperations', ''],
|
|
1914
|
+
allowIndex: false,
|
|
1915
|
+
};
|
|
1895
1916
|
const ruleAnimationPresetEnum = [
|
|
1896
1917
|
...Object.keys(RULE_ANIMATION_PRESETS),
|
|
1897
1918
|
...Object.keys(RULE_ANIMATION_PRESET_ALIASES),
|
|
@@ -2026,12 +2047,12 @@ const PRAXIS_TABLE_RULE_BUILDER_AUTHORING_MANIFEST = {
|
|
|
2026
2047
|
{ name: 'reset', type: 'void', description: 'Emitted when the user resets the panel form back to canonical defaults.' },
|
|
2027
2048
|
],
|
|
2028
2049
|
editableTargets: [
|
|
2029
|
-
{ kind: 'rule', resolver: 'table-rule-by-stable-id', description: 'Table conditional rule entry keyed by stable rule id before it is passed to praxis-table.' },
|
|
2030
|
-
{ kind: 'condition', resolver: 'table-rule-condition-by-rule-id', description: 'Structured condition payload evaluated against table row/column context.' },
|
|
2031
|
-
{ kind: 'effect', resolver: 'rule-effect-by-rule-and-effect-id', description: 'Visual effect payload inside a rule, mapped to RuleEffectDefinition.' },
|
|
2032
|
-
{ kind: 'preset', resolver: 'default-effect-preset-by-key', description: 'Built-in semantic effect preset from DEFAULT_EFFECT_PRESETS.' },
|
|
2033
|
-
{ kind: 'animation', resolver: 'rule-animation-by-rule-and-effect-id', description: 'Animation preset, alias or override resolved through animation-presets.' },
|
|
2034
|
-
{ kind: 'tableDelegation', resolver: 'praxis-table-authoring-operation', description: 'Explicit delegation boundary for table-owned configuration changes.' },
|
|
2050
|
+
{ kind: 'rule', resolver: 'table-rule-by-stable-id', resolutionSpec: tableRuleByIdResolutionSpec, description: 'Table conditional rule entry keyed by stable rule id before it is passed to praxis-table.' },
|
|
2051
|
+
{ kind: 'condition', resolver: 'table-rule-condition-by-rule-id', resolutionSpec: tableRuleByIdResolutionSpec, description: 'Structured condition payload evaluated against table row/column context.' },
|
|
2052
|
+
{ kind: 'effect', resolver: 'rule-effect-by-rule-and-effect-id', resolutionSpec: tableRuleEffectByIdResolutionSpec, description: 'Visual effect payload inside a rule, mapped to RuleEffectDefinition.' },
|
|
2053
|
+
{ kind: 'preset', resolver: 'default-effect-preset-by-key', resolutionSpec: tableRuleByIdResolutionSpec, description: 'Built-in semantic effect preset from DEFAULT_EFFECT_PRESETS.' },
|
|
2054
|
+
{ kind: 'animation', resolver: 'rule-animation-by-rule-and-effect-id', resolutionSpec: tableRuleEffectByIdResolutionSpec, description: 'Animation preset, alias or override resolved through animation-presets.' },
|
|
2055
|
+
{ kind: 'tableDelegation', resolver: 'praxis-table-authoring-operation', resolutionSpec: tableDelegationResolutionSpec, description: 'Explicit delegation boundary for table-owned configuration changes.' },
|
|
2035
2056
|
],
|
|
2036
2057
|
operations: [
|
|
2037
2058
|
{
|
|
@@ -2039,7 +2060,7 @@ const PRAXIS_TABLE_RULE_BUILDER_AUTHORING_MANIFEST = {
|
|
|
2039
2060
|
title: 'Add table visual rule',
|
|
2040
2061
|
scope: 'rule',
|
|
2041
2062
|
targetKind: 'rule',
|
|
2042
|
-
target: { kind: 'rule', resolver: 'table-rule-by-stable-id', ambiguityPolicy: 'fail', required: true },
|
|
2063
|
+
target: { kind: 'rule', resolver: 'table-rule-by-stable-id', resolutionSpec: tableRuleByIdResolutionSpec, ambiguityPolicy: 'fail', required: true },
|
|
2043
2064
|
inputSchema: ruleAddSchema,
|
|
2044
2065
|
effects: [{ kind: 'compile-domain-patch', handler: 'table-rule-builder-rule-add', handlerContract: {
|
|
2045
2066
|
reads: ['RuleEffectsPanelComponent.scope', 'RuleEffectDefinition', 'praxis-table rowConditionalRenderers', 'praxis-table columns[].conditionalRenderers'],
|
|
@@ -2061,7 +2082,7 @@ const PRAXIS_TABLE_RULE_BUILDER_AUTHORING_MANIFEST = {
|
|
|
2061
2082
|
title: 'Remove table visual rule',
|
|
2062
2083
|
scope: 'rule',
|
|
2063
2084
|
targetKind: 'rule',
|
|
2064
|
-
target: { kind: 'rule', resolver: 'table-rule-by-stable-id', ambiguityPolicy: 'fail', required: true },
|
|
2085
|
+
target: { kind: 'rule', resolver: 'table-rule-by-stable-id', resolutionSpec: tableRuleByIdResolutionSpec, ambiguityPolicy: 'fail', required: true },
|
|
2065
2086
|
inputSchema: ruleRemoveSchema,
|
|
2066
2087
|
effects: [{ kind: 'compile-domain-patch', handler: 'table-rule-builder-rule-remove', handlerContract: {
|
|
2067
2088
|
reads: ['ruleEffects.rules', 'ruleEffects.rules[].effect', 'ruleEffects.rules[].condition'],
|
|
@@ -2083,7 +2104,7 @@ const PRAXIS_TABLE_RULE_BUILDER_AUTHORING_MANIFEST = {
|
|
|
2083
2104
|
title: 'Set table rule condition',
|
|
2084
2105
|
scope: 'rule',
|
|
2085
2106
|
targetKind: 'condition',
|
|
2086
|
-
target: { kind: 'condition', resolver: 'table-rule-condition-by-rule-id', ambiguityPolicy: 'fail', required: true },
|
|
2107
|
+
target: { kind: 'condition', resolver: 'table-rule-condition-by-rule-id', resolutionSpec: tableRuleByIdResolutionSpec, ambiguityPolicy: 'fail', required: true },
|
|
2087
2108
|
inputSchema: conditionSetSchema,
|
|
2088
2109
|
effects: [{ kind: 'compile-domain-patch', handler: 'table-rule-builder-condition-set', handlerContract: {
|
|
2089
2110
|
reads: ['ruleEffects.rules', 'praxis-table dataSource fields', 'praxis-table columns'],
|
|
@@ -2105,7 +2126,7 @@ const PRAXIS_TABLE_RULE_BUILDER_AUTHORING_MANIFEST = {
|
|
|
2105
2126
|
title: 'Add visual effect to rule',
|
|
2106
2127
|
scope: 'skin',
|
|
2107
2128
|
targetKind: 'effect',
|
|
2108
|
-
target: { kind: 'effect', resolver: 'rule-effect-by-rule-and-effect-id', ambiguityPolicy: 'fail', required: true },
|
|
2129
|
+
target: { kind: 'effect', resolver: 'rule-effect-by-rule-and-effect-id', resolutionSpec: tableRuleEffectByIdResolutionSpec, ambiguityPolicy: 'fail', required: true },
|
|
2109
2130
|
inputSchema: effectAddSchema,
|
|
2110
2131
|
effects: [{ kind: 'compile-domain-patch', handler: 'table-rule-builder-effect-add', handlerContract: {
|
|
2111
2132
|
reads: ['EffectRegistryService.list', 'RuleEffectDefinition', 'toCellClassAndStyle'],
|
|
@@ -2127,7 +2148,7 @@ const PRAXIS_TABLE_RULE_BUILDER_AUTHORING_MANIFEST = {
|
|
|
2127
2148
|
title: 'Update visual effect payload',
|
|
2128
2149
|
scope: 'skin',
|
|
2129
2150
|
targetKind: 'effect',
|
|
2130
|
-
target: { kind: 'effect', resolver: 'rule-effect-by-rule-and-effect-id', ambiguityPolicy: 'fail', required: true },
|
|
2151
|
+
target: { kind: 'effect', resolver: 'rule-effect-by-rule-and-effect-id', resolutionSpec: tableRuleEffectByIdResolutionSpec, ambiguityPolicy: 'fail', required: true },
|
|
2131
2152
|
inputSchema: effectUpdateSchema,
|
|
2132
2153
|
effects: [{ kind: 'compile-domain-patch', handler: 'table-rule-builder-effect-update', handlerContract: {
|
|
2133
2154
|
reads: ['ruleEffects.rules[].effect', 'EffectRegistryService.list', 'toCellClassAndStyle'],
|
|
@@ -2149,7 +2170,7 @@ const PRAXIS_TABLE_RULE_BUILDER_AUTHORING_MANIFEST = {
|
|
|
2149
2170
|
title: 'Remove visual effect from rule',
|
|
2150
2171
|
scope: 'skin',
|
|
2151
2172
|
targetKind: 'effect',
|
|
2152
|
-
target: { kind: 'effect', resolver: 'rule-effect-by-rule-and-effect-id', ambiguityPolicy: 'fail', required: true },
|
|
2173
|
+
target: { kind: 'effect', resolver: 'rule-effect-by-rule-and-effect-id', resolutionSpec: tableRuleEffectByIdResolutionSpec, ambiguityPolicy: 'fail', required: true },
|
|
2153
2174
|
inputSchema: effectRemoveSchema,
|
|
2154
2175
|
effects: [{ kind: 'compile-domain-patch', handler: 'table-rule-builder-effect-remove', handlerContract: {
|
|
2155
2176
|
reads: ['ruleEffects.rules', 'ruleEffects.rules[].effect'],
|
|
@@ -2171,7 +2192,7 @@ const PRAXIS_TABLE_RULE_BUILDER_AUTHORING_MANIFEST = {
|
|
|
2171
2192
|
title: 'Apply semantic effect preset',
|
|
2172
2193
|
scope: 'skin',
|
|
2173
2194
|
targetKind: 'preset',
|
|
2174
|
-
target: { kind: 'preset', resolver: 'default-effect-preset-by-key', ambiguityPolicy: 'fail', required: true },
|
|
2195
|
+
target: { kind: 'preset', resolver: 'default-effect-preset-by-key', resolutionSpec: tableRuleByIdResolutionSpec, ambiguityPolicy: 'fail', required: true },
|
|
2175
2196
|
inputSchema: presetApplySchema,
|
|
2176
2197
|
effects: [{ kind: 'compile-domain-patch', handler: 'table-rule-builder-preset-apply', handlerContract: {
|
|
2177
2198
|
reads: ['DEFAULT_EFFECT_PRESETS', 'RuleEffectsPanelComponent.applyPreset', 'RuleEffectDefinition'],
|
|
@@ -2193,7 +2214,7 @@ const PRAXIS_TABLE_RULE_BUILDER_AUTHORING_MANIFEST = {
|
|
|
2193
2214
|
title: 'Set rule animation',
|
|
2194
2215
|
scope: 'skin',
|
|
2195
2216
|
targetKind: 'animation',
|
|
2196
|
-
target: { kind: 'animation', resolver: 'rule-animation-by-rule-and-effect-id', ambiguityPolicy: 'fail', required: true },
|
|
2217
|
+
target: { kind: 'animation', resolver: 'rule-animation-by-rule-and-effect-id', resolutionSpec: tableRuleEffectByIdResolutionSpec, ambiguityPolicy: 'fail', required: true },
|
|
2197
2218
|
inputSchema: animationSetSchema,
|
|
2198
2219
|
effects: [{ kind: 'compile-domain-patch', handler: 'table-rule-builder-animation-set', handlerContract: {
|
|
2199
2220
|
reads: ['RULE_ANIMATION_PRESETS', 'RULE_ANIMATION_PRESET_ALIASES', 'resolveRuleAnimationConfig', 'RuleEffectDefinition.animation'],
|
|
@@ -2215,7 +2236,7 @@ const PRAXIS_TABLE_RULE_BUILDER_AUTHORING_MANIFEST = {
|
|
|
2215
2236
|
title: 'Delegate table-owned configuration',
|
|
2216
2237
|
scope: 'global',
|
|
2217
2238
|
targetKind: 'tableDelegation',
|
|
2218
|
-
target: { kind: 'tableDelegation', resolver: 'praxis-table-authoring-operation', ambiguityPolicy: 'fail', required: false },
|
|
2239
|
+
target: { kind: 'tableDelegation', resolver: 'praxis-table-authoring-operation', resolutionSpec: tableDelegationResolutionSpec, ambiguityPolicy: 'fail', required: false },
|
|
2219
2240
|
inputSchema: tableDelegateSchema,
|
|
2220
2241
|
effects: [{ kind: 'compile-domain-patch', handler: 'table-rule-builder-table-delegate', handlerContract: {
|
|
2221
2242
|
reads: ['PRAXIS_TABLE_AUTHORING_MANIFEST', 'TableConfigV2', 'tableOperationId'],
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@praxisui/table-rule-builder",
|
|
3
|
-
"version": "10.0.0-rc.
|
|
3
|
+
"version": "10.0.0-rc.45",
|
|
4
4
|
"description": "Praxis Table Rule Builder: UI components and engine utils for table rules",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^21.0.0",
|
|
7
7
|
"@angular/core": "^21.0.0",
|
|
8
8
|
"@angular/forms": "^21.0.0",
|
|
9
9
|
"@angular/material": "^21.0.0",
|
|
10
|
-
"@praxisui/ai": "^10.0.0-rc.
|
|
11
|
-
"@praxisui/core": "^10.0.0-rc.
|
|
12
|
-
"@praxisui/dynamic-fields": "^10.0.0-rc.
|
|
10
|
+
"@praxisui/ai": "^10.0.0-rc.45",
|
|
11
|
+
"@praxisui/core": "^10.0.0-rc.45",
|
|
12
|
+
"@praxisui/dynamic-fields": "^10.0.0-rc.45",
|
|
13
13
|
"rxjs": "~7.8.0"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|