@uipath/apollo-react 7.30.1 → 7.31.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/AgentCanvas/nodes/AgentNode.cjs +11 -9
- package/dist/canvas/components/AgentCanvas/nodes/AgentNode.d.ts.map +1 -1
- package/dist/canvas/components/AgentCanvas/nodes/AgentNode.js +11 -9
- package/dist/canvas/icons/AutonomousAgentIcon.cjs +7 -1
- package/dist/canvas/icons/AutonomousAgentIcon.d.ts +2 -1
- package/dist/canvas/icons/AutonomousAgentIcon.d.ts.map +1 -1
- package/dist/canvas/icons/AutonomousAgentIcon.js +7 -1
- package/dist/canvas/icons/ConversationalAgentIcon.cjs +7 -1
- package/dist/canvas/icons/ConversationalAgentIcon.d.ts +2 -1
- package/dist/canvas/icons/ConversationalAgentIcon.d.ts.map +1 -1
- package/dist/canvas/icons/ConversationalAgentIcon.js +7 -1
- package/dist/canvas/styles/tailwind.canvas.css +1 -1
- package/dist/chat/styles/tailwind.chat.css +1 -1
- package/dist/decision-table/DecisionGraphCard.cjs +112 -9
- package/dist/decision-table/DecisionGraphCard.d.ts +21 -0
- package/dist/decision-table/DecisionGraphCard.d.ts.map +1 -1
- package/dist/decision-table/DecisionGraphCard.js +115 -12
- package/dist/decision-table/DecisionGraphDialogs.cjs +223 -0
- package/dist/decision-table/DecisionGraphDialogs.d.ts +30 -0
- package/dist/decision-table/DecisionGraphDialogs.d.ts.map +1 -0
- package/dist/decision-table/DecisionGraphDialogs.js +183 -0
- package/dist/decision-table/DecisionGraphText.cjs +6 -338
- package/dist/decision-table/DecisionGraphText.d.ts +4 -15
- package/dist/decision-table/DecisionGraphText.d.ts.map +1 -1
- package/dist/decision-table/DecisionGraphText.js +7 -339
- package/dist/decision-table/DecisionGraphView.cjs +409 -0
- package/dist/decision-table/DecisionGraphView.d.ts +20 -0
- package/dist/decision-table/DecisionGraphView.d.ts.map +1 -0
- package/dist/decision-table/DecisionGraphView.js +375 -0
- package/dist/decision-table/DecisionTable.cjs +3 -1
- package/dist/decision-table/DecisionTable.d.ts.map +1 -1
- package/dist/decision-table/DecisionTable.js +3 -1
- package/dist/decision-table/EditableDecisionGraphText.cjs +40 -0
- package/dist/decision-table/EditableDecisionGraphText.d.ts +5 -0
- package/dist/decision-table/EditableDecisionGraphText.d.ts.map +1 -0
- package/dist/decision-table/EditableDecisionGraphText.js +6 -0
- package/dist/decision-table/GridMenu.cjs +36 -2
- package/dist/decision-table/GridMenu.d.ts +8 -0
- package/dist/decision-table/GridMenu.d.ts.map +1 -1
- package/dist/decision-table/GridMenu.js +33 -2
- package/dist/decision-table/__fixtures__/graphActionsHost.d.ts +21 -0
- package/dist/decision-table/__fixtures__/graphActionsHost.d.ts.map +1 -0
- package/dist/decision-table/constants.cjs +7 -0
- package/dist/decision-table/constants.d.ts +1 -0
- package/dist/decision-table/constants.d.ts.map +1 -1
- package/dist/decision-table/constants.js +5 -1
- package/dist/decision-table/decisionGraphActionTypes.cjs +18 -0
- package/dist/decision-table/decisionGraphActionTypes.d.ts +88 -0
- package/dist/decision-table/decisionGraphActionTypes.d.ts.map +1 -0
- package/dist/decision-table/decisionGraphActionTypes.js +0 -0
- package/dist/decision-table/decisionGraphMenuEntries.cjs +247 -0
- package/dist/decision-table/decisionGraphMenuEntries.d.ts +46 -0
- package/dist/decision-table/decisionGraphMenuEntries.d.ts.map +1 -0
- package/dist/decision-table/decisionGraphMenuEntries.js +186 -0
- package/dist/decision-table/decisionGraphPositions.cjs +136 -0
- package/dist/decision-table/decisionGraphPositions.d.ts +26 -0
- package/dist/decision-table/decisionGraphPositions.d.ts.map +1 -0
- package/dist/decision-table/decisionGraphPositions.js +69 -0
- package/dist/decision-table/decisionGraphStyles.cjs +24 -16
- package/dist/decision-table/decisionGraphStyles.d.ts +3 -1
- package/dist/decision-table/decisionGraphStyles.d.ts.map +1 -1
- package/dist/decision-table/decisionGraphStyles.js +4 -2
- package/dist/decision-table/index.cjs +62 -54
- package/dist/decision-table/index.d.ts +2 -0
- package/dist/decision-table/index.d.ts.map +1 -1
- package/dist/decision-table/index.js +2 -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/styles/tailwind.decision-table.css +1 -1
- package/dist/decision-table/useDecisionGraphActions.cjs +385 -0
- package/dist/decision-table/useDecisionGraphActions.d.ts +24 -0
- package/dist/decision-table/useDecisionGraphActions.d.ts.map +1 -0
- package/dist/decision-table/useDecisionGraphActions.js +351 -0
- package/dist/decision-table/useDecisionGraphStrings.cjs +138 -0
- package/dist/decision-table/useDecisionGraphStrings.d.ts +2 -1
- package/dist/decision-table/useDecisionGraphStrings.d.ts.map +1 -1
- package/dist/decision-table/useDecisionGraphStrings.js +138 -0
- package/dist/decision-table/useDragReorder.cjs +3 -2
- package/dist/decision-table/useDragReorder.d.ts.map +1 -1
- package/dist/decision-table/useDragReorder.js +3 -2
- package/dist/decision-table/useRuleWindow.cjs +3 -7
- package/dist/decision-table/useRuleWindow.d.ts.map +1 -1
- package/dist/decision-table/useRuleWindow.js +1 -5
- package/package.json +3 -3
|
@@ -0,0 +1,136 @@
|
|
|
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
|
+
childPositionsOf: ()=>childPositionsOf,
|
|
28
|
+
decisionIdOf: ()=>decisionIdOf,
|
|
29
|
+
decisionsOf: ()=>decisionsOf,
|
|
30
|
+
inputIdsOf: ()=>inputIdsOf,
|
|
31
|
+
moveDownOf: ()=>moveDownOf,
|
|
32
|
+
moveOutOf: ()=>moveOutOf,
|
|
33
|
+
moveUnderPreviousOf: ()=>moveUnderPreviousOf,
|
|
34
|
+
moveUpOf: ()=>moveUpOf,
|
|
35
|
+
placeOf: ()=>placeOf,
|
|
36
|
+
previousDecisionOf: ()=>previousDecisionOf,
|
|
37
|
+
topPositionsOf: ()=>topPositionsOf,
|
|
38
|
+
usersOf: ()=>usersOf
|
|
39
|
+
});
|
|
40
|
+
const decisionIdOf = (node)=>'decision' === node.kind ? node.id : node.targetId;
|
|
41
|
+
const topPositionsOf = (nodes)=>nodes.map((_, index)=>({
|
|
42
|
+
kind: 'top',
|
|
43
|
+
index,
|
|
44
|
+
siblings: nodes
|
|
45
|
+
}));
|
|
46
|
+
const childPositionsOf = (parent, parentPosition)=>parent.children.map((_, index)=>({
|
|
47
|
+
kind: 'under',
|
|
48
|
+
index,
|
|
49
|
+
siblings: parent.children,
|
|
50
|
+
parent,
|
|
51
|
+
parentPosition
|
|
52
|
+
}));
|
|
53
|
+
const placeOf = (position, index = position.index)=>'top' === position.kind ? {
|
|
54
|
+
kind: 'top',
|
|
55
|
+
index
|
|
56
|
+
} : {
|
|
57
|
+
kind: 'under',
|
|
58
|
+
parentId: position.parent.id,
|
|
59
|
+
index
|
|
60
|
+
};
|
|
61
|
+
const moveTo = (node, position, to)=>({
|
|
62
|
+
decisionId: decisionIdOf(node),
|
|
63
|
+
from: placeOf(position),
|
|
64
|
+
to
|
|
65
|
+
});
|
|
66
|
+
const moveUpOf = (node, position)=>position.index > 0 ? moveTo(node, position, placeOf(position, position.index - 1)) : null;
|
|
67
|
+
const moveDownOf = (node, position)=>position.index < position.siblings.length - 1 ? moveTo(node, position, placeOf(position, position.index + 1)) : null;
|
|
68
|
+
const previousDecisionOf = (node, position)=>{
|
|
69
|
+
const previous = position.siblings[position.index - 1];
|
|
70
|
+
return previous?.kind === 'decision' && previous.id !== decisionIdOf(node) ? previous : null;
|
|
71
|
+
};
|
|
72
|
+
const moveUnderPreviousOf = (node, position)=>{
|
|
73
|
+
const previous = previousDecisionOf(node, position);
|
|
74
|
+
return previous ? moveTo(node, position, {
|
|
75
|
+
kind: 'under',
|
|
76
|
+
parentId: previous.id,
|
|
77
|
+
index: previous.children.length
|
|
78
|
+
}) : null;
|
|
79
|
+
};
|
|
80
|
+
const moveOutOf = (node, position)=>'under' === position.kind ? moveTo(node, position, placeOf(position.parentPosition, position.parentPosition.index + 1)) : null;
|
|
81
|
+
const usersOf = (nodes)=>{
|
|
82
|
+
const users = new Map();
|
|
83
|
+
const visit = (node, parent)=>{
|
|
84
|
+
const id = decisionIdOf(node);
|
|
85
|
+
const known = users.get(id) ?? [];
|
|
86
|
+
if (parent && !known.includes(parent)) users.set(id, [
|
|
87
|
+
...known,
|
|
88
|
+
parent
|
|
89
|
+
]);
|
|
90
|
+
if ('decision' === node.kind) for (const child of node.children)visit(child, node);
|
|
91
|
+
};
|
|
92
|
+
for (const node of nodes)visit(node, null);
|
|
93
|
+
return users;
|
|
94
|
+
};
|
|
95
|
+
const decisionsOf = (nodes)=>{
|
|
96
|
+
const decisions = [];
|
|
97
|
+
const visit = (node)=>{
|
|
98
|
+
if ('decision' !== node.kind) return;
|
|
99
|
+
decisions.push(node);
|
|
100
|
+
for (const child of node.children)visit(child);
|
|
101
|
+
};
|
|
102
|
+
for (const node of nodes)visit(node);
|
|
103
|
+
return decisions;
|
|
104
|
+
};
|
|
105
|
+
const inputIdsOf = (decision)=>[
|
|
106
|
+
...new Set(decision.children.map(decisionIdOf))
|
|
107
|
+
];
|
|
108
|
+
exports.childPositionsOf = __webpack_exports__.childPositionsOf;
|
|
109
|
+
exports.decisionIdOf = __webpack_exports__.decisionIdOf;
|
|
110
|
+
exports.decisionsOf = __webpack_exports__.decisionsOf;
|
|
111
|
+
exports.inputIdsOf = __webpack_exports__.inputIdsOf;
|
|
112
|
+
exports.moveDownOf = __webpack_exports__.moveDownOf;
|
|
113
|
+
exports.moveOutOf = __webpack_exports__.moveOutOf;
|
|
114
|
+
exports.moveUnderPreviousOf = __webpack_exports__.moveUnderPreviousOf;
|
|
115
|
+
exports.moveUpOf = __webpack_exports__.moveUpOf;
|
|
116
|
+
exports.placeOf = __webpack_exports__.placeOf;
|
|
117
|
+
exports.previousDecisionOf = __webpack_exports__.previousDecisionOf;
|
|
118
|
+
exports.topPositionsOf = __webpack_exports__.topPositionsOf;
|
|
119
|
+
exports.usersOf = __webpack_exports__.usersOf;
|
|
120
|
+
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
121
|
+
"childPositionsOf",
|
|
122
|
+
"decisionIdOf",
|
|
123
|
+
"decisionsOf",
|
|
124
|
+
"inputIdsOf",
|
|
125
|
+
"moveDownOf",
|
|
126
|
+
"moveOutOf",
|
|
127
|
+
"moveUnderPreviousOf",
|
|
128
|
+
"moveUpOf",
|
|
129
|
+
"placeOf",
|
|
130
|
+
"previousDecisionOf",
|
|
131
|
+
"topPositionsOf",
|
|
132
|
+
"usersOf"
|
|
133
|
+
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
134
|
+
Object.defineProperty(exports, '__esModule', {
|
|
135
|
+
value: true
|
|
136
|
+
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import type { DecisionGraphMove, DecisionGraphPlace } from './decisionGraphActionTypes';
|
|
2
|
+
import type { DecisionGraphDecisionNode, DecisionGraphNode } from './decisionGraphTypes';
|
|
3
|
+
export type DecisionGraphPosition = {
|
|
4
|
+
kind: 'top';
|
|
5
|
+
index: number;
|
|
6
|
+
siblings: readonly DecisionGraphNode[];
|
|
7
|
+
} | {
|
|
8
|
+
kind: 'under';
|
|
9
|
+
index: number;
|
|
10
|
+
siblings: readonly DecisionGraphNode[];
|
|
11
|
+
parent: DecisionGraphDecisionNode;
|
|
12
|
+
parentPosition: DecisionGraphPosition;
|
|
13
|
+
};
|
|
14
|
+
export declare const decisionIdOf: (node: DecisionGraphNode) => string;
|
|
15
|
+
export declare const topPositionsOf: (nodes: readonly DecisionGraphNode[]) => DecisionGraphPosition[];
|
|
16
|
+
export declare const childPositionsOf: (parent: DecisionGraphDecisionNode, parentPosition: DecisionGraphPosition) => DecisionGraphPosition[];
|
|
17
|
+
export declare const placeOf: (position: DecisionGraphPosition, index?: number) => DecisionGraphPlace;
|
|
18
|
+
export declare const moveUpOf: (node: DecisionGraphNode, position: DecisionGraphPosition) => DecisionGraphMove | null;
|
|
19
|
+
export declare const moveDownOf: (node: DecisionGraphNode, position: DecisionGraphPosition) => DecisionGraphMove | null;
|
|
20
|
+
export declare const previousDecisionOf: (node: DecisionGraphNode, position: DecisionGraphPosition) => DecisionGraphDecisionNode | null;
|
|
21
|
+
export declare const moveUnderPreviousOf: (node: DecisionGraphNode, position: DecisionGraphPosition) => DecisionGraphMove | null;
|
|
22
|
+
export declare const moveOutOf: (node: DecisionGraphNode, position: DecisionGraphPosition) => DecisionGraphMove | null;
|
|
23
|
+
export declare const usersOf: (nodes: readonly DecisionGraphNode[]) => ReadonlyMap<string, readonly DecisionGraphDecisionNode[]>;
|
|
24
|
+
export declare const decisionsOf: (nodes: readonly DecisionGraphNode[]) => readonly DecisionGraphDecisionNode[];
|
|
25
|
+
export declare const inputIdsOf: (decision: DecisionGraphDecisionNode) => readonly string[];
|
|
26
|
+
//# sourceMappingURL=decisionGraphPositions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"decisionGraphPositions.d.ts","sourceRoot":"","sources":["../../src/decision-table/decisionGraphPositions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AACxF,OAAO,KAAK,EAAE,yBAAyB,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAGzF,MAAM,MAAM,qBAAqB,GAC7B;IAAE,IAAI,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,SAAS,iBAAiB,EAAE,CAAA;CAAE,GACtE;IACE,IAAI,EAAE,OAAO,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,SAAS,iBAAiB,EAAE,CAAC;IACvC,MAAM,EAAE,yBAAyB,CAAC;IAClC,cAAc,EAAE,qBAAqB,CAAC;CACvC,CAAC;AAGN,eAAO,MAAM,YAAY,GAAI,MAAM,iBAAiB,KAAG,MACH,CAAC;AAErD,eAAO,MAAM,cAAc,GAAI,OAAO,SAAS,iBAAiB,EAAE,KAAG,qBAAqB,EACtB,CAAC;AAErE,eAAO,MAAM,gBAAgB,GAC3B,QAAQ,yBAAyB,EACjC,gBAAgB,qBAAqB,KACpC,qBAAqB,EAOnB,CAAC;AAEN,eAAO,MAAM,OAAO,GAClB,UAAU,qBAAqB,EAC/B,cAAsB,KACrB,kBAGyD,CAAC;AAQ7D,eAAO,MAAM,QAAQ,GACnB,MAAM,iBAAiB,EACvB,UAAU,qBAAqB,KAC9B,iBAAiB,GAAG,IACoE,CAAC;AAE5F,eAAO,MAAM,UAAU,GACrB,MAAM,iBAAiB,EACvB,UAAU,qBAAqB,KAC9B,iBAAiB,GAAG,IAGb,CAAC;AAGX,eAAO,MAAM,kBAAkB,GAC7B,MAAM,iBAAiB,EACvB,UAAU,qBAAqB,KAC9B,yBAAyB,GAAG,IAG9B,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAC9B,MAAM,iBAAiB,EACvB,UAAU,qBAAqB,KAC9B,iBAAiB,GAAG,IAStB,CAAC;AAEF,eAAO,MAAM,SAAS,GACpB,MAAM,iBAAiB,EACvB,UAAU,qBAAqB,KAC9B,iBAAiB,GAAG,IAGb,CAAC;AAGX,eAAO,MAAM,OAAO,GAClB,OAAO,SAAS,iBAAiB,EAAE,KAClC,WAAW,CAAC,MAAM,EAAE,SAAS,yBAAyB,EAAE,CAU1D,CAAC;AAGF,eAAO,MAAM,WAAW,GACtB,OAAO,SAAS,iBAAiB,EAAE,KAClC,SAAS,yBAAyB,EASpC,CAAC;AAGF,eAAO,MAAM,UAAU,GAAI,UAAU,yBAAyB,KAAG,SAAS,MAAM,EAE/E,CAAC"}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
const decisionIdOf = (node)=>'decision' === node.kind ? node.id : node.targetId;
|
|
2
|
+
const topPositionsOf = (nodes)=>nodes.map((_, index)=>({
|
|
3
|
+
kind: 'top',
|
|
4
|
+
index,
|
|
5
|
+
siblings: nodes
|
|
6
|
+
}));
|
|
7
|
+
const childPositionsOf = (parent, parentPosition)=>parent.children.map((_, index)=>({
|
|
8
|
+
kind: 'under',
|
|
9
|
+
index,
|
|
10
|
+
siblings: parent.children,
|
|
11
|
+
parent,
|
|
12
|
+
parentPosition
|
|
13
|
+
}));
|
|
14
|
+
const placeOf = (position, index = position.index)=>'top' === position.kind ? {
|
|
15
|
+
kind: 'top',
|
|
16
|
+
index
|
|
17
|
+
} : {
|
|
18
|
+
kind: 'under',
|
|
19
|
+
parentId: position.parent.id,
|
|
20
|
+
index
|
|
21
|
+
};
|
|
22
|
+
const moveTo = (node, position, to)=>({
|
|
23
|
+
decisionId: decisionIdOf(node),
|
|
24
|
+
from: placeOf(position),
|
|
25
|
+
to
|
|
26
|
+
});
|
|
27
|
+
const moveUpOf = (node, position)=>position.index > 0 ? moveTo(node, position, placeOf(position, position.index - 1)) : null;
|
|
28
|
+
const moveDownOf = (node, position)=>position.index < position.siblings.length - 1 ? moveTo(node, position, placeOf(position, position.index + 1)) : null;
|
|
29
|
+
const previousDecisionOf = (node, position)=>{
|
|
30
|
+
const previous = position.siblings[position.index - 1];
|
|
31
|
+
return previous?.kind === 'decision' && previous.id !== decisionIdOf(node) ? previous : null;
|
|
32
|
+
};
|
|
33
|
+
const moveUnderPreviousOf = (node, position)=>{
|
|
34
|
+
const previous = previousDecisionOf(node, position);
|
|
35
|
+
return previous ? moveTo(node, position, {
|
|
36
|
+
kind: 'under',
|
|
37
|
+
parentId: previous.id,
|
|
38
|
+
index: previous.children.length
|
|
39
|
+
}) : null;
|
|
40
|
+
};
|
|
41
|
+
const moveOutOf = (node, position)=>'under' === position.kind ? moveTo(node, position, placeOf(position.parentPosition, position.parentPosition.index + 1)) : null;
|
|
42
|
+
const usersOf = (nodes)=>{
|
|
43
|
+
const users = new Map();
|
|
44
|
+
const visit = (node, parent)=>{
|
|
45
|
+
const id = decisionIdOf(node);
|
|
46
|
+
const known = users.get(id) ?? [];
|
|
47
|
+
if (parent && !known.includes(parent)) users.set(id, [
|
|
48
|
+
...known,
|
|
49
|
+
parent
|
|
50
|
+
]);
|
|
51
|
+
if ('decision' === node.kind) for (const child of node.children)visit(child, node);
|
|
52
|
+
};
|
|
53
|
+
for (const node of nodes)visit(node, null);
|
|
54
|
+
return users;
|
|
55
|
+
};
|
|
56
|
+
const decisionsOf = (nodes)=>{
|
|
57
|
+
const decisions = [];
|
|
58
|
+
const visit = (node)=>{
|
|
59
|
+
if ('decision' !== node.kind) return;
|
|
60
|
+
decisions.push(node);
|
|
61
|
+
for (const child of node.children)visit(child);
|
|
62
|
+
};
|
|
63
|
+
for (const node of nodes)visit(node);
|
|
64
|
+
return decisions;
|
|
65
|
+
};
|
|
66
|
+
const inputIdsOf = (decision)=>[
|
|
67
|
+
...new Set(decision.children.map(decisionIdOf))
|
|
68
|
+
];
|
|
69
|
+
export { childPositionsOf, decisionIdOf, decisionsOf, inputIdsOf, moveDownOf, moveOutOf, moveUnderPreviousOf, moveUpOf, placeOf, previousDecisionOf, topPositionsOf, usersOf };
|
|
@@ -24,33 +24,35 @@ var __webpack_require__ = {};
|
|
|
24
24
|
var __webpack_exports__ = {};
|
|
25
25
|
__webpack_require__.r(__webpack_exports__);
|
|
26
26
|
__webpack_require__.d(__webpack_exports__, {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
GRAPH_HEADER_CLASS: ()=>GRAPH_HEADER_CLASS,
|
|
30
|
-
GRAPH_REFERENCE_CHIP_CLASS: ()=>GRAPH_REFERENCE_CHIP_CLASS,
|
|
27
|
+
MINIMAP_ROW_CLASS: ()=>MINIMAP_ROW_CLASS,
|
|
28
|
+
GRAPH_ADD_DECISION_CLASS: ()=>GRAPH_ADD_DECISION_CLASS,
|
|
31
29
|
GRAPH_EMPTY_CLASS: ()=>GRAPH_EMPTY_CLASS,
|
|
32
|
-
GRAPH_NAME_CLASS: ()=>GRAPH_NAME_CLASS,
|
|
33
30
|
GRAPH_OUTPUT_HUE_CLASS: ()=>GRAPH_OUTPUT_HUE_CLASS,
|
|
34
|
-
GRAPH_TOGGLE_CLASS: ()=>GRAPH_TOGGLE_CLASS,
|
|
35
31
|
MINIMAP_FLOATING_CLASS: ()=>MINIMAP_FLOATING_CLASS,
|
|
32
|
+
MINIMAP_TRIGGER_CLASS: ()=>MINIMAP_TRIGGER_CLASS,
|
|
36
33
|
GRAPH_REFERENCE_CLASS: ()=>GRAPH_REFERENCE_CLASS,
|
|
37
|
-
MINIMAP_ROW_CLASS: ()=>MINIMAP_ROW_CLASS,
|
|
38
34
|
GRAPH_FRAME_CLASS: ()=>GRAPH_FRAME_CLASS,
|
|
39
|
-
GRAPH_MINIMAP_GAP_PX: ()=>GRAPH_MINIMAP_GAP_PX,
|
|
40
|
-
GRAPH_SCROLLER_CLASS: ()=>GRAPH_SCROLLER_CLASS,
|
|
41
|
-
MINIMAP_TRIGGER_CLASS: ()=>MINIMAP_TRIGGER_CLASS,
|
|
42
35
|
graphColumnInsetOf: ()=>graphColumnInsetOf,
|
|
36
|
+
GRAPH_SCROLLER_CLASS: ()=>GRAPH_SCROLLER_CLASS,
|
|
43
37
|
GRAPH_REVEAL_CLASS: ()=>GRAPH_REVEAL_CLASS,
|
|
44
|
-
GRAPH_CARD_CLASS: ()=>GRAPH_CARD_CLASS,
|
|
45
38
|
GRAPH_RULE_COUNT_CLASS: ()=>GRAPH_RULE_COUNT_CLASS,
|
|
46
39
|
GRAPH_CARD_COLLAPSED_CLASS: ()=>GRAPH_CARD_COLLAPSED_CLASS,
|
|
47
|
-
GRAPH_BRANCH_CLASS: ()=>GRAPH_BRANCH_CLASS,
|
|
48
40
|
GRAPH_MINIMAP_SLOT_CLASS: ()=>GRAPH_MINIMAP_SLOT_CLASS,
|
|
49
|
-
MINIMAP_CONTENT_CLASS: ()=>MINIMAP_CONTENT_CLASS,
|
|
50
41
|
GRAPH_NEST_CLASS: ()=>GRAPH_NEST_CLASS,
|
|
51
|
-
|
|
42
|
+
GRAPH_COLUMN_CLASS: ()=>GRAPH_COLUMN_CLASS,
|
|
43
|
+
GRAPH_HEADER_CLASS: ()=>GRAPH_HEADER_CLASS,
|
|
44
|
+
GRAPH_CARD_TONE_CLASS: ()=>GRAPH_CARD_TONE_CLASS,
|
|
52
45
|
GRAPH_HIT_POLICY_CLASS: ()=>GRAPH_HIT_POLICY_CLASS,
|
|
53
|
-
|
|
46
|
+
GRAPH_NAME_CLASS: ()=>GRAPH_NAME_CLASS,
|
|
47
|
+
GRAPH_MINIMAP_GAP_PX: ()=>GRAPH_MINIMAP_GAP_PX,
|
|
48
|
+
GRAPH_CARD_CLASS: ()=>GRAPH_CARD_CLASS,
|
|
49
|
+
GRAPH_MENU_BUTTON_CLASS: ()=>GRAPH_MENU_BUTTON_CLASS,
|
|
50
|
+
GRAPH_BRANCH_CLASS: ()=>GRAPH_BRANCH_CLASS,
|
|
51
|
+
MINIMAP_CONTENT_CLASS: ()=>MINIMAP_CONTENT_CLASS,
|
|
52
|
+
GRAPH_REFERENCE_CHIP_CLASS: ()=>GRAPH_REFERENCE_CHIP_CLASS,
|
|
53
|
+
GRAPH_MARK_BUTTON_CLASS: ()=>GRAPH_MARK_BUTTON_CLASS,
|
|
54
|
+
GRAPH_BODY_CLASS: ()=>GRAPH_BODY_CLASS,
|
|
55
|
+
GRAPH_TOGGLE_CLASS: ()=>GRAPH_TOGGLE_CLASS
|
|
54
56
|
});
|
|
55
57
|
const apollo_wind_namespaceObject = require("@uipath/apollo-wind");
|
|
56
58
|
const GRAPH_FRAME_CLASS = 'relative flex min-h-0 flex-1 flex-col bg-background-secondary future:bg-background';
|
|
@@ -73,16 +75,19 @@ const GRAPH_REVEAL_CLASS = 'opacity-0 transition-opacity group-hover/chapter:opa
|
|
|
73
75
|
const GRAPH_HIT_POLICY_CLASS = (0, apollo_wind_namespaceObject.cn)('shrink-0 text-xs text-foreground-de-emp', GRAPH_REVEAL_CLASS);
|
|
74
76
|
const GRAPH_RULE_COUNT_CLASS = (0, apollo_wind_namespaceObject.cn)('ms-auto shrink-0 text-xs text-foreground-de-emp', GRAPH_REVEAL_CLASS);
|
|
75
77
|
const GRAPH_MARK_BUTTON_CLASS = 'inline-flex size-6 shrink-0 cursor-pointer items-center justify-center rounded border-0 bg-transparent p-0 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary';
|
|
78
|
+
const GRAPH_MENU_BUTTON_CLASS = (0, apollo_wind_namespaceObject.cn)('inline-flex size-6 shrink-0 cursor-pointer items-center justify-center rounded border-0 bg-transparent p-0 text-foreground-de-emp hover:bg-background-hover focus-visible:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring data-[state=open]:bg-background-hover data-[state=open]:opacity-100 [@media(hover:none)]:opacity-100', GRAPH_REVEAL_CLASS);
|
|
79
|
+
const GRAPH_ADD_DECISION_CLASS = 'flex h-10 cursor-pointer items-center gap-2 rounded-[10px] border border-dashed border-border-de-emp bg-transparent px-3 text-start text-sm text-foreground-de-emp hover:bg-background-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring [&_svg]:size-4';
|
|
76
80
|
const GRAPH_BODY_CLASS = 'flex flex-col overflow-clip rounded-b-[9px] bg-background-secondary future:bg-background';
|
|
77
81
|
const GRAPH_NEST_CLASS = 'ms-[22px] flex flex-col gap-3 pt-3 ps-6';
|
|
78
82
|
const GRAPH_BRANCH_CLASS = 'relative before:absolute before:-top-3 before:-bottom-3 before:-start-6 before:border-s before:border-border last:before:bottom-auto last:before:h-[29px] after:absolute after:top-[9px] after:-start-6 after:h-4 after:w-6 after:rounded-es-lg after:border-b after:border-s after:border-border';
|
|
79
|
-
const GRAPH_REFERENCE_CLASS = 'flex h-12 items-center gap-1.5 rounded-[10px] border border-dashed border-border bg-background px-3.5 text-xs text-foreground-de-emp';
|
|
83
|
+
const GRAPH_REFERENCE_CLASS = 'group/chapter flex h-12 items-center gap-1.5 rounded-[10px] border border-dashed border-border bg-background px-3.5 text-xs text-foreground-de-emp';
|
|
80
84
|
const GRAPH_REFERENCE_CHIP_CLASS = 'inline-flex h-6 cursor-pointer items-center gap-1 rounded-md border border-[color-mix(in_srgb,var(--sentence-output-hue)_35%,transparent)] bg-background px-2 align-middle text-xs font-medium text-[var(--sentence-output-hue)] hover:bg-[color-mix(in_srgb,var(--sentence-output-hue)_8%,var(--color-background))] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring';
|
|
81
85
|
const GRAPH_OUTPUT_HUE_CLASS = '[--sentence-output-hue:var(--color-purple-600)] dark:[--sentence-output-hue:var(--color-purple-300)]';
|
|
82
86
|
const MINIMAP_FLOATING_CLASS = 'rounded-xl border border-border-subtle bg-surface-raised p-1 text-foreground shadow-lg backdrop-blur-sm';
|
|
83
87
|
const MINIMAP_TRIGGER_CLASS = 'h-8 gap-2 rounded-md px-3 text-sm font-medium text-foreground future:text-foreground hover:bg-muted data-[state=open]:bg-accent [&_svg]:size-4';
|
|
84
88
|
const MINIMAP_CONTENT_CLASS = 'flex max-h-[min(440px,var(--radix-popover-content-available-height))] w-[296px] flex-col overflow-hidden border-border-subtle bg-background p-0 shadow-lg';
|
|
85
89
|
const MINIMAP_ROW_CLASS = 'flex min-w-0 cursor-pointer items-center gap-1.5 rounded-[4px] pe-1.5 text-xs whitespace-nowrap text-foreground-de-emp select-none data-[selected]:bg-accent data-[selected]:text-foreground data-[current]:font-semibold data-[current]:text-primary';
|
|
90
|
+
exports.GRAPH_ADD_DECISION_CLASS = __webpack_exports__.GRAPH_ADD_DECISION_CLASS;
|
|
86
91
|
exports.GRAPH_BODY_CLASS = __webpack_exports__.GRAPH_BODY_CLASS;
|
|
87
92
|
exports.GRAPH_BRANCH_CLASS = __webpack_exports__.GRAPH_BRANCH_CLASS;
|
|
88
93
|
exports.GRAPH_CARD_CLASS = __webpack_exports__.GRAPH_CARD_CLASS;
|
|
@@ -94,6 +99,7 @@ exports.GRAPH_FRAME_CLASS = __webpack_exports__.GRAPH_FRAME_CLASS;
|
|
|
94
99
|
exports.GRAPH_HEADER_CLASS = __webpack_exports__.GRAPH_HEADER_CLASS;
|
|
95
100
|
exports.GRAPH_HIT_POLICY_CLASS = __webpack_exports__.GRAPH_HIT_POLICY_CLASS;
|
|
96
101
|
exports.GRAPH_MARK_BUTTON_CLASS = __webpack_exports__.GRAPH_MARK_BUTTON_CLASS;
|
|
102
|
+
exports.GRAPH_MENU_BUTTON_CLASS = __webpack_exports__.GRAPH_MENU_BUTTON_CLASS;
|
|
97
103
|
exports.GRAPH_MINIMAP_GAP_PX = __webpack_exports__.GRAPH_MINIMAP_GAP_PX;
|
|
98
104
|
exports.GRAPH_MINIMAP_SLOT_CLASS = __webpack_exports__.GRAPH_MINIMAP_SLOT_CLASS;
|
|
99
105
|
exports.GRAPH_NAME_CLASS = __webpack_exports__.GRAPH_NAME_CLASS;
|
|
@@ -111,6 +117,7 @@ exports.MINIMAP_ROW_CLASS = __webpack_exports__.MINIMAP_ROW_CLASS;
|
|
|
111
117
|
exports.MINIMAP_TRIGGER_CLASS = __webpack_exports__.MINIMAP_TRIGGER_CLASS;
|
|
112
118
|
exports.graphColumnInsetOf = __webpack_exports__.graphColumnInsetOf;
|
|
113
119
|
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
120
|
+
"GRAPH_ADD_DECISION_CLASS",
|
|
114
121
|
"GRAPH_BODY_CLASS",
|
|
115
122
|
"GRAPH_BRANCH_CLASS",
|
|
116
123
|
"GRAPH_CARD_CLASS",
|
|
@@ -122,6 +129,7 @@ for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
|
122
129
|
"GRAPH_HEADER_CLASS",
|
|
123
130
|
"GRAPH_HIT_POLICY_CLASS",
|
|
124
131
|
"GRAPH_MARK_BUTTON_CLASS",
|
|
132
|
+
"GRAPH_MENU_BUTTON_CLASS",
|
|
125
133
|
"GRAPH_MINIMAP_GAP_PX",
|
|
126
134
|
"GRAPH_MINIMAP_SLOT_CLASS",
|
|
127
135
|
"GRAPH_NAME_CLASS",
|
|
@@ -18,10 +18,12 @@ export declare const GRAPH_REVEAL_CLASS = "opacity-0 transition-opacity group-ho
|
|
|
18
18
|
export declare const GRAPH_HIT_POLICY_CLASS: string;
|
|
19
19
|
export declare const GRAPH_RULE_COUNT_CLASS: string;
|
|
20
20
|
export declare const GRAPH_MARK_BUTTON_CLASS = "inline-flex size-6 shrink-0 cursor-pointer items-center justify-center rounded border-0 bg-transparent p-0 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary";
|
|
21
|
+
export declare const GRAPH_MENU_BUTTON_CLASS: string;
|
|
22
|
+
export declare const GRAPH_ADD_DECISION_CLASS = "flex h-10 cursor-pointer items-center gap-2 rounded-[10px] border border-dashed border-border-de-emp bg-transparent px-3 text-start text-sm text-foreground-de-emp hover:bg-background-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring [&_svg]:size-4";
|
|
21
23
|
export declare const GRAPH_BODY_CLASS = "flex flex-col overflow-clip rounded-b-[9px] bg-background-secondary future:bg-background";
|
|
22
24
|
export declare const GRAPH_NEST_CLASS = "ms-[22px] flex flex-col gap-3 pt-3 ps-6";
|
|
23
25
|
export declare const GRAPH_BRANCH_CLASS = "relative before:absolute before:-top-3 before:-bottom-3 before:-start-6 before:border-s before:border-border last:before:bottom-auto last:before:h-[29px] after:absolute after:top-[9px] after:-start-6 after:h-4 after:w-6 after:rounded-es-lg after:border-b after:border-s after:border-border";
|
|
24
|
-
export declare const GRAPH_REFERENCE_CLASS = "flex h-12 items-center gap-1.5 rounded-[10px] border border-dashed border-border bg-background px-3.5 text-xs text-foreground-de-emp";
|
|
26
|
+
export declare const GRAPH_REFERENCE_CLASS = "group/chapter flex h-12 items-center gap-1.5 rounded-[10px] border border-dashed border-border bg-background px-3.5 text-xs text-foreground-de-emp";
|
|
25
27
|
export declare const GRAPH_REFERENCE_CHIP_CLASS = "inline-flex h-6 cursor-pointer items-center gap-1 rounded-md border border-[color-mix(in_srgb,var(--sentence-output-hue)_35%,transparent)] bg-background px-2 align-middle text-xs font-medium text-[var(--sentence-output-hue)] hover:bg-[color-mix(in_srgb,var(--sentence-output-hue)_8%,var(--color-background))] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring";
|
|
26
28
|
export declare const GRAPH_OUTPUT_HUE_CLASS = "[--sentence-output-hue:var(--color-purple-600)] dark:[--sentence-output-hue:var(--color-purple-300)]";
|
|
27
29
|
export declare const MINIMAP_FLOATING_CLASS = "rounded-xl border border-border-subtle bg-surface-raised p-1 text-foreground shadow-lg backdrop-blur-sm";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decisionGraphStyles.d.ts","sourceRoot":"","sources":["../../src/decision-table/decisionGraphStyles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,iBAAiB,uFACwD,CAAC;AAEvF,eAAO,MAAM,oBAAoB,8CAA8C,C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gBAAgB,8HACgG,CAAC;AAE9H,eAAO,MAAM,0BAA0B,gEACwB,CAAC;AAEhE,eAAO,MAAM,qBAAqB;;;CAGxB,CAAC;AAEX,eAAO,MAAM,kBAAkB,gJACgH,CAAC;AAEhJ,eAAO,MAAM,kBAAkB,4OAC4M,CAAC;AAE5O,eAAO,MAAM,gBAAgB,uEACyC,CAAC;AAEvE,eAAO,MAAM,kBAAkB,4KAC4I,CAAC;AAE5K,eAAO,MAAM,sBAAsB,QAGlC,CAAC;AAEF,eAAO,MAAM,sBAAsB,QAGlC,CAAC;AAEF,eAAO,MAAM,uBAAuB,0LACqJ,CAAC;AAE1L,eAAO,MAAM,uBAAuB,QAGnC,CAAC;AAEF,eAAO,MAAM,wBAAwB,wRACkP,CAAC;AAExR,eAAO,MAAM,gBAAgB,6FAC+D,CAAC;AAE7F,eAAO,MAAM,gBAAgB,4CAA4C,CAAC;AAE1E,eAAO,MAAM,kBAAkB,sSACsQ,CAAC;AAEtS,eAAO,MAAM,qBAAqB,uJACoH,CAAC;AAEvJ,eAAO,MAAM,0BAA0B,iYACyV,CAAC;AAEjY,eAAO,MAAM,sBAAsB,yGACqE,CAAC;AAEzG,eAAO,MAAM,sBAAsB,4GACwE,CAAC;AAE5G,eAAO,MAAM,qBAAqB,mJACgH,CAAC;AAEnJ,eAAO,MAAM,qBAAqB,8JAC2H,CAAC;AAE9J,eAAO,MAAM,iBAAiB,0PAC2N,CAAC"}
|
|
@@ -19,14 +19,16 @@ const GRAPH_REVEAL_CLASS = 'opacity-0 transition-opacity group-hover/chapter:opa
|
|
|
19
19
|
const GRAPH_HIT_POLICY_CLASS = cn('shrink-0 text-xs text-foreground-de-emp', GRAPH_REVEAL_CLASS);
|
|
20
20
|
const GRAPH_RULE_COUNT_CLASS = cn('ms-auto shrink-0 text-xs text-foreground-de-emp', GRAPH_REVEAL_CLASS);
|
|
21
21
|
const GRAPH_MARK_BUTTON_CLASS = 'inline-flex size-6 shrink-0 cursor-pointer items-center justify-center rounded border-0 bg-transparent p-0 focus-visible:outline-none focus-visible:ring-1 focus-visible:ring-primary';
|
|
22
|
+
const GRAPH_MENU_BUTTON_CLASS = cn('inline-flex size-6 shrink-0 cursor-pointer items-center justify-center rounded border-0 bg-transparent p-0 text-foreground-de-emp hover:bg-background-hover focus-visible:opacity-100 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring data-[state=open]:bg-background-hover data-[state=open]:opacity-100 [@media(hover:none)]:opacity-100', GRAPH_REVEAL_CLASS);
|
|
23
|
+
const GRAPH_ADD_DECISION_CLASS = 'flex h-10 cursor-pointer items-center gap-2 rounded-[10px] border border-dashed border-border-de-emp bg-transparent px-3 text-start text-sm text-foreground-de-emp hover:bg-background-hover focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring [&_svg]:size-4';
|
|
22
24
|
const GRAPH_BODY_CLASS = 'flex flex-col overflow-clip rounded-b-[9px] bg-background-secondary future:bg-background';
|
|
23
25
|
const GRAPH_NEST_CLASS = 'ms-[22px] flex flex-col gap-3 pt-3 ps-6';
|
|
24
26
|
const GRAPH_BRANCH_CLASS = 'relative before:absolute before:-top-3 before:-bottom-3 before:-start-6 before:border-s before:border-border last:before:bottom-auto last:before:h-[29px] after:absolute after:top-[9px] after:-start-6 after:h-4 after:w-6 after:rounded-es-lg after:border-b after:border-s after:border-border';
|
|
25
|
-
const GRAPH_REFERENCE_CLASS = 'flex h-12 items-center gap-1.5 rounded-[10px] border border-dashed border-border bg-background px-3.5 text-xs text-foreground-de-emp';
|
|
27
|
+
const GRAPH_REFERENCE_CLASS = 'group/chapter flex h-12 items-center gap-1.5 rounded-[10px] border border-dashed border-border bg-background px-3.5 text-xs text-foreground-de-emp';
|
|
26
28
|
const GRAPH_REFERENCE_CHIP_CLASS = 'inline-flex h-6 cursor-pointer items-center gap-1 rounded-md border border-[color-mix(in_srgb,var(--sentence-output-hue)_35%,transparent)] bg-background px-2 align-middle text-xs font-medium text-[var(--sentence-output-hue)] hover:bg-[color-mix(in_srgb,var(--sentence-output-hue)_8%,var(--color-background))] focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-ring';
|
|
27
29
|
const GRAPH_OUTPUT_HUE_CLASS = '[--sentence-output-hue:var(--color-purple-600)] dark:[--sentence-output-hue:var(--color-purple-300)]';
|
|
28
30
|
const MINIMAP_FLOATING_CLASS = 'rounded-xl border border-border-subtle bg-surface-raised p-1 text-foreground shadow-lg backdrop-blur-sm';
|
|
29
31
|
const MINIMAP_TRIGGER_CLASS = 'h-8 gap-2 rounded-md px-3 text-sm font-medium text-foreground future:text-foreground hover:bg-muted data-[state=open]:bg-accent [&_svg]:size-4';
|
|
30
32
|
const MINIMAP_CONTENT_CLASS = 'flex max-h-[min(440px,var(--radix-popover-content-available-height))] w-[296px] flex-col overflow-hidden border-border-subtle bg-background p-0 shadow-lg';
|
|
31
33
|
const MINIMAP_ROW_CLASS = 'flex min-w-0 cursor-pointer items-center gap-1.5 rounded-[4px] pe-1.5 text-xs whitespace-nowrap text-foreground-de-emp select-none data-[selected]:bg-accent data-[selected]:text-foreground data-[current]:font-semibold data-[current]:text-primary';
|
|
32
|
-
export { GRAPH_BODY_CLASS, GRAPH_BRANCH_CLASS, GRAPH_CARD_CLASS, GRAPH_CARD_COLLAPSED_CLASS, GRAPH_CARD_TONE_CLASS, GRAPH_COLUMN_CLASS, GRAPH_EMPTY_CLASS, GRAPH_FRAME_CLASS, GRAPH_HEADER_CLASS, GRAPH_HIT_POLICY_CLASS, GRAPH_MARK_BUTTON_CLASS, GRAPH_MINIMAP_GAP_PX, GRAPH_MINIMAP_SLOT_CLASS, GRAPH_NAME_CLASS, GRAPH_NEST_CLASS, GRAPH_OUTPUT_HUE_CLASS, GRAPH_REFERENCE_CHIP_CLASS, GRAPH_REFERENCE_CLASS, GRAPH_REVEAL_CLASS, GRAPH_RULE_COUNT_CLASS, GRAPH_SCROLLER_CLASS, GRAPH_TOGGLE_CLASS, MINIMAP_CONTENT_CLASS, MINIMAP_FLOATING_CLASS, MINIMAP_ROW_CLASS, MINIMAP_TRIGGER_CLASS, graphColumnInsetOf };
|
|
34
|
+
export { GRAPH_ADD_DECISION_CLASS, GRAPH_BODY_CLASS, GRAPH_BRANCH_CLASS, GRAPH_CARD_CLASS, GRAPH_CARD_COLLAPSED_CLASS, GRAPH_CARD_TONE_CLASS, GRAPH_COLUMN_CLASS, GRAPH_EMPTY_CLASS, GRAPH_FRAME_CLASS, GRAPH_HEADER_CLASS, GRAPH_HIT_POLICY_CLASS, GRAPH_MARK_BUTTON_CLASS, GRAPH_MENU_BUTTON_CLASS, GRAPH_MINIMAP_GAP_PX, GRAPH_MINIMAP_SLOT_CLASS, GRAPH_NAME_CLASS, GRAPH_NEST_CLASS, GRAPH_OUTPUT_HUE_CLASS, GRAPH_REFERENCE_CHIP_CLASS, GRAPH_REFERENCE_CLASS, GRAPH_REVEAL_CLASS, GRAPH_RULE_COUNT_CLASS, GRAPH_SCROLLER_CLASS, GRAPH_TOGGLE_CLASS, MINIMAP_CONTENT_CLASS, MINIMAP_FLOATING_CLASS, MINIMAP_ROW_CLASS, MINIMAP_TRIGGER_CLASS, graphColumnInsetOf };
|
|
@@ -15,6 +15,9 @@ var __webpack_modules__ = {
|
|
|
15
15
|
"./EdgeInsertButton" (module) {
|
|
16
16
|
module.exports = require("./EdgeInsertButton.cjs");
|
|
17
17
|
},
|
|
18
|
+
"./EditableDecisionGraphText" (module) {
|
|
19
|
+
module.exports = require("./EditableDecisionGraphText.cjs");
|
|
20
|
+
},
|
|
18
21
|
"./GridCell" (module) {
|
|
19
22
|
module.exports = require("./GridCell.cjs");
|
|
20
23
|
},
|
|
@@ -96,55 +99,56 @@ var __webpack_exports__ = {};
|
|
|
96
99
|
(()=>{
|
|
97
100
|
__webpack_require__.r(__webpack_exports__);
|
|
98
101
|
__webpack_require__.d(__webpack_exports__, {
|
|
99
|
-
BAND_BOUNDARY_CLASS: ()=>
|
|
100
|
-
BAND_LABEL_ROW_CLASS: ()=>
|
|
101
|
-
BODY_CELL_CLASS: ()=>
|
|
102
|
+
BAND_BOUNDARY_CLASS: ()=>_gridStyles__rspack_import_10.BAND_BOUNDARY_CLASS,
|
|
103
|
+
BAND_LABEL_ROW_CLASS: ()=>_gridStyles__rspack_import_10.BAND_LABEL_ROW_CLASS,
|
|
104
|
+
BODY_CELL_CLASS: ()=>_gridStyles__rspack_import_10.BODY_CELL_CLASS,
|
|
102
105
|
BODY_ROW_HEIGHT_PX: ()=>_constants__rspack_import_0.BODY_ROW_HEIGHT_PX,
|
|
103
|
-
BREADCRUMB_POINT_STYLE: ()=>
|
|
104
|
-
CELL_SURFACE_CLASS: ()=>
|
|
105
|
-
DELETE_ROW_BUTTON_CLASS: ()=>
|
|
106
|
-
DELETE_ROW_CLASS: ()=>
|
|
106
|
+
BREADCRUMB_POINT_STYLE: ()=>_gridStyles__rspack_import_10.BREADCRUMB_POINT_STYLE,
|
|
107
|
+
CELL_SURFACE_CLASS: ()=>_gridStyles__rspack_import_10.CELL_SURFACE_CLASS,
|
|
108
|
+
DELETE_ROW_BUTTON_CLASS: ()=>_gridStyles__rspack_import_10.DELETE_ROW_BUTTON_CLASS,
|
|
109
|
+
DELETE_ROW_CLASS: ()=>_gridStyles__rspack_import_10.DELETE_ROW_CLASS,
|
|
107
110
|
DecisionGraphText: ()=>_DecisionGraphText__rspack_import_1.DecisionGraphText,
|
|
108
111
|
DecisionTable: ()=>_DecisionTable__rspack_import_2.DecisionTable,
|
|
109
112
|
DecisionText: ()=>_DecisionText__rspack_import_3.DecisionText,
|
|
110
113
|
DragIndicator: ()=>_DragIndicator__rspack_import_4.DragIndicator,
|
|
111
|
-
EMPTY_MARKS: ()=>
|
|
114
|
+
EMPTY_MARKS: ()=>_marks__rspack_import_13.EMPTY_MARKS,
|
|
112
115
|
EMPTY_VALUE_DASH: ()=>_constants__rspack_import_0.EMPTY_VALUE_DASH,
|
|
113
116
|
EdgeInsertButton: ()=>_EdgeInsertButton__rspack_import_5.EdgeInsertButton,
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
117
|
+
EditableDecisionGraphText: ()=>_EditableDecisionGraphText__rspack_import_6.EditableDecisionGraphText,
|
|
118
|
+
FOOTER_ACTION_CLASS: ()=>_gridStyles__rspack_import_10.FOOTER_ACTION_CLASS,
|
|
119
|
+
FROZEN_RIGHT_CELL_CLASS: ()=>_gridStyles__rspack_import_10.FROZEN_RIGHT_CELL_CLASS,
|
|
120
|
+
FROZEN_RIGHT_GROUP_CELL_CLASS: ()=>_gridStyles__rspack_import_10.FROZEN_RIGHT_GROUP_CELL_CLASS,
|
|
121
|
+
FROZEN_RIGHT_HEADER_CELL_CLASS: ()=>_gridStyles__rspack_import_10.FROZEN_RIGHT_HEADER_CELL_CLASS,
|
|
122
|
+
GROUP_TONE_CLASS: ()=>_gridStyles__rspack_import_10.GROUP_TONE_CLASS,
|
|
123
|
+
GridCell: ()=>_GridCell__rspack_import_7.GridCell,
|
|
124
|
+
GridContextMenu: ()=>_GridMenu__rspack_import_8.GridContextMenu,
|
|
125
|
+
HEADER_CELL_CLASS: ()=>_gridStyles__rspack_import_10.HEADER_CELL_CLASS,
|
|
126
|
+
HEADER_LABEL_ROW_CLASS: ()=>_gridStyles__rspack_import_10.HEADER_LABEL_ROW_CLASS,
|
|
127
|
+
IN_RANGE_CLASS: ()=>_gridStyles__rspack_import_10.IN_RANGE_CLASS,
|
|
128
|
+
LIVE_NOTE_CLASS: ()=>_gridStyles__rspack_import_10.LIVE_NOTE_CLASS,
|
|
129
|
+
LOCKABLE_ROW_ACTION_BUTTON_CLASS: ()=>_gridStyles__rspack_import_10.LOCKABLE_ROW_ACTION_BUTTON_CLASS,
|
|
130
|
+
MONO_CELL_TEXT_CLASS: ()=>_gridStyles__rspack_import_10.MONO_CELL_TEXT_CLASS,
|
|
131
|
+
MarkGlyph: ()=>_MarkGlyph__rspack_import_12.MarkGlyph,
|
|
132
|
+
OUTPUT_BAND_DOT_CLASS: ()=>_gridStyles__rspack_import_10.OUTPUT_BAND_DOT_CLASS,
|
|
133
|
+
OUTPUT_CELL_TINT_CLASS: ()=>_gridStyles__rspack_import_10.OUTPUT_CELL_TINT_CLASS,
|
|
134
|
+
OUTPUT_HUE_CLASS: ()=>_gridStyles__rspack_import_10.OUTPUT_HUE_CLASS,
|
|
135
|
+
ROW_GUTTER_MARK_CLASS: ()=>_gridStyles__rspack_import_10.ROW_GUTTER_MARK_CLASS,
|
|
136
|
+
ROW_MARK_OVERLAY_CLASS: ()=>_gridStyles__rspack_import_10.ROW_MARK_OVERLAY_CLASS,
|
|
137
|
+
ROW_NUMBER_CELL_CLASS: ()=>_gridStyles__rspack_import_10.ROW_NUMBER_CELL_CLASS,
|
|
134
138
|
ROW_NUMBER_WIDTH: ()=>_constants__rspack_import_0.ROW_NUMBER_WIDTH,
|
|
135
|
-
SEPARATOR_BODY_CELL_CLASS: ()=>
|
|
136
|
-
commitMoveFor: ()=>
|
|
137
|
-
emptyAreaPressHandler: ()=>
|
|
138
|
-
isFromTextField: ()=>
|
|
139
|
-
isRedoKey: ()=>
|
|
140
|
-
isUndoKey: ()=>
|
|
141
|
-
normalizedRect: ()=>
|
|
142
|
-
renderRestingCellContent: ()=>
|
|
143
|
-
selectSentenceInGrid: ()=>
|
|
144
|
-
sentenceSelectionOf: ()=>
|
|
145
|
-
useDragSelection: ()=>
|
|
146
|
-
useGridNavigation: ()=>
|
|
147
|
-
usePressDrag: ()=>
|
|
139
|
+
SEPARATOR_BODY_CELL_CLASS: ()=>_gridStyles__rspack_import_10.SEPARATOR_BODY_CELL_CLASS,
|
|
140
|
+
commitMoveFor: ()=>_gridEvents__rspack_import_9.commitMoveFor,
|
|
141
|
+
emptyAreaPressHandler: ()=>_gridEvents__rspack_import_9.emptyAreaPressHandler,
|
|
142
|
+
isFromTextField: ()=>_gridEvents__rspack_import_9.isFromTextField,
|
|
143
|
+
isRedoKey: ()=>_gridEvents__rspack_import_9.isRedoKey,
|
|
144
|
+
isUndoKey: ()=>_gridEvents__rspack_import_9.isUndoKey,
|
|
145
|
+
normalizedRect: ()=>_useGridNavigation__rspack_import_17.normalizedRect,
|
|
146
|
+
renderRestingCellContent: ()=>_GridCell__rspack_import_7.renderRestingCellContent,
|
|
147
|
+
selectSentenceInGrid: ()=>_sentenceGridSelection__rspack_import_14.selectSentenceInGrid,
|
|
148
|
+
sentenceSelectionOf: ()=>_sentenceGridSelection__rspack_import_14.sentenceSelectionOf,
|
|
149
|
+
useDragSelection: ()=>_useDragSelection__rspack_import_16.useDragSelection,
|
|
150
|
+
useGridNavigation: ()=>_useGridNavigation__rspack_import_17.useGridNavigation,
|
|
151
|
+
usePressDrag: ()=>_useDragReorder__rspack_import_15.usePressDrag
|
|
148
152
|
});
|
|
149
153
|
var _constants__rspack_import_0 = __webpack_require__("./constants");
|
|
150
154
|
var _DecisionGraphText__rspack_import_1 = __webpack_require__("./DecisionGraphText");
|
|
@@ -152,13 +156,14 @@ var __webpack_exports__ = {};
|
|
|
152
156
|
var _DecisionText__rspack_import_3 = __webpack_require__("./DecisionText");
|
|
153
157
|
var _DragIndicator__rspack_import_4 = __webpack_require__("./DragIndicator");
|
|
154
158
|
var _EdgeInsertButton__rspack_import_5 = __webpack_require__("./EdgeInsertButton");
|
|
155
|
-
var
|
|
156
|
-
var
|
|
157
|
-
var
|
|
158
|
-
var
|
|
159
|
-
var
|
|
159
|
+
var _EditableDecisionGraphText__rspack_import_6 = __webpack_require__("./EditableDecisionGraphText");
|
|
160
|
+
var _GridCell__rspack_import_7 = __webpack_require__("./GridCell");
|
|
161
|
+
var _GridMenu__rspack_import_8 = __webpack_require__("./GridMenu");
|
|
162
|
+
var _gridEvents__rspack_import_9 = __webpack_require__("./gridEvents");
|
|
163
|
+
var _gridStyles__rspack_import_10 = __webpack_require__("./gridStyles");
|
|
164
|
+
var _gridTypes__rspack_import_11 = __webpack_require__("./gridTypes");
|
|
160
165
|
var __rspack_reexport = {};
|
|
161
|
-
for(const __rspack_import_key in
|
|
166
|
+
for(const __rspack_import_key in _gridTypes__rspack_import_11)if ([
|
|
162
167
|
"EdgeInsertButton",
|
|
163
168
|
"EMPTY_VALUE_DASH",
|
|
164
169
|
"GridContextMenu",
|
|
@@ -204,19 +209,20 @@ var __webpack_exports__ = {};
|
|
|
204
209
|
"ROW_NUMBER_CELL_CLASS",
|
|
205
210
|
"isUndoKey",
|
|
206
211
|
"BAND_LABEL_ROW_CLASS",
|
|
212
|
+
"EditableDecisionGraphText",
|
|
207
213
|
"MarkGlyph",
|
|
208
214
|
"DecisionText",
|
|
209
215
|
"EMPTY_MARKS",
|
|
210
216
|
"DELETE_ROW_CLASS",
|
|
211
217
|
"LIVE_NOTE_CLASS"
|
|
212
|
-
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>
|
|
218
|
+
].indexOf(__rspack_import_key) < 0) __rspack_reexport[__rspack_import_key] = ()=>_gridTypes__rspack_import_11[__rspack_import_key];
|
|
213
219
|
__webpack_require__.d(__webpack_exports__, __rspack_reexport);
|
|
214
|
-
var
|
|
215
|
-
var
|
|
216
|
-
var
|
|
217
|
-
var
|
|
218
|
-
var
|
|
219
|
-
var
|
|
220
|
+
var _MarkGlyph__rspack_import_12 = __webpack_require__("./MarkGlyph");
|
|
221
|
+
var _marks__rspack_import_13 = __webpack_require__("./marks");
|
|
222
|
+
var _sentenceGridSelection__rspack_import_14 = __webpack_require__("./sentenceGridSelection");
|
|
223
|
+
var _useDragReorder__rspack_import_15 = __webpack_require__("./useDragReorder");
|
|
224
|
+
var _useDragSelection__rspack_import_16 = __webpack_require__("./useDragSelection");
|
|
225
|
+
var _useGridNavigation__rspack_import_17 = __webpack_require__("./useGridNavigation");
|
|
220
226
|
})();
|
|
221
227
|
exports.BAND_BOUNDARY_CLASS = __webpack_exports__.BAND_BOUNDARY_CLASS;
|
|
222
228
|
exports.BAND_LABEL_ROW_CLASS = __webpack_exports__.BAND_LABEL_ROW_CLASS;
|
|
@@ -233,6 +239,7 @@ exports.DragIndicator = __webpack_exports__.DragIndicator;
|
|
|
233
239
|
exports.EMPTY_MARKS = __webpack_exports__.EMPTY_MARKS;
|
|
234
240
|
exports.EMPTY_VALUE_DASH = __webpack_exports__.EMPTY_VALUE_DASH;
|
|
235
241
|
exports.EdgeInsertButton = __webpack_exports__.EdgeInsertButton;
|
|
242
|
+
exports.EditableDecisionGraphText = __webpack_exports__.EditableDecisionGraphText;
|
|
236
243
|
exports.FOOTER_ACTION_CLASS = __webpack_exports__.FOOTER_ACTION_CLASS;
|
|
237
244
|
exports.FROZEN_RIGHT_CELL_CLASS = __webpack_exports__.FROZEN_RIGHT_CELL_CLASS;
|
|
238
245
|
exports.FROZEN_RIGHT_GROUP_CELL_CLASS = __webpack_exports__.FROZEN_RIGHT_GROUP_CELL_CLASS;
|
|
@@ -283,6 +290,7 @@ for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
|
283
290
|
"EMPTY_MARKS",
|
|
284
291
|
"EMPTY_VALUE_DASH",
|
|
285
292
|
"EdgeInsertButton",
|
|
293
|
+
"EditableDecisionGraphText",
|
|
286
294
|
"FOOTER_ACTION_CLASS",
|
|
287
295
|
"FROZEN_RIGHT_CELL_CLASS",
|
|
288
296
|
"FROZEN_RIGHT_GROUP_CELL_CLASS",
|
|
@@ -6,10 +6,12 @@ export { DecisionGraphText, type DecisionGraphTextProps } from './DecisionGraphT
|
|
|
6
6
|
export { DecisionTable, type DecisionTableProps, type HeaderCellContext } from './DecisionTable';
|
|
7
7
|
export { DecisionText, type DecisionTextMode, type DecisionTextProps } from './DecisionText';
|
|
8
8
|
export { DragIndicator, type DragIndicatorProps } from './DragIndicator';
|
|
9
|
+
export type { DecisionGraphAction, DecisionGraphEdit, DecisionGraphLogicOption, DecisionGraphMode, DecisionGraphMove, DecisionGraphPlace, } from './decisionGraphActionTypes';
|
|
9
10
|
export type { DecisionGraphDecisionNode, DecisionGraphExpansion, DecisionGraphLogic, DecisionGraphMark, DecisionGraphNode, DecisionGraphReferenceNode, DecisionGraphTarget, } from './decisionGraphTypes';
|
|
10
11
|
export type { DecisionTextDiff, DiffChange, DiffColumnChange, DiffRemovedColumn, DiffRemovedRule, DiffRuleChange, DiffValueChange, } from './decisionTextDiff';
|
|
11
12
|
export type { DecisionTextEdit } from './decisionTextTypes';
|
|
12
13
|
export { EdgeInsertButton, type EdgeInsertButtonProps } from './EdgeInsertButton';
|
|
14
|
+
export { EditableDecisionGraphText, type EditableDecisionGraphTextProps, } from './EditableDecisionGraphText';
|
|
13
15
|
export { GridCell, type GridCellProps, renderRestingCellContent } from './GridCell';
|
|
14
16
|
export { GridContextMenu, type GridContextMenuProps, type GridContextMenuState, type GridMenuEntry, type GridMenuItem, } from './GridMenu';
|
|
15
17
|
export { commitMoveFor, emptyAreaPressHandler, isFromTextField, isRedoKey, isUndoKey, } from './gridEvents';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/decision-table/index.ts"],"names":[],"mappings":"AAMA,YAAY,EAAE,YAAY,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACjF,YAAY,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,YAAY,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AACrF,OAAO,EAAE,iBAAiB,EAAE,KAAK,sBAAsB,EAAE,MAAM,qBAAqB,CAAC;AACrF,OAAO,EAAE,aAAa,EAAE,KAAK,kBAAkB,EAAE,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACjG,OAAO,EAAE,YAA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|
import { DecisionText } from "./DecisionText.js";
|
|
5
5
|
import { DragIndicator } from "./DragIndicator.js";
|
|
6
6
|
import { EdgeInsertButton } from "./EdgeInsertButton.js";
|
|
7
|
+
import { EditableDecisionGraphText } from "./EditableDecisionGraphText.js";
|
|
7
8
|
import { GridCell, renderRestingCellContent } from "./GridCell.js";
|
|
8
9
|
import { GridContextMenu } from "./GridMenu.js";
|
|
9
10
|
import { commitMoveFor, emptyAreaPressHandler, isFromTextField, isRedoKey, isUndoKey } from "./gridEvents.js";
|
|
@@ -15,4 +16,4 @@ import { usePressDrag } from "./useDragReorder.js";
|
|
|
15
16
|
import { useDragSelection } from "./useDragSelection.js";
|
|
16
17
|
import { normalizedRect, useGridNavigation } from "./useGridNavigation.js";
|
|
17
18
|
export * from "./gridTypes.js";
|
|
18
|
-
export { BAND_BOUNDARY_CLASS, BAND_LABEL_ROW_CLASS, BODY_CELL_CLASS, BODY_ROW_HEIGHT_PX, BREADCRUMB_POINT_STYLE, CELL_SURFACE_CLASS, DELETE_ROW_BUTTON_CLASS, DELETE_ROW_CLASS, DecisionGraphText, DecisionTable, DecisionText, DragIndicator, EMPTY_MARKS, EMPTY_VALUE_DASH, EdgeInsertButton, FOOTER_ACTION_CLASS, FROZEN_RIGHT_CELL_CLASS, FROZEN_RIGHT_GROUP_CELL_CLASS, FROZEN_RIGHT_HEADER_CELL_CLASS, GROUP_TONE_CLASS, GridCell, GridContextMenu, HEADER_CELL_CLASS, HEADER_LABEL_ROW_CLASS, IN_RANGE_CLASS, LIVE_NOTE_CLASS, LOCKABLE_ROW_ACTION_BUTTON_CLASS, MONO_CELL_TEXT_CLASS, MarkGlyph, OUTPUT_BAND_DOT_CLASS, OUTPUT_CELL_TINT_CLASS, OUTPUT_HUE_CLASS, ROW_GUTTER_MARK_CLASS, ROW_MARK_OVERLAY_CLASS, ROW_NUMBER_CELL_CLASS, ROW_NUMBER_WIDTH, SEPARATOR_BODY_CELL_CLASS, commitMoveFor, emptyAreaPressHandler, isFromTextField, isRedoKey, isUndoKey, normalizedRect, renderRestingCellContent, selectSentenceInGrid, sentenceSelectionOf, useDragSelection, useGridNavigation, usePressDrag };
|
|
19
|
+
export { BAND_BOUNDARY_CLASS, BAND_LABEL_ROW_CLASS, BODY_CELL_CLASS, BODY_ROW_HEIGHT_PX, BREADCRUMB_POINT_STYLE, CELL_SURFACE_CLASS, DELETE_ROW_BUTTON_CLASS, DELETE_ROW_CLASS, DecisionGraphText, DecisionTable, DecisionText, DragIndicator, EMPTY_MARKS, EMPTY_VALUE_DASH, EdgeInsertButton, EditableDecisionGraphText, FOOTER_ACTION_CLASS, FROZEN_RIGHT_CELL_CLASS, FROZEN_RIGHT_GROUP_CELL_CLASS, FROZEN_RIGHT_HEADER_CELL_CLASS, GROUP_TONE_CLASS, GridCell, GridContextMenu, HEADER_CELL_CLASS, HEADER_LABEL_ROW_CLASS, IN_RANGE_CLASS, LIVE_NOTE_CLASS, LOCKABLE_ROW_ACTION_BUTTON_CLASS, MONO_CELL_TEXT_CLASS, MarkGlyph, OUTPUT_BAND_DOT_CLASS, OUTPUT_CELL_TINT_CLASS, OUTPUT_HUE_CLASS, ROW_GUTTER_MARK_CLASS, ROW_MARK_OVERLAY_CLASS, ROW_NUMBER_CELL_CLASS, ROW_NUMBER_WIDTH, SEPARATOR_BODY_CELL_CLASS, commitMoveFor, emptyAreaPressHandler, isFromTextField, isRedoKey, isUndoKey, normalizedRect, renderRestingCellContent, selectSentenceInGrid, sentenceSelectionOf, useDragSelection, useGridNavigation, usePressDrag };
|