orcaq 1.1.8 → 1.1.10
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/.output/nitro.json +1 -1
- package/.output/public/_nuxt/{Cqk0ImDE.js → -WSV_TU1.js} +1 -1
- package/.output/public/_nuxt/0U50G6dt.js +1 -0
- package/.output/public/_nuxt/{mcYTISF7.js → 0yW2dL-K.js} +1 -1
- package/.output/public/_nuxt/{CXQ2zrsE.js → 1V1SIDI5.js} +1 -1
- package/.output/public/_nuxt/{Bu6ybm3Z.js → 24W1ftax.js} +1 -1
- package/.output/public/_nuxt/339BCoyy.js +1 -0
- package/.output/public/_nuxt/{XjywAggc.js → 9PqzQzi0.js} +1 -1
- package/.output/public/_nuxt/{DG9CsZCx.js → 9Skr9Ccw.js} +1 -1
- package/.output/public/_nuxt/{D8egDyEO.js → 9eKRx5AF.js} +1 -1
- package/.output/public/_nuxt/{FmHWbXNk.js → 9vfu7pKH.js} +1 -1
- package/.output/public/_nuxt/B79M7zD1.js +1 -0
- package/.output/public/_nuxt/{BsCPQnkm.js → BDw-ivE-.js} +1 -1
- package/.output/public/_nuxt/{DgxTwFGe.js → BFOjhnLA.js} +2 -2
- package/.output/public/_nuxt/{BWTTrGtY.js → BFYNB1ok.js} +2 -2
- package/.output/public/_nuxt/BFlFdtcI.js +12 -0
- package/.output/public/_nuxt/{BXMKgn-J.js → BIBdWmGh.js} +1 -1
- package/.output/public/_nuxt/{_uLivI44.js → BIDVPCgr.js} +1 -1
- package/.output/public/_nuxt/{BuTCm7Bo.js → BJMwGHo7.js} +1 -1
- package/.output/public/_nuxt/{BHr4_sbs.js → BKh6DDUh.js} +1 -1
- package/.output/public/_nuxt/{5450EsIE.js → BLDVl9Iw.js} +1 -1
- package/.output/public/_nuxt/{Cd_fVKDw.js → BNgGNFV2.js} +1 -1
- package/.output/public/_nuxt/BP-G5cXp.js +1 -0
- package/.output/public/_nuxt/{DkX74xDd.js → BS966b0P.js} +1 -1
- package/.output/public/_nuxt/{BQm1mt0O.js → B_Oy26qU.js} +1 -1
- package/.output/public/_nuxt/Bdou58NY.js +1 -0
- package/.output/public/_nuxt/Bg0K-n53.js +18 -0
- package/.output/public/_nuxt/{BO3FEgXG.js → BjfaOtB-.js} +1 -1
- package/.output/public/_nuxt/{BalNYDR1.js → BlngscFe.js} +1 -1
- package/.output/public/_nuxt/{DHXwq7wT.js → BsXv3P9A.js} +1 -1
- package/.output/public/_nuxt/{C-e53AuW.js → Buh85F8i.js} +1 -1
- package/.output/public/_nuxt/{CU5cwnUW.js → Bvi2huT8.js} +1 -1
- package/.output/public/_nuxt/{LxqkguPP.js → BxlUlYz1.js} +1 -1
- package/.output/public/_nuxt/ByJGqBjE.js +1 -0
- package/.output/public/_nuxt/{DCewvWOu.js → C-M7J4rh.js} +1 -1
- package/.output/public/_nuxt/{D_kY6P5P.js → C04-ICJx.js} +1 -1
- package/.output/public/_nuxt/{f6XRRKUb.js → C2Czrs1u.js} +1 -1
- package/.output/public/_nuxt/{CuXTA7ZW.js → C5Feel6b.js} +1 -1
- package/.output/public/_nuxt/CAVSZeVY.js +1 -0
- package/.output/public/_nuxt/{7iCr9_qw.js → CAcViJl9.js} +3 -3
- package/.output/public/_nuxt/CBge6eLY.js +1 -0
- package/.output/public/_nuxt/{BK-6CJ0A.js → CC8wYgAN.js} +1 -1
- package/.output/public/_nuxt/{WGDY9i_Q.js → CEIpXOz0.js} +1 -1
- package/.output/public/_nuxt/CI85gLx4.js +1 -0
- package/.output/public/_nuxt/{Dpkaavgs.js → CJeCcjmd.js} +1 -1
- package/.output/public/_nuxt/{CMDq7o88.js → CJuYfiL1.js} +1 -1
- package/.output/public/_nuxt/CNErkSjF.js +1 -0
- package/.output/public/_nuxt/COII6plA.js +31 -0
- package/.output/public/_nuxt/{R04uZjs6.js → CRCn6mdA.js} +1 -1
- package/.output/public/_nuxt/{tc7vkD0J.js → CUtdecax.js} +2 -2
- package/.output/public/_nuxt/{Dtry_3Qa.js → CYm7TuhP.js} +1 -1
- package/.output/public/_nuxt/{CMnjMfEQ.js → CbkolJXg.js} +1 -1
- package/.output/public/_nuxt/{CMI-3q_e.js → CeA2-eDW.js} +1 -1
- package/.output/public/_nuxt/CgY96xS_.js +1 -0
- package/.output/public/_nuxt/{JxgekUqn.js → Ch9kUYU-.js} +1 -1
- package/.output/public/_nuxt/{CCC5u9Ni.js → Ch_iEFHi.js} +1 -1
- package/.output/public/_nuxt/{DZ4xLzJg.js → Co6sZiuo.js} +1 -1
- package/.output/public/_nuxt/Cu7zvuYQ.js +1 -0
- package/.output/public/_nuxt/CwcaMelw.js +1 -0
- package/.output/public/_nuxt/CxFAImHj.js +1 -0
- package/.output/public/_nuxt/{jtwYTq7X.js → D-yya4MN.js} +32 -32
- package/.output/public/_nuxt/{D4DMGxvZ.js → D0NZRXnm.js} +1 -1
- package/.output/public/_nuxt/{vP25tZUh.js → D6XDbGbI.js} +1 -1
- package/.output/public/_nuxt/{BNh4NY7v.js → D8JEzGOU.js} +1 -1
- package/.output/public/_nuxt/{C874itvn.js → D8wbEppA.js} +1 -1
- package/.output/public/_nuxt/D9h-2lVu.js +1 -0
- package/.output/public/_nuxt/{D5Oboajo.js → DANeHzIE.js} +1 -1
- package/.output/public/_nuxt/{CyKRjZZo.js → DBku6oAz.js} +1 -1
- package/.output/public/_nuxt/{DJXrgohw.js → DDXEeq1n.js} +2 -2
- package/.output/public/_nuxt/DESxUB7o.js +1 -0
- package/.output/public/_nuxt/{CAjVwGyz.js → DHG-KJyJ.js} +1 -1
- package/.output/public/_nuxt/DHXbNYui.js +1 -0
- package/.output/public/_nuxt/{Dopm1f4X.js → DI0LPDTd.js} +1 -1
- package/.output/public/_nuxt/{BmfnP4qD.js → DKSZP8GP.js} +1 -1
- package/.output/public/_nuxt/DL1qmlP8.js +1 -0
- package/.output/public/_nuxt/{BMVgfiQu.js → DN4-koTG.js} +1 -1
- package/.output/public/_nuxt/{BRzWRTTF.js → DO1jmufl.js} +1 -1
- package/.output/public/_nuxt/{DpsqSAMo.js → DOuNj3Jn.js} +1 -1
- package/.output/public/_nuxt/DPUO8R7l.js +1 -0
- package/.output/public/_nuxt/{C0jXhwNq.js → DahDvheq.js} +1 -1
- package/.output/public/_nuxt/{BRCvv3op.js → DbHH7dzg.js} +1 -1
- package/.output/public/_nuxt/{C6teO48Y.js → DbehhcO7.js} +76 -76
- package/.output/public/_nuxt/{CQFANjzf.js → DeTqfKUd.js} +1 -1
- package/.output/public/_nuxt/{B6N_D8QI.js → Df85byjM.js} +1 -1
- package/.output/public/_nuxt/{B0gkARnK.js → DizXDCtS.js} +1 -1
- package/.output/public/_nuxt/{WZQ8mcv9.js → DjKlFOO8.js} +1 -1
- package/.output/public/_nuxt/{CCCJ2fw7.js → DjLd7E2v.js} +1 -1
- package/.output/public/_nuxt/{DXVrM3CN.js → DnBjpGBx.js} +1 -1
- package/.output/public/_nuxt/DnQ4Mwo_.js +1 -0
- package/.output/public/_nuxt/{Cw1HIv3s.js → DqYakCiF.js} +1 -1
- package/.output/public/_nuxt/{DBSV6YXN.js → DqunUhPG.js} +1 -1
- package/.output/public/_nuxt/{CFi6G8Aj.js → Dr1ZFb1n.js} +2 -2
- package/.output/public/_nuxt/Dsis422h.js +1 -0
- package/.output/public/_nuxt/{DwPmcz47.js → Du_4PNZI.js} +1 -1
- package/.output/public/_nuxt/{7H5y5euK.js → DvTZ16yM.js} +1 -1
- package/.output/public/_nuxt/{CyEOtFwE.js → Dvt9REJL.js} +1 -1
- package/.output/public/_nuxt/{DQRyK9Io.js → DxMpy-ot.js} +1 -1
- package/.output/public/_nuxt/{BRWis86L.js → DyLnyCs4.js} +1 -1
- package/.output/public/_nuxt/{DmnufEYq.js → FakvzamF.js} +1 -1
- package/.output/public/_nuxt/LcPL138_.js +1 -0
- package/.output/public/_nuxt/{CXbrqQhC.js → P7T0pdFZ.js} +1 -1
- package/.output/public/_nuxt/{LU_a7qLd.js → Rhi-lAfN.js} +1 -1
- package/.output/public/_nuxt/S7ftI9sn.js +1 -0
- package/.output/public/_nuxt/T01BrTsW.js +1 -0
- package/.output/public/_nuxt/WqpfmT0s.js +1 -0
- package/.output/public/_nuxt/XhSVj1eQ.js +16 -0
- package/.output/public/_nuxt/{vEHvfalB.js → _fXjN5Pd.js} +1 -1
- package/.output/public/_nuxt/agpUpIJe.js +1 -0
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/39c2c89f-bb28-470e-b95a-b7776149dc9f.json +1 -0
- package/.output/public/_nuxt/{CvbYm0uB.js → dDyWVWO8.js} +1 -1
- package/.output/public/_nuxt/entry.BeX6Jkel.css +1 -0
- package/.output/public/_nuxt/{DrkGD_bQ.js → f6qCSD-K.js} +1 -1
- package/.output/public/_nuxt/{zndqWf9s.js → goG5gpyv.js} +1 -1
- package/.output/public/_nuxt/{soHTUlpn.js → hbGkF-4Z.js} +1 -1
- package/.output/public/_nuxt/{CKlMKmo6.js → jDSo3fNb.js} +1 -1
- package/.output/public/_nuxt/{BzNEuLKx.js → k4d17TZz.js} +1 -1
- package/.output/public/_nuxt/m4Dxzyfa.js +2 -0
- package/.output/public/_nuxt/{BJvJ0Hlu.js → ndyknmtb.js} +4 -4
- package/.output/public/_nuxt/{C6K-C4_d.js → vIV0z0PD.js} +1 -1
- package/.output/public/_nuxt/{BzqjH2-H.js → wTs8ybMd.js} +1 -1
- package/.output/public/_nuxt/{BYaoWfSN.js → ymlmmOzU.js} +1 -1
- package/.output/server/chunks/_/tables.factory.mjs +133 -43
- package/.output/server/chunks/_/tables.factory.mjs.map +1 -1
- package/.output/server/chunks/build/client.manifest.mjs +837 -788
- package/.output/server/chunks/build/client.manifest.mjs.map +1 -1
- package/.output/server/chunks/nitro/nitro.mjs +697 -669
- package/.output/server/package.json +1 -1
- package/package.json +1 -1
- package/.output/public/_nuxt/-7uW7YTy.js +0 -1
- package/.output/public/_nuxt/6mVUr42b.js +0 -1
- package/.output/public/_nuxt/B21nC2NZ.js +0 -1
- package/.output/public/_nuxt/B232GDut.js +0 -2
- package/.output/public/_nuxt/B7C8fo37.js +0 -1
- package/.output/public/_nuxt/BC82eJHt.js +0 -1
- package/.output/public/_nuxt/Bn6_QGSK.js +0 -1
- package/.output/public/_nuxt/BuzCyLCh.js +0 -1
- package/.output/public/_nuxt/BzNNFvTW.js +0 -1
- package/.output/public/_nuxt/C8ZJ2pm_.js +0 -1
- package/.output/public/_nuxt/CA3O4M9L.js +0 -1
- package/.output/public/_nuxt/CZXyfpHW.js +0 -1
- package/.output/public/_nuxt/CZgTP5wX.js +0 -1
- package/.output/public/_nuxt/CeXnSKvd.js +0 -1
- package/.output/public/_nuxt/Chw5tFzx.js +0 -1
- package/.output/public/_nuxt/CkLSGVwV.js +0 -1
- package/.output/public/_nuxt/Cv9v5fHN.js +0 -1
- package/.output/public/_nuxt/D5GonnbJ.js +0 -1
- package/.output/public/_nuxt/DH2V7e8U.js +0 -1
- package/.output/public/_nuxt/DZIoL4RO.js +0 -1
- package/.output/public/_nuxt/DyjsVMbv.js +0 -1
- package/.output/public/_nuxt/KoGK2wLb.js +0 -1
- package/.output/public/_nuxt/Q8x88Gcd.js +0 -1
- package/.output/public/_nuxt/So0hX8V0.js +0 -31
- package/.output/public/_nuxt/builds/meta/30582efd-125a-4f88-bd89-20a7b2ba8697.json +0 -1
- package/.output/public/_nuxt/eQskTKIU.js +0 -1
- package/.output/public/_nuxt/ecWNT6PZ.js +0 -1
- package/.output/public/_nuxt/entry.BcHy7sxf.css +0 -1
- package/.output/public/_nuxt/mcfKrWU-.js +0 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{g as et}from"./CMnjMfEQ.js";import{c as tt}from"./JxgekUqn.js";import{g as st}from"./BsCPQnkm.js";import{s as it}from"./BO3FEgXG.js";import{_ as A,l as Oe,c as F,p as at,r as rt,u as we,d as de,z as nt,b as ut,a as lt,s as ct,g as ot,q as ht,t as dt,k as v,A as pt,y as At,i as ft,a8 as G}from"./BJvJ0Hlu.js";var Ve=function(){var s=A(function(O,o,h,p){for(h=h||{},p=O.length;p--;h[O[p]]=o);return h},"o"),i=[1,18],a=[1,19],u=[1,20],l=[1,41],r=[1,42],c=[1,26],f=[1,24],C=[1,25],k=[1,32],B=[1,33],Ae=[1,34],m=[1,45],fe=[1,35],ge=[1,36],Ce=[1,37],me=[1,38],be=[1,27],Ee=[1,28],ye=[1,29],ke=[1,30],Te=[1,31],b=[1,44],E=[1,46],y=[1,43],T=[1,47],De=[1,9],d=[1,8,9],ee=[1,58],te=[1,59],se=[1,60],ie=[1,61],ae=[1,62],Fe=[1,63],Be=[1,64],I=[1,8,9,41],Me=[1,76],P=[1,8,9,12,13,22,39,41,44,68,69,70,71,72,73,74,79,81],re=[1,8,9,12,13,18,20,22,39,41,44,50,60,68,69,70,71,72,73,74,79,81,86,100,102,103],ne=[13,60,86,100,102,103],Y=[13,60,73,74,86,100,102,103],Pe=[13,60,68,69,70,71,72,86,100,102,103],_e=[1,101],K=[1,118],Q=[1,114],W=[1,110],j=[1,116],X=[1,111],q=[1,112],H=[1,113],J=[1,115],Z=[1,117],Re=[22,48,60,61,82,86,87,88,89,90],Se=[1,8,9,39,41,44],ue=[1,8,9,22],Ge=[1,147],Ue=[1,8,9,61],L=[1,8,9,22,48,60,61,82,86,87,88,89,90],Ne={trace:A(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,CLASS:46,emptyBody:47,SPACE:48,ANNOTATION_START:49,ANNOTATION_END:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"CLASS",48:"SPACE",49:"ANNOTATION_START",50:"ANNOTATION_END",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[43,2],[43,3],[47,0],[47,2],[47,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:A(function(o,h,p,n,g,e,$){var t=e.length-1;switch(g){case 8:this.$=e[t-1];break;case 9:case 10:case 13:case 15:this.$=e[t];break;case 11:case 14:this.$=e[t-2]+"."+e[t];break;case 12:case 16:this.$=e[t-1]+e[t];break;case 17:case 18:this.$=e[t-1]+"~"+e[t]+"~";break;case 19:n.addRelation(e[t]);break;case 20:e[t-1].title=n.cleanupLabel(e[t]),n.addRelation(e[t-1]);break;case 31:this.$=e[t].trim(),n.setAccTitle(this.$);break;case 32:case 33:this.$=e[t].trim(),n.setAccDescription(this.$);break;case 34:n.addClassesToNamespace(e[t-3],e[t-1][0],e[t-1][1]);break;case 35:n.addClassesToNamespace(e[t-4],e[t-1][0],e[t-1][1]);break;case 36:this.$=e[t],n.addNamespace(e[t]);break;case 37:this.$=[[e[t]],[]];break;case 38:this.$=[[e[t-1]],[]];break;case 39:e[t][0].unshift(e[t-2]),this.$=e[t];break;case 40:this.$=[[],[e[t]]];break;case 41:this.$=[[],[e[t-1]]];break;case 42:e[t][1].unshift(e[t-2]),this.$=e[t];break;case 44:n.setCssClass(e[t-2],e[t]);break;case 45:n.addMembers(e[t-3],e[t-1]);break;case 47:n.setCssClass(e[t-5],e[t-3]),n.addMembers(e[t-5],e[t-1]);break;case 48:this.$=e[t],n.addClass(e[t]);break;case 49:this.$=e[t-1],n.addClass(e[t-1]),n.setClassLabel(e[t-1],e[t]);break;case 53:n.addAnnotation(e[t],e[t-2]);break;case 54:case 67:this.$=[e[t]];break;case 55:e[t].push(e[t-1]),this.$=e[t];break;case 56:break;case 57:n.addMember(e[t-1],n.cleanupLabel(e[t]));break;case 58:break;case 59:break;case 60:this.$={id1:e[t-2],id2:e[t],relation:e[t-1],relationTitle1:"none",relationTitle2:"none"};break;case 61:this.$={id1:e[t-3],id2:e[t],relation:e[t-1],relationTitle1:e[t-2],relationTitle2:"none"};break;case 62:this.$={id1:e[t-3],id2:e[t],relation:e[t-2],relationTitle1:"none",relationTitle2:e[t-1]};break;case 63:this.$={id1:e[t-4],id2:e[t],relation:e[t-2],relationTitle1:e[t-3],relationTitle2:e[t-1]};break;case 64:this.$=n.addNote(e[t],e[t-1]);break;case 65:this.$=n.addNote(e[t]);break;case 66:this.$=e[t-2],n.defineClass(e[t-1],e[t]);break;case 68:this.$=e[t-2].concat([e[t]]);break;case 69:n.setDirection("TB");break;case 70:n.setDirection("BT");break;case 71:n.setDirection("RL");break;case 72:n.setDirection("LR");break;case 73:this.$={type1:e[t-2],type2:e[t],lineType:e[t-1]};break;case 74:this.$={type1:"none",type2:e[t],lineType:e[t-1]};break;case 75:this.$={type1:e[t-1],type2:"none",lineType:e[t]};break;case 76:this.$={type1:"none",type2:"none",lineType:e[t]};break;case 77:this.$=n.relationType.AGGREGATION;break;case 78:this.$=n.relationType.EXTENSION;break;case 79:this.$=n.relationType.COMPOSITION;break;case 80:this.$=n.relationType.DEPENDENCY;break;case 81:this.$=n.relationType.LOLLIPOP;break;case 82:this.$=n.lineType.LINE;break;case 83:this.$=n.lineType.DOTTED_LINE;break;case 84:case 90:this.$=e[t-2],n.setClickEvent(e[t-1],e[t]);break;case 85:case 91:this.$=e[t-3],n.setClickEvent(e[t-2],e[t-1]),n.setTooltip(e[t-2],e[t]);break;case 86:this.$=e[t-2],n.setLink(e[t-1],e[t]);break;case 87:this.$=e[t-3],n.setLink(e[t-2],e[t-1],e[t]);break;case 88:this.$=e[t-3],n.setLink(e[t-2],e[t-1]),n.setTooltip(e[t-2],e[t]);break;case 89:this.$=e[t-4],n.setLink(e[t-3],e[t-2],e[t]),n.setTooltip(e[t-3],e[t-1]);break;case 92:this.$=e[t-3],n.setClickEvent(e[t-2],e[t-1],e[t]);break;case 93:this.$=e[t-4],n.setClickEvent(e[t-3],e[t-2],e[t-1]),n.setTooltip(e[t-3],e[t]);break;case 94:this.$=e[t-3],n.setLink(e[t-2],e[t]);break;case 95:this.$=e[t-4],n.setLink(e[t-3],e[t-1],e[t]);break;case 96:this.$=e[t-4],n.setLink(e[t-3],e[t-1]),n.setTooltip(e[t-3],e[t]);break;case 97:this.$=e[t-5],n.setLink(e[t-4],e[t-2],e[t]),n.setTooltip(e[t-4],e[t-1]);break;case 98:this.$=e[t-2],n.setCssStyle(e[t-1],e[t]);break;case 99:n.setCssClass(e[t-1],e[t]);break;case 100:this.$=[e[t]];break;case 101:e[t-2].push(e[t]),this.$=e[t-2];break;case 103:this.$=e[t-1]+e[t];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:u,38:22,42:l,43:23,46:r,49:c,51:f,52:C,54:k,56:B,57:Ae,60:m,62:fe,63:ge,64:Ce,65:me,75:be,76:Ee,78:ye,82:ke,83:Te,86:b,100:E,102:y,103:T},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},s(De,[2,5],{8:[1,48]}),{8:[1,49]},s(d,[2,19],{22:[1,50]}),s(d,[2,21]),s(d,[2,22]),s(d,[2,23]),s(d,[2,24]),s(d,[2,25]),s(d,[2,26]),s(d,[2,27]),s(d,[2,28]),s(d,[2,29]),s(d,[2,30]),{34:[1,51]},{36:[1,52]},s(d,[2,33]),s(d,[2,56],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:ee,69:te,70:se,71:ie,72:ae,73:Fe,74:Be}),{39:[1,65]},s(I,[2,43],{39:[1,67],44:[1,66]}),s(d,[2,58]),s(d,[2,59]),{16:68,60:m,86:b,100:E,102:y},{16:39,17:40,19:69,60:m,86:b,100:E,102:y,103:T},{16:39,17:40,19:70,60:m,86:b,100:E,102:y,103:T},{16:39,17:40,19:71,60:m,86:b,100:E,102:y,103:T},{60:[1,72]},{13:[1,73]},{16:39,17:40,19:74,60:m,86:b,100:E,102:y,103:T},{13:Me,55:75},{58:77,60:[1,78]},s(d,[2,69]),s(d,[2,70]),s(d,[2,71]),s(d,[2,72]),s(P,[2,13],{16:39,17:40,19:80,18:[1,79],20:[1,81],60:m,86:b,100:E,102:y,103:T}),s(P,[2,15],{20:[1,82]}),{15:83,16:84,17:85,60:m,86:b,100:E,102:y,103:T},{16:39,17:40,19:86,60:m,86:b,100:E,102:y,103:T},s(re,[2,126]),s(re,[2,127]),s(re,[2,128]),s(re,[2,129]),s([1,8,9,12,13,20,22,39,41,44,68,69,70,71,72,73,74,79,81],[2,130]),s(De,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:87,33:i,35:a,37:u,42:l,46:r,49:c,51:f,52:C,54:k,56:B,57:Ae,60:m,62:fe,63:ge,64:Ce,65:me,75:be,76:Ee,78:ye,82:ke,83:Te,86:b,100:E,102:y,103:T}),{5:88,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:u,38:22,42:l,43:23,46:r,49:c,51:f,52:C,54:k,56:B,57:Ae,60:m,62:fe,63:ge,64:Ce,65:me,75:be,76:Ee,78:ye,82:ke,83:Te,86:b,100:E,102:y,103:T},s(d,[2,20]),s(d,[2,31]),s(d,[2,32]),{13:[1,90],16:39,17:40,19:89,60:m,86:b,100:E,102:y,103:T},{53:91,66:56,67:57,68:ee,69:te,70:se,71:ie,72:ae,73:Fe,74:Be},s(d,[2,57]),{67:92,73:Fe,74:Be},s(ne,[2,76],{66:93,68:ee,69:te,70:se,71:ie,72:ae}),s(Y,[2,77]),s(Y,[2,78]),s(Y,[2,79]),s(Y,[2,80]),s(Y,[2,81]),s(Pe,[2,82]),s(Pe,[2,83]),{8:[1,95],24:96,30:97,40:94,43:23,46:r,54:k,56:B},{16:98,60:m,86:b,100:E,102:y},{41:[1,100],45:99,51:_e},{50:[1,102]},{13:[1,103]},{13:[1,104]},{79:[1,105],81:[1,106]},{22:K,48:Q,59:107,60:W,82:j,84:108,85:109,86:X,87:q,88:H,89:J,90:Z},{60:[1,119]},{13:Me,55:120},s(I,[2,65]),s(I,[2,131]),{22:K,48:Q,59:121,60:W,61:[1,122],82:j,84:108,85:109,86:X,87:q,88:H,89:J,90:Z},s(Re,[2,67]),{16:39,17:40,19:123,60:m,86:b,100:E,102:y,103:T},s(P,[2,16]),s(P,[2,17]),s(P,[2,18]),{39:[2,36]},{15:125,16:84,17:85,18:[1,124],39:[2,9],60:m,86:b,100:E,102:y,103:T},{39:[2,10]},s(Se,[2,48],{11:126,12:[1,127]}),s(De,[2,7]),{9:[1,128]},s(ue,[2,60]),{16:39,17:40,19:129,60:m,86:b,100:E,102:y,103:T},{13:[1,131],16:39,17:40,19:130,60:m,86:b,100:E,102:y,103:T},s(ne,[2,75],{66:132,68:ee,69:te,70:se,71:ie,72:ae}),s(ne,[2,74]),{41:[1,133]},{24:96,30:97,40:134,43:23,46:r,54:k,56:B},{8:[1,135],41:[2,37]},{8:[1,136],41:[2,40]},s(I,[2,44],{39:[1,137]}),{41:[1,138]},s(I,[2,46]),{41:[2,54],45:139,51:_e},{16:39,17:40,19:140,60:m,86:b,100:E,102:y,103:T},s(d,[2,84],{13:[1,141]}),s(d,[2,86],{13:[1,143],77:[1,142]}),s(d,[2,90],{13:[1,144],80:[1,145]}),{13:[1,146]},s(d,[2,98],{61:Ge}),s(Ue,[2,100],{85:148,22:K,48:Q,60:W,82:j,86:X,87:q,88:H,89:J,90:Z}),s(L,[2,102]),s(L,[2,104]),s(L,[2,105]),s(L,[2,106]),s(L,[2,107]),s(L,[2,108]),s(L,[2,109]),s(L,[2,110]),s(L,[2,111]),s(L,[2,112]),s(d,[2,99]),s(I,[2,64]),s(d,[2,66],{61:Ge}),{60:[1,149]},s(P,[2,14]),{15:150,16:84,17:85,60:m,86:b,100:E,102:y,103:T},{39:[2,12]},s(Se,[2,49]),{13:[1,151]},{1:[2,4]},s(ue,[2,62]),s(ue,[2,61]),{16:39,17:40,19:152,60:m,86:b,100:E,102:y,103:T},s(ne,[2,73]),s(d,[2,34]),{41:[1,153]},{24:96,30:97,40:154,41:[2,38],43:23,46:r,54:k,56:B},{24:96,30:97,40:155,41:[2,41],43:23,46:r,54:k,56:B},{45:156,51:_e},s(I,[2,45]),{41:[2,55]},s(d,[2,53]),s(d,[2,85]),s(d,[2,87]),s(d,[2,88],{77:[1,157]}),s(d,[2,91]),s(d,[2,92],{13:[1,158]}),s(d,[2,94],{13:[1,160],77:[1,159]}),{22:K,48:Q,60:W,82:j,84:161,85:109,86:X,87:q,88:H,89:J,90:Z},s(L,[2,103]),s(Re,[2,68]),{39:[2,11]},{14:[1,162]},s(ue,[2,63]),s(d,[2,35]),{41:[2,39]},{41:[2,42]},{41:[1,163]},s(d,[2,89]),s(d,[2,93]),s(d,[2,95]),s(d,[2,96],{77:[1,164]}),s(Ue,[2,101],{85:148,22:K,48:Q,60:W,82:j,86:X,87:q,88:H,89:J,90:Z}),s(Se,[2,8]),s(I,[2,47]),s(d,[2,97])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],83:[2,36],85:[2,10],125:[2,12],128:[2,4],139:[2,55],150:[2,11],154:[2,39],155:[2,42]},parseError:A(function(o,h){if(h.recoverable)this.trace(o);else{var p=new Error(o);throw p.hash=h,p}},"parseError"),parse:A(function(o){var h=this,p=[0],n=[],g=[null],e=[],$=this.table,t="",ce=0,ze=0,He=2,Ye=1,Je=e.slice.call(arguments,1),D=Object.create(this.lexer),w={yy:{}};for(var Le in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Le)&&(w.yy[Le]=this.yy[Le]);D.setInput(o,w.yy),w.yy.lexer=D,w.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var xe=D.yylloc;e.push(xe);var Ze=D.options&&D.options.ranges;typeof w.yy.parseError=="function"?this.parseError=w.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function $e(S){p.length=p.length-2*S,g.length=g.length-S,e.length=e.length-S}A($e,"popStack");function Ke(){var S;return S=n.pop()||D.lex()||Ye,typeof S!="number"&&(S instanceof Array&&(n=S,S=n.pop()),S=h.symbols_[S]||S),S}A(Ke,"lex");for(var _,V,N,ve,R={},oe,x,Qe,he;;){if(V=p[p.length-1],this.defaultActions[V]?N=this.defaultActions[V]:((_===null||typeof _>"u")&&(_=Ke()),N=$[V]&&$[V][_]),typeof N>"u"||!N.length||!N[0]){var Ie="";he=[];for(oe in $[V])this.terminals_[oe]&&oe>He&&he.push("'"+this.terminals_[oe]+"'");D.showPosition?Ie="Parse error on line "+(ce+1)+`:
|
|
1
|
+
import{g as et}from"./CbkolJXg.js";import{c as tt}from"./Ch9kUYU-.js";import{g as st}from"./BDw-ivE-.js";import{s as it}from"./BjfaOtB-.js";import{_ as A,l as Oe,c as F,p as at,r as rt,u as we,d as de,z as nt,b as ut,a as lt,s as ct,g as ot,q as ht,t as dt,k as v,A as pt,y as At,i as ft,a8 as G}from"./ndyknmtb.js";var Ve=function(){var s=A(function(O,o,h,p){for(h=h||{},p=O.length;p--;h[O[p]]=o);return h},"o"),i=[1,18],a=[1,19],u=[1,20],l=[1,41],r=[1,42],c=[1,26],f=[1,24],C=[1,25],k=[1,32],B=[1,33],Ae=[1,34],m=[1,45],fe=[1,35],ge=[1,36],Ce=[1,37],me=[1,38],be=[1,27],Ee=[1,28],ye=[1,29],ke=[1,30],Te=[1,31],b=[1,44],E=[1,46],y=[1,43],T=[1,47],De=[1,9],d=[1,8,9],ee=[1,58],te=[1,59],se=[1,60],ie=[1,61],ae=[1,62],Fe=[1,63],Be=[1,64],I=[1,8,9,41],Me=[1,76],P=[1,8,9,12,13,22,39,41,44,68,69,70,71,72,73,74,79,81],re=[1,8,9,12,13,18,20,22,39,41,44,50,60,68,69,70,71,72,73,74,79,81,86,100,102,103],ne=[13,60,86,100,102,103],Y=[13,60,73,74,86,100,102,103],Pe=[13,60,68,69,70,71,72,86,100,102,103],_e=[1,101],K=[1,118],Q=[1,114],W=[1,110],j=[1,116],X=[1,111],q=[1,112],H=[1,113],J=[1,115],Z=[1,117],Re=[22,48,60,61,82,86,87,88,89,90],Se=[1,8,9,39,41,44],ue=[1,8,9,22],Ge=[1,147],Ue=[1,8,9,61],L=[1,8,9,22,48,60,61,82,86,87,88,89,90],Ne={trace:A(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,classLiteralName:17,DOT:18,className:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,CLASS:46,emptyBody:47,SPACE:48,ANNOTATION_START:49,ANNOTATION_END:50,MEMBER:51,SEPARATOR:52,relation:53,NOTE_FOR:54,noteText:55,NOTE:56,CLASSDEF:57,classList:58,stylesOpt:59,ALPHA:60,COMMA:61,direction_tb:62,direction_bt:63,direction_rl:64,direction_lr:65,relationType:66,lineType:67,AGGREGATION:68,EXTENSION:69,COMPOSITION:70,DEPENDENCY:71,LOLLIPOP:72,LINE:73,DOTTED_LINE:74,CALLBACK:75,LINK:76,LINK_TARGET:77,CLICK:78,CALLBACK_NAME:79,CALLBACK_ARGS:80,HREF:81,STYLE:82,CSSCLASS:83,style:84,styleComponent:85,NUM:86,COLON:87,UNIT:88,BRKT:89,PCT:90,commentToken:91,textToken:92,graphCodeTokens:93,textNoTagsToken:94,TAGSTART:95,TAGEND:96,"==":97,"--":98,DEFAULT:99,MINUS:100,keywords:101,UNICODE_TEXT:102,BQUOTE_STR:103,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",18:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"CLASS",48:"SPACE",49:"ANNOTATION_START",50:"ANNOTATION_END",51:"MEMBER",52:"SEPARATOR",54:"NOTE_FOR",56:"NOTE",57:"CLASSDEF",60:"ALPHA",61:"COMMA",62:"direction_tb",63:"direction_bt",64:"direction_rl",65:"direction_lr",68:"AGGREGATION",69:"EXTENSION",70:"COMPOSITION",71:"DEPENDENCY",72:"LOLLIPOP",73:"LINE",74:"DOTTED_LINE",75:"CALLBACK",76:"LINK",77:"LINK_TARGET",78:"CLICK",79:"CALLBACK_NAME",80:"CALLBACK_ARGS",81:"HREF",82:"STYLE",83:"CSSCLASS",86:"NUM",87:"COLON",88:"UNIT",89:"BRKT",90:"PCT",93:"graphCodeTokens",95:"TAGSTART",96:"TAGEND",97:"==",98:"--",99:"DEFAULT",100:"MINUS",101:"keywords",102:"UNICODE_TEXT",103:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,1],[15,3],[15,2],[19,1],[19,3],[19,1],[19,2],[19,2],[19,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[40,1],[40,2],[40,3],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,3],[24,6],[43,2],[43,3],[47,0],[47,2],[47,2],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[58,1],[58,3],[32,1],[32,1],[32,1],[32,1],[53,3],[53,2],[53,2],[53,1],[66,1],[66,1],[66,1],[66,1],[66,1],[67,1],[67,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[59,1],[59,3],[84,1],[84,2],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[85,1],[91,1],[91,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[92,1],[94,1],[94,1],[94,1],[94,1],[16,1],[16,1],[16,1],[16,1],[17,1],[55,1]],performAction:A(function(o,h,p,n,g,e,$){var t=e.length-1;switch(g){case 8:this.$=e[t-1];break;case 9:case 10:case 13:case 15:this.$=e[t];break;case 11:case 14:this.$=e[t-2]+"."+e[t];break;case 12:case 16:this.$=e[t-1]+e[t];break;case 17:case 18:this.$=e[t-1]+"~"+e[t]+"~";break;case 19:n.addRelation(e[t]);break;case 20:e[t-1].title=n.cleanupLabel(e[t]),n.addRelation(e[t-1]);break;case 31:this.$=e[t].trim(),n.setAccTitle(this.$);break;case 32:case 33:this.$=e[t].trim(),n.setAccDescription(this.$);break;case 34:n.addClassesToNamespace(e[t-3],e[t-1][0],e[t-1][1]);break;case 35:n.addClassesToNamespace(e[t-4],e[t-1][0],e[t-1][1]);break;case 36:this.$=e[t],n.addNamespace(e[t]);break;case 37:this.$=[[e[t]],[]];break;case 38:this.$=[[e[t-1]],[]];break;case 39:e[t][0].unshift(e[t-2]),this.$=e[t];break;case 40:this.$=[[],[e[t]]];break;case 41:this.$=[[],[e[t-1]]];break;case 42:e[t][1].unshift(e[t-2]),this.$=e[t];break;case 44:n.setCssClass(e[t-2],e[t]);break;case 45:n.addMembers(e[t-3],e[t-1]);break;case 47:n.setCssClass(e[t-5],e[t-3]),n.addMembers(e[t-5],e[t-1]);break;case 48:this.$=e[t],n.addClass(e[t]);break;case 49:this.$=e[t-1],n.addClass(e[t-1]),n.setClassLabel(e[t-1],e[t]);break;case 53:n.addAnnotation(e[t],e[t-2]);break;case 54:case 67:this.$=[e[t]];break;case 55:e[t].push(e[t-1]),this.$=e[t];break;case 56:break;case 57:n.addMember(e[t-1],n.cleanupLabel(e[t]));break;case 58:break;case 59:break;case 60:this.$={id1:e[t-2],id2:e[t],relation:e[t-1],relationTitle1:"none",relationTitle2:"none"};break;case 61:this.$={id1:e[t-3],id2:e[t],relation:e[t-1],relationTitle1:e[t-2],relationTitle2:"none"};break;case 62:this.$={id1:e[t-3],id2:e[t],relation:e[t-2],relationTitle1:"none",relationTitle2:e[t-1]};break;case 63:this.$={id1:e[t-4],id2:e[t],relation:e[t-2],relationTitle1:e[t-3],relationTitle2:e[t-1]};break;case 64:this.$=n.addNote(e[t],e[t-1]);break;case 65:this.$=n.addNote(e[t]);break;case 66:this.$=e[t-2],n.defineClass(e[t-1],e[t]);break;case 68:this.$=e[t-2].concat([e[t]]);break;case 69:n.setDirection("TB");break;case 70:n.setDirection("BT");break;case 71:n.setDirection("RL");break;case 72:n.setDirection("LR");break;case 73:this.$={type1:e[t-2],type2:e[t],lineType:e[t-1]};break;case 74:this.$={type1:"none",type2:e[t],lineType:e[t-1]};break;case 75:this.$={type1:e[t-1],type2:"none",lineType:e[t]};break;case 76:this.$={type1:"none",type2:"none",lineType:e[t]};break;case 77:this.$=n.relationType.AGGREGATION;break;case 78:this.$=n.relationType.EXTENSION;break;case 79:this.$=n.relationType.COMPOSITION;break;case 80:this.$=n.relationType.DEPENDENCY;break;case 81:this.$=n.relationType.LOLLIPOP;break;case 82:this.$=n.lineType.LINE;break;case 83:this.$=n.lineType.DOTTED_LINE;break;case 84:case 90:this.$=e[t-2],n.setClickEvent(e[t-1],e[t]);break;case 85:case 91:this.$=e[t-3],n.setClickEvent(e[t-2],e[t-1]),n.setTooltip(e[t-2],e[t]);break;case 86:this.$=e[t-2],n.setLink(e[t-1],e[t]);break;case 87:this.$=e[t-3],n.setLink(e[t-2],e[t-1],e[t]);break;case 88:this.$=e[t-3],n.setLink(e[t-2],e[t-1]),n.setTooltip(e[t-2],e[t]);break;case 89:this.$=e[t-4],n.setLink(e[t-3],e[t-2],e[t]),n.setTooltip(e[t-3],e[t-1]);break;case 92:this.$=e[t-3],n.setClickEvent(e[t-2],e[t-1],e[t]);break;case 93:this.$=e[t-4],n.setClickEvent(e[t-3],e[t-2],e[t-1]),n.setTooltip(e[t-3],e[t]);break;case 94:this.$=e[t-3],n.setLink(e[t-2],e[t]);break;case 95:this.$=e[t-4],n.setLink(e[t-3],e[t-1],e[t]);break;case 96:this.$=e[t-4],n.setLink(e[t-3],e[t-1]),n.setTooltip(e[t-3],e[t]);break;case 97:this.$=e[t-5],n.setLink(e[t-4],e[t-2],e[t]),n.setTooltip(e[t-4],e[t-1]);break;case 98:this.$=e[t-2],n.setCssStyle(e[t-1],e[t]);break;case 99:n.setCssClass(e[t-1],e[t]);break;case 100:this.$=[e[t]];break;case 101:e[t-2].push(e[t]),this.$=e[t-2];break;case 103:this.$=e[t-1]+e[t];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:u,38:22,42:l,43:23,46:r,49:c,51:f,52:C,54:k,56:B,57:Ae,60:m,62:fe,63:ge,64:Ce,65:me,75:be,76:Ee,78:ye,82:ke,83:Te,86:b,100:E,102:y,103:T},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},s(De,[2,5],{8:[1,48]}),{8:[1,49]},s(d,[2,19],{22:[1,50]}),s(d,[2,21]),s(d,[2,22]),s(d,[2,23]),s(d,[2,24]),s(d,[2,25]),s(d,[2,26]),s(d,[2,27]),s(d,[2,28]),s(d,[2,29]),s(d,[2,30]),{34:[1,51]},{36:[1,52]},s(d,[2,33]),s(d,[2,56],{53:53,66:56,67:57,13:[1,54],22:[1,55],68:ee,69:te,70:se,71:ie,72:ae,73:Fe,74:Be}),{39:[1,65]},s(I,[2,43],{39:[1,67],44:[1,66]}),s(d,[2,58]),s(d,[2,59]),{16:68,60:m,86:b,100:E,102:y},{16:39,17:40,19:69,60:m,86:b,100:E,102:y,103:T},{16:39,17:40,19:70,60:m,86:b,100:E,102:y,103:T},{16:39,17:40,19:71,60:m,86:b,100:E,102:y,103:T},{60:[1,72]},{13:[1,73]},{16:39,17:40,19:74,60:m,86:b,100:E,102:y,103:T},{13:Me,55:75},{58:77,60:[1,78]},s(d,[2,69]),s(d,[2,70]),s(d,[2,71]),s(d,[2,72]),s(P,[2,13],{16:39,17:40,19:80,18:[1,79],20:[1,81],60:m,86:b,100:E,102:y,103:T}),s(P,[2,15],{20:[1,82]}),{15:83,16:84,17:85,60:m,86:b,100:E,102:y,103:T},{16:39,17:40,19:86,60:m,86:b,100:E,102:y,103:T},s(re,[2,126]),s(re,[2,127]),s(re,[2,128]),s(re,[2,129]),s([1,8,9,12,13,20,22,39,41,44,68,69,70,71,72,73,74,79,81],[2,130]),s(De,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,19:21,38:22,43:23,16:39,17:40,5:87,33:i,35:a,37:u,42:l,46:r,49:c,51:f,52:C,54:k,56:B,57:Ae,60:m,62:fe,63:ge,64:Ce,65:me,75:be,76:Ee,78:ye,82:ke,83:Te,86:b,100:E,102:y,103:T}),{5:88,10:5,16:39,17:40,19:21,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:u,38:22,42:l,43:23,46:r,49:c,51:f,52:C,54:k,56:B,57:Ae,60:m,62:fe,63:ge,64:Ce,65:me,75:be,76:Ee,78:ye,82:ke,83:Te,86:b,100:E,102:y,103:T},s(d,[2,20]),s(d,[2,31]),s(d,[2,32]),{13:[1,90],16:39,17:40,19:89,60:m,86:b,100:E,102:y,103:T},{53:91,66:56,67:57,68:ee,69:te,70:se,71:ie,72:ae,73:Fe,74:Be},s(d,[2,57]),{67:92,73:Fe,74:Be},s(ne,[2,76],{66:93,68:ee,69:te,70:se,71:ie,72:ae}),s(Y,[2,77]),s(Y,[2,78]),s(Y,[2,79]),s(Y,[2,80]),s(Y,[2,81]),s(Pe,[2,82]),s(Pe,[2,83]),{8:[1,95],24:96,30:97,40:94,43:23,46:r,54:k,56:B},{16:98,60:m,86:b,100:E,102:y},{41:[1,100],45:99,51:_e},{50:[1,102]},{13:[1,103]},{13:[1,104]},{79:[1,105],81:[1,106]},{22:K,48:Q,59:107,60:W,82:j,84:108,85:109,86:X,87:q,88:H,89:J,90:Z},{60:[1,119]},{13:Me,55:120},s(I,[2,65]),s(I,[2,131]),{22:K,48:Q,59:121,60:W,61:[1,122],82:j,84:108,85:109,86:X,87:q,88:H,89:J,90:Z},s(Re,[2,67]),{16:39,17:40,19:123,60:m,86:b,100:E,102:y,103:T},s(P,[2,16]),s(P,[2,17]),s(P,[2,18]),{39:[2,36]},{15:125,16:84,17:85,18:[1,124],39:[2,9],60:m,86:b,100:E,102:y,103:T},{39:[2,10]},s(Se,[2,48],{11:126,12:[1,127]}),s(De,[2,7]),{9:[1,128]},s(ue,[2,60]),{16:39,17:40,19:129,60:m,86:b,100:E,102:y,103:T},{13:[1,131],16:39,17:40,19:130,60:m,86:b,100:E,102:y,103:T},s(ne,[2,75],{66:132,68:ee,69:te,70:se,71:ie,72:ae}),s(ne,[2,74]),{41:[1,133]},{24:96,30:97,40:134,43:23,46:r,54:k,56:B},{8:[1,135],41:[2,37]},{8:[1,136],41:[2,40]},s(I,[2,44],{39:[1,137]}),{41:[1,138]},s(I,[2,46]),{41:[2,54],45:139,51:_e},{16:39,17:40,19:140,60:m,86:b,100:E,102:y,103:T},s(d,[2,84],{13:[1,141]}),s(d,[2,86],{13:[1,143],77:[1,142]}),s(d,[2,90],{13:[1,144],80:[1,145]}),{13:[1,146]},s(d,[2,98],{61:Ge}),s(Ue,[2,100],{85:148,22:K,48:Q,60:W,82:j,86:X,87:q,88:H,89:J,90:Z}),s(L,[2,102]),s(L,[2,104]),s(L,[2,105]),s(L,[2,106]),s(L,[2,107]),s(L,[2,108]),s(L,[2,109]),s(L,[2,110]),s(L,[2,111]),s(L,[2,112]),s(d,[2,99]),s(I,[2,64]),s(d,[2,66],{61:Ge}),{60:[1,149]},s(P,[2,14]),{15:150,16:84,17:85,60:m,86:b,100:E,102:y,103:T},{39:[2,12]},s(Se,[2,49]),{13:[1,151]},{1:[2,4]},s(ue,[2,62]),s(ue,[2,61]),{16:39,17:40,19:152,60:m,86:b,100:E,102:y,103:T},s(ne,[2,73]),s(d,[2,34]),{41:[1,153]},{24:96,30:97,40:154,41:[2,38],43:23,46:r,54:k,56:B},{24:96,30:97,40:155,41:[2,41],43:23,46:r,54:k,56:B},{45:156,51:_e},s(I,[2,45]),{41:[2,55]},s(d,[2,53]),s(d,[2,85]),s(d,[2,87]),s(d,[2,88],{77:[1,157]}),s(d,[2,91]),s(d,[2,92],{13:[1,158]}),s(d,[2,94],{13:[1,160],77:[1,159]}),{22:K,48:Q,60:W,82:j,84:161,85:109,86:X,87:q,88:H,89:J,90:Z},s(L,[2,103]),s(Re,[2,68]),{39:[2,11]},{14:[1,162]},s(ue,[2,63]),s(d,[2,35]),{41:[2,39]},{41:[2,42]},{41:[1,163]},s(d,[2,89]),s(d,[2,93]),s(d,[2,95]),s(d,[2,96],{77:[1,164]}),s(Ue,[2,101],{85:148,22:K,48:Q,60:W,82:j,86:X,87:q,88:H,89:J,90:Z}),s(Se,[2,8]),s(I,[2,47]),s(d,[2,97])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],83:[2,36],85:[2,10],125:[2,12],128:[2,4],139:[2,55],150:[2,11],154:[2,39],155:[2,42]},parseError:A(function(o,h){if(h.recoverable)this.trace(o);else{var p=new Error(o);throw p.hash=h,p}},"parseError"),parse:A(function(o){var h=this,p=[0],n=[],g=[null],e=[],$=this.table,t="",ce=0,ze=0,He=2,Ye=1,Je=e.slice.call(arguments,1),D=Object.create(this.lexer),w={yy:{}};for(var Le in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Le)&&(w.yy[Le]=this.yy[Le]);D.setInput(o,w.yy),w.yy.lexer=D,w.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var xe=D.yylloc;e.push(xe);var Ze=D.options&&D.options.ranges;typeof w.yy.parseError=="function"?this.parseError=w.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function $e(S){p.length=p.length-2*S,g.length=g.length-S,e.length=e.length-S}A($e,"popStack");function Ke(){var S;return S=n.pop()||D.lex()||Ye,typeof S!="number"&&(S instanceof Array&&(n=S,S=n.pop()),S=h.symbols_[S]||S),S}A(Ke,"lex");for(var _,V,N,ve,R={},oe,x,Qe,he;;){if(V=p[p.length-1],this.defaultActions[V]?N=this.defaultActions[V]:((_===null||typeof _>"u")&&(_=Ke()),N=$[V]&&$[V][_]),typeof N>"u"||!N.length||!N[0]){var Ie="";he=[];for(oe in $[V])this.terminals_[oe]&&oe>He&&he.push("'"+this.terminals_[oe]+"'");D.showPosition?Ie="Parse error on line "+(ce+1)+`:
|
|
2
2
|
`+D.showPosition()+`
|
|
3
3
|
Expecting `+he.join(", ")+", got '"+(this.terminals_[_]||_)+"'":Ie="Parse error on line "+(ce+1)+": Unexpected "+(_==Ye?"end of input":"'"+(this.terminals_[_]||_)+"'"),this.parseError(Ie,{text:D.match,token:this.terminals_[_]||_,line:D.yylineno,loc:xe,expected:he})}if(N[0]instanceof Array&&N.length>1)throw new Error("Parse Error: multiple actions possible at state: "+V+", token: "+_);switch(N[0]){case 1:p.push(_),g.push(D.yytext),e.push(D.yylloc),p.push(N[1]),_=null,ze=D.yyleng,t=D.yytext,ce=D.yylineno,xe=D.yylloc;break;case 2:if(x=this.productions_[N[1]][1],R.$=g[g.length-x],R._$={first_line:e[e.length-(x||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(x||1)].first_column,last_column:e[e.length-1].last_column},Ze&&(R._$.range=[e[e.length-(x||1)].range[0],e[e.length-1].range[1]]),ve=this.performAction.apply(R,[t,ze,ce,w.yy,N[1],g,e].concat(Je)),typeof ve<"u")return ve;x&&(p=p.slice(0,-1*x*2),g=g.slice(0,-1*x),e=e.slice(0,-1*x)),p.push(this.productions_[N[1]][0]),g.push(R.$),e.push(R._$),Qe=$[p[p.length-2]][p[p.length-1]],p.push(Qe);break;case 3:return!0}}return!0},"parse")},qe=function(){var O={EOF:1,parseError:A(function(h,p){if(this.yy.parser)this.yy.parser.parseError(h,p);else throw new Error(h)},"parseError"),setInput:A(function(o,h){return this.yy=h||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:A(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var h=o.match(/(?:\r\n?|\n).*/g);return h?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:A(function(o){var h=o.length,p=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),p.length-1&&(this.yylineno-=p.length-1);var g=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:p?(p.length===n.length?this.yylloc.first_column:0)+n[n.length-p.length].length-p[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[g[0],g[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},"unput"),more:A(function(){return this._more=!0,this},"more"),reject:A(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
|
|
4
4
|
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:A(function(o){this.unput(this.match.slice(o))},"less"),pastInput:A(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:A(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:A(function(){var o=this.pastInput(),h=new Array(o.length+1).join("-");return o+this.upcomingInput()+`
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import{d as M,bJ as pe,
|
|
1
|
+
import{d as M,bJ as pe,q as C,w as l,s as re,u as t,o as s,E as ce,i as N,bi as te,n as I,a as e,f as p,p as fe,_ as Z,t as b,r as $,c as u,e as n,b as V,F as L,x as A,O as ve,J as ge,N as ue,bf as _e,L as be,bN as he,am as ie,bO as ye,bP as xe,bQ as Ce,bR as $e,bj as K,k as ke,m as Ne,bS as Te,z as we,B as Pe,bk as Ee,bT as Se,bU as De,Z as Re,V as je,an as de,ae as Be,l as ze,G as X,M as Le,ai as Oe}from"./DbehhcO7.js";import{C as Ie,a as Ue,b as Ve}from"./C04-ICJx.js";import{_ as Ae}from"./DbHH7dzg.js";import{u as Me,_ as Ge}from"./DL1qmlP8.js";import{u as qe}from"./24W1ftax.js";import"./BKh6DDUh.js";import"./BJMwGHo7.js";const Fe=M({__name:"Collapsible",props:{defaultOpen:{type:Boolean},open:{type:Boolean},disabled:{type:Boolean},unmountOnHide:{type:Boolean},asChild:{type:Boolean},as:{}},emits:["update:open"],setup(w,{emit:h}){const a=pe(w,h);return(k,g)=>(s(),C(t(Ie),re({"data-slot":"collapsible"},t(a)),{default:l(({open:T})=>[ce(k.$slots,"default",{open:T})]),_:3},16))}}),He=M({__name:"CollapsibleContent",props:{forceMount:{type:Boolean},asChild:{type:Boolean},as:{}},setup(w){const h=w;return(f,d)=>(s(),C(t(Ue),re({"data-slot":"collapsible-content"},h),{default:l(()=>[ce(f.$slots,"default")]),_:3},16))}}),Je=M({__name:"CollapsibleTrigger",props:{asChild:{type:Boolean},as:{}},setup(w){const h=w;return(f,d)=>(s(),C(t(Ve),re({"data-slot":"collapsible-trigger"},h),{default:l(()=>[ce(f.$slots,"default")]),_:3},16))}}),me=M({__name:"PermissionBadge",props:{label:{},value:{type:[Boolean,String]},type:{default:"boolean"}},setup(w){const h=w,f=N(()=>h.type==="boolean"),d=N(()=>h.value===!0);return(a,k)=>{const g=Z,T=te;return t(f)?(s(),C(T,{key:0,variant:"outline",class:I(["text-xs items-center flex gap-1 ",!t(d)&&"opacity-50"])},{default:l(()=>[e(g,{name:t(d)?"lucide:check":"lucide:x",class:I(t(fe)("size-3",t(d)&&"text-green-500"))},null,8,["name","class"]),p(" "+b(a.label),1)]),_:1},8,["class"])):(s(),C(T,{key:1,variant:"secondary",class:"text-xs"},{default:l(()=>[p(b(a.label)+": "+b(a.value),1)]),_:1}))}}}),Qe={class:"rounded-md border"},Ke={key:1,class:"ml-auto flex gap-1"},Xe={key:0,class:"border-t bg-muted/20 p-3"},Ze={class:"px-3 py-2 border-b border-border/50"},We={class:"flex flex-wrap gap-2"},Ye={class:"flex border-b border-border/50"},es=["onClick"],ss={class:"max-h-[350px] overflow-y-auto"},ts={key:0,class:"flex flex-col items-center justify-center py-6 text-muted-foreground"},ns={class:"text-xs"},as={key:1,class:"divide-y divide-border/50"},os={class:"flex-1 min-w-0"},ls={class:"text-xs font-medium truncate"},is={class:"text-muted-foreground"},rs={class:"flex items-center gap-0.5"},cs={key:1,class:"flex items-center gap-2 p-3 text-xs text-muted-foreground bg-muted/30 rounded"},us=M({__name:"DatabasePermissionCard",props:{database:{},isExpanded:{type:Boolean},isCurrentDatabase:{type:Boolean},permissions:{}},emits:["toggle","updatePermission"],setup(w,{emit:h}){const f=w,d=h,a=$("tables"),k=[{id:"schemas",label:"Schemas",icon:"hugeicons:folder-02"},{id:"tables",label:"Tables",icon:"hugeicons:grid-table"},{id:"views",label:"Views",icon:"hugeicons:property-view"},{id:"functions",label:"Functions",icon:"gravity-ui:function"}],g=N(()=>{if(!f.permissions)return[];switch(a.value){case"schemas":return f.permissions.schemaPermissions;case"tables":return f.permissions.tablePermissions;case"views":return f.permissions.viewPermissions;case"functions":return f.permissions.functionPermissions;default:return[]}}),T=N(()=>{var c,m,_,P;return{tables:((c=f.permissions)==null?void 0:c.tablePermissions.length)??0,schemas:((m=f.permissions)==null?void 0:m.schemaPermissions.length)??0,views:((_=f.permissions)==null?void 0:_.viewPermissions.length)??0,functions:((P=f.permissions)==null?void 0:P.functionPermissions.length)??0}}),y=c=>{switch(c){case"table":return"hugeicons:grid-table";case"schema":return"hugeicons:folder-02";case"view":return"hugeicons:property-view";case"function":return"gravity-ui:function";default:return"hugeicons:knight-shield"}},D=N(()=>[{id:"connect",label:"CONNECT",value:f.database.canConnect,type:"boolean"},{id:"create",label:"CREATE",value:f.database.canCreate,type:"boolean"},{id:"temp",label:"TEMP",value:f.database.canTemp,type:"boolean"}]);return(c,m)=>{const _=Z,P=te,j=ue,R=ge,B=be,Q=ve,G=he;return s(),u("div",Qe,[n("div",{class:I(["flex items-center gap-1 px-3 py-2 cursor-pointer hover:bg-accent/50",!c.database.canConnect&&"opacity-50 cursor-not-allowed"]),onClick:m[0]||(m[0]=v=>c.database.canConnect&&d("toggle"))},[e(_,{name:c.isExpanded?"hugeicons:arrow-down-01":"hugeicons:arrow-right-01",class:I(["size-4 transition-transform",!c.database.canConnect&&"invisible"])},null,8,["name","class"]),e(_,{name:c.database.canConnect?"hugeicons:database":"hugeicons:database-locked",class:I(["size-4",c.database.canConnect?"text-yellow-400":"text-muted-foreground"])},null,8,["name","class"]),n("span",{class:I(["text-sm font-medium",!c.database.canConnect&&"text-muted-foreground"])},b(c.database.databaseName),3),c.database.canConnect?(s(),u("div",Ke,[c.database.canConnect?(s(),C(P,{key:0,variant:"outline",class:"text-xs"},{default:l(()=>m[1]||(m[1]=[p("CONNECT")])),_:1})):V("",!0),c.database.canCreate?(s(),C(P,{key:1,variant:"outline",class:"text-xs"},{default:l(()=>m[2]||(m[2]=[p("CREATE")])),_:1})):V("",!0),c.database.canTemp?(s(),C(P,{key:2,variant:"outline",class:"text-xs"},{default:l(()=>m[3]||(m[3]=[p("TEMP")])),_:1})):V("",!0)])):(s(),C(_,{key:0,name:"hugeicons:circle-lock-01",class:"size-3 text-muted-foreground ml-auto"}))],2),c.isExpanded&&c.database.canConnect?(s(),u("div",Xe,[n("div",Ze,[m[4]||(m[4]=n("p",{class:"text-xs text-muted-foreground mb-2"}," Database-level privileges: ",-1)),n("div",We,[(s(!0),u(L,null,A(t(D),v=>(s(),C(me,{key:v.id,label:v.label,value:v.value,type:v.type},null,8,["label","value","type"]))),128))])]),c.isCurrentDatabase?(s(),u(L,{key:0},[n("div",Ye,[(s(),u(L,null,A(k,v=>n("button",{key:v.id,class:I(["flex items-center gap-1 px-3 py-1.5 text-xs transition-colors cursor-pointer",t(a)===v.id?"border-b-2 border-primary text-foreground":"text-muted-foreground border-b-2 border-transparent hover:text-foreground"]),onClick:O=>a.value=v.id},[e(_,{name:v.icon,class:"size-3"},null,8,["name"]),p(" "+b(v.label)+" ",1),e(P,{variant:"secondary",class:"ml-1 text-xs px-1 py-0"},{default:l(()=>[p(b(t(T)[v.id]),1)]),_:2},1024)],10,es)),64))]),n("div",ss,[t(g).length?(s(),u("div",as,[(s(!0),u(L,null,A(t(g),(v,O)=>(s(),u("div",{key:`${v.schemaName}-${v.objectName}-${O}`,class:"group flex items-center gap-2 px-3 py-2 hover:bg-accent/30"},[e(_,{name:y(v.objectType),class:"size-4 text-muted-foreground shrink-0"},null,8,["name"]),n("div",os,[n("p",ls,[n("span",is,b(v.schemaName)+".",1),p(b(v.objectName),1)])]),n("div",rs,[(s(!0),u(L,null,A(v.privileges,H=>(s(),C(P,{variant:"outline",class:"text-xs normal-case"},{default:l(()=>[p(b(H),1)]),_:2},1024))),256))]),e(G,null,{default:l(()=>[e(Q,null,{default:l(()=>[e(R,{"as-child":""},{default:l(()=>[e(j,{variant:"ghost",size:"iconSm",onClick:_e(H=>d("updatePermission",v),["stop"])},{default:l(()=>[e(_,{name:"hugeicons:pencil-edit-02",class:"size-3"})]),_:2},1032,["onClick"])]),_:2},1024),e(B,null,{default:l(()=>m[5]||(m[5]=[p("Update Permission")])),_:1})]),_:2},1024)]),_:2},1024)]))),128))])):(s(),u("div",ts,[e(_,{name:"hugeicons:knight-shield",class:"size-8 mb-1 opacity-50"}),n("p",ns,"No "+b(t(a))+" permissions",1)]))])],64)):(s(),u("div",cs,[e(_,{name:"hugeicons:information-circle",class:"size-4"}),m[6]||(m[6]=n("span",null,"Connect to this database to view tables, schemas, and functions permissions.",-1))]))])):V("",!0)])}}}),ds={class:"grid gap-4 py-2"},ms={class:"grid gap-2"},ps={class:"grid gap-2"},fs={class:"grid gap-2"},vs={class:"grid gap-2"},gs={class:"grid grid-cols-2 md:grid-cols-3 gap-2"},_s={class:"text-xs"},bs={class:"grid gap-2"},hs=M({__name:"GrantRevokeDialog",props:{open:{type:Boolean},mode:{},roleName:{},permission:{},loading:{type:Boolean}},emits:["update:open","confirm"],setup(w,{emit:h}){const f=["SELECT","INSERT","UPDATE","DELETE","TRUNCATE","REFERENCES","TRIGGER"],d=["USAGE","CREATE"],a=["EXECUTE"],k=["USAGE","SELECT","UPDATE"],g=w,T=h,y=$("table"),D=$("public"),c=$(""),m=$([]),_=$([]);Me();const P=N(()=>{switch(y.value){case"table":return f;case"schema":return d;case"function":return a;case"sequence":return k;default:return[]}});ie(()=>g.open,x=>{x&&(g.permission?(y.value=g.permission.objectType,D.value=g.permission.schemaName,c.value=g.permission.objectName,_.value=[...g.permission.privileges],m.value=[...g.permission.privileges]):(y.value="table",D.value="public",c.value="",_.value=[],m.value=[]))});const j=N(()=>m.value),R=N(()=>f.filter(x=>!m.value.includes(x))),B=N(()=>j.value.length>0||R.value.length>0),Q=N(()=>{const x=D.value||"<schema>",i=c.value||"<object>",q=g.roleName||"<role>",F=`${y.value.toUpperCase()} "${x}"."${i}"`,U=[];return j.value.length&&U.push(`GRANT ${j.value.join(", ")} ON ${F} TO "${q}";`),R.value.length&&U.push(`REVOKE ${R.value.join(", ")} ON ${F} FROM "${q}";`),U.length?U.join(`
|
|
2
2
|
|
|
3
|
-
`):"-- No permission changes"}),G=x=>{const i=m.value.indexOf(x);i>-1?m.value.splice(i,1):m.value.push(x)},v=()=>{B.value&&T("confirm",{objectType:y.value,schemaName:j.value,objectName:c.value,grant:R.value,revoke:D.value})},O=()=>T("update:open",!1),H=N(()=>g.mode==="grant"?`Grant Permission to ${g.roleName}`:`Update Permission for ${g.roleName}`);return(x,i)=>{const F=Ce,q=$e,U=xe,ne=Te,o=Ne,r=Pe,z=we,W=ke,Y=Ee,ae=Ae,oe=Ge,ee=ue,se=Z,E=Se,J=je,le=ye;return s(),C(le,{open:x.open,"onUpdate:open":i[3]||(i[3]=S=>T("update:open",S))},{default:l(()=>[e(J,{class:"max-w-[45vw]! w-[45vw]!"},{default:l(()=>[e(U,null,{default:l(()=>[e(F,null,{default:l(()=>[p(b(H.value),1)]),_:1}),e(q,null,{default:l(()=>i[4]||(i[4]=[p(" Tick to grant, untick to revoke privileges. ")])),_:1})]),_:1}),n("div",ds,[n("div",ms,[e(t(K),null,{default:l(()=>i[5]||(i[5]=[p("Object Type")])),_:1}),e(W,{modelValue:y.value,"onUpdate:modelValue":i[0]||(i[0]=S=>y.value=S),disabled:x.mode==="update"},{default:l(()=>[e(o,null,{default:l(()=>[e(ne)]),_:1}),e(z,null,{default:l(()=>[e(r,{value:"table"},{default:l(()=>i[6]||(i[6]=[p("Table")])),_:1}),e(r,{value:"schema"},{default:l(()=>i[7]||(i[7]=[p("Schema")])),_:1}),e(r,{value:"function"},{default:l(()=>i[8]||(i[8]=[p("Function")])),_:1}),e(r,{value:"sequence"},{default:l(()=>i[9]||(i[9]=[p("Sequence")])),_:1})]),_:1})]),_:1},8,["modelValue","disabled"])]),n("div",ps,[e(t(K),null,{default:l(()=>i[10]||(i[10]=[p("Schema")])),_:1}),e(Y,{modelValue:j.value,"onUpdate:modelValue":i[1]||(i[1]=S=>j.value=S),disabled:x.mode==="update"},null,8,["modelValue","disabled"])]),n("div",fs,[e(t(K),null,{default:l(()=>i[11]||(i[11]=[p("Object Name")])),_:1}),e(Y,{modelValue:c.value,"onUpdate:modelValue":i[2]||(i[2]=S=>c.value=S),disabled:x.mode==="update"},null,8,["modelValue","disabled"])]),n("div",vs,[e(t(K),null,{default:l(()=>i[12]||(i[12]=[p("Privileges")])),_:1}),n("div",gs,[(s(!0),u(L,null,A(P.value,S=>(s(),u("div",{key:S,class:"flex items-center gap-2 cursor-pointer"},[e(ae,{"model-value":m.value.includes(S),"onUpdate:modelValue":Hs=>G(S)},null,8,["model-value","onUpdate:modelValue"]),n("span",_s,b(S),1)]))),128))])]),n("div",bs,[e(t(K),null,{default:l(()=>i[13]||(i[13]=[p("SQL Preview")])),_:1}),e(oe,{code:Q.value,"show-copy-button":"","max-height":"24rem"},null,8,["code"])])]),e(E,null,{default:l(()=>[e(ee,{variant:"outline",onClick:O},{default:l(()=>i[14]||(i[14]=[p(" Cancel ")])),_:1}),e(ee,{disabled:!B.value||x.loading,onClick:v},{default:l(()=>[x.loading?(s(),C(se,{key:0,name:"hugeicons:loading-03",class:"size-4 mr-2 animate-spin"})):V("",!0),p(" "+b(x.mode==="grant"?"Grant":"Update"),1)]),_:1},8,["disabled"])]),_:1})]),_:1})]),_:1},8,["open"])}}}),ys={class:"px-4 py-3 shrink-0"},xs={class:"flex items-center gap-2 mb-2"},Cs={key:0,class:"flex flex-wrap gap-2"},$s={key:1,class:"mt-2 text-xs text-muted-foreground"},ks={class:"text-foreground"},Ns=M({__name:"RoleAttributesCard",props:{roleInfo:{}},setup(w){const h=w,f=N(()=>{if(!h.roleInfo)return[];const a=h.roleInfo;return[{id:"superuser",label:"Superuser",value:a.isSuperuser,type:"boolean"},{id:"login",label:"Can Login",value:a.canLogin,type:"boolean"},{id:"createdb",label:"Create DB",value:a.canCreateDb,type:"boolean"},{id:"createrole",label:"Create Role",value:a.canCreateRole,type:"boolean"},{id:"replication",label:"Replication",value:a.isReplication,type:"boolean"},{id:"connlimit",label:"Connections",value:a.connectionLimit===-1?"Unlimited":`${a.connectionLimit}`,type:"text"}]}),d=N(()=>{var a,k;return(k=(a=h.roleInfo)==null?void 0:a.memberOf)!=null&&k.length?h.roleInfo.memberOf:[]});return(a,k)=>{const g=Z,T=te;return s(),u("div",ys,[n("div",xs,[e(g,{name:"hugeicons:shield-01",class:"size-4"}),k[0]||(k[0]=n("p",{class:"text-sm font-medium"},"Role Attributes",-1))]),a.roleInfo?(s(),u("div",Cs,[(s(!0),u(L,null,A(t(f),y=>(s(),C(me,{key:y.id,label:y.label,value:y.value,type:y.type},null,8,["label","value","type"]))),128)),a.roleInfo.validUntil?(s(),C(T,{key:0,variant:"secondary",class:"text-xs"},{default:l(()=>[e(g,{name:"lucide:calendar",class:"size-3 mr-1"}),p(" Expires: "+b(new Date(a.roleInfo.validUntil).toLocaleDateString()),1)]),_:1})):V("",!0)])):V("",!0),t(d).length?(s(),u("div",$s,[k[1]||(k[1]=p(" Member of: ")),n("span",ks,b(t(d).join(", ")),1)])):V("",!0)])}}}),Ts={class:"flex flex-col h-full p-1 relative"},ws={class:"flex flex-col h-full border rounded-md overflow-hidden"},Ps={class:"flex items-center gap-3 px-4 py-1 bg-sidebar"},Es={class:"font-normal text-sm"},Ss={class:"ml-auto flex items-center gap-2"},js={key:0,class:"flex-1 flex items-center justify-center"},Ds={key:1,class:"flex-1 flex flex-col items-center justify-center p-4"},Rs={class:"text-sm text-destructive"},Bs={class:"px-4 pt-0 pb-3"},zs={class:"flex items-center gap-2 mb-2"},Ls={class:"flex items-center gap-2"},Os={variant:"secondary",class:"text-xs cursor-pointer text-muted-foreground flex items-center gap-1"},Is={class:"text-xs ml-1"},Us={key:0,class:"flex items-center gap-2 text-muted-foreground"},Vs={key:1,class:"text-sm text-muted-foreground"},As={key:2,class:"space-y-1"},Ms={class:"flex flex-col flex-1 min-h-0 p-4 pt-0"},Gs={class:"flex items-center gap-2 mb-3 shrink-0"},Fs={key:0,class:"flex items-center gap-2 text-muted-foreground"},qs={key:2,class:"space-y-1 flex-1 overflow-y-auto"},et=M({__name:"[roleName]",setup(w){const h=De(),f=Re(),d=N(()=>h.params.roleName),a=N(()=>f.selectedConnection),k=N(()=>{if(!a.value)return"";if(a.value.database)return a.value.database;const o=a.value.connectionString;if(!o)return"";try{return new URL(o).pathname.slice(1)||""}catch{const r=o.match(/\/([^/?]+)(\?|$)/);return(r==null?void 0:r[1])||""}}),g=o=>k.value.toLowerCase()===o.toLowerCase(),T=$(null),y=$([]),j=async()=>{if(!(!a.value||!d.value))try{const r=await $fetch("/api/database-roles/get-role",{method:"POST",body:{...X(a.value),roleName:d.value}});r&&(T.value={isSuperuser:r.isSuperuser,canLogin:r.canLogin,canCreateDb:r.canCreateDb,canCreateRole:r.canCreateRole,isReplication:r.isReplication,connectionLimit:r.connectionLimit,validUntil:r.validUntil,memberOf:r.memberOf})}catch(o){console.error("Error fetching role info:",o)}},c=$(!1),m=async()=>{if(!(!a.value||!d.value)){c.value=!0;try{const o=await $fetch("/api/database-roles/get-role-inheritance",{method:"POST",body:{...X(a.value),roleName:d.value}});y.value=o}catch(o){console.error("Error fetching role inheritance:",o),y.value=[]}finally{c.value=!1}}},_=$(!1),P=$(!1),R=$(null),D=$(null),B=async()=>{if(!(!a.value||!d.value)){_.value=!0,D.value=null;try{const o=await $fetch("/api/database-roles/get-permissions",{method:"POST",body:{...X(a.value),roleName:d.value}});R.value=o}catch(o){D.value=o instanceof Error?o.message:"Failed to fetch permissions",console.error("Error fetching permissions:",o)}finally{_.value=!1}}};de(()=>{B(),j(),m()}),ie(d,()=>{B(),j(),m()});const{isLoading:Q,databasePermissions:G,fetchDatabasePermissions:v}=Fe(a),O=$(new Set),H=o=>{O.value.has(o)?O.value.delete(o):O.value.add(o)},x=o=>O.value.has(o);de(()=>v(d.value)),ie(d,o=>v(o));const i=$(!1),F=$("grant"),q=$(),U=o=>{F.value="update",q.value=o,i.value=!0},ne=async o=>{if(!(!a.value||!d.value)){P.value=!0;try{const r=[];o.grant.length>0&&r.push($fetch("/api/database-roles/grant-permission",{method:"POST",body:{...X(a.value),roleName:d.value,objectType:o.objectType,schemaName:o.schemaName,objectName:o.objectName,privileges:o.grant}})),o.revoke.length>0&&r.push($fetch("/api/database-roles/revoke-permission",{method:"POST",body:{...X(a.value),roleName:d.value,objectType:o.objectType,schemaName:o.schemaName,objectName:o.objectName,privileges:o.revoke}})),await Promise.all(r),i.value=!1,await B()}catch(r){console.error("Error updating permissions:",r)}finally{P.value=!1}}};return(o,r)=>{const z=Z,W=ue,Y=Je,ae=He,oe=qe,ee=te,se=Oe;return s(),u("div",Ts,[n("div",ws,[n("div",Ps,[n("div",null,[n("p",Es,b(t(d)),1)]),n("div",Ss,[e(W,{variant:"outline",size:"iconSm",disabled:t(_),onClick:B},{default:l(()=>[e(z,{name:t(_)?"hugeicons:loading-03":"lucide:refresh-cw",class:I(["size-4",t(_)&&"animate-spin"])},null,8,["name","class"])]),_:1},8,["disabled"])])]),t(_)?(s(),u("div",js,[e(t(Be),{visible:t(_)},null,8,["visible"])])):t(D)?(s(),u("div",Ds,[e(z,{name:"hugeicons:information-circle",class:"size-12 text-destructive"}),n("p",Rs,b(t(D)),1),e(W,{variant:"outline",size:"sm",class:"mt-4 font-normal",onClick:B},{default:l(()=>r[1]||(r[1]=[p(" Retry ")])),_:1})])):t(R)?(s(),u(L,{key:2},[e(Ns,{"role-info":t(T)},null,8,["role-info"]),n("div",Bs,[e(oe,{"default-open":!0},{default:l(({open:E})=>[n("div",zs,[n("div",Ls,[e(z,{name:"lucide:git-branch",class:"size-4 text-muted-foreground"}),r[2]||(r[2]=n("p",{class:"text-sm font-medium"},"Inherited from",-1))]),e(Y,{"as-child":""},{default:l(()=>[n("div",Os,[n("span",Is,b(E?"Collapse":"Expand"),1),e(z,{name:"lucide:chevron-down",class:I(["size-4 transition-transform",E&&"rotate-180"])},null,8,["class"])])]),_:2},1024)]),e(ae,null,{default:l(()=>[t(c)?(s(),u("div",Us,[e(z,{name:"hugeicons:loading-03",class:"size-4 animate-spin"}),r[3]||(r[3]=n("span",{class:"text-sm"},"Loading inheritance...",-1))])):t(y).length===0?(s(),u("div",Vs," No inherited roles ")):(s(),u("div",As,[(s(!0),u(L,null,A(t(y),(J,le)=>(s(),u("div",{key:`${J.roleName}-${le}`,class:"flex items-center text-sm gap-1 hover:bg-accent rounded-sm",style:Le({paddingLeft:`${J.depth*16}px`})},[e(z,{name:"lucide:corner-down-right",class:"size-3 text-muted-foreground"}),n("span",null,b(J.roleName),1)],4))),128))]))]),_:1})]),_:1})]),n("div",Ms,[n("div",Gs,[e(z,{name:"hugeicons:database",class:"size-5 text-yellow-400"}),r[4]||(r[4]=n("p",{class:"text-sm font-medium"},"Database Access",-1)),e(ee,{variant:"secondary",class:"text-xs"},{default:l(()=>[p(b(t(G).filter(E=>E.canConnect).length),1)]),_:1})]),t(Q)?(s(),u("div",Fs,[e(z,{name:"hugeicons:loading-03",class:"size-4 animate-spin"}),r[5]||(r[5]=n("span",{class:"text-sm"},"Loading databases...",-1))])):t(G).length===0?(s(),C(se,{key:1,title:"No permissions found",desc:"No database permissions were found for this role."})):(s(),u("div",qs,[(s(!0),u(L,null,A(t(G),E=>(s(),C(us,{key:E.databaseName,database:E,"is-expanded":x(E.databaseName),"is-current-database":g(E.databaseName),permissions:t(R),onToggle:J=>H(E.databaseName),onUpdatePermission:U},null,8,["database","is-expanded","is-current-database","permissions","onToggle"]))),128))]))])],64)):(s(),C(se,{key:3,icon:"hugeicons:shield-01",title:"No data available",desc:"No permissions data is available for the current selection."}))]),e(hs,{open:t(i),"onUpdate:open":r[0]||(r[0]=E=>ze(i)?i.value=E:null),mode:t(F),roleName:t(d),permission:t(q),loading:t(P),onConfirm:ne},null,8,["open","mode","roleName","permission","loading"])])}}});export{et as default};
|
|
3
|
+
`):"-- No permission changes"}),G=x=>{const i=m.value.indexOf(x);i>-1?m.value.splice(i,1):m.value.push(x)},v=()=>{B.value&&T("confirm",{objectType:y.value,schemaName:D.value,objectName:c.value,grant:j.value,revoke:R.value})},O=()=>T("update:open",!1),H=N(()=>g.mode==="grant"?`Grant Permission to ${g.roleName}`:`Update Permission for ${g.roleName}`);return(x,i)=>{const q=Ce,F=$e,U=xe,ne=Te,o=Ne,r=Pe,z=we,W=ke,Y=Ee,ae=Ae,oe=Ge,ee=ue,se=Z,E=Se,J=De,le=ye;return s(),C(le,{open:x.open,"onUpdate:open":i[3]||(i[3]=S=>T("update:open",S))},{default:l(()=>[e(J,{class:"max-w-[45vw]! w-[45vw]!"},{default:l(()=>[e(U,null,{default:l(()=>[e(q,null,{default:l(()=>[p(b(H.value),1)]),_:1}),e(F,null,{default:l(()=>i[4]||(i[4]=[p(" Tick to grant, untick to revoke privileges. ")])),_:1})]),_:1}),n("div",ds,[n("div",ms,[e(t(K),null,{default:l(()=>i[5]||(i[5]=[p("Object Type")])),_:1}),e(W,{modelValue:y.value,"onUpdate:modelValue":i[0]||(i[0]=S=>y.value=S),disabled:x.mode==="update"},{default:l(()=>[e(o,null,{default:l(()=>[e(ne)]),_:1}),e(z,null,{default:l(()=>[e(r,{value:"table"},{default:l(()=>i[6]||(i[6]=[p("Table")])),_:1}),e(r,{value:"schema"},{default:l(()=>i[7]||(i[7]=[p("Schema")])),_:1}),e(r,{value:"function"},{default:l(()=>i[8]||(i[8]=[p("Function")])),_:1}),e(r,{value:"sequence"},{default:l(()=>i[9]||(i[9]=[p("Sequence")])),_:1})]),_:1})]),_:1},8,["modelValue","disabled"])]),n("div",ps,[e(t(K),null,{default:l(()=>i[10]||(i[10]=[p("Schema")])),_:1}),e(Y,{modelValue:D.value,"onUpdate:modelValue":i[1]||(i[1]=S=>D.value=S),disabled:x.mode==="update"},null,8,["modelValue","disabled"])]),n("div",fs,[e(t(K),null,{default:l(()=>i[11]||(i[11]=[p("Object Name")])),_:1}),e(Y,{modelValue:c.value,"onUpdate:modelValue":i[2]||(i[2]=S=>c.value=S),disabled:x.mode==="update"},null,8,["modelValue","disabled"])]),n("div",vs,[e(t(K),null,{default:l(()=>i[12]||(i[12]=[p("Privileges")])),_:1}),n("div",gs,[(s(!0),u(L,null,A(P.value,S=>(s(),u("div",{key:S,class:"flex items-center gap-2 cursor-pointer"},[e(ae,{"model-value":m.value.includes(S),"onUpdate:modelValue":Hs=>G(S)},null,8,["model-value","onUpdate:modelValue"]),n("span",_s,b(S),1)]))),128))])]),n("div",bs,[e(t(K),null,{default:l(()=>i[13]||(i[13]=[p("SQL Preview")])),_:1}),e(oe,{code:Q.value,"show-copy-button":"","max-height":"24rem"},null,8,["code"])])]),e(E,null,{default:l(()=>[e(ee,{variant:"outline",onClick:O},{default:l(()=>i[14]||(i[14]=[p(" Cancel ")])),_:1}),e(ee,{disabled:!B.value||x.loading,onClick:v},{default:l(()=>[x.loading?(s(),C(se,{key:0,name:"hugeicons:loading-03",class:"size-4 mr-2 animate-spin"})):V("",!0),p(" "+b(x.mode==="grant"?"Grant":"Update"),1)]),_:1},8,["disabled"])]),_:1})]),_:1})]),_:1},8,["open"])}}}),ys={class:"px-4 py-3 shrink-0"},xs={class:"flex items-center gap-2 mb-2"},Cs={key:0,class:"flex flex-wrap gap-2"},$s={key:1,class:"mt-2 text-xs text-muted-foreground"},ks={class:"text-foreground"},Ns=M({__name:"RoleAttributesCard",props:{roleInfo:{}},setup(w){const h=w,f=N(()=>{if(!h.roleInfo)return[];const a=h.roleInfo;return[{id:"superuser",label:"Superuser",value:a.isSuperuser,type:"boolean"},{id:"login",label:"Can Login",value:a.canLogin,type:"boolean"},{id:"createdb",label:"Create DB",value:a.canCreateDb,type:"boolean"},{id:"createrole",label:"Create Role",value:a.canCreateRole,type:"boolean"},{id:"replication",label:"Replication",value:a.isReplication,type:"boolean"},{id:"connlimit",label:"Connections",value:a.connectionLimit===-1?"Unlimited":`${a.connectionLimit}`,type:"text"}]}),d=N(()=>{var a,k;return(k=(a=h.roleInfo)==null?void 0:a.memberOf)!=null&&k.length?h.roleInfo.memberOf:[]});return(a,k)=>{const g=Z,T=te;return s(),u("div",ys,[n("div",xs,[e(g,{name:"hugeicons:shield-01",class:"size-4"}),k[0]||(k[0]=n("p",{class:"text-sm font-medium"},"Role Attributes",-1))]),a.roleInfo?(s(),u("div",Cs,[(s(!0),u(L,null,A(t(f),y=>(s(),C(me,{key:y.id,label:y.label,value:y.value,type:y.type},null,8,["label","value","type"]))),128)),a.roleInfo.validUntil?(s(),C(T,{key:0,variant:"secondary",class:"text-xs"},{default:l(()=>[e(g,{name:"lucide:calendar",class:"size-3 mr-1"}),p(" Expires: "+b(new Date(a.roleInfo.validUntil).toLocaleDateString()),1)]),_:1})):V("",!0)])):V("",!0),t(d).length?(s(),u("div",$s,[k[1]||(k[1]=p(" Member of: ")),n("span",ks,b(t(d).join(", ")),1)])):V("",!0)])}}}),Ts={class:"flex flex-col h-full p-1 relative"},ws={class:"flex flex-col h-full border rounded-md overflow-hidden"},Ps={class:"flex items-center gap-3 px-4 py-1 bg-sidebar"},Es={class:"font-normal text-sm"},Ss={class:"ml-auto flex items-center gap-2"},Ds={key:0,class:"flex-1 flex items-center justify-center"},Rs={key:1,class:"flex-1 flex flex-col items-center justify-center p-4"},js={class:"text-sm text-destructive"},Bs={class:"px-4 pt-0 pb-3"},zs={class:"flex items-center gap-2 mb-2"},Ls={class:"flex items-center gap-2"},Os={variant:"secondary",class:"text-xs cursor-pointer text-muted-foreground flex items-center gap-1"},Is={class:"text-xs ml-1"},Us={key:0,class:"flex items-center gap-2 text-muted-foreground"},Vs={key:1,class:"text-sm text-muted-foreground"},As={key:2,class:"space-y-1"},Ms={class:"flex flex-col flex-1 min-h-0 p-4 pt-0"},Gs={class:"flex items-center gap-2 mb-3 shrink-0"},qs={key:0,class:"flex items-center gap-2 text-muted-foreground"},Fs={key:2,class:"space-y-1 flex-1 overflow-y-auto"},et=M({__name:"[roleName]",setup(w){const h=Re(),f=je(),d=N(()=>h.params.roleName),a=N(()=>f.selectedConnection),k=N(()=>{if(!a.value)return"";if(a.value.database)return a.value.database;const o=a.value.connectionString;if(!o)return"";try{return new URL(o).pathname.slice(1)||""}catch{const r=o.match(/\/([^/?]+)(\?|$)/);return(r==null?void 0:r[1])||""}}),g=o=>k.value.toLowerCase()===o.toLowerCase(),T=$(null),y=$([]),D=async()=>{if(!(!a.value||!d.value))try{const r=await $fetch("/api/database-roles/get-role",{method:"POST",body:{...X(a.value),roleName:d.value}});r&&(T.value={isSuperuser:r.isSuperuser,canLogin:r.canLogin,canCreateDb:r.canCreateDb,canCreateRole:r.canCreateRole,isReplication:r.isReplication,connectionLimit:r.connectionLimit,validUntil:r.validUntil,memberOf:r.memberOf})}catch(o){console.error("Error fetching role info:",o)}},c=$(!1),m=async()=>{if(!(!a.value||!d.value)){c.value=!0;try{const o=await $fetch("/api/database-roles/get-role-inheritance",{method:"POST",body:{...X(a.value),roleName:d.value}});y.value=o}catch(o){console.error("Error fetching role inheritance:",o),y.value=[]}finally{c.value=!1}}},_=$(!1),P=$(!1),j=$(null),R=$(null),B=async()=>{if(!(!a.value||!d.value)){_.value=!0,R.value=null;try{const o=await $fetch("/api/database-roles/get-permissions",{method:"POST",body:{...X(a.value),roleName:d.value}});j.value=o}catch(o){R.value=o instanceof Error?o.message:"Failed to fetch permissions",console.error("Error fetching permissions:",o)}finally{_.value=!1}}};de(()=>{B(),D(),m()}),ie(d,()=>{B(),D(),m()});const{isLoading:Q,databasePermissions:G,fetchDatabasePermissions:v}=qe(a),O=$(new Set),H=o=>{O.value.has(o)?O.value.delete(o):O.value.add(o)},x=o=>O.value.has(o);de(()=>v(d.value)),ie(d,o=>v(o));const i=$(!1),q=$("grant"),F=$(),U=o=>{q.value="update",F.value=o,i.value=!0},ne=async o=>{if(!(!a.value||!d.value)){P.value=!0;try{const r=[];o.grant.length>0&&r.push($fetch("/api/database-roles/grant-permission",{method:"POST",body:{...X(a.value),roleName:d.value,objectType:o.objectType,schemaName:o.schemaName,objectName:o.objectName,privileges:o.grant}})),o.revoke.length>0&&r.push($fetch("/api/database-roles/revoke-permission",{method:"POST",body:{...X(a.value),roleName:d.value,objectType:o.objectType,schemaName:o.schemaName,objectName:o.objectName,privileges:o.revoke}})),await Promise.all(r),i.value=!1,await B()}catch(r){console.error("Error updating permissions:",r)}finally{P.value=!1}}};return(o,r)=>{const z=Z,W=ue,Y=Je,ae=He,oe=Fe,ee=te,se=Oe;return s(),u("div",Ts,[n("div",ws,[n("div",Ps,[n("div",null,[n("p",Es,b(t(d)),1)]),n("div",Ss,[e(W,{variant:"outline",size:"iconSm",disabled:t(_),onClick:B},{default:l(()=>[e(z,{name:t(_)?"hugeicons:loading-03":"lucide:refresh-cw",class:I(["size-4",t(_)&&"animate-spin"])},null,8,["name","class"])]),_:1},8,["disabled"])])]),t(_)?(s(),u("div",Ds,[e(t(Be),{visible:t(_)},null,8,["visible"])])):t(R)?(s(),u("div",Rs,[e(z,{name:"hugeicons:information-circle",class:"size-12 text-destructive"}),n("p",js,b(t(R)),1),e(W,{variant:"outline",size:"sm",class:"mt-4 font-normal",onClick:B},{default:l(()=>r[1]||(r[1]=[p(" Retry ")])),_:1})])):t(j)?(s(),u(L,{key:2},[e(Ns,{"role-info":t(T)},null,8,["role-info"]),n("div",Bs,[e(oe,{"default-open":!0},{default:l(({open:E})=>[n("div",zs,[n("div",Ls,[e(z,{name:"lucide:git-branch",class:"size-4 text-muted-foreground"}),r[2]||(r[2]=n("p",{class:"text-sm font-medium"},"Inherited from",-1))]),e(Y,{"as-child":""},{default:l(()=>[n("div",Os,[n("span",Is,b(E?"Collapse":"Expand"),1),e(z,{name:"lucide:chevron-down",class:I(["size-4 transition-transform",E&&"rotate-180"])},null,8,["class"])])]),_:2},1024)]),e(ae,null,{default:l(()=>[t(c)?(s(),u("div",Us,[e(z,{name:"hugeicons:loading-03",class:"size-4 animate-spin"}),r[3]||(r[3]=n("span",{class:"text-sm"},"Loading inheritance...",-1))])):t(y).length===0?(s(),u("div",Vs," No inherited roles ")):(s(),u("div",As,[(s(!0),u(L,null,A(t(y),(J,le)=>(s(),u("div",{key:`${J.roleName}-${le}`,class:"flex items-center text-sm gap-1 hover:bg-accent rounded-sm",style:Le({paddingLeft:`${J.depth*16}px`})},[e(z,{name:"lucide:corner-down-right",class:"size-3 text-muted-foreground"}),n("span",null,b(J.roleName),1)],4))),128))]))]),_:1})]),_:1})]),n("div",Ms,[n("div",Gs,[e(z,{name:"hugeicons:database",class:"size-5 text-yellow-400"}),r[4]||(r[4]=n("p",{class:"text-sm font-medium"},"Database Access",-1)),e(ee,{variant:"secondary",class:"text-xs"},{default:l(()=>[p(b(t(G).filter(E=>E.canConnect).length),1)]),_:1})]),t(Q)?(s(),u("div",qs,[e(z,{name:"hugeicons:loading-03",class:"size-4 animate-spin"}),r[5]||(r[5]=n("span",{class:"text-sm"},"Loading databases...",-1))])):t(G).length===0?(s(),C(se,{key:1,title:"No permissions found",desc:"No database permissions were found for this role."})):(s(),u("div",Fs,[(s(!0),u(L,null,A(t(G),E=>(s(),C(us,{key:E.databaseName,database:E,"is-expanded":x(E.databaseName),"is-current-database":g(E.databaseName),permissions:t(j),onToggle:J=>H(E.databaseName),onUpdatePermission:U},null,8,["database","is-expanded","is-current-database","permissions","onToggle"]))),128))]))])],64)):(s(),C(se,{key:3,icon:"hugeicons:shield-01",title:"No data available",desc:"No permissions data is available for the current selection."}))]),e(hs,{open:t(i),"onUpdate:open":r[0]||(r[0]=E=>ze(i)?i.value=E:null),mode:t(q),roleName:t(d),permission:t(F),loading:t(P),onConfirm:ne},null,8,["open","mode","roleName","permission","loading"])])}}});export{et as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{S as t}from"./
|
|
1
|
+
import{S as t}from"./DbehhcO7.js";import{h as a}from"./DOuNj3Jn.js";const s=o=>t.of([{key:"Mod-s",mac:"Cmd-s",preventDefault:!0,run:r=>a(r,o)}]);export{s};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as g,ak as A,aj as E,r as P,aa as N,k as c,o as y,w as f,E as v,g as e,bW as R,a4 as I,bX as $,a0 as w,bY as M,f as h,bZ as z,b_ as T,p as q,b$ as K,c0 as L,bJ as B,c1 as j,bf as C,al as S,ap as U,a1 as W,a2 as x,c2 as V,an as G,ab as F,q as H,c3 as J,c as X,j as Y}from"./C6teO48Y.js";const[b,Z]=N("PopoverRoot");var Q=g({__name:"PopoverRoot",props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},modal:{type:Boolean,required:!1,default:!1}},emits:["update:open"],setup(n,{emit:u}){const t=n,a=u,{modal:s}=A(t),r=E(t,"open",a,{defaultValue:t.defaultOpen,passive:t.open===void 0}),i=P(),p=P(!1);return Z({contentId:"",triggerId:"",modal:s,open:r,onOpenChange:o=>{r.value=o},onOpenToggle:()=>{r.value=!r.value},triggerElement:i,hasCustomAnchor:p}),(o,l)=>(y(),c(e(R),null,{default:f(()=>[v(o.$slots,"default",{open:e(r),close:()=>r.value=!1})]),_:3}))}}),ee=Q,te=g({__name:"PopoverContentImpl",props:{trapFocus:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(n,{emit:u}){const t=n,a=u,s=I($(t,"trapFocus","disableOutsidePointerEvents")),{forwardRef:r}=w(),i=b();return M(),(p,o)=>(y(),c(e(K),{"as-child":"",loop:"",trapped:p.trapFocus,onMountAutoFocus:o[5]||(o[5]=l=>a("openAutoFocus",l)),onUnmountAutoFocus:o[6]||(o[6]=l=>a("closeAutoFocus",l))},{default:f(()=>[h(e(z),{"as-child":"","disable-outside-pointer-events":p.disableOutsidePointerEvents,onPointerDownOutside:o[0]||(o[0]=l=>a("pointerDownOutside",l)),onInteractOutside:o[1]||(o[1]=l=>a("interactOutside",l)),onEscapeKeyDown:o[2]||(o[2]=l=>a("escapeKeyDown",l)),onFocusOutside:o[3]||(o[3]=l=>a("focusOutside",l)),onDismiss:o[4]||(o[4]=l=>e(i).onOpenChange(!1))},{default:f(()=>[h(e(T),q(e(s),{id:e(i).contentId,ref:e(r),"data-state":e(i).open.value?"open":"closed","aria-labelledby":e(i).triggerId,style:{"--reka-popover-content-transform-origin":"var(--reka-popper-transform-origin)","--reka-popover-content-available-width":"var(--reka-popper-available-width)","--reka-popover-content-available-height":"var(--reka-popper-available-height)","--reka-popover-trigger-width":"var(--reka-popper-anchor-width)","--reka-popover-trigger-height":"var(--reka-popper-anchor-height)"},role:"dialog"}),{default:f(()=>[v(p.$slots,"default")]),_:3},16,["id","data-state","aria-labelledby"])]),_:3},8,["disable-outside-pointer-events"])]),_:3},8,["trapped"]))}}),k=te,oe=g({__name:"PopoverContentModal",props:{side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(n,{emit:u}){const t=n,a=u,s=b(),r=P(!1);L(!0);const i=B(t,a),{forwardRef:p,currentElement:o}=w();return j(o),(l,d)=>(y(),c(k,q(e(i),{ref:e(p),"trap-focus":e(s).open.value,"disable-outside-pointer-events":"",onCloseAutoFocus:d[0]||(d[0]=C(m=>{var _;a("closeAutoFocus",m),r.value||(_=e(s).triggerElement.value)==null||_.focus()},["prevent"])),onPointerDownOutside:d[1]||(d[1]=m=>{a("pointerDownOutside",m);const _=m.detail.originalEvent,O=_.button===0&&_.ctrlKey===!0,D=_.button===2||O;r.value=D}),onFocusOutside:d[2]||(d[2]=C(()=>{},["prevent"]))}),{default:f(()=>[v(l.$slots,"default")]),_:3},16,["trap-focus"]))}}),re=oe,ae=g({__name:"PopoverContentNonModal",props:{side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(n,{emit:u}){const t=n,a=u,s=b(),r=P(!1),i=P(!1),p=B(t,a);return(o,l)=>(y(),c(k,q(e(p),{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:l[0]||(l[0]=d=>{var m;a("closeAutoFocus",d),d.defaultPrevented||(r.value||(m=e(s).triggerElement.value)==null||m.focus(),d.preventDefault()),r.value=!1,i.value=!1}),onInteractOutside:l[1]||(l[1]=async d=>{var O;a("interactOutside",d),d.defaultPrevented||(r.value=!0,d.detail.originalEvent.type==="pointerdown"&&(i.value=!0));const m=d.target;((O=e(s).triggerElement.value)==null?void 0:O.contains(m))&&d.preventDefault(),d.detail.originalEvent.type==="focusin"&&i.value&&d.preventDefault()})}),{default:f(()=>[v(o.$slots,"default")]),_:3},16))}}),se=ae,ie=g({__name:"PopoverContent",props:{forceMount:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(n,{emit:u}){const t=n,a=u,s=b(),r=B(t,a),{forwardRef:i}=w();return s.contentId||(s.contentId=S(void 0,"reka-popover-content")),(p,o)=>(y(),c(e(U),{present:p.forceMount||e(s).open.value},{default:f(()=>[e(s).modal.value?(y(),c(re,q({key:0},e(r),{ref:e(i)}),{default:f(()=>[v(p.$slots,"default")]),_:3},16)):(y(),c(se,q({key:1},e(r),{ref:e(i)}),{default:f(()=>[v(p.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),le=ie,ne=g({__name:"PopoverPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(n){const u=n;return(t,a)=>(y(),c(e(V),W(x(u)),{default:f(()=>[v(t.$slots,"default")]),_:3},16))}}),ue=ne,de=g({__name:"PopoverTrigger",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(n){const u=n,t=b(),{forwardRef:a,currentElement:s}=w();return t.triggerId||(t.triggerId=S(void 0,"reka-popover-trigger")),G(()=>{t.triggerElement.value=s.value}),(r,i)=>(y(),c(H(e(t).hasCustomAnchor.value?e(F):e(J)),{"as-child":""},{default:f(()=>[h(e(F),{id:e(t).triggerId,ref:e(a),type:r.as==="button"?"button":void 0,"aria-haspopup":"dialog","aria-expanded":e(t).open.value,"aria-controls":e(t).contentId,"data-state":e(t).open.value?"open":"closed",as:r.as,"as-child":u.asChild,onClick:e(t).onOpenToggle},{default:f(()=>[v(r.$slots,"default")]),_:3},8,["id","type","aria-expanded","aria-controls","data-state","as","as-child","onClick"])]),_:3}))}}),pe=de;const ce=g({__name:"Popover",props:{defaultOpen:{type:Boolean},open:{type:Boolean},modal:{type:Boolean}},emits:["update:open"],setup(n,{emit:u}){const s=B(n,u);return(r,i)=>(y(),c(e(ee),q({"data-slot":"popover"},e(s)),{default:f(()=>[v(r.$slots,"default")]),_:3},16))}}),ye=g({inheritAttrs:!1,__name:"PopoverContent",props:{forceMount:{type:Boolean},side:{},sideOffset:{default:4},sideFlip:{type:Boolean},align:{default:"center"},alignOffset:{},alignFlip:{type:Boolean},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},hideShiftedArrow:{type:Boolean},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},reference:{},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean},class:{},restoreFocus:{type:Boolean,default:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(n,{emit:u}){const t=n,a=u,s=X(()=>{const{class:i,restoreFocus:p,...o}=t;return o}),r=B(s,a);return(i,p)=>(y(),c(e(ue),null,{default:f(()=>[h(e(le),q({"data-slot":"popover-content"},{...e(r),...i.$attrs},{onCloseAutoFocus:p[0]||(p[0]=o=>!t.restoreFocus&&o.preventDefault()),class:e(Y)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 rounded-md border p-4 shadow-md origin-(--reka-popover-content-transform-origin) outline-hidden",t.class)}),{default:f(()=>[v(i.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),ve=g({__name:"PopoverTrigger",props:{asChild:{type:Boolean},as:{}},setup(n){const u=n;return(t,a)=>(y(),c(e(pe),q({"data-slot":"popover-trigger"},u),{default:f(()=>[v(t.$slots,"default")]),_:3},16))}});export{ce as _,ve as a,ye as b};
|
|
1
|
+
import{d as g,ak as A,aj as E,r as P,aa as N,q as c,o as y,w as f,E as v,u as e,bW as R,a4 as I,bX as $,a0 as w,bY as M,a as h,bZ as z,b_ as T,s as q,b$ as K,c0 as L,bJ as B,c1 as j,bf as C,al as S,ap as U,a1 as W,a2 as x,c2 as V,an as G,ab as F,v as H,c3 as J,i as X,p as Y}from"./DbehhcO7.js";const[b,Z]=N("PopoverRoot");var Q=g({__name:"PopoverRoot",props:{defaultOpen:{type:Boolean,required:!1,default:!1},open:{type:Boolean,required:!1,default:void 0},modal:{type:Boolean,required:!1,default:!1}},emits:["update:open"],setup(n,{emit:u}){const t=n,a=u,{modal:s}=A(t),r=E(t,"open",a,{defaultValue:t.defaultOpen,passive:t.open===void 0}),i=P(),p=P(!1);return Z({contentId:"",triggerId:"",modal:s,open:r,onOpenChange:o=>{r.value=o},onOpenToggle:()=>{r.value=!r.value},triggerElement:i,hasCustomAnchor:p}),(o,l)=>(y(),c(e(R),null,{default:f(()=>[v(o.$slots,"default",{open:e(r),close:()=>r.value=!1})]),_:3}))}}),ee=Q,te=g({__name:"PopoverContentImpl",props:{trapFocus:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(n,{emit:u}){const t=n,a=u,s=I($(t,"trapFocus","disableOutsidePointerEvents")),{forwardRef:r}=w(),i=b();return M(),(p,o)=>(y(),c(e(K),{"as-child":"",loop:"",trapped:p.trapFocus,onMountAutoFocus:o[5]||(o[5]=l=>a("openAutoFocus",l)),onUnmountAutoFocus:o[6]||(o[6]=l=>a("closeAutoFocus",l))},{default:f(()=>[h(e(z),{"as-child":"","disable-outside-pointer-events":p.disableOutsidePointerEvents,onPointerDownOutside:o[0]||(o[0]=l=>a("pointerDownOutside",l)),onInteractOutside:o[1]||(o[1]=l=>a("interactOutside",l)),onEscapeKeyDown:o[2]||(o[2]=l=>a("escapeKeyDown",l)),onFocusOutside:o[3]||(o[3]=l=>a("focusOutside",l)),onDismiss:o[4]||(o[4]=l=>e(i).onOpenChange(!1))},{default:f(()=>[h(e(T),q(e(s),{id:e(i).contentId,ref:e(r),"data-state":e(i).open.value?"open":"closed","aria-labelledby":e(i).triggerId,style:{"--reka-popover-content-transform-origin":"var(--reka-popper-transform-origin)","--reka-popover-content-available-width":"var(--reka-popper-available-width)","--reka-popover-content-available-height":"var(--reka-popper-available-height)","--reka-popover-trigger-width":"var(--reka-popper-anchor-width)","--reka-popover-trigger-height":"var(--reka-popper-anchor-height)"},role:"dialog"}),{default:f(()=>[v(p.$slots,"default")]),_:3},16,["id","data-state","aria-labelledby"])]),_:3},8,["disable-outside-pointer-events"])]),_:3},8,["trapped"]))}}),k=te,oe=g({__name:"PopoverContentModal",props:{side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(n,{emit:u}){const t=n,a=u,s=b(),r=P(!1);L(!0);const i=B(t,a),{forwardRef:p,currentElement:o}=w();return j(o),(l,d)=>(y(),c(k,q(e(i),{ref:e(p),"trap-focus":e(s).open.value,"disable-outside-pointer-events":"",onCloseAutoFocus:d[0]||(d[0]=C(m=>{var _;a("closeAutoFocus",m),r.value||(_=e(s).triggerElement.value)==null||_.focus()},["prevent"])),onPointerDownOutside:d[1]||(d[1]=m=>{a("pointerDownOutside",m);const _=m.detail.originalEvent,O=_.button===0&&_.ctrlKey===!0,D=_.button===2||O;r.value=D}),onFocusOutside:d[2]||(d[2]=C(()=>{},["prevent"]))}),{default:f(()=>[v(l.$slots,"default")]),_:3},16,["trap-focus"]))}}),re=oe,ae=g({__name:"PopoverContentNonModal",props:{side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(n,{emit:u}){const t=n,a=u,s=b(),r=P(!1),i=P(!1),p=B(t,a);return(o,l)=>(y(),c(k,q(e(p),{"trap-focus":!1,"disable-outside-pointer-events":!1,onCloseAutoFocus:l[0]||(l[0]=d=>{var m;a("closeAutoFocus",d),d.defaultPrevented||(r.value||(m=e(s).triggerElement.value)==null||m.focus(),d.preventDefault()),r.value=!1,i.value=!1}),onInteractOutside:l[1]||(l[1]=async d=>{var O;a("interactOutside",d),d.defaultPrevented||(r.value=!0,d.detail.originalEvent.type==="pointerdown"&&(i.value=!0));const m=d.target;((O=e(s).triggerElement.value)==null?void 0:O.contains(m))&&d.preventDefault(),d.detail.originalEvent.type==="focusin"&&i.value&&d.preventDefault()})}),{default:f(()=>[v(o.$slots,"default")]),_:3},16))}}),se=ae,ie=g({__name:"PopoverContent",props:{forceMount:{type:Boolean,required:!1},side:{type:null,required:!1},sideOffset:{type:Number,required:!1},sideFlip:{type:Boolean,required:!1},align:{type:null,required:!1},alignOffset:{type:Number,required:!1},alignFlip:{type:Boolean,required:!1},avoidCollisions:{type:Boolean,required:!1},collisionBoundary:{type:null,required:!1},collisionPadding:{type:[Number,Object],required:!1},arrowPadding:{type:Number,required:!1},hideShiftedArrow:{type:Boolean,required:!1},sticky:{type:String,required:!1},hideWhenDetached:{type:Boolean,required:!1},positionStrategy:{type:String,required:!1},updatePositionStrategy:{type:String,required:!1},disableUpdateOnLayoutShift:{type:Boolean,required:!1},prioritizePosition:{type:Boolean,required:!1},reference:{type:null,required:!1},asChild:{type:Boolean,required:!1},as:{type:null,required:!1},disableOutsidePointerEvents:{type:Boolean,required:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(n,{emit:u}){const t=n,a=u,s=b(),r=B(t,a),{forwardRef:i}=w();return s.contentId||(s.contentId=S(void 0,"reka-popover-content")),(p,o)=>(y(),c(e(U),{present:p.forceMount||e(s).open.value},{default:f(()=>[e(s).modal.value?(y(),c(re,q({key:0},e(r),{ref:e(i)}),{default:f(()=>[v(p.$slots,"default")]),_:3},16)):(y(),c(se,q({key:1},e(r),{ref:e(i)}),{default:f(()=>[v(p.$slots,"default")]),_:3},16))]),_:3},8,["present"]))}}),le=ie,ne=g({__name:"PopoverPortal",props:{to:{type:null,required:!1},disabled:{type:Boolean,required:!1},defer:{type:Boolean,required:!1},forceMount:{type:Boolean,required:!1}},setup(n){const u=n;return(t,a)=>(y(),c(e(V),W(x(u)),{default:f(()=>[v(t.$slots,"default")]),_:3},16))}}),ue=ne,de=g({__name:"PopoverTrigger",props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:"button"}},setup(n){const u=n,t=b(),{forwardRef:a,currentElement:s}=w();return t.triggerId||(t.triggerId=S(void 0,"reka-popover-trigger")),G(()=>{t.triggerElement.value=s.value}),(r,i)=>(y(),c(H(e(t).hasCustomAnchor.value?e(F):e(J)),{"as-child":""},{default:f(()=>[h(e(F),{id:e(t).triggerId,ref:e(a),type:r.as==="button"?"button":void 0,"aria-haspopup":"dialog","aria-expanded":e(t).open.value,"aria-controls":e(t).contentId,"data-state":e(t).open.value?"open":"closed",as:r.as,"as-child":u.asChild,onClick:e(t).onOpenToggle},{default:f(()=>[v(r.$slots,"default")]),_:3},8,["id","type","aria-expanded","aria-controls","data-state","as","as-child","onClick"])]),_:3}))}}),pe=de;const ce=g({__name:"Popover",props:{defaultOpen:{type:Boolean},open:{type:Boolean},modal:{type:Boolean}},emits:["update:open"],setup(n,{emit:u}){const s=B(n,u);return(r,i)=>(y(),c(e(ee),q({"data-slot":"popover"},e(s)),{default:f(()=>[v(r.$slots,"default")]),_:3},16))}}),ye=g({inheritAttrs:!1,__name:"PopoverContent",props:{forceMount:{type:Boolean},side:{},sideOffset:{default:4},sideFlip:{type:Boolean},align:{default:"center"},alignOffset:{},alignFlip:{type:Boolean},avoidCollisions:{type:Boolean},collisionBoundary:{},collisionPadding:{},arrowPadding:{},hideShiftedArrow:{type:Boolean},sticky:{},hideWhenDetached:{type:Boolean},positionStrategy:{},updatePositionStrategy:{},disableUpdateOnLayoutShift:{type:Boolean},prioritizePosition:{type:Boolean},reference:{},asChild:{type:Boolean},as:{},disableOutsidePointerEvents:{type:Boolean},class:{},restoreFocus:{type:Boolean,default:!1}},emits:["escapeKeyDown","pointerDownOutside","focusOutside","interactOutside","openAutoFocus","closeAutoFocus"],setup(n,{emit:u}){const t=n,a=u,s=X(()=>{const{class:i,restoreFocus:p,...o}=t;return o}),r=B(s,a);return(i,p)=>(y(),c(e(ue),null,{default:f(()=>[h(e(le),q({"data-slot":"popover-content"},{...e(r),...i.$attrs},{onCloseAutoFocus:p[0]||(p[0]=o=>!t.restoreFocus&&o.preventDefault()),class:e(Y)("bg-popover text-popover-foreground data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-72 rounded-md border p-4 shadow-md origin-(--reka-popover-content-transform-origin) outline-hidden",t.class)}),{default:f(()=>[v(i.$slots,"default")]),_:3},16,["class"])]),_:3}))}}),ve=g({__name:"PopoverTrigger",props:{asChild:{type:Boolean},as:{}},setup(n){const u=n;return(t,a)=>(y(),c(e(pe),q({"data-slot":"popover-trigger"},u),{default:f(()=>[v(t.$slots,"default")]),_:3},16))}});export{ce as _,ve as a,ye as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as e}from"./BFOjhnLA.js";import{d as r,Z as m,i as n,q as c,u as o,o as p}from"./DbehhcO7.js";import"./9Skr9Ccw.js";import"./CxFAImHj.js";import"./DxMpy-ot.js";import"./agpUpIJe.js";import"./DqunUhPG.js";import"./DL1qmlP8.js";import"./BKh6DDUh.js";import"./BJMwGHo7.js";import"./DBku6oAz.js";const R=r({__name:"[name]",setup(s){const t=m(),i=n(()=>t.params.connectionId),a=n(()=>t.params.name);return(u,_)=>(p(),c(o(e),{"connection-id":o(i),"initial-tab":o(a)},null,8,["connection-id","initial-tab"]))}});export{R as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as i,d as l,n as d,j as o}from"./
|
|
1
|
+
import{_ as i,d as l,n as d,j as o}from"./ndyknmtb.js";var x=i((r,t)=>{const e=r.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx&&e.attr("rx",t.rx),t.ry&&e.attr("ry",t.ry),t.attrs!==void 0)for(const s in t.attrs)e.attr(s,t.attrs[s]);return t.class&&e.attr("class",t.class),e},"drawRect"),p=i((r,t)=>{const e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};x(r,e).lower()},"drawBackgroundRect"),y=i((r,t)=>{const e=t.text.replace(d," "),s=r.append("text");s.attr("x",t.x),s.attr("y",t.y),s.attr("class","legend"),s.style("text-anchor",t.anchor),t.class&&s.attr("class",t.class);const a=s.append("tspan");return a.attr("x",t.x+t.textMargin*2),a.text(e),s},"drawText"),m=i((r,t,e,s)=>{const a=r.append("image");a.attr("x",t),a.attr("y",e);const n=o.sanitizeUrl(s);a.attr("xlink:href",n)},"drawImage"),g=i((r,t,e,s)=>{const a=r.append("use");a.attr("x",t),a.attr("y",e);const n=o.sanitizeUrl(s);a.attr("xlink:href",`#${n}`)},"drawEmbeddedImage"),h=i(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),f=i(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj"),w=i(()=>{let r=l(".mermaidTooltip");return r.empty()&&(r=l("body").append("div").attr("class","mermaidTooltip").style("opacity",0).style("position","absolute").style("text-align","center").style("max-width","200px").style("padding","2px").style("font-size","12px").style("background","#ffffde").style("border","1px solid #333").style("border-radius","2px").style("pointer-events","none").style("z-index","100")),r},"createTooltip");export{p as a,f as b,w as c,x as d,g as e,m as f,h as g,y as h};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{by as w1,fl as bx,fm as Dl,fn as x1,fo as yx,fp as cm,fq as jx,fr as wx,ag as xx,fs as Ai,S as um,b0 as Ul,ew as kx,ft as _x,fu as Sx,fv as $x,fw as Cx,fx as Ex,fy as Ox,fz as Px,fA as Tx,fB as Mx,fC as Ax,fD as Nx,fE as Rx,fF as Ix,fG as qx,fH as zx,e7 as Ni,ev as Dx,fI as Ux,fJ as Lx,fK as Fx,fL as Bx,fM as Vx,fN as Wx,fO as Hx,fP as Kx,fQ as Jx,fR as Gx,fS as Qx,fT as dm,fU as Yx,fV as Lf,fW as fm,ex as Xx,fX as Zx,fY as e2,fZ as t2,f_ as n2,f$ as r2,g0 as o2,g1 as a2,d as s2,aJ as i2,r as Ff,aC as l2,
|
|
1
|
+
import{by as w1,fl as bx,fm as Dl,fn as x1,fo as yx,fp as cm,fq as jx,fr as wx,ag as xx,fs as Ai,S as um,b0 as Ul,ew as kx,ft as _x,fu as Sx,fv as $x,fw as Cx,fx as Ex,fy as Ox,fz as Px,fA as Tx,fB as Mx,fC as Ax,fD as Nx,fE as Rx,fF as Ix,fG as qx,fH as zx,e7 as Ni,ev as Dx,fI as Ux,fJ as Lx,fK as Fx,fL as Bx,fM as Vx,fN as Wx,fO as Hx,fP as Kx,fQ as Jx,fR as Gx,fS as Qx,fT as dm,fU as Yx,fV as Lf,fW as fm,ex as Xx,fX as Zx,fY as e2,fZ as t2,f_ as n2,f$ as r2,g0 as o2,g1 as a2,d as s2,aJ as i2,r as Ff,aC as l2,i as vm,ar as c2,aD as u2,an as d2,am as Bf,u as f2}from"./DbehhcO7.js";function mr(e){return Array.isArray(e)}function _r(e){return e!==null&&typeof e=="object"&&(e.constructor===void 0||e.constructor.name==="Object")}function k1(e){return e&&typeof e=="object"?e.op==="add":!1}function _1(e){return e&&typeof e=="object"?e.op==="remove":!1}function Kp(e){return e&&typeof e=="object"?e.op==="replace":!1}function Lv(e){return e&&typeof e=="object"?e.op==="copy":!1}function si(e){return e&&typeof e=="object"?e.op==="move":!1}function v2(e,t){return JSON.stringify(e)===JSON.stringify(t)}function p2(e,t){return e===t}function S1(e){return e.slice(0,e.length-1)}function h2(e){return e[e.length-1]}function m2(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:p2;if(e.length<t.length)return!1;for(let r=0;r<t.length;r++)if(!n(e[r],t[r]))return!1;return!0}function $1(e){return typeof e=="object"&&e!==null}function Jp(e){if(mr(e)){const t=e.slice();return Object.getOwnPropertySymbols(e).forEach(n=>{t[n]=e[n]}),t}if(_r(e)){const t={...e};return Object.getOwnPropertySymbols(e).forEach(n=>{t[n]=e[n]}),t}return e}function Gp(e,t,n){if(e[t]===n)return e;const r=Jp(e);return r[t]=n,r}function et(e,t){let n=e,r=0;for(;r<t.length;)_r(n)?n=n[t[r]]:mr(n)?n=n[Number.parseInt(t[r])]:n=void 0,r++;return n}function bo(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(t.length===0)return n;const s=t[0],a=bo(e?e[s]:void 0,t.slice(1),n,r);if(_r(e)||mr(e))return Gp(e,s,a);if(r){const i=g2.test(s)?[]:{};return i[s]=a,i}throw new Error("Path does not exist")}const g2=/^\d+$/;function Qp(e,t,n){if(t.length===0)return n(e);if(!$1(e))throw new Error("Path doesn't exist");const r=t[0],s=Qp(e[r],t.slice(1),n);return Gp(e,r,s)}function of(e,t){if(t.length===0)return e;if(!$1(e))throw new Error("Path does not exist");if(t.length===1){const s=t[0];if(!(s in e))return e;const a=Jp(e);return mr(a)&&a.splice(Number.parseInt(s),1),_r(a)&&delete a[s],a}const n=t[0],r=of(e[n],t.slice(1));return Gp(e,n,r)}function Yp(e,t,n){const r=t.slice(0,t.length-1),s=t[t.length-1];return Qp(e,r,a=>{if(!Array.isArray(a))throw new TypeError(`Array expected at path ${JSON.stringify(r)}`);const i=Jp(a);return i.splice(Number.parseInt(s),0,n),i})}function _o(e,t){return e===void 0?!1:t.length===0?!0:e===null?!1:_o(e[t[0]],t.slice(1))}function So(e){const t=e.split("/");return t.shift(),t.map(n=>n.replace(/~1/g,"/").replace(/~0/g,"~"))}function gt(e){return e.map(C1).join("")}function C1(e){return`/${String(e).replace(/~/g,"~0").replace(/\//g,"~1")}`}function nu(e,t){return e+C1(t)}function na(e,t,n){let r=e;for(let s=0;s<t.length;s++){S2(t[s]);let a=t[s];if(n!=null&&n.before){const c=n.before(r,a);if(c!==void 0){if(c.document!==void 0&&(r=c.document),c.json!==void 0)throw new Error('Deprecation warning: returned object property ".json" has been renamed to ".document"');c.operation!==void 0&&(a=c.operation)}}const i=r,l=ra(r,a.path);if(a.op==="add")r=j2(r,l,a.value);else if(a.op==="remove")r=y2(r,l);else if(a.op==="replace")r=b2(r,l,a.value);else if(a.op==="copy")r=w2(r,l,Fv(a.from));else if(a.op==="move")r=x2(r,l,Fv(a.from));else if(a.op==="test")k2(r,l,a.value);else throw new Error(`Unknown JSONPatch operation ${JSON.stringify(a)}`);if(n!=null&&n.after){const c=n.after(r,a,i);c!==void 0&&(r=c)}}return r}function b2(e,t,n){return _o(e,t)?bo(e,t,n):e}function y2(e,t){return of(e,t)}function j2(e,t,n){return Ic(e,t)?Yp(e,t,n):bo(e,t,n)}function w2(e,t,n){const r=et(e,n);return Ic(e,t)?Yp(e,t,r):bo(e,t,r)}function x2(e,t,n){const r=et(e,n),s=of(e,n);return Ic(s,t)?Yp(s,t,r):bo(s,t,r)}function k2(e,t,n){if(n===void 0)throw new Error(`Test failed: no value provided (path: "${gt(t)}")`);if(!_o(e,t))throw new Error(`Test failed: path not found (path: "${gt(t)}")`);const r=et(e,t);if(!v2(r,n))throw new Error(`Test failed, value differs (path: "${gt(t)}")`)}function Ic(e,t){if(t.length===0)return!1;const n=et(e,S1(t));return Array.isArray(n)}function _2(e,t){if(h2(t)!=="-")return t;const n=S1(t),r=et(e,n);return n.concat(r.length)}function S2(e){if(!["add","remove","replace","copy","move","test"].includes(e.op))throw new Error(`Unknown JSONPatch op ${JSON.stringify(e.op)}`);if(typeof e.path!="string")throw new Error(`Required property "path" missing or not a string in operation ${JSON.stringify(e)}`);if((e.op==="copy"||e.op==="move")&&typeof e.from!="string")throw new Error(`Required property "from" missing or not a string in operation ${JSON.stringify(e)}`)}function ra(e,t){return _2(e,So(t))}function Fv(e){return So(e)}function E1(e,t,n){let r=[];return na(e,t,{before:(a,i)=>{let l;const c=ra(a,i.path);if(i.op==="add")l=T1(a,c);else if(i.op==="remove")l=P1(a,c);else if(i.op==="replace")l=O1(a,c);else if(i.op==="copy")l=$2(a,c);else if(i.op==="move")l=C2(a,c,Fv(i.from));else if(i.op==="test")l=[];else throw new Error(`Unknown JSONPatch operation ${JSON.stringify(i)}`);let d;if(n!=null&&n.before){const u=n.before(a,i,l);if(u!=null&&u.revertOperations&&(l=u.revertOperations),u!=null&&u.document&&(d=u.document),u!=null&&u.json)throw new Error('Deprecation warning: returned object property ".json" has been renamed to ".document"')}if(r=l.concat(r),d!==void 0)return{document:d}}}),r}function O1(e,t){return _o(e,t)?[{op:"replace",path:gt(t),value:et(e,t)}]:[]}function P1(e,t){return[{op:"add",path:gt(t),value:et(e,t)}]}function T1(e,t){return Ic(e,t)||!_o(e,t)?[{op:"remove",path:gt(t)}]:O1(e,t)}function $2(e,t){return T1(e,t)}function C2(e,t,n){if(t.length<n.length&&m2(n,t))return[{op:"replace",path:gt(t),value:e}];const r={op:"move",from:gt(t),path:gt(n)};return!Ic(e,t)&&_o(e,t)?[r,...P1(e,t)]:[r]}var ru={},pm;function E2(){if(pm)return ru;pm=1;var e={b:"\b",f:"\f",n:`
|
|
2
2
|
`,r:"\r",t:" ",'"':'"',"/":"/","\\":"\\"},t=97;ru.parse=function(h,j,p){var b={},g=0,w=0,x=0,m=p&&p.bigint&&typeof BigInt<"u";return{data:k("",!0),pointers:b};function k(R,S){E();var T;Me(R,"value");var re=G();switch(re){case"t":L("rue"),T=!0;break;case"f":L("alse"),T=!1;break;case"n":L("ull"),T=null;break;case'"':T=A();break;case"[":T=B(R);break;case"{":T=V(R);break;default:je(),"-0123456789".indexOf(re)>=0?T=M():W()}return Me(R,"valueEnd"),E(),S&&x<h.length&&W(),T}function E(){e:for(;x<h.length;){switch(h[x]){case" ":w++;break;case" ":w+=4;break;case"\r":w=0;break;case`
|
|
3
3
|
`:w=0,g++;break;default:break e}x++}}function A(){for(var R="",S;S=G(),S!='"';)S=="\\"?(S=G(),S in e?R+=e[S]:S=="u"?R+=ce():F()):R+=S;return R}function M(){var R="",S=!0;h[x]=="-"&&(R+=G()),R+=h[x]=="0"?G():Te(),h[x]=="."&&(R+=G()+Te(),S=!1),(h[x]=="e"||h[x]=="E")&&(R+=G(),(h[x]=="+"||h[x]=="-")&&(R+=G()),R+=Te(),S=!1);var T=+R;return m&&S&&(T>Number.MAX_SAFE_INTEGER||T<Number.MIN_SAFE_INTEGER)?BigInt(R):T}function B(R){E();var S=[],T=0;if(G()=="]")return S;for(je();;){var re=R+"/"+T;S.push(k(re)),E();var Se=G();if(Se=="]")break;Se!=","&&F(),E(),T++}return S}function V(R){E();var S={};if(G()=="}")return S;for(je();;){var T=ne();G()!='"'&&F();var re=A(),Se=R+"/"+f(re);de(Se,"key",T),Me(Se,"keyEnd"),E(),G()!=":"&&F(),E(),S[re]=k(Se),E();var oe=G();if(oe=="}")break;oe!=","&&F(),E()}return S}function L(R){for(var S=0;S<R.length;S++)G()!==R[S]&&F()}function G(){le();var R=h[x];return x++,w++,R}function je(){x--,w--}function ce(){for(var R=4,S=0;R--;){S<<=4;var T=G().toLowerCase();T>="a"&&T<="f"?S+=T.charCodeAt()-t+10:T>="0"&&T<="9"?S+=+T:F()}return String.fromCharCode(S)}function Te(){for(var R="";h[x]>="0"&&h[x]<="9";)R+=G();if(R.length)return R;le(),W()}function Me(R,S){de(R,S,ne())}function de(R,S,T){b[R]=b[R]||{},b[R][S]=T}function ne(){return{line:g,column:w,pos:x}}function W(){throw new SyntaxError("Unexpected token "+h[x]+" in JSON at position "+x)}function F(){je(),W()}function le(){if(x>=h.length)throw new SyntaxError("Unexpected end of JSON input")}},ru.stringify=function(h,j,p){if(!r(h))return;var b=0,g,w,x=typeof p=="object"?p.space:p;switch(typeof x){case"number":var m=x>10?10:x<0?0:Math.floor(x);x=m&&de(m," "),g=m,w=m;break;case"string":x=x.slice(0,10),g=0,w=0;for(var k=0;k<x.length;k++){var E=x[k];switch(E){case" ":w++;break;case" ":w+=4;break;case"\r":w=0;break;case`
|
|
4
4
|
`:w=0,b++;break;default:throw new Error("whitespace characters not allowed in JSON")}g++}break;default:x=void 0}var A="",M={},B=0,V=0,L=0,G=p&&p.es6&&typeof Map=="function";return je(h,0,""),{json:A,pointers:M};function je(ne,W,F){switch(Me(F,"value"),typeof ne){case"number":case"bigint":case"boolean":ce(""+ne);break;case"string":ce(u(ne));break;case"object":ne===null?ce("null"):typeof ne.toJSON=="function"?ce(u(ne.toJSON())):Array.isArray(ne)?le():G?ne.constructor.BYTES_PER_ELEMENT?le():ne instanceof Map?S():ne instanceof Set?S(!0):R():R()}Me(F,"valueEnd");function le(){if(ne.length){ce("[");for(var T=W+1,re=0;re<ne.length;re++){re&&ce(","),Te(T);var Se=r(ne[re])?ne[re]:null,oe=F+"/"+re;je(Se,T,oe)}Te(W),ce("]")}else ce("[]")}function R(){var T=Object.keys(ne);if(T.length){ce("{");for(var re=W+1,Se=0;Se<T.length;Se++){var oe=T[Se],Y=ne[oe];if(r(Y)){Se&&ce(",");var ye=F+"/"+f(oe);Te(re),Me(ye,"key"),ce(u(oe)),Me(ye,"keyEnd"),ce(":"),x&&ce(" "),je(Y,re,ye)}}Te(W),ce("}")}else ce("{}")}function S(T){if(ne.size){ce("{");for(var re=W+1,Se=!0,oe=ne.entries(),Y=oe.next();!Y.done;){var ye=Y.value,P=ye[0],z=T?!0:ye[1];if(r(z)){Se||ce(","),Se=!1;var D=F+"/"+f(P);Te(re),Me(D,"key"),ce(u(P)),Me(D,"keyEnd"),ce(":"),x&&ce(" "),je(z,re,D)}Y=oe.next()}Te(W),ce("}")}else ce("{}")}}function ce(ne){V+=ne.length,L+=ne.length,A+=ne}function Te(ne){if(x){for(A+=`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as L,r as x,
|
|
1
|
+
import{d as L,r as x,g as G,h as H,i as T,j as J,c as a,F as f,a as l,u as o,k as K,l as Q,w as u,o as s,m as W,n as X,p as Y,q as c,b as r,e as _,s as $,v as A,t as b,x as v,y as D,z as Z,A as ee,f as ne,_ as te,B as se,C as oe}from"./DbehhcO7.js";import{i as ae,a as M,g as ie}from"./9Skr9Ccw.js";import{_ as le}from"./DvTZ16yM.js";const ce={key:0,class:"flex items-center gap-2 truncate"},re={class:"truncate"},de={key:1,class:"flex flex-shrink-0 items-center gap-1 overflow-hidden"},ue={key:1,class:"opacity-50"},pe={class:"flex items-center gap-2 w-full"},me={class:"truncate"},fe={key:1,class:"flex items-center gap-1 ml-auto flex-shrink-0"},_e={key:2,class:"text-xs text-muted-foreground"},ke=L({__name:"PureConnectionSelector",props:{class:{},workspaceId:{},connectionId:{},disabled:{type:Boolean},connections:{},connection:{},skipStrictModeConnections:{type:Boolean}},emits:["update:connectionId"],setup(N,{emit:q}){const z=q,i=N,p=x(!1),{createConnection:E}=G(),S=H(),V=J(),g=x(!1),I=T(()=>ae(V.public.sqlite3ConnectionsEnabled)),P=e=>{E(e)},U=()=>{g.value=!0,p.value=!1},C=e=>S.getTagsByIds(e.tagIds??[]),F=e=>C(e).some(n=>n.strictMode),y=e=>!i.skipStrictModeConnections&&F(e)||M(e,I.value),O=e=>{if(i.disabled)return;const n=i.connections.find(k=>k.id===e);!n||y(n)||z("update:connectionId",e)},h=T(()=>i.connection?S.getTagsByIds(i.connection.tagIds??[]):[]),w=e=>{var n;return e?(n=ie(e.type))==null?void 0:n.icon:null},m=e=>{var n;return(n=w(e))==null?void 0:n.type},B=e=>{var n;return((n=w(e))==null?void 0:n.props)??{}};return(e,n)=>{const k=te,R=oe,j=Z;return s(),a(f,null,[l(o(le),{open:o(g),"editing-connection":null,"onUpdate:open":n[0]||(n[0]=t=>g.value=t),onAddNew:P,workspaceId:e.workspaceId},null,8,["open","workspaceId"]),l(o(K),{"onUpdate:modelValue":n[1]||(n[1]=t=>O(t)),"model-value":e.connectionId,disabled:e.disabled,open:o(p),"onUpdate:open":n[2]||(n[2]=t=>Q(p)?p.value=t:null),size:"sm"},{default:u(()=>[l(o(W),{class:X(o(Y)("cursor-pointer font-normal",i.class)),disabled:e.disabled},{default:u(()=>{var t;return[e.connection?(s(),a("div",ce,[m(e.connection)?(s(),c(A(m(e.connection)),$({key:0},B(e.connection),{class:"size-4! min-w-4!"}),null,16)):r("",!0),_("span",re,b((t=e.connection)==null?void 0:t.name),1),o(h).length?(s(),a("div",de,[(s(!0),a(f,null,v(o(h),d=>(s(),c(o(D),{key:d.id,tag:d},null,8,["tag"]))),128))])):r("",!0)])):(s(),a("div",ue,"Select connection"))]}),_:1},8,["class","disabled"]),l(j,null,{default:u(()=>[l(o(ee),null,{default:u(()=>[_("div",{class:"flex px-2 py-0.5 h-8 hover:bg-muted rounded-md font-normal text-sm items-center gap-1 cursor-pointer",onClick:U},[l(k,{name:"lucide:plus"}),n[3]||(n[3]=ne(" Add new connection "))]),e.connections.length?(s(),c(R,{key:0})):r("",!0),(s(!0),a(f,null,v(e.connections,t=>(s(),c(o(se),{class:"cursor-pointer",value:t.id,disabled:y(t)},{default:u(()=>[_("div",pe,[m(t)?(s(),c(A(m(t)),$({key:0,ref_for:!0},B(t),{class:"size-4!"}),null,16)):r("",!0),_("span",me,b(t.name),1),C(t).length?(s(),a("div",fe,[(s(!0),a(f,null,v(C(t),d=>(s(),c(o(D),{key:d.id,tag:d},null,8,["tag"]))),128))])):r("",!0),y(t)?(s(),a("span",_e,b(o(M)(t,o(I))?"Disabled":"Not allowed"),1)):r("",!0)])]),_:2},1032,["value","disabled"]))),256))]),_:1})]),_:1})]),_:1},8,["model-value","disabled","open"])],64)}}});export{ke as _};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as y,V as C,ac as b,ad as S,i as o,G as D,c as I,o as V,a as i,u as n,ae as E}from"./DbehhcO7.js";import{b as M,a as O,D as g,_ as B}from"./DahDvheq.js";import{b as N,a as R}from"./BVmBXPoG.js";import{u as W}from"./dDyWVWO8.js";import"./BKh6DDUh.js";import"./Ch_iEFHi.js";import"./vIV0z0PD.js";import"./CEIpXOz0.js";import"./B5rxJs06.js";import"./339BCoyy.js";const F={class:"h-full relative p-1"},j=y({__name:"ViewOverview",props:{connectionId:{}},setup(m){const u=["name","schema","type","owner","comment"],s=m,a=C(),l=b(),{schemaId:c}=S(l),d=o(()=>s.connectionId?a.connections.find(e=>e.id===s.connectionId):a.selectedConnection),r=o(()=>({...D(d.value),schema:c.value})),{data:t,status:p}=W("/api/views/overview",{method:"POST",body:r,watch:[c,r]},"$Vc52vsyWw1"),_=o(()=>{const e=t.value||[];return e.length>0?N(e):R(u)}),f=o(()=>M({columns:_.value,rows:t.value||[],columnKeyBy:"field"})),v=o(()=>O(t.value||[]));return(e,K)=>{const w=E,h=B;return V(),I("div",F,[i(w,{visible:n(p)==="pending"},null,8,["visible"]),i(h,{"column-defs":n(f),"row-data":n(v),"column-types":n(g),class:"h-full border rounded-md"},null,8,["column-defs","row-data","column-types"])])}}});export{j as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{_ as t}from"./BP-G5cXp.js";import{d as e,q as r,o as n}from"./DbehhcO7.js";import"./BS966b0P.js";import"./CBge6eLY.js";import"./339BCoyy.js";const d=e({__name:"index",setup(p){return(a,m)=>{const o=t;return n(),r(o)}}});export{d as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as l,c as s,o as t,e as a,b as o,a as c,_ as d,t as r,E as n}from"./DbehhcO7.js";const p={class:"flex flex-col gap-3 rounded-lg border bg-background p-3 lg:flex-row lg:items-start lg:justify-between"},m={class:"min-w-0 space-y-1"},_={class:"flex items-center gap-2"},f={class:"text-base font-medium"},u={key:0,class:"text-sm text-muted-foreground"},g={key:1,class:"flex flex-wrap items-center gap-1.5 text-sm text-muted-foreground"},x={key:2,class:"mt-0.5 flex flex-wrap items-center gap-1.5"},h={key:0,class:"flex flex-wrap items-center gap-2"},v=l({__name:"ToolPageHeader",props:{icon:{},title:{},description:{default:""}},setup(b){return(e,y)=>{const i=d;return t(),s("div",p,[a("div",m,[a("div",_,[c(i,{name:e.icon,class:"size-5 text-primary"},null,8,["name"]),a("h2",f,r(e.title),1)]),e.description?(t(),s("p",u,r(e.description),1)):o("",!0),e.$slots.context?(t(),s("div",g,[n(e.$slots,"context")])):o("",!0),e.$slots.badges?(t(),s("div",x,[n(e.$slots,"badges")])):o("",!0)]),e.$slots.actions?(t(),s("div",h,[n(e.$slots,"actions")])):o("",!0)])}}});export{v as _};
|