@uipath/apollo-react 7.17.3 → 7.18.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/canvas/components/BaseNode/BaseNode.cjs +2 -1
- package/dist/canvas/components/BaseNode/BaseNode.d.ts.map +1 -1
- package/dist/canvas/components/BaseNode/BaseNode.js +3 -2
- package/dist/canvas/components/ButtonHandle/SmartHandle.cjs +3 -4
- package/dist/canvas/components/ButtonHandle/SmartHandle.d.ts.map +1 -1
- package/dist/canvas/components/ButtonHandle/SmartHandle.js +4 -5
- package/dist/canvas/components/ContainerNode/ContainerNode.hooks.cjs +3 -7
- package/dist/canvas/components/ContainerNode/ContainerNode.hooks.d.ts.map +1 -1
- package/dist/canvas/components/ContainerNode/ContainerNode.hooks.js +4 -8
- package/dist/canvas/hooks/useBatchedUpdateNodeInternals.cjs +59 -0
- package/dist/canvas/hooks/useBatchedUpdateNodeInternals.d.ts +2 -0
- package/dist/canvas/hooks/useBatchedUpdateNodeInternals.d.ts.map +1 -0
- package/dist/canvas/hooks/useBatchedUpdateNodeInternals.js +25 -0
- package/dist/canvas/styles/tailwind.canvas.css +1 -1
- package/dist/chat/headless/hooks/use-chat-history.cjs +2 -0
- package/dist/chat/headless/hooks/use-chat-history.d.ts.map +1 -1
- package/dist/chat/headless/hooks/use-chat-history.js +2 -0
- package/dist/chat/headless/hooks/use-chat-messages.cjs +1 -0
- package/dist/chat/headless/hooks/use-chat-messages.d.ts.map +1 -1
- package/dist/chat/headless/hooks/use-chat-messages.js +1 -0
- package/dist/chat/headless/hooks/use-message-actions.cjs +3 -3
- package/dist/chat/headless/hooks/use-message-actions.d.ts +2 -2
- package/dist/chat/headless/hooks/use-message-actions.d.ts.map +1 -1
- package/dist/chat/headless/hooks/use-message-actions.js +3 -3
- package/dist/chat/headless/providers/chat-state-provider.cjs +7 -0
- package/dist/chat/headless/providers/chat-state-provider.d.ts +1 -0
- package/dist/chat/headless/providers/chat-state-provider.d.ts.map +1 -1
- package/dist/chat/headless/providers/chat-state-provider.js +7 -0
- package/dist/chat/service/ChatModel.cjs +1 -0
- package/dist/chat/service/ChatModel.d.ts +2 -0
- package/dist/chat/service/ChatModel.d.ts.map +1 -1
- package/dist/chat/service/ChatModel.js +1 -0
- package/dist/chat/service/ChatService.cjs +1 -0
- package/dist/chat/service/ChatService.d.ts.map +1 -1
- package/dist/chat/service/ChatService.js +1 -0
- package/dist/chat/stories/chat-playground.d.ts +1 -0
- package/dist/chat/stories/chat-playground.d.ts.map +1 -1
- package/dist/chat/styles/tailwind.chat.css +1 -1
- package/dist/chat/wind/messages/message-action-bar.cjs +21 -3
- package/dist/chat/wind/messages/message-action-bar.d.ts.map +1 -1
- package/dist/chat/wind/messages/message-action-bar.js +11 -3
- package/dist/chat/wind/messages/message-list.cjs +5 -3
- package/dist/chat/wind/messages/message-list.d.ts.map +1 -1
- package/dist/chat/wind/messages/message-list.js +5 -3
- package/dist/decision-table/AddRuleButton.cjs +49 -0
- package/dist/decision-table/AddRuleButton.d.ts +7 -0
- package/dist/decision-table/AddRuleButton.d.ts.map +1 -0
- package/dist/decision-table/AddRuleButton.js +15 -0
- package/dist/decision-table/AddRuleFooter.cjs +46 -0
- package/dist/decision-table/AddRuleFooter.d.ts +9 -0
- package/dist/decision-table/AddRuleFooter.d.ts.map +1 -0
- package/dist/decision-table/AddRuleFooter.js +12 -0
- package/dist/decision-table/BandColumn.cjs +66 -0
- package/dist/decision-table/BandColumn.d.ts +12 -0
- package/dist/decision-table/BandColumn.d.ts.map +1 -0
- package/dist/decision-table/BandColumn.js +32 -0
- package/dist/decision-table/BandList.cjs +54 -0
- package/dist/decision-table/BandList.d.ts +12 -0
- package/dist/decision-table/BandList.d.ts.map +1 -0
- package/dist/decision-table/BandList.js +20 -0
- package/dist/decision-table/ConditionLine.cjs +62 -0
- package/dist/decision-table/ConditionLine.d.ts +10 -0
- package/dist/decision-table/ConditionLine.d.ts.map +1 -0
- package/dist/decision-table/ConditionLine.js +28 -0
- package/dist/decision-table/DecisionText.cjs +122 -0
- package/dist/decision-table/DecisionText.d.ts +28 -0
- package/dist/decision-table/DecisionText.d.ts.map +1 -0
- package/dist/decision-table/DecisionText.js +88 -0
- package/dist/decision-table/DecisionTextHeader.cjs +53 -0
- package/dist/decision-table/DecisionTextHeader.d.ts +7 -0
- package/dist/decision-table/DecisionTextHeader.d.ts.map +1 -0
- package/dist/decision-table/DecisionTextHeader.js +19 -0
- package/dist/decision-table/EmptyRules.cjs +51 -0
- package/dist/decision-table/EmptyRules.d.ts +9 -0
- package/dist/decision-table/EmptyRules.d.ts.map +1 -0
- package/dist/decision-table/EmptyRules.js +17 -0
- package/dist/decision-table/LineLead.cjs +58 -0
- package/dist/decision-table/LineLead.d.ts +10 -0
- package/dist/decision-table/LineLead.d.ts.map +1 -0
- package/dist/decision-table/LineLead.js +24 -0
- package/dist/decision-table/LineText.cjs +108 -0
- package/dist/decision-table/LineText.d.ts +19 -0
- package/dist/decision-table/LineText.d.ts.map +1 -0
- package/dist/decision-table/LineText.js +74 -0
- package/dist/decision-table/MarkBadge.cjs +66 -0
- package/dist/decision-table/MarkBadge.d.ts +13 -0
- package/dist/decision-table/MarkBadge.d.ts.map +1 -0
- package/dist/decision-table/MarkBadge.js +29 -0
- package/dist/decision-table/RuleCard.cjs +109 -0
- package/dist/decision-table/RuleCard.d.ts +8 -0
- package/dist/decision-table/RuleCard.d.ts.map +1 -0
- package/dist/decision-table/RuleCard.js +75 -0
- package/dist/decision-table/RuleLine.cjs +51 -0
- package/dist/decision-table/RuleLine.d.ts +9 -0
- package/dist/decision-table/RuleLine.d.ts.map +1 -0
- package/dist/decision-table/RuleLine.js +17 -0
- package/dist/decision-table/RuleList.cjs +70 -0
- package/dist/decision-table/RuleList.d.ts +20 -0
- package/dist/decision-table/RuleList.d.ts.map +1 -0
- package/dist/decision-table/RuleList.js +36 -0
- package/dist/decision-table/SentenceBands.cjs +60 -0
- package/dist/decision-table/SentenceBands.d.ts +12 -0
- package/dist/decision-table/SentenceBands.d.ts.map +1 -0
- package/dist/decision-table/SentenceBands.js +26 -0
- package/dist/decision-table/StopLabels.cjs +43 -0
- package/dist/decision-table/StopLabels.d.ts +7 -0
- package/dist/decision-table/StopLabels.d.ts.map +1 -0
- package/dist/decision-table/StopLabels.js +9 -0
- package/dist/decision-table/TokenChip.cjs +67 -0
- package/dist/decision-table/TokenChip.d.ts +17 -0
- package/dist/decision-table/TokenChip.d.ts.map +1 -0
- package/dist/decision-table/TokenChip.js +33 -0
- package/dist/decision-table/__fixtures__/sentences.fixtures.d.ts +17 -0
- package/dist/decision-table/__fixtures__/sentences.fixtures.d.ts.map +1 -0
- package/dist/decision-table/gridEvents.cjs +24 -0
- package/dist/decision-table/gridEvents.d.ts +3 -0
- package/dist/decision-table/gridEvents.d.ts.map +1 -1
- package/dist/decision-table/gridEvents.js +16 -1
- package/dist/decision-table/index.cjs +63 -55
- package/dist/decision-table/index.d.ts +5 -0
- package/dist/decision-table/index.d.ts.map +1 -1
- package/dist/decision-table/index.js +2 -1
- package/dist/decision-table/ruleCardModel.cjs +138 -0
- package/dist/decision-table/ruleCardModel.d.ts +38 -0
- package/dist/decision-table/ruleCardModel.d.ts.map +1 -0
- package/dist/decision-table/ruleCardModel.js +101 -0
- package/dist/decision-table/sentenceMarks.cjs +89 -0
- package/dist/decision-table/sentenceMarks.d.ts +27 -0
- package/dist/decision-table/sentenceMarks.d.ts.map +1 -0
- package/dist/decision-table/sentenceMarks.js +43 -0
- package/dist/decision-table/sentenceParts.cjs +100 -0
- package/dist/decision-table/sentenceParts.d.ts +19 -0
- package/dist/decision-table/sentenceParts.d.ts.map +1 -0
- package/dist/decision-table/sentenceParts.js +48 -0
- package/dist/decision-table/sentenceRuleHeights.cjs +70 -0
- package/dist/decision-table/sentenceRuleHeights.d.ts +7 -0
- package/dist/decision-table/sentenceRuleHeights.d.ts.map +1 -0
- package/dist/decision-table/sentenceRuleHeights.js +30 -0
- package/dist/decision-table/sentenceStyles.cjs +166 -0
- package/dist/decision-table/sentenceStyles.d.ts +38 -0
- package/dist/decision-table/sentenceStyles.d.ts.map +1 -0
- package/dist/decision-table/sentenceStyles.js +45 -0
- package/dist/decision-table/sentenceTargets.cjs +74 -0
- package/dist/decision-table/sentenceTargets.d.ts +10 -0
- package/dist/decision-table/sentenceTargets.d.ts.map +1 -0
- package/dist/decision-table/sentenceTargets.js +31 -0
- package/dist/decision-table/sentenceTypes.cjs +18 -0
- package/dist/decision-table/sentenceTypes.d.ts +38 -0
- package/dist/decision-table/sentenceTypes.d.ts.map +1 -0
- package/dist/decision-table/sentenceTypes.js +0 -0
- package/dist/decision-table/styles/tailwind.decision-table.css +1 -1
- package/dist/decision-table/useAddRule.cjs +63 -0
- package/dist/decision-table/useAddRule.d.ts +8 -0
- package/dist/decision-table/useAddRule.d.ts.map +1 -0
- package/dist/decision-table/useAddRule.js +29 -0
- package/dist/decision-table/useCellHover.cjs +55 -0
- package/dist/decision-table/useCellHover.d.ts +4 -0
- package/dist/decision-table/useCellHover.d.ts.map +1 -0
- package/dist/decision-table/useCellHover.js +21 -0
- package/dist/decision-table/useContainerHandlers.cjs +106 -0
- package/dist/decision-table/useContainerHandlers.d.ts +294 -0
- package/dist/decision-table/useContainerHandlers.d.ts.map +1 -0
- package/dist/decision-table/useContainerHandlers.js +72 -0
- package/dist/decision-table/useGridLayout.d.ts +1 -8
- package/dist/decision-table/useGridLayout.d.ts.map +1 -1
- package/dist/decision-table/useGridNavigation.cjs +11 -2
- package/dist/decision-table/useGridNavigation.d.ts +3 -0
- package/dist/decision-table/useGridNavigation.d.ts.map +1 -1
- package/dist/decision-table/useGridNavigation.js +1 -1
- package/dist/decision-table/useHorizontalOverflow.cjs +65 -0
- package/dist/decision-table/useHorizontalOverflow.d.ts +5 -0
- package/dist/decision-table/useHorizontalOverflow.d.ts.map +1 -0
- package/dist/decision-table/useHorizontalOverflow.js +31 -0
- package/dist/decision-table/useRuleWindow.cjs +132 -0
- package/dist/decision-table/useRuleWindow.d.ts +17 -0
- package/dist/decision-table/useRuleWindow.d.ts.map +1 -0
- package/dist/decision-table/useRuleWindow.js +95 -0
- package/dist/decision-table/useSentenceNavigation.cjs +192 -0
- package/dist/decision-table/useSentenceNavigation.d.ts +16 -0
- package/dist/decision-table/useSentenceNavigation.d.ts.map +1 -0
- package/dist/decision-table/useSentenceNavigation.js +158 -0
- package/dist/decision-table/useVirtualizedAxis.cjs +34 -11
- package/dist/decision-table/useVirtualizedAxis.d.ts +1 -1
- package/dist/decision-table/useVirtualizedAxis.d.ts.map +1 -1
- package/dist/decision-table/useVirtualizedAxis.js +34 -11
- package/package.json +2 -2
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __webpack_require__ = {};
|
|
3
|
+
(()=>{
|
|
4
|
+
__webpack_require__.n = (module)=>{
|
|
5
|
+
var getter = module && module.__esModule ? ()=>module['default'] : ()=>module;
|
|
6
|
+
__webpack_require__.d(getter, {
|
|
7
|
+
a: getter
|
|
8
|
+
});
|
|
9
|
+
return getter;
|
|
10
|
+
};
|
|
11
|
+
})();
|
|
3
12
|
(()=>{
|
|
4
13
|
__webpack_require__.d = (exports1, definition)=>{
|
|
5
14
|
for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
|
|
@@ -29,16 +38,21 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
29
38
|
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
30
39
|
const react_namespaceObject = require("@lingui/react");
|
|
31
40
|
const apollo_wind_namespaceObject = require("@uipath/apollo-wind");
|
|
41
|
+
const external_react_namespaceObject = require("react");
|
|
42
|
+
var external_react_default = /*#__PURE__*/ __webpack_require__.n(external_react_namespaceObject);
|
|
32
43
|
const use_is_streaming_message_cjs_namespaceObject = require("../../headless/hooks/use-is-streaming-message.cjs");
|
|
33
44
|
const use_message_actions_cjs_namespaceObject = require("../../headless/hooks/use-message-actions.cjs");
|
|
45
|
+
const chat_state_provider_cjs_namespaceObject = require("../../headless/providers/chat-state-provider.cjs");
|
|
34
46
|
const service_icon_cjs_namespaceObject = require("../common/service-icon.cjs");
|
|
35
47
|
function MessageActionBar({ message, isLatestReply, copyText }) {
|
|
36
48
|
const { _ } = (0, react_namespaceObject.useLingui)();
|
|
49
|
+
const { allowFeedbackChange } = (0, chat_state_provider_cjs_namespaceObject.useChatState)();
|
|
37
50
|
const defaults = (0, use_message_actions_cjs_namespaceObject.useDefaultMessageActions)(message, {
|
|
38
|
-
|
|
51
|
+
allowFeedbackChange
|
|
39
52
|
});
|
|
40
53
|
const runAction = (0, use_message_actions_cjs_namespaceObject.useMessageActionHandler)(message);
|
|
41
54
|
const { isStreaming } = (0, use_is_streaming_message_cjs_namespaceObject.useIsStreamingMessage)(message);
|
|
55
|
+
const [pendingRating, setPendingRating] = external_react_default().useState(null);
|
|
42
56
|
if (isStreaming) return null;
|
|
43
57
|
const copy = defaults.find((action)=>action.name === use_message_actions_cjs_namespaceObject.MESSAGE_ACTION_COPY);
|
|
44
58
|
const good = defaults.find((action)=>action.name === use_message_actions_cjs_namespaceObject.MESSAGE_ACTION_GOOD);
|
|
@@ -85,10 +99,14 @@ function MessageActionBar({ message, isLatestReply, copyText }) {
|
|
|
85
99
|
}
|
|
86
100
|
}),
|
|
87
101
|
(good || bad) && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(apollo_wind_namespaceObject.MessageActionFeedback, {
|
|
88
|
-
value: message.feedback ? message.feedback.isPositive ? 'up' : 'down' : null,
|
|
102
|
+
value: pendingRating ?? (message.feedback ? message.feedback.isPositive ? 'up' : 'down' : null),
|
|
103
|
+
locked: !allowFeedbackChange,
|
|
89
104
|
onChange: (rating)=>{
|
|
90
105
|
const action = 'up' === rating ? good : bad;
|
|
91
|
-
if (action)
|
|
106
|
+
if (action) {
|
|
107
|
+
setPendingRating(rating);
|
|
108
|
+
runAction(action).finally(()=>setPendingRating(null));
|
|
109
|
+
}
|
|
92
110
|
},
|
|
93
111
|
strings: {
|
|
94
112
|
label: _({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message-action-bar.d.ts","sourceRoot":"","sources":["../../../../src/chat/wind/messages/message-action-bar.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"message-action-bar.d.ts","sourceRoot":"","sources":["../../../../src/chat/wind/messages/message-action-bar.tsx"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,oBAAoB,EAA8B,MAAM,eAAe,CAAC;AAStF,wBAAgB,gBAAgB,CAAC,EAC/B,OAAO,EACP,aAAa,EACb,QAAQ,GACT,EAAE;IACD,OAAO,EAAE,oBAAoB,CAAC;IAC9B,aAAa,EAAE,OAAO,CAAC;IAEvB,QAAQ,EAAE,MAAM,CAAC;CAClB,kDAqFA"}
|
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
import { useLingui } from "@lingui/react";
|
|
3
3
|
import { MessageActionCopy, MessageActionFeedback, MessageActions } from "@uipath/apollo-wind";
|
|
4
|
+
import react from "react";
|
|
4
5
|
import { useIsStreamingMessage } from "../../headless/hooks/use-is-streaming-message.js";
|
|
5
6
|
import { MESSAGE_ACTION_BAD, MESSAGE_ACTION_COPY, MESSAGE_ACTION_GOOD, useDefaultMessageActions, useMessageActionHandler } from "../../headless/hooks/use-message-actions.js";
|
|
7
|
+
import { useChatState } from "../../headless/providers/chat-state-provider.js";
|
|
6
8
|
import { ServiceIcon } from "../common/service-icon.js";
|
|
7
9
|
function MessageActionBar({ message, isLatestReply, copyText }) {
|
|
8
10
|
const { _ } = useLingui();
|
|
11
|
+
const { allowFeedbackChange } = useChatState();
|
|
9
12
|
const defaults = useDefaultMessageActions(message, {
|
|
10
|
-
|
|
13
|
+
allowFeedbackChange
|
|
11
14
|
});
|
|
12
15
|
const runAction = useMessageActionHandler(message);
|
|
13
16
|
const { isStreaming } = useIsStreamingMessage(message);
|
|
17
|
+
const [pendingRating, setPendingRating] = react.useState(null);
|
|
14
18
|
if (isStreaming) return null;
|
|
15
19
|
const copy = defaults.find((action)=>action.name === MESSAGE_ACTION_COPY);
|
|
16
20
|
const good = defaults.find((action)=>action.name === MESSAGE_ACTION_GOOD);
|
|
@@ -57,10 +61,14 @@ function MessageActionBar({ message, isLatestReply, copyText }) {
|
|
|
57
61
|
}
|
|
58
62
|
}),
|
|
59
63
|
(good || bad) && /*#__PURE__*/ jsx(MessageActionFeedback, {
|
|
60
|
-
value: message.feedback ? message.feedback.isPositive ? 'up' : 'down' : null,
|
|
64
|
+
value: pendingRating ?? (message.feedback ? message.feedback.isPositive ? 'up' : 'down' : null),
|
|
65
|
+
locked: !allowFeedbackChange,
|
|
61
66
|
onChange: (rating)=>{
|
|
62
67
|
const action = 'up' === rating ? good : bad;
|
|
63
|
-
if (action)
|
|
68
|
+
if (action) {
|
|
69
|
+
setPendingRating(rating);
|
|
70
|
+
runAction(action).finally(()=>setPendingRating(null));
|
|
71
|
+
}
|
|
64
72
|
},
|
|
65
73
|
strings: {
|
|
66
74
|
label: _({
|
|
@@ -55,10 +55,10 @@ const external_chat_message_cjs_namespaceObject = require("./chat-message.cjs");
|
|
|
55
55
|
const external_thinking_row_cjs_namespaceObject = require("./thinking-row.cjs");
|
|
56
56
|
const ANCHOR_PEEK = 12;
|
|
57
57
|
const COMPACT_ANCHOR_PEEK = 0;
|
|
58
|
-
function InitialLoading() {
|
|
58
|
+
function InitialLoading({ className }) {
|
|
59
59
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("div", {
|
|
60
60
|
"data-slot": "wind-chat-messages-skeleton",
|
|
61
|
-
className:
|
|
61
|
+
className: (0, apollo_wind_namespaceObject.cn)('flex flex-col gap-3 px-6 pt-3 pb-4', className),
|
|
62
62
|
"aria-hidden": "true",
|
|
63
63
|
children: [
|
|
64
64
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(apollo_wind_namespaceObject.Skeleton, {
|
|
@@ -227,7 +227,9 @@ function MessageList({ className, contentClassName }) {
|
|
|
227
227
|
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
228
228
|
"data-slot": "wind-chat-messages",
|
|
229
229
|
className: (0, apollo_wind_namespaceObject.cn)('relative flex min-h-0 flex-1 flex-col', className),
|
|
230
|
-
children: skeletonLoader ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(InitialLoading, {
|
|
230
|
+
children: skeletonLoader ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(InitialLoading, {
|
|
231
|
+
className: contentClassName
|
|
232
|
+
}) : /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(apollo_wind_namespaceObject.MessageScrollerProvider, {
|
|
231
233
|
autoScroll: autoScroll,
|
|
232
234
|
defaultScrollPosition: "end",
|
|
233
235
|
scrollPreviousItemPeek: spacing.compactMode ? COMPACT_ANCHOR_PEEK : ANCHOR_PEEK,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message-list.d.ts","sourceRoot":"","sources":["../../../../src/chat/wind/messages/message-list.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"message-list.d.ts","sourceRoot":"","sources":["../../../../src/chat/wind/messages/message-list.tsx"],"names":[],"mappings":"AA8QA,wBAAgB,WAAW,CAAC,EAC1B,SAAS,EACT,gBAAgB,GACjB,EAAE;IACD,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC3B,2CA4BA"}
|
|
@@ -17,10 +17,10 @@ import { ChatMessage } from "./chat-message.js";
|
|
|
17
17
|
import { ThinkingRow } from "./thinking-row.js";
|
|
18
18
|
const ANCHOR_PEEK = 12;
|
|
19
19
|
const COMPACT_ANCHOR_PEEK = 0;
|
|
20
|
-
function InitialLoading() {
|
|
20
|
+
function InitialLoading({ className }) {
|
|
21
21
|
return /*#__PURE__*/ jsxs("div", {
|
|
22
22
|
"data-slot": "wind-chat-messages-skeleton",
|
|
23
|
-
className:
|
|
23
|
+
className: cn('flex flex-col gap-3 px-6 pt-3 pb-4', className),
|
|
24
24
|
"aria-hidden": "true",
|
|
25
25
|
children: [
|
|
26
26
|
/*#__PURE__*/ jsx(Skeleton, {
|
|
@@ -189,7 +189,9 @@ function MessageList({ className, contentClassName }) {
|
|
|
189
189
|
return /*#__PURE__*/ jsx("div", {
|
|
190
190
|
"data-slot": "wind-chat-messages",
|
|
191
191
|
className: cn('relative flex min-h-0 flex-1 flex-col', className),
|
|
192
|
-
children: skeletonLoader ? /*#__PURE__*/ jsx(InitialLoading, {
|
|
192
|
+
children: skeletonLoader ? /*#__PURE__*/ jsx(InitialLoading, {
|
|
193
|
+
className: contentClassName
|
|
194
|
+
}) : /*#__PURE__*/ jsx(MessageScrollerProvider, {
|
|
193
195
|
autoScroll: autoScroll,
|
|
194
196
|
defaultScrollPosition: "end",
|
|
195
197
|
scrollPreviousItemPeek: spacing.compactMode ? COMPACT_ANCHOR_PEEK : ANCHOR_PEEK,
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
AddRuleButton: ()=>AddRuleButton
|
|
28
|
+
});
|
|
29
|
+
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
30
|
+
const apollo_wind_namespaceObject = require("@uipath/apollo-wind");
|
|
31
|
+
const external_lucide_react_namespaceObject = require("lucide-react");
|
|
32
|
+
const AddRuleButton = ({ label, onAdd })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)(apollo_wind_namespaceObject.Button, {
|
|
33
|
+
variant: "outline",
|
|
34
|
+
size: "sm",
|
|
35
|
+
onClick: onAdd,
|
|
36
|
+
children: [
|
|
37
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_lucide_react_namespaceObject.Plus, {
|
|
38
|
+
"aria-hidden": true
|
|
39
|
+
}),
|
|
40
|
+
label
|
|
41
|
+
]
|
|
42
|
+
});
|
|
43
|
+
exports.AddRuleButton = __webpack_exports__.AddRuleButton;
|
|
44
|
+
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
45
|
+
"AddRuleButton"
|
|
46
|
+
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
47
|
+
Object.defineProperty(exports, '__esModule', {
|
|
48
|
+
value: true
|
|
49
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AddRuleButton.d.ts","sourceRoot":"","sources":["../../src/decision-table/AddRuleButton.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAKtD,CAAC"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { Button } from "@uipath/apollo-wind";
|
|
3
|
+
import { Plus } from "lucide-react";
|
|
4
|
+
const AddRuleButton = ({ label, onAdd })=>/*#__PURE__*/ jsxs(Button, {
|
|
5
|
+
variant: "outline",
|
|
6
|
+
size: "sm",
|
|
7
|
+
onClick: onAdd,
|
|
8
|
+
children: [
|
|
9
|
+
/*#__PURE__*/ jsx(Plus, {
|
|
10
|
+
"aria-hidden": true
|
|
11
|
+
}),
|
|
12
|
+
label
|
|
13
|
+
]
|
|
14
|
+
});
|
|
15
|
+
export { AddRuleButton };
|
|
@@ -0,0 +1,46 @@
|
|
|
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
|
+
AddRuleFooter: ()=>AddRuleFooter
|
|
28
|
+
});
|
|
29
|
+
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
30
|
+
const external_AddRuleButton_cjs_namespaceObject = require("./AddRuleButton.cjs");
|
|
31
|
+
const external_sentenceStyles_cjs_namespaceObject = require("./sentenceStyles.cjs");
|
|
32
|
+
const AddRuleFooter = ({ addRule, style })=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
33
|
+
className: external_sentenceStyles_cjs_namespaceObject.ADD_RULE_FOOTER_CLASS,
|
|
34
|
+
style: style,
|
|
35
|
+
"data-add-rule": true,
|
|
36
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_AddRuleButton_cjs_namespaceObject.AddRuleButton, {
|
|
37
|
+
...addRule
|
|
38
|
+
})
|
|
39
|
+
});
|
|
40
|
+
exports.AddRuleFooter = __webpack_exports__.AddRuleFooter;
|
|
41
|
+
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
42
|
+
"AddRuleFooter"
|
|
43
|
+
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
44
|
+
Object.defineProperty(exports, '__esModule', {
|
|
45
|
+
value: true
|
|
46
|
+
});
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import { type AddRuleButtonProps } from './AddRuleButton';
|
|
3
|
+
import type { SentenceListStyle } from './sentenceRuleHeights';
|
|
4
|
+
export interface AddRuleFooterProps {
|
|
5
|
+
addRule: AddRuleButtonProps;
|
|
6
|
+
style: SentenceListStyle;
|
|
7
|
+
}
|
|
8
|
+
export declare const AddRuleFooter: React.FC<AddRuleFooterProps>;
|
|
9
|
+
//# sourceMappingURL=AddRuleFooter.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AddRuleFooter.d.ts","sourceRoot":"","sources":["../../src/decision-table/AddRuleFooter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAiB,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AACzE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAG/D,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,kBAAkB,CAAC;IAE5B,KAAK,EAAE,iBAAiB,CAAC;CAC1B;AAGD,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAItD,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { AddRuleButton } from "./AddRuleButton.js";
|
|
3
|
+
import { ADD_RULE_FOOTER_CLASS } from "./sentenceStyles.js";
|
|
4
|
+
const AddRuleFooter = ({ addRule, style })=>/*#__PURE__*/ jsx("div", {
|
|
5
|
+
className: ADD_RULE_FOOTER_CLASS,
|
|
6
|
+
style: style,
|
|
7
|
+
"data-add-rule": true,
|
|
8
|
+
children: /*#__PURE__*/ jsx(AddRuleButton, {
|
|
9
|
+
...addRule
|
|
10
|
+
})
|
|
11
|
+
});
|
|
12
|
+
export { AddRuleFooter };
|
|
@@ -0,0 +1,66 @@
|
|
|
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
|
+
BandColumn: ()=>BandColumn
|
|
28
|
+
});
|
|
29
|
+
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
30
|
+
const external_MarkBadge_cjs_namespaceObject = require("./MarkBadge.cjs");
|
|
31
|
+
const external_sentenceMarks_cjs_namespaceObject = require("./sentenceMarks.cjs");
|
|
32
|
+
const external_sentenceStyles_cjs_namespaceObject = require("./sentenceStyles.cjs");
|
|
33
|
+
const columnMark = (mark)=>({
|
|
34
|
+
tone: mark?.tone,
|
|
35
|
+
title: mark?.title,
|
|
36
|
+
glyph: mark?.glyph,
|
|
37
|
+
matched: void 0
|
|
38
|
+
});
|
|
39
|
+
const BandColumn = ({ column, mark, badgeId, labels })=>{
|
|
40
|
+
const { tone, title } = columnMark(mark);
|
|
41
|
+
const columnMarks = (0, external_sentenceMarks_cjs_namespaceObject.isLineMark)(mark) ? [
|
|
42
|
+
mark
|
|
43
|
+
] : null;
|
|
44
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("li", {
|
|
45
|
+
className: external_sentenceStyles_cjs_namespaceObject.BAND_COLUMN_CLASS,
|
|
46
|
+
"aria-describedby": columnMarks ? (0, external_MarkBadge_cjs_namespaceObject.markIds)(badgeId, columnMarks).join(' ') : void 0,
|
|
47
|
+
"data-column-id": column.id,
|
|
48
|
+
"data-tone": tone,
|
|
49
|
+
"data-mark-title": title,
|
|
50
|
+
children: [
|
|
51
|
+
column.name,
|
|
52
|
+
columnMarks && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_MarkBadge_cjs_namespaceObject.MarkBadge, {
|
|
53
|
+
id: badgeId,
|
|
54
|
+
marks: columnMarks,
|
|
55
|
+
labels: labels
|
|
56
|
+
})
|
|
57
|
+
]
|
|
58
|
+
});
|
|
59
|
+
};
|
|
60
|
+
exports.BandColumn = __webpack_exports__.BandColumn;
|
|
61
|
+
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
62
|
+
"BandColumn"
|
|
63
|
+
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
64
|
+
Object.defineProperty(exports, '__esModule', {
|
|
65
|
+
value: true
|
|
66
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import { type MarkBadgeProps } from './MarkBadge';
|
|
3
|
+
import type { Mark } from './marks';
|
|
4
|
+
import type { SentenceBandColumn } from './sentenceTypes';
|
|
5
|
+
export interface BandColumnProps {
|
|
6
|
+
column: SentenceBandColumn;
|
|
7
|
+
mark: Mark | undefined;
|
|
8
|
+
badgeId: string;
|
|
9
|
+
labels: MarkBadgeProps['labels'];
|
|
10
|
+
}
|
|
11
|
+
export declare const BandColumn: React.FC<BandColumnProps>;
|
|
12
|
+
//# sourceMappingURL=BandColumn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BandColumn.d.ts","sourceRoot":"","sources":["../../src/decision-table/BandColumn.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAa,KAAK,cAAc,EAAW,MAAM,aAAa,CAAC;AACtE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,SAAS,CAAC;AAGpC,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAW1D,MAAM,WAAW,eAAe;IAC9B,MAAM,EAAE,kBAAkB,CAAC;IAC3B,IAAI,EAAE,IAAI,GAAG,SAAS,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,cAAc,CAAC,QAAQ,CAAC,CAAC;CAClC;AAGD,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAehD,CAAC"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { MarkBadge, markIds } from "./MarkBadge.js";
|
|
3
|
+
import { isLineMark } from "./sentenceMarks.js";
|
|
4
|
+
import { BAND_COLUMN_CLASS } from "./sentenceStyles.js";
|
|
5
|
+
const columnMark = (mark)=>({
|
|
6
|
+
tone: mark?.tone,
|
|
7
|
+
title: mark?.title,
|
|
8
|
+
glyph: mark?.glyph,
|
|
9
|
+
matched: void 0
|
|
10
|
+
});
|
|
11
|
+
const BandColumn = ({ column, mark, badgeId, labels })=>{
|
|
12
|
+
const { tone, title } = columnMark(mark);
|
|
13
|
+
const columnMarks = isLineMark(mark) ? [
|
|
14
|
+
mark
|
|
15
|
+
] : null;
|
|
16
|
+
return /*#__PURE__*/ jsxs("li", {
|
|
17
|
+
className: BAND_COLUMN_CLASS,
|
|
18
|
+
"aria-describedby": columnMarks ? markIds(badgeId, columnMarks).join(' ') : void 0,
|
|
19
|
+
"data-column-id": column.id,
|
|
20
|
+
"data-tone": tone,
|
|
21
|
+
"data-mark-title": title,
|
|
22
|
+
children: [
|
|
23
|
+
column.name,
|
|
24
|
+
columnMarks && /*#__PURE__*/ jsx(MarkBadge, {
|
|
25
|
+
id: badgeId,
|
|
26
|
+
marks: columnMarks,
|
|
27
|
+
labels: labels
|
|
28
|
+
})
|
|
29
|
+
]
|
|
30
|
+
});
|
|
31
|
+
};
|
|
32
|
+
export { BandColumn };
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
BandList: ()=>BandList
|
|
28
|
+
});
|
|
29
|
+
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
30
|
+
const external_BandColumn_cjs_namespaceObject = require("./BandColumn.cjs");
|
|
31
|
+
const external_sentenceStyles_cjs_namespaceObject = require("./sentenceStyles.cjs");
|
|
32
|
+
const external_useHorizontalOverflow_cjs_namespaceObject = require("./useHorizontalOverflow.cjs");
|
|
33
|
+
const BandList = ({ band, marks, badgeIdPrefix, labels })=>{
|
|
34
|
+
const { ref, overflows } = (0, external_useHorizontalOverflow_cjs_namespaceObject.useHorizontalOverflow)();
|
|
35
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("ul", {
|
|
36
|
+
ref: ref,
|
|
37
|
+
className: external_sentenceStyles_cjs_namespaceObject.BAND_COLUMNS_CLASS,
|
|
38
|
+
"aria-label": band.label,
|
|
39
|
+
tabIndex: overflows ? 0 : void 0,
|
|
40
|
+
children: band.columns.map((column, columnIndex)=>/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_BandColumn_cjs_namespaceObject.BandColumn, {
|
|
41
|
+
column: column,
|
|
42
|
+
mark: marks.get(column.id),
|
|
43
|
+
badgeId: `${badgeIdPrefix}-${columnIndex}`,
|
|
44
|
+
labels: labels
|
|
45
|
+
}, column.id))
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
exports.BandList = __webpack_exports__.BandList;
|
|
49
|
+
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
50
|
+
"BandList"
|
|
51
|
+
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
52
|
+
Object.defineProperty(exports, '__esModule', {
|
|
53
|
+
value: true
|
|
54
|
+
});
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import { type BandColumnProps } from './BandColumn';
|
|
3
|
+
import type { TableMarks } from './marks';
|
|
4
|
+
import type { SentenceBand } from './sentenceTypes';
|
|
5
|
+
export interface BandListProps {
|
|
6
|
+
band: SentenceBand;
|
|
7
|
+
marks: TableMarks['columns'];
|
|
8
|
+
badgeIdPrefix: string;
|
|
9
|
+
labels: BandColumnProps['labels'];
|
|
10
|
+
}
|
|
11
|
+
export declare const BandList: React.FC<BandListProps>;
|
|
12
|
+
//# sourceMappingURL=BandList.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BandList.d.ts","sourceRoot":"","sources":["../../src/decision-table/BandList.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAc,KAAK,eAAe,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAE1C,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAGpD,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,YAAY,CAAC;IACnB,KAAK,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC;IAE7B,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,eAAe,CAAC,QAAQ,CAAC,CAAC;CACnC;AAGD,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAoB5C,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { BandColumn } from "./BandColumn.js";
|
|
3
|
+
import { BAND_COLUMNS_CLASS } from "./sentenceStyles.js";
|
|
4
|
+
import { useHorizontalOverflow } from "./useHorizontalOverflow.js";
|
|
5
|
+
const BandList = ({ band, marks, badgeIdPrefix, labels })=>{
|
|
6
|
+
const { ref, overflows } = useHorizontalOverflow();
|
|
7
|
+
return /*#__PURE__*/ jsx("ul", {
|
|
8
|
+
ref: ref,
|
|
9
|
+
className: BAND_COLUMNS_CLASS,
|
|
10
|
+
"aria-label": band.label,
|
|
11
|
+
tabIndex: overflows ? 0 : void 0,
|
|
12
|
+
children: band.columns.map((column, columnIndex)=>/*#__PURE__*/ jsx(BandColumn, {
|
|
13
|
+
column: column,
|
|
14
|
+
mark: marks.get(column.id),
|
|
15
|
+
badgeId: `${badgeIdPrefix}-${columnIndex}`,
|
|
16
|
+
labels: labels
|
|
17
|
+
}, column.id))
|
|
18
|
+
});
|
|
19
|
+
};
|
|
20
|
+
export { BandList };
|
|
@@ -0,0 +1,62 @@
|
|
|
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
|
+
ConditionLine: ()=>ConditionLine
|
|
28
|
+
});
|
|
29
|
+
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
|
|
30
|
+
const apollo_wind_namespaceObject = require("@uipath/apollo-wind");
|
|
31
|
+
const external_LineLead_cjs_namespaceObject = require("./LineLead.cjs");
|
|
32
|
+
const external_LineText_cjs_namespaceObject = require("./LineText.cjs");
|
|
33
|
+
const external_MarkBadge_cjs_namespaceObject = require("./MarkBadge.cjs");
|
|
34
|
+
const external_sentenceStyles_cjs_namespaceObject = require("./sentenceStyles.cjs");
|
|
35
|
+
const ConditionLine = ({ line, badge, ...lineProps })=>{
|
|
36
|
+
const matched = lineProps.cells?.[line.columnId]?.matched;
|
|
37
|
+
return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsxs)("li", {
|
|
38
|
+
className: (0, apollo_wind_namespaceObject.cn)(external_sentenceStyles_cjs_namespaceObject.LINE_CLASS, external_sentenceStyles_cjs_namespaceObject.MATCHED_LINE_CLASS),
|
|
39
|
+
"data-column-id": line.columnId,
|
|
40
|
+
"data-matched": matched,
|
|
41
|
+
children: [
|
|
42
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_LineLead_cjs_namespaceObject.LineLead, {
|
|
43
|
+
matched: matched,
|
|
44
|
+
labels: lineProps.labels
|
|
45
|
+
}),
|
|
46
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_LineText_cjs_namespaceObject.LineText, {
|
|
47
|
+
parts: line.parts,
|
|
48
|
+
...lineProps
|
|
49
|
+
}),
|
|
50
|
+
badge && /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(external_MarkBadge_cjs_namespaceObject.MarkBadge, {
|
|
51
|
+
...badge
|
|
52
|
+
})
|
|
53
|
+
]
|
|
54
|
+
});
|
|
55
|
+
};
|
|
56
|
+
exports.ConditionLine = __webpack_exports__.ConditionLine;
|
|
57
|
+
for(var __rspack_i in __webpack_exports__)if (-1 === [
|
|
58
|
+
"ConditionLine"
|
|
59
|
+
].indexOf(__rspack_i)) exports[__rspack_i] = __webpack_exports__[__rspack_i];
|
|
60
|
+
Object.defineProperty(exports, '__esModule', {
|
|
61
|
+
value: true
|
|
62
|
+
});
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import { type LineTextProps } from './LineText';
|
|
3
|
+
import { type MarkBadgeProps } from './MarkBadge';
|
|
4
|
+
import type { SentenceLine } from './sentenceTypes';
|
|
5
|
+
export interface ConditionLineProps extends Pick<LineTextProps, 'cells' | 'selectedColumnId' | 'stopOf' | 'labels'> {
|
|
6
|
+
line: SentenceLine;
|
|
7
|
+
badge: MarkBadgeProps | null;
|
|
8
|
+
}
|
|
9
|
+
export declare const ConditionLine: React.FC<ConditionLineProps>;
|
|
10
|
+
//# sourceMappingURL=ConditionLine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ConditionLine.d.ts","sourceRoot":"","sources":["../../src/decision-table/ConditionLine.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,YAAY,CAAC;AAC1D,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAEpD,MAAM,WAAW,kBACf,SAAQ,IAAI,CAAC,aAAa,EAAE,OAAO,GAAG,kBAAkB,GAAG,QAAQ,GAAG,QAAQ,CAAC;IAC/E,IAAI,EAAE,YAAY,CAAC;IACnB,KAAK,EAAE,cAAc,GAAG,IAAI,CAAC;CAC9B;AAGD,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAatD,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from "@uipath/apollo-wind";
|
|
3
|
+
import { LineLead } from "./LineLead.js";
|
|
4
|
+
import { LineText } from "./LineText.js";
|
|
5
|
+
import { MarkBadge } from "./MarkBadge.js";
|
|
6
|
+
import { LINE_CLASS, MATCHED_LINE_CLASS } from "./sentenceStyles.js";
|
|
7
|
+
const ConditionLine = ({ line, badge, ...lineProps })=>{
|
|
8
|
+
const matched = lineProps.cells?.[line.columnId]?.matched;
|
|
9
|
+
return /*#__PURE__*/ jsxs("li", {
|
|
10
|
+
className: cn(LINE_CLASS, MATCHED_LINE_CLASS),
|
|
11
|
+
"data-column-id": line.columnId,
|
|
12
|
+
"data-matched": matched,
|
|
13
|
+
children: [
|
|
14
|
+
/*#__PURE__*/ jsx(LineLead, {
|
|
15
|
+
matched: matched,
|
|
16
|
+
labels: lineProps.labels
|
|
17
|
+
}),
|
|
18
|
+
/*#__PURE__*/ jsx(LineText, {
|
|
19
|
+
parts: line.parts,
|
|
20
|
+
...lineProps
|
|
21
|
+
}),
|
|
22
|
+
badge && /*#__PURE__*/ jsx(MarkBadge, {
|
|
23
|
+
...badge
|
|
24
|
+
})
|
|
25
|
+
]
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
export { ConditionLine };
|