@uipath/apollo-react 7.20.0 → 7.21.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/canvas/components/CanvasTooltip.cjs +9 -4
- package/dist/canvas/components/CanvasTooltip.d.ts +3 -1
- package/dist/canvas/components/CanvasTooltip.d.ts.map +1 -1
- package/dist/canvas/components/CanvasTooltip.js +5 -3
- package/dist/canvas/components/StageNode/StageHeaderChips.cjs +33 -7
- package/dist/canvas/components/StageNode/StageHeaderChips.d.ts.map +1 -1
- package/dist/canvas/components/StageNode/StageHeaderChips.js +36 -10
- package/dist/canvas/styles/tailwind.canvas.css +1 -1
- package/dist/chat/styles/tailwind.chat.css +1 -1
- package/dist/decision-table/ColumnPopover.cjs +7 -2
- package/dist/decision-table/ColumnPopover.d.ts +2 -1
- package/dist/decision-table/ColumnPopover.d.ts.map +1 -1
- package/dist/decision-table/ColumnPopover.js +7 -2
- package/dist/decision-table/DecisionText.cjs +13 -1
- package/dist/decision-table/DecisionText.d.ts +5 -8
- package/dist/decision-table/DecisionText.d.ts.map +1 -1
- package/dist/decision-table/DecisionText.js +14 -2
- package/dist/decision-table/EditorOverlay.cjs +5 -1
- package/dist/decision-table/EditorOverlay.d.ts.map +1 -1
- package/dist/decision-table/EditorOverlay.js +5 -1
- package/dist/decision-table/ExpressionEditorFrame.cjs +2 -2
- package/dist/decision-table/ExpressionEditorFrame.js +2 -2
- package/dist/decision-table/MarkTooltip.cjs +58 -14
- package/dist/decision-table/MarkTooltip.d.ts.map +1 -1
- package/dist/decision-table/MarkTooltip.js +58 -14
- package/dist/decision-table/PopoverSelect.cjs +2 -1
- package/dist/decision-table/PopoverSelect.d.ts.map +1 -1
- package/dist/decision-table/PopoverSelect.js +2 -1
- package/dist/decision-table/TokenChip.d.ts +1 -1
- package/dist/decision-table/TokenChip.d.ts.map +1 -1
- package/dist/decision-table/ValueEditorOverlay.cjs +2 -1
- package/dist/decision-table/ValueEditorOverlay.d.ts +2 -2
- package/dist/decision-table/ValueEditorOverlay.d.ts.map +1 -1
- package/dist/decision-table/ValueEditorOverlay.js +2 -1
- package/dist/decision-table/ValuePopover.cjs +14 -3
- package/dist/decision-table/ValuePopover.d.ts +2 -1
- package/dist/decision-table/ValuePopover.d.ts.map +1 -1
- package/dist/decision-table/ValuePopover.js +14 -3
- package/dist/decision-table/__fixtures__/editableSentences.fixtures.d.ts +5 -5
- package/dist/decision-table/__fixtures__/editableSentences.fixtures.d.ts.map +1 -1
- package/dist/decision-table/__fixtures__/modalDialog.d.ts +1 -0
- package/dist/decision-table/__fixtures__/modalDialog.d.ts.map +1 -1
- package/dist/decision-table/__fixtures__/sentences.fixtures.d.ts +7 -15
- package/dist/decision-table/__fixtures__/sentences.fixtures.d.ts.map +1 -1
- package/dist/decision-table/bandColumns.cjs +68 -0
- package/dist/decision-table/bandColumns.d.ts +9 -0
- package/dist/decision-table/bandColumns.d.ts.map +1 -0
- package/dist/decision-table/bandColumns.js +31 -0
- package/dist/decision-table/decisionTextTypes.d.ts +16 -11
- package/dist/decision-table/decisionTextTypes.d.ts.map +1 -1
- package/dist/decision-table/index.d.ts +3 -3
- package/dist/decision-table/index.d.ts.map +1 -1
- package/dist/decision-table/locales/de.cjs +1 -1
- package/dist/decision-table/locales/de.d.ts.map +1 -1
- package/dist/decision-table/locales/de.js +1 -1
- package/dist/decision-table/locales/en.cjs +1 -1
- package/dist/decision-table/locales/en.d.ts.map +1 -1
- package/dist/decision-table/locales/en.js +1 -1
- package/dist/decision-table/locales/es-MX.cjs +1 -1
- package/dist/decision-table/locales/es-MX.d.ts.map +1 -1
- package/dist/decision-table/locales/es-MX.js +1 -1
- package/dist/decision-table/locales/es.cjs +1 -1
- package/dist/decision-table/locales/es.d.ts.map +1 -1
- package/dist/decision-table/locales/es.js +1 -1
- package/dist/decision-table/locales/fr.cjs +1 -1
- package/dist/decision-table/locales/fr.d.ts.map +1 -1
- package/dist/decision-table/locales/fr.js +1 -1
- package/dist/decision-table/locales/ja.cjs +1 -1
- package/dist/decision-table/locales/ja.d.ts.map +1 -1
- package/dist/decision-table/locales/ja.js +1 -1
- package/dist/decision-table/locales/ko.cjs +1 -1
- package/dist/decision-table/locales/ko.d.ts.map +1 -1
- package/dist/decision-table/locales/ko.js +1 -1
- package/dist/decision-table/locales/pt-BR.cjs +1 -1
- package/dist/decision-table/locales/pt-BR.d.ts.map +1 -1
- package/dist/decision-table/locales/pt-BR.js +1 -1
- package/dist/decision-table/locales/pt.cjs +1 -1
- package/dist/decision-table/locales/pt.d.ts.map +1 -1
- package/dist/decision-table/locales/pt.js +1 -1
- package/dist/decision-table/locales/ro.cjs +1 -1
- package/dist/decision-table/locales/ro.d.ts.map +1 -1
- package/dist/decision-table/locales/ro.js +1 -1
- package/dist/decision-table/locales/ru.cjs +1 -1
- package/dist/decision-table/locales/ru.d.ts.map +1 -1
- package/dist/decision-table/locales/ru.js +1 -1
- package/dist/decision-table/locales/tr.cjs +1 -1
- package/dist/decision-table/locales/tr.d.ts.map +1 -1
- package/dist/decision-table/locales/tr.js +1 -1
- package/dist/decision-table/locales/zh-CN.cjs +1 -1
- package/dist/decision-table/locales/zh-CN.d.ts.map +1 -1
- package/dist/decision-table/locales/zh-CN.js +1 -1
- package/dist/decision-table/locales/zh-TW.cjs +1 -1
- package/dist/decision-table/locales/zh-TW.d.ts.map +1 -1
- package/dist/decision-table/locales/zh-TW.js +1 -1
- package/dist/decision-table/ruleCardModel.cjs +4 -11
- package/dist/decision-table/ruleCardModel.d.ts +3 -4
- package/dist/decision-table/ruleCardModel.d.ts.map +1 -1
- package/dist/decision-table/ruleCardModel.js +5 -9
- package/dist/decision-table/ruleMenuEntries.cjs +138 -0
- package/dist/decision-table/ruleMenuEntries.d.ts +25 -0
- package/dist/decision-table/ruleMenuEntries.d.ts.map +1 -0
- package/dist/decision-table/ruleMenuEntries.js +101 -0
- package/dist/decision-table/sentenceParts.cjs +10 -6
- package/dist/decision-table/sentenceParts.d.ts +1 -0
- package/dist/decision-table/sentenceParts.d.ts.map +1 -1
- package/dist/decision-table/sentenceParts.js +3 -2
- package/dist/decision-table/sentenceTypes.d.ts +3 -1
- package/dist/decision-table/sentenceTypes.d.ts.map +1 -1
- package/dist/decision-table/styles/tailwind.decision-table.css +1 -1
- package/dist/decision-table/useColumnEditing.cjs +11 -1
- package/dist/decision-table/useColumnEditing.d.ts.map +1 -1
- package/dist/decision-table/useColumnEditing.js +12 -2
- package/dist/decision-table/useDecisionTextStrings.cjs +326 -0
- package/dist/decision-table/useDecisionTextStrings.d.ts +5 -0
- package/dist/decision-table/useDecisionTextStrings.d.ts.map +1 -0
- package/dist/decision-table/useDecisionTextStrings.js +286 -0
- package/dist/decision-table/useEditState.cjs +87 -0
- package/dist/decision-table/useEditState.d.ts +8 -0
- package/dist/decision-table/useEditState.d.ts.map +1 -0
- package/dist/decision-table/useEditState.js +53 -0
- package/dist/decision-table/useEditorPlacement.cjs +15 -3
- package/dist/decision-table/useEditorPlacement.d.ts.map +1 -1
- package/dist/decision-table/useEditorPlacement.js +15 -3
- package/dist/decision-table/usePendingCondition.d.ts +2 -2
- package/dist/decision-table/usePendingCondition.d.ts.map +1 -1
- package/dist/decision-table/useRuleMenus.cjs +9 -6
- package/dist/decision-table/useRuleMenus.d.ts +5 -4
- package/dist/decision-table/useRuleMenus.d.ts.map +1 -1
- package/dist/decision-table/useRuleMenus.js +9 -6
- package/dist/decision-table/useShapeDraft.cjs +3 -4
- package/dist/decision-table/useShapeDraft.d.ts.map +1 -1
- package/dist/decision-table/useShapeDraft.js +3 -4
- package/dist/decision-table/useValueEditing.cjs +8 -4
- package/dist/decision-table/useValueEditing.d.ts +3 -3
- package/dist/decision-table/useValueEditing.d.ts.map +1 -1
- package/dist/decision-table/useValueEditing.js +9 -5
- package/dist/decision-table/valueTypes.d.ts +6 -1
- package/dist/decision-table/valueTypes.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TokenChip.d.ts","sourceRoot":"","sources":["../../src/decision-table/TokenChip.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAWpC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAkBrD,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,aAAa,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IAEd,QAAQ,EAAE,OAAO,CAAC;CACnB;AAGD,MAAM,WAAW,YAAY;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"TokenChip.d.ts","sourceRoot":"","sources":["../../src/decision-table/TokenChip.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAWpC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAkBrD,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,aAAa,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IAEd,QAAQ,EAAE,OAAO,CAAC;CACnB;AAGD,MAAM,WAAW,YAAY;IAC3B,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;IAEd,QAAQ,EAAE,OAAO,CAAC;CACnB;AAOD,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,aAAa,CAAC;IACrB,IAAI,EAAE,IAAI,GAAG,SAAS,CAAC;IACvB,MAAM,EAAE,OAAO,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,QAAQ,GAAG,SAAS,CAAC;IAC3B,IAAI,EAAE,YAAY,GAAG,SAAS,CAAC;CAChC;AAGD,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAqD9C,CAAC"}
|
|
@@ -32,7 +32,7 @@ const external_EditorOverlay_cjs_namespaceObject = require("./EditorOverlay.cjs"
|
|
|
32
32
|
const external_sentenceStyles_cjs_namespaceObject = require("./sentenceStyles.cjs");
|
|
33
33
|
const external_useEditorPlacement_cjs_namespaceObject = require("./useEditorPlacement.cjs");
|
|
34
34
|
const external_ValuePopover_cjs_namespaceObject = require("./ValuePopover.cjs");
|
|
35
|
-
const ValueEditorOverlay = ({ editor, renderEditor, labels, onOperatorChange, container, dataTestId })=>{
|
|
35
|
+
const ValueEditorOverlay = ({ editor, renderEditor, labels, refusal, onOperatorChange, container, dataTestId })=>{
|
|
36
36
|
const popoverRef = (0, external_react_namespaceObject.useRef)(null);
|
|
37
37
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_EditorOverlay_cjs_namespaceObject.EditorOverlay, {
|
|
38
38
|
anchor: (0, external_useEditorPlacement_cjs_namespaceObject.valueAnchor)(editor.target),
|
|
@@ -47,6 +47,7 @@ const ValueEditorOverlay = ({ editor, renderEditor, labels, onOperatorChange, co
|
|
|
47
47
|
ref: popoverRef,
|
|
48
48
|
renderEditor: renderEditor,
|
|
49
49
|
labels: labels,
|
|
50
|
+
refusal: refusal,
|
|
50
51
|
onOperatorChange: onOperatorChange,
|
|
51
52
|
dataTestId: `${dataTestId}-editor`
|
|
52
53
|
})
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
2
|
import type { RuleWindow } from './useRuleWindow';
|
|
3
3
|
import { type ValuePopoverProps } from './ValuePopover';
|
|
4
|
-
export type OpenValueEditor = Omit<ValuePopoverProps, 'renderEditor' | 'labels' | 'onOperatorChange' | 'dataTestId'>;
|
|
5
|
-
export interface ValueEditorOverlayProps extends Pick<ValuePopoverProps, 'renderEditor' | 'labels' | 'onOperatorChange'> {
|
|
4
|
+
export type OpenValueEditor = Omit<ValuePopoverProps, 'renderEditor' | 'labels' | 'refusal' | 'onOperatorChange' | 'dataTestId'>;
|
|
5
|
+
export interface ValueEditorOverlayProps extends Pick<ValuePopoverProps, 'renderEditor' | 'labels' | 'refusal' | 'onOperatorChange'> {
|
|
6
6
|
editor: OpenValueEditor;
|
|
7
7
|
container: RuleWindow['container'];
|
|
8
8
|
dataTestId: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ValueEditorOverlay.d.ts","sourceRoot":"","sources":["../../src/decision-table/ValueEditorOverlay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAyC,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAG/F,MAAM,MAAM,eAAe,GAAG,IAAI,CAChC,iBAAiB,EACjB,cAAc,GAAG,QAAQ,GAAG,kBAAkB,GAAG,YAAY,
|
|
1
|
+
{"version":3,"file":"ValueEditorOverlay.d.ts","sourceRoot":"","sources":["../../src/decision-table/ValueEditorOverlay.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAK/B,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,EAAyC,KAAK,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAG/F,MAAM,MAAM,eAAe,GAAG,IAAI,CAChC,iBAAiB,EACjB,cAAc,GAAG,QAAQ,GAAG,SAAS,GAAG,kBAAkB,GAAG,YAAY,CAC1E,CAAC;AAEF,MAAM,WAAW,uBACf,SAAQ,IAAI,CAAC,iBAAiB,EAAE,cAAc,GAAG,QAAQ,GAAG,SAAS,GAAG,kBAAkB,CAAC;IAC3F,MAAM,EAAE,eAAe,CAAC;IACxB,SAAS,EAAE,UAAU,CAAC,WAAW,CAAC,CAAC;IACnC,UAAU,EAAE,MAAM,CAAC;CACpB;AAGD,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CA+BhE,CAAC"}
|
|
@@ -4,7 +4,7 @@ import { EditorOverlay } from "./EditorOverlay.js";
|
|
|
4
4
|
import { VALUE_EDITOR_CLASS } from "./sentenceStyles.js";
|
|
5
5
|
import { valueAnchor } from "./useEditorPlacement.js";
|
|
6
6
|
import { ValuePopover } from "./ValuePopover.js";
|
|
7
|
-
const ValueEditorOverlay = ({ editor, renderEditor, labels, onOperatorChange, container, dataTestId })=>{
|
|
7
|
+
const ValueEditorOverlay = ({ editor, renderEditor, labels, refusal, onOperatorChange, container, dataTestId })=>{
|
|
8
8
|
const popoverRef = useRef(null);
|
|
9
9
|
return /*#__PURE__*/ jsx(EditorOverlay, {
|
|
10
10
|
anchor: valueAnchor(editor.target),
|
|
@@ -19,6 +19,7 @@ const ValueEditorOverlay = ({ editor, renderEditor, labels, onOperatorChange, co
|
|
|
19
19
|
ref: popoverRef,
|
|
20
20
|
renderEditor: renderEditor,
|
|
21
21
|
labels: labels,
|
|
22
|
+
refusal: refusal,
|
|
22
23
|
onOperatorChange: onOperatorChange,
|
|
23
24
|
dataTestId: `${dataTestId}-editor`
|
|
24
25
|
})
|
|
@@ -63,8 +63,10 @@ const footerLinks = (editExpression, onClear, labels, dataTestId)=>[
|
|
|
63
63
|
}
|
|
64
64
|
] : []
|
|
65
65
|
];
|
|
66
|
-
const ValuePopover = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)(({ target, value, ariaLabel, column, field, adds, onCommit, onCancel, onOperatorChange, onClear, renderEditor, labels, dataTestId }, ref)=>{
|
|
67
|
-
const
|
|
66
|
+
const ValuePopover = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef)(({ target, value, ariaLabel, column, field, adds, onCommit, onCancel, onOperatorChange, onClear, renderEditor, labels, refusal, dataTestId }, ref)=>{
|
|
67
|
+
const id = (0, external_react_namespaceObject.useId)();
|
|
68
|
+
const problemId = `${id}-problem`;
|
|
69
|
+
const refusalId = `${id}-refusal`;
|
|
68
70
|
const [root, setRoot] = (0, external_react_namespaceObject.useState)(null);
|
|
69
71
|
const [draft, setDraft] = (0, external_react_namespaceObject.useState)(value);
|
|
70
72
|
const [seed, setSeed] = (0, external_react_namespaceObject.useState)(null);
|
|
@@ -185,7 +187,10 @@ const ValuePopover = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef
|
|
|
185
187
|
onValueKeyDown: onValueKeyDown,
|
|
186
188
|
focusRef: holdFocus,
|
|
187
189
|
keyShortcuts: operators.length > 0 ? OPERATOR_SHORTCUTS : void 0,
|
|
188
|
-
describedBy:
|
|
190
|
+
describedBy: [
|
|
191
|
+
problem && problemId,
|
|
192
|
+
refusal && refusalId
|
|
193
|
+
].filter(Boolean).join(' ') || void 0,
|
|
189
194
|
labels: labels,
|
|
190
195
|
dataTestId: dataTestId
|
|
191
196
|
}),
|
|
@@ -196,6 +201,12 @@ const ValuePopover = /*#__PURE__*/ (0, external_react_namespaceObject.forwardRef
|
|
|
196
201
|
})
|
|
197
202
|
]
|
|
198
203
|
}),
|
|
204
|
+
refusal && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
205
|
+
id: refusalId,
|
|
206
|
+
role: "alert",
|
|
207
|
+
className: external_sentenceStyles_cjs_namespaceObject.POPOVER_ERROR_CLASS,
|
|
208
|
+
children: refusal.message
|
|
209
|
+
}, refusal.attempt),
|
|
199
210
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_PopoverFooter_cjs_namespaceObject.PopoverFooter, {
|
|
200
211
|
links: footerLinks(expression ? void 0 : editExpression, onClear, labels, dataTestId),
|
|
201
212
|
onCancel: onCancel,
|
|
@@ -4,7 +4,7 @@ import type { CellCommitMove, GridCellEditorContext } from './gridTypes';
|
|
|
4
4
|
import { type PopoverFooterLabels } from './PopoverFooter';
|
|
5
5
|
import { type DraftProblemLabels } from './useShapeDraft';
|
|
6
6
|
import { type ValueFieldsLabels } from './ValueFields';
|
|
7
|
-
import type { ExpressionEditorProps, ValueCommit, ValueField } from './valueTypes';
|
|
7
|
+
import type { CommitRefusal, ExpressionEditorProps, ValueCommit, ValueField } from './valueTypes';
|
|
8
8
|
export interface ValuePopoverLabels extends PopoverFooterLabels, ValueFieldsLabels, DraftProblemLabels {
|
|
9
9
|
operator: string;
|
|
10
10
|
editExpression: string;
|
|
@@ -22,6 +22,7 @@ export interface ValuePopoverProps extends Pick<ExpressionEditorProps, 'target'
|
|
|
22
22
|
onClear: (() => void) | undefined;
|
|
23
23
|
renderEditor: ExpressionEditorFrameProps['renderEditor'];
|
|
24
24
|
labels: ValuePopoverLabels;
|
|
25
|
+
refusal: CommitRefusal | null;
|
|
25
26
|
dataTestId: string;
|
|
26
27
|
}
|
|
27
28
|
export declare const ValuePopover: React.ForwardRefExoticComponent<ValuePopoverProps & React.RefAttributes<ValuePopoverHandle>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ValuePopover.d.ts","sourceRoot":"","sources":["../../src/decision-table/ValuePopover.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAyB,KAAK,0BAA0B,EAAE,MAAM,yBAAyB,CAAC;AAEjG,OAAO,KAAK,EAAE,cAAc,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AACzE,OAAO,EAAiB,KAAK,mBAAmB,EAA0B,MAAM,iBAAiB,CAAC;AAIlG,OAAO,EAAE,KAAK,kBAAkB,EAAiB,MAAM,iBAAiB,CAAC;AACzE,OAAO,EAAe,KAAK,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACpE,OAAO,KAAK,EAAE,qBAAqB,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"ValuePopover.d.ts","sourceRoot":"","sources":["../../src/decision-table/ValuePopover.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,K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,GAAG,IAAI,CAAC;IAE9B,UAAU,EAAE,MAAM,CAAC;CACpB;AAyCD,eAAO,MAAM,YAAY,8FA0KxB,CAAC"}
|
|
@@ -35,8 +35,10 @@ const footerLinks = (editExpression, onClear, labels, dataTestId)=>[
|
|
|
35
35
|
}
|
|
36
36
|
] : []
|
|
37
37
|
];
|
|
38
|
-
const ValuePopover = /*#__PURE__*/ forwardRef(({ target, value, ariaLabel, column, field, adds, onCommit, onCancel, onOperatorChange, onClear, renderEditor, labels, dataTestId }, ref)=>{
|
|
39
|
-
const
|
|
38
|
+
const ValuePopover = /*#__PURE__*/ forwardRef(({ target, value, ariaLabel, column, field, adds, onCommit, onCancel, onOperatorChange, onClear, renderEditor, labels, refusal, dataTestId }, ref)=>{
|
|
39
|
+
const id = useId();
|
|
40
|
+
const problemId = `${id}-problem`;
|
|
41
|
+
const refusalId = `${id}-refusal`;
|
|
40
42
|
const [root, setRoot] = useState(null);
|
|
41
43
|
const [draft, setDraft] = useState(value);
|
|
42
44
|
const [seed, setSeed] = useState(null);
|
|
@@ -157,7 +159,10 @@ const ValuePopover = /*#__PURE__*/ forwardRef(({ target, value, ariaLabel, colum
|
|
|
157
159
|
onValueKeyDown: onValueKeyDown,
|
|
158
160
|
focusRef: holdFocus,
|
|
159
161
|
keyShortcuts: operators.length > 0 ? OPERATOR_SHORTCUTS : void 0,
|
|
160
|
-
describedBy:
|
|
162
|
+
describedBy: [
|
|
163
|
+
problem && problemId,
|
|
164
|
+
refusal && refusalId
|
|
165
|
+
].filter(Boolean).join(' ') || void 0,
|
|
161
166
|
labels: labels,
|
|
162
167
|
dataTestId: dataTestId
|
|
163
168
|
}),
|
|
@@ -168,6 +173,12 @@ const ValuePopover = /*#__PURE__*/ forwardRef(({ target, value, ariaLabel, colum
|
|
|
168
173
|
})
|
|
169
174
|
]
|
|
170
175
|
}),
|
|
176
|
+
refusal && /*#__PURE__*/ jsx("span", {
|
|
177
|
+
id: refusalId,
|
|
178
|
+
role: "alert",
|
|
179
|
+
className: POPOVER_ERROR_CLASS,
|
|
180
|
+
children: refusal.message
|
|
181
|
+
}, refusal.attempt),
|
|
171
182
|
/*#__PURE__*/ jsx(PopoverFooter, {
|
|
172
183
|
links: footerLinks(expression ? void 0 : editExpression, onClear, labels, dataTestId),
|
|
173
184
|
onCancel: onCancel,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { SentenceBandColumn, SentenceCellId, SentenceNameToken, SentenceRule, SentenceValueId } from '../sentenceTypes';
|
|
2
2
|
import type { RangeEnds, ValueCommit } from '../valueTypes';
|
|
3
|
-
type
|
|
3
|
+
import type { SentenceColumns } from './sentences.fixtures';
|
|
4
|
+
type EditableColumn = Pick<SentenceBandColumn, 'id' | 'name'> & Pick<SentenceNameToken, 'producedBy'>;
|
|
4
5
|
interface EditableCondition {
|
|
5
6
|
inputId: string;
|
|
6
7
|
operator: string;
|
|
@@ -20,7 +21,7 @@ export interface EditableTable {
|
|
|
20
21
|
nextId: number;
|
|
21
22
|
}
|
|
22
23
|
export declare const wordedRules: (table: EditableTable) => SentenceRule[];
|
|
23
|
-
export declare const
|
|
24
|
+
export declare const tableColumns: ({ inputs, outputs }: EditableTable) => SentenceColumns;
|
|
24
25
|
export declare const isOutput: (table: EditableTable, columnId: string) => boolean;
|
|
25
26
|
export declare const tableWithValue: (table: EditableTable, target: SentenceValueId, text: string) => EditableTable;
|
|
26
27
|
export declare const tableWithCondition: (table: EditableTable, target: SentenceValueId, { values, operator, ends }: Extract<ValueCommit, {
|
|
@@ -28,12 +29,11 @@ export declare const tableWithCondition: (table: EditableTable, target: Sentence
|
|
|
28
29
|
}>) => EditableTable;
|
|
29
30
|
export declare const tableWithExpression: (table: EditableTable, target: SentenceValueId, text: string) => EditableTable;
|
|
30
31
|
export declare const tableWithoutCell: (table: EditableTable, cell: SentenceCellId) => EditableTable;
|
|
31
|
-
export declare const unusedInputs: (table: EditableTable, rowId: string) => EditableColumn[];
|
|
32
32
|
export declare const tableWithNewInput: (table: EditableTable) => [EditableTable, string];
|
|
33
33
|
export declare const tableWithRuleAt: (table: EditableTable, index: number) => [EditableTable, string];
|
|
34
34
|
export declare const tableWithDuplicate: (table: EditableTable, rowId: string) => [EditableTable, string];
|
|
35
35
|
export declare const tableWithClearedRule: (table: EditableTable, rowId: string) => EditableTable;
|
|
36
|
-
export declare const tableWithMovedRule: (table: EditableTable,
|
|
36
|
+
export declare const tableWithMovedRule: (table: EditableTable, from: number, to: number) => EditableTable;
|
|
37
37
|
export declare const tableWithoutRule: (table: EditableTable, rowId: string) => EditableTable;
|
|
38
38
|
export declare const EDITABLE_TABLE: EditableTable;
|
|
39
39
|
export declare const EMPTY_TABLE: EditableTable;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editableSentences.fixtures.d.ts","sourceRoot":"","sources":["../../../src/decision-table/__fixtures__/editableSentences.fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,
|
|
1
|
+
{"version":3,"file":"editableSentences.fixtures.d.ts","sourceRoot":"","sources":["../../../src/decision-table/__fixtures__/editableSentences.fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,kBAAkB,EAClB,cAAc,EAEd,iBAAiB,EAEjB,YAAY,EACZ,eAAe,EAChB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAG5D,KAAK,cAAc,GAAG,IAAI,CAAC,kBAAkB,EAAE,IAAI,GAAG,MAAM,CAAC,GAC3D,IAAI,CAAC,iBAAiB,EAAE,YAAY,CAAC,CAAC;AAGxC,UAAU,iBAAiB;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI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,eAAO,MAAM,kBAAkB,GAC7B,OAAO,aAAa,EACpB,OAAO,MAAM,KACZ,CAAC,aAAa,EAAE,MAAM,CAOxB,CAAC;AAGF,eAAO,MAAM,oBAAoB,GAAI,OAAO,aAAa,EAAE,OAAO,MAAM,KAAG,aACG,CAAC;AAG/E,eAAO,MAAM,kBAAkB,GAC7B,OAAO,aAAa,EACpB,MAAM,MAAM,EACZ,IAAI,MAAM,KACT,aAOF,CAAC;AAGF,eAAO,MAAM,gBAAgB,GAAI,OAAO,aAAa,EAAE,OAAO,MAAM,KAAG,aAGrE,CAAC;AAGH,eAAO,MAAM,cAAc,EAAE,aAgC5B,CAAC;AAGF,eAAO,MAAM,WAAW,EAAE,aAAgD,CAAC;AAG3E,eAAO,MAAM,cAAc,GAAI,OAAO,MAAM,EAAE,QAAQ,MAAM,EAAE,QAAQ,MAAM,KAAG,aA0C9E,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"modalDialog.d.ts","sourceRoot":"","sources":["../../../src/decision-table/__fixtures__/modalDialog.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"modalDialog.d.ts","sourceRoot":"","sources":["../../../src/decision-table/__fixtures__/modalDialog.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,yBAAyB,QAAO,CAAC,MAAM,IAAI,CAuBvD,CAAC;AAGF,eAAO,MAAM,qBAAqB,QAAO,CAAC,MAAM,IAAI,CAqBnD,CAAC;AAGF,eAAO,MAAM,YAAY,GACvB,QAAQ,OAAO,EACf,0BAAuC;IAAE,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAA;CAAO,SAQtF,CAAC"}
|
|
@@ -1,30 +1,22 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { DecisionTextProps } from '../DecisionText';
|
|
2
2
|
import type { PolicyGroup } from '../PolicyPicker';
|
|
3
|
-
import type {
|
|
3
|
+
import type { SentenceHeader, SentenceNameToken, SentencePart, SentenceRule, SentenceValueToken } from '../sentenceTypes';
|
|
4
4
|
type ValueMaker = (text: string, index?: number) => SentenceValueToken;
|
|
5
|
+
export type SentenceColumns = Pick<DecisionTextProps, 'inputs' | 'outputs'>;
|
|
6
|
+
export declare const NO_COLUMNS: SentenceColumns;
|
|
5
7
|
export declare const valueList: (value: ValueMaker, texts: readonly string[]) => SentencePart[];
|
|
6
8
|
export declare const GRID_SENTENCE_RULES: SentenceRule[];
|
|
7
|
-
export declare const
|
|
9
|
+
export declare const GRID_SENTENCE_COLUMNS: SentenceColumns;
|
|
8
10
|
export declare const GRID_SENTENCE_HEADER: SentenceHeader;
|
|
9
11
|
export declare const HIT_POLICY_GROUPS: readonly PolicyGroup[];
|
|
10
12
|
export declare const COUNTRY: SentenceNameToken, country: ValueMaker;
|
|
11
13
|
export declare const CHANNEL: SentenceNameToken, channel: ValueMaker;
|
|
12
14
|
export declare const MULTI_SENTENCE_RULES: SentenceRule[];
|
|
13
|
-
export declare const
|
|
15
|
+
export declare const MULTI_SENTENCE_COLUMNS: SentenceColumns;
|
|
14
16
|
export declare const MULTI_SENTENCE_HEADER: SentenceHeader;
|
|
15
|
-
export declare const DECISION_TEXT_LABELS: {
|
|
16
|
-
emptyRules: string;
|
|
17
|
-
markStatus: (tone: import("..").GlyphTone, message: string | undefined) => string;
|
|
18
|
-
moreValues: (count: number) => string;
|
|
19
|
-
conditionVerdict: (matched: boolean) => "Matched" | "Not matched";
|
|
20
|
-
cell: (column: string, values: string, position: number) => string;
|
|
21
|
-
emptyValue: string;
|
|
22
|
-
openDecision: (input: string) => string;
|
|
23
|
-
};
|
|
24
|
-
export declare const DECISION_TEXT_EDIT_LABELS: DecisionTextEditLabels;
|
|
25
17
|
export declare const manySentenceRules: (count: number) => SentenceRule[];
|
|
26
18
|
export declare const longValueListRule: (count: number) => SentenceRule;
|
|
27
19
|
export declare const manyLinesRule: (count: number) => SentenceRule;
|
|
28
|
-
export declare const
|
|
20
|
+
export declare const manyColumns: (count: number) => SentenceColumns;
|
|
29
21
|
export {};
|
|
30
22
|
//# sourceMappingURL=sentences.fixtures.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sentences.fixtures.d.ts","sourceRoot":"","sources":["../../../src/decision-table/__fixtures__/sentences.fixtures.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"sentences.fixtures.d.ts","sourceRoot":"","sources":["../../../src/decision-table/__fixtures__/sentences.fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,KAAK,EAEV,cAAc,EAEd,iBAAiB,EACjB,YAAY,EACZ,YAAY,EACZ,kBAAkB,EACnB,MAAM,kBAAkB,CAAC;AAG1B,KAAK,UAAU,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,kBAAkB,CAAC;AAkBvE,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,iBAAiB,EAAE,QAAQ,GAAG,SAAS,CAAC,CAAC;AAG5E,eAAO,MAAM,UAAU,EAAE,eAA6C,CAAC;AAMvE,eAAO,MAAM,SAAS,GAAI,OAAO,UAAU,EAAE,OAAO,SAAS,MAAM,EAAE,mBAGlE,CAAC;AAOJ,eAAO,MAAM,mBAAmB,EAAE,YAAY,EAuC7C,CAAC;AAGF,eAAO,MAAM,qBAAqB,EAAE,eAGnC,CAAC;AAGF,eAAO,MAAM,oBAAoB,EAAE,cAGlC,CAAC;AAGF,eAAO,MAAM,iBAAiB,EAAE,SAAS,WAAW,EA4BnD,CAAC;AAIF,eAAO,MAAO,OAAO,qBAAE,OAAO,YAAyC,CAAC;AAExE,eAAO,MAAO,OAAO,qBAAE,OAAO,YAAyC,CAAC;AAYxE,eAAO,MAAM,oBAAoB,EAAE,YAAY,EAkD9C,CAAC;AAGF,eAAO,MAAM,sBAAsB,EAAE,eAGpC,CAAC;AAGF,eAAO,MAAM,qBAAqB,EAAE,cAGnC,CAAC;AASF,eAAO,MAAM,iBAAiB,GAAI,OAAO,MAAM,KAAG,YAAY,EAIzD,CAAC;AAGN,eAAO,MAAM,iBAAiB,GAAI,OAAO,MAAM,KAAG,YAahD,CAAC;AAKH,eAAO,MAAM,aAAa,GAAI,OAAO,MAAM,KAAG,YAO5C,CAAC;AAGH,eAAO,MAAM,WAAW,GAAI,OAAO,MAAM,KAAG,eAG1C,CAAC"}
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.d = (exports1, definition)=>{
|
|
5
|
+
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: definition[key]
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
})();
|
|
11
|
+
(()=>{
|
|
12
|
+
__webpack_require__.o = (obj, prop)=>Object.prototype.hasOwnProperty.call(obj, prop);
|
|
13
|
+
})();
|
|
14
|
+
(()=>{
|
|
15
|
+
__webpack_require__.r = (exports1)=>{
|
|
16
|
+
if ("u" > typeof Symbol && Symbol.toStringTag) Object.defineProperty(exports1, Symbol.toStringTag, {
|
|
17
|
+
value: 'Module'
|
|
18
|
+
});
|
|
19
|
+
Object.defineProperty(exports1, '__esModule', {
|
|
20
|
+
value: true
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
})();
|
|
24
|
+
var __webpack_exports__ = {};
|
|
25
|
+
__webpack_require__.r(__webpack_exports__);
|
|
26
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
+
bandsOf: ()=>bandsOf,
|
|
28
|
+
valueTypeIcon: ()=>valueTypeIcon
|
|
29
|
+
});
|
|
30
|
+
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
31
|
+
const external_lucide_react_namespaceObject = require("lucide-react");
|
|
32
|
+
const VALUE_TYPE_ICONS = new Map(Object.entries({
|
|
33
|
+
text: external_lucide_react_namespaceObject.Type,
|
|
34
|
+
number: external_lucide_react_namespaceObject.Hash,
|
|
35
|
+
boolean: external_lucide_react_namespaceObject.ToggleRight,
|
|
36
|
+
date: external_lucide_react_namespaceObject.Calendar,
|
|
37
|
+
time: external_lucide_react_namespaceObject.Clock,
|
|
38
|
+
dateTime: external_lucide_react_namespaceObject.CalendarClock,
|
|
39
|
+
dayTimeDuration: external_lucide_react_namespaceObject.Timer,
|
|
40
|
+
yearMonthDuration: external_lucide_react_namespaceObject.CalendarRange,
|
|
41
|
+
list: external_lucide_react_namespaceObject.Brackets,
|
|
42
|
+
any: external_lucide_react_namespaceObject.Braces
|
|
43
|
+
}));
|
|
44
|
+
const valueTypeIcon = (type)=>{
|
|
45
|
+
const Icon = void 0 === type ? void 0 : VALUE_TYPE_ICONS.get(type);
|
|
46
|
+
return Icon && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(Icon, {});
|
|
47
|
+
};
|
|
48
|
+
const bandOf = (id, label, columns)=>({
|
|
49
|
+
id,
|
|
50
|
+
label,
|
|
51
|
+
columns: columns.map((column)=>({
|
|
52
|
+
...column,
|
|
53
|
+
icon: column.icon ?? valueTypeIcon(column.type)
|
|
54
|
+
}))
|
|
55
|
+
});
|
|
56
|
+
const bandsOf = (inputs, outputs, labels)=>[
|
|
57
|
+
bandOf('inputs', labels.inputs, inputs),
|
|
58
|
+
bandOf('outputs', labels.outputs, outputs)
|
|
59
|
+
].filter((band)=>band.columns.length > 0);
|
|
60
|
+
exports.bandsOf = __webpack_exports__.bandsOf;
|
|
61
|
+
exports.valueTypeIcon = __webpack_exports__.valueTypeIcon;
|
|
62
|
+
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
63
|
+
"bandsOf",
|
|
64
|
+
"valueTypeIcon"
|
|
65
|
+
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
66
|
+
Object.defineProperty(exports, '__esModule', {
|
|
67
|
+
value: true
|
|
68
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { SentenceBand, SentenceBandColumn, SentenceValueType } from './sentenceTypes';
|
|
3
|
+
export declare const valueTypeIcon: (type: SentenceValueType | undefined) => React.ReactNode;
|
|
4
|
+
export interface BandLabels {
|
|
5
|
+
inputs: string;
|
|
6
|
+
outputs: string;
|
|
7
|
+
}
|
|
8
|
+
export declare const bandsOf: (inputs: readonly SentenceBandColumn[], outputs: readonly SentenceBandColumn[], labels: BandLabels) => SentenceBand[];
|
|
9
|
+
//# sourceMappingURL=bandColumns.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bandColumns.d.ts","sourceRoot":"","sources":["../../src/decision-table/bandColumns.tsx"],"names":[],"mappings":"AAaA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,YAAY,EAAE,kBAAkB,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAkB3F,eAAO,MAAM,aAAa,GAAI,MAAM,iBAAiB,GAAG,SAAS,KAAG,KAAK,CAAC,SAGzE,CAAC;AAGF,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACjB;AAgBD,eAAO,MAAM,OAAO,GAClB,QAAQ,SAAS,kBAAkB,EAAE,EACrC,SAAS,SAAS,kBAAkB,EAAE,EACtC,QAAQ,UAAU,KACjB,YAAY,EAGZ,CAAC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { Braces, Brackets, Calendar, CalendarClock, CalendarRange, Clock, Hash, Timer, ToggleRight, Type } from "lucide-react";
|
|
3
|
+
const VALUE_TYPE_ICONS = new Map(Object.entries({
|
|
4
|
+
text: Type,
|
|
5
|
+
number: Hash,
|
|
6
|
+
boolean: ToggleRight,
|
|
7
|
+
date: Calendar,
|
|
8
|
+
time: Clock,
|
|
9
|
+
dateTime: CalendarClock,
|
|
10
|
+
dayTimeDuration: Timer,
|
|
11
|
+
yearMonthDuration: CalendarRange,
|
|
12
|
+
list: Brackets,
|
|
13
|
+
any: Braces
|
|
14
|
+
}));
|
|
15
|
+
const valueTypeIcon = (type)=>{
|
|
16
|
+
const Icon = void 0 === type ? void 0 : VALUE_TYPE_ICONS.get(type);
|
|
17
|
+
return Icon && /*#__PURE__*/ jsx(Icon, {});
|
|
18
|
+
};
|
|
19
|
+
const bandOf = (id, label, columns)=>({
|
|
20
|
+
id,
|
|
21
|
+
label,
|
|
22
|
+
columns: columns.map((column)=>({
|
|
23
|
+
...column,
|
|
24
|
+
icon: column.icon ?? valueTypeIcon(column.type)
|
|
25
|
+
}))
|
|
26
|
+
});
|
|
27
|
+
const bandsOf = (inputs, outputs, labels)=>[
|
|
28
|
+
bandOf('inputs', labels.inputs, inputs),
|
|
29
|
+
bandOf('outputs', labels.outputs, outputs)
|
|
30
|
+
].filter((band)=>band.columns.length > 0);
|
|
31
|
+
export { bandsOf, valueTypeIcon };
|
|
@@ -1,26 +1,31 @@
|
|
|
1
|
+
import type { BandLabels } from './bandColumns';
|
|
1
2
|
import type { ColumnEdit, ColumnPopoverLabels } from './ColumnPopover';
|
|
2
|
-
import type { GridMenuEntry } from './GridMenu';
|
|
3
3
|
import type { CellCommitMove } from './gridTypes';
|
|
4
4
|
import type { RuleCardEditLabels } from './RuleCard';
|
|
5
|
+
import type { RuleCardLabels } from './ruleCardModel';
|
|
6
|
+
import type { RuleMenuActions, RuleMenuLabels } from './ruleMenuEntries';
|
|
5
7
|
import type { SentenceCellId, SentenceValueId } from './sentenceTypes';
|
|
6
8
|
import type { ValuePopoverLabels, ValuePopoverProps } from './ValuePopover';
|
|
7
9
|
import type { ValueCommit } from './valueTypes';
|
|
8
|
-
export interface
|
|
10
|
+
export interface DecisionTextLabels extends RuleCardLabels, BandLabels {
|
|
11
|
+
emptyRules: string;
|
|
12
|
+
}
|
|
13
|
+
export interface DecisionTextEditLabels extends RuleCardEditLabels, ValuePopoverLabels, ColumnPopoverLabels, RuleMenuLabels {
|
|
9
14
|
newCondition: (column: string, position: number) => string;
|
|
10
15
|
setValue: string;
|
|
11
16
|
}
|
|
12
|
-
export interface DecisionTextEdit {
|
|
13
|
-
editing
|
|
14
|
-
onStartEdit
|
|
15
|
-
onCommit: (value: SentenceValueId, commit: ValueCommit, move: CellCommitMove) => void;
|
|
16
|
-
onCancel
|
|
17
|
+
export interface DecisionTextEdit extends RuleMenuActions {
|
|
18
|
+
editing?: SentenceValueId | null;
|
|
19
|
+
onStartEdit?: (value: SentenceValueId) => void;
|
|
20
|
+
onCommit: (value: SentenceValueId, commit: ValueCommit, move: CellCommitMove) => string | void;
|
|
21
|
+
onCancel?: () => void;
|
|
17
22
|
valueField?: (cell: SentenceCellId) => ValuePopoverProps['field'];
|
|
18
23
|
renderEditor?: ValuePopoverProps['renderEditor'];
|
|
19
24
|
column?: ColumnEdit;
|
|
20
25
|
onClearCell: (cell: SentenceCellId) => void;
|
|
21
|
-
|
|
22
|
-
ruleEntries: (rowId: string) => GridMenuEntry[];
|
|
23
|
-
onDeleteRule: (rowId: string) => void;
|
|
24
|
-
labels: DecisionTextEditLabels;
|
|
26
|
+
labels?: Partial<DecisionTextEditLabels>;
|
|
25
27
|
}
|
|
28
|
+
export type ViewEdit = Omit<DecisionTextEdit, 'labels'> & Required<Pick<DecisionTextEdit, 'editing' | 'onStartEdit' | 'onCancel'>> & {
|
|
29
|
+
labels: DecisionTextEditLabels;
|
|
30
|
+
};
|
|
26
31
|
//# sourceMappingURL=decisionTextTypes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decisionTextTypes.d.ts","sourceRoot":"","sources":["../../src/decision-table/decisionTextTypes.ts"],"names":[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,CAAC;IAE/C,QAAQ,EAAE,CAAC,KAAK,EAAE,eAAe,EAAE,MAAM,EAAE,WAAW,EAAE,IAAI,EAAE,cAAc,KAAK,MAAM,GAAG,IAAI,CAAC;IAE/F,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IAEtB,UAAU,CAAC,EAAE,CAAC,IAAI,EAAE,cAAc,KAAK,iBAAiB,CAAC,OAAO,CAAC,CAAC;IAElE,YAAY,CAAC,EAAE,iBAAiB,CAAC,cAAc,CAAC,CAAC;IAEjD,MAAM,CAAC,EAAE,UAAU,CAAC;IAEpB,WAAW,EAAE,CAAC,IAAI,EAAE,cAAc,KAAK,IAAI,CAAC;IAE5C,MAAM,CAAC,EAAE,OAAO,CAAC,sBAAsB,CAAC,CAAC;CAC1C;AAGD,MAAM,MAAM,QAAQ,GAAG,IAAI,CAAC,gBAAgB,EAAE,QAAQ,CAAC,GACrD,QAAQ,CAAC,IAAI,CAAC,gBAAgB,EAAE,SAAS,GAAG,aAAa,GAAG,UAAU,CAAC,CAAC,GAAG;IACzE,MAAM,EAAE,sBAAsB,CAAC;CAChC,CAAC"}
|
|
@@ -3,9 +3,9 @@ export type { ColumnChange, ColumnEdit, ColumnField, ColumnTypeOption } from './
|
|
|
3
3
|
export type { SizedColumn } from './columnSizing';
|
|
4
4
|
export { BODY_ROW_HEIGHT_PX, EMPTY_VALUE_DASH, ROW_NUMBER_WIDTH } from './constants';
|
|
5
5
|
export { DecisionTable, type DecisionTableProps, type HeaderCellContext } from './DecisionTable';
|
|
6
|
-
export { DecisionText, type
|
|
6
|
+
export { DecisionText, type DecisionTextProps } from './DecisionText';
|
|
7
7
|
export { DragIndicator, type DragIndicatorProps } from './DragIndicator';
|
|
8
|
-
export type { DecisionTextEdit, DecisionTextEditLabels } from './decisionTextTypes';
|
|
8
|
+
export type { DecisionTextEdit, DecisionTextEditLabels, DecisionTextLabels, } from './decisionTextTypes';
|
|
9
9
|
export { EdgeInsertButton, type EdgeInsertButtonProps } from './EdgeInsertButton';
|
|
10
10
|
export { GridCell, type GridCellProps, renderRestingCellContent } from './GridCell';
|
|
11
11
|
export { GridContextMenu, type GridContextMenuProps, type GridContextMenuState, type GridMenuEntry, type GridMenuItem, } from './GridMenu';
|
|
@@ -17,7 +17,7 @@ export { EMPTY_MARKS, type Mark, type MarkTone, type RowMark, type TableMarks }
|
|
|
17
17
|
export type { PolicyOption } from './PolicyOptionItem';
|
|
18
18
|
export type { PolicyGroup, PolicyPickerProps } from './PolicyPicker';
|
|
19
19
|
export type { GlyphTone } from './sentenceMarks';
|
|
20
|
-
export type {
|
|
20
|
+
export type { SentenceBandColumn, SentenceCellId, SentenceHeader, SentenceLine, SentenceNameToken, SentencePart, SentenceRule, SentenceSelection, SentenceToken, SentenceValueId, SentenceValueToken, SentenceValueType, } from './sentenceTypes';
|
|
21
21
|
export type { DecisionTextContainerProps } from './useContainerHandlers';
|
|
22
22
|
export { usePressDrag } from './useDragReorder';
|
|
23
23
|
export { useDragSelection } from './useDragSelection';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/decision-table/index.ts"],"names":[],"mappings":"AAMA,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAC1D,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAC/F,YAAY,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACrF,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACjG,OAAO,EAAE,YAAY,EAAE,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/decision-table/index.ts"],"names":[],"mappings":"AAMA,YAAY,EAAE,kBAAkB,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EACnB,UAAU,GACX,MAAM,cAAc,CAAC"}
|
|
@@ -26,7 +26,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
26
26
|
__webpack_require__.d(__webpack_exports__, {
|
|
27
27
|
messages: ()=>messages
|
|
28
28
|
});
|
|
29
|
-
const messages = JSON.parse("{\"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\"]}");
|
|
29
|
+
const messages = JSON.parse("{\"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_value\":[\"Add value\"],\"decision-text.allowed_values\":[\"Allowed values\"],\"decision-text.allowed_values_hint\":[\"Separate values with commas.\"],\"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.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.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.ends_out_of_order\":[\"From must not be past To\"],\"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.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.operator\":[\"Operator\"],\"decision-text.output_column\":[\"Output · \",[\"name\"]],\"decision-text.output_name\":[\"Output name\"],\"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.set_value\":[\"Set a value\"]}");
|
|
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,
|
|
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,EAA+qG,QAAQ,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const messages = JSON.parse("{\"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\"]}");
|
|
1
|
+
const messages = JSON.parse("{\"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_value\":[\"Add value\"],\"decision-text.allowed_values\":[\"Allowed values\"],\"decision-text.allowed_values_hint\":[\"Separate values with commas.\"],\"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.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.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.ends_out_of_order\":[\"From must not be past To\"],\"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.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.operator\":[\"Operator\"],\"decision-text.output_column\":[\"Output · \",[\"name\"]],\"decision-text.output_name\":[\"Output name\"],\"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.set_value\":[\"Set a value\"]}");
|
|
2
2
|
export { messages };
|
|
@@ -26,7 +26,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
26
26
|
__webpack_require__.d(__webpack_exports__, {
|
|
27
27
|
messages: ()=>messages
|
|
28
28
|
});
|
|
29
|
-
const messages = JSON.parse("{\"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\"]}");
|
|
29
|
+
const messages = JSON.parse("{\"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_value\":[\"Add value\"],\"decision-text.allowed_values\":[\"Allowed values\"],\"decision-text.allowed_values_hint\":[\"Separate values with commas.\"],\"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.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.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.ends_out_of_order\":[\"From must not be past To\"],\"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.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.operator\":[\"Operator\"],\"decision-text.output_column\":[\"Output · \",[\"name\"]],\"decision-text.output_name\":[\"Output name\"],\"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.set_value\":[\"Set a value\"]}");
|
|
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":"en.d.ts","sourceRoot":"","sources":["../../../src/decision-table/locales/en.ts"],"names":[],"mappings":"AAAkB,OAAO,KAAI,EAAC,QAAQ,EAAC,MAAI,cAAc,CAAC;AAAA,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../src/decision-table/locales/en.ts"],"names":[],"mappings":"AAAkB,OAAO,KAAI,EAAC,QAAQ,EAAC,MAAI,cAAc,CAAC;AAAA,eAAO,MAAM,QAAQ,EAA+qG,QAAQ,CAAC"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const messages = JSON.parse("{\"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\"]}");
|
|
1
|
+
const messages = JSON.parse("{\"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_value\":[\"Add value\"],\"decision-text.allowed_values\":[\"Allowed values\"],\"decision-text.allowed_values_hint\":[\"Separate values with commas.\"],\"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.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.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.ends_out_of_order\":[\"From must not be past To\"],\"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.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.operator\":[\"Operator\"],\"decision-text.output_column\":[\"Output · \",[\"name\"]],\"decision-text.output_name\":[\"Output name\"],\"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.set_value\":[\"Set a value\"]}");
|
|
2
2
|
export { messages };
|
|
@@ -26,7 +26,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
26
26
|
__webpack_require__.d(__webpack_exports__, {
|
|
27
27
|
messages: ()=>messages
|
|
28
28
|
});
|
|
29
|
-
const messages = JSON.parse("{\"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\"]}");
|
|
29
|
+
const messages = JSON.parse("{\"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_value\":[\"Add value\"],\"decision-text.allowed_values\":[\"Allowed values\"],\"decision-text.allowed_values_hint\":[\"Separate values with commas.\"],\"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.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.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.ends_out_of_order\":[\"From must not be past To\"],\"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.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.operator\":[\"Operator\"],\"decision-text.output_column\":[\"Output · \",[\"name\"]],\"decision-text.output_name\":[\"Output name\"],\"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.set_value\":[\"Set a value\"]}");
|
|
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":"es-MX.d.ts","sourceRoot":"","sources":["../../../src/decision-table/locales/es-MX.ts"],"names":[],"mappings":"AAAkB,OAAO,KAAI,EAAC,QAAQ,EAAC,MAAI,cAAc,CAAC;AAAA,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"es-MX.d.ts","sourceRoot":"","sources":["../../../src/decision-table/locales/es-MX.ts"],"names":[],"mappings":"AAAkB,OAAO,KAAI,EAAC,QAAQ,EAAC,MAAI,cAAc,CAAC;AAAA,eAAO,MAAM,QAAQ,EAA+qG,QAAQ,CAAC"}
|