n8n-editor-ui 1.65.0 → 1.66.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 (86) hide show
  1. package/dist/assets/{AnnotationTagsDropdown.ee.vue_vue_type_script_setup_true_lang-zjBSFUdu.js → AnnotationTagsDropdown.ee.vue_vue_type_script_setup_true_lang-CYMqjryg.js} +2 -2
  2. package/dist/assets/{AuthView-DT0UnP_r.js → AuthView-31vu0x_3.js} +1 -1
  3. package/dist/assets/{CanvasControls-D6wfBw3W.js → CanvasControls-DkT1iClJ.js} +1 -1
  4. package/dist/assets/{ChangePasswordView-la8y8xt1.js → ChangePasswordView-DkhZAh4j.js} +2 -2
  5. package/dist/assets/CollectionParameter-BDKfoIMJ.js +4 -0
  6. package/dist/assets/{CredentialsView-0RYVVULU.js → CredentialsView-Du-lMwPW.js} +8 -7
  7. package/dist/assets/{ErrorView-C_zReEUp.js → ErrorView-CROJIl1H.js} +1 -1
  8. package/dist/assets/{ExecutionsFilter-Dh59WT7U.js → ExecutionsFilter-132FKb5o.js} +2 -2
  9. package/dist/assets/{ExecutionsView-gmiNPpst.js → ExecutionsView-B41cgHPD.js} +4 -4
  10. package/dist/assets/{FileSaver.min-CaVc_BXw.js → FileSaver.min-B3lWZPMp.js} +1 -1
  11. package/dist/assets/{FixedCollectionParameter-CkQiNesA.js → FixedCollectionParameter-DXh-j7zB.js} +1 -1
  12. package/dist/assets/{ForgotMyPasswordView-B7JE47s6.js → ForgotMyPasswordView-DKrE7dUn.js} +2 -2
  13. package/dist/assets/{MainHeader-tG2K1hX3.js → MainHeader-CW31WCmm.js} +8 -8
  14. package/dist/assets/{MainSidebar-9NQDylGY.js → MainSidebar-Dny90RtO.js} +2 -2
  15. package/dist/assets/{NodeCreation-DTzzm251.js → NodeCreation-BqSkxffS.js} +4 -4
  16. package/dist/assets/{NodeCreator-hORMDhrA.js → NodeCreator-CoqcSKC-.js} +14 -14
  17. package/dist/assets/{NodeCreator-DFg5sW0J.css → NodeCreator-CvOLgSO_.css} +4 -4
  18. package/dist/assets/{NodeViewSwitcher-D03yxHpn.css → NodeViewSwitcher-B8VPj4Rs.css} +40 -36
  19. package/dist/assets/{NodeViewSwitcher-s5LQOzlm.js → NodeViewSwitcher-C1Gp-jKb.js} +122 -80
  20. package/dist/assets/ProjectCardBadge-DPUG4BoB.css +20 -0
  21. package/dist/assets/{ProjectCardBadge.vue_vue_type_script_setup_true_lang-Ba-yrh3J.js → ProjectCardBadge-kHyKG50e.js} +63 -30
  22. package/dist/assets/{ProjectSettings-CyOAG84u.js → ProjectSettings-BohhQ-z6.js} +33 -4
  23. package/dist/assets/{ProjectTabs-CFxQVPs3.js → ProjectTabs-D-87NPFl.js} +1 -1
  24. package/dist/assets/{PushConnectionTracker-CjC7apu-.js → PushConnectionTracker-Bhnghrmf.js} +1 -1
  25. package/dist/assets/ResourceListHeader-Bs6GLg32.js +66 -0
  26. package/dist/assets/ResourceListHeader-DgE1VPUF.css +19 -0
  27. package/dist/assets/{ResourcesListLayout-DAvOygN7.css → ResourcesListLayout-Bw99IFlO.css} +17 -12
  28. package/dist/assets/{ResourcesListLayout-T5bbzLpX.js → ResourcesListLayout-ByBNP70B.js} +49 -14
  29. package/dist/assets/{RunDataAi-C0enECKq.js → RunDataAi-CYTNyRq_.js} +45 -43
  30. package/dist/assets/{RunDataJson-B8mMmmT-.js → RunDataJson-CUsbBWaI.js} +12 -12
  31. package/dist/assets/{RunDataJsonActions-Sk9iYJTZ.js → RunDataJsonActions-Bnn0o9WH.js} +1 -1
  32. package/dist/assets/{RunDataSearch-ChekvsYU.js → RunDataSearch-BiygytJ8.js} +1 -1
  33. package/dist/assets/{RunDataTable-CJGrGJ85.js → RunDataTable--RIqj8DU.js} +1 -1
  34. package/dist/assets/{SamlOnboarding-CjkITJGn.js → SamlOnboarding-BXYS2fQg.js} +2 -2
  35. package/dist/assets/{SettingsApiView-B8F9WfyJ.js → SettingsApiView-DoibCiLo.js} +1 -1
  36. package/dist/assets/{SettingsCommunityNodesView-Jkkxl23p.js → SettingsCommunityNodesView-BjakfOB1.js} +3 -3
  37. package/dist/assets/{SettingsExternalSecrets-Dexfxers.js → SettingsExternalSecrets-BGIt9OQy.js} +1 -1
  38. package/dist/assets/{SettingsFakeDoorView-DCJWDYVy.js → SettingsFakeDoorView-DwXDXgon.js} +1 -1
  39. package/dist/assets/{SettingsLdapView-DSu1yimU.js → SettingsLdapView-DBY4YyYE.js} +1 -1
  40. package/dist/assets/{SettingsLogStreamingView-D3lN6EYR.js → SettingsLogStreamingView-DHQWns6I.js} +1 -1
  41. package/dist/assets/{SettingsPersonalView-BNr37i54.js → SettingsPersonalView-CgzznKXi.js} +1 -1
  42. package/dist/assets/{SettingsSourceControl-DILxPXS8.js → SettingsSourceControl-DNWFyNrX.js} +1 -1
  43. package/dist/assets/{SettingsSso-BMeAeecY.js → SettingsSso-B8oke872.js} +1 -1
  44. package/dist/assets/{SettingsUsageAndPlan-BNwl8f6L.js → SettingsUsageAndPlan-BUUYApK_.js} +5 -5
  45. package/dist/assets/{SettingsUsageAndPlan-C76Ty5yF.css → SettingsUsageAndPlan-P6SS2mWq.css} +3 -3
  46. package/dist/assets/{SettingsUsersView-JMZybS1J.js → SettingsUsersView-DyuP8V6k.js} +1 -1
  47. package/dist/assets/{SettingsView-BNFEDwbY.js → SettingsView-CD83Adan.js} +1 -1
  48. package/dist/assets/{SetupView-DMsWDznG.js → SetupView-C8XYMj2N.js} +2 -2
  49. package/dist/assets/{SetupWorkflowCredentialsButton-BDBmuKsT.js → SetupWorkflowCredentialsButton-u1qhjj5K.js} +1 -1
  50. package/dist/assets/{SetupWorkflowFromTemplateView-Cb6R0INn.js → SetupWorkflowFromTemplateView-DdxqCGcl.js} +3 -3
  51. package/dist/assets/{SigninView-BbwKl6x1.js → SigninView-CGQ20O_c.js} +2 -2
  52. package/dist/assets/{SignoutView-CctYANgw.js → SignoutView-BZwBBglt.js} +1 -1
  53. package/dist/assets/{SignupView-6MC0Ssrk.js → SignupView-BCT6dhhZ.js} +2 -2
  54. package/dist/assets/{TemplateDetails-BmiAC0GE.js → TemplateDetails-BsLVCpdi.js} +1 -1
  55. package/dist/assets/{TemplateList-2XF1iUHb.js → TemplateList-Bn7ePHhc.js} +1 -1
  56. package/dist/assets/{TemplatesCollectionView-CYqdiPOM.js → TemplatesCollectionView-BxBSljqH.js} +5 -5
  57. package/dist/assets/{TemplatesSearchView-wQ_ymDEU.js → TemplatesSearchView-kFcPH-ZH.js} +3 -3
  58. package/dist/assets/{TemplatesView-DGr5Voff.js → TemplatesView-TPTpSdeD.js} +1 -1
  59. package/dist/assets/{TemplatesWorkflowView-RJrwmhVg.js → TemplatesWorkflowView-8NdGLWj7.js} +5 -5
  60. package/dist/assets/{VariablesView-C8IVePi4.js → VariablesView-C1NxBxBQ.js} +3 -2
  61. package/dist/assets/{WorkerView-BaUhJGir.js → WorkerView-Bj1cvzLg.js} +4 -4
  62. package/dist/assets/{WorkflowActivator-BBHL80xC.js → WorkflowActivator-CalsATsI.js} +15 -4
  63. package/dist/assets/{WorkflowActivator-u3HKoT5w.css → WorkflowActivator-D8FiI2jP.css} +2 -2
  64. package/dist/assets/{WorkflowExecutionsInfoAccordion-gdMWo-e-.js → WorkflowExecutionsInfoAccordion-rUnvuY-5.js} +1 -1
  65. package/dist/assets/{WorkflowExecutionsLandingPage-CKrId0XR.js → WorkflowExecutionsLandingPage-C4K7kfqv.js} +2 -2
  66. package/dist/assets/{WorkflowExecutionsPreview-BC6sTWIe.js → WorkflowExecutionsPreview-BO31AO7v.js} +5 -5
  67. package/dist/assets/{WorkflowExecutionsView-DoD9yJwW.js → WorkflowExecutionsView-B-5zbx_n.js} +5 -5
  68. package/dist/assets/{WorkflowHistory-BEK5YOVc.js → WorkflowHistory-uvlFDwTJ.js} +3 -3
  69. package/dist/assets/{WorkflowOnboardingView-B4t0qSe3.js → WorkflowOnboardingView-B869wGVb.js} +1 -1
  70. package/dist/assets/{WorkflowPreview-BOcV66_b.js → WorkflowPreview-BlzWpiO1.js} +8 -8
  71. package/dist/assets/{WorkflowPreview-BTF7OmQM.css → WorkflowPreview-Bpiv2_RO.css} +8 -8
  72. package/dist/assets/{WorkflowsView-vmUlLwl1.js → WorkflowsView-IdgMnIZY.js} +11 -10
  73. package/dist/assets/{cloud-ChdKumGs.js → cloud-B6bxVT9F.js} +1 -1
  74. package/dist/assets/{dateFormatter-9d-pd85d.js → dateFormatter-BCrxaIdG.js} +1 -1
  75. package/dist/assets/{index-D_IylcbL.css → index-DaeOVPzE.css} +108 -103
  76. package/dist/assets/{index-Be6oKJqR.js → index-QAq8Sa9R.js} +738 -678
  77. package/dist/assets/{pushConnection.store-BZskIAMJ.js → pushConnection.store-Cdssd0uJ.js} +1 -1
  78. package/dist/assets/{templateActions-mq62HcDD.js → templateActions-ClPy1BRa.js} +1 -1
  79. package/dist/assets/{useBugReporting-CRaeQTi6.js → useBugReporting-Bvr7bSQt.js} +1 -1
  80. package/dist/assets/{useExecutionDebugging-EkbnQ-91.js → useExecutionDebugging-CwyVwJqO.js} +3 -3
  81. package/dist/assets/{useNodeViewVersionSwitcher-g9046tgD.js → useNodeViewVersionSwitcher-BPNKvsXw.js} +2 -2
  82. package/dist/assets/{usePushConnection-dFSqHluh.js → usePushConnection-DDXmzoG8.js} +2 -2
  83. package/dist/assets/{useWorkflowActivate-DD8xKyyQ.js → useWorkflowActivate-DKPQP7qy.js} +1 -1
  84. package/dist/index.html +2 -2
  85. package/package.json +1 -1
  86. package/dist/assets/CollectionParameter-BbkcZgkH.js +0 -4
@@ -1,4 +1,5 @@
1
- import { d as defineComponent, p as computed, dA as ProjectTypes, iX as splitName, l as resolveComponent, c9 as resolveDirective, c as openBlock, e as createBlock, w as withCtx, k as createTextVNode, t as toDisplayString, ar as withDirectives, h as createElementBlock, f as createCommentVNode, g as useI18n } from "./index-Be6oKJqR.js";
1
+ import { d as defineComponent, p as computed, dA as ProjectTypes, iY as splitName, l as resolveComponent, c9 as resolveDirective, c as openBlock, e as createBlock, w as withCtx, k as createTextVNode, t as toDisplayString, j as createBaseVNode, n as normalizeClass, f as createCommentVNode, ar as withDirectives, h as createElementBlock, g as useI18n, _ as _export_sfc } from "./index-QAq8Sa9R.js";
2
+ const _hoisted_1 = { class: "mr-xs" };
2
3
  const _sfc_main = /* @__PURE__ */ defineComponent({
3
4
  __name: "ProjectCardBadge",
4
5
  props: {
@@ -30,10 +31,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
30
31
  }
31
32
  return "unknown";
32
33
  });
34
+ const numberOfMembersInHomeTeamProject = computed(
35
+ () => {
36
+ var _a;
37
+ return ((_a = props.resource.sharedWithProjects) == null ? void 0 : _a.length) ?? 0;
38
+ }
39
+ );
33
40
  const badgeText = computed(() => {
34
41
  var _a;
35
42
  if (projectState.value === "owned" || projectState.value === "shared-owned") {
36
- return i18n.baseText("generic.ownedByMe");
43
+ return i18n.baseText("projects.menu.personal");
37
44
  } else {
38
45
  const { name, email } = splitName(((_a = props.resource.homeProject) == null ? void 0 : _a.name) ?? "");
39
46
  return name ?? email ?? "";
@@ -41,12 +48,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
41
48
  });
42
49
  const badgeIcon = computed(() => {
43
50
  switch (projectState.value) {
44
- case "shared-personal":
51
+ case "owned":
45
52
  case "shared-owned":
46
- return "user-friends";
53
+ return "user";
47
54
  case "team":
48
55
  case "shared-team":
49
- return "archive";
56
+ return "layer-group";
50
57
  default:
51
58
  return "";
52
59
  }
@@ -56,14 +63,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
56
63
  case "shared-owned":
57
64
  return i18n.baseText("projects.badge.tooltip.sharedOwned", {
58
65
  interpolate: {
59
- resourceTypeLabel: props.resourceTypeLabel
66
+ resourceTypeLabel: props.resourceTypeLabel,
67
+ count: numberOfMembersInHomeTeamProject.value
60
68
  }
61
69
  });
62
70
  case "shared-personal":
63
71
  return i18n.baseText("projects.badge.tooltip.sharedPersonal", {
64
72
  interpolate: {
65
73
  resourceTypeLabel: props.resourceTypeLabel,
66
- name: badgeText.value
74
+ name: badgeText.value,
75
+ count: numberOfMembersInHomeTeamProject.value
67
76
  }
68
77
  });
69
78
  case "personal":
@@ -84,7 +93,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
84
93
  return i18n.baseText("projects.badge.tooltip.sharedTeam", {
85
94
  interpolate: {
86
95
  resourceTypeLabel: props.resourceTypeLabel,
87
- name: badgeText.value
96
+ name: badgeText.value,
97
+ count: numberOfMembersInHomeTeamProject.value
88
98
  }
89
99
  });
90
100
  default:
@@ -104,34 +114,57 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
104
114
  createTextVNode(toDisplayString(badgeTooltip.value), 1)
105
115
  ]),
106
116
  default: withCtx(() => [
107
- badgeText.value ? (openBlock(), createBlock(_component_N8nBadge, {
108
- key: 0,
109
- class: "mr-xs",
110
- theme: "tertiary",
111
- bold: "",
112
- "data-test-id": "card-badge"
113
- }, {
114
- default: withCtx(() => [
115
- withDirectives((openBlock(), createElementBlock("span", null, [
116
- createTextVNode(toDisplayString(badgeText.value), 1)
117
- ])), [
118
- [_directive_n8n_truncate, void 0, "20"]
117
+ createBaseVNode("div", _hoisted_1, [
118
+ badgeText.value ? (openBlock(), createBlock(_component_N8nBadge, {
119
+ key: 0,
120
+ class: normalizeClass(_ctx.$style.badge),
121
+ theme: "tertiary",
122
+ bold: "",
123
+ "data-test-id": "card-badge"
124
+ }, {
125
+ default: withCtx(() => [
126
+ badgeIcon.value ? (openBlock(), createBlock(_component_N8nIcon, {
127
+ key: 0,
128
+ icon: badgeIcon.value,
129
+ size: "small",
130
+ class: "mr-3xs"
131
+ }, null, 8, ["icon"])) : createCommentVNode("", true),
132
+ withDirectives((openBlock(), createElementBlock("span", null, [
133
+ createTextVNode(toDisplayString(badgeText.value), 1)
134
+ ])), [
135
+ [_directive_n8n_truncate, void 0, "20"]
136
+ ])
137
+ ]),
138
+ _: 1
139
+ }, 8, ["class"])) : createCommentVNode("", true),
140
+ numberOfMembersInHomeTeamProject.value ? (openBlock(), createBlock(_component_N8nBadge, {
141
+ key: 1,
142
+ class: normalizeClass([_ctx.$style.badge, _ctx.$style.countBadge]),
143
+ theme: "tertiary",
144
+ bold: ""
145
+ }, {
146
+ default: withCtx(() => [
147
+ createTextVNode(" + " + toDisplayString(numberOfMembersInHomeTeamProject.value), 1)
119
148
  ]),
120
- badgeIcon.value ? (openBlock(), createBlock(_component_N8nIcon, {
121
- key: 0,
122
- icon: badgeIcon.value,
123
- size: "small",
124
- class: "ml-5xs"
125
- }, null, 8, ["icon"])) : createCommentVNode("", true)
126
- ]),
127
- _: 1
128
- })) : createCommentVNode("", true)
149
+ _: 1
150
+ }, 8, ["class"])) : createCommentVNode("", true)
151
+ ])
129
152
  ]),
130
153
  _: 1
131
154
  }, 8, ["disabled"]);
132
155
  };
133
156
  }
134
157
  });
158
+ const badge = "_badge_2xnky_1";
159
+ const countBadge = "_countBadge_2xnky_13";
160
+ const style0 = {
161
+ badge,
162
+ countBadge
163
+ };
164
+ const cssModules = {
165
+ "$style": style0
166
+ };
167
+ const ProjectCardBadge = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
135
168
  export {
136
- _sfc_main as _
169
+ ProjectCardBadge as P
137
170
  };
@@ -1,5 +1,6 @@
1
- import { d as defineComponent, bO as mergeModels, cy as useModel, r as ref, p as computed, c as openBlock, e as createBlock, w as withCtx, i as createVNode, k as createTextVNode, t as toDisplayString, A as unref, I as withModifiers, j as createBaseVNode, h as createElementBlock, iC as ProjectSharing, n as normalizeClass, f as createCommentVNode, g as useI18n, l as resolveComponent, _ as _export_sfc, K as useUIStore, u as useUsersStore, a1 as useProjectsStore, j0 as useRolesStore, ay as useCloudPlanStore, a as useToast, b as useRouter, a3 as useDocumentTitle, H as watch, aq as onBeforeMount, o as onMounted, j1 as N8nFormInput, F as Fragment, z as renderList, V as VIEWS, dF as deepCopy, C as nextTick, aj as useTelemetry } from "./index-Be6oKJqR.js";
2
- import { P as ProjectTabs } from "./ProjectTabs-CFxQVPs3.js";
1
+ import { d as defineComponent, bO as mergeModels, cy as useModel, r as ref, p as computed, c as openBlock, e as createBlock, w as withCtx, i as createVNode, k as createTextVNode, t as toDisplayString, A as unref, I as withModifiers, j as createBaseVNode, h as createElementBlock, iD as ProjectSharing, n as normalizeClass, f as createCommentVNode, g as useI18n, l as resolveComponent, _ as _export_sfc, K as useUIStore, u as useUsersStore, a1 as useProjectsStore, j1 as useRolesStore, ay as useCloudPlanStore, a as useToast, b as useRouter, a3 as useDocumentTitle, H as watch, aq as onBeforeMount, o as onMounted, j2 as N8nFormInput, F as Fragment, z as renderList, V as VIEWS, dF as deepCopy, C as nextTick, dA as ProjectTypes, aj as useTelemetry } from "./index-QAq8Sa9R.js";
2
+ import { P as ProjectTabs } from "./ProjectTabs-D-87NPFl.js";
3
+ import { R as ResourceListHeader } from "./ResourceListHeader-Bs6GLg32.js";
3
4
  const _hoisted_1$2 = { class: "pt-l" };
4
5
  const _sfc_main$2 = /* @__PURE__ */ defineComponent({
5
6
  __name: "ProjectDeleteDialog",
@@ -413,12 +414,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
413
414
  var _a;
414
415
  try {
415
416
  if (projectsStore.currentProject) {
416
- const projectName = ((_a = projectsStore.currentProject) == null ? void 0 : _a.name) ?? "";
417
+ const projectName2 = ((_a = projectsStore.currentProject) == null ? void 0 : _a.name) ?? "";
417
418
  await projectsStore.deleteProject(projectsStore.currentProject.id, transferId);
418
419
  await router.push({ name: VIEWS.HOMEPAGE });
419
420
  toast.showMessage({
420
421
  title: locale.baseText("projects.settings.delete.successful.title", {
421
- interpolate: { projectName }
422
+ interpolate: { projectName: projectName2 }
422
423
  }),
423
424
  type: "success"
424
425
  });
@@ -446,6 +447,25 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
446
447
  },
447
448
  { immediate: true }
448
449
  );
450
+ const headerIcon = computed(() => {
451
+ var _a, _b;
452
+ if (((_a = projectsStore.currentProject) == null ? void 0 : _a.type) === ProjectTypes.Personal) {
453
+ return "user";
454
+ } else if ((_b = projectsStore.currentProject) == null ? void 0 : _b.name) {
455
+ return "layer-group";
456
+ } else {
457
+ return "home";
458
+ }
459
+ });
460
+ const projectName = computed(() => {
461
+ if (!projectsStore.currentProject) {
462
+ return locale.baseText("projects.menu.home");
463
+ } else if (projectsStore.currentProject.type === ProjectTypes.Personal) {
464
+ return locale.baseText("projects.menu.personal");
465
+ } else {
466
+ return projectsStore.currentProject.name;
467
+ }
468
+ });
449
469
  onBeforeMount(async () => {
450
470
  await usersStore.fetchUsers();
451
471
  });
@@ -467,6 +487,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
467
487
  createBaseVNode("div", {
468
488
  class: normalizeClass(_ctx.$style.header)
469
489
  }, [
490
+ createVNode(ResourceListHeader, {
491
+ icon: headerIcon.value,
492
+ "data-test-id": "list-layout-header"
493
+ }, {
494
+ title: withCtx(() => [
495
+ createTextVNode(toDisplayString(projectName.value), 1)
496
+ ]),
497
+ _: 1
498
+ }, 8, ["icon"]),
470
499
  createVNode(ProjectTabs)
471
500
  ], 2),
472
501
  createBaseVNode("form", {
@@ -1,4 +1,4 @@
1
- import { d as defineComponent, U as useRoute, a1 as useProjectsStore, r as ref, p as computed, H as watch, c as openBlock, h as createElementBlock, i as createVNode, n as normalizeClass, l as resolveComponent, al as getResourcePermissions, V as VIEWS, dA as ProjectTypes, g as useI18n, _ as _export_sfc } from "./index-Be6oKJqR.js";
1
+ import { d as defineComponent, U as useRoute, a1 as useProjectsStore, r as ref, p as computed, H as watch, c as openBlock, h as createElementBlock, i as createVNode, n as normalizeClass, l as resolveComponent, al as getResourcePermissions, V as VIEWS, dA as ProjectTypes, g as useI18n, _ as _export_sfc } from "./index-QAq8Sa9R.js";
2
2
  const _sfc_main = /* @__PURE__ */ defineComponent({
3
3
  __name: "ProjectTabs",
4
4
  setup(__props) {
@@ -1,4 +1,4 @@
1
- import { d as defineComponent, e0 as mapStores, Z as useRootStore, _ as _export_sfc, c as openBlock, h as createElementBlock, i as createVNode, w as withCtx, ar as withDirectives, j as createBaseVNode, k as createTextVNode, t as toDisplayString, q as renderSlot, l as resolveComponent, c9 as resolveDirective } from "./index-Be6oKJqR.js";
1
+ import { d as defineComponent, e0 as mapStores, Z as useRootStore, _ as _export_sfc, c as openBlock, h as createElementBlock, i as createVNode, w as withCtx, ar as withDirectives, j as createBaseVNode, k as createTextVNode, t as toDisplayString, q as renderSlot, l as resolveComponent, c9 as resolveDirective } from "./index-QAq8Sa9R.js";
2
2
  const _sfc_main = defineComponent({
3
3
  name: "PushConnectionTracker",
4
4
  computed: {
@@ -0,0 +1,66 @@
1
+ import { d as defineComponent, c as openBlock, h as createElementBlock, j as createBaseVNode, i as createVNode, A as unref, iE as N8nIcon, n as normalizeClass, w as withCtx, q as renderSlot, i0 as N8nHeading, e as createBlock, iF as N8nText, f as createCommentVNode, _ as _export_sfc } from "./index-QAq8Sa9R.js";
2
+ const _sfc_main = /* @__PURE__ */ defineComponent({
3
+ __name: "ResourceListHeader",
4
+ props: {
5
+ icon: {}
6
+ },
7
+ setup(__props) {
8
+ return (_ctx, _cache) => {
9
+ return openBlock(), createElementBlock("div", {
10
+ class: normalizeClass([_ctx.$style.workflowHeader])
11
+ }, [
12
+ createBaseVNode("div", {
13
+ class: normalizeClass([_ctx.$style.icon])
14
+ }, [
15
+ createVNode(unref(N8nIcon), {
16
+ icon: _ctx.icon,
17
+ color: "text-light"
18
+ }, null, 8, ["icon"])
19
+ ], 2),
20
+ createBaseVNode("div", null, [
21
+ createVNode(unref(N8nHeading), {
22
+ bold: "",
23
+ tag: "h2",
24
+ size: "xlarge"
25
+ }, {
26
+ default: withCtx(() => [
27
+ renderSlot(_ctx.$slots, "title")
28
+ ]),
29
+ _: 3
30
+ }),
31
+ _ctx.$slots.subtitle ? (openBlock(), createBlock(unref(N8nText), {
32
+ key: 0,
33
+ size: "small",
34
+ color: "text-light"
35
+ }, {
36
+ default: withCtx(() => [
37
+ renderSlot(_ctx.$slots, "subtitle")
38
+ ]),
39
+ _: 3
40
+ })) : createCommentVNode("", true)
41
+ ]),
42
+ _ctx.$slots.actions ? (openBlock(), createElementBlock("div", {
43
+ key: 0,
44
+ class: normalizeClass([_ctx.$style.actions])
45
+ }, [
46
+ renderSlot(_ctx.$slots, "actions")
47
+ ], 2)) : createCommentVNode("", true)
48
+ ], 2);
49
+ };
50
+ }
51
+ });
52
+ const workflowHeader = "_workflowHeader_3z0bo_1";
53
+ const icon = "_icon_3z0bo_9";
54
+ const actions = "_actions_3z0bo_15";
55
+ const style0 = {
56
+ workflowHeader,
57
+ icon,
58
+ actions
59
+ };
60
+ const cssModules = {
61
+ "$style": style0
62
+ };
63
+ const ResourceListHeader = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
64
+ export {
65
+ ResourceListHeader as R
66
+ };
@@ -0,0 +1,19 @@
1
+ ._workflowHeader_3z0bo_1 {
2
+ display: -webkit-box;
3
+ display: -ms-flexbox;
4
+ display: flex;
5
+ -webkit-box-align: center;
6
+ -ms-flex-align: center;
7
+ align-items: center;
8
+ gap: 8px;
9
+ padding-bottom: var(--spacing-m);
10
+ min-height: 64px;
11
+ }
12
+ ._icon_3z0bo_9 {
13
+ border: 1px solid var(--color-foreground-light);
14
+ padding: 6px;
15
+ border-radius: var(--border-radius-base);
16
+ }
17
+ ._actions_3z0bo_15 {
18
+ margin-left: auto;
19
+ }
@@ -1,16 +1,21 @@
1
- ._wrapper_u24kg_1 {
2
- display: grid;
1
+ ._wrapper_179di_1 {
2
+ display: -webkit-box;
3
+ display: -ms-flexbox;
4
+ display: flex;
5
+ -webkit-box-orient: vertical;
6
+ -webkit-box-direction: normal;
7
+ -ms-flex-direction: column;
8
+ flex-direction: column;
3
9
  height: 100%;
4
10
  width: 100%;
5
11
  max-width: 1280px;
6
- grid-template-rows: auto 1fr;
7
12
  -webkit-box-sizing: border-box;
8
13
  box-sizing: border-box;
9
14
  -ms-flex-line-pack: start;
10
15
  align-content: start;
11
16
  padding: var(--spacing-l) var(--spacing-2xl) 0;
12
17
  }
13
- ._content_u24kg_12 {
18
+ ._content_179di_12 {
14
19
  display: grid;
15
20
  height: 100%;
16
21
  }._wrapper_183my_1 {
@@ -85,7 +90,7 @@
85
90
  }
86
91
  ._datatable_eysnt_30 {
87
92
  padding-bottom: var(--spacing-s);
88
- }.resource-list-loading[data-v-b2fe67a5] {
93
+ }.resource-list-loading[data-v-0e2b73c0] {
89
94
  position: relative;
90
95
  height: 0;
91
96
  width: 100%;
@@ -93,23 +98,23 @@
93
98
  /*
94
99
  Show the loading skeleton only if the loading takes longer than 300ms
95
100
  */
96
- -webkit-animation: 0.01s linear 0.3s forwards changeVisibility-b2fe67a5;
97
- animation: 0.01s linear 0.3s forwards changeVisibility-b2fe67a5;
101
+ -webkit-animation: 0.01s linear 0.3s forwards changeVisibility-0e2b73c0;
102
+ animation: 0.01s linear 0.3s forwards changeVisibility-0e2b73c0;
98
103
  }
99
- .resource-list-loading[data-v-b2fe67a5] .el-skeleton {
104
+ .resource-list-loading[data-v-0e2b73c0] .el-skeleton {
100
105
  position: absolute;
101
106
  height: 100%;
102
107
  width: 100%;
103
108
  overflow: hidden;
104
109
  }
105
- .resource-list-loading[data-v-b2fe67a5] .el-skeleton > div > div:first-child .el-skeleton__item {
110
+ .resource-list-loading[data-v-0e2b73c0] .el-skeleton > div > div:first-child .el-skeleton__item {
106
111
  height: 42px;
107
112
  margin: 0;
108
113
  }
109
- .resource-list-loading[data-v-b2fe67a5] .el-skeleton .el-skeleton__item {
114
+ .resource-list-loading[data-v-0e2b73c0] .el-skeleton .el-skeleton__item {
110
115
  height: 69px;
111
116
  }
112
- @-webkit-keyframes changeVisibility-b2fe67a5 {
117
+ @-webkit-keyframes changeVisibility-0e2b73c0 {
113
118
  from {
114
119
  height: 0;
115
120
  }
@@ -117,7 +122,7 @@ to {
117
122
  height: 100%;
118
123
  }
119
124
  }
120
- @keyframes changeVisibility-b2fe67a5 {
125
+ @keyframes changeVisibility-0e2b73c0 {
121
126
  from {
122
127
  height: 0;
123
128
  }
@@ -1,4 +1,5 @@
1
- import { d as defineComponent, e0 as mapStores, K as useUIStore, _ as _export_sfc, c as openBlock, h as createElementBlock, q as renderSlot, j as createBaseVNode, n as normalizeClass, f as createCommentVNode, iC as ProjectSharing, a7 as EnterpriseEditionFeature, a1 as useProjectsStore, e as createBlock, w as withCtx, i as createVNode, ar as withDirectives, as as vShow, k as createTextVNode, t as toDisplayString, l as resolveComponent, U as useRoute, J as useDebounce, u as useUsersStore, r as ref, p as computed, H as watch, o as onMounted, C as nextTick, g as useI18n, aj as useTelemetry, bQ as normalizeProps, bs as guardReactiveProps, F as Fragment, z as renderList } from "./index-Be6oKJqR.js";
1
+ import { d as defineComponent, e0 as mapStores, K as useUIStore, _ as _export_sfc, c as openBlock, h as createElementBlock, q as renderSlot, j as createBaseVNode, n as normalizeClass, f as createCommentVNode, iD as ProjectSharing, a7 as EnterpriseEditionFeature, a1 as useProjectsStore, e as createBlock, w as withCtx, i as createVNode, ar as withDirectives, as as vShow, k as createTextVNode, t as toDisplayString, l as resolveComponent, U as useRoute, J as useDebounce, u as useUsersStore, r as ref, p as computed, H as watch, o as onMounted, C as nextTick, g as useI18n, aj as useTelemetry, dA as ProjectTypes, bQ as normalizeProps, bs as guardReactiveProps, F as Fragment, z as renderList } from "./index-QAq8Sa9R.js";
2
+ import { R as ResourceListHeader } from "./ResourceListHeader-Bs6GLg32.js";
2
3
  const _sfc_main$3 = defineComponent({
3
4
  name: "PageViewLayout",
4
5
  data() {
@@ -10,8 +11,8 @@ const _sfc_main$3 = defineComponent({
10
11
  ...mapStores(useUIStore)
11
12
  }
12
13
  });
13
- const wrapper$1 = "_wrapper_u24kg_1";
14
- const content = "_content_u24kg_12";
14
+ const wrapper$1 = "_wrapper_179di_1";
15
+ const content = "_content_179di_12";
15
16
  const style0$3 = {
16
17
  wrapper: wrapper$1,
17
18
  content
@@ -31,7 +32,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
31
32
  const cssModules$3 = {
32
33
  "$style": style0$3
33
34
  };
34
- const __unplugin_components_2 = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3], ["__cssModules", cssModules$3]]);
35
+ const __unplugin_components_3 = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3], ["__cssModules", cssModules$3]]);
35
36
  const _sfc_main$2 = defineComponent({
36
37
  props: {
37
38
  overflow: {
@@ -74,7 +75,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
74
75
  const cssModules$2 = {
75
76
  "$style": style0$2
76
77
  };
77
- const __unplugin_components_1 = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__cssModules", cssModules$2]]);
78
+ const __unplugin_components_2 = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__cssModules", cssModules$2]]);
78
79
  const _sfc_main$1 = defineComponent({
79
80
  components: {
80
81
  ProjectSharing
@@ -250,13 +251,14 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
250
251
  const cssModules$1 = {
251
252
  "$style": style0$1
252
253
  };
253
- const __unplugin_components_0 = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__cssModules", cssModules$1]]);
254
+ const __unplugin_components_1 = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1], ["__cssModules", cssModules$1]]);
254
255
  const _sfc_main = defineComponent({
255
256
  name: "ResourcesListLayout",
256
257
  components: {
257
- PageViewLayout: __unplugin_components_2,
258
- PageViewLayoutList: __unplugin_components_1,
259
- ResourceFiltersDropdown: __unplugin_components_0
258
+ PageViewLayout: __unplugin_components_3,
259
+ PageViewLayoutList: __unplugin_components_2,
260
+ ResourceFiltersDropdown: __unplugin_components_1,
261
+ ResourceListHeader
260
262
  },
261
263
  props: {
262
264
  resourceKey: {
@@ -327,6 +329,7 @@ const _sfc_main = defineComponent({
327
329
  const i18n = useI18n();
328
330
  const { callDebounced } = useDebounce();
329
331
  const usersStore = useUsersStore();
332
+ const projectsStore = useProjectsStore();
330
333
  const telemetry = useTelemetry();
331
334
  const sortBy = ref(props.sortOptions[0]);
332
335
  const hasFilters = ref(false);
@@ -497,10 +500,30 @@ const _sfc_main = defineComponent({
497
500
  hasFilters.value = true;
498
501
  }
499
502
  });
503
+ const headerIcon = computed(() => {
504
+ var _a, _b;
505
+ if (((_a = projectsStore.currentProject) == null ? void 0 : _a.type) === ProjectTypes.Personal) {
506
+ return "user";
507
+ } else if ((_b = projectsStore.currentProject) == null ? void 0 : _b.name) {
508
+ return "layer-group";
509
+ } else {
510
+ return "home";
511
+ }
512
+ });
513
+ const projectName = computed(() => {
514
+ if (!projectsStore.currentProject) {
515
+ return i18n.baseText("projects.menu.home");
516
+ } else if (projectsStore.currentProject.type === ProjectTypes.Personal) {
517
+ return i18n.baseText("projects.menu.personal");
518
+ } else {
519
+ return projectsStore.currentProject.name;
520
+ }
521
+ });
500
522
  return {
501
523
  i18n,
502
524
  search: search2,
503
525
  usersStore,
526
+ projectsStore,
504
527
  filterKeys,
505
528
  currentPage,
506
529
  rowsPerPage,
@@ -519,7 +542,9 @@ const _sfc_main = defineComponent({
519
542
  callDebounced,
520
543
  setCurrentPage,
521
544
  setRowsPerPage,
522
- onSearch
545
+ onSearch,
546
+ headerIcon,
547
+ projectName
523
548
  };
524
549
  }
525
550
  });
@@ -545,11 +570,12 @@ const _hoisted_3 = {
545
570
  class: "mt-xs"
546
571
  };
547
572
  function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
573
+ const _component_ResourceListHeader = ResourceListHeader;
548
574
  const _component_n8n_loading = resolveComponent("n8n-loading");
549
575
  const _component_n8n_action_box = resolveComponent("n8n-action-box");
550
576
  const _component_n8n_icon = resolveComponent("n8n-icon");
551
577
  const _component_n8n_input = resolveComponent("n8n-input");
552
- const _component_ResourceFiltersDropdown = __unplugin_components_0;
578
+ const _component_ResourceFiltersDropdown = __unplugin_components_1;
553
579
  const _component_n8n_option = resolveComponent("n8n-option");
554
580
  const _component_n8n_select = resolveComponent("n8n-select");
555
581
  const _component_n8n_button = resolveComponent("n8n-button");
@@ -558,10 +584,19 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
558
584
  const _component_n8n_recycle_scroller = resolveComponent("n8n-recycle-scroller");
559
585
  const _component_n8n_datatable = resolveComponent("n8n-datatable");
560
586
  const _component_n8n_text = resolveComponent("n8n-text");
561
- const _component_PageViewLayoutList = __unplugin_components_1;
562
- const _component_PageViewLayout = __unplugin_components_2;
587
+ const _component_PageViewLayoutList = __unplugin_components_2;
588
+ const _component_PageViewLayout = __unplugin_components_3;
563
589
  return openBlock(), createBlock(_component_PageViewLayout, null, {
564
590
  header: withCtx(() => [
591
+ createVNode(_component_ResourceListHeader, {
592
+ icon: _ctx.headerIcon,
593
+ "data-test-id": "list-layout-header"
594
+ }, {
595
+ title: withCtx(() => [
596
+ createTextVNode(toDisplayString(_ctx.projectName), 1)
597
+ ]),
598
+ _: 1
599
+ }, 8, ["icon"]),
565
600
  renderSlot(_ctx.$slots, "header", {}, void 0, true)
566
601
  ]),
567
602
  default: withCtx(() => [
@@ -759,7 +794,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
759
794
  const cssModules = {
760
795
  "$style": style0
761
796
  };
762
- const ResourcesListLayout = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__cssModules", cssModules], ["__scopeId", "data-v-b2fe67a5"]]);
797
+ const ResourcesListLayout = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__cssModules", cssModules], ["__scopeId", "data-v-0e2b73c0"]]);
763
798
  export {
764
799
  ResourcesListLayout as R
765
800
  };