uomtiles 0.1.1 → 0.1.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/nitro.json +1 -1
- package/.output/public/_nuxt/{BQlj8Xoe.js → 0hm88Oke.js} +1 -1
- package/.output/public/_nuxt/BNfSclJ4.js +1 -0
- package/.output/public/_nuxt/{B_S8P0kE2.js → BYzlinOr2.js} +1 -1
- package/.output/public/_nuxt/{BiWblTbb.js → Bd1EvHmY.js} +1 -1
- package/.output/public/_nuxt/Be4dNlar.js +1 -0
- package/.output/public/_nuxt/{C4qlzA4o.js → C7fHMLd7.js} +1 -1
- package/.output/public/_nuxt/CQ8inUdm.js +1 -0
- package/.output/public/_nuxt/{B2648adu2.js → CU486JdV2.js} +2 -2
- package/.output/public/_nuxt/{BBJwRf9k.js → Cc_JfSB1.js} +1 -1
- package/.output/public/_nuxt/CgcnoKpi.js +1 -0
- package/.output/public/_nuxt/{dj2oMyB1.js → CovBj6WN.js} +1 -1
- package/.output/public/_nuxt/{BuYkCss52.js → CyZDc0eO2.js} +1 -1
- package/.output/public/_nuxt/{DtFVCXI9.js → CzFefJH0.js} +1 -1
- package/.output/public/_nuxt/{BdQwPExE.js → D-t0hXHB.js} +1 -1
- package/.output/public/_nuxt/D3Pl7yw22.js +1 -0
- package/.output/public/_nuxt/{C6YoBcbT.js → D4gbGuiW.js} +1 -1
- package/.output/public/_nuxt/{DkcySee1.js → DDp9lK3g.js} +1 -1
- package/.output/public/_nuxt/DIIXHC50.js +1 -0
- package/.output/public/_nuxt/DWFUvzz0.js +1 -0
- package/.output/public/_nuxt/D_VoD6-f.js +1 -0
- package/.output/public/_nuxt/{54er8ZVX.js → DaQqwE3R.js} +5 -5
- package/.output/public/_nuxt/DfXX-x_z.js +1 -0
- package/.output/public/_nuxt/Dgyf2aNY.js +1 -0
- package/.output/public/_nuxt/DpIPeY5m.js +1 -0
- package/.output/public/_nuxt/{DV5CwoOP2.js → GM5myUL22.js} +1 -1
- package/.output/public/_nuxt/{P_icVLkX.js → IC4wc76W.js} +1 -1
- package/.output/public/_nuxt/{DIt0vOP7.js → IfL46N3Z.js} +1 -1
- package/.output/public/_nuxt/{DrLbKQlJ.js → KEU2l6zJ.js} +1 -1
- package/.output/public/_nuxt/{DC3bhq63.js → Q79ec-Ro.js} +1 -1
- package/.output/public/_nuxt/SEETjfdJ.js +1 -0
- package/.output/public/_nuxt/builds/latest.json +1 -1
- package/.output/public/_nuxt/builds/meta/2c4adba2-91b5-44e4-91d3-50a61695207b.json +1 -0
- package/.output/public/_nuxt/entry.CZ_dkjcs.css +1 -0
- package/.output/public/_nuxt/{ByRlKR9F.js → nGp0t_eD.js} +1 -1
- package/.output/server/chunks/_/config.mjs +53 -6
- package/.output/server/chunks/_/config.mjs.map +1 -1
- package/.output/server/chunks/_/export.mjs +7 -0
- package/.output/server/chunks/_/export.mjs.map +1 -0
- package/.output/server/chunks/_/file-workspace.mjs +131 -36
- package/.output/server/chunks/_/file-workspace.mjs.map +1 -1
- package/.output/server/chunks/_/map-service.mjs +1 -1
- package/.output/server/chunks/_/pixel-diff.mjs +1 -1
- package/.output/server/chunks/build/Alert-DHVVSgdD.mjs +1074 -0
- package/.output/server/chunks/build/Alert-DHVVSgdD.mjs.map +1 -0
- package/.output/server/chunks/build/{Alert-CBMepLwP.mjs → CompletedTaskSelect-CKTpyHS3.mjs} +31 -725
- package/.output/server/chunks/build/CompletedTaskSelect-CKTpyHS3.mjs.map +1 -0
- package/.output/server/chunks/build/{PopperArrow-xcjACqm-.mjs → DashboardSidebarToggle-CUI9NSow.mjs} +567 -5
- package/.output/server/chunks/build/DashboardSidebarToggle-CUI9NSow.mjs.map +1 -0
- package/.output/server/chunks/build/{Empty-CkW3mADt.mjs → Empty-BGIn09cL.mjs} +1 -1
- package/.output/server/chunks/build/{Empty-CkW3mADt.mjs.map → Empty-BGIn09cL.mjs.map} +1 -1
- package/.output/server/chunks/build/{FocusScope-BJ-B0nKb.mjs → FocusScope-DNZVMnza.mjs} +2 -2
- package/.output/server/chunks/build/{FocusScope-BJ-B0nKb.mjs.map → FocusScope-DNZVMnza.mjs.map} +1 -1
- package/.output/server/chunks/build/{FormField-CEUZHcv7.mjs → FormField-DnJWfrKE.mjs} +2 -2
- package/.output/server/chunks/build/{FormField-CEUZHcv7.mjs.map → FormField-DnJWfrKE.mjs.map} +1 -1
- package/.output/server/chunks/build/{Input-BeNavYXb.mjs → Input-AdlINKtJ.mjs} +1 -1
- package/.output/server/chunks/build/{Input-BeNavYXb.mjs.map → Input-AdlINKtJ.mjs.map} +1 -1
- package/.output/server/chunks/build/{MapBaseLayerTabs-Xu5bXAvH.mjs → MapBaseLayerTabs-CRl5Zwlr.mjs} +3 -3
- package/.output/server/chunks/build/{MapBaseLayerTabs-Xu5bXAvH.mjs.map → MapBaseLayerTabs-CRl5Zwlr.mjs.map} +1 -1
- package/.output/server/chunks/build/{Modal-D-dPQW3w.mjs → Modal-CozaqIp1.mjs} +13 -5
- package/.output/server/chunks/build/{Modal-D-dPQW3w.mjs.map → Modal-CozaqIp1.mjs.map} +1 -1
- package/.output/server/chunks/build/{OnlineMap-CKwiuqUY.mjs → OnlineMap-cFSicmkV.mjs} +1 -1
- package/.output/server/chunks/build/{OnlineMap-CKwiuqUY.mjs.map → OnlineMap-cFSicmkV.mjs.map} +1 -1
- package/.output/server/chunks/build/{Pagination-CkUsaatC.mjs → Pagination-GvNCxmOW.mjs} +1 -1
- package/.output/server/chunks/build/{Pagination-CkUsaatC.mjs.map → Pagination-GvNCxmOW.mjs.map} +1 -1
- package/.output/server/chunks/build/{Slider-CRpk8Y2j.mjs → Slider-zQx1c7hB.mjs} +10 -25
- package/.output/server/chunks/build/Slider-zQx1c7hB.mjs.map +1 -0
- package/.output/server/chunks/build/{Tooltip-BQHl07T-.mjs → Tooltip-DNUdH4oF.mjs} +3 -4
- package/.output/server/chunks/build/{Tooltip-BQHl07T-.mjs.map → Tooltip-DNUdH4oF.mjs.map} +1 -1
- package/.output/server/chunks/build/{advanced-C2aEmUTl.mjs → advanced-5ZGMUBqC.mjs} +16 -17
- package/.output/server/chunks/build/advanced-5ZGMUBqC.mjs.map +1 -0
- package/.output/server/chunks/build/clamp-CdZXprXk.mjs +65 -0
- package/.output/server/chunks/build/clamp-CdZXprXk.mjs.map +1 -0
- package/.output/server/chunks/build/{compare-NMjjryG_.mjs → compare-CtgF4Anj.mjs} +16 -16
- package/.output/server/chunks/build/{compare-NMjjryG_.mjs.map → compare-CtgF4Anj.mjs.map} +1 -1
- package/.output/server/chunks/build/{dashboard-DYapNywh.mjs → dashboard-GneN-WPG.mjs} +15 -8
- package/.output/server/chunks/build/{dashboard-DYapNywh.mjs.map → dashboard-GneN-WPG.mjs.map} +1 -1
- package/.output/server/chunks/build/{details-Cyq3FQAG.mjs → details-CgufnL1d.mjs} +4 -4
- package/.output/server/chunks/build/{details-Cyq3FQAG.mjs.map → details-CgufnL1d.mjs.map} +1 -1
- package/.output/server/chunks/build/error-404-D9aQjJRn.mjs +1 -1
- package/.output/server/chunks/build/error-500-BNyA3wrb.mjs +1 -1
- package/.output/server/chunks/build/{interval-BxUMpo78.mjs → interval-9B2MrM2e.mjs} +2 -2
- package/.output/server/chunks/build/{interval-BxUMpo78.mjs.map → interval-9B2MrM2e.mjs.map} +1 -1
- package/.output/server/chunks/build/{login-gQQfuSWN.mjs → login-Cf5EiCE4.mjs} +4 -4
- package/.output/server/chunks/build/{login-gQQfuSWN.mjs.map → login-Cf5EiCE4.mjs.map} +1 -1
- package/.output/server/chunks/build/{pages-CLVitjz2.mjs → pages-0c5sp_lv.mjs} +6 -7
- package/.output/server/chunks/build/pages-0c5sp_lv.mjs.map +1 -0
- package/.output/server/chunks/build/{services-C9oQ6UZi.mjs → services-BB49kSpd.mjs} +14 -14
- package/.output/server/chunks/build/{services-C9oQ6UZi.mjs.map → services-BB49kSpd.mjs.map} +1 -1
- package/.output/server/chunks/build/{tasks-HCUoEUbh.mjs → tasks-Aa8PwjVL.mjs} +3 -3
- package/.output/server/chunks/build/{tasks-HCUoEUbh.mjs.map → tasks-Aa8PwjVL.mjs.map} +1 -1
- package/.output/server/chunks/build/tasks-BRcMLuRW.mjs +6121 -0
- package/.output/server/chunks/build/tasks-BRcMLuRW.mjs.map +1 -0
- package/.output/server/chunks/nitro/nitro.mjs +258 -256
- package/.output/server/chunks/routes/api/map-service/config.post.mjs +1 -0
- package/.output/server/chunks/routes/api/map-service/config.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/map-service/file.post.mjs +1 -0
- package/.output/server/chunks/routes/api/map-service/file.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/map-service/source.post.mjs +1 -0
- package/.output/server/chunks/routes/api/map-service/source.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/map-service/status.get.mjs +1 -0
- package/.output/server/chunks/routes/api/map-service/status.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workspace/_filename/analysis.get.mjs +1 -0
- package/.output/server/chunks/routes/api/workspace/_filename/analysis.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workspace/_filename/download.get.mjs +1 -0
- package/.output/server/chunks/routes/api/workspace/_filename/download.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workspace/_filename/export/_format_.get.mjs +10 -3
- package/.output/server/chunks/routes/api/workspace/_filename/export/_format_.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workspace/_filename/export-estimate.get.mjs +39 -0
- package/.output/server/chunks/routes/api/workspace/_filename/export-estimate.get.mjs.map +1 -0
- package/.output/server/chunks/routes/api/workspace/_filename/tile.get.mjs +2 -1
- package/.output/server/chunks/routes/api/workspace/_filename/tile.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workspace/_filename/tiles.get.mjs +1 -0
- package/.output/server/chunks/routes/api/workspace/_filename/tiles.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workspace/_filename_.delete.mjs +1 -0
- package/.output/server/chunks/routes/api/workspace/_filename_.delete.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workspace/compare/batch.get.mjs +1 -0
- package/.output/server/chunks/routes/api/workspace/compare/batch.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workspace/compare.post.mjs +1 -0
- package/.output/server/chunks/routes/api/workspace/compare.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workspace/fetch.post.mjs +1 -0
- package/.output/server/chunks/routes/api/workspace/fetch.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workspace/files.get.mjs +1 -0
- package/.output/server/chunks/routes/api/workspace/files.get.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workspace/files.post.mjs +1 -0
- package/.output/server/chunks/routes/api/workspace/files.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workspace/stop.post.mjs +2 -1
- package/.output/server/chunks/routes/api/workspace/stop.post.mjs.map +1 -1
- package/.output/server/chunks/routes/api/workspace/tasks.post.mjs +2 -1
- package/.output/server/chunks/routes/api/workspace/tasks.post.mjs.map +1 -1
- package/.output/server/chunks/routes/renderer.mjs +2 -2
- package/.output/server/chunks/routes/services/wms.get.mjs +1 -0
- package/.output/server/chunks/routes/services/wms.get.mjs.map +1 -1
- package/.output/server/chunks/routes/services/wmts.get.mjs +1 -0
- package/.output/server/chunks/routes/services/wmts.get.mjs.map +1 -1
- package/.output/server/chunks/virtual/entry.mjs +13 -13
- package/.output/server/chunks/virtual/precomputed.mjs +1 -1
- package/.output/server/package.json +1 -1
- package/README.md +6 -1
- package/dist/package.json +1 -1
- package/dist/shared/export.js +4 -0
- package/dist/shared/types/export.js +1 -0
- package/dist/src/cli.js +4 -1
- package/dist/src/core/grid-renderer.js +29 -15
- package/dist/src/core/png.js +59 -6
- package/dist/src/core/uomtiles.js +96 -13
- package/package.json +1 -1
- package/.output/public/_nuxt/BWYASl8D.js +0 -1
- package/.output/public/_nuxt/BalC97Hq2.js +0 -1
- package/.output/public/_nuxt/Bd0XS-K-.js +0 -1
- package/.output/public/_nuxt/Bt5oyQw_.js +0 -1
- package/.output/public/_nuxt/BvQDTQww.js +0 -1
- package/.output/public/_nuxt/By4gkuDZ.js +0 -1
- package/.output/public/_nuxt/D4tzFemo.js +0 -1
- package/.output/public/_nuxt/DCT2aLwC.js +0 -1
- package/.output/public/_nuxt/Dq-XSsAz.js +0 -1
- package/.output/public/_nuxt/Dz7VMlHR.js +0 -1
- package/.output/public/_nuxt/XZ59tThl.js +0 -1
- package/.output/public/_nuxt/builds/meta/0e6b25d2-67d5-42d2-8971-b7374bfbdda5.json +0 -1
- package/.output/public/_nuxt/entry.BmEdVIZg.css +0 -1
- package/.output/public/_nuxt/yq0nsLQU.js +0 -1
- package/.output/server/chunks/build/Alert-CBMepLwP.mjs.map +0 -1
- package/.output/server/chunks/build/DashboardSidebarToggle-D24DGyKq.mjs +0 -569
- package/.output/server/chunks/build/DashboardSidebarToggle-D24DGyKq.mjs.map +0 -1
- package/.output/server/chunks/build/PopperArrow-xcjACqm-.mjs.map +0 -1
- package/.output/server/chunks/build/ScrollArea-QgwoohKb.mjs +0 -379
- package/.output/server/chunks/build/ScrollArea-QgwoohKb.mjs.map +0 -1
- package/.output/server/chunks/build/Slider-CRpk8Y2j.mjs.map +0 -1
- package/.output/server/chunks/build/advanced-C2aEmUTl.mjs.map +0 -1
- package/.output/server/chunks/build/pages-CLVitjz2.mjs.map +0 -1
- package/.output/server/chunks/build/tasks-Cr8nWwss.mjs +0 -915
- package/.output/server/chunks/build/tasks-Cr8nWwss.mjs.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{At as e,Bt as t,F as n,G as r,I as i,It as a,Lt as o,M as s,Ot as c,P as l,Pn as u,S as d,U as f,Vn as p,Wn as m,Zt as h,gr as g,gt as _,ht as v,ln as y,pr as b,wt as x,zn as S}from"./C97TfNgP.js";import{s as C}from"./Dq-XSsAz.js";import{D as w,K as T,at as E,b as D,u as O,v as k,y as A}from"./ByRlKR9F.js";import{o as j}from"./BQlj8Xoe.js";import{a as M,i as N}from"./BvQDTQww.js";import{h as P,l as F,t as I}from"./Dz7VMlHR.js";import{a as L}from"./DCT2aLwC.js";import{t as R}from"./Bd0XS-K-.js";import{a as z}from"#entry";function B(e,t=-1/0,n=1/0){return Math.min(n,Math.max(t,e))}function ee(e=[],t,n){let r=[...e];return r[n]=t,r.sort((e,t)=>e-t)}function V(e,t,n){return B(100/(n-t)*(e-t),0,100)}function H(e,t){if(t>2)return`Value ${e+1} of ${t}`;if(t===2)return[`Minimum`,`Maximum`][e]}function te(e,t){if(e.length===1)return 0;let n=e.map(e=>Math.abs(e-t)),r=Math.min(...n);return n.indexOf(r)}function U(e,t,n){let r=e/2;return(r-G([0,50],[0,r])(t)*n)*n}function W(e){return e.slice(0,-1).map((t,n)=>e[n+1]-t)}function ne(e,t){if(t>0){let n=W(e);return Math.min(...n)>=t}return!0}function G(e,t){return n=>{if(e[0]===e[1]||t[0]===t[1])return t[0];let r=(t[1]-t[0])/(e[1]-e[0]);return t[0]+r*(n-e[0])}}function re(e){return(String(e).split(`.`)[1]||``).length}function ie(e,t){let n=10**t;return Math.round(e*n)/n}var K=[`PageUp`,`PageDown`],q=[`ArrowUp`,`ArrowDown`,`ArrowLeft`,`ArrowRight`],J={"from-left":[`Home`,`PageDown`,`ArrowDown`,`ArrowLeft`],"from-right":[`Home`,`PageDown`,`ArrowDown`,`ArrowRight`],"from-bottom":[`Home`,`PageDown`,`ArrowDown`,`ArrowLeft`],"from-top":[`Home`,`PageUp`,`ArrowUp`,`ArrowLeft`]},[Y,X]=E([`SliderVertical`,`SliderHorizontal`]),ae=r({__name:`SliderHorizontal`,props:{dir:{type:String,required:!1},min:{type:Number,required:!0},max:{type:Number,required:!0},inverted:{type:Boolean,required:!0}},emits:[`slideEnd`,`slideStart`,`slideMove`,`homeKeyDown`,`endKeyDown`,`stepKeyDown`],setup(t,{emit:n}){let r=t,i=n,{max:a,min:c,dir:d,inverted:f}=p(r),{forwardRef:h,currentElement:_}=I(),v=Z(),b=u(),x=u(),S=s(()=>d?.value!==`rtl`&&!f.value||d?.value!==`ltr`&&f.value);function C(e,t){let n=x.value||_.value.getBoundingClientRect(),r=[...v.thumbElements.value][v.valueIndexToChangeRef.value],i=v.thumbAlignment.value===`contain`?r.clientWidth:0;!b.value&&!t&&v.thumbAlignment.value===`contain`&&(b.value=e.clientX-r.getBoundingClientRect().left);let o=G([0,n.width-i],S.value?[c.value,a.value]:[a.value,c.value]);return x.value=n,o(t?e.clientX-n.left-i/2:e.clientX-n.left-(b.value??0))}return X({startEdge:s(()=>S.value?`left`:`right`),endEdge:s(()=>S.value?`right`:`left`),direction:s(()=>S.value?1:-1),size:`width`}),(t,n)=>(e(),l(Q,{ref:m(h),dir:m(d),"data-orientation":`horizontal`,style:g({"--reka-slider-thumb-transform":!S.value&&m(v).thumbAlignment.value===`overflow`?`translateX(50%)`:`translateX(-50%)`}),onSlideStart:n[0]||=e=>{let t=C(e,!0);i(`slideStart`,t)},onSlideMove:n[1]||=e=>{let t=C(e);i(`slideMove`,t)},onSlideEnd:n[2]||=()=>{x.value=void 0,b.value=void 0,i(`slideEnd`)},onStepKeyDown:n[3]||=e=>{let t=S.value?`from-left`:`from-right`,n=m(J)[t].includes(e.key);i(`stepKeyDown`,e,n?-1:1)},onEndKeyDown:n[4]||=e=>i(`endKeyDown`,e),onHomeKeyDown:n[5]||=e=>i(`homeKeyDown`,e)},{default:y(()=>[o(t.$slots,`default`)]),_:3},8,[`dir`,`style`]))}}),oe=r({__name:`SliderVertical`,props:{min:{type:Number,required:!0},max:{type:Number,required:!0},inverted:{type:Boolean,required:!0}},emits:[`slideEnd`,`slideStart`,`slideMove`,`homeKeyDown`,`endKeyDown`,`stepKeyDown`],setup(t,{emit:n}){let r=t,i=n,{max:a,min:c,inverted:d}=p(r),f=Z(),{forwardRef:h,currentElement:_}=I(),v=u(),b=u(),x=s(()=>!d.value);function S(e,t){let n=b.value||_.value.getBoundingClientRect(),r=[...f.thumbElements.value][f.valueIndexToChangeRef.value],i=f.thumbAlignment.value===`contain`?r.clientHeight:0;!v.value&&!t&&f.thumbAlignment.value===`contain`&&(v.value=e.clientY-r.getBoundingClientRect().top);let o=G([0,n.height-i],x.value?[a.value,c.value]:[c.value,a.value]),s=t?e.clientY-n.top-i/2:e.clientY-n.top-(v.value??0);return b.value=n,o(s)}return X({startEdge:s(()=>x.value?`bottom`:`top`),endEdge:s(()=>x.value?`top`:`bottom`),direction:s(()=>x.value?1:-1),size:`height`}),(t,n)=>(e(),l(Q,{ref:m(h),"data-orientation":`vertical`,style:g({"--reka-slider-thumb-transform":!x.value&&m(f).thumbAlignment.value===`overflow`?`translateY(-50%)`:`translateY(50%)`}),onSlideStart:n[0]||=e=>{let t=S(e,!0);i(`slideStart`,t)},onSlideMove:n[1]||=e=>{let t=S(e);i(`slideMove`,t)},onSlideEnd:n[2]||=()=>{b.value=void 0,v.value=void 0,i(`slideEnd`)},onStepKeyDown:n[3]||=e=>{let t=x.value?`from-bottom`:`from-top`,n=m(J)[t].includes(e.key);i(`stepKeyDown`,e,n?-1:1)},onEndKeyDown:n[4]||=e=>i(`endKeyDown`,e),onHomeKeyDown:n[5]||=e=>i(`homeKeyDown`,e)},{default:y(()=>[o(t.$slots,`default`)]),_:3},8,[`style`]))}}),[Z,se]=E(`SliderRoot`),ce=r({inheritAttrs:!1,__name:`SliderRoot`,props:{defaultValue:{type:Array,required:!1,default:()=>[0]},modelValue:{type:[Array,null],required:!1},disabled:{type:Boolean,required:!1,default:!1},orientation:{type:String,required:!1,default:`horizontal`},dir:{type:String,required:!1},inverted:{type:Boolean,required:!1,default:!1},min:{type:Number,required:!1,default:0},max:{type:Number,required:!1,default:100},step:{type:Number,required:!1,default:1},minStepsBetweenThumbs:{type:Number,required:!1,default:0},thumbAlignment:{type:String,required:!1,default:`contain`},asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`},name:{type:String,required:!1},required:{type:Boolean,required:!1}},emits:[`update:modelValue`,`valueCommit`],setup(r,{emit:i}){let a=r,c=i,{min:d,max:f,step:h,minStepsBetweenThumbs:g,orientation:v,disabled:b,thumbAlignment:x,dir:w}=p(a),T=C(w),{forwardRef:E,currentElement:D}=I(),O=M(D),{CollectionSlot:k}=z({isProvider:!0}),A=P(a,`modelValue`,c,{defaultValue:a.defaultValue,passive:a.modelValue===void 0}),j=s(()=>Array.isArray(A.value)?[...A.value]:[]),F=u(0),L=u(j.value);function R(e){U(e,te(j.value,e))}function V(e){U(e,F.value)}function H(){let e=L.value[F.value];j.value[F.value]!==e&&c(`valueCommit`,S(j.value))}function U(e,t,{commit:n}={commit:!1}){let r=re(h.value),i=B(ie(Math.round((e-d.value)/h.value)*h.value+d.value,r),d.value,f.value),a=ee(j.value,i,t);if(ne(a,g.value*h.value)){F.value=a.indexOf(i);let e=String(a)!==String(A.value);e&&n&&c(`valueCommit`,a),e&&(W.value[F.value]?.focus(),A.value=a)}}let W=u([]);return se({modelValue:A,currentModelValue:j,valueIndexToChangeRef:F,thumbElements:W,orientation:v,min:d,max:f,disabled:b,thumbAlignment:x}),(r,i)=>(e(),l(m(k),null,{default:y(()=>[(e(),l(t(m(v)===`horizontal`?ae:oe),_(r.$attrs,{ref:m(E),"as-child":r.asChild,as:r.as,min:m(d),max:m(f),dir:m(T),inverted:r.inverted,"aria-disabled":m(b),"data-disabled":m(b)?``:void 0,onPointerdown:i[0]||=()=>{m(b)||(L.value=j.value)},onSlideStart:i[1]||=e=>!m(b)&&R(e),onSlideMove:i[2]||=e=>!m(b)&&V(e),onSlideEnd:i[3]||=e=>!m(b)&&H(),onHomeKeyDown:i[4]||=e=>!m(b)&&U(m(d),0,{commit:!0}),onEndKeyDown:i[5]||=e=>!m(b)&&U(m(f),j.value.length-1,{commit:!0}),onStepKeyDown:i[6]||=(e,t)=>{if(!m(b)){let n=m(K).includes(e.key)||e.shiftKey&&m(q).includes(e.key)?10:1,r=F.value,i=j.value[r];U(i+m(h)*n*t,r,{commit:!0})}}}),{default:y(()=>[o(r.$slots,`default`,{modelValue:m(A)}),m(O)&&r.name?(e(),l(m(N),{key:0,type:`number`,value:m(A),name:r.name,required:r.required,disabled:m(b),step:m(h)},null,8,[`value`,`name`,`required`,`disabled`,`step`])):n(`v-if`,!0)]),_:3},16,[`as-child`,`as`,`min`,`max`,`dir`,`inverted`,`aria-disabled`,`data-disabled`]))]),_:3}))}}),Q=r({__name:`SliderImpl`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},emits:[`slideStart`,`slideMove`,`slideEnd`,`homeKeyDown`,`endKeyDown`,`stepKeyDown`],setup(t,{emit:n}){let r=t,i=n,a=Z();return(t,n)=>(e(),l(m(w),_({"data-slider-impl":``},r,{onKeydown:n[0]||=e=>{e.key===`Home`?(i(`homeKeyDown`,e),e.preventDefault()):e.key===`End`?(i(`endKeyDown`,e),e.preventDefault()):m(K).concat(m(q)).includes(e.key)&&(i(`stepKeyDown`,e),e.preventDefault())},onPointerdown:n[1]||=e=>{let t=e.target;t.setPointerCapture(e.pointerId),e.preventDefault(),m(a).thumbElements.value.includes(t)?t.focus():i(`slideStart`,e)},onPointermove:n[2]||=e=>{e.target.hasPointerCapture(e.pointerId)&&i(`slideMove`,e)},onPointerup:n[3]||=e=>{let t=e.target;t.hasPointerCapture(e.pointerId)&&(t.releasePointerCapture(e.pointerId),i(`slideEnd`,e))}}),{default:y(()=>[o(t.$slots,`default`)]),_:3},16))}}),le=r({__name:`SliderRange`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(t){let n=Z(),r=Y();I();let i=s(()=>n.currentModelValue.value.map(e=>V(e,n.min.value,n.max.value))),a=s(()=>n.currentModelValue.value.length>1?Math.min(...i.value):0),c=s(()=>100-Math.max(...i.value,0));return(t,i)=>(e(),l(m(w),{"data-disabled":m(n).disabled.value?``:void 0,"data-orientation":m(n).orientation.value,"as-child":t.asChild,as:t.as,style:g({[m(r).startEdge.value]:`${a.value}%`,[m(r).endEdge.value]:`${c.value}%`})},{default:y(()=>[o(t.$slots,`default`)]),_:3},8,[`data-disabled`,`data-orientation`,`as-child`,`as`,`style`]))}}),ue=r({inheritAttrs:!1,__name:`SliderThumbImpl`,props:{index:{type:Number,required:!0},asChild:{type:Boolean,required:!1},as:{type:null,required:!1}},setup(t){let n=t,r=Z(),i=Y(),{forwardRef:a,currentElement:u}=I(),{CollectionItem:d}=z(),p=s(()=>r.modelValue?.value?.[n.index]),h=s(()=>p.value===void 0?0:V(p.value,r.min.value??0,r.max.value??100)),g=s(()=>H(n.index,r.modelValue?.value?.length??0)),v=L(u),b=s(()=>v[i.size].value),S=s(()=>r.thumbAlignment.value===`overflow`||!b.value?0:U(b.value,h.value,i.direction.value)),C=F();return x(()=>{r.thumbElements.value.push(u.value)}),c(()=>{let e=r.thumbElements.value.findIndex(e=>e===u.value)??-1;r.thumbElements.value.splice(e,1)}),(t,n)=>(e(),l(m(d),null,{default:y(()=>[f(m(w),_(t.$attrs,{ref:m(a),role:`slider`,tabindex:m(r).disabled.value?void 0:0,"aria-label":t.$attrs[`aria-label`]||g.value,"data-disabled":m(r).disabled.value?``:void 0,"data-orientation":m(r).orientation.value,"aria-valuenow":p.value,"aria-valuemin":m(r).min.value,"aria-valuemax":m(r).max.value,"aria-orientation":m(r).orientation.value,"as-child":t.asChild,as:t.as,style:{transform:`var(--reka-slider-thumb-transform)`,position:`absolute`,[m(i).startEdge.value]:`calc(${h.value}% + ${S.value}px)`,display:!m(C)&&p.value===void 0?`none`:void 0},onFocus:n[0]||=()=>{m(r).valueIndexToChangeRef.value=t.index}}),{default:y(()=>[o(t.$slots,`default`)]),_:3},16,[`tabindex`,`aria-label`,`data-disabled`,`data-orientation`,`aria-valuenow`,`aria-valuemin`,`aria-valuemax`,`aria-orientation`,`as-child`,`as`,`style`])]),_:3}))}}),$=r({__name:`SliderThumb`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(t){let n=t,{getItems:r}=z(),{forwardRef:i,currentElement:a}=I(),c=s(()=>a.value?r(!0).findIndex(e=>e.ref===a.value):-1);return(t,r)=>(e(),l(ue,_({ref:m(i)},n,{index:c.value}),{default:y(()=>[o(t.$slots,`default`)]),_:3},16,[`index`]))}}),de=r({__name:`SliderTrack`,props:{asChild:{type:Boolean,required:!1},as:{type:null,required:!1,default:`span`}},setup(t){let n=Z();return I(),(t,r)=>(e(),l(m(w),{"as-child":t.asChild,as:t.as,"data-disabled":m(n).disabled.value?``:void 0,"data-orientation":m(n).orientation.value},{default:y(()=>[o(t.$slots,`default`)]),_:3},8,[`as-child`,`as`,`data-disabled`,`data-orientation`]))}}),fe={slots:{root:`relative flex items-center select-none touch-none`,track:`relative bg-accented overflow-hidden rounded-full grow`,range:`absolute rounded-full`,thumb:`rounded-full bg-default ring-2 focus-visible:outline-3 focus-visible:outline-offset-2`},variants:{color:{primary:{range:`bg-primary`,thumb:`ring-primary outline-primary/25`},secondary:{range:`bg-secondary`,thumb:`ring-secondary outline-secondary/25`},success:{range:`bg-success`,thumb:`ring-success outline-success/25`},info:{range:`bg-info`,thumb:`ring-info outline-info/25`},warning:{range:`bg-warning`,thumb:`ring-warning outline-warning/25`},error:{range:`bg-error`,thumb:`ring-error outline-error/25`},neutral:{range:`bg-inverted`,thumb:`ring-inverted outline-inverted/25`}},size:{xs:{thumb:`size-3`},sm:{thumb:`size-3.5`},md:{thumb:`size-4`},lg:{thumb:`size-4.5`},xl:{thumb:`size-5`}},orientation:{horizontal:{root:`w-full`,range:`h-full`},vertical:{root:`flex-col h-full`,range:`w-full`}},disabled:{true:{root:`opacity-75 cursor-not-allowed`}}},compoundVariants:[{orientation:`horizontal`,size:`xs`,class:{track:`h-[6px]`}},{orientation:`horizontal`,size:`sm`,class:{track:`h-[7px]`}},{orientation:`horizontal`,size:`md`,class:{track:`h-[8px]`}},{orientation:`horizontal`,size:`lg`,class:{track:`h-[9px]`}},{orientation:`horizontal`,size:`xl`,class:{track:`h-[10px]`}},{orientation:`vertical`,size:`xs`,class:{track:`w-[6px]`}},{orientation:`vertical`,size:`sm`,class:{track:`w-[7px]`}},{orientation:`vertical`,size:`md`,class:{track:`w-[8px]`}},{orientation:`vertical`,size:`lg`,class:{track:`w-[9px]`}},{orientation:`vertical`,size:`xl`,class:{track:`w-[10px]`}}],defaultVariants:{size:`md`,color:`primary`}},pe={__name:`USlider`,props:v({as:{type:null,required:!1},size:{type:null,required:!1},color:{type:null,required:!1},orientation:{type:null,required:!1,default:`horizontal`},tooltip:{type:[Boolean,Object],required:!1},defaultValue:{type:[Number,Array],required:!1},class:{type:null,required:!1},ui:{type:Object,required:!1},name:{type:String,required:!1},disabled:{type:Boolean,required:!1},inverted:{type:Boolean,required:!1},min:{type:Number,required:!1,default:0},max:{type:Number,required:!1,default:100},step:{type:Number,required:!1,default:1},minStepsBetweenThumbs:{type:Number,required:!1}},{modelValue:{type:null},modelModifiers:{}}),emits:v([`change`],[`update:modelValue`]),setup(t,{emit:n}){let r=t,o=n,c=D(`slider`,r),u=h(t,`modelValue`),p=j(),g=A(T(c,`as`,`orientation`,`min`,`max`,`step`,`minStepsBetweenThumbs`,`inverted`),o),{id:v,emitFormChange:x,emitFormInput:S,size:C,color:w,name:E,disabled:M,ariaAttrs:N}=O(r),P=s(()=>typeof c.defaultValue==`number`?[c.defaultValue]:c.defaultValue),F=s({get(){return typeof u.value==`number`?[u.value]:u.value??P.value},set(e){u.value=e?.length===1?e[0]:e}}),I=s(()=>F.value?.length??1),L=s(()=>k({extend:fe,...p.ui?.slider||{}})({disabled:M.value,size:C.value??c.size,color:w.value??c.color,orientation:c.orientation}));function z(e){let t=new Event(`change`,{target:{value:e}});o(`change`,t),x()}return(t,n)=>(e(),l(m(ce),_({...m(g),...m(N)},{id:m(v),modelValue:F.value,"onUpdate:modelValue":[n[0]||=e=>F.value=e,n[1]||=e=>m(S)()],name:m(E),disabled:m(M),"data-slot":`root`,class:L.value.root({class:[m(c).ui?.root,m(c).class]}),"default-value":P.value,onValueCommit:z}),{default:y(()=>[f(m(de),{"data-slot":`track`,class:b(L.value.track({class:m(c).ui?.track}))},{default:y(()=>[f(m(le),{"data-slot":`range`,class:b(L.value.range({class:m(c).ui?.range}))},null,8,[`class`])]),_:1},8,[`class`]),(e(!0),i(d,null,a(I.value,t=>(e(),i(d,{key:t},[m(c).tooltip?(e(),l(R,_({key:0,text:I.value>1?String(F.value?.[t-1]):String(F.value),"disable-closing-trigger":``},{ref_for:!0},typeof m(c).tooltip==`object`?m(c).tooltip:{}),{default:y(()=>[f(m($),{"data-slot":`thumb`,class:b(L.value.thumb({class:m(c).ui?.thumb})),"aria-label":I.value===1?`Thumb`:`Thumb ${t} of ${I.value}`},null,8,[`class`,`aria-label`])]),_:2},1040,[`text`])):(e(),l(m($),{key:1,"data-slot":`thumb`,class:b(L.value.thumb({class:m(c).ui?.thumb})),"aria-label":I.value===1?`Thumb`:`Thumb ${t} of ${I.value}`},null,8,[`class`,`aria-label`]))],64))),128))]),_:1},16,[`id`,`modelValue`,`name`,`disabled`,`class`,`default-value`]))}};export{pe as t};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Alert-CBMepLwP.mjs","sources":["../../../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/shared/arrays.js","../../../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/shared/useComposing.js","../../../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/shared/useFilter.js","../../../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/shared/useFocusGuards.js","../../../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/shared/useFormControl.js","../../../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/shared/useKbd.js","../../../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/shared/useTypeahead.js","../../../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/VisuallyHidden/VisuallyHiddenInputBubble.js","../../../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/VisuallyHidden/VisuallyHiddenInput.js","../../../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/Listbox/utils.js","../../../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/Listbox/ListboxRoot.js","../../../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/Listbox/ListboxContent.js","../../../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/Listbox/ListboxFilter.js","../../../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/Listbox/ListboxGroup.js","../../../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/Listbox/ListboxItem.js","../../../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/Listbox/ListboxItemIndicator.js","../../../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/Listbox/ListboxVirtualizer.js","../../../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/Combobox/ComboboxRoot.js","../../../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/Combobox/ComboboxAnchor.js","../../../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/Combobox/ComboboxContentImpl.js","../../../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/Combobox/ComboboxArrow.js","../../../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/Combobox/ComboboxCancel.js","../../../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/Combobox/ComboboxContent.js","../../../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/Combobox/ComboboxEmpty.js","../../../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/Combobox/ComboboxGroup.js","../../../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/Combobox/ComboboxInput.js","../../../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/Combobox/ComboboxItem.js","../../../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/Combobox/ComboboxItemIndicator.js","../../../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/Combobox/ComboboxLabel.js","../../../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/Combobox/ComboboxPortal.js","../../../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/Combobox/ComboboxSeparator.js","../../../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/Combobox/ComboboxTrigger.js","../../../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/Combobox/ComboboxVirtualizer.js","../../../../node_modules/.pnpm/@nuxt+ui@4.10.0_e299f0a9b209424c2a6c150f5a1a8167/node_modules/@nuxt/ui/dist/runtime/composables/useFilter.js","../../../../node_modules/.pnpm/@nuxt+ui@4.10.0_e299f0a9b209424c2a6c150f5a1a8167/node_modules/@nuxt/ui/dist/runtime/utils/virtualizer.js","../../../../virtual:nuxt:node_modules%2F.cache%2Fnuxt%2F.nuxt%2Fui%2Fselect-menu.ts","../../../../node_modules/.pnpm/@nuxt+ui@4.10.0_e299f0a9b209424c2a6c150f5a1a8167/node_modules/@nuxt/ui/dist/runtime/components/SelectMenu.vue","../../../../app/components/CompletedTaskSelect.vue","../../../../virtual:nuxt:node_modules%2F.cache%2Fnuxt%2F.nuxt%2Fui%2Falert.ts","../../../../node_modules/.pnpm/@nuxt+ui@4.10.0_e299f0a9b209424c2a6c150f5a1a8167/node_modules/@nuxt/ui/dist/runtime/components/Alert.vue"],"names":["useFilter","useId","refAutoReset$1","useForwardProps","props","emits","useRekaFilter","useForwardProps$1","defu$1","_sfc_main$2","$attrs","_sfc_main$5"],"mappings":"","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,38,39]}
|
|
@@ -1,569 +0,0 @@
|
|
|
1
|
-
import { A as createContext, e as useLocale, U as useCookie, W as useStorage, d as useComponentProps, g as useForwardProps, X as reactiveOmit, f as useAppConfig, t as tv, b as _sfc_main$2, P as Primitive, Y as injectConfigProviderContext, v as useForwardExpose, Z as onKeyStroke, a0 as isNullish } from '../virtual/entry.mjs';
|
|
2
|
-
import * as vue from 'vue';
|
|
3
|
-
import { ref, computed, isRef, unref, watch, mergeProps, withCtx, renderSlot, defineComponent, watchEffect, openBlock, createBlock, normalizeStyle, reactive, toValue, nextTick, useSSRContext } from 'vue';
|
|
4
|
-
import { ssrRenderComponent, ssrRenderSlot } from 'vue/server-renderer';
|
|
5
|
-
|
|
6
|
-
//#region node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/shared/handleAndDispatchCustomEvent.js
|
|
7
|
-
function handleAndDispatchCustomEvent(name, handler, detail) {
|
|
8
|
-
const target = detail.originalEvent.target;
|
|
9
|
-
const event = new CustomEvent(name, {
|
|
10
|
-
bubbles: false,
|
|
11
|
-
cancelable: true,
|
|
12
|
-
detail
|
|
13
|
-
});
|
|
14
|
-
if (handler) target.addEventListener(name, handler, { once: true });
|
|
15
|
-
target.dispatchEvent(event);
|
|
16
|
-
}
|
|
17
|
-
//#endregion
|
|
18
|
-
//#region node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/shared/useDirection.js
|
|
19
|
-
/**
|
|
20
|
-
* The `useDirection` function provides a way to access the current direction in your application.
|
|
21
|
-
* @param {Ref<Direction | undefined>} [dir] - An optional ref containing the direction (ltr or rtl).
|
|
22
|
-
* @returns computed value that combines with the resolved direction.
|
|
23
|
-
*/
|
|
24
|
-
function useDirection(dir) {
|
|
25
|
-
const context = injectConfigProviderContext({ dir: ref("ltr") });
|
|
26
|
-
return computed(() => dir?.value || context.dir?.value || "ltr");
|
|
27
|
-
}
|
|
28
|
-
//#endregion
|
|
29
|
-
//#region node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/shared/useId.js
|
|
30
|
-
var count = 0;
|
|
31
|
-
/**
|
|
32
|
-
* The `useId` function generates a unique identifier using a provided deterministic ID,
|
|
33
|
-
* a configured `<ConfigProvider>` ID source, Vue's native `useId`, or a fallback counter.
|
|
34
|
-
* @param {string | null | undefined} [deterministicId] - The `useId` function you provided takes an
|
|
35
|
-
* optional parameter `deterministicId`, which can be a string, null, or undefined. If
|
|
36
|
-
* `deterministicId` is provided, the function will return it. Otherwise, it will generate an id using
|
|
37
|
-
* the configured ID source.
|
|
38
|
-
*/
|
|
39
|
-
function useId$1(deterministicId, prefix = "reka") {
|
|
40
|
-
let id;
|
|
41
|
-
const configProviderContext = injectConfigProviderContext({ useId: void 0 });
|
|
42
|
-
if (configProviderContext.useId) id = configProviderContext.useId();
|
|
43
|
-
else if ("useId" in vue) id = vue.useId?.();
|
|
44
|
-
else id = `${++count}`;
|
|
45
|
-
return prefix ? `${prefix}-${id}` : id;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Listens for `pointerdown` outside a DOM subtree. We use `pointerdown` rather than `pointerup`
|
|
49
|
-
* to mimic layer dismissing behaviour present in OS.
|
|
50
|
-
* Returns props to pass to the node we want to check for outside events.
|
|
51
|
-
*/
|
|
52
|
-
function usePointerDownOutside(onPointerDownOutside, element, enabled = true) {
|
|
53
|
-
element?.value?.ownerDocument ?? globalThis?.document;
|
|
54
|
-
const isPointerInsideDOMTree = ref(false);
|
|
55
|
-
ref(() => {});
|
|
56
|
-
watchEffect((cleanupFn) => {});
|
|
57
|
-
return { onPointerDownCapture: () => {
|
|
58
|
-
if (!toValue(enabled)) return;
|
|
59
|
-
isPointerInsideDOMTree.value = true;
|
|
60
|
-
} };
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Listens for when focus happens outside a DOM subtree.
|
|
64
|
-
* Returns props to pass to the root (node) of the subtree we want to check.
|
|
65
|
-
*/
|
|
66
|
-
function useFocusOutside(onFocusOutside, element, enabled = true) {
|
|
67
|
-
element?.value?.ownerDocument ?? globalThis?.document;
|
|
68
|
-
const isFocusInsideDOMTree = ref(false);
|
|
69
|
-
watchEffect((cleanupFn) => {});
|
|
70
|
-
return {
|
|
71
|
-
onFocusCapture: () => {
|
|
72
|
-
if (!toValue(enabled)) return;
|
|
73
|
-
isFocusInsideDOMTree.value = true;
|
|
74
|
-
},
|
|
75
|
-
onBlurCapture: () => {
|
|
76
|
-
if (!toValue(enabled)) return;
|
|
77
|
-
isFocusInsideDOMTree.value = false;
|
|
78
|
-
}
|
|
79
|
-
};
|
|
80
|
-
}
|
|
81
|
-
//#endregion
|
|
82
|
-
//#region node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/DismissableLayer/DismissableLayer.js
|
|
83
|
-
var context = /*#__PURE__*/ reactive({
|
|
84
|
-
layersRoot: /* @__PURE__ */ new Set(),
|
|
85
|
-
layersWithOutsidePointerEventsDisabled: /* @__PURE__ */ new Set(),
|
|
86
|
-
originalBodyPointerEvents: void 0,
|
|
87
|
-
branches: /* @__PURE__ */ new Set()
|
|
88
|
-
});
|
|
89
|
-
var DismissableLayer_default = /* @__PURE__ */ defineComponent({
|
|
90
|
-
__name: "DismissableLayer",
|
|
91
|
-
props: {
|
|
92
|
-
disableOutsidePointerEvents: {
|
|
93
|
-
type: Boolean,
|
|
94
|
-
required: false,
|
|
95
|
-
default: false
|
|
96
|
-
},
|
|
97
|
-
asChild: {
|
|
98
|
-
type: Boolean,
|
|
99
|
-
required: false
|
|
100
|
-
},
|
|
101
|
-
as: {
|
|
102
|
-
type: null,
|
|
103
|
-
required: false
|
|
104
|
-
},
|
|
105
|
-
present: {
|
|
106
|
-
type: Boolean,
|
|
107
|
-
required: false,
|
|
108
|
-
default: true
|
|
109
|
-
}
|
|
110
|
-
},
|
|
111
|
-
emits: [
|
|
112
|
-
"escapeKeyDown",
|
|
113
|
-
"pointerDownOutside",
|
|
114
|
-
"focusOutside",
|
|
115
|
-
"interactOutside",
|
|
116
|
-
"dismiss"
|
|
117
|
-
],
|
|
118
|
-
setup(__props, { emit: __emit }) {
|
|
119
|
-
const props = __props;
|
|
120
|
-
const emits = __emit;
|
|
121
|
-
const { forwardRef, currentElement: layerElement } = useForwardExpose();
|
|
122
|
-
const ownerDocument = computed(() => layerElement.value?.ownerDocument ?? globalThis.document);
|
|
123
|
-
const layers = computed(() => context.layersRoot);
|
|
124
|
-
const index = computed(() => {
|
|
125
|
-
return layerElement.value ? Array.from(layers.value).indexOf(layerElement.value) : -1;
|
|
126
|
-
});
|
|
127
|
-
const isBodyPointerEventsDisabled = computed(() => {
|
|
128
|
-
return context.layersWithOutsidePointerEventsDisabled.size > 0;
|
|
129
|
-
});
|
|
130
|
-
const isPointerEventsEnabled = computed(() => {
|
|
131
|
-
const localLayers = Array.from(layers.value);
|
|
132
|
-
const [highestLayerWithOutsidePointerEventsDisabled] = [...context.layersWithOutsidePointerEventsDisabled].slice(-1);
|
|
133
|
-
const highestLayerWithOutsidePointerEventsDisabledIndex = localLayers.indexOf(highestLayerWithOutsidePointerEventsDisabled);
|
|
134
|
-
return index.value >= highestLayerWithOutsidePointerEventsDisabledIndex;
|
|
135
|
-
});
|
|
136
|
-
const pointerDownOutside = usePointerDownOutside(async (event) => {
|
|
137
|
-
const isPointerDownOnBranch = [...context.branches].some((branch) => branch?.contains(event.target));
|
|
138
|
-
if (!props.present || !isPointerEventsEnabled.value || isPointerDownOnBranch) return;
|
|
139
|
-
emits("pointerDownOutside", event);
|
|
140
|
-
emits("interactOutside", event);
|
|
141
|
-
await nextTick();
|
|
142
|
-
if (!event.defaultPrevented) emits("dismiss");
|
|
143
|
-
}, layerElement);
|
|
144
|
-
const focusOutside = useFocusOutside((event) => {
|
|
145
|
-
const isFocusInBranch = [...context.branches].some((branch) => branch?.contains(event.target));
|
|
146
|
-
if (!props.present || isFocusInBranch) return;
|
|
147
|
-
emits("focusOutside", event);
|
|
148
|
-
emits("interactOutside", event);
|
|
149
|
-
if (!event.defaultPrevented) emits("dismiss");
|
|
150
|
-
}, layerElement);
|
|
151
|
-
onKeyStroke("Escape", (event) => {
|
|
152
|
-
if (!props.present) return;
|
|
153
|
-
if (!(index.value === layers.value.size - 1)) return;
|
|
154
|
-
emits("escapeKeyDown", event);
|
|
155
|
-
if (!event.defaultPrevented) emits("dismiss");
|
|
156
|
-
});
|
|
157
|
-
watch([
|
|
158
|
-
layerElement,
|
|
159
|
-
() => props.disableOutsidePointerEvents,
|
|
160
|
-
() => props.present
|
|
161
|
-
], ([element, disableOutsidePointerEvents, present], _, onCleanup) => {
|
|
162
|
-
if (!element || !present) return;
|
|
163
|
-
if (disableOutsidePointerEvents) {
|
|
164
|
-
if (context.layersWithOutsidePointerEventsDisabled.size === 0) {
|
|
165
|
-
context.originalBodyPointerEvents = ownerDocument.value.body.style.pointerEvents;
|
|
166
|
-
ownerDocument.value.body.style.pointerEvents = "none";
|
|
167
|
-
}
|
|
168
|
-
context.layersWithOutsidePointerEventsDisabled.add(element);
|
|
169
|
-
onCleanup(() => {
|
|
170
|
-
context.layersWithOutsidePointerEventsDisabled.delete(element);
|
|
171
|
-
if (context.layersWithOutsidePointerEventsDisabled.size === 0 && !isNullish(context.originalBodyPointerEvents)) ownerDocument.value.body.style.pointerEvents = context.originalBodyPointerEvents;
|
|
172
|
-
});
|
|
173
|
-
}
|
|
174
|
-
}, { immediate: true });
|
|
175
|
-
watch([layerElement, () => props.present], ([element, present], _, onCleanup) => {
|
|
176
|
-
if (!element || !present) return;
|
|
177
|
-
layers.value.add(element);
|
|
178
|
-
onCleanup(() => {
|
|
179
|
-
layers.value.delete(element);
|
|
180
|
-
});
|
|
181
|
-
}, { immediate: true });
|
|
182
|
-
watchEffect((cleanupFn) => {
|
|
183
|
-
cleanupFn(() => {
|
|
184
|
-
if (!layerElement.value) return;
|
|
185
|
-
layers.value.delete(layerElement.value);
|
|
186
|
-
context.layersWithOutsidePointerEventsDisabled.delete(layerElement.value);
|
|
187
|
-
});
|
|
188
|
-
});
|
|
189
|
-
return (_ctx, _cache) => {
|
|
190
|
-
return openBlock(), createBlock(unref(Primitive), {
|
|
191
|
-
ref: unref(forwardRef),
|
|
192
|
-
"as-child": _ctx.asChild,
|
|
193
|
-
as: _ctx.as,
|
|
194
|
-
"data-dismissable-layer": "",
|
|
195
|
-
style: normalizeStyle({ pointerEvents: isBodyPointerEventsDisabled.value ? isPointerEventsEnabled.value ? "auto" : "none" : void 0 }),
|
|
196
|
-
onFocusCapture: unref(focusOutside).onFocusCapture,
|
|
197
|
-
onBlurCapture: unref(focusOutside).onBlurCapture,
|
|
198
|
-
onPointerdownCapture: unref(pointerDownOutside).onPointerDownCapture
|
|
199
|
-
}, {
|
|
200
|
-
default: withCtx(() => [renderSlot(_ctx.$slots, "default")]),
|
|
201
|
-
_: 3
|
|
202
|
-
}, 8, [
|
|
203
|
-
"as-child",
|
|
204
|
-
"as",
|
|
205
|
-
"style",
|
|
206
|
-
"onFocusCapture",
|
|
207
|
-
"onBlurCapture",
|
|
208
|
-
"onPointerdownCapture"
|
|
209
|
-
]);
|
|
210
|
-
};
|
|
211
|
-
}
|
|
212
|
-
});
|
|
213
|
-
//#endregion
|
|
214
|
-
//#region node_modules/.pnpm/@nuxt+ui@4.10.0_e299f0a9b209424c2a6c150f5a1a8167/node_modules/@nuxt/ui/dist/runtime/utils/dashboard.js
|
|
215
|
-
var [useDashboard, provideDashboardContext] = createContext("DashboardGroup");
|
|
216
|
-
//#endregion
|
|
217
|
-
//#region node_modules/.pnpm/@nuxt+ui@4.10.0_e299f0a9b209424c2a6c150f5a1a8167/node_modules/@nuxt/ui/dist/runtime/composables/useResizable.js
|
|
218
|
-
function useResizable(key, options = {}, { collapsed = ref(false) } = {}) {
|
|
219
|
-
const el = ref(null);
|
|
220
|
-
const opts = computed(() => ({
|
|
221
|
-
side: "left",
|
|
222
|
-
minSize: 0,
|
|
223
|
-
maxSize: 100,
|
|
224
|
-
defaultSize: 0,
|
|
225
|
-
storage: "cookie",
|
|
226
|
-
persistent: true,
|
|
227
|
-
collapsible: false,
|
|
228
|
-
collapsedSize: 0,
|
|
229
|
-
resizable: true,
|
|
230
|
-
unit: "%",
|
|
231
|
-
...isRef(options) ? options.value : options
|
|
232
|
-
}));
|
|
233
|
-
const { dir } = useLocale();
|
|
234
|
-
const defaultStorageValue = {
|
|
235
|
-
size: opts.value.defaultSize,
|
|
236
|
-
collapsed: unref(collapsed) ?? false
|
|
237
|
-
};
|
|
238
|
-
const storageData = opts.value.persistent && (opts.value.resizable || opts.value.collapsible) ? opts.value.storage === "cookie" ? useCookie(key, {
|
|
239
|
-
...opts.value.storageOptions,
|
|
240
|
-
default: () => defaultStorageValue
|
|
241
|
-
}) : useStorage(key, defaultStorageValue, void 0, opts.value.storageOptions) : ref(defaultStorageValue);
|
|
242
|
-
const writeStorage = (patch) => {
|
|
243
|
-
if (storageData.value) Object.assign(storageData.value, patch);
|
|
244
|
-
else storageData.value = {
|
|
245
|
-
...defaultStorageValue,
|
|
246
|
-
...patch
|
|
247
|
-
};
|
|
248
|
-
};
|
|
249
|
-
const isCollapsed = computed({
|
|
250
|
-
get: () => storageData.value?.collapsed ?? defaultStorageValue.collapsed,
|
|
251
|
-
set: (value) => {
|
|
252
|
-
if (!opts.value.collapsible) return;
|
|
253
|
-
if (isRef(collapsed)) collapsed.value = value;
|
|
254
|
-
writeStorage({ collapsed: value });
|
|
255
|
-
}
|
|
256
|
-
});
|
|
257
|
-
const previousSize = ref(opts.value.defaultSize);
|
|
258
|
-
const size = computed({
|
|
259
|
-
get: () => storageData.value?.size ?? opts.value.defaultSize,
|
|
260
|
-
set: (value) => {
|
|
261
|
-
writeStorage({ size: value });
|
|
262
|
-
}
|
|
263
|
-
});
|
|
264
|
-
const currentSize = computed(() => isCollapsed.value ? opts.value.collapsedSize : size.value);
|
|
265
|
-
const isDragging = ref(false);
|
|
266
|
-
const getRootFontSize = () => opts.value.unit === "rem" ? Number.parseFloat(getComputedStyle((void 0).documentElement).fontSize) : 1;
|
|
267
|
-
const resize = (clientX, initialPos, initialSize, rootFontSize) => {
|
|
268
|
-
if (!el.value || !opts.value.resizable) return;
|
|
269
|
-
const parentSize = el.value.parentElement?.offsetWidth || 1;
|
|
270
|
-
const isRtl = dir.value === "rtl";
|
|
271
|
-
let delta;
|
|
272
|
-
if (isRtl) delta = opts.value.side === "left" ? initialPos - clientX : clientX - initialPos;
|
|
273
|
-
else delta = opts.value.side === "left" ? clientX - initialPos : initialPos - clientX;
|
|
274
|
-
const newSize = initialSize + delta;
|
|
275
|
-
let newValue;
|
|
276
|
-
if (opts.value.unit === "rem") newValue = newSize / rootFontSize;
|
|
277
|
-
else if (opts.value.unit === "px") newValue = newSize;
|
|
278
|
-
else newValue = newSize / parentSize * 100;
|
|
279
|
-
if (opts.value.collapsible && newValue < opts.value.collapsedSize + 4) {
|
|
280
|
-
collapse(true);
|
|
281
|
-
return;
|
|
282
|
-
} else if (isCollapsed.value) collapse(false);
|
|
283
|
-
size.value = Math.min(opts.value.maxSize, Math.max(opts.value.minSize, newValue));
|
|
284
|
-
};
|
|
285
|
-
const onMouseDown = (e) => {
|
|
286
|
-
if (!el.value || !opts.value.resizable) return;
|
|
287
|
-
e.preventDefault();
|
|
288
|
-
e.stopPropagation();
|
|
289
|
-
const elWidth = el.value.getBoundingClientRect().width;
|
|
290
|
-
if (!elWidth) return;
|
|
291
|
-
const initialX = e.clientX;
|
|
292
|
-
const initialWidth = elWidth;
|
|
293
|
-
const rootFontSize = getRootFontSize();
|
|
294
|
-
isDragging.value = true;
|
|
295
|
-
const handleMouseMove = (e2) => {
|
|
296
|
-
resize(e2.clientX, initialX, initialWidth, rootFontSize);
|
|
297
|
-
};
|
|
298
|
-
const handleMouseUp = () => {
|
|
299
|
-
isDragging.value = false;
|
|
300
|
-
(void 0).removeEventListener("mousemove", handleMouseMove);
|
|
301
|
-
(void 0).removeEventListener("mouseup", handleMouseUp);
|
|
302
|
-
};
|
|
303
|
-
(void 0).addEventListener("mousemove", handleMouseMove);
|
|
304
|
-
(void 0).addEventListener("mouseup", handleMouseUp);
|
|
305
|
-
};
|
|
306
|
-
const onTouchStart = (e) => {
|
|
307
|
-
if (!el.value || !opts.value.resizable || !e.touches[0]) return;
|
|
308
|
-
e.preventDefault();
|
|
309
|
-
e.stopPropagation();
|
|
310
|
-
const elWidth = el.value.getBoundingClientRect().width;
|
|
311
|
-
if (!elWidth) return;
|
|
312
|
-
const initialX = e.touches[0].clientX;
|
|
313
|
-
const initialWidth = elWidth;
|
|
314
|
-
const rootFontSize = getRootFontSize();
|
|
315
|
-
isDragging.value = true;
|
|
316
|
-
const handleTouchMove = (e2) => {
|
|
317
|
-
if (e2.touches[0]) resize(e2.touches[0].clientX, initialX, initialWidth, rootFontSize);
|
|
318
|
-
};
|
|
319
|
-
const handleTouchEnd = () => {
|
|
320
|
-
isDragging.value = false;
|
|
321
|
-
(void 0).removeEventListener("touchmove", handleTouchMove);
|
|
322
|
-
(void 0).removeEventListener("touchend", handleTouchEnd);
|
|
323
|
-
(void 0).removeEventListener("touchcancel", handleTouchEnd);
|
|
324
|
-
};
|
|
325
|
-
(void 0).addEventListener("touchmove", handleTouchMove, { passive: false });
|
|
326
|
-
(void 0).addEventListener("touchend", handleTouchEnd);
|
|
327
|
-
(void 0).addEventListener("touchcancel", handleTouchEnd);
|
|
328
|
-
};
|
|
329
|
-
const onDoubleClick = (e) => {
|
|
330
|
-
if (!el.value || !opts.value.resizable) return;
|
|
331
|
-
e.preventDefault();
|
|
332
|
-
e.stopPropagation();
|
|
333
|
-
if (isCollapsed.value) collapse(false);
|
|
334
|
-
size.value = opts.value.defaultSize;
|
|
335
|
-
};
|
|
336
|
-
const collapse = (value) => {
|
|
337
|
-
if (!opts.value.collapsible) return;
|
|
338
|
-
const newCollapsed = value ?? !isCollapsed.value;
|
|
339
|
-
if (newCollapsed && !isCollapsed.value) previousSize.value = size.value;
|
|
340
|
-
else if (!newCollapsed && isCollapsed.value) size.value = previousSize.value;
|
|
341
|
-
isCollapsed.value = newCollapsed;
|
|
342
|
-
};
|
|
343
|
-
if (isRef(collapsed) && storageData.value?.collapsed) collapsed.value = storageData.value.collapsed;
|
|
344
|
-
if (isRef(collapsed)) watch(collapsed, (value) => {
|
|
345
|
-
if (!opts.value.collapsible) return;
|
|
346
|
-
if (storageData.value?.collapsed !== value) isCollapsed.value = value;
|
|
347
|
-
});
|
|
348
|
-
return {
|
|
349
|
-
el,
|
|
350
|
-
size: currentSize,
|
|
351
|
-
isDragging,
|
|
352
|
-
isCollapsed,
|
|
353
|
-
onMouseDown,
|
|
354
|
-
onTouchStart,
|
|
355
|
-
onDoubleClick,
|
|
356
|
-
collapse
|
|
357
|
-
};
|
|
358
|
-
}
|
|
359
|
-
//#endregion
|
|
360
|
-
//#region virtual:nuxt:node_modules%2F.cache%2Fnuxt%2F.nuxt%2Fui%2Fdashboard-resize-handle.ts
|
|
361
|
-
var virtual_nuxt_node_modules_2F_cache_2Fnuxt_2F_nuxt_2Fui_2Fdashboard_resize_handle_default = { "base": "hidden lg:block touch-none select-none cursor-ew-resize relative before:absolute before:inset-y-0 before:-left-1.5 before:-right-1.5 before:z-1" };
|
|
362
|
-
//#endregion
|
|
363
|
-
//#region node_modules/.pnpm/@nuxt+ui@4.10.0_e299f0a9b209424c2a6c150f5a1a8167/node_modules/@nuxt/ui/dist/runtime/components/DashboardResizeHandle.vue
|
|
364
|
-
var _sfc_main$1 = {
|
|
365
|
-
__name: "UDashboardResizeHandle",
|
|
366
|
-
__ssrInlineRender: true,
|
|
367
|
-
props: {
|
|
368
|
-
as: {
|
|
369
|
-
type: null,
|
|
370
|
-
required: false
|
|
371
|
-
},
|
|
372
|
-
class: {
|
|
373
|
-
type: null,
|
|
374
|
-
required: false
|
|
375
|
-
},
|
|
376
|
-
ui: {
|
|
377
|
-
type: Object,
|
|
378
|
-
required: false
|
|
379
|
-
}
|
|
380
|
-
},
|
|
381
|
-
setup(__props) {
|
|
382
|
-
const props = useComponentProps("dashboardResizeHandle", __props);
|
|
383
|
-
const appConfig = useAppConfig();
|
|
384
|
-
const ui = computed(() => tv({
|
|
385
|
-
extend: virtual_nuxt_node_modules_2F_cache_2Fnuxt_2F_nuxt_2Fui_2Fdashboard_resize_handle_default,
|
|
386
|
-
...appConfig.ui?.dashboardResizeHandle || {}
|
|
387
|
-
}));
|
|
388
|
-
return (_ctx, _push, _parent, _attrs) => {
|
|
389
|
-
_push(ssrRenderComponent(unref(Primitive), mergeProps({
|
|
390
|
-
as: unref(props).as,
|
|
391
|
-
role: "separator",
|
|
392
|
-
class: ui.value({ class: [unref(props).ui?.base, unref(props).class] })
|
|
393
|
-
}, _attrs), {
|
|
394
|
-
default: withCtx((_, _push, _parent, _scopeId) => {
|
|
395
|
-
if (_push) ssrRenderSlot(_ctx.$slots, "default", {}, null, _push, _parent, _scopeId);
|
|
396
|
-
else return [renderSlot(_ctx.$slots, "default")];
|
|
397
|
-
}),
|
|
398
|
-
_: 3
|
|
399
|
-
}, _parent));
|
|
400
|
-
};
|
|
401
|
-
}
|
|
402
|
-
};
|
|
403
|
-
var _sfc_setup$1 = _sfc_main$1.setup;
|
|
404
|
-
_sfc_main$1.setup = (props, ctx) => {
|
|
405
|
-
const ssrContext = useSSRContext();
|
|
406
|
-
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("../node_modules/.pnpm/@nuxt+ui@4.10.0_e299f0a9b209424c2a6c150f5a1a8167/node_modules/@nuxt/ui/dist/runtime/components/DashboardResizeHandle.vue");
|
|
407
|
-
return _sfc_setup$1 ? _sfc_setup$1(props, ctx) : void 0;
|
|
408
|
-
};
|
|
409
|
-
//#endregion
|
|
410
|
-
//#region virtual:nuxt:node_modules%2F.cache%2Fnuxt%2F.nuxt%2Fui%2Fdashboard-sidebar-toggle.ts
|
|
411
|
-
var virtual_nuxt_node_modules_2F_cache_2Fnuxt_2F_nuxt_2Fui_2Fdashboard_sidebar_toggle_default = {
|
|
412
|
-
"base": "lg:hidden",
|
|
413
|
-
"variants": { "side": {
|
|
414
|
-
"left": "",
|
|
415
|
-
"right": ""
|
|
416
|
-
} }
|
|
417
|
-
};
|
|
418
|
-
//#endregion
|
|
419
|
-
//#region node_modules/.pnpm/@nuxt+ui@4.10.0_e299f0a9b209424c2a6c150f5a1a8167/node_modules/@nuxt/ui/dist/runtime/components/DashboardSidebarToggle.vue
|
|
420
|
-
var _sfc_main = /*@__PURE__*/ Object.assign({ inheritAttrs: false }, {
|
|
421
|
-
__name: "UDashboardSidebarToggle",
|
|
422
|
-
__ssrInlineRender: true,
|
|
423
|
-
props: {
|
|
424
|
-
color: {
|
|
425
|
-
type: null,
|
|
426
|
-
required: false,
|
|
427
|
-
default: "neutral"
|
|
428
|
-
},
|
|
429
|
-
variant: {
|
|
430
|
-
type: null,
|
|
431
|
-
required: false,
|
|
432
|
-
default: "ghost"
|
|
433
|
-
},
|
|
434
|
-
side: {
|
|
435
|
-
type: String,
|
|
436
|
-
required: false,
|
|
437
|
-
default: "left"
|
|
438
|
-
},
|
|
439
|
-
ui: {
|
|
440
|
-
type: Object,
|
|
441
|
-
required: false
|
|
442
|
-
},
|
|
443
|
-
label: {
|
|
444
|
-
type: String,
|
|
445
|
-
required: false
|
|
446
|
-
},
|
|
447
|
-
activeColor: {
|
|
448
|
-
type: null,
|
|
449
|
-
required: false
|
|
450
|
-
},
|
|
451
|
-
activeVariant: {
|
|
452
|
-
type: null,
|
|
453
|
-
required: false
|
|
454
|
-
},
|
|
455
|
-
size: {
|
|
456
|
-
type: null,
|
|
457
|
-
required: false
|
|
458
|
-
},
|
|
459
|
-
square: {
|
|
460
|
-
type: Boolean,
|
|
461
|
-
required: false
|
|
462
|
-
},
|
|
463
|
-
block: {
|
|
464
|
-
type: Boolean,
|
|
465
|
-
required: false
|
|
466
|
-
},
|
|
467
|
-
loadingAuto: {
|
|
468
|
-
type: Boolean,
|
|
469
|
-
required: false
|
|
470
|
-
},
|
|
471
|
-
onClick: {
|
|
472
|
-
type: [Function, Array],
|
|
473
|
-
required: false
|
|
474
|
-
},
|
|
475
|
-
class: {
|
|
476
|
-
type: null,
|
|
477
|
-
required: false
|
|
478
|
-
},
|
|
479
|
-
icon: {
|
|
480
|
-
type: null,
|
|
481
|
-
required: false
|
|
482
|
-
},
|
|
483
|
-
avatar: {
|
|
484
|
-
type: Object,
|
|
485
|
-
required: false
|
|
486
|
-
},
|
|
487
|
-
leading: {
|
|
488
|
-
type: Boolean,
|
|
489
|
-
required: false
|
|
490
|
-
},
|
|
491
|
-
leadingIcon: {
|
|
492
|
-
type: null,
|
|
493
|
-
required: false
|
|
494
|
-
},
|
|
495
|
-
trailing: {
|
|
496
|
-
type: Boolean,
|
|
497
|
-
required: false
|
|
498
|
-
},
|
|
499
|
-
trailingIcon: {
|
|
500
|
-
type: null,
|
|
501
|
-
required: false
|
|
502
|
-
},
|
|
503
|
-
loading: {
|
|
504
|
-
type: Boolean,
|
|
505
|
-
required: false
|
|
506
|
-
},
|
|
507
|
-
loadingIcon: {
|
|
508
|
-
type: null,
|
|
509
|
-
required: false
|
|
510
|
-
},
|
|
511
|
-
as: {
|
|
512
|
-
type: null,
|
|
513
|
-
required: false
|
|
514
|
-
},
|
|
515
|
-
type: {
|
|
516
|
-
type: null,
|
|
517
|
-
required: false
|
|
518
|
-
},
|
|
519
|
-
disabled: {
|
|
520
|
-
type: Boolean,
|
|
521
|
-
required: false
|
|
522
|
-
},
|
|
523
|
-
exactActiveClass: {
|
|
524
|
-
type: String,
|
|
525
|
-
required: false
|
|
526
|
-
},
|
|
527
|
-
viewTransition: {
|
|
528
|
-
type: Boolean,
|
|
529
|
-
required: false
|
|
530
|
-
}
|
|
531
|
-
},
|
|
532
|
-
setup(__props) {
|
|
533
|
-
const props = useComponentProps("dashboardSidebarToggle", __props);
|
|
534
|
-
const buttonProps = useForwardProps(reactiveOmit(props, "icon", "side", "class"));
|
|
535
|
-
const { t } = useLocale();
|
|
536
|
-
const appConfig = useAppConfig();
|
|
537
|
-
const { sidebarOpen, toggleSidebar } = useDashboard({
|
|
538
|
-
sidebarOpen: ref(false),
|
|
539
|
-
toggleSidebar: () => {}
|
|
540
|
-
});
|
|
541
|
-
const ui = computed(() => tv({
|
|
542
|
-
extend: virtual_nuxt_node_modules_2F_cache_2Fnuxt_2F_nuxt_2Fui_2Fdashboard_sidebar_toggle_default,
|
|
543
|
-
...appConfig.ui?.dashboardSidebarToggle || {}
|
|
544
|
-
}));
|
|
545
|
-
return (_ctx, _push, _parent, _attrs) => {
|
|
546
|
-
_push(ssrRenderComponent(_sfc_main$2, mergeProps({
|
|
547
|
-
...unref(buttonProps),
|
|
548
|
-
"icon": unref(props).icon || (unref(sidebarOpen) ? unref(appConfig).ui.icons.close : unref(appConfig).ui.icons.menu),
|
|
549
|
-
"aria-label": unref(sidebarOpen) ? unref(t)("dashboardSidebarToggle.close") : unref(t)("dashboardSidebarToggle.open"),
|
|
550
|
-
..._ctx.$attrs
|
|
551
|
-
}, {
|
|
552
|
-
class: ui.value({
|
|
553
|
-
class: [unref(props).ui?.base, unref(props).class],
|
|
554
|
-
side: unref(props).side
|
|
555
|
-
}),
|
|
556
|
-
onClick: unref(toggleSidebar)
|
|
557
|
-
}, _attrs), null, _parent));
|
|
558
|
-
};
|
|
559
|
-
}
|
|
560
|
-
});
|
|
561
|
-
var _sfc_setup = _sfc_main.setup;
|
|
562
|
-
_sfc_main.setup = (props, ctx) => {
|
|
563
|
-
const ssrContext = useSSRContext();
|
|
564
|
-
(ssrContext.modules || (ssrContext.modules = /* @__PURE__ */ new Set())).add("../node_modules/.pnpm/@nuxt+ui@4.10.0_e299f0a9b209424c2a6c150f5a1a8167/node_modules/@nuxt/ui/dist/runtime/components/DashboardSidebarToggle.vue");
|
|
565
|
-
return _sfc_setup ? _sfc_setup(props, ctx) : void 0;
|
|
566
|
-
};
|
|
567
|
-
|
|
568
|
-
export { DismissableLayer_default as D, _sfc_main$1 as _, useDirection as a, useDashboard as b, useResizable as c, _sfc_main as d, handleAndDispatchCustomEvent as h, provideDashboardContext as p, useId$1 as u };
|
|
569
|
-
//# sourceMappingURL=DashboardSidebarToggle-D24DGyKq.mjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DashboardSidebarToggle-D24DGyKq.mjs","sources":["../../../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/shared/handleAndDispatchCustomEvent.js","../../../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/shared/useDirection.js","../../../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/shared/useId.js","../../../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/DismissableLayer/utils.js","../../../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/DismissableLayer/DismissableLayer.js","../../../../node_modules/.pnpm/@nuxt+ui@4.10.0_e299f0a9b209424c2a6c150f5a1a8167/node_modules/@nuxt/ui/dist/runtime/utils/dashboard.js","../../../../node_modules/.pnpm/@nuxt+ui@4.10.0_e299f0a9b209424c2a6c150f5a1a8167/node_modules/@nuxt/ui/dist/runtime/composables/useResizable.js","../../../../virtual:nuxt:node_modules%2F.cache%2Fnuxt%2F.nuxt%2Fui%2Fdashboard-resize-handle.ts","../../../../node_modules/.pnpm/@nuxt+ui@4.10.0_e299f0a9b209424c2a6c150f5a1a8167/node_modules/@nuxt/ui/dist/runtime/components/DashboardResizeHandle.vue","../../../../virtual:nuxt:node_modules%2F.cache%2Fnuxt%2F.nuxt%2Fui%2Fdashboard-sidebar-toggle.ts","../../../../node_modules/.pnpm/@nuxt+ui@4.10.0_e299f0a9b209424c2a6c150f5a1a8167/node_modules/@nuxt/ui/dist/runtime/components/DashboardSidebarToggle.vue"],"names":["useId","$attrs"],"mappings":"","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PopperArrow-xcjACqm-.mjs","sources":["../../../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/shared/useForwardPropsEmits.js","../../../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/shared/useSize.js","../../../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/Popper/PopperRoot.js","../../../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/Popper/PopperAnchor.js","../../../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/component/Arrow.js","../../../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/Popper/utils.js","../../../../node_modules/.pnpm/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.mjs","../../../../node_modules/.pnpm/@floating-ui+core@1.8.0/node_modules/@floating-ui/core/dist/floating-ui.core.mjs","../../../../node_modules/.pnpm/@floating-ui+utils@0.2.12/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.mjs","../../../../node_modules/.pnpm/@floating-ui+dom@1.8.0/node_modules/@floating-ui/dom/dist/floating-ui.dom.mjs","../../../../node_modules/.pnpm/nuxt@4.5.2_@babel+plugin-syntax-jsx@7.29.7_@babel+core@7.29.7__@babel+plugin-syntax-typ_e8b326918adce583caf1abc0a3047151/node_modules/nuxt/dist/app/compat/capi.js","../../../../node_modules/.pnpm/@floating-ui+vue@1.1.11_vue@3.5.41_typescript@6.0.3_/node_modules/@floating-ui/vue/dist/floating-ui.vue.mjs","../../../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/Popper/PopperContent.js","../../../../node_modules/.pnpm/reka-ui@2.10.1_vue@3.5.41_typescript@6.0.3_/node_modules/reka-ui/dist/Popper/PopperArrow.js"],"names":["useForwardProps","_hoisted_1","computePosition","arrow","flip","hide","offset","shift","limitShift","size","getComputedStyle","unwrapElement","arrow$1","toValue","unref","computed","ref","shallowRef","getCurrentScope","shallowReadonly"],"mappings":"","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11,12,13]}
|