n8n-editor-ui 1.66.0 → 1.68.0

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.
Files changed (110) hide show
  1. package/dist/assets/{AuthView-31vu0x_3.js → AuthView-C7b2xzS9.js} +17 -19
  2. package/dist/assets/CanvasChat-DKeWqqZz.css +730 -0
  3. package/dist/assets/CanvasChat-QctJb8ta.js +4166 -0
  4. package/dist/assets/{CanvasControls-DkT1iClJ.js → CanvasControls-raoYims4.js} +1 -1
  5. package/dist/assets/{ChangePasswordView-DkhZAh4j.js → ChangePasswordView-BBju88Nm.js} +2 -2
  6. package/dist/assets/CollectionParameter-DNJAimAt.js +4 -0
  7. package/dist/assets/{CredentialsView-Du-lMwPW.js → CredentialsView-BfYXjOVw.js} +11 -10
  8. package/dist/assets/{ErrorView-CROJIl1H.js → ErrorView-BhPrjw7c.js} +1 -1
  9. package/dist/assets/{ExecutionsFilter-BecTg03r.css → ExecutionsTime-DVxRt-Pz.css} +6 -6
  10. package/dist/assets/{ExecutionsFilter-132FKb5o.js → ExecutionsTime.vue_vue_type_script_setup_true_lang-Ba-at9rw.js} +43 -43
  11. package/dist/assets/{ExecutionsView-B41cgHPD.js → ExecutionsView-Dcw07XZ-.js} +26 -31
  12. package/dist/assets/{ExecutionsView-Dfy6JMwb.css → ExecutionsView-DlxsqdiC.css} +44 -38
  13. package/dist/assets/{FileSaver.min-B3lWZPMp.js → FileSaver.min-CKlTVpWB.js} +1 -1
  14. package/dist/assets/FixedCollectionParameter-CkI6mCZG.js +334 -0
  15. package/dist/assets/{FixedCollectionParameter-fI2wTyfY.css → FixedCollectionParameter-DzOGMEdq.css} +10 -10
  16. package/dist/assets/{ForgotMyPasswordView-DKrE7dUn.js → ForgotMyPasswordView--eKPrTSW.js} +4 -3
  17. package/dist/assets/{MainHeader-CW31WCmm.js → MainHeader-Btek9DoL.js} +195 -118
  18. package/dist/assets/{MainHeader-Bc5G9_Uq.css → MainHeader-DJdd17Nh.css} +36 -11
  19. package/dist/assets/{MainSidebar-cNW0UJBC.css → MainSidebar-BRYJRpOA.css} +2 -2
  20. package/dist/assets/{MainSidebar-Dny90RtO.js → MainSidebar-CRjg4yDv.js} +7 -13
  21. package/dist/assets/{NodeCreation-BqSkxffS.js → NodeCreation-CDpNw3BL.js} +14 -11
  22. package/dist/assets/{NodeCreator-CoqcSKC-.js → NodeCreator-DPpQXLHf.js} +79 -65
  23. package/dist/assets/{NodeViewSwitcher-C1Gp-jKb.js → NodeViewSwitcher-CNfOOUof.js} +2891 -2905
  24. package/dist/assets/{NodeViewSwitcher-B8VPj4Rs.css → NodeViewSwitcher-DuVIKqpm.css} +185 -184
  25. package/dist/assets/{ProjectCardBadge-kHyKG50e.js → ProjectCardBadge-DzaTsr93.js} +1 -1
  26. package/dist/assets/{ResourceListHeader-DgE1VPUF.css → ProjectHeader-09VQWBZH.css} +5 -3
  27. package/dist/assets/ProjectHeader-wdvHJxbT.js +196 -0
  28. package/dist/assets/{ProjectSettings-BohhQ-z6.js → ProjectSettings-B6j0VJK5.js} +7 -36
  29. package/dist/assets/PushConnectionTracker.vue_vue_type_script_setup_true_lang-ByoMju5L.js +39 -0
  30. package/dist/assets/ResourcesListLayout-9Vpyt6Ec.js +662 -0
  31. package/dist/assets/{ResourcesListLayout-Bw99IFlO.css → ResourcesListLayout-CuA8O7do.css} +8 -8
  32. package/dist/assets/{RunDataJson-CUsbBWaI.js → RunDataJson-sPhT7c2h.js} +12 -12
  33. package/dist/assets/{RunDataJsonActions-Bnn0o9WH.js → RunDataJsonActions-DiMvLis_.js} +128 -159
  34. package/dist/assets/{RunDataSearch-BiygytJ8.js → RunDataSearch-CF_rpBKx.js} +2 -2
  35. package/dist/assets/RunDataTable-T52TXUHR.js +564 -0
  36. package/dist/assets/{SamlOnboarding-BXYS2fQg.js → SamlOnboarding-BCn53xtf.js} +2 -2
  37. package/dist/assets/SettingsApiView-DumvK072.js +227 -0
  38. package/dist/assets/{SettingsCommunityNodesView-BjakfOB1.js → SettingsCommunityNodesView-Db787Jar.js} +185 -195
  39. package/dist/assets/{SettingsExternalSecrets-BGIt9OQy.js → SettingsExternalSecrets-DKB2o2Dq.js} +3 -3
  40. package/dist/assets/{SettingsLdapView-DBY4YyYE.js → SettingsLdapView-BoKoCT5V.js} +3 -3
  41. package/dist/assets/SettingsLogStreamingView-BGX39Unz.js +500 -0
  42. package/dist/assets/{SettingsPersonalView-CgzznKXi.js → SettingsPersonalView-fTCeSJfu.js} +1 -1
  43. package/dist/assets/{SettingsSourceControl-DNWFyNrX.js → SettingsSourceControl-_G83P363.js} +3 -3
  44. package/dist/assets/{SettingsSso-B8oke872.js → SettingsSso-Bn48qAiX.js} +3 -3
  45. package/dist/assets/{SettingsUsageAndPlan-BUUYApK_.js → SettingsUsageAndPlan-DZkS0RP4.js} +4 -3
  46. package/dist/assets/{SettingsUsageAndPlan-P6SS2mWq.css → SettingsUsageAndPlan-vijI-va0.css} +3 -3
  47. package/dist/assets/{SettingsUsersView-DyuP8V6k.js → SettingsUsersView-BUh2iKEW.js} +4 -3
  48. package/dist/assets/{SettingsView-CD83Adan.js → SettingsView-D_S4x7XG.js} +2 -30
  49. package/dist/assets/{SetupView-C8XYMj2N.js → SetupView-BenKVU0l.js} +2 -2
  50. package/dist/assets/{SetupWorkflowCredentialsButton-u1qhjj5K.js → SetupWorkflowCredentialsButton-DKr9ZPLE.js} +1 -1
  51. package/dist/assets/{SetupWorkflowFromTemplateView-DdxqCGcl.js → SetupWorkflowFromTemplateView-Ce1R_CDh.js} +3 -3
  52. package/dist/assets/{SigninView-CGQ20O_c.js → SigninView-xl5aJqka.js} +4 -3
  53. package/dist/assets/{SignoutView-BZwBBglt.js → SignoutView-Bscz6u1Y.js} +1 -1
  54. package/dist/assets/{SignupView-BCT6dhhZ.js → SignupView-CZN8EhJV.js} +4 -3
  55. package/dist/assets/TemplateDetails-BAQ3vBNJ.js +179 -0
  56. package/dist/assets/TemplateList-DD7sqnpI.js +371 -0
  57. package/dist/assets/{TemplatesCollectionView-BxBSljqH.js → TemplatesCollectionView-CG3ZoY8i.js} +10 -10
  58. package/dist/assets/{TemplatesSearchView-kFcPH-ZH.js → TemplatesSearchView-22jrqI8X.js} +530 -577
  59. package/dist/assets/{TemplatesView-TPTpSdeD.js → TemplatesView-BZFc4hZ1.js} +32 -37
  60. package/dist/assets/{TemplatesWorkflowView-8NdGLWj7.js → TemplatesWorkflowView-DkXtdhUJ.js} +5 -5
  61. package/dist/assets/{VariablesView-CHXdt5-z.css → VariablesView-BPKo50HJ.css} +18 -18
  62. package/dist/assets/{VariablesView-C1NxBxBQ.js → VariablesView-DHu4ZoMN.js} +5 -5
  63. package/dist/assets/WorkerView-BfxdQiAc.js +148 -0
  64. package/dist/assets/WorkerView-Dm0b18Mh.css +22 -0
  65. package/dist/assets/{WorkflowActivator-CalsATsI.js → WorkflowActivator-CvdQVEtW.js} +2 -2
  66. package/dist/assets/{WorkflowExecutionsInfoAccordion-rUnvuY-5.js → WorkflowExecutionsInfoAccordion-D2GFnpq1.js} +1 -1
  67. package/dist/assets/{WorkflowExecutionsLandingPage-C4K7kfqv.js → WorkflowExecutionsLandingPage-D2bvAsxg.js} +2 -2
  68. package/dist/assets/{WorkflowExecutionsPreview-BO31AO7v.js → WorkflowExecutionsPreview-D6WBsbAG.js} +5 -5
  69. package/dist/assets/{WorkflowExecutionsView-B8x2-iOd.css → WorkflowExecutionsView-CZKkPKqJ.css} +9 -1
  70. package/dist/assets/{WorkflowExecutionsView-B-5zbx_n.js → WorkflowExecutionsView-DI6r5OvZ.js} +6 -6
  71. package/dist/assets/{WorkflowHistory-uvlFDwTJ.js → WorkflowHistory-Dc1f2Tsn.js} +5 -4
  72. package/dist/assets/{WorkflowOnboardingView-B869wGVb.js → WorkflowOnboardingView-DyxvWfZ7.js} +1 -1
  73. package/dist/assets/{WorkflowPreview-BlzWpiO1.js → WorkflowPreview-hC6wSe-Y.js} +1 -1
  74. package/dist/assets/{WorkflowsView-IdgMnIZY.js → WorkflowsView-SIDgO47b.js} +10 -10
  75. package/dist/assets/buttons.esm-BOkmSohe.js +477 -0
  76. package/dist/assets/{dateFormatter-BCrxaIdG.js → dateFormatter-BRi2wSZ-.js} +1 -1
  77. package/dist/assets/{index-QAq8Sa9R.js → index-40I5DMGP.js} +196843 -202970
  78. package/dist/assets/{index-DaeOVPzE.css → index-Dr3zFZlC.css} +136 -594
  79. package/dist/assets/{pushConnection.store-Cdssd0uJ.js → pushConnection.store-w_WxpOeH.js} +1 -1
  80. package/dist/assets/{templateActions-ClPy1BRa.js → templateActions-D4EHdA9n.js} +1 -1
  81. package/dist/assets/{useBugReporting-Bvr7bSQt.js → useBugReporting-CFOQlQpP.js} +1 -1
  82. package/dist/assets/{useExecutionDebugging-CwyVwJqO.js → useExecutionDebugging-LQQWXhPj.js} +3 -2
  83. package/dist/assets/{AnnotationTagsDropdown.ee.vue_vue_type_script_setup_true_lang-CYMqjryg.js → useExecutionHelpers-CXGl_HIp.js} +55 -55
  84. package/dist/assets/{useNodeViewVersionSwitcher-BPNKvsXw.js → useNodeViewVersionSwitcher-BLo5Qp-N.js} +1 -1
  85. package/dist/assets/{usePushConnection-DDXmzoG8.js → usePushConnection-B5ija5f5.js} +9 -10
  86. package/dist/assets/{RunDataAi-x30tU8-0.css → useRunWorkflow-DH7ZzA8t.css} +97 -57
  87. package/dist/assets/useRunWorkflow-MrEKURG4.js +3710 -0
  88. package/dist/assets/{useWorkflowActivate-DKPQP7qy.js → useWorkflowActivate-CKedJlgZ.js} +1 -1
  89. package/dist/index.html +3 -2
  90. package/index.html +1 -0
  91. package/package.json +1 -1
  92. package/vite.config.mts +1 -17
  93. package/dist/assets/CollectionParameter-BDKfoIMJ.js +0 -4
  94. package/dist/assets/FixedCollectionParameter-DXh-j7zB.js +0 -355
  95. package/dist/assets/ProjectTabs-D-87NPFl.js +0 -88
  96. package/dist/assets/ProjectTabs-DjoIePoM.css +0 -3
  97. package/dist/assets/PushConnectionTracker-Bhnghrmf.js +0 -38
  98. package/dist/assets/ResourceListHeader-Bs6GLg32.js +0 -66
  99. package/dist/assets/ResourcesListLayout-ByBNP70B.js +0 -800
  100. package/dist/assets/RunDataAi-CYTNyRq_.js +0 -1539
  101. package/dist/assets/RunDataTable--RIqj8DU.js +0 -608
  102. package/dist/assets/SettingsApiView-DoibCiLo.js +0 -255
  103. package/dist/assets/SettingsFakeDoorView-DpKZ4qWG.css +0 -14
  104. package/dist/assets/SettingsFakeDoorView-DwXDXgon.js +0 -44
  105. package/dist/assets/SettingsLogStreamingView-DHQWns6I.js +0 -519
  106. package/dist/assets/TemplateDetails-BsLVCpdi.js +0 -199
  107. package/dist/assets/TemplateList-Bn7ePHhc.js +0 -433
  108. package/dist/assets/WorkerView-Bj1cvzLg.js +0 -825
  109. package/dist/assets/WorkerView-C_d54L0W.css +0 -181
  110. package/dist/assets/cloud-B6bxVT9F.js +0 -37
@@ -90,7 +90,7 @@
90
90
  }
91
91
  ._datatable_eysnt_30 {
92
92
  padding-bottom: var(--spacing-s);
93
- }.resource-list-loading[data-v-0e2b73c0] {
93
+ }.resource-list-loading[data-v-edd6a4a4] {
94
94
  position: relative;
95
95
  height: 0;
96
96
  width: 100%;
@@ -98,23 +98,23 @@
98
98
  /*
99
99
  Show the loading skeleton only if the loading takes longer than 300ms
100
100
  */
101
- -webkit-animation: 0.01s linear 0.3s forwards changeVisibility-0e2b73c0;
102
- animation: 0.01s linear 0.3s forwards changeVisibility-0e2b73c0;
101
+ -webkit-animation: 0.01s linear 0.3s forwards changeVisibility-edd6a4a4;
102
+ animation: 0.01s linear 0.3s forwards changeVisibility-edd6a4a4;
103
103
  }
104
- .resource-list-loading[data-v-0e2b73c0] .el-skeleton {
104
+ .resource-list-loading[data-v-edd6a4a4] .el-skeleton {
105
105
  position: absolute;
106
106
  height: 100%;
107
107
  width: 100%;
108
108
  overflow: hidden;
109
109
  }
110
- .resource-list-loading[data-v-0e2b73c0] .el-skeleton > div > div:first-child .el-skeleton__item {
110
+ .resource-list-loading[data-v-edd6a4a4] .el-skeleton > div > div:first-child .el-skeleton__item {
111
111
  height: 42px;
112
112
  margin: 0;
113
113
  }
114
- .resource-list-loading[data-v-0e2b73c0] .el-skeleton .el-skeleton__item {
114
+ .resource-list-loading[data-v-edd6a4a4] .el-skeleton .el-skeleton__item {
115
115
  height: 69px;
116
116
  }
117
- @-webkit-keyframes changeVisibility-0e2b73c0 {
117
+ @-webkit-keyframes changeVisibility-edd6a4a4 {
118
118
  from {
119
119
  height: 0;
120
120
  }
@@ -122,7 +122,7 @@ to {
122
122
  height: 100%;
123
123
  }
124
124
  }
125
- @keyframes changeVisibility-0e2b73c0 {
125
+ @keyframes changeVisibility-edd6a4a4 {
126
126
  from {
127
127
  height: 0;
128
128
  }
@@ -1,14 +1,14 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/RunDataJsonActions-Bnn0o9WH.js","assets/index-QAq8Sa9R.js","assets/index-DaeOVPzE.css","assets/RunDataJsonActions-zNKrn8z4.css"])))=>i.map(i=>d[i]);
2
- import { d as defineComponent, ao as useNDVStore, r as ref, jm as nonExistingJsonPath, jn as useElementSize, p as computed, e4 as executionDataToJson, c as openBlock, h as createElementBlock, e as createBlock, w as withCtx, A as unref, f as createCommentVNode, aS as Suspense, i as createVNode, ji as MappingPill, jj as TextWithHighlights, n as normalizeClass, dO as Draggable, bc as defineAsyncComponent, ei as __vitePreload, s as shorten, jl as getMappedExpression, eM as isString, aF as useExternalHooks, aj as useTelemetry, _ as _export_sfc } from "./index-QAq8Sa9R.js";
3
- import { V as VueJsonPretty } from "./NodeViewSwitcher-C1Gp-jKb.js";
4
- import "./RunDataAi-CYTNyRq_.js";
5
- import "./FileSaver.min-B3lWZPMp.js";
6
- import "./dateFormatter-BCrxaIdG.js";
7
- import "./useWorkflowActivate-DKPQP7qy.js";
8
- import "./pushConnection.store-Cdssd0uJ.js";
9
- import "./useExecutionDebugging-CwyVwJqO.js";
10
- import "./useNodeViewVersionSwitcher-BPNKvsXw.js";
11
- import "./useBugReporting-Bvr7bSQt.js";
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/RunDataJsonActions-DiMvLis_.js","assets/index-40I5DMGP.js","assets/index-Dr3zFZlC.css","assets/useRunWorkflow-MrEKURG4.js","assets/useRunWorkflow-DH7ZzA8t.css","assets/RunDataJsonActions-zNKrn8z4.css"])))=>i.map(i=>d[i]);
2
+ import { d as defineComponent, at as useNDVStore, r as ref, jI as nonExistingJsonPath, jJ as useElementSize, p as computed, eC as executionDataToJson, c as openBlock, h as createElementBlock, e as createBlock, w as withCtx, A as unref, f as createCommentVNode, bs as Suspense, i as createVNode, jD as MappingPill, jE as TextWithHighlights, n as normalizeClass, e8 as Draggable, bO as defineAsyncComponent, as as __vitePreload, s as shorten, jH as getMappedExpression, fe as isString, aK as useExternalHooks, ak as useTelemetry, _ as _export_sfc } from "./index-40I5DMGP.js";
3
+ import { V as VueJsonPretty } from "./NodeViewSwitcher-CNfOOUof.js";
4
+ import "./useRunWorkflow-MrEKURG4.js";
5
+ import "./FileSaver.min-CKlTVpWB.js";
6
+ import "./dateFormatter-BRi2wSZ-.js";
7
+ import "./useWorkflowActivate-CKedJlgZ.js";
8
+ import "./pushConnection.store-w_WxpOeH.js";
9
+ import "./useExecutionDebugging-LQQWXhPj.js";
10
+ import "./useNodeViewVersionSwitcher-BLo5Qp-N.js";
11
+ import "./useBugReporting-CFOQlQpP.js";
12
12
  const _sfc_main = /* @__PURE__ */ defineComponent({
13
13
  __name: "RunDataJson",
14
14
  props: {
@@ -25,7 +25,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
25
25
  },
26
26
  setup(__props) {
27
27
  const LazyRunDataJsonActions = defineAsyncComponent(
28
- async () => await __vitePreload(() => import("./RunDataJsonActions-Bnn0o9WH.js"), true ? __vite__mapDeps([0,1,2,3]) : void 0)
28
+ async () => await __vitePreload(() => import("./RunDataJsonActions-DiMvLis_.js"), true ? __vite__mapDeps([0,1,2,3,4,5]) : void 0)
29
29
  );
30
30
  const props = __props;
31
31
  const ndvStore = useNDVStore();
@@ -1,4 +1,5 @@
1
- import { dT as getDefaultExportFromCjs, dS as commonjsGlobal, d as defineComponent, jm as nonExistingJsonPath, ao as useNDVStore, dl as useNodeHelpers, d9 as useClipboard, ej as storeToRefs, d0 as usePinnedData, a as useToast, e0 as mapStores, a0 as useSourceControlStore, T as useWorkflowsStore, cZ as useNodeTypesStore, ec as clearJsonKey, e4 as executionDataToJson, jw as convertPath, g as useI18n, _ as _export_sfc, l as resolveComponent, c as openBlock, h as createElementBlock, e as createBlock, w as withCtx, i as createVNode, k as createTextVNode, t as toDisplayString, j as createBaseVNode, n as normalizeClass } from "./index-QAq8Sa9R.js";
1
+ import { ec as commonjsGlobal, ed as getDefaultExportFromCjs, d as defineComponent, jI as nonExistingJsonPath, at as useNDVStore, T as useWorkflowsStore, bg as useNodeHelpers, aZ as useClipboard, a as useToast, U as useRoute, p as computed, l as resolveComponent, c as openBlock, h as createElementBlock, e as createBlock, A as unref, w as withCtx, i as createVNode, k as createTextVNode, t as toDisplayString, j as createBaseVNode, n as normalizeClass, g as useI18n, ak as useTelemetry, eJ as clearJsonKey, eC as executionDataToJson, jS as convertPath, _ as _export_sfc } from "./index-40I5DMGP.js";
2
+ import { u as usePinnedData } from "./useRunWorkflow-MrEKURG4.js";
2
3
  function commonjsRequire(path) {
3
4
  throw new Error('Could not dynamically require "' + path + '". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.');
4
5
  }
@@ -5299,81 +5300,51 @@ var jsonpath = { exports: {} };
5299
5300
  })(jsonpath);
5300
5301
  var jsonpathExports = jsonpath.exports;
5301
5302
  const jp = /* @__PURE__ */ getDefaultExportFromCjs(jsonpathExports);
5302
- const _sfc_main = defineComponent({
5303
- name: "RunDataJsonActions",
5303
+ const _hoisted_1 = { class: "el-dropdown-link" };
5304
+ const _sfc_main = /* @__PURE__ */ defineComponent({
5305
+ __name: "RunDataJsonActions",
5304
5306
  props: {
5305
- node: {
5306
- type: Object,
5307
- required: true
5308
- },
5309
- paneType: {
5310
- type: String
5311
- },
5312
- pushRef: {
5313
- type: String
5314
- },
5315
- currentOutputIndex: {
5316
- type: Number
5317
- },
5318
- runIndex: {
5319
- type: Number
5320
- },
5321
- displayMode: {
5322
- type: String
5323
- },
5324
- distanceFromActive: {
5325
- type: Number
5326
- },
5327
- selectedJsonPath: {
5328
- type: String,
5329
- default: nonExistingJsonPath
5330
- },
5331
- jsonData: {
5332
- type: Array,
5333
- required: true
5334
- }
5307
+ node: {},
5308
+ paneType: {},
5309
+ pushRef: {},
5310
+ displayMode: {},
5311
+ distanceFromActive: {},
5312
+ selectedJsonPath: { default: nonExistingJsonPath },
5313
+ jsonData: {},
5314
+ currentOutputIndex: {},
5315
+ runIndex: {}
5335
5316
  },
5336
- setup() {
5317
+ setup(__props) {
5318
+ const props = __props;
5337
5319
  const ndvStore = useNDVStore();
5320
+ const workflowsStore = useWorkflowsStore();
5338
5321
  const i18n = useI18n();
5339
5322
  const nodeHelpers = useNodeHelpers();
5340
5323
  const clipboard = useClipboard();
5341
- const { activeNode } = storeToRefs(ndvStore);
5324
+ const { activeNode } = ndvStore;
5342
5325
  const pinnedData = usePinnedData(activeNode);
5343
- return {
5344
- i18n,
5345
- nodeHelpers,
5346
- clipboard,
5347
- pinnedData,
5348
- ...useToast()
5349
- };
5350
- },
5351
- computed: {
5352
- ...mapStores(useNodeTypesStore, useNDVStore, useWorkflowsStore, useSourceControlStore),
5353
- isReadOnlyRoute() {
5354
- var _a, _b;
5355
- return ((_b = (_a = this.$route) == null ? void 0 : _a.meta) == null ? void 0 : _b.readOnlyCanvas) === true;
5356
- },
5357
- activeNode() {
5358
- return this.ndvStore.activeNode;
5359
- },
5360
- noSelection() {
5361
- return this.selectedJsonPath === nonExistingJsonPath;
5362
- },
5363
- normalisedJsonPath() {
5364
- return this.noSelection ? '[""]' : this.selectedJsonPath;
5365
- }
5366
- },
5367
- methods: {
5368
- getJsonValue() {
5369
- let selectedValue = jp.query(this.jsonData, `$${this.normalisedJsonPath}`)[0];
5370
- if (this.noSelection) {
5326
+ const { showToast } = useToast();
5327
+ const telemetry = useTelemetry();
5328
+ const route = useRoute();
5329
+ const isReadOnlyRoute = computed(() => {
5330
+ var _a;
5331
+ return ((_a = route == null ? void 0 : route.meta) == null ? void 0 : _a.readOnlyCanvas) === true;
5332
+ });
5333
+ const noSelection = computed(() => {
5334
+ return props.selectedJsonPath === nonExistingJsonPath;
5335
+ });
5336
+ const normalisedJsonPath = computed(() => {
5337
+ return noSelection.value ? '[""]' : props.selectedJsonPath;
5338
+ });
5339
+ function getJsonValue() {
5340
+ let selectedValue = jp.query(props.jsonData, `$${normalisedJsonPath.value}`)[0];
5341
+ if (noSelection.value) {
5371
5342
  const inExecutionsFrame = window !== window.parent && window.parent.location.pathname.includes("/executions");
5372
- if (this.pinnedData.hasData.value && !inExecutionsFrame) {
5373
- selectedValue = clearJsonKey(this.pinnedData.data.value);
5343
+ if (pinnedData.hasData.value && !inExecutionsFrame) {
5344
+ selectedValue = clearJsonKey(pinnedData.data.value);
5374
5345
  } else {
5375
5346
  selectedValue = executionDataToJson(
5376
- this.nodeHelpers.getNodeInputData(this.node, this.runIndex, this.currentOutputIndex)
5347
+ nodeHelpers.getNodeInputData(props.node, props.runIndex, props.currentOutputIndex)
5377
5348
  );
5378
5349
  }
5379
5350
  }
@@ -5384,33 +5355,32 @@ const _sfc_main = defineComponent({
5384
5355
  value = selectedValue.toString();
5385
5356
  }
5386
5357
  return value;
5387
- },
5388
- getJsonItemPath() {
5389
- const newPath = convertPath(this.normalisedJsonPath);
5358
+ }
5359
+ function getJsonItemPath() {
5360
+ const newPath = convertPath(normalisedJsonPath.value);
5390
5361
  let startPath = "";
5391
5362
  let path = "";
5392
5363
  const pathParts = newPath.split("]");
5393
5364
  const index = pathParts[0].slice(1);
5394
5365
  path = pathParts.slice(1).join("]");
5395
- startPath = `$item(${index}).$node["${this.node.name}"].json`;
5366
+ startPath = `$item(${index}).$node["${props.node.name}"].json`;
5396
5367
  return { path, startPath };
5397
- },
5398
- getJsonParameterPath() {
5399
- const newPath = convertPath(this.normalisedJsonPath);
5368
+ }
5369
+ function getJsonParameterPath() {
5370
+ const newPath = convertPath(normalisedJsonPath.value);
5400
5371
  const path = newPath.split("]").slice(1).join("]");
5401
- let startPath = `$node["${this.node.name}"].json`;
5402
- if (this.distanceFromActive === 1) {
5372
+ let startPath = `$node["${props.node.name}"].json`;
5373
+ if (props.distanceFromActive === 1) {
5403
5374
  startPath = "$json";
5404
5375
  }
5405
5376
  return { path, startPath };
5406
- },
5407
- handleCopyClick(commandData) {
5408
- var _a;
5377
+ }
5378
+ function handleCopyClick(commandData) {
5409
5379
  let value;
5410
5380
  if (commandData.command === "value") {
5411
- value = this.getJsonValue();
5412
- this.showToast({
5413
- title: this.i18n.baseText("runData.copyValue.toast"),
5381
+ value = getJsonValue();
5382
+ showToast({
5383
+ title: i18n.baseText("runData.copyValue.toast"),
5414
5384
  message: "",
5415
5385
  type: "success",
5416
5386
  duration: 2e3
@@ -5419,21 +5389,21 @@ const _sfc_main = defineComponent({
5419
5389
  let startPath = "";
5420
5390
  let path = "";
5421
5391
  if (commandData.command === "itemPath") {
5422
- const jsonItemPath = this.getJsonItemPath();
5392
+ const jsonItemPath = getJsonItemPath();
5423
5393
  startPath = jsonItemPath.startPath;
5424
5394
  path = jsonItemPath.path;
5425
- this.showToast({
5426
- title: this.i18n.baseText("runData.copyItemPath.toast"),
5395
+ showToast({
5396
+ title: i18n.baseText("runData.copyItemPath.toast"),
5427
5397
  message: "",
5428
5398
  type: "success",
5429
5399
  duration: 2e3
5430
5400
  });
5431
5401
  } else if (commandData.command === "parameterPath") {
5432
- const jsonParameterPath = this.getJsonParameterPath();
5402
+ const jsonParameterPath = getJsonParameterPath();
5433
5403
  startPath = jsonParameterPath.startPath;
5434
5404
  path = jsonParameterPath.path;
5435
- this.showToast({
5436
- title: this.i18n.baseText("runData.copyParameterPath.toast"),
5405
+ showToast({
5406
+ title: i18n.baseText("runData.copyParameterPath.toast"),
5437
5407
  message: "",
5438
5408
  type: "success",
5439
5409
  duration: 2e3
@@ -5449,91 +5419,90 @@ const _sfc_main = defineComponent({
5449
5419
  itemPath: "item_path",
5450
5420
  parameterPath: "parameter_path"
5451
5421
  }[commandData.command];
5452
- this.$telemetry.track("User copied ndv data", {
5453
- node_type: (_a = this.activeNode) == null ? void 0 : _a.type,
5454
- push_ref: this.pushRef,
5455
- run_index: this.runIndex,
5422
+ telemetry.track("User copied ndv data", {
5423
+ node_type: activeNode == null ? void 0 : activeNode.type,
5424
+ push_ref: props.pushRef,
5425
+ run_index: props.runIndex,
5456
5426
  view: "json",
5457
5427
  copy_type: copyType,
5458
- workflow_id: this.workflowsStore.workflowId,
5459
- pane: this.paneType,
5460
- in_execution_log: this.isReadOnlyRoute
5428
+ workflow_id: workflowsStore.workflowId,
5429
+ pane: props.paneType,
5430
+ in_execution_log: isReadOnlyRoute.value
5461
5431
  });
5462
- void this.clipboard.copy(value);
5432
+ void clipboard.copy(value);
5463
5433
  }
5464
- }
5465
- });
5466
- const actionsGroup = "_actionsGroup_wlnwy_1";
5467
- const style0 = {
5468
- actionsGroup
5469
- };
5470
- const _hoisted_1 = { class: "el-dropdown-link" };
5471
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
5472
- const _component_n8n_icon_button = resolveComponent("n8n-icon-button");
5473
- const _component_el_dropdown_item = resolveComponent("el-dropdown-item");
5474
- const _component_el_dropdown_menu = resolveComponent("el-dropdown-menu");
5475
- const _component_el_dropdown = resolveComponent("el-dropdown");
5476
- return openBlock(), createElementBlock("div", {
5477
- class: normalizeClass(_ctx.$style.actionsGroup)
5478
- }, [
5479
- _ctx.noSelection ? (openBlock(), createBlock(_component_n8n_icon_button, {
5480
- key: 0,
5481
- title: _ctx.i18n.baseText("runData.copyToClipboard"),
5482
- icon: "copy",
5483
- type: "tertiary",
5484
- circle: false,
5485
- onClick: _cache[0] || (_cache[0] = ($event) => _ctx.handleCopyClick({ command: "value" }))
5486
- }, null, 8, ["title"])) : (openBlock(), createBlock(_component_el_dropdown, {
5487
- key: 1,
5488
- trigger: "click",
5489
- onCommand: _ctx.handleCopyClick
5490
- }, {
5491
- dropdown: withCtx(() => [
5492
- createVNode(_component_el_dropdown_menu, null, {
5493
- default: withCtx(() => [
5494
- createVNode(_component_el_dropdown_item, { command: { command: "value" } }, {
5434
+ return (_ctx, _cache) => {
5435
+ const _component_n8n_icon_button = resolveComponent("n8n-icon-button");
5436
+ const _component_el_dropdown_item = resolveComponent("el-dropdown-item");
5437
+ const _component_el_dropdown_menu = resolveComponent("el-dropdown-menu");
5438
+ const _component_el_dropdown = resolveComponent("el-dropdown");
5439
+ return openBlock(), createElementBlock("div", {
5440
+ class: normalizeClass(_ctx.$style.actionsGroup)
5441
+ }, [
5442
+ noSelection.value ? (openBlock(), createBlock(_component_n8n_icon_button, {
5443
+ key: 0,
5444
+ title: unref(i18n).baseText("runData.copyToClipboard"),
5445
+ icon: "copy",
5446
+ type: "tertiary",
5447
+ circle: false,
5448
+ onClick: _cache[0] || (_cache[0] = ($event) => handleCopyClick({ command: "value" }))
5449
+ }, null, 8, ["title"])) : (openBlock(), createBlock(_component_el_dropdown, {
5450
+ key: 1,
5451
+ trigger: "click",
5452
+ onCommand: handleCopyClick
5453
+ }, {
5454
+ dropdown: withCtx(() => [
5455
+ createVNode(_component_el_dropdown_menu, null, {
5495
5456
  default: withCtx(() => [
5496
- createTextVNode(toDisplayString(_ctx.i18n.baseText("runData.copyValue")), 1)
5497
- ]),
5498
- _: 1
5499
- }),
5500
- createVNode(_component_el_dropdown_item, {
5501
- command: { command: "itemPath" },
5502
- divided: ""
5503
- }, {
5504
- default: withCtx(() => [
5505
- createTextVNode(toDisplayString(_ctx.i18n.baseText("runData.copyItemPath")), 1)
5506
- ]),
5507
- _: 1
5508
- }),
5509
- createVNode(_component_el_dropdown_item, { command: { command: "parameterPath" } }, {
5510
- default: withCtx(() => [
5511
- createTextVNode(toDisplayString(_ctx.i18n.baseText("runData.copyParameterPath")), 1)
5457
+ createVNode(_component_el_dropdown_item, { command: { command: "value" } }, {
5458
+ default: withCtx(() => [
5459
+ createTextVNode(toDisplayString(unref(i18n).baseText("runData.copyValue")), 1)
5460
+ ]),
5461
+ _: 1
5462
+ }),
5463
+ createVNode(_component_el_dropdown_item, {
5464
+ command: { command: "itemPath" },
5465
+ divided: ""
5466
+ }, {
5467
+ default: withCtx(() => [
5468
+ createTextVNode(toDisplayString(unref(i18n).baseText("runData.copyItemPath")), 1)
5469
+ ]),
5470
+ _: 1
5471
+ }),
5472
+ createVNode(_component_el_dropdown_item, { command: { command: "parameterPath" } }, {
5473
+ default: withCtx(() => [
5474
+ createTextVNode(toDisplayString(unref(i18n).baseText("runData.copyParameterPath")), 1)
5475
+ ]),
5476
+ _: 1
5477
+ })
5512
5478
  ]),
5513
5479
  _: 1
5514
5480
  })
5515
5481
  ]),
5482
+ default: withCtx(() => [
5483
+ createBaseVNode("span", _hoisted_1, [
5484
+ createVNode(_component_n8n_icon_button, {
5485
+ title: unref(i18n).baseText("runData.copyToClipboard"),
5486
+ icon: "copy",
5487
+ type: "tertiary",
5488
+ circle: false
5489
+ }, null, 8, ["title"])
5490
+ ])
5491
+ ]),
5516
5492
  _: 1
5517
- })
5518
- ]),
5519
- default: withCtx(() => [
5520
- createBaseVNode("span", _hoisted_1, [
5521
- createVNode(_component_n8n_icon_button, {
5522
- title: _ctx.i18n.baseText("runData.copyToClipboard"),
5523
- icon: "copy",
5524
- type: "tertiary",
5525
- circle: false
5526
- }, null, 8, ["title"])
5527
- ])
5528
- ]),
5529
- _: 1
5530
- }, 8, ["onCommand"]))
5531
- ], 2);
5532
- }
5493
+ }))
5494
+ ], 2);
5495
+ };
5496
+ }
5497
+ });
5498
+ const actionsGroup = "_actionsGroup_wlnwy_1";
5499
+ const style0 = {
5500
+ actionsGroup
5501
+ };
5533
5502
  const cssModules = {
5534
5503
  "$style": style0
5535
5504
  };
5536
- const RunDataJsonActions = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__cssModules", cssModules]]);
5505
+ const RunDataJsonActions = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
5537
5506
  export {
5538
5507
  RunDataJsonActions as default
5539
5508
  };
@@ -1,4 +1,4 @@
1
- import { d as defineComponent, J as useDebounce, r as ref, p as computed, o as onMounted, bZ as onUnmounted, H as watch, l as resolveComponent, c as openBlock, e as createBlock, w as withCtx, i as createVNode, n as normalizeClass, B as normalizeStyle, g as useI18n, _ as _export_sfc } from "./index-QAq8Sa9R.js";
1
+ import { d as defineComponent, J as useDebounce, r as ref, p as computed, o as onMounted, aX as onUnmounted, H as watch, l as resolveComponent, c as openBlock, e as createBlock, w as withCtx, i as createVNode, n as normalizeClass, B as normalizeStyle, g as useI18n, _ as _export_sfc } from "./index-40I5DMGP.js";
2
2
  const COLLAPSED_WIDTH = "30px";
3
3
  const OPEN_WIDTH = "204px";
4
4
  const OPEN_MIN_WIDTH = "120px";
@@ -18,7 +18,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
18
18
  const { debounce } = useDebounce();
19
19
  const inputRef = ref(null);
20
20
  const search = ref(props.modelValue ?? "");
21
- const opened = ref(false);
21
+ const opened = ref(!!search.value);
22
22
  const placeholder = computed(() => {
23
23
  if (props.paneType === "output") {
24
24
  return locale.baseText("ndv.search.placeholder.output");