@praxisui/tabs 10.0.0-rc.8 → 10.0.0-rc.81
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/README.md +6 -1
- package/ai/component-registry.json +604 -55
- package/fesm2022/praxisui-tabs.mjs +1558 -262
- package/package.json +5 -5
- package/src/lib/praxis-tabs-config-editor.json-api.md +12 -1
- package/src/lib/praxis-tabs.json-api.md +26 -1
- package/types/praxisui-tabs.d.ts +109 -19
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schemaVersion": "1.0.0",
|
|
3
|
-
"generatedAt": "2026-
|
|
3
|
+
"generatedAt": "2026-12-01T23:43:42.244Z",
|
|
4
4
|
"packageName": "@praxisui/tabs",
|
|
5
|
-
"packageVersion": "10.0.0-rc.
|
|
5
|
+
"packageVersion": "10.0.0-rc.81",
|
|
6
6
|
"sourceRegistry": "praxis-component-registry-ingestion",
|
|
7
7
|
"sourceRegistryVersion": "1.0.0",
|
|
8
8
|
"componentCount": 1,
|
|
9
9
|
"components": {
|
|
10
10
|
"praxis-tabs": {
|
|
11
11
|
"id": "praxis-tabs",
|
|
12
|
-
"description": "Abas dinâmicas baseadas em metadata, com MatTabGroup/TabNav e suporte a tokens M3 via appearance.",
|
|
12
|
+
"description": "Abas dinâmicas baseadas em metadata, com MatTabGroup/TabNav, variantes visuais (underline, pill, segmented), tons por aba/link e suporte a tokens M3 via appearance.",
|
|
13
13
|
"inputs": [
|
|
14
14
|
{
|
|
15
15
|
"name": "config",
|
|
@@ -34,9 +34,9 @@
|
|
|
34
34
|
},
|
|
35
35
|
{
|
|
36
36
|
"name": "configPersistenceStrategy",
|
|
37
|
-
"type": "\"storage-first\" | \"input-first\"",
|
|
37
|
+
"type": "\"storage-first\" | \"local-first\" | \"input-first\" | \"volatile\"",
|
|
38
38
|
"required": false,
|
|
39
|
-
"description": "Define
|
|
39
|
+
"description": "Define a precedência entre storage e entrada (`local-first`/`storage-first` para persistência local, `input-first` para composição dona do config, `volatile` para previews efêmeros sem leitura ou escrita).",
|
|
40
40
|
"label": "Estratégia de persistência",
|
|
41
41
|
"default": "storage-first"
|
|
42
42
|
},
|
|
@@ -132,6 +132,19 @@
|
|
|
132
132
|
"stable"
|
|
133
133
|
],
|
|
134
134
|
"lib": "@praxisui/tabs",
|
|
135
|
+
"transientInputs": [
|
|
136
|
+
"context",
|
|
137
|
+
"selectedIndex"
|
|
138
|
+
],
|
|
139
|
+
"lockedInputs": [
|
|
140
|
+
"tabsId"
|
|
141
|
+
],
|
|
142
|
+
"visualOverrideKeys": [
|
|
143
|
+
"config",
|
|
144
|
+
"enableCustomization",
|
|
145
|
+
"configPersistenceStrategy"
|
|
146
|
+
],
|
|
147
|
+
"schemaVersion": "1.0.0",
|
|
135
148
|
"actions": [
|
|
136
149
|
{
|
|
137
150
|
"id": "select-tab",
|
|
@@ -349,6 +362,17 @@
|
|
|
349
362
|
"valueKind": "object",
|
|
350
363
|
"description": "Appearance settings."
|
|
351
364
|
},
|
|
365
|
+
{
|
|
366
|
+
"path": "appearance.variant",
|
|
367
|
+
"category": "appearance",
|
|
368
|
+
"valueKind": "enum",
|
|
369
|
+
"allowedValues": [
|
|
370
|
+
"underline",
|
|
371
|
+
"pill",
|
|
372
|
+
"segmented"
|
|
373
|
+
],
|
|
374
|
+
"description": "Visual tab strip variant (underline, pill, segmented)."
|
|
375
|
+
},
|
|
352
376
|
{
|
|
353
377
|
"path": "appearance.density",
|
|
354
378
|
"category": "appearance",
|
|
@@ -624,6 +648,24 @@
|
|
|
624
648
|
"valueKind": "string",
|
|
625
649
|
"description": "Link label."
|
|
626
650
|
},
|
|
651
|
+
{
|
|
652
|
+
"path": "nav.links[].labelClass",
|
|
653
|
+
"category": "nav",
|
|
654
|
+
"valueKind": "string",
|
|
655
|
+
"description": "Label class (string or string[])."
|
|
656
|
+
},
|
|
657
|
+
{
|
|
658
|
+
"path": "nav.links[].tone",
|
|
659
|
+
"category": "nav",
|
|
660
|
+
"valueKind": "enum",
|
|
661
|
+
"allowedValues": [
|
|
662
|
+
"default",
|
|
663
|
+
"primary",
|
|
664
|
+
"accent",
|
|
665
|
+
"outlined"
|
|
666
|
+
],
|
|
667
|
+
"description": "Per-link emphasis tone (default, primary, accent, outlined)."
|
|
668
|
+
},
|
|
627
669
|
{
|
|
628
670
|
"path": "nav.links[].active",
|
|
629
671
|
"category": "nav",
|
|
@@ -690,6 +732,18 @@
|
|
|
690
732
|
"valueKind": "string",
|
|
691
733
|
"description": "Body class (string or string[])."
|
|
692
734
|
},
|
|
735
|
+
{
|
|
736
|
+
"path": "tabs[].tone",
|
|
737
|
+
"category": "tabs",
|
|
738
|
+
"valueKind": "enum",
|
|
739
|
+
"allowedValues": [
|
|
740
|
+
"default",
|
|
741
|
+
"primary",
|
|
742
|
+
"accent",
|
|
743
|
+
"outlined"
|
|
744
|
+
],
|
|
745
|
+
"description": "Per-tab emphasis tone (default, primary, accent, outlined)."
|
|
746
|
+
},
|
|
693
747
|
{
|
|
694
748
|
"path": "tabs[].ariaLabel",
|
|
695
749
|
"category": "tabs",
|
|
@@ -753,6 +807,23 @@
|
|
|
753
807
|
"componentContext": {
|
|
754
808
|
"version": "v1",
|
|
755
809
|
"optionsByPath": {
|
|
810
|
+
"appearance.variant": {
|
|
811
|
+
"mode": "enum",
|
|
812
|
+
"options": [
|
|
813
|
+
{
|
|
814
|
+
"value": "underline",
|
|
815
|
+
"label": "Underline"
|
|
816
|
+
},
|
|
817
|
+
{
|
|
818
|
+
"value": "pill",
|
|
819
|
+
"label": "Pill"
|
|
820
|
+
},
|
|
821
|
+
{
|
|
822
|
+
"value": "segmented",
|
|
823
|
+
"label": "Segmented"
|
|
824
|
+
}
|
|
825
|
+
]
|
|
826
|
+
},
|
|
756
827
|
"appearance.density": {
|
|
757
828
|
"mode": "enum",
|
|
758
829
|
"options": [
|
|
@@ -867,9 +938,66 @@
|
|
|
867
938
|
"label": "Warn"
|
|
868
939
|
}
|
|
869
940
|
]
|
|
941
|
+
},
|
|
942
|
+
"tabs[].tone": {
|
|
943
|
+
"mode": "enum",
|
|
944
|
+
"options": [
|
|
945
|
+
{
|
|
946
|
+
"value": "default",
|
|
947
|
+
"label": "Default"
|
|
948
|
+
},
|
|
949
|
+
{
|
|
950
|
+
"value": "primary",
|
|
951
|
+
"label": "Primary"
|
|
952
|
+
},
|
|
953
|
+
{
|
|
954
|
+
"value": "accent",
|
|
955
|
+
"label": "Accent"
|
|
956
|
+
},
|
|
957
|
+
{
|
|
958
|
+
"value": "outlined",
|
|
959
|
+
"label": "Outlined"
|
|
960
|
+
}
|
|
961
|
+
]
|
|
962
|
+
},
|
|
963
|
+
"nav.links[].tone": {
|
|
964
|
+
"mode": "enum",
|
|
965
|
+
"options": [
|
|
966
|
+
{
|
|
967
|
+
"value": "default",
|
|
968
|
+
"label": "Default"
|
|
969
|
+
},
|
|
970
|
+
{
|
|
971
|
+
"value": "primary",
|
|
972
|
+
"label": "Primary"
|
|
973
|
+
},
|
|
974
|
+
{
|
|
975
|
+
"value": "accent",
|
|
976
|
+
"label": "Accent"
|
|
977
|
+
},
|
|
978
|
+
{
|
|
979
|
+
"value": "outlined",
|
|
980
|
+
"label": "Outlined"
|
|
981
|
+
}
|
|
982
|
+
]
|
|
870
983
|
}
|
|
871
984
|
},
|
|
872
985
|
"actionCatalog": [
|
|
986
|
+
{
|
|
987
|
+
"id": "appearance.variant.set",
|
|
988
|
+
"intentExamples": [
|
|
989
|
+
"pill tabs",
|
|
990
|
+
"segmented tabs",
|
|
991
|
+
"tab variant",
|
|
992
|
+
"abas em pilula",
|
|
993
|
+
"variante de abas"
|
|
994
|
+
],
|
|
995
|
+
"patchTemplate": {
|
|
996
|
+
"appearance": {
|
|
997
|
+
"variant": "{{value}}"
|
|
998
|
+
}
|
|
999
|
+
}
|
|
1000
|
+
},
|
|
873
1001
|
{
|
|
874
1002
|
"id": "appearance.density.set",
|
|
875
1003
|
"intentExamples": [
|
|
@@ -1209,8 +1337,8 @@
|
|
|
1209
1337
|
},
|
|
1210
1338
|
{
|
|
1211
1339
|
"name": "configPersistenceStrategy",
|
|
1212
|
-
"type": "\"
|
|
1213
|
-
"description": "Controls whether persisted customization or explicit input config governs the runtime
|
|
1340
|
+
"type": "\"local-first\" | \"input-first\" | \"volatile\" | \"storage-first\"",
|
|
1341
|
+
"description": "Controls whether persisted customization or explicit input config governs the runtime (`local-first`, legacy `storage-first`, composition-owned `input-first`, or ephemeral `volatile`)."
|
|
1214
1342
|
},
|
|
1215
1343
|
{
|
|
1216
1344
|
"name": "form",
|
|
@@ -1232,47 +1360,204 @@
|
|
|
1232
1360
|
{
|
|
1233
1361
|
"kind": "tab",
|
|
1234
1362
|
"resolver": "tab-by-id-or-label",
|
|
1235
|
-
"description": "A group-mode tab in config.tabs[]."
|
|
1363
|
+
"description": "A group-mode tab in config.tabs[].",
|
|
1364
|
+
"resolutionSpec": {
|
|
1365
|
+
"allowIndex": false,
|
|
1366
|
+
"strategy": "array-match",
|
|
1367
|
+
"paths": [
|
|
1368
|
+
"tabs[]"
|
|
1369
|
+
],
|
|
1370
|
+
"matchFields": [
|
|
1371
|
+
"id",
|
|
1372
|
+
"label",
|
|
1373
|
+
"textLabel",
|
|
1374
|
+
"title"
|
|
1375
|
+
],
|
|
1376
|
+
"inputMatchFields": [
|
|
1377
|
+
"tabId",
|
|
1378
|
+
"id",
|
|
1379
|
+
"textLabel",
|
|
1380
|
+
"label"
|
|
1381
|
+
]
|
|
1382
|
+
}
|
|
1236
1383
|
},
|
|
1237
1384
|
{
|
|
1238
1385
|
"kind": "tabLabel",
|
|
1239
1386
|
"resolver": "tab-by-id-or-label",
|
|
1240
|
-
"description": "The text label of a group-mode tab."
|
|
1387
|
+
"description": "The text label of a group-mode tab.",
|
|
1388
|
+
"resolutionSpec": {
|
|
1389
|
+
"allowIndex": false,
|
|
1390
|
+
"strategy": "array-match",
|
|
1391
|
+
"paths": [
|
|
1392
|
+
"tabs[]"
|
|
1393
|
+
],
|
|
1394
|
+
"matchFields": [
|
|
1395
|
+
"id",
|
|
1396
|
+
"label",
|
|
1397
|
+
"textLabel",
|
|
1398
|
+
"title"
|
|
1399
|
+
],
|
|
1400
|
+
"inputMatchFields": [
|
|
1401
|
+
"tabId",
|
|
1402
|
+
"id",
|
|
1403
|
+
"textLabel",
|
|
1404
|
+
"label"
|
|
1405
|
+
]
|
|
1406
|
+
}
|
|
1241
1407
|
},
|
|
1242
1408
|
{
|
|
1243
1409
|
"kind": "tabIcon",
|
|
1244
1410
|
"resolver": "tab-by-id-or-label",
|
|
1245
|
-
"description": "Icon metadata rendered in a group tab label."
|
|
1411
|
+
"description": "Icon metadata rendered in a group tab label.",
|
|
1412
|
+
"resolutionSpec": {
|
|
1413
|
+
"allowIndex": false,
|
|
1414
|
+
"strategy": "array-match",
|
|
1415
|
+
"paths": [
|
|
1416
|
+
"tabs[]"
|
|
1417
|
+
],
|
|
1418
|
+
"matchFields": [
|
|
1419
|
+
"id",
|
|
1420
|
+
"label",
|
|
1421
|
+
"textLabel",
|
|
1422
|
+
"title"
|
|
1423
|
+
],
|
|
1424
|
+
"inputMatchFields": [
|
|
1425
|
+
"tabId",
|
|
1426
|
+
"id",
|
|
1427
|
+
"textLabel",
|
|
1428
|
+
"label"
|
|
1429
|
+
]
|
|
1430
|
+
}
|
|
1246
1431
|
},
|
|
1247
1432
|
{
|
|
1248
1433
|
"kind": "tabContent",
|
|
1249
1434
|
"resolver": "tab-or-link-by-id",
|
|
1250
|
-
"description": "Dynamic fields or widgets hosted by a tab or nav link."
|
|
1435
|
+
"description": "Dynamic fields or widgets hosted by a tab or nav link.",
|
|
1436
|
+
"resolutionSpec": {
|
|
1437
|
+
"allowIndex": false,
|
|
1438
|
+
"strategy": "array-match",
|
|
1439
|
+
"paths": [
|
|
1440
|
+
"tabs[]",
|
|
1441
|
+
"nav.links[]"
|
|
1442
|
+
],
|
|
1443
|
+
"matchFields": [
|
|
1444
|
+
"id",
|
|
1445
|
+
"label",
|
|
1446
|
+
"textLabel",
|
|
1447
|
+
"title"
|
|
1448
|
+
],
|
|
1449
|
+
"inputMatchFields": [
|
|
1450
|
+
"tabId",
|
|
1451
|
+
"linkId",
|
|
1452
|
+
"id",
|
|
1453
|
+
"textLabel",
|
|
1454
|
+
"label"
|
|
1455
|
+
]
|
|
1456
|
+
}
|
|
1251
1457
|
},
|
|
1252
1458
|
{
|
|
1253
1459
|
"kind": "activeTab",
|
|
1254
1460
|
"resolver": "tab-index-or-id",
|
|
1255
|
-
"description": "Selected tab or nav link index."
|
|
1461
|
+
"description": "Selected tab or nav link index.",
|
|
1462
|
+
"resolutionSpec": {
|
|
1463
|
+
"allowIndex": false,
|
|
1464
|
+
"strategy": "array-match",
|
|
1465
|
+
"paths": [
|
|
1466
|
+
"tabs[]",
|
|
1467
|
+
"nav.links[]"
|
|
1468
|
+
],
|
|
1469
|
+
"matchFields": [
|
|
1470
|
+
"id",
|
|
1471
|
+
"label",
|
|
1472
|
+
"textLabel",
|
|
1473
|
+
"title"
|
|
1474
|
+
],
|
|
1475
|
+
"inputMatchFields": [
|
|
1476
|
+
"tabId",
|
|
1477
|
+
"linkId",
|
|
1478
|
+
"id",
|
|
1479
|
+
"textLabel",
|
|
1480
|
+
"label"
|
|
1481
|
+
]
|
|
1482
|
+
}
|
|
1256
1483
|
},
|
|
1257
1484
|
{
|
|
1258
1485
|
"kind": "visibility",
|
|
1259
1486
|
"resolver": "tab-or-link-by-id",
|
|
1260
|
-
"description": "Runtime visibility flag for a group tab or nav link."
|
|
1487
|
+
"description": "Runtime visibility flag for a group tab or nav link.",
|
|
1488
|
+
"resolutionSpec": {
|
|
1489
|
+
"allowIndex": false,
|
|
1490
|
+
"strategy": "array-match",
|
|
1491
|
+
"paths": [
|
|
1492
|
+
"tabs[]",
|
|
1493
|
+
"nav.links[]"
|
|
1494
|
+
],
|
|
1495
|
+
"matchFields": [
|
|
1496
|
+
"id",
|
|
1497
|
+
"label",
|
|
1498
|
+
"textLabel",
|
|
1499
|
+
"title"
|
|
1500
|
+
],
|
|
1501
|
+
"inputMatchFields": [
|
|
1502
|
+
"tabId",
|
|
1503
|
+
"linkId",
|
|
1504
|
+
"id",
|
|
1505
|
+
"textLabel",
|
|
1506
|
+
"label"
|
|
1507
|
+
]
|
|
1508
|
+
}
|
|
1261
1509
|
},
|
|
1262
1510
|
{
|
|
1263
1511
|
"kind": "disabledState",
|
|
1264
1512
|
"resolver": "tab-or-link-by-id",
|
|
1265
|
-
"description": "Disabled state of a tab or nav link."
|
|
1513
|
+
"description": "Disabled state of a tab or nav link.",
|
|
1514
|
+
"resolutionSpec": {
|
|
1515
|
+
"allowIndex": false,
|
|
1516
|
+
"strategy": "array-match",
|
|
1517
|
+
"paths": [
|
|
1518
|
+
"tabs[]",
|
|
1519
|
+
"nav.links[]"
|
|
1520
|
+
],
|
|
1521
|
+
"matchFields": [
|
|
1522
|
+
"id",
|
|
1523
|
+
"label",
|
|
1524
|
+
"textLabel",
|
|
1525
|
+
"title"
|
|
1526
|
+
],
|
|
1527
|
+
"inputMatchFields": [
|
|
1528
|
+
"tabId",
|
|
1529
|
+
"linkId",
|
|
1530
|
+
"id",
|
|
1531
|
+
"textLabel",
|
|
1532
|
+
"label"
|
|
1533
|
+
]
|
|
1534
|
+
}
|
|
1266
1535
|
},
|
|
1267
1536
|
{
|
|
1268
1537
|
"kind": "layout",
|
|
1269
1538
|
"resolver": "tabs-layout-config",
|
|
1270
|
-
"description": "Group/nav mode, header position, density, stretch and behavior settings."
|
|
1539
|
+
"description": "Group/nav mode, visual variant, header position, density, stretch and behavior settings.",
|
|
1540
|
+
"resolutionSpec": {
|
|
1541
|
+
"allowIndex": false,
|
|
1542
|
+
"strategy": "root-path",
|
|
1543
|
+
"paths": [
|
|
1544
|
+
"$"
|
|
1545
|
+
]
|
|
1546
|
+
}
|
|
1271
1547
|
},
|
|
1272
1548
|
{
|
|
1273
1549
|
"kind": "renderBody",
|
|
1274
1550
|
"resolver": "tabs-render-body-config",
|
|
1275
|
-
"description": "Config paths group.renderBody and nav.renderBody that let the host own external body content."
|
|
1551
|
+
"description": "Config paths group.renderBody and nav.renderBody that let the host own external body content.",
|
|
1552
|
+
"resolutionSpec": {
|
|
1553
|
+
"allowIndex": false,
|
|
1554
|
+
"strategy": "root-path",
|
|
1555
|
+
"paths": [
|
|
1556
|
+
"group",
|
|
1557
|
+
"nav",
|
|
1558
|
+
"$"
|
|
1559
|
+
]
|
|
1560
|
+
}
|
|
1276
1561
|
}
|
|
1277
1562
|
],
|
|
1278
1563
|
"operations": [
|
|
@@ -1285,7 +1570,15 @@
|
|
|
1285
1570
|
"kind": "tab",
|
|
1286
1571
|
"resolver": "tabs-array",
|
|
1287
1572
|
"ambiguityPolicy": "fail",
|
|
1288
|
-
"required": false
|
|
1573
|
+
"required": false,
|
|
1574
|
+
"resolutionSpec": {
|
|
1575
|
+
"allowIndex": false,
|
|
1576
|
+
"strategy": "root-path",
|
|
1577
|
+
"paths": [
|
|
1578
|
+
"tabs[]",
|
|
1579
|
+
"$"
|
|
1580
|
+
]
|
|
1581
|
+
}
|
|
1289
1582
|
},
|
|
1290
1583
|
"inputSchema": {
|
|
1291
1584
|
"type": "object",
|
|
@@ -1303,6 +1596,27 @@
|
|
|
1303
1596
|
"icon": {
|
|
1304
1597
|
"type": "string"
|
|
1305
1598
|
},
|
|
1599
|
+
"labelClass": {
|
|
1600
|
+
"anyOf": [
|
|
1601
|
+
{
|
|
1602
|
+
"type": "string"
|
|
1603
|
+
},
|
|
1604
|
+
{
|
|
1605
|
+
"type": "array",
|
|
1606
|
+
"items": {
|
|
1607
|
+
"type": "string"
|
|
1608
|
+
}
|
|
1609
|
+
}
|
|
1610
|
+
]
|
|
1611
|
+
},
|
|
1612
|
+
"tone": {
|
|
1613
|
+
"enum": [
|
|
1614
|
+
"default",
|
|
1615
|
+
"primary",
|
|
1616
|
+
"accent",
|
|
1617
|
+
"outlined"
|
|
1618
|
+
]
|
|
1619
|
+
},
|
|
1306
1620
|
"disabled": {
|
|
1307
1621
|
"type": "boolean"
|
|
1308
1622
|
},
|
|
@@ -1355,7 +1669,26 @@
|
|
|
1355
1669
|
"kind": "tab",
|
|
1356
1670
|
"resolver": "tab-by-id-or-label",
|
|
1357
1671
|
"ambiguityPolicy": "fail",
|
|
1358
|
-
"required": true
|
|
1672
|
+
"required": true,
|
|
1673
|
+
"resolutionSpec": {
|
|
1674
|
+
"allowIndex": false,
|
|
1675
|
+
"strategy": "array-match",
|
|
1676
|
+
"paths": [
|
|
1677
|
+
"tabs[]"
|
|
1678
|
+
],
|
|
1679
|
+
"matchFields": [
|
|
1680
|
+
"id",
|
|
1681
|
+
"label",
|
|
1682
|
+
"textLabel",
|
|
1683
|
+
"title"
|
|
1684
|
+
],
|
|
1685
|
+
"inputMatchFields": [
|
|
1686
|
+
"tabId",
|
|
1687
|
+
"id",
|
|
1688
|
+
"textLabel",
|
|
1689
|
+
"label"
|
|
1690
|
+
]
|
|
1691
|
+
}
|
|
1359
1692
|
},
|
|
1360
1693
|
"inputSchema": {
|
|
1361
1694
|
"type": "object",
|
|
@@ -1369,6 +1702,11 @@
|
|
|
1369
1702
|
{
|
|
1370
1703
|
"kind": "compile-domain-patch",
|
|
1371
1704
|
"handler": "tabs.remove-tab-and-reselect",
|
|
1705
|
+
"selectionReconciliation": {
|
|
1706
|
+
"selectedIndexPath": "group.selectedIndex",
|
|
1707
|
+
"itemKeyField": "id",
|
|
1708
|
+
"onRemovedActive": "clamp"
|
|
1709
|
+
},
|
|
1372
1710
|
"handlerContract": {
|
|
1373
1711
|
"reads": [
|
|
1374
1712
|
"tabs[]",
|
|
@@ -1425,7 +1763,26 @@
|
|
|
1425
1763
|
"kind": "tabLabel",
|
|
1426
1764
|
"resolver": "tab-by-id-or-label",
|
|
1427
1765
|
"ambiguityPolicy": "fail",
|
|
1428
|
-
"required": true
|
|
1766
|
+
"required": true,
|
|
1767
|
+
"resolutionSpec": {
|
|
1768
|
+
"allowIndex": false,
|
|
1769
|
+
"strategy": "array-match",
|
|
1770
|
+
"paths": [
|
|
1771
|
+
"tabs[]"
|
|
1772
|
+
],
|
|
1773
|
+
"matchFields": [
|
|
1774
|
+
"id",
|
|
1775
|
+
"label",
|
|
1776
|
+
"textLabel",
|
|
1777
|
+
"title"
|
|
1778
|
+
],
|
|
1779
|
+
"inputMatchFields": [
|
|
1780
|
+
"tabId",
|
|
1781
|
+
"id",
|
|
1782
|
+
"textLabel",
|
|
1783
|
+
"label"
|
|
1784
|
+
]
|
|
1785
|
+
}
|
|
1429
1786
|
},
|
|
1430
1787
|
"inputSchema": {
|
|
1431
1788
|
"type": "object",
|
|
@@ -1469,7 +1826,26 @@
|
|
|
1469
1826
|
"kind": "tabIcon",
|
|
1470
1827
|
"resolver": "tab-by-id-or-label",
|
|
1471
1828
|
"ambiguityPolicy": "fail",
|
|
1472
|
-
"required": true
|
|
1829
|
+
"required": true,
|
|
1830
|
+
"resolutionSpec": {
|
|
1831
|
+
"allowIndex": false,
|
|
1832
|
+
"strategy": "array-match",
|
|
1833
|
+
"paths": [
|
|
1834
|
+
"tabs[]"
|
|
1835
|
+
],
|
|
1836
|
+
"matchFields": [
|
|
1837
|
+
"id",
|
|
1838
|
+
"label",
|
|
1839
|
+
"textLabel",
|
|
1840
|
+
"title"
|
|
1841
|
+
],
|
|
1842
|
+
"inputMatchFields": [
|
|
1843
|
+
"tabId",
|
|
1844
|
+
"id",
|
|
1845
|
+
"textLabel",
|
|
1846
|
+
"label"
|
|
1847
|
+
]
|
|
1848
|
+
}
|
|
1473
1849
|
},
|
|
1474
1850
|
"inputSchema": {
|
|
1475
1851
|
"type": "object",
|
|
@@ -1513,7 +1889,26 @@
|
|
|
1513
1889
|
"kind": "tab",
|
|
1514
1890
|
"resolver": "tab-by-id-or-label",
|
|
1515
1891
|
"ambiguityPolicy": "fail",
|
|
1516
|
-
"required": true
|
|
1892
|
+
"required": true,
|
|
1893
|
+
"resolutionSpec": {
|
|
1894
|
+
"allowIndex": false,
|
|
1895
|
+
"strategy": "array-match",
|
|
1896
|
+
"paths": [
|
|
1897
|
+
"tabs[]"
|
|
1898
|
+
],
|
|
1899
|
+
"matchFields": [
|
|
1900
|
+
"id",
|
|
1901
|
+
"label",
|
|
1902
|
+
"textLabel",
|
|
1903
|
+
"title"
|
|
1904
|
+
],
|
|
1905
|
+
"inputMatchFields": [
|
|
1906
|
+
"tabId",
|
|
1907
|
+
"id",
|
|
1908
|
+
"textLabel",
|
|
1909
|
+
"label"
|
|
1910
|
+
]
|
|
1911
|
+
}
|
|
1517
1912
|
},
|
|
1518
1913
|
"inputSchema": {
|
|
1519
1914
|
"type": "object",
|
|
@@ -1530,6 +1925,11 @@
|
|
|
1530
1925
|
{
|
|
1531
1926
|
"kind": "compile-domain-patch",
|
|
1532
1927
|
"handler": "tabs.reorder-tab-and-preserve-selection",
|
|
1928
|
+
"selectionReconciliation": {
|
|
1929
|
+
"selectedIndexPath": "group.selectedIndex",
|
|
1930
|
+
"itemKeyField": "id",
|
|
1931
|
+
"onRemovedActive": "clamp"
|
|
1932
|
+
},
|
|
1533
1933
|
"handlerContract": {
|
|
1534
1934
|
"reads": [
|
|
1535
1935
|
"tabs[]",
|
|
@@ -1587,7 +1987,28 @@
|
|
|
1587
1987
|
"kind": "disabledState",
|
|
1588
1988
|
"resolver": "tab-or-link-by-id",
|
|
1589
1989
|
"ambiguityPolicy": "fail",
|
|
1590
|
-
"required": true
|
|
1990
|
+
"required": true,
|
|
1991
|
+
"resolutionSpec": {
|
|
1992
|
+
"allowIndex": false,
|
|
1993
|
+
"strategy": "array-match",
|
|
1994
|
+
"paths": [
|
|
1995
|
+
"tabs[]",
|
|
1996
|
+
"nav.links[]"
|
|
1997
|
+
],
|
|
1998
|
+
"matchFields": [
|
|
1999
|
+
"id",
|
|
2000
|
+
"label",
|
|
2001
|
+
"textLabel",
|
|
2002
|
+
"title"
|
|
2003
|
+
],
|
|
2004
|
+
"inputMatchFields": [
|
|
2005
|
+
"tabId",
|
|
2006
|
+
"linkId",
|
|
2007
|
+
"id",
|
|
2008
|
+
"textLabel",
|
|
2009
|
+
"label"
|
|
2010
|
+
]
|
|
2011
|
+
}
|
|
1591
2012
|
},
|
|
1592
2013
|
"inputSchema": {
|
|
1593
2014
|
"type": "object",
|
|
@@ -1664,7 +2085,28 @@
|
|
|
1664
2085
|
"kind": "visibility",
|
|
1665
2086
|
"resolver": "tab-or-link-by-id",
|
|
1666
2087
|
"ambiguityPolicy": "fail",
|
|
1667
|
-
"required": true
|
|
2088
|
+
"required": true,
|
|
2089
|
+
"resolutionSpec": {
|
|
2090
|
+
"allowIndex": false,
|
|
2091
|
+
"strategy": "array-match",
|
|
2092
|
+
"paths": [
|
|
2093
|
+
"tabs[]",
|
|
2094
|
+
"nav.links[]"
|
|
2095
|
+
],
|
|
2096
|
+
"matchFields": [
|
|
2097
|
+
"id",
|
|
2098
|
+
"label",
|
|
2099
|
+
"textLabel",
|
|
2100
|
+
"title"
|
|
2101
|
+
],
|
|
2102
|
+
"inputMatchFields": [
|
|
2103
|
+
"tabId",
|
|
2104
|
+
"linkId",
|
|
2105
|
+
"id",
|
|
2106
|
+
"textLabel",
|
|
2107
|
+
"label"
|
|
2108
|
+
]
|
|
2109
|
+
}
|
|
1668
2110
|
},
|
|
1669
2111
|
"inputSchema": {
|
|
1670
2112
|
"type": "object",
|
|
@@ -1741,7 +2183,28 @@
|
|
|
1741
2183
|
"kind": "activeTab",
|
|
1742
2184
|
"resolver": "tab-index-or-id",
|
|
1743
2185
|
"ambiguityPolicy": "fail",
|
|
1744
|
-
"required": true
|
|
2186
|
+
"required": true,
|
|
2187
|
+
"resolutionSpec": {
|
|
2188
|
+
"allowIndex": false,
|
|
2189
|
+
"strategy": "array-match",
|
|
2190
|
+
"paths": [
|
|
2191
|
+
"tabs[]",
|
|
2192
|
+
"nav.links[]"
|
|
2193
|
+
],
|
|
2194
|
+
"matchFields": [
|
|
2195
|
+
"id",
|
|
2196
|
+
"label",
|
|
2197
|
+
"textLabel",
|
|
2198
|
+
"title"
|
|
2199
|
+
],
|
|
2200
|
+
"inputMatchFields": [
|
|
2201
|
+
"tabId",
|
|
2202
|
+
"linkId",
|
|
2203
|
+
"id",
|
|
2204
|
+
"textLabel",
|
|
2205
|
+
"label"
|
|
2206
|
+
]
|
|
2207
|
+
}
|
|
1745
2208
|
},
|
|
1746
2209
|
"inputSchema": {
|
|
1747
2210
|
"type": "object",
|
|
@@ -1824,13 +2287,18 @@
|
|
|
1824
2287
|
"kind": "layout",
|
|
1825
2288
|
"resolver": "tabs-layout-config",
|
|
1826
2289
|
"ambiguityPolicy": "fail",
|
|
1827
|
-
"required": true
|
|
2290
|
+
"required": true,
|
|
2291
|
+
"resolutionSpec": {
|
|
2292
|
+
"allowIndex": false,
|
|
2293
|
+
"strategy": "root-path",
|
|
2294
|
+
"paths": [
|
|
2295
|
+
"$"
|
|
2296
|
+
]
|
|
2297
|
+
}
|
|
1828
2298
|
},
|
|
1829
2299
|
"inputSchema": {
|
|
1830
2300
|
"type": "object",
|
|
1831
|
-
"
|
|
1832
|
-
"mode"
|
|
1833
|
-
],
|
|
2301
|
+
"minProperties": 1,
|
|
1834
2302
|
"properties": {
|
|
1835
2303
|
"mode": {
|
|
1836
2304
|
"enum": [
|
|
@@ -1838,6 +2306,13 @@
|
|
|
1838
2306
|
"nav"
|
|
1839
2307
|
]
|
|
1840
2308
|
},
|
|
2309
|
+
"variant": {
|
|
2310
|
+
"enum": [
|
|
2311
|
+
"underline",
|
|
2312
|
+
"pill",
|
|
2313
|
+
"segmented"
|
|
2314
|
+
]
|
|
2315
|
+
},
|
|
1841
2316
|
"density": {
|
|
1842
2317
|
"enum": [
|
|
1843
2318
|
"compact",
|
|
@@ -1892,6 +2367,7 @@
|
|
|
1892
2367
|
"editor-runtime-round-trip"
|
|
1893
2368
|
],
|
|
1894
2369
|
"affectedPaths": [
|
|
2370
|
+
"appearance.variant",
|
|
1895
2371
|
"appearance.density",
|
|
1896
2372
|
"group.headerPosition",
|
|
1897
2373
|
"group.alignTabs",
|
|
@@ -1913,7 +2389,28 @@
|
|
|
1913
2389
|
"kind": "tabContent",
|
|
1914
2390
|
"resolver": "tab-or-link-by-id",
|
|
1915
2391
|
"ambiguityPolicy": "fail",
|
|
1916
|
-
"required": true
|
|
2392
|
+
"required": true,
|
|
2393
|
+
"resolutionSpec": {
|
|
2394
|
+
"allowIndex": false,
|
|
2395
|
+
"strategy": "array-match",
|
|
2396
|
+
"paths": [
|
|
2397
|
+
"tabs[]",
|
|
2398
|
+
"nav.links[]"
|
|
2399
|
+
],
|
|
2400
|
+
"matchFields": [
|
|
2401
|
+
"id",
|
|
2402
|
+
"label",
|
|
2403
|
+
"textLabel",
|
|
2404
|
+
"title"
|
|
2405
|
+
],
|
|
2406
|
+
"inputMatchFields": [
|
|
2407
|
+
"tabId",
|
|
2408
|
+
"linkId",
|
|
2409
|
+
"id",
|
|
2410
|
+
"textLabel",
|
|
2411
|
+
"label"
|
|
2412
|
+
]
|
|
2413
|
+
}
|
|
1917
2414
|
},
|
|
1918
2415
|
"inputSchema": {
|
|
1919
2416
|
"type": "object",
|
|
@@ -1928,6 +2425,27 @@
|
|
|
1928
2425
|
"icon": {
|
|
1929
2426
|
"type": "string"
|
|
1930
2427
|
},
|
|
2428
|
+
"labelClass": {
|
|
2429
|
+
"anyOf": [
|
|
2430
|
+
{
|
|
2431
|
+
"type": "string"
|
|
2432
|
+
},
|
|
2433
|
+
{
|
|
2434
|
+
"type": "array",
|
|
2435
|
+
"items": {
|
|
2436
|
+
"type": "string"
|
|
2437
|
+
}
|
|
2438
|
+
}
|
|
2439
|
+
]
|
|
2440
|
+
},
|
|
2441
|
+
"tone": {
|
|
2442
|
+
"enum": [
|
|
2443
|
+
"default",
|
|
2444
|
+
"primary",
|
|
2445
|
+
"accent",
|
|
2446
|
+
"outlined"
|
|
2447
|
+
]
|
|
2448
|
+
},
|
|
1931
2449
|
"disabled": {
|
|
1932
2450
|
"type": "boolean"
|
|
1933
2451
|
},
|
|
@@ -1980,6 +2498,27 @@
|
|
|
1980
2498
|
"icon": {
|
|
1981
2499
|
"type": "string"
|
|
1982
2500
|
},
|
|
2501
|
+
"labelClass": {
|
|
2502
|
+
"anyOf": [
|
|
2503
|
+
{
|
|
2504
|
+
"type": "string"
|
|
2505
|
+
},
|
|
2506
|
+
{
|
|
2507
|
+
"type": "array",
|
|
2508
|
+
"items": {
|
|
2509
|
+
"type": "string"
|
|
2510
|
+
}
|
|
2511
|
+
}
|
|
2512
|
+
]
|
|
2513
|
+
},
|
|
2514
|
+
"tone": {
|
|
2515
|
+
"enum": [
|
|
2516
|
+
"default",
|
|
2517
|
+
"primary",
|
|
2518
|
+
"accent",
|
|
2519
|
+
"outlined"
|
|
2520
|
+
]
|
|
2521
|
+
},
|
|
1983
2522
|
"disabled": {
|
|
1984
2523
|
"type": "boolean"
|
|
1985
2524
|
},
|
|
@@ -2262,6 +2801,16 @@
|
|
|
2262
2801
|
"replacementActiveTabId": "overview"
|
|
2263
2802
|
},
|
|
2264
2803
|
"isPositive": true
|
|
2804
|
+
},
|
|
2805
|
+
{
|
|
2806
|
+
"id": "set-pill-variant",
|
|
2807
|
+
"request": "Switch the tabs header to pill variant.",
|
|
2808
|
+
"operationId": "layout.variant.set",
|
|
2809
|
+
"params": {
|
|
2810
|
+
"variant": "pill",
|
|
2811
|
+
"density": "compact"
|
|
2812
|
+
},
|
|
2813
|
+
"isPositive": true
|
|
2265
2814
|
}
|
|
2266
2815
|
]
|
|
2267
2816
|
},
|
|
@@ -2269,9 +2818,9 @@
|
|
|
2269
2818
|
{
|
|
2270
2819
|
"chunkIndex": 0,
|
|
2271
2820
|
"chunkKind": "summary",
|
|
2272
|
-
"content": "Component ID: praxis-tabs\nSelector: praxis-tabs\nFriendly Name: Praxis Tabs\nDescription: Abas dinâmicas baseadas em metadata, com MatTabGroup/TabNav e suporte a tokens M3 via appearance.\nLib/Package: @praxisui/tabs\nTags: widget, tabs, configurable, stable\nInputs:\n - config (TabsMetadata)\n - tabsId (string)\n - componentInstanceId (string)\n - configPersistenceStrategy (\"storage-first\" | \"input-first\")\n - selectedIndex (number)\n - enableCustomization (boolean)\n - form (FormGroup)\n - context (Record<string, any>)\nOutputs:\n - selectedIndexChange (number)\n - configChange (TabsConfigChangeEvent)\n - selectedTabChange (MatTabChangeEvent)\n - animationDone (void)\n - focusChange (MatTabChangeEvent)\n - indexFocused (number)\n - selectFocusedIndex (number)\n - widgetEvent (WidgetEventEnvelope)\n",
|
|
2821
|
+
"content": "Component ID: praxis-tabs\nSelector: praxis-tabs\nFriendly Name: Praxis Tabs\nDescription: Abas dinâmicas baseadas em metadata, com MatTabGroup/TabNav, variantes visuais (underline, pill, segmented), tons por aba/link e suporte a tokens M3 via appearance.\nLib/Package: @praxisui/tabs\nTags: widget, tabs, configurable, stable\nInputs:\n - config (TabsMetadata)\n - tabsId (string)\n - componentInstanceId (string)\n - configPersistenceStrategy (\"storage-first\" | \"local-first\" | \"input-first\" | \"volatile\")\n - selectedIndex (number)\n - enableCustomization (boolean)\n - form (FormGroup)\n - context (Record<string, any>)\nOutputs:\n - selectedIndexChange (number)\n - configChange (TabsConfigChangeEvent)\n - selectedTabChange (MatTabChangeEvent)\n - animationDone (void)\n - focusChange (MatTabChangeEvent)\n - indexFocused (number)\n - selectFocusedIndex (number)\n - widgetEvent (WidgetEventEnvelope)\n",
|
|
2273
2822
|
"sourcePointer": "projects/praxis-tabs/src/lib/praxis-tabs.metadata.ts",
|
|
2274
|
-
"contentHash": "
|
|
2823
|
+
"contentHash": "7b63fef5920d9f9f13d1510940dbee7f76c42c198639dd4de03f9f10545d08cf",
|
|
2275
2824
|
"sourceKind": "component_definition",
|
|
2276
2825
|
"sourceId": "praxis-tabs",
|
|
2277
2826
|
"corpusVersion": "1.0.0"
|
|
@@ -2279,9 +2828,9 @@
|
|
|
2279
2828
|
{
|
|
2280
2829
|
"chunkIndex": 1,
|
|
2281
2830
|
"chunkKind": "capabilities",
|
|
2282
|
-
"content": "Component Capability:\n - Path: meta\n Category: meta\n Kind: object\n Description: Metadata bag for tabs.\n\nComponent Capability:\n - Path: appearance\n Category: appearance\n Kind: object\n Description: Appearance settings.\n\nComponent Capability:\n - Path: appearance.density\n Category: appearance\n Kind: enum\n Description: Density preset.\n\nComponent Capability:\n - Path: appearance.themeClass\n Category: appearance\n Kind: string\n Description: Theme CSS class applied to root.\n\nComponent Capability:\n - Path: appearance.customCss\n Category: appearance\n Kind: string\n Description: Custom CSS injected into component.\n\nComponent Capability:\n - Path: appearance.tokens\n Category: appearance\n Kind: object\n Description: Style tokens mapped to runtime CSS.\n\nComponent Capability:\n - Path: behavior\n Category: behavior\n Kind: object\n Description: Behavior settings.\n\nComponent Capability:\n - Path: behavior.lazyLoad\n Category: behavior\n Kind: boolean\n Description: Lazy load tab content.\n\nComponent Capability:\n - Path: behavior.closeable\n Category: behavior\n Kind: boolean\n Description: Show close button on tabs.\n\nComponent Capability:\n - Path: behavior.reorderable\n Category: behavior\n Kind: boolean\n Description: Allow reorder tabs/links.\n\nComponent Capability:\n - Path: accessibility\n Category: accessibility\n Kind: object\n Description: Accessibility settings.\n\nComponent Capability:\n - Path: accessibility.highContrast\n Category: accessibility\n Kind: boolean\n Description: High contrast mode.\n\nComponent Capability:\n - Path: accessibility.reduceMotion\n Category: accessibility\n Kind: boolean\n Description: Reduce motion.\n\nComponent Capability:\n - Path: group\n Category: group\n Kind: object\n Description: MatTabGroup settings.\n\nComponent Capability:\n - Path: group.alignTabs\n Category: group\n Kind: enum\n Description: Align tabs in header.\n\nComponent Capability:\n - Path: group.animationDuration\n Category: group\n Kind: string\n Description: Animation duration (e.g., 500ms).\n\nComponent Capability:\n - Path: group.ariaLabel\n Category: group\n Kind: string\n Description: aria-label for tab group.\n\nComponent Capability:\n - Path: group.ariaLabelledby\n Category: group\n Kind: string\n Description: aria-labelledby for tab group.\n\nComponent Capability:\n - Path: group.color\n Category: group\n Kind: enum\n Description: M2 color.\n\nComponent Capability:\n - Path: group.backgroundColor\n Category: group\n Kind: enum\n Description: M2 background color.\n\nComponent Capability:\n - Path: group.disablePagination\n Category: group\n Kind: boolean\n Description: Disable pagination of header.\n\nComponent Capability:\n - Path: group.disableRipple\n Category: group\n Kind: boolean\n Description: Disable ripple.\n\nComponent Capability:\n - Path: group.dynamicHeight\n Category: group\n Kind: boolean\n Description: Enable dynamic height.\n\nComponent Capability:\n - Path: group.fitInkBarToContent\n Category: group\n Kind: boolean\n Description: Fit ink bar to content.\n\nComponent Capability:\n - Path: group.headerPosition\n Category: group\n Kind: enum\n Description: Header position.\n\nComponent Capability:\n - Path: group.preserveContent\n Category: group\n Kind: boolean\n Description: Preserve content of inactive tabs.\n\nComponent Capability:\n - Path: group.selectedIndex\n Category: group\n Kind: number\n Description: Selected tab index.\n\nComponent Capability:\n - Path: group.stretchTabs\n Category: group\n Kind: boolean\n Description: Stretch tabs.\n\nComponent Capability:\n - Path: nav\n Category: nav\n Kind: object\n Description: Tab nav settings.\n\nComponent Capability:\n - Path: nav.animationDuration\n Category: nav\n Kind: string\n Description: Animation duration (e.g., 500ms).\n\nComponent Capability:\n - Path: nav.ariaLabel\n Category: nav\n Kind: string\n Description: aria-label for nav mode.\n\nComponent Capability:\n - Path: nav.ariaLabelledby\n Category: nav\n Kind: string\n Description: aria-labelledby for nav mode.\n\nComponent Capability:\n - Path: nav.color\n Category: nav\n Kind: enum\n Description: M2 color.\n\nComponent Capability:\n - Path: nav.backgroundColor\n Category: nav\n Kind: enum\n Description: M2 background color.\n\nComponent Capability:\n - Path: nav.disablePagination\n Category: nav\n Kind: boolean\n Description: Disable pagination of nav.\n\nComponent Capability:\n - Path: nav.disableRipple\n Category: nav\n Kind: boolean\n Description: Disable ripple.\n\nComponent Capability:\n - Path: nav.fitInkBarToContent\n Category: nav\n Kind: boolean\n Description: Fit ink bar to content.\n\nComponent Capability:\n - Path: nav.selectedIndex\n Category: nav\n Kind: number\n Description: Selected nav link index.\n\nComponent Capability:\n - Path: nav.stretchTabs\n Category: nav\n Kind: boolean\n Description: Stretch nav tabs.\n\nComponent Capability:\n - Path: nav.links\n Category: nav\n Kind: array\n Description: Nav links array.\n\nComponent Capability:\n - Path: nav.links[].id\n Category: nav\n Kind: string\n Description: Link id.\n\nComponent Capability:\n - Path: nav.links[].label\n Category: nav\n Kind: string\n Description: Link label.\n\nComponent Capability:\n - Path: nav.links[].active\n Category: nav\n Kind: boolean\n Description: Link active flag.\n\nComponent Capability:\n - Path: nav.links[].disabled\n Category: nav\n Kind: boolean\n Description: Disable link.\n\nComponent Capability:\n - Path: nav.links[].disableRipple\n Category: nav\n Kind: boolean\n Description: Disable ripple on link.\n\nComponent Capability:\n - Path: nav.links[].fitInkBarToContent\n Category: nav\n Kind: boolean\n Description: Fit ink bar to link content.\n\nComponent Capability:\n - Path: nav.links[].content\n Category: nav\n Kind: array\n Description: Dynamic field metadata list.\n\nComponent Capability:\n - Path: nav.links[].widgets\n Category: nav\n Kind: array\n Description: Widget definitions for link content.\n\nComponent Capability:\n - Path: tabs\n Category: tabs\n Kind: array\n Description: Tabs array.\n\nComponent Capability:\n - Path: tabs[].id\n Category: tabs\n Kind: string\n Description: Tab id.\n\nComponent Capability:\n - Path: tabs[].textLabel\n Category: tabs\n Kind: string\n Description: Tab label.\n\nComponent Capability:\n - Path: tabs[].labelClass\n Category: tabs\n Kind: string\n Description: Label class (string or string[]).\n\nComponent Capability:\n - Path: tabs[].bodyClass\n Category: tabs\n Kind: string\n Description: Body class (string or string[]).\n\nComponent Capability:\n - Path: tabs[].
|
|
2831
|
+
"content": "Component Capability:\n - Path: meta\n Category: meta\n Kind: object\n Description: Metadata bag for tabs.\n\nComponent Capability:\n - Path: appearance\n Category: appearance\n Kind: object\n Description: Appearance settings.\n\nComponent Capability:\n - Path: appearance.variant\n Category: appearance\n Kind: enum\n Description: Visual tab strip variant (underline, pill, segmented).\n\nComponent Capability:\n - Path: appearance.density\n Category: appearance\n Kind: enum\n Description: Density preset.\n\nComponent Capability:\n - Path: appearance.themeClass\n Category: appearance\n Kind: string\n Description: Theme CSS class applied to root.\n\nComponent Capability:\n - Path: appearance.customCss\n Category: appearance\n Kind: string\n Description: Custom CSS injected into component.\n\nComponent Capability:\n - Path: appearance.tokens\n Category: appearance\n Kind: object\n Description: Style tokens mapped to runtime CSS.\n\nComponent Capability:\n - Path: behavior\n Category: behavior\n Kind: object\n Description: Behavior settings.\n\nComponent Capability:\n - Path: behavior.lazyLoad\n Category: behavior\n Kind: boolean\n Description: Lazy load tab content.\n\nComponent Capability:\n - Path: behavior.closeable\n Category: behavior\n Kind: boolean\n Description: Show close button on tabs.\n\nComponent Capability:\n - Path: behavior.reorderable\n Category: behavior\n Kind: boolean\n Description: Allow reorder tabs/links.\n\nComponent Capability:\n - Path: accessibility\n Category: accessibility\n Kind: object\n Description: Accessibility settings.\n\nComponent Capability:\n - Path: accessibility.highContrast\n Category: accessibility\n Kind: boolean\n Description: High contrast mode.\n\nComponent Capability:\n - Path: accessibility.reduceMotion\n Category: accessibility\n Kind: boolean\n Description: Reduce motion.\n\nComponent Capability:\n - Path: group\n Category: group\n Kind: object\n Description: MatTabGroup settings.\n\nComponent Capability:\n - Path: group.alignTabs\n Category: group\n Kind: enum\n Description: Align tabs in header.\n\nComponent Capability:\n - Path: group.animationDuration\n Category: group\n Kind: string\n Description: Animation duration (e.g., 500ms).\n\nComponent Capability:\n - Path: group.ariaLabel\n Category: group\n Kind: string\n Description: aria-label for tab group.\n\nComponent Capability:\n - Path: group.ariaLabelledby\n Category: group\n Kind: string\n Description: aria-labelledby for tab group.\n\nComponent Capability:\n - Path: group.color\n Category: group\n Kind: enum\n Description: M2 color.\n\nComponent Capability:\n - Path: group.backgroundColor\n Category: group\n Kind: enum\n Description: M2 background color.\n\nComponent Capability:\n - Path: group.disablePagination\n Category: group\n Kind: boolean\n Description: Disable pagination of header.\n\nComponent Capability:\n - Path: group.disableRipple\n Category: group\n Kind: boolean\n Description: Disable ripple.\n\nComponent Capability:\n - Path: group.dynamicHeight\n Category: group\n Kind: boolean\n Description: Enable dynamic height.\n\nComponent Capability:\n - Path: group.fitInkBarToContent\n Category: group\n Kind: boolean\n Description: Fit ink bar to content.\n\nComponent Capability:\n - Path: group.headerPosition\n Category: group\n Kind: enum\n Description: Header position.\n\nComponent Capability:\n - Path: group.preserveContent\n Category: group\n Kind: boolean\n Description: Preserve content of inactive tabs.\n\nComponent Capability:\n - Path: group.selectedIndex\n Category: group\n Kind: number\n Description: Selected tab index.\n\nComponent Capability:\n - Path: group.stretchTabs\n Category: group\n Kind: boolean\n Description: Stretch tabs.\n\nComponent Capability:\n - Path: nav\n Category: nav\n Kind: object\n Description: Tab nav settings.\n\nComponent Capability:\n - Path: nav.animationDuration\n Category: nav\n Kind: string\n Description: Animation duration (e.g., 500ms).\n\nComponent Capability:\n - Path: nav.ariaLabel\n Category: nav\n Kind: string\n Description: aria-label for nav mode.\n\nComponent Capability:\n - Path: nav.ariaLabelledby\n Category: nav\n Kind: string\n Description: aria-labelledby for nav mode.\n\nComponent Capability:\n - Path: nav.color\n Category: nav\n Kind: enum\n Description: M2 color.\n\nComponent Capability:\n - Path: nav.backgroundColor\n Category: nav\n Kind: enum\n Description: M2 background color.\n\nComponent Capability:\n - Path: nav.disablePagination\n Category: nav\n Kind: boolean\n Description: Disable pagination of nav.\n\nComponent Capability:\n - Path: nav.disableRipple\n Category: nav\n Kind: boolean\n Description: Disable ripple.\n\nComponent Capability:\n - Path: nav.fitInkBarToContent\n Category: nav\n Kind: boolean\n Description: Fit ink bar to content.\n\nComponent Capability:\n - Path: nav.selectedIndex\n Category: nav\n Kind: number\n Description: Selected nav link index.\n\nComponent Capability:\n - Path: nav.stretchTabs\n Category: nav\n Kind: boolean\n Description: Stretch nav tabs.\n\nComponent Capability:\n - Path: nav.links\n Category: nav\n Kind: array\n Description: Nav links array.\n\nComponent Capability:\n - Path: nav.links[].id\n Category: nav\n Kind: string\n Description: Link id.\n\nComponent Capability:\n - Path: nav.links[].label\n Category: nav\n Kind: string\n Description: Link label.\n\nComponent Capability:\n - Path: nav.links[].labelClass\n Category: nav\n Kind: string\n Description: Label class (string or string[]).\n\nComponent Capability:\n - Path: nav.links[].tone\n Category: nav\n Kind: enum\n Description: Per-link emphasis tone (default, primary, accent, outlined).\n\nComponent Capability:\n - Path: nav.links[].active\n Category: nav\n Kind: boolean\n Description: Link active flag.\n\nComponent Capability:\n - Path: nav.links[].disabled\n Category: nav\n Kind: boolean\n Description: Disable link.\n\nComponent Capability:\n - Path: nav.links[].disableRipple\n Category: nav\n Kind: boolean\n Description: Disable ripple on link.\n\nComponent Capability:\n - Path: nav.links[].fitInkBarToContent\n Category: nav\n Kind: boolean\n Description: Fit ink bar to link content.\n\nComponent Capability:\n - Path: nav.links[].content\n Category: nav\n Kind: array\n Description: Dynamic field metadata list.\n\nComponent Capability:\n - Path: nav.links[].widgets\n Category: nav\n Kind: array\n Description: Widget definitions for link content.\n\nComponent Capability:\n - Path: tabs\n Category: tabs\n Kind: array\n Description: Tabs array.\n\nComponent Capability:\n - Path: tabs[].id\n Category: tabs\n Kind: string\n Description: Tab id.\n\nComponent Capability:\n - Path: tabs[].textLabel\n Category: tabs\n Kind: string\n Description: Tab label.\n\nComponent Capability:\n - Path: tabs[].labelClass\n Category: tabs\n Kind: string\n Description: Label class (string or string[]).\n\nComponent Capability:\n - Path: tabs[].bodyClass\n Category: tabs\n Kind: string\n Description: Body class (string or string[]).\n\nComponent Capability:\n - Path: tabs[].tone\n Category: tabs\n Kind: enum\n Description: Per-tab emphasis tone (default, primary, accent, outlined).\n\nComponent Capability:\n - Path: tabs[].ariaLabel\n Category: tabs\n Kind: string\n Description: aria-label for tab.\n\nComponent Capability:\n - Path: tabs[].ariaLabelledby\n Category: tabs\n Kind: string\n Description: aria-labelledby for tab.\n\nComponent Capability:\n - Path: tabs[].disabled\n Category: tabs\n Kind: boolean\n Description: Disable tab.\n\nComponent Capability:\n - Path: tabs[].content\n Category: tabs\n Kind: array\n Description: Dynamic field metadata list.",
|
|
2283
2832
|
"sourcePointer": "projects/praxis-tabs/src/lib/ai/tabs-ai-capabilities.ts",
|
|
2284
|
-
"contentHash": "
|
|
2833
|
+
"contentHash": "760d56e284bb074d49621fefab34d26088aac4d3dcdf575a320ce27be8831b83",
|
|
2285
2834
|
"sourceKind": "component_definition",
|
|
2286
2835
|
"sourceId": "praxis-tabs",
|
|
2287
2836
|
"corpusVersion": "1.0.0"
|
|
@@ -2289,9 +2838,9 @@
|
|
|
2289
2838
|
{
|
|
2290
2839
|
"chunkIndex": 2,
|
|
2291
2840
|
"chunkKind": "capabilities",
|
|
2292
|
-
"content": "Capability Note:\n - TabsMetadata drives both group and nav modes. Use nav.* when links are present.\n\nCapability Note:\n - appearance.customCss is injected into a <style> tag; avoid unsafe CSS from untrusted sources.\n\nCapability Note:\n - tabs[].content expects DynamicFieldMetadata[] and widgets[] expects WidgetDefinition[].",
|
|
2841
|
+
"content": "Component Capability:\n - Path: tabs[].widgets\n Category: tabs\n Kind: array\n Description: Widget definitions for tab content.\n\nComponent Capability:\n - Path: tabs[].isActive\n Category: tabs\n Kind: boolean\n Description: Active flag (metadata only).\n\nComponent Capability:\n - Path: tabs[].origin\n Category: tabs\n Kind: number\n Description: Origin index (metadata only).\n\nComponent Capability:\n - Path: tabs[].position\n Category: tabs\n Kind: number\n Description: Position index (metadata only).\n\nComponent Capability:\n - Path: events\n Category: events\n Kind: object\n Description: Event config (placeholder).\n\nCapability Note:\n - TabsMetadata drives both group and nav modes. Use nav.* when links are present.\n\nCapability Note:\n - appearance.customCss is injected into a <style> tag; avoid unsafe CSS from untrusted sources.\n\nCapability Note:\n - tabs[].content expects DynamicFieldMetadata[] and widgets[] expects WidgetDefinition[].",
|
|
2293
2842
|
"sourcePointer": "projects/praxis-tabs/src/lib/ai/tabs-ai-capabilities.ts",
|
|
2294
|
-
"contentHash": "
|
|
2843
|
+
"contentHash": "fb15ac1a60c3a9aaf78a8f47c9dd915c008a723570214f7ab212b326992964b0",
|
|
2295
2844
|
"sourceKind": "component_definition",
|
|
2296
2845
|
"sourceId": "praxis-tabs",
|
|
2297
2846
|
"corpusVersion": "1.0.0"
|
|
@@ -2299,9 +2848,9 @@
|
|
|
2299
2848
|
{
|
|
2300
2849
|
"chunkIndex": 3,
|
|
2301
2850
|
"chunkKind": "authoring_manifest",
|
|
2302
|
-
"content": "{\"operationId\":\"tab.add\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.0.0\",\"componentId\":\"praxis-tabs\",\"ownerPackage\":\"@praxisui/tabs\",\"configSchemaId\":\"TabsMetadata\",\"chunkSection\":\"operation_card\",\"semanticSummary\":\"Add tab Effects: append-unique. Add an Overview tab before the details tab. Add another tab with id overview. Create a list in this tab; do not add a new tab.\",\"scope\":\"global\",\"target\":{\"kind\":\"tab\",\"resolver\":\"tabs-array\",\"required\":false},\"inputContract\":{\"required\":[\"id\",\"textLabel\"],\"properties\":[\"id\",\"textLabel\",\"icon\",\"disabled\",\"visible\",\"content\",\"widgets\"],\"semanticTerms\":[\"id\",\"textLabel\",\"icon\",\"disabled\",\"visible\",\"content\",\"widgets\"]},\"effects\":[\"append-unique\"],\"affectedPaths\":[\"tabs[]\"],\"validators\":[{\"validatorId\":\"tab-id-unique\",\"level\":\"error\",\"code\":\"PTABS001\",\"description\":\"Tab ids and nav link ids must be unique within their mode.\"},{\"validatorId\":\"tabs-mode-compatible\",\"level\":\"error\",\"code\":\"PTABS011\",\"description\":\"Authoring must resolve to one primary mode: group tabs or nav links.\"},{\"validatorId\":\"tab-content-valid\",\"level\":\"error\",\"code\":\"PTABS016\",\"description\":\"Tab content must be valid DynamicFieldMetadata[] or WidgetDefinition[] and preserve nested widget identity.\"}],\"preconditions\":[\"config-initialized\"],\"submissionImpact\":\"config-only\",\"presentationAffordances\":[],\"positiveExamples\":[{\"id\":\"add-overview-tab\",\"request\":\"Add an Overview tab before the details tab.\",\"operationId\":\"tab.add\",\"params\":{\"id\":\"overview\",\"textLabel\":\"Overview\"},\"isPositive\":true}],\"negativeExamples\":[{\"id\":\"reject-duplicate-tab-id\",\"request\":\"Add another tab with id overview.\",\"operationId\":\"tab.add\",\"params\":{\"id\":\"overview\",\"textLabel\":\"Duplicate Overview\"},\"isPositive\":false},{\"id\":\"reject-current-tab-content-as-tab-add\",\"request\":\"Create a list in this tab; do not add a new tab.\",\"operationId\":\"tab.add\",\"params\":{\"id\":\"list-in-this-tab\",\"textLabel\":\"List in this tab\"},\"isPositive\":false}]}",
|
|
2851
|
+
"content": "{\"operationId\":\"tab.add\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.0.0\",\"componentId\":\"praxis-tabs\",\"ownerPackage\":\"@praxisui/tabs\",\"configSchemaId\":\"TabsMetadata\",\"chunkSection\":\"operation_card\",\"semanticSummary\":\"Add tab Effects: append-unique. Add an Overview tab before the details tab. Add another tab with id overview. Create a list in this tab; do not add a new tab.\",\"scope\":\"global\",\"target\":{\"kind\":\"tab\",\"resolver\":\"tabs-array\",\"required\":false},\"inputContract\":{\"required\":[\"id\",\"textLabel\"],\"properties\":[\"id\",\"textLabel\",\"icon\",\"labelClass\",\"tone\",\"disabled\",\"visible\",\"content\",\"widgets\"],\"semanticTerms\":[\"id\",\"textLabel\",\"icon\",\"labelClass\",\"tone\",\"disabled\",\"visible\",\"content\",\"widgets\",\"default\",\"primary\",\"accent\",\"outlined\"]},\"effects\":[\"append-unique\"],\"affectedPaths\":[\"tabs[]\"],\"validators\":[{\"validatorId\":\"tab-id-unique\",\"level\":\"error\",\"code\":\"PTABS001\",\"description\":\"Tab ids and nav link ids must be unique within their mode.\"},{\"validatorId\":\"tabs-mode-compatible\",\"level\":\"error\",\"code\":\"PTABS011\",\"description\":\"Authoring must resolve to one primary mode: group tabs or nav links.\"},{\"validatorId\":\"tab-content-valid\",\"level\":\"error\",\"code\":\"PTABS016\",\"description\":\"Tab content must be valid DynamicFieldMetadata[] or WidgetDefinition[] and preserve nested widget identity.\"}],\"preconditions\":[\"config-initialized\"],\"submissionImpact\":\"config-only\",\"presentationAffordances\":[],\"positiveExamples\":[{\"id\":\"add-overview-tab\",\"request\":\"Add an Overview tab before the details tab.\",\"operationId\":\"tab.add\",\"params\":{\"id\":\"overview\",\"textLabel\":\"Overview\"},\"isPositive\":true}],\"negativeExamples\":[{\"id\":\"reject-duplicate-tab-id\",\"request\":\"Add another tab with id overview.\",\"operationId\":\"tab.add\",\"params\":{\"id\":\"overview\",\"textLabel\":\"Duplicate Overview\"},\"isPositive\":false},{\"id\":\"reject-current-tab-content-as-tab-add\",\"request\":\"Create a list in this tab; do not add a new tab.\",\"operationId\":\"tab.add\",\"params\":{\"id\":\"list-in-this-tab\",\"textLabel\":\"List in this tab\"},\"isPositive\":false}]}",
|
|
2303
2852
|
"sourcePointer": "projects/praxis-tabs/src/lib/ai/praxis-tabs-authoring-manifest.ts",
|
|
2304
|
-
"contentHash": "
|
|
2853
|
+
"contentHash": "880f2fad9f1302f4f1789f784272c1c40488ed8460c7b631c15c393621bd8bbd",
|
|
2305
2854
|
"sourceKind": "component_definition",
|
|
2306
2855
|
"sourceId": "praxis-tabs",
|
|
2307
2856
|
"corpusVersion": "1.0.0"
|
|
@@ -2379,9 +2928,9 @@
|
|
|
2379
2928
|
{
|
|
2380
2929
|
"chunkIndex": 11,
|
|
2381
2930
|
"chunkKind": "authoring_manifest",
|
|
2382
|
-
"content": "{\"operationId\":\"layout.variant.set\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.0.0\",\"componentId\":\"praxis-tabs\",\"ownerPackage\":\"@praxisui/tabs\",\"configSchemaId\":\"TabsMetadata\",\"chunkSection\":\"operation_card\",\"semanticSummary\":\"Set tabs layout variant Effects: merge-object, merge-object, merge-object, merge-object.\",\"scope\":\"layout\",\"target\":{\"kind\":\"layout\",\"resolver\":\"tabs-layout-config\",\"required\":true},\"inputContract\":{\"required\":[
|
|
2931
|
+
"content": "{\"operationId\":\"layout.variant.set\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.0.0\",\"componentId\":\"praxis-tabs\",\"ownerPackage\":\"@praxisui/tabs\",\"configSchemaId\":\"TabsMetadata\",\"chunkSection\":\"operation_card\",\"semanticSummary\":\"Set tabs layout variant Effects: merge-object, merge-object, merge-object, merge-object. Switch the tabs header to pill variant.\",\"scope\":\"layout\",\"target\":{\"kind\":\"layout\",\"resolver\":\"tabs-layout-config\",\"required\":true},\"inputContract\":{\"required\":[],\"properties\":[\"mode\",\"variant\",\"density\",\"headerPosition\",\"alignTabs\",\"stretchTabs\",\"lazyLoad\"],\"semanticTerms\":[\"mode\",\"variant\",\"density\",\"headerPosition\",\"alignTabs\",\"stretchTabs\",\"lazyLoad\",\"group\",\"nav\",\"underline\",\"pill\",\"segmented\",\"compact\",\"comfortable\",\"spacious\",\"above\",\"below\",\"start\",\"center\",\"end\"]},\"effects\":[\"merge-object\",\"merge-object\",\"merge-object\",\"merge-object\"],\"affectedPaths\":[\"appearance.variant\",\"appearance.density\",\"group.headerPosition\",\"group.alignTabs\",\"group.stretchTabs\",\"nav.stretchTabs\",\"behavior.lazyLoad\"],\"validators\":[{\"validatorId\":\"tabs-mode-compatible\",\"level\":\"error\",\"code\":\"PTABS011\",\"description\":\"Authoring must resolve to one primary mode: group tabs or nav links.\"},{\"validatorId\":\"layout-values-valid\",\"level\":\"error\",\"code\":\"PTABS012\",\"description\":\"Layout values must match TabsMetadata enums and runtime bindings.\"},{\"validatorId\":\"editor-runtime-round-trip\",\"level\":\"error\",\"code\":\"PTABS013\",\"description\":\"Settings Panel, quick setup, JSON editor and runtime must preserve ids, order and selected index.\"}],\"preconditions\":[\"config-initialized\"],\"submissionImpact\":\"config-only\",\"presentationAffordances\":[],\"positiveExamples\":[{\"id\":\"set-pill-variant\",\"request\":\"Switch the tabs header to pill variant.\",\"operationId\":\"layout.variant.set\",\"params\":{\"variant\":\"pill\",\"density\":\"compact\"},\"isPositive\":true}],\"negativeExamples\":[]}",
|
|
2383
2932
|
"sourcePointer": "projects/praxis-tabs/src/lib/ai/praxis-tabs-authoring-manifest.ts",
|
|
2384
|
-
"contentHash": "
|
|
2933
|
+
"contentHash": "18419f741b5873abf105721df0d65eb1cca28df371f3c0a891b386fc934a7870",
|
|
2385
2934
|
"sourceKind": "component_definition",
|
|
2386
2935
|
"sourceId": "praxis-tabs",
|
|
2387
2936
|
"corpusVersion": "1.0.0"
|
|
@@ -2389,9 +2938,9 @@
|
|
|
2389
2938
|
{
|
|
2390
2939
|
"chunkIndex": 12,
|
|
2391
2940
|
"chunkKind": "authoring_manifest",
|
|
2392
|
-
"content": "{\"operationId\":\"tab.content.set\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.0.0\",\"componentId\":\"praxis-tabs\",\"ownerPackage\":\"@praxisui/tabs\",\"configSchemaId\":\"TabsMetadata\",\"chunkSection\":\"operation_card\",\"semanticSummary\":\"Set tab content Effects: compile-domain-patch. Create a list widget inside the current training tab. Add name, date and status fields to the existing onboarding tab.\",\"scope\":\"layout\",\"target\":{\"kind\":\"tabContent\",\"resolver\":\"tab-or-link-by-id\",\"required\":true},\"inputContract\":{\"required\":[],\"properties\":[\"id\",\"textLabel\",\"icon\",\"disabled\",\"visible\",\"content\",\"widgets\"],\"semanticTerms\":[\"id\",\"textLabel\",\"icon\",\"disabled\",\"visible\",\"content\",\"widgets\"]},\"effects\":[\"compile-domain-patch\"],\"affectedPaths\":[\"tabs[].content\",\"tabs[].widgets\",\"nav.links[].content\",\"nav.links[].widgets\"],\"validators\":[{\"validatorId\":\"tab-or-link-exists\",\"level\":\"error\",\"code\":\"PTABS003\",\"description\":\"Target must resolve to an existing group tab or nav link.\"},{\"validatorId\":\"tab-content-valid\",\"level\":\"error\",\"code\":\"PTABS016\",\"description\":\"Tab content must be valid DynamicFieldMetadata[] or WidgetDefinition[] and preserve nested widget identity.\"},{\"validatorId\":\"widget-event-delegated\",\"level\":\"info\",\"code\":\"PTABS017\",\"description\":\"Nested widget event paths remain delegated to the tabs runtime contract and are not redefined by authoring.\"}],\"preconditions\":[\"config-initialized\",\"target-tab-or-link-exists\"],\"submissionImpact\":\"config-only\",\"presentationAffordances\":[],\"positiveExamples\":[{\"id\":\"add-list-to-current-tab\",\"request\":\"Create a list widget inside the current training tab.\",\"operationId\":\"tab.content.set\",\"target\":\"training\",\"params\":{\"widgets\":[{\"id\":\"training-list\",\"component\":\"praxis-list\",\"title\":\"Training list\"}]},\"isPositive\":true},{\"id\":\"add-form-fields-to-existing-tab\",\"request\":\"Add name, date and status fields to the existing onboarding tab.\",\"operationId\":\"tab.content.set\",\"target\":\"onboarding\",\"params\":{\"content\":[{\"name\":\"name\",\"label\":\"Name\",\"controlType\":\"text\"},{\"name\":\"plannedDate\",\"label\":\"Planned date\",\"controlType\":\"date\"},{\"name\":\"status\",\"label\":\"Status\",\"controlType\":\"select\"}]},\"isPositive\":true}],\"negativeExamples\":[]}",
|
|
2941
|
+
"content": "{\"operationId\":\"tab.content.set\",\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.0.0\",\"componentId\":\"praxis-tabs\",\"ownerPackage\":\"@praxisui/tabs\",\"configSchemaId\":\"TabsMetadata\",\"chunkSection\":\"operation_card\",\"semanticSummary\":\"Set tab content Effects: compile-domain-patch. Create a list widget inside the current training tab. Add name, date and status fields to the existing onboarding tab.\",\"scope\":\"layout\",\"target\":{\"kind\":\"tabContent\",\"resolver\":\"tab-or-link-by-id\",\"required\":true},\"inputContract\":{\"required\":[],\"properties\":[\"id\",\"textLabel\",\"icon\",\"labelClass\",\"tone\",\"disabled\",\"visible\",\"content\",\"widgets\"],\"semanticTerms\":[\"id\",\"textLabel\",\"icon\",\"labelClass\",\"tone\",\"disabled\",\"visible\",\"content\",\"widgets\",\"default\",\"primary\",\"accent\",\"outlined\"]},\"effects\":[\"compile-domain-patch\"],\"affectedPaths\":[\"tabs[].content\",\"tabs[].widgets\",\"nav.links[].content\",\"nav.links[].widgets\"],\"validators\":[{\"validatorId\":\"tab-or-link-exists\",\"level\":\"error\",\"code\":\"PTABS003\",\"description\":\"Target must resolve to an existing group tab or nav link.\"},{\"validatorId\":\"tab-content-valid\",\"level\":\"error\",\"code\":\"PTABS016\",\"description\":\"Tab content must be valid DynamicFieldMetadata[] or WidgetDefinition[] and preserve nested widget identity.\"},{\"validatorId\":\"widget-event-delegated\",\"level\":\"info\",\"code\":\"PTABS017\",\"description\":\"Nested widget event paths remain delegated to the tabs runtime contract and are not redefined by authoring.\"}],\"preconditions\":[\"config-initialized\",\"target-tab-or-link-exists\"],\"submissionImpact\":\"config-only\",\"presentationAffordances\":[],\"positiveExamples\":[{\"id\":\"add-list-to-current-tab\",\"request\":\"Create a list widget inside the current training tab.\",\"operationId\":\"tab.content.set\",\"target\":\"training\",\"params\":{\"widgets\":[{\"id\":\"training-list\",\"component\":\"praxis-list\",\"title\":\"Training list\"}]},\"isPositive\":true},{\"id\":\"add-form-fields-to-existing-tab\",\"request\":\"Add name, date and status fields to the existing onboarding tab.\",\"operationId\":\"tab.content.set\",\"target\":\"onboarding\",\"params\":{\"content\":[{\"name\":\"name\",\"label\":\"Name\",\"controlType\":\"text\"},{\"name\":\"plannedDate\",\"label\":\"Planned date\",\"controlType\":\"date\"},{\"name\":\"status\",\"label\":\"Status\",\"controlType\":\"select\"}]},\"isPositive\":true}],\"negativeExamples\":[]}",
|
|
2393
2942
|
"sourcePointer": "projects/praxis-tabs/src/lib/ai/praxis-tabs-authoring-manifest.ts",
|
|
2394
|
-
"contentHash": "
|
|
2943
|
+
"contentHash": "0826f4b737f5f1a73bbbefe749fcff27f1daeed210335c4b506c9d5c568eb8d5",
|
|
2395
2944
|
"sourceKind": "component_definition",
|
|
2396
2945
|
"sourceId": "praxis-tabs",
|
|
2397
2946
|
"corpusVersion": "1.0.0"
|
|
@@ -2409,9 +2958,9 @@
|
|
|
2409
2958
|
{
|
|
2410
2959
|
"chunkIndex": 14,
|
|
2411
2960
|
"chunkKind": "authoring_manifest",
|
|
2412
|
-
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.0.0\",\"componentId\":\"praxis-tabs\",\"ownerPackage\":\"@praxisui/tabs\",\"configSchemaId\":\"TabsMetadata\",\"chunkSection\":\"runtimeInputs\",\"runtimeInputs\":[{\"name\":\"config\",\"type\":\"TabsMetadata\",\"description\":\"Canonical tabs/nav configuration.\"},{\"name\":\"tabsId\",\"type\":\"string\",\"description\":\"Stable id used to derive persistence scope.\"},{\"name\":\"componentInstanceId\",\"type\":\"string\",\"description\":\"Optional instance discriminator for persistence scope.\"},{\"name\":\"configPersistenceStrategy\",\"type\":\"\\\"
|
|
2961
|
+
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.0.0\",\"componentId\":\"praxis-tabs\",\"ownerPackage\":\"@praxisui/tabs\",\"configSchemaId\":\"TabsMetadata\",\"chunkSection\":\"runtimeInputs\",\"runtimeInputs\":[{\"name\":\"config\",\"type\":\"TabsMetadata\",\"description\":\"Canonical tabs/nav configuration.\"},{\"name\":\"tabsId\",\"type\":\"string\",\"description\":\"Stable id used to derive persistence scope.\"},{\"name\":\"componentInstanceId\",\"type\":\"string\",\"description\":\"Optional instance discriminator for persistence scope.\"},{\"name\":\"configPersistenceStrategy\",\"type\":\"\\\"local-first\\\" | \\\"input-first\\\" | \\\"volatile\\\" | \\\"storage-first\\\"\",\"description\":\"Controls whether persisted customization or explicit input config governs the runtime (`local-first`, legacy `storage-first`, composition-owned `input-first`, or ephemeral `volatile`).\"},{\"name\":\"form\",\"type\":\"FormGroup\",\"description\":\"FormGroup consumed by dynamic field content.\"},{\"name\":\"context\",\"type\":\"Record<string, any>\",\"description\":\"Context passed to nested widgets.\"},{\"name\":\"enableCustomization\",\"type\":\"boolean\",\"description\":\"Enables Settings Panel authoring surfaces.\"}]}",
|
|
2413
2962
|
"sourcePointer": "projects/praxis-tabs/src/lib/ai/praxis-tabs-authoring-manifest.ts",
|
|
2414
|
-
"contentHash": "
|
|
2963
|
+
"contentHash": "3397b93bc73433ac08a320e8f65b0c53c8946c5c480578f8e288fc2f2221b24c",
|
|
2415
2964
|
"sourceKind": "component_definition",
|
|
2416
2965
|
"sourceId": "praxis-tabs",
|
|
2417
2966
|
"corpusVersion": "1.0.0"
|
|
@@ -2419,9 +2968,9 @@
|
|
|
2419
2968
|
{
|
|
2420
2969
|
"chunkIndex": 15,
|
|
2421
2970
|
"chunkKind": "authoring_manifest",
|
|
2422
|
-
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.0.0\",\"componentId\":\"praxis-tabs\",\"ownerPackage\":\"@praxisui/tabs\",\"configSchemaId\":\"TabsMetadata\",\"chunkSection\":\"editableTargets\",\"editableTargets\":[{\"kind\":\"tab\",\"resolver\":\"tab-by-id-or-label\",\"description\":\"A group-mode tab in config.tabs[].\"},{\"kind\":\"tabLabel\",\"resolver\":\"tab-by-id-or-label\",\"description\":\"The text label of a group-mode tab.\"},{\"kind\":\"tabIcon\",\"resolver\":\"tab-by-id-or-label\",\"description\":\"Icon metadata rendered in a group tab label.\"},{\"kind\":\"tabContent\",\"resolver\":\"tab-or-link-by-id\",\"description\":\"Dynamic fields or widgets hosted by a tab or nav link.\"},{\"kind\":\"activeTab\",\"resolver\":\"tab-index-or-id\",\"description\":\"Selected tab or nav link index.\"},{\"kind\":\"visibility\",\"resolver\":\"tab-or-link-by-id\",\"description\":\"Runtime visibility flag for a group tab or nav link.\"},{\"kind\":\"disabledState\",\"resolver\":\"tab-or-link-by-id\",\"description\":\"Disabled state of a tab or nav link.\"},{\"kind\":\"layout\",\"resolver\":\"tabs-layout-config\",\"description\":\"Group/nav mode, header position, density, stretch and behavior settings.\"},{\"kind\":\"renderBody\",\"resolver\":\"tabs-render-body-config\",\"description\":\"Config paths group.renderBody and nav.renderBody that let the host own external body content.\"}]}",
|
|
2971
|
+
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.0.0\",\"componentId\":\"praxis-tabs\",\"ownerPackage\":\"@praxisui/tabs\",\"configSchemaId\":\"TabsMetadata\",\"chunkSection\":\"editableTargets\",\"editableTargets\":[{\"kind\":\"tab\",\"resolver\":\"tab-by-id-or-label\",\"description\":\"A group-mode tab in config.tabs[].\",\"resolutionSpec\":{\"allowIndex\":false,\"strategy\":\"array-match\",\"paths\":[\"tabs[]\"],\"matchFields\":[\"id\",\"label\",\"textLabel\",\"title\"],\"inputMatchFields\":[\"tabId\",\"id\",\"textLabel\",\"label\"]}},{\"kind\":\"tabLabel\",\"resolver\":\"tab-by-id-or-label\",\"description\":\"The text label of a group-mode tab.\",\"resolutionSpec\":{\"allowIndex\":false,\"strategy\":\"array-match\",\"paths\":[\"tabs[]\"],\"matchFields\":[\"id\",\"label\",\"textLabel\",\"title\"],\"inputMatchFields\":[\"tabId\",\"id\",\"textLabel\",\"label\"]}},{\"kind\":\"tabIcon\",\"resolver\":\"tab-by-id-or-label\",\"description\":\"Icon metadata rendered in a group tab label.\",\"resolutionSpec\":{\"allowIndex\":false,\"strategy\":\"array-match\",\"paths\":[\"tabs[]\"],\"matchFields\":[\"id\",\"label\",\"textLabel\",\"title\"],\"inputMatchFields\":[\"tabId\",\"id\",\"textLabel\",\"label\"]}},{\"kind\":\"tabContent\",\"resolver\":\"tab-or-link-by-id\",\"description\":\"Dynamic fields or widgets hosted by a tab or nav link.\",\"resolutionSpec\":{\"allowIndex\":false,\"strategy\":\"array-match\",\"paths\":[\"tabs[]\",\"nav.links[]\"],\"matchFields\":[\"id\",\"label\",\"textLabel\",\"title\"],\"inputMatchFields\":[\"tabId\",\"linkId\",\"id\",\"textLabel\",\"label\"]}},{\"kind\":\"activeTab\",\"resolver\":\"tab-index-or-id\",\"description\":\"Selected tab or nav link index.\",\"resolutionSpec\":{\"allowIndex\":false,\"strategy\":\"array-match\",\"paths\":[\"tabs[]\",\"nav.links[]\"],\"matchFields\":[\"id\",\"label\",\"textLabel\",\"title\"],\"inputMatchFields\":[\"tabId\",\"linkId\",\"id\",\"textLabel\",\"label\"]}},{\"kind\":\"visibility\",\"resolver\":\"tab-or-link-by-id\",\"description\":\"Runtime visibility flag for a group tab or nav link.\",\"resolutionSpec\":{\"allowIndex\":false,\"strategy\":\"array-match\",\"paths\":[\"tabs[]\",\"nav.links[]\"],\"matchFields\":[\"id\",\"label\",\"textLabel\",\"title\"],\"inputMatchFields\":[\"tabId\",\"linkId\",\"id\",\"textLabel\",\"label\"]}},{\"kind\":\"disabledState\",\"resolver\":\"tab-or-link-by-id\",\"description\":\"Disabled state of a tab or nav link.\",\"resolutionSpec\":{\"allowIndex\":false,\"strategy\":\"array-match\",\"paths\":[\"tabs[]\",\"nav.links[]\"],\"matchFields\":[\"id\",\"label\",\"textLabel\",\"title\"],\"inputMatchFields\":[\"tabId\",\"linkId\",\"id\",\"textLabel\",\"label\"]}},{\"kind\":\"layout\",\"resolver\":\"tabs-layout-config\",\"description\":\"Group/nav mode, visual variant, header position, density, stretch and behavior settings.\",\"resolutionSpec\":{\"allowIndex\":false,\"strategy\":\"root-path\",\"paths\":[\"$\"]}},{\"kind\":\"renderBody\",\"resolver\":\"tabs-render-body-config\",\"description\":\"Config paths group.renderBody and nav.renderBody that let the host own external body content.\",\"resolutionSpec\":{\"allowIndex\":false,\"strategy\":\"root-path\",\"paths\":[\"group\",\"nav\",\"$\"]}}]}",
|
|
2423
2972
|
"sourcePointer": "projects/praxis-tabs/src/lib/ai/praxis-tabs-authoring-manifest.ts",
|
|
2424
|
-
"contentHash": "
|
|
2973
|
+
"contentHash": "2e2b3b2a9e019a9fa0b346da0f0eb0c1f4dd4142d9a30023ec9db33fb59577d9",
|
|
2425
2974
|
"sourceKind": "component_definition",
|
|
2426
2975
|
"sourceId": "praxis-tabs",
|
|
2427
2976
|
"corpusVersion": "1.0.0"
|
|
@@ -2429,9 +2978,9 @@
|
|
|
2429
2978
|
{
|
|
2430
2979
|
"chunkIndex": 16,
|
|
2431
2980
|
"chunkKind": "authoring_manifest",
|
|
2432
|
-
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.0.0\",\"componentId\":\"praxis-tabs\",\"ownerPackage\":\"@praxisui/tabs\",\"configSchemaId\":\"TabsMetadata\",\"chunkSection\":\"operations\",\"operations\":[{\"operationId\":\"tab.add\",\"title\":\"Add tab\",\"scope\":\"global\",\"targetKind\":\"tab\",\"target\":{\"kind\":\"tab\",\"resolver\":\"tabs-array\",\"ambiguityPolicy\":\"fail\",\"required\":false},\"inputSchema\":{\"type\":\"object\",\"required\":[\"id\",\"textLabel\"],\"properties\":{\"id\":{\"type\":\"string\"},\"textLabel\":{\"type\":\"string\"},\"icon\":{\"type\":\"string\"},\"disabled\":{\"type\":\"boolean\"},\"visible\":{\"type\":\"boolean\",\"default\":true},\"content\":{\"type\":\"array\",\"items\":{\"type\":\"object\"}},\"widgets\":{\"type\":\"array\",\"items\":{\"type\":\"object\"}}}},\"effects\":[{\"kind\":\"append-unique\",\"path\":\"tabs[]\",\"key\":\"id\"}],\"validators\":[\"tab-id-unique\",\"tabs-mode-compatible\",\"tab-content-valid\"],\"destructive\":false,\"requiresConfirmation\":false,\"affectedPaths\":[\"tabs[]\"],\"submissionImpact\":\"config-only\",\"preconditions\":[\"config-initialized\"]},{\"operationId\":\"tab.remove\",\"title\":\"Remove tab\",\"scope\":\"layout\",\"targetKind\":\"tab\",\"target\":{\"kind\":\"tab\",\"resolver\":\"tab-by-id-or-label\",\"ambiguityPolicy\":\"fail\",\"required\":true},\"inputSchema\":{\"type\":\"object\",\"properties\":{\"replacementActiveTabId\":{\"type\":\"string\"}}},\"effects\":[{\"kind\":\"compile-domain-patch\",\"handler\":\"tabs.remove-tab-and-reselect\",\"handlerContract\":{\"reads\":[\"tabs[]\",\"group.selectedIndex\"],\"writes\":[\"tabs[]\",\"group.selectedIndex\"],\"identityKeys\":[\"tabs[].id\"],\"inputSchema\":{\"type\":\"object\",\"properties\":{\"replacementActiveTabId\":{\"type\":\"string\"}}},\"failureModes\":[\"target-tab-missing\",\"replacement-tab-missing\",\"confirmation-missing\"],\"description\":\"Removes the target tab by stable id and reselects a safe replacement when the active/default tab is removed.\"}}],\"destructive\":true,\"requiresConfirmation\":true,\"validators\":[\"tab-exists\",\"active-tab-removal-safe\",\"tab-content-removal-confirmed\"],\"affectedPaths\":[\"tabs[]\",\"group.selectedIndex\"],\"submissionImpact\":\"config-only\",\"preconditions\":[\"config-initialized\",\"target-tab-exists\",\"confirmation-collected\"]},{\"operationId\":\"tab.label.set\",\"title\":\"Set tab label\",\"scope\":\"layout\",\"targetKind\":\"tabLabel\",\"target\":{\"kind\":\"tabLabel\",\"resolver\":\"tab-by-id-or-label\",\"ambiguityPolicy\":\"fail\",\"required\":true
|
|
2981
|
+
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.0.0\",\"componentId\":\"praxis-tabs\",\"ownerPackage\":\"@praxisui/tabs\",\"configSchemaId\":\"TabsMetadata\",\"chunkSection\":\"operations\",\"operations\":[{\"operationId\":\"tab.add\",\"title\":\"Add tab\",\"scope\":\"global\",\"targetKind\":\"tab\",\"target\":{\"kind\":\"tab\",\"resolver\":\"tabs-array\",\"ambiguityPolicy\":\"fail\",\"required\":false,\"resolutionSpec\":{\"allowIndex\":false,\"strategy\":\"root-path\",\"paths\":[\"tabs[]\",\"$\"]}},\"inputSchema\":{\"type\":\"object\",\"required\":[\"id\",\"textLabel\"],\"properties\":{\"id\":{\"type\":\"string\"},\"textLabel\":{\"type\":\"string\"},\"icon\":{\"type\":\"string\"},\"labelClass\":{\"anyOf\":[{\"type\":\"string\"},{\"type\":\"array\",\"items\":{\"type\":\"string\"}}]},\"tone\":{\"enum\":[\"default\",\"primary\",\"accent\",\"outlined\"]},\"disabled\":{\"type\":\"boolean\"},\"visible\":{\"type\":\"boolean\",\"default\":true},\"content\":{\"type\":\"array\",\"items\":{\"type\":\"object\"}},\"widgets\":{\"type\":\"array\",\"items\":{\"type\":\"object\"}}}},\"effects\":[{\"kind\":\"append-unique\",\"path\":\"tabs[]\",\"key\":\"id\"}],\"validators\":[\"tab-id-unique\",\"tabs-mode-compatible\",\"tab-content-valid\"],\"destructive\":false,\"requiresConfirmation\":false,\"affectedPaths\":[\"tabs[]\"],\"submissionImpact\":\"config-only\",\"preconditions\":[\"config-initialized\"]},{\"operationId\":\"tab.remove\",\"title\":\"Remove tab\",\"scope\":\"layout\",\"targetKind\":\"tab\",\"target\":{\"kind\":\"tab\",\"resolver\":\"tab-by-id-or-label\",\"ambiguityPolicy\":\"fail\",\"required\":true,\"resolutionSpec\":{\"allowIndex\":false,\"strategy\":\"array-match\",\"paths\":[\"tabs[]\"],\"matchFields\":[\"id\",\"label\",\"textLabel\",\"title\"],\"inputMatchFields\":[\"tabId\",\"id\",\"textLabel\",\"label\"]}},\"inputSchema\":{\"type\":\"object\",\"properties\":{\"replacementActiveTabId\":{\"type\":\"string\"}}},\"effects\":[{\"kind\":\"compile-domain-patch\",\"handler\":\"tabs.remove-tab-and-reselect\",\"selectionReconciliation\":{\"selectedIndexPath\":\"group.selectedIndex\",\"itemKeyField\":\"id\",\"onRemovedActive\":\"clamp\"},\"handlerContract\":{\"reads\":[\"tabs[]\",\"group.selectedIndex\"],\"writes\":[\"tabs[]\",\"group.selectedIndex\"],\"identityKeys\":[\"tabs[].id\"],\"inputSchema\":{\"type\":\"object\",\"properties\":{\"replacementActiveTabId\":{\"type\":\"string\"}}},\"failureModes\":[\"target-tab-missing\",\"replacement-tab-missing\",\"confirmation-missing\"],\"description\":\"Removes the target tab by stable id and reselects a safe replacement when the active/default tab is removed.\"}}],\"destructive\":true,\"requiresConfirmation\":true,\"validators\":[\"tab-exists\",\"active-tab-removal-safe\",\"tab-content-removal-confirmed\"],\"affectedPaths\":[\"tabs[]\",\"group.selectedIndex\"],\"submissionImpact\":\"config-only\",\"preconditions\":[\"config-initialized\",\"target-tab-exists\",\"confirmation-collected\"]},{\"operationId\":\"tab.label.set\",\"title\":\"Set tab label\",\"scope\":\"layout\",\"targetKind\":\"tabLabel\",\"target\":{\"kind\":\"tabLabel\",\"resolver\":\"tab-by-id-or-label\",\"ambiguityPolicy\":\"fail\",\"required\":true,\"resolutionSpec\":{\"allowIndex\":false,\"strategy\":\"array-match\",\"paths\":[\"tabs[]\"],\"matchFields\":[\"id\",\"label\",\"textLabel\",\"title\"],\"inputMatchFields\":[\"tabId\",\"id\",\"textLabel\",\"label\"]}},\"inputSchema\":{\"type\":\"object\",\"required\":[\"textLabel\"],\"properties\":{\"textLabel\":{\"type\":\"string\"}}},\"effects\":[{\"kind\":\"merge-by-key\",\"path\":\"tabs[]\",\"key\":\"id\"}],\"destructive\":false,\"requiresConfirmation\":false,\"validators\":[\"tab-exists\",\"tab-label-valid\"],\"affectedPaths\":[\"tabs[].textLabel\"],\"submissionImpact\":\"config-only\",\"preconditions\":[\"config-initialized\",\"target-tab-exists\"]},{\"operationId\":\"tab.icon.set\",\"title\":\"Set tab icon\",\"scope\":\"layout\",\"targetKind\":\"tabIcon\",\"target\":{\"kind\":\"tabIcon\",\"resolver\":\"tab-by-id-or-label\",\"ambiguityPolicy\":\"fail\",\"required\":true,\"resolutionSpec\":{\"allowIndex\":false,\"strategy\":\"array-match\",\"paths\":[\"tabs[]\"],\"matchFields\":[\"id\",\"label\",\"textLabel\",\"title\"],\"inputMatchFields\":[\"tabId\",\"id\",\"textLabel\",\"label\"]}},\"inputSchema\":{\"type\":\"object\",\"required\":[\"icon\"],\"properties\":{\"icon\":{\"type\":\"string\"}}},\"effects\":[{\"kind\":\"merge-by-key\",\"path\":\"tabs[]\",\"key\":\"id\"}],\"destructive\":false,\"requiresConfirmation\":false,\"validators\":[\"tab-exists\",\"tab-icon-valid\"],\"affectedPaths\":[\"tabs[].icon\"],\"submissionImpact\":\"visual-only\",\"preconditions\":[\"config-initialized\",\"target-tab-exists\"]},{\"operationId\":\"tab.order.set\",\"title\":\"Reorder tabs\",\"scope\":\"layout\",\"targetKind\":\"tab\",\"target\":{\"kind\":\"tab\",\"resolver\":\"tab-by-id-or-label\",\"ambiguityPolicy\":\"fail\",\"required\":true,\"resolutionSpec\":{\"allowIndex\":false,\"strategy\":\"array-match\",\"paths\":[\"tabs[]\"],\"matchFields\":[\"id\",\"label\",\"textLabel\",\"title\"],\"inputMatchFields\":[\"tabId\",\"id\",\"textLabel\",\"label\"]}},\"inputSchema\":{\"type\":\"object\",\"required\":[\"beforeTabId\"],\"properties\":{\"beforeTabId\":{\"type\":\"string\"}}},\"effects\":[{\"kind\":\"compile-domain-patch\",\"handler\":\"tabs.reorder-tab-and-preserve-selection\",\"selectionReconciliation\":{\"selectedIndexPath\":\"group.selectedIndex\",\"itemKeyField\":\"id\",\"onRemovedActive\":\"clamp\"},\"handlerContract\":{\"reads\":[\"tabs[]\",\"group.selectedIndex\"],\"writes\":[\"tabs[]\",\"group.selectedIndex\"],\"identityKeys\":[\"tabs[].id\"],\"inputSchema\":{\"type\":\"object\",\"required\":[\"beforeTabId\"],\"properties\":{\"beforeTabId\":{\"type\":\"string\"}}},\"failureModes\":[\"target-tab-missing\",\"before-tab-missing\",\"unstable-tab-id\"],\"description\":\"Reorders tabs by stable id and remaps group.selectedIndex when the selected tab crosses positions.\"}}],\"destructive\":false,\"requiresConfirmation\":false,\"validators\":[\"tab-exists\",\"tab-order-deterministic\"],\"affectedPaths\":[\"tabs[]\",\"group.selectedIndex\"],\"submissionImpact\":\"config-only\",\"preconditions\":[\"config-initialized\",\"target-tab-exists\"]},{\"operationId\":\"tab.disabled.set\",\"title\":\"Set tab disabled state\",\"scope\":\"interaction\",\"targetKind\":\"disabledState\",\"target\":{\"kind\":\"disabledState\",\"resolver\":\"tab-or-link-by-id\",\"ambiguityPolicy\":\"fail\",\"required\":true,\"resolutionSpec\":{\"allowIndex\":false,\"strategy\":\"array-match\",\"paths\":[\"tabs[]\",\"nav.links[]\"],\"matchFields\":[\"id\",\"label\",\"textLabel\",\"title\"],\"inputMatchFields\":[\"tabId\",\"linkId\",\"id\",\"textLabel\",\"label\"]}},\"inputSchema\":{\"type\":\"object\",\"required\":[\"disabled\"],\"properties\":{\"disabled\":{\"type\":\"boolean\"}}},\"effects\":[{\"kind\":\"compile-domain-patch\",\"handler\":\"tabs.set-tab-or-link-disabled\",\"handlerContract\":{\"reads\":[\"tabs[]\",\"nav.links[]\",\"group.selectedIndex\",\"nav.selectedIndex\"],\"writes\":[\"tabs[].disabled\",\"nav.links[].disabled\"],\"identityKeys\":[\"tabs[].id\",\"nav.links[].id\"],\"inputSchema\":{\"type\":\"object\",\"required\":[\"disabled\"],\"properties\":{\"disabled\":{\"type\":\"boolean\"}}},\"failureModes\":[\"target-tab-or-link-missing\",\"ambiguous-target\",\"active-item-disabled-without-reselection\"],\"description\":\"Sets disabled on the resolved group tab or nav link without guessing between modes.\"}}],\"destructive\":false,\"requiresConfirmation\":false,\"validators\":[\"tab-or-link-exists\",\"active-tab-disabled-safe\"],\"affectedPaths\":[\"tabs[].disabled\",\"nav.links[].disabled\"],\"submissionImpact\":\"config-only\",\"preconditions\":[\"config-initialized\",\"target-tab-or-link-exists\"]}]}",
|
|
2433
2982
|
"sourcePointer": "projects/praxis-tabs/src/lib/ai/praxis-tabs-authoring-manifest.ts",
|
|
2434
|
-
"contentHash": "
|
|
2983
|
+
"contentHash": "21c9b9f39bf5f9336412e3811633c7df9b58c204726fe009257ffa493602d1d3",
|
|
2435
2984
|
"sourceKind": "component_definition",
|
|
2436
2985
|
"sourceId": "praxis-tabs",
|
|
2437
2986
|
"corpusVersion": "1.0.0"
|
|
@@ -2439,9 +2988,9 @@
|
|
|
2439
2988
|
{
|
|
2440
2989
|
"chunkIndex": 17,
|
|
2441
2990
|
"chunkKind": "authoring_manifest",
|
|
2442
|
-
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.0.0\",\"componentId\":\"praxis-tabs\",\"ownerPackage\":\"@praxisui/tabs\",\"configSchemaId\":\"TabsMetadata\",\"chunkSection\":\"operations\",\"operations\":[{\"operationId\":\"layout.variant.set\",\"title\":\"Set tabs layout variant\",\"scope\":\"layout\",\"targetKind\":\"layout\",\"target\":{\"kind\":\"layout\",\"resolver\":\"tabs-layout-config\",\"ambiguityPolicy\":\"fail\",\"required\":true
|
|
2991
|
+
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.0.0\",\"componentId\":\"praxis-tabs\",\"ownerPackage\":\"@praxisui/tabs\",\"configSchemaId\":\"TabsMetadata\",\"chunkSection\":\"operations\",\"operations\":[{\"operationId\":\"tab.visible.set\",\"title\":\"Set tab visibility\",\"scope\":\"interaction\",\"targetKind\":\"visibility\",\"target\":{\"kind\":\"visibility\",\"resolver\":\"tab-or-link-by-id\",\"ambiguityPolicy\":\"fail\",\"required\":true,\"resolutionSpec\":{\"allowIndex\":false,\"strategy\":\"array-match\",\"paths\":[\"tabs[]\",\"nav.links[]\"],\"matchFields\":[\"id\",\"label\",\"textLabel\",\"title\"],\"inputMatchFields\":[\"tabId\",\"linkId\",\"id\",\"textLabel\",\"label\"]}},\"inputSchema\":{\"type\":\"object\",\"required\":[\"visible\"],\"properties\":{\"visible\":{\"type\":\"boolean\"}}},\"effects\":[{\"kind\":\"compile-domain-patch\",\"handler\":\"tabs.set-tab-or-link-visible\",\"handlerContract\":{\"reads\":[\"tabs[]\",\"nav.links[]\",\"group.selectedIndex\",\"nav.selectedIndex\"],\"writes\":[\"tabs[].visible\",\"nav.links[].visible\"],\"identityKeys\":[\"tabs[].id\",\"nav.links[].id\"],\"inputSchema\":{\"type\":\"object\",\"required\":[\"visible\"],\"properties\":{\"visible\":{\"type\":\"boolean\"}}},\"failureModes\":[\"target-tab-or-link-missing\",\"ambiguous-target\",\"active-item-hidden-without-reselection\"],\"description\":\"Sets visible on the resolved group tab or nav link and preserves deterministic visible-index mapping.\"}}],\"destructive\":false,\"requiresConfirmation\":false,\"validators\":[\"tab-or-link-exists\",\"active-tab-visibility-safe\"],\"affectedPaths\":[\"tabs[].visible\",\"nav.links[].visible\"],\"submissionImpact\":\"config-only\",\"preconditions\":[\"config-initialized\",\"target-tab-or-link-exists\"]},{\"operationId\":\"tab.active.set\",\"title\":\"Set active tab\",\"scope\":\"interaction\",\"targetKind\":\"activeTab\",\"target\":{\"kind\":\"activeTab\",\"resolver\":\"tab-index-or-id\",\"ambiguityPolicy\":\"fail\",\"required\":true,\"resolutionSpec\":{\"allowIndex\":false,\"strategy\":\"array-match\",\"paths\":[\"tabs[]\",\"nav.links[]\"],\"matchFields\":[\"id\",\"label\",\"textLabel\",\"title\"],\"inputMatchFields\":[\"tabId\",\"linkId\",\"id\",\"textLabel\",\"label\"]}},\"inputSchema\":{\"type\":\"object\",\"required\":[\"selectedIndex\"],\"properties\":{\"selectedIndex\":{\"type\":\"number\"},\"tabId\":{\"type\":\"string\"}}},\"effects\":[{\"kind\":\"compile-domain-patch\",\"handler\":\"tabs.set-active-item\",\"handlerContract\":{\"reads\":[\"tabs[]\",\"nav.links[]\",\"group.selectedIndex\",\"nav.selectedIndex\"],\"writes\":[\"group.selectedIndex\",\"nav.selectedIndex\"],\"identityKeys\":[\"tabs[].id\",\"nav.links[].id\"],\"inputSchema\":{\"type\":\"object\",\"required\":[\"selectedIndex\"],\"properties\":{\"selectedIndex\":{\"type\":\"number\"},\"tabId\":{\"type\":\"string\"}}},\"failureModes\":[\"target-tab-or-link-missing\",\"selected-index-out-of-range\",\"hidden-or-disabled-target\"],\"description\":\"Sets the active index for the current primary mode using either selectedIndex or a resolved tab/link id.\"}}],\"destructive\":false,\"requiresConfirmation\":false,\"validators\":[\"active-tab-exists\",\"selected-index-in-range\"],\"affectedPaths\":[\"group.selectedIndex\",\"nav.selectedIndex\"],\"submissionImpact\":\"config-only\",\"preconditions\":[\"config-initialized\",\"target-tab-or-link-exists\"]},{\"operationId\":\"layout.variant.set\",\"title\":\"Set tabs layout variant\",\"scope\":\"layout\",\"targetKind\":\"layout\",\"target\":{\"kind\":\"layout\",\"resolver\":\"tabs-layout-config\",\"ambiguityPolicy\":\"fail\",\"required\":true,\"resolutionSpec\":{\"allowIndex\":false,\"strategy\":\"root-path\",\"paths\":[\"$\"]}},\"inputSchema\":{\"type\":\"object\",\"minProperties\":1,\"properties\":{\"mode\":{\"enum\":[\"group\",\"nav\"]},\"variant\":{\"enum\":[\"underline\",\"pill\",\"segmented\"]},\"density\":{\"enum\":[\"compact\",\"comfortable\",\"spacious\"]},\"headerPosition\":{\"enum\":[\"above\",\"below\"]},\"alignTabs\":{\"enum\":[\"start\",\"center\",\"end\"]},\"stretchTabs\":{\"type\":\"boolean\"},\"lazyLoad\":{\"type\":\"boolean\"}}},\"effects\":[{\"kind\":\"merge-object\",\"path\":\"appearance\"},{\"kind\":\"merge-object\",\"path\":\"group\"},{\"kind\":\"merge-object\",\"path\":\"nav\"},{\"kind\":\"merge-object\",\"path\":\"behavior\"}],\"destructive\":false,\"requiresConfirmation\":false,\"validators\":[\"tabs-mode-compatible\",\"layout-values-valid\",\"editor-runtime-round-trip\"],\"affectedPaths\":[\"appearance.variant\",\"appearance.density\",\"group.headerPosition\",\"group.alignTabs\",\"group.stretchTabs\",\"nav.stretchTabs\",\"behavior.lazyLoad\"],\"submissionImpact\":\"config-only\",\"preconditions\":[\"config-initialized\"]},{\"operationId\":\"tab.content.set\",\"title\":\"Set tab content\",\"scope\":\"layout\",\"targetKind\":\"tabContent\",\"target\":{\"kind\":\"tabContent\",\"resolver\":\"tab-or-link-by-id\",\"ambiguityPolicy\":\"fail\",\"required\":true,\"resolutionSpec\":{\"allowIndex\":false,\"strategy\":\"array-match\",\"paths\":[\"tabs[]\",\"nav.links[]\"],\"matchFields\":[\"id\",\"label\",\"textLabel\",\"title\"],\"inputMatchFields\":[\"tabId\",\"linkId\",\"id\",\"textLabel\",\"label\"]}},\"inputSchema\":{\"type\":\"object\",\"minProperties\":1,\"properties\":{\"id\":{\"type\":\"string\"},\"textLabel\":{\"type\":\"string\"},\"icon\":{\"type\":\"string\"},\"labelClass\":{\"anyOf\":[{\"type\":\"string\"},{\"type\":\"array\",\"items\":{\"type\":\"string\"}}]},\"tone\":{\"enum\":[\"default\",\"primary\",\"accent\",\"outlined\"]},\"disabled\":{\"type\":\"boolean\"},\"visible\":{\"type\":\"boolean\"},\"content\":{\"type\":\"array\",\"items\":{\"type\":\"object\"}},\"widgets\":{\"type\":\"array\",\"items\":{\"type\":\"object\"}}}},\"effects\":[{\"kind\":\"compile-domain-patch\",\"handler\":\"tabs.set-tab-or-link-content\",\"handlerContract\":{\"reads\":[\"tabs[]\",\"nav.links[]\"],\"writes\":[\"tabs[].content\",\"tabs[].widgets\",\"nav.links[].content\",\"nav.links[].widgets\"],\"identityKeys\":[\"tabs[].id\",\"nav.links[].id\"],\"inputSchema\":{\"type\":\"object\",\"minProperties\":1,\"properties\":{\"id\":{\"type\":\"string\"},\"textLabel\":{\"type\":\"string\"},\"icon\":{\"type\":\"string\"},\"labelClass\":{\"anyOf\":[{\"type\":\"string\"},{\"type\":\"array\",\"items\":{\"type\":\"string\"}}]},\"tone\":{\"enum\":[\"default\",\"primary\",\"accent\",\"outlined\"]},\"disabled\":{\"type\":\"boolean\"},\"visible\":{\"type\":\"boolean\"},\"content\":{\"type\":\"array\",\"items\":{\"type\":\"object\"}},\"widgets\":{\"type\":\"array\",\"items\":{\"type\":\"object\"}}}},\"failureModes\":[\"target-tab-or-link-missing\",\"invalid-dynamic-field-content\",\"invalid-widget-definition\"],\"description\":\"Updates content/widgets only on the resolved group tab or nav link while preserving nested widget identity.\"}}],\"destructive\":false,\"requiresConfirmation\":false,\"validators\":[\"tab-or-link-exists\",\"tab-content-valid\",\"widget-event-delegated\"],\"affectedPaths\":[\"tabs[].content\",\"tabs[].widgets\",\"nav.links[].content\",\"nav.links[].widgets\"],\"submissionImpact\":\"config-only\",\"preconditions\":[\"config-initialized\",\"target-tab-or-link-exists\"]}]}",
|
|
2443
2992
|
"sourcePointer": "projects/praxis-tabs/src/lib/ai/praxis-tabs-authoring-manifest.ts",
|
|
2444
|
-
"contentHash": "
|
|
2993
|
+
"contentHash": "c74151f8078d255552f8842a96605f8e7e9825bdd68bc92c752852dd974214af",
|
|
2445
2994
|
"sourceKind": "component_definition",
|
|
2446
2995
|
"sourceId": "praxis-tabs",
|
|
2447
2996
|
"corpusVersion": "1.0.0"
|
|
@@ -2469,9 +3018,9 @@
|
|
|
2469
3018
|
{
|
|
2470
3019
|
"chunkIndex": 20,
|
|
2471
3020
|
"chunkKind": "authoring_manifest",
|
|
2472
|
-
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.0.0\",\"componentId\":\"praxis-tabs\",\"ownerPackage\":\"@praxisui/tabs\",\"configSchemaId\":\"TabsMetadata\",\"chunkSection\":\"examples\",\"examples\":[{\"id\":\"add-overview-tab\",\"request\":\"Add an Overview tab before the details tab.\",\"operationId\":\"tab.add\",\"params\":{\"id\":\"overview\",\"textLabel\":\"Overview\"},\"isPositive\":true},{\"id\":\"add-list-to-current-tab\",\"request\":\"Create a list widget inside the current training tab.\",\"operationId\":\"tab.content.set\",\"target\":\"training\",\"params\":{\"widgets\":[{\"id\":\"training-list\",\"component\":\"praxis-list\",\"title\":\"Training list\"}]},\"isPositive\":true},{\"id\":\"add-form-fields-to-existing-tab\",\"request\":\"Add name, date and status fields to the existing onboarding tab.\",\"operationId\":\"tab.content.set\",\"target\":\"onboarding\",\"params\":{\"content\":[{\"name\":\"name\",\"label\":\"Name\",\"controlType\":\"text\"},{\"name\":\"plannedDate\",\"label\":\"Planned date\",\"controlType\":\"date\"},{\"name\":\"status\",\"label\":\"Status\",\"controlType\":\"select\"}]},\"isPositive\":true},{\"id\":\"rename-tab\",\"request\":\"Rename the details tab to Account Details.\",\"operationId\":\"tab.label.set\",\"target\":\"details\",\"params\":{\"textLabel\":\"Account Details\"},\"isPositive\":true},{\"id\":\"reorder-tabs\",\"request\":\"Move billing before overview.\",\"operationId\":\"tab.order.set\",\"target\":\"billing\",\"params\":{\"beforeTabId\":\"overview\"},\"isPositive\":true},{\"id\":\"disable-tab\",\"request\":\"Disable the audit tab until the user has permission.\",\"operationId\":\"tab.disabled.set\",\"target\":\"audit\",\"params\":{\"disabled\":true},\"isPositive\":true},{\"id\":\"activate-tab\",\"request\":\"Open the documents tab by default.\",\"operationId\":\"tab.active.set\",\"target\":\"documents\",\"params\":{\"tabId\":\"documents\",\"selectedIndex\":2},\"isPositive\":true},{\"id\":\"reject-duplicate-tab-id\",\"request\":\"Add another tab with id overview.\",\"operationId\":\"tab.add\",\"params\":{\"id\":\"overview\",\"textLabel\":\"Duplicate Overview\"},\"isPositive\":false},{\"id\":\"reject-current-tab-content-as-tab-add\",\"request\":\"Create a list in this tab; do not add a new tab.\",\"operationId\":\"tab.add\",\"params\":{\"id\":\"list-in-this-tab\",\"textLabel\":\"List in this tab\"},\"isPositive\":false},{\"id\":\"confirm-remove-content-tab\",\"request\":\"Remove the details tab that contains widgets.\",\"operationId\":\"tab.remove\",\"target\":\"details\",\"params\":{\"replacementActiveTabId\":\"overview\"},\"isPositive\":true}]}",
|
|
3021
|
+
"content": "{\"schemaVersion\":\"1.0.0\",\"manifestVersion\":\"1.0.0\",\"componentId\":\"praxis-tabs\",\"ownerPackage\":\"@praxisui/tabs\",\"configSchemaId\":\"TabsMetadata\",\"chunkSection\":\"examples\",\"examples\":[{\"id\":\"add-overview-tab\",\"request\":\"Add an Overview tab before the details tab.\",\"operationId\":\"tab.add\",\"params\":{\"id\":\"overview\",\"textLabel\":\"Overview\"},\"isPositive\":true},{\"id\":\"add-list-to-current-tab\",\"request\":\"Create a list widget inside the current training tab.\",\"operationId\":\"tab.content.set\",\"target\":\"training\",\"params\":{\"widgets\":[{\"id\":\"training-list\",\"component\":\"praxis-list\",\"title\":\"Training list\"}]},\"isPositive\":true},{\"id\":\"add-form-fields-to-existing-tab\",\"request\":\"Add name, date and status fields to the existing onboarding tab.\",\"operationId\":\"tab.content.set\",\"target\":\"onboarding\",\"params\":{\"content\":[{\"name\":\"name\",\"label\":\"Name\",\"controlType\":\"text\"},{\"name\":\"plannedDate\",\"label\":\"Planned date\",\"controlType\":\"date\"},{\"name\":\"status\",\"label\":\"Status\",\"controlType\":\"select\"}]},\"isPositive\":true},{\"id\":\"rename-tab\",\"request\":\"Rename the details tab to Account Details.\",\"operationId\":\"tab.label.set\",\"target\":\"details\",\"params\":{\"textLabel\":\"Account Details\"},\"isPositive\":true},{\"id\":\"reorder-tabs\",\"request\":\"Move billing before overview.\",\"operationId\":\"tab.order.set\",\"target\":\"billing\",\"params\":{\"beforeTabId\":\"overview\"},\"isPositive\":true},{\"id\":\"disable-tab\",\"request\":\"Disable the audit tab until the user has permission.\",\"operationId\":\"tab.disabled.set\",\"target\":\"audit\",\"params\":{\"disabled\":true},\"isPositive\":true},{\"id\":\"activate-tab\",\"request\":\"Open the documents tab by default.\",\"operationId\":\"tab.active.set\",\"target\":\"documents\",\"params\":{\"tabId\":\"documents\",\"selectedIndex\":2},\"isPositive\":true},{\"id\":\"reject-duplicate-tab-id\",\"request\":\"Add another tab with id overview.\",\"operationId\":\"tab.add\",\"params\":{\"id\":\"overview\",\"textLabel\":\"Duplicate Overview\"},\"isPositive\":false},{\"id\":\"reject-current-tab-content-as-tab-add\",\"request\":\"Create a list in this tab; do not add a new tab.\",\"operationId\":\"tab.add\",\"params\":{\"id\":\"list-in-this-tab\",\"textLabel\":\"List in this tab\"},\"isPositive\":false},{\"id\":\"confirm-remove-content-tab\",\"request\":\"Remove the details tab that contains widgets.\",\"operationId\":\"tab.remove\",\"target\":\"details\",\"params\":{\"replacementActiveTabId\":\"overview\"},\"isPositive\":true},{\"id\":\"set-pill-variant\",\"request\":\"Switch the tabs header to pill variant.\",\"operationId\":\"layout.variant.set\",\"params\":{\"variant\":\"pill\",\"density\":\"compact\"},\"isPositive\":true}]}",
|
|
2473
3022
|
"sourcePointer": "projects/praxis-tabs/src/lib/ai/praxis-tabs-authoring-manifest.ts",
|
|
2474
|
-
"contentHash": "
|
|
3023
|
+
"contentHash": "785e80d65c8081bb0639ff9d0af7bc758c07ecd2b92ea528f14cb462f22307b4",
|
|
2475
3024
|
"sourceKind": "component_definition",
|
|
2476
3025
|
"sourceId": "praxis-tabs",
|
|
2477
3026
|
"corpusVersion": "1.0.0"
|
|
@@ -2479,9 +3028,9 @@
|
|
|
2479
3028
|
{
|
|
2480
3029
|
"chunkIndex": 21,
|
|
2481
3030
|
"chunkKind": "context_pack",
|
|
2482
|
-
"content": "{\"componentContext\":{\"version\":\"v1\",\"optionsByPath\":{\"appearance.density\":{\"mode\":\"enum\",\"options\":[{\"value\":\"compact\",\"label\":\"Compact\"},{\"value\":\"comfortable\",\"label\":\"Comfortable\"},{\"value\":\"spacious\",\"label\":\"Spacious\"}]},\"group.alignTabs\":{\"mode\":\"enum\",\"options\":[{\"value\":\"start\",\"label\":\"Start\"},{\"value\":\"center\",\"label\":\"Center\"},{\"value\":\"end\",\"label\":\"End\"}]},\"group.headerPosition\":{\"mode\":\"enum\",\"options\":[{\"value\":\"above\",\"label\":\"Above\"},{\"value\":\"below\",\"label\":\"Below\"}]},\"group.color\":{\"mode\":\"enum\",\"options\":[{\"value\":\"primary\",\"label\":\"Primary\"},{\"value\":\"accent\",\"label\":\"Accent\"},{\"value\":\"warn\",\"label\":\"Warn\"}]},\"group.backgroundColor\":{\"mode\":\"enum\",\"options\":[{\"value\":\"primary\",\"label\":\"Primary\"},{\"value\":\"accent\",\"label\":\"Accent\"},{\"value\":\"warn\",\"label\":\"Warn\"}]},\"nav.color\":{\"mode\":\"enum\",\"options\":[{\"value\":\"primary\",\"label\":\"Primary\"},{\"value\":\"accent\",\"label\":\"Accent\"},{\"value\":\"warn\",\"label\":\"Warn\"}]},\"nav.backgroundColor\":{\"mode\":\"enum\",\"options\":[{\"value\":\"primary\",\"label\":\"Primary\"},{\"value\":\"accent\",\"label\":\"Accent\"},{\"value\":\"warn\",\"label\":\"Warn\"}]}},\"actionCatalog\":[{\"id\":\"appearance.density.set\",\"intentExamples\":[\"density\",\"compact\",\"spacious\"],\"patchTemplate\":{\"appearance\":{\"density\":\"{{value}}\"}}},{\"id\":\"group.alignTabs.set\",\"intentExamples\":[\"align tabs\",\"tab alignment\",\"align header\"],\"patchTemplate\":{\"group\":{\"alignTabs\":\"{{value}}\"}}},{\"id\":\"group.headerPosition.set\",\"intentExamples\":[\"header position\",\"tabs position\"],\"patchTemplate\":{\"group\":{\"headerPosition\":\"{{value}}\"}}},{\"id\":\"group.selectedIndex.set\",\"intentExamples\":[\"select tab\",\"active tab\",\"selected index\"],\"patchTemplate\":{\"group\":{\"selectedIndex\":\"{{value}}\"}}},{\"id\":\"nav.selectedIndex.set\",\"intentExamples\":[\"select link\",\"active link\",\"selected nav\"],\"patchTemplate\":{\"nav\":{\"selectedIndex\":\"{{value}}\"}}},{\"id\":\"behavior.lazyLoad.enable\",\"intentExamples\":[\"lazy load\",\"load on demand\",\"lazy\"],\"patchTemplate\":{\"behavior\":{\"lazyLoad\":true}}},{\"id\":\"behavior.lazyLoad.disable\",\"intentExamples\":[\"no lazy\",\"eager load\"],\"patchTemplate\":{\"behavior\":{\"lazyLoad\":false}}},{\"id\":\"group.stretchTabs.enable\",\"intentExamples\":[\"stretch tabs\",\"full width tabs\"],\"patchTemplate\":{\"group\":{\"stretchTabs\":true}}},{\"id\":\"group.stretchTabs.disable\",\"intentExamples\":[\"no stretch tabs\",\"compact tabs\"],\"patchTemplate\":{\"group\":{\"stretchTabs\":false}}},{\"id\":\"group.disablePagination.enable\",\"intentExamples\":[\"disable pagination\",\"no pagination\"],\"patchTemplate\":{\"group\":{\"disablePagination\":true}}},{\"id\":\"group.disablePagination.disable\",\"intentExamples\":[\"enable pagination\",\"allow pagination\"],\"patchTemplate\":{\"group\":{\"disablePagination\":false}}},{\"id\":\"tab.add\",\"intentExamples\":[\"add tab\",\"new tab\",\"create tab\",\"nova aba\",\"adicionar aba\",\"criar aba\"],\"patchTemplate\":{\"tabs\":[{\"id\":\"{{target}}\",\"textLabel\":\"{{value}}\"}]}},{\"id\":\"tab.content.set\",\"intentExamples\":[\"tab content\",\"current tab content\",\"add widget to tab\",\"list in current tab\",\"inside tab\",\"conteudo da aba\",\"nesta aba\",\"aba atual\",\"componente dentro da aba\"],\"patchTemplate\":{\"tabs\":[{\"id\":\"{{target}}\",\"content\":\"{{params.content}}\",\"widgets\":\"{{params.widgets}}\"}]}},{\"id\":\"tab.label.set\",\"intentExamples\":[\"rename tab\",\"tab label\",\"tab title\"],\"patchTemplate\":{\"tabs\":[{\"id\":\"{{target}}\",\"textLabel\":\"{{value}}\"}]}},{\"id\":\"tab.disable\",\"intentExamples\":[\"disable tab\",\"lock tab\"],\"patchTemplate\":{\"tabs\":[{\"id\":\"{{target}}\",\"disabled\":true}]}},{\"id\":\"tab.enable\",\"intentExamples\":[\"enable tab\",\"unlock tab\"],\"patchTemplate\":{\"tabs\":[{\"id\":\"{{target}}\",\"disabled\":false}]}},{\"id\":\"nav.link.add\",\"intentExamples\":[\"add link\",\"add nav link\",\"new link\"],\"patchTemplate\":{\"nav\":{\"links\":[{\"id\":\"{{target}}\",\"label\":\"{{value}}\"}]}}},{\"id\":\"nav.link.label.set\",\"intentExamples\":[\"rename link\",\"link label\"],\"patchTemplate\":{\"nav\":{\"links\":[{\"id\":\"{{target}}\",\"label\":\"{{value}}\"}]}}},{\"id\":\"nav.link.disable\",\"intentExamples\":[\"disable link\",\"lock link\"],\"patchTemplate\":{\"nav\":{\"links\":[{\"id\":\"{{target}}\",\"disabled\":true}]}}},{\"id\":\"nav.link.enable\",\"intentExamples\":[\"enable link\",\"unlock link\"],\"patchTemplate\":{\"nav\":{\"links\":[{\"id\":\"{{target}}\",\"disabled\":false}]}}}],\"fieldResolvers\":{\"tabs[]\":[\"id\",\"textLabel\"],\"nav.links[]\":[\"id\",\"label\"]},\"hints\":[\"Use tabs[].id or tabs[].textLabel as merge keys; avoid array indexes.\",\"When using nav mode, prefer nav.links[]; when using group mode, prefer tabs[].\",\"Selected index expects a zero-based number.\",\"DOC: Widget purpose: tabs or nav links with dynamic content.\",\"DOC: Host inputs: tabsId (required), config (optional), and configPersistenceStrategy. Use input-first for governed previews that must render the explicit nested widget config.\",\"DOC: Provide either tabs[] (group mode) or nav.links[] (nav mode).\",\"DOC: Each tab/link should define a label (tabs[].textLabel or nav.links[].label).\"]}}",
|
|
3031
|
+
"content": "{\"componentContext\":{\"version\":\"v1\",\"optionsByPath\":{\"appearance.variant\":{\"mode\":\"enum\",\"options\":[{\"value\":\"underline\",\"label\":\"Underline\"},{\"value\":\"pill\",\"label\":\"Pill\"},{\"value\":\"segmented\",\"label\":\"Segmented\"}]},\"appearance.density\":{\"mode\":\"enum\",\"options\":[{\"value\":\"compact\",\"label\":\"Compact\"},{\"value\":\"comfortable\",\"label\":\"Comfortable\"},{\"value\":\"spacious\",\"label\":\"Spacious\"}]},\"group.alignTabs\":{\"mode\":\"enum\",\"options\":[{\"value\":\"start\",\"label\":\"Start\"},{\"value\":\"center\",\"label\":\"Center\"},{\"value\":\"end\",\"label\":\"End\"}]},\"group.headerPosition\":{\"mode\":\"enum\",\"options\":[{\"value\":\"above\",\"label\":\"Above\"},{\"value\":\"below\",\"label\":\"Below\"}]},\"group.color\":{\"mode\":\"enum\",\"options\":[{\"value\":\"primary\",\"label\":\"Primary\"},{\"value\":\"accent\",\"label\":\"Accent\"},{\"value\":\"warn\",\"label\":\"Warn\"}]},\"group.backgroundColor\":{\"mode\":\"enum\",\"options\":[{\"value\":\"primary\",\"label\":\"Primary\"},{\"value\":\"accent\",\"label\":\"Accent\"},{\"value\":\"warn\",\"label\":\"Warn\"}]},\"nav.color\":{\"mode\":\"enum\",\"options\":[{\"value\":\"primary\",\"label\":\"Primary\"},{\"value\":\"accent\",\"label\":\"Accent\"},{\"value\":\"warn\",\"label\":\"Warn\"}]},\"nav.backgroundColor\":{\"mode\":\"enum\",\"options\":[{\"value\":\"primary\",\"label\":\"Primary\"},{\"value\":\"accent\",\"label\":\"Accent\"},{\"value\":\"warn\",\"label\":\"Warn\"}]},\"tabs[].tone\":{\"mode\":\"enum\",\"options\":[{\"value\":\"default\",\"label\":\"Default\"},{\"value\":\"primary\",\"label\":\"Primary\"},{\"value\":\"accent\",\"label\":\"Accent\"},{\"value\":\"outlined\",\"label\":\"Outlined\"}]},\"nav.links[].tone\":{\"mode\":\"enum\",\"options\":[{\"value\":\"default\",\"label\":\"Default\"},{\"value\":\"primary\",\"label\":\"Primary\"},{\"value\":\"accent\",\"label\":\"Accent\"},{\"value\":\"outlined\",\"label\":\"Outlined\"}]}},\"actionCatalog\":[{\"id\":\"appearance.variant.set\",\"intentExamples\":[\"pill tabs\",\"segmented tabs\",\"tab variant\",\"abas em pilula\",\"variante de abas\"],\"patchTemplate\":{\"appearance\":{\"variant\":\"{{value}}\"}}},{\"id\":\"appearance.density.set\",\"intentExamples\":[\"density\",\"compact\",\"spacious\"],\"patchTemplate\":{\"appearance\":{\"density\":\"{{value}}\"}}},{\"id\":\"group.alignTabs.set\",\"intentExamples\":[\"align tabs\",\"tab alignment\",\"align header\"],\"patchTemplate\":{\"group\":{\"alignTabs\":\"{{value}}\"}}},{\"id\":\"group.headerPosition.set\",\"intentExamples\":[\"header position\",\"tabs position\"],\"patchTemplate\":{\"group\":{\"headerPosition\":\"{{value}}\"}}},{\"id\":\"group.selectedIndex.set\",\"intentExamples\":[\"select tab\",\"active tab\",\"selected index\"],\"patchTemplate\":{\"group\":{\"selectedIndex\":\"{{value}}\"}}},{\"id\":\"nav.selectedIndex.set\",\"intentExamples\":[\"select link\",\"active link\",\"selected nav\"],\"patchTemplate\":{\"nav\":{\"selectedIndex\":\"{{value}}\"}}},{\"id\":\"behavior.lazyLoad.enable\",\"intentExamples\":[\"lazy load\",\"load on demand\",\"lazy\"],\"patchTemplate\":{\"behavior\":{\"lazyLoad\":true}}},{\"id\":\"behavior.lazyLoad.disable\",\"intentExamples\":[\"no lazy\",\"eager load\"],\"patchTemplate\":{\"behavior\":{\"lazyLoad\":false}}},{\"id\":\"group.stretchTabs.enable\",\"intentExamples\":[\"stretch tabs\",\"full width tabs\"],\"patchTemplate\":{\"group\":{\"stretchTabs\":true}}},{\"id\":\"group.stretchTabs.disable\",\"intentExamples\":[\"no stretch tabs\",\"compact tabs\"],\"patchTemplate\":{\"group\":{\"stretchTabs\":false}}},{\"id\":\"group.disablePagination.enable\",\"intentExamples\":[\"disable pagination\",\"no pagination\"],\"patchTemplate\":{\"group\":{\"disablePagination\":true}}},{\"id\":\"group.disablePagination.disable\",\"intentExamples\":[\"enable pagination\",\"allow pagination\"],\"patchTemplate\":{\"group\":{\"disablePagination\":false}}},{\"id\":\"tab.add\",\"intentExamples\":[\"add tab\",\"new tab\",\"create tab\",\"nova aba\",\"adicionar aba\",\"criar aba\"],\"patchTemplate\":{\"tabs\":[{\"id\":\"{{target}}\",\"textLabel\":\"{{value}}\"}]}},{\"id\":\"tab.content.set\",\"intentExamples\":[\"tab content\",\"current tab content\",\"add widget to tab\",\"list in current tab\",\"inside tab\",\"conteudo da aba\",\"nesta aba\",\"aba atual\",\"componente dentro da aba\"],\"patchTemplate\":{\"tabs\":[{\"id\":\"{{target}}\",\"content\":\"{{params.content}}\",\"widgets\":\"{{params.widgets}}\"}]}},{\"id\":\"tab.label.set\",\"intentExamples\":[\"rename tab\",\"tab label\",\"tab title\"],\"patchTemplate\":{\"tabs\":[{\"id\":\"{{target}}\",\"textLabel\":\"{{value}}\"}]}},{\"id\":\"tab.disable\",\"intentExamples\":[\"disable tab\",\"lock tab\"],\"patchTemplate\":{\"tabs\":[{\"id\":\"{{target}}\",\"disabled\":true}]}},{\"id\":\"tab.enable\",\"intentExamples\":[\"enable tab\",\"unlock tab\"],\"patchTemplate\":{\"tabs\":[{\"id\":\"{{target}}\",\"disabled\":false}]}},{\"id\":\"nav.link.add\",\"intentExamples\":[\"add link\",\"add nav link\",\"new link\"],\"patchTemplate\":{\"nav\":{\"links\":[{\"id\":\"{{target}}\",\"label\":\"{{value}}\"}]}}},{\"id\":\"nav.link.label.set\",\"intentExamples\":[\"rename link\",\"link label\"],\"patchTemplate\":{\"nav\":{\"links\":[{\"id\":\"{{target}}\",\"label\":\"{{value}}\"}]}}},{\"id\":\"nav.link.disable\",\"intentExamples\":[\"disable link\",\"lock link\"],\"patchTemplate\":{\"nav\":{\"links\":[{\"id\":\"{{target}}\",\"disabled\":true}]}}},{\"id\":\"nav.link.enable\",\"intentExamples\":[\"enable link\",\"unlock link\"],\"patchTemplate\":{\"nav\":{\"links\":[{\"id\":\"{{target}}\",\"disabled\":false}]}}}],\"fieldResolvers\":{\"tabs[]\":[\"id\",\"textLabel\"],\"nav.links[]\":[\"id\",\"label\"]},\"hints\":[\"Use tabs[].id or tabs[].textLabel as merge keys; avoid array indexes.\",\"When using nav mode, prefer nav.links[]; when using group mode, prefer tabs[].\",\"Selected index expects a zero-based number.\",\"DOC: Widget purpose: tabs or nav links with dynamic content.\",\"DOC: Host inputs: tabsId (required), config (optional), and configPersistenceStrategy. Use input-first for governed previews that must render the explicit nested widget config.\",\"DOC: Provide either tabs[] (group mode) or nav.links[] (nav mode).\",\"DOC: Each tab/link should define a label (tabs[].textLabel or nav.links[].label).\"]}}",
|
|
2483
3032
|
"sourcePointer": "projects/praxis-tabs/src/lib/ai/tabs-context-pack.ts",
|
|
2484
|
-
"contentHash": "
|
|
3033
|
+
"contentHash": "a18220169125e695bd6b939e030d330a7ba8a1a708124b03cfcdf40061fdc577",
|
|
2485
3034
|
"sourceKind": "component_definition",
|
|
2486
3035
|
"sourceId": "praxis-tabs",
|
|
2487
3036
|
"corpusVersion": "1.0.0"
|
|
@@ -2489,9 +3038,9 @@
|
|
|
2489
3038
|
{
|
|
2490
3039
|
"chunkIndex": 22,
|
|
2491
3040
|
"chunkKind": "recipe",
|
|
2492
|
-
"content": "{\"_comment\":\"Receita para configuração de Abas (Praxis Tabs).\",\"templateMeta\":{\"registryKey\":\"praxis-tabs\",\"variantId\":\"base\",\"useWhen\":\"Base tabs configuration.\",\"examplePrompts\":[\"create a tabs layout\",\"
|
|
3041
|
+
"content": "{\"_comment\":\"Receita canônica para configuração de Abas (Praxis Tabs).\",\"templateMeta\":{\"registryKey\":\"praxis-tabs\",\"variantId\":\"base\",\"useWhen\":\"Base tabs configuration with group, pill variant, per-tab tone, lazy loading, and nested widgets.\",\"examplePrompts\":[\"create a tabs layout\",\"configure pill tabs with per-tab tone and lazy widgets\"]},\"config\":{\"group\":{\"selectedIndex\":0,\"dynamicHeight\":true,\"stretchTabs\":false,\"headerPosition\":\"above\",\"alignTabs\":\"start\"},\"behavior\":{\"lazyLoad\":true,\"reorderable\":false,\"closeable\":false},\"appearance\":{\"variant\":\"pill\",\"density\":\"compact\",\"tokens\":{\"track-background-color\":\"#18191b\",\"track-border-color\":\"#2c2e33\",\"active-tab-background-color\":\"#28292c\",\"active-tab-outline-color\":\"#8ab4f8\",\"pill-radius\":\"9999px\"}},\"tabs\":[{\"id\":\"tab-overview\",\"textLabel\":\"Visão Geral\",\"icon\":\"dashboard\",\"tone\":\"primary\",\"labelClass\":\"tab-pill-overview\",\"widgets\":[{\"id\":\"praxis-table\",\"bindingOrder\":[\"config\",\"resourcePath\"],\"inputs\":{\"resourcePath\":\"{{resourcePath}}\",\"tableId\":\"{{resourceKey}}-overview-table\",\"config\":{\"toolbar\":{\"visible\":true}}}}]},{\"id\":\"tab-details\",\"textLabel\":\"Detalhes\",\"icon\":\"list\",\"tone\":\"outlined\",\"widgets\":[{\"id\":\"praxis-dynamic-form\",\"bindingOrder\":[\"resourcePath\",\"formId\",\"resourceId\"],\"inputs\":{\"formId\":\"{{resourceKey}}-details-form\",\"resourcePath\":\"{{resourcePath}}\",\"mode\":\"view\"}}]},{\"id\":\"tab-settings\",\"textLabel\":\"Configurações\",\"icon\":\"settings\",\"tone\":\"default\",\"disabled\":false,\"widgets\":[]}]}}",
|
|
2493
3042
|
"sourcePointer": "examples/ai-recipes/praxis-tabs.json",
|
|
2494
|
-
"contentHash": "
|
|
3043
|
+
"contentHash": "25c611adb268056b48e96948237d80767a2e2cc4badf0d240f6f1722ed4b2cbd",
|
|
2495
3044
|
"sourceKind": "component_definition",
|
|
2496
3045
|
"sourceId": "praxis-tabs",
|
|
2497
3046
|
"corpusVersion": "1.0.0"
|