n8n-editor-ui 1.65.1 → 1.67.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 (104) hide show
  1. package/dist/assets/{AnnotationTagsDropdown.ee.vue_vue_type_script_setup_true_lang-B4V5qQ9q.js → AnnotationTagsDropdown.ee.vue_vue_type_script_setup_true_lang-DbabN_I2.js} +2 -2
  2. package/dist/assets/{AuthView-DDTsGVDI.js → AuthView-DmC24d7S.js} +17 -19
  3. package/dist/assets/{CanvasControls-BrmZza76.js → CanvasControls-BPXQqeeO.js} +1 -1
  4. package/dist/assets/{ChangePasswordView-Txc3JLbg.js → ChangePasswordView-SC3n2vJc.js} +2 -2
  5. package/dist/assets/CollectionParameter-Odk28FRT.js +4 -0
  6. package/dist/assets/{CredentialsView-4YDBK-zY.js → CredentialsView-B3m9CpEC.js} +14 -11
  7. package/dist/assets/{ErrorView-CeJF1j4H.js → ErrorView-D6M8WlVP.js} +1 -1
  8. package/dist/assets/{ExecutionsFilter-BecTg03r.css → ExecutionsFilter-DVxRt-Pz.css} +6 -6
  9. package/dist/assets/{ExecutionsFilter-ODySTrFf.js → ExecutionsFilter-DlZH8tDW.js} +5 -5
  10. package/dist/assets/{ExecutionsView-Cfc2bklt.js → ExecutionsView-DaHtYmF4.js} +4 -4
  11. package/dist/assets/{FileSaver.min-2E3H7obf.js → FileSaver.min-DNytcjKT.js} +1 -1
  12. package/dist/assets/FixedCollectionParameter-CypxYAFK.js +334 -0
  13. package/dist/assets/{FixedCollectionParameter-fI2wTyfY.css → FixedCollectionParameter-DzOGMEdq.css} +10 -10
  14. package/dist/assets/{ForgotMyPasswordView-DY9dxNXM.js → ForgotMyPasswordView-BJ6gd5CS.js} +4 -3
  15. package/dist/assets/{MainHeader-Bc5G9_Uq.css → MainHeader-D56WYRMG.css} +9 -9
  16. package/dist/assets/{MainHeader-2746Uag0.js → MainHeader-DniXcGMK.js} +92 -98
  17. package/dist/assets/{MainSidebar-cNW0UJBC.css → MainSidebar-BRYJRpOA.css} +2 -2
  18. package/dist/assets/{MainSidebar-Deuxu_ZA.js → MainSidebar-NwOfijmV.js} +7 -6
  19. package/dist/assets/{NodeCreation-C2dcJSCB.js → NodeCreation-Ce1ct2i3.js} +6 -6
  20. package/dist/assets/{NodeCreator-DFg5sW0J.css → NodeCreator-CvOLgSO_.css} +4 -4
  21. package/dist/assets/{NodeCreator-DbLN5EpO.js → NodeCreator-DMLTbzAt.js} +38 -25
  22. package/dist/assets/{NodeViewSwitcher-C7fT1hjp.js → NodeViewSwitcher-B9JUn3eY.js} +448 -332
  23. package/dist/assets/{NodeViewSwitcher-Np-f2Pkl.css → NodeViewSwitcher-CnP5aYyg.css} +138 -138
  24. package/dist/assets/{ProjectCardBadge.vue_vue_type_script_setup_true_lang-1r16lWfz.js → ProjectCardBadge-C3QU-WmO.js} +63 -30
  25. package/dist/assets/ProjectCardBadge-DPUG4BoB.css +20 -0
  26. package/dist/assets/{ProjectSettings-B-0hlVBb.js → ProjectSettings-BvcEg3hx.js} +35 -6
  27. package/dist/assets/{ProjectTabs-BLgXz0GM.js → ProjectTabs-Dve3xFj9.js} +1 -1
  28. package/dist/assets/PushConnectionTracker.vue_vue_type_script_setup_true_lang-DlJOpf7N.js +39 -0
  29. package/dist/assets/ResourceListHeader-B2sxe6HT.js +66 -0
  30. package/dist/assets/ResourceListHeader-DgE1VPUF.css +19 -0
  31. package/dist/assets/ResourcesListLayout-Bc4__nvw.js +692 -0
  32. package/dist/assets/{ResourcesListLayout-DAvOygN7.css → ResourcesListLayout-Ci-K1bH3.css} +17 -12
  33. package/dist/assets/{RunDataAi-DWyv1KtV.js → RunDataAi-BKu1beM6.js} +45 -43
  34. package/dist/assets/{RunDataJson-BkOB7Mi5.js → RunDataJson-ea5u1EeD.js} +12 -12
  35. package/dist/assets/{RunDataJsonActions-K_wfkbT2.js → RunDataJsonActions-Dflnt8gK.js} +127 -159
  36. package/dist/assets/{RunDataSearch-CdIFsfvp.js → RunDataSearch-DKNVmEqa.js} +1 -1
  37. package/dist/assets/{RunDataTable-CSd24Wzt.js → RunDataTable-DISLWxMc.js} +1 -1
  38. package/dist/assets/{SamlOnboarding-C7jmImZi.js → SamlOnboarding-CPvGRYUg.js} +2 -2
  39. package/dist/assets/SettingsApiView-BFj9fDL9.js +227 -0
  40. package/dist/assets/{SettingsCommunityNodesView-QbJKukss.js → SettingsCommunityNodesView-nJFDrtIR.js} +185 -195
  41. package/dist/assets/{SettingsExternalSecrets-CBL5kSMf.js → SettingsExternalSecrets-0-mj45K-.js} +3 -3
  42. package/dist/assets/{SettingsLdapView-CHwYGxkx.js → SettingsLdapView-BhBxX72w.js} +3 -3
  43. package/dist/assets/SettingsLogStreamingView-CmEJrEOv.js +500 -0
  44. package/dist/assets/{SettingsPersonalView-BfL80wvU.js → SettingsPersonalView-C__lC8Vv.js} +1 -1
  45. package/dist/assets/{SettingsSourceControl-CrPjF7Tl.js → SettingsSourceControl-CMoS5B5P.js} +3 -3
  46. package/dist/assets/{SettingsSso-CoM-3Knf.js → SettingsSso-DJfrl1Rl.js} +3 -3
  47. package/dist/assets/{SettingsUsageAndPlan-BeHnYh3Q.js → SettingsUsageAndPlan-CWQ5uVrG.js} +7 -6
  48. package/dist/assets/{SettingsUsageAndPlan-C76Ty5yF.css → SettingsUsageAndPlan-vijI-va0.css} +3 -3
  49. package/dist/assets/{SettingsUsersView-KIj2fh50.js → SettingsUsersView-Cvr6Digb.js} +4 -3
  50. package/dist/assets/{SettingsView-Chfmh8Oz.js → SettingsView-DtGga45F.js} +2 -30
  51. package/dist/assets/{SetupView-Cj9NK5oF.js → SetupView-DkJH96By.js} +2 -2
  52. package/dist/assets/{SetupWorkflowCredentialsButton-1LXFp3M1.js → SetupWorkflowCredentialsButton-C1Jv_-V5.js} +1 -1
  53. package/dist/assets/{SetupWorkflowFromTemplateView-nyPe7OpV.js → SetupWorkflowFromTemplateView-WSzVMgC4.js} +3 -3
  54. package/dist/assets/{SigninView-TCarjEXK.js → SigninView-xej8y-Vu.js} +4 -3
  55. package/dist/assets/{SignoutView-Delor5Ax.js → SignoutView-Dc8fBBIm.js} +1 -1
  56. package/dist/assets/{SignupView-DOREfT5l.js → SignupView-CKA28Xc8.js} +4 -3
  57. package/dist/assets/TemplateDetails-Pi49rFlS.js +179 -0
  58. package/dist/assets/TemplateList-BncQL783.js +371 -0
  59. package/dist/assets/{TemplatesCollectionView-DtaG85Jk.js → TemplatesCollectionView-C9PKPo5y.js} +8 -8
  60. package/dist/assets/{TemplatesSearchView-CqH8oefx.js → TemplatesSearchView-65taIL-M.js} +530 -577
  61. package/dist/assets/{TemplatesView-B9Lz_EzK.js → TemplatesView-DkP9JWHk.js} +32 -37
  62. package/dist/assets/{TemplatesWorkflowView-BfqaXGKg.js → TemplatesWorkflowView-B5uc0BtL.js} +5 -5
  63. package/dist/assets/{VariablesView-CHXdt5-z.css → VariablesView-BPKo50HJ.css} +18 -18
  64. package/dist/assets/{VariablesView-BH0opxm_.js → VariablesView-DV1-KgmN.js} +6 -4
  65. package/dist/assets/WorkerView-5P9lg6ew.js +148 -0
  66. package/dist/assets/WorkerView-Dm0b18Mh.css +22 -0
  67. package/dist/assets/{WorkflowActivator-u3HKoT5w.css → WorkflowActivator-D8FiI2jP.css} +2 -2
  68. package/dist/assets/{WorkflowActivator-ByVmTkYU.js → WorkflowActivator-Dc_Un-Af.js} +15 -4
  69. package/dist/assets/{WorkflowExecutionsInfoAccordion-BqbBanz6.js → WorkflowExecutionsInfoAccordion-BLyC6lr5.js} +1 -1
  70. package/dist/assets/{WorkflowExecutionsLandingPage-5u6ZDaFD.js → WorkflowExecutionsLandingPage-Dsa6Bgkn.js} +2 -2
  71. package/dist/assets/{WorkflowExecutionsPreview-BGb9AU3g.js → WorkflowExecutionsPreview-B_X-enUV.js} +5 -5
  72. package/dist/assets/{WorkflowExecutionsView-KTlGfaLi.js → WorkflowExecutionsView-Bkz3Sig-.js} +5 -5
  73. package/dist/assets/{WorkflowHistory-DqXCxz1p.js → WorkflowHistory-BiPMooAv.js} +5 -4
  74. package/dist/assets/{WorkflowOnboardingView-Cx7hbCo8.js → WorkflowOnboardingView-XHuS6lCs.js} +1 -1
  75. package/dist/assets/{WorkflowPreview-BTF7OmQM.css → WorkflowPreview-Bpiv2_RO.css} +8 -8
  76. package/dist/assets/{WorkflowPreview-DAQ7mvNi.js → WorkflowPreview-DxZKd23H.js} +8 -8
  77. package/dist/assets/{WorkflowsView-ChU_EKMN.js → WorkflowsView-BBaLVqJs.js} +14 -12
  78. package/dist/assets/{dateFormatter-CfOgAO2k.js → dateFormatter-C53K7zEn.js} +1 -1
  79. package/dist/assets/{index-BUjeBzRM.js → index-7YFQEQmt.js} +36340 -36753
  80. package/dist/assets/{index-DoeC8czU.css → index-BFH_KxyA.css} +162 -130
  81. package/dist/assets/{pushConnection.store-BKOlrr3c.js → pushConnection.store-DbprXL-x.js} +1 -1
  82. package/dist/assets/{templateActions-BTYgtgDN.js → templateActions-QFQD8amJ.js} +1 -1
  83. package/dist/assets/{useBugReporting-lkBiyjPH.js → useBugReporting-IgwBNdXI.js} +1 -1
  84. package/dist/assets/{useExecutionDebugging-C91tSyen.js → useExecutionDebugging-CLORI_Ma.js} +5 -4
  85. package/dist/assets/{useNodeViewVersionSwitcher-D2zGsXPQ.js → useNodeViewVersionSwitcher-CJLQ5lju.js} +2 -2
  86. package/dist/assets/{usePushConnection-CQXTn-bO.js → usePushConnection-DjPgTuLw.js} +9 -10
  87. package/dist/assets/{useWorkflowActivate-DbL83lsy.js → useWorkflowActivate-D_gK841h.js} +1 -1
  88. package/dist/index.html +3 -2
  89. package/index.html +1 -0
  90. package/package.json +1 -1
  91. package/vite.config.mts +1 -17
  92. package/dist/assets/CollectionParameter-D35RQT1r.js +0 -4
  93. package/dist/assets/FixedCollectionParameter-D6dq95nm.js +0 -355
  94. package/dist/assets/PushConnectionTracker-CGjuGy8P.js +0 -38
  95. package/dist/assets/ResourcesListLayout-D_C1ZSTp.js +0 -765
  96. package/dist/assets/SettingsApiView-4M-cLSvs.js +0 -255
  97. package/dist/assets/SettingsFakeDoorView-CEbWEc6P.js +0 -44
  98. package/dist/assets/SettingsFakeDoorView-DpKZ4qWG.css +0 -14
  99. package/dist/assets/SettingsLogStreamingView-DZ71hi2g.js +0 -519
  100. package/dist/assets/TemplateDetails-rjxog6MY.js +0 -199
  101. package/dist/assets/TemplateList-DYMX_2qI.js +0 -433
  102. package/dist/assets/WorkerView-BRiI1Adt.js +0 -825
  103. package/dist/assets/WorkerView-C_d54L0W.css +0 -181
  104. package/dist/assets/cloud-CGOqFKZO.js +0 -37
@@ -1,519 +0,0 @@
1
- import { d as defineComponent, ak as useMessage, a7 as EnterpriseEditionFeature, dF as deepCopy, hM as defaultMessageEventBusDestinationOptions, e0 as mapStores, hN as useLogStreamingStore, ad as MODAL_CONFIRM, _ as _export_sfc, c as openBlock, e as createBlock, w as withCtx, j as createBaseVNode, i as createVNode, k as createTextVNode, t as toDisplayString, n as normalizeClass, l as resolveComponent, v as createEventBus, a3 as useDocumentTitle, dt as useCredentialsStore, K as useUIStore, T as useWorkflowsStore, m as useSettingsStore, am as hasPermission, e_ as v4, C as nextTick, hO as LOG_STREAM_MODAL_KEY, h as createElementBlock, F as Fragment, f as createCommentVNode, ar as withDirectives, z as renderList, c9 as resolveDirective } from "./index-BUjeBzRM.js";
2
- const DESTINATION_LIST_ITEM_ACTIONS = {
3
- OPEN: "open",
4
- DELETE: "delete"
5
- };
6
- const _sfc_main$1 = defineComponent({
7
- components: {},
8
- setup() {
9
- return {
10
- ...useMessage()
11
- };
12
- },
13
- data() {
14
- return {
15
- EnterpriseEditionFeature,
16
- nodeParameters: {}
17
- };
18
- },
19
- props: {
20
- eventBus: {
21
- type: Object
22
- },
23
- destination: {
24
- type: Object,
25
- required: true,
26
- default: deepCopy(defaultMessageEventBusDestinationOptions)
27
- },
28
- readonly: Boolean
29
- },
30
- mounted() {
31
- var _a;
32
- this.nodeParameters = Object.assign(
33
- deepCopy(defaultMessageEventBusDestinationOptions),
34
- this.destination
35
- );
36
- (_a = this.eventBus) == null ? void 0 : _a.on("destinationWasSaved", this.onDestinationWasSaved);
37
- },
38
- beforeUnmount() {
39
- var _a;
40
- (_a = this.eventBus) == null ? void 0 : _a.off("destinationWasSaved", this.onDestinationWasSaved);
41
- },
42
- computed: {
43
- ...mapStores(useLogStreamingStore),
44
- actions() {
45
- const actions = [
46
- {
47
- label: this.$locale.baseText("workflows.item.open"),
48
- value: DESTINATION_LIST_ITEM_ACTIONS.OPEN
49
- }
50
- ];
51
- if (!this.readonly) {
52
- actions.push({
53
- label: this.$locale.baseText("workflows.item.delete"),
54
- value: DESTINATION_LIST_ITEM_ACTIONS.DELETE
55
- });
56
- }
57
- return actions;
58
- },
59
- typeLabelName() {
60
- return `settings.log-streaming.${this.destination.__type}`;
61
- }
62
- },
63
- methods: {
64
- onDestinationWasSaved() {
65
- const updatedDestination = this.logStreamingStore.getDestination(this.destination.id);
66
- if (updatedDestination) {
67
- this.nodeParameters = Object.assign(
68
- deepCopy(defaultMessageEventBusDestinationOptions),
69
- this.destination
70
- );
71
- }
72
- },
73
- async onClick(event) {
74
- const cardActions2 = this.$refs.cardActions;
75
- const target = event.target;
76
- if (cardActions2 === target || (cardActions2 == null ? void 0 : cardActions2.contains(target)) || (target == null ? void 0 : target.contains(cardActions2))) {
77
- return;
78
- }
79
- this.$emit("edit", this.destination.id);
80
- },
81
- onEnabledSwitched(state) {
82
- this.nodeParameters.enabled = state;
83
- void this.saveDestination();
84
- },
85
- async saveDestination() {
86
- await this.logStreamingStore.saveDestination(this.nodeParameters);
87
- },
88
- async onAction(action) {
89
- if (action === DESTINATION_LIST_ITEM_ACTIONS.OPEN) {
90
- this.$emit("edit", this.destination.id);
91
- } else if (action === DESTINATION_LIST_ITEM_ACTIONS.DELETE) {
92
- const deleteConfirmed = await this.confirm(
93
- this.$locale.baseText("settings.log-streaming.destinationDelete.message", {
94
- interpolate: { destinationName: this.destination.label }
95
- }),
96
- this.$locale.baseText("settings.log-streaming.destinationDelete.headline"),
97
- {
98
- type: "warning",
99
- confirmButtonText: this.$locale.baseText(
100
- "settings.log-streaming.destinationDelete.confirmButtonText"
101
- ),
102
- cancelButtonText: this.$locale.baseText(
103
- "settings.log-streaming.destinationDelete.cancelButtonText"
104
- )
105
- }
106
- );
107
- if (deleteConfirmed !== MODAL_CONFIRM) {
108
- return;
109
- }
110
- this.$emit("remove", this.destination.id);
111
- }
112
- }
113
- }
114
- });
115
- const cardLink = "_cardLink_r6102_1";
116
- const activeStatusText = "_activeStatusText_r6102_11";
117
- const cardHeading = "_cardHeading_r6102_19";
118
- const cardDescription = "_cardDescription_r6102_25";
119
- const cardActions = "_cardActions_r6102_32";
120
- const style0$1 = {
121
- cardLink,
122
- activeStatusText,
123
- cardHeading,
124
- cardDescription,
125
- cardActions
126
- };
127
- function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
128
- const _component_n8n_heading = resolveComponent("n8n-heading");
129
- const _component_n8n_text = resolveComponent("n8n-text");
130
- const _component_el_switch = resolveComponent("el-switch");
131
- const _component_n8n_action_toggle = resolveComponent("n8n-action-toggle");
132
- const _component_n8n_card = resolveComponent("n8n-card");
133
- return openBlock(), createBlock(_component_n8n_card, {
134
- class: normalizeClass(_ctx.$style.cardLink),
135
- "data-test-id": "destination-card",
136
- onClick: _ctx.onClick
137
- }, {
138
- header: withCtx(() => [
139
- createBaseVNode("div", null, [
140
- createVNode(_component_n8n_heading, {
141
- tag: "h2",
142
- bold: "",
143
- class: normalizeClass(_ctx.$style.cardHeading)
144
- }, {
145
- default: withCtx(() => [
146
- createTextVNode(toDisplayString(_ctx.destination.label), 1)
147
- ]),
148
- _: 1
149
- }, 8, ["class"]),
150
- createBaseVNode("div", {
151
- class: normalizeClass(_ctx.$style.cardDescription)
152
- }, [
153
- createVNode(_component_n8n_text, {
154
- color: "text-light",
155
- size: "small"
156
- }, {
157
- default: withCtx(() => [
158
- createBaseVNode("span", null, toDisplayString(_ctx.$locale.baseText(_ctx.typeLabelName)), 1)
159
- ]),
160
- _: 1
161
- })
162
- ], 2)
163
- ])
164
- ]),
165
- append: withCtx(() => [
166
- createBaseVNode("div", {
167
- ref: "cardActions",
168
- class: normalizeClass(_ctx.$style.cardActions)
169
- }, [
170
- createBaseVNode("div", {
171
- class: normalizeClass(_ctx.$style.activeStatusText),
172
- "data-test-id": "destination-activator-status"
173
- }, [
174
- _ctx.nodeParameters.enabled ? (openBlock(), createBlock(_component_n8n_text, {
175
- key: 0,
176
- color: "success",
177
- size: "small",
178
- bold: ""
179
- }, {
180
- default: withCtx(() => [
181
- createTextVNode(toDisplayString(_ctx.$locale.baseText("workflowActivator.active")), 1)
182
- ]),
183
- _: 1
184
- })) : (openBlock(), createBlock(_component_n8n_text, {
185
- key: 1,
186
- color: "text-base",
187
- size: "small",
188
- bold: ""
189
- }, {
190
- default: withCtx(() => [
191
- createTextVNode(toDisplayString(_ctx.$locale.baseText("workflowActivator.inactive")), 1)
192
- ]),
193
- _: 1
194
- }))
195
- ], 2),
196
- createVNode(_component_el_switch, {
197
- class: "mr-s",
198
- disabled: _ctx.readonly,
199
- "model-value": _ctx.nodeParameters.enabled,
200
- title: _ctx.nodeParameters.enabled ? _ctx.$locale.baseText("workflowActivator.deactivateWorkflow") : _ctx.$locale.baseText("workflowActivator.activateWorkflow"),
201
- "active-color": "#13ce66",
202
- "inactive-color": "#8899AA",
203
- "data-test-id": "workflow-activate-switch",
204
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.onEnabledSwitched($event))
205
- }, null, 8, ["disabled", "model-value", "title"]),
206
- createVNode(_component_n8n_action_toggle, {
207
- actions: _ctx.actions,
208
- theme: "dark",
209
- onAction: _ctx.onAction
210
- }, null, 8, ["actions", "onAction"])
211
- ], 2)
212
- ]),
213
- _: 1
214
- }, 8, ["class", "onClick"]);
215
- }
216
- const cssModules$1 = {
217
- "$style": style0$1
218
- };
219
- const EventDestinationCard = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__cssModules", cssModules$1]]);
220
- const _sfc_main = defineComponent({
221
- name: "SettingsLogStreamingView",
222
- components: {
223
- EventDestinationCard
224
- },
225
- props: {},
226
- data() {
227
- return {
228
- eventBus: createEventBus(),
229
- destinations: Array,
230
- disableLicense: false,
231
- allDestinations: [],
232
- documentTitle: useDocumentTitle()
233
- };
234
- },
235
- async mounted() {
236
- this.documentTitle.set(this.$locale.baseText("settings.log-streaming.heading"));
237
- if (!this.isLicensed) return;
238
- await this.credentialsStore.fetchCredentialTypes(false);
239
- await this.credentialsStore.fetchAllCredentials();
240
- this.uiStore.nodeViewInitialized = false;
241
- await this.getDestinationDataFromBackend();
242
- this.logStreamingStore.$onAction(({ name, after }) => {
243
- if (name === "removeDestination" || name === "updateDestination") {
244
- after(async () => {
245
- this.$forceUpdate();
246
- });
247
- }
248
- });
249
- this.eventBus.on("destinationWasSaved", this.onDestinationWasSaved);
250
- this.eventBus.on("remove", this.onRemove);
251
- this.eventBus.on("closing", this.onBusClosing);
252
- },
253
- beforeUnmount() {
254
- this.eventBus.off("destinationWasSaved", this.onDestinationWasSaved);
255
- this.eventBus.off("remove", this.onRemove);
256
- this.eventBus.off("closing", this.onBusClosing);
257
- },
258
- computed: {
259
- ...mapStores(
260
- useSettingsStore,
261
- useLogStreamingStore,
262
- useWorkflowsStore,
263
- useUIStore,
264
- useCredentialsStore
265
- ),
266
- sortedItemKeysByLabel() {
267
- var _a;
268
- const sortedKeys = [];
269
- for (const [key, value] of Object.entries(this.logStreamingStore.items)) {
270
- sortedKeys.push({ key, label: ((_a = value.destination) == null ? void 0 : _a.label) ?? "Destination" });
271
- }
272
- return sortedKeys.sort((a, b) => a.label.localeCompare(b.label));
273
- },
274
- environment() {
275
- return "production";
276
- },
277
- isLicensed() {
278
- if (this.disableLicense) return false;
279
- return this.settingsStore.isEnterpriseFeatureEnabled[EnterpriseEditionFeature.LogStreaming];
280
- },
281
- canManageLogStreaming() {
282
- return hasPermission(["rbac"], { rbac: { scope: "logStreaming:manage" } });
283
- }
284
- },
285
- methods: {
286
- onDestinationWasSaved() {
287
- this.$forceUpdate();
288
- },
289
- onBusClosing() {
290
- this.workflowsStore.removeAllNodes({ setStateDirty: false, removePinData: true });
291
- this.uiStore.stateIsDirty = false;
292
- },
293
- async getDestinationDataFromBackend() {
294
- this.logStreamingStore.clearEventNames();
295
- this.logStreamingStore.clearDestinations();
296
- this.allDestinations = [];
297
- const eventNamesData = await this.logStreamingStore.fetchEventNames();
298
- if (eventNamesData) {
299
- for (const eventName of eventNamesData) {
300
- this.logStreamingStore.addEventName(eventName);
301
- }
302
- }
303
- const destinationData = await this.logStreamingStore.fetchDestinations();
304
- if (destinationData) {
305
- for (const destination of destinationData) {
306
- this.logStreamingStore.addDestination(destination);
307
- this.allDestinations.push(destination);
308
- }
309
- }
310
- this.$forceUpdate();
311
- },
312
- goToUpgrade() {
313
- void this.uiStore.goToUpgrade("log-streaming", "upgrade-log-streaming");
314
- },
315
- storeHasItems() {
316
- return this.logStreamingStore.items && Object.keys(this.logStreamingStore.items).length > 0;
317
- },
318
- async addDestination() {
319
- const newDestination = deepCopy(defaultMessageEventBusDestinationOptions);
320
- newDestination.id = v4();
321
- this.logStreamingStore.addDestination(newDestination);
322
- await nextTick();
323
- this.uiStore.openModalWithData({
324
- name: LOG_STREAM_MODAL_KEY,
325
- data: {
326
- destination: newDestination,
327
- isNew: true,
328
- eventBus: this.eventBus
329
- }
330
- });
331
- },
332
- async onRemove(destinationId) {
333
- if (!destinationId) return;
334
- await this.logStreamingStore.deleteDestination(destinationId);
335
- const foundNode = this.workflowsStore.getNodeByName(destinationId);
336
- if (foundNode) {
337
- this.workflowsStore.removeNode(foundNode);
338
- }
339
- },
340
- async onEdit(destinationId) {
341
- if (!destinationId) return;
342
- const editDestination = this.logStreamingStore.getDestination(destinationId);
343
- if (editDestination) {
344
- this.uiStore.openModalWithData({
345
- name: LOG_STREAM_MODAL_KEY,
346
- data: {
347
- destination: editDestination,
348
- isNew: false,
349
- eventBus: this.eventBus
350
- }
351
- });
352
- }
353
- }
354
- }
355
- });
356
- const header = "_header_brzxt_1";
357
- const destinationItem = "_destinationItem_brzxt_11";
358
- const style0 = {
359
- header,
360
- destinationItem
361
- };
362
- const _hoisted_1 = { class: "mb-2xl" };
363
- const _hoisted_2 = { class: "ml-m" };
364
- const _hoisted_3 = { class: "mb-l" };
365
- const _hoisted_4 = { class: "mt-m text-right" };
366
- const _hoisted_5 = {
367
- key: 1,
368
- "data-test-id": "action-box-licensed"
369
- };
370
- const _hoisted_6 = {
371
- key: 0,
372
- class: "mb-l"
373
- };
374
- const _hoisted_7 = { "data-test-id": "action-box-unlicensed" };
375
- function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
376
- const _component_n8n_heading = resolveComponent("n8n-heading");
377
- const _component_el_switch = resolveComponent("el-switch");
378
- const _component_n8n_info_tip = resolveComponent("n8n-info-tip");
379
- const _component_EventDestinationCard = resolveComponent("EventDestinationCard");
380
- const _component_el_col = resolveComponent("el-col");
381
- const _component_el_row = resolveComponent("el-row");
382
- const _component_n8n_button = resolveComponent("n8n-button");
383
- const _component_n8n_action_box = resolveComponent("n8n-action-box");
384
- const _directive_n8n_html = resolveDirective("n8n-html");
385
- return openBlock(), createElementBlock("div", null, [
386
- createBaseVNode("div", {
387
- class: normalizeClass(_ctx.$style.header)
388
- }, [
389
- createBaseVNode("div", _hoisted_1, [
390
- createVNode(_component_n8n_heading, { size: "2xlarge" }, {
391
- default: withCtx(() => [
392
- createTextVNode(toDisplayString(_ctx.$locale.baseText(`settings.log-streaming.heading`)), 1)
393
- ]),
394
- _: 1
395
- }),
396
- _ctx.environment !== "production" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
397
- createBaseVNode("strong", _hoisted_2, "Disable License (" + toDisplayString(_ctx.environment) + ") ", 1),
398
- createVNode(_component_el_switch, {
399
- modelValue: _ctx.disableLicense,
400
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.disableLicense = $event),
401
- size: "large",
402
- "data-test-id": "disable-license-toggle"
403
- }, null, 8, ["modelValue"])
404
- ], 64)) : createCommentVNode("", true)
405
- ])
406
- ], 2),
407
- _ctx.isLicensed ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
408
- createBaseVNode("div", _hoisted_3, [
409
- createVNode(_component_n8n_info_tip, {
410
- theme: "info",
411
- type: "note"
412
- }, {
413
- default: withCtx(() => [
414
- withDirectives(createBaseVNode("span", null, null, 512), [
415
- [_directive_n8n_html, _ctx.$locale.baseText("settings.log-streaming.infoText")]
416
- ])
417
- ]),
418
- _: 1
419
- })
420
- ]),
421
- _ctx.storeHasItems() ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
422
- (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.sortedItemKeysByLabel, (item) => {
423
- return openBlock(), createBlock(_component_el_row, {
424
- key: item.key,
425
- gutter: 10,
426
- class: normalizeClass(_ctx.$style.destinationItem)
427
- }, {
428
- default: withCtx(() => {
429
- var _a;
430
- return [
431
- ((_a = _ctx.logStreamingStore.items[item.key]) == null ? void 0 : _a.destination) ? (openBlock(), createBlock(_component_el_col, { key: 0 }, {
432
- default: withCtx(() => {
433
- var _a2;
434
- return [
435
- createVNode(_component_EventDestinationCard, {
436
- destination: (_a2 = _ctx.logStreamingStore.items[item.key]) == null ? void 0 : _a2.destination,
437
- "event-bus": _ctx.eventBus,
438
- readonly: !_ctx.canManageLogStreaming,
439
- onRemove: ($event) => {
440
- var _a3, _b;
441
- return _ctx.onRemove((_b = (_a3 = _ctx.logStreamingStore.items[item.key]) == null ? void 0 : _a3.destination) == null ? void 0 : _b.id);
442
- },
443
- onEdit: ($event) => {
444
- var _a3, _b;
445
- return _ctx.onEdit((_b = (_a3 = _ctx.logStreamingStore.items[item.key]) == null ? void 0 : _a3.destination) == null ? void 0 : _b.id);
446
- }
447
- }, null, 8, ["destination", "event-bus", "readonly", "onRemove", "onEdit"])
448
- ];
449
- }),
450
- _: 2
451
- }, 1024)) : createCommentVNode("", true)
452
- ];
453
- }),
454
- _: 2
455
- }, 1032, ["class"]);
456
- }), 128)),
457
- createBaseVNode("div", _hoisted_4, [
458
- _ctx.canManageLogStreaming ? (openBlock(), createBlock(_component_n8n_button, {
459
- key: 0,
460
- size: "large",
461
- onClick: _ctx.addDestination
462
- }, {
463
- default: withCtx(() => [
464
- createTextVNode(toDisplayString(_ctx.$locale.baseText(`settings.log-streaming.add`)), 1)
465
- ]),
466
- _: 1
467
- }, 8, ["onClick"])) : createCommentVNode("", true)
468
- ])
469
- ], 64)) : (openBlock(), createElementBlock("div", _hoisted_5, [
470
- createVNode(_component_n8n_action_box, {
471
- "button-text": _ctx.$locale.baseText(`settings.log-streaming.add`),
472
- "onClick:button": _ctx.addDestination
473
- }, {
474
- heading: withCtx(() => [
475
- withDirectives(createBaseVNode("span", null, null, 512), [
476
- [_directive_n8n_html, _ctx.$locale.baseText(`settings.log-streaming.addFirstTitle`)]
477
- ])
478
- ]),
479
- _: 1
480
- }, 8, ["button-text", "onClick:button"])
481
- ]))
482
- ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
483
- _ctx.$locale.baseText("settings.log-streaming.infoText") ? (openBlock(), createElementBlock("div", _hoisted_6, [
484
- createVNode(_component_n8n_info_tip, {
485
- theme: "info",
486
- type: "note"
487
- }, {
488
- default: withCtx(() => [
489
- withDirectives(createBaseVNode("span", null, null, 512), [
490
- [_directive_n8n_html, _ctx.$locale.baseText("settings.log-streaming.infoText")]
491
- ])
492
- ]),
493
- _: 1
494
- })
495
- ])) : createCommentVNode("", true),
496
- createBaseVNode("div", _hoisted_7, [
497
- createVNode(_component_n8n_action_box, {
498
- description: _ctx.$locale.baseText("settings.log-streaming.actionBox.description"),
499
- "button-text": _ctx.$locale.baseText("settings.log-streaming.actionBox.button"),
500
- "onClick:button": _ctx.goToUpgrade
501
- }, {
502
- heading: withCtx(() => [
503
- withDirectives(createBaseVNode("span", null, null, 512), [
504
- [_directive_n8n_html, _ctx.$locale.baseText("settings.log-streaming.actionBox.title")]
505
- ])
506
- ]),
507
- _: 1
508
- }, 8, ["description", "button-text", "onClick:button"])
509
- ])
510
- ], 64))
511
- ]);
512
- }
513
- const cssModules = {
514
- "$style": style0
515
- };
516
- const SettingsLogStreamingView = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__cssModules", cssModules]]);
517
- export {
518
- SettingsLogStreamingView as default
519
- };