agentworkshop 0.5.1 → 0.5.2
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/.AgentWorkShop/prompts/host-tools.json +631 -0
- package/.output/.AgentWorkShop/prompts/lead-supervise.md +42 -0
- package/.output/.AgentWorkShop/prompts/mode-goal.md +26 -0
- package/.output/.AgentWorkShop/prompts/mode-loop.md +10 -0
- package/.output/.AgentWorkShop/prompts/mode-pipeline.md +16 -0
- package/.output/.AgentWorkShop/prompts/peer-lead-roster.md +3 -0
- package/.output/.AgentWorkShop/prompts/peer-message.md +14 -0
- package/.output/.AgentWorkShop/prompts/peer-reply-optional.md +2 -0
- package/.output/.AgentWorkShop/prompts/peer-reply-required.md +8 -0
- package/.output/.AgentWorkShop/prompts/scenario-default.md +11 -0
- package/.output/.AgentWorkShop/prompts/system-manual.md +18 -0
- package/.output/.AgentWorkShop/prompts/team-roster.md +9 -0
- package/.output/.AgentWorkShop/prompts/worker-workflow.md +19 -0
- package/.output/nitro.json +15 -0
- package/.output/public/_nuxt/2LwEn9gX.js +2 -0
- package/.output/public/_nuxt/36oeS8_R2.js +1 -0
- package/.output/public/_nuxt/7ZABjMRh2.js +1 -0
- package/.output/public/_nuxt/9X0fVBD7.js +57 -0
- package/.output/public/_nuxt/B-PgoIPN.js +1 -0
- package/.output/public/_nuxt/B0haAGoq.js +1 -0
- package/.output/public/_nuxt/B3__nfxM.js +1 -0
- package/.output/public/_nuxt/B4GHHF6d2.js +13 -0
- package/.output/public/_nuxt/B6M2WJWm2.js +1 -0
- package/.output/public/_nuxt/B7V9IfTL.js +1 -0
- package/.output/public/_nuxt/B9aPoQvt.js +17 -0
- package/.output/public/_nuxt/BBrRELH32.js +2 -0
- package/.output/public/_nuxt/BCipft_k2.js +1 -0
- package/.output/public/_nuxt/BDUjyaF4.js +42 -0
- package/.output/public/_nuxt/BE5QyG5J2.js +1 -0
- package/.output/public/_nuxt/BF9XPEuw.js +1 -0
- package/.output/public/_nuxt/BFYNhG9S.js +13 -0
- package/.output/public/_nuxt/BFjGV-RV2.js +4108 -0
- package/.output/public/_nuxt/BGkumHZ32.js +102 -0
- package/.output/public/_nuxt/BJvGPTpC.js +1 -0
- package/.output/public/_nuxt/BSCpFtzG.js +3 -0
- package/.output/public/_nuxt/BSSUlJnx2.js +1 -0
- package/.output/public/_nuxt/BUNGEK2z.js +18 -0
- package/.output/public/_nuxt/BUcmySDa2.js +209 -0
- package/.output/public/_nuxt/BUxYN2mw.js +1 -0
- package/.output/public/_nuxt/BbQornXa.js +1 -0
- package/.output/public/_nuxt/Bc_mM2cU.js +1 -0
- package/.output/public/_nuxt/BdKzfJiM.js +2 -0
- package/.output/public/_nuxt/BeIfu4N3.js +3 -0
- package/.output/public/_nuxt/BfGc7TJp.js +1 -0
- package/.output/public/_nuxt/Bi6AiCuP.js +1 -0
- package/.output/public/_nuxt/Bok1DRqh.js +19 -0
- package/.output/public/_nuxt/Bq_KKxCg.js +1 -0
- package/.output/public/_nuxt/BrIJiJSN.js +18 -0
- package/.output/public/_nuxt/Bsc69G4x.js +24 -0
- package/.output/public/_nuxt/Bxh5nf8j.js +1 -0
- package/.output/public/_nuxt/ByGNWgAr.js +23 -0
- package/.output/public/_nuxt/C9f8QMp12.js +1 -0
- package/.output/public/_nuxt/CE2ynNi9.js +1 -0
- package/.output/public/_nuxt/CNs_Ozdc2.js +1 -0
- package/.output/public/_nuxt/CWDzKGtj.js +1 -0
- package/.output/public/_nuxt/CWKEp1wx2.js +2 -0
- package/.output/public/_nuxt/CXLI50Sq.js +1 -0
- package/.output/public/_nuxt/C_gFA2H_2.js +1 -0
- package/.output/public/_nuxt/Ce1zyNYu.js +1 -0
- package/.output/public/_nuxt/CfIXY-ET.js +75 -0
- package/.output/public/_nuxt/ChEKFMxj.js +1 -0
- package/.output/public/_nuxt/ClptO7LA.js +1 -0
- package/.output/public/_nuxt/Cno6kYiO2.js +1 -0
- package/.output/public/_nuxt/CrFGZYVB2.js +7 -0
- package/.output/public/_nuxt/D-Ne4C9a.js +1 -0
- package/.output/public/_nuxt/D0C5Q0di.js +1 -0
- package/.output/public/_nuxt/D5KJ7_0V.js +1 -0
- package/.output/public/_nuxt/D8DDDzV62.js +1 -0
- package/.output/public/_nuxt/D95h62Jn.js +1 -0
- package/.output/public/_nuxt/DEHNjlTq2.js +1 -0
- package/.output/public/_nuxt/DEkQ0qQ02.js +1 -0
- package/.output/public/_nuxt/DIOBYJe3.js +1 -0
- package/.output/public/_nuxt/DNJSkm3Q.js +1 -0
- package/.output/public/_nuxt/DP6bdyIp.js +1 -0
- package/.output/public/_nuxt/DPDqAD1e.js +2 -0
- package/.output/public/_nuxt/DRlJ2-4p.js +1 -0
- package/.output/public/_nuxt/DRq09ZmT.js +1 -0
- package/.output/public/_nuxt/DSBfvCi5.js +19 -0
- package/.output/public/_nuxt/DVNYfGsj.js +1 -0
- package/.output/public/_nuxt/DVQAz9WI.js +3 -0
- package/.output/public/_nuxt/DXK1U43I.js +1 -0
- package/.output/public/_nuxt/DYWgGHNo.js +7 -0
- package/.output/public/_nuxt/DdPeifHR.js +3 -0
- package/.output/public/_nuxt/Dm5mD6XT.js +1 -0
- package/.output/public/_nuxt/HWXLx5Hz.js +9 -0
- package/.output/public/_nuxt/HclGiUj8.js +1 -0
- package/.output/public/_nuxt/NIM0Wglj2.js +1 -0
- package/.output/public/_nuxt/OmpTerminalPanel.Bc9GjNU5.css +1 -0
- package/.output/public/_nuxt/OwJ1LJkF.js +31 -0
- package/.output/public/_nuxt/PQLnLxYe.js +1 -0
- package/.output/public/_nuxt/RYFtK4qZ2.js +1 -0
- package/.output/public/_nuxt/R_WxTozV2.js +1 -0
- package/.output/public/_nuxt/TownView.CI2Wpzty.css +1 -0
- package/.output/public/_nuxt/W1E3-5ML.js +14 -0
- package/.output/public/_nuxt/Z8k0uMSI.js +5 -0
- package/.output/public/_nuxt/_id_.CbiF5PrV.css +1 -0
- package/.output/public/_nuxt/_id_.Ci4u30cR.css +1 -0
- package/.output/public/_nuxt/_wsId_.DET_GinP.css +1 -0
- package/.output/public/_nuxt/agents.BJwgTLFZ.css +1 -0
- package/.output/public/_nuxt/builds/latest.json +1 -0
- package/.output/public/_nuxt/builds/meta/eede1532-1366-486a-bdab-4d27fa03a1d8.json +1 -0
- package/.output/public/_nuxt/channel-templates.lkqEYlWY.css +1 -0
- package/.output/public/_nuxt/dObsRdSQ.js +1 -0
- package/.output/public/_nuxt/dRAyjbJ6.js +14 -0
- package/.output/public/_nuxt/daq.m1dxZaD-.css +1 -0
- package/.output/public/_nuxt/dcw.C46dGiF_.css +1 -0
- package/.output/public/_nuxt/default.iGJy9dP-.css +1 -0
- package/.output/public/_nuxt/dt2tKE95.js +4 -0
- package/.output/public/_nuxt/eHGLpQSg2.js +1 -0
- package/.output/public/_nuxt/eb-garamond-cyrillic-400-italic.BGIwiowF.woff2 +0 -0
- package/.output/public/_nuxt/eb-garamond-cyrillic-400-italic.BZInx2ys.woff +0 -0
- package/.output/public/_nuxt/eb-garamond-cyrillic-400-normal.C0kVTdou.woff +0 -0
- package/.output/public/_nuxt/eb-garamond-cyrillic-400-normal.DDLP67lu.woff2 +0 -0
- package/.output/public/_nuxt/eb-garamond-cyrillic-ext-400-italic.Bz1w3xqM.woff2 +0 -0
- package/.output/public/_nuxt/eb-garamond-cyrillic-ext-400-italic.CYS3phfl.woff +0 -0
- package/.output/public/_nuxt/eb-garamond-cyrillic-ext-400-normal.DG8lny6_.woff +0 -0
- package/.output/public/_nuxt/eb-garamond-cyrillic-ext-400-normal.o8fRvAFQ.woff2 +0 -0
- package/.output/public/_nuxt/eb-garamond-greek-400-italic.BamGE6QP.woff +0 -0
- package/.output/public/_nuxt/eb-garamond-greek-400-italic.Dqr5KC66.woff2 +0 -0
- package/.output/public/_nuxt/eb-garamond-greek-400-normal.CVAbzS9p.woff2 +0 -0
- package/.output/public/_nuxt/eb-garamond-greek-400-normal.d4JlP2QH.woff +0 -0
- package/.output/public/_nuxt/eb-garamond-greek-ext-400-italic.BL1XYHtS.woff +0 -0
- package/.output/public/_nuxt/eb-garamond-greek-ext-400-italic.CHZOQEtG.woff2 +0 -0
- package/.output/public/_nuxt/eb-garamond-greek-ext-400-normal.BaZl8BIK.woff +0 -0
- package/.output/public/_nuxt/eb-garamond-greek-ext-400-normal.K8pwR3tn.woff2 +0 -0
- package/.output/public/_nuxt/eb-garamond-latin-400-italic.CDFyLPXJ.woff +0 -0
- package/.output/public/_nuxt/eb-garamond-latin-400-italic.DSEbMgZu.woff2 +0 -0
- package/.output/public/_nuxt/eb-garamond-latin-400-normal.BCNrxLz_.woff2 +0 -0
- package/.output/public/_nuxt/eb-garamond-latin-400-normal.maQnHeKB.woff +0 -0
- package/.output/public/_nuxt/eb-garamond-latin-ext-400-italic.DUSsnRSD.woff +0 -0
- package/.output/public/_nuxt/eb-garamond-latin-ext-400-italic.V7s3nWfX.woff2 +0 -0
- package/.output/public/_nuxt/eb-garamond-latin-ext-400-normal.B4EmgUmt.woff +0 -0
- package/.output/public/_nuxt/eb-garamond-latin-ext-400-normal.o4A__6QZ.woff2 +0 -0
- package/.output/public/_nuxt/eb-garamond-vietnamese-400-italic.DQ8HKnks.woff2 +0 -0
- package/.output/public/_nuxt/eb-garamond-vietnamese-400-italic.ORtyMVfw.woff +0 -0
- package/.output/public/_nuxt/eb-garamond-vietnamese-400-normal.CLvJdMEL.woff2 +0 -0
- package/.output/public/_nuxt/eb-garamond-vietnamese-400-normal.ifvNSiWx.woff +0 -0
- package/.output/public/_nuxt/entry.DjhxLu-f.css +1 -0
- package/.output/public/_nuxt/geist-cyrillic-ext-wght-normal.DjL33-gN.woff2 +0 -0
- package/.output/public/_nuxt/geist-cyrillic-wght-normal.BEAKL7Jp.woff2 +0 -0
- package/.output/public/_nuxt/geist-latin-ext-wght-normal.DC-KSUi6.woff2 +0 -0
- package/.output/public/_nuxt/geist-latin-wght-normal.BgDaEnEv.woff2 +0 -0
- package/.output/public/_nuxt/geist-mono-cyrillic-ext-wght-normal.X_5orZeX.woff2 +0 -0
- package/.output/public/_nuxt/geist-mono-cyrillic-wght-normal.DiZS0aHC.woff2 +0 -0
- package/.output/public/_nuxt/geist-mono-latin-ext-wght-normal.Bwz-egvJ.woff2 +0 -0
- package/.output/public/_nuxt/geist-mono-latin-wght-normal.XN7g48iV.woff2 +0 -0
- package/.output/public/_nuxt/geist-mono-symbols2-wght-normal.CO5SzqOn.woff2 +0 -0
- package/.output/public/_nuxt/geist-mono-vietnamese-wght-normal.DadHysG0.woff2 +0 -0
- package/.output/public/_nuxt/geist-vietnamese-wght-normal.6IgcOCM7.woff2 +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-cyrillic-400-normal.BSMlKf0J.woff2 +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-cyrillic-400-normal.CEL4l2ZJ.woff +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-cyrillic-500-normal.Ael50iVv.woff +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-cyrillic-500-normal.Bq9vWWag.woff2 +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-cyrillic-600-normal.CTOM6hUh.woff2 +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-cyrillic-600-normal.fLZuRloM.woff +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-cyrillic-ext-400-normal.DMdlQ8Kv.woff +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-cyrillic-ext-400-normal.xuaO2J-f.woff2 +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-cyrillic-ext-500-normal.BIfNGwUT.woff +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-cyrillic-ext-500-normal.BqneJy0T.woff2 +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-cyrillic-ext-600-normal.9HEixskS.woff +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-cyrillic-ext-600-normal.V-xxqcpd.woff2 +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-latin-400-normal.CvHOgSBP.woff +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-latin-400-normal.DMJ8VG8y.woff2 +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-latin-500-normal.CB9ihrfo.woff +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-latin-500-normal.DSY6xOcd.woff2 +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-latin-600-normal.BgSNZQsw.woff2 +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-latin-600-normal.DWFSQ4vo.woff +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-latin-ext-400-normal.BmRBH3aV.woff2 +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-latin-ext-400-normal.D3D2R8hC.woff +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-latin-ext-500-normal.CAhNIIs5.woff2 +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-latin-ext-500-normal.CZ70TYgx.woff +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-latin-ext-600-normal.D38SheWl.woff2 +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-latin-ext-600-normal.DmB0ttJJ.woff +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-vietnamese-400-normal.BulugwFq.woff2 +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-vietnamese-400-normal.DDuiU_S-.woff +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-vietnamese-500-normal.C8zxqsMH.woff +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-vietnamese-500-normal.DZ4AoWbu.woff2 +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-vietnamese-600-normal.D2EvbN8M.woff2 +0 -0
- package/.output/public/_nuxt/ibm-plex-mono-vietnamese-600-normal.iLQfcSjf.woff +0 -0
- package/.output/public/_nuxt/kZl6yT-12.js +1 -0
- package/.output/public/_nuxt/lO5tpDZ5.js +1 -0
- package/.output/public/_nuxt/logs.DaIsHWZE.css +1 -0
- package/.output/public/_nuxt/monitor.41fCD6TB.css +1 -0
- package/.output/public/_nuxt/pRQri7vQ2.js +4 -0
- package/.output/public/_nuxt/pages.CytEOfUs.css +1 -0
- package/.output/public/_nuxt/plugins.FTm0PcEe.css +1 -0
- package/.output/public/_nuxt/rzGB_ojX.js +32 -0
- package/.output/public/_nuxt/settings.BANibAnV.css +1 -0
- package/.output/public/_nuxt/teams.B8JNbUZg.css +1 -0
- package/.output/public/_nuxt/tokens.CWOTXM-Z.css +1 -0
- package/.output/public/_nuxt/town.BLrD9-WH.css +1 -0
- package/.output/public/_nuxt/town.C_DsNW0J.css +1 -0
- package/.output/public/_nuxt/uBbDCfTz.js +1 -0
- package/.output/public/_nuxt/ubPfs9mQ.js +1 -0
- package/.output/public/_nuxt/users.D8lcLE62.css +1 -0
- package/.output/public/_nuxt/workshop.B98sHiJq.css +1 -0
- package/.output/public/assets/game/character/bot.png +0 -0
- package/.output/public/assets/game/character/device-3d.glb +0 -0
- package/.output/public/assets/game/character/hero-3d.glb +0 -0
- package/.output/public/assets/game/character/hero-anime-1.glb +0 -0
- package/.output/public/assets/game/character/hero-anime-2.glb +0 -0
- package/.output/public/assets/game/character/hero-anime-3.glb +0 -0
- package/.output/public/assets/game/character/hero-anime-4.glb +0 -0
- package/.output/public/assets/game/character/knight.png +0 -0
- package/.output/public/assets/game/character/mage.png +0 -0
- package/.output/public/assets/game/coin.png +0 -0
- package/.output/public/assets/game/devices/agv.glb +0 -0
- package/.output/public/assets/game/devices/caster.glb +0 -0
- package/.output/public/assets/game/devices/device-console.glb +0 -0
- package/.output/public/assets/game/devices/device-robot-arm.glb +0 -0
- package/.output/public/assets/game/devices/device-scanner.glb +0 -0
- package/.output/public/assets/game/devices/extruder.glb +0 -0
- package/.output/public/assets/game/devices/mdo.glb +0 -0
- package/.output/public/assets/game/devices/power-cabinet.glb +0 -0
- package/.output/public/assets/game/devices/pump.glb +0 -0
- package/.output/public/assets/game/devices/tdo.glb +0 -0
- package/.output/public/assets/game/devices/thickness-scanner.glb +0 -0
- package/.output/public/assets/game/devices/winder.glb +0 -0
- package/.output/public/assets/game/npc/boltnu-sheet.png +0 -0
- package/.output/public/assets/game/npc/fluttaflap-sheet.png +0 -0
- package/.output/public/assets/game/npc/rockitten-sheet.png +0 -0
- package/.output/public/assets/game/npc/tux-sheet.png +0 -0
- package/.output/public/assets/game/player/misa-back-walk.000.png +0 -0
- package/.output/public/assets/game/player/misa-back-walk.001.png +0 -0
- package/.output/public/assets/game/player/misa-back-walk.002.png +0 -0
- package/.output/public/assets/game/player/misa-back-walk.003.png +0 -0
- package/.output/public/assets/game/player/misa-back.png +0 -0
- package/.output/public/assets/game/player/misa-front-walk.000.png +0 -0
- package/.output/public/assets/game/player/misa-front-walk.001.png +0 -0
- package/.output/public/assets/game/player/misa-front-walk.002.png +0 -0
- package/.output/public/assets/game/player/misa-front-walk.003.png +0 -0
- package/.output/public/assets/game/player/misa-front.png +0 -0
- package/.output/public/assets/game/player/misa-left-walk.000.png +0 -0
- package/.output/public/assets/game/player/misa-left-walk.001.png +0 -0
- package/.output/public/assets/game/player/misa-left-walk.002.png +0 -0
- package/.output/public/assets/game/player/misa-left-walk.003.png +0 -0
- package/.output/public/assets/game/player/misa-left.png +0 -0
- package/.output/public/assets/game/player/misa-right-walk.000.png +0 -0
- package/.output/public/assets/game/player/misa-right-walk.001.png +0 -0
- package/.output/public/assets/game/player/misa-right-walk.002.png +0 -0
- package/.output/public/assets/game/player/misa-right-walk.003.png +0 -0
- package/.output/public/assets/game/player/misa-right.png +0 -0
- package/.output/public/assets/game/player-sheet.png +0 -0
- package/.output/public/assets/game/tuxemon-town.json +1 -0
- package/.output/public/assets/game/tuxmon-sample-32px-extruded.png +0 -0
- package/.output/public/assets/game/wuwa/scene-map.png +0 -0
- package/.output/public/assets/game/wuwa/world-far.png +0 -0
- package/.output/public/assets/game/wuwa/world-middle.png +0 -0
- package/.output/public/assets/game/wuwa/world-near.png +0 -0
- package/.output/public/assets/game/wuwa/wu-aura.png +0 -0
- package/.output/public/assets/game/wuwa/wu-lead.png +0 -0
- package/.output/public/assets/game/wuwa/wu-ring.png +0 -0
- package/.output/public/assets/game/wuwa/wu-slash.png +0 -0
- package/.output/public/assets/game/wuwa/wu-worker-0.png +0 -0
- package/.output/public/assets/game/wuwa/wu-worker-1.png +0 -0
- package/.output/public/assets/game/wuwa/wu-worker-2.png +0 -0
- package/.output/public/favicon.svg +14 -0
- package/.output/public/scene/background/cyber-town-background.svg +110 -0
- package/.output/server/chunks/_/LeftOutlined.mjs +23 -0
- package/.output/server/chunks/_/LeftOutlined.mjs.map +1 -0
- package/.output/server/chunks/_/SearchOutlined.mjs +5141 -0
- package/.output/server/chunks/_/SearchOutlined.mjs.map +1 -0
- package/.output/server/chunks/_/character-asset.repo.mjs +86 -0
- package/.output/server/chunks/_/character-asset.repo.mjs.map +1 -0
- package/.output/server/chunks/_/error-500.mjs +20 -0
- package/.output/server/chunks/_/error-500.mjs.map +1 -0
- package/.output/server/chunks/_/host-bindings.mjs +53 -0
- package/.output/server/chunks/_/host-bindings.mjs.map +1 -0
- package/.output/server/chunks/_/nitro.mjs +26860 -0
- package/.output/server/chunks/_/nitro.mjs.map +1 -0
- package/.output/server/chunks/_/scene-layout.repo.mjs +72 -0
- package/.output/server/chunks/_/scene-layout.repo.mjs.map +1 -0
- package/.output/server/chunks/_/user.schema.mjs +36 -0
- package/.output/server/chunks/_/user.schema.mjs.map +1 -0
- package/.output/server/chunks/build/Col-D7fjGDF6.mjs +338 -0
- package/.output/server/chunks/build/Col-D7fjGDF6.mjs.map +1 -0
- package/.output/server/chunks/build/OmpTerminalPanel-CZnxR3M_.mjs +915 -0
- package/.output/server/chunks/build/OmpTerminalPanel-CZnxR3M_.mjs.map +1 -0
- package/.output/server/chunks/build/TownView-DYlUNRZe.mjs +2671 -0
- package/.output/server/chunks/build/TownView-DYlUNRZe.mjs.map +1 -0
- package/.output/server/chunks/build/_id_-BOhG2yz8.mjs +659 -0
- package/.output/server/chunks/build/_id_-BOhG2yz8.mjs.map +1 -0
- package/.output/server/chunks/build/_id_-CuyMYmhY.mjs +312 -0
- package/.output/server/chunks/build/_id_-CuyMYmhY.mjs.map +1 -0
- package/.output/server/chunks/build/_wsId_-B5f5BdW2.mjs +9324 -0
- package/.output/server/chunks/build/_wsId_-B5f5BdW2.mjs.map +1 -0
- package/.output/server/chunks/build/agents-BVaxN75W.mjs +934 -0
- package/.output/server/chunks/build/agents-BVaxN75W.mjs.map +1 -0
- package/.output/server/chunks/build/alert-gH-s7yIh.mjs +264 -0
- package/.output/server/chunks/build/alert-gH-s7yIh.mjs.map +1 -0
- package/.output/server/chunks/build/button-BhbX5ACI.mjs +1938 -0
- package/.output/server/chunks/build/button-BhbX5ACI.mjs.map +1 -0
- package/.output/server/chunks/build/card-l4BbX67w.mjs +955 -0
- package/.output/server/chunks/build/card-l4BbX67w.mjs.map +1 -0
- package/.output/server/chunks/build/channel-templates-D1K2IKrE.mjs +832 -0
- package/.output/server/chunks/build/channel-templates-D1K2IKrE.mjs.map +1 -0
- package/.output/server/chunks/build/checkbox-BF11p3dH.mjs +439 -0
- package/.output/server/chunks/build/checkbox-BF11p3dH.mjs.map +1 -0
- package/.output/server/chunks/build/client-only-CFTHwakk.mjs +43 -0
- package/.output/server/chunks/build/client-only-CFTHwakk.mjs.map +1 -0
- package/.output/server/chunks/build/connection-Dc0fn6yd.mjs +120 -0
- package/.output/server/chunks/build/connection-Dc0fn6yd.mjs.map +1 -0
- package/.output/server/chunks/build/daq-ObtN1TQ4.mjs +1066 -0
- package/.output/server/chunks/build/daq-ObtN1TQ4.mjs.map +1 -0
- package/.output/server/chunks/build/dcw-fINr-He1.mjs +243 -0
- package/.output/server/chunks/build/dcw-fINr-He1.mjs.map +1 -0
- package/.output/server/chunks/build/default-CVVO40Jj.mjs +1209 -0
- package/.output/server/chunks/build/default-CVVO40Jj.mjs.map +1 -0
- package/.output/server/chunks/build/drawer-CVValqoh.mjs +836 -0
- package/.output/server/chunks/build/drawer-CVValqoh.mjs.map +1 -0
- package/.output/server/chunks/build/dropdown-ByCsEWlQ.mjs +14 -0
- package/.output/server/chunks/build/dropdown-ByCsEWlQ.mjs.map +1 -0
- package/.output/server/chunks/build/dropdown-Dex8PXu6.mjs +558 -0
- package/.output/server/chunks/build/dropdown-Dex8PXu6.mjs.map +1 -0
- package/.output/server/chunks/build/initDefaultProps-DIbWwP4R.mjs +21 -0
- package/.output/server/chunks/build/initDefaultProps-DIbWwP4R.mjs.map +1 -0
- package/.output/server/chunks/build/input--KMeLYqZ.mjs +2617 -0
- package/.output/server/chunks/build/input--KMeLYqZ.mjs.map +1 -0
- package/.output/server/chunks/build/input-number-BBlRoAJ7.mjs +1521 -0
- package/.output/server/chunks/build/input-number-BBlRoAJ7.mjs.map +1 -0
- package/.output/server/chunks/build/interval-Bt11uRPw.mjs +9 -0
- package/.output/server/chunks/build/interval-Bt11uRPw.mjs.map +1 -0
- package/.output/server/chunks/build/isNumeric-CP7q_yhz.mjs +7 -0
- package/.output/server/chunks/build/isNumeric-CP7q_yhz.mjs.map +1 -0
- package/.output/server/chunks/build/logs-DqNgCJAn.mjs +188 -0
- package/.output/server/chunks/build/logs-DqNgCJAn.mjs.map +1 -0
- package/.output/server/chunks/build/menu-xN-SXb9Q.mjs +1950 -0
- package/.output/server/chunks/build/menu-xN-SXb9Q.mjs.map +1 -0
- package/.output/server/chunks/build/modal-DrCOcjrl.mjs +1272 -0
- package/.output/server/chunks/build/modal-DrCOcjrl.mjs.map +1 -0
- package/.output/server/chunks/build/monitor-CTZLwbdw.mjs +2329 -0
- package/.output/server/chunks/build/monitor-CTZLwbdw.mjs.map +1 -0
- package/.output/server/chunks/build/pages-DC52d7z7.mjs +470 -0
- package/.output/server/chunks/build/pages-DC52d7z7.mjs.map +1 -0
- package/.output/server/chunks/build/plugins-DVQty7qG.mjs +231 -0
- package/.output/server/chunks/build/plugins-DVQty7qG.mjs.map +1 -0
- package/.output/server/chunks/build/popconfirm-C5H1Qoh3.mjs +342 -0
- package/.output/server/chunks/build/popconfirm-C5H1Qoh3.mjs.map +1 -0
- package/.output/server/chunks/build/responsiveObserve-CS0UB6wQ.mjs +78 -0
- package/.output/server/chunks/build/responsiveObserve-CS0UB6wQ.mjs.map +1 -0
- package/.output/server/chunks/build/select-D7H2ysgT.mjs +3923 -0
- package/.output/server/chunks/build/select-D7H2ysgT.mjs.map +1 -0
- package/.output/server/chunks/build/settings-BeergncK.mjs +557 -0
- package/.output/server/chunks/build/settings-BeergncK.mjs.map +1 -0
- package/.output/server/chunks/build/space-DCwIlnkI.mjs +197 -0
- package/.output/server/chunks/build/space-DCwIlnkI.mjs.map +1 -0
- package/.output/server/chunks/build/spin-HVY81X_L.mjs +358 -0
- package/.output/server/chunks/build/spin-HVY81X_L.mjs.map +1 -0
- package/.output/server/chunks/build/switch-VC0m9ede.mjs +377 -0
- package/.output/server/chunks/build/switch-VC0m9ede.mjs.map +1 -0
- package/.output/server/chunks/build/table-BksLg3Q_.mjs +8883 -0
- package/.output/server/chunks/build/table-BksLg3Q_.mjs.map +1 -0
- package/.output/server/chunks/build/tabs-CzUfD3iX.mjs +1925 -0
- package/.output/server/chunks/build/tabs-CzUfD3iX.mjs.map +1 -0
- package/.output/server/chunks/build/tag-oQI3VtqM.mjs +1157 -0
- package/.output/server/chunks/build/tag-oQI3VtqM.mjs.map +1 -0
- package/.output/server/chunks/build/teams-CFeDlHDh.mjs +910 -0
- package/.output/server/chunks/build/teams-CFeDlHDh.mjs.map +1 -0
- package/.output/server/chunks/build/tokens-CBAUbOce.mjs +818 -0
- package/.output/server/chunks/build/tokens-CBAUbOce.mjs.map +1 -0
- package/.output/server/chunks/build/town-BUqRobze.mjs +48 -0
- package/.output/server/chunks/build/town-BUqRobze.mjs.map +1 -0
- package/.output/server/chunks/build/town-BxH-XXth.mjs +94 -0
- package/.output/server/chunks/build/town-BxH-XXth.mjs.map +1 -0
- package/.output/server/chunks/build/useDaqStream-CwORhsD7.mjs +310 -0
- package/.output/server/chunks/build/useDaqStream-CwORhsD7.mjs.map +1 -0
- package/.output/server/chunks/build/useDcwStream-BkWDGaWp.mjs +450 -0
- package/.output/server/chunks/build/useDcwStream-BkWDGaWp.mjs.map +1 -0
- package/.output/server/chunks/build/useDeviceTwins-NhtXqSkU.mjs +127 -0
- package/.output/server/chunks/build/useDeviceTwins-NhtXqSkU.mjs.map +1 -0
- package/.output/server/chunks/build/useOpsLog-CU64VDg5.mjs +124 -0
- package/.output/server/chunks/build/useOpsLog-CU64VDg5.mjs.map +1 -0
- package/.output/server/chunks/build/useSiteConfig-Cc-ABesl.mjs +27 -0
- package/.output/server/chunks/build/useSiteConfig-Cc-ABesl.mjs.map +1 -0
- package/.output/server/chunks/build/useTownBus-D9SoIsAN.mjs +25 -0
- package/.output/server/chunks/build/useTownBus-D9SoIsAN.mjs.map +1 -0
- package/.output/server/chunks/build/useWorkshopApi-5er8_EHZ.mjs +4786 -0
- package/.output/server/chunks/build/useWorkshopApi-5er8_EHZ.mjs.map +1 -0
- package/.output/server/chunks/build/useWorkshopWs-Dwr_1Q8f.mjs +1068 -0
- package/.output/server/chunks/build/useWorkshopWs-Dwr_1Q8f.mjs.map +1 -0
- package/.output/server/chunks/build/user-CpVY4OAA.mjs +140 -0
- package/.output/server/chunks/build/user-CpVY4OAA.mjs.map +1 -0
- package/.output/server/chunks/build/users-BMs4s_6K.mjs +558 -0
- package/.output/server/chunks/build/users-BMs4s_6K.mjs.map +1 -0
- package/.output/server/chunks/build/workshop-CJAyZ5zS.mjs +917 -0
- package/.output/server/chunks/build/workshop-CJAyZ5zS.mjs.map +1 -0
- package/.output/server/chunks/build/workspaces-Dq-1zvu9.mjs +125 -0
- package/.output/server/chunks/build/workspaces-Dq-1zvu9.mjs.map +1 -0
- package/.output/server/chunks/routes/api/health.get.mjs +40 -0
- package/.output/server/chunks/routes/api/health.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/index.get.mjs +27 -0
- package/.output/server/chunks/routes/api/index.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/index.post.mjs +27 -0
- package/.output/server/chunks/routes/api/index.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/mcp/workshop.mjs +498 -0
- package/.output/server/chunks/routes/api/mcp/workshop.mjs.map +1 -0
- package/.output/server/chunks/routes/api/metrics.mjs +66 -0
- package/.output/server/chunks/routes/api/metrics.mjs.map +1 -0
- package/.output/server/chunks/routes/api/plugins/_name/_...path_.mjs +33 -0
- package/.output/server/chunks/routes/api/plugins/_name/_...path_.mjs.map +1 -0
- package/.output/server/chunks/routes/api/plugins/client/_name_.get.mjs +30 -0
- package/.output/server/chunks/routes/api/plugins/client/_name_.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/plugins/manifest.get.mjs +22 -0
- package/.output/server/chunks/routes/api/plugins/manifest.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/system/config.get.mjs +24 -0
- package/.output/server/chunks/routes/api/system/config.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/system/index.get.mjs +24 -0
- package/.output/server/chunks/routes/api/system/index.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/system/index.patch.mjs +30 -0
- package/.output/server/chunks/routes/api/system/index.patch.mjs.map +1 -0
- package/.output/server/chunks/routes/api/system/monitor/terminal/ws.mjs +148 -0
- package/.output/server/chunks/routes/api/system/monitor/terminal/ws.mjs.map +1 -0
- package/.output/server/chunks/routes/api/system/monitor/terminate.post.mjs +41 -0
- package/.output/server/chunks/routes/api/system/monitor/terminate.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/system/monitor.get.mjs +24 -0
- package/.output/server/chunks/routes/api/system/monitor.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/system/settings/events.get.mjs +35 -0
- package/.output/server/chunks/routes/api/system/settings/events.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/system/settings/reset.post.mjs +24 -0
- package/.output/server/chunks/routes/api/system/settings/reset.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/users/_id_.delete.mjs +26 -0
- package/.output/server/chunks/routes/api/users/_id_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/users/_id_.get.mjs +26 -0
- package/.output/server/chunks/routes/api/users/_id_.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/users/_id_.put.mjs +29 -0
- package/.output/server/chunks/routes/api/users/_id_.put.mjs.map +1 -0
- package/.output/server/chunks/routes/api/users/index.get.mjs +23 -0
- package/.output/server/chunks/routes/api/users/index.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/users/index.post.mjs +26 -0
- package/.output/server/chunks/routes/api/users/index.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/users/login.post.mjs +25 -0
- package/.output/server/chunks/routes/api/users/login.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/users/logout.post.mjs +23 -0
- package/.output/server/chunks/routes/api/users/logout.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/users/me.get.mjs +23 -0
- package/.output/server/chunks/routes/api/users/me.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/users/register.post.mjs +25 -0
- package/.output/server/chunks/routes/api/users/register.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/users/tokens/_id/token.get.mjs +25 -0
- package/.output/server/chunks/routes/api/users/tokens/_id/token.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/users/tokens/_id_.delete.mjs +25 -0
- package/.output/server/chunks/routes/api/users/tokens/_id_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/users/tokens/_id_.patch.mjs +28 -0
- package/.output/server/chunks/routes/api/users/tokens/_id_.patch.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/_...path_.mjs +22 -0
- package/.output/server/chunks/routes/api/workshop/_...path_.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/a2a/_agentId/index.get.mjs +61 -0
- package/.output/server/chunks/routes/api/workshop/a2a/_agentId/index.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/a2a/_agentId/index.post.mjs +333 -0
- package/.output/server/chunks/routes/api/workshop/a2a/_agentId/index.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/a2a/send.post.mjs +35 -0
- package/.output/server/chunks/routes/api/workshop/a2a/send.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/agent-tools/approvals/_id/decide.post.mjs +30 -0
- package/.output/server/chunks/routes/api/workshop/agent-tools/approvals/_id/decide.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/agent-tools/bindings/_id_.delete.mjs +31 -0
- package/.output/server/chunks/routes/api/workshop/agent-tools/bindings/_id_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/agent-tools/bindings/_id_.patch.mjs +27 -0
- package/.output/server/chunks/routes/api/workshop/agent-tools/bindings/_id_.patch.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/agent-tools/index.get.mjs +29 -0
- package/.output/server/chunks/routes/api/workshop/agent-tools/index.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/agent-tools/index.post.mjs +32 -0
- package/.output/server/chunks/routes/api/workshop/agent-tools/index.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/agent-tools/index2.get.mjs +26 -0
- package/.output/server/chunks/routes/api/workshop/agent-tools/index2.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/agent-tools/invoke.post.mjs +38 -0
- package/.output/server/chunks/routes/api/workshop/agent-tools/invoke.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/agents/_id_.delete.mjs +30 -0
- package/.output/server/chunks/routes/api/workshop/agents/_id_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/agents/_id_.get.mjs +29 -0
- package/.output/server/chunks/routes/api/workshop/agents/_id_.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/agents/_id_.patch.mjs +38 -0
- package/.output/server/chunks/routes/api/workshop/agents/_id_.patch.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/agents/subscribe.post.mjs +30 -0
- package/.output/server/chunks/routes/api/workshop/agents/subscribe.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/approvals/_id/decide.post.mjs +38 -0
- package/.output/server/chunks/routes/api/workshop/approvals/_id/decide.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/assets/character/_id_.delete.mjs +38 -0
- package/.output/server/chunks/routes/api/workshop/assets/character/_id_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/assets/devices/_id_.delete.mjs +47 -0
- package/.output/server/chunks/routes/api/workshop/assets/devices/_id_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/assets/index.get.mjs +28 -0
- package/.output/server/chunks/routes/api/workshop/assets/index.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/assets/index.post.mjs +81 -0
- package/.output/server/chunks/routes/api/workshop/assets/index.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/assets/index2.get.mjs +81 -0
- package/.output/server/chunks/routes/api/workshop/assets/index2.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/assets/index2.post.mjs +56 -0
- package/.output/server/chunks/routes/api/workshop/assets/index2.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/audit.get.mjs +55 -0
- package/.output/server/chunks/routes/api/workshop/audit.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/caller.mjs +107 -0
- package/.output/server/chunks/routes/api/workshop/caller.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channel-templates/_id/instantiate.post.mjs +37 -0
- package/.output/server/chunks/routes/api/workshop/channel-templates/_id/instantiate.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channel-templates/_id_.delete.mjs +30 -0
- package/.output/server/chunks/routes/api/workshop/channel-templates/_id_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channel-templates/_id_.get.mjs +29 -0
- package/.output/server/chunks/routes/api/workshop/channel-templates/_id_.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channel-templates/_id_.patch.mjs +55 -0
- package/.output/server/chunks/routes/api/workshop/channel-templates/_id_.patch.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channel-templates/from-channel.post.mjs +39 -0
- package/.output/server/chunks/routes/api/workshop/channel-templates/from-channel.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/activate.post.mjs +29 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/activate.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/index.get.mjs +36 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/index.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/index.post.mjs +52 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/index.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/memories/_memoryId_.delete.mjs +37 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/memories/_memoryId_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/memories/search.post.mjs +46 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/memories/search.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/model.patch.mjs +42 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/model.patch.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/position.patch.mjs +40 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/position.patch.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/range.patch.mjs +59 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/range.patch.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/stop.post.mjs +33 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId/stop.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId_.delete.mjs +32 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId_.patch.mjs +37 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/agents/_agentId_.patch.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/events.get.mjs +58 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/events.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/index.get.mjs +34 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/index.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/index.post.mjs +62 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/index.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/index2.get.mjs +35 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/index2.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/index2.post.mjs +47 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/index2.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/index3.get.mjs +49 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/index3.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/index3.post.mjs +74 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/index3.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/index4.get.mjs +30 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/index4.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/index4.post.mjs +84 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/index4.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/memories/_memoryId_.delete.mjs +36 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/memories/_memoryId_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/queue.get.mjs +31 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/queue.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/terminals.get.mjs +27 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id/terminals.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id_.delete.mjs +29 -0
- package/.output/server/chunks/routes/api/workshop/channels/_id_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/index.get.mjs +29 -0
- package/.output/server/chunks/routes/api/workshop/channels/index.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels/index.patch.mjs +37 -0
- package/.output/server/chunks/routes/api/workshop/channels/index.patch.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels.get.mjs +24 -0
- package/.output/server/chunks/routes/api/workshop/channels.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/channels.post.mjs +53 -0
- package/.output/server/chunks/routes/api/workshop/channels.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/daq/_id/bind.post.mjs +30 -0
- package/.output/server/chunks/routes/api/workshop/daq/_id/bind.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/daq/_id/samples.get.mjs +34 -0
- package/.output/server/chunks/routes/api/workshop/daq/_id/samples.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/daq/_id/test.post.mjs +29 -0
- package/.output/server/chunks/routes/api/workshop/daq/_id/test.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/daq/_id_.delete.mjs +41 -0
- package/.output/server/chunks/routes/api/workshop/daq/_id_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/daq/_id_.patch.mjs +42 -0
- package/.output/server/chunks/routes/api/workshop/daq/_id_.patch.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/daq/alarms/_id/ack.post.mjs +26 -0
- package/.output/server/chunks/routes/api/workshop/daq/alarms/_id/ack.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/daq/alarms.get.mjs +27 -0
- package/.output/server/chunks/routes/api/workshop/daq/alarms.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/daq/controller.post.mjs +53 -0
- package/.output/server/chunks/routes/api/workshop/daq/controller.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/daq/index.post.mjs +28 -0
- package/.output/server/chunks/routes/api/workshop/daq/index.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/daq/infra/reconnect.post.mjs +29 -0
- package/.output/server/chunks/routes/api/workshop/daq/infra/reconnect.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/daq/infra.get.mjs +24 -0
- package/.output/server/chunks/routes/api/workshop/daq/infra.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/daq/templates/_key_.delete.mjs +28 -0
- package/.output/server/chunks/routes/api/workshop/daq/templates/_key_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/daq/templates/_key_.patch.mjs +29 -0
- package/.output/server/chunks/routes/api/workshop/daq/templates/_key_.patch.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/daq/test-driver.post.mjs +30 -0
- package/.output/server/chunks/routes/api/workshop/daq/test-driver.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/_id/bind.post.mjs +29 -0
- package/.output/server/chunks/routes/api/workshop/dcw/_id/bind.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/_id/param-ledger.get.mjs +27 -0
- package/.output/server/chunks/routes/api/workshop/dcw/_id/param-ledger.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/_id/test.post.mjs +27 -0
- package/.output/server/chunks/routes/api/workshop/dcw/_id/test.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/_id/write.post.mjs +29 -0
- package/.output/server/chunks/routes/api/workshop/dcw/_id/write.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/_id_.delete.mjs +37 -0
- package/.output/server/chunks/routes/api/workshop/dcw/_id_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/_id_.patch.mjs +29 -0
- package/.output/server/chunks/routes/api/workshop/dcw/_id_.patch.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/controller.post.mjs +46 -0
- package/.output/server/chunks/routes/api/workshop/dcw/controller.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/index.get.mjs +33 -0
- package/.output/server/chunks/routes/api/workshop/dcw/index.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/index.post.mjs +40 -0
- package/.output/server/chunks/routes/api/workshop/dcw/index.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/index2.get.mjs +26 -0
- package/.output/server/chunks/routes/api/workshop/dcw/index2.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/index2.post.mjs +27 -0
- package/.output/server/chunks/routes/api/workshop/dcw/index2.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/index3.get.mjs +35 -0
- package/.output/server/chunks/routes/api/workshop/dcw/index3.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/index3.post.mjs +27 -0
- package/.output/server/chunks/routes/api/workshop/dcw/index3.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/index4.get.mjs +25 -0
- package/.output/server/chunks/routes/api/workshop/dcw/index4.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/index4.post.mjs +27 -0
- package/.output/server/chunks/routes/api/workshop/dcw/index4.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/index5.get.mjs +24 -0
- package/.output/server/chunks/routes/api/workshop/dcw/index5.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/journal/node/_nodeId/rollback.post.mjs +30 -0
- package/.output/server/chunks/routes/api/workshop/dcw/journal/node/_nodeId/rollback.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/line/query.get.mjs +41 -0
- package/.output/server/chunks/routes/api/workshop/dcw/line/query.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/lines/_id/start.post.mjs +45 -0
- package/.output/server/chunks/routes/api/workshop/dcw/lines/_id/start.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/lines/_id/stop.post.mjs +44 -0
- package/.output/server/chunks/routes/api/workshop/dcw/lines/_id/stop.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/lines/_id_.delete.mjs +43 -0
- package/.output/server/chunks/routes/api/workshop/dcw/lines/_id_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/lines/_id_.patch.mjs +27 -0
- package/.output/server/chunks/routes/api/workshop/dcw/lines/_id_.patch.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id/judge.post.mjs +32 -0
- package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id/judge.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id/rollback.post.mjs +35 -0
- package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id/rollback.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id/series.get.mjs +29 -0
- package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id/series.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id_.get.mjs +29 -0
- package/.output/server/chunks/routes/api/workshop/dcw/optimizations/_id_.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/products/_id_.delete.mjs +28 -0
- package/.output/server/chunks/routes/api/workshop/dcw/products/_id_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/products/_id_.patch.mjs +28 -0
- package/.output/server/chunks/routes/api/workshop/dcw/products/_id_.patch.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/apply.post.mjs +47 -0
- package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/apply.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/mark-good.post.mjs +31 -0
- package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/mark-good.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/rollback-good.post.mjs +29 -0
- package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id/rollback-good.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id_.delete.mjs +27 -0
- package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id_.patch.mjs +28 -0
- package/.output/server/chunks/routes/api/workshop/dcw/recipes/_id_.patch.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/runs/_id/close.post.mjs +27 -0
- package/.output/server/chunks/routes/api/workshop/dcw/runs/_id/close.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/runs/_id/data.get.mjs +27 -0
- package/.output/server/chunks/routes/api/workshop/dcw/runs/_id/data.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/runs/_id/rollback.post.mjs +29 -0
- package/.output/server/chunks/routes/api/workshop/dcw/runs/_id/rollback.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/templates/_key_.delete.mjs +27 -0
- package/.output/server/chunks/routes/api/workshop/dcw/templates/_key_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/templates/_key_.patch.mjs +28 -0
- package/.output/server/chunks/routes/api/workshop/dcw/templates/_key_.patch.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/dcw/test-driver.post.mjs +27 -0
- package/.output/server/chunks/routes/api/workshop/dcw/test-driver.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/device-twins/_id/control.post.mjs +30 -0
- package/.output/server/chunks/routes/api/workshop/device-twins/_id/control.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/device-twins/_id/telemetry.post.mjs +29 -0
- package/.output/server/chunks/routes/api/workshop/device-twins/_id/telemetry.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/device-twins/_id_.delete.mjs +32 -0
- package/.output/server/chunks/routes/api/workshop/device-twins/_id_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/device-twins/_id_.patch.mjs +36 -0
- package/.output/server/chunks/routes/api/workshop/device-twins/_id_.patch.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/fs/dirs.get.mjs +43 -0
- package/.output/server/chunks/routes/api/workshop/fs/dirs.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/index.get.mjs +25 -0
- package/.output/server/chunks/routes/api/workshop/index.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/index.post.mjs +38 -0
- package/.output/server/chunks/routes/api/workshop/index.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/index10.get.mjs +24 -0
- package/.output/server/chunks/routes/api/workshop/index10.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/index2.get.mjs +31 -0
- package/.output/server/chunks/routes/api/workshop/index2.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/index2.post.mjs +68 -0
- package/.output/server/chunks/routes/api/workshop/index2.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/index3.get.mjs +25 -0
- package/.output/server/chunks/routes/api/workshop/index3.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/index3.post.mjs +41 -0
- package/.output/server/chunks/routes/api/workshop/index3.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/index4.get.mjs +47 -0
- package/.output/server/chunks/routes/api/workshop/index4.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/index4.post.mjs +29 -0
- package/.output/server/chunks/routes/api/workshop/index4.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/index5.get.mjs +36 -0
- package/.output/server/chunks/routes/api/workshop/index5.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/index5.post.mjs +40 -0
- package/.output/server/chunks/routes/api/workshop/index5.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/index6.get.mjs +26 -0
- package/.output/server/chunks/routes/api/workshop/index6.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/index6.post.mjs +43 -0
- package/.output/server/chunks/routes/api/workshop/index6.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/index7.get.mjs +40 -0
- package/.output/server/chunks/routes/api/workshop/index7.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/index7.post.mjs +36 -0
- package/.output/server/chunks/routes/api/workshop/index7.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/index8.get.mjs +30 -0
- package/.output/server/chunks/routes/api/workshop/index8.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/index8.post.mjs +27 -0
- package/.output/server/chunks/routes/api/workshop/index8.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/index9.get.mjs +25 -0
- package/.output/server/chunks/routes/api/workshop/index9.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/mailbox/all.get.mjs +31 -0
- package/.output/server/chunks/routes/api/workshop/mailbox/all.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/mailbox.get.mjs +27 -0
- package/.output/server/chunks/routes/api/workshop/mailbox.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/memories/maintenance.post.mjs +25 -0
- package/.output/server/chunks/routes/api/workshop/memories/maintenance.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/plugins/_name/disable.post.mjs +33 -0
- package/.output/server/chunks/routes/api/workshop/plugins/_name/disable.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/plugins/_name/enable.post.mjs +33 -0
- package/.output/server/chunks/routes/api/workshop/plugins/_name/enable.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/plugins/index.get.mjs +28 -0
- package/.output/server/chunks/routes/api/workshop/plugins/index.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/runtime.get.mjs +24 -0
- package/.output/server/chunks/routes/api/workshop/runtime.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/scene/layouts/_channelId_.delete.mjs +32 -0
- package/.output/server/chunks/routes/api/workshop/scene/layouts/_channelId_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/scene/layouts/_channelId_.put.mjs +39 -0
- package/.output/server/chunks/routes/api/workshop/scene/layouts/_channelId_.put.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/scene/layouts.get.mjs +25 -0
- package/.output/server/chunks/routes/api/workshop/scene/layouts.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/tasks/_id/complete.post.mjs +37 -0
- package/.output/server/chunks/routes/api/workshop/tasks/_id/complete.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/tasks/_id/dispatch.post.mjs +39 -0
- package/.output/server/chunks/routes/api/workshop/tasks/_id/dispatch.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/tasks/_id/index.post.mjs +36 -0
- package/.output/server/chunks/routes/api/workshop/tasks/_id/index.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/tasks/_id/report.post.mjs +44 -0
- package/.output/server/chunks/routes/api/workshop/tasks/_id/report.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/tasks/_id/retry.post.mjs +36 -0
- package/.output/server/chunks/routes/api/workshop/tasks/_id/retry.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/tasks/_id_.get.mjs +37 -0
- package/.output/server/chunks/routes/api/workshop/tasks/_id_.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/tasks.get.mjs +24 -0
- package/.output/server/chunks/routes/api/workshop/tasks.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/teams/_id/deploy.post.mjs +42 -0
- package/.output/server/chunks/routes/api/workshop/teams/_id/deploy.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/teams/_id/index.get.mjs +29 -0
- package/.output/server/chunks/routes/api/workshop/teams/_id/index.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/teams/_id/index.post.mjs +39 -0
- package/.output/server/chunks/routes/api/workshop/teams/_id/index.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/teams/_id/members/_agentId_.delete.mjs +30 -0
- package/.output/server/chunks/routes/api/workshop/teams/_id/members/_agentId_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/teams/_id_.delete.mjs +30 -0
- package/.output/server/chunks/routes/api/workshop/teams/_id_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/teams/_id_.get.mjs +29 -0
- package/.output/server/chunks/routes/api/workshop/teams/_id_.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/teams/_id_.patch.mjs +40 -0
- package/.output/server/chunks/routes/api/workshop/teams/_id_.patch.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/users/me.get.mjs +35 -0
- package/.output/server/chunks/routes/api/workshop/users/me.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/users/register.post.mjs +37 -0
- package/.output/server/chunks/routes/api/workshop/users/register.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/workspaces/_id/channel-templates/_tplId_.post.mjs +39 -0
- package/.output/server/chunks/routes/api/workshop/workspaces/_id/channel-templates/_tplId_.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/workspaces/_id/channels/_channelId_.delete.mjs +27 -0
- package/.output/server/chunks/routes/api/workshop/workspaces/_id/channels/_channelId_.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/workspaces/_id/channels/_channelId_.post.mjs +27 -0
- package/.output/server/chunks/routes/api/workshop/workspaces/_id/channels/_channelId_.post.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workshop/workspaces/index.delete.mjs +26 -0
- package/.output/server/chunks/routes/api/workshop/workspaces/index.delete.mjs.map +1 -0
- package/.output/server/chunks/routes/renderer.mjs +392 -0
- package/.output/server/chunks/routes/renderer.mjs.map +1 -0
- package/.output/server/chunks/virtual/_virtual_spa-template.mjs +4 -0
- package/.output/server/chunks/virtual/_virtual_spa-template.mjs.map +1 -0
- package/.output/server/chunks/virtual/entry.mjs +18401 -0
- package/.output/server/chunks/virtual/entry.mjs.map +1 -0
- package/.output/server/chunks/virtual/precomputed.mjs +4 -0
- package/.output/server/chunks/virtual/precomputed.mjs.map +1 -0
- package/.output/server/index.mjs +5561 -0
- package/.output/server/index.mjs.map +1 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/api/api.js +2 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/api/app.js +2 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/api/component.js +2 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/api/context.js +2 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/api/hooks.js +2 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/api/index.js +22 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/api/util.js +2 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/const.js +5 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/env.js +17 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/index.js +45 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/plugin.js +2 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/proxy.js +111 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/lib/cjs/time.js +28 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@6.6.4/package.json +37 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@7.7.10/dist/index.cjs +42 -0
- package/.output/server/node_modules/.nitro/@vue/devtools-api@7.7.10/package.json +32 -0
- package/.output/server/node_modules/.nitro/hookable@5.5.3/dist/index.cjs +299 -0
- package/.output/server/node_modules/.nitro/hookable@5.5.3/package.json +49 -0
- package/.output/server/node_modules/.nitro/hookable@6.1.1/dist/index.mjs +257 -0
- package/.output/server/node_modules/.nitro/hookable@6.1.1/package.json +53 -0
- package/.output/server/node_modules/@adonisjs/hash/build/chunk-7RS6HCBK.js +36 -0
- package/.output/server/node_modules/@adonisjs/hash/build/chunk-JSA56AE7.js +26 -0
- package/.output/server/node_modules/@adonisjs/hash/build/chunk-JSBRDJBE.js +30 -0
- package/.output/server/node_modules/@adonisjs/hash/build/chunk-RHMXMP27.js +202 -0
- package/.output/server/node_modules/@adonisjs/hash/build/chunk-WB54OA6N.js +193 -0
- package/.output/server/node_modules/@adonisjs/hash/build/index.js +9 -0
- package/.output/server/node_modules/@adonisjs/hash/build/src/drivers/scrypt.js +9 -0
- package/.output/server/node_modules/@adonisjs/hash/package.json +150 -0
- package/.output/server/node_modules/@ant-design/colors/dist/index.js +255 -0
- package/.output/server/node_modules/@ant-design/colors/package.json +53 -0
- package/.output/server/node_modules/@babel/parser/lib/index.js +14611 -0
- package/.output/server/node_modules/@babel/parser/package.json +50 -0
- package/.output/server/node_modules/@ctrl/tinycolor/dist/conversion.js +250 -0
- package/.output/server/node_modules/@ctrl/tinycolor/dist/css-color-names.js +157 -0
- package/.output/server/node_modules/@ctrl/tinycolor/dist/format-input.js +189 -0
- package/.output/server/node_modules/@ctrl/tinycolor/dist/from-ratio.js +30 -0
- package/.output/server/node_modules/@ctrl/tinycolor/dist/index.js +512 -0
- package/.output/server/node_modules/@ctrl/tinycolor/dist/interfaces.js +2 -0
- package/.output/server/node_modules/@ctrl/tinycolor/dist/public_api.js +28 -0
- package/.output/server/node_modules/@ctrl/tinycolor/dist/random.js +282 -0
- package/.output/server/node_modules/@ctrl/tinycolor/dist/readability.js +86 -0
- package/.output/server/node_modules/@ctrl/tinycolor/dist/to-ms-filter.js +20 -0
- package/.output/server/node_modules/@ctrl/tinycolor/dist/util.js +92 -0
- package/.output/server/node_modules/@ctrl/tinycolor/package.json +80 -0
- package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/helpers.js +64 -0
- package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/interfaces.js +16 -0
- package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/mcp-server.js +32 -0
- package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/experimental/tasks/server.js +246 -0
- package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/package.json +1 -0
- package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/completable.js +41 -0
- package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/index.js +429 -0
- package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js +917 -0
- package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/sseKeepAlive.js +13 -0
- package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/webStandardStreamableHttp.js +949 -0
- package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-compat.js +228 -0
- package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/server/zod-json-schema-compat.js +51 -0
- package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/mediaType.js +57 -0
- package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/protocol.js +1107 -0
- package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/toolNameValidation.js +92 -0
- package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/shared/uriTemplate.js +239 -0
- package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/types.js +2065 -0
- package/.output/server/node_modules/@modelcontextprotocol/sdk/dist/esm/validation/ajv-provider.js +87 -0
- package/.output/server/node_modules/@modelcontextprotocol/sdk/package.json +165 -0
- package/.output/server/node_modules/@phc/format/index.js +229 -0
- package/.output/server/node_modules/@phc/format/package.json +60 -0
- package/.output/server/node_modules/@poppinss/exception/build/index.js +44 -0
- package/.output/server/node_modules/@poppinss/exception/package.json +109 -0
- package/.output/server/node_modules/@poppinss/object-builder/build/index.js +49 -0
- package/.output/server/node_modules/@poppinss/object-builder/package.json +112 -0
- package/.output/server/node_modules/@poppinss/string/build/index.js +2 -0
- package/.output/server/node_modules/@poppinss/string/build/string-DVIVpZLG.js +737 -0
- package/.output/server/node_modules/@poppinss/string/package.json +131 -0
- package/.output/server/node_modules/@poppinss/utils/build/chunk-2KG3PWR4.js +17 -0
- package/.output/server/node_modules/@poppinss/utils/build/chunk-4V5ON6P7.js +7 -0
- package/.output/server/node_modules/@poppinss/utils/build/chunk-EJKUJ44Y.js +12 -0
- package/.output/server/node_modules/@poppinss/utils/build/chunk-H54AK3PI.js +7 -0
- package/.output/server/node_modules/@poppinss/utils/build/chunk-XHQBV7AF.js +39 -0
- package/.output/server/node_modules/@poppinss/utils/build/index.js +365 -0
- package/.output/server/node_modules/@poppinss/utils/build/lodash/main.cjs +39 -0
- package/.output/server/node_modules/@poppinss/utils/package.json +153 -0
- package/.output/server/node_modules/@vue/compiler-core/dist/compiler-core.cjs.prod.js +6801 -0
- package/.output/server/node_modules/@vue/compiler-core/package.json +58 -0
- package/.output/server/node_modules/@vue/compiler-dom/dist/compiler-dom.cjs.prod.js +692 -0
- package/.output/server/node_modules/@vue/compiler-dom/package.json +57 -0
- package/.output/server/node_modules/@vue/compiler-ssr/dist/compiler-ssr.cjs.js +1420 -0
- package/.output/server/node_modules/@vue/compiler-ssr/package.json +34 -0
- package/.output/server/node_modules/@vue/devtools-kit/dist/index.cjs +6781 -0
- package/.output/server/node_modules/@vue/devtools-kit/package.json +45 -0
- package/.output/server/node_modules/@vue/devtools-shared/dist/index.cjs +378 -0
- package/.output/server/node_modules/@vue/devtools-shared/package.json +35 -0
- package/.output/server/node_modules/@vue/reactivity/dist/reactivity.cjs.prod.js +1903 -0
- package/.output/server/node_modules/@vue/reactivity/package.json +55 -0
- package/.output/server/node_modules/@vue/runtime-core/dist/runtime-core.cjs.prod.js +6976 -0
- package/.output/server/node_modules/@vue/runtime-core/package.json +52 -0
- package/.output/server/node_modules/@vue/runtime-dom/dist/runtime-dom.cjs.prod.js +1841 -0
- package/.output/server/node_modules/@vue/runtime-dom/package.json +60 -0
- package/.output/server/node_modules/@vue/server-renderer/dist/server-renderer.cjs.prod.js +904 -0
- package/.output/server/node_modules/@vue/server-renderer/package.json +53 -0
- package/.output/server/node_modules/@vue/shared/dist/shared.cjs.prod.js +609 -0
- package/.output/server/node_modules/@vue/shared/package.json +47 -0
- package/.output/server/node_modules/@xterm/addon-fit/lib/addon-fit.js +2 -0
- package/.output/server/node_modules/@xterm/addon-fit/package.json +26 -0
- package/.output/server/node_modules/@xterm/xterm/lib/xterm.js +2 -0
- package/.output/server/node_modules/@xterm/xterm/package.json +111 -0
- package/.output/server/node_modules/agent-base/dist/src/index.js +203 -0
- package/.output/server/node_modules/agent-base/dist/src/promisify.js +18 -0
- package/.output/server/node_modules/agent-base/package.json +64 -0
- package/.output/server/node_modules/ajv/dist/ajv.js +50 -0
- package/.output/server/node_modules/ajv/dist/compile/codegen/code.js +156 -0
- package/.output/server/node_modules/ajv/dist/compile/codegen/index.js +697 -0
- package/.output/server/node_modules/ajv/dist/compile/codegen/scope.js +143 -0
- package/.output/server/node_modules/ajv/dist/compile/errors.js +123 -0
- package/.output/server/node_modules/ajv/dist/compile/index.js +242 -0
- package/.output/server/node_modules/ajv/dist/compile/names.js +28 -0
- package/.output/server/node_modules/ajv/dist/compile/ref_error.js +12 -0
- package/.output/server/node_modules/ajv/dist/compile/resolve.js +155 -0
- package/.output/server/node_modules/ajv/dist/compile/rules.js +26 -0
- package/.output/server/node_modules/ajv/dist/compile/util.js +178 -0
- package/.output/server/node_modules/ajv/dist/compile/validate/applicability.js +19 -0
- package/.output/server/node_modules/ajv/dist/compile/validate/boolSchema.js +50 -0
- package/.output/server/node_modules/ajv/dist/compile/validate/dataType.js +203 -0
- package/.output/server/node_modules/ajv/dist/compile/validate/defaults.js +35 -0
- package/.output/server/node_modules/ajv/dist/compile/validate/index.js +520 -0
- package/.output/server/node_modules/ajv/dist/compile/validate/keyword.js +124 -0
- package/.output/server/node_modules/ajv/dist/compile/validate/subschema.js +81 -0
- package/.output/server/node_modules/ajv/dist/core.js +618 -0
- package/.output/server/node_modules/ajv/dist/refs/data.json +13 -0
- package/.output/server/node_modules/ajv/dist/refs/json-schema-draft-07.json +151 -0
- package/.output/server/node_modules/ajv/dist/runtime/equal.js +7 -0
- package/.output/server/node_modules/ajv/dist/runtime/ucs2length.js +24 -0
- package/.output/server/node_modules/ajv/dist/runtime/uri.js +6 -0
- package/.output/server/node_modules/ajv/dist/runtime/validation_error.js +11 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/additionalItems.js +49 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/additionalProperties.js +106 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/allOf.js +23 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/anyOf.js +12 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/contains.js +95 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/dependencies.js +85 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/if.js +66 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/index.js +44 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/items.js +52 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/items2020.js +30 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/not.js +26 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/oneOf.js +60 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/patternProperties.js +75 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/prefixItems.js +12 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/properties.js +54 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/propertyNames.js +38 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/applicator/thenElse.js +13 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/code.js +131 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/core/id.js +10 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/core/index.js +16 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/core/ref.js +122 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/discriminator/index.js +104 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/discriminator/types.js +9 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/draft7.js +17 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/format/format.js +92 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/format/index.js +6 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/metadata.js +18 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/validation/const.js +25 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/validation/enum.js +48 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/validation/index.js +33 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitItems.js +24 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitLength.js +27 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitNumber.js +27 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/validation/limitProperties.js +24 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/validation/multipleOf.js +26 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/validation/pattern.js +33 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/validation/required.js +79 -0
- package/.output/server/node_modules/ajv/dist/vocabularies/validation/uniqueItems.js +64 -0
- package/.output/server/node_modules/ajv/package.json +126 -0
- package/.output/server/node_modules/ajv-formats/dist/formats.js +208 -0
- package/.output/server/node_modules/ajv-formats/dist/index.js +37 -0
- package/.output/server/node_modules/ajv-formats/dist/limit.js +69 -0
- package/.output/server/node_modules/ajv-formats/package.json +74 -0
- package/.output/server/node_modules/asynckit/index.js +6 -0
- package/.output/server/node_modules/asynckit/lib/abort.js +29 -0
- package/.output/server/node_modules/asynckit/lib/async.js +34 -0
- package/.output/server/node_modules/asynckit/lib/defer.js +26 -0
- package/.output/server/node_modules/asynckit/lib/iterate.js +75 -0
- package/.output/server/node_modules/asynckit/lib/state.js +37 -0
- package/.output/server/node_modules/asynckit/lib/terminator.js +29 -0
- package/.output/server/node_modules/asynckit/package.json +63 -0
- package/.output/server/node_modules/asynckit/parallel.js +43 -0
- package/.output/server/node_modules/asynckit/serial.js +17 -0
- package/.output/server/node_modules/asynckit/serialOrdered.js +75 -0
- package/.output/server/node_modules/axios/index.js +45 -0
- package/.output/server/node_modules/axios/lib/adapters/adapters.js +132 -0
- package/.output/server/node_modules/axios/lib/adapters/fetch.js +643 -0
- package/.output/server/node_modules/axios/lib/adapters/http.js +1406 -0
- package/.output/server/node_modules/axios/lib/adapters/xhr.js +228 -0
- package/.output/server/node_modules/axios/lib/axios.js +89 -0
- package/.output/server/node_modules/axios/lib/cancel/CancelToken.js +135 -0
- package/.output/server/node_modules/axios/lib/cancel/CanceledError.js +22 -0
- package/.output/server/node_modules/axios/lib/cancel/isCancel.js +5 -0
- package/.output/server/node_modules/axios/lib/core/Axios.js +301 -0
- package/.output/server/node_modules/axios/lib/core/AxiosError.js +219 -0
- package/.output/server/node_modules/axios/lib/core/AxiosHeaders.js +474 -0
- package/.output/server/node_modules/axios/lib/core/InterceptorManager.js +72 -0
- package/.output/server/node_modules/axios/lib/core/buildFullPath.js +88 -0
- package/.output/server/node_modules/axios/lib/core/dispatchRequest.js +89 -0
- package/.output/server/node_modules/axios/lib/core/mergeConfig.js +174 -0
- package/.output/server/node_modules/axios/lib/core/setFormDataHeaders.js +27 -0
- package/.output/server/node_modules/axios/lib/core/settle.js +27 -0
- package/.output/server/node_modules/axios/lib/core/transformData.js +28 -0
- package/.output/server/node_modules/axios/lib/defaults/index.js +177 -0
- package/.output/server/node_modules/axios/lib/defaults/transitional.js +10 -0
- package/.output/server/node_modules/axios/lib/env/data.js +1 -0
- package/.output/server/node_modules/axios/lib/helpers/AxiosTransformStream.js +156 -0
- package/.output/server/node_modules/axios/lib/helpers/AxiosURLSearchParams.js +59 -0
- package/.output/server/node_modules/axios/lib/helpers/Http2Sessions.js +119 -0
- package/.output/server/node_modules/axios/lib/helpers/HttpStatusCode.js +78 -0
- package/.output/server/node_modules/axios/lib/helpers/ZlibHeaderTransformStream.js +29 -0
- package/.output/server/node_modules/axios/lib/helpers/bind.js +14 -0
- package/.output/server/node_modules/axios/lib/helpers/buildURL.js +69 -0
- package/.output/server/node_modules/axios/lib/helpers/callbackify.js +18 -0
- package/.output/server/node_modules/axios/lib/helpers/combineURLs.js +23 -0
- package/.output/server/node_modules/axios/lib/helpers/composeSignals.js +68 -0
- package/.output/server/node_modules/axios/lib/helpers/cookies.js +64 -0
- package/.output/server/node_modules/axios/lib/helpers/estimateDataURLDecodedBytes.js +166 -0
- package/.output/server/node_modules/axios/lib/helpers/formDataToJSON.js +125 -0
- package/.output/server/node_modules/axios/lib/helpers/formDataToStream.js +119 -0
- package/.output/server/node_modules/axios/lib/helpers/fromDataURI.js +68 -0
- package/.output/server/node_modules/axios/lib/helpers/isAbsoluteURL.js +19 -0
- package/.output/server/node_modules/axios/lib/helpers/isAxiosError.js +14 -0
- package/.output/server/node_modules/axios/lib/helpers/isURLSameOrigin.js +16 -0
- package/.output/server/node_modules/axios/lib/helpers/parseHeaders.js +71 -0
- package/.output/server/node_modules/axios/lib/helpers/parseProtocol.js +6 -0
- package/.output/server/node_modules/axios/lib/helpers/progressEventReducer.js +54 -0
- package/.output/server/node_modules/axios/lib/helpers/readBlob.js +15 -0
- package/.output/server/node_modules/axios/lib/helpers/resolveConfig.js +105 -0
- package/.output/server/node_modules/axios/lib/helpers/sanitizeHeaderValue.js +60 -0
- package/.output/server/node_modules/axios/lib/helpers/shouldBypassProxy.js +329 -0
- package/.output/server/node_modules/axios/lib/helpers/speedometer.js +55 -0
- package/.output/server/node_modules/axios/lib/helpers/spread.js +28 -0
- package/.output/server/node_modules/axios/lib/helpers/throttle.js +44 -0
- package/.output/server/node_modules/axios/lib/helpers/toFormData.js +286 -0
- package/.output/server/node_modules/axios/lib/helpers/toURLEncodedForm.js +19 -0
- package/.output/server/node_modules/axios/lib/helpers/trackStream.js +89 -0
- package/.output/server/node_modules/axios/lib/helpers/validator.js +112 -0
- package/.output/server/node_modules/axios/lib/platform/common/utils.js +52 -0
- package/.output/server/node_modules/axios/lib/platform/index.js +7 -0
- package/.output/server/node_modules/axios/lib/platform/node/classes/Buffer.js +11 -0
- package/.output/server/node_modules/axios/lib/platform/node/classes/FormData.js +3 -0
- package/.output/server/node_modules/axios/lib/platform/node/classes/URLSearchParams.js +4 -0
- package/.output/server/node_modules/axios/lib/platform/node/index.js +37 -0
- package/.output/server/node_modules/axios/lib/utils.js +1029 -0
- package/.output/server/node_modules/axios/package.json +203 -0
- package/.output/server/node_modules/birpc/dist/index.cjs +296 -0
- package/.output/server/node_modules/birpc/package.json +57 -0
- package/.output/server/node_modules/call-bind-apply-helpers/actualApply.js +10 -0
- package/.output/server/node_modules/call-bind-apply-helpers/functionApply.js +4 -0
- package/.output/server/node_modules/call-bind-apply-helpers/functionCall.js +4 -0
- package/.output/server/node_modules/call-bind-apply-helpers/index.js +15 -0
- package/.output/server/node_modules/call-bind-apply-helpers/package.json +85 -0
- package/.output/server/node_modules/call-bind-apply-helpers/reflectApply.js +4 -0
- package/.output/server/node_modules/case-anything/dist/core.js +242 -0
- package/.output/server/node_modules/case-anything/dist/index.js +1 -0
- package/.output/server/node_modules/case-anything/dist/utils.js +90 -0
- package/.output/server/node_modules/case-anything/package.json +61 -0
- package/.output/server/node_modules/combined-stream/lib/combined_stream.js +208 -0
- package/.output/server/node_modules/combined-stream/package.json +25 -0
- package/.output/server/node_modules/content-type/index.js +225 -0
- package/.output/server/node_modules/content-type/package.json +42 -0
- package/.output/server/node_modules/debug/package.json +64 -0
- package/.output/server/node_modules/debug/src/browser.js +272 -0
- package/.output/server/node_modules/debug/src/common.js +292 -0
- package/.output/server/node_modules/debug/src/index.js +10 -0
- package/.output/server/node_modules/debug/src/node.js +263 -0
- package/.output/server/node_modules/delayed-stream/lib/delayed_stream.js +107 -0
- package/.output/server/node_modules/delayed-stream/package.json +27 -0
- package/.output/server/node_modules/devalue/index.js +17 -0
- package/.output/server/node_modules/devalue/package.json +39 -0
- package/.output/server/node_modules/devalue/src/base64.js +60 -0
- package/.output/server/node_modules/devalue/src/constants.js +12 -0
- package/.output/server/node_modules/devalue/src/operations.js +193 -0
- package/.output/server/node_modules/devalue/src/parse.js +270 -0
- package/.output/server/node_modules/devalue/src/stringify.js +428 -0
- package/.output/server/node_modules/devalue/src/uneval.js +582 -0
- package/.output/server/node_modules/devalue/src/utils.js +185 -0
- package/.output/server/node_modules/dunder-proto/get.js +30 -0
- package/.output/server/node_modules/dunder-proto/package.json +76 -0
- package/.output/server/node_modules/entities/dist/commonjs/decode-codepoint.js +77 -0
- package/.output/server/node_modules/entities/dist/commonjs/decode.js +568 -0
- package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-html.js +7 -0
- package/.output/server/node_modules/entities/dist/commonjs/generated/decode-data-xml.js +7 -0
- package/.output/server/node_modules/entities/dist/commonjs/internal/bin-trie-flags.js +21 -0
- package/.output/server/node_modules/entities/dist/commonjs/internal/decode-shared.js +31 -0
- package/.output/server/node_modules/entities/dist/commonjs/package.json +3 -0
- package/.output/server/node_modules/entities/package.json +120 -0
- package/.output/server/node_modules/es-define-property/index.js +14 -0
- package/.output/server/node_modules/es-define-property/package.json +81 -0
- package/.output/server/node_modules/es-errors/eval.js +4 -0
- package/.output/server/node_modules/es-errors/index.js +4 -0
- package/.output/server/node_modules/es-errors/package.json +80 -0
- package/.output/server/node_modules/es-errors/range.js +4 -0
- package/.output/server/node_modules/es-errors/ref.js +4 -0
- package/.output/server/node_modules/es-errors/syntax.js +4 -0
- package/.output/server/node_modules/es-errors/type.js +4 -0
- package/.output/server/node_modules/es-errors/uri.js +4 -0
- package/.output/server/node_modules/es-object-atoms/index.js +4 -0
- package/.output/server/node_modules/es-object-atoms/package.json +79 -0
- package/.output/server/node_modules/es-set-tostringtag/index.js +35 -0
- package/.output/server/node_modules/es-set-tostringtag/package.json +78 -0
- package/.output/server/node_modules/estree-walker/dist/umd/estree-walker.js +344 -0
- package/.output/server/node_modules/estree-walker/package.json +37 -0
- package/.output/server/node_modules/fast-deep-equal/index.js +46 -0
- package/.output/server/node_modules/fast-deep-equal/package.json +61 -0
- package/.output/server/node_modules/fast-uri/index.js +459 -0
- package/.output/server/node_modules/fast-uri/lib/schemes.js +267 -0
- package/.output/server/node_modules/fast-uri/lib/utils.js +443 -0
- package/.output/server/node_modules/fast-uri/package.json +68 -0
- package/.output/server/node_modules/flattie/dist/index.mjs +25 -0
- package/.output/server/node_modules/flattie/package.json +48 -0
- package/.output/server/node_modules/follow-redirects/debug.js +15 -0
- package/.output/server/node_modules/follow-redirects/index.js +709 -0
- package/.output/server/node_modules/follow-redirects/package.json +58 -0
- package/.output/server/node_modules/form-data/lib/form_data.js +506 -0
- package/.output/server/node_modules/form-data/lib/populate.js +10 -0
- package/.output/server/node_modules/form-data/package.json +82 -0
- package/.output/server/node_modules/function-bind/implementation.js +84 -0
- package/.output/server/node_modules/function-bind/index.js +5 -0
- package/.output/server/node_modules/function-bind/package.json +87 -0
- package/.output/server/node_modules/get-intrinsic/index.js +378 -0
- package/.output/server/node_modules/get-intrinsic/package.json +97 -0
- package/.output/server/node_modules/get-proto/Object.getPrototypeOf.js +6 -0
- package/.output/server/node_modules/get-proto/Reflect.getPrototypeOf.js +4 -0
- package/.output/server/node_modules/get-proto/index.js +27 -0
- package/.output/server/node_modules/get-proto/package.json +81 -0
- package/.output/server/node_modules/gopd/gOPD.js +4 -0
- package/.output/server/node_modules/gopd/index.js +15 -0
- package/.output/server/node_modules/gopd/package.json +77 -0
- package/.output/server/node_modules/has-flag/index.js +8 -0
- package/.output/server/node_modules/has-flag/package.json +46 -0
- package/.output/server/node_modules/has-symbols/index.js +14 -0
- package/.output/server/node_modules/has-symbols/package.json +111 -0
- package/.output/server/node_modules/has-symbols/shams.js +45 -0
- package/.output/server/node_modules/has-tostringtag/package.json +108 -0
- package/.output/server/node_modules/has-tostringtag/shams.js +8 -0
- package/.output/server/node_modules/hasown/index.js +8 -0
- package/.output/server/node_modules/hasown/package.json +91 -0
- package/.output/server/node_modules/https-proxy-agent/dist/agent.js +177 -0
- package/.output/server/node_modules/https-proxy-agent/dist/index.js +14 -0
- package/.output/server/node_modules/https-proxy-agent/dist/parse-proxy-response.js +66 -0
- package/.output/server/node_modules/https-proxy-agent/package.json +56 -0
- package/.output/server/node_modules/jose/dist/webapi/index.js +32 -0
- package/.output/server/node_modules/jose/dist/webapi/jwe/compact/decrypt.js +9 -0
- package/.output/server/node_modules/jose/dist/webapi/jwe/compact/encrypt.js +27 -0
- package/.output/server/node_modules/jose/dist/webapi/jwe/flattened/decrypt.js +11 -0
- package/.output/server/node_modules/jose/dist/webapi/jwe/flattened/encrypt.js +72 -0
- package/.output/server/node_modules/jose/dist/webapi/jwe/general/decrypt.js +51 -0
- package/.output/server/node_modules/jose/dist/webapi/jwe/general/encrypt.js +166 -0
- package/.output/server/node_modules/jose/dist/webapi/jwk/embedded.js +19 -0
- package/.output/server/node_modules/jose/dist/webapi/jwk/thumbprint.js +68 -0
- package/.output/server/node_modules/jose/dist/webapi/jwks/local.js +78 -0
- package/.output/server/node_modules/jose/dist/webapi/jwks/remote.js +170 -0
- package/.output/server/node_modules/jose/dist/webapi/jws/compact/sign.js +21 -0
- package/.output/server/node_modules/jose/dist/webapi/jws/compact/verify.js +9 -0
- package/.output/server/node_modules/jose/dist/webapi/jws/flattened/sign.js +31 -0
- package/.output/server/node_modules/jose/dist/webapi/jws/flattened/verify.js +24 -0
- package/.output/server/node_modules/jose/dist/webapi/jws/general/sign.js +74 -0
- package/.output/server/node_modules/jose/dist/webapi/jws/general/verify.js +44 -0
- package/.output/server/node_modules/jose/dist/webapi/jwt/decrypt.js +23 -0
- package/.output/server/node_modules/jose/dist/webapi/jwt/encrypt.js +101 -0
- package/.output/server/node_modules/jose/dist/webapi/jwt/sign.js +51 -0
- package/.output/server/node_modules/jose/dist/webapi/jwt/unsecured.js +64 -0
- package/.output/server/node_modules/jose/dist/webapi/jwt/verify.js +15 -0
- package/.output/server/node_modules/jose/dist/webapi/key/export.js +44 -0
- package/.output/server/node_modules/jose/dist/webapi/key/generate_key_pair.js +48 -0
- package/.output/server/node_modules/jose/dist/webapi/key/generate_secret.js +40 -0
- package/.output/server/node_modules/jose/dist/webapi/key/import.js +57 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/asn1.js +174 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/base64.js +22 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/buffer_utils.js +44 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/content_encryption.js +142 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/crypto_key.js +28 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/deflate.js +44 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/helpers.js +42 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/invalid_key_input.js +26 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/is_key_like.js +17 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/jwe_algorithms.js +107 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/jwe_decrypt.js +186 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/jwe_encrypt.js +110 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/jwk_to_key.js +17 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/jws_algorithms.js +73 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/jws_sign.js +74 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/jws_verify.js +107 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +197 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/key.js +132 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/key_algorithm.js +10 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/key_descriptor.js +7 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/key_management.js +256 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/options.js +48 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/signing.js +26 -0
- package/.output/server/node_modules/jose/dist/webapi/lib/type_checks.js +35 -0
- package/.output/server/node_modules/jose/dist/webapi/util/base64url.js +39 -0
- package/.output/server/node_modules/jose/dist/webapi/util/decode_jwt.js +32 -0
- package/.output/server/node_modules/jose/dist/webapi/util/decode_protected_header.js +24 -0
- package/.output/server/node_modules/jose/dist/webapi/util/errors.js +99 -0
- package/.output/server/node_modules/jose/package.json +198 -0
- package/.output/server/node_modules/js-yaml/dist/js-yaml.mjs +3074 -0
- package/.output/server/node_modules/js-yaml/package.json +83 -0
- package/.output/server/node_modules/json-schema-traverse/index.js +93 -0
- package/.output/server/node_modules/json-schema-traverse/package.json +43 -0
- package/.output/server/node_modules/math-intrinsics/abs.js +4 -0
- package/.output/server/node_modules/math-intrinsics/floor.js +4 -0
- package/.output/server/node_modules/math-intrinsics/isNaN.js +6 -0
- package/.output/server/node_modules/math-intrinsics/max.js +4 -0
- package/.output/server/node_modules/math-intrinsics/min.js +4 -0
- package/.output/server/node_modules/math-intrinsics/package.json +86 -0
- package/.output/server/node_modules/math-intrinsics/pow.js +4 -0
- package/.output/server/node_modules/math-intrinsics/round.js +4 -0
- package/.output/server/node_modules/math-intrinsics/sign.js +11 -0
- package/.output/server/node_modules/mime-db/db.json +8519 -0
- package/.output/server/node_modules/mime-db/index.js +12 -0
- package/.output/server/node_modules/mime-db/package.json +60 -0
- package/.output/server/node_modules/mime-types/index.js +188 -0
- package/.output/server/node_modules/mime-types/package.json +44 -0
- package/.output/server/node_modules/ms/index.js +162 -0
- package/.output/server/node_modules/ms/package.json +38 -0
- package/.output/server/node_modules/nostics/dist/formatters/ansi.mjs +19 -0
- package/.output/server/node_modules/nostics/dist/index.mjs +187 -0
- package/.output/server/node_modules/nostics/package.json +125 -0
- package/.output/server/node_modules/oauth4webapi/build/index.js +2506 -0
- package/.output/server/node_modules/oauth4webapi/package.json +105 -0
- package/.output/server/node_modules/openid-client/build/index.js +1357 -0
- package/.output/server/node_modules/openid-client/package.json +122 -0
- package/.output/server/node_modules/perfect-debounce/dist/index.cjs +59 -0
- package/.output/server/node_modules/perfect-debounce/package.json +44 -0
- package/.output/server/node_modules/pinia/dist/pinia.prod.cjs +719 -0
- package/.output/server/node_modules/pinia/package.json +94 -0
- package/.output/server/node_modules/pluralize/package.json +40 -0
- package/.output/server/node_modules/pluralize/pluralize.js +503 -0
- package/.output/server/node_modules/proxy-from-env/index.js +103 -0
- package/.output/server/node_modules/proxy-from-env/package.json +46 -0
- package/.output/server/node_modules/safe-stable-stringify/esm/package.json +4 -0
- package/.output/server/node_modules/safe-stable-stringify/esm/wrapper.js +6 -0
- package/.output/server/node_modules/safe-stable-stringify/index.js +625 -0
- package/.output/server/node_modules/safe-stable-stringify/package.json +65 -0
- package/.output/server/node_modules/secure-json-parse/index.js +161 -0
- package/.output/server/node_modules/secure-json-parse/package.json +74 -0
- package/.output/server/node_modules/slugify/package.json +42 -0
- package/.output/server/node_modules/slugify/slugify.js +69 -0
- package/.output/server/node_modules/source-map-js/lib/array-set.js +121 -0
- package/.output/server/node_modules/source-map-js/lib/base64-vlq.js +140 -0
- package/.output/server/node_modules/source-map-js/lib/base64.js +67 -0
- package/.output/server/node_modules/source-map-js/lib/binary-search.js +111 -0
- package/.output/server/node_modules/source-map-js/lib/mapping-list.js +79 -0
- package/.output/server/node_modules/source-map-js/lib/quick-sort.js +132 -0
- package/.output/server/node_modules/source-map-js/lib/source-map-consumer.js +1188 -0
- package/.output/server/node_modules/source-map-js/lib/source-map-generator.js +444 -0
- package/.output/server/node_modules/source-map-js/lib/source-node.js +413 -0
- package/.output/server/node_modules/source-map-js/lib/util.js +594 -0
- package/.output/server/node_modules/source-map-js/package.json +71 -0
- package/.output/server/node_modules/source-map-js/source-map.js +8 -0
- package/.output/server/node_modules/supports-color/index.js +135 -0
- package/.output/server/node_modules/supports-color/package.json +53 -0
- package/.output/server/node_modules/three/build/three.cjs +80028 -0
- package/.output/server/node_modules/three/build/three.core.js +60007 -0
- package/.output/server/node_modules/three/build/three.module.js +19610 -0
- package/.output/server/node_modules/three/examples/jsm/environments/RoomEnvironment.js +185 -0
- package/.output/server/node_modules/three/examples/jsm/loaders/GLTFLoader.js +4860 -0
- package/.output/server/node_modules/three/examples/jsm/utils/BufferGeometryUtils.js +1501 -0
- package/.output/server/node_modules/three/examples/jsm/utils/SkeletonUtils.js +496 -0
- package/.output/server/node_modules/three/package.json +123 -0
- package/.output/server/node_modules/ufo/dist/index.mjs +645 -0
- package/.output/server/node_modules/ufo/package.json +48 -0
- package/.output/server/node_modules/unhead/dist/client.mjs +22 -0
- package/.output/server/node_modules/unhead/dist/index.mjs +52 -0
- package/.output/server/node_modules/unhead/dist/legacy.mjs +33 -0
- package/.output/server/node_modules/unhead/dist/minify.mjs +172 -0
- package/.output/server/node_modules/unhead/dist/parser.mjs +518 -0
- package/.output/server/node_modules/unhead/dist/plugins.mjs +631 -0
- package/.output/server/node_modules/unhead/dist/scripts.node.mjs +6 -0
- package/.output/server/node_modules/unhead/dist/server.mjs +99 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.10KEJHqy.mjs +184 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BCcw-xUY.mjs +19 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BEmVMkeA.mjs +673 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BGFxPGPQ.mjs +47 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BTzUdyNs.mjs +194 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.Bb4d5b9h.mjs +67 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.Bf_fPVYA.mjs +6 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.Bm4Y6XQI.mjs +17 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.BuspQZgK.mjs +231 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CGPOfp5O.mjs +32 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CHEy9ana.mjs +7 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.CTjuIdzk.mjs +27 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.D7HkBzZn.mjs +59 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.DNKiVLV7.mjs +400 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.JIneUUHd.mjs +264 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.q9F_9EzH.mjs +588 -0
- package/.output/server/node_modules/unhead/dist/shared/unhead.sGLr_XKf.mjs +201 -0
- package/.output/server/node_modules/unhead/dist/stream/client.mjs +28 -0
- package/.output/server/node_modules/unhead/dist/stream/iife.mjs +2 -0
- package/.output/server/node_modules/unhead/dist/stream/server.mjs +264 -0
- package/.output/server/node_modules/unhead/dist/utils.mjs +7 -0
- package/.output/server/node_modules/unhead/package.json +179 -0
- package/.output/server/node_modules/vue/dist/vue.cjs.js +80 -0
- package/.output/server/node_modules/vue/dist/vue.cjs.prod.js +66 -0
- package/.output/server/node_modules/vue/index.js +7 -0
- package/.output/server/node_modules/vue/index.mjs +1 -0
- package/.output/server/node_modules/vue/package.json +112 -0
- package/.output/server/node_modules/vue/server-renderer/index.mjs +1 -0
- package/.output/server/node_modules/vue-bundle-renderer/dist/runtime.mjs +278 -0
- package/.output/server/node_modules/vue-bundle-renderer/package.json +54 -0
- package/.output/server/node_modules/vue-router/dist/devtools-EWN81iOl.mjs +1220 -0
- package/.output/server/node_modules/vue-router/dist/vue-router.mjs +1557 -0
- package/.output/server/node_modules/vue-router/package.json +153 -0
- package/.output/server/node_modules/vue-router/vue-router.node.mjs +2 -0
- package/.output/server/node_modules/zod/index.js +4 -0
- package/.output/server/node_modules/zod/package.json +118 -0
- package/.output/server/node_modules/zod/v3/ZodError.js +133 -0
- package/.output/server/node_modules/zod/v3/errors.js +9 -0
- package/.output/server/node_modules/zod/v3/external.js +6 -0
- package/.output/server/node_modules/zod/v3/helpers/errorUtil.js +6 -0
- package/.output/server/node_modules/zod/v3/helpers/parseUtil.js +109 -0
- package/.output/server/node_modules/zod/v3/helpers/typeAliases.js +1 -0
- package/.output/server/node_modules/zod/v3/helpers/util.js +133 -0
- package/.output/server/node_modules/zod/v3/index.js +4 -0
- package/.output/server/node_modules/zod/v3/locales/en.js +109 -0
- package/.output/server/node_modules/zod/v3/types.js +3693 -0
- package/.output/server/node_modules/zod/v4/classic/checks.js +1 -0
- package/.output/server/node_modules/zod/v4/classic/coerce.js +17 -0
- package/.output/server/node_modules/zod/v4/classic/compat.js +27 -0
- package/.output/server/node_modules/zod/v4/classic/errors.js +41 -0
- package/.output/server/node_modules/zod/v4/classic/external.js +18 -0
- package/.output/server/node_modules/zod/v4/classic/index.js +4 -0
- package/.output/server/node_modules/zod/v4/classic/iso.js +30 -0
- package/.output/server/node_modules/zod/v4/classic/parse.js +6 -0
- package/.output/server/node_modules/zod/v4/classic/schemas.js +1006 -0
- package/.output/server/node_modules/zod/v4/core/api.js +906 -0
- package/.output/server/node_modules/zod/v4/core/checks.js +565 -0
- package/.output/server/node_modules/zod/v4/core/core.js +61 -0
- package/.output/server/node_modules/zod/v4/core/doc.js +35 -0
- package/.output/server/node_modules/zod/v4/core/errors.js +195 -0
- package/.output/server/node_modules/zod/v4/core/function.js +75 -0
- package/.output/server/node_modules/zod/v4/core/index.js +15 -0
- package/.output/server/node_modules/zod/v4/core/json-schema.js +1 -0
- package/.output/server/node_modules/zod/v4/core/parse.js +57 -0
- package/.output/server/node_modules/zod/v4/core/regexes.js +95 -0
- package/.output/server/node_modules/zod/v4/core/registries.js +51 -0
- package/.output/server/node_modules/zod/v4/core/schemas.js +1717 -0
- package/.output/server/node_modules/zod/v4/core/to-json-schema.js +849 -0
- package/.output/server/node_modules/zod/v4/core/util.js +493 -0
- package/.output/server/node_modules/zod/v4/core/versions.js +5 -0
- package/.output/server/node_modules/zod/v4/index.js +3 -0
- package/.output/server/node_modules/zod/v4/locales/ar.js +116 -0
- package/.output/server/node_modules/zod/v4/locales/az.js +115 -0
- package/.output/server/node_modules/zod/v4/locales/be.js +164 -0
- package/.output/server/node_modules/zod/v4/locales/ca.js +118 -0
- package/.output/server/node_modules/zod/v4/locales/cs.js +135 -0
- package/.output/server/node_modules/zod/v4/locales/de.js +116 -0
- package/.output/server/node_modules/zod/v4/locales/en.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/eo.js +116 -0
- package/.output/server/node_modules/zod/v4/locales/es.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/fa.js +122 -0
- package/.output/server/node_modules/zod/v4/locales/fi.js +122 -0
- package/.output/server/node_modules/zod/v4/locales/fr-CA.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/fr.js +116 -0
- package/.output/server/node_modules/zod/v4/locales/he.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/hu.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/id.js +116 -0
- package/.output/server/node_modules/zod/v4/locales/index.js +39 -0
- package/.output/server/node_modules/zod/v4/locales/it.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/ja.js +115 -0
- package/.output/server/node_modules/zod/v4/locales/kh.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/ko.js +121 -0
- package/.output/server/node_modules/zod/v4/locales/mk.js +118 -0
- package/.output/server/node_modules/zod/v4/locales/ms.js +116 -0
- package/.output/server/node_modules/zod/v4/locales/nl.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/no.js +116 -0
- package/.output/server/node_modules/zod/v4/locales/ota.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/pl.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/ps.js +122 -0
- package/.output/server/node_modules/zod/v4/locales/pt.js +116 -0
- package/.output/server/node_modules/zod/v4/locales/ru.js +164 -0
- package/.output/server/node_modules/zod/v4/locales/sl.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/sv.js +118 -0
- package/.output/server/node_modules/zod/v4/locales/ta.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/th.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/tr.js +115 -0
- package/.output/server/node_modules/zod/v4/locales/ua.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/ur.js +117 -0
- package/.output/server/node_modules/zod/v4/locales/vi.js +116 -0
- package/.output/server/node_modules/zod/v4/locales/zh-CN.js +116 -0
- package/.output/server/node_modules/zod/v4/locales/zh-TW.js +117 -0
- package/.output/server/node_modules/zod/v4/mini/checks.js +1 -0
- package/.output/server/node_modules/zod/v4/mini/coerce.js +17 -0
- package/.output/server/node_modules/zod/v4/mini/external.js +13 -0
- package/.output/server/node_modules/zod/v4/mini/index.js +3 -0
- package/.output/server/node_modules/zod/v4/mini/iso.js +30 -0
- package/.output/server/node_modules/zod/v4/mini/parse.js +1 -0
- package/.output/server/node_modules/zod/v4/mini/schemas.js +732 -0
- package/.output/server/node_modules/zod/v4-mini/index.js +1 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/Options.js +46 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/Refs.js +22 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/errorMessages.js +14 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/getRelativePath.js +8 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/index.js +40 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/package.json +1 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parseDef.js +62 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parseTypes.js +1 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/any.js +17 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/array.js +26 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/bigint.js +49 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/boolean.js +5 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/branded.js +4 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/catch.js +4 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/date.js +46 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/default.js +7 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/effects.js +7 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/enum.js +6 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/intersection.js +52 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/literal.js +21 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/map.js +26 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/nativeEnum.js +16 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/never.js +11 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/null.js +10 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/nullable.js +33 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/number.js +52 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/object.js +72 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/optional.js +21 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/pipeline.js +20 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/promise.js +4 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/readonly.js +4 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/record.js +61 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/set.js +20 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/string.js +352 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/tuple.js +32 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/undefined.js +6 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/union.js +80 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/parsers/unknown.js +4 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/selectParser.js +105 -0
- package/.output/server/node_modules/zod-to-json-schema/dist/esm/zodToJsonSchema.js +87 -0
- package/.output/server/node_modules/zod-to-json-schema/package.json +85 -0
- package/.output/server/package.json +93 -0
- package/package.json +2 -1
|
@@ -0,0 +1,3923 @@
|
|
|
1
|
+
import { U as Icon, d as useConfigInject_default, X as useInjectDisabled, H as getTransitionName, aa as getTransitionDirection, h as classNames, ab as DefaultRenderEmpty, e as _extends, i as _objectSpread2, k as genComponentStyleHook, C as CloseCircleFilled, Y as LoadingOutlined, p as CloseOutlined, P as PropTypes, y as functionType, s as stringType, x as booleanType, r as someType, F as isValidElement, f as flattenChildren, m as merge, z as resetComponent, ac as resetIcon, a9 as textEllipsis, K as Keyframe } from '../virtual/entry.mjs';
|
|
2
|
+
import { j as getMergedStatus, k as getStatusClassNames, u as useMergedState, v as vc_trigger_default, p as pickAttrs, l as vc_overflow_default, m as vc_resize_observer_default, w as wrapperRaf, B as BaseInput, n as supportsPassive_default, o as SearchOutlined, q as slideDownOut, x as slideUpOut, y as slideDownIn, A as slideUpIn, C as initSlideMotion, D as initMotion } from '../_/SearchOutlined.mjs';
|
|
3
|
+
import { i as initDefaultProps } from './initDefaultProps-DIbWwP4R.mjs';
|
|
4
|
+
import { p as useInjectFormItemContext, F as FormItemInputContext, s as useCompactItemContext, t as omit, v as useState, c as cloneElement, K as KeyCode, w as genCompactItemStyle } from './button-BhbX5ACI.mjs';
|
|
5
|
+
import { createVNode, defineComponent, ref, computed, toRef, watchEffect, shallowRef, Fragment, watch, toRaw, provide, isRef, reactive, toRefs, createTextVNode, nextTick, inject, isVNode, cloneVNode } from 'vue';
|
|
6
|
+
|
|
7
|
+
// This icon file is generated automatically.
|
|
8
|
+
var DownOutlined$1 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M884 256h-75c-5.1 0-9.9 2.5-12.9 6.6L512 654.2 227.9 262.6c-3-4.1-7.8-6.6-12.9-6.6h-75c-6.5 0-10.3 7.4-6.5 12.7l352.6 486.1c12.8 17.6 39 17.6 51.7 0l352.6-486.1c3.9-5.3.1-12.7-6.4-12.7z" } }] }, "name": "down", "theme": "outlined" };
|
|
9
|
+
|
|
10
|
+
function _objectSpread$1(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty$1(target, key, source[key]); }); } return target; }
|
|
11
|
+
|
|
12
|
+
function _defineProperty$1(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
13
|
+
|
|
14
|
+
var DownOutlined = function DownOutlined(props, context) {
|
|
15
|
+
var p = _objectSpread$1({}, props, context.attrs);
|
|
16
|
+
|
|
17
|
+
return createVNode(Icon, _objectSpread$1({}, p, {
|
|
18
|
+
"icon": DownOutlined$1
|
|
19
|
+
}), null);
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
DownOutlined.displayName = 'DownOutlined';
|
|
23
|
+
DownOutlined.inheritAttrs = false;
|
|
24
|
+
|
|
25
|
+
// This icon file is generated automatically.
|
|
26
|
+
var CheckOutlined$1 = { "icon": { "tag": "svg", "attrs": { "viewBox": "64 64 896 896", "focusable": "false" }, "children": [{ "tag": "path", "attrs": { "d": "M912 190h-69.9c-9.8 0-19.1 4.5-25.1 12.2L404.7 724.5 207 474a32 32 0 00-25.1-12.2H112c-6.7 0-10.4 7.7-6.3 12.9l273.9 347c12.8 16.2 37.4 16.2 50.3 0l488.4-618.9c4.1-5.1.4-12.8-6.3-12.8z" } }] }, "name": "check", "theme": "outlined" };
|
|
27
|
+
|
|
28
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? Object(arguments[i]) : {}; var ownKeys = Object.keys(source); if (typeof Object.getOwnPropertySymbols === 'function') { ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function (sym) { return Object.getOwnPropertyDescriptor(source, sym).enumerable; })); } ownKeys.forEach(function (key) { _defineProperty(target, key, source[key]); }); } return target; }
|
|
29
|
+
|
|
30
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
31
|
+
|
|
32
|
+
var CheckOutlined = function CheckOutlined(props, context) {
|
|
33
|
+
var p = _objectSpread({}, props, context.attrs);
|
|
34
|
+
|
|
35
|
+
return createVNode(Icon, _objectSpread({}, p, {
|
|
36
|
+
"icon": CheckOutlined$1
|
|
37
|
+
}), null);
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
CheckOutlined.displayName = 'CheckOutlined';
|
|
41
|
+
CheckOutlined.inheritAttrs = false;
|
|
42
|
+
|
|
43
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/vc-select/utils/valueUtil.js
|
|
44
|
+
function getKey(data, index) {
|
|
45
|
+
const { key } = data;
|
|
46
|
+
let value;
|
|
47
|
+
if ("value" in data) ({value} = data);
|
|
48
|
+
if (key !== null && key !== void 0) return key;
|
|
49
|
+
if (value !== void 0) return value;
|
|
50
|
+
return `rc-index-key-${index}`;
|
|
51
|
+
}
|
|
52
|
+
function fillFieldNames(fieldNames, childrenAsData) {
|
|
53
|
+
const { label, value, options } = fieldNames || {};
|
|
54
|
+
return {
|
|
55
|
+
label: label || (childrenAsData ? "children" : "label"),
|
|
56
|
+
value: value || "value",
|
|
57
|
+
options: options || "options"
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Flat options into flatten list.
|
|
62
|
+
* We use `optionOnly` here is aim to avoid user use nested option group.
|
|
63
|
+
* Here is simply set `key` to the index if not provided.
|
|
64
|
+
*/
|
|
65
|
+
function flattenOptions(options) {
|
|
66
|
+
let { fieldNames, childrenAsData } = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
67
|
+
const flattenList = [];
|
|
68
|
+
const { label: fieldLabel, value: fieldValue, options: fieldOptions } = fillFieldNames(fieldNames, false);
|
|
69
|
+
function dig(list, isGroupOption) {
|
|
70
|
+
list.forEach((data) => {
|
|
71
|
+
const label = data[fieldLabel];
|
|
72
|
+
if (isGroupOption || !(fieldOptions in data)) {
|
|
73
|
+
const value = data[fieldValue];
|
|
74
|
+
flattenList.push({
|
|
75
|
+
key: getKey(data, flattenList.length),
|
|
76
|
+
groupOption: isGroupOption,
|
|
77
|
+
data,
|
|
78
|
+
label,
|
|
79
|
+
value
|
|
80
|
+
});
|
|
81
|
+
} else {
|
|
82
|
+
let grpLabel = label;
|
|
83
|
+
if (grpLabel === void 0 && childrenAsData) grpLabel = data.label;
|
|
84
|
+
flattenList.push({
|
|
85
|
+
key: getKey(data, flattenList.length),
|
|
86
|
+
group: true,
|
|
87
|
+
data,
|
|
88
|
+
label: grpLabel
|
|
89
|
+
});
|
|
90
|
+
dig(data[fieldOptions], true);
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
dig(options, false);
|
|
95
|
+
return flattenList;
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Inject `props` into `option` for legacy usage
|
|
99
|
+
*/
|
|
100
|
+
function injectPropsWithOption(option) {
|
|
101
|
+
const newOption = _extends({}, option);
|
|
102
|
+
if (!("props" in newOption)) Object.defineProperty(newOption, "props", { get() {
|
|
103
|
+
return newOption;
|
|
104
|
+
} });
|
|
105
|
+
return newOption;
|
|
106
|
+
}
|
|
107
|
+
function getSeparatedContent(text, tokens) {
|
|
108
|
+
if (!tokens || !tokens.length) return null;
|
|
109
|
+
let match = false;
|
|
110
|
+
function separate(str, _ref) {
|
|
111
|
+
let [token, ...restTokens] = _ref;
|
|
112
|
+
if (!token) return [str];
|
|
113
|
+
const list = str.split(token);
|
|
114
|
+
match = match || list.length > 1;
|
|
115
|
+
return list.reduce((prevList, unitStr) => [...prevList, ...separate(unitStr, restTokens)], []).filter((unit) => unit);
|
|
116
|
+
}
|
|
117
|
+
const list = separate(text, tokens);
|
|
118
|
+
return match ? list : null;
|
|
119
|
+
}
|
|
120
|
+
//#endregion
|
|
121
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/vc-select/SelectTrigger.js
|
|
122
|
+
var __rest$4 = function(s, e) {
|
|
123
|
+
var t = {};
|
|
124
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
125
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") {
|
|
126
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
127
|
+
}
|
|
128
|
+
return t;
|
|
129
|
+
};
|
|
130
|
+
var getBuiltInPlacements = (dropdownMatchSelectWidth) => {
|
|
131
|
+
const adjustX = dropdownMatchSelectWidth === true ? 0 : 1;
|
|
132
|
+
return {
|
|
133
|
+
bottomLeft: {
|
|
134
|
+
points: ["tl", "bl"],
|
|
135
|
+
offset: [0, 4],
|
|
136
|
+
overflow: {
|
|
137
|
+
adjustX,
|
|
138
|
+
adjustY: 1
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
bottomRight: {
|
|
142
|
+
points: ["tr", "br"],
|
|
143
|
+
offset: [0, 4],
|
|
144
|
+
overflow: {
|
|
145
|
+
adjustX,
|
|
146
|
+
adjustY: 1
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
topLeft: {
|
|
150
|
+
points: ["bl", "tl"],
|
|
151
|
+
offset: [0, -4],
|
|
152
|
+
overflow: {
|
|
153
|
+
adjustX,
|
|
154
|
+
adjustY: 1
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
topRight: {
|
|
158
|
+
points: ["br", "tr"],
|
|
159
|
+
offset: [0, -4],
|
|
160
|
+
overflow: {
|
|
161
|
+
adjustX,
|
|
162
|
+
adjustY: 1
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
var SelectTrigger = defineComponent({
|
|
168
|
+
name: "SelectTrigger",
|
|
169
|
+
inheritAttrs: false,
|
|
170
|
+
props: {
|
|
171
|
+
dropdownAlign: Object,
|
|
172
|
+
visible: {
|
|
173
|
+
type: Boolean,
|
|
174
|
+
default: void 0
|
|
175
|
+
},
|
|
176
|
+
disabled: {
|
|
177
|
+
type: Boolean,
|
|
178
|
+
default: void 0
|
|
179
|
+
},
|
|
180
|
+
dropdownClassName: String,
|
|
181
|
+
dropdownStyle: PropTypes.object,
|
|
182
|
+
placement: String,
|
|
183
|
+
empty: {
|
|
184
|
+
type: Boolean,
|
|
185
|
+
default: void 0
|
|
186
|
+
},
|
|
187
|
+
prefixCls: String,
|
|
188
|
+
popupClassName: String,
|
|
189
|
+
animation: String,
|
|
190
|
+
transitionName: String,
|
|
191
|
+
getPopupContainer: Function,
|
|
192
|
+
dropdownRender: Function,
|
|
193
|
+
containerWidth: Number,
|
|
194
|
+
dropdownMatchSelectWidth: PropTypes.oneOfType([Number, Boolean]).def(true),
|
|
195
|
+
popupElement: PropTypes.any,
|
|
196
|
+
direction: String,
|
|
197
|
+
getTriggerDOMNode: Function,
|
|
198
|
+
onPopupVisibleChange: Function,
|
|
199
|
+
onPopupMouseEnter: Function,
|
|
200
|
+
onPopupFocusin: Function,
|
|
201
|
+
onPopupFocusout: Function
|
|
202
|
+
},
|
|
203
|
+
setup(props, _ref) {
|
|
204
|
+
let { slots, attrs, expose } = _ref;
|
|
205
|
+
const builtInPlacements = computed(() => {
|
|
206
|
+
const { dropdownMatchSelectWidth } = props;
|
|
207
|
+
return getBuiltInPlacements(dropdownMatchSelectWidth);
|
|
208
|
+
});
|
|
209
|
+
const popupRef = ref();
|
|
210
|
+
expose({ getPopupElement: () => {
|
|
211
|
+
return popupRef.value;
|
|
212
|
+
} });
|
|
213
|
+
return () => {
|
|
214
|
+
const _a = _extends(_extends({}, props), attrs), { empty = false } = _a;
|
|
215
|
+
const { visible, dropdownAlign, prefixCls, popupElement, dropdownClassName, dropdownStyle, direction = "ltr", placement, dropdownMatchSelectWidth, containerWidth, dropdownRender, animation, transitionName, getPopupContainer, getTriggerDOMNode, onPopupVisibleChange, onPopupMouseEnter, onPopupFocusin, onPopupFocusout } = __rest$4(_a, ["empty"]);
|
|
216
|
+
const dropdownPrefixCls = `${prefixCls}-dropdown`;
|
|
217
|
+
let popupNode = popupElement;
|
|
218
|
+
if (dropdownRender) popupNode = dropdownRender({
|
|
219
|
+
menuNode: popupElement,
|
|
220
|
+
props
|
|
221
|
+
});
|
|
222
|
+
const mergedTransitionName = animation ? `${dropdownPrefixCls}-${animation}` : transitionName;
|
|
223
|
+
const popupStyle = _extends({ minWidth: `${containerWidth}px` }, dropdownStyle);
|
|
224
|
+
if (typeof dropdownMatchSelectWidth === "number") popupStyle.width = `${dropdownMatchSelectWidth}px`;
|
|
225
|
+
else if (dropdownMatchSelectWidth) popupStyle.width = `${containerWidth}px`;
|
|
226
|
+
return createVNode(vc_trigger_default, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
227
|
+
"showAction": onPopupVisibleChange ? ["click"] : [],
|
|
228
|
+
"hideAction": onPopupVisibleChange ? ["click"] : [],
|
|
229
|
+
"popupPlacement": placement || (direction === "rtl" ? "bottomRight" : "bottomLeft"),
|
|
230
|
+
"builtinPlacements": builtInPlacements.value,
|
|
231
|
+
"prefixCls": dropdownPrefixCls,
|
|
232
|
+
"popupTransitionName": mergedTransitionName,
|
|
233
|
+
"popupAlign": dropdownAlign,
|
|
234
|
+
"popupVisible": visible,
|
|
235
|
+
"getPopupContainer": getPopupContainer,
|
|
236
|
+
"popupClassName": classNames(dropdownClassName, { [`${dropdownPrefixCls}-empty`]: empty }),
|
|
237
|
+
"popupStyle": popupStyle,
|
|
238
|
+
"getTriggerDOMNode": getTriggerDOMNode,
|
|
239
|
+
"onPopupVisibleChange": onPopupVisibleChange
|
|
240
|
+
}), {
|
|
241
|
+
default: slots.default,
|
|
242
|
+
popup: () => createVNode("div", {
|
|
243
|
+
"ref": popupRef,
|
|
244
|
+
"onMouseenter": onPopupMouseEnter,
|
|
245
|
+
"onFocusin": onPopupFocusin,
|
|
246
|
+
"onFocusout": onPopupFocusout
|
|
247
|
+
}, [popupNode])
|
|
248
|
+
});
|
|
249
|
+
};
|
|
250
|
+
}
|
|
251
|
+
});
|
|
252
|
+
//#endregion
|
|
253
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/vc-select/TransBtn.js
|
|
254
|
+
var TransBtn = (props, _ref) => {
|
|
255
|
+
let { slots } = _ref;
|
|
256
|
+
var _a;
|
|
257
|
+
const { class: className, customizeIcon, customizeIconProps, onMousedown, onClick } = props;
|
|
258
|
+
let icon;
|
|
259
|
+
if (typeof customizeIcon === "function") icon = customizeIcon(customizeIconProps);
|
|
260
|
+
else icon = isVNode(customizeIcon) ? cloneVNode(customizeIcon) : customizeIcon;
|
|
261
|
+
return createVNode("span", {
|
|
262
|
+
"class": className,
|
|
263
|
+
"onMousedown": (event) => {
|
|
264
|
+
event.preventDefault();
|
|
265
|
+
if (onMousedown) onMousedown(event);
|
|
266
|
+
},
|
|
267
|
+
"style": {
|
|
268
|
+
userSelect: "none",
|
|
269
|
+
WebkitUserSelect: "none"
|
|
270
|
+
},
|
|
271
|
+
"unselectable": "on",
|
|
272
|
+
"onClick": onClick,
|
|
273
|
+
"aria-hidden": true
|
|
274
|
+
}, [icon !== void 0 ? icon : createVNode("span", { "class": className.split(/\s+/).map((cls) => `${cls}-icon`) }, [(_a = slots.default) === null || _a === void 0 ? void 0 : _a.call(slots)])]);
|
|
275
|
+
};
|
|
276
|
+
TransBtn.inheritAttrs = false;
|
|
277
|
+
TransBtn.displayName = "TransBtn";
|
|
278
|
+
TransBtn.props = {
|
|
279
|
+
class: String,
|
|
280
|
+
customizeIcon: PropTypes.any,
|
|
281
|
+
customizeIconProps: PropTypes.any,
|
|
282
|
+
onMousedown: Function,
|
|
283
|
+
onClick: Function
|
|
284
|
+
};
|
|
285
|
+
//#endregion
|
|
286
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/vc-select/Selector/Input.js
|
|
287
|
+
var inputProps = {
|
|
288
|
+
inputRef: PropTypes.any,
|
|
289
|
+
prefixCls: String,
|
|
290
|
+
id: String,
|
|
291
|
+
inputElement: PropTypes.VueNode,
|
|
292
|
+
disabled: {
|
|
293
|
+
type: Boolean,
|
|
294
|
+
default: void 0
|
|
295
|
+
},
|
|
296
|
+
autofocus: {
|
|
297
|
+
type: Boolean,
|
|
298
|
+
default: void 0
|
|
299
|
+
},
|
|
300
|
+
autocomplete: String,
|
|
301
|
+
editable: {
|
|
302
|
+
type: Boolean,
|
|
303
|
+
default: void 0
|
|
304
|
+
},
|
|
305
|
+
activeDescendantId: String,
|
|
306
|
+
value: String,
|
|
307
|
+
open: {
|
|
308
|
+
type: Boolean,
|
|
309
|
+
default: void 0
|
|
310
|
+
},
|
|
311
|
+
tabindex: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
312
|
+
/** Pass accessibility props to input */
|
|
313
|
+
attrs: PropTypes.object,
|
|
314
|
+
onKeydown: { type: Function },
|
|
315
|
+
onMousedown: { type: Function },
|
|
316
|
+
onChange: { type: Function },
|
|
317
|
+
onPaste: { type: Function },
|
|
318
|
+
onCompositionstart: { type: Function },
|
|
319
|
+
onCompositionend: { type: Function },
|
|
320
|
+
onFocus: { type: Function },
|
|
321
|
+
onBlur: { type: Function }
|
|
322
|
+
};
|
|
323
|
+
var Input = defineComponent({
|
|
324
|
+
compatConfig: { MODE: 3 },
|
|
325
|
+
name: "SelectInput",
|
|
326
|
+
inheritAttrs: false,
|
|
327
|
+
props: inputProps,
|
|
328
|
+
setup(props) {
|
|
329
|
+
let blurTimeout = null;
|
|
330
|
+
const VCSelectContainerEvent = inject("VCSelectContainerEvent");
|
|
331
|
+
return () => {
|
|
332
|
+
var _a;
|
|
333
|
+
const { prefixCls, id, inputElement, disabled, tabindex, autofocus, autocomplete, editable, activeDescendantId, value, onKeydown, onMousedown, onChange, onPaste, onCompositionstart, onCompositionend, onFocus, onBlur, open, inputRef, attrs } = props;
|
|
334
|
+
let inputNode = inputElement || createVNode(BaseInput, null, null);
|
|
335
|
+
const inputProps = inputNode.props || {};
|
|
336
|
+
const { onKeydown: onOriginKeyDown, onInput: onOriginInput, onFocus: onOriginFocus, onBlur: onOriginBlur, onMousedown: onOriginMouseDown, onCompositionstart: onOriginCompositionStart, onCompositionend: onOriginCompositionEnd, style } = inputProps;
|
|
337
|
+
inputNode = cloneElement(inputNode, _extends(_extends(_extends(_extends(_extends({ type: "search" }, inputProps), {
|
|
338
|
+
id,
|
|
339
|
+
ref: inputRef,
|
|
340
|
+
disabled,
|
|
341
|
+
tabindex,
|
|
342
|
+
lazy: false,
|
|
343
|
+
autocomplete: autocomplete || "off",
|
|
344
|
+
autofocus,
|
|
345
|
+
class: classNames(`${prefixCls}-selection-search-input`, (_a = inputNode === null || inputNode === void 0 ? void 0 : inputNode.props) === null || _a === void 0 ? void 0 : _a.class),
|
|
346
|
+
role: "combobox",
|
|
347
|
+
"aria-expanded": open,
|
|
348
|
+
"aria-haspopup": "listbox",
|
|
349
|
+
"aria-owns": `${id}_list`,
|
|
350
|
+
"aria-autocomplete": "list",
|
|
351
|
+
"aria-controls": `${id}_list`,
|
|
352
|
+
"aria-activedescendant": activeDescendantId
|
|
353
|
+
}), attrs), {
|
|
354
|
+
value: editable ? value : "",
|
|
355
|
+
readonly: !editable,
|
|
356
|
+
unselectable: !editable ? "on" : null,
|
|
357
|
+
style: _extends(_extends({}, style), { opacity: editable ? null : 0 }),
|
|
358
|
+
onKeydown: (event) => {
|
|
359
|
+
onKeydown(event);
|
|
360
|
+
if (onOriginKeyDown) onOriginKeyDown(event);
|
|
361
|
+
},
|
|
362
|
+
onMousedown: (event) => {
|
|
363
|
+
onMousedown(event);
|
|
364
|
+
if (onOriginMouseDown) onOriginMouseDown(event);
|
|
365
|
+
},
|
|
366
|
+
onInput: (event) => {
|
|
367
|
+
onChange(event);
|
|
368
|
+
if (onOriginInput) onOriginInput(event);
|
|
369
|
+
},
|
|
370
|
+
onCompositionstart(event) {
|
|
371
|
+
onCompositionstart(event);
|
|
372
|
+
if (onOriginCompositionStart) onOriginCompositionStart(event);
|
|
373
|
+
},
|
|
374
|
+
onCompositionend(event) {
|
|
375
|
+
onCompositionend(event);
|
|
376
|
+
if (onOriginCompositionEnd) onOriginCompositionEnd(event);
|
|
377
|
+
},
|
|
378
|
+
onPaste,
|
|
379
|
+
onFocus: function() {
|
|
380
|
+
clearTimeout(blurTimeout);
|
|
381
|
+
onOriginFocus && onOriginFocus(arguments.length <= 0 ? void 0 : arguments[0]);
|
|
382
|
+
onFocus && onFocus(arguments.length <= 0 ? void 0 : arguments[0]);
|
|
383
|
+
VCSelectContainerEvent === null || VCSelectContainerEvent === void 0 || VCSelectContainerEvent.focus(arguments.length <= 0 ? void 0 : arguments[0]);
|
|
384
|
+
},
|
|
385
|
+
onBlur: function() {
|
|
386
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key];
|
|
387
|
+
blurTimeout = setTimeout(() => {
|
|
388
|
+
onOriginBlur && onOriginBlur(args[0]);
|
|
389
|
+
onBlur && onBlur(args[0]);
|
|
390
|
+
VCSelectContainerEvent === null || VCSelectContainerEvent === void 0 || VCSelectContainerEvent.blur(args[0]);
|
|
391
|
+
}, 100);
|
|
392
|
+
}
|
|
393
|
+
}), inputNode.type === "textarea" ? {} : { type: "search" }), true, true);
|
|
394
|
+
return inputNode;
|
|
395
|
+
};
|
|
396
|
+
}
|
|
397
|
+
});
|
|
398
|
+
//#endregion
|
|
399
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/vc-tree-select/LegacyContext.js
|
|
400
|
+
/**
|
|
401
|
+
* BaseSelect provide some parsed data into context.
|
|
402
|
+
* You can use this hooks to get them.
|
|
403
|
+
*/
|
|
404
|
+
var TreeSelectLegacyContextPropsKey = Symbol("TreeSelectLegacyContextPropsKey");
|
|
405
|
+
function useInjectLegacySelectContext() {
|
|
406
|
+
return inject(TreeSelectLegacyContextPropsKey, {});
|
|
407
|
+
}
|
|
408
|
+
//#endregion
|
|
409
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/vc-select/Selector/MultipleSelector.js
|
|
410
|
+
var props$1 = {
|
|
411
|
+
id: String,
|
|
412
|
+
prefixCls: String,
|
|
413
|
+
values: PropTypes.array,
|
|
414
|
+
open: {
|
|
415
|
+
type: Boolean,
|
|
416
|
+
default: void 0
|
|
417
|
+
},
|
|
418
|
+
searchValue: String,
|
|
419
|
+
inputRef: PropTypes.any,
|
|
420
|
+
placeholder: PropTypes.any,
|
|
421
|
+
disabled: {
|
|
422
|
+
type: Boolean,
|
|
423
|
+
default: void 0
|
|
424
|
+
},
|
|
425
|
+
mode: String,
|
|
426
|
+
showSearch: {
|
|
427
|
+
type: Boolean,
|
|
428
|
+
default: void 0
|
|
429
|
+
},
|
|
430
|
+
autofocus: {
|
|
431
|
+
type: Boolean,
|
|
432
|
+
default: void 0
|
|
433
|
+
},
|
|
434
|
+
autocomplete: String,
|
|
435
|
+
activeDescendantId: String,
|
|
436
|
+
tabindex: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
437
|
+
compositionStatus: Boolean,
|
|
438
|
+
removeIcon: PropTypes.any,
|
|
439
|
+
choiceTransitionName: String,
|
|
440
|
+
maxTagCount: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
441
|
+
maxTagTextLength: Number,
|
|
442
|
+
maxTagPlaceholder: PropTypes.any.def(() => (omittedValues) => `+ ${omittedValues.length} ...`),
|
|
443
|
+
tagRender: Function,
|
|
444
|
+
onToggleOpen: { type: Function },
|
|
445
|
+
onRemove: Function,
|
|
446
|
+
onInputChange: Function,
|
|
447
|
+
onInputPaste: Function,
|
|
448
|
+
onInputKeyDown: Function,
|
|
449
|
+
onInputMouseDown: Function,
|
|
450
|
+
onInputCompositionStart: Function,
|
|
451
|
+
onInputCompositionEnd: Function
|
|
452
|
+
};
|
|
453
|
+
var onPreventMouseDown = (event) => {
|
|
454
|
+
event.preventDefault();
|
|
455
|
+
event.stopPropagation();
|
|
456
|
+
};
|
|
457
|
+
var SelectSelector = defineComponent({
|
|
458
|
+
name: "MultipleSelectSelector",
|
|
459
|
+
inheritAttrs: false,
|
|
460
|
+
props: props$1,
|
|
461
|
+
setup(props) {
|
|
462
|
+
const measureRef = shallowRef();
|
|
463
|
+
const inputWidth = shallowRef(0);
|
|
464
|
+
const focused = shallowRef(false);
|
|
465
|
+
const legacyTreeSelectContext = useInjectLegacySelectContext();
|
|
466
|
+
const selectionPrefixCls = computed(() => `${props.prefixCls}-selection`);
|
|
467
|
+
const inputValue = computed(() => props.open || props.mode === "tags" ? props.searchValue : "");
|
|
468
|
+
const inputEditable = computed(() => props.mode === "tags" || props.showSearch && (props.open || focused.value));
|
|
469
|
+
const targetValue = ref("");
|
|
470
|
+
watchEffect(() => {
|
|
471
|
+
targetValue.value = inputValue.value;
|
|
472
|
+
});
|
|
473
|
+
function defaultRenderSelector(title, content, itemDisabled, closable, onClose) {
|
|
474
|
+
return createVNode("span", {
|
|
475
|
+
"class": classNames(`${selectionPrefixCls.value}-item`, { [`${selectionPrefixCls.value}-item-disabled`]: itemDisabled }),
|
|
476
|
+
"title": typeof title === "string" || typeof title === "number" ? title.toString() : void 0
|
|
477
|
+
}, [createVNode("span", { "class": `${selectionPrefixCls.value}-item-content` }, [content]), closable && createVNode(TransBtn, {
|
|
478
|
+
"class": `${selectionPrefixCls.value}-item-remove`,
|
|
479
|
+
"onMousedown": onPreventMouseDown,
|
|
480
|
+
"onClick": onClose,
|
|
481
|
+
"customizeIcon": props.removeIcon
|
|
482
|
+
}, { default: () => [createTextVNode("×")] })]);
|
|
483
|
+
}
|
|
484
|
+
function customizeRenderSelector(value, content, itemDisabled, closable, onClose, option) {
|
|
485
|
+
var _a;
|
|
486
|
+
const onMouseDown = (e) => {
|
|
487
|
+
onPreventMouseDown(e);
|
|
488
|
+
props.onToggleOpen(!open);
|
|
489
|
+
};
|
|
490
|
+
let originData = option;
|
|
491
|
+
if (legacyTreeSelectContext.keyEntities) originData = ((_a = legacyTreeSelectContext.keyEntities[value]) === null || _a === void 0 ? void 0 : _a.node) || {};
|
|
492
|
+
return createVNode("span", {
|
|
493
|
+
"key": value,
|
|
494
|
+
"onMousedown": onMouseDown
|
|
495
|
+
}, [props.tagRender({
|
|
496
|
+
label: content,
|
|
497
|
+
value,
|
|
498
|
+
disabled: itemDisabled,
|
|
499
|
+
closable,
|
|
500
|
+
onClose,
|
|
501
|
+
option: originData
|
|
502
|
+
})]);
|
|
503
|
+
}
|
|
504
|
+
function renderItem(valueItem) {
|
|
505
|
+
const { disabled: itemDisabled, label, value, option } = valueItem;
|
|
506
|
+
const closable = !props.disabled && !itemDisabled;
|
|
507
|
+
let displayLabel = label;
|
|
508
|
+
if (typeof props.maxTagTextLength === "number") {
|
|
509
|
+
if (typeof label === "string" || typeof label === "number") {
|
|
510
|
+
const strLabel = String(displayLabel);
|
|
511
|
+
if (strLabel.length > props.maxTagTextLength) displayLabel = `${strLabel.slice(0, props.maxTagTextLength)}...`;
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
const onClose = (event) => {
|
|
515
|
+
var _a;
|
|
516
|
+
if (event) event.stopPropagation();
|
|
517
|
+
(_a = props.onRemove) === null || _a === void 0 || _a.call(props, valueItem);
|
|
518
|
+
};
|
|
519
|
+
return typeof props.tagRender === "function" ? customizeRenderSelector(value, displayLabel, itemDisabled, closable, onClose, option) : defaultRenderSelector(label, displayLabel, itemDisabled, closable, onClose);
|
|
520
|
+
}
|
|
521
|
+
function renderRest(omittedValues) {
|
|
522
|
+
const { maxTagPlaceholder = (omittedValues) => `+ ${omittedValues.length} ...` } = props;
|
|
523
|
+
const content = typeof maxTagPlaceholder === "function" ? maxTagPlaceholder(omittedValues) : maxTagPlaceholder;
|
|
524
|
+
return defaultRenderSelector(content, content, false);
|
|
525
|
+
}
|
|
526
|
+
const handleInput = (e) => {
|
|
527
|
+
const composing = e.target.composing;
|
|
528
|
+
targetValue.value = e.target.value;
|
|
529
|
+
if (!composing) props.onInputChange(e);
|
|
530
|
+
};
|
|
531
|
+
return () => {
|
|
532
|
+
const { id, prefixCls, values, open, inputRef, placeholder, disabled, autofocus, autocomplete, activeDescendantId, tabindex, compositionStatus, onInputPaste, onInputKeyDown, onInputMouseDown, onInputCompositionStart, onInputCompositionEnd } = props;
|
|
533
|
+
const inputNode = createVNode("div", {
|
|
534
|
+
"class": `${selectionPrefixCls.value}-search`,
|
|
535
|
+
"style": { width: inputWidth.value + "px" },
|
|
536
|
+
"key": "input"
|
|
537
|
+
}, [createVNode(Input, {
|
|
538
|
+
"inputRef": inputRef,
|
|
539
|
+
"open": open,
|
|
540
|
+
"prefixCls": prefixCls,
|
|
541
|
+
"id": id,
|
|
542
|
+
"inputElement": null,
|
|
543
|
+
"disabled": disabled,
|
|
544
|
+
"autofocus": autofocus,
|
|
545
|
+
"autocomplete": autocomplete,
|
|
546
|
+
"editable": inputEditable.value,
|
|
547
|
+
"activeDescendantId": activeDescendantId,
|
|
548
|
+
"value": targetValue.value,
|
|
549
|
+
"onKeydown": onInputKeyDown,
|
|
550
|
+
"onMousedown": onInputMouseDown,
|
|
551
|
+
"onChange": handleInput,
|
|
552
|
+
"onPaste": onInputPaste,
|
|
553
|
+
"onCompositionstart": onInputCompositionStart,
|
|
554
|
+
"onCompositionend": onInputCompositionEnd,
|
|
555
|
+
"tabindex": tabindex,
|
|
556
|
+
"attrs": pickAttrs(props, true),
|
|
557
|
+
"onFocus": () => focused.value = true,
|
|
558
|
+
"onBlur": () => focused.value = false
|
|
559
|
+
}, null), createVNode("span", {
|
|
560
|
+
"ref": measureRef,
|
|
561
|
+
"class": `${selectionPrefixCls.value}-search-mirror`,
|
|
562
|
+
"aria-hidden": true
|
|
563
|
+
}, [targetValue.value, createTextVNode("\xA0")])]);
|
|
564
|
+
const selectionNode = createVNode(vc_overflow_default, {
|
|
565
|
+
"prefixCls": `${selectionPrefixCls.value}-overflow`,
|
|
566
|
+
"data": values,
|
|
567
|
+
"renderItem": renderItem,
|
|
568
|
+
"renderRest": renderRest,
|
|
569
|
+
"suffix": inputNode,
|
|
570
|
+
"itemKey": "key",
|
|
571
|
+
"maxCount": props.maxTagCount,
|
|
572
|
+
"key": "overflow"
|
|
573
|
+
}, null);
|
|
574
|
+
return createVNode(Fragment, null, [selectionNode, !values.length && !inputValue.value && !compositionStatus && createVNode("span", { "class": `${selectionPrefixCls.value}-placeholder` }, [placeholder])]);
|
|
575
|
+
};
|
|
576
|
+
}
|
|
577
|
+
});
|
|
578
|
+
//#endregion
|
|
579
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/vc-select/Selector/SingleSelector.js
|
|
580
|
+
var props = {
|
|
581
|
+
inputElement: PropTypes.any,
|
|
582
|
+
id: String,
|
|
583
|
+
prefixCls: String,
|
|
584
|
+
values: PropTypes.array,
|
|
585
|
+
open: {
|
|
586
|
+
type: Boolean,
|
|
587
|
+
default: void 0
|
|
588
|
+
},
|
|
589
|
+
searchValue: String,
|
|
590
|
+
inputRef: PropTypes.any,
|
|
591
|
+
placeholder: PropTypes.any,
|
|
592
|
+
compositionStatus: {
|
|
593
|
+
type: Boolean,
|
|
594
|
+
default: void 0
|
|
595
|
+
},
|
|
596
|
+
disabled: {
|
|
597
|
+
type: Boolean,
|
|
598
|
+
default: void 0
|
|
599
|
+
},
|
|
600
|
+
mode: String,
|
|
601
|
+
showSearch: {
|
|
602
|
+
type: Boolean,
|
|
603
|
+
default: void 0
|
|
604
|
+
},
|
|
605
|
+
autofocus: {
|
|
606
|
+
type: Boolean,
|
|
607
|
+
default: void 0
|
|
608
|
+
},
|
|
609
|
+
autocomplete: String,
|
|
610
|
+
activeDescendantId: String,
|
|
611
|
+
tabindex: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
612
|
+
activeValue: String,
|
|
613
|
+
backfill: {
|
|
614
|
+
type: Boolean,
|
|
615
|
+
default: void 0
|
|
616
|
+
},
|
|
617
|
+
optionLabelRender: Function,
|
|
618
|
+
onInputChange: Function,
|
|
619
|
+
onInputPaste: Function,
|
|
620
|
+
onInputKeyDown: Function,
|
|
621
|
+
onInputMouseDown: Function,
|
|
622
|
+
onInputCompositionStart: Function,
|
|
623
|
+
onInputCompositionEnd: Function
|
|
624
|
+
};
|
|
625
|
+
var SingleSelector = defineComponent({
|
|
626
|
+
name: "SingleSelector",
|
|
627
|
+
setup(props) {
|
|
628
|
+
const inputChanged = shallowRef(false);
|
|
629
|
+
const combobox = computed(() => props.mode === "combobox");
|
|
630
|
+
const inputEditable = computed(() => combobox.value || props.showSearch);
|
|
631
|
+
const inputValue = computed(() => {
|
|
632
|
+
let inputValue = props.searchValue || "";
|
|
633
|
+
if (combobox.value && props.activeValue && !inputChanged.value) inputValue = props.activeValue;
|
|
634
|
+
return inputValue;
|
|
635
|
+
});
|
|
636
|
+
const legacyTreeSelectContext = useInjectLegacySelectContext();
|
|
637
|
+
watch([combobox, () => props.activeValue], () => {
|
|
638
|
+
if (combobox.value) inputChanged.value = false;
|
|
639
|
+
}, { immediate: true });
|
|
640
|
+
const hasTextInput = computed(() => props.mode !== "combobox" && !props.open && !props.showSearch ? false : !!inputValue.value || props.compositionStatus);
|
|
641
|
+
const title = computed(() => {
|
|
642
|
+
const item = props.values[0];
|
|
643
|
+
return item && (typeof item.label === "string" || typeof item.label === "number") ? item.label.toString() : void 0;
|
|
644
|
+
});
|
|
645
|
+
const renderPlaceholder = () => {
|
|
646
|
+
if (props.values[0]) return null;
|
|
647
|
+
const hiddenStyle = hasTextInput.value ? { visibility: "hidden" } : void 0;
|
|
648
|
+
return createVNode("span", {
|
|
649
|
+
"class": `${props.prefixCls}-selection-placeholder`,
|
|
650
|
+
"style": hiddenStyle
|
|
651
|
+
}, [props.placeholder]);
|
|
652
|
+
};
|
|
653
|
+
const handleInput = (e) => {
|
|
654
|
+
if (!e.target.composing) {
|
|
655
|
+
inputChanged.value = true;
|
|
656
|
+
props.onInputChange(e);
|
|
657
|
+
}
|
|
658
|
+
};
|
|
659
|
+
return () => {
|
|
660
|
+
var _a, _b, _c, _d;
|
|
661
|
+
const { inputElement, prefixCls, id, values, inputRef, disabled, autofocus, autocomplete, activeDescendantId, open, tabindex, optionLabelRender, onInputKeyDown, onInputMouseDown, onInputPaste, onInputCompositionStart, onInputCompositionEnd } = props;
|
|
662
|
+
const item = values[0];
|
|
663
|
+
let titleNode = null;
|
|
664
|
+
if (item && legacyTreeSelectContext.customSlots) {
|
|
665
|
+
const key = (_a = item.key) !== null && _a !== void 0 ? _a : item.value;
|
|
666
|
+
const originData = ((_b = legacyTreeSelectContext.keyEntities[key]) === null || _b === void 0 ? void 0 : _b.node) || {};
|
|
667
|
+
titleNode = legacyTreeSelectContext.customSlots[(_c = originData.slots) === null || _c === void 0 ? void 0 : _c.title] || legacyTreeSelectContext.customSlots.title || item.label;
|
|
668
|
+
if (typeof titleNode === "function") titleNode = titleNode(originData);
|
|
669
|
+
} else titleNode = optionLabelRender && item ? optionLabelRender(item.option) : item === null || item === void 0 ? void 0 : item.label;
|
|
670
|
+
return createVNode(Fragment, null, [
|
|
671
|
+
createVNode("span", { "class": `${prefixCls}-selection-search` }, [createVNode(Input, {
|
|
672
|
+
"inputRef": inputRef,
|
|
673
|
+
"prefixCls": prefixCls,
|
|
674
|
+
"id": id,
|
|
675
|
+
"open": open,
|
|
676
|
+
"inputElement": inputElement,
|
|
677
|
+
"disabled": disabled,
|
|
678
|
+
"autofocus": autofocus,
|
|
679
|
+
"autocomplete": autocomplete,
|
|
680
|
+
"editable": inputEditable.value,
|
|
681
|
+
"activeDescendantId": activeDescendantId,
|
|
682
|
+
"value": inputValue.value,
|
|
683
|
+
"onKeydown": onInputKeyDown,
|
|
684
|
+
"onMousedown": onInputMouseDown,
|
|
685
|
+
"onChange": handleInput,
|
|
686
|
+
"onPaste": onInputPaste,
|
|
687
|
+
"onCompositionstart": onInputCompositionStart,
|
|
688
|
+
"onCompositionend": onInputCompositionEnd,
|
|
689
|
+
"tabindex": tabindex,
|
|
690
|
+
"attrs": pickAttrs(props, true)
|
|
691
|
+
}, null)]),
|
|
692
|
+
!combobox.value && item && !hasTextInput.value && createVNode("span", {
|
|
693
|
+
"class": `${prefixCls}-selection-item`,
|
|
694
|
+
"title": title.value
|
|
695
|
+
}, [createVNode(Fragment, { "key": (_d = item.key) !== null && _d !== void 0 ? _d : item.value }, [titleNode])]),
|
|
696
|
+
renderPlaceholder()
|
|
697
|
+
]);
|
|
698
|
+
};
|
|
699
|
+
}
|
|
700
|
+
});
|
|
701
|
+
SingleSelector.props = props;
|
|
702
|
+
SingleSelector.inheritAttrs = false;
|
|
703
|
+
//#endregion
|
|
704
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/vc-select/utils/keyUtil.js
|
|
705
|
+
/** keyCode Judgment function */
|
|
706
|
+
function isValidateOpenKey(currentKeyCode) {
|
|
707
|
+
return ![
|
|
708
|
+
KeyCode.ESC,
|
|
709
|
+
KeyCode.SHIFT,
|
|
710
|
+
KeyCode.BACKSPACE,
|
|
711
|
+
KeyCode.TAB,
|
|
712
|
+
KeyCode.WIN_KEY,
|
|
713
|
+
KeyCode.ALT,
|
|
714
|
+
KeyCode.META,
|
|
715
|
+
KeyCode.WIN_KEY_RIGHT,
|
|
716
|
+
KeyCode.CTRL,
|
|
717
|
+
KeyCode.SEMICOLON,
|
|
718
|
+
KeyCode.EQUALS,
|
|
719
|
+
KeyCode.CAPS_LOCK,
|
|
720
|
+
KeyCode.CONTEXT_MENU,
|
|
721
|
+
KeyCode.F1,
|
|
722
|
+
KeyCode.F2,
|
|
723
|
+
KeyCode.F3,
|
|
724
|
+
KeyCode.F4,
|
|
725
|
+
KeyCode.F5,
|
|
726
|
+
KeyCode.F6,
|
|
727
|
+
KeyCode.F7,
|
|
728
|
+
KeyCode.F8,
|
|
729
|
+
KeyCode.F9,
|
|
730
|
+
KeyCode.F10,
|
|
731
|
+
KeyCode.F11,
|
|
732
|
+
KeyCode.F12
|
|
733
|
+
].includes(currentKeyCode);
|
|
734
|
+
}
|
|
735
|
+
//#endregion
|
|
736
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/vc-select/hooks/useLock.js
|
|
737
|
+
/**
|
|
738
|
+
* Locker return cached mark.
|
|
739
|
+
* If set to `true`, will return `true` in a short time even if set `false`.
|
|
740
|
+
* If set to `false` and then set to `true`, will change to `true`.
|
|
741
|
+
* And after time duration, it will back to `null` automatically.
|
|
742
|
+
*/
|
|
743
|
+
function useLock() {
|
|
744
|
+
let duration = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 250;
|
|
745
|
+
let lock = null;
|
|
746
|
+
let timeout;
|
|
747
|
+
function doLock(locked) {
|
|
748
|
+
if (locked || lock === null) lock = locked;
|
|
749
|
+
clearTimeout(timeout);
|
|
750
|
+
timeout = setTimeout(() => {
|
|
751
|
+
lock = null;
|
|
752
|
+
}, duration);
|
|
753
|
+
}
|
|
754
|
+
return [() => lock, doLock];
|
|
755
|
+
}
|
|
756
|
+
//#endregion
|
|
757
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/_util/createRef.js
|
|
758
|
+
function createRef() {
|
|
759
|
+
const func = (node) => {
|
|
760
|
+
func.current = node;
|
|
761
|
+
};
|
|
762
|
+
return func;
|
|
763
|
+
}
|
|
764
|
+
//#endregion
|
|
765
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/vc-select/Selector/index.js
|
|
766
|
+
/**
|
|
767
|
+
* Cursor rule:
|
|
768
|
+
* 1. Only `showSearch` enabled
|
|
769
|
+
* 2. Only `open` is `true`
|
|
770
|
+
* 3. When typing, set `open` to `true` which hit rule of 2
|
|
771
|
+
*
|
|
772
|
+
* Accessibility:
|
|
773
|
+
* - https://www.w3.org/TR/wai-aria-practices/examples/combobox/aria1.1pattern/listbox-combo.html
|
|
774
|
+
*/
|
|
775
|
+
var Selector = defineComponent({
|
|
776
|
+
name: "Selector",
|
|
777
|
+
inheritAttrs: false,
|
|
778
|
+
props: {
|
|
779
|
+
id: String,
|
|
780
|
+
prefixCls: String,
|
|
781
|
+
showSearch: {
|
|
782
|
+
type: Boolean,
|
|
783
|
+
default: void 0
|
|
784
|
+
},
|
|
785
|
+
open: {
|
|
786
|
+
type: Boolean,
|
|
787
|
+
default: void 0
|
|
788
|
+
},
|
|
789
|
+
/** Display in the Selector value, it's not same as `value` prop */
|
|
790
|
+
values: PropTypes.array,
|
|
791
|
+
multiple: {
|
|
792
|
+
type: Boolean,
|
|
793
|
+
default: void 0
|
|
794
|
+
},
|
|
795
|
+
mode: String,
|
|
796
|
+
searchValue: String,
|
|
797
|
+
activeValue: String,
|
|
798
|
+
inputElement: PropTypes.any,
|
|
799
|
+
autofocus: {
|
|
800
|
+
type: Boolean,
|
|
801
|
+
default: void 0
|
|
802
|
+
},
|
|
803
|
+
activeDescendantId: String,
|
|
804
|
+
tabindex: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
805
|
+
disabled: {
|
|
806
|
+
type: Boolean,
|
|
807
|
+
default: void 0
|
|
808
|
+
},
|
|
809
|
+
placeholder: PropTypes.any,
|
|
810
|
+
removeIcon: PropTypes.any,
|
|
811
|
+
maxTagCount: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
812
|
+
maxTagTextLength: Number,
|
|
813
|
+
maxTagPlaceholder: PropTypes.any,
|
|
814
|
+
tagRender: Function,
|
|
815
|
+
optionLabelRender: Function,
|
|
816
|
+
/** Check if `tokenSeparators` contains `\n` or `\r\n` */
|
|
817
|
+
tokenWithEnter: {
|
|
818
|
+
type: Boolean,
|
|
819
|
+
default: void 0
|
|
820
|
+
},
|
|
821
|
+
choiceTransitionName: String,
|
|
822
|
+
onToggleOpen: { type: Function },
|
|
823
|
+
/** `onSearch` returns go next step boolean to check if need do toggle open */
|
|
824
|
+
onSearch: Function,
|
|
825
|
+
onSearchSubmit: Function,
|
|
826
|
+
onRemove: Function,
|
|
827
|
+
onInputKeyDown: { type: Function },
|
|
828
|
+
/**
|
|
829
|
+
* @private get real dom for trigger align.
|
|
830
|
+
* This may be removed after React provides replacement of `findDOMNode`
|
|
831
|
+
*/
|
|
832
|
+
domRef: Function
|
|
833
|
+
},
|
|
834
|
+
setup(props, _ref) {
|
|
835
|
+
let { expose } = _ref;
|
|
836
|
+
const inputRef = createRef();
|
|
837
|
+
const compositionStatus = ref(false);
|
|
838
|
+
const [getInputMouseDown, setInputMouseDown] = useLock(0);
|
|
839
|
+
const onInternalInputKeyDown = (event) => {
|
|
840
|
+
const { which } = event;
|
|
841
|
+
if (which === KeyCode.UP || which === KeyCode.DOWN) event.preventDefault();
|
|
842
|
+
if (props.onInputKeyDown) props.onInputKeyDown(event);
|
|
843
|
+
if (which === KeyCode.ENTER && props.mode === "tags" && !compositionStatus.value && !props.open) props.onSearchSubmit(event.target.value);
|
|
844
|
+
if (isValidateOpenKey(which)) props.onToggleOpen(true);
|
|
845
|
+
};
|
|
846
|
+
/**
|
|
847
|
+
* We can not use `findDOMNode` sine it will get warning,
|
|
848
|
+
* have to use timer to check if is input element.
|
|
849
|
+
*/
|
|
850
|
+
const onInternalInputMouseDown = () => {
|
|
851
|
+
setInputMouseDown(true);
|
|
852
|
+
};
|
|
853
|
+
let pastedText = null;
|
|
854
|
+
const triggerOnSearch = (value) => {
|
|
855
|
+
if (props.onSearch(value, true, compositionStatus.value) !== false) props.onToggleOpen(true);
|
|
856
|
+
};
|
|
857
|
+
const onInputCompositionStart = () => {
|
|
858
|
+
compositionStatus.value = true;
|
|
859
|
+
};
|
|
860
|
+
const onInputCompositionEnd = (e) => {
|
|
861
|
+
compositionStatus.value = false;
|
|
862
|
+
if (props.mode !== "combobox") triggerOnSearch(e.target.value);
|
|
863
|
+
};
|
|
864
|
+
const onInputChange = (event) => {
|
|
865
|
+
let { target: { value } } = event;
|
|
866
|
+
if (props.tokenWithEnter && pastedText && /[\r\n]/.test(pastedText)) {
|
|
867
|
+
const replacedText = pastedText.replace(/[\r\n]+$/, "").replace(/\r\n/g, " ").replace(/[\r\n]/g, " ");
|
|
868
|
+
value = value.replace(replacedText, pastedText);
|
|
869
|
+
}
|
|
870
|
+
pastedText = null;
|
|
871
|
+
triggerOnSearch(value);
|
|
872
|
+
};
|
|
873
|
+
const onInputPaste = (e) => {
|
|
874
|
+
const { clipboardData } = e;
|
|
875
|
+
pastedText = clipboardData.getData("text");
|
|
876
|
+
};
|
|
877
|
+
const onClick = (_ref2) => {
|
|
878
|
+
let { target } = _ref2;
|
|
879
|
+
if (target !== inputRef.current) {
|
|
880
|
+
if ((void 0).body.style.msTouchAction !== void 0) setTimeout(() => {
|
|
881
|
+
inputRef.current.focus();
|
|
882
|
+
});
|
|
883
|
+
else inputRef.current.focus();
|
|
884
|
+
}
|
|
885
|
+
};
|
|
886
|
+
const onMousedown = (event) => {
|
|
887
|
+
const inputMouseDown = getInputMouseDown();
|
|
888
|
+
if (event.target !== inputRef.current && !inputMouseDown) event.preventDefault();
|
|
889
|
+
if (props.mode !== "combobox" && (!props.showSearch || !inputMouseDown) || !props.open) {
|
|
890
|
+
if (props.open) props.onSearch("", true, false);
|
|
891
|
+
props.onToggleOpen();
|
|
892
|
+
}
|
|
893
|
+
};
|
|
894
|
+
expose({
|
|
895
|
+
focus: () => {
|
|
896
|
+
inputRef.current.focus();
|
|
897
|
+
},
|
|
898
|
+
blur: () => {
|
|
899
|
+
inputRef.current.blur();
|
|
900
|
+
}
|
|
901
|
+
});
|
|
902
|
+
return () => {
|
|
903
|
+
const { prefixCls, domRef, mode } = props;
|
|
904
|
+
const sharedProps = {
|
|
905
|
+
inputRef,
|
|
906
|
+
onInputKeyDown: onInternalInputKeyDown,
|
|
907
|
+
onInputMouseDown: onInternalInputMouseDown,
|
|
908
|
+
onInputChange,
|
|
909
|
+
onInputPaste,
|
|
910
|
+
compositionStatus: compositionStatus.value,
|
|
911
|
+
onInputCompositionStart,
|
|
912
|
+
onInputCompositionEnd
|
|
913
|
+
};
|
|
914
|
+
const selectNode = mode === "multiple" || mode === "tags" ? createVNode(SelectSelector, _objectSpread2(_objectSpread2({}, props), sharedProps), null) : createVNode(SingleSelector, _objectSpread2(_objectSpread2({}, props), sharedProps), null);
|
|
915
|
+
return createVNode("div", {
|
|
916
|
+
"ref": domRef,
|
|
917
|
+
"class": `${prefixCls}-selector`,
|
|
918
|
+
"onClick": onClick,
|
|
919
|
+
"onMousedown": onMousedown
|
|
920
|
+
}, [selectNode]);
|
|
921
|
+
};
|
|
922
|
+
}
|
|
923
|
+
});
|
|
924
|
+
//#endregion
|
|
925
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/vc-select/hooks/useDelayReset.js
|
|
926
|
+
/**
|
|
927
|
+
* Similar with `useLock`, but this hook will always execute last value.
|
|
928
|
+
* When set to `true`, it will keep `true` for a short time even if `false` is set.
|
|
929
|
+
*/
|
|
930
|
+
function useDelayReset() {
|
|
931
|
+
let timeout = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : 10;
|
|
932
|
+
const bool = shallowRef(false);
|
|
933
|
+
let delay;
|
|
934
|
+
const cancelLatest = () => {
|
|
935
|
+
clearTimeout(delay);
|
|
936
|
+
};
|
|
937
|
+
const delaySetBool = (value, callback) => {
|
|
938
|
+
cancelLatest();
|
|
939
|
+
delay = setTimeout(() => {
|
|
940
|
+
bool.value = value;
|
|
941
|
+
if (callback) callback();
|
|
942
|
+
}, timeout);
|
|
943
|
+
};
|
|
944
|
+
return [
|
|
945
|
+
bool,
|
|
946
|
+
delaySetBool,
|
|
947
|
+
cancelLatest
|
|
948
|
+
];
|
|
949
|
+
}
|
|
950
|
+
//#endregion
|
|
951
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/vc-select/hooks/useBaseProps.js
|
|
952
|
+
/**
|
|
953
|
+
* BaseSelect provide some parsed data into context.
|
|
954
|
+
* You can use this hooks to get them.
|
|
955
|
+
*/
|
|
956
|
+
var BaseSelectContextKey = Symbol("BaseSelectContextKey");
|
|
957
|
+
function useProvideBaseSelectProps(props) {
|
|
958
|
+
return provide(BaseSelectContextKey, props);
|
|
959
|
+
}
|
|
960
|
+
function useBaseProps() {
|
|
961
|
+
return inject(BaseSelectContextKey, {});
|
|
962
|
+
}
|
|
963
|
+
//#endregion
|
|
964
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/_util/toReactive.js
|
|
965
|
+
/**
|
|
966
|
+
* Converts ref to reactive.
|
|
967
|
+
*
|
|
968
|
+
* @see https://vueuse.org/toReactive
|
|
969
|
+
* @param objectRef A ref of object
|
|
970
|
+
*/
|
|
971
|
+
function toReactive(objectRef) {
|
|
972
|
+
if (!isRef(objectRef)) return reactive(objectRef);
|
|
973
|
+
const proxy = new Proxy({}, {
|
|
974
|
+
get(_, p, receiver) {
|
|
975
|
+
return Reflect.get(objectRef.value, p, receiver);
|
|
976
|
+
},
|
|
977
|
+
set(_, p, value) {
|
|
978
|
+
objectRef.value[p] = value;
|
|
979
|
+
return true;
|
|
980
|
+
},
|
|
981
|
+
deleteProperty(_, p) {
|
|
982
|
+
return Reflect.deleteProperty(objectRef.value, p);
|
|
983
|
+
},
|
|
984
|
+
has(_, p) {
|
|
985
|
+
return Reflect.has(objectRef.value, p);
|
|
986
|
+
},
|
|
987
|
+
ownKeys() {
|
|
988
|
+
return Object.keys(objectRef.value);
|
|
989
|
+
},
|
|
990
|
+
getOwnPropertyDescriptor() {
|
|
991
|
+
return {
|
|
992
|
+
enumerable: true,
|
|
993
|
+
configurable: true
|
|
994
|
+
};
|
|
995
|
+
}
|
|
996
|
+
});
|
|
997
|
+
return reactive(proxy);
|
|
998
|
+
}
|
|
999
|
+
//#endregion
|
|
1000
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/vc-select/BaseSelect.js
|
|
1001
|
+
var __rest$3 = function(s, e) {
|
|
1002
|
+
var t = {};
|
|
1003
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
1004
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") {
|
|
1005
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
1006
|
+
}
|
|
1007
|
+
return t;
|
|
1008
|
+
};
|
|
1009
|
+
var DEFAULT_OMIT_PROPS = [
|
|
1010
|
+
"value",
|
|
1011
|
+
"onChange",
|
|
1012
|
+
"removeIcon",
|
|
1013
|
+
"placeholder",
|
|
1014
|
+
"autofocus",
|
|
1015
|
+
"maxTagCount",
|
|
1016
|
+
"maxTagTextLength",
|
|
1017
|
+
"maxTagPlaceholder",
|
|
1018
|
+
"choiceTransitionName",
|
|
1019
|
+
"onInputKeyDown",
|
|
1020
|
+
"onPopupScroll",
|
|
1021
|
+
"tabindex",
|
|
1022
|
+
"OptionList",
|
|
1023
|
+
"notFoundContent"
|
|
1024
|
+
];
|
|
1025
|
+
var baseSelectPrivateProps = () => {
|
|
1026
|
+
return {
|
|
1027
|
+
prefixCls: String,
|
|
1028
|
+
id: String,
|
|
1029
|
+
omitDomProps: Array,
|
|
1030
|
+
displayValues: Array,
|
|
1031
|
+
onDisplayValuesChange: Function,
|
|
1032
|
+
/** Current dropdown list active item string value */
|
|
1033
|
+
activeValue: String,
|
|
1034
|
+
/** Link search input with target element */
|
|
1035
|
+
activeDescendantId: String,
|
|
1036
|
+
onActiveValueChange: Function,
|
|
1037
|
+
searchValue: String,
|
|
1038
|
+
/** Trigger onSearch, return false to prevent trigger open event */
|
|
1039
|
+
onSearch: Function,
|
|
1040
|
+
/** Trigger when search text match the `tokenSeparators`. Will provide split content */
|
|
1041
|
+
onSearchSplit: Function,
|
|
1042
|
+
maxLength: Number,
|
|
1043
|
+
OptionList: PropTypes.any,
|
|
1044
|
+
/** Tell if provided `options` is empty */
|
|
1045
|
+
emptyOptions: Boolean
|
|
1046
|
+
};
|
|
1047
|
+
};
|
|
1048
|
+
var baseSelectPropsWithoutPrivate = () => {
|
|
1049
|
+
return {
|
|
1050
|
+
showSearch: {
|
|
1051
|
+
type: Boolean,
|
|
1052
|
+
default: void 0
|
|
1053
|
+
},
|
|
1054
|
+
tagRender: { type: Function },
|
|
1055
|
+
optionLabelRender: { type: Function },
|
|
1056
|
+
direction: { type: String },
|
|
1057
|
+
tabindex: Number,
|
|
1058
|
+
autofocus: Boolean,
|
|
1059
|
+
notFoundContent: PropTypes.any,
|
|
1060
|
+
placeholder: PropTypes.any,
|
|
1061
|
+
onClear: Function,
|
|
1062
|
+
choiceTransitionName: String,
|
|
1063
|
+
mode: String,
|
|
1064
|
+
disabled: {
|
|
1065
|
+
type: Boolean,
|
|
1066
|
+
default: void 0
|
|
1067
|
+
},
|
|
1068
|
+
loading: {
|
|
1069
|
+
type: Boolean,
|
|
1070
|
+
default: void 0
|
|
1071
|
+
},
|
|
1072
|
+
open: {
|
|
1073
|
+
type: Boolean,
|
|
1074
|
+
default: void 0
|
|
1075
|
+
},
|
|
1076
|
+
defaultOpen: {
|
|
1077
|
+
type: Boolean,
|
|
1078
|
+
default: void 0
|
|
1079
|
+
},
|
|
1080
|
+
onDropdownVisibleChange: { type: Function },
|
|
1081
|
+
/** @private Internal usage. Do not use in your production. */
|
|
1082
|
+
getInputElement: { type: Function },
|
|
1083
|
+
/** @private Internal usage. Do not use in your production. */
|
|
1084
|
+
getRawInputElement: { type: Function },
|
|
1085
|
+
maxTagTextLength: Number,
|
|
1086
|
+
maxTagCount: { type: [String, Number] },
|
|
1087
|
+
maxTagPlaceholder: PropTypes.any,
|
|
1088
|
+
tokenSeparators: { type: Array },
|
|
1089
|
+
allowClear: {
|
|
1090
|
+
type: Boolean,
|
|
1091
|
+
default: void 0
|
|
1092
|
+
},
|
|
1093
|
+
showArrow: {
|
|
1094
|
+
type: Boolean,
|
|
1095
|
+
default: void 0
|
|
1096
|
+
},
|
|
1097
|
+
inputIcon: PropTypes.any,
|
|
1098
|
+
/** Clear all icon */
|
|
1099
|
+
clearIcon: PropTypes.any,
|
|
1100
|
+
/** Selector remove icon */
|
|
1101
|
+
removeIcon: PropTypes.any,
|
|
1102
|
+
animation: String,
|
|
1103
|
+
transitionName: String,
|
|
1104
|
+
dropdownStyle: { type: Object },
|
|
1105
|
+
dropdownClassName: String,
|
|
1106
|
+
dropdownMatchSelectWidth: {
|
|
1107
|
+
type: [Boolean, Number],
|
|
1108
|
+
default: void 0
|
|
1109
|
+
},
|
|
1110
|
+
dropdownRender: { type: Function },
|
|
1111
|
+
dropdownAlign: Object,
|
|
1112
|
+
placement: { type: String },
|
|
1113
|
+
getPopupContainer: { type: Function },
|
|
1114
|
+
showAction: { type: Array },
|
|
1115
|
+
onBlur: { type: Function },
|
|
1116
|
+
onFocus: { type: Function },
|
|
1117
|
+
onKeyup: Function,
|
|
1118
|
+
onKeydown: Function,
|
|
1119
|
+
onMousedown: Function,
|
|
1120
|
+
onPopupScroll: Function,
|
|
1121
|
+
onInputKeyDown: Function,
|
|
1122
|
+
onMouseenter: Function,
|
|
1123
|
+
onMouseleave: Function,
|
|
1124
|
+
onClick: Function
|
|
1125
|
+
};
|
|
1126
|
+
};
|
|
1127
|
+
var baseSelectProps = () => {
|
|
1128
|
+
return _extends(_extends({}, baseSelectPrivateProps()), baseSelectPropsWithoutPrivate());
|
|
1129
|
+
};
|
|
1130
|
+
function isMultiple(mode) {
|
|
1131
|
+
return mode === "tags" || mode === "multiple";
|
|
1132
|
+
}
|
|
1133
|
+
var BaseSelect_default = defineComponent({
|
|
1134
|
+
compatConfig: { MODE: 3 },
|
|
1135
|
+
name: "BaseSelect",
|
|
1136
|
+
inheritAttrs: false,
|
|
1137
|
+
props: initDefaultProps(baseSelectProps(), {
|
|
1138
|
+
showAction: [],
|
|
1139
|
+
notFoundContent: "Not Found"
|
|
1140
|
+
}),
|
|
1141
|
+
setup(props, _ref) {
|
|
1142
|
+
let { attrs, expose, slots } = _ref;
|
|
1143
|
+
const multiple = computed(() => isMultiple(props.mode));
|
|
1144
|
+
const mergedShowSearch = computed(() => props.showSearch !== void 0 ? props.showSearch : multiple.value || props.mode === "combobox");
|
|
1145
|
+
const mobile = shallowRef(false);
|
|
1146
|
+
const legacyTreeSelectContext = useInjectLegacySelectContext();
|
|
1147
|
+
const containerRef = shallowRef(null);
|
|
1148
|
+
const selectorDomRef = createRef();
|
|
1149
|
+
const triggerRef = shallowRef(null);
|
|
1150
|
+
const selectorRef = shallowRef(null);
|
|
1151
|
+
const listRef = shallowRef(null);
|
|
1152
|
+
const blurRef = ref(false);
|
|
1153
|
+
/** Used for component focused management */
|
|
1154
|
+
const [mockFocused, setMockFocused, cancelSetMockFocused] = useDelayReset();
|
|
1155
|
+
const focus = () => {
|
|
1156
|
+
var _a;
|
|
1157
|
+
(_a = selectorRef.value) === null || _a === void 0 || _a.focus();
|
|
1158
|
+
};
|
|
1159
|
+
const blur = () => {
|
|
1160
|
+
var _a;
|
|
1161
|
+
(_a = selectorRef.value) === null || _a === void 0 || _a.blur();
|
|
1162
|
+
};
|
|
1163
|
+
expose({
|
|
1164
|
+
focus,
|
|
1165
|
+
blur,
|
|
1166
|
+
scrollTo: (arg) => {
|
|
1167
|
+
var _a;
|
|
1168
|
+
return (_a = listRef.value) === null || _a === void 0 ? void 0 : _a.scrollTo(arg);
|
|
1169
|
+
}
|
|
1170
|
+
});
|
|
1171
|
+
const mergedSearchValue = computed(() => {
|
|
1172
|
+
var _a;
|
|
1173
|
+
if (props.mode !== "combobox") return props.searchValue;
|
|
1174
|
+
const val = (_a = props.displayValues[0]) === null || _a === void 0 ? void 0 : _a.value;
|
|
1175
|
+
return typeof val === "string" || typeof val === "number" ? String(val) : "";
|
|
1176
|
+
});
|
|
1177
|
+
const initOpen = props.open !== void 0 ? props.open : props.defaultOpen;
|
|
1178
|
+
const innerOpen = shallowRef(initOpen);
|
|
1179
|
+
const mergedOpen = shallowRef(initOpen);
|
|
1180
|
+
const setInnerOpen = (val) => {
|
|
1181
|
+
innerOpen.value = props.open !== void 0 ? props.open : val;
|
|
1182
|
+
mergedOpen.value = innerOpen.value;
|
|
1183
|
+
};
|
|
1184
|
+
watch(() => props.open, () => {
|
|
1185
|
+
setInnerOpen(props.open);
|
|
1186
|
+
});
|
|
1187
|
+
const emptyListContent = computed(() => !props.notFoundContent && props.emptyOptions);
|
|
1188
|
+
watchEffect(() => {
|
|
1189
|
+
mergedOpen.value = innerOpen.value;
|
|
1190
|
+
if (props.disabled || emptyListContent.value && mergedOpen.value && props.mode === "combobox") mergedOpen.value = false;
|
|
1191
|
+
});
|
|
1192
|
+
const triggerOpen = computed(() => emptyListContent.value ? false : mergedOpen.value);
|
|
1193
|
+
const onToggleOpen = (newOpen) => {
|
|
1194
|
+
const nextOpen = newOpen !== void 0 ? newOpen : !mergedOpen.value;
|
|
1195
|
+
if (mergedOpen.value !== nextOpen && !props.disabled) {
|
|
1196
|
+
setInnerOpen(nextOpen);
|
|
1197
|
+
props.onDropdownVisibleChange && props.onDropdownVisibleChange(nextOpen);
|
|
1198
|
+
if (!nextOpen && popupFocused.value) {
|
|
1199
|
+
popupFocused.value = false;
|
|
1200
|
+
setMockFocused(false, () => {
|
|
1201
|
+
focusRef.value = false;
|
|
1202
|
+
blurRef.value = false;
|
|
1203
|
+
});
|
|
1204
|
+
}
|
|
1205
|
+
}
|
|
1206
|
+
};
|
|
1207
|
+
const tokenWithEnter = computed(() => (props.tokenSeparators || []).some((tokenSeparator) => ["\n", "\r\n"].includes(tokenSeparator)));
|
|
1208
|
+
const onInternalSearch = (searchText, fromTyping, isCompositing) => {
|
|
1209
|
+
var _a, _b;
|
|
1210
|
+
let ret = true;
|
|
1211
|
+
let newSearchText = searchText;
|
|
1212
|
+
(_a = props.onActiveValueChange) === null || _a === void 0 || _a.call(props, null);
|
|
1213
|
+
const patchLabels = isCompositing ? null : getSeparatedContent(searchText, props.tokenSeparators);
|
|
1214
|
+
if (props.mode !== "combobox" && patchLabels) {
|
|
1215
|
+
newSearchText = "";
|
|
1216
|
+
(_b = props.onSearchSplit) === null || _b === void 0 || _b.call(props, patchLabels);
|
|
1217
|
+
onToggleOpen(false);
|
|
1218
|
+
ret = false;
|
|
1219
|
+
}
|
|
1220
|
+
if (props.onSearch && mergedSearchValue.value !== newSearchText) props.onSearch(newSearchText, { source: fromTyping ? "typing" : "effect" });
|
|
1221
|
+
return ret;
|
|
1222
|
+
};
|
|
1223
|
+
const onInternalSearchSubmit = (searchText) => {
|
|
1224
|
+
var _a;
|
|
1225
|
+
if (!searchText || !searchText.trim()) return;
|
|
1226
|
+
(_a = props.onSearch) === null || _a === void 0 || _a.call(props, searchText, { source: "submit" });
|
|
1227
|
+
};
|
|
1228
|
+
watch(mergedOpen, () => {
|
|
1229
|
+
if (!mergedOpen.value && !multiple.value && props.mode !== "combobox") onInternalSearch("", false, false);
|
|
1230
|
+
}, {
|
|
1231
|
+
immediate: true,
|
|
1232
|
+
flush: "post"
|
|
1233
|
+
});
|
|
1234
|
+
watch(() => props.disabled, () => {
|
|
1235
|
+
if (innerOpen.value && !!props.disabled) setInnerOpen(false);
|
|
1236
|
+
if (props.disabled && !blurRef.value) setMockFocused(false);
|
|
1237
|
+
}, { immediate: true });
|
|
1238
|
+
/**
|
|
1239
|
+
* We record input value here to check if can press to clean up by backspace
|
|
1240
|
+
* - null: Key is not down, this is reset by key up
|
|
1241
|
+
* - true: Search text is empty when first time backspace down
|
|
1242
|
+
* - false: Search text is not empty when first time backspace down
|
|
1243
|
+
*/
|
|
1244
|
+
const [getClearLock, setClearLock] = useLock();
|
|
1245
|
+
const onInternalKeyDown = function(event) {
|
|
1246
|
+
var _a;
|
|
1247
|
+
const clearLock = getClearLock();
|
|
1248
|
+
const { which } = event;
|
|
1249
|
+
if (which === KeyCode.ENTER) {
|
|
1250
|
+
if (props.mode !== "combobox") event.preventDefault();
|
|
1251
|
+
if (!mergedOpen.value) onToggleOpen(true);
|
|
1252
|
+
}
|
|
1253
|
+
setClearLock(!!mergedSearchValue.value);
|
|
1254
|
+
if (which === KeyCode.BACKSPACE && !clearLock && multiple.value && !mergedSearchValue.value && props.displayValues.length) {
|
|
1255
|
+
const cloneDisplayValues = [...props.displayValues];
|
|
1256
|
+
let removedDisplayValue = null;
|
|
1257
|
+
for (let i = cloneDisplayValues.length - 1; i >= 0; i -= 1) {
|
|
1258
|
+
const current = cloneDisplayValues[i];
|
|
1259
|
+
if (!current.disabled) {
|
|
1260
|
+
cloneDisplayValues.splice(i, 1);
|
|
1261
|
+
removedDisplayValue = current;
|
|
1262
|
+
break;
|
|
1263
|
+
}
|
|
1264
|
+
}
|
|
1265
|
+
if (removedDisplayValue) props.onDisplayValuesChange(cloneDisplayValues, {
|
|
1266
|
+
type: "remove",
|
|
1267
|
+
values: [removedDisplayValue]
|
|
1268
|
+
});
|
|
1269
|
+
}
|
|
1270
|
+
for (var _len = arguments.length, rest = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) rest[_key - 1] = arguments[_key];
|
|
1271
|
+
if (mergedOpen.value && listRef.value) listRef.value.onKeydown(event, ...rest);
|
|
1272
|
+
(_a = props.onKeydown) === null || _a === void 0 || _a.call(props, event, ...rest);
|
|
1273
|
+
};
|
|
1274
|
+
const onInternalKeyUp = function(event) {
|
|
1275
|
+
for (var _len2 = arguments.length, rest = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) rest[_key2 - 1] = arguments[_key2];
|
|
1276
|
+
if (mergedOpen.value && listRef.value) listRef.value.onKeyup(event, ...rest);
|
|
1277
|
+
if (props.onKeyup) props.onKeyup(event, ...rest);
|
|
1278
|
+
};
|
|
1279
|
+
const onSelectorRemove = (val) => {
|
|
1280
|
+
const newValues = props.displayValues.filter((i) => i !== val);
|
|
1281
|
+
props.onDisplayValuesChange(newValues, {
|
|
1282
|
+
type: "remove",
|
|
1283
|
+
values: [val]
|
|
1284
|
+
});
|
|
1285
|
+
};
|
|
1286
|
+
/** Record real focus status */
|
|
1287
|
+
const focusRef = shallowRef(false);
|
|
1288
|
+
const onContainerFocus = function() {
|
|
1289
|
+
setMockFocused(true);
|
|
1290
|
+
if (!props.disabled) {
|
|
1291
|
+
if (props.onFocus && !focusRef.value) props.onFocus(...arguments);
|
|
1292
|
+
if (props.showAction && props.showAction.includes("focus")) onToggleOpen(true);
|
|
1293
|
+
}
|
|
1294
|
+
focusRef.value = true;
|
|
1295
|
+
};
|
|
1296
|
+
const popupFocused = ref(false);
|
|
1297
|
+
const onContainerBlur = function() {
|
|
1298
|
+
if (popupFocused.value) return;
|
|
1299
|
+
blurRef.value = true;
|
|
1300
|
+
setMockFocused(false, () => {
|
|
1301
|
+
focusRef.value = false;
|
|
1302
|
+
blurRef.value = false;
|
|
1303
|
+
onToggleOpen(false);
|
|
1304
|
+
});
|
|
1305
|
+
if (props.disabled) return;
|
|
1306
|
+
const searchVal = mergedSearchValue.value;
|
|
1307
|
+
if (searchVal) {
|
|
1308
|
+
if (props.mode === "tags") props.onSearch(searchVal, { source: "submit" });
|
|
1309
|
+
else if (props.mode === "multiple") props.onSearch("", { source: "blur" });
|
|
1310
|
+
}
|
|
1311
|
+
if (props.onBlur) props.onBlur(...arguments);
|
|
1312
|
+
};
|
|
1313
|
+
const onPopupFocusin = () => {
|
|
1314
|
+
popupFocused.value = true;
|
|
1315
|
+
};
|
|
1316
|
+
const onPopupFocusout = () => {
|
|
1317
|
+
popupFocused.value = false;
|
|
1318
|
+
};
|
|
1319
|
+
provide("VCSelectContainerEvent", {
|
|
1320
|
+
focus: onContainerFocus,
|
|
1321
|
+
blur: onContainerBlur
|
|
1322
|
+
});
|
|
1323
|
+
const onInternalMouseDown = function(event) {
|
|
1324
|
+
var _a, _b;
|
|
1325
|
+
const { target } = event;
|
|
1326
|
+
const popupElement = (_a = triggerRef.value) === null || _a === void 0 ? void 0 : _a.getPopupElement();
|
|
1327
|
+
if (popupElement && popupElement.contains(target)) {
|
|
1328
|
+
setTimeout(() => {
|
|
1329
|
+
var _a;
|
|
1330
|
+
cancelSetMockFocused();
|
|
1331
|
+
if (!mobile.value && !popupElement.contains((void 0).activeElement)) (_a = selectorRef.value) === null || _a === void 0 || _a.focus();
|
|
1332
|
+
});
|
|
1333
|
+
}
|
|
1334
|
+
for (var _len3 = arguments.length, restArgs = new Array(_len3 > 1 ? _len3 - 1 : 0), _key3 = 1; _key3 < _len3; _key3++) restArgs[_key3 - 1] = arguments[_key3];
|
|
1335
|
+
(_b = props.onMousedown) === null || _b === void 0 || _b.call(props, event, ...restArgs);
|
|
1336
|
+
};
|
|
1337
|
+
const containerWidth = shallowRef(null);
|
|
1338
|
+
const onPopupMouseEnter = () => {};
|
|
1339
|
+
useProvideBaseSelectProps(toReactive(_extends(_extends({}, toRefs(props)), {
|
|
1340
|
+
open: mergedOpen,
|
|
1341
|
+
triggerOpen,
|
|
1342
|
+
showSearch: mergedShowSearch,
|
|
1343
|
+
multiple,
|
|
1344
|
+
toggleOpen: onToggleOpen
|
|
1345
|
+
})));
|
|
1346
|
+
return () => {
|
|
1347
|
+
const _a = _extends(_extends({}, props), attrs), { prefixCls, id, open, defaultOpen, mode, showSearch, searchValue, onSearch, allowClear, clearIcon, showArrow, inputIcon, disabled, loading, getInputElement, getPopupContainer, placement, animation, transitionName, dropdownStyle, dropdownClassName, dropdownMatchSelectWidth, dropdownRender, dropdownAlign, showAction, direction, tokenSeparators, tagRender, optionLabelRender, onPopupScroll, onDropdownVisibleChange, onFocus, onBlur, onKeyup, onKeydown, onMousedown, onClear, omitDomProps, getRawInputElement, displayValues, onDisplayValuesChange, emptyOptions, activeDescendantId, activeValue, OptionList } = _a, restProps = __rest$3(_a, [
|
|
1348
|
+
"prefixCls",
|
|
1349
|
+
"id",
|
|
1350
|
+
"open",
|
|
1351
|
+
"defaultOpen",
|
|
1352
|
+
"mode",
|
|
1353
|
+
"showSearch",
|
|
1354
|
+
"searchValue",
|
|
1355
|
+
"onSearch",
|
|
1356
|
+
"allowClear",
|
|
1357
|
+
"clearIcon",
|
|
1358
|
+
"showArrow",
|
|
1359
|
+
"inputIcon",
|
|
1360
|
+
"disabled",
|
|
1361
|
+
"loading",
|
|
1362
|
+
"getInputElement",
|
|
1363
|
+
"getPopupContainer",
|
|
1364
|
+
"placement",
|
|
1365
|
+
"animation",
|
|
1366
|
+
"transitionName",
|
|
1367
|
+
"dropdownStyle",
|
|
1368
|
+
"dropdownClassName",
|
|
1369
|
+
"dropdownMatchSelectWidth",
|
|
1370
|
+
"dropdownRender",
|
|
1371
|
+
"dropdownAlign",
|
|
1372
|
+
"showAction",
|
|
1373
|
+
"direction",
|
|
1374
|
+
"tokenSeparators",
|
|
1375
|
+
"tagRender",
|
|
1376
|
+
"optionLabelRender",
|
|
1377
|
+
"onPopupScroll",
|
|
1378
|
+
"onDropdownVisibleChange",
|
|
1379
|
+
"onFocus",
|
|
1380
|
+
"onBlur",
|
|
1381
|
+
"onKeyup",
|
|
1382
|
+
"onKeydown",
|
|
1383
|
+
"onMousedown",
|
|
1384
|
+
"onClear",
|
|
1385
|
+
"omitDomProps",
|
|
1386
|
+
"getRawInputElement",
|
|
1387
|
+
"displayValues",
|
|
1388
|
+
"onDisplayValuesChange",
|
|
1389
|
+
"emptyOptions",
|
|
1390
|
+
"activeDescendantId",
|
|
1391
|
+
"activeValue",
|
|
1392
|
+
"OptionList"
|
|
1393
|
+
]);
|
|
1394
|
+
const customizeInputElement = mode === "combobox" && getInputElement && getInputElement() || null;
|
|
1395
|
+
const customizeRawInputElement = typeof getRawInputElement === "function" && getRawInputElement();
|
|
1396
|
+
const domProps = _extends({}, restProps);
|
|
1397
|
+
let onTriggerVisibleChange;
|
|
1398
|
+
if (customizeRawInputElement) onTriggerVisibleChange = (newOpen) => {
|
|
1399
|
+
onToggleOpen(newOpen);
|
|
1400
|
+
};
|
|
1401
|
+
DEFAULT_OMIT_PROPS.forEach((propName) => {
|
|
1402
|
+
delete domProps[propName];
|
|
1403
|
+
});
|
|
1404
|
+
omitDomProps === null || omitDomProps === void 0 || omitDomProps.forEach((propName) => {
|
|
1405
|
+
delete domProps[propName];
|
|
1406
|
+
});
|
|
1407
|
+
const mergedShowArrow = showArrow !== void 0 ? showArrow : loading || !multiple.value && mode !== "combobox";
|
|
1408
|
+
let arrowNode;
|
|
1409
|
+
if (mergedShowArrow) arrowNode = createVNode(TransBtn, {
|
|
1410
|
+
"class": classNames(`${prefixCls}-arrow`, { [`${prefixCls}-arrow-loading`]: loading }),
|
|
1411
|
+
"customizeIcon": inputIcon,
|
|
1412
|
+
"customizeIconProps": {
|
|
1413
|
+
loading,
|
|
1414
|
+
searchValue: mergedSearchValue.value,
|
|
1415
|
+
open: mergedOpen.value,
|
|
1416
|
+
focused: mockFocused.value,
|
|
1417
|
+
showSearch: mergedShowSearch.value
|
|
1418
|
+
}
|
|
1419
|
+
}, null);
|
|
1420
|
+
let clearNode;
|
|
1421
|
+
const onClearMouseDown = () => {
|
|
1422
|
+
onClear === null || onClear === void 0 || onClear();
|
|
1423
|
+
onDisplayValuesChange([], {
|
|
1424
|
+
type: "clear",
|
|
1425
|
+
values: displayValues
|
|
1426
|
+
});
|
|
1427
|
+
onInternalSearch("", false, false);
|
|
1428
|
+
};
|
|
1429
|
+
if (!disabled && allowClear && (displayValues.length || mergedSearchValue.value)) clearNode = createVNode(TransBtn, {
|
|
1430
|
+
"class": `${prefixCls}-clear`,
|
|
1431
|
+
"onMousedown": onClearMouseDown,
|
|
1432
|
+
"customizeIcon": clearIcon
|
|
1433
|
+
}, { default: () => [createTextVNode("×")] });
|
|
1434
|
+
const optionList = createVNode(OptionList, { "ref": listRef }, _extends(_extends({}, legacyTreeSelectContext.customSlots), { option: slots.option }));
|
|
1435
|
+
const mergedClassName = classNames(prefixCls, attrs.class, {
|
|
1436
|
+
[`${prefixCls}-focused`]: mockFocused.value,
|
|
1437
|
+
[`${prefixCls}-multiple`]: multiple.value,
|
|
1438
|
+
[`${prefixCls}-single`]: !multiple.value,
|
|
1439
|
+
[`${prefixCls}-allow-clear`]: allowClear,
|
|
1440
|
+
[`${prefixCls}-show-arrow`]: mergedShowArrow,
|
|
1441
|
+
[`${prefixCls}-disabled`]: disabled,
|
|
1442
|
+
[`${prefixCls}-loading`]: loading,
|
|
1443
|
+
[`${prefixCls}-open`]: mergedOpen.value,
|
|
1444
|
+
[`${prefixCls}-customize-input`]: customizeInputElement,
|
|
1445
|
+
[`${prefixCls}-show-search`]: mergedShowSearch.value
|
|
1446
|
+
});
|
|
1447
|
+
const selectorNode = createVNode(SelectTrigger, {
|
|
1448
|
+
"ref": triggerRef,
|
|
1449
|
+
"disabled": disabled,
|
|
1450
|
+
"prefixCls": prefixCls,
|
|
1451
|
+
"visible": triggerOpen.value,
|
|
1452
|
+
"popupElement": optionList,
|
|
1453
|
+
"containerWidth": containerWidth.value,
|
|
1454
|
+
"animation": animation,
|
|
1455
|
+
"transitionName": transitionName,
|
|
1456
|
+
"dropdownStyle": dropdownStyle,
|
|
1457
|
+
"dropdownClassName": dropdownClassName,
|
|
1458
|
+
"direction": direction,
|
|
1459
|
+
"dropdownMatchSelectWidth": dropdownMatchSelectWidth,
|
|
1460
|
+
"dropdownRender": dropdownRender,
|
|
1461
|
+
"dropdownAlign": dropdownAlign,
|
|
1462
|
+
"placement": placement,
|
|
1463
|
+
"getPopupContainer": getPopupContainer,
|
|
1464
|
+
"empty": emptyOptions,
|
|
1465
|
+
"getTriggerDOMNode": () => selectorDomRef.current,
|
|
1466
|
+
"onPopupVisibleChange": onTriggerVisibleChange,
|
|
1467
|
+
"onPopupMouseEnter": onPopupMouseEnter,
|
|
1468
|
+
"onPopupFocusin": onPopupFocusin,
|
|
1469
|
+
"onPopupFocusout": onPopupFocusout
|
|
1470
|
+
}, { default: () => {
|
|
1471
|
+
return customizeRawInputElement ? isValidElement(customizeRawInputElement) && cloneElement(customizeRawInputElement, { ref: selectorDomRef }, false, true) : createVNode(Selector, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
1472
|
+
"domRef": selectorDomRef,
|
|
1473
|
+
"prefixCls": prefixCls,
|
|
1474
|
+
"inputElement": customizeInputElement,
|
|
1475
|
+
"ref": selectorRef,
|
|
1476
|
+
"id": id,
|
|
1477
|
+
"showSearch": mergedShowSearch.value,
|
|
1478
|
+
"mode": mode,
|
|
1479
|
+
"activeDescendantId": activeDescendantId,
|
|
1480
|
+
"tagRender": tagRender,
|
|
1481
|
+
"optionLabelRender": optionLabelRender,
|
|
1482
|
+
"values": displayValues,
|
|
1483
|
+
"open": mergedOpen.value,
|
|
1484
|
+
"onToggleOpen": onToggleOpen,
|
|
1485
|
+
"activeValue": activeValue,
|
|
1486
|
+
"searchValue": mergedSearchValue.value,
|
|
1487
|
+
"onSearch": onInternalSearch,
|
|
1488
|
+
"onSearchSubmit": onInternalSearchSubmit,
|
|
1489
|
+
"onRemove": onSelectorRemove,
|
|
1490
|
+
"tokenWithEnter": tokenWithEnter.value
|
|
1491
|
+
}), null);
|
|
1492
|
+
} });
|
|
1493
|
+
let renderNode;
|
|
1494
|
+
if (customizeRawInputElement) renderNode = selectorNode;
|
|
1495
|
+
else renderNode = createVNode("div", _objectSpread2(_objectSpread2({}, domProps), {}, {
|
|
1496
|
+
"class": mergedClassName,
|
|
1497
|
+
"ref": containerRef,
|
|
1498
|
+
"onMousedown": onInternalMouseDown,
|
|
1499
|
+
"onKeydown": onInternalKeyDown,
|
|
1500
|
+
"onKeyup": onInternalKeyUp
|
|
1501
|
+
}), [
|
|
1502
|
+
mockFocused.value && !mergedOpen.value && createVNode("span", {
|
|
1503
|
+
"style": {
|
|
1504
|
+
width: 0,
|
|
1505
|
+
height: 0,
|
|
1506
|
+
position: "absolute",
|
|
1507
|
+
overflow: "hidden",
|
|
1508
|
+
opacity: 0
|
|
1509
|
+
},
|
|
1510
|
+
"aria-live": "polite"
|
|
1511
|
+
}, [`${displayValues.map((_ref2) => {
|
|
1512
|
+
let { label, value } = _ref2;
|
|
1513
|
+
return ["number", "string"].includes(typeof label) ? label : value;
|
|
1514
|
+
}).join(", ")}`]),
|
|
1515
|
+
selectorNode,
|
|
1516
|
+
arrowNode,
|
|
1517
|
+
clearNode
|
|
1518
|
+
]);
|
|
1519
|
+
return renderNode;
|
|
1520
|
+
};
|
|
1521
|
+
}
|
|
1522
|
+
});
|
|
1523
|
+
//#endregion
|
|
1524
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/vc-virtual-list/Filler.js
|
|
1525
|
+
var Filter = (_ref, _ref2) => {
|
|
1526
|
+
let { height, offset, prefixCls, onInnerResize } = _ref;
|
|
1527
|
+
let { slots } = _ref2;
|
|
1528
|
+
var _a;
|
|
1529
|
+
let outerStyle = {};
|
|
1530
|
+
let innerStyle = {
|
|
1531
|
+
display: "flex",
|
|
1532
|
+
flexDirection: "column"
|
|
1533
|
+
};
|
|
1534
|
+
if (offset !== void 0) {
|
|
1535
|
+
outerStyle = {
|
|
1536
|
+
height: `${height}px`,
|
|
1537
|
+
position: "relative",
|
|
1538
|
+
overflow: "hidden"
|
|
1539
|
+
};
|
|
1540
|
+
innerStyle = _extends(_extends({}, innerStyle), {
|
|
1541
|
+
transform: `translateY(${offset}px)`,
|
|
1542
|
+
position: "absolute",
|
|
1543
|
+
left: 0,
|
|
1544
|
+
right: 0,
|
|
1545
|
+
top: 0
|
|
1546
|
+
});
|
|
1547
|
+
}
|
|
1548
|
+
return createVNode("div", { "style": outerStyle }, [createVNode(vc_resize_observer_default, { "onResize": (_ref3) => {
|
|
1549
|
+
let { offsetHeight } = _ref3;
|
|
1550
|
+
if (offsetHeight && onInnerResize) onInnerResize();
|
|
1551
|
+
} }, { default: () => [createVNode("div", {
|
|
1552
|
+
"style": innerStyle,
|
|
1553
|
+
"class": classNames({ [`${prefixCls}-holder-inner`]: prefixCls })
|
|
1554
|
+
}, [(_a = slots.default) === null || _a === void 0 ? void 0 : _a.call(slots)])] })]);
|
|
1555
|
+
};
|
|
1556
|
+
Filter.displayName = "Filter";
|
|
1557
|
+
Filter.inheritAttrs = false;
|
|
1558
|
+
Filter.props = {
|
|
1559
|
+
prefixCls: String,
|
|
1560
|
+
/** Virtual filler height. Should be `count * itemMinHeight` */
|
|
1561
|
+
height: Number,
|
|
1562
|
+
/** Set offset of visible items. Should be the top of start item position */
|
|
1563
|
+
offset: Number,
|
|
1564
|
+
onInnerResize: Function
|
|
1565
|
+
};
|
|
1566
|
+
//#endregion
|
|
1567
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/vc-virtual-list/Item.js
|
|
1568
|
+
var Item = (_ref, _ref2) => {
|
|
1569
|
+
let { setRef } = _ref;
|
|
1570
|
+
let { slots } = _ref2;
|
|
1571
|
+
var _a;
|
|
1572
|
+
const children = flattenChildren((_a = slots.default) === null || _a === void 0 ? void 0 : _a.call(slots));
|
|
1573
|
+
return children && children.length ? cloneVNode(children[0], { ref: setRef }) : children;
|
|
1574
|
+
};
|
|
1575
|
+
Item.props = { setRef: {
|
|
1576
|
+
type: Function,
|
|
1577
|
+
default: () => {}
|
|
1578
|
+
} };
|
|
1579
|
+
//#endregion
|
|
1580
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/vc-virtual-list/ScrollBar.js
|
|
1581
|
+
var MIN_SIZE = 20;
|
|
1582
|
+
function getPageY(e) {
|
|
1583
|
+
return "touches" in e ? e.touches[0].pageY : e.pageY;
|
|
1584
|
+
}
|
|
1585
|
+
var ScrollBar_default = defineComponent({
|
|
1586
|
+
compatConfig: { MODE: 3 },
|
|
1587
|
+
name: "ScrollBar",
|
|
1588
|
+
inheritAttrs: false,
|
|
1589
|
+
props: {
|
|
1590
|
+
prefixCls: String,
|
|
1591
|
+
scrollTop: Number,
|
|
1592
|
+
scrollHeight: Number,
|
|
1593
|
+
height: Number,
|
|
1594
|
+
count: Number,
|
|
1595
|
+
onScroll: { type: Function },
|
|
1596
|
+
onStartMove: { type: Function },
|
|
1597
|
+
onStopMove: { type: Function }
|
|
1598
|
+
},
|
|
1599
|
+
setup() {
|
|
1600
|
+
return {
|
|
1601
|
+
moveRaf: null,
|
|
1602
|
+
scrollbarRef: createRef(),
|
|
1603
|
+
thumbRef: createRef(),
|
|
1604
|
+
visibleTimeout: null,
|
|
1605
|
+
state: reactive({
|
|
1606
|
+
dragging: false,
|
|
1607
|
+
pageY: null,
|
|
1608
|
+
startTop: null,
|
|
1609
|
+
visible: false
|
|
1610
|
+
})
|
|
1611
|
+
};
|
|
1612
|
+
},
|
|
1613
|
+
watch: { scrollTop: {
|
|
1614
|
+
handler() {
|
|
1615
|
+
this.delayHidden();
|
|
1616
|
+
},
|
|
1617
|
+
flush: "post"
|
|
1618
|
+
} },
|
|
1619
|
+
mounted() {
|
|
1620
|
+
var _a, _b;
|
|
1621
|
+
(_a = this.scrollbarRef.current) === null || _a === void 0 || _a.addEventListener("touchstart", this.onScrollbarTouchStart, supportsPassive_default ? { passive: false } : false);
|
|
1622
|
+
(_b = this.thumbRef.current) === null || _b === void 0 || _b.addEventListener("touchstart", this.onMouseDown, supportsPassive_default ? { passive: false } : false);
|
|
1623
|
+
},
|
|
1624
|
+
beforeUnmount() {
|
|
1625
|
+
this.removeEvents();
|
|
1626
|
+
clearTimeout(this.visibleTimeout);
|
|
1627
|
+
},
|
|
1628
|
+
methods: {
|
|
1629
|
+
delayHidden() {
|
|
1630
|
+
clearTimeout(this.visibleTimeout);
|
|
1631
|
+
this.state.visible = true;
|
|
1632
|
+
this.visibleTimeout = setTimeout(() => {
|
|
1633
|
+
this.state.visible = false;
|
|
1634
|
+
}, 2e3);
|
|
1635
|
+
},
|
|
1636
|
+
onScrollbarTouchStart(e) {
|
|
1637
|
+
e.preventDefault();
|
|
1638
|
+
},
|
|
1639
|
+
onContainerMouseDown(e) {
|
|
1640
|
+
e.stopPropagation();
|
|
1641
|
+
e.preventDefault();
|
|
1642
|
+
},
|
|
1643
|
+
patchEvents() {
|
|
1644
|
+
(void 0).addEventListener("mousemove", this.onMouseMove);
|
|
1645
|
+
(void 0).addEventListener("mouseup", this.onMouseUp);
|
|
1646
|
+
this.thumbRef.current.addEventListener("touchmove", this.onMouseMove, supportsPassive_default ? { passive: false } : false);
|
|
1647
|
+
this.thumbRef.current.addEventListener("touchend", this.onMouseUp);
|
|
1648
|
+
},
|
|
1649
|
+
removeEvents() {
|
|
1650
|
+
(void 0).removeEventListener("mousemove", this.onMouseMove);
|
|
1651
|
+
(void 0).removeEventListener("mouseup", this.onMouseUp);
|
|
1652
|
+
this.scrollbarRef.current.removeEventListener("touchstart", this.onScrollbarTouchStart, supportsPassive_default ? { passive: false } : false);
|
|
1653
|
+
if (this.thumbRef.current) {
|
|
1654
|
+
this.thumbRef.current.removeEventListener("touchstart", this.onMouseDown, supportsPassive_default ? { passive: false } : false);
|
|
1655
|
+
this.thumbRef.current.removeEventListener("touchmove", this.onMouseMove, supportsPassive_default ? { passive: false } : false);
|
|
1656
|
+
this.thumbRef.current.removeEventListener("touchend", this.onMouseUp);
|
|
1657
|
+
}
|
|
1658
|
+
wrapperRaf.cancel(this.moveRaf);
|
|
1659
|
+
},
|
|
1660
|
+
onMouseDown(e) {
|
|
1661
|
+
const { onStartMove } = this.$props;
|
|
1662
|
+
_extends(this.state, {
|
|
1663
|
+
dragging: true,
|
|
1664
|
+
pageY: getPageY(e),
|
|
1665
|
+
startTop: this.getTop()
|
|
1666
|
+
});
|
|
1667
|
+
onStartMove();
|
|
1668
|
+
this.patchEvents();
|
|
1669
|
+
e.stopPropagation();
|
|
1670
|
+
e.preventDefault();
|
|
1671
|
+
},
|
|
1672
|
+
onMouseMove(e) {
|
|
1673
|
+
const { dragging, pageY, startTop } = this.state;
|
|
1674
|
+
const { onScroll } = this.$props;
|
|
1675
|
+
wrapperRaf.cancel(this.moveRaf);
|
|
1676
|
+
if (dragging) {
|
|
1677
|
+
const newTop = startTop + (getPageY(e) - pageY);
|
|
1678
|
+
const enableScrollRange = this.getEnableScrollRange();
|
|
1679
|
+
const enableHeightRange = this.getEnableHeightRange();
|
|
1680
|
+
const ptg = enableHeightRange ? newTop / enableHeightRange : 0;
|
|
1681
|
+
const newScrollTop = Math.ceil(ptg * enableScrollRange);
|
|
1682
|
+
this.moveRaf = wrapperRaf(() => {
|
|
1683
|
+
onScroll(newScrollTop);
|
|
1684
|
+
});
|
|
1685
|
+
}
|
|
1686
|
+
},
|
|
1687
|
+
onMouseUp() {
|
|
1688
|
+
const { onStopMove } = this.$props;
|
|
1689
|
+
this.state.dragging = false;
|
|
1690
|
+
onStopMove();
|
|
1691
|
+
this.removeEvents();
|
|
1692
|
+
},
|
|
1693
|
+
getSpinHeight() {
|
|
1694
|
+
const { height, scrollHeight } = this.$props;
|
|
1695
|
+
let baseHeight = height / scrollHeight * 100;
|
|
1696
|
+
baseHeight = Math.max(baseHeight, MIN_SIZE);
|
|
1697
|
+
baseHeight = Math.min(baseHeight, height / 2);
|
|
1698
|
+
return Math.floor(baseHeight);
|
|
1699
|
+
},
|
|
1700
|
+
getEnableScrollRange() {
|
|
1701
|
+
const { scrollHeight, height } = this.$props;
|
|
1702
|
+
return scrollHeight - height || 0;
|
|
1703
|
+
},
|
|
1704
|
+
getEnableHeightRange() {
|
|
1705
|
+
const { height } = this.$props;
|
|
1706
|
+
return height - this.getSpinHeight() || 0;
|
|
1707
|
+
},
|
|
1708
|
+
getTop() {
|
|
1709
|
+
const { scrollTop } = this.$props;
|
|
1710
|
+
const enableScrollRange = this.getEnableScrollRange();
|
|
1711
|
+
const enableHeightRange = this.getEnableHeightRange();
|
|
1712
|
+
if (scrollTop === 0 || enableScrollRange === 0) return 0;
|
|
1713
|
+
return scrollTop / enableScrollRange * enableHeightRange;
|
|
1714
|
+
},
|
|
1715
|
+
showScroll() {
|
|
1716
|
+
const { height, scrollHeight } = this.$props;
|
|
1717
|
+
return scrollHeight > height;
|
|
1718
|
+
}
|
|
1719
|
+
},
|
|
1720
|
+
render() {
|
|
1721
|
+
const { dragging, visible } = this.state;
|
|
1722
|
+
const { prefixCls } = this.$props;
|
|
1723
|
+
const spinHeight = this.getSpinHeight() + "px";
|
|
1724
|
+
const top = this.getTop() + "px";
|
|
1725
|
+
const canScroll = this.showScroll();
|
|
1726
|
+
const mergedVisible = canScroll && visible;
|
|
1727
|
+
return createVNode("div", {
|
|
1728
|
+
"ref": this.scrollbarRef,
|
|
1729
|
+
"class": classNames(`${prefixCls}-scrollbar`, { [`${prefixCls}-scrollbar-show`]: canScroll }),
|
|
1730
|
+
"style": {
|
|
1731
|
+
width: "8px",
|
|
1732
|
+
top: 0,
|
|
1733
|
+
bottom: 0,
|
|
1734
|
+
right: 0,
|
|
1735
|
+
position: "absolute",
|
|
1736
|
+
display: mergedVisible ? void 0 : "none"
|
|
1737
|
+
},
|
|
1738
|
+
"onMousedown": this.onContainerMouseDown,
|
|
1739
|
+
"onMousemove": this.delayHidden
|
|
1740
|
+
}, [createVNode("div", {
|
|
1741
|
+
"ref": this.thumbRef,
|
|
1742
|
+
"class": classNames(`${prefixCls}-scrollbar-thumb`, { [`${prefixCls}-scrollbar-thumb-moving`]: dragging }),
|
|
1743
|
+
"style": {
|
|
1744
|
+
width: "100%",
|
|
1745
|
+
height: spinHeight,
|
|
1746
|
+
top,
|
|
1747
|
+
left: 0,
|
|
1748
|
+
position: "absolute",
|
|
1749
|
+
background: "rgba(0, 0, 0, 0.5)",
|
|
1750
|
+
borderRadius: "99px",
|
|
1751
|
+
cursor: "pointer",
|
|
1752
|
+
userSelect: "none"
|
|
1753
|
+
},
|
|
1754
|
+
"onMousedown": this.onMouseDown
|
|
1755
|
+
}, null)]);
|
|
1756
|
+
}
|
|
1757
|
+
});
|
|
1758
|
+
//#endregion
|
|
1759
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/vc-virtual-list/hooks/useHeights.js
|
|
1760
|
+
function useHeights(mergedData, getKey, onItemAdd, onItemRemove) {
|
|
1761
|
+
const instance = /* @__PURE__ */ new Map();
|
|
1762
|
+
const heights = /* @__PURE__ */ new Map();
|
|
1763
|
+
const updatedMark = ref(Symbol("update"));
|
|
1764
|
+
watch(mergedData, () => {
|
|
1765
|
+
updatedMark.value = Symbol("update");
|
|
1766
|
+
});
|
|
1767
|
+
let collectRaf = void 0;
|
|
1768
|
+
function cancelRaf() {
|
|
1769
|
+
wrapperRaf.cancel(collectRaf);
|
|
1770
|
+
}
|
|
1771
|
+
function collectHeight() {
|
|
1772
|
+
cancelRaf();
|
|
1773
|
+
collectRaf = wrapperRaf(() => {
|
|
1774
|
+
instance.forEach((element, key) => {
|
|
1775
|
+
if (element && element.offsetParent) {
|
|
1776
|
+
const { offsetHeight } = element;
|
|
1777
|
+
if (heights.get(key) !== offsetHeight) {
|
|
1778
|
+
updatedMark.value = Symbol("update");
|
|
1779
|
+
heights.set(key, element.offsetHeight);
|
|
1780
|
+
}
|
|
1781
|
+
}
|
|
1782
|
+
});
|
|
1783
|
+
});
|
|
1784
|
+
}
|
|
1785
|
+
function setInstance(item, ins) {
|
|
1786
|
+
const key = getKey(item);
|
|
1787
|
+
instance.get(key);
|
|
1788
|
+
if (ins) {
|
|
1789
|
+
instance.set(key, ins.$el || ins);
|
|
1790
|
+
collectHeight();
|
|
1791
|
+
} else instance.delete(key);
|
|
1792
|
+
}
|
|
1793
|
+
return [
|
|
1794
|
+
setInstance,
|
|
1795
|
+
collectHeight,
|
|
1796
|
+
heights,
|
|
1797
|
+
updatedMark
|
|
1798
|
+
];
|
|
1799
|
+
}
|
|
1800
|
+
//#endregion
|
|
1801
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/vc-virtual-list/hooks/useScrollTo.js
|
|
1802
|
+
function useScrollTo(containerRef, mergedData, heights, props, getKey, collectHeight, syncScrollTop, triggerFlash) {
|
|
1803
|
+
let scroll;
|
|
1804
|
+
return (arg) => {
|
|
1805
|
+
if (arg === null || arg === void 0) {
|
|
1806
|
+
triggerFlash();
|
|
1807
|
+
return;
|
|
1808
|
+
}
|
|
1809
|
+
wrapperRaf.cancel(scroll);
|
|
1810
|
+
const data = mergedData.value;
|
|
1811
|
+
const itemHeight = props.itemHeight;
|
|
1812
|
+
if (typeof arg === "number") syncScrollTop(arg);
|
|
1813
|
+
else if (arg && typeof arg === "object") {
|
|
1814
|
+
let index;
|
|
1815
|
+
const { align } = arg;
|
|
1816
|
+
if ("index" in arg) ({index} = arg);
|
|
1817
|
+
else index = data.findIndex((item) => getKey(item) === arg.key);
|
|
1818
|
+
const { offset = 0 } = arg;
|
|
1819
|
+
const syncScroll = (times, targetAlign) => {
|
|
1820
|
+
if (times < 0 || !containerRef.value) return;
|
|
1821
|
+
const height = containerRef.value.clientHeight;
|
|
1822
|
+
let needCollectHeight = false;
|
|
1823
|
+
let newTargetAlign = targetAlign;
|
|
1824
|
+
if (height) {
|
|
1825
|
+
const mergedAlign = targetAlign || align;
|
|
1826
|
+
let stackTop = 0;
|
|
1827
|
+
let itemTop = 0;
|
|
1828
|
+
let itemBottom = 0;
|
|
1829
|
+
const maxLen = Math.min(data.length, index);
|
|
1830
|
+
for (let i = 0; i <= maxLen; i += 1) {
|
|
1831
|
+
const key = getKey(data[i]);
|
|
1832
|
+
itemTop = stackTop;
|
|
1833
|
+
const cacheHeight = heights.get(key);
|
|
1834
|
+
itemBottom = itemTop + (cacheHeight === void 0 ? itemHeight : cacheHeight);
|
|
1835
|
+
stackTop = itemBottom;
|
|
1836
|
+
if (i === index && cacheHeight === void 0) needCollectHeight = true;
|
|
1837
|
+
}
|
|
1838
|
+
const scrollTop = containerRef.value.scrollTop;
|
|
1839
|
+
let targetTop = null;
|
|
1840
|
+
switch (mergedAlign) {
|
|
1841
|
+
case "top":
|
|
1842
|
+
targetTop = itemTop - offset;
|
|
1843
|
+
break;
|
|
1844
|
+
case "bottom":
|
|
1845
|
+
targetTop = itemBottom - height + offset;
|
|
1846
|
+
break;
|
|
1847
|
+
default: {
|
|
1848
|
+
const scrollBottom = scrollTop + height;
|
|
1849
|
+
if (itemTop < scrollTop) newTargetAlign = "top";
|
|
1850
|
+
else if (itemBottom > scrollBottom) newTargetAlign = "bottom";
|
|
1851
|
+
}
|
|
1852
|
+
}
|
|
1853
|
+
if (targetTop !== null && targetTop !== scrollTop) syncScrollTop(targetTop);
|
|
1854
|
+
}
|
|
1855
|
+
scroll = wrapperRaf(() => {
|
|
1856
|
+
if (needCollectHeight) collectHeight();
|
|
1857
|
+
syncScroll(times - 1, newTargetAlign);
|
|
1858
|
+
}, 2);
|
|
1859
|
+
};
|
|
1860
|
+
syncScroll(5);
|
|
1861
|
+
}
|
|
1862
|
+
};
|
|
1863
|
+
}
|
|
1864
|
+
//#endregion
|
|
1865
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/vc-virtual-list/hooks/useOriginScroll.js
|
|
1866
|
+
var useOriginScroll_default = ((isScrollAtTop, isScrollAtBottom) => {
|
|
1867
|
+
let lock = false;
|
|
1868
|
+
let lockTimeout = null;
|
|
1869
|
+
function lockScroll() {
|
|
1870
|
+
clearTimeout(lockTimeout);
|
|
1871
|
+
lock = true;
|
|
1872
|
+
lockTimeout = setTimeout(() => {
|
|
1873
|
+
lock = false;
|
|
1874
|
+
}, 50);
|
|
1875
|
+
}
|
|
1876
|
+
return function(deltaY) {
|
|
1877
|
+
let smoothOffset = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
|
|
1878
|
+
const originScroll = deltaY < 0 && isScrollAtTop.value || deltaY > 0 && isScrollAtBottom.value;
|
|
1879
|
+
if (smoothOffset && originScroll) {
|
|
1880
|
+
clearTimeout(lockTimeout);
|
|
1881
|
+
lock = false;
|
|
1882
|
+
} else if (!originScroll || lock) lockScroll();
|
|
1883
|
+
return !lock && originScroll;
|
|
1884
|
+
};
|
|
1885
|
+
});
|
|
1886
|
+
//#endregion
|
|
1887
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/vc-virtual-list/hooks/useFrameWheel.js
|
|
1888
|
+
function useFrameWheel(inVirtual, isScrollAtTop, isScrollAtBottom, onWheelDelta) {
|
|
1889
|
+
let offsetRef = 0;
|
|
1890
|
+
let nextFrame = null;
|
|
1891
|
+
let wheelValue = null;
|
|
1892
|
+
let isMouseScroll = false;
|
|
1893
|
+
const originScroll = useOriginScroll_default(isScrollAtTop, isScrollAtBottom);
|
|
1894
|
+
function onWheel(event) {
|
|
1895
|
+
if (!inVirtual.value) return;
|
|
1896
|
+
wrapperRaf.cancel(nextFrame);
|
|
1897
|
+
const { deltaY } = event;
|
|
1898
|
+
offsetRef += deltaY;
|
|
1899
|
+
wheelValue = deltaY;
|
|
1900
|
+
if (originScroll(deltaY)) return;
|
|
1901
|
+
event.preventDefault();
|
|
1902
|
+
nextFrame = wrapperRaf(() => {
|
|
1903
|
+
onWheelDelta(offsetRef * (isMouseScroll ? 10 : 1));
|
|
1904
|
+
offsetRef = 0;
|
|
1905
|
+
});
|
|
1906
|
+
}
|
|
1907
|
+
function onFireFoxScroll(event) {
|
|
1908
|
+
if (!inVirtual.value) return;
|
|
1909
|
+
isMouseScroll = event.detail === wheelValue;
|
|
1910
|
+
}
|
|
1911
|
+
return [onWheel, onFireFoxScroll];
|
|
1912
|
+
}
|
|
1913
|
+
//#endregion
|
|
1914
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/vc-virtual-list/List.js
|
|
1915
|
+
var __rest$2 = function(s, e) {
|
|
1916
|
+
var t = {};
|
|
1917
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
1918
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") {
|
|
1919
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
1920
|
+
}
|
|
1921
|
+
return t;
|
|
1922
|
+
};
|
|
1923
|
+
var EMPTY_DATA = [];
|
|
1924
|
+
var ScrollStyle = {
|
|
1925
|
+
overflowY: "auto",
|
|
1926
|
+
overflowAnchor: "none"
|
|
1927
|
+
};
|
|
1928
|
+
function renderChildren(list, startIndex, endIndex, setNodeRef, renderFunc, _ref) {
|
|
1929
|
+
let { getKey } = _ref;
|
|
1930
|
+
return list.slice(startIndex, endIndex + 1).map((item, index) => {
|
|
1931
|
+
const node = renderFunc(item, startIndex + index, {});
|
|
1932
|
+
const key = getKey(item);
|
|
1933
|
+
return createVNode(Item, {
|
|
1934
|
+
"key": key,
|
|
1935
|
+
"setRef": (ele) => setNodeRef(item, ele)
|
|
1936
|
+
}, { default: () => [node] });
|
|
1937
|
+
});
|
|
1938
|
+
}
|
|
1939
|
+
//#endregion
|
|
1940
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/vc-virtual-list/index.js
|
|
1941
|
+
var vc_virtual_list_default = defineComponent({
|
|
1942
|
+
compatConfig: { MODE: 3 },
|
|
1943
|
+
name: "List",
|
|
1944
|
+
inheritAttrs: false,
|
|
1945
|
+
props: {
|
|
1946
|
+
prefixCls: String,
|
|
1947
|
+
data: PropTypes.array,
|
|
1948
|
+
height: Number,
|
|
1949
|
+
itemHeight: Number,
|
|
1950
|
+
/** If not match virtual scroll condition, Set List still use height of container. */
|
|
1951
|
+
fullHeight: {
|
|
1952
|
+
type: Boolean,
|
|
1953
|
+
default: void 0
|
|
1954
|
+
},
|
|
1955
|
+
itemKey: {
|
|
1956
|
+
type: [
|
|
1957
|
+
String,
|
|
1958
|
+
Number,
|
|
1959
|
+
Function
|
|
1960
|
+
],
|
|
1961
|
+
required: true
|
|
1962
|
+
},
|
|
1963
|
+
component: { type: [String, Object] },
|
|
1964
|
+
/** Set `false` will always use real scroll instead of virtual one */
|
|
1965
|
+
virtual: {
|
|
1966
|
+
type: Boolean,
|
|
1967
|
+
default: void 0
|
|
1968
|
+
},
|
|
1969
|
+
children: Function,
|
|
1970
|
+
onScroll: Function,
|
|
1971
|
+
onMousedown: Function,
|
|
1972
|
+
onMouseenter: Function,
|
|
1973
|
+
onVisibleChange: Function
|
|
1974
|
+
},
|
|
1975
|
+
setup(props, _ref2) {
|
|
1976
|
+
let { expose } = _ref2;
|
|
1977
|
+
const useVirtual = computed(() => {
|
|
1978
|
+
const { height, itemHeight, virtual } = props;
|
|
1979
|
+
return !!(virtual !== false && height && itemHeight);
|
|
1980
|
+
});
|
|
1981
|
+
const inVirtual = computed(() => {
|
|
1982
|
+
const { height, itemHeight, data } = props;
|
|
1983
|
+
return useVirtual.value && data && itemHeight * data.length > height;
|
|
1984
|
+
});
|
|
1985
|
+
const state = reactive({
|
|
1986
|
+
scrollTop: 0,
|
|
1987
|
+
scrollMoving: false
|
|
1988
|
+
});
|
|
1989
|
+
const data = computed(() => {
|
|
1990
|
+
return props.data || EMPTY_DATA;
|
|
1991
|
+
});
|
|
1992
|
+
const mergedData = shallowRef([]);
|
|
1993
|
+
watch(data, () => {
|
|
1994
|
+
mergedData.value = toRaw(data.value).slice();
|
|
1995
|
+
}, { immediate: true });
|
|
1996
|
+
const itemKey = shallowRef((_item) => void 0);
|
|
1997
|
+
watch(() => props.itemKey, (val) => {
|
|
1998
|
+
if (typeof val === "function") itemKey.value = val;
|
|
1999
|
+
else itemKey.value = (item) => item === null || item === void 0 ? void 0 : item[val];
|
|
2000
|
+
}, { immediate: true });
|
|
2001
|
+
const componentRef = shallowRef();
|
|
2002
|
+
const fillerInnerRef = shallowRef();
|
|
2003
|
+
const scrollBarRef = shallowRef();
|
|
2004
|
+
const getKey = (item) => {
|
|
2005
|
+
return itemKey.value(item);
|
|
2006
|
+
};
|
|
2007
|
+
const sharedConfig = { getKey };
|
|
2008
|
+
function syncScrollTop(newTop) {
|
|
2009
|
+
let value;
|
|
2010
|
+
if (typeof newTop === "function") value = newTop(state.scrollTop);
|
|
2011
|
+
else value = newTop;
|
|
2012
|
+
const alignedTop = keepInRange(value);
|
|
2013
|
+
if (componentRef.value) componentRef.value.scrollTop = alignedTop;
|
|
2014
|
+
state.scrollTop = alignedTop;
|
|
2015
|
+
}
|
|
2016
|
+
const [setInstance, collectHeight, heights, updatedMark] = useHeights(mergedData, getKey);
|
|
2017
|
+
const calRes = reactive({
|
|
2018
|
+
scrollHeight: void 0,
|
|
2019
|
+
start: 0,
|
|
2020
|
+
end: 0,
|
|
2021
|
+
offset: void 0
|
|
2022
|
+
});
|
|
2023
|
+
const offsetHeight = shallowRef(0);
|
|
2024
|
+
watch([useVirtual, mergedData], () => {
|
|
2025
|
+
if (!useVirtual.value) _extends(calRes, {
|
|
2026
|
+
scrollHeight: void 0,
|
|
2027
|
+
start: 0,
|
|
2028
|
+
end: mergedData.value.length - 1,
|
|
2029
|
+
offset: void 0
|
|
2030
|
+
});
|
|
2031
|
+
}, { immediate: true });
|
|
2032
|
+
watch([
|
|
2033
|
+
useVirtual,
|
|
2034
|
+
mergedData,
|
|
2035
|
+
offsetHeight,
|
|
2036
|
+
inVirtual
|
|
2037
|
+
], () => {
|
|
2038
|
+
if (useVirtual.value && !inVirtual.value) _extends(calRes, {
|
|
2039
|
+
scrollHeight: offsetHeight.value,
|
|
2040
|
+
start: 0,
|
|
2041
|
+
end: mergedData.value.length - 1,
|
|
2042
|
+
offset: void 0
|
|
2043
|
+
});
|
|
2044
|
+
if (componentRef.value) state.scrollTop = componentRef.value.scrollTop;
|
|
2045
|
+
}, { immediate: true });
|
|
2046
|
+
watch([
|
|
2047
|
+
inVirtual,
|
|
2048
|
+
useVirtual,
|
|
2049
|
+
() => state.scrollTop,
|
|
2050
|
+
mergedData,
|
|
2051
|
+
updatedMark,
|
|
2052
|
+
() => props.height,
|
|
2053
|
+
offsetHeight
|
|
2054
|
+
], () => {
|
|
2055
|
+
if (!useVirtual.value || !inVirtual.value) return;
|
|
2056
|
+
let itemTop = 0;
|
|
2057
|
+
let startIndex;
|
|
2058
|
+
let startOffset;
|
|
2059
|
+
let endIndex;
|
|
2060
|
+
const dataLen = mergedData.value.length;
|
|
2061
|
+
const data = mergedData.value;
|
|
2062
|
+
const scrollTop = state.scrollTop;
|
|
2063
|
+
const { itemHeight, height } = props;
|
|
2064
|
+
const scrollTopHeight = scrollTop + height;
|
|
2065
|
+
for (let i = 0; i < dataLen; i += 1) {
|
|
2066
|
+
const item = data[i];
|
|
2067
|
+
const key = getKey(item);
|
|
2068
|
+
let cacheHeight = heights.get(key);
|
|
2069
|
+
if (cacheHeight === void 0) cacheHeight = itemHeight;
|
|
2070
|
+
const currentItemBottom = itemTop + cacheHeight;
|
|
2071
|
+
if (startIndex === void 0 && currentItemBottom >= scrollTop) {
|
|
2072
|
+
startIndex = i;
|
|
2073
|
+
startOffset = itemTop;
|
|
2074
|
+
}
|
|
2075
|
+
if (endIndex === void 0 && currentItemBottom > scrollTopHeight) endIndex = i;
|
|
2076
|
+
itemTop = currentItemBottom;
|
|
2077
|
+
}
|
|
2078
|
+
if (startIndex === void 0) {
|
|
2079
|
+
startIndex = 0;
|
|
2080
|
+
startOffset = 0;
|
|
2081
|
+
endIndex = Math.ceil(height / itemHeight);
|
|
2082
|
+
}
|
|
2083
|
+
if (endIndex === void 0) endIndex = dataLen - 1;
|
|
2084
|
+
endIndex = Math.min(endIndex + 1, dataLen);
|
|
2085
|
+
_extends(calRes, {
|
|
2086
|
+
scrollHeight: itemTop,
|
|
2087
|
+
start: startIndex,
|
|
2088
|
+
end: endIndex,
|
|
2089
|
+
offset: startOffset
|
|
2090
|
+
});
|
|
2091
|
+
}, { immediate: true });
|
|
2092
|
+
const maxScrollHeight = computed(() => calRes.scrollHeight - props.height);
|
|
2093
|
+
function keepInRange(newScrollTop) {
|
|
2094
|
+
let newTop = newScrollTop;
|
|
2095
|
+
if (!Number.isNaN(maxScrollHeight.value)) newTop = Math.min(newTop, maxScrollHeight.value);
|
|
2096
|
+
newTop = Math.max(newTop, 0);
|
|
2097
|
+
return newTop;
|
|
2098
|
+
}
|
|
2099
|
+
const isScrollAtTop = computed(() => state.scrollTop <= 0);
|
|
2100
|
+
const isScrollAtBottom = computed(() => state.scrollTop >= maxScrollHeight.value);
|
|
2101
|
+
function onScrollBar(newScrollTop) {
|
|
2102
|
+
syncScrollTop(newScrollTop);
|
|
2103
|
+
}
|
|
2104
|
+
function onFallbackScroll(e) {
|
|
2105
|
+
var _a;
|
|
2106
|
+
const { scrollTop: newScrollTop } = e.currentTarget;
|
|
2107
|
+
if (newScrollTop !== state.scrollTop) syncScrollTop(newScrollTop);
|
|
2108
|
+
(_a = props.onScroll) === null || _a === void 0 || _a.call(props, e);
|
|
2109
|
+
}
|
|
2110
|
+
const [onRawWheel, onFireFoxScroll] = useFrameWheel(useVirtual, isScrollAtTop, isScrollAtBottom, (offsetY) => {
|
|
2111
|
+
syncScrollTop((top) => {
|
|
2112
|
+
return top + offsetY;
|
|
2113
|
+
});
|
|
2114
|
+
});
|
|
2115
|
+
function onMozMousePixelScroll(e) {
|
|
2116
|
+
if (useVirtual.value) e.preventDefault();
|
|
2117
|
+
}
|
|
2118
|
+
const removeEventListener = () => {
|
|
2119
|
+
if (componentRef.value) {
|
|
2120
|
+
componentRef.value.removeEventListener("wheel", onRawWheel, supportsPassive_default ? { passive: false } : false);
|
|
2121
|
+
componentRef.value.removeEventListener("DOMMouseScroll", onFireFoxScroll);
|
|
2122
|
+
componentRef.value.removeEventListener("MozMousePixelScroll", onMozMousePixelScroll);
|
|
2123
|
+
}
|
|
2124
|
+
};
|
|
2125
|
+
watchEffect(() => {
|
|
2126
|
+
nextTick(() => {
|
|
2127
|
+
if (componentRef.value) {
|
|
2128
|
+
removeEventListener();
|
|
2129
|
+
componentRef.value.addEventListener("wheel", onRawWheel, supportsPassive_default ? { passive: false } : false);
|
|
2130
|
+
componentRef.value.addEventListener("DOMMouseScroll", onFireFoxScroll);
|
|
2131
|
+
componentRef.value.addEventListener("MozMousePixelScroll", onMozMousePixelScroll);
|
|
2132
|
+
}
|
|
2133
|
+
});
|
|
2134
|
+
});
|
|
2135
|
+
expose({ scrollTo: useScrollTo(componentRef, mergedData, heights, props, getKey, collectHeight, syncScrollTop, () => {
|
|
2136
|
+
var _a;
|
|
2137
|
+
(_a = scrollBarRef.value) === null || _a === void 0 || _a.delayHidden();
|
|
2138
|
+
}) });
|
|
2139
|
+
const componentStyle = computed(() => {
|
|
2140
|
+
let cs = null;
|
|
2141
|
+
if (props.height) {
|
|
2142
|
+
cs = _extends({ [props.fullHeight ? "height" : "maxHeight"]: props.height + "px" }, ScrollStyle);
|
|
2143
|
+
if (useVirtual.value) {
|
|
2144
|
+
cs.overflowY = "hidden";
|
|
2145
|
+
if (state.scrollMoving) cs.pointerEvents = "none";
|
|
2146
|
+
}
|
|
2147
|
+
}
|
|
2148
|
+
return cs;
|
|
2149
|
+
});
|
|
2150
|
+
/** We need told outside that some list not rendered */
|
|
2151
|
+
watch([
|
|
2152
|
+
() => calRes.start,
|
|
2153
|
+
() => calRes.end,
|
|
2154
|
+
mergedData
|
|
2155
|
+
], () => {
|
|
2156
|
+
if (props.onVisibleChange) {
|
|
2157
|
+
const renderList = mergedData.value.slice(calRes.start, calRes.end + 1);
|
|
2158
|
+
props.onVisibleChange(renderList, mergedData.value);
|
|
2159
|
+
}
|
|
2160
|
+
}, { flush: "post" });
|
|
2161
|
+
const delayHideScrollBar = () => {
|
|
2162
|
+
var _a;
|
|
2163
|
+
(_a = scrollBarRef.value) === null || _a === void 0 || _a.delayHidden();
|
|
2164
|
+
};
|
|
2165
|
+
return {
|
|
2166
|
+
state,
|
|
2167
|
+
mergedData,
|
|
2168
|
+
componentStyle,
|
|
2169
|
+
onFallbackScroll,
|
|
2170
|
+
onScrollBar,
|
|
2171
|
+
componentRef,
|
|
2172
|
+
useVirtual,
|
|
2173
|
+
calRes,
|
|
2174
|
+
collectHeight,
|
|
2175
|
+
setInstance,
|
|
2176
|
+
sharedConfig,
|
|
2177
|
+
scrollBarRef,
|
|
2178
|
+
fillerInnerRef,
|
|
2179
|
+
delayHideScrollBar
|
|
2180
|
+
};
|
|
2181
|
+
},
|
|
2182
|
+
render() {
|
|
2183
|
+
const _a = _extends(_extends({}, this.$props), this.$attrs), { prefixCls = "rc-virtual-list", height, itemHeight, fullHeight, data, itemKey, virtual, component: Component = "div", onScroll, children = this.$slots.default, style, class: className } = _a, restProps = __rest$2(_a, [
|
|
2184
|
+
"prefixCls",
|
|
2185
|
+
"height",
|
|
2186
|
+
"itemHeight",
|
|
2187
|
+
"fullHeight",
|
|
2188
|
+
"data",
|
|
2189
|
+
"itemKey",
|
|
2190
|
+
"virtual",
|
|
2191
|
+
"component",
|
|
2192
|
+
"onScroll",
|
|
2193
|
+
"children",
|
|
2194
|
+
"style",
|
|
2195
|
+
"class"
|
|
2196
|
+
]);
|
|
2197
|
+
const mergedClassName = classNames(prefixCls, className);
|
|
2198
|
+
const { scrollTop } = this.state;
|
|
2199
|
+
const { scrollHeight, offset, start, end } = this.calRes;
|
|
2200
|
+
const { componentStyle, onFallbackScroll, onScrollBar, useVirtual, collectHeight, sharedConfig, setInstance, mergedData, delayHideScrollBar } = this;
|
|
2201
|
+
return createVNode("div", _objectSpread2({
|
|
2202
|
+
"style": _extends(_extends({}, style), { position: "relative" }),
|
|
2203
|
+
"class": mergedClassName
|
|
2204
|
+
}, restProps), [createVNode(Component, {
|
|
2205
|
+
"class": `${prefixCls}-holder`,
|
|
2206
|
+
"style": componentStyle,
|
|
2207
|
+
"ref": "componentRef",
|
|
2208
|
+
"onScroll": onFallbackScroll,
|
|
2209
|
+
"onMouseenter": delayHideScrollBar
|
|
2210
|
+
}, { default: () => [createVNode(Filter, {
|
|
2211
|
+
"prefixCls": prefixCls,
|
|
2212
|
+
"height": scrollHeight,
|
|
2213
|
+
"offset": offset,
|
|
2214
|
+
"onInnerResize": collectHeight,
|
|
2215
|
+
"ref": "fillerInnerRef"
|
|
2216
|
+
}, { default: () => renderChildren(mergedData, start, end, setInstance, children, sharedConfig) })] }), useVirtual && createVNode(ScrollBar_default, {
|
|
2217
|
+
"ref": "scrollBarRef",
|
|
2218
|
+
"prefixCls": prefixCls,
|
|
2219
|
+
"scrollTop": scrollTop,
|
|
2220
|
+
"height": height,
|
|
2221
|
+
"scrollHeight": scrollHeight,
|
|
2222
|
+
"count": mergedData.length,
|
|
2223
|
+
"onScroll": onScrollBar,
|
|
2224
|
+
"onStartMove": () => {
|
|
2225
|
+
this.state.scrollMoving = true;
|
|
2226
|
+
},
|
|
2227
|
+
"onStopMove": () => {
|
|
2228
|
+
this.state.scrollMoving = false;
|
|
2229
|
+
}
|
|
2230
|
+
}, null)]);
|
|
2231
|
+
}
|
|
2232
|
+
});
|
|
2233
|
+
//#endregion
|
|
2234
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/_util/hooks/useMemo.js
|
|
2235
|
+
function useMemo(getValue, condition, shouldUpdate) {
|
|
2236
|
+
const cacheRef = ref(getValue());
|
|
2237
|
+
watch(condition, (next, pre) => {
|
|
2238
|
+
if (shouldUpdate) {
|
|
2239
|
+
if (shouldUpdate(next, pre)) cacheRef.value = getValue();
|
|
2240
|
+
} else cacheRef.value = getValue();
|
|
2241
|
+
});
|
|
2242
|
+
return cacheRef;
|
|
2243
|
+
}
|
|
2244
|
+
//#endregion
|
|
2245
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/vc-select/utils/platformUtil.js
|
|
2246
|
+
/* istanbul ignore file */
|
|
2247
|
+
function isPlatformMac() {
|
|
2248
|
+
return /(mac\sos|macintosh)/i.test((void 0).appVersion);
|
|
2249
|
+
}
|
|
2250
|
+
//#endregion
|
|
2251
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/vc-select/SelectContext.js
|
|
2252
|
+
/**
|
|
2253
|
+
* BaseSelect provide some parsed data into context.
|
|
2254
|
+
* You can use this hooks to get them.
|
|
2255
|
+
*/
|
|
2256
|
+
var SelectContextKey = Symbol("SelectContextKey");
|
|
2257
|
+
function useProvideSelectProps(props) {
|
|
2258
|
+
return provide(SelectContextKey, props);
|
|
2259
|
+
}
|
|
2260
|
+
function useSelectProps() {
|
|
2261
|
+
return inject(SelectContextKey, {});
|
|
2262
|
+
}
|
|
2263
|
+
//#endregion
|
|
2264
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/vc-select/OptionList.js
|
|
2265
|
+
var __rest$1 = function(s, e) {
|
|
2266
|
+
var t = {};
|
|
2267
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
2268
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") {
|
|
2269
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
2270
|
+
}
|
|
2271
|
+
return t;
|
|
2272
|
+
};
|
|
2273
|
+
function isTitleType(content) {
|
|
2274
|
+
return typeof content === "string" || typeof content === "number";
|
|
2275
|
+
}
|
|
2276
|
+
/**
|
|
2277
|
+
* Using virtual list of option display.
|
|
2278
|
+
* Will fallback to dom if use customize render.
|
|
2279
|
+
*/
|
|
2280
|
+
var OptionList = defineComponent({
|
|
2281
|
+
compatConfig: { MODE: 3 },
|
|
2282
|
+
name: "OptionList",
|
|
2283
|
+
inheritAttrs: false,
|
|
2284
|
+
setup(_, _ref) {
|
|
2285
|
+
let { expose, slots } = _ref;
|
|
2286
|
+
const baseProps = useBaseProps();
|
|
2287
|
+
const props = useSelectProps();
|
|
2288
|
+
const itemPrefixCls = computed(() => `${baseProps.prefixCls}-item`);
|
|
2289
|
+
const memoFlattenOptions = useMemo(() => props.flattenOptions, [() => baseProps.open, () => props.flattenOptions], (next) => next[0]);
|
|
2290
|
+
const listRef = createRef();
|
|
2291
|
+
const onListMouseDown = (event) => {
|
|
2292
|
+
event.preventDefault();
|
|
2293
|
+
};
|
|
2294
|
+
const scrollIntoView = (args) => {
|
|
2295
|
+
if (listRef.current) listRef.current.scrollTo(typeof args === "number" ? { index: args } : args);
|
|
2296
|
+
};
|
|
2297
|
+
const getEnabledActiveIndex = function(index) {
|
|
2298
|
+
let offset = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
|
|
2299
|
+
const len = memoFlattenOptions.value.length;
|
|
2300
|
+
for (let i = 0; i < len; i += 1) {
|
|
2301
|
+
const current = (index + i * offset + len) % len;
|
|
2302
|
+
const { group, data } = memoFlattenOptions.value[current];
|
|
2303
|
+
if (!group && !data.disabled) return current;
|
|
2304
|
+
}
|
|
2305
|
+
return -1;
|
|
2306
|
+
};
|
|
2307
|
+
const state = reactive({ activeIndex: getEnabledActiveIndex(0) });
|
|
2308
|
+
const setActive = function(index) {
|
|
2309
|
+
let fromKeyboard = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
|
|
2310
|
+
state.activeIndex = index;
|
|
2311
|
+
const info = { source: fromKeyboard ? "keyboard" : "mouse" };
|
|
2312
|
+
const flattenItem = memoFlattenOptions.value[index];
|
|
2313
|
+
if (!flattenItem) {
|
|
2314
|
+
props.onActiveValue(null, -1, info);
|
|
2315
|
+
return;
|
|
2316
|
+
}
|
|
2317
|
+
props.onActiveValue(flattenItem.value, index, info);
|
|
2318
|
+
};
|
|
2319
|
+
watch([() => memoFlattenOptions.value.length, () => baseProps.searchValue], () => {
|
|
2320
|
+
setActive(props.defaultActiveFirstOption !== false ? getEnabledActiveIndex(0) : -1);
|
|
2321
|
+
}, { immediate: true });
|
|
2322
|
+
const isSelected = (value) => props.rawValues.has(value) && baseProps.mode !== "combobox";
|
|
2323
|
+
watch([() => baseProps.open, () => baseProps.searchValue], () => {
|
|
2324
|
+
if (!baseProps.multiple && baseProps.open && props.rawValues.size === 1) {
|
|
2325
|
+
const value = Array.from(props.rawValues)[0];
|
|
2326
|
+
const index = toRaw(memoFlattenOptions.value).findIndex((_ref2) => {
|
|
2327
|
+
let { data } = _ref2;
|
|
2328
|
+
return data[props.fieldNames.value] === value;
|
|
2329
|
+
});
|
|
2330
|
+
if (index !== -1) {
|
|
2331
|
+
setActive(index);
|
|
2332
|
+
nextTick(() => {
|
|
2333
|
+
scrollIntoView(index);
|
|
2334
|
+
});
|
|
2335
|
+
}
|
|
2336
|
+
}
|
|
2337
|
+
if (baseProps.open) nextTick(() => {
|
|
2338
|
+
var _a;
|
|
2339
|
+
(_a = listRef.current) === null || _a === void 0 || _a.scrollTo(void 0);
|
|
2340
|
+
});
|
|
2341
|
+
}, {
|
|
2342
|
+
immediate: true,
|
|
2343
|
+
flush: "post"
|
|
2344
|
+
});
|
|
2345
|
+
const onSelectValue = (value) => {
|
|
2346
|
+
if (value !== void 0) props.onSelect(value, { selected: !props.rawValues.has(value) });
|
|
2347
|
+
if (!baseProps.multiple) baseProps.toggleOpen(false);
|
|
2348
|
+
};
|
|
2349
|
+
const getLabel = (item) => typeof item.label === "function" ? item.label() : item.label;
|
|
2350
|
+
function renderItem(index) {
|
|
2351
|
+
const item = memoFlattenOptions.value[index];
|
|
2352
|
+
if (!item) return null;
|
|
2353
|
+
const itemData = item.data || {};
|
|
2354
|
+
const { value } = itemData;
|
|
2355
|
+
const { group } = item;
|
|
2356
|
+
const attrs = pickAttrs(itemData, true);
|
|
2357
|
+
const mergedLabel = getLabel(item);
|
|
2358
|
+
return item ? createVNode("div", _objectSpread2(_objectSpread2({ "aria-label": typeof mergedLabel === "string" && !group ? mergedLabel : null }, attrs), {}, {
|
|
2359
|
+
"key": index,
|
|
2360
|
+
"role": group ? "presentation" : "option",
|
|
2361
|
+
"id": `${baseProps.id}_list_${index}`,
|
|
2362
|
+
"aria-selected": isSelected(value)
|
|
2363
|
+
}), [value]) : null;
|
|
2364
|
+
}
|
|
2365
|
+
const onKeydown = (event) => {
|
|
2366
|
+
const { which, ctrlKey } = event;
|
|
2367
|
+
switch (which) {
|
|
2368
|
+
case KeyCode.N:
|
|
2369
|
+
case KeyCode.P:
|
|
2370
|
+
case KeyCode.UP:
|
|
2371
|
+
case KeyCode.DOWN: {
|
|
2372
|
+
let offset = 0;
|
|
2373
|
+
if (which === KeyCode.UP) offset = -1;
|
|
2374
|
+
else if (which === KeyCode.DOWN) offset = 1;
|
|
2375
|
+
else if (isPlatformMac() && ctrlKey) {
|
|
2376
|
+
if (which === KeyCode.N) offset = 1;
|
|
2377
|
+
else if (which === KeyCode.P) offset = -1;
|
|
2378
|
+
}
|
|
2379
|
+
if (offset !== 0) {
|
|
2380
|
+
const nextActiveIndex = getEnabledActiveIndex(state.activeIndex + offset, offset);
|
|
2381
|
+
scrollIntoView(nextActiveIndex);
|
|
2382
|
+
setActive(nextActiveIndex, true);
|
|
2383
|
+
}
|
|
2384
|
+
break;
|
|
2385
|
+
}
|
|
2386
|
+
case KeyCode.ENTER: {
|
|
2387
|
+
const item = memoFlattenOptions.value[state.activeIndex];
|
|
2388
|
+
if (item && !item.data.disabled) onSelectValue(item.value);
|
|
2389
|
+
else onSelectValue(void 0);
|
|
2390
|
+
if (baseProps.open) event.preventDefault();
|
|
2391
|
+
break;
|
|
2392
|
+
}
|
|
2393
|
+
case KeyCode.ESC:
|
|
2394
|
+
baseProps.toggleOpen(false);
|
|
2395
|
+
if (baseProps.open) event.stopPropagation();
|
|
2396
|
+
}
|
|
2397
|
+
};
|
|
2398
|
+
const onKeyup = () => {};
|
|
2399
|
+
const scrollTo = (index) => {
|
|
2400
|
+
scrollIntoView(index);
|
|
2401
|
+
};
|
|
2402
|
+
expose({
|
|
2403
|
+
onKeydown,
|
|
2404
|
+
onKeyup,
|
|
2405
|
+
scrollTo
|
|
2406
|
+
});
|
|
2407
|
+
return () => {
|
|
2408
|
+
const { id, notFoundContent, onPopupScroll } = baseProps;
|
|
2409
|
+
const { menuItemSelectedIcon, fieldNames, virtual, listHeight, listItemHeight } = props;
|
|
2410
|
+
const renderOption = slots.option;
|
|
2411
|
+
const { activeIndex } = state;
|
|
2412
|
+
const omitFieldNameList = Object.keys(fieldNames).map((key) => fieldNames[key]);
|
|
2413
|
+
if (memoFlattenOptions.value.length === 0) return createVNode("div", {
|
|
2414
|
+
"role": "listbox",
|
|
2415
|
+
"id": `${id}_list`,
|
|
2416
|
+
"class": `${itemPrefixCls.value}-empty`,
|
|
2417
|
+
"onMousedown": onListMouseDown
|
|
2418
|
+
}, [notFoundContent]);
|
|
2419
|
+
return createVNode(Fragment, null, [createVNode("div", {
|
|
2420
|
+
"role": "listbox",
|
|
2421
|
+
"id": `${id}_list`,
|
|
2422
|
+
"style": {
|
|
2423
|
+
height: 0,
|
|
2424
|
+
width: 0,
|
|
2425
|
+
overflow: "hidden"
|
|
2426
|
+
}
|
|
2427
|
+
}, [
|
|
2428
|
+
renderItem(activeIndex - 1),
|
|
2429
|
+
renderItem(activeIndex),
|
|
2430
|
+
renderItem(activeIndex + 1)
|
|
2431
|
+
]), createVNode(vc_virtual_list_default, {
|
|
2432
|
+
"itemKey": "key",
|
|
2433
|
+
"ref": listRef,
|
|
2434
|
+
"data": memoFlattenOptions.value,
|
|
2435
|
+
"height": listHeight,
|
|
2436
|
+
"itemHeight": listItemHeight,
|
|
2437
|
+
"fullHeight": false,
|
|
2438
|
+
"onMousedown": onListMouseDown,
|
|
2439
|
+
"onScroll": onPopupScroll,
|
|
2440
|
+
"virtual": virtual
|
|
2441
|
+
}, { default: (item, itemIndex) => {
|
|
2442
|
+
var _a;
|
|
2443
|
+
const { group, groupOption, data, value } = item;
|
|
2444
|
+
const { key } = data;
|
|
2445
|
+
const label = typeof item.label === "function" ? item.label() : item.label;
|
|
2446
|
+
if (group) {
|
|
2447
|
+
const groupTitle = (_a = data.title) !== null && _a !== void 0 ? _a : isTitleType(label) && label;
|
|
2448
|
+
return createVNode("div", {
|
|
2449
|
+
"class": classNames(itemPrefixCls.value, `${itemPrefixCls.value}-group`),
|
|
2450
|
+
"title": groupTitle
|
|
2451
|
+
}, [renderOption ? renderOption(data) : label !== void 0 ? label : key]);
|
|
2452
|
+
}
|
|
2453
|
+
const { disabled, title, children, style, class: cls, className } = data, otherProps = __rest$1(data, [
|
|
2454
|
+
"disabled",
|
|
2455
|
+
"title",
|
|
2456
|
+
"children",
|
|
2457
|
+
"style",
|
|
2458
|
+
"class",
|
|
2459
|
+
"className"
|
|
2460
|
+
]);
|
|
2461
|
+
const passedProps = omit(otherProps, omitFieldNameList);
|
|
2462
|
+
const selected = isSelected(value);
|
|
2463
|
+
const optionPrefixCls = `${itemPrefixCls.value}-option`;
|
|
2464
|
+
const optionClassName = classNames(itemPrefixCls.value, optionPrefixCls, cls, className, {
|
|
2465
|
+
[`${optionPrefixCls}-grouped`]: groupOption,
|
|
2466
|
+
[`${optionPrefixCls}-active`]: activeIndex === itemIndex && !disabled,
|
|
2467
|
+
[`${optionPrefixCls}-disabled`]: disabled,
|
|
2468
|
+
[`${optionPrefixCls}-selected`]: selected
|
|
2469
|
+
});
|
|
2470
|
+
const mergedLabel = getLabel(item);
|
|
2471
|
+
const iconVisible = !menuItemSelectedIcon || typeof menuItemSelectedIcon === "function" || selected;
|
|
2472
|
+
const content = typeof mergedLabel === "number" ? mergedLabel : mergedLabel || value;
|
|
2473
|
+
let optionTitle = isTitleType(content) ? content.toString() : void 0;
|
|
2474
|
+
if (title !== void 0) optionTitle = title;
|
|
2475
|
+
return createVNode("div", _objectSpread2(_objectSpread2({}, passedProps), {}, {
|
|
2476
|
+
"aria-selected": selected,
|
|
2477
|
+
"class": optionClassName,
|
|
2478
|
+
"title": optionTitle,
|
|
2479
|
+
"onMousemove": (e) => {
|
|
2480
|
+
if (otherProps.onMousemove) otherProps.onMousemove(e);
|
|
2481
|
+
if (activeIndex === itemIndex || disabled) return;
|
|
2482
|
+
setActive(itemIndex);
|
|
2483
|
+
},
|
|
2484
|
+
"onClick": (e) => {
|
|
2485
|
+
if (!disabled) onSelectValue(value);
|
|
2486
|
+
if (otherProps.onClick) otherProps.onClick(e);
|
|
2487
|
+
},
|
|
2488
|
+
"style": style
|
|
2489
|
+
}), [
|
|
2490
|
+
createVNode("div", { "class": `${optionPrefixCls}-content` }, [renderOption ? renderOption(data) : content]),
|
|
2491
|
+
isValidElement(menuItemSelectedIcon) || selected,
|
|
2492
|
+
iconVisible && createVNode(TransBtn, {
|
|
2493
|
+
"class": `${itemPrefixCls.value}-option-state`,
|
|
2494
|
+
"customizeIcon": menuItemSelectedIcon,
|
|
2495
|
+
"customizeIconProps": { isSelected: selected }
|
|
2496
|
+
}, { default: () => [selected ? "✓" : null] })
|
|
2497
|
+
]);
|
|
2498
|
+
} })]);
|
|
2499
|
+
};
|
|
2500
|
+
}
|
|
2501
|
+
});
|
|
2502
|
+
//#endregion
|
|
2503
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/vc-select/utils/legacyUtil.js
|
|
2504
|
+
var __rest = function(s, e) {
|
|
2505
|
+
var t = {};
|
|
2506
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
2507
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") {
|
|
2508
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
2509
|
+
}
|
|
2510
|
+
return t;
|
|
2511
|
+
};
|
|
2512
|
+
function convertNodeToOption(node) {
|
|
2513
|
+
const _a = node, { key, children } = _a, _b = _a.props, { value, disabled } = _b, restProps = __rest(_b, ["value", "disabled"]);
|
|
2514
|
+
const child = children === null || children === void 0 ? void 0 : children.default;
|
|
2515
|
+
return _extends({
|
|
2516
|
+
key,
|
|
2517
|
+
value: value !== void 0 ? value : key,
|
|
2518
|
+
children: child,
|
|
2519
|
+
disabled: disabled || disabled === ""
|
|
2520
|
+
}, restProps);
|
|
2521
|
+
}
|
|
2522
|
+
function convertChildrenToData(nodes) {
|
|
2523
|
+
let optionOnly = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
|
|
2524
|
+
return flattenChildren(nodes).map((node, index) => {
|
|
2525
|
+
var _a;
|
|
2526
|
+
if (!isValidElement(node) || !node.type) return null;
|
|
2527
|
+
const { type: { isSelectOptGroup }, key, children, props } = node;
|
|
2528
|
+
if (optionOnly || !isSelectOptGroup) return convertNodeToOption(node);
|
|
2529
|
+
const child = children && children.default ? children.default() : void 0;
|
|
2530
|
+
const label = (props === null || props === void 0 ? void 0 : props.label) || ((_a = children.label) === null || _a === void 0 ? void 0 : _a.call(children)) || key;
|
|
2531
|
+
return _extends(_extends({ key: `__RC_SELECT_GRP__${key === null ? index : String(key)}__` }, props), {
|
|
2532
|
+
label,
|
|
2533
|
+
options: convertChildrenToData(child || [])
|
|
2534
|
+
});
|
|
2535
|
+
}).filter((data) => data);
|
|
2536
|
+
}
|
|
2537
|
+
//#endregion
|
|
2538
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/vc-select/hooks/useOptions.js
|
|
2539
|
+
/**
|
|
2540
|
+
* Parse `children` to `options` if `options` is not provided.
|
|
2541
|
+
* Then flatten the `options`.
|
|
2542
|
+
*/
|
|
2543
|
+
function useOptions(options, children, fieldNames) {
|
|
2544
|
+
const mergedOptions = shallowRef();
|
|
2545
|
+
const valueOptions = shallowRef();
|
|
2546
|
+
const labelOptions = shallowRef();
|
|
2547
|
+
const tempMergedOptions = shallowRef([]);
|
|
2548
|
+
watch([options, children], () => {
|
|
2549
|
+
if (options.value) tempMergedOptions.value = toRaw(options.value).slice();
|
|
2550
|
+
else tempMergedOptions.value = convertChildrenToData(children.value);
|
|
2551
|
+
}, {
|
|
2552
|
+
immediate: true,
|
|
2553
|
+
deep: true
|
|
2554
|
+
});
|
|
2555
|
+
watchEffect(() => {
|
|
2556
|
+
const newOptions = tempMergedOptions.value;
|
|
2557
|
+
const newValueOptions = /* @__PURE__ */ new Map();
|
|
2558
|
+
const newLabelOptions = /* @__PURE__ */ new Map();
|
|
2559
|
+
const fieldNamesValue = fieldNames.value;
|
|
2560
|
+
function dig(optionList) {
|
|
2561
|
+
let isChildren = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
|
|
2562
|
+
for (let i = 0; i < optionList.length; i += 1) {
|
|
2563
|
+
const option = optionList[i];
|
|
2564
|
+
if (!option[fieldNamesValue.options] || isChildren) {
|
|
2565
|
+
newValueOptions.set(option[fieldNamesValue.value], option);
|
|
2566
|
+
newLabelOptions.set(option[fieldNamesValue.label], option);
|
|
2567
|
+
} else dig(option[fieldNamesValue.options], true);
|
|
2568
|
+
}
|
|
2569
|
+
}
|
|
2570
|
+
dig(newOptions);
|
|
2571
|
+
mergedOptions.value = newOptions;
|
|
2572
|
+
valueOptions.value = newValueOptions;
|
|
2573
|
+
labelOptions.value = newLabelOptions;
|
|
2574
|
+
});
|
|
2575
|
+
return {
|
|
2576
|
+
options: mergedOptions,
|
|
2577
|
+
valueOptions,
|
|
2578
|
+
labelOptions
|
|
2579
|
+
};
|
|
2580
|
+
}
|
|
2581
|
+
/** Get unique id for accessibility usage */
|
|
2582
|
+
function getUUID() {
|
|
2583
|
+
let retId;
|
|
2584
|
+
/* istanbul ignore if */
|
|
2585
|
+
retId = "TEST_OR_SSR";
|
|
2586
|
+
return retId;
|
|
2587
|
+
}
|
|
2588
|
+
function useId() {
|
|
2589
|
+
let id = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : ref("");
|
|
2590
|
+
const innerId = `rc_select_${getUUID()}`;
|
|
2591
|
+
return id.value || innerId;
|
|
2592
|
+
}
|
|
2593
|
+
//#endregion
|
|
2594
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/vc-select/utils/commonUtil.js
|
|
2595
|
+
function toArray(value) {
|
|
2596
|
+
if (Array.isArray(value)) return value;
|
|
2597
|
+
return value !== void 0 ? [value] : [];
|
|
2598
|
+
}
|
|
2599
|
+
//#endregion
|
|
2600
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/vc-select/hooks/useFilterOptions.js
|
|
2601
|
+
function includes(test, search) {
|
|
2602
|
+
return toArray(test).join("").toUpperCase().includes(search);
|
|
2603
|
+
}
|
|
2604
|
+
var useFilterOptions_default = ((options, fieldNames, searchValue, filterOption, optionFilterProp) => computed(() => {
|
|
2605
|
+
const searchValueVal = searchValue.value;
|
|
2606
|
+
const optionFilterPropValue = optionFilterProp === null || optionFilterProp === void 0 ? void 0 : optionFilterProp.value;
|
|
2607
|
+
const filterOptionValue = filterOption === null || filterOption === void 0 ? void 0 : filterOption.value;
|
|
2608
|
+
if (!searchValueVal || filterOptionValue === false) return options.value;
|
|
2609
|
+
const { options: fieldOptions, label: fieldLabel, value: fieldValue } = fieldNames.value;
|
|
2610
|
+
const filteredOptions = [];
|
|
2611
|
+
const customizeFilter = typeof filterOptionValue === "function";
|
|
2612
|
+
const upperSearch = searchValueVal.toUpperCase();
|
|
2613
|
+
const filterFunc = customizeFilter ? filterOptionValue : (_, option) => {
|
|
2614
|
+
if (optionFilterPropValue) return includes(option[optionFilterPropValue], upperSearch);
|
|
2615
|
+
if (option[fieldOptions]) return includes(option[fieldLabel !== "children" ? fieldLabel : "label"], upperSearch);
|
|
2616
|
+
return includes(option[fieldValue], upperSearch);
|
|
2617
|
+
};
|
|
2618
|
+
const wrapOption = customizeFilter ? (opt) => injectPropsWithOption(opt) : (opt) => opt;
|
|
2619
|
+
options.value.forEach((item) => {
|
|
2620
|
+
if (item[fieldOptions]) {
|
|
2621
|
+
if (filterFunc(searchValueVal, wrapOption(item))) filteredOptions.push(item);
|
|
2622
|
+
else {
|
|
2623
|
+
const subOptions = item[fieldOptions].filter((subItem) => filterFunc(searchValueVal, wrapOption(subItem)));
|
|
2624
|
+
if (subOptions.length) filteredOptions.push(_extends(_extends({}, item), { [fieldOptions]: subOptions }));
|
|
2625
|
+
}
|
|
2626
|
+
return;
|
|
2627
|
+
}
|
|
2628
|
+
if (filterFunc(searchValueVal, wrapOption(item))) filteredOptions.push(item);
|
|
2629
|
+
});
|
|
2630
|
+
return filteredOptions;
|
|
2631
|
+
}));
|
|
2632
|
+
//#endregion
|
|
2633
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/vc-select/hooks/useCache.js
|
|
2634
|
+
/**
|
|
2635
|
+
* Cache `value` related LabeledValue & options.
|
|
2636
|
+
*/
|
|
2637
|
+
var useCache_default = ((labeledValues, valueOptions) => {
|
|
2638
|
+
const cacheRef = shallowRef({
|
|
2639
|
+
values: /* @__PURE__ */ new Map(),
|
|
2640
|
+
options: /* @__PURE__ */ new Map()
|
|
2641
|
+
});
|
|
2642
|
+
const filledLabeledValues = computed(() => {
|
|
2643
|
+
const { values: prevValueCache, options: prevOptionCache } = cacheRef.value;
|
|
2644
|
+
const patchedValues = labeledValues.value.map((item) => {
|
|
2645
|
+
var _a;
|
|
2646
|
+
if (item.label === void 0) return _extends(_extends({}, item), { label: (_a = prevValueCache.get(item.value)) === null || _a === void 0 ? void 0 : _a.label });
|
|
2647
|
+
return item;
|
|
2648
|
+
});
|
|
2649
|
+
const valueCache = /* @__PURE__ */ new Map();
|
|
2650
|
+
const optionCache = /* @__PURE__ */ new Map();
|
|
2651
|
+
patchedValues.forEach((item) => {
|
|
2652
|
+
valueCache.set(item.value, item);
|
|
2653
|
+
optionCache.set(item.value, valueOptions.value.get(item.value) || prevOptionCache.get(item.value));
|
|
2654
|
+
});
|
|
2655
|
+
cacheRef.value.values = valueCache;
|
|
2656
|
+
cacheRef.value.options = optionCache;
|
|
2657
|
+
return patchedValues;
|
|
2658
|
+
});
|
|
2659
|
+
const getOption = (val) => valueOptions.value.get(val) || cacheRef.value.options.get(val);
|
|
2660
|
+
return [filledLabeledValues, getOption];
|
|
2661
|
+
});
|
|
2662
|
+
//#endregion
|
|
2663
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/vc-select/Select.js
|
|
2664
|
+
/**
|
|
2665
|
+
* To match accessibility requirement, we always provide an input in the component.
|
|
2666
|
+
* Other element will not set `tabindex` to avoid `onBlur` sequence problem.
|
|
2667
|
+
* For focused select, we set `aria-live="polite"` to update the accessibility content.
|
|
2668
|
+
*
|
|
2669
|
+
* ref:
|
|
2670
|
+
* - keyboard: https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/Roles/listbox_role#Keyboard_interactions
|
|
2671
|
+
*
|
|
2672
|
+
* New api:
|
|
2673
|
+
* - listHeight
|
|
2674
|
+
* - listItemHeight
|
|
2675
|
+
* - component
|
|
2676
|
+
*
|
|
2677
|
+
* Remove deprecated api:
|
|
2678
|
+
* - multiple
|
|
2679
|
+
* - tags
|
|
2680
|
+
* - combobox
|
|
2681
|
+
* - firstActiveValue
|
|
2682
|
+
* - dropdownMenuStyle
|
|
2683
|
+
* - openClassName (Not list in api)
|
|
2684
|
+
*
|
|
2685
|
+
* Update:
|
|
2686
|
+
* - `backfill` only support `combobox` mode
|
|
2687
|
+
* - `combobox` mode not support `labelInValue` since it's meaningless
|
|
2688
|
+
* - `getInputElement` only support `combobox` mode
|
|
2689
|
+
* - `onChange` return OptionData instead of ReactNode
|
|
2690
|
+
* - `filterOption` `onChange` `onSelect` accept OptionData instead of ReactNode
|
|
2691
|
+
* - `combobox` mode trigger `onChange` will get `undefined` if no `value` match in Option
|
|
2692
|
+
* - `combobox` mode not support `optionLabelProp`
|
|
2693
|
+
*/
|
|
2694
|
+
var OMIT_DOM_PROPS = ["inputValue"];
|
|
2695
|
+
function selectProps$1() {
|
|
2696
|
+
return _extends(_extends({}, baseSelectPropsWithoutPrivate()), {
|
|
2697
|
+
prefixCls: String,
|
|
2698
|
+
id: String,
|
|
2699
|
+
backfill: {
|
|
2700
|
+
type: Boolean,
|
|
2701
|
+
default: void 0
|
|
2702
|
+
},
|
|
2703
|
+
fieldNames: Object,
|
|
2704
|
+
/** @deprecated Use `searchValue` instead */
|
|
2705
|
+
inputValue: String,
|
|
2706
|
+
searchValue: String,
|
|
2707
|
+
onSearch: Function,
|
|
2708
|
+
autoClearSearchValue: {
|
|
2709
|
+
type: Boolean,
|
|
2710
|
+
default: void 0
|
|
2711
|
+
},
|
|
2712
|
+
onSelect: Function,
|
|
2713
|
+
onDeselect: Function,
|
|
2714
|
+
/**
|
|
2715
|
+
* In Select, `false` means do nothing.
|
|
2716
|
+
* In TreeSelect, `false` will highlight match item.
|
|
2717
|
+
* It's by design.
|
|
2718
|
+
*/
|
|
2719
|
+
filterOption: {
|
|
2720
|
+
type: [Boolean, Function],
|
|
2721
|
+
default: void 0
|
|
2722
|
+
},
|
|
2723
|
+
filterSort: Function,
|
|
2724
|
+
optionFilterProp: String,
|
|
2725
|
+
optionLabelProp: String,
|
|
2726
|
+
options: Array,
|
|
2727
|
+
defaultActiveFirstOption: {
|
|
2728
|
+
type: Boolean,
|
|
2729
|
+
default: void 0
|
|
2730
|
+
},
|
|
2731
|
+
virtual: {
|
|
2732
|
+
type: Boolean,
|
|
2733
|
+
default: void 0
|
|
2734
|
+
},
|
|
2735
|
+
listHeight: Number,
|
|
2736
|
+
listItemHeight: Number,
|
|
2737
|
+
menuItemSelectedIcon: PropTypes.any,
|
|
2738
|
+
mode: String,
|
|
2739
|
+
labelInValue: {
|
|
2740
|
+
type: Boolean,
|
|
2741
|
+
default: void 0
|
|
2742
|
+
},
|
|
2743
|
+
value: PropTypes.any,
|
|
2744
|
+
defaultValue: PropTypes.any,
|
|
2745
|
+
onChange: Function,
|
|
2746
|
+
children: Array
|
|
2747
|
+
});
|
|
2748
|
+
}
|
|
2749
|
+
function isRawValue(value) {
|
|
2750
|
+
return !value || typeof value !== "object";
|
|
2751
|
+
}
|
|
2752
|
+
var Select_default = defineComponent({
|
|
2753
|
+
compatConfig: { MODE: 3 },
|
|
2754
|
+
name: "VcSelect",
|
|
2755
|
+
inheritAttrs: false,
|
|
2756
|
+
props: initDefaultProps(selectProps$1(), {
|
|
2757
|
+
prefixCls: "vc-select",
|
|
2758
|
+
autoClearSearchValue: true,
|
|
2759
|
+
listHeight: 200,
|
|
2760
|
+
listItemHeight: 20,
|
|
2761
|
+
dropdownMatchSelectWidth: true
|
|
2762
|
+
}),
|
|
2763
|
+
setup(props, _ref) {
|
|
2764
|
+
let { expose, attrs, slots } = _ref;
|
|
2765
|
+
const mergedId = useId(toRef(props, "id"));
|
|
2766
|
+
const multiple = computed(() => isMultiple(props.mode));
|
|
2767
|
+
const childrenAsData = computed(() => !!(!props.options && props.children));
|
|
2768
|
+
const mergedFilterOption = computed(() => {
|
|
2769
|
+
if (props.filterOption === void 0 && props.mode === "combobox") return false;
|
|
2770
|
+
return props.filterOption;
|
|
2771
|
+
});
|
|
2772
|
+
const mergedFieldNames = computed(() => fillFieldNames(props.fieldNames, childrenAsData.value));
|
|
2773
|
+
const [mergedSearchValue, setSearchValue] = useMergedState("", {
|
|
2774
|
+
value: computed(() => props.searchValue !== void 0 ? props.searchValue : props.inputValue),
|
|
2775
|
+
postState: (search) => search || ""
|
|
2776
|
+
});
|
|
2777
|
+
const parsedOptions = useOptions(toRef(props, "options"), toRef(props, "children"), mergedFieldNames);
|
|
2778
|
+
const { valueOptions, labelOptions, options: mergedOptions } = parsedOptions;
|
|
2779
|
+
const convert2LabelValues = (draftValues) => {
|
|
2780
|
+
return toArray(draftValues).map((val) => {
|
|
2781
|
+
var _a, _b;
|
|
2782
|
+
let rawValue;
|
|
2783
|
+
let rawLabel;
|
|
2784
|
+
let rawKey;
|
|
2785
|
+
let rawDisabled;
|
|
2786
|
+
if (isRawValue(val)) rawValue = val;
|
|
2787
|
+
else {
|
|
2788
|
+
rawKey = val.key;
|
|
2789
|
+
rawLabel = val.label;
|
|
2790
|
+
rawValue = (_a = val.value) !== null && _a !== void 0 ? _a : rawKey;
|
|
2791
|
+
}
|
|
2792
|
+
const option = valueOptions.value.get(rawValue);
|
|
2793
|
+
if (option) {
|
|
2794
|
+
if (rawLabel === void 0) rawLabel = option === null || option === void 0 ? void 0 : option[props.optionLabelProp || mergedFieldNames.value.label];
|
|
2795
|
+
if (rawKey === void 0) rawKey = (_b = option === null || option === void 0 ? void 0 : option.key) !== null && _b !== void 0 ? _b : rawValue;
|
|
2796
|
+
rawDisabled = option === null || option === void 0 ? void 0 : option.disabled;
|
|
2797
|
+
}
|
|
2798
|
+
return {
|
|
2799
|
+
label: rawLabel,
|
|
2800
|
+
value: rawValue,
|
|
2801
|
+
key: rawKey,
|
|
2802
|
+
disabled: rawDisabled,
|
|
2803
|
+
option
|
|
2804
|
+
};
|
|
2805
|
+
});
|
|
2806
|
+
};
|
|
2807
|
+
const [internalValue, setInternalValue] = useMergedState(props.defaultValue, { value: toRef(props, "value") });
|
|
2808
|
+
const [mergedValues, getMixedOption] = useCache_default(computed(() => {
|
|
2809
|
+
var _a;
|
|
2810
|
+
const values = convert2LabelValues(internalValue.value);
|
|
2811
|
+
if (props.mode === "combobox" && !((_a = values[0]) === null || _a === void 0 ? void 0 : _a.value)) return [];
|
|
2812
|
+
return values;
|
|
2813
|
+
}), valueOptions);
|
|
2814
|
+
const displayValues = computed(() => {
|
|
2815
|
+
if (!props.mode && mergedValues.value.length === 1) {
|
|
2816
|
+
const firstValue = mergedValues.value[0];
|
|
2817
|
+
if (firstValue.value === null && (firstValue.label === null || firstValue.label === void 0)) return [];
|
|
2818
|
+
}
|
|
2819
|
+
return mergedValues.value.map((item) => {
|
|
2820
|
+
var _a;
|
|
2821
|
+
return _extends(_extends({}, item), { label: (_a = typeof item.label === "function" ? item.label() : item.label) !== null && _a !== void 0 ? _a : item.value });
|
|
2822
|
+
});
|
|
2823
|
+
});
|
|
2824
|
+
/** Convert `displayValues` to raw value type set */
|
|
2825
|
+
const rawValues = computed(() => new Set(mergedValues.value.map((val) => val.value)));
|
|
2826
|
+
watchEffect(() => {
|
|
2827
|
+
var _a;
|
|
2828
|
+
if (props.mode === "combobox") {
|
|
2829
|
+
const strValue = (_a = mergedValues.value[0]) === null || _a === void 0 ? void 0 : _a.value;
|
|
2830
|
+
if (strValue !== void 0 && strValue !== null) setSearchValue(String(strValue));
|
|
2831
|
+
}
|
|
2832
|
+
}, { flush: "post" });
|
|
2833
|
+
const createTagOption = (val, label) => {
|
|
2834
|
+
const mergedLabel = label !== null && label !== void 0 ? label : val;
|
|
2835
|
+
return {
|
|
2836
|
+
[mergedFieldNames.value.value]: val,
|
|
2837
|
+
[mergedFieldNames.value.label]: mergedLabel
|
|
2838
|
+
};
|
|
2839
|
+
};
|
|
2840
|
+
const filledTagOptions = shallowRef();
|
|
2841
|
+
watchEffect(() => {
|
|
2842
|
+
if (props.mode !== "tags") {
|
|
2843
|
+
filledTagOptions.value = mergedOptions.value;
|
|
2844
|
+
return;
|
|
2845
|
+
}
|
|
2846
|
+
const cloneOptions = mergedOptions.value.slice();
|
|
2847
|
+
const existOptions = (val) => valueOptions.value.has(val);
|
|
2848
|
+
[...mergedValues.value].sort((a, b) => a.value < b.value ? -1 : 1).forEach((item) => {
|
|
2849
|
+
const val = item.value;
|
|
2850
|
+
if (!existOptions(val)) cloneOptions.push(createTagOption(val, item.label));
|
|
2851
|
+
});
|
|
2852
|
+
filledTagOptions.value = cloneOptions;
|
|
2853
|
+
});
|
|
2854
|
+
const filteredOptions = useFilterOptions_default(filledTagOptions, mergedFieldNames, mergedSearchValue, mergedFilterOption, toRef(props, "optionFilterProp"));
|
|
2855
|
+
const filledSearchOptions = computed(() => {
|
|
2856
|
+
if (props.mode !== "tags" || !mergedSearchValue.value || filteredOptions.value.some((item) => item[props.optionFilterProp || "value"] === mergedSearchValue.value)) return filteredOptions.value;
|
|
2857
|
+
return [createTagOption(mergedSearchValue.value), ...filteredOptions.value];
|
|
2858
|
+
});
|
|
2859
|
+
const orderedFilteredOptions = computed(() => {
|
|
2860
|
+
if (!props.filterSort) return filledSearchOptions.value;
|
|
2861
|
+
return [...filledSearchOptions.value].sort((a, b) => props.filterSort(a, b));
|
|
2862
|
+
});
|
|
2863
|
+
const displayOptions = computed(() => flattenOptions(orderedFilteredOptions.value, {
|
|
2864
|
+
fieldNames: mergedFieldNames.value,
|
|
2865
|
+
childrenAsData: childrenAsData.value
|
|
2866
|
+
}));
|
|
2867
|
+
const triggerChange = (values) => {
|
|
2868
|
+
const labeledValues = convert2LabelValues(values);
|
|
2869
|
+
setInternalValue(labeledValues);
|
|
2870
|
+
if (props.onChange && (labeledValues.length !== mergedValues.value.length || labeledValues.some((newVal, index) => {
|
|
2871
|
+
var _a;
|
|
2872
|
+
return ((_a = mergedValues.value[index]) === null || _a === void 0 ? void 0 : _a.value) !== (newVal === null || newVal === void 0 ? void 0 : newVal.value);
|
|
2873
|
+
}))) {
|
|
2874
|
+
const returnValues = props.labelInValue ? labeledValues.map((v) => {
|
|
2875
|
+
return _extends(_extends({}, v), {
|
|
2876
|
+
originLabel: v.label,
|
|
2877
|
+
label: typeof v.label === "function" ? v.label() : v.label
|
|
2878
|
+
});
|
|
2879
|
+
}) : labeledValues.map((v) => v.value);
|
|
2880
|
+
const returnOptions = labeledValues.map((v) => injectPropsWithOption(getMixedOption(v.value)));
|
|
2881
|
+
props.onChange(multiple.value ? returnValues : returnValues[0], multiple.value ? returnOptions : returnOptions[0]);
|
|
2882
|
+
}
|
|
2883
|
+
};
|
|
2884
|
+
const [activeValue, setActiveValue] = useState(null);
|
|
2885
|
+
const [accessibilityIndex, setAccessibilityIndex] = useState(0);
|
|
2886
|
+
const mergedDefaultActiveFirstOption = computed(() => props.defaultActiveFirstOption !== void 0 ? props.defaultActiveFirstOption : props.mode !== "combobox");
|
|
2887
|
+
const onActiveValue = function(active, index) {
|
|
2888
|
+
let { source = "keyboard" } = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
2889
|
+
setAccessibilityIndex(index);
|
|
2890
|
+
if (props.backfill && props.mode === "combobox" && active !== null && source === "keyboard") setActiveValue(String(active));
|
|
2891
|
+
};
|
|
2892
|
+
const triggerSelect = (val, selected) => {
|
|
2893
|
+
const getSelectEnt = () => {
|
|
2894
|
+
var _a;
|
|
2895
|
+
const option = getMixedOption(val);
|
|
2896
|
+
const originLabel = option === null || option === void 0 ? void 0 : option[mergedFieldNames.value.label];
|
|
2897
|
+
return [props.labelInValue ? {
|
|
2898
|
+
label: typeof originLabel === "function" ? originLabel() : originLabel,
|
|
2899
|
+
originLabel,
|
|
2900
|
+
value: val,
|
|
2901
|
+
key: (_a = option === null || option === void 0 ? void 0 : option.key) !== null && _a !== void 0 ? _a : val
|
|
2902
|
+
} : val, injectPropsWithOption(option)];
|
|
2903
|
+
};
|
|
2904
|
+
if (selected && props.onSelect) {
|
|
2905
|
+
const [wrappedValue, option] = getSelectEnt();
|
|
2906
|
+
props.onSelect(wrappedValue, option);
|
|
2907
|
+
} else if (!selected && props.onDeselect) {
|
|
2908
|
+
const [wrappedValue, option] = getSelectEnt();
|
|
2909
|
+
props.onDeselect(wrappedValue, option);
|
|
2910
|
+
}
|
|
2911
|
+
};
|
|
2912
|
+
const onInternalSelect = (val, info) => {
|
|
2913
|
+
let cloneValues;
|
|
2914
|
+
const mergedSelect = multiple.value ? info.selected : true;
|
|
2915
|
+
if (mergedSelect) cloneValues = multiple.value ? [...mergedValues.value, val] : [val];
|
|
2916
|
+
else cloneValues = mergedValues.value.filter((v) => v.value !== val);
|
|
2917
|
+
triggerChange(cloneValues);
|
|
2918
|
+
triggerSelect(val, mergedSelect);
|
|
2919
|
+
if (props.mode === "combobox") setActiveValue("");
|
|
2920
|
+
else if (!multiple.value || props.autoClearSearchValue) {
|
|
2921
|
+
setSearchValue("");
|
|
2922
|
+
setActiveValue("");
|
|
2923
|
+
}
|
|
2924
|
+
};
|
|
2925
|
+
const onDisplayValuesChange = (nextValues, info) => {
|
|
2926
|
+
triggerChange(nextValues);
|
|
2927
|
+
if (info.type === "remove" || info.type === "clear") info.values.forEach((item) => {
|
|
2928
|
+
triggerSelect(item.value, false);
|
|
2929
|
+
});
|
|
2930
|
+
};
|
|
2931
|
+
const onInternalSearch = (searchText, info) => {
|
|
2932
|
+
var _a;
|
|
2933
|
+
setSearchValue(searchText);
|
|
2934
|
+
setActiveValue(null);
|
|
2935
|
+
if (info.source === "submit") {
|
|
2936
|
+
const formatted = (searchText || "").trim();
|
|
2937
|
+
if (formatted) {
|
|
2938
|
+
const newRawValues = Array.from(/* @__PURE__ */ new Set([...rawValues.value, formatted]));
|
|
2939
|
+
triggerChange(newRawValues);
|
|
2940
|
+
triggerSelect(formatted, true);
|
|
2941
|
+
setSearchValue("");
|
|
2942
|
+
}
|
|
2943
|
+
return;
|
|
2944
|
+
}
|
|
2945
|
+
if (info.source !== "blur") {
|
|
2946
|
+
if (props.mode === "combobox") triggerChange(searchText);
|
|
2947
|
+
(_a = props.onSearch) === null || _a === void 0 || _a.call(props, searchText);
|
|
2948
|
+
}
|
|
2949
|
+
};
|
|
2950
|
+
const onInternalSearchSplit = (words) => {
|
|
2951
|
+
let patchValues = words;
|
|
2952
|
+
if (props.mode !== "tags") patchValues = words.map((word) => {
|
|
2953
|
+
const opt = labelOptions.value.get(word);
|
|
2954
|
+
return opt === null || opt === void 0 ? void 0 : opt.value;
|
|
2955
|
+
}).filter((val) => val !== void 0);
|
|
2956
|
+
const newRawValues = Array.from(/* @__PURE__ */ new Set([...rawValues.value, ...patchValues]));
|
|
2957
|
+
triggerChange(newRawValues);
|
|
2958
|
+
newRawValues.forEach((newRawValue) => {
|
|
2959
|
+
triggerSelect(newRawValue, true);
|
|
2960
|
+
});
|
|
2961
|
+
};
|
|
2962
|
+
const realVirtual = computed(() => props.virtual !== false && props.dropdownMatchSelectWidth !== false);
|
|
2963
|
+
useProvideSelectProps(toReactive(_extends(_extends({}, parsedOptions), {
|
|
2964
|
+
flattenOptions: displayOptions,
|
|
2965
|
+
onActiveValue,
|
|
2966
|
+
defaultActiveFirstOption: mergedDefaultActiveFirstOption,
|
|
2967
|
+
onSelect: onInternalSelect,
|
|
2968
|
+
menuItemSelectedIcon: toRef(props, "menuItemSelectedIcon"),
|
|
2969
|
+
rawValues,
|
|
2970
|
+
fieldNames: mergedFieldNames,
|
|
2971
|
+
virtual: realVirtual,
|
|
2972
|
+
listHeight: toRef(props, "listHeight"),
|
|
2973
|
+
listItemHeight: toRef(props, "listItemHeight"),
|
|
2974
|
+
childrenAsData
|
|
2975
|
+
})));
|
|
2976
|
+
const selectRef = ref();
|
|
2977
|
+
expose({
|
|
2978
|
+
focus() {
|
|
2979
|
+
var _a;
|
|
2980
|
+
(_a = selectRef.value) === null || _a === void 0 || _a.focus();
|
|
2981
|
+
},
|
|
2982
|
+
blur() {
|
|
2983
|
+
var _a;
|
|
2984
|
+
(_a = selectRef.value) === null || _a === void 0 || _a.blur();
|
|
2985
|
+
},
|
|
2986
|
+
scrollTo(arg) {
|
|
2987
|
+
var _a;
|
|
2988
|
+
(_a = selectRef.value) === null || _a === void 0 || _a.scrollTo(arg);
|
|
2989
|
+
}
|
|
2990
|
+
});
|
|
2991
|
+
const pickProps = computed(() => {
|
|
2992
|
+
return omit(props, [
|
|
2993
|
+
"id",
|
|
2994
|
+
"mode",
|
|
2995
|
+
"prefixCls",
|
|
2996
|
+
"backfill",
|
|
2997
|
+
"fieldNames",
|
|
2998
|
+
"inputValue",
|
|
2999
|
+
"searchValue",
|
|
3000
|
+
"onSearch",
|
|
3001
|
+
"autoClearSearchValue",
|
|
3002
|
+
"onSelect",
|
|
3003
|
+
"onDeselect",
|
|
3004
|
+
"dropdownMatchSelectWidth",
|
|
3005
|
+
"filterOption",
|
|
3006
|
+
"filterSort",
|
|
3007
|
+
"optionFilterProp",
|
|
3008
|
+
"optionLabelProp",
|
|
3009
|
+
"options",
|
|
3010
|
+
"children",
|
|
3011
|
+
"defaultActiveFirstOption",
|
|
3012
|
+
"menuItemSelectedIcon",
|
|
3013
|
+
"virtual",
|
|
3014
|
+
"listHeight",
|
|
3015
|
+
"listItemHeight",
|
|
3016
|
+
"value",
|
|
3017
|
+
"defaultValue",
|
|
3018
|
+
"labelInValue",
|
|
3019
|
+
"onChange"
|
|
3020
|
+
]);
|
|
3021
|
+
});
|
|
3022
|
+
return () => {
|
|
3023
|
+
return createVNode(BaseSelect_default, _objectSpread2(_objectSpread2(_objectSpread2({}, pickProps.value), attrs), {}, {
|
|
3024
|
+
"id": mergedId,
|
|
3025
|
+
"prefixCls": props.prefixCls,
|
|
3026
|
+
"ref": selectRef,
|
|
3027
|
+
"omitDomProps": OMIT_DOM_PROPS,
|
|
3028
|
+
"mode": props.mode,
|
|
3029
|
+
"displayValues": displayValues.value,
|
|
3030
|
+
"onDisplayValuesChange": onDisplayValuesChange,
|
|
3031
|
+
"searchValue": mergedSearchValue.value,
|
|
3032
|
+
"onSearch": onInternalSearch,
|
|
3033
|
+
"onSearchSplit": onInternalSearchSplit,
|
|
3034
|
+
"dropdownMatchSelectWidth": props.dropdownMatchSelectWidth,
|
|
3035
|
+
"OptionList": OptionList,
|
|
3036
|
+
"emptyOptions": !displayOptions.value.length,
|
|
3037
|
+
"activeValue": activeValue.value,
|
|
3038
|
+
"activeDescendantId": `${mergedId}_list_${accessibilityIndex.value}`
|
|
3039
|
+
}), slots);
|
|
3040
|
+
};
|
|
3041
|
+
}
|
|
3042
|
+
});
|
|
3043
|
+
//#endregion
|
|
3044
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/vc-select/Option.js
|
|
3045
|
+
var Option = () => null;
|
|
3046
|
+
Option.isSelectOption = true;
|
|
3047
|
+
Option.displayName = "ASelectOption";
|
|
3048
|
+
//#endregion
|
|
3049
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/vc-select/OptGroup.js
|
|
3050
|
+
var OptGroup = () => null;
|
|
3051
|
+
OptGroup.isSelectOptGroup = true;
|
|
3052
|
+
OptGroup.displayName = "ASelectOptGroup";
|
|
3053
|
+
//#endregion
|
|
3054
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/vc-select/index.js
|
|
3055
|
+
var vc_select_default = Select_default;
|
|
3056
|
+
//#endregion
|
|
3057
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/select/utils/iconUtil.js
|
|
3058
|
+
function getIcons(props) {
|
|
3059
|
+
let slots = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
3060
|
+
const { loading, multiple, prefixCls, hasFeedback, feedbackIcon, showArrow } = props;
|
|
3061
|
+
const suffixIcon = props.suffixIcon || slots.suffixIcon && slots.suffixIcon();
|
|
3062
|
+
const clearIcon = props.clearIcon || slots.clearIcon && slots.clearIcon();
|
|
3063
|
+
const menuItemSelectedIcon = props.menuItemSelectedIcon || slots.menuItemSelectedIcon && slots.menuItemSelectedIcon();
|
|
3064
|
+
const removeIcon = props.removeIcon || slots.removeIcon && slots.removeIcon();
|
|
3065
|
+
const mergedClearIcon = clearIcon !== null && clearIcon !== void 0 ? clearIcon : createVNode(CloseCircleFilled, null, null);
|
|
3066
|
+
const getSuffixIconNode = (arrowIcon) => createVNode(Fragment, null, [showArrow !== false && arrowIcon, hasFeedback && feedbackIcon]);
|
|
3067
|
+
let mergedSuffixIcon = null;
|
|
3068
|
+
if (suffixIcon !== void 0) mergedSuffixIcon = getSuffixIconNode(suffixIcon);
|
|
3069
|
+
else if (loading) mergedSuffixIcon = getSuffixIconNode(createVNode(LoadingOutlined, { "spin": true }, null));
|
|
3070
|
+
else {
|
|
3071
|
+
const iconCls = `${prefixCls}-suffix`;
|
|
3072
|
+
mergedSuffixIcon = (_ref) => {
|
|
3073
|
+
let { open, showSearch } = _ref;
|
|
3074
|
+
if (open && showSearch) return getSuffixIconNode(createVNode(SearchOutlined, { "class": iconCls }, null));
|
|
3075
|
+
return getSuffixIconNode(createVNode(DownOutlined, { "class": iconCls }, null));
|
|
3076
|
+
};
|
|
3077
|
+
}
|
|
3078
|
+
let mergedItemIcon = null;
|
|
3079
|
+
if (menuItemSelectedIcon !== void 0) mergedItemIcon = menuItemSelectedIcon;
|
|
3080
|
+
else if (multiple) mergedItemIcon = createVNode(CheckOutlined, null, null);
|
|
3081
|
+
else mergedItemIcon = null;
|
|
3082
|
+
let mergedRemoveIcon = null;
|
|
3083
|
+
if (removeIcon !== void 0) mergedRemoveIcon = removeIcon;
|
|
3084
|
+
else mergedRemoveIcon = createVNode(CloseOutlined, null, null);
|
|
3085
|
+
return {
|
|
3086
|
+
clearIcon: mergedClearIcon,
|
|
3087
|
+
suffixIcon: mergedSuffixIcon,
|
|
3088
|
+
itemIcon: mergedItemIcon,
|
|
3089
|
+
removeIcon: mergedRemoveIcon
|
|
3090
|
+
};
|
|
3091
|
+
}
|
|
3092
|
+
//#endregion
|
|
3093
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/style/motion/move.js
|
|
3094
|
+
var moveDownIn = new Keyframe("antMoveDownIn", {
|
|
3095
|
+
"0%": {
|
|
3096
|
+
transform: "translate3d(0, 100%, 0)",
|
|
3097
|
+
transformOrigin: "0 0",
|
|
3098
|
+
opacity: 0
|
|
3099
|
+
},
|
|
3100
|
+
"100%": {
|
|
3101
|
+
transform: "translate3d(0, 0, 0)",
|
|
3102
|
+
transformOrigin: "0 0",
|
|
3103
|
+
opacity: 1
|
|
3104
|
+
}
|
|
3105
|
+
});
|
|
3106
|
+
var moveDownOut = new Keyframe("antMoveDownOut", {
|
|
3107
|
+
"0%": {
|
|
3108
|
+
transform: "translate3d(0, 0, 0)",
|
|
3109
|
+
transformOrigin: "0 0",
|
|
3110
|
+
opacity: 1
|
|
3111
|
+
},
|
|
3112
|
+
"100%": {
|
|
3113
|
+
transform: "translate3d(0, 100%, 0)",
|
|
3114
|
+
transformOrigin: "0 0",
|
|
3115
|
+
opacity: 0
|
|
3116
|
+
}
|
|
3117
|
+
});
|
|
3118
|
+
var moveLeftIn = new Keyframe("antMoveLeftIn", {
|
|
3119
|
+
"0%": {
|
|
3120
|
+
transform: "translate3d(-100%, 0, 0)",
|
|
3121
|
+
transformOrigin: "0 0",
|
|
3122
|
+
opacity: 0
|
|
3123
|
+
},
|
|
3124
|
+
"100%": {
|
|
3125
|
+
transform: "translate3d(0, 0, 0)",
|
|
3126
|
+
transformOrigin: "0 0",
|
|
3127
|
+
opacity: 1
|
|
3128
|
+
}
|
|
3129
|
+
});
|
|
3130
|
+
var moveLeftOut = new Keyframe("antMoveLeftOut", {
|
|
3131
|
+
"0%": {
|
|
3132
|
+
transform: "translate3d(0, 0, 0)",
|
|
3133
|
+
transformOrigin: "0 0",
|
|
3134
|
+
opacity: 1
|
|
3135
|
+
},
|
|
3136
|
+
"100%": {
|
|
3137
|
+
transform: "translate3d(-100%, 0, 0)",
|
|
3138
|
+
transformOrigin: "0 0",
|
|
3139
|
+
opacity: 0
|
|
3140
|
+
}
|
|
3141
|
+
});
|
|
3142
|
+
var moveRightIn = new Keyframe("antMoveRightIn", {
|
|
3143
|
+
"0%": {
|
|
3144
|
+
transform: "translate3d(100%, 0, 0)",
|
|
3145
|
+
transformOrigin: "0 0",
|
|
3146
|
+
opacity: 0
|
|
3147
|
+
},
|
|
3148
|
+
"100%": {
|
|
3149
|
+
transform: "translate3d(0, 0, 0)",
|
|
3150
|
+
transformOrigin: "0 0",
|
|
3151
|
+
opacity: 1
|
|
3152
|
+
}
|
|
3153
|
+
});
|
|
3154
|
+
var moveRightOut = new Keyframe("antMoveRightOut", {
|
|
3155
|
+
"0%": {
|
|
3156
|
+
transform: "translate3d(0, 0, 0)",
|
|
3157
|
+
transformOrigin: "0 0",
|
|
3158
|
+
opacity: 1
|
|
3159
|
+
},
|
|
3160
|
+
"100%": {
|
|
3161
|
+
transform: "translate3d(100%, 0, 0)",
|
|
3162
|
+
transformOrigin: "0 0",
|
|
3163
|
+
opacity: 0
|
|
3164
|
+
}
|
|
3165
|
+
});
|
|
3166
|
+
var moveMotion = {
|
|
3167
|
+
"move-up": {
|
|
3168
|
+
inKeyframes: new Keyframe("antMoveUpIn", {
|
|
3169
|
+
"0%": {
|
|
3170
|
+
transform: "translate3d(0, -100%, 0)",
|
|
3171
|
+
transformOrigin: "0 0",
|
|
3172
|
+
opacity: 0
|
|
3173
|
+
},
|
|
3174
|
+
"100%": {
|
|
3175
|
+
transform: "translate3d(0, 0, 0)",
|
|
3176
|
+
transformOrigin: "0 0",
|
|
3177
|
+
opacity: 1
|
|
3178
|
+
}
|
|
3179
|
+
}),
|
|
3180
|
+
outKeyframes: new Keyframe("antMoveUpOut", {
|
|
3181
|
+
"0%": {
|
|
3182
|
+
transform: "translate3d(0, 0, 0)",
|
|
3183
|
+
transformOrigin: "0 0",
|
|
3184
|
+
opacity: 1
|
|
3185
|
+
},
|
|
3186
|
+
"100%": {
|
|
3187
|
+
transform: "translate3d(0, -100%, 0)",
|
|
3188
|
+
transformOrigin: "0 0",
|
|
3189
|
+
opacity: 0
|
|
3190
|
+
}
|
|
3191
|
+
})
|
|
3192
|
+
},
|
|
3193
|
+
"move-down": {
|
|
3194
|
+
inKeyframes: moveDownIn,
|
|
3195
|
+
outKeyframes: moveDownOut
|
|
3196
|
+
},
|
|
3197
|
+
"move-left": {
|
|
3198
|
+
inKeyframes: moveLeftIn,
|
|
3199
|
+
outKeyframes: moveLeftOut
|
|
3200
|
+
},
|
|
3201
|
+
"move-right": {
|
|
3202
|
+
inKeyframes: moveRightIn,
|
|
3203
|
+
outKeyframes: moveRightOut
|
|
3204
|
+
}
|
|
3205
|
+
};
|
|
3206
|
+
var initMoveMotion = (token, motionName) => {
|
|
3207
|
+
const { antCls } = token;
|
|
3208
|
+
const motionCls = `${antCls}-${motionName}`;
|
|
3209
|
+
const { inKeyframes, outKeyframes } = moveMotion[motionName];
|
|
3210
|
+
return [initMotion(motionCls, inKeyframes, outKeyframes, token.motionDurationMid), {
|
|
3211
|
+
[`
|
|
3212
|
+
${motionCls}-enter,
|
|
3213
|
+
${motionCls}-appear
|
|
3214
|
+
`]: {
|
|
3215
|
+
opacity: 0,
|
|
3216
|
+
animationTimingFunction: token.motionEaseOutCirc
|
|
3217
|
+
},
|
|
3218
|
+
[`${motionCls}-leave`]: { animationTimingFunction: token.motionEaseInOutCirc }
|
|
3219
|
+
}];
|
|
3220
|
+
};
|
|
3221
|
+
//#endregion
|
|
3222
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/select/style/dropdown.js
|
|
3223
|
+
var genItemStyle = (token) => {
|
|
3224
|
+
const { controlPaddingHorizontal } = token;
|
|
3225
|
+
return {
|
|
3226
|
+
position: "relative",
|
|
3227
|
+
display: "block",
|
|
3228
|
+
minHeight: token.controlHeight,
|
|
3229
|
+
padding: `${(token.controlHeight - token.fontSize * token.lineHeight) / 2}px ${controlPaddingHorizontal}px`,
|
|
3230
|
+
color: token.colorText,
|
|
3231
|
+
fontWeight: "normal",
|
|
3232
|
+
fontSize: token.fontSize,
|
|
3233
|
+
lineHeight: token.lineHeight,
|
|
3234
|
+
boxSizing: "border-box"
|
|
3235
|
+
};
|
|
3236
|
+
};
|
|
3237
|
+
var genSingleStyle$1 = (token) => {
|
|
3238
|
+
const { antCls, componentCls } = token;
|
|
3239
|
+
const selectItemCls = `${componentCls}-item`;
|
|
3240
|
+
return [
|
|
3241
|
+
{ [`${componentCls}-dropdown`]: _extends(_extends({}, resetComponent(token)), {
|
|
3242
|
+
position: "absolute",
|
|
3243
|
+
top: -9999,
|
|
3244
|
+
zIndex: token.zIndexPopup,
|
|
3245
|
+
boxSizing: "border-box",
|
|
3246
|
+
padding: token.paddingXXS,
|
|
3247
|
+
overflow: "hidden",
|
|
3248
|
+
fontSize: token.fontSize,
|
|
3249
|
+
fontVariant: "initial",
|
|
3250
|
+
backgroundColor: token.colorBgElevated,
|
|
3251
|
+
borderRadius: token.borderRadiusLG,
|
|
3252
|
+
outline: "none",
|
|
3253
|
+
boxShadow: token.boxShadowSecondary,
|
|
3254
|
+
[`
|
|
3255
|
+
&${antCls}-slide-up-enter${antCls}-slide-up-enter-active${componentCls}-dropdown-placement-bottomLeft,
|
|
3256
|
+
&${antCls}-slide-up-appear${antCls}-slide-up-appear-active${componentCls}-dropdown-placement-bottomLeft
|
|
3257
|
+
`]: { animationName: slideUpIn },
|
|
3258
|
+
[`
|
|
3259
|
+
&${antCls}-slide-up-enter${antCls}-slide-up-enter-active${componentCls}-dropdown-placement-topLeft,
|
|
3260
|
+
&${antCls}-slide-up-appear${antCls}-slide-up-appear-active${componentCls}-dropdown-placement-topLeft
|
|
3261
|
+
`]: { animationName: slideDownIn },
|
|
3262
|
+
[`&${antCls}-slide-up-leave${antCls}-slide-up-leave-active${componentCls}-dropdown-placement-bottomLeft`]: { animationName: slideUpOut },
|
|
3263
|
+
[`&${antCls}-slide-up-leave${antCls}-slide-up-leave-active${componentCls}-dropdown-placement-topLeft`]: { animationName: slideDownOut },
|
|
3264
|
+
"&-hidden": { display: "none" },
|
|
3265
|
+
"&-empty": { color: token.colorTextDisabled },
|
|
3266
|
+
[`${selectItemCls}-empty`]: _extends(_extends({}, genItemStyle(token)), { color: token.colorTextDisabled }),
|
|
3267
|
+
[`${selectItemCls}`]: _extends(_extends({}, genItemStyle(token)), {
|
|
3268
|
+
cursor: "pointer",
|
|
3269
|
+
transition: `background ${token.motionDurationSlow} ease`,
|
|
3270
|
+
borderRadius: token.borderRadiusSM,
|
|
3271
|
+
"&-group": {
|
|
3272
|
+
color: token.colorTextDescription,
|
|
3273
|
+
fontSize: token.fontSizeSM,
|
|
3274
|
+
cursor: "default"
|
|
3275
|
+
},
|
|
3276
|
+
"&-option": {
|
|
3277
|
+
display: "flex",
|
|
3278
|
+
"&-content": _extends({ flex: "auto" }, textEllipsis),
|
|
3279
|
+
"&-state": { flex: "none" },
|
|
3280
|
+
[`&-active:not(${selectItemCls}-option-disabled)`]: { backgroundColor: token.controlItemBgHover },
|
|
3281
|
+
[`&-selected:not(${selectItemCls}-option-disabled)`]: {
|
|
3282
|
+
color: token.colorText,
|
|
3283
|
+
fontWeight: token.fontWeightStrong,
|
|
3284
|
+
backgroundColor: token.controlItemBgActive,
|
|
3285
|
+
[`${selectItemCls}-option-state`]: { color: token.colorPrimary }
|
|
3286
|
+
},
|
|
3287
|
+
"&-disabled": {
|
|
3288
|
+
[`&${selectItemCls}-option-selected`]: { backgroundColor: token.colorBgContainerDisabled },
|
|
3289
|
+
color: token.colorTextDisabled,
|
|
3290
|
+
cursor: "not-allowed"
|
|
3291
|
+
},
|
|
3292
|
+
"&-grouped": { paddingInlineStart: token.controlPaddingHorizontal * 2 }
|
|
3293
|
+
}
|
|
3294
|
+
}),
|
|
3295
|
+
"&-rtl": { direction: "rtl" }
|
|
3296
|
+
}) },
|
|
3297
|
+
initSlideMotion(token, "slide-up"),
|
|
3298
|
+
initSlideMotion(token, "slide-down"),
|
|
3299
|
+
initMoveMotion(token, "move-up"),
|
|
3300
|
+
initMoveMotion(token, "move-down")
|
|
3301
|
+
];
|
|
3302
|
+
};
|
|
3303
|
+
//#endregion
|
|
3304
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/select/style/multiple.js
|
|
3305
|
+
var FIXED_ITEM_MARGIN = 2;
|
|
3306
|
+
function getSelectItemStyle(_ref) {
|
|
3307
|
+
let { controlHeightSM, controlHeight, lineWidth: borderWidth } = _ref;
|
|
3308
|
+
const selectItemDist = (controlHeight - controlHeightSM) / 2 - borderWidth;
|
|
3309
|
+
return [selectItemDist, Math.ceil(selectItemDist / 2)];
|
|
3310
|
+
}
|
|
3311
|
+
function genSizeStyle$1(token, suffix) {
|
|
3312
|
+
const { componentCls, iconCls } = token;
|
|
3313
|
+
const selectOverflowPrefixCls = `${componentCls}-selection-overflow`;
|
|
3314
|
+
const selectItemHeight = token.controlHeightSM;
|
|
3315
|
+
const [selectItemDist] = getSelectItemStyle(token);
|
|
3316
|
+
return { [`${componentCls}-multiple${suffix ? `${componentCls}-${suffix}` : ""}`]: {
|
|
3317
|
+
fontSize: token.fontSize,
|
|
3318
|
+
/**
|
|
3319
|
+
* Do not merge `height` & `line-height` under style with `selection` & `search`, since chrome
|
|
3320
|
+
* may update to redesign with its align logic.
|
|
3321
|
+
*/
|
|
3322
|
+
[selectOverflowPrefixCls]: {
|
|
3323
|
+
position: "relative",
|
|
3324
|
+
display: "flex",
|
|
3325
|
+
flex: "auto",
|
|
3326
|
+
flexWrap: "wrap",
|
|
3327
|
+
maxWidth: "100%",
|
|
3328
|
+
"&-item": {
|
|
3329
|
+
flex: "none",
|
|
3330
|
+
alignSelf: "center",
|
|
3331
|
+
maxWidth: "100%",
|
|
3332
|
+
display: "inline-flex"
|
|
3333
|
+
}
|
|
3334
|
+
},
|
|
3335
|
+
[`${componentCls}-selector`]: {
|
|
3336
|
+
display: "flex",
|
|
3337
|
+
flexWrap: "wrap",
|
|
3338
|
+
alignItems: "center",
|
|
3339
|
+
padding: `${selectItemDist - FIXED_ITEM_MARGIN}px 4px`,
|
|
3340
|
+
borderRadius: token.borderRadius,
|
|
3341
|
+
[`${componentCls}-show-search&`]: { cursor: "text" },
|
|
3342
|
+
[`${componentCls}-disabled&`]: {
|
|
3343
|
+
background: token.colorBgContainerDisabled,
|
|
3344
|
+
cursor: "not-allowed"
|
|
3345
|
+
},
|
|
3346
|
+
"&:after": {
|
|
3347
|
+
display: "inline-block",
|
|
3348
|
+
width: 0,
|
|
3349
|
+
margin: `${FIXED_ITEM_MARGIN}px 0`,
|
|
3350
|
+
lineHeight: `${selectItemHeight}px`,
|
|
3351
|
+
content: "\"\\a0\""
|
|
3352
|
+
}
|
|
3353
|
+
},
|
|
3354
|
+
[`
|
|
3355
|
+
&${componentCls}-show-arrow ${componentCls}-selector,
|
|
3356
|
+
&${componentCls}-allow-clear ${componentCls}-selector
|
|
3357
|
+
`]: { paddingInlineEnd: token.fontSizeIcon + token.controlPaddingHorizontal },
|
|
3358
|
+
[`${componentCls}-selection-item`]: {
|
|
3359
|
+
position: "relative",
|
|
3360
|
+
display: "flex",
|
|
3361
|
+
flex: "none",
|
|
3362
|
+
boxSizing: "border-box",
|
|
3363
|
+
maxWidth: "100%",
|
|
3364
|
+
height: selectItemHeight,
|
|
3365
|
+
marginTop: FIXED_ITEM_MARGIN,
|
|
3366
|
+
marginBottom: FIXED_ITEM_MARGIN,
|
|
3367
|
+
lineHeight: `${selectItemHeight - token.lineWidth * 2}px`,
|
|
3368
|
+
background: token.colorFillSecondary,
|
|
3369
|
+
border: `${token.lineWidth}px solid ${token.colorSplit}`,
|
|
3370
|
+
borderRadius: token.borderRadiusSM,
|
|
3371
|
+
cursor: "default",
|
|
3372
|
+
transition: `font-size ${token.motionDurationSlow}, line-height ${token.motionDurationSlow}, height ${token.motionDurationSlow}`,
|
|
3373
|
+
userSelect: "none",
|
|
3374
|
+
marginInlineEnd: 4,
|
|
3375
|
+
paddingInlineStart: token.paddingXS,
|
|
3376
|
+
paddingInlineEnd: token.paddingXS / 2,
|
|
3377
|
+
[`${componentCls}-disabled&`]: {
|
|
3378
|
+
color: token.colorTextDisabled,
|
|
3379
|
+
borderColor: token.colorBorder,
|
|
3380
|
+
cursor: "not-allowed"
|
|
3381
|
+
},
|
|
3382
|
+
"&-content": {
|
|
3383
|
+
display: "inline-block",
|
|
3384
|
+
marginInlineEnd: token.paddingXS / 2,
|
|
3385
|
+
overflow: "hidden",
|
|
3386
|
+
whiteSpace: "pre",
|
|
3387
|
+
textOverflow: "ellipsis"
|
|
3388
|
+
},
|
|
3389
|
+
"&-remove": _extends(_extends({}, resetIcon()), {
|
|
3390
|
+
display: "inline-block",
|
|
3391
|
+
color: token.colorIcon,
|
|
3392
|
+
fontWeight: "bold",
|
|
3393
|
+
fontSize: 10,
|
|
3394
|
+
lineHeight: "inherit",
|
|
3395
|
+
cursor: "pointer",
|
|
3396
|
+
[`> ${iconCls}`]: { verticalAlign: "-0.2em" },
|
|
3397
|
+
"&:hover": { color: token.colorIconHover }
|
|
3398
|
+
})
|
|
3399
|
+
},
|
|
3400
|
+
[`${selectOverflowPrefixCls}-item + ${selectOverflowPrefixCls}-item`]: { [`${componentCls}-selection-search`]: { marginInlineStart: 0 } },
|
|
3401
|
+
[`${componentCls}-selection-search`]: {
|
|
3402
|
+
display: "inline-flex",
|
|
3403
|
+
position: "relative",
|
|
3404
|
+
maxWidth: "100%",
|
|
3405
|
+
marginInlineStart: token.inputPaddingHorizontalBase - selectItemDist,
|
|
3406
|
+
[`
|
|
3407
|
+
&-input,
|
|
3408
|
+
&-mirror
|
|
3409
|
+
`]: {
|
|
3410
|
+
height: selectItemHeight,
|
|
3411
|
+
fontFamily: token.fontFamily,
|
|
3412
|
+
lineHeight: `${selectItemHeight}px`,
|
|
3413
|
+
transition: `all ${token.motionDurationSlow}`
|
|
3414
|
+
},
|
|
3415
|
+
"&-input": {
|
|
3416
|
+
width: "100%",
|
|
3417
|
+
minWidth: 4.1
|
|
3418
|
+
},
|
|
3419
|
+
"&-mirror": {
|
|
3420
|
+
position: "absolute",
|
|
3421
|
+
top: 0,
|
|
3422
|
+
insetInlineStart: 0,
|
|
3423
|
+
insetInlineEnd: "auto",
|
|
3424
|
+
zIndex: 999,
|
|
3425
|
+
whiteSpace: "pre",
|
|
3426
|
+
visibility: "hidden"
|
|
3427
|
+
}
|
|
3428
|
+
},
|
|
3429
|
+
[`${componentCls}-selection-placeholder `]: {
|
|
3430
|
+
position: "absolute",
|
|
3431
|
+
top: "50%",
|
|
3432
|
+
insetInlineStart: token.inputPaddingHorizontalBase,
|
|
3433
|
+
insetInlineEnd: token.inputPaddingHorizontalBase,
|
|
3434
|
+
transform: "translateY(-50%)",
|
|
3435
|
+
transition: `all ${token.motionDurationSlow}`
|
|
3436
|
+
}
|
|
3437
|
+
} };
|
|
3438
|
+
}
|
|
3439
|
+
function genMultipleStyle(token) {
|
|
3440
|
+
const { componentCls } = token;
|
|
3441
|
+
const smallToken = merge(token, {
|
|
3442
|
+
controlHeight: token.controlHeightSM,
|
|
3443
|
+
controlHeightSM: token.controlHeightXS,
|
|
3444
|
+
borderRadius: token.borderRadiusSM,
|
|
3445
|
+
borderRadiusSM: token.borderRadiusXS
|
|
3446
|
+
});
|
|
3447
|
+
const [, smSelectItemMargin] = getSelectItemStyle(token);
|
|
3448
|
+
return [
|
|
3449
|
+
genSizeStyle$1(token),
|
|
3450
|
+
genSizeStyle$1(smallToken, "sm"),
|
|
3451
|
+
{ [`${componentCls}-multiple${componentCls}-sm`]: {
|
|
3452
|
+
[`${componentCls}-selection-placeholder`]: {
|
|
3453
|
+
insetInlineStart: token.controlPaddingHorizontalSM - token.lineWidth,
|
|
3454
|
+
insetInlineEnd: "auto"
|
|
3455
|
+
},
|
|
3456
|
+
[`${componentCls}-selection-search`]: { marginInlineStart: smSelectItemMargin }
|
|
3457
|
+
} },
|
|
3458
|
+
genSizeStyle$1(merge(token, {
|
|
3459
|
+
fontSize: token.fontSizeLG,
|
|
3460
|
+
controlHeight: token.controlHeightLG,
|
|
3461
|
+
controlHeightSM: token.controlHeight,
|
|
3462
|
+
borderRadius: token.borderRadiusLG,
|
|
3463
|
+
borderRadiusSM: token.borderRadius
|
|
3464
|
+
}), "lg")
|
|
3465
|
+
];
|
|
3466
|
+
}
|
|
3467
|
+
//#endregion
|
|
3468
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/select/style/single.js
|
|
3469
|
+
function genSizeStyle(token, suffix) {
|
|
3470
|
+
const { componentCls, inputPaddingHorizontalBase, borderRadius } = token;
|
|
3471
|
+
const selectHeightWithoutBorder = token.controlHeight - token.lineWidth * 2;
|
|
3472
|
+
const selectionItemPadding = Math.ceil(token.fontSize * 1.25);
|
|
3473
|
+
return { [`${componentCls}-single${suffix ? `${componentCls}-${suffix}` : ""}`]: {
|
|
3474
|
+
fontSize: token.fontSize,
|
|
3475
|
+
[`${componentCls}-selector`]: _extends(_extends({}, resetComponent(token)), {
|
|
3476
|
+
display: "flex",
|
|
3477
|
+
borderRadius,
|
|
3478
|
+
[`${componentCls}-selection-search`]: {
|
|
3479
|
+
position: "absolute",
|
|
3480
|
+
top: 0,
|
|
3481
|
+
insetInlineStart: inputPaddingHorizontalBase,
|
|
3482
|
+
insetInlineEnd: inputPaddingHorizontalBase,
|
|
3483
|
+
bottom: 0,
|
|
3484
|
+
"&-input": { width: "100%" }
|
|
3485
|
+
},
|
|
3486
|
+
[`
|
|
3487
|
+
${componentCls}-selection-item,
|
|
3488
|
+
${componentCls}-selection-placeholder
|
|
3489
|
+
`]: {
|
|
3490
|
+
padding: 0,
|
|
3491
|
+
lineHeight: `${selectHeightWithoutBorder}px`,
|
|
3492
|
+
transition: `all ${token.motionDurationSlow}`,
|
|
3493
|
+
"@supports (-moz-appearance: meterbar)": { lineHeight: `${selectHeightWithoutBorder}px` }
|
|
3494
|
+
},
|
|
3495
|
+
[`${componentCls}-selection-item`]: {
|
|
3496
|
+
position: "relative",
|
|
3497
|
+
userSelect: "none"
|
|
3498
|
+
},
|
|
3499
|
+
[`${componentCls}-selection-placeholder`]: {
|
|
3500
|
+
transition: "none",
|
|
3501
|
+
pointerEvents: "none"
|
|
3502
|
+
},
|
|
3503
|
+
[[
|
|
3504
|
+
"&:after",
|
|
3505
|
+
`${componentCls}-selection-item:after`,
|
|
3506
|
+
`${componentCls}-selection-placeholder:after`
|
|
3507
|
+
].join(",")]: {
|
|
3508
|
+
display: "inline-block",
|
|
3509
|
+
width: 0,
|
|
3510
|
+
visibility: "hidden",
|
|
3511
|
+
content: "\"\\a0\""
|
|
3512
|
+
}
|
|
3513
|
+
}),
|
|
3514
|
+
[`
|
|
3515
|
+
&${componentCls}-show-arrow ${componentCls}-selection-item,
|
|
3516
|
+
&${componentCls}-show-arrow ${componentCls}-selection-placeholder
|
|
3517
|
+
`]: { paddingInlineEnd: selectionItemPadding },
|
|
3518
|
+
[`&${componentCls}-open ${componentCls}-selection-item`]: { color: token.colorTextPlaceholder },
|
|
3519
|
+
[`&:not(${componentCls}-customize-input)`]: { [`${componentCls}-selector`]: {
|
|
3520
|
+
width: "100%",
|
|
3521
|
+
height: token.controlHeight,
|
|
3522
|
+
padding: `0 ${inputPaddingHorizontalBase}px`,
|
|
3523
|
+
[`${componentCls}-selection-search-input`]: { height: selectHeightWithoutBorder },
|
|
3524
|
+
"&:after": { lineHeight: `${selectHeightWithoutBorder}px` }
|
|
3525
|
+
} },
|
|
3526
|
+
[`&${componentCls}-customize-input`]: { [`${componentCls}-selector`]: {
|
|
3527
|
+
"&:after": { display: "none" },
|
|
3528
|
+
[`${componentCls}-selection-search`]: {
|
|
3529
|
+
position: "static",
|
|
3530
|
+
width: "100%"
|
|
3531
|
+
},
|
|
3532
|
+
[`${componentCls}-selection-placeholder`]: {
|
|
3533
|
+
position: "absolute",
|
|
3534
|
+
insetInlineStart: 0,
|
|
3535
|
+
insetInlineEnd: 0,
|
|
3536
|
+
padding: `0 ${inputPaddingHorizontalBase}px`,
|
|
3537
|
+
"&:after": { display: "none" }
|
|
3538
|
+
}
|
|
3539
|
+
} }
|
|
3540
|
+
} };
|
|
3541
|
+
}
|
|
3542
|
+
function genSingleStyle(token) {
|
|
3543
|
+
const { componentCls } = token;
|
|
3544
|
+
const inputPaddingHorizontalSM = token.controlPaddingHorizontalSM - token.lineWidth;
|
|
3545
|
+
return [
|
|
3546
|
+
genSizeStyle(token),
|
|
3547
|
+
genSizeStyle(merge(token, {
|
|
3548
|
+
controlHeight: token.controlHeightSM,
|
|
3549
|
+
borderRadius: token.borderRadiusSM
|
|
3550
|
+
}), "sm"),
|
|
3551
|
+
{ [`${componentCls}-single${componentCls}-sm`]: { [`&:not(${componentCls}-customize-input)`]: {
|
|
3552
|
+
[`${componentCls}-selection-search`]: {
|
|
3553
|
+
insetInlineStart: inputPaddingHorizontalSM,
|
|
3554
|
+
insetInlineEnd: inputPaddingHorizontalSM
|
|
3555
|
+
},
|
|
3556
|
+
[`${componentCls}-selector`]: { padding: `0 ${inputPaddingHorizontalSM}px` },
|
|
3557
|
+
[`&${componentCls}-show-arrow ${componentCls}-selection-search`]: { insetInlineEnd: inputPaddingHorizontalSM + token.fontSize * 1.5 },
|
|
3558
|
+
[`
|
|
3559
|
+
&${componentCls}-show-arrow ${componentCls}-selection-item,
|
|
3560
|
+
&${componentCls}-show-arrow ${componentCls}-selection-placeholder
|
|
3561
|
+
`]: { paddingInlineEnd: token.fontSize * 1.5 }
|
|
3562
|
+
} } },
|
|
3563
|
+
genSizeStyle(merge(token, {
|
|
3564
|
+
controlHeight: token.controlHeightLG,
|
|
3565
|
+
fontSize: token.fontSizeLG,
|
|
3566
|
+
borderRadius: token.borderRadiusLG
|
|
3567
|
+
}), "lg")
|
|
3568
|
+
];
|
|
3569
|
+
}
|
|
3570
|
+
//#endregion
|
|
3571
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/select/style/index.js
|
|
3572
|
+
var genSelectorStyle = (token) => {
|
|
3573
|
+
const { componentCls } = token;
|
|
3574
|
+
return {
|
|
3575
|
+
position: "relative",
|
|
3576
|
+
backgroundColor: token.colorBgContainer,
|
|
3577
|
+
border: `${token.lineWidth}px ${token.lineType} ${token.colorBorder}`,
|
|
3578
|
+
transition: `all ${token.motionDurationMid} ${token.motionEaseInOut}`,
|
|
3579
|
+
input: { cursor: "pointer" },
|
|
3580
|
+
[`${componentCls}-show-search&`]: {
|
|
3581
|
+
cursor: "text",
|
|
3582
|
+
input: {
|
|
3583
|
+
cursor: "auto",
|
|
3584
|
+
color: "inherit"
|
|
3585
|
+
}
|
|
3586
|
+
},
|
|
3587
|
+
[`${componentCls}-disabled&`]: {
|
|
3588
|
+
color: token.colorTextDisabled,
|
|
3589
|
+
background: token.colorBgContainerDisabled,
|
|
3590
|
+
cursor: "not-allowed",
|
|
3591
|
+
[`${componentCls}-multiple&`]: { background: token.colorBgContainerDisabled },
|
|
3592
|
+
input: { cursor: "not-allowed" }
|
|
3593
|
+
}
|
|
3594
|
+
};
|
|
3595
|
+
};
|
|
3596
|
+
var genStatusStyle = function(rootSelectCls, token) {
|
|
3597
|
+
let overwriteDefaultBorder = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : false;
|
|
3598
|
+
const { componentCls, borderHoverColor, outlineColor, antCls } = token;
|
|
3599
|
+
const overwriteStyle = overwriteDefaultBorder ? { [`${componentCls}-selector`]: { borderColor: borderHoverColor } } : {};
|
|
3600
|
+
return { [rootSelectCls]: { [`&:not(${componentCls}-disabled):not(${componentCls}-customize-input):not(${antCls}-pagination-size-changer)`]: _extends(_extends({}, overwriteStyle), {
|
|
3601
|
+
[`${componentCls}-focused& ${componentCls}-selector`]: {
|
|
3602
|
+
borderColor: borderHoverColor,
|
|
3603
|
+
boxShadow: `0 0 0 ${token.controlOutlineWidth}px ${outlineColor}`,
|
|
3604
|
+
borderInlineEndWidth: `${token.controlLineWidth}px !important`,
|
|
3605
|
+
outline: 0
|
|
3606
|
+
},
|
|
3607
|
+
[`&:hover ${componentCls}-selector`]: {
|
|
3608
|
+
borderColor: borderHoverColor,
|
|
3609
|
+
borderInlineEndWidth: `${token.controlLineWidth}px !important`
|
|
3610
|
+
}
|
|
3611
|
+
}) } };
|
|
3612
|
+
};
|
|
3613
|
+
var getSearchInputWithoutBorderStyle = (token) => {
|
|
3614
|
+
const { componentCls } = token;
|
|
3615
|
+
return { [`${componentCls}-selection-search-input`]: {
|
|
3616
|
+
margin: 0,
|
|
3617
|
+
padding: 0,
|
|
3618
|
+
background: "transparent",
|
|
3619
|
+
border: "none",
|
|
3620
|
+
outline: "none",
|
|
3621
|
+
appearance: "none",
|
|
3622
|
+
"&::-webkit-search-cancel-button": {
|
|
3623
|
+
display: "none",
|
|
3624
|
+
"-webkit-appearance": "none"
|
|
3625
|
+
}
|
|
3626
|
+
} };
|
|
3627
|
+
};
|
|
3628
|
+
var genBaseStyle = (token) => {
|
|
3629
|
+
const { componentCls, inputPaddingHorizontalBase, iconCls } = token;
|
|
3630
|
+
return {
|
|
3631
|
+
[componentCls]: _extends(_extends({}, resetComponent(token)), {
|
|
3632
|
+
position: "relative",
|
|
3633
|
+
display: "inline-block",
|
|
3634
|
+
cursor: "pointer",
|
|
3635
|
+
[`&:not(${componentCls}-customize-input) ${componentCls}-selector`]: _extends(_extends({}, genSelectorStyle(token)), getSearchInputWithoutBorderStyle(token)),
|
|
3636
|
+
[`${componentCls}-selection-item`]: _extends({
|
|
3637
|
+
flex: 1,
|
|
3638
|
+
fontWeight: "normal"
|
|
3639
|
+
}, textEllipsis),
|
|
3640
|
+
[`${componentCls}-selection-placeholder`]: _extends(_extends({}, textEllipsis), {
|
|
3641
|
+
flex: 1,
|
|
3642
|
+
color: token.colorTextPlaceholder,
|
|
3643
|
+
pointerEvents: "none"
|
|
3644
|
+
}),
|
|
3645
|
+
[`${componentCls}-arrow`]: _extends(_extends({}, resetIcon()), {
|
|
3646
|
+
position: "absolute",
|
|
3647
|
+
top: "50%",
|
|
3648
|
+
insetInlineStart: "auto",
|
|
3649
|
+
insetInlineEnd: inputPaddingHorizontalBase,
|
|
3650
|
+
height: token.fontSizeIcon,
|
|
3651
|
+
marginTop: -token.fontSizeIcon / 2,
|
|
3652
|
+
color: token.colorTextQuaternary,
|
|
3653
|
+
fontSize: token.fontSizeIcon,
|
|
3654
|
+
lineHeight: 1,
|
|
3655
|
+
textAlign: "center",
|
|
3656
|
+
pointerEvents: "none",
|
|
3657
|
+
display: "flex",
|
|
3658
|
+
alignItems: "center",
|
|
3659
|
+
[iconCls]: {
|
|
3660
|
+
verticalAlign: "top",
|
|
3661
|
+
transition: `transform ${token.motionDurationSlow}`,
|
|
3662
|
+
"> svg": { verticalAlign: "top" },
|
|
3663
|
+
[`&:not(${componentCls}-suffix)`]: { pointerEvents: "auto" }
|
|
3664
|
+
},
|
|
3665
|
+
[`${componentCls}-disabled &`]: { cursor: "not-allowed" },
|
|
3666
|
+
"> *:not(:last-child)": { marginInlineEnd: 8 }
|
|
3667
|
+
}),
|
|
3668
|
+
[`${componentCls}-clear`]: {
|
|
3669
|
+
position: "absolute",
|
|
3670
|
+
top: "50%",
|
|
3671
|
+
insetInlineStart: "auto",
|
|
3672
|
+
insetInlineEnd: inputPaddingHorizontalBase,
|
|
3673
|
+
zIndex: 1,
|
|
3674
|
+
display: "inline-block",
|
|
3675
|
+
width: token.fontSizeIcon,
|
|
3676
|
+
height: token.fontSizeIcon,
|
|
3677
|
+
marginTop: -token.fontSizeIcon / 2,
|
|
3678
|
+
color: token.colorTextQuaternary,
|
|
3679
|
+
fontSize: token.fontSizeIcon,
|
|
3680
|
+
fontStyle: "normal",
|
|
3681
|
+
lineHeight: 1,
|
|
3682
|
+
textAlign: "center",
|
|
3683
|
+
textTransform: "none",
|
|
3684
|
+
background: token.colorBgContainer,
|
|
3685
|
+
cursor: "pointer",
|
|
3686
|
+
opacity: 0,
|
|
3687
|
+
transition: `color ${token.motionDurationMid} ease, opacity ${token.motionDurationSlow} ease`,
|
|
3688
|
+
textRendering: "auto",
|
|
3689
|
+
"&:before": { display: "block" },
|
|
3690
|
+
"&:hover": { color: token.colorTextTertiary }
|
|
3691
|
+
},
|
|
3692
|
+
"&:hover": { [`${componentCls}-clear`]: { opacity: 1 } }
|
|
3693
|
+
}),
|
|
3694
|
+
[`${componentCls}-has-feedback`]: { [`${componentCls}-clear`]: { insetInlineEnd: inputPaddingHorizontalBase + token.fontSize + token.paddingXXS } }
|
|
3695
|
+
};
|
|
3696
|
+
};
|
|
3697
|
+
var genSelectStyle = (token) => {
|
|
3698
|
+
const { componentCls } = token;
|
|
3699
|
+
return [
|
|
3700
|
+
{ [componentCls]: {
|
|
3701
|
+
[`&-borderless ${componentCls}-selector`]: {
|
|
3702
|
+
backgroundColor: `transparent !important`,
|
|
3703
|
+
borderColor: `transparent !important`,
|
|
3704
|
+
boxShadow: `none !important`
|
|
3705
|
+
},
|
|
3706
|
+
[`&${componentCls}-in-form-item`]: { width: "100%" }
|
|
3707
|
+
} },
|
|
3708
|
+
genBaseStyle(token),
|
|
3709
|
+
genSingleStyle(token),
|
|
3710
|
+
genMultipleStyle(token),
|
|
3711
|
+
genSingleStyle$1(token),
|
|
3712
|
+
{ [`${componentCls}-rtl`]: { direction: "rtl" } },
|
|
3713
|
+
genStatusStyle(componentCls, merge(token, {
|
|
3714
|
+
borderHoverColor: token.colorPrimaryHover,
|
|
3715
|
+
outlineColor: token.controlOutline
|
|
3716
|
+
})),
|
|
3717
|
+
genStatusStyle(`${componentCls}-status-error`, merge(token, {
|
|
3718
|
+
borderHoverColor: token.colorErrorHover,
|
|
3719
|
+
outlineColor: token.colorErrorOutline
|
|
3720
|
+
}), true),
|
|
3721
|
+
genStatusStyle(`${componentCls}-status-warning`, merge(token, {
|
|
3722
|
+
borderHoverColor: token.colorWarningHover,
|
|
3723
|
+
outlineColor: token.colorWarningOutline
|
|
3724
|
+
}), true),
|
|
3725
|
+
genCompactItemStyle(token, {
|
|
3726
|
+
borderElCls: `${componentCls}-selector`,
|
|
3727
|
+
focusElCls: `${componentCls}-focused`
|
|
3728
|
+
})
|
|
3729
|
+
];
|
|
3730
|
+
};
|
|
3731
|
+
var style_default = genComponentStyleHook("Select", (token, _ref) => {
|
|
3732
|
+
let { rootPrefixCls } = _ref;
|
|
3733
|
+
return [genSelectStyle(merge(token, {
|
|
3734
|
+
rootPrefixCls,
|
|
3735
|
+
inputPaddingHorizontalBase: token.paddingSM - 1
|
|
3736
|
+
}))];
|
|
3737
|
+
}, (token) => ({ zIndexPopup: token.zIndexPopupBase + 50 }));
|
|
3738
|
+
//#endregion
|
|
3739
|
+
//#region node_modules/.pnpm/ant-design-vue@4.2.6_vue@3.5.41_typescript@5.9.3_/node_modules/ant-design-vue/es/select/index.js
|
|
3740
|
+
var selectProps = () => _extends(_extends({}, omit(selectProps$1(), [
|
|
3741
|
+
"inputIcon",
|
|
3742
|
+
"mode",
|
|
3743
|
+
"getInputElement",
|
|
3744
|
+
"getRawInputElement",
|
|
3745
|
+
"backfill"
|
|
3746
|
+
])), {
|
|
3747
|
+
value: someType([
|
|
3748
|
+
Array,
|
|
3749
|
+
Object,
|
|
3750
|
+
String,
|
|
3751
|
+
Number
|
|
3752
|
+
]),
|
|
3753
|
+
defaultValue: someType([
|
|
3754
|
+
Array,
|
|
3755
|
+
Object,
|
|
3756
|
+
String,
|
|
3757
|
+
Number
|
|
3758
|
+
]),
|
|
3759
|
+
notFoundContent: PropTypes.any,
|
|
3760
|
+
suffixIcon: PropTypes.any,
|
|
3761
|
+
itemIcon: PropTypes.any,
|
|
3762
|
+
size: stringType(),
|
|
3763
|
+
mode: stringType(),
|
|
3764
|
+
bordered: booleanType(true),
|
|
3765
|
+
transitionName: String,
|
|
3766
|
+
choiceTransitionName: stringType(""),
|
|
3767
|
+
popupClassName: String,
|
|
3768
|
+
/** @deprecated Please use `popupClassName` instead */
|
|
3769
|
+
dropdownClassName: String,
|
|
3770
|
+
placement: stringType(),
|
|
3771
|
+
status: stringType(),
|
|
3772
|
+
"onUpdate:value": functionType()
|
|
3773
|
+
});
|
|
3774
|
+
var SECRET_COMBOBOX_MODE_DO_NOT_USE = "SECRET_COMBOBOX_MODE_DO_NOT_USE";
|
|
3775
|
+
var Select = defineComponent({
|
|
3776
|
+
compatConfig: { MODE: 3 },
|
|
3777
|
+
name: "ASelect",
|
|
3778
|
+
Option,
|
|
3779
|
+
OptGroup,
|
|
3780
|
+
inheritAttrs: false,
|
|
3781
|
+
props: initDefaultProps(selectProps(), {
|
|
3782
|
+
listHeight: 256,
|
|
3783
|
+
listItemHeight: 24
|
|
3784
|
+
}),
|
|
3785
|
+
SECRET_COMBOBOX_MODE_DO_NOT_USE,
|
|
3786
|
+
slots: Object,
|
|
3787
|
+
setup(props, _ref) {
|
|
3788
|
+
let { attrs, emit, slots, expose } = _ref;
|
|
3789
|
+
const selectRef = ref();
|
|
3790
|
+
const formItemContext = useInjectFormItemContext();
|
|
3791
|
+
const formItemInputContext = FormItemInputContext.useInject();
|
|
3792
|
+
const mergedStatus = computed(() => getMergedStatus(formItemInputContext.status, props.status));
|
|
3793
|
+
const focus = () => {
|
|
3794
|
+
var _a;
|
|
3795
|
+
(_a = selectRef.value) === null || _a === void 0 || _a.focus();
|
|
3796
|
+
};
|
|
3797
|
+
const blur = () => {
|
|
3798
|
+
var _a;
|
|
3799
|
+
(_a = selectRef.value) === null || _a === void 0 || _a.blur();
|
|
3800
|
+
};
|
|
3801
|
+
const scrollTo = (arg) => {
|
|
3802
|
+
var _a;
|
|
3803
|
+
(_a = selectRef.value) === null || _a === void 0 || _a.scrollTo(arg);
|
|
3804
|
+
};
|
|
3805
|
+
const mode = computed(() => {
|
|
3806
|
+
const { mode } = props;
|
|
3807
|
+
if (mode === "combobox") return;
|
|
3808
|
+
if (mode === SECRET_COMBOBOX_MODE_DO_NOT_USE) return "combobox";
|
|
3809
|
+
return mode;
|
|
3810
|
+
});
|
|
3811
|
+
const { prefixCls, direction, renderEmpty, size: contextSize, getPrefixCls, getPopupContainer, disabled, select } = useConfigInject_default("select", props);
|
|
3812
|
+
const { compactSize, compactItemClassnames } = useCompactItemContext(prefixCls, direction);
|
|
3813
|
+
const mergedSize = computed(() => compactSize.value || contextSize.value);
|
|
3814
|
+
const contextDisabled = useInjectDisabled();
|
|
3815
|
+
const mergedDisabled = computed(() => {
|
|
3816
|
+
var _a;
|
|
3817
|
+
return (_a = disabled.value) !== null && _a !== void 0 ? _a : contextDisabled.value;
|
|
3818
|
+
});
|
|
3819
|
+
const [wrapSSR, hashId] = style_default(prefixCls);
|
|
3820
|
+
const rootPrefixCls = computed(() => getPrefixCls());
|
|
3821
|
+
const placement = computed(() => {
|
|
3822
|
+
if (props.placement !== void 0) return props.placement;
|
|
3823
|
+
return direction.value === "rtl" ? "bottomRight" : "bottomLeft";
|
|
3824
|
+
});
|
|
3825
|
+
const transitionName = computed(() => getTransitionName(rootPrefixCls.value, getTransitionDirection(placement.value), props.transitionName));
|
|
3826
|
+
const mergedClassName = computed(() => classNames({
|
|
3827
|
+
[`${prefixCls.value}-lg`]: mergedSize.value === "large",
|
|
3828
|
+
[`${prefixCls.value}-sm`]: mergedSize.value === "small",
|
|
3829
|
+
[`${prefixCls.value}-rtl`]: direction.value === "rtl",
|
|
3830
|
+
[`${prefixCls.value}-borderless`]: !props.bordered,
|
|
3831
|
+
[`${prefixCls.value}-in-form-item`]: formItemInputContext.isFormItemInput
|
|
3832
|
+
}, getStatusClassNames(prefixCls.value, mergedStatus.value, formItemInputContext.hasFeedback), compactItemClassnames.value, hashId.value));
|
|
3833
|
+
const triggerChange = function() {
|
|
3834
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key];
|
|
3835
|
+
emit("update:value", args[0]);
|
|
3836
|
+
emit("change", ...args);
|
|
3837
|
+
formItemContext.onFieldChange();
|
|
3838
|
+
};
|
|
3839
|
+
const handleBlur = (e) => {
|
|
3840
|
+
emit("blur", e);
|
|
3841
|
+
formItemContext.onFieldBlur();
|
|
3842
|
+
};
|
|
3843
|
+
expose({
|
|
3844
|
+
blur,
|
|
3845
|
+
focus,
|
|
3846
|
+
scrollTo
|
|
3847
|
+
});
|
|
3848
|
+
const isMultiple = computed(() => mode.value === "multiple" || mode.value === "tags");
|
|
3849
|
+
const mergedShowArrow = computed(() => props.showArrow !== void 0 ? props.showArrow : props.loading || !(isMultiple.value || mode.value === "combobox"));
|
|
3850
|
+
return () => {
|
|
3851
|
+
var _a, _b, _c, _d;
|
|
3852
|
+
const { notFoundContent, listHeight = 256, listItemHeight = 24, popupClassName, dropdownClassName, virtual, dropdownMatchSelectWidth, id = formItemContext.id.value, placeholder = (_a = slots.placeholder) === null || _a === void 0 ? void 0 : _a.call(slots), showArrow } = props;
|
|
3853
|
+
const { hasFeedback, feedbackIcon } = formItemInputContext;
|
|
3854
|
+
let mergedNotFound;
|
|
3855
|
+
if (notFoundContent !== void 0) mergedNotFound = notFoundContent;
|
|
3856
|
+
else if (slots.notFoundContent) mergedNotFound = slots.notFoundContent();
|
|
3857
|
+
else if (mode.value === "combobox") mergedNotFound = null;
|
|
3858
|
+
else mergedNotFound = (renderEmpty === null || renderEmpty === void 0 ? void 0 : renderEmpty("Select")) || createVNode(DefaultRenderEmpty, { "componentName": "Select" }, null);
|
|
3859
|
+
const { suffixIcon, itemIcon, removeIcon, clearIcon } = getIcons(_extends(_extends({}, props), {
|
|
3860
|
+
multiple: isMultiple.value,
|
|
3861
|
+
prefixCls: prefixCls.value,
|
|
3862
|
+
hasFeedback,
|
|
3863
|
+
feedbackIcon,
|
|
3864
|
+
showArrow: mergedShowArrow.value
|
|
3865
|
+
}), slots);
|
|
3866
|
+
const selectProps = omit(props, [
|
|
3867
|
+
"prefixCls",
|
|
3868
|
+
"suffixIcon",
|
|
3869
|
+
"itemIcon",
|
|
3870
|
+
"removeIcon",
|
|
3871
|
+
"clearIcon",
|
|
3872
|
+
"size",
|
|
3873
|
+
"bordered",
|
|
3874
|
+
"status"
|
|
3875
|
+
]);
|
|
3876
|
+
const rcSelectRtlDropdownClassName = classNames(popupClassName || dropdownClassName, { [`${prefixCls.value}-dropdown-${direction.value}`]: direction.value === "rtl" }, hashId.value);
|
|
3877
|
+
return wrapSSR(createVNode(vc_select_default, _objectSpread2(_objectSpread2(_objectSpread2({
|
|
3878
|
+
"ref": selectRef,
|
|
3879
|
+
"virtual": virtual,
|
|
3880
|
+
"dropdownMatchSelectWidth": dropdownMatchSelectWidth
|
|
3881
|
+
}, selectProps), attrs), {}, {
|
|
3882
|
+
"showSearch": (_b = props.showSearch) !== null && _b !== void 0 ? _b : (_c = select === null || select === void 0 ? void 0 : select.value) === null || _c === void 0 ? void 0 : _c.showSearch,
|
|
3883
|
+
"placeholder": placeholder,
|
|
3884
|
+
"listHeight": listHeight,
|
|
3885
|
+
"listItemHeight": listItemHeight,
|
|
3886
|
+
"mode": mode.value,
|
|
3887
|
+
"prefixCls": prefixCls.value,
|
|
3888
|
+
"direction": direction.value,
|
|
3889
|
+
"inputIcon": suffixIcon,
|
|
3890
|
+
"menuItemSelectedIcon": itemIcon,
|
|
3891
|
+
"removeIcon": removeIcon,
|
|
3892
|
+
"clearIcon": clearIcon,
|
|
3893
|
+
"notFoundContent": mergedNotFound,
|
|
3894
|
+
"class": [mergedClassName.value, attrs.class],
|
|
3895
|
+
"getPopupContainer": getPopupContainer === null || getPopupContainer === void 0 ? void 0 : getPopupContainer.value,
|
|
3896
|
+
"dropdownClassName": rcSelectRtlDropdownClassName,
|
|
3897
|
+
"onChange": triggerChange,
|
|
3898
|
+
"onBlur": handleBlur,
|
|
3899
|
+
"id": id,
|
|
3900
|
+
"dropdownRender": selectProps.dropdownRender || slots.dropdownRender,
|
|
3901
|
+
"transitionName": transitionName.value,
|
|
3902
|
+
"children": (_d = slots.default) === null || _d === void 0 ? void 0 : _d.call(slots),
|
|
3903
|
+
"tagRender": props.tagRender || slots.tagRender,
|
|
3904
|
+
"optionLabelRender": slots.optionLabel,
|
|
3905
|
+
"maxTagPlaceholder": props.maxTagPlaceholder || slots.maxTagPlaceholder,
|
|
3906
|
+
"showArrow": hasFeedback || showArrow,
|
|
3907
|
+
"disabled": mergedDisabled.value
|
|
3908
|
+
}), { option: slots.option }));
|
|
3909
|
+
};
|
|
3910
|
+
}
|
|
3911
|
+
});
|
|
3912
|
+
/* istanbul ignore next */
|
|
3913
|
+
Select.install = function(app) {
|
|
3914
|
+
app.component(Select.name, Select);
|
|
3915
|
+
app.component(Select.Option.displayName, Select.Option);
|
|
3916
|
+
app.component(Select.OptGroup.displayName, Select.OptGroup);
|
|
3917
|
+
return app;
|
|
3918
|
+
};
|
|
3919
|
+
Select.Option;
|
|
3920
|
+
Select.OptGroup;
|
|
3921
|
+
|
|
3922
|
+
export { CheckOutlined as C, DownOutlined as D, Select as S, initMoveMotion as i, selectProps as s, vc_virtual_list_default as v };
|
|
3923
|
+
//# sourceMappingURL=select-D7H2ysgT.mjs.map
|