@uipath/apollo-react 3.49.0 → 3.50.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/ButtonHandle/ButtonHandle.cjs +11 -7
- package/dist/canvas/components/ButtonHandle/ButtonHandle.d.ts.map +1 -1
- package/dist/canvas/components/ButtonHandle/ButtonHandle.js +12 -8
- package/dist/material/components/ap-button/ApButton.cjs +9 -4
- package/dist/material/components/ap-button/ApButton.d.ts.map +1 -1
- package/dist/material/components/ap-button/ApButton.js +9 -4
- package/dist/material/components/ap-tool-call/locales/ro.json +1 -1
- package/package.json +1 -1
|
@@ -165,13 +165,17 @@ const ButtonHandleBase = ({ id, nodeId, type, position, handleType, label, label
|
|
|
165
165
|
$selected: selected,
|
|
166
166
|
$size: label ? '60px' : '16px'
|
|
167
167
|
}),
|
|
168
|
-
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
168
|
+
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(components_index_cjs_namespaceObject.ApTooltip, {
|
|
169
|
+
content: "Add node",
|
|
170
|
+
placement: "bottom",
|
|
171
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("div", {
|
|
172
|
+
className: "nodrag nopan",
|
|
173
|
+
style: {
|
|
174
|
+
pointerEvents: 'auto'
|
|
175
|
+
},
|
|
176
|
+
children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(AddButton, {
|
|
177
|
+
onAction: handleButtonClick
|
|
178
|
+
})
|
|
175
179
|
})
|
|
176
180
|
})
|
|
177
181
|
]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ButtonHandle.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/ButtonHandle/ButtonHandle.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,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C;IACX,IAAI,EAAE,QAAQ,GAAG,QAAQ,CAAC;IAC1B,UAAU,EAAE,UAAU,GAAG,OAAO,GAAG,QAAQ,CAAC;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAC5B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oBAAoB,CAAC,EAAE,MAAM,CAAC;IAC9B,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAC;IAC9C,wBAAwB,CAAC,EAAE,mCAAmC,CAAC;CAChE;AA+ED,eAAO,MAAM,aAAa,8LAjEvB;IACD,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,kBAAkB,EAAE,CAAC;IAC9B,QAAQ,EAAE,QAAQ,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,wBAAwB,CAAC,EAAE,mCAAmC,CAAC;IAC/D,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CAAC;IAUpB,qBAAqB,CAAC,EAAE,CAAC,EACvB,aAAa,EACb,QAAQ,GACT,EAAE;QACD,aAAa,EAAE,OAAO,CAAC;QACvB,QAAQ,EAAE,OAAO,CAAC;KACnB,KAAK,OAAO,CAAC;CACf,6CAsCmD,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { FontVariantToken } from "@uipath/apollo-core";
|
|
|
3
3
|
import { Row } from "../../layouts/index.js";
|
|
4
4
|
import { Position } from "../../xyflow/react.js";
|
|
5
5
|
import { ApTypography } from "../../../material/index.js";
|
|
6
|
-
import { ApIcon } from "../../../material/components/index.js";
|
|
6
|
+
import { ApIcon, ApTooltip } from "../../../material/components/index.js";
|
|
7
7
|
import { AnimatePresence } from "motion/react";
|
|
8
8
|
import { memo, useCallback, useMemo, useState } from "react";
|
|
9
9
|
import { canvasEventBus } from "../../utils/CanvasEventBus.js";
|
|
@@ -136,13 +136,17 @@ const ButtonHandleBase = ({ id, nodeId, type, position, handleType, label, label
|
|
|
136
136
|
$selected: selected,
|
|
137
137
|
$size: label ? '60px' : '16px'
|
|
138
138
|
}),
|
|
139
|
-
/*#__PURE__*/ jsx(
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
139
|
+
/*#__PURE__*/ jsx(ApTooltip, {
|
|
140
|
+
content: "Add node",
|
|
141
|
+
placement: "bottom",
|
|
142
|
+
children: /*#__PURE__*/ jsx("div", {
|
|
143
|
+
className: "nodrag nopan",
|
|
144
|
+
style: {
|
|
145
|
+
pointerEvents: 'auto'
|
|
146
|
+
},
|
|
147
|
+
children: /*#__PURE__*/ jsx(AddButton, {
|
|
148
|
+
onAction: handleButtonClick
|
|
149
|
+
})
|
|
146
150
|
})
|
|
147
151
|
})
|
|
148
152
|
]
|
|
@@ -108,7 +108,8 @@ const ApButton = /*#__PURE__*/ external_react_default().forwardRef((props, ref)=
|
|
|
108
108
|
const shouldShowLoadingAsStartIcon = loading && hasStartIcon;
|
|
109
109
|
const shouldShowLoadingAsEndIcon = loading && !hasStartIcon && hasEndIcon;
|
|
110
110
|
const shouldShowLoadingAsLabel = loading && !hasStartIcon && !hasEndIcon;
|
|
111
|
-
const
|
|
111
|
+
const { sx: variantSx, ...restVariantProps } = variantToProps[variant];
|
|
112
|
+
const { sx: userSx, ...restProps } = rest;
|
|
112
113
|
const loadingIndicator = loading ? /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(ButtonLoadingIndicator, {
|
|
113
114
|
"aria-label": label
|
|
114
115
|
}) : null;
|
|
@@ -136,16 +137,20 @@ const ApButton = /*#__PURE__*/ external_react_default().forwardRef((props, ref)=
|
|
|
136
137
|
onBlur: onBlur,
|
|
137
138
|
startIcon: loading && shouldShowLoadingAsStartIcon ? loadingIndicator : startIcon,
|
|
138
139
|
endIcon: loading && shouldShowLoadingAsEndIcon ? loadingIndicator : endIcon,
|
|
139
|
-
...
|
|
140
|
+
...restVariantProps,
|
|
141
|
+
sx: [
|
|
142
|
+
variantSx ?? {},
|
|
143
|
+
userSx ?? {}
|
|
144
|
+
],
|
|
140
145
|
tabIndex: tabIndex ?? (loading ? -1 : void 0),
|
|
141
146
|
"aria-disabled": disabled || loading ? 'true' : void 0,
|
|
142
147
|
"aria-expanded": expanded,
|
|
143
148
|
title: title,
|
|
144
|
-
className: joinClasses(
|
|
149
|
+
className: joinClasses(restVariantProps?.className, loading && 'loading'),
|
|
145
150
|
href: href,
|
|
146
151
|
customSize: size,
|
|
147
152
|
customWidth: widthMode,
|
|
148
|
-
...
|
|
153
|
+
...restProps,
|
|
149
154
|
children: [
|
|
150
155
|
/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)("span", {
|
|
151
156
|
style: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ApButton.d.ts","sourceRoot":"","sources":["../../../../src/material/components/ap-button/ApButton.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,aAAa,EAAkB,MAAM,kBAAkB,CAAC;AAgDtE,eAAO,MAAM,QAAQ,
|
|
1
|
+
{"version":3,"file":"ApButton.d.ts","sourceRoot":"","sources":["../../../../src/material/components/ap-button/ApButton.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,MAAM,OAAO,CAAC;AAG1B,OAAO,KAAK,EAAE,aAAa,EAAkB,MAAM,kBAAkB,CAAC;AAgDtE,eAAO,MAAM,QAAQ,sGAoFnB,CAAC"}
|
|
@@ -68,7 +68,8 @@ const ApButton = /*#__PURE__*/ react.forwardRef((props, ref)=>{
|
|
|
68
68
|
const shouldShowLoadingAsStartIcon = loading && hasStartIcon;
|
|
69
69
|
const shouldShowLoadingAsEndIcon = loading && !hasStartIcon && hasEndIcon;
|
|
70
70
|
const shouldShowLoadingAsLabel = loading && !hasStartIcon && !hasEndIcon;
|
|
71
|
-
const
|
|
71
|
+
const { sx: variantSx, ...restVariantProps } = variantToProps[variant];
|
|
72
|
+
const { sx: userSx, ...restProps } = rest;
|
|
72
73
|
const loadingIndicator = loading ? /*#__PURE__*/ jsx(ButtonLoadingIndicator, {
|
|
73
74
|
"aria-label": label
|
|
74
75
|
}) : null;
|
|
@@ -96,16 +97,20 @@ const ApButton = /*#__PURE__*/ react.forwardRef((props, ref)=>{
|
|
|
96
97
|
onBlur: onBlur,
|
|
97
98
|
startIcon: loading && shouldShowLoadingAsStartIcon ? loadingIndicator : startIcon,
|
|
98
99
|
endIcon: loading && shouldShowLoadingAsEndIcon ? loadingIndicator : endIcon,
|
|
99
|
-
...
|
|
100
|
+
...restVariantProps,
|
|
101
|
+
sx: [
|
|
102
|
+
variantSx ?? {},
|
|
103
|
+
userSx ?? {}
|
|
104
|
+
],
|
|
100
105
|
tabIndex: tabIndex ?? (loading ? -1 : void 0),
|
|
101
106
|
"aria-disabled": disabled || loading ? 'true' : void 0,
|
|
102
107
|
"aria-expanded": expanded,
|
|
103
108
|
title: title,
|
|
104
|
-
className: joinClasses(
|
|
109
|
+
className: joinClasses(restVariantProps?.className, loading && 'loading'),
|
|
105
110
|
href: href,
|
|
106
111
|
customSize: size,
|
|
107
112
|
customWidth: widthMode,
|
|
108
|
-
...
|
|
113
|
+
...restProps,
|
|
109
114
|
children: [
|
|
110
115
|
/*#__PURE__*/ jsx("span", {
|
|
111
116
|
style: {
|