aiex-cli 0.0.1-beta.28 → 0.0.1-beta.29
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/dist/cli.mjs +151 -26
- package/dist/core/schema-sqlite/migrate-helper.mjs +15 -28
- package/dist/{doctor-collector-D2q6iD_e.mjs → doctor-collector-j2dG7dG1.mjs} +41 -4
- package/dist/index.mjs +1 -1
- package/dist/web/assets/AISettings-Dn58ZHhM.js +339 -0
- package/dist/web/assets/DataBrowser-B6WECCZM.js +6 -0
- package/dist/web/assets/{ExtractionViewer-WMUdXeyU.js → ExtractionViewer-CTS1RXzc.js} +1 -1
- package/dist/web/assets/JsonSchemaEditor-Dpgu6HPz.js +570 -0
- package/dist/web/assets/api-client-CbQEkaKT.js +1 -0
- package/dist/web/assets/dialog-CUkPLPNP.js +109 -0
- package/dist/web/assets/{index-CuOQk7nB.js → index-g2pWXPQZ.js} +38 -38
- package/dist/web/assets/object-utils-DPPzLQjH.js +1 -0
- package/dist/web/assets/select-DyjIzt-v.js +439 -0
- package/dist/web/index.html +5 -5
- package/package.json +5 -1
- package/src/core/schema-sqlite/migrate-helper.ts +15 -40
- package/dist/web/assets/AISettings-DFi-nXIi.js +0 -334
- package/dist/web/assets/DataBrowser-BWSX8O2h.js +0 -5
- package/dist/web/assets/JsonSchemaEditor-B57coz1O.js +0 -929
- package/dist/web/assets/api-client-By2rWtpv.js +0 -1
- package/dist/web/assets/dialog-dMXSeJQQ.js +0 -108
- package/dist/web/assets/overlayeventbus-CRKW6UCj.js +0 -80
- package/dist/web/assets/table-schema-C90NJyfq.js +0 -2
- /package/dist/web/assets/{runtime-dom.esm-bundler-DmdkgxQM.js → runtime-dom.esm-bundler-ei_N7Xjw.js} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{A as e,B as t,F as n,Ft as r,H as i,It as a,K as o,L as s,Lt as c,M as l,N as ee,Pt as u,S as d,U as f,X as p,_ as m,d as h,et as g,g as _,h as v,ht as y,lt as b,m as x,nt as S,tt as C,v as w,w as T,x as E}from"./button-Cdgr9Igy.js";var D=1,O=new class{subscribers;toasts;dismissedToasts;constructor(){this.subscribers=[],this.toasts=[],this.dismissedToasts=new Set}subscribe=e=>(this.subscribers.push(e),()=>{let t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)});publish=e=>{this.subscribers.forEach(t=>t(e))};addToast=e=>{this.publish(e),this.toasts=[...this.toasts,e]};create=e=>{let{message:t,...n}=e,r=typeof e.id==`number`||e.id&&e.id?.length>0?e.id:D++,i=this.toasts.find(e=>e.id===r),a=e.dismissible===void 0?!0:e.dismissible;return this.dismissedToasts.has(r)&&this.dismissedToasts.delete(r),i?this.toasts=this.toasts.map(n=>n.id===r?(this.publish({...n,...e,id:r,title:t}),{...n,...e,id:r,dismissible:a,title:t}):n):this.addToast({title:t,...n,dismissible:a,id:r}),r};dismiss=e=>(e?(this.dismissedToasts.add(e),requestAnimationFrame(()=>this.subscribers.forEach(t=>t({id:e,dismiss:!0})))):this.toasts.forEach(e=>{this.subscribers.forEach(t=>t({id:e.id,dismiss:!0}))}),e);message=(e,t)=>this.create({...t,message:e,type:`default`});error=(e,t)=>this.create({...t,type:`error`,message:e});success=(e,t)=>this.create({...t,type:`success`,message:e});info=(e,t)=>this.create({...t,type:`info`,message:e});warning=(e,t)=>this.create({...t,type:`warning`,message:e});loading=(e,t)=>this.create({...t,type:`loading`,message:e});promise=(t,n)=>{if(!n)return;let r;n.loading!==void 0&&(r=this.create({...n,promise:t,type:`loading`,message:n.loading,description:typeof n.description==`function`?void 0:n.description}));let i=Promise.resolve(t instanceof Function?t():t),a=r!==void 0,o,s=i.then(async t=>{if(o=[`resolve`,t],e(t))a=!1,this.create({id:r,type:`default`,message:t});else if(A(t)&&!t.ok){a=!1;let i=typeof n.error==`function`?await n.error(`HTTP error! status: ${t.status}`):n.error,o=typeof n.description==`function`?await n.description(`HTTP error! status: ${t.status}`):n.description,s=typeof i==`object`&&!e(i)?i:{message:i||``,id:r||``};this.create({id:r,type:`error`,description:o,...s})}else if(t instanceof Error){a=!1;let i=typeof n.error==`function`?await n.error(t):n.error,o=typeof n.description==`function`?await n.description(t):n.description,s=typeof i==`object`&&!e(i)?i:{message:i||``,id:r||``};this.create({id:r,type:`error`,description:o,...s})}else if(n.success!==void 0){a=!1;let i=typeof n.success==`function`?await n.success(t):n.success,o=typeof n.description==`function`?await n.description(t):n.description,s=typeof i==`object`&&!e(i)?i:{message:i||``,id:r||``};this.create({id:r,type:`success`,description:o,...s})}}).catch(async t=>{if(o=[`reject`,t],n.error!==void 0){a=!1;let i=typeof n.error==`function`?await n.error(t):n.error,o=typeof n.description==`function`?await n.description(t):n.description,s=typeof i==`object`&&!e(i)?i:{message:i||``,id:r||``};this.create({id:r,type:`error`,description:o,...s})}}).finally(()=>{a&&(this.dismiss(r),r=void 0),n.finally?.()}),c=()=>new Promise((e,t)=>s.then(()=>o[0]===`reject`?t(o[1]):e(o[1])).catch(t));return typeof r!=`string`&&typeof r!=`number`?{unwrap:c}:Object.assign(r,{unwrap:c})};custom=(e,t)=>{let n=t?.id||D++,r=this.toasts.find(e=>e.id===n),i=t?.dismissible===void 0?!0:t.dismissible;return this.dismissedToasts.has(n)&&this.dismissedToasts.delete(n),r?this.toasts=this.toasts.map(r=>r.id===n?(this.publish({...r,component:e,dismissible:i,id:n,...t}),{...r,component:e,dismissible:i,id:n,...t}):r):this.addToast({component:e,dismissible:i,id:n,...t}),n};getActiveToasts=()=>this.toasts.filter(e=>!this.dismissedToasts.has(e.id))};function k(e,t){let n=t?.id||D++;return O.create({message:e,id:n,type:`default`,...t}),n}var A=e=>e&&typeof e==`object`&&`ok`in e&&typeof e.ok==`boolean`&&`status`in e&&typeof e.status==`number`,j=Object.assign(k,{success:O.success,info:O.info,warning:O.warning,error:O.error,custom:O.custom,message:O.message,promise:O.promise,dismiss:O.dismiss,loading:O.loading},{getHistory:()=>O.toasts,getToasts:()=>O.getActiveToasts()});function M(e){return e.label!==void 0}var N=3,P=`24px`,F=`16px`,I=4e3,L=356,R=14,te=45,ne=200;function z(){let e=b(!1);return C(()=>{let t=()=>{e.value=document.hidden};return document.addEventListener(`visibilitychange`,t),()=>window.removeEventListener(`visibilitychange`,t)}),{isDocumentHidden:e}}function B(...e){return e.filter(Boolean).join(` `)}function re(e){let[t,n]=e.split(`-`),r=[];return t&&r.push(t),n&&r.push(n),r}function ie(e,t){let n={};return[e,t].forEach((e,t)=>{let r=t===1,i=r?`--mobile-offset`:`--offset`,a=r?F:P;function o(e){[`top`,`right`,`bottom`,`left`].forEach(t=>{n[`${i}-${t}`]=typeof e==`number`?`${e}px`:e})}typeof e==`number`||typeof e==`string`?o(e):typeof e==`object`?[`top`,`right`,`bottom`,`left`].forEach(t=>{e[t]===void 0?n[`${i}-${t}`]=a:n[`${i}-${t}`]=typeof e[t]==`number`?`${e[t]}px`:e[t]}):o(a)}),n}var ae=[`data-rich-colors`,`data-styled`,`data-mounted`,`data-promise`,`data-swiped`,`data-removed`,`data-visible`,`data-y-position`,`data-x-position`,`data-index`,`data-front`,`data-swiping`,`data-dismissible`,`data-type`,`data-invert`,`data-swipe-out`,`data-swipe-direction`,`data-expanded`,`data-testid`],oe=[`aria-label`,`data-disabled`,`data-close-button-position`],V=T({__name:`Toast`,props:{toast:{},toasts:{},index:{},swipeDirections:{},expanded:{type:Boolean},invert:{type:Boolean},heights:{},gap:{},position:{},closeButtonPosition:{},visibleToasts:{},expandByDefault:{type:Boolean},closeButton:{type:Boolean},interacting:{type:Boolean},style:{},cancelButtonStyle:{},actionButtonStyle:{},duration:{},class:{},unstyled:{type:Boolean},descriptionClass:{},loadingIcon:{},classes:{},icons:{},closeButtonAriaLabel:{},defaultRichColors:{type:Boolean}},emits:[`update:heights`,`update:height`,`removeToast`],setup(e,{emit:i}){let d=e,p=i,S=b(null),T=b(null),D=b(!1),O=b(!1),k=b(!1),A=b(!1),j=b(!1),N=b(0),P=b(0),F=b(d.toast.duration||d.duration||I),L=b(null),R=b(null),ie=x(()=>d.index===0),V=x(()=>d.index+1<=d.visibleToasts),H=x(()=>d.toast.type),U=x(()=>d.toast.dismissible!==!1),se=x(()=>d.toast.class||``),ce=x(()=>d.descriptionClass||``),W=x(()=>{let e=d.toast.position||d.position,t=d.heights.filter(t=>t.position===e).findIndex(e=>e.toastId===d.toast.id);return t>=0?t:0}),le=x(()=>{let e=d.toast.position||d.position;return d.heights.filter(t=>t.position===e).reduce((e,t,n)=>n>=W.value?e:e+t.height,0)}),G=x(()=>W.value*d.gap+le.value||0),ue=x(()=>d.toast.closeButton??d.closeButton),de=x(()=>d.toast.duration||d.duration||I),K=b(0),q=b(0),J=b(null),Y=x(()=>d.position.split(`-`)),fe=x(()=>Y.value[0]),pe=x(()=>Y.value[1]),me=x(()=>typeof d.toast.title!=`string`),he=x(()=>typeof d.toast.description!=`string`),{isDocumentHidden:X}=z(),Z=x(()=>H.value&&H.value===`loading`);s(()=>{D.value=!0,F.value=de.value}),C(async()=>{if(!D.value||!R.value)return;await ee();let e=R.value,t=e.style.height;e.style.height=`auto`;let n=e.getBoundingClientRect().height;e.style.height=t,P.value=n,p(`update:height`,{toastId:d.toast.id,height:n,position:d.toast.position||d.position})});function Q(){O.value=!0,N.value=G.value,setTimeout(()=>{p(`removeToast`,d.toast)},ne)}function $(){if(Z.value||!U.value)return{};Q(),d.toast.onDismiss?.(d.toast)}function ge(e){e.button!==2&&(Z.value||!U.value||(L.value=new Date,N.value=G.value,e.target.setPointerCapture(e.pointerId),e.target.tagName!==`BUTTON`&&(k.value=!0,J.value={x:e.clientX,y:e.clientY})))}function _e(){if(A.value||!U.value)return;J.value=null;let e=Number(R.value?.style.getPropertyValue(`--swipe-amount-x`).replace(`px`,``)||0),t=Number(R.value?.style.getPropertyValue(`--swipe-amount-y`).replace(`px`,``)||0),n=new Date().getTime()-(L.value?.getTime()||0),r=S.value===`x`?e:t,i=Math.abs(r)/n;if(Math.abs(r)>=te||i>.11){N.value=G.value,d.toast.onDismiss?.(d.toast),S.value===`x`?T.value=e>0?`right`:`left`:T.value=t>0?`down`:`up`,Q(),A.value=!0;return}else R.value?.style.setProperty(`--swipe-amount-x`,`0px`),R.value?.style.setProperty(`--swipe-amount-y`,`0px`);j.value=!1,k.value=!1,S.value=null}function ve(e){if(!J.value||!U.value||(window?.getSelection()?.toString()?.length??!1))return;let t=e.clientY-J.value.y,n=e.clientX-J.value.x,r=d.swipeDirections??re(d.position);!S.value&&(Math.abs(n)>1||Math.abs(t)>1)&&(S.value=Math.abs(n)>Math.abs(t)?`x`:`y`);let i={x:0,y:0},a=e=>1/(1.5+Math.abs(e)/20);if(S.value===`y`){if(r.includes(`top`)||r.includes(`bottom`))if(r.includes(`top`)&&t<0||r.includes(`bottom`)&&t>0)i.y=t;else{let e=t*a(t);i.y=Math.abs(e)<Math.abs(t)?e:t}}else if(S.value===`x`&&(r.includes(`left`)||r.includes(`right`)))if(r.includes(`left`)&&n<0||r.includes(`right`)&&n>0)i.x=n;else{let e=n*a(n);i.x=Math.abs(e)<Math.abs(n)?e:n}(Math.abs(i.x)>0||Math.abs(i.y)>0)&&(j.value=!0),R.value?.style.setProperty(`--swipe-amount-x`,`${i.x}px`),R.value?.style.setProperty(`--swipe-amount-y`,`${i.y}px`)}s(()=>{if(D.value=!0,!R.value)return;let e=R.value.getBoundingClientRect().height;P.value=e,p(`update:heights`,[{toastId:d.toast.id,height:e,position:d.toast.position},...d.heights])}),n(()=>{R.value&&p(`removeToast`,d.toast)}),C(e=>{if(d.toast.promise&&H.value===`loading`||d.toast.duration===1/0||d.toast.type===`loading`)return;let t;d.expanded||d.interacting||X.value?(()=>{if(q.value<K.value){let e=new Date().getTime()-K.value;F.value-=e}q.value=new Date().getTime()})():F.value!==1/0&&(K.value=new Date().getTime(),t=setTimeout(()=>{d.toast.onAutoClose?.(d.toast),Q()},F.value)),e(()=>{clearTimeout(t)})}),g(()=>d.toast.delete,e=>{e!==void 0&&e&&(Q(),d.toast.onDismiss?.(d.toast))},{deep:!0});function ye(){k.value=!1,S.value=null,J.value=null}return(e,n)=>(t(),w(`li`,{tabindex:`0`,ref_key:`toastRef`,ref:R,class:u(y(B)(d.class,se.value,e.classes?.toast,e.toast.classes?.toast,e.classes?.[H.value],e.toast?.classes?.[H.value])),"data-sonner-toast":``,"data-rich-colors":e.toast.richColors??e.defaultRichColors,"data-styled":!(e.toast.component||e.toast?.unstyled||e.unstyled),"data-mounted":D.value,"data-promise":!!e.toast.promise,"data-swiped":j.value,"data-removed":O.value,"data-visible":V.value,"data-y-position":fe.value,"data-x-position":pe.value,"data-index":e.index,"data-front":ie.value,"data-swiping":k.value,"data-dismissible":U.value,"data-type":H.value,"data-invert":e.toast.invert||e.invert,"data-swipe-out":A.value,"data-swipe-direction":T.value,"data-expanded":!!(e.expanded||e.expandByDefault&&D.value),"data-testid":e.toast.testId,style:a({"--index":e.index,"--toasts-before":e.index,"--z-index":e.toasts.length-e.index,"--offset":`${O.value?N.value:G.value}px`,"--initial-height":e.expandByDefault?`auto`:`${P.value}px`,...e.style,...d.toast.style}),onDragend:ye,onPointerdown:ge,onPointerup:_e,onPointermove:ve},[ue.value&&!e.toast.component&&H.value!==`loading`?(t(),w(`button`,{key:0,"aria-label":e.closeButtonAriaLabel||`Close toast`,"data-disabled":Z.value,"data-close-button":`true`,"data-close-button-position":e.closeButtonPosition,class:u(y(B)(e.classes?.closeButton,e.toast?.classes?.closeButton)),onClick:$},[e.icons?.close?(t(),_(o(e.icons?.close),{key:0})):f(e.$slots,`close-icon`,{key:1})],10,oe)):m(`v-if`,!0),e.toast.component?(t(),_(o(e.toast.component),l({key:1},e.toast.componentProps,{onCloseToast:$,isPaused:e.$props.expanded||e.$props.interacting||y(X)}),null,16,[`isPaused`])):(t(),w(h,{key:2},[H.value!==`default`||e.toast.icon||e.toast.promise?(t(),w(`div`,{key:0,"data-icon":``,class:u(y(B)(e.classes?.icon,e.toast?.classes?.icon))},[e.toast.icon?(t(),_(o(e.toast.icon),{key:0})):(t(),w(h,{key:1},[H.value===`loading`?f(e.$slots,`loading-icon`,{key:0}):H.value===`success`?f(e.$slots,`success-icon`,{key:1}):H.value===`error`?f(e.$slots,`error-icon`,{key:2}):H.value===`warning`?f(e.$slots,`warning-icon`,{key:3}):H.value===`info`?f(e.$slots,`info-icon`,{key:4}):m(`v-if`,!0)],64))],2)):m(`v-if`,!0),v(`div`,{"data-content":``,class:u(y(B)(e.classes?.content,e.toast?.classes?.content))},[v(`div`,{"data-title":``,class:u(y(B)(e.classes?.title,e.toast.classes?.title))},[me.value?(t(),_(o(e.toast.title),r(l({key:0},e.toast.componentProps)),null,16)):(t(),w(h,{key:1},[E(c(e.toast.title),1)],64))],2),e.toast.description?(t(),w(`div`,{key:0,"data-description":``,class:u(y(B)(e.descriptionClass,ce.value,e.classes?.description,e.toast.classes?.description))},[he.value?(t(),_(o(e.toast.description),r(l({key:0},e.toast.componentProps)),null,16)):(t(),w(h,{key:1},[E(c(e.toast.description),1)],64))],2)):m(`v-if`,!0)],2),e.toast.cancel?(t(),w(`button`,{key:1,style:a(e.toast.cancelButtonStyle||e.cancelButtonStyle),class:u(y(B)(e.classes?.cancelButton,e.toast.classes?.cancelButton)),"data-button":``,"data-cancel":``,onClick:n[0]||=t=>{y(M)(e.toast.cancel)&&U.value&&(e.toast.cancel.onClick?.(t),Q())}},c(y(M)(e.toast.cancel)?e.toast.cancel?.label:e.toast.cancel),7)):m(`v-if`,!0),e.toast.action?(t(),w(`button`,{key:2,style:a(e.toast.actionButtonStyle||e.actionButtonStyle),class:u(y(B)(e.classes?.actionButton,e.toast.classes?.actionButton)),"data-button":``,"data-action":``,onClick:n[1]||=t=>{y(M)(e.toast.action)&&(e.toast.action.onClick?.(t),!t.defaultPrevented&&Q())}},c(y(M)(e.toast.action)?e.toast.action?.label:e.toast.action),7)):m(`v-if`,!0)],64))],46,ae))}}),H=(e,t)=>{let n=e.__vccOpts||e;for(let[e,r]of t)n[e]=r;return n},U={},se={xmlns:`http://www.w3.org/2000/svg`,width:`12`,height:`12`,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,"stoke-width":`1.5`,"stroke-linecap":`round`,"stroke-linejoin":`round`};function ce(e,n){return t(),w(`svg`,se,n[0]||=[v(`line`,{x1:`18`,y1:`6`,x2:`6`,y2:`18`},null,-1),v(`line`,{x1:`6`,y1:`6`,x2:`18`,y2:`18`},null,-1)])}var W=H(U,[[`render`,ce]]),le=[`data-visible`],G={class:`sonner-spinner`},ue=T({__name:`Loader`,props:{visible:{type:Boolean}},setup(e){let n=Array(12).fill(0);return(e,r)=>(t(),w(`div`,{class:`sonner-loading-wrapper`,"data-visible":e.visible},[v(`div`,G,[(t(!0),w(h,null,i(y(n),e=>(t(),w(`div`,{key:`spinner-bar-${e}`,class:`sonner-loading-bar`}))),128))])],8,le))}}),de={},K={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`};function q(e,n){return t(),w(`svg`,K,n[0]||=[v(`path`,{"fill-rule":`evenodd`,d:`M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z`,"clip-rule":`evenodd`},null,-1)])}var J=H(de,[[`render`,q]]),Y={},fe={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`};function pe(e,n){return t(),w(`svg`,fe,n[0]||=[v(`path`,{"fill-rule":`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z`,"clip-rule":`evenodd`},null,-1)])}var me=H(Y,[[`render`,pe]]),he={},X={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 24 24`,fill:`currentColor`,height:`20`,width:`20`};function Z(e,n){return t(),w(`svg`,X,n[0]||=[v(`path`,{"fill-rule":`evenodd`,d:`M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z`,"clip-rule":`evenodd`},null,-1)])}var Q=H(he,[[`render`,Z]]),$={},ge={xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 20 20`,fill:`currentColor`,height:`20`,width:`20`};function _e(e,n){return t(),w(`svg`,ge,n[0]||=[v(`path`,{"fill-rule":`evenodd`,d:`M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z`,"clip-rule":`evenodd`},null,-1)])}var ve=H($,[[`render`,_e]]),ye=[`aria-label`],be=[`data-sonner-theme`,`dir`,`data-theme`,`data-rich-colors`,`data-y-position`,`data-x-position`],xe=typeof window<`u`&&typeof document<`u`;function Se(){if(typeof window>`u`||typeof document>`u`)return`ltr`;let e=document.documentElement.getAttribute(`dir`);return e===`auto`||!e?window.getComputedStyle(document.documentElement).direction:e}var Ce=T({name:`Toaster`,inheritAttrs:!1,__name:`Toaster`,props:{id:{},invert:{type:Boolean,default:!1},theme:{default:`light`},position:{default:`bottom-right`},closeButtonPosition:{default:`top-left`},hotkey:{default:()=>[`altKey`,`KeyT`]},richColors:{type:Boolean,default:!1},expand:{type:Boolean,default:!1},duration:{},gap:{default:R},visibleToasts:{default:N},closeButton:{type:Boolean,default:!1},toastOptions:{default:()=>({})},class:{default:``},style:{},offset:{default:P},mobileOffset:{default:F},dir:{default:`auto`},swipeDirections:{},icons:{},containerAriaLabel:{default:`Notifications`}},setup(e){let n=e,r=p(),o=b([]),s=x(()=>n.id?o.value.filter(e=>e.toasterId===n.id):o.value.filter(e=>!e.toasterId));function c(e,t){return s.value.filter(n=>!n.position&&t===0||n.position===e)}let g=x(()=>{let e=s.value.filter(e=>e.position).map(e=>e.position);return e.length>0?Array.from(new Set([n.position].concat(e))):[n.position]}),T=x(()=>{let e={};return g.value.forEach(t=>{e[t]=o.value.filter(e=>e.position===t)}),e}),E=b([]),D=b({}),k=b(!1);C(()=>{g.value.forEach(e=>{e in D.value||(D.value[e]=!1)})});let A=b(n.theme===`system`?typeof window<`u`&&window.matchMedia&&window.matchMedia(`(prefers-color-scheme: dark)`).matches?`dark`:`light`:n.theme),j=b(null),M=b(null),N=b(!1),P=n.hotkey.join(`+`).replace(/Key/g,``).replace(/Digit/g,``);function F(e){o.value.find(t=>t.id===e.id)?.delete||O.dismiss(e.id),o.value=o.value.filter(({id:t})=>t!==e.id),setTimeout(()=>{o.value.find(t=>t.id===e.id)||(E.value=E.value.filter(t=>t.toastId!==e.id))},ne+50)}function I(e){N.value&&!e.currentTarget?.contains?.(e.relatedTarget)&&(N.value=!1,M.value&&=(M.value.focus({preventScroll:!0}),null))}function R(e){e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||N.value||(N.value=!0,M.value=e.relatedTarget)}function te(e){e.target&&e.target instanceof HTMLElement&&e.target.dataset.dismissible===`false`||(k.value=!0)}C(e=>{e(O.subscribe(e=>{if(e.dismiss){requestAnimationFrame(()=>{o.value=o.value.map(t=>t.id===e.id?{...t,delete:!0}:t)});return}ee(()=>{let t=o.value.findIndex(t=>t.id===e.id);t===-1?o.value=[e,...o.value]:o.value=[...o.value.slice(0,t),{...o.value[t],...e},...o.value.slice(t+1)]})}))}),C(e=>{if(typeof window>`u`)return;if(n.theme!==`system`){A.value=n.theme;return}let t=window.matchMedia(`(prefers-color-scheme: dark)`),r=e=>{A.value=e?`dark`:`light`};r(t.matches);let i=e=>{r(e.matches)};try{t.addEventListener(`change`,i)}catch{t.addListener(i)}e(()=>{try{t.removeEventListener(`change`,i)}catch{t.removeListener(i)}})}),C(()=>{j.value&&M.value&&(M.value.focus({preventScroll:!0}),M.value=null,N.value=!1)}),C(()=>{o.value.length<=1&&Object.keys(D.value).forEach(e=>{D.value[e]=!1})}),C(e=>{function t(e){let t=n.hotkey.every(t=>e[t]||e.code===t),r=Array.isArray(j.value)?j.value[0]:j.value;t&&(g.value.forEach(e=>{D.value[e]=!0}),r?.focus());let i=document.activeElement===j.value||r?.contains(document.activeElement);e.code===`Escape`&&i&&g.value.forEach(e=>{D.value[e]=!1})}xe&&(document.addEventListener(`keydown`,t),e(()=>{document.removeEventListener(`keydown`,t)}))});function z(e){let t=e.currentTarget,n=t.getAttribute(`data-y-position`)+`-`+t.getAttribute(`data-x-position`);D.value[n]=!0}function B(e){if(!k.value){let t=e.currentTarget,n=t.getAttribute(`data-y-position`)+`-`+t.getAttribute(`data-x-position`);D.value[n]=!1}}function re(){Object.keys(D.value).forEach(e=>{D.value[e]=!1})}function ae(){k.value=!1}function oe(e){E.value=e}function H(e){let t=E.value.findIndex(t=>t.toastId===e.toastId);if(t!==-1)E.value[t]=e;else{let t=E.value.findIndex(t=>t.position===e.position);t===-1?E.value.unshift(e):E.value.splice(t,0,e)}}return(e,o)=>(t(),w(h,null,[m(` Remove item from normal navigation flow, only available via hotkey `),v(`section`,{"aria-label":`${e.containerAriaLabel} ${y(P)}`,tabIndex:-1,"aria-live":`polite`,"aria-relevant":`additions text`,"aria-atomic":`false`},[(t(!0),w(h,null,i(g.value,(o,s)=>(t(),w(`ol`,l({key:o,ref_for:!0,ref_key:`listRef`,ref:j,"data-sonner-toaster":``,"data-sonner-theme":A.value,class:n.class,dir:e.dir===`auto`?Se():e.dir,tabIndex:-1,"data-theme":e.theme,"data-rich-colors":e.richColors,"data-y-position":o.split(`-`)[0],"data-x-position":o.split(`-`)[1],style:{"--front-toast-height":`${E.value[0]?.height||0}px`,"--width":`${y(L)}px`,"--gap":`${e.gap}px`,...e.style,...y(r).style,...y(ie)(e.offset,e.mobileOffset)}},{ref_for:!0},e.$attrs,{onBlur:I,onFocus:R,onMouseenter:z,onMousemove:z,onMouseleave:B,onDragend:re,onPointerdown:te,onPointerup:ae}),[(t(!0),w(h,null,i(c(o,s),(r,i)=>(t(),_(V,{key:r.id,heights:E.value,icons:e.icons,index:i,toast:r,defaultRichColors:e.richColors,duration:e.toastOptions?.duration??e.duration,class:u(e.toastOptions?.class??``),descriptionClass:e.toastOptions?.descriptionClass,invert:e.invert,visibleToasts:e.visibleToasts,closeButton:e.toastOptions?.closeButton??e.closeButton,interacting:k.value,position:o,closeButtonPosition:e.toastOptions?.closeButtonPosition??e.closeButtonPosition,style:a(e.toastOptions?.style),unstyled:e.toastOptions?.unstyled,classes:e.toastOptions?.classes,cancelButtonStyle:e.toastOptions?.cancelButtonStyle,actionButtonStyle:e.toastOptions?.actionButtonStyle,"close-button-aria-label":e.toastOptions?.closeButtonAriaLabel,toasts:T.value[o],expandByDefault:e.expand,gap:e.gap,expanded:D.value[o]||!1,swipeDirections:n.swipeDirections,"onUpdate:heights":oe,"onUpdate:height":H,onRemoveToast:F},{"close-icon":S(()=>[f(e.$slots,`close-icon`,{},()=>[d(W)])]),"loading-icon":S(()=>[f(e.$slots,`loading-icon`,{},()=>[d(ue,{visible:r.type===`loading`},null,8,[`visible`])])]),"success-icon":S(()=>[f(e.$slots,`success-icon`,{},()=>[d(J)])]),"error-icon":S(()=>[f(e.$slots,`error-icon`,{},()=>[d(ve)])]),"warning-icon":S(()=>[f(e.$slots,`warning-icon`,{},()=>[d(Q)])]),"info-icon":S(()=>[f(e.$slots,`info-icon`,{},()=>[d(me)])]),_:2},1032,[`heights`,`icons`,`index`,`toast`,`defaultRichColors`,`duration`,`class`,`descriptionClass`,`invert`,`visibleToasts`,`closeButton`,`interacting`,`position`,`closeButtonPosition`,`style`,`unstyled`,`classes`,`cancelButtonStyle`,`actionButtonStyle`,`close-button-aria-label`,`toasts`,`expandByDefault`,`gap`,`expanded`,`swipeDirections`]))),128))],16,be))),128))],8,ye)],2112))}});async function we(){let e=await fetch(`/api/schema`);if(!e.ok)throw Error(`Failed to list schemas`);return e.json()}async function Te(e){let t=await fetch(`/api/schema/${encodeURIComponent(e)}`);if(!t.ok)throw Error(`Failed to get schema: ${e}`);return t.json()}async function Ee(e,t){if(!(await fetch(`/api/schema/${encodeURIComponent(e)}`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify(t,null,2)})).ok)throw Error(`Failed to save schema: ${e}`)}async function De(e){if(!(await fetch(`/api/schema/${encodeURIComponent(e)}`,{method:`DELETE`})).ok)throw Error(`Failed to delete schema: ${e}`)}async function Oe(){let e=await fetch(`/api/migrate`,{method:`POST`}),t=await e.json();if(!e.ok||!t.success)throw Error(t.error||`Migration failed`);return t}async function ke(e){return(await fetch(`/api/prompt-snapshot/${encodeURIComponent(e)}`)).json()}async function Ae(){let e=await fetch(`/api/ai/config`);if(!e.ok)throw Error(`Failed to get AI config`);return e.json()}async function je(e){let t=await fetch(`/api/ai/config`,{method:`PUT`,headers:{"Content-Type":`application/json`},body:JSON.stringify(e,null,2)});if(!t.ok){let e=await t.json();throw Error(e.error||`Failed to save AI config`)}}async function Me(e){let t=await fetch(`/api/ai/registry-lookup`,{method:`POST`,headers:{"Content-Type":`application/json`},body:JSON.stringify({modelName:e})});if(!t.ok)return null;let n=await t.json();return!n||typeof n.vision!=`boolean`?null:n}async function Ne(){let e=await fetch(`/api/data`);if(!e.ok)throw Error(`Failed to list extractions`);return e.json()}async function Pe(e){return(await fetch(`/api/data/${encodeURIComponent(e)}`)).json()}export{Te as a,Oe as c,Ee as d,Ce as f,ke as i,Me as l,Ae as n,Ne as o,j as p,Pe as r,we as s,De as t,je as u};
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import{B as e,Cn as t,Fn as n,G as r,Ht as i,K as a,Kt as o,Lt as s,M as c,Pt as l,Qt as u,S as d,Sn as f,Tn as p,U as m,W as h,Xt as g,_,a as v,bn as ee,c as y,d as b,dn as te,f as ne,g as x,gn as S,h as C,i as w,in as re,ln as ie,m as ae,mn as oe,n as se,nt as T,o as ce,pn as E,qt as le,rt as ue,sn as de,t as fe,v as D,x as pe,xn as me}from"./button-Cdgr9Igy.js";import{t as he}from"./runtime-dom.esm-bundler-DmdkgxQM.js";function ge(){let e=[],t=(t,n,r=999)=>{let a=i(t,n,r),o=a.value+(a.key===t?0:r)+1;return e.push({key:t,value:o}),o},n=t=>{e=e.filter(e=>e.value!==t)},r=(e,t)=>i(e,t).value,i=(t,n,r=0)=>[...e].reverse().find(e=>n?!0:e.key===t)||{key:t,value:r},a=e=>e&&parseInt(e.style.zIndex,10)||0;return{get:a,set:(e,n,r)=>{n&&(n.style.zIndex=String(t(e,!0,r)))},clear:e=>{e&&(n(a(e)),e.style.zIndex=``)},getCurrent:e=>r(e,!0)}}var O=ge();function k(e){"@babel/helpers - typeof";return k=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},k(e)}function A(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function j(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,N(r.key),r)}}function M(e,t,n){return t&&j(e.prototype,t),Object.defineProperty(e,`prototype`,{writable:!1}),e}function N(e){var t=P(e,`string`);return k(t)==`symbol`?t:t+``}function P(e,t){if(k(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(k(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return String(e)}var F=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){};A(this,e),this.element=t,this.listener=n}return M(e,[{key:`bindScrollListener`,value:function(){this.scrollableParents=o(this.element);for(var e=0;e<this.scrollableParents.length;e++)this.scrollableParents[e].addEventListener(`scroll`,this.listener)}},{key:`unbindScrollListener`,value:function(){if(this.scrollableParents)for(var e=0;e<this.scrollableParents.length;e++)this.scrollableParents[e].removeEventListener(`scroll`,this.listener)}},{key:`destroy`,value:function(){this.unbindScrollListener(),this.element=null,this.listener=null,this.scrollableParents=null}}])}(),I={name:`TimesIcon`,extends:w};function L(e){return be(e)||ye(e)||ve(e)||_e()}function _e(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ve(e,t){if(e){if(typeof e==`string`)return R(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?R(e,t):void 0}}function ye(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function be(e){if(Array.isArray(e))return R(e)}function R(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function xe(t,n,r,i,a,o){return e(),D(`svg`,c({width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},t.pti()),L(n[0]||=[C(`path`,{d:`M8.01186 7.00933L12.27 2.75116C12.341 2.68501 12.398 2.60524 12.4375 2.51661C12.4769 2.42798 12.4982 2.3323 12.4999 2.23529C12.5016 2.13827 12.4838 2.0419 12.4474 1.95194C12.4111 1.86197 12.357 1.78024 12.2884 1.71163C12.2198 1.64302 12.138 1.58893 12.0481 1.55259C11.9581 1.51625 11.8617 1.4984 11.7647 1.50011C11.6677 1.50182 11.572 1.52306 11.4834 1.56255C11.3948 1.60204 11.315 1.65898 11.2488 1.72997L6.99067 5.98814L2.7325 1.72997C2.59553 1.60234 2.41437 1.53286 2.22718 1.53616C2.03999 1.53946 1.8614 1.61529 1.72901 1.74767C1.59663 1.88006 1.5208 2.05865 1.5175 2.24584C1.5142 2.43303 1.58368 2.61419 1.71131 2.75116L5.96948 7.00933L1.71131 11.2675C1.576 11.403 1.5 11.5866 1.5 11.7781C1.5 11.9696 1.576 12.1532 1.71131 12.2887C1.84679 12.424 2.03043 12.5 2.2219 12.5C2.41338 12.5 2.59702 12.424 2.7325 12.2887L6.99067 8.03052L11.2488 12.2887C11.3843 12.424 11.568 12.5 11.7594 12.5C11.9509 12.5 12.1346 12.424 12.27 12.2887C12.4053 12.1532 12.4813 11.9696 12.4813 11.7781C12.4813 11.5866 12.4053 11.403 12.27 11.2675L8.01186 7.00933Z`,fill:`currentColor`},null,-1)]),16)}I.render=xe;var z={name:`WindowMaximizeIcon`,extends:w};function Se(e){return Ee(e)||Te(e)||we(e)||Ce()}function Ce(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
3
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function we(e,t){if(e){if(typeof e==`string`)return B(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(e,t):void 0}}function Te(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Ee(e){if(Array.isArray(e))return B(e)}function B(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function De(t,n,r,i,a,o){return e(),D(`svg`,c({width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},t.pti()),Se(n[0]||=[C(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14ZM9.77805 7.42192C9.89013 7.534 10.0415 7.59788 10.2 7.59995C10.3585 7.59788 10.5099 7.534 10.622 7.42192C10.7341 7.30985 10.798 7.15844 10.8 6.99995V3.94242C10.8066 3.90505 10.8096 3.86689 10.8089 3.82843C10.8079 3.77159 10.7988 3.7157 10.7824 3.6623C10.756 3.55552 10.701 3.45698 10.622 3.37798C10.5099 3.2659 10.3585 3.20202 10.2 3.19995H7.00002C6.84089 3.19995 6.68828 3.26317 6.57576 3.37569C6.46324 3.48821 6.40002 3.64082 6.40002 3.79995C6.40002 3.95908 6.46324 4.11169 6.57576 4.22422C6.68828 4.33674 6.84089 4.39995 7.00002 4.39995H8.80006L6.19997 7.00005C6.10158 7.11005 6.04718 7.25246 6.04718 7.40005C6.04718 7.54763 6.10158 7.69004 6.19997 7.80005C6.30202 7.91645 6.44561 7.98824 6.59997 8.00005C6.75432 7.98824 6.89791 7.91645 6.99997 7.80005L9.60002 5.26841V6.99995C9.6021 7.15844 9.66598 7.30985 9.77805 7.42192ZM1.4 14H3.8C4.17066 13.9979 4.52553 13.8498 4.78763 13.5877C5.04973 13.3256 5.1979 12.9707 5.2 12.6V10.2C5.1979 9.82939 5.04973 9.47452 4.78763 9.21242C4.52553 8.95032 4.17066 8.80215 3.8 8.80005H1.4C1.02934 8.80215 0.674468 8.95032 0.412371 9.21242C0.150274 9.47452 0.00210008 9.82939 0 10.2V12.6C0.00210008 12.9707 0.150274 13.3256 0.412371 13.5877C0.674468 13.8498 1.02934 13.9979 1.4 14ZM1.25858 10.0586C1.29609 10.0211 1.34696 10 1.4 10H3.8C3.85304 10 3.90391 10.0211 3.94142 10.0586C3.97893 10.0961 4 10.147 4 10.2V12.6C4 12.6531 3.97893 12.704 3.94142 12.7415C3.90391 12.779 3.85304 12.8 3.8 12.8H1.4C1.34696 12.8 1.29609 12.779 1.25858 12.7415C1.22107 12.704 1.2 12.6531 1.2 12.6V10.2C1.2 10.147 1.22107 10.0961 1.25858 10.0586Z`,fill:`currentColor`},null,-1)]),16)}z.render=De;var V={name:`WindowMinimizeIcon`,extends:w};function Oe(e){return je(e)||Ae(e)||H(e)||ke()}function ke(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
4
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function H(e,t){if(e){if(typeof e==`string`)return U(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?U(e,t):void 0}}function Ae(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function je(e){if(Array.isArray(e))return U(e)}function U(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Me(t,n,r,i,a,o){return e(),D(`svg`,c({width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},t.pti()),Oe(n[0]||=[C(`path`,{"fill-rule":`evenodd`,"clip-rule":`evenodd`,d:`M11.8 0H2.2C1.61652 0 1.05694 0.231785 0.644365 0.644365C0.231785 1.05694 0 1.61652 0 2.2V7C0 7.15913 0.063214 7.31174 0.175736 7.42426C0.288258 7.53679 0.44087 7.6 0.6 7.6C0.75913 7.6 0.911742 7.53679 1.02426 7.42426C1.13679 7.31174 1.2 7.15913 1.2 7V2.2C1.2 1.93478 1.30536 1.68043 1.49289 1.49289C1.68043 1.30536 1.93478 1.2 2.2 1.2H11.8C12.0652 1.2 12.3196 1.30536 12.5071 1.49289C12.6946 1.68043 12.8 1.93478 12.8 2.2V11.8C12.8 12.0652 12.6946 12.3196 12.5071 12.5071C12.3196 12.6946 12.0652 12.8 11.8 12.8H7C6.84087 12.8 6.68826 12.8632 6.57574 12.9757C6.46321 13.0883 6.4 13.2409 6.4 13.4C6.4 13.5591 6.46321 13.7117 6.57574 13.8243C6.68826 13.9368 6.84087 14 7 14H11.8C12.3835 14 12.9431 13.7682 13.3556 13.3556C13.7682 12.9431 14 12.3835 14 11.8V2.2C14 1.61652 13.7682 1.05694 13.3556 0.644365C12.9431 0.231785 12.3835 0 11.8 0ZM6.368 7.952C6.44137 7.98326 6.52025 7.99958 6.6 8H9.8C9.95913 8 10.1117 7.93678 10.2243 7.82426C10.3368 7.71174 10.4 7.55913 10.4 7.4C10.4 7.24087 10.3368 7.08826 10.2243 6.97574C10.1117 6.86321 9.95913 6.8 9.8 6.8H8.048L10.624 4.224C10.73 4.11026 10.7877 3.95982 10.7849 3.80438C10.7822 3.64894 10.7192 3.50063 10.6093 3.3907C10.4994 3.28077 10.3511 3.2178 10.1956 3.21506C10.0402 3.21232 9.88974 3.27002 9.776 3.376L7.2 5.952V4.2C7.2 4.04087 7.13679 3.88826 7.02426 3.77574C6.91174 3.66321 6.75913 3.6 6.6 3.6C6.44087 3.6 6.28826 3.66321 6.17574 3.77574C6.06321 3.88826 6 4.04087 6 4.2V7.4C6.00042 7.47975 6.01674 7.55862 6.048 7.632C6.07656 7.70442 6.11971 7.7702 6.17475 7.82524C6.2298 7.88029 6.29558 7.92344 6.368 7.952ZM1.4 8.80005H3.8C4.17066 8.80215 4.52553 8.95032 4.78763 9.21242C5.04973 9.47452 5.1979 9.82939 5.2 10.2V12.6C5.1979 12.9707 5.04973 13.3256 4.78763 13.5877C4.52553 13.8498 4.17066 13.9979 3.8 14H1.4C1.02934 13.9979 0.674468 13.8498 0.412371 13.5877C0.150274 13.3256 0.00210008 12.9707 0 12.6V10.2C0.00210008 9.82939 0.150274 9.47452 0.412371 9.21242C0.674468 8.95032 1.02934 8.80215 1.4 8.80005ZM3.94142 12.7415C3.97893 12.704 4 12.6531 4 12.6V10.2C4 10.147 3.97893 10.0961 3.94142 10.0586C3.90391 10.0211 3.85304 10 3.8 10H1.4C1.34696 10 1.29609 10.0211 1.25858 10.0586C1.22107 10.0961 1.2 10.147 1.2 10.2V12.6C1.2 12.6531 1.22107 12.704 1.25858 12.7415C1.29609 12.779 1.34696 12.8 1.4 12.8H3.8C3.85304 12.8 3.90391 12.779 3.94142 12.7415Z`,fill:`currentColor`},null,-1)]),16)}V.render=Me;var Ne=y.extend({name:`focustrap-directive`}),Pe=ce.extend({style:Ne});function W(e){"@babel/helpers - typeof";return W=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},W(e)}function G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function K(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?G(Object(n),!0).forEach(function(t){Fe(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Fe(e,t,n){return(t=Ie(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ie(e){var t=Le(e,`string`);return W(t)==`symbol`?t:t+``}function Le(e,t){if(W(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(W(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var Re=Pe.extend(`focustrap`,{mounted:function(e,t){(t.value||{}).disabled||(this.createHiddenFocusableElements(e,t),this.bind(e,t),this.autoElementFocus(e,t)),e.setAttribute(`data-pd-focustrap`,!0),this.$el=e},updated:function(e,t){(t.value||{}).disabled&&this.unbind(e)},unmounted:function(e){this.unbind(e)},methods:{getComputedSelector:function(e){return`:not(.p-hidden-focusable):not([data-p-hidden-focusable="true"])${e??``}`},bind:function(e,r){var i=this,a=r.value||{},o=a.onFocusIn,s=a.onFocusOut;e.$_pfocustrap_mutationobserver=new MutationObserver(function(r){r.forEach(function(r){if(r.type===`childList`&&!e.contains(document.activeElement)){var a=function(r){var o=g(r)?g(r,i.getComputedSelector(e.$_pfocustrap_focusableselector))?r:t(e,i.getComputedSelector(e.$_pfocustrap_focusableselector)):t(r);return n(o)?o:r.nextSibling&&a(r.nextSibling)};E(a(r.nextSibling))}})}),e.$_pfocustrap_mutationobserver.disconnect(),e.$_pfocustrap_mutationobserver.observe(e,{childList:!0}),e.$_pfocustrap_focusinlistener=function(e){return o&&o(e)},e.$_pfocustrap_focusoutlistener=function(e){return s&&s(e)},e.addEventListener(`focusin`,e.$_pfocustrap_focusinlistener),e.addEventListener(`focusout`,e.$_pfocustrap_focusoutlistener)},unbind:function(e){e.$_pfocustrap_mutationobserver&&e.$_pfocustrap_mutationobserver.disconnect(),e.$_pfocustrap_focusinlistener&&e.removeEventListener(`focusin`,e.$_pfocustrap_focusinlistener)&&(e.$_pfocustrap_focusinlistener=null),e.$_pfocustrap_focusoutlistener&&e.removeEventListener(`focusout`,e.$_pfocustrap_focusoutlistener)&&(e.$_pfocustrap_focusoutlistener=null)},autoFocus:function(e){this.autoElementFocus(this.$el,{value:K(K({},e),{},{autoFocus:!0})})},autoElementFocus:function(e,n){var r=n.value||{},i=r.autoFocusSelector,a=i===void 0?``:i,o=r.firstFocusableSelector,s=o===void 0?``:o,c=r.autoFocus,l=c===void 0?!1:c,u=t(e,`[autofocus]${this.getComputedSelector(a)}`);l&&!u&&(u=t(e,this.getComputedSelector(s))),E(u)},onFirstHiddenElementFocus:function(e){var n,r=e.currentTarget,i=e.relatedTarget;E(i===r.$_pfocustrap_lasthiddenfocusableelement||!((n=this.$el)!=null&&n.contains(i))?t(r.parentElement,this.getComputedSelector(r.$_pfocustrap_focusableselector)):r.$_pfocustrap_lasthiddenfocusableelement)},onLastHiddenElementFocus:function(e){var t,n=e.currentTarget,r=e.relatedTarget;E(r===n.$_pfocustrap_firsthiddenfocusableelement||!((t=this.$el)!=null&&t.contains(r))?u(n.parentElement,this.getComputedSelector(n.$_pfocustrap_focusableselector)):n.$_pfocustrap_firsthiddenfocusableelement)},createHiddenFocusableElements:function(e,t){var n=this,r=t.value||{},i=r.tabIndex,a=i===void 0?0:i,o=r.firstFocusableSelector,s=o===void 0?``:o,c=r.lastFocusableSelector,l=c===void 0?``:c,u=function(e){return de(`span`,{class:`p-hidden-accessible p-hidden-focusable`,tabIndex:a,role:`presentation`,"aria-hidden":!0,"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0,onFocus:e?.bind(n)})},d=u(this.onFirstHiddenElementFocus),f=u(this.onLastHiddenElementFocus);d.$_pfocustrap_lasthiddenfocusableelement=f,d.$_pfocustrap_focusableselector=s,d.setAttribute(`data-pc-section`,`firstfocusableelement`),f.$_pfocustrap_firsthiddenfocusableelement=d,f.$_pfocustrap_focusableselector=l,f.setAttribute(`data-pc-section`,`lastfocusableelement`),e.prepend(d),e.append(f)}}}),q={name:`Portal`,props:{appendTo:{type:[String,Object],default:`body`},disabled:{type:Boolean,default:!1}},data:function(){return{mounted:!1}},mounted:function(){this.mounted=me()},computed:{inline:function(){return this.disabled||this.appendTo===`self`}}};function ze(t,n,r,i,a,o){return o.inline?m(t.$slots,`default`,{key:0}):a.mounted?(e(),x(ne,{key:1,to:r.appendTo},[m(t.$slots,`default`)],8,[`to`])):_(``,!0)}q.render=ze;function J(){ee({variableName:i(`scrollbar.width`).name})}function Y(){oe({variableName:i(`scrollbar.width`).name})}var Be=y.extend({name:`dialog`,style:`
|
|
5
|
-
.p-dialog {
|
|
6
|
-
max-height: 90%;
|
|
7
|
-
transform: scale(1);
|
|
8
|
-
border-radius: dt('dialog.border.radius');
|
|
9
|
-
box-shadow: dt('dialog.shadow');
|
|
10
|
-
background: dt('dialog.background');
|
|
11
|
-
border: 1px solid dt('dialog.border.color');
|
|
12
|
-
color: dt('dialog.color');
|
|
13
|
-
will-change: transform;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.p-dialog-content {
|
|
17
|
-
overflow-y: auto;
|
|
18
|
-
padding: dt('dialog.content.padding');
|
|
19
|
-
flex-grow: 1;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
.p-dialog-header {
|
|
23
|
-
display: flex;
|
|
24
|
-
align-items: center;
|
|
25
|
-
justify-content: space-between;
|
|
26
|
-
flex-shrink: 0;
|
|
27
|
-
padding: dt('dialog.header.padding');
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
.p-dialog-title {
|
|
31
|
-
font-weight: dt('dialog.title.font.weight');
|
|
32
|
-
font-size: dt('dialog.title.font.size');
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.p-dialog-footer {
|
|
36
|
-
flex-shrink: 0;
|
|
37
|
-
padding: dt('dialog.footer.padding');
|
|
38
|
-
display: flex;
|
|
39
|
-
justify-content: flex-end;
|
|
40
|
-
gap: dt('dialog.footer.gap');
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.p-dialog-header-actions {
|
|
44
|
-
display: flex;
|
|
45
|
-
align-items: center;
|
|
46
|
-
gap: dt('dialog.header.gap');
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.p-dialog-top .p-dialog,
|
|
50
|
-
.p-dialog-bottom .p-dialog,
|
|
51
|
-
.p-dialog-left .p-dialog,
|
|
52
|
-
.p-dialog-right .p-dialog,
|
|
53
|
-
.p-dialog-topleft .p-dialog,
|
|
54
|
-
.p-dialog-topright .p-dialog,
|
|
55
|
-
.p-dialog-bottomleft .p-dialog,
|
|
56
|
-
.p-dialog-bottomright .p-dialog {
|
|
57
|
-
margin: 1rem;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
.p-dialog-maximized {
|
|
61
|
-
width: 100vw !important;
|
|
62
|
-
height: 100vh !important;
|
|
63
|
-
top: 0px !important;
|
|
64
|
-
left: 0px !important;
|
|
65
|
-
max-height: 100%;
|
|
66
|
-
height: 100%;
|
|
67
|
-
border-radius: 0;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
.p-dialog .p-resizable-handle {
|
|
71
|
-
position: absolute;
|
|
72
|
-
font-size: 0.1px;
|
|
73
|
-
display: block;
|
|
74
|
-
cursor: se-resize;
|
|
75
|
-
width: 12px;
|
|
76
|
-
height: 12px;
|
|
77
|
-
right: 1px;
|
|
78
|
-
bottom: 1px;
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
.p-dialog-enter-active {
|
|
82
|
-
animation: p-animate-dialog-enter 300ms cubic-bezier(.19,1,.22,1);
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.p-dialog-leave-active {
|
|
86
|
-
animation: p-animate-dialog-leave 300ms cubic-bezier(.19,1,.22,1);
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
@keyframes p-animate-dialog-enter {
|
|
90
|
-
from {
|
|
91
|
-
opacity: 0;
|
|
92
|
-
transform: scale(0.93);
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
@keyframes p-animate-dialog-leave {
|
|
97
|
-
to {
|
|
98
|
-
opacity: 0;
|
|
99
|
-
transform: scale(0.93);
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
`,classes:{mask:function(e){var t=e.props,n=[`left`,`right`,`top`,`topleft`,`topright`,`bottom`,`bottomleft`,`bottomright`].find(function(e){return e===t.position});return[`p-dialog-mask`,{"p-overlay-mask p-overlay-mask-enter-active":t.modal},n?`p-dialog-${n}`:``]},root:function(e){var t=e.props,n=e.instance;return[`p-dialog p-component`,{"p-dialog-maximized":t.maximizable&&n.maximized}]},header:`p-dialog-header`,title:`p-dialog-title`,headerActions:`p-dialog-header-actions`,pcMaximizeButton:`p-dialog-maximize-button`,pcCloseButton:`p-dialog-close-button`,content:`p-dialog-content`,footer:`p-dialog-footer`},inlineStyles:{mask:function(e){var t=e.position,n=e.modal;return{position:`fixed`,height:`100%`,width:`100%`,left:0,top:0,display:`flex`,justifyContent:t===`left`||t===`topleft`||t===`bottomleft`?`flex-start`:t===`right`||t===`topright`||t===`bottomright`?`flex-end`:`center`,alignItems:t===`top`||t===`topleft`||t===`topright`?`flex-start`:t===`bottom`||t===`bottomleft`||t===`bottomright`?`flex-end`:`center`,pointerEvents:n?`auto`:`none`}},root:{display:`flex`,flexDirection:`column`,pointerEvents:`auto`}}}),X={name:`Dialog`,extends:{name:`BaseDialog`,extends:v,props:{header:{type:null,default:null},footer:{type:null,default:null},visible:{type:Boolean,default:!1},modal:{type:Boolean,default:null},contentStyle:{type:null,default:null},contentClass:{type:String,default:null},contentProps:{type:null,default:null},maximizable:{type:Boolean,default:!1},dismissableMask:{type:Boolean,default:!1},closable:{type:Boolean,default:!0},closeOnEscape:{type:Boolean,default:!0},showHeader:{type:Boolean,default:!0},blockScroll:{type:Boolean,default:!1},baseZIndex:{type:Number,default:0},autoZIndex:{type:Boolean,default:!0},position:{type:String,default:`center`},breakpoints:{type:Object,default:null},draggable:{type:Boolean,default:!0},keepInViewport:{type:Boolean,default:!0},minX:{type:Number,default:0},minY:{type:Number,default:0},appendTo:{type:[String,Object],default:`body`},closeIcon:{type:String,default:void 0},maximizeIcon:{type:String,default:void 0},minimizeIcon:{type:String,default:void 0},closeButtonProps:{type:Object,default:function(){return{severity:`secondary`,text:!0,rounded:!0}}},maximizeButtonProps:{type:Object,default:function(){return{severity:`secondary`,text:!0,rounded:!0}}},_instance:null},style:Be,provide:function(){return{$pcDialog:this,$parentInstance:this}}},inheritAttrs:!1,emits:[`update:visible`,`show`,`hide`,`after-hide`,`maximize`,`unmaximize`,`dragstart`,`dragend`],provide:function(){var e=this;return{dialogRef:ae(function(){return e._instance})}},data:function(){return{containerVisible:this.visible,maximized:!1,focusableMax:null,focusableClose:null,target:null}},documentKeydownListener:null,container:null,mask:null,content:null,headerContainer:null,footerContainer:null,maximizableButton:null,closeButton:null,styleElement:null,dragging:null,documentDragListener:null,documentDragEndListener:null,lastPageX:null,lastPageY:null,maskMouseDownTarget:null,updated:function(){this.visible&&(this.containerVisible=this.visible)},beforeUnmount:function(){this.unbindDocumentState(),this.unbindGlobalListeners(),this.destroyStyle(),this.mask&&this.autoZIndex&&O.clear(this.mask),this.container=null,this.mask=null},mounted:function(){this.breakpoints&&this.createStyle()},methods:{close:function(){this.$emit(`update:visible`,!1)},onEnter:function(){this.$emit(`show`),this.target=document.activeElement,this.enableDocumentSettings(),this.bindGlobalListeners(),this.autoZIndex&&O.set(`modal`,this.mask,this.baseZIndex||this.$primevue.config.zIndex.modal)},onAfterEnter:function(){this.focus()},onBeforeLeave:function(){this.modal&&!this.isUnstyled&&ie(this.mask,`p-overlay-mask-leave-active`),this.dragging&&this.documentDragEndListener&&this.documentDragEndListener()},onLeave:function(){this.$emit(`hide`),E(this.target),this.target=null,this.focusableClose=null,this.focusableMax=null},onAfterLeave:function(){this.autoZIndex&&O.clear(this.mask),this.containerVisible=!1,this.unbindDocumentState(),this.unbindGlobalListeners(),this.$emit(`after-hide`)},onMaskMouseDown:function(e){this.maskMouseDownTarget=e.target},onMaskMouseUp:function(){this.dismissableMask&&this.modal&&this.mask===this.maskMouseDownTarget&&this.close()},focus:function(){var e=function(e){return e&&e.querySelector(`[autofocus]`)},t=this.$slots.footer&&e(this.footerContainer);t||(t=this.$slots.header&&e(this.headerContainer),t||(t=this.$slots.default&&e(this.content),t||(this.maximizable?(this.focusableMax=!0,t=this.maximizableButton):(this.focusableClose=!0,t=this.closeButton)))),t&&E(t,{focusVisible:!0})},maximize:function(e){this.maximized?(this.maximized=!1,this.$emit(`unmaximize`,e)):(this.maximized=!0,this.$emit(`maximize`,e)),this.modal||(this.maximized?J():Y())},enableDocumentSettings:function(){(this.modal||!this.modal&&this.blockScroll||this.maximizable&&this.maximized)&&J()},unbindDocumentState:function(){(this.modal||!this.modal&&this.blockScroll||this.maximizable&&this.maximized)&&Y()},onKeyDown:function(e){e.code===`Escape`&&this.closeOnEscape&&!e.isComposing&&this.close()},bindDocumentKeyDownListener:function(){this.documentKeydownListener||(this.documentKeydownListener=this.onKeyDown.bind(this),window.document.addEventListener(`keydown`,this.documentKeydownListener))},unbindDocumentKeyDownListener:function(){this.documentKeydownListener&&=(window.document.removeEventListener(`keydown`,this.documentKeydownListener),null)},containerRef:function(e){this.container=e},maskRef:function(e){this.mask=e},contentRef:function(e){this.content=e},headerContainerRef:function(e){this.headerContainer=e},footerContainerRef:function(e){this.footerContainer=e},maximizableRef:function(e){this.maximizableButton=e?e.$el:void 0},closeButtonRef:function(e){this.closeButton=e?e.$el:void 0},createStyle:function(){if(!this.styleElement&&!this.isUnstyled){var e;this.styleElement=document.createElement(`style`),this.styleElement.type=`text/css`,te(this.styleElement,`nonce`,(e=this.$primevue)==null||(e=e.config)==null||(e=e.csp)==null?void 0:e.nonce),document.head.appendChild(this.styleElement);var t=``;for(var n in this.breakpoints)t+=`
|
|
103
|
-
@media screen and (max-width: ${n}) {
|
|
104
|
-
.p-dialog[${this.$attrSelector}] {
|
|
105
|
-
width: ${this.breakpoints[n]} !important;
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
`;this.styleElement.innerHTML=t}},destroyStyle:function(){this.styleElement&&=(document.head.removeChild(this.styleElement),null)},initDrag:function(e){e.target.closest(`div`).getAttribute(`data-pc-section`)!==`headeractions`&&this.draggable&&(this.dragging=!0,this.lastPageX=e.pageX,this.lastPageY=e.pageY,this.container.style.margin=`0`,document.body.setAttribute(`data-p-unselectable-text`,`true`),!this.isUnstyled&&re(document.body,{"user-select":`none`}),this.$emit(`dragstart`,e))},bindGlobalListeners:function(){this.draggable&&(this.bindDocumentDragListener(),this.bindDocumentDragEndListener()),this.closeOnEscape&&this.bindDocumentKeyDownListener()},unbindGlobalListeners:function(){this.unbindDocumentDragListener(),this.unbindDocumentDragEndListener(),this.unbindDocumentKeyDownListener()},bindDocumentDragListener:function(){var e=this;this.documentDragListener=function(t){if(e.dragging){var n=f(e.container),r=le(e.container),i=t.pageX-e.lastPageX,a=t.pageY-e.lastPageY,o=e.container.getBoundingClientRect(),s=o.left+i,c=o.top+a,l=S(),u=getComputedStyle(e.container),d=parseFloat(u.marginLeft),p=parseFloat(u.marginTop);e.container.style.position=`fixed`,e.keepInViewport?(s>=e.minX&&s+n<l.width&&(e.lastPageX=t.pageX,e.container.style.left=s-d+`px`),c>=e.minY&&c+r<l.height&&(e.lastPageY=t.pageY,e.container.style.top=c-p+`px`)):(e.lastPageX=t.pageX,e.container.style.left=s-d+`px`,e.lastPageY=t.pageY,e.container.style.top=c-p+`px`)}},window.document.addEventListener(`mousemove`,this.documentDragListener)},unbindDocumentDragListener:function(){this.documentDragListener&&=(window.document.removeEventListener(`mousemove`,this.documentDragListener),null)},bindDocumentDragEndListener:function(){var e=this;this.documentDragEndListener=function(t){e.dragging&&(e.dragging=!1,document.body.removeAttribute(`data-p-unselectable-text`),!e.isUnstyled&&(document.body.style[`user-select`]=``),e.$emit(`dragend`,t))},window.document.addEventListener(`mouseup`,this.documentDragEndListener)},unbindDocumentDragEndListener:function(){this.documentDragEndListener&&=(window.document.removeEventListener(`mouseup`,this.documentDragEndListener),null)}},computed:{maximizeIconComponent:function(){return this.maximized?this.minimizeIcon?`span`:`WindowMinimizeIcon`:this.maximizeIcon?`span`:`WindowMaximizeIcon`},ariaLabelledById:function(){return this.header!=null||this.$attrs[`aria-labelledby`]!==null?this.$id+`_header`:null},closeAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.close:void 0},dataP:function(){return p({maximized:this.maximized,modal:this.modal})}},directives:{ripple:se,focustrap:Re},components:{Button:fe,Portal:q,WindowMinimizeIcon:V,WindowMaximizeIcon:z,TimesIcon:I}};function Z(e){"@babel/helpers - typeof";return Z=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},Z(e)}function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function $(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Q(Object(n),!0).forEach(function(t){Ve(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Ve(e,t,n){return(t=He(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function He(e){var t=Ue(e,`string`);return Z(t)==`symbol`?t:t+``}function Ue(e,t){if(Z(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Z(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var We=[`data-p`],Ge=[`aria-labelledby`,`aria-modal`,`data-p`],Ke=[`id`],qe=[`data-p`];function Je(t,n,i,o,u,f){var p=h(`Button`),g=h(`Portal`),v=r(`focustrap`);return e(),x(g,{appendTo:t.appendTo},{default:T(function(){return[u.containerVisible?(e(),D(`div`,c({key:0,ref:f.maskRef,class:t.cx(`mask`),style:t.sx(`mask`,!0,{position:t.position,modal:t.modal}),onMousedown:n[1]||=function(){return f.onMaskMouseDown&&f.onMaskMouseDown.apply(f,arguments)},onMouseup:n[2]||=function(){return f.onMaskMouseUp&&f.onMaskMouseUp.apply(f,arguments)},"data-p":f.dataP},t.ptm(`mask`)),[d(he,c({name:`p-dialog`,onEnter:f.onEnter,onAfterEnter:f.onAfterEnter,onBeforeLeave:f.onBeforeLeave,onLeave:f.onLeave,onAfterLeave:f.onAfterLeave,appear:``},t.ptm(`transition`)),{default:T(function(){return[t.visible?ue((e(),D(`div`,c({key:0,ref:f.containerRef,class:t.cx(`root`),style:t.sx(`root`),role:`dialog`,"aria-labelledby":f.ariaLabelledById,"aria-modal":t.modal,"data-p":f.dataP},t.ptmi(`root`)),[t.$slots.container?m(t.$slots,`container`,{key:0,closeCallback:f.close,maximizeCallback:function(e){return f.maximize(e)},initDragCallback:f.initDrag}):(e(),D(b,{key:1},[t.showHeader?(e(),D(`div`,c({key:0,ref:f.headerContainerRef,class:t.cx(`header`),onMousedown:n[0]||=function(){return f.initDrag&&f.initDrag.apply(f,arguments)}},t.ptm(`header`)),[m(t.$slots,`header`,{class:l(t.cx(`title`))},function(){return[t.header?(e(),D(`span`,c({key:0,id:f.ariaLabelledById,class:t.cx(`title`)},t.ptm(`title`)),s(t.header),17,Ke)):_(``,!0)]}),C(`div`,c({class:t.cx(`headerActions`)},t.ptm(`headerActions`)),[t.maximizable?m(t.$slots,`maximizebutton`,{key:0,maximized:u.maximized,maximizeCallback:function(e){return f.maximize(e)}},function(){return[d(p,c({ref:f.maximizableRef,autofocus:u.focusableMax,class:t.cx(`pcMaximizeButton`),onClick:f.maximize,tabindex:t.maximizable?`0`:`-1`,unstyled:t.unstyled},t.maximizeButtonProps,{pt:t.ptm(`pcMaximizeButton`),"data-pc-group-section":`headericon`}),{icon:T(function(n){return[m(t.$slots,`maximizeicon`,{maximized:u.maximized},function(){return[(e(),x(a(f.maximizeIconComponent),c({class:[n.class,u.maximized?t.minimizeIcon:t.maximizeIcon]},t.ptm(`pcMaximizeButton`).icon),null,16,[`class`]))]})]}),_:3},16,[`autofocus`,`class`,`onClick`,`tabindex`,`unstyled`,`pt`])]}):_(``,!0),t.closable?m(t.$slots,`closebutton`,{key:1,closeCallback:f.close},function(){return[d(p,c({ref:f.closeButtonRef,autofocus:u.focusableClose,class:t.cx(`pcCloseButton`),onClick:f.close,"aria-label":f.closeAriaLabel,unstyled:t.unstyled},t.closeButtonProps,{pt:t.ptm(`pcCloseButton`),"data-pc-group-section":`headericon`}),{icon:T(function(n){return[m(t.$slots,`closeicon`,{},function(){return[(e(),x(a(t.closeIcon?`span`:`TimesIcon`),c({class:[t.closeIcon,n.class]},t.ptm(`pcCloseButton`).icon),null,16,[`class`]))]})]}),_:3},16,[`autofocus`,`class`,`onClick`,`aria-label`,`unstyled`,`pt`])]}):_(``,!0)],16)],16)):_(``,!0),C(`div`,c({ref:f.contentRef,class:[t.cx(`content`),t.contentClass],style:t.contentStyle,"data-p":f.dataP},$($({},t.contentProps),t.ptm(`content`))),[m(t.$slots,`default`)],16,qe),t.footer||t.$slots.footer?(e(),D(`div`,c({key:1,ref:f.footerContainerRef,class:t.cx(`footer`)},t.ptm(`footer`)),[m(t.$slots,`footer`,{},function(){return[pe(s(t.footer),1)]})],16)):_(``,!0)],64))],16,Ge)),[[v,{disabled:!t.modal}]]):_(``,!0)]}),_:3},16,[`onEnter`,`onAfterEnter`,`onBeforeLeave`,`onLeave`,`onAfterLeave`])],16,We)):_(``,!0)]}),_:3},8,[`appendTo`])}X.render=Je;export{O as a,F as i,q as n,I as r,X as t};
|
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import{B as e,En as t,Fn as n,M as r,Tn as i,a,c as o,h as s,i as c,v as l}from"./button-Cdgr9Igy.js";var u={name:`CheckIcon`,extends:c};function d(e){return h(e)||m(e)||p(e)||f()}function f(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function p(e,t){if(e){if(typeof e==`string`)return g(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?g(e,t):void 0}}function m(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function h(e){if(Array.isArray(e))return g(e)}function g(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function _(t,n,i,a,o,c){return e(),l(`svg`,r({width:`14`,height:`14`,viewBox:`0 0 14 14`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`},t.pti()),d(n[0]||=[s(`path`,{d:`M4.86199 11.5948C4.78717 11.5923 4.71366 11.5745 4.64596 11.5426C4.57826 11.5107 4.51779 11.4652 4.46827 11.4091L0.753985 7.69483C0.683167 7.64891 0.623706 7.58751 0.580092 7.51525C0.536478 7.44299 0.509851 7.36177 0.502221 7.27771C0.49459 7.19366 0.506156 7.10897 0.536046 7.03004C0.565935 6.95111 0.613367 6.88 0.674759 6.82208C0.736151 6.76416 0.8099 6.72095 0.890436 6.69571C0.970973 6.67046 1.05619 6.66385 1.13966 6.67635C1.22313 6.68886 1.30266 6.72017 1.37226 6.76792C1.44186 6.81567 1.4997 6.8786 1.54141 6.95197L4.86199 10.2503L12.6397 2.49483C12.7444 2.42694 12.8689 2.39617 12.9932 2.40745C13.1174 2.41873 13.2343 2.47141 13.3251 2.55705C13.4159 2.64268 13.4753 2.75632 13.4938 2.87973C13.5123 3.00315 13.4888 3.1292 13.4271 3.23768L5.2557 11.4091C5.20618 11.4652 5.14571 11.5107 5.07801 11.5426C5.01031 11.5745 4.9368 11.5923 4.86199 11.5948Z`,fill:`currentColor`},null,-1)]),16)}u.render=_;var v={name:`BaseEditableHolder`,extends:a,emits:[`update:modelValue`,`value-change`],props:{modelValue:{type:null,default:void 0},defaultValue:{type:null,default:void 0},name:{type:String,default:void 0},invalid:{type:Boolean,default:void 0},disabled:{type:Boolean,default:!1},formControl:{type:Object,default:void 0}},inject:{$parentInstance:{default:void 0},$pcForm:{default:void 0},$pcFormField:{default:void 0}},data:function(){return{d_value:this.defaultValue===void 0?this.modelValue:this.defaultValue}},watch:{modelValue:{deep:!0,handler:function(e){this.d_value=e}},defaultValue:function(e){this.d_value=e},$formName:{immediate:!0,handler:function(e){var t,n;this.formField=((t=this.$pcForm)==null||(n=t.register)==null?void 0:n.call(t,e,this.$formControl))||{}}},$formControl:{immediate:!0,handler:function(e){var t,n;this.formField=((t=this.$pcForm)==null||(n=t.register)==null?void 0:n.call(t,this.$formName,e))||{}}},$formDefaultValue:{immediate:!0,handler:function(e){this.d_value!==e&&(this.d_value=e)}},$formValue:{immediate:!1,handler:function(e){var t;(t=this.$pcForm)!=null&&t.getFieldState(this.$formName)&&e!==this.d_value&&(this.d_value=e)}}},formField:{},methods:{writeValue:function(e,t){var n,r;this.controlled&&(this.d_value=e,this.$emit(`update:modelValue`,e)),this.$emit(`value-change`,e),(n=(r=this.formField).onChange)==null||n.call(r,{originalEvent:t,value:e})},findNonEmpty:function(){return[...arguments].find(n)}},computed:{$filled:function(){return n(this.d_value)},$invalid:function(){var e,t;return!this.$formNovalidate&&this.findNonEmpty(this.invalid,(e=this.$pcFormField)==null||(e=e.$field)==null?void 0:e.invalid,(t=this.$pcForm)==null||(t=t.getFieldState(this.$formName))==null?void 0:t.invalid)},$formName:function(){return this.$formNovalidate?void 0:this.name||this.$formControl?.name},$formControl:function(){return this.formControl||this.$pcFormField?.formControl},$formNovalidate:function(){return this.$formControl?.novalidate},$formDefaultValue:function(){var e;return this.findNonEmpty(this.d_value,this.$pcFormField?.initialValue,(e=this.$pcForm)==null||(e=e.initialValues)==null?void 0:e[this.$formName])},$formValue:function(){var e,t;return this.findNonEmpty((e=this.$pcFormField)==null||(e=e.$field)==null?void 0:e.value,(t=this.$pcForm)==null||(t=t.getFieldState(this.$formName))==null?void 0:t.value)},controlled:function(){return this.$inProps.hasOwnProperty(`modelValue`)||!this.$inProps.hasOwnProperty(`modelValue`)&&!this.$inProps.hasOwnProperty(`defaultValue`)},filled:function(){return this.$filled}}},y={name:`BaseInput`,extends:v,props:{size:{type:String,default:null},fluid:{type:Boolean,default:null},variant:{type:String,default:null}},inject:{$parentInstance:{default:void 0},$pcFluid:{default:void 0}},computed:{$variant:function(){return this.variant??(this.$primevue.config.inputStyle||this.$primevue.config.inputVariant)},$fluid:function(){return this.fluid??!!this.$pcFluid},hasFluid:function(){return this.$fluid}}},b={name:`BaseInputText`,extends:y,style:o.extend({name:`inputtext`,style:`
|
|
3
|
-
.p-inputtext {
|
|
4
|
-
font-family: inherit;
|
|
5
|
-
font-feature-settings: inherit;
|
|
6
|
-
font-size: 1rem;
|
|
7
|
-
color: dt('inputtext.color');
|
|
8
|
-
background: dt('inputtext.background');
|
|
9
|
-
padding-block: dt('inputtext.padding.y');
|
|
10
|
-
padding-inline: dt('inputtext.padding.x');
|
|
11
|
-
border: 1px solid dt('inputtext.border.color');
|
|
12
|
-
transition:
|
|
13
|
-
background dt('inputtext.transition.duration'),
|
|
14
|
-
color dt('inputtext.transition.duration'),
|
|
15
|
-
border-color dt('inputtext.transition.duration'),
|
|
16
|
-
outline-color dt('inputtext.transition.duration'),
|
|
17
|
-
box-shadow dt('inputtext.transition.duration');
|
|
18
|
-
appearance: none;
|
|
19
|
-
border-radius: dt('inputtext.border.radius');
|
|
20
|
-
outline-color: transparent;
|
|
21
|
-
box-shadow: dt('inputtext.shadow');
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.p-inputtext:enabled:hover {
|
|
25
|
-
border-color: dt('inputtext.hover.border.color');
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
.p-inputtext:enabled:focus {
|
|
29
|
-
border-color: dt('inputtext.focus.border.color');
|
|
30
|
-
box-shadow: dt('inputtext.focus.ring.shadow');
|
|
31
|
-
outline: dt('inputtext.focus.ring.width') dt('inputtext.focus.ring.style') dt('inputtext.focus.ring.color');
|
|
32
|
-
outline-offset: dt('inputtext.focus.ring.offset');
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
.p-inputtext.p-invalid {
|
|
36
|
-
border-color: dt('inputtext.invalid.border.color');
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
.p-inputtext.p-variant-filled {
|
|
40
|
-
background: dt('inputtext.filled.background');
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
.p-inputtext.p-variant-filled:enabled:hover {
|
|
44
|
-
background: dt('inputtext.filled.hover.background');
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
.p-inputtext.p-variant-filled:enabled:focus {
|
|
48
|
-
background: dt('inputtext.filled.focus.background');
|
|
49
|
-
}
|
|
50
|
-
|
|
51
|
-
.p-inputtext:disabled {
|
|
52
|
-
opacity: 1;
|
|
53
|
-
background: dt('inputtext.disabled.background');
|
|
54
|
-
color: dt('inputtext.disabled.color');
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.p-inputtext::placeholder {
|
|
58
|
-
color: dt('inputtext.placeholder.color');
|
|
59
|
-
}
|
|
60
|
-
|
|
61
|
-
.p-inputtext.p-invalid::placeholder {
|
|
62
|
-
color: dt('inputtext.invalid.placeholder.color');
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
.p-inputtext-sm {
|
|
66
|
-
font-size: dt('inputtext.sm.font.size');
|
|
67
|
-
padding-block: dt('inputtext.sm.padding.y');
|
|
68
|
-
padding-inline: dt('inputtext.sm.padding.x');
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.p-inputtext-lg {
|
|
72
|
-
font-size: dt('inputtext.lg.font.size');
|
|
73
|
-
padding-block: dt('inputtext.lg.padding.y');
|
|
74
|
-
padding-inline: dt('inputtext.lg.padding.x');
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
.p-inputtext-fluid {
|
|
78
|
-
width: 100%;
|
|
79
|
-
}
|
|
80
|
-
`,classes:{root:function(e){var t=e.instance,n=e.props;return[`p-inputtext p-component`,{"p-filled":t.$filled,"p-inputtext-sm p-inputfield-sm":n.size===`small`,"p-inputtext-lg p-inputfield-lg":n.size===`large`,"p-invalid":t.$invalid,"p-variant-filled":t.$variant===`filled`,"p-inputtext-fluid":t.$fluid}]}}}),provide:function(){return{$pcInputText:this,$parentInstance:this}}};function x(e){"@babel/helpers - typeof";return x=typeof Symbol==`function`&&typeof Symbol.iterator==`symbol`?function(e){return typeof e}:function(e){return e&&typeof Symbol==`function`&&e.constructor===Symbol&&e!==Symbol.prototype?`symbol`:typeof e},x(e)}function S(e,t,n){return(t=C(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function C(e){var t=w(e,`string`);return x(t)==`symbol`?t:t+``}function w(e,t){if(x(e)!=`object`||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(x(r)!=`object`)return r;throw TypeError(`@@toPrimitive must return a primitive value.`)}return(t===`string`?String:Number)(e)}var T={name:`InputText`,extends:b,inheritAttrs:!1,methods:{onInput:function(e){this.writeValue(e.target.value,e)}},computed:{attrs:function(){return r(this.ptmi(`root`,{context:{filled:this.$filled,disabled:this.disabled}}),this.formField)},dataP:function(){return i(S({invalid:this.$invalid,fluid:this.$fluid,filled:this.$variant===`filled`},this.size,this.size))}}},E=[`value`,`name`,`disabled`,`aria-invalid`,`data-p`];function D(t,n,i,a,o,s){return e(),l(`input`,r({type:`text`,class:t.cx(`root`),value:t.d_value,name:t.name,disabled:t.disabled,"aria-invalid":t.$invalid||void 0,"data-p":s.dataP,onInput:n[0]||=function(){return s.onInput&&s.onInput.apply(s,arguments)}},s.attrs),null,16,E)}T.render=D;var O=t();export{u as a,v as i,T as n,y as r,O as t};
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{An as e,Nn as t,jn as n}from"./button-Cdgr9Igy.js";var r={STARTS_WITH:`startsWith`,CONTAINS:`contains`,NOT_CONTAINS:`notContains`,ENDS_WITH:`endsWith`,EQUALS:`equals`,NOT_EQUALS:`notEquals`,IN:`in`,LESS_THAN:`lt`,LESS_THAN_OR_EQUAL_TO:`lte`,GREATER_THAN:`gt`,GREATER_THAN_OR_EQUAL_TO:`gte`,BETWEEN:`between`,DATE_IS:`dateIs`,DATE_IS_NOT:`dateIsNot`,DATE_BEFORE:`dateBefore`,DATE_AFTER:`dateAfter`};function i(e,t){var n=typeof Symbol<`u`&&e[Symbol.iterator]||e[`@@iterator`];if(!n){if(Array.isArray(e)||(n=a(e))||t){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
2
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var o,s=!0,c=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){c=!0,o=e},f:function(){try{s||n.return==null||n.return()}finally{if(c)throw o}}}}function a(e,t){if(e){if(typeof e==`string`)return o(e,t);var n={}.toString.call(e).slice(8,-1);return n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`?Array.from(e):n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(e,t):void 0}}function o(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var s={filter:function(e,n,r,a,o){var s=[];if(!e)return s;var c=i(e),l;try{for(c.s();!(l=c.n()).done;){var u=l.value;if(typeof u==`string`){if(this.filters[a](u,r,o)){s.push(u);continue}}else{var d=i(n),f;try{for(d.s();!(f=d.n()).done;){var p=f.value,m=t(u,p);if(this.filters[a](m,r,o)){s.push(u);break}}}catch(e){d.e(e)}finally{d.f()}}}}catch(e){c.e(e)}finally{c.f()}return s},filters:{startsWith:function(t,n,r){if(n==null||n===``)return!0;if(t==null)return!1;var i=e(n.toString()).toLocaleLowerCase(r);return e(t.toString()).toLocaleLowerCase(r).slice(0,i.length)===i},contains:function(t,n,r){if(n==null||n===``)return!0;if(t==null)return!1;var i=e(n.toString()).toLocaleLowerCase(r);return e(t.toString()).toLocaleLowerCase(r).indexOf(i)!==-1},notContains:function(t,n,r){if(n==null||n===``)return!0;if(t==null)return!1;var i=e(n.toString()).toLocaleLowerCase(r);return e(t.toString()).toLocaleLowerCase(r).indexOf(i)===-1},endsWith:function(t,n,r){if(n==null||n===``)return!0;if(t==null)return!1;var i=e(n.toString()).toLocaleLowerCase(r),a=e(t.toString()).toLocaleLowerCase(r);return a.indexOf(i,a.length-i.length)!==-1},equals:function(t,n,r){return n==null||n===``?!0:t==null?!1:t.getTime&&n.getTime?t.getTime()===n.getTime():e(t.toString()).toLocaleLowerCase(r)==e(n.toString()).toLocaleLowerCase(r)},notEquals:function(t,n,r){return n==null||n===``?!1:t==null?!0:t.getTime&&n.getTime?t.getTime()!==n.getTime():e(t.toString()).toLocaleLowerCase(r)!=e(n.toString()).toLocaleLowerCase(r)},in:function(e,t){if(t==null||t.length===0)return!0;for(var r=0;r<t.length;r++)if(n(e,t[r]))return!0;return!1},between:function(e,t){return t==null||t[0]==null||t[1]==null?!0:e==null?!1:e.getTime?t[0].getTime()<=e.getTime()&&e.getTime()<=t[1].getTime():t[0]<=e&&e<=t[1]},lt:function(e,t){return t==null?!0:e==null?!1:e.getTime&&t.getTime?e.getTime()<t.getTime():e<t},lte:function(e,t){return t==null?!0:e==null?!1:e.getTime&&t.getTime?e.getTime()<=t.getTime():e<=t},gt:function(e,t){return t==null?!0:e==null?!1:e.getTime&&t.getTime?e.getTime()>t.getTime():e>t},gte:function(e,t){return t==null?!0:e==null?!1:e.getTime&&t.getTime?e.getTime()>=t.getTime():e>=t},dateIs:function(e,t){return t==null?!0:e==null?!1:(typeof e==`string`&&(e=new Date(e)),typeof t==`string`&&(t=new Date(t)),e.toDateString()===t.toDateString())},dateIsNot:function(e,t){return t==null?!0:e==null?!1:(typeof e==`string`&&(e=new Date(e)),typeof t==`string`&&(t=new Date(t)),e.toDateString()!==t.toDateString())},dateBefore:function(e,t){return t==null?!0:e==null?!1:(typeof e==`string`&&(e=new Date(e)),typeof t==`string`&&(t=new Date(t)),e.getTime()<t.getTime())},dateAfter:function(e,t){return t==null?!0:e==null?!1:(typeof e==`string`&&(e=new Date(e)),typeof t==`string`&&(t=new Date(t)),e.getTime()>t.getTime())}},register:function(e,t){this.filters[e]=t}},c={$schema:`http://json-schema.org/draft-07/schema#`,$id:`https://raw.githubusercontent.com/OSpoon/aiex-cli/main/app/cli/schemas/table-schema.json`,title:`aiex Table Schema`,description:`Defines a database table and its columns for aiex-cli schema-to-SQLite migration.`,type:`object`,required:[`title`,`type`,`table`,`properties`],additionalProperties:!1,properties:{$schema:{type:`string`,description:`Pointer to this schema file for IDE validation.`,format:`uri`,default:`https://raw.githubusercontent.com/OSpoon/aiex-cli/main/app/cli/schemas/table-schema.json`},title:{type:`string`,minLength:1,description:`Human-readable table title (e.g. 'User', 'OrderItem').`},description:{type:`string`,description:`Optional table description.`},type:{type:`string`,const:`object`,description:`Must be 'object' — each file defines one table.`},table:{$ref:`#/$defs/tableConfig`,description:`Table-level configuration.`},properties:{$ref:`#/$defs/properties`,description:`Column definitions keyed by property name (camelCase).`},required:{type:`array`,items:{type:`string`},description:`List of property names that are NOT NULL.`,default:[]}},$defs:{tableConfig:{type:`object`,required:[`name`],additionalProperties:!1,properties:{name:{type:`string`,minLength:1,pattern:`^[a-z][a-z0-9_]*$`,description:`SQLite table name in snake_case (lowercase letters, digits, underscores).`,examples:[`users`,`order_items`,`blog_posts`]},timestamps:{type:`boolean`,default:!1,description:`Automatically add created_at and updated_at TIMESTAMP columns.`},softDelete:{type:`boolean`,default:!1,description:`Automatically add deleted_at nullable TIMESTAMP column.`}}},properties:{type:`object`,minProperties:1,additionalProperties:{$ref:`#/$defs/property`},description:`Column definitions. Keys are camelCase property names.`},property:{type:`object`,required:[`type`],additionalProperties:!1,properties:{description:{type:`string`,description:`Description of the column.`},type:{$ref:`#/$defs/columnType`,description:`Column data type.`},format:{$ref:`#/$defs/formatType`,description:`Semantic format hint that influences the SQLite column type.`},primary:{type:`boolean`,default:!1,description:`Mark this column as PRIMARY KEY. Only one per table.`},autoIncrement:{type:`boolean`,default:!1,description:`AUTO_INCREMENT for integer primary keys.`},unique:{type:`boolean`,default:!1,description:`Add UNIQUE constraint.`},default:{description:`Default value for the column. Type should match the column type.`},minLength:{type:`integer`,minimum:0,description:`Minimum string length (validation only, not a DB constraint).`},maxLength:{type:`integer`,minimum:1,description:`Maximum string length (validation only, not a DB constraint).`},minimum:{type:`number`,description:`Minimum numeric value (validation only, not a DB constraint).`},maximum:{type:`number`,description:`Maximum numeric value (validation only, not a DB constraint).`},drizzle:{$ref:`#/$defs/drizzleConfig`,description:`Drizzle ORM specific overrides.`},nested:{$ref:`#/$defs/nestedConfig`,description:`Create a separate related table instead of embedding as JSON.`},foreignKey:{$ref:`#/$defs/foreignKeyRef`,description:`Foreign key reference to another table.`},properties:{$ref:`#/$defs/properties`,description:`Sub-properties when type is 'object'. Ignored unless nested.enabled or drizzle.mode='json'.`},items:{$ref:`#/$defs/property`,description:`Item schema when type is 'array'. Ignored unless items.nested.enabled.`},required:{type:`array`,items:{type:`string`},description:`Required sub-properties for nested objects.`}}},columnType:{type:`string`,enum:[`string`,`integer`,`number`,`boolean`,`object`,`array`,`null`],description:`Data type. Maps to SQLite as: string→TEXT, integer→INTEGER, number→REAL, boolean→INTEGER(boolean), object→TEXT(json), array→TEXT(json), null→TEXT.`},formatType:{type:`string`,enum:[`date-time`,`email`,`uri`,`json`],description:`Format hints: 'date-time' → INTEGER(timestamp), 'json' → TEXT(json), 'email'/'uri' → TEXT (no special mapping).`},drizzleConfig:{type:`object`,additionalProperties:!1,properties:{mode:{type:`string`,enum:[`json`,`timestamp`,`timestamp_ms`,`boolean`,`bigint`],description:`Override Drizzle column mode. 'json' stores as TEXT(json), 'timestamp'/'timestamp_ms' as INTEGER, 'boolean' as INTEGER(boolean), 'bigint' as INTEGER(bigint).`},customType:{type:`string`,description:`Custom Drizzle type name (reserved for future use).`}}},nestedConfig:{type:`object`,required:[`enabled`,`relation`],additionalProperties:!1,properties:{enabled:{type:`boolean`,const:!0,description:`Must be true to activate nested table creation.`},relation:{type:`string`,enum:[`has-one`,`has-many`],description:`'has-one' → one() relation, 'has-many' → many() relation. Only one level of nesting is supported.`}}},foreignKeyRef:{type:`object`,required:[`table`,`column`],additionalProperties:!1,properties:{table:{type:`string`,minLength:1,description:`Target table name (snake_case).`},column:{type:`string`,minLength:1,description:`Target column name in the referenced table.`}}}}};export{r as n,s as r,c as t};
|
/package/dist/web/assets/{runtime-dom.esm-bundler-DmdkgxQM.js → runtime-dom.esm-bundler-ei_N7Xjw.js}
RENAMED
|
File without changes
|