@octaviaflow/core 3.1.0-beta.100 → 3.1.0-beta.101
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/styles.css +1 -1
- package/dist/workflow/components/FxPanel/FxPanel.d.ts.map +1 -1
- package/dist/workflow.cjs +70 -46
- package/dist/workflow.cjs.map +1 -1
- package/dist/workflow.js +72 -47
- package/dist/workflow.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FxPanel.d.ts","sourceRoot":"","sources":["../../../../src/workflow/components/FxPanel/FxPanel.tsx"],"names":[],"mappings":"AAiBA,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,SAAS,EAEd,KAAK,SAAS,EAIf,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"FxPanel.d.ts","sourceRoot":"","sources":["../../../../src/workflow/components/FxPanel/FxPanel.tsx"],"names":[],"mappings":"AAiBA,OAAO,EACL,KAAK,aAAa,EAClB,KAAK,SAAS,EAEd,KAAK,SAAS,EAIf,MAAM,OAAO,CAAC;AAef,MAAM,MAAM,UAAU,GAAG,UAAU,GAAG,UAAU,CAAC;AAEjD,wEAAwE;AACxE,MAAM,MAAM,WAAW,GACnB,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,QAAQ,GACR,OAAO,GACP,MAAM,GACN,KAAK,CAAC;AAEV,MAAM,WAAW,WAAW;IAC1B,2CAA2C;IAC3C,EAAE,EAAE,MAAM,CAAC;IACX,yEAAyE;IACzE,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,wDAAwD;IACxD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,yEAAyE;IACzE,SAAS,CAAC,EAAE,WAAW,CAAC;IACxB;;;OAGG;IACH,QAAQ,CAAC,EAAE,WAAW,EAAE,CAAC;CAC1B;AAED,MAAM,WAAW,eAAe;IAC9B,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EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AAgFD,wBAAgB,OAAO,CAAC,EACtB,UAAU,EACV,KAAyB,EACzB,IAA0D,EAC1D,MAAM,EAAE,gBAAgB,EACxB,aAAkB,EAClB,cAAc,EACd,gBAAgB,EAAE,kBAAkB,EACpC,uBAAuB,EACvB,wBAAwB,EACxB,OAAO,EACP,eAAe,EACf,YAAY,EACZ,KAAW,EACX,UAAyB,EACzB,iBAA2D,EAC3D,SAAS,EACT,KAAK,GACN,EAAE,YAAY,2CA+cd"}
|
package/dist/workflow.cjs
CHANGED
|
@@ -10511,53 +10511,77 @@ function FxPanel({
|
|
|
10511
10511
|
const mono = category.kind === "function";
|
|
10512
10512
|
const draggable = !!item.insertValue;
|
|
10513
10513
|
const isFocused = focusedId === item.id;
|
|
10514
|
-
|
|
10515
|
-
"
|
|
10516
|
-
|
|
10517
|
-
|
|
10518
|
-
|
|
10519
|
-
|
|
10520
|
-
|
|
10521
|
-
|
|
10522
|
-
|
|
10514
|
+
const tip = /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("span", { className: "ods-flow-fx-panel__tip", children: [
|
|
10515
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("span", { className: "ods-flow-fx-panel__tip-head", children: [
|
|
10516
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
10517
|
+
"span",
|
|
10518
|
+
{
|
|
10519
|
+
className: cn(
|
|
10520
|
+
"ods-flow-fx-panel__tip-label",
|
|
10521
|
+
mono && "ods-flow-fx-panel__tip-label--mono"
|
|
10522
|
+
),
|
|
10523
|
+
children: item.label
|
|
10524
|
+
}
|
|
10523
10525
|
),
|
|
10524
|
-
|
|
10525
|
-
|
|
10526
|
-
|
|
10527
|
-
|
|
10528
|
-
|
|
10529
|
-
|
|
10530
|
-
|
|
10531
|
-
|
|
10532
|
-
|
|
10533
|
-
|
|
10534
|
-
|
|
10535
|
-
|
|
10536
|
-
|
|
10537
|
-
|
|
10538
|
-
|
|
10539
|
-
|
|
10540
|
-
|
|
10541
|
-
|
|
10542
|
-
|
|
10543
|
-
|
|
10544
|
-
|
|
10545
|
-
|
|
10546
|
-
|
|
10547
|
-
|
|
10548
|
-
|
|
10549
|
-
|
|
10550
|
-
|
|
10551
|
-
|
|
10552
|
-
|
|
10553
|
-
|
|
10554
|
-
|
|
10555
|
-
|
|
10556
|
-
|
|
10557
|
-
|
|
10558
|
-
|
|
10559
|
-
|
|
10560
|
-
|
|
10526
|
+
item.valueType && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "ods-flow-fx-panel__tip-type", children: item.valueType })
|
|
10527
|
+
] }),
|
|
10528
|
+
item.description && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "ods-flow-fx-panel__tip-desc", children: item.description }),
|
|
10529
|
+
item.insertValue && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "ods-flow-fx-panel__tip-ref", children: item.insertValue })
|
|
10530
|
+
] });
|
|
10531
|
+
return /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
10532
|
+
Tooltip,
|
|
10533
|
+
{
|
|
10534
|
+
content: tip,
|
|
10535
|
+
position: "left",
|
|
10536
|
+
disabled: !item.description && !item.insertValue,
|
|
10537
|
+
children: /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)(
|
|
10538
|
+
"div",
|
|
10539
|
+
{
|
|
10540
|
+
"data-fx-row": item.id,
|
|
10541
|
+
className: cn(
|
|
10542
|
+
"ods-flow-fx-panel__row",
|
|
10543
|
+
hasChildren ? "ods-flow-fx-panel__row--branch" : "ods-flow-fx-panel__row--leaf",
|
|
10544
|
+
draggingId === item.id && "ods-flow-fx-panel__row--dragging",
|
|
10545
|
+
isFocused && "ods-flow-fx-panel__row--focused"
|
|
10546
|
+
),
|
|
10547
|
+
role: "treeitem",
|
|
10548
|
+
"aria-expanded": hasChildren ? expanded : void 0,
|
|
10549
|
+
"aria-level": depth + 1,
|
|
10550
|
+
tabIndex: isFocused || focusedId === null && rows[0]?.item.id === item.id ? 0 : -1,
|
|
10551
|
+
draggable,
|
|
10552
|
+
onDragStart: draggable ? handleDragStart(item, category) : void 0,
|
|
10553
|
+
onDragEnd: () => setDraggingId(null),
|
|
10554
|
+
onFocus: () => setFocusedId(item.id),
|
|
10555
|
+
onKeyDown: (e) => onRowKeyDown(e, rows, row, category),
|
|
10556
|
+
onClick: () => {
|
|
10557
|
+
if (hasChildren) toggleItem(item.id);
|
|
10558
|
+
else onItemSelect?.(item, category);
|
|
10559
|
+
},
|
|
10560
|
+
children: [
|
|
10561
|
+
Array.from({ length: depth }, (_, i) => /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "ods-flow-fx-panel__indent", "aria-hidden": "true" }, i)),
|
|
10562
|
+
hasChildren ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "ods-flow-fx-panel__twisty", "aria-hidden": "true", children: expanded ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_icons14.ChevronDownIcon, { size: "sm" }) : /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_icons14.ChevronRightIcon, { size: "sm" }) }) : /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "ods-flow-fx-panel__grip", "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(import_icons14.DraggableIcon, { size: "sm" }) }),
|
|
10563
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("span", { className: "ods-flow-fx-panel__row-main", children: [
|
|
10564
|
+
/* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("span", { className: "ods-flow-fx-panel__row-line", children: [
|
|
10565
|
+
mono ? /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("code", { className: "ods-flow-fx-panel__row-label ods-flow-fx-panel__row-label--mono", children: item.label }) : /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "ods-flow-fx-panel__row-label", children: item.label }),
|
|
10566
|
+
item.valueType && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)(
|
|
10567
|
+
"span",
|
|
10568
|
+
{
|
|
10569
|
+
className: cn(
|
|
10570
|
+
"ods-flow-fx-panel__type",
|
|
10571
|
+
`ods-flow-fx-panel__type--${item.valueType}`
|
|
10572
|
+
),
|
|
10573
|
+
children: item.valueType
|
|
10574
|
+
}
|
|
10575
|
+
)
|
|
10576
|
+
] }),
|
|
10577
|
+
(item.description || crumb) && /* @__PURE__ */ (0, import_jsx_runtime30.jsxs)("span", { className: "ods-flow-fx-panel__row-sub", children: [
|
|
10578
|
+
crumb && /* @__PURE__ */ (0, import_jsx_runtime30.jsx)("span", { className: "ods-flow-fx-panel__crumb", children: crumb }),
|
|
10579
|
+
item.description
|
|
10580
|
+
] })
|
|
10581
|
+
] })
|
|
10582
|
+
]
|
|
10583
|
+
}
|
|
10584
|
+
)
|
|
10561
10585
|
},
|
|
10562
10586
|
item.id
|
|
10563
10587
|
);
|