@oods/component-contracts 0.3.3 → 0.4.1

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/dist/index.cjs CHANGED
@@ -6,7 +6,7 @@ var component_intake_v1_default = {
6
6
  kind: "component-intake",
7
7
  baselineCommit: "ae560bc22969c1fd81336730be4330c9115fc316",
8
8
  planningCommit: "8ce349076e7e3ba3f0b2f3f667d4fbb5c6a4b63b",
9
- controllingObligationDenominator: 110,
9
+ controllingObligationDenominator: 114,
10
10
  countRule: "Derived from the unique, deterministically sorted rows array; never from an independent counter.",
11
11
  rows: [
12
12
  {
@@ -937,6 +937,38 @@ var component_intake_v1_default = {
937
937
  "traits/visual/Colorized.trait.yaml"
938
938
  ]
939
939
  },
940
+ {
941
+ id: "Combobox",
942
+ displayName: "Combobox",
943
+ baselineMetadata: {
944
+ categories: [
945
+ "primitive"
946
+ ],
947
+ tags: [
948
+ "autocomplete",
949
+ "combobox",
950
+ "field",
951
+ "filter",
952
+ "form",
953
+ "input",
954
+ "interactive",
955
+ "primitive",
956
+ "select"
957
+ ],
958
+ contexts: [
959
+ "form"
960
+ ],
961
+ regions: [
962
+ "form",
963
+ "main"
964
+ ]
965
+ },
966
+ intakeEvidence: [
967
+ "packages/component-contracts/src/contracts.ts#Combobox",
968
+ "packages/mcp-server/src/render/component-map.ts#renderCombobox"
969
+ ],
970
+ addedBy: "s223-m02; decision #2527 ruling 11"
971
+ },
940
972
  {
941
973
  id: "CommunicationDetailPanel",
942
974
  displayName: "CommunicationDetailPanel",
@@ -1052,6 +1084,28 @@ var component_intake_v1_default = {
1052
1084
  "traits/content/Labelled.trait.yaml"
1053
1085
  ]
1054
1086
  },
1087
+ {
1088
+ id: "Dialog",
1089
+ displayName: "Dialog",
1090
+ baselineMetadata: {
1091
+ categories: [
1092
+ "primitive"
1093
+ ],
1094
+ tags: [
1095
+ "dialog",
1096
+ "modal",
1097
+ "overlay",
1098
+ "primitive"
1099
+ ],
1100
+ contexts: [],
1101
+ regions: []
1102
+ },
1103
+ intakeEvidence: [
1104
+ "packages/component-contracts/src/contracts.ts#Dialog",
1105
+ "packages/mcp-server/src/render/component-map.ts#renderDialog"
1106
+ ],
1107
+ addedBy: "s222-m02; decision #2502 ruling 11"
1108
+ },
1055
1109
  {
1056
1110
  id: "FilterPanel",
1057
1111
  displayName: "FilterPanel",
@@ -1900,6 +1954,37 @@ var component_intake_v1_default = {
1900
1954
  "traits/behavioral/Searchable.trait.yaml"
1901
1955
  ]
1902
1956
  },
1957
+ {
1958
+ id: "SegmentedControl",
1959
+ displayName: "SegmentedControl",
1960
+ baselineMetadata: {
1961
+ categories: [
1962
+ "primitive"
1963
+ ],
1964
+ tags: [
1965
+ "choice",
1966
+ "field",
1967
+ "form",
1968
+ "input",
1969
+ "interactive",
1970
+ "primitive",
1971
+ "radio",
1972
+ "segmented-control"
1973
+ ],
1974
+ contexts: [
1975
+ "form"
1976
+ ],
1977
+ regions: [
1978
+ "form",
1979
+ "main"
1980
+ ]
1981
+ },
1982
+ intakeEvidence: [
1983
+ "packages/component-contracts/src/contracts.ts#SegmentedControl",
1984
+ "packages/mcp-server/src/render/component-map.ts#renderSegmentedControl"
1985
+ ],
1986
+ addedBy: "s223-m02; decision #2527 ruling 10"
1987
+ },
1903
1988
  {
1904
1989
  id: "Select",
1905
1990
  displayName: "Select",
@@ -2157,6 +2242,36 @@ var component_intake_v1_default = {
2157
2242
  "traits/lifecycle/Stateful.trait.yaml"
2158
2243
  ]
2159
2244
  },
2245
+ {
2246
+ id: "Switch",
2247
+ displayName: "Switch",
2248
+ baselineMetadata: {
2249
+ categories: [
2250
+ "primitive"
2251
+ ],
2252
+ tags: [
2253
+ "boolean",
2254
+ "field",
2255
+ "form",
2256
+ "input",
2257
+ "interactive",
2258
+ "primitive",
2259
+ "switch"
2260
+ ],
2261
+ contexts: [
2262
+ "form"
2263
+ ],
2264
+ regions: [
2265
+ "form",
2266
+ "main"
2267
+ ]
2268
+ },
2269
+ intakeEvidence: [
2270
+ "packages/component-contracts/src/contracts.ts#Switch",
2271
+ "packages/mcp-server/src/render/component-map.ts#renderSwitch"
2272
+ ],
2273
+ addedBy: "s222-m02; decision #2502 ruling 11"
2274
+ },
2160
2275
  {
2161
2276
  id: "Table",
2162
2277
  displayName: "Table",
@@ -3176,9 +3291,9 @@ var component_reconciliation_proposed_v2_default = {
3176
3291
  baselineCommit: "a5638cf819bdadb86e2336c4aabe9b2184699c13",
3177
3292
  planningCommit: "8ce349076e7e3ba3f0b2f3f667d4fbb5c6a4b63b",
3178
3293
  status: "proposed-awaiting-approval",
3179
- controllingObligationDenominator: 110,
3294
+ controllingObligationDenominator: 114,
3180
3295
  approvedRuntimeCensus: null,
3181
- proposedRuntimeCensus: 110,
3296
+ proposedRuntimeCensus: 114,
3182
3297
  rows: [
3183
3298
  {
3184
3299
  id: "AddressCollectionPanel",
@@ -3818,6 +3933,25 @@ var component_reconciliation_proposed_v2_default = {
3818
3933
  implementationStatus: "implemented-evidence-complete",
3819
3934
  compatibilityNote: "Retain the named public ID and existing HTML discovery contract. Governed framework implementation and measurements are linked; classification remains a proposal."
3820
3935
  },
3936
+ {
3937
+ id: "Combobox",
3938
+ proposedClassification: "native",
3939
+ approvalState: "pending-approval",
3940
+ evidence: [
3941
+ "packages/mcp-server/src/render/component-map.ts#renderCombobox",
3942
+ "packages/components-react/evidence/react-readiness.v1.json#Combobox",
3943
+ "packages/components-vue/evidence/vue-readiness.v1.json#Combobox",
3944
+ "packages/component-contracts/src/contracts.ts#Combobox"
3945
+ ],
3946
+ implementationStatus: "implemented-evidence-complete",
3947
+ proposedResolution: {
3948
+ surface: "react+vue+html",
3949
+ implementation: "Combobox",
3950
+ source: "packages/component-contracts/src/contracts.ts",
3951
+ publicIdRetained: true
3952
+ },
3953
+ compatibilityNote: "New public identity added by decision #2527 (ruling 11). Governed framework implementation and measurements are linked; classification remains a proposal."
3954
+ },
3821
3955
  {
3822
3956
  id: "CommunicationDetailPanel",
3823
3957
  proposedClassification: "recipe",
@@ -3898,6 +4032,25 @@ var component_reconciliation_proposed_v2_default = {
3898
4032
  implementationStatus: "implemented-evidence-complete",
3899
4033
  compatibilityNote: "Retain the named public ID and existing HTML discovery contract. Governed framework implementation and measurements are linked; classification remains a proposal."
3900
4034
  },
4035
+ {
4036
+ id: "Dialog",
4037
+ proposedClassification: "native",
4038
+ approvalState: "pending-approval",
4039
+ evidence: [
4040
+ "packages/mcp-server/src/render/component-map.ts#renderDialog",
4041
+ "packages/components-react/evidence/react-readiness.v1.json#Dialog",
4042
+ "packages/components-vue/evidence/vue-readiness.v1.json#Dialog",
4043
+ "packages/component-contracts/src/contracts.ts#Dialog"
4044
+ ],
4045
+ implementationStatus: "implemented-evidence-complete",
4046
+ proposedResolution: {
4047
+ surface: "react+vue+html",
4048
+ implementation: "Dialog",
4049
+ source: "packages/component-contracts/src/contracts.ts",
4050
+ publicIdRetained: true
4051
+ },
4052
+ compatibilityNote: "New public identity added by decision #2502 (ruling 11). Governed framework implementation and measurements are linked; classification remains a proposal."
4053
+ },
3901
4054
  {
3902
4055
  id: "FilterPanel",
3903
4056
  proposedClassification: "recipe",
@@ -4512,6 +4665,25 @@ var component_reconciliation_proposed_v2_default = {
4512
4665
  implementationStatus: "implemented-evidence-complete",
4513
4666
  compatibilityNote: "Retain the named public ID and existing HTML discovery contract. Governed framework implementation and measurements are linked; classification remains a proposal."
4514
4667
  },
4668
+ {
4669
+ id: "SegmentedControl",
4670
+ proposedClassification: "native",
4671
+ approvalState: "pending-approval",
4672
+ evidence: [
4673
+ "packages/mcp-server/src/render/component-map.ts#renderSegmentedControl",
4674
+ "packages/components-react/evidence/react-readiness.v1.json#SegmentedControl",
4675
+ "packages/components-vue/evidence/vue-readiness.v1.json#SegmentedControl",
4676
+ "packages/component-contracts/src/contracts.ts#SegmentedControl"
4677
+ ],
4678
+ implementationStatus: "implemented-evidence-complete",
4679
+ proposedResolution: {
4680
+ surface: "react+vue+html",
4681
+ implementation: "SegmentedControl",
4682
+ source: "packages/component-contracts/src/contracts.ts",
4683
+ publicIdRetained: true
4684
+ },
4685
+ compatibilityNote: "New public identity added by decision #2527 (ruling 10). Governed framework implementation and measurements are linked; classification remains a proposal."
4686
+ },
4515
4687
  {
4516
4688
  id: "Select",
4517
4689
  proposedClassification: "native",
@@ -4673,6 +4845,25 @@ var component_reconciliation_proposed_v2_default = {
4673
4845
  implementationStatus: "implemented-evidence-complete",
4674
4846
  compatibilityNote: "Retain the named public ID and existing HTML discovery contract. Governed framework implementation and measurements are linked; classification remains a proposal."
4675
4847
  },
4848
+ {
4849
+ id: "Switch",
4850
+ proposedClassification: "native",
4851
+ approvalState: "pending-approval",
4852
+ evidence: [
4853
+ "packages/mcp-server/src/render/component-map.ts#renderSwitch",
4854
+ "packages/components-react/evidence/react-readiness.v1.json#Switch",
4855
+ "packages/components-vue/evidence/vue-readiness.v1.json#Switch",
4856
+ "packages/component-contracts/src/contracts.ts#Switch"
4857
+ ],
4858
+ implementationStatus: "implemented-evidence-complete",
4859
+ proposedResolution: {
4860
+ surface: "react+vue+html",
4861
+ implementation: "Switch",
4862
+ source: "packages/component-contracts/src/contracts.ts",
4863
+ publicIdRetained: true
4864
+ },
4865
+ compatibilityNote: "New public identity added by decision #2502 (ruling 11). Governed framework implementation and measurements are linked; classification remains a proposal."
4866
+ },
4676
4867
  {
4677
4868
  id: "Table",
4678
4869
  proposedClassification: "native",
@@ -5385,7 +5576,7 @@ var component_capability_ledger_v1_default = {
5385
5576
  schemaVersion: "1.0.0",
5386
5577
  kind: "component-capability-ledger",
5387
5578
  generatedAt: "2026-09-11T05:30:00Z",
5388
- controllingObligationDenominator: 110,
5579
+ controllingObligationDenominator: 114,
5389
5580
  approvedRuntimeCensus: null,
5390
5581
  source: "refresh_structured_data.py#project_measured_surfaces",
5391
5582
  rows: [
@@ -8094,6 +8285,77 @@ var component_capability_ledger_v1_default = {
8094
8285
  }
8095
8286
  }
8096
8287
  },
8288
+ {
8289
+ id: "Combobox",
8290
+ proposedClassification: "native",
8291
+ reconciliationState: "proposed-awaiting-approval",
8292
+ surfaces: {
8293
+ contract: {
8294
+ state: "versioned-v1",
8295
+ evidence: [
8296
+ "packages/component-contracts/src/contracts.ts#Combobox"
8297
+ ]
8298
+ },
8299
+ metadata: {
8300
+ state: "available",
8301
+ evidence: [
8302
+ "packages/component-contracts/registry/component-intake.v1.json#Combobox"
8303
+ ]
8304
+ },
8305
+ html: {
8306
+ state: "mapped",
8307
+ evidence: [
8308
+ "packages/mcp-server/src/render/component-map.ts#renderCombobox"
8309
+ ]
8310
+ },
8311
+ react: {
8312
+ state: "implemented-evidence-complete",
8313
+ evidence: [
8314
+ "packages/components-react/evidence/react-readiness.v1.json#Combobox"
8315
+ ]
8316
+ },
8317
+ vue: {
8318
+ state: "implemented-evidence-complete",
8319
+ evidence: [
8320
+ "packages/components-vue/evidence/vue-readiness.v1.json#Combobox"
8321
+ ]
8322
+ },
8323
+ generatedConsumer: {
8324
+ state: "unavailable",
8325
+ evidence: [
8326
+ "artifacts/product-reality/sprint-193/m07/runtime/runtime-cells.v1.json"
8327
+ ],
8328
+ reason: "No current runtime cell places this component; historical receipts do not establish current coverage."
8329
+ },
8330
+ accessibility: {
8331
+ state: "verified",
8332
+ evidence: [
8333
+ "artifacts/product-reality/sprint-223/m02/combobox/react-measured.json#Combobox",
8334
+ "artifacts/product-reality/sprint-223/m02/combobox/vue-measured.json#Combobox",
8335
+ "packages/components-react/evidence/react-readiness.v1.json#Combobox",
8336
+ "packages/components-vue/evidence/vue-readiness.v1.json#Combobox"
8337
+ ]
8338
+ },
8339
+ theme: {
8340
+ state: "verified",
8341
+ evidence: [
8342
+ "artifacts/product-reality/sprint-223/m02/combobox/react-theme/report.json#Combobox",
8343
+ "artifacts/product-reality/sprint-223/m02/combobox/vue-theme/report.json#Combobox",
8344
+ "packages/components-react/evidence/react-readiness.v1.json#Combobox",
8345
+ "packages/components-vue/evidence/vue-readiness.v1.json#Combobox"
8346
+ ]
8347
+ },
8348
+ interaction: {
8349
+ state: "verified",
8350
+ evidence: [
8351
+ "artifacts/product-reality/sprint-223/m02/combobox/react-measured.json#Combobox",
8352
+ "artifacts/product-reality/sprint-223/m02/combobox/vue-measured.json#Combobox",
8353
+ "packages/components-react/evidence/react-readiness.v1.json#Combobox",
8354
+ "packages/components-vue/evidence/vue-readiness.v1.json#Combobox"
8355
+ ]
8356
+ }
8357
+ }
8358
+ },
8097
8359
  {
8098
8360
  id: "CommunicationDetailPanel",
8099
8361
  proposedClassification: "recipe",
@@ -8453,6 +8715,77 @@ var component_capability_ledger_v1_default = {
8453
8715
  }
8454
8716
  }
8455
8717
  },
8718
+ {
8719
+ id: "Dialog",
8720
+ proposedClassification: "native",
8721
+ reconciliationState: "proposed-awaiting-approval",
8722
+ surfaces: {
8723
+ contract: {
8724
+ state: "versioned-v1",
8725
+ evidence: [
8726
+ "packages/component-contracts/src/contracts.ts#Dialog"
8727
+ ]
8728
+ },
8729
+ metadata: {
8730
+ state: "available",
8731
+ evidence: [
8732
+ "packages/component-contracts/registry/component-intake.v1.json#Dialog"
8733
+ ]
8734
+ },
8735
+ html: {
8736
+ state: "mapped",
8737
+ evidence: [
8738
+ "packages/mcp-server/src/render/component-map.ts#renderDialog"
8739
+ ]
8740
+ },
8741
+ react: {
8742
+ state: "implemented-evidence-complete",
8743
+ evidence: [
8744
+ "packages/components-react/evidence/react-readiness.v1.json#Dialog"
8745
+ ]
8746
+ },
8747
+ vue: {
8748
+ state: "implemented-evidence-complete",
8749
+ evidence: [
8750
+ "packages/components-vue/evidence/vue-readiness.v1.json#Dialog"
8751
+ ]
8752
+ },
8753
+ generatedConsumer: {
8754
+ state: "unavailable",
8755
+ evidence: [
8756
+ "artifacts/product-reality/sprint-193/m07/runtime/runtime-cells.v1.json"
8757
+ ],
8758
+ reason: "No current runtime cell places this component; historical receipts do not establish current coverage."
8759
+ },
8760
+ accessibility: {
8761
+ state: "verified",
8762
+ evidence: [
8763
+ "artifacts/product-reality/sprint-222/m02/switch-dialog/react-measured.json#Dialog",
8764
+ "artifacts/product-reality/sprint-222/m02/switch-dialog/vue-measured.json#Dialog",
8765
+ "packages/components-react/evidence/react-readiness.v1.json#Dialog",
8766
+ "packages/components-vue/evidence/vue-readiness.v1.json#Dialog"
8767
+ ]
8768
+ },
8769
+ theme: {
8770
+ state: "verified",
8771
+ evidence: [
8772
+ "artifacts/product-reality/sprint-222/m02/switch-dialog/react-theme/report.json#Dialog",
8773
+ "artifacts/product-reality/sprint-222/m02/switch-dialog/vue-theme/report.json#Dialog",
8774
+ "packages/components-react/evidence/react-readiness.v1.json#Dialog",
8775
+ "packages/components-vue/evidence/vue-readiness.v1.json#Dialog"
8776
+ ]
8777
+ },
8778
+ interaction: {
8779
+ state: "verified",
8780
+ evidence: [
8781
+ "artifacts/product-reality/sprint-222/m02/switch-dialog/react-measured.json#Dialog",
8782
+ "artifacts/product-reality/sprint-222/m02/switch-dialog/vue-measured.json#Dialog",
8783
+ "packages/components-react/evidence/react-readiness.v1.json#Dialog",
8784
+ "packages/components-vue/evidence/vue-readiness.v1.json#Dialog"
8785
+ ]
8786
+ }
8787
+ }
8788
+ },
8456
8789
  {
8457
8790
  id: "FilterPanel",
8458
8791
  proposedClassification: "recipe",
@@ -11074,6 +11407,77 @@ var component_capability_ledger_v1_default = {
11074
11407
  }
11075
11408
  }
11076
11409
  },
11410
+ {
11411
+ id: "SegmentedControl",
11412
+ proposedClassification: "native",
11413
+ reconciliationState: "proposed-awaiting-approval",
11414
+ surfaces: {
11415
+ contract: {
11416
+ state: "versioned-v1",
11417
+ evidence: [
11418
+ "packages/component-contracts/src/contracts.ts#SegmentedControl"
11419
+ ]
11420
+ },
11421
+ metadata: {
11422
+ state: "available",
11423
+ evidence: [
11424
+ "packages/component-contracts/registry/component-intake.v1.json#SegmentedControl"
11425
+ ]
11426
+ },
11427
+ html: {
11428
+ state: "mapped",
11429
+ evidence: [
11430
+ "packages/mcp-server/src/render/component-map.ts#renderSegmentedControl"
11431
+ ]
11432
+ },
11433
+ react: {
11434
+ state: "implemented-evidence-complete",
11435
+ evidence: [
11436
+ "packages/components-react/evidence/react-readiness.v1.json#SegmentedControl"
11437
+ ]
11438
+ },
11439
+ vue: {
11440
+ state: "implemented-evidence-complete",
11441
+ evidence: [
11442
+ "packages/components-vue/evidence/vue-readiness.v1.json#SegmentedControl"
11443
+ ]
11444
+ },
11445
+ generatedConsumer: {
11446
+ state: "unavailable",
11447
+ evidence: [
11448
+ "artifacts/product-reality/sprint-193/m07/runtime/runtime-cells.v1.json"
11449
+ ],
11450
+ reason: "No current runtime cell places this component; historical receipts do not establish current coverage."
11451
+ },
11452
+ accessibility: {
11453
+ state: "verified",
11454
+ evidence: [
11455
+ "artifacts/product-reality/sprint-223/m02/segmented-control/react-measured.json#SegmentedControl",
11456
+ "artifacts/product-reality/sprint-223/m02/segmented-control/vue-measured.json#SegmentedControl",
11457
+ "packages/components-react/evidence/react-readiness.v1.json#SegmentedControl",
11458
+ "packages/components-vue/evidence/vue-readiness.v1.json#SegmentedControl"
11459
+ ]
11460
+ },
11461
+ theme: {
11462
+ state: "verified",
11463
+ evidence: [
11464
+ "artifacts/product-reality/sprint-223/m02/segmented-control/react-theme/report.json#SegmentedControl",
11465
+ "artifacts/product-reality/sprint-223/m02/segmented-control/vue-theme/report.json#SegmentedControl",
11466
+ "packages/components-react/evidence/react-readiness.v1.json#SegmentedControl",
11467
+ "packages/components-vue/evidence/vue-readiness.v1.json#SegmentedControl"
11468
+ ]
11469
+ },
11470
+ interaction: {
11471
+ state: "verified",
11472
+ evidence: [
11473
+ "artifacts/product-reality/sprint-223/m02/segmented-control/react-measured.json#SegmentedControl",
11474
+ "artifacts/product-reality/sprint-223/m02/segmented-control/vue-measured.json#SegmentedControl",
11475
+ "packages/components-react/evidence/react-readiness.v1.json#SegmentedControl",
11476
+ "packages/components-vue/evidence/vue-readiness.v1.json#SegmentedControl"
11477
+ ]
11478
+ }
11479
+ }
11480
+ },
11077
11481
  {
11078
11482
  id: "Select",
11079
11483
  proposedClassification: "native",
@@ -12041,6 +12445,77 @@ var component_capability_ledger_v1_default = {
12041
12445
  }
12042
12446
  }
12043
12447
  },
12448
+ {
12449
+ id: "Switch",
12450
+ proposedClassification: "native",
12451
+ reconciliationState: "proposed-awaiting-approval",
12452
+ surfaces: {
12453
+ contract: {
12454
+ state: "versioned-v1",
12455
+ evidence: [
12456
+ "packages/component-contracts/src/contracts.ts#Switch"
12457
+ ]
12458
+ },
12459
+ metadata: {
12460
+ state: "available",
12461
+ evidence: [
12462
+ "packages/component-contracts/registry/component-intake.v1.json#Switch"
12463
+ ]
12464
+ },
12465
+ html: {
12466
+ state: "mapped",
12467
+ evidence: [
12468
+ "packages/mcp-server/src/render/component-map.ts#renderSwitch"
12469
+ ]
12470
+ },
12471
+ react: {
12472
+ state: "implemented-evidence-complete",
12473
+ evidence: [
12474
+ "packages/components-react/evidence/react-readiness.v1.json#Switch"
12475
+ ]
12476
+ },
12477
+ vue: {
12478
+ state: "implemented-evidence-complete",
12479
+ evidence: [
12480
+ "packages/components-vue/evidence/vue-readiness.v1.json#Switch"
12481
+ ]
12482
+ },
12483
+ generatedConsumer: {
12484
+ state: "unavailable",
12485
+ evidence: [
12486
+ "artifacts/product-reality/sprint-193/m07/runtime/runtime-cells.v1.json"
12487
+ ],
12488
+ reason: "No current runtime cell places this component; historical receipts do not establish current coverage."
12489
+ },
12490
+ accessibility: {
12491
+ state: "verified",
12492
+ evidence: [
12493
+ "artifacts/product-reality/sprint-222/m02/switch-dialog/react-measured.json#Switch",
12494
+ "artifacts/product-reality/sprint-222/m02/switch-dialog/vue-measured.json#Switch",
12495
+ "packages/components-react/evidence/react-readiness.v1.json#Switch",
12496
+ "packages/components-vue/evidence/vue-readiness.v1.json#Switch"
12497
+ ]
12498
+ },
12499
+ theme: {
12500
+ state: "verified",
12501
+ evidence: [
12502
+ "artifacts/product-reality/sprint-222/m02/switch-dialog/react-theme/report.json#Switch",
12503
+ "artifacts/product-reality/sprint-222/m02/switch-dialog/vue-theme/report.json#Switch",
12504
+ "packages/components-react/evidence/react-readiness.v1.json#Switch",
12505
+ "packages/components-vue/evidence/vue-readiness.v1.json#Switch"
12506
+ ]
12507
+ },
12508
+ interaction: {
12509
+ state: "verified",
12510
+ evidence: [
12511
+ "artifacts/product-reality/sprint-222/m02/switch-dialog/react-measured.json#Switch",
12512
+ "artifacts/product-reality/sprint-222/m02/switch-dialog/vue-measured.json#Switch",
12513
+ "packages/components-react/evidence/react-readiness.v1.json#Switch",
12514
+ "packages/components-vue/evidence/vue-readiness.v1.json#Switch"
12515
+ ]
12516
+ }
12517
+ }
12518
+ },
12044
12519
  {
12045
12520
  id: "Table",
12046
12521
  proposedClassification: "native",
@@ -15101,10 +15576,12 @@ var NUCLEUS_COMPONENT_IDS = [
15101
15576
  "ColorStatePicker",
15102
15577
  "ColorSwatch",
15103
15578
  "ColorizedBadge",
15579
+ "Combobox",
15104
15580
  "CommunicationDetailPanel",
15105
15581
  "CycleProgressCard",
15106
15582
  "DatePicker",
15107
15583
  "DetailHeader",
15584
+ "Dialog",
15108
15585
  "FilterPanel",
15109
15586
  "FormLabelGroup",
15110
15587
  "GeoFieldMappingForm",
@@ -15135,6 +15612,7 @@ var NUCLEUS_COMPONENT_IDS = [
15135
15612
  "RoleAssignmentForm",
15136
15613
  "RoleBadgeList",
15137
15614
  "SearchInput",
15615
+ "SegmentedControl",
15138
15616
  "Select",
15139
15617
  "SortIndicator",
15140
15618
  "Stack",
@@ -15143,6 +15621,7 @@ var NUCLEUS_COMPONENT_IDS = [
15143
15621
  "StatusColorLegend",
15144
15622
  "StatusSelector",
15145
15623
  "StatusTimeline",
15624
+ "Switch",
15146
15625
  "Table",
15147
15626
  "Tabs",
15148
15627
  "TagInput",
@@ -15268,9 +15747,15 @@ var componentBehaviors = {
15268
15747
  ClassificationPanel: { "role": "none", "name": { "strategy": "heading", "target": "h1,h2,h3,h4,h5,h6" }, "keyboard": {}, "interaction": "none", "interactionReason": "ClassificationPanel presents content and owns no focusable control or action; authored child actions remain the consumer's responsibility.", "event": [] },
15269
15748
  ColorSwatch: { "role": "none", "name": { "strategy": "none", "target": ":root" }, "keyboard": {}, "interaction": "none", "interactionReason": "ColorSwatch presents content and owns no focusable control or action; authored child actions remain the consumer's responsibility.", "event": [] },
15270
15749
  ColorizedBadge: { "role": "none", "name": { "strategy": "none", "target": ":root" }, "keyboard": {}, "interaction": "none", "interactionReason": "ColorizedBadge presents content and owns no focusable control or action; authored child actions remain the consumer's responsibility.", "event": [] },
15750
+ // s223-m02 (#2527 ruling 11): each trigger starts from the documented example (Canada chosen, the list closed). Tab reaches
15751
+ // the input; typing edits the filter text; Down opens the list at the first option and Up at the last (Japan, disabled,
15752
+ // is never reached); Home and End act on the list a key has opened; Enter picks the active option (France, after three
15753
+ // Downs); and Escape with the list closed clears the field and emits an empty value.
15754
+ Combobox: { "role": "combobox", "name": { "strategy": "label", "target": 'input[role="combobox"]' }, "keyboard": { "Tab": "Move focus to the named native control; an open list closes without picking", "x": "Type to filter the options by label", "ArrowDown": "Open the list and move to the next option", "ArrowUp": "Move to the previous option; with the list closed, open it at the last option", "Home": "Move to the first option of an open list", "End": "Move to the last option of an open list", "Enter": "Pick the active option and close the list", "Escape": "Close the list; with the list closed, clear the field" }, "interaction": "interactive", "event": [{ "trigger": "keyboard", "target": 'input[role="combobox"]', "key": "Tab", "effect": { "kind": "focus" } }, { "trigger": "keyboard", "target": 'input[role="combobox"]', "key": "x", "effect": { "kind": "value", "value": "Canadax" } }, { "trigger": "keyboard", "target": 'input[role="combobox"]', "key": "ArrowDown", "effect": { "kind": "active-option", "value": "Australia" } }, { "trigger": "keyboard", "target": 'input[role="combobox"]', "key": "ArrowUp", "effect": { "kind": "active-option", "value": "United States" } }, { "trigger": "keyboard", "target": 'input[role="combobox"]', "keys": ["ArrowUp"], "key": "Home", "effect": { "kind": "active-option", "value": "Australia" } }, { "trigger": "keyboard", "target": 'input[role="combobox"]', "keys": ["ArrowDown"], "key": "End", "effect": { "kind": "active-option", "value": "United States" } }, { "trigger": "keyboard", "target": 'input[role="combobox"]', "keys": ["ArrowDown", "ArrowDown", "ArrowDown"], "key": "Enter", "effect": { "kind": "event", "value": "fr" } }, { "trigger": "keyboard", "target": 'input[role="combobox"]', "key": "Escape", "effect": { "kind": "event", "value": "" } }] },
15271
15755
  CycleProgressCard: { "role": "none", "name": { "strategy": "heading", "target": "h1,h2,h3,h4,h5,h6" }, "keyboard": {}, "interaction": "none", "interactionReason": "CycleProgressCard presents content and owns no focusable control or action; authored child actions remain the consumer's responsibility.", "event": [] },
15272
15756
  DatePicker: { "role": "none", "name": { "strategy": "label", "target": 'input[type="date"]' }, "keyboard": { "Tab": "Move focus to the named native control" }, "interaction": "interactive", "event": [{ "trigger": "keyboard", "target": 'input[type="date"]', "key": "Tab", "effect": { "kind": "focus" } }] },
15273
15757
  DetailHeader: { "role": "none", "name": { "strategy": "heading", "target": "h1,h2,h3,h4,h5,h6" }, "keyboard": {}, "interaction": "none", "interactionReason": "DetailHeader presents content and owns no focusable control or action; authored child actions remain the consumer's responsibility.", "event": [] },
15758
+ Dialog: { "role": "button", "name": { "strategy": "aria-label", "target": 'button[aria-label="Close"]' }, "keyboard": { "Tab": "Move focus to the named native control", "Enter": "Activate the control", "Escape": "Close the dialog" }, "interaction": "interactive", "event": [{ "trigger": "keyboard", "target": 'button[aria-label="Close"]', "key": "Tab", "effect": { "kind": "focus" } }, { "trigger": "pointer", "target": 'button[aria-label="Close"]', "effect": { "kind": "event" }, "action": "click" }, { "trigger": "keyboard", "target": 'button[aria-label="Close"]', "effect": { "kind": "event" }, "key": "Enter" }, { "trigger": "keyboard", "target": 'button[aria-label="Close"]', "effect": { "kind": "event" }, "key": "Escape" }] },
15274
15759
  FilterPanel: { "role": "button", "name": { "strategy": "label", "target": "button[data-filter-apply]" }, "keyboard": { "Tab": "Move focus to the named native control" }, "interaction": "interactive", "event": [{ "trigger": "keyboard", "target": "button[data-filter-apply]", "key": "Tab", "effect": { "kind": "focus" } }] },
15275
15760
  FormLabelGroup: { "role": "none", "name": { "strategy": "none", "target": ":root" }, "keyboard": {}, "interaction": "none", "interactionReason": "FormLabelGroup presents content and owns no focusable control or action; authored child actions remain the consumer's responsibility.", "event": [] },
15276
15761
  Grid: { "role": "none", "name": { "strategy": "none", "target": ":root" }, "keyboard": {}, "interaction": "none", "interactionReason": "Grid presents content and owns no focusable control or action; authored child actions remain the consumer's responsibility.", "event": [] },
@@ -15298,11 +15783,15 @@ var componentBehaviors = {
15298
15783
  RoleAssignmentForm: { "role": "textbox", "name": { "strategy": "label", "target": 'input[name="assignee"]' }, "keyboard": { "Tab": "Move focus to the named native control", "x": "Edit the named control" }, "interaction": "interactive", "event": [{ "trigger": "keyboard", "target": 'input[name="assignee"]', "key": "Tab", "effect": { "kind": "focus" } }, { "trigger": "keyboard", "target": 'input[name="assignee"]', "effect": { "kind": "value", "value": "ada@example.testx" }, "key": "x" }] },
15299
15784
  RoleBadgeList: { "role": "none", "name": { "strategy": "none", "target": ":root" }, "keyboard": {}, "interaction": "none", "interactionReason": "RoleBadgeList presents content and owns no focusable control or action; authored child actions remain the consumer's responsibility.", "event": [] },
15300
15785
  SearchInput: { "role": "searchbox", "name": { "strategy": "label", "target": "input" }, "keyboard": { "Tab": "Move focus to the named native control", "Escape": "Clear the current search" }, "interaction": "interactive", "event": [{ "trigger": "keyboard", "target": "input", "key": "Escape", "effect": { "kind": "event", "value": "" } }, { "trigger": "keyboard", "target": "input", "key": "Tab", "effect": { "kind": "focus" } }, { "trigger": "pointer", "target": 'button[aria-label="Clear search"]', "action": "click", "effect": { "kind": "event", "value": "" } }] },
15786
+ // s223-m02 (#2527 ruling 10): the focus target is the checked radio, as Tabs names its tab; the radiogroup and its name
15787
+ // are asserted in each framework's scenario spec. The browser owns the keys, so each is a native radio-group move.
15788
+ SegmentedControl: { "role": "radio", "name": { "strategy": "label", "target": 'input[type="radio"]:checked' }, "keyboard": { "Tab": "Move focus to the checked option", "ArrowRight": "Check and focus the next option", "ArrowDown": "Check and focus the next option", "ArrowLeft": "Check and focus the previous option", "ArrowUp": "Check and focus the previous option" }, "interaction": "interactive", "event": [{ "trigger": "keyboard", "target": 'input[type="radio"]:checked', "key": "Tab", "effect": { "kind": "focus" } }, { "trigger": "keyboard", "target": 'input[type="radio"]:checked', "key": "ArrowRight", "effect": { "kind": "event", "value": "yearly" } }, { "trigger": "keyboard", "target": 'input[type="radio"]:checked', "key": "ArrowDown", "effect": { "kind": "event", "value": "yearly" } }, { "trigger": "keyboard", "target": 'input[type="radio"]:checked', "key": "ArrowLeft", "effect": { "kind": "event", "value": "monthly" } }, { "trigger": "keyboard", "target": 'input[type="radio"]:checked', "key": "ArrowUp", "effect": { "kind": "event", "value": "monthly" } }, { "trigger": "pointer", "target": 'input[value="yearly"]', "effect": { "kind": "event", "value": "yearly" }, "action": "click" }] },
15301
15789
  Select: { "role": "combobox", "name": { "strategy": "label", "target": "select" }, "keyboard": { "Tab": "Move focus to the named native control" }, "interaction": "interactive", "event": [{ "trigger": "keyboard", "target": "select", "key": "Tab", "effect": { "kind": "focus" } }, { "trigger": "pointer", "target": "select", "effect": { "kind": "event", "value": "basic" }, "action": "select", "value": "basic" }] },
15302
15790
  Stack: { "role": "none", "name": { "strategy": "none", "target": ":root" }, "keyboard": {}, "interaction": "none", "interactionReason": "Stack presents content and owns no focusable control or action; authored child actions remain the consumer's responsibility.", "event": [] },
15303
15791
  StatusBadge: { "role": "none", "name": { "strategy": "none", "target": ":root" }, "keyboard": {}, "interaction": "none", "interactionReason": "StatusBadge presents content and owns no focusable control or action; authored child actions remain the consumer's responsibility.", "event": [] },
15304
15792
  StatusSelector: { "role": "combobox", "name": { "strategy": "label", "target": "select" }, "keyboard": { "Tab": "Move focus to the named native control" }, "interaction": "interactive", "event": [{ "trigger": "keyboard", "target": "select", "key": "Tab", "effect": { "kind": "focus" } }, { "trigger": "pointer", "target": "select", "effect": { "kind": "event", "value": "draft" }, "action": "select", "value": "draft" }] },
15305
15793
  StatusTimeline: { "role": "none", "name": { "strategy": "heading", "target": "h1,h2,h3,h4,h5,h6" }, "keyboard": {}, "interaction": "none", "interactionReason": "StatusTimeline presents content and owns no focusable control or action; authored child actions remain the consumer's responsibility.", "event": [] },
15794
+ Switch: { "role": "switch", "name": { "strategy": "label", "target": 'button[role="switch"]' }, "keyboard": { "Tab": "Move focus to the named native control", " ": "Toggle the switch", "Enter": "Toggle the switch" }, "interaction": "interactive", "event": [{ "trigger": "keyboard", "target": 'button[role="switch"]', "key": "Tab", "effect": { "kind": "focus" } }, { "trigger": "pointer", "target": 'button[role="switch"]', "effect": { "kind": "event", "value": true }, "action": "click" }, { "trigger": "keyboard", "target": 'button[role="switch"]', "effect": { "kind": "event", "value": true }, "key": " " }, { "trigger": "keyboard", "target": 'button[role="switch"]', "effect": { "kind": "event", "value": true }, "key": "Enter" }] },
15306
15795
  Table: { "role": "button", "name": { "strategy": "label", "target": "tbody button" }, "keyboard": { "Tab": "Move focus to the named native control", "Enter": "Activate the control" }, "interaction": "interactive", "event": [{ "trigger": "keyboard", "target": "tbody button", "key": "Tab", "effect": { "kind": "focus" } }, { "trigger": "pointer", "target": "tbody button", "effect": { "kind": "event", "value": "sub-1" }, "action": "click" }, { "trigger": "keyboard", "target": "tbody button", "effect": { "kind": "event", "value": "sub-1" }, "key": "Enter" }] },
15307
15796
  Tabs: { "role": "tab", "name": { "strategy": "label", "target": '[role="tab"][data-tab-id="overview"]' }, "keyboard": { "Tab": "Move focus to the named native control", "ArrowRight": "Select and focus the next tab" }, "interaction": "interactive", "event": [{ "trigger": "keyboard", "target": '[role="tab"][data-tab-id="overview"]', "key": "Tab", "effect": { "kind": "focus" } }, { "trigger": "keyboard", "target": '[role="tab"][data-tab-id="overview"]', "effect": { "kind": "selected-tab", "value": "billing", "target": '[role="tab"][data-tab-id="billing"]' }, "key": "ArrowRight" }] },
15308
15797
  TagInput: { "role": "textbox", "name": { "strategy": "label", "target": "input" }, "keyboard": { "Tab": "Move focus to the named native control", "x": "Edit the named control" }, "interaction": "interactive", "event": [{ "trigger": "keyboard", "target": "input", "key": "Tab", "effect": { "kind": "focus" } }, { "trigger": "keyboard", "target": "input", "effect": { "kind": "event", "value": "bex" }, "key": "x" }] },
@@ -15328,7 +15817,7 @@ var authoredContracts = {
15328
15817
  states: ["summary", "content"],
15329
15818
  tokenRoles: ["panel.background", "panel.border", "panel.title", "panel.subtitle"],
15330
15819
  accessibility: ["A real h3 heading names the panel section", "Subtitle and summary text remain visible beside the heading", "The panel is noninteractive"],
15331
- compatibility: "Mirrors renderAddressCollectionPanel over renderPanelSection with data-panel-type=address: title aliases title/label/heading/name (default Addresses), subtitle aliases subtitle/description/metadata, and summary/text/body/emptyMessage fill the content area only without authored children. The saved-schema directives roleField, defaultRoleField and roleParameter are consumed by codegen and left unbound, and the generic field (the addresses collection) is consumed without a binding: the HTML renderer reads no address data, so the panel presents its heading, subtitle, summary and authored children only."
15820
+ compatibility: "Mirrors renderAddressCollectionPanel over renderPanelSection with data-panel-type=address: title aliases title/label/heading/name (default Addresses), subtitle aliases subtitle/description/metadata, and summary/text/body/emptyMessage fill the content area only without authored children. The saved-schema directives roleField, defaultRoleField and roleParameter are consumed by codegen and left unbound. The generic field (the addresses collection) lowers to summary, the record's addresses one line each (addressCollectionSummary; a generated workflow's store prints the same line), in every renderer and on a single screen as in a workflow."
15332
15821
  },
15333
15822
  AddressEditor: {
15334
15823
  id: "AddressEditor",
@@ -15348,7 +15837,7 @@ var authoredContracts = {
15348
15837
  slots: ["default"],
15349
15838
  events: [],
15350
15839
  states: ["subtle", "solid"],
15351
- tokenRoles: ["badge.background", "badge.border", "badge.text"],
15840
+ tokenRoles: ["badge.background", "badge.text"],
15352
15841
  accessibility: ["Inherits Badge inline noninteractive status label semantics", "The resolved label is always visible text"],
15353
15842
  compatibility: "Mirrors renderAddressSummaryBadge over renderBadgePrimitive with default variant address and default label Address: the label reads label/text/role/value in that order, the status reads status/state/role, and both are exposed as data-badge-status and data-badge-variant on the governed Badge substrate; tone and emphasis retain their shared Badge behaviour. The generic field lowers to role (the address role that names the status), so an authored label stays the visible text while the bound role drives data-badge-status; role is the address role, never an ARIA role, on a noninteractive badge."
15354
15843
  },
@@ -15363,17 +15852,17 @@ var authoredContracts = {
15363
15852
  accessibility: ["A log region named by its title, which is also a real h3 heading", "Events are an ordered list with machine-readable timestamps", "An empty timeline is named No events"],
15364
15853
  compatibility: "Mirrors renderAddressValidationTimeline over renderTimelineContainer with data-timeline-type=address-validation and role=log: title aliases title/label/heading/name (default Address Validation Timeline); the first array among events/validations/history supplies the events, each rendered as label, time and detail exactly as normalizeTimelineItems reads them (records use label/title/event/status/state/text/name, timestamp/datetime/time/at/createdAt/updatedAt and detail/description/reason/message/from/to; scalars render as text); no events renders the named empty item; authored children replace the list. The generic field (the addresses collection) lowers to events."
15365
15854
  },
15366
- ArchiveEvent: { "id": "ArchiveEvent", "version": "1.1.0", "props": ["title", "archivedAt", "restoredAt", "archivedBy", "reason", "showActor", "showReason"], "slots": [], "events": [], "states": ["empty", "populated"], "tokenRoles": ["surface.panel", "text.body"], "accessibility": ["Visible text exposes values without relying on color", "Named semantic container or noninteractive span"], "compatibility": "Archive and restoration instants remain distinct and ordered as declared; valid dates render stable UTC time, missing dates remain disclosed. Actor and reason are visible when supplied. metadataField and restorationMetadataField are consumed unbound, matching the retained renderer; metadata inspection is not claimed." },
15855
+ ArchiveEvent: { "id": "ArchiveEvent", "version": "1.1.0", "props": ["title", "archivedAt", "restoredAt", "archivedBy", "reason", "showActor", "showReason"], "slots": [], "events": [], "states": ["empty", "populated"], "tokenRoles": ["surface.panel", "text.body"], "accessibility": ["Visible text exposes values without relying on color", "Named semantic container or noninteractive span"], "compatibility": "Archive and restoration instants remain distinct and ordered as declared; valid dates render stable UTC time, missing dates remain disclosed. Actor and reason are visible when supplied; with no archive or restore recorded the card renders nothing (s223-m01). metadataField and restorationMetadataField are consumed unbound, matching the retained renderer; metadata inspection is not claimed." },
15367
15856
  ArchivePill: {
15368
15857
  id: "ArchivePill",
15369
15858
  version: COMPONENT_CONTRACT_VERSION,
15370
- props: ["label", "text", "status", "state", "value", "variant", "tone", "emphasis", "isArchived"],
15859
+ props: ["label", "text", "status", "state", "value", "variant", "tone", "emphasis", "isArchived", "hideWhenFalse"],
15371
15860
  slots: ["default"],
15372
15861
  events: [],
15373
15862
  states: ["subtle", "solid"],
15374
- tokenRoles: ["badge.background", "badge.border", "badge.text"],
15863
+ tokenRoles: ["badge.background", "badge.text"],
15375
15864
  accessibility: ["false remains visible", "archive is the badge variant"],
15376
- compatibility: "Mirrors renderArchivePill over renderBadgePrimitive: label/text/status/state/isArchived/value label precedence, status/state/isArchived/value status precedence, Archive fallback and archive variant. Boolean flags read Not archived / Archived while preserving their recorded status; absent flags remain absent and authored labels or children win. field binds isArchived. archivedAtField is consumed unbound because the HTML pill has no date term. Noninteractive; no archive or restore action."
15865
+ compatibility: 'Mirrors renderArchivePill over renderBadgePrimitive: label/text/status/state/isArchived/value label precedence, status/state/isArchived/value status precedence, Archive fallback and archive variant. Boolean flags read Not archived / Archived while preserving their recorded status; absent flags remain absent and authored labels or children win. field binds isArchived. With hideWhenFalse a false flag renders nothing (s223-m01: a card shows "Archived", never the default "Not archived"); a true flag still reads Archived. archivedAtField is consumed unbound because the HTML pill has no date term. Noninteractive; no archive or restore action.'
15377
15866
  },
15378
15867
  ArchiveSummary: {
15379
15868
  id: "ArchiveSummary",
@@ -15438,7 +15927,7 @@ var authoredContracts = {
15438
15927
  slots: ["default"],
15439
15928
  events: [],
15440
15929
  states: ["subtle", "solid"],
15441
- tokenRoles: ["badge.background", "badge.border", "badge.text", "badge.icon"],
15930
+ tokenRoles: ["badge.background", "badge.text", "badge.icon"],
15442
15931
  accessibility: ["Inline noninteractive status label", "Decorative icons are hidden from assistive technology"],
15443
15932
  compatibility: "The existing React status registry is the starting implementation."
15444
15933
  },
@@ -15511,15 +16000,15 @@ var authoredContracts = {
15511
16000
  CancellationBadge: {
15512
16001
  id: "CancellationBadge",
15513
16002
  version: COMPONENT_CONTRACT_VERSION,
15514
- props: ["label", "text", "status", "state", "value", "variant", "tone", "emphasis", "cancelAtPeriodEnd", "isCancelled"],
16003
+ props: ["label", "text", "status", "state", "value", "variant", "tone", "emphasis", "cancelAtPeriodEnd", "isCancelled", "hideWhenFalse"],
15515
16004
  slots: ["default"],
15516
16005
  events: [],
15517
16006
  states: ["subtle", "solid"],
15518
- tokenRoles: ["badge.background", "badge.border", "badge.text"],
16007
+ tokenRoles: ["badge.background", "badge.text"],
15519
16008
  accessibility: ["false remains visible", "cancellation is the badge variant"],
15520
- compatibility: "Mirrors renderCancellationBadge over renderBadgePrimitive: label/text/status/state/cancelAtPeriodEnd/value label precedence; status/state/cancelAtPeriodEnd/isCancelled/value status precedence; Cancellation fallback and cancellation variant. Boolean flags read No cancellation scheduled / Cancellation scheduled while preserving their recorded status; absent flags remain absent. field binds cancelAtPeriodEnd. Authored labels or children win. Noninteractive; no cancellation action."
16009
+ compatibility: 'Mirrors renderCancellationBadge over renderBadgePrimitive: label/text/status/state/cancelAtPeriodEnd/value label precedence; status/state/cancelAtPeriodEnd/isCancelled/value status precedence; Cancellation fallback and cancellation variant. Boolean flags read No cancellation scheduled / Cancellation scheduled while preserving their recorded status; absent flags remain absent. field binds cancelAtPeriodEnd. With hideWhenFalse a false flag renders nothing (s223-m01: a card shows "Cancellation scheduled", never the default "No cancellation scheduled"); a true flag still reads Cancellation scheduled. Authored labels or children win. Noninteractive; no cancellation action.'
15521
16010
  },
15522
- CancellationEvent: { "id": "CancellationEvent", "version": "1.1.0", "props": ["title", "timestamp", "reason", "code", "showReason"], "slots": [], "events": [], "states": ["empty", "populated"], "tokenRoles": ["surface.panel", "text.body"], "accessibility": ["Visible text exposes values without relying on color", "Named semantic container or noninteractive span"], "compatibility": "Cancellation timestamp, reason and code are visible without initiating cancellation; an absent request remains an explicit empty state." },
16011
+ CancellationEvent: { "id": "CancellationEvent", "version": "1.1.0", "props": ["title", "timestamp", "reason", "code", "showReason"], "slots": [], "events": [], "states": ["empty", "populated"], "tokenRoles": ["surface.panel", "text.body"], "accessibility": ["Visible text exposes values without relying on color", "Named semantic container or noninteractive span"], "compatibility": "Cancellation timestamp, reason and code are visible without initiating cancellation; with no request recorded the card renders nothing (s223-m01: an empty card is not content)." },
15523
16012
  CancellationForm: {
15524
16013
  id: "CancellationForm",
15525
16014
  version: COMPONENT_CONTRACT_VERSION,
@@ -15584,7 +16073,7 @@ var authoredContracts = {
15584
16073
  slots: ["default"],
15585
16074
  events: [],
15586
16075
  states: ["subtle", "solid"],
15587
- tokenRoles: ["badge.background", "badge.border", "badge.text"],
16076
+ tokenRoles: ["badge.background", "badge.text"],
15588
16077
  accessibility: ["category is visible", "mode is the status metadata", "noninteractive badge"],
15589
16078
  compatibility: "Mirrors renderClassificationBadge over Badge: label/text/category/value precedence, status/state/mode precedence and classification variant. primaryCategoryField binds category; tagPreviewField is consumed unbound because the HTML badge reads no tag preview. Noninteractive."
15590
16079
  },
@@ -15629,10 +16118,29 @@ var authoredContracts = {
15629
16118
  slots: ["default"],
15630
16119
  events: [],
15631
16120
  states: ["subtle", "solid"],
15632
- tokenRoles: ["badge.background", "badge.border", "badge.text", "badge.icon", "badge.color"],
16121
+ tokenRoles: ["badge.background", "badge.text", "badge.icon", "badge.color"],
15633
16122
  accessibility: ["Inherits Badge inline noninteractive status label semantics", "A visible text label always accompanies the decorative color marker", "Color is never the sole status signal"],
15634
16123
  compatibility: "Mirrors renderColorizedBadge over renderBadgePrimitive label/status/color aliases and default variant colorized; Badge tone and emphasis retain their shared behavior."
15635
16124
  },
16125
+ // s223-m02 (#2527 ruling 11): pick one value from a list by typing to filter it, the WAI-ARIA combobox pattern with a
16126
+ // listbox popup. One markup in React, Vue and HTML; HTML's inline script gives it the same behaviour.
16127
+ Combobox: {
16128
+ id: "Combobox",
16129
+ version: COMPONENT_CONTRACT_VERSION,
16130
+ requiredProps: ["id", "label"],
16131
+ props: ["id", "label", "options", "value", "defaultValue", "placeholder", "name", "required", "disabled", "help", "validation", "size"],
16132
+ slots: ["label", "help", "validation"],
16133
+ events: ["change", "update"],
16134
+ states: ["closed", "open", "no-matches", "selected", "disabled", "invalid"],
16135
+ tokenRoles: ["input.background", "input.border", "input.text", "input.placeholder", "input.focus", "combobox.popup", "combobox.shadow", "combobox.option", "combobox.optionActive", "combobox.check", "field.message"],
16136
+ accessibility: [
16137
+ "An input with role combobox controls a listbox popup and reports aria-expanded, aria-autocomplete list and, while an option is active, aria-activedescendant; focus stays in the input",
16138
+ "The visible label names the combobox and its listbox; help and error text describe the input",
16139
+ "The chosen option reports aria-selected and shows a check mark; a disabled option reports aria-disabled and is skipped",
16140
+ "Down opens the list and moves, Up moves, Home and End go to the ends, Enter picks the active option, Escape closes the list and then clears the field, and Tab closes the list without picking"
16141
+ ],
16142
+ compatibility: 'Typing filters the options to those whose label contains the typed text, ignoring case, and opens the list; when none matches the popup says No matches, which is not an option. value (controlled) or defaultValue (uncontrolled) names the chosen option, and the input shows its label. Picking an option (Enter on the active one, or a click) emits change and update with its value and closes the list; Escape with the list closed empties the input and, when an option was chosen, emits them with an empty value. An outside click or Tab closes the list without picking, and leaving the field restores the chosen label. size is the control height: xs 24, sm 28, md 32 (default) or lg 40, as Input, Select and Button. name submits the chosen value through a hidden input. The HTML renderer writes the same markup with the list closed and appends an inline script (data-oods-runtime="combobox") that gives it the same behaviour; without the script the input still shows the chosen label. One value only: no multiple selection, async loading, created values, grouped options or virtualization.'
16143
+ },
15636
16144
  CommunicationDetailPanel: { "id": "CommunicationDetailPanel", "version": "1.1.0", "props": ["title", "channels", "templates", "policies", "conversations"], "slots": [], "events": [], "states": ["empty", "populated"], "tokenRoles": ["surface.panel", "text.body"], "accessibility": ["Visible text exposes values without relying on color", "Named semantic container or noninteractive span"], "compatibility": "A named read-only section renders declared channel, template, delivery policy and conversation entries. A polite status announces the conversation count; it performs no delivery or network operation." },
15637
16145
  CycleProgressCard: {
15638
16146
  id: "CycleProgressCard",
@@ -15668,6 +16176,18 @@ var authoredContracts = {
15668
16176
  accessibility: ["A real heading element follows as/level with default h2", "Subtitle and metadata remain visible beside the heading"],
15669
16177
  compatibility: "Mirrors renderDetailHeader title/subtitle/metadata aliases and headingTag(level, 2); saved-schema as selects a heading element, and authored default-slot content is preserved. Saved-schema titleField and subtitleField lower to title and subtitle, and an integer headingLevel lowers to level; none of the three is a public prop."
15670
16178
  },
16179
+ Dialog: {
16180
+ id: "Dialog",
16181
+ version: COMPONENT_CONTRACT_VERSION,
16182
+ requiredProps: ["title"],
16183
+ props: ["id", "open", "modal", "title", "description", "dismissLabel", "size", "actions"],
16184
+ slots: ["default", "actions"],
16185
+ events: ["close"],
16186
+ states: ["open", "closed"],
16187
+ tokenRoles: ["dialog.background", "dialog.border", "dialog.shadow", "dialog.backdrop", "dialog.title", "dialog.description"],
16188
+ accessibility: ["A native dialog element named by its h2 title (aria-labelledby) and described by its description (aria-describedby)", "The close control is a ghost icon button named by dismissLabel (default Close)", "Escape and the close control emit close"],
16189
+ compatibility: "The consumer owns open: the close control, Escape and a browser close request emit close, and the dialog stays open until open becomes false. modal (default true) opens it in the browser with showModal(), over a backdrop with the page behind it inert and not scrolling (the page's own overflow and padding come back exactly when it closes, by any route, or unmounts), and a click on the backdrop emits close; modal false shows it in place, which a gallery or a static page uses. Server-rendered and static HTML carry the open attribute while open, and on a static page an inline runtime script makes the close control close it. size sets the largest inline size: sm 400px, md 512px or lg 640px. The default slot is the body; the actions slot (or the actions prop) is the right-aligned footer, and the HTML renderer draws a string or { label, intent } list there as buttons."
16190
+ },
15671
16191
  FilterPanel: {
15672
16192
  id: "FilterPanel",
15673
16193
  version: COMPONENT_CONTRACT_VERSION,
@@ -15778,7 +16298,7 @@ var authoredContracts = {
15778
16298
  slots: ["default"],
15779
16299
  events: [],
15780
16300
  states: ["subtle", "solid"],
15781
- tokenRoles: ["badge.background", "badge.border", "badge.text"],
16301
+ tokenRoles: ["badge.background", "badge.text"],
15782
16302
  accessibility: ["Inherits Badge inline noninteractive status label semantics", "The resolved label is always visible text"],
15783
16303
  compatibility: "Mirrors renderMessageStatusBadge over renderBadgePrimitive with default variant message and default label Message: the label reads label/text/status/delivery/value in that order, the status reads status/state/delivery/value, and both are exposed as data-badge-status and data-badge-variant on the governed Badge substrate; tone and emphasis retain their shared Badge behaviour. The saved-schema directive statusesField is consumed and left unbound: the HTML renderer reads no statuses collection."
15784
16304
  },
@@ -15789,20 +16309,20 @@ var authoredContracts = {
15789
16309
  slots: ["default"],
15790
16310
  events: [],
15791
16311
  states: ["subtle", "solid"],
15792
- tokenRoles: ["badge.background", "badge.border", "badge.text"],
16312
+ tokenRoles: ["badge.background", "badge.text"],
15793
16313
  accessibility: ["owner identity is visible", "owner is the badge variant"],
15794
16314
  compatibility: "Mirrors renderOwnerBadge over renderBadgePrimitive: label/text/owner/ownerType/value precedence, status/state metadata, owner variant and Owner fallback. ownerIdField lowers to the unchanged owner and a display-only label from the declared reference label or honest unavailability; ownerTypeField lowers to ownerType. The badge is noninteractive; no ownership change is implied."
15795
16315
  },
15796
16316
  OwnershipMeta: {
15797
16317
  id: "OwnershipMeta",
15798
16318
  version: COMPONENT_CONTRACT_VERSION,
15799
- props: ["title", "label", "heading", "name", "ownerType", "owner_type", "role", "ownershipRole"],
16319
+ props: ["title", "label", "heading", "name", "ownerType", "owner_type", "role", "ownershipRole", "ownerLabel"],
15800
16320
  slots: ["default"],
15801
16321
  events: [],
15802
16322
  states: ["populated", "empty"],
15803
16323
  tokenRoles: ["meta.text", "meta.label"],
15804
16324
  accessibility: ["metadata has inline term labels", "role is visible text not an ARIA role"],
15805
- compatibility: "Mirrors renderOwnershipMeta over renderMetaInline: title/label/heading/name (default Ownership), Owner Type ownerType/owner_type, Role role/ownershipRole. Each value is an inline span with a strong term and separator; children replace the entire body including its title. ownerTypeField and roleField lower to their consumed keys. role is displayed data, never an ARIA role. Noninteractive."
16325
+ compatibility: 'Mirrors renderOwnershipMeta over renderMetaInline: title/label/heading/name (default Ownership), Owner Type ownerType/owner_type, Role role/ownershipRole. Each value is an inline span with a strong term and separator; children replace the entire body including its title. ownerTypeField and roleField lower to their consumed keys. s223-m01: given ownerLabel (ownerIdField binds the display label of the owner reference) the body is one phrase, "Owned by <label> \xB7 <type> \xB7 <role>", or "<Type>-owned" when the reference has no name. role is displayed data, never an ARIA role. Noninteractive.'
15806
16326
  },
15807
16327
  OwnershipSummary: {
15808
16328
  id: "OwnershipSummary",
@@ -15896,7 +16416,7 @@ var authoredContracts = {
15896
16416
  slots: ["default"],
15897
16417
  events: [],
15898
16418
  states: ["subtle", "solid"],
15899
- tokenRoles: ["badge.background", "badge.border", "badge.text"],
16419
+ tokenRoles: ["badge.background", "badge.text"],
15900
16420
  accessibility: ["Inherits Badge inline noninteractive status label semantics", "The resolved label is always visible text"],
15901
16421
  compatibility: "Mirrors renderPreferenceSummaryBadge over renderBadgePrimitive with default variant preference and default label Preferences: the label reads label/text/namespace/value in that order, the status reads status/state/version, and both are exposed as data-badge-status and data-badge-variant on the governed Badge substrate; tone and emphasis retain their shared Badge behaviour. versionField lowers to version; namespacesField is consumed and left unbound because the renderer reads a scalar namespace alias while the field is the preference_namespaces array."
15902
16422
  },
@@ -15930,7 +16450,7 @@ var authoredContracts = {
15930
16450
  slots: ["default"],
15931
16451
  events: [],
15932
16452
  states: ["priced", "missing-price"],
15933
- tokenRoles: ["badge.background", "badge.border", "badge.text"],
16453
+ tokenRoles: ["badge.background", "badge.text"],
15934
16454
  accessibility: ["Formatted amount and currency remain visible text"],
15935
16455
  compatibility: "Currency is formatted content; the emitted badge variant remains price."
15936
16456
  },
@@ -15998,7 +16518,7 @@ var authoredContracts = {
15998
16518
  slots: ["default"],
15999
16519
  events: [],
16000
16520
  states: ["populated", "fallback"],
16001
- tokenRoles: ["badge.background", "badge.border", "badge.text"],
16521
+ tokenRoles: ["badge.background", "badge.text"],
16002
16522
  accessibility: ["Each role is visible text inside one inline noninteractive group", "An empty list falls back to a visible label"],
16003
16523
  compatibility: "Mirrors renderRoleBadgeList: roles, then badges, roleLabels or value (records read label/name/role/value/id, scalars render as text) render one data-role-badge item each inside a span carrying data-badge-variant from variant, then tone, then roles; with no items the label, then text, then Roles is the visible fallback; authored children replace the list. rolesField lowers to roles and fallbackRoleParameter is consumed."
16004
16524
  },
@@ -16025,6 +16545,19 @@ var authoredContracts = {
16025
16545
  accessibility: ["Native search input semantics", "Clear control has an accessible label"],
16026
16546
  compatibility: "Debounce and minimum-query settings preserve value updates across both targets."
16027
16547
  },
16548
+ // s223-m02 (#2527 ruling 10): one choice from two to five options, shown as joined segments.
16549
+ SegmentedControl: {
16550
+ id: "SegmentedControl",
16551
+ version: COMPONENT_CONTRACT_VERSION,
16552
+ requiredProps: ["id", "label"],
16553
+ props: ["id", "label", "options", "value", "defaultValue", "name", "size", "disabled"],
16554
+ slots: ["label"],
16555
+ events: ["change", "update"],
16556
+ states: ["selected", "unselected", "disabled"],
16557
+ tokenRoles: ["segmented.track", "segmented.selected", "segmented.ring", "segmented.text", "segmented.focus"],
16558
+ accessibility: ["Native radio inputs in a radiogroup named by its visible label through aria-labelledby", "Each option is a radio inside its own label, so the option text names it", "The browser gives the radio-group keyboard: the arrows move and check, and Tab enters at the checked option"],
16559
+ compatibility: "One choice from two to five options, each { value, label, disabled }, shown as joined segments in sizes xs, sm, md and lg: 24, 28, 32 and 40px, the button, input and select heights at each size. value (controlled) or defaultValue (uncontrolled) checks one option; with neither, none is checked and Tab enters at the first. name groups the radios and defaults to the id; disabled disables every option. Each change emits change and update with the chosen value. React, Vue and the HTML renderer write one markup, and the HTML needs no script: the native radios carry the keyboard. Icon-only segments and more than one selection are not part of it."
16560
+ },
16028
16561
  Select: {
16029
16562
  id: "Select",
16030
16563
  version: COMPONENT_CONTRACT_VERSION_1_1,
@@ -16050,7 +16583,7 @@ var authoredContracts = {
16050
16583
  accessibility: ["Does not alter child semantics"],
16051
16584
  compatibility: "Maps saved-schema stack and inline modes to one flex primitive; patternComponent and fields are executed composition directives. Trait recipe directives authored on pattern-group Stacks are consumed by codegen: channelsField, templatesField, policiesField, conversationsField, labelField and showActor are left unbound (a layout container reads no data and the lowered StatusTimeline never governed them), while historyField and showReason travel with the lowering to the StatusTimeline whose contract governs them. Two more authoring leftovers are consumed unbound: the form composer leaves as on a Stack when it expands a heading title slot into several components, and a pattern-group Stack restates its first fields entry as a generic field; a layout container renders neither."
16052
16585
  },
16053
- StateTransitionEvent: { "id": "StateTransitionEvent", "version": "1.1.0", "props": ["title", "history", "status", "showActor", "showReason"], "slots": [], "events": [], "states": ["empty", "populated"], "tokenRoles": ["surface.panel", "text.body"], "accessibility": ["Visible text exposes values without relying on color", "Named semantic container or noninteractive span"], "compatibility": "Declared history order, from/to states, actor and reason remain visible; showActor/showReason suppress their respective details. No history is invented." },
16586
+ StateTransitionEvent: { "id": "StateTransitionEvent", "version": "1.1.0", "props": ["title", "history", "status", "showActor", "showReason"], "slots": [], "events": [], "states": ["empty", "populated"], "tokenRoles": ["surface.panel", "text.body"], "accessibility": ["Visible text exposes values without relying on color", "Named semantic container or noninteractive span"], "compatibility": "Declared history order, from/to states, actor and reason remain visible; showActor/showReason suppress their respective details. No history is invented; with no history the card renders nothing (s223-m01)." },
16054
16587
  StatusBadge: {
16055
16588
  id: "StatusBadge",
16056
16589
  version: COMPONENT_CONTRACT_VERSION,
@@ -16071,7 +16604,7 @@ var authoredContracts = {
16071
16604
  slots: ["default"],
16072
16605
  events: [],
16073
16606
  states: ["subtle", "solid"],
16074
- tokenRoles: ["badge.background", "badge.border", "badge.text", "badge.icon"],
16607
+ tokenRoles: ["badge.background", "badge.text", "badge.icon"],
16075
16608
  accessibility: ["Status label is visible", "Color is not the sole status signal"],
16076
16609
  compatibility: "Both targets share the lifecycle status-to-tone table."
16077
16610
  },
@@ -16120,10 +16653,22 @@ var authoredContracts = {
16120
16653
  accessibility: ["Ordered status events retain chronological semantics", "Current state is named"],
16121
16654
  compatibility: "Configures the shared timeline primitive with status-transition semantics."
16122
16655
  },
16656
+ Switch: {
16657
+ id: "Switch",
16658
+ version: COMPONENT_CONTRACT_VERSION,
16659
+ requiredProps: ["id", "label"],
16660
+ props: ["id", "label", "checked", "defaultChecked", "required", "disabled", "help", "validation", "size"],
16661
+ slots: ["label", "help", "validation"],
16662
+ events: ["change", "update"],
16663
+ states: ["off", "on", "disabled", "invalid"],
16664
+ tokenRoles: ["switch.track", "switch.thumb", "switch.border", "switch.focus", "field.message"],
16665
+ accessibility: ["A native button with role switch reports its state in aria-checked", "The visible label names the switch; help and error text describe it", "Space and Enter toggle it"],
16666
+ compatibility: `Shares the Checkbox field API for a setting that applies at once: checked (controlled) or defaultChecked (uncontrolled), required, disabled, help and validation, in sizes sm and md. Each toggle emits change and update with the next checked value. The HTML renderer paints the same markup and an inline runtime script turns it over on a static page (aria-checked, from a click, Space or Enter); bound to a form field it also carries the field's value, "true" or "false", in a hidden input the script keeps. Bound to a record field in a generated form, it reads and writes the field's boolean as Checkbox does.`
16667
+ },
16123
16668
  Table: {
16124
16669
  id: "Table",
16125
16670
  version: COMPONENT_CONTRACT_VERSION,
16126
- props: ["caption", "columns", "rows", "density", "selectable"],
16671
+ props: ["caption", "showCaption", "columns", "rows", "density", "selectable"],
16127
16672
  slots: ["caption", "head", "body", "row", "headerCell", "cell"],
16128
16673
  events: ["rowActivate"],
16129
16674
  states: ["default", "compact", "selectable"],
@@ -16171,7 +16716,7 @@ var authoredContracts = {
16171
16716
  slots: ["default"],
16172
16717
  events: [],
16173
16718
  states: ["populated", "overflow", "empty"],
16174
- tokenRoles: ["badge.background", "badge.border", "badge.text"],
16719
+ tokenRoles: ["badge.background", "badge.text"],
16175
16720
  accessibility: ["Each visible tag is text inside one noninteractive group", "The overflow label is visible text"],
16176
16721
  compatibility: "Mirrors renderTagPills with data-summary-type=tag-pills: tags, then value (records read label/name/role/value/id, scalars render as text) render one data-tag-pill each up to maxVisible (a number or numeric string; default every tag); when tags remain, overflowLabel replaces {{ tag_count }} with the total tag count exactly as the HTML renderer does, or +N with the hidden count without a template; authored children replace the pills. The generic field lowers to tags; the saved-schema label is consumed and left unbound because the renderer never reads it."
16177
16722
  },
@@ -16225,35 +16770,35 @@ var authoredContracts = {
16225
16770
  VizAreaPreview: {
16226
16771
  id: "VizAreaPreview",
16227
16772
  version: COMPONENT_CONTRACT_VERSION_1_1,
16228
- props: ["svg", "svgNarrow", "svgWide", "title", "description", "width", "height"],
16773
+ props: ["svg", "svgNarrow", "svgWide", "svgDark", "svgDarkNarrow", "svgDarkWide", "svgHc", "svgHcNarrow", "svgHcWide", "title", "description", "width", "height"],
16229
16774
  slots: ["default"],
16230
16775
  events: [],
16231
16776
  states: ["placeholder", "content"],
16232
16777
  tokenRoles: ["preview.frame", "preview.placeholder"],
16233
16778
  accessibility: ["The empty frame has a visible text placeholder", "Authored default-slot content preserves its own semantics", "Static SVG renders in a labelled figure with role img and preserves SVG IDs and ARIA", "A title the SVG does not paint is the figure heading (figcaption), so a placed chart names itself outside its pixels"],
16234
- compatibility: "Mirrors renderVizAreaPreview through renderVizPreview with data-viz-preview-type=area and default dimensions 640x360; the placeholder appears only without authored content. With svg, renders a labelled figure preserving static SVG IDs and ARIA; without svg, the placeholder remains unchanged. svgNarrow is the same chart at the narrow size: the figure shows it instead of svg when its own inline size is at most 600px (a container query), so axis text keeps its size on a phone column. svgWide is the same chart at the wide size: the figure shows it instead of svg when its own inline size is at least 900px, and a figure that carries it fills its column, so a detail chart spans a desktop screen at design scale."
16779
+ compatibility: "Mirrors renderVizAreaPreview through renderVizPreview with data-viz-preview-type=area and default dimensions 640x360; the placeholder appears only without authored content. With svg, renders a labelled figure preserving static SVG IDs and ARIA; without svg, the placeholder remains unchanged. svgNarrow is the same chart at the narrow size: the figure shows it instead of svg when its own inline size is at most 600px (a container query), so axis text keeps its size on a phone column. svgWide is the same chart at the wide size: the figure shows it instead of svg when its own inline size is at least 900px, and a figure that carries it fills its column, so a detail chart spans a desktop screen at design scale. svgDark, svgDarkNarrow and svgDarkWide, and svgHc, svgHcNarrow and svgHcWide, are the same chart drawn in the dark and high-contrast themes: with any of them svg, svgNarrow and svgWide are the light renders, the renders of each theme sit in a data-viz-theme wrapper, and the figure shows the one matching the nearest data-theme."
16235
16780
  },
16236
16781
  VizAxisControls: { "id": "VizAxisControls", "version": "1.1.0", "props": ["title", "value", "channel", "disabled"], "slots": [], "events": ["change"], "states": ["bound", "editing", "invalid", "disabled"], "tokenRoles": ["input.background", "input.border", "input.text", "input.focus", "field.message"], "accessibility": ["Native labelled controls expose focus and invalid-edit feedback; successful edits emit a typed viz.render input fragment."], "compatibility": "Axis: controls the public Cartesian viz.render fragment, not the legacy HTML placeholder's unimplemented styling fields. The consumer supplies rows and calls the renderer. Opacity uses six bounded presets; fields/colors/scale/chart type preserve sibling input bindings. No consumer action is executed by this component." },
16237
16782
  VizAxisSummary: { "id": "VizAxisSummary", "version": "1.1.0", "props": ["title", "value", "channel"], "slots": [], "events": [], "states": ["unbound", "bound"], "tokenRoles": ["surface.panel", "text.body"], "accessibility": ["Visible text renders the authored input fragment without implying an executed chart."], "compatibility": "Read-only recipe renders the same Cartesian viz.render input fragment. Missing bindings remain disclosed; renderer defaults are not fabricated as authored values." },
16238
16783
  VizColorControls: { "id": "VizColorControls", "version": "1.1.0", "props": ["title", "value", "channel", "disabled"], "slots": [], "events": ["change"], "states": ["bound", "editing", "invalid", "disabled"], "tokenRoles": ["input.background", "input.border", "input.text", "input.focus", "field.message"], "accessibility": ["Native labelled controls expose focus and invalid-edit feedback; successful edits emit a typed viz.render input fragment."], "compatibility": "Color encoding: controls the public Cartesian viz.render fragment, not the legacy HTML placeholder's unimplemented styling fields. The consumer supplies rows and calls the renderer. Opacity uses six bounded presets; fields/colors/scale/chart type preserve sibling input bindings. No consumer action is executed by this component." },
16239
16784
  VizColorLegendConfig: { "id": "VizColorLegendConfig", "version": "1.1.0", "props": ["title", "value", "channel", "disabled"], "slots": [], "events": ["change"], "states": ["bound", "editing", "invalid", "disabled"], "tokenRoles": ["input.background", "input.border", "input.text", "input.focus", "field.message"], "accessibility": ["Native labelled controls expose focus and invalid-edit feedback; successful edits emit a typed viz.render input fragment."], "compatibility": "Color legend: controls the public Cartesian viz.render fragment, not the legacy HTML placeholder's unimplemented styling fields. The consumer supplies rows and calls the renderer. Opacity uses six bounded presets; fields/colors/scale/chart type preserve sibling input bindings. No consumer action is executed by this component." },
16240
16785
  VizEncodingBadge: { "id": "VizEncodingBadge", "version": "1.1.0", "props": ["title", "value", "channel"], "slots": [], "events": [], "states": ["unbound", "bound"], "tokenRoles": ["surface.panel", "text.body"], "accessibility": ["Visible text renders the authored input fragment without implying an executed chart."], "compatibility": "Read-only recipe renders the same Cartesian viz.render input fragment. Missing bindings remain disclosed; renderer defaults are not fabricated as authored values." },
16241
- VizGraphPreview: { "id": "VizGraphPreview", "version": "1.1.0", "props": ["svg", "svgNarrow", "svgWide", "title", "description", "width", "height"], "slots": ["default"], "events": [], "states": ["unbound", "rendered"], "tokenRoles": ["surface.panel", "text.body"], "accessibility": ["Static shared-renderer SVG is preserved inside a named image figure; absence is explicitly disclosed."], "compatibility": "Recipe over VizAreaPreview's static SVG mechanism. VizGraphPreview uses the existing force_graph renderer; this is no new chart family. No pixels are invented when svg is absent." },
16786
+ VizGraphPreview: { "id": "VizGraphPreview", "version": "1.1.0", "props": ["svg", "svgNarrow", "svgWide", "svgDark", "svgDarkNarrow", "svgDarkWide", "svgHc", "svgHcNarrow", "svgHcWide", "title", "description", "width", "height"], "slots": ["default"], "events": [], "states": ["unbound", "rendered"], "tokenRoles": ["surface.panel", "text.body"], "accessibility": ["Static shared-renderer SVG is preserved inside a named image figure; absence is explicitly disclosed."], "compatibility": "Recipe over VizAreaPreview's static SVG mechanism. VizGraphPreview uses the existing force_graph renderer; this is no new chart family. No pixels are invented when svg is absent." },
16242
16787
  VizHeatmapControls: { "id": "VizHeatmapControls", "version": "1.1.0", "props": ["title", "value", "channel", "disabled"], "slots": [], "events": ["change"], "states": ["bound", "editing", "invalid", "disabled"], "tokenRoles": ["input.background", "input.border", "input.text", "input.focus", "field.message"], "accessibility": ["Native labelled controls expose focus and invalid-edit feedback; successful edits emit a typed viz.render input fragment."], "compatibility": "Heatmap: controls the public Cartesian viz.render fragment, not the legacy HTML placeholder's unimplemented styling fields. The consumer supplies rows and calls the renderer. Opacity uses six bounded presets; fields/colors/scale/chart type preserve sibling input bindings. No consumer action is executed by this component." },
16243
- VizHeatmapPreview: { "id": "VizHeatmapPreview", "version": "1.1.0", "props": ["svg", "svgNarrow", "svgWide", "title", "description", "width", "height"], "slots": ["default"], "events": [], "states": ["unbound", "rendered"], "tokenRoles": ["surface.panel", "text.body"], "accessibility": ["Static shared-renderer SVG is preserved inside a named image figure; absence is explicitly disclosed."], "compatibility": "Recipe over VizAreaPreview's static SVG mechanism. VizHeatmapPreview uses the existing heatmap renderer; this is no new chart family. No pixels are invented when svg is absent." },
16788
+ VizHeatmapPreview: { "id": "VizHeatmapPreview", "version": "1.1.0", "props": ["svg", "svgNarrow", "svgWide", "svgDark", "svgDarkNarrow", "svgDarkWide", "svgHc", "svgHcNarrow", "svgHcWide", "title", "description", "width", "height"], "slots": ["default"], "events": [], "states": ["unbound", "rendered"], "tokenRoles": ["surface.panel", "text.body"], "accessibility": ["Static shared-renderer SVG is preserved inside a named image figure; absence is explicitly disclosed."], "compatibility": "Recipe over VizAreaPreview's static SVG mechanism. VizHeatmapPreview uses the existing heatmap renderer; this is no new chart family. No pixels are invented when svg is absent." },
16244
16789
  VizLineControls: { "id": "VizLineControls", "version": "1.1.0", "props": ["title", "value", "channel", "disabled"], "slots": [], "events": ["change"], "states": ["bound", "editing", "invalid", "disabled"], "tokenRoles": ["input.background", "input.border", "input.text", "input.focus", "field.message"], "accessibility": ["Native labelled controls expose focus and invalid-edit feedback; successful edits emit a typed viz.render input fragment."], "compatibility": "Line chart: controls the public Cartesian viz.render fragment, not the legacy HTML placeholder's unimplemented styling fields. The consumer supplies rows and calls the renderer. Opacity uses six bounded presets; fields/colors/scale/chart type preserve sibling input bindings. No consumer action is executed by this component." },
16245
- VizLinePreview: { "id": "VizLinePreview", "version": "1.1.0", "props": ["svg", "svgNarrow", "svgWide", "title", "description", "width", "height"], "slots": ["default"], "events": [], "states": ["unbound", "rendered"], "tokenRoles": ["surface.panel", "text.body"], "accessibility": ["Static shared-renderer SVG is preserved inside a named image figure; absence is explicitly disclosed."], "compatibility": "Recipe over VizAreaPreview's static SVG mechanism. VizLinePreview uses the existing line renderer; this is no new chart family. No pixels are invented when svg is absent." },
16790
+ VizLinePreview: { "id": "VizLinePreview", "version": "1.1.0", "props": ["svg", "svgNarrow", "svgWide", "svgDark", "svgDarkNarrow", "svgDarkWide", "svgHc", "svgHcNarrow", "svgHcWide", "title", "description", "width", "height"], "slots": ["default"], "events": [], "states": ["unbound", "rendered"], "tokenRoles": ["surface.panel", "text.body"], "accessibility": ["Static shared-renderer SVG is preserved inside a named image figure; absence is explicitly disclosed."], "compatibility": "Recipe over VizAreaPreview's static SVG mechanism. VizLinePreview uses the existing line renderer; this is no new chart family. No pixels are invented when svg is absent." },
16246
16791
  VizMarkControls: { "id": "VizMarkControls", "version": "1.1.0", "props": ["title", "value", "channel", "disabled"], "slots": [], "events": ["change"], "states": ["bound", "editing", "invalid", "disabled"], "tokenRoles": ["input.background", "input.border", "input.text", "input.focus", "field.message"], "accessibility": ["Native labelled controls expose focus and invalid-edit feedback; successful edits emit a typed viz.render input fragment."], "compatibility": "Chart mark: controls the public Cartesian viz.render fragment, not the legacy HTML placeholder's unimplemented styling fields. The consumer supplies rows and calls the renderer. Opacity uses six bounded presets; fields/colors/scale/chart type preserve sibling input bindings. No consumer action is executed by this component." },
16247
- VizMarkPreview: { "id": "VizMarkPreview", "version": "1.1.0", "props": ["svg", "svgNarrow", "svgWide", "title", "description", "width", "height"], "slots": ["default"], "events": [], "states": ["unbound", "rendered"], "tokenRoles": ["surface.panel", "text.body"], "accessibility": ["Static shared-renderer SVG is preserved inside a named image figure; absence is explicitly disclosed."], "compatibility": "Recipe over VizAreaPreview's static SVG mechanism. VizMarkPreview uses the existing bar renderer; this is no new chart family. No pixels are invented when svg is absent." },
16792
+ VizMarkPreview: { "id": "VizMarkPreview", "version": "1.1.0", "props": ["svg", "svgNarrow", "svgWide", "svgDark", "svgDarkNarrow", "svgDarkWide", "svgHc", "svgHcNarrow", "svgHcWide", "title", "description", "width", "height"], "slots": ["default"], "events": [], "states": ["unbound", "rendered"], "tokenRoles": ["surface.panel", "text.body"], "accessibility": ["Static shared-renderer SVG is preserved inside a named image figure; absence is explicitly disclosed."], "compatibility": "Recipe over VizAreaPreview's static SVG mechanism. VizMarkPreview uses the existing bar renderer; this is no new chart family. No pixels are invented when svg is absent." },
16248
16793
  VizOpacityControls: { "id": "VizOpacityControls", "version": "1.1.0", "props": ["title", "value", "channel", "disabled"], "slots": [], "events": ["change"], "states": ["bound", "editing", "invalid", "disabled"], "tokenRoles": ["input.background", "input.border", "input.text", "input.focus", "field.message"], "accessibility": ["Native labelled controls expose focus and invalid-edit feedback; successful edits emit a typed viz.render input fragment."], "compatibility": "Mark opacity: controls the public Cartesian viz.render fragment, not the legacy HTML placeholder's unimplemented styling fields. The consumer supplies rows and calls the renderer. Opacity uses six bounded presets; fields/colors/scale/chart type preserve sibling input bindings. No consumer action is executed by this component." },
16249
16794
  VizOpacitySummary: { "id": "VizOpacitySummary", "version": "1.1.0", "props": ["title", "value", "channel"], "slots": [], "events": [], "states": ["unbound", "bound"], "tokenRoles": ["surface.panel", "text.body"], "accessibility": ["Visible text renders the authored input fragment without implying an executed chart."], "compatibility": "Read-only recipe renders the same Cartesian viz.render input fragment. Missing bindings remain disclosed; renderer defaults are not fabricated as authored values." },
16250
16795
  VizPointControls: { "id": "VizPointControls", "version": "1.1.0", "props": ["title", "value", "channel", "disabled"], "slots": [], "events": ["change"], "states": ["bound", "editing", "invalid", "disabled"], "tokenRoles": ["input.background", "input.border", "input.text", "input.focus", "field.message"], "accessibility": ["Native labelled controls expose focus and invalid-edit feedback; successful edits emit a typed viz.render input fragment."], "compatibility": "Point chart: controls the public Cartesian viz.render fragment, not the legacy HTML placeholder's unimplemented styling fields. The consumer supplies rows and calls the renderer. Opacity uses six bounded presets; fields/colors/scale/chart type preserve sibling input bindings. No consumer action is executed by this component." },
16251
- VizPointPreview: { "id": "VizPointPreview", "version": "1.1.0", "props": ["svg", "svgNarrow", "svgWide", "title", "description", "width", "height"], "slots": ["default"], "events": [], "states": ["unbound", "rendered"], "tokenRoles": ["surface.panel", "text.body"], "accessibility": ["Static shared-renderer SVG is preserved inside a named image figure; absence is explicitly disclosed."], "compatibility": "Recipe over VizAreaPreview's static SVG mechanism. VizPointPreview uses the existing scatter renderer; this is no new chart family. No pixels are invented when svg is absent." },
16796
+ VizPointPreview: { "id": "VizPointPreview", "version": "1.1.0", "props": ["svg", "svgNarrow", "svgWide", "svgDark", "svgDarkNarrow", "svgDarkWide", "svgHc", "svgHcNarrow", "svgHcWide", "title", "description", "width", "height"], "slots": ["default"], "events": [], "states": ["unbound", "rendered"], "tokenRoles": ["surface.panel", "text.body"], "accessibility": ["Static shared-renderer SVG is preserved inside a named image figure; absence is explicitly disclosed."], "compatibility": "Recipe over VizAreaPreview's static SVG mechanism. VizPointPreview uses the existing scatter renderer; this is no new chart family. No pixels are invented when svg is absent." },
16252
16797
  VizRoleBadge: { "id": "VizRoleBadge", "version": "1.1.0", "props": ["title", "value", "channel"], "slots": [], "events": [], "states": ["unbound", "bound"], "tokenRoles": ["surface.panel", "text.body"], "accessibility": ["Visible text renders the authored input fragment without implying an executed chart."], "compatibility": "Read-only recipe renders the same Cartesian viz.render input fragment. Missing bindings remain disclosed; renderer defaults are not fabricated as authored values." },
16253
16798
  VizScaleControls: { "id": "VizScaleControls", "version": "1.1.0", "props": ["title", "value", "channel", "disabled"], "slots": [], "events": ["change"], "states": ["bound", "editing", "invalid", "disabled"], "tokenRoles": ["input.background", "input.border", "input.text", "input.focus", "field.message"], "accessibility": ["Native labelled controls expose focus and invalid-edit feedback; successful edits emit a typed viz.render input fragment."], "compatibility": "Scale: controls the public Cartesian viz.render fragment, not the legacy HTML placeholder's unimplemented styling fields. The consumer supplies rows and calls the renderer. Opacity uses six bounded presets; fields/colors/scale/chart type preserve sibling input bindings. No consumer action is executed by this component." },
16254
16799
  VizScaleSummary: { "id": "VizScaleSummary", "version": "1.1.0", "props": ["title", "value", "channel"], "slots": [], "events": [], "states": ["unbound", "bound"], "tokenRoles": ["surface.panel", "text.body"], "accessibility": ["Visible text renders the authored input fragment without implying an executed chart."], "compatibility": "Read-only recipe renders the same Cartesian viz.render input fragment. Missing bindings remain disclosed; renderer defaults are not fabricated as authored values." },
16255
16800
  VizScatterControls: { "id": "VizScatterControls", "version": "1.1.0", "props": ["title", "value", "channel", "disabled"], "slots": [], "events": ["change"], "states": ["bound", "editing", "invalid", "disabled"], "tokenRoles": ["input.background", "input.border", "input.text", "input.focus", "field.message"], "accessibility": ["Native labelled controls expose focus and invalid-edit feedback; successful edits emit a typed viz.render input fragment."], "compatibility": "Scatter chart: controls the public Cartesian viz.render fragment, not the legacy HTML placeholder's unimplemented styling fields. The consumer supplies rows and calls the renderer. Opacity uses six bounded presets; fields/colors/scale/chart type preserve sibling input bindings. No consumer action is executed by this component." },
16256
- VizScatterPreview: { "id": "VizScatterPreview", "version": "1.1.0", "props": ["svg", "svgNarrow", "svgWide", "title", "description", "width", "height"], "slots": ["default"], "events": [], "states": ["unbound", "rendered"], "tokenRoles": ["surface.panel", "text.body"], "accessibility": ["Static shared-renderer SVG is preserved inside a named image figure; absence is explicitly disclosed."], "compatibility": "Recipe over VizAreaPreview's static SVG mechanism. VizScatterPreview uses the existing scatter renderer; this is no new chart family. No pixels are invented when svg is absent." },
16801
+ VizScatterPreview: { "id": "VizScatterPreview", "version": "1.1.0", "props": ["svg", "svgNarrow", "svgWide", "svgDark", "svgDarkNarrow", "svgDarkWide", "svgHc", "svgHcNarrow", "svgHcWide", "title", "description", "width", "height"], "slots": ["default"], "events": [], "states": ["unbound", "rendered"], "tokenRoles": ["surface.panel", "text.body"], "accessibility": ["Static shared-renderer SVG is preserved inside a named image figure; absence is explicitly disclosed."], "compatibility": "Recipe over VizAreaPreview's static SVG mechanism. VizScatterPreview uses the existing scatter renderer; this is no new chart family. No pixels are invented when svg is absent." },
16257
16802
  VizShapeControls: { "id": "VizShapeControls", "version": "1.1.0", "props": ["title", "value", "channel", "disabled"], "slots": [], "events": ["change"], "states": ["bound", "editing", "invalid", "disabled"], "tokenRoles": ["input.background", "input.border", "input.text", "input.focus", "field.message"], "accessibility": ["Native labelled controls expose focus and invalid-edit feedback; successful edits emit a typed viz.render input fragment."], "compatibility": "Shape encoding: controls the public Cartesian viz.render fragment, not the legacy HTML placeholder's unimplemented styling fields. The consumer supplies rows and calls the renderer. Opacity uses six bounded presets; fields/colors/scale/chart type preserve sibling input bindings. No consumer action is executed by this component." },
16258
16803
  VizShapeLegend: { "id": "VizShapeLegend", "version": "1.1.0", "props": ["title", "value", "channel", "disabled"], "slots": [], "events": ["change"], "states": ["bound", "editing", "invalid", "disabled"], "tokenRoles": ["input.background", "input.border", "input.text", "input.focus", "field.message"], "accessibility": ["Native labelled controls expose focus and invalid-edit feedback; successful edits emit a typed viz.render input fragment."], "compatibility": "Shape legend: controls the public Cartesian viz.render fragment, not the legacy HTML placeholder's unimplemented styling fields. The consumer supplies rows and calls the renderer. Opacity uses six bounded presets; fields/colors/scale/chart type preserve sibling input bindings. No consumer action is executed by this component." },
16259
16804
  VizSizeControls: { "id": "VizSizeControls", "version": "1.1.0", "props": ["title", "value", "channel", "disabled"], "slots": [], "events": ["change"], "states": ["bound", "editing", "invalid", "disabled"], "tokenRoles": ["input.background", "input.border", "input.text", "input.focus", "field.message"], "accessibility": ["Native labelled controls expose focus and invalid-edit feedback; successful edits emit a typed viz.render input fragment."], "compatibility": "Size encoding: controls the public Cartesian viz.render fragment, not the legacy HTML placeholder's unimplemented styling fields. The consumer supplies rows and calls the renderer. Opacity uses six bounded presets; fields/colors/scale/chart type preserve sibling input bindings. No consumer action is executed by this component." },
@@ -16337,7 +16882,7 @@ var viz_preview_samples_v1_default = {
16337
16882
  input: {
16338
16883
  name: "Example connected relationships",
16339
16884
  description: "Synthetic neighborhood edges illustrating relationships that share an endpoint; these are examples, not live graph data."},
16340
- svg: '<svg width="360" height="200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" baseProfile="full" viewBox="0 0 360 200" role="img" aria-label="Example connected relationships" aria-description="Synthetic neighborhood edges illustrating relationships that share an endpoint; these are examples, not live graph data."><title>Example connected relationships</title><desc>Synthetic neighborhood edges illustrating relationships that share an endpoint; these are examples, not live graph data.</desc>\n<rect width="360" height="200" x="0" y="0" fill="#F9FAFC"></rect>\n<path d="M208.4 34Q249.7 88.3 221.2 150.3" fill="none" pointer-events="visible" stroke="rgb(88, 9, 24)" stroke-opacity="0.5" ecmeta_series_index="0" ecmeta_data_index="0" ecmeta_ssr_type="chart" class="oods-zr-0"></path>\n<path d="M221.2 150.3Q155.5 166.3 110.4 115.8" fill="none" pointer-events="visible" stroke="rgb(88, 9, 24)" stroke-opacity="0.5" ecmeta_series_index="0" ecmeta_data_index="1" ecmeta_ssr_type="chart" class="oods-zr-0"></path>\n<path d="M110.4 115.8Q176.1 99.8 221.2 150.3" fill="none" pointer-events="visible" stroke="rgb(88, 9, 24)" stroke-opacity="0.5" ecmeta_series_index="0" ecmeta_data_index="2" ecmeta_ssr_type="chart" class="oods-zr-0"></path>\n<path d="M1 0A1 1 0 1 1 1 -0.1A1 1 0 0 1 1 0" transform="matrix(5,0,0,5,110.3635,115.779)" fill="rgb(88, 9, 24)" ecmeta_series_index="0" ecmeta_data_index="0" ecmeta_ssr_type="chart" class="oods-zr-1"></path>\n<path d="M1 0A1 1 0 1 1 1 -0.1A1 1 0 0 1 1 0" transform="matrix(5,0,0,5,221.2255,150.2583)" fill="rgb(88, 9, 24)" ecmeta_series_index="0" ecmeta_data_index="1" ecmeta_ssr_type="chart" class="oods-zr-1"></path>\n<path d="M1 0A1 1 0 1 1 1 -0.1A1 1 0 0 1 1 0" transform="matrix(5,0,0,5,208.3976,33.9582)" fill="rgb(88, 9, 24)" ecmeta_series_index="0" ecmeta_data_index="2" ecmeta_ssr_type="chart" class="oods-zr-1"></path>\n<text dominant-baseline="central" text-anchor="start" style="font-size:12px;font-family:sans-serif;" transform="translate(120.3635 115.779)" fill="#1A1D23">example-document</text>\n<text dominant-baseline="central" text-anchor="start" style="font-size:12px;font-family:sans-serif;" transform="translate(231.2255 150.2583)" fill="#1A1D23">example-project</text>\n<text dominant-baseline="central" text-anchor="start" style="font-size:12px;font-family:sans-serif;" transform="translate(218.3976 33.9582)" fill="#1A1D23">example-team</text>\n<path d="M-108.1 -5l216.2 0l0 24l-216.2 0Z" transform="translate(180 13)" fill="rgb(0,0,0)" fill-opacity="0" stroke="#3c3c41" stroke-width="0" class="oods-zr-2"></path>\n<text dominant-baseline="central" text-anchor="middle" style="font-size:14px;font-family:sans-serif;font-weight:600;" xml:space="preserve" y="7" transform="translate(180 13)" fill="#1A1D23">Example connected relationships</text>\n<style ><![CDATA[\n.oods-zr-0:hover {\ncursor:pointer;\nstroke-width:4;\n}\n.oods-zr-1:hover {\ncursor:pointer;\nfill:rgba(96,9,26,1);\n}\n.oods-zr-2:hover {\npointer-events:none;\n}\n\n]]>\n\n</style>\n</svg>'}
16885
+ svg: '<svg width="360" height="200" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" baseProfile="full" viewBox="0 0 360 200" role="img" aria-label="Example connected relationships" aria-description="Synthetic neighborhood edges illustrating relationships that share an endpoint; these are examples, not live graph data."><title>Example connected relationships</title><desc>Synthetic neighborhood edges illustrating relationships that share an endpoint; these are examples, not live graph data.</desc>\n<rect width="360" height="200" x="0" y="0" fill="#FFFFFF"></rect>\n<path d="M239.2 59.3Q245.2 127.2 188.1 164.5" fill="none" pointer-events="visible" stroke="rgb(62, 99, 221)" stroke-opacity="0.75" ecmeta_series_index="0" ecmeta_data_index="0" ecmeta_ssr_type="chart" class="oods-zr-0"></path>\n<path d="M188.1 164.5Q123.9 143 112.7 76.2" fill="none" pointer-events="visible" stroke="rgb(62, 99, 221)" stroke-opacity="0.75" ecmeta_series_index="0" ecmeta_data_index="1" ecmeta_ssr_type="chart" class="oods-zr-0"></path>\n<path d="M112.7 76.2Q176.9 97.7 188.1 164.5" fill="none" pointer-events="visible" stroke="rgb(62, 99, 221)" stroke-opacity="0.75" ecmeta_series_index="0" ecmeta_data_index="2" ecmeta_ssr_type="chart" class="oods-zr-0"></path>\n<path d="M1 0A1 1 0 1 1 1 -0.1A1 1 0 0 1 1 0" transform="matrix(5,0,0,5,112.6711,76.2258)" fill="rgb(62, 99, 221)" ecmeta_series_index="0" ecmeta_data_index="0" ecmeta_ssr_type="chart" class="oods-zr-1"></path>\n<path d="M1 0A1 1 0 1 1 1 -0.1A1 1 0 0 1 1 0" transform="matrix(5,0,0,5,188.0808,164.5013)" fill="rgb(62, 99, 221)" ecmeta_series_index="0" ecmeta_data_index="1" ecmeta_ssr_type="chart" class="oods-zr-1"></path>\n<path d="M1 0A1 1 0 1 1 1 -0.1A1 1 0 0 1 1 0" transform="matrix(5,0,0,5,239.241,59.2736)" fill="rgb(62, 99, 221)" ecmeta_series_index="0" ecmeta_data_index="2" ecmeta_ssr_type="chart" class="oods-zr-1"></path>\n<text dominant-baseline="central" text-anchor="start" style="font-size:12px;font-family:sans-serif;" transform="translate(122.6711 76.2258)" fill="#0A0A0A">example-document</text>\n<text dominant-baseline="central" text-anchor="start" style="font-size:12px;font-family:sans-serif;" transform="translate(198.0808 164.5013)" fill="#0A0A0A">example-project</text>\n<text dominant-baseline="central" text-anchor="start" style="font-size:12px;font-family:sans-serif;" transform="translate(249.241 59.2736)" fill="#0A0A0A">example-team</text>\n<path d="M-108.1 -5l216.2 0l0 24l-216.2 0Z" transform="translate(180 13)" fill="rgb(0,0,0)" fill-opacity="0" stroke="#3c3c41" stroke-width="0" class="oods-zr-2"></path>\n<text dominant-baseline="central" text-anchor="middle" style="font-size:14px;font-family:sans-serif;font-weight:600;" xml:space="preserve" y="7" transform="translate(180 13)" fill="#0A0A0A">Example connected relationships</text>\n<style ><![CDATA[\n.oods-zr-0:hover {\ncursor:pointer;\nstroke-width:4;\n}\n.oods-zr-1:hover {\ncursor:pointer;\nfill:rgba(68,108,243,1);\n}\n.oods-zr-2:hover {\npointer-events:none;\n}\n\n]]>\n\n</style>\n</svg>'}
16341
16886
  }
16342
16887
  };
16343
16888
 
@@ -16370,7 +16915,7 @@ var authoredScenarios = [
16370
16915
  { "id": "VizSizeControls", "oodsComponentId": "VizSizeControls", "props": { "value": { "encodings": { "size": { "field": "size", "scale": "linear" } } } }, "slots": {}, "initialState": { "encodings": { "size": { "field": "size", "scale": "linear" } } }, "renderExpectation": { "name": "change", "trigger": "append x to the first field", "expected": '{"encodings":{"size":{"field":"sizex","scale":"linear"}}}' }, "assertions": ["emitted payload is a typed public input fragment", "untouched sibling bindings are preserved", "labels name native controls"] },
16371
16916
  { "id": "VizSizeSummary", "oodsComponentId": "VizSizeSummary", "props": { "value": { "encodings": { "size": { "field": "size", "scale": "linear" } } } }, "slots": {}, "initialState": { "authored": true }, "renderExpectation": { "name": "render", "trigger": "mount the authored fragment or shared-renderer SVG", "expected": '{"encodings":{"size":{"field":"size","scale":"linear"}}}' }, "assertions": ["authored binding values remain readable", "no interactive chart action is implied"] },
16372
16917
  { "id": "ArchiveEvent", "oodsComponentId": "ArchiveEvent", "props": { "archivedAt": "2026-09-01T12:00:00Z", "restoredAt": "2026-09-02T12:00:00Z", "archivedBy": "operator-1", "reason": "Duplicate record" }, "slots": {}, "initialState": {}, "renderExpectation": { "name": "render", "trigger": "mount and declared input triggers", "expected": "Archive and restoration instants remain distinct and ordered as declared; valid dates render stable UTC time, missing dates remain disclosed. Actor and reason are visible when supplied." }, "assertions": ["Visible text exposes values without relying on color", "Named semantic container or noninteractive span"] },
16373
- { "id": "CancellationEvent", "oodsComponentId": "CancellationEvent", "props": { "timestamp": "2026-09-01T12:00:00Z", "reason": "Customer request", "code": "customer_request" }, "slots": {}, "initialState": {}, "renderExpectation": { "name": "render", "trigger": "mount and declared input triggers", "expected": "Cancellation timestamp, reason and code are visible without initiating cancellation; an absent request remains an explicit empty state." }, "assertions": ["Visible text exposes values without relying on color", "Named semantic container or noninteractive span"] },
16918
+ { "id": "CancellationEvent", "oodsComponentId": "CancellationEvent", "props": { "timestamp": "2026-09-01T12:00:00Z", "reason": "Customer request", "code": "customer_request" }, "slots": {}, "initialState": {}, "renderExpectation": { "name": "render", "trigger": "mount and declared input triggers", "expected": "Cancellation timestamp, reason and code are visible without initiating cancellation; with no request recorded the card renders nothing." }, "assertions": ["Visible text exposes values without relying on color", "Named semantic container or noninteractive span"] },
16374
16919
  { "id": "StateTransitionEvent", "oodsComponentId": "StateTransitionEvent", "props": { "history": [{ "from_state": "draft", "to_state": "active", "transitioned_at": "2026-09-01T12:00:00Z", "actor_id": "operator-1", "reason": "Approved" }] }, "slots": {}, "initialState": {}, "renderExpectation": { "name": "render", "trigger": "mount and declared input triggers", "expected": "Declared history order, from/to states, actor and reason remain visible; showActor/showReason suppress their respective details. No history is invented." }, "assertions": ["Visible text exposes values without relying on color", "Named semantic container or noninteractive span"] },
16375
16920
  { "id": "ColorStatePicker", "oodsComponentId": "ColorStatePicker", "props": { "colorStates": ["neutral", "success"], "value": "neutral" }, "slots": {}, "initialState": {}, "renderExpectation": { "name": "render", "trigger": "mount and declared input triggers", "expected": "A labelled Select inside a fieldset edits only declared semantic color states and emits one string change; prop changes resynchronise local selection." }, "assertions": ["Visible text explains the declared trait values", "Every native control has a visible label"] },
16376
16921
  { "id": "StatusColorLegend", "oodsComponentId": "StatusColorLegend", "props": { "colorStates": ["neutral", "success"], "value": "success", "showTokenReferences": true }, "slots": {}, "initialState": {}, "renderExpectation": { "name": "render", "trigger": "mount and declared input triggers", "expected": "A named section pairs semantic color swatches with visible state names, the current state and optional token references. Meaning is never color alone." }, "assertions": ["Visible text exposes values without relying on color", "Named semantic container or noninteractive span"] },
@@ -16385,7 +16930,7 @@ var authoredScenarios = [
16385
16930
  { id: "address-editor-fields-and-change", oodsComponentId: "AddressEditor", props: { title: "Shipping address", street: "1 Main St", city: "Springfield", region: "IL", postalCode: "62701" }, slots: {}, initialState: { street: "1 Main St" }, renderExpectation: { name: "change", trigger: "type into the City input", expected: "change emitted with the current street/city/region/postalCode record" }, assertions: ["title is a real h2 heading", "four labelled inputs are prefilled", "change carries the whole address record", "submitting is a no-op"] },
16386
16931
  { id: "address-summary-badge-role", oodsComponentId: "AddressSummaryBadge", props: { label: "Billing address", role: "billing" }, slots: {}, initialState: { status: "billing" }, renderExpectation: { name: "render", trigger: "mount", expected: "visible Billing address label with data-badge-status billing and the address variant" }, assertions: ["label is visible text", "data-badge-status is billing", "data-badge-variant is address", "badge is noninteractive"] },
16387
16932
  { id: "address-validation-timeline-events", oodsComponentId: "AddressValidationTimeline", props: { title: "Address checks", validations: [{ label: "Postal code verified", timestamp: "2026-09-05T12:00:00Z", detail: "Matched carrier database" }, "Geocoded"] }, slots: {}, initialState: { events: 2 }, renderExpectation: { name: "render", trigger: "mount", expected: "a log region titled Address checks with two ordered events, the first timestamped and detailed" }, assertions: ["region has role log and an h2 title", "events are ordered list items", "the timestamp is a time element", "scalar entries render as text"] },
16388
- { id: "archive-pill-false", oodsComponentId: "ArchivePill", props: { "isArchived": false }, slots: {}, initialState: { content: "populated" }, renderExpectation: { name: "render", trigger: "mount", expected: "Not archived remains visible; machine status remains false; archive is the badge variant" }, assertions: ["Not archived remains visible; machine status remains false", "archive is the badge variant"] },
16933
+ { id: "archive-pill-false", oodsComponentId: "ArchivePill", props: { "isArchived": false }, slots: {}, initialState: { content: "populated" }, renderExpectation: { name: "render", trigger: "mount", expected: "Not archived remains visible; machine status remains false; archive is the badge variant; with hideWhenFalse a false flag renders nothing and a true flag reads Archived" }, assertions: ["Not archived remains visible; machine status remains false", "archive is the badge variant", "hideWhenFalse hides only the default"] },
16389
16934
  { id: "archive-summary-false-and-reason", oodsComponentId: "ArchiveSummary", props: { "isArchived": false, "archivedAt": "2026-09-05T12:00:00Z", "reason": "Retention policy" }, slots: {}, initialState: { content: "populated" }, renderExpectation: { name: "render", trigger: "mount", expected: "No remains visible in its named term; archive date and reason remain associated terms" }, assertions: ["No remains visible in its named term", "archive date and reason remain associated terms"] },
16390
16935
  { id: "archived-row-presentation", oodsComponentId: "ArchivedRowOverlay", props: { "isArchived": true, "showBadge": true, "separateTab": true, "tabLabel": "Archived", "label": "Team subscription" }, slots: {}, initialState: {}, renderExpectation: { name: "render", trigger: "mount", expected: "Archived row stays accessible and its badge and tab label agree" }, assertions: ["Archived row stays accessible and its badge and tab label agree"] },
16391
16936
  { id: "audit-event-type-and-timestamp", oodsComponentId: "AuditEvent", props: { event: "user.updated", timestamp: "2026-09-05T12:00:00Z", detail: "Display name changed" }, slots: {}, initialState: { timestamped: true }, renderExpectation: { name: "render", trigger: "mount", expected: "one audit article with a machine-readable time, the event label and the detail" }, assertions: ["article carries data-event-type audit", "time element has a datetime", "label and detail are visible text"] },
@@ -16405,7 +16950,7 @@ var authoredScenarios = [
16405
16950
  { id: "billing-interval-subscription", oodsComponentId: "BillingIntervalSelector", props: { interval: "monthly", intervals: ["monthly", "yearly"], label: "Billing interval" }, slots: {}, initialState: { interval: "monthly" }, renderExpectation: { name: "change", trigger: "ArrowDown from monthly", expected: "yearly selected and emitted" }, assertions: ["only the resolved object intervals are selectable", "a native select supports keyboard selection", "invalid interval is announced"] },
16406
16951
  { id: "billing-summary-minor-units", oodsComponentId: "BillingSummaryBadge", props: { amount: 1999, currency: "usd", minorUnits: 100, interval: "monthly" }, slots: {}, initialState: {}, renderExpectation: { name: "render", trigger: "mount", expected: "$19.99 \xB7 monthly" }, assertions: ["integer minor units format as a currency amount", "one visible phrase includes interval"] },
16407
16952
  { id: "button-activate", oodsComponentId: "Button", props: { content: "Save changes", intent: "neutral", size: "md" }, slots: { default: "Save changes" }, initialState: { disabled: false }, renderExpectation: { name: "activate", trigger: "pointer click or Enter", expected: "activation handler called once" }, assertions: ["native type defaults to button", "focus is visible"] },
16408
- { id: "cancellation-badge-false", oodsComponentId: "CancellationBadge", props: { "cancelAtPeriodEnd": false }, slots: {}, initialState: { content: "populated" }, renderExpectation: { name: "render", trigger: "mount", expected: "No cancellation scheduled remains visible; machine status remains false; cancellation is the badge variant" }, assertions: ["No cancellation scheduled remains visible; machine status remains false", "cancellation is the badge variant"] },
16953
+ { id: "cancellation-badge-false", oodsComponentId: "CancellationBadge", props: { "cancelAtPeriodEnd": false }, slots: {}, initialState: { content: "populated" }, renderExpectation: { name: "render", trigger: "mount", expected: "No cancellation scheduled remains visible; machine status remains false; cancellation is the badge variant; with hideWhenFalse a false flag renders nothing and a true flag reads Cancellation scheduled" }, assertions: ["No cancellation scheduled remains visible; machine status remains false", "cancellation is the badge variant", "hideWhenFalse hides only the default"] },
16409
16954
  { id: "cancellation-form-presentational-controls", oodsComponentId: "CancellationForm", props: { "title": "Cancellation request", "reasonCode": "budget", "reason": "Costs changed" }, slots: {}, initialState: { content: "populated" }, renderExpectation: { name: "render", trigger: "mount", expected: "reason and code retain their initial values; native controls are labelled; submit does not cancel or save" }, assertions: ["reason and code retain their initial values", "native controls are labelled", "submit does not cancel or save"] },
16410
16955
  {
16411
16956
  id: "cancellation-summary-boolean",
@@ -16419,6 +16964,12 @@ var authoredScenarios = [
16419
16964
  { id: "card-elevated-content", oodsComponentId: "Card", props: { elevated: true }, slots: { default: "Account summary" }, initialState: { elevated: true }, renderExpectation: { name: "render", trigger: "mount", expected: "semantic container with visible content" }, assertions: ["content is not empty", "elevated state is exposed"] },
16420
16965
  { id: "card-header-supporting-text", oodsComponentId: "CardHeader", props: { title: "Account summary", supportingText: "Current subscription" }, slots: {}, initialState: { heading: "h2" }, renderExpectation: { name: "render", trigger: "mount", expected: "h2 heading and visible supporting text" }, assertions: ["title is a real h2 heading", "supporting text is visible"] },
16421
16966
  { id: "checkbox-controlled", oodsComponentId: "Checkbox", props: { id: "marketing", label: "Product updates", checked: false, required: true, help: "Choose whether to subscribe" }, slots: {}, initialState: { checked: false }, renderExpectation: { name: "change", trigger: "click checkbox", expected: "checked=true emitted once" }, assertions: ["label targets input", "help describes input"] },
16967
+ // s222-m02 (#2502 ruling 11): the two components 0.4.0 adds. The dialog example is shown in place (modal false), as a
16968
+ // gallery shows it; modal true is the default.
16969
+ { id: "dialog-confirm", oodsComponentId: "Dialog", props: { id: "archive-workspace", open: true, modal: false, title: "Archive workspace", description: "Members lose access until the workspace is restored.", size: "sm" }, slots: { default: "Invoices and subscriptions stay in the archive for 30 days.", actions: ["Cancel", "Archive workspace"] }, initialState: { open: true }, renderExpectation: { name: "close", trigger: "activate the close button or press Escape", expected: "close emitted once; the dialog stays open until open becomes false" }, assertions: ["the dialog is named by its title and described by its description", "the close button is named", "the actions sit in the footer"] },
16970
+ // s223-m02 (#2527 ruling 11): the combobox example; Japan is disabled, so the keyboard skips it and a click cannot pick it.
16971
+ { id: "combobox-filter-and-pick", oodsComponentId: "Combobox", props: { id: "shipping-country", label: "Shipping country", value: "ca", placeholder: "Search countries", help: "Type to filter. We do not ship to Japan yet.", options: [{ value: "au", label: "Australia" }, { value: "ca", label: "Canada" }, { value: "fr", label: "France" }, { value: "de", label: "Germany" }, { value: "jp", label: "Japan", disabled: true }, { value: "mx", label: "Mexico" }, { value: "gb", label: "United Kingdom" }, { value: "us", label: "United States" }] }, slots: {}, initialState: { open: false, value: "ca" }, renderExpectation: { name: "change", trigger: "type to filter, then Down and Enter, or click an option", expected: "the picked value emitted once and the list closed" }, assertions: ["role combobox controls its listbox and reports aria-expanded", "the label names the combobox and the listbox; help describes the input", "typing filters by label and an empty result says No matches", "the chosen option reports aria-selected and shows a check mark"] },
16972
+ { id: "switch-controlled", oodsComponentId: "Switch", props: { id: "payment-alerts", label: "Payment alerts", checked: false, help: "Email the account owner when a payment fails" }, slots: {}, initialState: { checked: false }, renderExpectation: { name: "change", trigger: "click the switch or press Space or Enter", expected: "checked=true emitted once" }, assertions: ["role switch reports aria-checked", "the label names the switch", "help describes the switch"] },
16422
16973
  { id: "classification-badge-category", oodsComponentId: "ClassificationBadge", props: { "category": "Electronics", "mode": "strict" }, slots: {}, initialState: { "content": "populated" }, renderExpectation: { "name": "render", "trigger": "mount", "expected": "category is visible; mode is the status metadata; noninteractive badge" }, assertions: ["category is visible", "mode is the status metadata", "noninteractive badge"] },
16423
16974
  { id: "classification-editor-presentational-controls", oodsComponentId: "ClassificationEditor", props: { "title": "Product classification", "category": "Electronics", "tags": ["alpha", "beta"], "mode": "flexible" }, slots: {}, initialState: { "content": "populated" }, renderExpectation: { "name": "render", "trigger": "mount", "expected": "labelled native inputs retain their values; mode selection is flexible; submit does not navigate or save" }, assertions: ["labelled native inputs retain their values", "mode selection is flexible", "submit does not navigate or save"] },
16424
16975
  { id: "classification-panel-title-and-summary", oodsComponentId: "ClassificationPanel", props: { title: "Classification", subtitle: "Taxonomy and tags", summary: "Electronics > Mobile > Android" }, slots: {}, initialState: { content: "summary" }, renderExpectation: { name: "render", trigger: "mount without authored children", expected: "h2 heading, visible subtitle and the summary text inside the content area" }, assertions: ["title is a real h2 heading", "data-panel-type is classification", "summary text is visible", "panel is noninteractive"] },
@@ -16438,7 +16989,7 @@ var authoredScenarios = [
16438
16989
  { id: "message-event-timeline-statuses", oodsComponentId: "MessageEventTimeline", props: { heading: "Delivery", statuses: [{ status: "delivered", at: "2026-09-02T09:00:00Z" }] }, slots: {}, initialState: { events: 1 }, renderExpectation: { name: "render", trigger: "mount with statuses only", expected: "statuses supply the events when messages are absent, in the message timeline type" }, assertions: ["region has role log and an h2 title", "status doubles as the event label", "data-timeline-type is message"] },
16439
16990
  { id: "message-status-badge-delivery", oodsComponentId: "MessageStatusBadge", props: { delivery: "delivered" }, slots: {}, initialState: { status: "delivered" }, renderExpectation: { name: "render", trigger: "mount", expected: "delivery doubles as the visible label and the status in the message variant" }, assertions: ["label is visible text", "data-badge-status is delivered", "data-badge-variant is message", "badge is noninteractive"] },
16440
16991
  { id: "owner-badge-principal", oodsComponentId: "OwnerBadge", props: { "owner": "user-7", "ownerType": "person", "status": "active" }, slots: {}, initialState: { content: "populated" }, renderExpectation: { name: "render", trigger: "mount", expected: "owner identity is visible; owner is the badge variant" }, assertions: ["owner identity is visible", "owner is the badge variant"] },
16441
- { id: "ownership-meta-inline-terms", oodsComponentId: "OwnershipMeta", props: { "ownerType": "organization", "role": "custodian" }, slots: {}, initialState: { content: "populated" }, renderExpectation: { name: "render", trigger: "mount", expected: "metadata has inline term labels; role is visible text not an ARIA role" }, assertions: ["metadata has inline term labels", "role is visible text not an ARIA role"] },
16992
+ { id: "ownership-meta-inline-terms", oodsComponentId: "OwnershipMeta", props: { "ownerType": "organization", "role": "custodian" }, slots: {}, initialState: { content: "populated" }, renderExpectation: { name: "render", trigger: "mount", expected: "metadata has inline term labels; role is visible text not an ARIA role; given ownerLabel one phrase names the owner" }, assertions: ["metadata has inline term labels", "role is visible text not an ARIA role", "ownerLabel reads as one phrase"] },
16442
16993
  { id: "ownership-summary-terms", oodsComponentId: "OwnershipSummary", props: { "ownerId": "user-7", "ownerType": "person", "role": "administrator" }, slots: {}, initialState: { content: "populated" }, renderExpectation: { name: "render", trigger: "mount", expected: "a real h2 names the description list; owner label or honest unavailability, type and role remain associated terms" }, assertions: ["a real h2 names the description list", "owner label or honest unavailability, type and role remain associated terms"] },
16443
16994
  {
16444
16995
  id: "pagination-bar-navigation",
@@ -16486,6 +17037,9 @@ var authoredScenarios = [
16486
17037
  renderExpectation: { name: "clear", trigger: "activate clear control", expected: "empty value emitted once" },
16487
17038
  assertions: ["input has search semantics", "clear control is named"]
16488
17039
  },
17040
+ // s223-m02 (#2527 ruling 10): the middle option is checked, so Tab landing on it shows the group's one tab stop is the
17041
+ // checked option, and both arrow directions have a neighbour.
17042
+ { id: "segmented-control-billing-period", oodsComponentId: "SegmentedControl", props: { id: "billing-period", label: "Billing period", value: "quarterly", options: [{ value: "monthly", label: "Monthly" }, { value: "quarterly", label: "Quarterly" }, { value: "yearly", label: "Yearly" }] }, slots: {}, initialState: { value: "quarterly" }, renderExpectation: { name: "change", trigger: "ArrowRight or ArrowLeft from Quarterly, or click Yearly", expected: "the neighbouring value emitted once; the consumer owns value" }, assertions: ["the radiogroup is named by its visible label", "each option is a native radio named by its own label", "the checked option is the value and is the one tab stop"] },
16489
17043
  { id: "select-controlled", oodsComponentId: "Select", props: { id: "plan", label: "Plan", value: "pro", options: [{ value: "basic", label: "Basic" }, { value: "pro", label: "Pro" }] }, slots: {}, initialState: { value: "pro" }, renderExpectation: { name: "change", trigger: "choose Basic", expected: "basic emitted once" }, assertions: ["label targets select", "selected option is visible"] },
16490
17044
  { id: "stack-wrapped-row", oodsComponentId: "Stack", props: { direction: "row", gap: "sm", align: "center", wrap: true }, slots: { default: ["Primary", "Secondary"] }, initialState: { direction: "row", wrap: true }, renderExpectation: { name: "render", trigger: "resize to phone width", expected: "children wrap in DOM order" }, assertions: ["two children remain visible", "gap token is used"] },
16491
17045
  {
@@ -16527,6 +17081,18 @@ var sharedScenarios = [...authoredScenarios].sort((a, b) => a.oodsComponentId <
16527
17081
  event: behavior.event
16528
17082
  };
16529
17083
  });
17084
+ var relativeTimestampEmptyScenario = {
17085
+ id: "relative-timestamp-empty",
17086
+ oodsComponentId: "RelativeTimestamp",
17087
+ props: { datetime: "" },
17088
+ slots: {},
17089
+ initialState: { content: "empty" },
17090
+ renderExpectation: { name: "render", trigger: "mount with an empty datetime", expected: "Unknown time is visible and no datetime attribute is emitted" },
17091
+ assertions: ["an empty value reads Unknown time", "an empty datetime is omitted, never emitted empty"],
17092
+ interaction: componentBehaviors.RelativeTimestamp.interaction,
17093
+ interactionReason: componentBehaviors.RelativeTimestamp.interactionReason,
17094
+ event: componentBehaviors.RelativeTimestamp.event
17095
+ };
16530
17096
 
16531
17097
  // src/ported-contracts.ts
16532
17098
  var portedComponentContracts = Object.fromEntries(
@@ -16583,6 +17149,454 @@ var RESULT_STATES = ["violation", "passed", "needs_review", "not_applicable", "n
16583
17149
  var RESULT_STATE_TONE = "neutral";
16584
17150
  var SEVERITY_TONES = ["positive", "success", "warning", "critical", "danger"];
16585
17151
 
17152
+ // src/status-icons.ts
17153
+ var path = (d) => ({ tag: "path", attrs: { d } });
17154
+ var circle = (cx, cy, r, filled = false) => ({
17155
+ tag: "circle",
17156
+ attrs: filled ? { cx, cy, r, fill: "currentColor", stroke: "none" } : { cx, cy, r }
17157
+ });
17158
+ var STATUS_ICON_SHAPES = Object.freeze({
17159
+ check: [path("M3.5 8.5l3 3 6-7")],
17160
+ x: [path("M4.5 4.5l7 7M11.5 4.5l-7 7")],
17161
+ alert: [path("M8 2.5l6 11H2z"), path("M8 6.5v3"), circle("8", "11.5", "0.75", true)],
17162
+ info: [circle("8", "8", "6"), path("M8 7.5V11"), circle("8", "5", "0.75", true)],
17163
+ clock: [circle("8", "8", "6"), path("M8 5v3l2 1.5")],
17164
+ dots: [circle("4", "8", "1", true), circle("8", "8", "1", true), circle("12", "8", "1", true)],
17165
+ refresh: [path("M13 8a5 5 0 1 1-1.5-3.5"), path("M13 2.5v3h-3")],
17166
+ pause: [path("M6 4v8M10 4v8")],
17167
+ ban: [circle("8", "8", "6"), path("M3.8 12.2l8.4-8.4")],
17168
+ pencil: [path("M10.5 3L13 5.5 6 12.5H3.5V10z")],
17169
+ star: [path("M8 2.5l1.7 3.5 3.8.5-2.8 2.6.7 3.8L8 11.1l-3.4 1.8.7-3.8-2.8-2.6 3.8-.5z")],
17170
+ undo: [path("M3 8a5 5 0 1 0 1.5-3.5"), path("M3 2.5v3h3")],
17171
+ lock: [{ tag: "rect", attrs: { x: "3.5", y: "7", width: "9", height: "6.5", rx: "1.5" } }, path("M5.5 7V5a2.5 2.5 0 0 1 5 0v2")],
17172
+ unlock: [{ tag: "rect", attrs: { x: "3.5", y: "7", width: "9", height: "6.5", rx: "1.5" } }, path("M5.5 7V5a2.5 2.5 0 0 1 4.8-1")],
17173
+ dot: [circle("8", "8", "2.5", true)],
17174
+ "chevron-down": [path("M4 6l4 4 4-4")]
17175
+ });
17176
+ var STATUS_ICON_SVG_ATTRS = Object.freeze({
17177
+ width: "1em",
17178
+ height: "1em",
17179
+ viewBox: "0 0 16 16",
17180
+ fill: "none",
17181
+ stroke: "currentColor",
17182
+ "stroke-width": "1.5",
17183
+ "stroke-linecap": "round",
17184
+ "stroke-linejoin": "round",
17185
+ "aria-hidden": "true",
17186
+ focusable: "false"
17187
+ });
17188
+ var STATUS_ICON_ALIASES = Object.freeze({
17189
+ success: "check",
17190
+ paid: "check",
17191
+ warning: "alert",
17192
+ critical: "x",
17193
+ danger: "x",
17194
+ error: "x",
17195
+ negative: "x",
17196
+ pending: "dots",
17197
+ processing: "refresh",
17198
+ paused: "pause",
17199
+ canceled: "ban",
17200
+ cancelled: "ban",
17201
+ void: "ban",
17202
+ draft: "pencil",
17203
+ info: "info",
17204
+ trial: "star",
17205
+ future: "clock",
17206
+ scheduled: "clock",
17207
+ refunded: "undo",
17208
+ locked: "lock",
17209
+ unlocked: "unlock",
17210
+ default: "dot"
17211
+ });
17212
+ function resolveStatusIcon(iconName) {
17213
+ const segment = iconName?.split(".").pop()?.toLowerCase();
17214
+ if (!segment) return void 0;
17215
+ return STATUS_ICON_ALIASES[segment] ?? "dot";
17216
+ }
17217
+ var escapeAttribute = (value) => value.replace(/&/g, "&amp;").replace(/"/g, "&quot;").replace(/</g, "&lt;");
17218
+ var attributes = (attrs) => Object.entries(attrs).map(([name, value]) => ` ${name}="${escapeAttribute(value)}"`).join("");
17219
+ function statusIconMarkup(name) {
17220
+ const shapes = STATUS_ICON_SHAPES[name].map((shape) => `<${shape.tag}${attributes(shape.attrs)}></${shape.tag}>`).join("");
17221
+ return `<svg${attributes(STATUS_ICON_SVG_ATTRS)}>${shapes}</svg>`;
17222
+ }
17223
+
17224
+ // registry/status-map.json
17225
+ var status_map_default = {
17226
+ domains: {
17227
+ subscription: {
17228
+ future: {
17229
+ description: "Subscription is scheduled but not yet active.",
17230
+ chip: {
17231
+ foreground: "color.text.info",
17232
+ background: "color.background.info.subtle",
17233
+ border: "color.border.info",
17234
+ icon: "icon.status.scheduled"
17235
+ },
17236
+ banner: {
17237
+ foreground: "color.text.info",
17238
+ background: "color.background.surface.default",
17239
+ border: "color.border.info",
17240
+ icon: "icon.status.scheduled"
17241
+ }
17242
+ },
17243
+ trialing: {
17244
+ description: "Subscription is in a trial period before billing begins.",
17245
+ chip: {
17246
+ foreground: "color.text.accent",
17247
+ background: "color.background.accent.subtle",
17248
+ border: "color.border.accent",
17249
+ icon: "icon.status.trial"
17250
+ },
17251
+ banner: {
17252
+ foreground: "color.text.accent",
17253
+ background: "color.background.surface.default",
17254
+ border: "color.border.accent",
17255
+ icon: "icon.status.trial"
17256
+ }
17257
+ },
17258
+ active: {
17259
+ description: "Subscription is paid and service is provisioned.",
17260
+ chip: {
17261
+ foreground: "color.text.positive",
17262
+ background: "color.background.positive.subtle",
17263
+ border: "color.border.positive",
17264
+ icon: "icon.status.success"
17265
+ },
17266
+ banner: {
17267
+ foreground: "color.text.positive",
17268
+ background: "color.background.surface.default",
17269
+ border: "color.border.positive",
17270
+ icon: "icon.status.success"
17271
+ }
17272
+ },
17273
+ paused: {
17274
+ description: "Billing paused temporarily by finance or customer request.",
17275
+ chip: {
17276
+ foreground: "color.text.neutral",
17277
+ background: "color.background.neutral.subtle",
17278
+ border: "color.border.neutral",
17279
+ icon: "icon.status.paused"
17280
+ },
17281
+ banner: {
17282
+ foreground: "color.text.neutral",
17283
+ background: "color.background.surface.muted",
17284
+ border: "color.border.neutral",
17285
+ icon: "icon.status.paused"
17286
+ }
17287
+ },
17288
+ pending_cancellation: {
17289
+ description: "Subscription will cancel at period end but remains active now.",
17290
+ chip: {
17291
+ foreground: "color.text.info",
17292
+ background: "color.background.info.subtle",
17293
+ border: "color.border.info",
17294
+ icon: "icon.status.pending"
17295
+ },
17296
+ banner: {
17297
+ foreground: "color.text.info",
17298
+ background: "color.background.surface.default",
17299
+ border: "color.border.info",
17300
+ icon: "icon.status.pending"
17301
+ }
17302
+ },
17303
+ past_due: {
17304
+ description: "Renewal payment failed; smart retries ongoing and access retained during the grace window.",
17305
+ chip: {
17306
+ foreground: "color.text.danger",
17307
+ background: "color.background.danger.subtle",
17308
+ border: "color.border.danger",
17309
+ icon: "icon.status.warning"
17310
+ },
17311
+ banner: {
17312
+ foreground: "color.text.onbold",
17313
+ background: "color.background.danger.bold",
17314
+ border: "color.border.danger",
17315
+ icon: "icon.status.warning"
17316
+ }
17317
+ },
17318
+ unpaid: {
17319
+ description: "Payment retries exhausted; service access revoked.",
17320
+ chip: {
17321
+ foreground: "color.text.danger",
17322
+ background: "color.background.danger.subtle",
17323
+ border: "color.border.danger",
17324
+ icon: "icon.status.error"
17325
+ },
17326
+ banner: {
17327
+ foreground: "color.text.onbold",
17328
+ background: "color.background.danger.bold",
17329
+ border: "color.border.danger",
17330
+ icon: "icon.status.error"
17331
+ }
17332
+ },
17333
+ terminated: {
17334
+ description: "Subscription ended; service access revoked and billing stopped.",
17335
+ chip: {
17336
+ foreground: "color.text.disabled",
17337
+ background: "color.background.disabled",
17338
+ border: "color.border.disabled",
17339
+ icon: "icon.status.canceled"
17340
+ },
17341
+ banner: {
17342
+ foreground: "color.text.neutral",
17343
+ background: "color.background.neutral.subtle",
17344
+ border: "color.border.neutral",
17345
+ icon: "icon.status.canceled"
17346
+ }
17347
+ }
17348
+ },
17349
+ invoice: {
17350
+ draft: {
17351
+ description: "Invoice is editable and not yet finalized.",
17352
+ chip: {
17353
+ foreground: "color.text.neutral",
17354
+ background: "color.background.neutral.subtle",
17355
+ border: "color.border.neutral",
17356
+ icon: "icon.status.draft"
17357
+ },
17358
+ banner: {
17359
+ foreground: "color.text.neutral",
17360
+ background: "color.background.surface.muted",
17361
+ border: "color.border.neutral",
17362
+ icon: "icon.status.draft"
17363
+ }
17364
+ },
17365
+ posted: {
17366
+ description: "Invoice finalized with terms before collection.",
17367
+ chip: {
17368
+ foreground: "color.text.info",
17369
+ background: "color.background.info.subtle",
17370
+ border: "color.border.info",
17371
+ icon: "icon.status.pending"
17372
+ },
17373
+ banner: {
17374
+ foreground: "color.text.info",
17375
+ background: "color.background.surface.default",
17376
+ border: "color.border.info",
17377
+ icon: "icon.status.pending"
17378
+ }
17379
+ },
17380
+ paid: {
17381
+ description: "Invoice collected successfully in full.",
17382
+ chip: {
17383
+ foreground: "color.text.positive",
17384
+ background: "color.background.positive.subtle",
17385
+ border: "color.border.positive",
17386
+ icon: "icon.status.success"
17387
+ },
17388
+ banner: {
17389
+ foreground: "color.text.positive",
17390
+ background: "color.background.surface.default",
17391
+ border: "color.border.positive",
17392
+ icon: "icon.status.success"
17393
+ }
17394
+ },
17395
+ past_due: {
17396
+ description: "Invoice is unpaid past its due date.",
17397
+ chip: {
17398
+ foreground: "color.text.danger",
17399
+ background: "color.background.danger.subtle",
17400
+ border: "color.border.danger",
17401
+ icon: "icon.status.error"
17402
+ },
17403
+ banner: {
17404
+ foreground: "color.text.onbold",
17405
+ background: "color.background.danger.bold",
17406
+ border: "color.border.danger",
17407
+ icon: "icon.status.error"
17408
+ }
17409
+ },
17410
+ void: {
17411
+ description: "Invoice canceled and no longer payable.",
17412
+ chip: {
17413
+ foreground: "color.text.disabled",
17414
+ background: "color.background.disabled",
17415
+ border: "color.border.disabled",
17416
+ icon: "icon.status.void"
17417
+ },
17418
+ banner: {
17419
+ foreground: "color.text.neutral",
17420
+ background: "color.background.neutral.subtle",
17421
+ border: "color.border.neutral",
17422
+ icon: "icon.status.void"
17423
+ }
17424
+ }
17425
+ }
17426
+ }
17427
+ };
17428
+
17429
+ // registry/lifecycle-status-tones.json
17430
+ var lifecycle_status_tones_default = {
17431
+ states: {
17432
+ active: { tone: "success", icon: "icon.status.success", description: "Active and in use." },
17433
+ available: { tone: "success", icon: "icon.status.success", description: "Available to use." },
17434
+ published: { tone: "success", icon: "icon.status.success", description: "Published and visible." },
17435
+ settled: { tone: "success", icon: "icon.status.success", description: "Settled in full." },
17436
+ succeeded: { tone: "success", icon: "icon.status.success", description: "Completed successfully." },
17437
+ paid: { tone: "success", icon: "icon.status.paid", description: "Paid in full." },
17438
+ completed: { tone: "success", icon: "icon.status.success", description: "Completed." },
17439
+ good_standing: { tone: "success", icon: "icon.status.success", description: "In good standing." },
17440
+ in_stock: { tone: "success", icon: "icon.status.success", description: "In stock." },
17441
+ ok: { tone: "success", icon: "icon.status.success", description: "Working as expected." },
17442
+ invited: { tone: "info", icon: "icon.status.pending", description: "Invited and not yet joined." },
17443
+ onboarding: { tone: "info", icon: "icon.status.processing", description: "Being set up." },
17444
+ pending: { tone: "info", icon: "icon.status.pending", description: "Waiting to be processed." },
17445
+ authorized: { tone: "info", icon: "icon.status.pending", description: "Authorized and not yet settled." },
17446
+ processing: { tone: "info", icon: "icon.status.processing", description: "Being processed." },
17447
+ in_review: { tone: "info", icon: "icon.status.pending", description: "In review." },
17448
+ scheduled: { tone: "info", icon: "icon.status.scheduled", description: "Scheduled for later." },
17449
+ ingested: { tone: "info", icon: "icon.status.pending", description: "Received and not yet processed." },
17450
+ proposed: { tone: "info", icon: "icon.status.pending", description: "Proposed and not yet agreed." },
17451
+ posted: { tone: "info", icon: "icon.status.pending", description: "Finalized and posted." },
17452
+ open: { tone: "info", icon: "icon.status.pending", description: "Open and awaiting action." },
17453
+ future: { tone: "info", icon: "icon.status.future", description: "Starts later." },
17454
+ trialing: { tone: "accent", icon: "icon.status.trial", description: "In a trial period." },
17455
+ private_beta: { tone: "accent", icon: "icon.status.trial", description: "Available to a limited group." },
17456
+ retrying: { tone: "warning", icon: "icon.status.processing", description: "Failed once and retrying." },
17457
+ delayed: { tone: "warning", icon: "icon.status.warning", description: "Behind schedule." },
17458
+ investigating: { tone: "warning", icon: "icon.status.warning", description: "Being investigated." },
17459
+ low_stock: { tone: "warning", icon: "icon.status.warning", description: "Running low." },
17460
+ backorder: { tone: "warning", icon: "icon.status.warning", description: "Out of stock and on order." },
17461
+ suspended: { tone: "warning", icon: "icon.status.paused", description: "Suspended for now." },
17462
+ deprecated: { tone: "warning", icon: "icon.status.warning", description: "Being phased out." },
17463
+ past_due: { tone: "critical", icon: "icon.status.warning", description: "Past its due date." },
17464
+ failed: { tone: "critical", icon: "icon.status.critical", description: "Failed." },
17465
+ unpaid: { tone: "critical", icon: "icon.status.critical", description: "Unpaid." },
17466
+ uncollectible: { tone: "critical", icon: "icon.status.critical", description: "Could not be collected." },
17467
+ draft: { tone: "neutral", icon: "icon.status.draft", description: "A draft, not yet final." },
17468
+ prospect: { tone: "neutral", icon: "icon.status.default", description: "Not yet a customer." },
17469
+ paused: { tone: "neutral", icon: "icon.status.paused", description: "Paused." },
17470
+ archived: { tone: "neutral", icon: "icon.status.default", description: "Archived." },
17471
+ legacy: { tone: "neutral", icon: "icon.status.default", description: "Kept for existing users and no longer offered." },
17472
+ refunded: { tone: "neutral", icon: "icon.status.refunded", description: "Refunded." },
17473
+ cancelled: { tone: "neutral", icon: "icon.status.cancelled", description: "Cancelled." },
17474
+ canceled: { tone: "neutral", icon: "icon.status.canceled", description: "Cancelled." },
17475
+ void: { tone: "neutral", icon: "icon.status.void", description: "Voided." },
17476
+ retired: { tone: "neutral", icon: "icon.status.canceled", description: "Retired and no longer offered." },
17477
+ discontinued: { tone: "neutral", icon: "icon.status.canceled", description: "Discontinued." },
17478
+ deactivated: { tone: "neutral", icon: "icon.status.canceled", description: "Deactivated." },
17479
+ terminated: { tone: "neutral", icon: "icon.status.canceled", description: "Ended." },
17480
+ churned: { tone: "neutral", icon: "icon.status.canceled", description: "No longer a customer." }
17481
+ }
17482
+ };
17483
+
17484
+ // src/status-registry.ts
17485
+ var TONE_ALIASES = {
17486
+ info: "info",
17487
+ informational: "info",
17488
+ accent: "accent",
17489
+ highlight: "accent",
17490
+ positive: "success",
17491
+ success: "success",
17492
+ ok: "success",
17493
+ warning: "warning",
17494
+ caution: "warning",
17495
+ danger: "critical",
17496
+ critical: "critical",
17497
+ error: "critical",
17498
+ negative: "critical",
17499
+ neutral: "neutral",
17500
+ pending: "info"
17501
+ };
17502
+ var toLabel = (status) => status.split(/[_-]/).filter(Boolean).map((segment) => segment.charAt(0).toUpperCase() + segment.slice(1)).join(" ");
17503
+ var inferTone = (entry) => {
17504
+ if (!entry) return "neutral";
17505
+ for (const reference of [entry.foreground, entry.background, entry.border]) {
17506
+ const segments = reference.replace(/^\{|\}$/g, "").split(/[\s./_-]+/).reverse();
17507
+ for (const segment of segments) {
17508
+ const tone = TONE_ALIASES[segment.toLowerCase()];
17509
+ if (tone) return tone;
17510
+ }
17511
+ }
17512
+ return "neutral";
17513
+ };
17514
+ var componentTokenSet = (tone) => {
17515
+ const normalized = tone === "positive" ? "success" : tone === "danger" ? "critical" : tone;
17516
+ return {
17517
+ background: `var(--sys-status-${normalized}-surface)`,
17518
+ border: `var(--sys-status-${normalized}-border)`,
17519
+ foreground: `var(--sys-status-${normalized}-text)`
17520
+ };
17521
+ };
17522
+ var rawTokenSet = (entry) => {
17523
+ const tone = inferTone(entry);
17524
+ return componentTokenSet(tone);
17525
+ };
17526
+ var bannerFallback = (tone) => tone === "neutral" ? {
17527
+ background: "var(--cmp-banner-background)",
17528
+ border: "var(--cmp-banner-border)",
17529
+ foreground: "var(--cmp-banner-text)"
17530
+ } : componentTokenSet(tone);
17531
+ var fallback = (domain, status, tone = "neutral") => ({
17532
+ domain,
17533
+ status,
17534
+ label: toLabel(status || "Unknown"),
17535
+ description: "Status not found in registry; falling back to the requested token set.",
17536
+ tone,
17537
+ badge: { subtle: componentTokenSet(tone), solid: componentTokenSet(tone) },
17538
+ banner: { subtle: bannerFallback(tone), solid: componentTokenSet(tone) }
17539
+ });
17540
+ var registry = /* @__PURE__ */ new Map();
17541
+ for (const [domain, entries] of Object.entries(status_map_default.domains)) {
17542
+ const domainEntries = /* @__PURE__ */ new Map();
17543
+ for (const [status, entry] of Object.entries(entries)) {
17544
+ const tone = inferTone(entry.chip);
17545
+ domainEntries.set(status.toLowerCase(), {
17546
+ domain,
17547
+ status,
17548
+ label: toLabel(status),
17549
+ description: entry.description,
17550
+ tone,
17551
+ iconName: entry.chip.icon ?? entry.banner?.icon,
17552
+ badge: { subtle: rawTokenSet(entry.chip), solid: componentTokenSet(tone) },
17553
+ banner: {
17554
+ subtle: entry.banner ? rawTokenSet(entry.banner) : bannerFallback(tone),
17555
+ solid: componentTokenSet(tone)
17556
+ }
17557
+ });
17558
+ }
17559
+ registry.set(domain, domainEntries);
17560
+ }
17561
+ var lifecycleEntries = /* @__PURE__ */ new Map();
17562
+ for (const [status, entry] of Object.entries(lifecycle_status_tones_default.states)) {
17563
+ lifecycleEntries.set(status, {
17564
+ domain: "lifecycle",
17565
+ status,
17566
+ label: toLabel(status),
17567
+ description: entry.description,
17568
+ tone: entry.tone,
17569
+ iconName: entry.icon,
17570
+ badge: { subtle: componentTokenSet(entry.tone), solid: componentTokenSet(entry.tone) },
17571
+ banner: { subtle: bannerFallback(entry.tone), solid: componentTokenSet(entry.tone) }
17572
+ });
17573
+ }
17574
+ registry.set("lifecycle", lifecycleEntries);
17575
+ var LEGACY_STATUS_ALIASES = {
17576
+ subscription: { delinquent: "unpaid" }
17577
+ };
17578
+ var STATUS_DOMAINS = Object.freeze([...registry.keys()]);
17579
+ function getStatusPresentation(domain, status) {
17580
+ const entries = registry.get(domain);
17581
+ const normalized = status.toLowerCase();
17582
+ const direct = entries?.get(normalized);
17583
+ if (direct) return direct;
17584
+ const alias = LEGACY_STATUS_ALIASES[domain]?.[normalized];
17585
+ const aliased = alias ? entries?.get(alias) : void 0;
17586
+ if (aliased) return { ...aliased, status, label: toLabel(status) };
17587
+ const shared = lifecycleEntries.get(normalized);
17588
+ return shared ? { ...shared, status, label: toLabel(status) } : fallback(domain, status);
17589
+ }
17590
+ function listStatuses(domain) {
17591
+ return [...registry.get(domain)?.values() ?? []];
17592
+ }
17593
+ function getToneTokenSet(tone) {
17594
+ return componentTokenSet(tone);
17595
+ }
17596
+ function getBannerToneTokenSet(tone) {
17597
+ return bannerFallback(tone);
17598
+ }
17599
+
16586
17600
  // src/billing-views.ts
16587
17601
  function billingCycle(values) {
16588
17602
  const start = Date.parse(values.periodStart ?? "");
@@ -16658,10 +17672,19 @@ function summaryValue(value) {
16658
17672
  function chronologicalEvents(events) {
16659
17673
  return events.filter((event) => Number.isFinite(Date.parse(event.at))).map((event, index) => ({ event, index })).sort((a, b) => Date.parse(a.event.at) - Date.parse(b.event.at) || a.index - b.index).map(({ event }) => event);
16660
17674
  }
16661
- function formatReadOnlyValue(value, type, code = false) {
17675
+ function formatDeclaredNumber(value, format) {
17676
+ const number = typeof value === "number" ? value : typeof value === "string" && value.trim() ? Number(value) : NaN;
17677
+ if (!Number.isFinite(number)) return void 0;
17678
+ return format === "percent" ? new Intl.NumberFormat("en-US", { style: "percent", maximumFractionDigits: 2 }).format(number / 100) : new Intl.NumberFormat("en-US", { maximumFractionDigits: 2 }).format(number);
17679
+ }
17680
+ function formatReadOnlyValue(value, type, code = false, format) {
16662
17681
  if (value == null || value === "") return "Not recorded";
16663
17682
  if (type === "date" || type === "datetime") return formatDateTime(value) || "Invalid date";
16664
17683
  if (typeof value === "boolean") return value ? "Yes" : "No";
17684
+ if (format && !Array.isArray(value)) {
17685
+ const formatted = formatDeclaredNumber(value, format);
17686
+ if (formatted !== void 0) return formatted;
17687
+ }
16665
17688
  if (Array.isArray(value)) {
16666
17689
  if (value.some((item) => item !== null && typeof item === "object")) return `${value.length} ${value.length === 1 ? "record" : "records"}`;
16667
17690
  return value.map((item) => summaryValue(item) ?? "").join(", ") || "None recorded";
@@ -16686,18 +17709,40 @@ function recordCollectionEvents(record2, options = {}) {
16686
17709
  const description = paid ? formatBillingAmount(paid.amount, String(paid.currency ?? record2.currency), options.minorUnits ?? 100) : billingSummary(Number(record2.amount), String(record2.currency), options.minorUnits ?? 100, String(record2.billing_interval));
16687
17710
  events.push({ id: "payment-" + source2.field, title: source2.title, at, description, kind: "payment" });
16688
17711
  }
16689
- for (const source2 of [{ field: "created_at", title: "Created" }, { field: "last_event_at", title: String(record2.last_event ?? "Updated").replaceAll("_", " ") }, { field: "issued_at", title: "Issued" }, { field: "period_start", title: "Period started" }, { field: "ownership_transferred_at", title: "Ownership transferred" }]) {
16690
- const at = record2[source2.field];
16691
- if (!chronologicalEvents(events).length && typeof at === "string" && Number.isFinite(Date.parse(at))) events.push({ id: "record-" + source2.field, kind: "state", title: source2.title, at, description: "" });
17712
+ if (!chronologicalEvents(events).length) {
17713
+ const lastEvent = String(record2.last_event ?? "Updated");
17714
+ const dated = [{ field: "created_at", title: "Created" }, { field: "last_event_at", title: lastEvent.split(/[_-]/).filter(Boolean).map((part) => part.charAt(0).toUpperCase() + part.slice(1)).join(" ") }, { field: "issued_at", title: "Issued" }, { field: "period_start", title: "Period started" }, { field: "ownership_transferred_at", title: "Ownership transferred" }].filter((source2) => typeof record2[source2.field] === "string" && Number.isFinite(Date.parse(record2[source2.field])));
17715
+ const both = dated[0]?.field === "created_at" && dated[1]?.field === "last_event_at" && lastEvent !== "created";
17716
+ for (const source2 of dated.slice(0, both ? 2 : 1)) events.push({ id: "record-" + source2.field, kind: "state", title: source2.title, at: record2[source2.field], description: "" });
17717
+ }
17718
+ for (const [field2, title, reason] of [["archived_at", "Archived", "archive_reason"], ["restored_at", "Restored", void 0], ["cancellation_requested_at", "Cancellation requested", "cancellation_reason"]]) {
17719
+ const at = record2[field2];
17720
+ if (typeof at === "string" && Number.isFinite(Date.parse(at))) events.push({ id: "record-" + field2, kind: "state", title, at, description: reason && typeof record2[reason] === "string" ? String(record2[reason]) : "" });
16692
17721
  }
16693
17722
  return chronologicalEvents(events);
16694
17723
  }
17724
+ function addressCollectionSummary(entries) {
17725
+ const asRecord = (value) => value && typeof value === "object" ? value : {};
17726
+ return (Array.isArray(entries) ? entries : []).map((entry) => {
17727
+ const address = asRecord(asRecord(entry).address);
17728
+ const street = Array.isArray(address.addressLines) ? address.addressLines.map(String).join(", ") : "";
17729
+ return [asRecord(entry).role, street, String(address.locality ?? ""), String(address.administrativeArea ?? ""), String(address.postalCode ?? "")].filter(Boolean).join(", ");
17730
+ }).join("; ");
17731
+ }
16695
17732
  var UUID_REFERENCE = /^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i;
16696
17733
  function formatReferenceLabel(identifier, label, subject = "Reference") {
16697
17734
  if (identifier == null || identifier === "") return `${subject} unavailable`;
16698
17735
  if (typeof label === "string" && label.trim() && !UUID_REFERENCE.test(label.trim())) return label;
16699
17736
  return `${subject} reference not resolved`;
16700
17737
  }
17738
+ var UNRESOLVED_REFERENCE_LABEL = / (?:unavailable|reference not resolved)$/;
17739
+ function ownershipPhrase(ownerLabel, ownerType, role) {
17740
+ const text2 = (value) => typeof value === "string" && value.trim() ? value.trim() : void 0;
17741
+ const name = text2(ownerLabel) && !UNRESOLVED_REFERENCE_LABEL.test(text2(ownerLabel)) ? text2(ownerLabel) : void 0;
17742
+ const type = text2(ownerType)?.replace(/[_-]+/g, " ");
17743
+ const parts = name ? [`Owned by ${name}`, type, text2(role)] : type ? [`${type.charAt(0).toUpperCase()}${type.slice(1)}-owned`, text2(role)] : [];
17744
+ return parts.filter(Boolean).join(" \xB7 ") || void 0;
17745
+ }
16701
17746
  function formatRecordLabel(value) {
16702
17747
  return typeof value === "string" && UUID_REFERENCE.test(value.trim()) ? "Record name unavailable" : String(value ?? "");
16703
17748
  }
@@ -16738,12 +17783,12 @@ function assertStaticSvg(svg) {
16738
17783
  for (const match of markup.matchAll(/<\/?([\w:-]+)((?:[^<>"']|"[^"]*"|'[^']*')*)>/g)) {
16739
17784
  if (markup.slice(end, match.index).includes("<") || !allowed.has(match[1].toLowerCase())) unsafe();
16740
17785
  end = match.index + match[0].length;
16741
- const attributes = match[2].replace(/\/\s*$/, "");
17786
+ const attributes2 = match[2].replace(/\/\s*$/, "");
16742
17787
  const attribute = /\s+([\w:-]+)\s*=\s*("[^"]*"|'[^']*')/y;
16743
17788
  let offset = 0;
16744
- while (offset < attributes.trimEnd().length) {
17789
+ while (offset < attributes2.trimEnd().length) {
16745
17790
  attribute.lastIndex = offset;
16746
- const found = attribute.exec(attributes);
17791
+ const found = attribute.exec(attributes2);
16747
17792
  if (!found) unsafe();
16748
17793
  offset = attribute.lastIndex;
16749
17794
  const name = found[1].toLowerCase();
@@ -16774,6 +17819,27 @@ function svgCarriesTitle(svg, title) {
16774
17819
  }
16775
17820
  return false;
16776
17821
  }
17822
+ var VIZ_THEME_SVG_PROPS = Object.freeze(["svgDark", "svgDarkNarrow", "svgDarkWide", "svgHc", "svgHcNarrow", "svgHcWide"]);
17823
+ var VIZ_SVG_PROPS = Object.freeze(["svg", "svgNarrow", "svgWide", ...VIZ_THEME_SVG_PROPS]);
17824
+ function vizPreviewLayers(props) {
17825
+ if (typeof props.svg !== "string") return [];
17826
+ const sets = [
17827
+ ["light", props.svg, props.svgNarrow, props.svgWide],
17828
+ ["dark", props.svgDark, props.svgDarkNarrow, props.svgDarkWide],
17829
+ ["hc", props.svgHc, props.svgHcNarrow, props.svgHcWide]
17830
+ ];
17831
+ const themed = VIZ_THEME_SVG_PROPS.some((key) => typeof props[key] === "string");
17832
+ return (themed ? sets : sets.slice(0, 1)).filter(([, design]) => typeof design === "string").map(([theme, design, narrow, wide]) => ({
17833
+ ...themed ? { theme } : {},
17834
+ narrow: typeof narrow === "string",
17835
+ wide: typeof wide === "string",
17836
+ renders: [
17837
+ ["data-viz-svg", assertStaticSvg(design)],
17838
+ ...typeof narrow === "string" ? [["data-viz-svg-narrow", assertStaticSvg(narrow)]] : [],
17839
+ ...typeof wide === "string" ? [["data-viz-svg-wide", assertStaticSvg(wide)]] : []
17840
+ ]
17841
+ }));
17842
+ }
16777
17843
 
16778
17844
  // src/disputed.ts
16779
17845
  function auditSummary({ auditLog = [], lastN = 5 }) {
@@ -16998,7 +18064,7 @@ function validateComponentIntakeDocument(input) {
16998
18064
  if (!Array.isArray(document.rows)) return [...errors, "intake rows must be an array"];
16999
18065
  const ids = document.rows.map((row) => row && typeof row === "object" && !Array.isArray(row) && typeof row.id === "string" ? row.id : "");
17000
18066
  if (ids.some((id) => id.length === 0)) errors.push("every intake row must have a non-empty id");
17001
- if (ids.length !== 110) errors.push(`intake must contain exactly 110 rows; received ${ids.length}`);
18067
+ if (ids.length !== 114) errors.push(`intake must contain exactly 114 rows; received ${ids.length}`);
17002
18068
  const uniqueCount = new Set(ids).size;
17003
18069
  if (uniqueCount !== ids.length) errors.push("intake IDs must be unique");
17004
18070
  const sorted = [...ids].sort((a, b) => a < b ? -1 : a > b ? 1 : 0);
@@ -17031,11 +18097,17 @@ exports.PORTED_COMPONENT_IDS = PORTED_COMPONENT_IDS;
17031
18097
  exports.RESULT_STATES = RESULT_STATES;
17032
18098
  exports.RESULT_STATE_TONE = RESULT_STATE_TONE;
17033
18099
  exports.SEVERITY_TONES = SEVERITY_TONES;
18100
+ exports.STATUS_DOMAINS = STATUS_DOMAINS;
18101
+ exports.STATUS_ICON_SHAPES = STATUS_ICON_SHAPES;
18102
+ exports.STATUS_ICON_SVG_ATTRS = STATUS_ICON_SVG_ATTRS;
17034
18103
  exports.UI_WORKFLOW_STATES = UI_WORKFLOW_STATES;
17035
18104
  exports.VIZ_CONTROL_IDS = VIZ_CONTROL_IDS;
17036
18105
  exports.VIZ_CONTROL_TITLES = VIZ_CONTROL_TITLES;
17037
18106
  exports.VIZ_PREVIEW_TYPES = VIZ_PREVIEW_TYPES;
17038
18107
  exports.VIZ_SUMMARY_IDS = VIZ_SUMMARY_IDS;
18108
+ exports.VIZ_SVG_PROPS = VIZ_SVG_PROPS;
18109
+ exports.VIZ_THEME_SVG_PROPS = VIZ_THEME_SVG_PROPS;
18110
+ exports.addressCollectionSummary = addressCollectionSummary;
17039
18111
  exports.ariaSort = ariaSort;
17040
18112
  exports.assertStaticSvg = assertStaticSvg;
17041
18113
  exports.auditSummary = auditSummary;
@@ -17063,24 +18135,33 @@ exports.evaluateEmissionEligibility = evaluateEmissionEligibility;
17063
18135
  exports.evaluateFoundationV1 = evaluateFoundationV1;
17064
18136
  exports.formatBillingAmount = formatBillingAmount;
17065
18137
  exports.formatDateTime = formatDateTime;
18138
+ exports.formatDeclaredNumber = formatDeclaredNumber;
17066
18139
  exports.formatPriceAmount = formatPriceAmount;
17067
18140
  exports.formatPriceCode = formatPriceCode;
17068
18141
  exports.formatReadOnlyValue = formatReadOnlyValue;
17069
18142
  exports.formatRecordLabel = formatRecordLabel;
17070
18143
  exports.formatReferenceLabel = formatReferenceLabel;
17071
18144
  exports.geoFieldMapping = geoFieldMapping;
18145
+ exports.getBannerToneTokenSet = getBannerToneTokenSet;
17072
18146
  exports.getBaselineCapability = getBaselineCapability;
18147
+ exports.getStatusPresentation = getStatusPresentation;
18148
+ exports.getToneTokenSet = getToneTokenSet;
17073
18149
  exports.initialSort = initialSort;
17074
18150
  exports.isGovernedComponent = isGovernedComponent;
17075
18151
  exports.isVizIntentFragment = isVizIntentFragment;
18152
+ exports.listStatuses = listStatuses;
17076
18153
  exports.nextSort = nextSort;
18154
+ exports.ownershipPhrase = ownershipPhrase;
17077
18155
  exports.parseBillingAmount = parseBillingAmount;
17078
18156
  exports.portedComponentContracts = portedComponentContracts;
17079
18157
  exports.portedScenarios = portedScenarios;
17080
18158
  exports.recipeItemLabels = recipeItemLabels;
17081
18159
  exports.recordCollectionEvents = recordCollectionEvents;
18160
+ exports.relativeTimestampEmptyScenario = relativeTimestampEmptyScenario;
18161
+ exports.resolveStatusIcon = resolveStatusIcon;
17082
18162
  exports.restartedBillingPeriod = restartedBillingPeriod;
17083
18163
  exports.sharedScenarios = sharedScenarios;
18164
+ exports.statusIconMarkup = statusIconMarkup;
17084
18165
  exports.substitutionContractReport = substitutionContractReport;
17085
18166
  exports.summarizeSubstitutionReport = summarizeSubstitutionReport;
17086
18167
  exports.summaryValue = summaryValue;
@@ -17090,4 +18171,5 @@ exports.validMinorUnits = validMinorUnits;
17090
18171
  exports.validateComponentIntakeDocument = validateComponentIntakeDocument;
17091
18172
  exports.vizControlFields = vizControlFields;
17092
18173
  exports.vizFieldValue = vizFieldValue;
18174
+ exports.vizPreviewLayers = vizPreviewLayers;
17093
18175
  exports.vizSummaryRows = vizSummaryRows;