@muonroi/ui-engine-rule-components 0.1.2 → 0.1.5-alpha.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.
Files changed (60) hide show
  1. package/dist/components/decision-table/mu-decision-table.d.ts +8 -1
  2. package/dist/components/decision-table/mu-decision-table.d.ts.map +1 -1
  3. package/dist/components/result-panel/MuRuleResultPanel.d.ts +16 -0
  4. package/dist/components/result-panel/MuRuleResultPanel.d.ts.map +1 -0
  5. package/dist/components/result-panel/mu-rule-result-panel.d.ts +19 -0
  6. package/dist/components/result-panel/mu-rule-result-panel.d.ts.map +1 -0
  7. package/dist/components/rule-flow/CatalogPaletteSection.d.ts +11 -0
  8. package/dist/components/rule-flow/CatalogPaletteSection.d.ts.map +1 -0
  9. package/dist/components/rule-flow/MuRuleFlowEditor.d.ts +19 -0
  10. package/dist/components/rule-flow/MuRuleFlowEditor.d.ts.map +1 -0
  11. package/dist/components/rule-flow/mu-rule-flow-designer.d.ts +26 -0
  12. package/dist/components/rule-flow/mu-rule-flow-designer.d.ts.map +1 -1
  13. package/dist/components/rule-flow/rule-flow-authoring.d.ts +22 -0
  14. package/dist/components/rule-flow/rule-flow-authoring.d.ts.map +1 -0
  15. package/dist/components/rule-flow/rule-flow-helpers.d.ts +47 -0
  16. package/dist/components/rule-flow/rule-flow-helpers.d.ts.map +1 -0
  17. package/dist/components/rule-flow/rule-flow-inspector.d.ts +102 -0
  18. package/dist/components/rule-flow/rule-flow-inspector.d.ts.map +1 -0
  19. package/dist/components/rule-flow/rule-flow-runtime.d.ts +8 -0
  20. package/dist/components/rule-flow/rule-flow-runtime.d.ts.map +1 -0
  21. package/dist/components/shared/mu-ui-engine-app.d.ts +1 -0
  22. package/dist/components/shared/mu-ui-engine-app.d.ts.map +1 -1
  23. package/dist/components/trace-viewer/MuRuleTraceViewer.d.ts +22 -0
  24. package/dist/components/trace-viewer/MuRuleTraceViewer.d.ts.map +1 -0
  25. package/dist/components/trace-viewer/mu-rule-trace-viewer.d.ts +33 -0
  26. package/dist/components/trace-viewer/mu-rule-trace-viewer.d.ts.map +1 -0
  27. package/dist/hooks/useRuleFlowHistory.d.ts +11 -0
  28. package/dist/hooks/useRuleFlowHistory.d.ts.map +1 -0
  29. package/dist/index.d.ts +7 -0
  30. package/dist/index.d.ts.map +1 -1
  31. package/dist/models/result-models.d.ts +33 -0
  32. package/dist/models/result-models.d.ts.map +1 -0
  33. package/dist/models/rule-flow.d.ts +164 -0
  34. package/dist/models/rule-flow.d.ts.map +1 -0
  35. package/dist/models/trace-models.d.ts +57 -0
  36. package/dist/models/trace-models.d.ts.map +1 -0
  37. package/dist/models.d.ts +28 -0
  38. package/dist/models.d.ts.map +1 -1
  39. package/dist/muonroi-rule-components.css +1 -1
  40. package/dist/muonroi-rule-components.esm.js +35000 -2986
  41. package/dist/muonroi-rule-components.iife.js +1253 -563
  42. package/dist/muonroi-trace-components.iife.js +459 -0
  43. package/dist/register-trace.d.ts +8 -0
  44. package/dist/register-trace.d.ts.map +1 -0
  45. package/dist/registry.d.ts +2 -0
  46. package/dist/registry.d.ts.map +1 -1
  47. package/dist/runtime/request-context.d.ts +12 -0
  48. package/dist/runtime/request-context.d.ts.map +1 -0
  49. package/dist/services/feel-service.d.ts.map +1 -1
  50. package/dist/services/rule-catalog-service.d.ts +20 -0
  51. package/dist/services/rule-catalog-service.d.ts.map +1 -0
  52. package/dist/services/rule-engine-api.d.ts +2 -0
  53. package/dist/services/rule-engine-api.d.ts.map +1 -1
  54. package/dist/services/rule-flow-contract-service.d.ts +40 -0
  55. package/dist/services/rule-flow-contract-service.d.ts.map +1 -0
  56. package/dist/services/trace-api.d.ts +28 -0
  57. package/dist/services/trace-api.d.ts.map +1 -0
  58. package/dist/utils/m-rule-flow-graph-converter.d.ts +9 -0
  59. package/dist/utils/m-rule-flow-graph-converter.d.ts.map +1 -0
  60. package/package.json +8 -2
@@ -1,4 +1,4 @@
1
- import { LitElement } from "lit";
1
+ import { LitElement, type PropertyValues } from "lit";
2
2
  export declare class MuDecisionTable extends LitElement {
3
3
  static styles: import("lit").CSSResult[];
4
4
  apiBase: string;
@@ -7,6 +7,7 @@ export declare class MuDecisionTable extends LitElement {
7
7
  feelEndpoint: string;
8
8
  historyEndpoint: string;
9
9
  historyVersionEndpoint: string;
10
+ diffEndpoint: string;
10
11
  reorderEndpoint: string;
11
12
  maxRows: number;
12
13
  enableVersionDiff: boolean;
@@ -21,13 +22,17 @@ export declare class MuDecisionTable extends LitElement {
21
22
  private mRightTable;
22
23
  private mDiffLoading;
23
24
  private mDiffError;
25
+ private mServerDiff;
24
26
  private mDragStartRowIndex;
25
27
  private mScrollTop;
26
28
  private readonly mStore;
27
29
  private mUnsubscribe?;
28
30
  private mVersionRequestId;
31
+ private mLastInitializeKey;
29
32
  connectedCallback(): void;
30
33
  disconnectedCallback(): void;
34
+ protected updated(changedProperties: PropertyValues<this>): void;
35
+ private MQueueInitialize;
31
36
  private MInitializeAsync;
32
37
  private MGetTableIdFromQuery;
33
38
  private MResolveErrorColumnIds;
@@ -46,7 +51,9 @@ export declare class MuDecisionTable extends LitElement {
46
51
  private MLoadHistory;
47
52
  private MResolveHistoryEndpoint;
48
53
  private MResolveVersionEndpoint;
54
+ private MResolveDiffEndpoint;
49
55
  private MLoadSelectedVersions;
56
+ private MLoadServerDiff;
50
57
  private MHandleLeftVersionChange;
51
58
  private MHandleRightVersionChange;
52
59
  private MOnScroll;
@@ -1 +1 @@
1
- {"version":3,"file":"mu-decision-table.d.ts","sourceRoot":"","sources":["../../../src/components/decision-table/mu-decision-table.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAmB,MAAM,KAAK,CAAC;AAYlD,qBACa,eAAgB,SAAQ,UAAU;IAC7C,MAAM,CAAC,MAAM,4BAA+B;IAG5C,OAAO,SAAsB;IAG7B,gBAAgB,SAA2C;IAG3D,cAAc,SAAkD;IAGhE,YAAY,SAA+B;IAG3C,eAAe,SAA8B;IAG7C,sBAAs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9B,OAAO,CAAC,iBAAiB;IAIzB,OAAO,CAAC,mBAAmB;IAI3B,OAAO,CAAC,oBAAoB;IAI5B,OAAO,CAAC,mBAAmB;YAIb,cAAc;IAa5B,OAAO,CAAC,OAAO;IAaf,OAAO,CAAC,eAAe;IAIvB,OAAO,CAAC,gBAAgB;IAIxB,OAAO,CAAC,aAAa;YAIP,SAAS;YAKT,KAAK;YAML,OAAO;YAWP,YAAY;IA0B1B,OAAO,CAAC,uBAAuB;IAU/B,OAAO,CAAC,uBAAuB;IAkB/B,OAAO,CAAC,oBAAoB;YASd,qBAAqB;YAkDrB,eAAe;IAoB7B,OAAO,CAAC,wBAAwB;IAKhC,OAAO,CAAC,yBAAyB;IAKjC,OAAO,CAAC,SAAS;IAKjB,OAAO,CAAC,WAAW;IAuCnB,MAAM;CAgHP"}
@@ -0,0 +1,16 @@
1
+ import React from "react";
2
+ import type { MValidationSummary } from "../../models/result-models.js";
3
+ import "./mu-rule-result-panel.js";
4
+ export interface MuRuleResultPanelReactProps {
5
+ result?: MValidationSummary | null;
6
+ loading?: boolean;
7
+ className?: string;
8
+ style?: React.CSSProperties;
9
+ }
10
+ export declare function MuRuleResultPanelReact({ result, loading, className, style, }: MuRuleResultPanelReactProps): React.ReactElement<{
11
+ ref: React.RefObject<HTMLElement>;
12
+ loading: string | undefined;
13
+ class: string | undefined;
14
+ style: React.CSSProperties | undefined;
15
+ }, string | React.JSXElementConstructor<any>>;
16
+ //# sourceMappingURL=MuRuleResultPanel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MuRuleResultPanel.d.ts","sourceRoot":"","sources":["../../../src/components/result-panel/MuRuleResultPanel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AACjD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AACxE,OAAO,2BAA2B,CAAC;AAEnC,MAAM,WAAW,2BAA2B;IAC1C,MAAM,CAAC,EAAE,kBAAkB,GAAG,IAAI,CAAC;IACnC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AAED,wBAAgB,sBAAsB,CAAC,EACrC,MAAM,EACN,OAAO,EACP,SAAS,EACT,KAAK,GACN,EAAE,2BAA2B;;;;;8CAe7B"}
@@ -0,0 +1,19 @@
1
+ import { LitElement, nothing } from "lit";
2
+ export declare class MuRuleResultPanel extends LitElement {
3
+ resultJson: string;
4
+ loading: boolean;
5
+ private _result;
6
+ private _showTrace;
7
+ private _expandedRule;
8
+ updated(changed: Map<string, unknown>): void;
9
+ private get _failedRules();
10
+ private _toggleExpand;
11
+ render(): import("lit").TemplateResult<1> | typeof nothing;
12
+ static styles: import("lit").CSSResult;
13
+ }
14
+ declare global {
15
+ interface HTMLElementTagNameMap {
16
+ "mu-rule-result-panel": MuRuleResultPanel;
17
+ }
18
+ }
19
+ //# sourceMappingURL=mu-rule-result-panel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mu-rule-result-panel.d.ts","sourceRoot":"","sources":["../../../src/components/result-panel/mu-rule-result-panel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAa,OAAO,EAAE,MAAM,KAAK,CAAC;AAIrD,qBACa,iBAAkB,SAAQ,UAAU;IACP,UAAU,SAAM;IAC3B,OAAO,UAAS;IAEpC,OAAO,CAAC,OAAO,CAAmC;IAClD,OAAO,CAAC,UAAU,CAAS;IAC3B,OAAO,CAAC,aAAa,CAAuB;IAErD,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC;IAUrC,OAAO,KAAK,YAAY,GAEvB;IAED,OAAO,CAAC,aAAa;IAIrB,MAAM;IAqGN,MAAM,CAAC,MAAM,0BAgJX;CACH;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,sBAAsB,EAAE,iBAAiB,CAAC;KAC3C;CACF"}
@@ -0,0 +1,11 @@
1
+ import React from "react";
2
+ import type { MRuleCatalogGroup, MRuleCatalogItem } from "../../models.js";
3
+ export interface CatalogPaletteSectionProps {
4
+ groups: MRuleCatalogGroup[];
5
+ loading: boolean;
6
+ readOnly: boolean;
7
+ onAddRule: (item: MRuleCatalogItem) => void;
8
+ onDragStart: (event: React.DragEvent<HTMLButtonElement>, item: MRuleCatalogItem) => void;
9
+ }
10
+ export declare function CatalogPaletteSection({ groups, loading, readOnly, onAddRule, onDragStart }: CatalogPaletteSectionProps): React.JSX.Element;
11
+ //# sourceMappingURL=CatalogPaletteSection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CatalogPaletteSection.d.ts","sourceRoot":"","sources":["../../../src/components/rule-flow/CatalogPaletteSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AACjD,OAAO,KAAK,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAE3E,MAAM,WAAW,0BAA0B;IACzC,MAAM,EAAE,iBAAiB,EAAE,CAAC;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,CAAC,IAAI,EAAE,gBAAgB,KAAK,IAAI,CAAC;IAC5C,WAAW,EAAE,CAAC,KAAK,EAAE,KAAK,CAAC,SAAS,CAAC,iBAAiB,CAAC,EAAE,IAAI,EAAE,gBAAgB,KAAK,IAAI,CAAC;CAC1F;AAED,wBAAgB,qBAAqB,CAAC,EACpC,MAAM,EACN,OAAO,EACP,QAAQ,EACR,SAAS,EACT,WAAW,EACZ,EAAE,0BAA0B,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAwEhD"}
@@ -0,0 +1,19 @@
1
+ import "../../styles/xyflow.css";
2
+ import React from "react";
3
+ import type { MRuleFlowGraph } from "../../models.js";
4
+ export interface MuRuleFlowEditorProps {
5
+ graph: MRuleFlowGraph;
6
+ onGraphChange?: (graph: MRuleFlowGraph) => void;
7
+ readOnly?: boolean;
8
+ theme?: "light" | "dark";
9
+ height?: number | string;
10
+ apiBaseUrl?: string;
11
+ catalogApiBase?: string;
12
+ tenantId?: string;
13
+ workflowCode?: string;
14
+ onPublish?: (graph: MRuleFlowGraph) => Promise<void> | void;
15
+ licenseStatus?: "licensed" | "trial" | "unlicensed";
16
+ }
17
+ export declare function MuRuleFlowEditor({ graph, onGraphChange, readOnly, theme, height, apiBaseUrl, catalogApiBase, tenantId, workflowCode, onPublish, licenseStatus }: MuRuleFlowEditorProps): React.JSX.Element;
18
+ export { MCreateRuleFlowGraphSignature, MEnsureRuleFlowGraph, MImportRuleFlowGraph, MSerializeRuleFlowGraph } from "./rule-flow-runtime.js";
19
+ //# sourceMappingURL=MuRuleFlowEditor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MuRuleFlowEditor.d.ts","sourceRoot":"","sources":["../../../src/components/rule-flow/MuRuleFlowEditor.tsx"],"names":[],"mappings":"AAAA,OAAO,yBAAyB,CAAC;AACjC,OAAO,KAA+C,MAAM,OAAO,CAAC;AAqBpE,OAAO,KAAK,EAKV,cAAc,EAIf,MAAM,iBAAiB,CAAC;AAsCzB,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,cAAc,CAAC;IACtB,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,IAAI,CAAC;IAChD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IACzB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,CAAC,KAAK,EAAE,cAAc,KAAK,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAC5D,aAAa,CAAC,EAAE,UAAU,GAAG,OAAO,GAAG,YAAY,CAAC;CACrD;AAuKD,wBAAgB,gBAAgB,CAAC,EAC/B,KAAK,EACL,aAAa,EACb,QAAgB,EAChB,KAAe,EACf,MAAY,EACZ,UAAU,EACV,cAAc,EACd,QAAQ,EACR,YAAY,EACZ,SAAS,EACT,aAA0B,EAC3B,EAAE,qBAAqB,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CA2kC3C;AA8lBD,OAAO,EAAE,6BAA6B,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC"}
@@ -1,7 +1,33 @@
1
1
  import { LitElement } from "lit";
2
+ import type { MRuleFlowGraph } from "../../models.js";
2
3
  export declare class MuRuleFlowDesigner extends LitElement {
3
4
  static styles: import("lit").CSSResult[];
5
+ graph: MRuleFlowGraph;
4
6
  graphJson: string;
7
+ readOnly: boolean;
8
+ theme: "light" | "dark";
9
+ apiBaseUrl: string;
10
+ catalogApiBase: string;
11
+ height: number;
12
+ workflowCode: string;
13
+ tenantId: string;
14
+ private mRoot?;
15
+ private mInternalGraphUpdate;
16
+ private mLastGraphSignature;
17
+ private mWorkflowLoadVersion;
18
+ private mLoadedRuleSet;
19
+ connectedCallback(): void;
20
+ firstUpdated(): void;
21
+ updated(changed: Map<string, unknown>): void;
22
+ disconnectedCallback(): void;
5
23
  render(): import("lit").TemplateResult;
24
+ private MUpgradeProperty;
25
+ private MSyncGraphFromJson;
26
+ private MSyncGraphFromJsonIfNeeded;
27
+ private MRenderEditor;
28
+ private MPublishGraphAsync;
29
+ private MPersistRuleSetAsync;
30
+ private MRequestJson;
31
+ private MLoadWorkflowGraphAsync;
6
32
  }
7
33
  //# sourceMappingURL=mu-rule-flow-designer.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"mu-rule-flow-designer.d.ts","sourceRoot":"","sources":["../../../src/components/rule-flow/mu-rule-flow-designer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAmB,MAAM,KAAK,CAAC;AAOlD,qBACa,kBAAmB,SAAQ,UAAU;IAChD,MAAM,CAAC,MAAM,4BAA+B;IAG5C,SAAS,SAAM;IAEf,MAAM;CAsBP"}
1
+ {"version":3,"file":"mu-rule-flow-designer.d.ts","sourceRoot":"","sources":["../../../src/components/rule-flow/mu-rule-flow-designer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAmB,MAAM,KAAK,CAAC;AAOlD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAyBtD,qBACa,kBAAmB,SAAQ,UAAU;IAChD,MAAM,CAAC,MAAM,4BAAwD;IAGrE,KAAK,EAAE,cAAc,CAA+B;IAGpD,SAAS,SAAM;IAGf,QAAQ,UAAS;IAGjB,KAAK,EAAE,OAAO,GAAG,MAAM,CAAW;IAGlC,UAAU,SAAM;IAGhB,cAAc,SAAM;IAGpB,MAAM,SAAO;IAGb,YAAY,SAAM;IAGlB,QAAQ,SAAM;IAEd,OAAO,CAAC,KAAK,CAAC,CAAO;IACrB,OAAO,CAAC,oBAAoB,CAAS;IACrC,OAAO,CAAC,mBAAmB,CAA6C;IACxE,OAAO,CAAC,oBAAoB,CAAK;IACjC,OAAO,CAAC,cAAc,CAAwC;IAE9D,iBAAiB,IAAI,IAAI;IAczB,YAAY,IAAI,IAAI;IASpB,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI;IAoB5C,oBAAoB,IAAI,IAAI;IAM5B,MAAM;IASN,OAAO,CAAC,gBAAgB;IAUxB,OAAO,CAAC,kBAAkB;IAgB1B,OAAO,CAAC,0BAA0B;IAoBlC,OAAO,CAAC,aAAa;YAiDP,kBAAkB;YAkDlB,oBAAoB;YA6DpB,YAAY;YAqBZ,uBAAuB;CAkCtC"}
@@ -0,0 +1,22 @@
1
+ import type { MContractValidationIssue, MRuleFlowGraph } from "../../models.js";
2
+ import type { MRuleFlowContractLookupResponse, MRuleFlowNodeContractLookupResponse } from "../../services/rule-flow-contract-service.js";
3
+ export interface MRuleFlowAuthoringContext {
4
+ flowCode?: string;
5
+ currentFlowContract?: MRuleFlowContractLookupResponse;
6
+ flowContractsByCode?: Map<string, MRuleFlowContractLookupResponse>;
7
+ nodeContractsById?: Map<string, MRuleFlowNodeContractLookupResponse>;
8
+ }
9
+ export interface MRuleFlowPublishValidationResult {
10
+ graph: MRuleFlowGraph;
11
+ issues: MContractValidationIssue[];
12
+ isValid: boolean;
13
+ }
14
+ export interface MRuleFlowOrderingResult {
15
+ graph: MRuleFlowGraph;
16
+ issues: MContractValidationIssue[];
17
+ isValid: boolean;
18
+ }
19
+ export declare function MApplyRuleFlowAuthoringLayers(graph: MRuleFlowGraph, context: MRuleFlowAuthoringContext): MRuleFlowGraph;
20
+ export declare function MValidateGraphForPublish(graph: MRuleFlowGraph, context: MRuleFlowAuthoringContext): MRuleFlowPublishValidationResult;
21
+ export declare function MOrderRuleFlowGraph(graph: MRuleFlowGraph, context: MRuleFlowAuthoringContext): MRuleFlowOrderingResult;
22
+ //# sourceMappingURL=rule-flow-authoring.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rule-flow-authoring.d.ts","sourceRoot":"","sources":["../../../src/components/rule-flow/rule-flow-authoring.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,wBAAwB,EAOxB,cAAc,EAIf,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,EACV,+BAA+B,EAC/B,mCAAmC,EACpC,MAAM,8CAA8C,CAAC;AAGtD,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,mBAAmB,CAAC,EAAE,+BAA+B,CAAC;IACtD,mBAAmB,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,+BAA+B,CAAC,CAAC;IACnE,iBAAiB,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,mCAAmC,CAAC,CAAC;CACtE;AAED,MAAM,WAAW,gCAAgC;IAC/C,KAAK,EAAE,cAAc,CAAC;IACtB,MAAM,EAAE,wBAAwB,EAAE,CAAC;IACnC,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,uBAAuB;IACtC,KAAK,EAAE,cAAc,CAAC;IACtB,MAAM,EAAE,wBAAwB,EAAE,CAAC;IACnC,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,wBAAgB,6BAA6B,CAC3C,KAAK,EAAE,cAAc,EACrB,OAAO,EAAE,yBAAyB,GACjC,cAAc,CAgBhB;AAED,wBAAgB,wBAAwB,CACtC,KAAK,EAAE,cAAc,EACrB,OAAO,EAAE,yBAAyB,GACjC,gCAAgC,CASlC;AAED,wBAAgB,mBAAmB,CACjC,KAAK,EAAE,cAAc,EACrB,OAAO,EAAE,yBAAyB,GACjC,uBAAuB,CA4GzB"}
@@ -0,0 +1,47 @@
1
+ import type React from "react";
2
+ import type { MContractValidationIssue, MEffectiveInputMapping, MRuleFlowConditionConfig, MRuleFlowContractField, MRuleFlowContractOverride, MRuleFlowContractReference, MRuleFlowContractSchema, MRuleFlowEdge, MRuleFlowExpression, MRuleFlowExpressionLanguage, MRuleFlowGraph, MRuleFlowLiquidConfig, MRuleFlowMappingRow, MRuleFlowNodeData, MRuleFlowNodeType, MRuleFlowSubFlowConfig, MNodeContractLayer, MNodeEffectiveInput } from "../../models.js";
3
+ export type MCanvasNodeData = MRuleFlowNodeData & {
4
+ label: string;
5
+ ruleCode?: string;
6
+ nodeType: MRuleFlowNodeType;
7
+ };
8
+ export type MInspectorTab = "general" | "input-scope" | "effective-input" | "output-contract" | "expression";
9
+ export declare const M_NODE_TITLES: Record<MRuleFlowNodeType, string>;
10
+ export declare const M_NODE_ACCENTS: Record<MRuleFlowNodeType, string>;
11
+ export declare const M_NODE_DEFAULT_LABELS: Record<MRuleFlowNodeType, string>;
12
+ export declare const M_BASE_NODE_STYLE: React.CSSProperties;
13
+ export declare function MEnsureRuleFlowGraph(graph: unknown): MRuleFlowGraph;
14
+ export declare function MSerializeRuleFlowGraph(graph: MRuleFlowGraph): string;
15
+ export declare function MImportRuleFlowGraph(payload: string): MRuleFlowGraph;
16
+ export declare function MCreateRuleFlowGraphSignature(graph: MRuleFlowGraph): string;
17
+ export declare function MNormalizeNodeData(data: unknown): MRuleFlowNodeData;
18
+ export declare function MNormalizeContractOverride(value: unknown): MRuleFlowContractOverride | undefined;
19
+ export declare function MNormalizeContractReference(value: unknown): MRuleFlowContractReference | undefined;
20
+ export declare function MNormalizeContractSchema(value: unknown): MRuleFlowContractSchema | undefined;
21
+ export declare function MNormalizeContractField(value: unknown): MRuleFlowContractField | null;
22
+ export declare function MNormalizeExpression(value: unknown, legacyFeelExpression?: string, nodeType?: MRuleFlowNodeType): MRuleFlowExpression;
23
+ export declare function MNormalizeConditionConfig(value: unknown): MRuleFlowConditionConfig | undefined;
24
+ export declare function MNormalizeSubFlowConfig(value: unknown): MRuleFlowSubFlowConfig | undefined;
25
+ export declare function MNormalizeLiquidConfig(value: unknown): MRuleFlowLiquidConfig | undefined;
26
+ export declare function MNormalizeMappingRow(value: unknown): MRuleFlowMappingRow | null;
27
+ export declare function MNormalizeEffectiveInputMapping(value: unknown): MEffectiveInputMapping | null;
28
+ export declare function MNormalizeContractValidationIssue(value: unknown): MContractValidationIssue | null;
29
+ export declare function MNormalizeNodeEffectiveInput(value: unknown): MNodeEffectiveInput | undefined;
30
+ export declare function MNormalizeNodeContractLayer(value: unknown): MNodeContractLayer | undefined;
31
+ export declare function MEnsureExpression(data: Partial<MCanvasNodeData>): MRuleFlowExpression;
32
+ export declare function MEnsureSubFlowConfig(value: MRuleFlowSubFlowConfig | undefined): MRuleFlowSubFlowConfig;
33
+ export declare function MEnsureLiquidConfig(value: MRuleFlowLiquidConfig | undefined): MRuleFlowLiquidConfig;
34
+ export declare function MFlattenContractFields(fields: MRuleFlowContractField[], bucket?: MRuleFlowContractField[]): MRuleFlowContractField[];
35
+ export declare function MCreateContractCacheKey(reference: MRuleFlowContractReference): string;
36
+ export declare function MInferContractReference(nodeType: MRuleFlowNodeType, ruleCode: string, existing: MRuleFlowContractReference | undefined): MRuleFlowContractReference | undefined;
37
+ export declare function MDefaultInspectorTabForNode(nodeType: MRuleFlowNodeType): MInspectorTab;
38
+ export declare function MDefaultContractSourceType(nodeType: MRuleFlowNodeType): MRuleFlowContractReference["sourceType"];
39
+ export declare function MAvailableInspectorTabs(nodeType: MRuleFlowNodeType): MInspectorTab[];
40
+ export declare function MInspectorTabTitle(tab: MInspectorTab): string;
41
+ export declare function MCreateDefaultExpression(nodeType: MRuleFlowNodeType): MRuleFlowExpression;
42
+ export declare function MIsNodeType(value: string): value is MRuleFlowNodeType;
43
+ export declare function MNormalizeNodeType(value: unknown): MRuleFlowNodeType;
44
+ export declare function MNormalizeEdgeType(value: unknown): MRuleFlowEdge["edgeType"];
45
+ export declare function MNormalizeExpressionLanguage(value: unknown): MRuleFlowExpressionLanguage;
46
+ export declare function MNormalizeContractSourceType(value: unknown): MRuleFlowContractReference["sourceType"];
47
+ //# sourceMappingURL=rule-flow-helpers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rule-flow-helpers.d.ts","sourceRoot":"","sources":["../../../src/components/rule-flow/rule-flow-helpers.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EACV,wBAAwB,EACxB,sBAAsB,EACtB,wBAAwB,EACxB,sBAAsB,EACtB,yBAAyB,EACzB,0BAA0B,EAC1B,uBAAuB,EACvB,aAAa,EACb,mBAAmB,EACnB,2BAA2B,EAC3B,cAAc,EACd,qBAAqB,EACrB,mBAAmB,EAEnB,iBAAiB,EACjB,iBAAiB,EACjB,sBAAsB,EACtB,kBAAkB,EAClB,mBAAmB,EACpB,MAAM,iBAAiB,CAAC;AAGzB,MAAM,MAAM,eAAe,GAAG,iBAA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AAG,SAAS,GAC/C,0BAA0B,GAAG,SAAS,CAWxC;AAED,wBAAgB,2BAA2B,CAAC,QAAQ,EAAE,iBAAiB,GAAG,aAAa,CAUtF;AAED,wBAAgB,0BAA0B,CAAC,QAAQ,EAAE,iBAAiB,GAAG,0BAA0B,CAAC,YAAY,CAAC,CAWhH;AAED,wBAAgB,uBAAuB,CAAC,QAAQ,EAAE,iBAAiB,GAAG,aAAa,EAAE,CAMpF;AAED,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,aAAa,GAAG,MAAM,CAU7D;AAED,wBAAgB,wBAAwB,CAAC,QAAQ,EAAE,iBAAiB,GAAG,mBAAmB,CAKzF;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,iBAAiB,CAErE;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,iBAAiB,CAEpE;AAED,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,OAAO,GAAG,aAAa,CAAC,UAAU,CAAC,CAE5E;AAED,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,OAAO,GAAG,2BAA2B,CAExF;AAED,wBAAgB,4BAA4B,CAAC,KAAK,EAAE,OAAO,GAAG,0BAA0B,CAAC,YAAY,CAAC,CAErG"}
@@ -0,0 +1,102 @@
1
+ import React from "react";
2
+ import type { MContractValidationIssue, MDecisionTableModel, MEffectiveInputMapping, MRuleFlowConditionConfig, MRuleFlowContractField, MRuleFlowContractReference, MRuleFlowContractSchema, MRuleFlowExpressionLanguage, MRuleFlowLiquidConfig, MRuleFlowNodeType, MRuleFlowSubFlowConfig } from "../../models.js";
3
+ import { type MInspectorTab } from "./rule-flow-helpers.js";
4
+ export type MContractLoadState = {
5
+ status: "idle";
6
+ } | {
7
+ status: "loading";
8
+ } | {
9
+ status: "ready";
10
+ title?: string;
11
+ } | {
12
+ status: "error";
13
+ message: string;
14
+ };
15
+ export interface MRuleFlowInspectorProps {
16
+ selectedNode: {
17
+ id: string;
18
+ data: {
19
+ label: string;
20
+ ruleCode?: string;
21
+ nodeType: MRuleFlowNodeType;
22
+ description?: string;
23
+ contractRef?: MRuleFlowContractReference;
24
+ conditionConfig?: MRuleFlowConditionConfig;
25
+ subFlowConfig?: MRuleFlowSubFlowConfig;
26
+ liquidConfig?: MRuleFlowLiquidConfig;
27
+ dependsOn?: string[];
28
+ order?: number;
29
+ contractLayer?: {
30
+ upstreamScope?: MRuleFlowContractSchema;
31
+ effectiveInput?: {
32
+ fields: MRuleFlowContractField[];
33
+ mappings: MEffectiveInputMapping[];
34
+ };
35
+ outputContract?: MRuleFlowContractSchema;
36
+ validationIssues?: MContractValidationIssue[];
37
+ };
38
+ };
39
+ } | null;
40
+ selectedExpression: {
41
+ language: MRuleFlowExpressionLanguage;
42
+ body: string;
43
+ };
44
+ contractLoadState: MContractLoadState;
45
+ selectedDecisionTable?: MDecisionTableModel | null;
46
+ decisionTableLoadState?: {
47
+ status: "idle" | "loading" | "ready" | "error";
48
+ message?: string;
49
+ };
50
+ readOnly: boolean;
51
+ apiBaseUrl?: string;
52
+ inspectorTab: MInspectorTab;
53
+ flowOptions: Array<{
54
+ code: string;
55
+ label: string;
56
+ }>;
57
+ decisionTableOptions: Array<{
58
+ code: string;
59
+ label: string;
60
+ }>;
61
+ setInspectorTab: (tab: MInspectorTab) => void;
62
+ onSelectNodeByRuleCode: (ruleCode: string) => void;
63
+ onUpdateLabel: (value: string) => void;
64
+ onUpdateRuleCode: (value: string) => void;
65
+ onUpdateDescription: (value: string) => void;
66
+ onUpdateContractRef: (value: MRuleFlowContractReference) => void;
67
+ onUpdateDecisionTableCode: (value: string) => void;
68
+ onUpdateConditionConfig: (value: MRuleFlowConditionConfig) => void;
69
+ onUpdateTargetFlowCode: (value: string) => void;
70
+ onUpdateLiquidOutput: (value: NonNullable<MRuleFlowLiquidConfig["outputFormat"]>) => void;
71
+ onUpdateExpressionLanguage: (value: MRuleFlowExpressionLanguage) => void;
72
+ onUpdateExpressionBody: (value: string) => void;
73
+ onInsertExpressionToken: (value: string) => void;
74
+ onChangeInputContract: (fields: MRuleFlowContractField[]) => void;
75
+ onChangeEffectiveMappings: (rows: MEffectiveInputMapping[]) => void;
76
+ onChangeOutputContract: (fields: MRuleFlowContractField[]) => void;
77
+ onDeleteNode: () => void;
78
+ showSectionHeader?: boolean;
79
+ }
80
+ export declare function MRuleFlowInspector(props: MRuleFlowInspectorProps): React.JSX.Element;
81
+ export declare const MSectionTitleStyle: React.CSSProperties;
82
+ export declare const MInspectorShellStyle: React.CSSProperties;
83
+ export declare const MInspectorTabsStyle: React.CSSProperties;
84
+ export declare const MLabelStyle: React.CSSProperties;
85
+ export declare const MInputStyle: React.CSSProperties;
86
+ export declare const MTextareaStyle: React.CSSProperties;
87
+ export declare const MTableShellStyle: React.CSSProperties;
88
+ export declare const MTableStyle: React.CSSProperties;
89
+ export declare const MTableHeaderStyle: React.CSSProperties;
90
+ export declare const MTableCellStyle: React.CSSProperties;
91
+ export declare const MInlinePathButtonStyle: React.CSSProperties;
92
+ export declare const MContractGridStyle: React.CSSProperties;
93
+ export declare const MDeleteButtonStyle: React.CSSProperties;
94
+ export declare const MExpressionHintStyle: React.CSSProperties;
95
+ export declare const MErrorBannerStyle: React.CSSProperties;
96
+ export declare const MWarningBannerStyle: React.CSSProperties;
97
+ export declare const MMetadataCardStyle: React.CSSProperties;
98
+ export declare const MDependencyChipStyle: React.CSSProperties;
99
+ export declare const MDependencyChipButtonStyle: React.CSSProperties;
100
+ export declare function MActionButtonStyle(primary: boolean): React.CSSProperties;
101
+ export declare function MInspectorTabButtonStyle(active: boolean): React.CSSProperties;
102
+ //# sourceMappingURL=rule-flow-inspector.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rule-flow-inspector.d.ts","sourceRoot":"","sources":["../../../src/components/rule-flow/rule-flow-inspector.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,KAAK,EACV,wBAAwB,EACxB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,EAAE,KAAK,CAAC,aAMnC,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,aAS1C,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,aAItC,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,aAOtC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,aAUxC,CAAC;AAEF,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,aAOrC,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,aAOvC,CAAC;AAEF,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,aAUtC,CAAC;AAEF,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,aAOxC,CAAC;AAEF,eAAO,MAAM,0BAA0B,EAAE,KAAK,CAAC,aAI9C,CAAC;AAqBF,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,GAAG,KAAK,CAAC,aAAa,CASxE;AAED,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,OAAO,GAAG,KAAK,CAAC,aAAa,CAU7E"}
@@ -0,0 +1,8 @@
1
+ import type { Edge, Node } from "@xyflow/react";
2
+ import type { MRuleFlowGraph } from "../../models.js";
3
+ import { type MCanvasNodeData, type MInspectorTab } from "./rule-flow-helpers.js";
4
+ export * from "./rule-flow-helpers.js";
5
+ export declare function MGraphToCanvasNodes(graph: MRuleFlowGraph): Node<MCanvasNodeData>[];
6
+ export declare function MGraphToCanvasEdges(graph: MRuleFlowGraph): Edge[];
7
+ export type { MCanvasNodeData, MInspectorTab };
8
+ //# sourceMappingURL=rule-flow-runtime.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rule-flow-runtime.d.ts","sourceRoot":"","sources":["../../../src/components/rule-flow/rule-flow-runtime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAChD,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAGL,KAAK,eAAe,EACpB,KAAK,aAAa,EACnB,MAAM,wBAAwB,CAAC;AAEhC,cAAc,wBAAwB,CAAC;AAEvC,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,cAAc,GAAG,IAAI,CAAC,eAAe,CAAC,EAAE,CAalF;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,cAAc,GAAG,IAAI,EAAE,CAWjE;AAED,YAAY,EAAE,eAAe,EAAE,aAAa,EAAE,CAAC"}
@@ -11,6 +11,7 @@ export declare class MuUiEngineApp extends LitElement {
11
11
  decisionTableExportEndpoint: string;
12
12
  decisionTableHistoryEndpoint: string;
13
13
  decisionTableHistoryVersionEndpoint: string;
14
+ decisionTableDiffEndpoint: string;
14
15
  decisionTableReorderEndpoint: string;
15
16
  feelAutocompleteEndpoint: string;
16
17
  feelEvaluateEndpoint: string;
@@ -1 +1 @@
1
- {"version":3,"file":"mu-ui-engine-app.d.ts","sourceRoot":"","sources":["../../../src/components/shared/mu-ui-engine-app.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAmB,KAAK,cAAc,EAAE,MAAM,KAAK,CAAC;AAsBvE,qBACa,aAAc,SAAQ,UAAU;IAC3C,MAAM,CAAC,MAAM,4BAA+B;IAG5C,KAAK,SAAuB;IAG5B,gBAAgB,SAAqC;IAGrD,kBAAkB,SAAmC;IAGrD,gBAAgB,SAA+B;IAG/C,oBAAoB,SAA6B;IAGjD,wBAAwB,SAA6B;IAGrD,6BAA6B,SAA2C;IAGxE,2BAA2B,SAAkD;IAG7E,4BAA4B,SAA2C;IAGvE,mCAAmC,SAA+C;IAGlF,4BAA4B,SAA+C;IAG3E,wBAAwB,SAA+B;IAGvD,oBAAoB,SAA2B;IAG/C,oBAAoB,SAA2B;IAG/C,aAAa,SAAgC;IAG7C,gBAAgB,SAA8B;IAG9C,UAAU,SAA6B;IAGvC,OAA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,CAAqC;IAGxD,OAAO,CAAC,SAAS,CAAkC;IAGnD,OAAO,CAAC,kBAAkB,CAAM;IAEhC,iBAAiB,IAAI,IAAI;YAKX,UAAU;YA6BV,UAAU;IAexB,OAAO,CAAC,eAAe;IAIvB,OAAO,CAAC,cAAc;IAQtB,OAAO,CAAC,iBAAiB;IAQzB,OAAO,CAAC,aAAa;IAIrB,OAAO,CAAC,oBAAoB;IAY5B,OAAO,CAAC,kBAAkB;IAa1B,OAAO,CAAC,sBAAsB;IAiC9B,OAAO,CAAC,gBAAgB;IA8CxB,MAAM;CAyHP"}
@@ -0,0 +1,22 @@
1
+ import React from "react";
2
+ import type { MRuleTraceEntry } from "../../models/trace-models.js";
3
+ import "./mu-rule-trace-viewer.js";
4
+ export interface MuRuleTraceViewerReactProps {
5
+ traces?: MRuleTraceEntry[];
6
+ apiBaseUrl?: string;
7
+ tenantId?: string;
8
+ correlationId?: string;
9
+ readOnly?: boolean;
10
+ className?: string;
11
+ style?: React.CSSProperties;
12
+ }
13
+ export declare function MuRuleTraceViewerReact({ traces, apiBaseUrl, tenantId, correlationId, readOnly, className, style, }: MuRuleTraceViewerReactProps): React.ReactElement<{
14
+ ref: React.RefObject<HTMLElement>;
15
+ "api-base-url": string;
16
+ "tenant-id": string;
17
+ "correlation-id": string;
18
+ "read-only": string | undefined;
19
+ class: string | undefined;
20
+ style: React.CSSProperties | undefined;
21
+ }, string | React.JSXElementConstructor<any>>;
22
+ //# sourceMappingURL=MuRuleTraceViewer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MuRuleTraceViewer.d.ts","sourceRoot":"","sources":["../../../src/components/trace-viewer/MuRuleTraceViewer.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4B,MAAM,OAAO,CAAC;AACjD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,2BAA2B,CAAC;AAEnC,MAAM,WAAW,2BAA2B;IAC1C,MAAM,CAAC,EAAE,eAAe,EAAE,CAAC;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;CAC7B;AAED,wBAAgB,sBAAsB,CAAC,EACrC,MAAM,EACN,UAAU,EACV,QAAQ,EACR,aAAa,EACb,QAAQ,EACR,SAAS,EACT,KAAK,GACN,EAAE,2BAA2B;;;;;;;;8CAkB7B"}
@@ -0,0 +1,33 @@
1
+ import { LitElement } from "lit";
2
+ export declare class MuRuleTraceViewer extends LitElement {
3
+ apiBaseUrl: string;
4
+ tenantId: string;
5
+ correlationId: string;
6
+ readOnly: boolean;
7
+ tracesJson: string;
8
+ private _traces;
9
+ private _loading;
10
+ private _error;
11
+ private _expandedIds;
12
+ private _phaseFilter;
13
+ private _successFilter;
14
+ private _apiClient;
15
+ connectedCallback(): void;
16
+ updated(changed: Map<string, unknown>): void;
17
+ loadTraces(): Promise<void>;
18
+ enableDebugger(minutes?: number): Promise<void>;
19
+ disableDebugger(): Promise<void>;
20
+ private _phaseLabel;
21
+ private _phaseColor;
22
+ private get _filteredTraces();
23
+ private _toggleExpand;
24
+ private _formatJson;
25
+ render(): import("lit").TemplateResult<1>;
26
+ static styles: import("lit").CSSResult;
27
+ }
28
+ declare global {
29
+ interface HTMLElementTagNameMap {
30
+ "mu-rule-trace-viewer": MuRuleTraceViewer;
31
+ }
32
+ }
33
+ //# sourceMappingURL=mu-rule-trace-viewer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mu-rule-trace-viewer.d.ts","sourceRoot":"","sources":["../../../src/components/trace-viewer/mu-rule-trace-viewer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAsB,MAAM,KAAK,CAAC;AASrD,qBACa,iBAAkB,SAAQ,UAAU;IACN,UAAU,SAAM;IACnB,QAAQ,SAAM;IACT,aAAa,SAAM;IACT,QAAQ,UAAS;IAC9B,UAAU,SAAM;IAE/C,OAAO,CAAC,OAAO,CAAyB;IACxC,OAAO,CAAC,QAAQ,CAAS;IACzB,OAAO,CAAC,MAAM,CAAuB;IACrC,OAAO,CAAC,YAAY,CAAqB;IACzC,OAAO,CAAC,YAAY,CAAkC;IACtD,OAAO,CAAC,cAAc,CAAwC;IAEvE,OAAO,CAAC,UAAU,CAAoC;IAEtD,iBAAiB;IAOjB,OAAO,CAAC,OAAO,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC;IAa/B,UAAU;IAeV,cAAc,CAAC,OAAO,SAAK;IAO3B,eAAe;IAKrB,OAAO,CAAC,WAAW;IAInB,OAAO,CAAC,WAAW;IAInB,OAAO,KAAK,eAAe,GAQ1B;IAED,OAAO,CAAC,aAAa;IAOrB,OAAO,CAAC,WAAW;IASnB,MAAM;IA8GN,MAAM,CAAC,MAAM,0BAmIX;CACH;AAED,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,qBAAqB;QAC7B,sBAAsB,EAAE,iBAAiB,CAAC;KAC3C;CACF"}
@@ -0,0 +1,11 @@
1
+ import type { MRuleFlowGraph } from "../models.js";
2
+ export declare function useRuleFlowHistory(initialGraph: MRuleFlowGraph): {
3
+ present: MRuleFlowGraph;
4
+ canUndo: boolean;
5
+ canRedo: boolean;
6
+ commit: (graph: MRuleFlowGraph) => void;
7
+ undo: () => void;
8
+ redo: () => void;
9
+ reset: (graph: MRuleFlowGraph) => void;
10
+ };
11
+ //# sourceMappingURL=useRuleFlowHistory.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"useRuleFlowHistory.d.ts","sourceRoot":"","sources":["../../src/hooks/useRuleFlowHistory.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAmEnD,wBAAgB,kBAAkB,CAAC,YAAY,EAAE,cAAc;;;;oBAQ1B,cAAc;;;mBASf,cAAc;EAajD"}
package/dist/index.d.ts CHANGED
@@ -3,8 +3,15 @@ export * from "./models.js";
3
3
  export * from "./registry.js";
4
4
  export * from "./services/rule-engine-api.js";
5
5
  export * from "./services/feel-service.js";
6
+ export * from "./services/trace-api.js";
7
+ export * from "./services/rule-flow-contract-service.js";
8
+ export * from "./services/rule-catalog-service.js";
6
9
  export * from "./services/schema-notifier.js";
7
10
  export * from "./license/m-commercial-guard.js";
11
+ export * from "./runtime/request-context.js";
12
+ export * from "./components/rule-flow/MuRuleFlowEditor.js";
8
13
  export * from "./store/decision-table-store.js";
9
14
  export * from "./store/rule-engine-store.js";
15
+ export { MuRuleTraceViewerReact } from "./components/trace-viewer/MuRuleTraceViewer.js";
16
+ export { MuRuleResultPanelReact } from "./components/result-panel/MuRuleResultPanel.js";
10
17
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,CAAC;AAEvB,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,+BAA+B,CAAC;AAC9C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iCAAiC,CAAC;AAChD,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,eAAe,CAAC;AAEvB,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,+BAA+B,CAAC;AAC9C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,0CAA0C,CAAC;AACzD,cAAc,oCAAoC,CAAC;AACnD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4CAA4C,CAAC;AAC3D,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;AAC7C,OAAO,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAC;AACxF,OAAO,EAAE,sBAAsB,EAAE,MAAM,gDAAgD,CAAC"}
@@ -0,0 +1,33 @@
1
+ /**
2
+ * Per-rule execution result.
3
+ * Matches OrchestratorResult.RuleResults[key].
4
+ */
5
+ export interface MRuleResult {
6
+ ruleCode: string;
7
+ isPass: boolean;
8
+ errors: string[];
9
+ elapsedMs?: number;
10
+ }
11
+ /**
12
+ * Aggregated validation summary.
13
+ * Matches the shape returned by validate-rules endpoints.
14
+ */
15
+ export interface MValidationSummary {
16
+ isAllPassed: boolean;
17
+ totalRules: number;
18
+ passedCount: number;
19
+ failedCount: number;
20
+ totalElapsedMs: number;
21
+ ruleResults: MRuleResult[];
22
+ }
23
+ /**
24
+ * Container-level error detail (ePORT-specific but typed generically).
25
+ */
26
+ export interface MValidationDetailError {
27
+ entityId: string;
28
+ messages: {
29
+ type: string;
30
+ content: string;
31
+ }[];
32
+ }
33
+ //# sourceMappingURL=result-models.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"result-models.d.ts","sourceRoot":"","sources":["../../src/models/result-models.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC1B,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;GAGG;AACH,MAAM,WAAW,kBAAkB;IACjC,WAAW,EAAE,OAAO,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,WAAW,EAAE,CAAC;CAC5B;AAED;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,EAAE,CAAC;CAC/C"}