@action-state-group/capsule-viewer 0.18.3 → 0.19.0
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/backfill-timeline.d.ts +66 -0
- package/dist/backfill-timeline.js +401 -0
- package/dist/backfill-timeline.js.map +1 -0
- package/dist/chart-dataset.d.ts +35 -0
- package/dist/chart-dataset.js +16 -1
- package/dist/chart-dataset.js.map +1 -1
- package/dist/compliance-view.js +41 -14
- package/dist/compliance-view.js.map +1 -1
- package/dist/contract-report-wording.d.ts +3 -1
- package/dist/contract-report-wording.js +18 -8
- package/dist/contract-report-wording.js.map +1 -1
- package/dist/core-strip.d.ts +19 -3
- package/dist/core-strip.js +76 -11
- package/dist/core-strip.js.map +1 -1
- package/dist/evidence-graph-view.js +2 -2
- package/dist/evidence-graph-view.js.map +1 -1
- package/dist/evidence-graph.iife.js +183 -43
- package/dist/history-view.d.ts +2 -2
- package/dist/history-view.iife.js +1 -0
- package/dist/history-view.iife.js.sha256 +1 -1
- package/dist/history-view.js +2 -1
- package/dist/history-view.js.map +1 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/outcome-report-view.js +53 -2
- package/dist/outcome-report-view.js.map +1 -1
- package/dist/report-front.d.ts +2 -1
- package/dist/report-front.js.map +1 -1
- package/dist/studio-card.d.ts +79 -0
- package/dist/studio-card.js +383 -0
- package/dist/studio-card.js.map +1 -0
- package/dist/studio-pack.d.ts +10 -0
- package/dist/studio-pack.js +27 -0
- package/dist/studio-pack.js.map +1 -0
- package/dist/studio-view.d.ts +56 -0
- package/dist/studio-view.js +431 -0
- package/dist/studio-view.js.map +1 -0
- package/dist/viewer-build.js +1 -1
- package/dist/wording/backfill-timeline.en.json +52 -0
- package/dist/wording/contract-report-eu-ai-act.en.json +5 -4
- package/dist/wording/contract-report-generic.en.json +3 -4
- package/dist/wording/contract-report-outcomes.en.json +6 -4
- package/dist/wording/studio-card.en.json +66 -0
- package/dist/wording/studio-view.en.json +39 -0
- package/package.json +1 -1
|
@@ -17689,13 +17689,13 @@ ${s} .check .steps{margin:12px 0 0;padding-left:20px;font-size:14px;line-height:
|
|
|
17689
17689
|
}
|
|
17690
17690
|
function builtCommit() {
|
|
17691
17691
|
if (false) return void 0;
|
|
17692
|
-
return commitPrefix("
|
|
17692
|
+
return commitPrefix("d2469c3f76ce0f01190ccde5328be1580f0005c3");
|
|
17693
17693
|
}
|
|
17694
17694
|
var commit = builtCommit();
|
|
17695
17695
|
var unreleased = false;
|
|
17696
17696
|
var VIEWER_BUILD = {
|
|
17697
17697
|
viewer: "@action-state-group/capsule-viewer",
|
|
17698
|
-
viewerVersion: "0.
|
|
17698
|
+
viewerVersion: "0.19.0",
|
|
17699
17699
|
verifier: "@action-state-group/agent-action-capsule",
|
|
17700
17700
|
verifierVersion: "0.14.0",
|
|
17701
17701
|
cllVersion: "0.3.0",
|
|
@@ -18221,6 +18221,7 @@ ${s} .check .steps{margin:12px 0 0;padding-left:20px;font-size:14px;line-height:
|
|
|
18221
18221
|
"card.wording.refused.fit": "it does not fit this card's words",
|
|
18222
18222
|
"front.mock": "Verdicts are from a mock judge and are placeholders.",
|
|
18223
18223
|
"front.agg.evaluated": "{evaluations} of {requirements}",
|
|
18224
|
+
"front.agg.imported": "Imported: the records behind this result were all backfilled after the fact; none was recorded at the time.",
|
|
18224
18225
|
"front.agg.evaluations.one": "{n} evaluation",
|
|
18225
18226
|
"front.agg.evaluations.other": "{n} evaluations",
|
|
18226
18227
|
"front.agg.requirements.one": "{n} requirement",
|
|
@@ -18232,10 +18233,11 @@ ${s} .check .steps{margin:12px 0 0;padding-left:20px;font-size:14px;line-height:
|
|
|
18232
18233
|
"front.agg.later.one": "{n} evaluation not yet in force",
|
|
18233
18234
|
"front.agg.later.other": "{n} evaluations not yet in force",
|
|
18234
18235
|
"front.agg.mismatch": "count mismatch: the claims give {recomputed}",
|
|
18235
|
-
"
|
|
18236
|
-
"
|
|
18237
|
-
"
|
|
18238
|
-
"
|
|
18236
|
+
"lines.later.readiness": "readiness only",
|
|
18237
|
+
"applicability.as_of": "In force as of {date}.",
|
|
18238
|
+
"applicability.not_yet_in_force.title": "Not yet in force",
|
|
18239
|
+
"applicability.not_yet_in_force.note": "Readiness only: these requirements apply from a later date, which the producer copied from the contract. They are in none of the met, not met or could not decide counts above, and a result here is never a violation.",
|
|
18240
|
+
"contract_fact.note": "Dates and the out-of-scope switch are the producer's copy of the contract, not re-checked by this page.",
|
|
18239
18241
|
"prov.brief.judge.partial": "judge pinned for some results",
|
|
18240
18242
|
"front.agg.excluded": "{excluded} excluded as not applicable",
|
|
18241
18243
|
"front.agg.bucket.met": "Met",
|
|
@@ -18831,6 +18833,7 @@ ${s} .check .steps{margin:12px 0 0;padding-left:20px;font-size:14px;line-height:
|
|
|
18831
18833
|
"card.wording.refused.fit": "it does not fit this card's words",
|
|
18832
18834
|
"front.mock": "Verdicts are from a mock judge and are placeholders.",
|
|
18833
18835
|
"front.agg.evaluated": "{evaluations} of {requirements}",
|
|
18836
|
+
"front.agg.imported": "Imported: the records behind this result were all backfilled after the fact; none was recorded at the time.",
|
|
18834
18837
|
"front.agg.evaluations.one": "{n} evaluation",
|
|
18835
18838
|
"front.agg.evaluations.other": "{n} evaluations",
|
|
18836
18839
|
"front.agg.requirements.one": "{n} requirement",
|
|
@@ -18842,10 +18845,10 @@ ${s} .check .steps{margin:12px 0 0;padding-left:20px;font-size:14px;line-height:
|
|
|
18842
18845
|
"front.agg.later.one": "{n} evaluation not yet in force",
|
|
18843
18846
|
"front.agg.later.other": "{n} evaluations not yet in force",
|
|
18844
18847
|
"front.agg.mismatch": "count mismatch: the claims give {recomputed}",
|
|
18845
|
-
"
|
|
18846
|
-
"
|
|
18847
|
-
"
|
|
18848
|
-
"
|
|
18848
|
+
"applicability.as_of": "In force as of {date}.",
|
|
18849
|
+
"applicability.not_yet_in_force.title": "Not yet in force",
|
|
18850
|
+
"applicability.not_yet_in_force.note": "Readiness only: these requirements apply from a later date, which the producer copied from the contract. They are in none of the met, not met or could not decide counts above, and a result here is never a violation.",
|
|
18851
|
+
"contract_fact.note": "Dates and the out-of-scope switch are the producer's copy of the contract, not re-checked by this page.",
|
|
18849
18852
|
"prov.brief.judge.partial": "judge pinned for some results",
|
|
18850
18853
|
"front.agg.excluded": "{excluded} excluded as not applicable",
|
|
18851
18854
|
"front.agg.bucket.met": "Met",
|
|
@@ -19261,6 +19264,7 @@ ${s} .check .steps{margin:12px 0 0;padding-left:20px;font-size:14px;line-height:
|
|
|
19261
19264
|
"card.wording.refused.fit": "it does not fit this card's words",
|
|
19262
19265
|
"front.mock": "Verdicts are from a mock judge and are placeholders.",
|
|
19263
19266
|
"front.agg.evaluated": "{evaluations} of {requirements}",
|
|
19267
|
+
"front.agg.imported": "Imported: the records behind this result were all backfilled after the fact; none was recorded at the time.",
|
|
19264
19268
|
"front.agg.evaluations.one": "{n} evaluation",
|
|
19265
19269
|
"front.agg.evaluations.other": "{n} evaluations",
|
|
19266
19270
|
"front.agg.requirements.one": "{n} requirement",
|
|
@@ -19272,10 +19276,8 @@ ${s} .check .steps{margin:12px 0 0;padding-left:20px;font-size:14px;line-height:
|
|
|
19272
19276
|
"front.agg.later.one": "{n} evaluation not yet in force",
|
|
19273
19277
|
"front.agg.later.other": "{n} evaluations not yet in force",
|
|
19274
19278
|
"front.agg.mismatch": "count mismatch: the claims give {recomputed}",
|
|
19275
|
-
"
|
|
19276
|
-
"
|
|
19277
|
-
"front.agg.copied.dates": "The dates are copied from the contract, not re-checked here.",
|
|
19278
|
-
"front.agg.copied.switch": "The out-of-scope switch is copied from the contract, not re-checked here.",
|
|
19279
|
+
"applicability.as_of": "In force as of {date}.",
|
|
19280
|
+
"contract_fact.note": "Dates and the out-of-scope switch are the producer's copy of the contract, not re-checked by this page.",
|
|
19279
19281
|
"prov.brief.judge.partial": "judge pinned for some results",
|
|
19280
19282
|
"front.agg.excluded": "{excluded} excluded as not applicable",
|
|
19281
19283
|
"front.agg.bucket.met": "Met",
|
|
@@ -19568,6 +19570,11 @@ ${s} .check .steps{margin:12px 0 0;padding-left:20px;font-size:14px;line-height:
|
|
|
19568
19570
|
throw new WordingPackError(
|
|
19569
19571
|
`wording pack is not an ${WORDING_PACK_VERSION} object`
|
|
19570
19572
|
);
|
|
19573
|
+
const reserved = Object.keys(entries).find((k) => k.startsWith("core."));
|
|
19574
|
+
if (reserved !== void 0)
|
|
19575
|
+
throw new WordingPackError(
|
|
19576
|
+
`wording pack carries the reserved key ${JSON.stringify(reserved)}`
|
|
19577
|
+
);
|
|
19571
19578
|
return {
|
|
19572
19579
|
id: p.id,
|
|
19573
19580
|
locale: p.locale,
|
|
@@ -20007,13 +20014,16 @@ ${s} .check .steps{margin:12px 0 0;padding-left:20px;font-size:14px;line-height:
|
|
|
20007
20014
|
// aggregate's unknown count is, what the page and the bundle carry, and
|
|
20008
20015
|
// the producer's findings label.
|
|
20009
20016
|
"front.mock",
|
|
20017
|
+
"front.agg.imported",
|
|
20010
20018
|
"front.agg.unknown.one",
|
|
20011
20019
|
"front.agg.unknown.other",
|
|
20012
20020
|
"front.agg.mismatch",
|
|
20013
|
-
"
|
|
20014
|
-
|
|
20015
|
-
|
|
20016
|
-
"
|
|
20021
|
+
// Module spec section 2, "Copied facts": a pack cannot make a date or a
|
|
20022
|
+
// switch copied from the contract read as checked here, and cannot
|
|
20023
|
+
// make a later claim read as in force.
|
|
20024
|
+
"applicability.as_of",
|
|
20025
|
+
"applicability.not_yet_in_force.note",
|
|
20026
|
+
"contract_fact.note",
|
|
20017
20027
|
// The record page, the lowest level (record-page.ts): what each proof
|
|
20018
20028
|
// proves and does not, what a status means, and what this page did not
|
|
20019
20029
|
// run. A pack cannot make a rung read as proving more than it does.
|
|
@@ -20590,9 +20600,9 @@ ${key}`);
|
|
|
20590
20600
|
return problems.map((p) => `${pack.id}: ${p}`);
|
|
20591
20601
|
}
|
|
20592
20602
|
var DEFAULT_PACK_SHA256 = Object.freeze({
|
|
20593
|
-
lines: "
|
|
20594
|
-
groups: "
|
|
20595
|
-
generic: "
|
|
20603
|
+
lines: "4a03428e884337321754bd6657df0ebb6d5441821378a3b1ff17f2a625021cc5",
|
|
20604
|
+
groups: "76acc9598202663738d7d2903ca1a042d9b7ca21799297946e4da39ea77d5250",
|
|
20605
|
+
generic: "6c7570711462e9a9af94faac45f56414fd97a1681608be03299f6fa756eaa41c"
|
|
20596
20606
|
});
|
|
20597
20607
|
function fill(key, text2, vars) {
|
|
20598
20608
|
return text2.replace(PLACEHOLDER, (whole, name) => {
|
|
@@ -22425,6 +22435,52 @@ ${key}`);
|
|
|
22425
22435
|
}
|
|
22426
22436
|
host.append(section);
|
|
22427
22437
|
}
|
|
22438
|
+
function renderNotYetInForce(host, model, w) {
|
|
22439
|
+
const entries = [
|
|
22440
|
+
...model.conversations.map((c) => ({ c, later: c.notYetInForce })),
|
|
22441
|
+
...model.notYetInForce.map((c) => ({ c, later: c.notYetInForce }))
|
|
22442
|
+
].filter((e) => e.later.length > 0);
|
|
22443
|
+
if (entries.length === 0) return;
|
|
22444
|
+
const total = entries.reduce((sum, e) => sum + e.later.length, 0);
|
|
22445
|
+
const section = el8("section", "sec");
|
|
22446
|
+
section.dataset.section = "not-yet-in-force";
|
|
22447
|
+
section.dataset.count = String(total);
|
|
22448
|
+
section.append(
|
|
22449
|
+
el8(
|
|
22450
|
+
"h2",
|
|
22451
|
+
"",
|
|
22452
|
+
w.t("applicability.not_yet_in_force.title", { n: fmtCount(total) })
|
|
22453
|
+
),
|
|
22454
|
+
el8("p", "lede", w.t("applicability.not_yet_in_force.note"))
|
|
22455
|
+
);
|
|
22456
|
+
const list2 = el8("ul", "later-list");
|
|
22457
|
+
for (const { c, later } of entries) {
|
|
22458
|
+
for (const cr of later) {
|
|
22459
|
+
const label = criterionLabel(model, cr.checkId, cr.criterionId, w);
|
|
22460
|
+
const item = el8("li", "later-item");
|
|
22461
|
+
item.dataset.conversation = c.conversationId;
|
|
22462
|
+
item.dataset.rule = `${cr.checkId}.${cr.criterionId}`;
|
|
22463
|
+
item.append(
|
|
22464
|
+
el8("b", "", label.label),
|
|
22465
|
+
document.createTextNode(` \xB7 ${c.conversationId} \xB7 `),
|
|
22466
|
+
el8(
|
|
22467
|
+
"span",
|
|
22468
|
+
"readiness",
|
|
22469
|
+
`${w.t("lines.later.readiness")}: ${w.enumWord("verdict", cr.verdict)}`
|
|
22470
|
+
)
|
|
22471
|
+
);
|
|
22472
|
+
if (cr.claim !== void 0) {
|
|
22473
|
+
const [, line, data] = assuranceRow(cr.claim, w);
|
|
22474
|
+
const assurance = el8("small", "assurance", ` \xB7 ${line}`);
|
|
22475
|
+
Object.assign(assurance.dataset, data);
|
|
22476
|
+
item.append(assurance);
|
|
22477
|
+
}
|
|
22478
|
+
list2.append(item);
|
|
22479
|
+
}
|
|
22480
|
+
}
|
|
22481
|
+
section.append(list2);
|
|
22482
|
+
host.append(section);
|
|
22483
|
+
}
|
|
22428
22484
|
function renderRules(host, model, runInfo, result3, w) {
|
|
22429
22485
|
const tierOf = model.gating?.tierOf;
|
|
22430
22486
|
const section = el8("section", "sec");
|
|
@@ -22472,11 +22528,19 @@ ${key}`);
|
|
|
22472
22528
|
const claim = model.conversations.flatMap((c) => c.criteria).find((c) => `${c.checkId}.${c.criterionId}` === ref && c.claim)?.claim;
|
|
22473
22529
|
return tierOf(claim?.contractRef, ref);
|
|
22474
22530
|
};
|
|
22531
|
+
const inForceRefs = new Set(
|
|
22532
|
+
model.conversations.flatMap(
|
|
22533
|
+
(c) => c.criteria.map((cr) => `${cr.checkId}.${cr.criterionId}`)
|
|
22534
|
+
)
|
|
22535
|
+
);
|
|
22536
|
+
const whollyLater = new Set(
|
|
22537
|
+
[...model.conversations, ...model.notYetInForce].flatMap((c) => c.notYetInForce).map((cr) => `${cr.checkId}.${cr.criterionId}`).filter((ref) => !inForceRefs.has(ref))
|
|
22538
|
+
);
|
|
22475
22539
|
const tiers = /* @__PURE__ */ new Map();
|
|
22476
22540
|
for (const check of model.terms.checks)
|
|
22477
22541
|
for (const criterion2 of check.criteria) {
|
|
22478
22542
|
const ref = `${check.id}.${criterion2.id}`;
|
|
22479
|
-
tiers.set(ref, ruleTier(ref));
|
|
22543
|
+
if (!whollyLater.has(ref)) tiers.set(ref, ruleTier(ref));
|
|
22480
22544
|
}
|
|
22481
22545
|
const sections = tierOf === void 0 ? [void 0] : ROW_TIERS.filter((tier) => [...tiers.values()].includes(tier));
|
|
22482
22546
|
for (const tier of sections) {
|
|
@@ -22495,7 +22559,7 @@ ${key}`);
|
|
|
22495
22559
|
}
|
|
22496
22560
|
for (const check of model.terms.checks) {
|
|
22497
22561
|
const criteria = check.criteria.filter(
|
|
22498
|
-
(criterion2) => tiers.get(`${check.id}.${criterion2.id}`) === tier
|
|
22562
|
+
(criterion2) => tiers.has(`${check.id}.${criterion2.id}`) && tiers.get(`${check.id}.${criterion2.id}`) === tier
|
|
22499
22563
|
);
|
|
22500
22564
|
if (criteria.length === 0) continue;
|
|
22501
22565
|
const group = el8("tr", "grp");
|
|
@@ -23184,6 +23248,7 @@ ${key}`);
|
|
|
23184
23248
|
if (subject !== void 0) levels.L0.append(subject);
|
|
23185
23249
|
}
|
|
23186
23250
|
renderRules(levels.L1, model, runInfo, result3, w);
|
|
23251
|
+
renderNotYetInForce(levels.L1, model, w);
|
|
23187
23252
|
leadWithProvenance(
|
|
23188
23253
|
levels.L1,
|
|
23189
23254
|
levels.L1.querySelector('[data-section="rules"]'),
|
|
@@ -23559,10 +23624,13 @@ ${key}`);
|
|
|
23559
23624
|
model.sessions.flatMap((s) => s.tests).find((t) => t.criterionId === row2.criterionId && t.claim)?.claim?.contractRef,
|
|
23560
23625
|
row2.criterionId
|
|
23561
23626
|
);
|
|
23562
|
-
const allRows = model.obligations.flatMap(
|
|
23627
|
+
const allRows = model.obligations.flatMap(
|
|
23628
|
+
(o) => o.rows.filter((r) => !allLater(r))
|
|
23629
|
+
);
|
|
23630
|
+
const laterRows = model.obligations.flatMap((o) => o.rows.filter(allLater));
|
|
23563
23631
|
const sections = tierOf === void 0 ? [void 0] : ROW_TIERS.filter((tier) => allRows.some((r) => tierOfRow(r) === tier));
|
|
23564
|
-
|
|
23565
|
-
if (tier !== void 0) {
|
|
23632
|
+
const drawSection = (tier, later) => {
|
|
23633
|
+
if (tier !== void 0 && !later) {
|
|
23566
23634
|
const head2 = document.createElement("tbody");
|
|
23567
23635
|
head2.dataset.requirementTier = tier;
|
|
23568
23636
|
const tr = el9("tr", "tier");
|
|
@@ -23584,7 +23652,12 @@ ${key}`);
|
|
|
23584
23652
|
table3.append(head2);
|
|
23585
23653
|
}
|
|
23586
23654
|
for (const given of model.obligations) {
|
|
23587
|
-
const obligation =
|
|
23655
|
+
const obligation = {
|
|
23656
|
+
...given,
|
|
23657
|
+
rows: given.rows.filter(
|
|
23658
|
+
(r) => allLater(r) === later && (tier === void 0 || tierOfRow(r) === tier)
|
|
23659
|
+
)
|
|
23660
|
+
};
|
|
23588
23661
|
if (obligation.rows.length === 0) continue;
|
|
23589
23662
|
const tbody = document.createElement("tbody");
|
|
23590
23663
|
tbody.dataset.obligationGroup = obligation.key;
|
|
@@ -23631,7 +23704,7 @@ ${key}`);
|
|
|
23631
23704
|
);
|
|
23632
23705
|
return body;
|
|
23633
23706
|
},
|
|
23634
|
-
tier === void 0 ? `ob-${obligation.key}` : `ob-${obligation.key}-${tier}`,
|
|
23707
|
+
later ? `ob-${obligation.key}-later` : tier === void 0 ? `ob-${obligation.key}` : `ob-${obligation.key}-${tier}`,
|
|
23635
23708
|
true
|
|
23636
23709
|
);
|
|
23637
23710
|
tbody.append(about);
|
|
@@ -23649,10 +23722,11 @@ ${key}`);
|
|
|
23649
23722
|
const head2 = el9("div", "tnh");
|
|
23650
23723
|
const testName = rowName2(w, "b", "", test);
|
|
23651
23724
|
head2.append(testName, tierBadge(test.tier, w));
|
|
23652
|
-
|
|
23653
|
-
|
|
23654
|
-
|
|
23655
|
-
chip
|
|
23725
|
+
const rowTier2 = tier ?? (later ? tierOfRow(test) : void 0);
|
|
23726
|
+
if (rowTier2 !== void 0) {
|
|
23727
|
+
tr.dataset.requirementTier = rowTier2;
|
|
23728
|
+
const chip = el9("span", "rtier", w.t(`requirement_tier.${rowTier2}`));
|
|
23729
|
+
chip.dataset.requirementTier = rowTier2;
|
|
23656
23730
|
head2.append(chip);
|
|
23657
23731
|
}
|
|
23658
23732
|
nameCell.append(head2);
|
|
@@ -23688,7 +23762,7 @@ ${key}`);
|
|
|
23688
23762
|
testName,
|
|
23689
23763
|
drillRow,
|
|
23690
23764
|
() => renderSessionList(sessionIds, model, presentation, w),
|
|
23691
|
-
`test-${obligation.key}-${test.criterionId}`
|
|
23765
|
+
`test-${obligation.key}-${test.criterionId}${later ? "-later" : ""}`
|
|
23692
23766
|
);
|
|
23693
23767
|
toggle.dataset.records = "sessions";
|
|
23694
23768
|
toggle.dataset.drill = test.criterionId;
|
|
@@ -23698,6 +23772,28 @@ ${key}`);
|
|
|
23698
23772
|
}
|
|
23699
23773
|
table3.append(tbody);
|
|
23700
23774
|
}
|
|
23775
|
+
};
|
|
23776
|
+
for (const tier of sections) drawSection(tier, false);
|
|
23777
|
+
if (laterRows.length > 0) {
|
|
23778
|
+
const head2 = document.createElement("tbody");
|
|
23779
|
+
head2.dataset.section = "not-yet-in-force";
|
|
23780
|
+
const tr = el9("tr", "tier later");
|
|
23781
|
+
const cell2 = el9("td", "");
|
|
23782
|
+
cell2.setAttribute("colspan", "3");
|
|
23783
|
+
cell2.append(
|
|
23784
|
+
el9(
|
|
23785
|
+
"b",
|
|
23786
|
+
"",
|
|
23787
|
+
w.t("applicability.not_yet_in_force.title", {
|
|
23788
|
+
n: fmt4(laterRows.length)
|
|
23789
|
+
})
|
|
23790
|
+
),
|
|
23791
|
+
el9("small", "", w.t("applicability.not_yet_in_force.note"))
|
|
23792
|
+
);
|
|
23793
|
+
tr.append(cell2);
|
|
23794
|
+
head2.append(tr);
|
|
23795
|
+
table3.append(head2);
|
|
23796
|
+
drawSection(void 0, true);
|
|
23701
23797
|
}
|
|
23702
23798
|
section.append(table3);
|
|
23703
23799
|
const notes = el9("aside", "footnotes");
|
|
@@ -25610,30 +25706,37 @@ ${key}`);
|
|
|
25610
25706
|
el12("span", "agg-of", of)
|
|
25611
25707
|
);
|
|
25612
25708
|
box.append(caption);
|
|
25709
|
+
if (verdict2 === "out_of_scope") {
|
|
25710
|
+
const fact = el12("div", "agg-fact", contractFactNote(w));
|
|
25711
|
+
fact.dataset.contractFact = "out-of-scope";
|
|
25712
|
+
box.append(fact);
|
|
25713
|
+
}
|
|
25613
25714
|
const marker = mismatchMarker(figure, field, w);
|
|
25614
25715
|
if (marker !== void 0) box.append(marker);
|
|
25615
25716
|
buckets.append(box);
|
|
25616
25717
|
}
|
|
25617
25718
|
out.append(buckets);
|
|
25618
25719
|
const dated = result3.claims.some((claim) => claim.appliesFrom !== void 0);
|
|
25619
|
-
|
|
25620
|
-
if (dated || switched) {
|
|
25720
|
+
if (dated) {
|
|
25621
25721
|
const copied = el12("p", "agg-note");
|
|
25622
25722
|
if (dated) {
|
|
25623
25723
|
const date = utcDateOf(result3.generatedAt) ?? result3.generatedAt;
|
|
25624
|
-
|
|
25724
|
+
const word = w.section3("applicability.as_of");
|
|
25725
|
+
copied.append(
|
|
25726
|
+
word !== void 0 && word.split("{date}").length === 2 ? word.replace("{date}", date) : date,
|
|
25727
|
+
" "
|
|
25728
|
+
);
|
|
25625
25729
|
copied.dataset.asOf = date;
|
|
25626
25730
|
}
|
|
25627
|
-
copied.append(
|
|
25628
|
-
w.t(
|
|
25629
|
-
dated && switched ? "front.agg.copied.both" : dated ? "front.agg.copied.dates" : "front.agg.copied.switch"
|
|
25630
|
-
)
|
|
25631
|
-
);
|
|
25731
|
+
copied.append(contractFactNote(w));
|
|
25632
25732
|
copied.dataset.copiedFacts = "contract";
|
|
25633
25733
|
out.append(copied);
|
|
25634
25734
|
}
|
|
25635
25735
|
return out;
|
|
25636
25736
|
}
|
|
25737
|
+
function contractFactNote(w) {
|
|
25738
|
+
return w.section3("contract_fact.note") ?? DEFAULT_PACKS.lines.entries["contract_fact.note"];
|
|
25739
|
+
}
|
|
25637
25740
|
var shortDigest = (digest2) => digest2.length > 12 ? `${digest2.slice(0, 4)}\u2026${digest2.slice(-4)}` : digest2;
|
|
25638
25741
|
function renderCoreIdentity(model) {
|
|
25639
25742
|
const { result: result3, words: w } = model;
|
|
@@ -25676,10 +25779,33 @@ ${key}`);
|
|
|
25676
25779
|
block.append(top, rest);
|
|
25677
25780
|
return block;
|
|
25678
25781
|
}
|
|
25679
|
-
|
|
25782
|
+
function backfillOnly(document2) {
|
|
25783
|
+
const isObj5 = (v) => typeof v === "object" && v !== null && !Array.isArray(v);
|
|
25784
|
+
if (!isObj5(document2) || !isObj5(document2["coverage_report"])) return false;
|
|
25785
|
+
const requirements = document2["coverage_report"]["requirements"];
|
|
25786
|
+
if (!Array.isArray(requirements)) return false;
|
|
25787
|
+
let records = 0;
|
|
25788
|
+
for (const requirement of requirements) {
|
|
25789
|
+
if (!isObj5(requirement)) return false;
|
|
25790
|
+
const list2 = requirement["sources"];
|
|
25791
|
+
if (list2 === void 0) continue;
|
|
25792
|
+
if (!Array.isArray(list2)) return false;
|
|
25793
|
+
for (const source of list2) {
|
|
25794
|
+
if (!isObj5(source)) return false;
|
|
25795
|
+
const { contemporaneous_count: live, backfilled_count: back } = source;
|
|
25796
|
+
const total = source["record_count"];
|
|
25797
|
+
if (live !== 0 || !Number.isSafeInteger(total) || total < 0 || back !== total)
|
|
25798
|
+
return false;
|
|
25799
|
+
records += total;
|
|
25800
|
+
}
|
|
25801
|
+
}
|
|
25802
|
+
return records > 0;
|
|
25803
|
+
}
|
|
25804
|
+
async function coreStripModel(result3, words, document2) {
|
|
25680
25805
|
const tally2 = await tallyJudges(result3.records, result3.claims);
|
|
25681
25806
|
return {
|
|
25682
25807
|
result: result3,
|
|
25808
|
+
imported: backfillOnly(document2),
|
|
25683
25809
|
words,
|
|
25684
25810
|
mock: judgedByMock(tally2),
|
|
25685
25811
|
pins: tally2.pins.map((pin) => pin.digest)
|
|
@@ -25697,6 +25823,14 @@ ${key}`);
|
|
|
25697
25823
|
mark.dataset.section = "mock-judge";
|
|
25698
25824
|
strip.append(mark);
|
|
25699
25825
|
}
|
|
25826
|
+
if (model.imported) {
|
|
25827
|
+
const note = tagSource(
|
|
25828
|
+
el12("p", "agg-note imported", model.words.t("front.agg.imported")),
|
|
25829
|
+
"core"
|
|
25830
|
+
);
|
|
25831
|
+
note.dataset.imported = "";
|
|
25832
|
+
strip.append(note);
|
|
25833
|
+
}
|
|
25700
25834
|
strip.append(renderCoreIdentity(model));
|
|
25701
25835
|
strip.append(renderAggregate(model.result, model.words));
|
|
25702
25836
|
return strip;
|
|
@@ -28343,7 +28477,12 @@ ${pad.repeat(depth)}`;
|
|
|
28343
28477
|
const words = result3 === void 0 && !charted ? void 0 : await contractReportWords(grouping, options.wording, {
|
|
28344
28478
|
singleContract: result3 !== void 0 && citesOneContract(result3)
|
|
28345
28479
|
});
|
|
28346
|
-
if (result3 !== void 0)
|
|
28480
|
+
if (result3 !== void 0)
|
|
28481
|
+
strip = await coreStripModel(
|
|
28482
|
+
result3,
|
|
28483
|
+
words,
|
|
28484
|
+
resultDocument2(context, result3)
|
|
28485
|
+
);
|
|
28347
28486
|
if (charted)
|
|
28348
28487
|
chartsNode = await drawCharts(
|
|
28349
28488
|
context,
|
|
@@ -30358,6 +30497,7 @@ ${pad.repeat(depth)}`;
|
|
|
30358
30497
|
.cvh-seal-title{font-weight:700}.cvh-checked summary{cursor:pointer;font-weight:700;color:var(--cvh-navy)}
|
|
30359
30498
|
.cvh-check[data-status=fail]{color:var(--cvh-bad)}.cvh-check[data-status=pass]{color:var(--cvh-ok)}
|
|
30360
30499
|
.cvh-main,.cvh-side{display:grid;gap:16px;align-content:start}.cvh-refused{border:1px solid var(--cvh-bad);color:var(--cvh-bad);padding:8px 12px;border-radius:8px}
|
|
30500
|
+
@media screen and (prefers-color-scheme:dark){.cv-history{--cvh-ink:#e8eaee;--cvh-slate:#a3a9b3;--cvh-line:#33373e;--cvh-cream:#22262d;--cvh-navy:#c3d0e8;--cvh-ok:#5fcf90;--cvh-bad:#ff8f84;background:#16181c;color-scheme:dark}.cvh-badge[data-audience=private]{background:#3a2f1a;border-color:#e6b85c}}
|
|
30361
30501
|
@media (min-width:900px){.cv-history{grid-template-columns:minmax(0,3fr) minmax(0,2fr)}.cvh-header{grid-column:1/-1}}
|
|
30362
30502
|
@media print{.cv-history{max-width:none;grid-template-columns:1fr}.cvh-proof code{display:block}}
|
|
30363
30503
|
`;
|
package/dist/history-view.d.ts
CHANGED
|
@@ -304,7 +304,7 @@ export declare function historyViewHtml(input: unknown, overlay?: unknown): stri
|
|
|
304
304
|
* refused input draws one visible refusal line and returns false.
|
|
305
305
|
*/
|
|
306
306
|
export declare function renderHistoryView(input: unknown, container: Element, overlay?: unknown): boolean;
|
|
307
|
-
/** The view's stylesheet: one column under 900px, two above, and
|
|
308
|
-
export declare const historyViewStyles = ".cv-history{--cvh-ink:#1f2733;--cvh-slate:#6b7482;--cvh-line:#e3ded3;--cvh-cream:#f6f2ea;--cvh-navy:#232f42;--cvh-ok:#2e7d5b;--cvh-bad:#b5462f;font:16px/1.45 system-ui,sans-serif;color:var(--cvh-ink);max-width:1120px;margin:0 auto;padding:16px;display:grid;gap:16px}\n.cv-history h1{font-size:22px;margin:0}.cv-history h2{font-size:15px;margin:0 0 8px;color:var(--cvh-navy)}\n.cvh-header p{margin:4px 0}.cvh-badge{display:inline-block;border:1px solid var(--cvh-line);border-radius:6px;padding:2px 8px;font-size:12px;font-weight:700;letter-spacing:.02em}\n.cvh-badge[data-audience=private]{background:#fbefd9;border-color:#e8a33d}.cvh-built,.cvh-note{color:var(--cvh-slate);font-size:13px}\n.cvh-hero-line{font-size:20px;font-weight:700;margin:0}.cvh-hero-note{margin:6px 0 0;color:var(--cvh-slate)}\n.cvh-chips{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:8px}.cvh-chip{background:var(--cvh-cream);border-radius:999px;padding:3px 10px;font-size:13px}\n.cvh-rows{list-style:none;padding:0;margin:0}.cvh-row{border:1px solid var(--cvh-line);border-radius:10px;padding:10px 12px;margin:0 0 10px}\n.cvh-row p{margin:0 0 4px}.cvh-row-title{font-weight:700}.cvh-row-detail{color:var(--cvh-slate);font-size:14px}\n.cvh-proof summary{cursor:pointer;font-size:13px;color:var(--cvh-slate)}.cvh-proof code{font-size:12px;word-break:break-all}\n.cvh-stamps{list-style:none;padding:0;margin:8px 0 0;display:flex;flex-wrap:wrap;gap:8px}\n.cvh-stamp,.cvh-seal-slot{border:2px solid var(--cvh-navy);border-radius:999px;padding:2px 10px;font-size:12px;color:var(--cvh-navy)}\n.cvh-stamp[data-filled=no],.cvh-seal-slot[data-filled=no]{border-style:dotted;border-color:#9aa1ab;color:var(--cvh-slate)}\n.cvh-stamp[data-state=failed]{border-color:var(--cvh-bad);color:var(--cvh-bad)}\n.cvh-stamp-name{font-weight:800}.cvh-stamp-line{margin-left:6px}\n.cvh-callout,.cvh-shares,.cvh-seal,.cvh-periods{border:1px solid var(--cvh-line);border-radius:10px;padding:12px}\n.cvh-callout{background:var(--cvh-cream)}.cvh-callout p,.cvh-seal p{margin:0 0 6px}.cvh-shares ul,.cvh-periods ul{margin:0;padding-left:18px}\n.cvh-seal-title{font-weight:700}.cvh-checked summary{cursor:pointer;font-weight:700;color:var(--cvh-navy)}\n.cvh-check[data-status=fail]{color:var(--cvh-bad)}.cvh-check[data-status=pass]{color:var(--cvh-ok)}\n.cvh-main,.cvh-side{display:grid;gap:16px;align-content:start}.cvh-refused{border:1px solid var(--cvh-bad);color:var(--cvh-bad);padding:8px 12px;border-radius:8px}\n@media (min-width:900px){.cv-history{grid-template-columns:minmax(0,3fr) minmax(0,2fr)}.cvh-header{grid-column:1/-1}}\n@media print{.cv-history{max-width:none;grid-template-columns:1fr}.cvh-proof code{display:block}}\n";
|
|
307
|
+
/** The view's stylesheet: one column under 900px, two above, print, and a dark palette (with its own background) on a dark screen. */
|
|
308
|
+
export declare const historyViewStyles = ".cv-history{--cvh-ink:#1f2733;--cvh-slate:#6b7482;--cvh-line:#e3ded3;--cvh-cream:#f6f2ea;--cvh-navy:#232f42;--cvh-ok:#2e7d5b;--cvh-bad:#b5462f;font:16px/1.45 system-ui,sans-serif;color:var(--cvh-ink);max-width:1120px;margin:0 auto;padding:16px;display:grid;gap:16px}\n.cv-history h1{font-size:22px;margin:0}.cv-history h2{font-size:15px;margin:0 0 8px;color:var(--cvh-navy)}\n.cvh-header p{margin:4px 0}.cvh-badge{display:inline-block;border:1px solid var(--cvh-line);border-radius:6px;padding:2px 8px;font-size:12px;font-weight:700;letter-spacing:.02em}\n.cvh-badge[data-audience=private]{background:#fbefd9;border-color:#e8a33d}.cvh-built,.cvh-note{color:var(--cvh-slate);font-size:13px}\n.cvh-hero-line{font-size:20px;font-weight:700;margin:0}.cvh-hero-note{margin:6px 0 0;color:var(--cvh-slate)}\n.cvh-chips{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:8px}.cvh-chip{background:var(--cvh-cream);border-radius:999px;padding:3px 10px;font-size:13px}\n.cvh-rows{list-style:none;padding:0;margin:0}.cvh-row{border:1px solid var(--cvh-line);border-radius:10px;padding:10px 12px;margin:0 0 10px}\n.cvh-row p{margin:0 0 4px}.cvh-row-title{font-weight:700}.cvh-row-detail{color:var(--cvh-slate);font-size:14px}\n.cvh-proof summary{cursor:pointer;font-size:13px;color:var(--cvh-slate)}.cvh-proof code{font-size:12px;word-break:break-all}\n.cvh-stamps{list-style:none;padding:0;margin:8px 0 0;display:flex;flex-wrap:wrap;gap:8px}\n.cvh-stamp,.cvh-seal-slot{border:2px solid var(--cvh-navy);border-radius:999px;padding:2px 10px;font-size:12px;color:var(--cvh-navy)}\n.cvh-stamp[data-filled=no],.cvh-seal-slot[data-filled=no]{border-style:dotted;border-color:#9aa1ab;color:var(--cvh-slate)}\n.cvh-stamp[data-state=failed]{border-color:var(--cvh-bad);color:var(--cvh-bad)}\n.cvh-stamp-name{font-weight:800}.cvh-stamp-line{margin-left:6px}\n.cvh-callout,.cvh-shares,.cvh-seal,.cvh-periods{border:1px solid var(--cvh-line);border-radius:10px;padding:12px}\n.cvh-callout{background:var(--cvh-cream)}.cvh-callout p,.cvh-seal p{margin:0 0 6px}.cvh-shares ul,.cvh-periods ul{margin:0;padding-left:18px}\n.cvh-seal-title{font-weight:700}.cvh-checked summary{cursor:pointer;font-weight:700;color:var(--cvh-navy)}\n.cvh-check[data-status=fail]{color:var(--cvh-bad)}.cvh-check[data-status=pass]{color:var(--cvh-ok)}\n.cvh-main,.cvh-side{display:grid;gap:16px;align-content:start}.cvh-refused{border:1px solid var(--cvh-bad);color:var(--cvh-bad);padding:8px 12px;border-radius:8px}\n@media screen and (prefers-color-scheme:dark){.cv-history{--cvh-ink:#e8eaee;--cvh-slate:#a3a9b3;--cvh-line:#33373e;--cvh-cream:#22262d;--cvh-navy:#c3d0e8;--cvh-ok:#5fcf90;--cvh-bad:#ff8f84;background:#16181c;color-scheme:dark}.cvh-badge[data-audience=private]{background:#3a2f1a;border-color:#e6b85c}}\n@media (min-width:900px){.cv-history{grid-template-columns:minmax(0,3fr) minmax(0,2fr)}.cvh-header{grid-column:1/-1}}\n@media print{.cv-history{max-width:none;grid-template-columns:1fr}.cvh-proof code{display:block}}\n";
|
|
309
309
|
/** A whole static page (no script) holding the History view; throws HistoryViewRefused. */
|
|
310
310
|
export declare function historyViewDocument(input: unknown, overlay?: unknown, title?: string): string;
|
|
@@ -1304,6 +1304,7 @@ var HistoryView = (() => {
|
|
|
1304
1304
|
.cvh-seal-title{font-weight:700}.cvh-checked summary{cursor:pointer;font-weight:700;color:var(--cvh-navy)}
|
|
1305
1305
|
.cvh-check[data-status=fail]{color:var(--cvh-bad)}.cvh-check[data-status=pass]{color:var(--cvh-ok)}
|
|
1306
1306
|
.cvh-main,.cvh-side{display:grid;gap:16px;align-content:start}.cvh-refused{border:1px solid var(--cvh-bad);color:var(--cvh-bad);padding:8px 12px;border-radius:8px}
|
|
1307
|
+
@media screen and (prefers-color-scheme:dark){.cv-history{--cvh-ink:#e8eaee;--cvh-slate:#a3a9b3;--cvh-line:#33373e;--cvh-cream:#22262d;--cvh-navy:#c3d0e8;--cvh-ok:#5fcf90;--cvh-bad:#ff8f84;background:#16181c;color-scheme:dark}.cvh-badge[data-audience=private]{background:#3a2f1a;border-color:#e6b85c}}
|
|
1307
1308
|
@media (min-width:900px){.cv-history{grid-template-columns:minmax(0,3fr) minmax(0,2fr)}.cvh-header{grid-column:1/-1}}
|
|
1308
1309
|
@media print{.cv-history{max-width:none;grid-template-columns:1fr}.cvh-proof code{display:block}}
|
|
1309
1310
|
`;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
7bb461b020c72110a714eeca3c060362db441275bbb49cc8e0b29c5eeb0105e3 history-view.iife.js
|
package/dist/history-view.js
CHANGED
|
@@ -994,7 +994,7 @@ export function renderHistoryView(input, container, overlay) {
|
|
|
994
994
|
container.replaceChildren(node);
|
|
995
995
|
return built.ok;
|
|
996
996
|
}
|
|
997
|
-
/** The view's stylesheet: one column under 900px, two above, and
|
|
997
|
+
/** The view's stylesheet: one column under 900px, two above, print, and a dark palette (with its own background) on a dark screen. */
|
|
998
998
|
export const historyViewStyles = `.cv-history{--cvh-ink:#1f2733;--cvh-slate:#6b7482;--cvh-line:#e3ded3;--cvh-cream:#f6f2ea;--cvh-navy:#232f42;--cvh-ok:#2e7d5b;--cvh-bad:#b5462f;font:16px/1.45 system-ui,sans-serif;color:var(--cvh-ink);max-width:1120px;margin:0 auto;padding:16px;display:grid;gap:16px}
|
|
999
999
|
.cv-history h1{font-size:22px;margin:0}.cv-history h2{font-size:15px;margin:0 0 8px;color:var(--cvh-navy)}
|
|
1000
1000
|
.cvh-header p{margin:4px 0}.cvh-badge{display:inline-block;border:1px solid var(--cvh-line);border-radius:6px;padding:2px 8px;font-size:12px;font-weight:700;letter-spacing:.02em}
|
|
@@ -1014,6 +1014,7 @@ export const historyViewStyles = `.cv-history{--cvh-ink:#1f2733;--cvh-slate:#6b7
|
|
|
1014
1014
|
.cvh-seal-title{font-weight:700}.cvh-checked summary{cursor:pointer;font-weight:700;color:var(--cvh-navy)}
|
|
1015
1015
|
.cvh-check[data-status=fail]{color:var(--cvh-bad)}.cvh-check[data-status=pass]{color:var(--cvh-ok)}
|
|
1016
1016
|
.cvh-main,.cvh-side{display:grid;gap:16px;align-content:start}.cvh-refused{border:1px solid var(--cvh-bad);color:var(--cvh-bad);padding:8px 12px;border-radius:8px}
|
|
1017
|
+
@media screen and (prefers-color-scheme:dark){.cv-history{--cvh-ink:#e8eaee;--cvh-slate:#a3a9b3;--cvh-line:#33373e;--cvh-cream:#22262d;--cvh-navy:#c3d0e8;--cvh-ok:#5fcf90;--cvh-bad:#ff8f84;background:#16181c;color-scheme:dark}.cvh-badge[data-audience=private]{background:#3a2f1a;border-color:#e6b85c}}
|
|
1017
1018
|
@media (min-width:900px){.cv-history{grid-template-columns:minmax(0,3fr) minmax(0,2fr)}.cvh-header{grid-column:1/-1}}
|
|
1018
1019
|
@media print{.cv-history{max-width:none;grid-template-columns:1fr}.cvh-proof code{display:block}}
|
|
1019
1020
|
`;
|