@uipath/apollo-react 8.0.0 → 8.1.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 (79) hide show
  1. package/dist/canvas/styles/tailwind.canvas.css +1 -1
  2. package/dist/chat/styles/tailwind.chat.css +1 -1
  3. package/dist/decision-table/CitationButton.cjs +8 -2
  4. package/dist/decision-table/CitationButton.d.ts +13 -2
  5. package/dist/decision-table/CitationButton.d.ts.map +1 -1
  6. package/dist/decision-table/CitationButton.js +8 -2
  7. package/dist/decision-table/DecisionGraphCard.cjs +6 -2
  8. package/dist/decision-table/DecisionGraphCard.d.ts.map +1 -1
  9. package/dist/decision-table/DecisionGraphCard.js +6 -2
  10. package/dist/decision-table/DecisionGraphText.cjs +4 -1
  11. package/dist/decision-table/DecisionGraphText.d.ts +1 -1
  12. package/dist/decision-table/DecisionGraphText.d.ts.map +1 -1
  13. package/dist/decision-table/DecisionGraphText.js +4 -1
  14. package/dist/decision-table/DecisionText.cjs +22 -2
  15. package/dist/decision-table/DecisionText.d.ts +2 -2
  16. package/dist/decision-table/DecisionText.d.ts.map +1 -1
  17. package/dist/decision-table/DecisionText.js +22 -2
  18. package/dist/decision-table/DecisionTextHeader.cjs +5 -2
  19. package/dist/decision-table/DecisionTextHeader.d.ts.map +1 -1
  20. package/dist/decision-table/DecisionTextHeader.js +5 -2
  21. package/dist/decision-table/RuleCard.cjs +5 -1
  22. package/dist/decision-table/RuleCard.d.ts.map +1 -1
  23. package/dist/decision-table/RuleCard.js +5 -1
  24. package/dist/decision-table/__fixtures__/textMode.d.ts +2 -3
  25. package/dist/decision-table/__fixtures__/textMode.d.ts.map +1 -1
  26. package/dist/decision-table/locales/de.cjs +1 -1
  27. package/dist/decision-table/locales/de.d.ts.map +1 -1
  28. package/dist/decision-table/locales/de.js +1 -1
  29. package/dist/decision-table/locales/en.cjs +1 -1
  30. package/dist/decision-table/locales/en.d.ts.map +1 -1
  31. package/dist/decision-table/locales/en.js +1 -1
  32. package/dist/decision-table/locales/es-MX.cjs +1 -1
  33. package/dist/decision-table/locales/es-MX.d.ts.map +1 -1
  34. package/dist/decision-table/locales/es-MX.js +1 -1
  35. package/dist/decision-table/locales/es.cjs +1 -1
  36. package/dist/decision-table/locales/es.d.ts.map +1 -1
  37. package/dist/decision-table/locales/es.js +1 -1
  38. package/dist/decision-table/locales/fr.cjs +1 -1
  39. package/dist/decision-table/locales/fr.d.ts.map +1 -1
  40. package/dist/decision-table/locales/fr.js +1 -1
  41. package/dist/decision-table/locales/ja.cjs +1 -1
  42. package/dist/decision-table/locales/ja.d.ts.map +1 -1
  43. package/dist/decision-table/locales/ja.js +1 -1
  44. package/dist/decision-table/locales/ko.cjs +1 -1
  45. package/dist/decision-table/locales/ko.d.ts.map +1 -1
  46. package/dist/decision-table/locales/ko.js +1 -1
  47. package/dist/decision-table/locales/pt-BR.cjs +1 -1
  48. package/dist/decision-table/locales/pt-BR.d.ts.map +1 -1
  49. package/dist/decision-table/locales/pt-BR.js +1 -1
  50. package/dist/decision-table/locales/pt.cjs +1 -1
  51. package/dist/decision-table/locales/pt.d.ts.map +1 -1
  52. package/dist/decision-table/locales/pt.js +1 -1
  53. package/dist/decision-table/locales/ro.cjs +1 -1
  54. package/dist/decision-table/locales/ro.d.ts.map +1 -1
  55. package/dist/decision-table/locales/ro.js +1 -1
  56. package/dist/decision-table/locales/ru.cjs +1 -1
  57. package/dist/decision-table/locales/ru.d.ts.map +1 -1
  58. package/dist/decision-table/locales/ru.js +1 -1
  59. package/dist/decision-table/locales/tr.cjs +1 -1
  60. package/dist/decision-table/locales/tr.d.ts.map +1 -1
  61. package/dist/decision-table/locales/tr.js +1 -1
  62. package/dist/decision-table/locales/zh-CN.cjs +1 -1
  63. package/dist/decision-table/locales/zh-CN.d.ts.map +1 -1
  64. package/dist/decision-table/locales/zh-CN.js +1 -1
  65. package/dist/decision-table/locales/zh-TW.cjs +1 -1
  66. package/dist/decision-table/locales/zh-TW.d.ts.map +1 -1
  67. package/dist/decision-table/locales/zh-TW.js +1 -1
  68. package/dist/decision-table/sentenceStyles.cjs +2 -2
  69. package/dist/decision-table/sentenceStyles.d.ts +2 -2
  70. package/dist/decision-table/sentenceStyles.d.ts.map +1 -1
  71. package/dist/decision-table/sentenceStyles.js +2 -2
  72. package/dist/decision-table/useContainerHandlers.cjs +77 -2
  73. package/dist/decision-table/useContainerHandlers.d.ts +10 -1
  74. package/dist/decision-table/useContainerHandlers.d.ts.map +1 -1
  75. package/dist/decision-table/useContainerHandlers.js +77 -2
  76. package/dist/decision-table/useDecisionTextStrings.cjs +26 -4
  77. package/dist/decision-table/useDecisionTextStrings.d.ts.map +1 -1
  78. package/dist/decision-table/useDecisionTextStrings.js +26 -4
  79. package/package.json +3 -3
@@ -31,11 +31,11 @@ const jsx_runtime_namespaceObject = require("react/jsx-runtime");
31
31
  const apollo_wind_namespaceObject = require("@uipath/apollo-wind");
32
32
  const external_lucide_react_namespaceObject = require("lucide-react");
33
33
  const external_sentenceStyles_cjs_namespaceObject = require("./sentenceStyles.cjs");
34
- const CitationButton = ({ citation, onOpen, selected, tabIndex, className, labels, dataTestId })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(apollo_wind_namespaceObject.Button, {
34
+ const CitationButton = ({ citation, owner, index, onOpen, selected, tabIndex, className, labels, dataTestId })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(apollo_wind_namespaceObject.Button, {
35
35
  variant: "ghost",
36
36
  size: "3xs",
37
37
  tabIndex: tabIndex,
38
- "aria-label": labels.openCitation(citation.page),
38
+ "aria-label": labels.openCitation(owner, citation.page, index),
39
39
  className: (0, apollo_wind_namespaceObject.cn)(external_sentenceStyles_cjs_namespaceObject.CITATION_BUTTON_CLASS, className),
40
40
  "data-rule-action": "citation",
41
41
  "data-testid": dataTestId,
@@ -50,8 +50,14 @@ const CitationButton = ({ citation, onOpen, selected, tabIndex, className, label
50
50
  })
51
51
  ]
52
52
  });
53
+ const indexOf = (citations, at)=>{
54
+ const page = citations[at]?.page;
55
+ const shared = citations.filter((citation)=>citation.page === page).length;
56
+ return shared > 1 ? citations.slice(0, at + 1).filter((citation)=>citation.page === page).length : null;
57
+ };
53
58
  const CitationButtons = ({ citations, dataTestId, ...props })=>citations.map((citation, index)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(CitationButton, {
54
59
  citation: citation,
60
+ index: indexOf(citations, index),
55
61
  dataTestId: 0 === index ? dataTestId : `${dataTestId}-${index}`,
56
62
  ...props
57
63
  }, `${citation.kind}-${citation.page}-${index}`));
@@ -1,11 +1,22 @@
1
1
  import type React from 'react';
2
2
  import type { OpenCitation, SentenceCitation } from './sentenceTypes';
3
+ export type CitationOwner = {
4
+ kind: 'rule';
5
+ position: number;
6
+ } | {
7
+ kind: 'decision';
8
+ name: string;
9
+ } | {
10
+ kind: 'table';
11
+ };
3
12
  export interface CitationLabels {
4
- openCitation: (page: number) => string;
13
+ openCitation: (owner: CitationOwner, page: number, index: number | null) => string;
5
14
  citationPage: (page: number) => string;
6
15
  }
7
16
  export interface CitationButtonProps {
8
17
  citation: SentenceCitation;
18
+ owner: CitationOwner;
19
+ index: number | null;
9
20
  onOpen: OpenCitation;
10
21
  selected: boolean;
11
22
  tabIndex: 0 | -1;
@@ -14,7 +25,7 @@ export interface CitationButtonProps {
14
25
  dataTestId: string;
15
26
  }
16
27
  export declare const CitationButton: React.FC<CitationButtonProps>;
17
- export interface CitationButtonsProps extends Omit<CitationButtonProps, 'citation' | 'dataTestId'> {
28
+ export interface CitationButtonsProps extends Omit<CitationButtonProps, 'citation' | 'index' | 'dataTestId'> {
18
29
  citations: readonly SentenceCitation[];
19
30
  dataTestId: string;
20
31
  }
@@ -1 +1 @@
1
- {"version":3,"file":"CitationButton.d.ts","sourceRoot":"","sources":["../../src/decision-table/CitationButton.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,KAAK,EAAE,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AE7B,YAAY,EAAE,CAAC,KAAK,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,KAAK,MAAM,CAAC;IAEnF,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,CAAC;CACxC;AAED,MAAM,WAAW,mBAAmB;IAClC,QAAQ,EAAE,gBAAgB,CAAC;IAC3B,KAAK,EAAE,aAAa,CAAC;IAErB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,MAAM,EAAE,YAAY,CAAC;IAErB,QAAQ,EAAE,OAAO,CAAC;IAElB,QAAQ,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAEjB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,cAAc,CAAC;IACvB,UAAU,EAAE,MAAM,CAAC;CACpB;AAGD,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CAwBxD,CAAC;AAEF,MAAM,WAAW,oBACf,SAAQ,IAAI,CAAC,mBAAmB,EAAE,UAAU,GAAG,OAAO,GAAG,YAAY,CAAC;IACtE,SAAS,EAAE,SAAS,gBAAgB,EAAE,CAAC;IACvC,UAAU,EAAE,MAAM,CAAC;CACpB;AAWD,eAAO,MAAM,eAAe,EAAE,KAAK,CAAC,EAAE,CAAC,oBAAoB,CAavD,CAAC"}
@@ -2,11 +2,11 @@ import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { Button, cn } from "@uipath/apollo-wind";
3
3
  import { FileText } from "lucide-react";
4
4
  import { CITATION_BUTTON_CLASS } from "./sentenceStyles.js";
5
- const CitationButton = ({ citation, onOpen, selected, tabIndex, className, labels, dataTestId })=>/*#__PURE__*/ jsxs(Button, {
5
+ const CitationButton = ({ citation, owner, index, onOpen, selected, tabIndex, className, labels, dataTestId })=>/*#__PURE__*/ jsxs(Button, {
6
6
  variant: "ghost",
7
7
  size: "3xs",
8
8
  tabIndex: tabIndex,
9
- "aria-label": labels.openCitation(citation.page),
9
+ "aria-label": labels.openCitation(owner, citation.page, index),
10
10
  className: cn(CITATION_BUTTON_CLASS, className),
11
11
  "data-rule-action": "citation",
12
12
  "data-testid": dataTestId,
@@ -21,8 +21,14 @@ const CitationButton = ({ citation, onOpen, selected, tabIndex, className, label
21
21
  })
22
22
  ]
23
23
  });
24
+ const indexOf = (citations, at)=>{
25
+ const page = citations[at]?.page;
26
+ const shared = citations.filter((citation)=>citation.page === page).length;
27
+ return shared > 1 ? citations.slice(0, at + 1).filter((citation)=>citation.page === page).length : null;
28
+ };
24
29
  const CitationButtons = ({ citations, dataTestId, ...props })=>citations.map((citation, index)=>/*#__PURE__*/ jsx(CitationButton, {
25
30
  citation: citation,
31
+ index: indexOf(citations, index),
26
32
  dataTestId: 0 === index ? dataTestId : `${dataTestId}-${index}`,
27
33
  ...props
28
34
  }, `${citation.kind}-${citation.page}-${index}`));
@@ -32,9 +32,9 @@ const apollo_wind_namespaceObject = require("@uipath/apollo-wind");
32
32
  const external_lucide_react_namespaceObject = require("lucide-react");
33
33
  const external_react_namespaceObject = require("react");
34
34
  const external_CitationButton_cjs_namespaceObject = require("./CitationButton.cjs");
35
- const external_gridEvents_cjs_namespaceObject = require("./gridEvents.cjs");
36
35
  const external_decisionGraphStyles_cjs_namespaceObject = require("./decisionGraphStyles.cjs");
37
36
  const external_GridMenu_cjs_namespaceObject = require("./GridMenu.cjs");
37
+ const external_gridEvents_cjs_namespaceObject = require("./gridEvents.cjs");
38
38
  const external_MarkGlyph_cjs_namespaceObject = require("./MarkGlyph.cjs");
39
39
  const external_sentenceMarks_cjs_namespaceObject = require("./sentenceMarks.cjs");
40
40
  const HEADINGS = [
@@ -206,10 +206,14 @@ const DecisionGraphCard = ({ node, depth, open, active, usedBy, bodyId, body, la
206
206
  }),
207
207
  citations && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_CitationButton_cjs_namespaceObject.CitationButtons, {
208
208
  citations: citations.citations,
209
+ owner: {
210
+ kind: 'decision',
211
+ name: node.label
212
+ },
209
213
  onOpen: citations.onOpen,
210
214
  selected: active,
211
215
  tabIndex: 0,
212
- className: (0, apollo_wind_namespaceObject.cn)('shrink-0', !active && external_decisionGraphStyles_cjs_namespaceObject.GRAPH_REVEAL_CLASS),
216
+ className: (0, apollo_wind_namespaceObject.cn)('shrink-0', !active && external_decisionGraphStyles_cjs_namespaceObject.GRAPH_REVEAL_CLASS, '[@media(hover:none)]:opacity-100'),
213
217
  labels: labels,
214
218
  dataTestId: `${dataTestId}-citation-${node.id}`
215
219
  }),
@@ -1 +1 @@
1
- {"version":3,"file":"DecisionGraphCard.d.ts","sourceRoot":"","sources":["../../src/decision-table/DecisionGraphCard.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAG/B,OAAO,KAAK,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,MAAM,sBAAsB,CAAC;AAkBlG,OAAO,EAAkB,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAGhE,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACtE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAGrE,MAAM,WAAW,wBAAwB;IAEvC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACjC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IAEvB,QAAQ,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAEjD,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;CACpC;AAGD,MAAM,WAAW,wBAAwB;IACvC,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,aAAa,EAAE,CAAC;IAC/B,SAAS,EAAE,CAAC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ight, CornerDownRight, Ellipsis, Network } from "lucide-react";
4
4
  import { useId, useLayoutEffect, useRef } from "react";
5
5
  import { CitationButtons } from "./CitationButton.js";
6
- import { isComposing } from "./gridEvents.js";
7
6
  import { GRAPH_BODY_CLASS, GRAPH_CARD_CLASS, GRAPH_CARD_COLLAPSED_CLASS, GRAPH_CARD_TONE_CLASS, GRAPH_HEADER_CLASS, GRAPH_HIT_POLICY_CLASS, GRAPH_MARK_BUTTON_CLASS, GRAPH_MENU_BUTTON_CLASS, GRAPH_NAME_CLASS, GRAPH_REFERENCE_CHIP_CLASS, GRAPH_REFERENCE_CLASS, GRAPH_REVEAL_CLASS, GRAPH_RULE_COUNT_CLASS, GRAPH_TOGGLE_CLASS } from "./decisionGraphStyles.js";
8
7
  import { GridMenuButton } from "./GridMenu.js";
8
+ import { isComposing } from "./gridEvents.js";
9
9
  import { MarkGlyph } from "./MarkGlyph.js";
10
10
  import { isLineMark } from "./sentenceMarks.js";
11
11
  const HEADINGS = [
@@ -177,10 +177,14 @@ const DecisionGraphCard = ({ node, depth, open, active, usedBy, bodyId, body, la
177
177
  }),
178
178
  citations && /*#__PURE__*/ jsx(CitationButtons, {
179
179
  citations: citations.citations,
180
+ owner: {
181
+ kind: 'decision',
182
+ name: node.label
183
+ },
180
184
  onOpen: citations.onOpen,
181
185
  selected: active,
182
186
  tabIndex: 0,
183
- className: cn('shrink-0', !active && GRAPH_REVEAL_CLASS),
187
+ className: cn('shrink-0', !active && GRAPH_REVEAL_CLASS, '[@media(hover:none)]:opacity-100'),
184
188
  labels: labels,
185
189
  dataTestId: `${dataTestId}-citation-${node.id}`
186
190
  }),
@@ -40,6 +40,9 @@ const external_useDecisionGraphActions_cjs_namespaceObject = require("./useDecis
40
40
  const external_useDecisionGraphStrings_cjs_namespaceObject = require("./useDecisionGraphStrings.cjs");
41
41
  const external_useDecisionTextStrings_cjs_namespaceObject = require("./useDecisionTextStrings.cjs");
42
42
  const external_useTextAnnouncements_cjs_namespaceObject = require("./useTextAnnouncements.cjs");
43
+ const NO_CITATIONS = {
44
+ kind: 'none'
45
+ };
43
46
  const NO_EXPANDED = new Set();
44
47
  const markTargetOf = ({ id, mark })=>mark?.kind === 'rule' ? {
45
48
  kind: 'rule',
@@ -113,7 +116,7 @@ const perRuleHeightOf = (heights, ruleCounts)=>{
113
116
  }
114
117
  return 0 === rules ? external_sentenceRuleHeights_cjs_namespaceObject.SENTENCE_MIN_RULE_HEIGHT_PX : height / rules;
115
118
  };
116
- const DecisionGraphText = ({ nodes, mode, renderBody, citations, expansion, onFold, onOpenDecision, rules, dataTestId })=>{
119
+ const DecisionGraphText = ({ nodes, mode, renderBody, citations = NO_CITATIONS, expansion, onFold, onOpenDecision, rules, dataTestId })=>{
117
120
  const labels = (0, external_useDecisionGraphStrings_cjs_namespaceObject.useDecisionGraphLabels)();
118
121
  const { selected } = mode;
119
122
  const { announce, region } = (0, external_useTextAnnouncements_cjs_namespaceObject.useTextAnnouncements)((0, external_useDecisionTextStrings_cjs_namespaceObject.useDecisionTextLabels)(), dataTestId);
@@ -7,7 +7,7 @@ export interface DecisionGraphTextProps<Refusal, Logic> {
7
7
  nodes: readonly DecisionGraphNode[];
8
8
  mode: DecisionGraphMode<Refusal, Logic>;
9
9
  renderBody: (decisionId: string, scroll: Exclude<DecisionTextScroll, 'self'>, context: DecisionGraphBodyContext) => React.ReactNode;
10
- citations: DecisionGraphCitations;
10
+ citations?: DecisionGraphCitations;
11
11
  onFold?: (decisionId: string) => void;
12
12
  expansion?: DecisionGraphExpansion;
13
13
  onOpenDecision?: (decisionId: string) => void;
@@ -1 +1 @@
1
- {"version":3,"file":"DecisionGraphText.d.ts","sourceRoot":"","sources":["../../src/decision-table/DecisionGraphText.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,EAEL,KAAK,6BAA6B,EACnC,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA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EAEtB,sBAAsB,EACtB,iBAAiB,EAElB,MAAM,sBAAsB,CAAC;AAM9B,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAK1D,MAAM,WAAW,sBAAsB,CAAC,OAAO,EAAE,KAAK;IAEpD,KAAK,EAAE,SAAS,iBAAiB,EAAE,CAAC;IAEpC,IAAI,EAAE,iBAAiB,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;IAExC,UAAU,EAAE,CACV,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,OAAO,CAAC,kBAAkB,EAAE,MAAM,CAAC,EAC3C,OAAO,EAAE,wBAAwB,KAC9B,KAAK,CAAC,SAAS,CAAC;IAErB,SAAS,CAAC,EAAE,sBAAsB,CAAC;IAEnC,MAAM,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAEtC,SAAS,CAAC,EAAE,sBAAsB,CAAC;IAEnC,cAAc,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAE9C,KAAK,CAAC,EAAE,6BAA6B,CAAC,OAAO,CAAC,CAAC;IAE/C,UAAU,EAAE,MAAM,CAAC;CACpB;AAgGD,eAAO,MAAM,iBAAiB,GAAI,OAAO,EAAE,KAAK,EAAE,+FAU/C,sBAAsB,CAAC,OAAO,EAAE,KAAK,CAAC,KAAG,KAAK,CAAC,YA2TjD,CAAC"}
@@ -12,6 +12,9 @@ import { useDecisionGraphActions } from "./useDecisionGraphActions.js";
12
12
  import { useDecisionGraphLabels } from "./useDecisionGraphStrings.js";
13
13
  import { useDecisionTextLabels } from "./useDecisionTextStrings.js";
14
14
  import { useTextAnnouncements } from "./useTextAnnouncements.js";
15
+ const NO_CITATIONS = {
16
+ kind: 'none'
17
+ };
15
18
  const NO_EXPANDED = new Set();
16
19
  const markTargetOf = ({ id, mark })=>mark?.kind === 'rule' ? {
17
20
  kind: 'rule',
@@ -85,7 +88,7 @@ const perRuleHeightOf = (heights, ruleCounts)=>{
85
88
  }
86
89
  return 0 === rules ? SENTENCE_MIN_RULE_HEIGHT_PX : height / rules;
87
90
  };
88
- const DecisionGraphText = ({ nodes, mode, renderBody, citations, expansion, onFold, onOpenDecision, rules, dataTestId })=>{
91
+ const DecisionGraphText = ({ nodes, mode, renderBody, citations = NO_CITATIONS, expansion, onFold, onOpenDecision, rules, dataTestId })=>{
89
92
  const labels = useDecisionGraphLabels();
90
93
  const { selected } = mode;
91
94
  const { announce, region } = useTextAnnouncements(useDecisionTextLabels(), dataTestId);
@@ -58,6 +58,9 @@ const external_useSentenceNavigation_cjs_namespaceObject = require("./useSentenc
58
58
  const external_useTextAnnouncements_cjs_namespaceObject = require("./useTextAnnouncements.cjs");
59
59
  const external_useValueEditing_cjs_namespaceObject = require("./useValueEditing.cjs");
60
60
  const external_ValueEditorOverlay_cjs_namespaceObject = require("./ValueEditorOverlay.cjs");
61
+ const NO_CITATIONS = {
62
+ kind: 'none'
63
+ };
61
64
  const NO_FOLDS = new Set();
62
65
  const nameTokensOf = (bands)=>{
63
66
  const names = new Map(bands.flatMap(({ id, columns })=>columns.map((column)=>[
@@ -74,7 +77,7 @@ const nameTokensOf = (bands)=>{
74
77
  text: columnId
75
78
  };
76
79
  };
77
- const DecisionText = ({ table, mode, hitPolicies, columnTypes, citations, numbered = false, marks = external_marks_cjs_namespaceObject.EMPTY_MARKS, onCellHover, headerMark, onOpenDecision, scroll = 'self', ariaLabel, containerProps, dataTestId, children })=>{
80
+ const DecisionText = ({ table, mode, hitPolicies, columnTypes, citations = NO_CITATIONS, numbered = false, marks = external_marks_cjs_namespaceObject.EMPTY_MARKS, onCellHover, headerMark, onOpenDecision, scroll = 'self', ariaLabel, containerProps, dataTestId, children })=>{
78
81
  const { rules, inputs, outputs } = table;
79
82
  const selected = 'diff' === mode.kind ? null : mode.selected;
80
83
  const onSelect = 'select' === mode.kind || 'edit' === mode.kind ? mode.onSelect : void 0;
@@ -143,6 +146,19 @@ const DecisionText = ({ table, mode, hitPolicies, columnTypes, citations, number
143
146
  focusedRowId
144
147
  ]);
145
148
  const ruleWindow = (0, external_useRuleWindow_cjs_namespaceObject.useRuleWindow)(listed, selected?.rowId, retainedRowIds, scroll);
149
+ const citedRows = (0, external_react_namespaceObject.useMemo)(()=>'cited' === citations.kind ? listed.flatMap((rule, index)=>{
150
+ const count = citations.rules.get(rule.rowId)?.length ?? 0;
151
+ return count > 0 ? [
152
+ {
153
+ rowId: rule.rowId,
154
+ index,
155
+ count
156
+ }
157
+ ] : [];
158
+ }) : [], [
159
+ citations,
160
+ listed
161
+ ]);
146
162
  const selectable = void 0 !== onSelect;
147
163
  const addRuleAction = (0, external_useAddRule_cjs_namespaceObject.useAddRule)({
148
164
  ...ruleWindow,
@@ -185,7 +201,11 @@ const DecisionText = ({ table, mode, hitPolicies, columnTypes, citations, number
185
201
  history: 'edit' === mode.kind ? {
186
202
  onUndo: mode.onUndo,
187
203
  onRedo: mode.onRedo
188
- } : null
204
+ } : null,
205
+ citationKeys: !selectable,
206
+ citedRows,
207
+ revealRow: ruleWindow.scrollRowIntoView,
208
+ revealStop: ruleWindow.scrollStopIntoView
189
209
  });
190
210
  const columnEditing = (0, external_useColumnEditing_cjs_namespaceObject.useColumnEditing)({
191
211
  column: 'edit' === mode.kind ? mode.edit.column : void 0,
@@ -7,7 +7,7 @@ import { type HitPolicyCatalog, type HitPolicyPick } from './hitPolicyMenu';
7
7
  import { type TableMarks } from './marks';
8
8
  import type { DecisionTextCitations, DecisionTextTable, SentenceSelection } from './sentenceTypes';
9
9
  import { useCellHover } from './useCellHover';
10
- import { type ContainerHandlersParams, type TextHistory, type DecisionTextContainerProps } from './useContainerHandlers';
10
+ import { type ContainerHandlersParams, type DecisionTextContainerProps, type TextHistory } from './useContainerHandlers';
11
11
  import { type DecisionTextScroll } from './useRuleWindow';
12
12
  import { type SentenceNavigationSource } from './useSentenceNavigation';
13
13
  type SelectHandler = NonNullable<SentenceNavigationSource['onSelect']>;
@@ -34,7 +34,7 @@ export interface DecisionTextProps<Op, Policy, Total, Type, Refusal> {
34
34
  mode: DecisionTextMode<Op, Policy, Total, Type, Refusal>;
35
35
  hitPolicies: HitPolicyCatalog<Policy, Total>;
36
36
  columnTypes: readonly ColumnTypeOption<Type>[];
37
- citations: DecisionTextCitations;
37
+ citations?: DecisionTextCitations;
38
38
  numbered?: boolean;
39
39
  marks?: TableMarks;
40
40
  onCellHover?: Parameters<typeof useCellHover>[0];
@@ -1 +1 @@
1
- {"version":3,"file":"DecisionText.d.ts","sourceRoot":"","sources":["../../src/decision-table/DecisionText.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,eAAe,CAAC;AAC/D,OAAO,EAAsB,KAAK,uBAAuB,EAAE,MAAM,sBAAsB,CAAC;AACxF,OAAO,EAAE,KAAK,gBAAgB,EAA6B,MAAM,oBAAoB,CAAC;AACtF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAG5D,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAGnB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAe,KAAK,UAAU,EAAE,MAAM,SAAS,CAAC;AAMvD,OAAO,KAAK,EACV,qBAAqB,EACrB,iBAAiB,EAGjB,iBAAiB,EAClB,MAAM,iBAAiB,CAAC;AAEzB,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAE9C,OAAO,EACL,KAAK,uBAAuB,EAC5B,KAAK,WAAW,EAChB,KAAK,0BAA0B,EAEhC,MAAM,wBAAwB,CAAC;AAKhC,OAAO,EAAE,KAAK,kBAAkB,EAAiB,MAAM,iBAAiB,CAAC;AACzE,OAAO,EAAE,KAAK,wBAAwB,EAAyB,MAAM,yBAAyB,CAAC;AAM/F,KAAK,aAAa,GAAG,WAAW,CAAC,wBAAwB,CAAC,UAAU,CAAC,CAAC,CAAC;AAGvE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,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC;IAC9C,IAAI,EAAE,gBAAgB,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,CAAC,CAAC;IAEzD,WAAW,EAAE,gBAAgB,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAE7C,WAAW,EAAE,SAAS,gBAAgB,CAAC,IAAI,CAAC,EAAE,CAAC;IAE/C,SAAS,CAAC,EAAE,qBAAqB,CAAC;IAElC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAEnB,KAAK,CAAC,EAAE,UAAU,CAAC;IAEnB,WAAW,CAAC,EAAE,UAAU,CAAC,OAAO,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;IAEjD,UAAU,CAAC,EAAE,uBAAuB,CAAC,MAAM,CAAC,CAAC;IAE7C,cAAc,CAAC,EAAE,uBAAuB,CAAC,gBAAgB,CAAC,CAAC;IAE3D,MAAM,CAAC,EAAE,kBAAkB,CAAC;IAE5B,SAAS,EAAE,MAAM,CAAC;IAElB,cAAc,CAAC,EAAE,0BAA0B,CAAC;IAE5C,UAAU,EAAE,MAAM,CAAC;IAEnB,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAmBD,eAAO,MAAM,YAAY,GAAI,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,EAAE,0KAgB5D,iBAAiB,CAAC,EAAE,EAAE,MAAM,EAAE,KAAK,EAAE,IAAI,EAAE,OAAO,CAAC,KAAG,KAAK,CAAC,GAAG,CAAC,OA2OlE,CAAC"}
@@ -30,6 +30,9 @@ import { useSentenceNavigation } from "./useSentenceNavigation.js";
30
30
  import { useTextAnnouncements } from "./useTextAnnouncements.js";
31
31
  import { useValueEditing } from "./useValueEditing.js";
32
32
  import { ValueEditorOverlay } from "./ValueEditorOverlay.js";
33
+ const NO_CITATIONS = {
34
+ kind: 'none'
35
+ };
33
36
  const NO_FOLDS = new Set();
34
37
  const nameTokensOf = (bands)=>{
35
38
  const names = new Map(bands.flatMap(({ id, columns })=>columns.map((column)=>[
@@ -46,7 +49,7 @@ const nameTokensOf = (bands)=>{
46
49
  text: columnId
47
50
  };
48
51
  };
49
- const DecisionText = ({ table, mode, hitPolicies, columnTypes, citations, numbered = false, marks = EMPTY_MARKS, onCellHover, headerMark, onOpenDecision, scroll = 'self', ariaLabel, containerProps, dataTestId, children })=>{
52
+ const DecisionText = ({ table, mode, hitPolicies, columnTypes, citations = NO_CITATIONS, numbered = false, marks = EMPTY_MARKS, onCellHover, headerMark, onOpenDecision, scroll = 'self', ariaLabel, containerProps, dataTestId, children })=>{
50
53
  const { rules, inputs, outputs } = table;
51
54
  const selected = 'diff' === mode.kind ? null : mode.selected;
52
55
  const onSelect = 'select' === mode.kind || 'edit' === mode.kind ? mode.onSelect : void 0;
@@ -115,6 +118,19 @@ const DecisionText = ({ table, mode, hitPolicies, columnTypes, citations, number
115
118
  focusedRowId
116
119
  ]);
117
120
  const ruleWindow = useRuleWindow(listed, selected?.rowId, retainedRowIds, scroll);
121
+ const citedRows = useMemo(()=>'cited' === citations.kind ? listed.flatMap((rule, index)=>{
122
+ const count = citations.rules.get(rule.rowId)?.length ?? 0;
123
+ return count > 0 ? [
124
+ {
125
+ rowId: rule.rowId,
126
+ index,
127
+ count
128
+ }
129
+ ] : [];
130
+ }) : [], [
131
+ citations,
132
+ listed
133
+ ]);
118
134
  const selectable = void 0 !== onSelect;
119
135
  const addRuleAction = useAddRule({
120
136
  ...ruleWindow,
@@ -157,7 +173,11 @@ const DecisionText = ({ table, mode, hitPolicies, columnTypes, citations, number
157
173
  history: 'edit' === mode.kind ? {
158
174
  onUndo: mode.onUndo,
159
175
  onRedo: mode.onRedo
160
- } : null
176
+ } : null,
177
+ citationKeys: !selectable,
178
+ citedRows,
179
+ revealRow: ruleWindow.scrollRowIntoView,
180
+ revealStop: ruleWindow.scrollStopIntoView
161
181
  });
162
182
  const columnEditing = useColumnEditing({
163
183
  column: 'edit' === mode.kind ? mode.edit.column : void 0,
@@ -28,8 +28,8 @@ __webpack_require__.d(__webpack_exports__, {
28
28
  });
29
29
  const jsx_runtime_namespaceObject = require("react/jsx-runtime");
30
30
  const apollo_wind_namespaceObject = require("@uipath/apollo-wind");
31
- const external_CitationButton_cjs_namespaceObject = require("./CitationButton.cjs");
32
31
  const external_react_namespaceObject = require("react");
32
+ const external_CitationButton_cjs_namespaceObject = require("./CitationButton.cjs");
33
33
  const external_MarkBadge_cjs_namespaceObject = require("./MarkBadge.cjs");
34
34
  const external_PolicyPicker_cjs_namespaceObject = require("./PolicyPicker.cjs");
35
35
  const external_sentenceMarks_cjs_namespaceObject = require("./sentenceMarks.cjs");
@@ -109,8 +109,11 @@ const DecisionTextHeader = /*#__PURE__*/ (0, external_react_namespaceObject.forw
109
109
  className: external_sentenceStyles_cjs_namespaceObject.HEADER_CITATIONS_CLASS,
110
110
  children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_CitationButton_cjs_namespaceObject.CitationButtons, {
111
111
  citations: citations.citations,
112
+ owner: {
113
+ kind: 'table'
114
+ },
112
115
  onOpen: citations.onOpen,
113
- selected: false,
116
+ selected: true,
114
117
  tabIndex: 0,
115
118
  className: external_sentenceStyles_cjs_namespaceObject.HEADER_CITATION_REVEAL_CLASS,
116
119
  labels: labels,
@@ -1 +1 @@
1
- {"version":3,"file":"DecisionTextHeader.d.ts","sourceRoot":"","sources":["../../src/decision-table/DecisionTextHeader.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAmB,KAAK,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAExE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAa,KAAK,cAAc,EAAW,MAAM,aAAa,CAAC;AACtE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AACpC,OAAO,EAAgB,KAAK,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AAO,EAAgB,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAWtE,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAEtE,MAAM,WAAW,uBAAuB;IAEtC,KAAK,EACD;QAAE,IAAI,EAAE,OAAO,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,GAChC;QAAE,IAAI,EAAE,QAAQ,CAAC;QAAC,MAAM,EAAE,IAAI,CAAC,iBAAiB,EAAE,YAAY,GAAG,aAAa,CAAC,CAAA;KAAE,GACjF;QAAE,IAAI,EAAE,QAAQ,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC;IAEtD,IAAI,EAAE,MAAM,CAAC;IAEb,IAAI,EAAE,IAAI,GAAG,SAAS,CAAC;IAEvB,SAAS,EAAE;QAAE,SAAS,EAAE,SAAS,gBAAgB,EAAE,CAAC;QAAC,MAAM,EAAE,YAAY,CAAA;KAAE,GAAG,IAAI,CAAC;IACnF,MAAM,EAAE,cAAc,CAAC,QAAQ,CAAC,GAC9B,IAAI,CAAC,UAAU,EAAE,eAAe,GAAG,cAAc,CAAC,GAClD,cAAc,CAAC;IAEjB,MAAM,EAAE,OAAO,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;CACpB;AAuBD,eAAO,MAAM,kBAAkB,gGAyC9B,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { jsx, jsxs } from "react/jsx-runtime";
2
2
  import { cn } from "@uipath/apollo-wind";
3
- import { CitationButtons } from "./CitationButton.js";
4
3
  import { forwardRef, useId } from "react";
4
+ import { CitationButtons } from "./CitationButton.js";
5
5
  import { MarkBadge, markIds } from "./MarkBadge.js";
6
6
  import { PolicyPicker } from "./PolicyPicker.js";
7
7
  import { isLineMark } from "./sentenceMarks.js";
@@ -81,8 +81,11 @@ const DecisionTextHeader = /*#__PURE__*/ forwardRef(({ title, hint, mark, citati
81
81
  className: HEADER_CITATIONS_CLASS,
82
82
  children: /*#__PURE__*/ jsx(CitationButtons, {
83
83
  citations: citations.citations,
84
+ owner: {
85
+ kind: 'table'
86
+ },
84
87
  onOpen: citations.onOpen,
85
- selected: false,
88
+ selected: true,
86
89
  tabIndex: 0,
87
90
  className: HEADER_CITATION_REVEAL_CLASS,
88
91
  labels: labels,
@@ -95,9 +95,13 @@ const RuleCard = /*#__PURE__*/ (0, external_react_namespaceObject.memo)(({ rule,
95
95
  className: external_sentenceStyles_cjs_namespaceObject.RULE_CITATIONS_CLASS,
96
96
  children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_CitationButton_cjs_namespaceObject.CitationButtons, {
97
97
  citations: cited,
98
+ owner: {
99
+ kind: 'rule',
100
+ position: diff?.number ?? position
101
+ },
98
102
  onOpen: citations.onOpenCitation,
99
103
  selected: rowSelected,
100
- tabIndex: rowSelected || !selectable ? 0 : -1,
104
+ tabIndex: rowSelected && selectable ? 0 : -1,
101
105
  className: (0, apollo_wind_namespaceObject.cn)(!rowSelected && external_sentenceStyles_cjs_namespaceObject.REVEALED_ACTION_CLASS),
102
106
  labels: labels,
103
107
  dataTestId: `${dataTestId}-citation-${rule.rowId}`
@@ -1 +1 @@
1
- {"version":3,"file":"RuleCard.d.ts","sourceRoot":"","sources":["../../src/decision-table/RuleCard.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,EAAe,KAAK,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAEpE,OAAO,EACL,KAAK,QAAQ,EACb,KAAK,YAAY,EACjB,KAAK,iBAAiB,EAEvB,MAAM,iBAAiB,CAAC;AAiBzB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACtD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AAiC7D,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB,EAAE,iBAAiB;CAAG;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S,CAAC;CACrC,CAAC;AAEN,MAAM,MAAM,aAAa,GAAG,YAAY,GACtC,YAAY,GAAG;IACb,OAAO,EAAE,MAAM,CAAC;IAEhB,gBAAgB,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAE5C,SAAS,EAAE,qBAAqB,CAAC;IACjC,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAGJ,eAAO,MAAM,QAAQ,2CAoJpB,CAAC"}
@@ -67,9 +67,13 @@ const RuleCard = /*#__PURE__*/ memo(({ rule, position, setSize, numbered, mark,
67
67
  className: RULE_CITATIONS_CLASS,
68
68
  children: /*#__PURE__*/ jsx(CitationButtons, {
69
69
  citations: cited,
70
+ owner: {
71
+ kind: 'rule',
72
+ position: diff?.number ?? position
73
+ },
70
74
  onOpen: citations.onOpenCitation,
71
75
  selected: rowSelected,
72
- tabIndex: rowSelected || !selectable ? 0 : -1,
76
+ tabIndex: rowSelected && selectable ? 0 : -1,
73
77
  className: cn(!rowSelected && REVEALED_ACTION_CLASS),
74
78
  labels: labels,
75
79
  dataTestId: `${dataTestId}-citation-${rule.rowId}`
@@ -13,9 +13,8 @@ export declare const outcomeField: () => ReturnType<FixtureEdit["valueField"]>;
13
13
  export type ModeProps = Partial<Pick<EditMode, 'selected' | 'onSelect' | 'edit' | 'onAddRule' | 'onPolicyChange' | 'onUndo' | 'onRedo'> & Pick<Extract<FixtureMode, {
14
14
  kind: 'diff';
15
15
  }>, 'diff'>>;
16
- export type FlatTextProps = Omit<FixtureTextProps, 'mode' | 'table' | 'hitPolicies' | 'columnTypes' | 'citations'> & ModeProps & DecisionTextTable<FixturePolicy, FixtureTotal, FixtureType> & Partial<Pick<FixtureTextProps, 'hitPolicies' | 'columnTypes' | 'citations'>>;
17
- export declare const NO_CITATIONS: FixtureTextProps['citations'];
16
+ export type FlatTextProps = Omit<FixtureTextProps, 'mode' | 'table' | 'hitPolicies' | 'columnTypes'> & ModeProps & DecisionTextTable<FixturePolicy, FixtureTotal, FixtureType> & Partial<Pick<FixtureTextProps, 'hitPolicies' | 'columnTypes'>>;
18
17
  export declare const modeOf: ({ selected, onSelect, edit, onAddRule, onPolicyChange, onUndo, onRedo, diff, }: ModeProps) => FixtureMode;
19
- export declare const textPropsOf: ({ selected, onSelect, edit, onAddRule, onPolicyChange, onUndo, onRedo, diff, hitPolicy, inputs, outputs, rules, hitPolicies, columnTypes, citations, ...props }: FlatTextProps) => FixtureTextProps;
18
+ export declare const textPropsOf: ({ selected, onSelect, edit, onAddRule, onPolicyChange, onUndo, onRedo, diff, hitPolicy, inputs, outputs, rules, hitPolicies, columnTypes, ...props }: FlatTextProps) => FixtureTextProps;
20
19
  export {};
21
20
  //# sourceMappingURL=textMode.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"textMode.d.ts","sourceRoot":"","sources":["../../../src/decision-table/__fixtures__/textMode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAC3E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAEL,KAAK,eAAe,EACpB,KAAK,aAAa,EAClB,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,WAAW,EAGjB,MAAM,sBAAsB,CAAC;AAG9B,MAAM,MAAM,gBAAgB,GAAG,iBAAiB,CAC9C,eAAe,EACf,aAAa,EACb,YAAY,EACZ,WAAW,EACX,cAAc,CACf,CAAC;AAGF,MAAM,MAAM,WAAW,GAAG,gBAAgB,CACxC,eAAe,EACf,aAAa,EACb,YAAY,EACZ,WAAW,EACX,cAAc,CACf,CAAC;AAGF,MAAM,MAAM,WAAW,GAAG,OAAO,CAAC,WAAW,EAAE;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzE,KAAK,QAAQ,GAAG,OAAO,CAAC,WAAW,EAAE;IAAE,IAAI,EAAE,MAAM,CAA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
  });
29
- const messages = JSON.parse("{\"decision-graph.add_decision\":[\"Add decision\"],\"decision-graph.add_decision_after\":[\"Add decision after\"],\"decision-graph.add_decision_before\":[\"Add decision before\"],\"decision-graph.add_note\":[\"Add note\"],\"decision-graph.add_required_input\":[\"Add required input\"],\"decision-graph.cancel\":[\"Cancel\"],\"decision-graph.change_logic_to\":[\"Change logic to \",[\"logic\"]],\"decision-graph.choose_inputs\":[\"Choose inputs\"],\"decision-graph.choose_users\":[\"Choose users\"],\"decision-graph.decision_actions\":[[\"name\"],\" actions\"],\"decision-graph.delete\":[\"Delete\"],\"decision-graph.delete_title\":[\"Delete \",[\"name\"],\"?\"],\"decision-graph.delete_unused\":[\"No decision uses it.\"],\"decision-graph.delete_used_by\":[\"These decisions use it:\"],\"decision-graph.empty\":[\"No decisions yet\"],\"decision-graph.graph\":[\"Decisions\"],\"decision-graph.inputs_title\":[\"Inputs of \",[\"name\"]],\"decision-graph.minimap\":[\"Browse rules\"],\"decision-graph.minimap_clear\":[\"Clear search\"],\"decision-graph.minimap_decision\":[[\"name\"],\", \",[\"count\",\"plural\",{\"one\":[\"#\",\" rule\"],\"other\":[\"#\",\" rules\"]}]],\"decision-graph.minimap_no_match\":[\"No match for “\",[\"query\"],\"”.\"],\"decision-graph.minimap_reference\":[[\"name\"],\", listed in full elsewhere in this map\"],\"decision-graph.minimap_results\":[[\"count\",\"plural\",{\"one\":[\"#\",\" result\"],\"other\":[\"#\",\" results\"]}]],\"decision-graph.minimap_search\":[\"Search rules and decisions\"],\"decision-graph.move_down\":[\"Move down\"],\"decision-graph.move_out_of\":[\"Move out of \",[\"name\"]],\"decision-graph.move_under\":[\"Move under \",[\"name\"]],\"decision-graph.move_up\":[\"Move up\"],\"decision-graph.name_field\":[\"Name of \",[\"name\"]],\"decision-graph.no_other_decisions\":[\"No other decisions\"],\"decision-graph.note_title\":[\"Note on \",[\"name\"]],\"decision-graph.open_decision\":[\"Open decision\"],\"decision-graph.rename\":[\"Rename\"],\"decision-graph.rule_count\":[[\"count\",\"plural\",{\"one\":[\"#\",\" rule\"],\"other\":[\"#\",\" rules\"]}]],\"decision-graph.save\":[\"Save\"],\"decision-graph.see_above\":[\"See \",[\"name\"],\" above\"],\"decision-graph.show_problem\":[[\"status\"],\". Show it\"],\"decision-graph.stop_using_in\":[\"Stop using in \",[\"name\"]],\"decision-graph.used_by\":[\"Used by \",[\"names\"]],\"decision-graph.users_title\":[\"Decisions that use \",[\"name\"]],\"decision-table.drag_column\":[\"Drag to reorder whole column\"],\"decision-table.drag_row\":[\"Drag to reorder whole row\"],\"decision-table.insert_column_left\":[\"Insert column left\"],\"decision-table.insert_row_above\":[\"Insert row above\"],\"decision-text.add_condition\":[\"Add condition to rule \",[\"position\"]],\"decision-text.add_input\":[\"Add input column\"],\"decision-text.add_rule\":[\"Add rule\"],\"decision-text.add_value\":[\"Add value\"],\"decision-text.allowed_values\":[\"Allowed values\"],\"decision-text.allowed_values_example\":[\"e.g. \",[\"example\"]],\"decision-text.allowed_values_hint\":[\"Separate values with commas, and write each one as the example shows.\"],\"decision-text.apply\":[\"Apply\"],\"decision-text.band_inputs\":[\"Inputs\"],\"decision-text.band_outputs\":[\"Outputs\"],\"decision-text.cancel\":[\"Cancel\"],\"decision-text.cell\":[[\"cell\"],\", rule \",[\"position\"]],\"decision-text.change_add\":[\"Added\"],\"decision-text.change_delete\":[\"Removed\"],\"decision-text.change_update\":[\"Changed\"],\"decision-text.citation_page\":[\"Page \",[\"page\"]],\"decision-text.clear\":[\"Clear\"],\"decision-text.clear_outcome\":[\"Clear \",[\"column\"],\" in rule \",[\"position\"]],\"decision-text.clear_rule\":[\"Clear rule\"],\"decision-text.column_label\":[\"Label\"],\"decision-text.condition_matched\":[\"Matched\"],\"decision-text.condition_not_matched\":[\"Not matched\"],\"decision-text.current_value\":[\"now\"],\"decision-text.data_type\":[\"Data type\"],\"decision-text.delete_rule\":[\"Delete rule \",[\"position\"]],\"decision-text.duplicate_rule\":[\"Duplicate rule\"],\"decision-text.edit_expression\":[\"Edit expression\"],\"decision-text.empty_rules\":[\"No rules yet\"],\"decision-text.empty_value\":[\"empty\"],\"decision-text.hit_policy_name\":[\"Hit policy: \",[\"policy\"]],\"decision-text.included\":[\"Included\"],\"decision-text.input_column\":[\"Input · \",[\"name\"]],\"decision-text.input_expression\":[\"Input expression\"],\"decision-text.insert_rule_above\":[\"Insert rule above\"],\"decision-text.insert_rule_below\":[\"Insert rule below\"],\"decision-text.mark_error\":[\"Error\"],\"decision-text.mark_status\":[[\"status\"],\": \",[\"message\"]],\"decision-text.mark_warning\":[\"Warning\"],\"decision-text.missing_end\":[\"Enter both ends\"],\"decision-text.missing_input_expression\":[\"This input column has no expression\"],\"decision-text.missing_label\":[\"Enter a label\"],\"decision-text.missing_output_name\":[\"This output column has no name — every output in a multi-output table must be named\"],\"decision-text.missing_value\":[\"Enter a value\"],\"decision-text.more_properties\":[\"More properties\"],\"decision-text.more_values\":[[\"count\",\"plural\",{\"other\":[\"+\",\"#\",\" more\"]}]],\"decision-text.move_rule_down\":[\"Move down\"],\"decision-text.move_rule_up\":[\"Move up\"],\"decision-text.moved_from\":[\"Moved from rule \",[\"number\"]],\"decision-text.new_condition\":[\"New \",[\"column\"],\" condition, rule \",[\"position\"]],\"decision-text.no_value_checked\":[\"Check a value\"],\"decision-text.not_allowed\":[\"Not one of the allowed values\"],\"decision-text.open_citation\":[\"Open source, page \",[\"page\"]],\"decision-text.open_decision\":[\"Open \",[\"input\"],\"'s decision\"],\"decision-text.operator\":[\"Operator\"],\"decision-text.output_column\":[\"Output · \",[\"name\"]],\"decision-text.output_name\":[\"Output name\"],\"decision-text.previous_value\":[\"was\"],\"decision-text.range_high\":[\"To\"],\"decision-text.range_low\":[\"From\"],\"decision-text.remove_condition\":[\"Remove \",[\"column\"],\" from rule \",[\"position\"]],\"decision-text.rule_actions\":[\"Rule \",[\"position\"],\" actions\"],\"decision-text.rule_moved\":[\"Rule moved from position \",[\"from\"],\" to \",[\"to\"]],\"decision-text.set_value\":[\"Set a value\"],\"decision-text.show_rules\":[\"Show rules \",[\"from\"],\"–\",[\"to\"]],\"decision-text.unchanged_rules\":[[\"count\",\"plural\",{\"one\":[\"#\",\" unchanged rule\"],\"other\":[\"#\",\" unchanged rules\"]}]]}");
29
+ const messages = JSON.parse("{\"decision-graph.add_decision\":[\"Add decision\"],\"decision-graph.add_decision_after\":[\"Add decision after\"],\"decision-graph.add_decision_before\":[\"Add decision before\"],\"decision-graph.add_note\":[\"Add note\"],\"decision-graph.add_required_input\":[\"Add required input\"],\"decision-graph.cancel\":[\"Cancel\"],\"decision-graph.change_logic_to\":[\"Change logic to \",[\"logic\"]],\"decision-graph.choose_inputs\":[\"Choose inputs\"],\"decision-graph.choose_users\":[\"Choose users\"],\"decision-graph.decision_actions\":[[\"name\"],\" actions\"],\"decision-graph.delete\":[\"Delete\"],\"decision-graph.delete_title\":[\"Delete \",[\"name\"],\"?\"],\"decision-graph.delete_unused\":[\"No decision uses it.\"],\"decision-graph.delete_used_by\":[\"These decisions use it:\"],\"decision-graph.empty\":[\"No decisions yet\"],\"decision-graph.graph\":[\"Decisions\"],\"decision-graph.inputs_title\":[\"Inputs of \",[\"name\"]],\"decision-graph.minimap\":[\"Browse rules\"],\"decision-graph.minimap_clear\":[\"Clear search\"],\"decision-graph.minimap_decision\":[[\"name\"],\", \",[\"count\",\"plural\",{\"one\":[\"#\",\" rule\"],\"other\":[\"#\",\" rules\"]}]],\"decision-graph.minimap_no_match\":[\"No match for “\",[\"query\"],\"”.\"],\"decision-graph.minimap_reference\":[[\"name\"],\", listed in full elsewhere in this map\"],\"decision-graph.minimap_results\":[[\"count\",\"plural\",{\"one\":[\"#\",\" result\"],\"other\":[\"#\",\" results\"]}]],\"decision-graph.minimap_search\":[\"Search rules and decisions\"],\"decision-graph.move_down\":[\"Move down\"],\"decision-graph.move_out_of\":[\"Move out of \",[\"name\"]],\"decision-graph.move_under\":[\"Move under \",[\"name\"]],\"decision-graph.move_up\":[\"Move up\"],\"decision-graph.name_field\":[\"Name of \",[\"name\"]],\"decision-graph.no_other_decisions\":[\"No other decisions\"],\"decision-graph.note_title\":[\"Note on \",[\"name\"]],\"decision-graph.open_decision\":[\"Open decision\"],\"decision-graph.rename\":[\"Rename\"],\"decision-graph.rule_count\":[[\"count\",\"plural\",{\"one\":[\"#\",\" rule\"],\"other\":[\"#\",\" rules\"]}]],\"decision-graph.save\":[\"Save\"],\"decision-graph.see_above\":[\"See \",[\"name\"],\" above\"],\"decision-graph.show_problem\":[[\"status\"],\". Show it\"],\"decision-graph.stop_using_in\":[\"Stop using in \",[\"name\"]],\"decision-graph.used_by\":[\"Used by \",[\"names\"]],\"decision-graph.users_title\":[\"Decisions that use \",[\"name\"]],\"decision-table.drag_column\":[\"Drag to reorder whole column\"],\"decision-table.drag_row\":[\"Drag to reorder whole row\"],\"decision-table.insert_column_left\":[\"Insert column left\"],\"decision-table.insert_row_above\":[\"Insert row above\"],\"decision-text.add_condition\":[\"Add condition to rule \",[\"position\"]],\"decision-text.add_input\":[\"Add input column\"],\"decision-text.add_rule\":[\"Add rule\"],\"decision-text.add_value\":[\"Add value\"],\"decision-text.allowed_values\":[\"Allowed values\"],\"decision-text.allowed_values_example\":[\"e.g. \",[\"example\"]],\"decision-text.allowed_values_hint\":[\"Separate values with commas, and write each one as the example shows.\"],\"decision-text.apply\":[\"Apply\"],\"decision-text.band_inputs\":[\"Inputs\"],\"decision-text.band_outputs\":[\"Outputs\"],\"decision-text.cancel\":[\"Cancel\"],\"decision-text.cell\":[[\"cell\"],\", rule \",[\"position\"]],\"decision-text.change_add\":[\"Added\"],\"decision-text.change_delete\":[\"Removed\"],\"decision-text.change_update\":[\"Changed\"],\"decision-text.citation_page\":[\"Page \",[\"page\"]],\"decision-text.clear\":[\"Clear\"],\"decision-text.clear_outcome\":[\"Clear \",[\"column\"],\" in rule \",[\"position\"]],\"decision-text.clear_rule\":[\"Clear rule\"],\"decision-text.column_label\":[\"Label\"],\"decision-text.condition_matched\":[\"Matched\"],\"decision-text.condition_not_matched\":[\"Not matched\"],\"decision-text.current_value\":[\"now\"],\"decision-text.data_type\":[\"Data type\"],\"decision-text.delete_rule\":[\"Delete rule \",[\"position\"]],\"decision-text.duplicate_rule\":[\"Duplicate rule\"],\"decision-text.edit_expression\":[\"Edit expression\"],\"decision-text.empty_rules\":[\"No rules yet\"],\"decision-text.empty_value\":[\"empty\"],\"decision-text.hit_policy_name\":[\"Hit policy: \",[\"policy\"]],\"decision-text.included\":[\"Included\"],\"decision-text.input_column\":[\"Input · \",[\"name\"]],\"decision-text.input_expression\":[\"Input expression\"],\"decision-text.insert_rule_above\":[\"Insert rule above\"],\"decision-text.insert_rule_below\":[\"Insert rule below\"],\"decision-text.mark_error\":[\"Error\"],\"decision-text.mark_status\":[[\"status\"],\": \",[\"message\"]],\"decision-text.mark_warning\":[\"Warning\"],\"decision-text.missing_end\":[\"Enter both ends\"],\"decision-text.missing_input_expression\":[\"This input column has no expression\"],\"decision-text.missing_label\":[\"Enter a label\"],\"decision-text.missing_output_name\":[\"This output column has no name — every output in a multi-output table must be named\"],\"decision-text.missing_value\":[\"Enter a value\"],\"decision-text.more_properties\":[\"More properties\"],\"decision-text.more_values\":[[\"count\",\"plural\",{\"other\":[\"+\",\"#\",\" more\"]}]],\"decision-text.move_rule_down\":[\"Move down\"],\"decision-text.move_rule_up\":[\"Move up\"],\"decision-text.moved_from\":[\"Moved from rule \",[\"number\"]],\"decision-text.new_condition\":[\"New \",[\"column\"],\" condition, rule \",[\"position\"]],\"decision-text.no_value_checked\":[\"Check a value\"],\"decision-text.not_allowed\":[\"Not one of the allowed values\"],\"decision-text.open_decision\":[\"Open \",[\"input\"],\"'s decision\"],\"decision-text.open_decision_citation\":[\"Open source\",[\"index\",\"plural\",{\"0\":[],\"other\":[\" \",\"#\"]}],\" of \",[\"decision\"],\", page \",[\"page\"]],\"decision-text.open_rule_citation\":[\"Open source\",[\"index\",\"plural\",{\"0\":[],\"other\":[\" \",\"#\"]}],\" of rule \",[\"position\"],\", page \",[\"page\"]],\"decision-text.open_table_citation\":[\"Open source\",[\"index\",\"plural\",{\"0\":[],\"other\":[\" \",\"#\"]}],\" of this decision, page \",[\"page\"]],\"decision-text.operator\":[\"Operator\"],\"decision-text.output_column\":[\"Output · \",[\"name\"]],\"decision-text.output_name\":[\"Output name\"],\"decision-text.previous_value\":[\"was\"],\"decision-text.range_high\":[\"To\"],\"decision-text.range_low\":[\"From\"],\"decision-text.remove_condition\":[\"Remove \",[\"column\"],\" from rule \",[\"position\"]],\"decision-text.rule_actions\":[\"Rule \",[\"position\"],\" actions\"],\"decision-text.rule_moved\":[\"Rule moved from position \",[\"from\"],\" to \",[\"to\"]],\"decision-text.set_value\":[\"Set a value\"],\"decision-text.show_rules\":[\"Show rules \",[\"from\"],\"–\",[\"to\"]],\"decision-text.unchanged_rules\":[[\"count\",\"plural\",{\"one\":[\"#\",\" unchanged rule\"],\"other\":[\"#\",\" unchanged rules\"]}]]}");
30
30
  exports.messages = __webpack_exports__.messages;
31
31
  for(var __rspack_i in __webpack_exports__)if (-1 === [
32
32
  "messages"
@@ -1 +1 @@
1
- {"version":3,"file":"de.d.ts","sourceRoot":"","sources":["../../../src/decision-table/locales/de.ts"],"names":[],"mappings":"AAAkB,OAAO,KAAI,EAAC,QAAQ,EAAC,MAAI,cAAc,CAAC;AAAA,eAAO,MAAM,QAAQ,EAA65M,QAAQ,CAAC"}
1
+ {"version":3,"file":"de.d.ts","sourceRoot":"","sources":["../../../src/decision-table/locales/de.ts"],"names":[],"mappings":"AAAkB,OAAO,KAAI,EAAC,QAAQ,EAAC,MAAI,cAAc,CAAC;AAAA,eAAO,MAAM,QAAQ,EAA4zN,QAAQ,CAAC"}
@@ -1,2 +1,2 @@
1
- const messages = JSON.parse("{\"decision-graph.add_decision\":[\"Add decision\"],\"decision-graph.add_decision_after\":[\"Add decision after\"],\"decision-graph.add_decision_before\":[\"Add decision before\"],\"decision-graph.add_note\":[\"Add note\"],\"decision-graph.add_required_input\":[\"Add required input\"],\"decision-graph.cancel\":[\"Cancel\"],\"decision-graph.change_logic_to\":[\"Change logic to \",[\"logic\"]],\"decision-graph.choose_inputs\":[\"Choose inputs\"],\"decision-graph.choose_users\":[\"Choose users\"],\"decision-graph.decision_actions\":[[\"name\"],\" actions\"],\"decision-graph.delete\":[\"Delete\"],\"decision-graph.delete_title\":[\"Delete \",[\"name\"],\"?\"],\"decision-graph.delete_unused\":[\"No decision uses it.\"],\"decision-graph.delete_used_by\":[\"These decisions use it:\"],\"decision-graph.empty\":[\"No decisions yet\"],\"decision-graph.graph\":[\"Decisions\"],\"decision-graph.inputs_title\":[\"Inputs of \",[\"name\"]],\"decision-graph.minimap\":[\"Browse rules\"],\"decision-graph.minimap_clear\":[\"Clear search\"],\"decision-graph.minimap_decision\":[[\"name\"],\", \",[\"count\",\"plural\",{\"one\":[\"#\",\" rule\"],\"other\":[\"#\",\" rules\"]}]],\"decision-graph.minimap_no_match\":[\"No match for “\",[\"query\"],\"”.\"],\"decision-graph.minimap_reference\":[[\"name\"],\", listed in full elsewhere in this map\"],\"decision-graph.minimap_results\":[[\"count\",\"plural\",{\"one\":[\"#\",\" result\"],\"other\":[\"#\",\" results\"]}]],\"decision-graph.minimap_search\":[\"Search rules and decisions\"],\"decision-graph.move_down\":[\"Move down\"],\"decision-graph.move_out_of\":[\"Move out of \",[\"name\"]],\"decision-graph.move_under\":[\"Move under \",[\"name\"]],\"decision-graph.move_up\":[\"Move up\"],\"decision-graph.name_field\":[\"Name of \",[\"name\"]],\"decision-graph.no_other_decisions\":[\"No other decisions\"],\"decision-graph.note_title\":[\"Note on \",[\"name\"]],\"decision-graph.open_decision\":[\"Open decision\"],\"decision-graph.rename\":[\"Rename\"],\"decision-graph.rule_count\":[[\"count\",\"plural\",{\"one\":[\"#\",\" rule\"],\"other\":[\"#\",\" rules\"]}]],\"decision-graph.save\":[\"Save\"],\"decision-graph.see_above\":[\"See \",[\"name\"],\" above\"],\"decision-graph.show_problem\":[[\"status\"],\". Show it\"],\"decision-graph.stop_using_in\":[\"Stop using in \",[\"name\"]],\"decision-graph.used_by\":[\"Used by \",[\"names\"]],\"decision-graph.users_title\":[\"Decisions that use \",[\"name\"]],\"decision-table.drag_column\":[\"Drag to reorder whole column\"],\"decision-table.drag_row\":[\"Drag to reorder whole row\"],\"decision-table.insert_column_left\":[\"Insert column left\"],\"decision-table.insert_row_above\":[\"Insert row above\"],\"decision-text.add_condition\":[\"Add condition to rule \",[\"position\"]],\"decision-text.add_input\":[\"Add input column\"],\"decision-text.add_rule\":[\"Add rule\"],\"decision-text.add_value\":[\"Add value\"],\"decision-text.allowed_values\":[\"Allowed values\"],\"decision-text.allowed_values_example\":[\"e.g. \",[\"example\"]],\"decision-text.allowed_values_hint\":[\"Separate values with commas, and write each one as the example shows.\"],\"decision-text.apply\":[\"Apply\"],\"decision-text.band_inputs\":[\"Inputs\"],\"decision-text.band_outputs\":[\"Outputs\"],\"decision-text.cancel\":[\"Cancel\"],\"decision-text.cell\":[[\"cell\"],\", rule \",[\"position\"]],\"decision-text.change_add\":[\"Added\"],\"decision-text.change_delete\":[\"Removed\"],\"decision-text.change_update\":[\"Changed\"],\"decision-text.citation_page\":[\"Page \",[\"page\"]],\"decision-text.clear\":[\"Clear\"],\"decision-text.clear_outcome\":[\"Clear \",[\"column\"],\" in rule \",[\"position\"]],\"decision-text.clear_rule\":[\"Clear rule\"],\"decision-text.column_label\":[\"Label\"],\"decision-text.condition_matched\":[\"Matched\"],\"decision-text.condition_not_matched\":[\"Not matched\"],\"decision-text.current_value\":[\"now\"],\"decision-text.data_type\":[\"Data type\"],\"decision-text.delete_rule\":[\"Delete rule \",[\"position\"]],\"decision-text.duplicate_rule\":[\"Duplicate rule\"],\"decision-text.edit_expression\":[\"Edit expression\"],\"decision-text.empty_rules\":[\"No rules yet\"],\"decision-text.empty_value\":[\"empty\"],\"decision-text.hit_policy_name\":[\"Hit policy: \",[\"policy\"]],\"decision-text.included\":[\"Included\"],\"decision-text.input_column\":[\"Input · \",[\"name\"]],\"decision-text.input_expression\":[\"Input expression\"],\"decision-text.insert_rule_above\":[\"Insert rule above\"],\"decision-text.insert_rule_below\":[\"Insert rule below\"],\"decision-text.mark_error\":[\"Error\"],\"decision-text.mark_status\":[[\"status\"],\": \",[\"message\"]],\"decision-text.mark_warning\":[\"Warning\"],\"decision-text.missing_end\":[\"Enter both ends\"],\"decision-text.missing_input_expression\":[\"This input column has no expression\"],\"decision-text.missing_label\":[\"Enter a label\"],\"decision-text.missing_output_name\":[\"This output column has no name — every output in a multi-output table must be named\"],\"decision-text.missing_value\":[\"Enter a value\"],\"decision-text.more_properties\":[\"More properties\"],\"decision-text.more_values\":[[\"count\",\"plural\",{\"other\":[\"+\",\"#\",\" more\"]}]],\"decision-text.move_rule_down\":[\"Move down\"],\"decision-text.move_rule_up\":[\"Move up\"],\"decision-text.moved_from\":[\"Moved from rule \",[\"number\"]],\"decision-text.new_condition\":[\"New \",[\"column\"],\" condition, rule \",[\"position\"]],\"decision-text.no_value_checked\":[\"Check a value\"],\"decision-text.not_allowed\":[\"Not one of the allowed values\"],\"decision-text.open_citation\":[\"Open source, page \",[\"page\"]],\"decision-text.open_decision\":[\"Open \",[\"input\"],\"'s decision\"],\"decision-text.operator\":[\"Operator\"],\"decision-text.output_column\":[\"Output · \",[\"name\"]],\"decision-text.output_name\":[\"Output name\"],\"decision-text.previous_value\":[\"was\"],\"decision-text.range_high\":[\"To\"],\"decision-text.range_low\":[\"From\"],\"decision-text.remove_condition\":[\"Remove \",[\"column\"],\" from rule \",[\"position\"]],\"decision-text.rule_actions\":[\"Rule \",[\"position\"],\" actions\"],\"decision-text.rule_moved\":[\"Rule moved from position \",[\"from\"],\" to \",[\"to\"]],\"decision-text.set_value\":[\"Set a value\"],\"decision-text.show_rules\":[\"Show rules \",[\"from\"],\"–\",[\"to\"]],\"decision-text.unchanged_rules\":[[\"count\",\"plural\",{\"one\":[\"#\",\" unchanged rule\"],\"other\":[\"#\",\" unchanged rules\"]}]]}");
1
+ const messages = JSON.parse("{\"decision-graph.add_decision\":[\"Add decision\"],\"decision-graph.add_decision_after\":[\"Add decision after\"],\"decision-graph.add_decision_before\":[\"Add decision before\"],\"decision-graph.add_note\":[\"Add note\"],\"decision-graph.add_required_input\":[\"Add required input\"],\"decision-graph.cancel\":[\"Cancel\"],\"decision-graph.change_logic_to\":[\"Change logic to \",[\"logic\"]],\"decision-graph.choose_inputs\":[\"Choose inputs\"],\"decision-graph.choose_users\":[\"Choose users\"],\"decision-graph.decision_actions\":[[\"name\"],\" actions\"],\"decision-graph.delete\":[\"Delete\"],\"decision-graph.delete_title\":[\"Delete \",[\"name\"],\"?\"],\"decision-graph.delete_unused\":[\"No decision uses it.\"],\"decision-graph.delete_used_by\":[\"These decisions use it:\"],\"decision-graph.empty\":[\"No decisions yet\"],\"decision-graph.graph\":[\"Decisions\"],\"decision-graph.inputs_title\":[\"Inputs of \",[\"name\"]],\"decision-graph.minimap\":[\"Browse rules\"],\"decision-graph.minimap_clear\":[\"Clear search\"],\"decision-graph.minimap_decision\":[[\"name\"],\", \",[\"count\",\"plural\",{\"one\":[\"#\",\" rule\"],\"other\":[\"#\",\" rules\"]}]],\"decision-graph.minimap_no_match\":[\"No match for “\",[\"query\"],\"”.\"],\"decision-graph.minimap_reference\":[[\"name\"],\", listed in full elsewhere in this map\"],\"decision-graph.minimap_results\":[[\"count\",\"plural\",{\"one\":[\"#\",\" result\"],\"other\":[\"#\",\" results\"]}]],\"decision-graph.minimap_search\":[\"Search rules and decisions\"],\"decision-graph.move_down\":[\"Move down\"],\"decision-graph.move_out_of\":[\"Move out of \",[\"name\"]],\"decision-graph.move_under\":[\"Move under \",[\"name\"]],\"decision-graph.move_up\":[\"Move up\"],\"decision-graph.name_field\":[\"Name of \",[\"name\"]],\"decision-graph.no_other_decisions\":[\"No other decisions\"],\"decision-graph.note_title\":[\"Note on \",[\"name\"]],\"decision-graph.open_decision\":[\"Open decision\"],\"decision-graph.rename\":[\"Rename\"],\"decision-graph.rule_count\":[[\"count\",\"plural\",{\"one\":[\"#\",\" rule\"],\"other\":[\"#\",\" rules\"]}]],\"decision-graph.save\":[\"Save\"],\"decision-graph.see_above\":[\"See \",[\"name\"],\" above\"],\"decision-graph.show_problem\":[[\"status\"],\". Show it\"],\"decision-graph.stop_using_in\":[\"Stop using in \",[\"name\"]],\"decision-graph.used_by\":[\"Used by \",[\"names\"]],\"decision-graph.users_title\":[\"Decisions that use \",[\"name\"]],\"decision-table.drag_column\":[\"Drag to reorder whole column\"],\"decision-table.drag_row\":[\"Drag to reorder whole row\"],\"decision-table.insert_column_left\":[\"Insert column left\"],\"decision-table.insert_row_above\":[\"Insert row above\"],\"decision-text.add_condition\":[\"Add condition to rule \",[\"position\"]],\"decision-text.add_input\":[\"Add input column\"],\"decision-text.add_rule\":[\"Add rule\"],\"decision-text.add_value\":[\"Add value\"],\"decision-text.allowed_values\":[\"Allowed values\"],\"decision-text.allowed_values_example\":[\"e.g. \",[\"example\"]],\"decision-text.allowed_values_hint\":[\"Separate values with commas, and write each one as the example shows.\"],\"decision-text.apply\":[\"Apply\"],\"decision-text.band_inputs\":[\"Inputs\"],\"decision-text.band_outputs\":[\"Outputs\"],\"decision-text.cancel\":[\"Cancel\"],\"decision-text.cell\":[[\"cell\"],\", rule \",[\"position\"]],\"decision-text.change_add\":[\"Added\"],\"decision-text.change_delete\":[\"Removed\"],\"decision-text.change_update\":[\"Changed\"],\"decision-text.citation_page\":[\"Page \",[\"page\"]],\"decision-text.clear\":[\"Clear\"],\"decision-text.clear_outcome\":[\"Clear \",[\"column\"],\" in rule \",[\"position\"]],\"decision-text.clear_rule\":[\"Clear rule\"],\"decision-text.column_label\":[\"Label\"],\"decision-text.condition_matched\":[\"Matched\"],\"decision-text.condition_not_matched\":[\"Not matched\"],\"decision-text.current_value\":[\"now\"],\"decision-text.data_type\":[\"Data type\"],\"decision-text.delete_rule\":[\"Delete rule \",[\"position\"]],\"decision-text.duplicate_rule\":[\"Duplicate rule\"],\"decision-text.edit_expression\":[\"Edit expression\"],\"decision-text.empty_rules\":[\"No rules yet\"],\"decision-text.empty_value\":[\"empty\"],\"decision-text.hit_policy_name\":[\"Hit policy: \",[\"policy\"]],\"decision-text.included\":[\"Included\"],\"decision-text.input_column\":[\"Input · \",[\"name\"]],\"decision-text.input_expression\":[\"Input expression\"],\"decision-text.insert_rule_above\":[\"Insert rule above\"],\"decision-text.insert_rule_below\":[\"Insert rule below\"],\"decision-text.mark_error\":[\"Error\"],\"decision-text.mark_status\":[[\"status\"],\": \",[\"message\"]],\"decision-text.mark_warning\":[\"Warning\"],\"decision-text.missing_end\":[\"Enter both ends\"],\"decision-text.missing_input_expression\":[\"This input column has no expression\"],\"decision-text.missing_label\":[\"Enter a label\"],\"decision-text.missing_output_name\":[\"This output column has no name — every output in a multi-output table must be named\"],\"decision-text.missing_value\":[\"Enter a value\"],\"decision-text.more_properties\":[\"More properties\"],\"decision-text.more_values\":[[\"count\",\"plural\",{\"other\":[\"+\",\"#\",\" more\"]}]],\"decision-text.move_rule_down\":[\"Move down\"],\"decision-text.move_rule_up\":[\"Move up\"],\"decision-text.moved_from\":[\"Moved from rule \",[\"number\"]],\"decision-text.new_condition\":[\"New \",[\"column\"],\" condition, rule \",[\"position\"]],\"decision-text.no_value_checked\":[\"Check a value\"],\"decision-text.not_allowed\":[\"Not one of the allowed values\"],\"decision-text.open_decision\":[\"Open \",[\"input\"],\"'s decision\"],\"decision-text.open_decision_citation\":[\"Open source\",[\"index\",\"plural\",{\"0\":[],\"other\":[\" \",\"#\"]}],\" of \",[\"decision\"],\", page \",[\"page\"]],\"decision-text.open_rule_citation\":[\"Open source\",[\"index\",\"plural\",{\"0\":[],\"other\":[\" \",\"#\"]}],\" of rule \",[\"position\"],\", page \",[\"page\"]],\"decision-text.open_table_citation\":[\"Open source\",[\"index\",\"plural\",{\"0\":[],\"other\":[\" \",\"#\"]}],\" of this decision, page \",[\"page\"]],\"decision-text.operator\":[\"Operator\"],\"decision-text.output_column\":[\"Output · \",[\"name\"]],\"decision-text.output_name\":[\"Output name\"],\"decision-text.previous_value\":[\"was\"],\"decision-text.range_high\":[\"To\"],\"decision-text.range_low\":[\"From\"],\"decision-text.remove_condition\":[\"Remove \",[\"column\"],\" from rule \",[\"position\"]],\"decision-text.rule_actions\":[\"Rule \",[\"position\"],\" actions\"],\"decision-text.rule_moved\":[\"Rule moved from position \",[\"from\"],\" to \",[\"to\"]],\"decision-text.set_value\":[\"Set a value\"],\"decision-text.show_rules\":[\"Show rules \",[\"from\"],\"–\",[\"to\"]],\"decision-text.unchanged_rules\":[[\"count\",\"plural\",{\"one\":[\"#\",\" unchanged rule\"],\"other\":[\"#\",\" unchanged rules\"]}]]}");
2
2
  export { messages };