@datatechsolutions/ui 2.11.36 → 2.11.38
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/astrlabe/index.js +143 -143
- package/dist/astrlabe/index.mjs +6 -6
- package/dist/astrlabe/workflow-canvas.js +4 -4
- package/dist/astrlabe/workflow-canvas.mjs +3 -3
- package/dist/{chunk-KEUOCEOO.js → chunk-2IOPJ5BM.js} +3 -3
- package/dist/{chunk-KEUOCEOO.js.map → chunk-2IOPJ5BM.js.map} +1 -1
- package/dist/{chunk-OCGSU63W.mjs → chunk-4RCCAZMR.mjs} +44 -40
- package/dist/chunk-4RCCAZMR.mjs.map +1 -0
- package/dist/{chunk-DNGI4ASL.mjs → chunk-MDD6H63O.mjs} +3 -3
- package/dist/{chunk-DNGI4ASL.mjs.map → chunk-MDD6H63O.mjs.map} +1 -1
- package/dist/{chunk-UURRO37B.js → chunk-TE4XMF4F.js} +89 -85
- package/dist/chunk-TE4XMF4F.js.map +1 -0
- package/dist/index.js +718 -718
- package/dist/index.mjs +2 -2
- package/package.json +1 -1
- package/dist/chunk-OCGSU63W.mjs.map +0 -1
- package/dist/chunk-UURRO37B.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { ToggleSwitch, GlassModal, ContextMenu, FormInput, FormSelect, FormTextarea, Button, IconButton } from './chunk-
|
|
2
|
+
import { ToggleSwitch, GlassModal, ContextMenu, FormInput, FormSelect, FormTextarea, Button, IconButton } from './chunk-MDD6H63O.mjs';
|
|
3
3
|
import { useTranslations, I18nProvider, createI18nFromMessages } from './chunk-7VJ7CMMT.mjs';
|
|
4
4
|
import { GraphNodeHeader, GraphNodeMeta, GraphNodeBadge, GraphNodeIconBubble } from './chunk-OZNTQROP.mjs';
|
|
5
5
|
import { getAgentTier, createDefaultLogicNodeConfig, applyDagreLayout } from './chunk-TLPPVL3W.mjs';
|
|
@@ -2860,48 +2860,52 @@ var DatasourceFlowNode = memo(function DatasourceFlowNode2({ id, data, selected
|
|
|
2860
2860
|
}
|
|
2861
2861
|
const columnCount = config.selectedColumns?.length ?? 0;
|
|
2862
2862
|
const filterCount = config.filterVariables ? Object.keys(config.filterVariables).length : 0;
|
|
2863
|
-
const visibleColumns = config.selectedColumns.slice(0, 3);
|
|
2864
|
-
const filterEntries = Object.entries(config.filterVariables ?? {});
|
|
2865
2863
|
const content = /* @__PURE__ */ jsxs(NodeCard, { compact: isCompact, selected, nodeType: "datasource", children: [
|
|
2866
|
-
/* @__PURE__ */ jsxs("div", { className: "flex items-start
|
|
2867
|
-
/* @__PURE__ */
|
|
2868
|
-
|
|
2869
|
-
/* @__PURE__ */
|
|
2870
|
-
|
|
2871
|
-
|
|
2872
|
-
|
|
2873
|
-
|
|
2864
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-start justify-between", children: [
|
|
2865
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-start gap-3", children: [
|
|
2866
|
+
/* @__PURE__ */ jsx("div", { className: "flex h-10 w-10 items-center justify-center rounded-xl bg-gradient-to-br from-cyan-500 to-blue-600 shadow-lg", children: /* @__PURE__ */ jsx(ServerStackIcon, { className: "h-5 w-5 text-white" }) }),
|
|
2867
|
+
/* @__PURE__ */ jsxs("div", { className: "min-w-0 flex-1", children: [
|
|
2868
|
+
/* @__PURE__ */ jsx("h3", { className: "text-sm font-semibold text-gray-900 dark:text-white", children: label }),
|
|
2869
|
+
!isCompact && /* @__PURE__ */ jsxs("p", { className: "mt-0.5 line-clamp-1 text-xs text-gray-500 dark:text-gray-400", children: [
|
|
2870
|
+
datasource?.name ?? config.datasourceId,
|
|
2871
|
+
" \xB7 ",
|
|
2872
|
+
config.table
|
|
2873
|
+
] })
|
|
2874
2874
|
] })
|
|
2875
|
-
] })
|
|
2875
|
+
] }),
|
|
2876
|
+
!readOnly && /* @__PURE__ */ jsx(
|
|
2877
|
+
"span",
|
|
2878
|
+
{
|
|
2879
|
+
className: "nodrag nopan",
|
|
2880
|
+
onClick: (event) => {
|
|
2881
|
+
event.stopPropagation();
|
|
2882
|
+
event.preventDefault();
|
|
2883
|
+
},
|
|
2884
|
+
children: /* @__PURE__ */ jsx(
|
|
2885
|
+
ToggleSwitch,
|
|
2886
|
+
{
|
|
2887
|
+
checked: true,
|
|
2888
|
+
onChange: () => {
|
|
2889
|
+
},
|
|
2890
|
+
disabled: true,
|
|
2891
|
+
size: "sm",
|
|
2892
|
+
color: "teal",
|
|
2893
|
+
label: `${label} connected`
|
|
2894
|
+
}
|
|
2895
|
+
)
|
|
2896
|
+
}
|
|
2897
|
+
)
|
|
2876
2898
|
] }),
|
|
2877
2899
|
/* @__PURE__ */ jsxs(NodeCardMeta, { compact: isCompact, children: [
|
|
2878
|
-
/* @__PURE__ */ jsxs("div", { className: "flex
|
|
2879
|
-
config.dialect && /* @__PURE__ */ jsx(NodeCardBadge, { className: "inline-flex items-center rounded-full px-2 py-0.5 text-[10px] font-semibold bg-cyan-100 text-cyan-700 dark:bg-cyan-
|
|
2880
|
-
readOnly && /* @__PURE__ */ jsx(NodeCardBadge, { className: "inline-flex items-center rounded-full px-2 py-0.5 text-[10px] font-medium bg-slate-100 text-slate-
|
|
2881
|
-
|
|
2882
|
-
columnCount,
|
|
2883
|
-
|
|
2884
|
-
|
|
2885
|
-
] })
|
|
2886
|
-
config.limit > 0 && /* @__PURE__ */ jsx("span", { className: "text-[10px] text-gray-400 dark:text-gray-500", children: t("datasourceLimit", { count: config.limit }) }),
|
|
2887
|
-
filterCount > 0 && /* @__PURE__ */ jsxs("span", { className: "text-[10px] text-gray-400 dark:text-gray-500", children: [
|
|
2888
|
-
filterCount,
|
|
2889
|
-
" ",
|
|
2890
|
-
t("datasourceFilters")
|
|
2891
|
-
] })
|
|
2892
|
-
] }),
|
|
2893
|
-
!isCompact && /* @__PURE__ */ jsxs("div", { className: "mt-2 space-y-1", children: [
|
|
2894
|
-
/* @__PURE__ */ jsxs("p", { className: "truncate text-[10px] text-gray-500 dark:text-gray-400", children: [
|
|
2895
|
-
config.table,
|
|
2896
|
-
" \u2192 ",
|
|
2897
|
-
config.outputVariable
|
|
2898
|
-
] }),
|
|
2899
|
-
/* @__PURE__ */ jsxs("p", { className: "truncate text-[10px] text-gray-400 dark:text-gray-500", children: [
|
|
2900
|
-
visibleColumns.join(", "),
|
|
2901
|
-
columnCount > visibleColumns.length ? ` +${columnCount - visibleColumns.length} more` : ""
|
|
2902
|
-
] })
|
|
2900
|
+
/* @__PURE__ */ jsxs("div", { className: "flex items-center gap-1.5", children: [
|
|
2901
|
+
config.dialect && /* @__PURE__ */ jsx(NodeCardBadge, { className: "inline-flex items-center rounded-full px-2 py-0.5 text-[10px] font-semibold bg-cyan-100 text-cyan-700 dark:bg-cyan-400/15 dark:text-cyan-400", children: config.dialect }),
|
|
2902
|
+
readOnly && /* @__PURE__ */ jsx(NodeCardBadge, { className: "inline-flex items-center rounded-full px-2 py-0.5 text-[10px] font-medium bg-slate-100 text-slate-600 dark:bg-slate-500/20 dark:text-slate-400", children: "sample" }),
|
|
2903
|
+
/* @__PURE__ */ jsx("span", { className: "text-[10px] text-gray-400 dark:text-gray-500", children: [
|
|
2904
|
+
columnCount > 0 ? `${columnCount} cols` : null,
|
|
2905
|
+
filterCount > 0 ? `${filterCount} filters` : null,
|
|
2906
|
+
config.limit > 0 ? `\u2264${config.limit}` : null
|
|
2907
|
+
].filter(Boolean).join(" \xB7 ") })
|
|
2903
2908
|
] }),
|
|
2904
|
-
!isCompact && filterEntries.length > 0 && /* @__PURE__ */ jsx("p", { className: "mt-2 truncate text-[10px] text-cyan-700 dark:text-cyan-300", children: filterEntries.map(([field, variableName]) => `${field} \u2192 ${variableName}`).join(" \xB7 ") }),
|
|
2905
2909
|
onRemoveFromCanvas && /* @__PURE__ */ jsx(
|
|
2906
2910
|
"span",
|
|
2907
2911
|
{
|
|
@@ -7619,5 +7623,5 @@ function Workspace({
|
|
|
7619
7623
|
}
|
|
7620
7624
|
|
|
7621
7625
|
export { AgentFlowNode, AgentToolFlowNode, AnswerFlowNode, AnthropicIcon, CATEGORY_COLORS, CATEGORY_PILL_COLORS, CodeFlowNode, CrewAIIcon, DocumentExtractorFlowNode, EndFlowNode, EntityFlowNode, FRAMEWORK_META, GoogleADKIcon, GroupFlowNode, HttpRequestFlowNode, ICON_MAP, IfElseFlowNode, IterationFlowNode, IterationStartFlowNode, KnowledgeBaseFlowNode, LOGIC_ICON_MAP, LOGIC_NODE_BADGE_COLORS, LOGIC_NODE_GRADIENTS, LOGIC_NODE_HANDLE_COLORS, LangChainIcon, ListOperatorFlowNode, LogicNodeModal, MINIMAP_NODE_COLORS, ModelProviderFlowNode, NODE_EXECUTION_ACCENT_COLORS, NodeCard, NodeContextMenu, NoteFlowNode, OpenAIIcon, PanelContextMenu, ParameterExtractorFlowNode, QuestionClassifierFlowNode, RuleFlowNode, SelectionContextMenu, StartFlowNode, StrandsIcon, TemplateTransformFlowNode, ToolFlowNode, VariableAggregatorFlowNode, VariableAssignerFlowNode, WorkflowBuilderProvider, WorkflowCanvas, Workspace, getCompatibleModels, getDefaultFrameworkForModel, getEntityBadgeColor, getEntityGradient, getEntityHandleColor, getEntityIcon, getEntityMinimapColor, getFrameworkMeta, getNodeExecutionAccent, getNodeExecutionAccentRgb, isFrameworkCompatibleWithProviders, isModelCompatibleWithFramework, useModalStore, useWorkflowBuilderClient, useWorkflowBuilderClientOptional, useWorkflowStore };
|
|
7622
|
-
//# sourceMappingURL=chunk-
|
|
7623
|
-
//# sourceMappingURL=chunk-
|
|
7626
|
+
//# sourceMappingURL=chunk-4RCCAZMR.mjs.map
|
|
7627
|
+
//# sourceMappingURL=chunk-4RCCAZMR.mjs.map
|