@octaviaflow/core 3.0.18-beta.25 → 3.0.18-beta.26
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 +0 -2
- package/dist/workflow/components/FxPanel/FxPanel.d.ts.map +1 -1
- package/dist/workflow.cjs +2 -31
- package/dist/workflow.cjs.map +1 -1
- package/dist/workflow.js +2 -34
- package/dist/workflow.js.map +1 -1
- package/package.json +1 -1
|
@@ -16,8 +16,6 @@ export interface FxPanelItem {
|
|
|
16
16
|
description?: string;
|
|
17
17
|
/** Data type — renders a colour-coded badge. Source-Data fields only. */
|
|
18
18
|
valueType?: FxValueType;
|
|
19
|
-
/** Sample value preview, shown dimmed at the end of the row. */
|
|
20
|
-
preview?: string;
|
|
21
19
|
/**
|
|
22
20
|
* Nested children. When present the item renders as an expandable
|
|
23
21
|
* branch — this is what powers the n-th-level Source-Data tree.
|
|
@@ -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,
|
|
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;AAYf,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,EA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AAC,KACtB,IAAI,CAAC;IACV,4DAA4D;IAC5D,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,eAAe,KAAK,IAAI,CAAC;IACtE,qCAAqC;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yEAAyE;IACzE,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,sCAAsC;IACtC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,KAAK,CAAC,EAAE,aAAa,CAAC;CACvB;AA8ED,wBAAgB,OAAO,CAAC,EACtB,UAAU,EACV,KAAiB,EACjB,IAKC,EACD,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,2CA8ad"}
|
package/dist/workflow.cjs
CHANGED
|
@@ -3694,15 +3694,7 @@ function FxPanel({
|
|
|
3694
3694
|
});
|
|
3695
3695
|
};
|
|
3696
3696
|
const [draggingId, setDraggingId] = (0, import_react16.useState)(null);
|
|
3697
|
-
const [copiedId, setCopiedId] = (0, import_react16.useState)(null);
|
|
3698
3697
|
const [focusedId, setFocusedId] = (0, import_react16.useState)(null);
|
|
3699
|
-
const copyTimer = (0, import_react16.useRef)(null);
|
|
3700
|
-
(0, import_react16.useEffect)(
|
|
3701
|
-
() => () => {
|
|
3702
|
-
if (copyTimer.current) clearTimeout(copyTimer.current);
|
|
3703
|
-
},
|
|
3704
|
-
[]
|
|
3705
|
-
);
|
|
3706
3698
|
const hits = (0, import_react16.useMemo)(() => {
|
|
3707
3699
|
if (!query) return null;
|
|
3708
3700
|
const all = [];
|
|
@@ -3727,13 +3719,6 @@ function FxPanel({
|
|
|
3727
3719
|
e.dataTransfer.effectAllowed = "copy";
|
|
3728
3720
|
}
|
|
3729
3721
|
};
|
|
3730
|
-
const handleCopy = (item) => {
|
|
3731
|
-
if (!item.insertValue || typeof navigator === "undefined") return;
|
|
3732
|
-
void navigator.clipboard?.writeText(item.insertValue);
|
|
3733
|
-
setCopiedId(item.id);
|
|
3734
|
-
if (copyTimer.current) clearTimeout(copyTimer.current);
|
|
3735
|
-
copyTimer.current = setTimeout(() => setCopiedId(null), 1400);
|
|
3736
|
-
};
|
|
3737
3722
|
const listRef = (0, import_react16.useRef)(null);
|
|
3738
3723
|
const focusRow = (id) => {
|
|
3739
3724
|
setFocusedId(id);
|
|
@@ -3845,27 +3830,13 @@ function FxPanel({
|
|
|
3845
3830
|
),
|
|
3846
3831
|
children: item.valueType
|
|
3847
3832
|
}
|
|
3848
|
-
)
|
|
3849
|
-
item.preview !== void 0 && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "ods-flow-fx-panel__preview", title: item.preview, children: item.preview })
|
|
3833
|
+
)
|
|
3850
3834
|
] }),
|
|
3851
3835
|
(item.description || crumb) && /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("span", { className: "ods-flow-fx-panel__row-sub", children: [
|
|
3852
3836
|
crumb && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { className: "ods-flow-fx-panel__crumb", children: crumb }),
|
|
3853
3837
|
item.description
|
|
3854
3838
|
] })
|
|
3855
|
-
] })
|
|
3856
|
-
item.insertValue && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(
|
|
3857
|
-
"button",
|
|
3858
|
-
{
|
|
3859
|
-
type: "button",
|
|
3860
|
-
className: "ods-flow-fx-panel__copy",
|
|
3861
|
-
"aria-label": `Copy ${item.label}`,
|
|
3862
|
-
onClick: (e) => {
|
|
3863
|
-
e.stopPropagation();
|
|
3864
|
-
handleCopy(item);
|
|
3865
|
-
},
|
|
3866
|
-
children: copiedId === item.id ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_icons2.CheckmarkIcon, { size: "sm" }) : /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_icons2.CopyIcon, { size: "sm" })
|
|
3867
|
-
}
|
|
3868
|
-
)
|
|
3839
|
+
] })
|
|
3869
3840
|
]
|
|
3870
3841
|
},
|
|
3871
3842
|
item.id
|