n8n-editor-ui 1.90.1 → 1.92.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.
- package/dist/assets/{AnimatedSpinner-ChThynSJ.js → AnimatedSpinner-CtKKeDrz.js} +1 -1
- package/dist/assets/{AnnotationTagsDropdown.ee.vue_vue_type_script_setup_true_lang-WGp2Kuen.js → AnnotationTagsDropdown.ee.vue_vue_type_script_setup_true_lang-DR6h_xsK.js} +1 -1
- package/dist/assets/{AuthView-Dlhn_SQ-.js → AuthView-mKkzBRxh.js} +2 -2
- package/dist/assets/{CanvasChatSwitch-BuBg7TJP.js → CanvasChatSwitch-Bu2VD2kp.js} +24 -12
- package/dist/assets/{ChangePasswordView-BKYXOoDf.js → ChangePasswordView-D5UI1v-J.js} +3 -3
- package/dist/assets/CollectionParameter-BeCTpZ-q.js +4 -0
- package/dist/assets/{CredentialsView-BNWIgrLb.js → CredentialsView-B78eNJO5.js} +10 -9
- package/dist/assets/{DemoFooter-DR6r_2qR.js → DemoFooter-DP26HpCu.js} +8 -8
- package/dist/assets/{ErrorView-Bu8Mt5FH.js → ErrorView-C3fvEdCg.js} +1 -1
- package/dist/assets/{ExecutionsTime.vue_vue_type_script_setup_true_lang-DvtOOOhh.js → ExecutionsTime.vue_vue_type_script_setup_true_lang-BBpwYdHY.js} +2 -2
- package/dist/assets/{ExecutionsView-C0WZAIi0.js → ExecutionsView-BvlDZwIs.js} +11 -10
- package/dist/assets/{FileSaver.min-Cm0u4qyc.js → FileSaver.min-BzAtcQXX.js} +1 -1
- package/dist/assets/{FixedCollectionParameter-KmRZtBiP.js → FixedCollectionParameter-CS5zXMAh.js} +1 -1
- package/dist/assets/{ForgotMyPasswordView-GH7SqEFu.js → ForgotMyPasswordView-CVQ7pcIG.js} +3 -3
- package/dist/assets/{InsightsChartAverageRuntime-SeBUN06R.js → InsightsChartAverageRuntime-Boh0SMb3.js} +7 -6
- package/dist/assets/{InsightsChartFailed-TYjH8LwV.js → InsightsChartFailed-IZ-KYOU9.js} +7 -6
- package/dist/assets/{InsightsChartFailureRate-D41Jv-6v.js → InsightsChartFailureRate-2fWw3p0L.js} +7 -6
- package/dist/assets/{InsightsChartTimeSaved-TLPDAmPx.js → InsightsChartTimeSaved-B2pLVys1.js} +7 -6
- package/dist/assets/{InsightsChartTotal-CaKTe2mv.js → InsightsChartTotal-2QD4wPLR.js} +7 -6
- package/dist/assets/{InsightsDashboard-DPVczYm3.css → InsightsDashboard-Bx4vx9gz.css} +16 -0
- package/dist/assets/InsightsDashboard-CbiFbJ8w.js +372 -0
- package/dist/assets/{InsightsPaywall-Z4Y0nO-i.js → InsightsPaywall-5d-cSdiS.js} +1 -1
- package/dist/assets/{InsightsSummary-FixbpmPJ.css → InsightsSummary-CdlaUpAt.css} +25 -25
- package/dist/assets/{InsightsSummary-DzYli0Pu.js → InsightsSummary-gldDQ9rg.js} +16 -17
- package/dist/assets/{InsightsTableWorkflows-CUHAG57c.js → InsightsTableWorkflows-_eTCUNCX.js} +2 -2
- package/dist/assets/{Logo-Dxp4M9dy.js → Logo-Dl2xVRIu.js} +1 -1
- package/dist/assets/{LogsPanel-zIrTNE6j.js → LogsPanel-JnYirDqa.js} +520 -436
- package/dist/assets/{LogsPanel-DmPMCt9w.css → LogsPanel-mTaFEGk_.css} +208 -98
- package/dist/assets/{MainHeader-D4cIIoUA.js → MainHeader-Bk29pgmL.js} +122 -295
- package/dist/assets/MainHeader-CEPLiR-5.css +1044 -0
- package/dist/assets/{MainSidebar-BtW-9UPT.js → MainSidebar-BM5ku_wM.js} +11 -11
- package/dist/assets/{MainSidebar-CKMiDGvH.css → MainSidebar-zZpP3qQ0.css} +13 -12
- package/dist/assets/{NodeCreation-thD32mA1.js → NodeCreation-BEjdAYc_.js} +4 -4
- package/dist/assets/{NodeCreator-B4mHaU45.js → NodeCreator-cEUgbAI9.js} +14 -4
- package/dist/assets/{NodeDetailsView-cO3Ci9jH.js → NodeDetailsView-D4O9dKTA.js} +93 -68
- package/dist/assets/{NodeDetailsView-CGgV4Pn_.css → NodeDetailsView-DsFLtbxi.css} +20 -20
- package/dist/assets/{NodeView-E5b1ClVD.js → NodeView-DDSOUm8E.js} +152 -34
- package/dist/assets/{ProjectCardBadge-LnLKqSK-.js → ProjectCardBadge-BNn2hiMe.js} +1 -1
- package/dist/assets/{ProjectHeader-DC02ZuZ0.js → ProjectHeader-CaEZ2OPj.js} +1 -1
- package/dist/assets/{ProjectSettings-Zr1UOp7s.js → ProjectSettings-otA8E-yW.js} +2 -2
- package/dist/assets/{PushConnectionTracker.vue_vue_type_script_setup_true_lang-CM7WIpD3.js → PushConnectionTracker.vue_vue_type_script_setup_true_lang-C3JbZMCk.js} +1 -1
- package/dist/assets/{ResourcesListLayout-DTsuHdYx.js → ResourcesListLayout-1d9Ic6VX.js} +2 -2
- package/dist/assets/{ResourcesListLayout-CglK2dXR.css → ResourcesListLayout-CtGME7aU.css} +8 -8
- package/dist/assets/{RunData-DepHcD2K.css → RunData-BjlZgIyx.css} +102 -73
- package/dist/assets/{RunData-Ds-U68nr.js → RunData-Bx47sNQp.js} +690 -398
- package/dist/assets/{RunDataAi-BF2gZZGr.css → RunDataAi-D9VLFXIf.css} +10 -51
- package/dist/assets/{RunDataAi-DdK11EHU.js → RunDataAi-DOac7nwD.js} +27 -310
- package/dist/assets/{RunDataJson-Txw0lqay.css → RunDataJson-BH9HLoGC.css} +12 -8
- package/dist/assets/{RunDataJson-B2WU5od1.js → RunDataJson-Pev6yNEV.js} +20 -14
- package/dist/assets/{RunDataJsonActions-DqZ2X1yJ.js → RunDataJsonActions-Co4xgmVq.js} +1 -1
- package/dist/assets/RunDataParsedAiContent-9EEUzCKp.css +176 -0
- package/dist/assets/RunDataParsedAiContent-D6MNLmT3.js +148 -0
- package/dist/assets/{RunDataSearch-CQsyZvGK.js → RunDataSearch-C8orcAlP.js} +1 -1
- package/dist/assets/{RunDataTable-DyUvXWfl.css → RunDataTable-CUxj7dHx.css} +47 -39
- package/dist/assets/{RunDataTable-BO0R4JT_.js → RunDataTable-oi_l8dhA.js} +41 -30
- package/dist/assets/{SamlOnboarding-CmwMX5y2.js → SamlOnboarding-CT5J6dx0.js} +3 -3
- package/dist/assets/{SettingsApiView-D6uBbi9-.js → SettingsApiView-CupjcI9v.js} +1 -1
- package/dist/assets/{SettingsCommunityNodesView-CJODtx_K.js → SettingsCommunityNodesView-B5K2VLyJ.js} +4 -4
- package/dist/assets/{SettingsExternalSecrets-CVk14P_P.js → SettingsExternalSecrets-BidJCf_t.js} +1 -1
- package/dist/assets/{SettingsLdapView-pg71FErj.js → SettingsLdapView-Cva6akhW.js} +1 -1
- package/dist/assets/{SettingsLogStreamingView-DUOI3Xb9.js → SettingsLogStreamingView-Cy-rAKUO.js} +1 -1
- package/dist/assets/{SettingsPersonalView-BFnOmBPC.js → SettingsPersonalView-ZJ1Syok2.js} +14 -13
- package/dist/assets/{SettingsSourceControl-BUNmxcvB.js → SettingsSourceControl-CMtqqlkO.js} +1 -1
- package/dist/assets/{SettingsSso-Dx8Qw_2Z.js → SettingsSso-Bi3OpykL.js} +1 -1
- package/dist/assets/{SettingsUsageAndPlan-DTk86tXU.js → SettingsUsageAndPlan-C5TbwZhP.js} +1 -1
- package/dist/assets/{SettingsUsersView-BviXcl30.js → SettingsUsersView-BHuP5k0A.js} +1 -1
- package/dist/assets/{SettingsView-fzPdUijx.js → SettingsView-DPIIqaKN.js} +1 -1
- package/dist/assets/{SetupView-DUTx1JXK.js → SetupView-C4V9j6sh.js} +3 -3
- package/dist/assets/{SetupWorkflowCredentialsButton-fApxCGHh.js → SetupWorkflowCredentialsButton-BZ9ILQUp.js} +1 -1
- package/dist/assets/{SetupWorkflowFromTemplateView-C5t9fEKF.js → SetupWorkflowFromTemplateView-3uV3zSU2.js} +3 -3
- package/dist/assets/{SigninView-BRVoXQRW.js → SigninView-DWZHdCjG.js} +3 -3
- package/dist/assets/{SignoutView-Duh6wb4Y.js → SignoutView-DbduXAir.js} +1 -1
- package/dist/assets/{SignupView-DMkpTtjs.js → SignupView-DWq6VACk.js} +3 -3
- package/dist/assets/{TemplateDetails-Df9_jph6.js → TemplateDetails-BckqE6GK.js} +1 -1
- package/dist/assets/{TemplateList-qSnJvw0K.js → TemplateList-Bw0JeBMP.js} +1 -1
- package/dist/assets/{TemplatesCollectionView--ccYXaCo.js → TemplatesCollectionView-CAKT-mpV.js} +5 -5
- package/dist/assets/{TemplatesSearchView-D1YgHKld.js → TemplatesSearchView-I2a5us58.js} +3 -3
- package/dist/assets/{TemplatesView-B9CwObHN.js → TemplatesView-6EwGFFJK.js} +1 -1
- package/dist/assets/{TemplatesWorkflowView-DtLpUF59.js → TemplatesWorkflowView-C8xYMhwu.js} +5 -5
- package/dist/assets/{TestDefinitionEditView-DFcBlKnN.js → TestDefinitionEditView-CNd3Cuzq.js} +8 -8
- package/dist/assets/{TestDefinitionListView-C_mbolTO.js → TestDefinitionListView-BwTWIaAM.js} +1 -1
- package/dist/assets/{TestDefinitionNewView-CvyM6TLE.js → TestDefinitionNewView-BQas0_G1.js} +2 -2
- package/dist/assets/{TestDefinitionRootView-BXzJY0cY.js → TestDefinitionRootView-D971MFye.js} +1 -1
- package/dist/assets/{VariablesView-BHFJj5IU.js → VariablesView-DcBBuFxh.js} +3 -3
- package/dist/assets/{WorkerView-CgIksFjP.js → WorkerView-DSgBNIeb.js} +6 -6
- package/dist/assets/WorkflowActivator-CPCbgb_n.js +776 -0
- package/dist/assets/{MainHeader-CWA2JfVJ.css → WorkflowActivator-DAyH7N29.css} +74 -434
- package/dist/assets/{WorkflowExecutionsInfoAccordion-BcBLZ_Ul.js → WorkflowExecutionsInfoAccordion-Bc6vzAZu.js} +1 -1
- package/dist/assets/{WorkflowExecutionsLandingPage-B9ByHnbR.js → WorkflowExecutionsLandingPage-BPPS4V9i.js} +2 -2
- package/dist/assets/{WorkflowExecutionsPreview-DCE7TYLh.js → WorkflowExecutionsPreview-Bbb5MB8Z.js} +6 -6
- package/dist/assets/{WorkflowExecutionsView-DFoBpdS7.js → WorkflowExecutionsView-Pz-7iHJY.js} +11 -9
- package/dist/assets/{WorkflowHistory-DolmPUM2.js → WorkflowHistory-Czo9IuI6.js} +4 -4
- package/dist/assets/{WorkflowOnboardingView-DQW48M8_.js → WorkflowOnboardingView-B8DdkfJ5.js} +1 -1
- package/dist/assets/{WorkflowPreview-BFR6V9SO.js → WorkflowPreview-eVlO1itk.js} +1 -1
- package/dist/assets/{WorkflowsView-CsM69PSv.css → WorkflowsView-B2_HJCJ5.css} +28 -162
- package/dist/assets/{WorkflowsView-B-feKuLZ.js → WorkflowsView-Cr2D0vym.js} +124 -217
- package/dist/assets/{chartjs.utils-BcXTJ2Te.js → chartjs.utils-Dk1WO3Mr.js} +2 -2
- package/dist/assets/{dateFormatter-CZI1kGYK.js → dateFormatter-C8N5khiG.js} +5 -5
- package/dist/assets/{easyAiWorkflowUtils-ChToD_Yl.js → easyAiWorkflowUtils-CLqHnasO.js} +1 -1
- package/dist/assets/{global-link-actions-OGaZVwsw.js → global-link-actions-BvoZh8u9.js} +1 -1
- package/dist/assets/{import-curl-CAszzwx1.js → import-curl-BpxkGYMX.js} +1 -1
- package/dist/assets/{index-BpdkKRP4.js → index-B6eunbxp.js} +14227 -11881
- package/dist/assets/{index-7WdERzqm.js → index-Br8T1Gn6.js} +1 -1
- package/dist/assets/{index-C5OXOcIJ.css → index-DCpy4nCU.css} +6147 -4061
- package/dist/assets/{pickBy-mYqFOFbh.js → pickBy-8Urz9lDY.js} +1 -1
- package/dist/assets/{templateActions-BX9arLbc.js → templateActions-DzjysjbQ.js} +1 -1
- package/dist/assets/{useBeforeUnload-K7nQ15Rk.js → useBeforeUnload-DxrN8vOO.js} +1 -1
- package/dist/assets/{useCanvasMapping-D_UPCxYX.js → useCanvasMapping-C2BQB9QB.js} +270 -112
- package/dist/assets/{useCanvasMapping-C--wac6H.css → useCanvasMapping-cuXLM-h-.css} +185 -4
- package/dist/assets/{useCanvasOperations-D6VFiC3b.js → useCanvasOperations-DaP5jKbH.js} +4 -3
- package/dist/assets/{useClearExecutionButtonVisible-D_0O6f0X.js → useClearExecutionButtonVisible-BV-jMf2m.js} +2 -2
- package/dist/assets/{useExecutionDebugging-BNMaKOh7.js → useExecutionDebugging-0pPCimcw.js} +1 -1
- package/dist/assets/{useExecutionHelpers-DN5HqPqY.js → useExecutionHelpers-DIvhViMz.js} +2 -2
- package/dist/assets/{useImportCurlCommand-BSL596XF.js → useImportCurlCommand-BWf4R83s.js} +19 -10
- package/dist/assets/usePushConnection-Pobjq0U9.js +632 -0
- package/dist/assets/{useTestDefinitionForm-CIhrxyve.js → useTestDefinitionForm-BA3IS_2B.js} +1 -1
- package/dist/assets/{useWorkflowActivate-pZ62ib_C.js → useWorkflowActivate-DFqvrpj6.js} +1 -1
- package/dist/assets/useWorkflowSaving-BACesUoL.js +66 -0
- package/dist/index.html +2 -2
- package/package.json +1 -1
- package/vite.config.mts +15 -1
- package/dist/assets/CollectionParameter-CQXiWluX.js +0 -4
- package/dist/assets/InsightsDashboard-o3JS9fjz.js +0 -178
- package/dist/assets/WorkflowActivator-BX59FxTZ.css +0 -260
- package/dist/assets/WorkflowActivator-O6i5XAk2.js +0 -231
- package/dist/assets/usePushConnection-BdV7ILvK.js +0 -535
|
@@ -0,0 +1,372 @@
|
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/InsightsPaywall-5d-cSdiS.js","assets/index-B6eunbxp.js","assets/index-DCpy4nCU.css","assets/InsightsPaywall-CE5W3W4m.css","assets/InsightsChartTotal-2QD4wPLR.js","assets/chartjs.utils-Dk1WO3Mr.js","assets/InsightsSummary-gldDQ9rg.js","assets/InsightsSummary-CdlaUpAt.css","assets/index-Br8T1Gn6.js","assets/InsightsChartFailed-IZ-KYOU9.js","assets/InsightsChartFailureRate-2fWw3p0L.js","assets/InsightsChartTimeSaved-B2pLVys1.js","assets/InsightsChartAverageRuntime-Boh0SMb3.js","assets/InsightsTableWorkflows-_eTCUNCX.js","assets/InsightsTableWorkflows-Blv_GPUj.css"])))=>i.map(i=>d[i]);
|
|
2
|
+
import { d as defineComponent, ge as useModel, h3 as useInsightsStore, r as ref, ho as UNLICENSED_TIME_RANGE, h9 as TIME_RANGE_LABELS, e as createBlock, g as openBlock, w as withCtx, i as createElementBlock, F as Fragment, D as renderList, m as unref, ed as _sfc_main$3, l as createTextVNode, f as createCommentVNode, t as toDisplayString, k as createBaseVNode, ee as N8nSelect, q as computed, c as useI18n, j as createVNode, be as N8nText, bg as N8nButton, hp as ElDialog, a6 as usePageRedirectionHelper, _ as _export_sfc, c3 as defineAsyncComponent, X as watch, h as resolveComponent, n as normalizeClass, b6 as resolveDynamicComponent, ao as __vitePreload, ag as useTelemetry, hq as TELEMETRY_TIME_RANGE } from "./index-B6eunbxp.js";
|
|
3
|
+
import { I as InsightsSummary } from "./InsightsSummary-gldDQ9rg.js";
|
|
4
|
+
const _hoisted_1$2 = {
|
|
5
|
+
key: 0,
|
|
6
|
+
width: "16",
|
|
7
|
+
height: "17",
|
|
8
|
+
viewBox: "0 0 16 17",
|
|
9
|
+
fill: "none",
|
|
10
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
11
|
+
style: { "margin-left": "auto" }
|
|
12
|
+
};
|
|
13
|
+
const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
14
|
+
__name: "InsightsDateRangeSelect",
|
|
15
|
+
props: {
|
|
16
|
+
"modelValue": {
|
|
17
|
+
required: true
|
|
18
|
+
},
|
|
19
|
+
"modelModifiers": {}
|
|
20
|
+
},
|
|
21
|
+
emits: ["update:modelValue"],
|
|
22
|
+
setup(__props) {
|
|
23
|
+
const model = useModel(__props, "modelValue");
|
|
24
|
+
const insightsStore = useInsightsStore();
|
|
25
|
+
const timeOptions = ref(
|
|
26
|
+
insightsStore.dateRanges.map((option) => {
|
|
27
|
+
return {
|
|
28
|
+
key: option.key,
|
|
29
|
+
label: TIME_RANGE_LABELS[option.key],
|
|
30
|
+
value: option.licensed ? option.key : UNLICENSED_TIME_RANGE,
|
|
31
|
+
licensed: option.licensed
|
|
32
|
+
};
|
|
33
|
+
})
|
|
34
|
+
);
|
|
35
|
+
return (_ctx, _cache) => {
|
|
36
|
+
return openBlock(), createBlock(unref(N8nSelect), {
|
|
37
|
+
modelValue: model.value,
|
|
38
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => model.value = $event),
|
|
39
|
+
size: "small"
|
|
40
|
+
}, {
|
|
41
|
+
default: withCtx(() => [
|
|
42
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(timeOptions.value, (item) => {
|
|
43
|
+
return openBlock(), createBlock(unref(_sfc_main$3), {
|
|
44
|
+
key: item.key,
|
|
45
|
+
value: item.value,
|
|
46
|
+
label: item.label
|
|
47
|
+
}, {
|
|
48
|
+
default: withCtx(() => [
|
|
49
|
+
createTextVNode(toDisplayString(item.label) + " ", 1),
|
|
50
|
+
!item.licensed ? (openBlock(), createElementBlock("svg", _hoisted_1$2, _cache[1] || (_cache[1] = [
|
|
51
|
+
createBaseVNode("path", {
|
|
52
|
+
d: "M12.6667 7.83337H3.33333C2.59695 7.83337 2 8.43033 2 9.16671V13.8334C2 14.5698 2.59695 15.1667 3.33333 15.1667H12.6667C13.403 15.1667 14 14.5698 14 13.8334V9.16671C14 8.43033 13.403 7.83337 12.6667 7.83337Z",
|
|
53
|
+
stroke: "#9A9A9A",
|
|
54
|
+
"stroke-width": "1.33333",
|
|
55
|
+
"stroke-linecap": "round",
|
|
56
|
+
"stroke-linejoin": "round"
|
|
57
|
+
}, null, -1),
|
|
58
|
+
createBaseVNode("path", {
|
|
59
|
+
d: "M4.66681 7.83337V5.16671C4.66681 4.28265 5.018 3.43481 5.64312 2.80968C6.26824 2.18456 7.11609 1.83337 8.00014 1.83337C8.8842 1.83337 9.73204 2.18456 10.3572 2.80968C10.9823 3.43481 11.3335 4.28265 11.3335 5.16671V7.83337",
|
|
60
|
+
stroke: "#9A9A9A",
|
|
61
|
+
"stroke-width": "1.33333",
|
|
62
|
+
"stroke-linecap": "round",
|
|
63
|
+
"stroke-linejoin": "round"
|
|
64
|
+
}, null, -1)
|
|
65
|
+
]))) : createCommentVNode("", true)
|
|
66
|
+
]),
|
|
67
|
+
_: 2
|
|
68
|
+
}, 1032, ["value", "label"]);
|
|
69
|
+
}), 128))
|
|
70
|
+
]),
|
|
71
|
+
_: 1
|
|
72
|
+
}, 8, ["modelValue"]);
|
|
73
|
+
};
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
const _hoisted_1$1 = { class: "perks-list" };
|
|
77
|
+
const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
78
|
+
__name: "InsightsUpgradeModal",
|
|
79
|
+
props: {
|
|
80
|
+
"modelValue": { type: Boolean },
|
|
81
|
+
"modelModifiers": {}
|
|
82
|
+
},
|
|
83
|
+
emits: ["update:modelValue"],
|
|
84
|
+
setup(__props) {
|
|
85
|
+
const model = useModel(__props, "modelValue");
|
|
86
|
+
const i18n = useI18n();
|
|
87
|
+
function goToUpgrade() {
|
|
88
|
+
model.value = false;
|
|
89
|
+
void usePageRedirectionHelper().goToUpgrade("insights", "upgrade-insights");
|
|
90
|
+
}
|
|
91
|
+
const perks = computed(
|
|
92
|
+
() => [...Array(3).keys()].map(
|
|
93
|
+
(index) => i18n.baseText(`insights.upgradeModal.perks.${index}`)
|
|
94
|
+
)
|
|
95
|
+
);
|
|
96
|
+
return (_ctx, _cache) => {
|
|
97
|
+
return openBlock(), createBlock(unref(ElDialog), {
|
|
98
|
+
modelValue: model.value,
|
|
99
|
+
"onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => model.value = $event),
|
|
100
|
+
title: unref(i18n).baseText("insights.upgradeModal.title"),
|
|
101
|
+
width: "500"
|
|
102
|
+
}, {
|
|
103
|
+
footer: withCtx(() => [
|
|
104
|
+
createBaseVNode("div", null, [
|
|
105
|
+
createVNode(unref(N8nButton), {
|
|
106
|
+
type: "secondary",
|
|
107
|
+
onClick: _cache[0] || (_cache[0] = ($event) => model.value = false)
|
|
108
|
+
}, {
|
|
109
|
+
default: withCtx(() => [
|
|
110
|
+
createTextVNode(toDisplayString(unref(i18n).baseText("insights.upgradeModal.button.dismiss")), 1)
|
|
111
|
+
]),
|
|
112
|
+
_: 1
|
|
113
|
+
}),
|
|
114
|
+
createVNode(unref(N8nButton), {
|
|
115
|
+
type: "primary",
|
|
116
|
+
onClick: goToUpgrade
|
|
117
|
+
}, {
|
|
118
|
+
default: withCtx(() => [
|
|
119
|
+
createTextVNode(toDisplayString(unref(i18n).baseText("insights.upgradeModal.button.upgrade")), 1)
|
|
120
|
+
]),
|
|
121
|
+
_: 1
|
|
122
|
+
})
|
|
123
|
+
])
|
|
124
|
+
]),
|
|
125
|
+
default: withCtx(() => [
|
|
126
|
+
createBaseVNode("div", null, [
|
|
127
|
+
createVNode(unref(N8nText), {
|
|
128
|
+
tag: "p",
|
|
129
|
+
class: "mb-s"
|
|
130
|
+
}, {
|
|
131
|
+
default: withCtx(() => [
|
|
132
|
+
createTextVNode(toDisplayString(unref(i18n).baseText("insights.upgradeModal.content")), 1)
|
|
133
|
+
]),
|
|
134
|
+
_: 1
|
|
135
|
+
}),
|
|
136
|
+
createBaseVNode("ul", _hoisted_1$1, [
|
|
137
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(perks.value, (perk) => {
|
|
138
|
+
return openBlock(), createBlock(unref(N8nText), {
|
|
139
|
+
key: perk,
|
|
140
|
+
color: "text-dark",
|
|
141
|
+
tag: "li"
|
|
142
|
+
}, {
|
|
143
|
+
default: withCtx(() => [
|
|
144
|
+
_cache[2] || (_cache[2] = createBaseVNode("svg", {
|
|
145
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
146
|
+
viewBox: "0 0 16 16",
|
|
147
|
+
width: "16px",
|
|
148
|
+
height: "16px"
|
|
149
|
+
}, [
|
|
150
|
+
createBaseVNode("path", {
|
|
151
|
+
d: "M 16 8 C 16 12.418 12.418 16 8 16 C 3.582 16 0 12.418 0 8 C 0 3.582 3.582 0 8 0 C 12.418 0 16 3.582 16 8 Z M 3.97 9.03 L 5.97 11.03 L 6.5 11.561 L 7.03 11.03 L 12.53 5.53 L 11.47 4.47 L 6.5 9.439 L 5.03 7.97 L 3.97 9.03 Z",
|
|
152
|
+
fill: "currentColor"
|
|
153
|
+
})
|
|
154
|
+
], -1)),
|
|
155
|
+
createTextVNode(" " + toDisplayString(perk), 1)
|
|
156
|
+
]),
|
|
157
|
+
_: 2
|
|
158
|
+
}, 1024);
|
|
159
|
+
}), 128))
|
|
160
|
+
])
|
|
161
|
+
])
|
|
162
|
+
]),
|
|
163
|
+
_: 1
|
|
164
|
+
}, 8, ["modelValue", "title"]);
|
|
165
|
+
};
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
const InsightsUpgradeModal = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-481d45c1"]]);
|
|
169
|
+
const _hoisted_1 = { class: "mt-s" };
|
|
170
|
+
const _hoisted_2 = { key: 1 };
|
|
171
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
172
|
+
__name: "InsightsDashboard",
|
|
173
|
+
props: {
|
|
174
|
+
insightType: {}
|
|
175
|
+
},
|
|
176
|
+
setup(__props) {
|
|
177
|
+
const InsightsPaywall = defineAsyncComponent(
|
|
178
|
+
async () => await __vitePreload(() => import("./InsightsPaywall-5d-cSdiS.js"), true ? __vite__mapDeps([0,1,2,3]) : void 0)
|
|
179
|
+
);
|
|
180
|
+
const InsightsChartTotal = defineAsyncComponent(
|
|
181
|
+
async () => await __vitePreload(() => import("./InsightsChartTotal-2QD4wPLR.js"), true ? __vite__mapDeps([4,1,2,5,6,7,8]) : void 0)
|
|
182
|
+
);
|
|
183
|
+
const InsightsChartFailed = defineAsyncComponent(
|
|
184
|
+
async () => await __vitePreload(() => import("./InsightsChartFailed-IZ-KYOU9.js"), true ? __vite__mapDeps([9,1,2,5,6,7,8]) : void 0)
|
|
185
|
+
);
|
|
186
|
+
const InsightsChartFailureRate = defineAsyncComponent(
|
|
187
|
+
async () => await __vitePreload(() => import("./InsightsChartFailureRate-2fWw3p0L.js"), true ? __vite__mapDeps([10,1,2,5,6,7,8]) : void 0)
|
|
188
|
+
);
|
|
189
|
+
const InsightsChartTimeSaved = defineAsyncComponent(
|
|
190
|
+
async () => await __vitePreload(() => import("./InsightsChartTimeSaved-B2pLVys1.js"), true ? __vite__mapDeps([11,1,2,5,6,7,8]) : void 0)
|
|
191
|
+
);
|
|
192
|
+
const InsightsChartAverageRuntime = defineAsyncComponent(
|
|
193
|
+
async () => await __vitePreload(() => import("./InsightsChartAverageRuntime-Boh0SMb3.js"), true ? __vite__mapDeps([12,1,2,5,6,7,8]) : void 0)
|
|
194
|
+
);
|
|
195
|
+
const InsightsTableWorkflows = defineAsyncComponent(
|
|
196
|
+
async () => await __vitePreload(() => import("./InsightsTableWorkflows-_eTCUNCX.js"), true ? __vite__mapDeps([13,1,2,6,7,14]) : void 0)
|
|
197
|
+
);
|
|
198
|
+
const props = __props;
|
|
199
|
+
const i18n = useI18n();
|
|
200
|
+
const telemetry = useTelemetry();
|
|
201
|
+
const insightsStore = useInsightsStore();
|
|
202
|
+
const chartComponents = computed(() => ({
|
|
203
|
+
total: InsightsChartTotal,
|
|
204
|
+
failed: InsightsChartFailed,
|
|
205
|
+
failureRate: InsightsChartFailureRate,
|
|
206
|
+
timeSaved: InsightsChartTimeSaved,
|
|
207
|
+
averageRunTime: InsightsChartAverageRuntime
|
|
208
|
+
}));
|
|
209
|
+
const transformFilter = ({ id, desc }) => {
|
|
210
|
+
const key = id;
|
|
211
|
+
const order = desc ? "desc" : "asc";
|
|
212
|
+
return `${key}:${order}`;
|
|
213
|
+
};
|
|
214
|
+
const fetchPaginatedTableData = ({
|
|
215
|
+
page = 0,
|
|
216
|
+
itemsPerPage = 20,
|
|
217
|
+
sortBy,
|
|
218
|
+
dateRange = selectedDateRange.value
|
|
219
|
+
}) => {
|
|
220
|
+
const skip = page * itemsPerPage;
|
|
221
|
+
const take = itemsPerPage;
|
|
222
|
+
const sortKey = sortBy.length ? transformFilter(sortBy[0]) : void 0;
|
|
223
|
+
void insightsStore.table.execute(0, {
|
|
224
|
+
skip,
|
|
225
|
+
take,
|
|
226
|
+
sortBy: sortKey,
|
|
227
|
+
dateRange
|
|
228
|
+
});
|
|
229
|
+
};
|
|
230
|
+
const sortTableBy = ref([{ id: props.insightType, desc: true }]);
|
|
231
|
+
const upgradeModalVisible = ref(false);
|
|
232
|
+
const selectedDateRange = ref("week");
|
|
233
|
+
const granularity = computed(
|
|
234
|
+
() => insightsStore.dateRanges.find((item) => item.key === selectedDateRange.value)?.granularity ?? "day"
|
|
235
|
+
);
|
|
236
|
+
function handleTimeChange(value) {
|
|
237
|
+
if (value === UNLICENSED_TIME_RANGE) {
|
|
238
|
+
upgradeModalVisible.value = true;
|
|
239
|
+
return;
|
|
240
|
+
}
|
|
241
|
+
selectedDateRange.value = value;
|
|
242
|
+
telemetry.track("User updated insights time range", { range: TELEMETRY_TIME_RANGE[value] });
|
|
243
|
+
}
|
|
244
|
+
watch(
|
|
245
|
+
() => [props.insightType, selectedDateRange.value],
|
|
246
|
+
() => {
|
|
247
|
+
sortTableBy.value = [{ id: props.insightType, desc: true }];
|
|
248
|
+
if (insightsStore.isSummaryEnabled) {
|
|
249
|
+
void insightsStore.summary.execute(0, { dateRange: selectedDateRange.value });
|
|
250
|
+
}
|
|
251
|
+
if (insightsStore.isDashboardEnabled) {
|
|
252
|
+
void insightsStore.charts.execute(0, { dateRange: selectedDateRange.value });
|
|
253
|
+
fetchPaginatedTableData({ sortBy: sortTableBy.value, dateRange: selectedDateRange.value });
|
|
254
|
+
}
|
|
255
|
+
},
|
|
256
|
+
{
|
|
257
|
+
immediate: true
|
|
258
|
+
}
|
|
259
|
+
);
|
|
260
|
+
return (_ctx, _cache) => {
|
|
261
|
+
const _component_N8nHeading = resolveComponent("N8nHeading");
|
|
262
|
+
return openBlock(), createElementBlock("div", {
|
|
263
|
+
class: normalizeClass(_ctx.$style.insightsView)
|
|
264
|
+
}, [
|
|
265
|
+
createBaseVNode("div", {
|
|
266
|
+
class: normalizeClass(_ctx.$style.insightsContainer)
|
|
267
|
+
}, [
|
|
268
|
+
createVNode(_component_N8nHeading, {
|
|
269
|
+
bold: "",
|
|
270
|
+
tag: "h2",
|
|
271
|
+
size: "xlarge"
|
|
272
|
+
}, {
|
|
273
|
+
default: withCtx(() => [
|
|
274
|
+
createTextVNode(toDisplayString(unref(i18n).baseText("insights.dashboard.title")), 1)
|
|
275
|
+
]),
|
|
276
|
+
_: 1
|
|
277
|
+
}),
|
|
278
|
+
createBaseVNode("div", _hoisted_1, [
|
|
279
|
+
createVNode(_sfc_main$2, {
|
|
280
|
+
"model-value": selectedDateRange.value,
|
|
281
|
+
style: { "width": "173px" },
|
|
282
|
+
"data-test-id": "range-select",
|
|
283
|
+
"onUpdate:modelValue": handleTimeChange
|
|
284
|
+
}, null, 8, ["model-value"]),
|
|
285
|
+
createVNode(InsightsUpgradeModal, {
|
|
286
|
+
modelValue: upgradeModalVisible.value,
|
|
287
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => upgradeModalVisible.value = $event)
|
|
288
|
+
}, null, 8, ["modelValue"])
|
|
289
|
+
]),
|
|
290
|
+
unref(insightsStore).isSummaryEnabled ? (openBlock(), createBlock(InsightsSummary, {
|
|
291
|
+
key: 0,
|
|
292
|
+
summary: unref(insightsStore).summary.state,
|
|
293
|
+
loading: unref(insightsStore).summary.isLoading,
|
|
294
|
+
"time-range": selectedDateRange.value,
|
|
295
|
+
class: normalizeClass(_ctx.$style.insightsBanner)
|
|
296
|
+
}, null, 8, ["summary", "loading", "time-range", "class"])) : createCommentVNode("", true),
|
|
297
|
+
createBaseVNode("div", {
|
|
298
|
+
class: normalizeClass(_ctx.$style.insightsContent)
|
|
299
|
+
}, [
|
|
300
|
+
!unref(insightsStore).isDashboardEnabled ? (openBlock(), createBlock(unref(InsightsPaywall), {
|
|
301
|
+
key: 0,
|
|
302
|
+
"data-test-id": "insights-dashboard-unlicensed"
|
|
303
|
+
})) : (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
304
|
+
createBaseVNode("div", {
|
|
305
|
+
class: normalizeClass(_ctx.$style.insightsChartWrapper)
|
|
306
|
+
}, [
|
|
307
|
+
unref(insightsStore).charts.isLoading ? (openBlock(), createElementBlock("div", {
|
|
308
|
+
key: 0,
|
|
309
|
+
class: normalizeClass(_ctx.$style.chartLoader)
|
|
310
|
+
}, [
|
|
311
|
+
_cache[2] || (_cache[2] = createBaseVNode("svg", {
|
|
312
|
+
width: "22",
|
|
313
|
+
height: "22",
|
|
314
|
+
viewBox: "0 0 22 22",
|
|
315
|
+
fill: "none",
|
|
316
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
317
|
+
}, [
|
|
318
|
+
createBaseVNode("path", {
|
|
319
|
+
d: "M21 11C21 16.5228 16.5228 21 11 21C5.47715 21 1 16.5228 1 11C1 5.47715 5.47715 1 11 1C11.6293 1 12.245 1.05813 12.8421 1.16931",
|
|
320
|
+
stroke: "currentColor",
|
|
321
|
+
"stroke-width": "2"
|
|
322
|
+
})
|
|
323
|
+
], -1)),
|
|
324
|
+
createTextVNode(" " + toDisplayString(unref(i18n).baseText("insights.chart.loading")), 1)
|
|
325
|
+
], 2)) : (openBlock(), createBlock(resolveDynamicComponent(chartComponents.value[props.insightType]), {
|
|
326
|
+
key: 1,
|
|
327
|
+
type: props.insightType,
|
|
328
|
+
data: unref(insightsStore).charts.state,
|
|
329
|
+
granularity: granularity.value
|
|
330
|
+
}, null, 8, ["type", "data", "granularity"]))
|
|
331
|
+
], 2),
|
|
332
|
+
createBaseVNode("div", {
|
|
333
|
+
class: normalizeClass(_ctx.$style.insightsTableWrapper)
|
|
334
|
+
}, [
|
|
335
|
+
createVNode(unref(InsightsTableWorkflows), {
|
|
336
|
+
"sort-by": sortTableBy.value,
|
|
337
|
+
"onUpdate:sortBy": _cache[1] || (_cache[1] = ($event) => sortTableBy.value = $event),
|
|
338
|
+
data: unref(insightsStore).table.state,
|
|
339
|
+
loading: unref(insightsStore).table.isLoading,
|
|
340
|
+
"onUpdate:options": fetchPaginatedTableData
|
|
341
|
+
}, null, 8, ["sort-by", "data", "loading"])
|
|
342
|
+
], 2)
|
|
343
|
+
]))
|
|
344
|
+
], 2)
|
|
345
|
+
], 2)
|
|
346
|
+
], 2);
|
|
347
|
+
};
|
|
348
|
+
}
|
|
349
|
+
});
|
|
350
|
+
const insightsView = "_insightsView_1j6u6_123";
|
|
351
|
+
const insightsContainer = "_insightsContainer_1j6u6_131";
|
|
352
|
+
const insightsBanner = "_insightsBanner_1j6u6_138";
|
|
353
|
+
const insightsContent = "_insightsContent_1j6u6_146";
|
|
354
|
+
const insightsChartWrapper = "_insightsChartWrapper_1j6u6_155";
|
|
355
|
+
const insightsTableWrapper = "_insightsTableWrapper_1j6u6_160";
|
|
356
|
+
const chartLoader = "_chartLoader_1j6u6_164";
|
|
357
|
+
const style0 = {
|
|
358
|
+
insightsView,
|
|
359
|
+
insightsContainer,
|
|
360
|
+
insightsBanner,
|
|
361
|
+
insightsContent,
|
|
362
|
+
insightsChartWrapper,
|
|
363
|
+
insightsTableWrapper,
|
|
364
|
+
chartLoader
|
|
365
|
+
};
|
|
366
|
+
const cssModules = {
|
|
367
|
+
"$style": style0
|
|
368
|
+
};
|
|
369
|
+
const InsightsDashboard = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
|
|
370
|
+
export {
|
|
371
|
+
InsightsDashboard as default
|
|
372
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as defineComponent,
|
|
1
|
+
import { d as defineComponent, a6 as usePageRedirectionHelper, h as resolveComponent, i as createElementBlock, g as openBlock, j as createVNode, w as withCtx, l as createTextVNode, t as toDisplayString, m as unref, c as useI18n, n as normalizeClass, _ as _export_sfc } from "./index-B6eunbxp.js";
|
|
2
2
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
3
3
|
__name: "InsightsPaywall",
|
|
4
4
|
setup(__props) {
|
|
@@ -120,12 +120,12 @@
|
|
|
120
120
|
-------------------------- */
|
|
121
121
|
/* BEM
|
|
122
122
|
-------------------------- */
|
|
123
|
-
.
|
|
123
|
+
._insights_syjwy_123 {
|
|
124
124
|
display: grid;
|
|
125
125
|
grid-template-rows: auto 1fr;
|
|
126
126
|
padding: var(--spacing-xs) 0 var(--spacing-2xl);
|
|
127
127
|
}
|
|
128
|
-
.
|
|
128
|
+
._insights_syjwy_123 ul {
|
|
129
129
|
display: flex;
|
|
130
130
|
height: 101px;
|
|
131
131
|
align-items: stretch;
|
|
@@ -135,17 +135,17 @@
|
|
|
135
135
|
list-style: none;
|
|
136
136
|
overflow-x: auto;
|
|
137
137
|
}
|
|
138
|
-
.
|
|
138
|
+
._insights_syjwy_123 ul li {
|
|
139
139
|
display: flex;
|
|
140
140
|
justify-content: stretch;
|
|
141
141
|
align-items: stretch;
|
|
142
142
|
flex: 1 0;
|
|
143
143
|
border-left: var(--border-width-base) var(--border-style-base) var(--color-foreground-base);
|
|
144
144
|
}
|
|
145
|
-
.
|
|
145
|
+
._insights_syjwy_123 ul li:first-child {
|
|
146
146
|
border-left: 0;
|
|
147
147
|
}
|
|
148
|
-
.
|
|
148
|
+
._insights_syjwy_123 ul a {
|
|
149
149
|
display: grid;
|
|
150
150
|
align-items: center;
|
|
151
151
|
align-content: center;
|
|
@@ -154,16 +154,16 @@
|
|
|
154
154
|
padding: var(--spacing-3xs) var(--spacing-l) 0;
|
|
155
155
|
border-bottom: 3px solid transparent;
|
|
156
156
|
}
|
|
157
|
-
.
|
|
157
|
+
._insights_syjwy_123 ul a:hover {
|
|
158
158
|
background-color: var(--color-background-xlight);
|
|
159
159
|
transition: background-color 0.3s;
|
|
160
160
|
}
|
|
161
|
-
.
|
|
161
|
+
._insights_syjwy_123 ul a._activeTab_syjwy_161 {
|
|
162
162
|
background-color: var(--color-background-xlight);
|
|
163
163
|
border-color: var(--color-primary);
|
|
164
164
|
transition: background-color 0.3s ease-in-out;
|
|
165
165
|
}
|
|
166
|
-
.
|
|
166
|
+
._insights_syjwy_123 ul a strong {
|
|
167
167
|
justify-self: flex-start;
|
|
168
168
|
color: var(--color-text-dark);
|
|
169
169
|
font-size: var(--font-size-s);
|
|
@@ -171,33 +171,33 @@
|
|
|
171
171
|
white-space: nowrap;
|
|
172
172
|
margin-bottom: var(--spacing-3xs);
|
|
173
173
|
}
|
|
174
|
-
.
|
|
174
|
+
._insights_syjwy_123 ul a ._days_syjwy_174 {
|
|
175
175
|
padding: 0;
|
|
176
176
|
margin: 0 0 var(--spacing-xs);
|
|
177
177
|
color: var(--color-text-light);
|
|
178
178
|
font-size: var(--font-size-2xs);
|
|
179
179
|
font-weight: var(--font-weight-normal);
|
|
180
180
|
}
|
|
181
|
-
.
|
|
181
|
+
._insights_syjwy_123 ul a span {
|
|
182
182
|
display: flex;
|
|
183
183
|
align-items: baseline;
|
|
184
184
|
}
|
|
185
|
-
.
|
|
185
|
+
._insights_syjwy_123 ul a span._empty_syjwy_185 em {
|
|
186
186
|
color: var(--color-text-lighter);
|
|
187
187
|
}
|
|
188
|
-
.
|
|
188
|
+
._insights_syjwy_123 ul a span._empty_syjwy_185 small {
|
|
189
189
|
padding: 0;
|
|
190
190
|
height: 21px;
|
|
191
191
|
font-weight: var(--font-weight-bold);
|
|
192
192
|
}
|
|
193
|
-
.
|
|
193
|
+
._insights_syjwy_123 ul a span._empty_syjwy_185 small ._icon_syjwy_193 {
|
|
194
194
|
height: 20px;
|
|
195
195
|
width: 8px;
|
|
196
|
-
top:
|
|
196
|
+
top: 5px;
|
|
197
197
|
transform: translateY(0);
|
|
198
198
|
color: var(--color-text-light);
|
|
199
199
|
}
|
|
200
|
-
.
|
|
200
|
+
._insights_syjwy_123 ul a em {
|
|
201
201
|
display: flex;
|
|
202
202
|
align-items: baseline;
|
|
203
203
|
justify-content: flex-start;
|
|
@@ -208,11 +208,11 @@
|
|
|
208
208
|
font-style: normal;
|
|
209
209
|
gap: var(--spacing-5xs);
|
|
210
210
|
}
|
|
211
|
-
.
|
|
211
|
+
._insights_syjwy_123 ul a em i {
|
|
212
212
|
font-size: 22px;
|
|
213
213
|
font-style: normal;
|
|
214
214
|
}
|
|
215
|
-
.
|
|
215
|
+
._insights_syjwy_123 ul a small {
|
|
216
216
|
position: relative;
|
|
217
217
|
display: flex;
|
|
218
218
|
align-items: center;
|
|
@@ -222,35 +222,35 @@
|
|
|
222
222
|
font-weight: var(--font-weight-bold);
|
|
223
223
|
white-space: nowrap;
|
|
224
224
|
}
|
|
225
|
-
.
|
|
225
|
+
._insights_syjwy_123 ._noData_syjwy_225 em {
|
|
226
226
|
color: var(--color-text-light);
|
|
227
227
|
font-size: var(--font-size-m);
|
|
228
228
|
}
|
|
229
|
-
.
|
|
229
|
+
._positive_syjwy_230 {
|
|
230
230
|
color: var(--color-success);
|
|
231
231
|
}
|
|
232
|
-
.
|
|
232
|
+
._negative_syjwy_234 {
|
|
233
233
|
color: var(--color-danger);
|
|
234
234
|
}
|
|
235
|
-
.
|
|
235
|
+
._neutral_syjwy_238 {
|
|
236
236
|
color: var(--color-text-light);
|
|
237
237
|
}
|
|
238
|
-
.
|
|
238
|
+
._neutral_syjwy_238 ._icon_syjwy_193 {
|
|
239
239
|
font-size: 17px;
|
|
240
240
|
}
|
|
241
|
-
.
|
|
241
|
+
._icon_syjwy_193 {
|
|
242
242
|
position: absolute;
|
|
243
243
|
font-size: 17px;
|
|
244
244
|
left: 0;
|
|
245
245
|
top: 50%;
|
|
246
246
|
transform: translateY(-50%);
|
|
247
247
|
}
|
|
248
|
-
.
|
|
248
|
+
._loading_syjwy_253 {
|
|
249
249
|
display: flex;
|
|
250
250
|
align-self: stretch;
|
|
251
251
|
align-items: stretch;
|
|
252
252
|
}
|
|
253
|
-
.
|
|
253
|
+
._loading_syjwy_253 > div {
|
|
254
254
|
margin: 0;
|
|
255
255
|
height: auto;
|
|
256
256
|
border-radius: inherit;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { d as defineComponent,
|
|
1
|
+
import { d as defineComponent, R as useRoute, Y as useCssModule, q as computed, c as useI18n, V as VIEWS, h as resolveComponent, i as createElementBlock, g as openBlock, k as createBaseVNode, e as createBlock, n as normalizeClass, m as unref, F as Fragment, D as renderList, j as createVNode, w as withCtx, l as createTextVNode, t as toDisplayString, h9 as TIME_RANGE_LABELS, f as createCommentVNode, ha as INSIGHT_IMPACT_TYPES, hb as INSIGHTS_UNIT_IMPACT_MAPPING, ag as useTelemetry, _ as _export_sfc } from "./index-B6eunbxp.js";
|
|
2
2
|
const smartDecimal = (value, decimals = 2) => {
|
|
3
3
|
if (Number.isInteger(value)) {
|
|
4
4
|
return value;
|
|
@@ -10,12 +10,12 @@ const smartDecimal = (value, decimals = 2) => {
|
|
|
10
10
|
};
|
|
11
11
|
const _hoisted_1 = { "data-test-id": "insights-summary-tabs" };
|
|
12
12
|
const _hoisted_2 = ["data-test-id"];
|
|
13
|
-
const _hoisted_3 = {
|
|
14
|
-
const _hoisted_4 = { key: 2 };
|
|
13
|
+
const _hoisted_3 = { key: 2 };
|
|
15
14
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
16
15
|
__name: "InsightsSummary",
|
|
17
16
|
props: {
|
|
18
17
|
summary: {},
|
|
18
|
+
timeRange: {},
|
|
19
19
|
loading: { type: Boolean }
|
|
20
20
|
},
|
|
21
21
|
setup(__props) {
|
|
@@ -24,7 +24,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
24
24
|
const route = useRoute();
|
|
25
25
|
const $style = useCssModule();
|
|
26
26
|
const telemetry = useTelemetry();
|
|
27
|
-
const lastNDays = ref(7);
|
|
28
27
|
const summaryTitles = computed(() => ({
|
|
29
28
|
total: i18n.baseText("insights.banner.title.total"),
|
|
30
29
|
failed: i18n.baseText("insights.banner.title.failed"),
|
|
@@ -101,7 +100,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
101
100
|
]),
|
|
102
101
|
createBaseVNode("small", {
|
|
103
102
|
class: normalizeClass(unref($style).days)
|
|
104
|
-
}, toDisplayString(unref(
|
|
103
|
+
}, toDisplayString(unref(TIME_RANGE_LABELS)[_ctx.timeRange]), 3),
|
|
105
104
|
summaryHasNoData.value ? (openBlock(), createElementBlock("span", {
|
|
106
105
|
key: 0,
|
|
107
106
|
class: normalizeClass(unref($style).noData)
|
|
@@ -125,7 +124,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
125
124
|
content: withCtx(() => [
|
|
126
125
|
createVNode(_component_i18n_t, { keypath: "insights.banner.timeSaved.tooltip" }, {
|
|
127
126
|
link: withCtx(() => [
|
|
128
|
-
|
|
127
|
+
createTextVNode(toDisplayString(unref(i18n).baseText("insights.banner.timeSaved.tooltip.link.text")), 1)
|
|
129
128
|
]),
|
|
130
129
|
_: 1
|
|
131
130
|
})
|
|
@@ -139,7 +138,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
139
138
|
_: 1
|
|
140
139
|
})
|
|
141
140
|
])
|
|
142
|
-
], 2)) : (openBlock(), createElementBlock("span",
|
|
141
|
+
], 2)) : (openBlock(), createElementBlock("span", _hoisted_3, [
|
|
143
142
|
createBaseVNode("em", null, [
|
|
144
143
|
createTextVNode(toDisplayString(unref(smartDecimal)(value).toLocaleString("en-US")) + " ", 1),
|
|
145
144
|
createBaseVNode("i", null, toDisplayString(unit), 1)
|
|
@@ -176,16 +175,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
176
175
|
};
|
|
177
176
|
}
|
|
178
177
|
});
|
|
179
|
-
const insights = "
|
|
180
|
-
const activeTab = "
|
|
181
|
-
const days = "
|
|
182
|
-
const empty = "
|
|
183
|
-
const icon = "
|
|
184
|
-
const noData = "
|
|
185
|
-
const positive = "
|
|
186
|
-
const negative = "
|
|
187
|
-
const neutral = "
|
|
188
|
-
const loading = "
|
|
178
|
+
const insights = "_insights_syjwy_123";
|
|
179
|
+
const activeTab = "_activeTab_syjwy_161";
|
|
180
|
+
const days = "_days_syjwy_174";
|
|
181
|
+
const empty = "_empty_syjwy_185";
|
|
182
|
+
const icon = "_icon_syjwy_193";
|
|
183
|
+
const noData = "_noData_syjwy_225";
|
|
184
|
+
const positive = "_positive_syjwy_230";
|
|
185
|
+
const negative = "_negative_syjwy_234";
|
|
186
|
+
const neutral = "_neutral_syjwy_238";
|
|
187
|
+
const loading = "_loading_syjwy_253";
|
|
189
188
|
const style0 = {
|
|
190
189
|
insights,
|
|
191
190
|
activeTab,
|
package/dist/assets/{InsightsTableWorkflows-CUHAG57c.js → InsightsTableWorkflows-_eTCUNCX.js}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { d as defineComponent,
|
|
2
|
-
import { s as smartDecimal } from "./InsightsSummary-
|
|
1
|
+
import { d as defineComponent, gd as mergeModels, q as computed, r as ref, c as useI18n, is as transformInsightsFailureRate, it as INSIGHTS_UNIT_MAPPING, iv as transformInsightsTimeSaved, iw as transformInsightsAverageRunTime, ge as useModel, X as watch, h as resolveComponent, i as createElementBlock, g as openBlock, j as createVNode, w as withCtx, l as createTextVNode, e as createBlock, m as unref, aR as N8nTooltip, k as createBaseVNode, t as toDisplayString, F as Fragment, V as VIEWS, ix as N8nDataTableServer, ag as useTelemetry, _ as _export_sfc } from "./index-B6eunbxp.js";
|
|
2
|
+
import { s as smartDecimal } from "./InsightsSummary-gldDQ9rg.js";
|
|
3
3
|
const _hoisted_1 = { class: "ellipsis" };
|
|
4
4
|
const _hoisted_2 = { class: "ellipsis" };
|
|
5
5
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { i as createElementBlock, g as openBlock, k as createBaseVNode, d as defineComponent, q as computed,
|
|
1
|
+
import { i as createElementBlock, g as openBlock, k as createBaseVNode, d as defineComponent, q as computed, Y as useCssModule, aY as useTemplateRef, o as onMounted, du as useFavicon, n as normalizeClass, j as createVNode, e as createBlock, f as createCommentVNode, x as renderSlot, m as unref, _ as _export_sfc } from "./index-B6eunbxp.js";
|
|
2
2
|
const _hoisted_1$1 = {
|
|
3
3
|
xmlns: "http://www.w3.org/2000/svg",
|
|
4
4
|
width: "32",
|