@action-state-group/capsule-viewer 0.1.0 → 0.4.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/README.md +74 -2
- package/dist/alias-interpreters.d.ts +18 -0
- package/dist/alias-interpreters.js +50 -0
- package/dist/alias-interpreters.js.map +1 -0
- package/dist/browser.d.ts +5 -2
- package/dist/browser.js +19 -5
- package/dist/browser.js.map +1 -1
- package/dist/builtin-manifests.d.ts +51 -0
- package/dist/builtin-manifests.js +196 -0
- package/dist/builtin-manifests.js.map +1 -0
- package/dist/chart-dataset.d.ts +23 -0
- package/dist/chart-dataset.js +191 -0
- package/dist/chart-dataset.js.map +1 -0
- package/dist/chart-spec.d.ts +130 -0
- package/dist/chart-spec.js +638 -0
- package/dist/chart-spec.js.map +1 -0
- package/dist/chart-view.d.ts +27 -0
- package/dist/chart-view.js +374 -0
- package/dist/chart-view.js.map +1 -0
- package/dist/compliance-styles.d.ts +1 -8
- package/dist/compliance-styles.js +40 -3
- package/dist/compliance-styles.js.map +1 -1
- package/dist/compliance-view.d.ts +41 -1
- package/dist/compliance-view.js +773 -303
- package/dist/compliance-view.js.map +1 -1
- package/dist/compliance.d.ts +33 -4
- package/dist/compliance.js +92 -13
- package/dist/compliance.js.map +1 -1
- package/dist/composed-styles.d.ts +12 -0
- package/dist/composed-styles.js +20 -0
- package/dist/composed-styles.js.map +1 -0
- package/dist/composed-view.d.ts +1 -1
- package/dist/composed-view.js +9 -2
- package/dist/composed-view.js.map +1 -1
- package/dist/contract-report-wording.d.ts +195 -0
- package/dist/contract-report-wording.js +1177 -0
- package/dist/contract-report-wording.js.map +1 -0
- package/dist/contract-report.d.ts +92 -0
- package/dist/contract-report.js +63 -0
- package/dist/contract-report.js.map +1 -0
- package/dist/core-strip.d.ts +38 -0
- package/dist/core-strip.js +183 -0
- package/dist/core-strip.js.map +1 -0
- package/dist/emitter-shell.html +181 -3
- package/dist/emitter.d.ts +36 -0
- package/dist/emitter.js +77 -4
- package/dist/emitter.js.map +1 -1
- package/dist/evidence-graph-view.d.ts +66 -7
- package/dist/evidence-graph-view.js +1483 -127
- package/dist/evidence-graph-view.js.map +1 -1
- package/dist/evidence-graph.iife.js +17741 -6812
- package/dist/frame-tokens.generated.d.ts +3 -0
- package/dist/frame-tokens.generated.js +5 -0
- package/dist/frame-tokens.generated.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/outcome-report-presentation.d.ts +48 -0
- package/dist/outcome-report-presentation.js +90 -0
- package/dist/outcome-report-presentation.js.map +1 -0
- package/dist/outcome-report-styles.d.ts +1 -16
- package/dist/outcome-report-styles.js +48 -45
- package/dist/outcome-report-styles.js.map +1 -1
- package/dist/outcome-report-view.d.ts +75 -2
- package/dist/outcome-report-view.js +1063 -436
- package/dist/outcome-report-view.js.map +1 -1
- package/dist/presentation-builder.d.ts +70 -6
- package/dist/presentation-builder.js +198 -70
- package/dist/presentation-builder.js.map +1 -1
- package/dist/presentation-fragment.d.ts +129 -0
- package/dist/presentation-fragment.js +213 -0
- package/dist/presentation-fragment.js.map +1 -0
- package/dist/presentation-mount.d.ts +4 -2
- package/dist/presentation-mount.js +2 -1
- package/dist/presentation-mount.js.map +1 -1
- package/dist/presentation-registry.d.ts +277 -0
- package/dist/presentation-registry.js +416 -0
- package/dist/presentation-registry.js.map +1 -0
- package/dist/record-content.d.ts +68 -0
- package/dist/record-content.js +153 -0
- package/dist/record-content.js.map +1 -0
- package/dist/record-dating.d.ts +10 -0
- package/dist/record-dating.js +76 -0
- package/dist/record-dating.js.map +1 -0
- package/dist/report-front-styles.d.ts +9 -0
- package/dist/report-front-styles.js +43 -0
- package/dist/report-front-styles.js.map +1 -0
- package/dist/report-front.d.ts +56 -0
- package/dist/report-front.js +140 -0
- package/dist/report-front.js.map +1 -0
- package/dist/report-levels.d.ts +238 -0
- package/dist/report-levels.js +874 -0
- package/dist/report-levels.js.map +1 -0
- package/dist/report-provenance.d.ts +111 -0
- package/dist/report-provenance.js +535 -0
- package/dist/report-provenance.js.map +1 -0
- package/dist/viewer-build.d.ts +37 -0
- package/dist/viewer-build.js +29 -0
- package/dist/viewer-build.js.map +1 -0
- package/dist/wording/contract-report-eu-ai-act.en.json +319 -0
- package/dist/wording/contract-report-outcomes.en.json +418 -0
- package/package.json +6 -3
|
@@ -1,6 +1,46 @@
|
|
|
1
1
|
import type { BundleVerificationResult } from "@action-state-group/agent-action-capsule";
|
|
2
2
|
import { type ComplianceModel, type ComplianceFindingModel, type ObligationModel, type ObligationRowModel, type Session, type SessionTest } from "./compliance.js";
|
|
3
3
|
import type { CompliancePresentation } from "./compliance-presentation.js";
|
|
4
|
+
import { type Words } from "./contract-report-wording.js";
|
|
4
5
|
import type { ResultRoot } from "@action-state-group/agent-action-capsule";
|
|
5
|
-
|
|
6
|
+
/**
|
|
7
|
+
* An obligation's status, from the sealed counts alone. Its applicability
|
|
8
|
+
* (in force, or from a later date) is the producer's mapping: it is never
|
|
9
|
+
* drawn in this pill, which speaks only for the records, and is shown
|
|
10
|
+
* instead in the producer's own italic line beside the title.
|
|
11
|
+
*
|
|
12
|
+
* "No exceptions", in the ok tone, only when every one of its tests was met
|
|
13
|
+
* by at least one session and no session's result for it was not met: an
|
|
14
|
+
* obligation one of whose tests no session met (every result undecided,
|
|
15
|
+
* unverified or absent) does not read clean. When none of its tests could
|
|
16
|
+
* be checked it reads "Could not be checked"; when some could not, the pill
|
|
17
|
+
* is neutral and says how many.
|
|
18
|
+
*/
|
|
19
|
+
export declare function obligationStatus(obligation: ObligationModel, w?: Words): {
|
|
20
|
+
cls: string;
|
|
21
|
+
text: string;
|
|
22
|
+
};
|
|
23
|
+
/** A test's result in the summary: a status, and an optional note under it. */
|
|
24
|
+
export declare function rowStatus(row: ObligationRowModel, w?: Words): {
|
|
25
|
+
cls: string;
|
|
26
|
+
text: string;
|
|
27
|
+
note?: string;
|
|
28
|
+
producerNote?: true;
|
|
29
|
+
};
|
|
30
|
+
/** The `groups` grouping's page wrapper: its element, class, page name and stylesheet. */
|
|
31
|
+
export declare const GROUPS_FRAME: {
|
|
32
|
+
readonly tag: "div";
|
|
33
|
+
readonly className: "cc";
|
|
34
|
+
readonly page: "compliance";
|
|
35
|
+
readonly css: string;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Draw the `groups` grouping into `wrapper` (contract-report.ts made it and
|
|
39
|
+
* put its stylesheet in it). Every word is `w`'s.
|
|
40
|
+
*/
|
|
41
|
+
export declare function drawGroups(levels: {
|
|
42
|
+
readonly L0: HTMLElement;
|
|
43
|
+
readonly L1: HTMLElement;
|
|
44
|
+
readonly L2: HTMLElement;
|
|
45
|
+
}, result: ResultRoot, presentation: CompliancePresentation, bundle: unknown, verified: BundleVerificationResult, w: Words): Promise<void>;
|
|
6
46
|
export type { ComplianceModel, ComplianceFindingModel, ObligationModel, ObligationRowModel, Session, SessionTest, };
|