@muonroi/ui-engine-rule-components 0.1.23 → 0.1.25
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/components/journey-home/journey-manifest.d.ts +44 -0
- package/dist/components/journey-home/journey-manifest.d.ts.map +1 -0
- package/dist/components/journey-home/mu-journey-home.d.ts +53 -0
- package/dist/components/journey-home/mu-journey-home.d.ts.map +1 -0
- package/dist/muonroi-rule-components.esm.js +9594 -9305
- package/dist/muonroi-rule-components.iife.js +712 -562
- package/dist/registry.d.ts +1 -0
- package/dist/registry.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* journey-manifest.ts — Static BA Transformation Journey stage definitions.
|
|
3
|
+
*
|
|
4
|
+
* WAY-05: The journey definition lives in the ui-engine library, not in any consumer dashboard.
|
|
5
|
+
* All stage copy, before/after framing, link targets, and live-state keys are declared here.
|
|
6
|
+
* Updates to stage content ship as a ui-engine version publish; consumers only bump the pin.
|
|
7
|
+
*
|
|
8
|
+
* No secrets, no PII, no tenant-specific data in this manifest.
|
|
9
|
+
*/
|
|
10
|
+
export interface JourneyStage {
|
|
11
|
+
/** Unique identifier for the stage (kebab-case). */
|
|
12
|
+
id: string;
|
|
13
|
+
/** Display label for the stage card heading. */
|
|
14
|
+
label: string;
|
|
15
|
+
/** Unicode icon shown next to the stage label. */
|
|
16
|
+
icon: string;
|
|
17
|
+
/** Heading for the "before" framing panel. */
|
|
18
|
+
beforeLabel: string;
|
|
19
|
+
/** Description of the old, painful manual way. */
|
|
20
|
+
beforeText: string;
|
|
21
|
+
/** Heading for the "after" framing panel (with platform). */
|
|
22
|
+
afterLabel: string;
|
|
23
|
+
/** Description of how the platform replaces or improves the step. */
|
|
24
|
+
afterText: string;
|
|
25
|
+
/**
|
|
26
|
+
* React-router path to navigate to when the CTA is clicked.
|
|
27
|
+
* The token `:workflow` is replaced at runtime with encodeURIComponent(workflow).
|
|
28
|
+
*/
|
|
29
|
+
linkPath: string;
|
|
30
|
+
/** CTA button label shown on the stage card. */
|
|
31
|
+
linkLabel: string;
|
|
32
|
+
/**
|
|
33
|
+
* Which live-state attribute to show as a badge on this card.
|
|
34
|
+
* Absent on stages that have no per-stage live metric.
|
|
35
|
+
* The component reads the corresponding numeric attribute (default null = "N/A").
|
|
36
|
+
*/
|
|
37
|
+
liveStateKey?: "activeVersion" | "tracedCount" | "untestedCount" | "pendingCount";
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Ordered list of the 6 BA Transformation Journey stages.
|
|
41
|
+
* Rendered in declaration order by mu-journey-home.
|
|
42
|
+
*/
|
|
43
|
+
export declare const JOURNEY_STAGES: JourneyStage[];
|
|
44
|
+
//# sourceMappingURL=journey-manifest.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"journey-manifest.d.ts","sourceRoot":"","sources":["../../../src/components/journey-home/journey-manifest.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,MAAM,WAAW,YAAY;IAC3B,oDAAoD;IACpD,EAAE,EAAE,MAAM,CAAC;IACX,gDAAgD;IAChD,KAAK,EAAE,MAAM,CAAC;IACd,kDAAkD;IAClD,IAAI,EAAE,MAAM,CAAC;IACb,8CAA8C;IAC9C,WAAW,EAAE,MAAM,CAAC;IACpB,kDAAkD;IAClD,UAAU,EAAE,MAAM,CAAC;IACnB,6DAA6D;IAC7D,UAAU,EAAE,MAAM,CAAC;IACnB,qEAAqE;IACrE,SAAS,EAAE,MAAM,CAAC;IAClB;;;OAGG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB,gDAAgD;IAChD,SAAS,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,YAAY,CAAC,EAAE,eAAe,GAAG,aAAa,GAAG,eAAe,GAAG,cAAc,CAAC;CACnF;AAED;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,YAAY,EAgFxC,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import { LitElement } from "lit";
|
|
2
|
+
/**
|
|
3
|
+
* mu-journey-home — BA Transformation Journey landing component.
|
|
4
|
+
*
|
|
5
|
+
* Renders 6 ordered stage cards (Elicit → Specify → Validate → Govern → LivingDocs → Trace)
|
|
6
|
+
* with before→after framing copy (WAY-02) and a CTA per stage.
|
|
7
|
+
*
|
|
8
|
+
* Clicking a stage CTA dispatches `journey-stage-navigate` (composed + bubbling, WAY-03)
|
|
9
|
+
* with detail.path = the resolved linkPath for that stage.
|
|
10
|
+
*
|
|
11
|
+
* Stage copy/links live in the static manifest in journey-manifest.ts (WAY-05).
|
|
12
|
+
* Live-state counts (active version, traced requirements, untested rules, pending approvals)
|
|
13
|
+
* arrive as numeric attributes from the React dashboard page (WAY-04).
|
|
14
|
+
*
|
|
15
|
+
* Property contract:
|
|
16
|
+
* workflow — current workflow identifier (string); empty = no CTA rendered
|
|
17
|
+
* tenant-id — active tenant ID (passed through for host use)
|
|
18
|
+
* active-version — active ruleset version number (Number | null; null → "N/A" badge)
|
|
19
|
+
* traced-count — number of requirements with at least one rule link (Number | null)
|
|
20
|
+
* untested-count — number of rules with no test coverage (Number | null)
|
|
21
|
+
* pending-count — number of pending approvals for this workflow (Number | null)
|
|
22
|
+
*
|
|
23
|
+
* Threat T-12-01: manifest copy is generic text — no secrets/PII.
|
|
24
|
+
* Threat T-12-02: detail.path uses encodeURIComponent(workflow); navigation is SPA-internal.
|
|
25
|
+
*/
|
|
26
|
+
export declare class MuJourneyHome extends LitElement {
|
|
27
|
+
workflow: string;
|
|
28
|
+
tenantId: string;
|
|
29
|
+
activeVersion: number | null;
|
|
30
|
+
tracedCount: number | null;
|
|
31
|
+
untestedCount: number | null;
|
|
32
|
+
pendingCount: number | null;
|
|
33
|
+
/**
|
|
34
|
+
* Resolves :workflow placeholder in linkPath and dispatches journey-stage-navigate.
|
|
35
|
+
* composed:true is MANDATORY — the event must cross the shadow-DOM boundary so the
|
|
36
|
+
* React host page's event listener receives it (Pitfall 4 in RESEARCH.md).
|
|
37
|
+
*/
|
|
38
|
+
private _navigate;
|
|
39
|
+
/**
|
|
40
|
+
* Returns the live-state value for a stage, or null if the stage has no liveStateKey
|
|
41
|
+
* or the corresponding attribute has not been set.
|
|
42
|
+
*/
|
|
43
|
+
private _liveValue;
|
|
44
|
+
private _renderStageCard;
|
|
45
|
+
render(): import("lit").TemplateResult<1>;
|
|
46
|
+
static styles: import("lit").CSSResult;
|
|
47
|
+
}
|
|
48
|
+
declare global {
|
|
49
|
+
interface HTMLElementTagNameMap {
|
|
50
|
+
"mu-journey-home": MuJourneyHome;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
//# sourceMappingURL=mu-journey-home.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mu-journey-home.d.ts","sourceRoot":"","sources":["../../../src/components/journey-home/mu-journey-home.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAsB,MAAM,KAAK,CAAC;AAKrD;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,qBACa,aAAc,SAAQ,UAAU;IACN,QAAQ,SAAM;IACb,QAAQ,SAAM;IACK,aAAa,EAAE,MAAM,GAAG,IAAI,CAAQ;IACtC,WAAW,EAAE,MAAM,GAAG,IAAI,CAAQ;IAChC,aAAa,EAAE,MAAM,GAAG,IAAI,CAAQ;IACrC,YAAY,EAAE,MAAM,GAAG,IAAI,CAAQ;IAE3F;;;;OAIG;IACH,OAAO,CAAC,SAAS;IAWjB;;;OAGG;IACH,OAAO,CAAC,UAAU;IAMlB,OAAO,CAAC,gBAAgB;IAoCxB,MAAM;IAQN,MAAM,CAAC,MAAM,0BA4HX;CACH;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,iBAAiB,EAAE,aAAa,CAAC;KAClC;CACF"}
|