@open-mercato/core 0.5.1-develop.2953.6647bb2c43 → 0.5.1-develop.2954.610bab2d08
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/helpers/integration/salesUi.js +25 -23
- package/dist/helpers/integration/salesUi.js.map +2 -2
- package/dist/modules/api_docs/frontend/docs/api/Explorer.js +24 -24
- package/dist/modules/api_docs/frontend/docs/api/Explorer.js.map +2 -2
- package/dist/modules/attachments/components/AttachmentPartitionSettings.js +15 -7
- package/dist/modules/attachments/components/AttachmentPartitionSettings.js.map +2 -2
- package/dist/modules/attachments/fields/attachment.js +4 -6
- package/dist/modules/attachments/fields/attachment.js.map +2 -2
- package/dist/modules/auth/backend/users/create/page.js +26 -26
- package/dist/modules/auth/backend/users/create/page.js.map +2 -2
- package/dist/modules/business_rules/components/ActionRow.js +36 -25
- package/dist/modules/business_rules/components/ActionRow.js.map +2 -2
- package/dist/modules/business_rules/components/ConditionGroup.js +14 -5
- package/dist/modules/business_rules/components/ConditionGroup.js.map +2 -2
- package/dist/modules/business_rules/components/ConditionRow.js +19 -10
- package/dist/modules/business_rules/components/ConditionRow.js.map +2 -2
- package/dist/modules/business_rules/components/RuleSetMembers.js +16 -10
- package/dist/modules/business_rules/components/RuleSetMembers.js.map +2 -2
- package/dist/modules/catalog/backend/catalog/products/[id]/page.js +30 -34
- package/dist/modules/catalog/backend/catalog/products/[id]/page.js.map +2 -2
- package/dist/modules/catalog/backend/catalog/products/create/page.js +220 -223
- package/dist/modules/catalog/backend/catalog/products/create/page.js.map +2 -2
- package/dist/modules/catalog/components/PriceKindSettings.js +20 -19
- package/dist/modules/catalog/components/PriceKindSettings.js.map +2 -2
- package/dist/modules/catalog/components/products/ProductUomSection.js +42 -37
- package/dist/modules/catalog/components/products/ProductUomSection.js.map +2 -2
- package/dist/modules/catalog/components/products/VariantBuilder.js +22 -18
- package/dist/modules/catalog/components/products/VariantBuilder.js.map +2 -2
- package/dist/modules/customer_accounts/backend/customer_accounts/users/[id]/page.js +18 -26
- package/dist/modules/customer_accounts/backend/customer_accounts/users/[id]/page.js.map +2 -2
- package/dist/modules/customer_accounts/backend/customer_accounts/users/page.js +4 -6
- package/dist/modules/customer_accounts/backend/customer_accounts/users/page.js.map +2 -2
- package/dist/modules/customer_accounts/widgets/injection/account-status/widget.client.js +5 -4
- package/dist/modules/customer_accounts/widgets/injection/account-status/widget.client.js.map +2 -2
- package/dist/modules/customers/backend/config/customers/pipeline-stages/page.js +19 -7
- package/dist/modules/customers/backend/config/customers/pipeline-stages/page.js.map +2 -2
- package/dist/modules/customers/backend/customers/deals/pipeline/page.js +24 -21
- package/dist/modules/customers/backend/customers/deals/pipeline/page.js.map +2 -2
- package/dist/modules/customers/components/AddressEditor.js +24 -7
- package/dist/modules/customers/components/AddressEditor.js.map +2 -2
- package/dist/modules/customers/components/AddressFormatSettings.js +35 -25
- package/dist/modules/customers/components/AddressFormatSettings.js.map +2 -2
- package/dist/modules/customers/components/detail/ActivityForm.js +20 -12
- package/dist/modules/customers/components/detail/ActivityForm.js.map +2 -2
- package/dist/modules/customers/components/detail/AnnualRevenueField.js +2 -2
- package/dist/modules/customers/components/detail/AnnualRevenueField.js.map +2 -2
- package/dist/modules/customers/components/detail/DealForm.js +19 -14
- package/dist/modules/customers/components/detail/DealForm.js.map +2 -2
- package/dist/modules/customers/components/formConfig.js +16 -12
- package/dist/modules/customers/components/formConfig.js.map +2 -2
- package/dist/modules/customers/widgets/dashboard/customer-todos/widget.client.js +3 -2
- package/dist/modules/customers/widgets/dashboard/customer-todos/widget.client.js.map +2 -2
- package/dist/modules/customers/widgets/dashboard/new-customers/widget.client.js +18 -10
- package/dist/modules/customers/widgets/dashboard/new-customers/widget.client.js.map +2 -2
- package/dist/modules/customers/widgets/dashboard/new-deals/widget.client.js +3 -2
- package/dist/modules/customers/widgets/dashboard/new-deals/widget.client.js.map +2 -2
- package/dist/modules/customers/widgets/dashboard/next-interactions/widget.client.js +3 -2
- package/dist/modules/customers/widgets/dashboard/next-interactions/widget.client.js.map +2 -2
- package/dist/modules/dashboards/components/WidgetVisibilityEditor.js +27 -28
- package/dist/modules/dashboards/components/WidgetVisibilityEditor.js.map +2 -2
- package/dist/modules/dashboards/widgets/dashboard/orders-by-status/widget.client.js +14 -6
- package/dist/modules/dashboards/widgets/dashboard/orders-by-status/widget.client.js.map +2 -2
- package/dist/modules/dashboards/widgets/dashboard/revenue-trend/widget.client.js +14 -6
- package/dist/modules/dashboards/widgets/dashboard/revenue-trend/widget.client.js.map +2 -2
- package/dist/modules/dashboards/widgets/dashboard/sales-by-region/widget.client.js +3 -2
- package/dist/modules/dashboards/widgets/dashboard/sales-by-region/widget.client.js.map +2 -2
- package/dist/modules/dashboards/widgets/dashboard/top-customers/widget.client.js +3 -2
- package/dist/modules/dashboards/widgets/dashboard/top-customers/widget.client.js.map +2 -2
- package/dist/modules/dashboards/widgets/dashboard/top-products/widget.client.js +17 -8
- package/dist/modules/dashboards/widgets/dashboard/top-products/widget.client.js.map +2 -2
- package/dist/modules/data_sync/backend/data-sync/page.js +40 -23
- package/dist/modules/data_sync/backend/data-sync/page.js.map +2 -2
- package/dist/modules/data_sync/components/IntegrationScheduleTab.js +15 -6
- package/dist/modules/data_sync/components/IntegrationScheduleTab.js.map +2 -2
- package/dist/modules/dictionaries/components/AppearanceSelector.js +4 -4
- package/dist/modules/dictionaries/components/AppearanceSelector.js.map +2 -2
- package/dist/modules/dictionaries/components/DictionaryEntriesEditor.js +4 -5
- package/dist/modules/dictionaries/components/DictionaryEntriesEditor.js.map +2 -2
- package/dist/modules/dictionaries/components/DictionaryEntrySelect.js +22 -14
- package/dist/modules/dictionaries/components/DictionaryEntrySelect.js.map +2 -2
- package/dist/modules/dictionaries/fields/dictionary.js +18 -13
- package/dist/modules/dictionaries/fields/dictionary.js.map +2 -2
- package/dist/modules/entities/components/EncryptionManager.js +23 -19
- package/dist/modules/entities/components/EncryptionManager.js.map +2 -2
- package/dist/modules/feature_toggles/components/formConfig.js +17 -9
- package/dist/modules/feature_toggles/components/formConfig.js.map +2 -2
- package/dist/modules/feature_toggles/components/overrideFormConfig.js +17 -9
- package/dist/modules/feature_toggles/components/overrideFormConfig.js.map +2 -2
- package/dist/modules/inbox_ops/backend/inbox-ops/settings/page.js +15 -8
- package/dist/modules/inbox_ops/backend/inbox-ops/settings/page.js.map +2 -2
- package/dist/modules/inbox_ops/components/proposals/EditActionDialog.js +37 -22
- package/dist/modules/inbox_ops/components/proposals/EditActionDialog.js.map +2 -2
- package/dist/modules/integrations/backend/integrations/[id]/page.js +22 -17
- package/dist/modules/integrations/backend/integrations/[id]/page.js.map +2 -2
- package/dist/modules/integrations/backend/integrations/bundle/[id]/page.js +12 -6
- package/dist/modules/integrations/backend/integrations/bundle/[id]/page.js.map +2 -2
- package/dist/modules/planner/components/AvailabilityRulesEditor.js +19 -12
- package/dist/modules/planner/components/AvailabilityRulesEditor.js.map +2 -2
- package/dist/modules/resources/components/ResourceCrudForm.js +15 -10
- package/dist/modules/resources/components/ResourceCrudForm.js.map +3 -3
- package/dist/modules/sales/backend/sales/documents/[id]/page.js +15 -18
- package/dist/modules/sales/backend/sales/documents/[id]/page.js.map +2 -2
- package/dist/modules/sales/components/ProviderFieldInput.js +23 -20
- package/dist/modules/sales/components/ProviderFieldInput.js.map +2 -2
- package/dist/modules/sales/components/ShippingMethodsSettings.js +25 -17
- package/dist/modules/sales/components/ShippingMethodsSettings.js.map +3 -3
- package/dist/modules/sales/components/channels/ChannelOfferForm.js +35 -42
- package/dist/modules/sales/components/channels/ChannelOfferForm.js.map +2 -2
- package/dist/modules/sales/components/documents/AddressesSection.js +87 -90
- package/dist/modules/sales/components/documents/AddressesSection.js.map +2 -2
- package/dist/modules/sales/components/documents/AdjustmentDialog.js +17 -6
- package/dist/modules/sales/components/documents/AdjustmentDialog.js.map +3 -3
- package/dist/modules/sales/components/documents/LineItemDialog.js +42 -25
- package/dist/modules/sales/components/documents/LineItemDialog.js.map +2 -2
- package/dist/modules/sales/components/documents/SalesDocumentForm.js +96 -87
- package/dist/modules/sales/components/documents/SalesDocumentForm.js.map +2 -2
- package/dist/modules/sales/widgets/dashboard/new-orders/widget.client.js +20 -11
- package/dist/modules/sales/widgets/dashboard/new-orders/widget.client.js.map +2 -2
- package/dist/modules/sales/widgets/dashboard/new-quotes/widget.client.js +20 -11
- package/dist/modules/sales/widgets/dashboard/new-quotes/widget.client.js.map +2 -2
- package/dist/modules/shipping_carriers/lib/shipment-wizard/components/ConfigureStep.js +36 -22
- package/dist/modules/shipping_carriers/lib/shipment-wizard/components/ConfigureStep.js.map +2 -2
- package/dist/modules/staff/components/TeamMemberForm.js +14 -9
- package/dist/modules/staff/components/TeamMemberForm.js.map +3 -3
- package/dist/modules/workflows/backend/tasks/[id]/page.js +42 -21
- package/dist/modules/workflows/backend/tasks/[id]/page.js.map +2 -2
- package/dist/modules/workflows/components/ActivitiesEditor.js +14 -6
- package/dist/modules/workflows/components/ActivitiesEditor.js.map +3 -3
- package/dist/modules/workflows/components/DefinitionTriggersEditor.js +25 -17
- package/dist/modules/workflows/components/DefinitionTriggersEditor.js.map +3 -3
- package/dist/modules/workflows/components/EdgeEditDialog.js +48 -45
- package/dist/modules/workflows/components/EdgeEditDialog.js.map +2 -2
- package/dist/modules/workflows/components/NodeEditDialog.js +90 -90
- package/dist/modules/workflows/components/NodeEditDialog.js.map +2 -2
- package/dist/modules/workflows/components/StepsEditor.js +14 -6
- package/dist/modules/workflows/components/StepsEditor.js.map +3 -3
- package/dist/modules/workflows/components/TransitionsEditor.js +31 -26
- package/dist/modules/workflows/components/TransitionsEditor.js.map +3 -3
- package/dist/modules/workflows/components/fields/ActivityArrayEditor.js +19 -11
- package/dist/modules/workflows/components/fields/ActivityArrayEditor.js.map +3 -3
- package/dist/modules/workflows/components/fields/BusinessRuleConditionsEditor.js +12 -14
- package/dist/modules/workflows/components/fields/BusinessRuleConditionsEditor.js.map +2 -2
- package/dist/modules/workflows/components/fields/FormFieldArrayEditor.js +24 -16
- package/dist/modules/workflows/components/fields/FormFieldArrayEditor.js.map +3 -3
- package/dist/modules/workflows/components/fields/StartPreConditionsEditor.js +12 -13
- package/dist/modules/workflows/components/fields/StartPreConditionsEditor.js.map +2 -2
- package/dist/modules/workflows/components/mobile/MobileTaskForm.js +12 -8
- package/dist/modules/workflows/components/mobile/MobileTaskForm.js.map +2 -2
- package/dist/modules/workflows/frontend/checkout-demo/page.js +43 -46
- package/dist/modules/workflows/frontend/checkout-demo/page.js.map +2 -2
- package/package.json +3 -3
- package/src/helpers/integration/salesUi.ts +40 -30
- package/src/modules/api_docs/frontend/docs/api/Explorer.tsx +25 -19
- package/src/modules/attachments/components/AttachmentPartitionSettings.tsx +21 -11
- package/src/modules/attachments/fields/attachment.tsx +4 -6
- package/src/modules/auth/backend/users/create/page.tsx +16 -20
- package/src/modules/business_rules/components/ActionRow.tsx +51 -32
- package/src/modules/business_rules/components/ConditionGroup.tsx +20 -9
- package/src/modules/business_rules/components/ConditionRow.tsx +24 -15
- package/src/modules/business_rules/components/RuleSetMembers.tsx +23 -13
- package/src/modules/catalog/backend/catalog/products/[id]/page.tsx +47 -53
- package/src/modules/catalog/backend/catalog/products/create/page.tsx +84 -87
- package/src/modules/catalog/components/PriceKindSettings.tsx +9 -9
- package/src/modules/catalog/components/products/ProductUomSection.tsx +85 -83
- package/src/modules/catalog/components/products/VariantBuilder.tsx +49 -33
- package/src/modules/customer_accounts/backend/customer_accounts/users/[id]/page.tsx +12 -27
- package/src/modules/customer_accounts/backend/customer_accounts/users/page.tsx +4 -6
- package/src/modules/customer_accounts/widgets/injection/account-status/widget.client.tsx +5 -4
- package/src/modules/customers/backend/config/customers/pipeline-stages/page.tsx +28 -15
- package/src/modules/customers/backend/customers/deals/pipeline/page.tsx +37 -26
- package/src/modules/customers/components/AddressEditor.tsx +30 -16
- package/src/modules/customers/components/AddressFormatSettings.tsx +25 -19
- package/src/modules/customers/components/detail/ActivityForm.tsx +35 -23
- package/src/modules/customers/components/detail/AnnualRevenueField.tsx +2 -2
- package/src/modules/customers/components/detail/DealForm.tsx +33 -20
- package/src/modules/customers/components/formConfig.tsx +25 -17
- package/src/modules/customers/widgets/dashboard/customer-todos/widget.client.tsx +3 -2
- package/src/modules/customers/widgets/dashboard/new-customers/widget.client.tsx +21 -11
- package/src/modules/customers/widgets/dashboard/new-deals/widget.client.tsx +3 -2
- package/src/modules/customers/widgets/dashboard/next-interactions/widget.client.tsx +3 -2
- package/src/modules/dashboards/components/WidgetVisibilityEditor.tsx +17 -22
- package/src/modules/dashboards/widgets/dashboard/orders-by-status/widget.client.tsx +17 -7
- package/src/modules/dashboards/widgets/dashboard/revenue-trend/widget.client.tsx +20 -10
- package/src/modules/dashboards/widgets/dashboard/sales-by-region/widget.client.tsx +3 -2
- package/src/modules/dashboards/widgets/dashboard/top-customers/widget.client.tsx +3 -2
- package/src/modules/dashboards/widgets/dashboard/top-products/widget.client.tsx +20 -9
- package/src/modules/data_sync/backend/data-sync/page.tsx +64 -38
- package/src/modules/data_sync/components/IntegrationScheduleTab.tsx +18 -7
- package/src/modules/dictionaries/components/AppearanceSelector.tsx +4 -4
- package/src/modules/dictionaries/components/DictionaryEntriesEditor.tsx +3 -4
- package/src/modules/dictionaries/components/DictionaryEntrySelect.tsx +27 -21
- package/src/modules/dictionaries/fields/dictionary.tsx +36 -23
- package/src/modules/entities/components/EncryptionManager.tsx +49 -33
- package/src/modules/feature_toggles/components/formConfig.tsx +20 -10
- package/src/modules/feature_toggles/components/overrideFormConfig.tsx +20 -10
- package/src/modules/inbox_ops/backend/inbox-ops/settings/page.tsx +19 -10
- package/src/modules/inbox_ops/components/proposals/EditActionDialog.tsx +49 -26
- package/src/modules/integrations/backend/integrations/[id]/page.tsx +20 -11
- package/src/modules/integrations/backend/integrations/bundle/[id]/page.tsx +19 -9
- package/src/modules/planner/components/AvailabilityRulesEditor.tsx +34 -21
- package/src/modules/resources/components/ResourceCrudForm.tsx +24 -15
- package/src/modules/sales/backend/sales/documents/[id]/page.tsx +12 -15
- package/src/modules/sales/components/ProviderFieldInput.tsx +26 -17
- package/src/modules/sales/components/ShippingMethodsSettings.tsx +28 -20
- package/src/modules/sales/components/channels/ChannelOfferForm.tsx +51 -46
- package/src/modules/sales/components/documents/AddressesSection.tsx +78 -76
- package/src/modules/sales/components/documents/AdjustmentDialog.tsx +27 -15
- package/src/modules/sales/components/documents/LineItemDialog.tsx +69 -51
- package/src/modules/sales/components/documents/SalesDocumentForm.tsx +98 -87
- package/src/modules/sales/widgets/dashboard/new-orders/widget.client.tsx +23 -12
- package/src/modules/sales/widgets/dashboard/new-quotes/widget.client.tsx +23 -12
- package/src/modules/shipping_carriers/lib/shipment-wizard/components/ConfigureStep.tsx +35 -19
- package/src/modules/staff/components/TeamMemberForm.tsx +23 -14
- package/src/modules/workflows/backend/tasks/[id]/page.tsx +51 -23
- package/src/modules/workflows/components/ActivitiesEditor.tsx +20 -10
- package/src/modules/workflows/components/DefinitionTriggersEditor.tsx +28 -18
- package/src/modules/workflows/components/EdgeEditDialog.tsx +51 -40
- package/src/modules/workflows/components/NodeEditDialog.tsx +81 -77
- package/src/modules/workflows/components/StepsEditor.tsx +20 -10
- package/src/modules/workflows/components/TransitionsEditor.tsx +61 -44
- package/src/modules/workflows/components/fields/ActivityArrayEditor.tsx +22 -12
- package/src/modules/workflows/components/fields/BusinessRuleConditionsEditor.tsx +9 -13
- package/src/modules/workflows/components/fields/FormFieldArrayEditor.tsx +27 -17
- package/src/modules/workflows/components/fields/StartPreConditionsEditor.tsx +9 -12
- package/src/modules/workflows/components/mobile/MobileTaskForm.tsx +19 -11
- package/src/modules/workflows/frontend/checkout-demo/page.tsx +71 -60
|
@@ -3,7 +3,15 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
|
3
3
|
import { useEffect, useState } from "react";
|
|
4
4
|
import { Dialog, DialogContent, DialogFooter, DialogHeader, DialogTitle } from "@open-mercato/ui/primitives/dialog";
|
|
5
5
|
import { Button } from "@open-mercato/ui/primitives/button";
|
|
6
|
+
import { Input } from "@open-mercato/ui/primitives/input";
|
|
6
7
|
import { Badge } from "@open-mercato/ui/primitives/badge";
|
|
8
|
+
import {
|
|
9
|
+
Select,
|
|
10
|
+
SelectContent,
|
|
11
|
+
SelectItem,
|
|
12
|
+
SelectTrigger,
|
|
13
|
+
SelectValue
|
|
14
|
+
} from "@open-mercato/ui/primitives/select";
|
|
7
15
|
import { Alert, AlertDescription } from "@open-mercato/ui/primitives/alert";
|
|
8
16
|
import { ChevronDown, Info, Plus, Trash2 } from "lucide-react";
|
|
9
17
|
import { sanitizeId } from "../lib/graph-utils.js";
|
|
@@ -369,13 +377,12 @@ function NodeEditDialog({ node, isOpen, onClose, onSave, onDelete }) {
|
|
|
369
377
|
" *"
|
|
370
378
|
] }),
|
|
371
379
|
/* @__PURE__ */ jsx(
|
|
372
|
-
|
|
380
|
+
Input,
|
|
373
381
|
{
|
|
374
382
|
type: "text",
|
|
375
383
|
value: stepName,
|
|
376
384
|
onChange: (e) => setStepName(e.target.value),
|
|
377
385
|
placeholder: t("workflows.form.placeholders.stepName"),
|
|
378
|
-
className: "w-full px-3 py-2 border border-gray-300 rounded-lg text-sm focus-visible:ring-2 focus-visible:ring-ring focus-visible:border-ring",
|
|
379
386
|
autoFocus: true
|
|
380
387
|
}
|
|
381
388
|
),
|
|
@@ -398,13 +405,12 @@ function NodeEditDialog({ node, isOpen, onClose, onSave, onDelete }) {
|
|
|
398
405
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
399
406
|
/* @__PURE__ */ jsx("label", { className: "block text-sm font-medium text-gray-700 mb-1", children: t("workflows.form.timeout") }),
|
|
400
407
|
/* @__PURE__ */ jsx(
|
|
401
|
-
|
|
408
|
+
Input,
|
|
402
409
|
{
|
|
403
410
|
type: "text",
|
|
404
411
|
value: timeout,
|
|
405
412
|
onChange: (e) => setTimeout(e.target.value),
|
|
406
|
-
placeholder: t("workflows.form.placeholders.timeout")
|
|
407
|
-
className: "w-full px-3 py-2 border border-gray-300 rounded-lg text-sm focus-visible:ring-2 focus-visible:ring-ring focus-visible:border-ring"
|
|
413
|
+
placeholder: t("workflows.form.placeholders.timeout")
|
|
408
414
|
}
|
|
409
415
|
),
|
|
410
416
|
/* @__PURE__ */ jsx("p", { className: "text-xs text-gray-500 mt-1", children: t("workflows.form.descriptions.timeout") })
|
|
@@ -414,13 +420,12 @@ function NodeEditDialog({ node, isOpen, onClose, onSave, onDelete }) {
|
|
|
414
420
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
415
421
|
/* @__PURE__ */ jsx("label", { className: "block text-sm font-medium text-gray-700 mb-1", children: t("workflows.form.assignedTo") }),
|
|
416
422
|
/* @__PURE__ */ jsx(
|
|
417
|
-
|
|
423
|
+
Input,
|
|
418
424
|
{
|
|
419
425
|
type: "text",
|
|
420
426
|
value: assignedTo,
|
|
421
427
|
onChange: (e) => setAssignedTo(e.target.value),
|
|
422
|
-
placeholder: t("workflows.form.placeholders.userId")
|
|
423
|
-
className: "w-full px-3 py-2 border border-gray-300 rounded-lg text-sm focus-visible:ring-2 focus-visible:ring-ring focus-visible:border-ring"
|
|
428
|
+
placeholder: t("workflows.form.placeholders.userId")
|
|
424
429
|
}
|
|
425
430
|
),
|
|
426
431
|
/* @__PURE__ */ jsx("p", { className: "text-xs text-gray-500 mt-1", children: t("workflows.form.descriptions.assignedTo") })
|
|
@@ -428,13 +433,12 @@ function NodeEditDialog({ node, isOpen, onClose, onSave, onDelete }) {
|
|
|
428
433
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
429
434
|
/* @__PURE__ */ jsx("label", { className: "block text-sm font-medium text-gray-700 mb-1", children: t("workflows.form.assignedToRoles") }),
|
|
430
435
|
/* @__PURE__ */ jsx(
|
|
431
|
-
|
|
436
|
+
Input,
|
|
432
437
|
{
|
|
433
438
|
type: "text",
|
|
434
439
|
value: assignedToRoles,
|
|
435
440
|
onChange: (e) => setAssignedToRoles(e.target.value),
|
|
436
|
-
placeholder: t("workflows.form.placeholders.roles")
|
|
437
|
-
className: "w-full px-3 py-2 border border-gray-300 rounded-lg text-sm focus-visible:ring-2 focus-visible:ring-ring focus-visible:border-ring"
|
|
441
|
+
placeholder: t("workflows.form.placeholders.roles")
|
|
438
442
|
}
|
|
439
443
|
),
|
|
440
444
|
/* @__PURE__ */ jsx("p", { className: "text-xs text-gray-500 mt-1", children: t("workflows.form.descriptions.assignedToRoles") })
|
|
@@ -442,13 +446,12 @@ function NodeEditDialog({ node, isOpen, onClose, onSave, onDelete }) {
|
|
|
442
446
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
443
447
|
/* @__PURE__ */ jsx("label", { className: "block text-sm font-medium text-gray-700 mb-1", children: t("workflows.form.formKey") }),
|
|
444
448
|
/* @__PURE__ */ jsx(
|
|
445
|
-
|
|
449
|
+
Input,
|
|
446
450
|
{
|
|
447
451
|
type: "text",
|
|
448
452
|
value: formKey,
|
|
449
453
|
onChange: (e) => setFormKey(e.target.value),
|
|
450
|
-
placeholder: t("workflows.form.placeholders.formKey")
|
|
451
|
-
className: "w-full px-3 py-2 border border-gray-300 rounded-lg text-sm focus-visible:ring-2 focus-visible:ring-ring focus-visible:border-ring"
|
|
454
|
+
placeholder: t("workflows.form.placeholders.formKey")
|
|
452
455
|
}
|
|
453
456
|
),
|
|
454
457
|
/* @__PURE__ */ jsx("p", { className: "text-xs text-gray-500 mt-1", children: t("workflows.form.descriptions.formKey") })
|
|
@@ -514,12 +517,12 @@ function NodeEditDialog({ node, isOpen, onClose, onSave, onDelete }) {
|
|
|
514
517
|
" *"
|
|
515
518
|
] }),
|
|
516
519
|
/* @__PURE__ */ jsx(
|
|
517
|
-
|
|
520
|
+
Input,
|
|
518
521
|
{
|
|
519
522
|
type: "text",
|
|
523
|
+
size: "sm",
|
|
520
524
|
value: field.name,
|
|
521
525
|
onChange: (e) => updateFormField(index, "name", e.target.value),
|
|
522
|
-
className: "w-full px-2 py-1.5 border border-gray-300 rounded text-xs focus-visible:ring-1 focus-visible:ring-ring focus-visible:border-ring",
|
|
523
526
|
placeholder: t("workflows.form.placeholders.fieldName")
|
|
524
527
|
}
|
|
525
528
|
),
|
|
@@ -531,12 +534,12 @@ function NodeEditDialog({ node, isOpen, onClose, onSave, onDelete }) {
|
|
|
531
534
|
" *"
|
|
532
535
|
] }),
|
|
533
536
|
/* @__PURE__ */ jsx(
|
|
534
|
-
|
|
537
|
+
Input,
|
|
535
538
|
{
|
|
536
539
|
type: "text",
|
|
540
|
+
size: "sm",
|
|
537
541
|
value: field.label,
|
|
538
542
|
onChange: (e) => updateFormField(index, "label", e.target.value),
|
|
539
|
-
className: "w-full px-2 py-1.5 border border-gray-300 rounded text-xs focus-visible:ring-1 focus-visible:ring-ring focus-visible:border-ring",
|
|
540
543
|
placeholder: t("workflows.form.placeholders.fieldLabel")
|
|
541
544
|
}
|
|
542
545
|
),
|
|
@@ -548,24 +551,26 @@ function NodeEditDialog({ node, isOpen, onClose, onSave, onDelete }) {
|
|
|
548
551
|
" *"
|
|
549
552
|
] }),
|
|
550
553
|
/* @__PURE__ */ jsxs(
|
|
551
|
-
|
|
554
|
+
Select,
|
|
552
555
|
{
|
|
553
556
|
value: field.type,
|
|
554
|
-
|
|
555
|
-
className: "w-full px-2 py-1.5 border border-gray-300 rounded text-xs focus-visible:ring-1 focus-visible:ring-ring focus-visible:border-ring",
|
|
557
|
+
onValueChange: (value) => updateFormField(index, "type", value),
|
|
556
558
|
children: [
|
|
557
|
-
/* @__PURE__ */ jsx(
|
|
558
|
-
/* @__PURE__ */
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
559
|
+
/* @__PURE__ */ jsx(SelectTrigger, { size: "sm", children: /* @__PURE__ */ jsx(SelectValue, {}) }),
|
|
560
|
+
/* @__PURE__ */ jsxs(SelectContent, { children: [
|
|
561
|
+
/* @__PURE__ */ jsx(SelectItem, { value: "text", children: t("workflows.form.fieldTypes.text") }),
|
|
562
|
+
/* @__PURE__ */ jsx(SelectItem, { value: "number", children: t("workflows.form.fieldTypes.number") }),
|
|
563
|
+
/* @__PURE__ */ jsx(SelectItem, { value: "email", children: t("workflows.form.fieldTypes.email") }),
|
|
564
|
+
/* @__PURE__ */ jsx(SelectItem, { value: "tel", children: t("workflows.form.fieldTypes.tel") }),
|
|
565
|
+
/* @__PURE__ */ jsx(SelectItem, { value: "url", children: t("workflows.form.fieldTypes.url") }),
|
|
566
|
+
/* @__PURE__ */ jsx(SelectItem, { value: "textarea", children: t("workflows.form.fieldTypes.textarea") }),
|
|
567
|
+
/* @__PURE__ */ jsx(SelectItem, { value: "select", children: t("workflows.form.fieldTypes.select") }),
|
|
568
|
+
/* @__PURE__ */ jsx(SelectItem, { value: "radio", children: t("workflows.form.fieldTypes.radio") }),
|
|
569
|
+
/* @__PURE__ */ jsx(SelectItem, { value: "checkbox", children: t("workflows.form.fieldTypes.checkbox") }),
|
|
570
|
+
/* @__PURE__ */ jsx(SelectItem, { value: "date", children: t("workflows.form.fieldTypes.date") }),
|
|
571
|
+
/* @__PURE__ */ jsx(SelectItem, { value: "time", children: t("workflows.form.fieldTypes.time") }),
|
|
572
|
+
/* @__PURE__ */ jsx(SelectItem, { value: "datetime-local", children: t("workflows.form.fieldTypes.datetime-local") })
|
|
573
|
+
] })
|
|
569
574
|
]
|
|
570
575
|
}
|
|
571
576
|
)
|
|
@@ -573,12 +578,12 @@ function NodeEditDialog({ node, isOpen, onClose, onSave, onDelete }) {
|
|
|
573
578
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
574
579
|
/* @__PURE__ */ jsx("label", { className: "block text-xs font-medium text-gray-700 mb-1", children: t("workflows.form.placeholder") }),
|
|
575
580
|
/* @__PURE__ */ jsx(
|
|
576
|
-
|
|
581
|
+
Input,
|
|
577
582
|
{
|
|
578
583
|
type: "text",
|
|
584
|
+
size: "sm",
|
|
579
585
|
value: field.placeholder || "",
|
|
580
586
|
onChange: (e) => updateFormField(index, "placeholder", e.target.value),
|
|
581
|
-
className: "w-full px-2 py-1.5 border border-gray-300 rounded text-xs focus-visible:ring-1 focus-visible:ring-ring focus-visible:border-ring",
|
|
582
587
|
placeholder: t("workflows.form.placeholders.placeholder")
|
|
583
588
|
}
|
|
584
589
|
)
|
|
@@ -586,12 +591,12 @@ function NodeEditDialog({ node, isOpen, onClose, onSave, onDelete }) {
|
|
|
586
591
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
587
592
|
/* @__PURE__ */ jsx("label", { className: "block text-xs font-medium text-gray-700 mb-1", children: t("workflows.form.defaultValue") }),
|
|
588
593
|
/* @__PURE__ */ jsx(
|
|
589
|
-
|
|
594
|
+
Input,
|
|
590
595
|
{
|
|
591
596
|
type: "text",
|
|
597
|
+
size: "sm",
|
|
592
598
|
value: field.defaultValue || "",
|
|
593
599
|
onChange: (e) => updateFormField(index, "defaultValue", e.target.value),
|
|
594
|
-
className: "w-full px-2 py-1.5 border border-gray-300 rounded text-xs focus-visible:ring-1 focus-visible:ring-ring focus-visible:border-ring",
|
|
595
600
|
placeholder: t("workflows.form.placeholders.defaultValue")
|
|
596
601
|
}
|
|
597
602
|
)
|
|
@@ -599,12 +604,12 @@ function NodeEditDialog({ node, isOpen, onClose, onSave, onDelete }) {
|
|
|
599
604
|
(field.type === "select" || field.type === "radio") && /* @__PURE__ */ jsxs("div", { children: [
|
|
600
605
|
/* @__PURE__ */ jsx("label", { className: "block text-xs font-medium text-gray-700 mb-1", children: t("workflows.form.options") }),
|
|
601
606
|
/* @__PURE__ */ jsx(
|
|
602
|
-
|
|
607
|
+
Input,
|
|
603
608
|
{
|
|
604
609
|
type: "text",
|
|
610
|
+
size: "sm",
|
|
605
611
|
value: field.options?.join(", ") || "",
|
|
606
612
|
onChange: (e) => updateFormField(index, "options", e.target.value.split(",").map((o) => o.trim()).filter(Boolean)),
|
|
607
|
-
className: "w-full px-2 py-1.5 border border-gray-300 rounded text-xs focus-visible:ring-1 focus-visible:ring-ring focus-visible:border-ring",
|
|
608
613
|
placeholder: t("workflows.form.placeholders.options")
|
|
609
614
|
}
|
|
610
615
|
),
|
|
@@ -716,16 +721,16 @@ function NodeEditDialog({ node, isOpen, onClose, onSave, onDelete }) {
|
|
|
716
721
|
" *"
|
|
717
722
|
] }),
|
|
718
723
|
/* @__PURE__ */ jsx(
|
|
719
|
-
|
|
724
|
+
Input,
|
|
720
725
|
{
|
|
721
726
|
type: "text",
|
|
727
|
+
size: "sm",
|
|
722
728
|
value: activity.activityId,
|
|
723
729
|
onChange: (e) => {
|
|
724
730
|
const updated = [...stepActivities];
|
|
725
731
|
updated[index].activityId = e.target.value;
|
|
726
732
|
setStepActivities(updated);
|
|
727
733
|
},
|
|
728
|
-
className: "w-full px-2 py-1.5 border border-gray-300 rounded text-xs focus-visible:ring-1 focus-visible:ring-ring",
|
|
729
734
|
placeholder: t("workflows.form.placeholders.activityId")
|
|
730
735
|
}
|
|
731
736
|
)
|
|
@@ -736,16 +741,16 @@ function NodeEditDialog({ node, isOpen, onClose, onSave, onDelete }) {
|
|
|
736
741
|
" *"
|
|
737
742
|
] }),
|
|
738
743
|
/* @__PURE__ */ jsx(
|
|
739
|
-
|
|
744
|
+
Input,
|
|
740
745
|
{
|
|
741
746
|
type: "text",
|
|
747
|
+
size: "sm",
|
|
742
748
|
value: activity.activityName || "",
|
|
743
749
|
onChange: (e) => {
|
|
744
750
|
const updated = [...stepActivities];
|
|
745
751
|
updated[index].activityName = e.target.value;
|
|
746
752
|
setStepActivities(updated);
|
|
747
753
|
},
|
|
748
|
-
className: "w-full px-2 py-1.5 border border-gray-300 rounded text-xs focus-visible:ring-1 focus-visible:ring-ring",
|
|
749
754
|
placeholder: t("workflows.form.placeholders.activityName")
|
|
750
755
|
}
|
|
751
756
|
)
|
|
@@ -756,22 +761,24 @@ function NodeEditDialog({ node, isOpen, onClose, onSave, onDelete }) {
|
|
|
756
761
|
" *"
|
|
757
762
|
] }),
|
|
758
763
|
/* @__PURE__ */ jsxs(
|
|
759
|
-
|
|
764
|
+
Select,
|
|
760
765
|
{
|
|
761
766
|
value: activity.activityType,
|
|
762
|
-
|
|
767
|
+
onValueChange: (value) => {
|
|
763
768
|
const updated = [...stepActivities];
|
|
764
|
-
updated[index].activityType =
|
|
769
|
+
updated[index].activityType = value;
|
|
765
770
|
setStepActivities(updated);
|
|
766
771
|
},
|
|
767
|
-
className: "w-full px-2 py-1.5 border border-gray-300 rounded text-xs focus-visible:ring-1 focus-visible:ring-ring",
|
|
768
772
|
children: [
|
|
769
|
-
/* @__PURE__ */ jsx(
|
|
770
|
-
/* @__PURE__ */
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
773
|
+
/* @__PURE__ */ jsx(SelectTrigger, { size: "sm", children: /* @__PURE__ */ jsx(SelectValue, {}) }),
|
|
774
|
+
/* @__PURE__ */ jsxs(SelectContent, { children: [
|
|
775
|
+
/* @__PURE__ */ jsx(SelectItem, { value: "SEND_EMAIL", children: t("workflows.activities.types.SEND_EMAIL") }),
|
|
776
|
+
/* @__PURE__ */ jsx(SelectItem, { value: "CALL_API", children: t("workflows.activities.types.CALL_API") }),
|
|
777
|
+
/* @__PURE__ */ jsx(SelectItem, { value: "UPDATE_ENTITY", children: t("workflows.activities.types.UPDATE_ENTITY") }),
|
|
778
|
+
/* @__PURE__ */ jsx(SelectItem, { value: "EMIT_EVENT", children: t("workflows.activities.types.EMIT_EVENT") }),
|
|
779
|
+
/* @__PURE__ */ jsx(SelectItem, { value: "CALL_WEBHOOK", children: t("workflows.activities.types.CALL_WEBHOOK") }),
|
|
780
|
+
/* @__PURE__ */ jsx(SelectItem, { value: "EXECUTE_FUNCTION", children: t("workflows.activities.types.EXECUTE_FUNCTION") })
|
|
781
|
+
] })
|
|
775
782
|
]
|
|
776
783
|
}
|
|
777
784
|
)
|
|
@@ -779,16 +786,16 @@ function NodeEditDialog({ node, isOpen, onClose, onSave, onDelete }) {
|
|
|
779
786
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
780
787
|
/* @__PURE__ */ jsx("label", { className: "block text-xs font-medium text-gray-700 mb-1", children: t("workflows.form.timeout") }),
|
|
781
788
|
/* @__PURE__ */ jsx(
|
|
782
|
-
|
|
789
|
+
Input,
|
|
783
790
|
{
|
|
784
791
|
type: "text",
|
|
792
|
+
size: "sm",
|
|
785
793
|
value: activity.timeoutMs || "",
|
|
786
794
|
onChange: (e) => {
|
|
787
795
|
const updated = [...stepActivities];
|
|
788
796
|
updated[index].timeoutMs = e.target.value ? parseInt(e.target.value) : void 0;
|
|
789
797
|
setStepActivities(updated);
|
|
790
798
|
},
|
|
791
|
-
className: "w-full px-2 py-1.5 border border-gray-300 rounded text-xs focus-visible:ring-1 focus-visible:ring-ring",
|
|
792
799
|
placeholder: t("workflows.form.placeholders.timeoutMs")
|
|
793
800
|
}
|
|
794
801
|
),
|
|
@@ -800,9 +807,10 @@ function NodeEditDialog({ node, isOpen, onClose, onSave, onDelete }) {
|
|
|
800
807
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
801
808
|
/* @__PURE__ */ jsx("label", { className: "block text-xs text-gray-600 mb-1", children: t("workflows.form.maxAttempts") }),
|
|
802
809
|
/* @__PURE__ */ jsx(
|
|
803
|
-
|
|
810
|
+
Input,
|
|
804
811
|
{
|
|
805
812
|
type: "number",
|
|
813
|
+
size: "sm",
|
|
806
814
|
value: activity.retryPolicy?.maxAttempts || 1,
|
|
807
815
|
onChange: (e) => {
|
|
808
816
|
const updated = [...stepActivities];
|
|
@@ -811,34 +819,34 @@ function NodeEditDialog({ node, isOpen, onClose, onSave, onDelete }) {
|
|
|
811
819
|
setStepActivities(updated);
|
|
812
820
|
},
|
|
813
821
|
min: "1",
|
|
814
|
-
max: "10"
|
|
815
|
-
className: "w-full px-2 py-1 border border-gray-300 rounded text-xs"
|
|
822
|
+
max: "10"
|
|
816
823
|
}
|
|
817
824
|
)
|
|
818
825
|
] }),
|
|
819
826
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
820
827
|
/* @__PURE__ */ jsx("label", { className: "block text-xs text-gray-600 mb-1", children: t("workflows.form.initialInterval") }),
|
|
821
828
|
/* @__PURE__ */ jsx(
|
|
822
|
-
|
|
829
|
+
Input,
|
|
823
830
|
{
|
|
824
831
|
type: "number",
|
|
832
|
+
size: "sm",
|
|
825
833
|
value: activity.retryPolicy?.initialIntervalMs || 1e3,
|
|
826
834
|
onChange: (e) => {
|
|
827
835
|
const updated = [...stepActivities];
|
|
828
836
|
if (!updated[index].retryPolicy) updated[index].retryPolicy = {};
|
|
829
837
|
updated[index].retryPolicy.initialIntervalMs = parseInt(e.target.value) || 1e3;
|
|
830
838
|
setStepActivities(updated);
|
|
831
|
-
}
|
|
832
|
-
className: "w-full px-2 py-1 border border-gray-300 rounded text-xs"
|
|
839
|
+
}
|
|
833
840
|
}
|
|
834
841
|
)
|
|
835
842
|
] }),
|
|
836
843
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
837
844
|
/* @__PURE__ */ jsx("label", { className: "block text-xs text-gray-600 mb-1", children: t("workflows.form.backoffCoefficient") }),
|
|
838
845
|
/* @__PURE__ */ jsx(
|
|
839
|
-
|
|
846
|
+
Input,
|
|
840
847
|
{
|
|
841
848
|
type: "number",
|
|
849
|
+
size: "sm",
|
|
842
850
|
step: "0.1",
|
|
843
851
|
value: activity.retryPolicy?.backoffCoefficient || 2,
|
|
844
852
|
onChange: (e) => {
|
|
@@ -846,25 +854,24 @@ function NodeEditDialog({ node, isOpen, onClose, onSave, onDelete }) {
|
|
|
846
854
|
if (!updated[index].retryPolicy) updated[index].retryPolicy = {};
|
|
847
855
|
updated[index].retryPolicy.backoffCoefficient = parseFloat(e.target.value) || 2;
|
|
848
856
|
setStepActivities(updated);
|
|
849
|
-
}
|
|
850
|
-
className: "w-full px-2 py-1 border border-gray-300 rounded text-xs"
|
|
857
|
+
}
|
|
851
858
|
}
|
|
852
859
|
)
|
|
853
860
|
] }),
|
|
854
861
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
855
862
|
/* @__PURE__ */ jsx("label", { className: "block text-xs text-gray-600 mb-1", children: t("workflows.form.maxInterval") }),
|
|
856
863
|
/* @__PURE__ */ jsx(
|
|
857
|
-
|
|
864
|
+
Input,
|
|
858
865
|
{
|
|
859
866
|
type: "number",
|
|
867
|
+
size: "sm",
|
|
860
868
|
value: activity.retryPolicy?.maxIntervalMs || 6e4,
|
|
861
869
|
onChange: (e) => {
|
|
862
870
|
const updated = [...stepActivities];
|
|
863
871
|
if (!updated[index].retryPolicy) updated[index].retryPolicy = {};
|
|
864
872
|
updated[index].retryPolicy.maxIntervalMs = parseInt(e.target.value) || 6e4;
|
|
865
873
|
setStepActivities(updated);
|
|
866
|
-
}
|
|
867
|
-
className: "w-full px-2 py-1 border border-gray-300 rounded text-xs"
|
|
874
|
+
}
|
|
868
875
|
}
|
|
869
876
|
)
|
|
870
877
|
] })
|
|
@@ -932,13 +939,13 @@ function NodeEditDialog({ node, isOpen, onClose, onSave, onDelete }) {
|
|
|
932
939
|
] }),
|
|
933
940
|
/* @__PURE__ */ jsxs("div", { className: "flex gap-2", children: [
|
|
934
941
|
/* @__PURE__ */ jsx(
|
|
935
|
-
|
|
942
|
+
Input,
|
|
936
943
|
{
|
|
937
944
|
type: "text",
|
|
938
945
|
value: subWorkflowId,
|
|
939
946
|
onChange: (e) => setSubWorkflowId(e.target.value),
|
|
940
947
|
placeholder: t("workflows.form.placeholders.subWorkflowId"),
|
|
941
|
-
className: "flex-1
|
|
948
|
+
className: "flex-1",
|
|
942
949
|
readOnly: true
|
|
943
950
|
}
|
|
944
951
|
),
|
|
@@ -957,13 +964,12 @@ function NodeEditDialog({ node, isOpen, onClose, onSave, onDelete }) {
|
|
|
957
964
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
958
965
|
/* @__PURE__ */ jsx("label", { className: "block text-sm font-medium text-gray-700 mb-1", children: t("workflows.form.version") }),
|
|
959
966
|
/* @__PURE__ */ jsx(
|
|
960
|
-
|
|
967
|
+
Input,
|
|
961
968
|
{
|
|
962
969
|
type: "number",
|
|
963
970
|
value: subWorkflowVersion,
|
|
964
971
|
onChange: (e) => setSubWorkflowVersion(e.target.value),
|
|
965
|
-
placeholder: t("workflows.form.placeholders.version")
|
|
966
|
-
className: "w-full px-3 py-2 border border-gray-300 rounded-lg text-sm focus-visible:ring-2 focus-visible:ring-ring focus-visible:border-ring"
|
|
972
|
+
placeholder: t("workflows.form.placeholders.version")
|
|
967
973
|
}
|
|
968
974
|
),
|
|
969
975
|
/* @__PURE__ */ jsx("p", { className: "text-xs text-gray-500 mt-1", children: t("workflows.form.descriptions.subWorkflowVersion") })
|
|
@@ -990,7 +996,7 @@ function NodeEditDialog({ node, isOpen, onClose, onSave, onDelete }) {
|
|
|
990
996
|
inputMappings.length === 0 ? /* @__PURE__ */ jsx("p", { className: "text-sm text-gray-500 italic", children: t("workflows.nodeEditor.noInputMappings") }) : /* @__PURE__ */ jsx("div", { className: "space-y-2", children: inputMappings.map((mapping, index) => /* @__PURE__ */ jsxs("div", { className: "flex gap-2 items-start", children: [
|
|
991
997
|
/* @__PURE__ */ jsxs("div", { className: "flex-1", children: [
|
|
992
998
|
/* @__PURE__ */ jsx(
|
|
993
|
-
|
|
999
|
+
Input,
|
|
994
1000
|
{
|
|
995
1001
|
type: "text",
|
|
996
1002
|
value: mapping.key,
|
|
@@ -999,8 +1005,7 @@ function NodeEditDialog({ node, isOpen, onClose, onSave, onDelete }) {
|
|
|
999
1005
|
newMappings[index].key = e.target.value;
|
|
1000
1006
|
setInputMappings(newMappings);
|
|
1001
1007
|
},
|
|
1002
|
-
placeholder: t("workflows.form.placeholders.childKey")
|
|
1003
|
-
className: "w-full px-2 py-1.5 border border-gray-300 rounded text-sm focus-visible:ring-2 focus-visible:ring-ring"
|
|
1008
|
+
placeholder: t("workflows.form.placeholders.childKey")
|
|
1004
1009
|
}
|
|
1005
1010
|
),
|
|
1006
1011
|
/* @__PURE__ */ jsx("p", { className: "text-xs text-gray-500 mt-0.5", children: t("workflows.form.descriptions.childKey") })
|
|
@@ -1008,7 +1013,7 @@ function NodeEditDialog({ node, isOpen, onClose, onSave, onDelete }) {
|
|
|
1008
1013
|
/* @__PURE__ */ jsx("span", { className: "text-gray-400 mt-2", children: "\u2192" }),
|
|
1009
1014
|
/* @__PURE__ */ jsxs("div", { className: "flex-1", children: [
|
|
1010
1015
|
/* @__PURE__ */ jsx(
|
|
1011
|
-
|
|
1016
|
+
Input,
|
|
1012
1017
|
{
|
|
1013
1018
|
type: "text",
|
|
1014
1019
|
value: mapping.value,
|
|
@@ -1017,8 +1022,7 @@ function NodeEditDialog({ node, isOpen, onClose, onSave, onDelete }) {
|
|
|
1017
1022
|
newMappings[index].value = e.target.value;
|
|
1018
1023
|
setInputMappings(newMappings);
|
|
1019
1024
|
},
|
|
1020
|
-
placeholder: t("workflows.form.placeholders.parentPath")
|
|
1021
|
-
className: "w-full px-2 py-1.5 border border-gray-300 rounded text-sm focus-visible:ring-2 focus-visible:ring-ring"
|
|
1025
|
+
placeholder: t("workflows.form.placeholders.parentPath")
|
|
1022
1026
|
}
|
|
1023
1027
|
),
|
|
1024
1028
|
/* @__PURE__ */ jsx("p", { className: "text-xs text-gray-500 mt-0.5", children: t("workflows.form.descriptions.parentPath") })
|
|
@@ -1060,7 +1064,7 @@ function NodeEditDialog({ node, isOpen, onClose, onSave, onDelete }) {
|
|
|
1060
1064
|
outputMappings.length === 0 ? /* @__PURE__ */ jsx("p", { className: "text-sm text-gray-500 italic", children: t("workflows.nodeEditor.noOutputMappings") }) : /* @__PURE__ */ jsx("div", { className: "space-y-2", children: outputMappings.map((mapping, index) => /* @__PURE__ */ jsxs("div", { className: "flex gap-2 items-start", children: [
|
|
1061
1065
|
/* @__PURE__ */ jsxs("div", { className: "flex-1", children: [
|
|
1062
1066
|
/* @__PURE__ */ jsx(
|
|
1063
|
-
|
|
1067
|
+
Input,
|
|
1064
1068
|
{
|
|
1065
1069
|
type: "text",
|
|
1066
1070
|
value: mapping.key,
|
|
@@ -1069,8 +1073,7 @@ function NodeEditDialog({ node, isOpen, onClose, onSave, onDelete }) {
|
|
|
1069
1073
|
newMappings[index].key = e.target.value;
|
|
1070
1074
|
setOutputMappings(newMappings);
|
|
1071
1075
|
},
|
|
1072
|
-
placeholder: t("workflows.form.placeholders.parentKey")
|
|
1073
|
-
className: "w-full px-2 py-1.5 border border-gray-300 rounded text-sm focus-visible:ring-2 focus-visible:ring-ring"
|
|
1076
|
+
placeholder: t("workflows.form.placeholders.parentKey")
|
|
1074
1077
|
}
|
|
1075
1078
|
),
|
|
1076
1079
|
/* @__PURE__ */ jsx("p", { className: "text-xs text-gray-500 mt-0.5", children: t("workflows.form.descriptions.parentKey") })
|
|
@@ -1078,7 +1081,7 @@ function NodeEditDialog({ node, isOpen, onClose, onSave, onDelete }) {
|
|
|
1078
1081
|
/* @__PURE__ */ jsx("span", { className: "text-gray-400 mt-2", children: "\u2190" }),
|
|
1079
1082
|
/* @__PURE__ */ jsxs("div", { className: "flex-1", children: [
|
|
1080
1083
|
/* @__PURE__ */ jsx(
|
|
1081
|
-
|
|
1084
|
+
Input,
|
|
1082
1085
|
{
|
|
1083
1086
|
type: "text",
|
|
1084
1087
|
value: mapping.value,
|
|
@@ -1087,8 +1090,7 @@ function NodeEditDialog({ node, isOpen, onClose, onSave, onDelete }) {
|
|
|
1087
1090
|
newMappings[index].value = e.target.value;
|
|
1088
1091
|
setOutputMappings(newMappings);
|
|
1089
1092
|
},
|
|
1090
|
-
placeholder: t("workflows.form.placeholders.childPath")
|
|
1091
|
-
className: "w-full px-2 py-1.5 border border-gray-300 rounded text-sm focus-visible:ring-2 focus-visible:ring-ring"
|
|
1093
|
+
placeholder: t("workflows.form.placeholders.childPath")
|
|
1092
1094
|
}
|
|
1093
1095
|
),
|
|
1094
1096
|
/* @__PURE__ */ jsx("p", { className: "text-xs text-gray-500 mt-0.5", children: t("workflows.form.descriptions.childPath") })
|
|
@@ -1117,13 +1119,12 @@ function NodeEditDialog({ node, isOpen, onClose, onSave, onDelete }) {
|
|
|
1117
1119
|
" *"
|
|
1118
1120
|
] }),
|
|
1119
1121
|
/* @__PURE__ */ jsx(
|
|
1120
|
-
|
|
1122
|
+
Input,
|
|
1121
1123
|
{
|
|
1122
1124
|
type: "text",
|
|
1123
1125
|
value: signalName,
|
|
1124
1126
|
onChange: (e) => setSignalName(e.target.value),
|
|
1125
|
-
placeholder: t("workflows.form.placeholders.signalName")
|
|
1126
|
-
className: "w-full px-3 py-2 border border-gray-300 rounded-lg text-sm focus-visible:ring-2 focus-visible:ring-ring focus-visible:border-ring"
|
|
1127
|
+
placeholder: t("workflows.form.placeholders.signalName")
|
|
1127
1128
|
}
|
|
1128
1129
|
),
|
|
1129
1130
|
/* @__PURE__ */ jsx("p", { className: "text-xs text-gray-500 mt-1", children: t("workflows.form.descriptions.signalName") })
|
|
@@ -1131,13 +1132,12 @@ function NodeEditDialog({ node, isOpen, onClose, onSave, onDelete }) {
|
|
|
1131
1132
|
/* @__PURE__ */ jsxs("div", { children: [
|
|
1132
1133
|
/* @__PURE__ */ jsx("label", { className: "block text-sm font-medium text-gray-700 mb-1", children: t("workflows.form.timeout") }),
|
|
1133
1134
|
/* @__PURE__ */ jsx(
|
|
1134
|
-
|
|
1135
|
+
Input,
|
|
1135
1136
|
{
|
|
1136
1137
|
type: "text",
|
|
1137
1138
|
value: signalTimeout,
|
|
1138
1139
|
onChange: (e) => setSignalTimeout(e.target.value),
|
|
1139
|
-
placeholder: t("workflows.form.placeholders.signalTimeout")
|
|
1140
|
-
className: "w-full px-3 py-2 border border-gray-300 rounded-lg text-sm focus-visible:ring-2 focus-visible:ring-ring focus-visible:border-ring"
|
|
1140
|
+
placeholder: t("workflows.form.placeholders.signalTimeout")
|
|
1141
1141
|
}
|
|
1142
1142
|
),
|
|
1143
1143
|
/* @__PURE__ */ jsx("p", { className: "text-xs text-gray-500 mt-1", children: t("workflows.form.descriptions.signalTimeout") })
|