UNPKG

n8n-editor-ui

Version:

Workflow Editor UI for n8n

2 lines 8.52 kB
!function(){try{("undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{}).SENTRY_RELEASE={id:"n8n@2.16.1"}}catch(e){}}(),System.register(["./chunk-legacy-Dz3fjYb5.js","./vue.runtime.esm-bundler-legacy-BW6xDdqj.js","./src-legacy-B67uuxhB.js","./_plugin-vue_export-helper-legacy-DFdC_I5Z.js","./table-legacy-B8DwrQ9H.js","./constants-legacy-2_ytuuS3.js"],(function(e,t){var o,l,r,n,a,i,s,d,c,u,f,_,p,b,m,y,w,g,v,h,C,T,E,R,N,k,O,D,x,S,I,F,A;function U(e,t){const o=e.reduce(((e,o)=>(Object.keys(o[t]??{}).forEach((t=>e.add(t))),e)),new Set([]));return Array.from(o.keys())}function H(e,t,o){return e.map((e=>({key:`${t}.${e}`,label:e,visible:!0,disabled:!1,columnType:t,numeric:o})))}function L(e,t,{numeric:o}={numeric:!1}){let l;return l=o&&"number"==typeof t&&!x.includes(e)?t.toFixed(2)??"-":"object"==typeof t&&null!==t?JSON.stringify(t,null,2):`${t}`,l}return e({a:function(e,t){return t?e.map((e=>e.disabled?e:{...e,visible:t.hasOwnProperty(e.key)?t[e.key]:e.visible})):e},c:function(e,t){return e.filter((e=>!e.disabled&&e.visible)).map((e=>{const o=Boolean(t.find((t=>{const o=t[e.columnType]?.[e.label];return L(e.label,o,{numeric:e.numeric})?.length>10})));return{prop:e.key,label:e.disabled?e.key:e.label,sortable:!0,filter:!0,showHeaderTooltip:!0,minWidth:o?D:125,formatter:t=>{const o=t[e.columnType]?.[e.label];return L(e.label,o,{numeric:e.numeric})}}}))},i:function(e,t){if(!t?.length)return e;const o=t.map((t=>{const o=e.find((e=>t===e.key));return o||{key:t,disabled:!0}})),l=e.filter((e=>!t.includes(e.key)));return o.push(...l),o},o:function(e,t){const o=Object.keys(e?.metrics??{}).filter((e=>!x.includes(e))),l=x.filter((t=>!!e?.metrics&&t in e.metrics)),r=U(t??[],"inputs"),n=U(t??[],"outputs");return[...H(r,"inputs"),...H(n,"outputs"),...H(o,"metrics",!0),...H(l,"metrics",!0)]},s:U}),{setters:[function(e){o=e.o},function(e){l=e.$,r=e.C,n=e.E,a=e.Ft,i=e.N,s=e.Sn,d=e.T,c=e.U,u=e.W,f=e.Wt,_=e._,p=e._n,b=e.c,m=e.gt,y=e.it,w=e.j,g=e.rt,v=e.w,h=e.yt},function(e){C=e.Di,T=e.Qi},function(e){E=e.t},function(e){R=e.n,N=e.t},function(e){k=e.Oo}],execute:function(){(O=document.createElement("style")).textContent="._baseCell_1yf3f_125{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;border-bottom:1px solid var(--border-color--light)!important;vertical-align:top!important}._baseCell_1yf3f_125>div{white-space:nowrap!important}._expandedCell_1yf3f_136{white-space:normal;background:var(--color--background--light-1);border-bottom:1px solid var(--border-color--light)!important;vertical-align:top!important}._expandedCell_1yf3f_136>div{white-space:normal!important}._customRow_1yf3f_146{cursor:pointer;--table--row--color--background--hover:var(--color--background)}._customDisabledRow_1yf3f_151{cursor:default;--table--row--color--background--hover:var(--color--background--light-2)}._customHeaderCell_1yf3f_156{gap:4px;display:flex}._customHeaderCellLabel_1yf3f_161{white-space:nowrap;text-overflow:ellipsis;font-size:12px;font-weight:var(--font-weight--bold);color:var(--color--text);overflow:hidden}._customHeaderCellSort_1yf3f_170{align-items:center;display:flex}._table_1yf3f_175{border-radius:12px}._table_1yf3f_175 .el-table__column-resize-proxy{background-color:var(--color--primary);width:3px}._table_1yf3f_175 thead th{padding:6px 0}._table_1yf3f_175 .caret-wrapper{display:none}._table_1yf3f_175 .el-scrollbar__thumb{background-color:var(--color--foreground)}._table_1yf3f_175 .el-scrollbar__bar{opacity:1}._table_1yf3f_175 ::-webkit-scrollbar{display:none}._table_1yf3f_175 *{-ms-overflow-style:none;scrollbar-width:none}\n/*$vite$:1*/",document.head.appendChild(O);try{t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},(U=(new t.Error).stack)&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[U]="836437b4-be75-4eb1-a6a5-405c8fe10d06",t._sentryDebugIdIdentifier="sentry-dbid-836437b4-be75-4eb1-a6a5-405c8fe10d06")}catch(t){}var t,U;D=250,x=["promptTokens","completionTokens","totalTokens","executionTime"],S=o(k(),1),I=i({__name:"TestTableBase",props:{data:{},columns:{},showControls:{type:Boolean},defaultSort:{default:()=>({prop:"date",order:"descending"})},selectable:{type:Boolean,default:!1},selectableFilter:{type:Function,default:()=>!0},expandedRows:{default:()=>new Set}},emits:["rowClick","selectionChange"],setup(e,{emit:t}){const o=e,i=b(),E=a(),k=a([]),O=a([]),D=t;m((()=>o.data),(async e=>{if(!(0,S.default)(O.value,e)){const t=k.value.map((e=>e.id));O.value=e,await u(),E.value?.sort(o.defaultSort.prop,o.defaultSort.order),t.forEach((e=>{const t=O.value.find((t=>t.id===e));t&&E.value?.toggleRowSelection(t,!0)}))}}),{immediate:!0,deep:!0});const x=e=>{k.value=e,D("selectionChange",e)},I=(e,t,o)=>{o.minWidth&&e<o.minWidth&&(o.width=o.minWidth)},F=({row:e})=>`${o.expandedRows?.has(e.id)?i.expandedCell:i.baseCell}`,A=({row:e})=>`${"status"in e&&"error"===e?.status?i.customDisabledRow:i.customRow} ${o.expandedRows?.has(e.id)?i.expandedRow:""}`;return(t,o)=>(l(),v(f(N),{ref_key:"tableRef",ref:E,class:p(f(i).table),"default-sort":e.defaultSort,data:O.value,border:!0,"cell-class-name":F,"row-class-name":A,"scrollbar-always-on":"",onSelectionChange:x,onHeaderDragend:I,onRowClick:o[0]||(o[0]=e=>t.$emit("rowClick",e))},{default:h((()=>[e.selectable?(l(),v(f(R),{key:0,type:"selection",selectable:e.selectableFilter,"data-test-id":"table-column-select",width:"46",fixed:"",align:"center"},null,8,["selectable"])):d("",!0),(l(!0),n(_,null,g(e.columns,(e=>(l(),v(f(R),c({key:e.prop},{ref_for:!0},e,{resizable:!0,"data-test-id":"table-column","min-width":e.minWidth??f(125)}),{header:h((t=>[w(f(C),{content:t.column.label,placement:"top",disabled:!e.showHeaderTooltip},{default:h((()=>[r("div",{class:p(f(i).customHeaderCell)},[r("div",{class:p(f(i).customHeaderCellLabel)},s(t.column.label),3),t.column.sortable&&t.column.order?(l(),n("div",{key:0,class:p(f(i).customHeaderCellSort)},[w(f(T),{icon:"descending"===t.column.order?"arrow-up":"arrow-down",size:"small"},null,8,["icon"])],2)):d("",!0)],2)])),_:2},1032,["content","disabled"])])),default:h((({row:o})=>["id"===e.prop?y(t.$slots,"id",c({key:0,ref_for:!0},{row:o})):d("",!0),"index"===e.prop?y(t.$slots,"index",c({key:1,ref_for:!0},{row:o})):d("",!0),"status"===e.prop?y(t.$slots,"status",c({key:2,ref_for:!0},{row:o})):d("",!0)])),_:2},1040,["min-width"])))),128))])),_:3},8,["class","default-sort","data"]))}}),e("r",E(I,[["__cssModules",{$style:{baseCell:"_baseCell_1yf3f_125",expandedCell:"_expandedCell_1yf3f_136",customRow:"_customRow_1yf3f_146",customDisabledRow:"_customDisabledRow_1yf3f_151",customHeaderCell:"_customHeaderCell_1yf3f_156",customHeaderCellLabel:"_customHeaderCellLabel_1yf3f_161",customHeaderCellSort:"_customHeaderCellSort_1yf3f_170",table:"_table_1yf3f_175"}}]])),F={MOCKED_NODE_NOT_FOUND:"evaluation.runDetail.error.mockedNodeMissing",FAILED_TO_EXECUTE_WORKFLOW:"evaluation.runDetail.error.executionFailed",INVALID_METRICS:"evaluation.runDetail.error.invalidMetrics",UNKNOWN_ERROR:"evaluation.runDetail.error.unknownError",NO_METRICS_COLLECTED:"evaluation.runDetail.error.noMetricsCollected"},A={TEST_CASES_NOT_FOUND:"evaluation.listRuns.error.testCasesNotFound",INTERRUPTED:"evaluation.listRuns.error.executionInterrupted",UNKNOWN_ERROR:"evaluation.listRuns.error.unknownError",EVALUATION_TRIGGER_NOT_FOUND:"evaluation.listRuns.error.evaluationTriggerNotFound",EVALUATION_TRIGGER_NOT_CONFIGURED:"evaluation.listRuns.error.evaluationTriggerNotConfigured",EVALUATION_TRIGGER_DISABLED:"evaluation.listRuns.error.evaluationTriggerDisabled",SET_OUTPUTS_NODE_NOT_CONFIGURED:"evaluation.listRuns.error.setOutputsNodeNotConfigured",SET_METRICS_NODE_NOT_FOUND:"evaluation.listRuns.error.setMetricsNodeNotFound",SET_METRICS_NODE_NOT_CONFIGURED:"evaluation.listRuns.error.setMetricsNodeNotConfigured",CANT_FETCH_TEST_CASES:"evaluation.listRuns.error.cantFetchTestCases",PARTIAL_CASES_FAILED:"evaluation.runDetail.error.partialCasesFailed"},e("t",(e=>F[e]??A[e]??"")),e("n",{new:{icon:"status-new",color:"foreground-xdark"},running:{icon:"spinner",color:"secondary"},completed:{icon:"status-completed",color:"success"},error:{icon:"triangle-alert",color:"danger"},cancelled:{icon:"status-canceled",color:"foreground-xdark"},warning:{icon:"status-warning",color:"warning"},success:{icon:"status-completed",color:"success"}})}}})); //# sourceMappingURL=evaluation.constants-legacy-C9Xmv9nv.js.map