@loicngr/kobo 1.10.2 → 1.10.3
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/CHANGELOG.md +4 -0
- package/README.md +1 -1
- package/dist/server/services/pr-watcher-service.js +22 -17
- package/dist/server/services/settings-service.js +106 -1
- package/package.json +1 -1
- package/src/client/dist/spa/assets/{ActivityFeed-98LfDiwH.js → ActivityFeed-Bn4IG1gM.js} +3 -3
- package/src/client/dist/spa/assets/{ChangelogPage-EA4LPGWB.js → ChangelogPage-OyS0LqjP.js} +1 -1
- package/src/client/dist/spa/assets/{ClosePopup-BxYvEnmx.js → ClosePopup-B1wf7Gh3.js} +1 -1
- package/src/client/dist/spa/assets/{CreatePage-Cg0BbQwp.js → CreatePage-CkOwo6Jn.js} +2 -2
- package/src/client/dist/spa/assets/{DiffViewer-CLp2N6Zh.js → DiffViewer-DUy5tfI3.js} +3 -3
- package/src/client/dist/spa/assets/{HealthPage-5F4m82-8.js → HealthPage-QMan-G3D.js} +1 -1
- package/src/client/dist/spa/assets/{MainLayout-Dfc_DsIt.js → MainLayout-CkVcmDeg.js} +3 -3
- package/src/client/dist/spa/assets/{QBtnToggle-Br3smB6b.js → QBtnToggle-BKi1Jbys.js} +1 -1
- package/src/client/dist/spa/assets/{QChip-Bc7L8LKe.js → QChip-1uTELmCE.js} +1 -1
- package/src/client/dist/spa/assets/{QExpansionItem-BHyDyRL4.js → QExpansionItem-BJZyoT79.js} +1 -1
- package/src/client/dist/spa/assets/QScrollArea-ehpkh2GE.js +1 -0
- package/src/client/dist/spa/assets/QSelect-CKc3IVuT.js +36 -0
- package/src/client/dist/spa/assets/QTooltip-86biX27D.js +1 -0
- package/src/client/dist/spa/assets/{SearchPage-BYM38aZA.js → SearchPage-V8OnALqt.js} +1 -1
- package/src/client/dist/spa/assets/SettingsPage-CazPsJnl.js +16 -0
- package/src/client/dist/spa/assets/SettingsPage-DGAGBtQ2.css +1 -0
- package/src/client/dist/spa/assets/{TouchPan-IMQRiAGn.js → TouchPan-EYoNwghH.js} +1 -1
- package/src/client/dist/spa/assets/WorkspacePage-q6R6SPuh.js +4 -0
- package/src/client/dist/spa/assets/{build-path-tree-Cgbihluh.js → build-path-tree-BAxSTjwb.js} +1 -1
- package/src/client/dist/spa/assets/{cssMode-57i-GAo-.js → cssMode-CG3m7iQl.js} +1 -1
- package/src/client/dist/spa/assets/documents-Dz8sHeyR.js +1 -0
- package/src/client/dist/spa/assets/{editor.api2-CNFQDxW4.js → editor.api2-DqJsxy06.js} +1 -1
- package/src/client/dist/spa/assets/{editor.main-CJJlXa_x.js → editor.main-r2oDGbHA.js} +2 -2
- package/src/client/dist/spa/assets/{expand-template-CN8wfDhv.js → expand-template-DP5gf1ro.js} +1 -1
- package/src/client/dist/spa/assets/{formatters-9eR6rvkm.js → formatters-EQwGVQQS.js} +1 -1
- package/src/client/dist/spa/assets/{freemarker2-qbKTPHxB.js → freemarker2-C6Dcsusp.js} +1 -1
- package/src/client/dist/spa/assets/{handlebars-DV81bryH.js → handlebars-BYzVrRyn.js} +1 -1
- package/src/client/dist/spa/assets/{html-i5i_Ua1s.js → html-Yuf2QU9u.js} +1 -1
- package/src/client/dist/spa/assets/{htmlMode-Du1z3aXL.js → htmlMode-BJJsbkSn.js} +1 -1
- package/src/client/dist/spa/assets/i18n-CPaxvFKM.js +1 -0
- package/src/client/dist/spa/assets/{index-B7ivRaq9.js → index-CC1iOXc-.js} +12 -12
- package/src/client/dist/spa/assets/{javascript-DgQZF_pf.js → javascript-Ch3ueiOd.js} +1 -1
- package/src/client/dist/spa/assets/{jsonMode-6XLEI_p0.js → jsonMode-xEENY1ms.js} +1 -1
- package/src/client/dist/spa/assets/{kobo-commands-CplA4Y0q.js → kobo-commands-CbIH5Wgu.js} +1 -1
- package/src/client/dist/spa/assets/{layout-BbHOhk37.js → layout-EwsT5w-M.js} +1 -1
- package/src/client/dist/spa/assets/{liquid-54MmW5iG.js → liquid-Bh89yiMp.js} +1 -1
- package/src/client/dist/spa/assets/{lspLanguageFeatures-xU1LF4fY.js → lspLanguageFeatures-CNi35cTh.js} +1 -1
- package/src/client/dist/spa/assets/{mdx-BbX1cCc8.js → mdx-Pk_6m6B2.js} +1 -1
- package/src/client/dist/spa/assets/{monaco.contribution-CNHTTcDF.js → monaco.contribution-DyjS5cak.js} +2 -2
- package/src/client/dist/spa/assets/network-auth-B4eYLa1I.js +1 -0
- package/src/client/dist/spa/assets/{project-color-PpNx-yz4.js → project-color-8ANVbJax.js} +1 -1
- package/src/client/dist/spa/assets/{python-BL4EBjGI.js → python-7GmD1T0-.js} +1 -1
- package/src/client/dist/spa/assets/{razor-BdIRjBrX.js → razor-CTW-7qAs.js} +1 -1
- package/src/client/dist/spa/assets/{render-chat-markdown-CYeqc8cI.js → render-chat-markdown-iOBona09.js} +1 -1
- package/src/client/dist/spa/assets/{tsMode-BoQuq_mo.js → tsMode-BMCTiDkj.js} +1 -1
- package/src/client/dist/spa/assets/{typescript-TXE1oBSg.js → typescript-CBNlJ2bB.js} +1 -1
- package/src/client/dist/spa/assets/{use-onboarding-Ch0swQ7p.js → use-onboarding-C7pg8RV8.js} +1 -1
- package/src/client/dist/spa/assets/{use-quasar--cg_cUkd.js → use-quasar-by40ecAs.js} +1 -1
- package/src/client/dist/spa/assets/{workers-Clrb2kWw.js → workers-CrZaPx7e.js} +1 -1
- package/src/client/dist/spa/assets/{xml-36_1aaai.js → xml-CkKKuUBJ.js} +1 -1
- package/src/client/dist/spa/assets/{yaml-CTVfk9Oc.js → yaml-B6VtPgSa.js} +1 -1
- package/src/client/dist/spa/index.html +1 -1
- package/src/client/dist/spa/sounds/7eme-compagnie-03.mp3 +0 -0
- package/src/client/dist/spa/sounds/aller-ftg.mp3 +0 -0
- package/src/client/dist/spa/sounds/arrete-de-mentir.mp3 +0 -0
- package/src/client/dist/spa/sounds/arretez-les-messages.mp3 +0 -0
- package/src/client/dist/spa/sounds/bah-alors-on-est-nul.mp3 +0 -0
- package/src/client/dist/spa/sounds/gta-v-death.mp3 +0 -0
- package/src/client/dist/spa/sounds/nan-tu-degages.mp3 +0 -0
- package/src/client/dist/spa/sounds/nan-wallah-pardon.mp3 +0 -0
- package/src/client/dist/spa/sounds/ouais-cest-greg.mp3 +0 -0
- package/src/client/dist/spa/sounds/pas-ca-zinedine.mp3 +0 -0
- package/src/client/dist/spa/sounds/ta-gueule.mp3 +0 -0
- package/src/client/dist/spa/sounds/tu-vas-la-fermer.mp3 +0 -0
- package/src/client/dist/spa/assets/QScrollArea-CncsSfK0.js +0 -1
- package/src/client/dist/spa/assets/QSelect-DXXOwpf6.js +0 -36
- package/src/client/dist/spa/assets/QTooltip-C6Vpr1qf.js +0 -1
- package/src/client/dist/spa/assets/SettingsPage-DendQ8y4.js +0 -16
- package/src/client/dist/spa/assets/SettingsPage-NDsw0Jvo.css +0 -1
- package/src/client/dist/spa/assets/WorkspacePage-BghKaAab.js +0 -4
- package/src/client/dist/spa/assets/documents-CdYfTEAV.js +0 -1
- package/src/client/dist/spa/assets/i18n-DA8dnYBE.js +0 -1
- package/src/client/dist/spa/assets/network-auth-CdzNfMI-.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{T as e,p as t}from"./vue.runtime.esm-bundler-JZnIeD9D.js";import{N as n,a as r}from"./QIcon-C6E-oEjI.js";import{i,o as a}from"./QInput-BF8x4RTv.js";import{
|
|
1
|
+
import{T as e,p as t}from"./vue.runtime.esm-bundler-JZnIeD9D.js";import{N as n,a as r}from"./QIcon-C6E-oEjI.js";import{i,o as a}from"./QInput-BF8x4RTv.js";import{B as o,V as s}from"./index-CC1iOXc-.js";import{t as c}from"./QBtnGroup-C442-yBb.js";var l=n({name:`QBtnToggle`,props:{...a,modelValue:{required:!0},options:{type:Array,required:!0,validator:e=>e.every(e=>(`label`in e||`icon`in e||`slot`in e)&&`value`in e)},color:String,textColor:String,toggleColor:{type:String,default:`primary`},toggleTextColor:String,outline:Boolean,flat:Boolean,unelevated:Boolean,rounded:Boolean,push:Boolean,glossy:Boolean,size:String,padding:String,noCaps:Boolean,noWrap:Boolean,dense:Boolean,readonly:Boolean,disable:Boolean,stack:Boolean,stretch:Boolean,spread:Boolean,clearable:Boolean,ripple:{type:[Boolean,Object],default:!0}},emits:[`update:modelValue`,`clear`,`click`],setup(n,{slots:a,emit:l}){let u=t(()=>n.options.find(e=>e.value===n.modelValue)!==void 0),d=i(t(()=>({type:`hidden`,name:n.name,value:n.modelValue}))),f=t(()=>s(n)),p=t(()=>({rounded:n.rounded,dense:n.dense,...f.value})),m=t(()=>n.options.map((e,t)=>{let{attrs:r,value:i,slot:a,...o}=e;return{slot:a,props:{key:t,"aria-pressed":i===n.modelValue?`true`:`false`,...r,...o,...p.value,disable:n.disable||o.disable===!0,color:i===n.modelValue?g(o,`toggleColor`):g(o,`color`),textColor:i===n.modelValue?g(o,`toggleTextColor`):g(o,`textColor`),noCaps:g(o,`noCaps`)===!0,noWrap:g(o,`noWrap`)===!0,size:g(o,`size`),padding:g(o,`padding`),ripple:g(o,`ripple`),stack:g(o,`stack`)===!0,stretch:g(o,`stretch`)===!0,onClick(t){h(i,e,t)}}}}));function h(e,t,r){n.readonly||(n.modelValue===e?n.clearable&&(l(`update:modelValue`,null,null),l(`clear`)):l(`update:modelValue`,e,t),l(`click`,r))}function g(e,t){return e[t]===void 0?n[t]:e[t]}function _(){let t=m.value.map(t=>e(o,t.props,t.slot===void 0?void 0:a[t.slot]));return n.name!==void 0&&!n.disable&&u.value&&d(t,`push`),r(a.default,t)}return()=>e(c,{class:`q-btn-toggle`,...f.value,rounded:n.rounded,stretch:n.stretch,glossy:n.glossy,spread:n.spread},_)}});export{l as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{C as e,T as t,p as n}from"./vue.runtime.esm-bundler-JZnIeD9D.js";import{M as r,N as i,f as a,i as o,n as s,o as c,p as l,r as u,t as d}from"./QIcon-C6E-oEjI.js";import{
|
|
1
|
+
import{C as e,T as t,p as n}from"./vue.runtime.esm-bundler-JZnIeD9D.js";import{M as r,N as i,f as a,i as o,n as s,o as c,p as l,r as u,t as d}from"./QIcon-C6E-oEjI.js";import{G as f}from"./index-CC1iOXc-.js";function p(e){e.keyCode===32&&r(e)}var m={xs:8,sm:10,md:14,lg:20,xl:24},h=i({name:`QChip`,props:{...u,...l,dense:Boolean,icon:String,iconRight:String,iconRemove:String,iconSelected:String,label:[String,Number],color:String,textColor:String,modelValue:{type:Boolean,default:!0},selected:{type:Boolean,default:null},square:Boolean,outline:Boolean,clickable:Boolean,removable:Boolean,removeAriaLabel:String,tabindex:[String,Number],disable:Boolean,ripple:{type:[Boolean,Object],default:!0}},emits:[`update:modelValue`,`update:selected`,`remove`,`click`],setup(i,{slots:l,emit:u}){let{proxy:{$q:h}}=e(),g=s(i,h),_=a(i,m),v=n(()=>i.selected||i.icon!==void 0),y=n(()=>i.selected?i.iconSelected||h.iconSet.chip.selected:i.icon),b=n(()=>i.iconRemove||h.iconSet.chip.remove),x=n(()=>!i.disable&&(i.clickable||i.selected!==null)),S=n(()=>{let e=i.outline&&i.color||i.textColor;return`q-chip row inline no-wrap items-center`+(!i.outline&&i.color!==void 0?` bg-${i.color}`:``)+(e?` text-${e} q-chip--colored`:``)+(i.disable?` disabled`:``)+(i.dense?` q-chip--dense`:``)+(i.outline?` q-chip--outline`:``)+(i.selected?` q-chip--selected`:``)+(x.value?` q-chip--clickable cursor-pointer non-selectable q-hoverable`:``)+(i.square?` q-chip--square`:``)+(g.value?` q-chip--dark q-dark`:``)}),C=n(()=>{let e=i.disable?{tabindex:-1,"aria-disabled":`true`}:{tabindex:i.tabindex||0,role:`button`,"aria-pressed":i.selected?`true`:`false`};return{chip:e,remove:{...e,role:`button`,"aria-hidden":`false`,"aria-label":i.removeAriaLabel||h.lang.label.remove}}});function w(e){[13,32].includes(e.keyCode)&&(T(e),r(e))}function T(e){i.disable||(u(`update:selected`,!i.selected),u(`click`,e))}function E(e){(e.keyCode===void 0||[13,32].includes(e.keyCode))&&(r(e),i.disable||(u(`update:modelValue`,!1),u(`remove`)))}function D(){let e=[];x.value&&e.push(t(`div`,{class:`q-focus-helper`})),v.value&&e.push(t(d,{class:`q-chip__icon q-chip__icon--left`,name:y.value}));let n=i.label===void 0?void 0:[t(`div`,{class:`ellipsis`},[i.label])];return e.push(t(`div`,{class:`q-chip__content col row no-wrap items-center q-anchor--skip`},c(l.default,n))),i.iconRight&&e.push(t(d,{class:`q-chip__icon q-chip__icon--right`,name:i.iconRight})),i.removable&&e.push(t(d,{class:`q-chip__icon q-chip__icon--remove cursor-pointer`,name:b.value,...C.value.remove,onClick:E,onKeydown:p,onKeyup:E})),e}return()=>{if(!i.modelValue)return;let e={class:S.value,style:_.value};return x.value&&Object.assign(e,C.value.chip,{onClick:T,onKeydown:p,onKeyup:w}),o(`div`,e,D(),`ripple`,i.ripple!==!1&&!i.disable,()=>[[f,i.ripple]])}}});export{h as t};
|
package/src/client/dist/spa/assets/{QExpansionItem-BHyDyRL4.js → QExpansionItem-BJZyoT79.js}
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as e,C as t,G as n,M as r,T as i,U as a,a as o,et as s,p as c}from"./vue.runtime.esm-bundler-JZnIeD9D.js";import{M as l,N as u,n as d,r as f,s as p,t as m}from"./QIcon-C6E-oEjI.js";import{n as h,r as g,t as _}from"./QSeparator-DWTCQxsa.js";import{
|
|
1
|
+
import{$ as e,C as t,G as n,M as r,T as i,U as a,a as o,et as s,p as c}from"./vue.runtime.esm-bundler-JZnIeD9D.js";import{M as l,N as u,n as d,r as f,s as p,t as m}from"./QIcon-C6E-oEjI.js";import{n as h,r as g,t as _}from"./QSeparator-DWTCQxsa.js";import{W as v,gt as y,ht as b,mt as x}from"./index-CC1iOXc-.js";import{n as S,r as C}from"./use-quasar-by40ecAs.js";import{l as w}from"./QSelect-CKc3IVuT.js";import{h as T}from"./QTooltip-86biX27D.js";var E=s({});function D(e){e.keyCode===32&&l(e)}var O=Object.keys(v),k=u({name:`QExpansionItem`,props:{...v,...y,...f,icon:String,label:String,labelLines:[Number,String],caption:String,captionLines:[Number,String],dense:Boolean,toggleAriaLabel:String,expandIcon:String,expandedIcon:String,expandIconClass:[Array,String,Object],duration:{},headerInsetLevel:Number,contentInsetLevel:Number,expandSeparator:Boolean,defaultOpened:Boolean,hideExpandIcon:Boolean,expandIconToggle:Boolean,switchToggleSide:Boolean,denseToggle:Boolean,group:String,popup:Boolean,headerStyle:[Array,String,Object],headerClass:[Array,String,Object]},emits:[...b,`click`,`afterShow`,`afterHide`],setup(s,{slots:u,emit:f}){let{proxy:{$q:v}}=t(),y=d(s,v),b=e(s.modelValue===null?s.defaultOpened:s.modelValue),k=e(null),A=h(),{show:j,hide:M,toggle:N}=x({showing:b}),P,F,I=c(()=>`q-expansion-item q-item-type q-expansion-item--${b.value?`expanded`:`collapsed`} q-expansion-item--${s.popup?`popup`:`standard`}`),L=c(()=>s.contentInsetLevel===void 0?null:{[`padding`+(v.lang.rtl?`Right`:`Left`)]:s.contentInsetLevel*56+`px`}),R=c(()=>!s.disable&&(s.href!==void 0||s.to!==void 0&&s.to!==null&&s.to!==``)),z=c(()=>{let e={};return O.forEach(t=>{e[t]=s[t]}),e}),B=c(()=>R.value||!s.expandIconToggle),V=c(()=>s.expandedIcon!==void 0&&b.value?s.expandedIcon:s.expandIcon||v.iconSet.expansionItem[s.denseToggle?`denseIcon`:`icon`]),H=c(()=>!s.disable&&(R.value||s.expandIconToggle)),U=c(()=>({expanded:b.value,detailsId:A.value,toggle:N,show:j,hide:M})),W=c(()=>{let e=s.toggleAriaLabel===void 0?v.lang.label[b.value?`collapse`:`expand`](s.label):s.toggleAriaLabel;return{role:`button`,"aria-expanded":b.value?`true`:`false`,"aria-controls":A.value,"aria-label":e}});a(()=>s.group,e=>{F?.(),e!==void 0&&X()});function G(e){R.value||N(e),f(`click`,e)}function K(e){[13,32].includes(e.keyCode)&&q(e,!0)}function q(e,t){!t&&!e.qAvoidFocus&&k.value?.focus(),N(e),l(e)}function J(){f(`afterShow`)}function Y(){f(`afterHide`)}function X(){P===void 0&&(P=g()),b.value&&(E[s.group]=P);let e=a(b,e=>{e?E[s.group]=P:E[s.group]===P&&delete E[s.group]}),t=a(()=>E[s.group],(e,t)=>{t===P&&e!==void 0&&e!==P&&M()});F=()=>{e(),t(),E[s.group]===P&&delete E[s.group],F=void 0}}function Z(){let e={class:[`q-focusable relative-position cursor-pointer${s.denseToggle&&s.switchToggleSide?` items-end`:``}`,s.expandIconClass],side:!s.switchToggleSide,avatar:s.switchToggleSide},t=[i(m,{class:`q-expansion-item__toggle-icon`+(s.expandedIcon===void 0&&b.value?` q-expansion-item__toggle-icon--rotated`:``),name:V.value})];return H.value&&(Object.assign(e,{tabindex:0,...W.value,onClick:q,onKeydown:D,onKeyup:K}),t.unshift(i(`div`,{ref:k,class:`q-expansion-item__toggle-focus q-icon q-focus-helper q-focus-helper--rounded`,tabindex:-1}))),i(S,e,()=>t)}function Q(){let e;return u.header===void 0?(e=[i(S,()=>[i(w,{lines:s.labelLines},()=>s.label||``),s.caption?i(w,{lines:s.captionLines,caption:!0},()=>s.caption):null])],s.icon&&e[s.switchToggleSide?`push`:`unshift`](i(S,{side:s.switchToggleSide,avatar:!s.switchToggleSide},()=>i(m,{name:s.icon})))):e=[u.header(U.value)].flat(),!s.disable&&!s.hideExpandIcon&&e[s.switchToggleSide?`unshift`:`push`](Z()),e}function $(){let e={ref:`item`,style:s.headerStyle,class:s.headerClass,dark:y.value,disable:s.disable,dense:s.dense,insetLevel:s.headerInsetLevel};return B.value&&(e.clickable=!0,e.onClick=G,Object.assign(e,R.value?z.value:W.value)),i(C,e,Q)}function ee(){return n(i(`div`,{key:`e-content`,class:`q-expansion-item__content relative-position`,style:L.value,id:A.value},p(u.default)),[[o,b.value]])}function te(){let e=[$(),i(T,{duration:s.duration,onShow:J,onHide:Y},ee)];return s.expandSeparator&&e.push(i(_,{class:`q-expansion-item__border q-expansion-item__border--top absolute-top`,dark:y.value}),i(_,{class:`q-expansion-item__border q-expansion-item__border--bottom absolute-bottom`,dark:y.value})),e}return s.group!==void 0&&X(),r(()=>{F?.()}),()=>i(`div`,{class:I.value},[i(`div`,{class:`q-expansion-item__container relative-position`},te())])}});export{k as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$ as e,A as t,C as n,G as r,M as i,P as a,T as o,U as s,p as c}from"./vue.runtime.esm-bundler-JZnIeD9D.js";import{N as l,a as u,n as d,r as f}from"./QIcon-C6E-oEjI.js";import{u as p}from"./QSeparator-DWTCQxsa.js";import{at as m,it as h}from"./index-CC1iOXc-.js";import{d as g,f as _}from"./QTooltip-86biX27D.js";import{n as v,r as y}from"./documents-Dz8sHeyR.js";import{t as b}from"./TouchPan-EYoNwghH.js";var x=l({props:[`store`,`barStyle`,`verticalBarStyle`,`horizontalBarStyle`],setup(e){return()=>[o(`div`,{class:e.store.scroll.vertical.barClass.value,style:[e.barStyle,e.verticalBarStyle],"aria-hidden":`true`,onMousedown:e.store.onVerticalMousedown}),o(`div`,{class:e.store.scroll.horizontal.barClass.value,style:[e.barStyle,e.horizontalBarStyle],"aria-hidden":`true`,onMousedown:e.store.onHorizontalMousedown}),r(o(`div`,{ref:e.store.scroll.vertical.ref,class:e.store.scroll.vertical.thumbClass.value,style:e.store.scroll.vertical.style.value,"aria-hidden":`true`}),e.store.thumbVertDir),r(o(`div`,{ref:e.store.scroll.horizontal.ref,class:e.store.scroll.horizontal.thumbClass.value,style:e.store.scroll.horizontal.style.value,"aria-hidden":`true`}),e.store.thumbHorizDir)]}}),S=[`vertical`,`horizontal`],C={vertical:{offset:`offsetY`,scroll:`scrollTop`,dir:`down`,dist:`y`},horizontal:{offset:`offsetX`,scroll:`scrollLeft`,dir:`right`,dist:`x`}},w={prevent:!0,mouse:!0,mouseAllDir:!0},T=e=>e>=250?50:Math.ceil(e/5),E=l({name:`QScrollArea`,props:{...f,thumbStyle:Object,verticalThumbStyle:Object,horizontalThumbStyle:Object,barStyle:[Array,String,Object],verticalBarStyle:[Array,String,Object],horizontalBarStyle:[Array,String,Object],verticalOffset:{type:Array,default:()=>[0,0]},horizontalOffset:{type:Array,default:()=>[0,0]},contentStyle:[Array,String,Object],contentActiveStyle:[Array,String,Object],delay:{type:[String,Number],default:1e3},visible:{type:Boolean,default:null},tabindex:[String,Number],onScroll:Function},setup(r,{slots:l,emit:f}){let E=e(!1),D=e(!1),O=e(!1),k={vertical:e(0),horizontal:e(0)},A={vertical:{ref:e(null),position:e(0),size:e(0)},horizontal:{ref:e(null),position:e(0),size:e(0)}},{proxy:j}=n(),M=d(r,j.$q),N=null,P,F=e(null),I=c(()=>`q-scrollarea`+(M.value?` q-scrollarea--dark`:``));Object.assign(k,{verticalInner:c(()=>k.vertical.value-r.verticalOffset[0]-r.verticalOffset[1]),horizontalInner:c(()=>k.horizontal.value-r.horizontalOffset[0]-r.horizontalOffset[1])}),A.vertical.percentage=c(()=>{let e=A.vertical.size.value-k.vertical.value;if(e<=0)return 0;let t=_(A.vertical.position.value/e,0,1);return Math.round(t*1e4)/1e4}),A.vertical.thumbHidden=c(()=>!(r.visible===null?O.value:r.visible)&&!E.value&&!D.value||A.vertical.size.value<=k.vertical.value+1),A.vertical.thumbStart=c(()=>r.verticalOffset[0]+A.vertical.percentage.value*(k.verticalInner.value-A.vertical.thumbSize.value)),A.vertical.thumbSize=c(()=>Math.round(_(k.verticalInner.value*k.verticalInner.value/A.vertical.size.value,T(k.verticalInner.value),k.verticalInner.value))),A.vertical.style=c(()=>({...r.thumbStyle,...r.verticalThumbStyle,top:`${A.vertical.thumbStart.value}px`,height:`${A.vertical.thumbSize.value}px`,right:`${r.horizontalOffset[1]}px`})),A.vertical.thumbClass=c(()=>`q-scrollarea__thumb q-scrollarea__thumb--v absolute-right`+(A.vertical.thumbHidden.value?` q-scrollarea__thumb--invisible`:``)),A.vertical.barClass=c(()=>`q-scrollarea__bar q-scrollarea__bar--v absolute-right`+(A.vertical.thumbHidden.value?` q-scrollarea__bar--invisible`:``)),A.horizontal.percentage=c(()=>{let e=A.horizontal.size.value-k.horizontal.value;if(e<=0)return 0;let t=_(J(A.horizontal.position.value)/e,0,1);return Math.round(t*1e4)/1e4}),A.horizontal.thumbHidden=c(()=>!(r.visible===null?O.value:r.visible)&&!E.value&&!D.value||A.horizontal.size.value<=k.horizontal.value+1),A.horizontal.thumbStart=c(()=>r.horizontalOffset[+!!j.$q.lang.rtl]+A.horizontal.percentage.value*(k.horizontalInner.value-A.horizontal.thumbSize.value)),A.horizontal.thumbSize=c(()=>Math.round(_(k.horizontalInner.value*k.horizontalInner.value/A.horizontal.size.value,T(k.horizontalInner.value),k.horizontalInner.value))),A.horizontal.style=c(()=>({...r.thumbStyle,...r.horizontalThumbStyle,[j.$q.lang.rtl?`right`:`left`]:`${A.horizontal.thumbStart.value}px`,width:`${A.horizontal.thumbSize.value}px`,bottom:`${r.verticalOffset[1]}px`})),A.horizontal.thumbClass=c(()=>`q-scrollarea__thumb q-scrollarea__thumb--h absolute-bottom`+(A.horizontal.thumbHidden.value?` q-scrollarea__thumb--invisible`:``)),A.horizontal.barClass=c(()=>`q-scrollarea__bar q-scrollarea__bar--h absolute-bottom`+(A.horizontal.thumbHidden.value?` q-scrollarea__bar--invisible`:``));let L=c(()=>A.vertical.thumbHidden.value&&A.horizontal.thumbHidden.value?r.contentStyle:r.contentActiveStyle);function R(){let e={};return S.forEach(t=>{let n=A[t];Object.assign(e,{[t+`Position`]:n.position.value,[t+`Percentage`]:n.percentage.value,[t+`Size`]:n.size.value,[t+`ContainerSize`]:k[t].value,[t+`ContainerInnerSize`]:k[t+`Inner`].value})}),e}let z=p(()=>{let e=R();e.ref=j,f(`scroll`,e)},0);function B(e,t,n){if(!S.includes(e)){console.error(`[QScrollArea]: wrong first param of setScrollPosition (vertical/horizontal)`);return}(e===`vertical`?m:h)(F.value,t,n)}function V({height:e,width:t}){let n=!1;k.vertical.value!==e&&(k.vertical.value=e,n=!0),k.horizontal.value!==t&&(k.horizontal.value=t,n=!0),n&&K()}function H({position:e}){let t=!1;A.vertical.position.value!==e.top&&(A.vertical.position.value=e.top,t=!0),A.horizontal.position.value!==e.left&&(A.horizontal.position.value=e.left,t=!0),t&&K()}function U({height:e,width:t}){A.horizontal.size.value!==t&&(A.horizontal.size.value=t,K()),A.vertical.size.value!==e&&(A.vertical.size.value=e,K())}function W(e,t){let n=A[t];if(e.isFirst){if(n.thumbHidden.value)return;P=t===`horizontal`?J(n.position.value):n.position.value,D.value=!0}else if(!D.value)return;e.isFinal&&(D.value=!1);let r=C[t],i=(n.size.value-k[t].value)/(k[t+`Inner`].value-n.thumbSize.value),a=e.distance[r.dist],o=(e.direction===r.dir?1:-1)*(t===`horizontal`&&j.$q.lang.rtl?-1:1),s=P+o*a*i;q(t===`horizontal`?Y(s):s,t)}function G(e,t){let n=A[t];if(!n.thumbHidden.value){let i=t===`horizontal`&&j.$q.lang.rtl,a=t===`vertical`?r.verticalOffset[0]:r.horizontalOffset[+!!i],o=(i?k.horizontal.value-e.offsetX:e[C[t].offset])-a,s=n.thumbStart.value-a;if(o<s||o>s+n.thumbSize.value){let e=_((o-n.thumbSize.value/2)/(k[t+`Inner`].value-n.thumbSize.value),0,1);q(i?Y(e*Math.max(0,n.size.value-k[t].value)):e*Math.max(0,n.size.value-k[t].value),t)}n.ref.value!==null&&n.ref.value.dispatchEvent(new MouseEvent(e.type,e))}}function K(){E.value=!0,N!==null&&clearTimeout(N),N=setTimeout(()=>{N=null,E.value=!1},r.delay),r.onScroll!==void 0&&z()}function q(e,t){F.value[C[t].scroll]=e}function J(e,t=j.$q.lang.rtl){return t?g?Math.max(0,A.horizontal.size.value-k.horizontal.value)-e:-e:e}function Y(e,t=j.$q.lang.rtl){return t?g?Math.max(0,A.horizontal.size.value-k.horizontal.value)-e:-e:e}let X=null;function Z(){X!==null&&clearTimeout(X),X=setTimeout(()=>{X=null,O.value=!0},j.$q.platform.is.ios?50:0)}function Q(){X!==null&&(clearTimeout(X),X=null),O.value=!1}let $=null;s(()=>j.$q.lang.rtl,(e,t)=>{F.value!==null&&h(F.value,Y(J(A.horizontal.position.value,t),e))}),a(()=>{$={top:A.vertical.position.value,left:A.horizontal.position.value}}),t(()=>{if($===null)return;let e=F.value;e!==null&&(h(e,$.left),m(e,$.top))}),i(z.cancel),Object.assign(j,{getScrollTarget:()=>F.value,getScroll:R,getScrollPosition:()=>({top:A.vertical.position.value,left:A.horizontal.position.value}),getScrollPercentage:()=>({top:A.vertical.percentage.value,left:A.horizontal.percentage.value}),setScrollPosition:B,setScrollPercentage(e,t,n){let r=t*(A[e].size.value-k[e].value);B(e,e===`horizontal`?Y(r):r,n)}});let ee={scroll:A,thumbVertDir:[[b,e=>{W(e,`vertical`)},void 0,{vertical:!0,...w}]],thumbHorizDir:[[b,e=>{W(e,`horizontal`)},void 0,{horizontal:!0,...w}]],onVerticalMousedown(e){G(e,`vertical`)},onHorizontalMousedown(e){G(e,`horizontal`)}};return()=>o(`div`,{class:I.value,onMouseenter:Z,onMouseleave:Q},[o(`div`,{ref:F,class:`q-scrollarea__container scroll relative-position fit hide-scrollbar`,tabindex:r.tabindex===void 0?void 0:r.tabindex},[o(`div`,{class:`q-scrollarea__content absolute`,style:L.value},u(l.default,[o(y,{debounce:0,onResize:U})])),o(v,{axis:`both`,onScroll:H})]),o(y,{debounce:0,onResize:V}),o(x,{store:ee,barStyle:r.barStyle,verticalBarStyle:r.verticalBarStyle,horizontalBarStyle:r.horizontalBarStyle})])}});export{E as t};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import{$ as e,A as t,C as n,L as r,M as i,N as a,P as o,T as s,U as c,j as l,k as u,n as d,p as f}from"./vue.runtime.esm-bundler-JZnIeD9D.js";import{D as p,M as m,N as h,O as g,S as _,a as v,b as y,j as b,k as x,n as S,r as C,s as w,t as T}from"./QIcon-C6E-oEjI.js";import{o as E,u as D}from"./QSeparator-DWTCQxsa.js";import{a as O,c as k,d as A,l as j,n as ee,o as M,s as te,u as N}from"./QInput-BF8x4RTv.js";import{J as P,X as F,Y as I,Z as ne,_t as L,ct as R,et as re,ft as z,gt as B,ht as V,mt as ie,ot as ae,pt as oe,q as se,rt as H,st as ce,vt as le,wt as U}from"./index-CC1iOXc-.js";import{n as ue,r as de}from"./use-quasar-by40ecAs.js";import{a as fe,c as pe,d as me,i as he,l as ge,n as W,o as G,p as _e,r as ve,s as ye,u as be}from"./QTooltip-86biX27D.js";import{t as xe}from"./QChip-1uTELmCE.js";var Se=h({name:`QItemLabel`,props:{overline:Boolean,caption:Boolean,header:Boolean,lines:[Number,String]},setup(e,{slots:t}){let n=f(()=>Number.parseInt(e.lines,10)),r=f(()=>`q-item__label`+(e.overline?` q-item__label--overline text-overline`:``)+(e.caption?` q-item__label--caption text-caption`:``)+(e.header?` q-item__label--header`:``)+(n.value===1?` ellipsis`:``)),i=f(()=>e.lines!==void 0&&n.value>1?{overflow:`hidden`,display:`-webkit-box`,"-webkit-box-orient":`vertical`,"-webkit-line-clamp":n.value}:null);return()=>s(`div`,{style:i.value,class:r.value},w(t.default))}}),Ce=h({name:`QMenu`,inheritAttrs:!1,props:{...be,...B,...C,...oe,persistent:Boolean,autoClose:Boolean,separateClosePopup:Boolean,noEscDismiss:Boolean,noRouteDismiss:Boolean,noRefocus:Boolean,noFocus:Boolean,fit:Boolean,cover:Boolean,square:Boolean,anchor:{type:String,validator:fe},self:{type:String,validator:fe},offset:{type:Array,validator:he},scrollTarget:H,touchPosition:Boolean,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null}},emits:[...V,`click`,`escapeKey`],setup(t,{slots:r,emit:a,attrs:o}){let l=null,u,p,h,_=n(),{proxy:v}=_,{$q:y}=v,b=e(null),x=e(!1),C=f(()=>!t.persistent&&!t.noRouteDismiss),T=S(t,y),{registerTick:D,removeTick:O}=L(),{registerTimeout:k}=le(),{transitionProps:A,transitionStyle:j}=z(t),{localScrollTarget:ee,changeScrollEvent:M,unconfigureScrollTarget:te}=pe(t,we),{anchorEl:N,canShow:B}=ge({showing:x}),{hide:V}=ie({showing:x,canShow:B,handleShow:be,handleHide:xe,handleRouteChange:Se,hideOnRouteChange:C,processOnMount:!0}),{showPortal:oe,hidePortal:se,renderPortal:H}=ce(_,b,De,`menu`),U={anchorEl:N,innerRef:b,onClickOutside(e){if(!t.persistent&&x.value)return V(e),(e.type===`touchstart`||e.target.classList.contains(`q-dialog__backdrop`))&&m(e),!0}},ue=f(()=>W(t.anchor||(t.cover?`center middle`:`bottom start`),y.lang.rtl)),de=f(()=>t.cover?ue.value:W(t.self||`top start`,y.lang.rtl)),fe=f(()=>(t.square?` q-menu--square`:``)+(T.value?` q-menu--dark q-dark`:``)),me=f(()=>t.autoClose?{onClick:Te}:{}),he=f(()=>x.value&&!t.persistent);c(he,e=>{e?(F(Ee),G(U)):(ne(Ee),ye(U))});function _e(){E(()=>{let e=b.value;e&&!e.contains(document.activeElement)&&(e=e.querySelector(`[autofocus][tabindex], [data-autofocus][tabindex]`)||e.querySelector(`[autofocus] [tabindex], [data-autofocus] [tabindex]`)||e.querySelector(`[autofocus], [data-autofocus]`)||e,e.focus({preventScroll:!0}))})}function be(e){if(l=t.noRefocus?null:document.activeElement,P(K),oe(),we(),u=void 0,e!==void 0&&(t.touchPosition||t.contextMenu)){let t=g(e);if(t.left!==void 0){let{top:e,left:n}=N.value.getBoundingClientRect();u={left:t.left-n,top:t.top-e}}}p===void 0&&(p=c(()=>y.screen.width+`|`+y.screen.height+`|`+t.self+`|`+t.anchor+`|`+y.lang.rtl,q)),t.noFocus||document.activeElement.blur(),D(()=>{q(),t.noFocus||_e()}),k(()=>{y.platform.is.ios&&(h=t.autoClose,b.value.click()),q(),oe(!0),a(`show`,e)},t.transitionDuration)}function xe(e){if(O(),se(),Ce(!0),l!==null&&(e===void 0||!e.qClickOutside)){let t=(e?.type.indexOf(`key`)===0?l.closest(`[tabindex]:not([tabindex^="-"])`):void 0)||l;l=null,E(()=>{t.isConnected&&t.focus()})}k(()=>{se(!0),a(`hide`,e)},t.transitionDuration)}function Se(){l=null}function Ce(e){u=void 0,p!==void 0&&(p(),p=void 0),(e||x.value)&&(I(K),te(),ye(U),ne(Ee)),e||(l=null)}function we(){(N.value!==null||t.scrollTarget!==void 0)&&(ee.value=re(N.value,t.scrollTarget),M(ee.value,q))}function Te(e){h?h=!1:(R(v,e),a(`click`,e))}function K(e){he.value&&!t.noFocus&&!ae(b.value,e.target)&&_e()}function Ee(e){t.noEscDismiss||(a(`escapeKey`),V(e))}function q(){ve({targetEl:b.value,offset:t.offset,anchorEl:N.value,anchorOrigin:ue.value,selfOrigin:de.value,absoluteOffset:u,fit:t.fit,cover:t.cover,maxHeight:t.maxHeight,maxWidth:t.maxWidth})}function De(){return s(d,A.value,()=>x.value?s(`div`,{role:`menu`,...o,ref:b,tabindex:-1,class:[`q-menu q-position-engine scroll`+fe.value,o.class],style:[o.style,j.value],...me.value},w(r.default)):null)}return i(()=>{Ce()}),Object.assign(v,{focus:_e,updatePosition:q}),H}}),we=`You are reviewing code changes on workspace "{{workspace_name}}" in project {{project_name}}.
|
|
2
|
+
|
|
3
|
+
Branch: {{branch_name}} (base: {{source_branch}})
|
|
4
|
+
Base commit: {{base_commit}}
|
|
5
|
+
|
|
6
|
+
If a code-review skill is available in this environment, invoke it to drive this audit. Otherwise follow the manual checklist below.
|
|
7
|
+
|
|
8
|
+
## Scope
|
|
9
|
+
|
|
10
|
+
Review ALL changes — both committed and uncommitted in the working tree:
|
|
11
|
+
- \`git diff {{base_commit}}..HEAD\` — committed changes on this branch
|
|
12
|
+
- \`git status\` and \`git diff\` — uncommitted changes (staged + unstaged)
|
|
13
|
+
|
|
14
|
+
## Diff summary
|
|
15
|
+
{{diff_stats}}
|
|
16
|
+
|
|
17
|
+
## Commits
|
|
18
|
+
{{commits}}
|
|
19
|
+
|
|
20
|
+
## Additional instructions
|
|
21
|
+
{{additional_instructions}}
|
|
22
|
+
|
|
23
|
+
## Output
|
|
24
|
+
|
|
25
|
+
If no review skill is available, structure your reply as:
|
|
26
|
+
1. Summary — what changed and why
|
|
27
|
+
2. Issues — bugs, regressions, security or perf concerns (with file:line)
|
|
28
|
+
3. Suggestions — refactor / improvement opportunities
|
|
29
|
+
4. Tests — coverage gaps
|
|
30
|
+
5. Verdict — ship / fix-then-ship / blocked
|
|
31
|
+
`,Te="Code review gate — BEFORE marking the task done, run whichever code-review skill is configured in this environment. Brief it with: what you just implemented, the task title, and the commit SHA (via `git rev-parse HEAD`). Ask specifically whether the change matches the task scope, whether edge cases are handled, and whether the commit is clean. If no review skill is available, do a manual self-review against the same criteria.",K=`You are preparing this workspace for Kōbō auto-loop mode. This is a GROOMING session only — DO NOT implement anything, DO NOT write or edit code, DO NOT run tests or builds, DO NOT invoke any implementation, planning, or release skill (your environment may have several). Your ONLY job is to curate the Kōbō task list via MCP tools.`,Ee=`QA pass for workspace "{{workspace_name}}" in project {{project_name}}.
|
|
32
|
+
|
|
33
|
+
Branch: {{branch_name}}
|
|
34
|
+
Staging URL: {{staging_url}}
|
|
35
|
+
|
|
36
|
+
If a QA skill is configured in this environment, invoke it on {{staging_url}}. Otherwise, manually exercise the staging URL against the workspace's acceptance criteria and report findings.`,q=`Brainstorm the implementation approach. Explore the codebase to understand the existing structure. Ask clarifying questions if needed. When you have a clear, user-approved plan, save it as a plan file in the project.`,De="You are preparing this workspace for Kōbō auto-loop mode. This is a GROOMING session only — DO NOT implement anything, DO NOT write or edit code, DO NOT run tests or builds, DO NOT invoke `superpowers:executing-plans` or any implementation skill. Your ONLY job is to curate the Kōbō task list via MCP tools.",Oe="You are preparing this workspace for Kōbō auto-loop mode. This is a GROOMING session only — DO NOT implement anything, DO NOT write or edit code, DO NOT run tests or builds, DO NOT invoke `/ship`, `/autoplan`, `/land-and-deploy`, or any implementation skill. Your ONLY job is to curate the Kōbō task list via MCP tools.",ke="You are preparing this workspace for Kōbō auto-loop mode. This is a GROOMING session only — DO NOT implement anything, DO NOT write or edit code, DO NOT run tests or builds, DO NOT invoke `superpowers:executing-plans`, `/ship`, `/autoplan`, `/land-and-deploy`, or any other implementation, planning, or release skill. Your ONLY job is to curate the Kōbō task list via MCP tools.";function Ae(e,t){return e===`custom`?(t??``).trim()||`You are preparing this workspace for Kōbō auto-loop mode. This is a GROOMING session only — DO NOT implement anything, DO NOT write or edit code, DO NOT run tests or builds, DO NOT invoke any implementation, planning, or release skill (your environment may have several). Your ONLY job is to curate the Kōbō task list via MCP tools.`:e===`superpowers+gstack`?ke:e===`gstack`?Oe:De}var je=h({name:`QField`,inheritAttrs:!1,props:{...N,tag:{type:String,default:`label`}},emits:j,setup(){return k(A({tagProp:!0}))}}),J=1e3,Me=[`start`,`center`,`end`,`start-force`,`center-force`,`end-force`],Ne=Array.prototype.filter,Pe=window.getComputedStyle(document.body).overflowAnchor===void 0?p:function(e,t){e!==null&&(e._qOverflowAnimationFrame!==void 0&&cancelAnimationFrame(e._qOverflowAnimationFrame),e._qOverflowAnimationFrame=requestAnimationFrame(()=>{if(e===null)return;e._qOverflowAnimationFrame=void 0;let n=e.children||[];Ne.call(n,e=>e.dataset&&e.dataset.qVsAnchor!==void 0).forEach(e=>{delete e.dataset.qVsAnchor});let r=n[t];r?.dataset&&(r.dataset.qVsAnchor=``)}))};function Y(e,t){return e+t}function Fe(e,t,n,r,i,a,o,s){let c=e===window?document.scrollingElement||document.documentElement:e,l=i?`offsetWidth`:`offsetHeight`,u={scrollStart:0,scrollViewSize:-o-s,scrollMaxSize:0,offsetStart:-o,offsetEnd:-s};if(i?(e===window?(u.scrollStart=window.pageXOffset||window.scrollX||document.body.scrollLeft||0,u.scrollViewSize+=document.documentElement.clientWidth):(u.scrollStart=c.scrollLeft,u.scrollViewSize+=c.clientWidth),u.scrollMaxSize=c.scrollWidth,a&&(u.scrollStart=(me?u.scrollMaxSize-u.scrollViewSize:0)-u.scrollStart)):(e===window?(u.scrollStart=window.pageYOffset||window.scrollY||document.body.scrollTop||0,u.scrollViewSize+=document.documentElement.clientHeight):(u.scrollStart=c.scrollTop,u.scrollViewSize+=c.clientHeight),u.scrollMaxSize=c.scrollHeight),n!==null)for(let e=n.previousElementSibling;e!==null;e=e.previousElementSibling)e.classList.contains(`q-virtual-scroll--skip`)||(u.offsetStart+=e[l]);if(r!==null)for(let e=r.nextElementSibling;e!==null;e=e.nextElementSibling)e.classList.contains(`q-virtual-scroll--skip`)||(u.offsetEnd+=e[l]);if(t!==e){let n=c.getBoundingClientRect(),r=t.getBoundingClientRect();i?(u.offsetStart+=r.left-n.left,u.offsetEnd-=r.width):(u.offsetStart+=r.top-n.top,u.offsetEnd-=r.height),e!==window&&(u.offsetStart+=u.scrollStart),u.offsetEnd+=u.scrollMaxSize-u.offsetStart}return u}function X(e,t,n,r){t===`end`&&(t=(e===window?document.body:e)[n?`scrollWidth`:`scrollHeight`]),e===window?n?(r&&(t=(me?document.body.scrollWidth-document.documentElement.clientWidth:0)-t),window.scrollTo(t,window.pageYOffset||window.scrollY||document.body.scrollTop||0)):window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,t):n?(r&&(t=(me?e.scrollWidth-e.offsetWidth:0)-t),e.scrollLeft=t):e.scrollTop=t}function Z(e,t,n,r){if(n>=r)return 0;let i=t.length,a=Math.floor(n/J),o=Math.floor((r-1)/J)+1,s=e.slice(a,o).reduce(Y,0);return n%J!==0&&(s-=t.slice(a*J,n).reduce(Y,0)),r%J!==0&&r!==i&&(s-=t.slice(r,o*J).reduce(Y,0)),s}var Q={virtualScrollHorizontal:Boolean,onVirtualScroll:Function,virtualScrollSliceSize:{type:[Number,String],default:10},virtualScrollSliceRatioBefore:{type:[Number,String],default:1},virtualScrollSliceRatioAfter:{type:[Number,String],default:1},virtualScrollItemSize:{type:[Number,String],default:24},virtualScrollStickySizeStart:{type:[Number,String],default:0},virtualScrollStickySizeEnd:{type:[Number,String],default:0},tableColspan:[Number,String]};function Ie({virtualScrollLength:r,getVirtualScrollTarget:a,getVirtualScrollEl:d,virtualScrollItemSizeComputed:p}){let{props:m,emit:h,proxy:g}=n(),{$q:_}=g,v,y,b,x=[],S,C=e(0),w=e(0),T=e({}),E=e(null),O=e(null),k=e(null),A=e({from:0,to:0}),j=f(()=>m.tableColspan===void 0?100:m.tableColspan);p===void 0&&(p=f(()=>m.virtualScrollItemSize));let ee=f(()=>p.value+`;`+m.virtualScrollHorizontal);c(f(()=>ee.value+`;`+m.virtualScrollSliceRatioBefore+`;`+m.virtualScrollSliceRatioAfter),()=>{R()}),c(ee,M);function M(){L(y,!0)}function te(e){L(e===void 0?y:e)}function N(e,t){let n=a();if(n==null||n.nodeType===8)return;let i=Fe(n,d(),E.value,O.value,m.virtualScrollHorizontal,_.lang.rtl,m.virtualScrollStickySizeStart,m.virtualScrollStickySizeEnd);b!==i.scrollViewSize&&R(i.scrollViewSize),F(n,i,Math.min(r.value-1,Math.max(0,Number.parseInt(e,10)||0)),0,Me.includes(t)?t:y!==-1&&e>y?`end`:`start`)}function P(){let e=a();if(e==null||e.nodeType===8)return;let t=Fe(e,d(),E.value,O.value,m.virtualScrollHorizontal,_.lang.rtl,m.virtualScrollStickySizeStart,m.virtualScrollStickySizeEnd),n=r.value-1,i=t.scrollMaxSize-t.offsetStart-t.offsetEnd-w.value;if(v===t.scrollStart)return;if(t.scrollMaxSize<=0){F(e,t,0,0);return}b!==t.scrollViewSize&&R(t.scrollViewSize),I(A.value.from);let o=Math.floor(t.scrollMaxSize-Math.max(t.scrollViewSize,t.offsetEnd)-Math.min(S[n],t.scrollViewSize/2));if(o>0&&Math.ceil(t.scrollStart)>=o){F(e,t,n,t.scrollMaxSize-t.offsetEnd-x.reduce(Y,0));return}let s=0,c=t.scrollStart-t.offsetStart,l=c;if(c<=i&&c+t.scrollViewSize>=C.value)c-=C.value,s=A.value.from,l=c;else for(let e=0;c>=x[e]&&s<n;e++)c-=x[e],s+=J;for(;c>0&&s<n;)c-=S[s],c>-t.scrollViewSize?(s++,l=c):l=S[s]+c;F(e,t,s,l)}function F(e,t,n,i,a){let o=typeof a==`string`&&a.includes(`-force`),s=o?a.replace(`-force`,``):a,c=s===void 0?`start`:s,l=Math.max(0,n-T.value[c]),u=l+T.value.total;u>r.value&&(u=r.value,l=Math.max(0,u-T.value.total)),v=t.scrollStart;let d=l!==A.value.from||u!==A.value.to;if(!d&&s===void 0){z(n);return}let{activeElement:f}=document,p=k.value;d&&p!==null&&p!==f&&p.contains(f)&&(p.addEventListener(`focusout`,ne),setTimeout(()=>{p?.removeEventListener(`focusout`,ne)},0)),Pe(p,n-l);let h=s===void 0?0:S.slice(l,n).reduce(Y,0);if(d){let e=u>=A.value.from&&l<=A.value.to?A.value.to:u;A.value={from:l,to:e},C.value=Z(x,S,0,l),w.value=Z(x,S,u,r.value),requestAnimationFrame(()=>{A.value.to!==u&&v===t.scrollStart&&(A.value={from:A.value.from,to:u},w.value=Z(x,S,u,r.value))})}requestAnimationFrame(()=>{if(v!==t.scrollStart)return;d&&I(l);let r=S.slice(l,n).reduce(Y,0),a=r+t.offsetStart+C.value,c=a+S[n],u=a+i;if(s!==void 0){let e=r-h,i=t.scrollStart+e;u=!o&&i<a&&c<i+t.scrollViewSize?i:s===`end`?c-t.scrollViewSize:a-(s===`start`?0:Math.round((t.scrollViewSize-S[n])/2))}v=u,X(e,u,m.virtualScrollHorizontal,_.lang.rtl),z(n)})}function I(e){let t=k.value;if(t){let n=Ne.call(t.children,e=>e.classList&&!e.classList.contains(`q-virtual-scroll--skip`)),r=n.length,i=m.virtualScrollHorizontal?e=>e.getBoundingClientRect().width:e=>e.offsetHeight,a=e,o,s;for(let e=0;e<r;){for(o=i(n[e]),e++;e<r&&n[e].classList.contains(`q-virtual-scroll--with-prev`);)o+=i(n[e]),e++;s=o-S[a],s!==0&&(S[a]+=s,x[Math.floor(a/J)]+=s),a++}}}function ne(){k.value?.focus()}function L(e,t){let n=Number(p.value);(t||!Array.isArray(S))&&(S=[]);let i=S.length;S.length=r.value;for(let e=r.value-1;e>=i;e--)S[e]=n;let a=Math.floor((r.value-1)/J);x=[];for(let e=0;e<=a;e++){let t=0,n=Math.min((e+1)*J,r.value);for(let r=e*J;r<n;r++)t+=S[r];x.push(t)}y=-1,v=void 0,C.value=Z(x,S,0,A.value.from),w.value=Z(x,S,A.value.to,r.value),e>=0?(I(A.value.from),u(()=>{N(e)})):B()}function R(e){if(e===void 0&&typeof window<`u`){let t=a();t!=null&&t.nodeType!==8&&(e=Fe(t,d(),E.value,O.value,m.virtualScrollHorizontal,_.lang.rtl,m.virtualScrollStickySizeStart,m.virtualScrollStickySizeEnd).scrollViewSize)}b=e;let t=Number.parseFloat(m.virtualScrollSliceRatioBefore)||0,n=Number.parseFloat(m.virtualScrollSliceRatioAfter)||0,r=1+t+n,i=e===void 0||e<=0?1:Math.ceil(e/p.value),o=Math.max(1,i,Math.ceil((m.virtualScrollSliceSize>0?m.virtualScrollSliceSize:10)/r));T.value={total:Math.ceil(o*r),start:Math.ceil(o*t),center:Math.ceil(o*(.5+t)),end:Math.ceil(o*(1+t)),view:i}}function re(e,t){let n=m.virtualScrollHorizontal?`width`:`height`,r={[`--q-virtual-scroll-item-`+n]:p.value+`px`};return[e===`tbody`?s(e,{class:`q-virtual-scroll__padding`,key:`before`,ref:E},[s(`tr`,[s(`td`,{style:{[n]:`${C.value}px`,...r},colspan:j.value})])]):s(e,{class:`q-virtual-scroll__padding`,key:`before`,ref:E,style:{[n]:`${C.value}px`,...r}}),s(e,{class:`q-virtual-scroll__content`,key:`content`,ref:k,tabindex:-1},t.flat()),e===`tbody`?s(e,{class:`q-virtual-scroll__padding`,key:`after`,ref:O},[s(`tr`,[s(`td`,{style:{[n]:`${w.value}px`,...r},colspan:j.value})])]):s(e,{class:`q-virtual-scroll__padding`,key:`after`,ref:O,style:{[n]:`${w.value}px`,...r}})]}function z(e){y!==e&&(m.onVirtualScroll!==void 0&&h(`virtualScroll`,{index:e,from:A.value.from,to:A.value.to-1,direction:e<y?`decrease`:`increase`,ref:g}),y=e)}R();let B=D(P,_.platform.is.ios?120:35);l(()=>{R()});let V=!1;return o(()=>{V=!0}),t(()=>{if(!V)return;let e=a();v!==void 0&&e!=null&&e.nodeType!==8?X(e,v,m.virtualScrollHorizontal,_.lang.rtl):N(y)}),i(()=>{B.cancel()}),Object.assign(g,{scrollTo:N,reset:M,refresh:te}),{virtualScrollSliceRange:A,virtualScrollSliceSizeComputed:T,setVirtualScrollSize:R,onVirtualScrollEvt:B,localResetVirtualScroll:L,padVirtualScroll:re,scrollTo:N,reset:M,refresh:te}}var Le=e=>[`add`,`add-unique`,`toggle`].includes(e),Re=".*+?^${}()|[]\\",ze=Object.keys(N);function Be(e,t){if(typeof e==`function`)return e;let n=e===void 0?t:e;return e=>typeof e==`object`&&e&&n in e?e[n]:e}var Ve=h({name:`QSelect`,inheritAttrs:!1,props:{...Q,...M,...N,modelValue:{required:!0},multiple:Boolean,displayValue:[String,Number],displayValueHtml:Boolean,dropdownIcon:String,options:{type:Array,default:()=>[]},optionValue:[Function,String],optionLabel:[Function,String],optionDisable:[Function,String],hideSelected:Boolean,hideDropdownIcon:Boolean,fillInput:Boolean,maxValues:[Number,String],optionsDense:Boolean,optionsDark:{type:Boolean,default:null},optionsSelectedClass:String,optionsHtml:Boolean,optionsCover:Boolean,menuShrink:Boolean,menuAnchor:String,menuSelf:String,menuOffset:Array,popupContentClass:String,popupContentStyle:[String,Array,Object],popupNoRouteDismiss:Boolean,useInput:Boolean,useChips:Boolean,newValueMode:{type:String,validator:Le},mapOptions:Boolean,emitValue:Boolean,disableTabSelection:Boolean,inputDebounce:{type:[Number,String],default:500},inputClass:[Array,String,Object],inputStyle:[Array,String,Object],tabindex:{type:[String,Number],default:0},autocomplete:String,transitionShow:{},transitionHide:{},transitionDuration:{},behavior:{type:String,validator:e=>[`default`,`menu`,`dialog`].includes(e),default:`default`},virtualScrollItemSize:Q.virtualScrollItemSize.type,onNewValue:Function,onFilter:Function},emits:[...j,`add`,`remove`,`inputValue`,`keyup`,`keypress`,`keydown`,`popupShow`,`popupHide`,`filterAbort`],setup(t,{slots:o,emit:l}){let{proxy:d}=n(),{$q:p}=d,h=e(!1),g=e(!1),S=e(-1),C=e(``),w=e(!1),E=e(!1),D=null,j=null,M,N,P,F=null,I,ne,L,R,re=e(null),z=e(null),B=e(null),V=e(null),ie=e(null),ae=O(t),oe=ee(st),H=f(()=>Array.isArray(t.options)?t.options.length:0),{virtualScrollSliceRange:ce,virtualScrollSliceSizeComputed:le,localResetVirtualScroll:fe,padVirtualScroll:pe,onVirtualScrollEvt:me,scrollTo:he,setVirtualScrollSize:ge}=Ie({virtualScrollLength:H,getVirtualScrollTarget:rt,getVirtualScrollEl:nt,virtualScrollItemSizeComputed:f(()=>t.virtualScrollItemSize===void 0?t.optionsDense?24:48:t.virtualScrollItemSize)}),W=A(),G=f(()=>{let e=t.mapOptions&&!t.multiple,n=t.modelValue!==void 0&&(t.modelValue!==null||e)?t.multiple&&Array.isArray(t.modelValue)?t.modelValue:[t.modelValue]:[];if(t.mapOptions&&Array.isArray(t.options)){let r=t.mapOptions&&M!==void 0?M:[],i=n.map(e=>Ye(e,r));return t.modelValue===null&&e?i.filter(e=>e!==null):i}return n}),ve=f(()=>{let e={};return ze.forEach(n=>{let r=t[n];r!==void 0&&(e[n]=r)}),e}),ye=f(()=>t.optionsDark===null?W.isDark.value:t.optionsDark),be=f(()=>te(G.value)),we=f(()=>{let e=`q-field__input q-placeholder col`;return t.hideSelected||G.value.length===0?[e,t.inputClass]:(e+=` q-field__input--padding`,t.inputClass===void 0?e:[e,t.inputClass])}),Te=f(()=>(t.virtualScrollHorizontal?`q-virtual-scroll--horizontal`:``)+(t.popupContentClass?` `+t.popupContentClass:``)),K=f(()=>H.value===0),Ee=f(()=>G.value.map(e=>Z.value(e)).join(`, `)),q=f(()=>t.displayValue===void 0?Ee.value:t.displayValue),De=f(()=>t.optionsHtml?()=>!0:e=>e?.html===!0),Oe=f(()=>t.displayValueHtml||t.displayValue===void 0&&(t.optionsHtml||G.value.some(De.value))),ke=f(()=>W.focused.value?t.tabindex:-1),Ae=f(()=>{let e={tabindex:t.tabindex,role:`combobox`,"aria-label":t.label,"aria-readonly":t.readonly?`true`:`false`,"aria-autocomplete":t.useInput?`list`:`none`,"aria-expanded":h.value?`true`:`false`,"aria-controls":`${W.targetUid.value}_lb`};return S.value>=0&&(e[`aria-activedescendant`]=`${W.targetUid.value}_${S.value}`),e}),J=f(()=>({id:`${W.targetUid.value}_lb`,role:`listbox`,"aria-multiselectable":t.multiple?`true`:`false`})),Me=f(()=>G.value.map((e,t)=>({index:t,opt:e,html:De.value(e),selected:!0,removeAtIndex:Ge,toggleOption:$,tabindex:ke.value}))),Ne=f(()=>{if(H.value===0)return[];let{from:e,to:n}=ce.value;return t.options.slice(e,n).map((n,r)=>{let i=Q.value(n)===!0,a=Xe(n),o=e+r,s={clickable:!0,active:a,activeClass:Fe.value,manualFocus:!0,focused:!1,disable:i,tabindex:-1,dense:t.optionsDense,dark:ye.value,role:`option`,"aria-selected":a?`true`:`false`,id:`${W.targetUid.value}_${o}`,onClick:()=>{$(n)}};return i||(S.value===o&&(s.focused=!0),p.platform.is.desktop&&(s.onMousemove=()=>{h.value&&qe(o)})),{index:o,opt:n,html:De.value(n),label:Z.value(n),selected:s.active,focused:s.focused,toggleOption:$,setOptionIndex:qe,itemProps:s}})}),Pe=f(()=>t.dropdownIcon===void 0?p.iconSet.arrow.dropdown:t.dropdownIcon),Y=f(()=>!t.optionsCover&&!t.outlined&&!t.standout&&!t.borderless&&!t.rounded),Fe=f(()=>t.optionsSelectedClass===void 0?t.color===void 0?``:`text-${t.color}`:t.optionsSelectedClass),X=f(()=>Be(t.optionValue,`value`)),Z=f(()=>Be(t.optionLabel,`label`)),Q=f(()=>Be(t.optionDisable,`disable`)),Ve=f(()=>G.value.map(X.value)),He=f(()=>{let e={onInput:st,onChange:oe,onKeydown:tt,onKeyup:$e,onKeypress:et,onFocus:Ze,onClick(e){N&&b(e)}};return e.onCompositionstart=e.onCompositionupdate=e.onCompositionend=oe,e});c(G,e=>{M=e,t.useInput&&t.fillInput&&!t.multiple&&!W.innerLoading.value&&(!g.value&&!h.value||!be.value)&&(P||Ct(),(g.value||h.value)&&ut(``))},{immediate:!0}),c(()=>t.fillInput,Ct),c(h,wt),c(H,Tt);function Ue(e){return t.emitValue?X.value(e):e}function We(e){if(e!==-1&&e<G.value.length)if(t.multiple){let n=[...t.modelValue];l(`remove`,{index:e,value:n.splice(e,1)[0]}),l(`update:modelValue`,n)}else l(`update:modelValue`,null)}function Ge(e){We(e),W.focus()}function Ke(e,n){let r=Ue(e);if(!t.multiple){t.fillInput&<(Z.value(e),!0,!0),l(`update:modelValue`,r);return}if(G.value.length===0){l(`add`,{index:0,value:r}),l(`update:modelValue`,t.multiple?[r]:r);return}if(n&&Xe(e)||t.maxValues!==void 0&&t.modelValue.length>=t.maxValues)return;let i=[...t.modelValue];l(`add`,{index:i.length,value:r}),i.push(r),l(`update:modelValue`,i)}function $(e,n){if(!W.editable.value||e===void 0||Q.value(e)===!0)return;let r=X.value(e);if(!t.multiple){n||(lt(t.fillInput?Z.value(e):``,!0,!0),St()),z.value?.focus(),(G.value.length===0||!U(X.value(G.value[0]),r))&&l(`update:modelValue`,t.emitValue?r:e);return}if((!N||w.value)&&W.focus(),Ze(),G.value.length===0){let n=t.emitValue?r:e;l(`add`,{index:0,value:n}),l(`update:modelValue`,t.multiple?[n]:n);return}let i=[...t.modelValue],a=Ve.value.findIndex(e=>U(e,r));if(a!==-1)l(`remove`,{index:a,value:i.splice(a,1)[0]});else{if(t.maxValues!==void 0&&i.length>=t.maxValues)return;let n=t.emitValue?r:e;l(`add`,{index:i.length,value:n}),i.push(n)}l(`update:modelValue`,i)}function qe(e){if(!p.platform.is.desktop)return;let t=e!==-1&&e<H.value?e:-1;S.value!==t&&(S.value=t)}function Je(e=1,n){if(h.value){let r=S.value;do r=_e(r+e,-1,H.value-1);while(r!==-1&&r!==S.value&&Q.value(t.options[r])===!0);S.value!==r&&(qe(r),he(r),!n&&t.useInput&&t.fillInput&&ct(r>=0?Z.value(t.options[r]):I,!0))}}function Ye(e,n){let r=t=>U(X.value(t),e);return t.options.find(r)||n.find(r)||e}function Xe(e){let t=X.value(e);return Ve.value.find(e=>U(e,t))!==void 0}function Ze(e){t.useInput&&z.value!==null&&(e===void 0||z.value===e.target&&e.target.value===Ee.value)&&z.value.select()}function Qe(e){y(e,27)&&h.value&&(b(e),St(),Ct()),l(`keyup`,e)}function $e(e){let{value:n}=e.target;if(e.keyCode!==void 0){Qe(e);return}if(e.target.value=``,D!==null&&(clearTimeout(D),D=null),j!==null&&(clearTimeout(j),j=null),Ct(),typeof n==`string`&&n.length!==0){let e=n.toLocaleLowerCase(),r=n=>{let r=t.options.find(t=>String(n.value(t)).toLocaleLowerCase()===e);return r===void 0?!1:(G.value.includes(r)?St():$(r),!0)},i=e=>{!r(X)&&!e&&!r(Z)&&ut(n,!0,()=>i(!0))};i()}else W.clearValue(e)}function et(e){l(`keypress`,e)}function tt(e){if(l(`keydown`,e),_(e))return;let n=C.value.length!==0&&(t.newValueMode!==void 0||t.onNewValue!==void 0),r=!e.shiftKey&&!t.disableTabSelection&&!t.multiple&&(S.value!==-1||n);if(e.keyCode===27){x(e);return}if(e.keyCode===9&&!r){bt();return}if(e.target===void 0||e.target.id!==W.targetUid.value||!W.editable.value)return;if(e.keyCode===40&&!W.innerLoading.value&&!h.value){m(e),xt();return}if(e.keyCode===8&&(t.useChips||t.clearable)&&!t.hideSelected&&C.value.length===0){t.multiple&&Array.isArray(t.modelValue)?We(t.modelValue.length-1):!t.multiple&&t.modelValue!==null&&l(`update:modelValue`,null);return}(e.keyCode===35||e.keyCode===36)&&(typeof C.value!=`string`||C.value.length===0)&&(m(e),S.value=-1,Je(e.keyCode===36?1:-1,t.multiple)),(e.keyCode===33||e.keyCode===34)&&le.value!==void 0&&(m(e),S.value=Math.max(-1,Math.min(H.value,S.value+(e.keyCode===33?-1:1)*le.value.view)),Je(e.keyCode===33?1:-1,t.multiple)),(e.keyCode===38||e.keyCode===40)&&(m(e),Je(e.keyCode===38?-1:1,t.multiple));let i=H.value;if((L===void 0||R<Date.now())&&(L=``),i>0&&!t.useInput&&e.key!==void 0&&e.key.length===1&&!e.altKey&&!e.ctrlKey&&!e.metaKey&&(e.keyCode!==32||L.length!==0)){h.value||xt(e);let n=e.key.toLocaleLowerCase(),r=L.length===1&&L[0]===n;R=Date.now()+1500,r||(m(e),L+=n);let a=RegExp(`^`+[...L].map(e=>Re.includes(e)?`\\`+e:e).join(`.*`),`i`),o=S.value;if(r||o<0||!a.test(Z.value(t.options[o])))do o=_e(o+1,-1,i-1);while(o!==S.value&&(Q.value(t.options[o])===!0||!a.test(Z.value(t.options[o]))));S.value!==o&&u(()=>{qe(o),he(o),o>=0&&t.useInput&&t.fillInput&&ct(Z.value(t.options[o]),!0)});return}if(!(e.keyCode!==13&&(e.keyCode!==32||t.useInput||L!==``)&&(e.keyCode!==9||!r))){if(e.keyCode!==9&&m(e),S.value!==-1&&S.value<i){$(t.options[S.value]);return}if(n){let e=(e,n)=>{if(n){if(!Le(n))return}else n=t.newValueMode;lt(``,!t.multiple,!0),e!=null&&((n===`toggle`?$:Ke)(e,n===`add-unique`),t.multiple||(z.value?.focus(),St()))};if(t.onNewValue===void 0?e(C.value):l(`newValue`,C.value,e),!t.multiple)return}h.value?bt():W.innerLoading.value||xt()}}function nt(){return N?ie.value:B.value!==null&&B.value.contentEl!==null?B.value.contentEl:void 0}function rt(){return nt()}function it(){return t.hideSelected?[]:o[`selected-item`]===void 0?o.selected===void 0?t.useChips?Me.value.map((e,n)=>s(xe,{key:`option-`+n,removable:W.editable.value&&Q.value(e.opt)!==!0,dense:!0,textColor:t.color,tabindex:ke.value,onRemove(){e.removeAtIndex(n)}},()=>s(`span`,{class:`ellipsis`,[e.html?`innerHTML`:`textContent`]:Z.value(e.opt)}))):[s(`span`,{class:`ellipsis`,[Oe.value?`innerHTML`:`textContent`]:q.value})]:[o.selected()].flat():Me.value.map(e=>o[`selected-item`](e))}function at(){if(K.value)return o[`no-option`]===void 0?void 0:o[`no-option`]({inputValue:C.value});let e=o.option===void 0?e=>s(de,{key:e.index,...e.itemProps},()=>s(ue,()=>s(Se,()=>s(`span`,{[e.html?`innerHTML`:`textContent`]:e.label})))):o.option,t=pe(`div`,Ne.value.map(e));return o[`before-options`]!==void 0&&(t=[o[`before-options`](),...t].flat()),v(o[`after-options`],t)}function ot(e,n){let r=n?{...Ae.value,...W.splitAttrs.attributes.value}:void 0,i={ref:n?z:void 0,key:`i_t`,class:we.value,style:t.inputStyle,value:C.value===void 0?``:C.value,type:`search`,...r,id:n?W.targetUid.value:void 0,maxlength:t.maxlength,autocomplete:t.autocomplete,"data-autofocus":e===!0||t.autofocus||void 0,disabled:t.disable,readonly:t.readonly,...He.value};return!e&&N&&(Array.isArray(i.class)?i.class=[...i.class,`no-pointer-events`]:i.class+=` no-pointer-events`),s(`input`,i)}function st(e){D!==null&&(clearTimeout(D),D=null),j!==null&&(clearTimeout(j),j=null),!e?.target?.qComposing&&(ct(e.target.value||``),P=!0,I=C.value,!W.focused.value&&(!N||w.value)&&W.focus(),t.onFilter!==void 0&&(D=setTimeout(()=>{D=null,ut(C.value)},t.inputDebounce)))}function ct(e,n){C.value!==e&&(C.value=e,n||t.inputDebounce===0||t.inputDebounce===`0`?l(`inputValue`,e):j=setTimeout(()=>{j=null,l(`inputValue`,e)},t.inputDebounce))}function lt(e,n,r){P=r!==!0,t.useInput&&(ct(e,!0),(n||P)&&(I=e),n||ut(e))}function ut(e,n,r){if(t.onFilter===void 0||!n&&!W.focused.value)return;W.innerLoading.value?l(`filterAbort`):(W.innerLoading.value=!0,E.value=!0),e!==``&&!t.multiple&&G.value.length!==0&&!P&&e===Z.value(G.value[0])&&(e=``);let i=setTimeout(()=>{h.value&&=!1},10);F!==null&&clearTimeout(F),F=i,l(`filter`,e,(e,t)=>{(n||W.focused.value)&&F===i&&(clearTimeout(F),typeof e==`function`&&e(),E.value=!1,u(()=>{W.innerLoading.value=!1,W.editable.value&&(n?h.value&&St():h.value?wt(!0):h.value=!0),typeof t==`function`&&u(()=>{t(d)}),typeof r==`function`&&u(()=>{r(d)})}))},()=>{W.focused.value&&F===i&&(clearTimeout(F),W.innerLoading.value=!1,E.value=!1),h.value&&=!1})}function dt(){return s(Ce,{ref:B,class:Te.value,style:t.popupContentStyle,modelValue:h.value,fit:!t.menuShrink,cover:t.optionsCover&&!K.value&&!t.useInput,anchor:t.menuAnchor,self:t.menuSelf,offset:t.menuOffset,dark:ye.value,noParentEvent:!0,noRefocus:!0,noFocus:!0,noRouteDismiss:t.popupNoRouteDismiss,square:Y.value,transitionShow:t.transitionShow,transitionHide:t.transitionHide,transitionDuration:t.transitionDuration,separateClosePopup:!0,...J.value,onScrollPassive:me,onBeforeShow:Dt,onBeforeHide:ft,onShow:pt},at)}function ft(e){Ot(e),bt()}function pt(){ge()}function mt(e){b(e),z.value?.focus(),w.value=!0,window.scrollTo(window.pageXOffset||window.scrollX||document.body.scrollLeft||0,0)}function ht(e){b(e),u(()=>{w.value=!1})}function gt(){let e=[s(je,{class:`col-auto ${W.fieldClass.value}`,...ve.value,for:W.targetUid.value,dark:ye.value,square:!0,loading:E.value,itemAligned:!1,filled:!0,stackLabel:C.value.length!==0,...W.splitAttrs.listeners.value,onFocus:mt,onBlur:ht},{...o,rawControl:()=>W.getControl(!0),before:void 0,after:void 0})];return h.value&&e.push(s(`div`,{ref:ie,class:Te.value+` scroll`,style:t.popupContentStyle,...J.value,onClick:x,onScrollPassive:me},at())),s(se,{ref:V,modelValue:g.value,position:t.useInput?`top`:void 0,transitionShow:ne,transitionHide:t.transitionHide,transitionDuration:t.transitionDuration,noRouteDismiss:t.popupNoRouteDismiss,onBeforeShow:Dt,onBeforeHide:_t,onHide:vt,onShow:yt},()=>s(`div`,{class:`q-select__dialog`+(ye.value?` q-select__dialog--dark q-dark`:``)+(w.value?` q-select__dialog--focused`:``)},e))}function _t(e){Ot(e),V.value!==null&&V.value.__updateRefocusTarget(W.rootRef.value.querySelector(`.q-field__native > [tabindex]:last-child`)),W.focused.value=!1}function vt(e){St(),W.focused.value||l(`blur`,e),Ct()}function yt(){let e=document.activeElement;(e===null||e.id!==W.targetUid.value)&&z.value!==null&&z.value!==e&&z.value.focus(),ge()}function bt(){g.value||(S.value=-1,h.value&&=!1,W.focused.value||(F!==null&&(clearTimeout(F),F=null),W.innerLoading.value&&(l(`filterAbort`),W.innerLoading.value=!1,E.value=!1)))}function xt(e){W.editable.value&&(N?(W.onControlFocusin(e),g.value=!0,u(()=>{W.focus()})):W.focus(),t.onFilter===void 0?(!K.value||o[`no-option`]!==void 0)&&(h.value=!0):ut(C.value))}function St(){g.value=!1,bt()}function Ct(){t.useInput&<(!t.multiple&&t.fillInput&&G.value.length!==0&&Z.value(G.value[0])||``,!0,!0)}function wt(e){let n=-1;if(e){if(G.value.length!==0){let e=X.value(G.value[0]);n=t.options.findIndex(t=>U(X.value(t),e))}fe(n)}qe(n)}function Tt(e,t){h.value&&!W.innerLoading.value&&(fe(-1,!0),u(()=>{h.value&&!W.innerLoading.value&&(e>t?fe():wt(!0))}))}function Et(){g.value||B.value?.updatePosition()}function Dt(e){e!==void 0&&b(e),l(`popupShow`,e),W.hasPopupOpen=!0,W.onControlFocusin(e)}function Ot(e){e!==void 0&&b(e),l(`popupHide`,e),W.hasPopupOpen=!1,W.onControlFocusout(e)}function kt(){N=!p.platform.is.mobile&&t.behavior!==`dialog`?!1:t.behavior!==`menu`&&(t.useInput?o[`no-option`]!==void 0||t.onFilter!==void 0||!K.value:!0),ne=p.platform.is.ios&&N&&t.useInput?`fade`:t.transitionShow}return a(kt),r(Et),kt(),i(()=>{D!==null&&clearTimeout(D),j!==null&&clearTimeout(j)}),Object.assign(d,{showPopup:xt,hidePopup:St,removeAtIndex:We,add:Ke,toggleOption:$,getOptionIndex:()=>S.value,setOptionIndex:qe,moveOptionSelection:Je,filter:ut,updateMenuPosition:Et,updateInputValue:lt,isOptionSelected:Xe,getEmittingOptionValue:Ue,isOptionDisabled:(...e)=>Q.value(...e)===!0,getOptionValue:(...e)=>X.value(...e),getOptionLabel:(...e)=>Z.value(...e)}),Object.assign(W,{innerValue:G,fieldClass:f(()=>`q-select q-field--auto-height q-select--with${t.useInput?``:`out`}-input q-select--with${t.useChips?``:`out`}-chips q-select--${t.multiple?`multiple`:`single`}`),inputRef:re,targetRef:z,hasValue:be,showPopup:xt,floatingLabel:f(()=>!t.hideSelected&&be.value||typeof C.value==`number`||C.value.length!==0||te(t.displayValue)),getControlChild:()=>{if(W.editable.value&&(g.value||!K.value||o[`no-option`]!==void 0))return N?gt():dt();W.hasPopupOpen&&=!1},controlEvents:{onFocusin(e){W.onControlFocusin(e)},onFocusout(e){W.onControlFocusout(e,()=>{Ct(),bt()})},onClick(e){if(x(e),!N&&h.value){bt(),z.value?.focus();return}xt(e)}},getControl:e=>{let n=it(),r=e===!0||!g.value||!N;if(t.useInput)n.push(ot(e,r));else if(W.editable.value){let i=r?Ae.value:void 0;n.push(s(`input`,{ref:r?z:void 0,key:`d_t`,class:`q-select__focus-target`,id:r?W.targetUid.value:void 0,value:q.value,readonly:!0,"data-autofocus":e===!0||t.autofocus||void 0,...i,onKeydown:tt,onKeyup:Qe,onKeypress:et})),r&&typeof t.autocomplete==`string`&&t.autocomplete.length!==0&&n.push(s(`input`,{class:`q-select__autocomplete-input`,autocomplete:t.autocomplete,tabindex:-1,onKeyup:$e}))}if(ae.value!==void 0&&!t.disable&&Ve.value.length!==0){let e=Ve.value.map(e=>s(`option`,{value:e,selected:!0}));n.push(s(`select`,{class:`hidden`,name:ae.value,multiple:t.multiple},e))}return s(`div`,{class:`q-field__native row items-center`,...t.useInput||!r?void 0:W.splitAttrs.attributes.value,...W.splitAttrs.listeners.value},n)},getInnerAppend:()=>!t.loading&&!E.value&&!t.hideDropdownIcon?[s(T,{class:`q-select__dropdown-icon`+(h.value?` rotate-180`:``),name:Pe.value})]:null}),k(W)}});export{Ee as a,Ce as c,q as i,Se as l,K as n,we as o,Te as r,Ae as s,Ve as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{$ as e,C as t,F as n,M as r,T as i,U as a,k as o,n as s,p as c}from"./vue.runtime.esm-bundler-JZnIeD9D.js";import{C as l,E as u,M as d,N as f,b as p,k as m,s as h,w as g}from"./QIcon-C6E-oEjI.js";import{d as _,f as v,n as y}from"./QSeparator-DWTCQxsa.js";import{X as b,Z as x,_t as S,dt as C,et as ee,ft as te,gt as w,ht as T,mt as ne,pt as E,rt as D,st as re,tt as ie,vt as ae}from"./index-CC1iOXc-.js";var O=f({name:`QSlideTransition`,props:{appear:Boolean,duration:{type:Number,default:300}},emits:[`show`,`hide`],setup(e,{slots:t,emit:n}){let a=!1,o,c,l=null,u=null,d,f;function p(){o?.(),o=null,a=!1,l!==null&&(clearTimeout(l),l=null),u!==null&&(clearTimeout(u),u=null),c?.removeEventListener(`transitionend`,d),d=null}function m(t,n,r){n!==void 0&&(t.style.height=`${n}px`),t.style.transition=`height ${e.duration}ms cubic-bezier(.25, .8, .50, 1)`,a=!0,o=r}function h(e,t){e.style.overflowY=null,e.style.height=null,e.style.transition=null,p(),t!==f&&n(t)}function g(t,n){let r=0;c=t,a?(p(),r=t.offsetHeight===t.scrollHeight?0:void 0):(f=`hide`,t.style.overflowY=`hidden`),m(t,r,n),l=setTimeout(()=>{l=null,t.style.height=`${t.scrollHeight}px`,d=e=>{u=null,(Object(e)!==e||e.target===t)&&h(t,`show`)},t.addEventListener(`transitionend`,d),u=setTimeout(d,e.duration*1.1)},100)}function _(t,n){let r;c=t,a?p():(f=`show`,t.style.overflowY=`hidden`,r=t.scrollHeight),m(t,r,n),l=setTimeout(()=>{l=null,t.style.height=0,d=e=>{u=null,(Object(e)!==e||e.target===t)&&h(t,`hide`)},t.addEventListener(`transitionend`,d),u=setTimeout(d,e.duration*1.1)},100)}return r(()=>{a&&p()}),()=>i(s,{css:!1,appear:e.appear,onEnter:g,onLeave:_},t.default)}});function k(){if(window.getSelection!==void 0){let e=window.getSelection();e.empty===void 0?e.removeAllRanges!==void 0&&(e.removeAllRanges(),_.is.mobile||e.addRange(document.createRange())):e.empty()}else document.selection!==void 0&&document.selection.empty()}function oe(e,t,n){return n<=t?t:Math.min(n,Math.max(t,e))}function se(e,t,n){if(n<=t)return t;let r=n-t+1,i=t+(e-t)%r;return i<t&&(i=r+i),i===0?0:i}var A=!1;{let e=document.createElement(`div`);e.setAttribute(`dir`,`rtl`),Object.assign(e.style,{width:`1px`,height:`1px`,overflow:`auto`});let t=document.createElement(`div`);Object.assign(t.style,{width:`1000px`,height:`1px`}),document.body.append(e),e.append(t),e.scrollLeft=-1e3,A=e.scrollLeft>=0,e.remove()}var j={target:{type:[Boolean,String,Element],default:!0},noParentEvent:Boolean},M={...j,contextMenu:Boolean};function N({showing:i,avoidEmit:s,configureAnchorEl:c}){let{props:u,proxy:d,emit:f}=t(),h=e(null),_=null;function v(e){return h.value===null?!1:e===void 0||e.touches===void 0||e.touches.length<=1}let y={};c===void 0&&(Object.assign(y,{hide(e){d.hide(e)},toggle(e){d.toggle(e),e.qAnchorHandled=!0},toggleKey(e){p(e,13)&&y.toggle(e)},contextClick(e){d.hide(e),m(e),o(()=>{d.show(e),e.qAnchorHandled=!0})},prevent:m,mobileTouch(e){if(y.mobileCleanup(e),!v(e))return;d.hide(e),h.value.classList.add(`non-selectable`);let t=e.target;l(y,`anchor`,[[t,`touchmove`,`mobileCleanup`,`passive`],[t,`touchend`,`mobileCleanup`,`passive`],[t,`touchcancel`,`mobileCleanup`,`passive`],[h.value,`contextmenu`,`prevent`,`notPassive`]]),_=setTimeout(()=>{_=null,d.show(e),e.qAnchorHandled=!0},300)},mobileCleanup(e){h.value.classList.remove(`non-selectable`),_!==null&&(clearTimeout(_),_=null),i.value&&e!==void 0&&k()}}),c=function(e=u.contextMenu){u.noParentEvent||h.value===null||l(y,`anchor`,e?d.$q.platform.is.mobile?[[h.value,`touchstart`,`mobileTouch`,`passive`]]:[[h.value,`mousedown`,`hide`,`passive`],[h.value,`contextmenu`,`contextClick`,`notPassive`]]:[[h.value,`click`,`toggle`,`passive`],[h.value,`keyup`,`toggleKey`,`passive`]])});function b(){g(y,`anchor`)}function x(e){for(h.value=e;h.value.classList.contains(`q-anchor--skip`);)h.value=h.value.parentNode;c()}function S(){if(u.target===!1||u.target===``||d.$el.parentNode===null)h.value=null;else if(u.target===!0)x(d.$el.parentNode);else{let e=u.target;if(typeof u.target==`string`)try{e=document.querySelector(u.target)}catch{e=void 0}e==null?(h.value=null,console.error(`Anchor: target "${u.target}" not found`)):(h.value=e.$el||e,c())}}return a(()=>u.contextMenu,e=>{h.value!==null&&(b(),c(e))}),a(()=>u.target,()=>{h.value!==null&&b(),S()}),a(()=>u.noParentEvent,e=>{h.value!==null&&(e?b():c())}),n(()=>{S(),!s&&u.modelValue&&h.value===null&&f(`update:modelValue`,!1)}),r(()=>{_!==null&&clearTimeout(_),b()}),{anchorEl:h,canShow:v,anchorEvents:y}}function ce(t,n){let i=e(null),o;function s(e,t){let n=`${t===void 0?`remove`:`add`}EventListener`,r=t===void 0?o:t;e!==window&&e[n](`scroll`,r,u.passive),window[n](`scroll`,r,u.passive),o=t}function c(){i.value!==null&&(s(i.value),i.value=null)}return r(a(()=>t.noParentEvent,()=>{i.value!==null&&(c(),n())})),{localScrollTarget:i,unconfigureScrollTarget:c,changeScrollEvent:s}}var P=null,{notPassiveCapture:F}=u,I=[];function L(e){P!==null&&(clearTimeout(P),P=null);let t=e.target;if(t===void 0||t.nodeType===8||t.classList.contains(`no-pointer-events`))return;let n=null,r=!1;for(let e=C.length-1;e>=0;e--){let t=C[e].$,i=t.type.name;if(i!==`QTooltip`){if(i===`QDialog`){if(t.props.seamless!==!0){if(r===!1)return;n=new Set(C.slice(e+1).map(e=>e.contentEl));break}continue}r=!0}}for(let r=I.length-1;r>=0;r--){let i=I[r];if(n!==null&&!n.has(i.innerRef.value))return;if((i.anchorEl.value===null||!i.anchorEl.value.contains(t))&&(t===document.body||i.innerRef.value!==null&&!i.innerRef.value.contains(t)))e.qClickOutside=!0,i.onClickOutside(e);else return}}function le(e){I.push(e),I.length===1&&(document.addEventListener(`mousedown`,L,F),document.addEventListener(`touchstart`,L,F))}function R(e){let t=I.indexOf(e);t!==-1&&(I.splice(t,1),I.length===0&&(P!==null&&(clearTimeout(P),P=null),document.removeEventListener(`mousedown`,L,F),document.removeEventListener(`touchstart`,L,F)))}var z,B,V=[`top`,`center`,`bottom`],ue=[`left`,`middle`,`right`,`start`,`end`];function H(e){let t=e.split(` `);return t.length===2?V.includes(t[0])?ue.includes(t[1])?!0:(console.error(`Anchor/Self position must end with one of left/middle/right/start/end`),!1):(console.error(`Anchor/Self position must start with one of top/center/bottom`),!1):!1}function U(e){return e?!(e.length!==2||typeof e[0]!=`number`||typeof e[1]!=`number`):!0}var W={"start#ltr":`left`,"start#rtl":`right`,"end#ltr":`right`,"end#rtl":`left`};[`left`,`middle`,`right`].forEach(e=>{W[`${e}#ltr`]=e,W[`${e}#rtl`]=e});function G(e,t){let n=e.split(` `);return{vertical:n[0],horizontal:W[`${n[1]}#${t?`rtl`:`ltr`}`]}}function K(e,t){let{top:n,left:r,right:i,bottom:a,width:o,height:s}=e.getBoundingClientRect();return t!==void 0&&(n-=t[1],r-=t[0],a+=t[1],i+=t[0],o+=t[0],s+=t[1]),{top:n,bottom:a,height:s,left:r,right:i,width:o,middle:r+(i-r)/2,center:n+(a-n)/2}}function q(e,t,n){let{top:r,left:i}=e.getBoundingClientRect();return r+=t.top,i+=t.left,n!==void 0&&(r+=n[1],i+=n[0]),{top:r,bottom:r+1,height:1,left:i,right:i+1,width:1,middle:i,center:r}}function de(e,t){return{top:0,center:t/2,bottom:t,left:0,middle:e/2,right:e}}function J(e,t,n,r){return{top:e[n.vertical]-t[r.vertical],left:e[n.horizontal]-t[r.horizontal]}}function Y(e,t=0){if(e.targetEl===null||e.anchorEl===null||t>5)return;if(e.targetEl.offsetHeight===0||e.targetEl.offsetWidth===0){setTimeout(()=>{Y(e,t+1)},10);return}let{targetEl:n,offset:r,anchorEl:i,anchorOrigin:a,selfOrigin:o,absoluteOffset:s,fit:c,cover:l,maxHeight:u,maxWidth:d}=e;if(v.is.ios&&window.visualViewport!==void 0){let e=document.body.style,{offsetLeft:t,offsetTop:n}=window.visualViewport;t!==z&&(e.setProperty(`--q-pe-left`,t+`px`),z=t),n!==B&&(e.setProperty(`--q-pe-top`,n+`px`),B=n)}let{scrollLeft:f,scrollTop:p}=n,m=s===void 0?K(i,l?[0,0]:r):q(i,s,r);Object.assign(n.style,{top:0,left:0,minWidth:null,minHeight:null,maxWidth:d,maxHeight:u,visibility:`visible`});let{offsetWidth:h,offsetHeight:g}=n,{elWidth:_,elHeight:y}=c||l?{elWidth:Math.max(m.width,h),elHeight:l?Math.max(m.height,g):g}:{elWidth:h,elHeight:g},b={maxWidth:d,maxHeight:u};(c||l)&&(b.minWidth=m.width+`px`,l&&(b.minHeight=m.height+`px`)),Object.assign(n.style,b);let x=de(_,y),S=J(m,x,a,o);if(s===void 0||r===void 0)X(S,m,x,a,o);else{let{top:e,left:t}=S;X(S,m,x,a,o);let n=!1;if(S.top!==e){n=!0;let e=2*r[1];m.center=m.top-=e,m.bottom-=e+2}if(S.left!==t){n=!0;let e=2*r[0];m.middle=m.left-=e,m.right-=e+2}n&&(S=J(m,x,a,o),X(S,m,x,a,o))}b={top:S.top+`px`,left:S.left+`px`},S.maxHeight!==void 0&&(b.maxHeight=S.maxHeight+`px`,m.height>S.maxHeight&&(b.minHeight=b.maxHeight)),S.maxWidth!==void 0&&(b.maxWidth=S.maxWidth+`px`,m.width>S.maxWidth&&(b.minWidth=b.maxWidth)),Object.assign(n.style,b),n.scrollTop!==p&&(n.scrollTop=p),n.scrollLeft!==f&&(n.scrollLeft=f)}function X(e,t,n,r,i){let a=n.bottom,o=n.right,s=ie(),c=window.innerHeight-s,l=document.body.clientWidth;if(e.top<0||e.top+a>c)if(i.vertical===`center`)e.top=t[r.vertical]>c/2?Math.max(0,c-a):0,e.maxHeight=Math.min(a,c);else if(t[r.vertical]>c/2){let n=Math.min(c,r.vertical===`center`?t.center:r.vertical===i.vertical?t.bottom:t.top);e.maxHeight=Math.min(a,n),e.top=Math.max(0,n-a)}else e.top=Math.max(0,r.vertical===`center`?t.center:r.vertical===i.vertical?t.top:t.bottom),e.maxHeight=Math.min(a,c-e.top);if(e.left<0||e.left+o>l)if(e.maxWidth=Math.min(o,l),i.horizontal===`middle`)e.left=t[r.horizontal]>l/2?Math.max(0,l-o):0;else if(t[r.horizontal]>l/2){let n=Math.min(l,r.horizontal===`middle`?t.middle:r.horizontal===i.horizontal?t.right:t.left);e.maxWidth=Math.min(o,n),e.left=Math.max(0,n-e.maxWidth)}else e.left=Math.max(0,r.horizontal===`middle`?t.middle:r.horizontal===i.horizontal?t.left:t.right),e.maxWidth=Math.min(o,l-e.left)}var fe=0,Z=f({name:`QTooltip`,inheritAttrs:!1,props:{...j,...w,...E,maxHeight:{type:String,default:null},maxWidth:{type:String,default:null},transitionShow:{...E.transitionShow,default:`jump-down`},transitionHide:{...E.transitionHide,default:`jump-up`},anchor:{type:String,default:`bottom middle`,validator:H},self:{type:String,default:`top middle`,validator:H},offset:{type:Array,default:()=>[14,14],validator:U},scrollTarget:D,delay:{type:Number,default:0},hideDelay:{type:Number,default:0},persistent:Boolean},emits:[...T],setup(n,{slots:o,emit:u,attrs:f}){let p,m,_,v=!1,C,w=t(),{proxy:{$q:T}}=w,E=e(null),D=e(!1),ie=y(),O=c(()=>f.id||ie.value),oe=c(()=>G(n.anchor,T.lang.rtl)),se=c(()=>G(n.self,T.lang.rtl)),A=c(()=>!n.persistent),{registerTick:j,removeTick:M}=S(),{registerTimeout:P}=ae(),{transitionProps:F,transitionStyle:I}=te(n),{localScrollTarget:L,changeScrollEvent:z,unconfigureScrollTarget:B}=ce(n,be),{anchorEl:V,canShow:ue,anchorEvents:H}=N({showing:D,configureAnchorEl:_e}),{show:U,hide:W}=ne({showing:D,canShow:ue,handleShow:J,handleHide:X,hideOnRouteChange:A,processOnMount:!0});Object.assign(H,{delayShow:pe,delayHide:me,onFocusin:he});let{showPortal:K,hidePortal:q,renderPortal:de}=re(w,E,Se,`tooltip`);if(T.platform.is.mobile){let e={anchorEl:V,innerRef:E,onClickOutside(e){return W(e),e.target.classList.contains(`q-dialog__backdrop`)&&d(e),!0}};a(c(()=>n.modelValue===null&&!n.persistent&&D.value),t=>{(t?le:R)(e)}),r(()=>{R(e)})}else a(()=>(n.modelValue===null||n[`onUpdate:modelValue`])&&D.value===!0&&n.persistent!==!0,e=>{(e===!0?b:x)(ge)});function J(e){K(),ve(),j(()=>{if(m?.disconnect(),E.value===null){m=void 0;return}m=new MutationObserver(()=>Q()),m.observe(E.value,{attributes:!1,childList:!0,characterData:!0,subtree:!0}),Q(),be()}),p===void 0&&(p=a(()=>T.screen.width+`|`+T.screen.height+`|`+n.self+`|`+n.anchor+`|`+T.lang.rtl,Q)),P(()=>{K(!0),u(`show`,e)},n.transitionDuration)}function X(e){M(),q(),Z(),P(()=>{q(!0),u(`hide`,e)},n.transitionDuration)}function Z(){m!==void 0&&(m.disconnect(),m=void 0),p!==void 0&&(p(),p=void 0),B(),x(ge),g(H,`tooltipTemp`),ye(),$(!1)}function Q(){Y({targetEl:E.value,offset:n.offset,anchorEl:V.value,anchorOrigin:oe.value,selfOrigin:se.value,maxHeight:n.maxHeight,maxWidth:n.maxWidth})}function pe(e){if(T.platform.is.mobile){_!==void 0&&(clearTimeout(_),_=void 0),k(),$(!0);let e=V.value;l(H,`tooltipTemp`,[`touchmove`,`touchcancel`,`touchend`,`click`].map(t=>[e,t,`delayHide`,`passiveCapture`]))}P(()=>{U(e)},n.delay)}function me(e){T.platform.is.mobile&&(g(H,`tooltipTemp`),k(),_=setTimeout(()=>{_=void 0,$(!1)},10)),P(()=>{W(e)},n.hideDelay)}function he(e){let t=e.target;if(t){try{if(t.matches(`:focus-visible`)===!1)return}catch{}pe(e)}}function ge(e){W(e)}function _e(){n.noParentEvent||V.value===null||l(H,`anchor`,T.platform.is.mobile?[[V.value,`touchstart`,`delayShow`,`passive`]]:[[V.value,`mouseenter`,`delayShow`,`passive`],[V.value,`mouseleave`,`delayHide`,`passive`],[V.value,`focusin`,`onFocusin`,`passive`],[V.value,`focusout`,`delayHide`,`passive`]])}function $(e){v!==e&&(v=e,fe+=e?1:-1,document.body.classList.toggle(`non-selectable`,fe>0),!e&&_!==void 0&&(clearTimeout(_),_=void 0))}function ve(){let e=V.value,t=O.value;if(e===null||t===void 0)return;let n=(e.getAttribute(`aria-describedby`)||``).split(/\s+/).filter(Boolean);C={el:e,id:t,added:!n.includes(t)},C.added&&(n.push(t),e.setAttribute(`aria-describedby`,n.join(` `)))}function ye(){if(C?.added===!0){let{el:e,id:t}=C,n=(e.getAttribute(`aria-describedby`)||``).split(/\s+/).filter(e=>e!==``&&e!==t);n.length===0?e.removeAttribute(`aria-describedby`):e.setAttribute(`aria-describedby`,n.join(` `))}C=void 0}function be(){if(V.value!==null||n.scrollTarget!==void 0){L.value=ee(V.value,n.scrollTarget);let e=n.noParentEvent?Q:W;z(L.value,e)}}function xe(){return D.value?i(`div`,{...f,id:O.value,ref:E,class:[`q-tooltip q-tooltip--style q-position-engine no-pointer-events`,f.class],style:[f.style,I.value],role:`tooltip`},h(o.default)):null}function Se(){return i(s,F.value,xe)}return r(Z),Object.assign(w.proxy,{updatePosition:Q}),de}});export{H as a,ce as c,A as d,oe as f,O as h,U as i,N as l,k as m,G as n,le as o,se as p,Y as r,R as s,Z as t,M as u};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$ as e,B as t,R as n,S as r,U as i,W as a,_ as o,b as s,c,ct as l,g as u,h as d,it as f,m as p}from"./vue.runtime.esm-bundler-JZnIeD9D.js";import{t as m}from"./QIcon-C6E-oEjI.js";import{a as h,t as g}from"./QSeparator-DWTCQxsa.js";import{t as _}from"./QInput-BF8x4RTv.js";import{
|
|
1
|
+
import{$ as e,B as t,R as n,S as r,U as i,W as a,_ as o,b as s,c,ct as l,g as u,h as d,it as f,m as p}from"./vue.runtime.esm-bundler-JZnIeD9D.js";import{t as m}from"./QIcon-C6E-oEjI.js";import{a as h,t as g}from"./QSeparator-DWTCQxsa.js";import{t as _}from"./QInput-BF8x4RTv.js";import{K as v,n as y,s as b}from"./index-CC1iOXc-.js";import{t as x}from"./_plugin-vue_export-helper-BDNMzG2s.js";import{t as S}from"./QBadge-DV5kn4mL.js";import{t as C}from"./QSpace-ezNrZkuj.js";import{t as w}from"./formatters-EQwGVQQS.js";import{t as T}from"./QPage-D3rjwA1l.js";var E=h(`search`,{state:()=>({query:``,includeArchived:!1,results:[],loading:!1,error:``}),actions:{async search(){let e=this.query.trim();if(!e){this.results=[],this.error=``;return}this.loading=!0,this.error=``;try{let t=new URLSearchParams({q:e});this.includeArchived&&t.set(`includeArchived`,`true`);let n=await fetch(`/api/search?${t.toString()}`);if(!n.ok){let e=`HTTP ${n.status}`;try{let t=await n.json();t?.error&&(e=t.error)}catch{}throw Error(e)}this.results=await n.json()}catch(e){this.error=e instanceof Error?e.message:String(e),this.results=[]}finally{this.loading=!1}},clear(){this.query=``,this.results=[],this.error=``}}}),D={class:`search-header`},O={class:`text-h5 q-mb-md`},k={class:`row items-center q-mt-sm q-gutter-sm`},A={key:0,class:`text-caption text-grey-6`},j={key:0,class:`text-grey-6 text-caption`},M={key:1,class:`text-negative text-caption`},N={key:2,class:`text-grey-6 text-caption`},P={key:3,class:`search-results`},F=[`onClick`],I={class:`row items-center q-mb-xs text-caption`},L={class:`text-grey-5 text-weight-medium`},R={class:`text-grey-6`},z={class:`search-snippet text-body2 text-grey-4`},B=x(r({__name:`SearchPage`,setup(r){let h=E(),x=b(),{t:B}=v(),{timeAgo:V}=w(),H=e(null),U=null;function W(){U&&clearTimeout(U),U=setTimeout(()=>{h.search()},250)}i(()=>h.includeArchived,()=>{h.query.trim().length>0&&h.search()});function G(e){x.push({name:`workspace`,params:{id:e}})}function K(e){return e===`user:message`?B(`search.eventType.userMessage`):e===`agent:output`?B(`search.eventType.agentOutput`):e}return(e,r)=>(n(),d(T,{class:`q-pa-md search-page`},{default:a(()=>[p(`div`,D,[p(`h2`,O,l(e.$t(`search.title`)),1),s(_,{ref_key:`inputEl`,ref:H,modelValue:f(h).query,"onUpdate:modelValue":[r[0]||=e=>f(h).query=e,W],dense:``,dark:``,outlined:``,clearable:``,autofocus:``,placeholder:e.$t(`search.placeholder`),onClear:r[1]||=e=>f(h).clear()},{prepend:a(()=>[s(m,{name:`search`})]),_:1},8,[`modelValue`,`placeholder`]),p(`div`,k,[s(y,{modelValue:f(h).includeArchived,"onUpdate:modelValue":r[2]||=e=>f(h).includeArchived=e,label:e.$t(`search.includeArchived`),dense:``,dark:``,color:`indigo-4`,size:`sm`},null,8,[`modelValue`,`label`]),s(C),f(h).results.length>0?(n(),o(`span`,A,l(e.$t(`search.resultCount`,{n:f(h).results.length})),1)):u(``,!0)])]),s(g,{dark:``,class:`q-my-md`}),f(h).loading?(n(),o(`div`,j,l(e.$t(`search.loading`)),1)):f(h).error?(n(),o(`div`,M,l(e.$t(`search.error`,{message:f(h).error})),1)):f(h).query.trim().length>0&&f(h).results.length===0?(n(),o(`div`,N,l(e.$t(`search.noResults`)),1)):f(h).results.length>0?(n(),o(`div`,P,[(n(!0),o(c,null,t(f(h).results,(t,r)=>(n(),o(`div`,{key:`${t.workspaceId}-${t.timestamp}-${r}`,class:`search-result q-pa-sm q-mb-sm cursor-pointer`,onClick:e=>G(t.workspaceId)},[p(`div`,I,[p(`span`,L,l(t.workspaceName),1),t.archived?(n(),d(S,{key:0,color:`grey-7`,class:`q-ml-xs`,label:e.$t(`common.archive`)},null,8,[`label`])):u(``,!0),s(C),s(S,{color:t.type===`user:message`?`blue-grey-7`:`indigo-7`,class:`q-mr-sm`,label:K(t.type)},null,8,[`color`,`label`]),p(`span`,R,l(f(V)(t.timestamp)),1)]),p(`div`,z,l(t.snippet),1)],8,F))),128))])):u(``,!0)]),_:1}))}}),[[`__scopeId`,`data-v-6f728e16`]]);export{B as default};
|