@datatechsolutions/ui 2.11.22 → 2.11.24

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.
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
  import '../chunk-JB6RNAD2.mjs';
3
3
  export { topologicalSortAgents, validateWorkflowGraph } from '../chunk-BLNXRUC4.mjs';
4
- import { Workspace, useModalStore, CATEGORY_COLORS, CATEGORY_PILL_COLORS, ICON_MAP, WorkflowCanvas, getEntityIcon, getEntityGradient, useWorkflowStore, LOGIC_ICON_MAP, LOGIC_NODE_GRADIENTS, getFrameworkMeta, getCompatibleModels, isModelCompatibleWithFramework, FRAMEWORK_META, isFrameworkCompatibleWithProviders } from '../chunk-CU3L2357.mjs';
5
- export { AgentFlowNode, AgentToolFlowNode, AnswerFlowNode, AnthropicIcon, CodeFlowNode, CrewAIIcon, DocumentExtractorFlowNode, EndFlowNode, EntityFlowNode, FRAMEWORK_META, GoogleADKIcon, GroupFlowNode, HttpRequestFlowNode, 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, Workspace, getCompatibleModels, getDefaultFrameworkForModel, getEntityBadgeColor, getEntityGradient, getEntityHandleColor, getEntityIcon, getEntityMinimapColor, getFrameworkMeta, getNodeExecutionAccent, getNodeExecutionAccentRgb, isModelCompatibleWithFramework, useModalStore, useWorkflowBuilderClient, useWorkflowBuilderClientOptional, useWorkflowStore } from '../chunk-CU3L2357.mjs';
6
- import { SettingsDialog, GlassModalShell, Button, FormInput, FormTextarea, GlassFormModal, Input, DynamicIslandConfirm } from '../chunk-23247RGB.mjs';
4
+ import { Workspace, useModalStore, CATEGORY_COLORS, CATEGORY_PILL_COLORS, ICON_MAP, WorkflowCanvas, getEntityIcon, getEntityGradient, useWorkflowStore, LOGIC_ICON_MAP, LOGIC_NODE_GRADIENTS, getFrameworkMeta, getCompatibleModels, isModelCompatibleWithFramework, FRAMEWORK_META, isFrameworkCompatibleWithProviders } from '../chunk-CCGSQQUV.mjs';
5
+ export { AgentFlowNode, AgentToolFlowNode, AnswerFlowNode, AnthropicIcon, CodeFlowNode, CrewAIIcon, DocumentExtractorFlowNode, EndFlowNode, EntityFlowNode, FRAMEWORK_META, GoogleADKIcon, GroupFlowNode, HttpRequestFlowNode, 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, Workspace, getCompatibleModels, getDefaultFrameworkForModel, getEntityBadgeColor, getEntityGradient, getEntityHandleColor, getEntityIcon, getEntityMinimapColor, getFrameworkMeta, getNodeExecutionAccent, getNodeExecutionAccentRgb, isModelCompatibleWithFramework, useModalStore, useWorkflowBuilderClient, useWorkflowBuilderClientOptional, useWorkflowStore } from '../chunk-CCGSQQUV.mjs';
6
+ import { SettingsDialog, GlassModalShell, Button, FormInput, FormTextarea, ToggleSwitch, GlassFormModal, Input, DynamicIslandConfirm } from '../chunk-5WO4JIBL.mjs';
7
7
  import '../chunk-QWG2FMUN.mjs';
8
8
  import '../chunk-D2JF6C3E.mjs';
9
9
  export { GraphNodeBadge, GraphNodeHeader, GraphNodeIconBubble, GraphNodeMeta } from '../chunk-OZNTQROP.mjs';
@@ -684,7 +684,26 @@ function ToolsTab({ agentTools, enabledToolIds, onToggle, agentFramework, t }) {
684
684
  ] }, framework);
685
685
  }) })
686
686
  ] }),
687
- /* @__PURE__ */ jsx("div", { className: `flex h-5 w-5 shrink-0 items-center justify-center rounded-full transition-all ${isEnabled ? "bg-amber-500 text-white" : "border border-gray-300 dark:border-gray-600"}`, children: isEnabled && /* @__PURE__ */ jsx(CheckIcon, { className: "h-3 w-3" }) })
687
+ /* @__PURE__ */ jsx("div", { className: `flex h-5 w-5 shrink-0 items-center justify-center rounded-full transition-all ${isEnabled ? "bg-amber-500 text-white" : "border border-gray-300 dark:border-gray-600"}`, children: isEnabled && /* @__PURE__ */ jsx(CheckIcon, { className: "h-3 w-3" }) }),
688
+ /* @__PURE__ */ jsx(
689
+ "div",
690
+ {
691
+ className: "shrink-0",
692
+ onClick: (event) => {
693
+ event.stopPropagation();
694
+ },
695
+ children: /* @__PURE__ */ jsx(
696
+ ToggleSwitch,
697
+ {
698
+ checked: isEnabled,
699
+ onChange: () => onToggle(tool.agentToolId),
700
+ disabled: !isCompatible,
701
+ size: "sm",
702
+ label: `${tool.name} enabled`
703
+ }
704
+ )
705
+ }
706
+ )
688
707
  ]
689
708
  },
690
709
  tool.agentToolId
@@ -1539,7 +1558,17 @@ function NodePalette({ agents, tools, agentTools = [], rules, entities = [], mod
1539
1558
  /* @__PURE__ */ jsx("p", { className: "truncate text-xs font-medium text-gray-900 dark:text-white", children: tool.name }),
1540
1559
  /* @__PURE__ */ jsx("p", { className: "truncate text-[10px] text-gray-400 dark:text-gray-500", children: tool.category })
1541
1560
  ] }),
1542
- !tool.enabled && /* @__PURE__ */ jsx("span", { className: "rounded-full bg-gray-100 px-1.5 py-0.5 text-[9px] font-medium text-gray-500 dark:bg-white/10 dark:text-gray-400", children: "off" })
1561
+ /* @__PURE__ */ jsx(
1562
+ ToggleSwitch,
1563
+ {
1564
+ checked: Boolean(tool.enabled),
1565
+ onChange: () => {
1566
+ },
1567
+ disabled: true,
1568
+ size: "sm",
1569
+ label: `${tool.name} enabled`
1570
+ }
1571
+ )
1543
1572
  ]
1544
1573
  },
1545
1574
  tool.toolId
@@ -1569,7 +1598,17 @@ function NodePalette({ agents, tools, agentTools = [], rules, entities = [], mod
1569
1598
  String(rule.priority ?? "")
1570
1599
  ] })
1571
1600
  ] }),
1572
- !rule.enabled && /* @__PURE__ */ jsx("span", { className: "rounded-full bg-gray-100 px-1.5 py-0.5 text-[9px] font-medium text-gray-500 dark:bg-white/10 dark:text-gray-400", children: "off" })
1601
+ /* @__PURE__ */ jsx(
1602
+ ToggleSwitch,
1603
+ {
1604
+ checked: Boolean(rule.enabled),
1605
+ onChange: () => {
1606
+ },
1607
+ disabled: true,
1608
+ size: "sm",
1609
+ label: `${rule.name} enabled`
1610
+ }
1611
+ )
1573
1612
  ]
1574
1613
  },
1575
1614
  rule.ruleId
@@ -1612,6 +1651,20 @@ function NodePalette({ agents, tools, agentTools = [], rules, entities = [], mod
1612
1651
  " ",
1613
1652
  t("entityFieldsLabel")
1614
1653
  ] })
1654
+ ] }),
1655
+ /* @__PURE__ */ jsxs("div", { className: "flex items-center gap-2", children: [
1656
+ /* @__PURE__ */ jsx("span", { className: "rounded-full bg-slate-100 px-1.5 py-0.5 text-[9px] font-medium text-slate-600 dark:bg-white/10 dark:text-slate-300", children: "Read only" }),
1657
+ /* @__PURE__ */ jsx(
1658
+ ToggleSwitch,
1659
+ {
1660
+ checked: true,
1661
+ onChange: () => {
1662
+ },
1663
+ disabled: true,
1664
+ size: "sm",
1665
+ label: `${entity.label} read only`
1666
+ }
1667
+ )
1615
1668
  ] })
1616
1669
  ]
1617
1670
  },